!function(n,t){var i,r;if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{i=t();for(r in i)("object"==typeof exports?exports:n)[r]=i[r]}}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.i=function(n){return n},t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.e?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=30)}([function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n[n.Unspecified=0]="Unspecified";n[n.String=1]="String";n[n.Int64=2]="Int64";n[n.Double=3]="Double";n[n.Boolean=4]="Boolean"}(t.AWTPropertyType||(t.AWTPropertyType={}));!function(n){n[n.NotSet=0]="NotSet";n[n.DistinguishedName=1]="DistinguishedName";n[n.GenericData=2]="GenericData";n[n.IPV4Address=3]="IPV4Address";n[n.IPv6Address=4]="IPv6Address";n[n.MailSubject=5]="MailSubject";n[n.PhoneNumber=6]="PhoneNumber";n[n.QueryString=7]="QueryString";n[n.SipAddress=8]="SipAddress";n[n.SmtpAddress=9]="SmtpAddress";n[n.Identity=10]="Identity";n[n.Uri=11]="Uri";n[n.Fqdn=12]="Fqdn";n[n.IPV4AddressLegacy=13]="IPV4AddressLegacy"}(t.AWTPiiKind||(t.AWTPiiKind={}));!function(n){n[n.Low=1]="Low";n[n.Normal=2]="Normal";n[n.High=3]="High"}(t.AWTEventPriority||(t.AWTEventPriority={}));!function(n){n[n.NonRetryableStatus=1]="NonRetryableStatus";n[n.KillSwitch=2]="KillSwitch";n[n.QueueFull=3]="QueueFull"}(t.AWTEventsDroppedReason||(t.AWTEventsDroppedReason={}));!function(n){n[n.InvalidEvent=1]="InvalidEvent";n[n.SizeLimitExceeded=2]="SizeLimitExceeded"}(t.AWTEventsRejectedReason||(t.AWTEventsRejectedReason={}))},function(n,t,i){"use strict";function s(n){var t=new ft.Int64("0");return t.low=4294967295&n,t.high=Math.floor(n/4294967296),t}function h(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(et,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function c(n){return"string"==typeof n}function l(n){return(n+ot)*st}function a(n){var t=n.indexOf("-");return t>-1?n.substring(0,t):""}function v(){return null===f&&(f="undefined"!=typeof navigator&&Boolean(navigator.sendBeacon)),f}function y(){return null===e&&(e="undefined"!=typeof Uint8Array&&!rt()&&!ut()),e}function p(n){return!isNaN(n)&&null!==n&&n>=1&&n<=3}function w(n,i){return"string"!=typeof i&&"number"!=typeof i&&"boolean"!=typeof i||(i={value:i,type:r.AWTPropertyType.Unspecified}),t.PropertyNameRegex.test(n)&&void 0!==i&&null!==i&&null!==i.value&&void 0!==i.value&&""!==i.value?(i.type=g(i.value,i.type),i.type?(void 0===i.pii&&(i.pii=r.AWTPiiKind.NotSet),tt(i.pii)?i:null):null):null}function b(n){return n.getUTCFullYear()+"-"+u(n.getUTCMonth()+1)+"-"+u(n.getUTCDate())+"T"+u(n.getUTCHours())+":"+u(n.getUTCMinutes())+":"+u(n.getUTCSeconds())+"."+d(n.getUTCMilliseconds())+"Z"}function k(){if(null===o){var n=new XMLHttpRequest;o=void 0===n.withCredentials&&"undefined"!=typeof XDomainRequest}return o}function u(n){return n<10?"0"+n:n.toString()}function d(n){return n<10?"00"+n:n<100?"0"+n:n.toString()}function g(n,t){return it(t)&&t!==r.AWTPropertyType.Unspecified?t===r.AWTPropertyType.String&&"string"==typeof n?t:t!==r.AWTPropertyType.Double&&t!==r.AWTPropertyType.Int64||"number"!=typeof n?t===r.AWTPropertyType.Boolean&&"boolean"==typeof n?t:void 0:t===r.AWTPropertyType.Int64&&n%1!=0?null:t:nt(n)}function nt(n){switch(typeof n){case"string":return r.AWTPropertyType.String;case"boolean":return r.AWTPropertyType.Boolean;case"number":return r.AWTPropertyType.Double}return r.AWTPropertyType.Unspecified}function tt(n){return!isNaN(n)&&null!==n&&n>=0&&n<=13}function it(n){return!isNaN(n)&&null!==n&&n>=0&&n<=4}function rt(){if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.toLowerCase();if((n.indexOf("safari")>=0||n.indexOf("firefox")>=0)&&n.indexOf("chrome")<0)return!0}return!1}function ut(){return!("undefined"==typeof navigator||!navigator.product)&&"ReactNative"===navigator.product}Object.defineProperty(t,"__esModule",{value:!0});var ft=i(4),r=i(0),et=/[xy]/g,ot=621355968e5,st=1e4;t.EventNameAndTypeRegex=/^[a-zA-Z]([a-zA-Z0-9]|_){2,98}[a-zA-Z0-9]$/;t.EventNameDotRegex=/\./g;t.PropertyNameRegex=/^[a-zA-Z](([a-zA-Z0-9|_|\.]){0,98}[a-zA-Z0-9])?$/;t.StatsApiKey="a387cfcf60114a43a7699f9fbb49289e-9bceb9fe-1c06-460f-96c5-6a0b247358bc-7238";var f=null,e=null,o=null;t.numberToBondInt64=s;t.newGuid=h;t.isString=c;t.msToTicks=l;t.getTenantId=a;t.isBeaconsSupported=v;t.isUint8ArrayAvailable=y;t.isPriority=p;t.sanitizeProperty=w;t.getISOString=b;t.useXDomainRequest=k},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.addNotificationListener=function(n){this.listeners.push(n)},n.eventsSent=function(n){for(var i=this,r=this,t=0;t<this.listeners.length;++t)!function(t){r.listeners[t].eventsSent&&setTimeout(function(){return i.listeners[t].eventsSent(n)},0)}(t)},n.eventsDropped=function(n,t){for(var r=this,u=this,i=0;i<this.listeners.length;++i)!function(i){u.listeners[i].eventsDropped&&setTimeout(function(){return r.listeners[i].eventsDropped(n,t)},0)}(i)},n.eventsRetrying=function(n){for(var i=this,r=this,t=0;t<this.listeners.length;++t)!function(t){r.listeners[t].eventsRetrying&&setTimeout(function(){return i.listeners[t].eventsRetrying(n)},0)}(t)},n.eventsRejected=function(n,t){for(var r=this,u=this,i=0;i<this.listeners.length;++i)!function(i){u.listeners[i].eventsRejected&&setTimeout(function(){return r.listeners[i].eventsRejected(n,t)},0)}(i)},n.listeners=[],n}();t.default=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i(14),r=i(0),e=i(28),f=i(10),o=i(5),s=i(11),h=i(1),c=function(){function n(){}return n.setEventsHandler=function(n){this.t=n},n.getEventsHandler=function(){return this.t},n.scheduleTimer=function(){var t=this,n=this.r[this.a][0];this.u<0&&n>=0&&!this._&&(this.t.hasEvents()?(0===n&&this.f>0&&(n=1),this.u=setTimeout(function(){return t.h()},n*(1<<this.f)*1e3)):this.v=0)},n.initialize=function(n){var t=this;this.y=!0;this.T=n;this.t=new e.default(n.collectorUri,n.cacheMemorySizeLimitInNumberOfEvents,n.httpXHROverride);this.g();f.default.initialize(function(n,i){var u,f;if(t.T.canSendStatEvent("awt_stats")){u=new o.default("awt_stats");u.setEventPriority(r.AWTEventPriority.High);u.setProperty("TenantId",i);for(f in n)n.hasOwnProperty(f)&&u.setProperty(f,n[f].toString());s.default.getLogger(h.StatsApiKey).logEvent(u)}})},n.setTransmitProfile=function(n){this.a!==n&&void 0!==this.r[n]&&(this.clearTimeout(),this.a=n,this.scheduleTimer())},n.loadTransmitProfiles=function(n){var t,i,r;this.S();for(t in n)if(n.hasOwnProperty(t)){if(3!==n[t].length)continue;for(i=3;i>0;--i)if(n[t][i]<0){for(r=i;r>0;--r)n[t][r]=-1;break}if(n[t][3]>0&&n[t][2]>0&&n[t][3]%n[t][2]!=0||n[t][2]>0&&n[t][1]>0&&n[t][2]%n[t][1]!=0)continue;this.r[t]=n[t]}},n.sendEvent=function(n){this.y&&(this.t.addEvent(n),this.scheduleTimer())},n.flush=function(n){var t=(new Date).getTime();!this._&&this.A+3e4<t&&(this.A=t,this.u>-1&&(clearTimeout(this.u),this.u=-1),this.t.uploadNow(n))},n.pauseTransmission=function(){this._||(this.clearTimeout(),this.t.pauseTransmission(),this._=!0)},n.resumeTransmision=function(){this._&&(this._=!1,this.t.resumeTransmission(),this.scheduleTimer())},n.flushAndTeardown=function(){f.default.teardown();this.y=!1;this.clearTimeout();this.t.teardown()},n.backOffTransmission=function(){this.f<4&&(this.f++,this.clearTimeout(),this.scheduleTimer())},n.clearBackOff=function(){this.f>0&&(this.f=0,this.clearTimeout(),this.scheduleTimer())},n.S=function(){this.clearTimeout();this.g();this.a=u.AWT_REAL_TIME;this.scheduleTimer()},n.clearTimeout=function(){this.u>0&&(clearTimeout(this.u),this.u=-1,this.v=0)},n.h=function(){var n=r.AWTEventPriority.High;this.v++;this.v*this.r[this.a][0]===this.r[this.a][2]?(n=r.AWTEventPriority.Low,this.v=0):this.v*this.r[this.a][0]===this.r[this.a][1]&&(n=r.AWTEventPriority.Normal);this.t.sendEventsForPriorityAndAbove(n);this.u=-1;this.scheduleTimer()},n.g=function(){this.r={};this.r.REAL_TIME=[1,2,4];this.r.NEAR_REAL_TIME=[3,6,12];this.r.BEST_EFFOR=[9,18,36]},n.y=!1,n.a=u.AWT_REAL_TIME,n.u=-1,n.f=0,n._=!1,n.v=0,n.A=0,n}();t.default=c},function(n,t){"use strict";var i,r,u;Object.defineProperty(t,"__esModule",{value:!0});i=function(){function n(n){this.low=0;this.high=0;this.low=parseInt(n,10);this.low<0&&(this.high=-1)}return n.prototype.I=function(t){var i=new n(t);return this.low===i.low&&this.high===i.high},n}();t.Int64=i;r=function(){function n(n){this.low=0;this.high=0;this.low=parseInt(n,10)}return n.prototype.I=function(t){var i=new n(t);return this.low===i.low&&this.high===i.high},n}();t.UInt64=r;u=function(){function n(){}return n.P=function(n){return this.W(n)},n.W=function(n){return 255&n},n.B=function(n){return 2147483647&n|2147483648&n},n.w=function(n){return 4294967295&n},n}();t.Number=u},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(0),f=function(){function n(n){this.b={name:"",properties:{}};n&&this.setName(n)}return n.prototype.setName=function(n){this.b.name=n},n.prototype.getName=function(){if(this.b.name&&r.isString(this.b.name))return this.b.name},n.prototype.setType=function(n){this.b.type=n},n.prototype.getType=function(){if(this.b.type&&r.isString(this.b.type))return this.b.type},n.prototype.setTimestamp=function(n){this.b.timestamp=n},n.prototype.getTimestamp=function(){if(this.b.timestamp&&!isNaN(this.b.timestamp))return this.b.timestamp},n.prototype.setEventPriority=function(n){r.isPriority(n)&&(this.b.priority=n)},n.prototype.getEventPriority=function(){return this.b.priority},n.prototype.setProperty=function(n,t,i){void 0===i&&(i=u.AWTPropertyType.Unspecified);var f={value:t,type:i,pii:u.AWTPiiKind.NotSet};if(null===(f=r.sanitizeProperty(n,f)))return void delete this.b.properties[n];this.b.properties[n]=f},n.prototype.setPropertyWithPii=function(n,t,i,f){void 0===f&&(f=u.AWTPropertyType.Unspecified);var e={value:t,type:f,pii:i};if(null===(e=r.sanitizeProperty(n,e)))return void delete this.b.properties[n];this.b.properties[n]=e},n.prototype.getPropertyMap=function(){return this.b.properties},n.prototype.getEvent=function(){return this.b},n}();t.default=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(21),u=i(0),f=i(1),e=function(){function n(){}return n.getPayloadBlob=function(n,t){var s=new r.IO.MemoryStream,i=new r.CompactBinaryProtocolWriter(s),u,e,o;i.O(r.D.C,3,null);i.R(t,r.D.N,r.D.M);for(u in n)if(n.hasOwnProperty(u)){for(i.U(u),e=n[u],i.k(1,r.D.x),i.O(r.D.N,2,null),i.U("act_default_source"),i.O(r.D.N,5,null),i.U(f.newGuid()),i.O(r.D.L,6,null),i.F(f.numberToBondInt64(Date.now())),i.O(r.D.M,8,null),i.k(e.length,r.D.x),o=0;o<e.length;++o)i.z(e[o].serializedEvent);i.q(!1)}return i.q(!1),s.H()},n.getEventBlob=function(n){var k=new r.IO.MemoryStream,t=new r.CompactBinaryProtocolWriter(k),e,i,o;t.O(r.D.N,1,null);t.U(n.id);t.O(r.D.L,3,null);t.F(f.numberToBondInt64(n.timestamp));t.O(r.D.N,5,null);t.U(n.type);t.O(r.D.N,6,null);t.U(n.name);var s={},v=0,h={},y=0,c={},p=0,l={},w=0,a={},b=0;for(i in n.properties)if(n.properties.hasOwnProperty(i))if(e=n.properties[i],e.pii===u.AWTPiiKind.NotSet)switch(e.type){case u.AWTPropertyType.String:s[i]=e.value;v++;break;case u.AWTPropertyType.Int64:h[i]=e.value;y++;break;case u.AWTPropertyType.Double:c[i]=e.value;p++;break;case u.AWTPropertyType.Boolean:l[i]=e.value;w++}else a[i]=e,b++;if(v){t.O(r.D.C,13,null);t.R(v,r.D.N,r.D.N);for(i in s)s.hasOwnProperty(i)&&(o=s[i],t.U(i),t.U(o.toString()))}if(b){t.O(r.D.C,30,null);t.R(b,r.D.N,r.D.x);for(i in a)a.hasOwnProperty(i)&&(e=a[i],t.U(i),t.O(r.D.j,1,null),t.Q(1),t.O(r.D.j,2,null),t.Q(e.pii),t.O(r.D.N,3,null),t.U(e.value.toString()),t.q(!1))}if(w){t.O(r.D.C,31,null);t.R(w,r.D.N,r.D.V);for(i in l)l.hasOwnProperty(i)&&(o=l[i],t.U(i),t.K(o))}if(y){t.O(r.D.C,33,null);t.R(y,r.D.N,r.D.L);for(i in h)h.hasOwnProperty(i)&&(o=h[i],t.U(i),t.F(f.numberToBondInt64(o)))}if(p){t.O(r.D.C,34,null);t.R(p,r.D.N,r.D.G);for(i in c)c.hasOwnProperty(i)&&(o=c[i],t.U(i),t.X(o))}return t.q(!1),k.H()},n.base64Encode=function(n){return r.J.Z(n)},n}();t.default=e},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),e="MicrosoftApplicationsTelemetryDeviceId",o="MicrosoftApplicationsTelemetryFirstLaunchTime",r={MSIE:"MSIE",CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",EDGE:"Edge",ELECTRON:"Electron",SKYPE_SHELL:"SkypeShell",PHANTOMJS:"PhantomJS",OPERA:"Opera"},u={WINDOWS:"Windows",MACOSX:"Mac OS X",WINDOWS_PHONE:"Windows Phone",WINDOWS_RT:"Windows RT",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNKNOWN:"Unknown"},f={WIN:/(windows|win32)/i,WINRT:/ arm;/i,WINPHONE:/windows\sphone\s\d+\.\d+/i,OSX:/(macintosh|mac os x)/i,IOS:/(iPad|iPhone|iPod)(?=.*like Mac OS X)/i,LINUX:/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,ANDROID:/android/i},h={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},c=function(){function n(){}return n.addPropertyStorageOverride=function(n){return!!n&&(this.Y=n,!0)},n.autoCollect=function(n,t,i){if(this.$=n,this.ee=t,this.te(),i||"undefined"==typeof navigator||(i=navigator.userAgent||""),this.ie(i),this.ee&&!this.Y)return this.ne(e),void this.ne(o);this.re()},n.checkAndSaveDeviceId=function(n){n&&(this.oe(e)!==n&&(this.se(e,n),this.se(o,s.getISOString(new Date))),this.firstLaunchTime=this.oe(o))},n.re=function(){var n=this.oe(e);n?this.firstLaunchTime=this.oe(o):(n=s.newGuid(),this.checkAndSaveDeviceId(n));this.$.setDeviceId(n)},n.te=function(){"undefined"!=typeof document&&document.documentElement&&this.$.setAppLanguage(document.documentElement.lang);"undefined"!=typeof navigator&&this.$.setUserLanguage(navigator.userLanguage||navigator.language);var i=(new Date).getTimezoneOffset(),n=i%60,t=(i-n)/60,r="+";t>0&&(r="-");t=Math.abs(t);n=Math.abs(n);this.$.setUserTimeZone(r+(t<10?"0"+t:t.toString())+":"+(n<10?"0"+n:n.toString()))},n.ie=function(n){var t,i;n&&(t=this.ae(n),this.$.setDeviceBrowserName(t),this.$.setDeviceBrowserVersion(this.ue(n,t)),i=this.de(n),this.$.setDeviceOsName(i),this.$.setDeviceOsVersion(this.le(n,i)))},n.ae=function(n){return this._e("OPR/",n)?r.OPERA:this._e(r.PHANTOMJS,n)?r.PHANTOMJS:this._e(r.EDGE,n)?r.EDGE:this._e(r.ELECTRON,n)?r.ELECTRON:this._e(r.CHROME,n)?r.CHROME:this._e("Trident",n)?r.MSIE:this._e(r.FIREFOX,n)?r.FIREFOX:this._e(r.SAFARI,n)?r.SAFARI:this._e(r.SKYPE_SHELL,n)?r.SKYPE_SHELL:"Unknown"},n._e=function(n,t){return t.indexOf(n)>-1},n.ue=function(n,t){return t===r.MSIE?this.ce(n):this.pe(t,n)},n.ce=function(n){var i=n.match(new RegExp(r.MSIE+" ([\\d,.]+)")),t;return i?i[1]:(t=n.match(new RegExp("rv:([\\d,.]+)")),t?t[1]:void 0)},n.pe=function(n,t){n===r.SAFARI&&(n="Version");var i=t.match(new RegExp(n+"/([\\d,.]+)"));return i?i[1]:"Unknown"},n.de=function(n){return n.match(f.WINPHONE)?u.WINDOWS_PHONE:n.match(f.WINRT)?u.WINDOWS_RT:n.match(f.IOS)?u.IOS:n.match(f.ANDROID)?u.ANDROID:n.match(f.LINUX)?u.LINUX:n.match(f.OSX)?u.MACOSX:n.match(f.WIN)?u.WINDOWS:"Unknown"},n.le=function(n,t){return t===u.WINDOWS?this.fe(n):t===u.MACOSX?this.he(n):"Unknown"},n.fe=function(n){var t=n.match(new RegExp("Windows NT ([\\d,.]+)"));return t&&h[t[1]]?h[t[1]]:"Unknown"},n.he=function(n){var r=n.match(new RegExp(u.MACOSX+" ([\\d,_,.]+)")),t,i;return r&&(t=r[1].replace(/_/g,"."),t)?(i=this.ve(t),i)?t.split(i)[0]:t:"Unknown"},n.ve=function(n){return n.indexOf(".")>-1?".":n.indexOf("_")>-1?"_":null},n.se=function(n,t){var i,r;this.Y?this.Y.setProperty(n,t):"undefined"==typeof document||void 0===document.cookie||this.ee||(i=new Date,i.setTime(i.getTime()+31536e6),r="expires="+i.toUTCString(),document.cookie=n+"="+t+"; "+r)},n.oe=function(n){var u,i,t,r;if(this.Y)return this.Y.getProperty(n)||"";if("undefined"!=typeof document&&void 0!==document.cookie&&!this.ee)for(n+="=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i],r=0;" "===t.charAt(r);)r++;if(t=t.substring(r),0===t.indexOf(n))return t.substring(n.length,t.length)}return""},n.ne=function(n){"undefined"!=typeof document&&void 0!==document.cookie&&(document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},n.ee=!1,n}();t.default=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(7),r=i(0),u=i(9),e=function(){function n(n,t){this.ye=n;this.Te=t}return n.prototype.setAppId=function(n){this.ge("AppInfo.Id",n)},n.prototype.setAppVersion=function(n){this.ge("AppInfo.Version",n)},n.prototype.setAppLanguage=function(n){this.ge("AppInfo.Language",n)},n.prototype.setDeviceId=function(n){this.ye&&(f.default.checkAndSaveDeviceId(n),this.ge("DeviceInfo.Id",n))},n.prototype.setDeviceOsName=function(n){this.ye&&this.ge("DeviceInfo.OsName",n)},n.prototype.setDeviceOsVersion=function(n){this.ye&&this.ge("DeviceInfo.OsVersion",n)},n.prototype.setDeviceBrowserName=function(n){this.ye&&this.ge("DeviceInfo.BrowserName",n)},n.prototype.setDeviceBrowserVersion=function(n){this.ye&&this.ge("DeviceInfo.BrowserVersion",n)},n.prototype.setDeviceMake=function(n){this.ye&&this.ge("DeviceInfo.Make",n)},n.prototype.setDeviceModel=function(n){this.ye&&this.ge("DeviceInfo.Model",n)},n.prototype.setUserId=function(n,t,i){if(!isNaN(i)&&null!==i&&i>=0&&i<=12)this.ge("UserInfo.IdType",i.toString());else{var f=void 0;switch(t){case r.AWTPiiKind.SipAddress:f=u.AWTUserIdType.SipAddress;break;case r.AWTPiiKind.PhoneNumber:f=u.AWTUserIdType.PhoneNumber;break;case r.AWTPiiKind.SmtpAddress:f=u.AWTUserIdType.EmailAddress;break;default:f=u.AWTUserIdType.Unknown}this.ge("UserInfo.IdType",f.toString())}if(isNaN(t)||null===t||t===r.AWTPiiKind.NotSet||t>13)switch(i){case u.AWTUserIdType.Skype:t=r.AWTPiiKind.Identity;break;case u.AWTUserIdType.EmailAddress:t=r.AWTPiiKind.SmtpAddress;break;case u.AWTUserIdType.PhoneNumber:t=r.AWTPiiKind.PhoneNumber;break;case u.AWTUserIdType.SipAddress:t=r.AWTPiiKind.SipAddress;break;default:t=r.AWTPiiKind.NotSet}this.me("UserInfo.Id",n,t)},n.prototype.setUserAdvertisingId=function(n){this.ge("UserInfo.AdvertisingId",n)},n.prototype.setUserTimeZone=function(n){this.ge("UserInfo.TimeZone",n)},n.prototype.setUserLanguage=function(n){this.ge("UserInfo.Language",n)},n.prototype.ge=function(n,t){"string"==typeof t&&this.Te.setProperty(n,t)},n.prototype.me=function(n,t,i){"string"==typeof t&&this.Te.setPropertyWithPii(n,t,i)},n}();t.default=e},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n[n.Unknown=0]="Unknown";n[n.MSACID=1]="MSACID";n[n.MSAPUID=2]="MSAPUID";n[n.ANID=3]="ANID";n[n.OrgIdCID=4]="OrgIdCID";n[n.OrgIdPUID=5]="OrgIdPUID";n[n.UserObjectId=6]="UserObjectId";n[n.Skype=7]="Skype";n[n.Yammer=8]="Yammer";n[n.EmailAddress=9]="EmailAddress";n[n.PhoneNumber=10]="PhoneNumber";n[n.SipAddress=11]="SipAddress";n[n.MUID=12]="MUID"}(t.AWTUserIdType||(t.AWTUserIdType={}));!function(n){n[n.Started=0]="Started";n[n.Ended=1]="Ended"}(t.AWTSessionState||(t.AWTSessionState={}))},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(2),f=function(){function n(){}return n.initialize=function(n){var t=this;this.Se=n;this.Ae=!0;u.default.addNotificationListener({eventsSent:function(n){t.Ie("records_sent_count",n.length,n[0].apiKey)},eventsDropped:function(n){t.Ie("records_dropped_count",n.length,n[0].apiKey)},eventsRejected:function(n){t.Ie("r_count",n.length,n[0].apiKey)},eventsRetrying:null});setTimeout(function(){return t.flush()},6e4)},n.teardown=function(){this.Ae&&(this.flush(),this.Ae=!1)},n.eventReceived=function(t){n.Ie("records_received_count",1,t)},n.flush=function(){var t=this,n;if(this.Ae){for(n in this.Pe)this.Pe.hasOwnProperty(n)&&this.Se(this.Pe[n],n);this.Pe={};setTimeout(function(){return t.flush()},6e4)}},n.Ie=function(n,t,i){if(this.Ae&&i!==r.StatsApiKey){var u=r.getTenantId(i);this.Pe[u]||(this.Pe[u]={});this.Pe[u][n]=this.Pe[u][n]?this.Pe[u][n]+t:t}},n.Ae=!1,n.Pe={},n}();t.default=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),r=i(12),o=i(13),u=i(3),s=i(2),e=i(7),h=function(){function n(){}return n.initialize=function(n,t){if(void 0===t&&(t={}),!this.Ee)return this.Ee=!0,r.default.defaultTenantToken=n,this.We(t),this.T.disableCookiesUsage&&!this.T.propertyStorageOverride&&(r.default.sessionEnabled=!1),e.default.addPropertyStorageOverride(this.T.propertyStorageOverride),e.default.autoCollect(r.default.semanticContext,this.T.disableCookiesUsage,this.T.userAgent),u.default.initialize(this.T),r.default.loggingEnabled=!0,this.getLogger()},n.getSemanticContext=function(){return r.default.semanticContext},n.flush=function(n){this.Ee&&!this.Be&&u.default.flush(n)},n.flushAndTeardown=function(){this.Ee&&!this.Be&&(this.Be=!0,u.default.flushAndTeardown(),r.default.loggingEnabled=!1)},n.pauseTransmission=function(){u.default.pauseTransmission()},n.resumeTransmision=function(){u.default.resumeTransmision()},n.setTransmitProfile=function(n){u.default.setTransmitProfile(n)},n.loadTransmitProfiles=function(n){u.default.loadTransmitProfiles(n)},n.setContext=function(n,t,i){void 0===i&&(i=f.AWTPropertyType.Unspecified);r.default.logManagerContext.setProperty(n,t,i)},n.setContextWithPii=function(n,t,i,u){void 0===u&&(u=f.AWTPropertyType.Unspecified);r.default.logManagerContext.setPropertyWithPii(n,t,i,u)},n.getLogger=function(n){var t=n;return t&&t!==r.default.defaultTenantToken||(t=""),this.we[n]||(this.we[n]=new o.default(n)),this.we[n]},n.addNotificationListener=function(n){s.default.addNotificationListener(n)},n.We=function(n){n.collectorUri&&(this.T.collectorUri=n.collectorUri);n.cacheMemorySizeLimitInNumberOfEvents>0&&(this.T.cacheMemorySizeLimitInNumberOfEvents=n.cacheMemorySizeLimitInNumberOfEvents);n.httpXHROverride&&n.httpXHROverride.sendPOST&&(this.T.httpXHROverride=n.httpXHROverride);n.propertyStorageOverride&&n.propertyStorageOverride.getProperty&&n.propertyStorageOverride.setProperty&&(this.T.propertyStorageOverride=n.propertyStorageOverride);n.userAgent&&(this.T.userAgent=n.userAgent);n.disableCookiesUsage&&(this.T.disableCookiesUsage=n.disableCookiesUsage);n.canSendStatEvent&&(this.T.canSendStatEvent=n.canSendStatEvent)},n.we={},n.Ee=!1,n.Be=!1,n.T={collectorUri:"https://browser.pipe.aria.microsoft.com/Collector/3.0/",cacheMemorySizeLimitInNumberOfEvents:1e4,disableCookiesUsage:!1,canSendStatEvent:function(){return!0}},n}();t.default=h},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=i(8),f=function(){function n(){}return n.logManagerContext=new r.default,n.sessionEnabled=!0,n.loggingEnabled=!1,n.defaultTenantToken="",n.semanticContext=new u.default(!0,n.logManagerContext),n}();t.default=f},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),o=i(9),e=i(5),u=i(1),h=i(10),s=i(2),c=i(3),f=i(12),l=i(15),a=i(8),v=i(7),y=function(){function n(n){this.be=n;this.Oe=new e.default;this.$=new a.default(!1,this.Oe);this.Ce=0;this.De()}return n.prototype.setContext=function(n,t,i){void 0===i&&(i=r.AWTPropertyType.Unspecified);this.Oe.setProperty(n,t,i)},n.prototype.setContextWithPii=function(n,t,i,u){void 0===u&&(u=r.AWTPropertyType.Unspecified);this.Oe.setPropertyWithPii(n,t,i,u)},n.prototype.getSemanticContext=function(){return this.$},n.prototype.logEvent=function(t){if(f.default.loggingEnabled){this.be||(this.be=f.default.defaultTenantToken,this.De());var i=!0;t instanceof e.default&&(t=t.getEvent(),i=!1);h.default.eventReceived(this.be);n.Re(n.Ne(t,this.be),i,this.Oe)}},n.prototype.logSession=function(t,i){var e,s;if(f.default.sessionEnabled){if(e={name:"session",type:"session",properties:{}},n.Me(e,i),e.priority=r.AWTEventPriority.High,t===o.AWTSessionState.Started){if(this.Ce>0)return;this.Ce=(new Date).getTime();this.Ue=u.newGuid();this.setContext("Session.Id",this.Ue)}else{if(t!==o.AWTSessionState.Ended)return;if(0===this.Ce)return;s=Math.floor(((new Date).getTime()-this.Ce)/1e3);e.properties["Session.Id"]=this.Ue;e.properties["Session.Duration"]=s.toString();e.properties["Session.DurationBucket"]=n.ke(s);this.Ce=0;this.setContext("Session.Id",null);this.Ue=void 0}e.properties["Session.FirstLaunchTime"]=v.default.firstLaunchTime;e.properties["Session.State"]=t.toString();this.logEvent(e)}},n.prototype.getSessionId=function(){return this.Ue},n.prototype.logFailure=function(t,i,u,f,e){if(t&&i){var o={name:"failure",type:"failure",properties:{}};n.Me(o,e);o.properties["Failure.Signature"]=t;o.properties["Failure.Detail"]=i;u&&(o.properties["Failure.Category"]=u);f&&(o.properties["Failure.Id"]=f);o.priority=r.AWTEventPriority.High;this.logEvent(o)}},n.prototype.logPageView=function(t,i,r,u,f,e){if(t&&i){var o={name:"pageview",type:"pageview",properties:{}};n.Me(o,e);o.properties["PageView.Id"]=t;o.properties["PageView.Name"]=i;r&&(o.properties["PageView.Category"]=r);u&&(o.properties["PageView.Uri"]=u);f&&(o.properties["PageView.ReferrerUri"]=f);this.logEvent(o)}},n.prototype.De=function(){!n.xe[this.be]&&this.be&&(n.xe[this.be]=u.newGuid())},n.Me=function(n,t){if(t){t instanceof e.default&&(t=t.getEvent());t.name&&(n.name=t.name);t.priority&&(n.priority=t.priority);for(var i in t.properties)t.properties.hasOwnProperty(i)&&(n.properties[i]=t.properties[i])}},n.ke=function(n){return n<0?"Undefined":n<=3?"UpTo3Sec":n<=10?"UpTo10Sec":n<=30?"UpTo30Sec":n<=60?"UpTo60Sec":n<=180?"UpTo3Min":n<=600?"UpTo10Min":n<=1800?"UpTo30Min":"Above30Min"},n.Re=function(n,t,i){if(!n.name||!n.properties)return void s.default.eventsRejected([n],r.AWTEventsRejectedReason.InvalidEvent);if(n.name=n.name.toLowerCase(),n.name=n.name.replace(u.EventNameDotRegex,"_"),n.type=n.type?n.type.toLowerCase():"custom",!u.EventNameAndTypeRegex.test(n.name)||!u.EventNameAndTypeRegex.test(n.type))return void s.default.eventsRejected([n],r.AWTEventsRejectedReason.InvalidEvent);if(isNaN(n.timestamp)&&(n.timestamp=(new Date).getTime()),t&&n.properties)for(var e in n.properties)n.properties.hasOwnProperty(e)&&(n.properties[e]=u.sanitizeProperty(e,n.properties[e]),null===n.properties[e]&&delete n.properties[e]);n.properties||(n.properties={});this.Le(n,i.getPropertyMap());this.Le(n,f.default.logManagerContext.getPropertyMap());this.Fe(n,"EventInfo.InitId",this.ze(n.apiKey));this.Fe(n,"EventInfo.Sequence",this.qe(n.apiKey));this.Fe(n,"EventInfo.SdkVersion",l.FullVersionString);this.Fe(n,"EventInfo.Name",n.name);this.Fe(n,"EventInfo.Time",new Date(n.timestamp).toISOString());u.isPriority(n.priority)||(n.priority=r.AWTEventPriority.Normal);this.He(n)},n.Le=function(n,t){if(t)for(var i in t)t.hasOwnProperty(i)&&(n.properties[i]||(n.properties[i]=t[i]))},n.Fe=function(n,t,i){n.properties[t]={value:i,pii:r.AWTPiiKind.NotSet,type:r.AWTPropertyType.String}},n.He=function(n){c.default.sendEvent(n)},n.Ne=function(n,t){var i=n;return i.id=u.newGuid(),i.apiKey=t,i},n.ze=function(t){return n.xe[t]},n.qe=function(t){return void 0===n.je[t]&&(n.je[t]=0),(++n.je[t]).toString()},n.je={},n.xe={},n}();t.default=y},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AWT_REAL_TIME="REAL_TIME";t.AWT_NEAR_REAL_TIME="NEAR_REAL_TIME";t.AWT_BEST_EFFORT="BEST_EFFORT"},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Version="1.0.0";t.FullVersionString="AWT-Web-JS-"+t.Version},function(n,t,i){"use strict";var r,f,u,e,o,s,h,c,l;Object.defineProperty(t,"__esModule",{value:!0});r=i(0);t.AWTPropertyType=r.AWTPropertyType;t.AWTPiiKind=r.AWTPiiKind;t.AWTEventPriority=r.AWTEventPriority;t.AWTEventsDroppedReason=r.AWTEventsDroppedReason;t.AWTEventsRejectedReason=r.AWTEventsRejectedReason;f=i(9);t.AWTUserIdType=f.AWTUserIdType;t.AWTSessionState=f.AWTSessionState;u=i(14);t.AWT_BEST_EFFORT=u.AWT_BEST_EFFORT;t.AWT_NEAR_REAL_TIME=u.AWT_NEAR_REAL_TIME;t.AWT_REAL_TIME=u.AWT_REAL_TIME;e=i(5);t.AWTEventProperties=e.default;o=i(13);t.AWTLogger=o.default;s=i(11);t.AWTLogManager=s.default;h=i(29);t.AWTTransmissionManager=h.default;c=i(6);t.AWTSerializer=c.default;l=i(8);t.AWTSemanticContext=l.default;t.AWT_COLLECTOR_URL_UNITED_STATES="https://us.pipe.aria.microsoft.com/Collector/3.0/";t.AWT_COLLECTOR_URL_GERMANY="https://de.pipe.aria.microsoft.com/Collector/3.0/";t.AWT_COLLECTOR_URL_JAPAN="https://jp.pipe.aria.microsoft.com/Collector/3.0/";t.AWT_COLLECTOR_URL_AUSTRALIA="https://au.pipe.aria.microsoft.com/Collector/3.0/";t.AWT_COLLECTOR_URL_EUROPE="https://eu.pipe.aria.microsoft.com/Collector/3.0/"},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(n){n[n.Qe=0]="_BT_STOP";n[n.Ve=1]="_BT_STOP_BASE";n[n.V=2]="_BT_BOOL";n[n.G=8]="_BT_DOUBLE";n[n.N=9]="_BT_STRING";n[n.x=10]="_BT_STRUCT";n[n.M=11]="_BT_LIST";n[n.C=13]="_BT_MAP";n[n.j=16]="_BT_INT32";n[n.L=17]="_BT_INT64"}(t.D||(t.D={}))},function(n,t,i){"use strict";function u(n){for(var t,i=[],r=0;r<n.length;++r)t=n.charCodeAt(r),t<128?i.push(t):t<2048?i.push(192|t>>6,128|63&t):t<55296||t>=57344?i.push(224|t>>12,128|t>>6&63,128|63&t):(t=65536+((1023&t)<<10|1023&n.charCodeAt(++r)),i.push(240|t>>18,128|t>>12&63,128|t>>6&63,128|63&t));return i}function f(n){for(var u,f,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],e=n.length%3,r=0,o=n.length-e;r<o;r+=3)u=(n[r]<<16)+(n[r+1]<<8)+n[r+2],i.push(function(n){return[t.charAt(n>>18&63),t.charAt(n>>12&63),t.charAt(n>>6&63),t.charAt(63&n)].join("")}(u));switch(e){case 1:u=n[n.length-1];i.push(t.charAt(u>>2));i.push(t.charAt(u<<4&63));i.push("==");break;case 2:f=(n[n.length-2]<<8)+n[n.length-1];i.push(t.charAt(f>>10));i.push(t.charAt(f>>4&63));i.push(t.charAt(f<<2&63));i.push("=")}return i.join("")}function e(n){for(var t=[];4294967168&n;)t.push(127&n|128),n>>>=7;return t.push(127&n),t}function o(n){for(var t=n.low,i=n.high,r=[];i||4294967168&t;)r.push(127&t|128),t=(127&i)<<25|t>>>7,i>>>=7;return r.push(127&t),r}function s(n){var i,r,t;if(a.BrowserChecker.Ke()){for(i=new DataView(new ArrayBuffer(8)),i.setFloat64(0,n,!0),r=[],t=0;t<8;++t)r.push(i.getUint8(t));return r}return l.FloatUtils.Ge(n,!0)}function h(n){return(n=r.Number.B(n))<<1^n>>31}function c(n){var f=n.low,e=n.high,i=e<<1|f>>>31,u=f<<1,t;return 2147483648&e&&(i=~i,u=~u),t=new r.UInt64("0"),t.low=u,t.high=i,t}Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),l=i(19),a=i(22);t.Xe=u;t.Z=f;t.Ze=e;t.Je=o;t.Ye=s;t.$e=h;t.et=c},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.Ge=function(n,t){var u,c,y,f,s,e,d;if(!n)return t?this.tt:this.it;var w=t?11:8,p=t?52:23,o=(1<<w-1)-1,b=1-o,k=o,v=n<0?1:0;n=Math.abs(n);for(var h=Math.floor(n),l=n-h,a=2*(o+2)+p,r=new Array(a),i=0;i<a;)r[i++]=0;for(i=o+2;i&&h;)r[--i]=h%2,h=Math.floor(h/2);for(i=o+1;i<a-1&&l>0;)l*=2,l>=1?(r[++i]=1,--l):r[++i]=0;for(u=0;u<a&&!r[u];)u++;if(c=o+1-u,y=u+p,r[y+1]){for(i=y;i>u&&(r[i]=1-r[i],!r);--i);i===u&&++c}if(c>k||h)return v?t?this.nt:this.rt:t?this.ot:this.st;if(c<b)return t?this.tt:this.it;if(t){for(f=0,i=0;i<20;++i)f=f<<1|r[++u];for(s=0;i<52;++i)s=s<<1|r[++u];return f|=c+o<<20,f=v<<31|2147483647&f,[255&s,s>>8&255,s>>16&255,s>>>24,255&f,f>>8&255,f>>16&255,f>>>24]}for(e=0,i=0;i<23;++i)e=e<<1|r[++u];return e|=c+o<<23,e=v<<31|2147483647&e,[255&e,e>>8&255,e>>16&255,e>>>24]},n.it=[0,0,0,0],n.tt=[0,0,0,0,0,0,0,0],n.st=[0,0,128,127],n.rt=[0,0,128,255],n.ot=[0,0,0,0,0,0,240,127],n.nt=[0,0,0,0,0,0,240,255],n}();t.FloatUtils=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),u=function(){function n(){this.at=[]}return n.prototype.ut=function(n){this.at.push(r.Number.P(n))},n.prototype.dt=function(n,t,i){for(;i--;)this.ut(n[t++])},n.prototype.H=function(){return this.at},n}();t.MemoryStream=u},function(n,t,i){"use strict";var f,r,e,u,o;Object.defineProperty(t,"__esModule",{value:!0});f=i(17);t.D=f.D;r=i(18);t.J=r;e=i(20);t.IO=e;u=i(4);t.Int64=u.Int64;t.UInt64=u.UInt64;t.Number=u.Number;o=function(){function n(n){this.lt=n}return n.prototype.z=function(n){this.lt.dt(n,0,n.length)},n.prototype.K=function(n){this.lt.ut(n?1:0)},n.prototype.k=function(n,t){this._t(t);this.ct(n)},n.prototype.R=function(n,t,i){this._t(t);this._t(i);this.ct(n)},n.prototype.X=function(n){var t=r.Ye(n);this.lt.dt(t,0,t.length)},n.prototype.O=function(n,t){t<=5?this.lt.ut(n|t<<5):t<=255?(this.lt.ut(192|n),this.lt.ut(t)):(this.lt.ut(224|n),this.lt.ut(t),this.lt.ut(t>>8))},n.prototype.Q=function(n){n=r.$e(n);this.ct(n)},n.prototype.F=function(n){this.pt(r.et(n))},n.prototype.U=function(n){if(""===n)this.ct(0);else{var t=r.Xe(n);this.ct(t.length);this.lt.dt(t,0,t.length)}},n.prototype.q=function(n){this._t(n?f.D.Ve:f.D.Qe)},n.prototype.ct=function(n){var t=r.Ze(u.Number.w(n));this.lt.dt(t,0,t.length)},n.prototype.pt=function(n){var t=r.Je(n);this.lt.dt(t,0,t.length)},n.prototype._t=function(n){this.lt.ut(u.Number.W(n))},n}();t.CompactBinaryProtocolWriter=o},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.Ke=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},n}();t.BrowserChecker=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){this.ft=!0;this.ht=!0;this.vt=!0;this.yt="use-collector-delta";this.Tt=!1}return n.prototype.allowRequestSending=function(){return this.vt?(this.vt=!1,this.ft=!1,!0):this.ft},n.prototype.shouldAddClockSkewHeaders=function(){return this.ht},n.prototype.getClockSkewHeaderValue=function(){return this.yt},n.prototype.setClockSkew=function(n){this.Tt||(n?this.yt=n:this.ht=!1,this.Tt=!0,this.ft=!0)},n}();t.default=i},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){this.gt={}}return n.prototype.setKillSwitchTenants=function(n,t){var i,u,r;if(n&&t)try{if(i=n.split(","),"this-request-only"===t)return i;for(u=1e3*parseInt(t,10),r=0;r<i.length;++r)this.gt[i[r]]=Date.now()+u}catch(n){return[]}return[]},n.prototype.isTenantKilled=function(n){return void 0!==this.gt[n]&&this.gt[n]>Date.now()||(delete this.gt[n],!1)},n}();t.default=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(0),f=function(){function n(n,t){this.mt=n;this.St=t;this.At={};this.It=0}return n.prototype.addEventToBatch=function(n){n.serializedEvent.length>this.mt?r.default.eventsRejected([n],u.AWTEventsRejectedReason.SizeLimitExceeded):(this.It+n.serializedEvent.length>this.mt&&this.flushBatch(),void 0===this.At[n.apiKey]&&(this.At[n.apiKey]=[]),this.At[n.apiKey].push(n),this.It+=n.serializedEvent.length)},n.prototype.flushBatch=function(){this.It>0&&(this.St.push(this.At),this.At={},this.It=0)},n.prototype.hasBatch=function(){return this.It>0},n}();t.default=f},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.shouldRetryForStatus=function(n){return!(n>=300&&n<500&&408!==n||501===n||505===n)},n.getMillisToBackoffForRetry=function(n){var t=0,i=Math.floor(1200*Math.random())+2400;return t=Math.pow(4,n)*i,Math.min(t,12e4)},n}();t.default=i},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=i(0),o=i(6),s=i(26),c=i(24),l=i(23),a=i(15),u=i(1),r=i(2),e=i(3),h="POST",v=function(){function n(n,t,i,r){var f=this;this.Pt=n;this.Et=i;this.Wt=r;this.Bt="?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version="+a.FullVersionString;this.wt=new c.default;this._=!1;this.bt=new l.default;this.Ot=!1;this.Ct=0;u.isUint8ArrayAvailable()||(this.Bt+="&content-encoding=base64");this.Bt=t+this.Bt;this.Wt||(this.Ot=!0,this.Wt={sendPOST:function(n,t,i,r,e,o){var c,s;u.useXDomainRequest()?(c=new XDomainRequest,c.open(h,n),c.onload=function(){e(200,null)},c.onerror=function(){r(400,null)},c.ontimeout=function(){i(500,null)},c.send(t)):(s=new XMLHttpRequest,s.open(h,n,!o),s.onload=function(){e(s.status,f.Dt(s.getAllResponseHeaders()))},s.onerror=function(){r(s.status,f.Dt(s.getAllResponseHeaders()))},s.ontimeout=function(){i(s.status,f.Dt(s.getAllResponseHeaders()))},s.send(t))}})}return n.prototype.hasIdleConnection=function(){return this.Ct<2},n.prototype.sendQueuedRequests=function(){for(;this.hasIdleConnection()&&!this._&&this.Pt.length>0&&this.bt.allowRequestSending();)this.Ct++,this.Rt(this.Pt.pop(),0,!1);this.hasIdleConnection()&&e.default.scheduleTimer()},n.prototype.isCompletelyIdle=function(){return 0===this.Ct},n.prototype.flush=function(){for(;this.Pt.length>0;)this.Rt(this.Pt.pop(),0,!0)},n.prototype.pause=function(){this._=!0},n.prototype.resume=function(){this._=!1;this.sendQueuedRequests()},n.prototype.removeQueuedRequests=function(){this.Pt.length=0},n.prototype.Rt=function(n,t,i){var a=this,s,e,h,v,c,l;if(this._)return this.Ct--,void this.Et.addBackRequest(n);s=0;e="";for(h in n)n.hasOwnProperty(h)&&(this.wt.isTenantKilled(h)?(r.default.eventsDropped(n[h],f.AWTEventsDroppedReason.KillSwitch),delete n[h]):(e.length>0&&(e+=","),e+=h,s++));s>0?(v=o.default.getPayloadBlob(n,s),c=this.Bt+"&x-apikey="+e+"&client-time-epoch-millis="+Date.now().toString(),this.bt.shouldAddClockSkewHeaders()&&(c=c+"&time-delta-to-apply-millis="+this.bt.getClockSkewHeaderValue()),l=void 0,l=u.isUint8ArrayAvailable()?new Uint8Array(v):o.default.base64Encode(v),this.Ot&&i&&u.isBeaconsSupported()?navigator.sendBeacon(c,l):this.Wt.sendPOST(c,l,function(i,r){a.Nt(i,r,n,s,e,t)},function(i,r){a.Nt(i,r,n,s,e,t)},function(i,r){a.Nt(i,r,n,s,e,t)},!1)):i||this.Mt(null,{})},n.prototype.Nt=function(n,t,i,u,o,h){var y=this,v=!0,l,c,a;if(void 0!==n){if(t)for(l=this.wt.setKillSwitchTenants(t["kill-tokens"],t["kill-duration-seconds"]),this.bt.setClockSkew(t["time-delta-millis"]),c=0;c<l.length;++c)r.default.eventsDropped(i[l[c]],f.AWTEventsDroppedReason.KillSwitch),delete i[l[c]],u--;else this.bt.setClockSkew(null);if(200===n)return void this.Mt(!0,i);(!s.default.shouldRetryForStatus(n)||u<=0)&&(v=!1)}if(v)if(h<1){for(a in i)i.hasOwnProperty(a)&&r.default.eventsRetrying(i[a]);setTimeout(function(){return y.Rt(i,h+1,!1)},s.default.getMillisToBackoffForRetry(h))}else this.Ct--,e.default.backOffTransmission(),this.Et.addBackRequest(i);else this.Mt(!1,i)},n.prototype.Mt=function(n,t){n&&e.default.clearBackOff();for(var i in t)t.hasOwnProperty(i)&&(n?r.default.eventsSent(t[i]):r.default.eventsDropped(t[i],f.AWTEventsDroppedReason.NonRetryableStatus));this.Ct--;this.sendQueuedRequests()},n.prototype.Dt=function(n){for(var i,r={},u=n.split("\n"),t=0;t<u.length;++t)i=u[t].split(": "),r[i[0]]=i[1];return r},n}();t.default=v},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),f=i(27),u=i(3),e=i(25),o=i(6),s=i(2),h=2936012,c=function(){function n(n,t,i){this.Ut=t;this.kt=!1;this.xt=[];this.Lt=!1;this._=!1;this.Ft=0;this.St=[];this.zt={};this.zt[r.AWTEventPriority.High]=[];this.zt[r.AWTEventPriority.Normal]=[];this.zt[r.AWTEventPriority.Low]=[];this.qt();this.Ht=new e.default(h,this.St);this.jt=new f.default(this.St,n,this,i)}return n.prototype.addEvent=function(n){this.Ft<this.Ut?this._&&this.Lt||(this.Ft++,this.zt[n.priority][this.zt[n.priority].length-1].push(n)):s.default.eventsDropped([n],r.AWTEventsDroppedReason.QueueFull)},n.prototype.sendEventsForPriorityAndAbove=function(n){this.Qt(n);this.jt.sendQueuedRequests()},n.prototype.hasEvents=function(){return(this.zt[r.AWTEventPriority.High][0].length>0||this.zt[r.AWTEventPriority.Normal][0].length>0||this.zt[r.AWTEventPriority.Low][0].length>0||this.Ht.hasBatch())&&this.jt.hasIdleConnection()},n.prototype.addBackRequest=function(n){var t,i;if(!this._||!this.Lt){for(t in n)if(n.hasOwnProperty(t))for(i=0;i<n[t].length;++i)this.addEvent(n[t][i]);u.default.scheduleTimer()}},n.prototype.teardown=function(){this._||(this.Qt(r.AWTEventPriority.Low),this.jt.flush())},n.prototype.uploadNow=function(n){var t=this;this.qt();this.kt?this.xt.push(n):(this.kt=!0,setTimeout(function(){return t.Vt(n)},0))},n.prototype.pauseTransmission=function(){this._=!0;this.jt.pause();this.shouldDropEventsOnPause&&(this.Ft-=this.zt[r.AWTEventPriority.High][0].length+this.zt[r.AWTEventPriority.Normal][0].length+this.zt[r.AWTEventPriority.Low][0].length,this.zt[r.AWTEventPriority.High][0]=[],this.zt[r.AWTEventPriority.Normal][0]=[],this.zt[r.AWTEventPriority.Low][0]=[],this.jt.removeQueuedRequests())},n.prototype.resumeTransmission=function(){this._=!1;this.jt.resume()},n.prototype.shouldDropEventsOnPause=function(n){this.Lt=n},n.prototype.Kt=function(){this.zt[r.AWTEventPriority.High].shift();this.zt[r.AWTEventPriority.Normal].shift();this.zt[r.AWTEventPriority.Low].shift()},n.prototype.qt=function(){this.zt[r.AWTEventPriority.High].push([]);this.zt[r.AWTEventPriority.Normal].push([]);this.zt[r.AWTEventPriority.Low].push([])},n.prototype.Qt=function(n){for(var i,t=r.AWTEventPriority.High;t>=n;){for(;this.zt[t][0].length>0;)i=this.zt[t][0].pop(),this.Ft--,i.serializedEvent||(i.serializedEvent=o.default.getEventBlob(i)),this.Ht.addEventToBatch(i);t--}this.Ht.flushBatch()},n.prototype.Vt=function(n){var t=this;this.hasEvents()&&this.sendEventsForPriorityAndAbove(r.AWTEventPriority.Low);this.Gt(function(){t.Kt();null!==n&&void 0!==n&&n();t.xt.length>0?setTimeout(function(){return t.Vt(t.xt.shift())},0):(t.kt=!1,t.hasEvents()&&u.default.scheduleTimer())})},n.prototype.Gt=function(n){var t=this;this.jt.isCompletelyIdle()?n():setTimeout(function(){return t.Gt(n)},250)},n}();t.default=c},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=function(){function n(){}return n.setEventsHandler=function(n){r.default.setEventsHandler(n)},n.getEventsHandler=function(){return r.default.getEventsHandler()},n.scheduleTimer=function(){r.default.scheduleTimer()},n}();t.default=u},function(n,t,i){n.exports=i(16)}])});typeof ariaTestTraffic!="undefined"&&ariaTestTraffic&&typeof AWTLogManager=="function"&&typeof AWTEventProperties=="function"&&(window.AWTLogManager={},window.AWTLogManager.initialize=function(n,t){console.log(n);console.log(t)},window.AWTLogManager.getLogger=function(n){var t=function(t){console.log(n);console.log(t)};return{logEvent:t}},window.AWTEventProperties=function(){var n,t,i;return this.setName=function(t){this.eventName=t;console.log(n)},this.setProperty=function(n,r){this.eventKey=n;this.eventValue=r;console.log(t+":"+i)},this});AWTLogManager.initialize(ariaToken,{disableCookiesUsage:typeof OOGlobal=="undefined"||typeof OOGlobal.IsCookieConsentRequired=="undefined"?!1:OOGlobal.IsCookieConsentRequired&&(typeof mscc=="undefined"||!mscc.hasConsent())});var LoggingEvents={pageLoad:"Page_Load",clientError:"Client_Error"},PageTypes={landingPage:"Landing_Page",searchResults:"Search_Results",pageNotFound:"Page_Not_Found",serviceError:"Service_Error"},EventProperties={eventType:"Event_Type"},ErrorEventProperties={errorEvent:"Error",errorMessage:"Error_Message",errorSourceUrl:"Error_Source_URL",errorSourceHostAndPathName:"Error_Source_Host_And_Path_Name",lineNumber:"Line_Number"},ClientSideLogging={ariaLogger:AWTLogManager.getLogger(ariaToken),pageKeyValues:[],eventKeyValues:[],addPageProperty:function(n,t){this.pageKeyValues.push({key:n,value:t})},addEventProperty:function(n,t){this.eventKeyValues.push({key:n,value:t})},sendEvent:function(n){var i=this.pageKeyValues.concat(this.eventKeyValues),r=new AWTEventProperties,t;for(r.setName(n),t=0;t<i.length;t++)r.setProperty(i[t].key,i[t].value);this.ariaLogger.logEvent(r);this.eventKeyValues=[]},logError:function(n,t,i){return!t||!n||(this.addEventProperty(EventProperties.eventType,ErrorEventProperties.error),this.addEventProperty(ErrorEventProperties.errorMessage,n),this.addEventProperty(ErrorEventProperties.errorSourceUrl,t),this.addEventProperty(ErrorEventProperties.errorSourceHostAndPathName,t.split("?")[0]),this.addEventProperty(ErrorEventProperties.lineNumber,i),this.sendEvent(LoggingEvents.clientError)),!0},addListeners:function(){var n=function(n){ClientSideLogging.logError(n.message,n.filename,n.lineno)},t=function(){ClientSideLogging.sendEvent(LoggingEvents.pageLoad)};window.addEventListener?(window.addEventListener("error",n),window.addEventListener("load",t)):window.attachEvent&&(window.attachEvent("error",n),window.attachEvent("load",t))}},PageProperties={ieDocumentMode:"IE_Doc_Mode",pageType:"Page_Type",pageCulture:"Page_Culture",pageUrl:"Page_Url",referrer:"Referrer",helpViewer:"Help_Viewer",region:"Machine_Region",machineId:"Machine_ID",build:"Site_Build"},HelpViewers={client:"Client",web:"Web"};ClientSideLogging.setPageProperties=function(n){this.addPageProperty(PageProperties.ieDocumentMode,document.documentMode?document.documentMode:"N/A");this.addPageProperty(PageProperties.pageCulture,n.cultureName);this.addPageProperty(PageProperties.pageUrl,window.location.href);this.addPageProperty(PageProperties.referrer,document.referrer);this.addPageProperty(PageProperties.helpViewer,n.helpViewer);this.addPageProperty(PageProperties.machineId,n.machineId);this.addPageProperty(PageProperties.region,n.region);this.addPageProperty(PageProperties.build,n.build)}