1
2
3
4
5
6
7
8
9
| !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";const{getOwnPropertyDescriptor:t}=Object,{DOCUMENT_POSITION_CONTAINED_BY:e,DOCUMENT_POSITION_CONTAINS:r,DOCUMENT_POSITION_PRECEDING:n,DOCUMENT_POSITION_FOLLOWING:o,ELEMENT_NODE:i,TEXT_NODE:s,CDATA_SECTION_NODE:a,PROCESSING_INSTRUCTION_NODE:u,COMMENT_NODE:c,DOCUMENT_FRAGMENT_NODE:l}=Node,{appendChild:f,cloneNode:p,compareDocumentPosition:h,insertBefore:d,removeChild:v,replaceChild:y,hasChildNodes:g,getRootNode:b}=Node.prototype,w=t(Node.prototype,"firstChild").get,T=t(Node.prototype,"lastChild").get;t(Node.prototype,"textContent").get;const m=t(Node.prototype,"parentNode").get;t(Node.prototype,"ownerDocument").get;const _=t(Node.prototype,"parentElement").get,E=t(Node.prototype,"textContent").get,S=t(Node.prototype,"childNodes").get;t(Node.prototype,"isConnected").get;const{getOwnPropertyDescriptor:P,hasOwnProperty:O}=Object,{addEventListener:k,getAttribute:I,getBoundingClientRect:x,getElementsByTagName:D,getElementsByTagNameNS:A,getElementsByClassName:L,matches:N,closest:C,hasAttribute:M,querySelector:j,querySelectorAll:R,removeAttribute:F,removeEventListener:q,setAttribute:G}=Element.prototype;O.call(Element.prototype,"attachShadow")&&Element.prototype.attachShadow;const U=P(Element.prototype,"childElementCount").get,B=P(Element.prototype,"firstElementChild").get,$=P(Element.prototype,"lastElementChild").get,W=P(Element.prototype,"innerHTML"),Y=W.get;W.set;const V=P(Element.prototype,"outerHTML"),H=V.get;V.set;const Q=P(Element.prototype,"tagName").get,K=P(HTMLElement.prototype,"tabIndex");K.get,K.set;const z=P(Element.prototype,"children").get,X=P(Element.prototype,"shadowRoot").get,{getOwnPropertyDescriptor:J}=Object;J(Document.prototype,"activeElement").get,J(Document.prototype,"defaultView").get;const{createComment:Z,querySelector:tt,querySelectorAll:et,getElementById:rt,getElementsByName:nt,getElementsByClassName:ot,getElementsByTagName:it,getElementsByTagNameNS:st}=Document.prototype,{apply:at,defineProperty:ut,deleteProperty:ct,getPrototypeOf:lt,ownKeys:ft,setPrototypeOf:pt}=Reflect,ht=Object,{assign:dt,freeze:vt,keys:yt,prototype:gt}=ht,{hasOwn:bt}=ht,{__lookupGetter__:wt,__lookupSetter__:Tt,hasOwnProperty:mt}=gt,_t="function"==typeof bt?bt:function(t,e){return at(mt,t,[e])},{toString:Et}=gt;function St(t){return"object"==typeof t&&null!==t}function Pt(t,e){return null!=t&&_t(t,e)?at(wt,t,[e]):void 0}const Ot=Symbol,{for:kt,iterator:It,toStringTag:xt,unscopables:Dt}=Ot,At=Array,{prototype:Lt}=At,{at:Nt,concat:Ct,copyWithin:Mt,entries:jt,every:Rt,fill:Ft,findIndex:qt,flat:Gt,flatMap:Ut,forEach:Bt,indexOf:$t,join:Wt,keys:Yt,lastIndexOf:Vt,map:Ht,pop:Qt,reduce:Kt,reduceRight:zt,reverse:Xt,slice:Jt,some:Zt,splice:te,toLocaleString:ee,toString:re,values:ne,[It]:oe}=Lt,ie=vt(dt({__proto__:null},Lt[Dt])),{filter:se,find:ae,includes:ue,shift:ce,sort:le,unshift:fe}=Lt,{push:pe}=Lt,{isArray:he}=At;Pt(ArrayBuffer.prototype,"byteLength");const de=`${function t(){return t.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),ve="…",ye=kt("@@lockerNearMembraneSerializedValue"),ge=kt("@@lockerNearMembrane");kt("@@lockerLiveValue");const be="[object BigInt]",we="[object String]",Te="[object Symbol]",me=Map,{prototype:_e}=me,{clear:Ee,delete:Se,forEach:Pe,get:Oe,has:ke,keys:Ie,values:xe,[It]:De,[xt]:Ae}=_e,{entries:Le,set:Ne}=_e,Ce=Pt(_e,"size");const Me=Number,{isFinite:je,isInteger:Re}=Me,Fe=RegExp,{prototype:qe}=Fe,{test:Ge}=qe;Pt(qe,"source");const Ue=Set,{prototype:Be}=Ue;Pt(Be,"size");const $e=String,{prototype:We}=$e,{slice:Ye,valueOf:Ve}=We,He=WeakMap,{prototype:Qe}=He,{has:Ke}=Qe,{delete:ze,get:Xe,set:Je,[xt]:Ze}=Qe;function tr(t){return pt(t,null),t.delete=ze,t.get=Xe,t.has=Ke,t.set=Je,t[xt]=Ze,pt(t,Qe),t}const er=WeakSet,{prototype:rr}=er,{has:nr}=rr,{add:or,delete:ir,[xt]:sr}=rr;const{stringify:ar}=JSON;function ur(t){if("object"==typeof t&&null!==t||"function"==typeof t)return ye in t?void 0:t[ye]}var cr;cr=new me,pt(cr,null),cr.clear=Ee,cr.delete=Se,cr.entries=Le,cr.forEach=Pe,cr.get=Oe,cr.has=ke,cr.keys=Ie,cr.set=Ne,ut(cr,"size",{__proto__:null,configurable:!0,enumerable:!0,get:Ce,set:void 0}),cr.values=xe,cr[It]=De,cr[xt]=Ae,pt(cr,_e);const lr=Error,fr=TypeError;function pr(){}const{min:hr}=Math,dr=window,{navigator:vr,navigator:{userAgentData:yr}}=dr,gr=null==yr?void 0:yr.brands;let br;const wr=he(gr)&&gr.length?void 0!==at(ae,gr,[t=>"Chromium"===(null==t?void 0:t.brand)]):at(Ge,/ (?:Headless)?Chrome\/\d+/,[(void 0===br&&(br=vr.userAgent),br)]),Tr=wr&&void 0===yr,{prototype:mr}=Document,{close:_r,createElement:Er,open:Sr}=mr,Pr=Pt(mr,"body");Pt(DOMException.prototype,"code");const{remove:Or,setAttribute:kr}=Element.prototype,Ir=Pt(HTMLElement.prototype,"style"),xr=Pt(HTMLIFrameElement.prototype,"contentWindow"),{prototype:Dr}=Node,{appendChild:Ar}=Dr,Lr=Pt(Dr,"lastChild");if(de){let t=!0;const e=kt("@@lockerDebugMode"),r=100,n=5,o=100,i=o/2,s="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",a={style:"margin-left:11px; margin-bottom: 3px;"},u={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},c={style:"color: #9d288c; font-weight: bold"},l={style:"color: #b17ab0"},f={style:"color: #16239f"},p={style:"color: #236d25"},h={style:"color: #606367"},d={style:"color: #b82619"},v=function(t){if(null==t)return["span",h,`${t}`];if("boolean"==typeof t)return["span",f,t];if("number"==typeof t)return je(t)?["span",f,t]:["span",f,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:r}=e;if(r>o){const t=at(Ye,e,[0,i]),n=at(Ye,e,[r-i-1,r]);e=t+ve+n}return["span",d,ar(e)]}return he(t)?["span",{},`Array(${t.length})`]:St(t)?["span",{},`{${ve}}`]:["span",d,$e(t)]},y=function(t,e){const o=null==e?void 0:e.isChildElement,i=[];let s=0;o&&(i[s++]=["span",c,e.childKey],i[s++]=["span",{},": "]);const a=at(Et,t,[]);let u=yt(t);if(a===Te)at(ue,u,["description"])||at(fe,u,["description"]);else if(a===we){const{length:e}=t;u=at(se,u,[t=>{const r="string"==typeof t?+t:-1;return r<0||r>=e||!Re(r)}])}const{length:l}=u;if(he(t)){i[s++]=["span",o?h:{},`(${t.length}) [`];for(let e=0,n=hr(l,r);e<n;e+=1){const r=t[u[e]];i[s++]=["span",{},e?", ":""],i[s++]=v(r)}return l>r&&(i[s++]=["span",null,["span",{},`, ${ve}`]]),i[s++]=["span",{},"]"],i}let y,g="{";switch(a){case be:case"[object Boolean]":case"[object Number]":case we:case Te:{let e=f;a===be?e=p:a===Te&&(e=d),g=`${at(Ye,a,[8,-1])} {`,y=["span",e,`${$e(ur(t))}`];break}}i[s++]=["span",{},g],y&&(i[s++]=y,l&&(i[s++]=["span",{},", "]));for(let e=0,r=hr(l,n);e<r;e+=1){const r=u[e],n=t[r];i[s++]=["span",{},e?", ":""],i[s++]=["span",h,r],i[s++]=["span",{},": "],i[s++]=v(n)}return l>n&&(i[s++]=["span",null,["span",{},`, ${ve}`]]),i[s++]=["span",{},"}"],i},g=function(t){const e=yt(t),r=ft(t);he(t)||at(le,r,[]);const n=[];let o=0;for(let i=0,{length:s}=r;i<s;i+=1){const s=r[i],u=t[s];if(St(u))n[o++]=["div",{},["object",{object:u,config:{childKey:$e(s),isChildElement:!0}}]];else{let t=c;"symbol"!=typeof s&&at(ue,e,[s])||(t=l),n[o++]=["div",a,["span",t,$e(s)],["span",{},": "],v(u)]}}return n};let{devtoolsFormatters:b}=dr;he(b)||(b=[],ut(dr,"devtoolsFormatters",{__proto__:null,configurable:!0,value:b,writable:!0})),b[b.length]={header(r,n){if(t&&(t=!1,ut(dr,e,{__proto__:null,configurable:!0,value:!0,writable:!0})),("object"!=typeof(o=r)||null===o)&&"function"!=typeof o||ge in o||!0!==o[ge])return null;var o;const i=["div",{style:`${s}${null!=n&&n.isChildElement?"":"font-style: italic;"}`}];return at(pe,i,y(r,n)),["div",{},i]},hasBody:()=>!0,body(t){const e=["div",u];return at(pe,e,g(t)),e}}}const Nr=tr(new He);function Cr(t){var e,r,n,o,i;const s=Array,a=ArrayBuffer,u=Error,c=Number,l=Object,f=Proxy,p=Reflect,h=RegExp,d=String,v=Symbol,y=TypeError,g=WeakMap,b=WeakSet,{for:w,toStringTag:T}=v,{apply:m,construct:_,defineProperty:E,deleteProperty:S,get:P,getOwnPropertyDescriptor:O,getPrototypeOf:k,has:I,isExtensible:x,ownKeys:D,preventExtensions:A,set:L,setPrototypeOf:N}=p,{assign:C,defineProperties:M,freeze:j,getOwnPropertyDescriptor:R,getOwnPropertyDescriptors:F,isFrozen:q,isSealed:G,keys:U,prototype:B,seal:$}=l,{hasOwnProperty:W,propertyIsEnumerable:Y,toString:V}=B,{hasOwn:H}=l,{__defineGetter__:Q,__defineSetter__:K,__lookupGetter__:z,__lookupSetter__:X}=B,J="function"==typeof H?H:(t,e)=>m(W,t,[e]),Z=null!=(e=null!=(r=null!=t?t:"undefined"!=typeof globalThis?globalThis:void 0)?r:"undefined"!=typeof self?self:void 0)?e:(E(B,"globalThis",{__proto__:null,configurable:!0,get(){return S(B,"globalThis"),null!=this?this:self}}),globalThis),tt="object"!=typeof t||null===t,et=!tt,rt=et?w("@@lockerDebugMode"):void 0,nt=et?w("@@lockerNearMembraneSerializedValue"):void 0,ot=et?w("@@lockerNearMembrane"):void 0,it=w("@@lockerNearMembraneUndefinedValue"),st=`${function t(){return t.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),at=st&&et,ut="Illegal property access.",ct=tt?/\w*$/:void 0;let lt;const ft="function"==typeof BigInt,{isArray:pt}=s,{includes:ht,indexOf:dt,slice:vt}=s.prototype,{isView:yt}=a,gt=ft?BigInt.prototype.valueOf:void 0,{valueOf:bt}=Boolean.prototype,{toString:wt}=u.prototype,{bind:Tt,toString:mt}=Function.prototype,{stringify:_t}=JSON,{isInteger:Et}=c,{valueOf:St}=c.prototype,{revocable:Pt}=f,{prototype:Ot}=h,{exec:kt,test:It,toString:xt}=Ot,Dt=tt?null!=(n=m(z,Ot,["flags"]))?n:function(){const t=m(xt,this,[]);return m(kt,ct,[t])[0]}:void 0,At=m(z,Ot,["source"]),{replace:Lt,slice:Nt,valueOf:Ct}=d.prototype,{toString:Mt,valueOf:jt}=v.prototype,Rt=null==(o=Z.BigInt64Array)?void 0:o.prototype,Ft=null==(i=Z.BigUint64Array)?void 0:i.prototype,{prototype:qt}=Float32Array,{prototype:Gt}=Float64Array,{prototype:Ut}=Int8Array,{prototype:Bt}=Int16Array,{prototype:$t}=Int32Array,{prototype:Wt}=Uint8Array,{prototype:Yt}=Uint16Array,{prototype:Vt}=Uint32Array,Ht=Wt.__proto__,Qt=m(z,Ht,["length"]),{prototype:Kt}=g,{delete:zt,has:Xt,set:Jt,[T]:Zt}=Kt,{prototype:te}=b,{add:ee,has:re,delete:ne,[T]:oe}=te,ie=et&&"object"==typeof console&&null!==console?console:void 0,se=null==ie?void 0:ie.info,ae=tt?eval:void 0;let ue=!1,ce=!1;function le(){return!1}const fe=st?()=>{if(ue)return;ue=!0;const t=(()=>{try{var t;u.prepareStackTrace=(t,e)=>e;const e=(new u).stack;return S(u,"prepareStackTrace"),pt(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0}catch(t){}})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:r,toString:n}=t.prototype,o=new h(`${m(Lt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);try{u.prepareStackTrace=function(t,i){return function(t,i){let s="";try{s=m(wt,t,[])}catch(t){s="<error>"}let a=!1;for(let t=0,{length:u}=i;t<u;t+=1){const u=i[t],c=m(r,u,[]);let l=!1;if("string"==typeof c&&"eval"!==c&&m(It,o,[c])&&(l=!0),!l){const t=m(e,u,[]);"string"==typeof t&&m(It,o,[t])&&(l=!0)}if(l)a||(a=!0,s+="\n at LWS");else{a=!1;try{s+=`\n at ${m(n,u,[])}`}catch(t){}}}return s}(t,i)}}catch(t){}try{const{stackTraceLimit:t}=u;("number"!=typeof t||t<20)&&(u.stackTraceLimit=20)}catch(t){}}:pe;function pe(){}const he=tt?t=>m(gt,t,[]):pe,de=tt?t=>m(bt,t,[]):pe,ve=tt?t=>m(St,t,[]):pe,ye=tt?t=>{if(t!==Ot){const e=m(At,t,[]);return _t({__proto__:null,flags:m(Dt,t,[]),source:e})}}:pe,ge=tt?t=>m(Ct,t,[]):pe,be=tt?t=>m(jt,t,[]):pe,we=tt?t=>{switch(m(V,t,[])){case"[object Boolean]":return de(t);case"[object Number]":return ve(t);case"[object RegExp]":return ye(t);case"[object String]":return ge(t);case"[object Object]":try{return be(t)}catch(t){}if(ft)try{return he(t)}catch(t){}default:return}}:pe,Te=tt?t=>{try{return be(t)}catch(t){}if(ft)try{return he(t)}catch(t){}try{return de(t)}catch(t){}try{return ve(t)}catch(t){}try{return ye(t)}catch(t){}try{return ge(t)}catch(t){}}:pe;function me(t){return N(t,null),t.delete=zt,t.has=Xt,t.set=Jt,t[T]=Zt,N(t,Kt),t}return function(t,e,r){tt&&(r=void 0);const{distortionCallback:n,instrumentation:o,liveTargetCallback:i,revokedProxyCallback:a}=C({__proto__:null},r),u=et&&"object"==typeof o&&null!==o,c={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},h={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},v=me(new g),w=me(new g),W=u?o.startActivity:void 0;let H,ct,ft,gt,bt,wt,_t,St,kt,It,xt,Dt,At,Lt,Ct,jt,Kt,zt,Xt,Jt,Zt,ue,he,de,ve,ye,ge,be,_e,Ee,Se,Pe,Oe,ke,Ie,xe,De,Ae,Le,Ne,Ce,Me,je=0,Re=!1,Fe=tt,qe=tt;const Ge=tt?(t,e,r)=>{r[e]=!1;const n=nr(t);let o;try{St(n,e,((t,e,r,n,i,s,a)=>{o=Xe(e,r,n,i,s,a)}))}catch(t){var i;const e=null!=(i=Me)?i:t;throw Me=void 0,e}o?E(t,e,o):S(t,e)}:pe;let Ue=at?()=>{try{J(Z,rt)&&(Ue=()=>!0,fe(),Zt())}catch(t){Ue=le}return!1}:le;const Be=tt?()=>{var t;t=new b,N(t,null),t.add=ee,t.delete=ne,t.has=re,t[T]=oe,N(t,te),_e=t}:pe;function $e(t,e){let r,n,o;u&&(r=W("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));try{n=ye(t,((...t)=>{const r={};for(let e=0,{length:n}=t;e<n;e+=7){r[t[e]]=Xe(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6])}M(e,r)}))}catch(t){var i;const e=null!=(i=Me)?i:t;throw Me=void 0,u&&r.error(e),e}"function"==typeof n?(n(),o=Me,Me=void 0):o=null,N(e,o),u&&r.stop()}function We(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}()`,n=e?c:h,o=e?ft:gt;return function(i,s,a){je=t;const c=e?a:s,{length:l}=c;var f;if(0!==l)return this[null!=(f=n[l])?f:n.n](i,s,a);let p;u&&(p=W(r));const{foreignTargetPointer:h}=this,d=e?s:a;let v,y;try{v=o(h,"object"==typeof d&&null!==d||"function"==typeof d?nr(d):void 0===d?void 0:d)}catch(t){var g;const e=null!=(g=Me)?g:t;throw Me=void 0,u&&p.error(e),e}return"function"==typeof v?(v(),y=Me,Me=void 0):y=v,u&&p.stop(),y}}function Ye(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(1)`,n=e?c:h,o=e?ft:gt;return function(i,s,a){je=t;const c=e?a:s,{length:l}=c;var f;if(1!==l)return this[null!=(f=n[l])?f:n.n](i,s,a);let p;u&&(p=W(r));const{foreignTargetPointer:h}=this,d=e?s:a;let v,y;try{const{0:t}=c;v=o(h,"object"==typeof d&&null!==d||"function"==typeof d?nr(d):void 0===d?void 0:d,"object"==typeof t&&null!==t||"function"==typeof t?nr(t):void 0===t?void 0:t)}catch(t){var g;const e=null!=(g=Me)?g:t;throw Me=void 0,u&&p.error(e),e}return"function"==typeof v?(v(),y=Me,Me=void 0):y=v,u&&p.stop(),y}}function Ve(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(2)`,n=e?c:h,o=e?ft:gt;return function(i,s,a){je=t;const c=e?a:s,{length:l}=c;var f;if(2!==l)return this[null!=(f=n[l])?f:n.n](i,s,a);let p;u&&(p=W(r));const{foreignTargetPointer:h}=this,d=e?s:a;let v,y;try{const{0:t,1:e}=c;v=o(h,"object"==typeof d&&null!==d||"function"==typeof d?nr(d):void 0===d?void 0:d,"object"==typeof t&&null!==t||"function"==typeof t?nr(t):void 0===t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?nr(e):void 0===e?void 0:e)}catch(t){var g;const e=null!=(g=Me)?g:t;throw Me=void 0,u&&p.error(e),e}return"function"==typeof v?(v(),y=Me,Me=void 0):y=v,u&&p.stop(),y}}function He(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(3)`,n=e?c:h,o=e?ft:gt;return function(i,s,a){je=t;const c=e?a:s,{length:l}=c;var f;if(3!==l)return this[null!=(f=n[l])?f:n.n](i,s,a);let p;u&&(p=W(r));const{foreignTargetPointer:h}=this,d=e?s:a;let v,y;try{const{0:t,1:e,2:r}=c;v=o(h,"object"==typeof d&&null!==d||"function"==typeof d?nr(d):void 0===d?void 0:d,"object"==typeof t&&null!==t||"function"==typeof t?nr(t):void 0===t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?nr(e):void 0===e?void 0:e,"object"==typeof r&&null!==r||"function"==typeof r?nr(r):void 0===r?void 0:r)}catch(t){var g;const e=null!=(g=Me)?g:t;throw Me=void 0,u&&p.error(e),e}return"function"==typeof v?(v(),y=Me,Me=void 0):y=v,u&&p.stop(),y}}function Qe(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(4)`,n=e?c:h,o=e?ft:gt;return function(i,s,a){je=t;const c=e?a:s,{length:l}=c;var f;if(4!==l)return this[null!=(f=n[l])?f:n.n](i,s,a);let p;u&&(p=W(r));const{foreignTargetPointer:h}=this,d=e?s:a;let v,y;try{const{0:t,1:e,2:r,3:n}=c;v=o(h,"object"==typeof d&&null!==d||"function"==typeof d?nr(d):void 0===d?void 0:d,"object"==typeof t&&null!==t||"function"==typeof t?nr(t):void 0===t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?nr(e):void 0===e?void 0:e,"object"==typeof r&&null!==r||"function"==typeof r?nr(r):void 0===r?void 0:r,"object"==typeof n&&null!==n||"function"==typeof n?nr(n):void 0===n?void 0:n)}catch(t){var g;const e=null!=(g=Me)?g:t;throw Me=void 0,u&&p.error(e),e}return"function"==typeof v?(v(),y=Me,Me=void 0):y=v,u&&p.stop(),y}}function Ke(t){const e=1&t,r=`Reflect.${e?"apply":"construct"}(5)`,n=e?c:h,o=e?ft:gt;return function(i,s,a){je=t;const c=e?a:s,{length:l}=c;var f;if(5!==l)return this[null!=(f=n[l])?f:n.n](i,s,a);let p;u&&(p=W(r));const{foreignTargetPointer:h}=this,d=e?s:a;let v,y;try{const{0:t,1:e,2:r,3:n,4:i}=c;v=o(h,"object"==typeof d&&null!==d||"function"==typeof d?nr(d):void 0===d?void 0:d,"object"==typeof t&&null!==t||"function"==typeof t?nr(t):void 0===t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?nr(e):void 0===e?void 0:e,"object"==typeof r&&null!==r||"function"==typeof r?nr(r):void 0===r?void 0:r,"object"==typeof n&&null!==n||"function"==typeof n?nr(n):void 0===n?void 0:n,"object"==typeof i&&null!==i||"function"==typeof i?nr(i):void 0===i?void 0:i)}catch(t){var g;const e=null!=(g=Me)?g:t;throw Me=void 0,u&&p.error(e),e}return"function"==typeof v?(v(),y=Me,Me=void 0):y=v,u&&p.stop(),y}}function ze(t){const e=1&t,r=e?"apply":"construct",n=e?ft:gt;return function(o,i,a){je=t;const{foreignTargetPointer:c}=this,l=e?a:i,{length:f}=l;let p;u&&(p=W(`Reflect.${r}(${f})`));const h=e?i:a;let d=2;const v=new s(f+d);let y,g;v[0]=c;try{v[1]="object"==typeof h&&null!==h||"function"==typeof h?nr(h):void 0===h?void 0:h;for(let t=0;t<f;t+=1){const e=l[t];v[d++]="object"==typeof e&&null!==e||"function"==typeof e?nr(e):void 0===e?void 0:e}y=m(n,void 0,v)}catch(t){var b;const e=null!=(b=Me)?b:t;throw Me=void 0,u&&p.error(e),e}return"function"==typeof y?(y(),g=Me,Me=void 0):g=y,u&&p.stop(),g}}function Xe(t,e,r,n,o,i){const s={__proto__:null};return t!==it&&(s.configurable=t),e!==it&&(s.enumerable=e),r!==it&&(s.writable=r),o!==it&&("function"==typeof o?(o(),s.get=Me,Me=void 0):s.get=void 0),i!==it&&("function"==typeof i?(i(),s.set=Me,Me=void 0):s.set=void 0),n!==it&&("function"==typeof n?(n(),s.value=Me,Me=void 0):s.value=n),s}function Je(t){return()=>{Me=t}}const Ze=tt?()=>{Fe=!1,qe=!1,Be()}:pe,tr=tt?t=>{let e=v.get(t);if(void 0===e){const r=zt(nr(t));"function"==typeof r&&(r(),e=Me,Me=void 0,e&&v.set(t,e))}return e}:pe,er=tt?t=>t===(void 0===De?De=nr(B):De):le,rr=tt?t=>t===(void 0===Pe?Pe=nr(qt):Pe)||t===(void 0===Oe?Oe=nr(Gt):Oe)||t===(void 0===ke?ke=nr(Ut):ke)||t===(void 0===Ie?Ie=nr(Bt):Ie)||t===(void 0===xe?xe=nr($t):xe)||t===(void 0===Le?Le=nr(Wt):Le)||t===(void 0===Ne?Ne=nr(Yt):Ne)||t===(void 0===Ce?Ce=nr(Vt):Ce)||t===(void 0===Ae?Ae=nr(Ht):Ae)||t===(void 0===Ee?Ee=Rt?nr(Rt):pe:Ee)||t===(void 0===Se?Se=Ft?nr(Ft):pe:Se):le;function nr(t,e=ct){let r=w.get(t);if(r)return r;let o,i=0,s=0;if(a&&a(t))return r=e(Je(t),64,i,"",s),w.set(t,r),r;let u=16;if(n){if(o=n(t),o!==t&&typeof o!=typeof t)throw new y(`Invalid distortion ${function(t){if("string"==typeof t)return t;try{if("object"==typeof t&&null!==t){const e=m(V,t,[]);return"[object Symbol]"===e?m(Mt,t,[]):e}return"function"==typeof t?m(mt,t,[]):d(t)}catch(t){}return"[Object Unknown]"}(t)}.`)}else o=t;let c=!0;if("function"==typeof o){c=!1,i=0,u=4;try{"prototype"in o||(u|=8);const e=O(t,"length");if(e){N(e,null);const{value:t}=e;"number"==typeof t&&(i=t)}}catch(t){c=!0}}else if(yt(o)){c=!1,u=2;try{s=m(Qt,o,[]),u|=32}catch(t){c=!0}}if(c)try{pt(o)&&(u=1)}catch(t){u=64}return r=e(Je(o),u,i,"",s),w.set(t,r),r}const or=tt?t=>{if(ce)return;ce=!0;const e=pt(t)&&t.length>0,r=e?{__proto__:null}:void 0,n=e?(e,r)=>m(ht,t,[r])?{configurable:!1,enumerable:m(Y,e,[r]),get:o(r),set:void 0}:O(e,r):void 0,o=e?t=>{let e=r[t];return void 0===e&&(e=m(Tt,a,[]),r[t]=e),e}:void 0,i=e?(e,r)=>m(ht,t,[r])?o(r):m(z,e,[r]):void 0,s=e?(e,r)=>m(ht,t,[r])?void 0:m(X,e,[r]):void 0,a=e?()=>Z:void 0,u=t=>{const{length:e}=t,r=2===e;return new f(t,{apply(n,o,i){if(i.length>=e){const t=r?o:i[0];if("object"==typeof t&&null!==t||"function"==typeof t){const e=r?i[0]:i[1],n=tr(t);null!=n&&n[e]&&t[e]}}return m(t,o,i)}})},c=(t,r)=>new f(t,{apply(n,o,i){if(i.length&&("object"==typeof o&&null!==o||"function"==typeof o)){const{0:t}=i,n=tr(o);if(null!=n&&n[t]&&o[t],e&&o===Z)return r(o,t)}return m(t,o,i)}}),h=t=>new f(t,{apply(r,o,i){if(i.length>1){const{0:t,1:r}=i;if("object"==typeof t&&null!==t||"function"==typeof t){const o=tr(t);if(null!=o&&o[r]&&t[r],e&&t===Z)return n(t,r)}}return m(t,o,i)}});try{p.defineProperty=u(E)}catch(t){}try{p.getOwnPropertyDescriptor=h(O)}catch(t){}try{l.getOwnPropertyDescriptor=h(R)}catch(t){}try{l.getOwnPropertyDescriptors=new f(d=F,{apply(t,r,o){const i=o.length?o[0]:void 0;if(("object"!=typeof i||null===i)&&"function"!=typeof i)return m(d,r,o);const s=tr(i),a=i===Z&&e,u=a?{}:m(d,r,o);if(!a&&void 0===s)return u;const c=D(a?i:u);for(let t=0,{length:e}=c;t<e;t+=1){const e=c[t],r=!(null==s||!s[e]);if(r&&i[e],r||a){const t=a?n(i,e):O(i,e);t?u[e]=t:a||S(u,e)}}return u}})}catch(t){}var d;try{B.__defineGetter__=u(Q)}catch(t){}try{B.__defineSetter__=u(K)}catch(t){}try{B.__lookupGetter__=c(z,i)}catch(t){}try{B.__lookupSetter__=c(X,s)}catch(t){}}:pe;function ir(t,e,r){let n,o,i;u&&(n=W("lookupForeignDescriptor"));try{o=be(t,r,((t,n,o,s,a,u,c)=>{i={__proto__:null,foreign:!0},n!==it&&(i.configurable=n),o!==it&&(i.enumerable=o),s!==it&&(i.writable=s),u!==it&&("function"==typeof u?(u(),i.get=Me,Me=void 0):i.get=void 0),c!==it&&("function"==typeof c?(c(),i.set=Me,Me=void 0):i.set=void 0),a!==it&&("function"==typeof a?(a(),i.value=Me,Me=void 0):i.value=a),!1===n&&E(e,r,i)}))}catch(t){var s;const e=null!=(s=Me)?s:t;throw Me=void 0,u&&n.error(e),e}if(void 0===i){let t;for("function"==typeof o?(o(),t=Me,Me=void 0):t=null;t;){if(i=O(t,r),i){N(i,null);break}t=k(t)}if(i){var a;const{get:t,set:e,value:r}=i,n=null!=(a=null!=t?t:e)?a:r;i.foreign=("object"==typeof n&&null!==n||"function"==typeof n)&&void 0!==w.get(n)}}return u&&n.stop(),i}function sr(t){if(at&&Ue(),"object"==typeof t&&null!==t||"function"==typeof t){nr(t,H)()}return t}function ar(t,e,r,n,o){const{proxy:i}=new cr(t,e,r,n,o);return w.set(i,t),Je(i)}const ur=tt?(t,e)=>{v.set(t,e),ve(nr(t),nr(e))}:pe;class cr{constructor(t,e,r,n,o){let i;this.makeProxyLive=tt?function(){this.deleteProperty=cr.passthruDeletePropertyTrap,this.defineProperty=cr.passthruDefinePropertyTrap,this.preventExtensions=cr.passthruPreventExtensionsTrap,this.set=cr.passthruSetTrap,this.setPrototypeOf=cr.passthruSetPrototypeOfTrap}:pe,this.makeProxyStatic=tt?function(){this.defineProperty=cr.staticDefinePropertyTrap,this.deleteProperty=cr.staticDeletePropertyTrap,this.get=cr.staticGetTrap,this.getOwnPropertyDescriptor=cr.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=cr.staticGetPrototypeOfTrap,this.has=cr.staticHasTrap,this.isExtensible=cr.staticIsExtensibleTrap,this.ownKeys=cr.staticOwnKeysTrap,this.preventExtensions=cr.staticPreventExtensionsTrap,this.set=cr.staticSetTrap,this.setPrototypeOf=cr.staticSetPrototypeOfTrap;const{foreignTargetPointer:t,foreignTargetTraits:e,shadowTarget:r}=this;Fe&&_e.delete(t);const n=Xt(t);if(8&n)this.revoke();else{try{$e(t,r)}catch(e){if(he(t))return void this.revoke()}if(16&e&&!(T in r)){let e="Object";try{e=Jt(t)}catch(t){}this.staticToStringTag=e}4&n?j(r):(2&n?$(r):1&n&&A(r),st&&jt("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t))}}:pe;const s=1&e,a=4&e;i=a?8&e?()=>{}:function(){}:s?[]:{};const{proxy:u,revoke:l}=Pt(i,this);var f,p;(this.foreignTargetPointer=t,this.foreignTargetTraits=e,this.foreignTargetTypedArrayLength=o,this.nonConfigurableDescriptorCallback=(t,e,r,n,o,i,s)=>{E(this.shadowTarget,t,Xe(e,r,n,o,i,s))},this.proxy=u,this.revoke=l,this.serialize=pe,this.shadowTarget=i,this.staticToStringTag="Object",a)&&(this.apply=this[null!=(f=c[r])?f:c.n],this.construct=this[null!=(p=h[r])?p:h.n]);if(this.defineProperty=cr.defaultDefinePropertyTrap,this.deleteProperty=cr.defaultDeletePropertyTrap,this.isExtensible=cr.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=cr.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=cr.defaultGetPrototypeOfTrap,this.get=32&e?cr.hybridGetTrapForTypedArray:cr.defaultGetTrap,this.has=cr.defaultHasTrap,this.ownKeys=cr.defaultOwnKeysTrap,this.preventExtensions=cr.defaultPreventExtensionsTrap,this.setPrototypeOf=cr.defaultSetPrototypeOfTrap,this.set=cr.defaultSetTrap,64&e)this.revoke();else if(tt)(s||2&e)&&this.makeProxyLive();else if(16&e){let t=it;this.serialize=()=>(t===it&&(t=de(this.foreignTargetPointer)),t)}}static passthruDefinePropertyTrap(t,e,r){let n;je=4,u&&(n=W("Reflect.defineProperty"));const{foreignTargetPointer:o,nonConfigurableDescriptorCallback:i}=this,s=r;N(s,null);const{get:a,set:c,value:l}=s,f="value"in s?"object"==typeof l&&null!==l||"function"==typeof l?nr(l):void 0===l?void 0:l:it,p="get"in s?"function"==typeof a?nr(a):a:it,h="set"in s?"function"==typeof c?nr(c):c:it;let d=!1;try{d=bt(o,e,"configurable"in s?!!s.configurable:it,"enumerable"in s?!!s.enumerable:it,"writable"in s?!!s.writable:it,f,p,h,i)}catch(t){var v;const e=null!=(v=Me)?v:t;throw Me=void 0,u&&n.error(e),e}return u&&n.stop(),Fe&&d&&("function"==typeof p||"function"==typeof h)&&_e.delete(o),d}static passthruDeletePropertyTrap(t,e){let r;je=8,u&&(r=W("Reflect.deleteProperty"));let n=!1;try{n=wt(this.foreignTargetPointer,e)}catch(t){var o;const e=null!=(o=Me)?o:t;throw Me=void 0,u&&r.error(e),e}return u&&r.stop(),n}static passthruGetPrototypeOfTrap(t){let e,r,n;je=64,u&&(e=W("Reflect.getPrototypeOf"));try{r=kt(this.foreignTargetPointer)}catch(t){var o;const r=null!=(o=Me)?o:t;throw Me=void 0,u&&e.error(r),r}return"function"==typeof r?(r(),n=Me,Me=void 0):n=null,u&&e.stop(),n}static passthruIsExtensibleTrap(t){let e;je=256,u&&(e=W("Reflect.isExtensible"));const{shadowTarget:r}=this;let n=!1;if(x(r)){const{foreignTargetPointer:t}=this;try{n=xt(t)}catch(t){var o;const r=null!=(o=Me)?o:t;throw Me=void 0,u&&e.error(r),r}n||($e(t,r),A(r))}return u&&e.stop(),n}static passthruOwnKeysTrap(t){let e,r;je=512,u&&(e=W("Reflect.ownKeys"));try{Dt(this.foreignTargetPointer,((...t)=>{r=t}))}catch(t){var n;const r=null!=(n=Me)?n:t;throw Me=void 0,u&&e.error(r),r}return u&&e.stop(),r||[]}static passthruGetOwnPropertyDescriptorTrap(t,e){let r;je=32,u&&(r=W("Reflect.getOwnPropertyDescriptor"));const{foreignTargetPointer:n,shadowTarget:o}=this;let i;try{St(n,e,((t,r,n,s,a,u,c)=>{i=Xe(r,n,s,a,u,c),!1===i.configurable&&E(o,e,i)}))}catch(t){var s;const e=null!=(s=Me)?s:t;throw Me=void 0,u&&r.error(e),e}if(u&&r.stop(),et&&i&&(e===ot||e===nt))throw new y(ut);return i}static passthruPreventExtensionsTrap(t){let e;je=1024,u&&(e=W("Reflect.preventExtensions"));const{foreignTargetPointer:r,shadowTarget:n}=this;let o=!0;if(x(n)){let t=0;try{t=At(r)}catch(t){var i;const r=null!=(i=Me)?i:t;throw Me=void 0,u&&e.error(r),r}1&t||($e(r,n),A(n)),o=!(2&t)}return u&&e.stop(),o}static passthruSetPrototypeOfTrap(t,e){let r;je=4096,u&&(r=W("Reflect.setPrototypeOf"));const{foreignTargetPointer:n}=this,o=e?nr(e):e;let i=!1;try{i=Ct(n,o)}catch(t){var s;const e=null!=(s=Me)?s:t;throw Me=void 0,u&&r.error(e),e}return u&&r.stop(),Fe&&i&&_e.delete(n),i}static passthruSetTrap(t,e,r,n){je=2048;const{foreignTargetPointer:o,proxy:i,shadowTarget:s}=this;if(void 0===r&&(r=void 0),void 0===n&&(n=i),et&&(e===ot||e===nt))throw new y(ut);const a=i===n;let c;u&&(c=W(a?"Reflect.set":"passthruForeignTraversedSet"));let l=!1;try{l=a?Lt(o,e,"object"==typeof r&&null!==r||"function"==typeof r?nr(r):r,it):function(t,e,r,n,o){const i=ir(t,e,r);if(i){if("get"in i||"set"in i){const{set:t}=i;return!!t&&(i.foreign?ft(nr(t),"object"==typeof o&&null!==o||"function"==typeof o?nr(o):void 0===o?void 0:o,"object"==typeof n&&null!==n||"function"==typeof n?nr(n):void 0===n?void 0:n):m(t,o,[n]),!0)}if(!1===i.writable)return!1}if(("object"!=typeof o||null===o)&&"function"!=typeof o)return!1;const s=O(o,r);return s?(N(s,null),!("get"in s)&&!("set"in s)&&!1!==s.writable&&(E(o,r,{__proto__:null,value:n}),!0)):E(o,r,{__proto__:null,configurable:!0,enumerable:!0,value:n,writable:!0})}(o,s,e,r,n)}catch(t){var f;const e=null!=(f=Me)?f:t;throw Me=void 0,u&&c.error(e),e}return u&&c.stop(),l}}cr.hybridGetTrap=tt?function(t,e,r){let n;u&&(n=W("hybridGetTrap"));const{foreignTargetPointer:o,foreignTargetTraits:i,proxy:s,shadowTarget:a}=this;let c,l;if(Fe&&_e.has(o)){let t;try{t=Kt(o,e)}catch(t){var f;const e=null!=(f=Me)?f:t;throw Me=void 0,u&&n.error(e),e}"function"==typeof t?(t(),l=Me,Me=void 0):l=t}else if(c=ir(o,a,e),c){const{get:t,value:e}=c;if(t)if(c.foreign){const e=nr(t),i=s===r?o:"object"==typeof r&&null!==r||"function"==typeof r?nr(r):r;let a;try{a=ft(e,i)}catch(t){var p;const e=null!=(p=Me)?p:t;throw Me=void 0,u&&n.error(e),e}"function"==typeof a?(a(),l=Me,Me=void 0):l=a}else l=m(t,r,[]);else l=e}else{const t=s===r?o:"object"==typeof r&&null!==r||"function"==typeof r?nr(r):r;let a;try{a=_t(o,i,e,t)}catch(t){var h;const e=null!=(h=Me)?h:t;throw Me=void 0,u&&n.error(e),e}"function"==typeof a?(a(),l=Me,Me=void 0):l=a}if(void 0===c&&void 0===l&&e===T&&16&i){let t;try{t=Jt(o)}catch(t){var d;const e=null!=(d=Me)?d:t;throw Me=void 0,u&&n.error(e),e}"Object"!==t&&(l=t)}return u&&n.stop(),l}:pe,cr.hybridGetTrapForTypedArray=tt?function(t,e,r){let n;u&&(n=W("hybridGetTrapForTypedArray"));const{foreignTargetPointer:o,foreignTargetTypedArrayLength:i,proxy:s,shadowTarget:a}=this;let c,l=qe;if(!l&&"string"==typeof e){const t=+e;l=t>-1&&t<i&&Et(t)}if(l){let t;try{t=Kt(o,e)}catch(t){var f;const e=null!=(f=Me)?f:t;throw Me=void 0,u&&n.error(e),e}"function"==typeof t?(t(),c=Me,Me=void 0):c=t}else{const t=ir(o,a,e);if(t){const{get:e,value:i}=t;if(e)if(t.foreign){const t=nr(e),i=s===r?o:"object"==typeof r&&null!==r||"function"==typeof r?nr(r):r;let a;try{a=ft(t,i)}catch(t){var p;const e=null!=(p=Me)?p:t;throw Me=void 0,u&&n.error(e),e}"function"==typeof a?(a(),c=Me,Me=void 0):c=a}else c=m(e,r,[]);else c=i}}return u&&n.stop(),c}:pe,cr.hybridHasTrap=tt?function(t,e){let r,n;u&&(r=W("hybridHasTrap"));try{n=ge(this.foreignTargetPointer,e)}catch(t){var o;const e=null!=(o=Me)?o:t;throw Me=void 0,u&&r.error(e),e}let i=!1;if(!0===n)i=!0;else{let t;for("function"==typeof n?(n(),t=Me,Me=void 0):t=null;t;){if(J(t,e)){i=!0;break}t=k(t)}}return u&&r.stop(),i}:le,cr.passthruGetTrap=et?function(t,e,r){Re&&(Re=128===je),je=16;const n=e===ot,o=e===nt;if(Re){if(n)return!0;if(o)return this.serialize()}let i;u&&(i=W("Reflect.get"));const{foreignTargetPointer:s,foreignTargetTraits:a,proxy:c}=this;void 0===r&&(r=c);const l=c===r?it:"object"==typeof r&&null!==r||"function"==typeof r?nr(r):r;let f,p;try{f=_t(s,a,e,l)}catch(t){var h;const e=null!=(h=Me)?h:t;throw Me=void 0,u&&i.error(e),e}if("function"==typeof f?(f(),p=Me,Me=void 0):p=f,u&&i.stop(),void 0!==p&&(n||o))throw new y(ut);return p}:pe,cr.passthruHasTrap=et?function(t,e){let r,n;je=128,u&&(r=W("Reflect.has"));try{n=It(this.foreignTargetPointer,e)}catch(t){var o;const e=null!=(o=Me)?o:t;throw Me=void 0,u&&r.error(e),e}const i=e===ot,s=e===nt;if(n){if(Re=!1,i||s)throw new y(ut)}else Re=i||s;return u&&r.stop(),n}:le,cr.pendingDefinePropertyTrap=tt?function(t,e,r){const{foreignTargetPointer:n,foreignTargetTraits:o}=this;return ue(n,o)?this.makeProxyLive():(Fe&&(er(n)?Ze():rr(n)&&(qe=!1)),this.makeProxyStatic()),this.defineProperty(t,e,r)}:le,cr.pendingDeletePropertyTrap=tt?function(t,e){return ue(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.deleteProperty(t,e)}:le,cr.pendingPreventExtensionsTrap=tt?function(t){return ue(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.preventExtensions(t)}:le,cr.pendingSetPrototypeOfTrap=tt?function(t,e){const{foreignTargetPointer:r,foreignTargetTraits:n}=this;return ue(r,n)?this.makeProxyLive():(Fe&&(er(r)?Ze():rr(r)&&(qe=!1)),this.makeProxyStatic()),this.setPrototypeOf(t,e)}:le,cr.pendingSetTrap=tt?function(t,e,r,n){const{foreignTargetPointer:o,foreignTargetTraits:i}=this;return ue(o,i)?this.makeProxyLive():(Fe&&(er(o)?Ze():rr(o)&&(qe=!1)),this.makeProxyStatic()),this.set(t,e,r,n)}:le,cr.staticDefinePropertyTrap=tt?E:le,cr.staticDeletePropertyTrap=tt?S:le,cr.staticGetOwnPropertyDescriptorTrap=tt?O:pe,cr.staticGetPrototypeOfTrap=tt?k:()=>null,cr.staticGetTrap=tt?function(t,e,r){const{foreignTargetTraits:n,staticToStringTag:o}=this,i=P(t,e,r);return void 0===i&&e===T&&16&n&&"Object"!==o&&!(e in t)?o:i}:pe,cr.staticHasTrap=tt?I:le,cr.staticIsExtensibleTrap=tt?x:le,cr.staticOwnKeysTrap=tt?D:()=>[],cr.staticPreventExtensionsTrap=tt?A:le,cr.staticSetPrototypeOfTrap=tt?N:le,cr.staticSetTrap=tt?L:le,cr.defaultDefinePropertyTrap=tt?cr.pendingDefinePropertyTrap:cr.passthruDefinePropertyTrap,cr.defaultDeletePropertyTrap=tt?cr.pendingDeletePropertyTrap:cr.passthruDeletePropertyTrap,cr.defaultGetOwnPropertyDescriptorTrap=cr.passthruGetOwnPropertyDescriptorTrap,cr.defaultGetPrototypeOfTrap=cr.passthruGetPrototypeOfTrap,cr.defaultGetTrap=tt?cr.hybridGetTrap:cr.passthruGetTrap,cr.defaultHasTrap=tt?cr.hybridHasTrap:cr.passthruHasTrap,cr.defaultIsExtensibleTrap=cr.passthruIsExtensibleTrap,cr.defaultOwnKeysTrap=cr.passthruOwnKeysTrap,cr.defaultPreventExtensionsTrap=tt?cr.pendingPreventExtensionsTrap:cr.passthruPreventExtensionsTrap,cr.defaultSetTrap=tt?cr.pendingSetTrap:cr.passthruSetTrap,cr.defaultSetPrototypeOfTrap=tt?cr.pendingSetPrototypeOfTrap:cr.passthruSetPrototypeOfTrap,tt&&Be(),e(Je(Z),et?()=>{const t=Me;return Me=void 0,t}:pe,(t=>"object"==typeof t&&null!==t||"function"==typeof t?nr(t):void 0===t?void 0:t),((t,e)=>{t();const r=Me;Me=void 0;const n=null==r?void 0:r[e];return Je(void 0===n?void 0:n)}),tt?t=>{let e;try{e=ae(t)}catch(t){throw sr(t)}return"object"==typeof e&&null!==e||"function"==typeof e?nr(e):e}:pe,((t,e)=>{t();const r=Me;Me=void 0,("object"==typeof r&&null!==r||"function"==typeof r)&&w.set(r,e)}),at?(t,e,r,n,o)=>{const i=ar(t,e,r,n,o);return()=>(Ue(),i())}:ar,ar,((t,e,...r)=>{t();const n=Me;let o,i;Me=void 0,"function"==typeof e&&(e(),o=Me,Me=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Me,Me=void 0)}try{i=m(n,o,r)}catch(t){throw sr(t)}return"object"==typeof i&&null!==i||"function"==typeof i?nr(i):void 0===i?void 0:i}),((t,e,...r)=>{t();const n=Me;let o,i;Me=void 0,"function"==typeof e&&(e(),o=Me,Me=void 0);for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];"function"==typeof e&&(e(),r[t]=Me,Me=void 0)}try{i=_(n,r,o)}catch(t){throw sr(t)}return"object"==typeof i&&null!==i||"function"==typeof i?nr(i):void 0===i?void 0:i}),((t,e,r,n,o,i,s,a,u)=>{t();const c=Me;Me=void 0;const l=Xe(r,n,o,i,s,a);let f=!1;try{f=E(c,e,l)}catch(t){throw sr(t)}if(f&&!1===r){let t;try{t=O(c,e)}catch(t){throw sr(t)}if(t&&(N(t,null),!1===t.configurable)){const{get:r,set:n,value:o}=t;u(e,!1,"enumerable"in t?t.enumerable:it,"writable"in t?t.writable:it,"value"in t?"object"==typeof o&&null!==o||"function"==typeof o?nr(o):o:it,"get"in t?"function"==typeof r?nr(r):r:it,"set"in t?"function"==typeof n?nr(n):n:it)}}return f}),((t,e)=>{t();const r=Me;Me=void 0;try{return S(r,e)}catch(t){throw sr(t)}}),((t,e,r,n)=>{t();const o=Me;let i,s;Me=void 0,"function"==typeof n?(n(),i=Me,Me=void 0):i=n===it?o:n;try{s=P(o,r,i)}catch(t){throw sr(t)}if("object"==typeof s&&null!==s||"function"==typeof s)return nr(s);if(void 0===s&&r===T&&16&e)try{if(!(r in o)){const t=m(V,o,[]);"[object Object]"!==t&&(s=m(Nt,t,[8,-1]))}}catch(t){throw sr(t)}return void 0===s?void 0:s}),((t,e,r)=>{t();const n=Me;let o;Me=void 0;try{o=O(n,e)}catch(t){throw sr(t)}if(o){N(o,null);const{get:t,set:n,value:i}=o;r(e,"configurable"in o?o.configurable:it,"enumerable"in o?o.enumerable:it,"writable"in o?o.writable:it,"value"in o?"object"==typeof i&&null!==i||"function"==typeof i?nr(i):void 0===i?void 0:i:it,"get"in o?"function"==typeof t?nr(t):t:it,"set"in o?"function"==typeof n?nr(n):n:it)}}),(t=>{t();const e=Me;let r;Me=void 0;try{r=k(e)}catch(t){throw sr(t)}return void 0===r?null:r?nr(r):r}),((t,e)=>{t();const r=Me;Me=void 0;try{return e in r}catch(t){throw sr(t)}}),(t=>{t();const e=Me;Me=void 0;try{return x(e)}catch(t){throw sr(t)}}),((t,e)=>{t();const r=Me;let n;Me=void 0;try{n=D(r)}catch(t){throw sr(t)}m(e,void 0,n)}),(t=>{t();const e=Me;Me=void 0;let r=2;try{A(e)?r=4:x(e)&&(r|=1)}catch(t){throw sr(t)}return r}),((t,e,r,n)=>{t();const o=Me;let i,s;Me=void 0,"function"==typeof r?(r(),i=Me,Me=void 0):i=r,"function"==typeof n?(n(),s=Me,Me=void 0):s=n===it?o:n;try{return L(o,e,i,s)}catch(t){throw sr(t)}}),((t,e=null)=>{t();const r=Me;let n;Me=void 0,"function"==typeof e?(e(),n=Me,Me=void 0):n=null;try{return N(r,n)}catch(t){throw sr(t)}}),at?(...t)=>{if(Ue()){for(let e=0,{length:r}=t;e<r;e+=1){const r=t[e];"function"==typeof r&&(r(),t[e]=Me,Me=void 0)}try{m(se,ie,t)}catch(t){}}}:pe,tt?(t,...e)=>{t();const r=Me;Me=void 0;for(let t=0,{length:n}=e;t<n;t+=7)E(r,e[t],Xe(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]))}:pe,et?t=>{t();const e=Me;Me=void 0;const r=Nr.get(e);return r?nr(r):r}:pe,et?(t,e)=>{t();const r=Me;let n;Me=void 0;try{n=r[e]}catch(t){throw sr(t)}return"object"==typeof n&&null!==n||"function"==typeof n?nr(n):n}:pe,et?t=>{t();const e=Me;Me=void 0;try{if(!x(e))return q(e)||G(e)?0:1}catch(t){try{pt(e)}catch(t){return 8}}return 0}:()=>0,(t=>{t();const e=Me;Me=void 0;try{const t=m(V,e,[]);return"[object Object]"===t?"Object":m(Nt,t,[8,-1])}catch(t){throw sr(t)}}),fe,tt?(t,...e)=>{const r=m(dt,e,[it]);let n,o;-1===r?n=e:(n=m(vt,e,[0,r]),o=m(vt,e,[r+1])),t();const i=Me;Me=void 0;let s=tr(i);void 0===s&&(s={__proto__:null},ur(i,s));for(let t=0,{length:e}=n;t<e;t+=1){const e=n[t];s[e]=!0,E(i,e,{__proto__:null,configurable:!0,get:()=>(Ge(i,e,s),i[e]),set(t){Ge(i,e,s),L(i,e,t)}})}or(o)}:pe,et&&i?(t,e)=>{t();const r=Me;if(Me=void 0,r!==B&&r!==Ot)try{return i(r,e)}catch(t){}return!1}:le,et?t=>{t();const e=Me;Me=void 0;try{return pt(e),!1}catch(t){}return!0}:le,tt?t=>{t();const e=Me;Me=void 0;try{return T in e?Te(e):we(e)}catch(t){}}:pe,et?(t,e)=>{t();const r=Me;Me=void 0,e();const n=Me;Me=void 0,Nr.set(r,n)}:pe,tt?t=>{t();const e=Me;Me=void 0,Fe&&_e.add(nr(e))}:pe,((t,e)=>{t();const r=Me;let n;Me=void 0;try{n=F(r)}catch(t){throw sr(t)}const o=D(n),{length:i}=o,a=new s(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const r=o[t],i=n[r];N(i,null);const{get:s,set:u,value:c}=i;a[e]=r,a[e+1]="configurable"in i?i.configurable:it,a[e+2]="enumerable"in i?i.enumerable:it,a[e+3]="writable"in i?i.writable:it,a[e+4]="value"in i?"object"==typeof c&&null!==c||"function"==typeof c?nr(c):c:it,a[e+5]="get"in i?"function"==typeof s?nr(s):s:it,a[e+6]="set"in i?"function"==typeof u?nr(u):u:it}let u;m(e,void 0,a);try{u=k(r)}catch(t){throw sr(t)}return void 0===u?null:u?nr(u):u}),((t,e)=>{t();const r=Me;let n;Me=void 0;try{if(J(r,e))return!0;n=k(r)}catch(t){throw sr(t)}return void 0===n?null:n?nr(n):n}),((t,e,r)=>{t();const n=Me;let o,i;Me=void 0;try{o=O(n,e)}catch(t){throw sr(t)}if(!o){try{i=k(n)}catch(t){throw sr(t)}return void 0===i?null:i?nr(i):i}{N(o,null);const{get:t,set:n,value:i}=o;r(e,"configurable"in o?o.configurable:it,"enumerable"in o?o.enumerable:it,"writable"in o?o.writable:it,"value"in o?"object"==typeof i&&null!==i||"function"==typeof i?nr(i):void 0===i?void 0:i:it,"get"in o?"function"==typeof t?nr(t):t:it,"set"in o?"function"==typeof n?nr(n):n:it)}}));let lr=!1;return(...t)=>{if(lr)return;lr=!0,({6:H,7:ct,8:ft,9:gt,10:bt,11:wt,12:_t,13:St,14:kt,15:It,16:xt,17:Dt,18:At,19:Lt,20:Ct,21:jt,23:zt,24:Kt,25:Xt,26:Jt,27:Zt,29:ue,30:he,31:de,32:ve,34:ye,35:ge,36:be}=t);const e=We(1),r=Ye(1),n=Ve(1),o=He(1),i=Qe(1),s=Ke(1),a=ze(1),u=We(2),l=Ye(2),f=Ve(2),p=He(2),d=Qe(2),v=Ke(2),y=ze(2);void 0===lt&&(lt=U({applyTrapForZeroOrMoreArgs:e,applyTrapForOneOrMoreArgs:r,applyTrapForTwoOrMoreArgs:n,applyTrapForThreeOrMoreArgs:o,applyTrapForFourOrMoreArgs:i,applyTrapForFiveOrMoreArgs:s,applyTrapForAnyNumberOfArgs:a,constructTrapForZeroOrMoreArgs:u,constructTrapForOneOrMoreArgs:l,constructTrapForTwoOrMoreArgs:f,constructTrapForThreeOrMoreArgs:p,constructTrapForFourOrMoreArgs:d,constructTrapForFiveOrMoreArgs:v,constructTrapForAnyNumberOfArgs:y})),c[0]=lt[0],c[1]=lt[1],c[2]=lt[2],c[3]=lt[3],c[4]=lt[4],c[5]=lt[5],c.n=lt[6],h[0]=lt[7],h[1]=lt[8],h[2]=lt[9],h[3]=lt[10],h[4]=lt[11],h[5]=lt[12],h.n=lt[13];const{prototype:g}=cr;g[c[0]]=e,g[c[1]]=r,g[c[2]]=n,g[c[3]]=o,g[c[4]]=i,g[c[5]]=s,g[c.n]=a,g[h[0]]=u,g[h[1]]=l,g[h[2]]=f,g[h[3]]=p,g[h[4]]=d,g[h[5]]=v,g[h.n]=y,N(g,null)}}}const Mr=`\n'use strict';\n(${Cr})`;function jr(t){if("function"!=typeof t)throw new fr("Missing evaluator function.");return t(Mr)()}const Rr=kt("@@lockerNearMembraneUndefinedValue");class Fr{constructor(t){if(void 0===t)throw new lr("Missing required VirtualEnvironment options.");const{blueConnector:e,redConnector:r,distortionCallback:n,instrumentation:o,liveTargetCallback:i,revokedProxyCallback:s,signSourceCallback:a}=dt({__proto__:null},t);let u;const c=e("blue",((...t)=>{u=t}),{distortionCallback:n,instrumentation:o,liveTargetCallback:i,revokedProxyCallback:s}),{0:l,1:f,2:p,3:h,5:d,6:v,7:y,8:g,9:b,10:w,11:T,12:m,13:_,14:E,15:S,16:P,17:O,18:k,19:I,20:x,23:D,24:A,25:L,26:N,27:C,29:M,32:j,34:R,35:F,36:q}=u;let G;const U=r("red",((...t)=>{G=t})),{0:B,3:$,4:W,5:Y,6:V,7:H,8:Q,9:K,10:z,11:X,12:J,13:Z,14:tt,15:et,16:rt,17:nt,18:ot,19:it,20:st,21:ut,22:ct,23:lt,25:ft,26:pt,27:ht,28:vt,30:yt,31:gt,32:bt,33:wt,34:Tt,35:mt,36:_t}=G;c(pr,pr,pr,pr,pr,pr,V,H,Q,K,z,X,J,Z,tt,et,rt,nt,ot,it,st,ut,pr,lt,pr,ft,pt,ht,pr,pr,yt,gt,bt,wt,Tt,mt,_t),U(pr,pr,pr,pr,pr,pr,v,y,g,b,w,T,m,_,E,S,P,O,k,I,x,pr,pr,D,A,L,N,C,pr,M,pr,pr,j,pr,R,F,q),this.blueGlobalThisPointer=l,this.blueGetSelectedTarget=f,this.blueGetTransferableValue=p,this.blueCallableGetPropertyValuePointer=h,this.blueCallableLinkPointers=d,this.redGlobalThisPointer=()=>B(),this.redCallableGetPropertyValuePointer=(t,e)=>$(t,e),this.redCallableEvaluate=a?t=>W(a(t)):t=>W(t),this.redCallableLinkPointers=(t,e)=>Y(t,e),this.redCallableSetPrototypeOf=(t,e)=>st(t,e),this.redCallableDefineProperties=(t,...e)=>{const{length:r}=e,n=new At(r+1);n[0]=t;for(let t=0;t<r;t+=1)n[t+1]=e[t];at(ct,void 0,n)},this.redCallableInstallLazyPropertyDescriptors=(t,...e)=>{const{length:r}=e,n=new At(r+1);n[0]=t;for(let t=0;t<r;t+=1)n[t+1]=e[t];at(vt,void 0,n)},this.redCallableTrackAsFastTarget=t=>wt(t)}evaluate(t){try{const e=this.redCallableEvaluate(t);return"function"==typeof e?(e(),this.blueGetSelectedTarget()):e}catch(t){var e;throw null!=(e=this.blueGetSelectedTarget())?e:t}}lazyRemapProperties(t,e,r){if("object"==typeof t&&null!==t||"function"==typeof t){const n=[this.blueGetTransferableValue(t)];at(pe,n,e),null!=r&&r.length&&(n[n.length]=Rr,at(pe,n,r)),at(this.redCallableInstallLazyPropertyDescriptors,void 0,n)}}link(...t){let e=this.blueGlobalThisPointer,r=this.redGlobalThisPointer;for(let n=0,{length:o}=t;n<o;n+=1){const o=t[n];e=this.blueCallableGetPropertyValuePointer(e,o),r=this.redCallableGetPropertyValuePointer(r,o),this.redCallableLinkPointers(r,e),this.blueCallableLinkPointers(e,r)}}remapProperties(t,e){if("object"==typeof t&&null!==t||"function"==typeof t){const r=this.blueGetTransferableValue(t),n=ft(e),{length:o}=n,i=new At(1+7*o);i[0]=r;for(let t=0,r=1;t<o;t+=1,r+=7){const o=n[t],s=e[o],a=dt({__proto__:null},s);i[r]=o,i[r+1]="configurable"in a?!!a.configurable:Rr,i[r+2]="enumerable"in a?!!a.enumerable:Rr,i[r+3]="writable"in a?!!a.writable:Rr,i[r+4]="value"in a?this.blueGetTransferableValue(a.value):Rr,i[r+5]="get"in a?this.blueGetTransferableValue(a.get):Rr,i[r+6]="set"in a?this.blueGetTransferableValue(a.set):Rr}at(this.redCallableDefineProperties,this,i)}}remapProto(t,e){if("object"==typeof t&&null!==t||"function"==typeof t){const r=this.blueGetTransferableValue(t),n=e?this.blueGetTransferableValue(e):e;this.redCallableSetPrototypeOf(r,n)}}trackAsFastTarget(t){("object"==typeof t&&null!==t||"function"==typeof t)&&this.redCallableTrackAsFastTarget(this.blueGetTransferableValue(t))}}const qr=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],Gr=(Ur=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","Math","Reflect","escape","unescape",...qr],pt(Ur,null),Ur.at=Nt,Ur.concat=Ct,Ur.copyWithin=Mt,Ur.entries=jt,Ur.every=Rt,Ur.fill=Ft,Ur.filter=se,Ur.find=ae,Ur.findIndex=qt,Ur.flat=Gt,Ur.flatMap=Ut,Ur.forEach=Bt,Ur.includes=ue,Ur.indexOf=$t,Ur.join=Wt,Ur.keys=Yt,Ur.lastIndexOf=Vt,Ur.map=Ht,Ur.pop=Qt,Ur.push=pe,Ur.reduce=Kt,Ur.reduceRight=zt,Ur.reverse=Xt,Ur.shift=ce,Ur.slice=Jt,Ur.some=Zt,Ur.sort=le,Ur.splice=te,Ur.toLocaleString=ee,Ur.toString=re,Ur.unshift=fe,Ur.values=ne,Ur[It]=oe,Ur[Dt]=ie,pt(Ur,Lt),Ur);var Ur;function Br(t){const e=[];let r=0;const n=ft(t);for(let t=0,{length:o}=n;t<o;t+=1){const o=n[t];Gr.includes(o)||(e[r++]=o)}return e}const $r=tr(new WeakMap),Wr=wr?["window"]:void 0;function Yr(t){const{window:e}=t;let r,n;try{({document:n}=t),r=$r.get(n)}catch(t){return}if(r)return r;const o=lt(e),i=lt(o),s=lt(i);return r={document:n,DocumentProto:lt(n),window:e,WindowProto:lt(e),WindowPropertiesProto:lt(o),EventTargetProto:s,EventTargetProtoOwnKeys:ft(s)},$r.set(n,r),r}function Vr(t){const e=[];let r=0;for(let n=0,{length:o}=t;n<o;n+=1){const o=t[n];"document"!==o&&"location "!==o&&"top"!==o&&"window"!==o&&"chrome"!==o&&(e[r++]=o)}return e}Yr(dr);const Hr="allow-same-origin allow-scripts",Qr=(Kr=new er,pt(Kr,null),Kr.add=or,Kr.delete=ir,Kr.has=nr,Kr[xt]=sr,pt(Kr,rr),Kr);var Kr;const zr=tr(new He);let Xr=null;function Jr(t){return Qr.has(t)}function Zr(t){const e=t.length,r=[];if(e>0)for(let n=0;n<e;n++)r[n]=t[n];return r}const{assign:tn,create:en,defineProperties:rn,defineProperty:nn,freeze:on,getOwnPropertyDescriptor:sn,getOwnPropertyDescriptors:an,getOwnPropertyNames:un,getPrototypeOf:cn,keys:ln,seal:fn,setPrototypeOf:pn}=Object,{filter:hn,find:dn,indexOf:vn,join:yn,map:gn,push:bn,reduce:wn,reverse:Tn,slice:mn,splice:_n,unshift:En,forEach:Sn}=Array.prototype;function Pn(t){return void 0===t}function On(t){return null===t}function kn(t){return!0===t}function In(t){return"string"==typeof t}const xn=t=>new Map(t);function Dn(t){return Symbol(t)}function An(t,e,r){t[e]=r}function Ln(t,e){return t[e]}function Nn(t){return t instanceof HTMLElement&&!!X.call(t)}function Cn(t){return X.call(t)}const Mn=Dn("StaticNodeListItems");function jn(){throw new TypeError("Illegal constructor")}function Rn(t){const e=en(jn.prototype);return An(e,Mn,t),Sn.call(t,((t,r)=>{nn(e,r,{value:t,enumerable:!0,configurable:!0})})),e}jn.prototype=en(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:jn},item:{writable:!0,enumerable:!0,configurable:!0,value(t){return this[t]}},length:{enumerable:!0,configurable:!0,get(){return Ln(this,Mn).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(t,e){Sn.call(Ln(this,Mn),t,e)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return gn.call(Ln(this,Mn),((t,e)=>[e,t]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return gn.call(Ln(this,Mn),((t,e)=>e))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return Ln(this,Mn)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let t=0;return{next:()=>{const e=Ln(this,Mn);return t<e.length?{value:e[t++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"NodeList"}}),pn(jn,NodeList);const Fn=sn(Element.prototype,"assignedSlot").get;function qn(t){return t instanceof HTMLSlotElement}function Gn(t){return qn(t)?t.assignedNodes({flatten:!0}):Nn(t)?Zr(S.call(Cn(t))):Zr(S.call(t))}function Un(t){switch(t.nodeType){case i:case l:{const e=Gn(t);let r="";for(let t=0,n=e.length;t<n;t+=1){const n=e[t];n.nodeType!==c&&(r+=Un(n))}return r}default:return t.nodeValue}}var Bn=xn([[w,function(){const t=Gn(this);return t.length>0?t[0]:null}],[T,function(){const t=Gn(this);return t.length>0?t[t.length-1]:null}],[E,function(){return Un(this)}],[m,function(){const t=Fn.call(this);if(t)return t;const e=m.call(this);return e&&e instanceof ShadowRoot?e.host:e}],[_,function(){const t=Fn.call(this);if(t)return t;const e=m.call(this);return e&&e instanceof ShadowRoot?e.host:_.call(this)}],[S,function(){return Rn(Gn(this))}],[g,function(){return Gn(this).length>0}],[b,function(){return this.isConnected?this.ownerDocument:b.call(this)}]]);var $n=xn([[sn(Text.prototype,"assignedSlot").get,function(){return null}]]);const{assignedNodes:Wn,assignedElements:Yn}=HTMLSlotElement.prototype;var Vn=xn([[Yn,function(t){return!Pn(t)&&kn(t.flatten)?Yn.call(this,{flatten:!0}):[]}],[Wn,function(t){return!Pn(t)&&kn(t.flatten)?Wn.call(this,{flatten:!0}):[]}]]);const Hn=Dn("StaticHTMLCollectionItems");function Qn(){throw new TypeError("Illegal constructor")}function Kn(t){let e="";for(let r=0,n=t.length;r<n;r+=1)e+=io(t[r]);return e}function zn(t){return qn(t)?Kn(t.assignedNodes({flatten:!0})):Nn(t)?Kn(S.call(Cn(t))):Kn(S.call(t))}Qn.prototype=en(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Qn},item:{writable:!0,enumerable:!0,configurable:!0,value(t){return this[t]}},length:{enumerable:!0,configurable:!0,get(){return Ln(this,Hn).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(t){if(""===t)return null;const e=Ln(this,Hn);for(let r=0,n=e.length;r<n;r++){const r=e[n];if(t===I.call(r,"id")||t===I.call(r,"name"))return r}return null}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(t,e){Sn.call(Ln(this,Hn),t,e)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return gn.call(Ln(this,Hn),((t,e)=>[e,t]))}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return gn.call(Ln(this,Hn),((t,e)=>e))}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return Ln(this,Hn)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let t=0;return{next:()=>{const e=Ln(this,Hn);return t<e.length?{value:e[t++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get:()=>"HTMLCollection"}}),pn(Qn,HTMLCollection);const Xn=/[&\u00A0"]/g,Jn=/[&\u00A0<>]/g,{replace:Zn,toLowerCase:to}=String.prototype;function eo(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" ";default:return""}}function ro(t){return Zn.call(t,Xn,eo)}const no=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),oo=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function io(t){switch(t.nodeType){case i:{const{attributes:e}=t,r=Q.call(t);let n="<"+to.call(r);for(let t,r=0;t=e[r];r++)n+=" "+t.name+'="'+ro(t.value)+'"';return n+=">",no.has(r)?n:n+zn(t)+"</"+to.call(r)+">"}case s:{const{data:r,parentNode:n}=t;return n instanceof Element&&oo.has(Q.call(n))?r:(e=r,Zn.call(e,Jn,eo))}case a:return`<!CDATA[[${t.data}]]>`;case u:return`<?${t.target} ${t.data}?>`;case c:return`\x3c!--${t.data}--\x3e`;default:return""}var e}const so=sn(Event.prototype,"target").get,ao=sn(FocusEvent.prototype,"relatedTarget").get,{composedPath:uo}=Event.prototype,co=new WeakMap;function lo(t){let e=co.get(t);return e||(e={target:so.call(t),composedPath:uo.call(t)},t instanceof FocusEvent&&(e.relatedTarget=ao.call(t)),co.set(t,e),e)}var fo=xn([[so,function(){return lo(this).target}],[uo,function(){return hn.call(lo(this).composedPath,(t=>!(t instanceof ShadowRoot)))}],[ao,function(){return lo(this).relatedTarget}]]);
| /*! http://mths.be/startswith v0.2.0 by @mathias */String.prototype.startsWith||function(){var t=function(){try{var t={},e=Object.defineProperty,r=e(t,t,t)&&e}catch(t){}return r}(),e={}.toString,r=function(t){if(null==this)throw TypeError();var r=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var n=r.length,o=String(t),i=o.length,s=arguments.length>1?arguments[1]:void 0,a=s?Number(s):0;a!=a&&(a=0);var u=Math.min(Math.max(a,0),n);if(i+u>n)return!1;for(var c=-1;++c<i;)if(r.charCodeAt(u+c)!=o.charCodeAt(c))return!1;return!0};t?t(String.prototype,"startsWith",{value:r,configurable:!0,writable:!0}):String.prototype.startsWith=r}()
| /*! http://mths.be/endswith v0.2.0 by @mathias */,String.prototype.endsWith||function(){var t=function(){try{var t={},e=Object.defineProperty,r=e(t,t,t)&&e}catch(t){}return r}(),e={}.toString,r=function(t){if(null==this)throw TypeError();var r=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var n=r.length,o=String(t),i=o.length,s=n;if(arguments.length>1){var a=arguments[1];void 0!==a&&(s=a?Number(a):0)!=s&&(s=0)}var u=Math.min(Math.max(s,0),n)-i;if(u<0)return!1;for(var c=-1;++c<i;)if(r.charCodeAt(u+c)!=o.charCodeAt(c))return!1;return!0};t?t(String.prototype,"endsWith",{value:r,configurable:!0,writable:!0}):String.prototype.endsWith=r}()
| /*
| object-assign
| (c) Sindre Sorhus
| @license MIT
| */;var po=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable;var yo=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=arguments,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var a in r=Object(o[s]))ho.call(r,a)&&(i[a]=r[a]);if(po){n=po(r);for(var u=0;u<n.length;u++)vo.call(r,n[u])&&(i[n[u]]=r[n[u]])}}return i},go="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wo(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var To=function(t,e){for(var r=-1,n=[];-1!==(r=t.indexOf(e,r+1));)n.push(r);return n};var mo=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,o=t[0],i=t[0],s=1;s<n;++s)if(i=o,e(o=t[s],i)){if(s===r){r++;continue}t[r++]=o}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],o=t[0],i=1;i<r;++i,o=n)if(o=n,(n=t[i])!==o){if(i===e){e++;continue}t[e++]=n}return t.length=e,t}(t))},_o=wo((function(t,e){e.__esModule=!0,e.default=function(t){return t.replace(n,(function(t,e,r){var n="0x"+e-65536;return n!=n||r?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}))};var r="[\\x20\\t\\r\\n\\f]",n=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig");t.exports=e.default})),Eo=wo((function(t,e){e.__esModule=!0,e.default=function(t){for(var e=arguments,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=e[o];for(;n.length>0;){var i=n.shift();if(!t[i])return;t=t[i]}return t},t.exports=e.default})),So=wo((function(t,e){e.__esModule=!0,e.default=function(t){for(var e=arguments,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=e[o];for(;n.length>0;){var i=n.shift();t[i]||(t[i]={}),t=t[i]}},t.exports=e.default})),Po=wo((function(t,e){e.__esModule=!0,e.default=function(t){var e="",r=t.indexOf("/*"),n=0;for(;r>=0;){e+=t.slice(n,r);var o=t.indexOf("*/",r+2);if(o<0)return e;n=o+2,r=t.indexOf("/*",n)}return e+=t.slice(n)},t.exports=e.default})),Oo=wo((function(t,e){e.__esModule=!0,e.stripComments=e.ensureObject=e.getProp=e.unesc=void 0;var r=s(_o);e.unesc=r.default;var n=s(Eo);e.getProp=n.default;var o=s(So);e.ensureObject=o.default;var i=s(Po);function s(t){return t&&t.__esModule?t:{default:t}}e.stripComments=i.default})),ko=wo((function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}e.__esModule=!0,e.default=void 0;var n=function t(e,r){if("object"!=typeof e||null===e)return e;var n=new e.constructor;for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];"parent"===o&&"object"===typeof i?r&&(n[o]=r):n[o]=i instanceof Array?i.map((function(e){return t(e,n)})):t(i,n)}return n},o=function(){function t(t){void 0===t&&(t={}),yo(this,t),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var e,o,i,s=t.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){var t=arguments;if(this.parent){for(var e in arguments)this.parent.insertBefore(this,t[e]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(t){void 0===t&&(t={});var e=n(this);for(var r in t)e[r]=t[r];return e},s.appendToPropertyAndEscape=function(t,e,r){this.raws||(this.raws={});var n=this[t],o=this.raws[t];this[t]=n+e,o||r!==e?this.raws[t]=(o||n)+r:delete this.raws[t]},s.setPropertyAndEscape=function(t,e,r){this.raws||(this.raws={}),this[t]=e,this.raws[t]=r},s.setPropertyWithoutEscape=function(t,e){this[t]=e,this.raws&&delete this.raws[t]},s.isAtPosition=function(t,e){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>t)&&(!(this.source.end.line<t)&&(!(this.source.start.line===t&&this.source.start.column>e)&&!(this.source.end.line===t&&this.source.end.column<e)))},s.stringifyProperty=function(t){return this.raws&&this.raws[t]||this[t]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},e=t,(o=[{key:"rawSpaceBefore",get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.before;return void 0===t&&(t=this.spaces&&this.spaces.before),t||""},set:function(t){(0,Oo.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=t}},{key:"rawSpaceAfter",get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.after;return void 0===t&&(t=this.spaces.after),t||""},set:function(t){(0,Oo.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=t}}])&&r(e.prototype,o),i&&r(e,i),t}();e.default=o,t.exports=e.default})),Io=wo((function(t,e){e.__esModule=!0,e.UNIVERSAL=e.ATTRIBUTE=e.CLASS=e.COMBINATOR=e.COMMENT=e.ID=e.NESTING=e.PSEUDO=e.ROOT=e.SELECTOR=e.STRING=e.TAG=void 0;e.TAG="tag";e.STRING="string";e.SELECTOR="selector";e.ROOT="root";e.PSEUDO="pseudo";e.NESTING="nesting";e.ID="id";e.COMMENT="comment";e.COMBINATOR="combinator";e.CLASS="class";e.ATTRIBUTE="attribute";e.UNIVERSAL="universal"})),xo=wo((function(t,e){e.__esModule=!0,e.default=void 0;var r,n=(r=ko)&&r.__esModule?r:{default:r},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}(Io);function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).nodes||(r.nodes=[]),r}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var s,a,u,c=n.prototype;return c.append=function(t){return t.parent=this,this.nodes.push(t),this},c.prepend=function(t){return t.parent=this,this.nodes.unshift(t),this},c.at=function(t){return this.nodes[t]},c.index=function(t){return"number"==typeof t?t:this.nodes.indexOf(t)},c.removeChild=function(t){var e;for(var r in t=this.index(t),this.at(t).parent=void 0,this.nodes.splice(t,1),this.indexes)(e=this.indexes[r])>=t&&(this.indexes[r]=e-1);return this},c.removeAll=function(){var t=this.nodes,e=Array.isArray(t),r=0;for(t=e?t:t[Symbol.iterator]();;){var n;if(e){if(r>=t.length)break;n=t[r++]}else{if((r=t.next()).done)break;n=r.value}n.parent=void 0}return this.nodes=[],this},c.empty=function(){return this.removeAll()},c.insertAfter=function(t,e){e.parent=this;var r,n=this.index(t);for(var o in this.nodes.splice(n+1,0,e),e.parent=this,this.indexes)n<=(r=this.indexes[o])&&(this.indexes[o]=r+1);return this},c.insertBefore=function(t,e){e.parent=this;var r,n=this.index(t);for(var o in this.nodes.splice(n,0,e),e.parent=this,this.indexes)(r=this.indexes[o])<=n&&(this.indexes[o]=r+1);return this},c._findChildAtPosition=function(t,e){var r=void 0;return this.each((function(n){if(n.atPosition){var o=n.atPosition(t,e);if(o)return r=o,!1}else if(n.isAtPosition(t,e))return r=n,!1})),r},c.atPosition=function(t,e){return this.isAtPosition(t,e)?this._findChildAtPosition(t,e)||this:void 0},c._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},yo(this.source.end,this.last.source.end))},c.each=function(t){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var e=this.lastEach;if(this.indexes[e]=0,this.length){for(var r,n;this.indexes[e]<this.length&&(r=this.indexes[e],!1!==(n=t(this.at(r),r)));)this.indexes[e]+=1;return delete this.indexes[e],!1!==n&&void 0}},c.walk=function(t){return this.each((function(e,r){var n=t(e,r);if(!1!==n&&e.length&&(n=e.walk(t)),!1===n)return!1}))},c.walkAttributes=function(t){var e=this;return this.walk((function(r){if(r.type===o.ATTRIBUTE)return t.call(e,r)}))},c.walkClasses=function(t){var e=this;return this.walk((function(r){if(r.type===o.CLASS)return t.call(e,r)}))},c.walkCombinators=function(t){var e=this;return this.walk((function(r){if(r.type===o.COMBINATOR)return t.call(e,r)}))},c.walkComments=function(t){var e=this;return this.walk((function(r){if(r.type===o.COMMENT)return t.call(e,r)}))},c.walkIds=function(t){var e=this;return this.walk((function(r){if(r.type===o.ID)return t.call(e,r)}))},c.walkNesting=function(t){var e=this;return this.walk((function(r){if(r.type===o.NESTING)return t.call(e,r)}))},c.walkPseudos=function(t){var e=this;return this.walk((function(r){if(r.type===o.PSEUDO)return t.call(e,r)}))},c.walkTags=function(t){var e=this;return this.walk((function(r){if(r.type===o.TAG)return t.call(e,r)}))},c.walkUniversals=function(t){var e=this;return this.walk((function(r){if(r.type===o.UNIVERSAL)return t.call(e,r)}))},c.split=function(t){var e=this,r=[];return this.reduce((function(n,o,i){var s=t.call(e,o);return r.push(o),s?(n.push(r),r=[]):i===e.length-1&&n.push(r),n}),[])},c.map=function(t){return this.nodes.map(t)},c.reduce=function(t,e){return this.nodes.reduce(t,e)},c.every=function(t){return this.nodes.every(t)},c.some=function(t){return this.nodes.some(t)},c.filter=function(t){return this.nodes.filter(t)},c.sort=function(t){return this.nodes.sort(t)},c.toString=function(){return this.map(String).join("")},s=n,(a=[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}])&&i(s.prototype,a),u&&i(s,u),n}(n.default);e.default=s,t.exports=e.default})),Do=wo((function(t,e){var r;function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}e.__esModule=!0,e.default=void 0;var o=function(t){var e,r;function o(e){var r;return(r=t.call(this,e)||this).type=Io.ROOT,r}r=t,(e=o).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,s,a,u=o.prototype;return u.toString=function(){var t=this.reduce((function(t,e){return t.push(String(e)),t}),[]).join(",");return this.trailingComma?t+",":t},u.error=function(t,e){return this._error?this._error(t,e):new Error(t)},i=o,(s=[{key:"errorGenerator",set:function(t){this._error=t}}])&&n(i.prototype,s),a&&n(i,a),o}(((r=xo)&&r.__esModule?r:{default:r}).default);e.default=o,t.exports=e.default})),Ao=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.SELECTOR,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(((r=xo)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),Lo={}.hasOwnProperty,No=/[ -,\.\/:-@\[-\^`\{-~]/,Co=/[ -,\.\/:-@\[\]\^`\{-~]/,Mo=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,jo=function t(e,r){"single"!=(r=function(t,e){if(!t)return e;var r={};for(var n in e)r[n]=Lo.call(t,n)?t[n]:e[n];return r}(r,t.options)).quotes&&"double"!=r.quotes&&(r.quotes="single");for(var n="double"==r.quotes?'"':"'",o=r.isIdentifier,i=e.charAt(0),s="",a=0,u=e.length;a<u;){var c=e.charAt(a++),l=c.charCodeAt(),f=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var p=e.charCodeAt(a++);56320==(64512&p)?l=((1023&l)<<10)+(1023&p)+65536:a--}f="\\"+l.toString(16).toUpperCase()+" "}else f=r.escapeEverything?No.test(c)?"\\"+c:"\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?"\\"+l.toString(16).toUpperCase()+" ":"\\"==c||!o&&('"'==c&&n==c||"'"==c&&n==c)||o&&Co.test(c)?"\\"+c:c;s+=f}return o&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(i)&&(s="\\3"+i+" "+s.slice(1))),s=s.replace(Mo,(function(t,e,r){return e&&e.length%2?t:(e||"")+r})),!o&&r.wrap?n+s+n:s};jo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},jo.version="3.0.0";var Ro=jo,Fo=wo((function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Ro);function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(t){var e,n,i,s,a;function u(e){var r;return(r=t.call(this,e)||this).type=Io.CLASS,r._constructed=!0,r}return n=t,(e=u).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,u.prototype.valueToString=function(){return"."+t.prototype.valueToString.call(this)},i=u,(s=[{key:"value",set:function(t){if(this._constructed){var e=(0,r.default)(t,{isIdentifier:!0});e!==t?((0,Oo.ensureObject)(this,"raws"),this.raws.value=e):this.raws&&delete this.raws.value}this._value=t},get:function(){return this._value}}])&&o(i.prototype,s),a&&o(i,a),u}(n(ko).default);e.default=i,t.exports=e.default})),qo=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.COMMENT,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(((r=ko)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),Go=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.ID,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.prototype.valueToString=function(){return"#"+t.prototype.valueToString.call(this)},n}(((r=ko)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),Uo=wo((function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Ro);function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s,a,u,c=i.prototype;return c.qualifiedName=function(t){return this.namespace?this.namespaceString+"|"+t:t},c.valueToString=function(){return this.qualifiedName(t.prototype.valueToString.call(this))},s=i,a=[{key:"namespace",get:function(){return this._namespace},set:function(t){if(!0===t||"*"===t||"&"===t)return this._namespace=t,void(this.raws&&delete this.raws.namespace);var e=(0,r.default)(t,{isIdentifier:!0});this._namespace=t,e!==t?((0,Oo.ensureObject)(this,"raws"),this.raws.namespace=e):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(t){this.namespace=t}},{key:"namespaceString",get:function(){if(this.namespace){var t=this.stringifyProperty("namespace");return!0===t?"":t}return""}}],a&&o(s.prototype,a),u&&o(s,u),i}(n(ko).default);e.default=i,t.exports=e.default})),Bo=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.TAG,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(((r=Uo)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),$o=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.STRING,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(((r=ko)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),Wo=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.PSEUDO,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.prototype.toString=function(){var t=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),t,this.rawSpaceAfter].join("")},n}(((r=xo)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),Yo=function(t,e){if(Vo("noDeprecation"))return t;var r=!1;return function(){if(!r){if(Vo("throwDeprecation"))throw new Error(e);Vo("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}};function Vo(t){try{if(!go.localStorage)return!1}catch(t){return!1}var e=go.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}var Ho=wo((function(t,e){e.__esModule=!0,e.unescapeValue=p,e.default=void 0;var r,n=s(Ro),o=s(_o),i=s(Uo);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var u=/^('|")(.*)\1$/,c=Yo((function(){}),"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),l=Yo((function(){}),"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),f=Yo((function(){}),"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function p(t){var e=!1,r=null,n=t,i=n.match(u);return i&&(r=i[1],n=i[2]),(n=(0,o.default)(n))!==t&&(e=!0),{deprecatedUsage:e,unescaped:n,quoteMark:r}}var h=function(t){var e,r;function o(e){var r;return void 0===e&&(e={}),r=t.call(this,function(t){if(void 0!==t.quoteMark)return t;if(void 0===t.value)return t;f();var e=p(t.value),r=e.quoteMark,n=e.unescaped;return t.raws||(t.raws={}),void 0===t.raws.value&&(t.raws.value=t.value),t.value=n,t.quoteMark=r,t}(e))||this,r.type=Io.ATTRIBUTE,r.raws=r.raws||{},Object.defineProperty(r.raws,"unquoted",{get:Yo((function(){return r.value}),"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Yo((function(){return r.value}),"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),r._constructed=!0,r}r=t,(e=o).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i,s,u,h=o.prototype;return h.getQuotedValue=function(t){void 0===t&&(t={});var e=this._determineQuoteMark(t),r=d[e];return(0,n.default)(this._value,r)},h._determineQuoteMark=function(t){return t.smart?this.smartQuoteMark(t):this.preferredQuoteMark(t)},h.setValue=function(t,e){void 0===e&&(e={}),this._value=t,this._quoteMark=this._determineQuoteMark(e),this._syncRawValue()},h.smartQuoteMark=function(t){var e=this.value,r=e.replace(/[^']/g,"").length,i=e.replace(/[^"]/g,"").length;if(r+i===0){var s=(0,n.default)(e,{isIdentifier:!0});if(s===e)return o.NO_QUOTE;var a=this.preferredQuoteMark(t);if(a===o.NO_QUOTE){var u=this.quoteMark||t.quoteMark||o.DOUBLE_QUOTE,c=d[u];if((0,n.default)(e,c).length<s.length)return u}return a}return i===r?this.preferredQuoteMark(t):i<r?o.DOUBLE_QUOTE:o.SINGLE_QUOTE},h.preferredQuoteMark=function(t){var e=t.preferCurrentQuoteMark?this.quoteMark:t.quoteMark;return void 0===e&&(e=t.preferCurrentQuoteMark?t.quoteMark:this.quoteMark),void 0===e&&(e=o.DOUBLE_QUOTE),e},h._syncRawValue=function(){var t=(0,n.default)(this._value,d[this.quoteMark]);t===this._value?this.raws&&delete this.raws.value:this.raws.value=t},h._handleEscapes=function(t,e){if(this._constructed){var r=(0,n.default)(e,{isIdentifier:!0});r!==e?this.raws[t]=r:delete this.raws[t]}},h._spacesFor=function(t){var e=this.spaces[t]||{},r=this.raws.spaces&&this.raws.spaces[t]||{};return yo({before:"",after:""},e,r)},h._stringFor=function(t,e,r){void 0===e&&(e=t),void 0===r&&(r=v);var n=this._spacesFor(e);return r(this.stringifyProperty(t),n)},h.offsetOf=function(t){var e=1,r=this._spacesFor("attribute");if(e+=r.before.length,"namespace"===t||"ns"===t)return this.namespace?e:-1;if("attributeNS"===t)return e;if(e+=this.namespaceString.length,this.namespace&&(e+=1),"attribute"===t)return e;e+=this.stringifyProperty("attribute").length,e+=r.after.length;var n=this._spacesFor("operator");e+=n.before.length;var o=this.stringifyProperty("operator");if("operator"===t)return o?e:-1;e+=o.length,e+=n.after.length;var i=this._spacesFor("value");e+=i.before.length;var s=this.stringifyProperty("value");return"value"===t?s?e:-1:(e+=s.length,e+=i.after.length,e+=this._spacesFor("insensitive").before.length,"insensitive"===t&&this.insensitive?e:-1)},h.toString=function(){var t=this,e=[this.rawSpaceBefore,"["];return e.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||""===this.value)&&(e.push(this._stringFor("operator")),e.push(this._stringFor("value")),e.push(this._stringFor("insensitiveFlag","insensitive",(function(e,r){return!(e.length>0)||t.quoted||0!==r.before.length||t.spaces.value&&t.spaces.value.after||(r.before=" "),v(e,r)})))),e.push("]"),e.push(this.rawSpaceAfter),e.join("")},i=o,(s=[{key:"quoted",get:function(){var t=this.quoteMark;return"'"===t||'"'===t},set:function(t){l()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(t){this._constructed?this._quoteMark!==t&&(this._quoteMark=t,this._syncRawValue()):this._quoteMark=t}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(t){if(this._constructed){var e=p(t),r=e.deprecatedUsage,n=e.unescaped,o=e.quoteMark;if(r&&c(),n===this._value&&o===this._quoteMark)return;this._value=n,this._quoteMark=o,this._syncRawValue()}else this._value=t}},{key:"attribute",get:function(){return this._attribute},set:function(t){this._handleEscapes("attribute",t),this._attribute=t}}])&&a(i.prototype,s),u&&a(i,u),o}(i.default);e.default=h,h.NO_QUOTE=null,h.SINGLE_QUOTE="'",h.DOUBLE_QUOTE='"';var d=((r={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},r);function v(t,e){return""+e.before+t+e.after}})),Qo=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.UNIVERSAL,r.value="*",r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(((r=Uo)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),Ko=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.COMBINATOR,r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(((r=ko)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),zo=wo((function(t,e){var r;e.__esModule=!0,e.default=void 0;var n=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).type=Io.NESTING,r.value="&",r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(((r=ko)&&r.__esModule?r:{default:r}).default);e.default=n,t.exports=e.default})),Xo=wo((function(t,e){e.__esModule=!0,e.default=function(t){return t.sort((function(t,e){return t-e}))},t.exports=e.default})),Jo=wo((function(t,e){e.__esModule=!0,e.combinator=e.word=e.comment=e.str=e.tab=e.newline=e.feed=e.cr=e.backslash=e.bang=e.slash=e.doubleQuote=e.singleQuote=e.space=e.greaterThan=e.pipe=e.equals=e.plus=e.caret=e.tilde=e.dollar=e.closeSquare=e.openSquare=e.closeParenthesis=e.openParenthesis=e.semicolon=e.colon=e.comma=e.at=e.asterisk=e.ampersand=void 0;e.ampersand=38;e.asterisk=42;e.at=64;e.comma=44;e.colon=58;e.semicolon=59;e.openParenthesis=40;e.closeParenthesis=41;e.openSquare=91;e.closeSquare=93;e.dollar=36;e.tilde=126;e.caret=94;e.plus=43;e.equals=61;e.pipe=124;e.greaterThan=62;e.space=32;e.singleQuote=39;e.doubleQuote=34;e.slash=47;e.bang=33;e.backslash=92;e.cr=13;e.feed=12;e.newline=10;e.tab=9;e.str=39;e.comment=-1;e.word=-2;e.combinator=-3})),Zo=wo((function(t,e){e.__esModule=!0,e.default=function(t){var e,r,n,i,s,a,u,c,f,p,h,d,v=[],y=t.css.valueOf(),g=y.length,b=-1,w=1,T=0,m=0;function _(e,r){if(!t.safe)throw t.error("Unclosed "+e,w,T-b,T);c=(y+=r).length-1}for(;T<g;){switch((e=y.charCodeAt(T))===o.newline&&(b=T,w+=1),e){case o.space:case o.tab:case o.newline:case o.cr:case o.feed:c=T;do{c+=1,(e=y.charCodeAt(c))===o.newline&&(b=c,w+=1)}while(e===o.space||e===o.newline||e===o.tab||e===o.cr||e===o.feed);d=o.space,n=w,r=c-b-1,m=c;break;case o.plus:case o.greaterThan:case o.tilde:case o.pipe:c=T;do{c+=1,e=y.charCodeAt(c)}while(e===o.plus||e===o.greaterThan||e===o.tilde||e===o.pipe);d=o.combinator,n=w,r=T-b,m=c;break;case o.asterisk:case o.ampersand:case o.bang:case o.comma:case o.equals:case o.dollar:case o.caret:case o.openSquare:case o.closeSquare:case o.colon:case o.semicolon:case o.openParenthesis:case o.closeParenthesis:d=e,n=w,r=T-b,m=(c=T)+1;break;case o.singleQuote:case o.doubleQuote:h=e===o.singleQuote?"'":'"',c=T;do{for(i=!1,-1===(c=y.indexOf(h,c+1))&&_("quote",h),s=c;y.charCodeAt(s-1)===o.backslash;)s-=1,i=!i}while(i);d=o.str,n=w,r=T-b,m=c+1;break;default:e===o.slash&&y.charCodeAt(T+1)===o.asterisk?(0===(c=y.indexOf("*/",T+2)+1)&&_("comment","*/"),(a=(u=y.slice(T,c+1).split("\n")).length-1)>0?(f=w+a,p=c-u[a].length):(f=w,p=b),d=o.comment,w=f,n=f,r=c-p):e===o.slash?(d=e,n=w,r=T-b,m=(c=T)+1):(c=l(y,T),d=o.word,n=w,r=c-b),m=c+1}v.push([d,w,T-b,n,r,T,m]),p&&(b=p,p=null),T=m}return v},e.FIELDS=void 0;var r,n,o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}(Jo);for(var i=((r={})[o.tab]=!0,r[o.newline]=!0,r[o.cr]=!0,r[o.feed]=!0,r),s=((n={})[o.space]=!0,n[o.tab]=!0,n[o.newline]=!0,n[o.cr]=!0,n[o.feed]=!0,n[o.ampersand]=!0,n[o.asterisk]=!0,n[o.bang]=!0,n[o.comma]=!0,n[o.colon]=!0,n[o.semicolon]=!0,n[o.openParenthesis]=!0,n[o.closeParenthesis]=!0,n[o.openSquare]=!0,n[o.closeSquare]=!0,n[o.singleQuote]=!0,n[o.doubleQuote]=!0,n[o.plus]=!0,n[o.pipe]=!0,n[o.tilde]=!0,n[o.greaterThan]=!0,n[o.equals]=!0,n[o.dollar]=!0,n[o.caret]=!0,n[o.slash]=!0,n),a={},u="0123456789abcdefABCDEF",c=0;c<u.length;c++)a[u.charCodeAt(c)]=!0;function l(t,e){var r,n=e;do{if(r=t.charCodeAt(n),s[r])return n-1;r===o.backslash?n=f(t,n)+1:n++}while(n<t.length);return n-1}function f(t,e){var r=e,n=t.charCodeAt(r+1);if(i[n]);else if(a[n]){var s=0;do{r++,s++,n=t.charCodeAt(r+1)}while(a[n]&&s<6);s<6&&n===o.space&&r++}else r++;return r}e.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6}})),ti=wo((function(t,e){e.__esModule=!0,e.default=void 0;var r,n,o=E(To),i=E(mo),s=E(Do),a=E(Ao),u=E(Fo),c=E(qo),l=E(Go),f=E(Bo),p=E($o),h=E(Wo),d=_(Ho),v=E(Qo),y=E(Ko),g=E(zo),b=E(Xo),w=_(Zo),T=_(Jo),m=_(Io);function _(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}function E(t){return t&&t.__esModule?t:{default:t}}function S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var P=((r={})[T.space]=!0,r[T.cr]=!0,r[T.feed]=!0,r[T.newline]=!0,r[T.tab]=!0,r),O=yo({},P,((n={})[T.comment]=!0,n));function k(t){return{line:t[w.FIELDS.START_LINE],column:t[w.FIELDS.START_COL]}}function I(t){return{line:t[w.FIELDS.END_LINE],column:t[w.FIELDS.END_COL]}}function x(t,e,r,n){return{start:{line:t,column:e},end:{line:r,column:n}}}function D(t){return x(t[w.FIELDS.START_LINE],t[w.FIELDS.START_COL],t[w.FIELDS.END_LINE],t[w.FIELDS.END_COL])}function A(t,e){if(t)return x(t[w.FIELDS.START_LINE],t[w.FIELDS.START_COL],e[w.FIELDS.END_LINE],e[w.FIELDS.END_COL])}function L(t,e){var r=t[e];if("string"==typeof r)return-1!==r.indexOf("\\")&&((0,Oo.ensureObject)(t,"raws"),t[e]=(0,Oo.unesc)(r),void 0===t.raws[e]&&(t.raws[e]=r)),t}var N=function(){function t(t,e){void 0===e&&(e={}),this.rule=t,this.options=yo({lossy:!1,safe:!1},e),this.position=0,this.css="string"==typeof this.rule?this.rule:this.rule.selector,this.tokens=(0,w.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var r=A(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new s.default({source:r}),this.root.errorGenerator=this._errorGenerator();var n=new a.default({source:{start:{line:1,column:1}}});this.root.append(n),this.current=n,this.loop()}var e,r,n,_=t.prototype;return _._errorGenerator=function(){var t=this;return function(e,r){return"string"==typeof t.rule?new Error(e):t.rule.error(e,r)}},_.attribute=function(){var t=[],e=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[w.FIELDS.TYPE]!==T.closeSquare;)t.push(this.currToken),this.position++;if(this.currToken[w.FIELDS.TYPE]!==T.closeSquare)return this.expected("closing square bracket",this.currToken[w.FIELDS.START_POS]);var r=t.length,n={source:x(e[1],e[2],this.currToken[3],this.currToken[4]),sourceIndex:e[w.FIELDS.START_POS]};if(1===r&&!~[T.word].indexOf(t[0][w.FIELDS.TYPE]))return this.expected("attribute",t[0][w.FIELDS.START_POS]);for(var o=0,i="",s="",a=null,u=!1;o<r;){var c=t[o],l=this.content(c),f=t[o+1];switch(c[w.FIELDS.TYPE]){case T.space:if(u=!0,this.options.lossy)break;if(a){(0,Oo.ensureObject)(n,"spaces",a);var p=n.spaces[a].after||"";n.spaces[a].after=p+l;var h=(0,Oo.getProp)(n,"raws","spaces",a,"after")||null;h&&(n.raws.spaces[a].after=h+l)}else i+=l,s+=l;break;case T.asterisk:if(f[w.FIELDS.TYPE]===T.equals)n.operator=l,a="operator";else if((!n.namespace||"namespace"===a&&!u)&&f){i&&((0,Oo.ensureObject)(n,"spaces","attribute"),n.spaces.attribute.before=i,i=""),s&&((0,Oo.ensureObject)(n,"raws","spaces","attribute"),n.raws.spaces.attribute.before=i,s=""),n.namespace=(n.namespace||"")+l,((0,Oo.getProp)(n,"raws","namespace")||null)&&(n.raws.namespace+=l),a="namespace"}u=!1;break;case T.dollar:if("value"===a){var v=(0,Oo.getProp)(n,"raws","value");n.value+="$",v&&(n.raws.value=v+"$");break}case T.caret:f[w.FIELDS.TYPE]===T.equals&&(n.operator=l,a="operator"),u=!1;break;case T.combinator:if("~"===l&&f[w.FIELDS.TYPE]===T.equals&&(n.operator=l,a="operator"),"|"!==l){u=!1;break}f[w.FIELDS.TYPE]===T.equals?(n.operator=l,a="operator"):n.namespace||n.attribute||(n.namespace=!0),u=!1;break;case T.word:if(f&&"|"===this.content(f)&&t[o+2]&&t[o+2][w.FIELDS.TYPE]!==T.equals&&!n.operator&&!n.namespace)n.namespace=l,a="namespace";else if(!n.attribute||"attribute"===a&&!u){i&&((0,Oo.ensureObject)(n,"spaces","attribute"),n.spaces.attribute.before=i,i=""),s&&((0,Oo.ensureObject)(n,"raws","spaces","attribute"),n.raws.spaces.attribute.before=s,s=""),n.attribute=(n.attribute||"")+l,((0,Oo.getProp)(n,"raws","attribute")||null)&&(n.raws.attribute+=l),a="attribute"}else if(!n.value&&""!==n.value||"value"===a&&!u){var y=(0,Oo.unesc)(l),g=(0,Oo.getProp)(n,"raws","value")||"",b=n.value||"";n.value=b+y,n.quoteMark=null,(y!==l||g)&&((0,Oo.ensureObject)(n,"raws"),n.raws.value=(g||b)+l),a="value"}else{var m="i"===l||"I"===l;!n.value&&""!==n.value||!n.quoteMark&&!u?(n.value||""===n.value)&&(a="value",n.value+=l,n.raws.value&&(n.raws.value+=l)):(n.insensitive=m,m&&"I"!==l||((0,Oo.ensureObject)(n,"raws"),n.raws.insensitiveFlag=l),a="insensitive",i&&((0,Oo.ensureObject)(n,"spaces","insensitive"),n.spaces.insensitive.before=i,i=""),s&&((0,Oo.ensureObject)(n,"raws","spaces","insensitive"),n.raws.spaces.insensitive.before=s,s=""))}u=!1;break;case T.str:if(!n.attribute||!n.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:c[w.FIELDS.START_POS]});var _=(0,d.unescapeValue)(l),E=_.unescaped,S=_.quoteMark;n.value=E,n.quoteMark=S,a="value",(0,Oo.ensureObject)(n,"raws"),n.raws.value=l,u=!1;break;case T.equals:if(!n.attribute)return this.expected("attribute",c[w.FIELDS.START_POS],l);if(n.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:c[w.FIELDS.START_POS]});n.operator=n.operator?n.operator+l:l,a="operator",u=!1;break;case T.comment:if(a)if(u||f&&f[w.FIELDS.TYPE]===T.space||"insensitive"===a){var P=(0,Oo.getProp)(n,"spaces",a,"after")||"",O=(0,Oo.getProp)(n,"raws","spaces",a,"after")||P;(0,Oo.ensureObject)(n,"raws","spaces",a),n.raws.spaces[a].after=O+l}else{var k=n[a]||"",I=(0,Oo.getProp)(n,"raws",a)||k;(0,Oo.ensureObject)(n,"raws"),n.raws[a]=I+l}else s+=l;break;default:return this.error('Unexpected "'+l+'" found.',{index:c[w.FIELDS.START_POS]})}o++}L(n,"attribute"),L(n,"namespace"),this.newNode(new d.default(n)),this.position++},_.parseWhitespaceEquivalentTokens=function(t){t<0&&(t=this.tokens.length);var e=this.position,r=[],n="",o=void 0;do{if(P[this.currToken[w.FIELDS.TYPE]])this.options.lossy||(n+=this.content());else if(this.currToken[w.FIELDS.TYPE]===T.comment){var i={};n&&(i.before=n,n=""),o=new c.default({value:this.content(),source:D(this.currToken),sourceIndex:this.currToken[w.FIELDS.START_POS],spaces:i}),r.push(o)}}while(++this.position<t);if(n)if(o)o.spaces.after=n;else if(!this.options.lossy){var s=this.tokens[e],a=this.tokens[this.position-1];r.push(new p.default({value:"",source:x(s[w.FIELDS.START_LINE],s[w.FIELDS.START_COL],a[w.FIELDS.END_LINE],a[w.FIELDS.END_COL]),sourceIndex:s[w.FIELDS.START_POS],spaces:{before:n,after:""}}))}return r},_.convertWhitespaceNodesToSpace=function(t,e){var r=this;void 0===e&&(e=!1);var n="",o="";return t.forEach((function(t){var i=r.lossySpace(t.spaces.before,e),s=r.lossySpace(t.rawSpaceBefore,e);n+=i+r.lossySpace(t.spaces.after,e&&0===i.length),o+=i+t.value+r.lossySpace(t.rawSpaceAfter,e&&0===s.length)})),o===n&&(o=void 0),{space:n,rawSpace:o}},_.isNamedCombinator=function(t){return void 0===t&&(t=this.position),this.tokens[t+0]&&this.tokens[t+0][w.FIELDS.TYPE]===T.slash&&this.tokens[t+1]&&this.tokens[t+1][w.FIELDS.TYPE]===T.word&&this.tokens[t+2]&&this.tokens[t+2][w.FIELDS.TYPE]===T.slash},_.namedCombinator=function(){if(this.isNamedCombinator()){var t=this.content(this.tokens[this.position+1]),e=(0,Oo.unesc)(t).toLowerCase(),r={};e!==t&&(r.value="/"+t+"/");var n=new y.default({value:"/"+e+"/",source:x(this.currToken[w.FIELDS.START_LINE],this.currToken[w.FIELDS.START_COL],this.tokens[this.position+2][w.FIELDS.END_LINE],this.tokens[this.position+2][w.FIELDS.END_COL]),sourceIndex:this.currToken[w.FIELDS.START_POS],raws:r});return this.position=this.position+3,n}this.unexpected()},_.combinator=function(){var t=this;if("|"===this.content())return this.namespace();var e=this.locateNextMeaningfulToken(this.position);if(!(e<0||this.tokens[e][w.FIELDS.TYPE]===T.comma)){var r,n=this.currToken,o=void 0;if(e>this.position&&(o=this.parseWhitespaceEquivalentTokens(e)),this.isNamedCombinator()?r=this.namedCombinator():this.currToken[w.FIELDS.TYPE]===T.combinator?(r=new y.default({value:this.content(),source:D(this.currToken),sourceIndex:this.currToken[w.FIELDS.START_POS]}),this.position++):P[this.currToken[w.FIELDS.TYPE]]||o||this.unexpected(),r){if(o){var i=this.convertWhitespaceNodesToSpace(o),s=i.space,a=i.rawSpace;r.spaces.before=s,r.rawSpaceBefore=a}}else{var u=this.convertWhitespaceNodesToSpace(o,!0),c=u.space,l=u.rawSpace;l||(l=c);var f={},p={spaces:{}};c.endsWith(" ")&&l.endsWith(" ")?(f.before=c.slice(0,c.length-1),p.spaces.before=l.slice(0,l.length-1)):c.startsWith(" ")&&l.startsWith(" ")?(f.after=c.slice(1),p.spaces.after=l.slice(1)):p.value=l,r=new y.default({value:" ",source:A(n,this.tokens[this.position-1]),sourceIndex:n[w.FIELDS.START_POS],spaces:f,raws:p})}return this.currToken&&this.currToken[w.FIELDS.TYPE]===T.space&&(r.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(r)}var h=this.parseWhitespaceEquivalentTokens(e);if(h.length>0){var d=this.current.last;if(d){var v=this.convertWhitespaceNodesToSpace(h),g=v.space,b=v.rawSpace;void 0!==b&&(d.rawSpaceAfter+=b),d.spaces.after+=g}else h.forEach((function(e){return t.newNode(e)}))}},_.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var t=new a.default({source:{start:k(this.tokens[this.position+1])}});this.current.parent.append(t),this.current=t,this.position++},_.comment=function(){var t=this.currToken;this.newNode(new c.default({value:this.content(),source:D(t),sourceIndex:t[w.FIELDS.START_POS]})),this.position++},_.error=function(t,e){throw this.root.error(t,e)},_.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[w.FIELDS.START_POS]})},_.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[w.FIELDS.START_POS])},_.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[w.FIELDS.START_POS])},_.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[w.FIELDS.START_POS])},_.namespace=function(){var t=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[w.FIELDS.TYPE]===T.word?(this.position++,this.word(t)):this.nextToken[w.FIELDS.TYPE]===T.asterisk?(this.position++,this.universal(t)):void 0},_.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))return void this.position++;var t=this.currToken;this.newNode(new g.default({value:this.content(),source:D(t),sourceIndex:t[w.FIELDS.START_POS]})),this.position++},_.parentheses=function(){var t=this.current.last,e=1;if(this.position++,t&&t.type===m.PSEUDO){var r=new a.default({source:{start:k(this.tokens[this.position-1])}}),n=this.current;for(t.append(r),this.current=r;this.position<this.tokens.length&&e;)this.currToken[w.FIELDS.TYPE]===T.openParenthesis&&e++,this.currToken[w.FIELDS.TYPE]===T.closeParenthesis&&e--,e?this.parse():(this.current.source.end=I(this.currToken),this.current.parent.source.end=I(this.currToken),this.position++);this.current=n}else{for(var o,i=this.currToken,s="(";this.position<this.tokens.length&&e;)this.currToken[w.FIELDS.TYPE]===T.openParenthesis&&e++,this.currToken[w.FIELDS.TYPE]===T.closeParenthesis&&e--,o=this.currToken,s+=this.parseParenthesisToken(this.currToken),this.position++;t?t.appendToPropertyAndEscape("value",s,s):this.newNode(new p.default({value:s,source:x(i[w.FIELDS.START_LINE],i[w.FIELDS.START_COL],o[w.FIELDS.END_LINE],o[w.FIELDS.END_COL]),sourceIndex:i[w.FIELDS.START_POS]}))}if(e)return this.expected("closing parenthesis",this.currToken[w.FIELDS.START_POS])},_.pseudo=function(){for(var t=this,e="",r=this.currToken;this.currToken&&this.currToken[w.FIELDS.TYPE]===T.colon;)e+=this.content(),this.position++;return this.currToken?this.currToken[w.FIELDS.TYPE]!==T.word?this.expected(["pseudo-class","pseudo-element"],this.currToken[w.FIELDS.START_POS]):void this.splitWord(!1,(function(n,o){e+=n,t.newNode(new h.default({value:e,source:A(r,t.currToken),sourceIndex:r[w.FIELDS.START_POS]})),o>1&&t.nextToken&&t.nextToken[w.FIELDS.TYPE]===T.openParenthesis&&t.error("Misplaced parenthesis.",{index:t.nextToken[w.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},_.space=function(){var t=this.content();0===this.position||this.prevToken[w.FIELDS.TYPE]===T.comma||this.prevToken[w.FIELDS.TYPE]===T.openParenthesis||this.current.nodes.every((function(t){return"comment"===t.type}))?(this.spaces=this.optionalSpace(t),this.position++):this.position===this.tokens.length-1||this.nextToken[w.FIELDS.TYPE]===T.comma||this.nextToken[w.FIELDS.TYPE]===T.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(t),this.position++):this.combinator()},_.string=function(){var t=this.currToken;this.newNode(new p.default({value:this.content(),source:D(t),sourceIndex:t[w.FIELDS.START_POS]})),this.position++},_.universal=function(t){var e=this.nextToken;if(e&&"|"===this.content(e))return this.position++,this.namespace();var r=this.currToken;this.newNode(new v.default({value:this.content(),source:D(r),sourceIndex:r[w.FIELDS.START_POS]}),t),this.position++},_.splitWord=function(t,e){for(var r=this,n=this.nextToken,s=this.content();n&&~[T.dollar,T.caret,T.equals,T.word].indexOf(n[w.FIELDS.TYPE]);){this.position++;var a=this.content();if(s+=a,a.lastIndexOf("\\")===a.length-1){var c=this.nextToken;c&&c[w.FIELDS.TYPE]===T.space&&(s+=this.requiredSpace(this.content(c)),this.position++)}n=this.nextToken}var p=(0,o.default)(s,".").filter((function(t){return"\\"!==s[t-1]})),h=(0,o.default)(s,"#").filter((function(t){return"\\"!==s[t-1]})),d=(0,o.default)(s,"#{");d.length&&(h=h.filter((function(t){return!~d.indexOf(t)})));var v=(0,b.default)((0,i.default)([0].concat(p,h)));v.forEach((function(n,o){var i,a=v[o+1]||s.length,c=s.slice(n,a);if(0===o&&e)return e.call(r,c,v.length);var d=r.currToken,y=d[w.FIELDS.START_POS]+v[o],g=x(d[1],d[2]+n,d[3],d[2]+(a-1));if(~p.indexOf(n)){var b={value:c.slice(1),source:g,sourceIndex:y};i=new u.default(L(b,"value"))}else if(~h.indexOf(n)){var T={value:c.slice(1),source:g,sourceIndex:y};i=new l.default(L(T,"value"))}else{var m={value:c,source:g,sourceIndex:y};L(m,"value"),i=new f.default(m)}r.newNode(i,t),t=null})),this.position++},_.word=function(t){var e=this.nextToken;return e&&"|"===this.content(e)?(this.position++,this.namespace()):this.splitWord(t)},_.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},_.parse=function(t){switch(this.currToken[w.FIELDS.TYPE]){case T.space:this.space();break;case T.comment:this.comment();break;case T.openParenthesis:this.parentheses();break;case T.closeParenthesis:t&&this.missingParenthesis();break;case T.openSquare:this.attribute();break;case T.dollar:case T.caret:case T.equals:case T.word:this.word();break;case T.colon:this.pseudo();break;case T.comma:this.comma();break;case T.asterisk:this.universal();break;case T.ampersand:this.nesting();break;case T.slash:case T.combinator:this.combinator();break;case T.str:this.string();break;case T.closeSquare:this.missingSquareBracket();case T.semicolon:this.missingBackslash();default:this.unexpected()}},_.expected=function(t,e,r){if(Array.isArray(t)){var n=t.pop();t=t.join(", ")+" or "+n}var o=/^[aeiou]/.test(t[0])?"an":"a";return r?this.error("Expected "+o+" "+t+', found "'+r+'" instead.',{index:e}):this.error("Expected "+o+" "+t+".",{index:e})},_.requiredSpace=function(t){return this.options.lossy?" ":t},_.optionalSpace=function(t){return this.options.lossy?"":t},_.lossySpace=function(t,e){return this.options.lossy?e?" ":"":t},_.parseParenthesisToken=function(t){var e=this.content(t);return t[w.FIELDS.TYPE]===T.space?this.requiredSpace(e):e},_.newNode=function(t,e){return e&&(/^ +$/.test(e)&&(this.options.lossy||(this.spaces=(this.spaces||"")+e),e=!0),t.namespace=e,L(t,"namespace")),this.spaces&&(t.spaces.before=this.spaces,this.spaces=""),this.current.append(t)},_.content=function(t){return void 0===t&&(t=this.currToken),this.css.slice(t[w.FIELDS.START_POS],t[w.FIELDS.END_POS])},_.locateNextMeaningfulToken=function(t){void 0===t&&(t=this.position+1);for(var e=t;e<this.tokens.length;){if(!O[this.tokens[e][w.FIELDS.TYPE]])return e;e++}return-1},e=t,(r=[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}])&&S(e.prototype,r),n&&S(e,n),t}();e.default=N,t.exports=e.default})),ei=wo((function(t,e){e.__esModule=!0,e.default=void 0;var r,n=(r=ti)&&r.__esModule?r:{default:r};var o=function(){function t(t,e){this.func=t||function(){},this.funcRes=null,this.options=e}var e=t.prototype;return e._shouldUpdateSelector=function(t,e){return void 0===e&&(e={}),!1!==yo({},this.options,e).updateSelector&&"string"!=typeof t},e._isLossy=function(t){return void 0===t&&(t={}),!1===yo({},this.options,t).lossless},e._root=function(t,e){return void 0===e&&(e={}),new n.default(t,this._parseOptions(e)).root},e._parseOptions=function(t){return{lossy:this._isLossy(t)}},e._run=function(t,e){var r=this;return void 0===e&&(e={}),new Promise((function(n,o){try{var i=r._root(t,e);Promise.resolve(r.func(i)).then((function(n){var o=void 0;return r._shouldUpdateSelector(t,e)&&(o=i.toString(),t.selector=o),{transform:n,root:i,string:o}})).then(n,o)}catch(t){return void o(t)}}))},e._runSync=function(t,e){void 0===e&&(e={});var r=this._root(t,e),n=this.func(r);if(n&&"function"==typeof n.then)throw new Error("Selector processor returned a promise to a synchronous call.");var o=void 0;return e.updateSelector&&"string"!=typeof t&&(o=r.toString(),t.selector=o),{transform:n,root:r,string:o}},e.ast=function(t,e){return this._run(t,e).then((function(t){return t.root}))},e.astSync=function(t,e){return this._runSync(t,e).root},e.transform=function(t,e){return this._run(t,e).then((function(t){return t.transform}))},e.transformSync=function(t,e){return this._runSync(t,e).transform},e.process=function(t,e){return this._run(t,e).then((function(t){return t.string||t.root.toString()}))},e.processSync=function(t,e){var r=this._runSync(t,e);return r.string||r.root.toString()},t}();e.default=o,t.exports=e.default})),ri=wo((function(t,e){e.__esModule=!0,e.universal=e.tag=e.string=e.selector=e.root=e.pseudo=e.nesting=e.id=e.comment=e.combinator=e.className=e.attribute=void 0;var r=d(Ho),n=d(Fo),o=d(Ko),i=d(qo),s=d(Go),a=d(zo),u=d(Wo),c=d(Do),l=d(Ao),f=d($o),p=d(Bo),h=d(Qo);function d(t){return t&&t.__esModule?t:{default:t}}e.attribute=function(t){return new r.default(t)};e.className=function(t){return new n.default(t)};e.combinator=function(t){return new o.default(t)};e.comment=function(t){return new i.default(t)};e.id=function(t){return new s.default(t)};e.nesting=function(t){return new a.default(t)};e.pseudo=function(t){return new u.default(t)};e.root=function(t){return new c.default(t)};e.selector=function(t){return new l.default(t)};e.string=function(t){return new f.default(t)};e.tag=function(t){return new p.default(t)};e.universal=function(t){return new h.default(t)}})),ni=wo((function(t,e){var r;e.__esModule=!0,e.isNode=o,e.isPseudoElement=b,e.isPseudoClass=function(t){return p(t)&&!b(t)},e.isContainer=function(t){return!(!o(t)||!t.walk)},e.isNamespace=function(t){return s(t)||y(t)},e.isUniversal=e.isTag=e.isString=e.isSelector=e.isRoot=e.isPseudo=e.isNesting=e.isIdentifier=e.isComment=e.isCombinator=e.isClassName=e.isAttribute=void 0;var n=((r={})[Io.ATTRIBUTE]=!0,r[Io.CLASS]=!0,r[Io.COMBINATOR]=!0,r[Io.COMMENT]=!0,r[Io.ID]=!0,r[Io.NESTING]=!0,r[Io.PSEUDO]=!0,r[Io.ROOT]=!0,r[Io.SELECTOR]=!0,r[Io.STRING]=!0,r[Io.TAG]=!0,r[Io.UNIVERSAL]=!0,r);function o(t){return"object"==typeof t&&n[t.type]}function i(t,e){return o(e)&&e.type===t}var s=i.bind(null,Io.ATTRIBUTE);e.isAttribute=s;var a=i.bind(null,Io.CLASS);e.isClassName=a;var u=i.bind(null,Io.COMBINATOR);e.isCombinator=u;var c=i.bind(null,Io.COMMENT);e.isComment=c;var l=i.bind(null,Io.ID);e.isIdentifier=l;var f=i.bind(null,Io.NESTING);e.isNesting=f;var p=i.bind(null,Io.PSEUDO);e.isPseudo=p;var h=i.bind(null,Io.ROOT);e.isRoot=h;var d=i.bind(null,Io.SELECTOR);e.isSelector=d;var v=i.bind(null,Io.STRING);e.isString=v;var y=i.bind(null,Io.TAG);e.isTag=y;var g=i.bind(null,Io.UNIVERSAL);function b(t){return p(t)&&t.value&&(t.value.startsWith("::")||":before"===t.value.toLowerCase()||":after"===t.value.toLowerCase())}e.isUniversal=g})),oi=wo((function(t,e){e.__esModule=!0,Object.keys(Io).forEach((function(t){"default"!==t&&"__esModule"!==t&&(e[t]=Io[t])})),Object.keys(ri).forEach((function(t){"default"!==t&&"__esModule"!==t&&(e[t]=ri[t])})),Object.keys(ni).forEach((function(t){"default"!==t&&"__esModule"!==t&&(e[t]=ni[t])}))})),ii=wo((function(t,e){e.__esModule=!0,e.default=void 0;var r,n=(r=ei)&&r.__esModule?r:{default:r},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}(oi);var i=function(t){return new n.default(t)};yo(i,o),delete i.__esModule;var s=i;e.default=s,t.exports=e.default})),si=bo(ii),ai=Element.prototype.matches||Element.prototype.msMatchesSelector;var ui=function(t){this._queue=[t],this.next()};function ci(t){for(var e=[],r=t.length-1;r>=0;r--){var n=t[r];if("combinator"===n.type)break;e.push(n)}return e.reverse()}function li(t){if("function"!=typeof t.assignedElements&&t.assignedSlot&&t.assignedSlot.parentElement)return t.assignedSlot.parentElement;if(t.parentElement)return t.parentElement;var e=t.getRootNode();return e!==document?e.host:void 0}function fi(t,e){for(var r=li(t);r;){if(hi(r,{nodes:e}))return r;r=li(r)}}function pi(t,e){for(var r=t.previousElementSibling;r;){if(hi(r,{nodes:e}))return r;r=r.previousElementSibling}}function hi(t,e){for(var r=e.nodes,n=r.length-1;n>=0;n--){var o=r[n];if("id"===o.type){if(t.id!==o.value)return!1}else if("class"===o.type){if(!t.classList.contains(o.value))return!1}else if("tag"===o.type){if(t.tagName.toLowerCase()!==o.value.toLowerCase())return!1}else if("pseudo"===o.type||"attribute"===o.type){if(!ai.call(t,o.sourceCode))return!1}else if("combinator"===o.type)if(" "===o.value){var i=ci(r.slice(0,n)),s=fi(t,i);if(!s)return!1;t=s,n-=i.length}else if(">"===o.value){var a=ci(r.slice(0,n)),u=li(t);if(!u||!hi(u,{nodes:a}))return!1;t=u,n-=1}else if("+"===o.value){var c=ci(r.slice(0,n)),l=t.previousElementSibling;if(!l||!hi(l,{nodes:c}))return!1;n-=c.length}else if("~"===o.value){var f=ci(r.slice(0,n));if(!pi(t,f))return!1;n-=f.length}}return!0}function di(t,e){for(var r=0,n=t.nodes;r<n.length;r+=1){var o=n[r];if("pseudo"===o.type||"attribute"===o.type){for(var i=e.split("\n"),s=o.source,a=s.start,u=s.end,c="",l=a.line-1;l<u.line;l++){var f=i[l],p=l===a.line-1?a.column:0,h=l===u.line-1?u.column:f.length;c+=f.substring(p,h)}o.sourceCode=("pseudo"===o.type?":":"[")+c}o.nodes&&di(o,e)}}function vi(t){if(11!==t.nodeType&&9!==t.nodeType)throw new TypeError("Provided context must be of type Document or ShadowRoot")}function yi(t){var e=si().astSync(t);return di(e,t),e}function gi(t,e,r){var n=yi(t);return function(t,e,r){for(var n,o=r?[]:null;n=t.next();)for(var i=0,s=e.nodes;i<s.length;i+=1)if(hi(n,s[i])){if(!r)return n;o.push(n)}return o}(new ui(e),n,r)}function bi(t,e){return void 0===e&&(e=document),gi(t,e,!1)}function wi(t,e){return void 0===e&&(e=document),gi(t,e,!0)}function Ti(t,e){!function(t){if(!t||1!==t.nodeType)throw new TypeError("Provided context must be of type Element")}(e);for(var r=0,n=yi(t).nodes;r<n.length;r+=1){if(hi(e,n[r]))return!0}return!1}ui.prototype.next=function(){var t=this._queue.pop();if(t){var e=function(t){return t.documentElement?[t.documentElement]:t.shadowRoot?t.shadowRoot.children:"function"==typeof t.assignedElements&&t.assignedNodes().length?t.assignedElements():t.children}(t);if(e)for(var r=e.length-1;r>=0;r--)this._queue.push(e[r])}return t};const mi=sn(Element.prototype,"assignedSlot").get,_i=sn(DocumentFragment.prototype,"children").get;function Ei(t){return qn(t)?t.assignedElements({flatten:!0}):Nn(t)?Zr(_i.call(Cn(t))):Zr(z.call(t))}var Si=xn([[Y,function(){return zn(this)}],[H,function(){return io(this)}],[X,function(){return null}],[z,function(){return function(t){const e=en(Qn.prototype);return An(e,Hn,t),Sn.call(t,((t,r)=>{nn(e,r,{value:t,enumerable:!0,configurable:!0})})),e}(Ei(this))}],[U,function(){return Ei(this).length}],[B,function(){return Ei(this)[0]}],[$,function(){const t=Ei(this);return t[t.length-1]}],[mi,function(){return null}],[j,function(t){return bi(t,this)}],[R,function(t){return Rn(wi(t,this))}],[L,function(t){const e=function(t,e){return void 0===e&&(e=document),function(t,e){for(var r,n=[],o=function(){var t=r.classList,o=e.every((function(e){return t.contains(e)}));o&&n.push(r)};r=t.next();)o();return n}(new ui(e),t.trim().split(/\s+/))}(t,this);return Rn(e)}],[D,function(t){const e=function(t,e){return void 0===e&&(e=document),function(t,e){for(var r,n=[],o=e.toLowerCase();r=t.next();)"*"!==e&&o!==r.tagName.toLowerCase()||n.push(r);return n}(new ui(e),t)}(t,this);return Rn(e)}],[A,function(t,e){const r=function(t,e,r){return void 0===r&&(r=document),function(t,e,r){var n,o=[];if(!e)return o;for(;n=t.next();){var i=n.outerHTML.toUpperCase().indexOf(n.tagName.toUpperCase()),s=r===n.outerHTML.substr(i,n.tagName.length)||"*"===r,a=n.namespaceURI===e||"*"===e;s&&a&&o.push(n)}return o}(new ui(r),t,e)}(t,e,this);return Rn(r)}],[N,function(t){return Ti(t,this)}],[C,function(t){return function(t,e){for(var r=0,n=yi(t).nodes;r<n.length;r+=1){var o=n[r];if(hi(e,o))return e;var i=fi(e,o.nodes);if(i)return i}return null}(t,this)}]]);const{attachShadow:Pi}=Element.prototype;function Oi(t){lo(t)}function ki(){const t=new Map;let e=Array.from(document.querySelectorAll("*")).filter((t=>Nn(t)));for(;e.length>0;){const r=e.shift();if(!t.has(r)){const n=Cn(r);if(n){t.set(r,n);const o=Array.from(n.querySelectorAll("*")).filter((t=>Nn(t)));e=e.concat(o)}}}return t}nn(Element.prototype,"attachShadow",{value:function(t){const e=Pi.call(this,t);return Reflect.ownKeys(Ii).forEach((t=>k.call(e,t,Oi))),e},enumerable:!0,writable:!0,configurable:!0});const Ii=en(null);function xi(t){Ii[t]||(Ii[t]=1,ki().forEach((e=>{k.call(e,t,Oi)})))}const Di=sn(Document.prototype,"activeElement").get;var Ai=xn([[Di,function(){let t=Di.call(this);for(;t;){const e=Cn(t);if(!e)return t;t=e.activeElement}return t}],[rt,function(t){return function(t,e){return void 0===e&&(e=document),vi(e),function(t,e){for(var r;r=t.next();)if(r.id===e)return r;return null}(new ui(e),t)}(t,this)}],[nt,function(t){return function(t,e){return void 0===e&&(e=document),vi(e),function(t,e){for(var r,n=[];r=t.next();)r.name===e&&n.push(r);return n}(new ui(e),t)}(t,this)}],[tt,function(t){return bi(t,this)}],[et,function(t){return wi(t,this)}]]);const Li=sn(window,"length").get;function Ni(t){if("object"==typeof t&&null!==t&&t.window===t)try{return Reflect.apply(Li,t,[]),!0}catch(t){}return!1}class Ci{defineProperty(t,e,r){return!0}deleteProperty(t,e){return!0}getOwnPropertyDescriptor(t,e){}isExtensible(t){return!0}ownKeys(t){return[]}preventExtensions(t){return!0}set(t,e,r,n){return!0}setPrototypeOf(t){return!1}}Reflect.setPrototypeOf(Ci.prototype,null);class Mi extends Ci{}const ji=sn(window,"frames").get;let Ri;var Fi=xn([[Li,function(){return window.length}],[ji,function(){return void 0===Ri&&(Ri=(()=>{const t=Reflect.getPrototypeOf(window),e=Reflect.getPrototypeOf(t),r=null==Li?void 0:Li.bind(window),n=function(){}.bind(window),o=t=>{const e="string"==typeof t?+t:-1;if(e>-1&&Number.isInteger(e)&&e<Reflect.apply(Li,window,[])){const e=window.hasOwnProperty(t)&&window[t];if(Ni(e))return e}},i=r=>{if("string"==typeof r&&!window.hasOwnProperty(r)&&!t.hasOwnProperty(r)){const t=e.hasOwnProperty(r)&&e[r];if(Ni(t))return t}},s=t=>"length"===t?Reflect.apply(Li,window,[]):o(t),a={},u={},c=new class extends Ci{get(t,e,r){const n=s(e);return void 0===n?Reflect.get(t,e,r):n}getOwnPropertyDescriptor(t,e){if("length"===e)return{__proto__:null,configurable:!0,enumerable:!0,get:r,set:n};const i=o(e);return i?{__proto__:null,configurable:!0,enumerable:!0,value:i,writable:!1}:void 0}has(t,e){return Reflect.has(t,e)||void 0!==s(e)}ownKeys(){const{length:t}=window,e=new Array(t+1);for(let r=0;r<t;r+=1)e[r]=`${r}`;return e[t]="length",e}},l=new Mi,f=new class extends Mi{get(t,e,r){const n=i(e);return void 0===n?Reflect.get(t,e,r):n}getOwnPropertyDescriptor(t,e){const r=i(e);return void 0===r?r:{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!1}}has(t,e){return Reflect.has(t,e)||void 0!==i(e)}ownKeys(){const t=[];let r=0;const n=an(e);Reflect.setPrototypeOf(n,null);for(const e in n)if("string"==typeof e){const o=n[e];o.hasOwnProperty("value")&&Ni(o.value)&&(t[r++]=e)}return t}},p=new Proxy(u,l),h=new Proxy({},f);return Reflect.setPrototypeOf(a,p),Reflect.setPrototypeOf(u,h),new Proxy(a,c)})()),Ri}]]);const{addEventListener:qi,dispatchEvent:Gi}=EventTarget.prototype;var Ui=xn([[qi,function(...t){const[e]=t;return xi(e),qi.apply(this,t)}]]);const{createElement:Bi}=document,{prepend:$i,append:Wi,appendChild:Yi,insertBefore:Vi,setAttribute:Hi}=Element.prototype,Qi=Reflect.getOwnPropertyDescriptor(Document.prototype,"body").get;const Ki={$oasisExternalDefineProperty$:{value:function(t,e){Reflect.defineProperty(window,t,e)}},$oasisExternalGetProperty$:{value:function(t){return window[t]}}};function zi(t){return t instanceof HTMLScriptElement}const Xi=function(t){const e=new Map;return t.forEach((t=>{t.forEach(((t,r)=>{e.set(r,t)}))})),e}([xn([[Yi,function(...t){const[e]=t;return zi(e)?(ss(e),e):Yi.apply(this,t)}],[Vi,function(...t){const[e]=t;return zi(e)?(ss(e),e):Vi.apply(this,t)}],[Wi,function(...t){const[e]=t;In(e)||!zi(e)?Wi.apply(this,t):ss(e)}],[$i,function(...t){const[e]=t;In(e)||!zi(e)?$i.apply(this,t):ss(e)}]]),Bn,$n,Vn,Si,fo,Ai,Ui,Fi]),Ji=function(t,e){if("object"!=typeof t||null===t)throw new fr("Missing global object virtualization target.");const r=Yr(t);if("object"!=typeof r||null===r)throw new fr("Invalid virtualization target.");const{distortionCallback:n,endowments:o,globalObjectShape:i,instrumentation:s,keepAlive:a=!0,liveTargetCallback:u,signSourceCallback:c}=dt({__proto__:null},e),l=function(t){var e;const r=at(Er,t,["iframe"]),n=null!=(e=at(Pr,t,[]))?e:at(Lr,t,[]);return at(Ir,r,[]).display="none",at(kr,r,["sandbox",Hr]),at(Ar,n,[r]),r}(r.document),f=at(xr,l,[]),p="object"!=typeof i||null===i;p&&null===Xr&&(Xr=Vr(Br(f)));let h=zr.get(r.document);void 0===h&&(h=function(t){if("object"!=typeof t||null===t)throw new fr("Missing globalObject.");return Cr(t)}(t),zr.set(r.document,h));const{eval:d}=f,v=new Fr({blueConnector:h,redConnector:jr(c?t=>d(c(t)):d),distortionCallback:n,instrumentation:s,liveTargetCallback:u,revokedProxyCallback:a?Jr:void 0,signSourceCallback:c});if(function(t,e){for(let r=0,{length:n}=qr;r<n;r+=1){const n=qr[r],o=e[n];o&&(o.prototype?t.link(n,"prototype"):t.link(n))}}(v,t),"undefined"==typeof globalThis?v.link("window","document"):v.link("document"),v.link("__proto__","__proto__","__proto__"),v.remapProto(r.document,r.DocumentProto),v.lazyRemapProperties(r.window,p?Xr:Vr(Br(i)),a?void 0:Wr),o){const t={};!function(t,e){const r=ft(e);for(let n=0,{length:o}=r;n<o;n+=1){const o=r[n];if(!Gr.includes(o)){const r=e[o];r&&(t[o]=dt({__proto__:null},r))}}}(t,o),ct(y=t,"document"),ct(y,"location"),ct(y,"top"),ct(y,"window"),ct(y,"chrome"),v.remapProperties(r.window,t)}var y;if(v.lazyRemapProperties(r.EventTargetProto,r.EventTargetProtoOwnKeys),a){const{document:t}=f;Qr.add(t),Qr.add(f),at(Sr,t,[]),at(_r,t,[])}else Tr&&d("window"),at(Or,l,[]);return v}(window,{distortionCallback:t=>Xi.get(t)||t,endowments:Ki,keepAlive:!0}),Zi=document.querySelector("iframe");if(On(Zi))throw new Error("Invalid Initialization");const ts=Zi.contentWindow.document,es=Qi.call(ts),rs=Reflect.getOwnPropertyDescriptor(HTMLIFrameElement.prototype,"contentWindow"),ns=rs.get;rs.get=function(){return this===Zi?null:ns.call(this)},Reflect.defineProperty(HTMLIFrameElement.prototype,"contentWindow",rs);const os=Reflect.getOwnPropertyDescriptor(HTMLIFrameElement.prototype,"contentDocument"),is=os.get;function ss(t){const{attributes:e,textContent:r}=t,n=Bi.call(ts,"script");for(let t=0,r=e.length;t<r;t+=1){const r=e.item(t);On(r)||0===r.name.indexOf("on")||Hi.call(n,r.name,r.value)}""!==ls&&e.getNamedItem("nonce")&&Hi.call(n,"nonce",ls),qi.call(n,"error",(e=>{Gi.call(t,new ErrorEvent("error",e))})),qi.call(n,"load",(()=>Gi.call(t,new Event("load")))),qi.call(ts,"securitypolicyviolation",(e=>{Gi.call(t,new SecurityPolicyViolationEvent("securitypolicyviolation",e))})),r&&(n.textContent=r),Yi.call(es,n)}function as(t){return On(t)||Pn(t)?[]:t.split(",").map((t=>t.trim())).filter((t=>cs.test(t)))}function us(t){t.evaluate||(t.evaluate=!0,as(t.exportedGlobalNames).forEach((t=>{Ji.evaluate(`\n 'use strict';\n const key = \`${t}\`;\n $oasisExternalDefineProperty$(key, {\n get() { return window[key]; },\n enumerable: true,\n configurable: true,\n });\n `)})),function(t){t.forEach((t=>{Ji.evaluate(`\n 'use strict';\n const key = \`${t}\`;\n Object.defineProperty(window, key, {\n get() { return $oasisExternalGetProperty$(key); },\n enumerable: true,\n configurable: true,\n });\n `)}))}(as(t.importedGlobalNames)),ss(t))}os.get=function(){return this===Zi?null:is.call(this)},Reflect.defineProperty(HTMLIFrameElement.prototype,"contentDocument",os),Ji.evaluate("\n // This initialization will prevent any of these APIs to be polyfilled\n // on the blue realm that can affect this sandbox.\n [\n HTMLElement.prototype,\n Element.prototype,\n Node.prototype,\n Event.prototype,\n Document.prototype,\n EventTarget.prototype,\n MutationObserver.prototype,\n HTMLCollection.prototype,\n NodeList.prototype,\n ShadowRoot.prototype,\n HTMLSlotElement.prototype,\n Text.prototype,\n ].forEach(o => delete o.$);\n");const cs=/^\S+$/;let ls="";class fs extends HTMLElement{static get observedAttributes(){return["nonce"]}constructor(){super();const t=document.createElement("slot");qi.call(t,"slotchange",(()=>us(this)),{once:!0}),this.attachShadow({mode:"open"}).appendChild(t)}get exportedGlobalNames(){return this.getAttribute("exported-global-names")}set exportedGlobalNames(t){On(t)||Pn(t)||""===t?this.removeAttribute("exported-global-names"):this.setAttribute("exported-global-names",t)}get importedGlobalNames(){return this.getAttribute("imported-global-names")}set importedGlobalNames(t){On(t)||Pn(t)||""===t?this.removeAttribute("imported-global-names"):this.setAttribute("imported-global-names",t)}get src(){var t;return null!==(t=this.getAttribute("src"))&&void 0!==t?t:""}set src(t){On(t)||Pn(t)||""===t?this.removeAttribute("src"):this.setAttribute("src",t)}attributeChangedCallback(t,e,r){"nonce"===t&&""!==r&&(ls=r)}connectedCallback(){this.setAttribute("hidden","true");const{src:t}=this;(t&&t.length||this.textContent)&&us(this)}}customElements.define("x-oasis-script",fs)}));
| //# sourceMappingURL=oasis.min.js.map
|
|