@microsoft/applicationinsights-debugplugin-js 2.8.0-beta.2203-15 → 2.8.0-nightly.2204-05

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 (54) hide show
  1. package/browser/{ai.dbg.2.8.0-beta.2203-15.cjs.js → ai.dbg.2.8.0-nightly.2204-05.cjs.js} +278 -363
  2. package/browser/ai.dbg.2.8.0-nightly.2204-05.cjs.js.map +1 -0
  3. package/browser/ai.dbg.2.8.0-nightly.2204-05.cjs.min.js +6 -0
  4. package/browser/ai.dbg.2.8.0-nightly.2204-05.cjs.min.js.map +1 -0
  5. package/browser/{ai.dbg.2.8.0-beta.2203-15.gbl.js → ai.dbg.2.8.0-nightly.2204-05.gbl.js} +278 -363
  6. package/browser/ai.dbg.2.8.0-nightly.2204-05.gbl.js.map +1 -0
  7. package/browser/ai.dbg.2.8.0-nightly.2204-05.gbl.min.js +6 -0
  8. package/browser/ai.dbg.2.8.0-nightly.2204-05.gbl.min.js.map +1 -0
  9. package/browser/ai.dbg.2.8.0-nightly.2204-05.integrity.json +66 -0
  10. package/browser/{ai.dbg.2.8.0-beta.2203-15.js → ai.dbg.2.8.0-nightly.2204-05.js} +278 -363
  11. package/browser/ai.dbg.2.8.0-nightly.2204-05.js.map +1 -0
  12. package/browser/ai.dbg.2.8.0-nightly.2204-05.min.js +6 -0
  13. package/browser/ai.dbg.2.8.0-nightly.2204-05.min.js.map +1 -0
  14. package/browser/ai.dbg.2.cjs.js +277 -362
  15. package/browser/ai.dbg.2.cjs.js.map +1 -1
  16. package/browser/ai.dbg.2.cjs.min.js +2 -2
  17. package/browser/ai.dbg.2.cjs.min.js.map +1 -1
  18. package/browser/ai.dbg.2.gbl.js +277 -362
  19. package/browser/ai.dbg.2.gbl.js.map +1 -1
  20. package/browser/ai.dbg.2.gbl.min.js +2 -2
  21. package/browser/ai.dbg.2.gbl.min.js.map +1 -1
  22. package/browser/ai.dbg.2.js +277 -362
  23. package/browser/ai.dbg.2.js.map +1 -1
  24. package/browser/ai.dbg.2.min.js +2 -2
  25. package/browser/ai.dbg.2.min.js.map +1 -1
  26. package/dist/applicationinsights-debugplugin-js.api.json +14 -8
  27. package/dist/applicationinsights-debugplugin-js.d.ts +1 -1
  28. package/dist/applicationinsights-debugplugin-js.js +277 -362
  29. package/dist/applicationinsights-debugplugin-js.js.map +1 -1
  30. package/dist/applicationinsights-debugplugin-js.min.js +2 -2
  31. package/dist/applicationinsights-debugplugin-js.min.js.map +1 -1
  32. package/dist/applicationinsights-debugplugin-js.rollup.d.ts +1 -1
  33. package/dist-esm/DebugPlugin.js +1 -1
  34. package/dist-esm/applicationinsights-debugplugin-js.js +1 -1
  35. package/dist-esm/components/Dashboard.js +1 -1
  36. package/dist-esm/components/LogEntry.js +1 -1
  37. package/dist-esm/components/debugBins.js +1 -1
  38. package/dist-esm/components/filterList.js +1 -1
  39. package/dist-esm/components/helpers.js +1 -1
  40. package/dist-esm/components/styleNodeSrc.js +1 -1
  41. package/dist-esm/interfaces/IDebugPluginConfig.js +1 -1
  42. package/package.json +4 -4
  43. package/src/DebugPlugin.ts +1 -1
  44. package/types/tsdoc-metadata.json +1 -1
  45. package/browser/ai.dbg.2.8.0-beta.2203-15.cjs.js.map +0 -1
  46. package/browser/ai.dbg.2.8.0-beta.2203-15.cjs.min.js +0 -6
  47. package/browser/ai.dbg.2.8.0-beta.2203-15.cjs.min.js.map +0 -1
  48. package/browser/ai.dbg.2.8.0-beta.2203-15.gbl.js.map +0 -1
  49. package/browser/ai.dbg.2.8.0-beta.2203-15.gbl.min.js +0 -6
  50. package/browser/ai.dbg.2.8.0-beta.2203-15.gbl.min.js.map +0 -1
  51. package/browser/ai.dbg.2.8.0-beta.2203-15.integrity.json +0 -66
  52. package/browser/ai.dbg.2.8.0-beta.2203-15.js.map +0 -1
  53. package/browser/ai.dbg.2.8.0-beta.2203-15.min.js +0 -6
  54. package/browser/ai.dbg.2.8.0-beta.2203-15.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Debug Plugin, 2.8.0-beta.2203-15
