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