/** * ================================================================= * 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(0o;)!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"+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=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=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>>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;ou;)(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,1b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$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]*>)/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")})||!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@^][^\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"===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/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&&2Va;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>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>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;eu,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=r||n.sendNow&&0>>=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)})}),0n)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=o&&tCc((2147483647-i)/l))throw kc(Lc);for(i+=(c-o)*l,o=c,f=0;f>1,e+=Cc(e/t);455t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=Xc(this).entries,r=jt(e,1?@[\\\]^|]/,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":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=Cf(256,5-t))return null}else if(255>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<>1,u=o-7,s=r-1,o=e[s--],c=127&o;for(o>>=7;0>=-u,u+=t;0>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;cSp;)(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||rr)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>16},getUint16:function(e){e=mp(this,2,e,1>>0},getFloat32:function(e){return fp(mp(this,4,e,1n)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>>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});