Skip to content

Instantly share code, notes, and snippets.

@flydo
Last active October 24, 2023 11:43
Show Gist options
  • Save flydo/a028b5bdfd1f52ba67b9b9fa37a65c30 to your computer and use it in GitHub Desktop.
Save flydo/a028b5bdfd1f52ba67b9b9fa37a65c30 to your computer and use it in GitHub Desktop.
!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).MailStats=t()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((t===undefined||null===t)&&n.path)}},n.exports),n.exports}var i,o,r=function(e){return e&&e.Math==Math&&e},a=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),s=function(e){try{return!!e()}catch(t){return!0}},u=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,d={f:l&&!c.call({1:2},1)?function(e){var t=l(this,e);return!!t&&t.enumerable}:c},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p={}.toString,v=function(e){return p.call(e).slice(8,-1)},m="".split,h=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==v(e)?m.call(e,""):Object(e)}:Object,g=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e},y=function(e){return h(g(e))},w=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_=function(e){return"function"==typeof e?e:undefined},b=function(e,t){return arguments.length<2?_(a[e]):a[e]&&a[e][t]},x=b("navigator","userAgent")||"",S=a.process,k=a.Deno,E=S&&S.versions||k&&k.version,T=E&&E.v8;T?o=(i=T.split("."))[0]<4?1:i[0]+i[1]:x&&(!(i=x.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=x.match(/Chrome\/(\d+)/))&&(o=i[1]);var O=o&&+o,C=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&O&&O<41})),A=C&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,I=A?function(e){return"symbol"==typeof e}:function(e){var t=b("Symbol");return"function"==typeof t&&Object(e)instanceof t},M=function(e,t){try{Object.defineProperty(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t},L=a["__core-js_shared__"]||M("__core-js_shared__",{}),j=n((function(e){(e.exports=function(e,t){return L[e]||(L[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.16.1",mode:"global",copyright:"漏 2021 Denis Pushkarev (zloirock.ru)"})})),P=function(e){return Object(g(e))},R={}.hasOwnProperty,N=Object.hasOwn||function(e,t){return R.call(P(e),t)},D=0,q=Math.random(),U=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++D+q).toString(36)},B=j("wks"),z=a.Symbol,H=A?z:z&&z.withoutSetter||U,F=function(e){return N(B,e)&&(C||"string"==typeof B[e])||(C&&N(z,e)?B[e]=z[e]:B[e]=H("Symbol."+e)),B[e]},G=F("toPrimitive"),V=function(e,t){if(!w(e)||I(e))return e;var n,i=e[G];if(i!==undefined){if(t===undefined&&(t="default"),n=i.call(e,t),!w(n)||I(n))return n;throw TypeError("Can't convert object to primitive value")}return t===undefined&&(t="number"),function(e,t){var n,i;if("string"===t&&"function"==typeof(n=e.toString)&&!w(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!w(i=n.call(e)))return i;if("string"!==t&&"function"==typeof(n=e.toString)&&!w(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}(e,t)},Q=function(e){var t=V(e,"string");return I(t)?t:String(t)},X=a.document,J=w(X)&&w(X.createElement),$=function(e){return J?X.createElement(e):{}},W=!u&&!s((function(){return 7!=Object.defineProperty($("div"),"a",{get:function(){return 7}}).a})),K=Object.getOwnPropertyDescriptor,Y={f:u?K:function(e,t){if(e=y(e),t=Q(t),W)try{return K(e,t)}catch(n){}if(N(e,t))return f(!d.f.call(e,t),e[t])}},Z=function(e){if(!w(e))throw TypeError(String(e)+" is not an object");return e},ee=Object.defineProperty,te={f:u?ee:function(e,t,n){if(Z(e),t=Q(t),Z(n),W)try{return ee(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ne=u?function(e,t,n){return te.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},ie=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(e){return ie.call(e)});var oe,re,ae,se=L.inspectSource,ue=a.WeakMap,ce="function"==typeof ue&&/native code/.test(se(ue)),le=j("keys"),de=function(e){return le[e]||(le[e]=U(e))},fe={},pe=a.WeakMap;if(ce||L.state){var ve=L.state||(L.state=new pe),me=ve.get,he=ve.has,ge=ve.set;oe=function(e,t){if(he.call(ve,e))throw new TypeError("Object already initialized");return t.facade=e,ge.call(ve,e,t),t},re=function(e){return me.call(ve,e)||{}},ae=function(e){return he.call(ve,e)}}else{var ye=de("state");fe[ye]=!0,oe=function(e,t){if(N(e,ye))throw new TypeError("Object already initialized");return t.facade=e,ne(e,ye,t),t},re=function(e){return N(e,ye)?e[ye]:{}},ae=function(e){return N(e,ye)}}var we,_e={set:oe,get:re,has:ae,enforce:function(e){return ae(e)?re(e):oe(e,{})},getterFor:function(e){return function(t){var n;if(!w(t)||(n=re(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},be=n((function(e){var t=_e.get,n=_e.enforce,i=String(String).split("String");(e.exports=function(e,t,o,r){var s,u=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet;"function"==typeof o&&("string"!=typeof t||N(o,"name")||ne(o,"name",t),(s=n(o)).source||(s.source=i.join("string"==typeof t?t:""))),e!==a?(u?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=o:ne(e,t,o)):c?e[t]=o:M(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||se(this)}))})),xe=Math.ceil,Se=Math.floor,ke=function(e){return isNaN(e=+e)?0:(e>0?Se:xe)(e)},Ee=Math.min,Te=function(e){return e>0?Ee(ke(e),9007199254740991):0},Oe=Math.max,Ce=Math.min,Ae=function(e,t){var n=ke(e);return n<0?Oe(n+t,0):Ce(n,t)},Ie=function(e){return function(t,n,i){var o,r=y(t),a=Te(r.length),s=Ae(i,a);if(e&&n!=n){for(;a>s;)if((o=r[s++])!=o)return!0}else for(;a>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},Me={includes:Ie(!0),indexOf:Ie(!1)},Le=Me.indexOf,je=function(e,t){var n,i=y(e),o=0,r=[];for(n in i)!N(fe,n)&&N(i,n)&&r.push(n);for(;t.length>o;)N(i,n=t[o++])&&(~Le(r,n)||r.push(n));return r},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Re=Pe.concat("length","prototype"),Ne={f:Object.getOwnPropertyNames||function(e){return je(e,Re)}},De={f:Object.getOwnPropertySymbols},qe=b("Reflect","ownKeys")||function(e){var t=Ne.f(Z(e)),n=De.f;return n?t.concat(n(e)):t},Ue=function(e,t){for(var n=qe(t),i=te.f,o=Y.f,r=0;r<n.length;r++){var a=n[r];N(e,a)||i(e,a,o(t,a))}},Be=/#|\.prototype\./,ze=function(e,t){var n=Fe[He(e)];return n==Ve||n!=Ge&&("function"==typeof t?s(t):!!t)},He=ze.normalize=function(e){return String(e).replace(Be,".").toLowerCase()},Fe=ze.data={},Ge=ze.NATIVE="N",Ve=ze.POLYFILL="P",Qe=ze,Xe=Y.f,Je=function(e,t){var n,i,o,r,s,u=e.target,c=e.global,l=e.stat;if(n=c?a:l?a[u]||M(u,{}):(a[u]||{}).prototype)for(i in t){if(r=t[i],o=e.noTargetGet?(s=Xe(n,i))&&s.value:n[i],!Qe(c?i:u+(l?".":"#")+i,e.forced)&&o!==undefined){if(typeof r==typeof o)continue;Ue(r,o)}(e.sham||o&&o.sham)&&ne(r,"sham",!0),be(n,i,r,e)}},$e=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),We=de("IE_PROTO"),Ke=Object.prototype,Ye=$e?Object.getPrototypeOf:function(e){return e=P(e),N(e,We)?e[We]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Ke:null},Ze=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return Z(n),function(e){if(!w(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(i),t?e.call(n,i):n.__proto__=i,n}}():undefined),et=Object.keys||function(e){return je(e,Pe)},tt=u?Object.defineProperties:function(e,t){Z(e);for(var n,i=et(t),o=i.length,r=0;o>r;)te.f(e,n=i[r++],t[n]);return e},nt=b("document","documentElement"),it=de("IE_PROTO"),ot=function(){},rt=function(e){return"<script>"+e+"<\/script>"},at=function(e){e.write(rt("")),e.close();var t=e.parentWindow.Object;return e=null,t},st=function(){try{we=new ActiveXObject("htmlfile")}catch(t){}st=document.domain&&we?at(we):function(){var e,t=$("iframe");if(t.style)return t.style.display="none",nt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rt("document.F=Object")),e.close(),e.F}()||at(we);for(var e=Pe.length;e--;)delete st.prototype[Pe[e]];return st()};fe[it]=!0;var ut=Object.create||function(e,t){var n;return null!==e?(ot.prototype=Z(e),n=new ot,ot.prototype=null,n[it]=e):n=st(),t===undefined?n:tt(n,t)},ct={},lt=F("iterator"),dt=Array.prototype,ft=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},pt=function(e,t,n){if(ft(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}},vt={};vt[F("toStringTag")]="z";var mt="[object z]"===String(vt),ht=F("toStringTag"),gt="Arguments"==v(function(){return arguments}()),yt=mt?v:function(e){var t,n,i;return e===undefined?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),ht))?n:gt?v(t):"Object"==(i=v(t))&&"function"==typeof t.callee?"Arguments":i},wt=F("iterator"),_t=function(e){var t=e["return"];if(t!==undefined)return Z(t.call(e)).value},bt=function(e,t){this.stopped=e,this.result=t},xt=function(e,t,n){var i,o,r,a,s,u,c,l,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=pt(t,d,1+f+v),h=function(e){return i&&_t(i),new bt(!0,e)},g=function(e){return f?(Z(e),v?m(e[0],e[1],h):m(e[0],e[1])):v?m(e,h):m(e)};if(p)i=e;else{if("function"!=typeof(o=function(e){if(e!=undefined)return e[wt]||e["@@iterator"]||ct[yt(e)]}(e)))throw TypeError("Target is not iterable");if((l=o)!==undefined&&(ct.Array===l||dt[lt]===l)){for(r=0,a=Te(e.length);a>r;r++)if((s=g(e[r]))&&s instanceof bt)return s;return new bt(!1)}i=o.call(e)}for(u=i.next;!(c=u.call(i)).done;){try{s=g(c.value)}catch(y){throw _t(i),y}if("object"==typeof s&&s&&s instanceof bt)return s}return new bt(!1)},St=function(e){if(I(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},kt=function(e,t){var n=this;if(!(n instanceof kt))return new kt(e,t);Ze&&(n=Ze(new Error(undefined),Ye(n))),t!==undefined&&ne(n,"message",St(t));var i=[];return xt(e,i.push,{that:i}),ne(n,"errors",i),n};kt.prototype=ut(Error.prototype,{constructor:f(5,kt),message:f(5,""),name:f(5,"AggregateError")}),Je({global:!0},{AggregateError:kt});var Et=F("unscopables"),Tt=Array.prototype;Tt[Et]==undefined&&te.f(Tt,Et,{configurable:!0,value:ut(null)});var Ot,Ct,At,It=function(e){Tt[Et][e]=!0},Mt=F("iterator"),Lt=!1;[].keys&&("next"in(At=[].keys())?(Ct=Ye(Ye(At)))!==Object.prototype&&(Ot=Ct):Lt=!0),(Ot==undefined||s((function(){var e={};return Ot[Mt].call(e)!==e})))&&(Ot={}),N(Ot,Mt)||ne(Ot,Mt,(function(){return this}));var jt={IteratorPrototype:Ot,BUGGY_SAFARI_ITERATORS:Lt},Pt=te.f,Rt=F("toStringTag"),Nt=function(e,t,n){e&&!N(e=n?e:e.prototype,Rt)&&Pt(e,Rt,{configurable:!0,value:t})},Dt=jt.IteratorPrototype,qt=function(){return this},Ut=jt.IteratorPrototype,Bt=jt.BUGGY_SAFARI_ITERATORS,zt=F("iterator"),Ht=function(){return this},Ft=function(e,t,n,i,o,r,a){!function(e,t,n){var i=t+" Iterator";e.prototype=ut(Dt,{next:f(1,n)}),Nt(e,i,!1),ct[i]=qt}(n,t,i);var s,u,c,l=function(e){if(e===o&&h)return h;if(!Bt&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,v=e.prototype,m=v[zt]||v["@@iterator"]||o&&v[o],h=!Bt&&m||l(o),g="Array"==t&&v.entries||m;if(g&&(s=Ye(g.call(new e)),Ut!==Object.prototype&&s.next&&(Ye(s)!==Ut&&(Ze?Ze(s,Ut):"function"!=typeof s[zt]&&ne(s,zt,Ht)),Nt(s,d,!0))),"values"==o&&m&&"values"!==m.name&&(p=!0,h=function(){return m.call(this)}),v[zt]!==h&&ne(v,zt,h),ct[t]=h,o)if(u={values:l("values"),keys:r?h:l("keys"),entries:l("entries")},a)for(c in u)(Bt||p||!(c in v))&&be(v,c,u[c]);else Je({target:t,proto:!0,forced:Bt||p},u);return u},Gt=_e.set,Vt=_e.getterFor("Array Iterator"),Qt=Ft(Array,"Array",(function(e,t){Gt(this,{type:"Array Iterator",target:y(e),index:0,kind:t})}),(function(){var e=Vt(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=undefined,{value:undefined,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");ct.Arguments=ct.Array,It("keys"),It("values"),It("entries");var Xt=mt?{}.toString:function(){return"[object "+yt(this)+"]"};mt||be(Object.prototype,"toString",Xt,{unsafe:!0});var Jt=a.Promise,$t=F("species"),Wt=function(e){var t=b(e),n=te.f;u&&t&&!t[$t]&&n(t,$t,{configurable:!0,get:function(){return this}})},Kt=F("iterator"),Yt=!1;try{var Zt=0,en={next:function(){return{done:!!Zt++}},"return":function(){Yt=!0}};en[Kt]=function(){return this},Array.from(en,(function(){throw 2}))}catch(Qr){}var tn,nn,on,rn,an=F("species"),sn=function(e,t){var n,i=Z(e).constructor;return i===undefined||(n=Z(i)[an])==undefined?t:ft(n)},un=/(?:iphone|ipod|ipad).*applewebkit/i.test(x),cn="process"==v(a.process),ln=a.setImmediate,dn=a.clearImmediate,fn=a.process,pn=a.MessageChannel,vn=a.Dispatch,mn=0,hn={};try{tn=a.location}catch(Qr){}var gn=function(e){if(hn.hasOwnProperty(e)){var t=hn[e];delete hn[e],t()}},yn=function(e){return function(){gn(e)}},wn=function(e){gn(e.data)},_n=function(e){a.postMessage(String(e),tn.protocol+"//"+tn.host)};ln&&dn||(ln=function(e){for(var t=[],n=arguments.length,i=1;n>i;)t.push(arguments[i++]);return hn[++mn]=function(){("function"==typeof e?e:Function(e)).apply(undefined,t)},nn(mn),mn},dn=function(e){delete hn[e]},cn?nn=function(e){fn.nextTick(yn(e))}:vn&&vn.now?nn=function(e){vn.now(yn(e))}:pn&&!un?(rn=(on=new pn).port2,on.port1.onmessage=wn,nn=pt(rn.postMessage,rn,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&tn&&"file:"!==tn.protocol&&!s(_n)?(nn=_n,a.addEventListener("message",wn,!1)):nn="onreadystatechange"in $("script")?function(e){nt.appendChild($("script")).onreadystatechange=function(){nt.removeChild(this),gn(e)}}:function(e){setTimeout(yn(e),0)});var bn,xn,Sn,kn,En,Tn,On,Cn,An={set:ln,clear:dn},In=/iphone|ipod|ipad/i.test(x)&&a.Pebble!==undefined,Mn=/web0s(?!.*chrome)/i.test(x),Ln=Y.f,jn=An.set,Pn=a.MutationObserver||a.WebKitMutationObserver,Rn=a.document,Nn=a.process,Dn=a.Promise,qn=Ln(a,"queueMicrotask"),Un=qn&&qn.value;Un||(bn=function(){var e,t;for(cn&&(e=Nn.domain)&&e.exit();xn;){t=xn.fn,xn=xn.next;try{t()}catch(Qr){throw xn?kn():Sn=undefined,Qr}}Sn=undefined,e&&e.enter()},un||cn||Mn||!Pn||!Rn?!In&&Dn&&Dn.resolve?((On=Dn.resolve(undefined)).constructor=Dn,Cn=On.then,kn=function(){Cn.call(On,bn)}):kn=cn?function(){Nn.nextTick(bn)}:function(){jn.call(a,bn)}:(En=!0,Tn=Rn.createTextNode(""),new Pn(bn).observe(Tn,{characterData:!0}),kn=function(){Tn.data=En=!En}));var Bn,zn,Hn,Fn,Gn=Un||function(e){var t={fn:e,next:undefined};Sn&&(Sn.next=t),xn||(xn=t,kn()),Sn=t},Vn=function(e){var t,n;this.promise=new e((function(e,i){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=ft(t),this.reject=ft(n)},Qn={f:function(e){return new Vn(e)}},Xn=function(e,t){if(Z(e),w(t)&&t.constructor===e)return t;var n=Qn.f(e);return(0,n.resolve)(t),n.promise},Jn=function(e){try{return{error:!1,value:e()}}catch(Qr){return{error:!0,value:Qr}}},$n="object"==typeof window,Wn=An.set,Kn=F("species"),Yn="Promise",Zn=_e.get,ei=_e.set,ti=_e.getterFor(Yn),ni=Jt&&Jt.prototype,ii=Jt,oi=ni,ri=a.TypeError,ai=a.document,si=a.process,ui=Qn.f,ci=ui,li=!!(ai&&ai.createEvent&&a.dispatchEvent),di="function"==typeof PromiseRejectionEvent,fi=!1,pi=Qe(Yn,(function(){var e=se(ii),t=e!==String(ii);if(!t&&66===O)return!0;if(O>=51&&/native code/.test(e))return!1;var n=new ii((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Kn]=i,!(fi=n.then((function(){}))instanceof i)||!t&&$n&&!di})),vi=pi||!function(e,t){if(!t&&!Yt)return!1;var n=!1;try{var i={};i[Kt]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(Qr){}return n}((function(e){ii.all(e)["catch"]((function(){}))})),mi=function(e){var t;return!(!w(e)||"function"!=typeof(t=e.then))&&t},hi=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Gn((function(){for(var i=e.value,o=1==e.state,r=0;n.length>r;){var a,s,u,c=n[r++],l=o?c.ok:c.fail,d=c.resolve,f=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&_i(e),e.rejection=1),!0===l?a=i:(p&&p.enter(),a=l(i),p&&(p.exit(),u=!0)),a===c.promise?f(ri("Promise-chain cycle")):(s=mi(a))?s.call(a,d,f):d(a)):f(i)}catch(Qr){p&&!u&&p.exit(),f(Qr)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&yi(e)}))}},gi=function(e,t,n){var i,o;li?((i=ai.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),a.dispatchEvent(i)):i={promise:t,reason:n},!di&&(o=a["on"+e])?o(i):"unhandledrejection"===e&&function(e,t){var n=a.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},yi=function(e){Wn.call(a,(function(){var t,n=e.facade,i=e.value;if(wi(e)&&(t=Jn((function(){cn?si.emit("unhandledRejection",i,n):gi("unhandledrejection",n,i)})),e.rejection=cn||wi(e)?2:1,t.error))throw t.value}))},wi=function(e){return 1!==e.rejection&&!e.parent},_i=function(e){Wn.call(a,(function(){var t=e.facade;cn?si.emit("rejectionHandled",t):gi("rejectionhandled",t,e.value)}))},bi=function(e,t,n){return function(i){e(t,i,n)}},xi=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,hi(e,!0))},Si=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw ri("Promise can't be resolved itself");var i=mi(t);i?Gn((function(){var n={done:!1};try{i.call(t,bi(Si,n,e),bi(xi,n,e))}catch(Qr){xi(n,Qr,e)}})):(e.value=t,e.state=1,hi(e,!1))}catch(Qr){xi({done:!1},Qr,e)}}};if(pi&&(oi=(ii=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,ii,Yn),ft(e),Bn.call(this);var t=Zn(this);try{e(bi(Si,t),bi(xi,t))}catch(Qr){xi(t,Qr)}}).prototype,(Bn=function(e){ei(this,{type:Yn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:undefined})}).prototype=function(e,t,n){for(var i in t)be(e,i,t[i],n);return e}(oi,{then:function(e,t){var n=ti(this),i=ui(sn(this,ii));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=cn?si.domain:undefined,n.parent=!0,n.reactions.push(i),0!=n.state&&hi(n,!1),i.promise},"catch":function(e){return this.then(undefined,e)}}),zn=function(){var e=new Bn,t=Zn(e);this.promise=e,this.resolve=bi(Si,t),this.reject=bi(xi,t)},Qn.f=ui=function(e){return e===ii||e===Hn?new zn(e):ci(e)},"function"==typeof Jt&&ni!==Object.prototype)){Fn=ni.then,fi||(be(ni,"then",(function(e,t){var n=this;return new ii((function(e,t){Fn.call(n,e,t)})).then(e,t)}),{unsafe:!0}),be(ni,"catch",oi["catch"],{unsafe:!0}));try{delete ni.constructor}catch(Qr){}Ze&&Ze(ni,oi)}Je({global:!0,wrap:!0,forced:pi},{Promise:ii}),Nt(ii,Yn,!1),Wt(Yn),Hn=b(Yn),Je({target:Yn,stat:!0,forced:pi},{reject:function(e){var t=ui(this);return t.reject.call(undefined,e),t.promise}}),Je({target:Yn,stat:!0,forced:pi},{resolve:function(e){return Xn(this,e)}}),Je({target:Yn,stat:!0,forced:vi},{all:function(e){var t=this,n=ui(t),i=n.resolve,o=n.reject,r=Jn((function(){var n=ft(t.resolve),r=[],a=0,s=1;xt(e,(function(e){var u=a++,c=!1;r.push(undefined),s++,n.call(t,e).then((function(e){c||(c=!0,r[u]=e,--s||i(r))}),o)})),--s||i(r)}));return r.error&&o(r.value),n.promise},race:function(e){var t=this,n=ui(t),i=n.reject,o=Jn((function(){var o=ft(t.resolve);xt(e,(function(e){o.call(t,e).then(n.resolve,i)}))}));return o.error&&i(o.value),n.promise}}),Je({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=Qn.f(t),i=n.resolve,o=n.reject,r=Jn((function(){var n=ft(t.resolve),o=[],r=0,a=1;xt(e,(function(e){var s=r++,u=!1;o.push(undefined),a++,n.call(t,e).then((function(e){u||(u=!0,o[s]={status:"fulfilled",value:e},--a||i(o))}),(function(e){u||(u=!0,o[s]={status:"rejected",reason:e},--a||i(o))}))})),--a||i(o)}));return r.error&&o(r.value),n.promise}});Je({target:"Promise",stat:!0},{any:function(e){var t=this,n=Qn.f(t),i=n.resolve,o=n.reject,r=Jn((function(){var n=ft(t.resolve),r=[],a=0,s=1,u=!1;xt(e,(function(e){var c=a++,l=!1;r.push(undefined),s++,n.call(t,e).then((function(e){l||u||(u=!0,i(e))}),(function(e){l||u||(l=!0,r[c]=e,--s||o(new(b("AggregateError"))(r,"No one promise resolved")))}))})),--s||o(new(b("AggregateError"))(r,"No one promise resolved"))}));return r.error&&o(r.value),n.promise}});var ki=!!Jt&&s((function(){Jt.prototype["finally"].call({then:function(){}},(function(){}))}));if(Je({target:"Promise",proto:!0,real:!0,forced:ki},{"finally":function(e){var t=sn(this,b("Promise")),n="function"==typeof e;return this.then(n?function(n){return Xn(t,e()).then((function(){return n}))}:e,n?function(n){return Xn(t,e()).then((function(){throw n}))}:e)}}),"function"==typeof Jt){var Ei=b("Promise").prototype["finally"];Jt.prototype["finally"]!==Ei&&be(Jt.prototype,"finally",Ei,{unsafe:!0})}var Ti=function(e){return function(t,n){var i,o,r=St(g(t)),a=ke(n),s=r.length;return a<0||a>=s?e?"":undefined:(i=r.charCodeAt(a))<55296||i>56319||a+1===s||(o=r.charCodeAt(a+1))<56320||o>57343?e?r.charAt(a):i:e?r.slice(a,a+2):o-56320+(i-55296<<10)+65536}},Oi={codeAt:Ti(!1),charAt:Ti(!0)},Ci=Oi.charAt,Ai=_e.set,Ii=_e.getterFor("String Iterator");Ft(String,"String",(function(e){Ai(this,{type:"String Iterator",string:St(e),index:0})}),(function(){var e,t=Ii(this),n=t.string,i=t.index;return i>=n.length?{value:undefined,done:!0}:(e=Ci(n,i),t.index+=e.length,{value:e,done:!1})}));a.Promise;var Mi={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},Li=F("iterator"),ji=F("toStringTag"),Pi=Qt.values;for(var Ri in Mi){var Ni=a[Ri],Di=Ni&&Ni.prototype;if(Di){if(Di[Li]!==Pi)try{ne(Di,Li,Pi)}catch(Qr){Di[Li]=Pi}if(Di[ji]||ne(Di,ji,Ri),Mi[Ri])for(var qi in Qt)if(Di[qi]!==Qt[qi])try{ne(Di,qi,Qt[qi])}catch(Qr){Di[qi]=Qt[qi]}}}Je({target:"Promise",stat:!0},{"try":function(e){var t=Qn.f(this),n=Jn(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var Ui=Array.isArray||function(e){return"Array"==v(e)},Bi=F("species"),zi=function(e,t){return new(function(e){var t;return Ui(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!Ui(t.prototype)?w(t)&&null===(t=t[Bi])&&(t=undefined):t=undefined),t===undefined?Array:t}(e))(0===t?0:t)},Hi=[].push,Fi=function(e){var t=1==e,n=2==e,i=3==e,o=4==e,r=6==e,a=7==e,s=5==e||r;return function(u,c,l,d){for(var f,p,v=P(u),m=h(v),g=pt(c,l,3),y=Te(m.length),w=0,_=d||zi,b=t?_(u,y):n||a?_(u,0):undefined;y>w;w++)if((s||w in m)&&(p=g(f=m[w],w,v),e))if(t)b[w]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return w;case 2:Hi.call(b,f)}else switch(e){case 4:return!1;case 7:Hi.call(b,f)}return r?-1:i||o?o:b}},Gi={forEach:Fi(0),map:Fi(1),filter:Fi(2),some:Fi(3),every:Fi(4),find:Fi(5),findIndex:Fi(6),filterReject:Fi(7)},Vi=F("species"),Qi=function(e){return O>=51||!s((function(){var t=[];return(t.constructor={})[Vi]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Xi=Gi.filter,Ji=Qi("filter");Je({target:"Array",proto:!0,forced:!Ji},{filter:function(e){return Xi(this,e,arguments.length>1?arguments[1]:undefined)}});var $i=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){throw 1},1)}))},Wi=Me.indexOf,Ki=[].indexOf,Yi=!!Ki&&1/[1].indexOf(1,-0)<0,Zi=$i("indexOf");Je({target:"Array",proto:!0,forced:Yi||!Zi},{indexOf:function(e){return Yi?Ki.apply(this,arguments)||0:Wi(this,e,arguments.length>1?arguments[1]:undefined)}});var eo=[].join,to=h!=Object,no=$i("join",",");Je({target:"Array",proto:!0,forced:to||!no},{join:function(e){return eo.call(y(this),e===undefined?",":e)}});var io=function(e,t,n){var i=Q(t);i in e?te.f(e,i,f(0,n)):e[i]=n},oo=Qi("splice"),ro=Math.max,ao=Math.min;Je({target:"Array",proto:!0,forced:!oo},{splice:function(e,t){var n,i,o,r,a,s,u=P(this),c=Te(u.length),l=Ae(e,c),d=arguments.length;if(0===d?n=i=0:1===d?(n=0,i=c-l):(n=d-2,i=ao(ro(ke(t),0),c-l)),c+n-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=zi(u,i),r=0;r<i;r++)(a=l+r)in u&&io(o,r,u[a]);if(o.length=i,n<i){for(r=l;r<c-i;r++)s=r+n,(a=r+i)in u?u[s]=u[a]:delete u[s];for(r=c;r>c-i+n;r--)delete u[r-1]}else if(n>i)for(r=c-i;r>l;r--)s=r+n-1,(a=r+i-1)in u?u[s]=u[a]:delete u[s];for(r=0;r<n;r++)u[r+l]=arguments[r+2];return u.length=c-i+n,o}});var so=te.f,uo=Function.prototype,co=uo.toString,lo=/^\s*function ([^ (]*)/;u&&!("name"in uo)&&so(uo,"name",{configurable:!0,get:function(){try{return co.call(this).match(lo)[1]}catch(Qr){return""}}});var fo=Object.assign,po=Object.defineProperty,vo=!fo||s((function(){if(u&&1!==fo({b:1},fo(po({},"a",{enumerable:!0,get:function(){po(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=fo({},e)[n]||"abcdefghijklmnopqrst"!=et(fo({},t)).join("")}))?function(e,t){for(var n=P(e),i=arguments.length,o=1,r=De.f,a=d.f;i>o;)for(var s,c=h(arguments[o++]),l=r?et(c).concat(r(c)):et(c),f=l.length,p=0;f>p;)s=l[p++],u&&!a.call(c,s)||(n[s]=c[s]);return n}:fo;Je({target:"Object",stat:!0,forced:Object.assign!==vo},{assign:vo});var mo=s((function(){et(1)}));Je({target:"Object",stat:!0,forced:mo},{keys:function(e){return et(P(e))}});var ho=function(){var e=Z(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},go=function(e,t){return RegExp(e,t)},yo={UNSUPPORTED_Y:s((function(){var e=go("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:s((function(){var e=go("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},wo=s((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),_o=s((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),bo=_e.get,xo=RegExp.prototype.exec,So=j("native-string-replace",String.prototype.replace),ko=xo,Eo=function(){var e=/a/,t=/b*/g;return xo.call(e,"a"),xo.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),To=yo.UNSUPPORTED_Y||yo.BROKEN_CARET,Oo=/()??/.exec("")[1]!==undefined;(Eo||Oo||To||wo||_o)&&(ko=function(e){var t,n,i,o,r,a,s,u=this,c=bo(u),l=St(e),d=c.raw;if(d)return d.lastIndex=u.lastIndex,t=ko.call(d,l),u.lastIndex=d.lastIndex,t;var f=c.groups,p=To&&u.sticky,v=ho.call(u),m=u.source,h=0,g=l;if(p&&(-1===(v=v.replace("y","")).indexOf("g")&&(v+="g"),g=l.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==l.charAt(u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,h++),n=new RegExp("^(?:"+m+")",v)),Oo&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Eo&&(i=u.lastIndex),o=xo.call(p?n:u,g),p?o?(o.input=o.input.slice(h),o[0]=o[0].slice(h),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Eo&&o&&(u.lastIndex=u.global?o.index+o[0].length:i),Oo&&o&&o.length>1&&So.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)arguments[r]===undefined&&(o[r]=undefined)})),o&&f)for(o.groups=a=ut(null),r=0;r<f.length;r++)a[(s=f[r])[0]]=o[s[1]];return o});var Co=ko;Je({target:"RegExp",proto:!0,forced:/./.exec!==Co},{exec:Co});var Ao=F("species"),Io=RegExp.prototype,Mo=function(e,t,n,i){var o=F(e),r=!s((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=r&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ao]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!r||!a||n){var u=/./[o],c=t(o,""[e],(function(e,t,n,i,o){var a=t.exec;return a===Co||a===Io.exec?r&&!o?{done:!0,value:u.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}));be(String.prototype,e,c[0]),be(Io,o,c[1])}i&&ne(Io[o],"sham",!0)},Lo=Oi.charAt,jo=function(e,t,n){return t+(n?Lo(e,t).length:1)},Po=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==v(e))throw TypeError("RegExp#exec called on incompatible receiver");return Co.call(e,t)};Mo("match",(function(e,t,n){return[function(t){var n=g(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,n):new RegExp(t)[e](St(n))},function(e){var i=Z(this),o=St(e),r=n(t,i,o);if(r.done)return r.value;if(!i.global)return Po(i,o);var a=i.unicode;i.lastIndex=0;for(var s,u=[],c=0;null!==(s=Po(i,o));){var l=St(s[0]);u[c]=l,""===l&&(i.lastIndex=jo(o,Te(i.lastIndex),a)),c++}return 0===c?null:u}]}));var Ro=F("match"),No=function(e){var t;return w(e)&&((t=e[Ro])!==undefined?!!t:"RegExp"==v(e))},Do=yo.UNSUPPORTED_Y,qo=[].push,Uo=Math.min;Mo("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=St(g(this)),o=n===undefined?4294967295:n>>>0;if(0===o)return[];if(e===undefined)return[i];if(!No(e))return t.call(i,e,o);for(var r,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,d=new RegExp(e.source,c+"g");(r=Co.call(d,i))&&!((a=d.lastIndex)>l&&(u.push(i.slice(l,r.index)),r.length>1&&r.index<i.length&&qo.apply(u,r.slice(1)),s=r[0].length,l=a,u.length>=o));)d.lastIndex===r.index&&d.lastIndex++;return l===i.length?!s&&d.test("")||u.push(""):u.push(i.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(undefined,0).length?function(e,n){return e===undefined&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=g(this),r=t==undefined?undefined:t[e];return r!==undefined?r.call(t,o,n):i.call(St(o),t,n)},function(e,o){var r=Z(this),a=St(e),s=n(i,r,a,o,i!==t);if(s.done)return s.value;var u=sn(r,RegExp),c=r.unicode,l=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Do?"g":"y"),d=new u(Do?"^(?:"+r.source+")":r,l),f=o===undefined?4294967295:o>>>0;if(0===f)return[];if(0===a.length)return null===Po(d,a)?[a]:[];for(var p=0,v=0,m=[];v<a.length;){d.lastIndex=Do?0:v;var h,g=Po(d,Do?a.slice(v):a);if(null===g||(h=Uo(Te(d.lastIndex+(Do?v:0)),a.length))===p)v=jo(a,v,c);else{if(m.push(a.slice(p,v)),m.length===f)return m;for(var y=1;y<=g.length-1;y++)if(m.push(g[y]),m.length===f)return m;v=p=h}}return m.push(a.slice(p)),m}]}),!!s((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Do);var Bo=Qi("slice"),zo=F("species"),Ho=[].slice,Fo=Math.max;Je({target:"Array",proto:!0,forced:!Bo},{slice:function(e,t){var n,i,o,r=y(this),a=Te(r.length),s=Ae(e,a),u=Ae(t===undefined?a:t,a);if(Ui(r)&&("function"!=typeof(n=r.constructor)||n!==Array&&!Ui(n.prototype)?w(n)&&null===(n=n[zo])&&(n=undefined):n=undefined,n===Array||n===undefined))return Ho.call(r,s,u);for(i=new(n===undefined?Array:n)(Fo(u-s,0)),o=0;s<u;s++,o++)s in r&&io(i,o,r[s]);return i.length=o,i}});var Go=Date.prototype,Vo=Go.toString,Qo=Go.getTime;"Invalid Date"!=String(new Date(NaN))&&be(Go,"toString",(function(){var e=Qo.call(this);return e==e?Vo.call(this):"Invalid Date"}));var Xo="\t\n\x0B\f\r 聽釟€鈥€鈥佲€傗€冣€勨€呪€嗏€団€堚€夆€娾€仧銆€\u2028\u2029\ufeff",Jo="["+Xo+"]",$o=RegExp("^"+Jo+Jo+"*"),Wo=RegExp(Jo+Jo+"*$"),Ko=function(e){return function(t){var n=St(g(t));return 1&e&&(n=n.replace($o,"")),2&e&&(n=n.replace(Wo,"")),n}},Yo={start:Ko(1),end:Ko(2),trim:Ko(3)}.trim,Zo=a.parseInt,er=/^[+-]?0[Xx]/,tr=8!==Zo(Xo+"08")||22!==Zo(Xo+"0x16")?function(e,t){var n=Yo(St(e));return Zo(n,t>>>0||(er.test(n)?16:10))}:Zo;Je({global:!0,forced:parseInt!=tr},{parseInt:tr});var nr=te.f,ir=Ne.f,or=_e.enforce,rr=F("match"),ar=a.RegExp,sr=ar.prototype,ur=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,cr=/a/g,lr=/a/g,dr=new ar(cr)!==cr,fr=yo.UNSUPPORTED_Y,pr=u&&(!dr||fr||wo||_o||s((function(){return lr[rr]=!1,ar(cr)!=cr||ar(lr)==lr||"/a/i"!=ar(cr,"i")})));if(Qe("RegExp",pr)){for(var vr=function(e,t){var n,i,o,r,a,s,u,c,l,d,f,p=this instanceof vr,v=No(e),m=t===undefined,h=[],g=e;if(!p&&v&&m&&e.constructor===vr)return e;if((v||e instanceof vr)&&(e=e.source,m&&(t="flags"in g?g.flags:ho.call(g))),e=e===undefined?"":St(e),t=t===undefined?"":St(t),g=e,wo&&"dotAll"in cr&&(i=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,fr&&"sticky"in cr&&(o=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),_o&&(e=(r=function(e){for(var t,n=e.length,i=0,o="",r=[],a={},s=!1,u=!1,c=0,l="";i<=n;i++){if("\\"===(t=e.charAt(i)))t+=e.charAt(++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:ur.test(e.slice(i+1))&&(i+=2,u=!0),o+=t,c++;continue;case">"===t&&u:if(""===l||N(a,l))throw new SyntaxError("Invalid capture group name");a[l]=!0,r.push([l,c]),u=!1,l="";continue}u?l+=t:o+=t}return[o,r]}(e))[0],h=r[1]),u=ar(e,t),c=p?this:sr,l=vr,Ze&&"function"==typeof(d=c.constructor)&&d!==l&&w(f=d.prototype)&&f!==l.prototype&&Ze(u,f),a=u,(i||o||h.length)&&(s=or(a),i&&(s.dotAll=!0,s.raw=vr(function(e){for(var t,n=e.length,i=0,o="",r=!1;i<=n;i++)"\\"!==(t=e.charAt(i))?r||"."!==t?("["===t?r=!0:"]"===t&&(r=!1),o+=t):o+="[\\s\\S]":o+=t+e.charAt(++i);return o}(e),n)),o&&(s.sticky=!0),h.length&&(s.groups=h)),e!==g)try{ne(a,"source",""===g?"(?:)":g)}catch(Qr){}return a},mr=function(e){e in vr||nr(vr,e,{configurable:!0,get:function(){return ar[e]},set:function(t){ar[e]=t}})},hr=ir(ar),gr=0;hr.length>gr;)mr(hr[gr++]);sr.constructor=vr,vr.prototype=sr,be(a,"RegExp",vr)}Wt("RegExp");var yr=RegExp.prototype,wr=yr.toString,_r=s((function(){return"/a/b"!=wr.call({source:"a",flags:"b"})})),br="toString"!=wr.name;(_r||br)&&be(RegExp.prototype,"toString",(function(){var e=Z(this),t=St(e.source),n=e.flags;return"/"+t+"/"+St(n===undefined&&e instanceof RegExp&&!("flags"in yr)?ho.call(e):n)}),{unsafe:!0});var xr=Math.floor,Sr="".replace,kr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Er=/\$([$&'`]|\d{1,2})/g,Tr=function(e,t,n,i,o,r){var a=n+e.length,s=i.length,u=Er;return o!==undefined&&(o=P(o),u=kr),Sr.call(r,u,(function(r,u){var c;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":c=o[u.slice(1,-1)];break;default:var l=+u;if(0===l)return r;if(l>s){var d=xr(l/10);return 0===d?r:d<=s?i[d-1]===undefined?u.charAt(1):i[d-1]+u.charAt(1):r}c=i[l-1]}return c===undefined?"":c}))},Or=F("replace"),Cr=Math.max,Ar=Math.min,Ir="$0"==="a".replace(/./,"$0"),Mr=!!/./[Or]&&""===/./[Or]("a","$0");Mo("replace",(function(e,t,n){var i=Mr?"$":"$0";return[function(e,n){var i=g(this),o=e==undefined?undefined:e[Or];return o!==undefined?o.call(e,i,n):t.call(St(i),e,n)},function(e,o){var r=Z(this),a=St(e);if("string"==typeof o&&-1===o.indexOf(i)&&-1===o.indexOf("$<")){var s=n(t,r,a,o);if(s.done)return s.value}var u="function"==typeof o;u||(o=St(o));var c=r.global;if(c){var l=r.unicode;r.lastIndex=0}for(var d=[];;){var f=Po(r,a);if(null===f)break;if(d.push(f),!c)break;""===St(f[0])&&(r.lastIndex=jo(a,Te(r.lastIndex),l))}for(var p,v="",m=0,h=0;h<d.length;h++){f=d[h];for(var g=St(f[0]),y=Cr(Ar(ke(f.index),a.length),0),w=[],_=1;_<f.length;_++)w.push((p=f[_])===undefined?p:String(p));var b=f.groups;if(u){var x=[g].concat(w,y,a);b!==undefined&&x.push(b);var S=St(o.apply(undefined,x))}else S=Tr(g,a,y,w,b,o);y>=m&&(v+=a.slice(m,y)+S,m=y+g.length)}return v+a.slice(m)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ir||Mr);var Lr=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Mo("search",(function(e,t,n){return[function(t){var n=g(this),i=t==undefined?undefined:t[e];return i!==undefined?i.call(t,n):new RegExp(t)[e](St(n))},function(e){var i=Z(this),o=St(e),r=n(t,i,o);if(r.done)return r.value;var a=i.lastIndex;Lr(a,0)||(i.lastIndex=0);var s=Po(i,o);return Lr(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var jr=[].slice,Pr=/MSIE .\./.test(x),Rr=function(e){return function(t,n){var i=arguments.length>2,o=i?jr.call(arguments,2):undefined;return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};Je({global:!0,bind:!0,forced:Pr},{setTimeout:Rr(a.setTimeout),setInterval:Rr(a.setInterval)}),function(e){var t,n,i=!1,o=!1,r=300,a=1e3,s=[],u={},c=[],l=null,d=!0,f=0,p=null,v=0,m=0,h=0,g=60,y=20,w=0,_=60,b=10,x=0,S=!0,k=!1,E={},T={},O=/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,C=/(CountlySiteBot|nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver|bingbot|Google Web Preview|Mediapartners-Google|AdsBot-Google|Baiduspider|Ezooms|YahooSeeker|AltaVista|AVSearch|Mercator|Scooter|InfoSeek|Ultraseek|Lycos|Wget|YandexBot|Yandex|YaDirectFetcher|SiteBot|Exabot|AhrefsBot|MJ12bot|TurnitinBot|magpie-crawler|Nutch Crawler|CMS Crawler|rogerbot|Domnutch|ssearch_bot|XoviBot|netseer|digincore|fr-crawler|wesee|AliasIO)/,A=!0;e.requestQueue=[],e.eventQueue=[],e.features=["sessions","events","views","scrolls","clicks","forms","crashes","attribution","users","star-rating","location"];for(var I,M={},L=0;L<e.features.length;L++)M[e.features[L]]={};e.init=function(t,o){if(!i&&(n=G(),i=!0,u={},r=(t=t||{}).interval||e.interval||r,a=t.queue_size||e.queue_size||a,g=t.fail_timeout||e.fail_timeout||g,y=t.inactivity_time||e.inactivity_time||y,_=t.session_update||e.session_update||_,b=t.max_events||e.max_events||b,e.ignore_prefetch=t.ignore_prefetch||e.ignore_prefetch||!0,e.debug=t.debug||e.debug||!1,e.app_key=t.app_key||e.app_key||null,e.device_id=t.device_id||e.device_id||B(),e.url=$(t.url||e.url||""),e.app_version=t.app_version||e.app_version||"1.0",e.country_code=t.country_code||e.country_code||null,e.city=t.city||e.city||null,e.ip_address=t.ip_address||e.ip_address||null,e.ignore_bots=t.ignore_bots||e.ignore_bots||!0,e.force_post=t.force_post||e.force_post||!1,e.q=e.q||[],e.onload=e.onload||[],e.ignore_visitor=t.ignore_visitor||e.ignore_visitor||!1,e.require_consent=t.require_consent||e.require_consent||!1,e.requestQueue=re("cly_queue")||[],e.eventQueue=re("cly_event")||[],e.common_data=t.common_data||e.common_data||{},t.ignore_referrers&&t.ignore_referrers.constructor===Array?c=t.ignore_referrers:e.ignore_referrers&&e.ignore_referrers.constructor===Array&&(c=e.ignore_referrers),""===e.url&&(F("Please provide server URL"),e.ignore_visitor=!0),re("cly_ignore")&&(e.ignore_visitor=!0),e.ignore_prefetch&&"undefined"!=typeof document.visibilityState&&"prerender"===document.visibilityState&&(e.ignore_visitor=!0),e.ignore_bots&&C.test(navigator.userAgent)&&(e.ignore_visitor=!0),window.name&&0===window.name.indexOf("cly:")?e.passed_data=JSON.parse(window.name.replace("cly:","")):location.hash&&0===location.hash.indexOf("#cly:")&&(e.passed_data=JSON.parse(location.hash.replace("#cly:",""))),e.passed_data&&e.passed_data.token&&e.passed_data.purpose&&(e.passed_data.token!=re("cly_old_token")&&(ie(e.passed_data.token),re("cly_old_token",e.passed_data.token)),"heatmap"===e.passed_data.purpose&&(e.ignore_visitor=!0,se(),ae(e.url+"/views/heatmap.js",ue))),!e.ignore_visitor)){F("Countly initialized"),e.onload.constructor!==Array&&(e.onload=[]),e.q.constructor!==Array&&(e.q=[]),U(),re("cly_id",e.device_id);var s=0;if(location.search){var l=location.search.substring(1).split("&");for(s=0;s<l.length;s++){var d=l[s].split("=");"cly_id"==d[0]?re("cly_cmp_id",d[1]):"cly_uid"==d[0]&&re("cly_cmp_uid",d[1])}}if("undefined"!=typeof e.onload&&e.onload.length>0){for(s=0;s<e.onload.length;s++)"function"==typeof e.onload[s]&&e.onload[s]();e.onload=[]}}},e.group_features=function(e){if(e)for(var t in e)M[t]?F("Feature name "+t+" is already reserved"):"string"==typeof e[t]?M[t]={features:[e[t]]}:e[t]&&e[t].constructor===Array&&e[t].length?M[t]={features:e[t]}:F("Incorrect feature list for "+t+" value: "+e[t]);else F("Incorrect features: "+e)},e.check_consent=function(t){return!e.require_consent||(M[t]?!(!M[t]||!M[t].optin):(F("No feature available for "+t),!1))},e.check_any_consent=function(){if(!e.require_consent)return!0;for(var t in M)if(M[feature]&&M[feature].optin)return!0;return!1},e.add_consent=function(t){if(F("Adding consent for "+t),t.constructor===Array)for(var n=0;n<t.length;n++)e.add_consent(t[n]);else M[t]?M[t].features?(M[t].optin=!0,e.add_consent(M[t].features)):!0!==M[t].optin&&(E[t]=!0,M[t].optin=!0,j(),setTimeout((function(){"sessions"===t&&T.begin_session?(e.begin_session.apply(e,T.begin_session),T.begin_session=null):"views"===t&&T.track_pageview&&(p=null,e.track_pageview.apply(e,T.track_pageview),T.track_pageview=null),T.change_id&&(e.change_id.apply(e,T.change_id),T.change_id=null)}),1)):F("No feature available for "+t)},e.remove_consent=function(t){if(F("Removing consent for "+t),t.constructor===Array)for(var n=0;n<t.length;n++)e.remove_consent(t[n]);else M[t]?(M[t].features?e.remove_consent(M[t].features):!1!==M[t].optin&&(E[t]=!1,j()),M[t].optin=!1):F("No feature available for "+t)};var j=function(){I&&(clearTimeout(I),I=null),I=setTimeout((function(){oe(E)&&(q({consent:JSON.stringify(E)}),E={})}),1e3)};function P(t){if(!e.ignore_visitor)if(t.key){t.count||(t.count=1);var n=W(t,["key","count","sum","dur","dow","tz","segmentation","path_trace","session_id","type","module_name","utm","domInfo"]);n.timestamp=V();var i=new Date;n.hour=i.getHours(),n.dow=i.getDay(),n.tz=0-i.getTimezoneOffset(),e.eventQueue.push(n),re("cly_event",e.eventQueue),F("Adding event: ",t)}else F("Event must have key property")}e.begin_session=function(n){if(e.check_consent("sessions")){if(!o){F("Session started"),t=G(),o=!0,d=!n;var i={begin_session:1};i.metrics=JSON.stringify(H()),q(i)}}else T.begin_session=arguments},e.session_duration=function(t){e.check_consent("sessions")&&o&&(F("Session extended",t),q({session_duration:t}))},e.end_session=function(n){e.check_consent("sessions")&&o&&(n=n||G()-t,F("Ending session"),D(),o=!1,q({end_session:1,session_duration:n}))},e.change_id=function(t,n){if(e.device_id!=t){n||(e.end_session(),u={});var i=e.device_id;e.device_id=t,re("cly_id",e.device_id),F("Changing id"),n?e.check_any_consent()?q({old_device_id:i}):T.change_id=arguments:e.begin_session(!d)}},e.change_id_only=function(t){if(e.device_id!=t){e.device_id;e.device_id=t,re("cly_id",e.device_id),F("Changing id only")}},e.add_event=function(t){e.check_consent("events")&&P(t)},e.start_event=function(e){u[e]?F("Timed event with key "+e+" already started"):u[e]=G()},e.end_event=function(t){"string"==typeof t&&(t={key:t}),t.key?u[t.key]?(t.dur=G()-u[t.key],e.add_event(t),delete u[t.key]):F("Timed event with key "+t.key+" was not started"):F("Event must have key property")},e.user_details=function(t){if(e.check_consent("users")){F("Adding userdetails: ",t);q({user_details:JSON.stringify(W(t,["name","username","email","organization","phone","picture","gender","byear","custom"]))})}},e.report_conversion=function(t,n){e.check_consent("attribution")&&(t=t||re("cly_cmp_id")||"cly_organic",n=n||re("cly_cmp_uid"),t&&n?q({campaign_id:t,campaign_user:n}):t&&q({campaign_id:t}))};var R={},N=function(t,n,i){e.check_consent("users")&&(R[t]||(R[t]={}),"$push"==i||"$pull"==i||"$addToSet"==i?(R[t][i]||(R[t][i]=[]),R[t][i].push(n)):R[t][i]=n)};function D(){if(p){var t={name:p,segment:void 0};e.check_consent("views")&&P({key:"[CLY]_view",dur:G()-v,segmentation:t}),p=null}}function q(t){if(!e.ignore_visitor)if(e.app_key&&e.device_id){t.app_key=e.app_key,t.device_id=e.device_id,t.version=e.app_version,t.common=JSON.stringify(e.common_data),e.check_consent("location")?(e.country_code&&(t.country_code=e.country_code),e.city&&(t.city=e.city),null!==e.ip_address&&(t.ip_address=e.ip_address)):t.location="",t.timestamp=V();var n=new Date;t.hour=n.getHours(),t.dow=n.getDay(),t.tz=0-n.getTimezoneOffset(),e.requestQueue.length>a&&e.requestQueue.shift(),e.requestQueue.push(t),re("cly_queue",e.requestQueue,!0)}else F("app_key or device_id is missing")}function U(){if(e.ignore_visitor)k=!1;else{k=!0;var n=0;if("undefined"!=typeof e.onload&&e.onload.length>0){for(n=0;n<e.onload.length;n++)"function"==typeof e.onload[n]&&e.onload[n]();e.onload=[]}if("undefined"!=typeof e.q&&e.q.length>0){var i,a=e.q;for(e.q=[],n=0;n<a.length;n++)if(F("Processing queued call",i=a[n]),"function"==typeof i)i();else if(i.constructor===Array&&i.length>0)if("undefined"!=typeof e[i[0]])e[i[0]].apply(null,i.slice(1));else{var s=i[0].replace("userData.","");"undefined"!=typeof e.userData[s]&&e.userData[s].apply(null,i.slice(1))}}if(o&&d&&A){var u=G();u-t>_&&(e.session_duration(u-t),t=u)}if(e.eventQueue.length>0){if(e.eventQueue.length<=b)q({events:JSON.stringify(e.eventQueue)}),e.eventQueue=[];else{var c=e.eventQueue.splice(0,b);q({events:JSON.stringify(c)})}re("cly_event",e.eventQueue)}if(e.requestQueue.length>0&&S&&G()>h){S=!1;var l=e.requestQueue.shift();oe(E)&&(I&&(clearTimeout(I),I=null),l.consent=JSON.stringify(E),E={}),F("Processing request",l),X(l,(function(t,n){F("Request Finished",n,t),t&&(e.requestQueue.unshift(n),h=G()+g),re("cly_queue",e.requestQueue,!0),S=!0}))}setTimeout(U,r)}}function B(){return re("cly_id")||z()}function z(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))}function H(){var t={};if(t._app_version=e.app_version,t._ua=navigator.userAgent,screen.width){var n=screen.width?parseInt(screen.width):0,i=screen.height?parseInt(screen.height):0;if(0!==n&&0!==i){if(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)&&window.devicePixelRatio)n=Math.round(n*window.devicePixelRatio),i=Math.round(i*window.devicePixelRatio);else if(90===Math.abs(window.orientation)){var o=n;n=i,i=o}t._resolution=n+"x"+i}}window.devicePixelRatio&&(t._density=window.devicePixelRatio);var r=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage;if(void 0!==r&&(t._locale=r),"undefined"!=typeof document.referrer&&document.referrer.length){var a=O.exec(document.referrer);if(a&&a[11]&&a[11]!=window.location.hostname){var s=!1;if(c&&c.length)for(var u=0;u<c.length;u++)try{if(new RegExp(c[u]).test(document.referrer)){F("Ignored:",document.referrer),s=!0;break}}catch(l){}s||(t._store=document.referrer)}}return F("Got metrics",t),t}function F(){e.debug&&"undefined"!=typeof console&&arguments[1]&&"object"==typeof arguments[1]&&(arguments[1]=JSON.stringify(arguments[1]))}function G(){return Math.floor((new Date).getTime()/1e3)}function V(){var e=(new Date).getTime();return x>=e?x++:x=e,x}function Q(t,i,o){if(e.check_consent("crashes")&&t){o=o||l;var r="";"object"==typeof t?"undefined"!=typeof t.stack?r=t.stack:("undefined"!=typeof t.name&&(r+=t.name+":"),"undefined"!=typeof t.message&&(r+=t.message+"\n"),"undefined"!=typeof t.fileName&&(r+="in "+t.fileName+"\n"),"undefined"!=typeof t.lineNumber&&(r+="on "+t.lineNumber),"undefined"!=typeof t.columnNumber&&(r+=":"+t.columnNumber)):r=t+"",i=!!i;var a=H(),u={_resolution:a._resolution,_error:r,_app_version:a._app_version,_run:G()-n,_not_os_specific:!0},c=navigator.battery||navigator.webkitBattery||navigator.mozBattery||navigator.msBattery;c&&(u._bat=Math.floor(100*c.level)),"undefined"!=typeof navigator.onLine&&(u._online=!!navigator.onLine),u._background=!document.hasFocus(),s.length>0&&(u._logs=s.join("\n")),s=[],u._nonfatal=i,u._view=(window.location.pathname||"")+(window.location.search||"")+(window.location.hash||""),void 0!==o&&(u._custom=o);try{var d=document.createElement("canvas").getContext("experimental-webgl");u._opengl=d.getParameter(d.VERSION)}catch(f){}q({crash:JSON.stringify(u)})}}function X(t,n){try{F("Sending XML HTTP request");var i=J(t),o="GET";if((i.length>=2e3||e.force_post)&&(o="POST"),/msie (9.0|8.0|7.0|6.0);/gi.test(navigator.userAgent)){if(F("IE鍙戦€�"),"XDomainRequest"in window&&null!==window.XDomainRequest){var r=new XDomainRequest;"GET"===o?r.open("GET",e.url+"/i?"+i,!0):(r.contentType="text/plain",r.open("POST",e.url+"/i",!0)),r.timeout=3e5,r.onload=function(){"function"==typeof n&&n(!1,t)},r.onprogress=function(){},r.onerror=function(){F("Failed Server XDR HTTP request"),"function"==typeof n&&n(!0,t)},r.ontimeout=function(){F("Timeout Server XDR HTTP request"),"function"==typeof n&&n(!0,t)},setTimeout((function(){"GET"==o?r.send():r.send(i)}),0)}}else{var a=window.XMLHttpRequest?new window.XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;"GET"===o?a.open("GET",e.url+"/i?"+i,!0):(a.open("POST",e.url+"/i",!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),a.onreadystatechange=function(){4===this.readyState&&this.status>=200&&this.status<300?"function"==typeof n&&n(!1,t):4===this.readyState&&(F("Failed Server XML HTTP request",this.status),"function"==typeof n&&n(!0,t))},"GET"==o?a.send():a.send(i)}}catch(s){F("Failed XML HTTP request",s),"function"==typeof n&&n(!0,t)}}function J(e){var t=[];for(var n in e)t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function $(e){return"/"==e.substr(e.length-1)?e.substr(0,e.length-1):e}function W(e,t){for(var n,i={},o=0;o<t.length;o++)"undefined"!=typeof e[n=t[o]]&&(i[n]=e[n]);return i}e.userData={set:function(e,t){R[e]=t},set_once:function(e,t){N(e,1,"$setOnce")},increment:function(e){N(e,1,"$inc")},increment_by:function(e,t){N(e,t,"$inc")},multiply:function(e,t){N(e,t,"$mul")},max:function(e,t){N(e,t,"$max")},min:function(e,t){N(e,t,"$min")},push:function(e,t){N(e,t,"$push")},push_unique:function(e,t){N(e,t,"$addToSet")},pull:function(e,t){N(e,t,"$pull")},save:function(){e.check_consent("users")&&q({user_details:JSON.stringify({custom:R})}),R={}}},e.track_errors=function(e){l=e,window.onerror=function(e,t,n,i,o){if(void 0!==o)Q(o,!1);else{var r="";void 0!==e&&(r+=e+"\n"),void 0!==t&&(r+="at "+t),void 0!==n&&(r+=":"+n),void 0!==(i=i||window.event&&window.event.errorCharacter)&&(r+=":"+i),r+="\n";try{for(var a=[],s=arguments.callee.caller;s;)a.push(s.name),s=s.caller;r+=a.join("\n")}catch(u){}Q(r,!1)}}},e.log_error=function(e,t){Q(e,!0,t)},e.add_log=function(t){e.check_consent("crashes")&&s.push(t)},e.stop_time=function(){A&&(A=!1,f=G()-t,m=G()-v)},e.start_time=function(){A||(A=!0,t=G()-f,v=G()-m,m=0)},e.track_sessions=function(){e.begin_session(),e.start_time(),K(window,"beforeunload",(function(){e.end_session()})),K(window,"unload",(function(){e.end_session()}));var t="hidden";function n(){document[t]?e.stop_time():e.start_time()}function i(){w>=y&&e.start_time(),w=0}t in document?document.addEventListener("visibilitychange",n):(t="mozHidden")in document?document.addEventListener("mozvisibilitychange",n):(t="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",n):(t="msHidden")in document?document.addEventListener("msvisibilitychange",n):"onfocusin"in document?(K(window,"focusin",(function(){e.start_time()})),K(window,"focusout",(function(){e.stop_time()}))):(K(window,"focus",(function(){e.start_time()})),K(window,"blur",(function(){e.stop_time()})),K(window,"pageshow",(function(){e.start_time()})),K(window,"pagehide",(function(){e.stop_time()}))),K(window,"mousemove",i),K(window,"click",i),K(window,"keydown",i),K(window,"scroll",i),setInterval((function(){++w>=y&&e.stop_time()}),6e4)},e.track_pageview=function(t,n){if(D(),t&&t.constructor===Array&&(n=t,t=null),t=t||window.location.pathname,n&&n.length)for(var i=0;i<n.length;i++)try{var o=new RegExp(n[i]);if(o.test(t))return void F("Ignored:",t)}catch(s){}p=t,v=G();var r={name:t,visit:1,domain:window.location.hostname};if("undefined"!=typeof document.referrer&&document.referrer.length){var a=O.exec(document.referrer);a&&a[11]&&a[11]!=window.location.hostname&&(r.start=1)}e.check_consent("views")?P({key:"[CLY]_view",segmentation:r}):T.track_pageview=arguments},e.track_view=function(t,n){e.track_pageview(t,n)},e.track_clicks=function(t){t=t||document;var n=!0;K(t,"click",(function(t){if(n){if(n=!1,Z(t),"undefined"!=typeof t.pageX&&"undefined"!=typeof t.pageY){var i=ee(),o=te();e.check_consent("clicks")&&P({key:"[CLY]_action",segmentation:{type:"click",x:t.pageX,y:t.pageY,width:o,height:i,domain:window.location.hostname,view:window.location.pathname}})}setTimeout((function(){n=!0}),1e3)}}))},e.track_scrolls=function(t){t=t||window;var n=!0,i=0;function o(t){if(n){n=!1;var o=ee(),r=te(),a=ne();e.check_consent("scrolls")&&P({key:"[CLY]_action",segmentation:{type:"scroll",y:i+a,width:r,height:o,domain:window.location.hostname,view:window.location.pathname}})}}K(t,"scroll",(function(e){i=Math.max(i,window.scrollY,document.body.scrollTop,document.documentElement.scrollTop)})),K(t,"beforeunload",o),K(t,"unload",o)},e.track_links=function(t){t=t||document,K(t,"click",(function(t){var n=Y(t).closest("a");n&&(Z(t),e.check_consent("clicks")&&P({key:"linkClick",segmentation:{href:n.href,text:n.innerText,id:n.id,x:t.pageX,y:t.pageY,view:window.location.pathname}}),"undefined"==typeof n.href||"_blank"===n.target||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||0!==n.href.replace(window.location.href.split("#")[0],"").indexOf("#")&&e.end_session())}))},e.track_forms=function(t){function n(e){return e.name||e.id||e.type||e.nodeName}t=t||document,K(t,"submit",(function(t){var i,o=Y(t),r={id:o.id,name:o.name,action:o.action,method:o.method,view:window.location.pathname};if("undefined"!=typeof o.elements){for(var a=0;a<o.elements.length;a++)if((i=o.elements[a])&&"password"!=i.type)if("undefined"==typeof r["input:"+n(i)]&&(r["input:"+n(i)]=[]),"select"==i.nodeName.toLowerCase())if("undefined"!=typeof i.multiple){var s=[];if("undefined"!=typeof i.options)for(var u=0;u<i.options.length;u++)i.options[u].selected&&s.push(i.options[u].value);r["input:"+n(i)].push(s.join(", "))}else r["input:"+n(i)].push(i.options[i.selectedIndex].value);else"input"==i.nodeName.toLowerCase()?"undefined"!=typeof i.type&&("checkbox"==i.type.toLowerCase()||"radio"==i.type.toLowerCase())?i.checked&&r["input:"+n(i)].push(i.value):r["input:"+n(i)].push(i.value):("textarea"==i.nodeName.toLowerCase()||"undefined"!=typeof i.value)&&r["input:"+n(i)].push(i.value);for(var c in r)"undefined"!=typeof r[c].join&&(r[c]=r[c].join(", "))}e.check_consent("forms")&&P({key:"formSubmit",segmentation:r}),e.end_session()}))},e.collect_from_forms=function(t,n){t=t||document,K(t,"submit",(function(i){var o,r=Y(i),a={},s=!1;if("undefined"!=typeof r.elements){var u,c,l={},d=t.getElementsByTagName("LABEL");for(u=0;u<d.length;u++)d[u].htmlFor&&""!==d[u].htmlFor&&(l[d[u].htmlFor]=d[u].innerText||d[u].textContent||d[u].innerHTML);for(u=0;u<r.elements.length;u++)if((o=r.elements[u])&&"password"!=o.type&&-1==o.className.indexOf("cly_user_ignore")){var f="";if("select"==o.nodeName.toLowerCase())if("undefined"!=typeof o.multiple){var p=[];if("undefined"!=typeof o.options)for(c=0;c<o.options.length;c++)o.options[c].selected&&p.push(o.options[c].value);f=p.join(", ")}else f=o.options[o.selectedIndex].value;else"input"==o.nodeName.toLowerCase()?"undefined"!=typeof o.type&&("checkbox"==o.type.toLowerCase()||"radio"==o.type.toLowerCase())?o.checked&&(f=o.value):f=o.value:("textarea"==o.nodeName.toLowerCase()||"undefined"!=typeof o.value)&&(f=o.value);if(o.className&&-1!=o.className.indexOf("cly_user_")){var v=o.className.split(" ");for(c=0;c<v.length;c++)if(0===v[c].indexOf("cly_user_")){a[v[c].replace("cly_user_","")]=f,s=!0;break}}else o.type&&"email"==o.type.toLowerCase()||o.name&&-1!=o.name.toLowerCase().indexOf("email")||o.id&&-1!=o.id.toLowerCase().indexOf("email")||o.id&&l[o.id]&&-1!=l[o.id].toLowerCase().indexOf("email")||/[^@\s]+@[^@\s]+\.[^@\s]+/.test(f)?(a.email||(a.email=f),s=!0):o.name&&-1!=o.name.toLowerCase().indexOf("username")||o.id&&-1!=o.id.toLowerCase().indexOf("username")||o.id&&l[o.id]&&-1!=l[o.id].toLowerCase().indexOf("username")?(a.username||(a.username=f),s=!0):o.name&&(-1!=o.name.toLowerCase().indexOf("tel")||-1!=o.name.toLowerCase().indexOf("phone")||-1!=o.name.toLowerCase().indexOf("number"))||o.id&&(-1!=o.id.toLowerCase().indexOf("tel")||-1!=o.id.toLowerCase().indexOf("phone")||-1!=o.id.toLowerCase().indexOf("number"))||o.id&&l[o.id]&&(-1!=l[o.id].toLowerCase().indexOf("tel")||-1!=l[o.id].toLowerCase().indexOf("phone")||-1!=l[o.id].toLowerCase().indexOf("number"))?(a.phone||(a.phone=f),s=!0):o.name&&(-1!=o.name.toLowerCase().indexOf("org")||-1!=o.name.toLowerCase().indexOf("company"))||o.id&&(-1!=o.id.toLowerCase().indexOf("org")||-1!=o.id.toLowerCase().indexOf("company"))||o.id&&l[o.id]&&(-1!=l[o.id].toLowerCase().indexOf("org")||-1!=l[o.id].toLowerCase().indexOf("company"))?(a.organization||(a.organization=f),s=!0):(o.name&&-1!=o.name.toLowerCase().indexOf("name")||o.id&&-1!=o.id.toLowerCase().indexOf("name")||o.id&&l[o.id]&&-1!=l[o.id].toLowerCase().indexOf("name"))&&(a.name||(a.name=""),a.name+=f+" ",s=!0)}}s&&(F("Gathered user data",a),n?e.user_details({custom:a}):e.user_details(a)),e.end_session()}))},e.opt_out=function(){e.ignore_visitor=!0,re("cly_ignore",!0)},e.opt_in=function(){re("cly_ignore",!1),e.ignore_visitor=!1,e.ignore_prefetch&&"undefined"!=typeof document.visibilityState&&"prerender"===document.visibilityState&&(e.ignore_visitor=!0),e.ignore_bots&&C.test(navigator.userAgent)&&(e.ignore_visitor=!0),e.ignore_visitor||k||U()},Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;for(e=e.toUpperCase();t;){if(t.nodeName.toUpperCase()==e)return t;t=t.parentElement}});var K=function(e,t,n){"undefined"!=typeof e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},Y=function(e){return e?"undefined"!=typeof e.target?e.target:e.srcElement:window.event.srcElement};function Z(e){return"undefined"==typeof e.pageY&&"number"==typeof e.clientX&&document.documentElement&&(e.pageX=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,e.pageY=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),e}function ee(){var e=document;return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))}function te(){var e=document;return Math.max(Math.max(e.body.scrollWidth,e.documentElement.scrollWidth),Math.max(e.body.offsetWidth,e.documentElement.offsetWidth),Math.max(e.body.clientWidth,e.documentElement.clientWidth))}function ne(){var e=document;return Math.min(Math.min(e.body.clientHeight,e.documentElement.clientHeight),Math.min(e.body.offsetHeight,e.documentElement.offsetHeight),window.innerHeight)}function ie(e){re("cly_token",e)}function oe(e){if(e)for(var t in e)return!0;return!1}var re=function(t,n,i,o){o||(t=e.app_key+"/"+t),i=i||!1;var r,a=!1;a=!0;try{"undefined"!=typeof localStorage&&localStorage.setItem("testLocal",!0)}catch(u){a=!1}if(null!=n&&("object"==typeof n&&(n=JSON.stringify(n)),a?localStorage.setItem(t,n):i||s(t,n,30)),void 0===n){a?r=localStorage.getItem(t):i||(r=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0,o=n.length;i<o;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}(t));try{r=JSON.parse(r)}catch(u){}return r}function s(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="; expires="+i.toGMTString();document.cookie=e+"="+t+o+"; path=/"}null===n&&(a?localStorage.removeItem(t):i||s(t,"",-1))};function ae(e,t){var n,i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src",e),t&&(i.onreadystatechange=i.onload=function(){n||t(),n=!0}),document.getElementsByTagName("head")[0].appendChild(i)}function se(){var e=document.getElementById("cly-loader");if(!e){F("setting up loader");var t="#cly-loader {height: 4px; width: 100%; position: absolute; z-index: 99999; overflow: hidden; background-color: #fff; top:0px; left:0px;}#cly-loader:before{display: block; position: absolute; content: ''; left: -200px; width: 200px; height: 4px; background-color: #2EB52B; animation: cly-loading 2s linear infinite;}@keyframes cly-loading { from {left: -200px; width: 30%;} 50% {width: 30%;} 70% {width: 70%;} 80% { left: 50%;} 95% {left: 120%;} to {left: 100%;}}",n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),n.appendChild(i),(e=document.createElement("div")).setAttribute("id","cly-loader"),document.body.appendChild(e)}e.style.display="block"}function ue(){var e=document.getElementById("cly-loader");e&&(e.style.display="none")}e._internals={store:re,getDocWidth:te,getDocHeight:ee,getViewportHeight:ne,get_page_coord:Z,get_event_target:Y,add_event:K,getProperties:W,stripTrailingSlash:$,prepareParams:J,sendXmlHttpRequest:X,recordError:Q,getMsTimestamp:V,getTimestamp:G,log:F,getMetrics:H,generateUUID:z,getId:B,heartBeat:U,toRequestQueue:q,reportViewDuration:D,loadJS:ae,loadCSS:function(e,t){var n,i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),t&&(i.onreadystatechange=i.onload=function(){n||t(),n=!0}),document.getElementsByTagName("head")[0].appendChild(i)},getLastView:function(){return p},setToken:ie,getToken:function(){var e=re("cly_token");return re("cly_token",null),e},showLoader:se,hideLoader:ue,add_cly_events:P}}(window.MailStatsCountly=window.MailStatsCountly||{});var Nr=Gi.map,Dr=Qi("map");Je({target:"Array",proto:!0,forced:!Dr},{map:function(e){return Nr(this,e,arguments.length>1?arguments[1]:undefined)}}),Je({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var qr=n((function(e,t){function n(){}t.__esModule=!0,t.isWeixin=function(){return/micromessenger/i.test(window.navigator.userAgent)},t.isMailMaster=function(){return/mailmaster/i.test(window.navigator.userAgent)},t.saveData=function(e,t){try{window.localStorage.setItem(e,t)}catch(Qr){}},t.getData=function(e){var t="";try{t=window.localStorage.getItem(e)||""}catch(Qr){}return t},t.getCookie=function(e){var t=e,n="";if(!t)return n;var i="undefined"!=typeof window?document.cookie:"";if(!i)return n;var o="(^| |;)"+encodeURIComponent(t)+"=([^;]*)(;|$)",r=new RegExp(o),a=i.match(r);a&&(n=decodeURIComponent(a[2]));return n},t.getUrlQuery=function(e){var t=window.location.search.substr(1).match(new RegExp("(^|&)"+e+"=([^&?]*)(|&|$)"));return null===t?"":decodeURIComponent(t[2])},t.addEvent=function(e,t,n,i){"undefined"!=typeof e.addEventListener?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)},t.getDocHeight=function(){return Math.max(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),Math.max(document.body.offsetHeight,document.documentElement.offsetHeight),Math.max(document.body.clientHeight,document.documentElement.clientHeight))},t.getDocWidth=function(){return Math.max(Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),Math.max(document.body.clientWidth,document.documentElement.clientWidth))},t.uuid=function(e,t){var n,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||i.length,e)for(n=0;n<e;n++)o[n]=i[0|Math.random()*t];else{var r=void 0;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",n=0;n<36;n++)o[n]||(r=0|16*Math.random(),o[n]=i[19==n?3&r|8:r])}return o.join("")},t.noop=n,t.loadJs=function(e,t,i){void 0===t&&(t=n);void 0===i&&(i=n);if(e){var o=document.createElement("script");o.setAttribute("type","text/javascript"),o.readyState&&o.onreadyStatechange?o.onreadyStatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||!t||t()}:o.onload=function(){t&&t()},o.onerror=function(){i&&i()},o.src=e,document.getElementsByTagName("head")[0].appendChild(o)}},t.xhrRequest=function(e){var t=e.method,n=e.url,i=e.params,o=e.onSuccess,r=e.onError,a=window.XMLHttpRequest?new window.XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;"GET"===t?a.open("GET",n+(i?"?"+i:"")):a.open("POST",n);a.setRequestHeader("content-type","application/json"),a.onreadystatechange=function(){if(4===a.readyState&&a.status>=200&&a.status<300){if("function"==typeof o)try{o(JSON.parse(a.responseText))}catch(e){"function"==typeof r&&r(e)}}else 4===a.readyState&&r()},"GET"==t?a.send():a.send(JSON.stringify(i))},t.now=function(){if("object"==typeof performance&&"function"==typeof performance.now)return performance.now();return Date.now()-performance.timing.navigationStart}})),Ur=n((function(e,t){t.__esModule=!0,t.maxPathTraceLevel=t.maxEvents=t.DeviceIdVersion=t.SendUrl=t.KeySupplementPrefix=void 0;t.KeySupplementPrefix={pv:"p_",click:"b_",time:"t_",performance:"d_",data:"d_",custom:"c_",show:"b_",hide:"b_"};t.SendUrl={mail:"//countly.mail.163.com/stats","mail-test":"//apigw-qzbeta.test.mail.163.com/countly",performance:"//countly.mail.163.com/countly","performance-test":"//apigw-qzbeta.test.mail.163.com/countly"};t.DeviceIdVersion="v1";t.maxEvents=20;t.maxPathTraceLevel=3})),Br=n((function(e,t){t.__esModule=!0,t.generateDeviceId=n,t["default"]=void 0;function n(e){function t(){window.Fingerprint2&&Promise.allSettled([new Promise((function(e,t){try{window.Fingerprint2.get((function(t){var n=t.map((function(e){return e.value}));e(n)}))}catch(n){t(n)}})),new Promise((function(e,t){try{(0,qr.xhrRequest)({method:"GET",url:window.location.protocol+"//"+window.location.hostname+"/fgw/mailsrv-ipdetail/detail",onSuccess:function(t){e(t)},onError:function(){return t()}})}catch(n){t(n)}}))]).then((function(t){var n,i=t[0],o=t[1];if("fulfilled"===i.status)if("fulfilled"===o.status){var r=null===(n=null==o?void 0:o.value)||void 0===n?void 0:n.result;if(null==r?void 0:r.provinceEn){i.value.push(null==r?void 0:r.provinceEn);var a=window.Fingerprint2.x64hash128(i.value.join(""),31);e&&e(a+"_"+Ur.DeviceIdVersion)}else{a=window.Fingerprint2.x64hash128(i.value.join(""),31);e&&e(""+a)}}else{a=window.Fingerprint2.x64hash128(i.value.join(""),31);e&&e(""+a)}}))["catch"]((function(e){}))}(0,qr.loadJs)("https://mimg.127.net/p/tools/fingerprintjs/fingerprint-2.1.2.min.js",(function(){window.requestIdleCallback?window.requestIdleCallback((function(){t()})):window.requestAnimationFrame?window.requestAnimationFrame((function(){t()})):t()}))}var i=n;t["default"]=i})),zr=n((function(e,t){t.__esModule=!0,t["default"]=void 0;var n=function(e,t,n){try{(0,qr.xhrRequest)({method:"POST",url:window.location.protocol+"//"+window.location.hostname+"/fgw/mailsrv-device-idmapping/webapp/init",params:{deviceId:e,appVersion:t},onSuccess:function(e){var t;200===(null==e?void 0:e.code)&&n((null===(t=null==e?void 0:e.result)||void 0===t?void 0:t.sdid)||"")},onError:function(e){}})}catch(i){}};t["default"]=n,e.exports=t["default"]})),Hr=n((function(t,n){!function(e,i){var o="model",r="name",a="type",s="vendor",u="version",c="mobile",l="tablet",d="smarttv",f={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(e,t){for(var n,i,o,r,a,s,u=0;u<t.length&&!a;){var c=t[u],l=t[u+1];for(n=i=0;n<c.length&&!a;)if(a=c[n++].exec(e))for(o=0;o<l.length;o++)s=a[++i],"object"==typeof(r=l[o])&&r.length>0?2==r.length?"function"==typeof r[1]?this[r[0]]=r[1].call(this,s):this[r[0]]=r[1]:3==r.length?"function"!=typeof r[1]||r[1].exec&&r[1].test?this[r[0]]=s?s.replace(r[1],r[2]):void 0:this[r[0]]=s?r[1].call(this,s,r[2]):void 0:4==r.length&&(this[r[0]]=s?r[3].call(this,s.replace(r[1],r[2])):void 0):this[r]=s||void 0;u+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(f.has(t[n][i],e))return"?"===n?void 0:n}else if(f.has(t[n],e))return"?"===n?void 0:n;return e}},v={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},m={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[r,u],[/(opios)[\/\s]+([\w\.]+)/i],[[r,"Opera Mini"],u],[/\s(opr)\/([\w\.]+)/i],[[r,"Opera"],u],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[r,u],[/(konqueror)\/([\w\.]+)/i],[[r,"Konqueror"],u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[r,"IE"],u],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[r,"Edge"],u],[/(yabrowser)\/([\w\.]+)/i],[[r,"Yandex"],u],[/(Avast)\/([\w\.]+)/i],[[r,"Avast Secure Browser"],u],[/(AVG)\/([\w\.]+)/i],[[r,"AVG Secure Browser"],u],[/(puffin)\/([\w\.]+)/i],[[r,"Puffin"],u],[/(focus)\/([\w\.]+)/i],[[r,"Firefox Focus"],u],[/(opt)\/([\w\.]+)/i],[[r,"Opera Touch"],u],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[r,"UCBrowser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[r,/_/g," "],u],[/(windowswechat qbcore)\/([\w\.]+)/i],[[r,"WeChat(Win) Desktop"],u],[/(micromessenger)\/([\w\.]+)/i],[[r,"WeChat"],u],[/(brave)\/([\w\.]+)/i],[[r,"Brave"],u],[/(qqbrowserlite)\/([\w\.]+)/i],[r,u],[/(QQ)\/([\d\.]+)/i],[r,u],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[r,u],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[r,u],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[r,u],[/(MetaSr)[\/\s]?([\w\.]+)/i],[r],[/(LBBROWSER)/i],[r],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[u,[r,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[u,[r,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[r,u],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[u,[r,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[r,/(.+)/,"$1 WebView"],u],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[r,/(.+(?:g|us))(.+)/,"$1 $2"],u],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[u,[r,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[r,"Sailfish Browser"],u],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[r,u],[/(dolfin)\/([\w\.]+)/i],[[r,"Dolphin"],u],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[r,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[r,"Chrome"],u],[/(coast)\/([\w\.]+)/i],[[r,"Opera Coast"],u],[/fxios\/([\w\.-]+)/i],[u,[r,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[r,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,r],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[r,"GSA"],u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[r,[u,p.str,v.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[r,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[r,"Netscape"],u],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[r,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",f.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",f.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",f.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[o,s,[a,l]],[/applecoremedia\/[\w\.]+ \((ipad)/],[o,[s,"Apple"],[a,l]],[/(apple\s{0,1}tv)/i],[[o,"Apple TV"],[s,"Apple"],[a,d]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[s,o,[a,l]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[o,[s,"Amazon"],[a,l]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[o,p.str,v.device.amazon.model],[s,"Amazon"],[a,c]],[/android.+aft([bms])\sbuild/i],[o,[s,"Amazon"],[a,d]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[o,s,[a,c]],[/\((ip[honed|\s\w*]+);/i],[o,[s,"Apple"],[a,c]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[s,o,[a,c]],[/\(bb10;\s(\w+)/i],[o,[s,"BlackBerry"],[a,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[o,[s,"Asus"],[a,l]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[s,"Sony"],[o,"Xperia Tablet"],[a,l]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[s,"Sony"],[a,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[s,o,[a,"console"]],[/android.+;\s(shield)\sbuild/i],[o,[s,"Nvidia"],[a,"console"]],[/(playstation\s[34portablevi]+)/i],[o,[s,"Sony"],[a,"console"]],[/(sprint\s(\w+))/i],[[s,p.str,v.device.sprint.vendor],[o,p.str,v.device.sprint.model],[a,c]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[o,/_/g," "],[a,c]],[/(nexus\s9)/i],[o,[s,"HTC"],[a,l]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29|ele-l29)/i],[o,[s,"Huawei"],[a,c]],[/android.+(bah2?-a?[lw]\d{2})/i],[o,[s,"Huawei"],[a,l]],[/(microsoft);\s(lumia[\s\w]+)/i],[s,o,[a,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[o,[s,"Microsoft"],[a,"console"]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[s,"Microsoft"],[a,c]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[o,[s,"Motorola"],[a,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[o,[s,"Motorola"],[a,l]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,f.trim],[o,f.trim],[a,d]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[s,"Samsung"],[a,d]],[/\(dtv[\);].+(aquos)/i],[o,[s,"Sharp"],[a,d]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[s,"Samsung"],o,[a,l]],[/smart-tv.+(samsung)/i],[s,[a,d],o],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[s,"Samsung"],o,[a,c]],[/sie-(\w*)/i],[o,[s,"Siemens"],[a,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[s,"Nokia"],o,[a,c]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[o,[s,"Acer"],[a,l]],[/android.+([vl]k\-?\d{3})\s+build/i],[o,[s,"LG"],[a,l]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[s,"LG"],o,[a,l]],[/(lg) netcast\.tv/i],[s,o,[a,d]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[o,[s,"LG"],[a,c]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[s,o,[a,l]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[o,[s,"Lenovo"],[a,l]],[/(lenovo)[_\s-]?([\w-]+)/i],[s,o,[a,c]],[/linux;.+((jolla));/i],[s,o,[a,c]],[/((pebble))app\/[\d\.]+\s/i],[s,o,[a,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,o,[a,c]],[/crkey/i],[[o,"Chromecast"],[s,"Google"],[a,d]],[/android.+;\s(glass)\s\d/i],[o,[s,"Google"],[a,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[o,[s,"Google"],[a,l]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[o,[s,"Google"],[a,c]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]?[\w\s]+))\s+build/i],[[o,/_/g," "],[s,"Xiaomi"],[a,c]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]?[\w\s]+))\s+build/i],[[o,/_/g," "],[s,"Xiaomi"],[a,l]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[o,[s,"Meizu"],[a,c]],[/(mz)-([\w-]{2,})/i],[[s,"Meizu"],o,[a,c]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[o,[s,"OnePlus"],[a,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[o,[s,"RCA"],[a,l]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[o,[s,"Dell"],[a,l]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[o,[s,"Verizon"],[a,l]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[s,"Barnes & Noble"],o,[a,l]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[o,[s,"NuVision"],[a,l]],[/android.+;\s(k88)\sbuild/i],[o,[s,"ZTE"],[a,l]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[o,[s,"Swiss"],[a,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[o,[s,"Swiss"],[a,l]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[o,[s,"Zeki"],[a,l]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[s,"Dragon Touch"],o,[a,l]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[o,[s,"Insignia"],[a,l]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[o,[s,"NextBook"],[a,l]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[s,"Voice"],o,[a,c]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[s,"LvTel"],o,[a,c]],[/android.+;\s(PH-1)\s/i],[o,[s,"Essential"],[a,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[o,[s,"Envizen"],[a,l]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[s,o,[a,l]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[o,[s,"MachSpeed"],[a,l]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[s,o,[a,l]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[o,[s,"Rotor"],[a,l]],[/android.+(KS(.+))\s+build/i],[o,[s,"Amazon"],[a,l]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[s,o,[a,l]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[a,f.lowerize],s,o],[/[\s\/\(](smart-?tv)[;\)]/i],[[a,d]],[/(android[\w\.\s\-]{0,9});.+build/i],[o,[s,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[r,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[r,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[r,u],[/rv\:([\w\.]{1,9}).+(gecko)/i],[u,r]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[r,u],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[r,[u,p.str,v.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[r,"Windows"],[u,p.str,v.os.windows.version]],[/\((bb)(10);/i],[[r,"BlackBerry"],u],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[r,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[r,"Symbian"],u],[/\((series40);/i],[r],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[r,"Firefox OS"],u],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[r,u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[r,"Chromium OS"],u],[/(sunos)\s?([\w\.\d]*)/i],[[r,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[r,u],[/(haiku)\s(\w+)/i],[r,u],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[u,/_/g,"."],[r,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[r,"Mac OS"],[u,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[r,u]]},h=function(t,n){if("object"==typeof t&&(n=t,t=void 0),!(this instanceof h))return new h(t,n).getResult();var i=t||(e&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:""),o=n?f.extend(m,n):m;return this.getBrowser=function(){var e={name:void 0,version:void 0};return p.rgx.call(e,i,o.browser),e.major=f.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return p.rgx.call(e,i,o.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return p.rgx.call(e,i,o.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return p.rgx.call(e,i,o.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return p.rgx.call(e,i,o.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this};h.VERSION="0.7.22",h.BROWSER={NAME:r,MAJOR:"major",VERSION:u},h.CPU={ARCHITECTURE:"architecture"},h.DEVICE={MODEL:o,VENDOR:s,TYPE:a,CONSOLE:"console",MOBILE:c,SMARTTV:d,TABLET:l,WEARABLE:"wearable",EMBEDDED:"embedded"},h.ENGINE={NAME:r,VERSION:u},h.OS={NAME:r,VERSION:u},t.exports&&(n=t.exports=h),n.UAParser=h;var g=e&&(e.jQuery||e.Zepto);if(g&&!g.ua){var y=new h;g.ua=y.getResult(),g.ua.get=function(){return y.getUA()},g.ua.set=function(e){y.setUA(e);var t=y.getResult();for(var n in t)g.ua[n]=t[n]}}}("object"==typeof window?window:e)})),Fr=n((function(e,t){var n;t.__esModule=!0,t["default"]=void 0;var i=(new((n=Hr)&&n.__esModule?n:{"default":n})["default"]).getResult();t["default"]=i,e.exports=t["default"]})),Gr=n((function(e,t){t.__esModule=!0,t["default"]=void 0;var n=o(zr),i=o(Fr);function o(e){return e&&e.__esModule?e:{"default":e}}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i},s=function(){function e(e){var t=this;this.statsConfig={},this.application="",this.send_url="",this.module_name="",this.deviceId="",this.commonData={},this.uaInfo={},this.sessionId="",this.pageDomeComplete=0,this.navigationStart=0,this.pageHideDuration=0,this.previousUrl=location.href,this.version="1.1.8",this.internal_config=r({},this.internal_config,e),this.uaInfo=i["default"],"complete"===document.readyState?this.initPerformanceData():document.onreadystatechange=function(){"complete"===document.readyState&&t.initPerformanceData()}}return e.prototype.config=function(e){this.initData(e),this.init()},e.prototype.initData=function(e){this.statsConfig=r({},this.statsConfig,e),this.application=this.statsConfig.application||"",this.send_url=Ur.SendUrl[this.internal_config.dataSource||"mail"],this.sessionId=this._getSessionId(),this._setCommonData(),this.initDeviceId()},e.prototype.initPerformanceData=function(){var e;"object"==typeof performance&&(performance.getEntries&&(null===(e=performance.getEntries()[0])||void 0===e?void 0:e.domComplete)?(this.pageDomeComplete=performance.getEntries()[0].domComplete,this.navigationStart=performance.getEntries()[0].startTime):(this.pageDomeComplete=performance.timing.domComplete,this.navigationStart=performance.timing.navigationStart))},e.prototype.initDeviceId=function(){var e,t,i,o,r,a,s=this;if(void 0===(null===(t=null===(e=this.statsConfig)||void 0===e?void 0:e.options)||void 0===t?void 0:t.openFingerprint)||"boolean"==typeof(null===(o=null===(i=this.statsConfig)||void 0===i?void 0:i.options)||void 0===o?void 0:o.openFingerprint)&&(null===(a=null===(r=this.statsConfig)||void 0===r?void 0:r.options)||void 0===a?void 0:a.openFingerprint)){var u=(0,qr.getData)(this._trans2CountlyKey("id")),c=(0,qr.getData)(this._trans2CountlyKey("sdid")),l=window.MasterBridge?!u:!u||u&&u.indexOf("-")>-1||u&&-1===u.indexOf("_"+Ur.DeviceIdVersion),d=!c||l;!l&&(this.deviceId=u),!d&&this.setSdid(c),l?(0,Br.generateDeviceId)((function(e){s.deviceId=e,window.MailStatsCountly.change_id_only(e),(0,n["default"])(e,s.statsConfig.appVersion||"1.0.0",(function(e){s.setSdid(e)}))})):d&&(0,n["default"])(this.deviceId,this.statsConfig.appVersion||"1.0.0",(function(e){s.setSdid(e)}))}},e.prototype.init=function(){var e,t,n,i;this._initListener({codelessTracking:!!(null===(e=this.statsConfig.options)||void 0===e?void 0:e.codelessTracking)}),this._initCountly(),(void 0===(null===(t=this.statsConfig.options)||void 0===t?void 0:t.autoPageTime)||(null===(n=this.statsConfig.options)||void 0===n?void 0:n.autoPageTime))&&this._initPageTime({isSpa:!!(null===(i=this.statsConfig.options)||void 0===i?void 0:i.isSpa)}),this._initReissueRequestOnUnload()},e.prototype.pv=function(e,t,n){var i=this;this.send("pv",e,t,{action:n,beforeSend:function(e){i.module_name=e}})},e.prototype.click=function(e,t,n,i){var o,r,a,s,u,c,l,d,f,p,v=void 0===(null===(r=null===(o=this.statsConfig)||void 0===o?void 0:o.options)||void 0===r?void 0:r.uploadDomInfo)||"boolean"==typeof(null===(s=null===(a=this.statsConfig)||void 0===a?void 0:a.options)||void 0===s?void 0:s.uploadDomInfo)&&(null===(c=null===(u=this.statsConfig)||void 0===u?void 0:u.options)||void 0===c?void 0:c.uploadDomInfo),m=(0,qr.getDocHeight)(),h=(0,qr.getDocWidth)(),g={type:"click",x:(null==i?void 0:i.pageX)||0,y:(null==i?void 0:i.pageY)||0,width:h,height:m,targetName:(null===(l=null==i?void 0:i.target)||void 0===l?void 0:l.tagName)||"",className:(null===(d=null==i?void 0:i.target)||void 0===d?void 0:d.className)||"",id:(null===(f=null==i?void 0:i.target)||void 0===f?void 0:f.id)||"",dataset:(null===(p=null==i?void 0:i.target)||void 0===p?void 0:p.dataset)||{}},y={action:n||"click"};v&&(y.domInfo=g),this.send("click",e,t,y)},e.prototype.time=function(e,t,n){this.send("time",e,t,{action:n})},e.prototype.performance=function(e,t,n){this.send("performance",e,t,{action:n})},e.prototype.show=function(e,t,n){this.send("show",e,t,{action:n||"show"})},e.prototype.hide=function(e,t,n){this.send("hide",e,t,{action:n||"hide"})},e.prototype.data=function(e,t,n){this.send("data",e,t,{action:n})},e.prototype.setUid=function(e){e&&(this.commonData.uid=e,window.MailStatsCountly&&window.MailStatsCountly.common_data&&(window.MailStatsCountly.common_data.uid=e),(0,qr.saveData)(this._trans2CountlyKey("account"),e),this.addAccount(e))},e.prototype.setSdid=function(e){e&&(this.commonData.sdid=e,window.MailStatsCountly&&window.MailStatsCountly.common_data&&(window.MailStatsCountly.common_data.sdid=e),(0,qr.saveData)(this._trans2CountlyKey("sdid"),e))},e.prototype.setMasterAccount=function(e){e&&(this.commonData.dashi_uid=e,window.MailStatsCountly&&window.MailStatsCountly.common_data&&(window.MailStatsCountly.common_data.dashi_uid=e))},e.prototype.setAccountList=function(e){if(e&&e.length){var t=JSON.stringify(e);this.commonData.accounts=t,window.MailStatsCountly&&window.MailStatsCountly.common_data&&(window.MailStatsCountly.common_data.accounts=t)}},e.prototype.addAccount=function(e,t){if(e){var n=r({},t||{},{account:e}),i=JSON.parse(this.commonData.accounts||"[]"),o=a(i,[n]);this.commonData.accounts=JSON.stringify(o),window.MailStatsCountly&&window.MailStatsCountly.common_data&&(window.MailStatsCountly.common_data.accounts=JSON.stringify(o))}},e.prototype.addMaccount=function(e,t){if(e){var n=r({},t||{},{maccount:e}),i=JSON.parse(this.commonData.accounts||"[]"),o=a(i,[n]);this.commonData.accounts=JSON.stringify(o),window.MailStatsCountly&&window.MailStatsCountly.common_data&&(window.MailStatsCountly.common_data.accounts=JSON.stringify(o))}},e.prototype.send=function(e,t,n,i){var o,r,a,s,u,c,l,d,f,p,v,m,h,g,y=void 0===(null===(r=null===(o=this.statsConfig)||void 0===o?void 0:o.options)||void 0===r?void 0:r.autoAddKeyInfo)||"boolean"==typeof(null===(s=null===(a=this.statsConfig)||void 0===a?void 0:a.options)||void 0===s?void 0:s.autoAddKeyInfo)&&(null===(c=null===(u=this.statsConfig)||void 0===u?void 0:u.options)||void 0===c?void 0:c.autoAddKeyInfo)?this._statsKeySupplement(e,t,(null==i?void 0:i.action)||"")||"":t,w=(null===(d=null===(l=this.statsConfig)||void 0===l?void 0:l.options)||void 0===d?void 0:d.pathTraceLevel)?(null===(p=null===(f=this.statsConfig)||void 0===f?void 0:f.options)||void 0===p?void 0:p.pathTraceLevel)>Ur.maxPathTraceLevel?Ur.maxPathTraceLevel:null===(m=null===(v=this.statsConfig)||void 0===v?void 0:v.options)||void 0===m?void 0:m.pathTraceLevel:0===(null===(g=null===(h=this.statsConfig)||void 0===h?void 0:h.options)||void 0===g?void 0:g.pathTraceLevel)?0:1,_=(this._getLocalPathTrace()||[]).filter((function(e,t){return t<w})),b={type:e,key:y,module_name:"pv"===e?y:this.module_name,segmentation:n||{},utm:this._getUtm(),domInfo:(null==i?void 0:i.domInfo)||{},session_id:this.sessionId,path_trace:_.join()};(null==i?void 0:i.beforeSend)&&i.beforeSend(y,b),this._countlySend(b),y&&-1===y.indexOf("t_")&&-1===y.indexOf("d_")&&this._setLocalPathTrace(this.application,y)},e.prototype.masterBridgeSend=function(){},e.prototype._getLocalPathTrace=function(){try{var e=localStorage.getItem(this._trans2CountlyKey("pathTrace"));return e?e.split(","):[]}catch(t){return[]}},e.prototype._setLocalPathTrace=function(e,t){var n=this._getLocalPathTrace();n.length>=Ur.maxPathTraceLevel&&n.pop(),n.unshift(e+"|"+t),localStorage.setItem(this._trans2CountlyKey("pathTrace"),n.join())},e.prototype._setCommonData=function(){var e,t,n,i,o,a,s,u,c,l,d,f=(null===(t=null===(e=this.statsConfig)||void 0===e?void 0:e.options)||void 0===t?void 0:t.overwriteCommonData)||{},p="desktop"!==(null===(i=null===(n=this.uaInfo)||void 0===n?void 0:n.device)||void 0===i?void 0:i.type)&&(null===(a=null===(o=this.uaInfo)||void 0===o?void 0:o.device)||void 0===a?void 0:a.type)?(null===(u=null===(s=this.uaInfo)||void 0===s?void 0:s.device)||void 0===u?void 0:u.model)||"":"desktop",v=this._getAbtestInfo(),m=(null===(c=null===navigator||void 0===navigator?void 0:navigator.connection)||void 0===c?void 0:c.type)||"";this.commonData=r({ua:window.navigator.userAgent,browser:this.uaInfo.browser.name,browser_version:this.uaInfo.browser.version,os:this.uaInfo.os.name,os_version:this.uaInfo.os.version,device:p,resolution:window.screen.width+"x"+window.screen.height,referrer:document.referrer||"",site_channel:this._getSiteChannel(),client:this._getClient(),density:window.devicePixelRatio?"@"+window.devicePixelRatio+"x":"",locale:window.navigator.language||"",manufacturer:(null===(d=null===(l=this.uaInfo)||void 0===l?void 0:l.device)||void 0===d?void 0:d.vendor)||"",domain:window.location.host||"",app_version:this.statsConfig.appVersion||"1.0.0",abtest_zone:(null==v?void 0:v.abZone)||"",abtest_version:(null==v?void 0:v.abVersion)||""},{carrier:f.carrier||"",app_channel:f.app_channel||"",ip:f.ip||"",lbs:f.lbs||"",network_type:f.network_type||m||""});var h;h=this.statsConfig.uid||"",this.setUid(h)},e.prototype._initCountly=function(){window.MailStatsCountly&&window.MailStatsCountly.init({app_key:this.application,url:this.send_url,interval:this.internal_config.interval||500,device_id:this.deviceId,common_data:this.commonData,max_events:Ur.maxEvents})},e.prototype._countlySend=function(e){e&&e.key&&window.MailStatsCountly.add_event(e)},e.prototype._getUtm=function(){var e=(0,qr.getUrlQuery)("utm_id")||"",t=(0,qr.getUrlQuery)("utm_source")||"",n=(0,qr.getUrlQuery)("utm_medium")||"",i=(0,qr.getUrlQuery)("utm_term")||"",o=(0,qr.getUrlQuery)("utm_content")||"",r=(0,qr.getUrlQuery)("utm_campaign")||"",a=(0,qr.getCookie)("UTM")||"",s=(0,qr.getUrlQuery)("from"),u=this.getUtm(),c={utm_id:"",utm_source:"",utm_medium:"",utm_term:"",utm_content:"",utm_campaign:""};if(u&&"object"==typeof u&&Object.keys(u).length)c=u;else if(e||t||n||i||o||r||s)c={utm_id:e,utm_source:t||s,utm_medium:n,utm_term:i,utm_content:o,utm_campaign:r};else if(a)try{c=JSON.parse(a)}catch(Qr){c={utm_id:e,utm_source:t,utm_medium:n,utm_term:i,utm_content:o,utm_campaign:r}}return c},e.prototype.getUtm=function(){return null},e.prototype._getSiteChannel=function(){var e="default";return(0,qr.isMailMaster)()&&(e="mailmaster"),(0,qr.isWeixin)()&&(e="weixin"),e},e.prototype._getClient=function(){var e="pc",t=this.uaInfo.device.type;return"mobile"!==t&&"tablet"!==t||(e="mobile"),e},e.prototype._initListener=function(e){e.codelessTracking&&this._initCodeLessListener()},e.prototype._initCodeLessListener=function(){var e=this;(0,qr.addEvent)(document.body,"click",(function(t){for(var n=t.target;n&&n!==document;){var i=n.getAttribute("data-stats-key"),o=n.getAttribute("data-stats-value");if(i)try{o=JSON.parse(o||"")}catch(Qr){o=""}i&&e.click(i,o,"click",t),n=n.parentNode}}))},e.prototype._initReissueRequestOnUnload=function(){var e=this;navigator.sendBeacon&&window.addEventListener("beforeunload",(function(){var t=window.MailStatsCountly.eventQueue;if(t instanceof Array)for(;t&&t.length;){var n=t.splice(0,Ur.maxEvents);localStorage.setItem(e._trans2CountlyKey("event"),JSON.stringify(t));var i={events:JSON.stringify(n)};window.MailStatsCountly._internals.toRequestQueue(i)}var o=window.MailStatsCountly.requestQueue;if(o instanceof Array&&o.length)for(;o&&o.length;){var r=o.shift();localStorage.setItem(e._trans2CountlyKey("queue"),JSON.stringify(o));var a=new Blob([window.MailStatsCountly._internals.prepareParams(r)],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(e.send_url+"/i",a)}}))},e.prototype._initPageTime=function(e){var t,n=this,i=e.isSpa;if("object"==typeof performance){var o=function(){var e=Math.floor((n.navigationStart+(0,qr.now)()-n.pageDomeComplete-n.pageHideDuration)/100)/10;return n.pageHideDuration=0,e};if(window.addEventListener("beforeunload",(function(){var e=o();e&&n.time("page_stay",{time:e,module_name:n.module_name,page_url:location.href})})),document.addEventListener("visibilitychange",(function(){var e;if(document.hidden)performance.mark("pagehide");else{var t=performance.getEntriesByType("mark")||[];if(null==t?void 0:t.length){var i=null===(e=t[t.length-1])||void 0===e?void 0:e.startTime;n.pageHideDuration=(0,qr.now)()-i}}})),i){var r=(null===(t=this.statsConfig.options)||void 0===t?void 0:t.routerMode)||"Mixed";if("Mixed"!==r&&"hashRouter"!=r||window.addEventListener("hashchange",(function(e){var t=o();t&&(n.time("page_stay",{time:t,module_name:n.module_name,page_url:(null==e?void 0:e.oldURL)||""}),n.navigationStart=0,n.pageDomeComplete=(0,qr.now)(),n.previousUrl=(null==e?void 0:e.newURL)||"")})),"Mixed"===r||"browserRouter"==r){window.addEventListener("popstate",(function(){var e=o();e&&(n.time("page_stay",{time:e,module_name:n.module_name,page_url:n.previousUrl}),n.navigationStart=0,n.pageDomeComplete=(0,qr.now)(),n.previousUrl=location.href)}));var s=function(e){var t=n,i=window.history[e];return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{var r=o();r&&(t.time("page_stay",{time:r,module_name:t.module_name,page_url:location.href}),t.navigationStart=0,t.pageDomeComplete=(0,qr.now)())}catch(u){}var s=i.apply(this,a(e));return t.previousUrl=location.href,s}};window.history.pushState=s("pushState"),window.history.replaceState=s("replaceState")}}}},e.prototype._getAccountFromCookie=function(){var e=(0,qr.getCookie)("P_INFO").match(/([a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+)/);return e&&e[0]?e[0]:""},e.prototype._statsKeySupplement=function(e,t,n){return""+(Ur.KeySupplementPrefix[e]||"")+t+(n?"_"+n:"")},e.prototype._checkIsSessionStorage=function(){var e=!0;try{"undefined"!=typeof sessionStorage&&(sessionStorage.setItem("testLocal","true"),sessionStorage.removeItem("testLocal"))}catch(t){e=!1}return e},e.prototype._getSessionId=function(){var e="",t=this._trans2CountlyKey("session_id"),n=(0,qr.getCookie)("stats_session_id")||"";return this._checkIsSessionStorage()?(e=n||sessionStorage.getItem(t)||"")||(e=(0,qr.uuid)(),sessionStorage.setItem(t,e)):e=n,e},e.prototype._getAbtestInfo=function(){var e=decodeURIComponent((0,qr.getCookie)("gateAbtestInfo")||"{}"),t={};try{t=JSON.parse(e)}catch(Qr){}return t},e.prototype._trans2CountlyKey=function(e){return this.application+"/cly_"+e},e}();t["default"]=s,e.exports=t["default"]})),Vr={__proto__:null};return t(n((function(e,t){t.__esModule=!0;var n={};t["default"]=void 0;var i,o=(i=Gr)&&i.__esModule?i:{"default":i};Object.keys(Vr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===Vr[e]||(t[e]=Vr[e]))}));var r=o["default"];t["default"]=r,e.exports=t["default"]})))}));
<!DOCTYPE html>
<html lang="zh_CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>上行短信</title>
<style>
*{margin:0;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft Yahei,Hiragino Sans GB,"Microsoft Sans Serif",WenQuanYi Micro Hei,sans,sans-serif;zoom:1;}
html {font-size: calc(100vw / 7.5);}
body {font-size: 0.28rem;}
body{padding: 0 0.15rem;background: #EBEBEB;}
.sms-title {font-size: 0.34rem;color: #333333; height: 1.4rem; text-align: center; line-height: 1.4rem;}
.sub-title {font-size: 0.32rem;color: #333333; margin-bottom: 0.2rem}
.sms-part-one-item {display: flex; height: 0.80rem; line-height: 0.80rem; padding-left: 0.3rem; background: #FFFFFF; border: 1px solid #D3D3D3;}
.sms-tips {font-size: 0.24rem; color: #999999; margin-top: 0.1rem}
.sms-part-one {margin-bottom: 0.46rem;}
.sms-part-two-item {color: #666666; padding: 0 0.3rem; height: 1.2rem; background-color: #FFFFFF; display: flex; flex-direction: column; justify-content: center;}
.sms-part-one-item-label {display: inline-block; min-width: 1.4rem; }
.sms-part-one-item-label-en {display: inline-block; min-width: 1.5rem;}
.colon {float: right;}
/* 旧样式 */
.f-dn{display: none;}
.f-margin-top-5{margin-top: 5px;}
.bold{font-weight: bold;}
.title{text-align: center;font-size: 20px;height: 28px;line-height: 28px;margin-top: 35px;}
.title-info{margin-top: 5px;font-size: 15px;text-align: center;}
.qrcode-body{margin-top: 24px;border:1px solid #b9b9b9;background: #fff;padding:25px 15px;font-size: 16px;border-radius: 6px;}
.qrcode-body .step1 .step-title{color: #656565;margin-top: 0px;}
.qrcode-body .step-title{margin-top: 20px;margin-bottom: 10px;}
.qrcode-body .step p{font-size: 15px;line-height: 25px;}
.qrcode-footer{color: #656565;font-size: 15px;margin-top: 14px;}
.j-manaul{text-decoration: none;display: inline-block;border-radius: 6px; padding: 0 8px;height: 26px;line-height: 26px;text-align: center;color: #3B78DD ;border:1px solid #3B78DD;margin-left: 5px; margin-top: 8px;}
</style>
</head>
<body>
<div class="qrcode" id="part-one" style="display: none;">
<div class="title bold" id="sms-title-1"></div>
<div class="title-info">扫码二维码进行短信验证</div>
<div class="qrcode-body">
<div class="step step1">
<div class="step-title">第一步:手机扫描二维码(已完成)</div>
</div>
<div class="step step2">
<div class="step-title bold">第二步:点击发送短信</div>
<p>短信内容自动填充,无需手动输入,只需点击发送按钮即可</p>
<p>短信费用由运营商收取</p>
</div>
<div class="step step3">
<div class="step-title bold">第三步:<span id="sms-submit-btn-text-1"></span> </div>
<p>发送完成后,点击邮箱页面的“<span id="sms-submit-btn-text-2"></span>”按钮完成注册</p>
</div>
</div>
<div class="qrcode-footer">
<div>没有跳转到短信界面?</div>
<div class="f-margin-top-5">可尝试再次扫码或<a href="javascript:;" class="j-manaul" id="send-manaul">手动发送短信</a></div>
</div>
</div>
<div class="qrcode" id="part-one-en" style="display: none;">
<div class="title bold" id="sms-title-2"></div>
<div class="title-info">Scan the code for verification</div>
<div class="qrcode-body">
<div class="step step1">
<div class="step-title">Step 1: scan the phone code (completed)</div>
</div>
<div class="step step2">
<div class="step-title bold">Step 2: hit send</div>
<p>SMS content is automatically filled in, click send</p>
<p>SMS fees are charged by the operator</p>
</div>
<div class="step step3">
<div class="step-title bold">Step 3: <span id="sms-submit-btn-text-3"></span> </div>
<p>After sending, click the popup "<span id="sms-submit-btn-text-4"></span>" to complete the verification</p>
</div>
</div>
<div class="qrcode-footer">
<!-- <div>Jump failed?</div> -->
<div class="f-margin-top-5">Jump failed? You can try to scan the code again or <a href="javascript:;" class="j-manaul" id="send-manaul-en">send a message manually</a></div>
</div>
</div>
<div id="part-two" style="display: none;">
<div class="sms-title" id="sms-title-3"></div>
<div class="sms-part-one">
<p class="sub-title">第一步:发送短信</p>
<div class="sms-part-one-item">
<span class="sms-part-one-item-label">编辑短信<span class="colon">:</span></span><span id="sms-code-1"></span>
</div>
<div class="sms-part-one-item" style="border-top: none;">
<span class="sms-part-one-item-label">发送至<span class="colon">:</span></span><span id="sms-server-number-1"></span>
</div>
<p class="sms-tips">短信费用由运营商收取</p>
</div>
<div>
<p class="sub-title">第二步:确认发送</p>
<div class="sms-part-two-item">
<p>发送完成后,点击邮箱页面的“<span id="sms-submit-btn-text-5"></span>”按钮完成确认。</p>
</div>
</div>
</div>
<div id="part-two-en" style="display: none;">
<div class="sms-title" id="sms-title-4"></div>
<div class="sms-part-one">
<p class="sub-title">Step 1: send a text message</p>
<div class="sms-part-one-item">
<span class="sms-part-one-item-label-en">Edit SMS<span class="colon">:</span> </span><span id="sms-code-2"></span>
</div>
<div class="sms-part-one-item" style="border-top: none;">
<span class="sms-part-one-item-label-en">Send to<span class="colon">:</span></span><span id="sms-server-number-2"></span>
</div>
<p class="sms-tips">SMS fees are charged by the operator</p>
</div>
<div>
<p class="sub-title">Step 2: confirm delivery</p>
<div class="sms-part-two-item">
<p>After sending, click the "<span id="sms-submit-btn-text-6"></span>" button on the email page to complete the confirmation</p>
</div>
</div>
</div>
</body>
<script>
function getQueryValue(key) {
var query = decodeURIComponent(window.location.search.substring(1));
var items = query.split("&");
for (var i = 0; i < items.length; i++) {
var pair = items[i].split("=");
if (pair[0] === key) return pair[1]
}
return false;
}
// 获取展示信息
var smsCode = getQueryValue('smsCode') || getQueryValue('s') || '';
var smsServerNumber = getQueryValue('smsServerNumber') || getQueryValue('n') || '';
var title = getQueryValue('title') || '短信验证';
var btnText = getQueryValue('btnText') || '我已发送';
var hl = getQueryValue('hl') || 'zh_CN';
// 保底title
hl !== 'zh_CN' && (document.title = 'Send Short Messages');
// 需要自定义内容的id
var contentID = [['sms-code', smsCode], ['sms-server-number', smsServerNumber], ['sms-title',title], ['sms-submit-btn-text', btnText]];
for(var i = 1; i <= 6; i++) {
for (var j = 0; j < contentID.length; j++) {
var node = document.getElementById(contentID[j][0] + '-' + i);
node && (node.innerText = contentID[j][1]);
}
}
switch (hl) {
case 'zh_CN':
document.getElementById('part-one').style.display = 'block';
break;
case 'en_US':
document.getElementById('part-one-en').style.display = 'block';
break;
}
// 中文版点击手动
document.getElementById('send-manaul').addEventListener('click', function() {
document.getElementById('part-one').style.display = "none";
document.getElementById('part-two').style.display = "block";
window.mailStats.click('sms_page_send_manaul');
})
// 英文版点击手动
document.getElementById('send-manaul-en').addEventListener('click', function() {
document.getElementById('part-one-en').style.display = "none";
document.getElementById('part-two-en').style.display = "block";
window.mailStats.click('sms_page_send_manaul_en');
})
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;//判断是否是 android终端
var isUc = u.indexOf('UCBrowser') > -1;
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(isIOS&&!isUc){
window.location.href = 'sms:' + smsServerNumber.replace(' ', '') + '&body=' + smsCode;
}else if(isAndroid || isUc){
window.location.href = 'sms:' + smsServerNumber.replace(' ', '') + '?body=' + smsCode;
}
</script>
<script src="https://mimg.127.net/p/tools/mailstats-sdk/mailstats.umd-1.1.8.js"></script>
<script>
window.mailStats = new window.MailStats({
dataSource: 'mail',
interval: 1000
});
window.mailStats.config({
application: 'free_smsPage_21e1634b685719da',
uid: '',
appVersion: '1.0.0',
options: {
codelessTracking: true
}
});
window.mailStats.pv('sms_page_index_view');
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment