@github/copilot 0.0.331-3 → 0.0.331-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/index.js +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -957,7 +957,7 @@ this.Function = globalThis.Function;
|
|
|
957
957
|
`,this.errorIndex=this.startTagIndex),this.readState=ta.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[ur]&&!this.nextElement[eI]){this.errorMessage=`Namespace prefix ${this.nextElement[ur]} on name is not defined
|
|
958
958
|
`,this.errorIndex=this.lastIndex,this.readState=ta.error;return}if(this.currentNode===this.rootNode&&this.rootNode[nn].length!==0){this.errorMessage=`Extra content at the end of the document
|
|
959
959
|
`,this.errorIndex=this.lastIndex-this.nextElement[ql].length-1,this.readState=ta.error;return}this.currentNode[Xn](this.nextElement,!0),l||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[eI]&&!this.currentNode[ur]?this.defaultNamespaceStack.push(this.currentNode[eI]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=ta.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){return this.tagNameStack[this.tagNameStack.length-1]===e?(this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0):!1}parseError(e,l){let I=this.rootNode.documentElement;if(!I){let o=this.rootNode.createElementNS(fr.html,"html"),d=this.rootNode.createElementNS(fr.html,"body");o.appendChild(d),I=d,this.rootNode[Xn](o,!0)}let n=e.split(`
|
|
960
|
-
`),r=n[n.length-1].length+1,a=`error on line ${n.length} at column ${r}: ${l||"Unknown error"}`,s=this.rootNode.createElementNS(fr.html,"parsererror");s.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),s.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,I.insertBefore(s,I.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[Xt]===rn.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let l=e.split(Q7);if(l.length<=1)return null;let I=l.slice(1).join(" "),n=[],r=new RegExp(Ppl,"gm"),a=I.toUpperCase().includes("PUBLIC"),s;for(;s=r.exec(I);)n.push(s[1]);let o=a&&n[0]||"",d=a?n[1]||"":n[0]||"";return{name:l[1].toLowerCase(),publicId:o,systemId:d}}};var KU=class{parseFromString(e,l){if(!l)throw new this[H].DOMException('Second parameter "mimeType" is mandatory.');let I=this[H];switch(l){case"text/html":let n=new I.HTMLDocument;return n[_u]=I,new bG(this[H]).parse(e,n);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new PU(this[H]).parse(e);default:throw new I.DOMException(`Unknown mime type "${l}".`)}}};c();c();var jve;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(jve||(jve={}));var $d=jve;var qU=class{static END_TO_END=$d.endToEnd;static END_TO_START=$d.endToStart;static START_TO_END=$d.startToEnd;static START_TO_START=$d.startToStart;END_TO_END=$d.endToEnd;END_TO_START=$d.endToStart;START_TO_END=$d.startToEnd;START_TO_START=$d.startToStart;[zt];[vl];[nt];constructor(){let e=this[H];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[nt]=e.document,this[zt]={node:e.document,offset:0},this[vl]={node:e.document,offset:0}}get startContainer(){return this[zt].node}get endContainer(){return this[vl].node}get startOffset(){if(this[zt].offset>0){let e=hn.getNodeLength(this[zt].node);this[zt].offset>e&&(this[zt].offset=e)}return this[zt].offset}get endOffset(){if(this[vl].offset>0){let e=hn.getNodeLength(this[vl].node);this[vl].offset>e&&(this[vl].offset=e)}return this[vl].offset}get collapsed(){return this[zt].node===this[vl].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[zt].node;for(;e;){if(hn.isInclusiveAncestor(e,this[vl].node))return e;e=e[sl]}return null}collapse(e=!1){e?this[vl]=Object.assign({},this[zt]):this[zt]=Object.assign({},this[vl])}compareBoundaryPoints(e,l){if(e!==$d.startToStart&&e!==$d.startToEnd&&e!==$d.endToEnd&&e!==$d.endToStart)throw new this[H].DOMException(`The comparison method provided must be one of '${$d.startToStart}', '${$d.startToEnd}', '${$d.endToEnd}' or '${$d.endToStart}'.`,qe.notSupportedError);if(this[nt]!==l[nt])throw new this[H].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);let I={node:null,offset:0},n={node:null,offset:0};switch(e){case $d.startToStart:I.node=this[zt].node,I.offset=this.startOffset,n.node=l[zt].node,n.offset=l.startOffset;break;case $d.startToEnd:I.node=this[vl].node,I.offset=this.endOffset,n.node=l[zt].node,n.offset=l.startOffset;break;case $d.endToEnd:I.node=this[vl].node,I.offset=this.endOffset,n.node=l[vl].node,n.offset=l.endOffset;break;case $d.endToStart:I.node=this[zt].node,I.offset=this.startOffset,n.node=l[vl].node,n.offset=l.endOffset;break}return bs.compareBoundaryPointsPosition(I,n)}comparePoint(e,l){if(e[nt]!==this[nt])throw new this[H].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);bs.validateBoundaryPoint({node:e,offset:l});let I={node:e,offset:l};return bs.compareBoundaryPointsPosition(I,{node:this[zt].node,offset:this.startOffset})===-1?-1:bs.compareBoundaryPointsPosition(I,{node:this[vl].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[H],l=this[nt].createDocumentFragment(),I=this.startOffset,n=this.endOffset;if(this.collapsed)return l;if(this[zt].node===this[vl].node&&(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)){let d=this[zt].node.cloneNode(!1);return d[Ja]=d.substringData(I,n-I),l.appendChild(d),l}let r=this[zt].node;for(;!hn.isInclusiveAncestor(r,this[vl].node);)r=r[sl];let a=null;if(!hn.isInclusiveAncestor(this[zt].node,this[vl].node)){let d=r.firstChild;for(;!a;)bs.isPartiallyContained(d,this)&&(a=d),d=d.nextSibling}let s=null;if(!hn.isInclusiveAncestor(this[vl].node,this[zt].node)){let d=r.lastChild;for(;!s;)bs.isPartiallyContained(d,this)&&(s=d),d=d.previousSibling}let o=[];for(let d of r[el])if(bs.isContained(d,this)){if(d[Xt]===ht.documentTypeNode)throw new e.DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(d)}if(a!==null&&(a[Xt]===ht.textNode||a[Xt]===ht.processingInstructionNode||a[Xt]===ht.commentNode)){let d=this[zt].node.cloneNode(!1);d[Ja]=d.substringData(I,hn.getNodeLength(this[zt].node)-I),l.appendChild(d)}else if(a!==null){let d=a.cloneNode();l.appendChild(d);let G=new e.Range;G[zt].node=this[zt].node,G[zt].offset=I,G[vl].node=a,G[vl].offset=hn.getNodeLength(a);let u=G.cloneContents();d.appendChild(u)}for(let d of o){let G=d.cloneNode(!0);l.appendChild(G)}if(s!==null&&(s[Xt]===ht.textNode||s[Xt]===ht.processingInstructionNode||s[Xt]===ht.commentNode)){let d=this[vl].node.cloneNode(!1);d[Ja]=d.substringData(0,n),l.appendChild(d)}else if(s!==null){let d=s.cloneNode(!1);l.appendChild(d);let G=new e.Range;G[zt].node=s,G[zt].offset=0,G[vl].node=this[vl].node,G[vl].offset=n;let u=G.cloneContents();d.appendChild(u)}return l}cloneRange(){let e=new this[H].Range;return e[zt].node=this[zt].node,e[zt].offset=this[zt].offset,e[vl].node=this[vl].node,e[vl].offset=this[vl].offset,e}createContextualFragment(e){return new bG(this[H]).parse(e)}deleteContents(){let e=this.startOffset,l=this.endOffset;if(this.collapsed)return;if(this[zt].node===this[vl].node&&(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)){this[zt].node.replaceData(e,l-e,"");return}let I=[],n=this[zt].node,r=hn.nextDescendantNode(this[vl].node);for(;n&&n!==r;)bs.isContained(n,this)&&!bs.isContained(n[sl],this)&&I.push(n),n=hn.following(n);let a,s;if(hn.isInclusiveAncestor(this[zt].node,this[vl].node))a=this[zt].node,s=e;else{let o=this[zt].node;for(;o&&!hn.isInclusiveAncestor(o[sl],this[vl].node);)o=o[sl];a=o[sl],s=o[sl][el].indexOf(o)+1}(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)&&this[zt].node.replaceData(this.startOffset,hn.getNodeLength(this[zt].node)-this.startOffset,"");for(let o of I)o[sl].removeChild(o);(this[vl].node[Xt]===ht.textNode||this[vl].node[Xt]===ht.processingInstructionNode||this[vl].node[Xt]===ht.commentNode)&&this[vl].node.replaceData(0,l,""),this[zt].node=a,this[zt].offset=s,this[vl].node=a,this[vl].offset=s}detach(){}extractContents(){let e=this[H],l=this[nt].createDocumentFragment(),I=this.startOffset,n=this.endOffset;if(this.collapsed)return l;if(this[zt].node===this[vl].node&&(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)){let u=this[zt].node.cloneNode(!1);return u[Ja]=u.substringData(I,n-I),l.appendChild(u),this[zt].node.replaceData(I,n-I,""),l}let r=this[zt].node;for(;!hn.isInclusiveAncestor(r,this[vl].node);)r=r[sl];let a=null;if(!hn.isInclusiveAncestor(this[zt].node,this[vl].node)){let u=r.firstChild;for(;!a;)bs.isPartiallyContained(u,this)&&(a=u),u=u.nextSibling}let s=null;if(!hn.isInclusiveAncestor(this[vl].node,this[zt].node)){let u=r.lastChild;for(;!s;)bs.isPartiallyContained(u,this)&&(s=u),u=u.previousSibling}let o=[];for(let u of r[el])if(bs.isContained(u,this)){if(u[Xt]===ht.documentTypeNode)throw new this[H].DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(u)}let d,G;if(hn.isInclusiveAncestor(this[zt].node,this[vl].node))d=this[zt].node,G=I;else{let u=this[zt].node;for(;u&&!hn.isInclusiveAncestor(u[sl],this[vl].node);)u=u[sl];d=u[sl],G=u[sl][el].indexOf(u)+1}if(a!==null&&(a[Xt]===ht.textNode||a[Xt]===ht.processingInstructionNode||a[Xt]===ht.commentNode)){let u=this[zt].node.cloneNode(!1);u[Ja]=u.substringData(I,hn.getNodeLength(this[zt].node)-I),l.appendChild(u),this[zt].node.replaceData(I,hn.getNodeLength(this[zt].node)-I,"")}else if(a!==null){let u=a.cloneNode(!1);l.appendChild(u);let h=new e.Range;h[zt].node=this[zt].node,h[zt].offset=I,h[vl].node=a,h[vl].offset=hn.getNodeLength(a);let g=h.extractContents();u.appendChild(g)}for(let u of o)l.appendChild(u);if(s!==null&&(s[Xt]===ht.textNode||s[Xt]===ht.processingInstructionNode||s[Xt]===ht.commentNode)){let u=this[vl].node.cloneNode(!1);u[Ja]=u.substringData(0,n),l.appendChild(u),this[vl].node.replaceData(0,n,"")}else if(s!==null){let u=s.cloneNode(!1);l.appendChild(u);let h=new e.Range;h[zt].node=s,h[zt].offset=0,h[vl].node=this[vl].node,h[vl].offset=n;let g=h.extractContents();u.appendChild(g)}return this[zt].node=d,this[zt].offset=G,this[vl].node=d,this[vl].offset=G,l}getBoundingClientRect(){return new pA}getClientRects(){return new fk(z)}isPointInRange(e,l=0){if(e[nt]!==this[nt])return!1;let I={node:e,offset:l};return bs.validateBoundaryPoint(I),!(bs.compareBoundaryPointsPosition(I,{node:this[zt].node,offset:this.startOffset})===-1||bs.compareBoundaryPointsPosition(I,{node:this[vl].node,offset:this.endOffset})===1)}insertNode(e){if(this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode||this[zt].node[Xt]===ht.textNode&&!this[zt].node[sl]||e===this[zt].node)throw new this[H].DOMException("Invalid start node.",qe.hierarchyRequestError);let l=this[zt].node[Xt]===ht.textNode?this[zt].node:this[zt].node[el][this.startOffset]||null,I=l?l[sl]:this[zt].node;this[zt].node[Xt]===ht.textNode&&(l=this[zt].node.splitText(this.startOffset)),e===l&&(l=l.nextSibling);let n=e[sl];n&&n.removeChild(e);let r=l?l[sl][el].indexOf(l):hn.getNodeLength(I);r+=e[Xt]===ht.documentFragmentNode?hn.getNodeLength(e):1,I.insertBefore(e,l),this.collapsed&&(this[vl].node=I,this[vl].offset=r)}intersectsNode(e){if(e[nt]!==this[nt])return!1;let l=e[sl];if(!l)return!0;let I=l[el].indexOf(e);return bs.compareBoundaryPointsPosition({node:l,offset:I},{node:this[vl].node,offset:this.endOffset})===-1&&bs.compareBoundaryPointsPosition({node:l,offset:I+1},{node:this[zt].node,offset:this.startOffset})===1}selectNode(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);let l=e[sl][el].indexOf(e);this[zt].node=e[sl],this[zt].offset=l,this[vl].node=e[sl],this[vl].offset=l+1}selectNodeContents(e){if(e[Xt]===ht.documentTypeNode)throw new this[H].DOMException("DocumentType Node can't be used as boundary point.",qe.invalidNodeTypeError);this[zt].node=e,this[zt].offset=0,this[vl].node=e,this[vl].offset=hn.getNodeLength(e)}setEnd(e,l=0){bs.validateBoundaryPoint({node:e,offset:l});let I={node:e,offset:l};(e[nt]!==this[nt]||bs.compareBoundaryPointsPosition(I,{node:this[zt].node,offset:this.startOffset})===-1)&&(this[zt].node=e,this[zt].offset=l),this[vl].node=e,this[vl].offset=l}setStart(e,l=0){bs.validateBoundaryPoint({node:e,offset:l});let I={node:e,offset:l};(e[nt]!==this[nt]||bs.compareBoundaryPointsPosition(I,{node:this[vl].node,offset:this.endOffset})===1)&&(this[vl].node=e,this[vl].offset=l),this[zt].node=e,this[zt].offset=l}setEndAfter(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[sl],e[sl][el].indexOf(e)+1)}setEndBefore(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[sl],e[sl][el].indexOf(e))}setStartAfter(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[sl],e[sl][el].indexOf(e)+1)}setStartBefore(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[sl],e[sl][el].indexOf(e))}surroundContents(e){let l=this.commonAncestorContainer;if(!l)return;let I=hn.nextDescendantNode(l);for(;l&&l!==I;){if(l[Xt]!==ht.textNode&&bs.isPartiallyContained(l,this))throw new this[H].DOMException("The Range has partially contains a non-Text node.",qe.invalidStateError);l=hn.following(l)}if(e[Xt]===ht.documentNode||e[Xt]===ht.documentTypeNode||e[Xt]===ht.documentFragmentNode)throw new this[H].DOMException("Invalid element type.",qe.invalidNodeTypeError);let n=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(n),this.selectNode(e)}toString(){let e=this.startOffset,l=this.endOffset,I="";if(this[zt].node===this[vl].node&&this[zt].node[Xt]===ht.textNode)return this[zt].node.data.slice(e,l);this[zt].node[Xt]===ht.textNode&&(I+=this[zt].node.data.slice(e));let n=hn.nextDescendantNode(this[vl].node),r=this[zt].node;for(;r&&r!==n;)r[Xt]===ht.textNode&&bs.isContained(r,this)&&(I+=r.data),r=hn.following(r);return this[vl].node[Xt]===ht.textNode&&(I+=this[vl].node.data.slice(0,l)),I}};c();c();var $H=class extends Xr{id="";startTime=0;endTime=0;pauseOnExit=!1;[rT]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==z)throw new TypeError("Illegal constructor");if(!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[rT]}};var $U=class extends $H{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(e,l,I){super(z);let n=this[H],r=0;if(e!==void 0&&r++,l!==void 0&&r++,I!==void 0&&r++,r<3)throw new n.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${r} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new n.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=e,this.endTime=l,this.text=String(I)}getCueAsHTML(){let e=this[H],l=e.document.createDocumentFragment();return l.appendChild(e.document.createTextNode(this.text)),l}};c();var e_=class extends Xr{[QZ]=qE.subtitles;[Vw]="";[Gk]="";[C8]="";[Uo]="disabled";[mk]=new Pw(z);[sve]=new Pw(z);oncuechange=null;constructor(e){if(super(),e!==z)throw new TypeError("Illegal constructor");if(!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[QZ]}get label(){return this[Vw]}get language(){return this[Gk]}get id(){return this[C8]}get mode(){return this[Uo]}set mode(e){e!=="disabled"&&e!=="showing"||(this[Uo]=e)}get cues(){return this[Uo]==="disabled"?null:this[mk]}get activeCues(){return this[Uo]==="disabled"?null:this[sve]}addCue(e){this[mk].includes(e)||(e[rT]=this,this[mk].push(e))}removeCue(e){let l=this[mk].indexOf(e);l!==-1&&(e[rT]=null,this[mk].splice(l,1))}};c();var t_=class t extends Xr{[Zl]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(e,l){if(super(),e!==z)throw new TypeError("Illegal constructor");this[Zl]=l;let I=new Co(this,[t,Xr]);return new Proxy(this,{get:(n,r)=>{if(r==="length")return l.length;if(r in n||typeof r=="symbol")return I.bind(r),n[r];let a=Number(r);if(!isNaN(a))return l[a]},set(n,r,a){if(I.bind(r),typeof r=="symbol")return n[r]=a,!0;let s=Number(r);return isNaN(s)&&(n[r]=a),!0},deleteProperty(n,r){if(typeof r=="symbol")return delete n[r],!0;let a=Number(r);return isNaN(a)&&delete n[r],!0},ownKeys(){return Object.keys(l)},has(n,r){if(r in n)return!0;if(typeof r=="symbol")return!1;let a=Number(r);return!isNaN(a)&&a>=0&&a<l.length},defineProperty(n,r,a){return I.preventBinding(r),r in n?(Object.defineProperty(n,r,a),!0):!1},getOwnPropertyDescriptor(n,r){if(r in n||typeof r=="symbol")return;let a=Number(r);if(!isNaN(a)&&l[a])return{value:l[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Zl].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Zl][Symbol.iterator]()}getTrackById(e){for(let l of this[Zl])if(l.id===e)return l;return null}};c();var l_=class extends Xr{[ove]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[ove]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};c();var Ost=dt(Bst(),1);c();var qve;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(qve||(qve={}));var qw=qve;c();var $ve;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})($ve||($ve={}));var $w=$ve;c();var eCe;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(eCe||(eCe={}));var zk=eCe;import{Buffer as chl}from"buffer";var I_=class extends Xr{error=null;result=null;readyState=qw.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#t=null;#l=null;constructor(){if(super(),!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.buffer)}readAsBinaryString(e){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.binaryString)}readAsDataURL(e){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.dataURL)}readAsText(e,l=null){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.text,l||"UTF-8")}abort(){let e=this[H];if(this.#t&&e.clearTimeout(this.#t),this.#l&&e.clearTimeout(this.#l),this.readyState===qw.empty||this.readyState===qw.done){this.result=null;return}this.readyState===qw.loading&&(this.readyState=qw.done,this.result=null),this.#e=!0,this.dispatchEvent(new Gh(zk.abort)),this.dispatchEvent(new Gh(zk.loadend))}#I(e,l,I=null){let n=this[H];if(this.readyState===qw.loading)throw new n.DOMException("The object is in an invalid state.",qe.invalidStateError);this.readyState=qw.loading,this.#t=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new Gh(zk.loadstart));let r=e[Rr];r||(r=chl.alloc(0)),this.dispatchEvent(new Gh(zk.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:r.length})),this.#l=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(l){default:case $w.buffer:{this.result=new Uint8Array(r).buffer;break}case $w.binaryString:{this.result=r.toString("binary");break}case $w.dataURL:{let a=Ost.default.parse(e.type)||"application/octet-stream";this.result=`data:${a};base64,${r.toString("base64")}`;break}case $w.text:{this.result=new TextDecoder(I||"UTF-8").decode(r);break}}this.readyState=qw.done,this.dispatchEvent(new Gh(zk.load)),this.dispatchEvent(new Gh(zk.loadend))})})}};c();import ihl from"crypto";var dhl={aspectRatio:{max:300,min:.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},mhl={deviceId:"",frameRate:60,resizeMode:"none"},tX=class extends Xr{contentHint="";enabled=!0;id=ihl.randomUUID();muted=!1;readyState="live";label="";[Vw]="";[QZ]="video";[IT]={};[L0]=JSON.parse(JSON.stringify(dhl));[mH]=JSON.parse(JSON.stringify(mhl));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==z)throw new TypeError("Illegal constructor");if(!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[QZ]}async applyConstraints(e){this.#e(this[IT],e)}getConstraints(){return this[IT]}getCapabilities(){return this[L0]}getSettings(){return this[mH]}clone(){let e=new this.constructor(z);return e[QZ]=this[QZ],e[IT]=this[IT],e[L0]=this[L0],e[mH]=this[mH],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState="ended"}#e(e,l){for(let I in l)l[I]!==null&&typeof l[I]=="object"&&!Array.isArray(l[I])?(typeof e[I]!="object"&&(e[I]={}),this.#e(e[I],l[I])):e[I]=l[I]}};c();var C7=class extends tX{[H8];constructor(e,l){super(e),this[H8]=l}get canvas(){return this[H8]}requestFrame(){}clone(){let e=super.clone();return e[H8]=this.canvas,e}};var H7=class{static extendClasses(e){class l extends ph{}l.prototype[H]=e,e.Document=l;class I extends kU{}I.prototype[H]=e,e.HTMLDocument=I;class n extends LU{}n.prototype[H]=e,e.XMLDocument=n;class r extends KH{}r.prototype[H]=e,e.DocumentFragment=r;class a extends xU{}a.prototype[H]=e,e.Text=a;class s extends SU{}s.prototype[H]=e,e.Comment=s;class o extends BU{}o.prototype[H]=e,e.Image=o;class d extends E7{}d.prototype[H]=e,e.Audio=d;class G extends OU{}G.prototype[H]=e,e.MutationObserver=G;class u extends V7{}u.prototype[H]=e,e.MessagePort=u;class h extends UU{}h.prototype[H]=e,e.CSSStyleSheet=h;class g extends Un{}e.DOMException=g;class y extends _U{}y.prototype[H]=e,e.Request=y;class R extends bh{}R.prototype[H]=e,R[H]=e,e.Response=R;class V extends Xr{}V.prototype[H]=e,e.EventTarget=V;class Q extends w7{}Q.prototype[H]=e,e.XMLHttpRequestUpload=Q;class f extends Kw{}f.prototype[H]=e,e.XMLHttpRequestEventTarget=f;class x extends zU{}x.prototype[H]=e,e.AbortController=x;class B extends MU{}B.prototype[H]=e,B[H]=e,e.AbortSignal=B;class T extends fH{}T.prototype[H]=e,e.FormData=T;class q extends DU{}q.prototype[H]=e,e.PermissionStatus=q;class te extends F7{}te.prototype[H]=e,e.XMLHttpRequest=te;class ae extends KU{}ae.prototype[H]=e,e.DOMParser=ae;class U extends qU{}U.prototype[H]=e,e.Range=U;class $ extends $U{}$.prototype[H]=e,e.VTTCue=$;class ue extends e_{}ue.prototype[H]=e,e.TextTrack=ue;class pe extends t_{}pe.prototype[H]=e,e.TextTrackList=pe;class ye extends $H{}ye.prototype[H]=e,e.TextTrackCue=ye;class ne extends l_{}ne.prototype[H]=e,e.RemotePlayback=ne;class j extends I_{}j.prototype[H]=e,e.FileReader=j;class me extends BH{}me.prototype[H]=e,e.MediaStream=me;class ce extends tX{}ce.prototype[H]=e,e.MediaStreamTrack=ce;class we extends C7{}we.prototype[H]=e,e.CanvasCaptureMediaStreamTrack=we}};c();c();c();c();c();c();var X7=class{[ut]=0;[pt]=0;[zb]=0;[bk]=1;constructor(e,l,I,n){this[ut]=e!=null?Number(e):0,this[pt]=l!=null?Number(l):0,this[zb]=I!=null?Number(I):0,this[bk]=n!=null?Number(n):1}get x(){return this[ut]}get y(){return this[pt]}get z(){return this[zb]}get w(){return this[bk]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}};var Mk=class extends X7{set x(e){this[ut]=e}get x(){return this[ut]}set y(e){this[pt]=e}get y(){return this[pt]}set z(e){this[zb]=e}get z(){return this[zb]}set w(e){this[bk]=e}get w(){return this[bk]}};var n_={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},Ghl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,bhl=/[\s,]+/,Dk=class t{[tr]=1;[pr]=0;[Wa]=0;[ga]=0;[lr]=0;[hr]=1;[Aa]=0;[ya]=0;[$r]=0;[aa]=0;[sa]=1;[ea]=0;[Ir]=0;[Zr]=0;[oa]=0;[ca]=1;constructor(e){e&&this[aT](e)}get a(){return this[tr]}get b(){return this[pr]}get c(){return this[lr]}get d(){return this[hr]}get e(){return this[Ir]}get f(){return this[Zr]}get m11(){return this[tr]}get m12(){return this[pr]}get m13(){return this[Wa]}get m14(){return this[ga]}get m21(){return this[lr]}get m22(){return this[hr]}get m23(){return this[Aa]}get m24(){return this[ya]}get m31(){return this[$r]}get m32(){return this[aa]}get m33(){return this[sa]}get m34(){return this[ea]}get m41(){return this[Ir]}get m42(){return this[Zr]}get m43(){return this[oa]}get m44(){return this[ca]}get isIdentity(){return this[tr]===1&&this[pr]===0&&this[Wa]===0&&this[ga]===0&&this[lr]===0&&this[hr]===1&&this[Aa]===0&&this[ya]===0&&this[$r]===0&&this[aa]===0&&this[sa]===1&&this[ea]===0&&this[Ir]===0&&this[Zr]===0&&this[oa]===0&&this[ca]===1}get is2D(){return this[$r]===0&&this[aa]===0&&this[sa]===1&&this[ea]===0&&this[oa]===0&&this[ca]===1}toFloat32Array(e){return Float32Array.from(this[oq](e))}toFloat64Array(e){return Float64Array.from(this[oq](e))}toString(){let e=this.is2D,l=this[oq](e).join(", ");return`${e?"matrix":"matrix3d"}(${l})`}toJSON(){let{is2D:e,isIdentity:l}=this;return{m11:this[tr],m12:this[pr],m13:this[Wa],m14:this[ga],m21:this[lr],m22:this[hr],m23:this[Aa],m24:this[ya],m31:this[$r],m32:this[aa],m33:this[sa],m34:this[ea],m41:this[Ir],m42:this[Zr],m43:this[oa],m44:this[ca],a:this[tr],b:this[pr],c:this[lr],d:this[hr],e:this[Ir],f:this[Zr],is2D:e,isIdentity:l}}multiply(e){let l=new this.constructor(this);return l[HZ](e),l}translate(e=0,l=0,I=0){let n=new this.constructor(this);return n[CZ](e,l,I),n}scale(e,l,I=1,n=0,r=0,a=0){let s=new this.constructor(this);return s[kE](e,l,I,n,r,a),s}scale3d(e=1,l=0,I=0,n=0){let r=new this.constructor(this);return r[cq](e,l,I,n),r}scaleNonUniform(e=1,l=1){let I=new this.constructor(this);return I[iq](e,l),I}rotateAxisAngle(e=0,l=0,I=0,n=0){let r=new this.constructor(this);return r[Qw](e,l,I,n),r}rotate(e=0,l,I){let n=new this.constructor(this);return n[Fw](e,l,I),n}rotateFromVector(e=0,l=0){let I=new this.constructor(this);return I[_q](e,l),I}skewX(e){let l=new this.constructor(this);return l[pk](e),l}skewY(e){let l=new this.constructor(this);return l[hk](e),l}flipX(){let e=new this.constructor(this);return e[zq](),e}flipY(){let e=new this.constructor(this);return e[Mq](),e}inverse(){let e=new this.constructor(this);return e[Dq](),e}transformPoint(e){let l=e.x??0,I=e.y??0,n=e.z??0,r=e.w??1,a=this[tr]*l+this[lr]*I+this[$r]*n+this[Ir]*r,s=this[pr]*l+this[hr]*I+this[aa]*n+this[Zr]*r,o=this[Wa]*l+this[Aa]*I+this[sa]*n+this[oa]*r,d=this[ga]*l+this[ya]*I+this[ea]*n+this[ca]*r;return new Mk(a,s,o,d)}[aT](e){let l=null;if(typeof e=="string"&&e.length&&e!=="none")l=this.constructor[uk](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)l=this.constructor[vZ](e);else if(typeof e=="object")l=this.constructor.fromMatrix(e);else return;this[tr]=l[tr],this[pr]=l[pr],this[Wa]=l[Wa],this[ga]=l[ga],this[lr]=l[lr],this[hr]=l[hr],this[Aa]=l[Aa],this[ya]=l[ya],this[$r]=l[$r],this[aa]=l[aa],this[sa]=l[sa],this[ea]=l[ea],this[Ir]=l[Ir],this[Zr]=l[Zr],this[oa]=l[oa],this[ca]=l[ca]}[HZ](e){let l=e;l instanceof t||(l?.m11===void 0&&l?.a!==void 0?(l=Object.assign({},n_,l),l.m11=l.a,l.m12=l.b,l.m21=l.c,l.m22=l.d,l.m41=l.e,l.m42=l.f):l=Object.assign({},n_,l));let I=this[tr]*l.m11+this[lr]*l.m12+this[$r]*l.m13+this[Ir]*l.m14,n=this[tr]*l.m21+this[lr]*l.m22+this[$r]*l.m23+this[Ir]*l.m24,r=this[tr]*l.m31+this[lr]*l.m32+this[$r]*l.m33+this[Ir]*l.m34,a=this[tr]*l.m41+this[lr]*l.m42+this[$r]*l.m43+this[Ir]*l.m44,s=this[pr]*l.m11+this[hr]*l.m12+this[aa]*l.m13+this[Zr]*l.m14,o=this[pr]*l.m21+this[hr]*l.m22+this[aa]*l.m23+this[Zr]*l.m24,d=this[pr]*l.m31+this[hr]*l.m32+this[aa]*l.m33+this[Zr]*l.m34,G=this[pr]*l.m41+this[hr]*l.m42+this[aa]*l.m43+this[Zr]*l.m44,u=this[Wa]*l.m11+this[Aa]*l.m12+this[sa]*l.m13+this[oa]*l.m14,h=this[Wa]*l.m21+this[Aa]*l.m22+this[sa]*l.m23+this[oa]*l.m24,g=this[Wa]*l.m31+this[Aa]*l.m32+this[sa]*l.m33+this[oa]*l.m34,y=this[Wa]*l.m41+this[Aa]*l.m42+this[sa]*l.m43+this[oa]*l.m44,R=this[ga]*l.m11+this[ya]*l.m12+this[ea]*l.m13+this[ca]*l.m14,V=this[ga]*l.m21+this[ya]*l.m22+this[ea]*l.m23+this[ca]*l.m24,Q=this[ga]*l.m31+this[ya]*l.m32+this[ea]*l.m33+this[ca]*l.m34,f=this[ga]*l.m41+this[ya]*l.m42+this[ea]*l.m43+this[ca]*l.m44;this[tr]=I,this[pr]=s,this[Wa]=u,this[ga]=R,this[lr]=n,this[hr]=o,this[Aa]=h,this[ya]=V,this[$r]=r,this[aa]=d,this[sa]=g,this[ea]=Q,this[Ir]=a,this[Zr]=G,this[oa]=y,this[ca]=f}[CZ](e=0,l=0,I=0){let n=this.constructor[vZ]([1,0,0,0,0,1,0,0,0,0,1,0,e,l,I,1]);this[HZ](n)}[kE](e,l,I=1,n=0,r=0,a=0){e=e===void 0?1:Number(e),l=l===void 0?e:Number(l),(n!==0||r!==0||a!==0)&&this[CZ](n,r,a),(e!==1||l!==1||I!==1)&&this[HZ](this.constructor[vZ]([e,0,0,0,0,l,0,0,0,0,I,0,0,0,0,1])),(n!==0||r!==0||a!==0)&&this[CZ](-n,-r,-a)}[cq](e=1,l=0,I=0,n=0){(l!==0||I!==0||n!==0)&&this[CZ](l,I,n),e!==1&&this[HZ](this.constructor[vZ]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(l!==0||I!==0||n!==0)&&this[CZ](-l,-I,-n)}[iq](e=1,l=1){e===1&&l===1||this[HZ](this.constructor[vZ]([e,0,0,0,0,l,0,0,0,0,1,0,0,0,0,1]))}[Qw](e=0,l=0,I=0,n=0){if(e=Number(e),l=Number(l),I=Number(I),n=Number(n),isNaN(e)||isNaN(l)||isNaN(I)||isNaN(n))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let r=Math.hypot(e,l,I);if(r===0)return;r!==1&&(e/=r,l/=r,I/=r);let a=-(n*Math.PI/360),s=this.#e,o=Math.sin(a)*Math.cos(a),d=Math.sin(a)*Math.sin(a),G=s(1-2*(l*l+I*I)*d),u=s(2*(e*l*d+I*o)),h=s(2*(e*I*d-l*o)),g=s(2*(e*l*d-I*o)),y=s(1-2*(e*e+I*I)*d),R=s(2*(l*I*d+e*o)),V=s(2*(e*I*d+l*o)),Q=s(2*(l*I*d-e*o)),f=s(1-2*(e*e+l*l)*d),x=this.constructor[vZ]([G,g,V,0,u,y,Q,0,h,R,f,0,0,0,0,1]);this[HZ](x)}[Fw](e=0,l,I){if(l===void 0&&I===void 0&&(I=e,e=0,l=0),l===void 0&&(l=0),I===void 0&&(I=0),e=Number(e),l=Number(l),I=Number(I),isNaN(e)||isNaN(l)||isNaN(I))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");I!==0&&this[Qw](0,0,1,I),l!==0&&this[Qw](0,1,0,l),e!==0&&this[Qw](1,0,0,e)}[_q](e=0,l=0){e===0&&l===0||this[Fw](Math.atan2(l,e)*180/Math.PI)}[pk](e){let l=Object.assign({},n_),I=Math.tan(e*Math.PI/180);l.m21=I,l.c=I,this[HZ](l)}[hk](e){let l=Object.assign({},n_),I=Math.tan(e*Math.PI/180);l.m12=I,l.b=I,this[HZ](l)}[zq](){let e=this.constructor[vZ]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[HZ](e)}[Mq](){let e=this.constructor[vZ]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[HZ](e)}[Dq](){let e=this[hr]*this[sa]*this[ca]-this[hr]*this[ea]*this[oa]-this[aa]*this[Aa]*this[ca]+this[aa]*this[ya]*this[oa]+this[Zr]*this[Aa]*this[ea]-this[Zr]*this[ya]*this[sa],l=-this[pr]*this[sa]*this[ca]+this[pr]*this[ea]*this[oa]+this[aa]*this[Wa]*this[ca]-this[aa]*this[ga]*this[oa]-this[Zr]*this[Wa]*this[ea]+this[Zr]*this[ga]*this[sa],I=this[pr]*this[Aa]*this[ca]-this[pr]*this[ya]*this[oa]-this[hr]*this[Wa]*this[ca]+this[hr]*this[ga]*this[oa]+this[Zr]*this[Wa]*this[ya]-this[Zr]*this[ga]*this[Aa],n=-this[pr]*this[Aa]*this[ea]+this[pr]*this[ya]*this[sa]+this[hr]*this[Wa]*this[ea]-this[hr]*this[ga]*this[sa]-this[aa]*this[Wa]*this[ya]+this[aa]*this[ga]*this[Aa],r=this[tr]*e+this[lr]*l+this[$r]*I+this[Ir]*n;if(r===0){this[tr]=NaN,this[pr]=NaN,this[Wa]=NaN,this[ga]=NaN,this[lr]=NaN,this[hr]=NaN,this[Aa]=NaN,this[ya]=NaN,this[$r]=NaN,this[aa]=NaN,this[sa]=NaN,this[ea]=NaN,this[Ir]=NaN,this[Zr]=NaN,this[oa]=NaN,this[ca]=NaN;return}let a=-this[lr]*this[sa]*this[ca]+this[lr]*this[ea]*this[oa]+this[$r]*this[Aa]*this[ca]-this[$r]*this[ya]*this[oa]-this[Ir]*this[Aa]*this[ea]+this[Ir]*this[ya]*this[sa],s=this[tr]*this[sa]*this[ca]-this[tr]*this[ea]*this[oa]-this[$r]*this[Wa]*this[ca]+this[$r]*this[ga]*this[oa]+this[Ir]*this[Wa]*this[ea]-this[Ir]*this[ga]*this[sa],o=-this[tr]*this[Aa]*this[ca]+this[tr]*this[ya]*this[oa]+this[lr]*this[Wa]*this[ca]-this[lr]*this[ga]*this[oa]-this[Ir]*this[Wa]*this[ya]+this[Ir]*this[ga]*this[Aa],d=this[tr]*this[Aa]*this[ea]-this[tr]*this[ya]*this[sa]-this[lr]*this[Wa]*this[ea]+this[lr]*this[ga]*this[sa]+this[$r]*this[Wa]*this[ya]-this[$r]*this[ga]*this[Aa],G=this[lr]*this[aa]*this[ca]-this[lr]*this[ea]*this[Zr]-this[$r]*this[hr]*this[ca]+this[$r]*this[ya]*this[Zr]+this[Ir]*this[hr]*this[ea]-this[Ir]*this[ya]*this[aa],u=-this[tr]*this[aa]*this[ca]+this[tr]*this[ea]*this[Zr]+this[$r]*this[pr]*this[ca]-this[$r]*this[ga]*this[Zr]-this[Ir]*this[pr]*this[ea]+this[Ir]*this[ga]*this[aa],h=this[tr]*this[hr]*this[ca]-this[tr]*this[ya]*this[Zr]-this[lr]*this[pr]*this[ca]+this[lr]*this[ga]*this[Zr]+this[Ir]*this[pr]*this[ya]-this[Ir]*this[ga]*this[hr],g=-this[tr]*this[hr]*this[ea]+this[tr]*this[ya]*this[aa]+this[lr]*this[pr]*this[ea]-this[lr]*this[ga]*this[aa]-this[$r]*this[pr]*this[ya]+this[$r]*this[ga]*this[hr],y=-this[lr]*this[aa]*this[oa]+this[lr]*this[sa]*this[Zr]+this[$r]*this[hr]*this[oa]-this[$r]*this[Aa]*this[Zr]-this[Ir]*this[hr]*this[sa]+this[Ir]*this[Aa]*this[aa],R=this[tr]*this[aa]*this[oa]-this[tr]*this[sa]*this[Zr]-this[$r]*this[pr]*this[oa]+this[$r]*this[Wa]*this[Zr]+this[Ir]*this[pr]*this[sa]-this[Ir]*this[Wa]*this[aa],V=-this[tr]*this[hr]*this[oa]+this[tr]*this[Aa]*this[Zr]+this[lr]*this[pr]*this[oa]-this[lr]*this[Wa]*this[Zr]-this[Ir]*this[pr]*this[Aa]+this[Ir]*this[Wa]*this[hr],Q=this[tr]*this[hr]*this[sa]-this[tr]*this[Aa]*this[aa]-this[lr]*this[pr]*this[sa]+this[lr]*this[Wa]*this[aa]+this[$r]*this[pr]*this[Aa]-this[$r]*this[Wa]*this[hr];this[tr]=e/r||0,this[pr]=l/r||0,this[Wa]=I/r||0,this[ga]=n/r||0,this[lr]=a/r||0,this[hr]=s/r||0,this[Aa]=o/r||0,this[ya]=d/r||0,this[$r]=G/r||0,this[aa]=u/r||0,this[sa]=h/r||0,this[ea]=g/r||0,this[Ir]=y/r||0,this[Zr]=R/r||0,this[oa]=V/r||0,this[ca]=Q/r||0}[oq](e=!1){return e?[this[tr],this[pr],this[lr],this[hr],this[Ir],this[Zr]]:[this[tr],this[pr],this[Wa],this[ga],this[lr],this[hr],this[Aa],this[ya],this[$r],this[aa],this[sa],this[ea],this[Ir],this[Zr],this[oa],this[ca]]}#e(e,l=1e15){return Math.round(e*l)/l}static fromMatrix(e){return e instanceof t||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},n_,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f):e=Object.assign({},n_,e)),this[vZ]([e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44])}static fromFloat32Array(e){return this[vZ](e)}static fromFloat64Array(e){return this[vZ](e)}static[vZ](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let l=new this;if(e.length===16){let[I,n,r,a,s,o,d,G,u,h,g,y,R,V,Q,f]=e;l[tr]=I,l[pr]=n,l[Wa]=r,l[ga]=a,l[lr]=s,l[hr]=o,l[Aa]=d,l[ya]=G,l[$r]=u,l[aa]=h,l[sa]=g,l[ea]=y,l[Ir]=R,l[Zr]=V,l[oa]=Q,l[ca]=f}else if(e.length===6){let[I,n,r,a,s,o]=e;l[tr]=I,l[pr]=n,l[lr]=r,l[hr]=a,l[Ir]=s,l[Zr]=o}return l}static[uk](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let l=new this,I=new RegExp(Ghl),n;for(;n=I.exec(e);){let r=n[1],a=n[2].split(bhl);for(let u=0,h=a.length;u<h;u++)a[u]=this[ive](a[u]);let[s,o,d,G]=a;switch(r){case"perspective":!isNaN(s)&&s!==0&&o===void 0&&d===void 0&&(l[ea]=-1/s);break;case"translate":!isNaN(s)&&d===void 0&&l[CZ](s,o||0,0);break;case"translate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[CZ](s,o,d);break;case"translateX":!isNaN(s)&&o===void 0&&d===void 0&&l[CZ](s);break;case"translateY":!isNaN(s)&&o===void 0&&d===void 0&&l[CZ](0,s);break;case"translateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[CZ](0,0,s);break;case"matrix":case"matrix3d":(a.length===6||a.length===16)&&l[aT](this[vZ](a));break;case"rotate":case"rotateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[Fw](0,0,s);break;case"rotateX":!isNaN(s)&&o===void 0&&d===void 0&&l[Fw](s,0,0);break;case"rotateY":!isNaN(s)&&o===void 0&&d===void 0&&l[Fw](0,s,0);case"rotate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&!isNaN(G)&&l[Qw](s,o,d,G);break;case"scale":!isNaN(s)&&s!==1&&d===void 0&&l[kE](s,isNaN(o)?s:o);break;case"scale3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[kE](s,o,d);break;case"scaleX":!isNaN(s)&&o===void 0&&d===void 0&&l[kE](s,1,1);break;case"scaleY":!isNaN(s)&&o===void 0&&d===void 0&&l[kE](1,s,1);break;case"scaleZ":!isNaN(s)&&o===void 0&&d===void 0&&l[kE](1,1,s);break;case"skew":isNaN(s)||l[pk](s),isNaN(o)||l[hk](o);break;case"skewX":!isNaN(s)&&o===void 0&&l[pk](s);break;case"skewY":!isNaN(s)&&o===void 0&&l[hk](s);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${n[1]}'.`)}}return l}static[ive](e){let l=parseFloat(e);switch(e.replace(l.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw new SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case"rad":return l*(180/Math.PI);case"turn":return l*360;case"px":return l;case"cm":return l*37.7812;case"mm":return l*3.7781;case"in":return l*96;case"pt":return l*1.3281;case"pc":return l*16;case"Q":return l*.945;default:return l}}};var Ku=class extends Dk{get a(){return this[tr]}set a(e){this[tr]=e}get b(){return this[pr]}set b(e){this[pr]=e}get c(){return this[lr]}set c(e){this[lr]=e}get d(){return this[hr]}set d(e){this[hr]=e}get e(){return this[Ir]}set e(e){this[Ir]=e}get f(){return this[Zr]}set f(e){this[Zr]=e}get m11(){return this[tr]}set m11(e){this[tr]=e}get m12(){return this[pr]}set m12(e){this[pr]=e}get m13(){return this[Wa]}set m13(e){this[Wa]=e}get m14(){return this[ga]}set m14(e){this[ga]=e}get m21(){return this[lr]}set m21(e){this[lr]=e}get m22(){return this[hr]}set m22(e){this[hr]=e}get m23(){return this[Aa]}set m23(e){this[Aa]=e}get m24(){return this[ya]}set m24(e){this[ya]=e}get m31(){return this[$r]}set m31(e){this[$r]=e}get m32(){return this[aa]}set m32(e){this[aa]=e}get m33(){return this[sa]}set m33(e){this[sa]=e}get m34(){return this[ea]}set m34(e){this[ea]=e}get m41(){return this[Ir]}set m41(e){this[Ir]=e}get m42(){return this[Zr]}set m42(e){this[Zr]=e}get m43(){return this[oa]}set m43(e){this[oa]=e}get m44(){return this[ca]}set m44(e){this[ca]=e}setMatrixValue(e){return this[aT](e),this}multiplySelf(e){return this[HZ](e),this}translateSelf(e=0,l=0,I=0){return this[CZ](e,l,I),this}scaleSelf(e,l,I=1,n=0,r=0,a=0){return this[kE](e,l,I,n,r,a),this}scale3dSelf(e=1,l=0,I=0,n=0){return this[cq](e,l,I,n),this}scaleNonUniformSelf(e=1,l=1){return this[iq](e,l),this}rotateAxisAngleSelf(e=0,l=0,I=0,n=0){return this[Qw](e,l,I,n),this}rotateSelf(e=0,l,I){return this[Fw](e,l,I),this}rotateFromVectorSelf(e=0,l=0){return this[_q](e,l),this}skewXSelf(e){return this[pk](e),this}skewYSelf(e){return this[hk](e),this}flipXSelf(){return this[zq](),this}flipYSelf(){return this[Mq](),this}invertSelf(){return this[Dq](),this}};c();var uhl=/[\t\f\n\r ,]+/,e2=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");if(this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,e!==z)throw new TypeError("Illegal constructor");let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){this[xt].attributeValue="",this[xt].items=[],this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[Oe](e),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),this[Oe](I.join(" ")),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(l);let I=this[Cl]();l<0?l=0:l>=I.length&&(l=I.length-1);let n=I[l];return I[l]=e,this[Oe](I.join(" ")),n}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return l.splice(e,1),this[Oe](l.join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),this[Oe](l.join(" ")),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;let I=[],n=e.trim();if(n)for(let r of n.split(uhl))I.includes(r)||I.push(r);return l.attributeValue=e,l.items=I,I}};c();c();c();c();var phl=/([a-zA-Z0-9]+)\(([^)]+)\)/,hhl=/[\s,]+/,IY=class t{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get a(){return this[Hc]().a}set a(e){if(this[Rl])return;let l=this[Hc]();l.a=e,this[mG](l)}get b(){return this[Hc]().b}set b(e){if(this[Rl])return;let l=this[Hc]();l.b=e,this[mG](l)}get c(){return this[Hc]().c}set c(e){if(this[Rl])return;let l=this[Hc]();l.c=e,this[mG](l)}get d(){return this[Hc]().d}set d(e){if(this[Rl])return;let l=this[Hc]();l.d=e,this[mG](l)}get e(){return this[Hc]().e}set e(e){if(this[Rl])return;let l=this[Hc]();l.e=e,this[mG](l)}get f(){return this[Hc]().f}set f(e){if(this[Rl])return;let l=this[Hc]();l.f=e,this[mG](l)}multiply(e){if(!(e instanceof t))throw new this[H].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let l=this[Hc](),I=new t(z,this[H]);return l.multiplySelf(e[Hc]()),I[mG](l),I}translate(e=0,l=0){let I=this[Hc](),n=new t(z,this[H]);return I.translateSelf(e,l),n[mG](I),n}scale(e){let l=this[Hc](),I=new t(z,this[H]);return l.scaleSelf(e),I[mG](l),I}scaleNonUniform(e=1,l=1){let I=this[Hc](),n=new t(z,this[H]);return I.scaleNonUniformSelf(e,l),n[mG](I),n}rotate(e){let l=this[Hc](),I=new t(z,this[H]);return l.rotateSelf(e),I[mG](l),I}rotateFromVector(e=0,l=0){let I=this[Hc](),n=new t(z,this[H]);return I.rotateFromVectorSelf(e,l),n[mG](I),n}skewX(e){let l=this[Hc](),I=new t(z,this[H]);return l.skewXSelf(e),I[mG](l),I}skewY(e){let l=this[Hc](),I=new t(z,this[H]);return l.skewYSelf(e),I[mG](l),I}flipX(){let e=this[Hc](),l=new t(z,this[H]);return e.flipXSelf(),l[mG](e),l}flipY(){let e=this[Hc](),l=new t(z,this[H]);return e.flipYSelf(),l[mG](e),l}inverse(){let e=this[Hc](),l=new t(z,this[H]);return e.invertSelf(),l[mG](e),l}[Hc](){let e=this[ot]?this[ot]():this[Wt];if(!e)return new Ku;let l=e.match(phl);if(!l)return new Ku;let I=[];for(let n of l[2].trim().split(hhl)){let r=Number(n);if(isNaN(r))throw new this[H].TypeError(`Failed to parse transform attribute: Expected number, but got "${n}" in "${e}".`);I.push(r)}switch(l[1]){case"matrix":if(I.length!==6)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return Ku[uk](e);case"scale":case"translate":if(I.length!==1&&I.length!==2)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return Ku[uk](e);case"skewY":case"skewX":if(I.length!==1)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return Ku[uk](e);case"rotate":let n=new Ku;if(I.length!==1&&I.length!==3)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[r,a,s]=I;(a||s)&&n.translateSelf(a,s);let o=r*Math.PI/180;return n.multiplySelf(new Ku([Math.cos(o),Math.sin(o),-Math.sin(o),Math.cos(o),0,0])),(a||s)&&n.translateSelf(-a,-s),n;default:throw new this[H].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[mG](e){this[Wt]=e.toString().replace(/, /g," "),this[Oe]&&this[Oe](this[Wt])}};c();var tCe;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(tCe||(tCe={}));var Zh=tCe;var Tst=/([a-zA-Z0-9]+)\(([^)]+)\)/,Zhl=/[\s,]+/,kZ=class{static SVG_TRANSFORM_UNKNOWN=Zh.unknown;static SVG_TRANSFORM_MATRIX=Zh.matrix;static SVG_TRANSFORM_TRANSLATE=Zh.translate;static SVG_TRANSFORM_SCALE=Zh.scale;static SVG_TRANSFORM_ROTATE=Zh.rotate;static SVG_TRANSFORM_SKEWX=Zh.skewX;static SVG_TRANSFORM_SKEWY=Zh.skewY;[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;[vw]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get type(){let l=(this[ot]?this[ot]():this[Wt])?.match(Tst);if(!l)return Zh.unknown;switch(l[1]){case"matrix":return Zh.matrix;case"translate":return Zh.translate;case"rotate":return Zh.rotate;case"scale":return Zh.scale;case"skewX":return Zh.skewX;case"skewY":return Zh.skewY}return 0}get angle(){let l=(this[ot]?this[ot]():this[Wt])?.match(Tst);if(!l)return 0;let I=parseFloat(l[2].trim().split(Zhl)[0]);if(isNaN(I))return 0;switch(l[1]){case"rotate":case"skewX":case"skewY":return I}return 0}get matrix(){return this[vw]||(this[vw]=new IY(z,this[H],{readOnly:this[Rl],getAttribute:()=>this[ot]?this[ot]():this[Wt],setAttribute:e=>{if(this[Wt]=e,this[Oe]){this[Oe](e);return}}})),this[vw]}setMatrix(e){if(!(e instanceof IY))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[Rl]||(this[vw]&&(this[vw][ot]=null,this[vw][Oe]=null),e[ot]=()=>this[ot]?this[ot]():this[Wt],e[Oe]=l=>{if(this[Wt]=l,this[Oe]){this[Oe](l);return}},this[vw]=e,e[Wt]!==this[Wt]&&(this[Wt]=e[Wt],this[Oe]&&this[Oe](this[Wt]||"")))}setTranslate(e,l){if(arguments.length<2)throw new TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`translate(${e} ${l})`,this[Oe]&&this[Oe](this[Wt]))}setScale(e,l){if(arguments.length<2)throw new TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`scale(${e} ${l})`,this[Oe]&&this[Oe](this[Wt]))}setRotate(e,l,I){if(arguments.length<3)throw new TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),l=Number(l),I=Number(I),isNaN(e)||isNaN(l)||isNaN(I))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`rotate(${e} ${l} ${I})`,this[Oe]&&this[Oe](this[Wt]))}setSkewX(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`skewX(${e})`,this[Oe]&&this[Oe](this[Wt]))}setSkewY(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`skewY(${e})`,this[Oe]&&this[Oe](this[Wt]))}};var Nhl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,eF="matrix(1 0 0 1 0 0)",lX=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute;let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){if(this[Rl])throw new this[H].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[xt].items)e[ot]=null,e[Oe]=null;this[xt].items=[],this[xt].attributeValue="",this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[xt].attributeValue=l.map(n=>n[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=new RegExp(Nhl),a;for(;a=r.exec(n);){let s=new kZ(z,this[H],{readOnly:this[Rl],getAttribute:()=>s[Wt],setAttribute:()=>{this[xt].attributeValue=this[Cl]().map(o=>o[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)}});s[Wt]=`${a[1]}(${a[2]})`,I.push(s)}}return l.attributeValue=e,l.items=I,I}};var t2=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new lX(z,this[H],{readOnly:!0,getAttribute:this[ot],setAttribute:()=>{}})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new lX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var Zo=class extends nI{[RE]=null;[EE]=null;[L8]=null;get oncopy(){return Fe.getEventListener(this,"oncopy")}set oncopy(e){this[D].set("oncopy",e)}get oncut(){return Fe.getEventListener(this,"oncut")}set oncut(e){this[D].set("oncut",e)}get onpaste(){return Fe.getEventListener(this,"onpaste")}set onpaste(e){this[D].set("onpaste",e)}get requiredExtensions(){return this[RE]||(this[RE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[RE]}get systemLanguage(){return this[EE]||(this[EE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[EE]}get transform(){return this[L8]||(this[L8]=new t2(z,this[H],{getAttribute:()=>this.getAttribute("transform"),setAttribute:e=>this.setAttribute("transform",e)})),this[L8]}getBBox(){return new pA}getCTM(){return new Ku}getScreenCTM(){return new Ku}};c();var ZA=class{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get x(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[0]);return isNaN(I)?0:I}set x(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[Wt]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[Oe]&&this[Oe](this[Wt])}get y(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[1]);return isNaN(I)?0:I}set y(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[Wt]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[Oe]&&this[Oe](this[Wt])}get width(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[2]);return isNaN(I)?0:I}set width(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[Wt]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[Oe]&&this[Oe](this[Wt])}get height(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[3]);return isNaN(I)?0:I}set height(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[Wt]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[Oe]&&this[Oe](this[Wt])}};c();var Ust=/[\t\f\n\r, ]+/,em=class{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get x(){let l=((this[ot]?this[ot]():this[Wt])||"").split(Ust);return l[0]?parseFloat(l[0]):0}set x(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[Wt]=`${e} ${this.y}`,this[Oe]&&this[Oe](this[Wt])}get y(){let l=((this[ot]?this[ot]():this[Wt])||"").split(Ust);return l[1]?parseFloat(l[1]):0}set y(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[Wt]=`${this.x} ${e}`,this[Oe]&&this[Oe](this[Wt])}};c();c();var lCe;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(lCe||(lCe={}));var Vn=lCe;var _st=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,NA=class{static SVG_LENGTHTYPE_UNKNOWN=Vn.unknown;static SVG_LENGTHTYPE_NUMBER=Vn.number;static SVG_LENGTHTYPE_PERCENTAGE=Vn.percentage;static SVG_LENGTHTYPE_EMS=Vn.ems;static SVG_LENGTHTYPE_EXS=Vn.exs;static SVG_LENGTHTYPE_PX=Vn.px;static SVG_LENGTHTYPE_CM=Vn.cm;static SVG_LENGTHTYPE_MM=Vn.mm;static SVG_LENGTHTYPE_IN=Vn.in;static SVG_LENGTHTYPE_PT=Vn.pt;static SVG_LENGTHTYPE_PC=Vn.pc;[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get unitType(){let l=(this[ot]?this[ot]()||"":this[Wt]||"").match(_st);if(!l)return Vn.unknown;if(isNaN(parseFloat(l[1])))return Vn.unknown;switch(l[2]){case"":return Vn.number;case"px":return Vn.px;case"cm":return Vn.cm;case"mm":return Vn.mm;case"in":return Vn.in;case"pt":return Vn.pt;case"pc":return Vn.pc;case"em":case"ex":case"%":throw new this[H].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return Vn.unknown}}get value(){let l=(this[ot]?this[ot]()||"":this[Wt]||"").match(_st);if(!l)return 0;let I=parseFloat(l[1]);if(isNaN(I))return 0;switch(l[2]){case"":return I;case"px":return I;case"cm":return I/2.54*96;case"mm":return I/25.4*96;case"in":return I*96;case"pt":return I*72;case"pc":return I*6;case"em":case"ex":case"%":throw new this[H].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[H].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let l="",I=e;switch(this.unitType){case Vn.number:I=e,l="";break;case Vn.px:I=e,l="px";break;case Vn.cm:I=e/96*2.54,l="cm";break;case Vn.mm:I=e/96*25.4,l="mm";break;case Vn.in:I=e/96,l="in";break;case Vn.pt:I=e/72,l="pt";break;case Vn.pc:I=e/6,l="pc";break;case Vn.percentage:case Vn.ems:case Vn.exs:throw new this[H].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[Wt]=String(I)+l,this[Oe]&&this[Oe](this[Wt])}get valueAsString(){return this[ot]?this[ot]()||"0":this[Wt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(String(l)):l,isNaN(l))throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let I="";switch(e){case Vn.number:I="";break;case Vn.px:I="px";break;case Vn.cm:I="cm";break;case Vn.mm:I="mm";break;case Vn.in:I="in";break;case Vn.pt:I="pt";break;case Vn.pc:I="pc";break;case Vn.ems:case Vn.exs:case Vn.percentage:throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}convertToSpecifiedUnits(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,I="";switch(e){case Vn.number:I="";break;case Vn.px:I="px";break;case Vn.cm:l=l/96*2.54,I="cm";break;case Vn.mm:l=l/96*25.4,I="mm";break;case Vn.in:l=l/96,I="in";break;case Vn.pt:l=l/72,I="pt";break;case Vn.pc:l=l/6,I="pc";break;case Vn.percentage:case Vn.ems:case Vn.exs:throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}};c();c();var ICe;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(ICe||(ICe={}));var Ho=ICe;var zst=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,nY=class{static SVG_ANGLETYPE_UNKNOWN=Ho.unknown;static SVG_ANGLETYPE_UNSPECIFIED=Ho.unspecified;static SVG_ANGLETYPE_DEG=Ho.deg;static SVG_ANGLETYPE_RAD=Ho.rad;static SVG_ANGLETYPE_GRAD=Ho.grad;[H];[ot]=null;[Oe]=null;[Wt]="";[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get unitType(){let l=(this[ot]?this[ot]():this[Wt])?.match(zst);if(!l)return Ho.unknown;if(isNaN(parseFloat(l[1])))return Ho.unknown;switch(l[2]){case"":return Ho.unspecified;case"deg":return Ho.deg;case"rad":return Ho.rad;case"grad":return Ho.grad;case"turn":return Ho.unknown;default:return Ho.unspecified}}get value(){let l=(this[ot]?this[ot]():this[Wt])?.match(zst);if(!l)return 0;let I=parseFloat(l[1]);if(isNaN(I))return 0;switch(l[2]){case"":return I;case"deg":return I;case"rad":return I*(180/Math.PI);case"grad":return I*(180/200);case"turn":return I*360;default:return I}}set value(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[H].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let l="",I=e;switch(this.unitType){case Ho.unspecified:I=e,l="";break;case Ho.deg:I=e,l="deg";break;case Ho.rad:I=e/(180/Math.PI),l="rad";break;case Ho.grad:I=e/(180/200),l="grad";break;case Ho.unknown:I=e/360,l="turn";default:break}this[Wt]=String(I)+l,this[Oe]&&this[Oe](this[Wt])}get valueAsString(){return this[ot]?this[ot]()||"0":this[Wt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(l):l,isNaN(l))throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let I="";switch(e){case Ho.unspecified:I="";break;case Ho.deg:I="deg";break;case Ho.rad:I="rad";break;case Ho.grad:I="grad";break;case Ho.unknown:I="turn";break;default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}convertToSpecifiedUnits(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,I="";switch(e){case Ho.unspecified:I="";break;case Ho.deg:I="deg";break;case Ho.rad:I="rad",l=l/(180/Math.PI);break;case Ho.grad:I="grad",l=l/(180/200);break;case Ho.unknown:I="turn",l=l/360;break;default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}};c();var WA=class{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get value(){let e=this[ot]?this[ot]():this[Wt];return parseFloat(e||"0")}set value(e){if(this[Rl])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[Wt]=String(e),this[Oe]&&this[Oe](this[Wt]||"")}};c();var tF=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new ZA(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new ZA(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};c();c();c();var nCe;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(nCe||(nCe={}));var lF=nCe;c();var rCe;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(rCe||(rCe={}));var Pb=rCe;var f7=Object.values(Pb);f7.length=f7.indexOf(0);var JGe=Object.values(lF);JGe.length=JGe.indexOf(0);var IX=class{static SVG_MEETORSLICE_UNKNOWN=lF.unknown;static SVG_MEETORSLICE_MEET=lF.meet;static SVG_MEETORSLICE_SLICE=lF.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Pb.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Pb.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Pb.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Pb.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Pb.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Pb.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Pb.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Pb.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Pb.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Pb.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Pb.xMaxYMax;[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get align(){let e=this[ot]?this[ot]():this[Wt];if(!e)return Pb.xMidYMid;let l=e.split(/\s+/)[0];return Pb[l]===void 0?Pb.xMidYMid:Pb[l]}set align(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>f7.length)throw new this[H].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[Wt]=`${f7[l]} ${JGe[this.meetOrSlice]}`,this[Oe]&&this[Oe](this[Wt])}get meetOrSlice(){let e=this[ot]?this[ot]():this[Wt];if(!e)return lF.meet;let l=e.split(/\s+/)[1];return!l||lF[l]===void 0?lF.meet:lF[l]}set meetOrSlice(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>2)throw new this[H].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[Wt]=`${f7[this.align]} ${JGe[l]}`,this[Oe]&&this[Oe](this[Wt])}};var FW=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new IX(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new IX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};c();var mt=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new NA(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new NA(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var r_=class extends Zo{[xm]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;[ZGe]=1;[YE]=null;get onafterprint(){return Fe.getEventListener(this,"onafterprint")}set onafterprint(e){this[D].set("onafterprint",e)}get onbeforeprint(){return Fe.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[D].set("onbeforeprint",e)}get onbeforeunload(){return Fe.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[D].set("onbeforeunload",e)}get ongamepadconnected(){return Fe.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[D].set("ongamepadconnected",e)}get ongamepaddisconnected(){return Fe.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[D].set("ongamepaddisconnected",e)}get onhashchange(){return Fe.getEventListener(this,"onhashchange")}set onhashchange(e){this[D].set("onhashchange",e)}get onlanguagechange(){return Fe.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[D].set("onlanguagechange",e)}get onmessage(){return Fe.getEventListener(this,"onmessage")}set onmessage(e){this[D].set("onmessage",e)}get onmessageerror(){return Fe.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[D].set("onmessageerror",e)}get onoffline(){return Fe.getEventListener(this,"onoffline")}set onoffline(e){this[D].set("onoffline",e)}get ononline(){return Fe.getEventListener(this,"ononline")}set ononline(e){this[D].set("ononline",e)}get onpagehide(){return Fe.getEventListener(this,"onpagehide")}set onpagehide(e){this[D].set("onpagehide",e)}get onpageshow(){return Fe.getEventListener(this,"onpageshow")}set onpageshow(e){this[D].set("onpageshow",e)}get onpopstate(){return Fe.getEventListener(this,"onpopstate")}set onpopstate(e){this[D].set("onpopstate",e)}get onrejectionhandled(){return Fe.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[D].set("onrejectionhandled",e)}get onstorage(){return Fe.getEventListener(this,"onstorage")}set onstorage(e){this[D].set("onstorage",e)}get onunhandledrejection(){return Fe.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[D].set("onunhandledrejection",e)}get onunload(){return Fe.getEventListener(this,"onunload")}set onunload(e){this[D].set("onunload",e)}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get currentScale(){return this[ZGe]}set currentScale(e){let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw this[H].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");l<1||(this[ZGe]=l)}get currentTranslate(){return new em(z,this[H])}get viewBox(){return this[YE]||(this[YE]=new tF(z,this[H],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[YE]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,l){return new AW(z,[])}getEnclosureList(e,l){return new AW(z,[])}checkIntersection(e,l){return!1}checkEnclosure(e,l){return!1}deselectAll(){}createSVGNumber(){return new WA(z,this[H])}createSVGLength(){return new NA(z,this[H])}createSVGAngle(){return new nY(z,this[H])}createSVGPoint(){return new em(z,this[H])}createSVGMatrix(){return new IY(z,this[H])}createSVGRect(){return new ZA(z,this[H])}createSVGTransform(){return new kZ(z,this[H])}createSVGTransformFromMatrix(e){let l=new kZ(z,this[H]);return l.setMatrix(e),l}getElementsByClassName(e){return Ra.getElementsByClassName(this,e)}getElementsByTagName(e){return Ra.getElementsByTagName(this,e)}getElementsByTagNameNS(e,l){return Ra.getElementsByTagNameNS(this,e,l)}getElementById(e){return Ra.getElementById(this,e)}[zI](e=!1){return super[zI](e)}};c();c();var QW=class extends nI{[RE]=null;[EE]=null;get onbegin(){return Fe.getEventListener(this,"onbegin")}set onbegin(e){this[D].set("onbegin",e)}get onend(){return Fe.getEventListener(this,"onend")}set onend(e){this[D].set("onend",e)}get onrepeat(){return Fe.getEventListener(this,"onrepeat")}set onrepeat(e){this[D].set("onrepeat",e)}get requiredExtensions(){return this[RE]||(this[RE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[RE]}get systemLanguage(){return this[EE]||(this[EE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[EE]}get targetElement(){return null}};var J7=class extends QW{};c();var k7=class extends QW{};c();var L7=class extends QW{};c();c();c();var LI=class{[H];[ot];[Oe];[nh]=0;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,this[nh]=I.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();if(!e)return this[nh];let l=parseFloat(e);return isNaN(l)?this[nh]:l}set baseVal(e){let l=typeof e!="number"?parseFloat(e):e;if(isNaN(l))throw new this[H].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[Oe](String(l))}};var pG=class extends Zo{[x8]=null;get pathLength(){return this[x8]||(this[x8]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:e=>this.setAttribute("pathLength",e)})),this[x8]}isPointInFill(e){if(!(e instanceof em))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(e){if(!(e instanceof em))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(e){return new em(z,this[H])}};var x7=class extends pG{[rh]=null;[ah]=null;[vE]=null;get cx(){return this[rh]||(this[rh]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[rh]}get cy(){return this[ah]||(this[ah]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[ah]}get r(){return this[vE]||(this[vE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[vE]}};c();c();var _n=class{[H];[ot];[Oe];[Kd];[nh];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,this[Kd]=I.values,this[nh]=I.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();if(!e)return this[Kd].indexOf(this[nh])+1;let l=this[Kd].indexOf(e);if(l===-1){let I=this[Kd].indexOf(null);return I!==-1?I+1:0}return l+1}set baseVal(e){let l=Number(e);if(isNaN(l)&&(l=0),l<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${l}, which is not settable.`);if(l>this[Kd].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${l}) is larger than the largest allowed value (${this[Kd].length}).`);let I=this[ot](),n=this[Kd][l-1]===null,r=n?"0":this[Kd][l-1];(!I||n&&this[Kd].includes(I)||!n&&I!==r)&&this[Oe](r||"")}};var S7=class extends nI{[M8]=null;get clipPathUnits(){return this[M8]||(this[M8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:e=>this.setAttribute("clipPathUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[M8]}};c();var B7=class extends Zo{};c();var O7=class extends nI{};c();var T7=class extends pG{[rh]=null;[ah]=null;[FE]=null;[QE]=null;get cx(){return this[rh]||(this[rh]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[rh]}get cy(){return this[ah]||(this[ah]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[ah]}get rx(){return this[FE]||(this[FE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[FE]}get ry(){return this[QE]||(this[QE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[QE]}};c();c();var hI=class{[H];[ot];[Oe];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();return e||""}set baseVal(e){this[Oe](String(e))}};var U7=class extends nI{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[wt]=null;[YI]=null;[sh]=null;[Uo]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get in2(){return this[sh]||(this[sh]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[sh]}get mode(){return this[Uo]||(this[Uo]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("mode"),setAttribute:e=>this.setAttribute("mode",e),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[Uo]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();c();var Whl=/[\t\f\n\r, ]+/,nX=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");if(this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,e!==z)throw new TypeError("Illegal constructor");let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){if(this[Rl])throw new this[H].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[xt].items)e[ot]=null,e[Oe]=null;this[xt].items=[],this[xt].attributeValue="",this[Oe]("")}initialize(e){if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof WA))throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof WA))throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[Oe](l.map(n=>n[Wt]||"0").join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof WA))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=n.split(Whl);for(let a=0,s=r.length;a<s;a++){let o=new WA(z,this[H],{readOnly:this[Rl],getAttribute:()=>o[Wt],setAttribute:()=>{this[xt].attributeValue=this[Cl]().map(d=>d[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)}});o[Wt]=String(parseFloat(r[a])),I.push(o)}}return l.attributeValue=e,l.items=I,I}};var Nh=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new nX(z,this[H],{readOnly:!0,getAttribute:this[ot],setAttribute:()=>{}})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new nX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var _7=class extends nI{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[wt]=null;[YI]=null;[sh]=null;[tI]=null;[ts]=null;[Kd]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get in2(){return this[sh]||(this[sh]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[sh]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[ts]}get values(){return this[Kd]||(this[Kd]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Kd]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var z7=class extends nI{[wt]=null;[YI]=null;[tI]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var M7=class extends nI{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[wt]=null;[YI]=null;[tI]=null;[ts]=null;[Kd]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[ts]}get values(){return this[Kd]||(this[Kd]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Kd]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();var jk=class{[H];[ot];[Oe];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[ot]()==="true"}set baseVal(e){this[Oe](String(typeof e!="boolean"?!!e:e))}};c();var gA=class{[H];[ot];[Oe];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();if(!e)return 0;let l=parseInt(e);return isNaN(l)?0:l}set baseVal(e){let l=parseInt(String(e));if(isNaN(l))throw new this[H].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[Oe](String(l))}};var D7=class extends nI{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Gq]=null;[bq]=null;[LE]=null;[wt]=null;[YI]=null;[uq]=null;[oh]=null;[ch]=null;[pq]=null;[hq]=null;[Zq]=null;[tI]=null;[Nq]=null;[Wq]=null;[Ft]=null;[ut]=null;[pt]=null;get bias(){return this[Gq]||(this[Gq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("bias"),setAttribute:e=>this.setAttribute("bias",e)})),this[Gq]}get divisor(){return this[bq]||(this[bq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:e=>this.setAttribute("divisor",e)})),this[bq]}get edgeMode(){return this[LE]||(this[LE]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[LE]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get kernelMatrix(){return this[uq]||(this[uq]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:e=>this.setAttribute("kernelMatrix",e)})),this[uq]}get kernelUnitLengthX(){return this[oh]||(this[oh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[oh]}get kernelUnitLengthY(){return this[ch]||(this[ch]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[ch]}get orderX(){return this[pq]||(this[pq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:e=>this.setAttribute("orderX",e)})),this[pq]}get orderY(){return this[hq]||(this[hq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:e=>this.setAttribute("orderY",e)})),this[hq]}get preserveAlpha(){return this[Zq]||(this[Zq]=new jk(z,this[H],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:e=>this.setAttribute("preserveAlpha",e)})),this[Zq]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get targetX(){return this[Nq]||(this[Nq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:e=>this.setAttribute("targetX",e)})),this[Nq]}get targetY(){return this[Wq]||(this[Wq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:e=>this.setAttribute("targetY",e)})),this[Wq]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var j7=class extends nI{[gq]=null;[wt]=null;[YI]=null;[oh]=null;[ch]=null;[tI]=null;[xE]=null;[Ft]=null;[ut]=null;[pt]=null;get diffuseConstant(){return this[gq]||(this[gq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:e=>this.setAttribute("diffuseConstant",e)})),this[gq]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get kernelUnitLengthX(){return this[oh]||(this[oh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[oh]}get kernelUnitLengthY(){return this[ch]||(this[ch]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[ch]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get surfaceScale(){return this[xE]||(this[xE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e)})),this[xE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var P7=class extends nI{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[wt]=null;[YI]=null;[sh]=null;[tI]=null;[Aq]=null;[Ft]=null;[ut]=null;[yq]=null;[pt]=null;[Rq]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get in2(){return this[sh]||(this[sh]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[sh]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get scale(){return this[Aq]||(this[Aq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("scale"),setAttribute:e=>this.setAttribute("scale",e)})),this[Aq]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get xChannelSelector(){return this[yq]||(this[yq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:e=>this.setAttribute("xChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[yq]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get yChannelSelector(){return this[Rq]||(this[Rq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:e=>this.setAttribute("yChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[Rq]}};c();var K7=class extends nI{[Eq]=null;[Yq]=null;get azimuth(){return this[Eq]||(this[Eq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:e=>this.setAttribute("azimuth",e)})),this[Eq]}get elevation(){return this[Yq]||(this[Yq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:e=>this.setAttribute("elevation",e)})),this[Yq]}};c();var q7=class extends nI{[ih]=null;[dh]=null;[wt]=null;[YI]=null;[tI]=null;[SE]=null;[BE]=null;[Ft]=null;[ut]=null;[pt]=null;get dx(){return this[ih]||(this[ih]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[ih]}get dy(){return this[dh]||(this[dh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[dh]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get stdDeviationX(){return this[SE]||(this[SE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:e=>this.setAttribute("stdDeviationX",e),defaultValue:2})),this[SE]}get stdDeviationY(){return this[BE]||(this[BE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:e=>this.setAttribute("stdDeviationY",e),defaultValue:2})),this[BE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var $7=class extends nI{[wt]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();var vW=class extends nI{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[ts]=null;[Vq]=null;[wq]=null;[Fq]=null;[Qq]=null;[vq]=null;[JE]=null;get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[ts]}get tableValues(){return this[Vq]||(this[Vq]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:e=>this.setAttribute("tableValues",e)})),this[Vq]}get slope(){return this[wq]||(this[wq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("slope"),setAttribute:e=>this.setAttribute("slope",e),defaultValue:1})),this[wq]}get intercept(){return this[Fq]||(this[Fq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:e=>this.setAttribute("intercept",e)})),this[Fq]}get amplitude(){return this[Qq]||(this[Qq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:e=>this.setAttribute("amplitude",e),defaultValue:1})),this[Qq]}get exponent(){return this[vq]||(this[vq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:e=>this.setAttribute("exponent",e),defaultValue:1})),this[vq]}get offset(){return this[JE]||(this[JE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[JE]}};var e$=class extends vW{};c();var t$=class extends vW{};c();var l$=class extends vW{};c();var I$=class extends vW{};c();var n$=class extends nI{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[LE]=null;[wt]=null;[YI]=null;[tI]=null;[SE]=null;[BE]=null;[Ft]=null;[ut]=null;[pt]=null;get edgeMode(){return this[LE]||(this[LE]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[LE]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get stdDeviationX(){return this[SE]||(this[SE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:e=>this.setAttribute("stdDeviationX",e)})),this[SE]}get stdDeviationY(){return this[BE]||(this[BE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:e=>this.setAttribute("stdDeviationY",e)})),this[BE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var r$=class extends nI{[ost]=null;[wt]=null;[er]=null;[xm]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var a$=class extends nI{[wt]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var s$=class extends nI{[YI]=null;get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}};c();var o$=class extends nI{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[wt]=null;[YI]=null;[Cq]=null;[Hq]=null;[Xq]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get operator(){return this[Cq]||(this[Cq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("operator"),setAttribute:e=>this.setAttribute("operator",e),values:["erode","dilate"],defaultValue:"erode"})),this[Cq]}get radiusX(){return this[Hq]||(this[Hq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:e=>this.setAttribute("radiusX",e)})),this[Hq]}get radiusY(){return this[Xq]||(this[Xq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:e=>this.setAttribute("radiusY",e)})),this[Xq]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var c$=class extends nI{[wt]=null;[YI]=null;[ih]=null;[dh]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get dx(){return this[ih]||(this[ih]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[ih]}get dy(){return this[dh]||(this[dh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[dh]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var i$=class extends nI{[ut]=null;[pt]=null;[zb]=null;get x(){return this[ut]||(this[ut]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get z(){return this[zb]||(this[zb]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[zb]}};c();var d$=class extends nI{[wt]=null;[YI]=null;[oh]=null;[ch]=null;[tI]=null;[fq]=null;[OE]=null;[xE]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get kernelUnitLengthX(){return this[oh]||(this[oh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[oh]}get kernelUnitLengthY(){return this[ch]||(this[ch]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[ch]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get specularConstant(){return this[fq]||(this[fq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:e=>this.setAttribute("specularConstant",e),defaultValue:1})),this[fq]}get specularExponent(){return this[OE]||(this[OE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[OE]}get surfaceScale(){return this[xE]||(this[xE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e),defaultValue:1})),this[xE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var m$=class extends nI{[ut]=null;[pt]=null;[zb]=null;[Jq]=null;[kq]=null;[Lq]=null;[OE]=null;[xq]=null;get x(){return this[ut]||(this[ut]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get z(){return this[zb]||(this[zb]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[zb]}get pointsAtX(){return this[Jq]||(this[Jq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:e=>this.setAttribute("pointsAtX",e)})),this[Jq]}get pointsAtY(){return this[kq]||(this[kq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:e=>this.setAttribute("pointsAtY",e)})),this[kq]}get pointsAtZ(){return this[Lq]||(this[Lq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:e=>this.setAttribute("pointsAtZ",e)})),this[Lq]}get specularExponent(){return this[OE]||(this[OE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[OE]}get limitingConeAngle(){return this[xq]||(this[xq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:e=>this.setAttribute("limitingConeAngle",e)})),this[xq]}};c();var G$=class extends nI{[wt]=null;[YI]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var b$=class extends nI{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Sq]=null;[Bq]=null;[wt]=null;[Oq]=null;[tI]=null;[Tq]=null;[Uq]=null;[ts]=null;[Ft]=null;[ut]=null;[pt]=null;get baseFrequencyX(){return this[Sq]||(this[Sq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:e=>this.setAttribute("baseFrequencyX",e)})),this[Sq]}get baseFrequencyY(){return this[Bq]||(this[Bq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:e=>this.setAttribute("baseFrequencyY",e)})),this[Bq]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get numOctaves(){return this[Oq]||(this[Oq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:e=>this.setAttribute("numOctaves",e)})),this[Oq]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get seed(){return this[Tq]||(this[Tq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("seed"),setAttribute:e=>this.setAttribute("seed",e)})),this[Tq]}get stitchTiles(){return this[Uq]||(this[Uq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:e=>this.setAttribute("stitchTiles",e),values:["stitch","noStitch"],defaultValue:"stitch"})),this[Uq]}get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[ts]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var u$=class extends nI{[er]=null;[P8]=null;[K8]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get filterUnits(){return this[P8]||(this[P8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:e=>this.setAttribute("filterUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[P8]}get primitiveUnits(){return this[K8]||(this[K8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:e=>this.setAttribute("primitiveUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[K8]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var p$=class extends Zo{[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var h$=class extends Zo{};c();var Z$=class extends Zo{[er]=null;[xm]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get decoding(){let e=this.getAttribute("decoding");switch(e){case"sync":case"async":case"auto":return e;default:return"auto"}}set decoding(e){this.setAttribute("decoding",e)}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}decode(){return Promise.resolve()}};c();var N$=class extends pG{[CE]=null;[HE]=null;[XE]=null;[fE]=null;get x1(){return this[CE]||(this[CE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[CE]}get y1(){return this[HE]||(this[HE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[HE]}get x2(){return this[XE]||(this[XE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[XE]}get y2(){return this[fE]||(this[fE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[fE]}};c();c();var IF=class extends Zo{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[er]=null;[q8]=null;[$8]=null;[eq]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get gradientUnits(){return this[q8]||(this[q8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:e=>this.setAttribute("gradientUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[q8]}get gradientTransform(){return this[$8]||(this[$8]=new t2(z,this[H],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:e=>this.setAttribute("gradientTransform",e)})),this[$8]}get spreadMethod(){return this[eq]||(this[eq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:e=>this.setAttribute("spreadMethod",e),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[eq]}};var W$=class extends IF{[CE]=null;[HE]=null;[XE]=null;[fE]=null;get x1(){return this[CE]||(this[CE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[CE]}get y1(){return this[HE]||(this[HE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[HE]}get x2(){return this[XE]||(this[XE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[XE]}get y2(){return this[fE]||(this[fE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[fE]}};c();c();var Pk=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new nY(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new nY(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var g$=class extends nI{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[S8]=null;[B8]=null;[O8]=null;[T8]=null;[U8]=null;[_8]=null;[z8]=null;[YE]=null;[xm]=null;get markerUnits(){return this[S8]||(this[S8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:e=>this.setAttribute("markerUnits",e),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[S8]}get markerWidth(){return this[B8]||(this[B8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:e=>this.setAttribute("markerWidth",e)})),this[B8]}get markerHeight(){return this[O8]||(this[O8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:e=>this.setAttribute("markerHeight",e)})),this[O8]}get orientType(){return this[T8]||(this[T8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e),values:["auto",null],defaultValue:"auto"})),this[T8]}get orientAngle(){return this[U8]||(this[U8]=new Pk(z,this[H],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e)})),this[U8]}get refX(){return this[_8]||(this[_8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("refX"),setAttribute:e=>this.setAttribute("refX",e)})),this[_8]}get refY(){return this[z8]||(this[z8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("refY"),setAttribute:e=>this.setAttribute("refY",e)})),this[z8]}get viewBox(){return this[YE]||(this[YE]=new tF(z,this[H],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[YE]}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(e){this.setAttribute("orient",e.valueAsString)}};c();var A$=class extends nI{[D8]=null;[j8]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get maskUnits(){return this[D8]||(this[D8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:e=>this.setAttribute("maskUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[D8]}get maskContentUnits(){return this[j8]||(this[j8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:e=>this.setAttribute("maskContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[j8]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var y$=class extends nI{};c();var R$=class extends nI{[er]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}};c();var E$=class extends pG{};c();var Y$=class extends nI{[er]=null;[tq]=null;[lq]=null;[Iq]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get patternUnits(){return this[tq]||(this[tq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:e=>this.setAttribute("patternUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[tq]}get patternContentUnits(){return this[lq]||(this[lq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:e=>this.setAttribute("patternContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[lq]}get patternTransform(){return this[Iq]||(this[Iq]=new t2(z,this[H],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:e=>this.setAttribute("patternTransform",e)})),this[Iq]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();var ghl=/[\t\f\n\r, ]+/,l2=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute;let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){if(this[Rl])throw new this[H].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[xt].items)e[ot]=null,e[Oe]=null;this[xt].items=[],this[xt].attributeValue="",this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[Oe](l.map(n=>n[Wt]||"0 0").join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=n.split(ghl);for(let a=0,s=r.length;a<s;a+=2){let o=parseFloat(r[a]),d=r[a+1]!==void 0?" "+parseFloat(r[a+1]):"",G=new em(z,this[H],{readOnly:this[Rl],getAttribute:()=>G[Wt],setAttribute:()=>{this[xt].attributeValue=this[Cl]().map(u=>u[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)}});G[Wt]=`${o}${d}`,I.push(G)}}return l.attributeValue=e,l.items=I,I}};var V$=class extends pG{[VE]=null;[wE]=null;get animatedPoints(){return this[VE]||(this[VE]=new l2(z,this[H],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[VE]}get points(){return this[wE]||(this[wE]=new l2(z,this[H],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[wE]}};c();var w$=class extends pG{[VE]=null;[wE]=null;get animatedPoints(){return this[VE]||(this[VE]=new l2(z,this[H],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[VE]}get points(){return this[wE]||(this[wE]=new l2(z,this[H],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[wE]}};c();var F$=class extends IF{[rh]=null;[ah]=null;[vE]=null;[nq]=null;[rq]=null;get cx(){return this[rh]||(this[rh]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[rh]}get cy(){return this[ah]||(this[ah]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[ah]}get r(){return this[vE]||(this[vE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[vE]}get fx(){return this[nq]||(this[nq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("fx"),setAttribute:e=>this.setAttribute("fx",e)})),this[nq]}get fy(){return this[rq]||(this[rq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("fy"),setAttribute:e=>this.setAttribute("fy",e)})),this[rq]}};c();var Q$=class extends pG{[ut]=null;[pt]=null;[Ft]=null;[wt]=null;[FE]=null;[QE]=null;get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get rx(){return this[FE]||(this[FE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[FE]}get ry(){return this[QE]||(this[QE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[QE]}};c();var v$=class extends Zo{[er]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};c();var C$=class extends QW{};c();var H$=class extends nI{[JE]=null;get offset(){return this[JE]||(this[JE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[JE]}};c();var X$=class extends nI{[Ad]=null;[cb]=this;[ZH]=!1;get media(){return this.getAttribute("media")||"all"}set media(e){this.setAttribute("media",e)}get type(){return this.getAttribute("type")||"text/css"}set type(e){this.setAttribute("type",e)}get title(){return this.getAttribute("title")||""}set title(e){this.setAttribute("title",e)}get disabled(){return this[ZH]}set disabled(e){this[ZH]=!!e}get sheet(){return this[iI]?(this[Ad]||(this[Ad]=new this[nt][H].CSSStyleSheet,this[Ad].replaceSync(this.textContent)),this[Ad]):null}[Ub](){super[Ub](),this[Ad]=null}[bH](){this[Ad]&&this[Ad].replaceSync(this.textContent)}};c();var f$=class extends Zo{};c();var J$=class extends Zo{};c();c();c();var Kk=class extends Zo{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[aq]=null;[sq]=null;get textLength(){return this[aq]||(this[aq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:e=>this.setAttribute("textLength",e)})),this[aq]}get lengthAdjust(){return this[sq]||(this[sq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:e=>this.setAttribute("lengthAdjust",e),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[sq]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,l){return 0}getStartPositionOfChar(e){return new em(z,this[H])}getEndPositionOfChar(e){return new em(z,this[H])}getExtentOfChar(e){return new ZA(z,this[H])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};c();c();var Ahl=/[\t\f\n\r, ]+/,rX=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute;let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[Oe](l.map(n=>n[Wt]??"0").join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=n.split(Ahl);for(let a=0,s=r.length;a<s;a++){let o=new NA(z,this[H],{readOnly:this[Rl],getAttribute:()=>o[Wt],setAttribute:d=>{o[Wt]=d;let G=I.map(u=>u[Wt]??"0").join(" ");l.attributeValue=G,this[Oe](G)}});o[Wt]=r[a],I.push(o)}}return l.attributeValue=e,l.items=I,I}};var rY=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new rX(z,this[H],{readOnly:!0,getAttribute:this[ot],setAttribute:this[Oe]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new rX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var nF=class extends Kk{[ut]=null;[pt]=null;[ih]=null;[dh]=null;[jq]=null;get x(){return this[ut]||(this[ut]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get dx(){return this[ih]||(this[ih]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[ih]}get dy(){return this[dh]||(this[dh]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[dh]}get rotate(){return this[jq]||(this[jq]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:e=>this.setAttribute("rotate",e)})),this[jq]}};var k$=class extends nF{};c();var L$=class extends Kk{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[er]=null;[dq]=null;[Cw]=null;[mq]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get startOffset(){return this[dq]||(this[dq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:e=>this.setAttribute("startOffset",e)})),this[dq]}get method(){return this[Cw]||(this[Cw]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("method"),setAttribute:e=>this.setAttribute("method",e),values:["align","stretch"],defaultValue:"align"})),this[Cw]}get spacing(){return this[mq]||(this[mq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:e=>this.setAttribute("spacing",e),values:["auto","exact"],defaultValue:"exact"})),this[mq]}};c();var x$=class extends nI{};c();var S$=class extends nF{};c();var B$=class extends Zo{[er]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}};c();var O$=class extends nI{};c();var T$=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==z)throw new TypeError("Illegal constructor")}};c();var U$=class{window;constructor(e){this.window=e}enqueueReaction(e,l,I){let n=this.window.customElements[J0]?.get(e.localName);if(n&&e[nt]===this.window.document)switch(l){case"connectedCallback":if(n.livecycleCallbacks.connectedCallback){let r=n.livecycleCallbacks.connectedCallback?.call(e);if(r instanceof Promise){let a=new wI(this.window).getAsyncTaskManager();if(a){let s=a.startTask();r.then(()=>a.endTask(s)).catch(()=>a.endTask(s))}}}break;case"disconnectedCallback":n.livecycleCallbacks.disconnectedCallback&&n.livecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":n.livecycleCallbacks.attributeChangedCallback&&I?.length&&n.observedAttributes.has(I[0])&&n.livecycleCallbacks.attributeChangedCallback.apply(e,I);break}}};var aX={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},aCe=setTimeout.toString().includes("new Timeout"),sCe=class{constructor(){throw new TypeError("Illegal constructor")}},kGe=class{callback;constructor(e){this.callback=e}},LZ=class t extends Xr{Node=rn;Attr=wT;ShadowRoot=XU;ProcessingInstruction=HU;Element=uG;CharacterData=P0;DocumentType=DE;HTMLAnchorElement=FT;HTMLButtonElement=JT;HTMLOptGroupElement=iU;HTMLOptionElement=tY;HTMLElement=Ct;HTMLUnknownElement=vU;HTMLTemplateElement=YU;HTMLInputElement=Pu;HTMLSelectElement=ZU;HTMLTextAreaElement=Mw;HTMLImageElement=DH;HTMLStyleElement=gU;HTMLLabelElement=$T;HTMLSlotElement=_ve;HTMLMetaElement=aU;HTMLMediaElement=$E;HTMLAudioElement=OH;HTMLVideoElement=CU;HTMLBaseElement=CT;HTMLDialogElement=OT;HTMLScriptElement=hU;HTMLLinkElement=IU;HTMLIFrameElement=qT;HTMLFormElement=MT;HTMLUListElement=QU;HTMLTrackElement=FU;HTMLTableRowElement=EU;HTMLTitleElement=wU;HTMLTimeElement=VU;HTMLTableSectionElement=$0;HTMLTableCellElement=AU;HTMLTableElement=RU;HTMLSpanElement=WU;HTMLSourceElement=NU;HTMLQuoteElement=pU;HTMLProgressElement=uU;HTMLPreElement=bU;HTMLPictureElement=GU;HTMLParamElement=mU;HTMLParagraphElement=dU;HTMLOutputElement=UH;HTMLOListElement=cU;HTMLObjectElement=TH;HTMLMeterElement=sU;HTMLMenuElement=rU;HTMLMapElement=nU;HTMLLIElement=tU;HTMLLegendElement=eU;HTMLModElement=oU;HTMLHtmlElement=KT;HTMLHRElement=PT;HTMLHeadElement=DT;HTMLHeadingElement=jT;HTMLFieldSetElement=_H;HTMLEmbedElement=UT;HTMLDListElement=LT;HTMLDivElement=TT;HTMLDetailsElement=BT;HTMLDataListElement=ST;HTMLDataElement=xT;HTMLTableColElement=yU;HTMLTableCaptionElement=PH;HTMLCanvasElement=kT;HTMLBRElement=XT;HTMLBodyElement=HT;HTMLAreaElement=QT;SVGSVGElement=r_;SVGAnimateElement=J7;SVGAnimateMotionElement=k7;SVGAnimateTransformElement=L7;SVGCircleElement=x7;SVGClipPathElement=S7;SVGDefsElement=B7;SVGDescElement=O7;SVGEllipseElement=T7;SVGFEBlendElement=U7;SVGFEColorMatrixElement=_7;SVGFEComponentTransferElement=z7;SVGFECompositeElement=M7;SVGFEConvolveMatrixElement=D7;SVGFEDiffuseLightingElement=j7;SVGFEDisplacementMapElement=P7;SVGFEDistantLightElement=K7;SVGFEDropShadowElement=q7;SVGFEFloodElement=$7;SVGFEFuncAElement=e$;SVGFEFuncBElement=t$;SVGFEFuncGElement=l$;SVGFEFuncRElement=I$;SVGFEGaussianBlurElement=n$;SVGFEImageElement=r$;SVGFEMergeElement=a$;SVGFEMergeNodeElement=s$;SVGFEMorphologyElement=o$;SVGFEOffsetElement=c$;SVGFEPointLightElement=i$;SVGFESpecularLightingElement=d$;SVGFESpotLightElement=m$;SVGFETileElement=G$;SVGFETurbulenceElement=b$;SVGFilterElement=u$;SVGForeignObjectElement=p$;SVGGElement=h$;SVGImageElement=Z$;SVGLineElement=N$;SVGLinearGradientElement=W$;SVGMarkerElement=g$;SVGMaskElement=A$;SVGMetadataElement=y$;SVGMPathElement=R$;SVGPathElement=E$;SVGPatternElement=Y$;SVGPolygonElement=V$;SVGPolylineElement=w$;SVGRadialGradientElement=F$;SVGRectElement=Q$;SVGScriptElement=v$;SVGSetElement=C$;SVGStopElement=H$;SVGStyleElement=X$;SVGSwitchElement=f$;SVGSymbolElement=J$;SVGTextElement=k$;SVGTextPathElement=L$;SVGTitleElement=x$;SVGTSpanElement=S$;SVGUseElement=B$;SVGViewElement=O$;SVGElement=nI;SVGAnimationElement=QW;SVGComponentTransferFunctionElement=vW;SVGGeometryElement=pG;SVGGradientElement=IF;SVGTextPositioningElement=nF;SVGGraphicsElement=Zo;Event=bt;UIEvent=Bm;CustomEvent=hT;AnimationEvent=uT;KeyboardEvent=NT;MessageEvent=WT;MouseEvent=ji;PointerEvent=HH;FocusEvent=z0;WheelEvent=AT;InputEvent=ZT;ErrorEvent=_E;StorageEvent=s7;SubmitEvent=XH;ProgressEvent=Gh;MediaQueryListEvent=EH;HashChangeEvent=CH;ClipboardEvent=pT;TouchEvent=gT;Touch=bT;AudioProcessingEvent=bt;BeforeInputEvent=bt;BeforeUnloadEvent=bt;BlobEvent=bt;CloseEvent=bt;CompositionEvent=bt;CSSFontFaceLoadEvent=bt;DeviceLightEvent=bt;DeviceMotionEvent=bt;DeviceOrientationEvent=bt;DeviceProximityEvent=bt;DOMTransactionEvent=bt;DragEvent=bt;EditingBeforeInputEvent=bt;FetchEvent=bt;GamepadEvent=bt;IDBVersionChangeEvent=bt;MediaStreamEvent=bt;MutationEvent=bt;OfflineAudioCompletionEvent=bt;OverconstrainedError=bt;PageTransitionEvent=bt;PaymentRequestUpdateEvent=bt;PopStateEvent=bt;RelatedEvent=bt;RTCDataChannelEvent=bt;RTCIdentityErrorEvent=bt;RTCIdentityEvent=bt;RTCPeerConnectionIceEvent=bt;SensorEvent=bt;SVGEvent=bt;SVGZoomEvent=bt;TimeEvent=bt;TrackEvent=bt;TransitionEvent=bt;UserProximityEvent=bt;WebGLContextEvent=bt;TextEvent=bt;Permissions=kH;History=wk;Navigator=VT;Clipboard=yH;TimeRanges=_w;TextTrackCueList=Pw;ValidityState=jb;MutationRecord=uh;IntersectionObserver=ET;IntersectionObserverEntry=YT;CSSStyleDeclaration=GG;CSSRule=Rd;CSSContainerRule=YH;CSSFontFaceRule=VH;CSSKeyframeRule=UE;CSSKeyframesRule=wH;CSSMediaRule=FH;CSSStyleRule=kw;CSSSupportsRule=QH;DOMRect=pA;DOMRectReadOnly=LH;Plugin=i7;PluginArray=Ck;Location=Qk;CustomElementRegistry=Rk;ResizeObserver=fU;URL=_o;Blob=ys;File=mh;Storage=qH;MimeType=c7;MimeTypeArray=vk;NodeFilter=Gs;HTMLCollection=ho;HTMLFormControlCollection=zH;HTMLOptionsCollection=Uk;NodeList=AW;RadioNodeList=Sk;FileList=zw;Screen=_k;DOMMatrixReadOnly=Dk;DOMMatrix=Ku;NamedNodeMap=KE;TreeWalker=jE;NodeIterator=xH;DataTransfer=GT;DataTransferItem=_0;DataTransferItemList=vH;Headers=ac;XMLSerializer=JU;ClipboardItem=iT;Selection=SH;CSSUnitValue=rs;SVGAngle=nY;SVGAnimatedAngle=Pk;SVGAnimatedBoolean=jk;SVGAnimatedEnumeration=_n;SVGAnimatedInteger=gA;SVGAnimatedLength=mt;SVGAnimatedNumber=LI;SVGAnimatedNumberList=Nh;SVGAnimatedPreserveAspectRatio=FW;SVGAnimatedRect=tF;SVGAnimatedString=hI;SVGAnimatedTransformList=t2;SVGLength=NA;SVGLengthList=rX;SVGMatrix=IY;SVGNumber=WA;SVGNumberList=nX;SVGPoint=em;SVGPointList=l2;SVGPreserveAspectRatio=IX;SVGRect=ZA;SVGStringList=e2;SVGTransform=kZ;SVGTransformList=lX;SVGAnimatedLengthList=rY;SVGUnitTypes=T$;DOMPoint=Mk;Window=this.constructor;URLSearchParams=whl;WritableStream=Mst.Writable;ReadableStream=Vhl;TransformStream=Mst.Transform;PerformanceObserver=Fhl;PerformanceEntry=Qhl;PerformanceObserverEntryList=sCe;onload=null;onerror=null;document;customElements=new Rk(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=Rhl;TextEncoder=Ehl;TextDecoder=Yhl;closed=!1;console;name="";Buffer=yhl;[oH]=[];[cA]=new d7(this);[FZ];[cG];[cGe];[iGe];[dGe];[mGe];[uH]=this;[S0]=this;[WW]=this;[H]=this;[lH]=-1;[NH]=new U$(this);[TE]={json:new Map,css:new Map,esm:new Map};[Hw]=null;#e;#t=null;#l=null;#I=null;#n=null;#r=null;#c={timeouts:null};#a=[];constructor(e,l){super(),this.#e=e,this.console=e.page.console,this[cGe]=new VT(this),this[iGe]=new _k,this[dGe]=new qH,this[mGe]=new qH,this[FZ]=new Qk(this.#e,l?.url??"about:blank"),this[cG]=new wk(this.#e,this),wI.setWindowBrowserFrameRelation(this,this.#e),this[W8](),H7.extendClasses(this),this.document=new this.HTMLDocument,this.document[_u]=this,this[cA].waitUntilComplete().then(()=>{this.document[iH]=QGe.complete,this.document.dispatchEvent(new bt("readystatechange"));let I=new bt("load");I[hW]=this,I[ob]=this.document,I[db]=ns.atTarget,this.dispatchEvent(I),I[hW]=null,I[db]=ns.none,I[WH]=!1}),this[dve]()}get self(){return this[uH]}set self(e){this[uH]=e}get top(){return this[S0]}get parent(){return this[WW]}set parent(e){this[WW]=e}get location(){return this[FZ]}set location(e){this[FZ].href=e}get history(){return this[cG]}get navigator(){return this[cGe]}get screen(){return this[iGe]}get sessionStorage(){return this[dGe]}get localStorage(){return this[mGe]}get opener(){return this.#e[iA]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new t7}get innerWidth(){return this.#t===null?this.#e.page.viewport.width:this.#t}set innerWidth(e){this.#t=e}get innerHeight(){return this.#l===null?this.#e.page.viewport.height:this.#l}set innerHeight(e){this.#l=e}get outerWidth(){return this.#I===null?this.#e.page.viewport.width:this.#I}set outerWidth(e){this.#I=e}get outerHeight(){return this.#n===null?this.#e.page.viewport.height:this.#n}set outerHeight(e){this.#n=e}get devicePixelRatio(){return this.#r===null?this.#e.page.viewport.devicePixelRatio:this.#r}set devicePixelRatio(e){this.#r=e}getComputedStyle(e){return e[nT]=e[nT]||new GG(z,this,{element:e,computed:!0}),e[nT]}getSelection(){return this.document.getSelection()}scroll(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let I=typeof e=="object"?e:{left:e,top:l};if(I.behavior==="smooth")this.setTimeout(()=>{if(I.top!==void 0){let n=Number(I.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(I.left!==void 0){let n=Number(I.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}});else{if(I.top!==void 0){let n=Number(I.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(I.left!==void 0){let n=Number(I.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}}}scrollTo(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(e,l)}scrollBy(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let I=typeof e=="object"?e:{left:e,top:l};this.scroll({left:this.document.documentElement.scrollLeft+(I.left??0),top:this.document.documentElement.scrollTop+(I.top??0),behavior:I.behavior})}blur(){}focus(){}open(e,l,I){return R7.openPage(this.#e,{url:e,target:l,features:I})}close(){this.#e.page.mainFrame===this.#e&&this.#e[iA]&&(this[Ei](),this.#e.page.close())}matchMedia(e){return new yk({window:this,media:e})}setTimeout(e,l=0,...I){if(this.closed)return{};let n=this.#e.page.context.browser.settings;if(n.timer.preventTimerLoops){let s=new Error().stack,o=this.#a;if(o.includes(s))return{};o.push(s)}if(!l){let s=this.#c;if(!s.timeouts){let d=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch,G=aX.setTimeout(()=>{this.#e[un].endTimer(G);let u=s.timeouts;s.timeouts=null;for(let h of u)if(d){let g;try{g=h.callback()}catch(y){this[As](y)}g instanceof Promise&&g.catch(y=>this[As](y))}else h.callback()},0);s.timeouts=[],this.#e[un].startTimer(G)}let o=new kGe(()=>e(...I));return s.timeouts.push(o),o}let r=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch,a=aX.setTimeout(()=>{if(this.#e[un].endTimer(a),r){let s;try{s=e(...I)}catch(o){this[As](o)}s instanceof Promise&&s.catch(o=>this[As](o))}else e(...I)},n?.timer.maxTimeout!==-1&&l&&l>n?.timer.maxTimeout?n?.timer.maxTimeout:l);return this.#e[un].startTimer(a),a}clearTimeout(e){if(e&&e instanceof kGe){let l=this.#c;if(!l.timeouts)return;let I=l.timeouts.indexOf(e);I!==-1&&l.timeouts.splice(I,1);return}aCe&&(!e||e.constructor.name!=="Timeout")||(aX.clearTimeout(e),this.#e[un].endTimer(e))}setInterval(e,l=0,...I){if(this.closed)return{};let n=this.#e.page.context.browser.settings,r=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch,a=0,s=aX.setInterval(()=>{if(r){let o;try{o=e(...I)}catch(d){this.clearInterval(s),this[As](d)}o instanceof Promise&&o.catch(d=>{this.clearInterval(s),this[As](d)})}else e(...I);n?.timer.maxIntervalIterations!==-1&&(a>=n?.timer.maxIntervalIterations&&this.clearInterval(s),a++)},n?.timer.maxIntervalTime!==-1&&l&&l>n?.timer.maxIntervalTime?n?.timer.maxIntervalTime:l);return this.#e[un].startTimer(s),s}clearInterval(e){aCe&&(!e||e.constructor.name!=="Timeout")||(aX.clearInterval(e),this.#e[un].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let l=this.#e.page.context.browser.settings;if(l.timer.preventTimerLoops){let r=new Error().stack,a=this.#a;if(a.includes(r))return{};a.push(r)}let I=!l||!l.disableErrorCapturing&&l.errorCapture===ks.tryAndCatch,n=aX.setImmediate(()=>{if(this.#e[un].endImmediate(n),I){let r;try{r=e(this.performance.now())}catch(a){this[As](a)}r instanceof Promise&&r.catch(a=>this[As](a))}else e(this.performance.now())});return this.#e[un].startImmediate(n),n}cancelAnimationFrame(e){aCe&&(!e||e.constructor.name!=="Immediate")||(aX.clearImmediate(e),this.#e[un].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let l=!1,I=this.#e[un].startTask(()=>l=!0),n=this.#e.page.context.browser.settings,r=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch;aX.queueMicrotask(()=>{if(!l)if(this.#e[un].endTask(I),r){let a;try{a=e()}catch(s){this[As](s)}a instanceof Promise&&a.catch(s=>this[As](s))}else e()})}async fetch(e,l){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",qe.invalidStateError)):await new EW({browserFrame:this.#e,window:this,url:e,init:l}).send()}btoa(e){return cT.btoa(e)}atob(e){return cT.atob(e)}postMessage(e,l="*",I){if(!this.closed){if(l&&l!=="*"&&this.location.origin!==l)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${l}') does not match the recipient window's origin ('${this.location.origin}').`,qe.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",qe.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new WT("message",{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:""})))}}resizeTo(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[gw]&&this.#e.page.setViewport({width:e,height:l})}}resizeBy(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[gw]){let I=this.#e.page.viewport;this.#e.page.setViewport({width:I.width+e,height:I.height+l})}}}[As](e){this.#e.page.console.error(e),this.dispatchEvent(new _E("error",{message:e.message,error:e}))}[W8](){Dst.isContext(this)||(Dst.createContext(this),Fst.runInContext(this))}[Ei](){if(this.closed)return;this.closed=!0;let e=this[oH];for(let a of e)a[Ei]&&a[Ei]();this[oH]=[];let l=this.document[el];for(;l.length>0;)l[0].disconnectedCallback&&delete l[0].disconnectedCallback,this.document[Pd](l[0]);let I=this.document.createElement("html"),n=this.document.createElement("head"),r=this.document.createElement("body");I.appendChild(n),I.appendChild(r),this.document[Xn](I),this.location[Ei]&&this.location[Ei](),this.customElements[Ei]&&this.customElements[Ei](),this.history[Ei]&&this.history[Ei](),this[TE].json.clear(),this[TE].css.clear(),this[TE].esm.clear(),this.document[Du].clear(),this.document[jc]=null,this.document[rH]=null,this.document[f0]=null,this.document[sk]=null,wI.removeWindowBrowserFrameRelation(this)}[dve](){for(let e of[t,Xr]){let l=Object.getOwnPropertyDescriptors(e.prototype),I=Object.keys(l);for(let n of I){let r=l[n];r.get||r.set?Object.defineProperty(this,n,{...r,get:r.get?.bind(this),set:r.set?.bind(this)}):n!=="constructor"&&typeof r.value=="function"&&!r.value.toString().startsWith("class ")&&Object.defineProperty(this,n,{...r,value:r.value.bind(this)})}}}};var a_=class{childFrames=[];parentFrame=null;page;window;closed=!1;[un]=new fw(this);[Qo]={navigation:[]};[zu]=null;[iA]=null;[gw]=!1;[cG]=[{title:"",href:"about:blank",state:null,scrollRestoration:Bw.auto,method:"GET",formData:null,isCurrent:!0}];constructor(e){this.page=e,this.window=new LZ(this),e.context.browser[oG]&&e.context.browser[oG].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[bE]=!0,this.window.document[uE]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[FZ][mA](this,ju.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[un].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[Qo].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,l)=>{Promise.all(this.childFrames.map(I=>I.abort()).concat([this[un].abort()])).then(()=>e()).catch(l)}):this[un].abort()}evaluate(e){return xk.evaluate(this,e)}goto(e,l){return Gb.navigate({windowClass:LZ,frame:this,url:e,goToOptions:l})}goBack(e){return Gb.navigateBack({windowClass:LZ,frame:this,goToOptions:e})}goForward(e){return Gb.navigateForward({windowClass:LZ,frame:this,goToOptions:e})}goSteps(e,l){return Gb.navigateSteps({windowClass:LZ,frame:this,steps:e,goToOptions:l})}reload(e){return Gb.reload({windowClass:LZ,frame:this,goToOptions:e})}};c();var sX=class{#e;#t={};#l={};#I=0;#n=[];constructor(e){this.#e=e}assert(e,l,...I){e||this.#e.print({type:Kc.assert,level:Sm.error,message:["Assertion failed:",...l?[l,...I]:I],group:this.#n[this.#n.length-1]||null})}clear(){this.#e.clear()}count(e="default"){this.#t[e]||(this.#t[e]=0),this.#t[e]++,this.#e.print({type:Kc.count,level:Sm.info,message:[`${e}: ${this.#t[e]}`],group:this.#n[this.#n.length-1]||null})}countReset(e="default"){delete this.#t[e],this.#e.print({type:Kc.countReset,level:Sm.warn,message:[`${e}: 0`],group:this.#n[this.#n.length-1]||null})}debug(e,...l){this.#e.print({type:Kc.debug,level:Sm.log,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}dir(e){this.#e.print({type:Kc.dir,level:Sm.log,message:[e],group:this.#n[this.#n.length-1]||null})}dirxml(e){this.#e.print({type:Kc.dirxml,level:Sm.log,message:[e],group:this.#n[this.#n.length-1]||null})}error(e,...l){this.#e.print({type:Kc.error,level:Sm.error,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#I++;let l={id:this.#I,label:e||"default",collapsed:!1,parent:this.#n[this.#n.length-1]||null};this.#n.push(l),this.#e.print({type:Kc.group,level:Sm.log,message:[e||"default"],group:l})}groupCollapsed(e){this.#I++;let l={id:this.#I,label:e||"default",collapsed:!0,parent:this.#n[this.#n.length-1]||null};this.#n.push(l),this.#e.print({type:Kc.groupCollapsed,level:Sm.log,message:[e||"default"],group:l})}groupEnd(){this.#n.length!==0&&this.#n.pop()}info(e,...l){this.#e.print({type:Kc.info,level:Sm.info,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}log(e,...l){this.#e.print({type:Kc.log,level:Sm.log,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){this.#e.print({type:Kc.table,level:Sm.log,message:[e],group:this.#n[this.#n.length-1]||null})}time(e="default"){this.#l[e]=performance.now()}timeEnd(e="default"){let l=this.#l[e];if(l){let I=performance.now()-l;this.#e.print({type:Kc.timeEnd,level:Sm.info,message:[`${e}: ${I}ms - timer ended`],group:this.#n[this.#n.length-1]||null})}}timeLog(e="default",...l){let I=this.#l[e];if(I){let n=performance.now()-I;this.#e.print({type:Kc.timeLog,level:Sm.info,message:[`${e}: ${n}ms`,...l],group:this.#n[this.#n.length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...l){this.#e.print({type:Kc.trace,level:Sm.log,message:[...e?[e,...l]:l,new Error("stack").stack.replace("Error: stack","")],group:this.#n[this.#n.length-1]||null})}warn(e,...l){this.#e.print({type:Kc.warn,level:Sm.warn,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}};c();var rF=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let l=e.context.pages.indexOf(e);return l!==-1&&e.context.pages.splice(l,1),e.virtualConsolePrinter.close(),q0.destroyFrame(e.mainFrame)}static findFrames(e){let l=[e];for(let I of e.childFrames)l=l.concat(this.findFrames(I));return l}};c();var LGe={width:1024,height:768,devicePixelRatio:1};var s_=class{virtualConsolePrinter=new AH;mainFrame;context;console;viewport=Object.assign({},LGe);closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new sX(this.virtualConsolePrinter),this.mainFrame=new a_(this)}get frames(){return rF.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return rF.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new bt("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};c();var qk=class{#e={};get(e){let l=this.#e[e.url];return l?l.expires<Date.now()?(delete this.#e[e.url],null):l:null}add(e,l){if(delete this.#e[e.url],e.headers.get("Cache-Control")?.includes("no-cache")||l.status<200||l.status>=300)return null;let I=l.headers.get("Access-Control-Max-Age"),n=l.headers.get("Access-Control-Allow-Origin");if(!I||!n)return null;let r=[];if(l.headers.has("Access-Control-Allow-Methods")&&l.headers.get("Access-Control-Allow-Methods")!=="*")for(let o of l.headers.get("Access-Control-Allow-Methods").split(","))r.push(o.trim().toUpperCase());let a={allowOrigin:n,allowMethods:r,expires:Date.now()+parseInt(I)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e[e.url]=a,a)}clear(){this.#e={}}};var $k=class{pages=[];browser;cookieContainer=new Nk;responseCache=new Wk;preflightResponseCache=new qk;closed=!1;constructor(e){this.browser=e}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(I=>I.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newPage(){let e=new s_(this);return this.pages.push(e),e}};c();c();c();var jst={version:"0.0.0"};var oX={disableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,disableErrorCapturing:!1,errorCapture:ks.tryAndCatch,enableFileSystemHttpRequests:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,virtualServers:null},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:_T.anyOrigin},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${jst.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1}};var eL=class{static createSettings(e){return{...oX,...e,navigation:{...oX.navigation,...e?.navigation},navigator:{...oX.navigator,...e?.navigator},timer:{...oX.timer,...e?.timer},fetch:{...oX.fetch,...e?.fetch},device:{...oX.device,...e?.device},debug:{...oX.debug,...e?.debug}}}};c();var tL=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(e){if(this.observedWindows.includes(e))throw new Error("Browser window is already being observed.");this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(l,I)=>{if(I==="unhandledRejection")return;let n=null;for(let r of this.observedWindows)if(l instanceof r.Error||l instanceof r.DOMException){n=r;break}n?(n.console.error(l),n.dispatchEvent(new n.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.uncaughtRejectionListener=l=>{let I=null;for(let n of this.observedWindows)if(l instanceof n.Error||l instanceof n.DOMException){I=n;break}I?(I.console.error(l),I.dispatchEvent(new I.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let l=this.observedWindows.indexOf(e);l!==-1&&(this.observedWindows.splice(l,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off("unhandledRejection",this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}};var xGe=class{contexts;settings;console;[oG]=null;constructor(e){this.console=e?.console||null,this.settings=eL.createSettings(e?.settings),this.settings.errorCapture===ks.processLevel&&(this[oG]=new tL),this.contexts=[new $k(this)]}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(l=>l.close()))}async waitUntilComplete(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new $k(this);return this.contexts.push(e),e}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};c();c();c();var lL=class{virtualConsolePrinter=new AH;mainFrame;context;console;viewport=Object.assign({},LGe);closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new sX(this.virtualConsolePrinter),this.mainFrame=new MH(this)}get frames(){return rF.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,l)=>{let I=this.context;rF.closePage(this).then(()=>{I.pages[0]===this?I.browser.close().then(e).catch(l):e()}).catch(l)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new bt("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};var o_=class{pages;browser;cookieContainer=new Nk;responseCache=new Wk;preflightResponseCache=new qk;closed=!1;constructor(e){this.browser=e,this.pages=[],this.pages.push(new lL(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(I=>I.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newPage(){let e=new lL(this);return this.pages.push(e),e}};var c_=class{contexts;settings;console;windowClass;[oG]=null;constructor(e,l){this.windowClass=e,this.console=l?.console||null,this.settings=eL.createSettings(l?.settings),this.settings.errorCapture===ks.processLevel&&(this[oG]=new tL),this.contexts=[],this.contexts.push(new o_(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(l=>l.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newIncognitoContext(){throw new Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};c();var i_=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}};c();c();var cX=class extends LZ{happyDOM;constructor(e){let I=new c_(LZ,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],n=I.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(I.viewport,{width:e.width||e.innerWidth||I.viewport.width,height:e.height||e.innerHeight||I.viewport.height}),super(n,{url:e?.url}),n.window=this,n.page.context.browser[oG]&&n.page.context.browser[oG].observe(this),this.happyDOM=new i_(n)}};import{Buffer as vhl}from"buffer";var SGe=class extends cX{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=vhl;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[W8](){}};var Chl=["b","blockquote","br","code","em","h1","h2","h3","h4","h5","h6","hr","i","li","ol","p","pre","strong","sub","sup","table","tbody","td","th","thead","tr","ul","img","a"],Hhl=["href","src"],Pst={img:["src"],a:["href"]};var Xhl=new cX,fhl={ALLOWED_TAGS:Chl,ALLOW_DATA_ATTR:!1,ALLOWED_ATTR:Hhl,KEEP_CONTENT:!1,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,WHOLE_DOCUMENT:!1,SANITIZE_DOM:!0,SAFE_FOR_TEMPLATES:!1,SAFE_FOR_XML:!0};function Jhl(t,e,l){let I=t.tagName.toLowerCase();if(!(I in Pst)){e.forceKeepAttr=!1,e.keepAttr=!1;return}let n=Pst[I],r=e.attrName.toLowerCase();if(!n.includes(r)){e.forceKeepAttr=!1,e.keepAttr=!1;return}if(I==="img"&&r==="src"||I==="a"&&r==="href"){try{let a=URL.parse(e.attrValue);if(a&&(a.protocol==="http:"||a.protocol==="https:")&&(I==="a"||I==="img"&&a.pathname&&(a.pathname.endsWith(".png")||a.pathname.endsWith(".jpg")||a.pathname.endsWith(".jpeg"))))return}catch{}e.forceKeepAttr=!1,e.keepAttr=!1}}function oCe(t,e){if(!t)return t;try{return Kst(t,e)}catch(l){throw new Error(`Failed to apply content filter: ${l}`)}}function cCe(t){switch(t.toLowerCase()){case"none":return"none";case"markdown":return"markdown";case"hidden_characters":return"hidden_characters";default:return"hidden_characters"}}function iCe(t,e){if(t===null||typeof t!="object")return t;for(let[l,I]of Object.entries(t))if(typeof I=="string"){let n=oCe(I,e);t[l]=n}else typeof I=="object"&&I!==null&&(t[l]=iCe(I,e));return t}function Kst(t,e,l=[]){if(!t||e==="none")return t;switch(e||(e="markdown"),e){case"markdown":return aF(t,l);case"hidden_characters":return qst(t);default:throw new Error(`Unknown filter mode: ${e}`)}}function aF(t,e=[]){if(!t)return t;let I=qst(t).split(/(```.*?\n[\s\S\n]+?\n```)|(`[\s\S\n]+?`)/gm),n="";for(let r=0;r<I.length;r++){let a=I[r];a&&(a.startsWith("`")&&a.endsWith("`")?n+=a:(a=a.replace(/!\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<img src="$2">').replace(/\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<a href="$2">$1</a>'),n+=khl(a,e)))}return n}function khl(t,e=[]){let l=ast(Xhl);return l.addHook("uponSanitizeAttribute",Jhl),l.setConfig({...fhl,ADD_TAGS:[...e,"#text"]}),l.sanitize(t)}function qst(t){let e=t.normalize("NFD"),l="";do l=e,e=e.replaceAll(/[\u{E0001}\u{E0020}-\u{E007F}\u{2066}-\u{2069}\u{202A}-\u{202E}\u{200B}\u{200C}\u{200E}\u{200F}\u{00AD}\u{FEFF}\u{180E}\u{2060}-\u{2064}]/gu,"");while(e!==l);return e.normalize("NFC")}c();import*as sF from"fs";import{existsSync as g_}from"fs";c();c();c();c();var dCe=(t,e,l)=>{let I=t instanceof RegExp?$st(t,l):t,n=e instanceof RegExp?$st(e,l):e,r=I!==null&&n!=null&&Lhl(I,n,l);return r&&{start:r[0],end:r[1],pre:l.slice(0,r[0]),body:l.slice(r[0]+I.length,r[1]),post:l.slice(r[1]+n.length)}},$st=(t,e)=>{let l=e.match(t);return l?l[0]:null},Lhl=(t,e,l)=>{let I,n,r,a,s,o=l.indexOf(t),d=l.indexOf(e,o+1),G=o;if(o>=0&&d>0){if(t===e)return[o,d];for(I=[],r=l.length;G>=0&&!s;){if(G===o)I.push(G),o=l.indexOf(t,G+1);else if(I.length===1){let u=I.pop();u!==void 0&&(s=[u,d])}else n=I.pop(),n!==void 0&&n<r&&(r=n,a=d),d=l.indexOf(e,G+1);G=o<d&&o>=0?o:d}I.length&&a!==void 0&&(s=[r,a])}return s};var eot="\0SLASH"+Math.random()+"\0",tot="\0OPEN"+Math.random()+"\0",GCe="\0CLOSE"+Math.random()+"\0",lot="\0COMMA"+Math.random()+"\0",Iot="\0PERIOD"+Math.random()+"\0",xhl=new RegExp(eot,"g"),Shl=new RegExp(tot,"g"),Bhl=new RegExp(GCe,"g"),Ohl=new RegExp(lot,"g"),Thl=new RegExp(Iot,"g"),Uhl=/\\\\/g,_hl=/\\{/g,zhl=/\\}/g,Mhl=/\\,/g,Dhl=/\\./g;function mCe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function jhl(t){return t.replace(Uhl,eot).replace(_hl,tot).replace(zhl,GCe).replace(Mhl,lot).replace(Dhl,Iot)}function Phl(t){return t.replace(xhl,"\\").replace(Shl,"{").replace(Bhl,"}").replace(Ohl,",").replace(Thl,".")}function not(t){if(!t)return[""];let e=[],l=dCe("{","}",t);if(!l)return t.split(",");let{pre:I,body:n,post:r}=l,a=I.split(",");a[a.length-1]+="{"+n+"}";let s=not(r);return r.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),e.push.apply(e,a),e}function rot(t){return t?(t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),_$(jhl(t),!0).map(Phl)):[]}function Khl(t){return"{"+t+"}"}function qhl(t){return/^-?0\d/.test(t)}function $hl(t,e){return t<=e}function eZl(t,e){return t>=e}function _$(t,e){let l=[],I=dCe("{","}",t);if(!I)return[t];let n=I.pre,r=I.post.length?_$(I.post,!1):[""];if(/\$$/.test(I.pre))for(let a=0;a<r.length;a++){let s=n+"{"+I.body+"}"+r[a];l.push(s)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(I.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(I.body),o=a||s,d=I.body.indexOf(",")>=0;if(!o&&!d)return I.post.match(/,(?!,).*\}/)?(t=I.pre+"{"+I.body+GCe+I.post,_$(t)):[t];let G;if(o)G=I.body.split(/\.\./);else if(G=not(I.body),G.length===1&&G[0]!==void 0&&(G=_$(G[0],!1).map(Khl),G.length===1))return r.map(h=>I.pre+G[0]+h);let u;if(o&&G[0]!==void 0&&G[1]!==void 0){let h=mCe(G[0]),g=mCe(G[1]),y=Math.max(G[0].length,G[1].length),R=G.length===3&&G[2]!==void 0?Math.abs(mCe(G[2])):1,V=$hl;g<h&&(R*=-1,V=eZl);let f=G.some(qhl);u=[];for(let x=h;V(x,g);x+=R){let B;if(s)B=String.fromCharCode(x),B==="\\"&&(B="");else if(B=String(x),f){let T=y-B.length;if(T>0){let q=new Array(T+1).join("0");x<0?B="-"+q+B.slice(1):B=q+B}}u.push(B)}}else{u=[];for(let h=0;h<G.length;h++)u.push.apply(u,_$(G[h],!1))}for(let h=0;h<u.length;h++)for(let g=0;g<r.length;g++){let y=n+u[h]+r[g];(!e||o||y)&&l.push(y)}}return l}c();var z$=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};c();c();var tZl={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},M$=t=>t.replace(/[[\]\\-]/g,"\\$&"),lZl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),aot=t=>t.join(""),sot=(t,e)=>{let l=e;if(t.charAt(l)!=="[")throw new Error("not in a brace expression");let I=[],n=[],r=l+1,a=!1,s=!1,o=!1,d=!1,G=l,u="";e:for(;r<t.length;){let R=t.charAt(r);if((R==="!"||R==="^")&&r===l+1){d=!0,r++;continue}if(R==="]"&&a&&!o){G=r+1;break}if(a=!0,R==="\\"&&!o){o=!0,r++;continue}if(R==="["&&!o){for(let[V,[Q,f,x]]of Object.entries(tZl))if(t.startsWith(V,r)){if(u)return["$.",!1,t.length-l,!0];r+=V.length,x?n.push(Q):I.push(Q),s=s||f;continue e}}if(o=!1,u){R>u?I.push(M$(u)+"-"+M$(R)):R===u&&I.push(M$(R)),u="",r++;continue}if(t.startsWith("-]",r+1)){I.push(M$(R+"-")),r+=2;continue}if(t.startsWith("-",r+1)){u=R,r+=2;continue}I.push(M$(R)),r++}if(G<r)return["",!1,0,!1];if(!I.length&&!n.length)return["$.",!1,t.length-l,!0];if(n.length===0&&I.length===1&&/^\\?.$/.test(I[0])&&!d){let R=I[0].length===2?I[0].slice(-1):I[0];return[lZl(R),!1,G-l,!1]}let h="["+(d?"^":"")+aot(I)+"]",g="["+(d?"":"^")+aot(n)+"]";return[I.length&&n.length?"("+h+"|"+g+")":I.length?h:g,s,G-l,!0]};c();var I2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var IZl=new Set(["!","?","+","*","@"]),oot=t=>IZl.has(t),nZl="(?!(?:^|/)\\.\\.?(?:$|/))",BGe="(?!\\.)",rZl=new Set(["[","."]),aZl=new Set(["..","."]),sZl=new Set("().*{}+?[]^$\\!"),oZl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),bCe="[^/]",cot=bCe+"*?",iot=bCe+"+?",d_=class t{type;#e;#t;#l=!1;#I=[];#n;#r;#c;#a=!1;#m;#i;#d=!1;constructor(e,l,I={}){this.type=e,e&&(this.#t=!0),this.#n=l,this.#e=this.#n?this.#n.#e:this,this.#m=this.#e===this?I:this.#e.#m,this.#c=this.#e===this?[]:this.#e.#c,e==="!"&&!this.#e.#a&&this.#c.push(this),this.#r=this.#n?this.#n.#I.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#I)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#i!==void 0?this.#i:this.type?this.#i=this.type+"("+this.#I.map(e=>String(e)).join("|")+")":this.#i=this.#I.map(e=>String(e)).join("")}#s(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let l=e,I=l.#n;for(;I;){for(let n=l.#r+1;!I.type&&n<I.#I.length;n++)for(let r of e.#I){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(I.#I[n])}l=I,I=l.#n}}return this}push(...e){for(let l of e)if(l!==""){if(typeof l!="string"&&!(l instanceof t&&l.#n===this))throw new Error("invalid part: "+l);this.#I.push(l)}}toJSON(){let e=this.type===null?this.#I.slice().map(l=>typeof l=="string"?l:l.toJSON()):[this.type,...this.#I.map(l=>l.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#r===0)return!0;let e=this.#n;for(let l=0;l<this.#r;l++){let I=e.#I[l];if(!(I instanceof t&&I.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let e=this.#n?this.#n.#I.length:0;return this.#r===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let l=new t(this.type,e);for(let I of this.#I)l.copyIn(I);return l}static#b(e,l,I,n){let r=!1,a=!1,s=-1,o=!1;if(l.type===null){let g=I,y="";for(;g<e.length;){let R=e.charAt(g++);if(r||R==="\\"){r=!r,y+=R;continue}if(a){g===s+1?(R==="^"||R==="!")&&(o=!0):R==="]"&&!(g===s+2&&o)&&(a=!1),y+=R;continue}else if(R==="["){a=!0,s=g,o=!1,y+=R;continue}if(!n.noext&&oot(R)&&e.charAt(g)==="("){l.push(y),y="";let V=new t(R,l);g=t.#b(e,V,g,n),l.push(V);continue}y+=R}return l.push(y),g}let d=I+1,G=new t(null,l),u=[],h="";for(;d<e.length;){let g=e.charAt(d++);if(r||g==="\\"){r=!r,h+=g;continue}if(a){d===s+1?(g==="^"||g==="!")&&(o=!0):g==="]"&&!(d===s+2&&o)&&(a=!1),h+=g;continue}else if(g==="["){a=!0,s=d,o=!1,h+=g;continue}if(oot(g)&&e.charAt(d)==="("){G.push(h),h="";let y=new t(g,G);G.push(y),d=t.#b(e,y,d,n);continue}if(g==="|"){G.push(h),h="",u.push(G),G=new t(null,l);continue}if(g===")")return h===""&&l.#I.length===0&&(l.#d=!0),G.push(h),h="",l.push(...u,G),d;h+=g}return l.type=null,l.#t=void 0,l.#I=[e.substring(I-1)],d}static fromGlob(e,l={}){let I=new t(null,void 0,l);return t.#b(e,I,0,l),I}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[l,I,n,r]=this.toRegExpSource();if(!(n||this.#t||this.#m.nocase&&!this.#m.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return I;let s=(this.#m.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${l}$`,s),{_src:l,_glob:e})}get options(){return this.#m}toRegExpSource(e){let l=e??!!this.#m.dot;if(this.#e===this&&this.#s(),!this.type){let o=this.isStart()&&this.isEnd(),d=this.#I.map(g=>{let[y,R,V,Q]=typeof g=="string"?t.#p(g,this.#t,o):g.toRegExpSource(e);return this.#t=this.#t||V,this.#l=this.#l||Q,y}).join(""),G="";if(this.isStart()&&typeof this.#I[0]=="string"&&!(this.#I.length===1&&aZl.has(this.#I[0]))){let y=rZl,R=l&&y.has(d.charAt(0))||d.startsWith("\\.")&&y.has(d.charAt(2))||d.startsWith("\\.\\.")&&y.has(d.charAt(4)),V=!l&&!e&&y.has(d.charAt(0));G=R?nZl:V?BGe:""}let u="";return this.isEnd()&&this.#e.#a&&this.#n?.type==="!"&&(u="(?:$|\\/)"),[G+d+u,I2(d),this.#t=!!this.#t,this.#l]}let I=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#N(l);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let o=this.toString();return this.#I=[o],this.type=null,this.#t=void 0,[o,I2(this.toString()),!1,!1]}let a=!I||e||l||!BGe?"":this.#N(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let s="";if(this.type==="!"&&this.#d)s=(this.isStart()&&!l?BGe:"")+iot;else{let o=this.type==="!"?"))"+(this.isStart()&&!l&&!e?BGe:"")+cot+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;s=n+r+o}return[s,I2(r),this.#t=!!this.#t,this.#l]}#N(e){return this.#I.map(l=>{if(typeof l=="string")throw new Error("string type in extglob ast??");let[I,n,r,a]=l.toRegExpSource(e);return this.#l=this.#l||a,I}).filter(l=>!(this.isStart()&&this.isEnd())||!!l).join("|")}static#p(e,l,I=!1){let n=!1,r="",a=!1;for(let s=0;s<e.length;s++){let o=e.charAt(s);if(n){n=!1,r+=(sZl.has(o)?"\\":"")+o;continue}if(o==="\\"){s===e.length-1?r+="\\\\":n=!0;continue}if(o==="["){let[d,G,u,h]=sot(e,s);if(u){r+=d,a=a||G,s+=u-1,l=l||h;continue}}if(o==="*"){I&&e==="*"?r+=iot:r+=cot,l=!0;continue}if(o==="?"){r+=bCe,l=!0;continue}r+=oZl(o)}return[r,I2(e),!!l,a]}};c();var m_=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var Wh=(t,e,l={})=>(z$(e),!l.nocomment&&e.charAt(0)==="#"?!1:new CW(e,l).match(t)),cZl=/^\*+([^+@!?\*\[\(]*)$/,iZl=t=>e=>!e.startsWith(".")&&e.endsWith(t),dZl=t=>e=>e.endsWith(t),mZl=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),GZl=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),bZl=/^\*+\.\*+$/,uZl=t=>!t.startsWith(".")&&t.includes("."),pZl=t=>t!=="."&&t!==".."&&t.includes("."),hZl=/^\.\*+$/,ZZl=t=>t!=="."&&t!==".."&&t.startsWith("."),NZl=/^\*+$/,WZl=t=>t.length!==0&&!t.startsWith("."),gZl=t=>t.length!==0&&t!=="."&&t!=="..",AZl=/^\?+([^+@!?\*\[\(]*)?$/,yZl=([t,e=""])=>{let l=Got([t]);return e?(e=e.toLowerCase(),I=>l(I)&&I.toLowerCase().endsWith(e)):l},RZl=([t,e=""])=>{let l=bot([t]);return e?(e=e.toLowerCase(),I=>l(I)&&I.toLowerCase().endsWith(e)):l},EZl=([t,e=""])=>{let l=bot([t]);return e?I=>l(I)&&I.endsWith(e):l},YZl=([t,e=""])=>{let l=Got([t]);return e?I=>l(I)&&I.endsWith(e):l},Got=([t])=>{let e=t.length;return l=>l.length===e&&!l.startsWith(".")},bot=([t])=>{let e=t.length;return l=>l.length===e&&l!=="."&&l!==".."},uot=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",dot={win32:{sep:"\\"},posix:{sep:"/"}},VZl=uot==="win32"?dot.win32.sep:dot.posix.sep;Wh.sep=VZl;var Kb=Symbol("globstar **");Wh.GLOBSTAR=Kb;var wZl="[^/]",FZl=wZl+"*?",QZl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",vZl="(?:(?!(?:\\/|^)\\.).)*?",CZl=(t,e={})=>l=>Wh(l,t,e);Wh.filter=CZl;var AA=(t,e={})=>Object.assign({},t,e),HZl=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Wh;let e=Wh;return Object.assign((I,n,r={})=>e(I,n,AA(t,r)),{Minimatch:class extends e.Minimatch{constructor(n,r={}){super(n,AA(t,r))}static defaults(n){return e.defaults(AA(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,r,a={}){super(n,r,AA(t,a))}static fromGlob(n,r={}){return e.AST.fromGlob(n,AA(t,r))}},unescape:(I,n={})=>e.unescape(I,AA(t,n)),escape:(I,n={})=>e.escape(I,AA(t,n)),filter:(I,n={})=>e.filter(I,AA(t,n)),defaults:I=>e.defaults(AA(t,I)),makeRe:(I,n={})=>e.makeRe(I,AA(t,n)),braceExpand:(I,n={})=>e.braceExpand(I,AA(t,n)),match:(I,n,r={})=>e.match(I,n,AA(t,r)),sep:e.sep,GLOBSTAR:Kb})};Wh.defaults=HZl;var pot=(t,e={})=>(z$(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:rot(t));Wh.braceExpand=pot;var XZl=(t,e={})=>new CW(t,e).makeRe();Wh.makeRe=XZl;var fZl=(t,e,l={})=>{let I=new CW(e,l);return t=t.filter(n=>I.match(n)),I.options.nonull&&!t.length&&t.push(e),t};Wh.match=fZl;var mot=/[?*]|[+@!]\(.*?\)|\[|\]/,JZl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),CW=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,l={}){z$(e),l=l||{},this.options=l,this.pattern=e,this.platform=l.platform||uot,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!l.windowsPathsNoEscape||l.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!l.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!l.nonegate,this.comment=!1,this.empty=!1,this.partial=!!l.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=l.windowsNoMagicRoot!==void 0?l.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let l of e)if(typeof l!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,l=this.options;if(!l.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],l.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let I=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(I),this.debug(this.pattern,this.globParts);let n=this.globParts.map((r,a,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){let o=r[0]===""&&r[1]===""&&(r[2]==="?"||!mot.test(r[2]))&&!mot.test(r[3]),d=/^[a-z]:/i.test(r[0]);if(o)return[...r.slice(0,4),...r.slice(4).map(G=>this.parse(G))];if(d)return[r[0],...r.slice(1).map(G=>this.parse(G))]}return r.map(o=>this.parse(o))});if(this.debug(this.pattern,n),this.set=n.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let I=0;I<e.length;I++)for(let n=0;n<e[I].length;n++)e[I][n]==="**"&&(e[I][n]="*");let{optimizationLevel:l=1}=this.options;return l>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):l>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(l=>{let I=-1;for(;(I=l.indexOf("**",I+1))!==-1;){let n=I;for(;l[n+1]==="**";)n++;n!==I&&l.splice(I,n-I)}return l})}levelOneOptimize(e){return e.map(l=>(l=l.reduce((I,n)=>{let r=I[I.length-1];return n==="**"&&r==="**"?I:n===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(I.pop(),I):(I.push(n),I)},[]),l.length===0?[""]:l))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let l=!1;do{if(l=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===""&&e[0]===""||(r==="."||r==="")&&(l=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(l=!0,e.pop())}let I=0;for(;(I=e.indexOf("..",I+1))!==-1;){let n=e[I-1];n&&n!=="."&&n!==".."&&n!=="**"&&(l=!0,e.splice(I-1,2),I-=2)}}while(l);return e.length===0?[""]:e}firstPhasePreProcess(e){let l=!1;do{l=!1;for(let I of e){let n=-1;for(;(n=I.indexOf("**",n+1))!==-1;){let a=n;for(;I[a+1]==="**";)a++;a>n&&I.splice(n+1,a-n);let s=I[n+1],o=I[n+2],d=I[n+3];if(s!==".."||!o||o==="."||o===".."||!d||d==="."||d==="..")continue;l=!0,I.splice(n,1);let G=I.slice(0);G[n]="**",e.push(G),n--}if(!this.preserveMultipleSlashes){for(let a=1;a<I.length-1;a++){let s=I[a];a===1&&s===""&&I[0]===""||(s==="."||s==="")&&(l=!0,I.splice(a,1),a--)}I[0]==="."&&I.length===2&&(I[1]==="."||I[1]==="")&&(l=!0,I.pop())}let r=0;for(;(r=I.indexOf("..",r+1))!==-1;){let a=I[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){l=!0;let o=r===1&&I[r+1]==="**"?["."]:[];I.splice(r-1,2,...o),I.length===0&&I.push(""),r-=2}}}}while(l);return e}secondPhasePreProcess(e){for(let l=0;l<e.length-1;l++)for(let I=l+1;I<e.length;I++){let n=this.partsMatch(e[l],e[I],!this.preserveMultipleSlashes);if(n){e[l]=[],e[I]=n;break}}return e.filter(l=>l.length)}partsMatch(e,l,I=!1){let n=0,r=0,a=[],s="";for(;n<e.length&&r<l.length;)if(e[n]===l[r])a.push(s==="b"?l[r]:e[n]),n++,r++;else if(I&&e[n]==="**"&&l[r]===e[n+1])a.push(e[n]),n++;else if(I&&l[r]==="**"&&e[n]===l[r+1])a.push(l[r]),r++;else if(e[n]==="*"&&l[r]&&(this.options.dot||!l[r].startsWith("."))&&l[r]!=="**"){if(s==="b")return!1;s="a",a.push(e[n]),n++,r++}else if(l[r]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(s==="a")return!1;s="b",a.push(l[r]),n++,r++}else return!1;return e.length===l.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,l=!1,I=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)l=!l,I++;I&&(this.pattern=e.slice(I)),this.negate=l}matchOne(e,l,I=!1){let n=this.options;if(this.isWindows){let R=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),V=!R&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),Q=typeof l[0]=="string"&&/^[a-z]:$/i.test(l[0]),f=!Q&&l[0]===""&&l[1]===""&&l[2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3]),x=V?3:R?0:void 0,B=f?3:Q?0:void 0;if(typeof x=="number"&&typeof B=="number"){let[T,q]=[e[x],l[B]];T.toLowerCase()===q.toLowerCase()&&(l[B]=T,B>x?l=l.slice(B):x>B&&(e=e.slice(x)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:l}),this.debug("matchOne",e.length,l.length);for(var a=0,s=0,o=e.length,d=l.length;a<o&&s<d;a++,s++){this.debug("matchOne loop");var G=l[s],u=e[a];if(this.debug(l,G,u),G===!1)return!1;if(G===Kb){this.debug("GLOBSTAR",[l,G,u]);var h=a,g=s+1;if(g===d){for(this.debug("** at the end");a<o;a++)if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return!1;return!0}for(;h<o;){var y=e[h];if(this.debug(`
|
|
960
|
+
`),r=n[n.length-1].length+1,a=`error on line ${n.length} at column ${r}: ${l||"Unknown error"}`,s=this.rootNode.createElementNS(fr.html,"parsererror");s.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),s.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,I.insertBefore(s,I.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[Xt]===rn.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let l=e.split(Q7);if(l.length<=1)return null;let I=l.slice(1).join(" "),n=[],r=new RegExp(Ppl,"gm"),a=I.toUpperCase().includes("PUBLIC"),s;for(;s=r.exec(I);)n.push(s[1]);let o=a&&n[0]||"",d=a?n[1]||"":n[0]||"";return{name:l[1].toLowerCase(),publicId:o,systemId:d}}};var KU=class{parseFromString(e,l){if(!l)throw new this[H].DOMException('Second parameter "mimeType" is mandatory.');let I=this[H];switch(l){case"text/html":let n=new I.HTMLDocument;return n[_u]=I,new bG(this[H]).parse(e,n);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new PU(this[H]).parse(e);default:throw new I.DOMException(`Unknown mime type "${l}".`)}}};c();c();var jve;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(jve||(jve={}));var $d=jve;var qU=class{static END_TO_END=$d.endToEnd;static END_TO_START=$d.endToStart;static START_TO_END=$d.startToEnd;static START_TO_START=$d.startToStart;END_TO_END=$d.endToEnd;END_TO_START=$d.endToStart;START_TO_END=$d.startToEnd;START_TO_START=$d.startToStart;[zt];[vl];[nt];constructor(){let e=this[H];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[nt]=e.document,this[zt]={node:e.document,offset:0},this[vl]={node:e.document,offset:0}}get startContainer(){return this[zt].node}get endContainer(){return this[vl].node}get startOffset(){if(this[zt].offset>0){let e=hn.getNodeLength(this[zt].node);this[zt].offset>e&&(this[zt].offset=e)}return this[zt].offset}get endOffset(){if(this[vl].offset>0){let e=hn.getNodeLength(this[vl].node);this[vl].offset>e&&(this[vl].offset=e)}return this[vl].offset}get collapsed(){return this[zt].node===this[vl].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[zt].node;for(;e;){if(hn.isInclusiveAncestor(e,this[vl].node))return e;e=e[sl]}return null}collapse(e=!1){e?this[vl]=Object.assign({},this[zt]):this[zt]=Object.assign({},this[vl])}compareBoundaryPoints(e,l){if(e!==$d.startToStart&&e!==$d.startToEnd&&e!==$d.endToEnd&&e!==$d.endToStart)throw new this[H].DOMException(`The comparison method provided must be one of '${$d.startToStart}', '${$d.startToEnd}', '${$d.endToEnd}' or '${$d.endToStart}'.`,qe.notSupportedError);if(this[nt]!==l[nt])throw new this[H].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);let I={node:null,offset:0},n={node:null,offset:0};switch(e){case $d.startToStart:I.node=this[zt].node,I.offset=this.startOffset,n.node=l[zt].node,n.offset=l.startOffset;break;case $d.startToEnd:I.node=this[vl].node,I.offset=this.endOffset,n.node=l[zt].node,n.offset=l.startOffset;break;case $d.endToEnd:I.node=this[vl].node,I.offset=this.endOffset,n.node=l[vl].node,n.offset=l.endOffset;break;case $d.endToStart:I.node=this[zt].node,I.offset=this.startOffset,n.node=l[vl].node,n.offset=l.endOffset;break}return bs.compareBoundaryPointsPosition(I,n)}comparePoint(e,l){if(e[nt]!==this[nt])throw new this[H].DOMException("The two Ranges are not in the same tree.",qe.wrongDocumentError);bs.validateBoundaryPoint({node:e,offset:l});let I={node:e,offset:l};return bs.compareBoundaryPointsPosition(I,{node:this[zt].node,offset:this.startOffset})===-1?-1:bs.compareBoundaryPointsPosition(I,{node:this[vl].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[H],l=this[nt].createDocumentFragment(),I=this.startOffset,n=this.endOffset;if(this.collapsed)return l;if(this[zt].node===this[vl].node&&(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)){let d=this[zt].node.cloneNode(!1);return d[Ja]=d.substringData(I,n-I),l.appendChild(d),l}let r=this[zt].node;for(;!hn.isInclusiveAncestor(r,this[vl].node);)r=r[sl];let a=null;if(!hn.isInclusiveAncestor(this[zt].node,this[vl].node)){let d=r.firstChild;for(;!a;)bs.isPartiallyContained(d,this)&&(a=d),d=d.nextSibling}let s=null;if(!hn.isInclusiveAncestor(this[vl].node,this[zt].node)){let d=r.lastChild;for(;!s;)bs.isPartiallyContained(d,this)&&(s=d),d=d.previousSibling}let o=[];for(let d of r[el])if(bs.isContained(d,this)){if(d[Xt]===ht.documentTypeNode)throw new e.DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(d)}if(a!==null&&(a[Xt]===ht.textNode||a[Xt]===ht.processingInstructionNode||a[Xt]===ht.commentNode)){let d=this[zt].node.cloneNode(!1);d[Ja]=d.substringData(I,hn.getNodeLength(this[zt].node)-I),l.appendChild(d)}else if(a!==null){let d=a.cloneNode();l.appendChild(d);let G=new e.Range;G[zt].node=this[zt].node,G[zt].offset=I,G[vl].node=a,G[vl].offset=hn.getNodeLength(a);let u=G.cloneContents();d.appendChild(u)}for(let d of o){let G=d.cloneNode(!0);l.appendChild(G)}if(s!==null&&(s[Xt]===ht.textNode||s[Xt]===ht.processingInstructionNode||s[Xt]===ht.commentNode)){let d=this[vl].node.cloneNode(!1);d[Ja]=d.substringData(0,n),l.appendChild(d)}else if(s!==null){let d=s.cloneNode(!1);l.appendChild(d);let G=new e.Range;G[zt].node=s,G[zt].offset=0,G[vl].node=this[vl].node,G[vl].offset=n;let u=G.cloneContents();d.appendChild(u)}return l}cloneRange(){let e=new this[H].Range;return e[zt].node=this[zt].node,e[zt].offset=this[zt].offset,e[vl].node=this[vl].node,e[vl].offset=this[vl].offset,e}createContextualFragment(e){return new bG(this[H]).parse(e)}deleteContents(){let e=this.startOffset,l=this.endOffset;if(this.collapsed)return;if(this[zt].node===this[vl].node&&(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)){this[zt].node.replaceData(e,l-e,"");return}let I=[],n=this[zt].node,r=hn.nextDescendantNode(this[vl].node);for(;n&&n!==r;)bs.isContained(n,this)&&!bs.isContained(n[sl],this)&&I.push(n),n=hn.following(n);let a,s;if(hn.isInclusiveAncestor(this[zt].node,this[vl].node))a=this[zt].node,s=e;else{let o=this[zt].node;for(;o&&!hn.isInclusiveAncestor(o[sl],this[vl].node);)o=o[sl];a=o[sl],s=o[sl][el].indexOf(o)+1}(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)&&this[zt].node.replaceData(this.startOffset,hn.getNodeLength(this[zt].node)-this.startOffset,"");for(let o of I)o[sl].removeChild(o);(this[vl].node[Xt]===ht.textNode||this[vl].node[Xt]===ht.processingInstructionNode||this[vl].node[Xt]===ht.commentNode)&&this[vl].node.replaceData(0,l,""),this[zt].node=a,this[zt].offset=s,this[vl].node=a,this[vl].offset=s}detach(){}extractContents(){let e=this[H],l=this[nt].createDocumentFragment(),I=this.startOffset,n=this.endOffset;if(this.collapsed)return l;if(this[zt].node===this[vl].node&&(this[zt].node[Xt]===ht.textNode||this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode)){let u=this[zt].node.cloneNode(!1);return u[Ja]=u.substringData(I,n-I),l.appendChild(u),this[zt].node.replaceData(I,n-I,""),l}let r=this[zt].node;for(;!hn.isInclusiveAncestor(r,this[vl].node);)r=r[sl];let a=null;if(!hn.isInclusiveAncestor(this[zt].node,this[vl].node)){let u=r.firstChild;for(;!a;)bs.isPartiallyContained(u,this)&&(a=u),u=u.nextSibling}let s=null;if(!hn.isInclusiveAncestor(this[vl].node,this[zt].node)){let u=r.lastChild;for(;!s;)bs.isPartiallyContained(u,this)&&(s=u),u=u.previousSibling}let o=[];for(let u of r[el])if(bs.isContained(u,this)){if(u[Xt]===ht.documentTypeNode)throw new this[H].DOMException("Invalid document type element.",qe.hierarchyRequestError);o.push(u)}let d,G;if(hn.isInclusiveAncestor(this[zt].node,this[vl].node))d=this[zt].node,G=I;else{let u=this[zt].node;for(;u&&!hn.isInclusiveAncestor(u[sl],this[vl].node);)u=u[sl];d=u[sl],G=u[sl][el].indexOf(u)+1}if(a!==null&&(a[Xt]===ht.textNode||a[Xt]===ht.processingInstructionNode||a[Xt]===ht.commentNode)){let u=this[zt].node.cloneNode(!1);u[Ja]=u.substringData(I,hn.getNodeLength(this[zt].node)-I),l.appendChild(u),this[zt].node.replaceData(I,hn.getNodeLength(this[zt].node)-I,"")}else if(a!==null){let u=a.cloneNode(!1);l.appendChild(u);let h=new e.Range;h[zt].node=this[zt].node,h[zt].offset=I,h[vl].node=a,h[vl].offset=hn.getNodeLength(a);let g=h.extractContents();u.appendChild(g)}for(let u of o)l.appendChild(u);if(s!==null&&(s[Xt]===ht.textNode||s[Xt]===ht.processingInstructionNode||s[Xt]===ht.commentNode)){let u=this[vl].node.cloneNode(!1);u[Ja]=u.substringData(0,n),l.appendChild(u),this[vl].node.replaceData(0,n,"")}else if(s!==null){let u=s.cloneNode(!1);l.appendChild(u);let h=new e.Range;h[zt].node=s,h[zt].offset=0,h[vl].node=this[vl].node,h[vl].offset=n;let g=h.extractContents();u.appendChild(g)}return this[zt].node=d,this[zt].offset=G,this[vl].node=d,this[vl].offset=G,l}getBoundingClientRect(){return new pA}getClientRects(){return new fk(z)}isPointInRange(e,l=0){if(e[nt]!==this[nt])return!1;let I={node:e,offset:l};return bs.validateBoundaryPoint(I),!(bs.compareBoundaryPointsPosition(I,{node:this[zt].node,offset:this.startOffset})===-1||bs.compareBoundaryPointsPosition(I,{node:this[vl].node,offset:this.endOffset})===1)}insertNode(e){if(this[zt].node[Xt]===ht.processingInstructionNode||this[zt].node[Xt]===ht.commentNode||this[zt].node[Xt]===ht.textNode&&!this[zt].node[sl]||e===this[zt].node)throw new this[H].DOMException("Invalid start node.",qe.hierarchyRequestError);let l=this[zt].node[Xt]===ht.textNode?this[zt].node:this[zt].node[el][this.startOffset]||null,I=l?l[sl]:this[zt].node;this[zt].node[Xt]===ht.textNode&&(l=this[zt].node.splitText(this.startOffset)),e===l&&(l=l.nextSibling);let n=e[sl];n&&n.removeChild(e);let r=l?l[sl][el].indexOf(l):hn.getNodeLength(I);r+=e[Xt]===ht.documentFragmentNode?hn.getNodeLength(e):1,I.insertBefore(e,l),this.collapsed&&(this[vl].node=I,this[vl].offset=r)}intersectsNode(e){if(e[nt]!==this[nt])return!1;let l=e[sl];if(!l)return!0;let I=l[el].indexOf(e);return bs.compareBoundaryPointsPosition({node:l,offset:I},{node:this[vl].node,offset:this.endOffset})===-1&&bs.compareBoundaryPointsPosition({node:l,offset:I+1},{node:this[zt].node,offset:this.startOffset})===1}selectNode(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);let l=e[sl][el].indexOf(e);this[zt].node=e[sl],this[zt].offset=l,this[vl].node=e[sl],this[vl].offset=l+1}selectNodeContents(e){if(e[Xt]===ht.documentTypeNode)throw new this[H].DOMException("DocumentType Node can't be used as boundary point.",qe.invalidNodeTypeError);this[zt].node=e,this[zt].offset=0,this[vl].node=e,this[vl].offset=hn.getNodeLength(e)}setEnd(e,l=0){bs.validateBoundaryPoint({node:e,offset:l});let I={node:e,offset:l};(e[nt]!==this[nt]||bs.compareBoundaryPointsPosition(I,{node:this[zt].node,offset:this.startOffset})===-1)&&(this[zt].node=e,this[zt].offset=l),this[vl].node=e,this[vl].offset=l}setStart(e,l=0){bs.validateBoundaryPoint({node:e,offset:l});let I={node:e,offset:l};(e[nt]!==this[nt]||bs.compareBoundaryPointsPosition(I,{node:this[vl].node,offset:this.endOffset})===1)&&(this[vl].node=e,this[vl].offset=l),this[zt].node=e,this[zt].offset=l}setEndAfter(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[sl],e[sl][el].indexOf(e)+1)}setEndBefore(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setEnd(e[sl],e[sl][el].indexOf(e))}setStartAfter(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[sl],e[sl][el].indexOf(e)+1)}setStartBefore(e){if(!e[sl])throw new this[H].DOMException("The given Node has no parent.",qe.invalidNodeTypeError);this.setStart(e[sl],e[sl][el].indexOf(e))}surroundContents(e){let l=this.commonAncestorContainer;if(!l)return;let I=hn.nextDescendantNode(l);for(;l&&l!==I;){if(l[Xt]!==ht.textNode&&bs.isPartiallyContained(l,this))throw new this[H].DOMException("The Range has partially contains a non-Text node.",qe.invalidStateError);l=hn.following(l)}if(e[Xt]===ht.documentNode||e[Xt]===ht.documentTypeNode||e[Xt]===ht.documentFragmentNode)throw new this[H].DOMException("Invalid element type.",qe.invalidNodeTypeError);let n=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(n),this.selectNode(e)}toString(){let e=this.startOffset,l=this.endOffset,I="";if(this[zt].node===this[vl].node&&this[zt].node[Xt]===ht.textNode)return this[zt].node.data.slice(e,l);this[zt].node[Xt]===ht.textNode&&(I+=this[zt].node.data.slice(e));let n=hn.nextDescendantNode(this[vl].node),r=this[zt].node;for(;r&&r!==n;)r[Xt]===ht.textNode&&bs.isContained(r,this)&&(I+=r.data),r=hn.following(r);return this[vl].node[Xt]===ht.textNode&&(I+=this[vl].node.data.slice(0,l)),I}};c();c();var $H=class extends Xr{id="";startTime=0;endTime=0;pauseOnExit=!1;[rT]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==z)throw new TypeError("Illegal constructor");if(!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[rT]}};var $U=class extends $H{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(e,l,I){super(z);let n=this[H],r=0;if(e!==void 0&&r++,l!==void 0&&r++,I!==void 0&&r++,r<3)throw new n.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${r} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new n.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=e,this.endTime=l,this.text=String(I)}getCueAsHTML(){let e=this[H],l=e.document.createDocumentFragment();return l.appendChild(e.document.createTextNode(this.text)),l}};c();var e_=class extends Xr{[QZ]=qE.subtitles;[Vw]="";[Gk]="";[C8]="";[Uo]="disabled";[mk]=new Pw(z);[sve]=new Pw(z);oncuechange=null;constructor(e){if(super(),e!==z)throw new TypeError("Illegal constructor");if(!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[QZ]}get label(){return this[Vw]}get language(){return this[Gk]}get id(){return this[C8]}get mode(){return this[Uo]}set mode(e){e!=="disabled"&&e!=="showing"||(this[Uo]=e)}get cues(){return this[Uo]==="disabled"?null:this[mk]}get activeCues(){return this[Uo]==="disabled"?null:this[sve]}addCue(e){this[mk].includes(e)||(e[rT]=this,this[mk].push(e))}removeCue(e){let l=this[mk].indexOf(e);l!==-1&&(e[rT]=null,this[mk].splice(l,1))}};c();var t_=class t extends Xr{[Zl]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(e,l){if(super(),e!==z)throw new TypeError("Illegal constructor");this[Zl]=l;let I=new Co(this,[t,Xr]);return new Proxy(this,{get:(n,r)=>{if(r==="length")return l.length;if(r in n||typeof r=="symbol")return I.bind(r),n[r];let a=Number(r);if(!isNaN(a))return l[a]},set(n,r,a){if(I.bind(r),typeof r=="symbol")return n[r]=a,!0;let s=Number(r);return isNaN(s)&&(n[r]=a),!0},deleteProperty(n,r){if(typeof r=="symbol")return delete n[r],!0;let a=Number(r);return isNaN(a)&&delete n[r],!0},ownKeys(){return Object.keys(l)},has(n,r){if(r in n)return!0;if(typeof r=="symbol")return!1;let a=Number(r);return!isNaN(a)&&a>=0&&a<l.length},defineProperty(n,r,a){return I.preventBinding(r),r in n?(Object.defineProperty(n,r,a),!0):!1},getOwnPropertyDescriptor(n,r){if(r in n||typeof r=="symbol")return;let a=Number(r);if(!isNaN(a)&&l[a])return{value:l[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Zl].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Zl][Symbol.iterator]()}getTrackById(e){for(let l of this[Zl])if(l.id===e)return l;return null}};c();var l_=class extends Xr{[ove]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[ove]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};c();var Ost=dt(Bst(),1);c();var qve;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(qve||(qve={}));var qw=qve;c();var $ve;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})($ve||($ve={}));var $w=$ve;c();var eCe;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(eCe||(eCe={}));var zk=eCe;import{Buffer as chl}from"buffer";var I_=class extends Xr{error=null;result=null;readyState=qw.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#t=null;#l=null;constructor(){if(super(),!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.buffer)}readAsBinaryString(e){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.binaryString)}readAsDataURL(e){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.dataURL)}readAsText(e,l=null){if(!(e instanceof ys))throw new this[H].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#I(e,$w.text,l||"UTF-8")}abort(){let e=this[H];if(this.#t&&e.clearTimeout(this.#t),this.#l&&e.clearTimeout(this.#l),this.readyState===qw.empty||this.readyState===qw.done){this.result=null;return}this.readyState===qw.loading&&(this.readyState=qw.done,this.result=null),this.#e=!0,this.dispatchEvent(new Gh(zk.abort)),this.dispatchEvent(new Gh(zk.loadend))}#I(e,l,I=null){let n=this[H];if(this.readyState===qw.loading)throw new n.DOMException("The object is in an invalid state.",qe.invalidStateError);this.readyState=qw.loading,this.#t=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new Gh(zk.loadstart));let r=e[Rr];r||(r=chl.alloc(0)),this.dispatchEvent(new Gh(zk.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:r.length})),this.#l=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(l){default:case $w.buffer:{this.result=new Uint8Array(r).buffer;break}case $w.binaryString:{this.result=r.toString("binary");break}case $w.dataURL:{let a=Ost.default.parse(e.type)||"application/octet-stream";this.result=`data:${a};base64,${r.toString("base64")}`;break}case $w.text:{this.result=new TextDecoder(I||"UTF-8").decode(r);break}}this.readyState=qw.done,this.dispatchEvent(new Gh(zk.load)),this.dispatchEvent(new Gh(zk.loadend))})})}};c();import ihl from"crypto";var dhl={aspectRatio:{max:300,min:.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},mhl={deviceId:"",frameRate:60,resizeMode:"none"},tX=class extends Xr{contentHint="";enabled=!0;id=ihl.randomUUID();muted=!1;readyState="live";label="";[Vw]="";[QZ]="video";[IT]={};[L0]=JSON.parse(JSON.stringify(dhl));[mH]=JSON.parse(JSON.stringify(mhl));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==z)throw new TypeError("Illegal constructor");if(!this[H])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[QZ]}async applyConstraints(e){this.#e(this[IT],e)}getConstraints(){return this[IT]}getCapabilities(){return this[L0]}getSettings(){return this[mH]}clone(){let e=new this.constructor(z);return e[QZ]=this[QZ],e[IT]=this[IT],e[L0]=this[L0],e[mH]=this[mH],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState="ended"}#e(e,l){for(let I in l)l[I]!==null&&typeof l[I]=="object"&&!Array.isArray(l[I])?(typeof e[I]!="object"&&(e[I]={}),this.#e(e[I],l[I])):e[I]=l[I]}};c();var C7=class extends tX{[H8];constructor(e,l){super(e),this[H8]=l}get canvas(){return this[H8]}requestFrame(){}clone(){let e=super.clone();return e[H8]=this.canvas,e}};var H7=class{static extendClasses(e){class l extends ph{}l.prototype[H]=e,e.Document=l;class I extends kU{}I.prototype[H]=e,e.HTMLDocument=I;class n extends LU{}n.prototype[H]=e,e.XMLDocument=n;class r extends KH{}r.prototype[H]=e,e.DocumentFragment=r;class a extends xU{}a.prototype[H]=e,e.Text=a;class s extends SU{}s.prototype[H]=e,e.Comment=s;class o extends BU{}o.prototype[H]=e,e.Image=o;class d extends E7{}d.prototype[H]=e,e.Audio=d;class G extends OU{}G.prototype[H]=e,e.MutationObserver=G;class u extends V7{}u.prototype[H]=e,e.MessagePort=u;class h extends UU{}h.prototype[H]=e,e.CSSStyleSheet=h;class g extends Un{}e.DOMException=g;class y extends _U{}y.prototype[H]=e,e.Request=y;class R extends bh{}R.prototype[H]=e,R[H]=e,e.Response=R;class V extends Xr{}V.prototype[H]=e,e.EventTarget=V;class Q extends w7{}Q.prototype[H]=e,e.XMLHttpRequestUpload=Q;class f extends Kw{}f.prototype[H]=e,e.XMLHttpRequestEventTarget=f;class x extends zU{}x.prototype[H]=e,e.AbortController=x;class B extends MU{}B.prototype[H]=e,B[H]=e,e.AbortSignal=B;class T extends fH{}T.prototype[H]=e,e.FormData=T;class q extends DU{}q.prototype[H]=e,e.PermissionStatus=q;class te extends F7{}te.prototype[H]=e,e.XMLHttpRequest=te;class ae extends KU{}ae.prototype[H]=e,e.DOMParser=ae;class U extends qU{}U.prototype[H]=e,e.Range=U;class $ extends $U{}$.prototype[H]=e,e.VTTCue=$;class ue extends e_{}ue.prototype[H]=e,e.TextTrack=ue;class pe extends t_{}pe.prototype[H]=e,e.TextTrackList=pe;class ye extends $H{}ye.prototype[H]=e,e.TextTrackCue=ye;class ne extends l_{}ne.prototype[H]=e,e.RemotePlayback=ne;class j extends I_{}j.prototype[H]=e,e.FileReader=j;class me extends BH{}me.prototype[H]=e,e.MediaStream=me;class ce extends tX{}ce.prototype[H]=e,e.MediaStreamTrack=ce;class we extends C7{}we.prototype[H]=e,e.CanvasCaptureMediaStreamTrack=we}};c();c();c();c();c();c();var X7=class{[ut]=0;[pt]=0;[zb]=0;[bk]=1;constructor(e,l,I,n){this[ut]=e!=null?Number(e):0,this[pt]=l!=null?Number(l):0,this[zb]=I!=null?Number(I):0,this[bk]=n!=null?Number(n):1}get x(){return this[ut]}get y(){return this[pt]}get z(){return this[zb]}get w(){return this[bk]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}};var Mk=class extends X7{set x(e){this[ut]=e}get x(){return this[ut]}set y(e){this[pt]=e}get y(){return this[pt]}set z(e){this[zb]=e}get z(){return this[zb]}set w(e){this[bk]=e}get w(){return this[bk]}};var n_={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},Ghl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,bhl=/[\s,]+/,Dk=class t{[tr]=1;[pr]=0;[Wa]=0;[ga]=0;[lr]=0;[hr]=1;[Aa]=0;[ya]=0;[$r]=0;[aa]=0;[sa]=1;[ea]=0;[Ir]=0;[Zr]=0;[oa]=0;[ca]=1;constructor(e){e&&this[aT](e)}get a(){return this[tr]}get b(){return this[pr]}get c(){return this[lr]}get d(){return this[hr]}get e(){return this[Ir]}get f(){return this[Zr]}get m11(){return this[tr]}get m12(){return this[pr]}get m13(){return this[Wa]}get m14(){return this[ga]}get m21(){return this[lr]}get m22(){return this[hr]}get m23(){return this[Aa]}get m24(){return this[ya]}get m31(){return this[$r]}get m32(){return this[aa]}get m33(){return this[sa]}get m34(){return this[ea]}get m41(){return this[Ir]}get m42(){return this[Zr]}get m43(){return this[oa]}get m44(){return this[ca]}get isIdentity(){return this[tr]===1&&this[pr]===0&&this[Wa]===0&&this[ga]===0&&this[lr]===0&&this[hr]===1&&this[Aa]===0&&this[ya]===0&&this[$r]===0&&this[aa]===0&&this[sa]===1&&this[ea]===0&&this[Ir]===0&&this[Zr]===0&&this[oa]===0&&this[ca]===1}get is2D(){return this[$r]===0&&this[aa]===0&&this[sa]===1&&this[ea]===0&&this[oa]===0&&this[ca]===1}toFloat32Array(e){return Float32Array.from(this[oq](e))}toFloat64Array(e){return Float64Array.from(this[oq](e))}toString(){let e=this.is2D,l=this[oq](e).join(", ");return`${e?"matrix":"matrix3d"}(${l})`}toJSON(){let{is2D:e,isIdentity:l}=this;return{m11:this[tr],m12:this[pr],m13:this[Wa],m14:this[ga],m21:this[lr],m22:this[hr],m23:this[Aa],m24:this[ya],m31:this[$r],m32:this[aa],m33:this[sa],m34:this[ea],m41:this[Ir],m42:this[Zr],m43:this[oa],m44:this[ca],a:this[tr],b:this[pr],c:this[lr],d:this[hr],e:this[Ir],f:this[Zr],is2D:e,isIdentity:l}}multiply(e){let l=new this.constructor(this);return l[HZ](e),l}translate(e=0,l=0,I=0){let n=new this.constructor(this);return n[CZ](e,l,I),n}scale(e,l,I=1,n=0,r=0,a=0){let s=new this.constructor(this);return s[kE](e,l,I,n,r,a),s}scale3d(e=1,l=0,I=0,n=0){let r=new this.constructor(this);return r[cq](e,l,I,n),r}scaleNonUniform(e=1,l=1){let I=new this.constructor(this);return I[iq](e,l),I}rotateAxisAngle(e=0,l=0,I=0,n=0){let r=new this.constructor(this);return r[Qw](e,l,I,n),r}rotate(e=0,l,I){let n=new this.constructor(this);return n[Fw](e,l,I),n}rotateFromVector(e=0,l=0){let I=new this.constructor(this);return I[_q](e,l),I}skewX(e){let l=new this.constructor(this);return l[pk](e),l}skewY(e){let l=new this.constructor(this);return l[hk](e),l}flipX(){let e=new this.constructor(this);return e[zq](),e}flipY(){let e=new this.constructor(this);return e[Mq](),e}inverse(){let e=new this.constructor(this);return e[Dq](),e}transformPoint(e){let l=e.x??0,I=e.y??0,n=e.z??0,r=e.w??1,a=this[tr]*l+this[lr]*I+this[$r]*n+this[Ir]*r,s=this[pr]*l+this[hr]*I+this[aa]*n+this[Zr]*r,o=this[Wa]*l+this[Aa]*I+this[sa]*n+this[oa]*r,d=this[ga]*l+this[ya]*I+this[ea]*n+this[ca]*r;return new Mk(a,s,o,d)}[aT](e){let l=null;if(typeof e=="string"&&e.length&&e!=="none")l=this.constructor[uk](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)l=this.constructor[vZ](e);else if(typeof e=="object")l=this.constructor.fromMatrix(e);else return;this[tr]=l[tr],this[pr]=l[pr],this[Wa]=l[Wa],this[ga]=l[ga],this[lr]=l[lr],this[hr]=l[hr],this[Aa]=l[Aa],this[ya]=l[ya],this[$r]=l[$r],this[aa]=l[aa],this[sa]=l[sa],this[ea]=l[ea],this[Ir]=l[Ir],this[Zr]=l[Zr],this[oa]=l[oa],this[ca]=l[ca]}[HZ](e){let l=e;l instanceof t||(l?.m11===void 0&&l?.a!==void 0?(l=Object.assign({},n_,l),l.m11=l.a,l.m12=l.b,l.m21=l.c,l.m22=l.d,l.m41=l.e,l.m42=l.f):l=Object.assign({},n_,l));let I=this[tr]*l.m11+this[lr]*l.m12+this[$r]*l.m13+this[Ir]*l.m14,n=this[tr]*l.m21+this[lr]*l.m22+this[$r]*l.m23+this[Ir]*l.m24,r=this[tr]*l.m31+this[lr]*l.m32+this[$r]*l.m33+this[Ir]*l.m34,a=this[tr]*l.m41+this[lr]*l.m42+this[$r]*l.m43+this[Ir]*l.m44,s=this[pr]*l.m11+this[hr]*l.m12+this[aa]*l.m13+this[Zr]*l.m14,o=this[pr]*l.m21+this[hr]*l.m22+this[aa]*l.m23+this[Zr]*l.m24,d=this[pr]*l.m31+this[hr]*l.m32+this[aa]*l.m33+this[Zr]*l.m34,G=this[pr]*l.m41+this[hr]*l.m42+this[aa]*l.m43+this[Zr]*l.m44,u=this[Wa]*l.m11+this[Aa]*l.m12+this[sa]*l.m13+this[oa]*l.m14,h=this[Wa]*l.m21+this[Aa]*l.m22+this[sa]*l.m23+this[oa]*l.m24,g=this[Wa]*l.m31+this[Aa]*l.m32+this[sa]*l.m33+this[oa]*l.m34,y=this[Wa]*l.m41+this[Aa]*l.m42+this[sa]*l.m43+this[oa]*l.m44,R=this[ga]*l.m11+this[ya]*l.m12+this[ea]*l.m13+this[ca]*l.m14,V=this[ga]*l.m21+this[ya]*l.m22+this[ea]*l.m23+this[ca]*l.m24,Q=this[ga]*l.m31+this[ya]*l.m32+this[ea]*l.m33+this[ca]*l.m34,f=this[ga]*l.m41+this[ya]*l.m42+this[ea]*l.m43+this[ca]*l.m44;this[tr]=I,this[pr]=s,this[Wa]=u,this[ga]=R,this[lr]=n,this[hr]=o,this[Aa]=h,this[ya]=V,this[$r]=r,this[aa]=d,this[sa]=g,this[ea]=Q,this[Ir]=a,this[Zr]=G,this[oa]=y,this[ca]=f}[CZ](e=0,l=0,I=0){let n=this.constructor[vZ]([1,0,0,0,0,1,0,0,0,0,1,0,e,l,I,1]);this[HZ](n)}[kE](e,l,I=1,n=0,r=0,a=0){e=e===void 0?1:Number(e),l=l===void 0?e:Number(l),(n!==0||r!==0||a!==0)&&this[CZ](n,r,a),(e!==1||l!==1||I!==1)&&this[HZ](this.constructor[vZ]([e,0,0,0,0,l,0,0,0,0,I,0,0,0,0,1])),(n!==0||r!==0||a!==0)&&this[CZ](-n,-r,-a)}[cq](e=1,l=0,I=0,n=0){(l!==0||I!==0||n!==0)&&this[CZ](l,I,n),e!==1&&this[HZ](this.constructor[vZ]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(l!==0||I!==0||n!==0)&&this[CZ](-l,-I,-n)}[iq](e=1,l=1){e===1&&l===1||this[HZ](this.constructor[vZ]([e,0,0,0,0,l,0,0,0,0,1,0,0,0,0,1]))}[Qw](e=0,l=0,I=0,n=0){if(e=Number(e),l=Number(l),I=Number(I),n=Number(n),isNaN(e)||isNaN(l)||isNaN(I)||isNaN(n))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let r=Math.hypot(e,l,I);if(r===0)return;r!==1&&(e/=r,l/=r,I/=r);let a=-(n*Math.PI/360),s=this.#e,o=Math.sin(a)*Math.cos(a),d=Math.sin(a)*Math.sin(a),G=s(1-2*(l*l+I*I)*d),u=s(2*(e*l*d+I*o)),h=s(2*(e*I*d-l*o)),g=s(2*(e*l*d-I*o)),y=s(1-2*(e*e+I*I)*d),R=s(2*(l*I*d+e*o)),V=s(2*(e*I*d+l*o)),Q=s(2*(l*I*d-e*o)),f=s(1-2*(e*e+l*l)*d),x=this.constructor[vZ]([G,g,V,0,u,y,Q,0,h,R,f,0,0,0,0,1]);this[HZ](x)}[Fw](e=0,l,I){if(l===void 0&&I===void 0&&(I=e,e=0,l=0),l===void 0&&(l=0),I===void 0&&(I=0),e=Number(e),l=Number(l),I=Number(I),isNaN(e)||isNaN(l)||isNaN(I))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");I!==0&&this[Qw](0,0,1,I),l!==0&&this[Qw](0,1,0,l),e!==0&&this[Qw](1,0,0,e)}[_q](e=0,l=0){e===0&&l===0||this[Fw](Math.atan2(l,e)*180/Math.PI)}[pk](e){let l=Object.assign({},n_),I=Math.tan(e*Math.PI/180);l.m21=I,l.c=I,this[HZ](l)}[hk](e){let l=Object.assign({},n_),I=Math.tan(e*Math.PI/180);l.m12=I,l.b=I,this[HZ](l)}[zq](){let e=this.constructor[vZ]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[HZ](e)}[Mq](){let e=this.constructor[vZ]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[HZ](e)}[Dq](){let e=this[hr]*this[sa]*this[ca]-this[hr]*this[ea]*this[oa]-this[aa]*this[Aa]*this[ca]+this[aa]*this[ya]*this[oa]+this[Zr]*this[Aa]*this[ea]-this[Zr]*this[ya]*this[sa],l=-this[pr]*this[sa]*this[ca]+this[pr]*this[ea]*this[oa]+this[aa]*this[Wa]*this[ca]-this[aa]*this[ga]*this[oa]-this[Zr]*this[Wa]*this[ea]+this[Zr]*this[ga]*this[sa],I=this[pr]*this[Aa]*this[ca]-this[pr]*this[ya]*this[oa]-this[hr]*this[Wa]*this[ca]+this[hr]*this[ga]*this[oa]+this[Zr]*this[Wa]*this[ya]-this[Zr]*this[ga]*this[Aa],n=-this[pr]*this[Aa]*this[ea]+this[pr]*this[ya]*this[sa]+this[hr]*this[Wa]*this[ea]-this[hr]*this[ga]*this[sa]-this[aa]*this[Wa]*this[ya]+this[aa]*this[ga]*this[Aa],r=this[tr]*e+this[lr]*l+this[$r]*I+this[Ir]*n;if(r===0){this[tr]=NaN,this[pr]=NaN,this[Wa]=NaN,this[ga]=NaN,this[lr]=NaN,this[hr]=NaN,this[Aa]=NaN,this[ya]=NaN,this[$r]=NaN,this[aa]=NaN,this[sa]=NaN,this[ea]=NaN,this[Ir]=NaN,this[Zr]=NaN,this[oa]=NaN,this[ca]=NaN;return}let a=-this[lr]*this[sa]*this[ca]+this[lr]*this[ea]*this[oa]+this[$r]*this[Aa]*this[ca]-this[$r]*this[ya]*this[oa]-this[Ir]*this[Aa]*this[ea]+this[Ir]*this[ya]*this[sa],s=this[tr]*this[sa]*this[ca]-this[tr]*this[ea]*this[oa]-this[$r]*this[Wa]*this[ca]+this[$r]*this[ga]*this[oa]+this[Ir]*this[Wa]*this[ea]-this[Ir]*this[ga]*this[sa],o=-this[tr]*this[Aa]*this[ca]+this[tr]*this[ya]*this[oa]+this[lr]*this[Wa]*this[ca]-this[lr]*this[ga]*this[oa]-this[Ir]*this[Wa]*this[ya]+this[Ir]*this[ga]*this[Aa],d=this[tr]*this[Aa]*this[ea]-this[tr]*this[ya]*this[sa]-this[lr]*this[Wa]*this[ea]+this[lr]*this[ga]*this[sa]+this[$r]*this[Wa]*this[ya]-this[$r]*this[ga]*this[Aa],G=this[lr]*this[aa]*this[ca]-this[lr]*this[ea]*this[Zr]-this[$r]*this[hr]*this[ca]+this[$r]*this[ya]*this[Zr]+this[Ir]*this[hr]*this[ea]-this[Ir]*this[ya]*this[aa],u=-this[tr]*this[aa]*this[ca]+this[tr]*this[ea]*this[Zr]+this[$r]*this[pr]*this[ca]-this[$r]*this[ga]*this[Zr]-this[Ir]*this[pr]*this[ea]+this[Ir]*this[ga]*this[aa],h=this[tr]*this[hr]*this[ca]-this[tr]*this[ya]*this[Zr]-this[lr]*this[pr]*this[ca]+this[lr]*this[ga]*this[Zr]+this[Ir]*this[pr]*this[ya]-this[Ir]*this[ga]*this[hr],g=-this[tr]*this[hr]*this[ea]+this[tr]*this[ya]*this[aa]+this[lr]*this[pr]*this[ea]-this[lr]*this[ga]*this[aa]-this[$r]*this[pr]*this[ya]+this[$r]*this[ga]*this[hr],y=-this[lr]*this[aa]*this[oa]+this[lr]*this[sa]*this[Zr]+this[$r]*this[hr]*this[oa]-this[$r]*this[Aa]*this[Zr]-this[Ir]*this[hr]*this[sa]+this[Ir]*this[Aa]*this[aa],R=this[tr]*this[aa]*this[oa]-this[tr]*this[sa]*this[Zr]-this[$r]*this[pr]*this[oa]+this[$r]*this[Wa]*this[Zr]+this[Ir]*this[pr]*this[sa]-this[Ir]*this[Wa]*this[aa],V=-this[tr]*this[hr]*this[oa]+this[tr]*this[Aa]*this[Zr]+this[lr]*this[pr]*this[oa]-this[lr]*this[Wa]*this[Zr]-this[Ir]*this[pr]*this[Aa]+this[Ir]*this[Wa]*this[hr],Q=this[tr]*this[hr]*this[sa]-this[tr]*this[Aa]*this[aa]-this[lr]*this[pr]*this[sa]+this[lr]*this[Wa]*this[aa]+this[$r]*this[pr]*this[Aa]-this[$r]*this[Wa]*this[hr];this[tr]=e/r||0,this[pr]=l/r||0,this[Wa]=I/r||0,this[ga]=n/r||0,this[lr]=a/r||0,this[hr]=s/r||0,this[Aa]=o/r||0,this[ya]=d/r||0,this[$r]=G/r||0,this[aa]=u/r||0,this[sa]=h/r||0,this[ea]=g/r||0,this[Ir]=y/r||0,this[Zr]=R/r||0,this[oa]=V/r||0,this[ca]=Q/r||0}[oq](e=!1){return e?[this[tr],this[pr],this[lr],this[hr],this[Ir],this[Zr]]:[this[tr],this[pr],this[Wa],this[ga],this[lr],this[hr],this[Aa],this[ya],this[$r],this[aa],this[sa],this[ea],this[Ir],this[Zr],this[oa],this[ca]]}#e(e,l=1e15){return Math.round(e*l)/l}static fromMatrix(e){return e instanceof t||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},n_,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f):e=Object.assign({},n_,e)),this[vZ]([e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44])}static fromFloat32Array(e){return this[vZ](e)}static fromFloat64Array(e){return this[vZ](e)}static[vZ](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let l=new this;if(e.length===16){let[I,n,r,a,s,o,d,G,u,h,g,y,R,V,Q,f]=e;l[tr]=I,l[pr]=n,l[Wa]=r,l[ga]=a,l[lr]=s,l[hr]=o,l[Aa]=d,l[ya]=G,l[$r]=u,l[aa]=h,l[sa]=g,l[ea]=y,l[Ir]=R,l[Zr]=V,l[oa]=Q,l[ca]=f}else if(e.length===6){let[I,n,r,a,s,o]=e;l[tr]=I,l[pr]=n,l[lr]=r,l[hr]=a,l[Ir]=s,l[Zr]=o}return l}static[uk](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let l=new this,I=new RegExp(Ghl),n;for(;n=I.exec(e);){let r=n[1],a=n[2].split(bhl);for(let u=0,h=a.length;u<h;u++)a[u]=this[ive](a[u]);let[s,o,d,G]=a;switch(r){case"perspective":!isNaN(s)&&s!==0&&o===void 0&&d===void 0&&(l[ea]=-1/s);break;case"translate":!isNaN(s)&&d===void 0&&l[CZ](s,o||0,0);break;case"translate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[CZ](s,o,d);break;case"translateX":!isNaN(s)&&o===void 0&&d===void 0&&l[CZ](s);break;case"translateY":!isNaN(s)&&o===void 0&&d===void 0&&l[CZ](0,s);break;case"translateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[CZ](0,0,s);break;case"matrix":case"matrix3d":(a.length===6||a.length===16)&&l[aT](this[vZ](a));break;case"rotate":case"rotateZ":!isNaN(s)&&o===void 0&&d===void 0&&l[Fw](0,0,s);break;case"rotateX":!isNaN(s)&&o===void 0&&d===void 0&&l[Fw](s,0,0);break;case"rotateY":!isNaN(s)&&o===void 0&&d===void 0&&l[Fw](0,s,0);case"rotate3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&!isNaN(G)&&l[Qw](s,o,d,G);break;case"scale":!isNaN(s)&&s!==1&&d===void 0&&l[kE](s,isNaN(o)?s:o);break;case"scale3d":!isNaN(s)&&!isNaN(o)&&!isNaN(d)&&l[kE](s,o,d);break;case"scaleX":!isNaN(s)&&o===void 0&&d===void 0&&l[kE](s,1,1);break;case"scaleY":!isNaN(s)&&o===void 0&&d===void 0&&l[kE](1,s,1);break;case"scaleZ":!isNaN(s)&&o===void 0&&d===void 0&&l[kE](1,1,s);break;case"skew":isNaN(s)||l[pk](s),isNaN(o)||l[hk](o);break;case"skewX":!isNaN(s)&&o===void 0&&l[pk](s);break;case"skewY":!isNaN(s)&&o===void 0&&l[hk](s);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${n[1]}'.`)}}return l}static[ive](e){let l=parseFloat(e);switch(e.replace(l.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw new SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case"rad":return l*(180/Math.PI);case"turn":return l*360;case"px":return l;case"cm":return l*37.7812;case"mm":return l*3.7781;case"in":return l*96;case"pt":return l*1.3281;case"pc":return l*16;case"Q":return l*.945;default:return l}}};var Ku=class extends Dk{get a(){return this[tr]}set a(e){this[tr]=e}get b(){return this[pr]}set b(e){this[pr]=e}get c(){return this[lr]}set c(e){this[lr]=e}get d(){return this[hr]}set d(e){this[hr]=e}get e(){return this[Ir]}set e(e){this[Ir]=e}get f(){return this[Zr]}set f(e){this[Zr]=e}get m11(){return this[tr]}set m11(e){this[tr]=e}get m12(){return this[pr]}set m12(e){this[pr]=e}get m13(){return this[Wa]}set m13(e){this[Wa]=e}get m14(){return this[ga]}set m14(e){this[ga]=e}get m21(){return this[lr]}set m21(e){this[lr]=e}get m22(){return this[hr]}set m22(e){this[hr]=e}get m23(){return this[Aa]}set m23(e){this[Aa]=e}get m24(){return this[ya]}set m24(e){this[ya]=e}get m31(){return this[$r]}set m31(e){this[$r]=e}get m32(){return this[aa]}set m32(e){this[aa]=e}get m33(){return this[sa]}set m33(e){this[sa]=e}get m34(){return this[ea]}set m34(e){this[ea]=e}get m41(){return this[Ir]}set m41(e){this[Ir]=e}get m42(){return this[Zr]}set m42(e){this[Zr]=e}get m43(){return this[oa]}set m43(e){this[oa]=e}get m44(){return this[ca]}set m44(e){this[ca]=e}setMatrixValue(e){return this[aT](e),this}multiplySelf(e){return this[HZ](e),this}translateSelf(e=0,l=0,I=0){return this[CZ](e,l,I),this}scaleSelf(e,l,I=1,n=0,r=0,a=0){return this[kE](e,l,I,n,r,a),this}scale3dSelf(e=1,l=0,I=0,n=0){return this[cq](e,l,I,n),this}scaleNonUniformSelf(e=1,l=1){return this[iq](e,l),this}rotateAxisAngleSelf(e=0,l=0,I=0,n=0){return this[Qw](e,l,I,n),this}rotateSelf(e=0,l,I){return this[Fw](e,l,I),this}rotateFromVectorSelf(e=0,l=0){return this[_q](e,l),this}skewXSelf(e){return this[pk](e),this}skewYSelf(e){return this[hk](e),this}flipXSelf(){return this[zq](),this}flipYSelf(){return this[Mq](),this}invertSelf(){return this[Dq](),this}};c();var uhl=/[\t\f\n\r ,]+/,e2=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");if(this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,e!==z)throw new TypeError("Illegal constructor");let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){this[xt].attributeValue="",this[xt].items=[],this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[Oe](e),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),this[Oe](I.join(" ")),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(l);let I=this[Cl]();l<0?l=0:l>=I.length&&(l=I.length-1);let n=I[l];return I[l]=e,this[Oe](I.join(" ")),n}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return l.splice(e,1),this[Oe](l.join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),this[Oe](l.join(" ")),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;let I=[],n=e.trim();if(n)for(let r of n.split(uhl))I.includes(r)||I.push(r);return l.attributeValue=e,l.items=I,I}};c();c();c();c();var phl=/([a-zA-Z0-9]+)\(([^)]+)\)/,hhl=/[\s,]+/,IY=class t{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get a(){return this[Hc]().a}set a(e){if(this[Rl])return;let l=this[Hc]();l.a=e,this[mG](l)}get b(){return this[Hc]().b}set b(e){if(this[Rl])return;let l=this[Hc]();l.b=e,this[mG](l)}get c(){return this[Hc]().c}set c(e){if(this[Rl])return;let l=this[Hc]();l.c=e,this[mG](l)}get d(){return this[Hc]().d}set d(e){if(this[Rl])return;let l=this[Hc]();l.d=e,this[mG](l)}get e(){return this[Hc]().e}set e(e){if(this[Rl])return;let l=this[Hc]();l.e=e,this[mG](l)}get f(){return this[Hc]().f}set f(e){if(this[Rl])return;let l=this[Hc]();l.f=e,this[mG](l)}multiply(e){if(!(e instanceof t))throw new this[H].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let l=this[Hc](),I=new t(z,this[H]);return l.multiplySelf(e[Hc]()),I[mG](l),I}translate(e=0,l=0){let I=this[Hc](),n=new t(z,this[H]);return I.translateSelf(e,l),n[mG](I),n}scale(e){let l=this[Hc](),I=new t(z,this[H]);return l.scaleSelf(e),I[mG](l),I}scaleNonUniform(e=1,l=1){let I=this[Hc](),n=new t(z,this[H]);return I.scaleNonUniformSelf(e,l),n[mG](I),n}rotate(e){let l=this[Hc](),I=new t(z,this[H]);return l.rotateSelf(e),I[mG](l),I}rotateFromVector(e=0,l=0){let I=this[Hc](),n=new t(z,this[H]);return I.rotateFromVectorSelf(e,l),n[mG](I),n}skewX(e){let l=this[Hc](),I=new t(z,this[H]);return l.skewXSelf(e),I[mG](l),I}skewY(e){let l=this[Hc](),I=new t(z,this[H]);return l.skewYSelf(e),I[mG](l),I}flipX(){let e=this[Hc](),l=new t(z,this[H]);return e.flipXSelf(),l[mG](e),l}flipY(){let e=this[Hc](),l=new t(z,this[H]);return e.flipYSelf(),l[mG](e),l}inverse(){let e=this[Hc](),l=new t(z,this[H]);return e.invertSelf(),l[mG](e),l}[Hc](){let e=this[ot]?this[ot]():this[Wt];if(!e)return new Ku;let l=e.match(phl);if(!l)return new Ku;let I=[];for(let n of l[2].trim().split(hhl)){let r=Number(n);if(isNaN(r))throw new this[H].TypeError(`Failed to parse transform attribute: Expected number, but got "${n}" in "${e}".`);I.push(r)}switch(l[1]){case"matrix":if(I.length!==6)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return Ku[uk](e);case"scale":case"translate":if(I.length!==1&&I.length!==2)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return Ku[uk](e);case"skewY":case"skewX":if(I.length!==1)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return Ku[uk](e);case"rotate":let n=new Ku;if(I.length!==1&&I.length!==3)throw new this[H].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[r,a,s]=I;(a||s)&&n.translateSelf(a,s);let o=r*Math.PI/180;return n.multiplySelf(new Ku([Math.cos(o),Math.sin(o),-Math.sin(o),Math.cos(o),0,0])),(a||s)&&n.translateSelf(-a,-s),n;default:throw new this[H].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[mG](e){this[Wt]=e.toString().replace(/, /g," "),this[Oe]&&this[Oe](this[Wt])}};c();var tCe;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(tCe||(tCe={}));var Zh=tCe;var Tst=/([a-zA-Z0-9]+)\(([^)]+)\)/,Zhl=/[\s,]+/,kZ=class{static SVG_TRANSFORM_UNKNOWN=Zh.unknown;static SVG_TRANSFORM_MATRIX=Zh.matrix;static SVG_TRANSFORM_TRANSLATE=Zh.translate;static SVG_TRANSFORM_SCALE=Zh.scale;static SVG_TRANSFORM_ROTATE=Zh.rotate;static SVG_TRANSFORM_SKEWX=Zh.skewX;static SVG_TRANSFORM_SKEWY=Zh.skewY;[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;[vw]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get type(){let l=(this[ot]?this[ot]():this[Wt])?.match(Tst);if(!l)return Zh.unknown;switch(l[1]){case"matrix":return Zh.matrix;case"translate":return Zh.translate;case"rotate":return Zh.rotate;case"scale":return Zh.scale;case"skewX":return Zh.skewX;case"skewY":return Zh.skewY}return 0}get angle(){let l=(this[ot]?this[ot]():this[Wt])?.match(Tst);if(!l)return 0;let I=parseFloat(l[2].trim().split(Zhl)[0]);if(isNaN(I))return 0;switch(l[1]){case"rotate":case"skewX":case"skewY":return I}return 0}get matrix(){return this[vw]||(this[vw]=new IY(z,this[H],{readOnly:this[Rl],getAttribute:()=>this[ot]?this[ot]():this[Wt],setAttribute:e=>{if(this[Wt]=e,this[Oe]){this[Oe](e);return}}})),this[vw]}setMatrix(e){if(!(e instanceof IY))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[Rl]||(this[vw]&&(this[vw][ot]=null,this[vw][Oe]=null),e[ot]=()=>this[ot]?this[ot]():this[Wt],e[Oe]=l=>{if(this[Wt]=l,this[Oe]){this[Oe](l);return}},this[vw]=e,e[Wt]!==this[Wt]&&(this[Wt]=e[Wt],this[Oe]&&this[Oe](this[Wt]||"")))}setTranslate(e,l){if(arguments.length<2)throw new TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`translate(${e} ${l})`,this[Oe]&&this[Oe](this[Wt]))}setScale(e,l){if(arguments.length<2)throw new TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),l=Number(l),isNaN(e)||isNaN(l))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`scale(${e} ${l})`,this[Oe]&&this[Oe](this[Wt]))}setRotate(e,l,I){if(arguments.length<3)throw new TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),l=Number(l),I=Number(I),isNaN(e)||isNaN(l)||isNaN(I))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`rotate(${e} ${l} ${I})`,this[Oe]&&this[Oe](this[Wt]))}setSkewX(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`skewX(${e})`,this[Oe]&&this[Oe](this[Wt]))}setSkewY(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");this[Rl]||(this[Wt]=`skewY(${e})`,this[Oe]&&this[Oe](this[Wt]))}};var Nhl=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,eF="matrix(1 0 0 1 0 0)",lX=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute;let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){if(this[Rl])throw new this[H].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[xt].items)e[ot]=null,e[Oe]=null;this[xt].items=[],this[xt].attributeValue="",this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[xt].attributeValue=l.map(n=>n[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof kZ))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=new RegExp(Nhl),a;for(;a=r.exec(n);){let s=new kZ(z,this[H],{readOnly:this[Rl],getAttribute:()=>s[Wt],setAttribute:()=>{this[xt].attributeValue=this[Cl]().map(o=>o[Wt]||eF).join(" "),this[Oe](this[xt].attributeValue)}});s[Wt]=`${a[1]}(${a[2]})`,I.push(s)}}return l.attributeValue=e,l.items=I,I}};var t2=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new lX(z,this[H],{readOnly:!0,getAttribute:this[ot],setAttribute:()=>{}})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new lX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var Zo=class extends nI{[RE]=null;[EE]=null;[L8]=null;get oncopy(){return Fe.getEventListener(this,"oncopy")}set oncopy(e){this[D].set("oncopy",e)}get oncut(){return Fe.getEventListener(this,"oncut")}set oncut(e){this[D].set("oncut",e)}get onpaste(){return Fe.getEventListener(this,"onpaste")}set onpaste(e){this[D].set("onpaste",e)}get requiredExtensions(){return this[RE]||(this[RE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[RE]}get systemLanguage(){return this[EE]||(this[EE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[EE]}get transform(){return this[L8]||(this[L8]=new t2(z,this[H],{getAttribute:()=>this.getAttribute("transform"),setAttribute:e=>this.setAttribute("transform",e)})),this[L8]}getBBox(){return new pA}getCTM(){return new Ku}getScreenCTM(){return new Ku}};c();var ZA=class{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get x(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[0]);return isNaN(I)?0:I}set x(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[Wt]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[Oe]&&this[Oe](this[Wt])}get y(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[1]);return isNaN(I)?0:I}set y(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[Wt]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[Oe]&&this[Oe](this[Wt])}get width(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[2]);return isNaN(I)?0:I}set width(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[Wt]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[Oe]&&this[Oe](this[Wt])}get height(){let e=this[ot]?this[ot]():this[Wt];if(!e)return 0;let l=e.split(/\s+/),I=Number(l[3]);return isNaN(I)?0:I}set height(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[Wt]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[Oe]&&this[Oe](this[Wt])}};c();var Ust=/[\t\f\n\r, ]+/,em=class{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get x(){let l=((this[ot]?this[ot]():this[Wt])||"").split(Ust);return l[0]?parseFloat(l[0]):0}set x(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[Wt]=`${e} ${this.y}`,this[Oe]&&this[Oe](this[Wt])}get y(){let l=((this[ot]?this[ot]():this[Wt])||"").split(Ust);return l[1]?parseFloat(l[1]):0}set y(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[Wt]=`${this.x} ${e}`,this[Oe]&&this[Oe](this[Wt])}};c();c();var lCe;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(lCe||(lCe={}));var Vn=lCe;var _st=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,NA=class{static SVG_LENGTHTYPE_UNKNOWN=Vn.unknown;static SVG_LENGTHTYPE_NUMBER=Vn.number;static SVG_LENGTHTYPE_PERCENTAGE=Vn.percentage;static SVG_LENGTHTYPE_EMS=Vn.ems;static SVG_LENGTHTYPE_EXS=Vn.exs;static SVG_LENGTHTYPE_PX=Vn.px;static SVG_LENGTHTYPE_CM=Vn.cm;static SVG_LENGTHTYPE_MM=Vn.mm;static SVG_LENGTHTYPE_IN=Vn.in;static SVG_LENGTHTYPE_PT=Vn.pt;static SVG_LENGTHTYPE_PC=Vn.pc;[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get unitType(){let l=(this[ot]?this[ot]()||"":this[Wt]||"").match(_st);if(!l)return Vn.unknown;if(isNaN(parseFloat(l[1])))return Vn.unknown;switch(l[2]){case"":return Vn.number;case"px":return Vn.px;case"cm":return Vn.cm;case"mm":return Vn.mm;case"in":return Vn.in;case"pt":return Vn.pt;case"pc":return Vn.pc;case"em":case"ex":case"%":throw new this[H].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return Vn.unknown}}get value(){let l=(this[ot]?this[ot]()||"":this[Wt]||"").match(_st);if(!l)return 0;let I=parseFloat(l[1]);if(isNaN(I))return 0;switch(l[2]){case"":return I;case"px":return I;case"cm":return I/2.54*96;case"mm":return I/25.4*96;case"in":return I*96;case"pt":return I*72;case"pc":return I*6;case"em":case"ex":case"%":throw new this[H].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[H].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let l="",I=e;switch(this.unitType){case Vn.number:I=e,l="";break;case Vn.px:I=e,l="px";break;case Vn.cm:I=e/96*2.54,l="cm";break;case Vn.mm:I=e/96*25.4,l="mm";break;case Vn.in:I=e/96,l="in";break;case Vn.pt:I=e/72,l="pt";break;case Vn.pc:I=e/6,l="pc";break;case Vn.percentage:case Vn.ems:case Vn.exs:throw new this[H].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[Wt]=String(I)+l,this[Oe]&&this[Oe](this[Wt])}get valueAsString(){return this[ot]?this[ot]()||"0":this[Wt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(String(l)):l,isNaN(l))throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let I="";switch(e){case Vn.number:I="";break;case Vn.px:I="px";break;case Vn.cm:I="cm";break;case Vn.mm:I="mm";break;case Vn.in:I="in";break;case Vn.pt:I="pt";break;case Vn.pc:I="pc";break;case Vn.ems:case Vn.exs:case Vn.percentage:throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}convertToSpecifiedUnits(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,I="";switch(e){case Vn.number:I="";break;case Vn.px:I="px";break;case Vn.cm:l=l/96*2.54,I="cm";break;case Vn.mm:l=l/96*25.4,I="mm";break;case Vn.in:l=l/96,I="in";break;case Vn.pt:l=l/72,I="pt";break;case Vn.pc:l=l/6,I="pc";break;case Vn.percentage:case Vn.ems:case Vn.exs:throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}};c();c();var ICe;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(ICe||(ICe={}));var Ho=ICe;var zst=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,nY=class{static SVG_ANGLETYPE_UNKNOWN=Ho.unknown;static SVG_ANGLETYPE_UNSPECIFIED=Ho.unspecified;static SVG_ANGLETYPE_DEG=Ho.deg;static SVG_ANGLETYPE_RAD=Ho.rad;static SVG_ANGLETYPE_GRAD=Ho.grad;[H];[ot]=null;[Oe]=null;[Wt]="";[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get unitType(){let l=(this[ot]?this[ot]():this[Wt])?.match(zst);if(!l)return Ho.unknown;if(isNaN(parseFloat(l[1])))return Ho.unknown;switch(l[2]){case"":return Ho.unspecified;case"deg":return Ho.deg;case"rad":return Ho.rad;case"grad":return Ho.grad;case"turn":return Ho.unknown;default:return Ho.unspecified}}get value(){let l=(this[ot]?this[ot]():this[Wt])?.match(zst);if(!l)return 0;let I=parseFloat(l[1]);if(isNaN(I))return 0;switch(l[2]){case"":return I;case"deg":return I;case"rad":return I*(180/Math.PI);case"grad":return I*(180/200);case"turn":return I*360;default:return I}}set value(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[H].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let l="",I=e;switch(this.unitType){case Ho.unspecified:I=e,l="";break;case Ho.deg:I=e,l="deg";break;case Ho.rad:I=e/(180/Math.PI),l="rad";break;case Ho.grad:I=e/(180/200),l="grad";break;case Ho.unknown:I=e/360,l="turn";default:break}this[Wt]=String(I)+l,this[Oe]&&this[Oe](this[Wt])}get valueAsString(){return this[ot]?this[ot]()||"0":this[Wt]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(l=typeof l!="number"?parseFloat(l):l,isNaN(l))throw new this[H].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let I="";switch(e){case Ho.unspecified:I="";break;case Ho.deg:I="deg";break;case Ho.rad:I="rad";break;case Ho.grad:I="grad";break;case Ho.unknown:I="turn";break;default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}convertToSpecifiedUnits(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[H].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let l=this.value,I="";switch(e){case Ho.unspecified:I="";break;case Ho.deg:I="deg";break;case Ho.rad:I="rad",l=l/(180/Math.PI);break;case Ho.grad:I="grad",l=l/(180/200);break;case Ho.unknown:I="turn",l=l/360;break;default:break}this[Wt]=String(l)+I,this[Oe]&&this[Oe](this[Wt])}};c();var WA=class{[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get value(){let e=this[ot]?this[ot]():this[Wt];return parseFloat(e||"0")}set value(e){if(this[Rl])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[Wt]=String(e),this[Oe]&&this[Oe](this[Wt]||"")}};c();var tF=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new ZA(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new ZA(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};c();c();c();var nCe;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(nCe||(nCe={}));var lF=nCe;c();var rCe;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(rCe||(rCe={}));var Pb=rCe;var f7=Object.values(Pb);f7.length=f7.indexOf(0);var JGe=Object.values(lF);JGe.length=JGe.indexOf(0);var IX=class{static SVG_MEETORSLICE_UNKNOWN=lF.unknown;static SVG_MEETORSLICE_MEET=lF.meet;static SVG_MEETORSLICE_SLICE=lF.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Pb.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Pb.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Pb.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Pb.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Pb.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Pb.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Pb.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Pb.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Pb.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Pb.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Pb.xMaxYMax;[H];[ot]=null;[Oe]=null;[Wt]=null;[Rl]=!1;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,I&&(this[Rl]=!!I.readOnly,this[ot]=I.getAttribute||null,this[Oe]=I.setAttribute||null)}get align(){let e=this[ot]?this[ot]():this[Wt];if(!e)return Pb.xMidYMid;let l=e.split(/\s+/)[0];return Pb[l]===void 0?Pb.xMidYMid:Pb[l]}set align(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>f7.length)throw new this[H].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[Wt]=`${f7[l]} ${JGe[this.meetOrSlice]}`,this[Oe]&&this[Oe](this[Wt])}get meetOrSlice(){let e=this[ot]?this[ot]():this[Wt];if(!e)return lF.meet;let l=e.split(/\s+/)[1];return!l||lF[l]===void 0?lF.meet:lF[l]}set meetOrSlice(e){if(this[Rl])throw new this[H].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let l=Number(e);if(isNaN(l)||l<1||l>2)throw new this[H].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[Wt]=`${f7[this.align]} ${JGe[l]}`,this[Oe]&&this[Oe](this[Wt])}};var FW=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new IX(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new IX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};c();var mt=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new NA(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new NA(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var r_=class extends Zo{[xm]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;[ZGe]=1;[YE]=null;get onafterprint(){return Fe.getEventListener(this,"onafterprint")}set onafterprint(e){this[D].set("onafterprint",e)}get onbeforeprint(){return Fe.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[D].set("onbeforeprint",e)}get onbeforeunload(){return Fe.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[D].set("onbeforeunload",e)}get ongamepadconnected(){return Fe.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[D].set("ongamepadconnected",e)}get ongamepaddisconnected(){return Fe.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[D].set("ongamepaddisconnected",e)}get onhashchange(){return Fe.getEventListener(this,"onhashchange")}set onhashchange(e){this[D].set("onhashchange",e)}get onlanguagechange(){return Fe.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[D].set("onlanguagechange",e)}get onmessage(){return Fe.getEventListener(this,"onmessage")}set onmessage(e){this[D].set("onmessage",e)}get onmessageerror(){return Fe.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[D].set("onmessageerror",e)}get onoffline(){return Fe.getEventListener(this,"onoffline")}set onoffline(e){this[D].set("onoffline",e)}get ononline(){return Fe.getEventListener(this,"ononline")}set ononline(e){this[D].set("ononline",e)}get onpagehide(){return Fe.getEventListener(this,"onpagehide")}set onpagehide(e){this[D].set("onpagehide",e)}get onpageshow(){return Fe.getEventListener(this,"onpageshow")}set onpageshow(e){this[D].set("onpageshow",e)}get onpopstate(){return Fe.getEventListener(this,"onpopstate")}set onpopstate(e){this[D].set("onpopstate",e)}get onrejectionhandled(){return Fe.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[D].set("onrejectionhandled",e)}get onstorage(){return Fe.getEventListener(this,"onstorage")}set onstorage(e){this[D].set("onstorage",e)}get onunhandledrejection(){return Fe.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[D].set("onunhandledrejection",e)}get onunload(){return Fe.getEventListener(this,"onunload")}set onunload(e){this[D].set("onunload",e)}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get currentScale(){return this[ZGe]}set currentScale(e){let l=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(l))throw this[H].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");l<1||(this[ZGe]=l)}get currentTranslate(){return new em(z,this[H])}get viewBox(){return this[YE]||(this[YE]=new tF(z,this[H],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[YE]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,l){return new AW(z,[])}getEnclosureList(e,l){return new AW(z,[])}checkIntersection(e,l){return!1}checkEnclosure(e,l){return!1}deselectAll(){}createSVGNumber(){return new WA(z,this[H])}createSVGLength(){return new NA(z,this[H])}createSVGAngle(){return new nY(z,this[H])}createSVGPoint(){return new em(z,this[H])}createSVGMatrix(){return new IY(z,this[H])}createSVGRect(){return new ZA(z,this[H])}createSVGTransform(){return new kZ(z,this[H])}createSVGTransformFromMatrix(e){let l=new kZ(z,this[H]);return l.setMatrix(e),l}getElementsByClassName(e){return Ra.getElementsByClassName(this,e)}getElementsByTagName(e){return Ra.getElementsByTagName(this,e)}getElementsByTagNameNS(e,l){return Ra.getElementsByTagNameNS(this,e,l)}getElementById(e){return Ra.getElementById(this,e)}[zI](e=!1){return super[zI](e)}};c();c();var QW=class extends nI{[RE]=null;[EE]=null;get onbegin(){return Fe.getEventListener(this,"onbegin")}set onbegin(e){this[D].set("onbegin",e)}get onend(){return Fe.getEventListener(this,"onend")}set onend(e){this[D].set("onend",e)}get onrepeat(){return Fe.getEventListener(this,"onrepeat")}set onrepeat(e){this[D].set("onrepeat",e)}get requiredExtensions(){return this[RE]||(this[RE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[RE]}get systemLanguage(){return this[EE]||(this[EE]=new e2(z,this[H],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[EE]}get targetElement(){return null}};var J7=class extends QW{};c();var k7=class extends QW{};c();var L7=class extends QW{};c();c();c();var LI=class{[H];[ot];[Oe];[nh]=0;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,this[nh]=I.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();if(!e)return this[nh];let l=parseFloat(e);return isNaN(l)?this[nh]:l}set baseVal(e){let l=typeof e!="number"?parseFloat(e):e;if(isNaN(l))throw new this[H].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[Oe](String(l))}};var pG=class extends Zo{[x8]=null;get pathLength(){return this[x8]||(this[x8]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:e=>this.setAttribute("pathLength",e)})),this[x8]}isPointInFill(e){if(!(e instanceof em))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(e){if(!(e instanceof em))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(e){return new em(z,this[H])}};var x7=class extends pG{[rh]=null;[ah]=null;[vE]=null;get cx(){return this[rh]||(this[rh]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[rh]}get cy(){return this[ah]||(this[ah]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[ah]}get r(){return this[vE]||(this[vE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[vE]}};c();c();var _n=class{[H];[ot];[Oe];[Kd];[nh];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,this[Kd]=I.values,this[nh]=I.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();if(!e)return this[Kd].indexOf(this[nh])+1;let l=this[Kd].indexOf(e);if(l===-1){let I=this[Kd].indexOf(null);return I!==-1?I+1:0}return l+1}set baseVal(e){let l=Number(e);if(isNaN(l)&&(l=0),l<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${l}, which is not settable.`);if(l>this[Kd].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${l}) is larger than the largest allowed value (${this[Kd].length}).`);let I=this[ot](),n=this[Kd][l-1]===null,r=n?"0":this[Kd][l-1];(!I||n&&this[Kd].includes(I)||!n&&I!==r)&&this[Oe](r||"")}};var S7=class extends nI{[M8]=null;get clipPathUnits(){return this[M8]||(this[M8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:e=>this.setAttribute("clipPathUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[M8]}};c();var B7=class extends Zo{};c();var O7=class extends nI{};c();var T7=class extends pG{[rh]=null;[ah]=null;[FE]=null;[QE]=null;get cx(){return this[rh]||(this[rh]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[rh]}get cy(){return this[ah]||(this[ah]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[ah]}get rx(){return this[FE]||(this[FE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[FE]}get ry(){return this[QE]||(this[QE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[QE]}};c();c();var hI=class{[H];[ot];[Oe];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();return e||""}set baseVal(e){this[Oe](String(e))}};var U7=class extends nI{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[wt]=null;[YI]=null;[sh]=null;[Uo]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get in2(){return this[sh]||(this[sh]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[sh]}get mode(){return this[Uo]||(this[Uo]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("mode"),setAttribute:e=>this.setAttribute("mode",e),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[Uo]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();c();var Whl=/[\t\f\n\r, ]+/,nX=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");if(this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute,e!==z)throw new TypeError("Illegal constructor");let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){if(this[Rl])throw new this[H].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[xt].items)e[ot]=null,e[Oe]=null;this[xt].items=[],this[xt].attributeValue="",this[Oe]("")}initialize(e){if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof WA))throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof WA))throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[Oe](l.map(n=>n[Wt]||"0").join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof WA))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=n.split(Whl);for(let a=0,s=r.length;a<s;a++){let o=new WA(z,this[H],{readOnly:this[Rl],getAttribute:()=>o[Wt],setAttribute:()=>{this[xt].attributeValue=this[Cl]().map(d=>d[Wt]||"0").join(" "),this[Oe](this[xt].attributeValue)}});o[Wt]=String(parseFloat(r[a])),I.push(o)}}return l.attributeValue=e,l.items=I,I}};var Nh=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new nX(z,this[H],{readOnly:!0,getAttribute:this[ot],setAttribute:()=>{}})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new nX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var _7=class extends nI{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[wt]=null;[YI]=null;[sh]=null;[tI]=null;[ts]=null;[Kd]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get in2(){return this[sh]||(this[sh]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[sh]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[ts]}get values(){return this[Kd]||(this[Kd]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Kd]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var z7=class extends nI{[wt]=null;[YI]=null;[tI]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var M7=class extends nI{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[wt]=null;[YI]=null;[tI]=null;[ts]=null;[Kd]=null;[ut]=null;[pt]=null;[Ft]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[ts]}get values(){return this[Kd]||(this[Kd]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Kd]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();var jk=class{[H];[ot];[Oe];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[ot]()==="true"}set baseVal(e){this[Oe](String(typeof e!="boolean"?!!e:e))}};c();var gA=class{[H];[ot];[Oe];constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[ot]();if(!e)return 0;let l=parseInt(e);return isNaN(l)?0:l}set baseVal(e){let l=parseInt(String(e));if(isNaN(l))throw new this[H].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[Oe](String(l))}};var D7=class extends nI{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Gq]=null;[bq]=null;[LE]=null;[wt]=null;[YI]=null;[uq]=null;[oh]=null;[ch]=null;[pq]=null;[hq]=null;[Zq]=null;[tI]=null;[Nq]=null;[Wq]=null;[Ft]=null;[ut]=null;[pt]=null;get bias(){return this[Gq]||(this[Gq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("bias"),setAttribute:e=>this.setAttribute("bias",e)})),this[Gq]}get divisor(){return this[bq]||(this[bq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:e=>this.setAttribute("divisor",e)})),this[bq]}get edgeMode(){return this[LE]||(this[LE]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[LE]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get kernelMatrix(){return this[uq]||(this[uq]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:e=>this.setAttribute("kernelMatrix",e)})),this[uq]}get kernelUnitLengthX(){return this[oh]||(this[oh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[oh]}get kernelUnitLengthY(){return this[ch]||(this[ch]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[ch]}get orderX(){return this[pq]||(this[pq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:e=>this.setAttribute("orderX",e)})),this[pq]}get orderY(){return this[hq]||(this[hq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:e=>this.setAttribute("orderY",e)})),this[hq]}get preserveAlpha(){return this[Zq]||(this[Zq]=new jk(z,this[H],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:e=>this.setAttribute("preserveAlpha",e)})),this[Zq]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get targetX(){return this[Nq]||(this[Nq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:e=>this.setAttribute("targetX",e)})),this[Nq]}get targetY(){return this[Wq]||(this[Wq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:e=>this.setAttribute("targetY",e)})),this[Wq]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var j7=class extends nI{[gq]=null;[wt]=null;[YI]=null;[oh]=null;[ch]=null;[tI]=null;[xE]=null;[Ft]=null;[ut]=null;[pt]=null;get diffuseConstant(){return this[gq]||(this[gq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:e=>this.setAttribute("diffuseConstant",e)})),this[gq]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get kernelUnitLengthX(){return this[oh]||(this[oh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[oh]}get kernelUnitLengthY(){return this[ch]||(this[ch]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[ch]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get surfaceScale(){return this[xE]||(this[xE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e)})),this[xE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var P7=class extends nI{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[wt]=null;[YI]=null;[sh]=null;[tI]=null;[Aq]=null;[Ft]=null;[ut]=null;[yq]=null;[pt]=null;[Rq]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get in2(){return this[sh]||(this[sh]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[sh]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get scale(){return this[Aq]||(this[Aq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("scale"),setAttribute:e=>this.setAttribute("scale",e)})),this[Aq]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get xChannelSelector(){return this[yq]||(this[yq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:e=>this.setAttribute("xChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[yq]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get yChannelSelector(){return this[Rq]||(this[Rq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:e=>this.setAttribute("yChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[Rq]}};c();var K7=class extends nI{[Eq]=null;[Yq]=null;get azimuth(){return this[Eq]||(this[Eq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:e=>this.setAttribute("azimuth",e)})),this[Eq]}get elevation(){return this[Yq]||(this[Yq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:e=>this.setAttribute("elevation",e)})),this[Yq]}};c();var q7=class extends nI{[ih]=null;[dh]=null;[wt]=null;[YI]=null;[tI]=null;[SE]=null;[BE]=null;[Ft]=null;[ut]=null;[pt]=null;get dx(){return this[ih]||(this[ih]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[ih]}get dy(){return this[dh]||(this[dh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[dh]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get stdDeviationX(){return this[SE]||(this[SE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:e=>this.setAttribute("stdDeviationX",e),defaultValue:2})),this[SE]}get stdDeviationY(){return this[BE]||(this[BE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:e=>this.setAttribute("stdDeviationY",e),defaultValue:2})),this[BE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var $7=class extends nI{[wt]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();var vW=class extends nI{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[ts]=null;[Vq]=null;[wq]=null;[Fq]=null;[Qq]=null;[vq]=null;[JE]=null;get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[ts]}get tableValues(){return this[Vq]||(this[Vq]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:e=>this.setAttribute("tableValues",e)})),this[Vq]}get slope(){return this[wq]||(this[wq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("slope"),setAttribute:e=>this.setAttribute("slope",e),defaultValue:1})),this[wq]}get intercept(){return this[Fq]||(this[Fq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:e=>this.setAttribute("intercept",e)})),this[Fq]}get amplitude(){return this[Qq]||(this[Qq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:e=>this.setAttribute("amplitude",e),defaultValue:1})),this[Qq]}get exponent(){return this[vq]||(this[vq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:e=>this.setAttribute("exponent",e),defaultValue:1})),this[vq]}get offset(){return this[JE]||(this[JE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[JE]}};var e$=class extends vW{};c();var t$=class extends vW{};c();var l$=class extends vW{};c();var I$=class extends vW{};c();var n$=class extends nI{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[LE]=null;[wt]=null;[YI]=null;[tI]=null;[SE]=null;[BE]=null;[Ft]=null;[ut]=null;[pt]=null;get edgeMode(){return this[LE]||(this[LE]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[LE]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get stdDeviationX(){return this[SE]||(this[SE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:e=>this.setAttribute("stdDeviationX",e)})),this[SE]}get stdDeviationY(){return this[BE]||(this[BE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:e=>this.setAttribute("stdDeviationY",e)})),this[BE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}setStdDeviation(e,l){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=l}};c();var r$=class extends nI{[ost]=null;[wt]=null;[er]=null;[xm]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var a$=class extends nI{[wt]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var s$=class extends nI{[YI]=null;get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}};c();var o$=class extends nI{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[wt]=null;[YI]=null;[Cq]=null;[Hq]=null;[Xq]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get operator(){return this[Cq]||(this[Cq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("operator"),setAttribute:e=>this.setAttribute("operator",e),values:["erode","dilate"],defaultValue:"erode"})),this[Cq]}get radiusX(){return this[Hq]||(this[Hq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:e=>this.setAttribute("radiusX",e)})),this[Hq]}get radiusY(){return this[Xq]||(this[Xq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:e=>this.setAttribute("radiusY",e)})),this[Xq]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var c$=class extends nI{[wt]=null;[YI]=null;[ih]=null;[dh]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get dx(){return this[ih]||(this[ih]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[ih]}get dy(){return this[dh]||(this[dh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[dh]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var i$=class extends nI{[ut]=null;[pt]=null;[zb]=null;get x(){return this[ut]||(this[ut]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get z(){return this[zb]||(this[zb]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[zb]}};c();var d$=class extends nI{[wt]=null;[YI]=null;[oh]=null;[ch]=null;[tI]=null;[fq]=null;[OE]=null;[xE]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get kernelUnitLengthX(){return this[oh]||(this[oh]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[oh]}get kernelUnitLengthY(){return this[ch]||(this[ch]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[ch]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get specularConstant(){return this[fq]||(this[fq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:e=>this.setAttribute("specularConstant",e),defaultValue:1})),this[fq]}get specularExponent(){return this[OE]||(this[OE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[OE]}get surfaceScale(){return this[xE]||(this[xE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e),defaultValue:1})),this[xE]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var m$=class extends nI{[ut]=null;[pt]=null;[zb]=null;[Jq]=null;[kq]=null;[Lq]=null;[OE]=null;[xq]=null;get x(){return this[ut]||(this[ut]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get z(){return this[zb]||(this[zb]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[zb]}get pointsAtX(){return this[Jq]||(this[Jq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:e=>this.setAttribute("pointsAtX",e)})),this[Jq]}get pointsAtY(){return this[kq]||(this[kq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:e=>this.setAttribute("pointsAtY",e)})),this[kq]}get pointsAtZ(){return this[Lq]||(this[Lq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:e=>this.setAttribute("pointsAtZ",e)})),this[Lq]}get specularExponent(){return this[OE]||(this[OE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[OE]}get limitingConeAngle(){return this[xq]||(this[xq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:e=>this.setAttribute("limitingConeAngle",e)})),this[xq]}};c();var G$=class extends nI{[wt]=null;[YI]=null;[tI]=null;[Ft]=null;[ut]=null;[pt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get in1(){return this[YI]||(this[YI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[YI]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var b$=class extends nI{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Sq]=null;[Bq]=null;[wt]=null;[Oq]=null;[tI]=null;[Tq]=null;[Uq]=null;[ts]=null;[Ft]=null;[ut]=null;[pt]=null;get baseFrequencyX(){return this[Sq]||(this[Sq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:e=>this.setAttribute("baseFrequencyX",e)})),this[Sq]}get baseFrequencyY(){return this[Bq]||(this[Bq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:e=>this.setAttribute("baseFrequencyY",e)})),this[Bq]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get numOctaves(){return this[Oq]||(this[Oq]=new gA(z,this[H],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:e=>this.setAttribute("numOctaves",e)})),this[Oq]}get result(){return this[tI]||(this[tI]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[tI]}get seed(){return this[Tq]||(this[Tq]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("seed"),setAttribute:e=>this.setAttribute("seed",e)})),this[Tq]}get stitchTiles(){return this[Uq]||(this[Uq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:e=>this.setAttribute("stitchTiles",e),values:["stitch","noStitch"],defaultValue:"stitch"})),this[Uq]}get type(){return this[ts]||(this[ts]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[ts]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var u$=class extends nI{[er]=null;[P8]=null;[K8]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get filterUnits(){return this[P8]||(this[P8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:e=>this.setAttribute("filterUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[P8]}get primitiveUnits(){return this[K8]||(this[K8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:e=>this.setAttribute("primitiveUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[K8]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var p$=class extends Zo{[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var h$=class extends Zo{};c();var Z$=class extends Zo{[er]=null;[xm]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get decoding(){let e=this.getAttribute("decoding");switch(e){case"sync":case"async":case"auto":return e;default:return"auto"}}set decoding(e){this.setAttribute("decoding",e)}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}decode(){return Promise.resolve()}};c();var N$=class extends pG{[CE]=null;[HE]=null;[XE]=null;[fE]=null;get x1(){return this[CE]||(this[CE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[CE]}get y1(){return this[HE]||(this[HE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[HE]}get x2(){return this[XE]||(this[XE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[XE]}get y2(){return this[fE]||(this[fE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[fE]}};c();c();var IF=class extends Zo{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[er]=null;[q8]=null;[$8]=null;[eq]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get gradientUnits(){return this[q8]||(this[q8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:e=>this.setAttribute("gradientUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[q8]}get gradientTransform(){return this[$8]||(this[$8]=new t2(z,this[H],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:e=>this.setAttribute("gradientTransform",e)})),this[$8]}get spreadMethod(){return this[eq]||(this[eq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:e=>this.setAttribute("spreadMethod",e),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[eq]}};var W$=class extends IF{[CE]=null;[HE]=null;[XE]=null;[fE]=null;get x1(){return this[CE]||(this[CE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[CE]}get y1(){return this[HE]||(this[HE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[HE]}get x2(){return this[XE]||(this[XE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[XE]}get y2(){return this[fE]||(this[fE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[fE]}};c();c();var Pk=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new nY(z,this[H],{readOnly:!0,getAttribute:this[ot]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new nY(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var g$=class extends nI{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[S8]=null;[B8]=null;[O8]=null;[T8]=null;[U8]=null;[_8]=null;[z8]=null;[YE]=null;[xm]=null;get markerUnits(){return this[S8]||(this[S8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:e=>this.setAttribute("markerUnits",e),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[S8]}get markerWidth(){return this[B8]||(this[B8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:e=>this.setAttribute("markerWidth",e)})),this[B8]}get markerHeight(){return this[O8]||(this[O8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:e=>this.setAttribute("markerHeight",e)})),this[O8]}get orientType(){return this[T8]||(this[T8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e),values:["auto",null],defaultValue:"auto"})),this[T8]}get orientAngle(){return this[U8]||(this[U8]=new Pk(z,this[H],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e)})),this[U8]}get refX(){return this[_8]||(this[_8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("refX"),setAttribute:e=>this.setAttribute("refX",e)})),this[_8]}get refY(){return this[z8]||(this[z8]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("refY"),setAttribute:e=>this.setAttribute("refY",e)})),this[z8]}get viewBox(){return this[YE]||(this[YE]=new tF(z,this[H],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[YE]}get preserveAspectRatio(){return this[xm]||(this[xm]=new FW(z,this[H],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[xm]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(e){this.setAttribute("orient",e.valueAsString)}};c();var A$=class extends nI{[D8]=null;[j8]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get maskUnits(){return this[D8]||(this[D8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:e=>this.setAttribute("maskUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[D8]}get maskContentUnits(){return this[j8]||(this[j8]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:e=>this.setAttribute("maskContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[j8]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();var y$=class extends nI{};c();var R$=class extends nI{[er]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}};c();var E$=class extends pG{};c();var Y$=class extends nI{[er]=null;[tq]=null;[lq]=null;[Iq]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get patternUnits(){return this[tq]||(this[tq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:e=>this.setAttribute("patternUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[tq]}get patternContentUnits(){return this[lq]||(this[lq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:e=>this.setAttribute("patternContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[lq]}get patternTransform(){return this[Iq]||(this[Iq]=new t2(z,this[H],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:e=>this.setAttribute("patternTransform",e)})),this[Iq]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}};c();c();var ghl=/[\t\f\n\r, ]+/,l2=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute;let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){if(this[Rl])throw new this[H].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[xt].items)e[ot]=null,e[Oe]=null;this[xt].items=[],this[xt].attributeValue="",this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[Oe](l.map(n=>n[Wt]||"0 0").join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof em))throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=n.split(ghl);for(let a=0,s=r.length;a<s;a+=2){let o=parseFloat(r[a]),d=r[a+1]!==void 0?" "+parseFloat(r[a+1]):"",G=new em(z,this[H],{readOnly:this[Rl],getAttribute:()=>G[Wt],setAttribute:()=>{this[xt].attributeValue=this[Cl]().map(u=>u[Wt]||"0 0").join(" "),this[Oe](this[xt].attributeValue)}});G[Wt]=`${o}${d}`,I.push(G)}}return l.attributeValue=e,l.items=I,I}};var V$=class extends pG{[VE]=null;[wE]=null;get animatedPoints(){return this[VE]||(this[VE]=new l2(z,this[H],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[VE]}get points(){return this[wE]||(this[wE]=new l2(z,this[H],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[wE]}};c();var w$=class extends pG{[VE]=null;[wE]=null;get animatedPoints(){return this[VE]||(this[VE]=new l2(z,this[H],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[VE]}get points(){return this[wE]||(this[wE]=new l2(z,this[H],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[wE]}};c();var F$=class extends IF{[rh]=null;[ah]=null;[vE]=null;[nq]=null;[rq]=null;get cx(){return this[rh]||(this[rh]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[rh]}get cy(){return this[ah]||(this[ah]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[ah]}get r(){return this[vE]||(this[vE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[vE]}get fx(){return this[nq]||(this[nq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("fx"),setAttribute:e=>this.setAttribute("fx",e)})),this[nq]}get fy(){return this[rq]||(this[rq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("fy"),setAttribute:e=>this.setAttribute("fy",e)})),this[rq]}};c();var Q$=class extends pG{[ut]=null;[pt]=null;[Ft]=null;[wt]=null;[FE]=null;[QE]=null;get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get rx(){return this[FE]||(this[FE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[FE]}get ry(){return this[QE]||(this[QE]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[QE]}};c();var v$=class extends Zo{[er]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};c();var C$=class extends QW{};c();var H$=class extends nI{[JE]=null;get offset(){return this[JE]||(this[JE]=new LI(z,this[H],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[JE]}};c();var X$=class extends nI{[Ad]=null;[cb]=this;[ZH]=!1;get media(){return this.getAttribute("media")||"all"}set media(e){this.setAttribute("media",e)}get type(){return this.getAttribute("type")||"text/css"}set type(e){this.setAttribute("type",e)}get title(){return this.getAttribute("title")||""}set title(e){this.setAttribute("title",e)}get disabled(){return this[ZH]}set disabled(e){this[ZH]=!!e}get sheet(){return this[iI]?(this[Ad]||(this[Ad]=new this[nt][H].CSSStyleSheet,this[Ad].replaceSync(this.textContent)),this[Ad]):null}[Ub](){super[Ub](),this[Ad]=null}[bH](){this[Ad]&&this[Ad].replaceSync(this.textContent)}};c();var f$=class extends Zo{};c();var J$=class extends Zo{};c();c();c();var Kk=class extends Zo{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[aq]=null;[sq]=null;get textLength(){return this[aq]||(this[aq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:e=>this.setAttribute("textLength",e)})),this[aq]}get lengthAdjust(){return this[sq]||(this[sq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:e=>this.setAttribute("lengthAdjust",e),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[sq]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,l){return 0}getStartPositionOfChar(e){return new em(z,this[H])}getEndPositionOfChar(e){return new em(z,this[H])}getExtentOfChar(e){return new ZA(z,this[H])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};c();c();var Ahl=/[\t\f\n\r, ]+/,rX=class t{[H];[ot];[Oe];[Rl]=!1;[xt]={items:[],attributeValue:""};constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[Rl]=!!I.readOnly,this[ot]=I.getAttribute,this[Oe]=I.setAttribute;let n=new Co(this,[t]);return new Proxy(this,{get:(r,a)=>{if(a==="length"||a==="numberOfItems")return r[Cl]().length;if(a in r||typeof a=="symbol")return n.bind(a),r[a];let s=Number(a);if(!isNaN(s))return r[Cl]()[s]},set(r,a,s){if(n.bind(a),typeof a=="symbol")return r[a]=s,!0;let o=Number(a);return isNaN(o)&&(r[a]=s),!0},deleteProperty(r,a){if(typeof a=="symbol")return delete r[a],!0;let s=Number(a);return isNaN(s)&&delete r[a],!0},ownKeys(r){return Object.keys(r[Cl]())},has(r,a){if(a in r)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<r[Cl]().length},defineProperty(r,a,s){return n.preventBinding(a),a in r?(Object.defineProperty(r,a,s),!0):!1},getOwnPropertyDescriptor(r,a){if(a in r||typeof a=="symbol")return;let s=Number(a),o=r[Cl]();if(!isNaN(s)&&o[s])return{value:o[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Cl]().length}get numberOfItems(){return this[Cl]().length}[Symbol.iterator](){return this[Cl]().values()}clear(){this[Oe]("")}initialize(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let l of this[xt].items)l[ot]=null,l[Oe]=null;return e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(l=>l[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].items=[e],this[xt].attributeValue=e[Wt],this[Oe](e[Wt]||""),e}getItem(e){let l=this[Cl]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),l[e]?l[e]:null}insertItemBefore(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let I=this[Cl](),n=I.indexOf(e);return n!==-1&&I.splice(n,1),l<0?l=0:l>I.length&&(l=I.length),I.splice(l,0,e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(r=>r[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(r=>r[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue),e}replaceItem(e,l){if(this[Rl])throw new this[H].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[H].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let I=this[Cl](),n=I.indexOf(e);if(n===l)return e;n!==-1&&I.splice(n,1),l<0?l=0:l>=I.length&&(l=I.length-1),I[l]&&(I[l][ot]=null,I[l][Oe]=null);let r=I[l];return I[l]=e,e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(a=>a[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=I.map(a=>a[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue),r}removeItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl]();if(e=Number(e),isNaN(e)&&(e=0),e>=l.length)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,qe.indexSizeError);if(e<0)throw new this[H].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,qe.indexSizeError);let I=l[e];return I&&(I[ot]=null,I[Oe]=null),l.splice(e,1),this[Oe](l.map(n=>n[Wt]??"0").join(" ")),I}appendItem(e){if(this[Rl])throw new this[H].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[H].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let l=this[Cl](),I=l.indexOf(e);return I!==-1&&l.splice(I,1),l.push(e),e[ot]=()=>e[Wt],e[Oe]=()=>{this[xt].attributeValue=this[Cl]().map(n=>n[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue)},this[xt].attributeValue=l.map(n=>n[Wt]??"0").join(" "),this[Oe](this[xt].attributeValue),e}[Cl](){let e=this[ot]()??"",l=this[xt];if(l.attributeValue===e)return l.items;if(l.items.length)for(let r of l.items)r[ot]=null,r[Oe]=null;let I=[],n=e.trim();if(n){let r=n.split(Ahl);for(let a=0,s=r.length;a<s;a++){let o=new NA(z,this[H],{readOnly:this[Rl],getAttribute:()=>o[Wt],setAttribute:d=>{o[Wt]=d;let G=I.map(u=>u[Wt]??"0").join(" ");l.attributeValue=G,this[Oe](G)}});o[Wt]=r[a],I.push(o)}}return l.attributeValue=e,l.items=I,I}};var rY=class{[H];[ot];[Oe];[ls]=null;[Is]=null;constructor(e,l,I){if(e!==z)throw new TypeError("Illegal constructor");this[H]=l,this[ot]=I.getAttribute,this[Oe]=I.setAttribute}get animVal(){return this[Is]||(this[Is]=new rX(z,this[H],{readOnly:!0,getAttribute:this[ot],setAttribute:this[Oe]})),this[Is]}set animVal(e){}get baseVal(){return this[ls]||(this[ls]=new rX(z,this[H],{getAttribute:this[ot],setAttribute:this[Oe]})),this[ls]}set baseVal(e){}};var nF=class extends Kk{[ut]=null;[pt]=null;[ih]=null;[dh]=null;[jq]=null;get x(){return this[ut]||(this[ut]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get dx(){return this[ih]||(this[ih]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[ih]}get dy(){return this[dh]||(this[dh]=new rY(z,this[H],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[dh]}get rotate(){return this[jq]||(this[jq]=new Nh(z,this[H],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:e=>this.setAttribute("rotate",e)})),this[jq]}};var k$=class extends nF{};c();var L$=class extends Kk{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[er]=null;[dq]=null;[Cw]=null;[mq]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get startOffset(){return this[dq]||(this[dq]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:e=>this.setAttribute("startOffset",e)})),this[dq]}get method(){return this[Cw]||(this[Cw]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("method"),setAttribute:e=>this.setAttribute("method",e),values:["align","stretch"],defaultValue:"align"})),this[Cw]}get spacing(){return this[mq]||(this[mq]=new _n(z,this[H],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:e=>this.setAttribute("spacing",e),values:["auto","exact"],defaultValue:"exact"})),this[mq]}};c();var x$=class extends nI{};c();var S$=class extends nF{};c();var B$=class extends Zo{[er]=null;[ut]=null;[pt]=null;[Ft]=null;[wt]=null;get href(){return this[er]||(this[er]=new hI(z,this[H],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[er]}get x(){return this[ut]||(this[ut]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[ut]}get y(){return this[pt]||(this[pt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[pt]}get width(){return this[Ft]||(this[Ft]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[Ft]}get height(){return this[wt]||(this[wt]=new mt(z,this[H],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[wt]}};c();var O$=class extends nI{};c();var T$=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==z)throw new TypeError("Illegal constructor")}};c();var U$=class{window;constructor(e){this.window=e}enqueueReaction(e,l,I){let n=this.window.customElements[J0]?.get(e.localName);if(n&&e[nt]===this.window.document)switch(l){case"connectedCallback":if(n.livecycleCallbacks.connectedCallback){let r=n.livecycleCallbacks.connectedCallback?.call(e);if(r instanceof Promise){let a=new wI(this.window).getAsyncTaskManager();if(a){let s=a.startTask();r.then(()=>a.endTask(s)).catch(()=>a.endTask(s))}}}break;case"disconnectedCallback":n.livecycleCallbacks.disconnectedCallback&&n.livecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":n.livecycleCallbacks.attributeChangedCallback&&I?.length&&n.observedAttributes.has(I[0])&&n.livecycleCallbacks.attributeChangedCallback.apply(e,I);break}}};var aX={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},aCe=setTimeout.toString().includes("new Timeout"),sCe=class{constructor(){throw new TypeError("Illegal constructor")}},kGe=class{callback;constructor(e){this.callback=e}},LZ=class t extends Xr{Node=rn;Attr=wT;ShadowRoot=XU;ProcessingInstruction=HU;Element=uG;CharacterData=P0;DocumentType=DE;HTMLAnchorElement=FT;HTMLButtonElement=JT;HTMLOptGroupElement=iU;HTMLOptionElement=tY;HTMLElement=Ct;HTMLUnknownElement=vU;HTMLTemplateElement=YU;HTMLInputElement=Pu;HTMLSelectElement=ZU;HTMLTextAreaElement=Mw;HTMLImageElement=DH;HTMLStyleElement=gU;HTMLLabelElement=$T;HTMLSlotElement=_ve;HTMLMetaElement=aU;HTMLMediaElement=$E;HTMLAudioElement=OH;HTMLVideoElement=CU;HTMLBaseElement=CT;HTMLDialogElement=OT;HTMLScriptElement=hU;HTMLLinkElement=IU;HTMLIFrameElement=qT;HTMLFormElement=MT;HTMLUListElement=QU;HTMLTrackElement=FU;HTMLTableRowElement=EU;HTMLTitleElement=wU;HTMLTimeElement=VU;HTMLTableSectionElement=$0;HTMLTableCellElement=AU;HTMLTableElement=RU;HTMLSpanElement=WU;HTMLSourceElement=NU;HTMLQuoteElement=pU;HTMLProgressElement=uU;HTMLPreElement=bU;HTMLPictureElement=GU;HTMLParamElement=mU;HTMLParagraphElement=dU;HTMLOutputElement=UH;HTMLOListElement=cU;HTMLObjectElement=TH;HTMLMeterElement=sU;HTMLMenuElement=rU;HTMLMapElement=nU;HTMLLIElement=tU;HTMLLegendElement=eU;HTMLModElement=oU;HTMLHtmlElement=KT;HTMLHRElement=PT;HTMLHeadElement=DT;HTMLHeadingElement=jT;HTMLFieldSetElement=_H;HTMLEmbedElement=UT;HTMLDListElement=LT;HTMLDivElement=TT;HTMLDetailsElement=BT;HTMLDataListElement=ST;HTMLDataElement=xT;HTMLTableColElement=yU;HTMLTableCaptionElement=PH;HTMLCanvasElement=kT;HTMLBRElement=XT;HTMLBodyElement=HT;HTMLAreaElement=QT;SVGSVGElement=r_;SVGAnimateElement=J7;SVGAnimateMotionElement=k7;SVGAnimateTransformElement=L7;SVGCircleElement=x7;SVGClipPathElement=S7;SVGDefsElement=B7;SVGDescElement=O7;SVGEllipseElement=T7;SVGFEBlendElement=U7;SVGFEColorMatrixElement=_7;SVGFEComponentTransferElement=z7;SVGFECompositeElement=M7;SVGFEConvolveMatrixElement=D7;SVGFEDiffuseLightingElement=j7;SVGFEDisplacementMapElement=P7;SVGFEDistantLightElement=K7;SVGFEDropShadowElement=q7;SVGFEFloodElement=$7;SVGFEFuncAElement=e$;SVGFEFuncBElement=t$;SVGFEFuncGElement=l$;SVGFEFuncRElement=I$;SVGFEGaussianBlurElement=n$;SVGFEImageElement=r$;SVGFEMergeElement=a$;SVGFEMergeNodeElement=s$;SVGFEMorphologyElement=o$;SVGFEOffsetElement=c$;SVGFEPointLightElement=i$;SVGFESpecularLightingElement=d$;SVGFESpotLightElement=m$;SVGFETileElement=G$;SVGFETurbulenceElement=b$;SVGFilterElement=u$;SVGForeignObjectElement=p$;SVGGElement=h$;SVGImageElement=Z$;SVGLineElement=N$;SVGLinearGradientElement=W$;SVGMarkerElement=g$;SVGMaskElement=A$;SVGMetadataElement=y$;SVGMPathElement=R$;SVGPathElement=E$;SVGPatternElement=Y$;SVGPolygonElement=V$;SVGPolylineElement=w$;SVGRadialGradientElement=F$;SVGRectElement=Q$;SVGScriptElement=v$;SVGSetElement=C$;SVGStopElement=H$;SVGStyleElement=X$;SVGSwitchElement=f$;SVGSymbolElement=J$;SVGTextElement=k$;SVGTextPathElement=L$;SVGTitleElement=x$;SVGTSpanElement=S$;SVGUseElement=B$;SVGViewElement=O$;SVGElement=nI;SVGAnimationElement=QW;SVGComponentTransferFunctionElement=vW;SVGGeometryElement=pG;SVGGradientElement=IF;SVGTextPositioningElement=nF;SVGGraphicsElement=Zo;Event=bt;UIEvent=Bm;CustomEvent=hT;AnimationEvent=uT;KeyboardEvent=NT;MessageEvent=WT;MouseEvent=ji;PointerEvent=HH;FocusEvent=z0;WheelEvent=AT;InputEvent=ZT;ErrorEvent=_E;StorageEvent=s7;SubmitEvent=XH;ProgressEvent=Gh;MediaQueryListEvent=EH;HashChangeEvent=CH;ClipboardEvent=pT;TouchEvent=gT;Touch=bT;AudioProcessingEvent=bt;BeforeInputEvent=bt;BeforeUnloadEvent=bt;BlobEvent=bt;CloseEvent=bt;CompositionEvent=bt;CSSFontFaceLoadEvent=bt;DeviceLightEvent=bt;DeviceMotionEvent=bt;DeviceOrientationEvent=bt;DeviceProximityEvent=bt;DOMTransactionEvent=bt;DragEvent=bt;EditingBeforeInputEvent=bt;FetchEvent=bt;GamepadEvent=bt;IDBVersionChangeEvent=bt;MediaStreamEvent=bt;MutationEvent=bt;OfflineAudioCompletionEvent=bt;OverconstrainedError=bt;PageTransitionEvent=bt;PaymentRequestUpdateEvent=bt;PopStateEvent=bt;RelatedEvent=bt;RTCDataChannelEvent=bt;RTCIdentityErrorEvent=bt;RTCIdentityEvent=bt;RTCPeerConnectionIceEvent=bt;SensorEvent=bt;SVGEvent=bt;SVGZoomEvent=bt;TimeEvent=bt;TrackEvent=bt;TransitionEvent=bt;UserProximityEvent=bt;WebGLContextEvent=bt;TextEvent=bt;Permissions=kH;History=wk;Navigator=VT;Clipboard=yH;TimeRanges=_w;TextTrackCueList=Pw;ValidityState=jb;MutationRecord=uh;IntersectionObserver=ET;IntersectionObserverEntry=YT;CSSStyleDeclaration=GG;CSSRule=Rd;CSSContainerRule=YH;CSSFontFaceRule=VH;CSSKeyframeRule=UE;CSSKeyframesRule=wH;CSSMediaRule=FH;CSSStyleRule=kw;CSSSupportsRule=QH;DOMRect=pA;DOMRectReadOnly=LH;Plugin=i7;PluginArray=Ck;Location=Qk;CustomElementRegistry=Rk;ResizeObserver=fU;URL=_o;Blob=ys;File=mh;Storage=qH;MimeType=c7;MimeTypeArray=vk;NodeFilter=Gs;HTMLCollection=ho;HTMLFormControlCollection=zH;HTMLOptionsCollection=Uk;NodeList=AW;RadioNodeList=Sk;FileList=zw;Screen=_k;DOMMatrixReadOnly=Dk;DOMMatrix=Ku;NamedNodeMap=KE;TreeWalker=jE;NodeIterator=xH;DataTransfer=GT;DataTransferItem=_0;DataTransferItemList=vH;Headers=ac;XMLSerializer=JU;ClipboardItem=iT;Selection=SH;CSSUnitValue=rs;SVGAngle=nY;SVGAnimatedAngle=Pk;SVGAnimatedBoolean=jk;SVGAnimatedEnumeration=_n;SVGAnimatedInteger=gA;SVGAnimatedLength=mt;SVGAnimatedNumber=LI;SVGAnimatedNumberList=Nh;SVGAnimatedPreserveAspectRatio=FW;SVGAnimatedRect=tF;SVGAnimatedString=hI;SVGAnimatedTransformList=t2;SVGLength=NA;SVGLengthList=rX;SVGMatrix=IY;SVGNumber=WA;SVGNumberList=nX;SVGPoint=em;SVGPointList=l2;SVGPreserveAspectRatio=IX;SVGRect=ZA;SVGStringList=e2;SVGTransform=kZ;SVGTransformList=lX;SVGAnimatedLengthList=rY;SVGUnitTypes=T$;DOMPoint=Mk;Window=this.constructor;URLSearchParams=whl;WritableStream=Mst.Writable;ReadableStream=Vhl;TransformStream=Mst.Transform;PerformanceObserver=Fhl;PerformanceEntry=Qhl;PerformanceObserverEntryList=sCe;onload=null;onerror=null;document;customElements=new Rk(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=Rhl;TextEncoder=Ehl;TextDecoder=Yhl;closed=!1;console;name="";Buffer=yhl;[oH]=[];[cA]=new d7(this);[FZ];[cG];[cGe];[iGe];[dGe];[mGe];[uH]=this;[S0]=this;[WW]=this;[H]=this;[lH]=-1;[NH]=new U$(this);[TE]={json:new Map,css:new Map,esm:new Map};[Hw]=null;#e;#t=null;#l=null;#I=null;#n=null;#r=null;#c={timeouts:null};#a=[];constructor(e,l){super(),this.#e=e,this.console=e.page.console,this[cGe]=new VT(this),this[iGe]=new _k,this[dGe]=new qH,this[mGe]=new qH,this[FZ]=new Qk(this.#e,l?.url??"about:blank"),this[cG]=new wk(this.#e,this),wI.setWindowBrowserFrameRelation(this,this.#e),this[W8](),H7.extendClasses(this),this.document=new this.HTMLDocument,this.document[_u]=this,this[cA].waitUntilComplete().then(()=>{this.document[iH]=QGe.complete,this.document.dispatchEvent(new bt("readystatechange"));let I=new bt("load");I[hW]=this,I[ob]=this.document,I[db]=ns.atTarget,this.dispatchEvent(I),I[hW]=null,I[db]=ns.none,I[WH]=!1}),this[dve]()}get self(){return this[uH]}set self(e){this[uH]=e}get top(){return this[S0]}get parent(){return this[WW]}set parent(e){this[WW]=e}get location(){return this[FZ]}set location(e){this[FZ].href=e}get history(){return this[cG]}get navigator(){return this[cGe]}get screen(){return this[iGe]}get sessionStorage(){return this[dGe]}get localStorage(){return this[mGe]}get opener(){return this.#e[iA]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new t7}get innerWidth(){return this.#t===null?this.#e.page.viewport.width:this.#t}set innerWidth(e){this.#t=e}get innerHeight(){return this.#l===null?this.#e.page.viewport.height:this.#l}set innerHeight(e){this.#l=e}get outerWidth(){return this.#I===null?this.#e.page.viewport.width:this.#I}set outerWidth(e){this.#I=e}get outerHeight(){return this.#n===null?this.#e.page.viewport.height:this.#n}set outerHeight(e){this.#n=e}get devicePixelRatio(){return this.#r===null?this.#e.page.viewport.devicePixelRatio:this.#r}set devicePixelRatio(e){this.#r=e}getComputedStyle(e){return e[nT]=e[nT]||new GG(z,this,{element:e,computed:!0}),e[nT]}getSelection(){return this.document.getSelection()}scroll(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let I=typeof e=="object"?e:{left:e,top:l};if(I.behavior==="smooth")this.setTimeout(()=>{if(I.top!==void 0){let n=Number(I.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(I.left!==void 0){let n=Number(I.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}});else{if(I.top!==void 0){let n=Number(I.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(I.left!==void 0){let n=Number(I.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}}}scrollTo(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(e,l)}scrollBy(e,l){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let I=typeof e=="object"?e:{left:e,top:l};this.scroll({left:this.document.documentElement.scrollLeft+(I.left??0),top:this.document.documentElement.scrollTop+(I.top??0),behavior:I.behavior})}blur(){}focus(){}open(e,l,I){return R7.openPage(this.#e,{url:e,target:l,features:I})}close(){this.#e.page.mainFrame===this.#e&&this.#e[iA]&&(this[Ei](),this.#e.page.close())}matchMedia(e){return new yk({window:this,media:e})}setTimeout(e,l=0,...I){if(this.closed)return{};let n=this.#e.page.context.browser.settings;if(n.timer.preventTimerLoops){let s=new Error().stack,o=this.#a;if(o.includes(s))return{};o.push(s)}if(!l){let s=this.#c;if(!s.timeouts){let d=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch,G=aX.setTimeout(()=>{this.#e[un].endTimer(G);let u=s.timeouts;s.timeouts=null;for(let h of u)if(d){let g;try{g=h.callback()}catch(y){this[As](y)}g instanceof Promise&&g.catch(y=>this[As](y))}else h.callback()},0);s.timeouts=[],this.#e[un].startTimer(G)}let o=new kGe(()=>e(...I));return s.timeouts.push(o),o}let r=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch,a=aX.setTimeout(()=>{if(this.#e[un].endTimer(a),r){let s;try{s=e(...I)}catch(o){this[As](o)}s instanceof Promise&&s.catch(o=>this[As](o))}else e(...I)},n?.timer.maxTimeout!==-1&&l&&l>n?.timer.maxTimeout?n?.timer.maxTimeout:l);return this.#e[un].startTimer(a),a}clearTimeout(e){if(e&&e instanceof kGe){let l=this.#c;if(!l.timeouts)return;let I=l.timeouts.indexOf(e);I!==-1&&l.timeouts.splice(I,1);return}aCe&&(!e||e.constructor.name!=="Timeout")||(aX.clearTimeout(e),this.#e[un].endTimer(e))}setInterval(e,l=0,...I){if(this.closed)return{};let n=this.#e.page.context.browser.settings,r=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch,a=0,s=aX.setInterval(()=>{if(r){let o;try{o=e(...I)}catch(d){this.clearInterval(s),this[As](d)}o instanceof Promise&&o.catch(d=>{this.clearInterval(s),this[As](d)})}else e(...I);n?.timer.maxIntervalIterations!==-1&&(a>=n?.timer.maxIntervalIterations&&this.clearInterval(s),a++)},n?.timer.maxIntervalTime!==-1&&l&&l>n?.timer.maxIntervalTime?n?.timer.maxIntervalTime:l);return this.#e[un].startTimer(s),s}clearInterval(e){aCe&&(!e||e.constructor.name!=="Timeout")||(aX.clearInterval(e),this.#e[un].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let l=this.#e.page.context.browser.settings;if(l.timer.preventTimerLoops){let r=new Error().stack,a=this.#a;if(a.includes(r))return{};a.push(r)}let I=!l||!l.disableErrorCapturing&&l.errorCapture===ks.tryAndCatch,n=aX.setImmediate(()=>{if(this.#e[un].endImmediate(n),I){let r;try{r=e(this.performance.now())}catch(a){this[As](a)}r instanceof Promise&&r.catch(a=>this[As](a))}else e(this.performance.now())});return this.#e[un].startImmediate(n),n}cancelAnimationFrame(e){aCe&&(!e||e.constructor.name!=="Immediate")||(aX.clearImmediate(e),this.#e[un].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let l=!1,I=this.#e[un].startTask(()=>l=!0),n=this.#e.page.context.browser.settings,r=!n||!n.disableErrorCapturing&&n.errorCapture===ks.tryAndCatch;aX.queueMicrotask(()=>{if(!l)if(this.#e[un].endTask(I),r){let a;try{a=e()}catch(s){this[As](s)}a instanceof Promise&&a.catch(s=>this[As](s))}else e()})}async fetch(e,l){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",qe.invalidStateError)):await new EW({browserFrame:this.#e,window:this,url:e,init:l}).send()}btoa(e){return cT.btoa(e)}atob(e){return cT.atob(e)}postMessage(e,l="*",I){if(!this.closed){if(l&&l!=="*"&&this.location.origin!==l)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${l}') does not match the recipient window's origin ('${this.location.origin}').`,qe.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",qe.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new WT("message",{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:""})))}}resizeTo(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[gw]&&this.#e.page.setViewport({width:e,height:l})}}resizeBy(e,l){if(!this.closed){if(!e||!l)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[gw]){let I=this.#e.page.viewport;this.#e.page.setViewport({width:I.width+e,height:I.height+l})}}}[As](e){this.#e.page.console.error(e),this.dispatchEvent(new _E("error",{message:e.message,error:e}))}[W8](){Dst.isContext(this)||(Dst.createContext(this),Fst.runInContext(this))}[Ei](){if(this.closed)return;this.closed=!0;let e=this[oH];for(let a of e)a[Ei]&&a[Ei]();this[oH]=[];let l=this.document[el];for(;l.length>0;)l[0].disconnectedCallback&&delete l[0].disconnectedCallback,this.document[Pd](l[0]);let I=this.document.createElement("html"),n=this.document.createElement("head"),r=this.document.createElement("body");I.appendChild(n),I.appendChild(r),this.document[Xn](I),this.location[Ei]&&this.location[Ei](),this.customElements[Ei]&&this.customElements[Ei](),this.history[Ei]&&this.history[Ei](),this[TE].json.clear(),this[TE].css.clear(),this[TE].esm.clear(),this.document[Du].clear(),this.document[jc]=null,this.document[rH]=null,this.document[f0]=null,this.document[sk]=null,wI.removeWindowBrowserFrameRelation(this)}[dve](){for(let e of[t,Xr]){let l=Object.getOwnPropertyDescriptors(e.prototype),I=Object.keys(l);for(let n of I){let r=l[n];r.get||r.set?Object.defineProperty(this,n,{...r,get:r.get?.bind(this),set:r.set?.bind(this)}):n!=="constructor"&&typeof r.value=="function"&&!r.value.toString().startsWith("class ")&&Object.defineProperty(this,n,{...r,value:r.value.bind(this)})}}}};var a_=class{childFrames=[];parentFrame=null;page;window;closed=!1;[un]=new fw(this);[Qo]={navigation:[]};[zu]=null;[iA]=null;[gw]=!1;[cG]=[{title:"",href:"about:blank",state:null,scrollRestoration:Bw.auto,method:"GET",formData:null,isCurrent:!0}];constructor(e){this.page=e,this.window=new LZ(this),e.context.browser[oG]&&e.context.browser[oG].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[bE]=!0,this.window.document[uE]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[FZ][mA](this,ju.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[un].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[Qo].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,l)=>{Promise.all(this.childFrames.map(I=>I.abort()).concat([this[un].abort()])).then(()=>e()).catch(l)}):this[un].abort()}evaluate(e){return xk.evaluate(this,e)}goto(e,l){return Gb.navigate({windowClass:LZ,frame:this,url:e,goToOptions:l})}goBack(e){return Gb.navigateBack({windowClass:LZ,frame:this,goToOptions:e})}goForward(e){return Gb.navigateForward({windowClass:LZ,frame:this,goToOptions:e})}goSteps(e,l){return Gb.navigateSteps({windowClass:LZ,frame:this,steps:e,goToOptions:l})}reload(e){return Gb.reload({windowClass:LZ,frame:this,goToOptions:e})}};c();var sX=class{#e;#t={};#l={};#I=0;#n=[];constructor(e){this.#e=e}assert(e,l,...I){e||this.#e.print({type:Kc.assert,level:Sm.error,message:["Assertion failed:",...l?[l,...I]:I],group:this.#n[this.#n.length-1]||null})}clear(){this.#e.clear()}count(e="default"){this.#t[e]||(this.#t[e]=0),this.#t[e]++,this.#e.print({type:Kc.count,level:Sm.info,message:[`${e}: ${this.#t[e]}`],group:this.#n[this.#n.length-1]||null})}countReset(e="default"){delete this.#t[e],this.#e.print({type:Kc.countReset,level:Sm.warn,message:[`${e}: 0`],group:this.#n[this.#n.length-1]||null})}debug(e,...l){this.#e.print({type:Kc.debug,level:Sm.log,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}dir(e){this.#e.print({type:Kc.dir,level:Sm.log,message:[e],group:this.#n[this.#n.length-1]||null})}dirxml(e){this.#e.print({type:Kc.dirxml,level:Sm.log,message:[e],group:this.#n[this.#n.length-1]||null})}error(e,...l){this.#e.print({type:Kc.error,level:Sm.error,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#I++;let l={id:this.#I,label:e||"default",collapsed:!1,parent:this.#n[this.#n.length-1]||null};this.#n.push(l),this.#e.print({type:Kc.group,level:Sm.log,message:[e||"default"],group:l})}groupCollapsed(e){this.#I++;let l={id:this.#I,label:e||"default",collapsed:!0,parent:this.#n[this.#n.length-1]||null};this.#n.push(l),this.#e.print({type:Kc.groupCollapsed,level:Sm.log,message:[e||"default"],group:l})}groupEnd(){this.#n.length!==0&&this.#n.pop()}info(e,...l){this.#e.print({type:Kc.info,level:Sm.info,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}log(e,...l){this.#e.print({type:Kc.log,level:Sm.log,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){this.#e.print({type:Kc.table,level:Sm.log,message:[e],group:this.#n[this.#n.length-1]||null})}time(e="default"){this.#l[e]=performance.now()}timeEnd(e="default"){let l=this.#l[e];if(l){let I=performance.now()-l;this.#e.print({type:Kc.timeEnd,level:Sm.info,message:[`${e}: ${I}ms - timer ended`],group:this.#n[this.#n.length-1]||null})}}timeLog(e="default",...l){let I=this.#l[e];if(I){let n=performance.now()-I;this.#e.print({type:Kc.timeLog,level:Sm.info,message:[`${e}: ${n}ms`,...l],group:this.#n[this.#n.length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...l){this.#e.print({type:Kc.trace,level:Sm.log,message:[...e?[e,...l]:l,new Error("stack").stack.replace("Error: stack","")],group:this.#n[this.#n.length-1]||null})}warn(e,...l){this.#e.print({type:Kc.warn,level:Sm.warn,message:e?[e,...l]:l,group:this.#n[this.#n.length-1]||null})}};c();var rF=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let l=e.context.pages.indexOf(e);return l!==-1&&e.context.pages.splice(l,1),e.virtualConsolePrinter.close(),q0.destroyFrame(e.mainFrame)}static findFrames(e){let l=[e];for(let I of e.childFrames)l=l.concat(this.findFrames(I));return l}};c();var LGe={width:1024,height:768,devicePixelRatio:1};var s_=class{virtualConsolePrinter=new AH;mainFrame;context;console;viewport=Object.assign({},LGe);closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new sX(this.virtualConsolePrinter),this.mainFrame=new a_(this)}get frames(){return rF.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return rF.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new bt("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};c();var qk=class{#e={};get(e){let l=this.#e[e.url];return l?l.expires<Date.now()?(delete this.#e[e.url],null):l:null}add(e,l){if(delete this.#e[e.url],e.headers.get("Cache-Control")?.includes("no-cache")||l.status<200||l.status>=300)return null;let I=l.headers.get("Access-Control-Max-Age"),n=l.headers.get("Access-Control-Allow-Origin");if(!I||!n)return null;let r=[];if(l.headers.has("Access-Control-Allow-Methods")&&l.headers.get("Access-Control-Allow-Methods")!=="*")for(let o of l.headers.get("Access-Control-Allow-Methods").split(","))r.push(o.trim().toUpperCase());let a={allowOrigin:n,allowMethods:r,expires:Date.now()+parseInt(I)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e[e.url]=a,a)}clear(){this.#e={}}};var $k=class{pages=[];browser;cookieContainer=new Nk;responseCache=new Wk;preflightResponseCache=new qk;closed=!1;constructor(e){this.browser=e}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(I=>I.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newPage(){let e=new s_(this);return this.pages.push(e),e}};c();c();c();var jst={version:"0.0.0"};var oX={disableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,disableErrorCapturing:!1,errorCapture:ks.tryAndCatch,enableFileSystemHttpRequests:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,virtualServers:null},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:_T.anyOrigin},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${jst.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1}};var eL=class{static createSettings(e){return{...oX,...e,navigation:{...oX.navigation,...e?.navigation},navigator:{...oX.navigator,...e?.navigator},timer:{...oX.timer,...e?.timer},fetch:{...oX.fetch,...e?.fetch},device:{...oX.device,...e?.device},debug:{...oX.debug,...e?.debug}}}};c();var tL=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(e){if(this.observedWindows.includes(e))throw new Error("Browser window is already being observed.");this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(l,I)=>{if(I==="unhandledRejection")return;let n=null;for(let r of this.observedWindows)if(l instanceof r.Error||l instanceof r.DOMException){n=r;break}n?(n.console.error(l),n.dispatchEvent(new n.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.uncaughtRejectionListener=l=>{let I=null;for(let n of this.observedWindows)if(l instanceof n.Error||l instanceof n.DOMException){I=n;break}I?(I.console.error(l),I.dispatchEvent(new I.ErrorEvent("error",{error:l,message:l.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(l),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let l=this.observedWindows.indexOf(e);l!==-1&&(this.observedWindows.splice(l,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off("unhandledRejection",this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}};var xGe=class{contexts;settings;console;[oG]=null;constructor(e){this.console=e?.console||null,this.settings=eL.createSettings(e?.settings),this.settings.errorCapture===ks.processLevel&&(this[oG]=new tL),this.contexts=[new $k(this)]}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(l=>l.close()))}async waitUntilComplete(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new $k(this);return this.contexts.push(e),e}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};c();c();c();var lL=class{virtualConsolePrinter=new AH;mainFrame;context;console;viewport=Object.assign({},LGe);closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new sX(this.virtualConsolePrinter),this.mainFrame=new MH(this)}get frames(){return rF.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,l)=>{let I=this.context;rF.closePage(this).then(()=>{I.pages[0]===this?I.browser.close().then(e).catch(l):e()}).catch(l)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let l=Object.assign({},this.viewport);Object.assign(this.viewport,e),(l.width!==this.viewport.width||l.height!==this.viewport.height||l.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new bt("resize"))}goto(e,l){return this.mainFrame.goto(e,l)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,l){return this.mainFrame.goSteps(e,l)}reload(e){return this.mainFrame.reload(e)}};var o_=class{pages;browser;cookieContainer=new Nk;responseCache=new Wk;preflightResponseCache=new qk;closed=!1;constructor(e){this.browser=e,this.pages=[],this.pages.push(new lL(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(I=>I.close()));let e=this.browser,l=e.contexts.indexOf(this);l!==-1&&e.contexts.splice(l,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newPage(){let e=new lL(this);return this.pages.push(e),e}};var c_=class{contexts;settings;console;windowClass;[oG]=null;constructor(e,l){this.windowClass=e,this.console=l?.console||null,this.settings=eL.createSettings(l?.settings),this.settings.errorCapture===ks.processLevel&&(this[oG]=new tL),this.contexts=[],this.contexts.push(new o_(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(l=>l.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,l)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(I=>I.abort())).then(()=>e()).catch(I=>l(I))})}newIncognitoContext(){throw new Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};c();var i_=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}};c();c();var cX=class extends LZ{happyDOM;constructor(e){let I=new c_(LZ,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],n=I.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(I.viewport,{width:e.width||e.innerWidth||I.viewport.width,height:e.height||e.innerHeight||I.viewport.height}),super(n,{url:e?.url}),n.window=this,n.page.context.browser[oG]&&n.page.context.browser[oG].observe(this),this.happyDOM=new i_(n)}};import{Buffer as vhl}from"buffer";var SGe=class extends cX{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=vhl;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[W8](){}};var Chl=["b","blockquote","br","code","em","h1","h2","h3","h4","h5","h6","hr","i","li","ol","p","pre","strong","sub","sup","table","tbody","td","th","thead","tr","ul","img","a"],Hhl=["href","src"],Pst={img:["src"],a:["href"]};var Xhl=new cX,fhl={ALLOWED_TAGS:Chl,ALLOW_DATA_ATTR:!1,ALLOWED_ATTR:Hhl,KEEP_CONTENT:!1,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,WHOLE_DOCUMENT:!1,SANITIZE_DOM:!0,SAFE_FOR_TEMPLATES:!1,SAFE_FOR_XML:!0};function Jhl(t,e,l){let I=t.tagName.toLowerCase();if(!(I in Pst)){e.forceKeepAttr=!1,e.keepAttr=!1;return}let n=Pst[I],r=e.attrName.toLowerCase();if(!n.includes(r)){e.forceKeepAttr=!1,e.keepAttr=!1;return}if(I==="img"&&r==="src"||I==="a"&&r==="href"){try{let a=URL.parse(e.attrValue);if(a&&(a.protocol==="http:"||a.protocol==="https:"))return}catch{}e.forceKeepAttr=!1,e.keepAttr=!1}}function oCe(t,e){if(!t)return t;try{return Kst(t,e)}catch(l){throw new Error(`Failed to apply content filter: ${l}`)}}function cCe(t){switch(t.toLowerCase()){case"none":return"none";case"markdown":return"markdown";case"hidden_characters":return"hidden_characters";default:return"hidden_characters"}}function iCe(t,e){if(t===null||typeof t!="object")return t;for(let[l,I]of Object.entries(t))if(typeof I=="string"){let n=oCe(I,e);t[l]=n}else typeof I=="object"&&I!==null&&(t[l]=iCe(I,e));return t}function Kst(t,e,l=[]){if(!t||e==="none")return t;switch(e||(e="markdown"),e){case"markdown":return aF(t,l);case"hidden_characters":return qst(t);default:throw new Error(`Unknown filter mode: ${e}`)}}function aF(t,e=[]){if(!t)return t;let I=qst(t).split(/(```.*?\n[\s\S\n]+?\n```)|(`[\s\S\n]+?`)/gm),n="";for(let r=0;r<I.length;r++){let a=I[r];a&&(a.startsWith("`")&&a.endsWith("`")?n+=a:(a=a.replace(/!\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<img src="$2">').replace(/\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<a href="$2">$1</a>'),n+=khl(a,e)))}return n}function khl(t,e=[]){let l=ast(Xhl);return l.addHook("uponSanitizeAttribute",Jhl),l.setConfig({...fhl,ADD_TAGS:[...e,"#text"]}),l.sanitize(t)}function qst(t){let e=t.normalize("NFD"),l="";do l=e,e=e.replaceAll(/[\u{E0001}\u{E0020}-\u{E007F}\u{2066}-\u{2069}\u{202A}-\u{202E}\u{200B}\u{200C}\u{200E}\u{200F}\u{00AD}\u{FEFF}\u{180E}\u{2060}-\u{2064}]/gu,"");while(e!==l);return e.normalize("NFC")}c();import*as sF from"fs";import{existsSync as g_}from"fs";c();c();c();c();var dCe=(t,e,l)=>{let I=t instanceof RegExp?$st(t,l):t,n=e instanceof RegExp?$st(e,l):e,r=I!==null&&n!=null&&Lhl(I,n,l);return r&&{start:r[0],end:r[1],pre:l.slice(0,r[0]),body:l.slice(r[0]+I.length,r[1]),post:l.slice(r[1]+n.length)}},$st=(t,e)=>{let l=e.match(t);return l?l[0]:null},Lhl=(t,e,l)=>{let I,n,r,a,s,o=l.indexOf(t),d=l.indexOf(e,o+1),G=o;if(o>=0&&d>0){if(t===e)return[o,d];for(I=[],r=l.length;G>=0&&!s;){if(G===o)I.push(G),o=l.indexOf(t,G+1);else if(I.length===1){let u=I.pop();u!==void 0&&(s=[u,d])}else n=I.pop(),n!==void 0&&n<r&&(r=n,a=d),d=l.indexOf(e,G+1);G=o<d&&o>=0?o:d}I.length&&a!==void 0&&(s=[r,a])}return s};var eot="\0SLASH"+Math.random()+"\0",tot="\0OPEN"+Math.random()+"\0",GCe="\0CLOSE"+Math.random()+"\0",lot="\0COMMA"+Math.random()+"\0",Iot="\0PERIOD"+Math.random()+"\0",xhl=new RegExp(eot,"g"),Shl=new RegExp(tot,"g"),Bhl=new RegExp(GCe,"g"),Ohl=new RegExp(lot,"g"),Thl=new RegExp(Iot,"g"),Uhl=/\\\\/g,_hl=/\\{/g,zhl=/\\}/g,Mhl=/\\,/g,Dhl=/\\./g;function mCe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function jhl(t){return t.replace(Uhl,eot).replace(_hl,tot).replace(zhl,GCe).replace(Mhl,lot).replace(Dhl,Iot)}function Phl(t){return t.replace(xhl,"\\").replace(Shl,"{").replace(Bhl,"}").replace(Ohl,",").replace(Thl,".")}function not(t){if(!t)return[""];let e=[],l=dCe("{","}",t);if(!l)return t.split(",");let{pre:I,body:n,post:r}=l,a=I.split(",");a[a.length-1]+="{"+n+"}";let s=not(r);return r.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),e.push.apply(e,a),e}function rot(t){return t?(t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),_$(jhl(t),!0).map(Phl)):[]}function Khl(t){return"{"+t+"}"}function qhl(t){return/^-?0\d/.test(t)}function $hl(t,e){return t<=e}function eZl(t,e){return t>=e}function _$(t,e){let l=[],I=dCe("{","}",t);if(!I)return[t];let n=I.pre,r=I.post.length?_$(I.post,!1):[""];if(/\$$/.test(I.pre))for(let a=0;a<r.length;a++){let s=n+"{"+I.body+"}"+r[a];l.push(s)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(I.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(I.body),o=a||s,d=I.body.indexOf(",")>=0;if(!o&&!d)return I.post.match(/,(?!,).*\}/)?(t=I.pre+"{"+I.body+GCe+I.post,_$(t)):[t];let G;if(o)G=I.body.split(/\.\./);else if(G=not(I.body),G.length===1&&G[0]!==void 0&&(G=_$(G[0],!1).map(Khl),G.length===1))return r.map(h=>I.pre+G[0]+h);let u;if(o&&G[0]!==void 0&&G[1]!==void 0){let h=mCe(G[0]),g=mCe(G[1]),y=Math.max(G[0].length,G[1].length),R=G.length===3&&G[2]!==void 0?Math.abs(mCe(G[2])):1,V=$hl;g<h&&(R*=-1,V=eZl);let f=G.some(qhl);u=[];for(let x=h;V(x,g);x+=R){let B;if(s)B=String.fromCharCode(x),B==="\\"&&(B="");else if(B=String(x),f){let T=y-B.length;if(T>0){let q=new Array(T+1).join("0");x<0?B="-"+q+B.slice(1):B=q+B}}u.push(B)}}else{u=[];for(let h=0;h<G.length;h++)u.push.apply(u,_$(G[h],!1))}for(let h=0;h<u.length;h++)for(let g=0;g<r.length;g++){let y=n+u[h]+r[g];(!e||o||y)&&l.push(y)}}return l}c();var z$=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};c();c();var tZl={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},M$=t=>t.replace(/[[\]\\-]/g,"\\$&"),lZl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),aot=t=>t.join(""),sot=(t,e)=>{let l=e;if(t.charAt(l)!=="[")throw new Error("not in a brace expression");let I=[],n=[],r=l+1,a=!1,s=!1,o=!1,d=!1,G=l,u="";e:for(;r<t.length;){let R=t.charAt(r);if((R==="!"||R==="^")&&r===l+1){d=!0,r++;continue}if(R==="]"&&a&&!o){G=r+1;break}if(a=!0,R==="\\"&&!o){o=!0,r++;continue}if(R==="["&&!o){for(let[V,[Q,f,x]]of Object.entries(tZl))if(t.startsWith(V,r)){if(u)return["$.",!1,t.length-l,!0];r+=V.length,x?n.push(Q):I.push(Q),s=s||f;continue e}}if(o=!1,u){R>u?I.push(M$(u)+"-"+M$(R)):R===u&&I.push(M$(R)),u="",r++;continue}if(t.startsWith("-]",r+1)){I.push(M$(R+"-")),r+=2;continue}if(t.startsWith("-",r+1)){u=R,r+=2;continue}I.push(M$(R)),r++}if(G<r)return["",!1,0,!1];if(!I.length&&!n.length)return["$.",!1,t.length-l,!0];if(n.length===0&&I.length===1&&/^\\?.$/.test(I[0])&&!d){let R=I[0].length===2?I[0].slice(-1):I[0];return[lZl(R),!1,G-l,!1]}let h="["+(d?"^":"")+aot(I)+"]",g="["+(d?"":"^")+aot(n)+"]";return[I.length&&n.length?"("+h+"|"+g+")":I.length?h:g,s,G-l,!0]};c();var I2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var IZl=new Set(["!","?","+","*","@"]),oot=t=>IZl.has(t),nZl="(?!(?:^|/)\\.\\.?(?:$|/))",BGe="(?!\\.)",rZl=new Set(["[","."]),aZl=new Set(["..","."]),sZl=new Set("().*{}+?[]^$\\!"),oZl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),bCe="[^/]",cot=bCe+"*?",iot=bCe+"+?",d_=class t{type;#e;#t;#l=!1;#I=[];#n;#r;#c;#a=!1;#m;#i;#d=!1;constructor(e,l,I={}){this.type=e,e&&(this.#t=!0),this.#n=l,this.#e=this.#n?this.#n.#e:this,this.#m=this.#e===this?I:this.#e.#m,this.#c=this.#e===this?[]:this.#e.#c,e==="!"&&!this.#e.#a&&this.#c.push(this),this.#r=this.#n?this.#n.#I.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#I)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#i!==void 0?this.#i:this.type?this.#i=this.type+"("+this.#I.map(e=>String(e)).join("|")+")":this.#i=this.#I.map(e=>String(e)).join("")}#s(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let l=e,I=l.#n;for(;I;){for(let n=l.#r+1;!I.type&&n<I.#I.length;n++)for(let r of e.#I){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(I.#I[n])}l=I,I=l.#n}}return this}push(...e){for(let l of e)if(l!==""){if(typeof l!="string"&&!(l instanceof t&&l.#n===this))throw new Error("invalid part: "+l);this.#I.push(l)}}toJSON(){let e=this.type===null?this.#I.slice().map(l=>typeof l=="string"?l:l.toJSON()):[this.type,...this.#I.map(l=>l.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#r===0)return!0;let e=this.#n;for(let l=0;l<this.#r;l++){let I=e.#I[l];if(!(I instanceof t&&I.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let e=this.#n?this.#n.#I.length:0;return this.#r===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let l=new t(this.type,e);for(let I of this.#I)l.copyIn(I);return l}static#b(e,l,I,n){let r=!1,a=!1,s=-1,o=!1;if(l.type===null){let g=I,y="";for(;g<e.length;){let R=e.charAt(g++);if(r||R==="\\"){r=!r,y+=R;continue}if(a){g===s+1?(R==="^"||R==="!")&&(o=!0):R==="]"&&!(g===s+2&&o)&&(a=!1),y+=R;continue}else if(R==="["){a=!0,s=g,o=!1,y+=R;continue}if(!n.noext&&oot(R)&&e.charAt(g)==="("){l.push(y),y="";let V=new t(R,l);g=t.#b(e,V,g,n),l.push(V);continue}y+=R}return l.push(y),g}let d=I+1,G=new t(null,l),u=[],h="";for(;d<e.length;){let g=e.charAt(d++);if(r||g==="\\"){r=!r,h+=g;continue}if(a){d===s+1?(g==="^"||g==="!")&&(o=!0):g==="]"&&!(d===s+2&&o)&&(a=!1),h+=g;continue}else if(g==="["){a=!0,s=d,o=!1,h+=g;continue}if(oot(g)&&e.charAt(d)==="("){G.push(h),h="";let y=new t(g,G);G.push(y),d=t.#b(e,y,d,n);continue}if(g==="|"){G.push(h),h="",u.push(G),G=new t(null,l);continue}if(g===")")return h===""&&l.#I.length===0&&(l.#d=!0),G.push(h),h="",l.push(...u,G),d;h+=g}return l.type=null,l.#t=void 0,l.#I=[e.substring(I-1)],d}static fromGlob(e,l={}){let I=new t(null,void 0,l);return t.#b(e,I,0,l),I}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[l,I,n,r]=this.toRegExpSource();if(!(n||this.#t||this.#m.nocase&&!this.#m.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return I;let s=(this.#m.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${l}$`,s),{_src:l,_glob:e})}get options(){return this.#m}toRegExpSource(e){let l=e??!!this.#m.dot;if(this.#e===this&&this.#s(),!this.type){let o=this.isStart()&&this.isEnd(),d=this.#I.map(g=>{let[y,R,V,Q]=typeof g=="string"?t.#p(g,this.#t,o):g.toRegExpSource(e);return this.#t=this.#t||V,this.#l=this.#l||Q,y}).join(""),G="";if(this.isStart()&&typeof this.#I[0]=="string"&&!(this.#I.length===1&&aZl.has(this.#I[0]))){let y=rZl,R=l&&y.has(d.charAt(0))||d.startsWith("\\.")&&y.has(d.charAt(2))||d.startsWith("\\.\\.")&&y.has(d.charAt(4)),V=!l&&!e&&y.has(d.charAt(0));G=R?nZl:V?BGe:""}let u="";return this.isEnd()&&this.#e.#a&&this.#n?.type==="!"&&(u="(?:$|\\/)"),[G+d+u,I2(d),this.#t=!!this.#t,this.#l]}let I=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#N(l);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let o=this.toString();return this.#I=[o],this.type=null,this.#t=void 0,[o,I2(this.toString()),!1,!1]}let a=!I||e||l||!BGe?"":this.#N(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let s="";if(this.type==="!"&&this.#d)s=(this.isStart()&&!l?BGe:"")+iot;else{let o=this.type==="!"?"))"+(this.isStart()&&!l&&!e?BGe:"")+cot+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;s=n+r+o}return[s,I2(r),this.#t=!!this.#t,this.#l]}#N(e){return this.#I.map(l=>{if(typeof l=="string")throw new Error("string type in extglob ast??");let[I,n,r,a]=l.toRegExpSource(e);return this.#l=this.#l||a,I}).filter(l=>!(this.isStart()&&this.isEnd())||!!l).join("|")}static#p(e,l,I=!1){let n=!1,r="",a=!1;for(let s=0;s<e.length;s++){let o=e.charAt(s);if(n){n=!1,r+=(sZl.has(o)?"\\":"")+o;continue}if(o==="\\"){s===e.length-1?r+="\\\\":n=!0;continue}if(o==="["){let[d,G,u,h]=sot(e,s);if(u){r+=d,a=a||G,s+=u-1,l=l||h;continue}}if(o==="*"){I&&e==="*"?r+=iot:r+=cot,l=!0;continue}if(o==="?"){r+=bCe,l=!0;continue}r+=oZl(o)}return[r,I2(e),!!l,a]}};c();var m_=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var Wh=(t,e,l={})=>(z$(e),!l.nocomment&&e.charAt(0)==="#"?!1:new CW(e,l).match(t)),cZl=/^\*+([^+@!?\*\[\(]*)$/,iZl=t=>e=>!e.startsWith(".")&&e.endsWith(t),dZl=t=>e=>e.endsWith(t),mZl=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),GZl=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),bZl=/^\*+\.\*+$/,uZl=t=>!t.startsWith(".")&&t.includes("."),pZl=t=>t!=="."&&t!==".."&&t.includes("."),hZl=/^\.\*+$/,ZZl=t=>t!=="."&&t!==".."&&t.startsWith("."),NZl=/^\*+$/,WZl=t=>t.length!==0&&!t.startsWith("."),gZl=t=>t.length!==0&&t!=="."&&t!=="..",AZl=/^\?+([^+@!?\*\[\(]*)?$/,yZl=([t,e=""])=>{let l=Got([t]);return e?(e=e.toLowerCase(),I=>l(I)&&I.toLowerCase().endsWith(e)):l},RZl=([t,e=""])=>{let l=bot([t]);return e?(e=e.toLowerCase(),I=>l(I)&&I.toLowerCase().endsWith(e)):l},EZl=([t,e=""])=>{let l=bot([t]);return e?I=>l(I)&&I.endsWith(e):l},YZl=([t,e=""])=>{let l=Got([t]);return e?I=>l(I)&&I.endsWith(e):l},Got=([t])=>{let e=t.length;return l=>l.length===e&&!l.startsWith(".")},bot=([t])=>{let e=t.length;return l=>l.length===e&&l!=="."&&l!==".."},uot=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",dot={win32:{sep:"\\"},posix:{sep:"/"}},VZl=uot==="win32"?dot.win32.sep:dot.posix.sep;Wh.sep=VZl;var Kb=Symbol("globstar **");Wh.GLOBSTAR=Kb;var wZl="[^/]",FZl=wZl+"*?",QZl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",vZl="(?:(?!(?:\\/|^)\\.).)*?",CZl=(t,e={})=>l=>Wh(l,t,e);Wh.filter=CZl;var AA=(t,e={})=>Object.assign({},t,e),HZl=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Wh;let e=Wh;return Object.assign((I,n,r={})=>e(I,n,AA(t,r)),{Minimatch:class extends e.Minimatch{constructor(n,r={}){super(n,AA(t,r))}static defaults(n){return e.defaults(AA(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,r,a={}){super(n,r,AA(t,a))}static fromGlob(n,r={}){return e.AST.fromGlob(n,AA(t,r))}},unescape:(I,n={})=>e.unescape(I,AA(t,n)),escape:(I,n={})=>e.escape(I,AA(t,n)),filter:(I,n={})=>e.filter(I,AA(t,n)),defaults:I=>e.defaults(AA(t,I)),makeRe:(I,n={})=>e.makeRe(I,AA(t,n)),braceExpand:(I,n={})=>e.braceExpand(I,AA(t,n)),match:(I,n,r={})=>e.match(I,n,AA(t,r)),sep:e.sep,GLOBSTAR:Kb})};Wh.defaults=HZl;var pot=(t,e={})=>(z$(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:rot(t));Wh.braceExpand=pot;var XZl=(t,e={})=>new CW(t,e).makeRe();Wh.makeRe=XZl;var fZl=(t,e,l={})=>{let I=new CW(e,l);return t=t.filter(n=>I.match(n)),I.options.nonull&&!t.length&&t.push(e),t};Wh.match=fZl;var mot=/[?*]|[+@!]\(.*?\)|\[|\]/,JZl=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),CW=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,l={}){z$(e),l=l||{},this.options=l,this.pattern=e,this.platform=l.platform||uot,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!l.windowsPathsNoEscape||l.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!l.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!l.nonegate,this.comment=!1,this.empty=!1,this.partial=!!l.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=l.windowsNoMagicRoot!==void 0?l.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let l of e)if(typeof l!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,l=this.options;if(!l.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],l.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let I=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(I),this.debug(this.pattern,this.globParts);let n=this.globParts.map((r,a,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){let o=r[0]===""&&r[1]===""&&(r[2]==="?"||!mot.test(r[2]))&&!mot.test(r[3]),d=/^[a-z]:/i.test(r[0]);if(o)return[...r.slice(0,4),...r.slice(4).map(G=>this.parse(G))];if(d)return[r[0],...r.slice(1).map(G=>this.parse(G))]}return r.map(o=>this.parse(o))});if(this.debug(this.pattern,n),this.set=n.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let I=0;I<e.length;I++)for(let n=0;n<e[I].length;n++)e[I][n]==="**"&&(e[I][n]="*");let{optimizationLevel:l=1}=this.options;return l>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):l>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(l=>{let I=-1;for(;(I=l.indexOf("**",I+1))!==-1;){let n=I;for(;l[n+1]==="**";)n++;n!==I&&l.splice(I,n-I)}return l})}levelOneOptimize(e){return e.map(l=>(l=l.reduce((I,n)=>{let r=I[I.length-1];return n==="**"&&r==="**"?I:n===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(I.pop(),I):(I.push(n),I)},[]),l.length===0?[""]:l))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let l=!1;do{if(l=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===""&&e[0]===""||(r==="."||r==="")&&(l=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(l=!0,e.pop())}let I=0;for(;(I=e.indexOf("..",I+1))!==-1;){let n=e[I-1];n&&n!=="."&&n!==".."&&n!=="**"&&(l=!0,e.splice(I-1,2),I-=2)}}while(l);return e.length===0?[""]:e}firstPhasePreProcess(e){let l=!1;do{l=!1;for(let I of e){let n=-1;for(;(n=I.indexOf("**",n+1))!==-1;){let a=n;for(;I[a+1]==="**";)a++;a>n&&I.splice(n+1,a-n);let s=I[n+1],o=I[n+2],d=I[n+3];if(s!==".."||!o||o==="."||o===".."||!d||d==="."||d==="..")continue;l=!0,I.splice(n,1);let G=I.slice(0);G[n]="**",e.push(G),n--}if(!this.preserveMultipleSlashes){for(let a=1;a<I.length-1;a++){let s=I[a];a===1&&s===""&&I[0]===""||(s==="."||s==="")&&(l=!0,I.splice(a,1),a--)}I[0]==="."&&I.length===2&&(I[1]==="."||I[1]==="")&&(l=!0,I.pop())}let r=0;for(;(r=I.indexOf("..",r+1))!==-1;){let a=I[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){l=!0;let o=r===1&&I[r+1]==="**"?["."]:[];I.splice(r-1,2,...o),I.length===0&&I.push(""),r-=2}}}}while(l);return e}secondPhasePreProcess(e){for(let l=0;l<e.length-1;l++)for(let I=l+1;I<e.length;I++){let n=this.partsMatch(e[l],e[I],!this.preserveMultipleSlashes);if(n){e[l]=[],e[I]=n;break}}return e.filter(l=>l.length)}partsMatch(e,l,I=!1){let n=0,r=0,a=[],s="";for(;n<e.length&&r<l.length;)if(e[n]===l[r])a.push(s==="b"?l[r]:e[n]),n++,r++;else if(I&&e[n]==="**"&&l[r]===e[n+1])a.push(e[n]),n++;else if(I&&l[r]==="**"&&e[n]===l[r+1])a.push(l[r]),r++;else if(e[n]==="*"&&l[r]&&(this.options.dot||!l[r].startsWith("."))&&l[r]!=="**"){if(s==="b")return!1;s="a",a.push(e[n]),n++,r++}else if(l[r]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(s==="a")return!1;s="b",a.push(l[r]),n++,r++}else return!1;return e.length===l.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,l=!1,I=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)l=!l,I++;I&&(this.pattern=e.slice(I)),this.negate=l}matchOne(e,l,I=!1){let n=this.options;if(this.isWindows){let R=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),V=!R&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),Q=typeof l[0]=="string"&&/^[a-z]:$/i.test(l[0]),f=!Q&&l[0]===""&&l[1]===""&&l[2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3]),x=V?3:R?0:void 0,B=f?3:Q?0:void 0;if(typeof x=="number"&&typeof B=="number"){let[T,q]=[e[x],l[B]];T.toLowerCase()===q.toLowerCase()&&(l[B]=T,B>x?l=l.slice(B):x>B&&(e=e.slice(x)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:l}),this.debug("matchOne",e.length,l.length);for(var a=0,s=0,o=e.length,d=l.length;a<o&&s<d;a++,s++){this.debug("matchOne loop");var G=l[s],u=e[a];if(this.debug(l,G,u),G===!1)return!1;if(G===Kb){this.debug("GLOBSTAR",[l,G,u]);var h=a,g=s+1;if(g===d){for(this.debug("** at the end");a<o;a++)if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return!1;return!0}for(;h<o;){var y=e[h];if(this.debug(`
|
|
961
961
|
globstar while`,e,h,l,g,y),this.matchOne(e.slice(h),l.slice(g),I))return this.debug("globstar found match!",h,o,y),!0;if(y==="."||y===".."||!n.dot&&y.charAt(0)==="."){this.debug("dot detected!",e,h,l,g);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(I&&(this.debug(`
|
|
962
962
|
>>> no match, partial?`,e,h,l,g),h===o))}let R;if(typeof G=="string"?(R=u===G,this.debug("string match",G,u,R)):(R=G.test(u),this.debug("pattern match",G,u,R)),!R)return!1}if(a===o&&s===d)return!0;if(a===o)return I;if(s===d)return a===o-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return pot(this.pattern,this.options)}parse(e){z$(e);let l=this.options;if(e==="**")return Kb;if(e==="")return"";let I,n=null;(I=e.match(NZl))?n=l.dot?gZl:WZl:(I=e.match(cZl))?n=(l.nocase?l.dot?GZl:mZl:l.dot?dZl:iZl)(I[1]):(I=e.match(AZl))?n=(l.nocase?l.dot?RZl:yZl:l.dot?EZl:YZl)(I):(I=e.match(bZl))?n=l.dot?pZl:uZl:(I=e.match(hZl))&&(n=ZZl);let r=d_.fromGlob(e,this.options).toMMPattern();return n&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:n}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let l=this.options,I=l.noglobstar?FZl:l.dot?QZl:vZl,n=new Set(l.nocase?["i"]:[]),r=e.map(o=>{let d=o.map(G=>{if(G instanceof RegExp)for(let u of G.flags.split(""))n.add(u);return typeof G=="string"?JZl(G):G===Kb?Kb:G._src});return d.forEach((G,u)=>{let h=d[u+1],g=d[u-1];G!==Kb||g===Kb||(g===void 0?h!==void 0&&h!==Kb?d[u+1]="(?:\\/|"+I+"\\/)?"+h:d[u]=I:h===void 0?d[u-1]=g+"(?:\\/|"+I+")?":h!==Kb&&(d[u-1]=g+"(?:\\/|\\/"+I+"\\/)"+h,d[u+1]=Kb))}),d.filter(G=>G!==Kb).join("/")}).join("|"),[a,s]=e.length>1?["(?:",")"]:["",""];r="^"+a+r+s+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,l=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&l)return!0;let I=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let r=this.set;this.debug(this.pattern,"set",r);let a=n[n.length-1];if(!a)for(let s=n.length-2;!a&&s>=0;s--)a=n[s];for(let s=0;s<r.length;s++){let o=r[s],d=n;if(I.matchBase&&o.length===1&&(d=[a]),this.matchOne(d,o,l))return I.flipNegate?!0:!this.negate}return I.flipNegate?!1:this.negate}static defaults(e){return Wh.defaults(e).Minimatch}};Wh.AST=d_;Wh.Minimatch=CW;Wh.escape=m_;Wh.unescape=I2;c();import{fileURLToPath as nNl}from"node:url";c();c();var G_=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Zot=new Set,uCe=typeof process=="object"&&process?process:{},Not=(t,e,l,I)=>{typeof uCe.emitWarning=="function"?uCe.emitWarning(t,e,l,I):console.error(`[${l}] ${e}: ${t}`)},OGe=globalThis.AbortController,hot=globalThis.AbortSignal;if(typeof OGe>"u"){hot=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(I,n){this._onabort.push(n)}},OGe=class{constructor(){e()}signal=new hot;abort(I){if(!this.signal.aborted){this.signal.reason=I,this.signal.aborted=!0;for(let n of this.signal._onabort)n(I);this.signal.onabort?.(I)}}};let t=uCe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Not("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var kZl=t=>!Zot.has(t),Rgn=Symbol("type"),iX=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Wot=t=>iX(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?b_:null:null,b_=class extends Array{constructor(e){super(e),this.fill(0)}},pCe=class t{heap;length;static#e=!1;static create(e){let l=Wot(e);if(!l)return[];t.#e=!0;let I=new t(e,l);return t.#e=!1,I}constructor(e,l){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new l(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},D$=class t{#e;#t;#l;#I;#n;#r;#c;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#m;#i;#d;#s;#b;#N;#p;#h;#V;#Z;#w;#A;#g;#W;#E;#u;#Q;static unsafeExposeInternals(e){return{starts:e.#A,ttls:e.#g,sizes:e.#w,keyMap:e.#i,keyList:e.#d,valList:e.#s,next:e.#b,prev:e.#N,get head(){return e.#p},get tail(){return e.#h},free:e.#V,isBackgroundFetch:l=>e.#G(l),backgroundFetch:(l,I,n,r)=>e.#f(l,I,n,r),moveToTail:l=>e.#L(l),indexes:l=>e.#Y(l),rindexes:l=>e.#F(l),isStale:l=>e.#R(l)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#m}get size(){return this.#a}get fetchMethod(){return this.#r}get memoMethod(){return this.#c}get dispose(){return this.#l}get onInsert(){return this.#I}get disposeAfter(){return this.#n}constructor(e){let{max:l=0,ttl:I,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:o,dispose:d,onInsert:G,disposeAfter:u,noDisposeOnSet:h,noUpdateTTL:g,maxSize:y=0,maxEntrySize:R=0,sizeCalculation:V,fetchMethod:Q,memoMethod:f,noDeleteOnFetchRejection:x,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:T,allowStaleOnFetchAbort:q,ignoreFetchAbort:te}=e;if(l!==0&&!iX(l))throw new TypeError("max option must be a nonnegative integer");let ae=l?Wot(l):Array;if(!ae)throw new Error("invalid max value: "+l);if(this.#e=l,this.#t=y,this.maxEntrySize=R||this.#t,this.sizeCalculation=V,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(f!==void 0&&typeof f!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#c=f,Q!==void 0&&typeof Q!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#r=Q,this.#E=!!Q,this.#i=new Map,this.#d=new Array(l).fill(void 0),this.#s=new Array(l).fill(void 0),this.#b=new ae(l),this.#N=new ae(l),this.#p=0,this.#h=0,this.#V=pCe.create(l),this.#a=0,this.#m=0,typeof d=="function"&&(this.#l=d),typeof G=="function"&&(this.#I=G),typeof u=="function"?(this.#n=u,this.#Z=[]):(this.#n=void 0,this.#Z=void 0),this.#W=!!this.#l,this.#Q=!!this.#I,this.#u=!!this.#n,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!x,this.allowStaleOnFetchRejection=!!T,this.allowStaleOnFetchAbort=!!q,this.ignoreFetchAbort=!!te,this.maxEntrySize!==0){if(this.#t!==0&&!iX(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!iX(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#S()}if(this.allowStale=!!o,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=iX(n)||n===0?n:1,this.ttlAutopurge=!!r,this.ttl=I||0,this.ttl){if(!iX(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#o()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let U="LRU_CACHE_UNBOUNDED";kZl(U)&&(Zot.add(U),Not("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",U,t))}}getRemainingTTL(e){return this.#i.has(e)?1/0:0}#o(){let e=new b_(this.#e),l=new b_(this.#e);this.#g=e,this.#A=l,this.#v=(r,a,s=G_.now())=>{if(l[r]=a!==0?s:0,e[r]=a,a!==0&&this.ttlAutopurge){let o=setTimeout(()=>{this.#R(r)&&this.#C(this.#d[r],"expire")},a+1);o.unref&&o.unref()}},this.#H=r=>{l[r]=e[r]!==0?G_.now():0},this.#y=(r,a)=>{if(e[a]){let s=e[a],o=l[a];if(!s||!o)return;r.ttl=s,r.start=o,r.now=I||n();let d=r.now-o;r.remainingTTL=s-d}};let I=0,n=()=>{let r=G_.now();if(this.ttlResolution>0){I=r;let a=setTimeout(()=>I=0,this.ttlResolution);a.unref&&a.unref()}return r};this.getRemainingTTL=r=>{let a=this.#i.get(r);if(a===void 0)return 0;let s=e[a],o=l[a];if(!s||!o)return 1/0;let d=(I||n())-o;return s-d},this.#R=r=>{let a=l[r],s=e[r];return!!s&&!!a&&(I||n())-a>s}}#H=()=>{};#y=()=>{};#v=()=>{};#R=()=>!1;#S(){let e=new b_(this.#e);this.#m=0,this.#w=e,this.#X=l=>{this.#m-=e[l],e[l]=0},this.#B=(l,I,n,r)=>{if(this.#G(I))return 0;if(!iX(n))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(n=r(I,l),!iX(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#J=(l,I,n)=>{if(e[l]=I,this.#t){let r=this.#t-e[l];for(;this.#m>r;)this.#k(!0)}this.#m+=e[l],n&&(n.entrySize=I,n.totalCalculatedSize=this.#m)}}#X=e=>{};#J=(e,l,I)=>{};#B=(e,l,I,n)=>{if(I||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#Y({allowStale:e=this.allowStale}={}){if(this.#a)for(let l=this.#h;!(!this.#O(l)||((e||!this.#R(l))&&(yield l),l===this.#p));)l=this.#N[l]}*#F({allowStale:e=this.allowStale}={}){if(this.#a)for(let l=this.#p;!(!this.#O(l)||((e||!this.#R(l))&&(yield l),l===this.#h));)l=this.#b[l]}#O(e){return e!==void 0&&this.#i.get(this.#d[e])===e}*entries(){for(let e of this.#Y())this.#s[e]!==void 0&&this.#d[e]!==void 0&&!this.#G(this.#s[e])&&(yield[this.#d[e],this.#s[e]])}*rentries(){for(let e of this.#F())this.#s[e]!==void 0&&this.#d[e]!==void 0&&!this.#G(this.#s[e])&&(yield[this.#d[e],this.#s[e]])}*keys(){for(let e of this.#Y()){let l=this.#d[e];l!==void 0&&!this.#G(this.#s[e])&&(yield l)}}*rkeys(){for(let e of this.#F()){let l=this.#d[e];l!==void 0&&!this.#G(this.#s[e])&&(yield l)}}*values(){for(let e of this.#Y())this.#s[e]!==void 0&&!this.#G(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#F())this.#s[e]!==void 0&&!this.#G(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,l={}){for(let I of this.#Y()){let n=this.#s[I],r=this.#G(n)?n.__staleWhileFetching:n;if(r!==void 0&&e(r,this.#d[I],this))return this.get(this.#d[I],l)}}forEach(e,l=this){for(let I of this.#Y()){let n=this.#s[I],r=this.#G(n)?n.__staleWhileFetching:n;r!==void 0&&e.call(l,r,this.#d[I],this)}}rforEach(e,l=this){for(let I of this.#F()){let n=this.#s[I],r=this.#G(n)?n.__staleWhileFetching:n;r!==void 0&&e.call(l,r,this.#d[I],this)}}purgeStale(){let e=!1;for(let l of this.#F({allowStale:!0}))this.#R(l)&&(this.#C(this.#d[l],"expire"),e=!0);return e}info(e){let l=this.#i.get(e);if(l===void 0)return;let I=this.#s[l],n=this.#G(I)?I.__staleWhileFetching:I;if(n===void 0)return;let r={value:n};if(this.#g&&this.#A){let a=this.#g[l],s=this.#A[l];if(a&&s){let o=a-(G_.now()-s);r.ttl=o,r.start=Date.now()}}return this.#w&&(r.size=this.#w[l]),r}dump(){let e=[];for(let l of this.#Y({allowStale:!0})){let I=this.#d[l],n=this.#s[l],r=this.#G(n)?n.__staleWhileFetching:n;if(r===void 0||I===void 0)continue;let a={value:r};if(this.#g&&this.#A){a.ttl=this.#g[l];let s=G_.now()-this.#A[l];a.start=Math.floor(Date.now()-s)}this.#w&&(a.size=this.#w[l]),e.unshift([I,a])}return e}load(e){this.clear();for(let[l,I]of e){if(I.start){let n=Date.now()-I.start;I.start=G_.now()-n}this.set(l,I.value,I)}}set(e,l,I={}){if(l===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:o}=I,{noUpdateTTL:d=this.noUpdateTTL}=I,G=this.#B(e,l,I.size||0,s);if(this.maxEntrySize&&G>this.maxEntrySize)return o&&(o.set="miss",o.maxEntrySizeExceeded=!0),this.#C(e,"set"),this;let u=this.#a===0?void 0:this.#i.get(e);if(u===void 0)u=this.#a===0?this.#h:this.#V.length!==0?this.#V.pop():this.#a===this.#e?this.#k(!1):this.#a,this.#d[u]=e,this.#s[u]=l,this.#i.set(e,u),this.#b[this.#h]=u,this.#N[u]=this.#h,this.#h=u,this.#a++,this.#J(u,G,o),o&&(o.set="add"),d=!1,this.#Q&&this.#I?.(l,e,"add");else{this.#L(u);let h=this.#s[u];if(l!==h){if(this.#E&&this.#G(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:g}=h;g!==void 0&&!a&&(this.#W&&this.#l?.(g,e,"set"),this.#u&&this.#Z?.push([g,e,"set"]))}else a||(this.#W&&this.#l?.(h,e,"set"),this.#u&&this.#Z?.push([h,e,"set"]));if(this.#X(u),this.#J(u,G,o),this.#s[u]=l,o){o.set="replace";let g=h&&this.#G(h)?h.__staleWhileFetching:h;g!==void 0&&(o.oldValue=g)}}else o&&(o.set="update");this.#Q&&this.onInsert?.(l,e,l===h?"update":"replace")}if(n!==0&&!this.#g&&this.#o(),this.#g&&(d||this.#v(u,n,r),o&&this.#y(o,u)),!a&&this.#u&&this.#Z){let h=this.#Z,g;for(;g=h?.shift();)this.#n?.(...g)}return this}pop(){try{for(;this.#a;){let e=this.#s[this.#p];if(this.#k(!0),this.#G(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#u&&this.#Z){let e=this.#Z,l;for(;l=e?.shift();)this.#n?.(...l)}}}#k(e){let l=this.#p,I=this.#d[l],n=this.#s[l];return this.#E&&this.#G(n)?n.__abortController.abort(new Error("evicted")):(this.#W||this.#u)&&(this.#W&&this.#l?.(n,I,"evict"),this.#u&&this.#Z?.push([n,I,"evict"])),this.#X(l),e&&(this.#d[l]=void 0,this.#s[l]=void 0,this.#V.push(l)),this.#a===1?(this.#p=this.#h=0,this.#V.length=0):this.#p=this.#b[l],this.#i.delete(I),this.#a--,l}has(e,l={}){let{updateAgeOnHas:I=this.updateAgeOnHas,status:n}=l,r=this.#i.get(e);if(r!==void 0){let a=this.#s[r];if(this.#G(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#R(r))n&&(n.has="stale",this.#y(n,r));else return I&&this.#H(r),n&&(n.has="hit",this.#y(n,r)),!0}else n&&(n.has="miss");return!1}peek(e,l={}){let{allowStale:I=this.allowStale}=l,n=this.#i.get(e);if(n===void 0||!I&&this.#R(n))return;let r=this.#s[n];return this.#G(r)?r.__staleWhileFetching:r}#f(e,l,I,n){let r=l===void 0?void 0:this.#s[l];if(this.#G(r))return r;let a=new OGe,{signal:s}=I;s?.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let o={signal:a.signal,options:I,context:n},d=(R,V=!1)=>{let{aborted:Q}=a.signal,f=I.ignoreFetchAbort&&R!==void 0;if(I.status&&(Q&&!V?(I.status.fetchAborted=!0,I.status.fetchError=a.signal.reason,f&&(I.status.fetchAbortIgnored=!0)):I.status.fetchResolved=!0),Q&&!f&&!V)return u(a.signal.reason);let x=g;return this.#s[l]===g&&(R===void 0?x.__staleWhileFetching?this.#s[l]=x.__staleWhileFetching:this.#C(e,"fetch"):(I.status&&(I.status.fetchUpdated=!0),this.set(e,R,o.options))),R},G=R=>(I.status&&(I.status.fetchRejected=!0,I.status.fetchError=R),u(R)),u=R=>{let{aborted:V}=a.signal,Q=V&&I.allowStaleOnFetchAbort,f=Q||I.allowStaleOnFetchRejection,x=f||I.noDeleteOnFetchRejection,B=g;if(this.#s[l]===g&&(!x||B.__staleWhileFetching===void 0?this.#C(e,"fetch"):Q||(this.#s[l]=B.__staleWhileFetching)),f)return I.status&&B.__staleWhileFetching!==void 0&&(I.status.returnedStale=!0),B.__staleWhileFetching;if(B.__returned===B)throw R},h=(R,V)=>{let Q=this.#r?.(e,r,o);Q&&Q instanceof Promise&&Q.then(f=>R(f===void 0?void 0:f),V),a.signal.addEventListener("abort",()=>{(!I.ignoreFetchAbort||I.allowStaleOnFetchAbort)&&(R(void 0),I.allowStaleOnFetchAbort&&(R=f=>d(f,!0)))})};I.status&&(I.status.fetchDispatched=!0);let g=new Promise(h).then(d,G),y=Object.assign(g,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return l===void 0?(this.set(e,y,{...o.options,status:void 0}),l=this.#i.get(e)):this.#s[l]=y,y}#G(e){if(!this.#E)return!1;let l=e;return!!l&&l instanceof Promise&&l.hasOwnProperty("__staleWhileFetching")&&l.__abortController instanceof OGe}async fetch(e,l={}){let{allowStale:I=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:G=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:y=this.allowStaleOnFetchAbort,context:R,forceRefresh:V=!1,status:Q,signal:f}=l;if(!this.#E)return Q&&(Q.fetch="get"),this.get(e,{allowStale:I,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:Q});let x={allowStale:I,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:s,size:o,sizeCalculation:d,noUpdateTTL:G,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:y,ignoreFetchAbort:g,status:Q,signal:f},B=this.#i.get(e);if(B===void 0){Q&&(Q.fetch="miss");let T=this.#f(e,B,x,R);return T.__returned=T}else{let T=this.#s[B];if(this.#G(T)){let $=I&&T.__staleWhileFetching!==void 0;return Q&&(Q.fetch="inflight",$&&(Q.returnedStale=!0)),$?T.__staleWhileFetching:T.__returned=T}let q=this.#R(B);if(!V&&!q)return Q&&(Q.fetch="hit"),this.#L(B),n&&this.#H(B),Q&&this.#y(Q,B),T;let te=this.#f(e,B,x,R),U=te.__staleWhileFetching!==void 0&&I;return Q&&(Q.fetch=q?"stale":"refresh",U&&q&&(Q.returnedStale=!0)),U?te.__staleWhileFetching:te.__returned=te}}async forceFetch(e,l={}){let I=await this.fetch(e,l);if(I===void 0)throw new Error("fetch() returned undefined");return I}memo(e,l={}){let I=this.#c;if(!I)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:r,...a}=l,s=this.get(e,a);if(!r&&s!==void 0)return s;let o=I(e,s,{options:a,context:n});return this.set(e,o,a),o}get(e,l={}){let{allowStale:I=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=l,s=this.#i.get(e);if(s!==void 0){let o=this.#s[s],d=this.#G(o);return a&&this.#y(a,s),this.#R(s)?(a&&(a.get="stale"),d?(a&&I&&o.__staleWhileFetching!==void 0&&(a.returnedStale=!0),I?o.__staleWhileFetching:void 0):(r||this.#C(e,"expire"),a&&I&&(a.returnedStale=!0),I?o:void 0)):(a&&(a.get="hit"),d?o.__staleWhileFetching:(this.#L(s),n&&this.#H(s),o))}else a&&(a.get="miss")}#T(e,l){this.#N[l]=e,this.#b[e]=l}#L(e){e!==this.#h&&(e===this.#p?this.#p=this.#b[e]:this.#T(this.#N[e],this.#b[e]),this.#T(this.#h,e),this.#h=e)}delete(e){return this.#C(e,"delete")}#C(e,l){let I=!1;if(this.#a!==0){let n=this.#i.get(e);if(n!==void 0)if(I=!0,this.#a===1)this.#x(l);else{this.#X(n);let r=this.#s[n];if(this.#G(r)?r.__abortController.abort(new Error("deleted")):(this.#W||this.#u)&&(this.#W&&this.#l?.(r,e,l),this.#u&&this.#Z?.push([r,e,l])),this.#i.delete(e),this.#d[n]=void 0,this.#s[n]=void 0,n===this.#h)this.#h=this.#N[n];else if(n===this.#p)this.#p=this.#b[n];else{let a=this.#N[n];this.#b[a]=this.#b[n];let s=this.#b[n];this.#N[s]=this.#N[n]}this.#a--,this.#V.push(n)}}if(this.#u&&this.#Z?.length){let n=this.#Z,r;for(;r=n?.shift();)this.#n?.(...r)}return I}clear(){return this.#x("delete")}#x(e){for(let l of this.#F({allowStale:!0})){let I=this.#s[l];if(this.#G(I))I.__abortController.abort(new Error("deleted"));else{let n=this.#d[l];this.#W&&this.#l?.(I,n,e),this.#u&&this.#Z?.push([I,n,e])}}if(this.#i.clear(),this.#s.fill(void 0),this.#d.fill(void 0),this.#g&&this.#A&&(this.#g.fill(0),this.#A.fill(0)),this.#w&&this.#w.fill(0),this.#p=0,this.#h=0,this.#V.length=0,this.#m=0,this.#a=0,this.#u&&this.#Z){let l=this.#Z,I;for(;I=l?.shift();)this.#n?.(...I)}}};import{posix as LZl,win32 as NCe}from"node:path";import{fileURLToPath as xZl}from"node:url";import{lstatSync as SZl,readdir as BZl,readdirSync as OZl,readlinkSync as TZl,realpathSync as UZl}from"fs";import*as _Zl from"node:fs";import{lstat as MZl,readdir as DZl,readlink as jZl,realpath as PZl}from"node:fs/promises";var zZl=UZl.native,P$={lstatSync:SZl,readdir:BZl,readdirSync:OZl,readlinkSync:TZl,realpathSync:zZl,promises:{lstat:MZl,readdir:DZl,readlink:jZl,realpath:PZl}},Eot=t=>!t||t===P$||t===_Zl?P$:{...P$,...t,promises:{...P$.promises,...t.promises||{}}},Yot=/^\\\\\?\\([a-z]:)\\?$/i,KZl=t=>t.replace(/\//g,"\\").replace(Yot,"$1\\"),qZl=/[\\\/]/,RA=0,Vot=1,wot=2,aY=4,Fot=6,Qot=8,IL=10,vot=12,yA=15,j$=~yA,hCe=16,got=32,K$=64,n2=128,TGe=256,_Ge=512,Aot=K$|n2|_Ge,$Zl=1023,ZCe=t=>t.isFile()?Qot:t.isDirectory()?aY:t.isSymbolicLink()?IL:t.isCharacterDevice()?wot:t.isBlockDevice()?Fot:t.isSocket()?vot:t.isFIFO()?Vot:RA,yot=new Map,q$=t=>{let e=yot.get(t);if(e)return e;let l=t.normalize("NFKD");return yot.set(t,l),l},Rot=new Map,UGe=t=>{let e=Rot.get(t);if(e)return e;let l=q$(t.toLowerCase());return Rot.set(t,l),l},zGe=class extends D${constructor(){super({max:256})}},WCe=class extends D${constructor(e=16*1024){super({maxSize:e,sizeCalculation:l=>l.length+1})}},Cot=Symbol("PathScurry setAsCwd"),qu=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#l;get mode(){return this.#l}#I;get nlink(){return this.#I}#n;get uid(){return this.#n}#r;get gid(){return this.#r}#c;get rdev(){return this.#c}#a;get blksize(){return this.#a}#m;get ino(){return this.#m}#i;get size(){return this.#i}#d;get blocks(){return this.#d}#s;get atimeMs(){return this.#s}#b;get mtimeMs(){return this.#b}#N;get ctimeMs(){return this.#N}#p;get birthtimeMs(){return this.#p}#h;get atime(){return this.#h}#V;get mtime(){return this.#V}#Z;get ctime(){return this.#Z}#w;get birthtime(){return this.#w}#A;#g;#W;#E;#u;#Q;#o;#H;#y;#v;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,l=RA,I,n,r,a,s){this.name=e,this.#A=r?UGe(e):q$(e),this.#o=l&$Zl,this.nocase=r,this.roots=n,this.root=I||this,this.#H=a,this.#W=s.fullpath,this.#u=s.relative,this.#Q=s.relativePosix,this.parent=s.parent,this.parent?this.#e=this.parent.#e:this.#e=Eot(s.fs)}depth(){return this.#g!==void 0?this.#g:this.parent?this.#g=this.parent.depth()+1:this.#g=0}childrenCache(){return this.#H}resolve(e){if(!e)return this;let l=this.getRootString(e),n=e.substring(l.length).split(this.splitSep);return l?this.getRoot(l).#R(n):this.#R(n)}#R(e){let l=this;for(let I of e)l=l.child(I);return l}children(){let e=this.#H.get(this);if(e)return e;let l=Object.assign([],{provisional:0});return this.#H.set(this,l),this.#o&=~hCe,l}child(e,l){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let I=this.children(),n=this.nocase?UGe(e):q$(e);for(let o of I)if(o.#A===n)return o;let r=this.parent?this.sep:"",a=this.#W?this.#W+r+e:void 0,s=this.newChild(e,RA,{...l,parent:this,fullpath:a});return this.canReaddir()||(s.#o|=n2),I.push(s),s}relative(){if(this.isCWD)return"";if(this.#u!==void 0)return this.#u;let e=this.name,l=this.parent;if(!l)return this.#u=this.name;let I=l.relative();return I+(!I||!l.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#Q!==void 0)return this.#Q;let e=this.name,l=this.parent;if(!l)return this.#Q=this.fullpathPosix();let I=l.relativePosix();return I+(!I||!l.parent?"":"/")+e}fullpath(){if(this.#W!==void 0)return this.#W;let e=this.name,l=this.parent;if(!l)return this.#W=this.name;let n=l.fullpath()+(l.parent?this.sep:"")+e;return this.#W=n}fullpathPosix(){if(this.#E!==void 0)return this.#E;if(this.sep==="/")return this.#E=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#E=`//?/${n}`:this.#E=n}let e=this.parent,l=e.fullpathPosix(),I=l+(!l||!e.parent?"":"/")+this.name;return this.#E=I}isUnknown(){return(this.#o&yA)===RA}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#o&yA)===Qot}isDirectory(){return(this.#o&yA)===aY}isCharacterDevice(){return(this.#o&yA)===wot}isBlockDevice(){return(this.#o&yA)===Fot}isFIFO(){return(this.#o&yA)===Vot}isSocket(){return(this.#o&yA)===vot}isSymbolicLink(){return(this.#o&IL)===IL}lstatCached(){return this.#o&got?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#v}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let e=this.#o&yA;return!(e!==RA&&e!==IL||this.#o&TGe||this.#o&n2)}calledReaddir(){return!!(this.#o&hCe)}isENOENT(){return!!(this.#o&n2)}isNamed(e){return this.nocase?this.#A===UGe(e):this.#A===q$(e)}async readlink(){let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let l=await this.#e.promises.readlink(this.fullpath()),I=(await this.parent.realpath())?.resolve(l);if(I)return this.#y=I}catch(l){this.#k(l.code);return}}readlinkSync(){let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let l=this.#e.readlinkSync(this.fullpath()),I=this.parent.realpathSync()?.resolve(l);if(I)return this.#y=I}catch(l){this.#k(l.code);return}}#S(e){this.#o|=hCe;for(let l=e.provisional;l<e.length;l++){let I=e[l];I&&I.#X()}}#X(){this.#o&n2||(this.#o=(this.#o|n2)&j$,this.#J())}#J(){let e=this.children();e.provisional=0;for(let l of e)l.#X()}#B(){this.#o|=_Ge,this.#Y()}#Y(){if(this.#o&K$)return;let e=this.#o;(e&yA)===aY&&(e&=j$),this.#o=e|K$,this.#J()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#Y():e==="ENOENT"?this.#X():this.children().provisional=0}#O(e=""){e==="ENOTDIR"?this.parent.#Y():e==="ENOENT"&&this.#X()}#k(e=""){let l=this.#o;l|=TGe,e==="ENOENT"&&(l|=n2),(e==="EINVAL"||e==="UNKNOWN")&&(l&=j$),this.#o=l,e==="ENOTDIR"&&this.parent&&this.parent.#Y()}#f(e,l){return this.#T(e,l)||this.#G(e,l)}#G(e,l){let I=ZCe(e),n=this.newChild(e.name,I,{parent:this}),r=n.#o&yA;return r!==aY&&r!==IL&&r!==RA&&(n.#o|=K$),l.unshift(n),l.provisional++,n}#T(e,l){for(let I=l.provisional;I<l.length;I++){let n=l[I];if((this.nocase?UGe(e.name):q$(e.name))===n.#A)return this.#L(e,n,I,l)}}#L(e,l,I,n){let r=l.name;return l.#o=l.#o&j$|ZCe(e),r!==e.name&&(l.name=e.name),I!==n.provisional&&(I===n.length-1?n.pop():n.splice(I,1),n.unshift(l)),n.provisional++,l}async lstat(){if((this.#o&n2)===0)try{return this.#C(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#O(e.code)}}lstatSync(){if((this.#o&n2)===0)try{return this.#C(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#O(e.code)}}#C(e){let{atime:l,atimeMs:I,birthtime:n,birthtimeMs:r,blksize:a,blocks:s,ctime:o,ctimeMs:d,dev:G,gid:u,ino:h,mode:g,mtime:y,mtimeMs:R,nlink:V,rdev:Q,size:f,uid:x}=e;this.#h=l,this.#s=I,this.#w=n,this.#p=r,this.#a=a,this.#d=s,this.#Z=o,this.#N=d,this.#t=G,this.#r=u,this.#m=h,this.#l=g,this.#V=y,this.#b=R,this.#I=V,this.#c=Q,this.#i=f,this.#n=x;let B=ZCe(e);this.#o=this.#o&j$|B|got,B!==RA&&B!==aY&&B!==IL&&(this.#o|=K$)}#x=[];#_=!1;#z(e){this.#_=!1;let l=this.#x.slice();this.#x.length=0,l.forEach(I=>I(null,e))}readdirCB(e,l=!1){if(!this.canReaddir()){l?e(null,[]):queueMicrotask(()=>e(null,[]));return}let I=this.children();if(this.calledReaddir()){let r=I.slice(0,I.provisional);l?e(null,r):queueMicrotask(()=>e(null,r));return}if(this.#x.push(e),this.#_)return;this.#_=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(r,a)=>{if(r)this.#F(r.code),I.provisional=0;else{for(let s of a)this.#f(s,I);this.#S(I)}this.#z(I.slice(0,I.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let l=this.fullpath();if(this.#U)await this.#U;else{let I=()=>{};this.#U=new Promise(n=>I=n);try{for(let n of await this.#e.promises.readdir(l,{withFileTypes:!0}))this.#f(n,e);this.#S(e)}catch(n){this.#F(n.code),e.provisional=0}this.#U=void 0,I()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let l=this.fullpath();try{for(let I of this.#e.readdirSync(l,{withFileTypes:!0}))this.#f(I,e);this.#S(e)}catch(I){this.#F(I.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#o&Aot)return!1;let e=yA&this.#o;return e===RA||e===aY||e===IL}shouldWalk(e,l){return(this.#o&aY)===aY&&!(this.#o&Aot)&&!e.has(this)&&(!l||l(this))}async realpath(){if(this.#v)return this.#v;if(!((_Ge|TGe|n2)&this.#o))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#v=this.resolve(e)}catch{this.#B()}}realpathSync(){if(this.#v)return this.#v;if(!((_Ge|TGe|n2)&this.#o))try{let e=this.#e.realpathSync(this.fullpath());return this.#v=this.resolve(e)}catch{this.#B()}}[Cot](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let l=new Set([]),I=[],n=this;for(;n&&n.parent;)l.add(n),n.#u=I.join(this.sep),n.#Q=I.join("/"),n=n.parent,I.push("..");for(n=e;n&&n.parent&&!l.has(n);)n.#u=void 0,n.#Q=void 0,n=n.parent}},MGe=class t extends qu{sep="\\";splitSep=qZl;constructor(e,l=RA,I,n,r,a,s){super(e,l,I,n,r,a,s)}newChild(e,l=RA,I={}){return new t(e,l,this.root,this.roots,this.nocase,this.childrenCache(),I)}getRootString(e){return NCe.parse(e).root}getRoot(e){if(e=KZl(e.toUpperCase()),e===this.root.name)return this.root;for(let[l,I]of Object.entries(this.roots))if(this.sameRoot(e,l))return this.roots[e]=I;return this.roots[e]=new u_(e,this).root}sameRoot(e,l=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(Yot,"$1\\"),e===l}},DGe=class t extends qu{splitSep="/";sep="/";constructor(e,l=RA,I,n,r,a,s){super(e,l,I,n,r,a,s)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,l=RA,I={}){return new t(e,l,this.root,this.roots,this.nocase,this.childrenCache(),I)}},jGe=class{root;rootPath;roots;cwd;#e;#t;#l;nocase;#I;constructor(e=process.cwd(),l,I,{nocase:n,childrenCacheSize:r=16*1024,fs:a=P$}={}){this.#I=Eot(a),(e instanceof URL||e.startsWith("file://"))&&(e=xZl(e));let s=l.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(s),this.#e=new zGe,this.#t=new zGe,this.#l=new WCe(r);let o=s.substring(this.rootPath.length).split(I);if(o.length===1&&!o[0]&&o.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#I),this.roots[this.rootPath]=this.root;let d=this.root,G=o.length-1,u=l.sep,h=this.rootPath,g=!1;for(let y of o){let R=G--;d=d.child(y,{relative:new Array(R).fill("..").join(u),relativePosix:new Array(R).fill("..").join("/"),fullpath:h+=(g?"":u)+y}),g=!0}this.cwd=d}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#l}resolve(...e){let l="";for(let r=e.length-1;r>=0;r--){let a=e[r];if(!(!a||a===".")&&(l=l?`${a}/${l}`:a,this.isAbsolute(a)))break}let I=this.#e.get(l);if(I!==void 0)return I;let n=this.cwd.resolve(l).fullpath();return this.#e.set(l,n),n}resolvePosix(...e){let l="";for(let r=e.length-1;r>=0;r--){let a=e[r];if(!(!a||a===".")&&(l=l?`${a}/${l}`:a,this.isAbsolute(a)))break}let I=this.#t.get(l);if(I!==void 0)return I;let n=this.cwd.resolve(l).fullpathPosix();return this.#t.set(l,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,l={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd);let{withFileTypes:I}=l;if(e.canReaddir()){let n=await e.readdir();return I?n:n.map(r=>r.name)}else return[]}readdirSync(e=this.cwd,l={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd);let{withFileTypes:I=!0}=l;return e.canReaddir()?I?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e.withFileTypes,e=this.cwd);let I=await e.readlink();return l?I:I?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e.withFileTypes,e=this.cwd);let I=e.readlinkSync();return l?I:I?.fullpath()}async realpath(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e.withFileTypes,e=this.cwd);let I=await e.realpath();return l?I:I?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:l}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e.withFileTypes,e=this.cwd);let I=e.realpathSync();return l?I:I?.fullpath()}async walk(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd);let{withFileTypes:I=!0,follow:n=!1,filter:r,walkFilter:a}=l,s=[];(!r||r(e))&&s.push(I?e:e.fullpath());let o=new Set,d=(u,h)=>{o.add(u),u.readdirCB((g,y)=>{if(g)return h(g);let R=y.length;if(!R)return h();let V=()=>{--R===0&&h()};for(let Q of y)(!r||r(Q))&&s.push(I?Q:Q.fullpath()),n&&Q.isSymbolicLink()?Q.realpath().then(f=>f?.isUnknown()?f.lstat():f).then(f=>f?.shouldWalk(o,a)?d(f,V):V()):Q.shouldWalk(o,a)?d(Q,V):V()},!0)},G=e;return new Promise((u,h)=>{d(G,g=>{if(g)return h(g);u(s)})})}walkSync(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd);let{withFileTypes:I=!0,follow:n=!1,filter:r,walkFilter:a}=l,s=[];(!r||r(e))&&s.push(I?e:e.fullpath());let o=new Set([e]);for(let d of o){let G=d.readdirSync();for(let u of G){(!r||r(u))&&s.push(I?u:u.fullpath());let h=u;if(u.isSymbolicLink()){if(!(n&&(h=u.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(o,a)&&o.add(h)}}return s}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,l={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd),this.stream(e,l)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd);let{withFileTypes:I=!0,follow:n=!1,filter:r,walkFilter:a}=l;(!r||r(e))&&(yield I?e:e.fullpath());let s=new Set([e]);for(let o of s){let d=o.readdirSync();for(let G of d){(!r||r(G))&&(yield I?G:G.fullpath());let u=G;if(G.isSymbolicLink()){if(!(n&&(u=G.realpathSync())))continue;u.isUnknown()&&u.lstatSync()}u.shouldWalk(s,a)&&s.add(u)}}}stream(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd);let{withFileTypes:I=!0,follow:n=!1,filter:r,walkFilter:a}=l,s=new aG({objectMode:!0});(!r||r(e))&&s.write(I?e:e.fullpath());let o=new Set,d=[e],G=0,u=()=>{let h=!1;for(;!h;){let g=d.shift();if(!g){G===0&&s.end();return}G++,o.add(g);let y=(V,Q,f=!1)=>{if(V)return s.emit("error",V);if(n&&!f){let x=[];for(let B of Q)B.isSymbolicLink()&&x.push(B.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(x.length){Promise.all(x).then(()=>y(null,Q,!0));return}}for(let x of Q)x&&(!r||r(x))&&(s.write(I?x:x.fullpath())||(h=!0));G--;for(let x of Q){let B=x.realpathCached()||x;B.shouldWalk(o,a)&&d.push(B)}h&&!s.flowing?s.once("drain",u):R||u()},R=!0;g.readdirCB(y,!0),R=!1}};return u(),s}streamSync(e=this.cwd,l={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof qu||(l=e,e=this.cwd);let{withFileTypes:I=!0,follow:n=!1,filter:r,walkFilter:a}=l,s=new aG({objectMode:!0}),o=new Set;(!r||r(e))&&s.write(I?e:e.fullpath());let d=[e],G=0,u=()=>{let h=!1;for(;!h;){let g=d.shift();if(!g){G===0&&s.end();return}G++,o.add(g);let y=g.readdirSync();for(let R of y)(!r||r(R))&&(s.write(I?R:R.fullpath())||(h=!0));G--;for(let R of y){let V=R;if(R.isSymbolicLink()){if(!(n&&(V=R.realpathSync())))continue;V.isUnknown()&&V.lstatSync()}V.shouldWalk(o,a)&&d.push(V)}}h&&!s.flowing&&s.once("drain",u)};return u(),s}chdir(e=this.cwd){let l=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[Cot](l)}},u_=class extends jGe{sep="\\";constructor(e=process.cwd(),l={}){let{nocase:I=!0}=l;super(e,NCe,"\\",{...l,nocase:I}),this.nocase=I;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return NCe.parse(e).root.toUpperCase()}newRoot(e){return new MGe(this.rootPath,aY,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},p_=class extends jGe{sep="/";constructor(e=process.cwd(),l={}){let{nocase:I=!1}=l;super(e,LZl,"/",{...l,nocase:I}),this.nocase=I}parseRootPath(e){return"/"}newRoot(e){return new DGe(this.rootPath,aY,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},$$=class extends p_{constructor(e=process.cwd(),l={}){let{nocase:I=!0}=l;super(e,{...l,nocase:I})}},Hgn=process.platform==="win32"?MGe:DGe,Hot=process.platform==="win32"?u_:process.platform==="darwin"?$$:p_;c();var eNl=t=>t.length>=1,tNl=t=>t.length>=1,h_=class t{#e;#t;#l;length;#I;#n;#r;#c;#a;#m;#i=!0;constructor(e,l,I,n){if(!eNl(e))throw new TypeError("empty pattern list");if(!tNl(l))throw new TypeError("empty glob list");if(l.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,I<0||I>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=l,this.#l=I,this.#I=n,this.#l===0){if(this.isUNC()){let[r,a,s,o,...d]=this.#e,[G,u,h,g,...y]=this.#t;d[0]===""&&(d.shift(),y.shift());let R=[r,a,s,o,""].join("/"),V=[G,u,h,g,""].join("/");this.#e=[R,...d],this.#t=[V,...y],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[r,...a]=this.#e,[s,...o]=this.#t;a[0]===""&&(a.shift(),o.shift());let d=r+"/",G=s+"/";this.#e=[d,...a],this.#t=[G,...o],this.length=this.#e.length}}}pattern(){return this.#e[this.#l]}isString(){return typeof this.#e[this.#l]=="string"}isGlobstar(){return this.#e[this.#l]===Kb}isRegExp(){return this.#e[this.#l]instanceof RegExp}globString(){return this.#r=this.#r||(this.#l===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#l).join("/"))}hasMore(){return this.length>this.#l+1}rest(){return this.#n!==void 0?this.#n:this.hasMore()?(this.#n=new t(this.#e,this.#t,this.#l+1,this.#I),this.#n.#m=this.#m,this.#n.#a=this.#a,this.#n.#c=this.#c,this.#n):this.#n=null}isUNC(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#I==="win32"&&this.#l===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#I==="win32"&&this.#l===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#m!==void 0?this.#m:this.#m=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#l===0?e:""}checkFollowGlobstar(){return!(this.#l===0||!this.isGlobstar()||!this.#i)}markFollowGlobstar(){return this.#l===0||!this.isGlobstar()||!this.#i?!1:(this.#i=!1,!0)}};c();c();var lNl=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Z_=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:l,nocase:I,noext:n,noglobstar:r,platform:a=lNl}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:l,nocase:I,noext:n,noglobstar:r,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let s of e)this.add(s)}add(e){let l=new CW(e,this.mmopts);for(let I=0;I<l.set.length;I++){let n=l.set[I],r=l.globParts[I];if(!n||!r)throw new Error("invalid pattern object");for(;n[0]==="."&&r[0]===".";)n.shift(),r.shift();let a=new h_(n,r,0,this.platform),s=new CW(a.globString(),this.mmopts),o=r[r.length-1]==="**",d=a.isAbsolute();d?this.absolute.push(s):this.relative.push(s),o&&(d?this.absoluteChildren.push(s):this.relativeChildren.push(s))}}ignored(e){let l=e.fullpath(),I=`${l}/`,n=e.relative()||".",r=`${n}/`;for(let a of this.relative)if(a.match(n)||a.match(r))return!0;for(let a of this.absolute)if(a.match(l)||a.match(I))return!0;return!1}childrenIgnored(e){let l=e.fullpath()+"/",I=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(I))return!0;for(let n of this.absoluteChildren)if(n.match(l))return!0;return!1}};c();var gCe=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,l){return this.store.get(e.fullpath())?.has(l.globString())}storeWalked(e,l){let I=e.fullpath(),n=this.store.get(I);n?n.add(l.globString()):this.store.set(I,new Set([l.globString()]))}},ACe=class{store=new Map;add(e,l,I){let n=(l?2:0)|(I?1:0),r=this.store.get(e);this.store.set(e,r===void 0?n:n&r)}entries(){return[...this.store.entries()].map(([e,l])=>[e,!!(l&2),!!(l&1)])}},yCe=class{store=new Map;add(e,l){if(!e.canReaddir())return;let I=this.store.get(e);I?I.find(n=>n.globString()===l.globString())||I.push(l):this.store.set(e,[l])}get(e){let l=this.store.get(e);if(!l)throw new Error("attempting to walk unknown path");return l}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},eee=class t{hasWalkedCache;matches=new ACe;subwalks=new yCe;patterns;follow;dot;opts;constructor(e,l){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=l?l.copy():new gCe}processPatterns(e,l){this.patterns=l;let I=l.map(n=>[e,n]);for(let[n,r]of I){this.hasWalkedCache.storeWalked(n,r);let a=r.root(),s=r.isAbsolute()&&this.opts.absolute!==!1;if(a){n=n.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let u=r.rest();if(u)r=u;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let o,d,G=!1;for(;typeof(o=r.pattern())=="string"&&(d=r.rest());)n=n.resolve(o),r=d,G=!0;if(o=r.pattern(),d=r.rest(),G){if(this.hasWalkedCache.hasWalked(n,r))continue;this.hasWalkedCache.storeWalked(n,r)}if(typeof o=="string"){let u=o===".."||o===""||o===".";this.matches.add(n.resolve(o),s,u);continue}else if(o===Kb){(!n.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(n,r);let u=d?.pattern(),h=d?.rest();if(!d||(u===""||u===".")&&!h)this.matches.add(n,s,u===""||u===".");else if(u===".."){let g=n.parent||n;h?this.hasWalkedCache.hasWalked(g,h)||this.subwalks.add(g,h):this.matches.add(g,s,!0)}}else o instanceof RegExp&&this.subwalks.add(n,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,l){let I=this.subwalks.get(e),n=this.child();for(let r of l)for(let a of I){let s=a.isAbsolute(),o=a.pattern(),d=a.rest();o===Kb?n.testGlobstar(r,a,d,s):o instanceof RegExp?n.testRegExp(r,o,d,s):n.testString(r,o,d,s)}return n}testGlobstar(e,l,I,n){if((this.dot||!e.name.startsWith("."))&&(l.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,l):e.isSymbolicLink()&&(I&&l.checkFollowGlobstar()?this.subwalks.add(e,I):l.markFollowGlobstar()&&this.subwalks.add(e,l)))),I){let r=I.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(e,r,I.rest(),n);else if(r===".."){let a=e.parent||e;this.subwalks.add(a,I)}else r instanceof RegExp&&this.testRegExp(e,r,I.rest(),n)}}testRegExp(e,l,I,n){l.test(e.name)&&(I?this.subwalks.add(e,I):this.matches.add(e,n,!1))}testString(e,l,I,n){e.isNamed(l)&&(I?this.subwalks.add(e,I):this.matches.add(e,n,!1))}};var INl=(t,e)=>typeof t=="string"?new Z_([t],e):Array.isArray(t)?new Z_(t,e):t,PGe=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#l;signal;maxDepth;includeChildMatches;constructor(e,l,I){if(this.patterns=e,this.path=l,this.opts=I,this.#l=!I.posix&&I.platform==="win32"?"\\":"/",this.includeChildMatches=I.includeChildMatches!==!1,(I.ignore||!this.includeChildMatches)&&(this.#t=INl(I.ignore??[],I),!this.includeChildMatches&&typeof this.#t.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=I.maxDepth||1/0,I.signal&&(this.signal=I.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#I(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#n(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,l){if(l&&this.opts.nodir)return;let I;if(this.opts.realpath){if(I=e.realpathCached()||await e.realpath(),!I)return;e=I}let r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=await r.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(r,l)}matchCheckTest(e,l){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!l||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#I(e)?e:void 0}matchCheckSync(e,l){if(l&&this.opts.nodir)return;let I;if(this.opts.realpath){if(I=e.realpathCached()||e.realpathSync(),!I)return;e=I}let r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=r.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(r,l)}matchFinish(e,l){if(this.#I(e))return;if(!this.includeChildMatches&&this.#t?.add){let r=`${e.relativePosix()}/**`;this.#t.add(r)}let I=this.opts.absolute===void 0?l:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#l:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(I){let r=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(r+n)}else{let r=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!r.startsWith(".."+this.#l)?"."+this.#l:"";this.matchEmit(r?a+r+n:"."+n)}}async match(e,l,I){let n=await this.matchCheck(e,I);n&&this.matchFinish(n,l)}matchSync(e,l,I){let n=this.matchCheckSync(e,I);n&&this.matchFinish(n,l)}walkCB(e,l,I){this.signal?.aborted&&I(),this.walkCB2(e,l,new eee(this.opts),I)}walkCB2(e,l,I,n){if(this.#n(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,l,I,n));return}I.processPatterns(e,l);let r=1,a=()=>{--r===0&&n()};for(let[s,o,d]of I.matches.entries())this.#I(s)||(r++,this.match(s,o,d).then(()=>a()));for(let s of I.subwalkTargets()){if(this.maxDepth!==1/0&&s.depth()>=this.maxDepth)continue;r++;let o=s.readdirCached();s.calledReaddir()?this.walkCB3(s,o,I,a):s.readdirCB((d,G)=>this.walkCB3(s,G,I,a),!0)}a()}walkCB3(e,l,I,n){I=I.filterEntries(e,l);let r=1,a=()=>{--r===0&&n()};for(let[s,o,d]of I.matches.entries())this.#I(s)||(r++,this.match(s,o,d).then(()=>a()));for(let[s,o]of I.subwalks.entries())r++,this.walkCB2(s,o,I.child(),a);a()}walkCBSync(e,l,I){this.signal?.aborted&&I(),this.walkCB2Sync(e,l,new eee(this.opts),I)}walkCB2Sync(e,l,I,n){if(this.#n(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,l,I,n));return}I.processPatterns(e,l);let r=1,a=()=>{--r===0&&n()};for(let[s,o,d]of I.matches.entries())this.#I(s)||this.matchSync(s,o,d);for(let s of I.subwalkTargets()){if(this.maxDepth!==1/0&&s.depth()>=this.maxDepth)continue;r++;let o=s.readdirSync();this.walkCB3Sync(s,o,I,a)}a()}walkCB3Sync(e,l,I,n){I=I.filterEntries(e,l);let r=1,a=()=>{--r===0&&n()};for(let[s,o,d]of I.matches.entries())this.#I(s)||this.matchSync(s,o,d);for(let[s,o]of I.subwalks.entries())r++,this.walkCB2Sync(s,o,I.child(),a);a()}},tee=class extends PGe{matches=new Set;constructor(e,l,I){super(e,l,I)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,l)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?l(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},lee=class extends PGe{results;constructor(e,l,I){super(e,l,I),this.results=new aG({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var rNl=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",r2=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,l){if(!l)throw new TypeError("glob options required");if(this.withFileTypes=!!l.withFileTypes,this.signal=l.signal,this.follow=!!l.follow,this.dot=!!l.dot,this.dotRelative=!!l.dotRelative,this.nodir=!!l.nodir,this.mark=!!l.mark,l.cwd?(l.cwd instanceof URL||l.cwd.startsWith("file://"))&&(l.cwd=nNl(l.cwd)):this.cwd="",this.cwd=l.cwd||"",this.root=l.root,this.magicalBraces=!!l.magicalBraces,this.nobrace=!!l.nobrace,this.noext=!!l.noext,this.realpath=!!l.realpath,this.absolute=l.absolute,this.includeChildMatches=l.includeChildMatches!==!1,this.noglobstar=!!l.noglobstar,this.matchBase=!!l.matchBase,this.maxDepth=typeof l.maxDepth=="number"?l.maxDepth:1/0,this.stat=!!l.stat,this.ignore=l.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!l.windowsPathsNoEscape||l.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(o=>o.replace(/\\/g,"/"))),this.matchBase){if(l.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(o=>o.includes("/")?o:`./**/${o}`)}if(this.pattern=e,this.platform=l.platform||rNl,this.opts={...l,platform:this.platform},l.scurry){if(this.scurry=l.scurry,l.nocase!==void 0&&l.nocase!==l.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let o=l.platform==="win32"?u_:l.platform==="darwin"?$$:l.platform?p_:Hot;this.scurry=new o(this.cwd,{nocase:l.nocase,fs:l.fs})}this.nocase=this.scurry.nocase;let I=this.platform==="darwin"||this.platform==="win32",n={...l,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:I,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(o=>new CW(o,n)),[a,s]=r.reduce((o,d)=>(o[0].push(...d.set),o[1].push(...d.globParts),o),[[],[]]);this.patterns=a.map((o,d)=>{let G=s[d];if(!G)throw new Error("invalid pattern object");return new h_(o,G,0,this.platform)})}async walk(){return[...await new tee(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new tee(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new lee(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new lee(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};c();var RCe=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let l of t)if(new CW(l,e).hasMagic())return!0;return!1};function KGe(t,e={}){return new r2(t,e).streamSync()}function Jot(t,e={}){return new r2(t,e).stream()}function N_(t,e={}){return new r2(t,e).walkSync()}async function Xot(t,e={}){return new r2(t,e).walk()}function qGe(t,e={}){return new r2(t,e).iterateSync()}function kot(t,e={}){return new r2(t,e).iterate()}var aNl=KGe,sNl=Object.assign(Jot,{sync:KGe}),oNl=qGe,cNl=Object.assign(kot,{sync:qGe}),iNl=Object.assign(N_,{stream:KGe,iterate:qGe}),fot=Object.assign(Xot,{glob:Xot,globSync:N_,sync:iNl,globStream:Jot,stream:sNl,globStreamSync:KGe,streamSync:aNl,globIterate:kot,iterate:cNl,globIterateSync:qGe,iterateSync:oNl,Glob:r2,hasMagic:RCe,escape:m_,unescape:I2});fot.glob=fot;import*as $u from"path";c();import{exec as dNl}from"child_process";import*as ebe from"os";import*as a2 from"path";import{promisify as mNl}from"util";var $Ge=mNl(dNl);function Iee(t){return a2.isAbsolute(t)?t:t.startsWith("~")?a2.normalize(t.replace("~",ebe.homedir())):a2.resolve(t)}async function tbe(t=process.cwd()){try{let l=(await $Ge("git rev-parse --show-toplevel",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576})).stdout.trim();if(l)return{gitRoot:l,found:!0}}catch{}return{gitRoot:t,found:!1}}function Lot(){let t=process.env.XDG_CONFIG_HOME,e=".copilot";return t?a2.join(t,e):a2.join(ebe.homedir(),e)}function W_(t){let e=ebe.homedir();return t===e?"~":t.startsWith(e+a2.sep)?t.replace(e,"~"):t}async function xot(t){try{let{stdout:e}=await $Ge("git rev-parse --abbrev-ref HEAD",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576}),l=e.trim();if(l==="HEAD"){let{stdout:I}=await $Ge("git rev-parse --short HEAD",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576}),n=I.trim();return n?`detached@${n}`:null}return l||null}catch{return null}}async function Sot(t){try{let{stdout:e}=await $Ge("git status --porcelain",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576});return e.trim().length>0}catch{return!1}}async function ECe(t,e){let l=await NNl(t),I=await WNl(t),n;l?n={content:l.content,source:"vscode",sourcePath:".github/instructions"}:I&&(n={content:I.content,source:"nested-agents",sourcePath:"nested AGENTS.md"});let r=e?hNl():{exists:!1,path:void 0},a=pNl(t);if(r.exists||a.exists){let G="",u="",h=!1;if(r.exists&&r.path){let g=await sF.promises.readFile(r.path,"utf-8");G+=aF(g);let y=process.env.XDG_CONFIG_HOME;y?u=`${y}/.copilot/copilot-instructions.md`:u="~/.copilot/copilot-instructions.md",h=!0}if(a.exists&&a.path){let g=await sF.promises.readFile(a.path,"utf-8");G?(G+=`
|
|
963
963
|
|