@microsoft/applicationinsights-offlinechannel-js 0.1.0-nightly3.2402-09 → 0.1.0-nightly3.2402-12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Offline Channel, 0.1.0-nightly3.2402-09
2
+ * Application Insights JavaScript SDK - Offline Channel, 0.1.0-nightly3.2402-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft.ApplicationInsights=n.Microsoft.ApplicationInsights||{}))}(this,function(n){"use strict";var y=undefined,b=null,u="",i="function",c="number",a="object",f="prototype",e="__proto__",t="undefined",l="constructor",s="Symbol",r="_polyfill",v="indexOf",$="length",J="done",W="value",Q="name",G="slice",m="call",Z="toString",o=Object,Y=o[f],nn=String,tn=nn[f],rn=Math,en=Array,on=en[f];function x(n,t){try{return{v:n.apply(this,t)}}catch(r){return{e:r}}}function un(t){return function(n){return typeof n===t}}function cn(n){var t="[object "+n+"]";return function(n){return!(!n||Y.toString.call(n)!==t)}}function N(n){return typeof n===t||n===t}function A(n){return n===b||N(n)}function an(n){return!!n||n!==y}var fn=un("string"),M=un(i);function ln(n){return!(!n&&A(n)||!n||typeof n!==a)}var I=en.isArray,sn=un(c),vn=cn("Error");function dn(n){return n&&n.then&&M(n.then)}var gn=o.getOwnPropertyDescriptor;function g(n,t){return!!n&&Y.hasOwnProperty[m](n,t)}var hn=o.hasOwn||function(n,t){return g(n,t)||!!gn(n,t)};function d(n,t,r){if(n&&ln(n))for(var e in n)if(hn(n,e)&&-1===t[m](r||n,e,n[e]))break}function pn(n,r,e,t){var o={};return d(n,function(n,t){o[n]=r?t:n,o[t]=e?t:n}),t(o)}function yn(n){throw new TypeError(n)}var bn=o.freeze,mn=o.keys;function xn(n){return bn&&d(n,function(n,t){(I(t)||ln(t))&&bn(t)}),_n(n)}var _n=bn||function(n){return n},Cn=o.getPrototypeOf||function(n){return n[e]||b};function wn(n){return pn(n,0,0,xn)}var Dn,En=wn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Sn=nn,Tn="__tsUtils$gblCfg";function Pn(){var n;return(n=(n=(n=typeof globalThis!==t?globalThis:n)||typeof self===t?n:self)||typeof window===t?n:window)||typeof global===t?n:global}function On(){var n;return Dn||(n=x(Pn).v||{},Dn=n[Tn]=n[Tn]||{}),Dn}var In,kn="[object Error]";function k(n,t){var r=u,e=Y[Z][m](n);e===kn&&(n={stack:Sn(n.stack),message:Sn(n.message),name:Sn(n.name)});try{r=(r=JSON.stringify(n,b,t?typeof t===c?t:4:y))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Sn(n)}catch(o){r=" - "+k(o,t)}return e+": "+r}function Nn(e,n,o){In=In||on[G];var u=n&&n[e];return function(n){var t,r=n&&n[e]||u;if(r||o)return t=arguments,(r||o).apply(n,r?In[m](t,1):t);yn('"'+Sn(e)+'" not defined for '+k(n))}}function An(t){return function(n){return n[t]}}var Mn=rn.max,jn=Nn(G,tn),Bn=Nn("substring",tn),Rn=Nn("substr",tn,Ln);function Ln(n,t,r){return A(n)&&yn("'polyStrSubstr called with invalid "+k(n)),r<0?u:((t=t||0)<0&&(t=Mn(t+n[$],0)),N(r)?jn(n,t):jn(n,t,t+r))}var Hn,zn;function Un(n){var t={description:Sn(n),toString:function(){return s+"("+n+")"}};return t[r]=!0,t}var _,qn={e:"enumerable",c:"configurable",v:W,w:"writable",g:"get",s:"set"},C=o.defineProperty;function w(n,t,r){return C(n,t,(e=r,(o={})[qn.c]=!0,o[qn.e]=!0,e.l&&(o.get=function(){return e.l.v},(n=gn(e.l,"v"))&&n.set&&(o.set=function(n){e.l.v=n})),d(e,function(n,t){o[qn[n]]=N(t)?o[qn[n]]:t}),o));var e,o}function Vn(){_=On()}function Kn(t){var r={};return _||Vn(),r.b=_.lzy,C(r,"v",{configurable:!0,get:function(){var n=t();return _.lzy||C(r,"v",{value:n}),r.b=_.lzy,n}}),r}function Fn(t,r){return Kn(function(){var n=x(t);return n.e?r:n.v})}function Xn(n){return C({toJSON:function(){return n}},"v",{value:n})}var $n,Jn,Wn,Qn,Gn,D,Zn,Yn,nt="window";function tt(n){return Kn(function(){return x(j,[n]).v||y})}function rt(n){return _||Vn(),($n=$n&&!1!==n&&!_.lzy?$n:Xn(x(Pn).v||b)).v}function j(n,t){t=$n&&!1!==t?$n.v:rt(t);return t&&t[n]?t[n]:n===nt&&Jn?Jn.v:b}function et(){return _||Vn(),(Wn=Wn&&!_.lzy?Wn:Xn(x(j,["document"]).v)).v}function ot(){return _||Vn(),(Jn=Jn&&!_.lzy?Jn:Xn(x(j,[nt]).v)).v}function ut(){return _||Vn(),(Qn=Qn&&!_.lzy?Qn:Xn(x(j,["navigator"]).v)).v}function it(){D&&D.b||(D=tt(s),Zn=Fn(function(){return D.v?D.v["for"]:y},y))}function ct(n,t){var r=En[n];return _||Vn(),D&&!_.lzy||it(),D.v?D.v[r||n]:t?y:(zn=zn||{},(r=En[n])?zn[r]=zn[r]||Un(s+"."+r):void 0)}function at(n,t){return _||Vn(),D&&!_.lzy||it(),D.v?D.v(n):t?b:Un(n)}function ft(n){return _||Vn(),Zn&&D&&!_.lzy||it(),(Zn.v||function(n){Hn||(e=On(),Hn=e.gblSym=e.gblSym||{k:{},s:{}});var t,r,e=Hn;return hn(e.k,n)||(t=Un(n),r=mn(e.s).length,t._urid=function(){return r+"_"+t[Z]()},e.k[n]=t,e.s[t._urid()]=Sn(n)),e.k[n]})(n)}function lt(n){return n&&M(n.next)}function st(n,t,r){if(n&&(lt(n)||(n=n[(Yn=Yn||Xn(ct(3))).v]?n[Yn.v]():null),lt(n))){var e=void 0,o=void 0;try{for(var u=0;!(o=n.next())[J]&&-1!==t[m](r||n,o[W],u,n);)u++}catch(i){e={e:i},n["throw"]&&(o=null,n["throw"](e))}finally{try{o&&!o[J]&&n["return"]&&n["return"](o)}finally{if(e)throw e.e}}}}var vt=Nn("apply");function B(n,t,r){if(n)for(var e=n[$]>>>0,o=0;o<e&&!(o in n&&-1===t[m](r||n,n[o],o,n));o++);}var dt,gt,ht,pt,yt=Nn(v,on),bt=Nn(G,on),mt=o.create||function(n){if(!n)return{};var t=typeof n;function r(){}return t!==a&&t!=i&&yn("Prototype must be an Object or function: "+k(n)),r[f]=n,new r};function xt(n,t){return(o.setPrototypeOf||function(r,n){(dt=dt||Kn(function(){return{__proto__:[]}instanceof Array})).v?r[e]=n:d(n,function(n,t){return r[n]=t})})(n,t)}function _t(n,t){t&&(n[Q]=t)}function Ct(o,u,n){var t,r,i=n||Error,c=i[f][Q],a=Error.captureStackTrace,n=i;return x(w,[r=function(){var n=this,t=arguments;try{x(_t,[i,o]);var r,e=vt(i,n,on[G][m](t))||n;return e!==n&&(r=Cn(n))!==Cn(e)&&xt(e,r),a&&a(e,n[l]),u&&u(e,t),e}finally{x(_t,[i,c])}},Q,{v:t=o,c:!0,e:!1}]),(r=xt(r,n))[f]=n===b?mt(n):(e[f]=n[f],new e),r;function e(){this.constructor=r,x(w,[this,Q,{v:t,c:!0,e:!1}])}}function wt(){return(Date.now||Dt)()}function Dt(){return(new Date).getTime()}function Et(n){if(!n||typeof n!==a)return!1;var t=!1;if(n!==(pt=pt||!ot()||ot())){ht||(gt=Function[f][Z],ht=gt[m](o));try{var r=Cn(n),t=(t=!r)||(r=g(r,l)?r[l]:r)&&typeof r==i&&gt[m](r)===ht}catch(e){}}return t}var St=An($),Tt=Nn(v,tn),Pt="unref",Ot="hasRef",It="enabled";function kt(){return t=this,n=y,r=on[G][m](arguments),v=(s=I(n))?n.length:0,d=(0<v?n[0]:s?y:n)||setTimeout,g=(1<v?n[1]:y)||clearTimeout,h=r[0],r[0]=function(){p.dn(),vt(h,t,on[G][m](arguments))},o=function(n){vt(g,t,[n])},i=!0,c=(e=function(n){if(n){if(n.refresh)return n.refresh(),n;vt(g,t,[n])}return vt(d,t,r)})(b),(s={cancel:l=function(){c&&o(c),c=b},refresh:f=function(){return c=e(c),i||a(),u},hasRef:function(){return c&&c[Ot]?c[Ot]():i},ref:function(){return i=!0,c&&c.ref&&c.ref(),u}})[Pt]=a=function(){return i=!1,c&&c[Pt]&&c[Pt](),u},s[It]=!1,C(u=s,It,{get:function(){return!!c},set:function(n){!n&&c&&l(),n&&!c&&f()}}),(p={h:u,dn:function(){c=b}}).h;var t,n,r,e,o,u,i,c,a,f,l,s,v,d,g,h,p}var Nt="constructor",At="prototype",Mt="function",jt="_dynInstFuncs",Bt="_isDynProxy",Rt="_dynClass",Lt="_dynInstChk",Ht=Lt,zt="_dfOpts",Ut="_unknown_",qt="__proto__",Vt="_dyn"+qt,en="__dynProto$Gbl",Kt="_dynInstProto",Ft="useBaseInst",Xt="setInstFuncs",$t=Object,Jt=$t.getPrototypeOf,Wt=$t.getOwnPropertyNames,nn=rt(),Qt=nn[en]||(nn[en]={o:((rn={})[Xt]=!0,rn[Ft]=!0,rn),n:1e3});function Gt(n){return n&&(n===$t[At]||n===Array[At])}function Zt(n){return Gt(n)||n===Function[At]}function Yt(n){if(n){if(Jt)return Jt(n);var t=n[qt]||n[At]||(n[Nt]?n[Nt][At]:null),r=n[Vt]||t;g(n,Vt)||(delete n[Kt],r=n[Vt]=n[Kt]||n[Vt],n[Kt]=t)}return r}function nr(n,t){var r=[];if(Wt)r=Wt(n);else for(var e in n)"string"==typeof e&&g(n,e)&&r.push(e);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function tr(n,t,r){return t!==Nt&&typeof n[t]===Mt&&(r||g(n,t))&&t!==qt&&t!==At}function rr(n){yn("DynamicProto: "+n)}function er(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function or(n,t){return g(n,At)?n.name||t||Ut:((n||{})[Nt]||{}).name||t||Ut}function h(n,e,t,r){g(n,At)||rr("theClass is an invalid class definition.");var o,u,i,c,a,f,l=n[At],s=(function(n){if(!Jt)return 1;for(var t=[],r=Yt(e);r&&!Zt(r)&&!er(t,r);){if(r===n)return 1;t.push(r),r=Yt(r)}}(l)||rr("["+or(n)+"] not in hierarchy of ["+or(e)+"]"),null),n=(g(l,Rt)?s=l[Rt]:(s="_dynCls$"+or(n,"_")+"$"+Qt.n,Qt.n++,l[Rt]=s),h[zt]),v=!!n[Ft],d=(v&&r&&r[Ft]!==undefined&&(v=!!r[Ft]),o=e,u=mt(null),nr(o,function(n){!u[n]&&tr(o,n,!1)&&(u[n]=o[n])}),u),v=(t(e,function(n,t,r,u){function e(n,t,r){var e,o=t[r];return o[Bt]&&u&&!1!==(e=n[jt]||{})[Ht]&&(o=(e[t[Rt]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o=mt(null),i=(nr(r,function(n){o[n]=e(t,r,n)}),Yt(n)),c=[];i&&!Zt(i)&&!er(c,i);)nr(i,function(n){!o[n]&&tr(i,n,!Jt)&&(o[n]=e(t,i,n))}),c.push(i),i=Yt(i);return o}(l,e,d,v)),!!Jt&&!!n[Xt]);i=l,t=s,c=e,a=d,n=!1!==(v=v&&r?!!r[Xt]:v),Gt(i)||Gt(l=c[jt]=c[jt]||mt(null))||(f=l[t]=l[t]||mt(null),!1!==l[Ht]&&(l[Ht]=!!n),Gt(f)||nr(c,function(n){var r,e,o;tr(c,n,!1)&&c[n]!==a[n]&&(f[n]=c[n],delete c[n],g(i,n)&&(!i[n]||i[n][Bt])||(i[n]=(r=i,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&g(r,Rt)){var u=n[jt]||mt(null);if((o=(u[r[Rt]]||mt(null))[t])||rr("Missing ["+t+"] "+Mt),!o[Lt]&&!1!==u[Ht]){for(var i=!g(n,t),c=Yt(n),a=[];i&&c&&!Zt(c)&&!er(a,c);){var f=c[t];if(f){i=f===e;break}a.push(c),c=Yt(c)}try{i&&(n[t]=o),o[Lt]=1}catch(l){u[Ht]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?Yt(r)[n]:t)!==Mt&&rr("["+n+"] is not a "+Mt),t)).apply(this,arguments)})[Bt]=1,o)))}))}h[zt]=Qt.o;var ur,ir="toLowerCase",cr="blkVal",p="length",ar="rdOnly",fr="notify",lr="warnToConsole",sr="throwInternal",vr="setDf",dr="watch",gr="logger",hr="apply",E="push",pr="splice",yr="hdlr",br="identifier",mr="isInitialized",xr="getPlugin",_r="time",Cr="processNext",wr="unload",Dr="createNew",Er="teardown",Sr="messageId",Tr="message",Pr="isAsync",Or="diagLog",Ir="_doTeardown",kr="update",Nr="getNext",Ar="setNextPlugin",Mr="userAgent",jr="split",Br="nodeType",Rr="replace",Lr="type",Hr="handler",zr="isChildEvt",Ur="getCtx",qr="setCtx",Vr="complete",Kr="object",Fr="undefined",Xr="prototype",$r=Object,Jr=function(n,t){return(Jr=$r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};function R(n,t){return Wr(n,function(n){return t?t({value:n,rejected:!1}):n},function(n){return t?t({rejected:!0,reason:n}):n})}function Wr(n,t,r,e){var o,u=n;return dn(n)?(t||r)&&(u=n.then(t,r)):t&&(u=t(n)),e&&(r=u,(o=e)&&(dn(r)?r["finally"]?r["finally"](o):r.then(function(n){return o(),n},function(n){throw o(),n}):o())),u}var Qr,Gr,Zr=["pending","resolving","resolved","rejected"],Yr="dispatchEvent",ne="Promise",te="unhandledRejection",re=te.toLowerCase(),ee=10;function oe(n){return M(n)?n.toString():k(n)}function ue(n,t,r){var c,e=bt(arguments,3),a=0,f=!1,l=[],s=!1,o=null,u=(Gr=Gr||tt(ne+"RejectionEvent"),function(u,i){return s=!0,o&&o.cancel(),o=null,n(function(e,o){l.push(function(){try{var n=2===a?u:i,t=N(n)?c:M(n)?n(c):n;dn(t)?t.then(e,o):(n||3!==a?e:o)(t)}catch(r){o(r)}}),f&&v()},e)}),i=function(){return Zr[a]},v=function(){var n;0<l.length&&(n=l.slice(),l=[],s=!0,t(n),o&&o.cancel(),o=null)},d=function(t,r){return function(n){if(a===r){if(2===t&&dn(n))return a=1,void n.then(d(2,1),d(3,1));a=t,f=!0,c=n,v(),s||3!==t||o||(o=kt(g,ee))}}},g=function(){var n,t,r,e,o;s||((Gn=Gn||Xn(!!x(function(){return process&&(process.versions||{}).node}).v)).v?process.emit(te,c,h):(r=ot()||rt(),n=re,t=function(n){return w(n,"promise",{g:function(){return h}}),n.reason=c,n},o=!!Gr.v,e=et(),t(o=(Qr=Qr||Fn(function(){var n;return!!(n=e&&e.createEvent?e.createEvent("Event"):n)&&n.initEvent},null)).v?e.createEvent("Event"):o?new Event(n):{}),Qr.v&&o.initEvent(n,!1,!0),o&&r[Yr]?r[Yr](o):(t=r["on"+n])?t(o):(r=j("console"))&&(r.error||r.log)(n,k(o))))},h={then:u,"catch":function(n){return u(undefined,n)},"finally":function(t){var n=t,r=t;return M(t)&&(n=function(n){return t&&t(),n},r=function(n){throw t&&t(),n}),u(n,r)}},p=(C(h,"state",{get:i}),_||Vn(),D&&!_.lzy||it(),D.v&&(h[ct(11)]="IPromise"),h.toString=function(){return"IPromise "+i()+(f?" - "+oe(c):"")},M(r)||yn(ne+": executor is not a function - "+oe(r)),d(3,0));try{r.call(h,d(2,0),p)}catch(y){p(y)}return h}var ie=function(n){B(n,function(n){try{n()}catch(t){}})};function L(n,t){return ue(L,(e=sn(r=t)?r:0,function(n){kt(function(){ie(n)},e)}),n,t);var r,e}var ce,ae,fe,le,se,ve=function(t){var n=bt(arguments,1);return ce(function(r,e){try{var o=[],u=1;B(t,function(n,t){n&&(u++,Wr(n,function(n){o[t]=n,0==--u&&r(o)},e))}),0==--u&&r(o)}catch(n){e(n)}},n)},S=(fe=ae=ce=L,function(r){var n=bt(arguments,1);return fe(function(n,t){t(r)},n)});function de(n,t){var r=(le=le||tt(ne)).v;if(!r)return L(n);M(n)||yn(ne+": executor is not a function - "+k(n));var e=0,r=new r(function(t,r){n(function(n){e=2,t(n)},function(n){e=3,r(n)})});return C(r,"state",{get:function(){return Zr[e]}}),r}function ge(n,t){return(se=se||Kn(function(){return de})).v.call(this,n,t)}var he,pe,ye="reject",be="Rejected",me=0,xe={},_e=function(){},Ce=function(n,t,r){xe[n]||(xe[n]=Ct(n));var e=wt();return new xe[n]("Task [".concat(t.id,"] ").concat(r||"","- ").concat(t.st?"Running":"Waiting",": ").concat((e-(t.st||t.cr)||"0")+" ms"))};function we(n,t){var r=wt()-t;B(n,function(n){(n&&!n.rj&&n.st&&n.st<r||!n.st&&n.cr&&n.cr<r)&&n&&n[ye](n.rj||Ce("Aborted",n,"Stale "))})}function De(n,t){t=yt(n,t);-1!==t&&n.splice(t,1)}function Ee(a,n){var f,r,e,o,t,u,l=[],s=[],v=0,d=(n?n+".":"")+me++,g=(a=a||ge,function(){var n=0<St(l)+St(s);0<r&&(o||(o=kt(function(){we(l,r),we(s,r),o&&(o.enabled=0<St(l)+St(s))},e)).unref(),o&&(o.enabled=n))}),h=function(i,c){return i.st=wt(),l.push(i),g(),function(t,r){var n=function(n){i.rj=i.rj||n||Ce(be,i),i[ye]=_e,p(i),t=null,r&&r(n),r=null},e=i.id;if(i.rj)n(i.rj);else{i[ye]=n;try{var o=c(e);i.to&&dn(o)&&(i.t=kt(function(){n(Ce("Timeout",i))},i.to)),Wr(o,function(n){p(i),r=null,t&&t(n),t=null},n)}catch(u){n(u)}}}},p=function(n){De(l,n),n.t&&n.t.cancel(),n.t=null,f&&f===n&&(f=null,St(l)+St(s)===0&&(o&&o.cancel(),o=null))},n={idle:!0,queue:function(n,t,r){var e,o,u,i=d+"."+v++,c=(t&&(i+="-("+t+")"),(t={id:i,cr:wt(),to:r})[ye]=function(n){c.rj=n||Ce(be,c),c[ye]=_e},t);return c.p=f?(o=f,u=n,s.push(e=c),g(),a(function(n,t){R(o.p,function(){De(s,e),h(e,u)(n,t)})})):a(h(c,n)),(f=c).p},setStaleTimeout:function(n,t){o&&o.cancel(),o=null,r=n,e=t||n/10,g()}};return w(n,"idle",{g:function(){return St(l)+St(s)===0}}),u=function(){return{l:f,r:l,w:s}},pe=pe||{toString:function(){return"[[SchedulerState]]"}},C(t=n,he=he||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return d}}),C(t,pe,{get:u}),n}var Se=undefined,H="",T="core",Te="disabled",Pe="extensionConfig",Oe="processTelemetry",Ie="priority",ke="getPerfMgr",Ne="Not dynamic - ",Ae=/-([a-z])/g,Me=/([^\w\d_$])/g,je=/^(\d+[\w\d_$])/;function Be(n){return!A(n)}function Re(n){return n&&fn(n)?(n=(n=n[Rr](Ae,function(n,t){return t.toUpperCase()}))[Rr](Me,"_"))[Rr](je,function(n,t){return"_"+t}):n}function Le(n,t){return!(!n||!t)&&-1!==Tt(n,t)}function He(n,t,r,e,o){var u,i,c;n&&t&&r&&(!1===o&&!N(n[t])||(n[t]=(u=e,c=i=null,M(o=r)?i=o:c=o,function(){var n=arguments;if(c=i?i():c)return c[u][hr](c,n)})))}var ze="console",Ue="JSON",qe="crypto",Ve="msCrypto",Ke="msie",Fe="trident/",Xe="XMLHttpRequest",$e=null,Je=null,We=null,Qe=null;function Ge(){return typeof JSON===Kr&&JSON||null!==j(Ue)}function Ze(){return Ge()?JSON||j(Ue):null}function Ye(){var n=!1;try{n=!!j(Xe)}catch(t){}return n}var no=4294967296,to=4294967295,ro=123456789,eo=987654321,oo=!1,uo=ro,io=eo;function co(n){var t,r=0,e=j(qe)||j(Ve);if(0===(r=e&&e.getRandomValues?e.getRandomValues(new Uint32Array(1))[0]&to:r)&&(!(e=ut())||e[Mr]===Je&&null!==$e||(e=((Je=e[Mr])||H)[ir](),$e=Le(e,Ke)||Le(e,Fe)),$e)){if(!oo)try{var o=2147483647&wt();(t=(Math.random()*no^o)+o)<0&&(t>>>=0),uo=ro+t&to,io=eo-t&to,oo=!0}catch(u){}e=((io=36969*(65535&io)+(io>>16)&to)<<16)+(65535&(uo=18e3*(65535&uo)+(uo>>16)&to))>>>0&to|0,r=(e>>>=0)&to}return 0===r&&(r=Math.floor(no*Math.random()|0)),n||(r>>>=0),r}var ao="3.0.5",fo="."+function(n){void 0===n&&(n=22);for(var t=co()>>>0,r=0,e=H;e[p]<n;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++r&&(t=(co()<<2&4294967295|3&t)>>>0,r=0);return e}(6),lo=0;function so(n){return 1===n[Br]||9===n[Br]||!+n[Br]}function vo(n,t){return Re(n+lo+++((t=void 0!==t&&t)?"."+ao:H)+fo)}function go(n){var u={id:vo("_aiData-"+(n||H)+"."+ao),accept:so,get:function(n,t,r,e){var o=n[u.id];return o?o[Re(t)]:(e&&((o=function(n,t){var r=t[n.id];if(!r){r={};try{so(t)&&w(t,n.id,{e:!1,v:r})}catch(e){}}return r}(u,n))[Re(t)]=r),r)},kill:function(n,t){if(n&&n[t])try{delete n[t]}catch(r){}}};return u}function ho(n){return n&&ln(n)&&(n.isVal||n.fb||hn(n,"v")||hn(n,"mrg")||hn(n,"ref")||n.set)}function po(n,t,r){var e,o=r.dfVal||an;if(t&&r.fb){var u=r.fb;I(u)||(u=[u]);for(var i=0;i<u[p];i++){var c=u[i],a=t[c];if(o(a)?e=a:n&&(o(a=n.cfg[c])&&(e=a),n.set(n.cfg,Sn(c),a)),o(e))break}}return!o(e)&&o(r.v)?r.v:e}function yo(r,n,t,e){var o,u,i,c,a,f,l=e,l=ho(l)?(o=l.isVal,u=l.set,a=l[ar],s=l[cr],i=l.mrg,!(c=l.ref)&&N(c)&&(c=!!i),po(r,n,l)):e,e=(s&&r[cr](n,t),!0),s=n[t];!s&&A(s)||(f=s,e=!1,o&&f!==l&&!o(f)&&(f=l,e=!0),u&&(e=(f=u(f,l,n))===l)),e?f=l&&function v(r,e,n){var o,t=n;return(t=n&&ho(n)?po(r,e,n):t)&&(ho(t)&&(t=v(r,e,t)),I(t)?(o=[])[p]=t[p]:Et(t)&&(o={}),o&&(d(t,function(n,t){t&&ho(t)&&(t=v(r,e,t)),o[n]=t}),t=o)),t}(r,n,l):(Et(f)||I(l))&&i&&l&&(Et(l)||I(l))&&d(l,function(n,t){yo(r,f,n,t)}),r.set(n,t,f),c&&r.ref(n,t),a&&r[ar](n,t)}var bo=ft("[[ai_dynCfg_1]]"),mo=ft("[[ai_blkDynCfg_1]]"),xo=ft("[[ai_frcDynCfg_1]]");function _o(n,t,r){var e=!1;return!r||n[t.blkVal]||(e=r[xo])||r[mo]?e:Et(r)||I(r)}function Co(n){yn("InvalidAccess:"+n)}var wo=["push","pop","shift","unshift","splice"],Do=function(n,t,r,e){n&&n[sr](3,108,"".concat(r," [").concat(t,"] failed - ")+k(e))};function Eo(n,t){n=gn(n,t);return n&&n.get}function So(o,u,i,c){var a={n:i,h:[],trk:function(n){n&&n.fn&&(-1===yt(a.h,n)&&a.h[E](n),o.trk(n,a))},clr:function(n){n=yt(a.h,n);-1!==n&&a.h[pr](n,1)}},f=!0,l=!1;function s(){f&&(l=l||_o(s,o,c),c&&!c[bo]&&l&&(c=Oo(o,c,i,"Converting")),f=!1);var n=o.act;return n&&a.trk(n),c}s[o.prop]={chng:function(){o.add(a)}},w(u,a.n,{g:s,s:function(t){if(c!==t){s[o.ro]&&!o.upd&&Co("["+i+"] is read-only:"+k(u)),f&&(l=l||_o(s,o,c),f=!1);var n,r=l&&s[o.rf];if(l)if(r){d(c,function(n){c[n]=t?t[n]:Se});try{d(t,function(n,t){To(o,c,n,t)}),t=c}catch(e){Do((o.hdlr||{})[gr],i,"Assigning",e),l=!1}}else c&&c[bo]&&d(c,function(n){var n=Eo(c,n);n&&(n=n[o.prop])&&n.chng()});t!==c&&(n=t&&_o(s,o,t),!r&&n&&(t=Oo(o,t,i,"Converting")),c=t,l=n),o.add(a)}}})}function To(n,t,r,e){var o;return t&&((o=Eo(t,r))&&o[n.prop]?t[r]=e:So(n,t,r,e)),t}function Po(n,t,r,e){if(t){var o=Eo(t,r),u=o&&!!o[n.prop],i=e&&e[0],c=e&&e[1],e=e&&e[2];if(!u){if(e)try{var a=t;if(a&&(Et(a)||I(a)))try{a[mo]=!0}catch(f){}}catch(l){Do((n.hdlr||{})[gr],r,"Blocking",l)}try{To(n,t,r,t[r]),o=Eo(t,r)}catch(l){Do((n.hdlr||{})[gr],r,"State",l)}}i&&(o[n.rf]=i),c&&(o[n.ro]=c),e&&(o[n.blkVal]=!0)}return t}function Oo(r,e,n,t){try{d(e,function(n,t){To(r,e,n,t)}),e[bo]||(C(e,bo,{get:function(){return r[yr]}}),o=r,i=n,I(u=e)&&B(wo,function(n){var e=u[n];u[n]=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=e[hr](this,n);return Oo(o,u,i,"Patching"),r}}))}catch(c){Do((r.hdlr||{})[gr],n,t,c)}var o,u,i;return e}var Io="[[ai_",ko="]]";function No(u){var i,n=at(Io+"get"+u.uid+ko),t=at(Io+"ro"+u.uid+ko),r=at(Io+"rf"+u.uid+ko),e=at(Io+"blkVal"+u.uid+ko),c=at(Io+"dtl"+u.uid+ko),o=null,a=null;function f(t,n){var r=i.act;try{(i.act=t)&&t[c]&&(B(t[c],function(n){n.clr(t)}),t[c]=[]),n({cfg:u.cfg,set:u.set.bind(u),setDf:u[vr].bind(u),ref:u.ref.bind(u),rdOnly:u[ar].bind(u)})}catch(o){var e=u[gr];throw e&&e[sr](1,107,k(o)),o}finally{i.act=r||null}}function l(){if(o){var r,n=o,e=(o=null,a&&a.cancel(),a=null,[]);if(B(n,function(t){if(t&&(t[c]&&(B(t[c],function(n){n.clr(t)}),t[c]=null),t.fn))try{f(t,t.fn)}catch(n){e[E](n)}}),o)try{l()}catch(t){e[E](t)}if(0<e[p])throw n=e,ur=ur||Ct("AggregationError",function(n,t){1<t[p]&&(n.errors=t[1])}),r="Watcher error(s): ",B(n,function(n,t){r+="\n".concat(t," > ").concat(k(n))}),new ur(r,n||[])}}return(n={prop:n,ro:t,rf:r})[cr]=e,n[yr]=u,n.add=function(n){if(n&&0<n.h[p]){o=o||[],a=a||kt(function(){a=null,l()},0);for(var t=0;t<n.h[p];t++){var r=n.h[t];r&&-1===yt(o,r)&&o[E](r)}}},n[fr]=l,n.use=f,n.trk=function(n,t){n&&(n=n[c]=n[c]||[],-1===yt(n,t)&&n[E](t))},i=n}function Ao(o,t,n){var r,e=function(){if(t){var n=t[bo]||t;if(n.cfg&&(n.cfg===t||n.cfg[bo]===n))return n}return null}();if(e)return e;var u,e=vo("dyncfg",!0),n=t&&!1!==n?t:function c(n){var r;return n&&(I(n)?(r=[])[p]=n[p]:Et(n)&&(r={}),r)?(d(n,function(n,t){r[n]=c(t)}),r):n}(t),i=((r={uid:null,cfg:n})[gr]=o,r[fr]=function(){u[fr]()},r.set=function(n,t,r){try{n=To(u,n,t,r)}catch(e){Do(o,t,"Setting value",e)}return n[t]},r[vr]=function(r,n){return n&&d(n,function(n,t){yo(i,r,n,t)}),r},r[dr]=function(n){return r={fn:t=n,rm:function(){r.fn=null,t=null}},u.use(r,t),r;var t,r},r.ref=function(n,t){return Po(u,n,t,((n={})[0]=!0,n))[t]},r[ar]=function(n,t){return Po(u,n,t,((n={})[1]=!0,n))[t]},r[cr]=function(n,t){return Po(u,n,t,((n={})[2]=!0,n))[t]},r._block=function(r,e){u.use(null,function(n){var t=u.upd;try{N(e)||(u.upd=e),r(n)}finally{u.upd=t}})},r);return w(i,"uid",{c:!1,e:!1,w:!1,v:e}),Oo(u=No(i),n,"config","Creating"),i}function Mo(n,t,r,e){r=Ao(r,n||{},e);return t&&r[vr](r.cfg,t),r}function jo(n,t,r){var e,o,u=n[bo]||n;return!u.cfg||u.cfg!==n&&u.cfg[bo]!==u?(e=r,o=Ne+k(n),e?(e[lr](o),e[sr](2,108,o)):Co(o),Mo(n,null,r)[dr](t)):u[dr](t)}var Bo=null,Ro="warnToConsole",Lo={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Ho=((v={})[0]=null,v[1]="errorToConsole",v[2]=Ro,v[3]="debugToConsole",v);function zo(n){return n?'"'+n[Rr](/\"/g,H)+'"':H}function Uo(n,t){var r,e=typeof console!==Fr?console:j(ze);e&&(r="log",e[n]&&(r=n),M(e[r])&&e[r](t))}Vo.dataType="MessageData";var qo=Vo;function Vo(n,t,r,e){void 0===r&&(r=!1),this[Sr]=n,this[Tr]=(r?"AI: ":"AI (Internal): ")+n;r=H,Ge()&&(r=Ze().stringify(e)),n=(t?" message:"+zo(t):H)+(e?" props:"+zo(r):H);this[Tr]+=n}function Ko(n,t){return(n||{})[gr]||new Fo(t)}Xo.__ieDyn=1;var Fo=Xo;function Xo(o){this.identifier="DiagnosticLogger",this.queue=[];var a,f,l,s,t,v=0,d={};h(Xo,this,function(u){function i(n,t){var r,e;l<=v||(e=!0,r="AITR_"+t[Sr],d[r]?e=!1:d[r]=!0,e&&(n<=f&&(u.queue[E](t),v++,c(1===n?"error":"warn",t)),v===l&&(e=new qo(23,r="Internal events throttle limit per PageView reached for this app.",!1),u.queue[E](e),1===n?u.errorToConsole(r):u[lr](r))))}function c(n,t){var r,e=(r=(r=Bo)||!0===(o||{}).disableDbgExt?r:Bo||(e=j("Microsoft"),Bo=e?e.ApplicationInsights:Bo))?r.ChromeDbgExt:null;e&&e[Or]&&e[Or](n,t)}t=jo(Mo(o||{},Lo,u).cfg,function(n){n=n.cfg;a=n.loggingLevelConsole,f=n.loggingLevelTelemetry,l=n.maxMessageLimit,s=n.enableDebug}),u.consoleLoggingLevel=function(){return a},u[sr]=function(n,t,r,e,o){t=new qo(t,r,o=void 0!==o&&o,e);if(s)throw k(t);r=Ho[n]||Ro;N(t[Tr])?c("throw"+(1===n?"Critical":"Warning"),t):(o?(e=+t[Sr],!d[e]&&n<=a&&(u[r](t[Tr]),d[e]=!0)):n<=a&&u[r](t[Tr]),i(n,t))},u.debugToConsole=function(n){Uo("debug",n),c("warning",n)},u[lr]=function(n){Uo("warn",n),c("warning",n)},u.errorToConsole=function(n){Uo("error",n),c("error",n)},u.resetInternalMessageCount=function(){v=0,d={}},u.logInternalMessage=i,u[wr]=function(n){t&&t.rm(),t=null}})}function z(n,t,r,e,o,u){void 0===u&&(u=!1),(n||new Fo)[sr](t,r,e,o,u)}var $o="ParentContextKey",Jo="ChildrenContextKey",Wo=(Qo.ParentContextKey="parent",Qo.ChildrenContextKey="childEvts",Qo);function Qo(n,t,r){var e,o=this;o.start=wt(),o.name=n,o[Pr]=r,o[zr]=function(){return!1},M(t)&&w(o,"payload",{g:function(){return!e&&M(t)&&(e=t(),t=null),e}}),o[Ur]=function(n){return n?(n===Qo[$o]||n===Qo[Jo]?o:o.ctx||{})[n]:null},o[qr]=function(n,t){n&&(n===Qo[$o]?(o[n]||(o[zr]=function(){return!0}),o[n]=t):n===Qo[Jo]?o[n]=t:(o.ctx=o.ctx||{})[n]=t)},o[Vr]=function(){var n=0,t=o[Ur](Qo[Jo]);if(I(t))for(var r=0;r<t[p];r++){var e=t[r];e&&(n+=e[_r])}o[_r]=wt()-o.start,o.exTime=o[_r]-n,o[Vr]=function(){}}}var Go="CoreUtils.doPerf";function Zo(n,t,r,e,o){if(n)if(n=n[ke]?n[ke]():n){var u,i=void 0,c=n[Ur](Go);try{if(i=n.create(t(),e,o))return c&&i[qr]&&(i[qr](Wo[$o],c),c[Ur]&&c[qr]&&((u=c[Ur](Wo[Jo]))||(u=[],c[qr](Wo[Jo],u)),u[E](i))),n[qr](Go,i),r(i)}catch(a){i&&i[qr]&&i[qr]("exception",a)}finally{i&&n.fire(i),n[qr](Go,c)}}r()}function Yo(){for(var n,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=H,e=0;e<4;e++)r+=t[15&(n=co())]+t[n>>4&15]+t[n>>8&15]+t[n>>12&15]+t[n>>16&15]+t[n>>20&15]+t[n>>24&15]+t[n>>28&15];var o=t[8+(3&co())|0];return Rn(r,0,8)+Rn(r,9,4)+"4"+Rn(r,13,3)+o+Rn(r,16,3)+Rn(r,19,12)}var nu=go("plugin");function tu(n){return nu.get(n,"state",{},!0)}var ru="TelemetryPluginChain",eu="_hasRun",ou="_getTelCtx",uu=0;function iu(n,u,r,t){var e=null,o=[],i=(u=u||Mo({},null,r[gr]),null!==t&&(e=t?function(n,t,r){for(;n;){if(n[xr]()===r)return n;n=n[Nr]()}return au([r],t.config||{},t)}(n,r,t):n),{_next:function(){var n,t=e;return e=t?t[Nr]():null,t||(n=o)&&0<n[p]&&(B(n,function(n){try{n.func.call(n.self,n.args)}catch(t){z(r[gr],2,73,"Unexpected Exception during onComplete - "+k(t))}}),o=[]),t},ctx:{core:function(){return r},diagLog:function(){return Ko(r,u.cfg)},getCfg:function(){return u.cfg},getExtCfg:function(n,t){var e=c(n,!0);return t&&d(t,function(n,t){var r;!A(e[n])||!(r=u.cfg[n])&&A(r)||(e[n]=r),yo(u,e,n,t)}),u[vr](e,t)},getConfig:function(n,t,r){void 0===r&&(r=!1);var e,n=c(n,!1),o=u.cfg;return!n||!n[t]&&A(n[t])?!o[t]&&A(o[t])||(e=o[t]):e=n[t],e||!A(e)?e:r},hasNext:function(){return!!e},getNext:function(){return e},setNext:function(n){e=n},iterate:function(n){for(;t=i._next();){var t=t[xr]();t&&n(t)}},onComplete:function(n,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];n&&o[E]({func:n,self:N(t)?i.ctx:t,args:r})}}});function c(n,t){var r,e=null,o=u.cfg;return o&&n&&(r=o[Pe],o[Pe]=r=!r&&t?{}:r,(r=u.ref(o,Pe))&&(e=r[n],r[n]=e=!e&&t?{}:e,e=u.ref(r,n))),e}return i}function cu(n,t,r,e){var o=Mo(t),u=iu(n,o,r,e),i=u.ctx;return i[Cr]=function(n){var t=u._next();return t&&t[Oe](n,i),!t},i[Dr]=function(n,t){return cu((n=I(n=void 0===n?null:n)?au(n,o.cfg,r,t):n)||i[Nr](),o.cfg,r,t)},i}function au(n,t,r,e){var o,u=null,i=!e;return I(n)&&0<n[p]&&(o=null,B(n,function(n){(i=!i&&e===n||i)&&n&&M(n[Oe])&&(n=fu(n,t,r),u=u||n,o&&o._setNext(n),o=n)})),e&&!u?au([e],t,r):u}function fu(a,e,o){var f=null,u=M(a[Oe]),i=M(a[Ar]),l=a?a[br]+"-"+a[Ie]+"-"+uu++:"Unknown-0-"+uu++,c={getPlugin:function(){return a},getNext:function(){return f},processTelemetry:function(r,n){var t;s(n=n||(t=(t=a&&M(a[ou])?a[ou]():t)||cu(c,e,o)),function(n){if(!a||!u)return!1;var t=tu(a);return!t[Er]&&!t[Te]&&(i&&a[Ar](f),a[Oe](r,n),!0)},"processTelemetry",function(){return{item:r}},!r.sync)||n[Cr](r)},unload:function(e,o){s(e,function(){var n,t,r=!1;return a&&(n=tu(a),t=a[T]||n[T],!a||t&&t!==e.core()||n[Er]||(n[T]=null,n[Er]=!0,n[mr]=!1,a[Er]&&!0===a[Er](e,o)&&(r=!0))),r},"unload",function(){},o[Pr])||e[Cr](o)},update:function(e,o){s(e,function(){var n,t,r=!1;return a&&(n=tu(a),t=a[T]||n[T],!a||t&&t!==e.core()||n[Er]||a[kr]&&!0===a[kr](e,o)&&(r=!0)),r},"update",function(){},!1)||e[Cr](o)},_id:l,_setNext:function(n){f=n}};function s(r,e,o,n,t){var u=!1,i=a?a[br]:ru,c=(c=r[eu])||(r[eu]={});return r.setNext(f),a&&Zo(r[T](),function(){return i+":"+o},function(){c[l]=!0;try{var n=f?f._id:H;n&&(c[n]=!1),u=e(r)}catch(t){n=!f||c[f._id];n&&(u=!0),f&&n||z(r[Or](),1,73,"Plugin ["+i+"] failed during "+o+" - "+k(t)+", run flags: "+k(c))}},n,t),u}return _n(c)}function lu(){var t=[];return{add:function(n){n&&t[E](n)},run:function(r,e){B(t,function(n){try{n(r,e)}catch(t){z(r[Or](),2,73,"Unexpected error calling unload handler - "+k(t))}}),t=[]}}}function su(){var e=[];return{run:function(r){var n=e;e=[],B(n,function(n){try{(n.rm||n.remove).call(n)}catch(t){z(r,2,73,"Unloading:"+k(t))}})},add:function(n){var t;n&&(t=e,!N(n=n)&&t&&(I(n)?vt(t.push,t,n):lt(n)||n!==b&&an(n)&&M(n[ct(3)])?st(n,function(n){t.push(n)}):t.push(n)))}}}var vu="getPlugin",du=((tn={})[Pe]={isVal:Be,v:{}},tn),en=(gu.__ieDyn=1,gu);function gu(){var o,u,l,s,v,i=this;function t(n){var t,n=n=void 0===n?null:n;return n||(t=u||cu(null,{},i[T]),n=l&&l[vu]?t[Dr](null,l[vu]):t[Dr](null,l)),n}function a(n,t,r){Mo(n,du,Ko(t)),!r&&t&&(r=t.getProcessTelContext()[Nr]());var e=l;l&&l[vu]&&(e=l[vu]()),i[T]=t,u=cu(r,n,t,e)}function d(){o=!1,i[T]=null,l=u=null,v=su(),s=lu()}d(),h(gu,i,function(f){f.initialize=function(n,t,r,e){a(n,t,e),o=!0},f[Er]=function(n,t){var r,e,o,u,i=f[T];if(i&&(!n||i===n[T]()))return e=!1,o=n||function a(n,r,t){var e=Mo(r.config),o=iu(n,e,r,t),u=o.ctx;return u[Cr]=function(n){var t=o._next();return t&&t[wr](u,n),!t},u[Dr]=function(n,t){return a((n=I(n=void 0===n?null:n)?au(n,e.cfg,r,t):n)||u[Nr](),r,t)},u}(null,i,l&&l[vu]?l[vu]():l),u=t||((n={reason:0})[Pr]=!1,n),f[Ir]&&!0===f[Ir](o,u,c)?r=!0:c(),r;function c(){e||(e=!0,s.run(o,t),v.run(o[Or]()),!0===r&&o[Cr](u),d())}},f[kr]=function(n,t){var r,e,o,u=f[T];if(u&&(!n||u===n[T]()))return e=!1,o=n||function c(n,r,t){var e=Mo(r.config),o=iu(n,e,r,t).ctx;return o[Cr]=function(t){return o.iterate(function(n){M(n[kr])&&n[kr](o,t)})},o[Dr]=function(n,t){return c((n=I(n=void 0===n?null:n)?au(n,e.cfg,r,t):n)||o[Nr](),r,t)},o}(null,u,l&&l[vu]?l[vu]():l),f._doUpdate&&!0===f._doUpdate(o,t||{reason:0},i)?r=!0:i(),r;function i(){e||(e=!0,a(o.getCfg(),o.core(),o[Nr]()))}},He(f,"_addUnloadCb",function(){return s},"add"),He(f,"_addHook",function(){return v},"add"),w(f,"_unloadHooks",{g:function(){return v}})}),i[Or]=function(n){return t(n)[Or]()},i[mr]=function(){return o},i.setInitialized=function(n){o=n},i[Ar]=function(n){l=n},i[Cr]=function(n,t){t?t[Cr](n):l&&M(l[Oe])&&l[Oe](n,null)},i._getTelCtx=t}var hu="attachEvent",pu="addEventListener",yu="detachEvent",bu="removeEventListener",mu="events",xu=(vo("aiEvtPageHide"),vo("aiEvtPageShow"),/\.[\.]+/g),_u=/[\.]+$/,Cu=1,wu=go("events"),Du=/^([^.]*)(?:\.(.+)|)/;function Eu(n){return n&&n[Rr]?n[Rr](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,H):n}function Su(n,t){t&&(r=H,I(t)?(r=H,B(t,function(n){(n=Eu(n))&&("."!==n[0]&&(n="."+n),r+=n)})):r=Eu(t),r&&("."!==r[0]&&(r="."+r),n=(n||H)+r));var r,t=Du.exec(n||H)||[],n={};return n[Lr]=t[1],n.ns=(t[2]||H).replace(xu,".").replace(_u,H)[jr](".").sort().join("."),n}function Tu(n,t,r){n=wu.get(n,mu,{},r=void 0===r||r);return n[t]||(n[t]=[])}function Pu(n,t,r,e){n&&t&&t[Lr]&&(n[bu]?n[bu](t[Lr],r,e):n[yu]&&n[yu]("on"+t[Lr],r))}function Ou(n,t,r,e){for(var o=t[p];o--;){var u=t[o];!u||r.ns&&r.ns!==u.evtName.ns||e&&!e(u)||(Pu(n,u.evtName,u[Hr],u.capture),t[pr](o,1))}}function Iu(n,t){return t?Su("xx",I(t)?[n].concat(t):[n,t]).ns[jr]("."):n}function ku(n,t,r,e,o){void 0===o&&(o=!1);var u,i,c=!1;if(n)try{var a,f=Su(t,e),l=f,s=r,v=o,d=!1;(i=n)&&l&&l[Lr]&&s&&(i[pu]?(i[pu](l[Lr],s,v),d=!0):i[hu]&&(i[hu]("on"+l[Lr],s),d=!0)),(c=d)&&wu.accept(n)&&((u={guid:Cu++,evtName:f})[Hr]=r,u.capture=o,a=u,Tu(n,f.type)[E](a))}catch(g){}return c}var Nu="endpoint",Au="addEvent",U="push",q="length",Mu="getItems",ju="split",Bu="splice",V="initialize",Ru="diagLog",Lu="itemCtx",Hu="storageConfig",K="value",zu="reason",Uu="rejected",qu="getNextBatch",Vu="removeEvents",F="data",Ku="sendPOST",Fu="attempCnt",Xu="state",$u="teardown",Ju="isArr",Wu="indexOf",Qu="isOnline",Gu="cancel",Zu="refresh",Yu="processNext",ni="persistence",ti="isCompletelyIdle",ri="criticalCnt",ei="getOfflineSupport",oi="instrumentationKey",ui="toString",ii="urlString",ci="setRequestHeader",ai="status",X="onerror",fi="replace",li="charCodeAt",si="charAt",vi="fromCharCode",di="getTime",gi="name",hi="dbHdl",pi="isAvailable",yi="transaction",bi="openStore",mi="openCursor",xi="dbName",_i="remove",Ci="onsuccess",P="then",wi="keyRange",Di="continue",Ei="substring",Si="storageKeyPrefix",Ti="inStorageMaxTime",Pi="maxStorageSizeInBytes",Oi="EventsToDropPerTime",Ii="maxCriticalEvtsDropCnt",ki="supportsSyncRequests",Ni="removeItem",Ai="evts";function Mi(n){try{var t=n[fi](/^https?:\/\/|^www\./,"")[fi](/\?/,"/")[ju]("/");if(t&&0<t[q])return t[0]}catch(r){}return n}function ji(n){return 0<=n}var Bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ri(){return(new Date)[di]()+"."+Rn(Yo(),0,8)}function Li(n){try{var t;if(n&&fn(n)&&/\d+\./g.test(n))return t=n[ju]("."),parseInt(t[0])}catch(r){}return 0}zi.__ieDyn=1;var Hi=zi;function zi(e){h(zi,this,function(n){n.base64ToArr=function(n){if(!n||!n[Ju])return n;try{var t=n[F];return t&&(n[F]=function(n){var t,r,e,o,u,i,c="",a=0;for(n=n[fi](/[^A-Za-z0-9\+\/\=]/g,"");a<n[q];)e=Bi[Wu](n[si](a++)),t=(15&(o=Bi[Wu](n[si](a++))))<<4|(u=Bi[Wu](n[si](a++)))>>2,r=(3&u)<<6|(i=Bi[Wu](n[si](a++))),c+=String[vi](e<<2|o>>4),64!=u&&(c+=String[vi](t)),64!=i&&(c+=String[vi](r));var f=c[ju](",").map(function(n){return+(""+n)});return new Uint8Array(f)}(t)),n}catch(r){z(e,1,48,r&&M(r[ui])?r[ui]():"Error serializing object",null,!0)}return null},n.base64ToStr=function(n){if(!n||!n[Ju])return n;try{var t=n[F];return t&&(n[F]=function(n){for(var t,r,e,o="",u="",u=fn(n)?n:n[ui](),i=0;i<u[q];)t=u[li](i++),r=u[li](i++),e=u[li](i++),o=(o+=Bi[si](t>>2))+Bi[si]((3&t)<<4|r>>4),isNaN(r)?o+="==":o=(o+=Bi[si]((15&r)<<2|e>>6))+(isNaN(e)?"=":Bi[si](63&e));return""+o}(t)),n}catch(r){z(e,1,48,r&&M(r[ui])?r[ui]():"Error serializing object",null,!0)}return null}})}function Ui(n){var t,r=rt()||{},e=null;try{(e=r[n])&&(t="__storage_test__",e.setItem(t,t),e[Ni](t))}catch(o){n=e,r=!1,o instanceof DOMException&&(22!==o.code&&"QuotaExceededError"!==o[gi]&&1014!==o.code&&"NS_ERROR_DOM_QUOTA_REACHED"!==o[gi]||n&&0!==n[q]&&(r=!0)),r||(e=null)}return e}function qi(n,t){if(n)for(var r=mn(n),e=0;e<r[q];e++){var o=r[e];if(!t(n[o],o))break}}Ki.__ieDyn=1;var Vi=Ki;function Ki(n,t,p){h(Ki,this,function(o){var u,i,c=null,a=5e6,f=null,l=null,s=null,v=null,d=null;function r(t){var r=[],n=g(l).db;return n&&qi(n[Ai],function(n){return n&&(n[Ju]&&(n=f.base64ToArr(n)),r[U](n)),!t||!r||r[q]!=t}),r}function g(n,t){void 0===t&&(t=!0);var r=null;if(c){var e=c.getItem(n);if(e)try{r=Ze().parse(e)}catch(o){c[Ni](n)}t&&!r&&(r={evts:{},lastAccessTime:0})}return{key:n,db:r}}function h(n,t){void 0===t&&(t=!0);var r=n.db;r&&t&&(r.lastAccessTime=(new Date)[di]());try{var e=Ze().stringify(r);if(e[q]>a)return!1;c&&c.setItem(n.key,e)}catch(o){return!1}return!0}o.id=t,c=Ui(n)||null,o._getDbgPlgTargets=function(){return[l,a,s]},o[V]=function(n,t){if(!c)return!1;var r=n[Hu],e=n[Lu],e=(f=new Hi(e[Ru]()),i=Mi(t||n[Nu]),!!r.autoClean),t=jo(r,function(){a=r[Pi]||5e6,s=r[Ti]||1008e4;var n=r[Oi];v=Be(n)?n:10,d=r[Ii]||2});return p&&p.add(t),u=r[Si]||"AIOffline",l=u+"_1_"+i,e&&o.clean(),!0},o[ki]=function(){return!0},o.getAllEvents=function(n){try{return c?r(n):void 0}catch(t){return S(t)}},o[qu]=function(){try{return c?r(1):void 0}catch(n){return S(n)}},o[Au]=function(n,t,r){try{var e=g(l),o=(t.id=t.id||Ri(),t[ri]=t[ri]||0,e.db[Ai]),u=t.id;for(t&&t[Ju]&&(t=f.base64ToStr(t));t;){if(o[u]=t,h(e))return t;if(delete o[u],!function(n,t,r){for(var e=[],o=0,u=0;o<=n&&u<r;){if(qi(t,function(n,t){return n[ri]===o&&(e[U](t),u++),u<r}),0<u){for(var i=0;i<e[q];i++)delete t[e[i]];return 1}o++}return 0<u}(d,o,v))return S(Error("Unable to free up event space"))}}catch(i){return S(i)}},o[Vu]=function(n){try{var t=g(l,!1),r=t.db;if(r){var e=r[Ai];try{for(var o=0;o<n[q];++o)delete e[n[o].id];if(h(t))return n}catch(u){}n=function(n){var t=[],n=g(n,!1),r=n.db;if(r){r=r[Ai];try{qi(r,function(n){return n&&t[U](n),1})}catch(e){}c&&c[Ni](n.key)}return t}(t.key)}return n}catch(u){return S(u)}},o.clear=function(){try{var t,r=[],n=g(l,!1),e=n.db;return e&&(qi(t=e[Ai],function(n){return n&&(delete t[n.id],r[U](n)),1}),h(n)),r}catch(o){return S(o)}},o.clean=function(){var n=g(l,!1),t=n.db;if(t){t=t[Ai];try{return!function(n,t,r){var e=[],o=0,u=(new Date)[di]()+1-n;try{if(qi(t,function(n,t){return Li(t)<=u&&(e[U](t),o++),o<r}),0<o){for(var i=0;i<e[q];i++)delete t[e[i]];return 1}}catch(c){}return 0<o}(s,t,v)||h(n)}catch(r){}return!1}},o[$u]=function(){try{var n=g(l,!1),t=n.db;t&&(t.lastAccessTime=0,h(n,!1))}catch(r){}}})}var Fi="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Xi=pn({Normal:1,Critical:2},1,0,xn);function $i(n,t){var r,e,o=void 0;if(void 0===o&&(o=!1),n)try{var u=Su(null,t),i=!1,c=n,a=function(n){return!(!u.ns&&null!==n[Hr])&&(i=!0)};(r=u)[Lr]?Ou(c,Tu(c,r[Lr]),r,a):(d(e=wu.get(c,mu,{}),function(n,t){Ou(c,t,r,a)}),0===mn(e)[p]&&wu.kill(c,mu)),i||Pu(n,u,null,o)}catch(f){}}var Ji="AppInsightsChannelPlugin",Wi=["indexedDB"],Qi="result",Gi="DBError: Unable to open database",Zi="Database is not open",Yi="DBError: Failed to delete the database",nc=[];function tc(e){for(var n,o=null,t=0;t<nc[q];t++)if((o=nc[t])[gi]===e)return o;return(n={})[gi]=e,n.sch=Ee(L,"IndexedDbHelper["+e+"]"),n.dbHdl=[],n.add=function(n){o.dbHdl[U](n),O(e,"- dbOpened (add) -- hdls ["+o.dbHdl[q]+"]")},n[_i]=function(n){for(var t=o[hi],r=0;r<t[q];r++)if(t[r]===n){t[Bu](r,1);break}O(e,"- dbClosed (remove) -- hdls ["+o.dbHdl[q]+"]")},n.isOpen=function(){return 0<o.dbHdl[q]},n.openHdl=function(){return 0<o.dbHdl[q]?o[hi][0]:null},o=n,nc[U](o),o}function rc(n,t,r,e){return tc(n).sch.queue(r,t,e)}function O(n,t){j("QUnit")&&console&&console.log("IndexedDbHelper ["+n+"] "+t)}function ec(t,r,e,o){return function(n){e(Error(r)),O(t,"["+o+"] event rejected")}}uc.__ieDyn=1;var oc=uc;function uc(n){var y=function(){var n=rt()||{},t=null;if(n)try{for(var r=0;r<Wi[q];r++)if((t=n[Wi[r]])&&M(t.open))return t}catch(e){t=null}return t}()||null;h(uc,this,function(n){function l(r,e){var n=r.db||null,n=n&&n[yi](e,"readwrite");return n?(n.onabort=function(){},n[X]=function(){},n.oncomplete=function(){O(r[xi],"txn.oncomplete")},{db:r,store:n.objectStore(e),tx:n,tbl:e,openCursor:function(n,t){return p(r,e,n,t)},newTransaction:function(n){return h(r,e,n)}}):null}function h(n,t,r){if(!n||!n.db)return S(Error(Zi));try{var e=r(l(n,t));return dn(e)?e:function(t){var n=bt(arguments,1);return dn(t)?t:ae(function(n){n(t)},n)}(e)}catch(o){return S(o)}}function p(r,e,n,a){if(!r||!r.db)return S(Error(Zi));var f=null;return n&&fn(n)?f=new ic(n):n&&n.isMatch&&(f=n),L(function(o,u){var i=[],n=null,t=null,c=(f&&f[wi]&&(t=f[wi]()),l(r,e));(n=t?c.store[mi](t):c.store[mi]())[X]=ec(c.db[xi],"DBError: Failed to Open Cursor",u,"openCursor"),n[Ci]=function(n){var t=n.target[Qi];if(t){(n={store:c,cursor:t})[Di]=function(){t[Di]()},n.done=function(){o(i)};var r=n,n=t[K];if(f&&!f.isMatch(n))r[Di]();else if(a)try{switch(a(r,n,i)){case 2:o(i);break;case 1:break;default:r[Di]()}}catch(e){u(e)}else i[U](n),r[Di]()}else o(i)}})}n[pi]=function(){return!!y},n.openDb=function(s,v,d,g){return rc(s,"openDb",function(l){return L(function(u,i){var c=!1;function a(n,t,r,e,o){(t={db:t})[xi]=s,t.dbVersion=v,t.ctx=null,t.isNew=e,t.txn=r?r[yi]:null;var u=t;return o||(u[bi]=function(n,t){return h(u,n,t)},u[mi]=function(n,t,r){return p(u,n,t,r)}),u}function t(t,n){var r=tc(s),e=(r.add(t),t.onabort=function(n){O(s,"onabort -- closing the Db"),r[_i](t)},t[X]=function(n){O(s,"onerror -- closing the Db"),r[_i](t)},t.onclose=function(n){O(s,"onclose -- closing the Db"),r[_i](t)},t.onversionchange=function(n){O(s,"onversionchange -- force closing the Db"),t.close(),r[_i](t)},null),e=a(0,e=0<r.dbHdl[q]?r[hi][0]:e,n,c);try{Wr(d(e),u,i)}catch(o){i(o)}}var n=tc(s);if(null==y)i(Error("No available storage factory"));else if(n.isOpen()){n=a(0,n.openHdl(),null,!1);Wr(d(n),u,i)}else{var f=y.open(s,v);if(!f)throw Error("missing API");f.onblocked=function(n){O(s,"Db Open Blocked event ["+l+"] - "+(f.error||"")),i(Error(Gi))},f[X]=function(n){O(s,"Db Open Error event ["+l+"] - "+(f.error||"")),i(Error(Gi))},f.onupgradeneeded=function(n){O(s,"Db Open Create/Upgrade needed event ["+l+"]");try{var t=n.target[Qi]||f.result;if(!t)return O(s,"no db"),void i(Error(Gi));var r=t,e=f,o=(O(s,"db upgrade called"),a(0,r,e,!0,!0));if(g)c=!0,R(g(o),function(n){if(n[Uu])try{e[yi]&&e[yi].abort()}finally{i(n[zu])}else O(o[xi],"on version change success"),o.txn||(o.txn=e[yi],O(o[xi],"added open request"))});else try{e[yi]&&e[yi].abort(),e.result&&e.result.close()}finally{i(Error("DBError: Database upgrade required"))}}catch(u){ec(s,Gi,i,l)(u)}},f[Ci]=function(n){O(s,"Db Open sucess ["+l+"]");n=n.target[Qi];n?t(n,f):i(Error(Gi))}}})})},n.closeDb=function(u){O(u,"close db"),rc(u,"closeDb",function(n){var t=tc(u),r=t[hi],e=r[q];if(0<e){for(var o=0;o<e;o++)r[o].close();t[hi]=[]}return 1})["catch"](function(n){})},n.deleteDb=function(u){return null!=y&&rc(u,"deleteDb",function(o){var n=tc(u),t=n[hi],r=t[q];if(0<r){O(u,"Db is open ["+r+"] force closing");for(var e=0;e<r;e++)t[e].close();n[hi]=[]}return L(function(r,e){setTimeout(function(){try{O(u,"["+o+"] starting");var n=y.deleteDatabase(u);n[X]=function(n){e(Error(Yi))},n.onblocked=function(n){e(Error(Yi))},n.onupgradeneeded=function(n){e(Error(Yi))},n[Ci]=function(n){O(u,"["+o+"] complete"),r(!0)},O(u,"["+o+"] started")}catch(t){e(Error(Yi+" - "+t))}},0)})})},n.getDbDetails=function(o){return rc(o,"getDbDetails",function(n){return null!=y&&y.databases?L(function(r,e){y.databases()[P](function(n){for(var t=0;t<n[q];t++)if(n[t][gi]===o)return void r(n[t]);e(Error("DBError: Database does not exist"))},e)}):S(Error("DBError: Feature not supported"))},2e3)}})}cc.__ieDyn=1;var ic=cc;function cc(n){var c=[],a=null;h(cc,this,function(i){i[wi]=function(){return a},i.parseQuery=function(n){if(c=[],n)for(var t=n[ju](";"),r=0;r<t[q];r++){var e,o=t[r],u=o[Wu]("=");-1!==u&&(e=o[Ei](0,u),u=o[Ei](u+1),0===e[Wu]("#")&&(e=e[Ei](1),a=a||IDBKeyRange.bound(u,u+"￿")),i.startsWith(e,u))}},i.startsWith=function(n,t){var r;c[U](((r={})[gi]=n,r[K]=t,r.type=0,r))},i.contains=function(n,t){var r;c[U](((r={})[gi]=n,r[K]=t,r.type=1,r))},i.isMatch=function(n){if(!c||0===c[q])return!0;if(!n)return!1;for(var t=0;t<c[q];t++){var r=c[t],e=n[r.name];if(e)if(0===r.type){if(e.indexOf(r[K]))return!1}else if(1===r.type&&!~e.indexOf(r[K]))return!1}return!0},n&&i.parseQuery(n)})}var ac="DBError: Unable to add event",fc="Evts";function lc(){return(new Date)[di]()}function sc(n){for(var t=[],r=0;r<n[q];r++){var e=n[r];e&&e.evt&&t[U](e.evt)}return t}function vc(t){return function(n){return t[Di]()}}function dc(n,t,e){return n.openCursor(fc,t,function(n,t,r){return r[U](t),e&&r&&r[q]==e?2:0})}function gc(n,t,e){return n.openCursor(fc,t,function(n,t,r){return e(t)?(r[U](t),(r=(t=n).cursor["delete"]())[X]=vc(t),r[Ci]=vc(t),1):0})}pc.__ieDyn=1;var hc=pc;function pc(n,b){h(pc,this,function(u){var i,c,a=null,f=null,l="Unknown",s=null,v=null,d=null,g=null,h=null,p=null;function y(o){return a.openDb(f,1,function(e){return L(function(n,t){var r={iKey:l,id:v,storageId:s};e.ctx=r,Wr(o(e),n,t)})},function(o){return L(function(n,t){try{(r=o.db).objectStoreNames.contains(fc)||r.createObjectStore(fc,{keyPath:"id"}).createIndex("criticalCnt","criticalCnt",{unique:!1})}catch(e){t(e)}var r;n()})})}u.id=n,u[V]=function(n){var t=n.itemCtx[Ru]();if(!(a=new oc(t))[pi]())return a=null,!1;var r=n[Lu].getCfg(),e=n[Lu],o=(l=e.getCfg()[oi]||r[oi],n[Hu]),r=(s=u.id||n.id||(e=Yo(),Bn(e,0,8)+"-"+Bn(e,8,12)+"-"+Bn(e,12,16)+"-"+Bn(e,16,20)+"-"+Bn(e,20)),v=Mi(n[Nu]),i=!!o.autoClean,c=o[Si]||"AIOffline",f=c+"_1_"+v,jo(o,function(){d=o[Ti]||1008e4,p=o[Pi]||5e6;var n=o[Oi];g=Be(n)?n:10,h=o[Ii]||2}));return b&&b.add(r),f&&R(u.clean(!i),function(n){y(function(n){return!0})[P](function(n){},function(n){t.warnToConsole("IndexedDbProvider failed to initialize - "+(n||"<unknown>")),a=null})}),!0},u._getDbgPlgTargets=function(){return[f,p,d,a]},u[ki]=function(){return!1},u.getAllEvents=function(e){return null!=a&&a[pi]()?y(function(r){return L(function(t,n){dc(r,null,e)[P](function(n){t(sc(n))},n)})}):[]},u[qu]=function(){return null!=a&&a[pi]()?y(function(r){return L(function(t,n){dc(r,null,1)[P](function(n){t(sc(n))},n)})}):[]},u[Au]=function(t,r,n){return null!=a&&a[pi]()?(r.id=r.id||Ri(),r[ri]=r[ri]||0,y(function(n){return function s(a,f,l){return L(function(o,u){a[bi](fc,function(n){n=n.store.put(f);n[Ci]=function(n){o(f.evt)},n[X]=function(n){function t(n){0===n&&u(Error(ac)),s(a,f,!1)[P](function(n){o(f.evt)},function(){u(Error(ac))})}var r,i,e,c;l?(r=function(n){0<n?t(n):u(Error(ac))},i=a,e=h,c=g,L(function(n,t){var o=0;function u(){n(o)}i.openCursor(fc,null,function(n,t,r){return t.evt[ri]<=e&&(function(n,t){for(var r=0;r<n[q];r++)if(t.tm<n[r].tm)return n[Bu](r,0,t);n[U](t)}(r,t),r[q]>c&&r.splice(r[q]-1,1)),0})[P](function(e){0===e[q]?u():i[bi](fc,function(n){for(var t=[],r=0;r<e[q];r++)t[U](function(r,e){return L(function(t){var n=r.store["delete"](e.key);n[Ci]=function(n){o++,t()},n[X]=function(n){t()}})}(n,e[r]));return ve(t)[P](u,u)})},function(){n(0)})})[P](function(n){r(n)},function(n){r(0)})):u(Error(ac))}})["catch"](function(n){u(n)})})}(n,{id:t||r.id,evt:r,tm:lc(),v:1},!0)})):r},u[Vu]=function(o){if(null==a||!a[pi]())return[];var u=[];return L(function(t,n){y(function(n){return n.openCursor(fc,null,function(n,t,r){var e;return-1!==function(n,t){for(var r=t[q],e=0;e<r;e++)if(n===t[e].id)return e;return-1}(t.id,o)?((e=n.cursor["delete"]())[X]=vc(n),e[Ci]=function(){u[U](t.evt),n[Di]()},1):0})})[P](function(){t(u)},function(n){t(u)})})},u.clear=function(n){return null==a||!a[pi]()||n?[]:L(function(t,n){y(function(n){return gc(n,null,function(n){return 1})})[P](function(n){t(sc(n))},function(n){t([])})})},u.clean=function(n){return!(null==a||!a[pi]()||n)&&L(function(t,n){y(function(n){return n.isNew?[]:(r=n,e=d,L(function(t,n){return gc(r,null,function(n){return!n||!n.evt||Li(n.id)<=lc()+1-e})[P](function(n){t(n)},n)}));var r,e})[P](function(n){t(n&&0<n[q])},function(n){t(!1)})})},u[$u]=function(){a&&a.closeDb(f)}})}var yc="No provider is available",bc=(mc.__ieDyn=1,mc);function mc(u,c){h(mc,this,function(n){var o,v,d,g,h,p;function r(){o=!1,p=h=d=v=null}function i(n,t){n=new Vi(n,undefined,c);return n[V](t)?n:null}r(),n[V]=function(n){try{var t,r;o||(u||n.itemCtx[Ru](),g=n[Lu],v=function(n){for(var t,r,e=n[Hu].providers,o=null,u=0;!o&&u<e[q]&&u<2;)switch(e[u++]){case 1:o=i("localStorage",n),d=o;break;case 2:o=i("sessionStorage",n),d=o;break;case 3:t=n,r=void 0,o=r=(r=new hc(undefined,c))[V](t)?r:null,d=i("localStorage",n)}return o}(n),r=(t=n[Hu]||{}).maxRetry,h=A(r)?2:r,p=(t.senderCfg||{}).retryCodes,v&&(o=!0))}catch(e){o=!1}return o},n._getDbgPlgTargets=function(){return[v,o,d]},n.storeBatch=function(r,c,n){var e=n?d:v;return ge(function(u,i){var n,t;return e||i(Error(yc)),(t=(n=r)[F])&&(t=ln(t),n[Ju]=t),R(e[Au](n.id,n,g),function(n){try{var t=n[K]||n[zu]||[],r=2,e={state:r=n[Uu]?r:1,item:t};try{c&&c(e)}catch(o){}u(e)}catch(o){i(o)}})})},n.sendNextBatch=function(u,l,s,n){return ge(function(r,c){function a(n){try{u&&u(n)}catch(t){}r(n)}v||d||c(Error(yc));var t=v;try{if(!d)return e();R(d[qu](),function(n){if(n&&!n[Uu]){n=n[K];if(n&&n[q])return t=d,o(n)}return e()})}catch(f){c(f)}function e(){return R(t[qu](),function(n){try{return!n||n[Uu]?void a({state:4,data:n.reason}):o(n[K]||[])}catch(f){c(f)}})}function o(u){var i={state:1,data:null};if(u[q])return R(t[Vu](u),function(n){if(n&&!n.rejected&&n[K]){for(var t=n[K],r=function(n){try{var o=u[n];return i[F]=o,s&&s[Ku]?(o[Fu]++,{value:R((0,s[Ku])(o,function(n,t,r){var e;200==n?i[Xu]=1:(n=n,(e=o)&&e[F]&&(e[Fu]=e[Fu]||0,e[Fu]<=h)&&(A(p)?401===n||403===n||408===n||429===n||500===n||502===n||503===n||504===n:p[q]&&-1<p[Wu](n))?(i[Xu]=2,d&&d[Au](o.id,o,g)):i[Xu]=3),a(i)},l),function(n){})}):(i[Xu]=3,a(i),{value:void 0})}catch(f){c(f)}},e=0;e<t[q];e++){var o=r(e);if("object"==typeof o)return o.value}return i[Xu]=1,void a(i)}i[Xu]=4,i.data=n[zu],a(i)});a(i)}})},n.hasStoredBatch=function(u){return ge(function(e,o){return v||o(Error(yc)),R(v[qu](),function(n){try{var t=0<(n[K]||[])[q];u&&u(t),e(t)}catch(r){o(r)}})})},n.cleanStorage=function(i){return ge(function(o,u){return v||u(Error(yc)),R(v.clear(),function(n){try{var t=0,r={batchCnt:t=n[Uu]?t:(n[K]||[])[q]};i&&i(r),o(r)}catch(e){u(e)}})})},n[$u]=function(n,t){v&&v[$u](),r()}})}_c.__ieDyn=1;var xc=_c;function _c(e,o,n,u){var i=n?[].concat(n):[];h(_c,this,function(t){t[Nu]=function(){return o},t[Au]=function(n){return!(!A(u)&&t.count()>=u||(i[U](n),0))},t.count=function(){return i[q]},t.clear=function(){i=[]},t[Mu]=function(){return i.slice(0)},t[ju]=function(n,t){var r;return n<i[q]&&(r=i[q]-n,A(t)||(r=t<r?t:r),r=i[Bu](n,r)),new _c(e,o,r,u)},t.createNew=function(n,t,r){return new _c(e,n,t,r)}})}function Cc(n){try{return n.responseText}catch(t){}return null}Dc.__ieDyn=1;var wc=Dc;function Dc(){var o,m,x,_,C,w,D,E,S,T,P,O=0;h(Dc,this,function(n,t){var g=!0;function i(n,t){p(t,200,{},n)}function c(n,t){z(D,2,26,"Failed to send telemetry.",{message:n}),p(t,400,{})}function h(n){c("No endpoint url is provided for the batch",n)}function a(n,t,r){return e(n,t,!1)}function p(n,t,r,e){try{n&&n(t,r,e)}catch(o){}}function f(n,t,r){n[F]&&!function(n,t){var r=ut(),e=n[ii];if(!e)return h(t),1;n=n[F],n=new Blob([n],{type:"text/plain;charset=UTF-8"}),e=r.sendBeacon(e,n);return e&&i(null,t),e}(n,t)&&(C&&C(n,t,!0),z(D,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}function l(n,t,r){var e,o,u,i=n.headers||{},c=(!r&&m&&(e=ge(function(n,t){o=n,u=t})),new XMLHttpRequest),a=n[ii];if(!a)return h(t),void(o&&o(!1));try{c[Fi]=!0}catch(f){}return c.open("POST",a,!r),c[ci]("Content-type","application/json"),B(mn(i),function(n){c[ci](n,i[n])}),c.onreadystatechange=function(){var n=Cc(c);4!==c.readyState&&(y(t,c[ai],{},n),o&&o(!1)),y(t,c[ai],{},n),o&&o(!0)},c[X]=function(n){p(t,400,{},v(c)),u&&u(n)},c.ontimeout=function(){p(t,500,{},v(c)),o&&o(!1)},c.send(n[F]),e}function e(n,e,t){var r,o,u,i=n[ii],c=n[F],a=new Blob([c],{type:"application/json"}),f=new Headers,l=c[q],c=!1,s=!1,v=n.headers||[],a=(B(mn(v),function(n){f.append(n,v[n])}),(n={method:"POST",headers:f,body:a})[Fi]=!0,n),n=(g&&P&&(a.credentials="include"),t&&(c=a.keepalive=!0,O+=l),new Request(i,a));try{n[Fi]=!0}catch(d){}if(!t&&m&&(r=ge(function(n,t){o=n,u=t})),!i)return h(e),void(o&&o(!1));try{R(fetch(n),function(n){var r;t&&(O-=l,l=0),s||(s=!0,n[Uu]?(p(e,400,{},n[zu]&&n[zu].message),u&&u(n[zu])):(r=n[K]).ok?R(r.text(),function(n){var t=r[ai];y(e,t,{},r.statusText),o&&o(!0)}):(p(e,400,{},r.statusText),o&&o(!1)))})}catch(d){s||(p(e,400,{},k(d)),u&&u(d))}return c&&!s&&(s=!0,p(e,200,{}),o&&o(!0)),r}function y(n,t,r,e){p(n,206==t&&!P||204==t&&P?200:t,r,e)}function s(n){try{if(n&&""!==n){var t=Ze().parse(n);if(P)return t;if(t&&t.itemsReceived)return t}}catch(r){z(D,1,43,"Cannot parse the response. "+(vn(t=r)?t.name:H),{response:n})}return null}function v(n,t){return n?"XMLHttpRequest,Status:"+n[ai]+",Response:"+Cc(n)||n.response||"":t}function d(n,o,t){var r=ot(),u=new XDomainRequest,e=n[F],r=(u.onload=function(){var n,t,r,e=Cc(u);P?p(o,200,{},e):(e=o,t=Cc(n=u),n&&(t+""=="200"||""===t)||(r=s(t))&&r.itemsAccepted?i(t,e):c(b(n),e))},u[X]=function(){p(o,400,{},b(u))},u.ontimeout=function(){p(o,500,{})},u.onprogress=function(){},r&&r.location&&r.location.protocol||""),n=n[ii];n?n.lastIndexOf(r,0)?z(D,2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."):(r=n[fi](/^(https?:)/,""),u.open("POST",r),u.send(e)):h(o)}function b(n,t){return n?"XDomainRequest,Response:"+Cc(n)||"":t}function r(){n._appId=null,O=0,w=_=o=!1,T=E=C=null}r(),n.pause=function(){o=!0},n.resume=function(){o=o&&!1},n.getXhrInst=function(n){return S},n[V]=function(n,u,t,r,i,e){D=r||u.logger,w&&z(D,1,28,"Sender is already initialized"),E=u;r=jo(n,function(n){var n=cu(null,n.cfg,u),t=n.getExtCfg("OfflineChannel"),n=(T=i||Ji,n.getExtCfg(T,{})),t=t.senderCfg||{},r=("PostChannel"==T&&(P=!0),x=t.alwaysUseXhrOverride,m=!(!1===n.enableSendPromise),n.httpXHROverride),r=r&&r[Ku]?r:null,e=(!r&&P&&(e=typeof location===Kr&&location?location:j("location"))&&e.protocol&&"file:"==e.protocol.toLowerCase()&&(g=!1),null),o=[1,2,3];(t=t.transports||n.transports||[])&&(sn(t)?o=[t].concat(o):I(t)&&(o=t.concat(o)));e=function(n){for(var t,r,e=null,o=0;null==e&&o<n[q];)r=n[o],_||1!==r?2===r&&function(){var n=!1;try{n=!!j("fetch"),j("Request")}catch(t){}return n}()?e=a:3===r&&(Qe=null!==Qe?Qe:!!ut()&&!!ut().sendBeacon)&&(e=f):(We=null===We&&(We=typeof XDomainRequest!==Fr)&&Ye()?We&&!function(n,t){var r,e=!1;if(n){try{(e=t in n)||(r=n[Xr])&&(e=t in r)}catch(o){}if(!e)try{e=!N((new n)[t])}catch(o){}}return e}(j(Xe),"withCredentials"):We)?e=d:Ye()&&(e=l),o++;return e?((t={})[Ku]=e,t):null}(o),n={sendPOST:l};C=l,S=(e=x?r:e||r||n)||n});e&&e.add(r)},n[ti]=function(){try{var n=E.getPlugin(T).plugin;if(n&&M(n[ti])&&!n[ti]())return!1}catch(t){}return!o&&0===O},n._doTeardown=function(n,t){r()}})}var Ec,Sc,Tc=undefined,Pc=xn({maxStorageSizeInBytes:{isVal:ji,v:5e6},storageKey:Tc,minPersistenceLevel:{isVal:function(n){return sn(n)&&0<=n&&n<=Xi.Critical},v:Xi.Normal},providers:[1,3],indexedDbName:Tc,maxStorageItems:{isVal:ji,v:Tc},inMemoMaxTime:{isVal:ji,v:15e3},maxRetry:{isVal:ji,v:1},maxBatchsize:{isVal:ji,v:63e3},maxSentBatchInterval:{isVal:ji,v:15e3},primaryOnlineChannelId:[Ji,"PostChannel"],overrideInstrumentationKey:Tc,senderCfg:{}}),rn=(nn=Ec=en,Jr(Sc=Ic,nn),Sc[Xr]=(Oc[Xr]=nn[Xr],new Oc),Ic.__ieDyn=1,Ic);function Oc(){this.constructor=Sc}function Ic(){var n=Ec.call(this)||this;return n.identifier="OfflineChannel",n.priority=1e3,n.version="0.1.0-nightly3.2402-09",h(Ic,n,function(s,o){var c,a,v,u,d,g,n,h,i,p,y,b,m,x,_,C,w,D,E,S,T;function e(){a=c=!1,u=new wc,m=Tc,T=S=E=w=_=x=C=b=y=v=p=i=g=d=null}function f(){n?n.enabled=!0:(n=kt(function(){l()},h)).unref()}function l(n){try{var t=v,r=t[Mu]();if(!r||!r[q])return;var e=[],o=0,u=-1,i=0;if(B(r,function(n,t){u=t;var r=function(n){try{if(n)return E.serialize(n,m)}catch(t){}return null}(n);o+=r[q],y<o||(n[ni]==Xi.Critical&&i++,u=t,e[U](r))}),!e[q])return;var c=r.slice(0,u+1),a=(v=v.createNew(p,t[Mu]().slice(u+1)),function(n,t){try{if(!E)return null;var r=t||0,e=E.batch(n),o=E.createPayload&&E.createPayload(e);if(o)return o[ri]=r,o}catch(u){}return null}(e,i));a&&I("storeBatch",d.batchHandler.storeBatch(a,function(n){2==n[Xu]&&B(c,function(n){v[Au](n)})},n))}catch(f){}return null}function P(){var n;b?b[Zu]():(n=x?Math.max(0,x-wt()):0,(b=kt(function(){g[Qu]()?u[ti]()?I("sendNextBatch",d.batchHandler.sendNextBatch(function(n){1!==n[Xu]&&C++,b&&b[Zu]()},!1,w)):b[Zu]():b[Gu]()},Math.max(_,n))).unref())}function O(){n&&n[Gu](),b&&b[Gu](),b=n=null}function I(n,t){D&&D.queue(function(){return t},n)["catch"](function(n){})}function k(n,t,r,e){n&&(n.extensionConfig=n.extensionConfig||{}),!e&&t&&(e=t.getProcessTelContext().getNext());var o=null,u=s._getTelCtx().getNext();return cu(e,n,t,o=u?u.getPlugin():o)}e(),s[V]=function(n,t,r,e){c||(o[V](n,t,r),c=!0,i=s[Ru](),r=Iu(vo("OfflineSender"),t.evtNamespace&&t.evtNamespace()),g=function(n){var t,r=et(),e=ut(),o=!1,u=[],i=1,c=(!e||A(e.onLine)||e.onLine||(i=2),0),a=s(),f=Iu(vo("OfflineListener"),n);try{l(ot())&&(o=!0),r&&(t=r.body||r).ononline&&l(t)&&(o=!0)}catch(h){o=!1}function l(n){var t=!1;return n&&(t=ku(n,"online",d,f))&&ku(n,"offline",g,f),t}function s(){return 2!==c&&2!==i}function v(){var n=s();a!==n&&(a=n,B(u,function(n){var t={isOnline:a,rState:i,uState:c};try{n(t)}catch(h){}}))}function d(){i=1,v()}function g(){i=2,v()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var n=ot();n&&o&&($i(n,f),r&&!N((n=r.body||r).ononline)&&$i(n,f),o=!1)},addListener:function(t){return u.push(t),{rm:function(){var n=u.indexOf(t);if(-1<n)return u.splice(n,1)}}},setOnlineState:function(n){c=n,v()}}}(r),D=Ee(L,"offline channel")),f=t,l=e,s._addHook(jo(a=n,function(n){var t,r,e,o,n=cu(null,n.cfg,f),u=(t=n.getExtCfg(s.identifier,Pc)).primaryOnlineChannelId,i=p,u=(u&&u[q]&&B(u,function(n){var t=s.core.getPlugin(n),t=t&&t.plugin;t&&(S=n,M(t[ei])&&(E=t[ei](),i=M(E.getUrl)&&E.getUrl()))}),T=t.overrideInstrumentationKey,d),c=i||a.endpointUrl;c!==p&&(r={itemCtx:e=k(a,f,0,l),storageConfig:t,id:s.id,endpoint:c},(o=new bc(s[Ru](),s._unloadHooks))[V](r),u={iKey:a[oi],url:c,minPersistenceCacheLevel:t.minPersistenceLevel,coreRootCtx:e,providerContext:r,batchHandler:o},e=t.eventsLimitInMem,v=new xc(s[Ru](),c,null,e),h=t.inMemoMaxTime,r=n.getExtCfg(S,{})||{},m=r.convertUndefined,p=c,e=C<=1?10:(o=1+Math.floor((Math.pow(2,C)-1)/2*Math.random()*10),Math.max(Math.min(o*=1,3600),10)),n=wt()+1e3*e,x=n,_=t.maxSentBatchInterval,y=t.maxBatchsize),d=u}));var a,f,l,r=k(n,t,0,e);u[V](n,t,r,i,S,s._unloadHooks),u&&(w=u.getXhrInst(),g.addListener(function(n){n[Qu]?b&&b[Zu]():b&&b[Gu]()}),P())},s.processTelemetry=function(n,t){try{var r=g[Qu]();if(t=t||s._getTelCtx(t),r||!E||!p)return void s[Yu](n,t);if(c&&!a){var e=!0;if(!(e=M(E.shouldProcess)?E.shouldProcess(n):e))return void s[Yu](n,t);var o=n;return o[ni]=o[ni]||o.baseData&&o.baseData[ni]||Xi.Normal,u=d,o[ni]<u.minPersistenceCacheLevel||!v||(T&&(o.iKey=T),v[Au](n)||(l(),v[Au](n))),void f()}}catch(i){}var u;s[Yu](n,t)},s.pause=function(){a=!0,O(),C=0,x=null},s.resume=function(){a=!1,O(),f(),P()},s.onunloadFlush=function(){if(!a)for(var n=!0;v.count()&&n;)n=l(!0)},s.flush=function(n,t,r){},s.getOfflineListener=function(){return g},s._doTeardown=function(n,t){s.onunloadFlush(),g&&(r=g)&&r[wr]&&r[wr](!1);var r=d.batchHandler;r&&r[$u](),O(),e()},s._getDbgPlgTargets=function(){return[d,v,w]}}),n}n.InMemoryBatch=xc,n.IndexedDbProvider=hc,n.OfflineBatchHandler=bc,n.OfflineChannel=rn,n.Sender=wc,n.WebStorageProvider=Vi});
5
+ !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft.ApplicationInsights=n.Microsoft.ApplicationInsights||{}))}(this,function(n){"use strict";var y=undefined,b=null,u="",i="function",c="number",a="object",f="prototype",e="__proto__",t="undefined",l="constructor",s="Symbol",r="_polyfill",v="indexOf",$="length",J="done",W="value",Q="name",G="slice",m="call",Z="toString",o=Object,Y=o[f],nn=String,tn=nn[f],rn=Math,en=Array,on=en[f];function x(n,t){try{return{v:n.apply(this,t)}}catch(r){return{e:r}}}function un(t){return function(n){return typeof n===t}}function cn(n){var t="[object "+n+"]";return function(n){return!(!n||Y.toString.call(n)!==t)}}function M(n){return typeof n===t||n===t}function j(n){return n===b||M(n)}function an(n){return!!n||n!==y}var fn=un("string"),R=un(i);function ln(n){return!(!n&&j(n)||!n||typeof n!==a)}var I=en.isArray,sn=un(c),vn=cn("Error");function dn(n){return n&&n.then&&R(n.then)}var gn=o.getOwnPropertyDescriptor;function g(n,t){return!!n&&Y.hasOwnProperty[m](n,t)}var hn=o.hasOwn||function(n,t){return g(n,t)||!!gn(n,t)};function d(n,t,r){if(n&&ln(n))for(var e in n)if(hn(n,e)&&-1===t[m](r||n,e,n[e]))break}function pn(n,r,e,t){var o={};return d(n,function(n,t){o[n]=r?t:n,o[t]=e?t:n}),t(o)}function yn(n){throw new TypeError(n)}var bn=o.freeze,mn=o.keys;function xn(n){return bn&&d(n,function(n,t){(I(t)||ln(t))&&bn(t)}),_n(n)}var _n=bn||function(n){return n},Cn=o.getPrototypeOf||function(n){return n[e]||b};function wn(n){return pn(n,0,0,xn)}var Dn,En=wn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Sn=nn,Tn="__tsUtils$gblCfg";function Pn(){var n;return(n=(n=(n=typeof globalThis!==t?globalThis:n)||typeof self===t?n:self)||typeof window===t?n:window)||typeof global===t?n:global}function On(){var n;return Dn||(n=x(Pn).v||{},Dn=n[Tn]=n[Tn]||{}),Dn}var In,kn="[object Error]";function k(n,t){var r=u,e=Y[Z][m](n);e===kn&&(n={stack:Sn(n.stack),message:Sn(n.message),name:Sn(n.name)});try{r=(r=JSON.stringify(n,b,t?typeof t===c?t:4:y))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Sn(n)}catch(o){r=" - "+k(o,t)}return e+": "+r}function Nn(e,n,o){In=In||on[G];var u=n&&n[e];return function(n){var t,r=n&&n[e]||u;if(r||o)return t=arguments,(r||o).apply(n,r?In[m](t,1):t);yn('"'+Sn(e)+'" not defined for '+k(n))}}function An(t){return function(n){return n[t]}}var Mn=rn.max,jn=Nn(G,tn),Rn=Nn("substring",tn),Bn=Nn("substr",tn,Ln);function Ln(n,t,r){return j(n)&&yn("'polyStrSubstr called with invalid "+k(n)),r<0?u:((t=t||0)<0&&(t=Mn(t+n[$],0)),M(r)?jn(n,t):jn(n,t,t+r))}var Hn,zn;function Un(n){var t={description:Sn(n),toString:function(){return s+"("+n+")"}};return t[r]=!0,t}var _,qn={e:"enumerable",c:"configurable",v:W,w:"writable",g:"get",s:"set"},C=o.defineProperty;function w(n,t,r){return C(n,t,(e=r,(o={})[qn.c]=!0,o[qn.e]=!0,e.l&&(o.get=function(){return e.l.v},(n=gn(e.l,"v"))&&n.set&&(o.set=function(n){e.l.v=n})),d(e,function(n,t){o[qn[n]]=M(t)?o[qn[n]]:t}),o));var e,o}function Vn(){_=On()}function Kn(t){var r={};return _||Vn(),r.b=_.lzy,C(r,"v",{configurable:!0,get:function(){var n=t();return _.lzy||C(r,"v",{value:n}),r.b=_.lzy,n}}),r}function Fn(t,r){return Kn(function(){var n=x(t);return n.e?r:n.v})}function Xn(n){return C({toJSON:function(){return n}},"v",{value:n})}var $n,Jn,Wn,Qn,Gn,D,Zn,Yn,nt="window";function tt(n){return Kn(function(){return x(N,[n]).v||y})}function rt(n){return _||Vn(),($n=$n&&!1!==n&&!_.lzy?$n:Xn(x(Pn).v||b)).v}function N(n,t){t=$n&&!1!==t?$n.v:rt(t);return t&&t[n]?t[n]:n===nt&&Jn?Jn.v:b}function et(){return _||Vn(),(Wn=Wn&&!_.lzy?Wn:Xn(x(N,["document"]).v)).v}function ot(){return _||Vn(),(Jn=Jn&&!_.lzy?Jn:Xn(x(N,[nt]).v)).v}function ut(){return _||Vn(),(Qn=Qn&&!_.lzy?Qn:Xn(x(N,["navigator"]).v)).v}function it(){D&&D.b||(D=tt(s),Zn=Fn(function(){return D.v?D.v["for"]:y},y))}function ct(n,t){var r=En[n];return _||Vn(),D&&!_.lzy||it(),D.v?D.v[r||n]:t?y:(zn=zn||{},(r=En[n])?zn[r]=zn[r]||Un(s+"."+r):void 0)}function at(n,t){return _||Vn(),D&&!_.lzy||it(),D.v?D.v(n):t?b:Un(n)}function ft(n){return _||Vn(),Zn&&D&&!_.lzy||it(),(Zn.v||function(n){Hn||(e=On(),Hn=e.gblSym=e.gblSym||{k:{},s:{}});var t,r,e=Hn;return hn(e.k,n)||(t=Un(n),r=mn(e.s).length,t._urid=function(){return r+"_"+t[Z]()},e.k[n]=t,e.s[t._urid()]=Sn(n)),e.k[n]})(n)}function lt(n){return n&&R(n.next)}function st(n,t,r){if(n&&(lt(n)||(n=n[(Yn=Yn||Xn(ct(3))).v]?n[Yn.v]():null),lt(n))){var e=void 0,o=void 0;try{for(var u=0;!(o=n.next())[J]&&-1!==t[m](r||n,o[W],u,n);)u++}catch(i){e={e:i},n["throw"]&&(o=null,n["throw"](e))}finally{try{o&&!o[J]&&n["return"]&&n["return"](o)}finally{if(e)throw e.e}}}}var vt=Nn("apply");function B(n,t,r){if(n)for(var e=n[$]>>>0,o=0;o<e&&!(o in n&&-1===t[m](r||n,n[o],o,n));o++);}var dt,gt,ht,pt,yt=Nn(v,on),bt=Nn(G,on),mt=o.create||function(n){if(!n)return{};var t=typeof n;function r(){}return t!==a&&t!=i&&yn("Prototype must be an Object or function: "+k(n)),r[f]=n,new r};function xt(n,t){return(o.setPrototypeOf||function(r,n){(dt=dt||Kn(function(){return{__proto__:[]}instanceof Array})).v?r[e]=n:d(n,function(n,t){return r[n]=t})})(n,t)}function _t(n,t){t&&(n[Q]=t)}function Ct(o,u,n){var t,r,i=n||Error,c=i[f][Q],a=Error.captureStackTrace,n=i;return x(w,[r=function(){var n=this,t=arguments;try{x(_t,[i,o]);var r,e=vt(i,n,on[G][m](t))||n;return e!==n&&(r=Cn(n))!==Cn(e)&&xt(e,r),a&&a(e,n[l]),u&&u(e,t),e}finally{x(_t,[i,c])}},Q,{v:t=o,c:!0,e:!1}]),(r=xt(r,n))[f]=n===b?mt(n):(e[f]=n[f],new e),r;function e(){this.constructor=r,x(w,[this,Q,{v:t,c:!0,e:!1}])}}function wt(){return(Date.now||Dt)()}function Dt(){return(new Date).getTime()}function Et(n){if(!n||typeof n!==a)return!1;var t=!1;if(n!==(pt=pt||!ot()||ot())){ht||(gt=Function[f][Z],ht=gt[m](o));try{var r=Cn(n),t=(t=!r)||(r=g(r,l)?r[l]:r)&&typeof r==i&&gt[m](r)===ht}catch(e){}}return t}var St=An($),Tt=Nn(v,tn),Pt="unref",Ot="hasRef",It="enabled";function kt(){return t=this,n=y,r=on[G][m](arguments),v=(s=I(n))?n.length:0,d=(0<v?n[0]:s?y:n)||setTimeout,g=(1<v?n[1]:y)||clearTimeout,h=r[0],r[0]=function(){p.dn(),vt(h,t,on[G][m](arguments))},o=function(n){vt(g,t,[n])},i=!0,c=(e=function(n){if(n){if(n.refresh)return n.refresh(),n;vt(g,t,[n])}return vt(d,t,r)})(b),(s={cancel:l=function(){c&&o(c),c=b},refresh:f=function(){return c=e(c),i||a(),u},hasRef:function(){return c&&c[Ot]?c[Ot]():i},ref:function(){return i=!0,c&&c.ref&&c.ref(),u}})[Pt]=a=function(){return i=!1,c&&c[Pt]&&c[Pt](),u},s[It]=!1,C(u=s,It,{get:function(){return!!c},set:function(n){!n&&c&&l(),n&&!c&&f()}}),(p={h:u,dn:function(){c=b}}).h;var t,n,r,e,o,u,i,c,a,f,l,s,v,d,g,h,p}var Nt="constructor",At="prototype",Mt="function",jt="_dynInstFuncs",Rt="_isDynProxy",Bt="_dynClass",Lt="_dynInstChk",Ht=Lt,zt="_dfOpts",Ut="_unknown_",qt="__proto__",Vt="_dyn"+qt,en="__dynProto$Gbl",Kt="_dynInstProto",Ft="useBaseInst",Xt="setInstFuncs",$t=Object,Jt=$t.getPrototypeOf,Wt=$t.getOwnPropertyNames,nn=rt(),Qt=nn[en]||(nn[en]={o:((rn={})[Xt]=!0,rn[Ft]=!0,rn),n:1e3});function Gt(n){return n&&(n===$t[At]||n===Array[At])}function Zt(n){return Gt(n)||n===Function[At]}function Yt(n){if(n){if(Jt)return Jt(n);var t=n[qt]||n[At]||(n[Nt]?n[Nt][At]:null),r=n[Vt]||t;g(n,Vt)||(delete n[Kt],r=n[Vt]=n[Kt]||n[Vt],n[Kt]=t)}return r}function nr(n,t){var r=[];if(Wt)r=Wt(n);else for(var e in n)"string"==typeof e&&g(n,e)&&r.push(e);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function tr(n,t,r){return t!==Nt&&typeof n[t]===Mt&&(r||g(n,t))&&t!==qt&&t!==At}function rr(n){yn("DynamicProto: "+n)}function er(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function or(n,t){return g(n,At)?n.name||t||Ut:((n||{})[Nt]||{}).name||t||Ut}function h(n,e,t,r){g(n,At)||rr("theClass is an invalid class definition.");var o,u,i,c,a,f,l=n[At],s=(function(n){if(!Jt)return 1;for(var t=[],r=Yt(e);r&&!Zt(r)&&!er(t,r);){if(r===n)return 1;t.push(r),r=Yt(r)}}(l)||rr("["+or(n)+"] not in hierarchy of ["+or(e)+"]"),null),n=(g(l,Bt)?s=l[Bt]:(s="_dynCls$"+or(n,"_")+"$"+Qt.n,Qt.n++,l[Bt]=s),h[zt]),v=!!n[Ft],d=(v&&r&&r[Ft]!==undefined&&(v=!!r[Ft]),o=e,u=mt(null),nr(o,function(n){!u[n]&&tr(o,n,!1)&&(u[n]=o[n])}),u),v=(t(e,function(n,t,r,u){function e(n,t,r){var e,o=t[r];return o[Rt]&&u&&!1!==(e=n[jt]||{})[Ht]&&(o=(e[t[Bt]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o=mt(null),i=(nr(r,function(n){o[n]=e(t,r,n)}),Yt(n)),c=[];i&&!Zt(i)&&!er(c,i);)nr(i,function(n){!o[n]&&tr(i,n,!Jt)&&(o[n]=e(t,i,n))}),c.push(i),i=Yt(i);return o}(l,e,d,v)),!!Jt&&!!n[Xt]);i=l,t=s,c=e,a=d,n=!1!==(v=v&&r?!!r[Xt]:v),Gt(i)||Gt(l=c[jt]=c[jt]||mt(null))||(f=l[t]=l[t]||mt(null),!1!==l[Ht]&&(l[Ht]=!!n),Gt(f)||nr(c,function(n){var r,e,o;tr(c,n,!1)&&c[n]!==a[n]&&(f[n]=c[n],delete c[n],g(i,n)&&(!i[n]||i[n][Rt])||(i[n]=(r=i,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&g(r,Bt)){var u=n[jt]||mt(null);if((o=(u[r[Bt]]||mt(null))[t])||rr("Missing ["+t+"] "+Mt),!o[Lt]&&!1!==u[Ht]){for(var i=!g(n,t),c=Yt(n),a=[];i&&c&&!Zt(c)&&!er(a,c);){var f=c[t];if(f){i=f===e;break}a.push(c),c=Yt(c)}try{i&&(n[t]=o),o[Lt]=1}catch(l){u[Ht]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?Yt(r)[n]:t)!==Mt&&rr("["+n+"] is not a "+Mt),t)).apply(this,arguments)})[Rt]=1,o)))}))}h[zt]=Qt.o;var ur,ir="toLowerCase",cr="blkVal",p="length",ar="rdOnly",fr="notify",lr="warnToConsole",sr="throwInternal",vr="setDf",dr="watch",gr="logger",hr="apply",E="push",pr="splice",yr="hdlr",br="identifier",mr="isInitialized",xr="getPlugin",_r="time",Cr="processNext",wr="unload",Dr="createNew",Er="teardown",Sr="messageId",Tr="message",Pr="isAsync",Or="diagLog",Ir="_doTeardown",kr="update",Nr="getNext",Ar="setNextPlugin",Mr="userAgent",jr="split",Rr="nodeType",Br="replace",Lr="type",Hr="handler",zr="isChildEvt",Ur="getCtx",qr="setCtx",Vr="complete",Kr="object",Fr="undefined",Xr="prototype",$r=Object,Jr=function(n,t){return(Jr=$r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};function A(n,t){return Wr(n,function(n){return t?t({value:n,rejected:!1}):n},function(n){return t?t({rejected:!0,reason:n}):n})}function Wr(n,t,r,e){var o,u=n;return dn(n)?(t||r)&&(u=n.then(t,r)):t&&(u=t(n)),e&&(r=u,(o=e)&&(dn(r)?r["finally"]?r["finally"](o):r.then(function(n){return o(),n},function(n){throw o(),n}):o())),u}var Qr,Gr,Zr=["pending","resolving","resolved","rejected"],Yr="dispatchEvent",ne="Promise",te="unhandledRejection",re=te.toLowerCase(),ee=10;function oe(n){return R(n)?n.toString():k(n)}function ue(n,t,r){var c,e=bt(arguments,3),a=0,f=!1,l=[],s=!1,o=null,u=(Gr=Gr||tt(ne+"RejectionEvent"),function(u,i){return s=!0,o&&o.cancel(),o=null,n(function(e,o){l.push(function(){try{var n=2===a?u:i,t=M(n)?c:R(n)?n(c):n;dn(t)?t.then(e,o):(n||3!==a?e:o)(t)}catch(r){o(r)}}),f&&v()},e)}),i=function(){return Zr[a]},v=function(){var n;0<l.length&&(n=l.slice(),l=[],s=!0,t(n),o&&o.cancel(),o=null)},d=function(t,r){return function(n){if(a===r){if(2===t&&dn(n))return a=1,void n.then(d(2,1),d(3,1));a=t,f=!0,c=n,v(),s||3!==t||o||(o=kt(g,ee))}}},g=function(){var n,t,r,e,o;s||((Gn=Gn||Xn(!!x(function(){return process&&(process.versions||{}).node}).v)).v?process.emit(te,c,h):(r=ot()||rt(),n=re,t=function(n){return w(n,"promise",{g:function(){return h}}),n.reason=c,n},o=!!Gr.v,e=et(),t(o=(Qr=Qr||Fn(function(){var n;return!!(n=e&&e.createEvent?e.createEvent("Event"):n)&&n.initEvent},null)).v?e.createEvent("Event"):o?new Event(n):{}),Qr.v&&o.initEvent(n,!1,!0),o&&r[Yr]?r[Yr](o):(t=r["on"+n])?t(o):(r=N("console"))&&(r.error||r.log)(n,k(o))))},h={then:u,"catch":function(n){return u(undefined,n)},"finally":function(t){var n=t,r=t;return R(t)&&(n=function(n){return t&&t(),n},r=function(n){throw t&&t(),n}),u(n,r)}},p=(C(h,"state",{get:i}),_||Vn(),D&&!_.lzy||it(),D.v&&(h[ct(11)]="IPromise"),h.toString=function(){return"IPromise "+i()+(f?" - "+oe(c):"")},R(r)||yn(ne+": executor is not a function - "+oe(r)),d(3,0));try{r.call(h,d(2,0),p)}catch(y){p(y)}return h}var ie=function(n){B(n,function(n){try{n()}catch(t){}})};function L(n,t){return ue(L,(e=sn(r=t)?r:0,function(n){kt(function(){ie(n)},e)}),n,t);var r,e}var ce,ae,fe,le,se,ve=function(t){var n=bt(arguments,1);return ce(function(r,e){try{var o=[],u=1;B(t,function(n,t){n&&(u++,Wr(n,function(n){o[t]=n,0==--u&&r(o)},e))}),0==--u&&r(o)}catch(n){e(n)}},n)},S=(fe=ae=ce=L,function(r){var n=bt(arguments,1);return fe(function(n,t){t(r)},n)});function de(n,t){var r=(le=le||tt(ne)).v;if(!r)return L(n);R(n)||yn(ne+": executor is not a function - "+k(n));var e=0,r=new r(function(t,r){n(function(n){e=2,t(n)},function(n){e=3,r(n)})});return C(r,"state",{get:function(){return Zr[e]}}),r}function ge(n,t){return(se=se||Kn(function(){return de})).v.call(this,n,t)}var he,pe,ye="reject",be="Rejected",me=0,xe={},_e=function(){},Ce=function(n,t,r){xe[n]||(xe[n]=Ct(n));var e=wt();return new xe[n]("Task [".concat(t.id,"] ").concat(r||"","- ").concat(t.st?"Running":"Waiting",": ").concat((e-(t.st||t.cr)||"0")+" ms"))};function we(n,t){var r=wt()-t;B(n,function(n){(n&&!n.rj&&n.st&&n.st<r||!n.st&&n.cr&&n.cr<r)&&n&&n[ye](n.rj||Ce("Aborted",n,"Stale "))})}function De(n,t){t=yt(n,t);-1!==t&&n.splice(t,1)}function Ee(a,n){var f,r,e,o,t,u,l=[],s=[],v=0,d=(n?n+".":"")+me++,g=(a=a||ge,function(){var n=0<St(l)+St(s);0<r&&(o||(o=kt(function(){we(l,r),we(s,r),o&&(o.enabled=0<St(l)+St(s))},e)).unref(),o&&(o.enabled=n))}),h=function(i,c){return i.st=wt(),l.push(i),g(),function(t,r){var n=function(n){i.rj=i.rj||n||Ce(be,i),i[ye]=_e,p(i),t=null,r&&r(n),r=null},e=i.id;if(i.rj)n(i.rj);else{i[ye]=n;try{var o=c(e);i.to&&dn(o)&&(i.t=kt(function(){n(Ce("Timeout",i))},i.to)),Wr(o,function(n){p(i),r=null,t&&t(n),t=null},n)}catch(u){n(u)}}}},p=function(n){De(l,n),n.t&&n.t.cancel(),n.t=null,f&&f===n&&(f=null,St(l)+St(s)===0&&(o&&o.cancel(),o=null))},n={idle:!0,queue:function(n,t,r){var e,o,u,i=d+"."+v++,c=(t&&(i+="-("+t+")"),(t={id:i,cr:wt(),to:r})[ye]=function(n){c.rj=n||Ce(be,c),c[ye]=_e},t);return c.p=f?(o=f,u=n,s.push(e=c),g(),a(function(n,t){A(o.p,function(){De(s,e),h(e,u)(n,t)})})):a(h(c,n)),(f=c).p},setStaleTimeout:function(n,t){o&&o.cancel(),o=null,r=n,e=t||n/10,g()}};return w(n,"idle",{g:function(){return St(l)+St(s)===0}}),u=function(){return{l:f,r:l,w:s}},pe=pe||{toString:function(){return"[[SchedulerState]]"}},C(t=n,he=he||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return d}}),C(t,pe,{get:u}),n}var Se=undefined,H="",T="core",Te="disabled",Pe="extensionConfig",Oe="processTelemetry",Ie="priority",ke="getPerfMgr",Ne="Not dynamic - ",Ae=/-([a-z])/g,Me=/([^\w\d_$])/g,je=/^(\d+[\w\d_$])/;function Re(n){return!j(n)}function Be(n){return n&&fn(n)?(n=(n=n[Br](Ae,function(n,t){return t.toUpperCase()}))[Br](Me,"_"))[Br](je,function(n,t){return"_"+t}):n}function Le(n,t){return!(!n||!t)&&-1!==Tt(n,t)}function He(n,t,r,e,o){var u,i,c;n&&t&&r&&(!1===o&&!M(n[t])||(n[t]=(u=e,c=i=null,R(o=r)?i=o:c=o,function(){var n=arguments;if(c=i?i():c)return c[u][hr](c,n)})))}var ze="console",Ue="JSON",qe="crypto",Ve="msCrypto",Ke="msie",Fe="trident/",Xe="XMLHttpRequest",$e=null,Je=null,We=null,Qe=null;function Ge(){return typeof JSON===Kr&&JSON||null!==N(Ue)}function Ze(){return Ge()?JSON||N(Ue):null}function Ye(){var n=!1;try{n=!!N(Xe)}catch(t){}return n}var no=4294967296,to=4294967295,ro=123456789,eo=987654321,oo=!1,uo=ro,io=eo;function co(n){var t,r=0,e=N(qe)||N(Ve);if(0===(r=e&&e.getRandomValues?e.getRandomValues(new Uint32Array(1))[0]&to:r)&&(!(e=ut())||e[Mr]===Je&&null!==$e||(e=((Je=e[Mr])||H)[ir](),$e=Le(e,Ke)||Le(e,Fe)),$e)){if(!oo)try{var o=2147483647&wt();(t=(Math.random()*no^o)+o)<0&&(t>>>=0),uo=ro+t&to,io=eo-t&to,oo=!0}catch(u){}e=((io=36969*(65535&io)+(io>>16)&to)<<16)+(65535&(uo=18e3*(65535&uo)+(uo>>16)&to))>>>0&to|0,r=(e>>>=0)&to}return 0===r&&(r=Math.floor(no*Math.random()|0)),n||(r>>>=0),r}var ao="3.0.5",fo="."+function(n){void 0===n&&(n=22);for(var t=co()>>>0,r=0,e=H;e[p]<n;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++r&&(t=(co()<<2&4294967295|3&t)>>>0,r=0);return e}(6),lo=0;function so(n){return 1===n[Rr]||9===n[Rr]||!+n[Rr]}function vo(n,t){return Be(n+lo+++((t=void 0!==t&&t)?"."+ao:H)+fo)}function go(n){var u={id:vo("_aiData-"+(n||H)+"."+ao),accept:so,get:function(n,t,r,e){var o=n[u.id];return o?o[Be(t)]:(e&&((o=function(n,t){var r=t[n.id];if(!r){r={};try{so(t)&&w(t,n.id,{e:!1,v:r})}catch(e){}}return r}(u,n))[Be(t)]=r),r)},kill:function(n,t){if(n&&n[t])try{delete n[t]}catch(r){}}};return u}function ho(n){return n&&ln(n)&&(n.isVal||n.fb||hn(n,"v")||hn(n,"mrg")||hn(n,"ref")||n.set)}function po(n,t,r){var e,o=r.dfVal||an;if(t&&r.fb){var u=r.fb;I(u)||(u=[u]);for(var i=0;i<u[p];i++){var c=u[i],a=t[c];if(o(a)?e=a:n&&(o(a=n.cfg[c])&&(e=a),n.set(n.cfg,Sn(c),a)),o(e))break}}return!o(e)&&o(r.v)?r.v:e}function yo(r,n,t,e){var o,u,i,c,a,f,l=e,l=ho(l)?(o=l.isVal,u=l.set,a=l[ar],s=l[cr],i=l.mrg,!(c=l.ref)&&M(c)&&(c=!!i),po(r,n,l)):e,e=(s&&r[cr](n,t),!0),s=n[t];!s&&j(s)||(f=s,e=!1,o&&f!==l&&!o(f)&&(f=l,e=!0),u&&(e=(f=u(f,l,n))===l)),e?f=l&&function v(r,e,n){var o,t=n;return(t=n&&ho(n)?po(r,e,n):t)&&(ho(t)&&(t=v(r,e,t)),I(t)?(o=[])[p]=t[p]:Et(t)&&(o={}),o&&(d(t,function(n,t){t&&ho(t)&&(t=v(r,e,t)),o[n]=t}),t=o)),t}(r,n,l):(Et(f)||I(l))&&i&&l&&(Et(l)||I(l))&&d(l,function(n,t){yo(r,f,n,t)}),r.set(n,t,f),c&&r.ref(n,t),a&&r[ar](n,t)}var bo=ft("[[ai_dynCfg_1]]"),mo=ft("[[ai_blkDynCfg_1]]"),xo=ft("[[ai_frcDynCfg_1]]");function _o(n,t,r){var e=!1;return!r||n[t.blkVal]||(e=r[xo])||r[mo]?e:Et(r)||I(r)}function Co(n){yn("InvalidAccess:"+n)}var wo=["push","pop","shift","unshift","splice"],Do=function(n,t,r,e){n&&n[sr](3,108,"".concat(r," [").concat(t,"] failed - ")+k(e))};function Eo(n,t){n=gn(n,t);return n&&n.get}function So(o,u,i,c){var a={n:i,h:[],trk:function(n){n&&n.fn&&(-1===yt(a.h,n)&&a.h[E](n),o.trk(n,a))},clr:function(n){n=yt(a.h,n);-1!==n&&a.h[pr](n,1)}},f=!0,l=!1;function s(){f&&(l=l||_o(s,o,c),c&&!c[bo]&&l&&(c=Oo(o,c,i,"Converting")),f=!1);var n=o.act;return n&&a.trk(n),c}s[o.prop]={chng:function(){o.add(a)}},w(u,a.n,{g:s,s:function(t){if(c!==t){s[o.ro]&&!o.upd&&Co("["+i+"] is read-only:"+k(u)),f&&(l=l||_o(s,o,c),f=!1);var n,r=l&&s[o.rf];if(l)if(r){d(c,function(n){c[n]=t?t[n]:Se});try{d(t,function(n,t){To(o,c,n,t)}),t=c}catch(e){Do((o.hdlr||{})[gr],i,"Assigning",e),l=!1}}else c&&c[bo]&&d(c,function(n){var n=Eo(c,n);n&&(n=n[o.prop])&&n.chng()});t!==c&&(n=t&&_o(s,o,t),!r&&n&&(t=Oo(o,t,i,"Converting")),c=t,l=n),o.add(a)}}})}function To(n,t,r,e){var o;return t&&((o=Eo(t,r))&&o[n.prop]?t[r]=e:So(n,t,r,e)),t}function Po(n,t,r,e){if(t){var o=Eo(t,r),u=o&&!!o[n.prop],i=e&&e[0],c=e&&e[1],e=e&&e[2];if(!u){if(e)try{var a=t;if(a&&(Et(a)||I(a)))try{a[mo]=!0}catch(f){}}catch(l){Do((n.hdlr||{})[gr],r,"Blocking",l)}try{To(n,t,r,t[r]),o=Eo(t,r)}catch(l){Do((n.hdlr||{})[gr],r,"State",l)}}i&&(o[n.rf]=i),c&&(o[n.ro]=c),e&&(o[n.blkVal]=!0)}return t}function Oo(r,e,n,t){try{d(e,function(n,t){To(r,e,n,t)}),e[bo]||(C(e,bo,{get:function(){return r[yr]}}),o=r,i=n,I(u=e)&&B(wo,function(n){var e=u[n];u[n]=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=e[hr](this,n);return Oo(o,u,i,"Patching"),r}}))}catch(c){Do((r.hdlr||{})[gr],n,t,c)}var o,u,i;return e}var Io="[[ai_",ko="]]";function No(u){var i,n=at(Io+"get"+u.uid+ko),t=at(Io+"ro"+u.uid+ko),r=at(Io+"rf"+u.uid+ko),e=at(Io+"blkVal"+u.uid+ko),c=at(Io+"dtl"+u.uid+ko),o=null,a=null;function f(t,n){var r=i.act;try{(i.act=t)&&t[c]&&(B(t[c],function(n){n.clr(t)}),t[c]=[]),n({cfg:u.cfg,set:u.set.bind(u),setDf:u[vr].bind(u),ref:u.ref.bind(u),rdOnly:u[ar].bind(u)})}catch(o){var e=u[gr];throw e&&e[sr](1,107,k(o)),o}finally{i.act=r||null}}function l(){if(o){var r,n=o,e=(o=null,a&&a.cancel(),a=null,[]);if(B(n,function(t){if(t&&(t[c]&&(B(t[c],function(n){n.clr(t)}),t[c]=null),t.fn))try{f(t,t.fn)}catch(n){e[E](n)}}),o)try{l()}catch(t){e[E](t)}if(0<e[p])throw n=e,ur=ur||Ct("AggregationError",function(n,t){1<t[p]&&(n.errors=t[1])}),r="Watcher error(s): ",B(n,function(n,t){r+="\n".concat(t," > ").concat(k(n))}),new ur(r,n||[])}}return(n={prop:n,ro:t,rf:r})[cr]=e,n[yr]=u,n.add=function(n){if(n&&0<n.h[p]){o=o||[],a=a||kt(function(){a=null,l()},0);for(var t=0;t<n.h[p];t++){var r=n.h[t];r&&-1===yt(o,r)&&o[E](r)}}},n[fr]=l,n.use=f,n.trk=function(n,t){n&&(n=n[c]=n[c]||[],-1===yt(n,t)&&n[E](t))},i=n}function Ao(o,t,n){var r,e=function(){if(t){var n=t[bo]||t;if(n.cfg&&(n.cfg===t||n.cfg[bo]===n))return n}return null}();if(e)return e;var u,e=vo("dyncfg",!0),n=t&&!1!==n?t:function c(n){var r;return n&&(I(n)?(r=[])[p]=n[p]:Et(n)&&(r={}),r)?(d(n,function(n,t){r[n]=c(t)}),r):n}(t),i=((r={uid:null,cfg:n})[gr]=o,r[fr]=function(){u[fr]()},r.set=function(n,t,r){try{n=To(u,n,t,r)}catch(e){Do(o,t,"Setting value",e)}return n[t]},r[vr]=function(r,n){return n&&d(n,function(n,t){yo(i,r,n,t)}),r},r[dr]=function(n){return r={fn:t=n,rm:function(){r.fn=null,t=null}},u.use(r,t),r;var t,r},r.ref=function(n,t){return Po(u,n,t,((n={})[0]=!0,n))[t]},r[ar]=function(n,t){return Po(u,n,t,((n={})[1]=!0,n))[t]},r[cr]=function(n,t){return Po(u,n,t,((n={})[2]=!0,n))[t]},r._block=function(r,e){u.use(null,function(n){var t=u.upd;try{M(e)||(u.upd=e),r(n)}finally{u.upd=t}})},r);return w(i,"uid",{c:!1,e:!1,w:!1,v:e}),Oo(u=No(i),n,"config","Creating"),i}function Mo(n,t,r,e){r=Ao(r,n||{},e);return t&&r[vr](r.cfg,t),r}function jo(n,t,r){var e,o,u=n[bo]||n;return!u.cfg||u.cfg!==n&&u.cfg[bo]!==u?(e=r,o=Ne+k(n),e?(e[lr](o),e[sr](2,108,o)):Co(o),Mo(n,null,r)[dr](t)):u[dr](t)}var Ro=null,Bo="warnToConsole",Lo={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Ho=((v={})[0]=null,v[1]="errorToConsole",v[2]=Bo,v[3]="debugToConsole",v);function zo(n){return n?'"'+n[Br](/\"/g,H)+'"':H}function Uo(n,t){var r,e=typeof console!==Fr?console:N(ze);e&&(r="log",e[n]&&(r=n),R(e[r])&&e[r](t))}Vo.dataType="MessageData";var qo=Vo;function Vo(n,t,r,e){void 0===r&&(r=!1),this[Sr]=n,this[Tr]=(r?"AI: ":"AI (Internal): ")+n;r=H,Ge()&&(r=Ze().stringify(e)),n=(t?" message:"+zo(t):H)+(e?" props:"+zo(r):H);this[Tr]+=n}function Ko(n,t){return(n||{})[gr]||new Fo(t)}Xo.__ieDyn=1;var Fo=Xo;function Xo(o){this.identifier="DiagnosticLogger",this.queue=[];var a,f,l,s,t,v=0,d={};h(Xo,this,function(u){function i(n,t){var r,e;l<=v||(e=!0,r="AITR_"+t[Sr],d[r]?e=!1:d[r]=!0,e&&(n<=f&&(u.queue[E](t),v++,c(1===n?"error":"warn",t)),v===l&&(e=new qo(23,r="Internal events throttle limit per PageView reached for this app.",!1),u.queue[E](e),1===n?u.errorToConsole(r):u[lr](r))))}function c(n,t){var r,e=(r=(r=Ro)||!0===(o||{}).disableDbgExt?r:Ro||(e=N("Microsoft"),Ro=e?e.ApplicationInsights:Ro))?r.ChromeDbgExt:null;e&&e[Or]&&e[Or](n,t)}t=jo(Mo(o||{},Lo,u).cfg,function(n){n=n.cfg;a=n.loggingLevelConsole,f=n.loggingLevelTelemetry,l=n.maxMessageLimit,s=n.enableDebug}),u.consoleLoggingLevel=function(){return a},u[sr]=function(n,t,r,e,o){t=new qo(t,r,o=void 0!==o&&o,e);if(s)throw k(t);r=Ho[n]||Bo;M(t[Tr])?c("throw"+(1===n?"Critical":"Warning"),t):(o?(e=+t[Sr],!d[e]&&n<=a&&(u[r](t[Tr]),d[e]=!0)):n<=a&&u[r](t[Tr]),i(n,t))},u.debugToConsole=function(n){Uo("debug",n),c("warning",n)},u[lr]=function(n){Uo("warn",n),c("warning",n)},u.errorToConsole=function(n){Uo("error",n),c("error",n)},u.resetInternalMessageCount=function(){v=0,d={}},u.logInternalMessage=i,u[wr]=function(n){t&&t.rm(),t=null}})}function z(n,t,r,e,o,u){void 0===u&&(u=!1),(n||new Fo)[sr](t,r,e,o,u)}var $o="ParentContextKey",Jo="ChildrenContextKey",Wo=(Qo.ParentContextKey="parent",Qo.ChildrenContextKey="childEvts",Qo);function Qo(n,t,r){var e,o=this;o.start=wt(),o.name=n,o[Pr]=r,o[zr]=function(){return!1},R(t)&&w(o,"payload",{g:function(){return!e&&R(t)&&(e=t(),t=null),e}}),o[Ur]=function(n){return n?(n===Qo[$o]||n===Qo[Jo]?o:o.ctx||{})[n]:null},o[qr]=function(n,t){n&&(n===Qo[$o]?(o[n]||(o[zr]=function(){return!0}),o[n]=t):n===Qo[Jo]?o[n]=t:(o.ctx=o.ctx||{})[n]=t)},o[Vr]=function(){var n=0,t=o[Ur](Qo[Jo]);if(I(t))for(var r=0;r<t[p];r++){var e=t[r];e&&(n+=e[_r])}o[_r]=wt()-o.start,o.exTime=o[_r]-n,o[Vr]=function(){}}}var Go="CoreUtils.doPerf";function Zo(n,t,r,e,o){if(n)if(n=n[ke]?n[ke]():n){var u,i=void 0,c=n[Ur](Go);try{if(i=n.create(t(),e,o))return c&&i[qr]&&(i[qr](Wo[$o],c),c[Ur]&&c[qr]&&((u=c[Ur](Wo[Jo]))||(u=[],c[qr](Wo[Jo],u)),u[E](i))),n[qr](Go,i),r(i)}catch(a){i&&i[qr]&&i[qr]("exception",a)}finally{i&&n.fire(i),n[qr](Go,c)}}r()}function Yo(){for(var n,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=H,e=0;e<4;e++)r+=t[15&(n=co())]+t[n>>4&15]+t[n>>8&15]+t[n>>12&15]+t[n>>16&15]+t[n>>20&15]+t[n>>24&15]+t[n>>28&15];var o=t[8+(3&co())|0];return Bn(r,0,8)+Bn(r,9,4)+"4"+Bn(r,13,3)+o+Bn(r,16,3)+Bn(r,19,12)}var nu=go("plugin");function tu(n){return nu.get(n,"state",{},!0)}var ru="TelemetryPluginChain",eu="_hasRun",ou="_getTelCtx",uu=0;function iu(n,u,r,t){var e=null,o=[],i=(u=u||Mo({},null,r[gr]),null!==t&&(e=t?function(n,t,r){for(;n;){if(n[xr]()===r)return n;n=n[Nr]()}return au([r],t.config||{},t)}(n,r,t):n),{_next:function(){var n,t=e;return e=t?t[Nr]():null,t||(n=o)&&0<n[p]&&(B(n,function(n){try{n.func.call(n.self,n.args)}catch(t){z(r[gr],2,73,"Unexpected Exception during onComplete - "+k(t))}}),o=[]),t},ctx:{core:function(){return r},diagLog:function(){return Ko(r,u.cfg)},getCfg:function(){return u.cfg},getExtCfg:function(n,t){var e=c(n,!0);return t&&d(t,function(n,t){var r;!j(e[n])||!(r=u.cfg[n])&&j(r)||(e[n]=r),yo(u,e,n,t)}),u[vr](e,t)},getConfig:function(n,t,r){void 0===r&&(r=!1);var e,n=c(n,!1),o=u.cfg;return!n||!n[t]&&j(n[t])?!o[t]&&j(o[t])||(e=o[t]):e=n[t],e||!j(e)?e:r},hasNext:function(){return!!e},getNext:function(){return e},setNext:function(n){e=n},iterate:function(n){for(;t=i._next();){var t=t[xr]();t&&n(t)}},onComplete:function(n,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];n&&o[E]({func:n,self:M(t)?i.ctx:t,args:r})}}});function c(n,t){var r,e=null,o=u.cfg;return o&&n&&(r=o[Pe],o[Pe]=r=!r&&t?{}:r,(r=u.ref(o,Pe))&&(e=r[n],r[n]=e=!e&&t?{}:e,e=u.ref(r,n))),e}return i}function cu(n,t,r,e){var o=Mo(t),u=iu(n,o,r,e),i=u.ctx;return i[Cr]=function(n){var t=u._next();return t&&t[Oe](n,i),!t},i[Dr]=function(n,t){return cu((n=I(n=void 0===n?null:n)?au(n,o.cfg,r,t):n)||i[Nr](),o.cfg,r,t)},i}function au(n,t,r,e){var o,u=null,i=!e;return I(n)&&0<n[p]&&(o=null,B(n,function(n){(i=!i&&e===n||i)&&n&&R(n[Oe])&&(n=fu(n,t,r),u=u||n,o&&o._setNext(n),o=n)})),e&&!u?au([e],t,r):u}function fu(a,e,o){var f=null,u=R(a[Oe]),i=R(a[Ar]),l=a?a[br]+"-"+a[Ie]+"-"+uu++:"Unknown-0-"+uu++,c={getPlugin:function(){return a},getNext:function(){return f},processTelemetry:function(r,n){var t;s(n=n||(t=(t=a&&R(a[ou])?a[ou]():t)||cu(c,e,o)),function(n){if(!a||!u)return!1;var t=tu(a);return!t[Er]&&!t[Te]&&(i&&a[Ar](f),a[Oe](r,n),!0)},"processTelemetry",function(){return{item:r}},!r.sync)||n[Cr](r)},unload:function(e,o){s(e,function(){var n,t,r=!1;return a&&(n=tu(a),t=a[T]||n[T],!a||t&&t!==e.core()||n[Er]||(n[T]=null,n[Er]=!0,n[mr]=!1,a[Er]&&!0===a[Er](e,o)&&(r=!0))),r},"unload",function(){},o[Pr])||e[Cr](o)},update:function(e,o){s(e,function(){var n,t,r=!1;return a&&(n=tu(a),t=a[T]||n[T],!a||t&&t!==e.core()||n[Er]||a[kr]&&!0===a[kr](e,o)&&(r=!0)),r},"update",function(){},!1)||e[Cr](o)},_id:l,_setNext:function(n){f=n}};function s(r,e,o,n,t){var u=!1,i=a?a[br]:ru,c=(c=r[eu])||(r[eu]={});return r.setNext(f),a&&Zo(r[T](),function(){return i+":"+o},function(){c[l]=!0;try{var n=f?f._id:H;n&&(c[n]=!1),u=e(r)}catch(t){n=!f||c[f._id];n&&(u=!0),f&&n||z(r[Or](),1,73,"Plugin ["+i+"] failed during "+o+" - "+k(t)+", run flags: "+k(c))}},n,t),u}return _n(c)}function lu(){var t=[];return{add:function(n){n&&t[E](n)},run:function(r,e){B(t,function(n){try{n(r,e)}catch(t){z(r[Or](),2,73,"Unexpected error calling unload handler - "+k(t))}}),t=[]}}}function su(){var e=[];return{run:function(r){var n=e;e=[],B(n,function(n){try{(n.rm||n.remove).call(n)}catch(t){z(r,2,73,"Unloading:"+k(t))}})},add:function(n){var t;n&&(t=e,!M(n=n)&&t&&(I(n)?vt(t.push,t,n):lt(n)||n!==b&&an(n)&&R(n[ct(3)])?st(n,function(n){t.push(n)}):t.push(n)))}}}var vu="getPlugin",du=((tn={})[Pe]={isVal:Re,v:{}},tn),en=(gu.__ieDyn=1,gu);function gu(){var o,u,l,s,v,i=this;function t(n){var t,n=n=void 0===n?null:n;return n||(t=u||cu(null,{},i[T]),n=l&&l[vu]?t[Dr](null,l[vu]):t[Dr](null,l)),n}function a(n,t,r){Mo(n,du,Ko(t)),!r&&t&&(r=t.getProcessTelContext()[Nr]());var e=l;l&&l[vu]&&(e=l[vu]()),i[T]=t,u=cu(r,n,t,e)}function d(){o=!1,i[T]=null,l=u=null,v=su(),s=lu()}d(),h(gu,i,function(f){f.initialize=function(n,t,r,e){a(n,t,e),o=!0},f[Er]=function(n,t){var r,e,o,u,i=f[T];if(i&&(!n||i===n[T]()))return e=!1,o=n||function a(n,r,t){var e=Mo(r.config),o=iu(n,e,r,t),u=o.ctx;return u[Cr]=function(n){var t=o._next();return t&&t[wr](u,n),!t},u[Dr]=function(n,t){return a((n=I(n=void 0===n?null:n)?au(n,e.cfg,r,t):n)||u[Nr](),r,t)},u}(null,i,l&&l[vu]?l[vu]():l),u=t||((n={reason:0})[Pr]=!1,n),f[Ir]&&!0===f[Ir](o,u,c)?r=!0:c(),r;function c(){e||(e=!0,s.run(o,t),v.run(o[Or]()),!0===r&&o[Cr](u),d())}},f[kr]=function(n,t){var r,e,o,u=f[T];if(u&&(!n||u===n[T]()))return e=!1,o=n||function c(n,r,t){var e=Mo(r.config),o=iu(n,e,r,t).ctx;return o[Cr]=function(t){return o.iterate(function(n){R(n[kr])&&n[kr](o,t)})},o[Dr]=function(n,t){return c((n=I(n=void 0===n?null:n)?au(n,e.cfg,r,t):n)||o[Nr](),r,t)},o}(null,u,l&&l[vu]?l[vu]():l),f._doUpdate&&!0===f._doUpdate(o,t||{reason:0},i)?r=!0:i(),r;function i(){e||(e=!0,a(o.getCfg(),o.core(),o[Nr]()))}},He(f,"_addUnloadCb",function(){return s},"add"),He(f,"_addHook",function(){return v},"add"),w(f,"_unloadHooks",{g:function(){return v}})}),i[Or]=function(n){return t(n)[Or]()},i[mr]=function(){return o},i.setInitialized=function(n){o=n},i[Ar]=function(n){l=n},i[Cr]=function(n,t){t?t[Cr](n):l&&R(l[Oe])&&l[Oe](n,null)},i._getTelCtx=t}var hu="attachEvent",pu="addEventListener",yu="detachEvent",bu="removeEventListener",mu="events",xu=(vo("aiEvtPageHide"),vo("aiEvtPageShow"),/\.[\.]+/g),_u=/[\.]+$/,Cu=1,wu=go("events"),Du=/^([^.]*)(?:\.(.+)|)/;function Eu(n){return n&&n[Br]?n[Br](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,H):n}function Su(n,t){t&&(r=H,I(t)?(r=H,B(t,function(n){(n=Eu(n))&&("."!==n[0]&&(n="."+n),r+=n)})):r=Eu(t),r&&("."!==r[0]&&(r="."+r),n=(n||H)+r));var r,t=Du.exec(n||H)||[],n={};return n[Lr]=t[1],n.ns=(t[2]||H).replace(xu,".").replace(_u,H)[jr](".").sort().join("."),n}function Tu(n,t,r){n=wu.get(n,mu,{},r=void 0===r||r);return n[t]||(n[t]=[])}function Pu(n,t,r,e){n&&t&&t[Lr]&&(n[bu]?n[bu](t[Lr],r,e):n[yu]&&n[yu]("on"+t[Lr],r))}function Ou(n,t,r,e){for(var o=t[p];o--;){var u=t[o];!u||r.ns&&r.ns!==u.evtName.ns||e&&!e(u)||(Pu(n,u.evtName,u[Hr],u.capture),t[pr](o,1))}}function Iu(n,t){return t?Su("xx",I(t)?[n].concat(t):[n,t]).ns[jr]("."):n}function ku(n,t,r,e,o){void 0===o&&(o=!1);var u,i,c=!1;if(n)try{var a,f=Su(t,e),l=f,s=r,v=o,d=!1;(i=n)&&l&&l[Lr]&&s&&(i[pu]?(i[pu](l[Lr],s,v),d=!0):i[hu]&&(i[hu]("on"+l[Lr],s),d=!0)),(c=d)&&wu.accept(n)&&((u={guid:Cu++,evtName:f})[Hr]=r,u.capture=o,a=u,Tu(n,f.type)[E](a))}catch(g){}return c}var Nu="endpoint",Au="addEvent",Mu="count",U="push",q="length",ju="getItems",Ru="split",Bu="splice",V="initialize",Lu="diagLog",Hu="itemCtx",zu="storageConfig",K="value",Uu="reason",qu="rejected",Vu="getNextBatch",Ku="removeEvents",F="data",Fu="sendPOST",Xu="attempCnt",$u="state",Ju="teardown",Wu="isArr",Qu="indexOf",Gu="isOnline",Zu="cancel",Yu="refresh",ni="processNext",ti="persistence",ri="isCompletelyIdle",ei="criticalCnt",oi="getOfflineSupport",ui="instrumentationKey",ii="toString",ci="urlString",ai="setRequestHeader",fi="status",X="onerror",li="replace",si="charCodeAt",vi="charAt",di="fromCharCode",gi="getTime",hi="name",pi="dbHdl",yi="isAvailable",bi="transaction",mi="openStore",xi="openCursor",_i="dbName",Ci="remove",wi="onsuccess",P="then",Di="keyRange",Ei="continue",Si="substring",Ti="storageKeyPrefix",Pi="inStorageMaxTime",Oi="maxStorageSizeInBytes",Ii="EventsToDropPerTime",ki="maxCriticalEvtsDropCnt",Ni="supportsSyncRequests",Ai="removeItem",Mi="evts";function ji(n){try{var t=n[li](/^https?:\/\/|^www\./,"")[li](/\?/,"/")[Ru]("/");if(t&&0<t[q])return t[0]}catch(r){}return n}function Ri(n){return 0<=n}var Bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Li(){return(new Date)[gi]()+"."+Bn(Yo(),0,8)}function Hi(n){try{var t;if(n&&fn(n)&&/\d+\./g.test(n))return t=n[Ru]("."),parseInt(t[0])}catch(r){}return 0}Ui.__ieDyn=1;var zi=Ui;function Ui(e){h(Ui,this,function(n){n.base64ToArr=function(n){if(!n||!n[Wu])return n;try{var t=n[F];return t&&(n[F]=function(n){var t,r,e,o,u,i,c="",a=0;for(n=n[li](/[^A-Za-z0-9\+\/\=]/g,"");a<n[q];)e=Bi[Qu](n[vi](a++)),t=(15&(o=Bi[Qu](n[vi](a++))))<<4|(u=Bi[Qu](n[vi](a++)))>>2,r=(3&u)<<6|(i=Bi[Qu](n[vi](a++))),c+=String[di](e<<2|o>>4),64!=u&&(c+=String[di](t)),64!=i&&(c+=String[di](r));var f=c[Ru](",").map(function(n){return+(""+n)});return new Uint8Array(f)}(t)),n}catch(r){z(e,1,48,r&&R(r[ii])?r[ii]():"Error serializing object",null,!0)}return null},n.base64ToStr=function(n){if(!n||!n[Wu])return n;try{var t=n[F];return t&&(n[F]=function(n){for(var t,r,e,o="",u="",u=fn(n)?n:n[ii](),i=0;i<u[q];)t=u[si](i++),r=u[si](i++),e=u[si](i++),o=(o+=Bi[vi](t>>2))+Bi[vi]((3&t)<<4|r>>4),isNaN(r)?o+="==":o=(o+=Bi[vi]((15&r)<<2|e>>6))+(isNaN(e)?"=":Bi[vi](63&e));return""+o}(t)),n}catch(r){z(e,1,48,r&&R(r[ii])?r[ii]():"Error serializing object",null,!0)}return null}})}function qi(n){var t,r=rt()||{},e=null;try{(e=r[n])&&(t="__storage_test__",e.setItem(t,t),e[Ai](t))}catch(o){n=e,r=!1,o instanceof DOMException&&(22!==o.code&&"QuotaExceededError"!==o[hi]&&1014!==o.code&&"NS_ERROR_DOM_QUOTA_REACHED"!==o[hi]||n&&0!==n[q]&&(r=!0)),r||(e=null)}return e}function Vi(n,t){if(n)for(var r=mn(n),e=0;e<r[q];e++){var o=r[e];if(!t(n[o],o))break}}Fi.__ieDyn=1;var Ki=Fi;function Fi(n,t,p){h(Fi,this,function(o){var u,i,c=null,a=5e6,f=null,l=null,s=null,v=null,d=null;function r(t){var r=[],n=g(l).db;return n&&Vi(n[Mi],function(n){return n&&(n[Wu]&&(n=f.base64ToArr(n)),r[U](n)),!t||!r||r[q]!=t}),r}function g(n,t){void 0===t&&(t=!0);var r=null;if(c){var e=c.getItem(n);if(e)try{r=Ze().parse(e)}catch(o){c[Ai](n)}t&&!r&&(r={evts:{},lastAccessTime:0})}return{key:n,db:r}}function h(n,t){void 0===t&&(t=!0);var r=n.db;r&&t&&(r.lastAccessTime=(new Date)[gi]());try{var e=Ze().stringify(r);if(e[q]>a)return!1;c&&c.setItem(n.key,e)}catch(o){return!1}return!0}o.id=t,c=qi(n)||null,o._getDbgPlgTargets=function(){return[l,a,s]},o[V]=function(n,t){if(!c)return!1;var r=n[zu],e=n[Hu],e=(f=new zi(e[Lu]()),i=ji(t||n[Nu]),!!r.autoClean),t=jo(r,function(){a=r[Oi]||5e6,s=r[Pi]||1008e4;var n=r[Ii];v=Re(n)?n:10,d=r[ki]||2});return p&&p.add(t),u=r[Ti]||"AIOffline",l=u+"_1_"+i,e&&o.clean(),!0},o[Ni]=function(){return!0},o.getAllEvents=function(n){try{return c?r(n):void 0}catch(t){return S(t)}},o[Vu]=function(){try{return c?r(1):void 0}catch(n){return S(n)}},o[Au]=function(n,t,r){try{var e=g(l),o=(t.id=t.id||Li(),t[ei]=t[ei]||0,e.db[Mi]),u=t.id;for(t&&t[Wu]&&(t=f.base64ToStr(t));t;){if(o[u]=t,h(e))return t;if(delete o[u],!function(n,t,r){for(var e=[],o=0,u=0;o<=n&&u<r;){if(Vi(t,function(n,t){return n[ei]===o&&(e[U](t),u++),u<r}),0<u){for(var i=0;i<e[q];i++)delete t[e[i]];return 1}o++}return 0<u}(d,o,v))return S(Error("Unable to free up event space"))}}catch(i){return S(i)}},o[Ku]=function(n){try{var t=g(l,!1),r=t.db;if(r){var e=r[Mi];try{for(var o=0;o<n[q];++o)delete e[n[o].id];if(h(t))return n}catch(u){}n=function(n){var t=[],n=g(n,!1),r=n.db;if(r){r=r[Mi];try{Vi(r,function(n){return n&&t[U](n),1})}catch(e){}c&&c[Ai](n.key)}return t}(t.key)}return n}catch(u){return S(u)}},o.clear=function(){try{var t,r=[],n=g(l,!1),e=n.db;return e&&(Vi(t=e[Mi],function(n){return n&&(delete t[n.id],r[U](n)),1}),h(n)),r}catch(o){return S(o)}},o.clean=function(){var n=g(l,!1),t=n.db;if(t){t=t[Mi];try{return!function(n,t,r){var e=[],o=0,u=(new Date)[gi]()+1-n;try{if(Vi(t,function(n,t){return Hi(t)<=u&&(e[U](t),o++),o<r}),0<o){for(var i=0;i<e[q];i++)delete t[e[i]];return 1}}catch(c){}return 0<o}(s,t,v)||h(n)}catch(r){}return!1}},o[Ju]=function(){try{var n=g(l,!1),t=n.db;t&&(t.lastAccessTime=0,h(n,!1))}catch(r){}}})}var Xi="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",$i=pn({Normal:1,Critical:2},1,0,xn);function Ji(n,t){var r,e,o=void 0;if(void 0===o&&(o=!1),n)try{var u=Su(null,t),i=!1,c=n,a=function(n){return!(!u.ns&&null!==n[Hr])&&(i=!0)};(r=u)[Lr]?Ou(c,Tu(c,r[Lr]),r,a):(d(e=wu.get(c,mu,{}),function(n,t){Ou(c,t,r,a)}),0===mn(e)[p]&&wu.kill(c,mu)),i||Pu(n,u,null,o)}catch(f){}}var Wi="AppInsightsChannelPlugin",Qi=["indexedDB"],Gi="result",Zi="DBError: Unable to open database",Yi="Database is not open",nc="DBError: Failed to delete the database",tc=[];function rc(e){for(var n,o=null,t=0;t<tc[q];t++)if((o=tc[t])[hi]===e)return o;return(n={})[hi]=e,n.sch=Ee(L,"IndexedDbHelper["+e+"]"),n.dbHdl=[],n.add=function(n){o.dbHdl[U](n),O(e,"- dbOpened (add) -- hdls ["+o.dbHdl[q]+"]")},n[Ci]=function(n){for(var t=o[pi],r=0;r<t[q];r++)if(t[r]===n){t[Bu](r,1);break}O(e,"- dbClosed (remove) -- hdls ["+o.dbHdl[q]+"]")},n.isOpen=function(){return 0<o.dbHdl[q]},n.openHdl=function(){return 0<o.dbHdl[q]?o[pi][0]:null},o=n,tc[U](o),o}function ec(n,t,r,e){return rc(n).sch.queue(r,t,e)}function O(n,t){N("QUnit")&&console&&console.log("IndexedDbHelper ["+n+"] "+t)}function oc(t,r,e,o){return function(n){e(Error(r)),O(t,"["+o+"] event rejected")}}ic.__ieDyn=1;var uc=ic;function ic(n){var y=function(){var n=rt()||{},t=null;if(n)try{for(var r=0;r<Qi[q];r++)if((t=n[Qi[r]])&&R(t.open))return t}catch(e){t=null}return t}()||null;h(ic,this,function(n){function l(r,e){var n=r.db||null,n=n&&n[bi](e,"readwrite");return n?(n.onabort=function(){},n[X]=function(){},n.oncomplete=function(){O(r[_i],"txn.oncomplete")},{db:r,store:n.objectStore(e),tx:n,tbl:e,openCursor:function(n,t){return p(r,e,n,t)},newTransaction:function(n){return h(r,e,n)}}):null}function h(n,t,r){if(!n||!n.db)return S(Error(Yi));try{var e=r(l(n,t));return dn(e)?e:function(t){var n=bt(arguments,1);return dn(t)?t:ae(function(n){n(t)},n)}(e)}catch(o){return S(o)}}function p(r,e,n,a){if(!r||!r.db)return S(Error(Yi));var f=null;return n&&fn(n)?f=new cc(n):n&&n.isMatch&&(f=n),L(function(o,u){var i=[],n=null,t=null,c=(f&&f[Di]&&(t=f[Di]()),l(r,e));(n=t?c.store[xi](t):c.store[xi]())[X]=oc(c.db[_i],"DBError: Failed to Open Cursor",u,"openCursor"),n[wi]=function(n){var t=n.target[Gi];if(t){(n={store:c,cursor:t})[Ei]=function(){t[Ei]()},n.done=function(){o(i)};var r=n,n=t[K];if(f&&!f.isMatch(n))r[Ei]();else if(a)try{switch(a(r,n,i)){case 2:o(i);break;case 1:break;default:r[Ei]()}}catch(e){u(e)}else i[U](n),r[Ei]()}else o(i)}})}n[yi]=function(){return!!y},n.openDb=function(s,v,d,g){return ec(s,"openDb",function(l){return L(function(u,i){var c=!1;function a(n,t,r,e,o){(t={db:t})[_i]=s,t.dbVersion=v,t.ctx=null,t.isNew=e,t.txn=r?r[bi]:null;var u=t;return o||(u[mi]=function(n,t){return h(u,n,t)},u[xi]=function(n,t,r){return p(u,n,t,r)}),u}function t(t,n){var r=rc(s),e=(r.add(t),t.onabort=function(n){O(s,"onabort -- closing the Db"),r[Ci](t)},t[X]=function(n){O(s,"onerror -- closing the Db"),r[Ci](t)},t.onclose=function(n){O(s,"onclose -- closing the Db"),r[Ci](t)},t.onversionchange=function(n){O(s,"onversionchange -- force closing the Db"),t.close(),r[Ci](t)},null),e=a(0,e=0<r.dbHdl[q]?r[pi][0]:e,n,c);try{Wr(d(e),u,i)}catch(o){i(o)}}var n=rc(s);if(null==y)i(Error("No available storage factory"));else if(n.isOpen()){n=a(0,n.openHdl(),null,!1);Wr(d(n),u,i)}else{var f=y.open(s,v);if(!f)throw Error("missing API");f.onblocked=function(n){O(s,"Db Open Blocked event ["+l+"] - "+(f.error||"")),i(Error(Zi))},f[X]=function(n){O(s,"Db Open Error event ["+l+"] - "+(f.error||"")),i(Error(Zi))},f.onupgradeneeded=function(n){O(s,"Db Open Create/Upgrade needed event ["+l+"]");try{var t=n.target[Gi]||f.result;if(!t)return O(s,"no db"),void i(Error(Zi));var r=t,e=f,o=(O(s,"db upgrade called"),a(0,r,e,!0,!0));if(g)c=!0,A(g(o),function(n){if(n[qu])try{e[bi]&&e[bi].abort()}finally{i(n[Uu])}else O(o[_i],"on version change success"),o.txn||(o.txn=e[bi],O(o[_i],"added open request"))});else try{e[bi]&&e[bi].abort(),e.result&&e.result.close()}finally{i(Error("DBError: Database upgrade required"))}}catch(u){oc(s,Zi,i,l)(u)}},f[wi]=function(n){O(s,"Db Open sucess ["+l+"]");n=n.target[Gi];n?t(n,f):i(Error(Zi))}}})})},n.closeDb=function(u){O(u,"close db"),ec(u,"closeDb",function(n){var t=rc(u),r=t[pi],e=r[q];if(0<e){for(var o=0;o<e;o++)r[o].close();t[pi]=[]}return 1})["catch"](function(n){})},n.deleteDb=function(u){return null!=y&&ec(u,"deleteDb",function(o){var n=rc(u),t=n[pi],r=t[q];if(0<r){O(u,"Db is open ["+r+"] force closing");for(var e=0;e<r;e++)t[e].close();n[pi]=[]}return L(function(r,e){setTimeout(function(){try{O(u,"["+o+"] starting");var n=y.deleteDatabase(u);n[X]=function(n){e(Error(nc))},n.onblocked=function(n){e(Error(nc))},n.onupgradeneeded=function(n){e(Error(nc))},n[wi]=function(n){O(u,"["+o+"] complete"),r(!0)},O(u,"["+o+"] started")}catch(t){e(Error(nc+" - "+t))}},0)})})},n.getDbDetails=function(o){return ec(o,"getDbDetails",function(n){return null!=y&&y.databases?L(function(r,e){y.databases()[P](function(n){for(var t=0;t<n[q];t++)if(n[t][hi]===o)return void r(n[t]);e(Error("DBError: Database does not exist"))},e)}):S(Error("DBError: Feature not supported"))},2e3)}})}ac.__ieDyn=1;var cc=ac;function ac(n){var c=[],a=null;h(ac,this,function(i){i[Di]=function(){return a},i.parseQuery=function(n){if(c=[],n)for(var t=n[Ru](";"),r=0;r<t[q];r++){var e,o=t[r],u=o[Qu]("=");-1!==u&&(e=o[Si](0,u),u=o[Si](u+1),0===e[Qu]("#")&&(e=e[Si](1),a=a||IDBKeyRange.bound(u,u+"￿")),i.startsWith(e,u))}},i.startsWith=function(n,t){var r;c[U](((r={})[hi]=n,r[K]=t,r.type=0,r))},i.contains=function(n,t){var r;c[U](((r={})[hi]=n,r[K]=t,r.type=1,r))},i.isMatch=function(n){if(!c||0===c[q])return!0;if(!n)return!1;for(var t=0;t<c[q];t++){var r=c[t],e=n[r.name];if(e)if(0===r.type){if(e.indexOf(r[K]))return!1}else if(1===r.type&&!~e.indexOf(r[K]))return!1}return!0},n&&i.parseQuery(n)})}var fc="DBError: Unable to add event",lc="Evts";function sc(){return(new Date)[gi]()}function vc(n){for(var t=[],r=0;r<n[q];r++){var e=n[r];e&&e.evt&&t[U](e.evt)}return t}function dc(t){return function(n){return t[Ei]()}}function gc(n,t,e){return n.openCursor(lc,t,function(n,t,r){return r[U](t),e&&r&&r[q]==e?2:0})}function hc(n,t,e){return n.openCursor(lc,t,function(n,t,r){return e(t)?(r[U](t),(r=(t=n).cursor["delete"]())[X]=dc(t),r[wi]=dc(t),1):0})}yc.__ieDyn=1;var pc=yc;function yc(n,b){h(yc,this,function(u){var i,c,a=null,f=null,l="Unknown",s=null,v=null,d=null,g=null,h=null,p=null;function y(o){return a.openDb(f,1,function(e){return L(function(n,t){var r={iKey:l,id:v,storageId:s};e.ctx=r,Wr(o(e),n,t)})},function(o){return L(function(n,t){try{(r=o.db).objectStoreNames.contains(lc)||r.createObjectStore(lc,{keyPath:"id"}).createIndex("criticalCnt","criticalCnt",{unique:!1})}catch(e){t(e)}var r;n()})})}u.id=n,u[V]=function(n){var t=n.itemCtx[Lu]();if(!(a=new uc(t))[yi]())return a=null,!1;var r=n[Hu].getCfg(),e=n[Hu],o=(l=e.getCfg()[ui]||r[ui],n[zu]),r=(s=u.id||n.id||(e=Yo(),Rn(e,0,8)+"-"+Rn(e,8,12)+"-"+Rn(e,12,16)+"-"+Rn(e,16,20)+"-"+Rn(e,20)),v=ji(n[Nu]),i=!!o.autoClean,c=o[Ti]||"AIOffline",f=c+"_1_"+v,jo(o,function(){d=o[Pi]||1008e4,p=o[Oi]||5e6;var n=o[Ii];g=Re(n)?n:10,h=o[ki]||2}));return b&&b.add(r),f&&A(u.clean(!i),function(n){y(function(n){return!0})[P](function(n){},function(n){t.warnToConsole("IndexedDbProvider failed to initialize - "+(n||"<unknown>")),a=null})}),!0},u._getDbgPlgTargets=function(){return[f,p,d,a]},u[Ni]=function(){return!1},u.getAllEvents=function(e){return null!=a&&a[yi]()?y(function(r){return L(function(t,n){gc(r,null,e)[P](function(n){t(vc(n))},n)})}):[]},u[Vu]=function(){return null!=a&&a[yi]()?y(function(r){return L(function(t,n){gc(r,null,1)[P](function(n){t(vc(n))},n)})}):[]},u[Au]=function(t,r,n){return null!=a&&a[yi]()?(r.id=r.id||Li(),r[ei]=r[ei]||0,y(function(n){return function s(a,f,l){return L(function(o,u){a[mi](lc,function(n){n=n.store.put(f);n[wi]=function(n){o(f.evt)},n[X]=function(n){function t(n){0===n&&u(Error(fc)),s(a,f,!1)[P](function(n){o(f.evt)},function(){u(Error(fc))})}var r,i,e,c;l?(r=function(n){0<n?t(n):u(Error(fc))},i=a,e=h,c=g,L(function(n,t){var o=0;function u(){n(o)}i.openCursor(lc,null,function(n,t,r){return t.evt[ei]<=e&&(function(n,t){for(var r=0;r<n[q];r++)if(t.tm<n[r].tm)return n[Bu](r,0,t);n[U](t)}(r,t),r[q]>c&&r.splice(r[q]-1,1)),0})[P](function(e){0===e[q]?u():i[mi](lc,function(n){for(var t=[],r=0;r<e[q];r++)t[U](function(r,e){return L(function(t){var n=r.store["delete"](e.key);n[wi]=function(n){o++,t()},n[X]=function(n){t()}})}(n,e[r]));return ve(t)[P](u,u)})},function(){n(0)})})[P](function(n){r(n)},function(n){r(0)})):u(Error(fc))}})["catch"](function(n){u(n)})})}(n,{id:t||r.id,evt:r,tm:sc(),v:1},!0)})):r},u[Ku]=function(o){if(null==a||!a[yi]())return[];var u=[];return L(function(t,n){y(function(n){return n.openCursor(lc,null,function(n,t,r){var e;return-1!==function(n,t){for(var r=t[q],e=0;e<r;e++)if(n===t[e].id)return e;return-1}(t.id,o)?((e=n.cursor["delete"]())[X]=dc(n),e[wi]=function(){u[U](t.evt),n[Ei]()},1):0})})[P](function(){t(u)},function(n){t(u)})})},u.clear=function(n){return null==a||!a[yi]()||n?[]:L(function(t,n){y(function(n){return hc(n,null,function(n){return 1})})[P](function(n){t(vc(n))},function(n){t([])})})},u.clean=function(n){return!(null==a||!a[yi]()||n)&&L(function(t,n){y(function(n){return n.isNew?[]:(r=n,e=d,L(function(t,n){return hc(r,null,function(n){return!n||!n.evt||Hi(n.id)<=sc()+1-e})[P](function(n){t(n)},n)}));var r,e})[P](function(n){t(n&&0<n[q])},function(n){t(!1)})})},u[Ju]=function(){a&&a.closeDb(f)}})}var bc="No provider is available",mc=(xc.__ieDyn=1,xc);function xc(u,c){h(xc,this,function(n){var o,v,d,g,h,p;function r(){o=!1,p=h=d=v=null}function i(n,t){n=new Ki(n,undefined,c);return n[V](t)?n:null}r(),n[V]=function(n){try{var t,r;o||(u||n.itemCtx[Lu](),g=n[Hu],v=function(n){for(var t,r,e=n[zu].providers,o=null,u=0;!o&&u<e[q]&&u<2;)switch(e[u++]){case 1:o=i("localStorage",n),d=o;break;case 2:o=i("sessionStorage",n),d=o;break;case 3:t=n,r=void 0,o=r=(r=new pc(undefined,c))[V](t)?r:null,d=i("localStorage",n)}return o}(n),r=(t=n[zu]||{}).maxRetry,h=j(r)?2:r,p=(t.senderCfg||{}).retryCodes,v&&(o=!0))}catch(e){o=!1}return o},n._getDbgPlgTargets=function(){return[v,o,d]},n.storeBatch=function(r,c,n){var e=n?d:v;return ge(function(u,i){var n,t;return e||i(Error(bc)),(t=(n=r)[F])&&(t=ln(t),n[Wu]=t),A(e[Au](n.id,n,g),function(n){try{var t=n[K]||n[Uu]||[],r=2,e={state:r=n[qu]?r:1,item:t};try{c&&c(e)}catch(o){}u(e)}catch(o){i(o)}})})},n.sendNextBatch=function(u,l,s,n){return ge(function(r,c){function a(n){try{u&&u(n)}catch(t){}r(n)}v||d||c(Error(bc));var t=v;try{if(!d)return e();A(d[Vu](),function(n){if(n&&!n[qu]){n=n[K];if(n&&n[q])return t=d,o(n)}return e()})}catch(f){c(f)}function e(){return A(t[Vu](),function(n){try{return!n||n[qu]?void a({state:4,data:n.reason}):o(n[K]||[])}catch(f){c(f)}})}function o(u){var i={state:1,data:null};if(u[q])return A(t[Ku](u),function(n){if(n&&!n.rejected&&n[K]){for(var t=n[K],r=function(n){try{var o=u[n];return i[F]=o,s&&s[Fu]?(o[Xu]++,{value:A((0,s[Fu])(o,function(n,t,r){var e;200==n?i[$u]=1:(n=n,(e=o)&&e[F]&&(e[Xu]=e[Xu]||0,e[Xu]<=h)&&(j(p)?401===n||403===n||408===n||429===n||500===n||502===n||503===n||504===n:p[q]&&-1<p[Qu](n))?(i[$u]=2,d&&d[Au](o.id,o,g)):i[$u]=3),a(i)},l),function(n){})}):(i[$u]=3,a(i),{value:void 0})}catch(f){c(f)}},e=0;e<t[q];e++){var o=r(e);if("object"==typeof o)return o.value}return i[$u]=1,void a(i)}i[$u]=4,i.data=n[Uu],a(i)});a(i)}})},n.hasStoredBatch=function(u){return ge(function(e,o){return v||o(Error(bc)),A(v[Vu](),function(n){try{var t=0<(n[K]||[])[q];u&&u(t),e(t)}catch(r){o(r)}})})},n.cleanStorage=function(i){return ge(function(o,u){return v||u(Error(bc)),A(v.clear(),function(n){try{var t=0,r={batchCnt:t=n[qu]?t:(n[K]||[])[q]};i&&i(r),o(r)}catch(e){u(e)}})})},n[Ju]=function(n,t){v&&v[Ju](),r()}})}Cc.__ieDyn=1;var _c=Cc;function Cc(e,o,n,u){var i=n?[].concat(n):[];h(Cc,this,function(t){t[Nu]=function(){return o},t[Au]=function(n){return!(!j(u)&&t[Mu]()>=u||(i[U](n),0))},t[Mu]=function(){return i[q]},t.clear=function(){i=[]},t[ju]=function(){return i.slice(0)},t[Ru]=function(n,t){var r;return n<i[q]&&(r=i[q]-n,j(t)||(r=t<r?t:r),r=i[Bu](n,r)),new Cc(e,o,r,u)},t.createNew=function(n,t,r){return new Cc(e,n,t,r)}})}function wc(n){try{return n.responseText}catch(t){}return null}Ec.__ieDyn=1;var Dc=Ec;function Ec(){var o,m,x,_,C,w,D,E,S,T,P,O=0;h(Ec,this,function(n,t){var g=!0;function i(n,t){p(t,200,{},n)}function c(n,t){z(D,2,26,"Failed to send telemetry.",{message:n}),p(t,400,{})}function h(n){c("No endpoint url is provided for the batch",n)}function a(n,t,r){return e(n,t,!1)}function p(n,t,r,e){try{n&&n(t,r,e)}catch(o){}}function f(n,t,r){n[F]&&!function(n,t){var r=ut(),e=n[ci];if(!e)return h(t),1;n=n[F],n=new Blob([n],{type:"text/plain;charset=UTF-8"}),e=r.sendBeacon(e,n);return e&&i(null,t),e}(n,t)&&(C&&C(n,t,!0),z(D,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}function l(n,t,r){var e,o,u,i=n.headers||{},c=(!r&&m&&(e=ge(function(n,t){o=n,u=t})),new XMLHttpRequest),a=n[ci];if(!a)return h(t),void(o&&o(!1));try{c[Xi]=!0}catch(f){}return c.open("POST",a,!r),c[ai]("Content-type","application/json"),B(mn(i),function(n){c[ai](n,i[n])}),c.onreadystatechange=function(){var n=wc(c);4!==c.readyState&&(y(t,c[fi],{},n),o&&o(!1)),y(t,c[fi],{},n),o&&o(!0)},c[X]=function(n){p(t,400,{},v(c)),u&&u(n)},c.ontimeout=function(){p(t,500,{},v(c)),o&&o(!1)},c.send(n[F]),e}function e(n,e,t){var r,o,u,i=n[ci],c=n[F],a=new Blob([c],{type:"application/json"}),f=new Headers,l=c[q],c=!1,s=!1,v=n.headers||[],a=(B(mn(v),function(n){f.append(n,v[n])}),(n={method:"POST",headers:f,body:a})[Xi]=!0,n),n=(g&&P&&(a.credentials="include"),t&&(c=a.keepalive=!0,O+=l),new Request(i,a));try{n[Xi]=!0}catch(d){}if(!t&&m&&(r=ge(function(n,t){o=n,u=t})),!i)return h(e),void(o&&o(!1));try{A(fetch(n),function(n){var r;t&&(O-=l,l=0),s||(s=!0,n[qu]?(p(e,400,{},n[Uu]&&n[Uu].message),u&&u(n[Uu])):(r=n[K]).ok?A(r.text(),function(n){var t=r[fi];y(e,t,{},r.statusText),o&&o(!0)}):(p(e,400,{},r.statusText),o&&o(!1)))})}catch(d){s||(p(e,400,{},k(d)),u&&u(d))}return c&&!s&&(s=!0,p(e,200,{}),o&&o(!0)),r}function y(n,t,r,e){p(n,206==t&&!P||204==t&&P?200:t,r,e)}function s(n){try{if(n&&""!==n){var t=Ze().parse(n);if(P)return t;if(t&&t.itemsReceived)return t}}catch(r){z(D,1,43,"Cannot parse the response. "+(vn(t=r)?t.name:H),{response:n})}return null}function v(n,t){return n?"XMLHttpRequest,Status:"+n[fi]+",Response:"+wc(n)||n.response||"":t}function d(n,o,t){var r=ot(),u=new XDomainRequest,e=n[F],r=(u.onload=function(){var n,t,r,e=wc(u);P?p(o,200,{},e):(e=o,t=wc(n=u),n&&(t+""=="200"||""===t)||(r=s(t))&&r.itemsAccepted?i(t,e):c(b(n),e))},u[X]=function(){p(o,400,{},b(u))},u.ontimeout=function(){p(o,500,{})},u.onprogress=function(){},r&&r.location&&r.location.protocol||""),n=n[ci];n?n.lastIndexOf(r,0)?z(D,2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."):(r=n[li](/^(https?:)/,""),u.open("POST",r),u.send(e)):h(o)}function b(n,t){return n?"XDomainRequest,Response:"+wc(n)||"":t}function r(){n._appId=null,O=0,w=_=o=!1,T=E=C=null}r(),n.pause=function(){o=!0},n.resume=function(){o=o&&!1},n.getXhrInst=function(n){return S},n[V]=function(n,u,t,r,i,e){D=r||u.logger,w&&z(D,1,28,"Sender is already initialized"),E=u;r=jo(n,function(n){var n=cu(null,n.cfg,u),t=n.getExtCfg("OfflineChannel"),n=(T=i||Wi,n.getExtCfg(T,{})),t=t.senderCfg||{},r=("PostChannel"==T&&(P=!0),x=t.alwaysUseXhrOverride,m=!(!1===n.enableSendPromise),t.httpXHROverride||n.httpXHROverride),r=r&&r[Fu]?r:null,e=(!r&&P&&(e=typeof location===Kr&&location?location:N("location"))&&e.protocol&&"file:"==e.protocol.toLowerCase()&&(g=!1),null),o=[1,2,3];(t=t.transports||n.transports||[])&&(sn(t)?o=[t].concat(o):I(t)&&(o=t.concat(o)));e=function(n){for(var t,r,e=null,o=0;null==e&&o<n[q];)r=n[o],_||1!==r?2===r&&function(){var n=!1;try{n=!!N("fetch"),N("Request")}catch(t){}return n}()?e=a:3===r&&(Qe=null!==Qe?Qe:!!ut()&&!!ut().sendBeacon)&&(e=f):(We=null===We&&(We=typeof XDomainRequest!==Fr)&&Ye()?We&&!function(n,t){var r,e=!1;if(n){try{(e=t in n)||(r=n[Xr])&&(e=t in r)}catch(o){}if(!e)try{e=!M((new n)[t])}catch(o){}}return e}(N(Xe),"withCredentials"):We)?e=d:Ye()&&(e=l),o++;return e?((t={})[Fu]=e,t):null}(o),n={sendPOST:l};C=l,S=(e=x?r:e||r||n)||n});e&&e.add(r)},n[ri]=function(){try{var n=E.getPlugin(T).plugin;if(n&&R(n[ri])&&!n[ri]())return!1}catch(t){}return!o&&0===O},n._doTeardown=function(n,t){r()}})}var Sc,Tc,Pc=undefined,Oc=xn({maxStorageSizeInBytes:{isVal:Ri,v:5e6},storageKey:Pc,minPersistenceLevel:{isVal:function(n){return sn(n)&&0<=n&&n<=$i.Critical},v:$i.Normal},providers:[1,3],indexedDbName:Pc,maxStorageItems:{isVal:Ri,v:Pc},inMemoMaxTime:{isVal:Ri,v:15e3},maxRetry:{isVal:Ri,v:1},maxBatchsize:{isVal:Ri,v:63e3},maxSentBatchInterval:{isVal:Ri,v:15e3},primaryOnlineChannelId:[Wi,"PostChannel"],overrideInstrumentationKey:Pc,senderCfg:{}}),rn=(nn=Sc=en,Jr(Tc=kc,nn),Tc[Xr]=(Ic[Xr]=nn[Xr],new Ic),kc.__ieDyn=1,kc);function Ic(){this.constructor=Tc}function kc(){var n=Sc.call(this)||this;return n.identifier="OfflineChannel",n.priority=1e3,n.version="0.1.0-nightly3.2402-12",h(kc,n,function(s,o){var c,a,v,u,d,g,l,h,p,y,b,i,m,x,_,C,w,D,E,S,T,P;function e(){a=c=!1,u=new Dc,m=Pc,P=T=S=E=w=_=x=C=i=b=v=y=p=g=d=null}function O(){l?l.enabled=!0:(l=kt(function(){f(),v&&v[Mu]()&&l&&l[Yu](),I()},h)).unref()}function f(n){try{var t=v,r=t[ju]();if(!r||!r[q])return;var e=[],o=0,u=-1,i=0;if(B(r,function(n,t){u=t;var r=function(n){try{if(n)return E.serialize(n,m)}catch(t){}return null}(n);o+=r[q],b<o||(n[ti]==$i.Critical&&i++,u=t,e[U](r))}),!e[q])return;var c=r.slice(0,u+1),a=(v=v.createNew(y,t[ju]().slice(u+1),P),function(n,t){try{if(!E)return null;var r=t||0,e=E.batch(n),o=E.createPayload&&E.createPayload(e);if(o)return o[ei]=r,o}catch(u){}return null}(e,i));a&&N("storeBatch",d.batchHandler.storeBatch(a,function(n){2==n[$u]&&(B(c,function(n){v[Au](n)}),O())},n)),v[Mu]()||l&&l[Zu]()}catch(f){}return null}function I(){var n,t=g&&g[Gu]();i?t&&(i.enabled=!0,i[Yu]()):(n=x?Math.max(0,x-wt()):0,(i=kt(function(){t?R(u[ri])&&!u[ri]()?i&&i[Yu]():N("sendNextBatch",d.batchHandler.sendNextBatch(function(n){var t=n&&n[$u],n=(1!==t&&C++,n&&n[F]);1===t&&n&&i&&i[Yu]()},!1,w)):i&&i[Zu]()},Math.max(_,n))).unref())}function k(){l&&l[Zu](),i&&i[Zu](),i=l=null}function N(n,t){D&&D.queue(function(){return t},n)["catch"](function(n){})}function A(n,t,r,e){n&&(n.extensionConfig=n.extensionConfig||{}),!e&&t&&(e=t.getProcessTelContext().getNext());var o=null,u=s._getTelCtx().getNext();return cu(e,n,t,o=u?u.getPlugin():o)}e(),s[V]=function(n,t,r,e){c||(o[V](n,t,r),c=!0,p=s[Lu](),r=Iu(vo("OfflineSender"),t.evtNamespace&&t.evtNamespace()),g=function(n){var t,r=et(),e=ut(),o=!1,u=[],i=1,c=(!e||j(e.onLine)||e.onLine||(i=2),0),a=s(),f=Iu(vo("OfflineListener"),n);try{l(ot())&&(o=!0),r&&(t=r.body||r).ononline&&l(t)&&(o=!0)}catch(h){o=!1}function l(n){var t=!1;return n&&(t=ku(n,"online",d,f))&&ku(n,"offline",g,f),t}function s(){return 2!==c&&2!==i}function v(){var n=s();a!==n&&(a=n,B(u,function(n){var t={isOnline:a,rState:i,uState:c};try{n(t)}catch(h){}}))}function d(){i=1,v()}function g(){i=2,v()}return{isOnline:function(){return a},isListening:function(){return o},unload:function(){var n=ot();n&&o&&(Ji(n,f),r&&!M((n=r.body||r).ononline)&&Ji(n,f),o=!1)},addListener:function(t){return u.push(t),{rm:function(){var n=u.indexOf(t);if(-1<n)return u.splice(n,1)}}},setOnlineState:function(n){c=n,v()}}}(r),D=Ee(L,"offline channel")),f=t,l=e,s._addHook(jo(a=n,function(n){var t,r,e,o,n=cu(null,n.cfg,f),u=(t=n.getExtCfg(s.identifier,Oc)).primaryOnlineChannelId,i=y,u=(u&&u[q]&&B(u,function(n){var t=s.core.getPlugin(n),t=t&&t.plugin;t&&(S=n,R(t[oi])&&(E=t[oi](),i=R(E.getUrl)&&E.getUrl()))}),T=t.overrideInstrumentationKey,d),c=i||a.endpointUrl;c!==y&&(o={itemCtx:r=A(a,f,0,l),storageConfig:t,id:s.id,endpoint:c},(e=new mc(s[Lu](),s._unloadHooks))[V](o),u={iKey:a[ui],url:c,minPersistenceCacheLevel:t.minPersistenceLevel,coreRootCtx:r,providerContext:o,batchHandler:e},P=t.eventsLimitInMem,v=new _c(s[Lu](),c,null,P),h=t.inMemoMaxTime,r=n.getExtCfg(S,{})||{},m=r.convertUndefined,y=c,e=C<=1?10:(o=1+Math.floor((Math.pow(2,C)-1)/2*Math.random()*10),Math.max(Math.min(o*=1,3600),10)),n=wt()+1e3*e,x=n,_=t.maxSentBatchInterval,b=t.maxBatchsize),d=u}));var a,f,l,r=A(n,t,0,e);u[V](n,t,r,p,S,s._unloadHooks),u&&(w=u.getXhrInst(),g.addListener(function(n){n[Gu]?i&&i[Yu]():i&&i[Zu]()}),I())},s.processTelemetry=function(n,t){try{var r=g[Gu]();if(t=t||s._getTelCtx(t),r||!E||!y)return void s[ni](n,t);if(c&&!a){var e=!0;if(!(e=R(E.shouldProcess)?E.shouldProcess(n):e))return void s[ni](n,t);var o=n;return o[ti]=o[ti]||o.baseData&&o.baseData[ti]||$i.Normal,u=d,void(o[ti]<u.minPersistenceCacheLevel||!v||(T&&(o.iKey=T),v[Au](n)||(f(),v[Au](n)||z(p,2,105,"Maximum offline in-memory buffer size reached",!0)),O()))}}catch(i){}var u;s[ni](n,t)},s.pause=function(){a=!0,k(),C=0,x=null},s.resume=function(){a=!1,k(),O(),I()},s.onunloadFlush=function(){if(!a)for(var n=!0;v[Mu]()&&n;)n=f(!0)},s.flush=function(n,t,r){},s.getOfflineListener=function(){return g},s._doTeardown=function(n,t){s.onunloadFlush(),g&&(r=g)&&r[wr]&&r[wr](!1);var r=d.batchHandler;r&&r[Ju](),k(),e()},s._getDbgPlgTargets=function(){return[d,v,w,l,i]}}),n}n.InMemoryBatch=_c,n.IndexedDbProvider=pc,n.OfflineBatchHandler=mc,n.OfflineChannel=rn,n.Sender=Dc,n.WebStorageProvider=Ki});
6
6
  //# sourceMappingURL=applicationinsights-offlinechannel-js.min.js.map