2
+ * Application Insights JavaScript SDK - Debug Plugin, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  this.Microsoft = this.Microsoft || {};
@@ -83,247 +83,6 @@ this.Microsoft = this.Microsoft || {};
83
83
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
84
84
  }
85
85
 
86
- /*!
87
- * Microsoft Dynamic Proto Utility, 1.1.4
88
- * Copyright (c) Microsoft and contributors. All rights reserved.
89
- */
90
- var Constructor = 'constructor';
91
- var Prototype = 'prototype';
92
- var strFunction = 'function';
93
- var DynInstFuncTable = '_dynInstFuncs';
94
- var DynProxyTag = '_isDynProxy';
95
- var DynClassName = '_dynClass';
96
- var DynClassNamePrefix = '_dynCls$';
97
- var DynInstChkTag = '_dynInstChk';
98
- var DynAllowInstChkTag = DynInstChkTag;
99
- var DynProtoDefaultOptions = '_dfOpts';
100
- var UnknownValue = '_unknown_';
101
- var str__Proto$1 = "__proto__";
102
- var strUseBaseInst = 'useBaseInst';
103
- var strSetInstFuncs = 'setInstFuncs';
104
- var Obj = Object;
105
- var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
106
- var _dynamicNames = 0;
107
- function _hasOwnProperty(obj, prop) {
108
- return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
109
- }
110
- function _isObjectOrArrayPrototype(target) {
111
- return target && (target === Obj[Prototype] || target === Array[Prototype]);
112
- }
113
- function _isObjectArrayOrFunctionPrototype(target) {
114
- return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
115
- }
116
- function _getObjProto$1(target) {
117
- if (target) {
118
- if (_objGetPrototypeOf$1) {
119
- return _objGetPrototypeOf$1(target);
120
- }
121
- var newProto = target[str__Proto$1] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
122
- if (newProto) {
123
- return newProto;
124
- }
125
- }
126
- return null;
127
- }
128
- function _forEachProp(target, func) {
129
- var props = [];
130
- var getOwnProps = Obj["getOwnPropertyNames"];
131
- if (getOwnProps) {
132
- props = getOwnProps(target);
133
- }
134
- else {
135
- for (var name_1 in target) {
136
- if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
137
- props.push(name_1);
138
- }
139
- }
140
- }
141
- if (props && props.length > 0) {
142
- for (var lp = 0; lp < props.length; lp++) {
143
- func(props[lp]);
144
- }
145
- }
146
- }
147
- function _isDynamicCandidate(target, funcName, skipOwn) {
148
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
149
- }
150
- function _throwTypeError(message) {
151
- throw new TypeError("DynamicProto: " + message);
152
- }
153
- function _getInstanceFuncs(thisTarget) {
154
- var instFuncs = {};
155
- _forEachProp(thisTarget, function (name) {
156
- if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
157
- instFuncs[name] = thisTarget[name];
158
- }
159
- });
160
- return instFuncs;
161
- }
162
- function _hasVisited(values, value) {
163
- for (var lp = values.length - 1; lp >= 0; lp--) {
164
- if (values[lp] === value) {
165
- return true;
166
- }
167
- }
168
- return false;
169
- }
170
- function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
171
- function _instFuncProxy(target, funcHost, funcName) {
172
- var theFunc = funcHost[funcName];
173
- if (theFunc[DynProxyTag] && useBaseInst) {
174
- var instFuncTable = target[DynInstFuncTable] || {};
175
- if (instFuncTable[DynAllowInstChkTag] !== false) {
176
- theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
177
- }
178
- }
179
- return function () {
180
- return theFunc.apply(target, arguments);
181
- };
182
- }
183
- var baseFuncs = {};
184
- _forEachProp(instFuncs, function (name) {
185
- baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
186
- });
187
- var baseProto = _getObjProto$1(classProto);
188
- var visited = [];
189
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
190
- _forEachProp(baseProto, function (name) {
191
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf$1)) {
192
- baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
193
- }
194
- });
195
- visited.push(baseProto);
196
- baseProto = _getObjProto$1(baseProto);
197
- }
198
- return baseFuncs;
199
- }
200
- function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
201
- var instFunc = null;
202
- if (target && _hasOwnProperty(proto, DynClassName)) {
203
- var instFuncTable = target[DynInstFuncTable] || {};
204
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
205
- if (!instFunc) {
206
- _throwTypeError("Missing [" + funcName + "] " + strFunction);
207
- }
208
- if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
209
- var canAddInst = !_hasOwnProperty(target, funcName);
210
- var objProto = _getObjProto$1(target);
211
- var visited = [];
212
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
213
- var protoFunc = objProto[funcName];
214
- if (protoFunc) {
215
- canAddInst = (protoFunc === currentDynProtoProxy);
216
- break;
217
- }
218
- visited.push(objProto);
219
- objProto = _getObjProto$1(objProto);
220
- }
221
- try {
222
- if (canAddInst) {
223
- target[funcName] = instFunc;
224
- }
225
- instFunc[DynInstChkTag] = 1;
226
- }
227
- catch (e) {
228
- instFuncTable[DynAllowInstChkTag] = false;
229
- }
230
- }
231
- }
232
- return instFunc;
233
- }
234
- function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
235
- var protoFunc = proto[funcName];
236
- if (protoFunc === currentDynProtoProxy) {
237
- protoFunc = _getObjProto$1(proto)[funcName];
238
- }
239
- if (typeof protoFunc !== strFunction) {
240
- _throwTypeError("[" + funcName + "] is not a " + strFunction);
241
- }
242
- return protoFunc;
243
- }
244
- function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
245
- function _createDynamicPrototype(proto, funcName) {
246
- var dynProtoProxy = function () {
247
- var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
248
- return instFunc.apply(this, arguments);
249
- };
250
- dynProtoProxy[DynProxyTag] = 1;
251
- return dynProtoProxy;
252
- }
253
- if (!_isObjectOrArrayPrototype(proto)) {
254
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
255
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
256
- if (instFuncTable[DynAllowInstChkTag] !== false) {
257
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
258
- }
259
- _forEachProp(target, function (name) {
260
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
261
- instFuncs_1[name] = target[name];
262
- delete target[name];
263
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
264
- proto[name] = _createDynamicPrototype(proto, name);
265
- }
266
- }
267
- });
268
- }
269
- }
270
- function _checkPrototype(classProto, thisTarget) {
271
- if (_objGetPrototypeOf$1) {
272
- var visited = [];
273
- var thisProto = _getObjProto$1(thisTarget);
274
- while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
275
- if (thisProto === classProto) {
276
- return true;
277
- }
278
- visited.push(thisProto);
279
- thisProto = _getObjProto$1(thisProto);
280
- }
281
- }
282
- return false;
283
- }
284
- function _getObjName(target, unknownValue) {
285
- if (_hasOwnProperty(target, Prototype)) {
286
- return target.name || unknownValue || UnknownValue;
287
- }
288
- return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
289
- }
290
- function dynamicProto(theClass, target, delegateFunc, options) {
291
- if (!_hasOwnProperty(theClass, Prototype)) {
292
- _throwTypeError("theClass is an invalid class definition.");
293
- }
294
- var classProto = theClass[Prototype];
295
- if (!_checkPrototype(classProto, target)) {
296
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
297
- }
298
- var className = null;
299
- if (_hasOwnProperty(classProto, DynClassName)) {
300
- className = classProto[DynClassName];
301
- }
302
- else {
303
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
304
- _dynamicNames++;
305
- classProto[DynClassName] = className;
306
- }
307
- var perfOptions = dynamicProto[DynProtoDefaultOptions];
308
- var useBaseInst = !!perfOptions[strUseBaseInst];
309
- if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
310
- useBaseInst = !!options[strUseBaseInst];
311
- }
312
- var instFuncs = _getInstanceFuncs(target);
313
- var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
314
- delegateFunc(target, baseFuncs);
315
- var setInstanceFunc = !!_objGetPrototypeOf$1 && !!perfOptions[strSetInstFuncs];
316
- if (setInstanceFunc && options) {
317
- setInstanceFunc = !!options[strSetInstFuncs];
318
- }
319
- _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
320
- }
321
- var perfDefaults = {
322
- setInstFuncs: true,
323
- useBaseInst: true
324
- };
325
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
326
-
327
86
  var strEmpty$1 = "";
328
87
  var strSetNextPlugin = "setNextPlugin";
329
88
  var strIsInitialized = "isInitialized";
@@ -340,7 +99,7 @@ this.Microsoft = this.Microsoft || {};
340
99
  var strReduce = "reduce";
341
100
  var cStrTrim = "trim";
342
101
  var strToString = "toString";
343
- var str__Proto = "__proto__";
102
+ var str__Proto$1 = "__proto__";
344
103
  var strConstructor$1 = "constructor";
345
104
  var _objDefineProperty$1 = ObjDefineProperty;
346
105
  var _objFreeze = ObjClass.freeze;
@@ -357,13 +116,13 @@ this.Microsoft = this.Microsoft || {};
357
116
  var rCamelCase = /-([a-z])/g;
358
117
  var rNormalizeInvalid = /([^\w\d_$])/g;
359
118
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
360
- var _objGetPrototypeOf = Object["getPrototypeOf"];
361
- function _getObjProto(target) {
119
+ var _objGetPrototypeOf$1 = Object["getPrototypeOf"];
120
+ function _getObjProto$1(target) {
362
121
  if (target) {
363
- if (_objGetPrototypeOf) {
364
- return _objGetPrototypeOf(target);
122
+ if (_objGetPrototypeOf$1) {
123
+ return _objGetPrototypeOf$1(target);
365
124
  }
366
- var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor$1];
125
+ var newProto = target[str__Proto$1] || target[strShimPrototype] || target[strConstructor$1];
367
126
  if (newProto) {
368
127
  return newProto;
369
128
  }
@@ -470,7 +229,7 @@ this.Microsoft = this.Microsoft || {};
470
229
  function isPlainObject(value) {
471
230
  var result = false;
472
231
  if (value && typeof value === "object") {
473
- var proto = _objGetPrototypeOf ? _objGetPrototypeOf(value) : _getObjProto(value);
232
+ var proto = _objGetPrototypeOf$1 ? _objGetPrototypeOf$1(value) : _getObjProto$1(value);
474
233
  if (!proto) {
475
234
  result = true;
476
235
  }
@@ -651,6 +410,16 @@ this.Microsoft = this.Microsoft || {};
651
410
  function _doNothing(value) {
652
411
  return value;
653
412
  }
413
+ function deepFreeze(obj) {
414
+ if (_objFreeze) {
415
+ objForEachKey(obj, function (name, value) {
416
+ if (isArray(value) || isObject(value)) {
417
+ _objFreeze(value);
418
+ }
419
+ });
420
+ }
421
+ return objFreeze(obj);
422
+ }
654
423
  var objFreeze = _objFreeze || _doNothing;
655
424
  function dateNow() {
656
425
  var dt = Date;
@@ -676,9 +445,6 @@ this.Microsoft = this.Microsoft || {};
676
445
  function isTruthy(value) {
677
446
  return !!value;
678
447
  }
679
- function throwError(message) {
680
- throw new Error(message);
681
- }
682
448
  function _createProxyFunction(source, funcName) {
683
449
  var srcFunc = null;
684
450
  var src = null;
@@ -699,24 +465,12 @@ this.Microsoft = this.Microsoft || {};
699
465
  };
700
466
  }
701
467
  function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {
702
- if (overwriteTarget === void 0) { overwriteTarget = true; }
703
468
  if (target && name && source) {
704
- if (overwriteTarget || isUndefined(target[name])) {
469
+ if (overwriteTarget !== false || isUndefined(target[name])) {
705
470
  target[name] = _createProxyFunction(source, theFunc);
706
471
  }
707
472
  }
708
473
  }
709
- function createEnumStyle(values) {
710
- var enumClass = {};
711
- objForEachKey(values, function (field, value) {
712
- enumClass[field] = value;
713
- if (!isUndefined(enumClass[value])) {
714
- throwError("[" + value + "] exists for " + field);
715
- }
716
- enumClass[value] = field;
717
- });
718
- return objFreeze(enumClass);
719
- }
720
474
  function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
721
475
  var theArgs = arguments;
722
476
  var extended = theArgs[0] || {};
@@ -762,6 +516,256 @@ this.Microsoft = this.Microsoft || {};
762
516
  return extended;
763
517
  }
764
518
 
519
+ function createEnumStyle(values) {
520
+ var enumClass = {};
521
+ objForEachKey(values, function (field, value) {
522
+ enumClass[field] = value;
523
+ enumClass[value] = field;
524
+ });
525
+ return deepFreeze(enumClass);
526
+ }
527
+
528
+ /*!
529
+ * Microsoft Dynamic Proto Utility, 1.1.4
530
+ * Copyright (c) Microsoft and contributors. All rights reserved.
531
+ */
532
+ var Constructor = 'constructor';
533
+ var Prototype = 'prototype';
534
+ var strFunction = 'function';
535
+ var DynInstFuncTable = '_dynInstFuncs';
536
+ var DynProxyTag = '_isDynProxy';
537
+ var DynClassName = '_dynClass';
538
+ var DynClassNamePrefix = '_dynCls$';
539
+ var DynInstChkTag = '_dynInstChk';
540
+ var DynAllowInstChkTag = DynInstChkTag;
541
+ var DynProtoDefaultOptions = '_dfOpts';
542
+ var UnknownValue = '_unknown_';
543
+ var str__Proto = "__proto__";
544
+ var strUseBaseInst = 'useBaseInst';
545
+ var strSetInstFuncs = 'setInstFuncs';
546
+ var Obj = Object;
547
+ var _objGetPrototypeOf = Obj["getPrototypeOf"];
548
+ var _dynamicNames = 0;
549
+ function _hasOwnProperty(obj, prop) {
550
+ return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
551
+ }
552
+ function _isObjectOrArrayPrototype(target) {
553
+ return target && (target === Obj[Prototype] || target === Array[Prototype]);
554
+ }
555
+ function _isObjectArrayOrFunctionPrototype(target) {
556
+ return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
557
+ }
558
+ function _getObjProto(target) {
559
+ if (target) {
560
+ if (_objGetPrototypeOf) {
561
+ return _objGetPrototypeOf(target);
562
+ }
563
+ var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
564
+ if (newProto) {
565
+ return newProto;
566
+ }
567
+ }
568
+ return null;
569
+ }
570
+ function _forEachProp(target, func) {
571
+ var props = [];
572
+ var getOwnProps = Obj["getOwnPropertyNames"];
573
+ if (getOwnProps) {
574
+ props = getOwnProps(target);
575
+ }
576
+ else {
577
+ for (var name_1 in target) {
578
+ if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
579
+ props.push(name_1);
580
+ }
581
+ }
582
+ }
583
+ if (props && props.length > 0) {
584
+ for (var lp = 0; lp < props.length; lp++) {
585
+ func(props[lp]);
586
+ }
587
+ }
588
+ }
589
+ function _isDynamicCandidate(target, funcName, skipOwn) {
590
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
591
+ }
592
+ function _throwTypeError(message) {
593
+ throw new TypeError("DynamicProto: " + message);
594
+ }
595
+ function _getInstanceFuncs(thisTarget) {
596
+ var instFuncs = {};
597
+ _forEachProp(thisTarget, function (name) {
598
+ if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
599
+ instFuncs[name] = thisTarget[name];
600
+ }
601
+ });
602
+ return instFuncs;
603
+ }
604
+ function _hasVisited(values, value) {
605
+ for (var lp = values.length - 1; lp >= 0; lp--) {
606
+ if (values[lp] === value) {
607
+ return true;
608
+ }
609
+ }
610
+ return false;
611
+ }
612
+ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
613
+ function _instFuncProxy(target, funcHost, funcName) {
614
+ var theFunc = funcHost[funcName];
615
+ if (theFunc[DynProxyTag] && useBaseInst) {
616
+ var instFuncTable = target[DynInstFuncTable] || {};
617
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
618
+ theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
619
+ }
620
+ }
621
+ return function () {
622
+ return theFunc.apply(target, arguments);
623
+ };
624
+ }
625
+ var baseFuncs = {};
626
+ _forEachProp(instFuncs, function (name) {
627
+ baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
628
+ });
629
+ var baseProto = _getObjProto(classProto);
630
+ var visited = [];
631
+ while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
632
+ _forEachProp(baseProto, function (name) {
633
+ if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
634
+ baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
635
+ }
636
+ });
637
+ visited.push(baseProto);
638
+ baseProto = _getObjProto(baseProto);
639
+ }
640
+ return baseFuncs;
641
+ }
642
+ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
643
+ var instFunc = null;
644
+ if (target && _hasOwnProperty(proto, DynClassName)) {
645
+ var instFuncTable = target[DynInstFuncTable] || {};
646
+ instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
647
+ if (!instFunc) {
648
+ _throwTypeError("Missing [" + funcName + "] " + strFunction);
649
+ }
650
+ if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
651
+ var canAddInst = !_hasOwnProperty(target, funcName);
652
+ var objProto = _getObjProto(target);
653
+ var visited = [];
654
+ while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
655
+ var protoFunc = objProto[funcName];
656
+ if (protoFunc) {
657
+ canAddInst = (protoFunc === currentDynProtoProxy);
658
+ break;
659
+ }
660
+ visited.push(objProto);
661
+ objProto = _getObjProto(objProto);
662
+ }
663
+ try {
664
+ if (canAddInst) {
665
+ target[funcName] = instFunc;
666
+ }
667
+ instFunc[DynInstChkTag] = 1;
668
+ }
669
+ catch (e) {
670
+ instFuncTable[DynAllowInstChkTag] = false;
671
+ }
672
+ }
673
+ }
674
+ return instFunc;
675
+ }
676
+ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
677
+ var protoFunc = proto[funcName];
678
+ if (protoFunc === currentDynProtoProxy) {
679
+ protoFunc = _getObjProto(proto)[funcName];
680
+ }
681
+ if (typeof protoFunc !== strFunction) {
682
+ _throwTypeError("[" + funcName + "] is not a " + strFunction);
683
+ }
684
+ return protoFunc;
685
+ }
686
+ function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
687
+ function _createDynamicPrototype(proto, funcName) {
688
+ var dynProtoProxy = function () {
689
+ var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
690
+ return instFunc.apply(this, arguments);
691
+ };
692
+ dynProtoProxy[DynProxyTag] = 1;
693
+ return dynProtoProxy;
694
+ }
695
+ if (!_isObjectOrArrayPrototype(proto)) {
696
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
697
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
698
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
699
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
700
+ }
701
+ _forEachProp(target, function (name) {
702
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
703
+ instFuncs_1[name] = target[name];
704
+ delete target[name];
705
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
706
+ proto[name] = _createDynamicPrototype(proto, name);
707
+ }
708
+ }
709
+ });
710
+ }
711
+ }
712
+ function _checkPrototype(classProto, thisTarget) {
713
+ if (_objGetPrototypeOf) {
714
+ var visited = [];
715
+ var thisProto = _getObjProto(thisTarget);
716
+ while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
717
+ if (thisProto === classProto) {
718
+ return true;
719
+ }
720
+ visited.push(thisProto);
721
+ thisProto = _getObjProto(thisProto);
722
+ }
723
+ }
724
+ return false;
725
+ }
726
+ function _getObjName(target, unknownValue) {
727
+ if (_hasOwnProperty(target, Prototype)) {
728
+ return target.name || unknownValue || UnknownValue;
729
+ }
730
+ return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
731
+ }
732
+ function dynamicProto(theClass, target, delegateFunc, options) {
733
+ if (!_hasOwnProperty(theClass, Prototype)) {
734
+ _throwTypeError("theClass is an invalid class definition.");
735
+ }
736
+ var classProto = theClass[Prototype];
737
+ if (!_checkPrototype(classProto, target)) {
738
+ _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
739
+ }
740
+ var className = null;
741
+ if (_hasOwnProperty(classProto, DynClassName)) {
742
+ className = classProto[DynClassName];
743
+ }
744
+ else {
745
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
746
+ _dynamicNames++;
747
+ classProto[DynClassName] = className;
748
+ }
749
+ var perfOptions = dynamicProto[DynProtoDefaultOptions];
750
+ var useBaseInst = !!perfOptions[strUseBaseInst];
751
+ if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
752
+ useBaseInst = !!options[strUseBaseInst];
753
+ }
754
+ var instFuncs = _getInstanceFuncs(target);
755
+ var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
756
+ delegateFunc(target, baseFuncs);
757
+ var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
758
+ if (setInstanceFunc && options) {
759
+ setInstanceFunc = !!options[strSetInstFuncs];
760
+ }
761
+ _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
762
+ }
763
+ var perfDefaults = {
764
+ setInstFuncs: true,
765
+ useBaseInst: true
766
+ };
767
+ dynamicProto[DynProtoDefaultOptions] = perfDefaults;
768
+
765
769
  var strWindow = "window";
766
770
  var strDocument = "document";
767
771
  var strDocumentMode = "documentMode";
@@ -1264,7 +1268,7 @@ this.Microsoft = this.Microsoft || {};
1264
1268
  }
1265
1269
 
1266
1270
  var _objDefineProperty = ObjDefineProperty;
1267
- var version = "2.8.0-beta.2203-15";
1271
+ var version = "2.8.0-nightly.2204-05";
1268
1272
  var instanceName = "." + newId(6);
1269
1273
  var _dataUid = 0;
1270
1274
  function _createAccessor(target, prop, value) {
@@ -2308,95 +2312,6 @@ this.Microsoft = this.Microsoft || {};
2308
2312
  return _legacyCookieMgr(null, logger).del(name);
2309
2313
  }
2310
2314
 
2311
- createEnumStyle({
2312
- CRITICAL: 1 ,
2313
- WARNING: 2
2314
- });
2315
- var _InternalMessageId = createEnumStyle({
2316
- BrowserDoesNotSupportLocalStorage: 0 ,
2317
- BrowserCannotReadLocalStorage: 1 ,
2318
- BrowserCannotReadSessionStorage: 2 ,
2319
- BrowserCannotWriteLocalStorage: 3 ,
2320
- BrowserCannotWriteSessionStorage: 4 ,
2321
- BrowserFailedRemovalFromLocalStorage: 5 ,
2322
- BrowserFailedRemovalFromSessionStorage: 6 ,
2323
- CannotSendEmptyTelemetry: 7 ,
2324
- ClientPerformanceMathError: 8 ,
2325
- ErrorParsingAISessionCookie: 9 ,
2326
- ErrorPVCalc: 10 ,
2327
- ExceptionWhileLoggingError: 11 ,
2328
- FailedAddingTelemetryToBuffer: 12 ,
2329
- FailedMonitorAjaxAbort: 13 ,
2330
- FailedMonitorAjaxDur: 14 ,
2331
- FailedMonitorAjaxOpen: 15 ,
2332
- FailedMonitorAjaxRSC: 16 ,
2333
- FailedMonitorAjaxSend: 17 ,
2334
- FailedMonitorAjaxGetCorrelationHeader: 18 ,
2335
- FailedToAddHandlerForOnBeforeUnload: 19 ,
2336
- FailedToSendQueuedTelemetry: 20 ,
2337
- FailedToReportDataLoss: 21 ,
2338
- FlushFailed: 22 ,
2339
- MessageLimitPerPVExceeded: 23 ,
2340
- MissingRequiredFieldSpecification: 24 ,
2341
- NavigationTimingNotSupported: 25 ,
2342
- OnError: 26 ,
2343
- SessionRenewalDateIsZero: 27 ,
2344
- SenderNotInitialized: 28 ,
2345
- StartTrackEventFailed: 29 ,
2346
- StopTrackEventFailed: 30 ,
2347
- StartTrackFailed: 31 ,
2348
- StopTrackFailed: 32 ,
2349
- TelemetrySampledAndNotSent: 33 ,
2350
- TrackEventFailed: 34 ,
2351
- TrackExceptionFailed: 35 ,
2352
- TrackMetricFailed: 36 ,
2353
- TrackPVFailed: 37 ,
2354
- TrackPVFailedCalc: 38 ,
2355
- TrackTraceFailed: 39 ,
2356
- TransmissionFailed: 40 ,
2357
- FailedToSetStorageBuffer: 41 ,
2358
- FailedToRestoreStorageBuffer: 42 ,
2359
- InvalidBackendResponse: 43 ,
2360
- FailedToFixDepricatedValues: 44 ,
2361
- InvalidDurationValue: 45 ,
2362
- TelemetryEnvelopeInvalid: 46 ,
2363
- CreateEnvelopeError: 47 ,
2364
- CannotSerializeObject: 48 ,
2365
- CannotSerializeObjectNonSerializable: 49 ,
2366
- CircularReferenceDetected: 50 ,
2367
- ClearAuthContextFailed: 51 ,
2368
- ExceptionTruncated: 52 ,
2369
- IllegalCharsInName: 53 ,
2370
- ItemNotInArray: 54 ,
2371
- MaxAjaxPerPVExceeded: 55 ,
2372
- MessageTruncated: 56 ,
2373
- NameTooLong: 57 ,
2374
- SampleRateOutOfRange: 58 ,
2375
- SetAuthContextFailed: 59 ,
2376
- SetAuthContextFailedAccountName: 60 ,
2377
- StringValueTooLong: 61 ,
2378
- StartCalledMoreThanOnce: 62 ,
2379
- StopCalledWithoutStart: 63 ,
2380
- TelemetryInitializerFailed: 64 ,
2381
- TrackArgumentsNotSpecified: 65 ,
2382
- UrlTooLong: 66 ,
2383
- SessionStorageBufferFull: 67 ,
2384
- CannotAccessCookie: 68 ,
2385
- IdTooLong: 69 ,
2386
- InvalidEvent: 70 ,
2387
- FailedMonitorAjaxSetRequestHeader: 71 ,
2388
- SendBrowserInfoOnUserInit: 72 ,
2389
- PluginException: 73 ,
2390
- NotificationException: 74 ,
2391
- SnippetScriptLoadFailure: 99 ,
2392
- InvalidInstrumentationKey: 100 ,
2393
- CannotParseAiBlobValue: 101 ,
2394
- InvalidContentBlob: 102 ,
2395
- TrackPageActionEventFailed: 103 ,
2396
- FailedAddingCustomDefinedRequestContext: 104 ,
2397
- InMemoryStorageBufferFull: 105
2398
- });
2399
-
2400
2315
  var aiInstrumentHooks = "_aiHooks";
