oc-browser-relay 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
- var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bt=S((Ah,js)=>{"use strict";js.exports=St;St.CAPTURING_PHASE=1;St.AT_TARGET=2;St.BUBBLING_PHASE=3;function St(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=St.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}St.prototype=Object.create(Object.prototype,{constructor:{value:St},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var Sa=S((kh,Gs)=>{"use strict";var Vs=Bt();Gs.exports=wa;function wa(){Vs.call(this),this.view=null,this.detail=0}wa.prototype=Object.create(Vs.prototype,{constructor:{value:wa},initUIEvent:{value:function(e,t,r,n,a){this.initEvent(e,t,r),this.view=n,this.detail=a}}})});var Aa=S((Ch,zs)=>{"use strict";var Ws=Sa();zs.exports=Na;function Na(){Ws.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Na.prototype=Object.create(Ws.prototype,{constructor:{value:Na},initMouseEvent:{value:function(e,t,r,n,a,o,l,p,x,m,b,R,I,d,Q){switch(this.initEvent(e,t,r,n,a),this.screenX=o,this.screenY=l,this.clientX=p,this.clientY=x,this.ctrlKey=m,this.altKey=b,this.shiftKey=R,this.metaKey=I,this.button=d,d){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=Q}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var xn=S((Dh,Ys)=>{"use strict";Ys.exports=fn;var id=1,sd=3,od=4,cd=5,ld=7,ud=8,dd=9,fd=11,xd=12,pd=13,hd=14,md=15,gd=17,bd=18,yd=19,_d=20,vd=21,Ed=22,Td=23,wd=24,Sd=25,Nd=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],Ad=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],$s={INDEX_SIZE_ERR:id,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:sd,WRONG_DOCUMENT_ERR:od,INVALID_CHARACTER_ERR:cd,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:ld,NOT_FOUND_ERR:ud,NOT_SUPPORTED_ERR:dd,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:fd,SYNTAX_ERR:xd,INVALID_MODIFICATION_ERR:pd,NAMESPACE_ERR:hd,INVALID_ACCESS_ERR:md,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:gd,SECURITY_ERR:bd,NETWORK_ERR:yd,ABORT_ERR:_d,URL_MISMATCH_ERR:vd,QUOTA_EXCEEDED_ERR:Ed,TIMEOUT_ERR:Td,INVALID_NODE_TYPE_ERR:wd,DATA_CLONE_ERR:Sd};function fn(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=Ad[e],this.name=Nd[e]}fn.prototype.__proto__=Error.prototype;for(dn in $s)ka={value:$s[dn]},Object.defineProperty(fn,dn,ka),Object.defineProperty(fn.prototype,dn,ka);var ka,dn});var pn=S(Ks=>{Ks.isApiWritable=!globalThis.__domino_frozen__});var ae=S(W=>{"use strict";var ne=xn(),oe=ne,kd=pn().isApiWritable;W.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};W.IndexSizeError=function(){throw new ne(oe.INDEX_SIZE_ERR)};W.HierarchyRequestError=function(){throw new ne(oe.HIERARCHY_REQUEST_ERR)};W.WrongDocumentError=function(){throw new ne(oe.WRONG_DOCUMENT_ERR)};W.InvalidCharacterError=function(){throw new ne(oe.INVALID_CHARACTER_ERR)};W.NoModificationAllowedError=function(){throw new ne(oe.NO_MODIFICATION_ALLOWED_ERR)};W.NotFoundError=function(){throw new ne(oe.NOT_FOUND_ERR)};W.NotSupportedError=function(){throw new ne(oe.NOT_SUPPORTED_ERR)};W.InvalidStateError=function(){throw new ne(oe.INVALID_STATE_ERR)};W.SyntaxError=function(){throw new ne(oe.SYNTAX_ERR)};W.InvalidModificationError=function(){throw new ne(oe.INVALID_MODIFICATION_ERR)};W.NamespaceError=function(){throw new ne(oe.NAMESPACE_ERR)};W.InvalidAccessError=function(){throw new ne(oe.INVALID_ACCESS_ERR)};W.TypeMismatchError=function(){throw new ne(oe.TYPE_MISMATCH_ERR)};W.SecurityError=function(){throw new ne(oe.SECURITY_ERR)};W.NetworkError=function(){throw new ne(oe.NETWORK_ERR)};W.AbortError=function(){throw new ne(oe.ABORT_ERR)};W.UrlMismatchError=function(){throw new ne(oe.URL_MISMATCH_ERR)};W.QuotaExceededError=function(){throw new ne(oe.QUOTA_EXCEEDED_ERR)};W.TimeoutError=function(){throw new ne(oe.TIMEOUT_ERR)};W.InvalidNodeTypeError=function(){throw new ne(oe.INVALID_NODE_TYPE_ERR)};W.DataCloneError=function(){throw new ne(oe.DATA_CLONE_ERR)};W.nyi=function(){throw new Error("NotYetImplemented")};W.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};W.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
2
- `+new Error().stack)};W.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:kd})};W.merge=function(e,t){for(var r in t)e[r]=t[r]};W.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};W.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};W.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var Ca=S((Ih,Qs)=>{"use strict";var Nt=Bt(),Cd=Aa(),Dd=ae();Qs.exports=Xs;function Xs(){}Xs.prototype={addEventListener:function(t,r,n){if(r){n===void 0&&(n=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var a=this._listeners[t],o=0,l=a.length;o<l;o++){var p=a[o];if(p.listener===r&&p.capture===n)return}var x={listener:r,capture:n};typeof r=="function"&&(x.f=r),a.push(x)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var a=this._listeners[t];if(a)for(var o=0,l=a.length;o<l;o++){var p=a[o];if(p.listener===r&&p.capture===n){a.length===1?this._listeners[t]=void 0:a.splice(o,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(m,b){var R=b.type,I=b.eventPhase;if(b.currentTarget=m,I!==Nt.CAPTURING_PHASE&&m._handlers&&m._handlers[R]){var d=m._handlers[R],Q;if(typeof d=="function")Q=d.call(b.currentTarget,b);else{var $=d.handleEvent;if(typeof $!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");Q=$.call(d,b)}b.type==="mouseover"?Q===!0&&b.preventDefault():Q===!1&&b.preventDefault()}var M=m._listeners&&m._listeners[R];if(M){M=M.slice();for(var Ze=0,B=M.length;Ze<B;Ze++){if(b._immediatePropagationStopped)return;var ce=M[Ze];if(!(I===Nt.CAPTURING_PHASE&&!ce.capture||I===Nt.BUBBLING_PHASE&&ce.capture))if(ce.f)ce.f.call(b.currentTarget,b);else{var fe=ce.listener.handleEvent;if(typeof fe!="function")throw new TypeError("handleEvent property of event listener object is not a function.");fe.call(ce.listener,b)}}}}(!t._initialized||t._dispatching)&&Dd.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var a=[],o=this.parentNode;o;o=o.parentNode)a.push(o);t.eventPhase=Nt.CAPTURING_PHASE;for(var l=a.length-1;l>=0&&(n(a[l],t),!t._propagationStopped);l--);if(t._propagationStopped||(t.eventPhase=Nt.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=Nt.BUBBLING_PHASE;for(var p=0,x=a.length;p<x&&(n(a[p],t),!t._propagationStopped);p++);}if(t._dispatching=!1,t.eventPhase=Nt.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof Cd)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var n=this._dispatchEvent(r,!0);t&&(n?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var Da=S((Mh,Js)=>{"use strict";var Xe=ae(),Ce=Js.exports={valid:function(e){return Xe.assert(e,"list falsy"),Xe.assert(e._previousSibling,"previous falsy"),Xe.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){Xe.assert(Ce.valid(e)&&Ce.valid(t));var r=e,n=e._previousSibling,a=t,o=t._previousSibling;r._previousSibling=o,n._nextSibling=a,o._nextSibling=r,a._previousSibling=n,Xe.assert(Ce.valid(e)&&Ce.valid(t))},replace:function(e,t){Xe.assert(Ce.valid(e)&&(t===null||Ce.valid(t))),t!==null&&Ce.insertBefore(t,e),Ce.remove(e),Xe.assert(Ce.valid(e)&&(t===null||Ce.valid(t)))},remove:function(e){Xe.assert(Ce.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,Xe.assert(Ce.valid(e))}}}});var Ra=S((Oh,so)=>{"use strict";so.exports={serializeOne:Fd,\u0275escapeMatchingClosingTag:no,\u0275escapeClosingCommentTag:ao,\u0275escapeProcessingInstructionContent:io};var ro=ae(),At=ro.NAMESPACE,Zs={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},Rd={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ld={},eo=/[&<>\u00A0]/g,to=/[&"<>\u00A0]/g;function Id(e){return eo.test(e)?e.replace(eo,t=>{switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case"\xA0":return"&nbsp;"}}):e}function Md(e){return to.test(e)?e.replace(to,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"\xA0":return"&nbsp;"}}):e}function Od(e){var t=e.namespaceURI;return t?t===At.XML?"xml:"+e.localName:t===At.XLINK?"xlink:"+e.localName:t===At.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function no(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],a=e.matchAll(new RegExp(r,"ig"));for(let o of a)n[o.index]="&lt;";return n.join("")}var qd=/--!?>/;function ao(e){return qd.test(e)?e.replace(/(--\!?)>/g,"$1&gt;"):e}function io(e){return e.includes(">")?e.replaceAll(">","&gt;"):e}function Fd(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,a=n===At.HTML,o=a||n===At.SVG||n===At.MATHML?e.localName:e.tagName;r+="<"+o;for(var l=0,p=e._numattrs;l<p;l++){var x=e._attr(l);r+=" "+Od(x),x.value!==void 0&&(r+='="'+Md(x.value)+'"')}if(r+=">",!(a&&Rd[o])){var m=e.serialize();Zs[o.toUpperCase()]&&(m=no(m,o)),a&&Ld[o]&&m.charAt(0)===`
1
+ var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bt=S((Ah,js)=>{"use strict";js.exports=St;St.CAPTURING_PHASE=1;St.AT_TARGET=2;St.BUBBLING_PHASE=3;function St(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=St.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}St.prototype=Object.create(Object.prototype,{constructor:{value:St},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var Sa=S((kh,Gs)=>{"use strict";var Vs=Bt();Gs.exports=wa;function wa(){Vs.call(this),this.view=null,this.detail=0}wa.prototype=Object.create(Vs.prototype,{constructor:{value:wa},initUIEvent:{value:function(e,t,r,n,a){this.initEvent(e,t,r),this.view=n,this.detail=a}}})});var Aa=S((Ch,zs)=>{"use strict";var Ws=Sa();zs.exports=Na;function Na(){Ws.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Na.prototype=Object.create(Ws.prototype,{constructor:{value:Na},initMouseEvent:{value:function(e,t,r,n,a,o,l,x,p,m,b,D,L,d,X){switch(this.initEvent(e,t,r,n,a),this.screenX=o,this.screenY=l,this.clientX=x,this.clientY=p,this.ctrlKey=m,this.altKey=b,this.shiftKey=D,this.metaKey=L,this.button=d,d){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=X}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var xn=S((Dh,Ys)=>{"use strict";Ys.exports=fn;var id=1,sd=3,od=4,cd=5,ld=7,ud=8,dd=9,fd=11,xd=12,pd=13,hd=14,md=15,gd=17,bd=18,yd=19,_d=20,vd=21,Ed=22,Td=23,wd=24,Sd=25,Nd=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],Ad=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],$s={INDEX_SIZE_ERR:id,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:sd,WRONG_DOCUMENT_ERR:od,INVALID_CHARACTER_ERR:cd,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:ld,NOT_FOUND_ERR:ud,NOT_SUPPORTED_ERR:dd,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:fd,SYNTAX_ERR:xd,INVALID_MODIFICATION_ERR:pd,NAMESPACE_ERR:hd,INVALID_ACCESS_ERR:md,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:gd,SECURITY_ERR:bd,NETWORK_ERR:yd,ABORT_ERR:_d,URL_MISMATCH_ERR:vd,QUOTA_EXCEEDED_ERR:Ed,TIMEOUT_ERR:Td,INVALID_NODE_TYPE_ERR:wd,DATA_CLONE_ERR:Sd};function fn(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=Ad[e],this.name=Nd[e]}fn.prototype.__proto__=Error.prototype;for(dn in $s)ka={value:$s[dn]},Object.defineProperty(fn,dn,ka),Object.defineProperty(fn.prototype,dn,ka);var ka,dn});var pn=S(Ks=>{Ks.isApiWritable=!globalThis.__domino_frozen__});var ae=S(W=>{"use strict";var ne=xn(),oe=ne,kd=pn().isApiWritable;W.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};W.IndexSizeError=function(){throw new ne(oe.INDEX_SIZE_ERR)};W.HierarchyRequestError=function(){throw new ne(oe.HIERARCHY_REQUEST_ERR)};W.WrongDocumentError=function(){throw new ne(oe.WRONG_DOCUMENT_ERR)};W.InvalidCharacterError=function(){throw new ne(oe.INVALID_CHARACTER_ERR)};W.NoModificationAllowedError=function(){throw new ne(oe.NO_MODIFICATION_ALLOWED_ERR)};W.NotFoundError=function(){throw new ne(oe.NOT_FOUND_ERR)};W.NotSupportedError=function(){throw new ne(oe.NOT_SUPPORTED_ERR)};W.InvalidStateError=function(){throw new ne(oe.INVALID_STATE_ERR)};W.SyntaxError=function(){throw new ne(oe.SYNTAX_ERR)};W.InvalidModificationError=function(){throw new ne(oe.INVALID_MODIFICATION_ERR)};W.NamespaceError=function(){throw new ne(oe.NAMESPACE_ERR)};W.InvalidAccessError=function(){throw new ne(oe.INVALID_ACCESS_ERR)};W.TypeMismatchError=function(){throw new ne(oe.TYPE_MISMATCH_ERR)};W.SecurityError=function(){throw new ne(oe.SECURITY_ERR)};W.NetworkError=function(){throw new ne(oe.NETWORK_ERR)};W.AbortError=function(){throw new ne(oe.ABORT_ERR)};W.UrlMismatchError=function(){throw new ne(oe.URL_MISMATCH_ERR)};W.QuotaExceededError=function(){throw new ne(oe.QUOTA_EXCEEDED_ERR)};W.TimeoutError=function(){throw new ne(oe.TIMEOUT_ERR)};W.InvalidNodeTypeError=function(){throw new ne(oe.INVALID_NODE_TYPE_ERR)};W.DataCloneError=function(){throw new ne(oe.DATA_CLONE_ERR)};W.nyi=function(){throw new Error("NotYetImplemented")};W.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};W.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
2
+ `+new Error().stack)};W.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:kd})};W.merge=function(e,t){for(var r in t)e[r]=t[r]};W.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};W.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};W.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var Ca=S((Ih,Qs)=>{"use strict";var Nt=Bt(),Cd=Aa(),Dd=ae();Qs.exports=Xs;function Xs(){}Xs.prototype={addEventListener:function(t,r,n){if(r){n===void 0&&(n=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var a=this._listeners[t],o=0,l=a.length;o<l;o++){var x=a[o];if(x.listener===r&&x.capture===n)return}var p={listener:r,capture:n};typeof r=="function"&&(p.f=r),a.push(p)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var a=this._listeners[t];if(a)for(var o=0,l=a.length;o<l;o++){var x=a[o];if(x.listener===r&&x.capture===n){a.length===1?this._listeners[t]=void 0:a.splice(o,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(m,b){var D=b.type,L=b.eventPhase;if(b.currentTarget=m,L!==Nt.CAPTURING_PHASE&&m._handlers&&m._handlers[D]){var d=m._handlers[D],X;if(typeof d=="function")X=d.call(b.currentTarget,b);else{var $=d.handleEvent;if(typeof $!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");X=$.call(d,b)}b.type==="mouseover"?X===!0&&b.preventDefault():X===!1&&b.preventDefault()}var M=m._listeners&&m._listeners[D];if(M){M=M.slice();for(var Ze=0,B=M.length;Ze<B;Ze++){if(b._immediatePropagationStopped)return;var ce=M[Ze];if(!(L===Nt.CAPTURING_PHASE&&!ce.capture||L===Nt.BUBBLING_PHASE&&ce.capture))if(ce.f)ce.f.call(b.currentTarget,b);else{var fe=ce.listener.handleEvent;if(typeof fe!="function")throw new TypeError("handleEvent property of event listener object is not a function.");fe.call(ce.listener,b)}}}}(!t._initialized||t._dispatching)&&Dd.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var a=[],o=this.parentNode;o;o=o.parentNode)a.push(o);t.eventPhase=Nt.CAPTURING_PHASE;for(var l=a.length-1;l>=0&&(n(a[l],t),!t._propagationStopped);l--);if(t._propagationStopped||(t.eventPhase=Nt.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=Nt.BUBBLING_PHASE;for(var x=0,p=a.length;x<p&&(n(a[x],t),!t._propagationStopped);x++);}if(t._dispatching=!1,t.eventPhase=Nt.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof Cd)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var n=this._dispatchEvent(r,!0);t&&(n?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var Da=S((Mh,Js)=>{"use strict";var Xe=ae(),Ce=Js.exports={valid:function(e){return Xe.assert(e,"list falsy"),Xe.assert(e._previousSibling,"previous falsy"),Xe.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){Xe.assert(Ce.valid(e)&&Ce.valid(t));var r=e,n=e._previousSibling,a=t,o=t._previousSibling;r._previousSibling=o,n._nextSibling=a,o._nextSibling=r,a._previousSibling=n,Xe.assert(Ce.valid(e)&&Ce.valid(t))},replace:function(e,t){Xe.assert(Ce.valid(e)&&(t===null||Ce.valid(t))),t!==null&&Ce.insertBefore(t,e),Ce.remove(e),Xe.assert(Ce.valid(e)&&(t===null||Ce.valid(t)))},remove:function(e){Xe.assert(Ce.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,Xe.assert(Ce.valid(e))}}}});var Ra=S((Oh,so)=>{"use strict";so.exports={serializeOne:Fd,\u0275escapeMatchingClosingTag:no,\u0275escapeClosingCommentTag:ao,\u0275escapeProcessingInstructionContent:io};var ro=ae(),At=ro.NAMESPACE,Zs={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},Rd={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ld={},eo=/[&<>\u00A0]/g,to=/[&"<>\u00A0]/g;function Id(e){return eo.test(e)?e.replace(eo,t=>{switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case"\xA0":return"&nbsp;"}}):e}function Md(e){return to.test(e)?e.replace(to,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"\xA0":return"&nbsp;"}}):e}function Od(e){var t=e.namespaceURI;return t?t===At.XML?"xml:"+e.localName:t===At.XLINK?"xlink:"+e.localName:t===At.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function no(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],a=e.matchAll(new RegExp(r,"ig"));for(let o of a)n[o.index]="&lt;";return n.join("")}var qd=/--!?>/;function ao(e){return qd.test(e)?e.replace(/(--\!?)>/g,"$1&gt;"):e}function io(e){return e.includes(">")?e.replaceAll(">","&gt;"):e}function Fd(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,a=n===At.HTML,o=a||n===At.SVG||n===At.MATHML?e.localName:e.tagName;r+="<"+o;for(var l=0,x=e._numattrs;l<x;l++){var p=e._attr(l);r+=" "+Od(p),p.value!==void 0&&(r+='="'+Md(p.value)+'"')}if(r+=">",!(a&&Rd[o])){var m=e.serialize();Zs[o.toUpperCase()]&&(m=no(m,o)),a&&Ld[o]&&m.charAt(0)===`
3
3
  `&&(r+=`
4
- `),r+=m,r+="</"+o+">"}break;case 3:case 4:var b;t.nodeType===1&&t.namespaceURI===At.HTML?b=t.tagName:b="",Zs[b]||b==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=Id(e.data);break;case 8:r+="<!--"+ao(e.data)+"-->";break;case 7:let R=io(e.data);r+="<?"+e.target+" "+R+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:ro.InvalidStateError()}return r}});var pe=S((qh,xo)=>{"use strict";xo.exports=J;var fo=Ca(),hn=Da(),oo=Ra(),z=ae();function J(){fo.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var Te=J.ELEMENT_NODE=1,La=J.ATTRIBUTE_NODE=2,mn=J.TEXT_NODE=3,Hd=J.CDATA_SECTION_NODE=4,Pd=J.ENTITY_REFERENCE_NODE=5,Ia=J.ENTITY_NODE=6,co=J.PROCESSING_INSTRUCTION_NODE=7,lo=J.COMMENT_NODE=8,_r=J.DOCUMENT_NODE=9,De=J.DOCUMENT_TYPE_NODE=10,pt=J.DOCUMENT_FRAGMENT_NODE=11,Ma=J.NOTATION_NODE=12,Oa=J.DOCUMENT_POSITION_DISCONNECTED=1,qa=J.DOCUMENT_POSITION_PRECEDING=2,Fa=J.DOCUMENT_POSITION_FOLLOWING=4,uo=J.DOCUMENT_POSITION_CONTAINS=8,Ha=J.DOCUMENT_POSITION_CONTAINED_BY=16,Pa=J.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;J.prototype=Object.create(fo.prototype,{baseURI:{get:z.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===Te?this.parentNode:null}},hasChildNodes:{value:z.shouldOverride},firstChild:{get:z.shouldOverride},lastChild:{get:z.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===J.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===J.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,n){var a=this,o,l;if(!t.nodeType)throw new TypeError("not a node");switch(a.nodeType){case _r:case pt:case Te:break;default:z.HierarchyRequestError()}switch(t.isAncestor(a)&&z.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==a&&z.NotFoundError(),t.nodeType){case pt:case De:case Te:case mn:case co:case lo:break;default:z.HierarchyRequestError()}if(a.nodeType===_r)switch(t.nodeType){case mn:z.HierarchyRequestError();break;case pt:switch(t._countChildrenOfType(mn)>0&&z.HierarchyRequestError(),t._countChildrenOfType(Te)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===De&&z.HierarchyRequestError(),l=r.nextSibling;l!==null;l=l.nextSibling)l.nodeType===De&&z.HierarchyRequestError();o=a._countChildrenOfType(Te),n?o>0&&z.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Te)&&z.HierarchyRequestError();break;default:z.HierarchyRequestError()}break;case Te:if(r!==null)for(n&&r.nodeType===De&&z.HierarchyRequestError(),l=r.nextSibling;l!==null;l=l.nextSibling)l.nodeType===De&&z.HierarchyRequestError();o=a._countChildrenOfType(Te),n?o>0&&z.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Te)&&z.HierarchyRequestError();break;case De:if(r===null)a._countChildrenOfType(Te)&&z.HierarchyRequestError();else for(l=a.firstChild;l!==null&&l!==r;l=l.nextSibling)l.nodeType===Te&&z.HierarchyRequestError();o=a._countChildrenOfType(De),n?o>0&&z.HierarchyRequestError():(o>1||o===1&&r.nodeType!==De)&&z.HierarchyRequestError();break}else t.nodeType===De&&z.HierarchyRequestError()}},insertBefore:{value:function(t,r){var n=this;n._ensureInsertValid(t,r,!0);var a=r;return a===t&&(a=t.nextSibling),n.doc.adoptNode(t),t._insertOrReplace(n,a,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&z.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var n=this;return n._ensureInsertValid(t,r,!1),t.doc!==n.doc&&n.doc.adoptNode(t),t._insertOrReplace(n,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&Ha)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return Oa+Pa;for(var r=[],n=[],a=this;a!==null;a=a.parentNode)r.push(a);for(a=t;a!==null;a=a.parentNode)n.push(a);if(r.reverse(),n.reverse(),r[0]!==n[0])return Oa+Pa;a=Math.min(r.length,n.length);for(var o=1;o<a;o++)if(r[o]!==n[o])return r[o].index<n[o].index?Fa:qa;return r.length<n.length?Fa+Ha:qa+uo}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,n=t.firstChild;r&&n;r=r.nextSibling,n=n.nextSibling)if(!r.isEqualNode(n))return!1;return r===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case Te:return this._lookupNamespacePrefix(t,this);case _r:return r=this.documentElement,r?r.lookupPrefix(t):null;case Ia:case Ma:case pt:case De:return null;case La:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case Te:return z.shouldOverride();case _r:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case Ia:case Ma:case De:case pt:return null;case La:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;z.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&z.WrongDocumentError()}},removeChildren:{value:z.shouldOverride},_insertOrReplace:{value:function(t,r,n){var a=this,o,l;if(a.nodeType===pt&&a.rooted&&z.HierarchyRequestError(),t._childNodes&&(o=r===null?t._childNodes.length:r.index,a.parentNode===t)){var p=a.index;p<o&&o--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var x=r;x===null&&(x=t.firstChild);var m=a.rooted&&t.rooted;if(a.nodeType===pt){for(var b=[0,n?1:0],R,I=a.firstChild;I!==null;I=R)R=I.nextSibling,b.push(I),I.parentNode=t;var d=b.length;if(n?hn.replace(x,d>2?b[2]:null):d>2&&x!==null&&hn.insertBefore(b[2],x),t._childNodes)for(b[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,b),l=2;l<d;l++)b[l]._index=b[0]+(l-2);else t._firstChild===r&&(d>2?t._firstChild=b[2]:n&&(t._firstChild=null));if(a._childNodes?a._childNodes.length=0:a._firstChild=null,t.rooted)for(t.modify(),l=2;l<d;l++)t.doc.mutateInsert(b[l])}else{if(r===a)return;m?a._remove():a.parentNode&&a.remove(),a.parentNode=t,n?(hn.replace(x,a),t._childNodes?(a._index=o,t._childNodes[o]=a):t._firstChild===r&&(t._firstChild=a)):(x!==null&&hn.insertBefore(a,x),t._childNodes?(a._index=o,t._childNodes.splice(o,0,a)):t._firstChild===r&&(t._firstChild=a)),m?(t.modify(),t.doc.mutateMove(a)):t.rooted&&(t.modify(),t.doc.mutateInsert(a))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===J.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===J.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=oo.serializeOne(t,this);return e}},outerHTML:{get:function(){return oo.serializeOne(this,{nodeType:0})},set:z.nyi},ELEMENT_NODE:{value:Te},ATTRIBUTE_NODE:{value:La},TEXT_NODE:{value:mn},CDATA_SECTION_NODE:{value:Hd},ENTITY_REFERENCE_NODE:{value:Pd},ENTITY_NODE:{value:Ia},PROCESSING_INSTRUCTION_NODE:{value:co},COMMENT_NODE:{value:lo},DOCUMENT_NODE:{value:_r},DOCUMENT_TYPE_NODE:{value:De},DOCUMENT_FRAGMENT_NODE:{value:pt},NOTATION_NODE:{value:Ma},DOCUMENT_POSITION_DISCONNECTED:{value:Oa},DOCUMENT_POSITION_PRECEDING:{value:qa},DOCUMENT_POSITION_FOLLOWING:{value:Fa},DOCUMENT_POSITION_CONTAINS:{value:uo},DOCUMENT_POSITION_CONTAINED_BY:{value:Ha},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:Pa}})});var ho=S((Hh,po)=>{"use strict";po.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var go=S((Ph,mo)=>{"use strict";function Bd(e){return this[e]||null}function Ud(e){return e||(e=[]),e.item=Bd,e}mo.exports=Ud});var kt=S((Bh,bo)=>{"use strict";var Ba;try{Ba=ho()}catch{Ba=go()}bo.exports=Ba});var gn=S((Uh,vo)=>{"use strict";vo.exports=_o;var yo=pe(),jd=kt();function _o(){yo.call(this),this._firstChild=this._childNodes=null}_o.prototype=Object.create(yo.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new jd;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,n;r!==null;)n=r,r=n.nextSibling,t&&t.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var bn=S(Va=>{"use strict";Va.isValidName=Kd;Va.isValidQName=Xd;var Vd=/^[_:A-Za-z][-.:\w]+$/,Gd=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,vr="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Er="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Ct="["+vr+"]["+Er+"]*",Ua=vr+":",ja=Er+":",Wd=new RegExp("^["+Ua+"]["+ja+"]*$"),zd=new RegExp("^("+Ct+"|"+Ct+":"+Ct+")$"),Eo=/[\uD800-\uDB7F\uDC00-\uDFFF]/,To=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,wo=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;vr+="\uD800-\u{EFC00}-\uDFFF";Er+="\uD800-\u{EFC00}-\uDFFF";Ct="["+vr+"]["+Er+"]*";Ua=vr+":";ja=Er+":";var $d=new RegExp("^["+Ua+"]["+ja+"]*$"),Yd=new RegExp("^("+Ct+"|"+Ct+":"+Ct+")$");function Kd(e){if(Vd.test(e)||Wd.test(e))return!0;if(!Eo.test(e)||!$d.test(e))return!1;var t=e.match(To),r=e.match(wo);return r!==null&&2*r.length===t.length}function Xd(e){if(Gd.test(e)||zd.test(e))return!0;if(!Eo.test(e)||!Yd.test(e))return!1;var t=e.match(To),r=e.match(wo);return r!==null&&2*r.length===t.length}});var Wa=S(Ga=>{"use strict";var So=ae();Ga.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(a){t[a.value||a]=a.alias||a});var r=e.missing;r===void 0&&(r=null);var n=e.invalid;return n===void 0&&(n=r),{get:function(){var a=this._getattr(e.name);return a===null?r:(a=t[a.toLowerCase()],a!==void 0?a:n!==null?n:a)},set:function(a){this._setattr(e.name,a)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(a){a?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return Qd(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(a){e.treatNullAsEmptyString&&a===null&&(a=""),this._setattr(e.name,a)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function Qd(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){So.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",a=e.type==="limited unsigned long with fallback",o=e.min,l=e.max,p=e.setmin;return o===void 0&&(r&&(o=0),n&&(o=-2147483648),a&&(o=1)),l===void 0&&(r||n||a)&&(l=2147483647),{get:function(){var x=this._getattr(e.name),m=e.float?parseFloat(x):parseInt(x,10);if(x===null||!isFinite(m)||o!==void 0&&m<o||l!==void 0&&m>l)return t.call(this);if(r||n||a){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(x))return t.call(this);m=m|0}return m},set:function(x){e.float||(x=Math.floor(x)),p!==void 0&&x<p&&So.IndexSizeError(e.name+" set to "+x),r?x=x<0||x>2147483647?t.call(this):x|0:a?x=x<1||x>2147483647?t.call(this):x|0:n&&(x=x<-2147483648||x>2147483647?t.call(this):x|0),this._setattr(e.name,String(x))}}}Ga.registerChangeHandler=function(e,t,r){var n=e.prototype;Object.prototype.hasOwnProperty.call(n,"_attributeChangeHandlers")||(n._attributeChangeHandlers=Object.create(n._attributeChangeHandlers||null)),n._attributeChangeHandlers[t]=r}});var ko=S((Gh,Ao)=>{"use strict";Ao.exports=No;var Jd=pe();function No(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}No.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===Jd.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var $a=S((Wh,Ro)=>{"use strict";var za=ae();Ro.exports=Do;function Do(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(Do.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=Ut(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=Ut(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=Ut(this),t=0,r=arguments.length;t<r;t++){var n=Tr(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=Ut(this),t=0,r=arguments.length;t<r;t++){var n=Tr(arguments[t]),a=e.indexOf(n);a>-1&&e.splice(a,1)}this._update(e)}},toggle:{value:function(t,r){return t=Tr(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&za.SyntaxError(),t=Tr(t),r=Tr(r);var n=Ut(this),a=n.indexOf(t);if(a<0)return!1;var o=n.indexOf(r);return o<0?n[a]=r:a<o?(n[a]=r,n.splice(o,1)):n.splice(a,1),this._update(n),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(Co(this,e),this._setString(e.join(" ").trim())):Co(this,Ut(this)),this._lastStringValue=this._getString()}}});function Co(e,t){var r=e._length,n;for(e._length=t.length,n=0;n<t.length;n++)e[n]=t[n];for(;n<r;n++)e[n]=void 0}function Tr(e){return e=String(e),e===""&&za.SyntaxError(),/[ \t\r\n\f]/.test(e)&&za.InvalidCharacterError(),e}function Zd(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function Ut(e){var t=e._getString();if(t===e._lastStringValue)return Zd(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var n=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(a){var o="$"+a;return n[o]?!1:(n[o]=!0,!0)})}});var En=S((Gt,Fo)=>{"use strict";var yn=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),ef=function(e,t){return e.compareDocumentPosition(t)},tf=function(e,t){return ef(e,t)&2?1:-1},vn=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},Vt=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},rf=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},nf=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},jt=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},Lo=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(C.str_escape,function(r){var n=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!n)return r.slice(1);if(n[2])return"";var a=parseInt(n[1],16);return String.fromCodePoint?String.fromCodePoint(a):String.fromCharCode(a)})):C.ident.test(e)?ht(e):e},ht=function(e){return e.replace(C.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var n=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},af=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),Mo=function(e,t){var r=C.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},we=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},Io=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},sf=function(e,t){var r=e.replace(/\s+/g,""),n;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),n=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:n[1]==="-"?-(n[2]||1):+(n[2]||1),offset:n[4]?n[3]==="-"?-n[4]:+n[4]:0}},Ya=function(e,t,r){var n=sf(e),a=n.group,o=n.offset,l=r?nf:rf,p=r?Vt:vn;return function(x){if(jt(x))for(var m=l(x.parentNode),b=0;m;){if(t(m,x)&&b++,m===x)return b-=o,a&&b?b%a===0&&b<0==a<0:!b;m=p(m)}}},ue={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,n){return t=Oo[t],function(a){var o;switch(e){case"for":o=a.htmlFor;break;case"class":o=a.className,o===""&&a.getAttribute("class")==null&&(o=null);break;case"href":case"src":o=a.getAttribute(e,2);break;case"title":o=a.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(a.getAttribute){o=a.getAttribute(e);break}default:if(a.hasAttribute&&!a.hasAttribute(e))break;o=a[e]!=null?a[e]:a.getAttribute&&a.getAttribute(e);break}if(o!=null)return o=o+"",n&&(o=o.toLowerCase(),r=r.toLowerCase()),t(o,r)}},":first-child":function(e){return!Vt(e)&&jt(e)},":last-child":function(e){return!vn(e)&&jt(e)},":only-child":function(e){return!Vt(e)&&!vn(e)&&jt(e)},":nth-child":function(e,t){return Ya(e,function(){return!0},t)},":nth-last-child":function(e){return ue[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=Xa(e);return function(r){return!t(r)}},":first-of-type":function(e){if(jt(e)){for(var t=e.nodeName;e=Vt(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(jt(e)){for(var t=e.nodeName;e=vn(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return ue[":first-of-type"](e)&&ue[":last-of-type"](e)},":nth-of-type":function(e,t){return Ya(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return ue[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!ue[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===yn.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return Xa(e)},":matches":function(e){return ue[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),a=Xa(r.join(","));return Ya(n,a,t)},":nth-last-match":function(e){return ue[":nth-match"](e,!0)},":links-here":function(e){return e+""==yn.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===yn.location.host;var t=+e+1;return function(r){if(r.href){var n=yn.location+"",a=r+"";return Io(n,t)===Io(a,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!ue[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!ue[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,n=e.nodeName.toLowerCase();return n=n!=="input"&&n!=="textarea",(n||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!ue[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return qo(e,t).length>0}}},Oo={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,a,o;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(a=e[r-1],o=e[r+t.length],(!a||a===" ")&&(!o||o===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),n;if(r===0)return n=e[r+t.length],n==="-"||!n},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},wr={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=Vt(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=Vt(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function n(a){for(var o=a.ownerDocument,l=o.getElementsByTagName("*"),p=l.length;p--;)if(r=l[p],n.test(a))return r=null,!0;r=null}return n.combinator=function(a){if(!(!r||!r.getAttribute)){var o=r.getAttribute(t)||"";if(o[0]==="#"&&(o=o.substring(1)),o===a.id&&e(r))return r}},n}},C={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};C.cssid=we(C.cssid,"nonascii",C.nonascii);C.cssid=we(C.cssid,"escape",C.escape);C.qname=we(C.qname,"cssid",C.cssid);C.simple=we(C.simple,"cssid",C.cssid);C.ref=we(C.ref,"cssid",C.cssid);C.attr=we(C.attr,"cssid",C.cssid);C.pseudo=we(C.pseudo,"cssid",C.cssid);C.inside=we(C.inside,`[^"'>]*`,C.inside);C.attr=we(C.attr,"inside",Mo("\\[","\\]"));C.pseudo=we(C.pseudo,"inside",Mo("\\(","\\)"));C.simple=we(C.simple,"pseudo",C.pseudo);C.simple=we(C.simple,"attr",C.attr);C.ident=we(C.ident,"cssid",C.cssid);C.str_escape=we(C.str_escape,"escape",C.escape);var Sr=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],a=[],o,l,p,x,m;t;){if(p=C.qname.exec(t))t=t.substring(p[0].length),l=ht(p[1]),a.push(_n(l,!0));else if(p=C.simple.exec(t))t=t.substring(p[0].length),l="*",a.push(_n(l,!0)),a.push(_n(p));else throw new SyntaxError("Invalid selector.");for(;p=C.simple.exec(t);)t=t.substring(p[0].length),a.push(_n(p));if(t[0]==="!"&&(t=t.substring(1),o=cf(),o.qname=l,a.push(o.simple)),p=C.ref.exec(t)){t=t.substring(p[0].length),m=wr.ref(Ka(a),ht(p[1])),n.push(m.combinator),a=[];continue}if(p=C.combinator.exec(t)){if(t=t.substring(p[0].length),x=p[1]||p[2]||p[3],x===","){n.push(wr.noop(Ka(a)));break}}else x="noop";if(!wr[x])throw new SyntaxError("Bad combinator.");n.push(wr[x](Ka(a))),a=[]}return r=of(n),r.qname=l,r.sel=t,o&&(o.lname=r.qname,o.test=r,o.qname=o.qname,o.sel=r.sel,r=o),m&&(m.test=r,m.qname=r.qname,m.sel=r.sel,r=m),r},_n=function(e,t){if(t)return e==="*"?ue["*"]:ue.type(e);if(e[1])return e[1][0]==="."?ue.attr("class","~=",ht(e[1].substring(1)),!1):ue.attr("id","=",ht(e[1].substring(1)),!1);if(e[2])return e[3]?ue[ht(e[2])](Lo(e[3])):ue[ht(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),ue.attr(ht(e[4]),e[5]||"-",Lo(r),n)}throw new SyntaxError("Unknown Selector.")},Ka=function(e){var t=e.length,r;return t<2?e[0]:function(n){if(n){for(r=0;r<t;r++)if(!e[r](n))return;return!0}}},of=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},cf=function(){var e;function t(r){for(var n=r.ownerDocument,a=n.getElementsByTagName(t.lname),o=a.length;o--;)if(t.test(a[o])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},Xa=function(e){for(var t=Sr(e),r=[t];t.sel;)t=Sr(t.sel),r.push(t);return r.length<2?t:function(n){for(var a=r.length,o=0;o<a;o++)if(r[o](n))return!0}},qo=function(e,t){for(var r=[],n=Sr(e),a=t.getElementsByTagName(n.qname),o=0,l;l=a[o++];)n(l)&&r.push(l);if(n.sel){for(;n.sel;)for(n=Sr(n.sel),a=t.getElementsByTagName(n.qname),o=0;l=a[o++];)n(l)&&af.call(r,l)===-1&&r.push(l);r.sort(tf)}return r};Fo.exports=Gt=function(e,t){var r,n;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return n=t.doc.getElementById(r),n?[n]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return qo(e,t)};Gt.selectors=ue;Gt.operators=Oo;Gt.combinators=wr;Gt.matches=function(e,t){var r={sel:t};do if(r=Sr(r.sel),r(e))return!0;while(r.sel);return!1}});var Tn=S((zh,Ho)=>{"use strict";var lf=pe(),uf=Da(),Qa=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var a=t[n],o=a instanceof lf;r.appendChild(o?a:e.createTextNode(String(a)))}return r},df={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(o){return o===n});)n=n.nextSibling;var a=Qa(this.doc,t);r.insertBefore(a,n)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.previousSibling;if(r!==null){for(;n&&t.some(function(l){return l===n});)n=n.previousSibling;var a=Qa(this.doc,t),o=n?n.nextSibling:r.firstChild;r.insertBefore(a,o)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),uf.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(o){return o===n});)n=n.nextSibling;var a=Qa(this.doc,t);this.parentNode===r?r.replaceChild(a,this):r.insertBefore(a,n)}}}};Ho.exports=df});var Ja=S(($h,Bo)=>{"use strict";var Po=pe(),ff={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===Po.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===Po.ELEMENT_NODE)return e}return null}}};Bo.exports=ff});var Za=S((Yh,jo)=>{"use strict";jo.exports=Uo;var Wt=ae();function Uo(e){this.element=e}Object.defineProperties(Uo.prototype,{length:{get:Wt.shouldOverride},item:{value:Wt.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Wt.nyi},setNamedItemNS:{value:Wt.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Wt.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;Wt.NotFoundError()}}})});var $t=S((Kh,$o)=>{"use strict";$o.exports=mt;var ei=bn(),ee=ae(),Ue=ee.NAMESPACE,Sn=Wa(),Me=pe(),ti=kt(),xf=Ra(),wn=ko(),zt=xn(),pf=$a(),ri=En(),Go=gn(),hf=Tn(),mf=Ja(),Wo=Za(),Vo=Object.create(null);function mt(e,t,r,n){Go.call(this),this.nodeType=Me.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=n,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function ni(e,t){if(e.nodeType===Me.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)ni(e.childNodes[r],t)}mt.prototype=Object.create(Go.prototype,{isHTML:{get:function(){return this.namespaceURI===Ue.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=Vo[t];r||(Vo[t]=r=ee.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return ni(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return ni(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:ee.nyi},outerHTML:{get:function(){return xf.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Me.DOCUMENT_NODE&&ee.NoModificationAllowedError(),r.nodeType===Me.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var n=t.implementation.mozHTMLParser(t._address,r);n.parse(e===null?"":String(e),!0),this.replaceWith(n._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var n=!1;switch(t){case"beforebegin":n=!0;case"afterend":var a=this.parentNode;return a===null?null:a.insertBefore(r,n?this:this.nextSibling);case"afterbegin":n=!0;case"beforeend":return this.insertBefore(r,n?this.firstChild:null);default:return ee.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Me.ELEMENT_NODE)throw new TypeError("not an element");return t=ee.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=ee.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=ee.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===Me.DOCUMENT_NODE)&&ee.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:ee.SyntaxError()}(!(n instanceof mt)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===Ue.HTML)&&(n=n.ownerDocument.createElementNS(Ue.HTML,"body"));var a=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);a.parse(r,!0),this._insertAdjacent(t,a._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new zo(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new ii(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Me.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Me.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=gf(t):r=ai(t),new wn(this,r)):new ti}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=ai(r):r==="*"?n=bf(t):n=yf(t,r),new wn(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new ti;return r}return t=t.split(/[ \t\r\n\f]+/),new wn(this,_f(t))}},getElementsByName:{value:function(t){return new wn(this,vf(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Ue.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,n=this._attrKeys.length;r<n;r++){var a=this._attrKeys[r],o=this._attrsByLName[a],l=o.cloneNode();l._setOwnerElement(t),t._attrsByLName[a]=l,t._addQName(l)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,n=this._numattrs;r<n;r++){var a=this._attr(r);if(!t.hasAttributeNS(a.namespaceURI,a.localName)||t.getAttributeNS(a.namespaceURI,a.localName)!==a.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var n=0,a=this._numattrs;n<a;n++){var o=this._attr(n);if(o.prefix==="xmlns"&&o.value===t&&r.lookupNamespaceURI(o.localName)===t)return o.localName}var l=this.parentElement;return l?l._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,n=this._numattrs;r<n;r++){var a=this._attr(r);if(a.namespaceURI===Ue.XMLNS&&(a.prefix==="xmlns"&&a.localName===t||t===null&&a.prefix===null&&a.localName==="xmlns"))return a.value||null}var o=this.parentElement;return o?o.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var n=this.getAttributeNodeNS(t,r);return n?n.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=this._attrsByLName[t+"|"+r];return n||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),ei.isValidName(t)||ee.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var n=this._attrsByQName[t];return n===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var n=this._attrsByQName[t],a;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(t),a=!0),n.value=r,this._attributes&&(this._attributes[t]=n),a&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),ei.isValidName(t)||ee.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var a=r.indexOf(":"),o,l;a<0?(o=null,l=r):(o=r.substring(0,a),l=r.substring(a+1)),(t===""||t===void 0)&&(t=null);var p=(t===null?"":t)+"|"+l,x=this._attrsByLName[p],m;x||(x=new Nr(this,l,o,t),m=!0,this._attrsByLName[p]=x,this._attributes&&(this._attributes[this._attrKeys.length]=x),this._attrKeys.push(p),this._addQName(x)),x.value=n,m&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),ei.isValidQName(r)||ee.InvalidCharacterError();var a=r.indexOf(":"),o=a<0?null:r.substring(0,a);(o!==null&&t===null||o==="xml"&&t!==Ue.XML||(r==="xmlns"||o==="xmlns")&&t!==Ue.XMLNS||t===Ue.XMLNS&&!(r==="xmlns"||o==="xmlns"))&&ee.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new zt(zt.INUSE_ATTRIBUTE_ERR);var r=null,n=this._attrsByQName[t.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(a){return a===t}))return t;if(t.ownerElement!==null)throw new zt(zt.INUSE_ATTRIBUTE_ERR);n.forEach(function(a){this.removeAttributeNode(a)},this),r=n[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new zt(zt.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName,a=this._attrsByLName[n];return a&&this.removeAttributeNode(a),t._setOwnerElement(this),this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),a||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var n=r.namespaceURI,a=(n===null?"":n)+"|"+r.localName;this._attrsByLName[a]=void 0;var o=this._attrKeys.indexOf(a);this._attributes&&(Array.prototype.splice.call(this._attributes,o,1),this._attributes[t]=void 0),this._attrKeys.splice(o,1);var l=r.onchange;r._setOwnerElement(null),l&&l.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r,a=this._attrsByLName[n];if(a){this._attrsByLName[n]=void 0;var o=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,o,1),this._attrKeys.splice(o,1),this._removeQName(a);var l=a.onchange;a._setOwnerElement(null),l&&l.call(a,this,a.localName,a.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(a)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[n]!==t&&ee.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var n=this._attrsByQName[t],a;n||(n=this._newattr(t),a=!0),n.value=String(r),this._attributes&&(this._attributes[t]=n),a&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new Nr(this,t,null,null),n="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[n]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(n),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var n=r.indexOf(e);ee.assert(n!==-1),r.length===2?(this._attrsByQName[t]=r[1-n],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(n,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else ee.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:Sn.property({name:"id"}),className:Sn.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new pf(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return ri.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Me.ELEMENT_NODE);return null}},querySelector:{value:function(e){return ri(e,this)[0]}},querySelectorAll:{value:function(e){var t=ri(e,this);return t.item?t:new ti(t)}}});Object.defineProperties(mt.prototype,hf);Object.defineProperties(mt.prototype,mf);Sn.registerChangeHandler(mt,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});Sn.registerChangeHandler(mt,"class",function(e,t,r,n){e._classList&&e._classList._update()});function Nr(e,t,r,n,a){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=n===null||n===""?null:""+n,this.data=a,this._setOwnerElement(e)}Nr.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new Nr(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Me.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});mt._Attr=Nr;function ii(e){Wo.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}ii.prototype=Object.create(Wo.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(ii.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function zo(e){this.element=e,this.updateCache()}zo.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<r;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var a=this.element.firstChild;a!==null;a=a.nextSibling)if(a.nodeType===Me.ELEMENT_NODE){this[this.childrenByNumber.length]=a,this.childrenByNumber.push(a);var o=a.getAttribute("id");o&&!this.childrenByName[o]&&(this.childrenByName[o]=a);var l=a.getAttribute("name");l&&this.element.namespaceURI===Ue.HTML&&t.test(this.element.localName)&&!this.childrenByName[l]&&(this.childrenByName[o]=a)}}}}});function ai(e){return function(t){return t.localName===e}}function gf(e){var t=ee.toASCIILowerCase(e);return t===e?ai(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function bf(e){return function(t){return t.namespaceURI===e}}function yf(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function _f(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function vf(e){return function(t){return t.namespaceURI!==Ue.HTML?!1:t.getAttribute("name")===e}}});var si=S((Xh,Jo)=>{"use strict";Jo.exports=Qo;var Ko=pe(),Ef=kt(),Xo=ae(),Yo=Xo.HierarchyRequestError,Tf=Xo.NotFoundError;function Qo(){Ko.call(this)}Qo.prototype=Object.create(Ko.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Yo()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Yo()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");Tf()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new Ef),this._childNodes}}})});var Ar=S((Qh,tc)=>{"use strict";tc.exports=Nn;var ec=si(),Zo=ae(),wf=Tn(),Sf=Ja();function Nn(){ec.call(this)}Nn.prototype=Object.create(ec.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&Zo.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,n){var a=this.data,o=a.length;t=t>>>0,r=r>>>0,n=String(n),(t>o||t<0)&&Zo.IndexSizeError(),t+r>o&&(r=o-t);var l=a.substring(0,t),p=a.substring(t+r);this.data=l+n+p}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(Nn.prototype,wf);Object.defineProperties(Nn.prototype,Sf)});var ci=S((Jh,ic)=>{"use strict";ic.exports=oi;var rc=ae(),nc=pe(),ac=Ar();function oi(e,t){ac.call(this),this.nodeType=nc.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var kr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};oi.prototype=Object.create(ac.prototype,{nodeName:{value:"#text"},nodeValue:kr,textContent:kr,innerText:kr,data:{get:kr.get,set:function(e){kr.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&rc.IndexSizeError();var r=this._data.substring(t),n=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var a=this.parentNode;return a!==null&&a.insertBefore(n,this.nextSibling),n}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===nc.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:rc.nyi},clone:{value:function(){return new oi(this.ownerDocument,this._data)}}})});var ui=S((Zh,oc)=>{"use strict";oc.exports=li;var Nf=pe(),sc=Ar();function li(e,t){sc.call(this),this.nodeType=Nf.COMMENT_NODE,this.ownerDocument=e,this._data=t}var Cr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};li.prototype=Object.create(sc.prototype,{nodeName:{value:"#comment"},nodeValue:Cr,textContent:Cr,innerText:Cr,data:{get:Cr.get,set:function(e){Cr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new li(this.ownerDocument,this._data)}}})});var fi=S((em,uc)=>{"use strict";uc.exports=di;var Af=pe(),kf=kt(),lc=gn(),An=$t(),Cf=En(),cc=ae();function di(e){lc.call(this),this.nodeType=Af.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}di.prototype=Object.create(lc.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(An.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(An.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=An.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(An.prototype,"firstElementChild").get;var r=Cf(e,t);return r.item?r:new kf(r)}},clone:{value:function(){return new di(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:cc.nyi},outerHTML:{get:function(){return this.serialize()},set:cc.nyi}})});var pi=S((tm,fc)=>{"use strict";fc.exports=xi;var Df=pe(),dc=Ar();function xi(e,t,r){dc.call(this),this.nodeType=Df.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var Dr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};xi.prototype=Object.create(dc.prototype,{nodeName:{get:function(){return this.target}},nodeValue:Dr,textContent:Dr,innerText:Dr,data:{get:Dr.get,set:function(e){Dr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new xi(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var Rr=S((rm,xc)=>{"use strict";var hi={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};xc.exports=hi.constructor=hi.prototype=hi});var gi=S((am,hc)=>{"use strict";var nm=hc.exports={nextSkippingChildren:Rf,nextAncestorSibling:mi,next:Lf,previous:If,deepLastChild:pc};function Rf(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:mi(e,t)}function mi(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function Lf(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:mi(e,t))}function pc(e){for(;e.lastChild;)e=e.lastChild;return e}function If(e,t){var r;return r=e.previousSibling,r!==null?pc(r):(r=e.parentNode,r===t?null:r)}});var Ec=S((im,vc)=>{"use strict";vc.exports=_c;var Mf=pe(),he=Rr(),mc=gi(),yc=ae(),bi={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},yi={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function gc(e,t){var r,n,a,o,l;for(n=e._currentNode[bi[t]];n!==null;){if(o=e._internalFilter(n),o===he.FILTER_ACCEPT)return e._currentNode=n,n;if(o===he.FILTER_SKIP&&(r=n[bi[t]],r!==null)){n=r;continue}for(;n!==null;){if(l=n[yi[t]],l!==null){n=l;break}if(a=n.parentNode,a===null||a===e.root||a===e._currentNode)return null;n=a}}return null}function bc(e,t){var r,n,a;if(r=e._currentNode,r===e.root)return null;for(;;){for(a=r[yi[t]];a!==null;){if(r=a,n=e._internalFilter(r),n===he.FILTER_ACCEPT)return e._currentNode=r,r;a=r[bi[t]],(n===he.FILTER_REJECT||a===null)&&(a=r[yi[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===he.FILTER_ACCEPT)return null}}function _c(e,t,r){(!e||!e.nodeType)&&yc.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(_c.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof Mf))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&yc.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return he.FILTER_SKIP;if(n=this._filter,n===null)r=he.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===he.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return gc(this,"first")}},lastChild:{value:function(){return gc(this,"last")}},previousSibling:{value:function(){return bc(this,"previous")}},nextSibling:{value:function(){return bc(this,"next")}},previousNode:{value:function(){var t,r,n,a;for(t=this._currentNode;t!==this._root;){for(n=t.previousSibling;n;n=t.previousSibling)if(t=n,r=this._internalFilter(t),r!==he.FILTER_REJECT){for(a=t.lastChild;a&&(t=a,r=this._internalFilter(t),r!==he.FILTER_REJECT);a=t.lastChild);if(r===he.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===he.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,a;t=this._currentNode,r=he.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===he.FILTER_ACCEPT)return this._currentNode=t,t;if(r===he.FILTER_REJECT)break}for(a=mc.nextSkippingChildren(t,this.root);a;a=mc.nextSkippingChildren(t,this.root)){if(t=a,r=this._internalFilter(t),r===he.FILTER_ACCEPT)return this._currentNode=t,t;if(r===he.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var kc=S((sm,Ac)=>{"use strict";Ac.exports=Nc;var _i=Rr(),vi=gi(),Sc=ae();function Of(e,t,r){return r?vi.next(e,t):e===t?null:vi.previous(e,null)}function Tc(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function wc(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=Of(r,e._root,t),r===null)return null;var a=e._internalFilter(r);if(a===_i.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function Nc(e,t,r){(!e||!e.nodeType)&&Sc.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(Nc.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,n;if(this._active&&Sc.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return _i.FILTER_SKIP;if(n=this._filter,n===null)r=_i.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!Tc(t,this._root)&&Tc(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=vi.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return wc(this,!0)}},previousNode:{value:function(){return wc(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var kn=S((om,Cc)=>{"use strict";Cc.exports=me;function me(e){if(!e)return Object.create(me.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=me.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(me.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(me.portPattern)){var n=t[4].lastIndexOf(":");this.host=t[4].substring(0,n),this.port=t[4].substring(n+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}me.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;me.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;me.portPattern=/:\d+$/;me.authorityPattern=/^[^:\/?#]+:\/\//;me.hierarchyPattern=/^[^:\/?#]+:\//;me.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};me.prototype={constructor:me,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return me.authorityPattern.test(this.url)},isHierarchical:function(){return me.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new me(e),n=new me;return r.scheme!==void 0?(n.scheme=r.scheme,n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=o(r.path),n.query=r.query):(n.scheme=t.scheme,r.host!==void 0?(n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=o(r.path),n.query=r.query):(n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,r.path?(r.path.charAt(0)==="/"?n.path=o(r.path):(n.path=a(t.path,r.path),n.path=o(n.path)),n.query=r.query):(n.path=t.path,r.query!==void 0?n.query=r.query:n.query=t.query))),n.fragment=r.fragment,n.toString();function a(l,p){if(t.host!==void 0&&!t.path)return"/"+p;var x=l.lastIndexOf("/");return x===-1?p:l.substring(0,x+1)+p}function o(l){if(!l)return l;for(var p="";l.length>0;){if(l==="."||l===".."){l="";break}var x=l.substring(0,2),m=l.substring(0,3),b=l.substring(0,4);if(m==="../")l=l.substring(3);else if(x==="./")l=l.substring(2);else if(m==="/./")l="/"+l.substring(3);else if(x==="/."&&l.length===2)l="/";else if(b==="/../"||m==="/.."&&l.length===3)l="/"+l.substring(4),p=p.replace(/\/?[^\/]*$/,"");else{var R=l.match(/(\/?([^\/]*))/)[0];p+=R,l=l.substring(R.length)}}return p}}}});var Lc=S((cm,Rc)=>{"use strict";Rc.exports=Ei;var Dc=Bt();function Ei(e,t){Dc.call(this,e,t)}Ei.prototype=Object.create(Dc.prototype,{constructor:{value:Ei}})});var Ti=S((lm,Ic)=>{"use strict";Ic.exports={Event:Bt(),UIEvent:Sa(),MouseEvent:Aa(),CustomEvent:Lc()}});var Oc=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.hyphenate=Yt.parse=void 0;function qf(e){let t=[],r=0,n=0,a=0,o=0,l=0,p=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:a===0?a=39:a===39&&e.charCodeAt(r-1)!==92&&(a=0);break;case 34:a===0?a=34:a===34&&e.charCodeAt(r-1)!==92&&(a=0);break;case 58:!p&&n===0&&a===0&&(p=Mc(e.substring(l,r-1).trim()),o=r);break;case 59:if(p&&o>0&&n===0&&a===0){let m=e.substring(o,r-1).trim();t.push(p,m),l=r,o=0,p=null}break}if(p&&o){let x=e.slice(o).trim();t.push(p,x)}return t}Yt.parse=qf;function Mc(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Yt.hyphenate=Mc});var Cn=S((dm,Bc)=>{"use strict";var{parse:Ff}=Oc();Bc.exports=function(e){let t=new Pc(e),r={get:function(n,a){return a in n?n[a]:n.getPropertyValue(qc(a))},has:function(n,a){return!0},set:function(n,a,o){return a in n?n[a]=o:n.setProperty(qc(a),o??void 0),!0}};return new Proxy(t,r)};function qc(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pc(e){this._element=e}var Fc="!important";function Hc(e){let t={property:{},priority:{}};if(!e)return t;let r=Ff(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let a=r[n],o=r[n+1];o.endsWith(Fc)&&(t.priority[a]="important",o=o.slice(0,-Fc.length).trim()),t.property[a]=o}return t}var Kt={};Pc.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=Hc(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==Kt&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==Kt&&!/^important$/i.test(r))){var n=this._parsed;if(t===Kt){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var a=Hc(e+":"+t);if(Object.getOwnPropertyNames(a.property).length===0||Object.getOwnPropertyNames(a.priority).length!==0)return;for(var o in a.property)n.property[o]=a.property[o],r!==Kt&&(r!==""?n.priority[o]="important":n.priority[o]&&delete n.priority[o])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,Kt)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,Kt,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var wi=S((fm,Uc)=>{"use strict";var de=kn();Uc.exports=Lr;function Lr(){}Lr.prototype=Object.create(Object.prototype,{_url:{get:function(){return new de(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,de.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,de.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,de.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,de.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,de.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new de(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,de.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,de.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,de.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var n=[e.scheme,e.host,+e.port||r];return n[0]+"://"+n[1]+(n[2]===r?"":":"+n[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});Lr._inherit=function(e){Object.getOwnPropertyNames(Lr.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(Lr.prototype,t);Object.defineProperty(e,t,r)}})}});var Si=S((xm,Gc)=>{"use strict";var jc=Wa(),Hf=pn().isApiWritable;Gc.exports=function(e,t,r,n){var a=e.ctor;if(a){var o=e.props||{};if(e.attributes)for(var l in e.attributes){var p=e.attributes[l];(typeof p!="object"||Array.isArray(p))&&(p={type:p}),p.name||(p.name=l.toLowerCase()),o[l]=jc.property(p)}o.constructor={value:a,writable:Hf},a.prototype=Object.create((e.superclass||t).prototype,o),e.events&&Bf(a,e.events),r[e.name]=a}else a=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(x){n[x]=a}),a};function Vc(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}Vc.prototype.build=function(){return()=>{}};function Pf(e,t,r,n){var a=e.ownerDocument||Object.create(null),o=e.form||Object.create(null);e[t]=new Vc(n,a,o,e).build()}function Bf(e,t){var r=e.prototype;t.forEach(function(n){Object.defineProperty(r,"on"+n,{get:function(){return this._getEventHandler(n)},set:function(a){this._setEventHandler(n,a)}}),jc.registerChangeHandler(e,"on"+n,Pf)})}});var Ln=S(Rn=>{"use strict";var Ni=pe(),Wc=$t(),Uf=Cn(),Se=ae(),zc=wi(),jf=Si(),Qe=Rn.elements={},Ir=Object.create(null);Rn.createElement=function(e,t,r){var n=Ir[t]||Gf;return new n(e,t,r)};function v(e){return jf(e,T,Qe,Ir)}function ie(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function Dn(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var Xt={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},Vf={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Oe=function(e,t,r){T.call(this,e,t,r),this._form=null},T=Rn.HTMLElement=v({superclass:Wc,name:"HTMLElement",ctor:function(t,r,n){Wc.call(this,t,r,Se.NAMESPACE.HTML,n)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof Ir.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new Uf(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:Se.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in Vf||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),Gf=v({name:"HTMLUnknownElement",ctor:function(t,r,n){T.call(this,t,r,n)}}),qe={form:{get:function(){return this._form}}};v({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:ie,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:Xt,coords:String,charset:String,name:String,rev:String,shape:String}});zc._inherit(Ir.a.prototype);v({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:ie,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:Xt,noHref:Boolean}});zc._inherit(Ir.area.prototype);v({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{clear:String}});v({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{target:String}});v({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){T.call(this,t,r,n)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});v({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:ie,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});v({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{compact:Boolean}});v({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{value:String}});v({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{open:Boolean}});v({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,type:String,width:String,height:String,align:String,name:String}});v({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{disabled:Boolean,name:String}});v({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});v({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});v({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{xmlns:ie,version:String}});v({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:Xt,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:ie,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});v({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{alt:String,src:ie,srcset:String,crossOrigin:Dn,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:Xt,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:ie,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:ie,border:{type:String,treatNullAsEmptyString:!0}}});v({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:{form:qe.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var n=t[r];n.checked=n===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:ie,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});v({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});v({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});v({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{htmlFor:{name:"for",type:String}}});v({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{href:ie,rel:String,media:String,hreflang:String,type:String,crossOrigin:Dn,nonce:String,integrity:String,referrerPolicy:Xt,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});v({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{name:String}});v({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});v({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});v({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe});v({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{cite:ie,dateTime:String}});v({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===Ni.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});v({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{data:ie,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:ie,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});v({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});v({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===Ni.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});v({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{name:String}});v({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});v({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});v({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{max:{type:Number,float:!0,default:1,min:0}}});v({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{cite:ie}});v({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var n=this.childNodes[t];n.nodeType===Ni.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:ie,type:String,charset:String,referrerPolicy:Xt,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:Dn,nonce:String,integrity:String}});v({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:{form:qe.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});v({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});v({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({name:"HTMLTableCellElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});v({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});v({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});v({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){T.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});v({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});v({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});v({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:{form:qe.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});v({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});v({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});v({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});v({name:"HTMLMediaElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,crossOrigin:Dn,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});v({name:"HTMLAudioElement",tag:"audio",superclass:Qe.HTMLMediaElement,ctor:function(t,r,n){Qe.HTMLMediaElement.call(this,t,r,n)}});v({name:"HTMLVideoElement",tag:"video",superclass:Qe.HTMLMediaElement,ctor:function(t,r,n){Qe.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:ie,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});v({tag:"td",name:"HTMLTableDataCellElement",superclass:Qe.HTMLTableCellElement,ctor:function(t,r,n){Qe.HTMLTableCellElement.call(this,t,r,n)}});v({tag:"th",name:"HTMLTableHeaderCellElement",superclass:Qe.HTMLTableCellElement,ctor:function(t,r,n){Qe.HTMLTableCellElement.call(this,t,r,n)}});v({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{getContext:{value:Se.nyi},probablySupportsContext:{value:Se.nyi},setContext:{value:Se.nyi},transferControlToProxy:{value:Se.nyi},toDataURL:{value:Se.nyi},toBlob:{value:Se.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});v({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{show:{value:Se.nyi},showModal:{value:Se.nyi},close:{value:Se.nyi}},attributes:{open:Boolean,returnValue:String}});v({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:ie,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});v({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:ie,type:String,width:String,height:String}});v({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:Se.nyi},track:{get:Se.nyi}}});v({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});v({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{compact:Boolean}});v({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var Ci=S(In=>{"use strict";var $c=$t(),Wf=Si(),zf=ae(),$f=Cn(),Yf=In.elements={},Yc=Object.create(null);In.createElement=function(e,t,r){var n=Yc[t]||ki;return new n(e,t,r)};function Ai(e){return Wf(e,ki,Yf,Yc)}var ki=Ai({superclass:$c,name:"SVGElement",ctor:function(t,r,n){$c.call(this,t,r,zf.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new $f(this)),this._style}}}});Ai({name:"SVGSVGElement",ctor:function(t,r,n){ki.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return In.createElement(this.ownerDocument,"rect",null)}}}});Ai({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var Xc=S((mm,Kc)=>{"use strict";Kc.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var On=S((gm,sl)=>{"use strict";sl.exports=Or;var ge=pe(),Kf=kt(),rl=gn(),gt=$t(),Xf=ci(),Qf=ui(),Mr=Bt(),Jf=fi(),Zf=pi(),ex=qr(),tx=Ec(),rx=kc(),Qc=Rr(),Jc=kn(),Zc=En(),nx=Ti(),Mn=bn(),Di=Ln(),ax=Ci(),j=ae(),Qt=Xc(),Zt=j.NAMESPACE,Ri=pn().isApiWritable;function Or(e,t){rl.call(this),this.nodeType=ge.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new ex(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var ix={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},sx={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},Jt=function(e,t,r){return{get:function(){var n=e.call(this);return n?n[t]:r},set:function(n){var a=e.call(this);a&&(a[t]=n)}}};function el(e,t){var r,n,a;return e===""&&(e=null),Mn.isValidQName(t)||j.InvalidCharacterError(),r=null,n=t,a=t.indexOf(":"),a>=0&&(r=t.substring(0,a),n=t.substring(a+1)),r!==null&&e===null&&j.NamespaceError(),r==="xml"&&e!==Zt.XML&&j.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Zt.XMLNS&&j.NamespaceError(),e===Zt.XMLNS&&!(r==="xmlns"||t==="xmlns")&&j.NamespaceError(),{namespace:e,prefix:r,localName:n}}Or.prototype=Object.create(rl.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new Mr(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:j.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new Xf(this,String(e))}},createComment:{value:function(e){return new Qf(this,e)}},createDocumentFragment:{value:function(){return new Jf(this)}},createProcessingInstruction:{value:function(e,t){return(!Mn.isValidName(e)||t.indexOf("?>")!==-1)&&j.InvalidCharacterError(),new Zf(this,e,t)}},createAttribute:{value:function(e){return e=String(e),Mn.isValidName(e)||j.InvalidCharacterError(),this.isHTML&&(e=j.toASCIILowerCase(e)),new gt._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=el(e,t);return new gt._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),Mn.isValidName(e)||j.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=j.toASCIILowerCase(e)),Di.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?Di.createElement(this,e,null):new gt(this,e,null,null)},writable:Ri},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=el(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:Ri},_createElementNS:{value:function(e,t,r){return t===Zt.HTML?Di.createElement(this,e,r):t===Zt.SVG?ax.createElement(this,e,r):new gt(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=sx[t]||t,n=nx[ix[r]];if(n){var a=new n;return a._initialized=!1,a}else j.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof ge))throw new TypeError("root not a node");return t=t===void 0?Qc.SHOW_ALL:+t,r=r===void 0?null:r,new tx(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof ge))throw new TypeError("root not a node");return t=t===void 0?Qc.SHOW_ALL:+t,r=r===void 0?null:r,new rx(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===ge.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===ge.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return ge.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return ge.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return ge.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof Je?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof Je}},getElementsByName:{value:gt.prototype.getElementsByName},getElementsByTagName:{value:gt.prototype.getElementsByTagName},getElementsByTagNameNS:{value:gt.prototype.getElementsByTagNameNS},getElementsByClassName:{value:gt.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===ge.DOCUMENT_NODE&&j.NotSupportedError(),t.nodeType===ge.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&il(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:Ri},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:j.nyi,set:j.nyi},referrer:{get:j.nyi},cookie:{get:j.nyi,set:j.nyi},lastModified:{get:j.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:j.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:Jt(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:Jt(function(){return this.body},"text",""),linkColor:Jt(function(){return this.body},"link",""),vlinkColor:Jt(function(){return this.body},"vLink",""),alinkColor:Jt(function(){return this.body},"aLink",""),bgColor:Jt(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return tl(this.documentElement,"body")},set:j.nyi},head:{get:function(){return tl(this.documentElement,"head")}},images:{get:j.nyi},embeds:{get:j.nyi},plugins:{get:j.nyi},links:{get:j.nyi},forms:{get:j.nyi},scripts:{get:j.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:j.nyi},outerHTML:{get:function(){return this.serialize()},set:j.nyi},write:{value:function(e){if(this.isHTML||j.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
5
- `)}},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new Mr("readystatechange"),!0),this._dispatchEvent(new Mr("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new Mr("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new Mr("load"),!0)}},clone:{value:function(){var t=new Or(this.isHTML,this._address);return t._quirks=this._quirks,t._contentType=this._contentType,t}},cloneNode:{value:function(t){var r=ge.prototype.cloneNode.call(this,!1);if(t)for(var n=this.firstChild;n!==null;n=n.nextSibling)r._appendChild(r.importNode(n,!0));return r._updateDocTypeElement(),r}},isEqual:{value:function(t){return!0}},mutateValue:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.VALUE,target:e,data:e.data})}},mutateAttr:{value:function(e,t){this.mutationHandler&&this.mutationHandler({type:Qt.ATTR,target:e.ownerElement,attr:e})}},mutateRemoveAttr:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.REMOVE_ATTR,target:e.ownerElement,attr:e})}},mutateRemove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.REMOVE,target:e.parentNode,node:e}),al(e)}},mutateInsert:{value:function(e){nl(e),this.mutationHandler&&this.mutationHandler({type:Qt.INSERT,target:e.parentNode,node:e})}},mutateMove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.MOVE,target:e})}},addId:{value:function(t,r){var n=this.byId[t];n?(n instanceof Je||(n=new Je(n),this.byId[t]=n),n.add(r)):this.byId[t]=r}},delId:{value:function(t,r){var n=this.byId[t];j.assert(n),n instanceof Je?(n.del(r),n.length===1&&(this.byId[t]=n.downgrade())):this.byId[t]=void 0}},_resolve:{value:function(e){return new Jc(this._documentBaseURL).resolve(e)}},_documentBaseURL:{get:function(){var e=this._address;e==="about:blank"&&(e="/");var t=this.querySelector("base[href]");return t?new Jc(e).resolve(t.getAttribute("href")):e}},_templateDoc:{get:function(){if(!this._templateDocCache){var e=new Or(this.isHTML,this._address);this._templateDocCache=e._templateDocCache=e}return this._templateDocCache}},querySelector:{value:function(e){return Zc(e,this)[0]}},querySelectorAll:{value:function(e){var t=Zc(e,this);return t.item?t:new Kf(t)}}});var ox=["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"];ox.forEach(function(e){Object.defineProperty(Or.prototype,"on"+e,{get:function(){return this._getEventHandler(e)},set:function(t){this._setEventHandler(e,t)}})});function tl(e,t){if(e&&e.isHTML){for(var r=e.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===ge.ELEMENT_NODE&&r.localName===t&&r.namespaceURI===Zt.HTML)return r}return null}function cx(e){if(e._nid=e.ownerDocument._nextnid++,e.ownerDocument._nodes[e._nid]=e,e.nodeType===ge.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.addId(t,e),e._roothook&&e._roothook()}}function lx(e){if(e.nodeType===ge.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.delId(t,e)}e.ownerDocument._nodes[e._nid]=void 0,e._nid=void 0}function nl(e){if(cx(e),e.nodeType===ge.ELEMENT_NODE)for(var t=e.firstChild;t!==null;t=t.nextSibling)nl(t)}function al(e){lx(e);for(var t=e.firstChild;t!==null;t=t.nextSibling)al(t)}function il(e,t){e.ownerDocument=t,e._lastModTime=void 0,Object.prototype.hasOwnProperty.call(e,"_tagName")&&(e._tagName=void 0);for(var r=e.firstChild;r!==null;r=r.nextSibling)il(r,t)}function Je(e){this.nodes=Object.create(null),this.nodes[e._nid]=e,this.length=1,this.firstNode=void 0}Je.prototype.add=function(e){this.nodes[e._nid]||(this.nodes[e._nid]=e,this.length++,this.firstNode=void 0)};Je.prototype.del=function(e){this.nodes[e._nid]&&(delete this.nodes[e._nid],this.length--,this.firstNode=void 0)};Je.prototype.getFirst=function(){if(!this.firstNode){var e;for(e in this.nodes)(this.firstNode===void 0||this.firstNode.compareDocumentPosition(this.nodes[e])&ge.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[e])}return this.firstNode};Je.prototype.downgrade=function(){if(this.length===1){var e;for(e in this.nodes)return this.nodes[e]}return this}});var Fn=S((bm,cl)=>{"use strict";cl.exports=qn;var ux=pe(),ol=si(),dx=Tn();function qn(e,t,r,n){ol.call(this),this.nodeType=ux.DOCUMENT_TYPE_NODE,this.ownerDocument=e||null,this.name=t,this.publicId=r||"",this.systemId=n||""}qn.prototype=Object.create(ol.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:function(){return new qn(this.ownerDocument,this.name,this.publicId,this.systemId)}},isEqual:{value:function(t){return this.name===t.name&&this.publicId===t.publicId&&this.systemId===t.systemId}}});Object.defineProperties(qn.prototype,dx)});var Gn=S((ym,Rl)=>{"use strict";Rl.exports=P;var fx=On(),xx=Fn(),Li=pe(),N=ae().NAMESPACE,Tl=Ln(),Y=Tl.elements,Dt=Function.prototype.apply.bind(Array.prototype.push),Hn=-1,er=1,be=2,H=3,je=4,px=5,hx=[],mx=/^HTML$|^-\/\/W3O\/\/DTD W3 HTML Strict 3\.0\/\/EN\/\/$|^-\/W3C\/DTD HTML 4\.0 Transitional\/EN$|^\+\/\/Silmaril\/\/dtd html Pro v0r11 19970101\/\/|^-\/\/AdvaSoft Ltd\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/AS\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict\/\/|^-\/\/IETF\/\/DTD HTML 2\.0\/\/|^-\/\/IETF\/\/DTD HTML 2\.1E\/\/|^-\/\/IETF\/\/DTD HTML 3\.0\/\/|^-\/\/IETF\/\/DTD HTML 3\.2 Final\/\/|^-\/\/IETF\/\/DTD HTML 3\.2\/\/|^-\/\/IETF\/\/DTD HTML 3\/\/|^-\/\/IETF\/\/DTD HTML Level 0\/\/|^-\/\/IETF\/\/DTD HTML Level 1\/\/|^-\/\/IETF\/\/DTD HTML Level 2\/\/|^-\/\/IETF\/\/DTD HTML Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 0\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict\/\/|^-\/\/IETF\/\/DTD HTML\/\/|^-\/\/Metrius\/\/DTD Metrius Presentational\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 Tables\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 Tables\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD HTML\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD Strict HTML\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML 2\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended 1\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended Relaxed 1\.0\/\/|^-\/\/SoftQuad Software\/\/DTD HoTMetaL PRO 6\.0::19990601::extensions to HTML 4\.0\/\/|^-\/\/SoftQuad\/\/DTD HoTMetaL PRO 4\.0::19971010::extensions to HTML 4\.0\/\/|^-\/\/Spyglass\/\/DTD HTML 2\.0 Extended\/\/|^-\/\/SQ\/\/DTD HTML 2\.0 HoTMetaL \+ extensions\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava HTML\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava Strict HTML\/\/|^-\/\/W3C\/\/DTD HTML 3 1995-03-24\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Draft\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Final\/\/|^-\/\/W3C\/\/DTD HTML 3\.2\/\/|^-\/\/W3C\/\/DTD HTML 3\.2S Draft\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Transitional\/\/|^-\/\/W3C\/\/DTD HTML Experimental 19960712\/\/|^-\/\/W3C\/\/DTD HTML Experimental 970421\/\/|^-\/\/W3C\/\/DTD W3 HTML\/\/|^-\/\/W3O\/\/DTD W3 HTML 3\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML 2\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML\/\//i,gx="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ll=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,bx=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,Lt=Object.create(null);Lt[N.HTML]={__proto__:null,address:!0,applet:!0,area:!0,article:!0,aside:!0,base:!0,basefont:!0,bgsound:!0,blockquote:!0,body:!0,br:!0,button:!0,caption:!0,center:!0,col:!0,colgroup:!0,dd:!0,details:!0,dir:!0,div:!0,dl:!0,dt:!0,embed:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,frame:!0,frameset:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,head:!0,header:!0,hgroup:!0,hr:!0,html:!0,iframe:!0,img:!0,input:!0,li:!0,link:!0,listing:!0,main:!0,marquee:!0,menu:!0,meta:!0,nav:!0,noembed:!0,noframes:!0,noscript:!0,object:!0,ol:!0,p:!0,param:!0,plaintext:!0,pre:!0,script:!0,section:!0,select:!0,source:!0,style:!0,summary:!0,table:!0,tbody:!0,td:!0,template:!0,textarea:!0,tfoot:!0,th:!0,thead:!0,title:!0,tr:!0,track:!0,ul:!0,wbr:!0,xmp:!0};Lt[N.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};Lt[N.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var Oi=Object.create(null);Oi[N.HTML]={__proto__:null,address:!0,div:!0,p:!0};var wl=Object.create(null);wl[N.HTML]={__proto__:null,dd:!0,dt:!0};var tr=Object.create(null);tr[N.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var Sl=Object.create(null);Sl[N.HTML]={__proto__:null,dd:!0,dt:!0,li:!0,menuitem:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0};var Nl=Object.create(null);Nl[N.HTML]={__proto__:null,caption:!0,colgroup:!0,dd:!0,dt:!0,li:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0,tbody:!0,td:!0,tfoot:!0,th:!0,thead:!0,tr:!0};var Un=Object.create(null);Un[N.HTML]={__proto__:null,table:!0,template:!0,html:!0};var jn=Object.create(null);jn[N.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var qi=Object.create(null);qi[N.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var Al=Object.create(null);Al[N.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var Ve=Object.create(null);Ve[N.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0};Ve[N.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};Ve[N.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var Vn=Object.create(Ve);Vn[N.HTML]=Object.create(Ve[N.HTML]);Vn[N.HTML].ol=!0;Vn[N.HTML].ul=!0;var Fi=Object.create(Ve);Fi[N.HTML]=Object.create(Ve[N.HTML]);Fi[N.HTML].button=!0;var kl=Object.create(null);kl[N.HTML]={__proto__:null,html:!0,table:!0,template:!0};var yx=Object.create(null);yx[N.HTML]={__proto__:null,optgroup:!0,option:!0};var Cl=Object.create(null);Cl[N.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var Dl=Object.create(null);Dl[N.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var ul={__proto__:null,"xlink:actuate":N.XLINK,"xlink:arcrole":N.XLINK,"xlink:href":N.XLINK,"xlink:role":N.XLINK,"xlink:show":N.XLINK,"xlink:title":N.XLINK,"xlink:type":N.XLINK,"xml:base":N.XML,"xml:lang":N.XML,"xml:space":N.XML,xmlns:N.XMLNS,"xmlns:xlink":N.XMLNS},dl={__proto__:null,attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},fl={__proto__:null,altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},xl={__proto__:null,0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},_x={__proto__:null,AElig:198,"AElig;":198,AMP:38,"AMP;":38,Aacute:193,"Aacute;":193,"Abreve;":258,Acirc:194,"Acirc;":194,"Acy;":1040,"Afr;":[55349,56580],Agrave:192,"Agrave;":192,"Alpha;":913,"Amacr;":256,"And;":10835,"Aogon;":260,"Aopf;":[55349,56632],"ApplyFunction;":8289,Aring:197,"Aring;":197,"Ascr;":[55349,56476],"Assign;":8788,Atilde:195,"Atilde;":195,Auml:196,"Auml;":196,"Backslash;":8726,"Barv;":10983,"Barwed;":8966,"Bcy;":1041,"Because;":8757,"Bernoullis;":8492,"Beta;":914,"Bfr;":[55349,56581],"Bopf;":[55349,56633],"Breve;":728,"Bscr;":8492,"Bumpeq;":8782,"CHcy;":1063,COPY:169,"COPY;":169,"Cacute;":262,"Cap;":8914,"CapitalDifferentialD;":8517,"Cayleys;":8493,"Ccaron;":268,Ccedil:199,"Ccedil;":199,"Ccirc;":264,"Cconint;":8752,"Cdot;":266,"Cedilla;":184,"CenterDot;":183,"Cfr;":8493,"Chi;":935,"CircleDot;":8857,"CircleMinus;":8854,"CirclePlus;":8853,"CircleTimes;":8855,"ClockwiseContourIntegral;":8754,"CloseCurlyDoubleQuote;":8221,"CloseCurlyQuote;":8217,"Colon;":8759,"Colone;":10868,"Congruent;":8801,"Conint;":8751,"ContourIntegral;":8750,"Copf;":8450,"Coproduct;":8720,"CounterClockwiseContourIntegral;":8755,"Cross;":10799,"Cscr;":[55349,56478],"Cup;":8915,"CupCap;":8781,"DD;":8517,"DDotrahd;":10513,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Dagger;":8225,"Darr;":8609,"Dashv;":10980,"Dcaron;":270,"Dcy;":1044,"Del;":8711,"Delta;":916,"Dfr;":[55349,56583],"DiacriticalAcute;":180,"DiacriticalDot;":729,"DiacriticalDoubleAcute;":733,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"Diamond;":8900,"DifferentialD;":8518,"Dopf;":[55349,56635],"Dot;":168,"DotDot;":8412,"DotEqual;":8784,"DoubleContourIntegral;":8751,"DoubleDot;":168,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DoubleLeftRightArrow;":8660,"DoubleLeftTee;":10980,"DoubleLongLeftArrow;":10232,"DoubleLongLeftRightArrow;":10234,"DoubleLongRightArrow;":10233,"DoubleRightArrow;":8658,"DoubleRightTee;":8872,"DoubleUpArrow;":8657,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownArrow;":8595,"DownArrowBar;":10515,"DownArrowUpArrow;":8693,"DownBreve;":785,"DownLeftRightVector;":10576,"DownLeftTeeVector;":10590,"DownLeftVector;":8637,"DownLeftVectorBar;":10582,"DownRightTeeVector;":10591,"DownRightVector;":8641,"DownRightVectorBar;":10583,"DownTee;":8868,"DownTeeArrow;":8615,"Downarrow;":8659,"Dscr;":[55349,56479],"Dstrok;":272,"ENG;":330,ETH:208,"ETH;":208,Eacute:201,"Eacute;":201,"Ecaron;":282,Ecirc:202,"Ecirc;":202,"Ecy;":1069,"Edot;":278,"Efr;":[55349,56584],Egrave:200,"Egrave;":200,"Element;":8712,"Emacr;":274,"EmptySmallSquare;":9723,"EmptyVerySmallSquare;":9643,"Eogon;":280,"Eopf;":[55349,56636],"Epsilon;":917,"Equal;":10869,"EqualTilde;":8770,"Equilibrium;":8652,"Escr;":8496,"Esim;":10867,"Eta;":919,Euml:203,"Euml;":203,"Exists;":8707,"ExponentialE;":8519,"Fcy;":1060,"Ffr;":[55349,56585],"FilledSmallSquare;":9724,"FilledVerySmallSquare;":9642,"Fopf;":[55349,56637],"ForAll;":8704,"Fouriertrf;":8497,"Fscr;":8497,"GJcy;":1027,GT:62,"GT;":62,"Gamma;":915,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"Gcirc;":284,"Gcy;":1043,"Gdot;":288,"Gfr;":[55349,56586],"Gg;":8921,"Gopf;":[55349,56638],"GreaterEqual;":8805,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"GreaterGreater;":10914,"GreaterLess;":8823,"GreaterSlantEqual;":10878,"GreaterTilde;":8819,"Gscr;":[55349,56482],"Gt;":8811,"HARDcy;":1066,"Hacek;":711,"Hat;":94,"Hcirc;":292,"Hfr;":8460,"HilbertSpace;":8459,"Hopf;":8461,"HorizontalLine;":9472,"Hscr;":8459,"Hstrok;":294,"HumpDownHump;":8782,"HumpEqual;":8783,"IEcy;":1045,"IJlig;":306,"IOcy;":1025,Iacute:205,"Iacute;":205,Icirc:206,"Icirc;":206,"Icy;":1048,"Idot;":304,"Ifr;":8465,Igrave:204,"Igrave;":204,"Im;":8465,"Imacr;":298,"ImaginaryI;":8520,"Implies;":8658,"Int;":8748,"Integral;":8747,"Intersection;":8898,"InvisibleComma;":8291,"InvisibleTimes;":8290,"Iogon;":302,"Iopf;":[55349,56640],"Iota;":921,"Iscr;":8464,"Itilde;":296,"Iukcy;":1030,Iuml:207,"Iuml;":207,"Jcirc;":308,"Jcy;":1049,"Jfr;":[55349,56589],"Jopf;":[55349,56641],"Jscr;":[55349,56485],"Jsercy;":1032,"Jukcy;":1028,"KHcy;":1061,"KJcy;":1036,"Kappa;":922,"Kcedil;":310,"Kcy;":1050,"Kfr;":[55349,56590],"Kopf;":[55349,56642],"Kscr;":[55349,56486],"LJcy;":1033,LT:60,"LT;":60,"Lacute;":313,"Lambda;":923,"Lang;":10218,"Laplacetrf;":8466,"Larr;":8606,"Lcaron;":317,"Lcedil;":315,"Lcy;":1051,"LeftAngleBracket;":10216,"LeftArrow;":8592,"LeftArrowBar;":8676,"LeftArrowRightArrow;":8646,"LeftCeiling;":8968,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVector;":8643,"LeftDownVectorBar;":10585,"LeftFloor;":8970,"LeftRightArrow;":8596,"LeftRightVector;":10574,"LeftTee;":8867,"LeftTeeArrow;":8612,"LeftTeeVector;":10586,"LeftTriangle;":8882,"LeftTriangleBar;":10703,"LeftTriangleEqual;":8884,"LeftUpDownVector;":10577,"LeftUpTeeVector;":10592,"LeftUpVector;":8639,"LeftUpVectorBar;":10584,"LeftVector;":8636,"LeftVectorBar;":10578,"Leftarrow;":8656,"Leftrightarrow;":8660,"LessEqualGreater;":8922,"LessFullEqual;":8806,"LessGreater;":8822,"LessLess;":10913,"LessSlantEqual;":10877,"LessTilde;":8818,"Lfr;":[55349,56591],"Ll;":8920,"Lleftarrow;":8666,"Lmidot;":319,"LongLeftArrow;":10229,"LongLeftRightArrow;":10231,"LongRightArrow;":10230,"Longleftarrow;":10232,"Longleftrightarrow;":10234,"Longrightarrow;":10233,"Lopf;":[55349,56643],"LowerLeftArrow;":8601,"LowerRightArrow;":8600,"Lscr;":8466,"Lsh;":8624,"Lstrok;":321,"Lt;":8810,"Map;":10501,"Mcy;":1052,"MediumSpace;":8287,"Mellintrf;":8499,"Mfr;":[55349,56592],"MinusPlus;":8723,"Mopf;":[55349,56644],"Mscr;":8499,"Mu;":924,"NJcy;":1034,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ncy;":1053,"NegativeMediumSpace;":8203,"NegativeThickSpace;":8203,"NegativeThinSpace;":8203,"NegativeVeryThinSpace;":8203,"NestedGreaterGreater;":8811,"NestedLessLess;":8810,"NewLine;":10,"Nfr;":[55349,56593],"NoBreak;":8288,"NonBreakingSpace;":160,"Nopf;":8469,"Not;":10988,"NotCongruent;":8802,"NotCupCap;":8813,"NotDoubleVerticalBar;":8742,"NotElement;":8713,"NotEqual;":8800,"NotEqualTilde;":[8770,824],"NotExists;":8708,"NotGreater;":8815,"NotGreaterEqual;":8817,"NotGreaterFullEqual;":[8807,824],"NotGreaterGreater;":[8811,824],"NotGreaterLess;":8825,"NotGreaterSlantEqual;":[10878,824],"NotGreaterTilde;":8821,"NotHumpDownHump;":[8782,824],"NotHumpEqual;":[8783,824],"NotLeftTriangle;":8938,"NotLeftTriangleBar;":[10703,824],"NotLeftTriangleEqual;":8940,"NotLess;":8814,"NotLessEqual;":8816,"NotLessGreater;":8824,"NotLessLess;":[8810,824],"NotLessSlantEqual;":[10877,824],"NotLessTilde;":8820,"NotNestedGreaterGreater;":[10914,824],"NotNestedLessLess;":[10913,824],"NotPrecedes;":8832,"NotPrecedesEqual;":[10927,824],"NotPrecedesSlantEqual;":8928,"NotReverseElement;":8716,"NotRightTriangle;":8939,"NotRightTriangleBar;":[10704,824],"NotRightTriangleEqual;":8941,"NotSquareSubset;":[8847,824],"NotSquareSubsetEqual;":8930,"NotSquareSuperset;":[8848,824],"NotSquareSupersetEqual;":8931,"NotSubset;":[8834,8402],"NotSubsetEqual;":8840,"NotSucceeds;":8833,"NotSucceedsEqual;":[10928,824],"NotSucceedsSlantEqual;":8929,"NotSucceedsTilde;":[8831,824],"NotSuperset;":[8835,8402],"NotSupersetEqual;":8841,"NotTilde;":8769,"NotTildeEqual;":8772,"NotTildeFullEqual;":8775,"NotTildeTilde;":8777,"NotVerticalBar;":8740,"Nscr;":[55349,56489],Ntilde:209,"Ntilde;":209,"Nu;":925,"OElig;":338,Oacute:211,"Oacute;":211,Ocirc:212,"Ocirc;":212,"Ocy;":1054,"Odblac;":336,"Ofr;":[55349,56594],Ograve:210,"Ograve;":210,"Omacr;":332,"Omega;":937,"Omicron;":927,"Oopf;":[55349,56646],"OpenCurlyDoubleQuote;":8220,"OpenCurlyQuote;":8216,"Or;":10836,"Oscr;":[55349,56490],Oslash:216,"Oslash;":216,Otilde:213,"Otilde;":213,"Otimes;":10807,Ouml:214,"Ouml;":214,"OverBar;":8254,"OverBrace;":9182,"OverBracket;":9140,"OverParenthesis;":9180,"PartialD;":8706,"Pcy;":1055,"Pfr;":[55349,56595],"Phi;":934,"Pi;":928,"PlusMinus;":177,"Poincareplane;":8460,"Popf;":8473,"Pr;":10939,"Precedes;":8826,"PrecedesEqual;":10927,"PrecedesSlantEqual;":8828,"PrecedesTilde;":8830,"Prime;":8243,"Product;":8719,"Proportion;":8759,"Proportional;":8733,"Pscr;":[55349,56491],"Psi;":936,QUOT:34,"QUOT;":34,"Qfr;":[55349,56596],"Qopf;":8474,"Qscr;":[55349,56492],"RBarr;":10512,REG:174,"REG;":174,"Racute;":340,"Rang;":10219,"Rarr;":8608,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"Rcy;":1056,"Re;":8476,"ReverseElement;":8715,"ReverseEquilibrium;":8651,"ReverseUpEquilibrium;":10607,"Rfr;":8476,"Rho;":929,"RightAngleBracket;":10217,"RightArrow;":8594,"RightArrowBar;":8677,"RightArrowLeftArrow;":8644,"RightCeiling;":8969,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVector;":8642,"RightDownVectorBar;":10581,"RightFloor;":8971,"RightTee;":8866,"RightTeeArrow;":8614,"RightTeeVector;":10587,"RightTriangle;":8883,"RightTriangleBar;":10704,"RightTriangleEqual;":8885,"RightUpDownVector;":10575,"RightUpTeeVector;":10588,"RightUpVector;":8638,"RightUpVectorBar;":10580,"RightVector;":8640,"RightVectorBar;":10579,"Rightarrow;":8658,"Ropf;":8477,"RoundImplies;":10608,"Rrightarrow;":8667,"Rscr;":8475,"Rsh;":8625,"RuleDelayed;":10740,"SHCHcy;":1065,"SHcy;":1064,"SOFTcy;":1068,"Sacute;":346,"Sc;":10940,"Scaron;":352,"Scedil;":350,"Scirc;":348,"Scy;":1057,"Sfr;":[55349,56598],"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"ShortRightArrow;":8594,"ShortUpArrow;":8593,"Sigma;":931,"SmallCircle;":8728,"Sopf;":[55349,56650],"Sqrt;":8730,"Square;":9633,"SquareIntersection;":8851,"SquareSubset;":8847,"SquareSubsetEqual;":8849,"SquareSuperset;":8848,"SquareSupersetEqual;":8850,"SquareUnion;":8852,"Sscr;":[55349,56494],"Star;":8902,"Sub;":8912,"Subset;":8912,"SubsetEqual;":8838,"Succeeds;":8827,"SucceedsEqual;":10928,"SucceedsSlantEqual;":8829,"SucceedsTilde;":8831,"SuchThat;":8715,"Sum;":8721,"Sup;":8913,"Superset;":8835,"SupersetEqual;":8839,"Supset;":8913,THORN:222,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"TScy;":1062,"Tab;":9,"Tau;":932,"Tcaron;":356,"Tcedil;":354,"Tcy;":1058,"Tfr;":[55349,56599],"Therefore;":8756,"Theta;":920,"ThickSpace;":[8287,8202],"ThinSpace;":8201,"Tilde;":8764,"TildeEqual;":8771,"TildeFullEqual;":8773,"TildeTilde;":8776,"Topf;":[55349,56651],"TripleDot;":8411,"Tscr;":[55349,56495],"Tstrok;":358,Uacute:218,"Uacute;":218,"Uarr;":8607,"Uarrocir;":10569,"Ubrcy;":1038,"Ubreve;":364,Ucirc:219,"Ucirc;":219,"Ucy;":1059,"Udblac;":368,"Ufr;":[55349,56600],Ugrave:217,"Ugrave;":217,"Umacr;":362,"UnderBar;":95,"UnderBrace;":9183,"UnderBracket;":9141,"UnderParenthesis;":9181,"Union;":8899,"UnionPlus;":8846,"Uogon;":370,"Uopf;":[55349,56652],"UpArrow;":8593,"UpArrowBar;":10514,"UpArrowDownArrow;":8645,"UpDownArrow;":8597,"UpEquilibrium;":10606,"UpTee;":8869,"UpTeeArrow;":8613,"Uparrow;":8657,"Updownarrow;":8661,"UpperLeftArrow;":8598,"UpperRightArrow;":8599,"Upsi;":978,"Upsilon;":933,"Uring;":366,"Uscr;":[55349,56496],"Utilde;":360,Uuml:220,"Uuml;":220,"VDash;":8875,"Vbar;":10987,"Vcy;":1042,"Vdash;":8873,"Vdashl;":10982,"Vee;":8897,"Verbar;":8214,"Vert;":8214,"VerticalBar;":8739,"VerticalLine;":124,"VerticalSeparator;":10072,"VerticalTilde;":8768,"VeryThinSpace;":8202,"Vfr;":[55349,56601],"Vopf;":[55349,56653],"Vscr;":[55349,56497],"Vvdash;":8874,"Wcirc;":372,"Wedge;":8896,"Wfr;":[55349,56602],"Wopf;":[55349,56654],"Wscr;":[55349,56498],"Xfr;":[55349,56603],"Xi;":926,"Xopf;":[55349,56655],"Xscr;":[55349,56499],"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,Yacute:221,"Yacute;":221,"Ycirc;":374,"Ycy;":1067,"Yfr;":[55349,56604],"Yopf;":[55349,56656],"Yscr;":[55349,56500],"Yuml;":376,"ZHcy;":1046,"Zacute;":377,"Zcaron;":381,"Zcy;":1047,"Zdot;":379,"ZeroWidthSpace;":8203,"Zeta;":918,"Zfr;":8488,"Zopf;":8484,"Zscr;":[55349,56501],aacute:225,"aacute;":225,"abreve;":259,"ac;":8766,"acE;":[8766,819],"acd;":8767,acirc:226,"acirc;":226,acute:180,"acute;":180,"acy;":1072,aelig:230,"aelig;":230,"af;":8289,"afr;":[55349,56606],agrave:224,"agrave;":224,"alefsym;":8501,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,amp:38,"amp;":38,"and;":8743,"andand;":10837,"andd;":10844,"andslope;":10840,"andv;":10842,"ang;":8736,"ange;":10660,"angle;":8736,"angmsd;":8737,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrt;":8735,"angrtvb;":8894,"angrtvbd;":10653,"angsph;":8738,"angst;":197,"angzarr;":9084,"aogon;":261,"aopf;":[55349,56658],"ap;":8776,"apE;":10864,"apacir;":10863,"ape;":8778,"apid;":8779,"apos;":39,"approx;":8776,"approxeq;":8778,aring:229,"aring;":229,"ascr;":[55349,56502],"ast;":42,"asymp;":8776,"asympeq;":8781,atilde:227,"atilde;":227,auml:228,"auml;":228,"awconint;":8755,"awint;":10769,"bNot;":10989,"backcong;":8780,"backepsilon;":1014,"backprime;":8245,"backsim;":8765,"backsimeq;":8909,"barvee;":8893,"barwed;":8965,"barwedge;":8965,"bbrk;":9141,"bbrktbrk;":9142,"bcong;":8780,"bcy;":1073,"bdquo;":8222,"becaus;":8757,"because;":8757,"bemptyv;":10672,"bepsi;":1014,"bernou;":8492,"beta;":946,"beth;":8502,"between;":8812,"bfr;":[55349,56607],"bigcap;":8898,"bigcirc;":9711,"bigcup;":8899,"bigodot;":10752,"bigoplus;":10753,"bigotimes;":10754,"bigsqcup;":10758,"bigstar;":9733,"bigtriangledown;":9661,"bigtriangleup;":9651,"biguplus;":10756,"bigvee;":8897,"bigwedge;":8896,"bkarow;":10509,"blacklozenge;":10731,"blacksquare;":9642,"blacktriangle;":9652,"blacktriangledown;":9662,"blacktriangleleft;":9666,"blacktriangleright;":9656,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"bne;":[61,8421],"bnequiv;":[8801,8421],"bnot;":8976,"bopf;":[55349,56659],"bot;":8869,"bottom;":8869,"bowtie;":8904,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxH;":9552,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxV;":9553,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxbox;":10697,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxh;":9472,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxminus;":8863,"boxplus;":8862,"boxtimes;":8864,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxv;":9474,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"bprime;":8245,"breve;":728,brvbar:166,"brvbar;":166,"bscr;":[55349,56503],"bsemi;":8271,"bsim;":8765,"bsime;":8909,"bsol;":92,"bsolb;":10693,"bsolhsub;":10184,"bull;":8226,"bullet;":8226,"bump;":8782,"bumpE;":10926,"bumpe;":8783,"bumpeq;":8783,"cacute;":263,"cap;":8745,"capand;":10820,"capbrcup;":10825,"capcap;":10827,"capcup;":10823,"capdot;":10816,"caps;":[8745,65024],"caret;":8257,"caron;":711,"ccaps;":10829,"ccaron;":269,ccedil:231,"ccedil;":231,"ccirc;":265,"ccups;":10828,"ccupssm;":10832,"cdot;":267,cedil:184,"cedil;":184,"cemptyv;":10674,cent:162,"cent;":162,"centerdot;":183,"cfr;":[55349,56608],"chcy;":1095,"check;":10003,"checkmark;":10003,"chi;":967,"cir;":9675,"cirE;":10691,"circ;":710,"circeq;":8791,"circlearrowleft;":8634,"circlearrowright;":8635,"circledR;":174,"circledS;":9416,"circledast;":8859,"circledcirc;":8858,"circleddash;":8861,"cire;":8791,"cirfnint;":10768,"cirmid;":10991,"cirscir;":10690,"clubs;":9827,"clubsuit;":9827,"colon;":58,"colone;":8788,"coloneq;":8788,"comma;":44,"commat;":64,"comp;":8705,"compfn;":8728,"complement;":8705,"complexes;":8450,"cong;":8773,"congdot;":10861,"conint;":8750,"copf;":[55349,56660],"coprod;":8720,copy:169,"copy;":169,"copysr;":8471,"crarr;":8629,"cross;":10007,"cscr;":[55349,56504],"csub;":10959,"csube;":10961,"csup;":10960,"csupe;":10962,"ctdot;":8943,"cudarrl;":10552,"cudarrr;":10549,"cuepr;":8926,"cuesc;":8927,"cularr;":8630,"cularrp;":10557,"cup;":8746,"cupbrcap;":10824,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"cupor;":10821,"cups;":[8746,65024],"curarr;":8631,"curarrm;":10556,"curlyeqprec;":8926,"curlyeqsucc;":8927,"curlyvee;":8910,"curlywedge;":8911,curren:164,"curren;":164,"curvearrowleft;":8630,"curvearrowright;":8631,"cuvee;":8910,"cuwed;":8911,"cwconint;":8754,"cwint;":8753,"cylcty;":9005,"dArr;":8659,"dHar;":10597,"dagger;":8224,"daleth;":8504,"darr;":8595,"dash;":8208,"dashv;":8867,"dbkarow;":10511,"dblac;":733,"dcaron;":271,"dcy;":1076,"dd;":8518,"ddagger;":8225,"ddarr;":8650,"ddotseq;":10871,deg:176,"deg;":176,"delta;":948,"demptyv;":10673,"dfisht;":10623,"dfr;":[55349,56609],"dharl;":8643,"dharr;":8642,"diam;":8900,"diamond;":8900,"diamondsuit;":9830,"diams;":9830,"die;":168,"digamma;":989,"disin;":8946,"div;":247,divide:247,"divide;":247,"divideontimes;":8903,"divonx;":8903,"djcy;":1106,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"dopf;":[55349,56661],"dot;":729,"doteq;":8784,"doteqdot;":8785,"dotminus;":8760,"dotplus;":8724,"dotsquare;":8865,"doublebarwedge;":8966,"downarrow;":8595,"downdownarrows;":8650,"downharpoonleft;":8643,"downharpoonright;":8642,"drbkarow;":10512,"drcorn;":8991,"drcrop;":8972,"dscr;":[55349,56505],"dscy;":1109,"dsol;":10742,"dstrok;":273,"dtdot;":8945,"dtri;":9663,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"dwangle;":10662,"dzcy;":1119,"dzigrarr;":10239,"eDDot;":10871,"eDot;":8785,eacute:233,"eacute;":233,"easter;":10862,"ecaron;":283,"ecir;":8790,ecirc:234,"ecirc;":234,"ecolon;":8789,"ecy;":1101,"edot;":279,"ee;":8519,"efDot;":8786,"efr;":[55349,56610],"eg;":10906,egrave:232,"egrave;":232,"egs;":10902,"egsdot;":10904,"el;":10905,"elinters;":9191,"ell;":8467,"els;":10901,"elsdot;":10903,"emacr;":275,"empty;":8709,"emptyset;":8709,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"emsp;":8195,"eng;":331,"ensp;":8194,"eogon;":281,"eopf;":[55349,56662],"epar;":8917,"eparsl;":10723,"eplus;":10865,"epsi;":949,"epsilon;":949,"epsiv;":1013,"eqcirc;":8790,"eqcolon;":8789,"eqsim;":8770,"eqslantgtr;":10902,"eqslantless;":10901,"equals;":61,"equest;":8799,"equiv;":8801,"equivDD;":10872,"eqvparsl;":10725,"erDot;":8787,"erarr;":10609,"escr;":8495,"esdot;":8784,"esim;":8770,"eta;":951,eth:240,"eth;":240,euml:235,"euml;":235,"euro;":8364,"excl;":33,"exist;":8707,"expectation;":8496,"exponentiale;":8519,"fallingdotseq;":8786,"fcy;":1092,"female;":9792,"ffilig;":64259,"fflig;":64256,"ffllig;":64260,"ffr;":[55349,56611],"filig;":64257,"fjlig;":[102,106],"flat;":9837,"fllig;":64258,"fltns;":9649,"fnof;":402,"fopf;":[55349,56663],"forall;":8704,"fork;":8916,"forkv;":10969,"fpartint;":10765,frac12:189,"frac12;":189,"frac13;":8531,frac14:188,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,frac34:190,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"frasl;":8260,"frown;":8994,"fscr;":[55349,56507],"gE;":8807,"gEl;":10892,"gacute;":501,"gamma;":947,"gammad;":989,"gap;":10886,"gbreve;":287,"gcirc;":285,"gcy;":1075,"gdot;":289,"ge;":8805,"gel;":8923,"geq;":8805,"geqq;":8807,"geqslant;":10878,"ges;":10878,"gescc;":10921,"gesdot;":10880,"gesdoto;":10882,"gesdotol;":10884,"gesl;":[8923,65024],"gesles;":10900,"gfr;":[55349,56612],"gg;":8811,"ggg;":8921,"gimel;":8503,"gjcy;":1107,"gl;":8823,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gnap;":10890,"gnapprox;":10890,"gne;":10888,"gneq;":10888,"gneqq;":8809,"gnsim;":8935,"gopf;":[55349,56664],"grave;":96,"gscr;":8458,"gsim;":8819,"gsime;":10894,"gsiml;":10896,gt:62,"gt;":62,"gtcc;":10919,"gtcir;":10874,"gtdot;":8919,"gtlPar;":10645,"gtquest;":10876,"gtrapprox;":10886,"gtrarr;":10616,"gtrdot;":8919,"gtreqless;":8923,"gtreqqless;":10892,"gtrless;":8823,"gtrsim;":8819,"gvertneqq;":[8809,65024],"gvnE;":[8809,65024],"hArr;":8660,"hairsp;":8202,"half;":189,"hamilt;":8459,"hardcy;":1098,"harr;":8596,"harrcir;":10568,"harrw;":8621,"hbar;":8463,"hcirc;":293,"hearts;":9829,"heartsuit;":9829,"hellip;":8230,"hercon;":8889,"hfr;":[55349,56613],"hksearow;":10533,"hkswarow;":10534,"hoarr;":8703,"homtht;":8763,"hookleftarrow;":8617,"hookrightarrow;":8618,"hopf;":[55349,56665],"horbar;":8213,"hscr;":[55349,56509],"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,iacute:237,"iacute;":237,"ic;":8291,icirc:238,"icirc;":238,"icy;":1080,"iecy;":1077,iexcl:161,"iexcl;":161,"iff;":8660,"ifr;":[55349,56614],igrave:236,"igrave;":236,"ii;":8520,"iiiint;":10764,"iiint;":8749,"iinfin;":10716,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imagline;":8464,"imagpart;":8465,"imath;":305,"imof;":8887,"imped;":437,"in;":8712,"incare;":8453,"infin;":8734,"infintie;":10717,"inodot;":305,"int;":8747,"intcal;":8890,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"intprod;":10812,"iocy;":1105,"iogon;":303,"iopf;":[55349,56666],"iota;":953,"iprod;":10812,iquest:191,"iquest;":191,"iscr;":[55349,56510],"isin;":8712,"isinE;":8953,"isindot;":8949,"isins;":8948,"isinsv;":8947,"isinv;":8712,"it;":8290,"itilde;":297,"iukcy;":1110,iuml:239,"iuml;":239,"jcirc;":309,"jcy;":1081,"jfr;":[55349,56615],"jmath;":567,"jopf;":[55349,56667],"jscr;":[55349,56511],"jsercy;":1112,"jukcy;":1108,"kappa;":954,"kappav;":1008,"kcedil;":311,"kcy;":1082,"kfr;":[55349,56616],"kgreen;":312,"khcy;":1093,"kjcy;":1116,"kopf;":[55349,56668],"kscr;":[55349,56512],"lAarr;":8666,"lArr;":8656,"lAtail;":10523,"lBarr;":10510,"lE;":8806,"lEg;":10891,"lHar;":10594,"lacute;":314,"laemptyv;":10676,"lagran;":8466,"lambda;":955,"lang;":10216,"langd;":10641,"langle;":10216,"lap;":10885,laquo:171,"laquo;":171,"larr;":8592,"larrb;":8676,"larrbfs;":10527,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrsim;":10611,"larrtl;":8610,"lat;":10923,"latail;":10521,"late;":10925,"lates;":[10925,65024],"lbarr;":10508,"lbbrk;":10098,"lbrace;":123,"lbrack;":91,"lbrke;":10635,"lbrksld;":10639,"lbrkslu;":10637,"lcaron;":318,"lcedil;":316,"lceil;":8968,"lcub;":123,"lcy;":1083,"ldca;":10550,"ldquo;":8220,"ldquor;":8222,"ldrdhar;":10599,"ldrushar;":10571,"ldsh;":8626,"le;":8804,"leftarrow;":8592,"leftarrowtail;":8610,"leftharpoondown;":8637,"leftharpoonup;":8636,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftrightarrows;":8646,"leftrightharpoons;":8651,"leftrightsquigarrow;":8621,"leftthreetimes;":8907,"leg;":8922,"leq;":8804,"leqq;":8806,"leqslant;":10877,"les;":10877,"lescc;":10920,"lesdot;":10879,"lesdoto;":10881,"lesdotor;":10883,"lesg;":[8922,65024],"lesges;":10899,"lessapprox;":10885,"lessdot;":8918,"lesseqgtr;":8922,"lesseqqgtr;":10891,"lessgtr;":8822,"lesssim;":8818,"lfisht;":10620,"lfloor;":8970,"lfr;":[55349,56617],"lg;":8822,"lgE;":10897,"lhard;":8637,"lharu;":8636,"lharul;":10602,"lhblk;":9604,"ljcy;":1113,"ll;":8810,"llarr;":8647,"llcorner;":8990,"llhard;":10603,"lltri;":9722,"lmidot;":320,"lmoust;":9136,"lmoustache;":9136,"lnE;":8808,"lnap;":10889,"lnapprox;":10889,"lne;":10887,"lneq;":10887,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"longleftarrow;":10229,"longleftrightarrow;":10231,"longmapsto;":10236,"longrightarrow;":10230,"looparrowleft;":8619,"looparrowright;":8620,"lopar;":10629,"lopf;":[55349,56669],"loplus;":10797,"lotimes;":10804,"lowast;":8727,"lowbar;":95,"loz;":9674,"lozenge;":9674,"lozf;":10731,"lpar;":40,"lparlt;":10643,"lrarr;":8646,"lrcorner;":8991,"lrhar;":8651,"lrhard;":10605,"lrm;":8206,"lrtri;":8895,"lsaquo;":8249,"lscr;":[55349,56513],"lsh;":8624,"lsim;":8818,"lsime;":10893,"lsimg;":10895,"lsqb;":91,"lsquo;":8216,"lsquor;":8218,"lstrok;":322,lt:60,"lt;":60,"ltcc;":10918,"ltcir;":10873,"ltdot;":8918,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltquest;":10875,"ltrPar;":10646,"ltri;":9667,"ltrie;":8884,"ltrif;":9666,"lurdshar;":10570,"luruhar;":10598,"lvertneqq;":[8808,65024],"lvnE;":[8808,65024],"mDDot;":8762,macr:175,"macr;":175,"male;":9794,"malt;":10016,"maltese;":10016,"map;":8614,"mapsto;":8614,"mapstodown;":8615,"mapstoleft;":8612,"mapstoup;":8613,"marker;":9646,"mcomma;":10793,"mcy;":1084,"mdash;":8212,"measuredangle;":8737,"mfr;":[55349,56618],"mho;":8487,micro:181,"micro;":181,"mid;":8739,"midast;":42,"midcir;":10992,middot:183,"middot;":183,"minus;":8722,"minusb;":8863,"minusd;":8760,"minusdu;":10794,"mlcp;":10971,"mldr;":8230,"mnplus;":8723,"models;":8871,"mopf;":[55349,56670],"mp;":8723,"mscr;":[55349,56514],"mstpos;":8766,"mu;":956,"multimap;":8888,"mumap;":8888,"nGg;":[8921,824],"nGt;":[8811,8402],"nGtv;":[8811,824],"nLeftarrow;":8653,"nLeftrightarrow;":8654,"nLl;":[8920,824],"nLt;":[8810,8402],"nLtv;":[8810,824],"nRightarrow;":8655,"nVDash;":8879,"nVdash;":8878,"nabla;":8711,"nacute;":324,"nang;":[8736,8402],"nap;":8777,"napE;":[10864,824],"napid;":[8779,824],"napos;":329,"napprox;":8777,"natur;":9838,"natural;":9838,"naturals;":8469,nbsp:160,"nbsp;":160,"nbump;":[8782,824],"nbumpe;":[8783,824],"ncap;":10819,"ncaron;":328,"ncedil;":326,"ncong;":8775,"ncongdot;":[10861,824],"ncup;":10818,"ncy;":1085,"ndash;":8211,"ne;":8800,"neArr;":8663,"nearhk;":10532,"nearr;":8599,"nearrow;":8599,"nedot;":[8784,824],"nequiv;":8802,"nesear;":10536,"nesim;":[8770,824],"nexist;":8708,"nexists;":8708,"nfr;":[55349,56619],"ngE;":[8807,824],"nge;":8817,"ngeq;":8817,"ngeqq;":[8807,824],"ngeqslant;":[10878,824],"nges;":[10878,824],"ngsim;":8821,"ngt;":8815,"ngtr;":8815,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"ni;":8715,"nis;":8956,"nisd;":8954,"niv;":8715,"njcy;":1114,"nlArr;":8653,"nlE;":[8806,824],"nlarr;":8602,"nldr;":8229,"nle;":8816,"nleftarrow;":8602,"nleftrightarrow;":8622,"nleq;":8816,"nleqq;":[8806,824],"nleqslant;":[10877,824],"nles;":[10877,824],"nless;":8814,"nlsim;":8820,"nlt;":8814,"nltri;":8938,"nltrie;":8940,"nmid;":8740,"nopf;":[55349,56671],not:172,"not;":172,"notin;":8713,"notinE;":[8953,824],"notindot;":[8949,824],"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notni;":8716,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npar;":8742,"nparallel;":8742,"nparsl;":[11005,8421],"npart;":[8706,824],"npolint;":10772,"npr;":8832,"nprcue;":8928,"npre;":[10927,824],"nprec;":8832,"npreceq;":[10927,824],"nrArr;":8655,"nrarr;":8603,"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrightarrow;":8603,"nrtri;":8939,"nrtrie;":8941,"nsc;":8833,"nsccue;":8929,"nsce;":[10928,824],"nscr;":[55349,56515],"nshortmid;":8740,"nshortparallel;":8742,"nsim;":8769,"nsime;":8772,"nsimeq;":8772,"nsmid;":8740,"nspar;":8742,"nsqsube;":8930,"nsqsupe;":8931,"nsub;":8836,"nsubE;":[10949,824],"nsube;":8840,"nsubset;":[8834,8402],"nsubseteq;":8840,"nsubseteqq;":[10949,824],"nsucc;":8833,"nsucceq;":[10928,824],"nsup;":8837,"nsupE;":[10950,824],"nsupe;":8841,"nsupset;":[8835,8402],"nsupseteq;":8841,"nsupseteqq;":[10950,824],"ntgl;":8825,ntilde:241,"ntilde;":241,"ntlg;":8824,"ntriangleleft;":8938,"ntrianglelefteq;":8940,"ntriangleright;":8939,"ntrianglerighteq;":8941,"nu;":957,"num;":35,"numero;":8470,"numsp;":8199,"nvDash;":8877,"nvHarr;":10500,"nvap;":[8781,8402],"nvdash;":8876,"nvge;":[8805,8402],"nvgt;":[62,8402],"nvinfin;":10718,"nvlArr;":10498,"nvle;":[8804,8402],"nvlt;":[60,8402],"nvltrie;":[8884,8402],"nvrArr;":10499,"nvrtrie;":[8885,8402],"nvsim;":[8764,8402],"nwArr;":8662,"nwarhk;":10531,"nwarr;":8598,"nwarrow;":8598,"nwnear;":10535,"oS;":9416,oacute:243,"oacute;":243,"oast;":8859,"ocir;":8858,ocirc:244,"ocirc;":244,"ocy;":1086,"odash;":8861,"odblac;":337,"odiv;":10808,"odot;":8857,"odsold;":10684,"oelig;":339,"ofcir;":10687,"ofr;":[55349,56620],"ogon;":731,ograve:242,"ograve;":242,"ogt;":10689,"ohbar;":10677,"ohm;":937,"oint;":8750,"olarr;":8634,"olcir;":10686,"olcross;":10683,"oline;":8254,"olt;":10688,"omacr;":333,"omega;":969,"omicron;":959,"omid;":10678,"ominus;":8854,"oopf;":[55349,56672],"opar;":10679,"operp;":10681,"oplus;":8853,"or;":8744,"orarr;":8635,"ord;":10845,"order;":8500,"orderof;":8500,ordf:170,"ordf;":170,ordm:186,"ordm;":186,"origof;":8886,"oror;":10838,"orslope;":10839,"orv;":10843,"oscr;":8500,oslash:248,"oslash;":248,"osol;":8856,otilde:245,"otilde;":245,"otimes;":8855,"otimesas;":10806,ouml:246,"ouml;":246,"ovbar;":9021,"par;":8741,para:182,"para;":182,"parallel;":8741,"parsim;":10995,"parsl;":11005,"part;":8706,"pcy;":1087,"percnt;":37,"period;":46,"permil;":8240,"perp;":8869,"pertenk;":8241,"pfr;":[55349,56621],"phi;":966,"phiv;":981,"phmmat;":8499,"phone;":9742,"pi;":960,"pitchfork;":8916,"piv;":982,"planck;":8463,"planckh;":8462,"plankv;":8463,"plus;":43,"plusacir;":10787,"plusb;":8862,"pluscir;":10786,"plusdo;":8724,"plusdu;":10789,"pluse;":10866,plusmn:177,"plusmn;":177,"plussim;":10790,"plustwo;":10791,"pm;":177,"pointint;":10773,"popf;":[55349,56673],pound:163,"pound;":163,"pr;":8826,"prE;":10931,"prap;":10935,"prcue;":8828,"pre;":10927,"prec;":8826,"precapprox;":10935,"preccurlyeq;":8828,"preceq;":10927,"precnapprox;":10937,"precneqq;":10933,"precnsim;":8936,"precsim;":8830,"prime;":8242,"primes;":8473,"prnE;":10933,"prnap;":10937,"prnsim;":8936,"prod;":8719,"profalar;":9006,"profline;":8978,"profsurf;":8979,"prop;":8733,"propto;":8733,"prsim;":8830,"prurel;":8880,"pscr;":[55349,56517],"psi;":968,"puncsp;":8200,"qfr;":[55349,56622],"qint;":10764,"qopf;":[55349,56674],"qprime;":8279,"qscr;":[55349,56518],"quaternions;":8461,"quatint;":10774,"quest;":63,"questeq;":8799,quot:34,"quot;":34,"rAarr;":8667,"rArr;":8658,"rAtail;":10524,"rBarr;":10511,"rHar;":10596,"race;":[8765,817],"racute;":341,"radic;":8730,"raemptyv;":10675,"rang;":10217,"rangd;":10642,"range;":10661,"rangle;":10217,raquo:187,"raquo;":187,"rarr;":8594,"rarrap;":10613,"rarrb;":8677,"rarrbfs;":10528,"rarrc;":10547,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrsim;":10612,"rarrtl;":8611,"rarrw;":8605,"ratail;":10522,"ratio;":8758,"rationals;":8474,"rbarr;":10509,"rbbrk;":10099,"rbrace;":125,"rbrack;":93,"rbrke;":10636,"rbrksld;":10638,"rbrkslu;":10640,"rcaron;":345,"rcedil;":343,"rceil;":8969,"rcub;":125,"rcy;":1088,"rdca;":10551,"rdldhar;":10601,"rdquo;":8221,"rdquor;":8221,"rdsh;":8627,"real;":8476,"realine;":8475,"realpart;":8476,"reals;":8477,"rect;":9645,reg:174,"reg;":174,"rfisht;":10621,"rfloor;":8971,"rfr;":[55349,56623],"rhard;":8641,"rharu;":8640,"rharul;":10604,"rho;":961,"rhov;":1009,"rightarrow;":8594,"rightarrowtail;":8611,"rightharpoondown;":8641,"rightharpoonup;":8640,"rightleftarrows;":8644,"rightleftharpoons;":8652,"rightrightarrows;":8649,"rightsquigarrow;":8605,"rightthreetimes;":8908,"ring;":730,"risingdotseq;":8787,"rlarr;":8644,"rlhar;":8652,"rlm;":8207,"rmoust;":9137,"rmoustache;":9137,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"ropf;":[55349,56675],"roplus;":10798,"rotimes;":10805,"rpar;":41,"rpargt;":10644,"rppolint;":10770,"rrarr;":8649,"rsaquo;":8250,"rscr;":[55349,56519],"rsh;":8625,"rsqb;":93,"rsquo;":8217,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"rtri;":9657,"rtrie;":8885,"rtrif;":9656,"rtriltri;":10702,"ruluhar;":10600,"rx;":8478,"sacute;":347,"sbquo;":8218,"sc;":8827,"scE;":10932,"scap;":10936,"scaron;":353,"sccue;":8829,"sce;":10928,"scedil;":351,"scirc;":349,"scnE;":10934,"scnap;":10938,"scnsim;":8937,"scpolint;":10771,"scsim;":8831,"scy;":1089,"sdot;":8901,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searhk;":10533,"searr;":8600,"searrow;":8600,sect:167,"sect;":167,"semi;":59,"seswar;":10537,"setminus;":8726,"setmn;":8726,"sext;":10038,"sfr;":[55349,56624],"sfrown;":8994,"sharp;":9839,"shchcy;":1097,"shcy;":1096,"shortmid;":8739,"shortparallel;":8741,shy:173,"shy;":173,"sigma;":963,"sigmaf;":962,"sigmav;":962,"sim;":8764,"simdot;":10858,"sime;":8771,"simeq;":8771,"simg;":10910,"simgE;":10912,"siml;":10909,"simlE;":10911,"simne;":8774,"simplus;":10788,"simrarr;":10610,"slarr;":8592,"smallsetminus;":8726,"smashp;":10803,"smeparsl;":10724,"smid;":8739,"smile;":8995,"smt;":10922,"smte;":10924,"smtes;":[10924,65024],"softcy;":1100,"sol;":47,"solb;":10692,"solbar;":9023,"sopf;":[55349,56676],"spades;":9824,"spadesuit;":9824,"spar;":8741,"sqcap;":8851,"sqcaps;":[8851,65024],"sqcup;":8852,"sqcups;":[8852,65024],"sqsub;":8847,"sqsube;":8849,"sqsubset;":8847,"sqsubseteq;":8849,"sqsup;":8848,"sqsupe;":8850,"sqsupset;":8848,"sqsupseteq;":8850,"squ;":9633,"square;":9633,"squarf;":9642,"squf;":9642,"srarr;":8594,"sscr;":[55349,56520],"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"star;":9734,"starf;":9733,"straightepsilon;":1013,"straightphi;":981,"strns;":175,"sub;":8834,"subE;":10949,"subdot;":10941,"sube;":8838,"subedot;":10947,"submult;":10945,"subnE;":10955,"subne;":8842,"subplus;":10943,"subrarr;":10617,"subset;":8834,"subseteq;":8838,"subseteqq;":10949,"subsetneq;":8842,"subsetneqq;":10955,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succ;":8827,"succapprox;":10936,"succcurlyeq;":8829,"succeq;":10928,"succnapprox;":10938,"succneqq;":10934,"succnsim;":8937,"succsim;":8831,"sum;":8721,"sung;":9834,sup1:185,"sup1;":185,sup2:178,"sup2;":178,sup3:179,"sup3;":179,"sup;":8835,"supE;":10950,"supdot;":10942,"supdsub;":10968,"supe;":8839,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supnE;":10956,"supne;":8843,"supplus;":10944,"supset;":8835,"supseteq;":8839,"supseteqq;":10950,"supsetneq;":8843,"supsetneqq;":10956,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swArr;":8665,"swarhk;":10534,"swarr;":8601,"swarrow;":8601,"swnwar;":10538,szlig:223,"szlig;":223,"target;":8982,"tau;":964,"tbrk;":9140,"tcaron;":357,"tcedil;":355,"tcy;":1090,"tdot;":8411,"telrec;":8981,"tfr;":[55349,56625],"there4;":8756,"therefore;":8756,"theta;":952,"thetasym;":977,"thetav;":977,"thickapprox;":8776,"thicksim;":8764,"thinsp;":8201,"thkap;":8776,"thksim;":8764,thorn:254,"thorn;":254,"tilde;":732,times:215,"times;":215,"timesb;":8864,"timesbar;":10801,"timesd;":10800,"tint;":8749,"toea;":10536,"top;":8868,"topbot;":9014,"topcir;":10993,"topf;":[55349,56677],"topfork;":10970,"tosa;":10537,"tprime;":8244,"trade;":8482,"triangle;":9653,"triangledown;":9663,"triangleleft;":9667,"trianglelefteq;":8884,"triangleq;":8796,"triangleright;":9657,"trianglerighteq;":8885,"tridot;":9708,"trie;":8796,"triminus;":10810,"triplus;":10809,"trisb;":10701,"tritime;":10811,"trpezium;":9186,"tscr;":[55349,56521],"tscy;":1094,"tshcy;":1115,"tstrok;":359,"twixt;":8812,"twoheadleftarrow;":8606,"twoheadrightarrow;":8608,"uArr;":8657,"uHar;":10595,uacute:250,"uacute;":250,"uarr;":8593,"ubrcy;":1118,"ubreve;":365,ucirc:251,"ucirc;":251,"ucy;":1091,"udarr;":8645,"udblac;":369,"udhar;":10606,"ufisht;":10622,"ufr;":[55349,56626],ugrave:249,"ugrave;":249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ulcorn;":8988,"ulcorner;":8988,"ulcrop;":8975,"ultri;":9720,"umacr;":363,uml:168,"uml;":168,"uogon;":371,"uopf;":[55349,56678],"uparrow;":8593,"updownarrow;":8597,"upharpoonleft;":8639,"upharpoonright;":8638,"uplus;":8846,"upsi;":965,"upsih;":978,"upsilon;":965,"upuparrows;":8648,"urcorn;":8989,"urcorner;":8989,"urcrop;":8974,"uring;":367,"urtri;":9721,"uscr;":[55349,56522],"utdot;":8944,"utilde;":361,"utri;":9653,"utrif;":9652,"uuarr;":8648,uuml:252,"uuml;":252,"uwangle;":10663,"vArr;":8661,"vBar;":10984,"vBarv;":10985,"vDash;":8872,"vangrt;":10652,"varepsilon;":1013,"varkappa;":1008,"varnothing;":8709,"varphi;":981,"varpi;":982,"varpropto;":8733,"varr;":8597,"varrho;":1009,"varsigma;":962,"varsubsetneq;":[8842,65024],"varsubsetneqq;":[10955,65024],"varsupsetneq;":[8843,65024],"varsupsetneqq;":[10956,65024],"vartheta;":977,"vartriangleleft;":8882,"vartriangleright;":8883,"vcy;":1074,"vdash;":8866,"vee;":8744,"veebar;":8891,"veeeq;":8794,"vellip;":8942,"verbar;":124,"vert;":124,"vfr;":[55349,56627],"vltri;":8882,"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vopf;":[55349,56679],"vprop;":8733,"vrtri;":8883,"vscr;":[55349,56523],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"vzigzag;":10650,"wcirc;":373,"wedbar;":10847,"wedge;":8743,"wedgeq;":8793,"weierp;":8472,"wfr;":[55349,56628],"wopf;":[55349,56680],"wp;":8472,"wr;":8768,"wreath;":8768,"wscr;":[55349,56524],"xcap;":8898,"xcirc;":9711,"xcup;":8899,"xdtri;":9661,"xfr;":[55349,56629],"xhArr;":10234,"xharr;":10231,"xi;":958,"xlArr;":10232,"xlarr;":10229,"xmap;":10236,"xnis;":8955,"xodot;":10752,"xopf;":[55349,56681],"xoplus;":10753,"xotime;":10754,"xrArr;":10233,"xrarr;":10230,"xscr;":[55349,56525],"xsqcup;":10758,"xuplus;":10756,"xutri;":9651,"xvee;":8897,"xwedge;":8896,yacute:253,"yacute;":253,"yacy;":1103,"ycirc;":375,"ycy;":1099,yen:165,"yen;":165,"yfr;":[55349,56630],"yicy;":1111,"yopf;":[55349,56682],"yscr;":[55349,56526],"yucy;":1102,yuml:255,"yuml;":255,"zacute;":378,"zcaron;":382,"zcy;":1079,"zdot;":380,"zeetrf;":8488,"zeta;":950,"zfr;":[55349,56631],"zhcy;":1078,"zigrarr;":8669,"zopf;":[55349,56683],"zscr;":[55349,56527],"zwj;":8205,"zwnj;":8204},pl=/(A(?:Elig;?|MP;?|acute;?|breve;|c(?:irc;?|y;)|fr;|grave;?|lpha;|macr;|nd;|o(?:gon;|pf;)|pplyFunction;|ring;?|s(?:cr;|sign;)|tilde;?|uml;?)|B(?:a(?:ckslash;|r(?:v;|wed;))|cy;|e(?:cause;|rnoullis;|ta;)|fr;|opf;|reve;|scr;|umpeq;)|C(?:Hcy;|OPY;?|a(?:cute;|p(?:;|italDifferentialD;)|yleys;)|c(?:aron;|edil;?|irc;|onint;)|dot;|e(?:dilla;|nterDot;)|fr;|hi;|ircle(?:Dot;|Minus;|Plus;|Times;)|lo(?:ckwiseContourIntegral;|seCurly(?:DoubleQuote;|Quote;))|o(?:lon(?:;|e;)|n(?:gruent;|int;|tourIntegral;)|p(?:f;|roduct;)|unterClockwiseContourIntegral;)|ross;|scr;|up(?:;|Cap;))|D(?:D(?:;|otrahd;)|Jcy;|Scy;|Zcy;|a(?:gger;|rr;|shv;)|c(?:aron;|y;)|el(?:;|ta;)|fr;|i(?:a(?:critical(?:Acute;|Do(?:t;|ubleAcute;)|Grave;|Tilde;)|mond;)|fferentialD;)|o(?:pf;|t(?:;|Dot;|Equal;)|uble(?:ContourIntegral;|Do(?:t;|wnArrow;)|L(?:eft(?:Arrow;|RightArrow;|Tee;)|ong(?:Left(?:Arrow;|RightArrow;)|RightArrow;))|Right(?:Arrow;|Tee;)|Up(?:Arrow;|DownArrow;)|VerticalBar;)|wn(?:Arrow(?:;|Bar;|UpArrow;)|Breve;|Left(?:RightVector;|TeeVector;|Vector(?:;|Bar;))|Right(?:TeeVector;|Vector(?:;|Bar;))|Tee(?:;|Arrow;)|arrow;))|s(?:cr;|trok;))|E(?:NG;|TH;?|acute;?|c(?:aron;|irc;?|y;)|dot;|fr;|grave;?|lement;|m(?:acr;|pty(?:SmallSquare;|VerySmallSquare;))|o(?:gon;|pf;)|psilon;|qu(?:al(?:;|Tilde;)|ilibrium;)|s(?:cr;|im;)|ta;|uml;?|x(?:ists;|ponentialE;))|F(?:cy;|fr;|illed(?:SmallSquare;|VerySmallSquare;)|o(?:pf;|rAll;|uriertrf;)|scr;)|G(?:Jcy;|T;?|amma(?:;|d;)|breve;|c(?:edil;|irc;|y;)|dot;|fr;|g;|opf;|reater(?:Equal(?:;|Less;)|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|scr;|t;)|H(?:ARDcy;|a(?:cek;|t;)|circ;|fr;|ilbertSpace;|o(?:pf;|rizontalLine;)|s(?:cr;|trok;)|ump(?:DownHump;|Equal;))|I(?:Ecy;|Jlig;|Ocy;|acute;?|c(?:irc;?|y;)|dot;|fr;|grave;?|m(?:;|a(?:cr;|ginaryI;)|plies;)|n(?:t(?:;|e(?:gral;|rsection;))|visible(?:Comma;|Times;))|o(?:gon;|pf;|ta;)|scr;|tilde;|u(?:kcy;|ml;?))|J(?:c(?:irc;|y;)|fr;|opf;|s(?:cr;|ercy;)|ukcy;)|K(?:Hcy;|Jcy;|appa;|c(?:edil;|y;)|fr;|opf;|scr;)|L(?:Jcy;|T;?|a(?:cute;|mbda;|ng;|placetrf;|rr;)|c(?:aron;|edil;|y;)|e(?:ft(?:A(?:ngleBracket;|rrow(?:;|Bar;|RightArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|Right(?:Arrow;|Vector;)|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;|rightarrow;)|ss(?:EqualGreater;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;))|fr;|l(?:;|eftarrow;)|midot;|o(?:ng(?:Left(?:Arrow;|RightArrow;)|RightArrow;|left(?:arrow;|rightarrow;)|rightarrow;)|pf;|wer(?:LeftArrow;|RightArrow;))|s(?:cr;|h;|trok;)|t;)|M(?:ap;|cy;|e(?:diumSpace;|llintrf;)|fr;|inusPlus;|opf;|scr;|u;)|N(?:Jcy;|acute;|c(?:aron;|edil;|y;)|e(?:gative(?:MediumSpace;|Thi(?:ckSpace;|nSpace;)|VeryThinSpace;)|sted(?:GreaterGreater;|LessLess;)|wLine;)|fr;|o(?:Break;|nBreakingSpace;|pf;|t(?:;|C(?:ongruent;|upCap;)|DoubleVerticalBar;|E(?:lement;|qual(?:;|Tilde;)|xists;)|Greater(?:;|Equal;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|Hump(?:DownHump;|Equal;)|Le(?:ftTriangle(?:;|Bar;|Equal;)|ss(?:;|Equal;|Greater;|Less;|SlantEqual;|Tilde;))|Nested(?:GreaterGreater;|LessLess;)|Precedes(?:;|Equal;|SlantEqual;)|R(?:everseElement;|ightTriangle(?:;|Bar;|Equal;))|S(?:quareSu(?:bset(?:;|Equal;)|perset(?:;|Equal;))|u(?:bset(?:;|Equal;)|cceeds(?:;|Equal;|SlantEqual;|Tilde;)|perset(?:;|Equal;)))|Tilde(?:;|Equal;|FullEqual;|Tilde;)|VerticalBar;))|scr;|tilde;?|u;)|O(?:Elig;|acute;?|c(?:irc;?|y;)|dblac;|fr;|grave;?|m(?:acr;|ega;|icron;)|opf;|penCurly(?:DoubleQuote;|Quote;)|r;|s(?:cr;|lash;?)|ti(?:lde;?|mes;)|uml;?|ver(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;))|P(?:artialD;|cy;|fr;|hi;|i;|lusMinus;|o(?:incareplane;|pf;)|r(?:;|ecedes(?:;|Equal;|SlantEqual;|Tilde;)|ime;|o(?:duct;|portion(?:;|al;)))|s(?:cr;|i;))|Q(?:UOT;?|fr;|opf;|scr;)|R(?:Barr;|EG;?|a(?:cute;|ng;|rr(?:;|tl;))|c(?:aron;|edil;|y;)|e(?:;|verse(?:E(?:lement;|quilibrium;)|UpEquilibrium;))|fr;|ho;|ight(?:A(?:ngleBracket;|rrow(?:;|Bar;|LeftArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;)|o(?:pf;|undImplies;)|rightarrow;|s(?:cr;|h;)|uleDelayed;)|S(?:H(?:CHcy;|cy;)|OFTcy;|acute;|c(?:;|aron;|edil;|irc;|y;)|fr;|hort(?:DownArrow;|LeftArrow;|RightArrow;|UpArrow;)|igma;|mallCircle;|opf;|q(?:rt;|uare(?:;|Intersection;|Su(?:bset(?:;|Equal;)|perset(?:;|Equal;))|Union;))|scr;|tar;|u(?:b(?:;|set(?:;|Equal;))|c(?:ceeds(?:;|Equal;|SlantEqual;|Tilde;)|hThat;)|m;|p(?:;|erset(?:;|Equal;)|set;)))|T(?:HORN;?|RADE;|S(?:Hcy;|cy;)|a(?:b;|u;)|c(?:aron;|edil;|y;)|fr;|h(?:e(?:refore;|ta;)|i(?:ckSpace;|nSpace;))|ilde(?:;|Equal;|FullEqual;|Tilde;)|opf;|ripleDot;|s(?:cr;|trok;))|U(?:a(?:cute;?|rr(?:;|ocir;))|br(?:cy;|eve;)|c(?:irc;?|y;)|dblac;|fr;|grave;?|macr;|n(?:der(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;)|ion(?:;|Plus;))|o(?:gon;|pf;)|p(?:Arrow(?:;|Bar;|DownArrow;)|DownArrow;|Equilibrium;|Tee(?:;|Arrow;)|arrow;|downarrow;|per(?:LeftArrow;|RightArrow;)|si(?:;|lon;))|ring;|scr;|tilde;|uml;?)|V(?:Dash;|bar;|cy;|dash(?:;|l;)|e(?:e;|r(?:bar;|t(?:;|ical(?:Bar;|Line;|Separator;|Tilde;))|yThinSpace;))|fr;|opf;|scr;|vdash;)|W(?:circ;|edge;|fr;|opf;|scr;)|X(?:fr;|i;|opf;|scr;)|Y(?:Acy;|Icy;|Ucy;|acute;?|c(?:irc;|y;)|fr;|opf;|scr;|uml;)|Z(?:Hcy;|acute;|c(?:aron;|y;)|dot;|e(?:roWidthSpace;|ta;)|fr;|opf;|scr;)|a(?:acute;?|breve;|c(?:;|E;|d;|irc;?|ute;?|y;)|elig;?|f(?:;|r;)|grave;?|l(?:e(?:fsym;|ph;)|pha;)|m(?:a(?:cr;|lg;)|p;?)|n(?:d(?:;|and;|d;|slope;|v;)|g(?:;|e;|le;|msd(?:;|a(?:a;|b;|c;|d;|e;|f;|g;|h;))|rt(?:;|vb(?:;|d;))|s(?:ph;|t;)|zarr;))|o(?:gon;|pf;)|p(?:;|E;|acir;|e;|id;|os;|prox(?:;|eq;))|ring;?|s(?:cr;|t;|ymp(?:;|eq;))|tilde;?|uml;?|w(?:conint;|int;))|b(?:Not;|a(?:ck(?:cong;|epsilon;|prime;|sim(?:;|eq;))|r(?:vee;|wed(?:;|ge;)))|brk(?:;|tbrk;)|c(?:ong;|y;)|dquo;|e(?:caus(?:;|e;)|mptyv;|psi;|rnou;|t(?:a;|h;|ween;))|fr;|ig(?:c(?:ap;|irc;|up;)|o(?:dot;|plus;|times;)|s(?:qcup;|tar;)|triangle(?:down;|up;)|uplus;|vee;|wedge;)|karow;|l(?:a(?:ck(?:lozenge;|square;|triangle(?:;|down;|left;|right;))|nk;)|k(?:1(?:2;|4;)|34;)|ock;)|n(?:e(?:;|quiv;)|ot;)|o(?:pf;|t(?:;|tom;)|wtie;|x(?:D(?:L;|R;|l;|r;)|H(?:;|D;|U;|d;|u;)|U(?:L;|R;|l;|r;)|V(?:;|H;|L;|R;|h;|l;|r;)|box;|d(?:L;|R;|l;|r;)|h(?:;|D;|U;|d;|u;)|minus;|plus;|times;|u(?:L;|R;|l;|r;)|v(?:;|H;|L;|R;|h;|l;|r;)))|prime;|r(?:eve;|vbar;?)|s(?:cr;|emi;|im(?:;|e;)|ol(?:;|b;|hsub;))|u(?:ll(?:;|et;)|mp(?:;|E;|e(?:;|q;))))|c(?:a(?:cute;|p(?:;|and;|brcup;|c(?:ap;|up;)|dot;|s;)|r(?:et;|on;))|c(?:a(?:ps;|ron;)|edil;?|irc;|ups(?:;|sm;))|dot;|e(?:dil;?|mptyv;|nt(?:;|erdot;|))|fr;|h(?:cy;|eck(?:;|mark;)|i;)|ir(?:;|E;|c(?:;|eq;|le(?:arrow(?:left;|right;)|d(?:R;|S;|ast;|circ;|dash;)))|e;|fnint;|mid;|scir;)|lubs(?:;|uit;)|o(?:lon(?:;|e(?:;|q;))|m(?:ma(?:;|t;)|p(?:;|fn;|le(?:ment;|xes;)))|n(?:g(?:;|dot;)|int;)|p(?:f;|rod;|y(?:;|sr;|)))|r(?:arr;|oss;)|s(?:cr;|u(?:b(?:;|e;)|p(?:;|e;)))|tdot;|u(?:darr(?:l;|r;)|e(?:pr;|sc;)|larr(?:;|p;)|p(?:;|brcap;|c(?:ap;|up;)|dot;|or;|s;)|r(?:arr(?:;|m;)|ly(?:eq(?:prec;|succ;)|vee;|wedge;)|ren;?|vearrow(?:left;|right;))|vee;|wed;)|w(?:conint;|int;)|ylcty;)|d(?:Arr;|Har;|a(?:gger;|leth;|rr;|sh(?:;|v;))|b(?:karow;|lac;)|c(?:aron;|y;)|d(?:;|a(?:gger;|rr;)|otseq;)|e(?:g;?|lta;|mptyv;)|f(?:isht;|r;)|har(?:l;|r;)|i(?:am(?:;|ond(?:;|suit;)|s;)|e;|gamma;|sin;|v(?:;|ide(?:;|ontimes;|)|onx;))|jcy;|lc(?:orn;|rop;)|o(?:llar;|pf;|t(?:;|eq(?:;|dot;)|minus;|plus;|square;)|ublebarwedge;|wn(?:arrow;|downarrows;|harpoon(?:left;|right;)))|r(?:bkarow;|c(?:orn;|rop;))|s(?:c(?:r;|y;)|ol;|trok;)|t(?:dot;|ri(?:;|f;))|u(?:arr;|har;)|wangle;|z(?:cy;|igrarr;))|e(?:D(?:Dot;|ot;)|a(?:cute;?|ster;)|c(?:aron;|ir(?:;|c;?)|olon;|y;)|dot;|e;|f(?:Dot;|r;)|g(?:;|rave;?|s(?:;|dot;))|l(?:;|inters;|l;|s(?:;|dot;))|m(?:acr;|pty(?:;|set;|v;)|sp(?:1(?:3;|4;)|;))|n(?:g;|sp;)|o(?:gon;|pf;)|p(?:ar(?:;|sl;)|lus;|si(?:;|lon;|v;))|q(?:c(?:irc;|olon;)|s(?:im;|lant(?:gtr;|less;))|u(?:als;|est;|iv(?:;|DD;))|vparsl;)|r(?:Dot;|arr;)|s(?:cr;|dot;|im;)|t(?:a;|h;?)|u(?:ml;?|ro;)|x(?:cl;|ist;|p(?:ectation;|onentiale;)))|f(?:allingdotseq;|cy;|emale;|f(?:ilig;|l(?:ig;|lig;)|r;)|ilig;|jlig;|l(?:at;|lig;|tns;)|nof;|o(?:pf;|r(?:all;|k(?:;|v;)))|partint;|r(?:a(?:c(?:1(?:2;?|3;|4;?|5;|6;|8;)|2(?:3;|5;)|3(?:4;?|5;|8;)|45;|5(?:6;|8;)|78;)|sl;)|own;)|scr;)|g(?:E(?:;|l;)|a(?:cute;|mma(?:;|d;)|p;)|breve;|c(?:irc;|y;)|dot;|e(?:;|l;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|l;))|l(?:;|es;)))|fr;|g(?:;|g;)|imel;|jcy;|l(?:;|E;|a;|j;)|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|opf;|rave;|s(?:cr;|im(?:;|e;|l;))|t(?:;|c(?:c;|ir;)|dot;|lPar;|quest;|r(?:a(?:pprox;|rr;)|dot;|eq(?:less;|qless;)|less;|sim;)|)|v(?:ertneqq;|nE;))|h(?:Arr;|a(?:irsp;|lf;|milt;|r(?:dcy;|r(?:;|cir;|w;)))|bar;|circ;|e(?:arts(?:;|uit;)|llip;|rcon;)|fr;|ks(?:earow;|warow;)|o(?:arr;|mtht;|ok(?:leftarrow;|rightarrow;)|pf;|rbar;)|s(?:cr;|lash;|trok;)|y(?:bull;|phen;))|i(?:acute;?|c(?:;|irc;?|y;)|e(?:cy;|xcl;?)|f(?:f;|r;)|grave;?|i(?:;|i(?:int;|nt;)|nfin;|ota;)|jlig;|m(?:a(?:cr;|g(?:e;|line;|part;)|th;)|of;|ped;)|n(?:;|care;|fin(?:;|tie;)|odot;|t(?:;|cal;|e(?:gers;|rcal;)|larhk;|prod;))|o(?:cy;|gon;|pf;|ta;)|prod;|quest;?|s(?:cr;|in(?:;|E;|dot;|s(?:;|v;)|v;))|t(?:;|ilde;)|u(?:kcy;|ml;?))|j(?:c(?:irc;|y;)|fr;|math;|opf;|s(?:cr;|ercy;)|ukcy;)|k(?:appa(?:;|v;)|c(?:edil;|y;)|fr;|green;|hcy;|jcy;|opf;|scr;)|l(?:A(?:arr;|rr;|tail;)|Barr;|E(?:;|g;)|Har;|a(?:cute;|emptyv;|gran;|mbda;|ng(?:;|d;|le;)|p;|quo;?|rr(?:;|b(?:;|fs;)|fs;|hk;|lp;|pl;|sim;|tl;)|t(?:;|ail;|e(?:;|s;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|quo(?:;|r;)|r(?:dhar;|ushar;)|sh;)|e(?:;|ft(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|leftarrows;|right(?:arrow(?:;|s;)|harpoons;|squigarrow;)|threetimes;)|g;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|r;))|g(?:;|es;)|s(?:approx;|dot;|eq(?:gtr;|qgtr;)|gtr;|sim;)))|f(?:isht;|loor;|r;)|g(?:;|E;)|h(?:ar(?:d;|u(?:;|l;))|blk;)|jcy;|l(?:;|arr;|corner;|hard;|tri;)|m(?:idot;|oust(?:;|ache;))|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|o(?:a(?:ng;|rr;)|brk;|ng(?:left(?:arrow;|rightarrow;)|mapsto;|rightarrow;)|oparrow(?:left;|right;)|p(?:ar;|f;|lus;)|times;|w(?:ast;|bar;)|z(?:;|enge;|f;))|par(?:;|lt;)|r(?:arr;|corner;|har(?:;|d;)|m;|tri;)|s(?:aquo;|cr;|h;|im(?:;|e;|g;)|q(?:b;|uo(?:;|r;))|trok;)|t(?:;|c(?:c;|ir;)|dot;|hree;|imes;|larr;|quest;|r(?:Par;|i(?:;|e;|f;))|)|ur(?:dshar;|uhar;)|v(?:ertneqq;|nE;))|m(?:DDot;|a(?:cr;?|l(?:e;|t(?:;|ese;))|p(?:;|sto(?:;|down;|left;|up;))|rker;)|c(?:omma;|y;)|dash;|easuredangle;|fr;|ho;|i(?:cro;?|d(?:;|ast;|cir;|dot;?)|nus(?:;|b;|d(?:;|u;)))|l(?:cp;|dr;)|nplus;|o(?:dels;|pf;)|p;|s(?:cr;|tpos;)|u(?:;|ltimap;|map;))|n(?:G(?:g;|t(?:;|v;))|L(?:eft(?:arrow;|rightarrow;)|l;|t(?:;|v;))|Rightarrow;|V(?:Dash;|dash;)|a(?:bla;|cute;|ng;|p(?:;|E;|id;|os;|prox;)|tur(?:;|al(?:;|s;)))|b(?:sp;?|ump(?:;|e;))|c(?:a(?:p;|ron;)|edil;|ong(?:;|dot;)|up;|y;)|dash;|e(?:;|Arr;|ar(?:hk;|r(?:;|ow;))|dot;|quiv;|s(?:ear;|im;)|xist(?:;|s;))|fr;|g(?:E;|e(?:;|q(?:;|q;|slant;)|s;)|sim;|t(?:;|r;))|h(?:Arr;|arr;|par;)|i(?:;|s(?:;|d;)|v;)|jcy;|l(?:Arr;|E;|arr;|dr;|e(?:;|ft(?:arrow;|rightarrow;)|q(?:;|q;|slant;)|s(?:;|s;))|sim;|t(?:;|ri(?:;|e;)))|mid;|o(?:pf;|t(?:;|in(?:;|E;|dot;|v(?:a;|b;|c;))|ni(?:;|v(?:a;|b;|c;))|))|p(?:ar(?:;|allel;|sl;|t;)|olint;|r(?:;|cue;|e(?:;|c(?:;|eq;))))|r(?:Arr;|arr(?:;|c;|w;)|ightarrow;|tri(?:;|e;))|s(?:c(?:;|cue;|e;|r;)|hort(?:mid;|parallel;)|im(?:;|e(?:;|q;))|mid;|par;|qsu(?:be;|pe;)|u(?:b(?:;|E;|e;|set(?:;|eq(?:;|q;)))|cc(?:;|eq;)|p(?:;|E;|e;|set(?:;|eq(?:;|q;)))))|t(?:gl;|ilde;?|lg;|riangle(?:left(?:;|eq;)|right(?:;|eq;)))|u(?:;|m(?:;|ero;|sp;))|v(?:Dash;|Harr;|ap;|dash;|g(?:e;|t;)|infin;|l(?:Arr;|e;|t(?:;|rie;))|r(?:Arr;|trie;)|sim;)|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|near;))|o(?:S;|a(?:cute;?|st;)|c(?:ir(?:;|c;?)|y;)|d(?:ash;|blac;|iv;|ot;|sold;)|elig;|f(?:cir;|r;)|g(?:on;|rave;?|t;)|h(?:bar;|m;)|int;|l(?:arr;|c(?:ir;|ross;)|ine;|t;)|m(?:acr;|ega;|i(?:cron;|d;|nus;))|opf;|p(?:ar;|erp;|lus;)|r(?:;|arr;|d(?:;|er(?:;|of;)|f;?|m;?)|igof;|or;|slope;|v;)|s(?:cr;|lash;?|ol;)|ti(?:lde;?|mes(?:;|as;))|uml;?|vbar;)|p(?:ar(?:;|a(?:;|llel;|)|s(?:im;|l;)|t;)|cy;|er(?:cnt;|iod;|mil;|p;|tenk;)|fr;|h(?:i(?:;|v;)|mmat;|one;)|i(?:;|tchfork;|v;)|l(?:an(?:ck(?:;|h;)|kv;)|us(?:;|acir;|b;|cir;|d(?:o;|u;)|e;|mn;?|sim;|two;))|m;|o(?:intint;|pf;|und;?)|r(?:;|E;|ap;|cue;|e(?:;|c(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;))|ime(?:;|s;)|n(?:E;|ap;|sim;)|o(?:d;|f(?:alar;|line;|surf;)|p(?:;|to;))|sim;|urel;)|s(?:cr;|i;)|uncsp;)|q(?:fr;|int;|opf;|prime;|scr;|u(?:at(?:ernions;|int;)|est(?:;|eq;)|ot;?))|r(?:A(?:arr;|rr;|tail;)|Barr;|Har;|a(?:c(?:e;|ute;)|dic;|emptyv;|ng(?:;|d;|e;|le;)|quo;?|rr(?:;|ap;|b(?:;|fs;)|c;|fs;|hk;|lp;|pl;|sim;|tl;|w;)|t(?:ail;|io(?:;|nals;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|ldhar;|quo(?:;|r;)|sh;)|e(?:al(?:;|ine;|part;|s;)|ct;|g;?)|f(?:isht;|loor;|r;)|h(?:ar(?:d;|u(?:;|l;))|o(?:;|v;))|i(?:ght(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|left(?:arrows;|harpoons;)|rightarrows;|squigarrow;|threetimes;)|ng;|singdotseq;)|l(?:arr;|har;|m;)|moust(?:;|ache;)|nmid;|o(?:a(?:ng;|rr;)|brk;|p(?:ar;|f;|lus;)|times;)|p(?:ar(?:;|gt;)|polint;)|rarr;|s(?:aquo;|cr;|h;|q(?:b;|uo(?:;|r;)))|t(?:hree;|imes;|ri(?:;|e;|f;|ltri;))|uluhar;|x;)|s(?:acute;|bquo;|c(?:;|E;|a(?:p;|ron;)|cue;|e(?:;|dil;)|irc;|n(?:E;|ap;|sim;)|polint;|sim;|y;)|dot(?:;|b;|e;)|e(?:Arr;|ar(?:hk;|r(?:;|ow;))|ct;?|mi;|swar;|tm(?:inus;|n;)|xt;)|fr(?:;|own;)|h(?:arp;|c(?:hcy;|y;)|ort(?:mid;|parallel;)|y;?)|i(?:gma(?:;|f;|v;)|m(?:;|dot;|e(?:;|q;)|g(?:;|E;)|l(?:;|E;)|ne;|plus;|rarr;))|larr;|m(?:a(?:llsetminus;|shp;)|eparsl;|i(?:d;|le;)|t(?:;|e(?:;|s;)))|o(?:ftcy;|l(?:;|b(?:;|ar;))|pf;)|pa(?:des(?:;|uit;)|r;)|q(?:c(?:ap(?:;|s;)|up(?:;|s;))|su(?:b(?:;|e;|set(?:;|eq;))|p(?:;|e;|set(?:;|eq;)))|u(?:;|ar(?:e;|f;)|f;))|rarr;|s(?:cr;|etmn;|mile;|tarf;)|t(?:ar(?:;|f;)|r(?:aight(?:epsilon;|phi;)|ns;))|u(?:b(?:;|E;|dot;|e(?:;|dot;)|mult;|n(?:E;|e;)|plus;|rarr;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;)))|cc(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;)|m;|ng;|p(?:1;?|2;?|3;?|;|E;|d(?:ot;|sub;)|e(?:;|dot;)|hs(?:ol;|ub;)|larr;|mult;|n(?:E;|e;)|plus;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;))))|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|nwar;)|zlig;?)|t(?:a(?:rget;|u;)|brk;|c(?:aron;|edil;|y;)|dot;|elrec;|fr;|h(?:e(?:re(?:4;|fore;)|ta(?:;|sym;|v;))|i(?:ck(?:approx;|sim;)|nsp;)|k(?:ap;|sim;)|orn;?)|i(?:lde;|mes(?:;|b(?:;|ar;)|d;|)|nt;)|o(?:ea;|p(?:;|bot;|cir;|f(?:;|ork;))|sa;)|prime;|r(?:ade;|i(?:angle(?:;|down;|left(?:;|eq;)|q;|right(?:;|eq;))|dot;|e;|minus;|plus;|sb;|time;)|pezium;)|s(?:c(?:r;|y;)|hcy;|trok;)|w(?:ixt;|ohead(?:leftarrow;|rightarrow;)))|u(?:Arr;|Har;|a(?:cute;?|rr;)|br(?:cy;|eve;)|c(?:irc;?|y;)|d(?:arr;|blac;|har;)|f(?:isht;|r;)|grave;?|h(?:ar(?:l;|r;)|blk;)|l(?:c(?:orn(?:;|er;)|rop;)|tri;)|m(?:acr;|l;?)|o(?:gon;|pf;)|p(?:arrow;|downarrow;|harpoon(?:left;|right;)|lus;|si(?:;|h;|lon;)|uparrows;)|r(?:c(?:orn(?:;|er;)|rop;)|ing;|tri;)|scr;|t(?:dot;|ilde;|ri(?:;|f;))|u(?:arr;|ml;?)|wangle;)|v(?:Arr;|Bar(?:;|v;)|Dash;|a(?:ngrt;|r(?:epsilon;|kappa;|nothing;|p(?:hi;|i;|ropto;)|r(?:;|ho;)|s(?:igma;|u(?:bsetneq(?:;|q;)|psetneq(?:;|q;)))|t(?:heta;|riangle(?:left;|right;))))|cy;|dash;|e(?:e(?:;|bar;|eq;)|llip;|r(?:bar;|t;))|fr;|ltri;|nsu(?:b;|p;)|opf;|prop;|rtri;|s(?:cr;|u(?:bn(?:E;|e;)|pn(?:E;|e;)))|zigzag;)|w(?:circ;|e(?:d(?:bar;|ge(?:;|q;))|ierp;)|fr;|opf;|p;|r(?:;|eath;)|scr;)|x(?:c(?:ap;|irc;|up;)|dtri;|fr;|h(?:Arr;|arr;)|i;|l(?:Arr;|arr;)|map;|nis;|o(?:dot;|p(?:f;|lus;)|time;)|r(?:Arr;|arr;)|s(?:cr;|qcup;)|u(?:plus;|tri;)|vee;|wedge;)|y(?:ac(?:ute;?|y;)|c(?:irc;|y;)|en;?|fr;|icy;|opf;|scr;|u(?:cy;|ml;?))|z(?:acute;|c(?:aron;|y;)|dot;|e(?:etrf;|ta;)|fr;|hcy;|igrarr;|opf;|scr;|w(?:j;|nj;)))|[\s\S]/g,vx=32,Ex=/[^\r"&\u0000]+/g,Tx=/[^\r'&\u0000]+/g,wx=/[^\r\t\n\f &>\u0000]+/g,Sx=/[^\r\t\n\f \/>A-Z\u0000]+/g,Nx=/[^\r\t\n\f \/=>A-Z\u0000]+/g,Ax=/[^\]\r\u0000\uffff]*/g,kx=/[^&<\r\u0000\uffff]*/g,hl=/[^<\r\u0000\uffff]*/g,Cx=/[^\r\u0000\uffff]*/g,ml=/(?:(\/)?([a-z]+)>)|[\s\S]/g,gl=/(?:([-a-z]+)[ \t\n\f]*=[ \t\n\f]*('[^'&\r\u0000]*'|"[^"&\r\u0000]*"|[^\t\n\r\f "&'\u0000>][^&> \t\n\r\f\u0000]*[ \t\n\f]))|[\s\S]/g,Pn=/[^\x09\x0A\x0C\x0D\x20]/,Ii=/[^\x09\x0A\x0C\x0D\x20]/g,Dx=/[^\x00\x09\x0A\x0C\x0D\x20]/,Rt=/^[\x09\x0A\x0C\x0D\x20]+/,Bn=/\x00/g;function ye(e){var t=16384;if(e.length<t)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<e.length;n+=t)r+=String.fromCharCode.apply(String,e.slice(n,n+t));return r}function Rx(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function K(e,t){if(typeof t=="string")return e.namespaceURI===N.HTML&&e.localName===t;var r=t[e.namespaceURI];return r&&r[e.localName]}function bl(e){return K(e,Cl)}function yl(e){if(K(e,Dl))return!0;if(e.namespaceURI===N.MATHML&&e.localName==="annotation-xml"){var t=e.getAttribute("encoding");if(t&&(t=t.toLowerCase()),t==="text/html"||t==="application/xhtml+xml")return!0}return!1}function Lx(e){return e in fl?fl[e]:e}function _l(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in dl&&(e[t][0]=dl[e[t][0]])}function vl(e){for(var t=0,r=e.length;t<r;t++)if(e[t][0]==="definitionurl"){e[t][0]="definitionURL";break}}function Mi(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in ul&&e[t].push(ul[e[t][0]])}function El(e,t){for(var r=0,n=e.length;r<n;r++){var a=e[r][0],o=e[r][1];t.hasAttribute(a)||t._setAttribute(a,o)}}P.ElementStack=function(){this.elements=[],this.top=null};P.ElementStack.prototype.push=function(e){this.elements.push(e),this.top=e};P.ElementStack.prototype.pop=function(e){this.elements.pop(),this.top=this.elements[this.elements.length-1]};P.ElementStack.prototype.popTag=function(e){for(var t=this.elements.length-1;t>0;t--){var r=this.elements[t];if(K(r,e))break}this.elements.length=t,this.top=this.elements[t-1]};P.ElementStack.prototype.popElementType=function(e){for(var t=this.elements.length-1;t>0&&!(this.elements[t]instanceof e);t--);this.elements.length=t,this.top=this.elements[t-1]};P.ElementStack.prototype.popElement=function(e){for(var t=this.elements.length-1;t>0&&this.elements[t]!==e;t--);this.elements.length=t,this.top=this.elements[t-1]};P.ElementStack.prototype.removeElement=function(e){if(this.top===e)this.pop();else{var t=this.elements.lastIndexOf(e);t!==-1&&this.elements.splice(t,1)}};P.ElementStack.prototype.clearToContext=function(e){for(var t=this.elements.length-1;t>0&&!K(this.elements[t],e);t--);this.elements.length=t+1,this.top=this.elements[t]};P.ElementStack.prototype.contains=function(e){return this.inSpecificScope(e,Object.create(null))};P.ElementStack.prototype.inSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(K(n,e))return!0;if(K(n,t))return!1}return!1};P.ElementStack.prototype.elementInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n===e)return!0;if(K(n,t))return!1}return!1};P.ElementStack.prototype.elementTypeInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n instanceof e)return!0;if(K(n,t))return!1}return!1};P.ElementStack.prototype.inScope=function(e){return this.inSpecificScope(e,Ve)};P.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,Ve)};P.ElementStack.prototype.elementTypeInScope=function(e){return this.elementTypeInSpecificScope(e,Ve)};P.ElementStack.prototype.inButtonScope=function(e){return this.inSpecificScope(e,Fi)};P.ElementStack.prototype.inListItemScope=function(e){return this.inSpecificScope(e,Vn)};P.ElementStack.prototype.inTableScope=function(e){return this.inSpecificScope(e,kl)};P.ElementStack.prototype.inSelectScope=function(e){for(var t=this.elements.length-1;t>=0;t--){var r=this.elements[t];if(r.namespaceURI!==N.HTML)return!1;var n=r.localName;if(n===e)return!0;if(n!=="optgroup"&&n!=="option")return!1}return!1};P.ElementStack.prototype.generateImpliedEndTags=function(e,t){for(var r=t?Nl:Sl,n=this.elements.length-1;n>=0;n--){var a=this.elements[n];if(e&&K(a,e)||!K(this.elements[n],r))break}this.elements.length=n+1,this.top=this.elements[n]};P.ActiveFormattingElements=function(){this.list=[],this.attrs=[]};P.ActiveFormattingElements.prototype.MARKER={localName:"|"};P.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)};P.ActiveFormattingElements.prototype.push=function(e,t){for(var r=0,n=this.list.length-1;n>=0&&this.list[n]!==this.MARKER;n--)if(l(e,this.list[n],this.attrs[n])&&(r++,r===3)){this.list.splice(n,1),this.attrs.splice(n,1);break}this.list.push(e);for(var a=[],o=0;o<t.length;o++)a[o]=t[o];this.attrs.push(a);function l(p,x,m){if(p.localName!==x.localName||p._numattrs!==m.length)return!1;for(var b=0,R=m.length;b<R;b++){var I=m[b][0],d=m[b][1];if(!p.hasAttribute(I)||p.getAttribute(I)!==d)return!1}return!0}};P.ActiveFormattingElements.prototype.clearToMarker=function(){for(var e=this.list.length-1;e>=0&&this.list[e]!==this.MARKER;e--);e<0&&(e=0),this.list.length=e,this.attrs.length=e};P.ActiveFormattingElements.prototype.findElementByTag=function(e){for(var t=this.list.length-1;t>=0;t--){var r=this.list[t];if(r===this.MARKER)break;if(r.localName===e)return r}return null};P.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)};P.ActiveFormattingElements.prototype.remove=function(e){var t=this.list.lastIndexOf(e);t!==-1&&(this.list.splice(t,1),this.attrs.splice(t,1))};P.ActiveFormattingElements.prototype.replace=function(e,t,r){var n=this.list.lastIndexOf(e);n!==-1&&(this.list[n]=t,this.attrs[n]=r)};P.ActiveFormattingElements.prototype.insertAfter=function(e,t){var r=this.list.lastIndexOf(e);r!==-1&&(this.list.splice(r,0,t),this.attrs.splice(r,0,t))};function P(e,t,r){var n=null,a=0,o=0,l=!1,p=!1,x=0,m=[],b="",R=!0,I=0,d=q,Q,$,M="",Ze="",B=[],ce="",fe="",X=[],et=[],tt=[],rt=[],Re=[],Br=!1,g=lu,Ge=null,We=[],u=new P.ElementStack,O=new P.ActiveFormattingElements,bt=t!==void 0,Ur=null,ze=null,jr=!0;t&&(jr=t.ownerDocument._scripting_enabled),r&&r.scripting_enabled===!1&&(jr=!1);var te=!0,Kn=!1,Vr,Xn,y=[],nt=!1,yt=!1,Gr={document:function(){return U},_asDocumentFragment:function(){for(var i=U.createDocumentFragment(),s=U.firstChild;s.hasChildNodes();)i.appendChild(s.firstChild);return i},pause:function(){I++},resume:function(){I--,this.parse("")},parse:function(i,s,c){var f;return I>0?(b+=i,!0):(x===0?(b&&(i=b+i,b=""),s&&(i+="\uFFFF",l=!0),n=i,a=i.length,o=0,R&&(R=!1,n.charCodeAt(0)===65279&&(o=1)),x++,f=Ki(c),b=n.substring(o,a),x--):(x++,m.push(n,a,o),n=i,a=i.length,o=0,Ki(),f=!1,b=n.substring(o,a),o=m.pop(),a=m.pop(),n=m.pop(),b&&(n=b+n.substring(o),a=n.length,o=0,b=""),x--),f)}},U=new fx(!0,e);if(U._parser=Gr,U._scripting_enabled=jr,t){if(t.ownerDocument._quirks&&(U._quirks=!0),t.ownerDocument._limitedQuirks&&(U._limitedQuirks=!0),t.namespaceURI===N.HTML)switch(t.localName){case"title":case"textarea":d=ot;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":d=ta;break}var Yi=U.createElement("html");U._appendChild(Yi),u.push(Yi),t instanceof Y.HTMLTemplateElement&&We.push(da),cr();for(var nr=t;nr!==null;nr=nr.parentElement)if(nr instanceof Y.HTMLFormElement){ze=nr;break}}function Ki(i){for(var s,c,f,h;o<a;){if(I>0||i&&i())return!0;switch(typeof d.lookahead){case"undefined":if(s=n.charCodeAt(o++),p&&(p=!1,s===10)){o++;continue}switch(s){case 13:o<a?n.charCodeAt(o)===10&&o++:p=!0,d(10);break;case 65535:if(l&&o===a){d(Hn);break}default:d(s);break}break;case"number":s=n.charCodeAt(o);var _=d.lookahead,k=!0;if(_<0&&(k=!1,_=-_),_<a-o)c=k?n.substring(o,o+_):null,h=!1;else if(l)c=k?n.substring(o,a):null,h=!0,s===65535&&o===a-1&&(s=Hn);else return!0;d(s,c,h);break;case"string":s=n.charCodeAt(o),f=d.lookahead;var F=n.indexOf(f,o);if(F!==-1)c=n.substring(o,F+f.length),h=!1;else{if(!l)return!0;c=n.substring(o,a),s===65535&&o===a-1&&(s=Hn),h=!0}d(s,c,h);break}}return!1}function at(i,s){for(var c=0;c<Re.length;c++)if(Re[c][0]===i)return;s!==void 0?Re.push([i,s]):Re.push([i])}function x0(){gl.lastIndex=o-1;var i=gl.exec(n);if(!i)throw new Error("should never happen");var s=i[1];if(!s)return!1;var c=i[2],f=c.length;switch(c[0]){case'"':case"'":c=c.substring(1,f-1),o+=i[0].length-1,d=ia;break;default:d=Be,o+=i[0].length-1,c=c.substring(0,f-1);break}for(var h=0;h<Re.length;h++)if(Re[h][0]===s)return!0;return Re.push([s,c]),!0}function p0(){Br=!1,M="",Re.length=0}function ar(){Br=!0,M="",Re.length=0}function $e(){B.length=0}function Qn(){ce=""}function Jn(){fe=""}function Xi(){X.length=0}function Mt(){et.length=0,tt=null,rt=null}function Wr(){tt=[]}function it(){rt=[]}function V(){Kn=!0}function h0(){return u.top&&u.top.namespaceURI!=="http://www.w3.org/1999/xhtml"}function Ne(i){return Ze===i}function Ot(){if(y.length>0){var i=ye(y);if(y.length=0,yt&&(yt=!1,i[0]===`
4
+ `),r+=m,r+="</"+o+">"}break;case 3:case 4:var b;t.nodeType===1&&t.namespaceURI===At.HTML?b=t.tagName:b="",Zs[b]||b==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=Id(e.data);break;case 8:r+="<!--"+ao(e.data)+"-->";break;case 7:let D=io(e.data);r+="<?"+e.target+" "+D+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:ro.InvalidStateError()}return r}});var pe=S((qh,xo)=>{"use strict";xo.exports=J;var fo=Ca(),hn=Da(),oo=Ra(),z=ae();function J(){fo.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var Te=J.ELEMENT_NODE=1,La=J.ATTRIBUTE_NODE=2,mn=J.TEXT_NODE=3,Hd=J.CDATA_SECTION_NODE=4,Pd=J.ENTITY_REFERENCE_NODE=5,Ia=J.ENTITY_NODE=6,co=J.PROCESSING_INSTRUCTION_NODE=7,lo=J.COMMENT_NODE=8,_r=J.DOCUMENT_NODE=9,De=J.DOCUMENT_TYPE_NODE=10,pt=J.DOCUMENT_FRAGMENT_NODE=11,Ma=J.NOTATION_NODE=12,Oa=J.DOCUMENT_POSITION_DISCONNECTED=1,qa=J.DOCUMENT_POSITION_PRECEDING=2,Fa=J.DOCUMENT_POSITION_FOLLOWING=4,uo=J.DOCUMENT_POSITION_CONTAINS=8,Ha=J.DOCUMENT_POSITION_CONTAINED_BY=16,Pa=J.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;J.prototype=Object.create(fo.prototype,{baseURI:{get:z.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===Te?this.parentNode:null}},hasChildNodes:{value:z.shouldOverride},firstChild:{get:z.shouldOverride},lastChild:{get:z.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===J.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===J.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,n){var a=this,o,l;if(!t.nodeType)throw new TypeError("not a node");switch(a.nodeType){case _r:case pt:case Te:break;default:z.HierarchyRequestError()}switch(t.isAncestor(a)&&z.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==a&&z.NotFoundError(),t.nodeType){case pt:case De:case Te:case mn:case co:case lo:break;default:z.HierarchyRequestError()}if(a.nodeType===_r)switch(t.nodeType){case mn:z.HierarchyRequestError();break;case pt:switch(t._countChildrenOfType(mn)>0&&z.HierarchyRequestError(),t._countChildrenOfType(Te)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===De&&z.HierarchyRequestError(),l=r.nextSibling;l!==null;l=l.nextSibling)l.nodeType===De&&z.HierarchyRequestError();o=a._countChildrenOfType(Te),n?o>0&&z.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Te)&&z.HierarchyRequestError();break;default:z.HierarchyRequestError()}break;case Te:if(r!==null)for(n&&r.nodeType===De&&z.HierarchyRequestError(),l=r.nextSibling;l!==null;l=l.nextSibling)l.nodeType===De&&z.HierarchyRequestError();o=a._countChildrenOfType(Te),n?o>0&&z.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Te)&&z.HierarchyRequestError();break;case De:if(r===null)a._countChildrenOfType(Te)&&z.HierarchyRequestError();else for(l=a.firstChild;l!==null&&l!==r;l=l.nextSibling)l.nodeType===Te&&z.HierarchyRequestError();o=a._countChildrenOfType(De),n?o>0&&z.HierarchyRequestError():(o>1||o===1&&r.nodeType!==De)&&z.HierarchyRequestError();break}else t.nodeType===De&&z.HierarchyRequestError()}},insertBefore:{value:function(t,r){var n=this;n._ensureInsertValid(t,r,!0);var a=r;return a===t&&(a=t.nextSibling),n.doc.adoptNode(t),t._insertOrReplace(n,a,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&z.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var n=this;return n._ensureInsertValid(t,r,!1),t.doc!==n.doc&&n.doc.adoptNode(t),t._insertOrReplace(n,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&Ha)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return Oa+Pa;for(var r=[],n=[],a=this;a!==null;a=a.parentNode)r.push(a);for(a=t;a!==null;a=a.parentNode)n.push(a);if(r.reverse(),n.reverse(),r[0]!==n[0])return Oa+Pa;a=Math.min(r.length,n.length);for(var o=1;o<a;o++)if(r[o]!==n[o])return r[o].index<n[o].index?Fa:qa;return r.length<n.length?Fa+Ha:qa+uo}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,n=t.firstChild;r&&n;r=r.nextSibling,n=n.nextSibling)if(!r.isEqualNode(n))return!1;return r===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case Te:return this._lookupNamespacePrefix(t,this);case _r:return r=this.documentElement,r?r.lookupPrefix(t):null;case Ia:case Ma:case pt:case De:return null;case La:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case Te:return z.shouldOverride();case _r:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case Ia:case Ma:case De:case pt:return null;case La:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;z.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&z.WrongDocumentError()}},removeChildren:{value:z.shouldOverride},_insertOrReplace:{value:function(t,r,n){var a=this,o,l;if(a.nodeType===pt&&a.rooted&&z.HierarchyRequestError(),t._childNodes&&(o=r===null?t._childNodes.length:r.index,a.parentNode===t)){var x=a.index;x<o&&o--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var p=r;p===null&&(p=t.firstChild);var m=a.rooted&&t.rooted;if(a.nodeType===pt){for(var b=[0,n?1:0],D,L=a.firstChild;L!==null;L=D)D=L.nextSibling,b.push(L),L.parentNode=t;var d=b.length;if(n?hn.replace(p,d>2?b[2]:null):d>2&&p!==null&&hn.insertBefore(b[2],p),t._childNodes)for(b[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,b),l=2;l<d;l++)b[l]._index=b[0]+(l-2);else t._firstChild===r&&(d>2?t._firstChild=b[2]:n&&(t._firstChild=null));if(a._childNodes?a._childNodes.length=0:a._firstChild=null,t.rooted)for(t.modify(),l=2;l<d;l++)t.doc.mutateInsert(b[l])}else{if(r===a)return;m?a._remove():a.parentNode&&a.remove(),a.parentNode=t,n?(hn.replace(p,a),t._childNodes?(a._index=o,t._childNodes[o]=a):t._firstChild===r&&(t._firstChild=a)):(p!==null&&hn.insertBefore(a,p),t._childNodes?(a._index=o,t._childNodes.splice(o,0,a)):t._firstChild===r&&(t._firstChild=a)),m?(t.modify(),t.doc.mutateMove(a)):t.rooted&&(t.modify(),t.doc.mutateInsert(a))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===J.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===J.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=oo.serializeOne(t,this);return e}},outerHTML:{get:function(){return oo.serializeOne(this,{nodeType:0})},set:z.nyi},ELEMENT_NODE:{value:Te},ATTRIBUTE_NODE:{value:La},TEXT_NODE:{value:mn},CDATA_SECTION_NODE:{value:Hd},ENTITY_REFERENCE_NODE:{value:Pd},ENTITY_NODE:{value:Ia},PROCESSING_INSTRUCTION_NODE:{value:co},COMMENT_NODE:{value:lo},DOCUMENT_NODE:{value:_r},DOCUMENT_TYPE_NODE:{value:De},DOCUMENT_FRAGMENT_NODE:{value:pt},NOTATION_NODE:{value:Ma},DOCUMENT_POSITION_DISCONNECTED:{value:Oa},DOCUMENT_POSITION_PRECEDING:{value:qa},DOCUMENT_POSITION_FOLLOWING:{value:Fa},DOCUMENT_POSITION_CONTAINS:{value:uo},DOCUMENT_POSITION_CONTAINED_BY:{value:Ha},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:Pa}})});var ho=S((Hh,po)=>{"use strict";po.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var go=S((Ph,mo)=>{"use strict";function Bd(e){return this[e]||null}function Ud(e){return e||(e=[]),e.item=Bd,e}mo.exports=Ud});var kt=S((Bh,bo)=>{"use strict";var Ba;try{Ba=ho()}catch{Ba=go()}bo.exports=Ba});var gn=S((Uh,vo)=>{"use strict";vo.exports=_o;var yo=pe(),jd=kt();function _o(){yo.call(this),this._firstChild=this._childNodes=null}_o.prototype=Object.create(yo.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new jd;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,n;r!==null;)n=r,r=n.nextSibling,t&&t.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var bn=S(Va=>{"use strict";Va.isValidName=Kd;Va.isValidQName=Xd;var Vd=/^[_:A-Za-z][-.:\w]+$/,Gd=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,vr="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Er="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Ct="["+vr+"]["+Er+"]*",Ua=vr+":",ja=Er+":",Wd=new RegExp("^["+Ua+"]["+ja+"]*$"),zd=new RegExp("^("+Ct+"|"+Ct+":"+Ct+")$"),Eo=/[\uD800-\uDB7F\uDC00-\uDFFF]/,To=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,wo=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;vr+="\uD800-\u{EFC00}-\uDFFF";Er+="\uD800-\u{EFC00}-\uDFFF";Ct="["+vr+"]["+Er+"]*";Ua=vr+":";ja=Er+":";var $d=new RegExp("^["+Ua+"]["+ja+"]*$"),Yd=new RegExp("^("+Ct+"|"+Ct+":"+Ct+")$");function Kd(e){if(Vd.test(e)||Wd.test(e))return!0;if(!Eo.test(e)||!$d.test(e))return!1;var t=e.match(To),r=e.match(wo);return r!==null&&2*r.length===t.length}function Xd(e){if(Gd.test(e)||zd.test(e))return!0;if(!Eo.test(e)||!Yd.test(e))return!1;var t=e.match(To),r=e.match(wo);return r!==null&&2*r.length===t.length}});var Wa=S(Ga=>{"use strict";var So=ae();Ga.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(a){t[a.value||a]=a.alias||a});var r=e.missing;r===void 0&&(r=null);var n=e.invalid;return n===void 0&&(n=r),{get:function(){var a=this._getattr(e.name);return a===null?r:(a=t[a.toLowerCase()],a!==void 0?a:n!==null?n:a)},set:function(a){this._setattr(e.name,a)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(a){a?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return Qd(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(a){e.treatNullAsEmptyString&&a===null&&(a=""),this._setattr(e.name,a)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function Qd(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){So.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",a=e.type==="limited unsigned long with fallback",o=e.min,l=e.max,x=e.setmin;return o===void 0&&(r&&(o=0),n&&(o=-2147483648),a&&(o=1)),l===void 0&&(r||n||a)&&(l=2147483647),{get:function(){var p=this._getattr(e.name),m=e.float?parseFloat(p):parseInt(p,10);if(p===null||!isFinite(m)||o!==void 0&&m<o||l!==void 0&&m>l)return t.call(this);if(r||n||a){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(p))return t.call(this);m=m|0}return m},set:function(p){e.float||(p=Math.floor(p)),x!==void 0&&p<x&&So.IndexSizeError(e.name+" set to "+p),r?p=p<0||p>2147483647?t.call(this):p|0:a?p=p<1||p>2147483647?t.call(this):p|0:n&&(p=p<-2147483648||p>2147483647?t.call(this):p|0),this._setattr(e.name,String(p))}}}Ga.registerChangeHandler=function(e,t,r){var n=e.prototype;Object.prototype.hasOwnProperty.call(n,"_attributeChangeHandlers")||(n._attributeChangeHandlers=Object.create(n._attributeChangeHandlers||null)),n._attributeChangeHandlers[t]=r}});var ko=S((Gh,Ao)=>{"use strict";Ao.exports=No;var Jd=pe();function No(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}No.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===Jd.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var $a=S((Wh,Ro)=>{"use strict";var za=ae();Ro.exports=Do;function Do(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(Do.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=Ut(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=Ut(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=Ut(this),t=0,r=arguments.length;t<r;t++){var n=Tr(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=Ut(this),t=0,r=arguments.length;t<r;t++){var n=Tr(arguments[t]),a=e.indexOf(n);a>-1&&e.splice(a,1)}this._update(e)}},toggle:{value:function(t,r){return t=Tr(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&za.SyntaxError(),t=Tr(t),r=Tr(r);var n=Ut(this),a=n.indexOf(t);if(a<0)return!1;var o=n.indexOf(r);return o<0?n[a]=r:a<o?(n[a]=r,n.splice(o,1)):n.splice(a,1),this._update(n),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(Co(this,e),this._setString(e.join(" ").trim())):Co(this,Ut(this)),this._lastStringValue=this._getString()}}});function Co(e,t){var r=e._length,n;for(e._length=t.length,n=0;n<t.length;n++)e[n]=t[n];for(;n<r;n++)e[n]=void 0}function Tr(e){return e=String(e),e===""&&za.SyntaxError(),/[ \t\r\n\f]/.test(e)&&za.InvalidCharacterError(),e}function Zd(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function Ut(e){var t=e._getString();if(t===e._lastStringValue)return Zd(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var n=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(a){var o="$"+a;return n[o]?!1:(n[o]=!0,!0)})}});var En=S((Gt,Fo)=>{"use strict";var yn=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),ef=function(e,t){return e.compareDocumentPosition(t)},tf=function(e,t){return ef(e,t)&2?1:-1},vn=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},Vt=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},rf=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},nf=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},jt=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},Lo=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(C.str_escape,function(r){var n=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!n)return r.slice(1);if(n[2])return"";var a=parseInt(n[1],16);return String.fromCodePoint?String.fromCodePoint(a):String.fromCharCode(a)})):C.ident.test(e)?ht(e):e},ht=function(e){return e.replace(C.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var n=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},af=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),Mo=function(e,t){var r=C.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},we=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},Io=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},sf=function(e,t){var r=e.replace(/\s+/g,""),n;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),n=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:n[1]==="-"?-(n[2]||1):+(n[2]||1),offset:n[4]?n[3]==="-"?-n[4]:+n[4]:0}},Ya=function(e,t,r){var n=sf(e),a=n.group,o=n.offset,l=r?nf:rf,x=r?Vt:vn;return function(p){if(jt(p))for(var m=l(p.parentNode),b=0;m;){if(t(m,p)&&b++,m===p)return b-=o,a&&b?b%a===0&&b<0==a<0:!b;m=x(m)}}},ue={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,n){return t=Oo[t],function(a){var o;switch(e){case"for":o=a.htmlFor;break;case"class":o=a.className,o===""&&a.getAttribute("class")==null&&(o=null);break;case"href":case"src":o=a.getAttribute(e,2);break;case"title":o=a.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(a.getAttribute){o=a.getAttribute(e);break}default:if(a.hasAttribute&&!a.hasAttribute(e))break;o=a[e]!=null?a[e]:a.getAttribute&&a.getAttribute(e);break}if(o!=null)return o=o+"",n&&(o=o.toLowerCase(),r=r.toLowerCase()),t(o,r)}},":first-child":function(e){return!Vt(e)&&jt(e)},":last-child":function(e){return!vn(e)&&jt(e)},":only-child":function(e){return!Vt(e)&&!vn(e)&&jt(e)},":nth-child":function(e,t){return Ya(e,function(){return!0},t)},":nth-last-child":function(e){return ue[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=Xa(e);return function(r){return!t(r)}},":first-of-type":function(e){if(jt(e)){for(var t=e.nodeName;e=Vt(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(jt(e)){for(var t=e.nodeName;e=vn(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return ue[":first-of-type"](e)&&ue[":last-of-type"](e)},":nth-of-type":function(e,t){return Ya(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return ue[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!ue[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===yn.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return Xa(e)},":matches":function(e){return ue[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),a=Xa(r.join(","));return Ya(n,a,t)},":nth-last-match":function(e){return ue[":nth-match"](e,!0)},":links-here":function(e){return e+""==yn.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===yn.location.host;var t=+e+1;return function(r){if(r.href){var n=yn.location+"",a=r+"";return Io(n,t)===Io(a,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!ue[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!ue[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,n=e.nodeName.toLowerCase();return n=n!=="input"&&n!=="textarea",(n||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!ue[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return qo(e,t).length>0}}},Oo={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,a,o;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(a=e[r-1],o=e[r+t.length],(!a||a===" ")&&(!o||o===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),n;if(r===0)return n=e[r+t.length],n==="-"||!n},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},wr={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=Vt(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=Vt(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function n(a){for(var o=a.ownerDocument,l=o.getElementsByTagName("*"),x=l.length;x--;)if(r=l[x],n.test(a))return r=null,!0;r=null}return n.combinator=function(a){if(!(!r||!r.getAttribute)){var o=r.getAttribute(t)||"";if(o[0]==="#"&&(o=o.substring(1)),o===a.id&&e(r))return r}},n}},C={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};C.cssid=we(C.cssid,"nonascii",C.nonascii);C.cssid=we(C.cssid,"escape",C.escape);C.qname=we(C.qname,"cssid",C.cssid);C.simple=we(C.simple,"cssid",C.cssid);C.ref=we(C.ref,"cssid",C.cssid);C.attr=we(C.attr,"cssid",C.cssid);C.pseudo=we(C.pseudo,"cssid",C.cssid);C.inside=we(C.inside,`[^"'>]*`,C.inside);C.attr=we(C.attr,"inside",Mo("\\[","\\]"));C.pseudo=we(C.pseudo,"inside",Mo("\\(","\\)"));C.simple=we(C.simple,"pseudo",C.pseudo);C.simple=we(C.simple,"attr",C.attr);C.ident=we(C.ident,"cssid",C.cssid);C.str_escape=we(C.str_escape,"escape",C.escape);var Sr=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],a=[],o,l,x,p,m;t;){if(x=C.qname.exec(t))t=t.substring(x[0].length),l=ht(x[1]),a.push(_n(l,!0));else if(x=C.simple.exec(t))t=t.substring(x[0].length),l="*",a.push(_n(l,!0)),a.push(_n(x));else throw new SyntaxError("Invalid selector.");for(;x=C.simple.exec(t);)t=t.substring(x[0].length),a.push(_n(x));if(t[0]==="!"&&(t=t.substring(1),o=cf(),o.qname=l,a.push(o.simple)),x=C.ref.exec(t)){t=t.substring(x[0].length),m=wr.ref(Ka(a),ht(x[1])),n.push(m.combinator),a=[];continue}if(x=C.combinator.exec(t)){if(t=t.substring(x[0].length),p=x[1]||x[2]||x[3],p===","){n.push(wr.noop(Ka(a)));break}}else p="noop";if(!wr[p])throw new SyntaxError("Bad combinator.");n.push(wr[p](Ka(a))),a=[]}return r=of(n),r.qname=l,r.sel=t,o&&(o.lname=r.qname,o.test=r,o.qname=o.qname,o.sel=r.sel,r=o),m&&(m.test=r,m.qname=r.qname,m.sel=r.sel,r=m),r},_n=function(e,t){if(t)return e==="*"?ue["*"]:ue.type(e);if(e[1])return e[1][0]==="."?ue.attr("class","~=",ht(e[1].substring(1)),!1):ue.attr("id","=",ht(e[1].substring(1)),!1);if(e[2])return e[3]?ue[ht(e[2])](Lo(e[3])):ue[ht(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),ue.attr(ht(e[4]),e[5]||"-",Lo(r),n)}throw new SyntaxError("Unknown Selector.")},Ka=function(e){var t=e.length,r;return t<2?e[0]:function(n){if(n){for(r=0;r<t;r++)if(!e[r](n))return;return!0}}},of=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},cf=function(){var e;function t(r){for(var n=r.ownerDocument,a=n.getElementsByTagName(t.lname),o=a.length;o--;)if(t.test(a[o])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},Xa=function(e){for(var t=Sr(e),r=[t];t.sel;)t=Sr(t.sel),r.push(t);return r.length<2?t:function(n){for(var a=r.length,o=0;o<a;o++)if(r[o](n))return!0}},qo=function(e,t){for(var r=[],n=Sr(e),a=t.getElementsByTagName(n.qname),o=0,l;l=a[o++];)n(l)&&r.push(l);if(n.sel){for(;n.sel;)for(n=Sr(n.sel),a=t.getElementsByTagName(n.qname),o=0;l=a[o++];)n(l)&&af.call(r,l)===-1&&r.push(l);r.sort(tf)}return r};Fo.exports=Gt=function(e,t){var r,n;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return n=t.doc.getElementById(r),n?[n]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return qo(e,t)};Gt.selectors=ue;Gt.operators=Oo;Gt.combinators=wr;Gt.matches=function(e,t){var r={sel:t};do if(r=Sr(r.sel),r(e))return!0;while(r.sel);return!1}});var Tn=S((zh,Ho)=>{"use strict";var lf=pe(),uf=Da(),Qa=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var a=t[n],o=a instanceof lf;r.appendChild(o?a:e.createTextNode(String(a)))}return r},df={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(o){return o===n});)n=n.nextSibling;var a=Qa(this.doc,t);r.insertBefore(a,n)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.previousSibling;if(r!==null){for(;n&&t.some(function(l){return l===n});)n=n.previousSibling;var a=Qa(this.doc,t),o=n?n.nextSibling:r.firstChild;r.insertBefore(a,o)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),uf.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(o){return o===n});)n=n.nextSibling;var a=Qa(this.doc,t);this.parentNode===r?r.replaceChild(a,this):r.insertBefore(a,n)}}}};Ho.exports=df});var Ja=S(($h,Bo)=>{"use strict";var Po=pe(),ff={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===Po.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===Po.ELEMENT_NODE)return e}return null}}};Bo.exports=ff});var Za=S((Yh,jo)=>{"use strict";jo.exports=Uo;var Wt=ae();function Uo(e){this.element=e}Object.defineProperties(Uo.prototype,{length:{get:Wt.shouldOverride},item:{value:Wt.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Wt.nyi},setNamedItemNS:{value:Wt.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Wt.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;Wt.NotFoundError()}}})});var $t=S((Kh,$o)=>{"use strict";$o.exports=mt;var ei=bn(),ee=ae(),Ue=ee.NAMESPACE,Sn=Wa(),Me=pe(),ti=kt(),xf=Ra(),wn=ko(),zt=xn(),pf=$a(),ri=En(),Go=gn(),hf=Tn(),mf=Ja(),Wo=Za(),Vo=Object.create(null);function mt(e,t,r,n){Go.call(this),this.nodeType=Me.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=n,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function ni(e,t){if(e.nodeType===Me.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)ni(e.childNodes[r],t)}mt.prototype=Object.create(Go.prototype,{isHTML:{get:function(){return this.namespaceURI===Ue.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=Vo[t];r||(Vo[t]=r=ee.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return ni(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return ni(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:ee.nyi},outerHTML:{get:function(){return xf.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Me.DOCUMENT_NODE&&ee.NoModificationAllowedError(),r.nodeType===Me.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var n=t.implementation.mozHTMLParser(t._address,r);n.parse(e===null?"":String(e),!0),this.replaceWith(n._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var n=!1;switch(t){case"beforebegin":n=!0;case"afterend":var a=this.parentNode;return a===null?null:a.insertBefore(r,n?this:this.nextSibling);case"afterbegin":n=!0;case"beforeend":return this.insertBefore(r,n?this.firstChild:null);default:return ee.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Me.ELEMENT_NODE)throw new TypeError("not an element");return t=ee.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=ee.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=ee.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===Me.DOCUMENT_NODE)&&ee.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:ee.SyntaxError()}(!(n instanceof mt)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===Ue.HTML)&&(n=n.ownerDocument.createElementNS(Ue.HTML,"body"));var a=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);a.parse(r,!0),this._insertAdjacent(t,a._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new zo(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new ii(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Me.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Me.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=gf(t):r=ai(t),new wn(this,r)):new ti}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=ai(r):r==="*"?n=bf(t):n=yf(t,r),new wn(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new ti;return r}return t=t.split(/[ \t\r\n\f]+/),new wn(this,_f(t))}},getElementsByName:{value:function(t){return new wn(this,vf(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Ue.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,n=this._attrKeys.length;r<n;r++){var a=this._attrKeys[r],o=this._attrsByLName[a],l=o.cloneNode();l._setOwnerElement(t),t._attrsByLName[a]=l,t._addQName(l)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,n=this._numattrs;r<n;r++){var a=this._attr(r);if(!t.hasAttributeNS(a.namespaceURI,a.localName)||t.getAttributeNS(a.namespaceURI,a.localName)!==a.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var n=0,a=this._numattrs;n<a;n++){var o=this._attr(n);if(o.prefix==="xmlns"&&o.value===t&&r.lookupNamespaceURI(o.localName)===t)return o.localName}var l=this.parentElement;return l?l._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,n=this._numattrs;r<n;r++){var a=this._attr(r);if(a.namespaceURI===Ue.XMLNS&&(a.prefix==="xmlns"&&a.localName===t||t===null&&a.prefix===null&&a.localName==="xmlns"))return a.value||null}var o=this.parentElement;return o?o.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var n=this.getAttributeNodeNS(t,r);return n?n.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=this._attrsByLName[t+"|"+r];return n||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),ei.isValidName(t)||ee.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var n=this._attrsByQName[t];return n===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var n=this._attrsByQName[t],a;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(t),a=!0),n.value=r,this._attributes&&(this._attributes[t]=n),a&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),ei.isValidName(t)||ee.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var a=r.indexOf(":"),o,l;a<0?(o=null,l=r):(o=r.substring(0,a),l=r.substring(a+1)),(t===""||t===void 0)&&(t=null);var x=(t===null?"":t)+"|"+l,p=this._attrsByLName[x],m;p||(p=new Nr(this,l,o,t),m=!0,this._attrsByLName[x]=p,this._attributes&&(this._attributes[this._attrKeys.length]=p),this._attrKeys.push(x),this._addQName(p)),p.value=n,m&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),ei.isValidQName(r)||ee.InvalidCharacterError();var a=r.indexOf(":"),o=a<0?null:r.substring(0,a);(o!==null&&t===null||o==="xml"&&t!==Ue.XML||(r==="xmlns"||o==="xmlns")&&t!==Ue.XMLNS||t===Ue.XMLNS&&!(r==="xmlns"||o==="xmlns"))&&ee.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new zt(zt.INUSE_ATTRIBUTE_ERR);var r=null,n=this._attrsByQName[t.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(a){return a===t}))return t;if(t.ownerElement!==null)throw new zt(zt.INUSE_ATTRIBUTE_ERR);n.forEach(function(a){this.removeAttributeNode(a)},this),r=n[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new zt(zt.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName,a=this._attrsByLName[n];return a&&this.removeAttributeNode(a),t._setOwnerElement(this),this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),a||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var n=r.namespaceURI,a=(n===null?"":n)+"|"+r.localName;this._attrsByLName[a]=void 0;var o=this._attrKeys.indexOf(a);this._attributes&&(Array.prototype.splice.call(this._attributes,o,1),this._attributes[t]=void 0),this._attrKeys.splice(o,1);var l=r.onchange;r._setOwnerElement(null),l&&l.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r,a=this._attrsByLName[n];if(a){this._attrsByLName[n]=void 0;var o=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,o,1),this._attrKeys.splice(o,1),this._removeQName(a);var l=a.onchange;a._setOwnerElement(null),l&&l.call(a,this,a.localName,a.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(a)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[n]!==t&&ee.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var n=this._attrsByQName[t],a;n||(n=this._newattr(t),a=!0),n.value=String(r),this._attributes&&(this._attributes[t]=n),a&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new Nr(this,t,null,null),n="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[n]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(n),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var n=r.indexOf(e);ee.assert(n!==-1),r.length===2?(this._attrsByQName[t]=r[1-n],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(n,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else ee.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:Sn.property({name:"id"}),className:Sn.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new pf(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return ri.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Me.ELEMENT_NODE);return null}},querySelector:{value:function(e){return ri(e,this)[0]}},querySelectorAll:{value:function(e){var t=ri(e,this);return t.item?t:new ti(t)}}});Object.defineProperties(mt.prototype,hf);Object.defineProperties(mt.prototype,mf);Sn.registerChangeHandler(mt,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});Sn.registerChangeHandler(mt,"class",function(e,t,r,n){e._classList&&e._classList._update()});function Nr(e,t,r,n,a){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=n===null||n===""?null:""+n,this.data=a,this._setOwnerElement(e)}Nr.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new Nr(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Me.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});mt._Attr=Nr;function ii(e){Wo.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}ii.prototype=Object.create(Wo.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(ii.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function zo(e){this.element=e,this.updateCache()}zo.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<r;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var a=this.element.firstChild;a!==null;a=a.nextSibling)if(a.nodeType===Me.ELEMENT_NODE){this[this.childrenByNumber.length]=a,this.childrenByNumber.push(a);var o=a.getAttribute("id");o&&!this.childrenByName[o]&&(this.childrenByName[o]=a);var l=a.getAttribute("name");l&&this.element.namespaceURI===Ue.HTML&&t.test(this.element.localName)&&!this.childrenByName[l]&&(this.childrenByName[o]=a)}}}}});function ai(e){return function(t){return t.localName===e}}function gf(e){var t=ee.toASCIILowerCase(e);return t===e?ai(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function bf(e){return function(t){return t.namespaceURI===e}}function yf(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function _f(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function vf(e){return function(t){return t.namespaceURI!==Ue.HTML?!1:t.getAttribute("name")===e}}});var si=S((Xh,Jo)=>{"use strict";Jo.exports=Qo;var Ko=pe(),Ef=kt(),Xo=ae(),Yo=Xo.HierarchyRequestError,Tf=Xo.NotFoundError;function Qo(){Ko.call(this)}Qo.prototype=Object.create(Ko.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Yo()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Yo()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");Tf()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new Ef),this._childNodes}}})});var Ar=S((Qh,tc)=>{"use strict";tc.exports=Nn;var ec=si(),Zo=ae(),wf=Tn(),Sf=Ja();function Nn(){ec.call(this)}Nn.prototype=Object.create(ec.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&Zo.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,n){var a=this.data,o=a.length;t=t>>>0,r=r>>>0,n=String(n),(t>o||t<0)&&Zo.IndexSizeError(),t+r>o&&(r=o-t);var l=a.substring(0,t),x=a.substring(t+r);this.data=l+n+x}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(Nn.prototype,wf);Object.defineProperties(Nn.prototype,Sf)});var ci=S((Jh,ic)=>{"use strict";ic.exports=oi;var rc=ae(),nc=pe(),ac=Ar();function oi(e,t){ac.call(this),this.nodeType=nc.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var kr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};oi.prototype=Object.create(ac.prototype,{nodeName:{value:"#text"},nodeValue:kr,textContent:kr,innerText:kr,data:{get:kr.get,set:function(e){kr.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&rc.IndexSizeError();var r=this._data.substring(t),n=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var a=this.parentNode;return a!==null&&a.insertBefore(n,this.nextSibling),n}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===nc.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:rc.nyi},clone:{value:function(){return new oi(this.ownerDocument,this._data)}}})});var ui=S((Zh,oc)=>{"use strict";oc.exports=li;var Nf=pe(),sc=Ar();function li(e,t){sc.call(this),this.nodeType=Nf.COMMENT_NODE,this.ownerDocument=e,this._data=t}var Cr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};li.prototype=Object.create(sc.prototype,{nodeName:{value:"#comment"},nodeValue:Cr,textContent:Cr,innerText:Cr,data:{get:Cr.get,set:function(e){Cr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new li(this.ownerDocument,this._data)}}})});var fi=S((em,uc)=>{"use strict";uc.exports=di;var Af=pe(),kf=kt(),lc=gn(),An=$t(),Cf=En(),cc=ae();function di(e){lc.call(this),this.nodeType=Af.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}di.prototype=Object.create(lc.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(An.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(An.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=An.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(An.prototype,"firstElementChild").get;var r=Cf(e,t);return r.item?r:new kf(r)}},clone:{value:function(){return new di(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:cc.nyi},outerHTML:{get:function(){return this.serialize()},set:cc.nyi}})});var pi=S((tm,fc)=>{"use strict";fc.exports=xi;var Df=pe(),dc=Ar();function xi(e,t,r){dc.call(this),this.nodeType=Df.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var Dr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};xi.prototype=Object.create(dc.prototype,{nodeName:{get:function(){return this.target}},nodeValue:Dr,textContent:Dr,innerText:Dr,data:{get:Dr.get,set:function(e){Dr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new xi(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var Rr=S((rm,xc)=>{"use strict";var hi={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};xc.exports=hi.constructor=hi.prototype=hi});var gi=S((am,hc)=>{"use strict";var nm=hc.exports={nextSkippingChildren:Rf,nextAncestorSibling:mi,next:Lf,previous:If,deepLastChild:pc};function Rf(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:mi(e,t)}function mi(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function Lf(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:mi(e,t))}function pc(e){for(;e.lastChild;)e=e.lastChild;return e}function If(e,t){var r;return r=e.previousSibling,r!==null?pc(r):(r=e.parentNode,r===t?null:r)}});var Ec=S((im,vc)=>{"use strict";vc.exports=_c;var Mf=pe(),he=Rr(),mc=gi(),yc=ae(),bi={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},yi={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function gc(e,t){var r,n,a,o,l;for(n=e._currentNode[bi[t]];n!==null;){if(o=e._internalFilter(n),o===he.FILTER_ACCEPT)return e._currentNode=n,n;if(o===he.FILTER_SKIP&&(r=n[bi[t]],r!==null)){n=r;continue}for(;n!==null;){if(l=n[yi[t]],l!==null){n=l;break}if(a=n.parentNode,a===null||a===e.root||a===e._currentNode)return null;n=a}}return null}function bc(e,t){var r,n,a;if(r=e._currentNode,r===e.root)return null;for(;;){for(a=r[yi[t]];a!==null;){if(r=a,n=e._internalFilter(r),n===he.FILTER_ACCEPT)return e._currentNode=r,r;a=r[bi[t]],(n===he.FILTER_REJECT||a===null)&&(a=r[yi[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===he.FILTER_ACCEPT)return null}}function _c(e,t,r){(!e||!e.nodeType)&&yc.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(_c.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof Mf))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&yc.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return he.FILTER_SKIP;if(n=this._filter,n===null)r=he.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===he.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return gc(this,"first")}},lastChild:{value:function(){return gc(this,"last")}},previousSibling:{value:function(){return bc(this,"previous")}},nextSibling:{value:function(){return bc(this,"next")}},previousNode:{value:function(){var t,r,n,a;for(t=this._currentNode;t!==this._root;){for(n=t.previousSibling;n;n=t.previousSibling)if(t=n,r=this._internalFilter(t),r!==he.FILTER_REJECT){for(a=t.lastChild;a&&(t=a,r=this._internalFilter(t),r!==he.FILTER_REJECT);a=t.lastChild);if(r===he.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===he.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,a;t=this._currentNode,r=he.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===he.FILTER_ACCEPT)return this._currentNode=t,t;if(r===he.FILTER_REJECT)break}for(a=mc.nextSkippingChildren(t,this.root);a;a=mc.nextSkippingChildren(t,this.root)){if(t=a,r=this._internalFilter(t),r===he.FILTER_ACCEPT)return this._currentNode=t,t;if(r===he.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var kc=S((sm,Ac)=>{"use strict";Ac.exports=Nc;var _i=Rr(),vi=gi(),Sc=ae();function Of(e,t,r){return r?vi.next(e,t):e===t?null:vi.previous(e,null)}function Tc(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function wc(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=Of(r,e._root,t),r===null)return null;var a=e._internalFilter(r);if(a===_i.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function Nc(e,t,r){(!e||!e.nodeType)&&Sc.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(Nc.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,n;if(this._active&&Sc.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return _i.FILTER_SKIP;if(n=this._filter,n===null)r=_i.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!Tc(t,this._root)&&Tc(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=vi.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return wc(this,!0)}},previousNode:{value:function(){return wc(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var kn=S((om,Cc)=>{"use strict";Cc.exports=me;function me(e){if(!e)return Object.create(me.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=me.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(me.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(me.portPattern)){var n=t[4].lastIndexOf(":");this.host=t[4].substring(0,n),this.port=t[4].substring(n+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}me.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;me.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;me.portPattern=/:\d+$/;me.authorityPattern=/^[^:\/?#]+:\/\//;me.hierarchyPattern=/^[^:\/?#]+:\//;me.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};me.prototype={constructor:me,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return me.authorityPattern.test(this.url)},isHierarchical:function(){return me.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new me(e),n=new me;return r.scheme!==void 0?(n.scheme=r.scheme,n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=o(r.path),n.query=r.query):(n.scheme=t.scheme,r.host!==void 0?(n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=o(r.path),n.query=r.query):(n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,r.path?(r.path.charAt(0)==="/"?n.path=o(r.path):(n.path=a(t.path,r.path),n.path=o(n.path)),n.query=r.query):(n.path=t.path,r.query!==void 0?n.query=r.query:n.query=t.query))),n.fragment=r.fragment,n.toString();function a(l,x){if(t.host!==void 0&&!t.path)return"/"+x;var p=l.lastIndexOf("/");return p===-1?x:l.substring(0,p+1)+x}function o(l){if(!l)return l;for(var x="";l.length>0;){if(l==="."||l===".."){l="";break}var p=l.substring(0,2),m=l.substring(0,3),b=l.substring(0,4);if(m==="../")l=l.substring(3);else if(p==="./")l=l.substring(2);else if(m==="/./")l="/"+l.substring(3);else if(p==="/."&&l.length===2)l="/";else if(b==="/../"||m==="/.."&&l.length===3)l="/"+l.substring(4),x=x.replace(/\/?[^\/]*$/,"");else{var D=l.match(/(\/?([^\/]*))/)[0];x+=D,l=l.substring(D.length)}}return x}}}});var Lc=S((cm,Rc)=>{"use strict";Rc.exports=Ei;var Dc=Bt();function Ei(e,t){Dc.call(this,e,t)}Ei.prototype=Object.create(Dc.prototype,{constructor:{value:Ei}})});var Ti=S((lm,Ic)=>{"use strict";Ic.exports={Event:Bt(),UIEvent:Sa(),MouseEvent:Aa(),CustomEvent:Lc()}});var Oc=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.hyphenate=Yt.parse=void 0;function qf(e){let t=[],r=0,n=0,a=0,o=0,l=0,x=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:a===0?a=39:a===39&&e.charCodeAt(r-1)!==92&&(a=0);break;case 34:a===0?a=34:a===34&&e.charCodeAt(r-1)!==92&&(a=0);break;case 58:!x&&n===0&&a===0&&(x=Mc(e.substring(l,r-1).trim()),o=r);break;case 59:if(x&&o>0&&n===0&&a===0){let m=e.substring(o,r-1).trim();t.push(x,m),l=r,o=0,x=null}break}if(x&&o){let p=e.slice(o).trim();t.push(x,p)}return t}Yt.parse=qf;function Mc(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Yt.hyphenate=Mc});var Cn=S((dm,Bc)=>{"use strict";var{parse:Ff}=Oc();Bc.exports=function(e){let t=new Pc(e),r={get:function(n,a){return a in n?n[a]:n.getPropertyValue(qc(a))},has:function(n,a){return!0},set:function(n,a,o){return a in n?n[a]=o:n.setProperty(qc(a),o??void 0),!0}};return new Proxy(t,r)};function qc(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pc(e){this._element=e}var Fc="!important";function Hc(e){let t={property:{},priority:{}};if(!e)return t;let r=Ff(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let a=r[n],o=r[n+1];o.endsWith(Fc)&&(t.priority[a]="important",o=o.slice(0,-Fc.length).trim()),t.property[a]=o}return t}var Kt={};Pc.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=Hc(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==Kt&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==Kt&&!/^important$/i.test(r))){var n=this._parsed;if(t===Kt){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var a=Hc(e+":"+t);if(Object.getOwnPropertyNames(a.property).length===0||Object.getOwnPropertyNames(a.priority).length!==0)return;for(var o in a.property)n.property[o]=a.property[o],r!==Kt&&(r!==""?n.priority[o]="important":n.priority[o]&&delete n.priority[o])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,Kt)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,Kt,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var wi=S((fm,Uc)=>{"use strict";var de=kn();Uc.exports=Lr;function Lr(){}Lr.prototype=Object.create(Object.prototype,{_url:{get:function(){return new de(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,de.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,de.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,de.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,de.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,de.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new de(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,de.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,de.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new de(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,de.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var n=[e.scheme,e.host,+e.port||r];return n[0]+"://"+n[1]+(n[2]===r?"":":"+n[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});Lr._inherit=function(e){Object.getOwnPropertyNames(Lr.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(Lr.prototype,t);Object.defineProperty(e,t,r)}})}});var Si=S((xm,Gc)=>{"use strict";var jc=Wa(),Hf=pn().isApiWritable;Gc.exports=function(e,t,r,n){var a=e.ctor;if(a){var o=e.props||{};if(e.attributes)for(var l in e.attributes){var x=e.attributes[l];(typeof x!="object"||Array.isArray(x))&&(x={type:x}),x.name||(x.name=l.toLowerCase()),o[l]=jc.property(x)}o.constructor={value:a,writable:Hf},a.prototype=Object.create((e.superclass||t).prototype,o),e.events&&Bf(a,e.events),r[e.name]=a}else a=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(p){n[p]=a}),a};function Vc(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}Vc.prototype.build=function(){return()=>{}};function Pf(e,t,r,n){var a=e.ownerDocument||Object.create(null),o=e.form||Object.create(null);e[t]=new Vc(n,a,o,e).build()}function Bf(e,t){var r=e.prototype;t.forEach(function(n){Object.defineProperty(r,"on"+n,{get:function(){return this._getEventHandler(n)},set:function(a){this._setEventHandler(n,a)}}),jc.registerChangeHandler(e,"on"+n,Pf)})}});var Ln=S(Rn=>{"use strict";var Ni=pe(),Wc=$t(),Uf=Cn(),Se=ae(),zc=wi(),jf=Si(),Qe=Rn.elements={},Ir=Object.create(null);Rn.createElement=function(e,t,r){var n=Ir[t]||Gf;return new n(e,t,r)};function v(e){return jf(e,T,Qe,Ir)}function ie(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function Dn(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var Xt={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},Vf={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Oe=function(e,t,r){T.call(this,e,t,r),this._form=null},T=Rn.HTMLElement=v({superclass:Wc,name:"HTMLElement",ctor:function(t,r,n){Wc.call(this,t,r,Se.NAMESPACE.HTML,n)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof Ir.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new Uf(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:Se.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in Vf||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),Gf=v({name:"HTMLUnknownElement",ctor:function(t,r,n){T.call(this,t,r,n)}}),qe={form:{get:function(){return this._form}}};v({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:ie,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:Xt,coords:String,charset:String,name:String,rev:String,shape:String}});zc._inherit(Ir.a.prototype);v({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:ie,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:Xt,noHref:Boolean}});zc._inherit(Ir.area.prototype);v({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{clear:String}});v({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{target:String}});v({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){T.call(this,t,r,n)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});v({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:ie,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});v({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{compact:Boolean}});v({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{value:String}});v({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{open:Boolean}});v({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,type:String,width:String,height:String,align:String,name:String}});v({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{disabled:Boolean,name:String}});v({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});v({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});v({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{xmlns:ie,version:String}});v({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:Xt,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:ie,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});v({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{alt:String,src:ie,srcset:String,crossOrigin:Dn,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:Xt,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:ie,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:ie,border:{type:String,treatNullAsEmptyString:!0}}});v({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:{form:qe.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var n=t[r];n.checked=n===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:ie,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});v({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});v({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});v({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{htmlFor:{name:"for",type:String}}});v({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{href:ie,rel:String,media:String,hreflang:String,type:String,crossOrigin:Dn,nonce:String,integrity:String,referrerPolicy:Xt,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});v({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{name:String}});v({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});v({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});v({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe});v({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{cite:ie,dateTime:String}});v({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===Ni.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});v({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{data:ie,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:ie,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});v({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});v({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===Ni.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});v({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{name:String}});v({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});v({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});v({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:qe,attributes:{max:{type:Number,float:!0,default:1,min:0}}});v({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{cite:ie}});v({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var n=this.childNodes[t];n.nodeType===Ni.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:ie,type:String,charset:String,referrerPolicy:Xt,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:Dn,nonce:String,integrity:String}});v({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:{form:qe.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});v({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});v({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{align:String}});v({name:"HTMLTableCellElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});v({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});v({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});v({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){T.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});v({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});v({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});v({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){Oe.call(this,t,r,n)},props:{form:qe.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});v({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});v({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});v({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});v({name:"HTMLMediaElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,crossOrigin:Dn,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});v({name:"HTMLAudioElement",tag:"audio",superclass:Qe.HTMLMediaElement,ctor:function(t,r,n){Qe.HTMLMediaElement.call(this,t,r,n)}});v({name:"HTMLVideoElement",tag:"video",superclass:Qe.HTMLMediaElement,ctor:function(t,r,n){Qe.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:ie,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});v({tag:"td",name:"HTMLTableDataCellElement",superclass:Qe.HTMLTableCellElement,ctor:function(t,r,n){Qe.HTMLTableCellElement.call(this,t,r,n)}});v({tag:"th",name:"HTMLTableHeaderCellElement",superclass:Qe.HTMLTableCellElement,ctor:function(t,r,n){Qe.HTMLTableCellElement.call(this,t,r,n)}});v({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){T.call(this,t,r,n)}});v({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{getContext:{value:Se.nyi},probablySupportsContext:{value:Se.nyi},setContext:{value:Se.nyi},transferControlToProxy:{value:Se.nyi},toDataURL:{value:Se.nyi},toBlob:{value:Se.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});v({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{show:{value:Se.nyi},showModal:{value:Se.nyi},close:{value:Se.nyi}},attributes:{open:Boolean,returnValue:String}});v({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){T.call(this,t,r,n)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:ie,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});v({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:ie,type:String,width:String,height:String}});v({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{src:ie,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:Se.nyi},track:{get:Se.nyi}}});v({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});v({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){T.call(this,t,r,n)},attributes:{compact:Boolean}});v({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var Ci=S(In=>{"use strict";var $c=$t(),Wf=Si(),zf=ae(),$f=Cn(),Yf=In.elements={},Yc=Object.create(null);In.createElement=function(e,t,r){var n=Yc[t]||ki;return new n(e,t,r)};function Ai(e){return Wf(e,ki,Yf,Yc)}var ki=Ai({superclass:$c,name:"SVGElement",ctor:function(t,r,n){$c.call(this,t,r,zf.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new $f(this)),this._style}}}});Ai({name:"SVGSVGElement",ctor:function(t,r,n){ki.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return In.createElement(this.ownerDocument,"rect",null)}}}});Ai({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var Xc=S((mm,Kc)=>{"use strict";Kc.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var On=S((gm,sl)=>{"use strict";sl.exports=Or;var ge=pe(),Kf=kt(),rl=gn(),gt=$t(),Xf=ci(),Qf=ui(),Mr=Bt(),Jf=fi(),Zf=pi(),ex=qr(),tx=Ec(),rx=kc(),Qc=Rr(),Jc=kn(),Zc=En(),nx=Ti(),Mn=bn(),Di=Ln(),ax=Ci(),j=ae(),Qt=Xc(),Zt=j.NAMESPACE,Ri=pn().isApiWritable;function Or(e,t){rl.call(this),this.nodeType=ge.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new ex(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var ix={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},sx={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},Jt=function(e,t,r){return{get:function(){var n=e.call(this);return n?n[t]:r},set:function(n){var a=e.call(this);a&&(a[t]=n)}}};function el(e,t){var r,n,a;return e===""&&(e=null),Mn.isValidQName(t)||j.InvalidCharacterError(),r=null,n=t,a=t.indexOf(":"),a>=0&&(r=t.substring(0,a),n=t.substring(a+1)),r!==null&&e===null&&j.NamespaceError(),r==="xml"&&e!==Zt.XML&&j.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Zt.XMLNS&&j.NamespaceError(),e===Zt.XMLNS&&!(r==="xmlns"||t==="xmlns")&&j.NamespaceError(),{namespace:e,prefix:r,localName:n}}Or.prototype=Object.create(rl.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new Mr(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:j.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new Xf(this,String(e))}},createComment:{value:function(e){return new Qf(this,e)}},createDocumentFragment:{value:function(){return new Jf(this)}},createProcessingInstruction:{value:function(e,t){return(!Mn.isValidName(e)||t.indexOf("?>")!==-1)&&j.InvalidCharacterError(),new Zf(this,e,t)}},createAttribute:{value:function(e){return e=String(e),Mn.isValidName(e)||j.InvalidCharacterError(),this.isHTML&&(e=j.toASCIILowerCase(e)),new gt._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=el(e,t);return new gt._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),Mn.isValidName(e)||j.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=j.toASCIILowerCase(e)),Di.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?Di.createElement(this,e,null):new gt(this,e,null,null)},writable:Ri},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=el(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:Ri},_createElementNS:{value:function(e,t,r){return t===Zt.HTML?Di.createElement(this,e,r):t===Zt.SVG?ax.createElement(this,e,r):new gt(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=sx[t]||t,n=nx[ix[r]];if(n){var a=new n;return a._initialized=!1,a}else j.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof ge))throw new TypeError("root not a node");return t=t===void 0?Qc.SHOW_ALL:+t,r=r===void 0?null:r,new tx(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof ge))throw new TypeError("root not a node");return t=t===void 0?Qc.SHOW_ALL:+t,r=r===void 0?null:r,new rx(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===ge.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===ge.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return ge.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return ge.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return ge.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof Je?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof Je}},getElementsByName:{value:gt.prototype.getElementsByName},getElementsByTagName:{value:gt.prototype.getElementsByTagName},getElementsByTagNameNS:{value:gt.prototype.getElementsByTagNameNS},getElementsByClassName:{value:gt.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===ge.DOCUMENT_NODE&&j.NotSupportedError(),t.nodeType===ge.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&il(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:Ri},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:j.nyi,set:j.nyi},referrer:{get:j.nyi},cookie:{get:j.nyi,set:j.nyi},lastModified:{get:j.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:j.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:Jt(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:Jt(function(){return this.body},"text",""),linkColor:Jt(function(){return this.body},"link",""),vlinkColor:Jt(function(){return this.body},"vLink",""),alinkColor:Jt(function(){return this.body},"aLink",""),bgColor:Jt(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return tl(this.documentElement,"body")},set:j.nyi},head:{get:function(){return tl(this.documentElement,"head")}},images:{get:j.nyi},embeds:{get:j.nyi},plugins:{get:j.nyi},links:{get:j.nyi},forms:{get:j.nyi},scripts:{get:j.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:j.nyi},outerHTML:{get:function(){return this.serialize()},set:j.nyi},write:{value:function(e){if(this.isHTML||j.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
5
+ `)}},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new Mr("readystatechange"),!0),this._dispatchEvent(new Mr("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new Mr("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new Mr("load"),!0)}},clone:{value:function(){var t=new Or(this.isHTML,this._address);return t._quirks=this._quirks,t._contentType=this._contentType,t}},cloneNode:{value:function(t){var r=ge.prototype.cloneNode.call(this,!1);if(t)for(var n=this.firstChild;n!==null;n=n.nextSibling)r._appendChild(r.importNode(n,!0));return r._updateDocTypeElement(),r}},isEqual:{value:function(t){return!0}},mutateValue:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.VALUE,target:e,data:e.data})}},mutateAttr:{value:function(e,t){this.mutationHandler&&this.mutationHandler({type:Qt.ATTR,target:e.ownerElement,attr:e})}},mutateRemoveAttr:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.REMOVE_ATTR,target:e.ownerElement,attr:e})}},mutateRemove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.REMOVE,target:e.parentNode,node:e}),al(e)}},mutateInsert:{value:function(e){nl(e),this.mutationHandler&&this.mutationHandler({type:Qt.INSERT,target:e.parentNode,node:e})}},mutateMove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Qt.MOVE,target:e})}},addId:{value:function(t,r){var n=this.byId[t];n?(n instanceof Je||(n=new Je(n),this.byId[t]=n),n.add(r)):this.byId[t]=r}},delId:{value:function(t,r){var n=this.byId[t];j.assert(n),n instanceof Je?(n.del(r),n.length===1&&(this.byId[t]=n.downgrade())):this.byId[t]=void 0}},_resolve:{value:function(e){return new Jc(this._documentBaseURL).resolve(e)}},_documentBaseURL:{get:function(){var e=this._address;e==="about:blank"&&(e="/");var t=this.querySelector("base[href]");return t?new Jc(e).resolve(t.getAttribute("href")):e}},_templateDoc:{get:function(){if(!this._templateDocCache){var e=new Or(this.isHTML,this._address);this._templateDocCache=e._templateDocCache=e}return this._templateDocCache}},querySelector:{value:function(e){return Zc(e,this)[0]}},querySelectorAll:{value:function(e){var t=Zc(e,this);return t.item?t:new Kf(t)}}});var ox=["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"];ox.forEach(function(e){Object.defineProperty(Or.prototype,"on"+e,{get:function(){return this._getEventHandler(e)},set:function(t){this._setEventHandler(e,t)}})});function tl(e,t){if(e&&e.isHTML){for(var r=e.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===ge.ELEMENT_NODE&&r.localName===t&&r.namespaceURI===Zt.HTML)return r}return null}function cx(e){if(e._nid=e.ownerDocument._nextnid++,e.ownerDocument._nodes[e._nid]=e,e.nodeType===ge.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.addId(t,e),e._roothook&&e._roothook()}}function lx(e){if(e.nodeType===ge.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.delId(t,e)}e.ownerDocument._nodes[e._nid]=void 0,e._nid=void 0}function nl(e){if(cx(e),e.nodeType===ge.ELEMENT_NODE)for(var t=e.firstChild;t!==null;t=t.nextSibling)nl(t)}function al(e){lx(e);for(var t=e.firstChild;t!==null;t=t.nextSibling)al(t)}function il(e,t){e.ownerDocument=t,e._lastModTime=void 0,Object.prototype.hasOwnProperty.call(e,"_tagName")&&(e._tagName=void 0);for(var r=e.firstChild;r!==null;r=r.nextSibling)il(r,t)}function Je(e){this.nodes=Object.create(null),this.nodes[e._nid]=e,this.length=1,this.firstNode=void 0}Je.prototype.add=function(e){this.nodes[e._nid]||(this.nodes[e._nid]=e,this.length++,this.firstNode=void 0)};Je.prototype.del=function(e){this.nodes[e._nid]&&(delete this.nodes[e._nid],this.length--,this.firstNode=void 0)};Je.prototype.getFirst=function(){if(!this.firstNode){var e;for(e in this.nodes)(this.firstNode===void 0||this.firstNode.compareDocumentPosition(this.nodes[e])&ge.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[e])}return this.firstNode};Je.prototype.downgrade=function(){if(this.length===1){var e;for(e in this.nodes)return this.nodes[e]}return this}});var Fn=S((bm,cl)=>{"use strict";cl.exports=qn;var ux=pe(),ol=si(),dx=Tn();function qn(e,t,r,n){ol.call(this),this.nodeType=ux.DOCUMENT_TYPE_NODE,this.ownerDocument=e||null,this.name=t,this.publicId=r||"",this.systemId=n||""}qn.prototype=Object.create(ol.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:function(){return new qn(this.ownerDocument,this.name,this.publicId,this.systemId)}},isEqual:{value:function(t){return this.name===t.name&&this.publicId===t.publicId&&this.systemId===t.systemId}}});Object.defineProperties(qn.prototype,dx)});var Gn=S((ym,Rl)=>{"use strict";Rl.exports=P;var fx=On(),xx=Fn(),Li=pe(),N=ae().NAMESPACE,Tl=Ln(),Y=Tl.elements,Dt=Function.prototype.apply.bind(Array.prototype.push),Hn=-1,er=1,be=2,H=3,je=4,px=5,hx=[],mx=/^HTML$|^-\/\/W3O\/\/DTD W3 HTML Strict 3\.0\/\/EN\/\/$|^-\/W3C\/DTD HTML 4\.0 Transitional\/EN$|^\+\/\/Silmaril\/\/dtd html Pro v0r11 19970101\/\/|^-\/\/AdvaSoft Ltd\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/AS\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict\/\/|^-\/\/IETF\/\/DTD HTML 2\.0\/\/|^-\/\/IETF\/\/DTD HTML 2\.1E\/\/|^-\/\/IETF\/\/DTD HTML 3\.0\/\/|^-\/\/IETF\/\/DTD HTML 3\.2 Final\/\/|^-\/\/IETF\/\/DTD HTML 3\.2\/\/|^-\/\/IETF\/\/DTD HTML 3\/\/|^-\/\/IETF\/\/DTD HTML Level 0\/\/|^-\/\/IETF\/\/DTD HTML Level 1\/\/|^-\/\/IETF\/\/DTD HTML Level 2\/\/|^-\/\/IETF\/\/DTD HTML Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 0\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict\/\/|^-\/\/IETF\/\/DTD HTML\/\/|^-\/\/Metrius\/\/DTD Metrius Presentational\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 Tables\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 Tables\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD HTML\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD Strict HTML\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML 2\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended 1\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended Relaxed 1\.0\/\/|^-\/\/SoftQuad Software\/\/DTD HoTMetaL PRO 6\.0::19990601::extensions to HTML 4\.0\/\/|^-\/\/SoftQuad\/\/DTD HoTMetaL PRO 4\.0::19971010::extensions to HTML 4\.0\/\/|^-\/\/Spyglass\/\/DTD HTML 2\.0 Extended\/\/|^-\/\/SQ\/\/DTD HTML 2\.0 HoTMetaL \+ extensions\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava HTML\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava Strict HTML\/\/|^-\/\/W3C\/\/DTD HTML 3 1995-03-24\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Draft\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Final\/\/|^-\/\/W3C\/\/DTD HTML 3\.2\/\/|^-\/\/W3C\/\/DTD HTML 3\.2S Draft\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Transitional\/\/|^-\/\/W3C\/\/DTD HTML Experimental 19960712\/\/|^-\/\/W3C\/\/DTD HTML Experimental 970421\/\/|^-\/\/W3C\/\/DTD W3 HTML\/\/|^-\/\/W3O\/\/DTD W3 HTML 3\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML 2\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML\/\//i,gx="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ll=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,bx=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,Lt=Object.create(null);Lt[N.HTML]={__proto__:null,address:!0,applet:!0,area:!0,article:!0,aside:!0,base:!0,basefont:!0,bgsound:!0,blockquote:!0,body:!0,br:!0,button:!0,caption:!0,center:!0,col:!0,colgroup:!0,dd:!0,details:!0,dir:!0,div:!0,dl:!0,dt:!0,embed:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,frame:!0,frameset:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,head:!0,header:!0,hgroup:!0,hr:!0,html:!0,iframe:!0,img:!0,input:!0,li:!0,link:!0,listing:!0,main:!0,marquee:!0,menu:!0,meta:!0,nav:!0,noembed:!0,noframes:!0,noscript:!0,object:!0,ol:!0,p:!0,param:!0,plaintext:!0,pre:!0,script:!0,section:!0,select:!0,source:!0,style:!0,summary:!0,table:!0,tbody:!0,td:!0,template:!0,textarea:!0,tfoot:!0,th:!0,thead:!0,title:!0,tr:!0,track:!0,ul:!0,wbr:!0,xmp:!0};Lt[N.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};Lt[N.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var Oi=Object.create(null);Oi[N.HTML]={__proto__:null,address:!0,div:!0,p:!0};var wl=Object.create(null);wl[N.HTML]={__proto__:null,dd:!0,dt:!0};var tr=Object.create(null);tr[N.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var Sl=Object.create(null);Sl[N.HTML]={__proto__:null,dd:!0,dt:!0,li:!0,menuitem:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0};var Nl=Object.create(null);Nl[N.HTML]={__proto__:null,caption:!0,colgroup:!0,dd:!0,dt:!0,li:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0,tbody:!0,td:!0,tfoot:!0,th:!0,thead:!0,tr:!0};var Un=Object.create(null);Un[N.HTML]={__proto__:null,table:!0,template:!0,html:!0};var jn=Object.create(null);jn[N.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var qi=Object.create(null);qi[N.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var Al=Object.create(null);Al[N.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var Ve=Object.create(null);Ve[N.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0};Ve[N.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};Ve[N.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var Vn=Object.create(Ve);Vn[N.HTML]=Object.create(Ve[N.HTML]);Vn[N.HTML].ol=!0;Vn[N.HTML].ul=!0;var Fi=Object.create(Ve);Fi[N.HTML]=Object.create(Ve[N.HTML]);Fi[N.HTML].button=!0;var kl=Object.create(null);kl[N.HTML]={__proto__:null,html:!0,table:!0,template:!0};var yx=Object.create(null);yx[N.HTML]={__proto__:null,optgroup:!0,option:!0};var Cl=Object.create(null);Cl[N.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var Dl=Object.create(null);Dl[N.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var ul={__proto__:null,"xlink:actuate":N.XLINK,"xlink:arcrole":N.XLINK,"xlink:href":N.XLINK,"xlink:role":N.XLINK,"xlink:show":N.XLINK,"xlink:title":N.XLINK,"xlink:type":N.XLINK,"xml:base":N.XML,"xml:lang":N.XML,"xml:space":N.XML,xmlns:N.XMLNS,"xmlns:xlink":N.XMLNS},dl={__proto__:null,attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},fl={__proto__:null,altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},xl={__proto__:null,0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},_x={__proto__:null,AElig:198,"AElig;":198,AMP:38,"AMP;":38,Aacute:193,"Aacute;":193,"Abreve;":258,Acirc:194,"Acirc;":194,"Acy;":1040,"Afr;":[55349,56580],Agrave:192,"Agrave;":192,"Alpha;":913,"Amacr;":256,"And;":10835,"Aogon;":260,"Aopf;":[55349,56632],"ApplyFunction;":8289,Aring:197,"Aring;":197,"Ascr;":[55349,56476],"Assign;":8788,Atilde:195,"Atilde;":195,Auml:196,"Auml;":196,"Backslash;":8726,"Barv;":10983,"Barwed;":8966,"Bcy;":1041,"Because;":8757,"Bernoullis;":8492,"Beta;":914,"Bfr;":[55349,56581],"Bopf;":[55349,56633],"Breve;":728,"Bscr;":8492,"Bumpeq;":8782,"CHcy;":1063,COPY:169,"COPY;":169,"Cacute;":262,"Cap;":8914,"CapitalDifferentialD;":8517,"Cayleys;":8493,"Ccaron;":268,Ccedil:199,"Ccedil;":199,"Ccirc;":264,"Cconint;":8752,"Cdot;":266,"Cedilla;":184,"CenterDot;":183,"Cfr;":8493,"Chi;":935,"CircleDot;":8857,"CircleMinus;":8854,"CirclePlus;":8853,"CircleTimes;":8855,"ClockwiseContourIntegral;":8754,"CloseCurlyDoubleQuote;":8221,"CloseCurlyQuote;":8217,"Colon;":8759,"Colone;":10868,"Congruent;":8801,"Conint;":8751,"ContourIntegral;":8750,"Copf;":8450,"Coproduct;":8720,"CounterClockwiseContourIntegral;":8755,"Cross;":10799,"Cscr;":[55349,56478],"Cup;":8915,"CupCap;":8781,"DD;":8517,"DDotrahd;":10513,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Dagger;":8225,"Darr;":8609,"Dashv;":10980,"Dcaron;":270,"Dcy;":1044,"Del;":8711,"Delta;":916,"Dfr;":[55349,56583],"DiacriticalAcute;":180,"DiacriticalDot;":729,"DiacriticalDoubleAcute;":733,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"Diamond;":8900,"DifferentialD;":8518,"Dopf;":[55349,56635],"Dot;":168,"DotDot;":8412,"DotEqual;":8784,"DoubleContourIntegral;":8751,"DoubleDot;":168,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DoubleLeftRightArrow;":8660,"DoubleLeftTee;":10980,"DoubleLongLeftArrow;":10232,"DoubleLongLeftRightArrow;":10234,"DoubleLongRightArrow;":10233,"DoubleRightArrow;":8658,"DoubleRightTee;":8872,"DoubleUpArrow;":8657,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownArrow;":8595,"DownArrowBar;":10515,"DownArrowUpArrow;":8693,"DownBreve;":785,"DownLeftRightVector;":10576,"DownLeftTeeVector;":10590,"DownLeftVector;":8637,"DownLeftVectorBar;":10582,"DownRightTeeVector;":10591,"DownRightVector;":8641,"DownRightVectorBar;":10583,"DownTee;":8868,"DownTeeArrow;":8615,"Downarrow;":8659,"Dscr;":[55349,56479],"Dstrok;":272,"ENG;":330,ETH:208,"ETH;":208,Eacute:201,"Eacute;":201,"Ecaron;":282,Ecirc:202,"Ecirc;":202,"Ecy;":1069,"Edot;":278,"Efr;":[55349,56584],Egrave:200,"Egrave;":200,"Element;":8712,"Emacr;":274,"EmptySmallSquare;":9723,"EmptyVerySmallSquare;":9643,"Eogon;":280,"Eopf;":[55349,56636],"Epsilon;":917,"Equal;":10869,"EqualTilde;":8770,"Equilibrium;":8652,"Escr;":8496,"Esim;":10867,"Eta;":919,Euml:203,"Euml;":203,"Exists;":8707,"ExponentialE;":8519,"Fcy;":1060,"Ffr;":[55349,56585],"FilledSmallSquare;":9724,"FilledVerySmallSquare;":9642,"Fopf;":[55349,56637],"ForAll;":8704,"Fouriertrf;":8497,"Fscr;":8497,"GJcy;":1027,GT:62,"GT;":62,"Gamma;":915,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"Gcirc;":284,"Gcy;":1043,"Gdot;":288,"Gfr;":[55349,56586],"Gg;":8921,"Gopf;":[55349,56638],"GreaterEqual;":8805,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"GreaterGreater;":10914,"GreaterLess;":8823,"GreaterSlantEqual;":10878,"GreaterTilde;":8819,"Gscr;":[55349,56482],"Gt;":8811,"HARDcy;":1066,"Hacek;":711,"Hat;":94,"Hcirc;":292,"Hfr;":8460,"HilbertSpace;":8459,"Hopf;":8461,"HorizontalLine;":9472,"Hscr;":8459,"Hstrok;":294,"HumpDownHump;":8782,"HumpEqual;":8783,"IEcy;":1045,"IJlig;":306,"IOcy;":1025,Iacute:205,"Iacute;":205,Icirc:206,"Icirc;":206,"Icy;":1048,"Idot;":304,"Ifr;":8465,Igrave:204,"Igrave;":204,"Im;":8465,"Imacr;":298,"ImaginaryI;":8520,"Implies;":8658,"Int;":8748,"Integral;":8747,"Intersection;":8898,"InvisibleComma;":8291,"InvisibleTimes;":8290,"Iogon;":302,"Iopf;":[55349,56640],"Iota;":921,"Iscr;":8464,"Itilde;":296,"Iukcy;":1030,Iuml:207,"Iuml;":207,"Jcirc;":308,"Jcy;":1049,"Jfr;":[55349,56589],"Jopf;":[55349,56641],"Jscr;":[55349,56485],"Jsercy;":1032,"Jukcy;":1028,"KHcy;":1061,"KJcy;":1036,"Kappa;":922,"Kcedil;":310,"Kcy;":1050,"Kfr;":[55349,56590],"Kopf;":[55349,56642],"Kscr;":[55349,56486],"LJcy;":1033,LT:60,"LT;":60,"Lacute;":313,"Lambda;":923,"Lang;":10218,"Laplacetrf;":8466,"Larr;":8606,"Lcaron;":317,"Lcedil;":315,"Lcy;":1051,"LeftAngleBracket;":10216,"LeftArrow;":8592,"LeftArrowBar;":8676,"LeftArrowRightArrow;":8646,"LeftCeiling;":8968,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVector;":8643,"LeftDownVectorBar;":10585,"LeftFloor;":8970,"LeftRightArrow;":8596,"LeftRightVector;":10574,"LeftTee;":8867,"LeftTeeArrow;":8612,"LeftTeeVector;":10586,"LeftTriangle;":8882,"LeftTriangleBar;":10703,"LeftTriangleEqual;":8884,"LeftUpDownVector;":10577,"LeftUpTeeVector;":10592,"LeftUpVector;":8639,"LeftUpVectorBar;":10584,"LeftVector;":8636,"LeftVectorBar;":10578,"Leftarrow;":8656,"Leftrightarrow;":8660,"LessEqualGreater;":8922,"LessFullEqual;":8806,"LessGreater;":8822,"LessLess;":10913,"LessSlantEqual;":10877,"LessTilde;":8818,"Lfr;":[55349,56591],"Ll;":8920,"Lleftarrow;":8666,"Lmidot;":319,"LongLeftArrow;":10229,"LongLeftRightArrow;":10231,"LongRightArrow;":10230,"Longleftarrow;":10232,"Longleftrightarrow;":10234,"Longrightarrow;":10233,"Lopf;":[55349,56643],"LowerLeftArrow;":8601,"LowerRightArrow;":8600,"Lscr;":8466,"Lsh;":8624,"Lstrok;":321,"Lt;":8810,"Map;":10501,"Mcy;":1052,"MediumSpace;":8287,"Mellintrf;":8499,"Mfr;":[55349,56592],"MinusPlus;":8723,"Mopf;":[55349,56644],"Mscr;":8499,"Mu;":924,"NJcy;":1034,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ncy;":1053,"NegativeMediumSpace;":8203,"NegativeThickSpace;":8203,"NegativeThinSpace;":8203,"NegativeVeryThinSpace;":8203,"NestedGreaterGreater;":8811,"NestedLessLess;":8810,"NewLine;":10,"Nfr;":[55349,56593],"NoBreak;":8288,"NonBreakingSpace;":160,"Nopf;":8469,"Not;":10988,"NotCongruent;":8802,"NotCupCap;":8813,"NotDoubleVerticalBar;":8742,"NotElement;":8713,"NotEqual;":8800,"NotEqualTilde;":[8770,824],"NotExists;":8708,"NotGreater;":8815,"NotGreaterEqual;":8817,"NotGreaterFullEqual;":[8807,824],"NotGreaterGreater;":[8811,824],"NotGreaterLess;":8825,"NotGreaterSlantEqual;":[10878,824],"NotGreaterTilde;":8821,"NotHumpDownHump;":[8782,824],"NotHumpEqual;":[8783,824],"NotLeftTriangle;":8938,"NotLeftTriangleBar;":[10703,824],"NotLeftTriangleEqual;":8940,"NotLess;":8814,"NotLessEqual;":8816,"NotLessGreater;":8824,"NotLessLess;":[8810,824],"NotLessSlantEqual;":[10877,824],"NotLessTilde;":8820,"NotNestedGreaterGreater;":[10914,824],"NotNestedLessLess;":[10913,824],"NotPrecedes;":8832,"NotPrecedesEqual;":[10927,824],"NotPrecedesSlantEqual;":8928,"NotReverseElement;":8716,"NotRightTriangle;":8939,"NotRightTriangleBar;":[10704,824],"NotRightTriangleEqual;":8941,"NotSquareSubset;":[8847,824],"NotSquareSubsetEqual;":8930,"NotSquareSuperset;":[8848,824],"NotSquareSupersetEqual;":8931,"NotSubset;":[8834,8402],"NotSubsetEqual;":8840,"NotSucceeds;":8833,"NotSucceedsEqual;":[10928,824],"NotSucceedsSlantEqual;":8929,"NotSucceedsTilde;":[8831,824],"NotSuperset;":[8835,8402],"NotSupersetEqual;":8841,"NotTilde;":8769,"NotTildeEqual;":8772,"NotTildeFullEqual;":8775,"NotTildeTilde;":8777,"NotVerticalBar;":8740,"Nscr;":[55349,56489],Ntilde:209,"Ntilde;":209,"Nu;":925,"OElig;":338,Oacute:211,"Oacute;":211,Ocirc:212,"Ocirc;":212,"Ocy;":1054,"Odblac;":336,"Ofr;":[55349,56594],Ograve:210,"Ograve;":210,"Omacr;":332,"Omega;":937,"Omicron;":927,"Oopf;":[55349,56646],"OpenCurlyDoubleQuote;":8220,"OpenCurlyQuote;":8216,"Or;":10836,"Oscr;":[55349,56490],Oslash:216,"Oslash;":216,Otilde:213,"Otilde;":213,"Otimes;":10807,Ouml:214,"Ouml;":214,"OverBar;":8254,"OverBrace;":9182,"OverBracket;":9140,"OverParenthesis;":9180,"PartialD;":8706,"Pcy;":1055,"Pfr;":[55349,56595],"Phi;":934,"Pi;":928,"PlusMinus;":177,"Poincareplane;":8460,"Popf;":8473,"Pr;":10939,"Precedes;":8826,"PrecedesEqual;":10927,"PrecedesSlantEqual;":8828,"PrecedesTilde;":8830,"Prime;":8243,"Product;":8719,"Proportion;":8759,"Proportional;":8733,"Pscr;":[55349,56491],"Psi;":936,QUOT:34,"QUOT;":34,"Qfr;":[55349,56596],"Qopf;":8474,"Qscr;":[55349,56492],"RBarr;":10512,REG:174,"REG;":174,"Racute;":340,"Rang;":10219,"Rarr;":8608,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"Rcy;":1056,"Re;":8476,"ReverseElement;":8715,"ReverseEquilibrium;":8651,"ReverseUpEquilibrium;":10607,"Rfr;":8476,"Rho;":929,"RightAngleBracket;":10217,"RightArrow;":8594,"RightArrowBar;":8677,"RightArrowLeftArrow;":8644,"RightCeiling;":8969,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVector;":8642,"RightDownVectorBar;":10581,"RightFloor;":8971,"RightTee;":8866,"RightTeeArrow;":8614,"RightTeeVector;":10587,"RightTriangle;":8883,"RightTriangleBar;":10704,"RightTriangleEqual;":8885,"RightUpDownVector;":10575,"RightUpTeeVector;":10588,"RightUpVector;":8638,"RightUpVectorBar;":10580,"RightVector;":8640,"RightVectorBar;":10579,"Rightarrow;":8658,"Ropf;":8477,"RoundImplies;":10608,"Rrightarrow;":8667,"Rscr;":8475,"Rsh;":8625,"RuleDelayed;":10740,"SHCHcy;":1065,"SHcy;":1064,"SOFTcy;":1068,"Sacute;":346,"Sc;":10940,"Scaron;":352,"Scedil;":350,"Scirc;":348,"Scy;":1057,"Sfr;":[55349,56598],"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"ShortRightArrow;":8594,"ShortUpArrow;":8593,"Sigma;":931,"SmallCircle;":8728,"Sopf;":[55349,56650],"Sqrt;":8730,"Square;":9633,"SquareIntersection;":8851,"SquareSubset;":8847,"SquareSubsetEqual;":8849,"SquareSuperset;":8848,"SquareSupersetEqual;":8850,"SquareUnion;":8852,"Sscr;":[55349,56494],"Star;":8902,"Sub;":8912,"Subset;":8912,"SubsetEqual;":8838,"Succeeds;":8827,"SucceedsEqual;":10928,"SucceedsSlantEqual;":8829,"SucceedsTilde;":8831,"SuchThat;":8715,"Sum;":8721,"Sup;":8913,"Superset;":8835,"SupersetEqual;":8839,"Supset;":8913,THORN:222,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"TScy;":1062,"Tab;":9,"Tau;":932,"Tcaron;":356,"Tcedil;":354,"Tcy;":1058,"Tfr;":[55349,56599],"Therefore;":8756,"Theta;":920,"ThickSpace;":[8287,8202],"ThinSpace;":8201,"Tilde;":8764,"TildeEqual;":8771,"TildeFullEqual;":8773,"TildeTilde;":8776,"Topf;":[55349,56651],"TripleDot;":8411,"Tscr;":[55349,56495],"Tstrok;":358,Uacute:218,"Uacute;":218,"Uarr;":8607,"Uarrocir;":10569,"Ubrcy;":1038,"Ubreve;":364,Ucirc:219,"Ucirc;":219,"Ucy;":1059,"Udblac;":368,"Ufr;":[55349,56600],Ugrave:217,"Ugrave;":217,"Umacr;":362,"UnderBar;":95,"UnderBrace;":9183,"UnderBracket;":9141,"UnderParenthesis;":9181,"Union;":8899,"UnionPlus;":8846,"Uogon;":370,"Uopf;":[55349,56652],"UpArrow;":8593,"UpArrowBar;":10514,"UpArrowDownArrow;":8645,"UpDownArrow;":8597,"UpEquilibrium;":10606,"UpTee;":8869,"UpTeeArrow;":8613,"Uparrow;":8657,"Updownarrow;":8661,"UpperLeftArrow;":8598,"UpperRightArrow;":8599,"Upsi;":978,"Upsilon;":933,"Uring;":366,"Uscr;":[55349,56496],"Utilde;":360,Uuml:220,"Uuml;":220,"VDash;":8875,"Vbar;":10987,"Vcy;":1042,"Vdash;":8873,"Vdashl;":10982,"Vee;":8897,"Verbar;":8214,"Vert;":8214,"VerticalBar;":8739,"VerticalLine;":124,"VerticalSeparator;":10072,"VerticalTilde;":8768,"VeryThinSpace;":8202,"Vfr;":[55349,56601],"Vopf;":[55349,56653],"Vscr;":[55349,56497],"Vvdash;":8874,"Wcirc;":372,"Wedge;":8896,"Wfr;":[55349,56602],"Wopf;":[55349,56654],"Wscr;":[55349,56498],"Xfr;":[55349,56603],"Xi;":926,"Xopf;":[55349,56655],"Xscr;":[55349,56499],"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,Yacute:221,"Yacute;":221,"Ycirc;":374,"Ycy;":1067,"Yfr;":[55349,56604],"Yopf;":[55349,56656],"Yscr;":[55349,56500],"Yuml;":376,"ZHcy;":1046,"Zacute;":377,"Zcaron;":381,"Zcy;":1047,"Zdot;":379,"ZeroWidthSpace;":8203,"Zeta;":918,"Zfr;":8488,"Zopf;":8484,"Zscr;":[55349,56501],aacute:225,"aacute;":225,"abreve;":259,"ac;":8766,"acE;":[8766,819],"acd;":8767,acirc:226,"acirc;":226,acute:180,"acute;":180,"acy;":1072,aelig:230,"aelig;":230,"af;":8289,"afr;":[55349,56606],agrave:224,"agrave;":224,"alefsym;":8501,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,amp:38,"amp;":38,"and;":8743,"andand;":10837,"andd;":10844,"andslope;":10840,"andv;":10842,"ang;":8736,"ange;":10660,"angle;":8736,"angmsd;":8737,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrt;":8735,"angrtvb;":8894,"angrtvbd;":10653,"angsph;":8738,"angst;":197,"angzarr;":9084,"aogon;":261,"aopf;":[55349,56658],"ap;":8776,"apE;":10864,"apacir;":10863,"ape;":8778,"apid;":8779,"apos;":39,"approx;":8776,"approxeq;":8778,aring:229,"aring;":229,"ascr;":[55349,56502],"ast;":42,"asymp;":8776,"asympeq;":8781,atilde:227,"atilde;":227,auml:228,"auml;":228,"awconint;":8755,"awint;":10769,"bNot;":10989,"backcong;":8780,"backepsilon;":1014,"backprime;":8245,"backsim;":8765,"backsimeq;":8909,"barvee;":8893,"barwed;":8965,"barwedge;":8965,"bbrk;":9141,"bbrktbrk;":9142,"bcong;":8780,"bcy;":1073,"bdquo;":8222,"becaus;":8757,"because;":8757,"bemptyv;":10672,"bepsi;":1014,"bernou;":8492,"beta;":946,"beth;":8502,"between;":8812,"bfr;":[55349,56607],"bigcap;":8898,"bigcirc;":9711,"bigcup;":8899,"bigodot;":10752,"bigoplus;":10753,"bigotimes;":10754,"bigsqcup;":10758,"bigstar;":9733,"bigtriangledown;":9661,"bigtriangleup;":9651,"biguplus;":10756,"bigvee;":8897,"bigwedge;":8896,"bkarow;":10509,"blacklozenge;":10731,"blacksquare;":9642,"blacktriangle;":9652,"blacktriangledown;":9662,"blacktriangleleft;":9666,"blacktriangleright;":9656,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"bne;":[61,8421],"bnequiv;":[8801,8421],"bnot;":8976,"bopf;":[55349,56659],"bot;":8869,"bottom;":8869,"bowtie;":8904,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxH;":9552,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxV;":9553,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxbox;":10697,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxh;":9472,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxminus;":8863,"boxplus;":8862,"boxtimes;":8864,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxv;":9474,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"bprime;":8245,"breve;":728,brvbar:166,"brvbar;":166,"bscr;":[55349,56503],"bsemi;":8271,"bsim;":8765,"bsime;":8909,"bsol;":92,"bsolb;":10693,"bsolhsub;":10184,"bull;":8226,"bullet;":8226,"bump;":8782,"bumpE;":10926,"bumpe;":8783,"bumpeq;":8783,"cacute;":263,"cap;":8745,"capand;":10820,"capbrcup;":10825,"capcap;":10827,"capcup;":10823,"capdot;":10816,"caps;":[8745,65024],"caret;":8257,"caron;":711,"ccaps;":10829,"ccaron;":269,ccedil:231,"ccedil;":231,"ccirc;":265,"ccups;":10828,"ccupssm;":10832,"cdot;":267,cedil:184,"cedil;":184,"cemptyv;":10674,cent:162,"cent;":162,"centerdot;":183,"cfr;":[55349,56608],"chcy;":1095,"check;":10003,"checkmark;":10003,"chi;":967,"cir;":9675,"cirE;":10691,"circ;":710,"circeq;":8791,"circlearrowleft;":8634,"circlearrowright;":8635,"circledR;":174,"circledS;":9416,"circledast;":8859,"circledcirc;":8858,"circleddash;":8861,"cire;":8791,"cirfnint;":10768,"cirmid;":10991,"cirscir;":10690,"clubs;":9827,"clubsuit;":9827,"colon;":58,"colone;":8788,"coloneq;":8788,"comma;":44,"commat;":64,"comp;":8705,"compfn;":8728,"complement;":8705,"complexes;":8450,"cong;":8773,"congdot;":10861,"conint;":8750,"copf;":[55349,56660],"coprod;":8720,copy:169,"copy;":169,"copysr;":8471,"crarr;":8629,"cross;":10007,"cscr;":[55349,56504],"csub;":10959,"csube;":10961,"csup;":10960,"csupe;":10962,"ctdot;":8943,"cudarrl;":10552,"cudarrr;":10549,"cuepr;":8926,"cuesc;":8927,"cularr;":8630,"cularrp;":10557,"cup;":8746,"cupbrcap;":10824,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"cupor;":10821,"cups;":[8746,65024],"curarr;":8631,"curarrm;":10556,"curlyeqprec;":8926,"curlyeqsucc;":8927,"curlyvee;":8910,"curlywedge;":8911,curren:164,"curren;":164,"curvearrowleft;":8630,"curvearrowright;":8631,"cuvee;":8910,"cuwed;":8911,"cwconint;":8754,"cwint;":8753,"cylcty;":9005,"dArr;":8659,"dHar;":10597,"dagger;":8224,"daleth;":8504,"darr;":8595,"dash;":8208,"dashv;":8867,"dbkarow;":10511,"dblac;":733,"dcaron;":271,"dcy;":1076,"dd;":8518,"ddagger;":8225,"ddarr;":8650,"ddotseq;":10871,deg:176,"deg;":176,"delta;":948,"demptyv;":10673,"dfisht;":10623,"dfr;":[55349,56609],"dharl;":8643,"dharr;":8642,"diam;":8900,"diamond;":8900,"diamondsuit;":9830,"diams;":9830,"die;":168,"digamma;":989,"disin;":8946,"div;":247,divide:247,"divide;":247,"divideontimes;":8903,"divonx;":8903,"djcy;":1106,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"dopf;":[55349,56661],"dot;":729,"doteq;":8784,"doteqdot;":8785,"dotminus;":8760,"dotplus;":8724,"dotsquare;":8865,"doublebarwedge;":8966,"downarrow;":8595,"downdownarrows;":8650,"downharpoonleft;":8643,"downharpoonright;":8642,"drbkarow;":10512,"drcorn;":8991,"drcrop;":8972,"dscr;":[55349,56505],"dscy;":1109,"dsol;":10742,"dstrok;":273,"dtdot;":8945,"dtri;":9663,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"dwangle;":10662,"dzcy;":1119,"dzigrarr;":10239,"eDDot;":10871,"eDot;":8785,eacute:233,"eacute;":233,"easter;":10862,"ecaron;":283,"ecir;":8790,ecirc:234,"ecirc;":234,"ecolon;":8789,"ecy;":1101,"edot;":279,"ee;":8519,"efDot;":8786,"efr;":[55349,56610],"eg;":10906,egrave:232,"egrave;":232,"egs;":10902,"egsdot;":10904,"el;":10905,"elinters;":9191,"ell;":8467,"els;":10901,"elsdot;":10903,"emacr;":275,"empty;":8709,"emptyset;":8709,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"emsp;":8195,"eng;":331,"ensp;":8194,"eogon;":281,"eopf;":[55349,56662],"epar;":8917,"eparsl;":10723,"eplus;":10865,"epsi;":949,"epsilon;":949,"epsiv;":1013,"eqcirc;":8790,"eqcolon;":8789,"eqsim;":8770,"eqslantgtr;":10902,"eqslantless;":10901,"equals;":61,"equest;":8799,"equiv;":8801,"equivDD;":10872,"eqvparsl;":10725,"erDot;":8787,"erarr;":10609,"escr;":8495,"esdot;":8784,"esim;":8770,"eta;":951,eth:240,"eth;":240,euml:235,"euml;":235,"euro;":8364,"excl;":33,"exist;":8707,"expectation;":8496,"exponentiale;":8519,"fallingdotseq;":8786,"fcy;":1092,"female;":9792,"ffilig;":64259,"fflig;":64256,"ffllig;":64260,"ffr;":[55349,56611],"filig;":64257,"fjlig;":[102,106],"flat;":9837,"fllig;":64258,"fltns;":9649,"fnof;":402,"fopf;":[55349,56663],"forall;":8704,"fork;":8916,"forkv;":10969,"fpartint;":10765,frac12:189,"frac12;":189,"frac13;":8531,frac14:188,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,frac34:190,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"frasl;":8260,"frown;":8994,"fscr;":[55349,56507],"gE;":8807,"gEl;":10892,"gacute;":501,"gamma;":947,"gammad;":989,"gap;":10886,"gbreve;":287,"gcirc;":285,"gcy;":1075,"gdot;":289,"ge;":8805,"gel;":8923,"geq;":8805,"geqq;":8807,"geqslant;":10878,"ges;":10878,"gescc;":10921,"gesdot;":10880,"gesdoto;":10882,"gesdotol;":10884,"gesl;":[8923,65024],"gesles;":10900,"gfr;":[55349,56612],"gg;":8811,"ggg;":8921,"gimel;":8503,"gjcy;":1107,"gl;":8823,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gnap;":10890,"gnapprox;":10890,"gne;":10888,"gneq;":10888,"gneqq;":8809,"gnsim;":8935,"gopf;":[55349,56664],"grave;":96,"gscr;":8458,"gsim;":8819,"gsime;":10894,"gsiml;":10896,gt:62,"gt;":62,"gtcc;":10919,"gtcir;":10874,"gtdot;":8919,"gtlPar;":10645,"gtquest;":10876,"gtrapprox;":10886,"gtrarr;":10616,"gtrdot;":8919,"gtreqless;":8923,"gtreqqless;":10892,"gtrless;":8823,"gtrsim;":8819,"gvertneqq;":[8809,65024],"gvnE;":[8809,65024],"hArr;":8660,"hairsp;":8202,"half;":189,"hamilt;":8459,"hardcy;":1098,"harr;":8596,"harrcir;":10568,"harrw;":8621,"hbar;":8463,"hcirc;":293,"hearts;":9829,"heartsuit;":9829,"hellip;":8230,"hercon;":8889,"hfr;":[55349,56613],"hksearow;":10533,"hkswarow;":10534,"hoarr;":8703,"homtht;":8763,"hookleftarrow;":8617,"hookrightarrow;":8618,"hopf;":[55349,56665],"horbar;":8213,"hscr;":[55349,56509],"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,iacute:237,"iacute;":237,"ic;":8291,icirc:238,"icirc;":238,"icy;":1080,"iecy;":1077,iexcl:161,"iexcl;":161,"iff;":8660,"ifr;":[55349,56614],igrave:236,"igrave;":236,"ii;":8520,"iiiint;":10764,"iiint;":8749,"iinfin;":10716,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imagline;":8464,"imagpart;":8465,"imath;":305,"imof;":8887,"imped;":437,"in;":8712,"incare;":8453,"infin;":8734,"infintie;":10717,"inodot;":305,"int;":8747,"intcal;":8890,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"intprod;":10812,"iocy;":1105,"iogon;":303,"iopf;":[55349,56666],"iota;":953,"iprod;":10812,iquest:191,"iquest;":191,"iscr;":[55349,56510],"isin;":8712,"isinE;":8953,"isindot;":8949,"isins;":8948,"isinsv;":8947,"isinv;":8712,"it;":8290,"itilde;":297,"iukcy;":1110,iuml:239,"iuml;":239,"jcirc;":309,"jcy;":1081,"jfr;":[55349,56615],"jmath;":567,"jopf;":[55349,56667],"jscr;":[55349,56511],"jsercy;":1112,"jukcy;":1108,"kappa;":954,"kappav;":1008,"kcedil;":311,"kcy;":1082,"kfr;":[55349,56616],"kgreen;":312,"khcy;":1093,"kjcy;":1116,"kopf;":[55349,56668],"kscr;":[55349,56512],"lAarr;":8666,"lArr;":8656,"lAtail;":10523,"lBarr;":10510,"lE;":8806,"lEg;":10891,"lHar;":10594,"lacute;":314,"laemptyv;":10676,"lagran;":8466,"lambda;":955,"lang;":10216,"langd;":10641,"langle;":10216,"lap;":10885,laquo:171,"laquo;":171,"larr;":8592,"larrb;":8676,"larrbfs;":10527,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrsim;":10611,"larrtl;":8610,"lat;":10923,"latail;":10521,"late;":10925,"lates;":[10925,65024],"lbarr;":10508,"lbbrk;":10098,"lbrace;":123,"lbrack;":91,"lbrke;":10635,"lbrksld;":10639,"lbrkslu;":10637,"lcaron;":318,"lcedil;":316,"lceil;":8968,"lcub;":123,"lcy;":1083,"ldca;":10550,"ldquo;":8220,"ldquor;":8222,"ldrdhar;":10599,"ldrushar;":10571,"ldsh;":8626,"le;":8804,"leftarrow;":8592,"leftarrowtail;":8610,"leftharpoondown;":8637,"leftharpoonup;":8636,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftrightarrows;":8646,"leftrightharpoons;":8651,"leftrightsquigarrow;":8621,"leftthreetimes;":8907,"leg;":8922,"leq;":8804,"leqq;":8806,"leqslant;":10877,"les;":10877,"lescc;":10920,"lesdot;":10879,"lesdoto;":10881,"lesdotor;":10883,"lesg;":[8922,65024],"lesges;":10899,"lessapprox;":10885,"lessdot;":8918,"lesseqgtr;":8922,"lesseqqgtr;":10891,"lessgtr;":8822,"lesssim;":8818,"lfisht;":10620,"lfloor;":8970,"lfr;":[55349,56617],"lg;":8822,"lgE;":10897,"lhard;":8637,"lharu;":8636,"lharul;":10602,"lhblk;":9604,"ljcy;":1113,"ll;":8810,"llarr;":8647,"llcorner;":8990,"llhard;":10603,"lltri;":9722,"lmidot;":320,"lmoust;":9136,"lmoustache;":9136,"lnE;":8808,"lnap;":10889,"lnapprox;":10889,"lne;":10887,"lneq;":10887,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"longleftarrow;":10229,"longleftrightarrow;":10231,"longmapsto;":10236,"longrightarrow;":10230,"looparrowleft;":8619,"looparrowright;":8620,"lopar;":10629,"lopf;":[55349,56669],"loplus;":10797,"lotimes;":10804,"lowast;":8727,"lowbar;":95,"loz;":9674,"lozenge;":9674,"lozf;":10731,"lpar;":40,"lparlt;":10643,"lrarr;":8646,"lrcorner;":8991,"lrhar;":8651,"lrhard;":10605,"lrm;":8206,"lrtri;":8895,"lsaquo;":8249,"lscr;":[55349,56513],"lsh;":8624,"lsim;":8818,"lsime;":10893,"lsimg;":10895,"lsqb;":91,"lsquo;":8216,"lsquor;":8218,"lstrok;":322,lt:60,"lt;":60,"ltcc;":10918,"ltcir;":10873,"ltdot;":8918,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltquest;":10875,"ltrPar;":10646,"ltri;":9667,"ltrie;":8884,"ltrif;":9666,"lurdshar;":10570,"luruhar;":10598,"lvertneqq;":[8808,65024],"lvnE;":[8808,65024],"mDDot;":8762,macr:175,"macr;":175,"male;":9794,"malt;":10016,"maltese;":10016,"map;":8614,"mapsto;":8614,"mapstodown;":8615,"mapstoleft;":8612,"mapstoup;":8613,"marker;":9646,"mcomma;":10793,"mcy;":1084,"mdash;":8212,"measuredangle;":8737,"mfr;":[55349,56618],"mho;":8487,micro:181,"micro;":181,"mid;":8739,"midast;":42,"midcir;":10992,middot:183,"middot;":183,"minus;":8722,"minusb;":8863,"minusd;":8760,"minusdu;":10794,"mlcp;":10971,"mldr;":8230,"mnplus;":8723,"models;":8871,"mopf;":[55349,56670],"mp;":8723,"mscr;":[55349,56514],"mstpos;":8766,"mu;":956,"multimap;":8888,"mumap;":8888,"nGg;":[8921,824],"nGt;":[8811,8402],"nGtv;":[8811,824],"nLeftarrow;":8653,"nLeftrightarrow;":8654,"nLl;":[8920,824],"nLt;":[8810,8402],"nLtv;":[8810,824],"nRightarrow;":8655,"nVDash;":8879,"nVdash;":8878,"nabla;":8711,"nacute;":324,"nang;":[8736,8402],"nap;":8777,"napE;":[10864,824],"napid;":[8779,824],"napos;":329,"napprox;":8777,"natur;":9838,"natural;":9838,"naturals;":8469,nbsp:160,"nbsp;":160,"nbump;":[8782,824],"nbumpe;":[8783,824],"ncap;":10819,"ncaron;":328,"ncedil;":326,"ncong;":8775,"ncongdot;":[10861,824],"ncup;":10818,"ncy;":1085,"ndash;":8211,"ne;":8800,"neArr;":8663,"nearhk;":10532,"nearr;":8599,"nearrow;":8599,"nedot;":[8784,824],"nequiv;":8802,"nesear;":10536,"nesim;":[8770,824],"nexist;":8708,"nexists;":8708,"nfr;":[55349,56619],"ngE;":[8807,824],"nge;":8817,"ngeq;":8817,"ngeqq;":[8807,824],"ngeqslant;":[10878,824],"nges;":[10878,824],"ngsim;":8821,"ngt;":8815,"ngtr;":8815,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"ni;":8715,"nis;":8956,"nisd;":8954,"niv;":8715,"njcy;":1114,"nlArr;":8653,"nlE;":[8806,824],"nlarr;":8602,"nldr;":8229,"nle;":8816,"nleftarrow;":8602,"nleftrightarrow;":8622,"nleq;":8816,"nleqq;":[8806,824],"nleqslant;":[10877,824],"nles;":[10877,824],"nless;":8814,"nlsim;":8820,"nlt;":8814,"nltri;":8938,"nltrie;":8940,"nmid;":8740,"nopf;":[55349,56671],not:172,"not;":172,"notin;":8713,"notinE;":[8953,824],"notindot;":[8949,824],"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notni;":8716,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npar;":8742,"nparallel;":8742,"nparsl;":[11005,8421],"npart;":[8706,824],"npolint;":10772,"npr;":8832,"nprcue;":8928,"npre;":[10927,824],"nprec;":8832,"npreceq;":[10927,824],"nrArr;":8655,"nrarr;":8603,"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrightarrow;":8603,"nrtri;":8939,"nrtrie;":8941,"nsc;":8833,"nsccue;":8929,"nsce;":[10928,824],"nscr;":[55349,56515],"nshortmid;":8740,"nshortparallel;":8742,"nsim;":8769,"nsime;":8772,"nsimeq;":8772,"nsmid;":8740,"nspar;":8742,"nsqsube;":8930,"nsqsupe;":8931,"nsub;":8836,"nsubE;":[10949,824],"nsube;":8840,"nsubset;":[8834,8402],"nsubseteq;":8840,"nsubseteqq;":[10949,824],"nsucc;":8833,"nsucceq;":[10928,824],"nsup;":8837,"nsupE;":[10950,824],"nsupe;":8841,"nsupset;":[8835,8402],"nsupseteq;":8841,"nsupseteqq;":[10950,824],"ntgl;":8825,ntilde:241,"ntilde;":241,"ntlg;":8824,"ntriangleleft;":8938,"ntrianglelefteq;":8940,"ntriangleright;":8939,"ntrianglerighteq;":8941,"nu;":957,"num;":35,"numero;":8470,"numsp;":8199,"nvDash;":8877,"nvHarr;":10500,"nvap;":[8781,8402],"nvdash;":8876,"nvge;":[8805,8402],"nvgt;":[62,8402],"nvinfin;":10718,"nvlArr;":10498,"nvle;":[8804,8402],"nvlt;":[60,8402],"nvltrie;":[8884,8402],"nvrArr;":10499,"nvrtrie;":[8885,8402],"nvsim;":[8764,8402],"nwArr;":8662,"nwarhk;":10531,"nwarr;":8598,"nwarrow;":8598,"nwnear;":10535,"oS;":9416,oacute:243,"oacute;":243,"oast;":8859,"ocir;":8858,ocirc:244,"ocirc;":244,"ocy;":1086,"odash;":8861,"odblac;":337,"odiv;":10808,"odot;":8857,"odsold;":10684,"oelig;":339,"ofcir;":10687,"ofr;":[55349,56620],"ogon;":731,ograve:242,"ograve;":242,"ogt;":10689,"ohbar;":10677,"ohm;":937,"oint;":8750,"olarr;":8634,"olcir;":10686,"olcross;":10683,"oline;":8254,"olt;":10688,"omacr;":333,"omega;":969,"omicron;":959,"omid;":10678,"ominus;":8854,"oopf;":[55349,56672],"opar;":10679,"operp;":10681,"oplus;":8853,"or;":8744,"orarr;":8635,"ord;":10845,"order;":8500,"orderof;":8500,ordf:170,"ordf;":170,ordm:186,"ordm;":186,"origof;":8886,"oror;":10838,"orslope;":10839,"orv;":10843,"oscr;":8500,oslash:248,"oslash;":248,"osol;":8856,otilde:245,"otilde;":245,"otimes;":8855,"otimesas;":10806,ouml:246,"ouml;":246,"ovbar;":9021,"par;":8741,para:182,"para;":182,"parallel;":8741,"parsim;":10995,"parsl;":11005,"part;":8706,"pcy;":1087,"percnt;":37,"period;":46,"permil;":8240,"perp;":8869,"pertenk;":8241,"pfr;":[55349,56621],"phi;":966,"phiv;":981,"phmmat;":8499,"phone;":9742,"pi;":960,"pitchfork;":8916,"piv;":982,"planck;":8463,"planckh;":8462,"plankv;":8463,"plus;":43,"plusacir;":10787,"plusb;":8862,"pluscir;":10786,"plusdo;":8724,"plusdu;":10789,"pluse;":10866,plusmn:177,"plusmn;":177,"plussim;":10790,"plustwo;":10791,"pm;":177,"pointint;":10773,"popf;":[55349,56673],pound:163,"pound;":163,"pr;":8826,"prE;":10931,"prap;":10935,"prcue;":8828,"pre;":10927,"prec;":8826,"precapprox;":10935,"preccurlyeq;":8828,"preceq;":10927,"precnapprox;":10937,"precneqq;":10933,"precnsim;":8936,"precsim;":8830,"prime;":8242,"primes;":8473,"prnE;":10933,"prnap;":10937,"prnsim;":8936,"prod;":8719,"profalar;":9006,"profline;":8978,"profsurf;":8979,"prop;":8733,"propto;":8733,"prsim;":8830,"prurel;":8880,"pscr;":[55349,56517],"psi;":968,"puncsp;":8200,"qfr;":[55349,56622],"qint;":10764,"qopf;":[55349,56674],"qprime;":8279,"qscr;":[55349,56518],"quaternions;":8461,"quatint;":10774,"quest;":63,"questeq;":8799,quot:34,"quot;":34,"rAarr;":8667,"rArr;":8658,"rAtail;":10524,"rBarr;":10511,"rHar;":10596,"race;":[8765,817],"racute;":341,"radic;":8730,"raemptyv;":10675,"rang;":10217,"rangd;":10642,"range;":10661,"rangle;":10217,raquo:187,"raquo;":187,"rarr;":8594,"rarrap;":10613,"rarrb;":8677,"rarrbfs;":10528,"rarrc;":10547,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrsim;":10612,"rarrtl;":8611,"rarrw;":8605,"ratail;":10522,"ratio;":8758,"rationals;":8474,"rbarr;":10509,"rbbrk;":10099,"rbrace;":125,"rbrack;":93,"rbrke;":10636,"rbrksld;":10638,"rbrkslu;":10640,"rcaron;":345,"rcedil;":343,"rceil;":8969,"rcub;":125,"rcy;":1088,"rdca;":10551,"rdldhar;":10601,"rdquo;":8221,"rdquor;":8221,"rdsh;":8627,"real;":8476,"realine;":8475,"realpart;":8476,"reals;":8477,"rect;":9645,reg:174,"reg;":174,"rfisht;":10621,"rfloor;":8971,"rfr;":[55349,56623],"rhard;":8641,"rharu;":8640,"rharul;":10604,"rho;":961,"rhov;":1009,"rightarrow;":8594,"rightarrowtail;":8611,"rightharpoondown;":8641,"rightharpoonup;":8640,"rightleftarrows;":8644,"rightleftharpoons;":8652,"rightrightarrows;":8649,"rightsquigarrow;":8605,"rightthreetimes;":8908,"ring;":730,"risingdotseq;":8787,"rlarr;":8644,"rlhar;":8652,"rlm;":8207,"rmoust;":9137,"rmoustache;":9137,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"ropf;":[55349,56675],"roplus;":10798,"rotimes;":10805,"rpar;":41,"rpargt;":10644,"rppolint;":10770,"rrarr;":8649,"rsaquo;":8250,"rscr;":[55349,56519],"rsh;":8625,"rsqb;":93,"rsquo;":8217,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"rtri;":9657,"rtrie;":8885,"rtrif;":9656,"rtriltri;":10702,"ruluhar;":10600,"rx;":8478,"sacute;":347,"sbquo;":8218,"sc;":8827,"scE;":10932,"scap;":10936,"scaron;":353,"sccue;":8829,"sce;":10928,"scedil;":351,"scirc;":349,"scnE;":10934,"scnap;":10938,"scnsim;":8937,"scpolint;":10771,"scsim;":8831,"scy;":1089,"sdot;":8901,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searhk;":10533,"searr;":8600,"searrow;":8600,sect:167,"sect;":167,"semi;":59,"seswar;":10537,"setminus;":8726,"setmn;":8726,"sext;":10038,"sfr;":[55349,56624],"sfrown;":8994,"sharp;":9839,"shchcy;":1097,"shcy;":1096,"shortmid;":8739,"shortparallel;":8741,shy:173,"shy;":173,"sigma;":963,"sigmaf;":962,"sigmav;":962,"sim;":8764,"simdot;":10858,"sime;":8771,"simeq;":8771,"simg;":10910,"simgE;":10912,"siml;":10909,"simlE;":10911,"simne;":8774,"simplus;":10788,"simrarr;":10610,"slarr;":8592,"smallsetminus;":8726,"smashp;":10803,"smeparsl;":10724,"smid;":8739,"smile;":8995,"smt;":10922,"smte;":10924,"smtes;":[10924,65024],"softcy;":1100,"sol;":47,"solb;":10692,"solbar;":9023,"sopf;":[55349,56676],"spades;":9824,"spadesuit;":9824,"spar;":8741,"sqcap;":8851,"sqcaps;":[8851,65024],"sqcup;":8852,"sqcups;":[8852,65024],"sqsub;":8847,"sqsube;":8849,"sqsubset;":8847,"sqsubseteq;":8849,"sqsup;":8848,"sqsupe;":8850,"sqsupset;":8848,"sqsupseteq;":8850,"squ;":9633,"square;":9633,"squarf;":9642,"squf;":9642,"srarr;":8594,"sscr;":[55349,56520],"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"star;":9734,"starf;":9733,"straightepsilon;":1013,"straightphi;":981,"strns;":175,"sub;":8834,"subE;":10949,"subdot;":10941,"sube;":8838,"subedot;":10947,"submult;":10945,"subnE;":10955,"subne;":8842,"subplus;":10943,"subrarr;":10617,"subset;":8834,"subseteq;":8838,"subseteqq;":10949,"subsetneq;":8842,"subsetneqq;":10955,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succ;":8827,"succapprox;":10936,"succcurlyeq;":8829,"succeq;":10928,"succnapprox;":10938,"succneqq;":10934,"succnsim;":8937,"succsim;":8831,"sum;":8721,"sung;":9834,sup1:185,"sup1;":185,sup2:178,"sup2;":178,sup3:179,"sup3;":179,"sup;":8835,"supE;":10950,"supdot;":10942,"supdsub;":10968,"supe;":8839,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supnE;":10956,"supne;":8843,"supplus;":10944,"supset;":8835,"supseteq;":8839,"supseteqq;":10950,"supsetneq;":8843,"supsetneqq;":10956,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swArr;":8665,"swarhk;":10534,"swarr;":8601,"swarrow;":8601,"swnwar;":10538,szlig:223,"szlig;":223,"target;":8982,"tau;":964,"tbrk;":9140,"tcaron;":357,"tcedil;":355,"tcy;":1090,"tdot;":8411,"telrec;":8981,"tfr;":[55349,56625],"there4;":8756,"therefore;":8756,"theta;":952,"thetasym;":977,"thetav;":977,"thickapprox;":8776,"thicksim;":8764,"thinsp;":8201,"thkap;":8776,"thksim;":8764,thorn:254,"thorn;":254,"tilde;":732,times:215,"times;":215,"timesb;":8864,"timesbar;":10801,"timesd;":10800,"tint;":8749,"toea;":10536,"top;":8868,"topbot;":9014,"topcir;":10993,"topf;":[55349,56677],"topfork;":10970,"tosa;":10537,"tprime;":8244,"trade;":8482,"triangle;":9653,"triangledown;":9663,"triangleleft;":9667,"trianglelefteq;":8884,"triangleq;":8796,"triangleright;":9657,"trianglerighteq;":8885,"tridot;":9708,"trie;":8796,"triminus;":10810,"triplus;":10809,"trisb;":10701,"tritime;":10811,"trpezium;":9186,"tscr;":[55349,56521],"tscy;":1094,"tshcy;":1115,"tstrok;":359,"twixt;":8812,"twoheadleftarrow;":8606,"twoheadrightarrow;":8608,"uArr;":8657,"uHar;":10595,uacute:250,"uacute;":250,"uarr;":8593,"ubrcy;":1118,"ubreve;":365,ucirc:251,"ucirc;":251,"ucy;":1091,"udarr;":8645,"udblac;":369,"udhar;":10606,"ufisht;":10622,"ufr;":[55349,56626],ugrave:249,"ugrave;":249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ulcorn;":8988,"ulcorner;":8988,"ulcrop;":8975,"ultri;":9720,"umacr;":363,uml:168,"uml;":168,"uogon;":371,"uopf;":[55349,56678],"uparrow;":8593,"updownarrow;":8597,"upharpoonleft;":8639,"upharpoonright;":8638,"uplus;":8846,"upsi;":965,"upsih;":978,"upsilon;":965,"upuparrows;":8648,"urcorn;":8989,"urcorner;":8989,"urcrop;":8974,"uring;":367,"urtri;":9721,"uscr;":[55349,56522],"utdot;":8944,"utilde;":361,"utri;":9653,"utrif;":9652,"uuarr;":8648,uuml:252,"uuml;":252,"uwangle;":10663,"vArr;":8661,"vBar;":10984,"vBarv;":10985,"vDash;":8872,"vangrt;":10652,"varepsilon;":1013,"varkappa;":1008,"varnothing;":8709,"varphi;":981,"varpi;":982,"varpropto;":8733,"varr;":8597,"varrho;":1009,"varsigma;":962,"varsubsetneq;":[8842,65024],"varsubsetneqq;":[10955,65024],"varsupsetneq;":[8843,65024],"varsupsetneqq;":[10956,65024],"vartheta;":977,"vartriangleleft;":8882,"vartriangleright;":8883,"vcy;":1074,"vdash;":8866,"vee;":8744,"veebar;":8891,"veeeq;":8794,"vellip;":8942,"verbar;":124,"vert;":124,"vfr;":[55349,56627],"vltri;":8882,"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vopf;":[55349,56679],"vprop;":8733,"vrtri;":8883,"vscr;":[55349,56523],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"vzigzag;":10650,"wcirc;":373,"wedbar;":10847,"wedge;":8743,"wedgeq;":8793,"weierp;":8472,"wfr;":[55349,56628],"wopf;":[55349,56680],"wp;":8472,"wr;":8768,"wreath;":8768,"wscr;":[55349,56524],"xcap;":8898,"xcirc;":9711,"xcup;":8899,"xdtri;":9661,"xfr;":[55349,56629],"xhArr;":10234,"xharr;":10231,"xi;":958,"xlArr;":10232,"xlarr;":10229,"xmap;":10236,"xnis;":8955,"xodot;":10752,"xopf;":[55349,56681],"xoplus;":10753,"xotime;":10754,"xrArr;":10233,"xrarr;":10230,"xscr;":[55349,56525],"xsqcup;":10758,"xuplus;":10756,"xutri;":9651,"xvee;":8897,"xwedge;":8896,yacute:253,"yacute;":253,"yacy;":1103,"ycirc;":375,"ycy;":1099,yen:165,"yen;":165,"yfr;":[55349,56630],"yicy;":1111,"yopf;":[55349,56682],"yscr;":[55349,56526],"yucy;":1102,yuml:255,"yuml;":255,"zacute;":378,"zcaron;":382,"zcy;":1079,"zdot;":380,"zeetrf;":8488,"zeta;":950,"zfr;":[55349,56631],"zhcy;":1078,"zigrarr;":8669,"zopf;":[55349,56683],"zscr;":[55349,56527],"zwj;":8205,"zwnj;":8204},pl=/(A(?:Elig;?|MP;?|acute;?|breve;|c(?:irc;?|y;)|fr;|grave;?|lpha;|macr;|nd;|o(?:gon;|pf;)|pplyFunction;|ring;?|s(?:cr;|sign;)|tilde;?|uml;?)|B(?:a(?:ckslash;|r(?:v;|wed;))|cy;|e(?:cause;|rnoullis;|ta;)|fr;|opf;|reve;|scr;|umpeq;)|C(?:Hcy;|OPY;?|a(?:cute;|p(?:;|italDifferentialD;)|yleys;)|c(?:aron;|edil;?|irc;|onint;)|dot;|e(?:dilla;|nterDot;)|fr;|hi;|ircle(?:Dot;|Minus;|Plus;|Times;)|lo(?:ckwiseContourIntegral;|seCurly(?:DoubleQuote;|Quote;))|o(?:lon(?:;|e;)|n(?:gruent;|int;|tourIntegral;)|p(?:f;|roduct;)|unterClockwiseContourIntegral;)|ross;|scr;|up(?:;|Cap;))|D(?:D(?:;|otrahd;)|Jcy;|Scy;|Zcy;|a(?:gger;|rr;|shv;)|c(?:aron;|y;)|el(?:;|ta;)|fr;|i(?:a(?:critical(?:Acute;|Do(?:t;|ubleAcute;)|Grave;|Tilde;)|mond;)|fferentialD;)|o(?:pf;|t(?:;|Dot;|Equal;)|uble(?:ContourIntegral;|Do(?:t;|wnArrow;)|L(?:eft(?:Arrow;|RightArrow;|Tee;)|ong(?:Left(?:Arrow;|RightArrow;)|RightArrow;))|Right(?:Arrow;|Tee;)|Up(?:Arrow;|DownArrow;)|VerticalBar;)|wn(?:Arrow(?:;|Bar;|UpArrow;)|Breve;|Left(?:RightVector;|TeeVector;|Vector(?:;|Bar;))|Right(?:TeeVector;|Vector(?:;|Bar;))|Tee(?:;|Arrow;)|arrow;))|s(?:cr;|trok;))|E(?:NG;|TH;?|acute;?|c(?:aron;|irc;?|y;)|dot;|fr;|grave;?|lement;|m(?:acr;|pty(?:SmallSquare;|VerySmallSquare;))|o(?:gon;|pf;)|psilon;|qu(?:al(?:;|Tilde;)|ilibrium;)|s(?:cr;|im;)|ta;|uml;?|x(?:ists;|ponentialE;))|F(?:cy;|fr;|illed(?:SmallSquare;|VerySmallSquare;)|o(?:pf;|rAll;|uriertrf;)|scr;)|G(?:Jcy;|T;?|amma(?:;|d;)|breve;|c(?:edil;|irc;|y;)|dot;|fr;|g;|opf;|reater(?:Equal(?:;|Less;)|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|scr;|t;)|H(?:ARDcy;|a(?:cek;|t;)|circ;|fr;|ilbertSpace;|o(?:pf;|rizontalLine;)|s(?:cr;|trok;)|ump(?:DownHump;|Equal;))|I(?:Ecy;|Jlig;|Ocy;|acute;?|c(?:irc;?|y;)|dot;|fr;|grave;?|m(?:;|a(?:cr;|ginaryI;)|plies;)|n(?:t(?:;|e(?:gral;|rsection;))|visible(?:Comma;|Times;))|o(?:gon;|pf;|ta;)|scr;|tilde;|u(?:kcy;|ml;?))|J(?:c(?:irc;|y;)|fr;|opf;|s(?:cr;|ercy;)|ukcy;)|K(?:Hcy;|Jcy;|appa;|c(?:edil;|y;)|fr;|opf;|scr;)|L(?:Jcy;|T;?|a(?:cute;|mbda;|ng;|placetrf;|rr;)|c(?:aron;|edil;|y;)|e(?:ft(?:A(?:ngleBracket;|rrow(?:;|Bar;|RightArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|Right(?:Arrow;|Vector;)|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;|rightarrow;)|ss(?:EqualGreater;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;))|fr;|l(?:;|eftarrow;)|midot;|o(?:ng(?:Left(?:Arrow;|RightArrow;)|RightArrow;|left(?:arrow;|rightarrow;)|rightarrow;)|pf;|wer(?:LeftArrow;|RightArrow;))|s(?:cr;|h;|trok;)|t;)|M(?:ap;|cy;|e(?:diumSpace;|llintrf;)|fr;|inusPlus;|opf;|scr;|u;)|N(?:Jcy;|acute;|c(?:aron;|edil;|y;)|e(?:gative(?:MediumSpace;|Thi(?:ckSpace;|nSpace;)|VeryThinSpace;)|sted(?:GreaterGreater;|LessLess;)|wLine;)|fr;|o(?:Break;|nBreakingSpace;|pf;|t(?:;|C(?:ongruent;|upCap;)|DoubleVerticalBar;|E(?:lement;|qual(?:;|Tilde;)|xists;)|Greater(?:;|Equal;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|Hump(?:DownHump;|Equal;)|Le(?:ftTriangle(?:;|Bar;|Equal;)|ss(?:;|Equal;|Greater;|Less;|SlantEqual;|Tilde;))|Nested(?:GreaterGreater;|LessLess;)|Precedes(?:;|Equal;|SlantEqual;)|R(?:everseElement;|ightTriangle(?:;|Bar;|Equal;))|S(?:quareSu(?:bset(?:;|Equal;)|perset(?:;|Equal;))|u(?:bset(?:;|Equal;)|cceeds(?:;|Equal;|SlantEqual;|Tilde;)|perset(?:;|Equal;)))|Tilde(?:;|Equal;|FullEqual;|Tilde;)|VerticalBar;))|scr;|tilde;?|u;)|O(?:Elig;|acute;?|c(?:irc;?|y;)|dblac;|fr;|grave;?|m(?:acr;|ega;|icron;)|opf;|penCurly(?:DoubleQuote;|Quote;)|r;|s(?:cr;|lash;?)|ti(?:lde;?|mes;)|uml;?|ver(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;))|P(?:artialD;|cy;|fr;|hi;|i;|lusMinus;|o(?:incareplane;|pf;)|r(?:;|ecedes(?:;|Equal;|SlantEqual;|Tilde;)|ime;|o(?:duct;|portion(?:;|al;)))|s(?:cr;|i;))|Q(?:UOT;?|fr;|opf;|scr;)|R(?:Barr;|EG;?|a(?:cute;|ng;|rr(?:;|tl;))|c(?:aron;|edil;|y;)|e(?:;|verse(?:E(?:lement;|quilibrium;)|UpEquilibrium;))|fr;|ho;|ight(?:A(?:ngleBracket;|rrow(?:;|Bar;|LeftArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;)|o(?:pf;|undImplies;)|rightarrow;|s(?:cr;|h;)|uleDelayed;)|S(?:H(?:CHcy;|cy;)|OFTcy;|acute;|c(?:;|aron;|edil;|irc;|y;)|fr;|hort(?:DownArrow;|LeftArrow;|RightArrow;|UpArrow;)|igma;|mallCircle;|opf;|q(?:rt;|uare(?:;|Intersection;|Su(?:bset(?:;|Equal;)|perset(?:;|Equal;))|Union;))|scr;|tar;|u(?:b(?:;|set(?:;|Equal;))|c(?:ceeds(?:;|Equal;|SlantEqual;|Tilde;)|hThat;)|m;|p(?:;|erset(?:;|Equal;)|set;)))|T(?:HORN;?|RADE;|S(?:Hcy;|cy;)|a(?:b;|u;)|c(?:aron;|edil;|y;)|fr;|h(?:e(?:refore;|ta;)|i(?:ckSpace;|nSpace;))|ilde(?:;|Equal;|FullEqual;|Tilde;)|opf;|ripleDot;|s(?:cr;|trok;))|U(?:a(?:cute;?|rr(?:;|ocir;))|br(?:cy;|eve;)|c(?:irc;?|y;)|dblac;|fr;|grave;?|macr;|n(?:der(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;)|ion(?:;|Plus;))|o(?:gon;|pf;)|p(?:Arrow(?:;|Bar;|DownArrow;)|DownArrow;|Equilibrium;|Tee(?:;|Arrow;)|arrow;|downarrow;|per(?:LeftArrow;|RightArrow;)|si(?:;|lon;))|ring;|scr;|tilde;|uml;?)|V(?:Dash;|bar;|cy;|dash(?:;|l;)|e(?:e;|r(?:bar;|t(?:;|ical(?:Bar;|Line;|Separator;|Tilde;))|yThinSpace;))|fr;|opf;|scr;|vdash;)|W(?:circ;|edge;|fr;|opf;|scr;)|X(?:fr;|i;|opf;|scr;)|Y(?:Acy;|Icy;|Ucy;|acute;?|c(?:irc;|y;)|fr;|opf;|scr;|uml;)|Z(?:Hcy;|acute;|c(?:aron;|y;)|dot;|e(?:roWidthSpace;|ta;)|fr;|opf;|scr;)|a(?:acute;?|breve;|c(?:;|E;|d;|irc;?|ute;?|y;)|elig;?|f(?:;|r;)|grave;?|l(?:e(?:fsym;|ph;)|pha;)|m(?:a(?:cr;|lg;)|p;?)|n(?:d(?:;|and;|d;|slope;|v;)|g(?:;|e;|le;|msd(?:;|a(?:a;|b;|c;|d;|e;|f;|g;|h;))|rt(?:;|vb(?:;|d;))|s(?:ph;|t;)|zarr;))|o(?:gon;|pf;)|p(?:;|E;|acir;|e;|id;|os;|prox(?:;|eq;))|ring;?|s(?:cr;|t;|ymp(?:;|eq;))|tilde;?|uml;?|w(?:conint;|int;))|b(?:Not;|a(?:ck(?:cong;|epsilon;|prime;|sim(?:;|eq;))|r(?:vee;|wed(?:;|ge;)))|brk(?:;|tbrk;)|c(?:ong;|y;)|dquo;|e(?:caus(?:;|e;)|mptyv;|psi;|rnou;|t(?:a;|h;|ween;))|fr;|ig(?:c(?:ap;|irc;|up;)|o(?:dot;|plus;|times;)|s(?:qcup;|tar;)|triangle(?:down;|up;)|uplus;|vee;|wedge;)|karow;|l(?:a(?:ck(?:lozenge;|square;|triangle(?:;|down;|left;|right;))|nk;)|k(?:1(?:2;|4;)|34;)|ock;)|n(?:e(?:;|quiv;)|ot;)|o(?:pf;|t(?:;|tom;)|wtie;|x(?:D(?:L;|R;|l;|r;)|H(?:;|D;|U;|d;|u;)|U(?:L;|R;|l;|r;)|V(?:;|H;|L;|R;|h;|l;|r;)|box;|d(?:L;|R;|l;|r;)|h(?:;|D;|U;|d;|u;)|minus;|plus;|times;|u(?:L;|R;|l;|r;)|v(?:;|H;|L;|R;|h;|l;|r;)))|prime;|r(?:eve;|vbar;?)|s(?:cr;|emi;|im(?:;|e;)|ol(?:;|b;|hsub;))|u(?:ll(?:;|et;)|mp(?:;|E;|e(?:;|q;))))|c(?:a(?:cute;|p(?:;|and;|brcup;|c(?:ap;|up;)|dot;|s;)|r(?:et;|on;))|c(?:a(?:ps;|ron;)|edil;?|irc;|ups(?:;|sm;))|dot;|e(?:dil;?|mptyv;|nt(?:;|erdot;|))|fr;|h(?:cy;|eck(?:;|mark;)|i;)|ir(?:;|E;|c(?:;|eq;|le(?:arrow(?:left;|right;)|d(?:R;|S;|ast;|circ;|dash;)))|e;|fnint;|mid;|scir;)|lubs(?:;|uit;)|o(?:lon(?:;|e(?:;|q;))|m(?:ma(?:;|t;)|p(?:;|fn;|le(?:ment;|xes;)))|n(?:g(?:;|dot;)|int;)|p(?:f;|rod;|y(?:;|sr;|)))|r(?:arr;|oss;)|s(?:cr;|u(?:b(?:;|e;)|p(?:;|e;)))|tdot;|u(?:darr(?:l;|r;)|e(?:pr;|sc;)|larr(?:;|p;)|p(?:;|brcap;|c(?:ap;|up;)|dot;|or;|s;)|r(?:arr(?:;|m;)|ly(?:eq(?:prec;|succ;)|vee;|wedge;)|ren;?|vearrow(?:left;|right;))|vee;|wed;)|w(?:conint;|int;)|ylcty;)|d(?:Arr;|Har;|a(?:gger;|leth;|rr;|sh(?:;|v;))|b(?:karow;|lac;)|c(?:aron;|y;)|d(?:;|a(?:gger;|rr;)|otseq;)|e(?:g;?|lta;|mptyv;)|f(?:isht;|r;)|har(?:l;|r;)|i(?:am(?:;|ond(?:;|suit;)|s;)|e;|gamma;|sin;|v(?:;|ide(?:;|ontimes;|)|onx;))|jcy;|lc(?:orn;|rop;)|o(?:llar;|pf;|t(?:;|eq(?:;|dot;)|minus;|plus;|square;)|ublebarwedge;|wn(?:arrow;|downarrows;|harpoon(?:left;|right;)))|r(?:bkarow;|c(?:orn;|rop;))|s(?:c(?:r;|y;)|ol;|trok;)|t(?:dot;|ri(?:;|f;))|u(?:arr;|har;)|wangle;|z(?:cy;|igrarr;))|e(?:D(?:Dot;|ot;)|a(?:cute;?|ster;)|c(?:aron;|ir(?:;|c;?)|olon;|y;)|dot;|e;|f(?:Dot;|r;)|g(?:;|rave;?|s(?:;|dot;))|l(?:;|inters;|l;|s(?:;|dot;))|m(?:acr;|pty(?:;|set;|v;)|sp(?:1(?:3;|4;)|;))|n(?:g;|sp;)|o(?:gon;|pf;)|p(?:ar(?:;|sl;)|lus;|si(?:;|lon;|v;))|q(?:c(?:irc;|olon;)|s(?:im;|lant(?:gtr;|less;))|u(?:als;|est;|iv(?:;|DD;))|vparsl;)|r(?:Dot;|arr;)|s(?:cr;|dot;|im;)|t(?:a;|h;?)|u(?:ml;?|ro;)|x(?:cl;|ist;|p(?:ectation;|onentiale;)))|f(?:allingdotseq;|cy;|emale;|f(?:ilig;|l(?:ig;|lig;)|r;)|ilig;|jlig;|l(?:at;|lig;|tns;)|nof;|o(?:pf;|r(?:all;|k(?:;|v;)))|partint;|r(?:a(?:c(?:1(?:2;?|3;|4;?|5;|6;|8;)|2(?:3;|5;)|3(?:4;?|5;|8;)|45;|5(?:6;|8;)|78;)|sl;)|own;)|scr;)|g(?:E(?:;|l;)|a(?:cute;|mma(?:;|d;)|p;)|breve;|c(?:irc;|y;)|dot;|e(?:;|l;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|l;))|l(?:;|es;)))|fr;|g(?:;|g;)|imel;|jcy;|l(?:;|E;|a;|j;)|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|opf;|rave;|s(?:cr;|im(?:;|e;|l;))|t(?:;|c(?:c;|ir;)|dot;|lPar;|quest;|r(?:a(?:pprox;|rr;)|dot;|eq(?:less;|qless;)|less;|sim;)|)|v(?:ertneqq;|nE;))|h(?:Arr;|a(?:irsp;|lf;|milt;|r(?:dcy;|r(?:;|cir;|w;)))|bar;|circ;|e(?:arts(?:;|uit;)|llip;|rcon;)|fr;|ks(?:earow;|warow;)|o(?:arr;|mtht;|ok(?:leftarrow;|rightarrow;)|pf;|rbar;)|s(?:cr;|lash;|trok;)|y(?:bull;|phen;))|i(?:acute;?|c(?:;|irc;?|y;)|e(?:cy;|xcl;?)|f(?:f;|r;)|grave;?|i(?:;|i(?:int;|nt;)|nfin;|ota;)|jlig;|m(?:a(?:cr;|g(?:e;|line;|part;)|th;)|of;|ped;)|n(?:;|care;|fin(?:;|tie;)|odot;|t(?:;|cal;|e(?:gers;|rcal;)|larhk;|prod;))|o(?:cy;|gon;|pf;|ta;)|prod;|quest;?|s(?:cr;|in(?:;|E;|dot;|s(?:;|v;)|v;))|t(?:;|ilde;)|u(?:kcy;|ml;?))|j(?:c(?:irc;|y;)|fr;|math;|opf;|s(?:cr;|ercy;)|ukcy;)|k(?:appa(?:;|v;)|c(?:edil;|y;)|fr;|green;|hcy;|jcy;|opf;|scr;)|l(?:A(?:arr;|rr;|tail;)|Barr;|E(?:;|g;)|Har;|a(?:cute;|emptyv;|gran;|mbda;|ng(?:;|d;|le;)|p;|quo;?|rr(?:;|b(?:;|fs;)|fs;|hk;|lp;|pl;|sim;|tl;)|t(?:;|ail;|e(?:;|s;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|quo(?:;|r;)|r(?:dhar;|ushar;)|sh;)|e(?:;|ft(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|leftarrows;|right(?:arrow(?:;|s;)|harpoons;|squigarrow;)|threetimes;)|g;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|r;))|g(?:;|es;)|s(?:approx;|dot;|eq(?:gtr;|qgtr;)|gtr;|sim;)))|f(?:isht;|loor;|r;)|g(?:;|E;)|h(?:ar(?:d;|u(?:;|l;))|blk;)|jcy;|l(?:;|arr;|corner;|hard;|tri;)|m(?:idot;|oust(?:;|ache;))|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|o(?:a(?:ng;|rr;)|brk;|ng(?:left(?:arrow;|rightarrow;)|mapsto;|rightarrow;)|oparrow(?:left;|right;)|p(?:ar;|f;|lus;)|times;|w(?:ast;|bar;)|z(?:;|enge;|f;))|par(?:;|lt;)|r(?:arr;|corner;|har(?:;|d;)|m;|tri;)|s(?:aquo;|cr;|h;|im(?:;|e;|g;)|q(?:b;|uo(?:;|r;))|trok;)|t(?:;|c(?:c;|ir;)|dot;|hree;|imes;|larr;|quest;|r(?:Par;|i(?:;|e;|f;))|)|ur(?:dshar;|uhar;)|v(?:ertneqq;|nE;))|m(?:DDot;|a(?:cr;?|l(?:e;|t(?:;|ese;))|p(?:;|sto(?:;|down;|left;|up;))|rker;)|c(?:omma;|y;)|dash;|easuredangle;|fr;|ho;|i(?:cro;?|d(?:;|ast;|cir;|dot;?)|nus(?:;|b;|d(?:;|u;)))|l(?:cp;|dr;)|nplus;|o(?:dels;|pf;)|p;|s(?:cr;|tpos;)|u(?:;|ltimap;|map;))|n(?:G(?:g;|t(?:;|v;))|L(?:eft(?:arrow;|rightarrow;)|l;|t(?:;|v;))|Rightarrow;|V(?:Dash;|dash;)|a(?:bla;|cute;|ng;|p(?:;|E;|id;|os;|prox;)|tur(?:;|al(?:;|s;)))|b(?:sp;?|ump(?:;|e;))|c(?:a(?:p;|ron;)|edil;|ong(?:;|dot;)|up;|y;)|dash;|e(?:;|Arr;|ar(?:hk;|r(?:;|ow;))|dot;|quiv;|s(?:ear;|im;)|xist(?:;|s;))|fr;|g(?:E;|e(?:;|q(?:;|q;|slant;)|s;)|sim;|t(?:;|r;))|h(?:Arr;|arr;|par;)|i(?:;|s(?:;|d;)|v;)|jcy;|l(?:Arr;|E;|arr;|dr;|e(?:;|ft(?:arrow;|rightarrow;)|q(?:;|q;|slant;)|s(?:;|s;))|sim;|t(?:;|ri(?:;|e;)))|mid;|o(?:pf;|t(?:;|in(?:;|E;|dot;|v(?:a;|b;|c;))|ni(?:;|v(?:a;|b;|c;))|))|p(?:ar(?:;|allel;|sl;|t;)|olint;|r(?:;|cue;|e(?:;|c(?:;|eq;))))|r(?:Arr;|arr(?:;|c;|w;)|ightarrow;|tri(?:;|e;))|s(?:c(?:;|cue;|e;|r;)|hort(?:mid;|parallel;)|im(?:;|e(?:;|q;))|mid;|par;|qsu(?:be;|pe;)|u(?:b(?:;|E;|e;|set(?:;|eq(?:;|q;)))|cc(?:;|eq;)|p(?:;|E;|e;|set(?:;|eq(?:;|q;)))))|t(?:gl;|ilde;?|lg;|riangle(?:left(?:;|eq;)|right(?:;|eq;)))|u(?:;|m(?:;|ero;|sp;))|v(?:Dash;|Harr;|ap;|dash;|g(?:e;|t;)|infin;|l(?:Arr;|e;|t(?:;|rie;))|r(?:Arr;|trie;)|sim;)|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|near;))|o(?:S;|a(?:cute;?|st;)|c(?:ir(?:;|c;?)|y;)|d(?:ash;|blac;|iv;|ot;|sold;)|elig;|f(?:cir;|r;)|g(?:on;|rave;?|t;)|h(?:bar;|m;)|int;|l(?:arr;|c(?:ir;|ross;)|ine;|t;)|m(?:acr;|ega;|i(?:cron;|d;|nus;))|opf;|p(?:ar;|erp;|lus;)|r(?:;|arr;|d(?:;|er(?:;|of;)|f;?|m;?)|igof;|or;|slope;|v;)|s(?:cr;|lash;?|ol;)|ti(?:lde;?|mes(?:;|as;))|uml;?|vbar;)|p(?:ar(?:;|a(?:;|llel;|)|s(?:im;|l;)|t;)|cy;|er(?:cnt;|iod;|mil;|p;|tenk;)|fr;|h(?:i(?:;|v;)|mmat;|one;)|i(?:;|tchfork;|v;)|l(?:an(?:ck(?:;|h;)|kv;)|us(?:;|acir;|b;|cir;|d(?:o;|u;)|e;|mn;?|sim;|two;))|m;|o(?:intint;|pf;|und;?)|r(?:;|E;|ap;|cue;|e(?:;|c(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;))|ime(?:;|s;)|n(?:E;|ap;|sim;)|o(?:d;|f(?:alar;|line;|surf;)|p(?:;|to;))|sim;|urel;)|s(?:cr;|i;)|uncsp;)|q(?:fr;|int;|opf;|prime;|scr;|u(?:at(?:ernions;|int;)|est(?:;|eq;)|ot;?))|r(?:A(?:arr;|rr;|tail;)|Barr;|Har;|a(?:c(?:e;|ute;)|dic;|emptyv;|ng(?:;|d;|e;|le;)|quo;?|rr(?:;|ap;|b(?:;|fs;)|c;|fs;|hk;|lp;|pl;|sim;|tl;|w;)|t(?:ail;|io(?:;|nals;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|ldhar;|quo(?:;|r;)|sh;)|e(?:al(?:;|ine;|part;|s;)|ct;|g;?)|f(?:isht;|loor;|r;)|h(?:ar(?:d;|u(?:;|l;))|o(?:;|v;))|i(?:ght(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|left(?:arrows;|harpoons;)|rightarrows;|squigarrow;|threetimes;)|ng;|singdotseq;)|l(?:arr;|har;|m;)|moust(?:;|ache;)|nmid;|o(?:a(?:ng;|rr;)|brk;|p(?:ar;|f;|lus;)|times;)|p(?:ar(?:;|gt;)|polint;)|rarr;|s(?:aquo;|cr;|h;|q(?:b;|uo(?:;|r;)))|t(?:hree;|imes;|ri(?:;|e;|f;|ltri;))|uluhar;|x;)|s(?:acute;|bquo;|c(?:;|E;|a(?:p;|ron;)|cue;|e(?:;|dil;)|irc;|n(?:E;|ap;|sim;)|polint;|sim;|y;)|dot(?:;|b;|e;)|e(?:Arr;|ar(?:hk;|r(?:;|ow;))|ct;?|mi;|swar;|tm(?:inus;|n;)|xt;)|fr(?:;|own;)|h(?:arp;|c(?:hcy;|y;)|ort(?:mid;|parallel;)|y;?)|i(?:gma(?:;|f;|v;)|m(?:;|dot;|e(?:;|q;)|g(?:;|E;)|l(?:;|E;)|ne;|plus;|rarr;))|larr;|m(?:a(?:llsetminus;|shp;)|eparsl;|i(?:d;|le;)|t(?:;|e(?:;|s;)))|o(?:ftcy;|l(?:;|b(?:;|ar;))|pf;)|pa(?:des(?:;|uit;)|r;)|q(?:c(?:ap(?:;|s;)|up(?:;|s;))|su(?:b(?:;|e;|set(?:;|eq;))|p(?:;|e;|set(?:;|eq;)))|u(?:;|ar(?:e;|f;)|f;))|rarr;|s(?:cr;|etmn;|mile;|tarf;)|t(?:ar(?:;|f;)|r(?:aight(?:epsilon;|phi;)|ns;))|u(?:b(?:;|E;|dot;|e(?:;|dot;)|mult;|n(?:E;|e;)|plus;|rarr;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;)))|cc(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;)|m;|ng;|p(?:1;?|2;?|3;?|;|E;|d(?:ot;|sub;)|e(?:;|dot;)|hs(?:ol;|ub;)|larr;|mult;|n(?:E;|e;)|plus;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;))))|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|nwar;)|zlig;?)|t(?:a(?:rget;|u;)|brk;|c(?:aron;|edil;|y;)|dot;|elrec;|fr;|h(?:e(?:re(?:4;|fore;)|ta(?:;|sym;|v;))|i(?:ck(?:approx;|sim;)|nsp;)|k(?:ap;|sim;)|orn;?)|i(?:lde;|mes(?:;|b(?:;|ar;)|d;|)|nt;)|o(?:ea;|p(?:;|bot;|cir;|f(?:;|ork;))|sa;)|prime;|r(?:ade;|i(?:angle(?:;|down;|left(?:;|eq;)|q;|right(?:;|eq;))|dot;|e;|minus;|plus;|sb;|time;)|pezium;)|s(?:c(?:r;|y;)|hcy;|trok;)|w(?:ixt;|ohead(?:leftarrow;|rightarrow;)))|u(?:Arr;|Har;|a(?:cute;?|rr;)|br(?:cy;|eve;)|c(?:irc;?|y;)|d(?:arr;|blac;|har;)|f(?:isht;|r;)|grave;?|h(?:ar(?:l;|r;)|blk;)|l(?:c(?:orn(?:;|er;)|rop;)|tri;)|m(?:acr;|l;?)|o(?:gon;|pf;)|p(?:arrow;|downarrow;|harpoon(?:left;|right;)|lus;|si(?:;|h;|lon;)|uparrows;)|r(?:c(?:orn(?:;|er;)|rop;)|ing;|tri;)|scr;|t(?:dot;|ilde;|ri(?:;|f;))|u(?:arr;|ml;?)|wangle;)|v(?:Arr;|Bar(?:;|v;)|Dash;|a(?:ngrt;|r(?:epsilon;|kappa;|nothing;|p(?:hi;|i;|ropto;)|r(?:;|ho;)|s(?:igma;|u(?:bsetneq(?:;|q;)|psetneq(?:;|q;)))|t(?:heta;|riangle(?:left;|right;))))|cy;|dash;|e(?:e(?:;|bar;|eq;)|llip;|r(?:bar;|t;))|fr;|ltri;|nsu(?:b;|p;)|opf;|prop;|rtri;|s(?:cr;|u(?:bn(?:E;|e;)|pn(?:E;|e;)))|zigzag;)|w(?:circ;|e(?:d(?:bar;|ge(?:;|q;))|ierp;)|fr;|opf;|p;|r(?:;|eath;)|scr;)|x(?:c(?:ap;|irc;|up;)|dtri;|fr;|h(?:Arr;|arr;)|i;|l(?:Arr;|arr;)|map;|nis;|o(?:dot;|p(?:f;|lus;)|time;)|r(?:Arr;|arr;)|s(?:cr;|qcup;)|u(?:plus;|tri;)|vee;|wedge;)|y(?:ac(?:ute;?|y;)|c(?:irc;|y;)|en;?|fr;|icy;|opf;|scr;|u(?:cy;|ml;?))|z(?:acute;|c(?:aron;|y;)|dot;|e(?:etrf;|ta;)|fr;|hcy;|igrarr;|opf;|scr;|w(?:j;|nj;)))|[\s\S]/g,vx=32,Ex=/[^\r"&\u0000]+/g,Tx=/[^\r'&\u0000]+/g,wx=/[^\r\t\n\f &>\u0000]+/g,Sx=/[^\r\t\n\f \/>A-Z\u0000]+/g,Nx=/[^\r\t\n\f \/=>A-Z\u0000]+/g,Ax=/[^\]\r\u0000\uffff]*/g,kx=/[^&<\r\u0000\uffff]*/g,hl=/[^<\r\u0000\uffff]*/g,Cx=/[^\r\u0000\uffff]*/g,ml=/(?:(\/)?([a-z]+)>)|[\s\S]/g,gl=/(?:([-a-z]+)[ \t\n\f]*=[ \t\n\f]*('[^'&\r\u0000]*'|"[^"&\r\u0000]*"|[^\t\n\r\f "&'\u0000>][^&> \t\n\r\f\u0000]*[ \t\n\f]))|[\s\S]/g,Pn=/[^\x09\x0A\x0C\x0D\x20]/,Ii=/[^\x09\x0A\x0C\x0D\x20]/g,Dx=/[^\x00\x09\x0A\x0C\x0D\x20]/,Rt=/^[\x09\x0A\x0C\x0D\x20]+/,Bn=/\x00/g;function ye(e){var t=16384;if(e.length<t)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<e.length;n+=t)r+=String.fromCharCode.apply(String,e.slice(n,n+t));return r}function Rx(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function K(e,t){if(typeof t=="string")return e.namespaceURI===N.HTML&&e.localName===t;var r=t[e.namespaceURI];return r&&r[e.localName]}function bl(e){return K(e,Cl)}function yl(e){if(K(e,Dl))return!0;if(e.namespaceURI===N.MATHML&&e.localName==="annotation-xml"){var t=e.getAttribute("encoding");if(t&&(t=t.toLowerCase()),t==="text/html"||t==="application/xhtml+xml")return!0}return!1}function Lx(e){return e in fl?fl[e]:e}function _l(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in dl&&(e[t][0]=dl[e[t][0]])}function vl(e){for(var t=0,r=e.length;t<r;t++)if(e[t][0]==="definitionurl"){e[t][0]="definitionURL";break}}function Mi(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in ul&&e[t].push(ul[e[t][0]])}function El(e,t){for(var r=0,n=e.length;r<n;r++){var a=e[r][0],o=e[r][1];t.hasAttribute(a)||t._setAttribute(a,o)}}P.ElementStack=function(){this.elements=[],this.top=null};P.ElementStack.prototype.push=function(e){this.elements.push(e),this.top=e};P.ElementStack.prototype.pop=function(e){this.elements.pop(),this.top=this.elements[this.elements.length-1]};P.ElementStack.prototype.popTag=function(e){for(var t=this.elements.length-1;t>0;t--){var r=this.elements[t];if(K(r,e))break}this.elements.length=t,this.top=this.elements[t-1]};P.ElementStack.prototype.popElementType=function(e){for(var t=this.elements.length-1;t>0&&!(this.elements[t]instanceof e);t--);this.elements.length=t,this.top=this.elements[t-1]};P.ElementStack.prototype.popElement=function(e){for(var t=this.elements.length-1;t>0&&this.elements[t]!==e;t--);this.elements.length=t,this.top=this.elements[t-1]};P.ElementStack.prototype.removeElement=function(e){if(this.top===e)this.pop();else{var t=this.elements.lastIndexOf(e);t!==-1&&this.elements.splice(t,1)}};P.ElementStack.prototype.clearToContext=function(e){for(var t=this.elements.length-1;t>0&&!K(this.elements[t],e);t--);this.elements.length=t+1,this.top=this.elements[t]};P.ElementStack.prototype.contains=function(e){return this.inSpecificScope(e,Object.create(null))};P.ElementStack.prototype.inSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(K(n,e))return!0;if(K(n,t))return!1}return!1};P.ElementStack.prototype.elementInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n===e)return!0;if(K(n,t))return!1}return!1};P.ElementStack.prototype.elementTypeInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n instanceof e)return!0;if(K(n,t))return!1}return!1};P.ElementStack.prototype.inScope=function(e){return this.inSpecificScope(e,Ve)};P.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,Ve)};P.ElementStack.prototype.elementTypeInScope=function(e){return this.elementTypeInSpecificScope(e,Ve)};P.ElementStack.prototype.inButtonScope=function(e){return this.inSpecificScope(e,Fi)};P.ElementStack.prototype.inListItemScope=function(e){return this.inSpecificScope(e,Vn)};P.ElementStack.prototype.inTableScope=function(e){return this.inSpecificScope(e,kl)};P.ElementStack.prototype.inSelectScope=function(e){for(var t=this.elements.length-1;t>=0;t--){var r=this.elements[t];if(r.namespaceURI!==N.HTML)return!1;var n=r.localName;if(n===e)return!0;if(n!=="optgroup"&&n!=="option")return!1}return!1};P.ElementStack.prototype.generateImpliedEndTags=function(e,t){for(var r=t?Nl:Sl,n=this.elements.length-1;n>=0;n--){var a=this.elements[n];if(e&&K(a,e)||!K(this.elements[n],r))break}this.elements.length=n+1,this.top=this.elements[n]};P.ActiveFormattingElements=function(){this.list=[],this.attrs=[]};P.ActiveFormattingElements.prototype.MARKER={localName:"|"};P.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)};P.ActiveFormattingElements.prototype.push=function(e,t){for(var r=0,n=this.list.length-1;n>=0&&this.list[n]!==this.MARKER;n--)if(l(e,this.list[n],this.attrs[n])&&(r++,r===3)){this.list.splice(n,1),this.attrs.splice(n,1);break}this.list.push(e);for(var a=[],o=0;o<t.length;o++)a[o]=t[o];this.attrs.push(a);function l(x,p,m){if(x.localName!==p.localName||x._numattrs!==m.length)return!1;for(var b=0,D=m.length;b<D;b++){var L=m[b][0],d=m[b][1];if(!x.hasAttribute(L)||x.getAttribute(L)!==d)return!1}return!0}};P.ActiveFormattingElements.prototype.clearToMarker=function(){for(var e=this.list.length-1;e>=0&&this.list[e]!==this.MARKER;e--);e<0&&(e=0),this.list.length=e,this.attrs.length=e};P.ActiveFormattingElements.prototype.findElementByTag=function(e){for(var t=this.list.length-1;t>=0;t--){var r=this.list[t];if(r===this.MARKER)break;if(r.localName===e)return r}return null};P.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)};P.ActiveFormattingElements.prototype.remove=function(e){var t=this.list.lastIndexOf(e);t!==-1&&(this.list.splice(t,1),this.attrs.splice(t,1))};P.ActiveFormattingElements.prototype.replace=function(e,t,r){var n=this.list.lastIndexOf(e);n!==-1&&(this.list[n]=t,this.attrs[n]=r)};P.ActiveFormattingElements.prototype.insertAfter=function(e,t){var r=this.list.lastIndexOf(e);r!==-1&&(this.list.splice(r,0,t),this.attrs.splice(r,0,t))};function P(e,t,r){var n=null,a=0,o=0,l=!1,x=!1,p=0,m=[],b="",D=!0,L=0,d=q,X,$,M="",Ze="",B=[],ce="",fe="",Q=[],et=[],tt=[],rt=[],Re=[],Br=!1,g=lu,Ge=null,We=[],u=new P.ElementStack,O=new P.ActiveFormattingElements,bt=t!==void 0,Ur=null,ze=null,jr=!0;t&&(jr=t.ownerDocument._scripting_enabled),r&&r.scripting_enabled===!1&&(jr=!1);var te=!0,Kn=!1,Vr,Xn,y=[],nt=!1,yt=!1,Gr={document:function(){return U},_asDocumentFragment:function(){for(var i=U.createDocumentFragment(),s=U.firstChild;s.hasChildNodes();)i.appendChild(s.firstChild);return i},pause:function(){L++},resume:function(){L--,this.parse("")},parse:function(i,s,c){var f;return L>0?(b+=i,!0):(p===0?(b&&(i=b+i,b=""),s&&(i+="\uFFFF",l=!0),n=i,a=i.length,o=0,D&&(D=!1,n.charCodeAt(0)===65279&&(o=1)),p++,f=Ki(c),b=n.substring(o,a),p--):(p++,m.push(n,a,o),n=i,a=i.length,o=0,Ki(),f=!1,b=n.substring(o,a),o=m.pop(),a=m.pop(),n=m.pop(),b&&(n=b+n.substring(o),a=n.length,o=0,b=""),p--),f)}},U=new fx(!0,e);if(U._parser=Gr,U._scripting_enabled=jr,t){if(t.ownerDocument._quirks&&(U._quirks=!0),t.ownerDocument._limitedQuirks&&(U._limitedQuirks=!0),t.namespaceURI===N.HTML)switch(t.localName){case"title":case"textarea":d=ot;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":d=ta;break}var Yi=U.createElement("html");U._appendChild(Yi),u.push(Yi),t instanceof Y.HTMLTemplateElement&&We.push(da),cr();for(var nr=t;nr!==null;nr=nr.parentElement)if(nr instanceof Y.HTMLFormElement){ze=nr;break}}function Ki(i){for(var s,c,f,h;o<a;){if(L>0||i&&i())return!0;switch(typeof d.lookahead){case"undefined":if(s=n.charCodeAt(o++),x&&(x=!1,s===10)){o++;continue}switch(s){case 13:o<a?n.charCodeAt(o)===10&&o++:x=!0,d(10);break;case 65535:if(l&&o===a){d(Hn);break}default:d(s);break}break;case"number":s=n.charCodeAt(o);var _=d.lookahead,k=!0;if(_<0&&(k=!1,_=-_),_<a-o)c=k?n.substring(o,o+_):null,h=!1;else if(l)c=k?n.substring(o,a):null,h=!0,s===65535&&o===a-1&&(s=Hn);else return!0;d(s,c,h);break;case"string":s=n.charCodeAt(o),f=d.lookahead;var F=n.indexOf(f,o);if(F!==-1)c=n.substring(o,F+f.length),h=!1;else{if(!l)return!0;c=n.substring(o,a),s===65535&&o===a-1&&(s=Hn),h=!0}d(s,c,h);break}}return!1}function at(i,s){for(var c=0;c<Re.length;c++)if(Re[c][0]===i)return;s!==void 0?Re.push([i,s]):Re.push([i])}function x0(){gl.lastIndex=o-1;var i=gl.exec(n);if(!i)throw new Error("should never happen");var s=i[1];if(!s)return!1;var c=i[2],f=c.length;switch(c[0]){case'"':case"'":c=c.substring(1,f-1),o+=i[0].length-1,d=ia;break;default:d=Be,o+=i[0].length-1,c=c.substring(0,f-1);break}for(var h=0;h<Re.length;h++)if(Re[h][0]===s)return!0;return Re.push([s,c]),!0}function p0(){Br=!1,M="",Re.length=0}function ar(){Br=!0,M="",Re.length=0}function $e(){B.length=0}function Qn(){ce=""}function Jn(){fe=""}function Xi(){Q.length=0}function Mt(){et.length=0,tt=null,rt=null}function Wr(){tt=[]}function it(){rt=[]}function V(){Kn=!0}function h0(){return u.top&&u.top.namespaceURI!=="http://www.w3.org/1999/xhtml"}function Ne(i){return Ze===i}function Ot(){if(y.length>0){var i=ye(y);if(y.length=0,yt&&(yt=!1,i[0]===`
6
6
  `&&(i=i.substring(1)),i.length===0))return;se(er,i),nt=!1}yt=!1}function ir(i){i.lastIndex=o-1;var s=i.exec(n);if(s&&s.index===o-1)return s=s[0],o+=s.length-1,l&&o===a&&(s=s.slice(0,-1),o--),s;throw new Error("should never happen")}function sr(i){i.lastIndex=o-1;var s=i.exec(n)[0];return s?(m0(s),o+=s.length-1,!0):!1}function m0(i){y.length>0&&Ot(),!(yt&&(yt=!1,i[0]===`
7
- `&&(i=i.substring(1)),i.length===0))&&se(er,i)}function Ye(){if(Br)se(H,M);else{var i=M;M="",Ze=i,se(be,i,Re)}}function g0(){if(o===a)return!1;ml.lastIndex=o;var i=ml.exec(n);if(!i)throw new Error("should never happen");var s=i[2];if(!s)return!1;var c=i[1];return c?(o+=s.length+2,se(H,s)):(o+=s.length+1,Ze=s,se(be,s,hx)),!0}function b0(){Br?se(H,M,null,!0):se(be,M,Re,!0)}function G(){se(px,ye(et),tt?ye(tt):void 0,rt?ye(rt):void 0)}function L(){Ot(),g(Hn),U.modclock=1}var se=Gr.insertToken=function(s,c,f,h){Ot();var _=u.top;!_||_.namespaceURI===N.HTML?g(s,c,f,h):s!==be&&s!==er?fs(s,c,f,h):bl(_)&&(s===er||s===be&&c!=="mglyph"&&c!=="malignmark")||s===be&&c==="svg"&&_.namespaceURI===N.MATHML&&_.localName==="annotation-xml"||yl(_)?(Xn=!0,g(s,c,f,h),Xn=!1):fs(s,c,f,h)};function Fe(i){var s=u.top;st&&K(s,tr)?$r(function(c){return c.createComment(i)}):(s instanceof Y.HTMLTemplateElement&&(s=s.content),s._appendChild(s.ownerDocument.createComment(i)))}function He(i){var s=u.top;if(st&&K(s,tr))$r(function(f){return f.createTextNode(i)});else{s instanceof Y.HTMLTemplateElement&&(s=s.content);var c=s.lastChild;c&&c.nodeType===Li.TEXT_NODE?c.appendData(i):s._appendChild(s.ownerDocument.createTextNode(i))}}function or(i,s,c){var f=Tl.createElement(i,s,null);if(c)for(var h=0,_=c.length;h<_;h++)f._setAttribute(c[h][0],c[h][1]);return f}var st=!1;function D(i,s){var c=zr(function(f){return or(f,i,s)});return K(c,Al)&&(c._form=ze),c}function zr(i){var s;return st&&K(u.top,tr)?s=$r(i):u.top instanceof Y.HTMLTemplateElement?(s=i(u.top.content.ownerDocument),u.top.content._appendChild(s)):(s=i(u.top.ownerDocument),u.top._appendChild(s)),u.push(s),s}function Zn(i,s,c){return zr(function(f){var h=f._createElementNS(i,c,null);if(s)for(var _=0,k=s.length;_<k;_++){var F=s[_];F.length===2?h._setAttribute(F[0],F[1]):h._setAttributeNS(F[2],F[0],F[1])}return h})}function Qi(i){for(var s=u.elements.length-1;s>=0;s--)if(u.elements[s]instanceof i)return s;return-1}function $r(i){var s,c,f=-1,h=-1,_;if(f=Qi(Y.HTMLTableElement),h=Qi(Y.HTMLTemplateElement),h>=0&&(f<0||h>f)?s=u.elements[h]:f>=0&&(s=u.elements[f].parentNode,s?c=u.elements[f]:s=u.elements[f-1]),s||(s=u.elements[0]),s instanceof Y.HTMLTemplateElement&&(s=s.content),_=i(s.ownerDocument),_.nodeType===Li.TEXT_NODE){var k;if(c?k=c.previousSibling:k=s.lastChild,k&&k.nodeType===Li.TEXT_NODE)return k.appendData(_.data),_}return c?s.insertBefore(_,c):s._appendChild(_),_}function cr(){for(var i=!1,s=u.elements.length-1;s>=0;s--){var c=u.elements[s];if(s===0&&(i=!0,bt&&(c=t)),c.namespaceURI===N.HTML){var f=c.localName;switch(f){case"select":for(var h=s;h>0;){var _=u.elements[--h];if(_ instanceof Y.HTMLTemplateElement)break;if(_ instanceof Y.HTMLTableElement){g=cn;return}}g=Ke;return;case"tr":g=dr;return;case"tbody":case"tfoot":case"thead":g=Tt;return;case"caption":g=ua;return;case"colgroup":g=on;return;case"table":g=Ae;return;case"template":g=We[We.length-1];return;case"body":g=A;return;case"frameset":g=fa;return;case"html":Ur===null?g=an:g=la;return;default:if(!i){if(f==="head"){g=re;return}if(f==="td"||f==="th"){g=qt;return}}}}if(i){g=A;return}}}function Yr(i,s){D(i,s),d=lr,Ge=g,g=sn}function y0(i,s){D(i,s),d=ot,Ge=g,g=sn}function ea(i,s){return{elt:or(i,O.list[s].localName,O.attrs[s]),attrs:O.attrs[s]}}function ve(){if(O.list.length!==0){var i=O.list[O.list.length-1];if(i!==O.MARKER&&u.elements.lastIndexOf(i)===-1){for(var s=O.list.length-2;s>=0&&(i=O.list[s],!(i===O.MARKER||u.elements.lastIndexOf(i)!==-1));s--);for(s=s+1;s<O.list.length;s++){var c=zr(function(f){return ea(f,s).elt});O.list[s]=c}}}}var Kr={localName:"BM"};function _0(i){if(K(u.top,i)&&O.indexOf(u.top)===-1)return u.pop(),!0;for(var s=0;s<8;){s++;var c=O.findElementByTag(i);if(!c)return!1;var f=u.elements.lastIndexOf(c);if(f===-1)return O.remove(c),!0;if(!u.elementInScope(c))return!0;for(var h=null,_,k=f+1;k<u.elements.length;k++)if(K(u.elements[k],Lt)){h=u.elements[k],_=k;break}if(h){var F=u.elements[f-1];O.insertAfter(c,Kr);for(var Z=h,xe=h,ke=_,Le,wt=0;wt++,Z=u.elements[--ke],Z!==c;){if(Le=O.indexOf(Z),wt>3&&Le!==-1&&(O.remove(Z),Le=-1),Le===-1){u.removeElement(Z);continue}var ft=ea(F.ownerDocument,Le);O.replace(Z,ft.elt,ft.attrs),u.elements[ke]=ft.elt,Z=ft.elt,xe===h&&(O.remove(Kr),O.insertAfter(ft.elt,Kr)),Z._appendChild(xe),xe=Z}st&&K(F,tr)?$r(function(){return xe}):F instanceof Y.HTMLTemplateElement?F.content._appendChild(xe):F._appendChild(xe);for(var fr=ea(h.ownerDocument,O.indexOf(c));h.hasChildNodes();)fr.elt._appendChild(h.firstChild);h._appendChild(fr.elt),O.remove(c),O.replace(Kr,fr.elt,fr.attrs),u.removeElement(c);var pu=u.elements.lastIndexOf(h);u.elements.splice(pu+1,0,fr.elt)}else return u.popElement(c),O.remove(c),!0}return!0}function v0(){u.pop(),g=Ge}function _t(){delete U._parser,u.elements.length=0,U.defaultView&&U.defaultView.dispatchEvent(new Y.Event("load",{}))}function w(i,s){d=s,o--}function q(i){switch(i){case 38:Q=q,d=ur;break;case 60:if(g0())break;d=E0;break;case 0:y.push(i),nt=!0;break;case-1:L();break;default:sr(kx)||y.push(i);break}}function ot(i){switch(i){case 38:Q=ot,d=ur;break;case 60:d=w0;break;case 0:y.push(65533),nt=!0;break;case-1:L();break;default:y.push(i);break}}function lr(i){switch(i){case 60:d=A0;break;case 0:y.push(65533);break;case-1:L();break;default:sr(hl)||y.push(i);break}}function ct(i){switch(i){case 60:d=D0;break;case 0:y.push(65533);break;case-1:L();break;default:sr(hl)||y.push(i);break}}function ta(i){switch(i){case 0:y.push(65533);break;case-1:L();break;default:sr(Cx)||y.push(i);break}}function E0(i){switch(i){case 33:d=ts;break;case 47:d=T0;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:p0(),w(i,Ji);break;case 63:w(i,Zr);break;default:y.push(60),w(i,q);break}}function T0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,Ji);break;case 62:d=q;break;case-1:y.push(60),y.push(47),L();break;default:w(i,Zr);break}}function Ji(i){switch(i){case 9:case 10:case 12:case 32:d=Be;break;case 47:d=ut;break;case 62:d=q,Ye();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32);break;case 0:M+="\uFFFD";break;case-1:L();break;default:M+=ir(Sx);break}}function w0(i){i===47?($e(),d=S0):(y.push(60),w(i,ot))}function S0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,N0);break;default:y.push(60),y.push(47),w(i,ot);break}}function N0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,ot)}function A0(i){i===47?($e(),d=k0):(y.push(60),w(i,lr))}function k0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,C0);break;default:y.push(60),y.push(47),w(i,lr);break}}function C0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,lr)}function D0(i){switch(i){case 47:$e(),d=R0;break;case 33:d=I0,y.push(60),y.push(33);break;default:y.push(60),w(i,ct);break}}function R0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,L0);break;default:y.push(60),y.push(47),w(i,ct);break}}function L0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,ct)}function I0(i){i===45?(d=M0,y.push(45)):w(i,ct)}function M0(i){i===45?(d=Zi,y.push(45)):w(i,ct)}function Pe(i){switch(i){case 45:d=O0,y.push(45);break;case 60:d=ra;break;case 0:y.push(65533);break;case-1:L();break;default:y.push(i);break}}function O0(i){switch(i){case 45:d=Zi,y.push(45);break;case 60:d=ra;break;case 0:d=Pe,y.push(65533);break;case-1:L();break;default:d=Pe,y.push(i);break}}function Zi(i){switch(i){case 45:y.push(45);break;case 60:d=ra;break;case 62:d=ct,y.push(62);break;case 0:d=Pe,y.push(65533);break;case-1:L();break;default:d=Pe,y.push(i);break}}function ra(i){switch(i){case 47:$e(),d=q0;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:$e(),y.push(60),w(i,H0);break;default:y.push(60),w(i,Pe);break}}function q0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,F0);break;default:y.push(60),y.push(47),w(i,Pe);break}}function F0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,Pe)}function H0(i){switch(i){case 9:case 10:case 12:case 32:case 47:case 62:ye(B)==="script"?d=lt:d=Pe,y.push(i);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B.push(i+32),y.push(i);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B.push(i),y.push(i);break;default:w(i,Pe);break}}function lt(i){switch(i){case 45:d=P0,y.push(45);break;case 60:d=na,y.push(60);break;case 0:y.push(65533);break;case-1:L();break;default:y.push(i);break}}function P0(i){switch(i){case 45:d=B0,y.push(45);break;case 60:d=na,y.push(60);break;case 0:d=lt,y.push(65533);break;case-1:L();break;default:d=lt,y.push(i);break}}function B0(i){switch(i){case 45:y.push(45);break;case 60:d=na,y.push(60);break;case 62:d=ct,y.push(62);break;case 0:d=lt,y.push(65533);break;case-1:L();break;default:d=lt,y.push(i);break}}function na(i){i===47?($e(),d=U0,y.push(47)):w(i,lt)}function U0(i){switch(i){case 9:case 10:case 12:case 32:case 47:case 62:ye(B)==="script"?d=Pe:d=lt,y.push(i);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B.push(i+32),y.push(i);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B.push(i),y.push(i);break;default:w(i,lt);break}}function Be(i){switch(i){case 9:case 10:case 12:case 32:break;case 47:d=ut;break;case 62:d=q,Ye();break;case-1:L();break;case 61:Qn(),ce+=String.fromCharCode(i),d=aa;break;default:if(x0())break;Qn(),w(i,aa);break}}function aa(i){switch(i){case 9:case 10:case 12:case 32:case 47:case 62:case-1:w(i,j0);break;case 61:d=es;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:ce+=String.fromCharCode(i+32);break;case 0:ce+="\uFFFD";break;default:ce+=ir(Nx);break}}function j0(i){switch(i){case 9:case 10:case 12:case 32:break;case 47:at(ce),d=ut;break;case 61:d=es;break;case 62:d=q,at(ce),Ye();break;case-1:at(ce),L();break;default:at(ce),Qn(),w(i,aa);break}}function es(i){switch(i){case 9:case 10:case 12:case 32:break;case 34:Jn(),d=Xr;break;case 39:Jn(),d=Qr;break;default:Jn(),w(i,Jr);break}}function Xr(i){switch(i){case 34:at(ce,fe),d=ia;break;case 38:Q=Xr,d=ur;break;case 0:fe+="\uFFFD";break;case-1:L();break;case 10:fe+=String.fromCharCode(i);break;default:fe+=ir(Ex);break}}function Qr(i){switch(i){case 39:at(ce,fe),d=ia;break;case 38:Q=Qr,d=ur;break;case 0:fe+="\uFFFD";break;case-1:L();break;case 10:fe+=String.fromCharCode(i);break;default:fe+=ir(Tx);break}}function Jr(i){switch(i){case 9:case 10:case 12:case 32:at(ce,fe),d=Be;break;case 38:Q=Jr,d=ur;break;case 62:at(ce,fe),d=q,Ye();break;case 0:fe+="\uFFFD";break;case-1:o--,d=q;break;default:fe+=ir(wx);break}}function ia(i){switch(i){case 9:case 10:case 12:case 32:d=Be;break;case 47:d=ut;break;case 62:d=q,Ye();break;case-1:L();break;default:w(i,Be);break}}function ut(i){switch(i){case 62:d=q,b0(!0);break;case-1:L();break;default:w(i,Be);break}}function Zr(i,s,c){var f=s.length;c?o+=f-1:o+=f;var h=s.substring(0,f-1);h=h.replace(/\u0000/g,"\uFFFD"),h=h.replace(/\u000D\u000A/g,`
7
+ `&&(i=i.substring(1)),i.length===0))&&se(er,i)}function Ye(){if(Br)se(H,M);else{var i=M;M="",Ze=i,se(be,i,Re)}}function g0(){if(o===a)return!1;ml.lastIndex=o;var i=ml.exec(n);if(!i)throw new Error("should never happen");var s=i[2];if(!s)return!1;var c=i[1];return c?(o+=s.length+2,se(H,s)):(o+=s.length+1,Ze=s,se(be,s,hx)),!0}function b0(){Br?se(H,M,null,!0):se(be,M,Re,!0)}function G(){se(px,ye(et),tt?ye(tt):void 0,rt?ye(rt):void 0)}function I(){Ot(),g(Hn),U.modclock=1}var se=Gr.insertToken=function(s,c,f,h){Ot();var _=u.top;!_||_.namespaceURI===N.HTML?g(s,c,f,h):s!==be&&s!==er?fs(s,c,f,h):bl(_)&&(s===er||s===be&&c!=="mglyph"&&c!=="malignmark")||s===be&&c==="svg"&&_.namespaceURI===N.MATHML&&_.localName==="annotation-xml"||yl(_)?(Xn=!0,g(s,c,f,h),Xn=!1):fs(s,c,f,h)};function Fe(i){var s=u.top;st&&K(s,tr)?$r(function(c){return c.createComment(i)}):(s instanceof Y.HTMLTemplateElement&&(s=s.content),s._appendChild(s.ownerDocument.createComment(i)))}function He(i){var s=u.top;if(st&&K(s,tr))$r(function(f){return f.createTextNode(i)});else{s instanceof Y.HTMLTemplateElement&&(s=s.content);var c=s.lastChild;c&&c.nodeType===Li.TEXT_NODE?c.appendData(i):s._appendChild(s.ownerDocument.createTextNode(i))}}function or(i,s,c){var f=Tl.createElement(i,s,null);if(c)for(var h=0,_=c.length;h<_;h++)f._setAttribute(c[h][0],c[h][1]);return f}var st=!1;function R(i,s){var c=zr(function(f){return or(f,i,s)});return K(c,Al)&&(c._form=ze),c}function zr(i){var s;return st&&K(u.top,tr)?s=$r(i):u.top instanceof Y.HTMLTemplateElement?(s=i(u.top.content.ownerDocument),u.top.content._appendChild(s)):(s=i(u.top.ownerDocument),u.top._appendChild(s)),u.push(s),s}function Zn(i,s,c){return zr(function(f){var h=f._createElementNS(i,c,null);if(s)for(var _=0,k=s.length;_<k;_++){var F=s[_];F.length===2?h._setAttribute(F[0],F[1]):h._setAttributeNS(F[2],F[0],F[1])}return h})}function Qi(i){for(var s=u.elements.length-1;s>=0;s--)if(u.elements[s]instanceof i)return s;return-1}function $r(i){var s,c,f=-1,h=-1,_;if(f=Qi(Y.HTMLTableElement),h=Qi(Y.HTMLTemplateElement),h>=0&&(f<0||h>f)?s=u.elements[h]:f>=0&&(s=u.elements[f].parentNode,s?c=u.elements[f]:s=u.elements[f-1]),s||(s=u.elements[0]),s instanceof Y.HTMLTemplateElement&&(s=s.content),_=i(s.ownerDocument),_.nodeType===Li.TEXT_NODE){var k;if(c?k=c.previousSibling:k=s.lastChild,k&&k.nodeType===Li.TEXT_NODE)return k.appendData(_.data),_}return c?s.insertBefore(_,c):s._appendChild(_),_}function cr(){for(var i=!1,s=u.elements.length-1;s>=0;s--){var c=u.elements[s];if(s===0&&(i=!0,bt&&(c=t)),c.namespaceURI===N.HTML){var f=c.localName;switch(f){case"select":for(var h=s;h>0;){var _=u.elements[--h];if(_ instanceof Y.HTMLTemplateElement)break;if(_ instanceof Y.HTMLTableElement){g=cn;return}}g=Ke;return;case"tr":g=dr;return;case"tbody":case"tfoot":case"thead":g=Tt;return;case"caption":g=ua;return;case"colgroup":g=on;return;case"table":g=Ae;return;case"template":g=We[We.length-1];return;case"body":g=A;return;case"frameset":g=fa;return;case"html":Ur===null?g=an:g=la;return;default:if(!i){if(f==="head"){g=re;return}if(f==="td"||f==="th"){g=qt;return}}}}if(i){g=A;return}}}function Yr(i,s){R(i,s),d=lr,Ge=g,g=sn}function y0(i,s){R(i,s),d=ot,Ge=g,g=sn}function ea(i,s){return{elt:or(i,O.list[s].localName,O.attrs[s]),attrs:O.attrs[s]}}function ve(){if(O.list.length!==0){var i=O.list[O.list.length-1];if(i!==O.MARKER&&u.elements.lastIndexOf(i)===-1){for(var s=O.list.length-2;s>=0&&(i=O.list[s],!(i===O.MARKER||u.elements.lastIndexOf(i)!==-1));s--);for(s=s+1;s<O.list.length;s++){var c=zr(function(f){return ea(f,s).elt});O.list[s]=c}}}}var Kr={localName:"BM"};function _0(i){if(K(u.top,i)&&O.indexOf(u.top)===-1)return u.pop(),!0;for(var s=0;s<8;){s++;var c=O.findElementByTag(i);if(!c)return!1;var f=u.elements.lastIndexOf(c);if(f===-1)return O.remove(c),!0;if(!u.elementInScope(c))return!0;for(var h=null,_,k=f+1;k<u.elements.length;k++)if(K(u.elements[k],Lt)){h=u.elements[k],_=k;break}if(h){var F=u.elements[f-1];O.insertAfter(c,Kr);for(var Z=h,xe=h,ke=_,Le,wt=0;wt++,Z=u.elements[--ke],Z!==c;){if(Le=O.indexOf(Z),wt>3&&Le!==-1&&(O.remove(Z),Le=-1),Le===-1){u.removeElement(Z);continue}var ft=ea(F.ownerDocument,Le);O.replace(Z,ft.elt,ft.attrs),u.elements[ke]=ft.elt,Z=ft.elt,xe===h&&(O.remove(Kr),O.insertAfter(ft.elt,Kr)),Z._appendChild(xe),xe=Z}st&&K(F,tr)?$r(function(){return xe}):F instanceof Y.HTMLTemplateElement?F.content._appendChild(xe):F._appendChild(xe);for(var fr=ea(h.ownerDocument,O.indexOf(c));h.hasChildNodes();)fr.elt._appendChild(h.firstChild);h._appendChild(fr.elt),O.remove(c),O.replace(Kr,fr.elt,fr.attrs),u.removeElement(c);var pu=u.elements.lastIndexOf(h);u.elements.splice(pu+1,0,fr.elt)}else return u.popElement(c),O.remove(c),!0}return!0}function v0(){u.pop(),g=Ge}function _t(){delete U._parser,u.elements.length=0,U.defaultView&&U.defaultView.dispatchEvent(new Y.Event("load",{}))}function w(i,s){d=s,o--}function q(i){switch(i){case 38:X=q,d=ur;break;case 60:if(g0())break;d=E0;break;case 0:y.push(i),nt=!0;break;case-1:I();break;default:sr(kx)||y.push(i);break}}function ot(i){switch(i){case 38:X=ot,d=ur;break;case 60:d=w0;break;case 0:y.push(65533),nt=!0;break;case-1:I();break;default:y.push(i);break}}function lr(i){switch(i){case 60:d=A0;break;case 0:y.push(65533);break;case-1:I();break;default:sr(hl)||y.push(i);break}}function ct(i){switch(i){case 60:d=D0;break;case 0:y.push(65533);break;case-1:I();break;default:sr(hl)||y.push(i);break}}function ta(i){switch(i){case 0:y.push(65533);break;case-1:I();break;default:sr(Cx)||y.push(i);break}}function E0(i){switch(i){case 33:d=ts;break;case 47:d=T0;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:p0(),w(i,Ji);break;case 63:w(i,Zr);break;default:y.push(60),w(i,q);break}}function T0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,Ji);break;case 62:d=q;break;case-1:y.push(60),y.push(47),I();break;default:w(i,Zr);break}}function Ji(i){switch(i){case 9:case 10:case 12:case 32:d=Be;break;case 47:d=ut;break;case 62:d=q,Ye();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32);break;case 0:M+="\uFFFD";break;case-1:I();break;default:M+=ir(Sx);break}}function w0(i){i===47?($e(),d=S0):(y.push(60),w(i,ot))}function S0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,N0);break;default:y.push(60),y.push(47),w(i,ot);break}}function N0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,ot)}function A0(i){i===47?($e(),d=k0):(y.push(60),w(i,lr))}function k0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,C0);break;default:y.push(60),y.push(47),w(i,lr);break}}function C0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,lr)}function D0(i){switch(i){case 47:$e(),d=R0;break;case 33:d=I0,y.push(60),y.push(33);break;default:y.push(60),w(i,ct);break}}function R0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,L0);break;default:y.push(60),y.push(47),w(i,ct);break}}function L0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,ct)}function I0(i){i===45?(d=M0,y.push(45)):w(i,ct)}function M0(i){i===45?(d=Zi,y.push(45)):w(i,ct)}function Pe(i){switch(i){case 45:d=O0,y.push(45);break;case 60:d=ra;break;case 0:y.push(65533);break;case-1:I();break;default:y.push(i);break}}function O0(i){switch(i){case 45:d=Zi,y.push(45);break;case 60:d=ra;break;case 0:d=Pe,y.push(65533);break;case-1:I();break;default:d=Pe,y.push(i);break}}function Zi(i){switch(i){case 45:y.push(45);break;case 60:d=ra;break;case 62:d=ct,y.push(62);break;case 0:d=Pe,y.push(65533);break;case-1:I();break;default:d=Pe,y.push(i);break}}function ra(i){switch(i){case 47:$e(),d=q0;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:$e(),y.push(60),w(i,H0);break;default:y.push(60),w(i,Pe);break}}function q0(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ar(),w(i,F0);break;default:y.push(60),y.push(47),w(i,Pe);break}}function F0(i){switch(i){case 9:case 10:case 12:case 32:if(Ne(M)){d=Be;return}break;case 47:if(Ne(M)){d=ut;return}break;case 62:if(Ne(M)){d=q,Ye();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:M+=String.fromCharCode(i+32),B.push(i);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:M+=String.fromCharCode(i),B.push(i);return;default:break}y.push(60),y.push(47),Dt(y,B),w(i,Pe)}function H0(i){switch(i){case 9:case 10:case 12:case 32:case 47:case 62:ye(B)==="script"?d=lt:d=Pe,y.push(i);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B.push(i+32),y.push(i);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B.push(i),y.push(i);break;default:w(i,Pe);break}}function lt(i){switch(i){case 45:d=P0,y.push(45);break;case 60:d=na,y.push(60);break;case 0:y.push(65533);break;case-1:I();break;default:y.push(i);break}}function P0(i){switch(i){case 45:d=B0,y.push(45);break;case 60:d=na,y.push(60);break;case 0:d=lt,y.push(65533);break;case-1:I();break;default:d=lt,y.push(i);break}}function B0(i){switch(i){case 45:y.push(45);break;case 60:d=na,y.push(60);break;case 62:d=ct,y.push(62);break;case 0:d=lt,y.push(65533);break;case-1:I();break;default:d=lt,y.push(i);break}}function na(i){i===47?($e(),d=U0,y.push(47)):w(i,lt)}function U0(i){switch(i){case 9:case 10:case 12:case 32:case 47:case 62:ye(B)==="script"?d=Pe:d=lt,y.push(i);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B.push(i+32),y.push(i);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B.push(i),y.push(i);break;default:w(i,lt);break}}function Be(i){switch(i){case 9:case 10:case 12:case 32:break;case 47:d=ut;break;case 62:d=q,Ye();break;case-1:I();break;case 61:Qn(),ce+=String.fromCharCode(i),d=aa;break;default:if(x0())break;Qn(),w(i,aa);break}}function aa(i){switch(i){case 9:case 10:case 12:case 32:case 47:case 62:case-1:w(i,j0);break;case 61:d=es;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:ce+=String.fromCharCode(i+32);break;case 0:ce+="\uFFFD";break;default:ce+=ir(Nx);break}}function j0(i){switch(i){case 9:case 10:case 12:case 32:break;case 47:at(ce),d=ut;break;case 61:d=es;break;case 62:d=q,at(ce),Ye();break;case-1:at(ce),I();break;default:at(ce),Qn(),w(i,aa);break}}function es(i){switch(i){case 9:case 10:case 12:case 32:break;case 34:Jn(),d=Xr;break;case 39:Jn(),d=Qr;break;default:Jn(),w(i,Jr);break}}function Xr(i){switch(i){case 34:at(ce,fe),d=ia;break;case 38:X=Xr,d=ur;break;case 0:fe+="\uFFFD";break;case-1:I();break;case 10:fe+=String.fromCharCode(i);break;default:fe+=ir(Ex);break}}function Qr(i){switch(i){case 39:at(ce,fe),d=ia;break;case 38:X=Qr,d=ur;break;case 0:fe+="\uFFFD";break;case-1:I();break;case 10:fe+=String.fromCharCode(i);break;default:fe+=ir(Tx);break}}function Jr(i){switch(i){case 9:case 10:case 12:case 32:at(ce,fe),d=Be;break;case 38:X=Jr,d=ur;break;case 62:at(ce,fe),d=q,Ye();break;case 0:fe+="\uFFFD";break;case-1:o--,d=q;break;default:fe+=ir(wx);break}}function ia(i){switch(i){case 9:case 10:case 12:case 32:d=Be;break;case 47:d=ut;break;case 62:d=q,Ye();break;case-1:I();break;default:w(i,Be);break}}function ut(i){switch(i){case 62:d=q,b0(!0);break;case-1:I();break;default:w(i,Be);break}}function Zr(i,s,c){var f=s.length;c?o+=f-1:o+=f;var h=s.substring(0,f-1);h=h.replace(/\u0000/g,"\uFFFD"),h=h.replace(/\u000D\u000A/g,`
8
8
  `),h=h.replace(/\u000D/g,`
9
- `),se(je,h),d=q}Zr.lookahead=">";function ts(i,s,c){if(s[0]==="-"&&s[1]==="-"){o+=2,Xi(),d=V0;return}s.toUpperCase()==="DOCTYPE"?(o+=7,d=X0):s==="[CDATA["&&h0()?(o+=7,d=ca):d=Zr}ts.lookahead=7;function V0(i){switch(Xi(),i){case 45:d=G0;break;case 62:d=q,se(je,ye(X));break;default:w(i,vt);break}}function G0(i){switch(i){case 45:d=en;break;case 62:d=q,se(je,ye(X));break;case-1:se(je,ye(X)),L();break;default:X.push(45),w(i,vt);break}}function vt(i){switch(i){case 60:X.push(i),d=W0;break;case 45:d=sa;break;case 0:X.push(65533);break;case-1:se(je,ye(X)),L();break;default:X.push(i);break}}function W0(i){switch(i){case 33:X.push(i),d=z0;break;case 60:X.push(i);break;default:w(i,vt);break}}function z0(i){i===45?d=$0:w(i,vt)}function $0(i){i===45?d=Y0:w(i,sa)}function Y0(i){switch(i){case 62:case-1:w(i,en);break;default:w(i,en);break}}function sa(i){switch(i){case 45:d=en;break;case-1:se(je,ye(X)),L();break;default:X.push(45),w(i,vt);break}}function en(i){switch(i){case 62:d=q,se(je,ye(X));break;case 33:d=K0;break;case 45:X.push(45);break;case-1:se(je,ye(X)),L();break;default:X.push(45),X.push(45),w(i,vt);break}}function K0(i){switch(i){case 45:X.push(45),X.push(45),X.push(33),d=sa;break;case 62:d=q,se(je,ye(X));break;case-1:se(je,ye(X)),L();break;default:X.push(45),X.push(45),X.push(33),w(i,vt);break}}function X0(i){switch(i){case 9:case 10:case 12:case 32:d=rs;break;case-1:Mt(),V(),G(),L();break;default:w(i,rs);break}}function rs(i){switch(i){case 9:case 10:case 12:case 32:break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:Mt(),et.push(i+32),d=oa;break;case 0:Mt(),et.push(65533),d=oa;break;case 62:Mt(),V(),d=q,G();break;case-1:Mt(),V(),G(),L();break;default:Mt(),et.push(i),d=oa;break}}function oa(i){switch(i){case 9:case 10:case 12:case 32:d=ns;break;case 62:d=q,G();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:et.push(i+32);break;case 0:et.push(65533);break;case-1:V(),G(),L();break;default:et.push(i);break}}function ns(i,s,c){switch(i){case 9:case 10:case 12:case 32:o+=1;break;case 62:d=q,o+=1,G();break;case-1:V(),G(),L();break;default:s=s.toUpperCase(),s==="PUBLIC"?(o+=6,d=Q0):s==="SYSTEM"?(o+=6,d=eu):(V(),d=dt);break}}ns.lookahead=6;function Q0(i){switch(i){case 9:case 10:case 12:case 32:d=J0;break;case 34:Wr(),d=as;break;case 39:Wr(),d=is;break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:V(),d=dt;break}}function J0(i){switch(i){case 9:case 10:case 12:case 32:break;case 34:Wr(),d=as;break;case 39:Wr(),d=is;break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:V(),d=dt;break}}function as(i){switch(i){case 34:d=ss;break;case 0:tt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:tt.push(i);break}}function is(i){switch(i){case 39:d=ss;break;case 0:tt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:tt.push(i);break}}function ss(i){switch(i){case 9:case 10:case 12:case 32:d=Z0;break;case 62:d=q,G();break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case-1:V(),G(),L();break;default:V(),d=dt;break}}function Z0(i){switch(i){case 9:case 10:case 12:case 32:break;case 62:d=q,G();break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case-1:V(),G(),L();break;default:V(),d=dt;break}}function eu(i){switch(i){case 9:case 10:case 12:case 32:d=tu;break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:V(),d=dt;break}}function tu(i){switch(i){case 9:case 10:case 12:case 32:break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:V(),d=dt;break}}function tn(i){switch(i){case 34:d=os;break;case 0:rt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:rt.push(i);break}}function rn(i){switch(i){case 39:d=os;break;case 0:rt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),L();break;default:rt.push(i);break}}function os(i){switch(i){case 9:case 10:case 12:case 32:break;case 62:d=q,G();break;case-1:V(),G(),L();break;default:d=dt;break}}function dt(i){switch(i){case 62:d=q,G();break;case-1:G(),L();break;default:break}}function ca(i){switch(i){case 93:d=ru;break;case-1:L();break;case 0:nt=!0;default:sr(Ax)||y.push(i);break}}function ru(i){i===93?d=nu:(y.push(93),w(i,ca))}function nu(i){switch(i){case 93:y.push(93);break;case 62:Ot(),d=q;break;default:y.push(93),y.push(93),w(i,ca);break}}function ur(i){switch($e(),B.push(38),i){case 9:case 10:case 12:case 32:case 60:case 38:case-1:w(i,Et);break;case 35:B.push(i),d=au;break;default:w(i,cs);break}}function cs(i){pl.lastIndex=o;var s=pl.exec(n);if(!s)throw new Error("should never happen");var c=s[1];if(!c){d=Et;return}switch(o+=c.length,Dt(B,Rx(c)),Q){case Xr:case Qr:case Jr:if(c[c.length-1]!==";"&&/[=A-Za-z0-9]/.test(n[o])){d=Et;return}break;default:break}$e();var f=_x[c];typeof f=="number"?B.push(f):Dt(B,f),d=Et}cs.lookahead=-vx;function au(i){switch($=0,i){case 120:case 88:B.push(i),d=iu;break;default:w(i,su);break}}function iu(i){switch(i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 66:case 67:case 68:case 69:case 70:case 97:case 98:case 99:case 100:case 101:case 102:w(i,ou);break;default:w(i,Et);break}}function su(i){switch(i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:w(i,cu);break;default:w(i,Et);break}}function ou(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:$*=16,$+=i-55;break;case 97:case 98:case 99:case 100:case 101:case 102:$*=16,$+=i-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:$*=16,$+=i-48;break;case 59:d=nn;break;default:w(i,nn);break}}function cu(i){switch(i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:$*=10,$+=i-48;break;case 59:d=nn;break;default:w(i,nn);break}}function nn(i){$ in xl?$=xl[$]:($>1114111||$>=55296&&$<57344)&&($=65533),$e(),$<=65535?B.push($):($=$-65536,B.push(55296+($>>10)),B.push(56320+($&1023))),w(i,Et)}function Et(i){switch(Q){case Xr:case Qr:case Jr:fe+=ye(B);break;default:Dt(y,B);break}w(i,Q)}function lu(i,s,c,f){switch(i){case 1:if(s=s.replace(Rt,""),s.length===0)return;break;case 4:U._appendChild(U.createComment(s));return;case 5:var h=s,_=c,k=f;U.appendChild(new xx(U,h,_,k)),Kn||h.toLowerCase()!=="html"||mx.test(_)||k&&k.toLowerCase()===gx||k===void 0&&ll.test(_)?U._quirks=!0:(bx.test(_)||k!==void 0&&ll.test(_))&&(U._limitedQuirks=!0),g=ls;return}U._quirks=!0,g=ls,g(i,s,c,f)}function ls(i,s,c,f){var h;switch(i){case 1:if(s=s.replace(Rt,""),s.length===0)return;break;case 5:return;case 4:U._appendChild(U.createComment(s));return;case 2:if(s==="html"){h=or(U,s,c),u.push(h),U.appendChild(h),g=an;return}break;case 3:switch(s){case"html":case"head":case"body":case"br":break;default:return}}h=or(U,"html",null),u.push(h),U.appendChild(h),g=an,g(i,s,c,f)}function an(i,s,c,f){switch(i){case 1:if(s=s.replace(Rt,""),s.length===0)return;break;case 5:return;case 4:Fe(s);return;case 2:switch(s){case"html":A(i,s,c,f);return;case"head":var h=D(s,c);Ur=h,g=re;return}break;case 3:switch(s){case"html":case"head":case"body":case"br":break;default:return}}an(be,"head",null),g(i,s,c,f)}function re(i,s,c,f){switch(i){case 1:var h=s.match(Rt);if(h&&(He(h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"html":A(i,s,c,f);return;case"meta":case"base":case"basefont":case"bgsound":case"link":D(s,c),u.pop();return;case"title":y0(s,c);return;case"noscript":if(!jr){D(s,c),g=us;return}case"noframes":case"style":Yr(s,c);return;case"script":zr(function(_){var k=or(_,s,c);return k._parser_inserted=!0,k._force_async=!1,bt&&(k._already_started=!0),Ot(),k}),d=ct,Ge=g,g=sn;return;case"template":D(s,c),O.insertMarker(),te=!1,g=da,We.push(g);return;case"head":return}break;case 3:switch(s){case"head":u.pop(),g=la;return;case"body":case"html":case"br":break;case"template":if(!u.contains("template"))return;u.generateImpliedEndTags(null,"thorough"),u.popTag("template"),O.clearToMarker(),We.pop(),cr();return;default:return}break}re(H,"head",null),g(i,s,c,f)}function us(i,s,c,f){switch(i){case 5:return;case 4:re(i,s);return;case 1:var h=s.match(Rt);if(h&&(re(i,h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 2:switch(s){case"html":A(i,s,c,f);return;case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":re(i,s,c);return;case"head":case"noscript":return}break;case 3:switch(s){case"noscript":u.pop(),g=re;return;case"br":break;default:return}break}us(H,"noscript",null),g(i,s,c,f)}function la(i,s,c,f){switch(i){case 1:var h=s.match(Rt);if(h&&(He(h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"html":A(i,s,c,f);return;case"body":D(s,c),te=!1,g=A;return;case"frameset":D(s,c),g=fa;return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":u.push(Ur),re(be,s,c),u.removeElement(Ur);return;case"head":return}break;case 3:switch(s){case"template":return re(i,s,c,f);case"body":case"html":case"br":break;default:return}break}la(be,"body",null),te=!0,g(i,s,c,f)}function A(i,s,c,f){var h,_,k,F;switch(i){case 1:if(nt&&(s=s.replace(Bn,""),s.length===0))return;te&&Pn.test(s)&&(te=!1),ve(),He(s);return;case 5:return;case 4:Fe(s);return;case-1:if(We.length)return da(i);_t();return;case 2:switch(s){case"html":if(u.contains("template"))return;El(c,u.elements[0]);return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":re(be,s,c);return;case"body":if(h=u.elements[1],!h||!(h instanceof Y.HTMLBodyElement)||u.contains("template"))return;te=!1,El(c,h);return;case"frameset":if(!te||(h=u.elements[1],!h||!(h instanceof Y.HTMLBodyElement)))return;for(h.parentNode&&h.parentNode.removeChild(h);!(u.top instanceof Y.HTMLHtmlElement);)u.pop();D(s,c),g=fa;return;case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"nav":case"ol":case"p":case"section":case"summary":case"ul":u.inButtonScope("p")&&A(H,"p"),D(s,c);return;case"menu":u.inButtonScope("p")&&A(H,"p"),K(u.top,"menuitem")&&u.pop(),D(s,c);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":u.inButtonScope("p")&&A(H,"p"),u.top instanceof Y.HTMLHeadingElement&&u.pop(),D(s,c);return;case"pre":case"listing":u.inButtonScope("p")&&A(H,"p"),D(s,c),yt=!0,te=!1;return;case"form":if(ze&&!u.contains("template"))return;u.inButtonScope("p")&&A(H,"p"),F=D(s,c),u.contains("template")||(ze=F);return;case"li":for(te=!1,_=u.elements.length-1;_>=0;_--){if(k=u.elements[_],k instanceof Y.HTMLLIElement){A(H,"li");break}if(K(k,Lt)&&!K(k,Oi))break}u.inButtonScope("p")&&A(H,"p"),D(s,c);return;case"dd":case"dt":for(te=!1,_=u.elements.length-1;_>=0;_--){if(k=u.elements[_],K(k,wl)){A(H,k.localName);break}if(K(k,Lt)&&!K(k,Oi))break}u.inButtonScope("p")&&A(H,"p"),D(s,c);return;case"plaintext":u.inButtonScope("p")&&A(H,"p"),D(s,c),d=ta;return;case"button":u.inScope("button")?(A(H,"button"),g(i,s,c,f)):(ve(),D(s,c),te=!1);return;case"a":var Z=O.findElementByTag("a");Z&&(A(H,s),O.remove(Z),u.removeElement(Z));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":ve(),O.push(D(s,c),c);return;case"nobr":ve(),u.inScope(s)&&(A(H,s),ve()),O.push(D(s,c),c);return;case"applet":case"marquee":case"object":ve(),D(s,c),O.insertMarker(),te=!1;return;case"table":!U._quirks&&u.inButtonScope("p")&&A(H,"p"),D(s,c),te=!1,g=Ae;return;case"area":case"br":case"embed":case"img":case"keygen":case"wbr":ve(),D(s,c),u.pop(),te=!1;return;case"input":ve(),F=D(s,c),u.pop();var xe=F.getAttribute("type");(!xe||xe.toLowerCase()!=="hidden")&&(te=!1);return;case"param":case"source":case"track":D(s,c),u.pop();return;case"hr":u.inButtonScope("p")&&A(H,"p"),K(u.top,"menuitem")&&u.pop(),D(s,c),u.pop(),te=!1;return;case"image":A(be,"img",c,f);return;case"textarea":D(s,c),yt=!0,te=!1,d=ot,Ge=g,g=sn;return;case"xmp":u.inButtonScope("p")&&A(H,"p"),ve(),te=!1,Yr(s,c);return;case"iframe":te=!1,Yr(s,c);return;case"noembed":Yr(s,c);return;case"select":ve(),D(s,c),te=!1,g===Ae||g===ua||g===Tt||g===dr||g===qt?g=cn:g=Ke;return;case"optgroup":case"option":u.top instanceof Y.HTMLOptionElement&&A(H,"option"),ve(),D(s,c);return;case"menuitem":K(u.top,"menuitem")&&u.pop(),ve(),D(s,c);return;case"rb":case"rtc":u.inScope("ruby")&&u.generateImpliedEndTags(),D(s,c);return;case"rp":case"rt":u.inScope("ruby")&&u.generateImpliedEndTags("rtc"),D(s,c);return;case"math":ve(),vl(c),Mi(c),Zn(s,c,N.MATHML),f&&u.pop();return;case"svg":ve(),_l(c),Mi(c),Zn(s,c,N.SVG),f&&u.pop();return;case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}ve(),D(s,c);return;case 3:switch(s){case"template":re(H,s,c);return;case"body":if(!u.inScope("body"))return;g=ds;return;case"html":if(!u.inScope("body"))return;g=ds,g(i,s,c);return;case"address":case"article":case"aside":case"blockquote":case"button":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"listing":case"main":case"menu":case"nav":case"ol":case"pre":case"section":case"summary":case"ul":if(!u.inScope(s))return;u.generateImpliedEndTags(),u.popTag(s);return;case"form":if(u.contains("template")){if(!u.inScope("form"))return;u.generateImpliedEndTags(),u.popTag("form")}else{var ke=ze;if(ze=null,!ke||!u.elementInScope(ke))return;u.generateImpliedEndTags(),u.removeElement(ke)}return;case"p":u.inButtonScope(s)?(u.generateImpliedEndTags(s),u.popTag(s)):(A(be,s,null),g(i,s,c,f));return;case"li":if(!u.inListItemScope(s))return;u.generateImpliedEndTags(s),u.popTag(s);return;case"dd":case"dt":if(!u.inScope(s))return;u.generateImpliedEndTags(s),u.popTag(s);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!u.elementTypeInScope(Y.HTMLHeadingElement))return;u.generateImpliedEndTags(),u.popElementType(Y.HTMLHeadingElement);return;case"sarcasm":break;case"a":case"b":case"big":case"code":case"em":case"font":case"i":case"nobr":case"s":case"small":case"strike":case"strong":case"tt":case"u":var Le=_0(s);if(Le)return;break;case"applet":case"marquee":case"object":if(!u.inScope(s))return;u.generateImpliedEndTags(),u.popTag(s),O.clearToMarker();return;case"br":A(be,s,null);return}for(_=u.elements.length-1;_>=0;_--)if(k=u.elements[_],K(k,s)){u.generateImpliedEndTags(s),u.popElement(k);break}else if(K(k,Lt))return;return}}function sn(i,s,c,f){switch(i){case 1:He(s);return;case-1:u.top instanceof Y.HTMLScriptElement&&(u.top._already_started=!0),u.pop(),g=Ge,g(i);return;case 3:s==="script"?v0():(u.pop(),g=Ge);return;default:return}}function Ae(i,s,c,f){function h(k){for(var F=0,Z=k.length;F<Z;F++)if(k[F][0]==="type")return k[F][1].toLowerCase();return null}switch(i){case 1:if(Xn){A(i,s,c,f);return}else if(K(u.top,tr)){Vr=[],Ge=g,g=uu,g(i,s,c,f);return}break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"caption":u.clearToContext(Un),O.insertMarker(),D(s,c),g=ua;return;case"colgroup":u.clearToContext(Un),D(s,c),g=on;return;case"col":Ae(be,"colgroup",null),g(i,s,c,f);return;case"tbody":case"tfoot":case"thead":u.clearToContext(Un),D(s,c),g=Tt;return;case"td":case"th":case"tr":Ae(be,"tbody",null),g(i,s,c,f);return;case"table":if(!u.inTableScope(s))return;Ae(H,s),g(i,s,c,f);return;case"style":case"script":case"template":re(i,s,c,f);return;case"input":var _=h(c);if(_!=="hidden")break;D(s,c),u.pop();return;case"form":if(ze||u.contains("template"))return;ze=D(s,c),u.popElement(ze);return}break;case 3:switch(s){case"table":if(!u.inTableScope(s))return;u.popTag(s),cr();return;case"body":case"caption":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return;case"template":re(i,s,c,f);return}break;case-1:A(i,s,c,f);return}st=!0,A(i,s,c,f),st=!1}function uu(i,s,c,f){if(i===er){if(nt&&(s=s.replace(Bn,""),s.length===0))return;Vr.push(s)}else{var h=Vr.join("");Vr.length=0,Pn.test(h)?(st=!0,A(er,h),st=!1):He(h),g=Ge,g(i,s,c,f)}}function ua(i,s,c,f){function h(){return u.inTableScope("caption")?(u.generateImpliedEndTags(),u.popTag("caption"),O.clearToMarker(),g=Ae,!0):!1}switch(i){case 2:switch(s){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":h()&&g(i,s,c,f);return}break;case 3:switch(s){case"caption":h();return;case"table":h()&&g(i,s,c,f);return;case"body":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}break}A(i,s,c,f)}function on(i,s,c,f){switch(i){case 1:var h=s.match(Rt);if(h&&(He(h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"html":A(i,s,c,f);return;case"col":D(s,c),u.pop();return;case"template":re(i,s,c,f);return}break;case 3:switch(s){case"colgroup":if(!K(u.top,"colgroup"))return;u.pop(),g=Ae;return;case"col":return;case"template":re(i,s,c,f);return}break;case-1:A(i,s,c,f);return}K(u.top,"colgroup")&&(on(H,"colgroup"),g(i,s,c,f))}function Tt(i,s,c,f){function h(){!u.inTableScope("tbody")&&!u.inTableScope("thead")&&!u.inTableScope("tfoot")||(u.clearToContext(jn),Tt(H,u.top.localName,null),g(i,s,c,f))}switch(i){case 2:switch(s){case"tr":u.clearToContext(jn),D(s,c),g=dr;return;case"th":case"td":Tt(be,"tr",null),g(i,s,c,f);return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":h();return}break;case 3:switch(s){case"table":h();return;case"tbody":case"tfoot":case"thead":u.inTableScope(s)&&(u.clearToContext(jn),u.pop(),g=Ae);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":case"tr":return}break}Ae(i,s,c,f)}function dr(i,s,c,f){function h(){return u.inTableScope("tr")?(u.clearToContext(qi),u.pop(),g=Tt,!0):!1}switch(i){case 2:switch(s){case"th":case"td":u.clearToContext(qi),D(s,c),g=qt,O.insertMarker();return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":case"tr":h()&&g(i,s,c,f);return}break;case 3:switch(s){case"tr":h();return;case"table":h()&&g(i,s,c,f);return;case"tbody":case"tfoot":case"thead":u.inTableScope(s)&&h()&&g(i,s,c,f);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":return}break}Ae(i,s,c,f)}function qt(i,s,c,f){switch(i){case 2:switch(s){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":u.inTableScope("td")?(qt(H,"td"),g(i,s,c,f)):u.inTableScope("th")&&(qt(H,"th"),g(i,s,c,f));return}break;case 3:switch(s){case"td":case"th":if(!u.inTableScope(s))return;u.generateImpliedEndTags(),u.popTag(s),O.clearToMarker(),g=dr;return;case"body":case"caption":case"col":case"colgroup":case"html":return;case"table":case"tbody":case"tfoot":case"thead":case"tr":if(!u.inTableScope(s))return;qt(H,u.inTableScope("td")?"td":"th"),g(i,s,c,f);return}break}A(i,s,c,f)}function Ke(i,s,c,f){switch(i){case 1:if(nt&&(s=s.replace(Bn,""),s.length===0))return;He(s);return;case 4:Fe(s);return;case 5:return;case-1:A(i,s,c,f);return;case 2:switch(s){case"html":A(i,s,c,f);return;case"option":u.top instanceof Y.HTMLOptionElement&&Ke(H,s),D(s,c);return;case"optgroup":u.top instanceof Y.HTMLOptionElement&&Ke(H,"option"),u.top instanceof Y.HTMLOptGroupElement&&Ke(H,s),D(s,c);return;case"select":Ke(H,s);return;case"input":case"keygen":case"textarea":if(!u.inSelectScope("select"))return;Ke(H,"select"),g(i,s,c,f);return;case"script":case"template":re(i,s,c,f);return}break;case 3:switch(s){case"optgroup":u.top instanceof Y.HTMLOptionElement&&u.elements[u.elements.length-2]instanceof Y.HTMLOptGroupElement&&Ke(H,"option"),u.top instanceof Y.HTMLOptGroupElement&&u.pop();return;case"option":u.top instanceof Y.HTMLOptionElement&&u.pop();return;case"select":if(!u.inSelectScope(s))return;u.popTag(s),cr();return;case"template":re(i,s,c,f);return}break}}function cn(i,s,c,f){switch(s){case"caption":case"table":case"tbody":case"tfoot":case"thead":case"tr":case"td":case"th":switch(i){case 2:cn(H,"select"),g(i,s,c,f);return;case 3:u.inTableScope(s)&&(cn(H,"select"),g(i,s,c,f));return}}Ke(i,s,c,f)}function da(i,s,c,f){function h(_){g=_,We[We.length-1]=g,g(i,s,c,f)}switch(i){case 1:case 4:case 5:A(i,s,c,f);return;case-1:u.contains("template")?(u.popTag("template"),O.clearToMarker(),We.pop(),cr(),g(i,s,c,f)):_t();return;case 2:switch(s){case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":re(i,s,c,f);return;case"caption":case"colgroup":case"tbody":case"tfoot":case"thead":h(Ae);return;case"col":h(on);return;case"tr":h(Tt);return;case"td":case"th":h(dr);return}h(A);return;case 3:if(s==="template"){re(i,s,c,f);return}else return}}function ds(i,s,c,f){switch(i){case 1:if(Pn.test(s))break;A(i,s);return;case 4:u.elements[0]._appendChild(U.createComment(s));return;case 5:return;case-1:_t();return;case 2:if(s==="html"){A(i,s,c,f);return}break;case 3:if(s==="html"){if(bt)return;g=fu;return}break}g=A,g(i,s,c,f)}function fa(i,s,c,f){switch(i){case 1:s=s.replace(Ii,""),s.length>0&&He(s);return;case 4:Fe(s);return;case 5:return;case-1:_t();return;case 2:switch(s){case"html":A(i,s,c,f);return;case"frameset":D(s,c);return;case"frame":D(s,c),u.pop();return;case"noframes":re(i,s,c,f);return}break;case 3:if(s==="frameset"){if(bt&&u.top instanceof Y.HTMLHtmlElement)return;u.pop(),!bt&&!(u.top instanceof Y.HTMLFrameSetElement)&&(g=du);return}break}}function du(i,s,c,f){switch(i){case 1:s=s.replace(Ii,""),s.length>0&&He(s);return;case 4:Fe(s);return;case 5:return;case-1:_t();return;case 2:switch(s){case"html":A(i,s,c,f);return;case"noframes":re(i,s,c,f);return}break;case 3:if(s==="html"){g=xu;return}break}}function fu(i,s,c,f){switch(i){case 1:if(Pn.test(s))break;A(i,s,c,f);return;case 4:U._appendChild(U.createComment(s));return;case 5:A(i,s,c,f);return;case-1:_t();return;case 2:if(s==="html"){A(i,s,c,f);return}break}g=A,g(i,s,c,f)}function xu(i,s,c,f){switch(i){case 1:s=s.replace(Ii,""),s.length>0&&A(i,s,c,f);return;case 4:U._appendChild(U.createComment(s));return;case 5:A(i,s,c,f);return;case-1:_t();return;case 2:switch(s){case"html":A(i,s,c,f);return;case"noframes":re(i,s,c,f);return}break}}function fs(i,s,c,f){function h(Z){for(var xe=0,ke=Z.length;xe<ke;xe++)switch(Z[xe][0]){case"color":case"face":case"size":return!0}return!1}var _;switch(i){case 1:te&&Dx.test(s)&&(te=!1),nt&&(s=s.replace(Bn,"\uFFFD")),He(s);return;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"font":if(!h(c))break;case"b":case"big":case"blockquote":case"body":case"br":case"center":case"code":case"dd":case"div":case"dl":case"dt":case"em":case"embed":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"head":case"hr":case"i":case"img":case"li":case"listing":case"menu":case"meta":case"nobr":case"ol":case"p":case"pre":case"ruby":case"s":case"small":case"span":case"strong":case"strike":case"sub":case"sup":case"table":case"tt":case"u":case"ul":case"var":if(bt)break;do u.pop(),_=u.top;while(_.namespaceURI!==N.HTML&&!bl(_)&&!yl(_));se(i,s,c,f);return}_=u.elements.length===1&&bt?t:u.top,_.namespaceURI===N.MATHML?vl(c):_.namespaceURI===N.SVG&&(s=Lx(s),_l(c)),Mi(c),Zn(s,c,_.namespaceURI),f&&(s==="script"&&(_.namespaceURI,N.SVG),u.pop());return;case 3:if(_=u.top,s==="script"&&_.namespaceURI===N.SVG&&_.localName==="script")u.pop();else for(var k=u.elements.length-1,F=u.elements[k];;){if(F.localName.toLowerCase()===s){u.popElement(F);break}if(F=u.elements[--k],F.namespaceURI===N.HTML){g(i,s,c,f);break}}return}}return Gr.testTokenizer=function(i,s,c,f){var h=[];switch(s){case"PCDATA state":d=q;break;case"RCDATA state":d=ot;break;case"RAWTEXT state":d=lr;break;case"PLAINTEXT state":d=ta;break}if(c&&(Ze=c),se=function(k,F,Z,xe){switch(Ot(),k){case 1:h.length>0&&h[h.length-1][0]==="Character"?h[h.length-1][1]+=F:h.push(["Character",F]);break;case 4:h.push(["Comment",F]);break;case 5:h.push(["DOCTYPE",F,Z===void 0?null:Z,xe===void 0?null:xe,!Kn]);break;case 2:for(var ke=Object.create(null),Le=0;Le<Z.length;Le++){var wt=Z[Le];wt.length===1?ke[wt[0]]="":ke[wt[0]]=wt[1]}var ft=["StartTag",F,ke];xe&&ft.push(!0),h.push(ft);break;case 3:h.push(["EndTag",F]);break;case-1:break}},!f)this.parse(i,!0);else{for(var _=0;_<i.length;_++)this.parse(i[_]);this.parse("",!0)}return h},Gr}});var qr=S((_m,Ol)=>{"use strict";Ol.exports=Ml;var Ll=On(),Il=Fn(),Ix=Gn(),Wn=ae(),Mx=bn();function Ml(e){this.contextObject=e}var Ox={xml:{"":!0,"1.0":!0,"2.0":!0},core:{"":!0,"2.0":!0},html:{"":!0,"1.0":!0,"2.0":!0},xhtml:{"":!0,"1.0":!0,"2.0":!0}};Ml.prototype={hasFeature:function(t,r){var n=Ox[(t||"").toLowerCase()];return n&&n[r||""]||!1},createDocumentType:function(t,r,n){return Mx.isValidQName(t)||Wn.InvalidCharacterError(),new Il(this.contextObject,t,r,n)},createDocument:function(t,r,n){var a=new Ll(!1,null),o;return r?o=a.createElementNS(t,r):o=null,n&&a.appendChild(n),o&&a.appendChild(o),t===Wn.NAMESPACE.HTML?a._contentType="application/xhtml+xml":t===Wn.NAMESPACE.SVG?a._contentType="image/svg+xml":a._contentType="application/xml",a},createHTMLDocument:function(t){var r=new Ll(!0,null);r.appendChild(new Il(r,"html"));var n=r.createElement("html");r.appendChild(n);var a=r.createElement("head");if(n.appendChild(a),t!==void 0){var o=r.createElement("title");a.appendChild(o),o.appendChild(r.createTextNode(t))}return n.appendChild(r.createElement("body")),r.modclock=1,r},mozSetOutputMutationHandler:function(e,t){e.mutationHandler=t},mozGetInputMutationHandler:function(e){Wn.nyi()},mozHTMLParser:Ix}});var Fl=S((vm,ql)=>{"use strict";var qx=kn(),Fx=wi();ql.exports=Hi;function Hi(e,t){this._window=e,this._href=t}Hi.prototype=Object.create(Fx.prototype,{constructor:{value:Hi},href:{get:function(){return this._href},set:function(e){this.assign(e)}},assign:{value:function(e){var t=new qx(this._href),r=t.resolve(e);this._href=r}},replace:{value:function(e){this.assign(e)}},reload:{value:function(){this.assign(this.href)}},toString:{value:function(){return this.href}}})});var Pl=S((Em,Hl)=>{"use strict";var Hx=Object.create(null,{appCodeName:{value:"Mozilla"},appName:{value:"Netscape"},appVersion:{value:"4.0"},platform:{value:""},product:{value:"Gecko"},productSub:{value:"20100101"},userAgent:{value:""},vendor:{value:""},vendorSub:{value:""},taintEnabled:{value:function(){return!1}}});Hl.exports=Hx});var Ul=S((Tm,Bl)=>{"use strict";var Px={setTimeout,clearTimeout,setInterval,clearInterval};Bl.exports=Px});var Bi=S((Fr,jl)=>{"use strict";var Pi=ae();Fr=jl.exports={CSSStyleDeclaration:Cn(),CharacterData:Ar(),Comment:ui(),DOMException:xn(),DOMImplementation:qr(),DOMTokenList:$a(),Document:On(),DocumentFragment:fi(),DocumentType:Fn(),Element:$t(),HTMLParser:Gn(),NamedNodeMap:Za(),Node:pe(),NodeList:kt(),NodeFilter:Rr(),ProcessingInstruction:pi(),Text:ci(),Window:Ui()};Pi.merge(Fr,Ti());Pi.merge(Fr,Ln().elements);Pi.merge(Fr,Ci().elements)});var Ui=S((wm,Vl)=>{"use strict";var Bx=qr(),Ux=Ca(),jx=Fl(),Hr=ae();Vl.exports=zn;function zn(e){this.document=e||new Bx(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new jx(this,this.document._address||"about:blank")}zn.prototype=Object.create(Ux.prototype,{console:{value:console},history:{value:{back:Hr.nyi,forward:Hr.nyi,go:Hr.nyi}},navigator:{value:Pl()},window:{get:function(){return this}},self:{get:function(){return this}},frames:{get:function(){return this}},parent:{get:function(){return this}},top:{get:function(){return this}},length:{value:0},frameElement:{value:null},opener:{value:null},onload:{get:function(){return this._getEventHandler("load")},set:function(e){this._setEventHandler("load",e)}},getComputedStyle:{value:function(t){return t.style}}});Hr.expose(Ul(),zn);Hr.expose(Bi(),zn)});var $l=S(It=>{"use strict";var Gl=qr(),Wl=Gn(),Sm=Ui(),zl=Bi();It.createDOMImplementation=function(){return new Gl(null)};It.createDocument=function(e,t){if(e||t){var r=new Wl;return r.parse(e||"",!0),r.document()}return new Gl(null).createHTMLDocument("")};It.createIncrementalHTMLParser=function(){var e=new Wl;return{write:function(t){t.length>0&&e.parse(t,!1,function(){return!0})},end:function(t){e.parse(t||"",!0,function(){return!0})},process:function(t){return e.parse("",!1,t)},document:function(){return e.document()}}};It.createWindow=function(e,t){var r=It.createDocument(e);return t!==void 0&&(r._address=t),new zl.Window(r)};It.impl=zl});import{access as hu}from"fs/promises";function E(e){return{content:[{type:"text",text:JSON.stringify(e,null,2)}]}}function mu(e){return(e||"http://localhost:51234").replace(/\/$/,"")}function gu(e,t){if(!Array.isArray(e))return t;let r=e.map(n=>String(n));return r.length>0?r:t}function bu(e){try{let t=new URL(e);return Number(t.port||(t.protocol==="https:"?443:80))}catch{return 51234}}function Ee(e){let t=e.config||{},r=mu(t.baseUrl);return{baseUrl:r,autoStart:t.autoStart!==!1,relayCommand:t.relayCommand?String(t.relayCommand):void 0,relayArgs:Array.isArray(t.relayArgs)?gu(t.relayArgs,[]):void 0,relayCwd:t.relayCwd?String(t.relayCwd):void 0,relayEnv:t.relayEnv&&typeof t.relayEnv=="object"?t.relayEnv:void 0,startupTimeoutMs:Number(t.startupTimeoutMs||15e3),startupPollIntervalMs:Number(t.startupPollIntervalMs||500),preferBundledRelay:t.preferBundledRelay!==!1,relayPort:Number(t.relayPort||bu(r)||51234),runtimeReadyTimeoutMs:Number(t.runtimeReadyTimeoutMs||3e4),runtimeReadyPollIntervalMs:Number(t.runtimeReadyPollIntervalMs||1e3)}}async function xr(e){await new Promise(t=>setTimeout(t,e))}async function pr(e,t){let r=await fetch(e,{...t,headers:{"content-type":"application/json",...t?.headers||{}}}),n=await r.text(),a=null;try{a=n?JSON.parse(n):null}catch{a={raw:n}}if(!r.ok)throw new Error(`HTTP ${r.status}: ${JSON.stringify(a)}`);return a}async function xs(e){try{return await hu(e),!0}catch{return!1}}function xa(e,t){if((e||"").length>20)throw new Error("Title too long: maximum 20 characters");if((t||"").length>900)throw new Error("Content too long: maximum 900 characters")}function pa(e){let t=Array.from(new Set((e||[]).map(r=>String(r||"").trim()).filter(Boolean)));if(t.length>10)throw new Error("Too many topics: maximum 10");return t}function ha(e){if(Array.isArray(e)&&e.length>18)throw new Error("Too many images: maximum 18")}function ps(e,t){if((e||"").length<1)throw new Error("Title is required");if((e||"").length>30)throw new Error("Title too long: maximum 30 characters");if((t||"").length>1e3)throw new Error("Content too long: maximum 1000 characters")}function hs(e){if(!e||typeof e!="string"||e.trim().length===0)throw new Error("Video file path is required");if(!/\.(mp4|mov|avi|flv|wmv|mkv|webm|m4v|mpg|mpeg)$/i.test(e))throw new Error("Invalid video format. Supported: mp4, mov, avi, flv, wmv, mkv, webm, m4v, mpg, mpeg")}import{spawn as yu}from"child_process";import ba from"path";import{fileURLToPath as _u}from"url";var vu=_u(import.meta.url),bs=ba.dirname(vu),ga=ba.resolve(bs,"bundled-relay","index.js"),ms=ba.resolve(bs,"bundled-relay"),ln=null,xt=null;function ya(){return xt}function ys(e){xt=e}async function ma(e){try{return(await pr(`${e}/health`,{method:"GET"}))?.status==="ok"}catch{return!1}}async function gs(e){try{let r=(await pr(`${e}/api/tools/list_runtimes/execute`,{method:"POST",body:JSON.stringify({input:{}})}))?.result?.runtimes;return!Array.isArray(r)||r.length===0?!1:r.some(n=>n?.online!==!1)}catch{return!1}}function _s(e){if(e.preferBundledRelay&&!e.relayCommand)return{command:process.execPath,args:[ga],cwd:ms,env:{CHROMEAGENT_RELAY_PROJECT_ROOT:ms,PORT:String(e.relayPort)},mode:"bundled"};if(!e.relayCommand)throw new Error("Relay auto-start requires relayCommand, or enable bundled relay with preferBundledRelay=true");return{command:e.relayCommand,args:e.relayArgs&&e.relayArgs.length>0?e.relayArgs:["run","relay"],cwd:e.relayCwd,env:{PORT:String(e.relayPort)},mode:"external"}}async function _a(){if(!await xs(ga))throw new Error(`Bundled relay entry missing: ${ga}`)}function va(e,t){let r=_s(e);if(!r.cwd)throw new Error(`Relay auto-start requires a working directory for ${r.mode} mode`);xt=yu(r.command,r.args,{cwd:r.cwd,env:{...process.env,...e.relayEnv||{},...r.env},stdio:t?["ignore","pipe","pipe"]:"ignore",detached:!t,shell:process.platform==="win32"&&r.mode==="external"}),t?(xt.stdout?.on("data",n=>{t.logger.info(`[relay] ${n.toString().trimEnd()}`)}),xt.stderr?.on("data",n=>{t.logger.error(`[relay] ${n.toString().trimEnd()}`)}),xt.on("close",n=>{t.logger.info(`[relay] process exited with code ${n}`),xt=null})):xt.unref()}async function hr(e){if(await gs(e.baseUrl))return;let t=Date.now()+e.runtimeReadyTimeoutMs;for(;Date.now()<t;)if(await xr(e.runtimeReadyPollIntervalMs),await gs(e.baseUrl))return;throw new Error(`No online runtime connected within ${e.runtimeReadyTimeoutMs}ms. Ensure a browser with the ChromeAgent extension is running and connected to ${e.baseUrl}.`)}async function vs(e){let t=Ee(e);if(await ma(t.baseUrl)){await hr(t);return}if(!t.autoStart)throw new Error(`Relay not reachable: ${t.baseUrl}`);ln||(ln=(async()=>{if(await ma(t.baseUrl)){await hr(t);return}t.preferBundledRelay&&!t.relayCommand&&await _a(),va(t,{logger:{info:a=>console.log(a),error:a=>console.error(a)}});let r=Date.now()+t.startupTimeoutMs;for(;Date.now()<r;){if(await ma(t.baseUrl)){await hr(t);return}await xr(t.startupPollIntervalMs)}let n=_s(t);throw new Error(`Relay failed to start within ${t.startupTimeoutMs}ms: ${t.baseUrl}. Command: ${n.command} ${n.args.join(" ")}`)})());try{await ln}finally{ln=null}}var Eu=2e3,Tu=12e4,wu=1800*1e3;async function Ie(e,t,r){return await vs(e),pr(t,r)}function Su(e){return JSON.stringify({status:e?.status??null,currentNodeId:e?.currentNodeId??null,currentNodeStatus:e?.statusView?.currentNode?.status??null,captureStatus:e?.statusView?.captureWindow?.status??null,lastArtifactReadyAt:e?.statusView?.lastArtifact?.readyAt??null})}async function Ft(e,t){let{baseUrl:r,taskId:n}=t,a=Number(t.maxWaitMs||wu),o=Number(t.inactivityTimeoutMs||Tu),l=Number(t.pollIntervalMs||Eu),p=Date.now()+a,x=null,m=Date.now(),b="",R=async()=>{try{return await Ie(e,`${r}/api/tasks/${encodeURIComponent(n)}/result`)}catch{return x}};for(;Date.now()<p;){x=await Ie(e,`${r}/api/tasks/${encodeURIComponent(n)}`);let I=x?.task,d=I?.status;if(["completed","failed","cancelled","paused"].includes(d))return await R();let Q=Su(I);if(Q!==b&&(b=Q,m=Date.now()),Date.now()-m>=o){let $=await Ie(e,`${r}/api/tasks/${encodeURIComponent(n)}`),M=$?.task?.status;return["completed","failed","cancelled","paused"].includes(M)?await R():{success:!1,timeout:!0,inactivityTimeout:!0,taskId:n,last:$}}await xr(l)}return{success:!1,timeout:!0,taskId:n,last:x}}async function un(e,t){if(t)return t;let r=Ee(e),a=(await Ie(e,`${r.baseUrl}/api/tools/list_runtimes/execute`,{method:"POST",body:JSON.stringify({input:{}})}))?.result?.runtimes;if(!Array.isArray(a)||a.length===0)throw new Error("No online runtime available");return a.find(l=>l?.online!==!1)?.clientId||a[0]?.clientId}async function le(e,t){let r=Ee(e),n={input:t.input||{}};if(t.autoSelectRuntime!==!1){let x=await un(e,t.runtimeId);x&&(n.runtimeId=x)}else t.runtimeId&&(n.runtimeId=t.runtimeId);let a=Array.isArray(t.toolNames)&&t.toolNames.length?t.toolNames:[t.toolName],o=null,l=null;for(let x of a)try{o=await Ie(e,`${r.baseUrl}/api/tools/${encodeURIComponent(x)}/execute`,{method:"POST",body:JSON.stringify(n)});break}catch(m){if(l=m,!String(m?.message||m).includes("Unknown tool"))throw m}if(!o)throw l||new Error("Relay tool execution failed");if(o?.type!=="action"||t.wait===!1)return o;let p=await Ft(e,{baseUrl:r.baseUrl,taskId:o.taskId,maxWaitMs:t.timeoutMs,inactivityTimeoutMs:t.inactivityTimeoutMs,pollIntervalMs:t.pollIntervalMs});return{execute:o,task:p}}async function Ht(e,t){let r=Ee(e),n=await un(e,t.runtimeId),a={taskType:t.taskType,platform:t.platform,targetRuntimeId:n,...t.context&&{context:t.context},...t.payload&&{payload:t.payload}},o=await Ie(e,`${r.baseUrl}/api/tasks`,{method:"POST",body:JSON.stringify(a)});if(!o?.taskId)throw new Error(`Submit task failed: ${JSON.stringify(o)}`);if(t.wait===!1)return o;let l=await Ft(e,{baseUrl:r.baseUrl,taskId:o.taskId});return{submit:o,...l}}function Es(e){e.registerTool({name:"browser_health",description:"Check whether the local ChromeAgent Relay service is healthy. If autoStart is enabled, the plugin will try to start it first.",parameters:{type:"object",properties:{},additionalProperties:!1},async execute(){try{let t=Ee(e),r=await Ie(e,`${t.baseUrl}/health`,{method:"GET"});return E(r)}catch(t){return E({success:!1,error:String(t?.message||t)})}}}),e.registerTool({name:"browser_list_tools",description:"Fetch all tool schemas exposed by the local ChromeAgent Relay. Use this before calling dynamic template tools.",parameters:{type:"object",properties:{},additionalProperties:!1},async execute(){try{let t=Ee(e),r=await Ie(e,`${t.baseUrl}/api/tools`,{method:"GET"});return E(r)}catch(t){return E({success:!1,error:String(t?.message||t)})}}}),e.registerTool({name:"browser_execute_tool",description:"Execute a ChromeAgent Relay tool by name. For query tools, returns the result immediately. For action tools, optionally waits until the task reaches a terminal status. Waiting checks progress every 2 seconds, times out after 120 seconds without progress, and has a 30 minute absolute limit.",parameters:{type:"object",properties:{toolName:{type:"string",description:"Tool name from GET /api/tools, e.g. list_tabs or xiaohongshu_creator_publish_note"},input:{type:"object",description:"JSON input payload for the relay tool",additionalProperties:!0},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"If true and the relay returns an action taskId, poll until terminal status",default:!0}},required:["toolName"],additionalProperties:!1},async execute(t,r){try{return E(await le(e,r))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"browser_wait_task",description:"Poll a ChromeAgent Relay task until it finishes, fails, pauses, is cancelled, or times out. Waiting checks progress every 2 seconds, times out after 120 seconds without progress, and has a 30 minute absolute limit.",parameters:{type:"object",properties:{taskId:{type:"string",description:"Task id returned by an action tool"}},required:["taskId"],additionalProperties:!1},async execute(t,r){try{let n=Ee(e),a=await Ft(e,{baseUrl:n.baseUrl,taskId:r.taskId});return E(a)}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}function Ts(e){e.registerTool({name:"browser_list_runtimes",description:"List online browser runtimes from the ChromeAgent Relay.",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"list_runtimes",input:{},runtimeId:r.runtimeId,wait:!1,autoSelectRuntime:!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"browser_list_tabs",description:"List open browser tabs from the ChromeAgent Relay.",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"list_tabs",input:{},runtimeId:r.runtimeId,wait:!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"xiaohongshu_open_home",description:"\u6253\u5F00\u5C0F\u7EA2\u4E66\u9996\u9875\uFF08\u901A\u8FC7 Relay \u7684 open_tab\uFF09\u3002",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"open_tab",input:{url:"https://www.xiaohongshu.com"},runtimeId:r.runtimeId,wait:r.wait!==!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"xiaohongshu_open_creator_center",description:"\u6253\u5F00\u5C0F\u7EA2\u4E66\u521B\u4F5C\u8005\u4E2D\u5FC3\uFF08\u901A\u8FC7 Relay \u7684 open_tab\uFF09\u3002",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"open_tab",input:{url:"https://creator.xiaohongshu.com"},runtimeId:r.runtimeId,wait:r.wait!==!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}var Ea="Generation constraints: title must be <= 20 characters, topics must be <= 10 items.",Ta="Generation constraints: title must be <= 30 characters, content must be <= 1000 characters.";function ws(e){e.registerTool({name:"xiaohongshu_publish_note",description:`Publish a Xiaohongshu note via the ChromeAgent Relay. ${Ea}`,parameters:{type:"object",properties:{title:{type:"string",description:"Note title (maximum 20 characters)"},content:{type:"string",description:"Note body content"},images:{type:"array",items:{type:"string"},description:"Absolute image file paths"},topics:{type:"array",items:{type:"string"},description:"Optional topic tags (maximum 10 items)"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},required:["title","content","images"],additionalProperties:!1},async execute(t,r){try{xa(r.title,r.content),ha(r.images);let n=pa(r.topics);return E(await le(e,{toolNames:["xiaohongshu_xiaohongshu_creator_publish_note","xiaohongshu_creator_publish_note"],input:{title:r.title,content:r.content,images:r.images,topics:n},runtimeId:r.runtimeId,wait:r.wait}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"xiaohongshu_save_draft",description:`Save a Xiaohongshu note draft via the ChromeAgent Relay. ${Ea}`,parameters:{type:"object",properties:{title:{type:"string",description:"Note title (maximum 20 characters)"},content:{type:"string",description:"Note body content"},images:{type:"array",items:{type:"string"},description:"Absolute image file paths"},topics:{type:"array",items:{type:"string"},description:"Optional topic tags (maximum 10 items)"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},required:["title","content","images"],additionalProperties:!1},async execute(t,r){try{xa(r.title,r.content),ha(r.images);let n=pa(r.topics);return E(await le(e,{toolNames:["xiaohongshu_xiaohongshu_creator_save_note_draft","xiaohongshu_creator_save_note_draft"],input:{title:r.title,content:r.content,images:r.images,topics:n},runtimeId:r.runtimeId,wait:r.wait}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as Nu,mkdir as Au}from"fs/promises";import mr from"path";import ku from"os";function Cu(e){let r=(Array.isArray(e?.task?.result?.steps)?e.task.result.steps:Array.isArray(e?.steps)?e.steps:[]).find(n=>n?.nodeId==="s6"||n?.name==="collect_search_item_details");return Array.isArray(r?.result?.observation?.notes)?r.result.observation.notes:Array.isArray(e?.task?.result?.notes)?e.task.result.notes:Array.isArray(e?.result?.notes)?e.result.notes:[]}function Ss(e){if(e==null)return"";let t=typeof e=="object"?JSON.stringify(e):String(e);return t.includes(",")||t.includes('"')||t.includes(`
10
- `)||t.includes("\r")?'"'+t.replace(/"/g,'""')+'"':t}function Du(e,t){let r=(Array.isArray(e)?e:[]).map(l=>{let p=Array.isArray(l?.topics)?l.topics.map(b=>b?.name).filter(Boolean).join("|"):"",x=Array.isArray(l?.images)?l.images.map(b=>b?.urlDefault||b?.url).filter(Boolean).join(" | "):"",m=Array.isArray(l?.comments)?l.comments.map(b=>{let R=b?.user?.nickname||"",I=b?.content||"";return`${R}: ${I}`.trim()}).filter(Boolean).join(" | "):"";return{keyword:t,rank:l?.rank??"",noteId:l?.noteId??"",title:l?.title??"",authorNickname:l?.author?.nickname??"",authorUserId:l?.author?.userId??"",ipLocation:l?.ipLocation??"",publishTimeMs:l?.publishTime??"",likedCount:l?.interactInfo?.likedCount??"",commentCount:l?.interactInfo?.commentCount??"",collectedCount:l?.interactInfo?.collectedCount??"",shareCount:l?.interactInfo?.shareCount??"",topics:p,content:l?.content??"",imageUrls:x,comments:m}}),n=["keyword","rank","noteId","title","authorNickname","authorUserId","ipLocation","publishTimeMs","likedCount","commentCount","collectedCount","shareCount","topics","content","imageUrls","comments"],a=n.map(l=>Ss(l)).join(","),o=r.map(l=>n.map(p=>Ss(l[p])).join(","));return"\uFEFF"+[a,...o].join(`
9
+ `),se(je,h),d=q}Zr.lookahead=">";function ts(i,s,c){if(s[0]==="-"&&s[1]==="-"){o+=2,Xi(),d=V0;return}s.toUpperCase()==="DOCTYPE"?(o+=7,d=X0):s==="[CDATA["&&h0()?(o+=7,d=ca):d=Zr}ts.lookahead=7;function V0(i){switch(Xi(),i){case 45:d=G0;break;case 62:d=q,se(je,ye(Q));break;default:w(i,vt);break}}function G0(i){switch(i){case 45:d=en;break;case 62:d=q,se(je,ye(Q));break;case-1:se(je,ye(Q)),I();break;default:Q.push(45),w(i,vt);break}}function vt(i){switch(i){case 60:Q.push(i),d=W0;break;case 45:d=sa;break;case 0:Q.push(65533);break;case-1:se(je,ye(Q)),I();break;default:Q.push(i);break}}function W0(i){switch(i){case 33:Q.push(i),d=z0;break;case 60:Q.push(i);break;default:w(i,vt);break}}function z0(i){i===45?d=$0:w(i,vt)}function $0(i){i===45?d=Y0:w(i,sa)}function Y0(i){switch(i){case 62:case-1:w(i,en);break;default:w(i,en);break}}function sa(i){switch(i){case 45:d=en;break;case-1:se(je,ye(Q)),I();break;default:Q.push(45),w(i,vt);break}}function en(i){switch(i){case 62:d=q,se(je,ye(Q));break;case 33:d=K0;break;case 45:Q.push(45);break;case-1:se(je,ye(Q)),I();break;default:Q.push(45),Q.push(45),w(i,vt);break}}function K0(i){switch(i){case 45:Q.push(45),Q.push(45),Q.push(33),d=sa;break;case 62:d=q,se(je,ye(Q));break;case-1:se(je,ye(Q)),I();break;default:Q.push(45),Q.push(45),Q.push(33),w(i,vt);break}}function X0(i){switch(i){case 9:case 10:case 12:case 32:d=rs;break;case-1:Mt(),V(),G(),I();break;default:w(i,rs);break}}function rs(i){switch(i){case 9:case 10:case 12:case 32:break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:Mt(),et.push(i+32),d=oa;break;case 0:Mt(),et.push(65533),d=oa;break;case 62:Mt(),V(),d=q,G();break;case-1:Mt(),V(),G(),I();break;default:Mt(),et.push(i),d=oa;break}}function oa(i){switch(i){case 9:case 10:case 12:case 32:d=ns;break;case 62:d=q,G();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:et.push(i+32);break;case 0:et.push(65533);break;case-1:V(),G(),I();break;default:et.push(i);break}}function ns(i,s,c){switch(i){case 9:case 10:case 12:case 32:o+=1;break;case 62:d=q,o+=1,G();break;case-1:V(),G(),I();break;default:s=s.toUpperCase(),s==="PUBLIC"?(o+=6,d=Q0):s==="SYSTEM"?(o+=6,d=eu):(V(),d=dt);break}}ns.lookahead=6;function Q0(i){switch(i){case 9:case 10:case 12:case 32:d=J0;break;case 34:Wr(),d=as;break;case 39:Wr(),d=is;break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:V(),d=dt;break}}function J0(i){switch(i){case 9:case 10:case 12:case 32:break;case 34:Wr(),d=as;break;case 39:Wr(),d=is;break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:V(),d=dt;break}}function as(i){switch(i){case 34:d=ss;break;case 0:tt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:tt.push(i);break}}function is(i){switch(i){case 39:d=ss;break;case 0:tt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:tt.push(i);break}}function ss(i){switch(i){case 9:case 10:case 12:case 32:d=Z0;break;case 62:d=q,G();break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case-1:V(),G(),I();break;default:V(),d=dt;break}}function Z0(i){switch(i){case 9:case 10:case 12:case 32:break;case 62:d=q,G();break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case-1:V(),G(),I();break;default:V(),d=dt;break}}function eu(i){switch(i){case 9:case 10:case 12:case 32:d=tu;break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:V(),d=dt;break}}function tu(i){switch(i){case 9:case 10:case 12:case 32:break;case 34:it(),d=tn;break;case 39:it(),d=rn;break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:V(),d=dt;break}}function tn(i){switch(i){case 34:d=os;break;case 0:rt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:rt.push(i);break}}function rn(i){switch(i){case 39:d=os;break;case 0:rt.push(65533);break;case 62:V(),d=q,G();break;case-1:V(),G(),I();break;default:rt.push(i);break}}function os(i){switch(i){case 9:case 10:case 12:case 32:break;case 62:d=q,G();break;case-1:V(),G(),I();break;default:d=dt;break}}function dt(i){switch(i){case 62:d=q,G();break;case-1:G(),I();break;default:break}}function ca(i){switch(i){case 93:d=ru;break;case-1:I();break;case 0:nt=!0;default:sr(Ax)||y.push(i);break}}function ru(i){i===93?d=nu:(y.push(93),w(i,ca))}function nu(i){switch(i){case 93:y.push(93);break;case 62:Ot(),d=q;break;default:y.push(93),y.push(93),w(i,ca);break}}function ur(i){switch($e(),B.push(38),i){case 9:case 10:case 12:case 32:case 60:case 38:case-1:w(i,Et);break;case 35:B.push(i),d=au;break;default:w(i,cs);break}}function cs(i){pl.lastIndex=o;var s=pl.exec(n);if(!s)throw new Error("should never happen");var c=s[1];if(!c){d=Et;return}switch(o+=c.length,Dt(B,Rx(c)),X){case Xr:case Qr:case Jr:if(c[c.length-1]!==";"&&/[=A-Za-z0-9]/.test(n[o])){d=Et;return}break;default:break}$e();var f=_x[c];typeof f=="number"?B.push(f):Dt(B,f),d=Et}cs.lookahead=-vx;function au(i){switch($=0,i){case 120:case 88:B.push(i),d=iu;break;default:w(i,su);break}}function iu(i){switch(i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 66:case 67:case 68:case 69:case 70:case 97:case 98:case 99:case 100:case 101:case 102:w(i,ou);break;default:w(i,Et);break}}function su(i){switch(i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:w(i,cu);break;default:w(i,Et);break}}function ou(i){switch(i){case 65:case 66:case 67:case 68:case 69:case 70:$*=16,$+=i-55;break;case 97:case 98:case 99:case 100:case 101:case 102:$*=16,$+=i-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:$*=16,$+=i-48;break;case 59:d=nn;break;default:w(i,nn);break}}function cu(i){switch(i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:$*=10,$+=i-48;break;case 59:d=nn;break;default:w(i,nn);break}}function nn(i){$ in xl?$=xl[$]:($>1114111||$>=55296&&$<57344)&&($=65533),$e(),$<=65535?B.push($):($=$-65536,B.push(55296+($>>10)),B.push(56320+($&1023))),w(i,Et)}function Et(i){switch(X){case Xr:case Qr:case Jr:fe+=ye(B);break;default:Dt(y,B);break}w(i,X)}function lu(i,s,c,f){switch(i){case 1:if(s=s.replace(Rt,""),s.length===0)return;break;case 4:U._appendChild(U.createComment(s));return;case 5:var h=s,_=c,k=f;U.appendChild(new xx(U,h,_,k)),Kn||h.toLowerCase()!=="html"||mx.test(_)||k&&k.toLowerCase()===gx||k===void 0&&ll.test(_)?U._quirks=!0:(bx.test(_)||k!==void 0&&ll.test(_))&&(U._limitedQuirks=!0),g=ls;return}U._quirks=!0,g=ls,g(i,s,c,f)}function ls(i,s,c,f){var h;switch(i){case 1:if(s=s.replace(Rt,""),s.length===0)return;break;case 5:return;case 4:U._appendChild(U.createComment(s));return;case 2:if(s==="html"){h=or(U,s,c),u.push(h),U.appendChild(h),g=an;return}break;case 3:switch(s){case"html":case"head":case"body":case"br":break;default:return}}h=or(U,"html",null),u.push(h),U.appendChild(h),g=an,g(i,s,c,f)}function an(i,s,c,f){switch(i){case 1:if(s=s.replace(Rt,""),s.length===0)return;break;case 5:return;case 4:Fe(s);return;case 2:switch(s){case"html":A(i,s,c,f);return;case"head":var h=R(s,c);Ur=h,g=re;return}break;case 3:switch(s){case"html":case"head":case"body":case"br":break;default:return}}an(be,"head",null),g(i,s,c,f)}function re(i,s,c,f){switch(i){case 1:var h=s.match(Rt);if(h&&(He(h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"html":A(i,s,c,f);return;case"meta":case"base":case"basefont":case"bgsound":case"link":R(s,c),u.pop();return;case"title":y0(s,c);return;case"noscript":if(!jr){R(s,c),g=us;return}case"noframes":case"style":Yr(s,c);return;case"script":zr(function(_){var k=or(_,s,c);return k._parser_inserted=!0,k._force_async=!1,bt&&(k._already_started=!0),Ot(),k}),d=ct,Ge=g,g=sn;return;case"template":R(s,c),O.insertMarker(),te=!1,g=da,We.push(g);return;case"head":return}break;case 3:switch(s){case"head":u.pop(),g=la;return;case"body":case"html":case"br":break;case"template":if(!u.contains("template"))return;u.generateImpliedEndTags(null,"thorough"),u.popTag("template"),O.clearToMarker(),We.pop(),cr();return;default:return}break}re(H,"head",null),g(i,s,c,f)}function us(i,s,c,f){switch(i){case 5:return;case 4:re(i,s);return;case 1:var h=s.match(Rt);if(h&&(re(i,h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 2:switch(s){case"html":A(i,s,c,f);return;case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":re(i,s,c);return;case"head":case"noscript":return}break;case 3:switch(s){case"noscript":u.pop(),g=re;return;case"br":break;default:return}break}us(H,"noscript",null),g(i,s,c,f)}function la(i,s,c,f){switch(i){case 1:var h=s.match(Rt);if(h&&(He(h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"html":A(i,s,c,f);return;case"body":R(s,c),te=!1,g=A;return;case"frameset":R(s,c),g=fa;return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":u.push(Ur),re(be,s,c),u.removeElement(Ur);return;case"head":return}break;case 3:switch(s){case"template":return re(i,s,c,f);case"body":case"html":case"br":break;default:return}break}la(be,"body",null),te=!0,g(i,s,c,f)}function A(i,s,c,f){var h,_,k,F;switch(i){case 1:if(nt&&(s=s.replace(Bn,""),s.length===0))return;te&&Pn.test(s)&&(te=!1),ve(),He(s);return;case 5:return;case 4:Fe(s);return;case-1:if(We.length)return da(i);_t();return;case 2:switch(s){case"html":if(u.contains("template"))return;El(c,u.elements[0]);return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":re(be,s,c);return;case"body":if(h=u.elements[1],!h||!(h instanceof Y.HTMLBodyElement)||u.contains("template"))return;te=!1,El(c,h);return;case"frameset":if(!te||(h=u.elements[1],!h||!(h instanceof Y.HTMLBodyElement)))return;for(h.parentNode&&h.parentNode.removeChild(h);!(u.top instanceof Y.HTMLHtmlElement);)u.pop();R(s,c),g=fa;return;case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"nav":case"ol":case"p":case"section":case"summary":case"ul":u.inButtonScope("p")&&A(H,"p"),R(s,c);return;case"menu":u.inButtonScope("p")&&A(H,"p"),K(u.top,"menuitem")&&u.pop(),R(s,c);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":u.inButtonScope("p")&&A(H,"p"),u.top instanceof Y.HTMLHeadingElement&&u.pop(),R(s,c);return;case"pre":case"listing":u.inButtonScope("p")&&A(H,"p"),R(s,c),yt=!0,te=!1;return;case"form":if(ze&&!u.contains("template"))return;u.inButtonScope("p")&&A(H,"p"),F=R(s,c),u.contains("template")||(ze=F);return;case"li":for(te=!1,_=u.elements.length-1;_>=0;_--){if(k=u.elements[_],k instanceof Y.HTMLLIElement){A(H,"li");break}if(K(k,Lt)&&!K(k,Oi))break}u.inButtonScope("p")&&A(H,"p"),R(s,c);return;case"dd":case"dt":for(te=!1,_=u.elements.length-1;_>=0;_--){if(k=u.elements[_],K(k,wl)){A(H,k.localName);break}if(K(k,Lt)&&!K(k,Oi))break}u.inButtonScope("p")&&A(H,"p"),R(s,c);return;case"plaintext":u.inButtonScope("p")&&A(H,"p"),R(s,c),d=ta;return;case"button":u.inScope("button")?(A(H,"button"),g(i,s,c,f)):(ve(),R(s,c),te=!1);return;case"a":var Z=O.findElementByTag("a");Z&&(A(H,s),O.remove(Z),u.removeElement(Z));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":ve(),O.push(R(s,c),c);return;case"nobr":ve(),u.inScope(s)&&(A(H,s),ve()),O.push(R(s,c),c);return;case"applet":case"marquee":case"object":ve(),R(s,c),O.insertMarker(),te=!1;return;case"table":!U._quirks&&u.inButtonScope("p")&&A(H,"p"),R(s,c),te=!1,g=Ae;return;case"area":case"br":case"embed":case"img":case"keygen":case"wbr":ve(),R(s,c),u.pop(),te=!1;return;case"input":ve(),F=R(s,c),u.pop();var xe=F.getAttribute("type");(!xe||xe.toLowerCase()!=="hidden")&&(te=!1);return;case"param":case"source":case"track":R(s,c),u.pop();return;case"hr":u.inButtonScope("p")&&A(H,"p"),K(u.top,"menuitem")&&u.pop(),R(s,c),u.pop(),te=!1;return;case"image":A(be,"img",c,f);return;case"textarea":R(s,c),yt=!0,te=!1,d=ot,Ge=g,g=sn;return;case"xmp":u.inButtonScope("p")&&A(H,"p"),ve(),te=!1,Yr(s,c);return;case"iframe":te=!1,Yr(s,c);return;case"noembed":Yr(s,c);return;case"select":ve(),R(s,c),te=!1,g===Ae||g===ua||g===Tt||g===dr||g===qt?g=cn:g=Ke;return;case"optgroup":case"option":u.top instanceof Y.HTMLOptionElement&&A(H,"option"),ve(),R(s,c);return;case"menuitem":K(u.top,"menuitem")&&u.pop(),ve(),R(s,c);return;case"rb":case"rtc":u.inScope("ruby")&&u.generateImpliedEndTags(),R(s,c);return;case"rp":case"rt":u.inScope("ruby")&&u.generateImpliedEndTags("rtc"),R(s,c);return;case"math":ve(),vl(c),Mi(c),Zn(s,c,N.MATHML),f&&u.pop();return;case"svg":ve(),_l(c),Mi(c),Zn(s,c,N.SVG),f&&u.pop();return;case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}ve(),R(s,c);return;case 3:switch(s){case"template":re(H,s,c);return;case"body":if(!u.inScope("body"))return;g=ds;return;case"html":if(!u.inScope("body"))return;g=ds,g(i,s,c);return;case"address":case"article":case"aside":case"blockquote":case"button":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"listing":case"main":case"menu":case"nav":case"ol":case"pre":case"section":case"summary":case"ul":if(!u.inScope(s))return;u.generateImpliedEndTags(),u.popTag(s);return;case"form":if(u.contains("template")){if(!u.inScope("form"))return;u.generateImpliedEndTags(),u.popTag("form")}else{var ke=ze;if(ze=null,!ke||!u.elementInScope(ke))return;u.generateImpliedEndTags(),u.removeElement(ke)}return;case"p":u.inButtonScope(s)?(u.generateImpliedEndTags(s),u.popTag(s)):(A(be,s,null),g(i,s,c,f));return;case"li":if(!u.inListItemScope(s))return;u.generateImpliedEndTags(s),u.popTag(s);return;case"dd":case"dt":if(!u.inScope(s))return;u.generateImpliedEndTags(s),u.popTag(s);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!u.elementTypeInScope(Y.HTMLHeadingElement))return;u.generateImpliedEndTags(),u.popElementType(Y.HTMLHeadingElement);return;case"sarcasm":break;case"a":case"b":case"big":case"code":case"em":case"font":case"i":case"nobr":case"s":case"small":case"strike":case"strong":case"tt":case"u":var Le=_0(s);if(Le)return;break;case"applet":case"marquee":case"object":if(!u.inScope(s))return;u.generateImpliedEndTags(),u.popTag(s),O.clearToMarker();return;case"br":A(be,s,null);return}for(_=u.elements.length-1;_>=0;_--)if(k=u.elements[_],K(k,s)){u.generateImpliedEndTags(s),u.popElement(k);break}else if(K(k,Lt))return;return}}function sn(i,s,c,f){switch(i){case 1:He(s);return;case-1:u.top instanceof Y.HTMLScriptElement&&(u.top._already_started=!0),u.pop(),g=Ge,g(i);return;case 3:s==="script"?v0():(u.pop(),g=Ge);return;default:return}}function Ae(i,s,c,f){function h(k){for(var F=0,Z=k.length;F<Z;F++)if(k[F][0]==="type")return k[F][1].toLowerCase();return null}switch(i){case 1:if(Xn){A(i,s,c,f);return}else if(K(u.top,tr)){Vr=[],Ge=g,g=uu,g(i,s,c,f);return}break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"caption":u.clearToContext(Un),O.insertMarker(),R(s,c),g=ua;return;case"colgroup":u.clearToContext(Un),R(s,c),g=on;return;case"col":Ae(be,"colgroup",null),g(i,s,c,f);return;case"tbody":case"tfoot":case"thead":u.clearToContext(Un),R(s,c),g=Tt;return;case"td":case"th":case"tr":Ae(be,"tbody",null),g(i,s,c,f);return;case"table":if(!u.inTableScope(s))return;Ae(H,s),g(i,s,c,f);return;case"style":case"script":case"template":re(i,s,c,f);return;case"input":var _=h(c);if(_!=="hidden")break;R(s,c),u.pop();return;case"form":if(ze||u.contains("template"))return;ze=R(s,c),u.popElement(ze);return}break;case 3:switch(s){case"table":if(!u.inTableScope(s))return;u.popTag(s),cr();return;case"body":case"caption":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return;case"template":re(i,s,c,f);return}break;case-1:A(i,s,c,f);return}st=!0,A(i,s,c,f),st=!1}function uu(i,s,c,f){if(i===er){if(nt&&(s=s.replace(Bn,""),s.length===0))return;Vr.push(s)}else{var h=Vr.join("");Vr.length=0,Pn.test(h)?(st=!0,A(er,h),st=!1):He(h),g=Ge,g(i,s,c,f)}}function ua(i,s,c,f){function h(){return u.inTableScope("caption")?(u.generateImpliedEndTags(),u.popTag("caption"),O.clearToMarker(),g=Ae,!0):!1}switch(i){case 2:switch(s){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":h()&&g(i,s,c,f);return}break;case 3:switch(s){case"caption":h();return;case"table":h()&&g(i,s,c,f);return;case"body":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}break}A(i,s,c,f)}function on(i,s,c,f){switch(i){case 1:var h=s.match(Rt);if(h&&(He(h[0]),s=s.substring(h[0].length)),s.length===0)return;break;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"html":A(i,s,c,f);return;case"col":R(s,c),u.pop();return;case"template":re(i,s,c,f);return}break;case 3:switch(s){case"colgroup":if(!K(u.top,"colgroup"))return;u.pop(),g=Ae;return;case"col":return;case"template":re(i,s,c,f);return}break;case-1:A(i,s,c,f);return}K(u.top,"colgroup")&&(on(H,"colgroup"),g(i,s,c,f))}function Tt(i,s,c,f){function h(){!u.inTableScope("tbody")&&!u.inTableScope("thead")&&!u.inTableScope("tfoot")||(u.clearToContext(jn),Tt(H,u.top.localName,null),g(i,s,c,f))}switch(i){case 2:switch(s){case"tr":u.clearToContext(jn),R(s,c),g=dr;return;case"th":case"td":Tt(be,"tr",null),g(i,s,c,f);return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":h();return}break;case 3:switch(s){case"table":h();return;case"tbody":case"tfoot":case"thead":u.inTableScope(s)&&(u.clearToContext(jn),u.pop(),g=Ae);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":case"tr":return}break}Ae(i,s,c,f)}function dr(i,s,c,f){function h(){return u.inTableScope("tr")?(u.clearToContext(qi),u.pop(),g=Tt,!0):!1}switch(i){case 2:switch(s){case"th":case"td":u.clearToContext(qi),R(s,c),g=qt,O.insertMarker();return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":case"tr":h()&&g(i,s,c,f);return}break;case 3:switch(s){case"tr":h();return;case"table":h()&&g(i,s,c,f);return;case"tbody":case"tfoot":case"thead":u.inTableScope(s)&&h()&&g(i,s,c,f);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":return}break}Ae(i,s,c,f)}function qt(i,s,c,f){switch(i){case 2:switch(s){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":u.inTableScope("td")?(qt(H,"td"),g(i,s,c,f)):u.inTableScope("th")&&(qt(H,"th"),g(i,s,c,f));return}break;case 3:switch(s){case"td":case"th":if(!u.inTableScope(s))return;u.generateImpliedEndTags(),u.popTag(s),O.clearToMarker(),g=dr;return;case"body":case"caption":case"col":case"colgroup":case"html":return;case"table":case"tbody":case"tfoot":case"thead":case"tr":if(!u.inTableScope(s))return;qt(H,u.inTableScope("td")?"td":"th"),g(i,s,c,f);return}break}A(i,s,c,f)}function Ke(i,s,c,f){switch(i){case 1:if(nt&&(s=s.replace(Bn,""),s.length===0))return;He(s);return;case 4:Fe(s);return;case 5:return;case-1:A(i,s,c,f);return;case 2:switch(s){case"html":A(i,s,c,f);return;case"option":u.top instanceof Y.HTMLOptionElement&&Ke(H,s),R(s,c);return;case"optgroup":u.top instanceof Y.HTMLOptionElement&&Ke(H,"option"),u.top instanceof Y.HTMLOptGroupElement&&Ke(H,s),R(s,c);return;case"select":Ke(H,s);return;case"input":case"keygen":case"textarea":if(!u.inSelectScope("select"))return;Ke(H,"select"),g(i,s,c,f);return;case"script":case"template":re(i,s,c,f);return}break;case 3:switch(s){case"optgroup":u.top instanceof Y.HTMLOptionElement&&u.elements[u.elements.length-2]instanceof Y.HTMLOptGroupElement&&Ke(H,"option"),u.top instanceof Y.HTMLOptGroupElement&&u.pop();return;case"option":u.top instanceof Y.HTMLOptionElement&&u.pop();return;case"select":if(!u.inSelectScope(s))return;u.popTag(s),cr();return;case"template":re(i,s,c,f);return}break}}function cn(i,s,c,f){switch(s){case"caption":case"table":case"tbody":case"tfoot":case"thead":case"tr":case"td":case"th":switch(i){case 2:cn(H,"select"),g(i,s,c,f);return;case 3:u.inTableScope(s)&&(cn(H,"select"),g(i,s,c,f));return}}Ke(i,s,c,f)}function da(i,s,c,f){function h(_){g=_,We[We.length-1]=g,g(i,s,c,f)}switch(i){case 1:case 4:case 5:A(i,s,c,f);return;case-1:u.contains("template")?(u.popTag("template"),O.clearToMarker(),We.pop(),cr(),g(i,s,c,f)):_t();return;case 2:switch(s){case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":re(i,s,c,f);return;case"caption":case"colgroup":case"tbody":case"tfoot":case"thead":h(Ae);return;case"col":h(on);return;case"tr":h(Tt);return;case"td":case"th":h(dr);return}h(A);return;case 3:if(s==="template"){re(i,s,c,f);return}else return}}function ds(i,s,c,f){switch(i){case 1:if(Pn.test(s))break;A(i,s);return;case 4:u.elements[0]._appendChild(U.createComment(s));return;case 5:return;case-1:_t();return;case 2:if(s==="html"){A(i,s,c,f);return}break;case 3:if(s==="html"){if(bt)return;g=fu;return}break}g=A,g(i,s,c,f)}function fa(i,s,c,f){switch(i){case 1:s=s.replace(Ii,""),s.length>0&&He(s);return;case 4:Fe(s);return;case 5:return;case-1:_t();return;case 2:switch(s){case"html":A(i,s,c,f);return;case"frameset":R(s,c);return;case"frame":R(s,c),u.pop();return;case"noframes":re(i,s,c,f);return}break;case 3:if(s==="frameset"){if(bt&&u.top instanceof Y.HTMLHtmlElement)return;u.pop(),!bt&&!(u.top instanceof Y.HTMLFrameSetElement)&&(g=du);return}break}}function du(i,s,c,f){switch(i){case 1:s=s.replace(Ii,""),s.length>0&&He(s);return;case 4:Fe(s);return;case 5:return;case-1:_t();return;case 2:switch(s){case"html":A(i,s,c,f);return;case"noframes":re(i,s,c,f);return}break;case 3:if(s==="html"){g=xu;return}break}}function fu(i,s,c,f){switch(i){case 1:if(Pn.test(s))break;A(i,s,c,f);return;case 4:U._appendChild(U.createComment(s));return;case 5:A(i,s,c,f);return;case-1:_t();return;case 2:if(s==="html"){A(i,s,c,f);return}break}g=A,g(i,s,c,f)}function xu(i,s,c,f){switch(i){case 1:s=s.replace(Ii,""),s.length>0&&A(i,s,c,f);return;case 4:U._appendChild(U.createComment(s));return;case 5:A(i,s,c,f);return;case-1:_t();return;case 2:switch(s){case"html":A(i,s,c,f);return;case"noframes":re(i,s,c,f);return}break}}function fs(i,s,c,f){function h(Z){for(var xe=0,ke=Z.length;xe<ke;xe++)switch(Z[xe][0]){case"color":case"face":case"size":return!0}return!1}var _;switch(i){case 1:te&&Dx.test(s)&&(te=!1),nt&&(s=s.replace(Bn,"\uFFFD")),He(s);return;case 4:Fe(s);return;case 5:return;case 2:switch(s){case"font":if(!h(c))break;case"b":case"big":case"blockquote":case"body":case"br":case"center":case"code":case"dd":case"div":case"dl":case"dt":case"em":case"embed":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"head":case"hr":case"i":case"img":case"li":case"listing":case"menu":case"meta":case"nobr":case"ol":case"p":case"pre":case"ruby":case"s":case"small":case"span":case"strong":case"strike":case"sub":case"sup":case"table":case"tt":case"u":case"ul":case"var":if(bt)break;do u.pop(),_=u.top;while(_.namespaceURI!==N.HTML&&!bl(_)&&!yl(_));se(i,s,c,f);return}_=u.elements.length===1&&bt?t:u.top,_.namespaceURI===N.MATHML?vl(c):_.namespaceURI===N.SVG&&(s=Lx(s),_l(c)),Mi(c),Zn(s,c,_.namespaceURI),f&&(s==="script"&&(_.namespaceURI,N.SVG),u.pop());return;case 3:if(_=u.top,s==="script"&&_.namespaceURI===N.SVG&&_.localName==="script")u.pop();else for(var k=u.elements.length-1,F=u.elements[k];;){if(F.localName.toLowerCase()===s){u.popElement(F);break}if(F=u.elements[--k],F.namespaceURI===N.HTML){g(i,s,c,f);break}}return}}return Gr.testTokenizer=function(i,s,c,f){var h=[];switch(s){case"PCDATA state":d=q;break;case"RCDATA state":d=ot;break;case"RAWTEXT state":d=lr;break;case"PLAINTEXT state":d=ta;break}if(c&&(Ze=c),se=function(k,F,Z,xe){switch(Ot(),k){case 1:h.length>0&&h[h.length-1][0]==="Character"?h[h.length-1][1]+=F:h.push(["Character",F]);break;case 4:h.push(["Comment",F]);break;case 5:h.push(["DOCTYPE",F,Z===void 0?null:Z,xe===void 0?null:xe,!Kn]);break;case 2:for(var ke=Object.create(null),Le=0;Le<Z.length;Le++){var wt=Z[Le];wt.length===1?ke[wt[0]]="":ke[wt[0]]=wt[1]}var ft=["StartTag",F,ke];xe&&ft.push(!0),h.push(ft);break;case 3:h.push(["EndTag",F]);break;case-1:break}},!f)this.parse(i,!0);else{for(var _=0;_<i.length;_++)this.parse(i[_]);this.parse("",!0)}return h},Gr}});var qr=S((_m,Ol)=>{"use strict";Ol.exports=Ml;var Ll=On(),Il=Fn(),Ix=Gn(),Wn=ae(),Mx=bn();function Ml(e){this.contextObject=e}var Ox={xml:{"":!0,"1.0":!0,"2.0":!0},core:{"":!0,"2.0":!0},html:{"":!0,"1.0":!0,"2.0":!0},xhtml:{"":!0,"1.0":!0,"2.0":!0}};Ml.prototype={hasFeature:function(t,r){var n=Ox[(t||"").toLowerCase()];return n&&n[r||""]||!1},createDocumentType:function(t,r,n){return Mx.isValidQName(t)||Wn.InvalidCharacterError(),new Il(this.contextObject,t,r,n)},createDocument:function(t,r,n){var a=new Ll(!1,null),o;return r?o=a.createElementNS(t,r):o=null,n&&a.appendChild(n),o&&a.appendChild(o),t===Wn.NAMESPACE.HTML?a._contentType="application/xhtml+xml":t===Wn.NAMESPACE.SVG?a._contentType="image/svg+xml":a._contentType="application/xml",a},createHTMLDocument:function(t){var r=new Ll(!0,null);r.appendChild(new Il(r,"html"));var n=r.createElement("html");r.appendChild(n);var a=r.createElement("head");if(n.appendChild(a),t!==void 0){var o=r.createElement("title");a.appendChild(o),o.appendChild(r.createTextNode(t))}return n.appendChild(r.createElement("body")),r.modclock=1,r},mozSetOutputMutationHandler:function(e,t){e.mutationHandler=t},mozGetInputMutationHandler:function(e){Wn.nyi()},mozHTMLParser:Ix}});var Fl=S((vm,ql)=>{"use strict";var qx=kn(),Fx=wi();ql.exports=Hi;function Hi(e,t){this._window=e,this._href=t}Hi.prototype=Object.create(Fx.prototype,{constructor:{value:Hi},href:{get:function(){return this._href},set:function(e){this.assign(e)}},assign:{value:function(e){var t=new qx(this._href),r=t.resolve(e);this._href=r}},replace:{value:function(e){this.assign(e)}},reload:{value:function(){this.assign(this.href)}},toString:{value:function(){return this.href}}})});var Pl=S((Em,Hl)=>{"use strict";var Hx=Object.create(null,{appCodeName:{value:"Mozilla"},appName:{value:"Netscape"},appVersion:{value:"4.0"},platform:{value:""},product:{value:"Gecko"},productSub:{value:"20100101"},userAgent:{value:""},vendor:{value:""},vendorSub:{value:""},taintEnabled:{value:function(){return!1}}});Hl.exports=Hx});var Ul=S((Tm,Bl)=>{"use strict";var Px={setTimeout,clearTimeout,setInterval,clearInterval};Bl.exports=Px});var Bi=S((Fr,jl)=>{"use strict";var Pi=ae();Fr=jl.exports={CSSStyleDeclaration:Cn(),CharacterData:Ar(),Comment:ui(),DOMException:xn(),DOMImplementation:qr(),DOMTokenList:$a(),Document:On(),DocumentFragment:fi(),DocumentType:Fn(),Element:$t(),HTMLParser:Gn(),NamedNodeMap:Za(),Node:pe(),NodeList:kt(),NodeFilter:Rr(),ProcessingInstruction:pi(),Text:ci(),Window:Ui()};Pi.merge(Fr,Ti());Pi.merge(Fr,Ln().elements);Pi.merge(Fr,Ci().elements)});var Ui=S((wm,Vl)=>{"use strict";var Bx=qr(),Ux=Ca(),jx=Fl(),Hr=ae();Vl.exports=zn;function zn(e){this.document=e||new Bx(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new jx(this,this.document._address||"about:blank")}zn.prototype=Object.create(Ux.prototype,{console:{value:console},history:{value:{back:Hr.nyi,forward:Hr.nyi,go:Hr.nyi}},navigator:{value:Pl()},window:{get:function(){return this}},self:{get:function(){return this}},frames:{get:function(){return this}},parent:{get:function(){return this}},top:{get:function(){return this}},length:{value:0},frameElement:{value:null},opener:{value:null},onload:{get:function(){return this._getEventHandler("load")},set:function(e){this._setEventHandler("load",e)}},getComputedStyle:{value:function(t){return t.style}}});Hr.expose(Ul(),zn);Hr.expose(Bi(),zn)});var $l=S(It=>{"use strict";var Gl=qr(),Wl=Gn(),Sm=Ui(),zl=Bi();It.createDOMImplementation=function(){return new Gl(null)};It.createDocument=function(e,t){if(e||t){var r=new Wl;return r.parse(e||"",!0),r.document()}return new Gl(null).createHTMLDocument("")};It.createIncrementalHTMLParser=function(){var e=new Wl;return{write:function(t){t.length>0&&e.parse(t,!1,function(){return!0})},end:function(t){e.parse(t||"",!0,function(){return!0})},process:function(t){return e.parse("",!1,t)},document:function(){return e.document()}}};It.createWindow=function(e,t){var r=It.createDocument(e);return t!==void 0&&(r._address=t),new zl.Window(r)};It.impl=zl});import{access as hu}from"fs/promises";function E(e){return{content:[{type:"text",text:JSON.stringify(e,null,2)}]}}function mu(e){return(e||"http://localhost:51234").replace(/\/$/,"")}function gu(e,t){if(!Array.isArray(e))return t;let r=e.map(n=>String(n));return r.length>0?r:t}function bu(e){try{let t=new URL(e);return Number(t.port||(t.protocol==="https:"?443:80))}catch{return 51234}}function Ee(e){let t=e.config||{},r=mu(t.baseUrl);return{baseUrl:r,autoStart:t.autoStart!==!1,relayCommand:t.relayCommand?String(t.relayCommand):void 0,relayArgs:Array.isArray(t.relayArgs)?gu(t.relayArgs,[]):void 0,relayCwd:t.relayCwd?String(t.relayCwd):void 0,relayEnv:t.relayEnv&&typeof t.relayEnv=="object"?t.relayEnv:void 0,startupTimeoutMs:Number(t.startupTimeoutMs||15e3),startupPollIntervalMs:Number(t.startupPollIntervalMs||500),preferBundledRelay:t.preferBundledRelay!==!1,relayPort:Number(t.relayPort||bu(r)||51234),runtimeReadyTimeoutMs:Number(t.runtimeReadyTimeoutMs||3e4),runtimeReadyPollIntervalMs:Number(t.runtimeReadyPollIntervalMs||1e3)}}async function xr(e){await new Promise(t=>setTimeout(t,e))}async function pr(e,t){let r=await fetch(e,{...t,headers:{"content-type":"application/json",...t?.headers||{}}}),n=await r.text(),a=null;try{a=n?JSON.parse(n):null}catch{a={raw:n}}if(!r.ok)throw new Error(`HTTP ${r.status}: ${JSON.stringify(a)}`);return a}async function xs(e){try{return await hu(e),!0}catch{return!1}}function xa(e,t){if((e||"").length>20)throw new Error("Title too long: maximum 20 characters");if((t||"").length>900)throw new Error("Content too long: maximum 900 characters")}function pa(e){let t=Array.from(new Set((e||[]).map(r=>String(r||"").trim()).filter(Boolean)));if(t.length>10)throw new Error("Too many topics: maximum 10");return t}function ha(e){if(Array.isArray(e)&&e.length>18)throw new Error("Too many images: maximum 18")}function ps(e,t){if((e||"").length<1)throw new Error("Title is required");if((e||"").length>30)throw new Error("Title too long: maximum 30 characters");if((t||"").length>1e3)throw new Error("Content too long: maximum 1000 characters")}function hs(e){if(!e||typeof e!="string"||e.trim().length===0)throw new Error("Video file path is required");if(!/\.(mp4|mov|avi|flv|wmv|mkv|webm|m4v|mpg|mpeg)$/i.test(e))throw new Error("Invalid video format. Supported: mp4, mov, avi, flv, wmv, mkv, webm, m4v, mpg, mpeg")}import{spawn as yu}from"child_process";import ba from"path";import{fileURLToPath as _u}from"url";var vu=_u(import.meta.url),bs=ba.dirname(vu),ga=ba.resolve(bs,"bundled-relay","index.js"),ms=ba.resolve(bs,"bundled-relay"),ln=null,xt=null;function ya(){return xt}function ys(e){xt=e}async function ma(e){try{return(await pr(`${e}/health`,{method:"GET"}))?.status==="ok"}catch{return!1}}async function gs(e){try{let r=(await pr(`${e}/api/tools/list_runtimes/execute`,{method:"POST",body:JSON.stringify({input:{}})}))?.result?.runtimes;return!Array.isArray(r)||r.length===0?!1:r.some(n=>n?.online!==!1)}catch{return!1}}function _s(e){if(e.preferBundledRelay&&!e.relayCommand)return{command:process.execPath,args:[ga],cwd:ms,env:{CHROMEAGENT_RELAY_PROJECT_ROOT:ms,PORT:String(e.relayPort)},mode:"bundled"};if(!e.relayCommand)throw new Error("Relay auto-start requires relayCommand, or enable bundled relay with preferBundledRelay=true");return{command:e.relayCommand,args:e.relayArgs&&e.relayArgs.length>0?e.relayArgs:["run","relay"],cwd:e.relayCwd,env:{PORT:String(e.relayPort)},mode:"external"}}async function _a(){if(!await xs(ga))throw new Error(`Bundled relay entry missing: ${ga}`)}function va(e,t){let r=_s(e);if(!r.cwd)throw new Error(`Relay auto-start requires a working directory for ${r.mode} mode`);xt=yu(r.command,r.args,{cwd:r.cwd,env:{...process.env,...e.relayEnv||{},...r.env},stdio:t?["ignore","pipe","pipe"]:"ignore",detached:!t,shell:process.platform==="win32"&&r.mode==="external"}),t?(xt.stdout?.on("data",n=>{t.logger.info(`[relay] ${n.toString().trimEnd()}`)}),xt.stderr?.on("data",n=>{t.logger.error(`[relay] ${n.toString().trimEnd()}`)}),xt.on("close",n=>{t.logger.info(`[relay] process exited with code ${n}`),xt=null})):xt.unref()}async function hr(e){if(await gs(e.baseUrl))return;let t=Date.now()+e.runtimeReadyTimeoutMs;for(;Date.now()<t;)if(await xr(e.runtimeReadyPollIntervalMs),await gs(e.baseUrl))return;throw new Error(`No online runtime connected within ${e.runtimeReadyTimeoutMs}ms. Ensure a browser with the ChromeAgent extension is running and connected to ${e.baseUrl}.`)}async function vs(e){let t=Ee(e);if(await ma(t.baseUrl)){await hr(t);return}if(!t.autoStart)throw new Error(`Relay not reachable: ${t.baseUrl}`);ln||(ln=(async()=>{if(await ma(t.baseUrl)){await hr(t);return}t.preferBundledRelay&&!t.relayCommand&&await _a(),va(t,{logger:{info:a=>console.log(a),error:a=>console.error(a)}});let r=Date.now()+t.startupTimeoutMs;for(;Date.now()<r;){if(await ma(t.baseUrl)){await hr(t);return}await xr(t.startupPollIntervalMs)}let n=_s(t);throw new Error(`Relay failed to start within ${t.startupTimeoutMs}ms: ${t.baseUrl}. Command: ${n.command} ${n.args.join(" ")}`)})());try{await ln}finally{ln=null}}var Eu=2e3,Tu=12e4,wu=1800*1e3;async function Ie(e,t,r){return await vs(e),pr(t,r)}function Su(e){return JSON.stringify({status:e?.status??null,currentNodeId:e?.currentNodeId??null,currentNodeStatus:e?.statusView?.currentNode?.status??null,captureStatus:e?.statusView?.captureWindow?.status??null,lastArtifactReadyAt:e?.statusView?.lastArtifact?.readyAt??null})}async function Ft(e,t){let{baseUrl:r,taskId:n}=t,a=Number(t.maxWaitMs||wu),o=Number(t.inactivityTimeoutMs||Tu),l=Number(t.pollIntervalMs||Eu),x=Date.now()+a,p=null,m=Date.now(),b="",D=async()=>{try{return await Ie(e,`${r}/api/tasks/${encodeURIComponent(n)}/result`)}catch{return p}};for(;Date.now()<x;){p=await Ie(e,`${r}/api/tasks/${encodeURIComponent(n)}`);let L=p?.task,d=L?.status;if(["completed","failed","cancelled","paused"].includes(d))return await D();let X=Su(L);if(X!==b&&(b=X,m=Date.now()),Date.now()-m>=o){let $=await Ie(e,`${r}/api/tasks/${encodeURIComponent(n)}`),M=$?.task?.status;return["completed","failed","cancelled","paused"].includes(M)?await D():{success:!1,timeout:!0,inactivityTimeout:!0,taskId:n,last:$}}await xr(l)}return{success:!1,timeout:!0,taskId:n,last:p}}async function un(e,t){if(t)return t;let r=Ee(e),a=(await Ie(e,`${r.baseUrl}/api/tools/list_runtimes/execute`,{method:"POST",body:JSON.stringify({input:{}})}))?.result?.runtimes;if(!Array.isArray(a)||a.length===0)throw new Error("No online runtime available");return a.find(l=>l?.online!==!1)?.clientId||a[0]?.clientId}async function le(e,t){let r=Ee(e),n={input:t.input||{}};if(t.autoSelectRuntime!==!1){let p=await un(e,t.runtimeId);p&&(n.runtimeId=p)}else t.runtimeId&&(n.runtimeId=t.runtimeId);let a=Array.isArray(t.toolNames)&&t.toolNames.length?t.toolNames:[t.toolName],o=null,l=null;for(let p of a)try{o=await Ie(e,`${r.baseUrl}/api/tools/${encodeURIComponent(p)}/execute`,{method:"POST",body:JSON.stringify(n)});break}catch(m){if(l=m,!String(m?.message||m).includes("Unknown tool"))throw m}if(!o)throw l||new Error("Relay tool execution failed");if(o?.type!=="action"||t.wait===!1)return o;let x=await Ft(e,{baseUrl:r.baseUrl,taskId:o.taskId,maxWaitMs:t.timeoutMs,inactivityTimeoutMs:t.inactivityTimeoutMs,pollIntervalMs:t.pollIntervalMs});return{execute:o,task:x}}async function Ht(e,t){let r=Ee(e),n=await un(e,t.runtimeId),a={taskType:t.taskType,platform:t.platform,targetRuntimeId:n,...t.context&&{context:t.context},...t.payload&&{payload:t.payload}},o=await Ie(e,`${r.baseUrl}/api/tasks`,{method:"POST",body:JSON.stringify(a)});if(!o?.taskId)throw new Error(`Submit task failed: ${JSON.stringify(o)}`);if(t.wait===!1)return o;let l=await Ft(e,{baseUrl:r.baseUrl,taskId:o.taskId});return{submit:o,...l}}function Es(e){e.registerTool({name:"browser_health",description:"Check whether the local ChromeAgent Relay service is healthy. If autoStart is enabled, the plugin will try to start it first.",parameters:{type:"object",properties:{},additionalProperties:!1},async execute(){try{let t=Ee(e),r=await Ie(e,`${t.baseUrl}/health`,{method:"GET"});return E(r)}catch(t){return E({success:!1,error:String(t?.message||t)})}}}),e.registerTool({name:"browser_list_tools",description:"Fetch all tool schemas exposed by the local ChromeAgent Relay. Use this before calling dynamic template tools.",parameters:{type:"object",properties:{},additionalProperties:!1},async execute(){try{let t=Ee(e),r=await Ie(e,`${t.baseUrl}/api/tools`,{method:"GET"});return E(r)}catch(t){return E({success:!1,error:String(t?.message||t)})}}}),e.registerTool({name:"browser_execute_tool",description:"Execute a ChromeAgent Relay tool by name. For query tools, returns the result immediately. For action tools, optionally waits until the task reaches a terminal status. Waiting checks progress every 2 seconds, times out after 120 seconds without progress, and has a 30 minute absolute limit.",parameters:{type:"object",properties:{toolName:{type:"string",description:"Tool name from GET /api/tools, e.g. list_tabs or xiaohongshu_creator_publish_note"},input:{type:"object",description:"JSON input payload for the relay tool",additionalProperties:!0},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"If true and the relay returns an action taskId, poll until terminal status",default:!0}},required:["toolName"],additionalProperties:!1},async execute(t,r){try{return E(await le(e,r))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"browser_wait_task",description:"Poll a ChromeAgent Relay task until it finishes, fails, pauses, is cancelled, or times out. Waiting checks progress every 2 seconds, times out after 120 seconds without progress, and has a 30 minute absolute limit.",parameters:{type:"object",properties:{taskId:{type:"string",description:"Task id returned by an action tool"}},required:["taskId"],additionalProperties:!1},async execute(t,r){try{let n=Ee(e),a=await Ft(e,{baseUrl:n.baseUrl,taskId:r.taskId});return E(a)}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}function Ts(e){e.registerTool({name:"browser_list_runtimes",description:"List online browser runtimes from the ChromeAgent Relay.",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"list_runtimes",input:{},runtimeId:r.runtimeId,wait:!1,autoSelectRuntime:!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"browser_list_tabs",description:"List open browser tabs from the ChromeAgent Relay.",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"list_tabs",input:{},runtimeId:r.runtimeId,wait:!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"xiaohongshu_open_home",description:"\u6253\u5F00\u5C0F\u7EA2\u4E66\u9996\u9875\uFF08\u901A\u8FC7 Relay \u7684 open_tab\uFF09\u3002",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"open_tab",input:{url:"https://www.xiaohongshu.com"},runtimeId:r.runtimeId,wait:r.wait!==!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"xiaohongshu_open_creator_center",description:"\u6253\u5F00\u5C0F\u7EA2\u4E66\u521B\u4F5C\u8005\u4E2D\u5FC3\uFF08\u901A\u8FC7 Relay \u7684 open_tab\uFF09\u3002",parameters:{type:"object",properties:{runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},additionalProperties:!1},async execute(t,r){try{return E(await le(e,{toolName:"open_tab",input:{url:"https://creator.xiaohongshu.com"},runtimeId:r.runtimeId,wait:r.wait!==!1}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}var Ea="Generation constraints: title must be <= 20 characters, topics must be <= 10 items.",Ta="Generation constraints: title must be <= 30 characters, content must be <= 1000 characters.";function ws(e){e.registerTool({name:"xiaohongshu_publish_note",description:`Publish a Xiaohongshu note via the ChromeAgent Relay. ${Ea}`,parameters:{type:"object",properties:{title:{type:"string",description:"Note title (maximum 20 characters)"},content:{type:"string",description:"Note body content"},images:{type:"array",items:{type:"string"},description:"Absolute image file paths"},topics:{type:"array",items:{type:"string"},description:"Optional topic tags (maximum 10 items)"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},required:["title","content","images"],additionalProperties:!1},async execute(t,r){try{xa(r.title,r.content),ha(r.images);let n=pa(r.topics);return E(await le(e,{toolNames:["xiaohongshu_xiaohongshu_creator_publish_note","xiaohongshu_creator_publish_note"],input:{title:r.title,content:r.content,images:r.images,topics:n},runtimeId:r.runtimeId,wait:r.wait}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}}),e.registerTool({name:"xiaohongshu_save_draft",description:`Save a Xiaohongshu note draft via the ChromeAgent Relay. ${Ea}`,parameters:{type:"object",properties:{title:{type:"string",description:"Note title (maximum 20 characters)"},content:{type:"string",description:"Note body content"},images:{type:"array",items:{type:"string"},description:"Absolute image file paths"},topics:{type:"array",items:{type:"string"},description:"Optional topic tags (maximum 10 items)"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0}},required:["title","content","images"],additionalProperties:!1},async execute(t,r){try{xa(r.title,r.content),ha(r.images);let n=pa(r.topics);return E(await le(e,{toolNames:["xiaohongshu_xiaohongshu_creator_save_note_draft","xiaohongshu_creator_save_note_draft"],input:{title:r.title,content:r.content,images:r.images,topics:n},runtimeId:r.runtimeId,wait:r.wait}))}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as Nu,mkdir as Au}from"fs/promises";import mr from"path";import ku from"os";function Cu(e){let r=(Array.isArray(e?.task?.result?.steps)?e.task.result.steps:Array.isArray(e?.steps)?e.steps:[]).find(n=>n?.nodeId==="s6"||n?.name==="collect_search_item_details");return Array.isArray(r?.result?.observation?.notes)?r.result.observation.notes:Array.isArray(e?.task?.result?.notes)?e.task.result.notes:Array.isArray(e?.result?.notes)?e.result.notes:[]}function Ss(e){if(e==null)return"";let t=typeof e=="object"?JSON.stringify(e):String(e);return t.includes(",")||t.includes('"')||t.includes(`
10
+ `)||t.includes("\r")?'"'+t.replace(/"/g,'""')+'"':t}function Du(e,t){let r=(Array.isArray(e)?e:[]).map(l=>{let x=Array.isArray(l?.topics)?l.topics.map(b=>b?.name).filter(Boolean).join("|"):"",p=Array.isArray(l?.images)?l.images.map(b=>b?.urlDefault||b?.url).filter(Boolean).join(" | "):"",m=Array.isArray(l?.comments)?l.comments.map(b=>{let D=b?.user?.nickname||"",L=b?.content||"";return`${D}: ${L}`.trim()}).filter(Boolean).join(" | "):"";return{keyword:t,rank:l?.rank??"",noteId:l?.noteId??"",title:l?.title??"",authorNickname:l?.author?.nickname??"",authorUserId:l?.author?.userId??"",ipLocation:l?.ipLocation??"",publishTimeMs:l?.publishTime??"",likedCount:l?.interactInfo?.likedCount??"",commentCount:l?.interactInfo?.commentCount??"",collectedCount:l?.interactInfo?.collectedCount??"",shareCount:l?.interactInfo?.shareCount??"",topics:x,content:l?.content??"",imageUrls:p,comments:m}}),n=["keyword","rank","noteId","title","authorNickname","authorUserId","ipLocation","publishTimeMs","likedCount","commentCount","collectedCount","shareCount","topics","content","imageUrls","comments"],a=n.map(l=>Ss(l)).join(","),o=r.map(l=>n.map(x=>Ss(l[x])).join(","));return"\uFEFF"+[a,...o].join(`
11
11
  `)}function Ru(e,t){if(typeof e=="string")return mr.isAbsolute(e)?e:mr.resolve(process.cwd(),e);let r=new Date,n=[r.getFullYear(),String(r.getMonth()+1).padStart(2,"0"),String(r.getDate()).padStart(2,"0"),"_",String(r.getHours()).padStart(2,"0"),String(r.getMinutes()).padStart(2,"0"),String(r.getSeconds()).padStart(2,"0")].join(""),a=String(t||"").replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g,"_").slice(0,50),o=process.env.OPENCLAW_WORKSPACE_DIR||mr.join(ku.homedir(),".openclaw","workspace");return mr.resolve(o,"xhs",`xhs_${a}_${n}.csv`)}function Ns(e){e.registerTool({name:"xiaohongshu_search_notes",description:`Search Xiaohongshu notes by keyword. Opens xiaohongshu.com, performs a human-like search with optional filters (sort, note type, publish time, etc.), scrolls to collect results, and captures the search API responses.
12
12
  \u6CE8\u610F\uFF1A\u5BFC\u51FA\u65F6\u8BF7\u4FDD\u7559\u539F\u59CB\u6570\u636E\uFF0C\u4E0D\u8981\u5BF9\u91C7\u96C6\u5230\u7684\u6570\u636E\u505A\u4EFB\u4F55\u4FEE\u6539\u3001\u683C\u5F0F\u5316\u6216\u4E8C\u6B21\u52A0\u5DE5\u3002
13
13
  Supports rich filter conditions via the 'filters' array, e.g. [{"group":"\u6392\u5E8F\u4F9D\u636E","option":"\u6700\u65B0"},{"group":"\u7B14\u8BB0\u7C7B\u578B","option":"\u56FE\u6587"}].
@@ -16,12 +16,12 @@ Available filter groups and options:
16
16
  \u7B14\u8BB0\u7C7B\u578B: \u4E0D\u9650, \u89C6\u9891, \u56FE\u6587
17
17
  \u53D1\u5E03\u65F6\u95F4: \u4E0D\u9650, \u4E00\u5929\u5185, \u4E00\u5468\u5185, \u534A\u5E74\u5185
18
18
  \u641C\u7D22\u8303\u56F4: \u4E0D\u9650, \u5DF2\u770B\u8FC7, \u672A\u770B\u8FC7, \u5DF2\u5173\u6CE8
19
- \u4F4D\u7F6E\u8DDD\u79BB: \u4E0D\u9650, \u540C\u57CE, \u9644\u8FD1`,parameters:{type:"object",properties:{keyword:{type:"string",description:"Search keyword to query on Xiaohongshu"},targetCount:{type:"number",description:"Target number of notes to collect (default: 25). The crawler scrolls until this count is reached or no more results.",default:25},filters:{type:"array",description:'Filter conditions array. Each element: { "group": "<group label>", "option": "<option label>" }. E.g. [{"group":"\u6392\u5E8F\u4F9D\u636E","option":"\u6700\u65B0"},{"group":"\u7B14\u8BB0\u7C7B\u578B","option":"\u56FE\u6587"}]',items:{type:"object",properties:{group:{type:"string",description:"Filter group label (e.g. \u6392\u5E8F\u4F9D\u636E, \u7B14\u8BB0\u7C7B\u578B)"},option:{type:"string",description:"Filter option label (e.g. \u6700\u65B0, \u56FE\u6587)"}},required:["group","option"]}},sort:{type:"string",description:"Shorthand sort order (deprecated, prefer filters): general (default), time_descending, popularity_descending, comment_descending, collect_descending",default:"general"},noteType:{type:"string",description:"Shorthand note type filter (deprecated, prefer filters): 0 (all), 1 (video), 2 (image/text)",default:"0"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0},detailTargetCount:{type:"number",description:"Optional number of note details to collect. When provided, after collecting the search list, the crawler will open each note and capture detailed information (title, content, comments, interactions, etc.)."},randomizeOrder:{type:"boolean",description:"Whether to randomize the order of notes when collecting details (default: true). Only effective when detailTargetCount is provided.",default:!0},saveToCsv:{type:["string","boolean"],default:!0,description:"Save search results to a CSV file (notes_only). Pass true to auto-generate filename (xhs_{keyword}_{timestamp}.csv) under the workspace xhs/ directory, or a custom file path (e.g., ./results.csv or /absolute/path/results.csv). Pass false to skip saving."}},required:["keyword"],additionalProperties:!1},async execute(t,r){try{let n=Array.isArray(r.filters)?r.filters:[];if(n.length===0){let p={general:"\u7EFC\u5408",time_descending:"\u6700\u65B0",popularity_descending:"\u6700\u591A\u70B9\u8D5E",comment_descending:"\u6700\u591A\u8BC4\u8BBA",collect_descending:"\u6700\u591A\u6536\u85CF"},x={0:"\u4E0D\u9650",1:"\u89C6\u9891",2:"\u56FE\u6587"},m=r.sort||"general",b=r.noteType||"0";m&&m!=="general"&&n.push({group:"\u6392\u5E8F\u4F9D\u636E",option:p[m]||m}),b&&b!=="0"&&n.push({group:"\u7B14\u8BB0\u7C7B\u578B",option:x[b]||b})}let a={keyword:r.keyword,targetCount:r.targetCount||25};n.length>0&&(a.filters=n),r.detailTargetCount!=null&&(a.detailTargetCount=r.detailTargetCount),r.randomizeOrder!=null&&(a.randomizeOrder=r.randomizeOrder);let o=await le(e,{toolNames:["xiaohongshu_xiaohongshu_web_search_notes","xiaohongshu_web_search_notes","xiaohongshu_xiaohongshu_home_search_notes","xiaohongshu_home_search_notes"],input:a,runtimeId:r.runtimeId,wait:r.wait!==!1}),l=Cu(o);if(r.saveToCsv!==!1&&r.saveToCsv!=null){let p=Ru(r.saveToCsv,r.keyword),x=mr.dirname(p);await Au(x,{recursive:!0});let m=Du(l,r.keyword);return await Nu(p,m,"utf-8"),E({...o,savedToCsv:p,savedCsvFormat:"notes_only",savedCsvCount:l.length})}return E(o)}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as Lu,mkdir as Iu}from"fs/promises";import gr from"path";import Mu from"os";function Ou(e){let t=Array.isArray(e?.task?.result?.steps)?e.task.result.steps:Array.isArray(e?.steps)?e.steps:[],r=t.find(o=>o?.stepId==="s3"||o?.name==="collect_product_detail"),n=t.find(o=>o?.stepId==="s5"||o?.name==="collect_product_comments"),a=t.find(o=>o?.stepId==="s8"||o?.name==="collect_product_ask_answers");return{detail:r?.result?.observation?.data??null,comments:n?.result?.observation?.data??null,askAnswers:a?.result?.observation?.data??null}}function As(e){e.registerTool({name:"taobao_collect_product",description:`Collect Taobao/Tmall product detail and comments. Opens the product detail page, extracts structured product data (title, price, specs, etc.), then opens the comments panel and captures comment API responses. Optionally collects ask-answers when includeAskAnswers=true.
19
+ \u4F4D\u7F6E\u8DDD\u79BB: \u4E0D\u9650, \u540C\u57CE, \u9644\u8FD1`,parameters:{type:"object",properties:{keyword:{type:"string",description:"Search keyword to query on Xiaohongshu"},targetCount:{type:"number",description:"Target number of notes to collect (default: 25). The crawler scrolls until this count is reached or no more results.",default:25},filters:{type:"array",description:'Filter conditions array. Each element: { "group": "<group label>", "option": "<option label>" }. E.g. [{"group":"\u6392\u5E8F\u4F9D\u636E","option":"\u6700\u65B0"},{"group":"\u7B14\u8BB0\u7C7B\u578B","option":"\u56FE\u6587"}]',items:{type:"object",properties:{group:{type:"string",description:"Filter group label (e.g. \u6392\u5E8F\u4F9D\u636E, \u7B14\u8BB0\u7C7B\u578B)"},option:{type:"string",description:"Filter option label (e.g. \u6700\u65B0, \u56FE\u6587)"}},required:["group","option"]}},sort:{type:"string",description:"Shorthand sort order (deprecated, prefer filters): general (default), time_descending, popularity_descending, comment_descending, collect_descending",default:"general"},noteType:{type:"string",description:"Shorthand note type filter (deprecated, prefer filters): 0 (all), 1 (video), 2 (image/text)",default:"0"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status",default:!0},detailTargetCount:{type:"number",description:"Optional number of note details to collect. When provided, after collecting the search list, the crawler will open each note and capture detailed information (title, content, comments, interactions, etc.)."},randomizeOrder:{type:"boolean",description:"Whether to randomize the order of notes when collecting details (default: true). Only effective when detailTargetCount is provided.",default:!0},saveToCsv:{type:["string","boolean"],default:!0,description:"Save search results to a CSV file (notes_only). Pass true to auto-generate filename (xhs_{keyword}_{timestamp}.csv) under the workspace xhs/ directory, or a custom file path (e.g., ./results.csv or /absolute/path/results.csv). Pass false to skip saving."}},required:["keyword"],additionalProperties:!1},async execute(t,r){try{let n=Array.isArray(r.filters)?r.filters:[];if(n.length===0){let x={general:"\u7EFC\u5408",time_descending:"\u6700\u65B0",popularity_descending:"\u6700\u591A\u70B9\u8D5E",comment_descending:"\u6700\u591A\u8BC4\u8BBA",collect_descending:"\u6700\u591A\u6536\u85CF"},p={0:"\u4E0D\u9650",1:"\u89C6\u9891",2:"\u56FE\u6587"},m=r.sort||"general",b=r.noteType||"0";m&&m!=="general"&&n.push({group:"\u6392\u5E8F\u4F9D\u636E",option:x[m]||m}),b&&b!=="0"&&n.push({group:"\u7B14\u8BB0\u7C7B\u578B",option:p[b]||b})}let a={keyword:r.keyword,targetCount:r.targetCount||25};n.length>0&&(a.filters=n),r.detailTargetCount!=null&&(a.detailTargetCount=r.detailTargetCount),r.randomizeOrder!=null&&(a.randomizeOrder=r.randomizeOrder);let o=await le(e,{toolNames:["xiaohongshu_xiaohongshu_web_search_notes","xiaohongshu_web_search_notes","xiaohongshu_xiaohongshu_home_search_notes","xiaohongshu_home_search_notes"],input:a,runtimeId:r.runtimeId,wait:r.wait!==!1}),l=Cu(o);if(r.saveToCsv!==!1&&r.saveToCsv!=null){let x=Ru(r.saveToCsv,r.keyword),p=mr.dirname(x);await Au(p,{recursive:!0});let m=Du(l,r.keyword);return await Nu(x,m,"utf-8"),E({...o,savedToCsv:x,savedCsvFormat:"notes_only",savedCsvCount:l.length})}return E(o)}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as Lu,mkdir as Iu}from"fs/promises";import gr from"path";import Mu from"os";function Ou(e){let t=Array.isArray(e?.task?.result?.steps)?e.task.result.steps:Array.isArray(e?.steps)?e.steps:[],r=t.find(o=>o?.stepId==="s3"||o?.name==="collect_product_detail"),n=t.find(o=>o?.stepId==="s5"||o?.name==="collect_product_comments"),a=t.find(o=>o?.stepId==="s8"||o?.name==="collect_product_ask_answers");return{detail:r?.result?.observation?.data??null,comments:n?.result?.observation?.data??null,askAnswers:a?.result?.observation?.data??null}}function As(e){e.registerTool({name:"taobao_collect_product",description:`Collect Taobao/Tmall product detail and comments. Opens the product detail page, extracts structured product data (title, price, specs, etc.), then opens the comments panel and captures comment API responses. Optionally collects ask-answers when includeAskAnswers=true.
20
20
  Supports Taobao (item.taobao.com) and Tmall (detail.tmall.com) product URLs.
21
- \u6CE8\u610F\uFF1A\u5BFC\u51FA\u65F6\u8BF7\u4FDD\u7559\u539F\u59CB\u6570\u636E\uFF0C\u4E0D\u8981\u5BF9\u91C7\u96C6\u5230\u7684\u6570\u636E\u505A\u4EFB\u4F55\u4FEE\u6539\u3001\u683C\u5F0F\u5316\u6216\u4E8C\u6B21\u52A0\u5DE5\u3002`,parameters:{type:"object",properties:{url:{type:"string",description:"Taobao or Tmall product detail page URL (e.g. https://detail.tmall.com/item.htm?id=xxx or https://item.taobao.com/item.htm?id=xxx)"},runtimeId:{type:"string",description:"Optional runtime clientId. If omitted, auto-selects the first online runtime."},wait:{type:"boolean",description:"Whether to wait for the task to complete (default: true)",default:!0},targetCommentCount:{type:"number",description:"Target number of comments to collect (default: 50)",default:50},includeAskAnswers:{type:"boolean",description:"Whether to collect ask-answers after comments (default: false)",default:!1},targetAskAnswerCount:{type:"number",description:"Target number of ask-answers to collect when includeAskAnswers=true (default: 60)",default:60},saveToFile:{type:["string","boolean"],default:!0,description:"Save collected product data to a JSON file. Pass true to auto-generate filename (taobao_{productId}_{timestamp}.json) under the workspace taobao/ directory, or a custom file path (e.g., ./product.json). Pass false to skip saving."}},required:["url"],additionalProperties:!1},async execute(t,r){try{let n={url:r.url,...r.targetCommentCount!=null&&{targetCommentCount:r.targetCommentCount},...r.includeAskAnswers===!0&&{includeAskAnswers:!0,targetAskAnswerCount:r.targetAskAnswerCount??60}},a=await le(e,{toolNames:["taobao_taobao_web_collect_product_data","taobao_web_collect_product_data"],input:n,runtimeId:r.runtimeId,wait:r.wait!==!1});if(r.saveToFile!==!1&&r.saveToFile!=null){let o;if(typeof r.saveToFile=="string")o=gr.isAbsolute(r.saveToFile)?r.saveToFile:gr.resolve(process.cwd(),r.saveToFile);else{let x=new Date,m=[x.getFullYear(),String(x.getMonth()+1).padStart(2,"0"),String(x.getDate()).padStart(2,"0"),"_",String(x.getHours()).padStart(2,"0"),String(x.getMinutes()).padStart(2,"0"),String(x.getSeconds()).padStart(2,"0")].join(""),b=r.url.match(/[?&]id=(\d+)/),R=b?b[1]:"unknown",I=process.env.OPENCLAW_WORKSPACE_DIR||gr.join(Mu.homedir(),".openclaw","workspace");o=gr.resolve(I,"taobao",`taobao_${R}_${m}.json`)}let l=gr.dirname(o);await Iu(l,{recursive:!0});let p=Ou(a);return await Lu(o,JSON.stringify(p,null,2),"utf-8"),E({...a,savedToFile:o,savedFormat:"product_data"})}return E(a)}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as qu,mkdir as ks}from"fs/promises";import Pt from"path";import Fu from"os";var Hu=process.env.OPENCLAW_WORKSPACE_DIR||Pt.join(Fu.homedir(),".openclaw","workspace");function Rs(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function Pu(e=new Date){let t=new Date(e),r=e.getHours()<6?2:1;t.setDate(t.getDate()-r);let n=Rs(t);return`${n}|${n}`}function Bu(e=new Date){let t=e.getHours()<6?2:1,r=new Date(e);r.setDate(r.getDate()-t);let n=Rs(r);return{effectiveMetricPeriodLabel:t===2?"\u524D\u5929":"\u6628\u5929",effectiveDateRange:`${n}|${n}`}}function Ls(e){return typeof e=="string"?e.replace(/\s+/g,""):""}function Uu(e){let t=typeof e.metricPeriodLabel=="string"&&e.metricPeriodLabel.trim()?e.metricPeriodLabel.trim():"\u6628\u5929",r=Ls(t),n=typeof e.requestDateType=="string"&&e.requestDateType.trim()?e.requestDateType.trim():"",a=typeof e.requestDateRange=="string"?e.requestDateRange.trim():"",o=e.invokeDirectly===!0,l=t,p=a;if(!n)switch(r){case"\u6628\u5929":case"\u65E5":n="day";break;case"\u5468":n="week";break;case"\u6708":n="month";break;case"\u5B9E\u65F6":n="today";break;default:n="today";break}if(!a&&r==="\u6628\u5929"&&(a=Pu()),r==="\u5B9E\u65F6"&&!e.requestDateRange&&(a=""),r==="\u6628\u5929"){let x=Bu();l=x.effectiveMetricPeriodLabel,p=a||x.effectiveDateRange,new Date().getHours()<6&&(o=!0)}return{metricPeriodLabel:t,effectiveMetricPeriodLabel:l,effectiveDateRange:p,invokeDirectly:o,requestDateType:n,requestDateRange:a}}function ju(e){let t=[...Array.isArray(e?.steps)?e.steps:[],...Array.isArray(e?.nodes)?e.nodes:[]];for(let r of t){let n=r?.result?.observation?.data;if(n&&typeof n=="object")return n}return null}function Cs(e,t){return[...Array.isArray(e?.steps)?e.steps:[],...Array.isArray(e?.nodes)?e.nodes:[]].find(n=>n?.name===t)||null}function Ds(e){let t=e?.result?.observation,r=t?.capturedNetwork?.body;if(r&&typeof r=="object")return r;let n=t?.response?.bodyJson;return n&&typeof n=="object"?n:null}function Vu(e){let t=Cs(e,"invoke_live_metrics_overview"),r=Cs(e,"invoke_live_metrics_trend"),n=Ds(t),a=Ds(r);return!n&&!a?null:{overview:n,trend:a,capturedAt:t?.result?.observation?.invokedAt||r?.result?.observation?.invokedAt||new Date().toISOString(),meta:{overviewUrl:t?.result?.observation?.request?.url,trendUrl:r?.result?.observation?.request?.url,overviewStatus:t?.result?.observation?.response?.status,trendStatus:r?.result?.observation?.response?.status}}}function Gu(e,t){if(t){let l=Vu(e);if(l)return l}let r=Array.isArray(e?.nodes)?e.nodes:[],n=t?"s4b":"s4",o=r.find(l=>l.nodeId===n)?.result?.observation?.data;return o&&typeof o=="object"?o:ju(e)}function Is(e){e.registerTool({name:"sycm_capture_live_metrics",description:"\u6355\u83B7\u751F\u610F\u53C2\u8C0B\u9996\u9875\u6307\u6807\u6570\u636E\u3002\u652F\u6301\u901A\u8FC7\u9875\u9762\u70B9\u51FB\u6216\u76F4\u63A5\u8C03\u7528\u63A5\u53E3\u4E24\u79CD\u65B9\u5F0F\u91C7\u96C6\uFF0C\u652F\u6301\u6628\u5929/\u5B9E\u65F6/\u65E5/\u5468/\u6708\u7B49\u65F6\u95F4\u7C92\u5EA6\uFF0C\u652F\u6301\u81EA\u5B9A\u4E49\u65E5\u671F\u8303\u56F4\u3002\u6CE8\u610F\uFF1A\u5BFC\u51FA\u65F6\u8BF7\u4FDD\u7559\u539F\u59CB\u6570\u636E\uFF0C\u4E0D\u8981\u5BF9\u91C7\u96C6\u5230\u7684\u6570\u636E\u505A\u4EFB\u4F55\u4FEE\u6539\u3001\u683C\u5F0F\u5316\u6216\u4E8C\u6B21\u52A0\u5DE5\u3002",parameters:{type:"object",properties:{url:{type:"string",description:"\u751F\u610F\u53C2\u8C0B\u9996\u9875URL",default:"https://sycm.taobao.com/portal/home.htm"},metricPeriodLabel:{type:"string",description:"\u6307\u6807\u5468\u671F\u6807\u7B7E\uFF0C\u652F\u6301\uFF1A\u6628\u5929\u3001\u5B9E\u65F6\u3001\u65E5\u3001\u5468\u3001\u6708",default:"\u6628\u5929"},invokeDirectly:{type:"boolean",description:"\u662F\u5426\u8DF3\u8FC7\u9875\u9762\u70B9\u51FB\uFF0C\u76F4\u63A5\u5728\u9875\u9762\u4F1A\u8BDD\u5185\u8C03\u7528\u63A5\u53E3\uFF1B06:00 \u524D\u8BF7\u6C42\u201C\u6628\u5929\u201D\u65F6\u4F1A\u5F3A\u5236\u8D70\u76F4\u8C03\u4EE5\u56DE\u9000\u5230\u524D\u5929"},requestDateType:{type:"string",description:"\u76F4\u8C03\u63A5\u53E3\u65F6\u4F7F\u7528\u7684 dateType\uFF0C\u4F8B\u5982 today/day/week/month\uFF1B\u672A\u4F20\u65F6\u4F1A\u6309 metricPeriodLabel \u81EA\u52A8\u63A8\u5BFC"},requestDateRange:{type:"string",description:"\u76F4\u8C03\u63A5\u53E3\u65F6\u4F7F\u7528\u7684 dateRange\uFF0C\u683C\u5F0F YYYY-MM-DD|YYYY-MM-DD\uFF1B\u672A\u4F20\u65F6\u201C\u6628\u5929\u201D\u4F1A\u81EA\u52A8\u8865\u6210\u53EF\u7528\u7684\u6700\u8FD1\u65E5\u8303\u56F4\uFF0C\u5B9E\u65F6\u53EF\u7559\u7A7A",default:""},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF\u7684 runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},saveToFile:{type:["string","boolean"],description:"\u5C06\u91C7\u96C6\u7ED3\u679C\u4FDD\u5B58\u5230 JSON \u6587\u4EF6\u3002\u4F20 true \u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D\u5230 workspace sycm/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002",default:!0}}},async execute(t,r){try{let n=Uu(r),a=await Ht(e,{taskType:"browser_action",platform:"taobao",context:{siteId:"sycm_taobao"},payload:{url:r.url||"https://sycm.taobao.com/portal/home.htm",metricPeriodLabel:n.metricPeriodLabel,effectiveMetricPeriodLabel:n.effectiveMetricPeriodLabel,invokeDirectly:n.invokeDirectly,requestDateType:n.requestDateType,requestDateRange:n.requestDateRange,effectiveDateRange:n.effectiveDateRange},runtimeId:r.runtimeId,wait:r.wait!==!1});if(r.saveToFile===!1)return E(a);let o=Gu(a?.result||a,n.invokeDirectly),l;if(typeof r.saveToFile=="string")l=Pt.isAbsolute(r.saveToFile)?r.saveToFile:Pt.resolve(process.cwd(),r.saveToFile);else{let x=Pt.join(Hu,"sycm");await ks(x,{recursive:!0});let m=new Date,b=[m.getFullYear(),String(m.getMonth()+1).padStart(2,"0"),String(m.getDate()).padStart(2,"0"),"_",String(m.getHours()).padStart(2,"0"),String(m.getMinutes()).padStart(2,"0"),String(m.getSeconds()).padStart(2,"0")].join(""),I=`sycm-live-metrics-${Ls(n.effectiveMetricPeriodLabel||n.metricPeriodLabel)}-${b}.json`;l=Pt.join(x,I)}return await ks(Pt.dirname(l),{recursive:!0}),await qu(l,JSON.stringify(o||a,null,2),"utf-8"),E({...a,liveMetrics:o,effectiveMetricPeriodLabel:n.effectiveMetricPeriodLabel,effectiveDateRange:n.effectiveDateRange,invokeDirectly:n.invokeDirectly,savedToFile:l,savedFormat:"json"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}function Ms(){return{title:{type:"string",description:"Video title (maximum 30 characters)"},content:{type:"string",description:"Video description (optional, maximum 1000 characters)"},video:{type:"string",description:"Absolute video file path"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status (default: true)",default:!0},timeoutMs:{type:"number",description:"Optional overall timeout in milliseconds for waiting on the relay task (default: 300000)"},inactivityTimeoutMs:{type:"number",description:"Optional no-progress timeout in milliseconds while waiting on the relay task (default: 60000)"},pollIntervalMs:{type:"number",description:"Optional polling interval in milliseconds (default: 2000)"}}}async function Os(e,t,r){return ps(r.title,r.content),hs(r.video),await le(e,{toolNames:t,input:{title:r.title,content:typeof r.content=="string"?r.content:"",video:r.video},runtimeId:r.runtimeId,wait:r.wait,timeoutMs:r.timeoutMs,inactivityTimeoutMs:r.inactivityTimeoutMs,pollIntervalMs:r.pollIntervalMs})}function Wu(e){let t=e?.task?.result??e?.result??null;return Array.isArray(t?.nodes)?t.nodes:Array.isArray(t?.steps)?t.steps:[]}function zu(e){let t=e?.task??null,r=t?.task?.status??t?.status??null,n=t?.result??e?.result??null,a=Wu(e),l=["submit_publish","confirm_cover","set_cover","upload_video","fill_title","fill_content"].map(R=>a.find(I=>I?.nodeId===R&&I?.status==="failed")).find(Boolean)||a.find(R=>R?.status==="failed")||null,p=l?.result?.observation??l?.observation??null,x=p?.error||l?.error?.message||n?.error||t?.error||null,m=p?.reason||l?.error?.code||null,b=p?.code||l?.error?.code||null;return m==="sms_verification_required"||b==="ERR_SMS_VERIFICATION_REQUIRED"?{success:!1,error:typeof x=="string"&&x.length>0?x:"\u53D1\u5E03\u5931\u8D25\uFF1A\u89E6\u53D1\u77ED\u4FE1\u9A8C\u8BC1\u7801\u6821\u9A8C\uFF0C\u9700\u8981\u4EBA\u5DE5\u9A8C\u8BC1",errorType:"SMS_VERIFICATION_REQUIRED",failedNodeId:l?.nodeId??"submit_publish",failedReason:m||"sms_verification_required",failedCode:b||"ERR_SMS_VERIFICATION_REQUIRED",failedObservation:p??null,taskStatus:r}:r==="failed"||l?{success:!1,error:typeof x=="string"&&x.length>0?x:`Douyin task failed${l?.nodeId?` at node ${l.nodeId}`:""}`,errorType:b||m||"TASK_FAILED",failedNodeId:l?.nodeId??null,failedReason:m,failedCode:b,failedObservation:p??null,taskStatus:r}:null}function qs(e){let t=zu(e);return t?{...e,...t}:e}function Fs(e){e.registerTool({name:"douyin_publish_video",description:`Publish a video to Douyin via the ChromeAgent Relay. ${Ta}`,parameters:{type:"object",properties:Ms(),required:["title","video"],additionalProperties:!1},async execute(t,r){try{let n=await Os(e,["douyin_douyin_creator_publish_video","douyin_creator_publish_video"],r);return E(qs(n))}catch(n){let a=n?.message||String(n);return E({success:!1,error:a,errorType:n?.code||(a.includes("file")?"FILE_ERROR":a.includes("Title")||a.includes("Content")?"VALIDATION_ERROR":a.includes("HTTP")||a.includes("fetch")?"NETWORK_ERROR":"UNKNOWN_ERROR")})}}}),e.registerTool({name:"douyin_save_video_draft",description:`Save a Douyin video draft via the ChromeAgent Relay. ${Ta}`,parameters:{type:"object",properties:Ms(),required:["title","video"],additionalProperties:!1},async execute(t,r){try{let n=await Os(e,["douyin_douyin_creator_save_video_draft","douyin_creator_save_video_draft"],r);return E(qs(n))}catch(n){let a=n?.message||String(n);return E({success:!1,error:a,errorType:n?.code||(a.includes("file")?"FILE_ERROR":a.includes("Title")||a.includes("Content")?"VALIDATION_ERROR":a.includes("HTTP")||a.includes("fetch")?"NETWORK_ERROR":"UNKNOWN_ERROR")})}}})}import{mkdir as $u,writeFile as Yu}from"fs/promises";import Ku from"os";import br from"path";var Hs="https://fxg.jinritemai.com/ffa/mshop/homepage/index?channel=zhaoshang",Ps="Day",Xu=process.env.OPENCLAW_WORKSPACE_DIR||br.join(Ku.homedir(),".openclaw","workspace");function Qu(e){return Array.isArray(e?.nodes)?e.nodes:Array.isArray(e?.result?.nodes)?e.result.nodes:Array.isArray(e?.task?.result?.nodes)?e.task.result.nodes:[]}function Ju(e){let r=Qu(e).find(a=>a?.nodeId==="s3"||a?.name==="invoke_homepage_api")||null,n=r?.result?.observation??r?.observation??null;return{pageId:n?.pageId??null,extractor:n?.extractor??null,operatingDataCard:n?.data??null}}function Zu(){let e=new Date,t=[e.getFullYear(),String(e.getMonth()+1).padStart(2,"0"),String(e.getDate()).padStart(2,"0"),"_",String(e.getHours()).padStart(2,"0"),String(e.getMinutes()).padStart(2,"0"),String(e.getSeconds()).padStart(2,"0")].join("");return br.join(Xu,"douyin-fxg",`douyin-fxg-homepage-operating-data-${t}.json`)}function Bs(e){e.registerTool({name:"douyin_fxg_capture_homepage_operating_data",description:"\u91C7\u96C6\u6296\u5E97\u5546\u5BB6\u540E\u53F0\u9996\u9875\u7ECF\u8425\u770B\u677F\u6570\u636E\u3002\u5DE5\u5177\u4F1A\u6253\u5F00\u6296\u5E97\u9996\u9875\uFF0C\u5728\u9875\u9762\u4F1A\u8BDD\u5185\u8C03\u7528\u9996\u9875\u7ECF\u8425\u770B\u677F\u63A5\u53E3\uFF0C\u5E76\u8FD4\u56DE\u7ECF\u8425\u6570\u636E\u5361\u7247\u5185\u5BB9\u3002",parameters:{type:"object",properties:{pageUrl:{type:"string",description:"\u6296\u5E97\u5546\u5BB6\u540E\u53F0\u9996\u9875\u5730\u5740",default:Hs},metricPeriodValue:{type:"string",description:"\u9996\u9875\u65F6\u95F4\u7C92\u5EA6\u6309\u94AE\u503C\uFF0C\u652F\u6301\uFF1AReal\u3001Day\u3001Week\u3001Month\u3001Promotion",default:Ps},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},timeoutMs:{type:"number",description:"\u53EF\u9009\uFF0C\u603B\u7B49\u5F85\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09"},inactivityTimeoutMs:{type:"number",description:"\u53EF\u9009\uFF0C\u65E0\u8FDB\u5C55\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09"},pollIntervalMs:{type:"number",description:"\u53EF\u9009\uFF0C\u8F6E\u8BE2\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09"},saveToFile:{type:["string","boolean"],default:!0,description:"\u5C06\u7ECF\u8425\u770B\u677F\u6570\u636E\u4FDD\u5B58\u4E3A JSON\u3002\u4F20 true \u81EA\u52A8\u4FDD\u5B58\u5230 workspace/douyin-fxg/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002"}},additionalProperties:!1},async execute(t,r){try{let n=Ee(e),a=await un(e,r.runtimeId),o=typeof r.pageUrl=="string"&&r.pageUrl.trim().length>0?r.pageUrl:Hs,l=typeof r.metricPeriodValue=="string"&&r.metricPeriodValue.trim().length>0?r.metricPeriodValue.trim():Ps,p=await Ie(e,`${n.baseUrl}/api/tasks`,{method:"POST",body:JSON.stringify({taskType:"collect_douyin_fxg_homepage_api",platform:"douyin",targetRuntimeId:a,context:{siteId:"douyin_fxg"},payload:{pageUrl:o,metricPeriodValue:l}})});if(!p?.taskId)return E({success:!1,error:`Submit task failed: ${JSON.stringify(p)}`});if(r.wait===!1)return E(p);let x=await Ft(e,{baseUrl:n.baseUrl,taskId:p.taskId,maxWaitMs:r.timeoutMs,inactivityTimeoutMs:r.inactivityTimeoutMs,pollIntervalMs:r.pollIntervalMs}),m=Ju(x),b={submit:p,task:x,...m},R=r.saveToFile===void 0?!0:r.saveToFile;if(R===!1||m.operatingDataCard==null)return E(b);let I=typeof R=="string"?br.isAbsolute(R)?R:br.resolve(process.cwd(),R):Zu();return await $u(br.dirname(I),{recursive:!0}),await Yu(I,JSON.stringify({pageId:m.pageId,extractor:m.extractor,operatingDataCard:m.operatingDataCard},null,2),"utf-8"),E({...b,savedToFile:I,savedFormat:"json"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as ed,mkdir as td}from"fs/promises";import yr from"path";import rd from"os";var nd=process.env.OPENCLAW_WORKSPACE_DIR||yr.join(rd.homedir(),".openclaw","workspace");function ad(e){let t=Array.isArray(e?.result?.steps)?e.result.steps:Array.isArray(e?.steps)?e.steps:[],r=t.find(a=>a?.nodeId==="s3"||a?.stepId==="s3"||a?.name==="collect_product_detail"),n=t.find(a=>a?.nodeId==="s8"||a?.stepId==="s8"||a?.name==="collect_ask_answers");return{detail:r?.result?.observation?.data??null,askAnswers:n?.result?.observation?.data??null}}function Us(e){e.registerTool({name:"taobao_collect_ask_answers",description:`\u91C7\u96C6\u6DD8\u5B9D/\u5929\u732B\u5546\u54C1\u7684\u300C\u95EE\u5927\u5BB6\u300D\u6570\u636E\u3002\u6253\u5F00\u5546\u54C1\u8BE6\u60C5\u9875\uFF0C\u63D0\u53D6\u5546\u54C1\u57FA\u672C\u4FE1\u606F\uFF0C\u7136\u540E\u91C7\u96C6\u95EE\u5927\u5BB6\u7684\u95EE\u7B54\u5185\u5BB9\u3002
21
+ \u6CE8\u610F\uFF1A\u5BFC\u51FA\u65F6\u8BF7\u4FDD\u7559\u539F\u59CB\u6570\u636E\uFF0C\u4E0D\u8981\u5BF9\u91C7\u96C6\u5230\u7684\u6570\u636E\u505A\u4EFB\u4F55\u4FEE\u6539\u3001\u683C\u5F0F\u5316\u6216\u4E8C\u6B21\u52A0\u5DE5\u3002`,parameters:{type:"object",properties:{url:{type:"string",description:"Taobao or Tmall product detail page URL (e.g. https://detail.tmall.com/item.htm?id=xxx or https://item.taobao.com/item.htm?id=xxx)"},runtimeId:{type:"string",description:"Optional runtime clientId. If omitted, auto-selects the first online runtime."},wait:{type:"boolean",description:"Whether to wait for the task to complete (default: true)",default:!0},targetCommentCount:{type:"number",description:"Target number of comments to collect (default: 50)",default:50},includeAskAnswers:{type:"boolean",description:"Whether to collect ask-answers after comments (default: false)",default:!1},targetAskAnswerCount:{type:"number",description:"Target number of ask-answers to collect when includeAskAnswers=true (default: 60)",default:60},saveToFile:{type:["string","boolean"],default:!0,description:"Save collected product data to a JSON file. Pass true to auto-generate filename (taobao_{productId}_{timestamp}.json) under the workspace taobao/ directory, or a custom file path (e.g., ./product.json). Pass false to skip saving."}},required:["url"],additionalProperties:!1},async execute(t,r){try{let n=Number.isFinite(Number(r.targetCommentCount))?Number(r.targetCommentCount):null,a=Number.isFinite(Number(r.targetAskAnswerCount))?Number(r.targetAskAnswerCount):null,o={url:r.url,...n!=null&&n>0&&{targetCommentCount:n},...r.includeAskAnswers===!0&&(a??60)>0&&{includeAskAnswers:!0,targetAskAnswerCount:a??60}},l=await le(e,{toolNames:["taobao_taobao_web_collect_product_data","taobao_web_collect_product_data"],input:o,runtimeId:r.runtimeId,wait:r.wait!==!1});if(r.saveToFile!==!1&&r.saveToFile!=null){let x;if(typeof r.saveToFile=="string")x=gr.isAbsolute(r.saveToFile)?r.saveToFile:gr.resolve(process.cwd(),r.saveToFile);else{let b=new Date,D=[b.getFullYear(),String(b.getMonth()+1).padStart(2,"0"),String(b.getDate()).padStart(2,"0"),"_",String(b.getHours()).padStart(2,"0"),String(b.getMinutes()).padStart(2,"0"),String(b.getSeconds()).padStart(2,"0")].join(""),L=r.url.match(/[?&]id=(\d+)/),d=L?L[1]:"unknown",X=process.env.OPENCLAW_WORKSPACE_DIR||gr.join(Mu.homedir(),".openclaw","workspace");x=gr.resolve(X,"taobao",`taobao_${d}_${D}.json`)}let p=gr.dirname(x);await Iu(p,{recursive:!0});let m=Ou(l);return await Lu(x,JSON.stringify(m,null,2),"utf-8"),E({...l,savedToFile:x,savedFormat:"product_data"})}return E(l)}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as qu,mkdir as ks}from"fs/promises";import Pt from"path";import Fu from"os";var Hu=process.env.OPENCLAW_WORKSPACE_DIR||Pt.join(Fu.homedir(),".openclaw","workspace");function Rs(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function Pu(e=new Date){let t=new Date(e),r=e.getHours()<6?2:1;t.setDate(t.getDate()-r);let n=Rs(t);return`${n}|${n}`}function Bu(e=new Date){let t=e.getHours()<6?2:1,r=new Date(e);r.setDate(r.getDate()-t);let n=Rs(r);return{effectiveMetricPeriodLabel:t===2?"\u524D\u5929":"\u6628\u5929",effectiveDateRange:`${n}|${n}`}}function Ls(e){return typeof e=="string"?e.replace(/\s+/g,""):""}function Uu(e){let t=typeof e.metricPeriodLabel=="string"&&e.metricPeriodLabel.trim()?e.metricPeriodLabel.trim():"\u6628\u5929",r=Ls(t),n=typeof e.requestDateType=="string"&&e.requestDateType.trim()?e.requestDateType.trim():"",a=typeof e.requestDateRange=="string"?e.requestDateRange.trim():"",o=e.invokeDirectly===!0,l=t,x=a;if(!n)switch(r){case"\u6628\u5929":case"\u65E5":n="day";break;case"\u5468":n="week";break;case"\u6708":n="month";break;case"\u5B9E\u65F6":n="today";break;default:n="today";break}if(!a&&r==="\u6628\u5929"&&(a=Pu()),r==="\u5B9E\u65F6"&&!e.requestDateRange&&(a=""),r==="\u6628\u5929"){let p=Bu();l=p.effectiveMetricPeriodLabel,x=a||p.effectiveDateRange,new Date().getHours()<6&&(o=!0)}return{metricPeriodLabel:t,effectiveMetricPeriodLabel:l,effectiveDateRange:x,invokeDirectly:o,requestDateType:n,requestDateRange:a}}function ju(e){let t=[...Array.isArray(e?.steps)?e.steps:[],...Array.isArray(e?.nodes)?e.nodes:[]];for(let r of t){let n=r?.result?.observation?.data;if(n&&typeof n=="object")return n}return null}function Cs(e,t){return[...Array.isArray(e?.steps)?e.steps:[],...Array.isArray(e?.nodes)?e.nodes:[]].find(n=>n?.name===t)||null}function Ds(e){let t=e?.result?.observation,r=t?.capturedNetwork?.body;if(r&&typeof r=="object")return r;let n=t?.response?.bodyJson;return n&&typeof n=="object"?n:null}function Vu(e){let t=Cs(e,"invoke_live_metrics_overview"),r=Cs(e,"invoke_live_metrics_trend"),n=Ds(t),a=Ds(r);return!n&&!a?null:{overview:n,trend:a,capturedAt:t?.result?.observation?.invokedAt||r?.result?.observation?.invokedAt||new Date().toISOString(),meta:{overviewUrl:t?.result?.observation?.request?.url,trendUrl:r?.result?.observation?.request?.url,overviewStatus:t?.result?.observation?.response?.status,trendStatus:r?.result?.observation?.response?.status}}}function Gu(e,t){if(t){let l=Vu(e);if(l)return l}let r=Array.isArray(e?.nodes)?e.nodes:[],n=t?"s4b":"s4",o=r.find(l=>l.nodeId===n)?.result?.observation?.data;return o&&typeof o=="object"?o:ju(e)}function Is(e){e.registerTool({name:"sycm_capture_live_metrics",description:"\u6355\u83B7\u751F\u610F\u53C2\u8C0B\u9996\u9875\u6307\u6807\u6570\u636E\u3002\u652F\u6301\u901A\u8FC7\u9875\u9762\u70B9\u51FB\u6216\u76F4\u63A5\u8C03\u7528\u63A5\u53E3\u4E24\u79CD\u65B9\u5F0F\u91C7\u96C6\uFF0C\u652F\u6301\u6628\u5929/\u5B9E\u65F6/\u65E5/\u5468/\u6708\u7B49\u65F6\u95F4\u7C92\u5EA6\uFF0C\u652F\u6301\u81EA\u5B9A\u4E49\u65E5\u671F\u8303\u56F4\u3002\u6CE8\u610F\uFF1A\u5BFC\u51FA\u65F6\u8BF7\u4FDD\u7559\u539F\u59CB\u6570\u636E\uFF0C\u4E0D\u8981\u5BF9\u91C7\u96C6\u5230\u7684\u6570\u636E\u505A\u4EFB\u4F55\u4FEE\u6539\u3001\u683C\u5F0F\u5316\u6216\u4E8C\u6B21\u52A0\u5DE5\u3002",parameters:{type:"object",properties:{url:{type:"string",description:"\u751F\u610F\u53C2\u8C0B\u9996\u9875URL",default:"https://sycm.taobao.com/portal/home.htm"},metricPeriodLabel:{type:"string",description:"\u6307\u6807\u5468\u671F\u6807\u7B7E\uFF0C\u652F\u6301\uFF1A\u6628\u5929\u3001\u5B9E\u65F6\u3001\u65E5\u3001\u5468\u3001\u6708",default:"\u6628\u5929"},invokeDirectly:{type:"boolean",description:"\u662F\u5426\u8DF3\u8FC7\u9875\u9762\u70B9\u51FB\uFF0C\u76F4\u63A5\u5728\u9875\u9762\u4F1A\u8BDD\u5185\u8C03\u7528\u63A5\u53E3\uFF1B06:00 \u524D\u8BF7\u6C42\u201C\u6628\u5929\u201D\u65F6\u4F1A\u5F3A\u5236\u8D70\u76F4\u8C03\u4EE5\u56DE\u9000\u5230\u524D\u5929"},requestDateType:{type:"string",description:"\u76F4\u8C03\u63A5\u53E3\u65F6\u4F7F\u7528\u7684 dateType\uFF0C\u4F8B\u5982 today/day/week/month\uFF1B\u672A\u4F20\u65F6\u4F1A\u6309 metricPeriodLabel \u81EA\u52A8\u63A8\u5BFC"},requestDateRange:{type:"string",description:"\u76F4\u8C03\u63A5\u53E3\u65F6\u4F7F\u7528\u7684 dateRange\uFF0C\u683C\u5F0F YYYY-MM-DD|YYYY-MM-DD\uFF1B\u672A\u4F20\u65F6\u201C\u6628\u5929\u201D\u4F1A\u81EA\u52A8\u8865\u6210\u53EF\u7528\u7684\u6700\u8FD1\u65E5\u8303\u56F4\uFF0C\u5B9E\u65F6\u53EF\u7559\u7A7A",default:""},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF\u7684 runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},saveToFile:{type:["string","boolean"],description:"\u5C06\u91C7\u96C6\u7ED3\u679C\u4FDD\u5B58\u5230 JSON \u6587\u4EF6\u3002\u4F20 true \u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D\u5230 workspace sycm/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002",default:!0}}},async execute(t,r){try{let n=Uu(r),a=await Ht(e,{taskType:"browser_action",platform:"taobao",context:{siteId:"sycm_taobao"},payload:{url:r.url||"https://sycm.taobao.com/portal/home.htm",metricPeriodLabel:n.metricPeriodLabel,effectiveMetricPeriodLabel:n.effectiveMetricPeriodLabel,invokeDirectly:n.invokeDirectly,requestDateType:n.requestDateType,requestDateRange:n.requestDateRange,effectiveDateRange:n.effectiveDateRange},runtimeId:r.runtimeId,wait:r.wait!==!1});if(r.saveToFile===!1)return E(a);let o=Gu(a?.result||a,n.invokeDirectly),l;if(typeof r.saveToFile=="string")l=Pt.isAbsolute(r.saveToFile)?r.saveToFile:Pt.resolve(process.cwd(),r.saveToFile);else{let p=Pt.join(Hu,"sycm");await ks(p,{recursive:!0});let m=new Date,b=[m.getFullYear(),String(m.getMonth()+1).padStart(2,"0"),String(m.getDate()).padStart(2,"0"),"_",String(m.getHours()).padStart(2,"0"),String(m.getMinutes()).padStart(2,"0"),String(m.getSeconds()).padStart(2,"0")].join(""),L=`sycm-live-metrics-${Ls(n.effectiveMetricPeriodLabel||n.metricPeriodLabel)}-${b}.json`;l=Pt.join(p,L)}return await ks(Pt.dirname(l),{recursive:!0}),await qu(l,JSON.stringify(o||a,null,2),"utf-8"),E({...a,liveMetrics:o,effectiveMetricPeriodLabel:n.effectiveMetricPeriodLabel,effectiveDateRange:n.effectiveDateRange,invokeDirectly:n.invokeDirectly,savedToFile:l,savedFormat:"json"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}function Ms(){return{title:{type:"string",description:"Video title (maximum 30 characters)"},content:{type:"string",description:"Video description (optional, maximum 1000 characters)"},video:{type:"string",description:"Absolute video file path"},runtimeId:{type:"string",description:"Optional runtime clientId"},wait:{type:"boolean",description:"Whether to wait for terminal task status (default: true)",default:!0},timeoutMs:{type:"number",description:"Optional overall timeout in milliseconds for waiting on the relay task (default: 300000)"},inactivityTimeoutMs:{type:"number",description:"Optional no-progress timeout in milliseconds while waiting on the relay task (default: 60000)"},pollIntervalMs:{type:"number",description:"Optional polling interval in milliseconds (default: 2000)"}}}async function Os(e,t,r){return ps(r.title,r.content),hs(r.video),await le(e,{toolNames:t,input:{title:r.title,content:typeof r.content=="string"?r.content:"",video:r.video},runtimeId:r.runtimeId,wait:r.wait,timeoutMs:r.timeoutMs,inactivityTimeoutMs:r.inactivityTimeoutMs,pollIntervalMs:r.pollIntervalMs})}function Wu(e){let t=e?.task?.result??e?.result??null;return Array.isArray(t?.nodes)?t.nodes:Array.isArray(t?.steps)?t.steps:[]}function zu(e){let t=e?.task??null,r=t?.task?.status??t?.status??null,n=t?.result??e?.result??null,a=Wu(e),l=["submit_publish","confirm_cover","set_cover","upload_video","fill_title","fill_content"].map(D=>a.find(L=>L?.nodeId===D&&L?.status==="failed")).find(Boolean)||a.find(D=>D?.status==="failed")||null,x=l?.result?.observation??l?.observation??null,p=x?.error||l?.error?.message||n?.error||t?.error||null,m=x?.reason||l?.error?.code||null,b=x?.code||l?.error?.code||null;return m==="sms_verification_required"||b==="ERR_SMS_VERIFICATION_REQUIRED"?{success:!1,error:typeof p=="string"&&p.length>0?p:"\u53D1\u5E03\u5931\u8D25\uFF1A\u89E6\u53D1\u77ED\u4FE1\u9A8C\u8BC1\u7801\u6821\u9A8C\uFF0C\u9700\u8981\u4EBA\u5DE5\u9A8C\u8BC1",errorType:"SMS_VERIFICATION_REQUIRED",failedNodeId:l?.nodeId??"submit_publish",failedReason:m||"sms_verification_required",failedCode:b||"ERR_SMS_VERIFICATION_REQUIRED",failedObservation:x??null,taskStatus:r}:r==="failed"||l?{success:!1,error:typeof p=="string"&&p.length>0?p:`Douyin task failed${l?.nodeId?` at node ${l.nodeId}`:""}`,errorType:b||m||"TASK_FAILED",failedNodeId:l?.nodeId??null,failedReason:m,failedCode:b,failedObservation:x??null,taskStatus:r}:null}function qs(e){let t=zu(e);return t?{...e,...t}:e}function Fs(e){e.registerTool({name:"douyin_publish_video",description:`Publish a video to Douyin via the ChromeAgent Relay. ${Ta}`,parameters:{type:"object",properties:Ms(),required:["title","video"],additionalProperties:!1},async execute(t,r){try{let n=await Os(e,["douyin_douyin_creator_publish_video","douyin_creator_publish_video"],r);return E(qs(n))}catch(n){let a=n?.message||String(n);return E({success:!1,error:a,errorType:n?.code||(a.includes("file")?"FILE_ERROR":a.includes("Title")||a.includes("Content")?"VALIDATION_ERROR":a.includes("HTTP")||a.includes("fetch")?"NETWORK_ERROR":"UNKNOWN_ERROR")})}}}),e.registerTool({name:"douyin_save_video_draft",description:`Save a Douyin video draft via the ChromeAgent Relay. ${Ta}`,parameters:{type:"object",properties:Ms(),required:["title","video"],additionalProperties:!1},async execute(t,r){try{let n=await Os(e,["douyin_douyin_creator_save_video_draft","douyin_creator_save_video_draft"],r);return E(qs(n))}catch(n){let a=n?.message||String(n);return E({success:!1,error:a,errorType:n?.code||(a.includes("file")?"FILE_ERROR":a.includes("Title")||a.includes("Content")?"VALIDATION_ERROR":a.includes("HTTP")||a.includes("fetch")?"NETWORK_ERROR":"UNKNOWN_ERROR")})}}})}import{mkdir as $u,writeFile as Yu}from"fs/promises";import Ku from"os";import br from"path";var Hs="https://fxg.jinritemai.com/ffa/mshop/homepage/index?channel=zhaoshang",Ps="Day",Xu=process.env.OPENCLAW_WORKSPACE_DIR||br.join(Ku.homedir(),".openclaw","workspace");function Qu(e){return Array.isArray(e?.nodes)?e.nodes:Array.isArray(e?.result?.nodes)?e.result.nodes:Array.isArray(e?.task?.result?.nodes)?e.task.result.nodes:[]}function Ju(e){let r=Qu(e).find(a=>a?.nodeId==="s3"||a?.name==="invoke_homepage_api")||null,n=r?.result?.observation??r?.observation??null;return{pageId:n?.pageId??null,extractor:n?.extractor??null,operatingDataCard:n?.data??null}}function Zu(){let e=new Date,t=[e.getFullYear(),String(e.getMonth()+1).padStart(2,"0"),String(e.getDate()).padStart(2,"0"),"_",String(e.getHours()).padStart(2,"0"),String(e.getMinutes()).padStart(2,"0"),String(e.getSeconds()).padStart(2,"0")].join("");return br.join(Xu,"douyin-fxg",`douyin-fxg-homepage-operating-data-${t}.json`)}function Bs(e){e.registerTool({name:"douyin_fxg_capture_homepage_operating_data",description:"\u91C7\u96C6\u6296\u5E97\u5546\u5BB6\u540E\u53F0\u9996\u9875\u7ECF\u8425\u770B\u677F\u6570\u636E\u3002\u5DE5\u5177\u4F1A\u6253\u5F00\u6296\u5E97\u9996\u9875\uFF0C\u5728\u9875\u9762\u4F1A\u8BDD\u5185\u8C03\u7528\u9996\u9875\u7ECF\u8425\u770B\u677F\u63A5\u53E3\uFF0C\u5E76\u8FD4\u56DE\u7ECF\u8425\u6570\u636E\u5361\u7247\u5185\u5BB9\u3002",parameters:{type:"object",properties:{pageUrl:{type:"string",description:"\u6296\u5E97\u5546\u5BB6\u540E\u53F0\u9996\u9875\u5730\u5740",default:Hs},metricPeriodValue:{type:"string",description:"\u9996\u9875\u65F6\u95F4\u7C92\u5EA6\u6309\u94AE\u503C\uFF0C\u652F\u6301\uFF1AReal\u3001Day\u3001Week\u3001Month\u3001Promotion",default:Ps},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},timeoutMs:{type:"number",description:"\u53EF\u9009\uFF0C\u603B\u7B49\u5F85\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09"},inactivityTimeoutMs:{type:"number",description:"\u53EF\u9009\uFF0C\u65E0\u8FDB\u5C55\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09"},pollIntervalMs:{type:"number",description:"\u53EF\u9009\uFF0C\u8F6E\u8BE2\u95F4\u9694\uFF08\u6BEB\u79D2\uFF09"},saveToFile:{type:["string","boolean"],default:!0,description:"\u5C06\u7ECF\u8425\u770B\u677F\u6570\u636E\u4FDD\u5B58\u4E3A JSON\u3002\u4F20 true \u81EA\u52A8\u4FDD\u5B58\u5230 workspace/douyin-fxg/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002"}},additionalProperties:!1},async execute(t,r){try{let n=Ee(e),a=await un(e,r.runtimeId),o=typeof r.pageUrl=="string"&&r.pageUrl.trim().length>0?r.pageUrl:Hs,l=typeof r.metricPeriodValue=="string"&&r.metricPeriodValue.trim().length>0?r.metricPeriodValue.trim():Ps,x=await Ie(e,`${n.baseUrl}/api/tasks`,{method:"POST",body:JSON.stringify({taskType:"collect_douyin_fxg_homepage_api",platform:"douyin",targetRuntimeId:a,context:{siteId:"douyin_fxg"},payload:{pageUrl:o,metricPeriodValue:l}})});if(!x?.taskId)return E({success:!1,error:`Submit task failed: ${JSON.stringify(x)}`});if(r.wait===!1)return E(x);let p=await Ft(e,{baseUrl:n.baseUrl,taskId:x.taskId,maxWaitMs:r.timeoutMs,inactivityTimeoutMs:r.inactivityTimeoutMs,pollIntervalMs:r.pollIntervalMs}),m=Ju(p),b={submit:x,task:p,...m},D=r.saveToFile===void 0?!0:r.saveToFile;if(D===!1||m.operatingDataCard==null)return E(b);let L=typeof D=="string"?br.isAbsolute(D)?D:br.resolve(process.cwd(),D):Zu();return await $u(br.dirname(L),{recursive:!0}),await Yu(L,JSON.stringify({pageId:m.pageId,extractor:m.extractor,operatingDataCard:m.operatingDataCard},null,2),"utf-8"),E({...b,savedToFile:L,savedFormat:"json"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as ed,mkdir as td}from"fs/promises";import yr from"path";import rd from"os";var nd=process.env.OPENCLAW_WORKSPACE_DIR||yr.join(rd.homedir(),".openclaw","workspace");function ad(e){let t=Array.isArray(e?.result?.steps)?e.result.steps:Array.isArray(e?.steps)?e.steps:[],r=t.find(a=>a?.nodeId==="s3"||a?.stepId==="s3"||a?.name==="collect_product_detail"),n=t.find(a=>a?.nodeId==="s8"||a?.stepId==="s8"||a?.name==="collect_ask_answers");return{detail:r?.result?.observation?.data??null,askAnswers:n?.result?.observation?.data??null}}function Us(e){e.registerTool({name:"taobao_collect_ask_answers",description:`\u91C7\u96C6\u6DD8\u5B9D/\u5929\u732B\u5546\u54C1\u7684\u300C\u95EE\u5927\u5BB6\u300D\u6570\u636E\u3002\u6253\u5F00\u5546\u54C1\u8BE6\u60C5\u9875\uFF0C\u63D0\u53D6\u5546\u54C1\u57FA\u672C\u4FE1\u606F\uFF0C\u7136\u540E\u91C7\u96C6\u95EE\u5927\u5BB6\u7684\u95EE\u7B54\u5185\u5BB9\u3002
22
22
  \u652F\u6301\u6DD8\u5B9D (item.taobao.com) \u548C\u5929\u732B (detail.tmall.com) \u5546\u54C1\u94FE\u63A5\u3002
23
23
  \u6CE8\u610F\uFF1A\u8FD9\u4E2A\u5DE5\u5177\u4E13\u95E8\u91C7\u96C6\u300C\u95EE\u5927\u5BB6\u300D\uFF0C\u548C\u91C7\u96C6\u8BC4\u8BBA\u662F\u4E0D\u540C\u7684\u5DE5\u5177\u3002
24
- \u6CE8\u610F\uFF1A\u5BFC\u51FA\u65F6\u8BF7\u4FDD\u7559\u539F\u59CB\u6570\u636E\uFF0C\u4E0D\u8981\u5BF9\u91C7\u96C6\u5230\u7684\u6570\u636E\u505A\u4EFB\u4F55\u4FEE\u6539\u3001\u683C\u5F0F\u5316\u6216\u4E8C\u6B21\u52A0\u5DE5\u3002`,parameters:{type:"object",properties:{url:{type:"string",description:"\u6DD8\u5B9D\u6216\u5929\u732B\u5546\u54C1\u8BE6\u60C5\u9875 URL\uFF08\u4F8B\u5982 https://detail.tmall.com/item.htm?id=xxx \u6216 https://item.taobao.com/item.htm?id=xxx\uFF09"},targetAskAnswerCount:{type:"number",description:"\u76EE\u6807\u91C7\u96C6\u7684\u95EE\u5927\u5BB6\u6761\u6570\uFF08\u9ED8\u8BA4 50\uFF09",default:50},targetCommentCount:{type:"number",description:"\u53EF\u9009\uFF1A\u76EE\u6807\u91C7\u96C6\u7684\u8BC4\u8BBA\u6761\u6570\u3002\u4E0D\u4F20\u5219\u8DF3\u8FC7\u8BC4\u8BBA\u91C7\u96C6\uFF0C\u53EA\u91C7\u96C6\u95EE\u5927\u5BB6"},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF\u7684 runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},saveToFile:{type:["string","boolean"],default:!0,description:"\u5C06\u91C7\u96C6\u7ED3\u679C\u4FDD\u5B58\u5230 JSON \u6587\u4EF6\u3002\u4F20 true \u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D\uFF08taobao_ask_{productId}_{timestamp}.json\uFF09\u5230 workspace taobao/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002"}},required:["url"],additionalProperties:!1},async execute(t,r){try{let n=r.wait!==!1,a={url:r.url,targetAskAnswerCount:r.targetAskAnswerCount??50,includeAskAnswers:!0};r.targetCommentCount!==void 0&&(a.targetCommentCount=r.targetCommentCount);let o=await Ht(e,{taskType:"collect_product_data",platform:"taobao",context:{siteId:"taobao_web"},payload:a,runtimeId:r.runtimeId,wait:n});if(r.saveToFile===!1||!n)return E(o);let l=ad(o),p;if(typeof r.saveToFile=="string")p=yr.isAbsolute(r.saveToFile)?r.saveToFile:yr.resolve(process.cwd(),r.saveToFile);else{let m=new Date,b=[m.getFullYear(),String(m.getMonth()+1).padStart(2,"0"),String(m.getDate()).padStart(2,"0"),"_",String(m.getHours()).padStart(2,"0"),String(m.getMinutes()).padStart(2,"0"),String(m.getSeconds()).padStart(2,"0")].join(""),R=r.url.match(/[?&]id=(\d+)/),I=R?R[1]:"unknown";p=yr.resolve(nd,"taobao",`taobao_ask_${I}_${b}.json`)}let x=yr.dirname(p);return await td(x,{recursive:!0}),await ed(p,JSON.stringify(l,null,2),"utf-8"),E({...o,askAnswers:l.askAnswers,savedToFile:p,savedFormat:"ask_answers"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as dp,mkdir as fp}from"fs/promises";import rr from"path";import xp from"os";function Vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function Wi(e,t){return Array(t+1).join(e)}function Xl(e){return e.replace(/^\n*/,"")}function Ql(e){for(var t=e.length;t>0&&e[t-1]===`
24
+ \u6CE8\u610F\uFF1A\u5BFC\u51FA\u65F6\u8BF7\u4FDD\u7559\u539F\u59CB\u6570\u636E\uFF0C\u4E0D\u8981\u5BF9\u91C7\u96C6\u5230\u7684\u6570\u636E\u505A\u4EFB\u4F55\u4FEE\u6539\u3001\u683C\u5F0F\u5316\u6216\u4E8C\u6B21\u52A0\u5DE5\u3002`,parameters:{type:"object",properties:{url:{type:"string",description:"\u6DD8\u5B9D\u6216\u5929\u732B\u5546\u54C1\u8BE6\u60C5\u9875 URL\uFF08\u4F8B\u5982 https://detail.tmall.com/item.htm?id=xxx \u6216 https://item.taobao.com/item.htm?id=xxx\uFF09"},targetAskAnswerCount:{type:"number",description:"\u76EE\u6807\u91C7\u96C6\u7684\u95EE\u5927\u5BB6\u6761\u6570\uFF08\u9ED8\u8BA4 50\uFF09",default:50},targetCommentCount:{type:"number",description:"\u53EF\u9009\uFF1A\u76EE\u6807\u91C7\u96C6\u7684\u8BC4\u8BBA\u6761\u6570\u3002\u4E0D\u4F20\u5219\u8DF3\u8FC7\u8BC4\u8BBA\u91C7\u96C6\uFF0C\u53EA\u91C7\u96C6\u95EE\u5927\u5BB6"},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF\u7684 runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},saveToFile:{type:["string","boolean"],default:!0,description:"\u5C06\u91C7\u96C6\u7ED3\u679C\u4FDD\u5B58\u5230 JSON \u6587\u4EF6\u3002\u4F20 true \u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D\uFF08taobao_ask_{productId}_{timestamp}.json\uFF09\u5230 workspace taobao/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002"}},required:["url"],additionalProperties:!1},async execute(t,r){try{let n=r.wait!==!1,a={url:r.url},o=Number.isFinite(Number(r.targetAskAnswerCount))?Number(r.targetAskAnswerCount):50;o>0&&(a.targetAskAnswerCount=o,a.includeAskAnswers=!0);let l=Number.isFinite(Number(r.targetCommentCount))?Number(r.targetCommentCount):null;l!=null&&l>0&&(a.targetCommentCount=l);let x=await Ht(e,{taskType:"collect_product_data",platform:"taobao",context:{siteId:"taobao_web"},payload:a,runtimeId:r.runtimeId,wait:n});if(r.saveToFile===!1||!n)return E(x);let p=ad(x),m;if(typeof r.saveToFile=="string")m=yr.isAbsolute(r.saveToFile)?r.saveToFile:yr.resolve(process.cwd(),r.saveToFile);else{let D=new Date,L=[D.getFullYear(),String(D.getMonth()+1).padStart(2,"0"),String(D.getDate()).padStart(2,"0"),"_",String(D.getHours()).padStart(2,"0"),String(D.getMinutes()).padStart(2,"0"),String(D.getSeconds()).padStart(2,"0")].join(""),d=r.url.match(/[?&]id=(\d+)/),X=d?d[1]:"unknown";m=yr.resolve(nd,"taobao",`taobao_ask_${X}_${L}.json`)}let b=yr.dirname(m);return await td(b,{recursive:!0}),await ed(m,JSON.stringify(p,null,2),"utf-8"),E({...x,askAnswers:p.askAnswers,savedToFile:m,savedFormat:"ask_answers"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as dp,mkdir as fp}from"fs/promises";import rr from"path";import xp from"os";function Vx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function Wi(e,t){return Array(t+1).join(e)}function Xl(e){return e.replace(/^\n*/,"")}function Ql(e){for(var t=e.length;t>0&&e[t-1]===`
25
25
  `;)t--;return e.substring(0,t)}function Jl(e){return Ql(Xl(e))}var Gx=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function zi(e){return $i(e,Gx)}var Zl=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function e0(e){return $i(e,Zl)}function Wx(e){return r0(e,Zl)}var t0=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function zx(e){return $i(e,t0)}function $x(e){return r0(e,t0)}function $i(e,t){return t.indexOf(e.nodeName)>=0}function r0(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var _e={};_e.paragraph={filter:"p",replacement:function(e){return`
26
26
 
27
27
  `+e+`
@@ -45,7 +45,7 @@ Supports Taobao (item.taobao.com) and Tmall (detail.tmall.com) product URLs.
45
45
 
46
46
  `+e+`
47
47
 
48
- `}};_e.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",a=t.parentNode;if(a.nodeName==="OL"){var o=a.getAttribute("start"),l=Array.prototype.indexOf.call(a.children,t);n=(o?Number(o)+l:l+1)+". "}var p=/\n$/.test(e);return e=Jl(e)+(p?`
48
+ `}};_e.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",a=t.parentNode;if(a.nodeName==="OL"){var o=a.getAttribute("start"),l=Array.prototype.indexOf.call(a.children,t);n=(o?Number(o)+l:l+1)+". "}var x=/\n$/.test(e);return e=Jl(e)+(x?`
49
49
  `:""),e=e.replace(/\n/gm,`
50
50
  `+" ".repeat(n.length)),n+e+(t.nextSibling?`
51
51
  `:"")}};_e.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
@@ -53,7 +53,7 @@ Supports Taobao (item.taobao.com) and Tmall (detail.tmall.com) product URLs.
53
53
  `+t.firstChild.textContent.replace(/\n/g,`
54
54
  `)+`
55
55
 
56
- `}};_e.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",a=(n.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,l=r.fence.charAt(0),p=3,x=new RegExp("^"+l+"{3,}","gm"),m;m=x.exec(o);)m[0].length>=p&&(p=m[0].length+1);var b=Wi(l,p);return`
56
+ `}};_e.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",a=(n.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,l=r.fence.charAt(0),x=3,p=new RegExp("^"+l+"{3,}","gm"),m;m=p.exec(o);)m[0].length>=x&&(x=m[0].length+1);var b=Wi(l,x);return`
57
57
 
58
58
  `+b+a+`
59
59
  `+o.replace(/\n$/,"")+`
@@ -63,13 +63,13 @@ Supports Taobao (item.taobao.com) and Tmall (detail.tmall.com) product URLs.
63
63
 
64
64
  `+r.hr+`
65
65
 
66
- `}};_e.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=$n(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}};_e.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),a=$n(t.getAttribute("title"));a&&(a=' "'+a+'"');var o,l;switch(r.linkReferenceStyle){case"collapsed":o="["+e+"][]",l="["+e+"]: "+n+a;break;case"shortcut":o="["+e+"]",l="["+e+"]: "+n+a;break;default:var p=this.references.length+1;o="["+e+"]["+p+"]",l="["+p+"]: "+n+a}return this.references.push(l),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
66
+ `}};_e.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=$n(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}};_e.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),a=$n(t.getAttribute("title"));a&&(a=' "'+a+'"');var o,l;switch(r.linkReferenceStyle){case"collapsed":o="["+e+"][]",l="["+e+"]: "+n+a;break;case"shortcut":o="["+e+"]",l="["+e+"]: "+n+a;break;default:var x=this.references.length+1;o="["+e+"]["+x+"]",l="["+x+"]: "+n+a}return this.references.push(l),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
67
67
 
68
68
  `+this.references.join(`
69
69
  `)+`
70
70
 
71
71
  `,this.references=[]),t}};_e.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};_e.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};_e.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};_e.image={filter:"img",replacement:function(e,t){var r=$n(t.getAttribute("alt")),n=t.getAttribute("src")||"",a=$n(t.getAttribute("title")),o=a?' "'+a+'"':"";return n?"!["+r+"]("+n+o+")":""}};function $n(e){return e?e.replace(/(\n+\s*)+/g,`
72
- `):""}function n0(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}n0.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=ji(this.array,e,this.options))||(t=ji(this._keep,e,this.options))||(t=ji(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function ji(e,t,r){for(var n=0;n<e.length;n++){var a=e[n];if(Yx(a,t,r))return a}}function Yx(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function Kx(e){var t=e.element,r=e.isBlock,n=e.isVoid,a=e.isPre||function(R){return R.nodeName==="PRE"};if(!(!t.firstChild||a(t))){for(var o=null,l=!1,p=null,x=Yl(p,t,a);x!==t;){if(x.nodeType===3||x.nodeType===4){var m=x.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!l&&m[0]===" "&&(m=m.substr(1)),!m){x=Vi(x);continue}x.data=m,o=x}else if(x.nodeType===1)r(x)||x.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,l=!1):n(x)||a(x)?(o=null,l=!0):o&&(l=!1);else{x=Vi(x);continue}var b=Yl(p,x,a);p=x,x=b}o&&(o.data=o.data.replace(/ $/,""),o.data||Vi(o))}}function Vi(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Yl(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var a0=typeof window<"u"?window:{};function Xx(){var e=a0.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function Qx(){var e=function(){};{var t=$l();e.prototype.parseFromString=function(r){return t.createDocument(r)}}return e}var Jx=Xx()?a0.DOMParser:Qx();function Zx(e,t){var r;if(typeof e=="string"){var n=ep().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return Kx({element:r,isBlock:zi,isVoid:e0,isPre:t.preformattedCode?tp:null}),r}var Gi;function ep(){return Gi=Gi||new Jx,Gi}function tp(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function rp(e,t){return e.isBlock=zi(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=np(e),e.flankingWhitespace=ap(e,t),e}function np(e){return!e0(e)&&!zx(e)&&/^\s*$/i.test(e.textContent)&&!Wx(e)&&!$x(e)}function ap(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=ip(e.textContent);return r.leadingAscii&&Kl("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&Kl("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function ip(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Kl(e,t,r){var n,a,o;return e==="left"?(n=t.previousSibling,a=/ $/):(n=t.nextSibling,a=/^ /),n&&(n.nodeType===3?o=a.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!zi(n)&&(o=a.test(n.textContent))),o}var sp=Array.prototype.reduce,op=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Yn(e){if(!(this instanceof Yn))return new Yn(e);var t={rules:_e,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
72
+ `):""}function n0(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}n0.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=ji(this.array,e,this.options))||(t=ji(this._keep,e,this.options))||(t=ji(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function ji(e,t,r){for(var n=0;n<e.length;n++){var a=e[n];if(Yx(a,t,r))return a}}function Yx(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function Kx(e){var t=e.element,r=e.isBlock,n=e.isVoid,a=e.isPre||function(D){return D.nodeName==="PRE"};if(!(!t.firstChild||a(t))){for(var o=null,l=!1,x=null,p=Yl(x,t,a);p!==t;){if(p.nodeType===3||p.nodeType===4){var m=p.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!l&&m[0]===" "&&(m=m.substr(1)),!m){p=Vi(p);continue}p.data=m,o=p}else if(p.nodeType===1)r(p)||p.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,l=!1):n(p)||a(p)?(o=null,l=!0):o&&(l=!1);else{p=Vi(p);continue}var b=Yl(x,p,a);x=p,p=b}o&&(o.data=o.data.replace(/ $/,""),o.data||Vi(o))}}function Vi(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Yl(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var a0=typeof window<"u"?window:{};function Xx(){var e=a0.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function Qx(){var e=function(){};{var t=$l();e.prototype.parseFromString=function(r){return t.createDocument(r)}}return e}var Jx=Xx()?a0.DOMParser:Qx();function Zx(e,t){var r;if(typeof e=="string"){var n=ep().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return Kx({element:r,isBlock:zi,isVoid:e0,isPre:t.preformattedCode?tp:null}),r}var Gi;function ep(){return Gi=Gi||new Jx,Gi}function tp(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function rp(e,t){return e.isBlock=zi(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=np(e),e.flankingWhitespace=ap(e,t),e}function np(e){return!e0(e)&&!zx(e)&&/^\s*$/i.test(e.textContent)&&!Wx(e)&&!$x(e)}function ap(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=ip(e.textContent);return r.leadingAscii&&Kl("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&Kl("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function ip(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Kl(e,t,r){var n,a,o;return e==="left"?(n=t.previousSibling,a=/ $/):(n=t.nextSibling,a=/^ /),n&&(n.nodeType===3?o=a.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!zi(n)&&(o=a.test(n.textContent))),o}var sp=Array.prototype.reduce,op=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Yn(e){if(!(this instanceof Yn))return new Yn(e);var t={rules:_e,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
73
73
 
74
74
  `:""},keepReplacement:function(r,n){return n.isBlock?`
75
75
 
@@ -88,7 +88,7 @@ Supports Taobao (item.taobao.com) and Tmall (detail.tmall.com) product URLs.
88
88
  `)}
89
89
  `}function d0(e){e.registerTool({name:"get_article",description:`\u83B7\u53D6\u4EFB\u610F\u6587\u7AE0\u94FE\u63A5\u9875\u9762\u7684\u5B8C\u6574HTML\u5185\u5BB9\u3002\u901A\u8FC7Chrome\u63D2\u4EF6\u6253\u5F00\u9875\u9762\u5E76\u63D0\u53D6HTML\u3002
90
90
  \u517C\u5BB9\u65E7\u5DE5\u5177\u540D wechat_get_article\uFF0C\u4F46\u5DF2\u652F\u6301\u901A\u7528 http/https \u6587\u7AE0\u94FE\u63A5\u3002
91
- \u9002\u7528\u4E8E\u8FD9\u4E9B\u610F\u56FE\uFF1A\u5206\u6790\u4E00\u4E0B\u6587\u7AE0\u3001\u4FDD\u5B58\u8FD9\u7BC7\u6587\u7AE0\u3001\u603B\u7ED3\u4E00\u4E0B\u8FD9\u7BC7\u6587\u7AE0\u3001\u6253\u5F00\u5E76\u5206\u6790\u8FD9\u7BC7\u6587\u7AE0\u3001\u603B\u7ED3\u5185\u5BB9\u52A0\u6587\u7AE0\u94FE\u63A5\u3001\u6D4F\u89C8\u5668\u6253\u5F00\u6587\u7AE0\u5E76\u4FDD\u5B58\u3002`,parameters:{type:"object",properties:{url:{type:"string",description:"\u6587\u7AE0\u9875\u9762 URL\uFF08\u4EFB\u610F http/https \u94FE\u63A5\uFF09"},runtimeId:{type:"string",description:"\u53EF\u9009\u7684runtime clientId\u3002\u5982\u679C\u7701\u7565\uFF0C\u81EA\u52A8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5728\u7EBF\u7684runtime\u3002"},returnHostPatterns:{type:"array",items:{type:"string"},description:"\u53EF\u9009\uFF0C\u91C7\u96C6\u5B8C\u6210\u5E76\u5173\u95ED\u6807\u7B7E\u9875\u540E\u4F18\u5148\u5207\u56DE\u7684 URL \u5173\u952E\u8BCD\u5217\u8868\u3002"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210 (\u9ED8\u8BA4: true)",default:!0},saveToFile:{type:["string","boolean"],default:!0,description:"\u4FDD\u5B58\u6587\u7AE0\u5230\u6587\u4EF6\u3002\u9ED8\u8BA4\u4FDD\u5B58\u4E3A Markdown\u3002\u4F20true\u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D (article_{timestamp}.md)\uFF0C\u4FDD\u5B58\u5230workspace\u7684articles\u76EE\u5F55\u4E0B\uFF0C\u6216\u4F20\u81EA\u5B9A\u4E49\u6587\u4EF6\u8DEF\u5F84 (\u4F8B\u5982: ./article.md \u6216 ./article.html)\u3002\u4F20false\u8DF3\u8FC7\u4FDD\u5B58\u3002"}},required:["url"],additionalProperties:!1},async execute(t,r){try{if(!pp(r.url))return E({success:!1,error:"url must be a valid http or https URL"});let n=r.wait!==!1,a=r.saveToFile===void 0?!0:r.saveToFile,o={url:r.url};Array.isArray(r.returnHostPatterns)&&r.returnHostPatterns.length>0&&(o.returnHostPatterns=r.returnHostPatterns);let l=await le(e,{toolName:"wechat_wechat_get_article",input:o,runtimeId:r.runtimeId,wait:n});if(!n||a===!1)return E(l);let p=hp(l);if(!p)return E({success:!1,error:"No article HTML found in relay result",result:l});let x=bp(p,r.url);if(a!==!1&&a!=null){let m;if(typeof a=="string")m=rr.isAbsolute(a)?a:rr.resolve(process.cwd(),a);else{let Q=new Date,$=[Q.getFullYear(),String(Q.getMonth()+1).padStart(2,"0"),String(Q.getDate()).padStart(2,"0"),"_",String(Q.getHours()).padStart(2,"0"),String(Q.getMinutes()).padStart(2,"0"),String(Q.getSeconds()).padStart(2,"0")].join(""),M=process.env.OPENCLAW_WORKSPACE_DIR||rr.join(xp.homedir(),".openclaw","workspace");m=rr.resolve(M,"articles",`article_${$}.md`)}let b=rr.dirname(m);await fp(b,{recursive:!0});let R=rr.extname(m).toLowerCase(),I=R===".html"||R===".htm";return await dp(m,I?p:x,"utf-8"),E({...l,html:p,markdown:x,savedToFile:m,savedFormat:I?"html":"markdown",message:`Saved article to ${m}`})}return E({...l,html:p,markdown:x})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as yp,mkdir as _p}from"fs/promises";import Pr from"path";import vp from"os";var Ep=process.env.OPENCLAW_WORKSPACE_DIR||Pr.join(vp.homedir(),".openclaw","workspace");function Tp(e){let t=[e?.task?.result,e?.result,e];for(let r of t){let n=Array.isArray(r?.nodes)?r.nodes:[];for(let a of n){let o=a?.result?.observation?.data;if(o&&typeof o=="object"&&Array.isArray(o.cards))return o}}return null}function f0(e){e.registerTool({name:"pinduoduo_capture_home_overview",description:"\u91C7\u96C6\u62FC\u591A\u591A\u5546\u5BB6\u540E\u53F0\u9996\u9875\u6982\u89C8\u5361\u7247 DOM \u6570\u636E\u3002\u6253\u5F00\u5546\u5BB6\u540E\u53F0\u9996\u9875\uFF0C\u8BFB\u53D6\u9996\u9875\u7ECF\u8425\u5361\u7247\u7684 key/value/yesterday \u4FE1\u606F\uFF0C\u5E76\u8FD4\u56DE\u539F\u59CB JSON\u3002\u9002\u7528\u4E8E\u8FD9\u4E9B\u610F\u56FE\uFF1A\u91C7\u96C6\u62FC\u591A\u591A\u540E\u53F0\u9996\u9875\u6570\u636E\u3001\u83B7\u53D6\u9996\u9875\u6982\u89C8\u5361\u7247\u3001\u8BFB\u53D6\u6210\u4EA4\u91D1\u989D/\u8BA2\u5355\u6570/\u8BBF\u5BA2\u6570\u3001\u5BFC\u51FA\u62FC\u591A\u591A\u540E\u53F0\u7ECF\u8425\u770B\u677F\u3002",parameters:{type:"object",properties:{url:{type:"string",description:"\u62FC\u591A\u591A\u5546\u5BB6\u540E\u53F0\u9996\u9875\u94FE\u63A5",default:"https://mms.pinduoduo.com/home/?msfrom=mms_sidenav"},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF\u7684 runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},returnHostPatterns:{type:"array",items:{type:"string"},description:"\u53EF\u9009\uFF0C\u4EFB\u52A1\u7ED3\u675F\u540E\u82E5\u5B58\u5728\u5339\u914D\u8FD9\u4E9B host \u6216 URL \u7247\u6BB5\u7684\u6807\u7B7E\u9875\uFF0C\u5219\u5207\u56DE\u8BE5\u6807\u7B7E\u9875\u3002"},saveToFile:{type:["string","boolean"],description:"\u5C06\u91C7\u96C6\u7ED3\u679C\u4FDD\u5B58\u5230 JSON \u6587\u4EF6\u3002\u4F20 true \u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D\u5230 workspace pinduoduo-mms/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002",default:!0}},additionalProperties:!1},async execute(t,r){try{let n=await Ht(e,{taskType:"browser_action",platform:"pinduoduo",context:{siteId:"pinduoduo_mms"},payload:{url:r.url||"https://mms.pinduoduo.com/home/?msfrom=mms_sidenav",...Array.isArray(r.returnHostPatterns)&&r.returnHostPatterns.length>0?{returnHostPatterns:r.returnHostPatterns}:{}},runtimeId:r.runtimeId,wait:r.wait!==!1});if(r.wait===!1||r.saveToFile===!1)return E(n);let a=Tp(n),o=a||n,l;if(typeof r.saveToFile=="string")l=Pr.isAbsolute(r.saveToFile)?r.saveToFile:Pr.resolve(process.cwd(),r.saveToFile);else{let p=new Date,x=[p.getFullYear(),String(p.getMonth()+1).padStart(2,"0"),String(p.getDate()).padStart(2,"0"),"_",String(p.getHours()).padStart(2,"0"),String(p.getMinutes()).padStart(2,"0"),String(p.getSeconds()).padStart(2,"0")].join("");l=Pr.resolve(Ep,"pinduoduo-mms",`pinduoduo-mms-home-overview_${x}.json`)}return await _p(Pr.dirname(l),{recursive:!0}),await yp(l,JSON.stringify(o,null,2),"utf-8"),E({...n,homeOverview:a,savedToFile:l,savedFormat:"json"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}function wp(e){e.registerService&&e.registerService({id:"chromeagent-relay",start:async t=>{if(ya())return;let r=Ee(e);r.autoStart&&(r.preferBundledRelay&&!r.relayCommand&&await _a(),va(r,t),await hr(r))},stop:async t=>{let r=ya();r&&(ys(null),r.kill("SIGTERM"),await new Promise(n=>r.on("close",n)),t.logger.info("[relay] stopped"))}}),Es(e),Ts(e),ws(e),Ns(e),As(e),Us(e),Is(e),Fs(e),Bs(e),f0(e),d0(e)}export{wp as default};
91
+ \u9002\u7528\u4E8E\u8FD9\u4E9B\u610F\u56FE\uFF1A\u5206\u6790\u4E00\u4E0B\u6587\u7AE0\u3001\u4FDD\u5B58\u8FD9\u7BC7\u6587\u7AE0\u3001\u603B\u7ED3\u4E00\u4E0B\u8FD9\u7BC7\u6587\u7AE0\u3001\u6253\u5F00\u5E76\u5206\u6790\u8FD9\u7BC7\u6587\u7AE0\u3001\u603B\u7ED3\u5185\u5BB9\u52A0\u6587\u7AE0\u94FE\u63A5\u3001\u6D4F\u89C8\u5668\u6253\u5F00\u6587\u7AE0\u5E76\u4FDD\u5B58\u3002`,parameters:{type:"object",properties:{url:{type:"string",description:"\u6587\u7AE0\u9875\u9762 URL\uFF08\u4EFB\u610F http/https \u94FE\u63A5\uFF09"},runtimeId:{type:"string",description:"\u53EF\u9009\u7684runtime clientId\u3002\u5982\u679C\u7701\u7565\uFF0C\u81EA\u52A8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5728\u7EBF\u7684runtime\u3002"},returnHostPatterns:{type:"array",items:{type:"string"},description:"\u53EF\u9009\uFF0C\u91C7\u96C6\u5B8C\u6210\u5E76\u5173\u95ED\u6807\u7B7E\u9875\u540E\u4F18\u5148\u5207\u56DE\u7684 URL \u5173\u952E\u8BCD\u5217\u8868\u3002"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210 (\u9ED8\u8BA4: true)",default:!0},saveToFile:{type:["string","boolean"],default:!0,description:"\u4FDD\u5B58\u6587\u7AE0\u5230\u6587\u4EF6\u3002\u9ED8\u8BA4\u4FDD\u5B58\u4E3A Markdown\u3002\u4F20true\u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D (article_{timestamp}.md)\uFF0C\u4FDD\u5B58\u5230workspace\u7684articles\u76EE\u5F55\u4E0B\uFF0C\u6216\u4F20\u81EA\u5B9A\u4E49\u6587\u4EF6\u8DEF\u5F84 (\u4F8B\u5982: ./article.md \u6216 ./article.html)\u3002\u4F20false\u8DF3\u8FC7\u4FDD\u5B58\u3002"}},required:["url"],additionalProperties:!1},async execute(t,r){try{if(!pp(r.url))return E({success:!1,error:"url must be a valid http or https URL"});let n=r.wait!==!1,a=r.saveToFile===void 0?!0:r.saveToFile,o={url:r.url};Array.isArray(r.returnHostPatterns)&&r.returnHostPatterns.length>0&&(o.returnHostPatterns=r.returnHostPatterns);let l=await le(e,{toolName:"wechat_wechat_get_article",input:o,runtimeId:r.runtimeId,wait:n});if(!n||a===!1)return E(l);let x=hp(l);if(!x)return E({success:!1,error:"No article HTML found in relay result",result:l});let p=bp(x,r.url);if(a!==!1&&a!=null){let m;if(typeof a=="string")m=rr.isAbsolute(a)?a:rr.resolve(process.cwd(),a);else{let X=new Date,$=[X.getFullYear(),String(X.getMonth()+1).padStart(2,"0"),String(X.getDate()).padStart(2,"0"),"_",String(X.getHours()).padStart(2,"0"),String(X.getMinutes()).padStart(2,"0"),String(X.getSeconds()).padStart(2,"0")].join(""),M=process.env.OPENCLAW_WORKSPACE_DIR||rr.join(xp.homedir(),".openclaw","workspace");m=rr.resolve(M,"articles",`article_${$}.md`)}let b=rr.dirname(m);await fp(b,{recursive:!0});let D=rr.extname(m).toLowerCase(),L=D===".html"||D===".htm";return await dp(m,L?x:p,"utf-8"),E({...l,html:x,markdown:p,savedToFile:m,savedFormat:L?"html":"markdown",message:`Saved article to ${m}`})}return E({...l,html:x,markdown:p})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}import{writeFile as yp,mkdir as _p}from"fs/promises";import Pr from"path";import vp from"os";var Ep=process.env.OPENCLAW_WORKSPACE_DIR||Pr.join(vp.homedir(),".openclaw","workspace");function Tp(e){let t=[e?.task?.result,e?.result,e];for(let r of t){let n=Array.isArray(r?.nodes)?r.nodes:[];for(let a of n){let o=a?.result?.observation?.data;if(o&&typeof o=="object"&&Array.isArray(o.cards))return o}}return null}function f0(e){e.registerTool({name:"pinduoduo_capture_home_overview",description:"\u91C7\u96C6\u62FC\u591A\u591A\u5546\u5BB6\u540E\u53F0\u9996\u9875\u6982\u89C8\u5361\u7247 DOM \u6570\u636E\u3002\u6253\u5F00\u5546\u5BB6\u540E\u53F0\u9996\u9875\uFF0C\u8BFB\u53D6\u9996\u9875\u7ECF\u8425\u5361\u7247\u7684 key/value/yesterday \u4FE1\u606F\uFF0C\u5E76\u8FD4\u56DE\u539F\u59CB JSON\u3002\u9002\u7528\u4E8E\u8FD9\u4E9B\u610F\u56FE\uFF1A\u91C7\u96C6\u62FC\u591A\u591A\u540E\u53F0\u9996\u9875\u6570\u636E\u3001\u83B7\u53D6\u9996\u9875\u6982\u89C8\u5361\u7247\u3001\u8BFB\u53D6\u6210\u4EA4\u91D1\u989D/\u8BA2\u5355\u6570/\u8BBF\u5BA2\u6570\u3001\u5BFC\u51FA\u62FC\u591A\u591A\u540E\u53F0\u7ECF\u8425\u770B\u677F\u3002",parameters:{type:"object",properties:{url:{type:"string",description:"\u62FC\u591A\u591A\u5546\u5BB6\u540E\u53F0\u9996\u9875\u94FE\u63A5",default:"https://mms.pinduoduo.com/home/?msfrom=mms_sidenav"},runtimeId:{type:"string",description:"\u53EF\u9009\u7684 runtime clientId\uFF0C\u4E0D\u6307\u5B9A\u65F6\u81EA\u52A8\u9009\u62E9\u5728\u7EBF\u7684 runtime"},wait:{type:"boolean",description:"\u662F\u5426\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210\uFF08\u9ED8\u8BA4 true\uFF09",default:!0},returnHostPatterns:{type:"array",items:{type:"string"},description:"\u53EF\u9009\uFF0C\u4EFB\u52A1\u7ED3\u675F\u540E\u82E5\u5B58\u5728\u5339\u914D\u8FD9\u4E9B host \u6216 URL \u7247\u6BB5\u7684\u6807\u7B7E\u9875\uFF0C\u5219\u5207\u56DE\u8BE5\u6807\u7B7E\u9875\u3002"},saveToFile:{type:["string","boolean"],description:"\u5C06\u91C7\u96C6\u7ED3\u679C\u4FDD\u5B58\u5230 JSON \u6587\u4EF6\u3002\u4F20 true \u81EA\u52A8\u751F\u6210\u6587\u4EF6\u540D\u5230 workspace pinduoduo-mms/ \u76EE\u5F55\uFF0C\u4F20\u5B57\u7B26\u4E32\u6307\u5B9A\u81EA\u5B9A\u4E49\u8DEF\u5F84\uFF0C\u4F20 false \u4E0D\u4FDD\u5B58\u3002",default:!0}},additionalProperties:!1},async execute(t,r){try{let n=await Ht(e,{taskType:"browser_action",platform:"pinduoduo",context:{siteId:"pinduoduo_mms"},payload:{url:r.url||"https://mms.pinduoduo.com/home/?msfrom=mms_sidenav",...Array.isArray(r.returnHostPatterns)&&r.returnHostPatterns.length>0?{returnHostPatterns:r.returnHostPatterns}:{}},runtimeId:r.runtimeId,wait:r.wait!==!1});if(r.wait===!1||r.saveToFile===!1)return E(n);let a=Tp(n),o=a||n,l;if(typeof r.saveToFile=="string")l=Pr.isAbsolute(r.saveToFile)?r.saveToFile:Pr.resolve(process.cwd(),r.saveToFile);else{let x=new Date,p=[x.getFullYear(),String(x.getMonth()+1).padStart(2,"0"),String(x.getDate()).padStart(2,"0"),"_",String(x.getHours()).padStart(2,"0"),String(x.getMinutes()).padStart(2,"0"),String(x.getSeconds()).padStart(2,"0")].join("");l=Pr.resolve(Ep,"pinduoduo-mms",`pinduoduo-mms-home-overview_${p}.json`)}return await _p(Pr.dirname(l),{recursive:!0}),await yp(l,JSON.stringify(o,null,2),"utf-8"),E({...n,homeOverview:a,savedToFile:l,savedFormat:"json"})}catch(n){return E({success:!1,error:String(n?.message||n)})}}})}function wp(e){e.registerService&&e.registerService({id:"chromeagent-relay",start:async t=>{if(ya())return;let r=Ee(e);r.autoStart&&(r.preferBundledRelay&&!r.relayCommand&&await _a(),va(r,t),await hr(r))},stop:async t=>{let r=ya();r&&(ys(null),r.kill("SIGTERM"),await new Promise(n=>r.on("close",n)),t.logger.info("[relay] stopped"))}}),Es(e),Ts(e),ws(e),Ns(e),As(e),Us(e),Is(e),Fs(e),Bs(e),f0(e),d0(e)}export{wp as default};
92
92
  /*! Bundled license information:
93
93
 
94
94
  @mixmark-io/domino/lib/style_parser.js: