@microsoft/applicationinsights-debugplugin-js 3.0.0-beta.2208-14 → 3.0.0-beta.2208-16
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/browser/{ai.dbg.3.0.0-beta.2208-14.cjs.js → ai.dbg.3.0.0-beta.2208-16.cjs.js} +401 -1243
- package/browser/ai.dbg.3.0.0-beta.2208-16.cjs.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.cjs.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.cjs.min.js.map +1 -0
- package/browser/{ai.dbg.3.0.0-beta.2208-14.gbl.js → ai.dbg.3.0.0-beta.2208-16.gbl.js} +401 -1243
- package/browser/ai.dbg.3.0.0-beta.2208-16.gbl.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.gbl.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.gbl.min.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.integrity.json +66 -0
- package/browser/{ai.dbg.3.0.0-beta.2208-14.js → ai.dbg.3.0.0-beta.2208-16.js} +401 -1243
- package/browser/ai.dbg.3.0.0-beta.2208-16.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-16.min.js.map +1 -0
- package/browser/ai.dbg.3.cjs.js +400 -1242
- package/browser/ai.dbg.3.cjs.js.map +1 -1
- package/browser/ai.dbg.3.cjs.min.js +2 -2
- package/browser/ai.dbg.3.cjs.min.js.map +1 -1
- package/browser/ai.dbg.3.gbl.js +400 -1242
- package/browser/ai.dbg.3.gbl.js.map +1 -1
- package/browser/ai.dbg.3.gbl.min.js +2 -2
- package/browser/ai.dbg.3.gbl.min.js.map +1 -1
- package/browser/ai.dbg.3.js +400 -1242
- package/browser/ai.dbg.3.js.map +1 -1
- package/browser/ai.dbg.3.min.js +2 -2
- package/browser/ai.dbg.3.min.js.map +1 -1
- package/dist/applicationinsights-debugplugin-js.api.json +1 -1
- package/dist/applicationinsights-debugplugin-js.d.ts +1 -1
- package/dist/applicationinsights-debugplugin-js.js +400 -1242
- package/dist/applicationinsights-debugplugin-js.js.map +1 -1
- package/dist/applicationinsights-debugplugin-js.min.js +2 -2
- package/dist/applicationinsights-debugplugin-js.min.js.map +1 -1
- package/dist/applicationinsights-debugplugin-js.rollup.d.ts +1 -1
- package/dist-esm/DebugPlugin.js +2 -2
- package/dist-esm/DebugPlugin.js.map +1 -1
- package/dist-esm/__DynamicConstants.js +4 -5
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-debugplugin-js.js +1 -1
- package/dist-esm/components/Dashboard.js +1 -1
- package/dist-esm/components/LogEntry.js +5 -6
- package/dist-esm/components/LogEntry.js.map +1 -1
- package/dist-esm/components/debugBins.js +1 -1
- package/dist-esm/components/filterList.js +1 -1
- package/dist-esm/components/helpers.js +9 -10
- package/dist-esm/components/helpers.js.map +1 -1
- package/dist-esm/components/styleNodeSrc.js +11 -11
- package/dist-esm/components/styleNodeSrc.js.map +1 -1
- package/dist-esm/interfaces/IDebugPluginConfig.js +1 -1
- package/package.json +6 -5
- package/src/__DynamicConstants.ts +3 -4
- package/src/components/LogEntry.ts +3 -4
- package/src/components/helpers.ts +7 -8
- package/src/components/styleNodeSrc.ts +14 -14
- package/tsconfig.json +1 -1
- package/types/__DynamicConstants.d.ts +0 -1
- package/types/tsdoc-metadata.json +1 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.cjs.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.cjs.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-14.cjs.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.gbl.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.gbl.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-14.gbl.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.integrity.json +0 -66
- package/browser/ai.dbg.3.0.0-beta.2208-14.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-14.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-14.min.js.map +0 -1
package/browser/ai.dbg.3.gbl.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Debug Plugin, 3.0.0-beta.2208-
|
|
2
|
+
* Application Insights JavaScript SDK - Debug Plugin, 3.0.0-beta.2208-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
this.Microsoft = this.Microsoft || {};
|
|
@@ -11,32 +11,32 @@ this.Microsoft = this.Microsoft || {};
|
|
|
11
11
|
var strShimUndefined = "undefined";
|
|
12
12
|
var strShimPrototype = "prototype";
|
|
13
13
|
var strShimHasOwnProperty = "hasOwnProperty";
|
|
14
|
-
var ObjClass = Object;
|
|
15
|
-
var ObjProto = ObjClass[strShimPrototype];
|
|
16
|
-
var ObjCreate = ObjClass["create"];
|
|
17
|
-
var ObjDefineProperty = ObjClass["defineProperty"];
|
|
18
|
-
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
|
|
14
|
+
var ObjClass$1 = Object;
|
|
15
|
+
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
16
|
+
var ObjCreate = ObjClass$1["create"];
|
|
17
|
+
var ObjDefineProperty = ObjClass$1["defineProperty"];
|
|
18
|
+
var ObjHasOwnProperty = ObjProto$1[strShimHasOwnProperty];
|
|
19
19
|
|
|
20
|
-
var _cachedGlobal = null;
|
|
21
|
-
function getGlobal(useCached) {
|
|
20
|
+
var _cachedGlobal$1 = null;
|
|
21
|
+
function getGlobal$1(useCached) {
|
|
22
22
|
if (useCached === void 0) { useCached = true; }
|
|
23
|
-
if (!_cachedGlobal || !useCached) {
|
|
23
|
+
if (!_cachedGlobal$1 || !useCached) {
|
|
24
24
|
if (typeof globalThis !== strShimUndefined && globalThis) {
|
|
25
|
-
_cachedGlobal = globalThis;
|
|
25
|
+
_cachedGlobal$1 = globalThis;
|
|
26
26
|
}
|
|
27
27
|
if (typeof self !== strShimUndefined && self) {
|
|
28
|
-
_cachedGlobal = self;
|
|
28
|
+
_cachedGlobal$1 = self;
|
|
29
29
|
}
|
|
30
30
|
if (typeof window !== strShimUndefined && window) {
|
|
31
|
-
_cachedGlobal = window;
|
|
31
|
+
_cachedGlobal$1 = window;
|
|
32
32
|
}
|
|
33
33
|
if (typeof global !== strShimUndefined && global) {
|
|
34
|
-
_cachedGlobal = global;
|
|
34
|
+
_cachedGlobal$1 = global;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
return _cachedGlobal;
|
|
37
|
+
return _cachedGlobal$1;
|
|
38
38
|
}
|
|
39
|
-
function throwTypeError(message) {
|
|
39
|
+
function throwTypeError$1(message) {
|
|
40
40
|
throw new TypeError(message);
|
|
41
41
|
}
|
|
42
42
|
function objCreateFn(obj) {
|
|
@@ -49,17 +49,17 @@ this.Microsoft = this.Microsoft || {};
|
|
|
49
49
|
}
|
|
50
50
|
var type = typeof obj;
|
|
51
51
|
if (type !== strShimObject && type !== strShimFunction) {
|
|
52
|
-
throwTypeError("Object prototype may only be an Object:" + obj);
|
|
52
|
+
throwTypeError$1("Object prototype may only be an Object:" + obj);
|
|
53
53
|
}
|
|
54
54
|
function tmpFunc() { }
|
|
55
55
|
tmpFunc[strShimPrototype] = obj;
|
|
56
56
|
return new tmpFunc();
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
(getGlobal() || {})["Symbol"];
|
|
60
|
-
(getGlobal() || {})["Reflect"];
|
|
59
|
+
(getGlobal$1() || {})["Symbol"];
|
|
60
|
+
(getGlobal$1() || {})["Reflect"];
|
|
61
61
|
var extendStaticsFn = function (d, b) {
|
|
62
|
-
extendStaticsFn = ObjClass["setPrototypeOf"] ||
|
|
62
|
+
extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
|
|
63
63
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
64
64
|
d.__proto__ = b;
|
|
65
65
|
}) ||
|
|
@@ -74,7 +74,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
74
74
|
};
|
|
75
75
|
function __extendsFn(d, b) {
|
|
76
76
|
if (typeof b !== strShimFunction && b !== null) {
|
|
77
|
-
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
77
|
+
throwTypeError$1("Class extends value " + String(b) + " is not a constructor or null");
|
|
78
78
|
}
|
|
79
79
|
extendStaticsFn(d, b);
|
|
80
80
|
function __() {
|
|
@@ -98,13 +98,13 @@ this.Microsoft = this.Microsoft || {};
|
|
|
98
98
|
var DynAllowInstChkTag = DynInstChkTag;
|
|
99
99
|
var DynProtoDefaultOptions = '_dfOpts';
|
|
100
100
|
var UnknownValue = '_unknown_';
|
|
101
|
-
var str__Proto
|
|
102
|
-
var DynProtoBaseProto = "_dyn" + str__Proto
|
|
101
|
+
var str__Proto = "__proto__";
|
|
102
|
+
var DynProtoBaseProto = "_dyn" + str__Proto;
|
|
103
103
|
var DynProtoCurrent = "_dynInstProto";
|
|
104
104
|
var strUseBaseInst = 'useBaseInst';
|
|
105
105
|
var strSetInstFuncs = 'setInstFuncs';
|
|
106
106
|
var Obj = Object;
|
|
107
|
-
var _objGetPrototypeOf
|
|
107
|
+
var _objGetPrototypeOf = Obj["getPrototypeOf"];
|
|
108
108
|
var _objGetOwnProps = Obj["getOwnPropertyNames"];
|
|
109
109
|
var _dynamicNames = 0;
|
|
110
110
|
function _hasOwnProperty(obj, prop) {
|
|
@@ -119,10 +119,10 @@ this.Microsoft = this.Microsoft || {};
|
|
|
119
119
|
function _getObjProto$1(target) {
|
|
120
120
|
var newProto;
|
|
121
121
|
if (target) {
|
|
122
|
-
if (_objGetPrototypeOf
|
|
123
|
-
return _objGetPrototypeOf
|
|
122
|
+
if (_objGetPrototypeOf) {
|
|
123
|
+
return _objGetPrototypeOf(target);
|
|
124
124
|
}
|
|
125
|
-
var curProto = target[str__Proto
|
|
125
|
+
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
|
|
126
126
|
newProto = target[DynProtoBaseProto] || curProto;
|
|
127
127
|
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
|
|
128
128
|
delete target[DynProtoCurrent];
|
|
@@ -194,7 +194,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
194
194
|
var visited = [];
|
|
195
195
|
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
|
|
196
196
|
_forEachProp(baseProto, function (name) {
|
|
197
|
-
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf
|
|
197
|
+
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
|
|
198
198
|
baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
|
|
199
199
|
}
|
|
200
200
|
});
|
|
@@ -274,7 +274,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
function _checkPrototype(classProto, thisTarget) {
|
|
277
|
-
if (_objGetPrototypeOf
|
|
277
|
+
if (_objGetPrototypeOf) {
|
|
278
278
|
var visited = [];
|
|
279
279
|
var thisProto = _getObjProto$1(thisTarget);
|
|
280
280
|
while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
|
|
@@ -319,7 +319,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
319
319
|
var instFuncs = _getInstanceFuncs(target);
|
|
320
320
|
var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
|
|
321
321
|
delegateFunc(target, baseFuncs);
|
|
322
|
-
var setInstanceFunc = !!_objGetPrototypeOf
|
|
322
|
+
var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
|
|
323
323
|
if (setInstanceFunc && options) {
|
|
324
324
|
setInstanceFunc = !!options[strSetInstFuncs];
|
|
325
325
|
}
|
|
@@ -331,6 +331,274 @@ this.Microsoft = this.Microsoft || {};
|
|
|
331
331
|
};
|
|
332
332
|
dynamicProto[DynProtoDefaultOptions] = perfDefaults;
|
|
333
333
|
|
|
334
|
+
var UNDEF_VALUE = undefined;
|
|
335
|
+
var EMPTY = "";
|
|
336
|
+
var BOOLEAN = "boolean";
|
|
337
|
+
var FUNCTION = "function";
|
|
338
|
+
var NUMBER = "number";
|
|
339
|
+
var OBJECT = "object";
|
|
340
|
+
var PROTOTYPE = "prototype";
|
|
341
|
+
var STRING = "string";
|
|
342
|
+
var UNDEFINED = "undefined";
|
|
343
|
+
var HAS_OWN_PROPERTY = "hasOwnProperty";
|
|
344
|
+
var SYMBOL = "Symbol";
|
|
345
|
+
var INDEX_OF = "indexOf";
|
|
346
|
+
var LENGTH = "length";
|
|
347
|
+
var ObjClass = Object;
|
|
348
|
+
var ObjProto = ObjClass[PROTOTYPE];
|
|
349
|
+
var ArrCls = Array;
|
|
350
|
+
|
|
351
|
+
function _safeCheck(cb, defValue) {
|
|
352
|
+
var result = defValue;
|
|
353
|
+
try {
|
|
354
|
+
result = cb();
|
|
355
|
+
}
|
|
356
|
+
catch (e) {
|
|
357
|
+
}
|
|
358
|
+
return result;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function _createIs(theType) {
|
|
362
|
+
return function (value) {
|
|
363
|
+
return typeof value === theType;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
function _createObjIs(theType) {
|
|
367
|
+
return function (value) {
|
|
368
|
+
return !!(value && objToString(value) === theType);
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
function objToString(value) {
|
|
372
|
+
return ObjProto.toString.call(value);
|
|
373
|
+
}
|
|
374
|
+
function isUndefined(value) {
|
|
375
|
+
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
376
|
+
}
|
|
377
|
+
function isNullOrUndefined(value) {
|
|
378
|
+
return value === null || isUndefined(value);
|
|
379
|
+
}
|
|
380
|
+
function isDefined(arg) {
|
|
381
|
+
return !!arg || arg !== UNDEF_VALUE;
|
|
382
|
+
}
|
|
383
|
+
var isString = _createIs(STRING);
|
|
384
|
+
var isFunction = _createIs(FUNCTION);
|
|
385
|
+
function isObject(value) {
|
|
386
|
+
if (isNullOrUndefined(value)) {
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
389
|
+
return !!value && typeof value === OBJECT;
|
|
390
|
+
}
|
|
391
|
+
var isArray = ArrCls.isArray;
|
|
392
|
+
var isNumber = _createIs(NUMBER);
|
|
393
|
+
var isBoolean = _createIs(BOOLEAN);
|
|
394
|
+
var isError = _createObjIs("[object Error]");
|
|
395
|
+
|
|
396
|
+
var DOCUMENT = "document";
|
|
397
|
+
var NAVIGATOR = "navigator";
|
|
398
|
+
var WINDOW = "window";
|
|
399
|
+
var _cachedGlobal = null;
|
|
400
|
+
var _hasWindow = _safeCheck(function () { return isDefined(window); }, false);
|
|
401
|
+
var _hasDocument = _safeCheck(function () { return isDefined(document); }, false);
|
|
402
|
+
var _hasNavigator = _safeCheck(function () { return isDefined(navigator); }, false);
|
|
403
|
+
_safeCheck(function () { return isDefined(history); }, false);
|
|
404
|
+
_safeCheck(function () { return !!(self && self instanceof WorkerGlobalScope); }, false);
|
|
405
|
+
_safeCheck(function () { return !!(process && (process.versions || {}).node); }, false);
|
|
406
|
+
function getGlobal(useCached) {
|
|
407
|
+
var result = useCached === false ? null : _cachedGlobal;
|
|
408
|
+
if (!result) {
|
|
409
|
+
if (!result && typeof globalThis !== UNDEFINED) {
|
|
410
|
+
result = globalThis;
|
|
411
|
+
}
|
|
412
|
+
if (!result && typeof self !== UNDEFINED) {
|
|
413
|
+
result = self;
|
|
414
|
+
}
|
|
415
|
+
if (!result && typeof window !== UNDEFINED) {
|
|
416
|
+
result = window;
|
|
417
|
+
}
|
|
418
|
+
if (!result && typeof global !== UNDEFINED) {
|
|
419
|
+
result = global;
|
|
420
|
+
}
|
|
421
|
+
_cachedGlobal = result;
|
|
422
|
+
}
|
|
423
|
+
return result;
|
|
424
|
+
}
|
|
425
|
+
function getInst(name, useCached) {
|
|
426
|
+
var gbl = getGlobal(useCached);
|
|
427
|
+
if (gbl && gbl[name]) {
|
|
428
|
+
return gbl[name];
|
|
429
|
+
}
|
|
430
|
+
if (name === WINDOW && _hasWindow) {
|
|
431
|
+
return window;
|
|
432
|
+
}
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
function getDocument() {
|
|
436
|
+
return _hasDocument ? document : getInst(DOCUMENT);
|
|
437
|
+
}
|
|
438
|
+
function getNavigator() {
|
|
439
|
+
return _hasNavigator ? navigator : getInst(NAVIGATOR);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
function objHasOwnProperty(obj, prop) {
|
|
443
|
+
return obj && ObjProto[HAS_OWN_PROPERTY].call(obj, prop);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
447
|
+
if (theObject && isObject(theObject)) {
|
|
448
|
+
for (var prop in theObject) {
|
|
449
|
+
if (objHasOwnProperty(theObject, prop)) {
|
|
450
|
+
if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
function arrForEach(arr, callbackfn, thisArg) {
|
|
459
|
+
if (arr) {
|
|
460
|
+
var len = arr[LENGTH];
|
|
461
|
+
for (var idx = 0; idx < len; idx++) {
|
|
462
|
+
if (idx in arr) {
|
|
463
|
+
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function throwTypeError(message) {
|
|
472
|
+
throw new TypeError(message);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
var _objFreeze = ObjClass["freeze"];
|
|
476
|
+
function _doNothing(value) {
|
|
477
|
+
return value;
|
|
478
|
+
}
|
|
479
|
+
function objKeys(value) {
|
|
480
|
+
if (!isObject(value) || value === null) {
|
|
481
|
+
throwTypeError("objKeys called on non-object");
|
|
482
|
+
}
|
|
483
|
+
return ObjClass.keys(value);
|
|
484
|
+
}
|
|
485
|
+
var objFreeze = _objFreeze || _doNothing;
|
|
486
|
+
|
|
487
|
+
_safeCheck(function () { return isDefined(Symbol); }, false);
|
|
488
|
+
var _symbol = getInst(SYMBOL);
|
|
489
|
+
_symbol && _safeCheck(function () { return _symbol["for"]; }, null);
|
|
490
|
+
_symbol && _safeCheck(function () { return _symbol["keyFor"]; }, null);
|
|
491
|
+
var isSymbol = _createIs("symbol");
|
|
492
|
+
|
|
493
|
+
function dumpObj(object, format) {
|
|
494
|
+
var objectTypeDump = objToString(object);
|
|
495
|
+
var propertyValueDump = "";
|
|
496
|
+
if (objectTypeDump === "[object Error]") {
|
|
497
|
+
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
if (format) {
|
|
501
|
+
if (isNumber(format)) {
|
|
502
|
+
propertyValueDump = JSON.stringify(object, null, format);
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
propertyValueDump = JSON.stringify(object, null, format ? 4 : 0);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
propertyValueDump = JSON.stringify(object);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
return objectTypeDump + ": " + propertyValueDump;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
function _unwrapFunction(funcName) {
|
|
516
|
+
return function (thisArg) {
|
|
517
|
+
var args = [];
|
|
518
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
519
|
+
args[_i - 1] = arguments[_i];
|
|
520
|
+
}
|
|
521
|
+
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
522
|
+
return thisArg[funcName].apply(thisArg, args);
|
|
523
|
+
}
|
|
524
|
+
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
var arrIndexOf = _unwrapFunction(INDEX_OF);
|
|
529
|
+
|
|
530
|
+
function objSetPrototypeOf(obj, proto) {
|
|
531
|
+
var fn = ObjClass["setPrototypeOf"] ||
|
|
532
|
+
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
533
|
+
d.__proto__ = b;
|
|
534
|
+
}) ||
|
|
535
|
+
function (d, b) {
|
|
536
|
+
objForEachKey(b, function (key, value) {
|
|
537
|
+
d[key] = value;
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
return fn(obj, proto);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
function _createCustomError(name, d, b) {
|
|
544
|
+
objSetPrototypeOf(d, b);
|
|
545
|
+
function __() {
|
|
546
|
+
this.constructor = d;
|
|
547
|
+
}
|
|
548
|
+
__[PROTOTYPE] = b[PROTOTYPE];
|
|
549
|
+
__[PROTOTYPE].name = name;
|
|
550
|
+
d[PROTOTYPE] = new __();
|
|
551
|
+
return d;
|
|
552
|
+
}
|
|
553
|
+
function createCustomError(name, constructCb) {
|
|
554
|
+
var baseClass = Error;
|
|
555
|
+
var customError = _createCustomError(name, function () {
|
|
556
|
+
var _this = this;
|
|
557
|
+
_this = baseClass.apply(_this, arguments) || _this;
|
|
558
|
+
constructCb && constructCb(_this, arguments);
|
|
559
|
+
return _this;
|
|
560
|
+
}, baseClass);
|
|
561
|
+
return customError;
|
|
562
|
+
}
|
|
563
|
+
var _unsupportedError;
|
|
564
|
+
function throwUnsupported(message) {
|
|
565
|
+
if (!_unsupportedError) {
|
|
566
|
+
_unsupportedError = createCustomError("UnsupportedError");
|
|
567
|
+
}
|
|
568
|
+
throw new _unsupportedError(message);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
var _objDefineProperty$1 = ObjClass["defineProperty"];
|
|
572
|
+
function objDefineProp(target, key, descriptor) {
|
|
573
|
+
if (_objDefineProperty$1) {
|
|
574
|
+
_objDefineProperty$1(target, key, descriptor);
|
|
575
|
+
return target;
|
|
576
|
+
}
|
|
577
|
+
throwUnsupported("Unable to define property [" + objToString(key) + "] on " + dumpObj(target));
|
|
578
|
+
}
|
|
579
|
+
function objDefineAccessors(target, prop, getProp, setProp, configurable) {
|
|
580
|
+
if (_objDefineProperty$1) {
|
|
581
|
+
try {
|
|
582
|
+
var descriptor = {
|
|
583
|
+
enumerable: true,
|
|
584
|
+
configurable: isUndefined(configurable) ? true : configurable
|
|
585
|
+
};
|
|
586
|
+
if (getProp) {
|
|
587
|
+
descriptor.get = getProp;
|
|
588
|
+
}
|
|
589
|
+
if (setProp) {
|
|
590
|
+
descriptor.set = setProp;
|
|
591
|
+
}
|
|
592
|
+
return objDefineProp(target, prop, descriptor);
|
|
593
|
+
}
|
|
594
|
+
catch (e) {
|
|
595
|
+
throwUnsupported("Unable to define accessors for [" + objToString(prop) + "] on " + dumpObj(target));
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
601
|
+
|
|
334
602
|
var _DYN_INITIALIZE = "initialize";
|
|
335
603
|
var _DYN_NAME$1 = "name";
|
|
336
604
|
var _DYN_IDENTIFIER$1 = "identifier";
|
|
@@ -338,7 +606,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
338
606
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
339
607
|
var _DYN_CONFIG = "config";
|
|
340
608
|
var _DYN_LOGGER = "logger";
|
|
341
|
-
var _DYN_LENGTH$
|
|
609
|
+
var _DYN_LENGTH$1 = "length";
|
|
342
610
|
var _DYN_TIME = "time";
|
|
343
611
|
var _DYN_PROCESS_NEXT = "processNext";
|
|
344
612
|
var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
|
|
@@ -354,22 +622,15 @@ this.Microsoft = this.Microsoft || {};
|
|
|
354
622
|
var _DYN_DIAG_LOG = "diagLog";
|
|
355
623
|
var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
|
|
356
624
|
var _DYN_CREATE_NEW = "createNew";
|
|
357
|
-
var _DYN_COOKIE_CFG = "cookieCfg";
|
|
358
|
-
var _DYN_INDEX_OF = "indexOf";
|
|
359
|
-
var _DYN_SUBSTRING$1 = "substring";
|
|
360
625
|
var _DYN_USER_AGENT = "userAgent";
|
|
361
626
|
var _DYN_SPLIT = "split";
|
|
362
|
-
var _DYN_SET_ENABLED = "setEnabled";
|
|
363
|
-
var _DYN_SUBSTR = "substr";
|
|
364
627
|
var _DYN_NODE_TYPE = "nodeType";
|
|
365
628
|
var _DYN_APPLY = "apply";
|
|
366
629
|
var _DYN_REPLACE$1 = "replace";
|
|
367
630
|
var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
|
|
368
631
|
var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
369
|
-
var _DYN_TO_LOWER_CASE
|
|
632
|
+
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
370
633
|
var _DYN_CALL = "call";
|
|
371
|
-
var _DYN_TYPE = "type";
|
|
372
|
-
var _DYN_HANDLER = "handler";
|
|
373
634
|
var _DYN_IS_CHILD_EVT = "isChildEvt";
|
|
374
635
|
var _DYN_GET_CTX = "getCtx";
|
|
375
636
|
var _DYN_SET_CTX = "setCtx";
|
|
@@ -385,67 +646,38 @@ this.Microsoft = this.Microsoft || {};
|
|
|
385
646
|
var STR_WARN_TO_CONSOLE = "warnToConsole";
|
|
386
647
|
var STR_GET_PERF_MGR = "getPerfMgr";
|
|
387
648
|
|
|
388
|
-
var
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
649
|
+
var _aiNamespace = null;
|
|
650
|
+
function _getExtensionNamespace() {
|
|
651
|
+
var target = getInst("Microsoft");
|
|
652
|
+
if (target) {
|
|
653
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
654
|
+
}
|
|
655
|
+
return _aiNamespace;
|
|
656
|
+
}
|
|
657
|
+
function getDebugExt(config) {
|
|
658
|
+
var ns = _aiNamespace;
|
|
659
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
660
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
661
|
+
}
|
|
662
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
var cString = "String";
|
|
666
|
+
var cObject = "Object";
|
|
394
667
|
var strToString = "toString";
|
|
395
|
-
var
|
|
668
|
+
var strGetPrototypeOf = "getPrototypeOf";
|
|
396
669
|
var strConstructor$1 = "constructor";
|
|
397
|
-
var
|
|
398
|
-
var
|
|
399
|
-
var _objKeys = ObjClass.keys;
|
|
400
|
-
var StringProto = String[strShimPrototype];
|
|
401
|
-
var _strTrim = StringProto[cStrTrim];
|
|
402
|
-
var _strEndsWith = StringProto[cStrEndsWith];
|
|
403
|
-
var DateProto = Date[strShimPrototype];
|
|
404
|
-
var _dataToISOString = DateProto[strToISOString];
|
|
405
|
-
var _isArray = Array.isArray;
|
|
406
|
-
var _objToString = ObjProto[strToString];
|
|
407
|
-
var _fnToString = ObjHasOwnProperty[strToString];
|
|
408
|
-
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass);
|
|
670
|
+
var _fnToString = ObjHasOwnProperty[strToString] || _polyfillRequired(cString, strToString);
|
|
671
|
+
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass$1);
|
|
409
672
|
var rCamelCase = /-([a-z])/g;
|
|
410
673
|
var rNormalizeInvalid = /([^\w\d_$])/g;
|
|
411
674
|
var rLeadingNumeric = /^(\d+[\w\d_$])/;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
return _objGetPrototypeOf(target);
|
|
417
|
-
}
|
|
418
|
-
var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor$1];
|
|
419
|
-
if (newProto) {
|
|
420
|
-
return newProto;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
return null;
|
|
424
|
-
}
|
|
425
|
-
function objToString(obj) {
|
|
426
|
-
return _objToString[_DYN_CALL ](obj);
|
|
427
|
-
}
|
|
428
|
-
function isTypeof(value, theType) {
|
|
429
|
-
return typeof value === theType;
|
|
430
|
-
}
|
|
431
|
-
function isUndefined(value) {
|
|
432
|
-
return value === undefined || typeof value === strShimUndefined;
|
|
433
|
-
}
|
|
434
|
-
function isNullOrUndefined(value) {
|
|
435
|
-
return (value === null || isUndefined(value));
|
|
436
|
-
}
|
|
437
|
-
function isNotNullOrUndefined(value) {
|
|
438
|
-
return !isNullOrUndefined(value);
|
|
439
|
-
}
|
|
440
|
-
function hasOwnProperty(obj, prop) {
|
|
441
|
-
return !!(obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop));
|
|
442
|
-
}
|
|
443
|
-
function isObject(value) {
|
|
444
|
-
return !!(value && typeof value === strShimObject);
|
|
445
|
-
}
|
|
446
|
-
function isFunction(value) {
|
|
447
|
-
return !!(value && typeof value === strShimFunction);
|
|
675
|
+
function _polyfillRequired(object, name) {
|
|
676
|
+
return function () {
|
|
677
|
+
throwUnsupported("Polyfill required for [" + name + "]");
|
|
678
|
+
};
|
|
448
679
|
}
|
|
680
|
+
var _getObjProto = Object[strGetPrototypeOf] || _polyfillRequired(cObject, strGetPrototypeOf);
|
|
449
681
|
function normalizeJsName(name) {
|
|
450
682
|
var value = name;
|
|
451
683
|
if (value && isString(value)) {
|
|
@@ -459,70 +691,16 @@ this.Microsoft = this.Microsoft || {};
|
|
|
459
691
|
}
|
|
460
692
|
return value;
|
|
461
693
|
}
|
|
462
|
-
function objForEachKey(target, callbackfn) {
|
|
463
|
-
if (target) {
|
|
464
|
-
for (var prop in target) {
|
|
465
|
-
if (ObjHasOwnProperty[_DYN_CALL ](target, prop)) {
|
|
466
|
-
callbackfn[_DYN_CALL ](target, prop, target[prop]);
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
function strEndsWith(value, search) {
|
|
472
|
-
var result = false;
|
|
473
|
-
if (value && search && !(result = value === search)) {
|
|
474
|
-
result = _strEndsWith ? value[cStrEndsWith](search) : _strEndsWithPoly(value, search);
|
|
475
|
-
}
|
|
476
|
-
return result;
|
|
477
|
-
}
|
|
478
|
-
function _strEndsWithPoly(value, search) {
|
|
479
|
-
var result = false;
|
|
480
|
-
var searchLen = search ? search[_DYN_LENGTH$2 ] : 0;
|
|
481
|
-
var valLen = value ? value[_DYN_LENGTH$2 ] : 0;
|
|
482
|
-
if (searchLen && valLen && valLen >= searchLen && !(result = value === search)) {
|
|
483
|
-
var pos = valLen - 1;
|
|
484
|
-
for (var lp = searchLen - 1; lp >= 0; lp--) {
|
|
485
|
-
if (value[pos] != search[lp]) {
|
|
486
|
-
return false;
|
|
487
|
-
}
|
|
488
|
-
pos--;
|
|
489
|
-
}
|
|
490
|
-
result = true;
|
|
491
|
-
}
|
|
492
|
-
return result;
|
|
493
|
-
}
|
|
494
694
|
function strContains(value, search) {
|
|
495
695
|
if (value && search) {
|
|
496
|
-
return value
|
|
696
|
+
return strIndexOf(value, search) !== -1;
|
|
497
697
|
}
|
|
498
698
|
return false;
|
|
499
699
|
}
|
|
500
|
-
function isDate(obj) {
|
|
501
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Date]");
|
|
502
|
-
}
|
|
503
|
-
var isArray = _isArray || _isArrayPoly;
|
|
504
|
-
function _isArrayPoly(obj) {
|
|
505
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Array]");
|
|
506
|
-
}
|
|
507
|
-
function isError(obj) {
|
|
508
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Error]");
|
|
509
|
-
}
|
|
510
|
-
function isString(value) {
|
|
511
|
-
return typeof value === "string";
|
|
512
|
-
}
|
|
513
|
-
function isNumber(value) {
|
|
514
|
-
return typeof value === "number";
|
|
515
|
-
}
|
|
516
|
-
function isBoolean(value) {
|
|
517
|
-
return typeof value === "boolean";
|
|
518
|
-
}
|
|
519
|
-
function isSymbol(value) {
|
|
520
|
-
return typeof value === "symbol";
|
|
521
|
-
}
|
|
522
700
|
function isPlainObject(value) {
|
|
523
701
|
var result = false;
|
|
524
702
|
if (value && typeof value === "object") {
|
|
525
|
-
var proto =
|
|
703
|
+
var proto = _getObjProto(value);
|
|
526
704
|
if (!proto) {
|
|
527
705
|
result = true;
|
|
528
706
|
}
|
|
@@ -535,195 +713,10 @@ this.Microsoft = this.Microsoft || {};
|
|
|
535
713
|
}
|
|
536
714
|
return result;
|
|
537
715
|
}
|
|
538
|
-
function toISOString(date) {
|
|
539
|
-
if (date) {
|
|
540
|
-
return _dataToISOString ? date[strToISOString]() : _toISOStringPoly(date);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
function _toISOStringPoly(date) {
|
|
544
|
-
if (date && date.getUTCFullYear) {
|
|
545
|
-
var pad = function (num) {
|
|
546
|
-
var r = String(num);
|
|
547
|
-
if (r[_DYN_LENGTH$2 ] === 1) {
|
|
548
|
-
r = "0" + r;
|
|
549
|
-
}
|
|
550
|
-
return r;
|
|
551
|
-
};
|
|
552
|
-
return date.getUTCFullYear()
|
|
553
|
-
+ "-" + pad(date.getUTCMonth() + 1)
|
|
554
|
-
+ "-" + pad(date.getUTCDate())
|
|
555
|
-
+ "T" + pad(date.getUTCHours())
|
|
556
|
-
+ ":" + pad(date.getUTCMinutes())
|
|
557
|
-
+ ":" + pad(date.getUTCSeconds())
|
|
558
|
-
+ "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
|
|
559
|
-
+ "Z";
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
function arrForEach(arr, callbackfn, thisArg) {
|
|
563
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
564
|
-
try {
|
|
565
|
-
for (var idx = 0; idx < len; idx++) {
|
|
566
|
-
if (idx in arr) {
|
|
567
|
-
if (callbackfn[_DYN_CALL ](thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
568
|
-
break;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
catch (e) {
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
function arrIndexOf(arr, searchElement, fromIndex) {
|
|
577
|
-
if (arr) {
|
|
578
|
-
if (arr[strIndexOf]) {
|
|
579
|
-
return arr[strIndexOf](searchElement, fromIndex);
|
|
580
|
-
}
|
|
581
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
582
|
-
var from = fromIndex || 0;
|
|
583
|
-
try {
|
|
584
|
-
for (var lp = Math.max(from >= 0 ? from : len - Math.abs(from), 0); lp < len; lp++) {
|
|
585
|
-
if (lp in arr && arr[lp] === searchElement) {
|
|
586
|
-
return lp;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
catch (e) {
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
return -1;
|
|
594
|
-
}
|
|
595
|
-
function arrMap(arr, callbackfn, thisArg) {
|
|
596
|
-
var results;
|
|
597
|
-
if (arr) {
|
|
598
|
-
if (arr[strMap]) {
|
|
599
|
-
return arr[strMap](callbackfn, thisArg);
|
|
600
|
-
}
|
|
601
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
602
|
-
var _this = thisArg || arr;
|
|
603
|
-
results = new Array(len);
|
|
604
|
-
try {
|
|
605
|
-
for (var lp = 0; lp < len; lp++) {
|
|
606
|
-
if (lp in arr) {
|
|
607
|
-
results[lp] = callbackfn[_DYN_CALL ](_this, arr[lp], arr);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
catch (e) {
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
return results;
|
|
615
|
-
}
|
|
616
|
-
function arrReduce(arr, callbackfn, initialValue) {
|
|
617
|
-
var value;
|
|
618
|
-
if (arr) {
|
|
619
|
-
if (arr[strReduce]) {
|
|
620
|
-
return arr[strReduce](callbackfn, initialValue);
|
|
621
|
-
}
|
|
622
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
623
|
-
var lp = 0;
|
|
624
|
-
if (arguments[_DYN_LENGTH$2 ] >= 3) {
|
|
625
|
-
value = arguments[2];
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
while (lp < len && !(lp in arr)) {
|
|
629
|
-
lp++;
|
|
630
|
-
}
|
|
631
|
-
value = arr[lp++];
|
|
632
|
-
}
|
|
633
|
-
while (lp < len) {
|
|
634
|
-
if (lp in arr) {
|
|
635
|
-
value = callbackfn(value, arr[lp], lp, arr);
|
|
636
|
-
}
|
|
637
|
-
lp++;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
return value;
|
|
641
|
-
}
|
|
642
|
-
function strTrim(str) {
|
|
643
|
-
if (str) {
|
|
644
|
-
str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE$1 ] ? str[_DYN_REPLACE$1 ](/^\s+|\s+$/g, STR_EMPTY) : str);
|
|
645
|
-
}
|
|
646
|
-
return str;
|
|
647
|
-
}
|
|
648
|
-
var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable("toString");
|
|
649
|
-
var _objKeysDontEnums = [
|
|
650
|
-
"toString",
|
|
651
|
-
"toLocaleString",
|
|
652
|
-
"valueOf",
|
|
653
|
-
"hasOwnProperty",
|
|
654
|
-
"isPrototypeOf",
|
|
655
|
-
"propertyIsEnumerable",
|
|
656
|
-
"constructor"
|
|
657
|
-
];
|
|
658
|
-
function objKeys(obj) {
|
|
659
|
-
var objType = typeof obj;
|
|
660
|
-
if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
|
|
661
|
-
throwTypeError("objKeys called on non-object");
|
|
662
|
-
}
|
|
663
|
-
if (!_objKeysHasDontEnumBug && _objKeys) {
|
|
664
|
-
return _objKeys(obj);
|
|
665
|
-
}
|
|
666
|
-
var result = [];
|
|
667
|
-
for (var prop in obj) {
|
|
668
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop)) {
|
|
669
|
-
result[_DYN_PUSH$1 ](prop);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
if (_objKeysHasDontEnumBug) {
|
|
673
|
-
var dontEnumsLength = _objKeysDontEnums[_DYN_LENGTH$2 ];
|
|
674
|
-
for (var lp = 0; lp < dontEnumsLength; lp++) {
|
|
675
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, _objKeysDontEnums[lp])) {
|
|
676
|
-
result[_DYN_PUSH$1 ](_objKeysDontEnums[lp]);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
return result;
|
|
681
|
-
}
|
|
682
|
-
function objDefineAccessors(target, prop, getProp, setProp) {
|
|
683
|
-
if (_objDefineProperty$1) {
|
|
684
|
-
try {
|
|
685
|
-
var descriptor = {
|
|
686
|
-
enumerable: true,
|
|
687
|
-
configurable: true
|
|
688
|
-
};
|
|
689
|
-
if (getProp) {
|
|
690
|
-
descriptor.get = getProp;
|
|
691
|
-
}
|
|
692
|
-
if (setProp) {
|
|
693
|
-
descriptor.set = setProp;
|
|
694
|
-
}
|
|
695
|
-
_objDefineProperty$1(target, prop, descriptor);
|
|
696
|
-
return true;
|
|
697
|
-
}
|
|
698
|
-
catch (e) {
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
return false;
|
|
702
|
-
}
|
|
703
|
-
function _doNothing(value) {
|
|
704
|
-
return value;
|
|
705
|
-
}
|
|
706
|
-
function deepFreeze(obj) {
|
|
707
|
-
if (_objFreeze) {
|
|
708
|
-
objForEachKey(obj, function (name, value) {
|
|
709
|
-
if (isArray(value) || isObject(value)) {
|
|
710
|
-
_objFreeze(value);
|
|
711
|
-
}
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
return objFreeze(obj);
|
|
715
|
-
}
|
|
716
|
-
var objFreeze = _objFreeze || _doNothing;
|
|
717
716
|
function dateNow() {
|
|
718
717
|
var dt = Date;
|
|
719
718
|
return dt.now ? dt.now() : new dt().getTime();
|
|
720
719
|
}
|
|
721
|
-
function getExceptionName(object) {
|
|
722
|
-
if (isError(object)) {
|
|
723
|
-
return object[_DYN_NAME$1 ];
|
|
724
|
-
}
|
|
725
|
-
return STR_EMPTY;
|
|
726
|
-
}
|
|
727
720
|
function setValue(target, field, value, valChk, srcChk) {
|
|
728
721
|
var theValue = value;
|
|
729
722
|
if (target) {
|
|
@@ -738,9 +731,6 @@ this.Microsoft = this.Microsoft || {};
|
|
|
738
731
|
function getCfgValue(theValue, defaultValue) {
|
|
739
732
|
return !isNullOrUndefined(theValue) ? theValue : defaultValue;
|
|
740
733
|
}
|
|
741
|
-
function isTruthy(value) {
|
|
742
|
-
return !!value;
|
|
743
|
-
}
|
|
744
734
|
function _createProxyFunction(source, funcName) {
|
|
745
735
|
var srcFunc = null;
|
|
746
736
|
var src = null;
|
|
@@ -770,7 +760,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
770
760
|
function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
|
|
771
761
|
var theArgs = arguments;
|
|
772
762
|
var extended = theArgs[0] || {};
|
|
773
|
-
var argLen = theArgs[_DYN_LENGTH$
|
|
763
|
+
var argLen = theArgs[_DYN_LENGTH$1 ];
|
|
774
764
|
var deep = false;
|
|
775
765
|
var idx = 1;
|
|
776
766
|
if (argLen > 0 && isBoolean(extended)) {
|
|
@@ -799,122 +789,54 @@ this.Microsoft = this.Microsoft || {};
|
|
|
799
789
|
clone = [];
|
|
800
790
|
}
|
|
801
791
|
}
|
|
802
|
-
else if (!isPlainObject(clone)) {
|
|
803
|
-
clone = {};
|
|
804
|
-
}
|
|
805
|
-
newValue = objExtend(deep, clone, newValue);
|
|
806
|
-
}
|
|
807
|
-
if (newValue !== undefined) {
|
|
808
|
-
extended[prop] = newValue;
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
return extended;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
function createEnumStyle(values) {
|
|
816
|
-
var enumClass = {};
|
|
817
|
-
objForEachKey(values, function (field, value) {
|
|
818
|
-
enumClass[field] = value;
|
|
819
|
-
enumClass[value] = field;
|
|
820
|
-
});
|
|
821
|
-
return deepFreeze(enumClass);
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
var strWindow = "window";
|
|
825
|
-
var strDocument = "document";
|
|
826
|
-
var strDocumentMode = "documentMode";
|
|
827
|
-
var strNavigator = "navigator";
|
|
828
|
-
var strLocation = "location";
|
|
829
|
-
var strConsole = "console";
|
|
830
|
-
var strPerformance = "performance";
|
|
831
|
-
var strJSON = "JSON";
|
|
832
|
-
var strCrypto = "crypto";
|
|
833
|
-
var strMsCrypto = "msCrypto";
|
|
834
|
-
var strMsie = "msie";
|
|
835
|
-
var strTrident = "trident/";
|
|
836
|
-
var _isTrident = null;
|
|
837
|
-
var _navUserAgentCheck = null;
|
|
838
|
-
var _enableMocks = false;
|
|
839
|
-
var _beaconsSupported = null;
|
|
840
|
-
function getGlobalInst(name) {
|
|
841
|
-
var gbl = getGlobal();
|
|
842
|
-
if (gbl && gbl[name]) {
|
|
843
|
-
return gbl[name];
|
|
844
|
-
}
|
|
845
|
-
if (name === strWindow && hasWindow()) {
|
|
846
|
-
return window;
|
|
847
|
-
}
|
|
848
|
-
return null;
|
|
849
|
-
}
|
|
850
|
-
function hasWindow() {
|
|
851
|
-
return Boolean(typeof window === strShimObject && window);
|
|
852
|
-
}
|
|
853
|
-
function getWindow() {
|
|
854
|
-
if (hasWindow()) {
|
|
855
|
-
return window;
|
|
856
|
-
}
|
|
857
|
-
return getGlobalInst(strWindow);
|
|
858
|
-
}
|
|
859
|
-
function hasDocument() {
|
|
860
|
-
return Boolean(typeof document === strShimObject && document);
|
|
861
|
-
}
|
|
862
|
-
function getDocument() {
|
|
863
|
-
if (hasDocument()) {
|
|
864
|
-
return document;
|
|
865
|
-
}
|
|
866
|
-
return getGlobalInst(strDocument);
|
|
867
|
-
}
|
|
868
|
-
function hasNavigator() {
|
|
869
|
-
return Boolean(typeof navigator === strShimObject && navigator);
|
|
870
|
-
}
|
|
871
|
-
function getNavigator() {
|
|
872
|
-
if (hasNavigator()) {
|
|
873
|
-
return navigator;
|
|
874
|
-
}
|
|
875
|
-
return getGlobalInst(strNavigator);
|
|
876
|
-
}
|
|
877
|
-
function getLocation(checkForMock) {
|
|
878
|
-
if (checkForMock && _enableMocks) {
|
|
879
|
-
var mockLocation = getGlobalInst("__mockLocation");
|
|
880
|
-
if (mockLocation) {
|
|
881
|
-
return mockLocation;
|
|
792
|
+
else if (!isPlainObject(clone)) {
|
|
793
|
+
clone = {};
|
|
794
|
+
}
|
|
795
|
+
newValue = objExtend(deep, clone, newValue);
|
|
796
|
+
}
|
|
797
|
+
if (newValue !== undefined) {
|
|
798
|
+
extended[prop] = newValue;
|
|
799
|
+
}
|
|
882
800
|
}
|
|
883
801
|
}
|
|
884
|
-
|
|
885
|
-
return location;
|
|
886
|
-
}
|
|
887
|
-
return getGlobalInst(strLocation);
|
|
802
|
+
return extended;
|
|
888
803
|
}
|
|
804
|
+
|
|
805
|
+
var strDocumentMode = "documentMode";
|
|
806
|
+
var strConsole = "console";
|
|
807
|
+
var strJSON = "JSON";
|
|
808
|
+
var strCrypto = "crypto";
|
|
809
|
+
var strMsCrypto = "msCrypto";
|
|
810
|
+
var strMsie = "msie";
|
|
811
|
+
var strTrident = "trident/";
|
|
812
|
+
var _isTrident = null;
|
|
813
|
+
var _navUserAgentCheck = null;
|
|
889
814
|
function getConsole() {
|
|
890
815
|
if (typeof console !== strShimUndefined) {
|
|
891
816
|
return console;
|
|
892
817
|
}
|
|
893
|
-
return
|
|
894
|
-
}
|
|
895
|
-
function getPerformance() {
|
|
896
|
-
return getGlobalInst(strPerformance);
|
|
818
|
+
return getInst(strConsole);
|
|
897
819
|
}
|
|
898
820
|
function hasJSON() {
|
|
899
|
-
return Boolean((typeof JSON === strShimObject && JSON) ||
|
|
821
|
+
return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
|
|
900
822
|
}
|
|
901
823
|
function getJSON() {
|
|
902
824
|
if (hasJSON()) {
|
|
903
|
-
return JSON ||
|
|
825
|
+
return JSON || getInst(strJSON);
|
|
904
826
|
}
|
|
905
827
|
return null;
|
|
906
828
|
}
|
|
907
829
|
function getCrypto() {
|
|
908
|
-
return
|
|
830
|
+
return getInst(strCrypto);
|
|
909
831
|
}
|
|
910
832
|
function getMsCrypto() {
|
|
911
|
-
return
|
|
833
|
+
return getInst(strMsCrypto);
|
|
912
834
|
}
|
|
913
835
|
function isIE() {
|
|
914
836
|
var nav = getNavigator();
|
|
915
837
|
if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
|
|
916
838
|
_navUserAgentCheck = nav[_DYN_USER_AGENT ];
|
|
917
|
-
var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
839
|
+
var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
|
|
918
840
|
_isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
|
|
919
841
|
}
|
|
920
842
|
return _isTrident;
|
|
@@ -923,9 +845,9 @@ this.Microsoft = this.Microsoft || {};
|
|
|
923
845
|
if (userAgentStr === void 0) { userAgentStr = null; }
|
|
924
846
|
if (!userAgentStr) {
|
|
925
847
|
var navigator_1 = getNavigator() || {};
|
|
926
|
-
userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT ] || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
848
|
+
userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT ] || STR_EMPTY)[_DYN_TO_LOWER_CASE ]() : STR_EMPTY;
|
|
927
849
|
}
|
|
928
|
-
var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
850
|
+
var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
|
|
929
851
|
if (strContains(ua, strMsie)) {
|
|
930
852
|
var doc = getDocument() || {};
|
|
931
853
|
return Math.max(parseInt(ua[_DYN_SPLIT ](strMsie)[1]), (doc[strDocumentMode] || 0));
|
|
@@ -938,39 +860,6 @@ this.Microsoft = this.Microsoft || {};
|
|
|
938
860
|
}
|
|
939
861
|
return null;
|
|
940
862
|
}
|
|
941
|
-
function dumpObj(object) {
|
|
942
|
-
var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL ](object);
|
|
943
|
-
var propertyValueDump = STR_EMPTY;
|
|
944
|
-
if (objectTypeDump === "[object Error]") {
|
|
945
|
-
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object[_DYN_NAME$1 ] + "'";
|
|
946
|
-
}
|
|
947
|
-
else if (hasJSON()) {
|
|
948
|
-
propertyValueDump = getJSON().stringify(object);
|
|
949
|
-
}
|
|
950
|
-
return objectTypeDump + propertyValueDump;
|
|
951
|
-
}
|
|
952
|
-
function isBeaconsSupported() {
|
|
953
|
-
if (_beaconsSupported === null) {
|
|
954
|
-
_beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon);
|
|
955
|
-
}
|
|
956
|
-
return _beaconsSupported;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
var _aiNamespace = null;
|
|
960
|
-
function _getExtensionNamespace() {
|
|
961
|
-
var target = getGlobalInst("Microsoft");
|
|
962
|
-
if (target) {
|
|
963
|
-
_aiNamespace = target["ApplicationInsights"];
|
|
964
|
-
}
|
|
965
|
-
return _aiNamespace;
|
|
966
|
-
}
|
|
967
|
-
function getDebugExt(config) {
|
|
968
|
-
var ns = _aiNamespace;
|
|
969
|
-
if (!ns && config.disableDbgExt !== true) {
|
|
970
|
-
ns = _aiNamespace || _getExtensionNamespace();
|
|
971
|
-
}
|
|
972
|
-
return ns ? ns["ChromeDbgExt"] : null;
|
|
973
|
-
}
|
|
974
863
|
|
|
975
864
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
976
865
|
var AiUserActionablePrefix = "AI: ";
|
|
@@ -1137,14 +1026,13 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1137
1026
|
var PerfEvent = /** @class */ (function () {
|
|
1138
1027
|
function PerfEvent(name, payloadDetails, isAsync) {
|
|
1139
1028
|
var _self = this;
|
|
1140
|
-
var accessorDefined = false;
|
|
1141
1029
|
_self.start = dateNow();
|
|
1142
1030
|
_self[_DYN_NAME$1 ] = name;
|
|
1143
1031
|
_self[_DYN_IS_ASYNC ] = isAsync;
|
|
1144
1032
|
_self[_DYN_IS_CHILD_EVT ] = function () { return false; };
|
|
1145
1033
|
if (isFunction(payloadDetails)) {
|
|
1146
1034
|
var theDetails_1;
|
|
1147
|
-
|
|
1035
|
+
objDefineAccessors(_self, "payload", function () {
|
|
1148
1036
|
if (!theDetails_1 && isFunction(payloadDetails)) {
|
|
1149
1037
|
theDetails_1 = payloadDetails();
|
|
1150
1038
|
payloadDetails = null;
|
|
@@ -1182,7 +1070,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1182
1070
|
var childTime = 0;
|
|
1183
1071
|
var childEvts = _self[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
|
|
1184
1072
|
if (isArray(childEvts)) {
|
|
1185
|
-
for (var lp = 0; lp < childEvts[_DYN_LENGTH$
|
|
1073
|
+
for (var lp = 0; lp < childEvts[_DYN_LENGTH$1 ]; lp++) {
|
|
1186
1074
|
var childEvt = childEvts[lp];
|
|
1187
1075
|
if (childEvt) {
|
|
1188
1076
|
childTime += childEvt[_DYN_TIME ];
|
|
@@ -1192,9 +1080,6 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1192
1080
|
_self[_DYN_TIME ] = dateNow() - _self.start;
|
|
1193
1081
|
_self.exTime = _self[_DYN_TIME ] - childTime;
|
|
1194
1082
|
_self[_DYN_COMPLETE ] = function () { };
|
|
1195
|
-
if (!accessorDefined && isFunction(payloadDetails)) {
|
|
1196
|
-
_self.payload = payloadDetails();
|
|
1197
|
-
}
|
|
1198
1083
|
};
|
|
1199
1084
|
}
|
|
1200
1085
|
PerfEvent.ParentContextKey = "parent";
|
|
@@ -1266,12 +1151,6 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1266
1151
|
catch (e) {
|
|
1267
1152
|
}
|
|
1268
1153
|
}
|
|
1269
|
-
function randomValue(maxValue) {
|
|
1270
|
-
if (maxValue > 0) {
|
|
1271
|
-
return Math.floor((random32() / MaxUInt32) * (maxValue + 1)) >>> 0;
|
|
1272
|
-
}
|
|
1273
|
-
return 0;
|
|
1274
|
-
}
|
|
1275
1154
|
function random32(signed) {
|
|
1276
1155
|
var value = 0;
|
|
1277
1156
|
var c = getCrypto() || getMsCrypto();
|
|
@@ -1292,14 +1171,6 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1292
1171
|
}
|
|
1293
1172
|
return value;
|
|
1294
1173
|
}
|
|
1295
|
-
function mwcRandomSeed(value) {
|
|
1296
|
-
if (!value) {
|
|
1297
|
-
_autoSeedMwc();
|
|
1298
|
-
}
|
|
1299
|
-
else {
|
|
1300
|
-
_mwcSeed(value);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
1174
|
function mwcRandom32(signed) {
|
|
1304
1175
|
_mwcZ = (36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16)) & MaxUInt32;
|
|
1305
1176
|
_mwcW = (18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16)) & MaxUInt32;
|
|
@@ -1315,7 +1186,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1315
1186
|
var number = random32() >>> 0;
|
|
1316
1187
|
var chars = 0;
|
|
1317
1188
|
var result = STR_EMPTY;
|
|
1318
|
-
while (result[_DYN_LENGTH$
|
|
1189
|
+
while (result[_DYN_LENGTH$1 ] < maxLength) {
|
|
1319
1190
|
chars++;
|
|
1320
1191
|
result += base64chars.charAt(number & 0x3F);
|
|
1321
1192
|
number >>>= 6;
|
|
@@ -1328,7 +1199,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1328
1199
|
}
|
|
1329
1200
|
|
|
1330
1201
|
var _objDefineProperty = ObjDefineProperty;
|
|
1331
|
-
var version = "3.0.0-beta.2208-
|
|
1202
|
+
var version = "3.0.0-beta.2208-16";
|
|
1332
1203
|
var instanceName = "." + newId(6);
|
|
1333
1204
|
var _dataUid = 0;
|
|
1334
1205
|
function _createAccessor(target, prop, value) {
|
|
@@ -1399,457 +1270,6 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1399
1270
|
return data;
|
|
1400
1271
|
}
|
|
1401
1272
|
|
|
1402
|
-
var strToGMTString = "toGMTString";
|
|
1403
|
-
var strToUTCString = "toUTCString";
|
|
1404
|
-
var strCookie = "cookie";
|
|
1405
|
-
var strExpires = "expires";
|
|
1406
|
-
var strEnabled = "enabled";
|
|
1407
|
-
var strIsCookieUseDisabled = "isCookieUseDisabled";
|
|
1408
|
-
var strDisableCookiesUsage = "disableCookiesUsage";
|
|
1409
|
-
var strConfigCookieMgr = "_ckMgr";
|
|
1410
|
-
var _supportsCookies = null;
|
|
1411
|
-
var _allowUaSameSite = null;
|
|
1412
|
-
var _parsedCookieValue = null;
|
|
1413
|
-
var _doc = getDocument();
|
|
1414
|
-
var _cookieCache = {};
|
|
1415
|
-
var _globalCookieConfig = {};
|
|
1416
|
-
function _gblCookieMgr(config, logger) {
|
|
1417
|
-
var inst = createCookieMgr[strConfigCookieMgr] || _globalCookieConfig[strConfigCookieMgr];
|
|
1418
|
-
if (!inst) {
|
|
1419
|
-
inst = createCookieMgr[strConfigCookieMgr] = createCookieMgr(config, logger);
|
|
1420
|
-
_globalCookieConfig[strConfigCookieMgr] = inst;
|
|
1421
|
-
}
|
|
1422
|
-
return inst;
|
|
1423
|
-
}
|
|
1424
|
-
function _isMgrEnabled(cookieMgr) {
|
|
1425
|
-
if (cookieMgr) {
|
|
1426
|
-
return cookieMgr.isEnabled();
|
|
1427
|
-
}
|
|
1428
|
-
return true;
|
|
1429
|
-
}
|
|
1430
|
-
function _createCookieMgrConfig(rootConfig) {
|
|
1431
|
-
var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG ] = rootConfig[_DYN_COOKIE_CFG ] || {};
|
|
1432
|
-
setValue(cookieMgrCfg, "domain", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);
|
|
1433
|
-
setValue(cookieMgrCfg, "path", rootConfig.cookiePath || "/", null, isNullOrUndefined);
|
|
1434
|
-
if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {
|
|
1435
|
-
var cookieEnabled = void 0;
|
|
1436
|
-
if (!isUndefined(rootConfig[strIsCookieUseDisabled])) {
|
|
1437
|
-
cookieEnabled = !rootConfig[strIsCookieUseDisabled];
|
|
1438
|
-
}
|
|
1439
|
-
if (!isUndefined(rootConfig[strDisableCookiesUsage])) {
|
|
1440
|
-
cookieEnabled = !rootConfig[strDisableCookiesUsage];
|
|
1441
|
-
}
|
|
1442
|
-
cookieMgrCfg[strEnabled] = cookieEnabled;
|
|
1443
|
-
}
|
|
1444
|
-
return cookieMgrCfg;
|
|
1445
|
-
}
|
|
1446
|
-
function createCookieMgr(rootConfig, logger) {
|
|
1447
|
-
var _a;
|
|
1448
|
-
var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);
|
|
1449
|
-
var _path = cookieMgrConfig.path || "/";
|
|
1450
|
-
var _domain = cookieMgrConfig.domain;
|
|
1451
|
-
var _enabled = cookieMgrConfig[strEnabled] !== false;
|
|
1452
|
-
var cookieMgr = (_a = {
|
|
1453
|
-
isEnabled: function () {
|
|
1454
|
-
var enabled = _enabled && areCookiesSupported(logger);
|
|
1455
|
-
var gblManager = _globalCookieConfig[strConfigCookieMgr];
|
|
1456
|
-
if (enabled && gblManager && cookieMgr !== gblManager) {
|
|
1457
|
-
enabled = _isMgrEnabled(gblManager);
|
|
1458
|
-
}
|
|
1459
|
-
return enabled;
|
|
1460
|
-
}
|
|
1461
|
-
},
|
|
1462
|
-
_a[_DYN_SET_ENABLED ] = function (value) {
|
|
1463
|
-
_enabled = value !== false;
|
|
1464
|
-
},
|
|
1465
|
-
_a.set = function (name, value, maxAgeSec, domain, path) {
|
|
1466
|
-
var result = false;
|
|
1467
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1468
|
-
var values = {};
|
|
1469
|
-
var theValue = strTrim(value || STR_EMPTY);
|
|
1470
|
-
var idx = theValue[_DYN_INDEX_OF ](";");
|
|
1471
|
-
if (idx !== -1) {
|
|
1472
|
-
theValue = strTrim(value[_DYN_SUBSTRING$1 ](0, idx));
|
|
1473
|
-
values = _extractParts(value[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1474
|
-
}
|
|
1475
|
-
setValue(values, "domain", domain || _domain, isTruthy, isUndefined);
|
|
1476
|
-
if (!isNullOrUndefined(maxAgeSec)) {
|
|
1477
|
-
var _isIE = isIE();
|
|
1478
|
-
if (isUndefined(values[strExpires])) {
|
|
1479
|
-
var nowMs = dateNow();
|
|
1480
|
-
var expireMs = nowMs + (maxAgeSec * 1000);
|
|
1481
|
-
if (expireMs > 0) {
|
|
1482
|
-
var expiry = new Date();
|
|
1483
|
-
expiry.setTime(expireMs);
|
|
1484
|
-
setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
if (!_isIE) {
|
|
1488
|
-
setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
var location_1 = getLocation();
|
|
1492
|
-
if (location_1 && location_1.protocol === "https:") {
|
|
1493
|
-
setValue(values, "secure", null, null, isUndefined);
|
|
1494
|
-
if (_allowUaSameSite === null) {
|
|
1495
|
-
_allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
|
|
1496
|
-
}
|
|
1497
|
-
if (_allowUaSameSite) {
|
|
1498
|
-
setValue(values, "SameSite", "None", null, isUndefined);
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
setValue(values, "path", path || _path, null, isUndefined);
|
|
1502
|
-
var setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;
|
|
1503
|
-
setCookieFn(name, _formatCookieValue(theValue, values));
|
|
1504
|
-
result = true;
|
|
1505
|
-
}
|
|
1506
|
-
return result;
|
|
1507
|
-
},
|
|
1508
|
-
_a.get = function (name) {
|
|
1509
|
-
var value = STR_EMPTY;
|
|
1510
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1511
|
-
value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
|
|
1512
|
-
}
|
|
1513
|
-
return value;
|
|
1514
|
-
},
|
|
1515
|
-
_a.del = function (name, path) {
|
|
1516
|
-
var result = false;
|
|
1517
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1518
|
-
result = cookieMgr.purge(name, path);
|
|
1519
|
-
}
|
|
1520
|
-
return result;
|
|
1521
|
-
},
|
|
1522
|
-
_a.purge = function (name, path) {
|
|
1523
|
-
var _a;
|
|
1524
|
-
var result = false;
|
|
1525
|
-
if (areCookiesSupported(logger)) {
|
|
1526
|
-
var values = (_a = {},
|
|
1527
|
-
_a["path"] = path ? path : "/",
|
|
1528
|
-
_a[strExpires] = "Thu, 01 Jan 1970 00:00:01 GMT",
|
|
1529
|
-
_a);
|
|
1530
|
-
if (!isIE()) {
|
|
1531
|
-
values["max-age"] = "0";
|
|
1532
|
-
}
|
|
1533
|
-
var delCookie = cookieMgrConfig.delCookie || _setCookieValue;
|
|
1534
|
-
delCookie(name, _formatCookieValue(STR_EMPTY, values));
|
|
1535
|
-
result = true;
|
|
1536
|
-
}
|
|
1537
|
-
return result;
|
|
1538
|
-
},
|
|
1539
|
-
_a);
|
|
1540
|
-
cookieMgr[strConfigCookieMgr] = cookieMgr;
|
|
1541
|
-
return cookieMgr;
|
|
1542
|
-
}
|
|
1543
|
-
function areCookiesSupported(logger) {
|
|
1544
|
-
if (_supportsCookies === null) {
|
|
1545
|
-
_supportsCookies = false;
|
|
1546
|
-
try {
|
|
1547
|
-
var doc = _doc || {};
|
|
1548
|
-
_supportsCookies = doc[strCookie] !== undefined;
|
|
1549
|
-
}
|
|
1550
|
-
catch (e) {
|
|
1551
|
-
_throwInternal(logger, 2 , 68 , "Cannot access document.cookie - " + getExceptionName(e), { exception: dumpObj(e) });
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
return _supportsCookies;
|
|
1555
|
-
}
|
|
1556
|
-
function _extractParts(theValue) {
|
|
1557
|
-
var values = {};
|
|
1558
|
-
if (theValue && theValue[_DYN_LENGTH$2 ]) {
|
|
1559
|
-
var parts = strTrim(theValue)[_DYN_SPLIT ](";");
|
|
1560
|
-
arrForEach(parts, function (thePart) {
|
|
1561
|
-
thePart = strTrim(thePart || STR_EMPTY);
|
|
1562
|
-
if (thePart) {
|
|
1563
|
-
var idx = thePart[_DYN_INDEX_OF ]("=");
|
|
1564
|
-
if (idx === -1) {
|
|
1565
|
-
values[thePart] = null;
|
|
1566
|
-
}
|
|
1567
|
-
else {
|
|
1568
|
-
values[strTrim(thePart[_DYN_SUBSTRING$1 ](0, idx))] = strTrim(thePart[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
});
|
|
1572
|
-
}
|
|
1573
|
-
return values;
|
|
1574
|
-
}
|
|
1575
|
-
function _formatDate(theDate, func) {
|
|
1576
|
-
if (isFunction(theDate[func])) {
|
|
1577
|
-
return theDate[func]();
|
|
1578
|
-
}
|
|
1579
|
-
return null;
|
|
1580
|
-
}
|
|
1581
|
-
function _formatCookieValue(value, values) {
|
|
1582
|
-
var cookieValue = value || STR_EMPTY;
|
|
1583
|
-
objForEachKey(values, function (name, theValue) {
|
|
1584
|
-
cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
|
|
1585
|
-
});
|
|
1586
|
-
return cookieValue;
|
|
1587
|
-
}
|
|
1588
|
-
function _getCookieValue(name) {
|
|
1589
|
-
var cookieValue = STR_EMPTY;
|
|
1590
|
-
if (_doc) {
|
|
1591
|
-
var theCookie = _doc[strCookie] || STR_EMPTY;
|
|
1592
|
-
if (_parsedCookieValue !== theCookie) {
|
|
1593
|
-
_cookieCache = _extractParts(theCookie);
|
|
1594
|
-
_parsedCookieValue = theCookie;
|
|
1595
|
-
}
|
|
1596
|
-
cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
|
|
1597
|
-
}
|
|
1598
|
-
return cookieValue;
|
|
1599
|
-
}
|
|
1600
|
-
function _setCookieValue(name, cookieValue) {
|
|
1601
|
-
if (_doc) {
|
|
1602
|
-
_doc[strCookie] = name + "=" + cookieValue;
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
function uaDisallowsSameSiteNone(userAgent) {
|
|
1606
|
-
if (!isString(userAgent)) {
|
|
1607
|
-
return false;
|
|
1608
|
-
}
|
|
1609
|
-
if (strContains(userAgent, "CPU iPhone OS 12") || strContains(userAgent, "iPad; CPU OS 12")) {
|
|
1610
|
-
return true;
|
|
1611
|
-
}
|
|
1612
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strContains(userAgent, "Version/") && strContains(userAgent, "Safari")) {
|
|
1613
|
-
return true;
|
|
1614
|
-
}
|
|
1615
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strEndsWith(userAgent, "AppleWebKit/605.1.15 (KHTML, like Gecko)")) {
|
|
1616
|
-
return true;
|
|
1617
|
-
}
|
|
1618
|
-
if (strContains(userAgent, "Chrome/5") || strContains(userAgent, "Chrome/6")) {
|
|
1619
|
-
return true;
|
|
1620
|
-
}
|
|
1621
|
-
if (strContains(userAgent, "UnrealEngine") && !strContains(userAgent, "Chrome")) {
|
|
1622
|
-
return true;
|
|
1623
|
-
}
|
|
1624
|
-
if (strContains(userAgent, "UCBrowser/12") || strContains(userAgent, "UCBrowser/11")) {
|
|
1625
|
-
return true;
|
|
1626
|
-
}
|
|
1627
|
-
return false;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
var strOnPrefix = "on";
|
|
1631
|
-
var strAttachEvent = "attachEvent";
|
|
1632
|
-
var strAddEventHelper = "addEventListener";
|
|
1633
|
-
var strEvents = "events";
|
|
1634
|
-
createUniqueNamespace("aiEvtPageHide");
|
|
1635
|
-
createUniqueNamespace("aiEvtPageShow");
|
|
1636
|
-
var rRemoveEmptyNs = /\.[\.]+/g;
|
|
1637
|
-
var rRemoveTrailingEmptyNs = /[\.]+$/;
|
|
1638
|
-
var _guid = 1;
|
|
1639
|
-
var elmNodeData = createElmNodeData("events");
|
|
1640
|
-
var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
|
|
1641
|
-
function _normalizeNamespace(name) {
|
|
1642
|
-
if (name && name[_DYN_REPLACE$1 ]) {
|
|
1643
|
-
return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
|
|
1644
|
-
}
|
|
1645
|
-
return name;
|
|
1646
|
-
}
|
|
1647
|
-
function _getEvtNamespace(eventName, evtNamespace) {
|
|
1648
|
-
var _a;
|
|
1649
|
-
if (evtNamespace) {
|
|
1650
|
-
var theNamespace_1 = STR_EMPTY;
|
|
1651
|
-
if (isArray(evtNamespace)) {
|
|
1652
|
-
theNamespace_1 = STR_EMPTY;
|
|
1653
|
-
arrForEach(evtNamespace, function (name) {
|
|
1654
|
-
name = _normalizeNamespace(name);
|
|
1655
|
-
if (name) {
|
|
1656
|
-
if (name[0] !== ".") {
|
|
1657
|
-
name = "." + name;
|
|
1658
|
-
}
|
|
1659
|
-
theNamespace_1 += name;
|
|
1660
|
-
}
|
|
1661
|
-
});
|
|
1662
|
-
}
|
|
1663
|
-
else {
|
|
1664
|
-
theNamespace_1 = _normalizeNamespace(evtNamespace);
|
|
1665
|
-
}
|
|
1666
|
-
if (theNamespace_1) {
|
|
1667
|
-
if (theNamespace_1[0] !== ".") {
|
|
1668
|
-
theNamespace_1 = "." + theNamespace_1;
|
|
1669
|
-
}
|
|
1670
|
-
eventName = (eventName || STR_EMPTY) + theNamespace_1;
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
|
|
1674
|
-
return _a = {},
|
|
1675
|
-
_a[_DYN_TYPE ] = parsedEvent[1],
|
|
1676
|
-
_a.ns = ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT ](".").sort()).join("."),
|
|
1677
|
-
_a;
|
|
1678
|
-
}
|
|
1679
|
-
function _getRegisteredEvents(target, evtName, addDefault) {
|
|
1680
|
-
if (addDefault === void 0) { addDefault = true; }
|
|
1681
|
-
var aiEvts = elmNodeData.get(target, strEvents, {}, addDefault);
|
|
1682
|
-
var registeredEvents = aiEvts[evtName];
|
|
1683
|
-
if (!registeredEvents) {
|
|
1684
|
-
registeredEvents = aiEvts[evtName] = [];
|
|
1685
|
-
}
|
|
1686
|
-
return registeredEvents;
|
|
1687
|
-
}
|
|
1688
|
-
function _doAttach(obj, evtName, handlerRef, useCapture) {
|
|
1689
|
-
var result = false;
|
|
1690
|
-
if (obj && evtName && evtName[_DYN_TYPE ] && handlerRef) {
|
|
1691
|
-
if (obj[strAddEventHelper]) {
|
|
1692
|
-
obj[strAddEventHelper](evtName[_DYN_TYPE ], handlerRef, useCapture);
|
|
1693
|
-
result = true;
|
|
1694
|
-
}
|
|
1695
|
-
else if (obj[strAttachEvent]) {
|
|
1696
|
-
obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
|
|
1697
|
-
result = true;
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
return result;
|
|
1701
|
-
}
|
|
1702
|
-
function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {
|
|
1703
|
-
var _a;
|
|
1704
|
-
if (useCapture === void 0) { useCapture = false; }
|
|
1705
|
-
var result = false;
|
|
1706
|
-
if (target) {
|
|
1707
|
-
try {
|
|
1708
|
-
var evtName = _getEvtNamespace(eventName, evtNamespace);
|
|
1709
|
-
result = _doAttach(target, evtName, handlerRef, useCapture);
|
|
1710
|
-
if (result && elmNodeData.accept(target)) {
|
|
1711
|
-
var registeredEvent = (_a = {
|
|
1712
|
-
guid: _guid++,
|
|
1713
|
-
evtName: evtName
|
|
1714
|
-
},
|
|
1715
|
-
_a[_DYN_HANDLER ] = handlerRef,
|
|
1716
|
-
_a.capture = useCapture,
|
|
1717
|
-
_a);
|
|
1718
|
-
_getRegisteredEvents(target, evtName.type)[_DYN_PUSH$1 ](registeredEvent);
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
catch (e) {
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
return result;
|
|
1725
|
-
}
|
|
1726
|
-
function attachEvent(obj, eventNameWithoutOn, handlerRef, useCapture) {
|
|
1727
|
-
if (useCapture === void 0) { useCapture = false; }
|
|
1728
|
-
return eventOn(obj, eventNameWithoutOn, handlerRef, null, useCapture);
|
|
1729
|
-
}
|
|
1730
|
-
function addEventHandler(eventName, callback, evtNamespace) {
|
|
1731
|
-
var result = false;
|
|
1732
|
-
var w = getWindow();
|
|
1733
|
-
if (w) {
|
|
1734
|
-
result = eventOn(w, eventName, callback, evtNamespace);
|
|
1735
|
-
result = eventOn(w["body"], eventName, callback, evtNamespace) || result;
|
|
1736
|
-
}
|
|
1737
|
-
var doc = getDocument();
|
|
1738
|
-
if (doc) {
|
|
1739
|
-
result = eventOn(doc, eventName, callback, evtNamespace) || result;
|
|
1740
|
-
}
|
|
1741
|
-
return result;
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
var _cookieMgrs = null;
|
|
1745
|
-
var _canUseCookies;
|
|
1746
|
-
function newGuid() {
|
|
1747
|
-
var uuid = generateW3CId();
|
|
1748
|
-
return uuid[_DYN_SUBSTRING$1 ](0, 8) + "-" + uuid[_DYN_SUBSTRING$1 ](8, 12) + "-" + uuid[_DYN_SUBSTRING$1 ](12, 16) + "-" + uuid[_DYN_SUBSTRING$1 ](16, 20) + "-" + uuid[_DYN_SUBSTRING$1 ](20);
|
|
1749
|
-
}
|
|
1750
|
-
function perfNow() {
|
|
1751
|
-
var perf = getPerformance();
|
|
1752
|
-
if (perf && perf.now) {
|
|
1753
|
-
return perf.now();
|
|
1754
|
-
}
|
|
1755
|
-
return dateNow();
|
|
1756
|
-
}
|
|
1757
|
-
function generateW3CId() {
|
|
1758
|
-
var hexValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
1759
|
-
var oct = STR_EMPTY, tmp;
|
|
1760
|
-
for (var a = 0; a < 4; a++) {
|
|
1761
|
-
tmp = random32();
|
|
1762
|
-
oct +=
|
|
1763
|
-
hexValues[tmp & 0xF] +
|
|
1764
|
-
hexValues[tmp >> 4 & 0xF] +
|
|
1765
|
-
hexValues[tmp >> 8 & 0xF] +
|
|
1766
|
-
hexValues[tmp >> 12 & 0xF] +
|
|
1767
|
-
hexValues[tmp >> 16 & 0xF] +
|
|
1768
|
-
hexValues[tmp >> 20 & 0xF] +
|
|
1769
|
-
hexValues[tmp >> 24 & 0xF] +
|
|
1770
|
-
hexValues[tmp >> 28 & 0xF];
|
|
1771
|
-
}
|
|
1772
|
-
var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];
|
|
1773
|
-
return oct[_DYN_SUBSTR ](0, 8) + oct[_DYN_SUBSTR ](9, 4) + "4" + oct[_DYN_SUBSTR ](13, 3) + clockSequenceHi + oct[_DYN_SUBSTR ](16, 3) + oct[_DYN_SUBSTR ](19, 12);
|
|
1774
|
-
}
|
|
1775
|
-
var CoreUtils = {
|
|
1776
|
-
_canUseCookies: undefined,
|
|
1777
|
-
isTypeof: isTypeof,
|
|
1778
|
-
isUndefined: isUndefined,
|
|
1779
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
1780
|
-
hasOwnProperty: hasOwnProperty,
|
|
1781
|
-
isFunction: isFunction,
|
|
1782
|
-
isObject: isObject,
|
|
1783
|
-
isDate: isDate,
|
|
1784
|
-
isArray: isArray,
|
|
1785
|
-
isError: isError,
|
|
1786
|
-
isString: isString,
|
|
1787
|
-
isNumber: isNumber,
|
|
1788
|
-
isBoolean: isBoolean,
|
|
1789
|
-
toISOString: toISOString,
|
|
1790
|
-
arrForEach: arrForEach,
|
|
1791
|
-
arrIndexOf: arrIndexOf,
|
|
1792
|
-
arrMap: arrMap,
|
|
1793
|
-
arrReduce: arrReduce,
|
|
1794
|
-
strTrim: strTrim,
|
|
1795
|
-
objCreate: objCreateFn,
|
|
1796
|
-
objKeys: objKeys,
|
|
1797
|
-
objDefineAccessors: objDefineAccessors,
|
|
1798
|
-
addEventHandler: addEventHandler,
|
|
1799
|
-
dateNow: dateNow,
|
|
1800
|
-
isIE: isIE,
|
|
1801
|
-
disableCookies: disableCookies,
|
|
1802
|
-
newGuid: newGuid,
|
|
1803
|
-
perfNow: perfNow,
|
|
1804
|
-
newId: newId,
|
|
1805
|
-
randomValue: randomValue,
|
|
1806
|
-
random32: random32,
|
|
1807
|
-
mwcRandomSeed: mwcRandomSeed,
|
|
1808
|
-
mwcRandom32: mwcRandom32,
|
|
1809
|
-
generateW3CId: generateW3CId
|
|
1810
|
-
};
|
|
1811
|
-
function _legacyCookieMgr(config, logger) {
|
|
1812
|
-
var cookieMgr = _gblCookieMgr(config, logger);
|
|
1813
|
-
var legacyCanUseCookies = CoreUtils._canUseCookies;
|
|
1814
|
-
if (_cookieMgrs === null) {
|
|
1815
|
-
_cookieMgrs = [];
|
|
1816
|
-
_canUseCookies = legacyCanUseCookies;
|
|
1817
|
-
objDefineAccessors(CoreUtils, "_canUseCookies", function () {
|
|
1818
|
-
return _canUseCookies;
|
|
1819
|
-
}, function (value) {
|
|
1820
|
-
_canUseCookies = value;
|
|
1821
|
-
arrForEach(_cookieMgrs, function (mgr) {
|
|
1822
|
-
mgr[_DYN_SET_ENABLED ](value);
|
|
1823
|
-
});
|
|
1824
|
-
});
|
|
1825
|
-
}
|
|
1826
|
-
if (arrIndexOf(_cookieMgrs, cookieMgr) === -1) {
|
|
1827
|
-
_cookieMgrs[_DYN_PUSH$1 ](cookieMgr);
|
|
1828
|
-
}
|
|
1829
|
-
if (isBoolean(legacyCanUseCookies)) {
|
|
1830
|
-
cookieMgr[_DYN_SET_ENABLED ](legacyCanUseCookies);
|
|
1831
|
-
}
|
|
1832
|
-
if (isBoolean(_canUseCookies)) {
|
|
1833
|
-
cookieMgr[_DYN_SET_ENABLED ](_canUseCookies);
|
|
1834
|
-
}
|
|
1835
|
-
return cookieMgr;
|
|
1836
|
-
}
|
|
1837
|
-
function disableCookies() {
|
|
1838
|
-
_legacyCookieMgr()[_DYN_SET_ENABLED ](false);
|
|
1839
|
-
}
|
|
1840
|
-
function canUseCookies(logger) {
|
|
1841
|
-
return _legacyCookieMgr(null, logger).isEnabled();
|
|
1842
|
-
}
|
|
1843
|
-
function getCookie(logger, name) {
|
|
1844
|
-
return _legacyCookieMgr(null, logger).get(name);
|
|
1845
|
-
}
|
|
1846
|
-
function setCookie(logger, name, value, domain) {
|
|
1847
|
-
_legacyCookieMgr(null, logger).set(name, value, null, domain);
|
|
1848
|
-
}
|
|
1849
|
-
function deleteCookie(logger, name) {
|
|
1850
|
-
return _legacyCookieMgr(null, logger).del(name);
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
1273
|
var pluginStateData = createElmNodeData("plugin");
|
|
1854
1274
|
function _getPluginState(plugin) {
|
|
1855
1275
|
return pluginStateData.get(plugin, "state", {}, true);
|
|
@@ -1919,7 +1339,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
1919
1339
|
_nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT ]() : null;
|
|
1920
1340
|
if (!nextProxy) {
|
|
1921
1341
|
var onComplete = _onComplete;
|
|
1922
|
-
if (onComplete && onComplete[_DYN_LENGTH$
|
|
1342
|
+
if (onComplete && onComplete[_DYN_LENGTH$1 ] > 0) {
|
|
1923
1343
|
arrForEach(onComplete, function (completeDetails) {
|
|
1924
1344
|
try {
|
|
1925
1345
|
completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
|
|
@@ -2051,7 +1471,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2051
1471
|
function createTelemetryProxyChain(plugins, config, core, startAt) {
|
|
2052
1472
|
var firstProxy = null;
|
|
2053
1473
|
var add = startAt ? false : true;
|
|
2054
|
-
if (isArray(plugins) && plugins[_DYN_LENGTH$
|
|
1474
|
+
if (isArray(plugins) && plugins[_DYN_LENGTH$1 ] > 0) {
|
|
2055
1475
|
var lastProxy_1 = null;
|
|
2056
1476
|
arrForEach(plugins, function (thePlugin) {
|
|
2057
1477
|
if (!add && startAt === thePlugin) {
|
|
@@ -2384,7 +1804,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2384
1804
|
];
|
|
2385
1805
|
function _arrLoop(arr, fn) {
|
|
2386
1806
|
if (arr) {
|
|
2387
|
-
for (var lp = 0; lp < arr[_DYN_LENGTH$
|
|
1807
|
+
for (var lp = 0; lp < arr[_DYN_LENGTH$1 ]; lp++) {
|
|
2388
1808
|
if (fn(arr[lp], lp)) {
|
|
2389
1809
|
break;
|
|
2390
1810
|
}
|
|
@@ -2437,7 +1857,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2437
1857
|
_a);
|
|
2438
1858
|
var hookCtx = [];
|
|
2439
1859
|
var cbArgs = _createArgs([funcArgs], orgArgs);
|
|
2440
|
-
funcArgs.evt =
|
|
1860
|
+
funcArgs.evt = getInst("event");
|
|
2441
1861
|
function _createArgs(target, theArgs) {
|
|
2442
1862
|
_arrLoop(theArgs, function (arg) {
|
|
2443
1863
|
target[_DYN_PUSH$1 ](arg);
|
|
@@ -2468,7 +1888,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2468
1888
|
function _getOwner(target, name, checkPrototype) {
|
|
2469
1889
|
var owner = null;
|
|
2470
1890
|
if (target) {
|
|
2471
|
-
if (
|
|
1891
|
+
if (objHasOwnProperty(target, name)) {
|
|
2472
1892
|
owner = target;
|
|
2473
1893
|
}
|
|
2474
1894
|
else if (checkPrototype) {
|
|
@@ -2536,7 +1956,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2536
1956
|
var _DYN_STOP_PROPAGATION = "stopPropagation";
|
|
2537
1957
|
var _DYN_IS_DISPLAYED = "isDisplayed";
|
|
2538
1958
|
var _DYN_NAME = "name";
|
|
2539
|
-
var _DYN_LENGTH
|
|
1959
|
+
var _DYN_LENGTH = "length";
|
|
2540
1960
|
var _DYN_SHOW_CHILDREN = "showChildren";
|
|
2541
1961
|
var _DYN_DUMP_TO_CONSOLE = "dumpToConsole";
|
|
2542
1962
|
var _DYN_LOG_PROCESS_TELEMETR2 = "logProcessTelemetry";
|
|
@@ -2560,275 +1980,13 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2560
1980
|
var _DYN_FOCUS = "focus";
|
|
2561
1981
|
var _DYN_REPLACE = "replace";
|
|
2562
1982
|
var _DYN_SUBSTRING = "substring";
|
|
2563
|
-
var _DYN_TO_STRING$1 = "toString";
|
|
2564
|
-
var _DYN_IS_ERROR = "isError";
|
|
2565
|
-
|
|
2566
|
-
var DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
|
|
2567
|
-
var DEFAULT_BREEZE_PATH = "/v2/track";
|
|
2568
|
-
var strNotSpecified = "not_specified";
|
|
2569
|
-
|
|
2570
|
-
function createDomEvent(eventName) {
|
|
2571
|
-
var event = null;
|
|
2572
|
-
if (isFunction(Event)) {
|
|
2573
|
-
event = new Event(eventName);
|
|
2574
|
-
}
|
|
2575
|
-
else {
|
|
2576
|
-
var doc = getDocument();
|
|
2577
|
-
if (doc && doc.createEvent) {
|
|
2578
|
-
event = doc.createEvent("Event");
|
|
2579
|
-
event.initEvent(eventName, true, true);
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
return event;
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
var _DYN_LENGTH = "length";
|
|
2586
|
-
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
2587
1983
|
var _DYN_TO_STRING = "toString";
|
|
2588
|
-
var _DYN_REMOVE_ITEM = "removeItem";
|
|
2589
|
-
|
|
2590
|
-
var strEmpty = "";
|
|
2591
|
-
function stringToBoolOrDefault(str, defaultValue) {
|
|
2592
|
-
if (defaultValue === void 0) { defaultValue = false; }
|
|
2593
|
-
if (str === undefined || str === null) {
|
|
2594
|
-
return defaultValue;
|
|
2595
|
-
}
|
|
2596
|
-
return str.toString()[_DYN_TO_LOWER_CASE ]() === "true";
|
|
2597
|
-
}
|
|
2598
|
-
function msToTimeSpan(totalms) {
|
|
2599
|
-
if (isNaN(totalms) || totalms < 0) {
|
|
2600
|
-
totalms = 0;
|
|
2601
|
-
}
|
|
2602
|
-
totalms = Math.round(totalms);
|
|
2603
|
-
var ms = strEmpty + totalms % 1000;
|
|
2604
|
-
var sec = strEmpty + Math.floor(totalms / 1000) % 60;
|
|
2605
|
-
var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
|
|
2606
|
-
var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
|
|
2607
|
-
var days = Math.floor(totalms / (1000 * 60 * 60 * 24));
|
|
2608
|
-
ms = ms[_DYN_LENGTH ] === 1 ? "00" + ms : ms[_DYN_LENGTH ] === 2 ? "0" + ms : ms;
|
|
2609
|
-
sec = sec[_DYN_LENGTH ] < 2 ? "0" + sec : sec;
|
|
2610
|
-
min = min[_DYN_LENGTH ] < 2 ? "0" + min : min;
|
|
2611
|
-
hour = hour[_DYN_LENGTH ] < 2 ? "0" + hour : hour;
|
|
2612
|
-
return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
|
|
2613
|
-
}
|
|
2614
|
-
function getExtensionByName(extensions, identifier) {
|
|
2615
|
-
var extension = null;
|
|
2616
|
-
arrForEach(extensions, function (value) {
|
|
2617
|
-
if (value.identifier === identifier) {
|
|
2618
|
-
extension = value;
|
|
2619
|
-
return -1;
|
|
2620
|
-
}
|
|
2621
|
-
});
|
|
2622
|
-
return extension;
|
|
2623
|
-
}
|
|
2624
|
-
function isCrossOriginError(message, url, lineNumber, columnNumber, error) {
|
|
2625
|
-
return !error && isString(message) && (message === "Script error." || message === "Script error");
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
var StorageType = createEnumStyle({
|
|
2629
|
-
LocalStorage: 0 ,
|
|
2630
|
-
SessionStorage: 1
|
|
2631
|
-
});
|
|
2632
|
-
createEnumStyle({
|
|
2633
|
-
AI: 0 ,
|
|
2634
|
-
AI_AND_W3C: 1 ,
|
|
2635
|
-
W3C: 2
|
|
2636
|
-
});
|
|
2637
|
-
|
|
2638
|
-
var _canUseLocalStorage = undefined;
|
|
2639
|
-
var _canUseSessionStorage = undefined;
|
|
2640
|
-
function _getLocalStorageObject() {
|
|
2641
|
-
if (utlCanUseLocalStorage()) {
|
|
2642
|
-
return _getVerifiedStorageObject(StorageType.LocalStorage);
|
|
2643
|
-
}
|
|
2644
|
-
return null;
|
|
2645
|
-
}
|
|
2646
|
-
function _getVerifiedStorageObject(storageType) {
|
|
2647
|
-
try {
|
|
2648
|
-
if (isNullOrUndefined(getGlobal())) {
|
|
2649
|
-
return null;
|
|
2650
|
-
}
|
|
2651
|
-
var uid = (new Date)[_DYN_TO_STRING ]();
|
|
2652
|
-
var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
|
|
2653
|
-
storage.setItem(uid, uid);
|
|
2654
|
-
var fail = storage.getItem(uid) !== uid;
|
|
2655
|
-
storage[_DYN_REMOVE_ITEM ](uid);
|
|
2656
|
-
if (!fail) {
|
|
2657
|
-
return storage;
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2660
|
-
catch (exception) {
|
|
2661
|
-
}
|
|
2662
|
-
return null;
|
|
2663
|
-
}
|
|
2664
|
-
function _getSessionStorageObject() {
|
|
2665
|
-
if (utlCanUseSessionStorage()) {
|
|
2666
|
-
return _getVerifiedStorageObject(StorageType.SessionStorage);
|
|
2667
|
-
}
|
|
2668
|
-
return null;
|
|
2669
|
-
}
|
|
2670
|
-
function utlDisableStorage() {
|
|
2671
|
-
_canUseLocalStorage = false;
|
|
2672
|
-
_canUseSessionStorage = false;
|
|
2673
|
-
}
|
|
2674
|
-
function utlCanUseLocalStorage(reset) {
|
|
2675
|
-
if (reset || _canUseLocalStorage === undefined) {
|
|
2676
|
-
_canUseLocalStorage = !!_getVerifiedStorageObject(StorageType.LocalStorage);
|
|
2677
|
-
}
|
|
2678
|
-
return _canUseLocalStorage;
|
|
2679
|
-
}
|
|
2680
|
-
function utlGetLocalStorage(logger, name) {
|
|
2681
|
-
var storage = _getLocalStorageObject();
|
|
2682
|
-
if (storage !== null) {
|
|
2683
|
-
try {
|
|
2684
|
-
return storage.getItem(name);
|
|
2685
|
-
}
|
|
2686
|
-
catch (e) {
|
|
2687
|
-
_canUseLocalStorage = false;
|
|
2688
|
-
_throwInternal(logger, 2 , 1 , "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2691
|
-
return null;
|
|
2692
|
-
}
|
|
2693
|
-
function utlSetLocalStorage(logger, name, data) {
|
|
2694
|
-
var storage = _getLocalStorageObject();
|
|
2695
|
-
if (storage !== null) {
|
|
2696
|
-
try {
|
|
2697
|
-
storage.setItem(name, data);
|
|
2698
|
-
return true;
|
|
2699
|
-
}
|
|
2700
|
-
catch (e) {
|
|
2701
|
-
_canUseLocalStorage = false;
|
|
2702
|
-
_throwInternal(logger, 2 , 3 , "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
return false;
|
|
2706
|
-
}
|
|
2707
|
-
function utlRemoveStorage(logger, name) {
|
|
2708
|
-
var storage = _getLocalStorageObject();
|
|
2709
|
-
if (storage !== null) {
|
|
2710
|
-
try {
|
|
2711
|
-
storage[_DYN_REMOVE_ITEM ](name);
|
|
2712
|
-
return true;
|
|
2713
|
-
}
|
|
2714
|
-
catch (e) {
|
|
2715
|
-
_canUseLocalStorage = false;
|
|
2716
|
-
_throwInternal(logger, 2 , 5 , "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2717
|
-
}
|
|
2718
|
-
}
|
|
2719
|
-
return false;
|
|
2720
|
-
}
|
|
2721
|
-
function utlCanUseSessionStorage(reset) {
|
|
2722
|
-
if (reset || _canUseSessionStorage === undefined) {
|
|
2723
|
-
_canUseSessionStorage = !!_getVerifiedStorageObject(StorageType.SessionStorage);
|
|
2724
|
-
}
|
|
2725
|
-
return _canUseSessionStorage;
|
|
2726
|
-
}
|
|
2727
|
-
function utlGetSessionStorageKeys() {
|
|
2728
|
-
var keys = [];
|
|
2729
|
-
if (utlCanUseSessionStorage()) {
|
|
2730
|
-
objForEachKey(getGlobalInst("sessionStorage"), function (key) {
|
|
2731
|
-
keys.push(key);
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
return keys;
|
|
2735
|
-
}
|
|
2736
|
-
function utlGetSessionStorage(logger, name) {
|
|
2737
|
-
var storage = _getSessionStorageObject();
|
|
2738
|
-
if (storage !== null) {
|
|
2739
|
-
try {
|
|
2740
|
-
return storage.getItem(name);
|
|
2741
|
-
}
|
|
2742
|
-
catch (e) {
|
|
2743
|
-
_canUseSessionStorage = false;
|
|
2744
|
-
_throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
return null;
|
|
2748
|
-
}
|
|
2749
|
-
function utlSetSessionStorage(logger, name, data) {
|
|
2750
|
-
var storage = _getSessionStorageObject();
|
|
2751
|
-
if (storage !== null) {
|
|
2752
|
-
try {
|
|
2753
|
-
storage.setItem(name, data);
|
|
2754
|
-
return true;
|
|
2755
|
-
}
|
|
2756
|
-
catch (e) {
|
|
2757
|
-
_canUseSessionStorage = false;
|
|
2758
|
-
_throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2759
|
-
}
|
|
2760
|
-
}
|
|
2761
|
-
return false;
|
|
2762
|
-
}
|
|
2763
|
-
function utlRemoveSessionStorage(logger, name) {
|
|
2764
|
-
var storage = _getSessionStorageObject();
|
|
2765
|
-
if (storage !== null) {
|
|
2766
|
-
try {
|
|
2767
|
-
storage[_DYN_REMOVE_ITEM ](name);
|
|
2768
|
-
return true;
|
|
2769
|
-
}
|
|
2770
|
-
catch (e) {
|
|
2771
|
-
_canUseSessionStorage = false;
|
|
2772
|
-
_throwInternal(logger, 2 , 6 , "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2773
|
-
}
|
|
2774
|
-
}
|
|
2775
|
-
return false;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
var _internalEndpoints = [
|
|
2779
|
-
DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH,
|
|
2780
|
-
"https://breeze.aimon.applicationinsights.io" + DEFAULT_BREEZE_PATH,
|
|
2781
|
-
"https://dc-int.services.visualstudio.com" + DEFAULT_BREEZE_PATH
|
|
2782
|
-
];
|
|
2783
|
-
function isInternalApplicationInsightsEndpoint(endpointUrl) {
|
|
2784
|
-
return arrIndexOf(_internalEndpoints, endpointUrl[_DYN_TO_LOWER_CASE ]()) !== -1;
|
|
2785
|
-
}
|
|
2786
|
-
var Util = {
|
|
2787
|
-
NotSpecified: strNotSpecified,
|
|
2788
|
-
createDomEvent: createDomEvent,
|
|
2789
|
-
disableStorage: utlDisableStorage,
|
|
2790
|
-
isInternalApplicationInsightsEndpoint: isInternalApplicationInsightsEndpoint,
|
|
2791
|
-
canUseLocalStorage: utlCanUseLocalStorage,
|
|
2792
|
-
getStorage: utlGetLocalStorage,
|
|
2793
|
-
setStorage: utlSetLocalStorage,
|
|
2794
|
-
removeStorage: utlRemoveStorage,
|
|
2795
|
-
canUseSessionStorage: utlCanUseSessionStorage,
|
|
2796
|
-
getSessionStorageKeys: utlGetSessionStorageKeys,
|
|
2797
|
-
getSessionStorage: utlGetSessionStorage,
|
|
2798
|
-
setSessionStorage: utlSetSessionStorage,
|
|
2799
|
-
removeSessionStorage: utlRemoveSessionStorage,
|
|
2800
|
-
disableCookies: disableCookies,
|
|
2801
|
-
canUseCookies: canUseCookies,
|
|
2802
|
-
disallowsSameSiteNone: uaDisallowsSameSiteNone,
|
|
2803
|
-
setCookie: setCookie,
|
|
2804
|
-
stringToBoolOrDefault: stringToBoolOrDefault,
|
|
2805
|
-
getCookie: getCookie,
|
|
2806
|
-
deleteCookie: deleteCookie,
|
|
2807
|
-
trim: strTrim,
|
|
2808
|
-
newId: newId,
|
|
2809
|
-
random32: function () {
|
|
2810
|
-
return random32(true);
|
|
2811
|
-
},
|
|
2812
|
-
generateW3CId: generateW3CId,
|
|
2813
|
-
isArray: isArray,
|
|
2814
|
-
isError: isError,
|
|
2815
|
-
isDate: isDate,
|
|
2816
|
-
toISOStringForIE8: toISOString,
|
|
2817
|
-
getIEVersion: getIEVersion,
|
|
2818
|
-
msToTimeSpan: msToTimeSpan,
|
|
2819
|
-
isCrossOriginError: isCrossOriginError,
|
|
2820
|
-
dump: dumpObj,
|
|
2821
|
-
getExceptionName: getExceptionName,
|
|
2822
|
-
addEventHandler: attachEvent,
|
|
2823
|
-
IsBeaconApiSupported: isBeaconsSupported,
|
|
2824
|
-
getExtension: getExtensionByName
|
|
2825
|
-
};
|
|
2826
1984
|
|
|
2827
1985
|
var strConstructor = "constructor";
|
|
2828
1986
|
var strGetOwnPropertyNames = "getOwnPropertyNames";
|
|
2829
1987
|
var MAX_DEPTH = 16;
|
|
2830
1988
|
function makeRegex(value) {
|
|
2831
|
-
if (value && value[_DYN_LENGTH
|
|
1989
|
+
if (value && value[_DYN_LENGTH ] > 0) {
|
|
2832
1990
|
value = value[_DYN_REPLACE ](/\\/g, "\\\\");
|
|
2833
1991
|
value = value[_DYN_REPLACE ](/([\+\?\|\{\}\[\]\(\)\^\$\#\.\=\!\:\/])/g, "\\$1");
|
|
2834
1992
|
value = value.replace(/\*/g, ".*");
|
|
@@ -2842,7 +2000,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2842
2000
|
el[_DYN_CLASS_NAME ] += className;
|
|
2843
2001
|
}
|
|
2844
2002
|
else {
|
|
2845
|
-
el[_DYN_CLASS_NAME ] = el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](0, idx) + el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](idx + className[_DYN_LENGTH
|
|
2003
|
+
el[_DYN_CLASS_NAME ] = el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](0, idx) + el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](idx + className[_DYN_LENGTH ]);
|
|
2846
2004
|
}
|
|
2847
2005
|
}
|
|
2848
2006
|
function traverseAndReplace(target, maxDepth, currentDepth, thingsReferenced, excludedKeys, includeFunctions) {
|
|
@@ -2855,7 +2013,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2855
2013
|
var key = _a[_i];
|
|
2856
2014
|
var targetValue = target[key];
|
|
2857
2015
|
if (isSymbol(targetValue)) {
|
|
2858
|
-
targetValue = targetValue[_DYN_TO_STRING
|
|
2016
|
+
targetValue = targetValue[_DYN_TO_STRING ]();
|
|
2859
2017
|
}
|
|
2860
2018
|
if (targetValue !== null && arrIndexOf(thingsReferenced, targetValue) !== -1) {
|
|
2861
2019
|
out[key] = "<circular (".concat(key, " - \"").concat(getTargetName(targetValue), "\")>");
|
|
@@ -2894,7 +2052,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2894
2052
|
var matchTxt = rg.exec(innerText);
|
|
2895
2053
|
if (matchTxt && matchTxt[1]) {
|
|
2896
2054
|
matchPos = theText.indexOf(matchTxt[1]);
|
|
2897
|
-
matchLen = matchTxt[1][_DYN_LENGTH
|
|
2055
|
+
matchLen = matchTxt[1][_DYN_LENGTH ];
|
|
2898
2056
|
}
|
|
2899
2057
|
}
|
|
2900
2058
|
if (matchPos !== -1) {
|
|
@@ -2990,7 +2148,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
2990
2148
|
if (isString(target[_DYN_NAME ])) {
|
|
2991
2149
|
return target[_DYN_NAME ];
|
|
2992
2150
|
}
|
|
2993
|
-
if (
|
|
2151
|
+
if (objHasOwnProperty(target, strShimPrototype)) {
|
|
2994
2152
|
return target[_DYN_NAME ] || "";
|
|
2995
2153
|
}
|
|
2996
2154
|
return ((target[strConstructor]) || {})[_DYN_NAME ] || "";
|
|
@@ -3002,7 +2160,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3002
2160
|
return value;
|
|
3003
2161
|
}
|
|
3004
2162
|
if (isSymbol(value)) {
|
|
3005
|
-
return value[_DYN_TO_STRING
|
|
2163
|
+
return value[_DYN_TO_STRING ]();
|
|
3006
2164
|
}
|
|
3007
2165
|
if (isFunction(value["toString"])) {
|
|
3008
2166
|
return value["toString"]() || "";
|
|
@@ -3011,7 +2169,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3011
2169
|
}
|
|
3012
2170
|
function getTargetKeys(target, excludedKeys, includeFunctions) {
|
|
3013
2171
|
var keys = objKeys(target);
|
|
3014
|
-
if (!
|
|
2172
|
+
if (!isArray(target)) {
|
|
3015
2173
|
try {
|
|
3016
2174
|
if (Object[strGetOwnPropertyNames]) {
|
|
3017
2175
|
var propKeys = Object[strGetOwnPropertyNames](target);
|
|
@@ -3048,8 +2206,8 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3048
2206
|
if (!thingsReferenced) {
|
|
3049
2207
|
thingsReferenced = [];
|
|
3050
2208
|
}
|
|
3051
|
-
var isObj = isObject(target) ||
|
|
3052
|
-
var isErr = target["baseType"] === "ExceptionData" ||
|
|
2209
|
+
var isObj = isObject(target) || isError(target);
|
|
2210
|
+
var isErr = target["baseType"] === "ExceptionData" || isError(target);
|
|
3053
2211
|
var children = [];
|
|
3054
2212
|
function _openNode(currentLine) {
|
|
3055
2213
|
openState = true;
|
|
@@ -3068,7 +2226,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3068
2226
|
var matched = false;
|
|
3069
2227
|
var childOpened = false;
|
|
3070
2228
|
var keys = getTargetKeys(target, excludeKeys, includeFunctions);
|
|
3071
|
-
if (keys[_DYN_LENGTH
|
|
2229
|
+
if (keys[_DYN_LENGTH ] === 0) {
|
|
3072
2230
|
keys[_DYN_PUSH ]("<empty>");
|
|
3073
2231
|
}
|
|
3074
2232
|
if (level >= MAX_DEPTH) {
|
|
@@ -3081,7 +2239,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3081
2239
|
}
|
|
3082
2240
|
var targetValue = target[key_1];
|
|
3083
2241
|
if (isSymbol(targetValue)) {
|
|
3084
|
-
targetValue = targetValue[_DYN_TO_STRING
|
|
2242
|
+
targetValue = targetValue[_DYN_TO_STRING ]();
|
|
3085
2243
|
}
|
|
3086
2244
|
if (key_1 === "<maxdepth>") {
|
|
3087
2245
|
var builder = document[_DYN_CREATE_ELEMENT ]("div");
|
|
@@ -3102,7 +2260,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3102
2260
|
builder[_DYN_INNER_TEXT ] = "<circular (".concat(key_1, ") - \"").concat(getTargetName(targetValue), "\">");
|
|
3103
2261
|
children[_DYN_PUSH ](builder);
|
|
3104
2262
|
}
|
|
3105
|
-
else if (targetValue !== null && (isObject(targetValue) ||
|
|
2263
|
+
else if (targetValue !== null && (isObject(targetValue) || isError(targetValue))) {
|
|
3106
2264
|
thingsReferenced[_DYN_PUSH ](target);
|
|
3107
2265
|
var formatted = formatLogElements(targetValue, null, key_1, level + 1, textFilter, excludeKeys, thingsReferenced, includeFunctions);
|
|
3108
2266
|
thingsReferenced.pop();
|
|
@@ -3139,7 +2297,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3139
2297
|
outerSpan[_DYN_APPEND_CHILD ](keySpan);
|
|
3140
2298
|
var valueSpan = document[_DYN_CREATE_ELEMENT ]("span");
|
|
3141
2299
|
if (isFunction(targetValue)) {
|
|
3142
|
-
var fnStr = targetValue[_DYN_TO_STRING
|
|
2300
|
+
var fnStr = targetValue[_DYN_TO_STRING ]();
|
|
3143
2301
|
var fnHead = fnStr.match(/^([^{]+)/)[1];
|
|
3144
2302
|
valueSpan.textContent = "".concat(fnHead, "{...}");
|
|
3145
2303
|
}
|
|
@@ -3157,9 +2315,9 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3157
2315
|
var rootDiv = document[_DYN_CREATE_ELEMENT ]("div");
|
|
3158
2316
|
var innerText = "";
|
|
3159
2317
|
var currentLine = document[_DYN_CREATE_ELEMENT ]("span");
|
|
3160
|
-
if (isObj || children[_DYN_LENGTH
|
|
2318
|
+
if (isObj || children[_DYN_LENGTH ]) {
|
|
3161
2319
|
innerText = "".concat(key ? key : "obj", ": ");
|
|
3162
|
-
if (
|
|
2320
|
+
if (isArray(target)) {
|
|
3163
2321
|
innerText += "[".concat(getTargetKeys(target, excludeKeys, includeFunctions).length, "]");
|
|
3164
2322
|
}
|
|
3165
2323
|
else {
|
|
@@ -3197,7 +2355,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3197
2355
|
}
|
|
3198
2356
|
var openHandler_1 = function (evt, forceState) {
|
|
3199
2357
|
evt[_DYN_STOP_PROPAGATION ]();
|
|
3200
|
-
if (
|
|
2358
|
+
if (getIEVersion()) {
|
|
3201
2359
|
focusHandler(evt, target, level, excludeKeys, includeFunctions);
|
|
3202
2360
|
}
|
|
3203
2361
|
if (forceState !== undefined && openState === forceState) {
|
|
@@ -3249,16 +2407,16 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3249
2407
|
}
|
|
3250
2408
|
function _testObj(rg, value, excludedKeys, includeFunctions) {
|
|
3251
2409
|
if (value !== null && value !== undefined && value !== "") {
|
|
3252
|
-
if (
|
|
3253
|
-
for (var lp = 0; lp < value[_DYN_LENGTH
|
|
2410
|
+
if (isArray(value)) {
|
|
2411
|
+
for (var lp = 0; lp < value[_DYN_LENGTH ]; lp++) {
|
|
3254
2412
|
if (_testObj(rg, value[lp], excludedKeys, includeFunctions)) {
|
|
3255
2413
|
return true;
|
|
3256
2414
|
}
|
|
3257
2415
|
}
|
|
3258
2416
|
}
|
|
3259
|
-
else if (isObject(value) ||
|
|
2417
|
+
else if (isObject(value) || isError(value)) {
|
|
3260
2418
|
var keys = getTargetKeys(value, excludedKeys, includeFunctions);
|
|
3261
|
-
for (var lp = 0; lp < keys[_DYN_LENGTH
|
|
2419
|
+
for (var lp = 0; lp < keys[_DYN_LENGTH ]; lp++) {
|
|
3262
2420
|
var key_1 = keys[lp];
|
|
3263
2421
|
if (_testValue(rg, key_1) || _testObj(rg, value[key_1], excludedKeys, includeFunctions)) {
|
|
3264
2422
|
return true;
|
|
@@ -3291,11 +2449,11 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3291
2449
|
if (!theEl || lastTextFilter !== textFilter) {
|
|
3292
2450
|
lastTextFilter = textFilter;
|
|
3293
2451
|
var ms = "" + tm;
|
|
3294
|
-
while (ms[_DYN_LENGTH
|
|
2452
|
+
while (ms[_DYN_LENGTH ] < 4) {
|
|
3295
2453
|
ms = "0" + ms;
|
|
3296
2454
|
}
|
|
3297
2455
|
ms = ms[_DYN_REPLACE ](/(.)(\d{3}){1}$/g, "$1.$2s");
|
|
3298
|
-
while (ms[_DYN_LENGTH
|
|
2456
|
+
while (ms[_DYN_LENGTH ] <= 9) {
|
|
3299
2457
|
ms = " " + ms;
|
|
3300
2458
|
}
|
|
3301
2459
|
theEl = formatLogElements(target, "[".concat(ms, "]"), key, level, textFilter, excludeKeys, [], includeFunctions).root;
|
|
@@ -3425,23 +2583,23 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3425
2583
|
}());
|
|
3426
2584
|
|
|
3427
2585
|
var BG_INFO = "#F0F6FF", BG_ERROR = "#FEF0F1", ICON_ERROR = "#E00B1C", BTN_PRIMARY = "#0078d4", BTN_HOVER = "#106EBE", BTN_ACTIVE = "#005A9E", TEXT_PRIMARY = "#323130", TEXT_MATCHED = "yellow", BORDER_GREY_160 = "1px solid #605E5C", BORDER_GREY_60 = "1px solid #B3B0AD";
|
|
3428
|
-
console.log(
|
|
3429
|
-
var tempStyle = function (prefix) { return "\n .".concat(prefix, "-dbg-lgr-dashboard {\n z-index: 1000\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls {\n width: 90%;\n min-width: 600px;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n border-color: ").concat(BG_INFO, ";\n border: 1px solid;\n background-color: transparent;\n display: block;\n padding-top: 3px;\n padding-bottom: 3px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls > div {\n display: inline-block;\n position: relative;\n padding: 3px 20px;\n z-index: 1010\n }\n\n .").concat(prefix, "-dbg-lgr {\n width: 90%;\n min-width: 600px;\n height: 80%;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n overflow-y: scroll;\n overflow-x: ").concat((
|
|
2586
|
+
console.log(getIEVersion());
|
|
2587
|
+
var tempStyle = function (prefix) { return "\n .".concat(prefix, "-dbg-lgr-dashboard {\n z-index: 1000\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls {\n width: 90%;\n min-width: 600px;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n border-color: ").concat(BG_INFO, ";\n border: 1px solid;\n background-color: transparent;\n display: block;\n padding-top: 3px;\n padding-bottom: 3px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .controls > div {\n display: inline-block;\n position: relative;\n padding: 3px 20px;\n z-index: 1010\n }\n\n .").concat(prefix, "-dbg-lgr {\n width: 90%;\n min-width: 600px;\n height: 80%;\n position: relative;\n margin: auto;\n left: 0;\n right: 0;\n font-family: monospace;\n font-size: 16px;\n overflow-y: scroll;\n overflow-x: ").concat((getIEVersion()) ? "scroll" : "hidden", ";\n border: ").concat(BORDER_GREY_160, ";\n border-radius: 2px;\n }\n\n .").concat(prefix, "-dbg-lgr div:focus {\n outline: 2px solid black;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3430
2588
|
? ""
|
|
3431
|
-
: ".".concat(prefix, "-dbg-lgr .tree-root div::before {\n content: '';\n position: absolute;\n left: -1.25em;\n height: 100%;\n border-right: 2px dotted #CCCCCC;\n }"), "\n\n .").concat(prefix, "-dbg-lgr .tree-root div:hover::before {\n border-right: 2px solid #000;\n }\n\n .").concat(prefix, "-dbg-lgr > div {\n display: block;\n position: relative;\n }\n\n .").concat(prefix, "-dbg-lgr > div:not(.controls) div {\n display: block;\n position: relative;\n margin-left: 2em;\n width: 100%;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable {\n cursor: pointer;\n }\n\n .").concat(prefix, "-dbg-lgr > .tree-root div > span {\n width: 100%;\n display: block;\n }\n\n .").concat(prefix, "-dbg-lgr .exception {\n background-color: ").concat(BG_ERROR, ";\n color: ").concat(TEXT_PRIMARY, ";\n }\n\n .").concat(prefix, "-dbg-lgr .matched-text-filter {\n background-color: ").concat(TEXT_MATCHED, ";\n }\n\n ").concat(
|
|
2589
|
+
: ".".concat(prefix, "-dbg-lgr .tree-root div::before {\n content: '';\n position: absolute;\n left: -1.25em;\n height: 100%;\n border-right: 2px dotted #CCCCCC;\n }"), "\n\n .").concat(prefix, "-dbg-lgr .tree-root div:hover::before {\n border-right: 2px solid #000;\n }\n\n .").concat(prefix, "-dbg-lgr > div {\n display: block;\n position: relative;\n }\n\n .").concat(prefix, "-dbg-lgr > div:not(.controls) div {\n display: block;\n position: relative;\n margin-left: 2em;\n width: 100%;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable {\n cursor: pointer;\n }\n\n .").concat(prefix, "-dbg-lgr > .tree-root div > span {\n width: 100%;\n display: block;\n }\n\n .").concat(prefix, "-dbg-lgr .exception {\n background-color: ").concat(BG_ERROR, ";\n color: ").concat(TEXT_PRIMARY, ";\n }\n\n .").concat(prefix, "-dbg-lgr .matched-text-filter {\n background-color: ").concat(TEXT_MATCHED, ";\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3432
2590
|
? ""
|
|
3433
|
-
: ".".concat(prefix, "-dbg-lgr .expandable.open::before {\n content: '[-] ';\n font-weight: bold;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable.closed::before {\n content: '[+] ';\n font-weight: bold;\n }"), "\n\n .").concat(prefix, "-dbg-lgr div:hover > .obj-key {\n text-decoration: underline;\n }\n\n .").concat(prefix, "-dbg-lgr .obj-time {\n padding-right: 15px;\n color: #605E5C;\n }\n \n .").concat(prefix, "-dbg-lgr .object {pointer-events: auto;}\n .").concat(prefix, "-dbg-lgr .function {color: #881391;}\n .").concat(prefix, "-dbg-lgr .string {color: #CB3632;}\n .").concat(prefix, "-dbg-lgr .number {color: #1C00CF;}\n .").concat(prefix, "-dbg-lgr .key {color: #881391; font-weight: bold;}\n .").concat(prefix, "-dbg-lgr .empty {color: #AAAAAA; font-style: italic;}\n\n .").concat(prefix, "-dbg-lgr-dashboard ").concat(prefix, "-last-selected-element > span {\n display: block;\n background-color: black;\n border-radius: 2px;\n color: white\n }\n .").concat(prefix, "-last-selected-element > span > span,\n .").concat(prefix, "-last-selected-element > span > span[class] {\n color: white;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard #close-dashboard {\n float: right;\n margin-right: 2em;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary {\n display: inline-block;\n background-color: ").concat(BTN_PRIMARY, ";\n color: #FFFFFF;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n min-width: 80px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:hover {\n background-color: ").concat(BTN_HOVER, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary {\n display: inline-block;\n border: 1px solid;\n bolder-color: ").concat(BTN_PRIMARY, ";\n color: ").concat(BTN_PRIMARY, ";\n background-color: transparent;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:hover {\n background-color: ").concat(BTN_HOVER, ";\n color: #FFFFFF;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n color: #FFFFFF;\n }\n \n .").concat(prefix, "-dbg-lgr-dashboard .filterlist {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n width: 180px;\n min-height: 24px;\n margin-left: 2em;\n user-select: none;\n cursor: pointer;\n }\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input {\n position: relative;\n padding: 3px 8px;\n border: ").concat(BORDER_GREY_60, ";\n border-radius: 2px;\n }\n\n ").concat(
|
|
2591
|
+
: ".".concat(prefix, "-dbg-lgr .expandable.open::before {\n content: '[-] ';\n font-weight: bold;\n }\n\n .").concat(prefix, "-dbg-lgr .expandable.closed::before {\n content: '[+] ';\n font-weight: bold;\n }"), "\n\n .").concat(prefix, "-dbg-lgr div:hover > .obj-key {\n text-decoration: underline;\n }\n\n .").concat(prefix, "-dbg-lgr .obj-time {\n padding-right: 15px;\n color: #605E5C;\n }\n \n .").concat(prefix, "-dbg-lgr .object {pointer-events: auto;}\n .").concat(prefix, "-dbg-lgr .function {color: #881391;}\n .").concat(prefix, "-dbg-lgr .string {color: #CB3632;}\n .").concat(prefix, "-dbg-lgr .number {color: #1C00CF;}\n .").concat(prefix, "-dbg-lgr .key {color: #881391; font-weight: bold;}\n .").concat(prefix, "-dbg-lgr .empty {color: #AAAAAA; font-style: italic;}\n\n .").concat(prefix, "-dbg-lgr-dashboard ").concat(prefix, "-last-selected-element > span {\n display: block;\n background-color: black;\n border-radius: 2px;\n color: white\n }\n .").concat(prefix, "-last-selected-element > span > span,\n .").concat(prefix, "-last-selected-element > span > span[class] {\n color: white;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard #close-dashboard {\n float: right;\n margin-right: 2em;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary {\n display: inline-block;\n background-color: ").concat(BTN_PRIMARY, ";\n color: #FFFFFF;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n min-width: 80px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:hover {\n background-color: ").concat(BTN_HOVER, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-primary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary {\n display: inline-block;\n border: 1px solid;\n bolder-color: ").concat(BTN_PRIMARY, ";\n color: ").concat(BTN_PRIMARY, ";\n background-color: transparent;\n border-radius: 2px;\n cursor: pointer;\n border: 1px solid;\n padding: 3px 20px;\n margin-left: 2em;\n height: 24px;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:hover {\n background-color: ").concat(BTN_HOVER, ";\n color: #FFFFFF;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .btn-secondary:active {\n background-color: ").concat(BTN_ACTIVE, ";\n color: #FFFFFF;\n }\n \n .").concat(prefix, "-dbg-lgr-dashboard .filterlist {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n width: 180px;\n min-height: 24px;\n margin-left: 2em;\n user-select: none;\n cursor: pointer;\n }\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input {\n position: relative;\n padding: 3px 8px;\n border: ").concat(BORDER_GREY_60, ";\n border-radius: 2px;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3434
2592
|
? ""
|
|
3435
|
-
: ".".concat(prefix, "-dbg-lgr-dashboard .filterlist-input::after {\n content: '';\n width: 8px;\n height: 8px;\n position: absolute;\n right: 8px;\n top: 5px;\n margin: auto;\n transform: rotate(45deg);\n border: ").concat(BORDER_GREY_160, ";\n border-top: none;\n border-left: none;\n }"), "\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input:focus {\n border: ").concat(BORDER_GREY_60, "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-dropdown {\n position: absolute;\n top: 100%;\n margin: auto;\n background-color: #FFFFFF;\n overflow: hidden;\n min-width: 180px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-toggle {\n position: relative;\n padding: 3px 8px;\n height: 32px;\n width: 100%;\n ").concat((
|
|
2593
|
+
: ".".concat(prefix, "-dbg-lgr-dashboard .filterlist-input::after {\n content: '';\n width: 8px;\n height: 8px;\n position: absolute;\n right: 8px;\n top: 5px;\n margin: auto;\n transform: rotate(45deg);\n border: ").concat(BORDER_GREY_160, ";\n border-top: none;\n border-left: none;\n }"), "\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-input:focus {\n border: ").concat(BORDER_GREY_60, "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-dropdown {\n position: absolute;\n top: 100%;\n margin: auto;\n background-color: #FFFFFF;\n overflow: hidden;\n min-width: 180px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-toggle {\n position: relative;\n padding: 3px 8px;\n height: 32px;\n width: 100%;\n ").concat((getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .filterlist-toggle:focus {\n outline: none;\n border: ").concat(BORDER_GREY_60, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .text-filter-input {\n font-family: monospace;\n margin-left: 2em;\n padding: 3px 8px;\n width: 180px;\n height: 24px;\n border-radius: 2px;\n border: ").concat(BORDER_GREY_160, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .text-filter-input:focus {\n border: ").concat(BORDER_GREY_60, ";\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .label {\n vertical-align: middle;\n width: 80%;\n display: inline-block;\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox {\n display: inline-block;\n width: 18px;\n height: 18px;\n border-radius: 2px;\n vertical-align: middle;\n margin-right: 8px;\n ").concat((getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.on {\n background-color: #0078D4;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3436
2594
|
? ""
|
|
3437
|
-
: ".".concat(prefix, "-dbg-lgr-dashboard .checkbox.on::after {\n content: '';\n width: 5px;\n height: 10px;\n display: inline-block;\n margin: 2px 6px;\n padding: 0;\n transform: rotate(45deg);\n border: 1px solid #FFFFFF;\n border-top: none;\n border-left: none;\n }"), "\n\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.off {\n border: ").concat(BORDER_GREY_160, ";\n }\n\n ").concat(
|
|
2595
|
+
: ".".concat(prefix, "-dbg-lgr-dashboard .checkbox.on::after {\n content: '';\n width: 5px;\n height: 10px;\n display: inline-block;\n margin: 2px 6px;\n padding: 0;\n transform: rotate(45deg);\n border: 1px solid #FFFFFF;\n border-top: none;\n border-left: none;\n }"), "\n\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.off {\n border: ").concat(BORDER_GREY_160, ";\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3438
2596
|
? ""
|
|
3439
2597
|
: "@media only screen and (max-width: 600px) {\n .".concat(prefix, "-dbg-lgr {\n width: 100%;\n min-width: 200px;\n }\n }"), "\n\n"); };
|
|
3440
|
-
var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(
|
|
2598
|
+
var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3441
2599
|
? "width: 100%;\n height: 100%;\n top: 0;\n left: 0;"
|
|
3442
|
-
: "width: 100vw;\n height: 100vh;", "\n pointer-events: none;\n }\n\n .").concat(prefix, "-debug-bin-parent {\n position: fixed;\n right: 20px;\n margin: auto;\n padding: 10px;\n border-radius: 2px;\n min-height: 20px;\n min-width: 20px;\n overflow: hidden;\n pointer-events: auto;\n text-align: right;\n font-family: monospace;\n font-size: 16px;\n color: #FFFFFF;\n background-color: ").concat(BTN_PRIMARY, ";\n border: 2px solid #FFFFFF;\n transition: 2s color linear;\n cursor: pointer;\n transition: .2s width ease-in-out, .2s height ease-in-out;\n ").concat((
|
|
2600
|
+
: "width: 100vw;\n height: 100vh;", "\n pointer-events: none;\n }\n\n .").concat(prefix, "-debug-bin-parent {\n position: fixed;\n right: 20px;\n margin: auto;\n padding: 10px;\n border-radius: 2px;\n min-height: 20px;\n min-width: 20px;\n overflow: hidden;\n pointer-events: auto;\n text-align: right;\n font-family: monospace;\n font-size: 16px;\n color: #FFFFFF;\n background-color: ").concat(BTN_PRIMARY, ";\n border: 2px solid #FFFFFF;\n transition: 2s color linear;\n cursor: pointer;\n transition: .2s width ease-in-out, .2s height ease-in-out;\n ").concat((getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-debug-bin-parent.active {\n background-color: ").concat(BG_INFO, ";\n color: ").concat(TEXT_PRIMARY, ";\n }\n\n .").concat(prefix, "-debug-bin-parent:focus {\n border: ").concat(BORDER_GREY_160, ";\n outline: none;\n }\n\n .").concat(prefix, "-debug-bin-parent.notify {\n background-color: ").concat(ICON_ERROR, ";\n }\n\n .").concat(prefix, "-debug-bin-parent button {\n display: block;\n width: 100%;\n background-color: ").concat(BTN_PRIMARY, ";\n color: #FFFFFF;\n border-radius: 2px;\n margin-bottom: 5px;\n margin-top: 10px;\n cursor: pointer;\n border: none;\n padding: 3px 20px;\n height: 24px;\n }\n\n .").concat(prefix, "-debug-bin-parent button:hover {\n background-color: ").concat(BTN_HOVER, ";\n }\n\n .").concat(prefix, "-debug-bin-parent button:active {\n background-color: ").concat(BTN_ACTIVE, ";\n }\n\n .").concat(prefix, "-debug-bin-parent .el-name {\n text-align: left;\n }\n\n .").concat(prefix, "-debug-bin-parent .el-value {\n display: inline-block;\n transform: scale(1);\n transition: 2s transform linear, 0s 2s font-weight linear;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3443
2601
|
? ""
|
|
3444
|
-
: ".".concat(prefix, "-debug-bin-parent.notify::after {\n content: \" (!)\";\n }"), "\n\n .").concat(prefix, "-debug-bin-parent .el-value.incremented {\n transform: scale(1.5);\n font-weight: bold;\n transition: 0s transform linear, 0s font-weight linear;\n }\n\n ").concat(
|
|
2602
|
+
: ".".concat(prefix, "-debug-bin-parent.notify::after {\n content: \" (!)\";\n }"), "\n\n .").concat(prefix, "-debug-bin-parent .el-value.incremented {\n transform: scale(1.5);\n font-weight: bold;\n transition: 0s transform linear, 0s font-weight linear;\n }\n\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3445
2603
|
? ""
|
|
3446
2604
|
: ".".concat(prefix, "-debug-bin-parent:focus > span::before,\n .").concat(prefix, "-debug-bin-parent:hover > span::before,\n .").concat(prefix, "-debug-bin-parent.active > span::before {\n content: attr(data-name) \": \";\n }"), "\n"); };
|
|
3447
2605
|
|
|
@@ -3497,7 +2655,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3497
2655
|
msgTracker[_DYN_PUSH ](new LogEntry(target, tm, key, level, kind, keep));
|
|
3498
2656
|
if (msgTracker.length > config[_DYN_MAX_MESSAGES ]) {
|
|
3499
2657
|
var lp = 0;
|
|
3500
|
-
while (lp < msgTracker[_DYN_LENGTH
|
|
2658
|
+
while (lp < msgTracker[_DYN_LENGTH ]) {
|
|
3501
2659
|
var entry = msgTracker[lp];
|
|
3502
2660
|
if (!entry.isKeep()) {
|
|
3503
2661
|
var el = entry[_DYN_GET_EL ]();
|
|
@@ -3925,7 +3083,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3925
3083
|
funcName: funcArgs[_DYN_NAME ],
|
|
3926
3084
|
inst: funcArgs.inst
|
|
3927
3085
|
};
|
|
3928
|
-
if (orgArgs && orgArgs[_DYN_LENGTH
|
|
3086
|
+
if (orgArgs && orgArgs[_DYN_LENGTH ]) {
|
|
3929
3087
|
result.args = orgArgs;
|
|
3930
3088
|
}
|
|
3931
3089
|
if (!isUndefined(funcArgs.err)) {
|
|
@@ -3957,7 +3115,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
3957
3115
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3958
3116
|
orgArgs[_i - 1] = arguments[_i];
|
|
3959
3117
|
}
|
|
3960
|
-
(debugBins[funcArgs.name] || debugBins
|
|
3118
|
+
(debugBins[funcArgs.name] || debugBins.default).increment();
|
|
3961
3119
|
if (funcArgs[_DYN_NAME ] === "trackException" && !debugBinParent[_DYN_SHOW_CHILDREN ]) {
|
|
3962
3120
|
debugBinParent.addClassToEl("notify");
|
|
3963
3121
|
}
|
|
@@ -4006,7 +3164,7 @@ this.Microsoft = this.Microsoft || {};
|
|
|
4006
3164
|
|
|
4007
3165
|
exports.DebugPlugin = DebugPlugin$1;
|
|
4008
3166
|
|
|
4009
|
-
|
|
3167
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4010
3168
|
|
|
4011
3169
|
})(this.Microsoft.ApplicationInsights = this.Microsoft.ApplicationInsights || {});
|
|
4012
3170
|
//# sourceMappingURL=ai.dbg.3.gbl.js.map
|