2401
2316
  var cbNames = [
2402
2317
  "req", "rsp", "hkErr", "fnErr"
@@ -2488,7 +2403,7 @@ this.Microsoft = this.Microsoft || {};
2488
2403
  owner = target;
2489
2404
  }
2490
2405
  else if (checkPrototype) {
2491
- owner = _getOwner(_getObjProto(target), name, false);
2406
+ owner = _getOwner(_getObjProto$1(target), name, false);
2492
2407
  }
2493
2408
  }
2494
2409
  return owner;
@@ -2649,7 +2564,7 @@ this.Microsoft = this.Microsoft || {};
2649
2564
  }
2650
2565
  catch (e) {
2651
2566
  _canUseLocalStorage = false;
2652
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotReadLocalStorage, "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2567
+ _throwInternal(logger, 2 , 1 , "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2653
2568
  }
2654
2569
  }
2655
2570
  return null;
@@ -2663,7 +2578,7 @@ this.Microsoft = this.Microsoft || {};
2663
2578
  }
2664
2579
  catch (e) {
2665
2580
  _canUseLocalStorage = false;
2666
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotWriteLocalStorage, "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2581
+ _throwInternal(logger, 2 , 3 , "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2667
2582
  }
2668
2583
  }
2669
2584
  return false;
@@ -2677,7 +2592,7 @@ this.Microsoft = this.Microsoft || {};
2677
2592
  }
