Greasy Fork is available in English.

PageSpy-2

一个网页调试的脚本做成的库

Este script não deve ser instalado diretamente. Este script é uma biblioteca de outros scripts para incluir com o diretório meta // @require https://update.greasyfork.org/scripts/483696/1375155/PageSpy-2.js

/**
 * @desc 初始化PageSpy
 * @version 1.8.6
 * @latestTime 2024.5.12
 * @link https://fastly.jsdelivr.net/npm/@huolala-tech/page-spy-browser
 */
/* prettier-ignore */
class initPageSpy {
  constructor(window = globalThis || self) {
    var PageSpy=function(){"use strict";function e(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function t(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),a={},s=function(e){try{return!!e()}catch(e){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),l=u,f=Function.prototype.call,h=l?f.bind(f):function(){return f.apply(f,arguments)},p={},d={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,m=g&&!d.call({1:2},1);p.f=m?function(e){var t=g(this,e);return!!t&&t.enumerable}:d;var y,v,A=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},b=u,w=Function.prototype,S=w.call,E=b&&w.bind.bind(S,S),k=b?E:function(e){return function(){return S.apply(e,arguments)}},P=k,x=P({}.toString),T=P("".slice),R=function(e){return T(x(e),8,-1)},O=s,L=R,I=Object,j=k("".split),C=O((function(){return!I("z").propertyIsEnumerable(0)}))?function(e){return"String"==L(e)?j(e,""):I(e)}:I,B=function(e){return null==e},U=B,D=TypeError,M=function(e){if(U(e))throw D("Can't call method on "+e);return e},q=C,_=M,N=function(e){return q(_(e))},H="object"==typeof document&&document.all,z={all:H,IS_HTMLDDA:void 0===H&&void 0!==H},F=z.all,Q=z.IS_HTMLDDA?function(e){return"function"==typeof e||e===F}:function(e){return"function"==typeof e},G=Q,W=z.all,V=z.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:G(e)||e===W}:function(e){return"object"==typeof e?null!==e:G(e)},J=i,X=Q,$=function(e,t){return arguments.length<2?(n=J[e],X(n)?n:void 0):J[e]&&J[e][t];var n},Y=k({}.isPrototypeOf),K=i,Z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ee=K.process,te=K.Deno,ne=ee&&ee.versions||te&&te.version,re=ne&&ne.v8;re&&(v=(y=re.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!v&&Z&&(!(y=Z.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=Z.match(/Chrome\/(\d+)/))&&(v=+y[1]);var oe=v,ie=oe,ae=s,se=i.String,ce=!!Object.getOwnPropertySymbols&&!ae((function(){var e=Symbol();return!se(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ie&&ie<41})),ue=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,le=$,fe=Q,he=Y,pe=Object,de=ue?function(e){return"symbol"==typeof e}:function(e){var t=le("Symbol");return fe(t)&&he(t.prototype,pe(e))},ge=String,me=function(e){try{return ge(e)}catch(e){return"Object"}},ye=Q,ve=me,Ae=TypeError,be=function(e){if(ye(e))return e;throw Ae(ve(e)+" is not a function")},we=be,Se=B,Ee=function(e,t){var n=e[t];return Se(n)?void 0:we(n)},ke=h,Pe=Q,xe=V,Te=TypeError,Re={exports:{}},Oe=i,Le=Object.defineProperty,Ie=function(e,t){try{Le(Oe,e,{value:t,configurable:!0,writable:!0})}catch(n){Oe[e]=t}return t},je=Ie,Ce="__core-js_shared__",Be=i[Ce]||je(Ce,{}),Ue=Be;(Re.exports=function(e,t){return Ue[e]||(Ue[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var De=Re.exports,Me=M,qe=Object,_e=function(e){return qe(Me(e))},Ne=_e,He=k({}.hasOwnProperty),ze=Object.hasOwn||function(e,t){return He(Ne(e),t)},Fe=k,Qe=0,Ge=Math.random(),We=Fe(1..toString),Ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+We(++Qe+Ge,36)},Je=De,Xe=ze,$e=Ve,Ye=ce,Ke=ue,Ze=i.Symbol,et=Je("wks"),tt=Ke?Ze.for||Ze:Ze&&Ze.withoutSetter||$e,nt=function(e){return Xe(et,e)||(et[e]=Ye&&Xe(Ze,e)?Ze[e]:tt("Symbol."+e)),et[e]},rt=h,ot=V,it=de,at=Ee,st=function(e,t){var n,r;if("string"===t&&Pe(n=e.toString)&&!xe(r=ke(n,e)))return r;if(Pe(n=e.valueOf)&&!xe(r=ke(n,e)))return r;if("string"!==t&&Pe(n=e.toString)&&!xe(r=ke(n,e)))return r;throw Te("Can't convert object to primitive value")},ct=TypeError,ut=nt("toPrimitive"),lt=function(e,t){if(!ot(e)||it(e))return e;var n,r=at(e,ut);if(r){if(void 0===t&&(t="default"),n=rt(r,e,t),!ot(n)||it(n))return n;throw ct("Can't convert object to primitive value")}return void 0===t&&(t="number"),st(e,t)},ft=de,ht=function(e){var t=lt(e,"string");return ft(t)?t:t+""},pt=V,dt=i.document,gt=pt(dt)&&pt(dt.createElement),mt=function(e){return gt?dt.createElement(e):{}},yt=mt,vt=!c&&!s((function(){return 7!=Object.defineProperty(yt("div"),"a",{get:function(){return 7}}).a})),At=c,bt=h,wt=p,St=A,Et=N,kt=ht,Pt=ze,xt=vt,Tt=Object.getOwnPropertyDescriptor;a.f=At?Tt:function(e,t){if(e=Et(e),t=kt(t),xt)try{return Tt(e,t)}catch(e){}if(Pt(e,t))return St(!bt(wt.f,e,t),e[t])};var Rt={},Ot=c&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=V,It=String,jt=TypeError,Ct=function(e){if(Lt(e))return e;throw jt(It(e)+" is not an object")},Bt=c,Ut=vt,Dt=Ot,Mt=Ct,qt=ht,_t=TypeError,Nt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,zt="enumerable",Ft="configurable",Qt="writable";Rt.f=Bt?Dt?function(e,t,n){if(Mt(e),t=qt(t),Mt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Qt in n&&!n[Qt]){var r=Ht(e,t);r&&r[Qt]&&(e[t]=n.value,n={configurable:Ft in n?n[Ft]:r[Ft],enumerable:zt in n?n[zt]:r[zt],writable:!1})}return Nt(e,t,n)}:Nt:function(e,t,n){if(Mt(e),t=qt(t),Mt(n),Ut)try{return Nt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _t("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Gt=Rt,Wt=A,Vt=c?function(e,t,n){return Gt.f(e,t,Wt(1,n))}:function(e,t,n){return e[t]=n,e},Jt={exports:{}},Xt=c,$t=ze,Yt=Function.prototype,Kt=Xt&&Object.getOwnPropertyDescriptor,Zt=$t(Yt,"name"),en={EXISTS:Zt,PROPER:Zt&&"something"===function(){}.name,CONFIGURABLE:Zt&&(!Xt||Xt&&Kt(Yt,"name").configurable)},tn=Q,nn=Be,rn=k(Function.toString);tn(nn.inspectSource)||(nn.inspectSource=function(e){return rn(e)});var on,an,sn,cn=nn.inspectSource,un=Q,ln=i.WeakMap,fn=un(ln)&&/native code/.test(String(ln)),hn=Ve,pn=De("keys"),dn=function(e){return pn[e]||(pn[e]=hn(e))},gn={},mn=fn,yn=i,vn=V,An=Vt,bn=ze,wn=Be,Sn=dn,En=gn,kn="Object already initialized",Pn=yn.TypeError,xn=yn.WeakMap;if(mn||wn.state){var Tn=wn.state||(wn.state=new xn);Tn.get=Tn.get,Tn.has=Tn.has,Tn.set=Tn.set,on=function(e,t){if(Tn.has(e))throw Pn(kn);return t.facade=e,Tn.set(e,t),t},an=function(e){return Tn.get(e)||{}},sn=function(e){return Tn.has(e)}}else{var Rn=Sn("state");En[Rn]=!0,on=function(e,t){if(bn(e,Rn))throw Pn(kn);return t.facade=e,An(e,Rn,t),t},an=function(e){return bn(e,Rn)?e[Rn]:{}},sn=function(e){return bn(e,Rn)}}var On={set:on,get:an,has:sn,enforce:function(e){return sn(e)?an(e):on(e,{})},getterFor:function(e){return function(t){var n;if(!vn(t)||(n=an(t)).type!==e)throw Pn("Incompatible receiver, "+e+" required");return n}}},Ln=k,In=s,jn=Q,Cn=ze,Bn=c,Un=en.CONFIGURABLE,Dn=cn,Mn=On.enforce,qn=On.get,_n=String,Nn=Object.defineProperty,Hn=Ln("".slice),zn=Ln("".replace),Fn=Ln([].join),Qn=Bn&&!In((function(){return 8!==Nn((function(){}),"length",{value:8}).length})),Gn=String(String).split("String"),Wn=Jt.exports=function(e,t,n){"Symbol("===Hn(_n(t),0,7)&&(t="["+zn(_n(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Cn(e,"name")||Un&&e.name!==t)&&(Bn?Nn(e,"name",{value:t,configurable:!0}):e.name=t),Qn&&n&&Cn(n,"arity")&&e.length!==n.arity&&Nn(e,"length",{value:n.arity});try{n&&Cn(n,"constructor")&&n.constructor?Bn&&Nn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Mn(e);return Cn(r,"source")||(r.source=Fn(Gn,"string"==typeof t?t:"")),e};Function.prototype.toString=Wn((function(){return jn(this)&&qn(this).source||Dn(this)}),"toString");var Vn=Jt.exports,Jn=Q,Xn=Rt,$n=Vn,Yn=Ie,Kn=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(Jn(n)&&$n(n,i,r),r.global)o?e[t]=n:Yn(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Xn.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Zn={},er=Math.ceil,tr=Math.floor,nr=Math.trunc||function(e){var t=+e;return(t>0?tr:er)(t)},rr=function(e){var t=+e;return t!=t||0===t?0:nr(t)},or=rr,ir=Math.max,ar=Math.min,sr=function(e,t){var n=or(e);return n<0?ir(n+t,0):ar(n,t)},cr=rr,ur=Math.min,lr=function(e){return e>0?ur(cr(e),9007199254740991):0},fr=function(e){return lr(e.length)},hr=N,pr=sr,dr=fr,gr=function(e){return function(t,n,r){var o,i=hr(t),a=dr(i),s=pr(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},mr={includes:gr(!0),indexOf:gr(!1)},yr=ze,vr=N,Ar=mr.indexOf,br=gn,wr=k([].push),Sr=function(e,t){var n,r=vr(e),o=0,i=[];for(n in r)!yr(br,n)&&yr(r,n)&&wr(i,n);for(;t.length>o;)yr(r,n=t[o++])&&(~Ar(i,n)||wr(i,n));return i},Er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kr=Sr,Pr=Er.concat("length","prototype");Zn.f=Object.getOwnPropertyNames||function(e){return kr(e,Pr)};var xr={};xr.f=Object.getOwnPropertySymbols;var Tr=$,Rr=Zn,Or=xr,Lr=Ct,Ir=k([].concat),jr=Tr("Reflect","ownKeys")||function(e){var t=Rr.f(Lr(e)),n=Or.f;return n?Ir(t,n(e)):t},Cr=ze,Br=jr,Ur=a,Dr=Rt,Mr=function(e,t,n){for(var r=Br(t),o=Dr.f,i=Ur.f,a=0;a<r.length;a++){var s=r[a];Cr(e,s)||n&&Cr(n,s)||o(e,s,i(t,s))}},qr=s,_r=Q,Nr=/#|\.prototype\./,Hr=function(e,t){var n=Fr[zr(e)];return n==Gr||n!=Qr&&(_r(t)?qr(t):!!t)},zr=Hr.normalize=function(e){return String(e).replace(Nr,".").toLowerCase()},Fr=Hr.data={},Qr=Hr.NATIVE="N",Gr=Hr.POLYFILL="P",Wr=Hr,Vr=i,Jr=a.f,Xr=Vt,$r=Kn,Yr=Ie,Kr=Mr,Zr=Wr,eo=function(e,t){var n,r,o,i,a,s=e.target,c=e.global,u=e.stat;if(n=c?Vr:u?Vr[s]||Yr(s,{}):(Vr[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Jr(n,r))&&a.value:n[r],!Zr(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Kr(i,o)}(e.sham||o&&o.sham)&&Xr(i,"sham",!0),$r(n,r,i,e)}},to=R,no=c,ro=Array.isArray||function(e){return"Array"==to(e)},oo=TypeError,io=Object.getOwnPropertyDescriptor,ao=no&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),so=TypeError,co=_e,uo=fr,lo=ao?function(e,t){if(ro(e)&&!io(e,"length").writable)throw oo("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},fo=function(e){if(e>9007199254740991)throw so("Maximum allowed index exceeded");return e};eo({target:"Array",proto:!0,arity:1,forced:s((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=co(this),n=uo(t),r=arguments.length;fo(n+r);for(var o=0;o<r;o++)t[n]=arguments[o],n++;return lo(t,n),n}});var ho=mt("span").classList,po=ho&&ho.constructor&&ho.constructor.prototype,go=po===Object.prototype?void 0:po,mo={},yo=Sr,vo=Er,Ao=Object.keys||function(e){return yo(e,vo)},bo=c,wo=Ot,So=Rt,Eo=Ct,ko=N,Po=Ao;mo.f=bo&&!wo?Object.defineProperties:function(e,t){Eo(e);for(var n,r=ko(t),o=Po(t),i=o.length,a=0;i>a;)So.f(e,n=o[a++],r[n]);return e};var xo,To=$("document","documentElement"),Ro=Ct,Oo=mo,Lo=Er,Io=gn,jo=To,Co=mt,Bo="prototype",Uo="script",Do=dn("IE_PROTO"),Mo=function(){},qo=function(e){return"<"+Uo+">"+e+"</"+Uo+">"},_o=function(e){e.write(qo("")),e.close();var t=e.parentWindow.Object;return e=null,t},No=function(){try{xo=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;No="undefined"!=typeof document?document.domain&&xo?_o(xo):(t=Co("iframe"),n="java"+Uo+":",t.style.display="none",jo.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(qo("document.F=Object")),e.close(),e.F):_o(xo);for(var r=Lo.length;r--;)delete No[Bo][Lo[r]];return No()};Io[Do]=!0;var Ho=Object.create||function(e,t){var n;return null!==e?(Mo[Bo]=Ro(e),n=new Mo,Mo[Bo]=null,n[Do]=e):n=No(),void 0===t?n:Oo.f(n,t)},zo=nt,Fo=Ho,Qo=Rt.f,Go=zo("unscopables"),Wo=Array.prototype;null==Wo[Go]&&Qo(Wo,Go,{configurable:!0,value:Fo(null)});var Vo,Jo,Xo,$o={},Yo=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ko=ze,Zo=Q,ei=_e,ti=Yo,ni=dn("IE_PROTO"),ri=Object,oi=ri.prototype,ii=ti?ri.getPrototypeOf:function(e){var t=ei(e);if(Ko(t,ni))return t[ni];var n=t.constructor;return Zo(n)&&t instanceof n?n.prototype:t instanceof ri?oi:null},ai=s,si=Q,ci=V,ui=ii,li=Kn,fi=nt("iterator"),hi=!1;[].keys&&("next"in(Xo=[].keys())?(Jo=ui(ui(Xo)))!==Object.prototype&&(Vo=Jo):hi=!0);var pi=!ci(Vo)||ai((function(){var e={};return Vo[fi].call(e)!==e}));pi&&(Vo={}),si(Vo[fi])||li(Vo,fi,(function(){return this}));var di={IteratorPrototype:Vo,BUGGY_SAFARI_ITERATORS:hi},gi=Rt.f,mi=ze,yi=nt("toStringTag"),vi=function(e,t,n){e&&!n&&(e=e.prototype),e&&!mi(e,yi)&&gi(e,yi,{configurable:!0,value:t})},Ai=di.IteratorPrototype,bi=Ho,wi=A,Si=vi,Ei=$o,ki=function(){return this},Pi=function(e,t,n,r){var o=t+" Iterator";return e.prototype=bi(Ai,{next:wi(+!r,n)}),Si(e,o,!1),Ei[o]=ki,e},xi=k,Ti=be,Ri=Q,Oi=String,Li=TypeError,Ii=function(e,t,n){try{return xi(Ti(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},ji=Ct,Ci=function(e){if("object"==typeof e||Ri(e))return e;throw Li("Can't set "+Oi(e)+" as a prototype")},Bi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ii(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ji(n),Ci(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ui=eo,Di=h,Mi=Q,qi=Pi,_i=ii,Ni=Bi,Hi=vi,zi=Vt,Fi=Kn,Qi=$o,Gi=en.PROPER,Wi=en.CONFIGURABLE,Vi=di.IteratorPrototype,Ji=di.BUGGY_SAFARI_ITERATORS,Xi=nt("iterator"),$i="keys",Yi="values",Ki="entries",Zi=function(){return this},ea=function(e,t,n,r,o,i,a){qi(n,t,r);var s,c,u,l=function(e){if(e===o&&g)return g;if(!Ji&&e in p)return p[e];switch(e){case $i:case Yi:case Ki:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[Xi]||p["@@iterator"]||o&&p[o],g=!Ji&&d||l(o),m="Array"==t&&p.entries||d;if(m&&(s=_i(m.call(new e)))!==Object.prototype&&s.next&&(_i(s)!==Vi&&(Ni?Ni(s,Vi):Mi(s[Xi])||Fi(s,Xi,Zi)),Hi(s,f,!0)),Gi&&o==Yi&&d&&d.name!==Yi&&(Wi?zi(p,"name",Yi):(h=!0,g=function(){return Di(d,this)})),o)if(c={values:l(Yi),keys:i?g:l($i),entries:l(Ki)},a)for(u in c)(Ji||h||!(u in p))&&Fi(p,u,c[u]);else Ui({target:t,proto:!0,forced:Ji||h},c);return p[Xi]!==g&&Fi(p,Xi,g,{name:o}),Qi[t]=g,c},ta=function(e,t){return{value:e,done:t}},na=N,ra=function(e){Wo[Go][e]=!0},oa=$o,ia=On,aa=Rt.f,sa=ea,ca=ta,ua=c,la="Array Iterator",fa=ia.set,ha=ia.getterFor(la),pa=sa(Array,"Array",(function(e,t){fa(this,{type:la,target:na(e),index:0,kind:t})}),(function(){var e=ha(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,ca(void 0,!0)):ca("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),da=oa.Arguments=oa.Array;if(ra("keys"),ra("values"),ra("entries"),ua&&"values"!==da.name)try{aa(da,"name",{value:"values"})}catch(e){}var ga=i,ma={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ya=go,va=pa,Aa=Vt,ba=nt,wa=ba("iterator"),Sa=ba("toStringTag"),Ea=va.values,ka=function(e,t){if(e){if(e[wa]!==Ea)try{Aa(e,wa,Ea)}catch(t){e[wa]=Ea}if(e[Sa]||Aa(e,Sa,t),ma[t])for(var n in va)if(e[n]!==va[n])try{Aa(e,n,va[n])}catch(t){e[n]=va[n]}}};for(var Pa in ma)ka(ga[Pa]&&ga[Pa].prototype,Pa);ka(ya,"DOMTokenList");var xa=function(e){return e&&e.Math===Math&&e},Ta=xa("object"==typeof globalThis&&globalThis)||xa("object"==typeof window&&window)||xa("object"==typeof self&&self)||xa("object"==typeof n&&n)||xa("object"==typeof n&&n)||function(){return this}()||Function("return this")(),Ra={},Oa=function(e){try{return!!e()}catch(e){return!0}},La=!Oa((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ia=!Oa((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ja=Ia,Ca=Function.prototype.call,Ba=ja?Ca.bind(Ca):function(){return Ca.apply(Ca,arguments)},Ua={},Da={}.propertyIsEnumerable,Ma=Object.getOwnPropertyDescriptor,qa=Ma&&!Da.call({1:2},1);Ua.f=qa?function(e){var t=Ma(this,e);return!!t&&t.enumerable}:Da;var _a,Na,Ha=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},za=Ia,Fa=Function.prototype,Qa=Fa.call,Ga=za&&Fa.bind.bind(Qa,Qa),Wa=za?Ga:function(e){return function(){return Qa.apply(e,arguments)}},Va=Wa,Ja=Va({}.toString),Xa=Va("".slice),$a=function(e){return Xa(Ja(e),8,-1)},Ya=Oa,Ka=$a,Za=Object,es=Wa("".split),ts=Ya((function(){return!Za("z").propertyIsEnumerable(0)}))?function(e){return"String"===Ka(e)?es(e,""):Za(e)}:Za,ns=function(e){return null==e},rs=ns,os=TypeError,is=function(e){if(rs(e))throw new os("Can't call method on "+e);return e},as=ts,ss=is,cs=function(e){return as(ss(e))},us="object"==typeof document&&document.all,ls=void 0===us&&void 0!==us?function(e){return"function"==typeof e||e===us}:function(e){return"function"==typeof e},fs=ls,hs=function(e){return"object"==typeof e?null!==e:fs(e)},ps=Ta,ds=ls,gs=function(e,t){return arguments.length<2?(n=ps[e],ds(n)?n:void 0):ps[e]&&ps[e][t];var n},ms=Wa({}.isPrototypeOf),ys=Ta,vs="undefined"!=typeof navigator&&String(navigator.userAgent)||"",As=ys.process,bs=ys.Deno,ws=As&&As.versions||bs&&bs.version,Ss=ws&&ws.v8;Ss&&(Na=(_a=Ss.split("."))[0]>0&&_a[0]<4?1:+(_a[0]+_a[1])),!Na&&vs&&(!(_a=vs.match(/Edge\/(\d+)/))||_a[1]>=74)&&(_a=vs.match(/Chrome\/(\d+)/))&&(Na=+_a[1]);var Es=Na,ks=Es,Ps=Oa,xs=Ta.String,Ts=!!Object.getOwnPropertySymbols&&!Ps((function(){var e=Symbol("symbol detection");return!xs(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ks&&ks<41})),Rs=Ts&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Os=gs,Ls=ls,Is=ms,js=Object,Cs=Rs?function(e){return"symbol"==typeof e}:function(e){var t=Os("Symbol");return Ls(t)&&Is(t.prototype,js(e))},Bs=String,Us=function(e){try{return Bs(e)}catch(e){return"Object"}},Ds=ls,Ms=Us,qs=TypeError,_s=function(e){if(Ds(e))return e;throw new qs(Ms(e)+" is not a function")},Ns=_s,Hs=ns,zs=function(e,t){var n=e[t];return Hs(n)?void 0:Ns(n)},Fs=Ba,Qs=ls,Gs=hs,Ws=TypeError,Vs={exports:{}},Js=Ta,Xs=Object.defineProperty,$s=function(e,t){try{Xs(Js,e,{value:t,configurable:!0,writable:!0})}catch(n){Js[e]=t}return t},Ys=Ta,Ks=$s,Zs="__core-js_shared__",ec=Vs.exports=Ys[Zs]||Ks(Zs,{});(ec.versions||(ec.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"});var tc=Vs.exports,nc=tc,rc=function(e,t){return nc[e]||(nc[e]=t||{})},oc=is,ic=Object,ac=function(e){return ic(oc(e))},sc=ac,cc=Wa({}.hasOwnProperty),uc=Object.hasOwn||function(e,t){return cc(sc(e),t)},lc=Wa,fc=0,hc=Math.random(),pc=lc(1..toString),dc=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pc(++fc+hc,36)},gc=rc,mc=uc,yc=dc,vc=Ts,Ac=Rs,bc=Ta.Symbol,wc=gc("wks"),Sc=Ac?bc.for||bc:bc&&bc.withoutSetter||yc,Ec=function(e){return mc(wc,e)||(wc[e]=vc&&mc(bc,e)?bc[e]:Sc("Symbol."+e)),wc[e]},kc=Ba,Pc=hs,xc=Cs,Tc=zs,Rc=function(e,t){var n,r;if("string"===t&&Qs(n=e.toString)&&!Gs(r=Fs(n,e)))return r;if(Qs(n=e.valueOf)&&!Gs(r=Fs(n,e)))return r;if("string"!==t&&Qs(n=e.toString)&&!Gs(r=Fs(n,e)))return r;throw new Ws("Can't convert object to primitive value")},Oc=TypeError,Lc=Ec("toPrimitive"),Ic=function(e,t){if(!Pc(e)||xc(e))return e;var n,r=Tc(e,Lc);if(r){if(void 0===t&&(t="default"),n=kc(r,e,t),!Pc(n)||xc(n))return n;throw new Oc("Can't convert object to primitive value")}return void 0===t&&(t="number"),Rc(e,t)},jc=Cs,Cc=function(e){var t=Ic(e,"string");return jc(t)?t:t+""},Bc=hs,Uc=Ta.document,Dc=Bc(Uc)&&Bc(Uc.createElement),Mc=function(e){return Dc?Uc.createElement(e):{}},qc=Mc,_c=!La&&!Oa((function(){return 7!==Object.defineProperty(qc("div"),"a",{get:function(){return 7}}).a})),Nc=La,Hc=Ba,zc=Ua,Fc=Ha,Qc=cs,Gc=Cc,Wc=uc,Vc=_c,Jc=Object.getOwnPropertyDescriptor;Ra.f=Nc?Jc:function(e,t){if(e=Qc(e),t=Gc(t),Vc)try{return Jc(e,t)}catch(e){}if(Wc(e,t))return Fc(!Hc(zc.f,e,t),e[t])};var Xc={},$c=La&&Oa((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Yc=hs,Kc=String,Zc=TypeError,eu=function(e){if(Yc(e))return e;throw new Zc(Kc(e)+" is not an object")},tu=La,nu=_c,ru=$c,ou=eu,iu=Cc,au=TypeError,su=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,uu="enumerable",lu="configurable",fu="writable";Xc.f=tu?ru?function(e,t,n){if(ou(e),t=iu(t),ou(n),"function"==typeof e&&"prototype"===t&&"value"in n&&fu in n&&!n[fu]){var r=cu(e,t);r&&r[fu]&&(e[t]=n.value,n={configurable:lu in n?n[lu]:r[lu],enumerable:uu in n?n[uu]:r[uu],writable:!1})}return su(e,t,n)}:su:function(e,t,n){if(ou(e),t=iu(t),ou(n),nu)try{return su(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new au("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var hu=Xc,pu=Ha,du=La?function(e,t,n){return hu.f(e,t,pu(1,n))}:function(e,t,n){return e[t]=n,e},gu={exports:{}},mu=La,yu=uc,vu=Function.prototype,Au=mu&&Object.getOwnPropertyDescriptor,bu=yu(vu,"name"),wu={EXISTS:bu,PROPER:bu&&"something"===function(){}.name,CONFIGURABLE:bu&&(!mu||mu&&Au(vu,"name").configurable)},Su=ls,Eu=tc,ku=Wa(Function.toString);Su(Eu.inspectSource)||(Eu.inspectSource=function(e){return ku(e)});var Pu,xu,Tu,Ru=Eu.inspectSource,Ou=ls,Lu=Ta.WeakMap,Iu=Ou(Lu)&&/native code/.test(String(Lu)),ju=dc,Cu=rc("keys"),Bu=function(e){return Cu[e]||(Cu[e]=ju(e))},Uu={},Du=Iu,Mu=Ta,qu=hs,_u=du,Nu=uc,Hu=tc,zu=Bu,Fu=Uu,Qu="Object already initialized",Gu=Mu.TypeError,Wu=Mu.WeakMap;if(Du||Hu.state){var Vu=Hu.state||(Hu.state=new Wu);Vu.get=Vu.get,Vu.has=Vu.has,Vu.set=Vu.set,Pu=function(e,t){if(Vu.has(e))throw new Gu(Qu);return t.facade=e,Vu.set(e,t),t},xu=function(e){return Vu.get(e)||{}},Tu=function(e){return Vu.has(e)}}else{var Ju=zu("state");Fu[Ju]=!0,Pu=function(e,t){if(Nu(e,Ju))throw new Gu(Qu);return t.facade=e,_u(e,Ju,t),t},xu=function(e){return Nu(e,Ju)?e[Ju]:{}},Tu=function(e){return Nu(e,Ju)}}var Xu={set:Pu,get:xu,has:Tu,enforce:function(e){return Tu(e)?xu(e):Pu(e,{})},getterFor:function(e){return function(t){var n;if(!qu(t)||(n=xu(t)).type!==e)throw new Gu("Incompatible receiver, "+e+" required");return n}}},$u=Wa,Yu=Oa,Ku=ls,Zu=uc,el=La,tl=wu.CONFIGURABLE,nl=Ru,rl=Xu.enforce,ol=Xu.get,il=String,al=Object.defineProperty,sl=$u("".slice),cl=$u("".replace),ul=$u([].join),ll=el&&!Yu((function(){return 8!==al((function(){}),"length",{value:8}).length})),fl=String(String).split("String"),hl=gu.exports=function(e,t,n){"Symbol("===sl(il(t),0,7)&&(t="["+cl(il(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Zu(e,"name")||tl&&e.name!==t)&&(el?al(e,"name",{value:t,configurable:!0}):e.name=t),ll&&n&&Zu(n,"arity")&&e.length!==n.arity&&al(e,"length",{value:n.arity});try{n&&Zu(n,"constructor")&&n.constructor?el&&al(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=rl(e);return Zu(r,"source")||(r.source=ul(fl,"string"==typeof t?t:"")),e};Function.prototype.toString=hl((function(){return Ku(this)&&ol(this).source||nl(this)}),"toString");var pl=gu.exports,dl=ls,gl=Xc,ml=pl,yl=$s,vl=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(dl(n)&&ml(n,i,r),r.global)o?e[t]=n:yl(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:gl.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Al={},bl=Math.ceil,wl=Math.floor,Sl=Math.trunc||function(e){var t=+e;return(t>0?wl:bl)(t)},El=function(e){var t=+e;return t!=t||0===t?0:Sl(t)},kl=El,Pl=Math.max,xl=Math.min,Tl=El,Rl=Math.min,Ol=function(e){var t=Tl(e);return t>0?Rl(t,9007199254740991):0},Ll=Ol,Il=function(e){return Ll(e.length)},jl=cs,Cl=function(e,t){var n=kl(e);return n<0?Pl(n+t,0):xl(n,t)},Bl=Il,Ul=function(e){return function(t,n,r){var o=jl(t),i=Bl(o);if(0===i)return!e&&-1;var a,s=Cl(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Dl={includes:Ul(!0),indexOf:Ul(!1)},Ml=uc,ql=cs,_l=Dl.indexOf,Nl=Uu,Hl=Wa([].push),zl=function(e,t){var n,r=ql(e),o=0,i=[];for(n in r)!Ml(Nl,n)&&Ml(r,n)&&Hl(i,n);for(;t.length>o;)Ml(r,n=t[o++])&&(~_l(i,n)||Hl(i,n));return i},Fl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ql=zl,Gl=Fl.concat("length","prototype");Al.f=Object.getOwnPropertyNames||function(e){return Ql(e,Gl)};var Wl={};Wl.f=Object.getOwnPropertySymbols;var Vl=gs,Jl=Al,Xl=Wl,$l=eu,Yl=Wa([].concat),Kl=Vl("Reflect","ownKeys")||function(e){var t=Jl.f($l(e)),n=Xl.f;return n?Yl(t,n(e)):t},Zl=uc,ef=Kl,tf=Ra,nf=Xc,rf=function(e,t,n){for(var r=ef(t),o=nf.f,i=tf.f,a=0;a<r.length;a++){var s=r[a];Zl(e,s)||n&&Zl(n,s)||o(e,s,i(t,s))}},of=Oa,af=ls,sf=/#|\.prototype\./,cf=function(e,t){var n=lf[uf(e)];return n===hf||n!==ff&&(af(t)?of(t):!!t)},uf=cf.normalize=function(e){return String(e).replace(sf,".").toLowerCase()},lf=cf.data={},ff=cf.NATIVE="N",hf=cf.POLYFILL="P",pf=cf,df=Ta,gf=Ra.f,mf=du,yf=vl,vf=$s,Af=rf,bf=pf,wf=function(e,t){var n,r,o,i,a,s=e.target,c=e.global,u=e.stat;if(n=c?df:u?df[s]||vf(s,{}):df[s]&&df[s].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=gf(n,r))&&a.value:n[r],!bf(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Af(i,o)}(e.sham||o&&o.sham)&&mf(i,"sham",!0),yf(n,r,i,e)}},Sf=Ia,Ef=Function.prototype,kf=Ef.apply,Pf=Ef.call,xf="object"==typeof Reflect&&Reflect.apply||(Sf?Pf.bind(kf):function(){return Pf.apply(kf,arguments)}),Tf=Wa,Rf=_s,Of=function(e,t,n){try{return Tf(Rf(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Lf=hs,If=function(e){return Lf(e)||null===e},jf=String,Cf=TypeError,Bf=Of,Uf=hs,Df=is,Mf=function(e){if(If(e))return e;throw new Cf("Can't set "+jf(e)+" as a prototype")},qf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Bf(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Df(n),Mf(r),Uf(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),_f=Xc.f,Nf=ls,Hf=hs,zf=qf,Ff={};Ff[Ec("toStringTag")]="z";var Qf="[object z]"===String(Ff),Gf=ls,Wf=$a,Vf=Ec("toStringTag"),Jf=Object,Xf="Arguments"===Wf(function(){return arguments}()),$f=Qf?Wf:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Jf(e),Vf))?n:Xf?Wf(t):"Object"===(r=Wf(t))&&Gf(t.callee)?"Arguments":r},Yf=$f,Kf=String,Zf=function(e){if("Symbol"===Yf(e))throw new TypeError("Cannot convert a Symbol value to a string");return Kf(e)},eh=Zf,th=hs,nh=du,rh=Error,oh=Wa("".replace),ih=String(new rh("zxcasd").stack),ah=/\n\s*at [^:]*:[^\n]*/,sh=ah.test(ih),ch=Ha,uh=!Oa((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ch(1,7)),7!==e.stack)})),lh=du,fh=function(e,t){if(sh&&"string"==typeof e&&!rh.prepareStackTrace)for(;t--;)e=oh(e,ah,"");return e},hh=uh,ph=Error.captureStackTrace,dh=gs,gh=uc,mh=du,yh=ms,vh=qf,Ah=rf,bh=function(e,t,n){n in e||_f(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},wh=function(e,t,n){var r,o;return zf&&Nf(r=t.constructor)&&r!==n&&Hf(o=r.prototype)&&o!==n.prototype&&zf(e,o),e},Sh=function(e,t){return void 0===e?arguments.length<2?"":t:eh(e)},Eh=function(e,t){th(t)&&"cause"in t&&nh(e,"cause",t.cause)},kh=function(e,t,n,r){hh&&(ph?ph(e,t):lh(e,"stack",fh(n,r)))},Ph=La,xh=wf,Th=xf,Rh=function(e,t,n,r){var o="stackTraceLimit",i=r?2:1,a=e.split("."),s=a[a.length-1],c=dh.apply(null,a);if(c){var u=c.prototype;if(gh(u,"cause")&&delete u.cause,!n)return c;var l=dh("Error"),f=t((function(e,t){var n=Sh(r?t:e,void 0),o=r?new c(e):new c;return void 0!==n&&mh(o,"message",n),kh(o,f,o.stack,2),this&&yh(u,this)&&wh(o,this,f),arguments.length>i&&Eh(o,arguments[i]),o}));f.prototype=u,"Error"!==s?vh?vh(f,l):Ah(f,l,{name:!0}):Ph&&o in c&&(bh(f,c,o),bh(f,c,"prepareStackTrace")),Ah(f,c);try{u.name!==s&&mh(u,"name",s),u.constructor=f}catch(e){}return f}},Oh="WebAssembly",Lh=Ta[Oh],Ih=7!==new Error("e",{cause:7}).cause,jh=function(e,t){var n={};n[e]=Rh(e,t,Ih),xh({global:!0,constructor:!0,arity:1,forced:Ih},n)},Ch=function(e,t){if(Lh&&Lh[e]){var n={};n[e]=Rh(Oh+"."+e,t,Ih),xh({target:Oh,stat:!0,constructor:!0,arity:1,forced:Ih},n)}};jh("Error",(function(e){return function(t){return Th(e,this,arguments)}})),jh("EvalError",(function(e){return function(t){return Th(e,this,arguments)}})),jh("RangeError",(function(e){return function(t){return Th(e,this,arguments)}})),jh("ReferenceError",(function(e){return function(t){return Th(e,this,arguments)}})),jh("SyntaxError",(function(e){return function(t){return Th(e,this,arguments)}})),jh("TypeError",(function(e){return function(t){return Th(e,this,arguments)}})),jh("URIError",(function(e){return function(t){return Th(e,this,arguments)}})),Ch("CompileError",(function(e){return function(t){return Th(e,this,arguments)}})),Ch("LinkError",(function(e){return function(t){return Th(e,this,arguments)}})),Ch("RuntimeError",(function(e){return function(t){return Th(e,this,arguments)}}));var Bh=eu,Uh=Oa,Dh=Ta.RegExp,Mh=Uh((function(){var e=Dh("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),qh=Mh||Uh((function(){return!Dh("a","y").sticky})),_h={BROKEN_CARET:Mh||Uh((function(){var e=Dh("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:qh,UNSUPPORTED_Y:Mh},Nh={},Hh=zl,zh=Fl,Fh=Object.keys||function(e){return Hh(e,zh)},Qh=La,Gh=$c,Wh=Xc,Vh=eu,Jh=cs,Xh=Fh;Nh.f=Qh&&!Gh?Object.defineProperties:function(e,t){Vh(e);for(var n,r=Jh(t),o=Xh(t),i=o.length,a=0;i>a;)Wh.f(e,n=o[a++],r[n]);return e};var $h,Yh=gs("document","documentElement"),Kh=eu,Zh=Nh,ep=Fl,tp=Uu,np=Yh,rp=Mc,op="prototype",ip="script",ap=Bu("IE_PROTO"),sp=function(){},cp=function(e){return"<"+ip+">"+e+"</"+ip+">"},up=function(e){e.write(cp("")),e.close();var t=e.parentWindow.Object;return e=null,t},lp=function(){try{$h=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;lp="undefined"!=typeof document?document.domain&&$h?up($h):(t=rp("iframe"),n="java"+ip+":",t.style.display="none",np.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(cp("document.F=Object")),e.close(),e.F):up($h);for(var r=ep.length;r--;)delete lp[op][ep[r]];return lp()};tp[ap]=!0;var fp,hp,pp=Object.create||function(e,t){var n;return null!==e?(sp[op]=Kh(e),n=new sp,sp[op]=null,n[ap]=e):n=lp(),void 0===t?n:Zh.f(n,t)},dp=Oa,gp=Ta.RegExp,mp=dp((function(){var e=gp(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),yp=Oa,vp=Ta.RegExp,Ap=yp((function(){var e=vp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),bp=Ba,wp=Wa,Sp=Zf,Ep=function(){var e=Bh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},kp=_h,Pp=pp,xp=Xu.get,Tp=mp,Rp=Ap,Op=rc("native-string-replace",String.prototype.replace),Lp=RegExp.prototype.exec,Ip=Lp,jp=wp("".charAt),Cp=wp("".indexOf),Bp=wp("".replace),Up=wp("".slice),Dp=(hp=/b*/g,bp(Lp,fp=/a/,"a"),bp(Lp,hp,"a"),0!==fp.lastIndex||0!==hp.lastIndex),Mp=kp.BROKEN_CARET,qp=void 0!==/()??/.exec("")[1];(Dp||qp||Mp||Tp||Rp)&&(Ip=function(e){var t,n,r,o,i,a,s,c=this,u=xp(c),l=Sp(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=bp(Ip,f,l),c.lastIndex=f.lastIndex,t;var h=u.groups,p=Mp&&c.sticky,d=bp(Ep,c),g=c.source,m=0,y=l;if(p&&(d=Bp(d,"y",""),-1===Cp(d,"g")&&(d+="g"),y=Up(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==jp(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",d)),qp&&(n=new RegExp("^"+g+"$(?!\\s)",d)),Dp&&(r=c.lastIndex),o=bp(Lp,p?n:c,y),p?o?(o.input=Up(o.input,m),o[0]=Up(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Dp&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),qp&&o&&o.length>1&&bp(Op,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&h)for(o.groups=a=Pp(null),i=0;i<h.length;i++)a[(s=h[i])[0]]=o[s[1]];return o});var _p=Ip;wf({target:"RegExp",proto:!0,forced:/./.exec!==_p},{exec:_p});var Np=Ba,Hp=vl,zp=_p,Fp=Oa,Qp=Ec,Gp=du,Wp=Qp("species"),Vp=RegExp.prototype,Jp=Wa,Xp=El,$p=Zf,Yp=is,Kp=Jp("".charAt),Zp=Jp("".charCodeAt),ed=Jp("".slice),td=function(e){return function(t,n){var r,o,i=$p(Yp(t)),a=Xp(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Zp(i,a))<55296||r>56319||a+1===s||(o=Zp(i,a+1))<56320||o>57343?e?Kp(i,a):r:e?ed(i,a,a+2):o-56320+(r-55296<<10)+65536}},nd={codeAt:td(!1),charAt:td(!0)},rd=nd.charAt,od=Wa,id=ac,ad=Math.floor,sd=od("".charAt),cd=od("".replace),ud=od("".slice),ld=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fd=/\$([$&'`]|\d{1,2})/g,hd=Ba,pd=eu,dd=ls,gd=$a,md=_p,yd=TypeError,vd=xf,Ad=Ba,bd=Wa,wd=function(e,t,n,r){var o=Qp(e),i=!Fp((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!Fp((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Wp]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=/./[o],c=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===zp||a===Vp.exec?i&&!o?{done:!0,value:Np(s,t,n,r)}:{done:!0,value:Np(e,n,t,r)}:{done:!1}}));Hp(String.prototype,e,c[0]),Hp(Vp,o,c[1])}r&&Gp(Vp[o],"sham",!0)},Sd=Oa,Ed=eu,kd=ls,Pd=ns,xd=El,Td=Ol,Rd=Zf,Od=is,Ld=function(e,t,n){return t+(n?rd(e,t).length:1)},Id=zs,jd=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,c=fd;return void 0!==o&&(o=id(o),c=ld),cd(i,c,(function(i,c){var u;switch(sd(c,0)){case"$":return"$";case"&":return e;case"`":return ud(t,0,n);case"'":return ud(t,a);case"<":u=o[ud(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>s){var f=ad(l/10);return 0===f?i:f<=s?void 0===r[f-1]?sd(c,1):r[f-1]+sd(c,1):i}u=r[l-1]}return void 0===u?"":u}))},Cd=function(e,t){var n=e.exec;if(dd(n)){var r=hd(n,e,t);return null!==r&&pd(r),r}if("RegExp"===gd(e))return hd(md,e,t);throw new yd("RegExp#exec called on incompatible receiver")},Bd=Ec("replace"),Ud=Math.max,Dd=Math.min,Md=bd([].concat),qd=bd([].push),_d=bd("".indexOf),Nd=bd("".slice),Hd="$0"==="a".replace(/./,"$0"),zd=!!/./[Bd]&&""===/./[Bd]("a","$0");wd("replace",(function(e,t,n){var r=zd?"$":"$0";return[function(e,n){var r=Od(this),o=Pd(e)?void 0:Id(e,Bd);return o?Ad(o,e,r,n):Ad(t,Rd(r),e,n)},function(e,o){var i=Ed(this),a=Rd(e);if("string"==typeof o&&-1===_d(o,r)&&-1===_d(o,"$<")){var s=n(t,i,a,o);if(s.done)return s.value}var c=kd(o);c||(o=Rd(o));var u,l=i.global;l&&(u=i.unicode,i.lastIndex=0);for(var f,h=[];null!==(f=Cd(i,a))&&(qd(h,f),l);){""===Rd(f[0])&&(i.lastIndex=Ld(a,Td(i.lastIndex),u))}for(var p,d="",g=0,m=0;m<h.length;m++){for(var y,v=Rd((f=h[m])[0]),A=Ud(Dd(xd(f.index),a.length),0),b=[],w=1;w<f.length;w++)qd(b,void 0===(p=f[w])?p:String(p));var S=f.groups;if(c){var E=Md([v],b,A,a);void 0!==S&&qd(E,S),y=Rd(vd(o,void 0,E))}else y=jd(v,a,A,b,S,o);A>=g&&(d+=Nd(a,g,A)+y,g=A+v.length)}return d+Nd(a,g)}]}),!!Sd((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Hd||zd);var Fd=$a,Qd=La,Gd=Array.isArray||function(e){return"Array"===Fd(e)},Wd=TypeError,Vd=Object.getOwnPropertyDescriptor,Jd=Qd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Xd=TypeError,$d=ac,Yd=Il,Kd=Jd?function(e,t){if(Gd(e)&&!Vd(e,"length").writable)throw new Wd("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Zd=function(e){if(e>9007199254740991)throw Xd("Maximum allowed index exceeded");return e};wf({target:"Array",proto:!0,arity:1,forced:Oa((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=$d(this),n=Yd(t),r=arguments.length;Zd(n+r);for(var o=0;o<r;o++)t[n]=arguments[o],n++;return Kd(t,n),n}});var eg=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},tg={"text/plain":"Text","text/html":"Url",default:"Text"};var ng=function(e,t){var n,r,o,i,a,s,c=!1;t||(t={}),n=t.debug||!1;try{if(o=eg(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=tg[t.format]||tg.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return c},rg=r(ng),og=_s,ig=ac,ag=ts,sg=Il,cg=TypeError,ug="Reduce of empty array with no initial value",lg=function(e){return function(t,n,r,o){var i=ig(t),a=ag(i),s=sg(i);if(og(n),0===s&&r<2)throw new cg(ug);var c=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(c in a){o=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw new cg(ug)}for(;e?c>=0:s>c;c+=u)c in a&&(o=n(o,a[c],c,i));return o}},fg={left:lg(!1),right:lg(!0)},hg=Oa,pg="process"===$a(Ta.process),dg=fg.left,gg=function(e,t){var n=[][e];return!!n&&hg((function(){n.call(null,t||function(){return 1},1)}))};wf({target:"Array",proto:!0,forced:!pg&&Es>79&&Es<83||!gg("reduce")},{reduce:function(e){var t=arguments.length;return dg(this,e,t,t>1?arguments[1]:void 0)}});var mg=pl,yg=Xc,vg=function(e,t,n){return n.get&&mg(n.get,t,{getter:!0}),n.set&&mg(n.set,t,{setter:!0}),yg.f(e,t,n)},Ag=$a,bg=TypeError,wg=Of(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==Ag(e))throw new bg("ArrayBuffer expected");return e.byteLength},Sg=wg,Eg=Wa(ArrayBuffer.prototype.slice),kg=function(e){if(0!==Sg(e))return!1;try{return Eg(e,0,0),!1}catch(e){return!0}},Pg=La,xg=vg,Tg=kg,Rg=ArrayBuffer.prototype;Pg&&!("detached"in Rg)&&xg(Rg,"detached",{configurable:!0,get:function(){return Tg(this)}});var Og,Lg,Ig,jg,Cg=El,Bg=Ol,Ug=RangeError,Dg=pg,Mg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,qg=!Mg&&!pg&&"object"==typeof window&&"object"==typeof document,_g=Oa,Ng=Es,Hg=qg,zg=Mg,Fg=pg,Qg=Ta.structuredClone,Gg=!!Qg&&!_g((function(){if(zg&&Ng>92||Fg&&Ng>94||Hg&&Ng>97)return!1;var e=new ArrayBuffer(8),t=Qg(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})),Wg=Ta,Vg=function(e){try{if(Dg)return Function('return require("'+e+'")')()}catch(e){}},Jg=Gg,Xg=Wg.structuredClone,$g=Wg.ArrayBuffer,Yg=Wg.MessageChannel,Kg=!1;if(Jg)Kg=function(e){Xg(e,{transfer:[e]})};else if($g)try{Yg||(Og=Vg("worker_threads"))&&(Yg=Og.MessageChannel),Yg&&(Lg=new Yg,Ig=new $g(2),jg=function(e){Lg.port1.postMessage(null,[e])},2===Ig.byteLength&&(jg(Ig),0===Ig.byteLength&&(Kg=jg)))}catch(e){}var Zg=Ta,em=Wa,tm=Of,nm=function(e){if(void 0===e)return 0;var t=Cg(e),n=Bg(t);if(t!==n)throw new Ug("Wrong length or index");return n},rm=kg,om=wg,im=Kg,am=Gg,sm=Zg.structuredClone,cm=Zg.ArrayBuffer,um=Zg.DataView,lm=Zg.TypeError,fm=Math.min,hm=cm.prototype,pm=um.prototype,dm=em(hm.slice),gm=tm(hm,"resizable","get"),mm=tm(hm,"maxByteLength","get"),ym=em(pm.getInt8),vm=em(pm.setInt8),Am=(am||im)&&function(e,t,n){var r,o=om(e),i=void 0===t?o:nm(t),a=!gm||!gm(e);if(rm(e))throw new lm("ArrayBuffer is detached");if(am&&(e=sm(e,{transfer:[e]}),o===i&&(n||a)))return e;if(o>=i&&(!n||a))r=dm(e,0,i);else{var s=n&&!a&&mm?{maxByteLength:mm(e)}:void 0;r=new cm(i,s);for(var c=new um(e),u=new um(r),l=fm(i,o),f=0;f<l;f++)vm(u,f,ym(c,f))}return am||im(e),r},bm=Am;bm&&wf({target:"ArrayBuffer",proto:!0},{transfer:function(){return bm(this,arguments.length?arguments[0]:void 0,!0)}});var wm=Am;wm&&wf({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return wm(this,arguments.length?arguments[0]:void 0,!1)}});var Sm=Mc("span").classList,Em=Sm&&Sm.constructor&&Sm.constructor.prototype,km=Em===Object.prototype?void 0:Em,Pm=Ec,xm=pp,Tm=Xc.f,Rm=Pm("unscopables"),Om=Array.prototype;void 0===Om[Rm]&&Tm(Om,Rm,{configurable:!0,value:xm(null)});var Lm,Im,jm,Cm={},Bm=!Oa((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Um=uc,Dm=ls,Mm=ac,qm=Bm,_m=Bu("IE_PROTO"),Nm=Object,Hm=Nm.prototype,zm=qm?Nm.getPrototypeOf:function(e){var t=Mm(e);if(Um(t,_m))return t[_m];var n=t.constructor;return Dm(n)&&t instanceof n?n.prototype:t instanceof Nm?Hm:null},Fm=Oa,Qm=ls,Gm=hs,Wm=zm,Vm=vl,Jm=Ec("iterator"),Xm=!1;[].keys&&("next"in(jm=[].keys())?(Im=Wm(Wm(jm)))!==Object.prototype&&(Lm=Im):Xm=!0);var $m=!Gm(Lm)||Fm((function(){var e={};return Lm[Jm].call(e)!==e}));$m&&(Lm={}),Qm(Lm[Jm])||Vm(Lm,Jm,(function(){return this}));var Ym={IteratorPrototype:Lm,BUGGY_SAFARI_ITERATORS:Xm},Km=Xc.f,Zm=uc,ey=Ec("toStringTag"),ty=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Zm(e,ey)&&Km(e,ey,{configurable:!0,value:t})},ny=Ym.IteratorPrototype,ry=pp,oy=Ha,iy=ty,ay=Cm,sy=function(){return this},cy=function(e,t,n,r){var o=t+" Iterator";return e.prototype=ry(ny,{next:oy(+!r,n)}),iy(e,o,!1),ay[o]=sy,e},uy=wf,ly=Ba,fy=ls,hy=cy,py=zm,dy=qf,gy=ty,my=du,yy=vl,vy=Cm,Ay=wu.PROPER,by=wu.CONFIGURABLE,wy=Ym.IteratorPrototype,Sy=Ym.BUGGY_SAFARI_ITERATORS,Ey=Ec("iterator"),ky="keys",Py="values",xy="entries",Ty=function(){return this},Ry=function(e,t,n,r,o,i,a){hy(n,t,r);var s,c,u,l=function(e){if(e===o&&g)return g;if(!Sy&&e&&e in p)return p[e];switch(e){case ky:case Py:case xy:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[Ey]||p["@@iterator"]||o&&p[o],g=!Sy&&d||l(o),m="Array"===t&&p.entries||d;if(m&&(s=py(m.call(new e)))!==Object.prototype&&s.next&&(py(s)!==wy&&(dy?dy(s,wy):fy(s[Ey])||yy(s,Ey,Ty)),gy(s,f,!0)),Ay&&o===Py&&d&&d.name!==Py&&(by?my(p,"name",Py):(h=!0,g=function(){return ly(d,this)})),o)if(c={values:l(Py),keys:i?g:l(ky),entries:l(xy)},a)for(u in c)(Sy||h||!(u in p))&&yy(p,u,c[u]);else uy({target:t,proto:!0,forced:Sy||h},c);return p[Ey]!==g&&yy(p,Ey,g,{name:o}),vy[t]=g,c},Oy=function(e,t){return{value:e,done:t}},Ly=cs,Iy=function(e){Om[Rm][e]=!0},jy=Cm,Cy=Xu,By=Xc.f,Uy=Ry,Dy=Oy,My=La,qy="Array Iterator",_y=Cy.set,Ny=Cy.getterFor(qy),Hy=Uy(Array,"Array",(function(e,t){_y(this,{type:qy,target:Ly(e),index:0,kind:t})}),(function(){var e=Ny(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Dy(void 0,!0);switch(e.kind){case"keys":return Dy(n,!1);case"values":return Dy(t[n],!1)}return Dy([n,t[n]],!1)}),"values"),zy=jy.Arguments=jy.Array;if(Iy("keys"),Iy("values"),Iy("entries"),My&&"values"!==zy.name)try{By(zy,"name",{value:"values"})}catch(e){}var Fy=Ta,Qy={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Gy=km,Wy=Hy,Vy=du,Jy=ty,Xy=Ec("iterator"),$y=Wy.values,Yy=function(e,t){if(e){if(e[Xy]!==$y)try{Vy(e,Xy,$y)}catch(t){e[Xy]=$y}if(Jy(e,t,!0),Qy[t])for(var n in Wy)if(e[n]!==Wy[n])try{Vy(e,n,Wy[n])}catch(t){e[n]=Wy[n]}}};for(var Ky in Qy)Yy(Fy[Ky]&&Fy[Ky].prototype,Ky);Yy(Gy,"DOMTokenList");var Zy=nd.charAt,ev=Zf,tv=Xu,nv=Ry,rv=Oy,ov="String Iterator",iv=tv.set,av=tv.getterFor(ov);nv(String,"String",(function(e){iv(this,{type:ov,string:ev(e),index:0})}),(function(){var e,t=av(this),n=t.string,r=t.index;return r>=n.length?rv(void 0,!0):(e=Zy(n,r),t.index+=e.length,rv(e,!1))}));var sv=Oa,cv=La,uv=Ec("iterator"),lv=!sv((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),!t.size&&!cv||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[uv]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),fv=$a,hv=Wa,pv=function(e){if("Function"===fv(e))return hv(e)},dv=_s,gv=Ia,mv=pv(pv.bind),yv=function(e,t){return dv(e),void 0===t?e:gv?mv(e,t):function(){return e.apply(t,arguments)}},vv=ms,Av=TypeError,bv=function(e,t){if(vv(t,e))return e;throw new Av("Incorrect invocation")},wv=La,Sv=Wa,Ev=Ba,kv=Oa,Pv=Fh,xv=Wl,Tv=Ua,Rv=ac,Ov=ts,Lv=Object.assign,Iv=Object.defineProperty,jv=Sv([].concat),Cv=!Lv||kv((function(){if(wv&&1!==Lv({b:1},Lv(Iv({},"a",{enumerable:!0,get:function(){Iv(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==Lv({},e)[n]||Pv(Lv({},t)).join("")!==r}))?function(e,t){for(var n=Rv(e),r=arguments.length,o=1,i=xv.f,a=Tv.f;r>o;)for(var s,c=Ov(arguments[o++]),u=i?jv(Pv(c),i(c)):Pv(c),l=u.length,f=0;l>f;)s=u[f++],wv&&!Ev(a,c,s)||(n[s]=c[s]);return n}:Lv,Bv=Ba,Uv=eu,Dv=zs,Mv=function(e,t,n){var r,o;Uv(e);try{if(!(r=Dv(e,"return"))){if("throw"===t)throw n;return n}r=Bv(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Uv(r),n},qv=eu,_v=Mv,Nv=Cm,Hv=Ec("iterator"),zv=Array.prototype,Fv=Wa,Qv=Oa,Gv=ls,Wv=$f,Vv=Ru,Jv=function(){},Xv=gs("Reflect","construct"),$v=/^\s*(?:class|function)\b/,Yv=Fv($v.exec),Kv=!$v.test(Jv),Zv=function(e){if(!Gv(e))return!1;try{return Xv(Jv,[],e),!0}catch(e){return!1}},eA=function(e){if(!Gv(e))return!1;switch(Wv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Kv||!!Yv($v,Vv(e))}catch(e){return!0}};eA.sham=!0;var tA=!Xv||Qv((function(){var e;return Zv(Zv.call)||!Zv(Object)||!Zv((function(){e=!0}))||e}))?eA:Zv,nA=La,rA=Xc,oA=Ha,iA=$f,aA=zs,sA=ns,cA=Cm,uA=Ec("iterator"),lA=function(e){if(!sA(e))return aA(e,uA)||aA(e,"@@iterator")||cA[iA(e)]},fA=Ba,hA=_s,pA=eu,dA=Us,gA=lA,mA=TypeError,yA=function(e,t){var n=arguments.length<2?gA(e):t;if(hA(n))return pA(fA(n,e));throw new mA(dA(e)+" is not iterable")},vA=yv,AA=Ba,bA=ac,wA=function(e,t,n,r){try{return r?t(qv(n)[0],n[1]):t(n)}catch(t){_v(e,"throw",t)}},SA=function(e){return void 0!==e&&(Nv.Array===e||zv[Hv]===e)},EA=tA,kA=Il,PA=function(e,t,n){nA?rA.f(e,t,oA(0,n)):e[t]=n},xA=yA,TA=lA,RA=Array,OA=Wa([].slice),LA=Wa,IA=2147483647,jA=/[^\0-\u007E]/,CA=/[.\u3002\uFF0E\uFF61]/g,BA="Overflow: input needs wider integers to process",UA=RangeError,DA=LA(CA.exec),MA=Math.floor,qA=String.fromCharCode,_A=LA("".charCodeAt),NA=LA([].join),HA=LA([].push),zA=LA("".replace),FA=LA("".split),QA=LA("".toLowerCase),GA=function(e){return e+22+75*(e<26)},WA=function(e,t,n){var r=0;for(e=n?MA(e/700):e>>1,e+=MA(e/t);e>455;)e=MA(e/35),r+=36;return MA(r+36*e/(e+38))},VA=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=_A(e,n++);if(o>=55296&&o<=56319&&n<r){var i=_A(e,n++);56320==(64512&i)?HA(t,((1023&o)<<10)+(1023&i)+65536):(HA(t,o),n--)}else HA(t,o)}return t}(e);var n,r,o=e.length,i=128,a=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&HA(t,qA(r));var c=t.length,u=c;for(c&&HA(t,"-");u<o;){var l=IA;for(n=0;n<e.length;n++)(r=e[n])>=i&&r<l&&(l=r);var f=u+1;if(l-i>MA((IA-a)/f))throw new UA(BA);for(a+=(l-i)*f,i=l,n=0;n<e.length;n++){if((r=e[n])<i&&++a>IA)throw new UA(BA);if(r===i){for(var h=a,p=36;;){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var g=h-d,m=36-d;HA(t,qA(GA(d+g%m))),h=MA(g/m),p+=36}HA(t,qA(GA(h))),s=WA(a,f,u===c),a=0,u++}}a++,i++}return NA(t,"")},JA=TypeError,XA=function(e,t){if(e<t)throw new JA("Not enough arguments");return e},$A=Ta,YA=La,KA=Object.getOwnPropertyDescriptor,ZA=vl,eb=OA,tb=Math.floor,nb=function(e,t){var n=e.length;if(n<8)for(var r,o,i=1;i<n;){for(o=i,r=e[i];o&&t(e[o-1],r)>0;)e[o]=e[--o];o!==i++&&(e[o]=r)}else for(var a=tb(n/2),s=nb(eb(e,0,a),t),c=nb(eb(e,a),t),u=s.length,l=c.length,f=0,h=0;f<u||h<l;)e[f+h]=f<u&&h<l?t(s[f],c[h])<=0?s[f++]:c[h++]:f<u?s[f++]:c[h++];return e},rb=wf,ob=Ta,ib=function(e){if(!YA)return $A[e];var t=KA($A,e);return t&&t.value},ab=Ba,sb=Wa,cb=La,ub=lv,lb=vl,fb=vg,hb=function(e,t,n){for(var r in t)ZA(e,r,t[r],n);return e},pb=ty,db=cy,gb=Xu,mb=bv,yb=ls,vb=uc,Ab=yv,bb=$f,wb=eu,Sb=hs,Eb=Zf,kb=pp,Pb=Ha,xb=yA,Tb=lA,Rb=Oy,Ob=XA,Lb=nb,Ib=Ec("iterator"),jb="URLSearchParams",Cb=jb+"Iterator",Bb=gb.set,Ub=gb.getterFor(jb),Db=gb.getterFor(Cb),Mb=ib("fetch"),qb=ib("Request"),_b=ib("Headers"),Nb=qb&&qb.prototype,Hb=_b&&_b.prototype,zb=ob.RegExp,Fb=ob.TypeError,Qb=ob.decodeURIComponent,Gb=ob.encodeURIComponent,Wb=sb("".charAt),Vb=sb([].join),Jb=sb([].push),Xb=sb("".replace),$b=sb([].shift),Yb=sb([].splice),Kb=sb("".split),Zb=sb("".slice),ew=/\+/g,tw=Array(4),nw=function(e){return tw[e-1]||(tw[e-1]=zb("((?:%[\\da-f]{2}){"+e+"})","gi"))},rw=function(e){try{return Qb(e)}catch(t){return e}},ow=function(e){var t=Xb(e,ew," "),n=4;try{return Qb(t)}catch(e){for(;n;)t=Xb(t,nw(n--),rw);return t}},iw=/[!'()~]|%20/g,aw={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},sw=function(e){return aw[e]},cw=function(e){return Xb(Gb(e),iw,sw)},uw=db((function(e,t){Bb(this,{type:Cb,target:Ub(e).entries,index:0,kind:t})}),jb,(function(){var e=Db(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Rb(void 0,!0);var r=t[n];switch(e.kind){case"keys":return Rb(r.key,!1);case"values":return Rb(r.value,!1)}return Rb([r.key,r.value],!1)}),!0),lw=function(e){this.entries=[],this.url=null,void 0!==e&&(Sb(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Wb(e,0)?Zb(e,1):e:Eb(e)))};lw.prototype={type:jb,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,a,s,c=this.entries,u=Tb(e);if(u)for(n=(t=xb(e,u)).next;!(r=ab(n,t)).done;){if(i=(o=xb(wb(r.value))).next,(a=ab(i,o)).done||(s=ab(i,o)).done||!ab(i,o).done)throw new Fb("Expected sequence with length 2");Jb(c,{key:Eb(a.value),value:Eb(s.value)})}else for(var l in e)vb(e,l)&&Jb(c,{key:l,value:Eb(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=Kb(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(n=Kb(t,"="),Jb(r,{key:ow($b(n)),value:ow(Vb(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Jb(n,cw(e.key)+"="+cw(e.value));return Vb(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fw=function(){mb(this,hw);var e=Bb(this,new lw(arguments.length>0?arguments[0]:void 0));cb||(this.size=e.entries.length)},hw=fw.prototype;if(hb(hw,{append:function(e,t){var n=Ub(this);Ob(arguments.length,2),Jb(n.entries,{key:Eb(e),value:Eb(t)}),cb||this.length++,n.updateURL()},delete:function(e){for(var t=Ub(this),n=Ob(arguments.length,1),r=t.entries,o=Eb(e),i=n<2?void 0:arguments[1],a=void 0===i?i:Eb(i),s=0;s<r.length;){var c=r[s];if(c.key!==o||void 0!==a&&c.value!==a)s++;else if(Yb(r,s,1),void 0!==a)break}cb||(this.size=r.length),t.updateURL()},get:function(e){var t=Ub(this).entries;Ob(arguments.length,1);for(var n=Eb(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=Ub(this).entries;Ob(arguments.length,1);for(var n=Eb(e),r=[],o=0;o<t.length;o++)t[o].key===n&&Jb(r,t[o].value);return r},has:function(e){for(var t=Ub(this).entries,n=Ob(arguments.length,1),r=Eb(e),o=n<2?void 0:arguments[1],i=void 0===o?o:Eb(o),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===i||s.value===i))return!0}return!1},set:function(e,t){var n=Ub(this);Ob(arguments.length,1);for(var r,o=n.entries,i=!1,a=Eb(e),s=Eb(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Yb(o,c--,1):(i=!0,r.value=s));i||Jb(o,{key:a,value:s}),cb||(this.size=o.length),n.updateURL()},sort:function(){var e=Ub(this);Lb(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Ub(this).entries,r=Ab(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new uw(this,"keys")},values:function(){return new uw(this,"values")},entries:function(){return new uw(this,"entries")}},{enumerable:!0}),lb(hw,Ib,hw.entries,{name:"entries"}),lb(hw,"toString",(function(){return Ub(this).serialize()}),{enumerable:!0}),cb&&fb(hw,"size",{get:function(){return Ub(this).entries.length},configurable:!0,enumerable:!0}),pb(fw,jb),rb({global:!0,constructor:!0,forced:!ub},{URLSearchParams:fw}),!ub&&yb(_b)){var pw=sb(Hb.has),dw=sb(Hb.set),gw=function(e){if(Sb(e)){var t,n=e.body;if(bb(n)===jb)return t=e.headers?new _b(e.headers):new _b,pw(t,"content-type")||dw(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),kb(e,{body:Pb(0,Eb(n)),headers:Pb(0,t)})}return e};if(yb(Mb)&&rb({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Mb(e,arguments.length>1?gw(arguments[1]):{})}}),yb(qb)){var mw=function(e){return mb(this,Nb),new qb(e,arguments.length>1?gw(arguments[1]):{})};Nb.constructor=mw,mw.prototype=Nb,rb({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:mw})}}var yw,vw=wf,Aw=La,bw=lv,ww=Ta,Sw=yv,Ew=Wa,kw=vl,Pw=vg,xw=bv,Tw=uc,Rw=Cv,Ow=function(e){var t=bA(e),n=EA(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=vA(o,r>2?arguments[2]:void 0));var a,s,c,u,l,f,h=TA(t),p=0;if(!h||this===RA&&SA(h))for(a=kA(t),s=n?new this(a):RA(a);a>p;p++)f=i?o(t[p],p):t[p],PA(s,p,f);else for(s=n?new this:[],l=(u=xA(t,h)).next;!(c=AA(l,u)).done;p++)f=i?wA(u,o,[c.value,p],!0):c.value,PA(s,p,f);return s.length=p,s},Lw=OA,Iw=nd.codeAt,jw=function(e){var t,n,r=[],o=FA(zA(QA(e),CA,"."),".");for(t=0;t<o.length;t++)n=o[t],HA(r,DA(jA,n)?"xn--"+VA(n):n);return NA(r,".")},Cw=Zf,Bw=ty,Uw=XA,Dw={URLSearchParams:fw,getState:Ub},Mw=Xu,qw=Mw.set,_w=Mw.getterFor("URL"),Nw=Dw.URLSearchParams,Hw=Dw.getState,zw=ww.URL,Fw=ww.TypeError,Qw=ww.parseInt,Gw=Math.floor,Ww=Math.pow,Vw=Ew("".charAt),Jw=Ew(/./.exec),Xw=Ew([].join),$w=Ew(1..toString),Yw=Ew([].pop),Kw=Ew([].push),Zw=Ew("".replace),eS=Ew([].shift),tS=Ew("".split),nS=Ew("".slice),rS=Ew("".toLowerCase),oS=Ew([].unshift),iS="Invalid scheme",aS="Invalid host",sS="Invalid port",cS=/[a-z]/i,uS=/[\d+-.a-z]/i,lS=/\d/,fS=/^0x/i,hS=/^[0-7]+$/,pS=/^\d+$/,dS=/^[\da-f]+$/i,gS=/[\0\t\n\r #%/:<>?@[\\\]^|]/,mS=/[\0\t\n\r #/:<>?@[\\\]^|]/,yS=/^[\u0000-\u0020]+/,vS=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,AS=/[\t\n\r]/g,bS=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)oS(t,e%256),e=Gw(e/256);return Xw(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=$w(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},wS={},SS=Rw({},wS,{" ":1,'"':1,"<":1,">":1,"`":1}),ES=Rw({},SS,{"#":1,"?":1,"{":1,"}":1}),kS=Rw({},ES,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),PS=function(e,t){var n=Iw(e,0);return n>32&&n<127&&!Tw(t,e)?e:encodeURIComponent(e)},xS={ftp:21,file:null,http:80,https:443,ws:80,wss:443},TS=function(e,t){var n;return 2===e.length&&Jw(cS,Vw(e,0))&&(":"===(n=Vw(e,1))||!t&&"|"===n)},RS=function(e){var t;return e.length>1&&TS(nS(e,0,2))&&(2===e.length||"/"===(t=Vw(e,2))||"\\"===t||"?"===t||"#"===t)},OS=function(e){return"."===e||"%2e"===rS(e)},LS={},IS={},jS={},CS={},BS={},US={},DS={},MS={},qS={},_S={},NS={},HS={},zS={},FS={},QS={},GS={},WS={},VS={},JS={},XS={},$S={},YS=function(e,t,n){var r,o,i,a=Cw(e);if(t){if(o=this.parse(a))throw new Fw(o);this.searchParams=null}else{if(void 0!==n&&(r=new YS(n,!0)),o=this.parse(a,null,r))throw new Fw(o);(i=Hw(new Nw)).bindURL(this),this.searchParams=i}};YS.prototype={type:"URL",parse:function(e,t,n){var r,o,i,a,s,c=this,u=t||LS,l=0,f="",h=!1,p=!1,d=!1;for(e=Cw(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=Zw(e,yS,""),e=Zw(e,vS,"$1")),e=Zw(e,AS,""),r=Ow(e);l<=r.length;){switch(o=r[l],u){case LS:if(!o||!Jw(cS,o)){if(t)return iS;u=jS;continue}f+=rS(o),u=IS;break;case IS:if(o&&(Jw(uS,o)||"+"===o||"-"===o||"."===o))f+=rS(o);else{if(":"!==o){if(t)return iS;f="",u=jS,l=0;continue}if(t&&(c.isSpecial()!==Tw(xS,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&xS[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?u=FS:c.isSpecial()&&n&&n.scheme===c.scheme?u=CS:c.isSpecial()?u=MS:"/"===r[l+1]?(u=BS,l++):(c.cannotBeABaseURL=!0,Kw(c.path,""),u=JS)}break;case jS:if(!n||n.cannotBeABaseURL&&"#"!==o)return iS;if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=Lw(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=$S;break}u="file"===n.scheme?FS:US;continue;case CS:if("/"!==o||"/"!==r[l+1]){u=US;continue}u=qS,l++;break;case BS:if("/"===o){u=_S;break}u=VS;continue;case US:if(c.scheme=n.scheme,o===yw)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lw(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())u=DS;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lw(n.path),c.query="",u=XS;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lw(n.path),c.path.length--,u=VS;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lw(n.path),c.query=n.query,c.fragment="",u=$S}break;case DS:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=VS;continue}u=_S}else u=qS;break;case MS:if(u=qS,"/"!==o||"/"!==Vw(f,l+1))continue;l++;break;case qS:if("/"!==o&&"\\"!==o){u=_S;continue}break;case _S:if("@"===o){h&&(f="%40"+f),h=!0,i=Ow(f);for(var g=0;g<i.length;g++){var m=i[g];if(":"!==m||d){var y=PS(m,kS);d?c.password+=y:c.username+=y}else d=!0}f=""}else if(o===yw||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(h&&""===f)return"Invalid authority";l-=Ow(f).length+1,f="",u=NS}else f+=o;break;case NS:case HS:if(t&&"file"===c.scheme){u=GS;continue}if(":"!==o||p){if(o===yw||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===f)return aS;if(t&&""===f&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(f))return a;if(f="",u=WS,t)return;continue}"["===o?p=!0:"]"===o&&(p=!1),f+=o}else{if(""===f)return aS;if(a=c.parseHost(f))return a;if(f="",u=zS,t===HS)return}break;case zS:if(!Jw(lS,o)){if(o===yw||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||t){if(""!==f){var v=Qw(f,10);if(v>65535)return sS;c.port=c.isSpecial()&&v===xS[c.scheme]?null:v,f=""}if(t)return;u=WS;continue}return sS}f+=o;break;case FS:if(c.scheme="file","/"===o||"\\"===o)u=QS;else{if(!n||"file"!==n.scheme){u=VS;continue}switch(o){case yw:c.host=n.host,c.path=Lw(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=Lw(n.path),c.query="",u=XS;break;case"#":c.host=n.host,c.path=Lw(n.path),c.query=n.query,c.fragment="",u=$S;break;default:RS(Xw(Lw(r,l),""))||(c.host=n.host,c.path=Lw(n.path),c.shortenPath()),u=VS;continue}}break;case QS:if("/"===o||"\\"===o){u=GS;break}n&&"file"===n.scheme&&!RS(Xw(Lw(r,l),""))&&(TS(n.path[0],!0)?Kw(c.path,n.path[0]):c.host=n.host),u=VS;continue;case GS:if(o===yw||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&TS(f))u=VS;else if(""===f){if(c.host="",t)return;u=WS}else{if(a=c.parseHost(f))return a;if("localhost"===c.host&&(c.host=""),t)return;f="",u=WS}continue}f+=o;break;case WS:if(c.isSpecial()){if(u=VS,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==yw&&(u=VS,"/"!==o))continue}else c.fragment="",u=$S;else c.query="",u=XS;break;case VS:if(o===yw||"/"===o||"\\"===o&&c.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(s=rS(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||Kw(c.path,"")):OS(f)?"/"===o||"\\"===o&&c.isSpecial()||Kw(c.path,""):("file"===c.scheme&&!c.path.length&&TS(f)&&(c.host&&(c.host=""),f=Vw(f,0)+":"),Kw(c.path,f)),f="","file"===c.scheme&&(o===yw||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)eS(c.path);"?"===o?(c.query="",u=XS):"#"===o&&(c.fragment="",u=$S)}else f+=PS(o,ES);break;case JS:"?"===o?(c.query="",u=XS):"#"===o?(c.fragment="",u=$S):o!==yw&&(c.path[0]+=PS(o,wS));break;case XS:t||"#"!==o?o!==yw&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":PS(o,wS)):(c.fragment="",u=$S);break;case $S:o!==yw&&(c.fragment+=PS(o,SS))}l++}},parseHost:function(e){var t,n,r;if("["===Vw(e,0)){if("]"!==Vw(e,e.length-1))return aS;if(t=function(e){var t,n,r,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return Vw(e,f)};if(":"===h()){if(":"!==Vw(e,1))return;f+=2,l=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=n=0;n<4&&Jw(dS,h());)t=16*t+Qw(h(),16),f++,n++;if("."===h()){if(0===n)return;if(f-=n,u>6)return;for(r=0;h();){if(o=null,r>0){if(!("."===h()&&r<4))return;f++}if(!Jw(lS,h()))return;for(;Jw(lS,h());){if(i=Qw(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++r&&4!==r||u++}if(4!==r)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!==u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!==u)return;return c}(nS(e,1,-1)),!t)return aS;this.host=t}else if(this.isSpecial()){if(e=jw(e),Jw(gS,e))return aS;if(t=function(e){var t,n,r,o,i,a,s,c=tS(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(o=c[r]))return e;if(i=10,o.length>1&&"0"===Vw(o,0)&&(i=Jw(fS,o)?16:8,o=nS(o,8===i?1:2)),""===o)a=0;else{if(!Jw(10===i?pS:8===i?hS:dS,o))return e;a=Qw(o,i)}Kw(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=Ww(256,5-t))return null}else if(a>255)return null;for(s=Yw(n),r=0;r<n.length;r++)s+=n[r]*Ww(256,3-r);return s}(e),null===t)return aS;this.host=t}else{if(Jw(mS,e))return aS;for(t="",n=Ow(e),r=0;r<n.length;r++)t+=PS(n[r],wS);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return Tw(xS,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&TS(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=bS(o),null!==i&&(u+=":"+i)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Xw(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new Fw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new KS(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+bS(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Cw(e)+":",LS)},getUsername:function(){return this.username},setUsername:function(e){var t=Ow(Cw(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=PS(t[n],kS)}},getPassword:function(){return this.password},setPassword:function(e){var t=Ow(Cw(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=PS(t[n],kS)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?bS(e):bS(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,NS)},getHostname:function(){var e=this.host;return null===e?"":bS(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,HS)},getPort:function(){var e=this.port;return null===e?"":Cw(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=Cw(e))?this.port=null:this.parse(e,zS))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Xw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,WS))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=Cw(e))?this.query=null:("?"===Vw(e,0)&&(e=nS(e,1)),this.query="",this.parse(e,XS)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=Cw(e))?("#"===Vw(e,0)&&(e=nS(e,1)),this.fragment="",this.parse(e,$S)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var KS=function(e){var t=xw(this,ZS),n=Uw(arguments.length,1)>1?arguments[1]:void 0,r=qw(t,new YS(e,!1,n));Aw||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},ZS=KS.prototype,eE=function(e,t){return{get:function(){return _w(this)[e]()},set:t&&function(e){return _w(this)[t](e)},configurable:!0,enumerable:!0}};if(Aw&&(Pw(ZS,"href",eE("serialize","setHref")),Pw(ZS,"origin",eE("getOrigin")),Pw(ZS,"protocol",eE("getProtocol","setProtocol")),Pw(ZS,"username",eE("getUsername","setUsername")),Pw(ZS,"password",eE("getPassword","setPassword")),Pw(ZS,"host",eE("getHost","setHost")),Pw(ZS,"hostname",eE("getHostname","setHostname")),Pw(ZS,"port",eE("getPort","setPort")),Pw(ZS,"pathname",eE("getPathname","setPathname")),Pw(ZS,"search",eE("getSearch","setSearch")),Pw(ZS,"searchParams",eE("getSearchParams")),Pw(ZS,"hash",eE("getHash","setHash"))),kw(ZS,"toJSON",(function(){return _w(this).serialize()}),{enumerable:!0}),kw(ZS,"toString",(function(){return _w(this).serialize()}),{enumerable:!0}),zw){var tE=zw.createObjectURL,nE=zw.revokeObjectURL;tE&&kw(KS,"createObjectURL",Sw(tE,zw)),nE&&kw(KS,"revokeObjectURL",Sw(nE,zw))}Bw(KS,"URL"),vw({global:!0,constructor:!0,forced:!bw,sham:!Aw},{URL:KS});var rE=Ba;wf({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return rE(URL.prototype.toString,this)}});var oE=La,iE=Wa,aE=vg,sE=URLSearchParams.prototype,cE=iE(sE.forEach);function uE(){return Math.random().toString(36).slice(2)}function lE(e){return Object.keys(e)}function fE(e){return Object.prototype.toString.call(e)}function hE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function pE(e){return"string"==typeof e}function dE(e){return"[object BigInt]"===fE(e)}function gE(e){return e instanceof Array}function mE(e){return"object"==typeof e&&null!==e}function yE(e){return e instanceof Blob}function vE(e){return e instanceof URLSearchParams}function AE(e){return e instanceof FormData}function bE(e){return e instanceof File}function wE(e){return e instanceof Document}oE&&!("size"in sE)&&aE(sE,"size",{get:function(){var e=0;return cE(this,(function(){e++})),e},configurable:!0,enumerable:!0});const SE=e=>"".concat(e),EE=e=>({ok:!0,value:e});function kE(e){return void 0===e?EE(SE(e)):null===e?EE(e):function(e){return"number"==typeof e}(e)&&(e===-1/0||e===1/0||Number.isNaN(e))?EE(SE(e)):dE(e)?EE("".concat(e,"n")):"symbol"==typeof e||"function"==typeof e?EE(SE(e.toString())):e instanceof Error?EE(SE(e.stack)):e===Object.prototype?{value:null,ok:!1}:e instanceof Object||"object"==typeof e?{value:e,ok:!1}:EE(e)}function PE(e){const{ok:t,value:n}=kE(e);return t?n:JSON.stringify(e,((e,t)=>kE(t).value),2)}function xE(e){return void 0===e?"undefined":null===e?"null":dE(e)?"bigint":e instanceof Object?e instanceof Error?"error":"function"==typeof e?"function":"object":typeof e}const TE=["log","info","error","warn","debug"].reduce(((e,t)=>(e[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];console[t]("[PageSpy] [".concat(t.toLocaleUpperCase(),"] "),...n)},e)),{});const RE="page-spy-room",OE="message",LE="broadcast",IE="ping",jE="updateRoomInfo";var CE=Object.freeze({__proto__:null,BROADCAST:LE,CLOSE:"close",CONNECT:"connect",ERROR:"error",JOIN:"join",LEAVE:"leave",MESSAGE:OE,PING:IE,PONG:"pong",UPDATE_ROOM_INFO:jE});function BE(e,t){return{role:"client",type:e,data:{...(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&{id:uE()},...t}}}var UE=Wa,DE=Set.prototype,ME={Set:Set,add:UE(DE.add),has:UE(DE.has),remove:UE(DE.delete),proto:DE},qE=ME.has,_E=function(e){return qE(e),e},NE=Ba,HE=function(e,t,n){for(var r,o,i=n?e:e.iterator,a=e.next;!(r=NE(a,i)).done;)if(void 0!==(o=t(r.value)))return o},zE=Wa,FE=HE,QE=ME.Set,GE=ME.proto,WE=zE(GE.forEach),VE=zE(GE.keys),JE=VE(new QE).next,XE=function(e,t,n){return n?FE({iterator:VE(e),next:JE},t):WE(e,t)},$E=XE,YE=ME.Set,KE=ME.add,ZE=function(e){var t=new YE;return $E(e,(function(e){KE(t,e)})),t},ek=Of(ME.proto,"size","get")||function(e){return e.size},tk=_s,nk=eu,rk=Ba,ok=El,ik=function(e){return{iterator:e,next:e.next,done:!1}},ak="Invalid size",sk=RangeError,ck=TypeError,uk=Math.max,lk=function(e,t){this.set=e,this.size=uk(t,0),this.has=tk(e.has),this.keys=tk(e.keys)};lk.prototype={getIterator:function(){return ik(nk(rk(this.keys,this.set)))},includes:function(e){return rk(this.has,this.set,e)}};var fk=function(e){nk(e);var t=+e.size;if(t!=t)throw new ck(ak);var n=ok(t);if(n<0)throw new sk(ak);return new lk(e,n)},hk=_E,pk=ZE,dk=ek,gk=fk,mk=XE,yk=HE,vk=ME.has,Ak=ME.remove,bk=gs,wk=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Sk=function(e){var t=bk("Set");try{(new t)[e](wk(0));try{return(new t)[e](wk(-1)),!1}catch(e){return!0}}catch(e){return!1}},Ek=function(e){var t=hk(this),n=gk(e),r=pk(t);return dk(t)<=n.size?mk(t,(function(e){n.includes(e)&&Ak(r,e)})):yk(n.getIterator(),(function(e){vk(t,e)&&Ak(r,e)})),r};wf({target:"Set",proto:!0,real:!0,forced:!Sk("difference")},{difference:Ek});var kk=_E,Pk=ek,xk=fk,Tk=XE,Rk=HE,Ok=ME.Set,Lk=ME.add,Ik=ME.has,jk=Oa,Ck=function(e){var t=kk(this),n=xk(e),r=new Ok;return Pk(t)>n.size?Rk(n.getIterator(),(function(e){Ik(t,e)&&Lk(r,e)})):Tk(t,(function(e){n.includes(e)&&Lk(r,e)})),r};wf({target:"Set",proto:!0,real:!0,forced:!Sk("intersection")||jk((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:Ck});var Bk=_E,Uk=ME.has,Dk=ek,Mk=fk,qk=XE,_k=HE,Nk=Mv,Hk=function(e){var t=Bk(this),n=Mk(e);if(Dk(t)<=n.size)return!1!==qk(t,(function(e){if(n.includes(e))return!1}),!0);var r=n.getIterator();return!1!==_k(r,(function(e){if(Uk(t,e))return Nk(r,"normal",!1)}))};wf({target:"Set",proto:!0,real:!0,forced:!Sk("isDisjointFrom")},{isDisjointFrom:Hk});var zk=_E,Fk=ek,Qk=XE,Gk=fk,Wk=function(e){var t=zk(this),n=Gk(e);return!(Fk(t)>n.size)&&!1!==Qk(t,(function(e){if(!n.includes(e))return!1}),!0)};wf({target:"Set",proto:!0,real:!0,forced:!Sk("isSubsetOf")},{isSubsetOf:Wk});var Vk=_E,Jk=ME.has,Xk=ek,$k=fk,Yk=HE,Kk=Mv,Zk=function(e){var t=Vk(this),n=$k(e);if(Xk(t)<n.size)return!1;var r=n.getIterator();return!1!==Yk(r,(function(e){if(!Jk(t,e))return Kk(r,"normal",!1)}))};wf({target:"Set",proto:!0,real:!0,forced:!Sk("isSupersetOf")},{isSupersetOf:Zk});var eP=_E,tP=ZE,nP=fk,rP=HE,oP=ME.add,iP=ME.has,aP=ME.remove,sP=function(e){var t=eP(this),n=nP(e).getIterator(),r=tP(t);return rP(n,(function(e){iP(t,e)?aP(r,e):oP(r,e)})),r};wf({target:"Set",proto:!0,real:!0,forced:!Sk("symmetricDifference")},{symmetricDifference:sP});var cP=_E,uP=ME.add,lP=ZE,fP=fk,hP=HE,pP=function(e){var t=cP(this),n=fP(e).getIterator(),r=lP(t);return hP(n,(function(e){uP(r,e)})),r};wf({target:"Set",proto:!0,real:!0,forced:!Sk("union")},{union:pP});class dP{constructor(){t(this,"store",{}),t(this,"instanceStore",{})}getStore(){return this.store}resetStore(){this.store={}}getInstanceStore(){return this.instanceStore}resetInstanceStore(){this.instanceStore={}}transformToAtom(e){const{value:t,ok:n}=kE(e);return n?{id:uE(),type:xE(e),value:t}:this.add(e)}get(e){const t=this.store[e],n=this.instanceStore[e];if(!t)return null;const r={},o=Object.getOwnPropertyDescriptors(t);Object.keys(o).forEach((e=>{const t=o[e];hE(t,"value")&&(t.value=this.transformToAtom(t.value)),r[e]=dP.getAtomOverview({atomId:uE(),instanceId:n,value:t})}));const i=this.addExtraProperty(e);return{...r,...i}}getOrigin(e){const t=this.store[e];return t||null}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=uE();let r=n;var o;mE(o=e)&&hE(o,"constructor")&&"function"==typeof o.constructor&&(r=t),this.store[n]=e,this.instanceStore[n]=r;const i=dP.getSemanticValue(e);return dP.getAtomOverview({atomId:n,value:i,instanceId:r})}static getAtomOverview(e){let{instanceId:t="",atomId:n,value:r}=e;return{id:uE(),type:"atom",__atomId:n,instanceId:t,value:r}}static getSemanticValue(e){if(mE(t=e)&&"[object Object]"===fE(t))return"Object {...}";var t;if(gE(e))return"Array (".concat(e.length,")");return e.constructor.name}addExtraProperty(e){const t=this.store[e],n=this.instanceStore[e],r={};if((t instanceof String||t instanceof Number||t instanceof Boolean)&&(r["[[PrimitiveValue]]"]=this.transformToAtom(t.valueOf())),t instanceof Set){const e={};let n=0;for(const r of t)e[n++]=r;e.size=t.size,r["[[Entries]]"]=this.transformToAtom(e)}if(t instanceof Map){const e={};let n=0;for(const[r,o]of t.entries())e[n++]={key:r,value:o};e.size=t.size,r["[[Entries]]"]=this.transformToAtom(e)}var o;return(gE(t)||(o=t,"function"==typeof NodeList&&"NodeList"===NodeList.name&&o instanceof NodeList||"function"==typeof HTMLCollection&&"HTMLCollection"===HTMLCollection.name&&o instanceof HTMLCollection))&&(r.length=this.transformToAtom(t.length)),null!==Object.getPrototypeOf(t)?r["[[Prototype]]"]=this.add(Object.getPrototypeOf(t),n):r.___proto___=this.transformToAtom(null),r}}var gP,mP=new dP;!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"}(gP||(gP={}));const yP=2e3,vP=Math.pow(1.5,4)*yP;class AP{constructor(){t(this,"events",{open:[],close:[],error:[],message:[]})}emit(e,t){this.events[e].forEach((e=>{e(t)})),"close"!==e&&"error"!==e||this.clearListeners()}onOpen(e){this.events.open.push(e)}onClose(e){this.events.close.push(e)}onError(e){this.events.error.push(e)}onMessage(e){this.events.message.push(e)}clearListeners(){Object.entries(this.events).forEach((e=>{let[,t]=e;t.splice(0)}))}}class bP{constructor(){t(this,"socketUrl",""),t(this,"socketConnection",null),t(this,"pingTimer",null),t(this,"pongTimer",null),t(this,"retryTimer",null),t(this,"isOffline",!1),t(this,"messageCapacity",0),t(this,"messages",[]),t(this,"events",{debug:[],refresh:[],"atom-detail":[],"atom-getter":[],"debugger-online":[],"database-pagination":[],"public-data":[]}),t(this,"retryInterval",yP),t(this,"connectionStatus",!1),this.addListener("atom-detail",bP.handleResolveAtom),this.addListener("atom-getter",bP.handleAtomPropertyGetter),this.addListener("debugger-online",this.handleFlushBuffer)}init(e){try{var t,n,r,o,i;if(!e)throw Error("WebSocket url cannot be empty");this.socketWrapper.clearListeners(),this.socketWrapper.getState()===gP.OPEN&&this.socketWrapper.close(),null===(t=this.socketWrapper)||void 0===t||t.onOpen((()=>{this.connectOnline()})),null===(n=this.socketWrapper)||void 0===n||n.onMessage((e=>{this.handleMessage(e)})),null===(r=this.socketWrapper)||void 0===r||r.onClose((()=>{this.connectOffline()})),null===(o=this.socketWrapper)||void 0===o||o.onError((()=>{this.connectOffline()})),this.socketUrl=e,null===(i=this.socketWrapper)||void 0===i||i.init(e)}catch(e){TE.error(e.message)}}addListener(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}broadcastMessage(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=function(e){return{type:LE,content:{data:e}}}(e);this.send(n,t)}close(){var e;this.clearPing(),null===(e=this.socketWrapper)||void 0===e||e.close(),this.messages=[],Object.entries(this.events).forEach((e=>{let[,t]=e;t.splice(0)}))}connectOnline(){this.connectionStatus=!0,this.retryInterval=yP,this.updateRoomInfo(),this.ping()}connectOffline(){this.connectionStatus=!1,this.socketConnection=null,this.clearPing(),this.retryTimer&&clearTimeout(this.retryTimer),this.retryTimer=setTimeout((()=>{this.retryInterval<vP&&(this.retryInterval*=1.5),this.retryTimer=null,this.tryReconnect()}),this.retryInterval)}tryReconnect(){this.init(this.socketUrl)}ping(){this.pingTimer&&clearTimeout(this.pingTimer),this.pongTimer&&clearTimeout(this.pongTimer),this.pingTimer=setTimeout((()=>{this.send({type:"ping",content:null}),this.pingTimer=null,this.pongTimer=setTimeout((()=>{this.connectOffline(),this.pongTimer=null}),5e3)}),5e3)}clearPing(){this.pingTimer&&(clearTimeout(this.pingTimer),this.pingTimer=null),this.pongTimer&&(clearTimeout(this.pongTimer),this.pongTimer=null)}handlePong(){clearTimeout(this.pongTimer),this.pongTimer=null,this.ping()}handleMessage(e){var t;bP.messageFilters.length&&bP.messageFilters.forEach((t=>{e=t(e)}));const{CONNECT:n,MESSAGE:r,ERROR:o,JOIN:i,PING:a,PONG:s,LEAVE:c,CLOSE:u,BROADCAST:l}=CE,f=JSON.parse(e.data),{type:h}=f;switch(h){case n:const{selfConnection:e}=f.content;this.socketConnection=e;break;case r:const{data:i,from:a,to:s}=f.content;s.address===(null===(t=this.socketConnection)||void 0===t?void 0:t.address)&&this.dispatchEvent(i.type,{source:i,from:a,to:s});break;case o:this.connectOffline()}this.handlePong()}dispatchEvent(e,t){var n;["public-data"].includes(e)?this.events["public-data"].forEach((e=>{e(t)})):null===(n=this.events[e])||void 0===n||n.forEach((e=>{e.call(this,t,(e=>{this.unicastMessage(e,t.from)}))}))}unicastMessage(e,t){const n=function(e,t,n){return{type:OE,content:{data:e,from:t,to:n}}}(e,this.socketConnection,t);this.send(n)}handleFlushBuffer(e){const{latestId:t}=e.source.data,n=this.messages.findIndex((e=>e.content.data.data.id===t));this.messages.slice(n+1).forEach((t=>{const n={type:OE,content:{data:t.content.data,from:this.socketConnection,to:e.from}};this.send(n,!0)}))}static handleResolveAtom(e,t){let{source:n}=e;const{type:r,data:o}=n;if("atom-detail"===r){const e=mP.get(o)||{};t(BE("atom-detail-".concat(o),e,!1))}}static handleAtomPropertyGetter(e,t){let{source:n}=e;const{type:r,data:o}=n;if("atom-getter"===r){const{id:e,parentId:n,key:r,instanceId:a}=o,s=mP.getOrigin(a),c=mP.getOrigin(n);let u={};var i;if(s&&c)u=null===(i=Object.getOwnPropertyDescriptor(c,r))||void 0===i||null===(i=i.get)||void 0===i?void 0:i.call(s);else u=new Error("Getter computed failed");t(BE("atom-getter-".concat(e),mP.transformToAtom(u)))}}send(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.socketWrapper.getState()===gP.OPEN)try{var n;const t=e;t.createdAt=Date.now(),t.requestId=uE();const r=PE(t);null===(n=this.socketWrapper)||void 0===n||n.send(r)}catch(e){TE.error("Incompatible: ".concat(e.message)),this.connectionStatus&&this.connectOffline()}if(!this.isOffline&&!t){if([OE,IE].indexOf(e.type)>-1)return;0!==this.messageCapacity&&this.messages.length>=this.messageCapacity&&this.messages.shift(),this.messages.push(e)}}}t(bP,"messageFilters",[]);class wP{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{className:t="",el:n="div"}=e,r=document.createElement(n);r.dataset.testid="modal",r.className=["page-spy-modal",t].join(" "),r.style.display="none",r.onclick=e=>{e.stopPropagation(),e.preventDefault(),this.close()},this.el=r}show(){this.el.style.display="flex",setTimeout((()=>{this.el.classList.add("show")}),50)}close(){this.el.classList.remove("show"),setTimeout((()=>{this.el.style.display="none"}),300)}appendNode(e){this.el.insertAdjacentElement("beforeend",e)}}class SP{constructor(e){this.options={...e};const t=document.createElement("div");t.dataset.testid="content",t.className=["page-spy-content",e.className].join(" "),t.onclick=e=>{e.stopPropagation()},this.el=t,this.render()}render(){const{content:e="",onOk:t}=this.options,n=document.createElement("div");n.className="page-spy-content__info",n.innerHTML=e;const r=document.createElement("div");r.dataset.testid="copy-button",r.className="page-spy-content__btn",r.textContent=function(){const e=navigator.languages;return["zh-CN","zh-HK","zh-TW","zh"].some((t=>e.includes(t)))}()?"复制在线调试链接":"Copy debug link",r.onclick=e=>{e.stopPropagation(),t&&t()},this.el.insertAdjacentElement("beforeend",n),this.el.insertAdjacentElement("beforeend",r)}}class EP extends AP{constructor(){super(...arguments),t(this,"socketInstance",null)}init(e){this.socketInstance=new WebSocket(e);["open","close","error","message"].forEach((e=>{this.socketInstance.addEventListener(e,(t=>{this.events[e].forEach((e=>{e(t)}))}))}))}send(e){var t;null===(t=this.socketInstance)||void 0===t||t.send(PE(e))}close(){var e;null===(e=this.socketInstance)||void 0===e||e.close()}getState(){var e;return null===(e=this.socketInstance)||void 0===e?void 0:e.readyState}}class kP extends bP{updateRoomInfo(){if(this.getPageSpyConfig){const{project:e,title:t}=this.getPageSpyConfig();this.send({type:jE,content:{info:{name:navigator.userAgent,group:e,tags:{title:t}}}},!0)}}getSocket(){return this.socketWrapper}onOffline(){window.dispatchEvent(new CustomEvent("sdk-inactive")),sessionStorage.removeItem(RE)}constructor(){super(),t(this,"socketWrapper",new EP),t(this,"getPageSpyConfig",null),this.addListener("debug",kP.handleDebugger)}static handleDebugger(e,t){let{source:n}=e;const{type:r,data:o}=n;if("debug"===r){t(BE("console",{logType:"debug-origin",logs:[{id:uE(),type:"debug-origin",value:o}]}));try{const e=new Function("return ".concat(o))();t(BE("console",{logType:"debug-eval",logs:[mP.transformToAtom(e)]}))}catch(e){t(BE("console",{logType:"error",logs:[{type:"error",value:e.stack}]}))}}}}var PP=new kP;class xP{constructor(){t(this,"name","ConsolePlugin"),t(this,"proxyTypes",["log","info","error","warn","debug"]),t(this,"console",{})}async onInit(){var e=this;xP.hasInitd||(xP.hasInitd=!0,this.proxyTypes.forEach((t=>{this.console[t]=window.console[t]||window.console.log||(()=>{}),window.console[t]=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.printLog({logType:t,logs:r,url:window.location.href})}})))}onReset(){this.proxyTypes.forEach((e=>{window.console[e]=this.console[e]})),xP.hasInitd=!1}printLog(e){if(e.logs&&e.logs.length){this.console[e.logType](...e.logs),e.logs=e.logs.map((e=>mP.transformToAtom(e)));const t=BE("console",{time:Date.now(),...e});PP.dispatchEvent("public-data",t),PP.broadcastMessage(t)}}}t(xP,"hasInitd",!1);const TP=e=>{if("object"!=typeof e)return null;const{name:t,message:n,stack:r}=Object(e);return!1===[t,n,r].every(Boolean)?null:{name:t,message:n,stack:r}};class RP{constructor(){t(this,"name","ErrorPlugin"),t(this,"uncaughtErrorListener",(e=>{if(e.error){const{message:t,stack:n}=e.error,r=TP(e.error);RP.sendMessage(n||t,r)}else{const e="[PageSpy] An unknown error occurred and no stack trace available";RP.sendMessage(e,null)}})),t(this,"resourceLoadErrorListener",(e=>{if(!(e instanceof ErrorEvent)){const{target:t}=e;RP.sendMessage("[PageSpy] Resource Load Error: Cannot load resource of (".concat(t.src||t.href,")"),null)}})),t(this,"rejectionListener",(e=>{const t=TP(e.reason);RP.sendMessage(e.reason,t)}))}onInit(){RP.hasInitd||(RP.hasInitd=!0,this.onUncaughtError(),this.onResourceLoadError(),this.onUnhandledRejectionError())}onReset(){window.removeEventListener("error",this.uncaughtErrorListener),window.removeEventListener("error",this.resourceLoadErrorListener),window.removeEventListener("unhandledrejection",this.rejectionListener),RP.hasInitd=!1}onUncaughtError(){window.addEventListener("error",this.uncaughtErrorListener)}onResourceLoadError(){window.addEventListener("error",this.resourceLoadErrorListener,!0)}onUnhandledRejectionError(){window.addEventListener("unhandledrejection",this.rejectionListener)}static sendMessage(e,t){const n=BE("console",{logType:"error",logs:[mP.transformToAtom(e)],time:Date.now(),url:window.location.href,errorDetail:t});PP.dispatchEvent("public-data",n),PP.broadcastMessage(n)}}t(RP,"hasInitd",!1);var OP=be,LP=_e,IP=C,jP=fr,CP=TypeError,BP=function(e){return function(t,n,r,o){OP(n);var i=LP(t),a=IP(i),s=jP(i),c=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(c in a){o=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw CP("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(o=n(o,a[c],c,i));return o}},UP={left:BP(!1),right:BP(!0)},DP=s,MP="undefined"!=typeof process&&"process"==R(process),qP=UP.left,_P=function(e,t){var n=[][e];return!!n&&DP((function(){n.call(null,t||function(){return 1},1)}))};eo({target:"Array",proto:!0,forced:!MP&&oe>79&&oe<83||!_P("reduce")},{reduce:function(e){var t=arguments.length;return qP(this,e,t,t>1?arguments[1]:void 0)}});var NP=u,HP=Function.prototype,zP=HP.apply,FP=HP.call,QP="object"==typeof Reflect&&Reflect.apply||(NP?FP.bind(zP):function(){return FP.apply(zP,arguments)}),GP=Rt.f,WP=Q,VP=V,JP=Bi,XP={};XP[nt("toStringTag")]="z";var $P="[object z]"===String(XP),YP=Q,KP=R,ZP=nt("toStringTag"),ex=Object,tx="Arguments"==KP(function(){return arguments}()),nx=$P?KP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ex(e),ZP))?n:tx?KP(t):"Object"==(r=KP(t))&&YP(t.callee)?"Arguments":r},rx=nx,ox=String,ix=function(e){if("Symbol"===rx(e))throw TypeError("Cannot convert a Symbol value to a string");return ox(e)},ax=ix,sx=V,cx=Vt,ux=Error,lx=k("".replace),fx=String(ux("zxcasd").stack),hx=/\n\s*at [^:]*:[^\n]*/,px=hx.test(fx),dx=A,gx=!s((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",dx(1,7)),7!==e.stack)})),mx=Vt,yx=function(e,t){if(px&&"string"==typeof e&&!ux.prepareStackTrace)for(;t--;)e=lx(e,hx,"");return e},vx=gx,Ax=Error.captureStackTrace,bx=$,wx=ze,Sx=Vt,Ex=Y,kx=Bi,Px=Mr,xx=function(e,t,n){n in e||GP(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},Tx=function(e,t,n){var r,o;return JP&&WP(r=t.constructor)&&r!==n&&VP(o=r.prototype)&&o!==n.prototype&&JP(e,o),e},Rx=function(e,t){return void 0===e?arguments.length<2?"":t:ax(e)},Ox=function(e,t){sx(t)&&"cause"in t&&cx(e,"cause",t.cause)},Lx=function(e,t,n,r){vx&&(Ax?Ax(e,t):mx(e,"stack",yx(n,r)))},Ix=c,jx=eo,Cx=QP,Bx=function(e,t,n,r){var o="stackTraceLimit",i=r?2:1,a=e.split("."),s=a[a.length-1],c=bx.apply(null,a);if(c){var u=c.prototype;if(wx(u,"cause")&&delete u.cause,!n)return c;var l=bx("Error"),f=t((function(e,t){var n=Rx(r?t:e,void 0),o=r?new c(e):new c;return void 0!==n&&Sx(o,"message",n),Lx(o,f,o.stack,2),this&&Ex(u,this)&&Tx(o,this,f),arguments.length>i&&Ox(o,arguments[i]),o}));f.prototype=u,"Error"!==s?kx?kx(f,l):Px(f,l,{name:!0}):Ix&&o in c&&(xx(f,c,o),xx(f,c,"prepareStackTrace")),Px(f,c);try{u.name!==s&&Sx(u,"name",s),u.constructor=f}catch(e){}return f}},Ux="WebAssembly",Dx=i[Ux],Mx=7!==Error("e",{cause:7}).cause,qx=function(e,t){var n={};n[e]=Bx(e,t,Mx),jx({global:!0,constructor:!0,arity:1,forced:Mx},n)},_x=function(e,t){if(Dx&&Dx[e]){var n={};n[e]=Bx(Ux+"."+e,t,Mx),jx({target:Ux,stat:!0,constructor:!0,arity:1,forced:Mx},n)}};qx("Error",(function(e){return function(t){return Cx(e,this,arguments)}})),qx("EvalError",(function(e){return function(t){return Cx(e,this,arguments)}})),qx("RangeError",(function(e){return function(t){return Cx(e,this,arguments)}})),qx("ReferenceError",(function(e){return function(t){return Cx(e,this,arguments)}})),qx("SyntaxError",(function(e){return function(t){return Cx(e,this,arguments)}})),qx("TypeError",(function(e){return function(t){return Cx(e,this,arguments)}})),qx("URIError",(function(e){return function(t){return Cx(e,this,arguments)}})),_x("CompileError",(function(e){return function(t){return Cx(e,this,arguments)}})),_x("LinkError",(function(e){return function(t){return Cx(e,this,arguments)}})),_x("RuntimeError",(function(e){return function(t){return Cx(e,this,arguments)}}));const Nx=e=>new Promise(((t,n)=>{const r=new FileReader;r.onload=e=>{var n;t(null===(n=e.target)||void 0===n?void 0:n.result)},r.onerror=()=>{n(new Error("blob2base64Async: can not convert"))},r.readAsDataURL(e)})),Hx=2097152,zx="Exceed maximum limit";var Fx;!function(e){e[e.UNSENT=0]="UNSENT",e[e.OPENED=1]="OPENED",e[e.HEADERS_RECEIVED=2]="HEADERS_RECEIVED",e[e.LOADING=3]="LOADING",e[e.DONE=4]="DONE"}(Fx||(Fx={}));const Qx="(file)";function Gx(e,t){try{let n,r;if("object"==typeof window&&"object"==typeof document&&"[object HTMLDocument]"===Object.prototype.toString.call(document)){const{searchParams:o,href:i}=new URL(e,t);n=i,r=[...o.entries()]}else n=e.toString(),r=function(e){const t=/[?&]([^=#]+)=([^&#]*)/g,n=[];let r;for(;null!==(r=t.exec(e));){const e=decodeURIComponent(r[1]),t=decodeURIComponent(r[2]);n.push([e,t])}return n}(n);const o=n.replace(/^.*?([^/]+)(\/)*(\?.*?)?$/,"$1$2$3")||"";return{url:n,name:o,query:r}}catch(e){return{url:"Unknown",name:"Unknown",query:null}}}const Wx="Content-Type";function Vx(e,t){if(!t)return e;const n=function(e){return e?AE(e)?"multipart/form-data":vE(e)?"application/x-www-form-urlencoded;charset=UTF-8":wE(e)?"application/xml":yE(e)?e.type:"text/plain;charset=UTF-8":null}(t);if(!n)return e;const r=[Wx,n];if(!e)return[r];for(let t=0;t<e.length;t++){const[n]=e[t];if(n.toUpperCase()===Wx.toUpperCase())return e}return[...e,r]}async function Jx(e){if(!e)return null;if(vE(e)||AE(e))return function(e){const t=[];let n=e.next();for(;!n.done;){const[r,o]=n.value;let i;i=bE(o)?Qx:String(o),t.push([r,i]),n=e.next()}return t}(e.entries());if(yE(e))return"[object Blob]";if(t=e,ArrayBuffer.isView(t))return"[object TypedArray]";var t;if(wE(e)){return(new XMLSerializer).serializeToString(e)}return pE(e)?e:fE(e)}class Xx{constructor(e){t(this,"id",""),t(this,"name",""),t(this,"method",""),t(this,"url",""),t(this,"requestType","xhr"),t(this,"requestHeader",null),t(this,"status",0),t(this,"statusText",""),t(this,"readyState",0),t(this,"responseReason",null),t(this,"responseType",""),t(this,"responseHeader",null),t(this,"startTime",0),t(this,"endTime",0),t(this,"costTime",0),t(this,"getData",null),t(this,"postData",null),t(this,"requestPayload",null),t(this,"withCredentials",!1),this.id=e}}class $x{constructor(e){t(this,"reqMap",Object.create(null)),this.socketStore=e}getRequestMap(){return this.reqMap}getRequest(e){return this.reqMap[e]}createRequest(e){return e?this.reqMap[e]?(TE.warn("The request object has been in store, disallow duplicate create"),!1):(this.reqMap[e]=new Xx(e),!0):(TE.warn('The "id" is required when init request object'),!1)}setRequest(e,t){return!(!e||!t)&&(this.reqMap[e]=t,!0)}sendRequestItem(e,t){try{this.reqMap[e]||(this.reqMap[e]=t);const n=BE("network",{...t},!1);Number(t.readyState)===Fx.DONE&&this.socketStore.dispatchEvent("public-data",n),this.socketStore.broadcastMessage(n,t.readyState!==Fx.DONE),this.deferDeleteRequest(e)}catch(e){TE.error(e.message)}}deferDeleteRequest(e){const t=this.getRequest(e);t&&t.readyState===Fx.DONE&&setTimeout((()=>{delete this.reqMap[e]}),3e3)}}class Yx extends $x{constructor(){super(PP)}}class Kx extends Yx{constructor(){super(),t(this,"xhrOpen",null),t(this,"xhrSend",null),t(this,"xhrSetRequestHeader",null),this.initProxyHandler()}initProxyHandler(){const e=this;if(!window.XMLHttpRequest)return;const{open:t,send:n,setRequestHeader:r}=window.XMLHttpRequest.prototype;this.xhrOpen=t,this.xhrSend=n,this.xhrSetRequestHeader=r,window.XMLHttpRequest.prototype.open=function(){const n=this;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=o[0],s=o[1],c=uE();return e.createRequest(c),this.pageSpyRequestId=c,this.pageSpyRequestMethod=a,this.pageSpyRequestUrl=s,n.addEventListener("readystatechange",(async()=>{const t=e.getRequest(c);if(t){switch(t.readyState=n.readyState,n.readyState){case n.UNSENT:case n.OPENED:t.status=n.status,t.statusText="Pending",t.startTime||(t.startTime=Date.now());break;case n.HEADERS_RECEIVED:t.status=n.status,t.statusText="Loading";const r=(n.getAllResponseHeaders()||"").trim().split(/[\r\n]+/);t.responseHeader=r.reduce(((e,t)=>{const[n,...r]=t.split(": ");return e.push([n,r.join(": ")]),e}),[]);break;case n.LOADING:t.status=n.status,t.statusText="Loading";break;case n.DONE:t.status=n.status,t.statusText="Done",t.endTime=Date.now(),t.costTime=t.endTime-(t.startTime||t.endTime);const o=await e.formatResponse(n);lE(o).forEach((e=>{t[e]=o[e]}));break;default:t.status=n.status,t.statusText="Unknown"}e.sendRequestItem(n.pageSpyRequestId,t)}else TE.warn("The request object is not found on XMLHttpRequest's readystatechange event")})),t.apply(n,o)},window.XMLHttpRequest.prototype.setRequestHeader=function(t,n){const o=e.getRequest(this.pageSpyRequestId);return o?(o.requestHeader||(o.requestHeader=[]),o.requestHeader.push([t,n])):TE.warn("The request object is not found on XMLHttpRequest's setRequestHeader event"),r.apply(this,[t,n])},window.XMLHttpRequest.prototype.send=function(t){const r=this,{pageSpyRequestId:o,pageSpyRequestMethod:i="GET",pageSpyRequestUrl:a=""}=r,s=e.getRequest(o);if(s){const n=Gx(a,window.location.href);s.url=n.url,s.name=n.name,s.getData=n.query,s.method=i.toUpperCase(),s.requestType="xhr",s.responseType=r.responseType,s.withCredentials=r.withCredentials,"GET"!==s.method&&(s.requestHeader=Vx(s.requestHeader,t),Jx(t).then((t=>{s.requestPayload=t,e.sendRequestItem(r.pageSpyRequestId,s)})))}else TE.warn("The request object is not found on XMLHttpRequest's send event");return n.apply(r,[t])}}reset(){this.xhrOpen&&(window.XMLHttpRequest.prototype.open=this.xhrOpen),this.xhrSend&&(window.XMLHttpRequest.prototype.send=this.xhrSend),this.xhrSetRequestHeader&&(window.XMLHttpRequest.prototype.setRequestHeader=this.xhrSetRequestHeader)}async formatResponse(e){const t={response:"",responseReason:null};switch(e.responseType){case"":case"text":if(pE(e.response))try{t.response=JSON.parse(e.response)}catch(n){t.response=e.response}else void 0!==e.response&&(t.response=fE(e.response));break;case"json":void 0!==e.response&&(t.response=e.response);break;case"blob":case"arraybuffer":if(e.response){let n=e.response;if(n instanceof ArrayBuffer){const t=e.getResponseHeader("content-type");t&&(n=new Blob([n],{type:t}))}if(yE(n))if(n.size<=Hx)try{t.response=await Nx(n)}catch(e){t.response=await n.text(),TE.error(e.message)}else t.response="[object Blob]",t.responseReason=zx}break;default:void 0!==e.response&&(t.response=Object.prototype.toString.call(e.response))}return t}}var Zx=i.Promise,eT=k,tT=s,nT=Q,rT=nx,oT=cn,iT=function(){},aT=[],sT=$("Reflect","construct"),cT=/^\s*(?:class|function)\b/,uT=eT(cT.exec),lT=!cT.exec(iT),fT=function(e){if(!nT(e))return!1;try{return sT(iT,aT,e),!0}catch(e){return!1}},hT=function(e){if(!nT(e))return!1;switch(rT(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return lT||!!uT(cT,oT(e))}catch(e){return!0}};hT.sham=!0;var pT=!sT||tT((function(){var e;return fT(fT.call)||!fT(Object)||!fT((function(){e=!0}))||e}))?hT:fT,dT=pT,gT=me,mT=TypeError,yT=Ct,vT=function(e){if(dT(e))return e;throw mT(gT(e)+" is not a constructor")},AT=B,bT=nt("species"),wT={},ST=be,ET=TypeError,kT=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw ET("Bad Promise constructor");t=e,n=r})),this.resolve=ST(t),this.reject=ST(n)};wT.f=function(e){return new kT(e)};var PT=Ct,xT=V,TT=wT,RT=eo,OT=Zx,LT=s,IT=$,jT=Q,CT=function(e,t){var n,r=yT(e).constructor;return void 0===r||AT(n=yT(r)[bT])?t:vT(n)},BT=function(e,t){if(PT(e),xT(t)&&t.constructor===e)return t;var n=TT.f(e);return(0,n.resolve)(t),n.promise},UT=Kn,DT=OT&&OT.prototype;if(RT({target:"Promise",proto:!0,real:!0,forced:!!OT&&LT((function(){DT.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=CT(this,IT("Promise")),n=jT(e);return this.then(n?function(n){return BT(t,e()).then((function(){return n}))}:e,n?function(n){return BT(t,e()).then((function(){throw n}))}:e)}}),jT(OT)){var MT=IT("Promise").prototype.finally;DT.finally!==MT&&UT(DT,"finally",MT,{unsafe:!0})}class qT extends Yx{constructor(){super(),t(this,"fetch",null),this.initProxyHandler()}reset(){this.fetch&&(window.fetch=this.fetch)}initProxyHandler(){const e=this,t=window.fetch;t&&(this.fetch=t,window.fetch=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n,r),i=uE();e.createRequest(i);const a=e.getRequest(i);if(a){let t,s="GET",c=null;pE(n)||n instanceof URL?(s=r.method||"GET",t=n,c=r.headers||null):(s=n.method,t=n.url,c=n.headers);const u=Gx(t,window.location.href);a.url=u.url,a.name=u.name,a.getData=u.query,a.method=s.toUpperCase(),a.requestType="fetch",a.status=0,a.statusText="Pending",a.startTime=Date.now(),a.readyState=XMLHttpRequest.UNSENT,r.credentials&&"omit"!==r.credentials&&(a.withCredentials=!0),!function(e){return e instanceof Headers}(c)?mE(c)?a.requestHeader=Object.entries(c):a.requestHeader=c:a.requestHeader=[...c.entries()],"GET"!==a.method&&(a.requestHeader=Vx(a.requestHeader,r.body),Jx(r.body).then((t=>{a.requestPayload=t,e.sendRequestItem(i,a)}))),e.sendRequestItem(i,a),o.then((t=>{a.endTime=Date.now(),a.costTime=a.endTime-(a.startTime||a.endTime),a.status=t.status||200,a.statusText=t.statusText||"Done",a.responseHeader=[...t.headers.entries()],a.readyState=XMLHttpRequest.HEADERS_RECEIVED,e.sendRequestItem(i,a);const n=t.headers.get("content-type");if(n){if(n.includes("application/json"))return a.responseType="json",t.clone().text();if(n.includes("text/html")||n.includes("text/plain"))return a.responseType="text",t.clone().text()}return a.responseType="blob",t.clone().blob()})).then((async e=>{switch(a.responseType){case"text":case"json":try{a.response=JSON.parse(e)}catch(t){a.response=e,a.responseType="text"}break;case"blob":const t=e;if(t.size<=Hx)try{a.response=await Nx(t)}catch(e){a.response=await t.text(),TE.error(e.message)}else a.response="[object Blob]",a.responseReason=zx}})).finally((()=>{a.readyState=XMLHttpRequest.DONE,e.sendRequestItem(i,a)}))}else TE.warn("The request object is not found on window.fetch event");return o})}}class _T extends Yx{constructor(){super(),t(this,"sendBeacon",null),this.initProxyHandler()}reset(){this.sendBeacon&&(window.navigator.sendBeacon=this.sendBeacon)}initProxyHandler(){const e=window.navigator.sendBeacon;if(!e)return;const t=this;this.sendBeacon=e,window.navigator.sendBeacon=function(n,r){const o=e.call(window.navigator,n,r),i=uE();t.createRequest(i);const a=t.getRequest(i);if(a){const e=Gx(n,window.location.href);a.url=e.url,a.name=e.name,a.getData=e.query,a.method="POST",a.status=0,a.statusText="Pending",a.requestType="ping",a.requestHeader=Vx(a.requestHeader,r),a.startTime=Date.now(),Jx(r).then((e=>{a.requestPayload=e,t.sendRequestItem(i,a)})),a.response="",o?(a.status=200,a.statusText="Sent",a.endTime=Date.now(),a.costTime=a.endTime-(a.startTime||a.endTime)):(a.status=500,a.statusText="Unknown"),a.readyState=XMLHttpRequest.DONE,t.sendRequestItem(i,a)}else TE.warn("The request object is not on navigator.sendBeacon event");return o}}}class NT{constructor(){t(this,"name","NetworkPlugin"),t(this,"xhrProxy",null),t(this,"fetchProxy",null),t(this,"beaconProxy",null)}onInit(){NT.hasInitd||(NT.hasInitd=!0,this.xhrProxy=new Kx,this.fetchProxy=new qT,this.beaconProxy=new _T)}onReset(){var e,t,n;null===(e=this.xhrProxy)||void 0===e||e.reset(),null===(t=this.fetchProxy)||void 0===t||t.reset(),null===(n=this.beaconProxy)||void 0===n||n.reset(),NT.hasInitd=!1}}t(NT,"hasInitd",!1);var HT=i,zT=vi;eo({global:!0},{Reflect:{}}),zT(HT.Reflect,"Reflect",!0);var FT;
/*! modernizr 4.0.0-alpha (Custom Build) | MIT *
   * https://modernizr.com/download/?-apng-arrow-avif-beacon-blobworkers-clipboard-contextmenu-cookies-cors-customevent-datachannel-dataworkers-es6array-es6class-es6collections-es6math-es6number-es6object-es6string-es6symbol-es7array-es8object-eventlistener-exiforientation-fetch-forcetouch-generators-getusermedia-hashchange-history-imgcrossorigin-indexeddb-jpeg2000-lazyloading-localstorage-messagechannel-oninput-peerconnection-performance-pointerevents-postmessage-prefetch-promises-proxy-queryselector-requestanimationframe-resizeobserver-restdestructuringarray_restdestructuringobject-restparameters-sandbox-scriptasync-scriptdefer-seamless-serviceworker-sessionstorage-sharedworkers-spreadarray-spreadobject-srcdoc-stringtemplate-transferables-webanimations-webgl-webp-websqldatabase-webworkers-addtest-atrule-domprefixes-hasevent-load-mq-prefixed-prefixedcss-prefixes-printshiv-setclasses-testallprops-testprop-teststyles !*/FT={exports:{}},function(e,t,n,r){function o(e,t){return typeof e===t}function i(e){var t=E.className,n=A._config.classPrefix||"";if(k&&(t=t.baseVal),A._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}A._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),k?E.className.baseVal=t:E.className=t)}function a(e,t){if("object"==typeof e)for(var n in e)b(e,n)&&a(n,e[n]);else{var r=(e=e.toLowerCase()).split("."),o=A[r[0]];if(2===r.length&&(o=o[r[1]]),void 0!==o)return A;t="function"==typeof t?t():t,1===r.length?A[r[0]]=t:(!A[r[0]]||A[r[0]]instanceof Boolean||(A[r[0]]=new Boolean(A[r[0]])),A[r[0]][r[1]]=t),i([(t&&!1!==t?"":"no-")+r.join("-")]),A._trigger(e,t)}return A}function s(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):k?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function c(e,t,r,o){var i,a,c,u,l="modernizr",f=s("div"),h=function(){var e=n.body;return e||((e=s(k?"svg":"body")).fake=!0),e}();if(parseInt(r,10))for(;r--;)(c=s("div")).id=o?o[r]:l+(r+1),f.appendChild(c);return(i=s("style")).type="text/css",i.id="s"+l,(h.fake?h:f).appendChild(i),h.appendChild(f),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),f.id=l,h.fake&&(h.style.background="",h.style.overflow="hidden",u=E.style.overflow,E.style.overflow="hidden",E.appendChild(h)),a=t(f,e),h.fake&&h.parentNode?(h.parentNode.removeChild(h),E.style.overflow=u,E.offsetHeight):f.parentNode.removeChild(f),!!a}function u(e,n,r){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var i=t.console;null!==o?r&&(o=o.getPropertyValue(r)):i&&i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else o=!n&&e.currentStyle&&e.currentStyle[r];return o}function l(e,t){return!!~(""+e).indexOf(t)}function f(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function h(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,n){return t+n.toUpperCase()})).replace(/^-/,"")}function p(e,n,i,a){function p(){g&&(delete U.style,delete U.modElem)}if(a=!o(a,"undefined")&&a,!o(i,"undefined")){var d=function(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(f(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+f(e[o])+":"+n+")");return c("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",(function(e){return"absolute"===u(e,null,"position")}))}return r}(e,i);if(!o(d,"undefined"))return d}for(var g,m,y,v,A,b=["modernizr","tspan","samp"];!U.style&&b.length;)g=!0,U.modElem=s(b.shift()),U.style=U.modElem.style;for(y=e.length,m=0;m<y;m++)if(v=e[m],A=U.style[v],l(v,"-")&&(v=h(v)),U.style[v]!==r){if(a||o(i,"undefined"))return p(),"pfx"!==n||v;try{U.style[v]=i}catch(e){}if(U.style[v]!==A)return p(),"pfx"!==n||v}return p(),!1}function d(e,t){return function(){return e.apply(t,arguments)}}function g(e,t,n,r,i){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+x.join(a+" ")+a).split(" ");return o(t,"string")||o(t,"undefined")?p(s,t,r,i):function(e,t,n){var r;for(var i in e)if(e[i]in t)return!1===n?e[i]:o(r=t[e[i]],"function")?d(r,n||t):r;return!1}(s=(e+" "+R.join(a+" ")+a).split(" "),t,n)}function m(e,t){var n=e.deleteDatabase(t);n.onsuccess=function(){a("indexeddb.deletedatabase",!0)},n.onerror=function(){a("indexeddb.deletedatabase",!1)}}var y=[],v={_version:"4.0.0-alpha",_config:{classPrefix:"",enableClasses:!1,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout((function(){t(n[e])}),0)},addTest:function(e,t,n){y.push({name:e,fn:t,options:n})},addAsyncTest:function(e){y.push({name:null,fn:e})}},A=function(){};A.prototype=v,A=new A;var b,w,S=[],E=n.documentElement,k="svg"===E.nodeName.toLowerCase();b=o(w={}.hasOwnProperty,"undefined")||o(w.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return w.call(e,t)},v._l={},v.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),A.hasOwnProperty(e)&&setTimeout((function(){A._trigger(e,A[e])}),0)},v._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout((function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)}),0),delete this._l[e]}},A._q.push((function(){v.addTest=a}));var P="Moz O ms Webkit",x=v._config.usePrefixes?P.split(" "):[];v._cssomPrefixes=x;var T=function(e){var n,o=M.length,i=t.CSSRule;if(void 0===i)return r;if(!e)return!1;if((n=(e=e.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+e;for(var a=0;a<o;a++){var s=M[a];if(s.toUpperCase()+"_"+n in i)return"@-"+s.toLowerCase()+"-"+e}return!1};v.atRule=T;var R=v._config.usePrefixes?P.toLowerCase().split(" "):[];v._domPrefixes=R;var O,L=(O=!("onblur"in E),function(e,t){var n;return!!e&&(t&&"string"!=typeof t||(t=s(t||"div")),!(n=(e="on"+e)in t)&&O&&(t.setAttribute||(t=s("div")),t.setAttribute(e,""),n="function"==typeof t[e],t[e]!==r&&(t[e]=r),t.removeAttribute(e)),n)});v.hasEvent=L,k||function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=b.elements;return"string"==typeof e?e.split(" "):e}function o(e){var t=A[e[y]];return t||(t={},v++,e[y]=v,A[v]=t),t}function i(e,n,r){return n||(n=t),p?n.createElement(e):(r||(r=o(n)),!(i=r.cache[e]?r.cache[e].cloneNode():m.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e)).canHaveChildren||g.test(e)||i.tagUrn?i:r.frag.appendChild(i));var i}function a(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return b.shivMethods?i(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(b,t.frag)}function s(e){e||(e=t);var r=o(e);return!b.shivCSS||h||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||a(e,r),e}function c(e){for(var t,n=e.getElementsByTagName("*"),o=n.length,i=RegExp("^(?:"+r().join("|")+")$","i"),a=[];o--;)t=n[o],i.test(t.nodeName)&&a.push(t.applyElement(u(t)));return a}function u(e){for(var t,n=e.attributes,r=n.length,o=e.ownerDocument.createElement(S+":"+e.nodeName);r--;)(t=n[r]).specified&&o.setAttribute(t.nodeName,t.nodeValue);return o.style.cssText=e.style.cssText,o}function l(e){for(var t,n=e.split("{"),o=n.length,i=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+S+"\\:$2";o--;)(t=n[o]=n[o].split("}"))[t.length-1]=t[t.length-1].replace(i,a),n[o]=t.join("}");return n.join("{")}function f(e){function t(){clearTimeout(a._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,i,a=o(e),s=e.namespaces,u=e.parentWindow;return!E||e.printShived||(void 0===s[S]&&s.add(S),u.attachEvent("onbeforeprint",(function(){t();for(var o,a,s,u=e.styleSheets,f=[],h=u.length,p=Array(h);h--;)p[h]=u[h];for(;s=p.pop();)if(!s.disabled&&w.test(s.media)){try{a=(o=s.imports).length}catch(e){a=0}for(h=0;h<a;h++)p.push(o[h]);try{f.push(s.cssText)}catch(e){}}f=l(f.reverse().join("")),i=c(e),r=n(e,f)})),u.attachEvent("onafterprint",(function(){(function(e){for(var t=e.length;t--;)e[t].removeNode()})(i),clearTimeout(a._removeSheetTimer),a._removeSheetTimer=setTimeout(t,500)})),e.printShived=!0),e}var h,p,d=e.html5||{},g=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,m=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,y="_html5shiv",v=0,A={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",h="hidden"in e,p=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){h=!0,p=!0}}();var b={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==d.shivCSS,supportsUnknownElements:p,shivMethods:!1!==d.shivMethods,type:"default",shivDocument:s,createElement:i,createDocumentFragment:function(e,n){if(e||(e=t),p)return e.createDocumentFragment();for(var i=(n=n||o(e)).frag.cloneNode(),a=0,s=r(),c=s.length;a<c;a++)i.createElement(s[a]);return i},addElements:function(e,t){var n=b.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),b.elements=n+" "+e,s(t)}};e.html5=b,s(t);var w=/^$|\b(?:all|print)\b/,S="html5shiv",E=!p&&function(){var n=t.documentElement;return!(void 0===t.namespaces||void 0===t.parentWindow||void 0===n.applyElement||void 0===n.removeNode||void 0===e.attachEvent)}();b.type+=" print",b.shivPrint=f,f(t),FT.exports&&(FT.exports=b)}(void 0!==t?t:this,n);var I=function(){},j=function(){};t.console&&(I=function(){var e=console.error?"error":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))},j=function(){var e=console.warn?"warn":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))}),v.load=function(){"yepnope"in t?(j("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. yepnope appears to be available on the page, so we’ll use it to handle this call to Modernizr.load, but please update your code to use yepnope directly.\n See http://github.com/Modernizr/Modernizr/issues/1182 for more information."),t.yepnope.apply(t,[].slice.call(arguments,0))):I("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. Get it from http://yepnopejs.com. See http://github.com/Modernizr/Modernizr/issues/1182 for more information.")};var C=function(){var e=t.matchMedia||t.msMatchMedia;return e?function(t){var n=e(t);return n&&n.matches||!1}:function(e){var t=!1;return c("@media "+e+" { #modernizr { position: absolute; } }",(function(e){t="absolute"===u(e,null,"position")})),t}}();v.mq=C;var B={elem:s("modernizr")};A._q.push((function(){delete B.elem}));var U={style:B.elem.style};A._q.unshift((function(){delete U.style})),v.testAllProps=g;var D=v.prefixed=function(e,t,n){return 0===e.indexOf("@")?T(e):(-1!==e.indexOf("-")&&(e=h(e)),t?g(e,t,n):g(e,"pfx"))},M=v._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];v._prefixes=M,v.prefixedCSS=function(e){var t=D(e);return t&&f(t)},v.testAllProps=function(e,t,n){return g(e,r,r,t,n)},v.testProp=function(e,t,n){return p([e],r,t,n)},v.testStyles=c,A.addAsyncTest((function(){var e,t=["read","readText","write","writeText"];if(navigator.clipboard){a("clipboard",!0);for(var n=0;n<t.length;n++)e=!!navigator.clipboard[t[n]],a("clipboard."+t[n].toLowerCase(),e)}else a("clipboard",!1)})),A.addTest("contextmenu","contextMenu"in E&&"HTMLMenuItemElement"in t),A.addTest("cors","XMLHttpRequest"in t&&"withCredentials"in new XMLHttpRequest),A.addTest("es6array",!!(Array.prototype&&Array.prototype.copyWithin&&Array.prototype.fill&&Array.prototype.find&&Array.prototype.findIndex&&Array.prototype.keys&&Array.prototype.entries&&Array.prototype.values&&Array.from&&Array.of)),A.addTest("arrow",(function(){try{(0,eval)("()=>{}")}catch(e){return!1}return!0})),A.addTest("es6class",(function(){try{(0,eval)("class A{}")}catch(e){return!1}return!0})),A.addTest("es6collections",!!(t.Map&&t.Set&&t.WeakMap&&t.WeakSet)),A.addTest("generators",(function(){try{new Function("function* test() {}")()}catch(e){return!1}return!0})),A.addTest("es6math",!!(Math&&Math.clz32&&Math.cbrt&&Math.imul&&Math.sign&&Math.log10&&Math.log2&&Math.log1p&&Math.expm1&&Math.cosh&&Math.sinh&&Math.tanh&&Math.acosh&&Math.asinh&&Math.atanh&&Math.hypot&&Math.trunc&&Math.fround)),A.addTest("es6number",!!(Number.isFinite&&Number.isInteger&&Number.isSafeInteger&&Number.isNaN&&Number.parseInt&&Number.parseFloat&&Number.isInteger(Number.MAX_SAFE_INTEGER)&&Number.isInteger(Number.MIN_SAFE_INTEGER)&&Number.isFinite(Number.EPSILON))),A.addTest("es6object",!!(Object.assign&&Object.is&&Object.setPrototypeOf)),A.addTest("promises",(function(){return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&function(){var e;return new t.Promise((function(t){e=t})),"function"==typeof e}()})),A.addTest("restparameters",(function(){try{(0,eval)("function f(...rest) {}")}catch(e){return!1}return!0})),A.addTest("spreadarray",(function(){try{(0,eval)("(function f(){})(...[1])")}catch(e){return!1}return!0})),A.addTest("stringtemplate",(function(){try{return"-1-"===(0,eval)("(function(){var a=1; return `-${a}-`;})()")}catch(e){return!1}})),A.addTest("es6string",!!(String.fromCodePoint&&String.raw&&String.prototype.codePointAt&&String.prototype.repeat&&String.prototype.startsWith&&String.prototype.endsWith&&String.prototype.includes)),A.addTest("es6symbol",!!("function"==typeof Symbol&&Symbol.for&&Symbol.hasInstance&&Symbol.isConcatSpreadable&&Symbol.iterator&&Symbol.keyFor&&Symbol.match&&Symbol.prototype&&Symbol.replace&&Symbol.search&&Symbol.species&&Symbol.split&&Symbol.toPrimitive&&Symbol.toStringTag&&Symbol.unscopables)),A.addTest("es7array",!(!Array.prototype||!Array.prototype.includes)),A.addTest("restdestructuringarray",(function(){try{(0,eval)("var [...rest]=[1]")}catch(e){return!1}return!0})),A.addTest("restdestructuringobject",(function(){try{(0,eval)("var {...rest}={a:1}")}catch(e){return!1}return!0})),A.addTest("spreadobject",(function(){try{(0,eval)("var a={...{b:1}}")}catch(e){return!1}return!0})),A.addTest("es8object",!(!Object.entries||!Object.values)),A.addTest("customevent","CustomEvent"in t&&"function"==typeof t.CustomEvent),A.addTest("eventlistener","addEventListener"in t),A.addTest("forcetouch",(function(){return!!L(D("mouseforcewillbegin",t,!1),t)&&MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN})),A.addTest("hashchange",(function(){return!1!==L("hashchange",t)&&(n.documentMode===r||n.documentMode>7)})),A.addTest("oninput",(function(){var e,r=s("input");if(r.setAttribute("oninput","return"),r.style.cssText="position:fixed;top:0;",L("oninput",E)||"function"==typeof r.oninput)return!0;try{var o=n.createEvent("KeyboardEvent");e=!1;var i=function(t){e=!0,t.preventDefault(),t.stopPropagation()};o.initKeyEvent("keypress",!0,!0,t,!1,!1,!1,!1,0,"e".charCodeAt(0)),E.appendChild(r),r.addEventListener("input",i,!1),r.focus(),r.dispatchEvent(o),r.removeEventListener("input",i,!1),E.removeChild(r)}catch(r){e=!1}return e}));var q=[""].concat(R);v._domPrefixesAll=q,A.addTest("pointerevents",(function(){for(var e=0,t=q.length;e<t;e++)if(L(q[e]+"pointerdown"))return!0;return!1})),A.addTest("history",(function(){var e=navigator.userAgent;return!!e&&(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&t.history&&"pushState"in t.history})),A.addTest("sandbox","sandbox"in s("iframe")),A.addTest("seamless","seamless"in s("iframe")),A.addTest("srcdoc","srcdoc"in s("iframe")),A.addTest("canvas",(function(){var e=s("canvas");return!(!e.getContext||!e.getContext("2d"))})),A.addAsyncTest((function(){if(!A.canvas)return!1;var e=new Image,t=s("canvas"),n=t.getContext("2d");e.onload=function(){a("apng",(function(){return void 0!==t.getContext&&(n.drawImage(e,0,0),0===n.getImageData(0,0,1,1).data[3])}))},e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACGFjVEwAAAABAAAAAcMq2TYAAAANSURBVAiZY2BgYPgPAAEEAQB9ssjfAAAAGmZjVEwAAAAAAAAAAQAAAAEAAAAAAAAAAAD6A+gBAbNU+2sAAAARZmRBVAAAAAEImWNgYGBgAAAABQAB6MzFdgAAAABJRU5ErkJggg=="})),A.addAsyncTest((function(){var e=new Image;e.onload=e.onerror=function(){a("avif",1===e.width)},e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAAEcbWV0YQAAAAAAAABIaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGNhdmlmIC0gaHR0cHM6Ly9naXRodWIuY29tL2xpbmstdS9jYXZpZgAAAAAeaWxvYwAAAAAEQAABAAEAAAAAAUQAAQAAABcAAAAqaWluZgEAAAAAAAABAAAAGmluZmUCAAAAAAEAAGF2MDFJbWFnZQAAAAAOcGl0bQAAAAAAAQAAAHJpcHJwAAAAUmlwY28AAAAQcGFzcAAAAAEAAAABAAAAFGlzcGUAAAAAAAAAAQAAAAEAAAAQcGl4aQAAAAADCAgIAAAAFmF2MUOBAAwACggYAAYICGgIIAAAABhpcG1hAAAAAAAAAAEAAQUBAoMDhAAAAB9tZGF0CggYAAYICGgIIBoFHiAAAEQiBACwDoA="})),A.addTest("imgcrossorigin","crossOrigin"in s("img")),A.addAsyncTest((function(){var e=new Image;e.onerror=function(){a("exiforientation",!1)},e.onload=function(){a("exiforientation",2!==e.width)},e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAASUkqAAgAAAABABIBAwABAAAABgASAAAAAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAABAAIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/iiiigD/2Q=="})),A.addAsyncTest((function(){var e=new Image;e.onload=e.onerror=function(){a("jpeg2000",1===e.width)},e.src="data:image/jp2;base64,/0//UQAyAAAAAAABAAAAAgAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAEBwEBBwEBBwEBBwEB/1IADAAAAAEAAAQEAAH/XAAEQED/ZAAlAAFDcmVhdGVkIGJ5IE9wZW5KUEVHIHZlcnNpb24gMi4wLjD/kAAKAAAAAABYAAH/UwAJAQAABAQAAf9dAAUBQED/UwAJAgAABAQAAf9dAAUCQED/UwAJAwAABAQAAf9dAAUDQED/k8+kEAGvz6QQAa/PpBABr994EAk//9k="})),A.addTest("lazyloading","loading"in HTMLImageElement.prototype),A.addAsyncTest((function(){function e(e,t,n){function r(t){var r=!(!t||"load"!==t.type)&&1===o.width;a(e,"webp"===e&&r?new Boolean(r):r),n&&n(t)}var o=new Image;o.onerror=r,o.onload=r,o.src=t}var t=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],n=t.shift();e(n.name,n.uri,(function(n){if(n&&"load"===n.type)for(var r=0;r<t.length;r++)e(t[r].name,t[r].uri)}))})),A.addTest("messagechannel","MessageChannel"in t),A.addTest("beacon","sendBeacon"in navigator),A.addTest("fetch","fetch"in t),A.addTest("performance",!!D("performance",t));var _=!0;try{t.postMessage({toString:function(){_=!1}},"*")}catch(w){}A.addTest("postmessage",new Boolean("postMessage"in t)),A.addTest("postmessage.structuredclones",_),A.addTest("proxy","Proxy"in t),A.addTest("queryselector","querySelector"in n&&"querySelectorAll"in n),A.addTest("prefetch",(function(){if(11===n.documentMode)return!0;var e=s("link").relList;return!(!e||!e.supports)&&e.supports("prefetch")})),A.addTest("requestanimationframe",!!D("requestAnimationFrame",t),{aliases:["raf"]}),A.addTest("scriptasync","async"in s("script")),A.addTest("scriptdefer","defer"in s("script")),A.addTest("serviceworker","serviceWorker"in navigator),A.addTest("cookies",(function(){try{n.cookie="cookietest=1";var e=-1!==n.cookie.indexOf("cookietest=");return n.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}})),A.addAsyncTest((function(){var e;try{e=D("indexedDB",t)}catch(e){}if(e){var n,r="modernizr-"+Math.random();try{n=e.open(r)}catch(e){return void a("indexeddb",!1)}n.onerror=function(t){!n.error||"InvalidStateError"!==n.error.name&&"UnknownError"!==n.error.name?(a("indexeddb",!0),m(e,r)):(a("indexeddb",!1),t.preventDefault())},n.onsuccess=function(){a("indexeddb",!0),m(e,r)}}else a("indexeddb",!1)})),A.addTest("localstorage",(function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}})),A.addTest("sessionstorage",(function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}})),A.addTest("websqldatabase","openDatabase"in t),A.addTest("webanimations","animate"in s("div")),A.addTest("webgl",(function(){return"WebGLRenderingContext"in t})),A.addTest("peerconnection",!!D("RTCPeerConnection",t)),A.addTest("datachannel",(function(){if(!A.peerconnection)return!1;for(var e=0,n=q.length;e<n;e++){var r=t[q[e]+"RTCPeerConnection"];if(r)try{return"createDataChannel"in new r({})}catch(e){}}return!1})),A.addTest("getUserMedia","mediaDevices"in navigator&&"getUserMedia"in navigator.mediaDevices),A.addTest("resizeobserver","ResizeObserver"in t),A.addAsyncTest((function(){function e(){a("blobworkers",!1),n()}function n(){u&&o.revokeObjectURL(u),c&&c.terminate(),l&&clearTimeout(l)}try{var r=t.BlobBuilder,o=t.URL;A._config.usePrefix&&(r=r||t.MozBlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.OBlobBuilder,o=o||t.MozURL||t.webkitURL||t.MSURL||t.OURL);var i,s,c,u,l,f="this.onmessage=function(e){postMessage(e.data)}";try{i=new Blob([f],{type:"text/javascript"})}catch(e){}i||((s=new r).append(f),i=s.getBlob()),u=o.createObjectURL(i),(c=new Worker(u)).onmessage=function(e){a("blobworkers","Modernizr"===e.data),n()},c.onerror=e,l=setTimeout(e,200),c.postMessage("Modernizr")}catch(n){e()}})),A.addAsyncTest((function(){try{var e=new Worker("data:text/javascript;base64,dGhpcy5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7cG9zdE1lc3NhZ2UoZS5kYXRhKX0=");e.onmessage=function(t){e.terminate(),a("dataworkers","Modernizr"===t.data),e=null},e.onerror=function(){a("dataworkers",!1),e=null},setTimeout((function(){a("dataworkers",!1)}),200),e.postMessage("Modernizr")}catch(e){setTimeout((function(){a("dataworkers",!1)}),0)}})),A.addTest("sharedworkers","SharedWorker"in t),A.addTest("blobconstructor",(function(){try{return!!new Blob}catch(e){return!1}}),{aliases:["blob-constructor"]});var N=D("URL",t,!1);N=N&&t[N],A.addTest("bloburls",N&&"revokeObjectURL"in N&&"createObjectURL"in N),A.addTest("webworkers","Worker"in t),A.addTest("typedarrays","ArrayBuffer"in t),A.addAsyncTest((function(){function e(){a("transferables",!1),t()}function t(){i&&URL.revokeObjectURL(i),s&&s.terminate(),r&&clearTimeout(r)}if(!(A.blobconstructor&&A.bloburls&&A.webworkers&&A.typedarrays))return a("transferables",!1);try{var n,r,o=new Blob(['var hello = "world"'],{type:"text/javascript"}),i=URL.createObjectURL(o),s=new Worker(i);s.onerror=e,r=setTimeout(e,200),n=new ArrayBuffer(1),s.postMessage(n,[n]),a("transferables",0===n.byteLength),t()}catch(t){e()}})),function(){var e,t,n,r,i,a;for(var s in y)if(y.hasOwnProperty(s)){if(e=[],(t=y[s]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=o(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)1===(a=e[i].split(".")).length?A[a[0]]=r:(A[a[0]]&&(!A[a[0]]||A[a[0]]instanceof Boolean)||(A[a[0]]=new Boolean(A[a[0]])),A[a[0]][a[1]]=r),S.push((r?"":"no-")+a.join("-"))}}(),i(S),delete v.addTest,delete v.addAsyncTest;for(var H=0;H<A._q.length;H++)A._q[H]();e.Modernizr=A}(window,window,document);const QT={Element:{sandbox:{title:"iframe/sandbox",keyPath:"iframe/sandbox"},srcdoc:{title:"iframe/srcdoc",keyPath:"iframe/srcdoc"},apng:{title:"img/apng",keyPath:"img/apng"},avif:{title:"img/avif",keyPath:"img/avif"},imgcrossorigin:{title:"img/crossorigin",keyPath:"img/crossorigin"},exiforientation:{title:"img/exif-orientation",keyPath:"img/exif-orientation"},lazyloading:{title:"img/lazyloading",keyPath:"img/lazyloading"},webp:{title:"img/webp",keyPath:"img/webp"},prefetch:{title:"link/prefetch",keyPath:"link/prefetch"},scriptasync:{title:"script/async",keyPath:"script/async"},scriptdefer:{title:"script/defer",keyPath:"script/defer"}},Feature:{clipboard:{title:"Clipboard",keyPath:"clipboard"},customevent:{title:"Custom Event",keyPath:"event/customevent"},eventlistener:{title:"Eventlistener",keyPath:"event/eventlistener"},forcetouch:{title:"Force Touch",keyPath:"event/forcetouch"},hashchange:{title:"Hash Change",keyPath:"event/hashchange"},oninput:{title:"Input Event",keyPath:"event/oninput"},pointerevents:{title:"Pointer Event",keyPath:"event/forcetouch"},history:{title:"History",keyPath:"history"},messagechannel:{title:"Message Channel",keyPath:"messagechannel"},postmessage:{title:"Postmessage",keyPath:"postmessage"},performance:{title:"Performance API",keyPath:"performance"},queryselector:{title:"queryselector",keyPath:"queryselector"},requestanimationframe:{title:"requestanimationframe",keyPath:"requestanimationframe"},serviceworker:{title:"Service Worker",keyPath:"serviceworker"},webanimations:{title:"Web Animation",keyPath:"webanimations"},webgl:{title:"WebGL",keyPath:"webgl/webgl"},datachannel:{title:"WebRTC/datachannel",keyPath:"webrtc/datachannel"},getusermedia:{title:"WebRTC/getusermedia",keyPath:"webrtc/getusermedia"},peerconnection:{title:"WebRTC/peerconnection",keyPath:"webrtc/peerconnection"},resizeobserver:{title:"Resizeobserver",keyPath:"window/resizeobserver"},sharedworkers:{title:"Shared Worker",keyPath:"workers/sharedworkers"},webworkers:{title:"Web Worker",keyPath:"workers/webworkers"}},Network:{cors:{title:"Cors",keyPath:"cors"},beacon:{title:"Beacon",keyPath:"network/beacon"},fetch:{title:"Fetch",keyPath:"network/fetch"}},Javascript:{es6array:{title:"ES6 Array",keyPath:"es6/array"},arrow:{title:"ES6 Arrow Function",keyPath:"es6/arrow"},es6class:{title:"ES6 Class",keyPath:"es6/class"},es6collections:{title:"ES6 Collections",keyPath:"es6/collections"},generators:{title:"ES6 Generators",keyPath:"es6/generators"},es6math:{title:"ES6 Math",keyPath:"es6/math"},es6number:{title:"ES6 Number",keyPath:"es6/number"},es6object:{title:"ES6 Object",keyPath:"es6/object"},promises:{title:"ES6 Promise",keyPath:"es6/promises"},restparameters:{title:"ES6 Rest Parameters",keyPath:"es6/rest-parameters"},spreadarray:{title:"ES6 Array Spread",keyPath:"es6/spread-array"},stringtemplate:{title:"ES6 String Template",keyPath:"es6/string-template"},es6string:{title:"ES6 String",keyPath:"es6/string"},es6symbol:{title:"ES6 Symbol",keyPath:"es6/symbol"},proxy:{title:"ES6 Proxy",keyPath:"proxy"},reflect:{title:"ES6 Reflect",customTest:"\"Reflect\" in window &&\n      typeof window.Reflect === 'object' &&\n      typeof Reflect.has === 'function' &&\n      [\n        'apply',\n        'construct',\n        'defineProperty',\n        'deleteProperty',\n        'getOwnPropertyDescriptor',\n        'getPrototypeOf',\n        'has',\n        'isExtensible',\n        'ownKeys',\n        'preventExtensions',\n        'setPrototypeOf',\n      ].every((i) => Reflect.has(Reflect, i))"},es7array:{title:"ES7 Array",keyPath:"es7/array"},restdestructuringarray:{title:"ES7 Rest Destructuring",keyPath:"es7/rest-destructuring"},spreadobject:{title:"ES7 Object Spread",keyPath:"es7/spread-object"},es8object:{title:"ES8 Object",keyPath:"es8/object"},finally:{title:"ES9 Promise Finally",customTest:"<ES6 Promise> && !!Promise.prototype.finally"}},Storage:{cookies:{title:"Cookies",keyPath:"storage/cookies"},indexeddb:{title:"IndexedDB",keyPath:"storage/indexeddb"},localstorage:{title:"LocalStorage",keyPath:"storage/localstorage"},sessionstorage:{title:"SessionStorage",keyPath:"storage/sessionstorage"},websqldatabase:{title:"Web SQL Database",keyPath:"storage/websqldatabase"}}},GT=["indexeddb","apng","avif","exiforientation","webp"];async function WT(){const e={Element:[],Feature:[],Network:[],Javascript:[],Storage:[]};lE(QT).forEach((t=>{const n=QT[t],r=lE(n).map((async e=>{const t=n[e];return t.keyPath&&(t.keyPath="".concat("https://github.com/Modernizr/Modernizr/tree/master/feature-detects","/").concat(t.keyPath,".js")),GT.indexOf(e)>-1?t.supported=await function(e){return new Promise((t=>{Modernizr.on(e,(e=>{t(e)}))}))}(e):t.supported=Modernizr[e],t}));e[t]=r}));for(const t in e)hE(e,t)&&(e[t]=await Promise.all(e[t]));return e}window.Modernizr.addTest("finally",Modernizr.promises&&!!Promise.prototype.finally),window.Modernizr.addTest("reflect","Reflect"in window&&"object"==typeof window.Reflect&&"function"==typeof Reflect.has&&["apply","construct","defineProperty","deleteProperty","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","setPrototypeOf"].every((e=>Reflect.has(Reflect,e))));class VT{constructor(){t(this,"name","SystemPlugin")}onInit(){VT.hasInitd||(VT.hasInitd=!0,PP.addListener("refresh",(async(e,t)=>{let{source:n}=e;const{data:r}=n;if("system"===r){const e=await VT.getSystemInfo();PP.dispatchEvent("public-data",e),t(e)}})))}onReset(){VT.hasInitd=!1}static async getSystemInfo(){const e=await WT();return BE("system",{system:{ua:navigator.userAgent},features:e})}}t(VT,"hasInitd",!1);class JT{constructor(){t(this,"name","PagePlugin")}onInit(){JT.hasInitd||(JT.hasInitd=!0,PP.addListener("refresh",((e,t)=>{let{source:n}=e;const{data:r}=n;if("page"===r){const e=JT.collectHtml();PP.dispatchEvent("public-data",e),t(e)}})))}onReset(){JT.hasInitd=!1}static collectHtml(){return BE("page",{html:document.documentElement.outerHTML,location:window.location})}}t(JT,"hasInitd",!1);class XT{constructor(){t(this,"name","StoragePlugin"),t(this,"originSetItem",null),t(this,"originRemoveItem",null),t(this,"originClear",null),t(this,"cookieStoreChangeListener",null)}onInit(){XT.hasInitd||(XT.hasInitd=!0,XT.listenRefreshEvent(),XT.onceInitPublicData(),this.initStorageProxy())}onReset(){this.originClear&&(Storage.prototype.clear=this.originClear),this.originRemoveItem&&(Storage.prototype.removeItem=this.originRemoveItem),this.originSetItem&&(Storage.prototype.setItem=this.originSetItem),this.cookieStoreChangeListener&&window.cookieStore&&window.cookieStore.removeEventListener("change",this.cookieStoreChangeListener),XT.hasInitd=!1}static async sendRefresh(e){let t=null;switch(e){case"localStorage":case"sessionStorage":t=XT.takeStorage(e);break;case"cookie":t=await XT.takeCookie()}t&&XT.sendStorageItem(t)}static listenRefreshEvent(){PP.addListener("refresh",(async e=>{let{source:t}=e;const{data:n}=t;XT.sendRefresh(n)}))}static takeStorage(e){const t={type:e,action:"get",data:[]},n=window[e],r=n.length;if(!r)return t;for(let e=0;e<=r-1;e++){const r=n.key(e);if(r){const e=n.getItem(r)||"";t.data.push({name:r,value:e})}}return t}static async takeCookie(){const e={type:"cookie",action:"get",data:[]};return window.cookieStore?e.data=await window.cookieStore.getAll():e.data=document.cookie.split("; ").map((e=>{const[t,n]=e.split("=");return{name:t,value:n}})),e}initStorageProxy(){const{getStorageType:e,sendStorageItem:t}=XT,{clear:n,removeItem:r,setItem:o}=Storage.prototype;this.originClear=n,this.originRemoveItem=r,this.originSetItem=o,Storage.prototype.clear=function(){n.call(this);const r={type:e(this),action:"clear"};t(r)},Storage.prototype.removeItem=function(n){r.call(this,n);const o={type:e(this),action:"remove",name:String(n)};t(o)},Storage.prototype.setItem=function(n,r){o.call(this,n,r);const i={type:e(this),action:"set",name:String(n),value:String(r)};t(i)},window.cookieStore&&(this.cookieStoreChangeListener=e=>{const{changed:t,deleted:n}=e;t.length>0&&t.forEach((e=>{const t={type:"cookie",action:"set",...e};XT.sendStorageItem(t)})),n.length>0&&n.forEach((e=>{const t={type:"cookie",action:"remove",name:e.name};XT.sendStorageItem(t)}))},window.cookieStore.addEventListener("change",this.cookieStoreChangeListener))}static async onceInitPublicData(){(await Promise.all([XT.takeStorage("localStorage"),XT.takeStorage("sessionStorage"),XT.takeCookie()])).forEach((e=>{const t=BE("storage",e);PP.dispatchEvent("public-data",t)}))}static getStorageType(e){return e===localStorage?"localStorage":e===sessionStorage?"sessionStorage":e.constructor.name}static sendStorageItem(e){const t=BE("storage",e);PP.dispatchEvent("public-data",t),PP.broadcastMessage(t,!0)}}function $T(e){return new Promise(((t,n)=>{e.addEventListener("success",(()=>{t(e.result)})),e.addEventListener("error",(()=>{n()}))}))}t(XT,"hasInitd",!1);class YT{constructor(){t(this,"name","DatabasePlugin"),t(this,"originAdd",null),t(this,"originPut",null),t(this,"originDelete",null),t(this,"originClear",null),t(this,"originDrop",null)}static get isSupport(){return!!(IDBFactory&&IDBObjectStore&&window.indexedDB&&window.indexedDB.databases)}onInit(){YT.isSupport&&(YT.hasInitd||(YT.hasInitd=!0,YT.listenEvents(),this.initIndexedDBProxy()))}onReset(){this.originAdd&&(IDBObjectStore.prototype.add=this.originAdd),this.originPut&&(IDBObjectStore.prototype.put=this.originPut),this.originClear&&(IDBObjectStore.prototype.clear=this.originClear),this.originDelete&&(IDBObjectStore.prototype.delete=this.originDelete),this.originDrop&&(IDBFactory.prototype.deleteDatabase=this.originDrop),YT.hasInitd=!1}static listenEvents(){PP.addListener("refresh",(async e=>{let{source:t}=e;if("indexedDB"===t.data){const e={action:"basic",result:await this.takeBasicInfo()};YT.sendData(e)}})),PP.addListener("database-pagination",(async e=>{let{source:t}=e;const{db:n,store:r,page:o}=t.data,i=await YT.getStoreDataWithPagination({db:n,store:r,page:o});YT.sendData(i)}))}initIndexedDBProxy(){const{put:e,add:t,delete:n,clear:r}=IDBObjectStore.prototype;this.originAdd=t,this.originPut=e,this.originDelete=n,this.originClear=r;const{sendData:o}=YT;[{origin:e,method:"put"},{origin:t,method:"add"},{origin:n,method:"delete"},{origin:r,method:"clear"}].forEach((e=>{let{origin:t,method:n}=e;IDBObjectStore.prototype[n]=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];const a=t.apply(this,r),s={action:"clear"===n?"clear":"update",database:this.transaction.db.name,store:this.name};return a.addEventListener("success",(()=>{o(s)})),a}}));const i=IDBFactory.prototype.deleteDatabase;this.originDrop=i,IDBFactory.prototype.deleteDatabase=function(e){const t=i.call(this,e),n={action:"drop",database:e};return t.addEventListener("success",(()=>{o(n)})),t}}static async takeBasicInfo(){const e=await window.indexedDB.databases();if(!e.length)return null;const t=e.filter((e=>e.name&&e.version));if(!t.length)return null;return(await Promise.all(t.map((e=>YT.getDBData(e))))).filter(Boolean)}static async getDBData(e){try{const t={name:e.name,version:e.version,stores:[]},n=await $T(window.indexedDB.open(e.name,e.version));if(n.objectStoreNames.length){const e=[...n.objectStoreNames].map((e=>n.transaction(e,"readonly").objectStore(e)));t.stores=e.map((e=>{const{name:t,keyPath:n,autoIncrement:r,indexNames:o}=e;return{name:t,keyPath:n,autoIncrement:r,indexes:[...o]}}))}return t}catch(e){return TE.error("Failed to get indexedDB data, more info: ".concat(e.message)),null}}static async getStoreDataWithPagination(e){let{db:t,store:n,page:r}=e;const o={action:"get",database:null,store:null,page:{current:r,prev:null,next:null},total:0,data:[]};if(r<1)return o;const i=await $T(window.indexedDB.open(t)),a=i.transaction(n,"readonly").objectStore(n);o.database={name:i.name,version:i.version},o.store={name:a.name,keyPath:a.keyPath,autoIncrement:a.autoIncrement,indexes:[...a.indexNames]},o.total=await $T(a.count());const s=50*(r-1),c=50*r;o.page.prev=r>1?r-1:null,o.page.next=s+50<o.total?r+1:null;let u=0;const l=a.openCursor();return new Promise(((e,t)=>{l.addEventListener("success",(()=>{const t=l.result;t?(u>=s&&u<c&&o.data.push({key:t.key,value:t.value}),u++,t.continue()):e(o)})),l.addEventListener("error",t)}))}static sendData(e){const t=BE("database",e);PP.broadcastMessage(t,!0),["update","clear","drop"].includes(e.action)&&PP.dispatchEvent("public-data",t)}}t(YT,"hasInitd",!1);var KT=s,ZT=c,eR=nt("iterator"),tR=!KT((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.size&&!ZT||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[eR]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),nR=Vn,rR=Rt,oR=function(e,t,n){return n.get&&nR(n.get,t,{getter:!0}),n.set&&nR(n.set,t,{setter:!0}),rR.f(e,t,n)},iR=Kn,aR=Y,sR=TypeError,cR=function(e,t){if(aR(t,e))return e;throw sR("Incorrect invocation")},uR=R,lR=k,fR=function(e){if("Function"===uR(e))return lR(e)},hR=be,pR=u,dR=fR(fR.bind),gR=function(e,t){return hR(e),void 0===t?e:pR?dR(e,t):function(){return e.apply(t,arguments)}},mR=nx,yR=Ee,vR=B,AR=$o,bR=nt("iterator"),wR=function(e){if(!vR(e))return yR(e,bR)||yR(e,"@@iterator")||AR[mR(e)]},SR=h,ER=be,kR=Ct,PR=me,xR=wR,TR=TypeError,RR=function(e,t){var n=arguments.length<2?xR(e):t;if(ER(n))return kR(SR(n,e));throw TR(PR(e)+" is not iterable")},OR=TypeError,LR=function(e,t){if(e<t)throw OR("Not enough arguments");return e},IR=ht,jR=Rt,CR=A,BR=function(e,t,n){var r=IR(t);r in e?jR.f(e,r,CR(0,n)):e[r]=n},UR=sr,DR=fr,MR=BR,qR=Array,_R=Math.max,NR=function(e,t,n){for(var r=DR(e),o=UR(t,r),i=UR(void 0===n?r:n,r),a=qR(_R(i-o,0)),s=0;o<i;o++,s++)MR(a,s,e[o]);return a.length=s,a},HR=NR,zR=Math.floor,FR=function(e,t){var n=e.length,r=zR(n/2);return n<8?QR(e,t):GR(e,FR(HR(e,0,r),t),FR(HR(e,r),t),t)},QR=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},GR=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e},WR=eo,VR=i,JR=h,XR=k,$R=c,YR=tR,KR=Kn,ZR=oR,eO=function(e,t,n){for(var r in t)iR(e,r,t[r],n);return e},tO=vi,nO=Pi,rO=On,oO=cR,iO=Q,aO=ze,sO=gR,cO=nx,uO=Ct,lO=V,fO=ix,hO=Ho,pO=A,dO=RR,gO=wR,mO=LR,yO=FR,vO=nt("iterator"),AO="URLSearchParams",bO=AO+"Iterator",wO=rO.set,SO=rO.getterFor(AO),EO=rO.getterFor(bO),kO=Object.getOwnPropertyDescriptor,PO=function(e){if(!$R)return VR[e];var t=kO(VR,e);return t&&t.value},xO=PO("fetch"),TO=PO("Request"),RO=PO("Headers"),OO=TO&&TO.prototype,LO=RO&&RO.prototype,IO=VR.RegExp,jO=VR.TypeError,CO=VR.decodeURIComponent,BO=VR.encodeURIComponent,UO=XR("".charAt),DO=XR([].join),MO=XR([].push),qO=XR("".replace),_O=XR([].shift),NO=XR([].splice),HO=XR("".split),zO=XR("".slice),FO=/\+/g,QO=Array(4),GO=function(e){return QO[e-1]||(QO[e-1]=IO("((?:%[\\da-f]{2}){"+e+"})","gi"))},WO=function(e){try{return CO(e)}catch(t){return e}},VO=function(e){var t=qO(e,FO," "),n=4;try{return CO(t)}catch(e){for(;n;)t=qO(t,GO(n--),WO);return t}},JO=/[!'()~]|%20/g,XO={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},$O=function(e){return XO[e]},YO=function(e){return qO(BO(e),JO,$O)},KO=nO((function(e,t){wO(this,{type:bO,iterator:dO(SO(e).entries),kind:t})}),"Iterator",(function(){var e=EO(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),ZO=function(e){this.entries=[],this.url=null,void 0!==e&&(lO(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===UO(e,0)?zO(e,1):e:fO(e)))};ZO.prototype={type:AO,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,a,s,c=gO(e);if(c)for(n=(t=dO(e,c)).next;!(r=JR(n,t)).done;){if(i=(o=dO(uO(r.value))).next,(a=JR(i,o)).done||(s=JR(i,o)).done||!JR(i,o).done)throw jO("Expected sequence with length 2");MO(this.entries,{key:fO(a.value),value:fO(s.value)})}else for(var u in e)aO(e,u)&&MO(this.entries,{key:u,value:fO(e[u])})},parseQuery:function(e){if(e)for(var t,n,r=HO(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=HO(t,"="),MO(this.entries,{key:VO(_O(n)),value:VO(DO(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],MO(n,YO(e.key)+"="+YO(e.value));return DO(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var eL=function(){oO(this,tL);var e=wO(this,new ZO(arguments.length>0?arguments[0]:void 0));$R||(this.length=e.entries.length)},tL=eL.prototype;if(eO(tL,{append:function(e,t){mO(arguments.length,2);var n=SO(this);MO(n.entries,{key:fO(e),value:fO(t)}),$R||this.length++,n.updateURL()},delete:function(e){mO(arguments.length,1);for(var t=SO(this),n=t.entries,r=fO(e),o=0;o<n.length;)n[o].key===r?NO(n,o,1):o++;$R||(this.length=n.length),t.updateURL()},get:function(e){mO(arguments.length,1);for(var t=SO(this).entries,n=fO(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){mO(arguments.length,1);for(var t=SO(this).entries,n=fO(e),r=[],o=0;o<t.length;o++)t[o].key===n&&MO(r,t[o].value);return r},has:function(e){mO(arguments.length,1);for(var t=SO(this).entries,n=fO(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){mO(arguments.length,1);for(var n,r=SO(this),o=r.entries,i=!1,a=fO(e),s=fO(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?NO(o,c--,1):(i=!0,n.value=s));i||MO(o,{key:a,value:s}),$R||(this.length=o.length),r.updateURL()},sort:function(){var e=SO(this);yO(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=SO(this).entries,r=sO(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new KO(this,"keys")},values:function(){return new KO(this,"values")},entries:function(){return new KO(this,"entries")}},{enumerable:!0}),KR(tL,vO,tL.entries,{name:"entries"}),KR(tL,"toString",(function(){return SO(this).serialize()}),{enumerable:!0}),$R&&ZR(tL,"size",{get:function(){return SO(this).entries.length},configurable:!0,enumerable:!0}),tO(eL,AO),WR({global:!0,constructor:!0,forced:!YR},{URLSearchParams:eL}),!YR&&iO(RO)){var nL=XR(LO.has),rL=XR(LO.set),oL=function(e){if(lO(e)){var t,n=e.body;if(cO(n)===AO)return t=e.headers?new RO(e.headers):new RO,nL(t,"content-type")||rL(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hO(e,{body:pO(0,fO(n)),headers:pO(0,t)})}return e};if(iO(xO)&&WR({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return xO(e,arguments.length>1?oL(arguments[1]):{})}}),iO(TO)){var iL=function(e){return oO(this,OO),new TO(e,arguments.length>1?oL(arguments[1]):{})};OO.constructor=iL,iL.prototype=OO,WR({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:iL})}}var aL={URLSearchParams:eL,getState:SO},sL=c,cL=k,uL=oR,lL=URLSearchParams.prototype,fL=cL(lL.forEach);sL&&!("size"in lL)&&uL(lL,"size",{get:function(){var e=0;return fL(this,(function(){e++})),e},configurable:!0,enumerable:!0});const hL=e=>{const t=new URLSearchParams;return Object.entries(e).forEach((e=>{let[n,r]=e;t.append(n,String(r))})),t.toString()};class pL{constructor(e){if(this.config=e,!e.api)throw Error("The api base url cannot be empty")}get base(){return this.config.api}getScheme(){return this.config.enableSSL?["https://","wss://"]:["http://","ws://"]}createRoom(){const{project:e,title:t,useSecret:n,secret:r}=this.config,o=this.getScheme(),i=hL({name:navigator.userAgent,group:e,title:t});return fetch("".concat(o[0]).concat(this.base,"/api/v1/room/create?").concat(i),{method:"POST",body:JSON.stringify({useSecret:n,secret:r})}).then((e=>e.json())).then((e=>{const{name:t,address:n}=e.data||{};return{roomUrl:this.getRoomUrl(n),address:n,name:t}})).catch((e=>{throw Error("Request create room failed: ".concat(e.message))}))}getRoomUrl(e){const t=this.getScheme(),{useSecret:n,secret:r}=this.config;return"".concat(t[1]).concat(this.base,"/api/v1/ws/room/join?").concat(hL({address:e,name:"client:".concat(uE()),userId:"Client",forceCreate:!0,useSecret:n,secret:r}))}}const dL="50%",gL="100%";function mL(e){return window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("#__pageSpy {\n  font-size: 14px;\n}\n#__pageSpy .page-spy-logo {\n  --top-radius: 100%;\n  --right-radius: 100%;\n  --bottom-radius: 100%;\n  --left-radius: 100%;\n  position: fixed;\n  right: 2.85714286em;\n  bottom: 5.71428571em;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  width: 5.71428571em;\n  height: 5.71428571em;\n  font-size: 1em;\n  border-radius: 5.71428571em;\n  background-color: #fff;\n  box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.2);\n  cursor: pointer;\n  z-index: 13000;\n  transition: opacity ease-in-out 0.3s, transform ease-in-out 0.3s, background-color ease-in-out 0.3s, filter ease-in-out 0.3s;\n}\n#__pageSpy .page-spy-logo.inactive {\n  background-color: #a2a2a2;\n  filter: grayscale(1);\n}\n#__pageSpy .page-spy-logo::after {\n  content: '';\n  display: block;\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n  transform: rotateZ(45deg);\n  background-color: white;\n  border-top-left-radius: var(--top-radius);\n  border-top-right-radius: var(--right-radius);\n  border-bottom-right-radius: var(--bottom-radius);\n  border-bottom-left-radius: var(--left-radius);\n  transition: border-radius linear 0.15s;\n}\n#__pageSpy .page-spy-logo .hidden-mixin {\n  opacity: 0.35;\n}\n#__pageSpy .page-spy-logo.hidden-in-top {\n  opacity: 0.35;\n  transform: translateY(-65%);\n}\n#__pageSpy .page-spy-logo.hidden-in-top img {\n  transform: translateY(30%);\n}\n#__pageSpy .page-spy-logo.hidden-in-right {\n  opacity: 0.35;\n  transform: translateX(65%);\n}\n#__pageSpy .page-spy-logo.hidden-in-right img {\n  transform: translateX(-30%);\n}\n#__pageSpy .page-spy-logo.hidden-in-bottom {\n  opacity: 0.35;\n  transform: translateY(65%);\n}\n#__pageSpy .page-spy-logo.hidden-in-bottom img {\n  transform: translateY(-30%);\n}\n#__pageSpy .page-spy-logo.hidden-in-left {\n  opacity: 0.35;\n  transform: translateX(-65%);\n}\n#__pageSpy .page-spy-logo.hidden-in-left img {\n  transform: translateX(30%);\n}\n#__pageSpy .page-spy-logo img {\n  position: relative;\n  display: block;\n  z-index: 100;\n  transition: transform ease-in-out 0.1s 0.4s;\n}\n#__pageSpy .page-spy-modal {\n  position: fixed;\n  left: 0;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background-color: rgba(0, 0, 0, 0.5);\n  opacity: 0;\n  transition: all ease-out 0.3s;\n  z-index: 13000;\n}\n#__pageSpy .page-spy-modal.show {\n  opacity: 1;\n}\n#__pageSpy .page-spy-content {\n  width: 75%;\n  max-width: 25em;\n  background-color: #fafafa;\n  border-radius: 0.28571429em;\n  text-align: center;\n}\n#__pageSpy .page-spy-content__info {\n  padding: 1.71428571em 1.14285714em;\n  font-size: 1.14285714em;\n  line-height: 1.5;\n  text-align: left;\n  color: #202124;\n  letter-spacing: 2px;\n}\n#__pageSpy .page-spy-content__info > p {\n  margin: 0;\n  padding: 0;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n#__pageSpy .page-spy-content__info > p b {\n  display: inline-block;\n  width: 6.57142857em;\n  text-align: right;\n  margin-right: 10px;\n}\n#__pageSpy .page-spy-content__btn {\n  padding: 0.57142857em 0;\n  border-top: 1px solid #eee;\n  font-size: 1.14285714em;\n  line-height: 1.5;\n  color: transparent;\n  -webkit-background-clip: text;\n          background-clip: text;\n  background-image: linear-gradient(45deg, #efdfff, #4e00b1 52%, #3d0c7c);\n  cursor: pointer;\n}\n.page-spy-toast {\n  position: fixed;\n  left: 50%;\n  top: 10%;\n  transform: translateX(-50%);\n  max-width: 50vw;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  padding: 6px 12px;\n  color: #9a62e4;\n  font-size: 14px;\n  background-color: #fafafa;\n  border-radius: 4px;\n  box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.2);\n  z-index: 99999;\n}\n");var yL=k,vL=rr,AL=ix,bL=M,wL=yL("".charAt),SL=yL("".charCodeAt),EL=yL("".slice),kL=function(e){return function(t,n){var r,o,i=AL(bL(t)),a=vL(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=SL(i,a))<55296||r>56319||a+1===s||(o=SL(i,a+1))<56320||o>57343?e?wL(i,a):r:e?EL(i,a,a+2):o-56320+(r-55296<<10)+65536}},PL={codeAt:kL(!1),charAt:kL(!0)},xL=PL.charAt,TL=ix,RL=On,OL=ea,LL=ta,IL="String Iterator",jL=RL.set,CL=RL.getterFor(IL);OL(String,"String",(function(e){jL(this,{type:IL,string:TL(e),index:0})}),(function(){var e,t=CL(this),n=t.string,r=t.index;return r>=n.length?LL(void 0,!0):(e=xL(n,r),t.index+=e.length,LL(e,!1))}));var BL,UL=c,DL=k,ML=h,qL=s,_L=Ao,NL=xr,HL=p,zL=_e,FL=C,QL=Object.assign,GL=Object.defineProperty,WL=DL([].concat),VL=!QL||qL((function(){if(UL&&1!==QL({b:1},QL(GL({},"a",{enumerable:!0,get:function(){GL(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=QL({},e)[n]||_L(QL({},t)).join("")!=r}))?function(e,t){for(var n=zL(e),r=arguments.length,o=1,i=NL.f,a=HL.f;r>o;)for(var s,c=FL(arguments[o++]),u=i?WL(_L(c),i(c)):_L(c),l=u.length,f=0;l>f;)s=u[f++],UL&&!ML(a,c,s)||(n[s]=c[s]);return n}:QL,JL=h,XL=Ct,$L=Ee,YL=Ct,KL=function(e,t,n){var r,o;XL(e);try{if(!(r=$L(e,"return"))){if("throw"===t)throw n;return n}r=JL(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return XL(r),n},ZL=$o,eI=nt("iterator"),tI=Array.prototype,nI=gR,rI=h,oI=_e,iI=function(e,t,n,r){try{return r?t(YL(n)[0],n[1]):t(n)}catch(t){KL(e,"throw",t)}},aI=function(e){return void 0!==e&&(ZL.Array===e||tI[eI]===e)},sI=pT,cI=fr,uI=BR,lI=RR,fI=wR,hI=Array,pI=k,dI=2147483647,gI=/[^\0-\u007E]/,mI=/[.\u3002\uFF0E\uFF61]/g,yI="Overflow: input needs wider integers to process",vI=RangeError,AI=pI(mI.exec),bI=Math.floor,wI=String.fromCharCode,SI=pI("".charCodeAt),EI=pI([].join),kI=pI([].push),PI=pI("".replace),xI=pI("".split),TI=pI("".toLowerCase),RI=function(e){return e+22+75*(e<26)},OI=function(e,t,n){var r=0;for(e=n?bI(e/700):e>>1,e+=bI(e/t);e>455;)e=bI(e/35),r+=36;return bI(r+36*e/(e+38))},LI=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=SI(e,n++);if(o>=55296&&o<=56319&&n<r){var i=SI(e,n++);56320==(64512&i)?kI(t,((1023&o)<<10)+(1023&i)+65536):(kI(t,o),n--)}else kI(t,o)}return t}(e);var n,r,o=e.length,i=128,a=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&kI(t,wI(r));var c=t.length,u=c;for(c&&kI(t,"-");u<o;){var l=dI;for(n=0;n<e.length;n++)(r=e[n])>=i&&r<l&&(l=r);var f=u+1;if(l-i>bI((dI-a)/f))throw vI(yI);for(a+=(l-i)*f,i=l,n=0;n<e.length;n++){if((r=e[n])<i&&++a>dI)throw vI(yI);if(r==i){for(var h=a,p=36;;){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var g=h-d,m=36-d;kI(t,wI(RI(d+g%m))),h=bI(g/m),p+=36}kI(t,wI(RI(h))),s=OI(a,f,u==c),a=0,u++}}a++,i++}return EI(t,"")},II=eo,jI=c,CI=tR,BI=i,UI=gR,DI=k,MI=Kn,qI=oR,_I=cR,NI=ze,HI=VL,zI=function(e){var t=oI(e),n=sI(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=nI(o,r>2?arguments[2]:void 0));var a,s,c,u,l,f,h=fI(t),p=0;if(!h||this===hI&&aI(h))for(a=cI(t),s=n?new this(a):hI(a);a>p;p++)f=i?o(t[p],p):t[p],uI(s,p,f);else for(l=(u=lI(t,h)).next,s=n?new this:[];!(c=rI(l,u)).done;p++)f=i?iI(u,o,[c.value,p],!0):c.value,uI(s,p,f);return s.length=p,s},FI=NR,QI=PL.codeAt,GI=function(e){var t,n,r=[],o=xI(PI(TI(e),mI,"."),".");for(t=0;t<o.length;t++)n=o[t],kI(r,AI(gI,n)?"xn--"+LI(n):n);return EI(r,".")},WI=ix,VI=vi,JI=LR,XI=aL,$I=On,YI=$I.set,KI=$I.getterFor("URL"),ZI=XI.URLSearchParams,ej=XI.getState,tj=BI.URL,nj=BI.TypeError,rj=BI.parseInt,oj=Math.floor,ij=Math.pow,aj=DI("".charAt),sj=DI(/./.exec),cj=DI([].join),uj=DI(1..toString),lj=DI([].pop),fj=DI([].push),hj=DI("".replace),pj=DI([].shift),dj=DI("".split),gj=DI("".slice),mj=DI("".toLowerCase),yj=DI([].unshift),vj="Invalid scheme",Aj="Invalid host",bj="Invalid port",wj=/[a-z]/i,Sj=/[\d+-.a-z]/i,Ej=/\d/,kj=/^0x/i,Pj=/^[0-7]+$/,xj=/^\d+$/,Tj=/^[\da-f]+$/i,Rj=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Oj=/[\0\t\n\r #/:<>?@[\\\]^|]/,Lj=/^[\u0000-\u0020]+/,Ij=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,jj=/[\t\n\r]/g,Cj=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)yj(t,e%256),e=oj(e/256);return cj(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=uj(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Bj={},Uj=HI({},Bj,{" ":1,'"':1,"<":1,">":1,"`":1}),Dj=HI({},Uj,{"#":1,"?":1,"{":1,"}":1}),Mj=HI({},Dj,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),qj=function(e,t){var n=QI(e,0);return n>32&&n<127&&!NI(t,e)?e:encodeURIComponent(e)},_j={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Nj=function(e,t){var n;return 2==e.length&&sj(wj,aj(e,0))&&(":"==(n=aj(e,1))||!t&&"|"==n)},Hj=function(e){var t;return e.length>1&&Nj(gj(e,0,2))&&(2==e.length||"/"===(t=aj(e,2))||"\\"===t||"?"===t||"#"===t)},zj=function(e){return"."===e||"%2e"===mj(e)},Fj={},Qj={},Gj={},Wj={},Vj={},Jj={},Xj={},$j={},Yj={},Kj={},Zj={},eC={},tC={},nC={},rC={},oC={},iC={},aC={},sC={},cC={},uC={},lC=function(e,t,n){var r,o,i,a=WI(e);if(t){if(o=this.parse(a))throw nj(o);this.searchParams=null}else{if(void 0!==n&&(r=new lC(n,!0)),o=this.parse(a,null,r))throw nj(o);(i=ej(new ZI)).bindURL(this),this.searchParams=i}};lC.prototype={type:"URL",parse:function(e,t,n){var r,o,i,a,s,c=this,u=t||Fj,l=0,f="",h=!1,p=!1,d=!1;for(e=WI(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=hj(e,Lj,""),e=hj(e,Ij,"$1")),e=hj(e,jj,""),r=zI(e);l<=r.length;){switch(o=r[l],u){case Fj:if(!o||!sj(wj,o)){if(t)return vj;u=Gj;continue}f+=mj(o),u=Qj;break;case Qj:if(o&&(sj(Sj,o)||"+"==o||"-"==o||"."==o))f+=mj(o);else{if(":"!=o){if(t)return vj;f="",u=Gj,l=0;continue}if(t&&(c.isSpecial()!=NI(_j,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&_j[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?u=nC:c.isSpecial()&&n&&n.scheme==c.scheme?u=Wj:c.isSpecial()?u=$j:"/"==r[l+1]?(u=Vj,l++):(c.cannotBeABaseURL=!0,fj(c.path,""),u=sC)}break;case Gj:if(!n||n.cannotBeABaseURL&&"#"!=o)return vj;if(n.cannotBeABaseURL&&"#"==o){c.scheme=n.scheme,c.path=FI(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=uC;break}u="file"==n.scheme?nC:Jj;continue;case Wj:if("/"!=o||"/"!=r[l+1]){u=Jj;continue}u=Yj,l++;break;case Vj:if("/"==o){u=Kj;break}u=aC;continue;case Jj:if(c.scheme=n.scheme,o==BL)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=FI(n.path),c.query=n.query;else if("/"==o||"\\"==o&&c.isSpecial())u=Xj;else if("?"==o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=FI(n.path),c.query="",u=cC;else{if("#"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=FI(n.path),c.path.length--,u=aC;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=FI(n.path),c.query=n.query,c.fragment="",u=uC}break;case Xj:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=aC;continue}u=Kj}else u=Yj;break;case $j:if(u=Yj,"/"!=o||"/"!=aj(f,l+1))continue;l++;break;case Yj:if("/"!=o&&"\\"!=o){u=Kj;continue}break;case Kj:if("@"==o){h&&(f="%40"+f),h=!0,i=zI(f);for(var g=0;g<i.length;g++){var m=i[g];if(":"!=m||d){var y=qj(m,Mj);d?c.password+=y:c.username+=y}else d=!0}f=""}else if(o==BL||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(h&&""==f)return"Invalid authority";l-=zI(f).length+1,f="",u=Zj}else f+=o;break;case Zj:case eC:if(t&&"file"==c.scheme){u=oC;continue}if(":"!=o||p){if(o==BL||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==f)return Aj;if(t&&""==f&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(f))return a;if(f="",u=iC,t)return;continue}"["==o?p=!0:"]"==o&&(p=!1),f+=o}else{if(""==f)return Aj;if(a=c.parseHost(f))return a;if(f="",u=tC,t==eC)return}break;case tC:if(!sj(Ej,o)){if(o==BL||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=f){var v=rj(f,10);if(v>65535)return bj;c.port=c.isSpecial()&&v===_j[c.scheme]?null:v,f=""}if(t)return;u=iC;continue}return bj}f+=o;break;case nC:if(c.scheme="file","/"==o||"\\"==o)u=rC;else{if(!n||"file"!=n.scheme){u=aC;continue}if(o==BL)c.host=n.host,c.path=FI(n.path),c.query=n.query;else if("?"==o)c.host=n.host,c.path=FI(n.path),c.query="",u=cC;else{if("#"!=o){Hj(cj(FI(r,l),""))||(c.host=n.host,c.path=FI(n.path),c.shortenPath()),u=aC;continue}c.host=n.host,c.path=FI(n.path),c.query=n.query,c.fragment="",u=uC}}break;case rC:if("/"==o||"\\"==o){u=oC;break}n&&"file"==n.scheme&&!Hj(cj(FI(r,l),""))&&(Nj(n.path[0],!0)?fj(c.path,n.path[0]):c.host=n.host),u=aC;continue;case oC:if(o==BL||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Nj(f))u=aC;else if(""==f){if(c.host="",t)return;u=iC}else{if(a=c.parseHost(f))return a;if("localhost"==c.host&&(c.host=""),t)return;f="",u=iC}continue}f+=o;break;case iC:if(c.isSpecial()){if(u=aC,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=BL&&(u=aC,"/"!=o))continue}else c.fragment="",u=uC;else c.query="",u=cC;break;case aC:if(o==BL||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=mj(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||fj(c.path,"")):zj(f)?"/"==o||"\\"==o&&c.isSpecial()||fj(c.path,""):("file"==c.scheme&&!c.path.length&&Nj(f)&&(c.host&&(c.host=""),f=aj(f,0)+":"),fj(c.path,f)),f="","file"==c.scheme&&(o==BL||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)pj(c.path);"?"==o?(c.query="",u=cC):"#"==o&&(c.fragment="",u=uC)}else f+=qj(o,Dj);break;case sC:"?"==o?(c.query="",u=cC):"#"==o?(c.fragment="",u=uC):o!=BL&&(c.path[0]+=qj(o,Bj));break;case cC:t||"#"!=o?o!=BL&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":qj(o,Bj)):(c.fragment="",u=uC);break;case uC:o!=BL&&(c.fragment+=qj(o,Uj))}l++}},parseHost:function(e){var t,n,r;if("["==aj(e,0)){if("]"!=aj(e,e.length-1))return Aj;if(t=function(e){var t,n,r,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return aj(e,f)};if(":"==h()){if(":"!=aj(e,1))return;f+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=n=0;n<4&&sj(Tj,h());)t=16*t+rj(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,u>6)return;for(r=0;h();){if(o=null,r>0){if(!("."==h()&&r<4))return;f++}if(!sj(Ej,h()))return;for(;sj(Ej,h());){if(i=rj(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c}(gj(e,1,-1)),!t)return Aj;this.host=t}else if(this.isSpecial()){if(e=GI(e),sj(Rj,e))return Aj;if(t=function(e){var t,n,r,o,i,a,s,c=dj(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(i=10,o.length>1&&"0"==aj(o,0)&&(i=sj(kj,o)?16:8,o=gj(o,8==i?1:2)),""===o)a=0;else{if(!sj(10==i?xj:8==i?Pj:Tj,o))return e;a=rj(o,i)}fj(n,a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=ij(256,5-t))return null}else if(a>255)return null;for(s=lj(n),r=0;r<n.length;r++)s+=n[r]*ij(256,3-r);return s}(e),null===t)return Aj;this.host=t}else{if(sj(Oj,e))return Aj;for(t="",n=zI(e),r=0;r<n.length;r++)t+=qj(n[r],Bj);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return NI(_j,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Nj(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=Cj(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+cj(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw nj(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new fC(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Cj(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(WI(e)+":",Fj)},getUsername:function(){return this.username},setUsername:function(e){var t=zI(WI(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=qj(t[n],Mj)}},getPassword:function(){return this.password},setPassword:function(e){var t=zI(WI(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=qj(t[n],Mj)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Cj(e):Cj(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Zj)},getHostname:function(){var e=this.host;return null===e?"":Cj(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,eC)},getPort:function(){var e=this.port;return null===e?"":WI(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=WI(e))?this.port=null:this.parse(e,tC))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+cj(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,iC))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=WI(e))?this.query=null:("?"==aj(e,0)&&(e=gj(e,1)),this.query="",this.parse(e,cC)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=WI(e))?("#"==aj(e,0)&&(e=gj(e,1)),this.fragment="",this.parse(e,uC)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var fC=function(e){var t=_I(this,hC),n=JI(arguments.length,1)>1?arguments[1]:void 0,r=YI(t,new lC(e,!1,n));jI||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},hC=fC.prototype,pC=function(e,t){return{get:function(){return KI(this)[e]()},set:t&&function(e){return KI(this)[t](e)},configurable:!0,enumerable:!0}};if(jI&&(qI(hC,"href",pC("serialize","setHref")),qI(hC,"origin",pC("getOrigin")),qI(hC,"protocol",pC("getProtocol","setProtocol")),qI(hC,"username",pC("getUsername","setUsername")),qI(hC,"password",pC("getPassword","setPassword")),qI(hC,"host",pC("getHost","setHost")),qI(hC,"hostname",pC("getHostname","setHostname")),qI(hC,"port",pC("getPort","setPort")),qI(hC,"pathname",pC("getPathname","setPathname")),qI(hC,"search",pC("getSearch","setSearch")),qI(hC,"searchParams",pC("getSearchParams")),qI(hC,"hash",pC("getHash","setHash"))),MI(hC,"toJSON",(function(){return KI(this).serialize()}),{enumerable:!0}),MI(hC,"toString",(function(){return KI(this).serialize()}),{enumerable:!0}),tj){var dC=tj.createObjectURL,gC=tj.revokeObjectURL;dC&&MI(fC,"createObjectURL",UI(dC,tj)),gC&&MI(fC,"revokeObjectURL",UI(gC,tj))}VI(fC,"URL"),II({global:!0,constructor:!0,forced:!CI,sham:!jI},{URL:fC});var mC=h;eo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return mC(URL.prototype.toString,this)}});class yC{defaultConfig(){return{}}constructor(){t(this,"mergeConfig",(e=>{const t=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return this.privateKeys.includes(n)||(e[n]=r),e}),{});return this.value={...this.defaultConfig(),...t},this.value})),this.value=this.defaultConfig()}get(){return this.value}set(e,t){this.value[e]=t}}var vC;class AC extends yC{constructor(){super(...arguments),t(this,"privateKeys",["secret"]),t(this,"defaultConfig",(()=>{const e={api:"",clientOrigin:"",project:"default",autoRender:!0,title:"--",enableSSL:null,disabledPlugins:[],offline:!1,logo:"data:image/svg+xml,%3csvg width='255' height='255' viewBox='0 0 255 255' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M183 24L81 126V141.5L90 150.5H105L145 110.5H160.5L169.5 119.5V133.5L72 231' stroke='url(%23paint0_linear_106_8)' stroke-width='25' stroke-linecap='round' /%3e %3cdefs%3e %3clinearGradient id='paint0_linear_106_8' x1='127.5' y1='24' x2='127.5' y2='231' gradientUnits='userSpaceOnUse'%3e %3cstop stop-color='%233D0C7C' /%3e %3cstop offset='0.519204' stop-color='%234E00B1' /%3e %3cstop offset='1' stop-color='%23EFDFFF' /%3e %3c/linearGradient%3e %3c/defs%3e%3c/svg%3e",logoStyle:{},messageCapacity:1e3,useSecret:!1,secret:""};if(!AC.scriptLink)return e;try{const{host:t,origin:n,protocol:r}=new URL(AC.scriptLink);return{...e,api:t,clientOrigin:n,enableSSL:r.startsWith("https")}}catch(t){return e}}))}}t(AC,"scriptLink",null===(vC=document.currentScript)||void 0===vC?void 0:vC.src);class bC{static message(e){const t=document.createElement("div");t.classList.add("page-spy-toast"),t.innerText=String(e),document.documentElement.appendChild(t);const n=setTimeout((()=>{document.contains(t)&&document.documentElement.removeChild(t),bC.timer===n&&(bC.timer=null)}),1500);bC.timer=n}static destroy(){const e=document.querySelectorAll(".page-spy-toast");e.length&&([...e].forEach((e=>{document.contains(e)&&document.documentElement.removeChild(e)})),bC.timer&&clearTimeout(bC.timer)),bC.timer=null}}t(bC,"timer",null);const wC="__pageSpy";class SC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t(this,"root",null),t(this,"version","1.8.6"),t(this,"request",null),t(this,"name",""),t(this,"address",""),t(this,"roomUrl",""),t(this,"socketStore",PP),t(this,"config",new AC),t(this,"cacheTimer",null),SC.instance)return TE.warn("Cannot initialize PageSpy multiple times"),SC.instance;SC.instance=this;const n=this.config.mergeConfig(e);this.updateConfiguration(),this.triggerPlugins("onInit",{config:n,socketStore:PP}),this.init()}updateConfiguration(){const{messageCapacity:e,offline:t,useSecret:n}=this.config.get();if(!0===n){const e=JSON.parse(sessionStorage.getItem(RE));this.config.set("secret",(null==e?void 0:e.secret)||function(){const e=Math.floor(1e6*Math.random());return String(e).padStart(6,"0")}())}PP.getPageSpyConfig=()=>this.config.get(),PP.isOffline=t,PP.messageCapacity=e}async init(){const e=this.config.get();if(!1===e.offline){this.request=new pL(e);const t=sessionStorage.getItem(RE);if(null===t)await this.createNewConnection();else{const{name:n,address:r,roomUrl:o,project:i}=JSON.parse(t);e.project!==i?await this.createNewConnection():(this.name=n,this.address=r,this.roomUrl=o,this.useOldConnection())}document.addEventListener("visibilitychange",(()=>{document.hidden||PP.connectionStatus||this.useOldConnection()}))}TE.log("Plugins inited"),e.autoRender&&this.render()}async createNewConnection(){if(!this.request)return void TE.error("Cannot get the Request");const e=await this.request.createRoom();this.name=e.name,this.address=e.address,this.roomUrl=e.roomUrl,this.refreshRoomInfo(),PP.init(e.roomUrl)}useOldConnection(){this.refreshRoomInfo(),PP.init(this.roomUrl)}refreshRoomInfo(){this.saveSession(),this.cacheTimer=setInterval((()=>{PP.getSocket().getState()===gP.OPEN&&this.saveSession(),this.saveSession()}),15e3)}saveSession(){const{name:e,address:t,roomUrl:n,config:r}=this,{useSecret:o,secret:i,project:a}=r.get(),s=JSON.stringify({name:e,address:t,roomUrl:n,project:a,useSecret:o,secret:i});sessionStorage.setItem(RE,s)}startRender(){const{project:e,clientOrigin:t,title:n,logo:r,logoStyle:o,useSecret:i,secret:a}=this.config.get(),s=document.createElement("div");s.id=wC,this.root=s;const c=document.createElement("div");c.className="page-spy-logo";const u=document.createElement("img");u.alt="PageSpy Logo",u.src=r,u.width=50,u.height=50,Object.entries(o).forEach((e=>{let[t,n]=e;u.style[t]=n})),c.insertAdjacentElement("beforeend",u),s.insertAdjacentElement("beforeend",c),window.addEventListener("sdk-inactive",(()=>{c.classList.add("inactive")}));const l=new wP,f=new SP({content:"\n      ".concat(i?'<p><b>Secret:</b> <span class="page-spy-secret">'.concat(a,"</span></p>"):"",'\n      <p>\n        <b>Device ID:</b>\n        <span style="font-family: \'Monaco\'" class="page-spy-device-id">\n          ').concat(this.address.slice(0,4)||"--",'\n        </span>\n      </p>\n      <p><b>Project:</b> <span class="page-spy-project">').concat(e,'</span></p>\n      <p><b>Title:</b> <span class="page-spy-title">').concat(n,"</span></p>\n      "),onOk:()=>{let e="".concat(t,"/#/devtools?address=").concat(encodeURIComponent(this.address));i&&(e+="&secret=".concat(a));const n=rg(e);let r="";const o=navigator.languages;r=["zh-CN","zh-HK","zh-TW","zh"].some((e=>o.includes(e)))?n?"拷贝成功!":"拷贝失败!":n?"Copy successfully!":"Copy failed!",bC.message(r),l.close()}});function h(e){const{isMoveEvent:t,isHidden:n}=c;t||n||(e.stopPropagation(),l.show())}l.appendNode(f.el),s.insertAdjacentElement("beforeend",l.el),c.addEventListener("click",h,!1),c.addEventListener("touchend",h,!1),document.documentElement.insertAdjacentElement("beforeend",s),function(e){let t,n;const r={xAxis:0,yAxis:0},o={x:0,y:0};function i(){const{left:n,top:o}=e.getBoundingClientRect();n>=0&&n<=r.xAxis&&(e.isHidden=!1),t&&clearTimeout(t),t=setTimeout((()=>{t=null,e.disableHidden||(n<=0?e.classList.add("hidden-in-left"):n>=r.xAxis&&e.classList.add("hidden-in-right"),o<=0?e.classList.add("hidden-in-top"):o>=r.yAxis&&e.classList.add("hidden-in-bottom"),e.isHidden=!0)}),1e3)}function a(t){t.preventDefault(),e.isMoveEvent=!0;const{clientX:i,clientY:a}=mL(t),s=i-o.x,c=a-o.y;let u=n.x+s;u<=0?(u=0,e.style.setProperty("--left-radius",dL)):u>=r.xAxis?(u=r.xAxis,e.style.setProperty("--right-radius",dL)):(e.style.setProperty("--left-radius",gL),e.style.setProperty("--right-radius",gL));let l=n.y+c;l<=0?(l=0,e.style.setProperty("--top-radius",dL)):l>r.yAxis?(l=r.yAxis,e.style.setProperty("--bottom-radius",dL)):(e.style.setProperty("--top-radius",gL),e.style.setProperty("--bottom-radius",gL)),e.style.left="".concat(u,"px"),e.style.top="".concat(l,"px")}function s(){o.x=0,o.y=0,i(),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",a),document.removeEventListener("touchend",s)}function c(i){i.preventDefault(),t&&clearTimeout(t),e.isHidden&&e.classList.remove("hidden-in-top","hidden-in-right","hidden-in-bottom","hidden-in-left"),e.isMoveEvent=!1,n=e.getBoundingClientRect(),r.xAxis=window.innerWidth-n.width,r.yAxis=window.innerHeight-n.height;const{clientX:c,clientY:u}=mL(i);o.x=c,o.y=u,document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",s,!1),document.addEventListener("touchmove",a,{capture:!1,passive:!1}),document.addEventListener("touchend",s,!1)}e.addEventListener("mousedown",c,!1),e.addEventListener("touchstart",c,{capture:!1,passive:!1}),e.addEventListener("mouseover",(()=>{e.disableHidden=!0,e.isHidden&&e.classList.remove("hidden-in-top","hidden-in-right","hidden-in-bottom","hidden-in-left")}),!1),e.addEventListener("mouseleave",(()=>{e.disableHidden=!1,i()}),!1)}(c),this.triggerPlugins("onMounted",{root:s,content:f.el,socketStore:PP}),this.handleDeviceDPR(),TE.log("Render success")}handleDeviceDPR(){const e=window.devicePixelRatio||1,t=document.querySelector('[name="viewport"]');if(t){const n=(t.getAttribute("content")||"").match(/initial-scale=\d+(\.\d+)?/);(n?parseFloat(n[0].split("=")[1]):1)<1&&(this.root.style.fontSize="".concat(14*e,"px"))}}triggerPlugins(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const{disabledPlugins:o}=this.config.get();SC.pluginsWithOrder.forEach((t=>{var r;gE(o)&&o.length&&o.includes(t.name)||null===(r=t[e])||void 0===r||r.apply(t,n)}))}abort(){this.triggerPlugins("onReset"),PP.close(),SC.instance=null;const e=document.querySelector("#".concat(wC));e&&document.documentElement.removeChild(e)}render(){if(document.querySelector("#".concat(wC)))TE.warn("Cannot render the widget because it has been in the DOM");else if(void 0!==document)"loading"===document.readyState?window.addEventListener("DOMContentLoaded",this.render.bind(this)):this.startRender();else{let e;const t=()=>{document&&"complete"===document.readyState?(e&&clearTimeout(e),this.startRender()):e=setTimeout(t,1)};e=setTimeout(t,1)}}updateRoomInfo(e){if(!e)return;const{project:t,title:n}=e;if(t){this.config.set("project",String(t));const e=document.querySelector(".page-spy-project");e&&(e.textContent=String(t))}if(n){this.config.set("title",String(n));const e=document.querySelector(".page-spy-title");e&&(e.textContent=String(n))}PP.updateRoomInfo()}static get pluginsWithOrder(){return[...SC.plugins.pre,...SC.plugins.normal,...SC.plugins.post]}static registerPlugin(e){if(!e)return;if("function"==typeof(t=e)&&void 0!==t.prototype)return void TE.error("PageSpy.registerPlugin() expect to pass an instance, not a class");var t;if(!e.name)return void TE.error("The ".concat(e.constructor.name,' plugin should provide a "name" property'));if(SC.pluginsWithOrder.some((t=>t.name===e.name)))return void TE.error("The ".concat(e.name,' has registered. Consider the following reasons:\n      - Duplicate register one same plugin;\n      - Plugin\'s "name" conflict with others, you can print all registered plugins by "PageSpy.plugins";'));SC.plugins[e.enforce||"normal"].push(e)}}t(SC,"instance",null),t(SC,"plugins",{pre:[],normal:[],post:[]});return[new xP,new RP,new NT,new XT,new YT,new JT,new VT].forEach((e=>{SC.registerPlugin(e)})),SC}();
//# sourceMappingURL=index.min.js.map

    return PageSpy;
  }
}