You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
145 KiB

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