12345678910 |
- /**
- * =================================================================
- * aegis-web-sdk@1.37.5 (c) 2023 TencentCloud Real User Monitoring.
- * Author pumpkincai.
- * Last Release Time Mon Jun 26 2023 14:20:23 GMT+0800 (中国标准时间).
- * Released under the MIT License.
- * Thanks for supporting RUM & Aegis!
- * =================================================================
- **/
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Aegis=t()}(this,function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw t!==undefined&&null!==t||n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var _,M,B,d,q,P=(B=function(e){return e&&e.Math==Math&&e})("object"==typeof globalThis&&globalThis)||B("object"==typeof window&&window)||B("object"==typeof self&&self)||B("object"==typeof e&&e)||function(){return this}()||Function("return this")(),I=!(d=function(e){try{return!!e()}catch(t){return!0}})(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),F=!d(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),D=Function.prototype.call,L=F?D.bind(D):function(){return D.apply(D,arguments)},e={}.propertyIsEnumerable,H={f:(q=Object.getOwnPropertyDescriptor)&&!e.call({1:2},1)?function(e){e=q(this,e);return!!e&&e.enumerable}:e},W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},e=Function.prototype,V=e.call,e=F&&e.bind.bind(V,V),p=F?e:function(e){return function(){return V.apply(e,arguments)}},G=p({}.toString),$=p("".slice),X=function(e){return $(G(e),8,-1)},z=Object,Y=p("".split),J=d(function(){return!z("z").propertyIsEnumerable(0)})?function(e){return"String"==X(e)?Y(e,""):z(e)}:z,K=function(e){return null===e||e===undefined},Q=TypeError,Z=function(e){if(K(e))throw Q("Can't call method on "+e);return e},ee=function(e){return J(Z(e))},e="object"==typeof document&&document.all,e={all:e,IS_HTMLDDA:void 0===e&&e!==undefined},te=e.all,R=e.IS_HTMLDDA?function(e){return"function"==typeof e||e===te}:function(e){return"function"==typeof e},ne=e.all,k=e.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:R(e)||e===ne}:function(e){return"object"==typeof e?null!==e:R(e)},re=function(e,t){return arguments.length<2?(n=P[e],R(n)?n:undefined):P[e]&&P[e][t];var n},oe=p({}.isPrototypeOf),e="undefined"!=typeof navigator&&String(navigator.userAgent)||"",n=P.process,r=P.Deno,n=n&&n.versions||r&&r.version,r=n&&n.v8,ie=M=!(M=r?0<(_=r.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):M)&&e&&(!(_=e.match(/Edge\/(\d+)/))||74<=_[1])&&(_=e.match(/Chrome\/(\d+)/))?+_[1]:M,ae=!!Object.getOwnPropertySymbols&&!d(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ie&&ie<41}),n=ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=Object,se=n?function(e){return"symbol"==typeof e}:function(e){var t=re("Symbol");return R(t)&&oe(t.prototype,ue(e))},ce=String,fe=function(e){try{return ce(e)}catch(t){return"Object"}},le=TypeError,de=function(e){if(R(e))return e;throw le(fe(e)+" is not a function")},pe=function(e,t){t=e[t];return K(t)?undefined:de(t)},he=TypeError,ge=Object.defineProperty,ye=function(e,t){try{ge(P,e,{value:t,configurable:!0,writable:!0})}catch(_){P[e]=t}return t},ve=P["__core-js_shared__"]||ye("__core-js_shared__",{}),r=t(function(e){(e.exports=function(e,t){return ve[e]||(ve[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})}),me=Object,be=function(e){return me(Z(e))},we=p({}.hasOwnProperty),C=Object.hasOwn||function(e,t){return we(be(e),t)},Ee=0,Re=Math.random(),Oe=p(1..toString),Se=function(e){return"Symbol("+(e===undefined?"":e)+")_"+Oe(++Ee+Re,36)},Te=P.Symbol,xe=r("wks"),Ae=n?Te["for"]||Te:Te&&Te.withoutSetter||Se,s=function(e){return C(xe,e)||(xe[e]=ae&&C(Te,e)?Te[e]:Ae("Symbol."+e)),xe[e]},Pe=TypeError,Ie=s("toPrimitive"),Le=function(e,t){if(!k(e)||se(e))return e;var n,r,o=pe(e,Ie);if(o){if(t===undefined&&(t="default"),o=L(o,e,t),!k(o)||se(o))return o;throw Pe("Can't convert object to primitive value")}t===undefined&&(t="number");o=e,e=t;if("string"===e&&R(n=o.toString)&&!k(r=L(n,o)))return r;if(R(n=o.valueOf)&&!k(r=L(n,o)))return r;if("string"!==e&&R(n=o.toString)&&!k(r=L(n,o)))return r;throw he("Can't convert object to primitive value")},ke=function(e){e=Le(e,"string");return se(e)?e:e+""},Ce=P.document,je=k(Ce)&&k(Ce.createElement),Ue=function(e){return je?Ce.createElement(e):{}},Ne=!I&&!d(function(){return 7!=Object.defineProperty(Ue("div"),"a",{get:function(){return 7}}).a}),_e=Object.getOwnPropertyDescriptor,Me={f:I?_e:function(e,t){if(e=ee(e),t=ke(t),Ne)try{return _e(e,t)}catch(_){}if(C(e,t))return W(!L(H.f,e,t),e[t])}},n=I&&d(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Be=String,qe=TypeError,O=function(e){if(k(e))return e;throw qe(Be(e)+" is not an object")},Fe=TypeError,De=Object.defineProperty,He=Object.getOwnPropertyDescriptor,We={f:I?n?function(e,t,n){var r;return O(e),t=ke(t),O(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable&&(r=He(e,t))&&r.writable&&(e[t]=n.value,n={configurable:("configurable"in n?n:r).configurable,enumerable:("enumerable"in n?n:r).enumerable,writable:!1}),De(e,t,n)}:De:function(e,t,n){if(O(e),t=ke(t),O(n),Ne)try{return De(e,t,n)}catch(M){}if("get"in n||"set"in n)throw Fe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ve=I?function(e,t,n){return We.f(e,t,W(1,n))}:function(e,t,n){return e[t]=n,e},o=Function.prototype,Ge=I&&Object.getOwnPropertyDescriptor,$e=C(o,"name"),Xe={EXISTS:$e,PROPER:$e&&"something"===function(){}.name,CONFIGURABLE:$e&&(!I||Ge(o,"name").configurable)},ze=p(Function.toString);R(ve.inspectSource)||(ve.inspectSource=function(e){return ze(e)});var Ye,Je,Ke,Qe,Ze=ve.inspectSource,$e=P.WeakMap,o=R($e)&&/native code/.test(String($e)),et=r("keys"),Ge=function(e){return et[e]||(et[e]=Se(e))},tt={},nt=P.TypeError,$e=P.WeakMap,rt=o||ve.state?((Ke=ve.state||(ve.state=new $e)).get=Ke.get,Ke.has=Ke.has,Ke.set=Ke.set,Ye=function(e,t){if(Ke.has(e))throw nt("Object already initialized");return t.facade=e,Ke.set(e,t),t},Je=function(e){return Ke.get(e)||{}},function(e){return Ke.has(e)}):(Qe=Ge("state"),tt[Qe]=!0,Ye=function(e,t){if(C(e,Qe))throw nt("Object already initialized");return t.facade=e,Ve(e,Qe,t),t},Je=function(e){return C(e,Qe)?e[Qe]:{}},function(e){return C(e,Qe)}),j={set:Ye,get:Je,has:rt,enforce:function(e){return rt(e)?Je(e):Ye(e,{})},getterFor:function(t){return function(e){if(k(e)&&(e=Je(e)).type===t)return e;throw nt("Incompatible receiver, "+t+" required")}}},ot=t(function(e){var r=Xe.CONFIGURABLE,o=j.enforce,t=j.get,i=String,a=Object.defineProperty,u=p("".slice),s=p("".replace),c=p([].join),f=I&&!d(function(){return 8!==a(function(){},"length",{value:8}).length}),l=String(String).split("String"),e=e.exports=function(e,t,n){"Symbol("===u(i(t),0,7)&&(t="["+s(i(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!C(e,"name")||r&&e.name!==t)&&(I?a(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&C(n,"arity")&&e.length!==n.arity&&a(e,"length",{value:n.arity});try{n&&C(n,"constructor")&&n.constructor?I&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(W){}n=o(e);return C(n,"source")||(n.source=c(l,"string"==typeof t?t:"")),e};Function.prototype.toString=e(function(){return R(this)&&t(this).source||Ze(this)},"toString")}),v=function(e,t,n,r){var o=(r=r||{}).enumerable,i=r.name!==undefined?r.name:t;if(R(n)&&ot(n,i,r),r.global)o?e[t]=n:ye(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(d){}o?e[t]=n:We.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},it=Math.ceil,at=Math.floor,ut=Math.trunc||function(e){e=+e;return(0<e?at:it)(e)},st=function(e){e=+e;return e!=e||0==e?0:ut(e)},ct=Math.max,ft=Math.min,lt=function(e,t){e=st(e);return e<0?ct(e+t,0):ft(e,t)},dt=Math.min,pt=function(e){return 0<e?dt(st(e),9007199254740991):0},ht=function(e){return pt(e.length)},o=function(u){return function(e,t,n){var r,o=ee(e),i=ht(o),a=lt(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}},$e={includes:o(!0),indexOf:o(!1)},gt=$e.indexOf,yt=p([].push),vt=function(e,t){var n,r=ee(e),o=0,i=[];for(n in r)!C(tt,n)&&C(r,n)&&yt(i,n);for(;t.length>o;)!C(r,n=t[o++])||~gt(i,n)||yt(i,n);return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(e){return vt(e,bt)}},Et={f:Object.getOwnPropertySymbols},Rt=p([].concat),Ot=re("Reflect","ownKeys")||function(e){var t=wt.f(O(e)),n=Et.f;return n?Rt(t,n(e)):t},St=/#|\.prototype\./,o=function(e,t){e=xt[Tt(e)];return e==Pt||e!=At&&(R(t)?d(t):!!t)},Tt=o.normalize=function(e){return String(e).replace(St,".").toLowerCase()},xt=o.data={},At=o.NATIVE="N",Pt=o.POLYFILL="P",It=o,Lt=Me.f,U=function(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?P:s?P[a]||ye(a,{}):(P[a]||{}).prototype)for(r in t){if(o=t[r],i=e.dontCallGetSet?(i=Lt(n,r))&&i.value:n[r],!It(u?r:a+(s?".":"#")+r,e.forced)&&i!==undefined){if(typeof o==typeof i)continue;for(var c=o,f=i,l=y=g=h=p=d=void 0,d=Ot(f),p=We.f,h=Me.f,g=0;g<d.length;g++){var y=d[g];C(c,y)||l&&C(l,y)||p(c,y,h(f,y))}}(e.sham||i&&i.sham)&&Ve(o,"sham",!0),v(n,r,o,e)}},kt=function(e){if("Function"===X(e))return p(e)},Ct=kt(kt.bind),jt=function(e,t){return de(e),t===undefined?e:F?Ct(e,t):function(){return e.apply(t,arguments)}},Ut=Array.isArray||function(e){return"Array"==X(e)},o={},o=(o[s("toStringTag")]="z","[object z]"===String(o)),Nt=s("toStringTag"),_t=Object,Mt="Arguments"==X(function(){return arguments}()),Bt=o?X:function(e){var n,t;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(e=_t(e),Nt))?n:Mt?X(e):"Object"==(t=X(e))&&R(e.callee)?"Arguments":t},qt=function(){},Ft=[],Dt=re("Reflect","construct"),Ht=/^\s*(?:class|function)\b/,Wt=p(Ht.exec),Vt=!Ht.exec(qt),Gt=function(e){if(!R(e))return!1;try{return Dt(qt,Ft,e),!0}catch(t){return!1}},i=function(e){if(!R(e))return!1;switch(Bt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Vt||!!Wt(Ht,Ze(e))}catch(t){return!0}};i.sham=!0;var $t,Xt=!Dt||d(function(){var e;return Gt(Gt.call)||!Gt(Object)||!Gt(function(){e=!0})||e})?i:Gt,zt=s("species"),Yt=Array,Jt=function(e,t){return new((n=Ut(e=e)&&(n=e.constructor,Xt(n)&&(n===Yt||Ut(n.prototype))||k(n)&&null===(n=n[zt]))?undefined:n)===undefined?Yt:n)(0===t?0:t);var n},Kt=p([].push),i=function(d){var p=1==d,h=2==d,g=3==d,y=4==d,v=6==d,m=7==d,b=5==d||v;return function(e,t,n,r){for(var o,i,a=be(e),u=J(a),s=jt(t,n),c=ht(u),f=0,t=r||Jt,l=p?t(e,c):h||m?t(e,0):undefined;f<c;f++)if((b||f in u)&&(i=s(o=u[f],f,a),d))if(p)l[f]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return f;case 2:Kt(l,o)}else switch(d){case 4:return!1;case 7:Kt(l,o)}return v?-1:g||y?y:l}},Qt={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6),filterReject:i(7)},Zt=Object.keys||function(e){return vt(e,mt)},en={f:I&&!n?Object.defineProperties:function(e,t){O(e);for(var n,r=ee(t),o=Zt(t),i=o.length,a=0;a<i;)We.f(e,n=o[a++],r[n]);return e}},tn=re("document","documentElement"),nn=Ge("IE_PROTO"),rn=function(){},on=function(e){return"<script>"+e+"<\/script>"},an=function(e){e.write(on("")),e.close();var t=e.parentWindow.Object;return e=null,t},un=function(){try{$t=new ActiveXObject("htmlfile")}catch(M){}var e;un="undefined"==typeof document||document.domain&&$t?an($t):((e=Ue("iframe")).style.display="none",tn.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(on("document.F=Object")),e.close(),e.F);for(var t=mt.length;t--;)delete un.prototype[mt[t]];return un()},sn=(tt[nn]=!0,Object.create||function(e,t){var n;return null!==e?(rn.prototype=O(e),n=new rn,rn.prototype=null,n[nn]=e):n=un(),t===undefined?n:en.f(n,t)}),i=We.f,cn=s("unscopables"),fn=Array.prototype,n=(fn[cn]==undefined&&i(fn,cn,{configurable:!0,value:sn(null)}),function(e){fn[cn][e]=!0}),ln=Qt.find,dn=!0,i=("find"in[]&&Array(1).find(function(){dn=!1}),U({target:"Array",proto:!0,forced:dn},{find:function(e){return ln(this,e,1<arguments.length?arguments[1]:undefined)}}),n("find"),o?{}.toString:function(){return"[object "+Bt(this)+"]"}),o=(o||v(Object.prototype,"toString",i,{unsafe:!0}),We.f);U({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!I},{defineProperty:o});var pn,hn={},i=!d(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),gn=Ge("IE_PROTO"),yn=Object,vn=yn.prototype,mn=i?yn.getPrototypeOf:function(e){var t,e=be(e);return C(e,gn)?e[gn]:(t=e.constructor,R(t)&&e instanceof t?t.prototype:e instanceof yn?vn:null)},bn=s("iterator"),o=!1,Ge=([].keys&&("next"in(Ge=[].keys())?(Ge=mn(mn(Ge)))!==Object.prototype&&(pn=Ge):o=!0),k(pn)&&!d(function(){var e={};return pn[bn].call(e)!==e})||(pn={}),R(pn[bn])||v(pn,bn,function(){return this}),{IteratorPrototype:pn,BUGGY_SAFARI_ITERATORS:o}),wn=We.f,En=s("toStringTag"),Rn=function(e,t,n){(e=e&&!n?e.prototype:e)&&!C(e,En)&&wn(e,En,{configurable:!0,value:t})},On=Ge.IteratorPrototype,Sn=function(){return this},Tn=function(e,t,n,r){t+=" Iterator";return e.prototype=sn(On,{next:W(+!r,n)}),Rn(e,t,!1),hn[t]=Sn,e},xn=String,An=TypeError,Pn=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=p(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(M){}return function(e,t){O(e);var n=t;if("object"==typeof n||R(n))return o?r(e,t):e.__proto__=t,e;throw An("Can't set "+xn(n)+" as a prototype")}}():undefined),In=Xe.PROPER,Ln=Xe.CONFIGURABLE,kn=Ge.IteratorPrototype,Cn=Ge.BUGGY_SAFARI_ITERATORS,jn=s("iterator"),Un=function(){return this},o=function(e,t,n,r,o,i,a){Tn(n,t,r);var u,s,r=function(e){if(e===o&&p)return p;if(!Cn&&e in l)return l[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,l=e.prototype,d=l[jn]||l["@@iterator"]||o&&l[o],p=!Cn&&d||r(o),h="Array"==t&&l.entries||d;if(h&&(e=mn(h.call(new e)))!==Object.prototype&&e.next&&(mn(e)!==kn&&(Pn?Pn(e,kn):R(e[jn])||v(e,jn,Un)),Rn(e,c,!0)),In&&"values"==o&&d&&"values"!==d.name&&(Ln?Ve(l,"name","values"):(f=!0,p=function(){return L(d,this)})),o)if(u={values:r("values"),keys:i?p:r("keys"),entries:r("entries")},a)for(s in u)!Cn&&!f&&s in l||v(l,s,u[s]);else U({target:t,proto:!0,forced:Cn||f},u);return l[jn]!==p&&v(l,jn,p,{name:o}),hn[t]=p,u},Nn=function(e,t){return{value:e,done:t}},Ge=We.f,_n=j.set,Mn=j.getterFor("Array Iterator"),Bn=o(Array,"Array",function(e,t){_n(this,{type:"Array Iterator",target:ee(e),index:0,kind:t})},function(){var e=Mn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=undefined,Nn(undefined,!0)):Nn("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),a=hn.Arguments=hn.Array;if(n("keys"),n("values"),n("entries"),I&&"values"!==a.name)try{Ge(a,"name",{value:"values"})}catch(x){}var qn=String,S=function(e){if("Symbol"===Bt(e))throw TypeError("Cannot convert a Symbol value to a string");return qn(e)},Fn=p("".charAt),Dn=p("".charCodeAt),Hn=p("".slice),a=function(o){return function(e,t){var n,e=S(Z(e)),t=st(t),r=e.length;return t<0||r<=t?o?"":undefined:(n=Dn(e,t))<55296||56319<n||t+1===r||(r=Dn(e,t+1))<56320||57343<r?o?Fn(e,t):n:o?Hn(e,t,t+2):r-56320+(n-55296<<10)+65536}},Ge={codeAt:a(!1),charAt:a(!0)},Wn=Ge.charAt,Vn=j.set,Gn=j.getterFor("String Iterator"),$n=(o(String,"String",function(e){Vn(this,{type:"String Iterator",string:S(e),index:0})},function(){var e=Gn(this),t=e.string,n=e.index;return n>=t.length?Nn(undefined,!0):(t=Wn(t,n),e.index+=t.length,Nn(t,!1))}),function(e,t,n){t=ke(t);t in e?We.f(e,t,W(0,n)):e[t]=n}),Xn=Array,zn=Math.max,Yn=function(e,t,n){for(var r=ht(e),o=lt(t,r),i=lt(n===undefined?r:n,r),a=Xn(zn(i-o,0)),u=0;o<i;o++,u++)$n(a,u,e[o]);return a.length=u,a},Jn=wt.f,Kn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qn={f:function(e){if(!Kn||"Window"!=X(e))return Jn(ee(e));try{return Jn(e)}catch(x){return Yn(Kn)}}},Zn=d(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),er=Object.isExtensible,tr=d(function(){er(1)})||Zn?function(e){return!!k(e)&&(!Zn||"ArrayBuffer"!=X(e))&&(!er||er(e))}:er,nr=!d(function(){return Object.isExtensible(Object.preventExtensions({}))}),a=t(function(e){var t=We.f,n=!1,a=Se("meta"),r=0,o=function(e){t(e,a,{value:{objectID:"O"+r++,weakData:{}}})},u=e.exports={enable:function(){u.enable=function(){},n=!0;var o=wt.f,i=p([].splice),e={};e[a]=1,o(e).length&&(wt.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},U({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Qn.f}))},fastKey:function(e,t){if(!k(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!C(e,a)){if(!tr(e))return"F";if(!t)return"E";o(e)}return e[a].objectID},getWeakData:function(e,t){if(!C(e,a)){if(!tr(e))return!0;if(!t)return!1;o(e)}return e[a].weakData},onFreeze:function(e){return nr&&n&&tr(e)&&!C(e,a)&&o(e),e}};tt[a]=!0}),rr=s("iterator"),or=Array.prototype,ir=function(e){return e!==undefined&&(hn.Array===e||or[rr]===e)},ar=s("iterator"),ur=function(e){if(!K(e))return pe(e,ar)||pe(e,"@@iterator")||hn[Bt(e)]},sr=TypeError,cr=function(e,t){t=arguments.length<2?ur(e):t;if(de(t))return O(L(t,e));throw sr(fe(e)+" is not iterable")},fr=function(e,t,n){var r,o;O(e);try{if(!(r=pe(e,"return"))){if("throw"===t)throw n;return n}r=L(r,e)}catch(x){o=!0,r=x}if("throw"===t)throw n;if(o)throw r;return O(r),n},lr=TypeError,dr=function(e,t){this.stopped=e,this.result=t},pr=dr.prototype,hr=function(e,t,n){var r,o,i,a,u,s,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),l=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=jt(t,c),g=function(e){return r&&fr(r,"normal",e),new dr(!0,e)},y=function(e){return f?(O(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(l)r=e.iterator;else if(d)r=e;else{if(!(n=ur(e)))throw lr(fe(e)+" is not iterable");if(ir(n)){for(o=0,i=ht(e);o<i;o++)if((a=y(e[o]))&&oe(pr,a))return a;return new dr(!1)}r=cr(e,n)}for(u=(l?e:r).next;!(s=L(u,r)).done;){try{a=y(s.value)}catch(x){fr(r,"throw",x)}if("object"==typeof a&&a&&oe(pr,a))return a}return new dr(!1)},gr=TypeError,yr=function(e,t){if(oe(t,e))return e;throw gr("Incorrect invocation")},vr=s("iterator"),mr=!1;try{var br=0,wr={next:function(){return{done:!!br++}},"return":function(){mr=!0}};wr[vr]=function(){return this},Array.from(wr,function(){throw 2})}catch(x){}var Er,Rr,Or,Sr,Tr,xr,Ar,Pr,o=function(e,t){if(!t&&!mr)return!1;var n=!1;try{var r={};r[vr]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(x){}return n},Ir=function(e,t,n){return Pn&&R(t=t.constructor)&&t!==n&&k(t=t.prototype)&&t!==n.prototype&&Pn(e,t),e},Lr=function(e,t,n){for(var r in t)v(e,r,t[r],n);return e},kr=a.getWeakData,Cr=j.set,jr=j.getterFor,Ur=Qt.find,Nr=Qt.findIndex,_r=p([].splice),Mr=0,Br=function(e){return e.frozen||(e.frozen=new qr)},qr=function(){this.entries=[]},Fr=function(e,t){return Ur(e.entries,function(e){return e[0]===t})},Dr=(qr.prototype={get:function(e){e=Fr(this,e);if(e)return e[1]},has:function(e){return!!Fr(this,e)},set:function(e,t){var n=Fr(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(t){var e=Nr(this.entries,function(e){return e[0]===t});return~e&&_r(this.entries,e,1),!!~e}},wr=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined)}},io={getConstructor:function(e,n,r,o){var e=e(function(e,t){yr(e,i),Cr(e,{type:n,id:Mr++,frozen:undefined}),K(t)||hr(t,e[o],{that:e,AS_ENTRIES:r})}),i=e.prototype,a=jr(n),u=function(e,t,n){var r=a(e),o=kr(O(t),!0);return!0===o?Br(r).set(t,n):o[r.id]=n,e};return Lr(i,{"delete":function(e){var t,n=a(this);return!!k(e)&&(!0===(t=kr(e))?Br(n)["delete"](e):t&&C(t,n.id)&&delete t[n.id])},has:function(e){var t,n=a(this);return!!k(e)&&(!0===(t=kr(e))?Br(n).has(e):t&&C(t,n.id))}}),Lr(i,r?{get:function(e){var t,n=a(this);if(k(e))return!0===(t=kr(e))?Br(n).get(e):t?t[n.id]:undefined},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),e}},Rr=-1!==(f="WeakSet").indexOf("Map"),Or=-1!==f.indexOf("Weak"),Sr=Rr?"set":"add",Tr=P[f],xr=Tr&&Tr.prototype,c={},u=function(e){var n=p(xr[e]);v(xr,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(Or&&!k(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return Or&&!k(e)?undefined:n(this,0===e?0:e)}:"has"==e?function(e){return!(Or&&!k(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})},It(f,!R(Ar=Tr)||!(Or||xr.forEach&&!d(function(){(new Tr).entries().next()})))?(Ar=io.getConstructor(wr,f,Rr,Sr),a.enable()):It(f,!0)&&(a=(Er=new Ar)[Sr](Or?{}:-0,1)!=Er,Wr=d(function(){Er.has(1)}),Hr=o(function(e){new Tr(e)}),Vr=!Or&&d(function(){for(var e=new Tr,t=5;t--;)e[Sr](t,t);return!e.has(-0)}),Hr||(((Ar=wr(function(e,t){yr(e,xr);e=Ir(new Tr,e,Ar);return K(t)||hr(t,e[Sr],{that:e,AS_ENTRIES:Rr}),e})).prototype=xr).constructor=Ar),(Wr||Vr)&&(u("delete"),u("has"),Rr)&&u("get"),(Vr||a)&&u(Sr),Or)&&xr.clear&&delete xr.clear,U({global:!0,constructor:!0,forced:(c[f]=Ar)!=Tr},c),Rn(Ar,f),Or||io.setStrong(Ar,f,Rr),{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}),Hr=Ue("span").classList,Wr=Hr&&Hr.constructor&&Hr.constructor.prototype,Vr=Wr===Object.prototype?undefined:Wr,Gr=s("iterator"),$r=s("toStringTag"),Xr=Bn.values,zr=function(e,t){if(e){if(e[Gr]!==Xr)try{Ve(e,Gr,Xr)}catch(x){e[Gr]=Xr}if(e[$r]||Ve(e,$r,t),Dr[t])for(var n in Bn)if(e[n]!==Bn[n])try{Ve(e,n,Bn[n])}catch(x){e[n]=Bn[n]}}};for(Pr in Dr)zr(P[Pr]&&P[Pr].prototype,Pr);zr(Vr,"DOMTokenList");var Yr,Jr,Kr,Qr=Date,Zr=p(Qr.prototype.getTime),a=(U({target:"Date",stat:!0},{now:function(){return Zr(new Qr)}}),Date.prototype),eo=p(a.toString),to=p(a.getTime),u=("Invalid Date"!=String(new Date(NaN))&&v(a,"toString",function(){var e=to(this);return e==e?eo(this):"Invalid Date"}),Xe.EXISTS),c=We.f,f=Function.prototype,no=p(f.toString),ro=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,oo=p(ro.exec),io=(I&&!u&&c(f,"name",{configurable:!0,get:function(){try{return oo(ro,no(this))[1]}catch(x){return""}}}),function(e,t){var n=[][e];return!!n&&d(function(){n.call(null,t||function(){return 1},1)})}),ao=Qt.forEach,uo=io("forEach")?[].forEach:function(e){return ao(this,e,1<arguments.length?arguments[1]:undefined)},so=(U({target:"Array",proto:!0,forced:[].forEach!=uo},{forEach:uo}),function(e){if(e&&e.forEach!==uo)try{Ve(e,"forEach",uo)}catch(x){e.forEach=uo}});for(Yr in Dr)Dr[Yr]&&so(P[Yr]&&P[Yr].prototype);function co(e){this.name="__st"+(1e9*Math.random()>>>0)+Jr+"__",null!=e&&e.forEach(this.add,this),Jr+=1}so(Vr),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o+=1}return undefined}}),window.WeakSet||(Jr=Date.now()%1e9,co.prototype.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},co.prototype["delete"]=function(e){return!!e[this.name]&&(e[this.name]=undefined,!0)},co.prototype.has=function(e){return!!e[this.name]},Kr=co,Object.defineProperty(window,"WeakSet",{value:function(e){return new Kr(e)}}));var fo=Object.assign,lo=Object.defineProperty,po=p([].concat),a=!fo||d(function(){var e,t,n;return!(!I||1===fo({b:1},fo(lo({},"a",{enumerable:!0,get:function(){lo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},(e={})[n=Symbol()]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=fo({},e)[n])||"abcdefghijklmnopqrst"!=Zt(fo({},t)).join("")})?function(e,t){for(var n=be(e),r=arguments.length,o=1,i=Et.f,a=H.f;o<r;)for(var u,s=J(arguments[o++]),c=i?po(Zt(s),i(s)):Zt(s),f=c.length,l=0;l<f;)u=c[l++],I&&!L(a,s,u)||(n[u]=s[u]);return n}:fo,u=(U({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a}),d(function(){Zt(1)})),ho=(U({target:"Object",stat:!0,forced:u},{keys:function(e){return Zt(be(e))}}),Me.f),f=!I||d(function(){ho(1)});function go(e){return(go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}U({target:"Object",stat:!0,forced:f,sham:!I},{getOwnPropertyDescriptor:function(e,t){return ho(ee(e),t)}}),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e===undefined||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++)if((r=arguments[n])!==undefined&&null!==r)for(var r=Object(r),o=Object.keys(Object(r)),i=0,a=o.length;i<a;i++){var u=o[i],s=Object.getOwnPropertyDescriptor(r,u);null!=s&&s.enumerable&&(t[u]=r[u])}return t}});var c=Qn.f,u=d(function(){return!Object.getOwnPropertyNames(1)}),f=(U({target:"Object",stat:!0,forced:u},{getOwnPropertyNames:c}),U({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(e){for(var t,n,r=ee(e),o=Me.f,i=Ot(r),a={},u=0;i.length>u;)(n=o(r,t=i[u++]))!==undefined&&$n(a,t,n);return a}}),Function.prototype),yo=f.apply,vo=f.call,mo="object"==typeof Reflect&&Reflect.apply||(F?vo.bind(yo):function(){return vo.apply(yo,arguments)}),bo=p([].slice),wo=re("JSON","stringify"),Eo=p(/./.exec),Ro=p("".charAt),Oo=p("".charCodeAt),So=p("".replace),To=p(1..toString),xo=/[\uD800-\uDFFF]/g,Ao=/^[\uD800-\uDBFF]$/,Po=/^[\uDC00-\uDFFF]$/,Io=!ae||d(function(){var e=re("Symbol")();return"[null]"!=wo([e])||"{}"!=wo({a:e})||"{}"!=wo(Object(e))}),Lo=d(function(){return'"\\udf06\\ud834"'!==wo("\udf06\ud834")||'"\\udead"'!==wo("\udead")}),ko=function(e,t){var n=bo(arguments),r=t;if((k(t)||e!==undefined)&&!se(e))return Ut(t)||(t=function(e,t){if(R(r)&&(t=L(r,this,e,t)),!se(t))return t}),n[1]=t,mo(wo,null,n)},Co=function(e,t,n){var r=Ro(n,t-1),n=Ro(n,t+1);return Eo(Ao,e)&&!Eo(Po,n)||Eo(Po,e)&&!Eo(Ao,r)?"\\u"+To(Oo(e,0),16):e},jo=(wo&&U({target:"JSON",stat:!0,arity:3,forced:Io||Lo},{stringify:function(e,t,n){var r=bo(arguments),r=mo(Io?ko:wo,null,r);return Lo&&"string"==typeof r?So(r,xo,Co):r}}),s("species")),u=function(t){return 51<=ie||!d(function(){var e=[];return(e.constructor={})[jo]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Uo=Qt.filter,c=u("filter"),f=(U({target:"Array",proto:!0,forced:!c},{filter:function(e){return Uo(this,e,1<arguments.length?arguments[1]:undefined)}}),u("slice")),No=s("species"),_o=Array,Mo=Math.max,Bo=(U({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,o,i=ee(this),a=ht(i),u=lt(e,a),s=lt(t===undefined?a:t,a);if(Ut(i)&&(n=i.constructor,(n=Xt(n)&&(n===_o||Ut(n.prototype))||k(n)&&null===(n=n[No])?undefined:n)===_o||n===undefined))return bo(i,u,s);for(r=new(n===undefined?_o:n)(Mo(s-u,0)),o=0;u<s;u++,o++)u in i&&$n(r,o,i[u]);return r.length=o,r}}),$e.indexOf),qo=kt([].indexOf),Fo=!!qo&&1/qo([1],1,-0)<0,c=Fo||!io("indexOf"),Do=(U({target:"Array",proto:!0,forced:c},{indexOf:function(e){var t=1<arguments.length?arguments[1]:undefined;return Fo?qo(this,e,t)||0:Bo(this,e,t)}}),TypeError),Ho=Object.getOwnPropertyDescriptor,Wo=I&&!function(){if(this!==undefined)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(x){return x instanceof TypeError}}()?function(e,t){if(Ut(e)&&!Ho(e,"length").writable)throw Do("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Vo=TypeError,Go=function(e){if(9007199254740991<e)throw Vo("Maximum allowed index exceeded");return e},$o=TypeError,Xo=function(e,t){if(!delete e[t])throw $o("Cannot delete property "+fe(t)+" of "+fe(e))},f=u("splice"),zo=Math.max,Yo=Math.min,Jo=(U({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,o,i,a,u,s=be(this),c=ht(s),f=lt(e,c),e=arguments.length;for(0===e?n=r=0:r=1===e?(n=0,c-f):(n=e-2,Yo(zo(st(t),0),c-f)),Go(c+n-r),o=Jt(s,r),i=0;i<r;i++)(a=f+i)in s&&$n(o,i,s[a]);if(n<(o.length=r)){for(i=f;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:Xo(s,u);for(i=c;c-r+n<i;i--)Xo(s,i-1)}else if(r<n)for(i=c-r;f<i;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:Xo(s,u);for(i=0;i<n;i++)s[i+f]=arguments[i+2];return Wo(s,c-r+n),o}}),p([].join)),c=J!=Object||!io("join",","),Ko=(U({target:"Array",proto:!0,forced:c},{join:function(e){return Jo(ee(this),e===undefined?",":e)}}),Qt.map),f=u("map"),c=(U({target:"Array",proto:!0,forced:!f},{map:function(e){return Ko(this,e,1<arguments.length?arguments[1]:undefined)}}),U({target:"Object",stat:!0},{setPrototypeOf:Pn}),d(function(){mn(1)})),Qo=(U({target:"Object",stat:!0,forced:c,sham:!i},{getPrototypeOf:function(e){return mn(be(e))}}),function(e,t){return(Qo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)}),E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Zo(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}var ei=/_?t(\d)?(imestamp)?=\d+&?/g,ti=["aegis.qq.com","tamaegis.com","/aegis-sdk","rumt-","/flog.core.min.js","pingfore.qq.com","pingfore.tencent.com","zhiyan.tencent-cloud.net","h.trace.qq.com","btrace.qq.com","beacon.qq.com","dmplog.qq.com","qq.com/report","svibeacon.onezapp.com","cube.weixinbridge.com","doubleclick.net","pcmgrmonitor.3g.qq.com","report.qqweb.qq.com","tpstelemetry.tencent.com","insight.cloud.tencent.com","facebook.com","facebook.net","google","yahoo.com","twitter.com","ga-audiences","report.idqqimg.com","arms-retcode.aliyuncs.com","px.effirst.com","sentry","hot-update.json","u.c.b.r.o.w.s.e.r","report.url.cn","sockjs-node","m3u8"],ni=["ResizeObserver loop limit exceeded","Failed to execute 'transaction'","window.indexedDB.deleteDatabase is not a function"],ri=["ext1","ext2","ext3","level","trace","tag","seq","code"],oi=["static","fetch"];U({target:"Array",stat:!0},{isArray:Ut});var ii=function(){var e=O(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},ai=P.RegExp,f=d(function(){var e=ai("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),c=f||d(function(){return!ai("a","y").sticky}),i={BROKEN_CARET:f||d(function(){var e=ai("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:c,UNSUPPORTED_Y:f},ui=P.RegExp,c=d(function(){var e=ui(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),si=P.RegExp,f=d(function(){var e=si("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),ci=j.get,fi=r("native-string-replace",String.prototype.replace),li=RegExp.prototype.exec,di=li,pi=p("".charAt),hi=p("".indexOf),gi=p("".replace),yi=p("".slice),vi=(r=/b*/g,L(li,Oi=/a/,"a"),L(li,r,"a"),0!==Oi.lastIndex||0!==r.lastIndex),mi=i.BROKEN_CARET,bi=/()??/.exec("")[1]!==undefined,wi=di=vi||bi||mi||c||f?function(e){var t,n,r,o,i,a,u=this,s=ci(u),e=S(e),c=s.raw;if(c)return c.lastIndex=u.lastIndex,l=L(di,c,e),u.lastIndex=c.lastIndex,l;var f=s.groups,c=mi&&u.sticky,l=L(ii,u),s=u.source,d=0,p=e;if(c&&(l=gi(l,"y",""),-1===hi(l,"g")&&(l+="g"),p=yi(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==pi(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",l)),bi&&(t=new RegExp("^"+s+"$(?!\\s)",l)),vi&&(n=u.lastIndex),r=L(li,c?t:u,p),c?r?(r.input=yi(r.input,d),r[0]=yi(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:vi&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),bi&&r&&1<r.length&&L(fi,r[0],t,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===undefined&&(r[o]=undefined)}),r&&f)for(r.groups=i=sn(null),o=0;o<f.length;o++)i[(a=f[o])[0]]=r[a[1]];return r}:di,Ei=(U({target:"RegExp",proto:!0,forced:/./.exec!==wi},{exec:wi}),s("species")),Ri=RegExp.prototype,Oi=function(n,e,t,r){var a,o=s(n),u=!d(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!d(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[Ei]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=kt(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=kt(e),i=t.exec;return i===wi||i===Ri.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),v(String.prototype,n,i[0]),v(Ri,o,i[1])),r&&Ve(Ri[o],"sham",!0)},Si=Ge.charAt,Ti=function(e,t,n){return t+(n?Si(e,t).length:1)},xi=Math.floor,Ai=p("".charAt),Pi=p("".replace),Ii=p("".slice),Li=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ki=/\$([$&'`]|\d{1,2})/g,Ci=TypeError,ji=function(e,t){var n=e.exec;if(R(n))return null!==(n=L(n,e,t))&&O(n),n;if("RegExp"===X(e))return L(wi,e,t);throw Ci("RegExp#exec called on incompatible receiver")},Ui=s("replace"),Ni=Math.max,_i=Math.min,Mi=p([].concat),Bi=p([].push),qi=p("".indexOf),Fi=p("".slice),r="$0"==="a".replace(/./,"$0"),Di=!!/./[Ui]&&""===/./[Ui]("a","$0");Oi("replace",function(e,b,w){var E=Di?"$":"$0";return[function(e,t){var n=Z(this),r=K(e)?undefined:pe(e,Ui);return r?L(r,e,n,t):L(b,S(n),e,t)},function(e,t){var n=O(this),r=S(e);if("string"==typeof t&&-1===qi(t,E)&&-1===qi(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=R(t),a=(i||(t=S(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=ji(n,r);if(null===s)break;if(Bi(u,s),!a)break;""===S(s[0])&&(n.lastIndex=Ti(r,pt(n.lastIndex),o))}for(var c,f="",l=0,d=0;d<u.length;d++){for(var p=S((s=u[d])[0]),h=Ni(_i(st(s.index),r.length),0),g=[],y=1;y<s.length;y++)Bi(g,(c=s[y])===undefined?c:String(c));var v=s.groups,m=i?(m=Mi([p],g,h,r),v!==undefined&&Bi(m,v),S(mo(t,undefined,m))):function(i,a,u,s,c,e){var f=u+i.length,l=s.length,t=ki;return c!==undefined&&(c=be(c),t=Li),Pi(e,t,function(e,t){var n;switch(Ai(t,0)){case"$":return"$";case"&":return i;case"`":return Ii(a,0,u);case"'":return Ii(a,f);case"<":n=c[Ii(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(l<o)return 0!==(r=xi(o/10))&&r<=l?s[r-1]===undefined?Ai(t,1):s[r-1]+Ai(t,1):e;n=s[o-1]}return n===undefined?"":n})}(p,r,h,g,v,t);l<=h&&(f+=Fi(r,l,h)+m,l=h+p.length)}return f+Fi(r,l)}]},!!d(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!r||Di);Hi=!1,(i=/[ac]/).exec=function(){return Hi=!0,/./.exec.apply(this,arguments)};var Hi,c=!0===i.test("abc")&&Hi,Wi=/./.test,Vi=(U({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=O(this),e=S(e),n=t.exec;return R(n)?null!==(n=L(n,t,e))&&(O(n),!0):L(Wi,t,e)}}),RegExp.prototype),f=Xe.PROPER,Gi=RegExp.prototype.toString,r=d(function(){return"/a/b"!=Gi.call({source:"a",flags:"b"})}),i=f&&"toString"!=Gi.name,$i=((r||i)&&v(RegExp.prototype,"toString",function(){var e,t=O(this);return"/"+S(t.source)+"/"+S((e=(t=t).flags)!==undefined||"flags"in Vi||C(t,"flags")||!oe(Vi,t)?e:L(ii,t))},{unsafe:!0}),Qt.some),c=io("some"),Xi=(U({target:"Array",proto:!0,forced:!c},{some:function(e){return $i(this,e,1<arguments.length?arguments[1]:undefined)}}),s("isConcatSpreadable")),f=51<=ie||!d(function(){var e=[];return e[Xi]=!1,e.concat()[0]!==e}),r=!f||!u("concat");U({target:"Array",proto:!0,arity:1,forced:r},{concat:function(e){for(var t,n,r,o,i,a=be(this),u=Jt(a,0),s=0,c=-1,f=arguments.length;c<f;c++)if(o=r=-1===c?a:arguments[c],i=void 0,!k(o)||((i=o[Xi])!==undefined?!i:!Ut(o)))Go(s+1),$n(u,s++,r);else for(n=ht(r),Go(s+n),t=0;t<n;t++,s++)t in r&&$n(u,s,r[t]);return u.length=s,u}});Qi.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},Qi.prototype.on=function(e,t,n){var r;if(void 0===n&&(n=0),this)return(r=this.eventsList[e])||(this.eventsList[e]=[],r=this.eventsList[e]),-1===this.indexOf(r,t)&&r.push({name:e,type:n||0,callback:t}),this},Qi.prototype.one=function(e,t){this.on(e,t,1)},Qi.prototype.remove=function(e,t){if(this){var n=this.eventsList[e];if(n){if(t)return n.length&&(t=this.indexOf(n,t),n.splice(t,1)),this;try{delete this.eventsList[e]}catch(B){}}return null}},Qi.prototype.clear=function(){this.eventsList={}};var zi,Yi=Qi,Ji=function(e){if(!e||0===e.length)return"{}";e=Array.isArray(e)?e:[e];var t=Object.keys(e[0]),n={};return t.forEach(function(t){n[t]=e.map(function(e){return e[t]})}),n.count=e.length,la(n)},Ki=function(e){try{return encodeURIComponent(decodeURIComponent(e))}catch(t){return e}};function Qi(){var a=this;this.emit=function(e,t){if(a){var n;if(null!=(r=a.eventsList[e])&&r.length)for(var r=r.slice(),o=0;o<r.length;o++){n=r[o];try{var i=n.callback.apply(a,[t]);if(1===n.type&&a.remove(e,n.callback),!1===i)break}catch(I){throw I}}return a}},this.eventsList={}}(i=zi=zi||{})[i.number=-1]="number",i.string="";var A,T,Zi,ea=function(e,t){return"number"==typeof e||"string"==typeof e?e:t?zi.string:zi.number},ta=function(e,t){return"string"==typeof e?e.split("?")[t?1:0]||"":e},na=function(e,t){return void 0===t&&(t=2048),String(e).replace(ei,"").slice(0,t)},ra=function(e){return"string"==typeof e&&/^\//.test(e)?"https:"===(null===location||void 0===location?void 0:location.protocol):/^https/.test(e)},oa=["application/xhtml+xml","application/xml","application/pdf","application/pkcs12","application/javascript","application/x-javascript","application/ecmascript","application/vnd.mspowerpoint","application/vnd.apple.mpegurl","application/ogg","text/css","text/javascript","image","audio","video","video/mp2t"],ia=/\.(json|js|css|jpg|jpeg|png|svg|apng|webp|gif|bmp|mp4|mp3|ts|mpeg|wav|webm|ogg|flv|m3u8|ttf|woff2|otf|eot|woff|html|htm|shtml|shtm|)$/gi,aa=["ret","retcode","code","errcode"],ua=function(e,t,n){var r,o;try{if("function"==typeof(null==t?void 0:t.retCodeHandler))return{code:void 0===(i=(o=t.retCodeHandler(e,null==n?void 0:n.url,null==n?void 0:n.ctx,null==n?void 0:n.payload)||{}).code)?"unknown":i,isErr:o.isErr};if(!(e="string"==typeof e?JSON.parse(e):e))return{code:"unknown",isErr:!1};"function"==typeof(null==(r=null==t?void 0:t.ret)?void 0:r.join)&&(aa=[].concat(t.ret.map(function(e){return e.toLowerCase()})));var i,a=Object.getOwnPropertyNames(e).filter(function(e){return-1!==aa.indexOf(e.toLowerCase())});return a.length?{code:""+(i="未知"!==(i=e[a[0]])&&""!==i?i:"unknown"),isErr:0!==i&&"0"!==i&&"unknown"!==i}:{code:"unknown",isErr:!1}}catch(I){return{code:"unknown",isErr:!1}}},sa=function(e,t,n){try{var r="function"==typeof t?t(e,null==n?void 0:n.url)||"":e;return da(r).slice(0,102400)}catch(B){return""}},ca=function(){var n=new WeakSet;return function(e,t){if(t instanceof Error)return"Error.message: "+t.message+" \n Error.stack: "+t.stack;if("object"===go(t)&&null!==t){if(n.has(t))return"[Circular "+(e||"root")+"]";n.add(t)}return t}},fa=function(e){if("string"==typeof e)return e;try{return e instanceof Error?(JSON.stringify(e,ca(),4)||"undefined").replace(/"/gim,""):JSON.stringify(e,ca(),4)||"undefined"}catch(t){return"error happen when aegis stringify: \n "+t.message+" \n "+t.stack}},la=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e,ca())||"undefined"}catch(t){return"error happen when aegis stringify: \n "+t.message+" \n "+t.stack}},da=function Xh(n,r){void 0===r&&(r=3);var o,i,a,u="";return Array.isArray(n)?(u+="[",o=n.length,n.forEach(function(e,t){"object"===go(e)&&1<r?u+=Xh(e,r-1):u+=ha(e),u+=t===o-1?"":","}),u+="]"):n instanceof Object?(u="{",i=Object.keys(n),a=i.length,i.forEach(function(e,t){"object"===go(n[e])&&1<r?u+='"'+e+'":'+Xh(n[e],r-1):u+=pa(e,n[e]),u+=t===a-1||t<a-1&&"undefined"==typeof n[i[t+1]]?"":","}),u+="}"):u+=n,u},pa=function(e,t){var n=go(t),r="";return"string"===n||"object"===n?r+='"'+e+'":"'+t+'"':"function"==typeof t?r+='"'+e+'":"function '+t.name+'"':"symbol"===go(t)?r+='"'+e+'":"symbol"':"number"!=typeof t&&"boolean"!==n||(r+='"'+e+'": '+t),r},ha=function(e){var t=go(e);return""+("undefined"===t||"symbol"===t||"function"===t?"null":"string"===t||"object"===t?'"'+e+'"':e)},ga=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},ya=/data:(image|text|application|font)\/.*;base64/,va=function(t,e){return"string"!=typeof t||!t||e&&-1<t.indexOf(e)||ya.test(t)||ti.some(function(e){return-1<t.indexOf(e)})},ma=((c=A=A||{}).INFO_ALL="-1",c.API_RESPONSE="1",c.INFO="2",c.ERROR="4",c.PROMISE_ERROR="8",c.AJAX_ERROR="16",c.SCRIPT_ERROR="32",c.IMAGE_ERROR="64",c.CSS_ERROR="128",c.CONSOLE_ERROR="256",c.MEDIA_ERROR="512",c.RET_ERROR="1024",c.REPORT="2048",c.PV="4096",c.EVENT="8192",c.PAGE_NOT_FOUND_ERROR="16384",c.WEBSOCKET_ERROR="32768",c.BRIDGE_ERROR="65536",c.LAZY_LOAD_ERROR="131072",0,0,(f=T=T||{}).LOG="log",f.SPEED="speed",f.PERFORMANCE="performance",f.OFFLINE="offline",f.WHITE_LIST="whiteList",f.VITALS="vitals",f.PV="pv",f.CUSTOM_PV="customPV",f.EVENT="event",f.CUSTOM="custom",f.SDK_ERROR="sdkError",f.SET_DATA="setData",f.LOAD_PACKAGE="loadPackage",(u=Zi=Zi||{}).production="production",u.development="development",u.gray="gray",u.pre="pre",u.daily="daily",u.local="local",u.test="test",u.others="others",TypeError),r=function(c){return function(e,t,n,r){de(t);var o=be(e),i=J(o),a=ht(o),u=c?a-1:0,s=c?-1:1;if(n<2)for(;;){if(u in i){r=i[u],u+=s;break}if(u+=s,c?u<0:a<=u)throw ma("Reduce of empty array with no initial value")}for(;c?0<=u:u<a;u+=s)u in i&&(r=t(r,i[u],u,o));return r}},i={left:r(!1),right:r(!0)},ba="undefined"!=typeof process&&"process"==X(process),wa=i.left,c=!ba&&79<ie&&ie<83||!io("reduce"),f=(U({target:"Array",proto:!0,forced:c},{reduce:function(e){var t=arguments.length;return wa(this,e,t,1<t?arguments[1]:undefined)}}),"function"==typeof Bun&&Bun&&"string"==typeof Bun.version),Ea=TypeError,Ra=function(e,t){if(e<t)throw Ea("Not enough arguments");return e},Oa=P.Function,Sa=/MSIE .\./.test(e)||f&&((u=P.Bun.version.split(".")).length<3||0==u[0]&&(u[1]<3||3==u[1]&&0==u[2])),r=function(i,a){var u=a?2:1;return Sa?function(e,t){var n=Ra(arguments.length,1)>u,r=R(e)?e:Oa(e),o=n?bo(arguments,u):[],e=n?function(){mo(r,this,o)}:r;return a?i(e,t):i(e)}:i},c=r(P.setInterval,!0),f=(U({global:!0,bind:!0,forced:P.setInterval!==c},{setInterval:c}),r(P.setTimeout,!0)),Ta=(U({global:!0,bind:!0,forced:P.setTimeout!==f},{setTimeout:f}),function(e){return e.filter(function(n,r){return"static"!==n.type||!e.find(function(e,t){return n.url===e.url&&200===n.status&&r<t})})}),xa=function(n,r){var o,i=[],a=n.config;return n.lifeCycle.on("destroy",function(){i.length=0}),function(e,t){Array.isArray(e)?i=i.concat(e):i.push(e),r&&i.length>=r||n.sendNow&&0<i.length?(i=Ta(i),t(i.splice(0,i.length)),o&&clearTimeout(o)):(o&&clearTimeout(o),o=setTimeout(function(){o=null,0<(i=Ta(i)).length&&t(i.splice(0,i.length))},a.delay))}},Aa=function(e,t){return Array.isArray(e)?t(e.map(function(e){return t=E(E({},e),{msg:"string"==typeof e.msg?e.msg:[].concat(e.msg).map(fa).join(" ")}),ri.forEach(function(e){t[e]||delete t[e]}),t;var t})):t([E(E({},e),{msg:"string"==typeof e.msg?e.msg:fa(e.msg)})])},Pa=function(e){e.level===A.INFO_ALL&&(e.level=A.INFO)},Ia=RangeError,u=function(e){var t=S(Z(this)),n="",r=st(e);if(r<0||r==Infinity)throw Ia("Wrong number of repetitions");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},La=(U({target:"String",proto:!0},{repeat:u}),{}),ka={},Ca=function(e){return La[e]||(La[e]=setTimeout(function(){ka[e]={},La[e]=null},6e4)),La[e]},ja=function(e){return(Array.isArray(e)?e:[e]).map(function(n){return Object.getOwnPropertyNames(n).reduce(function(e,t){return"ctx"!==t&&(e[t]=n[t]),e},{level:A.INFO,msg:""})})},Ua=function(r){return function(e){return r.sendPipeline([function(e,n){return n({url:r.config.url||"",data:Ji(ja(e)),method:"post",contentType:"application/json",type:T.LOG,log:e,requestConfig:{timeout:5e3},success:function(){var t=r.config.onReport;"function"==typeof t&&e.forEach(function(e){t(e)}),"function"==typeof n&&n([])}})}],T.LOG)(e)}},Na=function(s,c){return function(e,t){var n,r,o,i=Array.isArray(e),a=i?e:[e],u=(s.lifeCycle.emit("beforeRequest",e),s.config.beforeRequest);(a="function"==typeof u?a.map(function(e){try{var t=u({logs:e,logType:c});return(null==t?void 0:t.logType)===c&&null!=t&&t.logs?t.logs:!1!==t&&e}catch(x){return e}}).filter(function(e){return!1!==e}):a).length&&(n=a,e=ri,!Array.isArray(n)||n.length<=1||(r=[],o=[],!(o="string"==typeof e?[e]:e))||o.length<=0||(o.forEach(function(t){n.forEach(function(e){null!=e&&e[t]&&r.push(t)})}),0<r.length&&(n=n.map(function(e){var t={};return r.forEach(function(e){t[e]=""}),E(E({},t),e)}))),a=n,t(i?a:a[0]))}},_a=function(o){return function(e,t){o.lifeCycle.emit("modifyRequest",e);var n=o.config.modifyRequest;if("function"==typeof n)try{var r=n(e);"object"===go(r)&&"url"in r&&(e=r)}catch(x){console.error(x)}t(e)}},Ma=function(r){return function(e,t){null!=(n=r.lifeCycle)&&n.emit("afterRequest",e);var n=(r.config||{}).afterRequest;"function"==typeof n&&!1===n(e)||t(e)}},Ba=function(){},qa=function(n){if(n&&n.reduce&&n.length)return 1===n.length?function(e,t){n[0](e,t||Ba)}:n.reduce(function(n,r){return function(e,t){return void 0===t&&(t=Ba),n(e,function(e){return null==r?void 0:r(e,t)})}});throw new TypeError("createPipeline need at least one function param")},Fa=function(t,n){Object.getOwnPropertyNames(t).forEach(function(e){"function"==typeof t[e]&&"constructor"!==e&&(n?n[e]="sendPipeline"===e?function(){return function(){}}:function(){}:t[e]=function(){})})},c=(Object.defineProperty(y.prototype,"__version__",{get:function(){return console.warn("__version__ has discard, please use version"),"1.37.5"},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"LogType",{get:function(){return console.warn("LogType has discard, please use logType"),A},enumerable:!1,configurable:!0}),y.prototype.init=function(e){this.setConfig(e);for(var t=0;t<y.installedPlugins.length;t++)try{y.installedPlugins[t].patch(this)}catch(M){this.sendSDKError(M)}this.lifeCycle.emit("onInited")},y.prototype.setConfig=function(e){Object.assign(this.config,e);var e=this.config,t=e.id,n=e.uin,r=e.version,o=e.ext1,i=e.ext2,a=e.ext3,u=e.aid,s=e.env,c=void 0===s?"production":s,s=e.pageUrl,e=this.bean.id!==t||this.bean.uin!==n||this.bean.aid!==u;return this.bean.id=t||"",this.bean.uin=n||"",this.bean.version=r||"1.37.5",this.bean.aid=u||"",this.bean.env=function(){switch(c){case Zi.production:case Zi.development:case Zi.gray:case Zi.pre:case Zi.daily:case Zi.local:case Zi.test:case Zi.others:return 1;default:return}}()?c:Zi.others,s&&this.extendBean("from",encodeURIComponent(s.slice(0,2048))),o&&this.extendBean("ext1",encodeURIComponent(o)),i&&this.extendBean("ext2",encodeURIComponent(i)),a&&this.extendBean("ext3",encodeURIComponent(a)),e&&this.lifeCycle.emit("onConfigChange",this.config),this.config},y.use=function(e){-1===y.installedPlugins.indexOf(e)&&e.aegisPlugin&&y.installedPlugins.push(e)},y.unuse=function(e){e=y.installedPlugins.indexOf(e);-1!==e&&y.installedPlugins.splice(e,1)},y.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:A.INFO,msg:e};1===e.length&&e[0].msg&&Object.assign(n,E({},e[0]),{level:A.INFO}),this.normalLogPipeline(n)},y.prototype.infoAll=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:A.INFO_ALL,msg:e};1===e.length&&e[0].msg&&Object.assign(n,E({},e[0]),{level:A.INFO_ALL}),this.normalLogPipeline(n)},y.prototype.report=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:A.REPORT,msg:e};1===e.length&&e[0].msg&&Object.assign(n,E({},e[0])),this.normalLogPipeline(n)},y.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={level:A.ERROR,msg:e};1===e.length&&e[0].msg&&Object.assign(n,E({},e[0]),{level:A.ERROR}),this.normalLogPipeline(n)},y.prototype.speedLogPipeline=function(e){throw new Error('You need to override "speedLogPipeline" method')},y.prototype.reportPv=function(n){var r,o=this;n&&(console.warn("reportPv is deprecated, please use reportEvent"),r=""+Object.getOwnPropertyNames(this.bean).filter(function(e){return"id"!==e}).map(function(e){return e+"="+o.bean[e]}).join("&"),this.sendPipeline([function(e,t){t({url:o.config.url+"/"+n+"?"+r,addBean:!1,type:T.CUSTOM_PV})}],T.CUSTOM_PV)(null))},y.prototype.reportEvent=function(e){e&&((e="string"==typeof e?{name:e,ext1:this.config.ext1||"",ext2:this.config.ext2||"",ext3:this.config.ext3||""}:e).name?("string"!=typeof e.name&&(console.warn("reportEvent params name must be string"),e.name=String(e.name)),this.eventPipeline(e)):console.warn("reportEvent params error"))},y.prototype.reportTime=function(e,t){if("object"===go(e))return this.reportT(e);"string"==typeof e?"number"==typeof t?t<0||6e4<t?console.warn("reportTime: duration must between 0 and 60000"):this.submitCustomTime(e,t):console.warn("reportTime: second param must be number"):console.warn("reportTime: first param must be a string")},y.prototype.reportT=function(e){var t=e.name,n=e.duration,r=e.ext1,r=void 0===r?"":r,o=e.ext2,o=void 0===o?"":o,i=e.ext3,i=void 0===i?"":i,e=e.from;if("string"==typeof t&&"number"==typeof n&&"string"==typeof r&&"string"==typeof o&&"string"==typeof i){if(!(n<0||6e4<n))return this.submitCustomTime(t,n,r,o,i,void 0===e?"":e);console.warn("reportTime: duration must between 0 and 60000")}else console.warn("reportTime: params error")},y.prototype.time=function(e){"string"==typeof e?this.timeMap[e]?console.warn("Timer "+e+" already exists"):this.timeMap[e]=Date.now():console.warn("time: first param must be a string")},y.prototype.timeEnd=function(e){"string"==typeof e?this.timeMap[e]?(this.submitCustomTime(e,Date.now()-this.timeMap[e]),delete this.timeMap[e]):console.warn("Timer "+e+" does not exist"):console.warn("timeEnd: first param must be a string")},y.prototype.submitCustomTime=function(e,t,n,r,o,i){this.customTimePipeline({name:e,duration:t,ext1:n||this.config.ext1,ext2:r||this.config.ext2,ext3:o||this.config.ext3,from:i||undefined})},y.prototype.extendBean=function(e,t){this.bean[e]=t},y.prototype.sendPipeline=function(e,t){var n,i=this;return qa(Zo([function(e,t){if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||t(e);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,t(e);n.isHidden=!0}},Na(n=this,t)],e,[_a(this),function(r,o){i.request(r,function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];i.failRequestCount=0,o({isErr:!1,result:t,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(e=null==r?void 0:r.success)&&e.call.apply(e,Zo([r],t))},function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];60<=++i.failRequestCount&&i.destroy(),-1<(""+t[0]).indexOf("403 forbidden")&&i.destroy(),o({isErr:!0,result:t,logType:null==r?void 0:r.type,logs:null==r?void 0:r.log}),null!=(e=null==r?void 0:r.fail)&&e.call.apply(e,Zo([r],t))})},Ma(this)]))},y.prototype.send=function(e,o,i){var t=this;return qa([_a(this),function(n,r){t.request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!1,result:e,logType:n.type,logs:n.log}),null!=o&&o.apply(void 0,e)},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r({isErr:!0,result:e,logType:n.type,logs:n.log}),null!=i&&i.apply(void 0,e)})},Ma(this)])(e)},y.prototype.ready=function(e,t,n){throw new Error('You need to override "ready" method')},y.prototype.request=function(e,t,n){throw new Error('You need to override "request" method')},y.prototype.sendSDKError=function(e){var n=this;this.sendPipeline([function(e,t){t({url:n.config.url+"?id=1085&msg[0]="+encodeURIComponent(fa(e))+"&level[0]=2&from="+n.config.id+"&count=1&version="+n.config.id+"(1.37.5)",addBean:!1,method:"get",type:T.SDK_ERROR,log:e})}],T.SDK_ERROR)(e)},y.prototype.destroy=function(e){void 0===e&&(e=!1);var t,n,r=y.instances.indexOf(this);-1!==r&&y.instances.splice(r,1);for(var o=y.installedPlugins.length-1;0<=o;o--)try{y.installedPlugins[o].unpatch(this)}catch(D){this.sendSDKError(D)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),e)t=this,n=Object.getOwnPropertyDescriptors(t),Object.keys(n).forEach(function(e){n[e].writable&&(t[e]=null)}),Object.setPrototypeOf(this,null);else{for(var i=this;i.constructor!==Object&&Fa(i,this),i=Object.getPrototypeOf(i););0===y.instances.length&&(r=Object.getPrototypeOf(this).constructor,Fa(r),Fa(y))}},y.version="1.37.5",y.instances=[],y.logType=A,y.environment=Zi,y.installedPlugins=[],y),Da=Function,Ha=p([].concat),Wa=p([].join),Va={},r=F?Da.bind:function(a){var u=de(this),e=u.prototype,s=bo(arguments,1),c=function(){var e=Ha(s,bo(arguments));if(this instanceof c){var t=u,n=e.length,r=e;if(!C(Va,n)){for(var o=[],i=0;i<n;i++)o[i]="a["+i+"]";Va[n]=Da("C,a","return new C("+Wa(o,",")+")")}return Va[n](t,r)}return u.apply(a,e)};return k(e)&&(c.prototype=e),c};function y(e){var n,t,r,o,a,i,u,s,c,f,l,d,p,h,g=this;this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:60,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,speedSample:!0,onClose:!0,reportLoadPackageSpeed:!0,hostUrl:"https://aegis.qq.com",env:"production",url:"",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:"",reportImmediately:!0},this.isWhiteList=!1,this.lifeCycle=new Yi,this.bean={},this.normalLogPipeline=qa([xa(this,5),Aa,function(e,t){var r=n.config;t(e=e.map(function(e){var t,n=r.maxLength||102400;try{if(!e.msg||e.msg.length<=n)return e;e.msg=null==(t=e.msg)?void 0:t.substring(0,n)}catch(B){e.msg=fa(e.msg).substring(0,r.maxLength)}return e}))},(h=(n=this).config,function(e,t){var n="number"==typeof h.repeat?h.repeat:60;if(n<=0)return t(e);var r=(null==h?void 0:h.id)+"_error",o=ka[r]||{};t(e.filter(function(e){if(e.level===A.ERROR||e.level===A.PROMISE_ERROR||e.level===A.AJAX_ERROR||e.level===A.SCRIPT_ERROR||e.level===A.IMAGE_ERROR||e.level===A.CSS_ERROR||e.level===A.MEDIA_ERROR||e.level===A.RET_ERROR||e.level===A.BRIDGE_ERROR||e.level===A.PAGE_NOT_FOUND_ERROR||e.level===A.WEBSOCKET_ERROR||e.level===A.LAZY_LOAD_ERROR){e=e.msg.slice(0,200);if(o[e]>n)return La[r]||Ca(r),!1;o[e]=1+~~o[e],ka[r]=o}return!0}))}),(d=this.lifeCycle.emit,p=this.config,function(e,t){var n,r=p.logCreated;return"function"==typeof r?(n=e.filter(function(e){return!1!==r(e)}),d("beforeWrite",n),t(n)):(d("beforeWrite",e),t(e))}),(l=this,setTimeout(function(){var e=l.config,t=e.pvUrl,n=void 0===t?"":t,t=e.spa,e=-1<["web-sdk","mp-sdk"].indexOf("web-sdk");n&&(e&&!t||!e)&&l.sendPipeline([function(e,t){t({url:n,type:T.PV})}],T.PV)(null)},100),function(e,t){t(e)}),(c=s=u=!1,f=[],(a=this).lifeCycle.on("onConfigChange",function(){i&&clearTimeout(i),i=setTimeout(function(){var e,n;!c&&a.config&&(c=!0,e=a.config.whiteListUrl,(n=void 0===e?"":e)&&a.sendPipeline([function(e,t){t({url:n,type:T.WHITE_LIST,success:function(e){s=!0;try{var t=e.data||JSON.parse(e),n=t.retcode,r=t.result,o=void 0===r?{}:r,i=(0===n&&(u=o.is_in_white_list,a.isWhiteList=u,0<=o.rate)&&o.rate<=1&&(a.config.random=o.rate,a.isGetSample=!1),a.isWhiteList&&f.length?Ua(a)(f.splice(0),function(){}):!a.isWhiteList&&f.length&&(f.length=0),a.config.onWhitelist);"function"==typeof i&&i(u)}catch(L){}},fail:function(){s=!0}})}],T.WHITE_LIST)(null),c=!1)},a.config.uin?50:500)}),a.lifeCycle.on("destroy",function(){f.length=0}),function(e,t){var n;u||null!=(n=null==(n=a.config)?void 0:n.api)&&n.reportRequest?t(e.concat(f.splice(0)).map(function(e){return Pa(e),e})):(n=e.filter(function(e){return e.level!==A.INFO&&e.level!==A.API_RESPONSE?(Pa(e),!0):(s||(f.push(e),200<=f.length&&(f.length=200)),!1)})).length&&t(n)}),function(e,t){try{var n=JSON.parse(JSON.stringify(e)),r=(g.lifeCycle.emit("beforeReport",n),g.config.beforeReport);(e="function"==typeof r?e.filter(function(e){return!1!==r(e)}):e).length&&t(e)}catch(P){}},Ua(this)]),this.eventPipeline=qa([xa(this,10),(o=this,function(e){o.sendPipeline([function(e,t){var n=e.map(function(e){return{name:e.name,ext1:e.ext1||o.config.ext1||"",ext2:e.ext2||o.config.ext2||"",ext3:e.ext3||o.config.ext3||""}});t({url:o.config.eventUrl+"?payload="+encodeURIComponent(JSON.stringify(n)),type:T.EVENT,log:e})}],T.EVENT)(e)})]),this.timeMap={},this.failRequestCount=0,this.customTimePipeline=qa([xa(this,10),(r=this,function(e){return r.sendPipeline([function(e,t){t({url:r.config.customTimeUrl+"?payload="+encodeURIComponent(JSON.stringify({custom:e})),type:T.CUSTOM,log:e})}],T.CUSTOM)(e)})]),this.config=(t=this.config,void 0===(e=e.hostUrl)&&(e="https://aegis.qq.com"),t.url=t.url||e+"/collect",t.offlineUrl=t.offlineUrl||e+"/offline",t.whiteListUrl=t.whiteListUrl||e+"/collect/whitelist",t.pvUrl=t.pvUrl||e+"/collect/pv",t.eventUrl=t.eventUrl||e+"/collect/events",t.speedUrl=t.speedUrl||e+"/speed",t.customTimeUrl=t.customTimeUrl||e+"/speed/custom",t.performanceUrl=t.performanceUrl||e+"/speed/performance",t.webVitalsUrl=t.webVitalsUrl||e+"/speed/webvitals",t.setDataReportUrl=t.SetDataReportUrl||e+"/speed/miniProgramData",t),y.instances.push(this)}U({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r});tu.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewAegis(e))},tu.prototype.unpatch=function(e){var t=this.instances.indexOf(e);-1!==t&&(this.instances.splice(t,1),0===this.instances.length)&&this.uninstall(e)},tu.prototype.countInstance=function(){return this.instances.length},tu.prototype.uninstall=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this,[e])},tu.prototype.walk=function(n){var r=this;this.instances.forEach(function(e){var t=r.canUse(e);t&&n(e,t)})},tu.prototype.canUse=function(e){e=this.getConfig(e);return!(!e||"object"!==go(e))||!!e},tu.prototype.getConfig=function(e){return null==(e=e.config)?void 0:e[this.name]},tu.prototype.exist=function(e){return-1===this.instances.indexOf(e)},tu.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,null==(t=null==(t=this.option)?void 0:t.init))||t.call(this.option,this.getConfig(e))},tu.prototype.triggerOnNewAegis=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.onNewAegis)&&t.call(this.option,e,this.getConfig(e))};var l=tu,f=new l({name:"aid",aid:"",init:function(e){try{var t=!0!==e&&e||window.localStorage.getItem("AEGIS_ID");t||(t=ga(),window.localStorage.setItem("AEGIS_ID",t)),this.aid=t}catch(_){}},onNewAegis:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),r=P,Ga=p(1..valueOf),$a="\t\n\x0B\f\r \u2028\u2029\ufeff",Xa=p("".replace),za="["+$a+"]",Ya=RegExp("^"+za+za+"*"),Ja=RegExp(za+za+"*$"),za=function(t){return function(e){e=S(Z(e));return 1&t&&(e=Xa(e,Ya,"")),e=2&t?Xa(e,Ja,""):e}},za={start:za(1),end:za(2),trim:za(3)},h=wt.f,Ka=Me.f,Qa=We.f,Za=za.trim,eu=P.Number;function tu(e){this.aegisPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}r.Number;var nu=eu.prototype,ru=P.TypeError,ou=p("".slice),iu=p("".charCodeAt),au=function(e){var t,n,r,o,i,a,u,s=Le(e,"number");if(se(s))throw ru("Cannot convert a Symbol value to a number");if("string"==typeof s&&2<s.length)if(s=Za(s),43===(e=iu(s,0))||45===e){if(88===(t=iu(s,2))||120===t)return NaN}else if(48===e){switch(iu(s,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+s}for(i=(o=ou(s,2)).length,a=0;a<i;a++)if((u=iu(o,a))<48||r<u)return NaN;return parseInt(o,n)}return+s},g=It("Number",!eu(" 0o1")||!eu("0b1")||eu("+0x1")),uu=function(e){var t,e=arguments.length<1?0:eu(function(e){e=Le(e,"number");return"bigint"==typeof e?e:au(e)}(e));return oe(nu,t=this)&&d(function(){Ga(t)})?Ir(Object(e),this,uu):e};if(uu.prototype=nu,g&&(nu.constructor=uu),U({global:!0,constructor:!0,wrap:!0,forced:g},{Number:uu}),g)for(var su=r.Number,cu=eu,fu,lu=I?h(cu):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),du=0;lu.length>du;du++)C(cu,fu=lu[du])&&!C(su,fu)&&Qa(su,fu,Ka(cu,fu));var pu=RangeError,hu=String,gu=Math.floor,yu=p(u),vu=p("".slice),mu=p(1..toFixed),bu=function(e,t,n){return 0===t?n:t%2==1?bu(e,t-1,n*e):bu(e*e,t/2,n)},wu=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=gu(o/1e7)},Eu=function(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=gu(r/t),r=r%t*1e7},Ru=function(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=hu(e[n]),r=""===r?t:r+yu("0",7-t.length)+t);return r},g=d(function(){return"0.000"!==mu(8e-5,3)||"1"!==mu(.9,0)||"1.25"!==mu(1.255,2)||"1000000000000000128"!==mu(0xde0b6b3a7640080,0)})||!d(function(){mu({})}),Ou=(U({target:"Number",proto:!0,forced:g},{toFixed:function(e){var t,n,r,o=Ga(this),e=st(e),i=[0,0,0,0,0,0],a="",u="0";if(e<0||20<e)throw pu("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return hu(o);if(o<0&&(a="-",o=-o),1e-21<o)if(r=(t=function(){for(var e=0,t=o*bu(2,69,1);4096<=t;)e+=12,t/=4096;for(;2<=t;)e+=1,t/=2;return e}()-69)<0?o*bu(2,-t,1):o/bu(2,t,1),r*=4503599627370496,0<(t=52-t)){for(wu(i,0,r),n=e;7<=n;)wu(i,1e7,0),n-=7;for(wu(i,bu(10,n,1),0),n=t-1;23<=n;)Eu(i,1<<23),n-=23;Eu(i,1<<n),wu(i,1,1),Eu(i,2),u=Ru(i)}else wu(i,0,r),wu(i,1<<-t,0),u=Ru(i)+yu("0",e);return 0<e?a+((r=u.length)<=e?"0."+yu("0",e-r)+u:vu(u,0,r-e)+"."+vu(u,r-e)):a+u}}),function(t){var n;return t.payload?(n={},Object.keys(t).forEach(function(e){"payload"!==e&&(n[e]=t[e])}),n):t}),Su=function(t){return"string"!=typeof t||!t||ni.some(function(e){return-1<t.indexOf(e)})||ti.some(function(e){return-1<t.indexOf(e)})},Tu=function(){return"undefined"!=typeof window.performance&&"function"==typeof performance.clearResourceTimings&&"function"==typeof performance.getEntriesByType&&"function"==typeof performance.now},xu=new l({name:"reportAssetSpeed"}),r=xu=new l({name:"reportAssetSpeed",collectCur:0,collectEntryType:"resource",ASSETS_INITIATOR_TYPE:["img","css","script","link","audio","video"],onNewAegis:function(e){var t=this;Tu()&&(this.collectSuccessLog(e),this.collectFailLog(e),performance.onresourcetimingbufferfull=function(){t.collectCur=0,performance.clearResourceTimings()})},publish:function(t,n){this.$walk(function(e){e===n&&e.speedLogPipeline(t)})},publishMany:function(e,t){for(var n=t.config,r=0,o=e.length;r<o;r++){var i=e[r];-1===this.ASSETS_INITIATOR_TYPE.indexOf(i.initiatorType)||va(i.name,n.hostUrl)||this.publish(this.generateLog(i,n),t)}},collectSuccessLog:function(n){var e,t,r=this;"function"==typeof window.PerformanceObserver?(this.publishMany(performance.getEntriesByType(this.collectEntryType),n),(e=new window.PerformanceObserver(function(e){r.publishMany(e.getEntries(),n)})).observe({entryTypes:[this.collectEntryType]}),n.lifeCycle.on("destroy",function(){0===xu.countInstance()&&e.disconnect()})):(t=setInterval(function(){var e=performance.getEntriesByType(r.collectEntryType),t=e.slice(r.collectCur);r.collectCur=e.length,r.publishMany(t,n)},3e3),n.lifeCycle.on("destroy",function(){0===xu.countInstance()&&clearInterval(t)}))},collectFailLog:function(r){var o=this,i=r.config,e=function(e){var t,n;e&&(e=e.target||e.srcElement,!(t=(null==e?void 0:e.src)||(null==e?void 0:e.href))||"string"!=typeof t||-1<window.location.href.indexOf(t)||(e="function"==typeof(null==(e=i.api)?void 0:e.resourceTypeHandler)?null==(e=i.api)?void 0:e.resourceTypeHandler(t):"",n=performance.getEntriesByType(o.collectEntryType).find(function(e){return e.name===t}),va(t,i.hostUrl))||(n={url:na(t),status:400,duration:Number(((null==n?void 0:n.duration)||0).toFixed(2)),method:"get",type:e||"static",isHttps:ra(t),urlQuery:ta(t,!0),nextHopProtocol:"",domainLookup:0,connectTime:0},o.publish(n,r)))};window.document.addEventListener("error",e,!0),r.lifeCycle.on("destroy",function(){0===xu.countInstance()&&window.document.removeEventListener("error",e,!0)})},generateLog:function(e,t){var t="function"==typeof(null==(n=t.api)?void 0:n.resourceTypeHandler)?null==(n=t.api)?void 0:n.resourceTypeHandler(e.name):"",n=e.transferSize;return{url:na(e.name),method:"get",duration:Number(e.duration.toFixed(2)),status:200,type:t||"static",isHttps:ra(e.name),nextHopProtocol:e.nextHopProtocol||"",urlQuery:ta(e.name,!0),domainLookup:ea(e.domainLookupEnd-e.domainLookupStart),connectTime:ea(e.connectEnd-e.connectStart),transferSize:0<n?n:-1}},collectNotReportedLog:function(e){var t,n;Tu()&&(t=(n=performance.getEntriesByType(this.collectEntryType)).length,"function"!=typeof window.PerformanceObserver)&&this.collectCur!==t&&(n=n.slice(this.collectCur),this.collectCur=t,this.publishMany(n,e,!0))},destroy:function(){this.option.publish=function(){}}}),Au=Qt.findIndex,Pu=!0;"findIndex"in[]&&Array(1).findIndex(function(){Pu=!1}),U({target:"Array",proto:!0,forced:Pu},{findIndex:function(e){return Au(this,e,1<arguments.length?arguments[1]:undefined)}}),n("findIndex");var Iu,Lu,ku=s("species"),Cu=function(e){var e=re(e),t=We.f;I&&e&&!e[ku]&&t(e,ku,{configurable:!0,get:function(){return this}})},ju=TypeError,Uu=function(e){if(Xt(e))return e;throw ju(fe(e)+" is not a constructor")},Nu=s("species"),_u=function(e,t){var e=O(e).constructor;return e===undefined||K(e=O(e)[Nu])?t:Uu(e)},h=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),u=P.setImmediate,g=P.clearImmediate,Mu=P.process,Bu=P.Dispatch,qu=P.Function,n=P.MessageChannel,Fu=P.String,Du=0,Hu={},Wu=(d(function(){Iu=P.location}),function(e){var t;C(Hu,e)&&(t=Hu[e],delete Hu[e],t())}),Vu=function(e){return function(){Wu(e)}},Gu=function(e){Wu(e.data)},$u=function(e){P.postMessage(Fu(e),Iu.protocol+"//"+Iu.host)},n=(u&&g||(u=function(e){Ra(arguments.length,1);var t=R(e)?e:qu(e),n=bo(arguments,1);return Hu[++Du]=function(){mo(t,undefined,n)},Lu(Du),Du},g=function(e){delete Hu[e]},ba?Lu=function(e){Mu.nextTick(Vu(e))}:Bu&&Bu.now?Lu=function(e){Bu.now(Vu(e))}:n&&!h?(Xu=(n=new n).port2,n.port1.onmessage=Gu,Lu=jt(Xu.postMessage,Xu)):P.addEventListener&&R(P.postMessage)&&!P.importScripts&&Iu&&"file:"!==Iu.protocol&&!d($u)?(Lu=$u,P.addEventListener("message",Gu,!1)):Lu="onreadystatechange"in Ue("script")?function(e){tn.appendChild(Ue("script")).onreadystatechange=function(){tn.removeChild(this),Wu(e)}}:function(e){setTimeout(Vu(e),0)}),{set:u,clear:g}),Xu=function(){this.head=null,this.tail=null};Xu.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var zu,Yu,Ju,Ku,Qu,Zu,es=Xu,$u=/ipad|iphone|ipod/i.test(e)&&"undefined"!=typeof Pebble,Gu=/web0s(?!.*chrome)/i.test(e),u=Me.f,ts=n.set,g=P.MutationObserver||P.WebKitMutationObserver,Xu=P.document,ns=P.process,m=P.Promise,u=u(P,"queueMicrotask"),u=u&&u.value,rs=(u||(Ku=new es,Qu=function(){var e,t;for(ba&&(e=ns.domain)&&e.exit();t=Ku.get();)try{t()}catch(x){throw Ku.head&&Zu(),x}e&&e.enter()},Zu=h||ba||Gu||!g||!Xu?!$u&&m&&m.resolve?((h=m.resolve(undefined)).constructor=m,Ju=jt(h.then,h),function(){Ju(Qu)}):ba?function(){ns.nextTick(Qu)}:(ts=jt(ts,P),function(){ts(Qu)}):(zu=!0,Yu=Xu.createTextNode(""),new g(Qu).observe(Yu,{characterData:!0}),function(){Yu.data=zu=!zu}),u=function(e){Ku.head||Zu(),Ku.add(e)}),u),os=function(e){try{return{error:!1,value:e()}}catch(x){return{error:!0,value:x}}},is=P.Promise,as="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,us=!as&&!ba&&"object"==typeof window&&"object"==typeof document;is&&is.prototype;var ss,cs,fs,ls=s("species"),ds=!1,ps=R(P.PromiseRejectionEvent),Gu={CONSTRUCTOR:It("Promise",function(){var e=Ze(is),t=e!==String(is);if(!t&&66===ie)return!0;if(!ie||ie<51||!/native code/.test(e)){var e=new is(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[ls]=n,!(ds=e.then(function(){})instanceof n))return!0}return!t&&(us||as)&&!ps}),REJECTION_EVENT:ps,SUBCLASSING:ds},hs=TypeError,gs=function(e){var n,r;this.promise=new e(function(e,t){if(n!==undefined||r!==undefined)throw hs("Bad Promise constructor");n=e,r=t}),this.resolve=de(n),this.reject=de(r)},ys={f:function(e){return new gs(e)}},vs=n.set,$u=Gu.CONSTRUCTOR,ms=Gu.REJECTION_EVENT,m=Gu.SUBCLASSING,bs=j.getterFor("Promise"),ws=j.set,h=is&&is.prototype,Es=is,Rs=h,Os=P.TypeError,Ss=P.document,Ts=P.process,xs=ys.f,As=xs,Ps=!!(Ss&&Ss.createEvent&&P.dispatchEvent),Is=function(e){var t;return!(!k(e)||!R(t=e.then))&&t},Ls=function(e,t){var n,r,o,i,a=t.value,u=1==t.state,s=u?e.ok:e.fail,c=e.resolve,f=e.reject,l=e.domain;try{s?(u||(2===t.rejection&&(i=t,L(vs,P,function(){var e=i.facade;ba?Ts.emit("rejectionHandled",e):Cs("rejectionhandled",e,i.value)})),t.rejection=1),!0===s?n=a:(l&&l.enter(),n=s(a),l&&(l.exit(),o=!0)),n===e.promise?f(Os("Promise-chain cycle")):(r=Is(n))?L(r,n,c,f):c(n)):f(a)}catch(x){l&&!o&&l.exit(),f(x)}},ks=function(n,o){n.notified||(n.notified=!0,rs(function(){for(var e,r,t=n.reactions;e=t.get();)Ls(e,n);n.notified=!1,o&&!n.rejection&&(r=n,L(vs,P,function(){var e,t=r.facade,n=r.value;if(js(r)&&(e=os(function(){ba?Ts.emit("unhandledRejection",n,t):Cs("unhandledrejection",t,n)}),r.rejection=ba||js(r)?2:1,e.error))throw e.value}))}))},Cs=function(e,t,n){var r;Ps?((r=Ss.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),P.dispatchEvent(r)):r={promise:t,reason:n},!ms&&(t=P["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(x){}}("Unhandled promise rejection",n)},js=function(e){return 1!==e.rejection&&!e.parent},Us=function(t,n,r){return function(e){t(n,e,r)}},Ns=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,ks(e,!0))},_s=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw Os("Promise can't be resolved itself");var r=Is(n);r?rs(function(){var e={done:!1};try{L(r,n,Us(_s,e,t),Us(Ns,e,t))}catch(x){Ns(e,x,t)}}):(t.value=n,t.state=1,ks(t,!1))}catch(x){Ns({done:!1},x,t)}}};if($u&&(Rs=(Es=function(e){yr(this,Rs),de(e),L(ss,this);var t=bs(this);try{e(Us(_s,t),Us(Ns,t))}catch(x){Ns(t,x)}}).prototype,(ss=function(e){ws(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new es,rejection:!1,state:0,value:undefined})}).prototype=v(Rs,"then",function(e,t){var n=bs(this),r=xs(_u(this,Es));return n.parent=!0,r.ok=!R(e)||e,r.fail=R(t)&&t,r.domain=ba?Ts.domain:undefined,0==n.state?n.reactions.add(r):rs(function(){Ls(r,n)}),r.promise}),cs=function(){var e=new ss,t=bs(e);this.promise=e,this.resolve=Us(_s,t),this.reject=Us(Ns,t)},ys.f=xs=function(e){return e===Es||void 0===e?new cs:As(e)},R(is))&&h!==Object.prototype){fs=h.then,m||v(h,"then",function(e,t){var n=this;return new Es(function(e,t){L(fs,n,e,t)}).then(e,t)},{unsafe:!0});try{delete h.constructor}catch(x){}Pn&&Pn(h,Rs)}U({global:!0,constructor:!0,wrap:!0,forced:$u},{Promise:Es}),Rn(Es,"Promise",!1),Cu("Promise");var Ms,Bs,qs,Xu=Gu.CONSTRUCTOR||!o(function(e){is.all(e).then(undefined,function(){})}),g=(U({target:"Promise",stat:!0,forced:Xu},{all:function(e){var u=this,t=ys.f(u),s=t.resolve,c=t.reject,n=os(function(){var r=de(u.resolve),o=[],i=0,a=1;hr(e,function(e){var t=i++,n=!1;a++,L(r,u,e).then(function(e){n||(n=!0,o[t]=e,--a)||s(o)},c)}),--a||s(o)});return n.error&&c(n.value),t.promise}}),Gu.CONSTRUCTOR),u=is&&is.prototype,m=(U({target:"Promise",proto:!0,forced:g,real:!0},{"catch":function(e){return this.then(undefined,e)}}),R(is)&&(n=re("Promise").prototype["catch"],u["catch"]!==n)&&v(u,"catch",n,{unsafe:!0}),U({target:"Promise",stat:!0,forced:Xu},{race:function(e){var n=this,r=ys.f(n),o=r.reject,t=os(function(){var t=de(n.resolve);hr(e,function(e){L(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}}),U({target:"Promise",stat:!0,forced:Gu.CONSTRUCTOR},{reject:function(e){var t=ys.f(this);return L(t.reject,undefined,e),t.promise}}),Gu.CONSTRUCTOR),Fs=(re("Promise"),U({target:"Promise",stat:!0,forced:m},{resolve:function(e){return e=e,O(t=this),k(e)&&e.constructor===t?e:((0,(t=ys.f(t)).resolve)(e),t.promise);var t}}),window.navigator.userAgent.toLowerCase()),b={},Ds=function(e){return-1!==Fs.indexOf(e)},Hs=(b.macos=function(){return Ds("mac")},b.ios=function(){return b.iphone()||b.ipod()||b.ipad()},b.iphone=function(){return!b.windows()&&Ds("iphone")},b.ipod=function(){return Ds("ipod")},b.ipad=function(){var e="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;return Ds("ipad")||e},b.android=function(){return!b.windows()&&Ds("android")},b.androidPhone=function(){return b.android()&&Ds("mobile")},b.androidTablet=function(){return b.android()&&!Ds("mobile")},b.blackberry=function(){return Ds("blackberry")||Ds("bb10")},b.blackberryPhone=function(){return b.blackberry()&&!Ds("tablet")},b.blackberryTablet=function(){return b.blackberry()&&Ds("tablet")},b.windows=function(){return Ds("windows")},b.windowsPhone=function(){return b.windows()&&Ds("phone")},b.windowsTablet=function(){return b.windows()&&Ds("touch")&&!b.windowsPhone()},b.fxos=function(){return(Ds("(mobile")||Ds("(tablet"))&&Ds(" rv:")},b.fxosPhone=function(){return b.fxos()&&Ds("mobile")},b.fxosTablet=function(){return b.fxos()&&Ds("tablet")},b.meego=function(){return Ds("meego")},b.cordova=function(){return window.cordova&&"file:"===location.protocol},b.nodeWebkit=function(){return"object"===go(window.process)},b.mobile=function(){return b.androidPhone()||b.iphone()||b.ipod()||b.windowsPhone()||b.blackberryPhone()||b.fxosPhone()||b.meego()},b.tablet=function(){return b.ipad()||b.androidTablet()||b.blackberryTablet()||b.windowsTablet()||b.fxosTablet()},b.desktop=function(){return!b.tablet()&&!b.mobile()},b.isIE=function(){return"ActiveXObject"in window},s("iterator")),h=!d(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,r="";return e.pathname="c%20d",n.forEach(function(e,t){n["delete"]("b"),r+=t+e}),!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[Hs]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",undefined).host}),$u=function(e,t,n){return n.get&&ot(n.get,t,{getter:!0}),n.set&&ot(n.set,t,{setter:!0}),We.f(e,t,n)},Ws=function(e,t,n,r){try{return r?t(O(n)[0],n[1]):t(n)}catch(x){fr(e,"throw",x)}},Vs=Array,Gs=function(e){var t=be(e),e=Xt(this),n=arguments.length,r=1<n?arguments[1]:undefined,o=r!==undefined;o&&(r=jt(r,2<n?arguments[2]:undefined));var i,a,u,s,c,f,n=ur(t),l=0;if(!n||this===Vs&&ir(n))for(i=ht(t),a=e?new this(i):Vs(i);l<i;l++)f=o?r(t[l],l):t[l],$n(a,l,f);else for(c=(s=cr(t,n)).next,a=e?new this:[];!(u=L(c,s)).done;l++)f=o?Ws(s,r,[u.value,l],!0):u.value,$n(a,l,f);return a.length=l,a},$s=/[^\0-\u007E]/,Xs=/[.\u3002\uFF0E\uFF61]/g,zs="Overflow: input needs wider integers to process",Ys=RangeError,Js=p(Xs.exec),Ks=Math.floor,Qs=String.fromCharCode,Zs=p("".charCodeAt),ec=p([].join),tc=p([].push),nc=p("".replace),rc=p("".split),oc=p("".toLowerCase),ic=function(e){return e+22+75*(e<26)},ac=function(e){var t,n=[],r=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o,i=Zs(e,n++);55296<=i&&i<=56319&&n<r?56320==(64512&(o=Zs(e,n++)))?tc(t,((1023&i)<<10)+(1023&o)+65536):(tc(t,i),n--):tc(t,i)}return t}(e)).length,o=128,i=0,a=72;for(f=0;f<e.length;f++)(t=e[f])<128&&tc(n,Qs(t));var u=n.length,s=u;for(u&&tc(n,"-");s<r;){for(var c=2147483647,f=0;f<e.length;f++)(t=e[f])>=o&&t<c&&(c=t);var l=s+1;if(c-o>Ks((2147483647-i)/l))throw Ys(zs);for(i+=(c-o)*l,o=c,f=0;f<e.length;f++){if((t=e[f])<o&&2147483647<++i)throw Ys(zs);if(t==o){for(var d=i,p=36;;){var h=p<=a?1:a+26<=p?26:p-a;if(d<h)break;var g=d-h,y=36-h;tc(n,Qs(ic(h+g%y))),d=Ks(g/y),p+=36}tc(n,Qs(ic(d))),a=function(e,t,n){var r=0;for(e=n?Ks(e/700):e>>1,e+=Ks(e/t);455<e;)e=Ks(e/35),r+=36;return Ks(r+36*e/(e+38))}(i,l,s==u),i=0,s++}}i++,o++}return ec(n,"")},uc=Math.floor,sc=function(e,t){var n=e.length,r=uc(n/2);if(n<8){for(var o,i,a=e,u=t,s=a.length,c=1;c<s;){for(o=a[i=c];i&&0<u(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var f=e,l=sc(Yn(e,0,r),t),d=sc(Yn(e,r),t),p=t,h=l.length,g=d.length,y=0,v=0;y<h||v<g;)f[y+v]=y<h&&v<g?p(l[y],d[v])<=0?l[y++]:d[v++]:y<h?l[y++]:d[v++];return f},cc=sc,g=s("iterator"),fc=j.set,lc=j.getterFor("URLSearchParams"),dc=j.getterFor("URLSearchParamsIterator"),pc=Object.getOwnPropertyDescriptor,u=function(e){var t;return I?(t=pc(P,e))&&t.value:P[e]},hc=u("fetch"),gc=u("Request"),yc=u("Headers"),vc=gc&&gc.prototype,n=yc&&yc.prototype,mc=P.RegExp,bc=P.TypeError,wc=P.decodeURIComponent,Ec=P.encodeURIComponent,Rc=p("".charAt),Oc=p([].join),Sc=p([].push),Tc=p("".replace),xc=p([].shift),Ac=p([].splice),Pc=p("".split),Ic=p("".slice),Lc=/\+/g,kc=Array(4),Cc=function(e){try{return wc(e)}catch(x){return e}},jc=function(e){var t,n=Tc(e,Lc," "),r=4;try{return wc(n)}catch(x){for(;r;)n=Tc(n,(t=r--,kc[t-1]||(kc[t-1]=mc("((?:%[\\da-f]{2}){"+t+"})","gi"))),Cc);return n}},Uc=/[!'()~]|%20/g,Nc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_c=function(e){return Nc[e]},Mc=function(e){return Tc(Ec(e),Uc,_c)},Bc=Tn(function(e,t){fc(this,{type:"URLSearchParamsIterator",iterator:cr(lc(e).entries),kind:t})},"Iterator",function(){var e=dc(this),t=e.kind,e=e.iterator.next(),n=e.value;return e.done||(e.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),e},!0),qc=function(e){this.entries=[],this.url=null,e!==undefined&&(k(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Rc(e,0)?Ic(e,1):e:S(e)))},Xu=(qc.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,a,u=ur(e);if(u)for(n=(t=cr(e,u)).next;!(r=L(n,t)).done;){if(o=(r=cr(O(r.value))).next,(i=L(o,r)).done||(a=L(o,r)).done||!L(o,r).done)throw bc("Expected sequence with length 2");Sc(this.entries,{key:S(i.value),value:S(a.value)})}else for(var s in e)C(e,s)&&Sc(this.entries,{key:s,value:S(e[s])})},parseQuery:function(e){if(e)for(var t,n=Pc(e,"&"),r=0;r<n.length;)(t=n[r++]).length&&(t=Pc(t,"="),Sc(this.entries,{key:jc(xc(t)),value:jc(Oc(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Sc(n,Mc(e.key)+"="+Mc(e.value));return Oc(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},function(){yr(this,Fc);var e=0<arguments.length?arguments[0]:undefined;fc(this,new qc(e))}),Fc=Xu.prototype;Lr(Fc,{append:function(e,t){Ra(arguments.length,2);var n=lc(this);Sc(n.entries,{key:S(e),value:S(t)}),n.updateURL()},"delete":function(e){Ra(arguments.length,1);for(var t=lc(this),n=t.entries,r=S(e),o=0;o<n.length;)n[o].key===r?Ac(n,o,1):o++;t.updateURL()},get:function(e){Ra(arguments.length,1);for(var t=lc(this).entries,n=S(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Ra(arguments.length,1);for(var t=lc(this).entries,n=S(e),r=[],o=0;o<t.length;o++)t[o].key===n&&Sc(r,t[o].value);return r},has:function(e){Ra(arguments.length,1);for(var t=lc(this).entries,n=S(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Ra(arguments.length,1);for(var n,r=lc(this),o=r.entries,i=!1,a=S(e),u=S(t),s=0;s<o.length;s++)(n=o[s]).key===a&&(i?Ac(o,s--,1):(i=!0,n.value=u));i||Sc(o,{key:a,value:u}),r.updateURL()},sort:function(){var e=lc(this);cc(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=lc(this).entries,r=jt(e,1<arguments.length?arguments[1]:undefined),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new Bc(this,"keys")},values:function(){return new Bc(this,"values")},entries:function(){return new Bc(this,"entries")}},{enumerable:!0}),v(Fc,g,Fc.entries,{name:"entries"}),v(Fc,"toString",function(){return lc(this).serialize()},{enumerable:!0}),Rn(Xu,"URLSearchParams"),U({global:!0,constructor:!0,forced:!h},{URLSearchParams:Xu}),!h&&R(yc)&&(Ms=p(n.has),Bs=p(n.set),qs=function(e){if(k(e)){var t,n=e.body;if("URLSearchParams"===Bt(n))return t=e.headers?new yc(e.headers):new yc,Ms(t,"content-type")||Bs(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),sn(e,{body:W(0,S(n)),headers:W(0,t)})}return e},R(hc)&&U({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return hc(e,1<arguments.length?qs(arguments[1]):{})}}),R(gc))&&((vc.constructor=Gu=function(e){return yr(this,vc),new gc(e,1<arguments.length?qs(arguments[1]):{})}).prototype=vc,U({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Gu}));var Dc,m={URLSearchParams:Xu,getState:lc},Hc=Ge.codeAt,Wc=j.set,Vc=j.getterFor("URL"),Gc=m.URLSearchParams,$c=m.getState,u=P.URL,Xc=P.TypeError,zc=P.parseInt,Yc=Math.floor,Jc=Math.pow,Kc=p("".charAt),Qc=p(/./.exec),Zc=p([].join),ef=p(1..toString),tf=p([].pop),nf=p([].push),rf=p("".replace),of=p([].shift),af=p("".split),uf=p("".slice),sf=p("".toLowerCase),cf=p([].unshift),ff=/[a-z]/i,lf=/[\d+-.a-z]/i,df=/\d/,pf=/^0x/i,hf=/^[0-7]+$/,gf=/^\d+$/,yf=/^[\da-f]+$/i,vf=/[\0\t\n\r #%/:<>?@[\\\]^|]/,mf=/[\0\t\n\r #/:<>?@[\\\]^|]/,bf=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,wf=/[\t\n\r]/g,Ef=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)cf(t,e%256),e=Yc(e/256);return Zc(t,".")}if("object"!=typeof e)return e;for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(n<o&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return n<o&&(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+=ef(e[n],16),n<7&&(t+=":")));return"["+t+"]"},Rf={},Of=a({},Rf,{" ":1,'"':1,"<":1,">":1,"`":1}),Sf=a({},Of,{"#":1,"?":1,"{":1,"}":1}),Tf=a({},Sf,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),xf=function(e,t){var n=Hc(e,0);return 32<n&&n<127&&!C(t,e)?e:encodeURIComponent(e)},Af={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pf=function(e,t){return 2==e.length&&Qc(ff,Kc(e,0))&&(":"==(e=Kc(e,1))||!t&&"|"==e)},If=function(e){return 1<e.length&&Pf(uf(e,0,2))&&(2==e.length||"/"===(e=Kc(e,2))||"\\"===e||"?"===e||"#"===e)},Lf={},kf={},Cf={},jf={},Uf={},Nf={},_f={},Mf={},Bf={},qf={},Ff={},Df={},Hf={},Wf={},Vf={},Gf={},$f={},Xf={},zf={},Yf={},Jf={},Kf=function(e,t,n){var r,o,e=S(e);if(t){if(o=this.parse(e))throw Xc(o);this.searchParams=null}else{if(n!==undefined&&(r=new Kf(n,!0)),o=this.parse(e,null,r))throw Xc(o);(t=$c(new Gc)).bindURL(this),this.searchParams=t}},Qf=(Kf.prototype={type:"URL",parse:function(e,t,n){var r,o,i,a,u=this,s=t||Lf,c=0,f="",l=!1,d=!1,p=!1;for(e=S(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=rf(e,bf,"")),e=rf(e,wf,""),r=Gs(e);c<=r.length;){switch(o=r[c],s){case Lf:if(!o||!Qc(ff,o)){if(t)return"Invalid scheme";s=Cf;continue}f+=sf(o),s=kf;break;case kf:if(o&&(Qc(lf,o)||"+"==o||"-"==o||"."==o))f+=sf(o);else{if(":"!=o){if(t)return"Invalid scheme";f="",s=Cf,c=0;continue}if(t&&(u.isSpecial()!=C(Af,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&Af[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?s=Wf:u.isSpecial()&&n&&n.scheme==u.scheme?s=jf:u.isSpecial()?s=Mf:"/"==r[c+1]?(s=Uf,c++):(u.cannotBeABaseURL=!0,nf(u.path,""),s=zf)}break;case Cf:if(!n||n.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==o){u.scheme=n.scheme,u.path=Yn(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,s=Jf;break}s="file"==n.scheme?Wf:Nf;continue;case jf:if("/"!=o||"/"!=r[c+1]){s=Nf;continue}s=Bf,c++;break;case Uf:if("/"==o){s=qf;break}s=Xf;continue;case Nf:if(u.scheme=n.scheme,o==Dc)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=Yn(n.path),u.query=n.query;else if("/"==o||"\\"==o&&u.isSpecial())s=_f;else if("?"==o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=Yn(n.path),u.query="",s=Yf;else{if("#"!=o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=Yn(n.path),u.path.length--,s=Xf;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=Yn(n.path),u.query=n.query,u.fragment="",s=Jf}break;case _f:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,s=Xf;continue}s=qf}else s=Bf;break;case Mf:if(s=Bf,"/"!=o||"/"!=Kc(f,c+1))continue;c++;break;case Bf:if("/"==o||"\\"==o)break;s=qf;continue;case qf:if("@"==o){l&&(f="%40"+f);for(var l=!0,h=Gs(f),g=0;g<h.length;g++){var y=h[g];":"!=y||p?(y=xf(y,Tf),p?u.password+=y:u.username+=y):p=!0}f=""}else if(o==Dc||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(l&&""==f)return"Invalid authority";c-=Gs(f).length+1,f="",s=Ff}else f+=o;break;case Ff:case Df:if(t&&"file"==u.scheme){s=Gf;continue}if(":"!=o||d){if(o==Dc||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==f)return"Invalid host";if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(i=u.parseHost(f))return i;if(f="",s=$f,t)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(i=u.parseHost(f))return i;if(f="",s=Hf,t==Df)return}break;case Hf:if(!Qc(df,o)){if(o==Dc||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=f){var v=zc(f,10);if(65535<v)return"Invalid port";u.port=u.isSpecial()&&v===Af[u.scheme]?null:v,f=""}if(t)return;s=$f;continue}return"Invalid port"}f+=o;break;case Wf:if(u.scheme="file","/"==o||"\\"==o)s=Vf;else{if(!n||"file"!=n.scheme){s=Xf;continue}if(o==Dc)u.host=n.host,u.path=Yn(n.path),u.query=n.query;else if("?"==o)u.host=n.host,u.path=Yn(n.path),u.query="",s=Yf;else{if("#"!=o){If(Zc(Yn(r,c),""))||(u.host=n.host,u.path=Yn(n.path),u.shortenPath()),s=Xf;continue}u.host=n.host,u.path=Yn(n.path),u.query=n.query,u.fragment="",s=Jf}}break;case Vf:if("/"==o||"\\"==o){s=Gf;break}n&&"file"==n.scheme&&!If(Zc(Yn(r,c),""))&&(Pf(n.path[0],!0)?nf(u.path,n.path[0]):u.host=n.host),s=Xf;continue;case Gf:if(o==Dc||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Pf(f))s=Xf;else{if(""==f){if(u.host="",t)return}else{if(i=u.parseHost(f))return i;if("localhost"==u.host&&(u.host=""),t)return;f=""}s=$f}continue}f+=o;break;case $f:if(u.isSpecial()){if(s=Xf,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Dc&&(s=Xf,"/"!=o))continue}else u.fragment="",s=Jf;else u.query="",s=Yf;break;case Xf:if(o==Dc||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(v=sf(f))||"%2e."===v||".%2e"===v||"%2e%2e"===v?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||nf(u.path,"")):"."===(a=f)||"%2e"===sf(a)?"/"==o||"\\"==o&&u.isSpecial()||nf(u.path,""):("file"==u.scheme&&!u.path.length&&Pf(f)&&(u.host&&(u.host=""),f=Kc(f,0)+":"),nf(u.path,f)),f="","file"==u.scheme&&(o==Dc||"?"==o||"#"==o))for(;1<u.path.length&&""===u.path[0];)of(u.path);"?"==o?(u.query="",s=Yf):"#"==o&&(u.fragment="",s=Jf)}else f+=xf(o,Sf);break;case zf:"?"==o?(u.query="",s=Yf):"#"==o?(u.fragment="",s=Jf):o!=Dc&&(u.path[0]+=xf(o,Rf));break;case Yf:t||"#"!=o?o!=Dc&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":xf(o,Rf)):(u.fragment="",s=Jf);break;case Jf:o!=Dc&&(u.fragment+=xf(o,Of))}c++}},parseHost:function(o){var e,t,n;if("["==Kc(o,0))return"]"==Kc(o,o.length-1)&&(e=function(e){var t,n,r,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,d=function(){return Kc(e,l)};if(":"==d()){if(":"!=Kc(e,1))return;l+=2,f=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&Qc(yf,d());)t=16*t+zc(d(),16),l++,n++;if("."==d()){if(0==n)return;if(l-=n,6<c)return;for(r=0;d();){if(o=null,0<r){if(!("."==d()&&r<4))return;l++}if(!Qc(df,d()))return;for(;Qc(df,d());){if(i=zc(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(255<o)return;l++}s[c]=256*s[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(l++,!d())return}else if(d())return;s[c++]=t}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&0<a;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!=c)return;return s}(uf(o,1,-1)))?void(this.host=e):"Invalid host";if(this.isSpecial())return o=function(){for(var e,t=[],n=rc(nc(oc(o),Xs,"."),"."),r=0;r<n.length;r++)e=n[r],tc(t,Js($s,e)?"xn--"+ac(e):e);return ec(t,".")}(),Qc(vf,o)||null===(e=function(e){var t,n,r,o,i,a,u,s=af(e,".");if(s.length&&""==s[s.length-1]&&s.length--,4<(t=s.length))return e;for(n=[],r=0;r<t;r++){if(""==(o=s[r]))return e;if(i=10,1<o.length&&"0"==Kc(o,0)&&(i=Qc(pf,o)?16:8,o=uf(o,8==i?1:2)),""===o)a=0;else{if(!Qc(10==i?gf:8==i?hf:yf,o))return e;a=zc(o,i)}nf(n,a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=Jc(256,5-t))return null}else if(255<a)return null;for(u=tf(n),r=0;r<n.length;r++)u+=n[r]*Jc(256,3-r);return u}(o))?"Invalid host":void(this.host=e);if(Qc(mf,o))return"Invalid host";for(e="",t=Gs(o),n=0;n<t.length;n++)e+=xf(t[n],Rf);this.host=e},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return C(Af,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Pf(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,u=e.query,s=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=Ef(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+Zc(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(e){e=this.parse(e);if(e)throw Xc(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Qf(e.path[0]).origin}catch(x){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Ef(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(S(e)+":",Lf)},getUsername:function(){return this.username},setUsername:function(e){var t=Gs(S(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=xf(t[n],Tf)}},getPassword:function(){return this.password},setPassword:function(e){var t=Gs(S(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=xf(t[n],Tf)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Ef(e):Ef(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ff)},getHostname:function(){var e=this.host;return null===e?"":Ef(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Df)},getPort:function(){var e=this.port;return null===e?"":S(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=S(e))?this.port=null:this.parse(e,Hf))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Zc(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,$f))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=S(e))?this.query=null:("?"==Kc(e,0)&&(e=uf(e,1)),this.query="",this.parse(e,Yf)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=S(e))?("#"==Kc(e,0)&&(e=uf(e,1)),this.fragment="",this.parse(e,Jf)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=yr(this,Zf),n=1<Ra(arguments.length,1)?arguments[1]:undefined,e=Wc(t,new Kf(e,!1,n));I||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),Zf=Qf.prototype,g=function(e,t){return{get:function(){return Vc(this)[e]()},set:t&&function(e){return Vc(this)[t](e)},configurable:!0,enumerable:!0}};function el(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(e){return(e^(16*Math.random()&15)>>e/4).toString(16)})}I&&($u(Zf,"href",g("serialize","setHref")),$u(Zf,"origin",g("getOrigin")),$u(Zf,"protocol",g("getProtocol","setProtocol")),$u(Zf,"username",g("getUsername","setUsername")),$u(Zf,"password",g("getPassword","setPassword")),$u(Zf,"host",g("getHost","setHost")),$u(Zf,"hostname",g("getHostname","setHostname")),$u(Zf,"port",g("getPort","setPort")),$u(Zf,"pathname",g("getPathname","setPathname")),$u(Zf,"search",g("getSearch","setSearch")),$u(Zf,"searchParams",g("getSearchParams")),$u(Zf,"hash",g("getHash","setHash"))),v(Zf,"toJSON",function(){return Vc(this).serialize()},{enumerable:!0}),v(Zf,"toString",function(){return Vc(this).serialize()},{enumerable:!0}),u&&(n=u.createObjectURL,Gu=u.revokeObjectURL,n&&v(Qf,"createObjectURL",jt(n,u)),Gu)&&v(Qf,"revokeObjectURL",jt(Gu,u)),Rn(Qf,"URL"),U({global:!0,constructor:!0,forced:!h,sham:!I},{URL:Qf}),Oi("match",function(r,u,s){return[function(e){var t=Z(this),n=K(e)?undefined:pe(e,r);return n?L(n,e,t):new RegExp(e)[r](S(t))},function(e){var t=O(this),n=S(e),e=s(u,t,n);if(e.done)return e.value;if(!t.global)return ji(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=ji(t,n));){var a=S(a[0]);""===(o[i]=a)&&(t.lastIndex=Ti(n,pt(t.lastIndex),r)),i++}return 0===i?null:o}]});var tl={generateTraceId:rl(16),generateSpanId:rl(8)},nl=Array(32);function rl(t){return function(){for(var e=0;e<2*t;e++)nl[e]=Math.floor(16*Math.random())+48,58<=nl[e]&&(nl[e]+=39);return String.fromCharCode.apply(null,nl.slice(0,2*t))}}var ol,il,al,ul,sl,cl,fl,ll={sw8:function(e){e=e.split("-")[1];return e?atob(e):""},traceparent:function(e){return e.split("-")[1]},b3:function(e){return e.split("-")[0]},"sentry-trace":function(e){return e.split("-")[0]}},dl=function(e){var t,n="";return n="object"===go(e)&&(t=(e=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=e[r]||"function"==typeof e.get&&e.get(r);if(o)return[r,o]}return["",""]}(e,Object.keys(ll)))[0],e=e[1],t)?ll[t](e):n},pl=(El.prototype.generate=function(e,t){if(void 0===t&&(t={}),this.url=e,!this.isUrlIgnored()&&this.isUrlInTraceUrls()&&this.traceType){switch(this.traceType){case"traceparent":this.traceId=this.createTraceparent();break;case"b3":this.traceId=this.createB3();break;case"sw8":this.traceId=this.createSw8();break;case"sentry-trace":this.traceId=this.createSentryTrace();break;default:return console.warn("this trace key "+this.traceType+" is not supported"),void(this.traceId="")}return t[this.traceType]&&(this.traceId=t[this.traceType]),{name:this.traceType,value:this.traceId}}},El.prototype.createTraceparent=function(){var e=tl.generateSpanId();return"00-"+tl.generateTraceId()+"-"+e+"-0"+Number(1).toString(16)},El.prototype.createB3=function(){var e=tl.generateSpanId();return tl.generateTraceId()+"-"+e+"-1"},El.prototype.createSw8=function(){var e=new URL(location.href),t=ga(),n=ga();return"1-"+String(btoa(n))+"-"+String(btoa(t))+"-1-"+String(btoa("aegis"))+"-"+String(btoa("1.37.5"))+"-"+String(btoa(encodeURI(location.pathname)))+"-"+String(btoa(e.host))},El.prototype.createSentryTrace=function(){var e=el().substring(16);return el()+"-"+e+"-1"},El.prototype.isUrlIgnored=function(){if(Array.isArray(this.ignoreUrls)&&0!==this.ignoreUrls.length)for(var e=0,t=this.ignoreUrls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}return!1},El.prototype.isUrlInTraceUrls=function(){if(!this.urls)return!0;if(Array.isArray(this.urls)){if(0===this.urls.length)return!1;for(var e=0,t=this.urls;e<t.length;e++){var n=t[e];if(this.urlMatches(this.url,n))return!0}}return!1},El.prototype.urlMatches=function(e,t){return"string"==typeof t?e===t:!!e.match(t)},El),hl=!1,gl=[],yl=/^\/[^/]/,vl=!1,ml=[],bl=function(r,e,o){return null!=e&&e.length&&"object"===go(r)?e.reduce(function(e,t){var n=r instanceof Headers?r.get(t):r[t];return n?e+(""===e?"\n":"\n\n")+o+" header "+t+": "+n:e},""):""},Xu=(new l({name:"reportApiSpeed"}),new l({name:"reportApiSpeed",override:!1,onNewAegis:function(e){var t,n;this.override||(null!=(n=e.config.api)&&n.injectTraceHeader&&(this.traceRequestHeader=new pl(n.injectTraceHeader,null!=(t=null==n?void 0:n.injectTraceIgnoreUrls)?t:[],null==n?void 0:n.injectTraceUrls)),this.override=!0,this.overrideFetch(e.config,e),this.overrideXhr(e.config,e))},getRequestType:function(e,t,n){void 0===t&&(t="");var r,o,e="function"==typeof(null==(o=e.api)?void 0:o.resourceTypeHandler)?null==(o=e.api)?void 0:o.resourceTypeHandler(n):"";return-1===oi.indexOf(e)&&(r=void 0===t?"":t,o=(void 0===n?"":n).split("?")[0],e=ia.test(o)||oa.some(function(e){return-1!==String(r).indexOf(e)})?"static":"fetch"),e},overrideFetch:function(y,v){var m=this,e=y.api,e={name:this.name,traceRequestHeader:null!=e&&e.injectTraceHeader?this.traceRequestHeader:null,then:function(l,d,p,h){var e,g;va(p,y.hostUrl)||(e=l.headers?l.headers.get("content-type"):"","fetch"===(g=m.getRequestType(y,e,p))?l.clone().text().then(function(n){var e,r=l.status<=0||400<=l.status,t=(null==(t=y.api)?void 0:t.reqHeaders)||[],o=bl(null==h?void 0:h.headers,t,"req"),t=(null==(t=y.api)?void 0:t.resHeaders)||[],i=bl(l.headers,t,"res"),a=dl(null==h?void 0:h.headers),t=ua(n,y.api,{url:p,ctx:l,payload:null==h?void 0:h.body}),u=t.code,s=t.isErr,t=null==(t=y.api)?void 0:t.apiDetail,c=t?sa(null==h?void 0:h.body,null==(e=y.api)?void 0:e.reqParamHandler,{url:p}):"",f=t?sa(n,null==(e=y.api)?void 0:e.resBodyHandler,{url:p,ctx:l}):"";setTimeout(function(){var e=m.getPerformanceEntryByUrl(y,{url:p,duration:d,type:g,status:l.status||0,method:(null==h?void 0:h.method)||"get"}),t=(r?"FETCH_ERROR: "+n+" \n\n":"")+"fetch req url: "+p+" \n \nres status: "+(l.status||0)+" \n \nres duration: "+e.duration+"ms \n \nreq method: "+((null==h?void 0:h.method)||"get")+" \n \nres retcode: "+u+"\n \nreq param: "+c+"\n \nres data: "+f+"\n "+o+"\n "+i;e.payload=null==h?void 0:h.body,e.ret=u,e.isErr=+s,m.publishNormalLog({msg:t,level:r?A.AJAX_ERROR:s?A.RET_ERROR:A.API_RESPONSE,code:u,trace:a},v),m.publishSpeed(e,v)},0)}):setTimeout(function(){var e=m.getPerformanceEntryByUrl(y,{url:p,duration:d,type:g,status:l.status||0,method:(null==h?void 0:h.method)||"get"});e.type="static",e.urlQuery=ta(p,!0),m.publishSpeed(e,v)},0))},"catch":function(t,n,r,o){var i,e,a,u,s;throw va(r,y.hostUrl)||(i=m.getRequestType(y,"",r),e=(null==(e=y.api)?void 0:e.reqHeaders)||[],a=bl(null==o?void 0:o.headers,e,"req"),u=dl(null==o?void 0:o.headers),s=null!=(e=y.api)&&e.apiDetail?sa(null==o?void 0:o.body,null==(e=y.api)?void 0:e.reqParamHandler,{url:r}):"",setTimeout(function(){var e=m.getPerformanceEntryByUrl(y,{url:r,duration:n,type:i,status:0,method:(null==o?void 0:o.method)||"get"}),e=(m.publishSpeed(e,v),"AJAX_ERROR: "+t+"\n \nreq url: "+r+"\n \nres status: 0\n \nres duration: "+e.duration+"ms\n \nreq method: "+((null==o?void 0:o.method)||"get")+"\n \nreq param: "+s+"\n "+a);m.publishNormalLog({msg:e,level:A.AJAX_ERROR,code:-400,trace:u},v)},0)),t}},c=(this.hackFetchOptions=e,this.hackFetchOptions);if(ml.find(function(e){return e.name===c.name}))throw new Error("name '"+c.name+"' is already in hackFetch option list");ml.push(c),!vl&&window.fetch&&(vl=!0,ul=window.fetch,window.fetch=function(e,o){void 0===o&&(o={});var t,n,i="string"==typeof e?e:null==e?void 0:e.url,r=(yl.test(i)&&(i=""+location.origin+i),(c||{}).traceRequestHeader);r&&(t=(o||{}).headers,n=(r=r.generate(i,t=void 0===t?{}:t)||{}).name,r=r.value)&&n&&(o.headers=Object.assign(t,((t={})[n]=r,t)));for(var a=0;a<ml.length;a++){var u=ml[a];try{"function"==typeof u.beforeFetch&&u.beforeFetch(i,o)}catch(W){}}var s=Date.now();return ul(e,o).then(function(e){for(var t=e.clone(),n=0;n<ml.length;n++){var r=ml[n];try{"function"==typeof r.then&&r.then(t,Date.now()-s,i,o)}catch(W){}}return t})["catch"](function(e){for(var t=0;t<ml.length;t++){var n=ml[t];try{"function"==typeof n["catch"]&&n["catch"](e,Date.now()-s,i,o)}catch(W){}}throw e})})},overrideXhr:function(S,T){var n,x=this,e={name:this.name,send:function(R,O){var e,t,n=Date.now();((null==S?void 0:S.api)||{}).injectTraceHeader&&(e=(t=x.traceRequestHeader.generate(R.aegisUrl)||{}).name,t=t.value,e)&&t&&R.setRequestHeader(e,t),R.addEventListener("loadend",function(){var m,b,e,w,E=R.aegisUrl||"";va(E,S.hostUrl)||"abort"===R.failType||(m="",(R.failType||!R.status||400<=R.status)&&(m=R.failType||"failed"),b=Date.now()-n,e=R.getResponseHeader("content-type"),w=x.getRequestType(S,e,E),setTimeout(function(){var e,r=x.getPerformanceEntryByUrl(S,{url:E,duration:b,type:w,status:R.status,method:R.aegisMethod||"get"});if("fetch"===w){var t=(null==(t=S.api)?void 0:t.reqHeaders)||[],o=bl(R.aegisXhrReqHeader,t,"req"),t=(null==(e=S.api)?void 0:e.resHeaders)||[],n=R.getAllResponseHeaders().split("\r\n").reduce(function(e,t){t=t.split(": ");return t[0]&&t[1]&&(e[t[0]]=t[1]),e},{}),i=bl(n,t,"res"),a=dl(R.aegisXhrReqHeader),t=null==(n=S.api)?void 0:n.apiDetail,u=t?sa(O,null==(n=S.api)?void 0:n.reqParamHandler,{url:E}):"",s=t?sa(R.response,null==(n=S.api)?void 0:n.resBodyHandler,{url:E}):"";try{var c,f,l,d,p=R.response,h=S.api,g={url:E,ctx:R,payload:O},y=function(e){var t=e.code,e=e.isErr,n=(m?"AJAX_ERROR: request "+m+" \n\n":"")+"fetch req url: "+E+" \n \nres status: "+r.status+"\n \nres duration: "+r.duration+"ms\n \nreq method: "+r.method+"\n \nres retcode: "+t+"\n \nreq param: "+u+"\n \nres data: "+s+"\n "+o+"\n "+i;r.ret=t,r.isErr=+e,r.payload=O,x.publishNormalLog({msg:n,level:m?A.AJAX_ERROR:e?A.RET_ERROR:A.API_RESPONSE,code:t,trace:a},T),x.publishSpeed(r,T)};try{if("function"==typeof(null==h?void 0:h.retCodeHandlerAsync))return void h.retCodeHandlerAsync(p,null==g?void 0:g.url,null==g?void 0:g.ctx,function(e){var t=e.code,e=e.isErr;null!=y&&y({code:void 0===t?"unknown":t,isErr:e})});if("function"==typeof(null==h?void 0:h.retCodeHandler))return void(l=(f=h.retCodeHandler(p,null==g?void 0:g.url,null==g?void 0:g.ctx,null==g?void 0:g.payload)||{}).code,d=f.isErr,null!=y&&y({code:void 0===l?"unknown":l,isErr:d}));if(!(p="string"==typeof p?JSON.parse(p):p))return void(null!=y&&y({code:"unknown",isErr:!1}));"function"==typeof(null==(c=null==h?void 0:h.ret)?void 0:c.join)&&(aa=[].concat(h.ret.map(function(e){return e.toLowerCase()})));var v=Object.getOwnPropertyNames(p).filter(function(e){return-1!==aa.indexOf(e.toLowerCase())});if(v.length)return void("未知"!==(l=p[v[0]])&&""!==l||(l="unknown"),null!=y&&y({code:""+l,isErr:0!==l&&"0"!==l&&"unknown"!==l}));null!=y&&y({code:"unknown",isErr:!1})}catch(e){null!=y&&y({code:"unknown",isErr:!1})}}catch(J){r.ret="unknown",x.publishSpeed(r,T)}}else r.type="static",r.urlQuery=ta(E,!0),x.publishSpeed(r,T)},0))}),["abort","error","timeout"].map(function(e){R.addEventListener(e,function(){R.failType=e})})}};this.hackXHROptions=e,n=this.hackXHROptions,gl.find(function(e){return e.name===n.name})||(gl.push(n),!hl&&window.XMLHttpRequest&&(ol=window.XMLHttpRequest.prototype.send,il=window.XMLHttpRequest.prototype.open,al=window.XMLHttpRequest.prototype.setRequestHeader,hl=!0,window.XMLHttpRequest.prototype.open=function(){this.aegisMethod=arguments[0];var e=arguments[1];if(yl.test(e)&&(e=""+location.origin+e),this.aegisUrl=e,this.aegisXhrStartTime=Date.now(),this.sendByAegis)b.isIE()||(this.timeout=5e3);else for(var t=0;t<gl.length;t++){var n=gl[t];try{"function"==typeof n.open&&n.open(this)}catch(x){}}return il.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var e,t=arguments[0],n=arguments[1];if(this.aegisXhrReqHeader=null!=(e=this.aegisXhrReqHeader)?e:{},!(-1<["traceparent","b3","sw8","sentry-trace"].indexOf(t)&&(this.aegisXhrReqHeader[t]||(arguments[1]=n),this.aegisXhrReqHeader[t])))return this.aegisXhrReqHeader[t]=arguments[1],al.apply(this,arguments)},window.XMLHttpRequest.prototype.send=function(){if(!this.sendByAegis)for(var e=0;e<gl.length;e++){var t=gl[e];try{"function"==typeof t.send&&t.send(this,arguments[0])}catch(n){}}return ol.apply(this,arguments)}))},getPerformanceEntryByUrl:function(e,t){if(null!=(e=e.api)&&e.usePerformanceTiming&&"string"==typeof t.url){e=null==(e=performance.getEntriesByName(t.url))?void 0:e.pop();if(e)return{url:t.url,isHttps:ra(t.url),method:t.method,type:t.type,status:t.status,duration:Number(e.duration.toFixed(2)),nextHopProtocol:e.nextHopProtocol||"",domainLookup:ea(e.domainLookupEnd-e.domainLookupStart),connectTime:ea(e.connectEnd-e.connectStart)}}return{url:t.url,isHttps:ra(t.url),method:t.method,type:t.type,status:t.status,duration:Number(t.duration.toFixed(2)),nextHopProtocol:"",domainLookup:zi.number,connectTime:zi.number}},publishSpeed:function(n){var r=this;this.$walk(function(e){var t=r.$getConfig(e);"fetch"===n.type&&t&&"function"==typeof t.urlHandler?e.speedLogPipeline(E(E({},n),{url:ta(t.urlHandler(n.url,n.payload))})):(n.url=ta(n.url),e.speedLogPipeline(n))})},publishNormalLog:function(t){this.$walk(function(e){e.normalLogPipeline(t)})},destroy:function(){var t,n,e;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(t=this.option.hackXHROptions,-1!==(e=gl.findIndex(function(e){return e.name===t.name})))&&gl.splice(e,1),this.option.hackFetchOptions&&(n=this.option.hackFetchOptions,-1!==(e=ml.findIndex(function(e){return e.name===n.name})))&&ml.splice(e,1),this.option.override=!1}})),wl={},Ge=new l({name:"reportBridgeSpeed",override:!1,onNewAegis:function(e){this.override||(this.override=!0,this.overrideBridge(e))},publishSpeed:function(t,n){this.$walk(function(e){e===n&&e.speedLogPipeline(t)})},overrideBridge:function(s){var c=this,f=s.config;f.reportBridgeSpeed&&f.h5Bridge&&f.h5BridgeFunc.length&&f.h5BridgeFunc.forEach(function(e){var u=f.h5Bridge[e];wl[e]=u,f.h5Bridge[e]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],o=e[1],n=e[2],i=e[3],a=Date.now();u(r,o,n,function(e){var t=ua(e,f.api),n=t.code,t=t.isErr,n={url:r+"-"+o,name:r+"-"+o,duration:Date.now()-a,type:"bridge",ret:n,isErr:+t};c.publishSpeed(n,s),i(e)})}})},unHackBridge:function(t){Object.keys(wl).forEach(function(e){wl[e]&&(t.config.h5Bridge[e]=wl[e])}),wl={}},destroy:function(e){this.option.publishSpeed=function(){},this.option.unHackBridge(e),this.option.override=!1}});function El(e,t,n){void 0===n&&(n=null),this.traceType=e,this.ignoreUrls=t,this.urls=n}(m=sl=sl||{})[m.unknown=100]="unknown",m[m.wifi=1]="wifi",m[m.net2g=2]="net2g",m[m.net3g=3]="net3g",m[m.net4g=4]="net4g",m[m.net5g=5]="net5g",m[m.net6g=6]="net6g",(a=cl=cl||{})[a.android=1]="android",a[a.ios=2]="ios",a[a.windows=3]="windows",a[a.macos=4]="macos",a[a.linux=5]="linux",a[a.other=100]="other",(g=fl=fl||{})[g.unknown=100]="unknown",g[g.normal=0]="normal",g[g.weak=1]="weak",g[g.disconnected=2]="disconnected";var Rl,Ol,Sl,Tl,xl,Al,Pl,Il,Ll,kl,Cl,jl,Ul,Nl,$u=new l({name:"device",onNewAegis:function(e){e.extendBean("platform",this.getPlatform()),e.extendBean("netType",sl.unknown),this.getDpi(e),this.refreshNetworkTypeToBean(e),this.refreshNetworkStatusToBean(e)},getDpi:function(e){e.extendBean("vp",Math.round(window.innerWidth)+" * "+Math.round(window.innerHeight)),window.screen&&e.extendBean("sr",Math.round(window.screen.width)+" * "+Math.round(window.screen.height))},getPlatform:function(){var t={android:/\bAndroid\s*([^;]+)/,ios:/\b(iPad|iPhone|iPod)\b.*? OS ([\d_]+)/,windows:/\b(Windows NT)/,macos:/\b(Mac OS)/,linux:/\b(Linux)/i},e=Object.keys(t).find(function(e){return t[e].test(navigator.userAgent)});return e?cl[e]:cl.other},refreshNetworkTypeToBean:function(t){var n=this,e=t.config;e&&("function"==typeof e.getNetworkType?e.getNetworkType:_l)(function(e){sl[e]||(e=sl.unknown),t.extendBean("netType",e),n.NetworkRefreshTimer=setTimeout(function(){n.refreshNetworkTypeToBean(t),clearTimeout(n.NetworkRefreshTimer)},1e4)})},refreshNetworkStatusToBean:function(t){var e,n=this,r=t.config;r&&null!=(e="function"==typeof r.getNetworkStatus?r.getNetworkStatus:e)&&e(function(e){fl[e]===undefined&&(e=fl.unknown),t.extendBean("netStatus",e),n.NetworkStatusRefreshTimer=setTimeout(function(){n.refreshNetworkStatusToBean(t),clearTimeout(n.NetworkStatusRefreshTimer)},1e4)})}}),_l=function(e){var t="",n=navigator.userAgent.match(/NetType\/(\w+)/);n?t=n[1]:navigator.connection&&(t=navigator.connection.effectiveType||navigator.connection.type),e((n=t=t||"unknown",0<=(n=String(n).toLowerCase()).indexOf("4g")?sl.net4g:0<=n.indexOf("wifi")?sl.wifi:0<=n.indexOf("5g")?sl.net5g:0<=n.indexOf("6g")?sl.net6g:0<=n.indexOf("3g")?sl.net3g:0<=n.indexOf("2g")?sl.net2g:sl.unknown))},Ml=window.WebSocket,Bl=[],ql={construct:function(e,t){var a=new e(t[0],t[1]);return a.originSend=a.send,a.addEventListener("error",function(e){var e=(null==e?void 0:e.currentTarget)||{},t=e.url,n=e.readyState;null!=Bl&&Bl.forEach(function(e){e=e.onErr;null!=e&&e({msg:"无法获知具体错误信息,需在浏览器控制台查看!",readyState:n,connectUrl:t})})}),Object.defineProperty(a,"send",{get:function(){return function(e){null!=(t=a.originSend)&&t.call(a,e);var e=a.readyState,t=WebSocket.OPEN,n=WebSocket.CLOSED,r=WebSocket.CONNECTING,o=WebSocket.CLOSING;if(e!==t){var i={readyState:e,connectUrl:a.url};switch(e){case n:Bl.forEach(function(e){e=e.sendErr;null!=e&&e(E({msg:"消息发送失败,连接已关闭!"},i))});break;case r:Bl.forEach(function(e){(0,e.sendErr)(E({msg:"消息发送失败,正在连接中!"},i))});break;case o:Bl.forEach(function(e){(0,e.sendErr)(E({msg:"消息发送失败,连接正在关闭!"},i))})}}}}}),a}},Fl=new l({name:"onError"}),n=Fl=new l({name:"onError",onNewAegis:function(e){this.startListen(e)},startListen:function(o){var e,t,n,r,i=this,a=window.onerror,u=(window.onerror=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=fa(e[0]);Su(n)||i.publishErrorLog({msg:(n||"")+" @ ("+(fa(e[1])||"")+":"+(e[2]||0)+":"+(e[3]||0)+")\n \n"+fa(e[4]||""),level:A.ERROR},o),null!=a&&a.call.apply(a,Zo([window],e))},function(e){e=e&&fa(e.reason);e&&i.publishErrorLog({msg:"PROMISE_ERROR: "+e,level:A.PROMISE_ERROR},o)}),s=(window.addEventListener("unhandledrejection",u),function(e){var t,e=(null==e?void 0:e.target)||(null==e?void 0:e.srcElement);if(e){var n=e.src||e.href||"",e=e.tagName,e=void 0===e?"script":e;if(!(va(t=n,o.config.hostUrl)||-1<window.location.href.indexOf(t))){var r={msg:e+" load fail: "+n,level:A.INFO};if(/\.js$/.test(n))r.level=A.SCRIPT_ERROR;else if(/\.css$/.test(n))r.level=A.CSS_ERROR;else switch(e.toLowerCase()){case"script":r.level=A.SCRIPT_ERROR;break;case"link":r.level=A.CSS_ERROR;break;case"img":r.level=A.IMAGE_ERROR;break;case"audio":case"video":r.level=A.MEDIA_ERROR;break;default:return}i.publishErrorLog(r,o)}}});window.document.addEventListener("error",s,!0),o.lifeCycle.on("destroy",function(){0===Fl.countInstance()&&(window.document.removeEventListener("unhandledrejection",u),window.document.removeEventListener("error",s,!0))}),o.config.websocketHack&&(e={key:o.config.id+"-"+this.name,onErr:function(e){var t;null!=(t=i.publishWsErrorLog)&&t.call(i,e,o)},sendErr:function(e){var t;null!=(t=i.publishWsErrorLog)&&t.call(i,e,o)}},this.hackWebsocketConfig=e,e=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&(t=window.WebSocket,window&&!t.isHack&&(n=new Proxy(WebSocket,ql),t.isHack=!0,window.WebSocket=n),r=e,Bl.find(function(e){return e.key===r.key})||r&&Bl.push(r))},publishErrorLog:function(t,n){this.$walk(function(e){e===n&&e.normalLogPipeline(t)})},publishWsErrorLog:function(e,t){var n=e.connectUrl,r=e.msg,e=e.readyState;this.publishErrorLog({msg:"WEBSOCKET_ERROR: \n connect: "+n+"\n readyState: "+e+"\n msg: "+r,level:A.WEBSOCKET_ERROR},t)},destroy:function(){var t,e;this.option.publishErrorLog=function(){},this.option.hackWebsocketConfig&&(t=this.option.hackWebsocketConfig,window.WebSocket=Ml,-1!==(e=Bl.findIndex(function(e){return e.key===t.key})))&&Bl.splice(e,1)}}),Dl=(new l({name:"pagePerformance"}),function(e,t,n,r){return void 0===n&&(n=15e3),void 0===r&&(r=0),(t=void 0===t?0:t)<=e&&e<=n?e:r}),Gu=new l({name:"pagePerformance",onNewAegis:function(e){Tu()&&(Rl?this.publish(Rl,e):this.startCalcPerformance(e))},publish:function(e,t){var u=this;this.$walk(function(a){a===t&&a.sendPipeline([function(e,t){var n,r=[];for(n in e)r.push(n+"="+e[n]);var o,i=u.$getConfig(a);if(i)return o=-1===(null==(o=a.config.performanceUrl)?void 0:o.indexOf("?"))?"?":"&","function"==typeof i.urlHandler?t({url:a.config.performanceUrl+o+r.join("&")+"&from="+(encodeURIComponent(i.urlHandler())||window.location.href),beanFilter:["from"],type:T.PERFORMANCE,log:e}):t({url:a.config.performanceUrl+o+r.join("&"),type:T.PERFORMANCE,log:e})}],T.PERFORMANCE)(e)})},startCalcPerformance:function(n){var r=this;try{this.getFirstScreenTiming(n,function(e){var t=performance.timing;t&&(Rl={dnsLookup:Dl(t.domainLookupEnd-t.domainLookupStart),tcp:Dl(t.connectEnd-t.connectStart),ssl:Dl(0===t.secureConnectionStart?0:t.requestStart-t.secureConnectionStart),ttfb:Dl(t.responseStart-t.requestStart),contentDownload:Dl(t.responseEnd-t.responseStart),domParse:Dl(t.domInteractive-t.domLoading,0,15e3,1070),resourceDownload:Dl(t.loadEventStart-t.domInteractive,0,15e3,1070),firstScreenTiming:Dl(Math.floor(e),0,15e3,15e3)},(t=n.config).extraPerformanceData&&"{}"!==JSON.stringify(t.extraPerformanceData)&&(t=(e=t.extraPerformanceData).engineInit,e=e.bundleLoad,Rl=E(E({},Rl),{engineInit:Dl(t,0,1e4),bundleLoad:Dl(e,0,1e4)})),r.publish(Rl,n))})}catch(_){}},getFirstScreenTiming:function(e,t){null!=t&&t(0)},isEleInArray:function(e,t){return!(!e||e===document.documentElement)&&(-1!==t.indexOf(e)||this.isEleInArray(e.parentElement,t))},isInFirstScreen:function(e){var t,n;return!(!e||"function"!=typeof e.getBoundingClientRect)&&(e=e.getBoundingClientRect(),t=window.innerHeight,n=window.innerWidth,0<=e.left)&&e.left<n&&0<=e.top&&e.top<t&&0<e.width&&0<e.height},walkAndCount:function(e){var t=0;if(e&&1===e.nodeType){t+=1;var n=e.children;if(null!=n&&n.length)for(var r=0;r<n.length;r++)t+=this.walkAndCount(n[r])}return t}}),Hl=(Al={passive:!0,capture:!0},Pl=new Date,u=function(){xl=[],Sl=-1,Ol=null,Cl(addEventListener)},Il=function(e,t){Ol||(Ol=t,Sl=e,Tl=new Date,Cl(removeEventListener),Ll())},Ll=function(){var t;0<=Sl&&Sl<Tl-Pl&&(t={entryType:"first-input",name:Ol.type,target:Ol.target,cancelable:Ol.cancelable,startTime:Ol.timeStamp,processingStart:Ol.timeStamp+Sl},xl.forEach(function(e){e(t)}),xl=[])},kl=function(e){var t,n,r,o,i,a;e.cancelable&&(t=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(n=t,r=e,o=function(){Il(n,r),a()},i=function(){a()},a=function(){removeEventListener("pointerup",o,Al),removeEventListener("pointercancel",i,Al)},addEventListener("pointerup",o,Al),addEventListener("pointercancel",i,Al)):Il(t,e))},Cl=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,kl,Al)})},jl="hidden"===document.visibilityState?0:1/0,addEventListener("visibilitychange",function q(e){"hidden"===document.visibilityState&&(jl=e.timeStamp,removeEventListener("visibilitychange",q,!0))},!0),u(),self.webVitals={firstInputPolyfill:function(e){xl.push(e),Ll()},resetFirstInputPolyfill:u,get firstHiddenTime(){return jl}},new l({name:"webVitals"}),0),Wl=(Qo(Nl=w,h=Ul=c),Nl.prototype=null===h?Object.create(h):(Ql.prototype=h.prototype,new Ql),w.prototype.getBean=function(t){var n=this;return void 0===t&&(t=[]),""+Object.getOwnPropertyNames(this.bean).filter(function(e){return-1===t.indexOf(e)}).map(function(e){return"from"===e?"from="+n.getCurrentPageUrl():e+"="+n.bean[e]}).join("&")},w.prototype.getCurrentPageUrl=function(){var e=this.config.pageUrl||location.href,e=(e="function"==typeof this.config.urlHandler?this.config.urlHandler():e).slice(0,2048);return encodeURIComponent(e)},w.prototype.ready=function(){var t=this;!function w(){var e,n,r,o;t.reportRequestQueue.length&&(e=t.reportRequestQueue.splice(0,1)[0],n=e.options,r=e.success,o=e.fail,t.$request(n,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==r?void 0:r.apply(n,e)}finally{w()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return null==o?void 0:o.apply(n,e)}finally{w()}}))}(),this.isReportReady=!0},w.prototype.request=function(e,t,n){this.config.reportImmediately||this.isReportReady?this.$request(e,t,n):this.reportRequestQueue.push({options:e,success:t,fail:n})},w.prototype.$request=function(e,t,n){var r,o,i,a;if(e&&"string"==typeof e.url&&""!==e.url&&this.bean.id)return a=e.url,!1!==e.addBean&&(a=a+(-1===a.indexOf("?")?"?":"&")+this.getBean(e.beanFilter)),e.url=a,a=e.method||"get",(e=(o=this.config.onBeforeRequest)?o(e,this):e)?e.url?void((null!=e&&e.sendBeacon||this.sendNow)&&"function"==typeof(null===navigator||void 0===navigator?void 0:navigator.sendBeacon)?navigator.sendBeacon(e.url,e.data):((r=new XMLHttpRequest).sendByAegis=!0,r.addEventListener("readystatechange",function(){4===r.readyState&&(400<=r.status||0===r.status?null!=n&&n(r.response):null!=t&&t(r.response))}),"get"===a.toLocaleLowerCase()?(r.open("get",(o=e.url,i=e.data,"string"!=typeof o?"":"object"===go(i)&&i?(a=Object.getOwnPropertyNames(i).map(function(e){var t=i[e];return e+"="+("string"==typeof t?encodeURIComponent(t):encodeURIComponent(JSON.stringify(t)))}).join("&").replace(/eval/gi,"evaI"),o+(-1===o.indexOf("?")?"?":"&")+a):o)),r.send()):(r.open("post",e.url),e.contentType&&r.setRequestHeader("Content-Type",e.contentType),"string"==typeof e.data&&(e.data=e.data.replace(/eval/gi,"evaI")),r.send(e.data)))):console.warn("Please handle the parameters reasonably, options.url is necessary"):console.warn("Sending request blocked")},w.useAsyncPlugin=function(a,e){var u,s=void 0===(u=(e=void 0===e?{}:e).exportsConstructor)?"aegis-plugin-"+Hl:u,t=e.onAegisInit,c=void 0===t?function(){}:t,t=e.onAegisInitAndPluginLoaded,f=void 0===t?function(){}:t;if(Hl+=1,"string"!=typeof a)throw new TypeError("useAsyncPlugin first param must be string");if("function"!=typeof c||"function"!=typeof f)throw new TypeError("onAegisInit and onAegisInitAndPluginLoaded must be function");this.use(new l({name:"asyncPlugin",onNewAegis:function(t){try{c(t),w.asyncPlugin[a]?f(t,window[w.asyncPlugin[a]]):(e=a,n=s,r=function(e){e||(w.asyncPlugin[a]=s,e=window[s],f(t,e))},o=document.createElement("script"),i=document.head,"function"==typeof n&&(r=n,n=""),o.src=e,o.setAttribute("name",n),o.name=n,o.setAttribute("crossorigin","anonymous"),o.crossorigin="anonymous",o.defer=!0,o.hasLoaded=!1,o.onreadystatechange=function(){o.hasLoaded||o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(o.hasLoaded=!0,"function"==typeof r&&r(!1),setTimeout(function(){i.contains(o)&&i.removeChild(o)}))},o.onload=o.onreadystatechange,o.onerror=function(){"function"==typeof r&&r(!0),setTimeout(function(){i.contains(o)&&i.removeChild(o)})},"complete"===document.readyState?i.appendChild(o):window.addEventListener("load",function(){i.appendChild(o)}))}catch(u){console.log("error on below is caused by "+a+" "),console.error(u)}var e,n,r,o,i}}))},w.prototype.publishPluginsLogs=function(){var e=w.installedPlugins.find(function(e){return"reportAssetSpeed"===e.name});null!=e&&e.option.collectNotReportedLog(this)},w.prototype.uploadLogs=function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t={}),null!=(n=this.lifeCycle)&&n.emit("uploadLogs",e,t)},w.sessionID="session-"+Date.now(),w.asyncPlugin={},w.urls={aegisCollect:"https://aegis.qq.com/collect",flog:"https://cdn-go.cn/vasdev/web_webpersistance_v2/v1.8.2/flog.core.min.js"},w),Vl=new l({name:"offlineLog"}),Gl=function(e,h){var g=[],y=null,v=null,m=function(e){v=e},b=function(e){g=g.concat(e)},w=function(e,t){y={conds:e=void 0===e?{}:e,params:t=void 0===t?{}:t}};Wl.useAsyncPlugin(e,{exportsConstructor:"Flog",onAegisInit:function(e){e.lifeCycle.on("beforeWrite",b),e.lifeCycle.on("uploadLogs",w),e.lifeCycle.on("onConfigChange",m)},onAegisInitAndPluginLoaded:function(r,e){var t,n,o,i,a,u,s=h.dbConfig,s=void 0===s?{}:s,c=h.url,c=void 0===c?Wl.urls.aegisCollect:c,f=h.offlineLogExp,f=void 0===f?3:f,l=h.id,d=h.uin,c=(null!=(t=r.lifeCycle)&&t.remove("beforeWrite",b),null!=(t=r.lifeCycle)&&t.remove("uploadLogs",w),null!=(t=r.lifeCycle)&&t.remove("onConfigChange",m),Object.assign({lookupUrl:c+"/offlineAuto?id="+l,preservedDay:f,id:l,uin:d,aid:(null==(t=r.bean)?void 0:t.aid)||"",beforeRequest:r.config.beforeRequest,afterRequest:r.config.afterRequest},s,{sessionId:Wl.sessionID}));try{var p=new e(c);g.forEach(function(e){p.add(E(E({},e),{level:e.level===A.INFO_ALL?A.INFO:e.level}))}),null!=(n=r.lifeCycle)&&n.on("beforeWrite",function(e){(e=void 0===e?[]:e).forEach(function(e){p.add(E(E({},e),{level:e.level===A.INFO_ALL?A.INFO:e.level}))})}),null!=(o=r.lifeCycle)&&o.on("uploadLogs",function(e,t){var n;void 0===e&&(e={}),void 0===t&&(t={}),p.uploadLogs(Object.assign({id:h.id,uin:h.uin,aid:null==(n=r.bean)?void 0:n.aid},e),t)}),null!=(i=r.lifeCycle)&&i.on("onConfigChange",function(e){p.setConfig(e)}),null!=(a=r.lifeCycle)&&a.on("destroy",function(){0===Vl.countInstance()&&(g.length=0,"function"==typeof((y=null)==p?void 0:p.destroy))&&p.destroy()}),p.on("PERREVENT",function(e){r.sendPipeline([function(e,t){n={msg:fa(e),level:A.INFO};var n=(n=Array.isArray(n)?n:[n]).map(function(t,n){return Object.getOwnPropertyNames(t).map(function(e){return Ki(e)+"["+n+"]="+(t[e]===undefined?"":Ki(t[e]))}).join("&")}).join("&")+(n.length?"&count="+n.length:"");t({type:T.OFFLINE,data:n,contentType:"application/x-www-form-urlencoded",method:"post",addBean:!1,url:h.url+"?id=893&sessionId="+Wl.sessionID+"&uin="+h.uin+"&from="+h.id+"&count=1&version=1.37.5",log:e})}],T.OFFLINE)(e)}),v&&(p.setConfig(v),v=null),y&&(null!=(u=r.lifeCycle)&&u.emit("uploadLogs",y.conds,y.params),y=null),r.flog=p}catch(ee){console.log(ee)}}})},Oi=Vl=new l({name:"offlineLog",onNewAegis:function(e){Gl(Wl.urls.flog,e.config)}}),$l=(new l({name:"spa"}),["replaceState","pushState","popstate","hashchange"]),m=new l({name:"spa",originFireUrl:"",onNewAegis:function(t){var n=this;history.pushState=this.wr("pushState")||history.pushState,history.replaceState=this.wr("replaceState")||history.replaceState,this.sendPv=this.sendPv.bind(this),t.config.spa&&this.sendPv(t),$l.forEach(function(e){return window.addEventListener(e,function(){return n.sendPv.call(n,t)})})},wr:function(n){var r=history[n],e="__"+n+"__hasWrittenByTamSpa";return"function"==typeof r&&!history[e]&&(Object.defineProperty(history,e,{value:!0,enumerable:!1}),function(){var e=r.apply(this,arguments),t=null;return"function"==typeof Event?t=new Event(n):(t=document.createEvent("HTMLEvents")).initEvent(n,!1,!0),window.dispatchEvent(t),e})},sendPv:function(o){var i=this;setTimeout(function(){var r=location.href,t=location.pathname+location.hash+o.config.id;i.$walk(function(e){var n;e===o&&(n=e.config.pvUrl)&&t&&t!==i.originFireUrl&&(e.sendPipeline([function(e,t){t({url:n+"?from="+encodeURIComponent(r),beanFilter:["from"],type:T.PV})}],T.PV)(null),i.originFireUrl=t)})},0)},destroy:function(){this.option.sendPv=function(){}}}),a=(new l({name:"ie"}),new l({name:"ie",init:function(){this.overrideAegisSend()},onNewAegis:function(e){this.startListen(e)},startListen:function(r){var o=this,i=window.onerror;window.onerror=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=fa(e[0]);Su(n)||o.publishErrorLog({msg:(n||"")+" @ ("+(e[1]||"")+":"+(e[2]||0)+":"+(e[3]||0)+")\n \n"+fa(e[4]||""),level:A.ERROR},r),null!=i&&i.call.apply(i,Zo([window],e))}},overrideAegisSend:function(){Wl.prototype.request=function(e,t,n){var r,o,i=this;e&&"string"==typeof e.url&&""!==e.url&&this.bean.id&&(r=e.url,!1!==e.addBean&&(r=r+(-1===r.indexOf("?")?"?":"&")+this.getBean(e.beanFilter)),(o=new Image).onload=function(){i.request(e,t,n),null!=t&&t(null)},o.onerror=function(){i.request(e,t,n),null!=n&&n(null)},e.data?o.src=r+"&"+e.data:o.src=r)}},publishErrorLog:function(t,n){this.$walk(function(e){e===n&&e.normalLogPipeline(t)})},destroy:function(){this.option.publishErrorLog=function(){}}})),g=(new l({name:"onClose"}),new l({name:"onClose",onNewAegis:function(n){var t,r,e,o,i=this;b.desktop()?(o=window.onunload,window.onunload=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.publishNotReportedLog(n),null!=o&&o.call.apply(o,Zo([window],e))}):(t=this.publishNotReportedLog.bind(this,n),r=!0,e=function d(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||(t(e),r&&(removeEventListener("visibilitychange",d,!0),removeEventListener("pagehide",d,!0)))},addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},publishNotReportedLog:function(t){var n=this;this.$walk(function(e){e===t&&(e.sendNow=!0,e.publishPluginsLogs(),n.publishThrottlePipeLogs(e))})},publishThrottlePipeLogs:function(e){null!=e&&e.speedLogPipeline([]),null!=e&&e.eventPipeline([]),null!=e&&e.customTimePipeline([]),null!=e&&e.normalLogPipeline([])}})),Xl=Math.log,zl=Math.log1p||function(e){e=+e;return-1e-8<e&&e<1e-8?e-e*e/2:Xl(1+e)},u=Math.acosh,Yl=Math.log,Jl=Math.sqrt,Kl=Math.LN2,c=!u||710!=Math.floor(u(Number.MAX_VALUE))||u(Infinity)!=Infinity;function w(e){var t,n,r,a,u=Ul.call(this,e)||this;u.sendNow=!1,u.isReportReady=!1,u.reportRequestQueue=[],u.speedLogPipeline=qa([xa(u),(a=u.config,function(e,t){var n,r,o,i="number"==typeof a.repeat?a.repeat:60;!a.speedSample||i<=0?t(e):(n=(null==a?void 0:a.id)||"0",r=ka[n]||{},Array.isArray(e)?(o=e.filter(function(e){var t=!r[e.url]||r[e.url]<i;return t?(r[e.url]=1+~~r[e.url],ka[n]=r):La[n]||Ca(n),t})).length&&t(o):!r[e.url]||r[e.url]<i?(r[e.url]=1+~~r[e.url],ka[n]=r,t(e)):La[n]||Ca(n))}),(r=u,function(t,n){_l(function(e){r.extendBean("netType",e),n(t)})}),function(e,t){null!=(n=u.lifeCycle)&&n.emit("beforeReportSpeed",e);var n,r=u.config.beforeReportSpeed;if((e="function"==typeof r?e.filter(function(e){return!1!==r(e)}):e).length)return t(e)},function(e,t){t(e.map(function(e){return"undefined"!=typeof e.payload&&delete e.payload,e}))},function(e){return u.sendPipeline([function(e,t){var n,r,o,i,a;t({type:T.SPEED,url:""+u.config.speedUrl,method:"post",data:(n=e,r=E(E({},u.bean),{from:u.getCurrentPageUrl()}),i={fetch:[],"static":[],bridge:[]},a=new FormData,Array.isArray(n)?n.forEach(function(e){var t=Ou(e);i[e.type].push(t)}):(o=Ou(n),i[n.type].push(o)),a.append("payload",la(E({duration:i},r))),a),log:e})}],T.SPEED)(e)}]),e.asyncPlugin=!0;try{"undefined"!=typeof document&&(e.uin=e.uin||(null!=(t=document.cookie.match(/\buin=\D+(\d*)/))?t:[])[1]||(null!=(n=document.cookie.match(/\bilive_uin=\D*(\d+)/))?n:[])[1]||""),u.init(e),u.extendBean("sessionId",w.sessionID),u.extendBean("from",u.getCurrentPageUrl()),"undefined"!=typeof document&&u.extendBean("referer",encodeURIComponent(document.referrer||"")),e.ext1&&u.extendBean("ext1",encodeURIComponent(e.ext1)),e.ext2&&u.extendBean("ext2",encodeURIComponent(e.ext2)),e.ext3&&u.extendBean("ext3",encodeURIComponent(e.ext3))}catch(I){console.warn(I),console.log("%cThe above error occurred in the process of initializing Aegis, which will affect your normal use of Aegis.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),u.sendSDKError(I)}return u}function Ql(){this.constructor=Nl}U({target:"Math",stat:!0,forced:c},{acosh:function(e){e=+e;return e<1?NaN:94906265.62425156<e?Yl(e)+Kl:zl(e-1+Jl(e-1)*Jl(1+e))}});var h=Math.asinh,Zl=Math.log,ed=Math.sqrt,u=!(h&&0<1/h(0)),c=(U({target:"Math",stat:!0,forced:u},{asinh:function zh(e){e=+e;return isFinite(e)&&0!=e?e<0?-zh(-e):Zl(e+ed(e*e+1)):e}}),Math.atanh),td=Math.log,h=!(c&&1/c(-0)<0),u=(U({target:"Math",stat:!0,forced:h},{atanh:function(e){e=+e;return 0==e?e:td((1+e)/(1-e))/2}}),Math.expm1),nd=Math.exp,rd=!u||22025.465794806718<u(10)||u(10)<22025.465794806718||-2e-17!=u(-2e-17)?function(e){e=+e;return 0==e?e:-1e-6<e&&e<1e-6?e+e*e/2:nd(e)-1}:u,od=Math.abs,id=Math.exp,ad=Math.E,c=d(function(){return-2e-17!=Math.sinh(-2e-17)}),h=(U({target:"Math",stat:!0,forced:c},{sinh:function(e){e=+e;return od(e)<1?(rd(e)-rd(-e))/2:(id(e-1)-id(-e-1))*(ad/2)}}),Math.cosh),ud=Math.abs,sd=Math.E,u=!h||h(710)===Infinity,cd=(U({target:"Math",stat:!0,forced:u},{cosh:function(e){e=rd(ud(e)-1)+1;return(e+1/(e*sd*sd))*(sd/2)}}),Math.exp),fd=(U({target:"Math",stat:!0},{tanh:function(e){var e=+e,t=rd(e),n=rd(-e);return t==Infinity?1:n==Infinity?-1:(t-n)/(cd(e)+cd(-e))}}),U({target:"Math",stat:!0,forced:rd!=Math.expm1},{expm1:rd}),U({target:"Math",stat:!0},{log1p:zl}),p(H.f)),ld=p([].push),c=function(u){return function(e){for(var t,n=ee(e),r=Zt(n),o=r.length,i=0,a=[];i<o;)t=r[i++],I&&!fd(n,t)||ld(a,u?[t,n[t]]:n[t]);return a}},dd=(c(!0),c(!1)),h=(U({target:"Object",stat:!0},{values:function(e){return dd(e)}}),"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView),pd=RangeError,hd=function(e){if(e===undefined)return 0;var e=st(e),t=pt(e);if(e!==t)throw pd("Wrong length or index");return t},gd=Array,yd=Math.abs,vd=Math.pow,md=Math.floor,bd=Math.log,wd=Math.LN2,Ed=function(e){for(var t=be(this),n=ht(t),r=arguments.length,o=lt(1<r?arguments[1]:undefined,n),r=2<r?arguments[2]:undefined,i=r===undefined?n:lt(r,n);o<i;)t[o++]=e;return t},u=wt.f,Rd=We.f,c=Xe.PROPER,Od=Xe.CONFIGURABLE,Sd=j.get,Td=j.set,xd=P.ArrayBuffer,Ad=xd,Pd=Ad&&Ad.prototype,Id=P.DataView,Ld=Id&&Id.prototype,kd=Object.prototype,Cd=P.Array,jd=P.RangeError,Ud=p(Ed),Nd=p([].reverse),_d=function(e,t,n){var r,o,i,a=gd(n),u=8*n-t-1,n=(1<<u)-1,s=n>>1,c=23===t?vd(2,-24)-vd(2,-77):0,f=e<0||0===e&&1/e<0?1:0,l=0;for((e=yd(e))!=e||e===Infinity?(o=e!=e?1:0,r=n):(r=md(bd(e)/wd),e*(i=vd(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+s?c/i:c*vd(2,1-s))*i&&(r++,i/=2),n<=r+s?(o=0,r=n):1<=r+s?(o=(e*i-1)*vd(2,t),r+=s):(o=e*vd(2,s-1)*vd(2,t),r=0));8<=t;)a[l++]=255&o,o/=256,t-=8;for(r=r<<t|o,u+=t;0<u;)a[l++]=255&r,r/=256,u-=8;return a[--l]|=128*f,a},Md=function(e,t){var n,r=e.length,o=8*r-t-1,i=(1<<o)-1,a=i>>1,u=o-7,s=r-1,o=e[s--],c=127&o;for(o>>=7;0<u;)c=256*c+e[s--],u-=8;for(n=c&(1<<-u)-1,c>>=-u,u+=t;0<u;)n=256*n+e[s--],u-=8;if(0===c)c=1-a;else{if(c===i)return n?NaN:o?-Infinity:Infinity;n+=vd(2,t),c-=a}return(o?-1:1)*n*vd(2,c-t)},Bd=function(e){return[255&e]},qd=function(e){return[255&e,e>>8&255]},Fd=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Dd=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Hd=function(e){return _d(e,23,4)},Wd=function(e){return _d(e,52,8)},Vd=function(e,t){Rd(e.prototype,t,{get:function(){return Sd(this)[t]}})},Gd=function(e,t,n,r){n=hd(n),e=Sd(e);if(n+t>e.byteLength)throw jd("Wrong index");var o=Sd(e.buffer).bytes,n=n+e.byteOffset,e=Yn(o,n,n+t);return r?e:Nd(e)},$d=function(e,t,n,r,o,i){n=hd(n),e=Sd(e);if(n+t>e.byteLength)throw jd("Wrong index");for(var a=Sd(e.buffer).bytes,u=n+e.byteOffset,s=r(+o),c=0;c<t;c++)a[u+c]=s[i?c:t-c-1]};if(h){var Xd=c&&"ArrayBuffer"!==xd.name;if(d(function(){xd(1)})&&d(function(){new xd(-1)})&&!d(function(){return new xd,new xd(1.5),new xd(NaN),1!=xd.length||Xd&&!Od}))Xd&&Od&&Ve(xd,"name","ArrayBuffer");else{(Ad=function(e){return yr(this,Pd),new xd(hd(e))}).prototype=Pd;for(var zd,Yd=u(xd),Jd=0;Yd.length>Jd;)(zd=Yd[Jd++])in Ad||Ve(Ad,zd,xd[zd]);Pd.constructor=Ad}Pn&&mn(Ld)!==kd&&Pn(Ld,kd);var c=new Id(new Ad(2)),Kd=p(Ld.setInt8);c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||Lr(Ld,{setInt8:function(e,t){Kd(this,e,t<<24>>24)},setUint8:function(e,t){Kd(this,e,t<<24>>24)}},{unsafe:!0})}else Pd=(Ad=function(e){yr(this,Pd);e=hd(e);Td(this,{bytes:Ud(Cd(e),0),byteLength:e}),I||(this.byteLength=e)}).prototype,Ld=(Id=function(e,t,n){yr(this,Ld),yr(e,Pd);var r=Sd(e).byteLength,t=st(t);if(t<0||r<t)throw jd("Wrong offset");if(t+(n=n===undefined?r-t:pt(n))>r)throw jd("Wrong length");Td(this,{buffer:e,byteLength:n,byteOffset:t}),I||(this.buffer=e,this.byteLength=n,this.byteOffset=t)}).prototype,I&&(Vd(Ad,"byteLength"),Vd(Id,"buffer"),Vd(Id,"byteLength"),Vd(Id,"byteOffset")),Lr(Ld,{getInt8:function(e){return Gd(this,1,e)[0]<<24>>24},getUint8:function(e){return Gd(this,1,e)[0]},getInt16:function(e){e=Gd(this,2,e,1<arguments.length?arguments[1]:undefined);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=Gd(this,2,e,1<arguments.length?arguments[1]:undefined);return e[1]<<8|e[0]},getInt32:function(e){return Dd(Gd(this,4,e,1<arguments.length?arguments[1]:undefined))},getUint32:function(e){return Dd(Gd(this,4,e,1<arguments.length?arguments[1]:undefined))>>>0},getFloat32:function(e){return Md(Gd(this,4,e,1<arguments.length?arguments[1]:undefined),23)},getFloat64:function(e){return Md(Gd(this,8,e,1<arguments.length?arguments[1]:undefined),52)},setInt8:function(e,t){$d(this,1,e,Bd,t)},setUint8:function(e,t){$d(this,1,e,Bd,t)},setInt16:function(e,t){$d(this,2,e,qd,t,2<arguments.length?arguments[2]:undefined)},setUint16:function(e,t){$d(this,2,e,qd,t,2<arguments.length?arguments[2]:undefined)},setInt32:function(e,t){$d(this,4,e,Fd,t,2<arguments.length?arguments[2]:undefined)},setUint32:function(e,t){$d(this,4,e,Fd,t,2<arguments.length?arguments[2]:undefined)},setFloat32:function(e,t){$d(this,4,e,Hd,t,2<arguments.length?arguments[2]:undefined)},setFloat64:function(e,t){$d(this,8,e,Wd,t,2<arguments.length?arguments[2]:undefined)}});Rn(Ad,"ArrayBuffer"),Rn(Id,"DataView");var Qd={ArrayBuffer:Ad,DataView:Id},Zd=Qd.ArrayBuffer,ep=Qd.DataView,u=ep.prototype,tp=kt(Zd.prototype.slice),np=kt(u.getUint8),rp=kt(u.setUint8),kd=d(function(){return!new Zd(2).slice(1,undefined).byteLength});U({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:kd},{slice:function(e,t){if(tp&&t===undefined)return tp(O(this),e);for(var n=O(this).byteLength,r=lt(e,n),o=lt(t===undefined?n:t,n),e=new(_u(this,Zd))(pt(o-r)),i=new ep(this),a=new ep(e),u=0;r<o;)rp(a,u++,np(i,r++));return e}});var op,ip,ap,c=We.f,up=j.enforce,sp=j.get,Vd=P.Int8Array,cp=Vd&&Vd.prototype,Id=P.Uint8ClampedArray,u=Id&&Id.prototype,fp=Vd&&mn(Vd),lp=cp&&mn(cp),kd=Object.prototype,dp=P.TypeError,Id=s("toStringTag"),pp=Se("TYPED_ARRAY_TAG"),hp=h&&!!Pn&&"Opera"!==Bt(P.opera),Vd=!1,gp={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},yp={BigInt64Array:8,BigUint64Array:8},vp=function(e){var t,e=mn(e);if(k(e))return(t=sp(e))&&C(t,"TypedArrayConstructor")?t.TypedArrayConstructor:vp(e)},mp=function(e){return!!k(e)&&(e=Bt(e),C(gp,e)||C(yp,e))};for(op in gp)(ap=(ip=P[op])&&ip.prototype)?up(ap).TypedArrayConstructor=ip:hp=!1;for(op in yp)(ap=(ip=P[op])&&ip.prototype)&&(up(ap).TypedArrayConstructor=ip);if((!hp||!R(fp)||fp===Function.prototype)&&(fp=function(){throw dp("Incorrect invocation")},hp))for(op in gp)P[op]&&Pn(P[op],fp);if((!hp||!lp||lp===kd)&&(lp=fp.prototype,hp))for(op in gp)P[op]&&Pn(P[op].prototype,lp);if(hp&&mn(u)!==lp&&Pn(u,lp),I&&!C(lp,Id))for(op in Vd=!0,c(lp,Id,{get:function(){return k(this)?this[pp]:undefined}}),gp)P[op]&&Ve(P[op],pp,op);var N={NATIVE_ARRAY_BUFFER_VIEWS:hp,TYPED_ARRAY_TAG:Vd&&pp,aTypedArray:function(e){if(mp(e))return e;throw dp("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!R(e)||Pn&&!oe(fp,e))throw dp(fe(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n,r){if(I){if(n)for(var o in gp){o=P[o];if(o&&C(o.prototype,e))try{delete o.prototype[e]}catch(x){try{o.prototype[e]=t}catch(F){}}}lp[e]&&!n||v(lp,e,!n&&hp&&cp[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(I){if(Pn){if(n)for(r in gp)if((o=P[r])&&C(o,e))try{delete o[e]}catch(x){}if(fp[e]&&!n)return;try{return v(fp,e,!n&&hp&&fp[e]||t)}catch(x){}}for(r in gp)!(o=P[r])||o[e]&&!n||v(o,e,t)}},getTypedArrayConstructor:vp,isView:function(e){return!!k(e)&&("DataView"===(e=Bt(e))||C(gp,e)||C(yp,e))},isTypedArray:mp,TypedArray:fp,TypedArrayPrototype:lp},bp=P.ArrayBuffer,wp=P.Int8Array,Ep=!N.NATIVE_ARRAY_BUFFER_VIEWS||!d(function(){wp(1)})||!d(function(){new wp(-1)})||!o(function(e){new wp,new wp(null),new wp(1.5),new wp(e)},!0)||d(function(){return 1!==new wp(new bp(2),1,undefined).length}),Rp=Math.floor,Op=Number.isInteger||function(e){return!k(e)&&isFinite(e)&&Rp(e)===e},Sp=RangeError,Tp=RangeError,xp=function(t,e){var n=function(){var e=st(t);if(e<0)throw Sp("The argument can't be less than 0");return e}();if(n%e)throw Tp("Wrong offset");return n},Ap=TypeError,Pp=function(e){e=Le(e,"number");if("number"==typeof e)throw Ap("Can't convert number to bigint");return BigInt(e)},Ip=N.aTypedArrayConstructor,Lp=function(e){var t,n,r,o,i,a,u,s,c=Uu(this),f=be(e),e=arguments.length,l=1<e?arguments[1]:undefined,d=l!==undefined,p=ur(f);if(p&&!ir(p))for(s=(u=cr(f,p)).next,f=[];!(a=L(s,u)).done;)f.push(a.value);for(d&&2<e&&(l=jt(l,arguments[2])),n=ht(f),o=function(e){e=Bt(e);return"BigInt64Array"==e||"BigUint64Array"==e}(r=new(Ip(c))(n)),t=0;t<n;t++)i=d?l(f[t],t):f[t],r[t]=o?Pp(i):+i;return r},h=t(function(e){var r=wt.f,s=Qt.forEach,p=j.get,h=j.set,g=j.enforce,y=We.f,n=Me.f,v=Math.round,m=P.RangeError,b=Qd.ArrayBuffer,t=b.prototype,w=Qd.DataView,E=N.NATIVE_ARRAY_BUFFER_VIEWS,R=N.TYPED_ARRAY_TAG,O=N.TypedArray,S=N.TypedArrayPrototype,i=N.aTypedArrayConstructor,T=N.isTypedArray,x=function(e,t){i(e);for(var n=0,r=t.length,o=new e(r);n<r;)o[n]=t[n++];return o},o=function(e,t){y(e,t,{get:function(){return p(this)[t]}})},A=function(e){return oe(t,e)||"ArrayBuffer"==(e=Bt(e))||"SharedArrayBuffer"==e},a=function(e,t){return T(e)&&!se(t)&&t in e&&Op(+t)&&0<=t},u=function(e,t){return t=ke(t),a(e,t)?W(2,e[t]):n(e,t)},c=function(e,t,n){return t=ke(t),!(a(e,t)&&k(n)&&C(n,"value"))||C(n,"get")||C(n,"set")||n.configurable||C(n,"writable")&&!n.writable||C(n,"enumerable")&&!n.enumerable?y(e,t,n):(e[t]=n.value,e)};I?(E||(Me.f=u,We.f=c,o(S,"buffer"),o(S,"byteOffset"),o(S,"byteLength"),o(S,"length")),U({target:"Object",stat:!0,forced:!E},{getOwnPropertyDescriptor:u,defineProperty:c}),e.exports=function(e,t,o){var c=e.match(/\d+$/)[0]/8,n=e+(o?"Clamped":"")+"Array",i="get"+e,a="set"+e,u=P[n],f=u,l=f&&f.prototype,e={},d=function(e,r){y(e,r,{get:function(){var e=this,t=r;return(e=p(e)).view[i](t*c+e.byteOffset,!0)},set:function(e){var t=this,n=r;t=p(t),o&&(e=(e=v(e))<0?0:255<e?255:255&e),t.view[a](n*c+t.byteOffset,e,!0)},enumerable:!0})},t=(E?Ep&&(f=t(function(e,t,n,r){return yr(e,l),Ir(k(t)?A(t)?r!==undefined?new u(t,xp(n,c),r):n!==undefined?new u(t,xp(n,c)):new u(t):T(t)?x(f,t):L(Lp,f,t):new u(hd(t)),e,f)}),Pn&&Pn(f,O),s(r(u),function(e){e in f||Ve(f,e,u[e])}),f.prototype=l):(f=t(function(e,t,n,r){yr(e,l);var o,i,a=0,u=0;if(k(t)){if(!A(t))return T(t)?x(f,t):L(Lp,f,t);var s=t,u=xp(n,c),n=t.byteLength;if(r===undefined){if(n%c)throw m("Wrong length");if((o=n-u)<0)throw m("Wrong length")}else if((o=pt(r)*c)+u>n)throw m("Wrong length");i=o/c}else i=hd(t),s=new b(o=i*c);for(h(e,{buffer:s,byteOffset:u,byteLength:o,length:i,view:new w(s)});a<i;)d(e,a++)}),Pn&&Pn(f,O),l=f.prototype=sn(S)),l.constructor!==f&&Ve(l,"constructor",f),g(l).TypedArrayConstructor=f,R&&Ve(l,R,n),f!=u);e[n]=f,U({global:!0,constructor:!0,forced:t,sham:!E},e),"BYTES_PER_ELEMENT"in f||Ve(f,"BYTES_PER_ELEMENT",c),"BYTES_PER_ELEMENT"in l||Ve(l,"BYTES_PER_ELEMENT",c),Cu(n)}):e.exports=function(){}}),kp=(h("Float32",function(r){return function(e,t,n){return r(this,e,t,n)}}),Math.min),Cp=p([].copyWithin||function(e,t){var n=be(this),r=ht(n),o=lt(e,r),i=lt(t,r),e=2<arguments.length?arguments[2]:undefined,a=kp((e===undefined?r:lt(e,r))-i,r-o),u=1;for(i<o&&o<i+a&&(u=-1,i+=a-1,o+=a-1);0<a--;)i in n?n[o]=n[i]:Xo(n,o),o+=u,i+=u;return n}),jp=N.aTypedArray,Up=((0,N.exportTypedArrayMethod)("copyWithin",function(e,t){return Cp(jp(this),e,t,2<arguments.length?arguments[2]:undefined)}),Qt.every),Np=N.aTypedArray,_p=((0,N.exportTypedArrayMethod)("every",function(e){return Up(Np(this),e,1<arguments.length?arguments[1]:undefined)}),N.aTypedArray),kd=N.exportTypedArrayMethod,Mp=p("".slice),Bp=(kd("fill",function(e){var t=arguments.length,e=(_p(this),"Big"===Mp(Bt(this),0,3)?Pp(e):+e);return L(Ed,this,e,1<t?arguments[1]:undefined,2<t?arguments[2]:undefined)},d(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})),N.aTypedArrayConstructor),qp=N.getTypedArrayConstructor,Fp=function(e){return Bp(_u(e,qp(e)))},Dp=Qt.filter,Hp=N.aTypedArray,Wp=((0,N.exportTypedArrayMethod)("filter",function(e){for(var e=Dp(Hp(this),e,1<arguments.length?arguments[1]:undefined),t=this,t=Fp(t),n=e,r=0,o=ht(n),i=new t(o);r<o;)i[r]=n[r++];return i}),Qt.find),Vp=N.aTypedArray,Gp=((0,N.exportTypedArrayMethod)("find",function(e){return Wp(Vp(this),e,1<arguments.length?arguments[1]:undefined)}),Qt.findIndex),$p=N.aTypedArray,Xp=((0,N.exportTypedArrayMethod)("findIndex",function(e){return Gp($p(this),e,1<arguments.length?arguments[1]:undefined)}),Qt.forEach),zp=N.aTypedArray,Yp=((0,N.exportTypedArrayMethod)("forEach",function(e){Xp(zp(this),e,1<arguments.length?arguments[1]:undefined)}),$e.includes),Jp=N.aTypedArray,Kp=((0,N.exportTypedArrayMethod)("includes",function(e){return Yp(Jp(this),e,1<arguments.length?arguments[1]:undefined)}),$e.indexOf),Qp=N.aTypedArray,Zp=((0,N.exportTypedArrayMethod)("indexOf",function(e){return Kp(Qp(this),e,1<arguments.length?arguments[1]:undefined)}),s("iterator")),u=P.Uint8Array,eh=p(Bn.values),th=p(Bn.keys),nh=p(Bn.entries),rh=N.aTypedArray,Id=N.exportTypedArrayMethod,oh=u&&u.prototype,c=!d(function(){oh[Zp].call([1])}),Vd=!!oh&&oh.values&&oh[Zp]===oh.values&&"values"===oh.values.name,o=function(){return eh(rh(this))},ih=(Id("entries",function(){return nh(rh(this))},c),Id("keys",function(){return th(rh(this))},c),Id("values",o,c||!Vd,{name:"values"}),Id(Zp,o,c||!Vd,{name:"values"}),N.aTypedArray),kd=N.exportTypedArrayMethod,ah=p([].join),uh=(kd("join",function(e){return ah(ih(this),e)}),Math.min),sh=[].lastIndexOf,ch=!!sh&&1/[1].lastIndexOf(1,-0)<0,$e=io("lastIndexOf"),fh=ch||!$e?function(e){if(ch)return mo(sh,this,arguments)||0;var t=ee(this),n=ht(t),r=n-1;for((r=1<arguments.length?uh(r,st(arguments[1])):r)<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0;return-1}:sh,lh=N.aTypedArray,dh=((0,N.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return mo(fh,lh(this),1<t?[e,arguments[1]]:[e])}),Qt.map),ph=N.aTypedArray,hh=((0,N.exportTypedArrayMethod)("map",function(e){return dh(ph(this),e,1<arguments.length?arguments[1]:undefined,function(e,t){return new(Fp(e))(t)})}),i.left),gh=N.aTypedArray,yh=((0,N.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return hh(gh(this),e,t,1<t?arguments[1]:undefined)}),i.right),vh=N.aTypedArray,mh=((0,N.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return yh(vh(this),e,t,1<t?arguments[1]:undefined)}),N.aTypedArray),u=N.exportTypedArrayMethod,bh=Math.floor,wh=(u("reverse",function(){for(var e,t=mh(this).length,n=bh(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}),P.RangeError),Eh=P.Int8Array,o=Eh&&Eh.prototype,Rh=o&&o.set,Oh=N.aTypedArray,c=N.exportTypedArrayMethod,Sh=!d(function(){var e=new Uint8ClampedArray(2);return L(Rh,e,{length:1,0:3},1),3!==e[1]}),Vd=Sh&&N.NATIVE_ARRAY_BUFFER_VIEWS&&d(function(){var e=new Eh(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}),Th=(c("set",function(e){Oh(this);var t=xp(1<arguments.length?arguments[1]:undefined,1),n=be(e);if(Sh)return L(Rh,this,n,t);var e=this.length,r=ht(n),o=0;if(e<r+t)throw wh("Wrong length");for(;o<r;)this[t+o]=n[o++]},!Sh||Vd),N.aTypedArray),xh=((0,N.exportTypedArrayMethod)("slice",function(e,t){for(var n=bo(Th(this),e,t),e=Fp(this),r=0,o=n.length,i=new e(o);r<o;)i[r]=n[r++];return i},d(function(){new Int8Array(1).slice()})),Qt.some),Ah=N.aTypedArray,Id=((0,N.exportTypedArrayMethod)("some",function(e){return xh(Ah(this),e,1<arguments.length?arguments[1]:undefined)}),e.match(/firefox\/(\d+)/i)),Ph=!!Id&&+Id[1],Ih=/MSIE|Trident/.test(e),kd=e.match(/AppleWebKit\/(\d+)\./),Lh=!!kd&&+kd[1],kh=N.aTypedArray,io=N.exportTypedArrayMethod,Ch=P.Uint16Array,jh=Ch&&kt(Ch.prototype.sort),$e=!(!jh||d(function(){jh(new Ch(2),null)})&&d(function(){jh(new Ch(2),{})})),Uh=!!jh&&!d(function(){if(ie)return ie<74;if(Ph)return Ph<67;if(Ih)return!0;if(Lh)return Lh<602;for(var e,t=new Ch(516),n=Array(516),r=0;r<516;r++)e=r%4,t[r]=515-r,n[r]=r-2*e+3;for(jh(t,function(e,t){return(e/4|0)-(t/4|0)}),r=0;r<516;r++)if(t[r]!==n[r])return!0}),Nh=(io("sort",function(e){return e!==undefined&&de(e),Uh?jh(this,e):cc(kh(this),(n=e,function(e,t){return n!==undefined?+n(e,t)||0:t!=t?-1:e!=e?1:0===e&&0===t?0<1/e&&1/t<0?1:-1:t<e}));var n},!Uh||$e),N.aTypedArray),_h=((0,N.exportTypedArrayMethod)("subarray",function(e,t){var n=Nh(this),r=n.length,e=lt(e,r);return new(Fp(n))(n.buffer,n.byteOffset+e*n.BYTES_PER_ELEMENT,pt((t===undefined?r:lt(t,r))-e))}),P.Int8Array),Mh=N.aTypedArray,i=N.exportTypedArrayMethod,Bh=[].toLocaleString,qh=!!_h&&d(function(){Bh.call(new _h(1))}),u=(i("toLocaleString",function(){return mo(Bh,qh?bo(Mh(this)):Mh(this),bo(arguments))},d(function(){return[1,2].toLocaleString()!=new _h([1,2]).toLocaleString()})||!d(function(){_h.prototype.toLocaleString.call([1,2])})),N.exportTypedArrayMethod),o=P.Uint8Array,Vd=o&&o.prototype||{},Fh=[].toString,Dh=p([].join),c=(d(function(){Fh.call({})})&&(Fh=function(){return Dh(this)}),Vd.toString!=Fh),Hh=(u("toString",Fh,c),h("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}}),za.trim),Wh=P.parseInt,Id=P.Symbol,Vh=Id&&Id.iterator,Gh=/^[+-]?0x/i,$h=p(Gh.exec),e=8!==Wh($a+"08")||22!==Wh($a+"0x16")||Vh&&!d(function(){Wh(Object(Vh))})?function(e,t){e=Hh(S(e));return Wh(e,t>>>0||($h(Gh,e)?16:10))}:Wh;return U({global:!0,forced:parseInt!=e},{parseInt:e}),new l({name:"aid"}),Wl.use(n),Wl.use(Xu),Wl.use(r),Wl.use(Gu),Wl.use(f),Wl.use($u),Wl.use(Oi),Wl.use(m),Wl.use(a),Wl.use(g),Wl.use(Ge),Wl});
|