@microsoft/applicationinsights-properties-js 3.1.1 → 3.1.3-nightly3.2403-15

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.
Files changed (57) hide show
  1. package/browser/es5/{ai.props.3.1.1.cjs.js → ai.props.3.1.3-nightly3.2403-15.cjs.js} +401 -416
  2. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.cjs.js.map +1 -0
  3. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.cjs.min.js +6 -0
  4. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.props.3.1.1.gbl.js → ai.props.3.1.3-nightly3.2403-15.gbl.js} +403 -418
  6. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.gbl.js.map +1 -0
  7. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.gbl.min.js +6 -0
  8. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.1.1.js → ai.props.3.1.3-nightly3.2403-15.js} +403 -418
  11. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.js.map +1 -0
  12. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.min.js +6 -0
  13. package/browser/es5/ai.props.3.1.3-nightly3.2403-15.min.js.map +1 -0
  14. package/browser/es5/ai.props.3.cjs.js +400 -415
  15. package/browser/es5/ai.props.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.props.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.props.3.gbl.js +402 -417
  19. package/browser/es5/ai.props.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.props.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.props.3.integrity.json +25 -25
  23. package/browser/es5/ai.props.3.js +402 -417
  24. package/browser/es5/ai.props.3.js.map +1 -1
  25. package/browser/es5/ai.props.3.min.js +2 -2
  26. package/browser/es5/ai.props.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-properties-js.js +400 -415
  28. package/dist/es5/applicationinsights-properties-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-properties-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
  31. package/dist-es5/Context/Application.js +1 -1
  32. package/dist-es5/Context/Device.js +1 -1
  33. package/dist-es5/Context/Internal.js +2 -2
  34. package/dist-es5/Context/Internal.js.map +1 -1
  35. package/dist-es5/Context/Location.js +1 -1
  36. package/dist-es5/Context/Session.js +1 -1
  37. package/dist-es5/Context/TelemetryTrace.js +1 -1
  38. package/dist-es5/Context/User.js +1 -1
  39. package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
  40. package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
  41. package/dist-es5/PropertiesPlugin.js +1 -1
  42. package/dist-es5/TelemetryContext.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +1 -1
  44. package/dist-es5/applicationinsights-properties-js.js +1 -1
  45. package/package.json +69 -66
  46. package/types/applicationinsights-properties-js.d.ts +1 -1
  47. package/types/applicationinsights-properties-js.namespaced.d.ts +2 -1
  48. package/browser/es5/ai.props.3.1.1.cjs.js.map +0 -1
  49. package/browser/es5/ai.props.3.1.1.cjs.min.js +0 -6
  50. package/browser/es5/ai.props.3.1.1.cjs.min.js.map +0 -1
  51. package/browser/es5/ai.props.3.1.1.gbl.js.map +0 -1
  52. package/browser/es5/ai.props.3.1.1.gbl.min.js +0 -6
  53. package/browser/es5/ai.props.3.1.1.gbl.min.js.map +0 -1
  54. package/browser/es5/ai.props.3.1.1.integrity.json +0 -66
  55. package/browser/es5/ai.props.3.1.1.js.map +0 -1
  56. package/browser/es5/ai.props.3.1.1.min.js +0 -6
  57. package/browser/es5/ai.props.3.1.1.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.1.1
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.1.3-nightly3.2403-15
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -7,8 +7,8 @@
7
7
  typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
8
  typeof define === "function" && define.amd ? define(["exports"], factory) :
