@microsoft/1ds-core-js 3.1.10 → 3.1.11
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/README.md +1 -1
- package/bundle/{ms.core-3.1.10.gbl.js → ms.core-3.1.11.gbl.js} +152 -103
- package/bundle/ms.core-3.1.11.gbl.js.map +1 -0
- package/bundle/ms.core-3.1.11.gbl.min.js +7 -0
- package/bundle/ms.core-3.1.11.gbl.min.js.map +1 -0
- package/bundle/ms.core-3.1.11.integrity.json +46 -0
- package/bundle/{ms.core-3.1.10.js → ms.core-3.1.11.js} +152 -103
- package/bundle/ms.core-3.1.11.js.map +1 -0
- package/bundle/ms.core-3.1.11.min.js +7 -0
- package/bundle/ms.core-3.1.11.min.js.map +1 -0
- package/bundle/ms.core.gbl.js +151 -102
- package/bundle/ms.core.gbl.js.map +1 -1
- package/bundle/ms.core.gbl.min.js +2 -2
- package/bundle/ms.core.gbl.min.js.map +1 -1
- package/bundle/ms.core.integrity.json +17 -17
- package/bundle/ms.core.js +151 -102
- package/bundle/ms.core.js.map +1 -1
- package/bundle/ms.core.min.js +2 -2
- package/bundle/ms.core.min.js.map +1 -1
- package/dist/ms.core.js +7 -3
- package/dist/ms.core.js.map +1 -1
- package/dist/ms.core.min.js +2 -2
- package/dist/ms.core.min.js.map +1 -1
- package/dist-esm/src/AppInsightsCore.js +1 -1
- package/dist-esm/src/BaseCore.d.ts +0 -8
- package/dist-esm/src/BaseCore.js +2 -2
- package/dist-esm/src/BaseCore.js.map +1 -1
- package/dist-esm/src/DataModels.js +1 -1
- package/dist-esm/src/ESPromise.js +1 -1
- package/dist-esm/src/ESPromiseScheduler.js +1 -1
- package/dist-esm/src/Enums.js +1 -1
- package/dist-esm/src/Index.js +1 -1
- package/dist-esm/src/Utils.d.ts +5 -4
- package/dist-esm/src/Utils.js +11 -3
- package/dist-esm/src/Utils.js.map +1 -1
- package/dist-esm/src/ValueSanitizer.js +1 -1
- package/package.json +2 -2
- package/src/BaseCore.ts +1 -1
- package/src/Utils.ts +11 -2
- package/bundle/ms.core-3.1.10.gbl.js.map +0 -1
- package/bundle/ms.core-3.1.10.gbl.min.js +0 -7
- package/bundle/ms.core-3.1.10.gbl.min.js.map +0 -1
- package/bundle/ms.core-3.1.10.integrity.json +0 -46
- package/bundle/ms.core-3.1.10.js.map +0 -1
- package/bundle/ms.core-3.1.10.min.js +0 -7
- package/bundle/ms.core-3.1.10.min.js.map +0 -1
package/dist/ms.core.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK Core, 3.1.
|
|
2
|
+
* 1DS JS SDK Core, 3.1.11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
6
|
-
var e=this,n=function(e,r,f,t){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var c=o(t),a={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},m={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},i={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},v=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),t="3.1.10",h="1DS-Web-JS-"+t,s="withCredentials",l=((n={})[0]=i.Unspecified,n[2]=i.Double,n[1]=i.String,n[3]=i.Bool,n[4098]=i.Double,n[4097]=i.String,n[4099]=i.Bool,n),S=null,y=!!f.getDocument(),n=!!f.getWindow();function g(e){return!(""===e||f.isNullOrUndefined(e))}function C(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function I(){return S=null===S?!f.isUndefined(Uint8Array)&&!function(){var e=f.getNavigator();if(!f.isUndefined(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!f.isReactNative():S}function E(e){return!!(e&&f.isNumber(e)&&m.Normal<=e&&e<=m.Immediate)}function P(e,n,t){if(!n&&!g(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!L(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!U(n.kind))return null;n.value=n.value.toString()}return n}function w(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=l[p(e)]||-1,-1!==r&&-1!==n?r|=n:n===i.Double&&(r=n))),r}function O(){f.safeGetCookieMgr(null).setEnabled(!1)}function N(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function A(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function T(e){return f.areCookiesSupported(null)?j(f.safeGetCookieMgr(null),e):""}function j(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function F(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function D(e,n,t,u,d){var r={},i=!1,o=0,a=arguments.length,s=Object[f.strPrototype],l=arguments;for("[object Boolean]"===s.toString.call(l[0])&&(i=l[0],o++);o<a;o++)f.objForEachKey(l[o],function(t,e){i&&e&&f.isObject(e)?f.isArray(e)?(r[t]=r[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?r[t][n]=D(!0,r[t][n],e):r[t][n]=e})):r[t]=D(!0,r[t],e):r[t]=e});return r}var k=f.perfNow;function U(e){return e===a.NotSet||e>a.NotSet&&e<=a.Pii_IPV4AddressLegacy||e===a.CustomerContent_GenericContent}function L(e){return 0<e.length}function R(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=k()}function p(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=p(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|p(e.value)))),t}var V,M={Version:t,FullVersionString:h,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:y,isWindowObjectAvailable:n,isValueAssigned:g,getTenantId:C,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:I,isLatency:E,sanitizeProperty:P,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:w,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:N,deleteCookie:A,getCookie:T,createGuid:F,extend:D,getTime:k,isValueKind:U,isArrayValid:L,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:R,addEventHandler:f.addEventHandler,getFieldValueType:p,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},x={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:O,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},_="version",B="properties",G=(V=f.AppInsightsCore,r.__extendsFn(H,V),H);function H(){var e=V.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",c(H,e,function(s,l){s.logger&&s.logger.queue||(s.logger=new f.DiagnosticLogger({loggingLevelConsole:f.LoggingSeverity.CRITICAL})),s.initialize=function(r,i,o,a){f.doPerf(s,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&f.arrForEach(r.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))})})}s.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&f.arrForEach(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))}),s.pluginVersionString=s.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),s.pollInternalLogs("InternalLog")}catch(t){var e=s.logger,n=f.dumpObj(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(f.LoggingSeverity.CRITICAL,v.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},s.track=function(t){f.doPerf(s,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=k(),E(n.latency)||(n.latency=m.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=h,(e=n.baseData=n.baseData||{})[B]||(e[B]={}),(e=e[B])[_]||(e[_]=""),""!==s.pluginVersionString&&(e[_]=s.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}z=f.BaseCore,r.__extendsFn(W,z);var z,K=W;function W(){var e=z.call(this)||this;return c(W,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return y?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,v.FailedToInitializeSDK,"Initialization Failed: "+f.dumpObj(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=h),a.track(e)}}),e}var u=f.isFunction,q=(d.resolve=function(r){return r instanceof d?r:r&&u(r.then)?new d(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new d(function(e){e(r)})},d.reject=function(t){return new d(function(e,n){n(t)})},d.all=function(s){if(s&&s.length)return new d(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&u(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},d.race=function(i){return new d(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&u(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},d);function d(e){var a=0,s=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?u(t)?t(s):s:u(r)?r(s):s)instanceof d?e.then(i,o):(2!==a||u(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=2,l())}if(c(d,this,function(n){n.then=function(t,r){return new d(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!u(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(s=e,a=1,l())},t)}catch(r){t(r)}}var J=0,X=[],b=[],Q=[];function Z(){return(new Date).getTime()}$.incomplete=function(){return X},$.waitingToStart=function(){return b};var Y=$;function $(e,n){var v=0,h=(e||"<unnamed>")+"."+J;function S(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function y(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}J++,c($,this,function(e){var g=null,p=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(r,e,s){var i,o,n,a=h+"."+p,e=(p++,e&&(a+="-("+e+")"),a+"{"+v+"}"),t=(v++,{evt:null,tm:Z(),id:e,isRunning:!1,isAborted:!1});return t.evt=g?(i=t,o=g,n=new q(function(n,t){var e=Z()-o.tm,r=o.id;S("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+b.length+"] waiting and ["+X.length+"] running"),i.abort=function(e){i.abort=null,m(b,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){m(b,a),d(i).then(n,t)},function(e){m(b,a),d(i).then(n,t)})}),b.push(i),n):d(t),(g=t).evt._schId=e,t.evt;function l(e){for(var n=Z(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",y(o),e.splice(i,1),r--):i++}}function u(e,n){var t,r=!1,i=m(X,e);i||(i=m(Q,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=Z()-i.tm,n?r?y("Timed out event ["+e+"] finally complete -- "+t+" ms"):S("Promise ["+e+"] Complete -- "+t+" ms"):(Q.push(i),y("Event ["+e+"] Timed out and removed -- "+t+" ms"))):S("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(X),l(b),l(Q)}function c(n,t){return function(e){return u(n,!0),t&&t(e),e}}function f(r,o){var a=r.id;return new q(function(n,t){S("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,u(a,!1),t(Error(e))};var e=o(a);e instanceof q?(s&&(r.to=setTimeout(function(){u(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof q?(S("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):c(n,t)(e)},c(n,r))}(a,e,function(e){S("Event ["+a+"] Resolving after "+(Z()-r.tm)+" ms"),n(e)},t)):(S("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function d(e){var n=Z();return e.wTm=n-e.tm,e.tm=n,e.isAborted?q.reject(Error("["+a+"] was aborted")):(X.push(e),f(e,r))}}})}ne.getFieldType=p;var ee=ne;function ne(e){var u=this,o={},a=[],s=[];function l(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!U(i.kind))return null;i.value=i.value.toString()}return function l(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;g(n)&&(t=c(0,0,n),(t=l(i,r,e,p(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(u,{path:o,name:a,type:e,prop:n,sanitizer:u})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return g(t)?{value:t}:null}e&&s.push(e),u.addSanitizer=function(e){e&&(a.push(e),o={})},u.addFieldSanitizer=function(e){e&&(s.push(e),o={})},u.handleField=function(e,n){e=l(e,n);return!!e&&e.canHandle},u.value=function(e,n,t,r){var i=l(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=p(t);if(8192==(8192&a)){var s=-8193&a;if(!g((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},u.property=function(e,n,t,r){var i=l(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!g(t.value))return null;var o=p(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.InternalAppInsightsCore=f.AppInsightsCore,e.InternalBaseCore=f.BaseCore,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e._InternalLogMessage=f._InternalLogMessage,e._InternalMessageId=f._InternalMessageId,e.addEventHandler=f.addEventHandler,e.addEventListeners=f.addEventListeners,e.addPageHideEventListener=f.addPageHideEventListener,e.addPageShowEventListener=f.addPageShowEventListener,e.addPageUnloadEventListener=f.addPageUnloadEventListener,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBeaconsSupported=f.isBeaconsSupported,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFetchSupported=f.isFetchSupported,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isXhrSupported=f.isXhrSupported,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.useXDomainRequest=f.useXDomainRequest,e.AppInsightsCore=G,e.BaseCore=K,e.CoreUtils=x,e.ESPromise=q,e.ESPromiseScheduler=Y,e.EventLatency=m,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=i,e.FullVersionString=h,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=M,e.ValueKind=a,e.ValueSanitizer=ee,e.Version=t,e._ExtendedInternalMessageId=v,e.createGuid=F,e.deleteCookie=A,e.disableCookies=O,e.extend=D,e.getCommonSchemaMetaData=w,e.getCookie=T,e.getCookieValue=j,e.getFieldValueType=p,e.getTenantId=C,e.getTime=k,e.isArrayValid=L,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=y,e.isLatency=E,e.isUint8ArrayAvailable=I,e.isValueAssigned=g,e.isValueKind=U,e.isWindowObjectAvailable=n,e.openXhr=function(e,n,t,r,i){function o(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&o(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&o(a,s,t),a.open(e,n,!i),t&&o(a,s,t),a},e.sanitizeProperty=P,e.setCookie=N,e.setProcessTelemetryTimings=R;G=e,K="__esModule",x={value:!0},Y=Object.defineProperty;if(Y)try{return void Y(G,K,x)}catch(te){}typeof x.value!==undefined&&(G[K]=x.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto);
|
|
6
|
+
var e=this,n=function(e,r,f,n){"use strict";function R(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=R(n),t={NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32},i={Normal:1,CostDeferred:2,RealTime:3,Immediate:4},a={Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9},u=r.__assignFn(r.__assignFn({},f._InternalMessageId),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),n="3.1.11",d="1DS-Web-JS-"+n,V="withCredentials",M=((c={})[0]=a.Unspecified,c[2]=a.Double,c[1]=a.String,c[3]=a.Bool,c[4098]=a.Double,c[4097]=a.String,c[4099]=a.Bool,c),s=null,l=!!f.getDocument(),c=!!f.getWindow();function g(e){return!(""===e||f.isNullOrUndefined(e))}function x(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}function _(){return s=null===s?!f.isUndefined(Uint8Array)&&!function(){var e=f.getNavigator();if(!f.isUndefined(e)&&e.userAgent)return!~(e=e.userAgent.toLowerCase()).indexOf("safari")&&!~e.indexOf("firefox")||~e.indexOf("chrome")?void 0:1}()&&!f.isReactNative():s}function p(e){return!!(e&&f.isNumber(e)&&i.Normal<=e&&e<=i.Immediate)}function B(e,n,t){if(!n&&!g(n)||"string"!=typeof e)return null;e=typeof n;if("string"==e||"number"==e||"boolean"==e||f.isArray(n))n={value:n};else if("object"!=e||n.hasOwnProperty("value")){if(f.isNullOrUndefined(n.value)||""===n.value||!f.isString(n.value)&&!f.isNumber(n.value)&&!f.isBoolean(n.value)&&!f.isArray(n.value))return null}else n={value:t?JSON.stringify(n):n};if(f.isArray(n.value)&&!S(n.value))return null;if(!f.isNullOrUndefined(n.kind)){if(f.isArray(n.value)||!h(n.kind))return null;n.value=n.value.toString()}return n}function G(e,n,t){var r=-1;return f.isUndefined(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=M[y(e)]||-1,-1!==r&&-1!==n?r|=n:n===a.Double&&(r=n))),r}function H(){f.safeGetCookieMgr(null).setEnabled(!1)}function z(e,n,t){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).set(e,n,86400*t,null,"/")}function K(e){f.areCookiesSupported(null)&&f.safeGetCookieMgr(null).del(e)}function W(e){return f.areCookiesSupported(null)?q(f.safeGetCookieMgr(null),e):""}function q(e,n,t){var r;return void 0===t&&(t=!0),e&&(r=e.get(n),t&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function J(e){void 0===e&&(e="D");var n=f.newGuid();return"B"===e?n="{"+n+"}":"P"===e?n="("+n+")":"N"===e&&(n=n.replace(/-/g,"")),n}function m(e,n,t,r,i){var o={},a=!1,s=0,l=arguments.length,u=Object[f.strPrototype],d=arguments;for("[object Boolean]"===u.toString.call(d[0])&&(a=d[0],s++);s<l;s++)f.objForEachKey(d[s],function(t,e){a&&e&&f.isObject(e)?f.isArray(e)?(o[t]=o[t]||[],f.arrForEach(e,function(e,n){e&&f.isObject(e)?o[t][n]=m(!0,o[t][n],e):o[t][n]=e})):o[t]=m(!0,o[t],e):o[t]=e});return o}var v=f.perfNow;function h(e){return e===t.NotSet||e>t.NotSet&&e<=t.Pii_IPV4AddressLegacy||e===t.CustomerContent_GenericContent}function S(e){return 0<e.length}function X(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=v()}function y(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===r.strShimObject&&(t=4,f.isArray(e)?(t=4096,0<e.length&&(t|=y(e[0]))):f.hasOwnProperty(e,"value")&&(t=8192|y(e.value)))),t}var b,Q={Version:n,FullVersionString:d,strUndefined:f.strUndefined,strObject:f.strObject,Undefined:f.strUndefined,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,objKeys:f.objKeys,toISOString:f.toISOString,isReactNative:f.isReactNative,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,isFunction:f.isFunction,isArray:f.isArray,isObject:f.isObject,strTrim:f.strTrim,isDocumentObjectAvailable:l,isWindowObjectAvailable:c,isValueAssigned:g,getTenantId:x,isBeaconsSupported:f.isBeaconsSupported,isUint8ArrayAvailable:_,isLatency:p,sanitizeProperty:B,getISOString:f.toISOString,useXDomainRequest:f.useXDomainRequest,getCommonSchemaMetaData:G,cookieAvailable:f.areCookiesSupported,disallowsSameSiteNone:f.uaDisallowsSameSiteNone,setCookie:z,deleteCookie:K,getCookie:W,createGuid:J,extend:m,getTime:v,isValueKind:h,isArrayValid:S,objDefineAccessors:f.objDefineAccessors,addPageUnloadEventListener:f.addPageUnloadEventListener,setProcessTelemetryTimings:X,addEventHandler:f.addEventHandler,getFieldValueType:y,strEndsWith:f.strEndsWith,objForEachKey:f.objForEachKey},C={_canUseCookies:undefined,isTypeof:f.isTypeof,isUndefined:f.isUndefined,isNullOrUndefined:f.isNullOrUndefined,hasOwnProperty:f.hasOwnProperty,isFunction:f.isFunction,isObject:f.isObject,isDate:f.isDate,isArray:f.isArray,isError:f.isError,isString:f.isString,isNumber:f.isNumber,isBoolean:f.isBoolean,toISOString:f.toISOString,arrForEach:f.arrForEach,arrIndexOf:f.arrIndexOf,arrMap:f.arrMap,arrReduce:f.arrReduce,strTrim:f.strTrim,objCreate:r.objCreateFn,objKeys:f.objKeys,objDefineAccessors:f.objDefineAccessors,addEventHandler:f.addEventHandler,dateNow:f.dateNow,isIE:f.isIE,disableCookies:H,newGuid:f.newGuid,perfNow:f.perfNow,newId:f.newId,randomValue:f.randomValue,random32:f.random32,mwcRandomSeed:f.mwcRandomSeed,mwcRandom32:f.mwcRandom32,generateW3CId:f.generateW3CId},I="version",E="properties",P=(b=f.AppInsightsCore,r.__extendsFn(w,b),w);function w(){var e=b.call(this)||this;return e.pluginVersionStringArr=[],e.pluginVersionString="",o(w,e,function(s,l){s.logger&&s.logger.queue||(s.logger=new f.DiagnosticLogger({loggingLevelConsole:f.LoggingSeverity.CRITICAL})),s.initialize=function(r,i,o,a){f.doPerf(s,function(){return"AppInsightsCore.initialize"},function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var e=r.propertyStorageOverride;if(e&&(!e.getProperty||!e.setProperty))throw Error("Invalid property storage override passed.");r.channels&&f.arrForEach(r.channels,function(e){e&&f.arrForEach(e,function(e){e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))})})}s.getWParam=function(){return"undefined"!=typeof document?0:-1},i&&f.arrForEach(i,function(e){e&&e.identifier&&e.version&&(e=e.identifier+"="+e.version,s.pluginVersionStringArr.push(e))}),s.pluginVersionString=s.pluginVersionStringArr.join(";");try{l.initialize(r,i,o,a),s.pollInternalLogs("InternalLog")}catch(t){var e=s.logger,n=f.dumpObj(t);~n.indexOf("channels")&&(n+="\n - Channels must be provided through config.channels only!"),e.throwInternal(f.LoggingSeverity.CRITICAL,u.FailedToInitializeSDK,"SDK Initialization Failed - no telemetry will be sent: "+n)}},function(){return{config:r,extensions:i,logger:o,notificationManager:a}})},s.track=function(t){f.doPerf(s,function(){return"AppInsightsCore.track"},function(){var e,n=t;n&&(n.timings=n.timings||{},n.timings.trackStart=v(),p(n.latency)||(n.latency=i.Normal),(e=n.ext=n.ext||{}).sdk=e.sdk||{},e.sdk.ver=d,(e=n.baseData=n.baseData||{})[E]||(e[E]={}),(e=e[E])[I]||(e[I]=""),""!==s.pluginVersionString&&(e[I]=s.pluginVersionString)),l.track(n)},function(){return{item:t}},!t.sync)}}),e}O=f.BaseCore,r.__extendsFn(Z,O);var O,N=Z;function Z(){var e=O.call(this)||this;return o(Z,e,function(o,a){o.initialize=function(e,n,t,r){e&&!e.endpointUrl&&(e.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),o.getWParam=function(){return l?0:-1};try{a.initialize(e,n,t,r)}catch(i){o.logger.throwInternal(f.LoggingSeverity.CRITICAL,u.FailedToInitializeSDK,"Initialization Failed: "+f.dumpObj(i)+"\n - Note: Channels must be provided through config.channels only")}},o.track=function(e){var n;e&&((n=e.ext=e.ext||{}).sdk=n.sdk||{},n.sdk.ver=d),a.track(e)}}),e}var A=f.isFunction,T=(j.resolve=function(r){return r instanceof j?r:r&&A(r.then)?new j(function(e,n){try{r.then(e,n)}catch(t){n(t)}}):new j(function(e){e(r)})},j.reject=function(t){return new j(function(e,n){n(t)})},j.all=function(s){if(s&&s.length)return new j(function(r,e){try{for(var i=[],o=0,n=0;n<s.length;n++){var t=s[n];t&&A(t.then)?(o++,t.then(function(n,t){return function(e){n[t]=e,0==--o&&r(i)}}(i,n),e)):i[n]=t}0===o&&setTimeout(function(){r(i)},0)}catch(a){e(a)}})},j.race=function(i){return new j(function(n,t){if(i&&i.length)try{for(var r=0;r<i.length;r++)!function(){var e=i[r];e&&A(e.then)?e.then(n,t):setTimeout(function(){n(e)},0)}()}catch(e){t(e)}})},j);function j(e){var a=0,s=null,n=[];function i(t,r,i,o){n.push(function(){var e;try{(e=1===a?A(t)?t(s):s:A(r)?r(s):s)instanceof j?e.then(i,o):(2!==a||A(r)?i:o)(e)}catch(n){return void o(n)}}),0!==a&&l()}function l(){var r;0<n.length&&(r=n.slice(),n=[],setTimeout(function(){for(var e=0,n=r.length;e<n;++e)try{r[e]()}catch(t){}},0))}function t(e){0===a&&(s=e,a=2,l())}if(o(j,this,function(n){n.then=function(t,r){return new j(function(e,n){i(t,r,e,n)})},n["catch"]=function(e){return n.then(null,e)}}),!A(e))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{e(function(e){0===a&&(s=e,a=1,l())},t)}catch(r){t(r)}}var Y=0,F=[],D=[],$=[];function k(){return(new Date).getTime()}L.incomplete=function(){return F},L.waitingToStart=function(){return D};var U=L;function L(e,n){var v=0,h=(e||"<unnamed>")+"."+Y;function S(e){var n=f.getGlobal();n&&n.QUnit&&console&&console.log("ESPromiseScheduler["+h+"] "+e)}function y(e){n&&n.warnToConsole("ESPromiseScheduler["+h+"] "+e)}Y++,o(L,this,function(e){var g=null,p=0;function m(e,n){for(var t=0;t<e.length;t++)if(e[t].id===n)return e.splice(t,1)[0];return null}e.scheduleEvent=function(t,e,s){var i,o,n,a=h+"."+p,e=(p++,e&&(a+="-("+e+")"),a+"{"+v+"}"),r=(v++,{evt:null,tm:k(),id:e,isRunning:!1,isAborted:!1});return r.evt=g?(i=r,o=g,n=new T(function(n,t){var e=k()-o.tm,r=o.id;S("["+a+"] is waiting for ["+r+":"+e+" ms] to complete before starting -- ["+D.length+"] waiting and ["+F.length+"] running"),i.abort=function(e){i.abort=null,m(D,a),i.isAborted=!0,t(Error(e))},o.evt.then(function(e){m(D,a),f(i).then(n,t)},function(e){m(D,a),f(i).then(n,t)})}),D.push(i),n):f(r),(g=r).evt._schId=e,r.evt;function l(e){for(var n=k(),t=n-6e5,r=e.length,i=0;i<r;){var o,a=e[i];a&&a.tm<t?(o=null,a.abort?(o="Aborting ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",a.abort(o)):o="Removing ["+a.id+"] due to Excessive runtime ("+(n-a.tm)+" ms)",y(o),e.splice(i,1),r--):i++}}function u(e,n){var t,r=!1,i=m(F,e);i||(i=m($,e),r=!0),i?(i.to&&(clearTimeout(i.to),i.to=null),t=k()-i.tm,n?r?y("Timed out event ["+e+"] finally complete -- "+t+" ms"):S("Promise ["+e+"] Complete -- "+t+" ms"):($.push(i),y("Event ["+e+"] Timed out and removed -- "+t+" ms"))):S("Failed to remove ["+e+"] from running queue"),g&&g.id===e&&(g=null),l(F),l(D),l($)}function d(n,t){return function(e){return u(n,!0),t&&t(e),e}}function c(r,o){var a=r.id;return new T(function(n,t){S("Event ["+a+"] Starting -- waited for "+(r.wTm||"--")+" ms"),r.isRunning=!0,r.abort=function(e){r.abort=null,r.isAborted=!0,u(a,!1),t(Error(e))};var e=o(a);e instanceof T?(s&&(r.to=setTimeout(function(){u(a,!1),t(Error("Timed out after ["+s+"] ms"))},s)),function i(n,e,t,r){e.then(function(e){return e instanceof T?(S("Event ["+n+"] returned a promise -- waiting"),i(n,e,t,r),e):d(n,t)(e)},d(n,r))}(a,e,function(e){S("Event ["+a+"] Resolving after "+(k()-r.tm)+" ms"),n(e)},t)):(S("Promise ["+a+"] Auto completed as the start action did not return a promise"),n())})}function f(e){var n=k();return e.wTm=n-e.tm,e.tm=n,e.isAborted?T.reject(Error("["+a+"] was aborted")):(F.push(e),c(e,t))}}})}ne.getFieldType=y;var ee=ne;function ne(e){var u=this,o={},a=[],s=[];function l(e,n){var t=o[e];if(!(i=t?t[n]:i)&&null!==i){if(f.isString(e)&&f.isString(n))if(0<s.length){for(var r=0;r<s.length;r++)if(s[r].handleField(e,n)){i={canHandle:!0,fieldHandler:s[r]};break}}else 0===a.length&&(i={canHandle:!0});if(!i&&null!==i)for(var i=null,r=0;r<a.length;r++)if(a[r].handleField(e,n)){i={canHandle:!0,handler:a[r],fieldHandler:null};break}(t=t||(o[e]={}))[n]=i}return i}function d(e,n,t,r,i,o){if(e.handler)return e.handler.property(n,t,i,o);if(!f.isNullOrUndefined(i.kind)){if(4096==(4096&r)||!h(i.kind))return null;i.value=i.value.toString()}return function l(i,o,a,e,n){var t,s,r;return n&&i&&(t=i.getSanitizer(o,a,e,n.kind,n.propertyType))&&(4===e?(s={},r=n.value,f.objForEachKey(r,function(e,n){var t,r=o+"."+a;g(n)&&(t=c(0,0,n),(t=l(i,r,e,y(n),t))&&(s[e]=t.value))}),n.value=s):n=t.call(u,{path:o,name:a,type:e,prop:n,sanitizer:u})),n}(e.fieldHandler,n,t,r,i)}function c(e,n,t){return g(t)?{value:t}:null}e&&s.push(e),u.addSanitizer=function(e){e&&(a.push(e),o={})},u.addFieldSanitizer=function(e){e&&(s.push(e),o={})},u.handleField=function(e,n){e=l(e,n);return!!e&&e.canHandle},u.value=function(e,n,t,r){var i=l(e,n);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,n,t,r);if(!f.isString(n)||f.isNullOrUndefined(t)||""===t)return null;var o=null,a=y(t);if(8192==(8192&a)){var s=-8193&a;if(!g((o=t).value)||1!=s&&2!=s&&3!=s&&4096!=(4096&s))return null}else 1===a||2===a||3===a||4096==(4096&a)?o=c(0,0,t):4===a&&(o=c(0,0,r?JSON.stringify(t):t));if(o)return d(i,e,n,a,o,r)}return null},u.property=function(e,n,t,r){var i=l(e,n);if(!i||!i.canHandle)return null;if(!f.isString(n)||f.isNullOrUndefined(t)||!g(t.value))return null;var o=y(t.value);return 0===o?null:d(i,e,n,o,t,r)}}e.BaseTelemetryPlugin=f.BaseTelemetryPlugin,e.DiagnosticLogger=f.DiagnosticLogger,e.EventHelper=f.EventHelper,e.EventsDiscardedReason=f.EventsDiscardedReason,e.InternalAppInsightsCore=f.AppInsightsCore,e.InternalBaseCore=f.BaseCore,e.LoggingSeverity=f.LoggingSeverity,e.MinChannelPriorty=f.MinChannelPriorty,e.NotificationManager=f.NotificationManager,e.PerfEvent=f.PerfEvent,e.PerfManager=f.PerfManager,e.ProcessTelemetryContext=f.ProcessTelemetryContext,e.Undefined=f.strUndefined,e._InternalLogMessage=f._InternalLogMessage,e._InternalMessageId=f._InternalMessageId,e.addEventHandler=f.addEventHandler,e.addEventListeners=f.addEventListeners,e.addPageHideEventListener=f.addPageHideEventListener,e.addPageShowEventListener=f.addPageShowEventListener,e.addPageUnloadEventListener=f.addPageUnloadEventListener,e.areCookiesSupported=f.areCookiesSupported,e.arrForEach=f.arrForEach,e.arrIndexOf=f.arrIndexOf,e.arrMap=f.arrMap,e.arrReduce=f.arrReduce,e.attachEvent=f.attachEvent,e.cookieAvailable=f.areCookiesSupported,e.createCookieMgr=f.createCookieMgr,e.dateNow=f.dateNow,e.detachEvent=f.detachEvent,e.disallowsSameSiteNone=f.uaDisallowsSameSiteNone,e.doPerf=f.doPerf,e.dumpObj=f.dumpObj,e.generateW3CId=f.generateW3CId,e.getConsole=f.getConsole,e.getCrypto=f.getCrypto,e.getDocument=f.getDocument,e.getExceptionName=f.getExceptionName,e.getGlobal=f.getGlobal,e.getGlobalInst=f.getGlobalInst,e.getHistory=f.getHistory,e.getIEVersion=f.getIEVersion,e.getISOString=f.toISOString,e.getJSON=f.getJSON,e.getLocation=f.getLocation,e.getMsCrypto=f.getMsCrypto,e.getNavigator=f.getNavigator,e.getPerformance=f.getPerformance,e.getSetValue=f.getSetValue,e.getWindow=f.getWindow,e.hasDocument=f.hasDocument,e.hasHistory=f.hasHistory,e.hasJSON=f.hasJSON,e.hasNavigator=f.hasNavigator,e.hasOwnProperty=f.hasOwnProperty,e.hasWindow=f.hasWindow,e.isArray=f.isArray,e.isBeaconsSupported=f.isBeaconsSupported,e.isBoolean=f.isBoolean,e.isDate=f.isDate,e.isError=f.isError,e.isFetchSupported=f.isFetchSupported,e.isFunction=f.isFunction,e.isIE=f.isIE,e.isNotTruthy=f.isNotTruthy,e.isNullOrUndefined=f.isNullOrUndefined,e.isNumber=f.isNumber,e.isObject=f.isObject,e.isReactNative=f.isReactNative,e.isString=f.isString,e.isTruthy=f.isTruthy,e.isTypeof=f.isTypeof,e.isUndefined=f.isUndefined,e.isXhrSupported=f.isXhrSupported,e.newGuid=f.newGuid,e.newId=f.newId,e.normalizeJsName=f.normalizeJsName,e.objCreate=f.objCreate,e.objDefineAccessors=f.objDefineAccessors,e.objForEachKey=f.objForEachKey,e.objKeys=f.objKeys,e.optimizeObject=f.optimizeObject,e.perfNow=f.perfNow,e.proxyAssign=f.proxyAssign,e.random32=f.random32,e.randomValue=f.randomValue,e.safeGetCookieMgr=f.safeGetCookieMgr,e.safeGetLogger=f.safeGetLogger,e.setEnableEnvMocks=f.setEnableEnvMocks,e.setValue=f.setValue,e.strContains=f.strContains,e.strEndsWith=f.strEndsWith,e.strExtensionConfig=f.strExtensionConfig,e.strFunction=f.strFunction,e.strIKey=f.strIKey,e.strObject=f.strObject,e.strPrototype=f.strPrototype,e.strStartsWith=f.strStartsWith,e.strTrim=f.strTrim,e.strUndefined=f.strUndefined,e.throwError=f.throwError,e.toISOString=f.toISOString,e.useXDomainRequest=f.useXDomainRequest,e.AppInsightsCore=P,e.BaseCore=N,e.CoreUtils=C,e.ESPromise=T,e.ESPromiseScheduler=U,e.EventLatency=i,e.EventPersistence={Normal:1,Critical:2},e.EventPropertyType=a,e.FullVersionString=d,e.TraceLevel={NONE:0,ERROR:1,WARNING:2,INFORMATION:3},e.Utils=Q,e.ValueKind=t,e.ValueSanitizer=ee,e.Version=n,e._ExtendedInternalMessageId=u,e.createGuid=J,e.deleteCookie=K,e.disableCookies=H,e.extend=m,e.getCommonSchemaMetaData=G,e.getCookie=W,e.getCookieValue=q,e.getFieldValueType=y,e.getTenantId=x,e.getTime=v,e.isArrayValid=S,e.isChromium=function(){return!!f.getGlobalInst("chrome")},e.isDocumentObjectAvailable=l,e.isLatency=p,e.isUint8ArrayAvailable=_,e.isValueAssigned=g,e.isValueKind=h,e.isWindowObjectAvailable=c,e.openXhr=function(e,n,t,r,i,o){function a(e,n,t){try{e[n]=t}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),t&&a(s,V,t),s.open(e,n,!i),t&&a(s,V,t),!i&&o&&a(s,"timeout",o),s},e.sanitizeProperty=B,e.setCookie=z,e.setProcessTelemetryTimings=X;P=e,N="__esModule",C={value:!0},U=Object.defineProperty;if(U)try{return void U(P,N,C)}catch(te){}typeof C.value!==undefined&&(P[N]=C.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/applicationinsights-core-js"),require("@microsoft/dynamicproto-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto);
|
|
7
7
|
//# sourceMappingURL=ms.core.min.js.map
|