fe-supervisor
Version:
The frontend monitor project
1 lines • 44.2 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).$sv={})}(this,function(e){"use strict";var A=function(){return(A=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function m(i,a,c,s){return new(c=c||Promise)(function(e,t){function r(e){try{o(s.next(e))}catch(e){t(e)}}function n(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new c(function(e){e(t.value)}).then(r,n)}o((s=s.apply(i,a||[])).next())})}function I(r,n){var o,i,a,e,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,i=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){c.label=t[1];break}if(6===t[0]&&c.label<a[1]){c.label=a[1],a=t;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(t);break}a[2]&&c.ops.pop(),c.trys.pop();continue}t=n.call(r,c)}catch(e){t=[6,e],i=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function t(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}function v(n,o,e){if(i(n),void 0===o)return n;switch(e){case 1:return function(e){return n.call(o,e)};case 2:return function(e,t){return n.call(o,e,t)};case 3:return function(e,t,r){return n.call(o,e,t,r)}}return function(){return n.apply(o,arguments)}}function s(e){return"object"==typeof e?null!==e:"function"==typeof e}function d(e){if(!s(e))throw TypeError(e+" is not an object!");return e}function u(e){try{return!!e()}catch(e){return!0}}function n(e){return c?r.createElement(e):{}}function o(e,t){if(!s(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!s(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!s(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!s(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}function w(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function y(e,t){return h.call(e,t)}var g=t(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),b=t(function(e){var t=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=t)}),a=(b.version,!u(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),r=g.document,c=s(r)&&s(r.createElement),f=!a&&!u(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}),l=Object.defineProperty,p={f:a?Object.defineProperty:function(e,t,r){if(d(e),t=o(t,!0),d(r),f)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},S=a?function(e,t,r){return p.f(e,t,w(1,r))}:function(e,t,r){return e[t]=r,e},h={}.hasOwnProperty,O="prototype",E=function(e,t,r){var n,o,i,a=e&E.F,c=e&E.G,s=e&E.S,u=e&E.P,f=e&E.B,l=e&E.W,p=c?b:b[t]||(b[t]={}),h=p[O],d=c?g:s?g[t]:(g[t]||{})[O];for(n in c&&(r=t),r)(o=!a&&d&&void 0!==d[n])&&y(p,n)||(i=o?d[n]:r[n],p[n]=c&&"function"!=typeof d[n]?r[n]:f&&o?v(i,g):l&&d[n]==i?function(n){function e(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,t)}return new n(e,t,r)}return n.apply(this,arguments)}return e[O]=n[O],e}(i):u&&"function"==typeof i?v(Function.call,i):i,u&&((p.virtual||(p.virtual={}))[n]=i,e&E.R&&h&&!h[n]&&S(h,n,i)))};E.F=1,E.G=2,E.S=4,E.P=8,E.B=16,E.W=32,E.U=64,E.R=128;var _=E;_(_.S,"Date",{now:function(){return(new Date).getTime()}});function P(e){return isNaN(e=+e)?0:(0<e?B:D)(e)}function k(e){if(null==e)throw TypeError("Can't call method on "+e);return e}function j(e){return G.call(e).slice(8,-1)}function x(e){return q(k(e))}function T(e){return 0<e?X(P(e),9007199254740991):0}function N(e){return"Symbol(".concat(void 0===e?"":e,")_",(++Q+U).toString(36))}function L(e){return Y[e]||(Y[e]=N(e))}function M(e,t){var r,n=x(e),o=0,i=[];for(r in n)r!=Z&&y(n,r)&&i.push(r);for(;t.length>o;)y(n,r=t[o++])&&(~$(i,r)||i.push(r));return i}function C(){}function F(e,t,r){e&&!y(e=r?e:e.prototype,le)&&fe(e,le,{configurable:!0,value:t})}var R,W=b.Date.now,D=Math.ceil,B=Math.floor,V=S,J={},G={}.toString,q=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==j(e)?e.split(""):Object(e)},X=Math.min,z=Math.max,K=Math.min,H=t(function(e){var t="__core-js_shared__",r=g[t]||(g[t]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:b.version,mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),Q=0,U=Math.random(),Y=H("keys"),$=(R=!1,function(e,t,r){var n,o=x(e),i=T(o.length),a=function(e,t){return(e=P(e))<0?z(e+t,0):K(e,t)}(r,i);if(R&&t!=t){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((R||a in o)&&o[a]===t)return R||a||0;return!R&&-1}),Z=L("IE_PROTO"),ee="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),te=Object.keys||function(e){return M(e,ee)},re=a?Object.defineProperties:function(e,t){d(e);for(var r,n=te(t),o=n.length,i=0;i<o;)p.f(e,r=n[i++],t[r]);return e},ne=g.document,oe=ne&&ne.documentElement,ie=L("IE_PROTO"),ae="prototype",ce=function(){var e,t=n("iframe"),r=ee.length;for(t.style.display="none",oe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),ce=e.F;r--;)delete ce[ae][ee[r]];return ce()},se=Object.create||function(e,t){var r;return null!==e?(C[ae]=d(e),r=new C,C[ae]=null,r[ie]=e):r=ce(),void 0===t?r:re(r,t)},ue=t(function(e){var t=H("wks"),r=g.Symbol,n="function"==typeof r;(e.exports=function(e){return t[e]||(t[e]=n&&r[e]||(n?r:N)("Symbol."+e))}).store=t}),fe=p.f,le=ue("toStringTag"),pe={};S(pe,ue("iterator"),function(){return this});function he(e){return Object(k(e))}function de(){return this}function ve(e,t,r,n,o,i,a){function c(e){if(!Se&&e in d)return d[e];switch(e){case"keys":case Oe:return function(){return new r(this,e)}}return function(){return new r(this,e)}}!function(e,t,r){e.prototype=se(pe,{next:w(1,r)}),F(e,t+" Iterator")}(r,t,n);var s,u,f,l=t+" Iterator",p=o==Oe,h=!1,d=e.prototype,v=d[be]||d["@@iterator"]||o&&d[o],m=v||c(o),y=o?p?c("entries"):m:void 0,g="Array"==t&&d.entries||v;if(g&&(f=we(g.call(new e)))!==Object.prototype&&f.next&&F(f,l,!0),p&&v&&v.name!==Oe&&(h=!0,m=function(){return v.call(this)}),a&&(Se||h||!d[be])&&S(d,be,m),J[t]=m,J[l]=de,o)if(s={values:p?m:c(Oe),keys:i?m:c("keys"),entries:y},a)for(u in s)u in d||V(d,u,s[u]);else _(_.P+_.F*(Se||h),t,s);return s}var me,ye=L("IE_PROTO"),ge=Object.prototype,we=Object.getPrototypeOf||function(e){return e=he(e),y(e,ye)?e[ye]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ge:null},be=ue("iterator"),Se=!([].keys&&"next"in[].keys()),Oe="values",Ee=(me=!0,function(e,t){var r,n,o=String(k(e)),i=P(t),a=o.length;return i<0||a<=i?me?"":void 0:(r=o.charCodeAt(i))<55296||56319<r||i+1===a||(n=o.charCodeAt(i+1))<56320||57343<n?me?o.charAt(i):r:me?o.slice(i,i+2):n-56320+(r-55296<<10)+65536});ve(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=Ee(t,r),this._i+=e.length,{value:e,done:!1})});function _e(e,t){return{value:t,done:!!e}}ve(Array,"Array",function(e,t){this._t=x(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,_e(1)):_e(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values");J.Arguments=J.Array;for(var Pe=ue("toStringTag"),ke="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),je=0;je<ke.length;je++){var xe=ke[je],Te=g[xe],Ne=Te&&Te.prototype;Ne&&!Ne[Pe]&&S(Ne,Pe,xe),J[xe]=J.Array}function Le(e){var t=b.Symbol||(b.Symbol={});"_"==e.charAt(0)||e in t||Ve(t,e,{value:We.f(e)})}function Me(e){var t=lt[e]=se(nt[at]);return t._k=e,t}function Ce(e,t){d(e);for(var r,n=function(e){var t=te(e),r=Je.f;if(r)for(var n,o=r(e),i=Ge.f,a=0;o.length>a;)i.call(e,n=o[a++])&&t.push(n);return t}(t=x(t)),o=0,i=n.length;o<i;)wt(e,r=n[o++],t[r]);return e}function Ae(e){var t=ut.call(this,e=o(e,!0));return!(this===ht&&y(lt,e)&&!y(pt,e))&&(!(t||!y(this,e)||!y(lt,e)||y(this,ct)&&this[ct][e])||t)}function Ie(e,t){if(e=x(e),t=o(t,!0),e!==ht||!y(lt,t)||y(pt,t)){var r=et(e,t);return!r||!y(lt,t)||y(e,ct)&&e[ct][t]||(r.enumerable=!0),r}}function Fe(e){for(var t,r=rt(x(e)),n=[],o=0;r.length>o;)y(lt,t=r[o++])||t==ct||t==Ze||n.push(t);return n}function Re(e){for(var t,r=e===ht,n=rt(r?pt:x(e)),o=[],i=0;n.length>i;)!y(lt,t=n[i++])||r&&!y(ht,t)||o.push(lt[t]);return o}var We={f:ue},De=We.f("iterator"),Be=t(function(e){function r(e){t(e,n,{value:{i:"O"+ ++o,w:{}}})}var n=N("meta"),t=p.f,o=0,i=Object.isExtensible||function(){return!0},a=!u(function(){return i(Object.preventExtensions({}))}),c=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!y(e,n)){if(!i(e))return"F";if(!t)return"E";r(e)}return e[n].i},getWeak:function(e,t){if(!y(e,n)){if(!i(e))return!0;if(!t)return!1;r(e)}return e[n].w},onFreeze:function(e){return a&&c.NEED&&i(e)&&!y(e,n)&&r(e),e}}}),Ve=(Be.KEY,Be.NEED,Be.fastKey,Be.getWeak,Be.onFreeze,p.f),Je={f:Object.getOwnPropertySymbols},Ge={f:{}.propertyIsEnumerable},qe=Array.isArray||function(e){return"Array"==j(e)},Xe=ee.concat("length","prototype"),ze={f:Object.getOwnPropertyNames||function(e){return M(e,Xe)}},Ke=ze.f,He={}.toString,Qe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ue={f:function(e){return Qe&&"[object Window]"==He.call(e)?function(e){try{return Ke(e)}catch(e){return Qe.slice()}}(e):Ke(x(e))}},Ye=Object.getOwnPropertyDescriptor,$e={f:a?Ye:function(e,t){if(e=x(e),t=o(t,!0),f)try{return Ye(e,t)}catch(e){}if(y(e,t))return w(!Ge.f.call(e,t),e[t])}},Ze=Be.KEY,et=$e.f,tt=p.f,rt=Ue.f,nt=g.Symbol,ot=g.JSON,it=ot&&ot.stringify,at="prototype",ct=ue("_hidden"),st=ue("toPrimitive"),ut={}.propertyIsEnumerable,ft=H("symbol-registry"),lt=H("symbols"),pt=H("op-symbols"),ht=Object[at],dt="function"==typeof nt&&!!Je.f,vt=g.QObject,mt=!vt||!vt[at]||!vt[at].findChild,yt=a&&u(function(){return 7!=se(tt({},"a",{get:function(){return tt(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=et(ht,t);n&&delete ht[t],tt(e,t,r),n&&e!==ht&&tt(ht,t,n)}:tt,gt=dt&&"symbol"==typeof nt.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof nt},wt=function(e,t,r){return e===ht&&wt(pt,t,r),d(e),t=o(t,!0),d(r),y(lt,t)?(r.enumerable?(y(e,ct)&&e[ct][t]&&(e[ct][t]=!1),r=se(r,{enumerable:w(0,!1)})):(y(e,ct)||tt(e,ct,w(1,{})),e[ct][t]=!0),yt(e,t,r)):tt(e,t,r)};dt||(V((nt=function(e){if(this instanceof nt)throw TypeError("Symbol is not a constructor!");var t=N(0<arguments.length?e:void 0),r=function(e){this===ht&&r.call(pt,e),y(this,ct)&&y(this[ct],t)&&(this[ct][t]=!1),yt(this,t,w(1,e))};return a&&mt&&yt(ht,t,{configurable:!0,set:r}),Me(t)})[at],"toString",function(){return this._k}),$e.f=Ie,p.f=wt,ze.f=Ue.f=Fe,Ge.f=Ae,Je.f=Re,We.f=function(e){return Me(ue(e))}),_(_.G+_.W+_.F*!dt,{Symbol:nt});for(var bt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),St=0;bt.length>St;)ue(bt[St++]);for(var Ot=te(ue.store),Et=0;Ot.length>Et;)Le(Ot[Et++]);_(_.S+_.F*!dt,"Symbol",{for:function(e){return y(ft,e+="")?ft[e]:ft[e]=nt(e)},keyFor:function(e){if(!gt(e))throw TypeError(e+" is not a symbol!");for(var t in ft)if(ft[t]===e)return t},useSetter:function(){mt=!0},useSimple:function(){mt=!1}}),_(_.S+_.F*!dt,"Object",{create:function(e,t){return void 0===t?se(e):Ce(se(e),t)},defineProperty:wt,defineProperties:Ce,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:Fe,getOwnPropertySymbols:Re});var _t=u(function(){Je.f(1)});_(_.S+_.F*_t,"Object",{getOwnPropertySymbols:function(e){return Je.f(he(e))}}),ot&&_(_.S+_.F*(!dt||u(function(){var e=nt();return"[null]"!=it([e])||"{}"!=it({a:e})||"{}"!=it(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;o<arguments.length;)n.push(arguments[o++]);if(r=t=n[1],(s(t)||void 0!==e)&&!gt(e))return qe(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!gt(t))return t}),n[1]=t,it.apply(ot,n)}}),nt[at][st]||S(nt[at],st,nt[at].valueOf),F(nt,"Symbol"),F(Math,"Math",!0),F(g.JSON,"JSON",!0);var Pt,kt=Object.freeze({});Le("asyncIterator"),Le("observable"),(Pt=kt)&&Pt.default;function jt(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ft))?r:Rt?j(t):"Object"==(n=j(t))&&"function"==typeof t.callee?"Arguments":n}function xt(t,e,r,n){try{return n?e(d(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&d(o.call(t)),e}}function Tt(e,t){var r,n=d(e).constructor;return void 0===n||null==(r=d(n)[Gt])?t:i(r)}function Nt(){var e=+this;if(Ut.hasOwnProperty(e)){var t=Ut[e];delete Ut[e],t()}}function Lt(e){Nt.call(e.data)}var Mt,Ct,At,It=b.Symbol,Ft=ue("toStringTag"),Rt="Arguments"==j(function(){return arguments}()),Wt=ue("iterator"),Dt=Array.prototype,Bt=ue("iterator"),Vt=b.getIteratorMethod=function(e){if(null!=e)return e[Bt]||e["@@iterator"]||J[jt(e)]},Jt=t(function(e){var p={},h={},t=e.exports=function(e,t,r,n,o){var i,a,c,s,u=o?function(){return e}:Vt(e),f=v(r,n,t?2:1),l=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(function(e){return void 0!==e&&(J.Array===e||Dt[Wt]===e)}(u)){for(i=T(e.length);l<i;l++)if((s=t?f(d(a=e[l])[0],a[1]):f(e[l]))===p||s===h)return s}else for(c=u.call(e);!(a=c.next()).done;)if((s=xt(c,f,a.value,t))===p||s===h)return s};t.BREAK=p,t.RETURN=h}),Gt=ue("species"),qt=g.process,Xt=g.setImmediate,zt=g.clearImmediate,Kt=g.MessageChannel,Ht=g.Dispatch,Qt=0,Ut={},Yt="onreadystatechange";Xt&&zt||(Xt=function(e){for(var t=[],r=1;r<arguments.length;)t.push(arguments[r++]);return Ut[++Qt]=function(){!function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}e.apply(r,t)}("function"==typeof e?e:Function(e),t)},Mt(Qt),Qt},zt=function(e){delete Ut[e]},"process"==j(qt)?Mt=function(e){qt.nextTick(v(Nt,e,1))}:Ht&&Ht.now?Mt=function(e){Ht.now(v(Nt,e,1))}:Kt?(At=(Ct=new Kt).port2,Ct.port1.onmessage=Lt,Mt=v(At.postMessage,At,1)):g.addEventListener&&"function"==typeof postMessage&&!g.importScripts?(Mt=function(e){g.postMessage(e+"","*")},g.addEventListener("message",Lt,!1)):Mt=Yt in n("script")?function(e){oe.appendChild(n("script"))[Yt]=function(){oe.removeChild(this),Nt.call(e)}}:function(e){setTimeout(v(Nt,e,1),0)});var $t={set:Xt,clear:zt},Zt=$t.set,er=g.MutationObserver||g.WebKitMutationObserver,tr=g.process,rr=g.Promise,nr="process"==j(tr);function or(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=i(r),this.reject=i(n)}function ir(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}function ar(e,t){if(d(e),s(t)&&t.constructor===e)return t;var r=cr.f(e);return(0,r.resolve)(t),r.promise}var cr={f:function(e){return new or(e)}},sr=g.navigator,ur=sr&&sr.userAgent||"",fr=ue("species"),lr=ue("iterator"),pr=!1;try{var hr=[7][lr]();hr.return=function(){pr=!0},Array.from(hr,function(){throw 2})}catch(e){}function dr(){}function vr(e){var t;return!(!s(e)||"function"!=typeof(t=e.then))&&t}function mr(f,r){if(!f._n){f._n=!0;var n=f._c;Pr(function(){for(var s=f._v,u=1==f._s,e=0,t=function(e){var t,r,n,o=u?e.ok:e.fail,i=e.resolve,a=e.reject,c=e.domain;try{o?(u||(2==f._h&&Rr(f),f._h=1),!0===o?t=s:(c&&c.enter(),t=o(s),c&&(c.exit(),n=!0)),t===e.promise?a(jr("Promise-chain cycle")):(r=vr(t))?r.call(t,i,a):i(t)):a(s)}catch(e){c&&!n&&c.exit(),a(e)}};n.length>e;)t(n[e++]);f._c=[],f._n=!1,r&&!f._h&&Ir(f)})}}function yr(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),mr(t,!0))}var gr,wr,br,Sr,Or,Er,_r=$t.set,Pr=function(){function e(){var e,t;for(nr&&(e=tr.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?o():n=void 0,e}}n=void 0,e&&e.enter()}var r,n,o;if(nr)o=function(){tr.nextTick(e)};else if(!er||g.navigator&&g.navigator.standalone)if(rr&&rr.resolve){var t=rr.resolve(void 0);o=function(){t.then(e)}}else o=function(){Zt.call(g,e)};else{var i=!0,a=document.createTextNode("");new er(e).observe(a,{characterData:!0}),o=function(){a.data=i=!i}}return function(e){var t={fn:e,next:void 0};n&&(n.next=t),r||(r=t,o()),n=t}}(),kr="Promise",jr=g.TypeError,xr=g.process,Tr=xr&&xr.versions,Nr=Tr&&Tr.v8||"",Lr=g[kr],Mr="process"==jt(xr),Cr=wr=cr.f,Ar=!!function(){try{var e=Lr.resolve(1),t=(e.constructor={})[ue("species")]=function(e){e(dr,dr)};return(Mr||"function"==typeof PromiseRejectionEvent)&&e.then(dr)instanceof t&&0!==Nr.indexOf("6.6")&&-1===ur.indexOf("Chrome/66")}catch(e){}}(),Ir=function(i){_r.call(g,function(){var e,t,r,n=i._v,o=Fr(i);if(o&&(e=ir(function(){Mr?xr.emit("unhandledRejection",n,i):(t=g.onunhandledrejection)?t({promise:i,reason:n}):(r=g.console)&&r.error&&r.error("Unhandled promise rejection",n)}),i._h=Mr||Fr(i)?2:1),i._a=void 0,o&&e.e)throw e.v})},Fr=function(e){return 1!==e._h&&0===(e._a||e._c).length},Rr=function(t){_r.call(g,function(){var e;Mr?xr.emit("rejectionHandled",t):(e=g.onrejectionhandled)&&e({promise:t,reason:t._v})})},Wr=function(e){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw jr("Promise can't be resolved itself");(r=vr(e))?Pr(function(){var t={_w:n,_d:!1};try{r.call(e,v(Wr,t,1),v(yr,t,1))}catch(e){yr.call(t,e)}}):(n._v=e,n._s=1,mr(n,!1))}catch(e){yr.call({_w:n,_d:!1},e)}}};Ar||(Lr=function(e){!function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!")}(this,Lr,kr,"_h"),i(e),gr.call(this);try{e(v(Wr,this,1),v(yr,this,1))}catch(e){yr.call(this,e)}},(gr=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,r){for(var n in t)r&&e[n]?e[n]=t[n]:S(e,n,t[n]);return e}(Lr.prototype,{then:function(e,t){var r=Cr(Tt(this,Lr));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Mr?xr.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&mr(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),br=function(){var e=new gr;this.promise=e,this.resolve=v(Wr,e,1),this.reject=v(yr,e,1)},cr.f=Cr=function(e){return e===Lr||e===Sr?new br(e):wr(e)}),_(_.G+_.W+_.F*!Ar,{Promise:Lr}),F(Lr,kr),Er="function"==typeof b[Or=kr]?b[Or]:g[Or],a&&Er&&!Er[fr]&&p.f(Er,fr,{configurable:!0,get:function(){return this}}),Sr=b[kr],_(_.S+_.F*!Ar,kr,{reject:function(e){var t=Cr(this);return(0,t.reject)(e),t.promise}}),_(_.S+!0*_.F,kr,{resolve:function(e){return ar(this===Sr?Lr:this,e)}}),_(_.S+_.F*!(Ar&&function(e,t){if(!t&&!pr)return!1;var r=!1;try{var n=[7],o=n[lr]();o.next=function(){return{done:r=!0}},n[lr]=function(){return o},e(n)}catch(e){}return r}(function(e){Lr.all(e).catch(dr)})),kr,{all:function(e){var a=this,t=Cr(a),c=t.resolve,s=t.reject,r=ir(function(){var n=[],o=0,i=1;Jt(e,!1,function(e){var t=o++,r=!1;n.push(void 0),i++,a.resolve(e).then(function(e){r||(r=!0,n[t]=e,--i||c(n))},s)}),--i||c(n)});return r.e&&s(r.v),t.promise},race:function(e){var t=this,r=Cr(t),n=r.reject,o=ir(function(){Jt(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}}),_(_.P+_.R,"Promise",{finally:function(t){var r=Tt(this,b.Promise||g.Promise),e="function"==typeof t;return this.then(e?function(e){return ar(r,t()).then(function(){return e})}:t,e?function(e){return ar(r,t()).then(function(){throw e})}:t)}}),_(_.S,"Promise",{try:function(e){var t=cr.f(this),r=ir(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}});var Dr=b.Promise,Br="undefined"==typeof window?function(){}:window.addEventListener?function(e,t,r,n){void 0===n&&(n={});var o=r||window,i=n.capture,a=void 0!==i&&i,c=n.passive,s=void 0!==c&&c,u=n.once,f=void 0!==u&&u;o.addEventListener(e,t,{capture:a,passive:s,once:f})}:function(e,t,r){(r||window).attachEvent("on"+e,t)};function Vr(i,a,c,s){return new(c=c||Dr)(function(e,t){function r(e){try{o(s.next(e))}catch(e){t(e)}}function n(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){t.done?e(t.value):new c(function(e){e(t.value)}).then(r,n)}o((s=s.apply(i,a||[])).next())})}function Jr(r,n){var o,i,a,e,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof It&&(e[De]=function(){return this}),e;function t(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,i=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(a=0<(a=c.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){c.label=t[1];break}if(6===t[0]&&c.label<a[1]){c.label=a[1],a=t;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(t);break}a[2]&&c.ops.pop(),c.trys.pop();continue}t=n.call(r,c)}catch(e){t=[6,e],i=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function Gr(e){var t=!0;try{switch(e){case"generator":(function(){return Jr(this,function(e){switch(e.label){case 0:return[4,!0];case 1:return e.sent(),[2]}})})().next();break;case"promise":Dr.resolve(!0);break;case"async":!function(){Vr(this,void 0,void 0,function(){return Jr(this,function(e){switch(e.label){case 0:return[4,Dr.resolve(!0).then(function(e){return e})];case 1:return[2,e.sent()]}})})}()}}catch(e){t=!1}return t}function qr(){return W&&+W()||(new Date).getTime()}function Xr(){return Jr(this,function(e){switch(e.label){case 0:return[4];case 1:return e.sent(),[2]}})}var zr,Kr;It(1),new Date,Dr.resolve(void 0),Xr();function Hr(r){return function(e){if("object"!=typeof e)return typeof e===r.toLowerCase();var t=Object.prototype.toString.call(e).length-1;return Object.prototype.toString.call(e).slice(8,t).toLowerCase()===r.toLowerCase()}}(Kr=zr=zr||{})[Kr.detail=0]="detail",Kr[Kr.info=1]="info",Kr[Kr.warn=2]="warn",Kr[Kr.error=3]="error",Kr[Kr.silent=4]="silent";(function(){if("undefined"==typeof window)return;var e=RegExp(":(80|443)$"),t=document.createElement("a"),r={}})(),"undefined"==typeof window||window.removeEventListener;function Qr(){return console.warn("Please pass the [Generator Function]"),!1}var Ur,Yr=function(){if("undefined"==typeof window||!window.sessionStorage||!window.localStorage)return{get:function(){return null},set:function(){return!1},clear:function(){return!1}};var i={sessionStorage:{set:function(e,t){var r;try{window.sessionStorage.setItem(e,t),r=!0}catch(e){r=!1}return r},get:function(e){var t;try{t=window.sessionStorage.getItem(e)}catch(e){t=null}return t},clear:function(e){var t;try{window.sessionStorage.removeItem(e),t=!0}catch(e){t=!1}return t}},localStorage:{set:function(e,t){var r;try{window.localStorage.setItem(e,t),r=!0}catch(e){r=!1}return r},get:function(e){var t;try{t=window.localStorage.getItem(e)}catch(e){t=null}return t},clear:function(e){var t;try{window.localStorage.removeItem(e),t=!0}catch(e){t=!1}return t}},cookie:{set:function(e,t,r){var n;try{var o=r||{},i=o.domain,a=void 0===i?"":i,c=o.path,s=void 0===c?"/":c,u=o.expires,f=void 0===u?0:u,l=o.secure,p=void 0!==l&&l,h=void 0;0<=f&&(h=new Date).setTime(h.getTime()+1e3*f),document.cookie=e+"="+t+";domain="+a+";path="+s+";expires="+(h?h.toUTCString():"")+";"+(p?"secure":""),n=!0}catch(e){n=!1}return n},get:function(e){var t=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),r=document.cookie.match(t);return r&&r[2]?unescape(r[2]):null},clear:function(e,t){return document.cookie=e+'="";domain='+t+";max-age=-1",!i.cookie.get(e)}},get:function(e,t){try{return"string"==typeof t&&i[t]?i[t].get(e):this.cookie.get(e)||this.localStorage.get(e)||this.sessionStorage.get(e)}catch(e){return null}},set:function(e,t,r,n){var o;try{o="string"==typeof r&&i[r]?i[r].set(e,t,n):n?i.cookie.set(e,t,n):i.localStorage.set(e,t)}catch(e){o=!1}return o},clear:function(e,t,r){var n;try{n="string"==typeof t&&i[t]?i[t].clear(e,r):r?i.cookie.clear(e,r):i.localStorage.clear(e)&&i.sessionStorage.clear(e)}catch(e){n=!1}return n}};return i}(),$r=(Ur="undefined"!=typeof window&&window.performance,function(e){if(!e||"function"!=typeof e)return Qr;var i=e();return"function"!=typeof i.next?Qr:new Dr(function(n,o){!function e(){try{for(var t=Ur&&performance.now()||qr(),r=null;!(r=i.next()).done&&(Ur&&performance.now()||qr())-t<25;);if(r.done)return void n(r.value);setTimeout(e)}catch(e){o(e)}}()})});function Zr(){return console.warn("Your browser not support the [Performance] API!"),!1}function en(){return console.warn("Your browser not support the [Performance] API!"),Promise.resolve(!1)}var tn,rn,nn=(on.prototype.init=function(e,t){if(!e)return console.warn("Please pass a vaild HTMLElement"),null;var r;try{(r=new MutationObserver(t)).observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","href"]})}catch(e){return null}return r},on.prototype.cancel=function(){this.observer&&this.observer.disconnect()},on.prototype.setCache=function(e){this.cache.push(e)},on.prototype.getCache=function(){return this.cache},on.prototype.clearCache=function(){this.cache.splice(0)},on);function on(e,t){this.cache=[],this.observer=this.init(e,t)}(rn=tn=tn||{})[rn.js=0]="js",rn[rn.api=1]="api",rn[rn.source=2]="source";var an=[],cn=[],sn=[],un="fe-supervisor-error";var fn={getErrors:function(e){var t;switch(e?tn[e]:void 0){case tn.js:t=an;break;case tn.api:t=cn;break;case tn.source:t=sn;break;default:t={jsErrors:an,apiErrors:cn,sourceErrors:sn}}return t},setErrors:function(e){var t=e.type;switch(tn[t]){case tn.js:var r=(new Error).stack;an.push(A(A({},e),{code_site:r}));break;case tn.api:cn.push(e);break;case tn.source:sn.push(e)}},clearError:function(e){var t=e?tn[e]:void 0,r=!0;try{switch(t){case tn.js:an.splice(0);break;case tn.api:cn.splice(0);break;case tn.source:sn.splice(0);break;default:an.splice(0),cn.splice(0),sn.splice(0)}}catch(e){r=!1}return r},dupliError:function(c,s){return m(this,void 0,Promise,function(){function t(){var t,r;return I(this,function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<i?(r=o[t]).msg&&r.msg===s?(n=!0,[2]):[4]:[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})}var n,o,i,r,a;return I(this,function(e){switch(e.label){case 0:return n=!1,o=fn.getErrors(c),i=o&&o.length||0,Gr("generator")?[4,$r(t)]:[3,2];case 1:return e.sent(),[2,n];case 2:for(r=0;r<i;r++)if((a=o[r]).msg&&a.msg===s){n=!0;break}return[2,n]}})})}};function ln(t,r){return m(this,void 0,Promise,function(){return I(this,function(e){switch(e.label){case 0:return t?[4,fn.dupliError(t,r)]:[2];case 1:return e.sent()||fn.setErrors({ts:qr(),type:t,url:location.href,msg:r}),[2]}})})}var pn=[],hn=[],dn=[],vn=[],mn="undefined"!=typeof window&&window.performance?function(){var e,t,r,n;try{var o=window.performance.memory||{};e=o.jsHeapSizeLimit||1,t=o.usedJSHeapSize||0,r=o.totalJSHeapSize||1,n=+Number.prototype.toFixed.call(t/r,3)}catch(e){ln("js","[SV - getMemory]: "+JSON.stringify(e,Object.getOwnPropertyNames(e)))}finally{return{limit:e,memory:n||"N/A",used:n?t:"N/A",total:n?r:"N/A"}}}:Zr,yn="undefined"!=typeof window&&window.performance?function(){var e,t,r,n,o,i,a,c,s,u,f,l,p,h,d,v,m,y,g,w,b;e=t=r=n=o=i=a=c=s=u=f=l=p=h=d=v=m=y=g=w=b="N/A";try{var S=window.performance.timing||{};e=Pn(S.domLoading-S.navigationStart),t=Pn(S.domContentLoadedEventStart-S.navigationStart),r=Pn(S.responseEnd-S.navigationStart),n=Pn(S.fetchStart-S.navigationStart),o=Pn(S.redirectEnd-S.redirectStart),i=Pn(S.domainLookupEnd-S.domainLookupStart),a=Pn(S.connectEnd-S.connectStart),c=Pn(S.responseStart-S.requestStart),s=Pn(S.responseEnd-S.responseStart),u=Pn(S.responseEnd-S.requestStart),f=Pn(S.domLoading-S.responseEnd),l=Pn(S.domInteractive-S.domLoading),p=Pn(S.domContentLoadedEventStart-S.domLoading),h=Pn(S.domComplete-S.domLoading),d=Pn(S.domComplete-S.navigationStart),v=Pn(S.domContentLoadedEventStart-S.domInteractive),m=Pn(S.domContentLoadedEventEnd-S.domInteractive),y=Pn(S.domContentLoadedEventEnd-S.navigationStart),g=Pn(S.domContentLoadedEventStart-S.domLoading),w=Pn(S.loadEventEnd-S.domLoading),b=Pn(S.loadEventEnd-S.navigationStart)}catch(e){ln("js","[SV - getTiming]: "+JSON.stringify(e,Object.getOwnPropertyNames(e)))}finally{return{wscreen:e,fscreen:t,network:r,network_prev:n,network_redirect:o,network_dns:i,network_tcp:a,network_request:c,network_response:s,network_interact:u,dom_loading:f,dom_interact:l,dom_ready:p,dom_load:h,dom_complete:d,js_ready:v,js_load:m,js_complete:y,render_ready:g,render_load:w,total:b}}}:Zr,gn="undefined"!=typeof window&&window.performance?function(C){return m(this,void 0,Promise,function(){function n(e){var t=e.entryType||"",r=e.initiatorType||"",n={name:e.name,duration:+Number.prototype.toFixed.call(e.duration,2),type:r};if("xmlhttprequest"===r||"fetchrequest"===r){if(P)if(Hr("string")(P)){if(n.name===P)return}else if(Hr("array")(P))for(var o=P&&P.length||0,i=0;i<o;i++)if(n.name===P[i])return;kn(g)&&l.push(n),T<=n.duration&&p.push(n),Hr("string")(b)?n.name===b&&h.push(n):Hr("array")(b)&&b.some(function(e){return e===n.name&&(h.push(n),!0)})}else if("script"===r||"css"===r||"img"===r||"link"===r||"css"===r){if(k)if(Hr("string")(k)){if(n.name===k)return}else if(Hr("array")(k))for(var a=k&&k.length||0,c=0;c<a;c++)if(n.name===k[c])return;if(kn(w)&&d.push(n),T<=n.duration&&v.push(n),Hr("string")(S))r===S&&m.push(n);else if(Hr("array")(S))S.some(function(e){return e===r&&(m.push(n),!0)});else if(Hr("object")(S))for(var s in S)s===r&&S[s].some(function(e){return e===n.name&&(m.push(n),!0)})}else if(_&&"paint"===t){var u=e.startTime,f="";if("first-paint"===n.name||"first-contentful-paint"===n.name){switch(n.name){case"first-paint":f="FP";break;case"first-contentful-paint":f="FCP"}y.push(A(A({},n),{type:f,startTime:u}))}}}function t(){var t,r;return I(this,function(e){switch(e.label){case 0:t=x.length,r=0,e.label=1;case 1:return r<t?(n(x[r]),[4]):[3,4];case 2:e.sent(),e.label=3;case 3:return r++,[3,1];case 4:return[2]}})}var l,p,h,d,v,m,y,r,o,g,i,w,a,b,c,S,s,u,f,O,E,_,P,k,j,x,T,N,L,M;return I(this,function(e){switch(e.label){case 0:l=[],p=[],h=[],d=[],v=[],m=[],y=[],e.label=1;case 1:return e.trys.push([1,5,6,7]),o=(r=C||{}).apiRatio,g=void 0===o?.1:o,i=r.sourceRatio,w=void 0===i?.1:i,a=r.apis,b=void 0===a?"":a,c=r.sources,S=void 0===c?"":c,s=r.timeout,u=void 0===s?2e3:s,f=r.whitelist,O=void 0===f?{}:f,E=r.paintTiming,_=void 0!==E&&E,P=O.api||"",k=O.source||"",j=window.performance,x=j.getEntries&&j.getEntries()||[],T=u,Gr("generator")?[4,$r(t)]:[3,3];case 2:return e.sent(),[3,4];case 3:for(N=x.length,L=0;L<N;L++)n(x[L]);e.label=4;case 4:return[3,7];case 5:return M=e.sent(),ln("js","[SV - getSource]: "+JSON.stringify(M,Object.getOwnPropertyNames(M))),[3,7];case 6:return[2,{api_random:l,api_timeout:p,api_appoint:h,source_random:d,source_timeout:v,source_appoint:m,others:y}];case 7:return[2]}})})}:en,wn="undefined"!=typeof window&&window.performance?function(){return m(this,void 0,Promise,function(){function n(e){"measure"===e.entryType&&r.push({name:e.name,duration:+Number.prototype.toFixed.call(e.duration,3)})}function t(){var t,r;return I(this,function(e){switch(e.label){case 0:for(t=i&&i.length||0,r=0;r<t;r++)n(i[r]);return[4];case 1:return e.sent(),[2]}})}var r,o,i,a,c,s;return I(this,function(e){switch(e.label){case 0:r=[],e.label=1;case 1:return e.trys.push([1,5,6,7]),o=window.performance,i=[],i=o.mark&&o.measure?o.getEntriesByType&&o.getEntriesByType("measure")||o.getEntries&&o.getEntries()||[]:hn,Gr("generator")?[4,$r(t)]:[3,3];case 2:return e.sent(),[3,4];case 3:for(a=i&&i.length||0,c=0;c<a;c++)n(i[c]);e.label=4;case 4:return[3,7];case 5:return s=e.sent(),ln("js","[SV - getExecTiming]: "+JSON.stringify(s,Object.getOwnPropertyNames(s))),[3,7];case 6:return[2,{exec:r}];case 7:return[2]}})})}:en,bn="undefined"!=typeof window&&window.performance?function(c){return m(this,void 0,Promise,function(){var t,r,n,o,i,a;return I(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,4,5]),i=mn(),t=i&&i.memory,r=yn()||{},[4,gn(c).then(function(e){return e})];case 1:return n=e.sent(),[4,wn().then(function(e){return e})];case 2:return o=e.sent(),[3,5];case 3:return a=e.sent(),ln("js","[SV - getPerformanceData]: "+JSON.stringify(a,Object.getOwnPropertyNames(a))),[3,5];case 4:return[2,A(A(A({memory:t||"N/A"},r),n),o)];case 5:return[2]}})})}:en,Sn="undefined"!=typeof window&&window.performance?function(e){var t=!0;try{var r=window.performance,n=e+"_start",o=e+"_end";~dn.indexOf(e)?~vn.indexOf(e)?(t=!1,console.warn("Cannot repeat tag the mark: "+e)):(r.mark&&r.measure?(r.mark(o),r.measure(""+e,n,o)):(_n(o),function(e,t,r){for(var n=pn&&pn.length||0,o=0,i=0,a=0;a<n;a++){var c=pn[a];c.tag===t&&(o=c.ts),c.tag===r&&(i=c.ts)}hn.push({entryType:"measure",name:e,duration:Math.abs(i-o)})}(""+e,n,o)),vn.push(e)):(r.mark?r.mark(n):_n(n),dn.push(e))}catch(e){t=!1,ln("js","[SV - mark]: "+JSON.stringify(e,Object.getOwnPropertyNames(e)))}finally{return t}}:Zr,On="undefined"!=typeof window&&window.performance?function(e){try{var t=!e||"source"===e||"all"===e,r=!e||"mark"===e||"all"===e,n=!e||"measure"===e||"all"===e,o=window.performance;return r&&(o.clearMarks&&o.clearMarks(),dn.splice(0),pn.splice(0)),n&&(o.clearMeasures&&o.clearMeasures(),vn.splice(0),hn.splice(0)),t&&o.clearResourceTimings&&o.clearResourceTimings(),!0}catch(e){return ln("js","[SV - clearPerformance]: "+JSON.stringify(e,Object.getOwnPropertyNames(e))),!1}}:Zr,En="undefined"!=typeof window&&window.performance?function(e,p,t){var r=t||{},n=r.sourceType,f=void 0===n?"img":n,o=r.timeout,h=void 0===o?2e3:o,i=r.whitelist,d=void 0===i?{}:i;function v(s,u){if(Gr("generator"))return function(){var t,r,n,o,i,a,c;return I(this,function(e){switch(e.label){case 0:e.trys.push([0,7,,8]),t=s&&s.length||0,r=0,e.label=1;case 1:return r<t?(n=s[r],o=n.nodeName.toLowerCase(),~f.indexOf(o)&&(i=n.src||n.href||"",u[o]||(u[o]=[]),i&&u[o].push(i)),0<((a=n.children)&&a.length||0)?[4,$r(v(a,u))]:[3,3]):[3,6];case 2:e.sent(),e.label=3;case 3:return[4];case 4:e.sent(),e.label=5;case 5:return r++,[3,1];case 6:return[3,8];case 7:return c=e.sent(),ln("js","[SV - observeSource_iterationDOM]: "+JSON.stringify(c,Object.getOwnPropertyNames(c))),[3,8];case 8:return[2]}})};!function e(t,r){for(var n=t&&t.length||0,o=0;o<n;o++){var i=t[o],a=i.nodeName.toLowerCase();if(~f.indexOf(a)){var c=i.src||i.href||"";r[a]||(r[a]=[]),c&&r[a].push(c)}var s=i.children;0<(s&&s.length||0)&&e(s,r)}}(s,u)}return f=Hr("string")(f)?[f.toLowerCase()]:function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}(f.map(function(e){return e.toLowerCase()})),function(c,s){m(this,void 0,void 0,function(){var t,r,n,o,i,a;return I(this,function(e){switch(e.label){case 0:t=[],e.label=1;case 1:return e.trys.push([1,5,6,7]),r=c.nodeName.toLowerCase(),n={},~f.indexOf(r)&&(o=c.src||c.href||"",n[r]||(n[r]=[]),o&&n[r].push(o)),(i=c.children)&&0<i.length?[4,$r(v(i,n))]:[3,3];case 2:e.sent(),e.label=3;case 3:return[4,gn({apiRatio:0,sourceRatio:0,sources:n,whitelist:d}).then(function(e){return e.source_appoint})];case 4:return t=e.sent(),!s&&p&&p(t),[3,7];case 5:return a=e.sent(),ln("js","[SV - observeSource_getSourceByDom]: "+JSON.stringify(a,Object.getOwnPropertyNames(a))),[3,7];case 6:return[2,t];case 7:return[2]}})})}(e),new nn(e,function(l){return m(this,void 0,void 0,function(){var i,a,t,c,r,n,o,s,u,f;return I(this,function(e){switch(e.label){case 0:i=0,a=200,t=l&&l.length||0,c={},r=0,e.label=1;case 1:if(!(r<t))return[3,6];switch(n=l[r],n.type){case"childList":return[3,2];case"attributes":return[3,4]}return[3,5];case 2:return o=n.addedNodes,[4,$r(v(o,c))];case 3:return e.sent(),[3,5];case 4:return s=n.attributeName,u=n.target,f=u.tagName&&u.tagName.toLowerCase()||"img",s&&(c[f]||(c[f]=[]),c[f].push(u[s])),[3,5];case 5:return r++,[3,1];case 6:return function o(){setTimeout(function(){return m(this,void 0,void 0,function(){var t,r,n;return I(this,function(e){switch(e.label){case 0:return[4,gn({apiRatio:0,sourceRatio:0,sources:c,whitelist:d}).then(function(e){return e.source_appoint})];case 1:for(n in t=e.sent(),r=0,c)r+=c[n].length;return t&&t.length===r||h<=i?[2,p&&p(t)]:(i+=a,o(),[2])}})})},a)}(),[2]}})})})}:Zr;function _n(e){var t=+(window.performance.now&&""+window.performance.now()||qr());pn.push({tag:e,ts:t})}function Pn(e){return null==e||isNaN(e)?"N/A":0<e?e:0}function kn(e){return 0!==e&&Math.random()<=e}var jn=(xn.prototype.updateConfig=function(e){this.config=A(A({},this.config),e)},xn.prototype.getMemory=function(){return mn()},xn.prototype.getTiming=function(){return yn()},xn.prototype.getSource=function(){return m(this,void 0,void 0,function(){return I(this,function(e){switch(e.label){case 0:return[4,gn(this.config)];case 1:return[2,e.sent()]}})})},xn.prototype.getExecTiming=function(){return m(this,void 0,void 0,function(){return I(this,function(e){switch(e.label){case 0:return[4,wn()];case 1:return[2,e.sent()]}})})},xn.prototype.getPerformanceData=function(){return m(this,void 0,void 0,function(){return I(this,function(e){return[2,bn(this.config)]})})},xn.prototype.clearPerformance=function(e){return On(e)},xn.prototype.observeSource=function(e,t,r){return this.config&&this.config.timeout&&(r=A({timeout:this.config.timeout},r)),En(e,t,r)},xn);function xn(e){this.config=e}var Tn="undefined"==typeof window?function(){return console.warn("Please call in browser environment"),!1}:function(){var e=navigator.userAgent,t=window.screen,r=location.href,n=document.referrer,o={ts:qr(),os:"",browser:"",screen_size:(t.width||0)+"x"+(t.height||0),page_url:r,referer:n,device:"ontouchstart"in window?"mobile":"pc",ua:e},i=function(t){if(!t)return!1;function e(e){return e.test(t)}function r(e){var t="";if(/(iPhone\/)?iPhone\s?X/.test(e))t="iPhoneX";else if(/iPhone/.test(e)&&"undefined"!=typeof screen){var r=screen.height,n=screen.width;812===r||812===n?t="iPhoneX":896!==r&&896!==n||(t="iPhoneXR",devicePixelRatio&&3===devicePixelRatio&&(t="iPhoneXSMax"))}return t}return{isAndroid:e(/android|linux|adr/i),isIOS:e(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),isWindows:e(/window/i),isMac:e(/mac os x/i),isIPad:e(/iPad/i),isMobile:e(/AppleWebKit.*Mobile.*|Mobile/i),isWebKit:e(/webkit\W/i),isChrome:e(/webkit\W.*(chrome|chromium)\W/i),isFirefox:e(/mozilla.*\Wfirefox\W/i),isGecko:e(/mozilla(?!.*webkit).*\Wgecko\W/i),is360se:e(/360/i),isIE:"undefined"!=typeof window&&"Microsoft Internet Explorer"===navigator.appName||!!e(/\bTrident\b/),isEdge:e(/\bEdge\b/i),isOpera:e(/opera.*\Wpresto\W|OPR/i),isSafari:e(/webkit\W(?!.*chrome).*safari\W/i),isUCBrowser:e(/ucbrowser/i),isBaiduBrowser:e(/bidubrowser/i),isSougouBrowser:e(/metasr/i),isLiebaoBrowser:e(/lbbrowser/i),isWeixin:e(/micromessenger/i),isSinaWeibo:e(/weibo/i),isQQ:e(/qq/i),isQQWeibo:e(/tencentmicroblog/i),isFacebook:e(/fban/i),isTwitter:e(/twitter/i),isInstagram:e(/instagram/i),isIphoneX:"iPhoneX"==r(t),isIPhoneXR:"iPhoneXR"==r(t),isIPhoneXSMax:"iPhoneXSMax"==r(t)}}(e),a=i.isMobile,c=i.isAndroid,s=i.isIOS,u=i.isWindows,f=i.isMac,l=i.isWeixin,p=i.isSinaWeibo,h=i.isQQWeibo,d=i.isFacebook,v=i.isTwitter,m=i.isInstagram,y=i.isChrome,g=i.isFirefox,w=i.isGecko,b=i.isIE,S=i.isEdge,O=i.isOpera,E=i.isSafari,_=i.is360se,P=i.isQQ,k=i.isUCBrowser,j=i.isBaiduBrowser,x=i.isSougouBrowser,T=i.isLiebaoBrowser,N=i.isWebKit;return a?c?o.os="android":s&&(o.os="ios"):u?o.os="windows":f&&(o.os="mac"),l?o.browser="weixin":p?o.browser="weibo_sina":h?o.browser="weibo_qq":d?o.browser="facebook":v?o.browser="twitter":m?o.browser="instagram":y?o.browser="chrome":g||w?o.browser="firefox":b?o.browser="ie":S?o.browser="edge":O?o.browser="opera":E?o.browser="safari":_?o.browser="360":P?o.browser="qq":k?o.browser="uc":j?o.browser="baidu":x?o.browser="sougou":T?o.browser="liebao":N&&(o.browser="webkit"),o};function Nn(e){return e?fn.getErrors(e):fn.getErrors()}function Ln(e){fn.setErrors(e)}function Mn(e){return fn.clearError(e)}function Cn(e,f,t){return new nn(e,function(e){var u=(t&&"string"==typeof t?[t]:t)||["img"];!function n(e){try{for(var t=e&&e.length||0,r=0;r<t;r++){var o=e[r].addedNodes;if(o)for(var i=o.length||0,a=0;a<i;a++)s(o[a]);else s(e[r])}}catch(e){var c="[SV - observeError_handleError]: "+JSON.stringify(e,Object.getOwnPropertyNames(e));ln("js",c)}function s(o){try{var e=o.nodeName,i=e.toLowerCase();e:if(~u.indexOf(i)){if(o.getAttribute){if(o.getAttribute(un))break e;o.setAttribute(un,"true")}Br("error",function(e){var t=e.target,r=t&&(t.href||t.src)||location.href,n={ts:qr(),type:"source",sourceType:i,url:r,msg:JSON.stringify(e,Object.getOwnPropertyNames(e))};fn.setErrors(n),f&&f(o,e)},o,{passive:!0})}var t=o.children;if(t&&0<t.length)return n(t)}catch(e){var r="[SV - observeError_bindError]: "+JSON.stringify(e,Object.getOwnPropertyNames(e));ln("js",r)}}}(e)})}function An(e){return Array.from?Array.from(e):Array.prototype.slice.call(e)}function In(e,r){e&&!e.getAttribute(un)&&(e.setAttribute(un,"true"),Br("error",function(e){var t=e.target.src||e.target.href;fn.setErrors({ts:qr(),type:"source",sourceType:r,url:t,msg:JSON.stringify(e,Object.getOwnPropertyNames(e))})},e))}function Fn(e,t){try{if("pv"===e)Yr.get("uuid","cookie")||(e="uv",Yr.set("uuid",function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),"cookie",{expires:86400}))}catch(e){ln("js","[SV - makeTrackInfo]: "+JSON.stringify(e,Object.getOwnPropertyNames(e)))}finally{return{ts:qr(),type:e,info:t}}}"undefined"!=typeof window&&(Br("error",function(e){var t=e.filename,r=e.message,n=e.error;fn.setErrors({ts:qr(),type:"js",url:t||"",msg:r,error:n})},window,{passive:!0}),Br("DOMContentLoaded",function(){for(var e=An(document.getElementsByTagName("img")),t=An(document.getElementsByTagName("link")),r=An(document.getElementsByTagName("script")),n=e&&e.length||0,o=t&&t.length||0,i=r&&r.length||0,a=Math.max(n,o,i),c=0;c<a;c++)e[c]&&In(e[c],"img"),t[c]&&In(t[c],"link"),r[c]&&In(r[c],"script")},window));var Rn={getPerformanceData:bn,getMemory:mn,getTiming:yn,getSource:gn,getExecTiming:wn,mark:Sn,clearPerformance:On,observeSource:En,getEnvInfo:Tn,getError:Nn,setError:Ln,clearError:Mn,observeError:Cn,makeTrackInfo:Fn,SV:jn};e.SV=jn,e.clearError=Mn,e.clearPerformance=On,e.default=Rn,e.getEnvInfo=Tn,e.getError=Nn,e.getExecTiming=wn,e.getMemory=mn,e.getPerformanceData=bn,e.getSource=gn,e.getTiming=yn,e.makeTrackInfo=Fn,e.mark=Sn,e.observeError=Cn,e.observeSource=En,e.setError=Ln,Object.defineProperty(e,"__esModule",{value:!0})});