2678
2593
  catch (e) {
2679
2594
  _canUseLocalStorage = false;
2680
- _throwInternal(logger, 2 , _InternalMessageId.BrowserFailedRemovalFromLocalStorage, "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2595
+ _throwInternal(logger, 2 , 5 , "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2681
2596
  }
2682
2597
  }
2683
2598
  return false;
@@ -2705,7 +2620,7 @@ this.Microsoft = this.Microsoft || {};
2705
2620
  }
2706
2621
  catch (e) {
2707
2622
  _canUseSessionStorage = false;
2708
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotReadSessionStorage, "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2623
+ _throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2709
2624
  }
2710
2625
  }
2711
2626
  return null;
@@ -2719,7 +2634,7 @@ this.Microsoft = this.Microsoft || {};
2719
2634
  }
2720
2635
  catch (e) {
2721
2636
  _canUseSessionStorage = false;
2722
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotWriteSessionStorage, "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2637
+ _throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2723
2638
  }
2724
2639
  }
2725
2640
  return false;
@@ -2733,7 +2648,7 @@ this.Microsoft = this.Microsoft || {};
2733
2648
  }
2734
2649
  catch (e) {
2735
2650
  _canUseSessionStorage = false;
2736
- _throwInternal(logger, 2 , _InternalMessageId.BrowserFailedRemovalFromSessionStorage, "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2651
+ _throwInternal(logger, 2 , 6 , "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2737
2652
  }
2738
2653
  }
2739
2654
  return false;