@microsoft/applicationinsights-offlinechannel-js 0.3.9-nightly3.2505-27 → 0.3.9-nightly3.2505-28

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