9
9
  (function(global){
10
- var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_1_1", msMod="__ms$mod__";
11
- var mods={}, modDetail=mods[modName]={}, ver="3.1.1";
10
+ var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_1_3_nightly3_2403_15", msMod="__ms$mod__";
11
+ var mods={}, modDetail=mods[modName]={}, ver="3.1.3-nightly3.2403-15";
12
12
  var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
13
  // Versioned namespace "Microsoft.ApplicationInsights3"
14
14
  var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
@@ -40,21 +40,15 @@ var UNDEF_VALUE = undefined;
40
40
  var NULL_VALUE = null;
41
41
  var EMPTY = "";
42
42
  var FUNCTION = "function";
43
- var NUMBER = "number";
44
43
  var OBJECT = "object";
45
44
  var PROTOTYPE = "prototype";
46
45
  var __PROTO__ = "__proto__";
47
- var STRING = "string";
48
46
  var UNDEFINED = "undefined";
49
47
  var CONSTRUCTOR = "constructor";
50
48
  var SYMBOL = "Symbol";
51
49
  var POLYFILL_TAG = "_polyfill";
52
- var INDEX_OF = "indexOf";
53
50
  var LENGTH = "length";
54
- var DONE = "done";
55
- var VALUE = "value";
56
51
  var NAME = "name";
57
- var SLICE = "slice";
58
52
  var CALL = "call";
59
53
  var TO_STRING = "toString";
60
54
  var ObjClass = Object;
@@ -64,6 +58,7 @@ var StrProto = StrCls[PROTOTYPE];
64
58
  var MathCls = Math;
65
59
  var ArrCls = Array;
66
60
  var ArrProto = ArrCls[PROTOTYPE];
61
+ var ArrSlice = ArrProto["slice"];
67
62
 
68
63
  function safe(func, argArray) {
69
64
  try {
@@ -76,6 +71,7 @@ function safe(func, argArray) {
76
71
  }
77
72
  }
78
73
 
74
+ /*#__NO_SIDE_EFFECTS__*/
79
75
  function safeGet(cb, defValue) {
80
76
  var result = safe(cb);
81
77
  return result.e ? defValue : result.v;
@@ -114,7 +110,7 @@ function isStrictNullOrUndefined(value) {
114
110
  function isDefined(arg) {
115
111
  return !!arg || arg !== UNDEF_VALUE;
116
112
  }
117
- var isString = ( /*#__PURE__*/_createIs(STRING));
113
+ var isString = ( /*#__PURE__*/_createIs("string"));
118
114
  var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
119
115
  /*#__NO_SIDE_EFFECTS__*/
120
116
  function isObject(value) {
@@ -220,6 +216,7 @@ var asString = StrCls;
220
216
 
221
217
  var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
222
218
  var _globalCfg;
219
+ /*#__NO_SIDE_EFFECTS__*/
223
220
  function _getGlobalValue() {
224
221
  var result;
225
222
  if (typeof globalThis !== UNDEFINED) {
@@ -254,7 +251,7 @@ function dumpObj(object, format) {
254
251
  object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
255
252
  }
256
253
  try {
257
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === NUMBER) ? format : 4) : UNDEF_VALUE);
254
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
258
255
  propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
259
256
  }
260
257
  catch (e) {
@@ -263,18 +260,15 @@ function dumpObj(object, format) {
263
260
  return objType + ": " + propertyValueDump;
264
261
  }
265
262
 
266
- var _slice;
267
- var _unwrapInstFunction = _unwrapFunctionWithPoly;
268
263
  var _unwrapFunction = _unwrapFunctionWithPoly;
269
264
  /*#__NO_SIDE_EFFECTS__*/
270
265
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
271
- _slice = _slice || ArrProto[SLICE];
272
266
  var clsFn = clsProto && clsProto[funcName];
273
267
  return function (thisArg) {
274
268
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
275
269
  if (theFunc || polyFunc) {
276
270
  var theArgs = arguments;
277
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
271
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
278
272
  }
279
273
  throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
280
274
  };
@@ -282,7 +276,7 @@ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
282
276
 
283
277
  var mathMax = MathCls.max;
284
278
 
285
- var strSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, StrProto));
279
+ var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
286
280
 
287
281
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
288
282
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
@@ -354,7 +348,7 @@ function polyGetKnownSymbol(name) {
354
348
  var propMap = {
355
349
  e: "enumerable",
356
350
  c: "configurable",
357
- v: VALUE,
351
+ v: "value",
358
352
  w: "writable",
359
353
  g: "get",
360
354
  s: "set"
@@ -387,6 +381,7 @@ var _globalLazyTestHooks;
387
381
  function _initTestHooks() {
388
382
  _globalLazyTestHooks = _getGlobalConfig();
389
383
  }
384
+ /*#__NO_SIDE_EFFECTS__*/
390
385
  function getLazy(cb) {
391
386
  var lazyValue = {};
392
387
  !_globalLazyTestHooks && _initTestHooks();
@@ -424,9 +419,14 @@ function createCachedValue(value) {
424
419
 
425
420
  var WINDOW = "window";
426
421
  var _cachedGlobal;
427
- var _cachedWindow;
428
- var _cachedDocument;
429
- var _cachedNavigator;
422
+ function _getGlobalInstFn(getFn, theArgs) {
423
+ var cachedValue;
424
+ return function () {
425
+ !_globalLazyTestHooks && _initTestHooks();
426
+ (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
427
+ return cachedValue.v;
428
+ };
429
+ }
430
430
  /*#__NO_SIDE_EFFECTS__*/
431
431
  function lazySafeGetInst(name) {
432
432
  return getLazy(function () { return safe((getInst), [name]).v || UNDEF_VALUE; });
@@ -443,33 +443,18 @@ function getInst(name, useCached) {
443
443
  if (gbl && gbl[name]) {
444
444
  return gbl[name];
445
445
  }
446
- if (name === WINDOW && _cachedWindow) {
447
- return _cachedWindow.v;
446
+ if (name === WINDOW) {
447
+ return getWindow();
448
448
  }
449
449
  return NULL_VALUE;
450
450
  }
451
- /*#__NO_SIDE_EFFECTS__*/
452
- function getDocument() {
453
- !_globalLazyTestHooks && _initTestHooks();
454
- (!_cachedDocument || _globalLazyTestHooks.lzy) && (_cachedDocument = createCachedValue(safe((getInst), ["document"]).v));
455
- return _cachedDocument.v;
456
- }
451
+ var getDocument = ( /*#__PURE__*/_getGlobalInstFn(getInst, ["document"]));
457
452
  /*#__NO_SIDE_EFFECTS__*/
458
453
  function hasWindow() {
459
454
  return !!getWindow();
460
455
  }
461
- /*#__NO_SIDE_EFFECTS__*/
462
- function getWindow() {
463
- !_globalLazyTestHooks && _initTestHooks();
464
- (!_cachedWindow || _globalLazyTestHooks.lzy) && (_cachedWindow = createCachedValue(safe((getInst), [WINDOW]).v));
465
- return _cachedWindow.v;
466
- }
467
- /*#__NO_SIDE_EFFECTS__*/
468
- function getNavigator() {
469
- !_globalLazyTestHooks && _initTestHooks();
470
- (!_cachedNavigator || _globalLazyTestHooks.lzy) && (_cachedNavigator = createCachedValue(safe((getInst), ["navigator"]).v));
471
- return _cachedNavigator.v;
472
- }
456
+ var getWindow = ( /*#__PURE__*/_getGlobalInstFn(getInst, [WINDOW]));
457
+ var getNavigator = ( /*#__PURE__*/_getGlobalInstFn(getInst, ["navigator"]));
473
458
 
474
459
  var _symbol;
475
460
  var _symbolFor;
@@ -520,8 +505,8 @@ function iterForOf(iter, callbackfn, thisArg) {
520
505
  var iterResult = void 0;
521
506
  try {
522
507
  var count = 0;
523
- while (!(iterResult = iter.next())[DONE]) {
524
- if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
508
+ while (!(iterResult = iter.next()).done) {
509
+ if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {
525
510
  break;
526
511
  }
527
512
  count++;
@@ -536,7 +521,7 @@ function iterForOf(iter, callbackfn, thisArg) {
536
521
  }
537
522
  finally {
538
523
  try {
539
- if (iterResult && !iterResult[DONE]) {
524
+ if (iterResult && !iterResult.done) {
540
525
  iter.return && iter.return(iterResult);
541
526
  }
542
527
  }
@@ -550,7 +535,9 @@ function iterForOf(iter, callbackfn, thisArg) {
550
535
  }
551
536
  }
552
537
 
553
- var fnApply = ( /*#__PURE__*/_unwrapInstFunction("apply"));
538
+ function fnApply(fn, thisArg, argArray) {
539
+ return fn.apply(thisArg, argArray);
540
+ }
554
541
 
555
542
  function arrAppend(target, elms) {
556
543
  if (!isUndefined(elms) && target) {
@@ -582,7 +569,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
582
569
  }
583
570
  }
584
571
 
585
- var arrIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, ArrProto));
572
+ var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
586
573
 
587
574
  var objCreate = ObjClass["create"] || polyObjCreate;
588
575
  /*#__NO_SIDE_EFFECTS__*/
@@ -612,6 +599,7 @@ function objSetPrototypeOf(obj, proto) {
612
599
  return fn(obj, proto);
613
600
  }
614
601
 
602
+ /*#__NO_SIDE_EFFECTS__*/
615
603
  function _createCustomError(name, d, b) {
616
604
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
617
605
  d = objSetPrototypeOf(d, b);
@@ -635,7 +623,7 @@ function createCustomError(name, constructCb, errorBase) {
635
623
  var theArgs = arguments;
636
624
  try {
637
625
  safe(_setName, [theBaseClass, name]);
638
- var _self = fnApply(theBaseClass, _this, ArrProto[SLICE][CALL](theArgs)) || _this;
626
+ var _self = fnApply(theBaseClass, _this, ArrSlice[CALL](theArgs)) || _this;
639
627
  if (_self !== _this) {
640
628
  var orgProto = objGetPrototypeOf(_this);
641
629
  if (orgProto !== objGetPrototypeOf(_self)) {
@@ -721,58 +709,54 @@ function polyStrEndsWith(value, searchString, length) {
721
709
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
722
710
  }
723
711
 
724
- var strIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, StrProto));
712
+ var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
725
713
 
726
714
  var REF = "ref";
727
- var UNREF = "un" + REF;
715
+ var UNREF = "unref";
728
716
  var HAS_REF = "hasRef";
729
717
  var ENABLED = "enabled";
718
+ /*#__NO_SIDE_EFFECTS__*/
730
719
  function _createTimerHandler(startTimer, refreshFn, cancelFn) {
731
- var _a;
732
720
  var ref = true;
733
721
  var timerId = startTimer ? refreshFn(NULL_VALUE) : NULL_VALUE;
734
722
  var theTimerHandler;
735
- var _unref = function () {
723
+ function _unref() {
736
724
  ref = false;
737
725
  timerId && timerId[UNREF] && timerId[UNREF]();
738
726
  return theTimerHandler;
739
- };
740
- var _ref = function () {
741
- ref = true;
742
- timerId && timerId[REF] && timerId[REF]();
727
+ }
728
+ function _cancel() {
729
+ timerId && cancelFn(timerId);
730
+ timerId = NULL_VALUE;
731
+ }
732
+ function _refresh() {
733
+ timerId = refreshFn(timerId);
734
+ if (!ref) {
735
+ _unref();
736
+ }
743
737
  return theTimerHandler;
738
+ }
739
+ function _setEnabled(value) {
740
+ !value && timerId && _cancel();
741
+ value && !timerId && _refresh();
742
+ }
743
+ theTimerHandler = {
744
+ cancel: _cancel,
745
+ refresh: _refresh
744
746
  };
745
- var _hasRef = function () {
747
+ theTimerHandler[HAS_REF] = function () {
746
748
  if (timerId && timerId[HAS_REF]) {
747
749
  return timerId[HAS_REF]();
748
750
  }
749
751
  return ref;
750
752
  };
751
- var _refresh = function () {
752
- timerId = refreshFn(timerId);
753
- if (!ref) {
754
- _unref();
755
- }
753
+ theTimerHandler[REF] = function () {
754
+ ref = true;
755
+ timerId && timerId[REF] && timerId[REF]();
756
756
  return theTimerHandler;
757
757
  };
758
- var _cancel = function () {
759
- timerId && cancelFn(timerId);
760
- timerId = NULL_VALUE;
761
- };
762
- var _setEnabled = function (value) {
763
- !value && timerId && _cancel();
764
- value && !timerId && _refresh();
765
- };
766
- theTimerHandler = (_a = {
767
- cancel: _cancel,
768
- refresh: _refresh
769
- },
770
- _a[HAS_REF] = _hasRef,
771
- _a[REF] = _ref,
772
- _a[UNREF] = _unref,
773
- _a[ENABLED] = false,
774
- _a);
775
- objDefineProp(theTimerHandler, ENABLED, {
758
+ theTimerHandler[UNREF] = _unref;
759
+ theTimerHandler = objDefineProp(theTimerHandler, ENABLED, {
776
760
  get: function () { return !!timerId; },
777
761
  set: _setEnabled
778
762
  });
@@ -784,7 +768,7 @@ function _createTimerHandler(startTimer, refreshFn, cancelFn) {
784
768
  };
785
769
  }
786
770
 
787
- function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
771
+ function _createTimeoutWith(startTimer, overrideFn, theArgs) {
788
772
  var isArr = isArray(overrideFn);
789
773
  var len = isArr ? overrideFn.length : 0;
790
774
  var setFn = (len > 0 ? overrideFn[0] : (!isArr ? overrideFn : UNDEF_VALUE)) || setTimeout;
@@ -792,7 +776,7 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
792
776
  var timerFn = theArgs[0];
793
777
  theArgs[0] = function () {
794
778
  handler.dn();
795
- fnApply(timerFn, self, ArrProto[SLICE][CALL](arguments));
779
+ fnApply(timerFn, UNDEF_VALUE, ArrSlice[CALL](arguments));
796
780
  };
797
781
  var handler = _createTimerHandler(startTimer, function (timerId) {
798
782
  if (timerId) {
@@ -800,16 +784,16 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
800
784
  timerId.refresh();
801
785
  return timerId;
802
786
  }
803
- fnApply(clearFn, self, [timerId]);
787
+ fnApply(clearFn, UNDEF_VALUE, [timerId]);
804
788
  }
805
- return fnApply(setFn, self, theArgs);
789
+ return fnApply(setFn, UNDEF_VALUE, theArgs);
806
790
  }, function (timerId) {
807
- fnApply(clearFn, self, [timerId]);
791
+ fnApply(clearFn, UNDEF_VALUE, [timerId]);
808
792
  });
809
793
  return handler.h;
810
794
  }
811
795
  function scheduleTimeout(callback, timeout) {
812
- return _createTimeoutWith(this, true, UNDEF_VALUE, ArrProto[SLICE][CALL](arguments));
796
+ return _createTimeoutWith(true, UNDEF_VALUE, ArrSlice[CALL](arguments));
813
797
  }
814
798
 
815
799
  var strHasOwnProperty = "hasOwnProperty";
@@ -1112,7 +1096,7 @@ var _DYN_GET_PLUGIN = "getPlugin";
1112
1096
  var _DYN_NAME$1 = "name";
1113
1097
  var _DYN_TIME = "time";
1114
1098
  var _DYN_PROCESS_NEXT = "processNext";
1115
- var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
1099
+ var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
1116
1100
  var _DYN_ENABLED = "enabled";
1117
1101
  var _DYN_UNLOAD = "unload";
1118
1102
  var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
@@ -1165,20 +1149,103 @@ var STR_DOMAIN = "domain";
1165
1149
  var STR_PATH = "path";
1166
1150
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
1167
1151
 
1168
- var _aiNamespace = null;
1169
- function _getExtensionNamespace() {
1170
- var target = getInst("Microsoft");
1152
+ var rCamelCase = /-([a-z])/g;
1153
+ var rNormalizeInvalid = /([^\w\d_$])/g;
1154
+ var rLeadingNumeric = /^(\d+[\w\d_$])/;
1155
+ function isNotNullOrUndefined(value) {
1156
+ return !isNullOrUndefined(value);
1157
+ }
1158
+ function normalizeJsName(name) {
1159
+ var value = name;
1160
+ if (value && isString(value)) {
1161
+ value = value[_DYN_REPLACE ](rCamelCase, function (_all, letter) {
1162
+ return letter.toUpperCase();
1163
+ });
1164
+ value = value[_DYN_REPLACE ](rNormalizeInvalid, "_");
1165
+ value = value[_DYN_REPLACE ](rLeadingNumeric, function (_all, match) {
1166
+ return "_" + match;
1167
+ });
1168
+ }
1169
+ return value;
1170
+ }
1171
+ function strContains(value, search) {
1172
+ if (value && search) {
1173
+ return strIndexOf(value, search) !== -1;
1174
+ }
1175
+ return false;
1176
+ }
1177
+ function toISOString(date) {
1178
+ return date && date.toISOString() || "";
1179
+ }
1180
+ function getExceptionName(object) {
1181
+ if (isError(object)) {
1182
+ return object[_DYN_NAME$1 ];
1183
+ }
1184
+ return STR_EMPTY;
1185
+ }
1186
+ function setValue(target, field, value, valChk, srcChk) {
1187
+ var theValue = value;
1171
1188
  if (target) {
1172
- _aiNamespace = target["ApplicationInsights"];
1189
+ theValue = target[field];
1190
+ if (theValue !== value && (!srcChk || srcChk(theValue)) && (!valChk || valChk(value))) {
1191
+ theValue = value;
1192
+ target[field] = theValue;
1193
+ }
1173
1194
  }
1174
- return _aiNamespace;
1195
+ return theValue;
1175
1196
  }
1176
- function getDebugExt(config) {
1177
- var ns = _aiNamespace;
1178
- if (!ns && config.disableDbgExt !== true) {
1179
- ns = _aiNamespace || _getExtensionNamespace();
1197
+ function getSetValue(target, field, defValue) {
1198
+ var theValue;
1199
+ if (target) {
1200
+ theValue = target[field];
1201
+ if (!theValue && isNullOrUndefined(theValue)) {
1202
+ theValue = !isUndefined(defValue) ? defValue : {};
1203
+ target[field] = theValue;
1204
+ }
1180
1205
  }
1181
- return ns ? ns["ChromeDbgExt"] : null;
1206
+ else {
1207
+ theValue = !isUndefined(defValue) ? defValue : {};
1208
+ }
1209
+ return theValue;
1210
+ }
1211
+ function _createProxyFunction(source, funcName) {
1212
+ var srcFunc = null;
1213
+ var src = null;
1214
+ if (isFunction(source)) {
1215
+ srcFunc = source;
1216
+ }
1217
+ else {
1218
+ src = source;
1219
+ }
1220
+ return function () {
1221
+ var originalArguments = arguments;
1222
+ if (srcFunc) {
1223
+ src = srcFunc();
1224
+ }
1225
+ if (src) {
1226
+ return src[funcName][_DYN_APPLY ](src, originalArguments);
1227
+ }
1228
+ };
1229
+ }
1230
+ function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {
1231
+ if (target && name && source) {
1232
+ if (overwriteTarget !== false || isUndefined(target[name])) {
1233
+ target[name] = _createProxyFunction(source, theFunc);
1234
+ }
1235
+ }
1236
+ }
1237
+ function createClassFromInterface(defaults) {
1238
+ return /** @class */ (function () {
1239
+ function class_1() {
1240
+ var _this = this;
1241
+ if (defaults) {
1242
+ objForEachKey(defaults, function (field, value) {
1243
+ _this[field] = value;
1244
+ });
1245
+ }
1246
+ }
1247
+ return class_1;
1248
+ }());
1182
1249
  }
1183
1250
 
1184
1251
  var strLocation = "location";
@@ -1234,332 +1301,48 @@ function isIE() {
1234
1301
  return _isTrident;
1235
1302
  }
1236
1303
 
1237
- var _a$3;
1238
- var STR_WARN_TO_CONSOLE = "warnToConsole";
1239
- var AiNonUserActionablePrefix = "AI (Internal): ";
1240
- var AiUserActionablePrefix = "AI: ";
1241
- var AIInternalMessagePrefix = "AITR_";
1242
- var defaultValues$1 = {
1243
- loggingLevelConsole: 0,
1244
- loggingLevelTelemetry: 1,
1245
- maxMessageLimit: 25,
1246
- enableDebug: false
1247
- };
1248
- var _logFuncs = (_a$3 = {},
1249
- _a$3[0 ] = null,
1250
- _a$3[1 ] = "errorToConsole",
1251
- _a$3[2 ] = STR_WARN_TO_CONSOLE,
1252
- _a$3[3 ] = "debugToConsole",
1253
- _a$3);
1254
- function _sanitizeDiagnosticText(text) {
1255
- if (text) {
1256
- return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
1304
+ var UInt32Mask = 0x100000000;
1305
+ var MaxUInt32 = 0xffffffff;
1306
+ var SEED1 = 123456789;
1307
+ var SEED2 = 987654321;
1308
+ var _mwcSeeded = false;
1309
+ var _mwcW = SEED1;
1310
+ var _mwcZ = SEED2;
1311
+ function _mwcSeed(seedValue) {
1312
+ if (seedValue < 0) {
1313
+ seedValue >>>= 0;
1257
1314
  }
1258
- return STR_EMPTY;
1315
+ _mwcW = (SEED1 + seedValue) & MaxUInt32;
1316
+ _mwcZ = (SEED2 - seedValue) & MaxUInt32;
1317
+ _mwcSeeded = true;
1259
1318
  }
1260
- function _logToConsole(func, message) {
1261
- var theConsole = getConsole();
1262
- if (!!theConsole) {
1263
- var logFunc = "log";
1264
- if (theConsole[func]) {
1265
- logFunc = func;
1266
- }
1267
- if (isFunction(theConsole[logFunc])) {
1268
- theConsole[logFunc](message);
1269
- }
1319
+ function _autoSeedMwc() {
1320
+ try {
1321
+ var now = utcNow() & 0x7fffffff;
1322
+ _mwcSeed(((Math.random() * UInt32Mask) ^ now) + now);
1323
+ }
1324
+ catch (e) {
1270
1325
  }
1271
1326
  }
1272
- var _InternalLogMessage = /** @class */ (function () {
1273
- function _InternalLogMessage(msgId, msg, isUserAct, properties) {
1274
- if (isUserAct === void 0) { isUserAct = false; }
1275
- var _self = this;
1276
- _self[_DYN_MESSAGE_ID ] = msgId;
1277
- _self[_DYN_MESSAGE ] =
1278
- (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
1279
- msgId;
1280
- var strProps = STR_EMPTY;
1281
- if (hasJSON()) {
1282
- strProps = getJSON().stringify(properties);
1327
+ function random32(signed) {
1328
+ var value = 0;
1329
+ var c = getCrypto() || getMsCrypto();
1330
+ if (c && c.getRandomValues) {
1331
+ value = c.getRandomValues(new Uint32Array(1))[0] & MaxUInt32;
1332
+ }
1333
+ if (value === 0 && isIE()) {
1334
+ if (!_mwcSeeded) {
1335
+ _autoSeedMwc();
1283
1336
  }
1284
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
1285
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
1286
- _self[_DYN_MESSAGE ] += diagnosticText;
1337
+ value = mwcRandom32() & MaxUInt32;
1287
1338
  }
1288
- _InternalLogMessage.dataType = "MessageData";
1289
- return _InternalLogMessage;
1290
- }());
1291
- function safeGetLogger(core, config) {
1292
- return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
1293
- }
1294
- var DiagnosticLogger = /** @class */ (function () {
1295
- function DiagnosticLogger(config) {
1296
- this.identifier = "DiagnosticLogger";
1297
- this.queue = [];
1298
- var _messageCount = 0;
1299
- var _messageLogged = {};
1300
- var _loggingLevelConsole;
1301
- var _loggingLevelTelemetry;
1302
- var _maxInternalMessageLimit;
1303
- var _enableDebug;
1304
- var _unloadHandler;
1305
- dynamicProto(DiagnosticLogger, this, function (_self) {
1306
- _unloadHandler = _setDefaultsFromConfig(config || {});
1307
- _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
1308
- _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
1309
- if (isUserAct === void 0) { isUserAct = false; }
1310
- var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
1311
- if (_enableDebug) {
1312
- throw dumpObj(message);
1313
- }
1314
- else {
1315
- var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;
1316
- if (!isUndefined(message[_DYN_MESSAGE ])) {
1317
- if (isUserAct) {
1318
- var messageKey = +message[_DYN_MESSAGE_ID ];
1319
- if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
1320
- _self[logFunc](message[_DYN_MESSAGE ]);
1321
- _messageLogged[messageKey] = true;
1322
- }
1323
- }
1324
- else {
1325
- if (_loggingLevelConsole >= severity) {
1326
- _self[logFunc](message[_DYN_MESSAGE ]);
1327
- }
1328
- }
1329
- _logInternalMessage(severity, message);
1330
- }
1331
- else {
1332
- _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
1333
- }
1334
- }
1335
- };
1336
- _self.debugToConsole = function (message) {
1337
- _logToConsole("debug", message);
1338
- _debugExtMsg("warning", message);
1339
- };
1340
- _self[_DYN_WARN_TO_CONSOLE ] = function (message) {
1341
- _logToConsole("warn", message);
1342
- _debugExtMsg("warning", message);
1343
- };
1344
- _self.errorToConsole = function (message) {
1345
- _logToConsole("error", message);
1346
- _debugExtMsg("error", message);
1347
- };
1348
- _self.resetInternalMessageCount = function () {
1349
- _messageCount = 0;
1350
- _messageLogged = {};
1351
- };
1352
- _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
1353
- _self[_DYN_UNLOAD ] = function (isAsync) {
1354
- _unloadHandler && _unloadHandler.rm();
1355
- _unloadHandler = null;
1356
- };
1357
- function _logInternalMessage(severity, message) {
1358
- if (_areInternalMessagesThrottled()) {
1359
- return;
1360
- }
1361
- var logMessage = true;
1362
- var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
1363
- if (_messageLogged[messageKey]) {
1364
- logMessage = false;
1365
- }
1366
- else {
1367
- _messageLogged[messageKey] = true;
1368
- }
1369
- if (logMessage) {
1370
- if (severity <= _loggingLevelTelemetry) {
1371
- _self.queue[_DYN_PUSH ](message);
1372
- _messageCount++;
1373
- _debugExtMsg((severity === 1 ? "error" : "warn"), message);
1374
- }
1375
- if (_messageCount === _maxInternalMessageLimit) {
1376
- var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
1377
- var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
1378
- _self.queue[_DYN_PUSH ](throttleMessage);
1379
- if (severity === 1 ) {
1380
- _self.errorToConsole(throttleLimitMessage);
1381
- }
1382
- else {
1383
- _self[_DYN_WARN_TO_CONSOLE ](throttleLimitMessage);
1384
- }
1385
- }
1386
- }
1387
- }
1388
- function _setDefaultsFromConfig(config) {
1389
- return onConfigChange(createDynamicConfig(config, defaultValues$1, _self).cfg, function (details) {
1390
- var config = details.cfg;
1391
- _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
1392
- _loggingLevelTelemetry = config.loggingLevelTelemetry;
1393
- _maxInternalMessageLimit = config.maxMessageLimit;
1394
- _enableDebug = config.enableDebug;
1395
- });
1396
- }
1397
- function _areInternalMessagesThrottled() {
1398
- return _messageCount >= _maxInternalMessageLimit;
1399
- }
1400
- function _debugExtMsg(name, data) {
1401
- var dbgExt = getDebugExt(config || {});
1402
- if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
1403
- dbgExt[_DYN_DIAG_LOG ](name, data);
1404
- }
1405
- }
1406
- });
1407
- }
1408
- DiagnosticLogger.__ieDyn=1;
1409
- return DiagnosticLogger;
1410
- }());
1411
- function _getLogger(logger) {
1412
- return (logger || new DiagnosticLogger());
1413
- }
1414
- function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
1415
- if (isUserAct === void 0) { isUserAct = false; }
1416
- _getLogger(logger)[_DYN_THROW_INTERNAL ](severity, msgId, msg, properties, isUserAct);
1417
- }
1418
- function _logInternalMessage(logger, severity, message) {
1419
- _getLogger(logger)[_DYN_LOG_INTERNAL_MESSAGE ](severity, message);
1420
- }
1421
-
1422
- var rCamelCase = /-([a-z])/g;
1423
- var rNormalizeInvalid = /([^\w\d_$])/g;
1424
- var rLeadingNumeric = /^(\d+[\w\d_$])/;
1425
- function isNotNullOrUndefined(value) {
1426
- return !isNullOrUndefined(value);
1427
- }
1428
- function normalizeJsName(name) {
1429
- var value = name;
1430
- if (value && isString(value)) {
1431
- value = value[_DYN_REPLACE ](rCamelCase, function (_all, letter) {
1432
- return letter.toUpperCase();
1433
- });
1434
- value = value[_DYN_REPLACE ](rNormalizeInvalid, "_");
1435
- value = value[_DYN_REPLACE ](rLeadingNumeric, function (_all, match) {
1436
- return "_" + match;
1437
- });
1438
- }
1439
- return value;
1440
- }
1441
- function strContains(value, search) {
1442
- if (value && search) {
1443
- return strIndexOf(value, search) !== -1;
1444
- }
1445
- return false;
1446
- }
1447
- function toISOString(date) {
1448
- return date && date.toISOString() || "";
1449
- }
1450
- function getExceptionName(object) {
1451
- if (isError(object)) {
1452
- return object[_DYN_NAME$1 ];
1453
- }
1454
- return STR_EMPTY;
1455
- }
1456
- function setValue(target, field, value, valChk, srcChk) {
1457
- var theValue = value;
1458
- if (target) {
1459
- theValue = target[field];
1460
- if (theValue !== value && (!srcChk || srcChk(theValue)) && (!valChk || valChk(value))) {
1461
- theValue = value;
1462
- target[field] = theValue;
1463
- }
1464
- }
1465
- return theValue;
1466
- }
1467
- function getSetValue(target, field, defValue) {
1468
- var theValue;
1469
- if (target) {
1470
- theValue = target[field];
1471
- if (!theValue && isNullOrUndefined(theValue)) {
1472
- theValue = !isUndefined(defValue) ? defValue : {};
1473
- target[field] = theValue;
1474
- }
1475
- }
1476
- else {
1477
- theValue = !isUndefined(defValue) ? defValue : {};
1478
- }
1479
- return theValue;
1480
- }
1481
- function _createProxyFunction(source, funcName) {
1482
- var srcFunc = null;
1483
- var src = null;
1484
- if (isFunction(source)) {
1485
- srcFunc = source;
1486
- }
1487
- else {
1488
- src = source;
1489
- }
1490
- return function () {
1491
- var originalArguments = arguments;
1492
- if (srcFunc) {
1493
- src = srcFunc();
1494
- }
1495
- if (src) {
1496
- return src[funcName][_DYN_APPLY ](src, originalArguments);
1497
- }
1498
- };
1499
- }
1500
- function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {
1501
- if (target && name && source) {
1502
- if (overwriteTarget !== false || isUndefined(target[name])) {
1503
- target[name] = _createProxyFunction(source, theFunc);
1504
- }
1505
- }
1506
- }
1507
- function createClassFromInterface(defaults) {
1508
- return /** @class */ (function () {
1509
- function class_1() {
1510
- var _this = this;
1511
- if (defaults) {
1512
- objForEachKey(defaults, function (field, value) {
1513
- _this[field] = value;
1514
- });
1515
- }
1516
- }
1517
- return class_1;
1518
- }());
1519
- }
1520
-
1521
- var UInt32Mask = 0x100000000;
1522
- var MaxUInt32 = 0xffffffff;
1523
- var SEED1 = 123456789;
1524
- var SEED2 = 987654321;
1525
- var _mwcSeeded = false;
1526
- var _mwcW = SEED1;
1527
- var _mwcZ = SEED2;
1528
- function _mwcSeed(seedValue) {
1529
- if (seedValue < 0) {
1530
- seedValue >>>= 0;
1531
- }
1532
- _mwcW = (SEED1 + seedValue) & MaxUInt32;
1533
- _mwcZ = (SEED2 - seedValue) & MaxUInt32;
1534
- _mwcSeeded = true;
1535
- }
1536
- function _autoSeedMwc() {
1537
- try {
1538
- var now = utcNow() & 0x7fffffff;
1539
- _mwcSeed(((Math.random() * UInt32Mask) ^ now) + now);
1540
- }
1541
- catch (e) {
1542
- }
1543
- }
1544
- function random32(signed) {
1545
- var value = 0;
1546
- var c = getCrypto() || getMsCrypto();
1547
- if (c && c.getRandomValues) {
1548
- value = c.getRandomValues(new Uint32Array(1))[0] & MaxUInt32;
1549
- }
1550
- if (value === 0 && isIE()) {
1551
- if (!_mwcSeeded) {
1552
- _autoSeedMwc();
1553
- }
1554
- value = mwcRandom32() & MaxUInt32;
1555
- }
1556
- if (value === 0) {
1557
- value = Math.floor((UInt32Mask * Math.random()) | 0);
1558
- }
1559
- if (!signed) {
1560
- value >>>= 0;
1561
- }
1562
- return value;
1339
+ if (value === 0) {
1340
+ value = Math.floor((UInt32Mask * Math.random()) | 0);
1341
+ }
1342
+ if (!signed) {
1343
+ value >>>= 0;
1344
+ }
1345
+ return value;
1563
1346
  }
1564
1347
  function mwcRandom32(signed) {
1565
1348
  _mwcZ = (36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16)) & MaxUInt32;
@@ -2147,6 +1930,7 @@ function _createAndUseHandler(state, configHandler) {
2147
1930
  configHandler = null;
2148
1931
  }
2149
1932
  };
1933
+ objDefine(handler, "toJSON", { v: function () { return "WatcherHandler" + (handler.fn ? "" : "[X]"); } });
2150
1934
  state.use(handler, configHandler);
2151
1935
  return handler;
2152
1936
  }
@@ -2264,6 +2048,207 @@ function cfgDfMerge(defaultValue) {
2264
2048
  };
2265
2049
  }
2266
2050
 
2051
+ var _aiNamespace = null;
2052
+ function _getExtensionNamespace() {
2053
+ var target = getInst("Microsoft");
2054
+ if (target) {
2055
+ _aiNamespace = target["ApplicationInsights"];
2056
+ }
2057
+ return _aiNamespace;
2058
+ }
2059
+ function getDebugExt(config) {
2060
+ var ns = _aiNamespace;
2061
+ if (!ns && config.disableDbgExt !== true) {
2062
+ ns = _aiNamespace || _getExtensionNamespace();
2063
+ }
2064
+ return ns ? ns["ChromeDbgExt"] : null;
2065
+ }
2066
+
2067
+ var _a$3;
2068
+ var STR_WARN_TO_CONSOLE = "warnToConsole";
2069
+ var AiNonUserActionablePrefix = "AI (Internal): ";
2070
+ var AiUserActionablePrefix = "AI: ";
2071
+ var AIInternalMessagePrefix = "AITR_";
2072
+ var defaultValues$1 = {
2073
+ loggingLevelConsole: 0,
2074
+ loggingLevelTelemetry: 1,
2075
+ maxMessageLimit: 25,
2076
+ enableDebug: false
2077
+ };
2078
+ var _logFuncs = (_a$3 = {},
2079
+ _a$3[0 ] = null,
2080
+ _a$3[1 ] = "errorToConsole",
2081
+ _a$3[2 ] = STR_WARN_TO_CONSOLE,
2082
+ _a$3[3 ] = "debugToConsole",
2083
+ _a$3);
2084
+ function _sanitizeDiagnosticText(text) {
2085
+ if (text) {
2086
+ return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
2087
+ }
2088
+ return STR_EMPTY;
2089
+ }
2090
+ function _logToConsole(func, message) {
2091
+ var theConsole = getConsole();
2092
+ if (!!theConsole) {
2093
+ var logFunc = "log";
2094
+ if (theConsole[func]) {
2095
+ logFunc = func;
2096
+ }
2097
+ if (isFunction(theConsole[logFunc])) {
2098
+ theConsole[logFunc](message);
2099
+ }
2100
+ }
2101
+ }
2102
+ var _InternalLogMessage = /** @class */ (function () {
2103
+ function _InternalLogMessage(msgId, msg, isUserAct, properties) {
2104
+ if (isUserAct === void 0) { isUserAct = false; }
2105
+ var _self = this;
2106
+ _self[_DYN_MESSAGE_ID ] = msgId;
2107
+ _self[_DYN_MESSAGE ] =
2108
+ (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
2109
+ msgId;
2110
+ var strProps = STR_EMPTY;
2111
+ if (hasJSON()) {
2112
+ strProps = getJSON().stringify(properties);
2113
+ }
2114
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
2115
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
2116
+ _self[_DYN_MESSAGE ] += diagnosticText;
2117
+ }
2118
+ _InternalLogMessage.dataType = "MessageData";
2119
+ return _InternalLogMessage;
2120
+ }());
2121
+ function safeGetLogger(core, config) {
2122
+ return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
2123
+ }
2124
+ var DiagnosticLogger = /** @class */ (function () {
2125
+ function DiagnosticLogger(config) {
2126
+ this.identifier = "DiagnosticLogger";
2127
+ this.queue = [];
2128
+ var _messageCount = 0;
2129
+ var _messageLogged = {};
2130
+ var _loggingLevelConsole;
2131
+ var _loggingLevelTelemetry;
2132
+ var _maxInternalMessageLimit;
2133
+ var _enableDebug;
2134
+ var _unloadHandler;
2135
+ dynamicProto(DiagnosticLogger, this, function (_self) {
2136
+ _unloadHandler = _setDefaultsFromConfig(config || {});
2137
+ _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
2138
+ _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
2139
+ if (isUserAct === void 0) { isUserAct = false; }
2140
+ var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
2141
+ if (_enableDebug) {
2142
+ throw dumpObj(message);
2143
+ }
2144
+ else {
2145
+ var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;
2146
+ if (!isUndefined(message[_DYN_MESSAGE ])) {
2147
+ if (isUserAct) {
2148
+ var messageKey = +message[_DYN_MESSAGE_ID ];
2149
+ if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
2150
+ _self[logFunc](message[_DYN_MESSAGE ]);
2151
+ _messageLogged[messageKey] = true;
2152
+ }
2153
+ }
2154
+ else {
2155
+ if (_loggingLevelConsole >= severity) {
2156
+ _self[logFunc](message[_DYN_MESSAGE ]);
2157
+ }
2158
+ }
2159
+ _logInternalMessage(severity, message);
2160
+ }
2161
+ else {
2162
+ _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
2163
+ }
2164
+ }
2165
+ };
2166
+ _self.debugToConsole = function (message) {
2167
+ _logToConsole("debug", message);
2168
+ _debugExtMsg("warning", message);
2169
+ };
2170
+ _self[_DYN_WARN_TO_CONSOLE ] = function (message) {
2171
+ _logToConsole("warn", message);
2172
+ _debugExtMsg("warning", message);
2173
+ };
2174
+ _self.errorToConsole = function (message) {
2175
+ _logToConsole("error", message);
2176
+ _debugExtMsg("error", message);
2177
+ };
2178
+ _self.resetInternalMessageCount = function () {
2179
+ _messageCount = 0;
2180
+ _messageLogged = {};
2181
+ };
2182
+ _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
2183
+ _self[_DYN_UNLOAD ] = function (isAsync) {
2184
+ _unloadHandler && _unloadHandler.rm();
2185
+ _unloadHandler = null;
2186
+ };
2187
+ function _logInternalMessage(severity, message) {
2188
+ if (_areInternalMessagesThrottled()) {
2189
+ return;
2190
+ }
2191
+ var logMessage = true;
2192
+ var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
2193
+ if (_messageLogged[messageKey]) {
2194
+ logMessage = false;
2195
+ }
2196
+ else {
2197
+ _messageLogged[messageKey] = true;
2198
+ }
2199
+ if (logMessage) {
2200
+ if (severity <= _loggingLevelTelemetry) {
2201
+ _self.queue[_DYN_PUSH ](message);
2202
+ _messageCount++;
2203
+ _debugExtMsg((severity === 1 ? "error" : "warn"), message);
2204
+ }
2205
+ if (_messageCount === _maxInternalMessageLimit) {
2206
+ var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
2207
+ var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
2208
+ _self.queue[_DYN_PUSH ](throttleMessage);
2209
+ if (severity === 1 ) {
2210
+ _self.errorToConsole(throttleLimitMessage);
2211
+ }
2212
+ else {
2213
+ _self[_DYN_WARN_TO_CONSOLE ](throttleLimitMessage);
2214
+ }
2215
+ }
2216
+ }
2217
+ }
2218
+ function _setDefaultsFromConfig(config) {
2219
+ return onConfigChange(createDynamicConfig(config, defaultValues$1, _self).cfg, function (details) {
2220
+ var config = details.cfg;
2221
+ _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2222
+ _loggingLevelTelemetry = config.loggingLevelTelemetry;
2223
+ _maxInternalMessageLimit = config.maxMessageLimit;
2224
+ _enableDebug = config.enableDebug;
2225
+ });
2226
+ }
2227
+ function _areInternalMessagesThrottled() {
2228
+ return _messageCount >= _maxInternalMessageLimit;
2229
+ }
2230
+ function _debugExtMsg(name, data) {
2231
+ var dbgExt = getDebugExt(config || {});
2232
+ if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
2233
+ dbgExt[_DYN_DIAG_LOG ](name, data);
2234
+ }
2235
+ }
2236
+ });
2237
+ }
2238
+ DiagnosticLogger.__ieDyn=1;
2239
+ return DiagnosticLogger;
2240
+ }());
2241
+ function _getLogger(logger) {
2242
+ return (logger || new DiagnosticLogger());
2243
+ }
2244
+ function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
2245
+ if (isUserAct === void 0) { isUserAct = false; }
2246
+ _getLogger(logger)[_DYN_THROW_INTERNAL ](severity, msgId, msg, properties, isUserAct);
2247
+ }
2248
+ function _logInternalMessage(logger, severity, message) {
2249
+ _getLogger(logger)[_DYN_LOG_INTERNAL_MESSAGE ](severity, message);
2250
+ }
2251
+
2267
2252
  var _a$2, _b;
2268
2253
  var strToGMTString = "toGMTString";
2269
2254
  var strToUTCString = "toUTCString";
@@ -3239,7 +3224,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
3239
3224
  function _setDefaults(config, core, pluginChain) {
3240
3225
  createDynamicConfig(config, defaultValues, safeGetLogger(core));
3241
3226
  if (!pluginChain && core) {
3242
- pluginChain = core[_DYN_GET_PROCESS_TEL_CONT0 ]()[_DYN_GET_NEXT ]();
3227
+ pluginChain = core[_DYN_GET_PROCESS_TEL_CONT2 ]()[_DYN_GET_NEXT ]();
3243
3228
  }
3244
3229
  var nextPlugin = _nextPlugin;
3245
3230
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
@@ -3638,7 +3623,7 @@ var Device = /** @class */ (function () {
3638
3623
  return Device;
3639
3624
  }());
3640
3625
 
3641
- var Version = '3.1.1';
3626
+ var Version = '3.1.3-nightly3.2403-15';
3642
3627
  var Internal = /** @class */ (function () {
3643
3628
  function Internal(config, unloadHookContainer) {
3644
3629
  var _this = this;