PageSpy-2

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

Этот скрипт недоступен для установки пользователем. Он является библиотекой, которая подключается к другим скриптам мета-ключом // @require https://update.greasyfork.org/scripts/483696/1485013/PageSpy-2.js

/**
 * 初始化PageSpy
 * @time 2024-11-16
 * @version 1.9.16
 * @link https://fastly.jsdelivr.net/npm/@huolala-tech/page-spy-browser
 */
/* prettier-ignore */
class initPageSpy {
  constructor(window = globalThis || self) {

    return 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")(),s={},a=function(e){try{return!!e()}catch(e){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),l=u,d=Function.prototype.call,f=l?d.bind(d):function(){return d.apply(d,arguments)},p={},h={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,m=g&&!h.call({1:2},1);p.f=m?function(e){var t=g(this,e);return!!t&&t.enumerable}:h;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)}},x=k,T=x({}.toString),P=x("".slice),R=function(e){return P(T(e),8,-1)},I=a,C=R,O=Object,L=k("".split),B=I((function(){return!O("z").propertyIsEnumerable(0)}))?function(e){return"String"==C(e)?L(e,""):O(e)}:O,j=function(e){return null==e},D=j,M=TypeError,U=function(e){if(D(e))throw M("Can't call method on "+e);return e},q=B,_=U,N=function(e){return q(_(e))},H="object"==typeof document&&document.all,Q={all:H,IS_HTMLDDA:void 0===H&&void 0!==H},z=Q.all,F=Q.IS_HTMLDDA?function(e){return"function"==typeof e||e===z}:function(e){return"function"==typeof e},G=F,W=Q.all,V=Q.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:G(e)||e===W}:function(e){return"object"==typeof e?null!==e:G(e)},$=i,J=F,X=function(e,t){return arguments.length<2?(n=$[e],J(n)?n:void 0):$[e]&&$[e][t];var n},Y=k({}.isPrototypeOf),Z=i,K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ee=Z.process,te=Z.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&&K&&(!(y=K.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=K.match(/Chrome\/(\d+)/))&&(v=+y[1]);var oe=v,ie=oe,se=a,ae=i.String,ce=!!Object.getOwnPropertySymbols&&!se((function(){var e=Symbol();return!ae(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ie&&ie<41})),ue=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,le=X,de=F,fe=Y,pe=Object,he=ue?function(e){return"symbol"==typeof e}:function(e){var t=le("Symbol");return de(t)&&fe(t.prototype,pe(e))},ge=String,me=function(e){try{return ge(e)}catch(e){return"Object"}},ye=F,ve=me,Ae=TypeError,be=function(e){if(ye(e))return e;throw Ae(ve(e)+" is not a function")},we=be,Se=j,Ee=function(e,t){var n=e[t];return Se(n)?void 0:we(n)},ke=f,xe=F,Te=V,Pe=TypeError,Re={exports:{}},Ie=i,Ce=Object.defineProperty,Oe=function(e,t){try{Ce(Ie,e,{value:t,configurable:!0,writable:!0})}catch(n){Ie[e]=t}return t},Le=Oe,Be="__core-js_shared__",je=i[Be]||Le(Be,{}),De=je;(Re.exports=function(e,t){return De[e]||(De[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 Me=Re.exports,Ue=U,qe=Object,_e=function(e){return qe(Ue(e))},Ne=_e,He=k({}.hasOwnProperty),Qe=Object.hasOwn||function(e,t){return He(Ne(e),t)},ze=k,Fe=0,Ge=Math.random(),We=ze(1..toString),Ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+We(++Fe+Ge,36)},$e=Me,Je=Qe,Xe=Ve,Ye=ce,Ze=ue,Ke=i.Symbol,et=$e("wks"),tt=Ze?Ke.for||Ke:Ke&&Ke.withoutSetter||Xe,nt=function(e){return Je(et,e)||(et[e]=Ye&&Je(Ke,e)?Ke[e]:tt("Symbol."+e)),et[e]},rt=f,ot=V,it=he,st=Ee,at=function(e,t){var n,r;if("string"===t&&xe(n=e.toString)&&!Te(r=ke(n,e)))return r;if(xe(n=e.valueOf)&&!Te(r=ke(n,e)))return r;if("string"!==t&&xe(n=e.toString)&&!Te(r=ke(n,e)))return r;throw Pe("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=st(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"),at(e,t)},dt=he,ft=function(e){var t=lt(e,"string");return dt(t)?t:t+""},pt=V,ht=i.document,gt=pt(ht)&&pt(ht.createElement),mt=function(e){return gt?ht.createElement(e):{}},yt=mt,vt=!c&&!a((function(){return 7!=Object.defineProperty(yt("div"),"a",{get:function(){return 7}}).a})),At=c,bt=f,wt=p,St=A,Et=N,kt=ft,xt=Qe,Tt=vt,Pt=Object.getOwnPropertyDescriptor;s.f=At?Pt:function(e,t){if(e=Et(e),t=kt(t),Tt)try{return Pt(e,t)}catch(e){}if(xt(e,t))return St(!bt(wt.f,e,t),e[t])};var Rt={},It=c&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=V,Ot=String,Lt=TypeError,Bt=function(e){if(Ct(e))return e;throw Lt(Ot(e)+" is not an object")},jt=c,Dt=vt,Mt=It,Ut=Bt,qt=ft,_t=TypeError,Nt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Qt="enumerable",zt="configurable",Ft="writable";Rt.f=jt?Mt?function(e,t,n){if(Ut(e),t=qt(t),Ut(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ft in n&&!n[Ft]){var r=Ht(e,t);r&&r[Ft]&&(e[t]=n.value,n={configurable:zt in n?n[zt]:r[zt],enumerable:Qt in n?n[Qt]:r[Qt],writable:!1})}return Nt(e,t,n)}:Nt:function(e,t,n){if(Ut(e),t=qt(t),Ut(n),Dt)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},$t={exports:{}},Jt=c,Xt=Qe,Yt=Function.prototype,Zt=Jt&&Object.getOwnPropertyDescriptor,Kt=Xt(Yt,"name"),en={EXISTS:Kt,PROPER:Kt&&"something"===function(){}.name,CONFIGURABLE:Kt&&(!Jt||Jt&&Zt(Yt,"name").configurable)},tn=F,nn=je,rn=k(Function.toString);tn(nn.inspectSource)||(nn.inspectSource=function(e){return rn(e)});var on,sn,an,cn=nn.inspectSource,un=F,ln=i.WeakMap,dn=un(ln)&&/native code/.test(String(ln)),fn=Ve,pn=Me("keys"),hn=function(e){return pn[e]||(pn[e]=fn(e))},gn={},mn=dn,yn=i,vn=V,An=Vt,bn=Qe,wn=je,Sn=hn,En=gn,kn="Object already initialized",xn=yn.TypeError,Tn=yn.WeakMap;if(mn||wn.state){var Pn=wn.state||(wn.state=new Tn);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,on=function(e,t){if(Pn.has(e))throw xn(kn);return t.facade=e,Pn.set(e,t),t},sn=function(e){return Pn.get(e)||{}},an=function(e){return Pn.has(e)}}else{var Rn=Sn("state");En[Rn]=!0,on=function(e,t){if(bn(e,Rn))throw xn(kn);return t.facade=e,An(e,Rn,t),t},sn=function(e){return bn(e,Rn)?e[Rn]:{}},an=function(e){return bn(e,Rn)}}var In={set:on,get:sn,has:an,enforce:function(e){return an(e)?sn(e):on(e,{})},getterFor:function(e){return function(t){var n;if(!vn(t)||(n=sn(t)).type!==e)throw xn("Incompatible receiver, "+e+" required");return n}}},Cn=k,On=a,Ln=F,Bn=Qe,jn=c,Dn=en.CONFIGURABLE,Mn=cn,Un=In.enforce,qn=In.get,_n=String,Nn=Object.defineProperty,Hn=Cn("".slice),Qn=Cn("".replace),zn=Cn([].join),Fn=jn&&!On((function(){return 8!==Nn((function(){}),"length",{value:8}).length})),Gn=String(String).split("String"),Wn=$t.exports=function(e,t,n){"Symbol("===Hn(_n(t),0,7)&&(t="["+Qn(_n(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Bn(e,"name")||Dn&&e.name!==t)&&(jn?Nn(e,"name",{value:t,configurable:!0}):e.name=t),Fn&&n&&Bn(n,"arity")&&e.length!==n.arity&&Nn(e,"length",{value:n.arity});try{n&&Bn(n,"constructor")&&n.constructor?jn&&Nn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Un(e);return Bn(r,"source")||(r.source=zn(Gn,"string"==typeof t?t:"")),e};Function.prototype.toString=Wn((function(){return Ln(this)&&qn(this).source||Mn(this)}),"toString");var Vn=$t.exports,$n=F,Jn=Rt,Xn=Vn,Yn=Oe,Zn=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if($n(n)&&Xn(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:Jn.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Kn={},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,sr=Math.min,ar=function(e,t){var n=or(e);return n<0?ir(n+t,0):sr(n,t)},cr=rr,ur=Math.min,lr=function(e){return e>0?ur(cr(e),9007199254740991):0},dr=lr,fr=function(e){return dr(e.length)},pr=N,hr=ar,gr=fr,mr=function(e){return function(t,n,r){var o,i=pr(t),s=gr(i),a=hr(r,s);if(e&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},yr={includes:mr(!0),indexOf:mr(!1)},vr=Qe,Ar=N,br=yr.indexOf,wr=gn,Sr=k([].push),Er=function(e,t){var n,r=Ar(e),o=0,i=[];for(n in r)!vr(wr,n)&&vr(r,n)&&Sr(i,n);for(;t.length>o;)vr(r,n=t[o++])&&(~br(i,n)||Sr(i,n));return i},kr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xr=Er,Tr=kr.concat("length","prototype");Kn.f=Object.getOwnPropertyNames||function(e){return xr(e,Tr)};var Pr={};Pr.f=Object.getOwnPropertySymbols;var Rr=X,Ir=Kn,Cr=Pr,Or=Bt,Lr=k([].concat),Br=Rr("Reflect","ownKeys")||function(e){var t=Ir.f(Or(e)),n=Cr.f;return n?Lr(t,n(e)):t},jr=Qe,Dr=Br,Mr=s,Ur=Rt,qr=function(e,t,n){for(var r=Dr(t),o=Ur.f,i=Mr.f,s=0;s<r.length;s++){var a=r[s];jr(e,a)||n&&jr(n,a)||o(e,a,i(t,a))}},_r=a,Nr=F,Hr=/#|\.prototype\./,Qr=function(e,t){var n=Fr[zr(e)];return n==Wr||n!=Gr&&(Nr(t)?_r(t):!!t)},zr=Qr.normalize=function(e){return String(e).replace(Hr,".").toLowerCase()},Fr=Qr.data={},Gr=Qr.NATIVE="N",Wr=Qr.POLYFILL="P",Vr=Qr,$r=i,Jr=s.f,Xr=Vt,Yr=Zn,Zr=Oe,Kr=qr,eo=Vr,to=function(e,t){var n,r,o,i,s,a=e.target,c=e.global,u=e.stat;if(n=c?$r:u?$r[a]||Zr(a,{}):($r[a]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(s=Jr(n,r))&&s.value:n[r],!eo(c?r:a+(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),Yr(n,r,i,e)}},no=R,ro=c,oo=Array.isArray||function(e){return"Array"==no(e)},io=TypeError,so=Object.getOwnPropertyDescriptor,ao=ro&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),co=TypeError,uo=_e,lo=fr,fo=ao?function(e,t){if(oo(e)&&!so(e,"length").writable)throw io("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},po=function(e){if(e>9007199254740991)throw co("Maximum allowed index exceeded");return e};to({target:"Array",proto:!0,arity:1,forced:a((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=uo(this),n=lo(t),r=arguments.length;po(n+r);for(var o=0;o<r;o++)t[n]=arguments[o],n++;return fo(t,n),n}});var ho=be,go=_e,mo=B,yo=fr,vo=TypeError,Ao=function(e){return function(t,n,r,o){ho(n);var i=go(t),s=mo(i),a=yo(i),c=e?a-1:0,u=e?-1:1;if(r<2)for(;;){if(c in s){o=s[c],c+=u;break}if(c+=u,e?c<0:a<=c)throw vo("Reduce of empty array with no initial value")}for(;e?c>=0:a>c;c+=u)c in s&&(o=n(o,s[c],c,i));return o}},bo={left:Ao(!1),right:Ao(!0)},wo=a,So="undefined"!=typeof process&&"process"==R(process),Eo=bo.left,ko=function(e,t){var n=[][e];return!!n&&wo((function(){n.call(null,t||function(){return 1},1)}))};to({target:"Array",proto:!0,forced:!So&&oe>79&&oe<83||!ko("reduce")},{reduce:function(e){var t=arguments.length;return Eo(this,e,t,t>1?arguments[1]:void 0)}});var xo=mt("span").classList,To=xo&&xo.constructor&&xo.constructor.prototype,Po=To===Object.prototype?void 0:To,Ro={},Io=Er,Co=kr,Oo=Object.keys||function(e){return Io(e,Co)},Lo=c,Bo=It,jo=Rt,Do=Bt,Mo=N,Uo=Oo;Ro.f=Lo&&!Bo?Object.defineProperties:function(e,t){Do(e);for(var n,r=Mo(t),o=Uo(t),i=o.length,s=0;i>s;)jo.f(e,n=o[s++],r[n]);return e};var qo,_o=X("document","documentElement"),No=Bt,Ho=Ro,Qo=kr,zo=gn,Fo=_o,Go=mt,Wo="prototype",Vo="script",$o=hn("IE_PROTO"),Jo=function(){},Xo=function(e){return"<"+Vo+">"+e+"</"+Vo+">"},Yo=function(e){e.write(Xo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Zo=function(){try{qo=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Zo="undefined"!=typeof document?document.domain&&qo?Yo(qo):(t=Go("iframe"),n="java"+Vo+":",t.style.display="none",Fo.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Xo("document.F=Object")),e.close(),e.F):Yo(qo);for(var r=Qo.length;r--;)delete Zo[Wo][Qo[r]];return Zo()};zo[$o]=!0;var Ko=Object.create||function(e,t){var n;return null!==e?(Jo[Wo]=No(e),n=new Jo,Jo[Wo]=null,n[$o]=e):n=Zo(),void 0===t?n:Ho.f(n,t)},ei=nt,ti=Ko,ni=Rt.f,ri=ei("unscopables"),oi=Array.prototype;null==oi[ri]&&ni(oi,ri,{configurable:!0,value:ti(null)});var ii,si,ai,ci={},ui=!a((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),li=Qe,di=F,fi=_e,pi=ui,hi=hn("IE_PROTO"),gi=Object,mi=gi.prototype,yi=pi?gi.getPrototypeOf:function(e){var t=fi(e);if(li(t,hi))return t[hi];var n=t.constructor;return di(n)&&t instanceof n?n.prototype:t instanceof gi?mi:null},vi=a,Ai=F,bi=V,wi=yi,Si=Zn,Ei=nt("iterator"),ki=!1;[].keys&&("next"in(ai=[].keys())?(si=wi(wi(ai)))!==Object.prototype&&(ii=si):ki=!0);var xi=!bi(ii)||vi((function(){var e={};return ii[Ei].call(e)!==e}));xi&&(ii={}),Ai(ii[Ei])||Si(ii,Ei,(function(){return this}));var Ti={IteratorPrototype:ii,BUGGY_SAFARI_ITERATORS:ki},Pi=Rt.f,Ri=Qe,Ii=nt("toStringTag"),Ci=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Ri(e,Ii)&&Pi(e,Ii,{configurable:!0,value:t})},Oi=Ti.IteratorPrototype,Li=Ko,Bi=A,ji=Ci,Di=ci,Mi=function(){return this},Ui=function(e,t,n,r){var o=t+" Iterator";return e.prototype=Li(Oi,{next:Bi(+!r,n)}),ji(e,o,!1),Di[o]=Mi,e},qi=k,_i=be,Ni=function(e,t,n){try{return qi(_i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Hi=F,Qi=String,zi=TypeError,Fi=Ni,Gi=Bt,Wi=function(e){if("object"==typeof e||Hi(e))return e;throw zi("Can't set "+Qi(e)+" as a prototype")},Vi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Fi(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Gi(n),Wi(r),t?e(n,r):n.__proto__=r,n}}():void 0),$i=to,Ji=f,Xi=F,Yi=Ui,Zi=yi,Ki=Vi,es=Ci,ts=Vt,ns=Zn,rs=ci,os=en.PROPER,is=en.CONFIGURABLE,ss=Ti.IteratorPrototype,as=Ti.BUGGY_SAFARI_ITERATORS,cs=nt("iterator"),us="keys",ls="values",ds="entries",fs=function(){return this},ps=function(e,t,n,r,o,i,s){Yi(n,t,r);var a,c,u,l=function(e){if(e===o&&g)return g;if(!as&&e in p)return p[e];switch(e){case us:case ls:case ds:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[cs]||p["@@iterator"]||o&&p[o],g=!as&&h||l(o),m="Array"==t&&p.entries||h;if(m&&(a=Zi(m.call(new e)))!==Object.prototype&&a.next&&(Zi(a)!==ss&&(Ki?Ki(a,ss):Xi(a[cs])||ns(a,cs,fs)),es(a,d,!0)),os&&o==ls&&h&&h.name!==ls&&(is?ts(p,"name",ls):(f=!0,g=function(){return Ji(h,this)})),o)if(c={values:l(ls),keys:i?g:l(us),entries:l(ds)},s)for(u in c)(as||f||!(u in p))&&ns(p,u,c[u]);else $i({target:t,proto:!0,forced:as||f},c);return p[cs]!==g&&ns(p,cs,g,{name:o}),rs[t]=g,c},hs=function(e,t){return{value:e,done:t}},gs=N,ms=function(e){oi[ri][e]=!0},ys=ci,vs=In,As=Rt.f,bs=ps,ws=hs,Ss=c,Es="Array Iterator",ks=vs.set,xs=vs.getterFor(Es),Ts=bs(Array,"Array",(function(e,t){ks(this,{type:Es,target:gs(e),index:0,kind:t})}),(function(){var e=xs(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,ws(void 0,!0)):ws("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),Ps=ys.Arguments=ys.Array;if(ms("keys"),ms("values"),ms("entries"),Ss&&"values"!==Ps.name)try{As(Ps,"name",{value:"values"})}catch(e){}var Rs=i,Is={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},Cs=Po,Os=Ts,Ls=Vt,Bs=nt,js=Bs("iterator"),Ds=Bs("toStringTag"),Ms=Os.values,Us=function(e,t){if(e){if(e[js]!==Ms)try{Ls(e,js,Ms)}catch(t){e[js]=Ms}if(e[Ds]||Ls(e,Ds,t),Is[t])for(var n in Os)if(e[n]!==Os[n])try{Ls(e,n,Os[n])}catch(t){e[n]=Os[n]}}};for(var qs in Is)Us(Rs[qs]&&Rs[qs].prototype,qs);Us(Cs,"DOMTokenList");var _s=u,Ns=Function.prototype,Hs=Ns.apply,Qs=Ns.call,zs="object"==typeof Reflect&&Reflect.apply||(_s?Qs.bind(Hs):function(){return Qs.apply(Hs,arguments)}),Fs=Rt.f,Gs=F,Ws=V,Vs=Vi,$s={};$s[nt("toStringTag")]="z";var Js="[object z]"===String($s),Xs=F,Ys=R,Zs=nt("toStringTag"),Ks=Object,ea="Arguments"==Ys(function(){return arguments}()),ta=Js?Ys: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=Ks(e),Zs))?n:ea?Ys(t):"Object"==(r=Ys(t))&&Xs(t.callee)?"Arguments":r},na=ta,ra=String,oa=function(e){if("Symbol"===na(e))throw TypeError("Cannot convert a Symbol value to a string");return ra(e)},ia=oa,sa=V,aa=Vt,ca=Error,ua=k("".replace),la=String(ca("zxcasd").stack),da=/\n\s*at [^:]*:[^\n]*/,fa=da.test(la),pa=A,ha=!a((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",pa(1,7)),7!==e.stack)})),ga=Vt,ma=function(e,t){if(fa&&"string"==typeof e&&!ca.prepareStackTrace)for(;t--;)e=ua(e,da,"");return e},ya=ha,va=Error.captureStackTrace,Aa=X,ba=Qe,wa=Vt,Sa=Y,Ea=Vi,ka=qr,xa=function(e,t,n){n in e||Fs(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},Ta=function(e,t,n){var r,o;return Vs&&Gs(r=t.constructor)&&r!==n&&Ws(o=r.prototype)&&o!==n.prototype&&Vs(e,o),e},Pa=function(e,t){return void 0===e?arguments.length<2?"":t:ia(e)},Ra=function(e,t){sa(t)&&"cause"in t&&aa(e,"cause",t.cause)},Ia=function(e,t,n,r){ya&&(va?va(e,t):ga(e,"stack",ma(n,r)))},Ca=c,Oa=to,La=zs,Ba=function(e,t,n,r){var o="stackTraceLimit",i=r?2:1,s=e.split("."),a=s[s.length-1],c=Aa.apply(null,s);if(c){var u=c.prototype;if(ba(u,"cause")&&delete u.cause,!n)return c;var l=Aa("Error"),d=t((function(e,t){var n=Pa(r?t:e,void 0),o=r?new c(e):new c;return void 0!==n&&wa(o,"message",n),Ia(o,d,o.stack,2),this&&Sa(u,this)&&Ta(o,this,d),arguments.length>i&&Ra(o,arguments[i]),o}));d.prototype=u,"Error"!==a?Ea?Ea(d,l):ka(d,l,{name:!0}):Ca&&o in c&&(xa(d,c,o),xa(d,c,"prepareStackTrace")),ka(d,c);try{u.name!==a&&wa(u,"name",a),u.constructor=d}catch(e){}return d}},ja="WebAssembly",Da=i[ja],Ma=7!==Error("e",{cause:7}).cause,Ua=function(e,t){var n={};n[e]=Ba(e,t,Ma),Oa({global:!0,constructor:!0,arity:1,forced:Ma},n)},qa=function(e,t){if(Da&&Da[e]){var n={};n[e]=Ba(ja+"."+e,t,Ma),Oa({target:ja,stat:!0,constructor:!0,arity:1,forced:Ma},n)}};Ua("Error",(function(e){return function(t){return La(e,this,arguments)}})),Ua("EvalError",(function(e){return function(t){return La(e,this,arguments)}})),Ua("RangeError",(function(e){return function(t){return La(e,this,arguments)}})),Ua("ReferenceError",(function(e){return function(t){return La(e,this,arguments)}})),Ua("SyntaxError",(function(e){return function(t){return La(e,this,arguments)}})),Ua("TypeError",(function(e){return function(t){return La(e,this,arguments)}})),Ua("URIError",(function(e){return function(t){return La(e,this,arguments)}})),qa("CompileError",(function(e){return function(t){return La(e,this,arguments)}})),qa("LinkError",(function(e){return function(t){return La(e,this,arguments)}})),qa("RuntimeError",(function(e){return function(t){return La(e,this,arguments)}}));var _a,Na,Ha=Bt,Qa=a,za=i.RegExp,Fa=Qa((function(){var e=za("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ga=Fa||Qa((function(){return!za("a","y").sticky})),Wa={BROKEN_CARET:Fa||Qa((function(){var e=za("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ga,UNSUPPORTED_Y:Fa},Va=a,$a=i.RegExp,Ja=Va((function(){var e=$a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Xa=a,Ya=i.RegExp,Za=Xa((function(){var e=Ya("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ka=f,ec=k,tc=oa,nc=function(){var e=Ha(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},rc=Wa,oc=Ko,ic=In.get,sc=Ja,ac=Za,cc=Me("native-string-replace",String.prototype.replace),uc=RegExp.prototype.exec,lc=uc,dc=ec("".charAt),fc=ec("".indexOf),pc=ec("".replace),hc=ec("".slice),gc=(Na=/b*/g,Ka(uc,_a=/a/,"a"),Ka(uc,Na,"a"),0!==_a.lastIndex||0!==Na.lastIndex),mc=rc.BROKEN_CARET,yc=void 0!==/()??/.exec("")[1];(gc||yc||mc||sc||ac)&&(lc=function(e){var t,n,r,o,i,s,a,c=this,u=ic(c),l=tc(e),d=u.raw;if(d)return d.lastIndex=c.lastIndex,t=Ka(lc,d,l),c.lastIndex=d.lastIndex,t;var f=u.groups,p=mc&&c.sticky,h=Ka(nc,c),g=c.source,m=0,y=l;if(p&&(h=pc(h,"y",""),-1===fc(h,"g")&&(h+="g"),y=hc(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==dc(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",h)),yc&&(n=new RegExp("^"+g+"$(?!\\s)",h)),gc&&(r=c.lastIndex),o=Ka(uc,p?n:c,y),p?o?(o.input=hc(o.input,m),o[0]=hc(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:gc&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),yc&&o&&o.length>1&&Ka(cc,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=s=oc(null),i=0;i<f.length;i++)s[(a=f[i])[0]]=o[a[1]];return o});var vc=lc;to({target:"RegExp",proto:!0,forced:/./.exec!==vc},{exec:vc});var Ac=R,bc=k,wc=function(e){if("Function"===Ac(e))return bc(e)},Sc=wc,Ec=Zn,kc=vc,xc=a,Tc=nt,Pc=Vt,Rc=Tc("species"),Ic=RegExp.prototype,Cc=k,Oc=rr,Lc=oa,Bc=U,jc=Cc("".charAt),Dc=Cc("".charCodeAt),Mc=Cc("".slice),Uc=function(e){return function(t,n){var r,o,i=Lc(Bc(t)),s=Oc(n),a=i.length;return s<0||s>=a?e?"":void 0:(r=Dc(i,s))<55296||r>56319||s+1===a||(o=Dc(i,s+1))<56320||o>57343?e?jc(i,s):r:e?Mc(i,s,s+2):o-56320+(r-55296<<10)+65536}},qc={codeAt:Uc(!1),charAt:Uc(!0)},_c=qc.charAt,Nc=k,Hc=_e,Qc=Math.floor,zc=Nc("".charAt),Fc=Nc("".replace),Gc=Nc("".slice),Wc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vc=/\$([$&'`]|\d{1,2})/g,$c=f,Jc=Bt,Xc=F,Yc=R,Zc=vc,Kc=TypeError,eu=zs,tu=f,nu=k,ru=function(e,t,n,r){var o=Tc(e),i=!xc((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),s=i&&!xc((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Rc]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!s||n){var a=Sc(/./[o]),c=t(o,""[e],(function(e,t,n,r,o){var s=Sc(e),c=t.exec;return c===kc||c===Ic.exec?i&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));Ec(String.prototype,e,c[0]),Ec(Ic,o,c[1])}r&&Pc(Ic[o],"sham",!0)},ou=a,iu=Bt,su=F,au=j,cu=rr,uu=lr,lu=oa,du=U,fu=function(e,t,n){return t+(n?_c(e,t).length:1)},pu=Ee,hu=function(e,t,n,r,o,i){var s=n+e.length,a=r.length,c=Vc;return void 0!==o&&(o=Hc(o),c=Wc),Fc(i,c,(function(i,c){var u;switch(zc(c,0)){case"$":return"$";case"&":return e;case"`":return Gc(t,0,n);case"'":return Gc(t,s);case"<":u=o[Gc(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var d=Qc(l/10);return 0===d?i:d<=a?void 0===r[d-1]?zc(c,1):r[d-1]+zc(c,1):i}u=r[l-1]}return void 0===u?"":u}))},gu=function(e,t){var n=e.exec;if(Xc(n)){var r=$c(n,e,t);return null!==r&&Jc(r),r}if("RegExp"===Yc(e))return $c(Zc,e,t);throw Kc("RegExp#exec called on incompatible receiver")},mu=nt("replace"),yu=Math.max,vu=Math.min,Au=nu([].concat),bu=nu([].push),wu=nu("".indexOf),Su=nu("".slice),Eu="$0"==="a".replace(/./,"$0"),ku=!!/./[mu]&&""===/./[mu]("a","$0");ru("replace",(function(e,t,n){var r=ku?"$":"$0";return[function(e,n){var r=du(this),o=au(e)?void 0:pu(e,mu);return o?tu(o,e,r,n):tu(t,lu(r),e,n)},function(e,o){var i=iu(this),s=lu(e);if("string"==typeof o&&-1===wu(o,r)&&-1===wu(o,"$<")){var a=n(t,i,s,o);if(a.done)return a.value}var c=su(o);c||(o=lu(o));var u=i.global;if(u){var l=i.unicode;i.lastIndex=0}for(var d=[];;){var f=gu(i,s);if(null===f)break;if(bu(d,f),!u)break;""===lu(f[0])&&(i.lastIndex=fu(s,uu(i.lastIndex),l))}for(var p,h="",g=0,m=0;m<d.length;m++){for(var y=lu((f=d[m])[0]),v=yu(vu(cu(f.index),s.length),0),A=[],b=1;b<f.length;b++)bu(A,void 0===(p=f[b])?p:String(p));var w=f.groups;if(c){var S=Au([y],A,v,s);void 0!==w&&bu(S,w);var E=lu(eu(o,void 0,S))}else E=hu(y,s,v,A,w,o);v>=g&&(h+=Su(s,g,v)+E,g=v+y.length)}return h+Su(s,g)}]}),!!ou((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Eu||ku);var xu=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()}},Tu={"text/plain":"Text","text/html":"Url",default:"Text"};var Pu=function(e,t){var n,r,o,i,s,a,c=!1;t||(t={}),n=t.debug||!1;try{if(o=xu(),i=document.createRange(),s=document.getSelection(),(a=document.createElement("span")).textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.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=Tu[t.format]||Tu.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(a),i.selectNodeContents(a),s.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{s&&("function"==typeof s.removeRange?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return c},Ru=r(Pu),Iu=Vn,Cu=Rt,Ou=function(e,t,n){return n.get&&Iu(n.get,t,{getter:!0}),n.set&&Iu(n.set,t,{setter:!0}),Cu.f(e,t,n)},Lu=R,Bu=TypeError,ju=Ni(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!=Lu(e))throw Bu("ArrayBuffer expected");return e.byteLength},Du=ju,Mu=k(ArrayBuffer.prototype.slice),Uu=function(e){if(0!==Du(e))return!1;try{return Mu(e,0,0),!1}catch(e){return!0}},qu=c,_u=Ou,Nu=Uu,Hu=ArrayBuffer.prototype;qu&&!("detached"in Hu)&&_u(Hu,"detached",{configurable:!0,get:function(){return Nu(this)}});var Qu=rr,zu=lr,Fu=RangeError,Gu="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Wu=!Gu&&!So&&"object"==typeof window&&"object"==typeof document,Vu=a,$u=oe,Ju=Wu,Xu=Gu,Yu=So,Zu=i.structuredClone,Ku=!!Zu&&!Vu((function(){if(Xu&&$u>92||Yu&&$u>94||Ju&&$u>97)return!1;var e=new ArrayBuffer(8),t=Zu(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength})),el=i,tl=k,nl=Ni,rl=function(e){if(void 0===e)return 0;var t=Qu(e),n=zu(t);if(t!==n)throw Fu("Wrong length or index");return n},ol=Uu,il=ju,sl=Ku,al=el.TypeError,cl=el.structuredClone,ul=el.ArrayBuffer,ll=el.DataView,dl=Math.min,fl=ul.prototype,pl=ll.prototype,hl=tl(fl.slice),gl=nl(fl,"resizable","get"),ml=nl(fl,"maxByteLength","get"),yl=tl(pl.getInt8),vl=tl(pl.setInt8),Al=sl&&function(e,t,n){var r=il(e),o=void 0===t?r:dl(rl(t),r),i=!gl||!gl(e);if(ol(e))throw al("ArrayBuffer is detached");var s=cl(e,{transfer:[e]});if(r==o&&(n||i))return s;if(!n||i)return hl(s,0,o);for(var a=new ul(o,ml&&{maxByteLength:ml(s)}),c=new ll(s),u=new ll(a),l=0;l<o;l++)vl(u,l,yl(c,l));return a},bl=Al;bl&&to({target:"ArrayBuffer",proto:!0},{transfer:function(){return bl(this,arguments.length?arguments[0]:void 0,!0)}});var wl=Al;wl&&to({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return wl(this,arguments.length?arguments[0]:void 0,!1)}});var Sl=qc.charAt,El=oa,kl=In,xl=ps,Tl=hs,Pl="String Iterator",Rl=kl.set,Il=kl.getterFor(Pl);xl(String,"String",(function(e){Rl(this,{type:Pl,string:El(e),index:0})}),(function(){var e,t=Il(this),n=t.string,r=t.index;return r>=n.length?Tl(void 0,!0):(e=Sl(n,r),t.index+=e.length,Tl(e,!1))}));var Cl=a,Ol=c,Ll=nt("iterator"),Bl=!Cl((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&&!Ol||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Ll]||"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})),jl=be,Dl=u,Ml=wc(wc.bind),Ul=function(e,t){return jl(e),void 0===t?e:Dl?Ml(e,t):function(){return e.apply(t,arguments)}},ql=Y,_l=TypeError,Nl=function(e,t){if(ql(t,e))return e;throw _l("Incorrect invocation")},Hl=c,Ql=k,zl=f,Fl=a,Gl=Oo,Wl=Pr,Vl=p,$l=_e,Jl=B,Xl=Object.assign,Yl=Object.defineProperty,Zl=Ql([].concat),Kl=!Xl||Fl((function(){if(Hl&&1!==Xl({b:1},Xl(Yl({},"a",{enumerable:!0,get:function(){Yl(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!=Xl({},e)[n]||Gl(Xl({},t)).join("")!=r}))?function(e,t){for(var n=$l(e),r=arguments.length,o=1,i=Wl.f,s=Vl.f;r>o;)for(var a,c=Jl(arguments[o++]),u=i?Zl(Gl(c),i(c)):Gl(c),l=u.length,d=0;l>d;)a=u[d++],Hl&&!zl(s,c,a)||(n[a]=c[a]);return n}:Xl,ed=f,td=Bt,nd=Ee,rd=function(e,t,n){var r,o;td(e);try{if(!(r=nd(e,"return"))){if("throw"===t)throw n;return n}r=ed(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return td(r),n},od=Bt,id=rd,sd=ci,ad=nt("iterator"),cd=Array.prototype,ud=k,ld=a,dd=F,fd=ta,pd=cn,hd=function(){},gd=[],md=X("Reflect","construct"),yd=/^\s*(?:class|function)\b/,vd=ud(yd.exec),Ad=!yd.exec(hd),bd=function(e){if(!dd(e))return!1;try{return md(hd,gd,e),!0}catch(e){return!1}},wd=function(e){if(!dd(e))return!1;switch(fd(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ad||!!vd(yd,pd(e))}catch(e){return!0}};wd.sham=!0;var Sd=!md||ld((function(){var e;return bd(bd.call)||!bd(Object)||!bd((function(){e=!0}))||e}))?wd:bd,Ed=ft,kd=Rt,xd=A,Td=function(e,t,n){var r=Ed(t);r in e?kd.f(e,r,xd(0,n)):e[r]=n},Pd=ta,Rd=Ee,Id=j,Cd=ci,Od=nt("iterator"),Ld=function(e){if(!Id(e))return Rd(e,Od)||Rd(e,"@@iterator")||Cd[Pd(e)]},Bd=f,jd=be,Dd=Bt,Md=me,Ud=Ld,qd=TypeError,_d=function(e,t){var n=arguments.length<2?Ud(e):t;if(jd(n))return Dd(Bd(n,e));throw qd(Md(e)+" is not iterable")},Nd=Ul,Hd=f,Qd=_e,zd=function(e,t,n,r){try{return r?t(od(n)[0],n[1]):t(n)}catch(t){id(e,"throw",t)}},Fd=function(e){return void 0!==e&&(sd.Array===e||cd[ad]===e)},Gd=Sd,Wd=fr,Vd=Td,$d=_d,Jd=Ld,Xd=Array,Yd=ar,Zd=fr,Kd=Td,ef=Array,tf=Math.max,nf=function(e,t,n){for(var r=Zd(e),o=Yd(t,r),i=Yd(void 0===n?r:n,r),s=ef(tf(i-o,0)),a=0;o<i;o++,a++)Kd(s,a,e[o]);return s.length=a,s},rf=k,of=2147483647,sf=/[^\0-\u007E]/,af=/[.\u3002\uFF0E\uFF61]/g,cf="Overflow: input needs wider integers to process",uf=RangeError,lf=rf(af.exec),df=Math.floor,ff=String.fromCharCode,pf=rf("".charCodeAt),hf=rf([].join),gf=rf([].push),mf=rf("".replace),yf=rf("".split),vf=rf("".toLowerCase),Af=function(e){return e+22+75*(e<26)},bf=function(e,t,n){var r=0;for(e=n?df(e/700):e>>1,e+=df(e/t);e>455;)e=df(e/35),r+=36;return df(r+36*e/(e+38))},wf=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=pf(e,n++);if(o>=55296&&o<=56319&&n<r){var i=pf(e,n++);56320==(64512&i)?gf(t,((1023&o)<<10)+(1023&i)+65536):(gf(t,o),n--)}else gf(t,o)}return t}(e);var n,r,o=e.length,i=128,s=0,a=72;for(n=0;n<e.length;n++)(r=e[n])<128&&gf(t,ff(r));var c=t.length,u=c;for(c&&gf(t,"-");u<o;){var l=of;for(n=0;n<e.length;n++)(r=e[n])>=i&&r<l&&(l=r);var d=u+1;if(l-i>df((of-s)/d))throw uf(cf);for(s+=(l-i)*d,i=l,n=0;n<e.length;n++){if((r=e[n])<i&&++s>of)throw uf(cf);if(r==i){for(var f=s,p=36;;){var h=p<=a?1:p>=a+26?26:p-a;if(f<h)break;var g=f-h,m=36-h;gf(t,ff(Af(h+g%m))),f=df(g/m),p+=36}gf(t,ff(Af(f))),a=bf(s,d,u==c),s=0,u++}}s++,i++}return hf(t,"")},Sf=TypeError,Ef=function(e,t){if(e<t)throw Sf("Not enough arguments");return e},kf=Zn,xf=nf,Tf=Math.floor,Pf=function(e,t){var n=e.length,r=Tf(n/2);return n<8?Rf(e,t):If(e,Pf(xf(e,0,r),t),Pf(xf(e,r),t),t)},Rf=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},If=function(e,t,n,r){for(var o=t.length,i=n.length,s=0,a=0;s<o||a<i;)e[s+a]=s<o&&a<i?r(t[s],n[a])<=0?t[s++]:n[a++]:s<o?t[s++]:n[a++];return e},Cf=to,Of=i,Lf=f,Bf=k,jf=c,Df=Bl,Mf=Zn,Uf=Ou,qf=function(e,t,n){for(var r in t)kf(e,r,t[r],n);return e},_f=Ci,Nf=Ui,Hf=In,Qf=Nl,zf=F,Ff=Qe,Gf=Ul,Wf=ta,Vf=Bt,$f=V,Jf=oa,Xf=Ko,Yf=A,Zf=_d,Kf=Ld,ep=Ef,tp=Pf,np=nt("iterator"),rp="URLSearchParams",op=rp+"Iterator",ip=Hf.set,sp=Hf.getterFor(rp),ap=Hf.getterFor(op),cp=Object.getOwnPropertyDescriptor,up=function(e){if(!jf)return Of[e];var t=cp(Of,e);return t&&t.value},lp=up("fetch"),dp=up("Request"),fp=up("Headers"),pp=dp&&dp.prototype,hp=fp&&fp.prototype,gp=Of.RegExp,mp=Of.TypeError,yp=Of.decodeURIComponent,vp=Of.encodeURIComponent,Ap=Bf("".charAt),bp=Bf([].join),wp=Bf([].push),Sp=Bf("".replace),Ep=Bf([].shift),kp=Bf([].splice),xp=Bf("".split),Tp=Bf("".slice),Pp=/\+/g,Rp=Array(4),Ip=function(e){return Rp[e-1]||(Rp[e-1]=gp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Cp=function(e){try{return yp(e)}catch(t){return e}},Op=function(e){var t=Sp(e,Pp," "),n=4;try{return yp(t)}catch(e){for(;n;)t=Sp(t,Ip(n--),Cp);return t}},Lp=/[!'()~]|%20/g,Bp={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},jp=function(e){return Bp[e]},Dp=function(e){return Sp(vp(e),Lp,jp)},Mp=Nf((function(e,t){ip(this,{type:op,iterator:Zf(sp(e).entries),kind:t})}),"Iterator",(function(){var e=ap(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),Up=function(e){this.entries=[],this.url=null,void 0!==e&&($f(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Ap(e,0)?Tp(e,1):e:Jf(e)))};Up.prototype={type:rp,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,s,a,c=Kf(e);if(c)for(n=(t=Zf(e,c)).next;!(r=Lf(n,t)).done;){if(i=(o=Zf(Vf(r.value))).next,(s=Lf(i,o)).done||(a=Lf(i,o)).done||!Lf(i,o).done)throw mp("Expected sequence with length 2");wp(this.entries,{key:Jf(s.value),value:Jf(a.value)})}else for(var u in e)Ff(e,u)&&wp(this.entries,{key:u,value:Jf(e[u])})},parseQuery:function(e){if(e)for(var t,n,r=xp(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=xp(t,"="),wp(this.entries,{key:Op(Ep(n)),value:Op(bp(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],wp(n,Dp(e.key)+"="+Dp(e.value));return bp(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var qp=function(){Qf(this,_p);var e=ip(this,new Up(arguments.length>0?arguments[0]:void 0));jf||(this.length=e.entries.length)},_p=qp.prototype;if(qf(_p,{append:function(e,t){ep(arguments.length,2);var n=sp(this);wp(n.entries,{key:Jf(e),value:Jf(t)}),jf||this.length++,n.updateURL()},delete:function(e){ep(arguments.length,1);for(var t=sp(this),n=t.entries,r=Jf(e),o=0;o<n.length;)n[o].key===r?kp(n,o,1):o++;jf||(this.length=n.length),t.updateURL()},get:function(e){ep(arguments.length,1);for(var t=sp(this).entries,n=Jf(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){ep(arguments.length,1);for(var t=sp(this).entries,n=Jf(e),r=[],o=0;o<t.length;o++)t[o].key===n&&wp(r,t[o].value);return r},has:function(e){ep(arguments.length,1);for(var t=sp(this).entries,n=Jf(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){ep(arguments.length,1);for(var n,r=sp(this),o=r.entries,i=!1,s=Jf(e),a=Jf(t),c=0;c<o.length;c++)(n=o[c]).key===s&&(i?kp(o,c--,1):(i=!0,n.value=a));i||wp(o,{key:s,value:a}),jf||(this.length=o.length),r.updateURL()},sort:function(){var e=sp(this);tp(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=sp(this).entries,r=Gf(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 Mp(this,"keys")},values:function(){return new Mp(this,"values")},entries:function(){return new Mp(this,"entries")}},{enumerable:!0}),Mf(_p,np,_p.entries,{name:"entries"}),Mf(_p,"toString",(function(){return sp(this).serialize()}),{enumerable:!0}),jf&&Uf(_p,"size",{get:function(){return sp(this).entries.length},configurable:!0,enumerable:!0}),_f(qp,rp),Cf({global:!0,constructor:!0,forced:!Df},{URLSearchParams:qp}),!Df&&zf(fp)){var Np=Bf(hp.has),Hp=Bf(hp.set),Qp=function(e){if($f(e)){var t,n=e.body;if(Wf(n)===rp)return t=e.headers?new fp(e.headers):new fp,Np(t,"content-type")||Hp(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Xf(e,{body:Yf(0,Jf(n)),headers:Yf(0,t)})}return e};if(zf(lp)&&Cf({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return lp(e,arguments.length>1?Qp(arguments[1]):{})}}),zf(dp)){var zp=function(e){return Qf(this,pp),new dp(e,arguments.length>1?Qp(arguments[1]):{})};pp.constructor=zp,zp.prototype=pp,Cf({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:zp})}}var Fp,Gp=to,Wp=c,Vp=Bl,$p=i,Jp=Ul,Xp=k,Yp=Zn,Zp=Ou,Kp=Nl,eh=Qe,th=Kl,nh=function(e){var t=Qd(e),n=Gd(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Nd(o,r>2?arguments[2]:void 0));var s,a,c,u,l,d,f=Jd(t),p=0;if(!f||this===Xd&&Fd(f))for(s=Wd(t),a=n?new this(s):Xd(s);s>p;p++)d=i?o(t[p],p):t[p],Vd(a,p,d);else for(l=(u=$d(t,f)).next,a=n?new this:[];!(c=Hd(l,u)).done;p++)d=i?zd(u,o,[c.value,p],!0):c.value,Vd(a,p,d);return a.length=p,a},rh=nf,oh=qc.codeAt,ih=function(e){var t,n,r=[],o=yf(mf(vf(e),af,"."),".");for(t=0;t<o.length;t++)n=o[t],gf(r,lf(sf,n)?"xn--"+wf(n):n);return hf(r,".")},sh=oa,ah=Ci,ch=Ef,uh={URLSearchParams:qp,getState:sp},lh=In,dh=lh.set,fh=lh.getterFor("URL"),ph=uh.URLSearchParams,hh=uh.getState,gh=$p.URL,mh=$p.TypeError,yh=$p.parseInt,vh=Math.floor,Ah=Math.pow,bh=Xp("".charAt),wh=Xp(/./.exec),Sh=Xp([].join),Eh=Xp(1..toString),kh=Xp([].pop),xh=Xp([].push),Th=Xp("".replace),Ph=Xp([].shift),Rh=Xp("".split),Ih=Xp("".slice),Ch=Xp("".toLowerCase),Oh=Xp([].unshift),Lh="Invalid scheme",Bh="Invalid host",jh="Invalid port",Dh=/[a-z]/i,Mh=/[\d+-.a-z]/i,Uh=/\d/,qh=/^0x/i,_h=/^[0-7]+$/,Nh=/^\d+$/,Hh=/^[\da-f]+$/i,Qh=/[\0\t\n\r #%/:<>?@[\\\]^|]/,zh=/[\0\t\n\r #/:<>?@[\\\]^|]/,Fh=/^[\u0000-\u0020]+/,Gh=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Wh=/[\t\n\r]/g,Vh=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)Oh(t,e%256),e=vh(e/256);return Sh(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+=Eh(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},$h={},Jh=th({},$h,{" ":1,'"':1,"<":1,">":1,"`":1}),Xh=th({},Jh,{"#":1,"?":1,"{":1,"}":1}),Yh=th({},Xh,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Zh=function(e,t){var n=oh(e,0);return n>32&&n<127&&!eh(t,e)?e:encodeURIComponent(e)},Kh={ftp:21,file:null,http:80,https:443,ws:80,wss:443},eg=function(e,t){var n;return 2==e.length&&wh(Dh,bh(e,0))&&(":"==(n=bh(e,1))||!t&&"|"==n)},tg=function(e){var t;return e.length>1&&eg(Ih(e,0,2))&&(2==e.length||"/"===(t=bh(e,2))||"\\"===t||"?"===t||"#"===t)},ng=function(e){return"."===e||"%2e"===Ch(e)},rg={},og={},ig={},sg={},ag={},cg={},ug={},lg={},dg={},fg={},pg={},hg={},gg={},mg={},yg={},vg={},Ag={},bg={},wg={},Sg={},Eg={},kg=function(e,t,n){var r,o,i,s=sh(e);if(t){if(o=this.parse(s))throw mh(o);this.searchParams=null}else{if(void 0!==n&&(r=new kg(n,!0)),o=this.parse(s,null,r))throw mh(o);(i=hh(new ph)).bindURL(this),this.searchParams=i}};kg.prototype={type:"URL",parse:function(e,t,n){var r,o,i,s,a,c=this,u=t||rg,l=0,d="",f=!1,p=!1,h=!1;for(e=sh(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=Th(e,Fh,""),e=Th(e,Gh,"$1")),e=Th(e,Wh,""),r=nh(e);l<=r.length;){switch(o=r[l],u){case rg:if(!o||!wh(Dh,o)){if(t)return Lh;u=ig;continue}d+=Ch(o),u=og;break;case og:if(o&&(wh(Mh,o)||"+"==o||"-"==o||"."==o))d+=Ch(o);else{if(":"!=o){if(t)return Lh;d="",u=ig,l=0;continue}if(t&&(c.isSpecial()!=eh(Kh,d)||"file"==d&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&Kh[c.scheme]==c.port&&(c.port=null));d="","file"==c.scheme?u=mg:c.isSpecial()&&n&&n.scheme==c.scheme?u=sg:c.isSpecial()?u=lg:"/"==r[l+1]?(u=ag,l++):(c.cannotBeABaseURL=!0,xh(c.path,""),u=wg)}break;case ig:if(!n||n.cannotBeABaseURL&&"#"!=o)return Lh;if(n.cannotBeABaseURL&&"#"==o){c.scheme=n.scheme,c.path=rh(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Eg;break}u="file"==n.scheme?mg:cg;continue;case sg:if("/"!=o||"/"!=r[l+1]){u=cg;continue}u=dg,l++;break;case ag:if("/"==o){u=fg;break}u=bg;continue;case cg:if(c.scheme=n.scheme,o==Fp)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=rh(n.path),c.query=n.query;else if("/"==o||"\\"==o&&c.isSpecial())u=ug;else if("?"==o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=rh(n.path),c.query="",u=Sg;else{if("#"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=rh(n.path),c.path.length--,u=bg;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=rh(n.path),c.query=n.query,c.fragment="",u=Eg}break;case ug:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=bg;continue}u=fg}else u=dg;break;case lg:if(u=dg,"/"!=o||"/"!=bh(d,l+1))continue;l++;break;case dg:if("/"!=o&&"\\"!=o){u=fg;continue}break;case fg:if("@"==o){f&&(d="%40"+d),f=!0,i=nh(d);for(var g=0;g<i.length;g++){var m=i[g];if(":"!=m||h){var y=Zh(m,Yh);h?c.password+=y:c.username+=y}else h=!0}d=""}else if(o==Fp||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(f&&""==d)return"Invalid authority";l-=nh(d).length+1,d="",u=pg}else d+=o;break;case pg:case hg:if(t&&"file"==c.scheme){u=vg;continue}if(":"!=o||p){if(o==Fp||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==d)return Bh;if(t&&""==d&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(d))return s;if(d="",u=Ag,t)return;continue}"["==o?p=!0:"]"==o&&(p=!1),d+=o}else{if(""==d)return Bh;if(s=c.parseHost(d))return s;if(d="",u=gg,t==hg)return}break;case gg:if(!wh(Uh,o)){if(o==Fp||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=d){var v=yh(d,10);if(v>65535)return jh;c.port=c.isSpecial()&&v===Kh[c.scheme]?null:v,d=""}if(t)return;u=Ag;continue}return jh}d+=o;break;case mg:if(c.scheme="file","/"==o||"\\"==o)u=yg;else{if(!n||"file"!=n.scheme){u=bg;continue}if(o==Fp)c.host=n.host,c.path=rh(n.path),c.query=n.query;else if("?"==o)c.host=n.host,c.path=rh(n.path),c.query="",u=Sg;else{if("#"!=o){tg(Sh(rh(r,l),""))||(c.host=n.host,c.path=rh(n.path),c.shortenPath()),u=bg;continue}c.host=n.host,c.path=rh(n.path),c.query=n.query,c.fragment="",u=Eg}}break;case yg:if("/"==o||"\\"==o){u=vg;break}n&&"file"==n.scheme&&!tg(Sh(rh(r,l),""))&&(eg(n.path[0],!0)?xh(c.path,n.path[0]):c.host=n.host),u=bg;continue;case vg:if(o==Fp||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&eg(d))u=bg;else if(""==d){if(c.host="",t)return;u=Ag}else{if(s=c.parseHost(d))return s;if("localhost"==c.host&&(c.host=""),t)return;d="",u=Ag}continue}d+=o;break;case Ag:if(c.isSpecial()){if(u=bg,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Fp&&(u=bg,"/"!=o))continue}else c.fragment="",u=Eg;else c.query="",u=Sg;break;case bg:if(o==Fp||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(a=Ch(a=d))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||xh(c.path,"")):ng(d)?"/"==o||"\\"==o&&c.isSpecial()||xh(c.path,""):("file"==c.scheme&&!c.path.length&&eg(d)&&(c.host&&(c.host=""),d=bh(d,0)+":"),xh(c.path,d)),d="","file"==c.scheme&&(o==Fp||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)Ph(c.path);"?"==o?(c.query="",u=Sg):"#"==o&&(c.fragment="",u=Eg)}else d+=Zh(o,Xh);break;case wg:"?"==o?(c.query="",u=Sg):"#"==o?(c.fragment="",u=Eg):o!=Fp&&(c.path[0]+=Zh(o,$h));break;case Sg:t||"#"!=o?o!=Fp&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":Zh(o,$h)):(c.fragment="",u=Eg);break;case Eg:o!=Fp&&(c.fragment+=Zh(o,Jh))}l++}},parseHost:function(e){var t,n,r;if("["==bh(e,0)){if("]"!=bh(e,e.length-1))return Bh;if(t=function(e){var t,n,r,o,i,s,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,f=function(){return bh(e,d)};if(":"==f()){if(":"!=bh(e,1))return;d+=2,l=++u}for(;f();){if(8==u)return;if(":"!=f()){for(t=n=0;n<4&&wh(Hh,f());)t=16*t+yh(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,u>6)return;for(r=0;f();){if(o=null,r>0){if(!("."==f()&&r<4))return;d++}if(!wh(Uh,f()))return;for(;wh(Uh,f());){if(i=yh(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(s=u-l,u=7;0!=u&&s>0;)a=c[u],c[u--]=c[l+s-1],c[l+--s]=a;else if(8!=u)return;return c}(Ih(e,1,-1)),!t)return Bh;this.host=t}else if(this.isSpecial()){if(e=ih(e),wh(Qh,e))return Bh;if(t=function(e){var t,n,r,o,i,s,a,c=Rh(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"==bh(o,0)&&(i=wh(qh,o)?16:8,o=Ih(o,8==i?1:2)),""===o)s=0;else{if(!wh(10==i?Nh:8==i?_h:Hh,o))return e;s=yh(o,i)}xh(n,s)}for(r=0;r<t;r++)if(s=n[r],r==t-1){if(s>=Ah(256,5-t))return null}else if(s>255)return null;for(a=kh(n),r=0;r<n.length;r++)a+=n[r]*Ah(256,3-r);return a}(e),null===t)return Bh;this.host=t}else{if(wh(zh,e))return Bh;for(t="",n=nh(e),r=0;r<n.length;r++)t+=Zh(n[r],$h);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return eh(Kh,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&eg(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,s=e.path,a=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=Vh(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?s[0]:s.length?"/"+Sh(s,"/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw mh(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new xg(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Vh(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(sh(e)+":",rg)},getUsername:function(){return this.username},setUsername:function(e){var t=nh(sh(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=Zh(t[n],Yh)}},getPassword:function(){return this.password},setPassword:function(e){var t=nh(sh(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=Zh(t[n],Yh)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Vh(e):Vh(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,pg)},getHostname:function(){var e=this.host;return null===e?"":Vh(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,hg)},getPort:function(){var e=this.port;return null===e?"":sh(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=sh(e))?this.port=null:this.parse(e,gg))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Sh(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ag))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=sh(e))?this.query=null:("?"==bh(e,0)&&(e=Ih(e,1)),this.query="",this.parse(e,Sg)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=sh(e))?("#"==bh(e,0)&&(e=Ih(e,1)),this.fragment="",this.parse(e,Eg)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var xg=function(e){var t=Kp(this,Tg),n=ch(arguments.length,1)>1?arguments[1]:void 0,r=dh(t,new kg(e,!1,n));Wp||(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())},Tg=xg.prototype,Pg=function(e,t){return{get:function(){return fh(this)[e]()},set:t&&function(e){return fh(this)[t](e)},configurable:!0,enumerable:!0}};if(Wp&&(Zp(Tg,"href",Pg("serialize","setHref")),Zp(Tg,"origin",Pg("getOrigin")),Zp(Tg,"protocol",Pg("getProtocol","setProtocol")),Zp(Tg,"username",Pg("getUsername","setUsername")),Zp(Tg,"password",Pg("getPassword","setPassword")),Zp(Tg,"host",Pg("getHost","setHost")),Zp(Tg,"hostname",Pg("getHostname","setHostname")),Zp(Tg,"port",Pg("getPort","setPort")),Zp(Tg,"pathname",Pg("getPathname","setPathname")),Zp(Tg,"search",Pg("getSearch","setSearch")),Zp(Tg,"searchParams",Pg("getSearchParams")),Zp(Tg,"hash",Pg("getHash","setHash"))),Yp(Tg,"toJSON",(function(){return fh(this).serialize()}),{enumerable:!0}),Yp(Tg,"toString",(function(){return fh(this).serialize()}),{enumerable:!0}),gh){var Rg=gh.createObjectURL,Ig=gh.revokeObjectURL;Rg&&Yp(xg,"createObjectURL",Jp(Rg,gh)),Ig&&Yp(xg,"revokeObjectURL",Jp(Ig,gh))}ah(xg,"URL"),Gp({global:!0,constructor:!0,forced:!Vp,sham:!Wp},{URL:xg});var Cg=f;to({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Cg(URL.prototype.toString,this)}});var Og=c,Lg=k,Bg=Ou,jg=URLSearchParams.prototype,Dg=Lg(jg.forEach);function Mg(){return Math.random().toString(36).slice(2)}function Ug(e){return Object.keys(e)}function qg(e){return Object.prototype.toString.call(e)}function _g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ng(e){return"string"==typeof e}function Hg(e){return"[object BigInt]"===qg(e)}function Qg(e){return e instanceof Array}function zg(e){return"object"==typeof e&&null!==e}function Fg(e){return e instanceof Blob}function Gg(e){return e instanceof URLSearchParams}function Wg(e){return e instanceof FormData}function Vg(e){return e instanceof File}function $g(e){return e instanceof Document}Og&&!("size"in jg)&&Bg(jg,"size",{get:function(){var e=0;return Dg(this,(function(){e++})),e},configurable:!0,enumerable:!0});const Jg=e=>"".concat(e),Xg=e=>({ok:!0,value:e});function Yg(e){return void 0===e?Xg(Jg(e)):null===e?Xg(e):function(e){return"number"==typeof e}(e)&&(e===-1/0||e===1/0||Number.isNaN(e))?Xg(Jg(e)):Hg(e)?Xg("".concat(e,"n")):"symbol"==typeof e||"function"==typeof e?Xg(Jg(e.toString())):e instanceof Error?Xg(Jg(e.stack)):e===Object.prototype?{value:null,ok:!1}:e instanceof Object||"object"==typeof e?{value:e,ok:!1}:Xg(e)}function Zg(e){const{ok:t,value:n}=Yg(e);return t?n:JSON.stringify(e,((e,t)=>Yg(t).value),2)}function Kg(e){return void 0===e?"undefined":null===e?"null":Hg(e)?"bigint":e instanceof Object?e instanceof Error?"error":"function"==typeof e?"function":"object":typeof e}const em=Object.assign({},console),tm=["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.unproxy[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];em[t]("[PageSpy] [".concat(t.toLocaleUpperCase(),"] "),...n)},e)),{unproxy:{}});const nm=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}},rm=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)})),om="message",im="broadcast",sm="ping",am="updateRoomInfo";var cm=Object.freeze({__proto__:null,BROADCAST:im,CLOSE:"close",CONNECT:"connect",ERROR:"error",JOIN:"join",LEAVE:"leave",MESSAGE:om,PING:sm,PONG:"pong",UPDATE_ROOM_INFO:am});function um(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{role:"client",type:e,data:Object.assign(Object.assign({},n&&{id:Mg()}),t)}}class lm{constructor(e){this.id="",this.method="",this.url="",this.requestType="xhr",this.requestHeader=null,this.status=0,this.statusText="",this.readyState=0,this.responseReason=null,this.responseType="",this.responseHeader=null,this.startTime=0,this.endTime=0,this.costTime=0,this.postData=null,this.requestPayload=null,this.withCredentials=!1,this.lastEventId="",this.id=e}}function dm(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const fm=2097152,pm="Exceed maximum limit";var hm;!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"}(hm||(hm={}));const gm="(file)";const mm="Content-Type";function ym(e,t){if(!t)return e;const n=function(e){return e?Wg(e)?"multipart/form-data":Gg(e)?"application/x-www-form-urlencoded;charset=UTF-8":$g(e)?"application/xml":Fg(e)?e.type:"text/plain;charset=UTF-8":null}(t);if(!n)return e;const r=[mm,n];if(!e)return[r];for(let t=0;t<e.length;t++){const[n]=e[t];if(n.toUpperCase()===mm.toUpperCase())return e}return[...e,r]}function vm(e){return dm(this,void 0,void 0,(function*(){if(!e)return null;if(Gg(e)||Wg(e))return function(e){const t=[];let n=e.next();for(;!n.done;){const[r,o]=n.value;let i;i=Vg(o)?gm:String(o),t.push([r,i]),n=e.next()}return t}(e.entries());if(Fg(e))return"[object Blob]";if(t=e,ArrayBuffer.isView(t))return"[object TypedArray]";var t;if($g(e)){return(new XMLSerializer).serializeToString(e)}return Ng(e)?e:qg(e)}))}class Am{constructor(e){this.socketStore=e,this.reqMap=Object.create(null)}getRequestMap(){return this.reqMap}getRequest(e){return this.reqMap[e]}removeRequest(e){delete this.reqMap[e]}createRequest(e){return e?this.reqMap[e]?(tm.warn("The request object has been in store, disallow duplicate create"),!1):(this.reqMap[e]=new lm(e),!0):(tm.warn('The "id" is required when init request object'),!1)}setRequest(e,t){return!(!e||!t)&&(this.reqMap[e]=t,!0)}sendRequestItem(e,t){var n;if(!1!==(null===(n=Am.dataProcessor)||void 0===n?void 0:n.call(Am,t)))try{this.reqMap[e]||(this.reqMap[e]=t);const n=um("network",Object.assign({},t),!1);this.socketStore.dispatchEvent("public-data",n),this.socketStore.broadcastMessage(n,t.readyState!==hm.DONE),this.deferDeleteRequest(e)}catch(e){tm.error(e.message)}}deferDeleteRequest(e){const t=this.getRequest(e);t&&t.readyState===hm.DONE&&setTimeout((()=>{delete this.reqMap[e]}),3e3)}}var bm=k,wm=Set.prototype,Sm={Set:Set,add:bm(wm.add),has:bm(wm.has),remove:bm(wm.delete),proto:wm},Em=Sm.has,km=function(e){return Em(e),e},xm=f,Tm=function(e,t,n){for(var r,o,i=n||e.next;!(r=xm(i,e)).done;)if(void 0!==(o=t(r.value)))return o},Pm=k,Rm=Tm,Im=Sm.Set,Cm=Sm.proto,Om=Pm(Cm.forEach),Lm=Pm(Cm.keys),Bm=Lm(new Im).next,jm=function(e,t,n){return n?Rm(Lm(e),t,Bm):Om(e,t)},Dm=jm,Mm=Sm.Set,Um=Sm.add,qm=function(e){var t=new Mm;return Dm(e,(function(e){Um(t,e)})),t},_m=Ni(Sm.proto,"size","get")||function(e){return e.size},Nm=be,Hm=Bt,Qm=f,zm=rr,Fm=TypeError,Gm=Math.max,Wm=function(e,t,n,r){this.set=e,this.size=t,this.has=n,this.keys=r};Wm.prototype={getIterator:function(){return Hm(Qm(this.keys,this.set))},includes:function(e){return Qm(this.has,this.set,e)}};var Vm=function(e){Hm(e);var t=+e.size;if(t!=t)throw Fm("Invalid size");return new Wm(e,Gm(zm(t),0),Nm(e.has),Nm(e.keys))},$m=km,Jm=qm,Xm=_m,Ym=Vm,Zm=jm,Km=Tm,ey=Sm.has,ty=Sm.remove,ny=X,ry=function(e){try{return(new(ny("Set")))[e]({size:0,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}),!0}catch(e){return!1}},oy=function(e){var t=$m(this),n=Ym(e),r=Jm(t);return Xm(t)<=n.size?Zm(t,(function(e){n.includes(e)&&ty(r,e)})):Km(n.getIterator(),(function(e){ey(t,e)&&ty(r,e)})),r};to({target:"Set",proto:!0,real:!0,forced:!ry("difference")},{difference:oy});var iy=km,sy=_m,ay=Vm,cy=jm,uy=Tm,ly=Sm.Set,dy=Sm.add,fy=Sm.has,py=a,hy=function(e){var t=iy(this),n=ay(e),r=new ly;return sy(t)>n.size?uy(n.getIterator(),(function(e){fy(t,e)&&dy(r,e)})):cy(t,(function(e){n.includes(e)&&dy(r,e)})),r};to({target:"Set",proto:!0,real:!0,forced:!ry("intersection")||py((function(){return"3,2"!=Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:hy});var gy=km,my=Sm.has,yy=_m,vy=Vm,Ay=jm,by=Tm,wy=rd,Sy=function(e){var t=gy(this),n=vy(e);if(yy(t)<=n.size)return!1!==Ay(t,(function(e){if(n.includes(e))return!1}),!0);var r=n.getIterator();return!1!==by(r,(function(e){if(my(t,e))return wy(r,"normal",!1)}))};to({target:"Set",proto:!0,real:!0,forced:!ry("isDisjointFrom")},{isDisjointFrom:Sy});var Ey=km,ky=_m,xy=jm,Ty=Vm,Py=function(e){var t=Ey(this),n=Ty(e);return!(ky(t)>n.size)&&!1!==xy(t,(function(e){if(!n.includes(e))return!1}),!0)};to({target:"Set",proto:!0,real:!0,forced:!ry("isSubsetOf")},{isSubsetOf:Py});var Ry=km,Iy=Sm.has,Cy=_m,Oy=Vm,Ly=Tm,By=rd,jy=function(e){var t=Ry(this),n=Oy(e);if(Cy(t)<n.size)return!1;var r=n.getIterator();return!1!==Ly(r,(function(e){if(!Iy(t,e))return By(r,"normal",!1)}))};to({target:"Set",proto:!0,real:!0,forced:!ry("isSupersetOf")},{isSupersetOf:jy});var Dy=km,My=qm,Uy=Vm,qy=Tm,_y=Sm.add,Ny=Sm.has,Hy=Sm.remove,Qy=function(e){var t=Dy(this),n=Uy(e).getIterator(),r=My(t);return qy(n,(function(e){Ny(t,e)?Hy(r,e):_y(r,e)})),r};to({target:"Set",proto:!0,real:!0,forced:!ry("symmetricDifference")},{symmetricDifference:Qy});var zy=km,Fy=Sm.add,Gy=qm,Wy=Vm,Vy=Tm,$y=function(e){var t=zy(this),n=Wy(e).getIterator(),r=Gy(t);return Vy(n,(function(e){Fy(r,e)})),r};to({target:"Set",proto:!0,real:!0,forced:!ry("union")},{union:$y});class Jy{constructor(){this.store={},this.instanceStore={}}getStore(){return this.store}resetStore(){this.store={}}getInstanceStore(){return this.instanceStore}resetInstanceStore(){this.instanceStore={}}transformToAtom(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{value:n,ok:r}=Yg(e),o=Mg();if(r)return{id:o,type:Kg(e),value:n};if(t)try{return{id:o,type:"json",value:JSON.stringify(e)}}catch(e){return{id:o,type:"json",value:null}}return 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];_g(t,"value")&&(t.value=this.transformToAtom(t.value)),r[e]=Jy.getAtomOverview({atomId:Mg(),instanceId:n,value:t})}));const i=this.addExtraProperty(e);return Object.assign(Object.assign({},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=Mg();let r=n;var o;zg(o=e)&&_g(o,"constructor")&&"function"==typeof o.constructor&&(r=t),this.store[n]=e,this.instanceStore[n]=r;const i=Jy.getSemanticValue(e);return Jy.getAtomOverview({atomId:n,value:i,instanceId:r})}static getAtomOverview(e){let{instanceId:t="",atomId:n,value:r}=e;return{id:Mg(),type:"atom",__atomId:n,instanceId:t,value:r}}static getSemanticValue(e){if(zg(t=e)&&"[object Object]"===qg(t))return"Object {...}";var t;if(Qg(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(Qg(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}}const Xy=new Jy;class Yy{static makeClientInfoMsg(){return{sdk:Yy.info.sdk,isDevTools:Yy.info.isDevTools,ua:Yy.getName(),plugins:Yy.plugins}}static getName(){if(!Yy._name){const{ua:e,osType:t,osVersion:n,browserType:r,browserVersion:o}=Yy.info;Yy._name=e||"".concat(t,"/").concat(n," ").concat(r,"/").concat(o)}return Yy._name}}Yy.info={osType:"unknown",osVersion:"unknown",browserType:"unknown",browserVersion:"unknown",framework:"unknown",isDevTools:!1,sdk:"browser"},Yy.plugins=[];class Zy{defaultConfig(){return{}}constructor(){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=Object.assign(Object.assign({},this.defaultConfig()),t),this.value},this.value=this.defaultConfig()}get(){return this.value}set(e,t){this.value[e]=t}}const Ky="page-spy-room";var ev;!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"}(ev||(ev={}));const tv=2e3,nv=Math.pow(1.5,4)*tv;class rv{constructor(){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 ov{getSocket(){return this.socketWrapper}updateRoomInfo(){if(this.getPageSpyConfig){const{project:e,title:t}=this.getPageSpyConfig(),n=Yy.getName();this.send({type:am,content:{info:{name:n,group:e,tags:{title:t,name:n,group:e}}}},!0)}}constructor(){this.socketUrl="",this.socketConnection=null,this.debuggerConnection=null,this.pingTimer=null,this.pongTimer=null,this.retryTimer=null,this.isOffline=!1,this.messageCapacity=0,this.messages=[],this.events={debug:[],refresh:[],"atom-detail":[],"atom-getter":[],"debugger-online":[],"database-pagination":[],"public-data":[],"harbor-clear":[]},this.retryInterval=tv,this.connectable=!0,this.getPageSpyConfig=null,this.addListener("atom-detail",ov.handleResolveAtom),this.addListener("atom-getter",ov.handleAtomPropertyGetter),this.addListener("debugger-online",this.handleFlushBuffer)}init(e){return dm(this,void 0,void 0,(function*(){var t,n,r,o,i;try{if(!e)throw Error("WebSocket url cannot be empty");this.socketWrapper.clearListeners(),this.socketWrapper.getState()===ev.OPEN&&(yield new Promise((e=>{this.socketWrapper.onClose((()=>{this.socketWrapper.clearListeners(),e()})),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){tm.error(e.message)}}))}addListener(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}removeListener(e,t){const n=this.events[e]||[],r=n.indexOf(t);r>-1&&n.splice(r,1)}broadcastMessage(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=function(e){return{type:im,content:{data:e}}}(e);this.send(n,t)}close(){var e;this.connectable=!1,this.clearPing(),null===(e=this.socketWrapper)||void 0===e||e.close(),this.messages=[],Object.entries(this.events).forEach((e=>{let[t,n]=e;["atom-detail","atom-getter","debugger-online"].includes(t)||n.splice(0)}))}connectOnline(){this.retryInterval=tv,this.updateRoomInfo(),this.ping()}connectOffline(){this.socketConnection=null,this.debuggerConnection=null,this.clearPing(),this.retryTimer&&clearTimeout(this.retryTimer),this.connectable&&(this.retryTimer=setTimeout((()=>{this.retryInterval<nv&&(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;ov.messageFilters.length&&ov.messageFilters.forEach((t=>{e=t(e)}));const{CONNECT:n,MESSAGE:r,ERROR:o,JOIN:i,PING:s,PONG:a,LEAVE:c,CLOSE:u,BROADCAST:l}=cm,d=JSON.parse(e.data),{type:f}=d;switch(f){case n:const{selfConnection:e,roomConnections:s}=d.content;this.socketConnection=e,this.debuggerConnection=s.find((e=>"Debugger"===e.userId))||null;break;case i:case c:const{connection:a}=d.content;"Debugger"===a.userId&&(f===i?(this.debuggerConnection=a,this.sendClientInfo()):this.debuggerConnection=null);break;case r:const{data:l,from:p,to:h}=d.content;h.address===(null===(t=this.socketConnection)||void 0===t?void 0:t.address)&&this.dispatchEvent(l.type,{source:l,from:p,to:h});break;case u: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:om,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:om,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=Xy.get(o)||{};t(um("atom-detail-".concat(o),e,!1))}}static handleAtomPropertyGetter(e,t){let{source:n}=e;var r,o;const{type:i,data:s}=n;if("atom-getter"===i){const{id:e,parentId:n,key:i,instanceId:a}=s,c=Xy.getOrigin(a),u=Xy.getOrigin(n);let l={};l=c&&u?null===(o=null===(r=Object.getOwnPropertyDescriptor(u,i))||void 0===r?void 0:r.get)||void 0===o?void 0:o.call(c):new Error("Getter computed failed");t(um("atom-getter-".concat(e),Xy.transformToAtom(l)))}}send(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;if(this.checkIfSend(e))try{const t=e;t.createdAt=Date.now(),t.requestId=Mg();const r=Zg(t);null===(n=this.socketWrapper)||void 0===n||n.send(r)}catch(e){tm.error("Incompatible: ".concat(e.message)),this.connectOffline()}this.checkIfCache(e,t)&&(0!==this.messageCapacity&&this.messages.length>=this.messageCapacity&&this.messages.shift(),this.messages.push(e))}checkIfSend(e){return this.socketWrapper.getState()===ev.OPEN&&(!![am,sm].includes(e.type)||!!this.debuggerConnection)}checkIfCache(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.isOffline&&!t&&![om,sm].includes(e.type)}sendClientInfo(){const e=Yy.makeClientInfoMsg();this.broadcastMessage({role:"client",type:"client-info",data:e},!0)}}ov.messageFilters=[];class iv extends rv{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(Zg(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}}var sv=new class extends ov{constructor(){super(...arguments),t(this,"socketWrapper",new iv)}onOffline(){window.dispatchEvent(new CustomEvent("sdk-inactive")),sessionStorage.removeItem(Ky)}};class av{constructor(){t(this,"name","ConsolePlugin"),t(this,"proxyTypes",["log","info","error","warn","debug"]),t(this,"console",{}),t(this,"$pageSpyConfig",null)}async onInit(e){let{config:t}=e;av.hasInitd||(av.hasInitd=!0,sv.addListener("debug",av.handleDebugger),this.$pageSpyConfig=t,this.init())}init(){var e=this;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})}}))}reset(){this.proxyTypes.forEach((e=>{window.console[e]=this.console[e]}))}onReset(){this.reset(),av.hasInitd=!1}static handleDebugger(e,t){let{source:n}=e;const{type:r,data:o}=n;if("debug"===r){t(um("console",{logType:"debug-origin",logs:[{id:Mg(),type:"debug-origin",value:o}]}));try{const e=new Function("return ".concat(o))();t(um("console",{logType:"debug-eval",logs:[Xy.transformToAtom(e)]}))}catch(e){t(um("console",{logType:"error",logs:[{type:"error",value:e.stack}]}))}}}printLog(e){if(e.logs&&e.logs.length){var t,n;const r=null===(t=this.$pageSpyConfig)||void 0===t||null===(t=t.dataProcessor)||void 0===t?void 0:t.console;if(r){this.reset();const t=r(e);if(this.init(),!1===t)return}this.console[e.logType](...e.logs);const o=um("console",{...e,time:Date.now(),logs:e.logs.map((e=>Xy.transformToAtom(e,!1)))});if(sv.broadcastMessage(o),null!==(n=this.$pageSpyConfig)&&void 0!==n&&n.serializeData){const t={...o,data:{...o.data,logs:e.logs.map((e=>Xy.transformToAtom(e,!0)))}};sv.dispatchEvent("public-data",t)}else sv.dispatchEvent("public-data",o)}}}t(av,"hasInitd",!1);class cv{constructor(){t(this,"name","ErrorPlugin"),t(this,"$pageSpyConfig",null),t(this,"uncaughtErrorListener",(e=>{if(e.error){const{message:t,stack:n}=e.error,r=nm(e.error);this.sendMessage(n||t,r)}else{const t=e.message||"[PageSpy] An unknown error occurred and no stack trace available";this.sendMessage(t,null)}})),t(this,"resourceLoadErrorListener",(e=>{if(!(e instanceof ErrorEvent)){const{target:t}=e;this.sendMessage("[PageSpy] Resource Load Error: Cannot load resource of (".concat(t.src||t.href,")"),null)}})),t(this,"rejectionListener",(e=>{const t=nm(e.reason);this.sendMessage(e.reason,t)}))}onInit(e){let{config:t}=e;cv.hasInitd||(cv.hasInitd=!0,this.$pageSpyConfig=t,this.onUncaughtError(),this.onResourceLoadError(),this.onUnhandledRejectionError())}onReset(){window.removeEventListener("error",this.uncaughtErrorListener),window.removeEventListener("error",this.resourceLoadErrorListener),window.removeEventListener("unhandledrejection",this.rejectionListener),cv.hasInitd=!1}onUncaughtError(){window.addEventListener("error",this.uncaughtErrorListener)}onResourceLoadError(){window.addEventListener("error",this.resourceLoadErrorListener,!0)}onUnhandledRejectionError(){window.addEventListener("unhandledrejection",this.rejectionListener)}sendMessage(e,t){var n,r;const o={logType:"error",logs:[e],time:Date.now(),url:window.location.href,errorDetail:t};if(!1===(null===(n=this.$pageSpyConfig)||void 0===n||null===(n=n.dataProcessor)||void 0===n||null===(r=n.console)||void 0===r?void 0:r.call(n,o)))return;o.logs=o.logs.map((e=>Xy.transformToAtom(e)));const i=um("console",o);sv.dispatchEvent("public-data",i),sv.broadcastMessage(i)}}t(cv,"hasInitd",!1);class uv extends Am{constructor(){super(sv)}}class lv extends uv{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 s=o[0],a=o[1],c=Mg();e.createRequest(c);const u=e.getRequest(c);return u&&(u.url=new URL(a,window.location.href).toString(),u.method=s.toUpperCase(),u.requestType="xhr"),this.pageSpyRequestId=c,this.pageSpyRequestMethod=s,this.pageSpyRequestUrl=a,n.addEventListener("readystatechange",(async()=>{if(u){switch(u.readyState=n.readyState,n.readyState){case n.UNSENT:case n.OPENED:u.status=n.status,u.statusText="Pending",u.startTime||(u.startTime=Date.now());break;case n.HEADERS_RECEIVED:u.status=n.status,u.statusText="Loading";const t=(n.getAllResponseHeaders()||"").trim().split(/[\r\n]+/);u.responseHeader=t.reduce(((e,t)=>{const[n,...r]=t.split(": ");return e.push([n,r.join(": ")]),e}),[]);break;case n.LOADING:u.status=n.status,u.statusText="Loading";break;case n.DONE:u.status=n.status,u.statusText="Done",u.endTime=Date.now(),u.costTime=u.endTime-(u.startTime||u.endTime);const r=await e.formatResponse(n);Ug(r).forEach((e=>{u[e]=r[e]}));break;default:u.status=n.status,u.statusText="Unknown"}e.sendRequestItem(n.pageSpyRequestId,u)}else tm.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([String(t),String(n)])):tm.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}=r,i=e.getRequest(o);return i?(i.responseType=r.responseType,i.withCredentials=r.withCredentials,"GET"!==i.method&&(i.requestHeader=ym(i.requestHeader,t),vm(t).then((t=>{i.requestPayload=t,e.sendRequestItem(r.pageSpyRequestId,i)})))):tm.warn("The request object is not found on XMLHttpRequest's send event"),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(Ng(e.response))try{t.response=JSON.parse(e.response)}catch(n){t.response=e.response}else void 0!==e.response&&(t.response=qg(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(Fg(n))if(n.size<=fm)try{t.response=await rm(n)}catch(e){t.response=await n.text(),tm.error(e.message)}else t.response="[object Blob]",t.responseReason=pm}break;default:void 0!==e.response&&(t.response=Object.prototype.toString.call(e.response))}return t}}var dv=i.Promise,fv=Sd,pv=me,hv=TypeError,gv=Bt,mv=function(e){if(fv(e))return e;throw hv(pv(e)+" is not a constructor")},yv=j,vv=nt("species"),Av={},bv=be,wv=TypeError,Sv=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw wv("Bad Promise constructor");t=e,n=r})),this.resolve=bv(t),this.reject=bv(n)};Av.f=function(e){return new Sv(e)};var Ev=Bt,kv=V,xv=Av,Tv=to,Pv=dv,Rv=a,Iv=X,Cv=F,Ov=function(e,t){var n,r=gv(e).constructor;return void 0===r||yv(n=gv(r)[vv])?t:mv(n)},Lv=function(e,t){if(Ev(e),kv(t)&&t.constructor===e)return t;var n=xv.f(e);return(0,n.resolve)(t),n.promise},Bv=Zn,jv=Pv&&Pv.prototype;if(Tv({target:"Promise",proto:!0,real:!0,forced:!!Pv&&Rv((function(){jv.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Ov(this,Iv("Promise")),n=Cv(e);return this.then(n?function(n){return Lv(t,e()).then((function(){return n}))}:e,n?function(n){return Lv(t,e()).then((function(){throw n}))}:e)}}),Cv(Pv)){var Dv=Iv("Promise").prototype.finally;jv.finally!==Dv&&Bv(jv,"finally",Dv,{unsafe:!0})}class Mv extends uv{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=Mg();e.createRequest(i);const s=e.getRequest(i);if(s){let t,a="GET",c=null;Ng(n)||n instanceof URL?(a=r.method||"GET",t=n,c=r.headers||null):(a=n.method,t=n.url,c=n.headers),s.url=new URL(t,window.location.href).toString(),s.method=a.toUpperCase(),s.requestType="fetch",s.status=0,s.statusText="Pending",s.startTime=Date.now(),s.readyState=XMLHttpRequest.UNSENT,r.credentials&&"omit"!==r.credentials&&(s.withCredentials=!0),c&&(!function(e){return e instanceof Headers}(c)?zg(c)?s.requestHeader=Object.entries(c).map((e=>{let[t,n]=e;return[String(t),String(n)]})):s.requestHeader=c.map((e=>{let[t,n]=e;return[String(t),String(n)]})):s.requestHeader=[...c.entries()]),"GET"!==s.method&&(s.requestHeader=ym(s.requestHeader,r.body),vm(r.body).then((t=>{s.requestPayload=t,e.sendRequestItem(i,s)}))),e.sendRequestItem(i,s),o.then((t=>{s.endTime=Date.now(),s.costTime=s.endTime-(s.startTime||s.endTime),s.status=t.status||200,s.statusText=t.statusText||"Done",s.responseHeader=[...t.headers.entries()],s.readyState=XMLHttpRequest.HEADERS_RECEIVED,e.sendRequestItem(i,s);const n=t.headers.get("content-type");if(n){if(n.includes("application/json"))return s.responseType="json",t.clone().text();if(n.includes("text/html")||n.includes("text/plain"))return s.responseType="text",t.clone().text()}return s.responseType="blob",t.clone().blob()})).then((async e=>{switch(s.responseType){case"text":case"json":try{s.response=JSON.parse(e)}catch(t){s.response=e,s.responseType="text"}break;case"blob":const t=e;if(t.size<=fm)try{s.response=await rm(t)}catch(e){s.response=await t.text(),tm.error(e.message)}else s.response="[object Blob]",s.responseReason=pm}})).finally((()=>{s.readyState=XMLHttpRequest.DONE,e.sendRequestItem(i,s)}))}else tm.warn("The request object is not found on window.fetch event");return o})}}class Uv extends uv{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=Mg();t.createRequest(i);const s=t.getRequest(i);return s?(s.url=new URL(n,window.location.href).toString(),s.method="POST",s.status=0,s.statusText="Pending",s.requestType="ping",s.requestHeader=ym(s.requestHeader,r),s.startTime=Date.now(),vm(r).then((e=>{s.requestPayload=e,t.sendRequestItem(i,s)})),s.response="",o?(s.status=200,s.statusText="Sent",s.endTime=Date.now(),s.costTime=s.endTime-(s.startTime||s.endTime)):(s.status=500,s.statusText="Unknown"),s.readyState=XMLHttpRequest.DONE,t.sendRequestItem(i,s)):tm.warn("The request object is not on navigator.sendBeacon event"),o}}}const qv=window.EventSource;class _v extends uv{constructor(){super(),this.initProxyHandler()}initProxyHandler(){if(!window.EventSource)return;const e=this;window.EventSource=class{constructor(t,n){const r=Mg(),o=new lm(r);o.url=new URL(t,window.location.href).toString(),o.method="GET",o.requestType="eventsource",o.requestHeader=[["Accept","text/event-stream"],["Cache-Control","no-cache"]],o.readyState=hm.UNSENT,o.withCredentials=Boolean(null==n?void 0:n.withCredentials),o.responseHeader=[["Content-Type","text/event-stream"]],o.responseType="text",o.startTime=Date.now();const i=new qv(t,n);return i.addEventListener("open",(()=>{o.readyState=hm.OPENED,o.endTime=Date.now(),o.costTime=o.endTime-o.startTime,e.sendRequestItem(r,o)})),i.addEventListener("message",(t=>{let{data:n,lastEventId:i}=t;o.status=200,o.statusText="Done",o.readyState=hm.DONE,o.response=n,o.lastEventId=i,o.endTime=Date.now(),o.costTime=o.endTime-o.startTime,e.sendRequestItem(r,o)})),i.addEventListener("error",(()=>{o.status=400,o.readyState=hm.DONE,o.endTime=Date.now(),o.costTime=o.endTime-o.startTime,e.sendRequestItem(r,o)})),i}}}reset(){window.EventSource=qv}}class Nv{constructor(){t(this,"name","NetworkPlugin"),t(this,"xhrProxy",null),t(this,"fetchProxy",null),t(this,"beaconProxy",null),t(this,"sseProxy",null)}onInit(e){let{config:t}=e;Nv.hasInitd||(Nv.hasInitd=!0,Am.dataProcessor=t.dataProcessor.network,this.xhrProxy=new lv,this.fetchProxy=new Mv,this.beaconProxy=new Uv,this.sseProxy=new _v)}onReset(){var e,t,n,r;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(),null===(r=this.sseProxy)||void 0===r||r.reset(),Nv.hasInitd=!1}}t(Nv,"hasInitd",!1);var Hv=i,Qv=Ci;to({global:!0},{Reflect:{}}),Qv(Hv.Reflect,"Reflect",!0);var zv;
/*! 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 !*/zv={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 s(e,t){if("object"==typeof e)for(var n in e)b(e,n)&&s(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 a(){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,s,c,u,l="modernizr",d=a("div"),f=function(){var e=n.body;return e||((e=a(k?"svg":"body")).fake=!0),e}();if(parseInt(r,10))for(;r--;)(c=a("div")).id=o?o[r]:l+(r+1),d.appendChild(c);return(i=a("style")).type="text/css",i.id="s"+l,(f.fake?f:d).appendChild(i),f.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),d.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",u=E.style.overflow,E.style.overflow="hidden",E.appendChild(f)),s=t(d,e),f.fake&&f.parentNode?(f.parentNode.removeChild(f),E.style.overflow=u,E.offsetHeight):d.parentNode.removeChild(d),!!s}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 d(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function f(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,n){return t+n.toUpperCase()})).replace(/^-/,"")}function p(e,n,i,s){function p(){g&&(delete D.style,delete D.modElem)}if(s=!o(s,"undefined")&&s,!o(i,"undefined")){var h=function(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(d(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+d(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(h,"undefined"))return h}for(var g,m,y,v,A,b=["modernizr","tspan","samp"];!D.style&&b.length;)g=!0,D.modElem=a(b.shift()),D.style=D.modElem.style;for(y=e.length,m=0;m<y;m++)if(v=e[m],A=D.style[v],l(v,"-")&&(v=f(v)),D.style[v]!==r){if(s||o(i,"undefined"))return p(),"pfx"!==n||v;try{D.style[v]=i}catch(e){}if(D.style[v]!==A)return p(),"pfx"!==n||v}return p(),!1}function h(e,t){return function(){return e.apply(t,arguments)}}function g(e,t,n,r,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+T.join(s+" ")+s).split(" ");return o(t,"string")||o(t,"undefined")?p(a,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")?h(r,n||t):r;return!1}(a=(e+" "+R.join(s+" ")+s).split(" "),t,n)}function m(e,t){var n=e.deleteDatabase(t);n.onsuccess=function(){s("indexeddb.deletedatabase",!0)},n.onerror=function(){s("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=s}));var x="Moz O ms Webkit",T=v._config.usePrefixes?x.split(" "):[];v._cssomPrefixes=T;var P=function(e){var n,o=U.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 s=0;s<o;s++){var a=U[s];if(a.toUpperCase()+"_"+n in i)return"@-"+a.toLowerCase()+"-"+e}return!1};v.atRule=P;var R=v._config.usePrefixes?x.toLowerCase().split(" "):[];v._domPrefixes=R;var I,C=(I=!("onblur"in E),function(e,t){var n;return!!e&&(t&&"string"!=typeof t||(t=a(t||"div")),!(n=(e="on"+e)in t)&&I&&(t.setAttribute||(t=a("div")),t.setAttribute(e,""),n="function"==typeof t[e],t[e]!==r&&(t[e]=r),t.removeAttribute(e)),n)});v.hasEvent=C,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 s(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 a(e){e||(e=t);var r=o(e);return!b.shivCSS||f||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||s(e,r),e}function c(e){for(var t,n=e.getElementsByTagName("*"),o=n.length,i=RegExp("^(?:"+r().join("|")+")$","i"),s=[];o--;)t=n[o],i.test(t.nodeName)&&s.push(t.applyElement(u(t)));return s}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"),s="$1"+S+"\\:$2";o--;)(t=n[o]=n[o].split("}"))[t.length-1]=t[t.length-1].replace(i,s),n[o]=t.join("}");return n.join("{")}function d(e){function t(){clearTimeout(s._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,i,s=o(e),a=e.namespaces,u=e.parentWindow;return!E||e.printShived||(void 0===a[S]&&a.add(S),u.attachEvent("onbeforeprint",(function(){t();for(var o,s,a,u=e.styleSheets,d=[],f=u.length,p=Array(f);f--;)p[f]=u[f];for(;a=p.pop();)if(!a.disabled&&w.test(a.media)){try{s=(o=a.imports).length}catch(e){s=0}for(f=0;f<s;f++)p.push(o[f]);try{d.push(a.cssText)}catch(e){}}d=l(d.reverse().join("")),i=c(e),r=n(e,d)})),u.attachEvent("onafterprint",(function(){(function(e){for(var t=e.length;t--;)e[t].removeNode()})(i),clearTimeout(s._removeSheetTimer),s._removeSheetTimer=setTimeout(t,500)})),e.printShived=!0),e}var f,p,h=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>",f="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){f=!0,p=!0}}();var b={elements:h.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!==h.shivCSS,supportsUnknownElements:p,shivMethods:!1!==h.shivMethods,type:"default",shivDocument:a,createElement:i,createDocumentFragment:function(e,n){if(e||(e=t),p)return e.createDocumentFragment();for(var i=(n=n||o(e)).frag.cloneNode(),s=0,a=r(),c=a.length;s<c;s++)i.createElement(a[s]);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,a(t)}};e.html5=b,a(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=d,d(t),zv.exports&&(zv.exports=b)}(void 0!==t?t:this,n);var O=function(){},L=function(){};t.console&&(O=function(){var e=console.error?"error":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))},L=function(){var e=console.warn?"warn":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))}),v.load=function(){"yepnope"in t?(L("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))):O("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 B=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=B;var j={elem:a("modernizr")};A._q.push((function(){delete j.elem}));var D={style:j.elem.style};A._q.unshift((function(){delete D.style})),v.testAllProps=g;var M=v.prefixed=function(e,t,n){return 0===e.indexOf("@")?P(e):(-1!==e.indexOf("-")&&(e=f(e)),t?g(e,t,n):g(e,"pfx"))},U=v._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];v._prefixes=U,v.prefixedCSS=function(e){var t=M(e);return t&&d(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){s("clipboard",!0);for(var n=0;n<t.length;n++)e=!!navigator.clipboard[t[n]],s("clipboard."+t[n].toLowerCase(),e)}else s("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!!C(M("mouseforcewillbegin",t,!1),t)&&MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN})),A.addTest("hashchange",(function(){return!1!==C("hashchange",t)&&(n.documentMode===r||n.documentMode>7)})),A.addTest("oninput",(function(){var e,r=a("input");if(r.setAttribute("oninput","return"),r.style.cssText="position:fixed;top:0;",C("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(C(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 a("iframe")),A.addTest("seamless","seamless"in a("iframe")),A.addTest("srcdoc","srcdoc"in a("iframe")),A.addTest("canvas",(function(){var e=a("canvas");return!(!e.getContext||!e.getContext("2d"))})),A.addAsyncTest((function(){if(!A.canvas)return!1;var e=new Image,t=a("canvas"),n=t.getContext("2d");e.onload=function(){s("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(){s("avif",1===e.width)},e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAAEcbWV0YQAAAAAAAABIaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGNhdmlmIC0gaHR0cHM6Ly9naXRodWIuY29tL2xpbmstdS9jYXZpZgAAAAAeaWxvYwAAAAAEQAABAAEAAAAAAUQAAQAAABcAAAAqaWluZgEAAAAAAAABAAAAGmluZmUCAAAAAAEAAGF2MDFJbWFnZQAAAAAOcGl0bQAAAAAAAQAAAHJpcHJwAAAAUmlwY28AAAAQcGFzcAAAAAEAAAABAAAAFGlzcGUAAAAAAAAAAQAAAAEAAAAQcGl4aQAAAAADCAgIAAAAFmF2MUOBAAwACggYAAYICGgIIAAAABhpcG1hAAAAAAAAAAEAAQUBAoMDhAAAAB9tZGF0CggYAAYICGgIIBoFHiAAAEQiBACwDoA="})),A.addTest("imgcrossorigin","crossOrigin"in a("img")),A.addAsyncTest((function(){var e=new Image;e.onerror=function(){s("exiforientation",!1)},e.onload=function(){s("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(){s("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;s(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",!!M("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=a("link").relList;return!(!e||!e.supports)&&e.supports("prefetch")})),A.addTest("requestanimationframe",!!M("requestAnimationFrame",t),{aliases:["raf"]}),A.addTest("scriptasync","async"in a("script")),A.addTest("scriptdefer","defer"in a("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=M("indexedDB",t)}catch(e){}if(e){var n,r="modernizr-"+Math.random();try{n=e.open(r)}catch(e){return void s("indexeddb",!1)}n.onerror=function(t){!n.error||"InvalidStateError"!==n.error.name&&"UnknownError"!==n.error.name?(s("indexeddb",!0),m(e,r)):(s("indexeddb",!1),t.preventDefault())},n.onsuccess=function(){s("indexeddb",!0),m(e,r)}}else s("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 a("div")),A.addTest("webgl",(function(){return"WebGLRenderingContext"in t})),A.addTest("peerconnection",!!M("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(){s("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,a,c,u,l,d="this.onmessage=function(e){postMessage(e.data)}";try{i=new Blob([d],{type:"text/javascript"})}catch(e){}i||((a=new r).append(d),i=a.getBlob()),u=o.createObjectURL(i),(c=new Worker(u)).onmessage=function(e){s("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(),s("dataworkers","Modernizr"===t.data),e=null},e.onerror=function(){s("dataworkers",!1),e=null},setTimeout((function(){s("dataworkers",!1)}),200),e.postMessage("Modernizr")}catch(e){setTimeout((function(){s("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=M("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(){s("transferables",!1),t()}function t(){i&&URL.revokeObjectURL(i),a&&a.terminate(),r&&clearTimeout(r)}if(!(A.blobconstructor&&A.bloburls&&A.webworkers&&A.typedarrays))return s("transferables",!1);try{var n,r,o=new Blob(['var hello = "world"'],{type:"text/javascript"}),i=URL.createObjectURL(o),a=new Worker(i);a.onerror=e,r=setTimeout(e,200),n=new ArrayBuffer(1),a.postMessage(n,[n]),s("transferables",0===n.byteLength),t()}catch(t){e()}})),function(){var e,t,n,r,i,s;for(var a in y)if(y.hasOwnProperty(a)){if(e=[],(t=y[a]).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===(s=e[i].split(".")).length?A[s[0]]=r:(A[s[0]]&&(!A[s[0]]||A[s[0]]instanceof Boolean)||(A[s[0]]=new Boolean(A[s[0]])),A[s[0]][s[1]]=r),S.push((r?"":"no-")+s.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 Fv={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"}}},Gv=["indexeddb","apng","avif","exiforientation","webp"];async function Wv(){const e={Element:[],Feature:[],Network:[],Javascript:[],Storage:[]};Ug(Fv).forEach((t=>{const n=Fv[t],r=Ug(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")),Gv.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)_g(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 Vv{constructor(){t(this,"name","SystemPlugin"),t(this,"$pageSpyConfig",null)}onInit(e){let{config:t}=e;Vv.hasInitd||(Vv.hasInitd=!0,this.$pageSpyConfig=t,this.onceInitPublicData(),sv.addListener("refresh",(async(e,t)=>{let{source:n}=e;const{data:r}=n;if("system"===r){const e=await this.getSystemInfo();if(null===e)return;t(e)}})),sv.addListener("harbor-clear",(()=>{this.onceInitPublicData()})))}async onceInitPublicData(){const e=await this.getSystemInfo();null!==e&&sv.dispatchEvent("public-data",e)}onReset(){Vv.hasInitd=!1}async getSystemInfo(){var e,t;const n=await Wv(),r={system:{ua:navigator.userAgent},features:n};return!1===(null===(e=this.$pageSpyConfig)||void 0===e||null===(e=e.dataProcessor)||void 0===e||null===(t=e.system)||void 0===t?void 0:t.call(e,r))?null:um("system",r)}}t(Vv,"hasInitd",!1);class $v{constructor(){t(this,"name","PagePlugin"),t(this,"$pageSpyConfig",null)}onInit(e){let{config:t}=e;$v.hasInitd||($v.hasInitd=!0,this.$pageSpyConfig=t,sv.addListener("refresh",((e,t)=>{let{source:n}=e;const{data:r}=n;if("page"===r){var o,i;const e=$v.collectHtml();if(!1===(null===(o=this.$pageSpyConfig)||void 0===o||null===(o=o.dataProcessor)||void 0===o||null===(i=o.page)||void 0===i?void 0:i.call(o,e)))return;const n=um("page",e);sv.dispatchEvent("public-data",n),t(n)}})))}onReset(){$v.hasInitd=!1}static collectHtml(){return{html:document.documentElement.outerHTML,location:window.location}}}t($v,"hasInitd",!1);class Jv{constructor(){t(this,"name","StoragePlugin"),t(this,"originSetItem",null),t(this,"originRemoveItem",null),t(this,"originClear",null),t(this,"cookieStoreChangeListener",null),t(this,"$pageSpyConfig",null)}onInit(e){let{config:t}=e;Jv.hasInitd||(Jv.hasInitd=!0,this.$pageSpyConfig=t,this.listenRefreshEvent(),this.onceInitPublicData(),this.initStorageProxy(),sv.addListener("harbor-clear",(()=>{this.onceInitPublicData()})))}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),Jv.hasInitd=!1}async sendRefresh(e){let t=null;switch(e){case"localStorage":case"sessionStorage":t=this.takeStorage(e);break;case"cookie":t=await this.takeCookie()}t&&this.sendStorageItem(t)}listenRefreshEvent(){sv.addListener("refresh",(async e=>{let{source:t}=e;const{data:n}=t;this.sendRefresh(n)}))}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}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{clear:e,removeItem:t,setItem:n}=Storage.prototype;this.originClear=e,this.originRemoveItem=t,this.originSetItem=n;const r=this;Storage.prototype.clear=function(){e.call(this);const t={type:r.getStorageType(this),action:"clear"};r.sendStorageItem(t)},Storage.prototype.removeItem=function(e){t.call(this,e);const n={type:r.getStorageType(this),action:"remove",name:String(e)};r.sendStorageItem(n)},Storage.prototype.setItem=function(e,t){n.call(this,e,t);const o={type:r.getStorageType(this),action:"set",name:String(e),value:String(t)};r.sendStorageItem(o)},window.cookieStore&&(this.cookieStoreChangeListener=e=>{const{changed:t,deleted:n}=e;t.length>0&&t.forEach((e=>{const t={type:"cookie",action:"set",...e};this.sendStorageItem(t)})),n.length>0&&n.forEach((e=>{const t={type:"cookie",action:"remove",name:e.name};this.sendStorageItem(t)}))},window.cookieStore.addEventListener("change",this.cookieStoreChangeListener))}async onceInitPublicData(){(await Promise.all([this.takeStorage("localStorage"),this.takeStorage("sessionStorage"),this.takeCookie()])).forEach((e=>{var t,n;if(!1===(null===(t=this.$pageSpyConfig)||void 0===t||null===(t=t.dataProcessor)||void 0===t||null===(n=t.storage)||void 0===n?void 0:n.call(t,e)))return;const r=um("storage",e);sv.dispatchEvent("public-data",r)}))}getStorageType(e){return e===localStorage?"localStorage":e===sessionStorage?"sessionStorage":e.constructor.name}sendStorageItem(e){var t,n;if(!1===(null===(t=this.$pageSpyConfig)||void 0===t||null===(t=t.dataProcessor)||void 0===t||null===(n=t.storage)||void 0===n?void 0:n.call(t,e)))return;const r=um("storage",e);sv.dispatchEvent("public-data",r),sv.broadcastMessage(r,!0)}}function Xv(e){return new Promise(((t,n)=>{e.addEventListener("success",(()=>{t(e.result)})),e.addEventListener("error",(()=>{n()}))}))}t(Jv,"hasInitd",!1);class Yv{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),t(this,"$pageSpyConfig",null)}static get isSupport(){return!!(IDBFactory&&IDBObjectStore&&window.indexedDB&&window.indexedDB.databases)}onInit(e){let{config:t}=e;Yv.isSupport&&(Yv.hasInitd||(Yv.hasInitd=!0,this.$pageSpyConfig=t,this.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),Yv.hasInitd=!1}listenEvents(){sv.addListener("refresh",(async e=>{let{source:t}=e;if("indexedDB"===t.data){const e={action:"basic",result:await this.takeBasicInfo()};this.sendData(e)}})),sv.addListener("database-pagination",(async e=>{let{source:t}=e;const{db:n,store:r,page:o}=t.data,i=await this.getStoreDataWithPagination({db:n,store:r,page:o});this.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 o=this;[{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 s=t.apply(this,r),a={action:"clear"===n?"clear":"update",database:this.transaction.db.name,store:this.name};return s.addEventListener("success",(()=>{o.sendData(a)})),s}}));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.sendData(n)})),t}}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=>this.getDBData(e))))).filter(Boolean)}async getDBData(e){try{const t={name:e.name,version:e.version,stores:[]},n=await Xv(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 tm.error("Failed to get indexedDB data, more info: ".concat(e.message)),null}}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 Xv(window.indexedDB.open(t)),s=i.transaction(n,"readonly").objectStore(n);o.database={name:i.name,version:i.version},o.store={name:s.name,keyPath:s.keyPath,autoIncrement:s.autoIncrement,indexes:[...s.indexNames]},o.total=await Xv(s.count());const a=50*(r-1),c=50*r;o.page.prev=r>1?r-1:null,o.page.next=a+50<o.total?r+1:null;let u=0;const l=s.openCursor();return new Promise(((e,t)=>{l.addEventListener("success",(()=>{const t=l.result;t?(u>=a&&u<c&&o.data.push({key:t.key,value:t.value}),u++,t.continue()):e(o)})),l.addEventListener("error",t)}))}sendData(e){var t,n;if(!1===(null===(t=this.$pageSpyConfig)||void 0===t||null===(t=t.dataProcessor)||void 0===t||null===(n=t.database)||void 0===n?void 0:n.call(t,e)))return;const r=um("database",e);sv.broadcastMessage(r,!0),["update","clear","drop"].includes(e.action)&&sv.dispatchEvent("public-data",r)}}t(Yv,"hasInitd",!1);const Zv=e=>{const t=new URLSearchParams;return Object.entries(e).forEach((e=>{let[n,r]=e;t.append(n,String(r))})),t.toString()};class Kv{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=Zv({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(Zv({address:e,name:"client:".concat(Mg()),userId:"Client",forceCreate:!0,useSecret:n,secret:r}))}}const eA="50%",tA="100%";function nA(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  width: 50px;\n}\n#__pageSpy .page-spy-modal {\n  display: none;\n  position: fixed;\n  left: 0;\n  right: 0;\n  top: 0;\n  bottom: 0;\n  z-index: 13000;\n}\n#__pageSpy .page-spy-modal.show {\n  display: block;\n  animation: fadeIn 0.3s ease-in-out forwards;\n}\n@keyframes fadeIn {\n  0% {\n    background-color: rgba(0, 0, 0, 0);\n  }\n  100% {\n    background-color: rgba(0, 0, 0, 0.3);\n  }\n}\n#__pageSpy .page-spy-modal.show .page-spy-content {\n  animation: scaleIn 0.3s ease-in forwards;\n}\n@keyframes scaleIn {\n  0% {\n    opacity: 0;\n    transform: translate3d(-50%, -50%, 0) scale(0.8);\n  }\n  70% {\n    opacity: 1;\n    transform: translate3d(-50%, -50%, 0) scale(1.1);\n  }\n  100% {\n    transform: translate3d(-50%, -50%, 0) scale(1);\n  }\n}\n#__pageSpy .page-spy-modal.leaving {\n  display: block;\n  animation: fadeOut 0.3s ease-in-out forwards;\n}\n@keyframes fadeOut {\n  0% {\n    background-color: rgba(0, 0, 0, 0.3);\n  }\n  100% {\n    background-color: rgba(0, 0, 0, 0);\n  }\n}\n#__pageSpy .page-spy-modal.leaving .page-spy-content {\n  animation: scaleOut 0.3s ease-out forwards;\n}\n@keyframes scaleOut {\n  0% {\n    opacity: 1;\n    transform: translate3d(-50%, -50%, 0) scale(1);\n  }\n  30% {\n    transform: translate3d(-50%, -50%, 0) scale(1.1);\n  }\n  60% {\n    opacity: 0;\n    transform: translate3d(-50%, -50%, 0) scale(0.9);\n  }\n  100% {\n    opacity: 0;\n    transform: translate3d(-50%, -50%, 0) scale(0.9);\n  }\n}\n#__pageSpy .page-spy-content {\n  position: absolute;\n  left: 50%;\n  top: 45%;\n  transform: translate3d(-50%, -50%, 0);\n  width: 90%;\n  background-color: #fafafa;\n  border-radius: 0.28571429em;\n  text-align: center;\n}\n@media screen and (min-width: 440px) {\n  #__pageSpy .page-spy-content {\n    max-width: 50%;\n  }\n}\n@media screen and (min-width: 768px) {\n  #__pageSpy .page-spy-content {\n    max-width: 40%;\n  }\n}\n@media screen and (min-width: 1024px) {\n  #__pageSpy .page-spy-content {\n    max-width: 30%;\n  }\n}\n@media screen and (min-width: 1920px) {\n  #__pageSpy .page-spy-content {\n    max-width: 25%;\n  }\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: #fff;\n  border-radius: 4px;\n  box-shadow: 0px 2px 5px 2px rgba(0, 0, 0, 0.1);\n  z-index: 99999;\n}\n");var rA;class oA extends Zy{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:"",serializeData:!1,dataProcessor:{}};if(!oA.scriptLink)return e;try{const{host:t,origin:n,protocol:r}=new URL(oA.scriptLink);return{...e,api:t,clientOrigin:n,enableSSL:r.startsWith("https")}}catch(t){return e}}))}}t(oA,"scriptLink",null===(rA=document.currentScript)||void 0===rA?void 0:rA.src);class iA{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),iA.timer===n&&(iA.timer=null)}),1500);iA.timer=n}static destroy(){const e=document.querySelectorAll(".page-spy-toast");e.length&&([...e].forEach((e=>{document.contains(e)&&document.documentElement.removeChild(e)})),iA.timer&&clearTimeout(iA.timer)),iA.timer=null}}t(iA,"timer",null);const sA={zh:{copyLink:"复制在线调试链接",copied:"复制成功",copyFailed:"复制失败"},en:{copyLink:"Copy online debug link",copied:"Copied",copyFailed:"Copy failed"}},aA=function(){const e=navigator.languages;return["zh-CN","zh-HK","zh-TW","zh","zh-Hans-CN"].some((t=>e.includes(t)))}()?sA.zh:sA.en,cA="__pageSpy";Yy.info.sdk="browser",Yy.info.ua=navigator.userAgent;class uA{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t(this,"root",null),t(this,"version","1.9.16"),t(this,"request",null),t(this,"name",""),t(this,"address",""),t(this,"roomUrl",""),t(this,"socketStore",sv),t(this,"config",new oA),t(this,"cacheTimer",null),uA.instance)return tm.warn("Cannot initialize PageSpy multiple times"),uA.instance;uA.instance=this;const n=this.config.mergeConfig(e);this.updateConfiguration(),this.triggerPlugins("onInit",{config:n,socketStore:sv}),this.init()}updateConfiguration(){const{messageCapacity:e,offline:t,useSecret:n}=this.config.get();if(!0===n){const e=JSON.parse(sessionStorage.getItem(Ky));this.config.set("secret",(null==e?void 0:e.secret)||function(){const e=Math.floor(1e6*Math.random());return String(e).padStart(6,"0")}())}sv.connectable=!0,sv.getPageSpyConfig=()=>this.config.get(),sv.isOffline=t,sv.messageCapacity=e}async init(){const e=this.config.get();if(!1===e.offline){this.request=new Kv(e);const t=sessionStorage.getItem(Ky);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&&sv.getSocket().getState()!==ev.OPEN&&sv.connectable&&this.useOldConnection()}))}tm.log("Plugins inited"),e.autoRender&&this.render()}async createNewConnection(){if(!this.request)return void tm.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(),sv.init(e.roomUrl)}useOldConnection(){this.refreshRoomInfo(),sv.init(this.roomUrl)}refreshRoomInfo(){this.saveSession(),this.cacheTimer=setInterval((()=>{sv.getSocket().getState()===ev.OPEN&&this.saveSession()}),15e3)}saveSession(){const{name:e,address:t,roomUrl:n,config:r}=this,{useSecret:o,secret:i,project:s}=r.get(),a=JSON.stringify({name:e,address:t,roomUrl:n,project:s,useSecret:o,secret:i});sessionStorage.setItem(Ky,a)}startRender(){const{project:e,clientOrigin:t,title:n,logo:r,logoStyle:o,useSecret:i,secret:s}=this.config.get(),a=Object.entries(o).reduce(((e,t)=>{let[n,r]=t;return e+="".concat(n,": ").concat(r,";")}),""),c=(new DOMParser).parseFromString('\n      <div id="'.concat(cA,'">\n        <div class="page-spy-logo">\n          <img src="').concat(r,'" style="').concat(a,'" alt="PageSpy Logo" />\n        </div>\n        <div data-testid="modal" class="page-spy-modal">\n          <div data-testid="content" class="page-spy-content">\n            <div class="page-spy-content__info">\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>\n                <b>Project:</b>\n                <span class="page-spy-project">').concat(e,'</span>\n              </p>\n              <p>\n                <b>Title:</b>\n                <span class="page-spy-title">').concat(n,'</span>\n              </p>\n            </div>\n            <div data-testid="copy-button" class="page-spy-content__btn" id="page-spy-copy-link">\n              ').concat(aA.copyLink,"\n            </div>\n          </div>\n        </div>\n      </div>\n    "),"text/html"),u=c.querySelector(".page-spy-modal"),l=c.querySelector(".page-spy-logo");function d(e){l.isMoveEvent||l.isHidden||(e.stopPropagation(),u.classList.add("show"))}function f(){u.classList.remove("show"),u.classList.add("leaving"),setTimeout((()=>{u.classList.remove("leaving")}),300)}u.addEventListener("click",f),l.addEventListener("click",d,!1),l.addEventListener("touchend",d,!1),window.addEventListener("sdk-inactive",(()=>{l.classList.add("inactive")}));const p=c.querySelector(".page-spy-content");p.addEventListener("click",(e=>{e.stopPropagation()}));c.querySelector("#page-spy-copy-link").addEventListener("click",(()=>{let e="".concat(t,"/#/devtools?address=").concat(encodeURIComponent(this.address));i&&(e+="&secret=".concat(s));const n=Ru(e)?aA.copied:aA.copyFailed;f(),iA.message(n)}));const h=c.querySelector("#".concat(cA));this.root=h,document.documentElement.insertAdjacentElement("beforeend",h),function(e){let t,n;const r={xAxis:0,yAxis:0},o={x:0,y:0};function i(){if(!r.xAxis&&!r.yAxis)return;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 s(t){t.preventDefault(),e.isMoveEvent=!0;const{clientX:i,clientY:s}=nA(t),a=i-o.x,c=s-o.y;let u=n.x+a;u<=0?(u=0,e.style.setProperty("--left-radius",eA)):u>=r.xAxis?(u=r.xAxis,e.style.setProperty("--right-radius",eA)):(e.style.setProperty("--left-radius",tA),e.style.setProperty("--right-radius",tA));let l=n.y+c;l<=0?(l=0,e.style.setProperty("--top-radius",eA)):l>r.yAxis?(l=r.yAxis,e.style.setProperty("--bottom-radius",eA)):(e.style.setProperty("--top-radius",tA),e.style.setProperty("--bottom-radius",tA)),e.style.left="".concat(u,"px"),e.style.top="".concat(l,"px")}function a(){o.x=0,o.y=0,i(),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",a)}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}=nA(i);o.x=c,o.y=u,document.addEventListener("mousemove",s,!1),document.addEventListener("mouseup",a,!1),document.addEventListener("touchmove",s,{capture:!1,passive:!1}),document.addEventListener("touchend",a,!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)}(l),this.triggerPlugins("onMounted",{root:h,content:p,socketStore:sv}),this.handleDeviceDPR(),tm.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();uA.pluginsWithOrder.forEach((t=>{var r;Qg(o)&&o.length&&o.includes(t.name)||null===(r=t[e])||void 0===r||r.apply(t,n)}))}abort(){this.triggerPlugins("onReset"),sv.close(),uA.instance=null;const e=document.querySelector("#".concat(cA));e&&document.documentElement.removeChild(e)}render(){if(document.querySelector("#".concat(cA)))tm.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))}sv.updateRoomInfo()}static get pluginsWithOrder(){return[...uA.plugins.pre,...uA.plugins.normal,...uA.plugins.post]}static registerPlugin(e){if(!e)return;if("function"==typeof(t=e)&&void 0!==t.prototype)return void tm.error("PageSpy.registerPlugin() expect to pass an instance, not a class");var t;if(!e.name)return void tm.error("The ".concat(e.constructor.name,' plugin should provide a "name" property'));if(uA.pluginsWithOrder.some((t=>t.name===e.name)))return void tm.info("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";'));uA.plugins[e.enforce||"normal"].push(e)}}t(uA,"instance",null),t(uA,"plugins",{pre:[],normal:[],post:[]});return[new av,new cv,new Nv,new Jv,new Yv,new $v,new Vv].forEach((e=>{uA.registerPlugin(e)})),uA}();
//# sourceMappingURL=index.min.js.map


  }
}