@microsoft/applicationinsights-debugplugin-js 3.0.0-beta.2208-04 → 3.0.0-beta.2208-18
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-04.cjs.js → ai.dbg.3.0.0-beta.2208-18.cjs.js} +400 -1248
- package/browser/ai.dbg.3.0.0-beta.2208-18.cjs.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-18.cjs.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-18.cjs.min.js.map +1 -0
- package/browser/{ai.dbg.3.0.0-beta.2208-04.gbl.js → ai.dbg.3.0.0-beta.2208-18.gbl.js} +400 -1248
- package/browser/ai.dbg.3.0.0-beta.2208-18.gbl.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-18.gbl.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-18.gbl.min.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-18.integrity.json +66 -0
- package/browser/{ai.dbg.3.0.0-beta.2208-04.js → ai.dbg.3.0.0-beta.2208-18.js} +400 -1248
- package/browser/ai.dbg.3.0.0-beta.2208-18.js.map +1 -0
- package/browser/ai.dbg.3.0.0-beta.2208-18.min.js +6 -0
- package/browser/ai.dbg.3.0.0-beta.2208-18.min.js.map +1 -0
- package/browser/ai.dbg.3.cjs.js +399 -1247
- 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 +399 -1247
- 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 +399 -1247
- 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 +399 -1247
- 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-04.cjs.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-04.cjs.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-04.cjs.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-04.gbl.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-04.gbl.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-04.gbl.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-04.integrity.json +0 -66
- package/browser/ai.dbg.3.0.0-beta.2208-04.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2208-04.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2208-04.min.js.map +0 -1
|
@@ -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-18
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -13,32 +13,32 @@
|
|
|
13
13
|
var strShimUndefined = "undefined";
|
|
14
14
|
var strShimPrototype = "prototype";
|
|
15
15
|
var strShimHasOwnProperty = "hasOwnProperty";
|
|
16
|
-
var ObjClass = Object;
|
|
17
|
-
var ObjProto = ObjClass[strShimPrototype];
|
|
18
|
-
var ObjCreate = ObjClass["create"];
|
|
19
|
-
var ObjDefineProperty = ObjClass["defineProperty"];
|
|
20
|
-
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
|
|
16
|
+
var ObjClass$1 = Object;
|
|
17
|
+
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
18
|
+
var ObjCreate = ObjClass$1["create"];
|
|
19
|
+
var ObjDefineProperty = ObjClass$1["defineProperty"];
|
|
20
|
+
var ObjHasOwnProperty = ObjProto$1[strShimHasOwnProperty];
|
|
21
21
|
|
|
22
|
-
var _cachedGlobal = null;
|
|
23
|
-
function getGlobal(useCached) {
|
|
22
|
+
var _cachedGlobal$1 = null;
|
|
23
|
+
function getGlobal$1(useCached) {
|
|
24
24
|
if (useCached === void 0) { useCached = true; }
|
|
25
|
-
if (!_cachedGlobal || !useCached) {
|
|
25
|
+
if (!_cachedGlobal$1 || !useCached) {
|
|
26
26
|
if (typeof globalThis !== strShimUndefined && globalThis) {
|
|
27
|
-
_cachedGlobal = globalThis;
|
|
27
|
+
_cachedGlobal$1 = globalThis;
|
|
28
28
|
}
|
|
29
29
|
if (typeof self !== strShimUndefined && self) {
|
|
30
|
-
_cachedGlobal = self;
|
|
30
|
+
_cachedGlobal$1 = self;
|
|
31
31
|
}
|
|
32
32
|
if (typeof window !== strShimUndefined && window) {
|
|
33
|
-
_cachedGlobal = window;
|
|
33
|
+
_cachedGlobal$1 = window;
|
|
34
34
|
}
|
|
35
35
|
if (typeof global !== strShimUndefined && global) {
|
|
36
|
-
_cachedGlobal = global;
|
|
36
|
+
_cachedGlobal$1 = global;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
return _cachedGlobal;
|
|
39
|
+
return _cachedGlobal$1;
|
|
40
40
|
}
|
|
41
|
-
function throwTypeError(message) {
|
|
41
|
+
function throwTypeError$1(message) {
|
|
42
42
|
throw new TypeError(message);
|
|
43
43
|
}
|
|
44
44
|
function objCreateFn(obj) {
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
}
|
|
52
52
|
var type = typeof obj;
|
|
53
53
|
if (type !== strShimObject && type !== strShimFunction) {
|
|
54
|
-
throwTypeError("Object prototype may only be an Object:" + obj);
|
|
54
|
+
throwTypeError$1("Object prototype may only be an Object:" + obj);
|
|
55
55
|
}
|
|
56
56
|
function tmpFunc() { }
|
|
57
57
|
tmpFunc[strShimPrototype] = obj;
|
|
58
58
|
return new tmpFunc();
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
(getGlobal() || {})["Symbol"];
|
|
62
|
-
(getGlobal() || {})["Reflect"];
|
|
61
|
+
(getGlobal$1() || {})["Symbol"];
|
|
62
|
+
(getGlobal$1() || {})["Reflect"];
|
|
63
63
|
var extendStaticsFn = function (d, b) {
|
|
64
|
-
extendStaticsFn = ObjClass["setPrototypeOf"] ||
|
|
64
|
+
extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
|
|
65
65
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
66
66
|
d.__proto__ = b;
|
|
67
67
|
}) ||
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
};
|
|
77
77
|
function __extendsFn(d, b) {
|
|
78
78
|
if (typeof b !== strShimFunction && b !== null) {
|
|
79
|
-
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79
|
+
throwTypeError$1("Class extends value " + String(b) + " is not a constructor or null");
|
|
80
80
|
}
|
|
81
81
|
extendStaticsFn(d, b);
|
|
82
82
|
function __() {
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
var DynAllowInstChkTag = DynInstChkTag;
|
|
101
101
|
var DynProtoDefaultOptions = '_dfOpts';
|
|
102
102
|
var UnknownValue = '_unknown_';
|
|
103
|
-
var str__Proto
|
|
104
|
-
var DynProtoBaseProto = "_dyn" + str__Proto
|
|
103
|
+
var str__Proto = "__proto__";
|
|
104
|
+
var DynProtoBaseProto = "_dyn" + str__Proto;
|
|
105
105
|
var DynProtoCurrent = "_dynInstProto";
|
|
106
106
|
var strUseBaseInst = 'useBaseInst';
|
|
107
107
|
var strSetInstFuncs = 'setInstFuncs';
|
|
108
108
|
var Obj = Object;
|
|
109
|
-
var _objGetPrototypeOf
|
|
109
|
+
var _objGetPrototypeOf = Obj["getPrototypeOf"];
|
|
110
110
|
var _objGetOwnProps = Obj["getOwnPropertyNames"];
|
|
111
111
|
var _dynamicNames = 0;
|
|
112
112
|
function _hasOwnProperty(obj, prop) {
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
function _getObjProto$1(target) {
|
|
122
122
|
var newProto;
|
|
123
123
|
if (target) {
|
|
124
|
-
if (_objGetPrototypeOf
|
|
125
|
-
return _objGetPrototypeOf
|
|
124
|
+
if (_objGetPrototypeOf) {
|
|
125
|
+
return _objGetPrototypeOf(target);
|
|
126
126
|
}
|
|
127
|
-
var curProto = target[str__Proto
|
|
127
|
+
var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
|
|
128
128
|
newProto = target[DynProtoBaseProto] || curProto;
|
|
129
129
|
if (!_hasOwnProperty(target, DynProtoBaseProto)) {
|
|
130
130
|
delete target[DynProtoCurrent];
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
var visited = [];
|
|
197
197
|
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
|
|
198
198
|
_forEachProp(baseProto, function (name) {
|
|
199
|
-
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf
|
|
199
|
+
if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
|
|
200
200
|
baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
|
|
201
201
|
}
|
|
202
202
|
});
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
function _checkPrototype(classProto, thisTarget) {
|
|
279
|
-
if (_objGetPrototypeOf
|
|
279
|
+
if (_objGetPrototypeOf) {
|
|
280
280
|
var visited = [];
|
|
281
281
|
var thisProto = _getObjProto$1(thisTarget);
|
|
282
282
|
while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
var instFuncs = _getInstanceFuncs(target);
|
|
322
322
|
var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
|
|
323
323
|
delegateFunc(target, baseFuncs);
|
|
324
|
-
var setInstanceFunc = !!_objGetPrototypeOf
|
|
324
|
+
var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
|
|
325
325
|
if (setInstanceFunc && options) {
|
|
326
326
|
setInstanceFunc = !!options[strSetInstFuncs];
|
|
327
327
|
}
|
|
@@ -333,6 +333,274 @@
|
|
|
333
333
|
};
|
|
334
334
|
dynamicProto[DynProtoDefaultOptions] = perfDefaults;
|
|
335
335
|
|
|
336
|
+
var UNDEF_VALUE = undefined;
|
|
337
|
+
var EMPTY = "";
|
|
338
|
+
var BOOLEAN = "boolean";
|
|
339
|
+
var FUNCTION = "function";
|
|
340
|
+
var NUMBER = "number";
|
|
341
|
+
var OBJECT = "object";
|
|
342
|
+
var PROTOTYPE = "prototype";
|
|
343
|
+
var STRING = "string";
|
|
344
|
+
var UNDEFINED = "undefined";
|
|
345
|
+
var HAS_OWN_PROPERTY = "hasOwnProperty";
|
|
346
|
+
var SYMBOL = "Symbol";
|
|
347
|
+
var INDEX_OF = "indexOf";
|
|
348
|
+
var LENGTH = "length";
|
|
349
|
+
var ObjClass = Object;
|
|
350
|
+
var ObjProto = ObjClass[PROTOTYPE];
|
|
351
|
+
var ArrCls = Array;
|
|
352
|
+
|
|
353
|
+
function _safeCheck(cb, defValue) {
|
|
354
|
+
var result = defValue;
|
|
355
|
+
try {
|
|
356
|
+
result = cb();
|
|
357
|
+
}
|
|
358
|
+
catch (e) {
|
|
359
|
+
}
|
|
360
|
+
return result;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function _createIs(theType) {
|
|
364
|
+
return function (value) {
|
|
365
|
+
return typeof value === theType;
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function _createObjIs(theType) {
|
|
369
|
+
return function (value) {
|
|
370
|
+
return !!(value && objToString(value) === theType);
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function objToString(value) {
|
|
374
|
+
return ObjProto.toString.call(value);
|
|
375
|
+
}
|
|
376
|
+
function isUndefined(value) {
|
|
377
|
+
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
378
|
+
}
|
|
379
|
+
function isNullOrUndefined(value) {
|
|
380
|
+
return value === null || isUndefined(value);
|
|
381
|
+
}
|
|
382
|
+
function isDefined(arg) {
|
|
383
|
+
return !!arg || arg !== UNDEF_VALUE;
|
|
384
|
+
}
|
|
385
|
+
var isString = _createIs(STRING);
|
|
386
|
+
var isFunction = _createIs(FUNCTION);
|
|
387
|
+
function isObject(value) {
|
|
388
|
+
if (isNullOrUndefined(value)) {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
return !!value && typeof value === OBJECT;
|
|
392
|
+
}
|
|
393
|
+
var isArray = ArrCls.isArray;
|
|
394
|
+
var isNumber = _createIs(NUMBER);
|
|
395
|
+
var isBoolean = _createIs(BOOLEAN);
|
|
396
|
+
var isError = _createObjIs("[object Error]");
|
|
397
|
+
|
|
398
|
+
var DOCUMENT = "document";
|
|
399
|
+
var NAVIGATOR = "navigator";
|
|
400
|
+
var WINDOW = "window";
|
|
401
|
+
var _cachedGlobal = null;
|
|
402
|
+
var _hasWindow = _safeCheck(function () { return isDefined(window); }, false);
|
|
403
|
+
var _hasDocument = _safeCheck(function () { return isDefined(document); }, false);
|
|
404
|
+
var _hasNavigator = _safeCheck(function () { return isDefined(navigator); }, false);
|
|
405
|
+
_safeCheck(function () { return isDefined(history); }, false);
|
|
406
|
+
_safeCheck(function () { return !!(self && self instanceof WorkerGlobalScope); }, false);
|
|
407
|
+
_safeCheck(function () { return !!(process && (process.versions || {}).node); }, false);
|
|
408
|
+
function getGlobal(useCached) {
|
|
409
|
+
var result = useCached === false ? null : _cachedGlobal;
|
|
410
|
+
if (!result) {
|
|
411
|
+
if (!result && typeof globalThis !== UNDEFINED) {
|
|
412
|
+
result = globalThis;
|
|
413
|
+
}
|
|
414
|
+
if (!result && typeof self !== UNDEFINED) {
|
|
415
|
+
result = self;
|
|
416
|
+
}
|
|
417
|
+
if (!result && typeof window !== UNDEFINED) {
|
|
418
|
+
result = window;
|
|
419
|
+
}
|
|
420
|
+
if (!result && typeof global !== UNDEFINED) {
|
|
421
|
+
result = global;
|
|
422
|
+
}
|
|
423
|
+
_cachedGlobal = result;
|
|
424
|
+
}
|
|
425
|
+
return result;
|
|
426
|
+
}
|
|
427
|
+
function getInst(name, useCached) {
|
|
428
|
+
var gbl = getGlobal(useCached);
|
|
429
|
+
if (gbl && gbl[name]) {
|
|
430
|
+
return gbl[name];
|
|
431
|
+
}
|
|
432
|
+
if (name === WINDOW && _hasWindow) {
|
|
433
|
+
return window;
|
|
434
|
+
}
|
|
435
|
+
return null;
|
|
436
|
+
}
|
|
437
|
+
function getDocument() {
|
|
438
|
+
return _hasDocument ? document : getInst(DOCUMENT);
|
|
439
|
+
}
|
|
440
|
+
function getNavigator() {
|
|
441
|
+
return _hasNavigator ? navigator : getInst(NAVIGATOR);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
function objHasOwnProperty(obj, prop) {
|
|
445
|
+
return obj && ObjProto[HAS_OWN_PROPERTY].call(obj, prop);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
449
|
+
if (theObject && isObject(theObject)) {
|
|
450
|
+
for (var prop in theObject) {
|
|
451
|
+
if (objHasOwnProperty(theObject, prop)) {
|
|
452
|
+
if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
function arrForEach(arr, callbackfn, thisArg) {
|
|
461
|
+
if (arr) {
|
|
462
|
+
var len = arr[LENGTH];
|
|
463
|
+
for (var idx = 0; idx < len; idx++) {
|
|
464
|
+
if (idx in arr) {
|
|
465
|
+
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function throwTypeError(message) {
|
|
474
|
+
throw new TypeError(message);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
var _objFreeze = ObjClass["freeze"];
|
|
478
|
+
function _doNothing(value) {
|
|
479
|
+
return value;
|
|
480
|
+
}
|
|
481
|
+
function objKeys(value) {
|
|
482
|
+
if (!isObject(value) || value === null) {
|
|
483
|
+
throwTypeError("objKeys called on non-object");
|
|
484
|
+
}
|
|
485
|
+
return ObjClass.keys(value);
|
|
486
|
+
}
|
|
487
|
+
var objFreeze = _objFreeze || _doNothing;
|
|
488
|
+
|
|
489
|
+
_safeCheck(function () { return isDefined(Symbol); }, false);
|
|
490
|
+
var _symbol = getInst(SYMBOL);
|
|
491
|
+
_symbol && _safeCheck(function () { return _symbol["for"]; }, null);
|
|
492
|
+
_symbol && _safeCheck(function () { return _symbol["keyFor"]; }, null);
|
|
493
|
+
var isSymbol = _createIs("symbol");
|
|
494
|
+
|
|
495
|
+
function dumpObj(object, format) {
|
|
496
|
+
var objectTypeDump = objToString(object);
|
|
497
|
+
var propertyValueDump = "";
|
|
498
|
+
if (objectTypeDump === "[object Error]") {
|
|
499
|
+
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
if (format) {
|
|
503
|
+
if (isNumber(format)) {
|
|
504
|
+
propertyValueDump = JSON.stringify(object, null, format);
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
propertyValueDump = JSON.stringify(object, null, format ? 4 : 0);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
else {
|
|
511
|
+
propertyValueDump = JSON.stringify(object);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
return objectTypeDump + ": " + propertyValueDump;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
function _unwrapFunction(funcName) {
|
|
518
|
+
return function (thisArg) {
|
|
519
|
+
var args = [];
|
|
520
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
521
|
+
args[_i - 1] = arguments[_i];
|
|
522
|
+
}
|
|
523
|
+
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
524
|
+
return thisArg[funcName].apply(thisArg, args);
|
|
525
|
+
}
|
|
526
|
+
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
var arrIndexOf = _unwrapFunction(INDEX_OF);
|
|
531
|
+
|
|
532
|
+
function objSetPrototypeOf(obj, proto) {
|
|
533
|
+
var fn = ObjClass["setPrototypeOf"] ||
|
|
534
|
+
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
535
|
+
d.__proto__ = b;
|
|
536
|
+
}) ||
|
|
537
|
+
function (d, b) {
|
|
538
|
+
objForEachKey(b, function (key, value) {
|
|
539
|
+
d[key] = value;
|
|
540
|
+
});
|
|
541
|
+
};
|
|
542
|
+
return fn(obj, proto);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
function _createCustomError(name, d, b) {
|
|
546
|
+
objSetPrototypeOf(d, b);
|
|
547
|
+
function __() {
|
|
548
|
+
this.constructor = d;
|
|
549
|
+
}
|
|
550
|
+
__[PROTOTYPE] = b[PROTOTYPE];
|
|
551
|
+
__[PROTOTYPE].name = name;
|
|
552
|
+
d[PROTOTYPE] = new __();
|
|
553
|
+
return d;
|
|
554
|
+
}
|
|
555
|
+
function createCustomError(name, constructCb) {
|
|
556
|
+
var baseClass = Error;
|
|
557
|
+
var customError = _createCustomError(name, function () {
|
|
558
|
+
var _this = this;
|
|
559
|
+
_this = baseClass.apply(_this, arguments) || _this;
|
|
560
|
+
constructCb && constructCb(_this, arguments);
|
|
561
|
+
return _this;
|
|
562
|
+
}, baseClass);
|
|
563
|
+
return customError;
|
|
564
|
+
}
|
|
565
|
+
var _unsupportedError;
|
|
566
|
+
function throwUnsupported(message) {
|
|
567
|
+
if (!_unsupportedError) {
|
|
568
|
+
_unsupportedError = createCustomError("UnsupportedError");
|
|
569
|
+
}
|
|
570
|
+
throw new _unsupportedError(message);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
var _objDefineProperty$1 = ObjClass["defineProperty"];
|
|
574
|
+
function objDefineProp(target, key, descriptor) {
|
|
575
|
+
if (_objDefineProperty$1) {
|
|
576
|
+
_objDefineProperty$1(target, key, descriptor);
|
|
577
|
+
return target;
|
|
578
|
+
}
|
|
579
|
+
throwUnsupported("Unable to define property [" + objToString(key) + "] on " + dumpObj(target));
|
|
580
|
+
}
|
|
581
|
+
function objDefineAccessors(target, prop, getProp, setProp, configurable) {
|
|
582
|
+
if (_objDefineProperty$1) {
|
|
583
|
+
try {
|
|
584
|
+
var descriptor = {
|
|
585
|
+
enumerable: true,
|
|
586
|
+
configurable: isUndefined(configurable) ? true : configurable
|
|
587
|
+
};
|
|
588
|
+
if (getProp) {
|
|
589
|
+
descriptor.get = getProp;
|
|
590
|
+
}
|
|
591
|
+
if (setProp) {
|
|
592
|
+
descriptor.set = setProp;
|
|
593
|
+
}
|
|
594
|
+
return objDefineProp(target, prop, descriptor);
|
|
595
|
+
}
|
|
596
|
+
catch (e) {
|
|
597
|
+
throwUnsupported("Unable to define accessors for [" + objToString(prop) + "] on " + dumpObj(target));
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
603
|
+
|
|
336
604
|
var _DYN_INITIALIZE = "initialize";
|
|
337
605
|
var _DYN_NAME$1 = "name";
|
|
338
606
|
var _DYN_IDENTIFIER$1 = "identifier";
|
|
@@ -340,7 +608,7 @@
|
|
|
340
608
|
var _DYN_IS_INITIALIZED = "isInitialized";
|
|
341
609
|
var _DYN_CONFIG = "config";
|
|
342
610
|
var _DYN_LOGGER = "logger";
|
|
343
|
-
var _DYN_LENGTH$
|
|
611
|
+
var _DYN_LENGTH$1 = "length";
|
|
344
612
|
var _DYN_TIME = "time";
|
|
345
613
|
var _DYN_PROCESS_NEXT = "processNext";
|
|
346
614
|
var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
|
|
@@ -356,22 +624,15 @@
|
|
|
356
624
|
var _DYN_DIAG_LOG = "diagLog";
|
|
357
625
|
var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
|
|
358
626
|
var _DYN_CREATE_NEW = "createNew";
|
|
359
|
-
var _DYN_COOKIE_CFG = "cookieCfg";
|
|
360
|
-
var _DYN_INDEX_OF = "indexOf";
|
|
361
|
-
var _DYN_SUBSTRING$1 = "substring";
|
|
362
627
|
var _DYN_USER_AGENT = "userAgent";
|
|
363
628
|
var _DYN_SPLIT = "split";
|
|
364
|
-
var _DYN_SET_ENABLED = "setEnabled";
|
|
365
|
-
var _DYN_REPLACE$1 = "replace";
|
|
366
|
-
var _DYN_SUBSTR = "substr";
|
|
367
629
|
var _DYN_NODE_TYPE = "nodeType";
|
|
368
630
|
var _DYN_APPLY = "apply";
|
|
631
|
+
var _DYN_REPLACE$1 = "replace";
|
|
369
632
|
var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
|
|
370
633
|
var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
371
|
-
var _DYN_TO_LOWER_CASE
|
|
634
|
+
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
372
635
|
var _DYN_CALL = "call";
|
|
373
|
-
var _DYN_TYPE = "type";
|
|
374
|
-
var _DYN_HANDLER = "handler";
|
|
375
636
|
var _DYN_IS_CHILD_EVT = "isChildEvt";
|
|
376
637
|
var _DYN_GET_CTX = "getCtx";
|
|
377
638
|
var _DYN_SET_CTX = "setCtx";
|
|
@@ -387,67 +648,38 @@
|
|
|
387
648
|
var STR_WARN_TO_CONSOLE = "warnToConsole";
|
|
388
649
|
var STR_GET_PERF_MGR = "getPerfMgr";
|
|
389
650
|
|
|
390
|
-
var
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
651
|
+
var _aiNamespace = null;
|
|
652
|
+
function _getExtensionNamespace() {
|
|
653
|
+
var target = getInst("Microsoft");
|
|
654
|
+
if (target) {
|
|
655
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
656
|
+
}
|
|
657
|
+
return _aiNamespace;
|
|
658
|
+
}
|
|
659
|
+
function getDebugExt(config) {
|
|
660
|
+
var ns = _aiNamespace;
|
|
661
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
662
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
663
|
+
}
|
|
664
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
var cString = "String";
|
|
668
|
+
var cObject = "Object";
|
|
396
669
|
var strToString = "toString";
|
|
397
|
-
var
|
|
670
|
+
var strGetPrototypeOf = "getPrototypeOf";
|
|
398
671
|
var strConstructor$1 = "constructor";
|
|
399
|
-
var
|
|
400
|
-
var
|
|
401
|
-
var _objKeys = ObjClass.keys;
|
|
402
|
-
var StringProto = String[strShimPrototype];
|
|
403
|
-
var _strTrim = StringProto[cStrTrim];
|
|
404
|
-
var _strEndsWith = StringProto[cStrEndsWith];
|
|
405
|
-
var DateProto = Date[strShimPrototype];
|
|
406
|
-
var _dataToISOString = DateProto[strToISOString];
|
|
407
|
-
var _isArray = Array.isArray;
|
|
408
|
-
var _objToString = ObjProto[strToString];
|
|
409
|
-
var _fnToString = ObjHasOwnProperty[strToString];
|
|
410
|
-
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass);
|
|
672
|
+
var _fnToString = ObjHasOwnProperty[strToString] || _polyfillRequired(cString, strToString);
|
|
673
|
+
var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass$1);
|
|
411
674
|
var rCamelCase = /-([a-z])/g;
|
|
412
675
|
var rNormalizeInvalid = /([^\w\d_$])/g;
|
|
413
676
|
var rLeadingNumeric = /^(\d+[\w\d_$])/;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
return _objGetPrototypeOf(target);
|
|
419
|
-
}
|
|
420
|
-
var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor$1];
|
|
421
|
-
if (newProto) {
|
|
422
|
-
return newProto;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
return null;
|
|
426
|
-
}
|
|
427
|
-
function objToString(obj) {
|
|
428
|
-
return _objToString[_DYN_CALL ](obj);
|
|
429
|
-
}
|
|
430
|
-
function isTypeof(value, theType) {
|
|
431
|
-
return typeof value === theType;
|
|
432
|
-
}
|
|
433
|
-
function isUndefined(value) {
|
|
434
|
-
return value === undefined || typeof value === strShimUndefined;
|
|
435
|
-
}
|
|
436
|
-
function isNullOrUndefined(value) {
|
|
437
|
-
return (value === null || isUndefined(value));
|
|
438
|
-
}
|
|
439
|
-
function isNotNullOrUndefined(value) {
|
|
440
|
-
return !isNullOrUndefined(value);
|
|
441
|
-
}
|
|
442
|
-
function hasOwnProperty(obj, prop) {
|
|
443
|
-
return !!(obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop));
|
|
444
|
-
}
|
|
445
|
-
function isObject(value) {
|
|
446
|
-
return !!(value && typeof value === strShimObject);
|
|
447
|
-
}
|
|
448
|
-
function isFunction(value) {
|
|
449
|
-
return !!(value && typeof value === strShimFunction);
|
|
677
|
+
function _polyfillRequired(object, name) {
|
|
678
|
+
return function () {
|
|
679
|
+
throwUnsupported("Polyfill required for [" + name + "]");
|
|
680
|
+
};
|
|
450
681
|
}
|
|
682
|
+
var _getObjProto = Object[strGetPrototypeOf] || _polyfillRequired(cObject, strGetPrototypeOf);
|
|
451
683
|
function normalizeJsName(name) {
|
|
452
684
|
var value = name;
|
|
453
685
|
if (value && isString(value)) {
|
|
@@ -461,70 +693,16 @@
|
|
|
461
693
|
}
|
|
462
694
|
return value;
|
|
463
695
|
}
|
|
464
|
-
function objForEachKey(target, callbackfn) {
|
|
465
|
-
if (target) {
|
|
466
|
-
for (var prop in target) {
|
|
467
|
-
if (ObjHasOwnProperty[_DYN_CALL ](target, prop)) {
|
|
468
|
-
callbackfn[_DYN_CALL ](target, prop, target[prop]);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
function strEndsWith(value, search) {
|
|
474
|
-
var result = false;
|
|
475
|
-
if (value && search && !(result = value === search)) {
|
|
476
|
-
result = _strEndsWith ? value[cStrEndsWith](search) : _strEndsWithPoly(value, search);
|
|
477
|
-
}
|
|
478
|
-
return result;
|
|
479
|
-
}
|
|
480
|
-
function _strEndsWithPoly(value, search) {
|
|
481
|
-
var result = false;
|
|
482
|
-
var searchLen = search ? search[_DYN_LENGTH$2 ] : 0;
|
|
483
|
-
var valLen = value ? value[_DYN_LENGTH$2 ] : 0;
|
|
484
|
-
if (searchLen && valLen && valLen >= searchLen && !(result = value === search)) {
|
|
485
|
-
var pos = valLen - 1;
|
|
486
|
-
for (var lp = searchLen - 1; lp >= 0; lp--) {
|
|
487
|
-
if (value[pos] != search[lp]) {
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
pos--;
|
|
491
|
-
}
|
|
492
|
-
result = true;
|
|
493
|
-
}
|
|
494
|
-
return result;
|
|
495
|
-
}
|
|
496
696
|
function strContains(value, search) {
|
|
497
697
|
if (value && search) {
|
|
498
|
-
return value
|
|
698
|
+
return strIndexOf(value, search) !== -1;
|
|
499
699
|
}
|
|
500
700
|
return false;
|
|
501
701
|
}
|
|
502
|
-
function isDate(obj) {
|
|
503
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Date]");
|
|
504
|
-
}
|
|
505
|
-
var isArray = _isArray || _isArrayPoly;
|
|
506
|
-
function _isArrayPoly(obj) {
|
|
507
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Array]");
|
|
508
|
-
}
|
|
509
|
-
function isError(obj) {
|
|
510
|
-
return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Error]");
|
|
511
|
-
}
|
|
512
|
-
function isString(value) {
|
|
513
|
-
return typeof value === "string";
|
|
514
|
-
}
|
|
515
|
-
function isNumber(value) {
|
|
516
|
-
return typeof value === "number";
|
|
517
|
-
}
|
|
518
|
-
function isBoolean(value) {
|
|
519
|
-
return typeof value === "boolean";
|
|
520
|
-
}
|
|
521
|
-
function isSymbol(value) {
|
|
522
|
-
return typeof value === "symbol";
|
|
523
|
-
}
|
|
524
702
|
function isPlainObject(value) {
|
|
525
703
|
var result = false;
|
|
526
704
|
if (value && typeof value === "object") {
|
|
527
|
-
var proto =
|
|
705
|
+
var proto = _getObjProto(value);
|
|
528
706
|
if (!proto) {
|
|
529
707
|
result = true;
|
|
530
708
|
}
|
|
@@ -537,195 +715,10 @@
|
|
|
537
715
|
}
|
|
538
716
|
return result;
|
|
539
717
|
}
|
|
540
|
-
function toISOString(date) {
|
|
541
|
-
if (date) {
|
|
542
|
-
return _dataToISOString ? date[strToISOString]() : _toISOStringPoly(date);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
function _toISOStringPoly(date) {
|
|
546
|
-
if (date && date.getUTCFullYear) {
|
|
547
|
-
var pad = function (num) {
|
|
548
|
-
var r = String(num);
|
|
549
|
-
if (r[_DYN_LENGTH$2 ] === 1) {
|
|
550
|
-
r = "0" + r;
|
|
551
|
-
}
|
|
552
|
-
return r;
|
|
553
|
-
};
|
|
554
|
-
return date.getUTCFullYear()
|
|
555
|
-
+ "-" + pad(date.getUTCMonth() + 1)
|
|
556
|
-
+ "-" + pad(date.getUTCDate())
|
|
557
|
-
+ "T" + pad(date.getUTCHours())
|
|
558
|
-
+ ":" + pad(date.getUTCMinutes())
|
|
559
|
-
+ ":" + pad(date.getUTCSeconds())
|
|
560
|
-
+ "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
|
|
561
|
-
+ "Z";
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
function arrForEach(arr, callbackfn, thisArg) {
|
|
565
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
566
|
-
try {
|
|
567
|
-
for (var idx = 0; idx < len; idx++) {
|
|
568
|
-
if (idx in arr) {
|
|
569
|
-
if (callbackfn[_DYN_CALL ](thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
catch (e) {
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
function arrIndexOf(arr, searchElement, fromIndex) {
|
|
579
|
-
if (arr) {
|
|
580
|
-
if (arr[strIndexOf]) {
|
|
581
|
-
return arr[strIndexOf](searchElement, fromIndex);
|
|
582
|
-
}
|
|
583
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
584
|
-
var from = fromIndex || 0;
|
|
585
|
-
try {
|
|
586
|
-
for (var lp = Math.max(from >= 0 ? from : len - Math.abs(from), 0); lp < len; lp++) {
|
|
587
|
-
if (lp in arr && arr[lp] === searchElement) {
|
|
588
|
-
return lp;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
catch (e) {
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
return -1;
|
|
596
|
-
}
|
|
597
|
-
function arrMap(arr, callbackfn, thisArg) {
|
|
598
|
-
var results;
|
|
599
|
-
if (arr) {
|
|
600
|
-
if (arr[strMap]) {
|
|
601
|
-
return arr[strMap](callbackfn, thisArg);
|
|
602
|
-
}
|
|
603
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
604
|
-
var _this = thisArg || arr;
|
|
605
|
-
results = new Array(len);
|
|
606
|
-
try {
|
|
607
|
-
for (var lp = 0; lp < len; lp++) {
|
|
608
|
-
if (lp in arr) {
|
|
609
|
-
results[lp] = callbackfn[_DYN_CALL ](_this, arr[lp], arr);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
catch (e) {
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
return results;
|
|
617
|
-
}
|
|
618
|
-
function arrReduce(arr, callbackfn, initialValue) {
|
|
619
|
-
var value;
|
|
620
|
-
if (arr) {
|
|
621
|
-
if (arr[strReduce]) {
|
|
622
|
-
return arr[strReduce](callbackfn, initialValue);
|
|
623
|
-
}
|
|
624
|
-
var len = arr[_DYN_LENGTH$2 ];
|
|
625
|
-
var lp = 0;
|
|
626
|
-
if (arguments[_DYN_LENGTH$2 ] >= 3) {
|
|
627
|
-
value = arguments[2];
|
|
628
|
-
}
|
|
629
|
-
else {
|
|
630
|
-
while (lp < len && !(lp in arr)) {
|
|
631
|
-
lp++;
|
|
632
|
-
}
|
|
633
|
-
value = arr[lp++];
|
|
634
|
-
}
|
|
635
|
-
while (lp < len) {
|
|
636
|
-
if (lp in arr) {
|
|
637
|
-
value = callbackfn(value, arr[lp], lp, arr);
|
|
638
|
-
}
|
|
639
|
-
lp++;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
return value;
|
|
643
|
-
}
|
|
644
|
-
function strTrim(str) {
|
|
645
|
-
if (str) {
|
|
646
|
-
str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE$1 ] ? str[_DYN_REPLACE$1 ](/^\s+|\s+$/g, STR_EMPTY) : str);
|
|
647
|
-
}
|
|
648
|
-
return str;
|
|
649
|
-
}
|
|
650
|
-
var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable("toString");
|
|
651
|
-
var _objKeysDontEnums = [
|
|
652
|
-
"toString",
|
|
653
|
-
"toLocaleString",
|
|
654
|
-
"valueOf",
|
|
655
|
-
"hasOwnProperty",
|
|
656
|
-
"isPrototypeOf",
|
|
657
|
-
"propertyIsEnumerable",
|
|
658
|
-
"constructor"
|
|
659
|
-
];
|
|
660
|
-
function objKeys(obj) {
|
|
661
|
-
var objType = typeof obj;
|
|
662
|
-
if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
|
|
663
|
-
throwTypeError("objKeys called on non-object");
|
|
664
|
-
}
|
|
665
|
-
if (!_objKeysHasDontEnumBug && _objKeys) {
|
|
666
|
-
return _objKeys(obj);
|
|
667
|
-
}
|
|
668
|
-
var result = [];
|
|
669
|
-
for (var prop in obj) {
|
|
670
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop)) {
|
|
671
|
-
result[_DYN_PUSH$1 ](prop);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
if (_objKeysHasDontEnumBug) {
|
|
675
|
-
var dontEnumsLength = _objKeysDontEnums[_DYN_LENGTH$2 ];
|
|
676
|
-
for (var lp = 0; lp < dontEnumsLength; lp++) {
|
|
677
|
-
if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, _objKeysDontEnums[lp])) {
|
|
678
|
-
result[_DYN_PUSH$1 ](_objKeysDontEnums[lp]);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
return result;
|
|
683
|
-
}
|
|
684
|
-
function objDefineAccessors(target, prop, getProp, setProp) {
|
|
685
|
-
if (_objDefineProperty$1) {
|
|
686
|
-
try {
|
|
687
|
-
var descriptor = {
|
|
688
|
-
enumerable: true,
|
|
689
|
-
configurable: true
|
|
690
|
-
};
|
|
691
|
-
if (getProp) {
|
|
692
|
-
descriptor.get = getProp;
|
|
693
|
-
}
|
|
694
|
-
if (setProp) {
|
|
695
|
-
descriptor.set = setProp;
|
|
696
|
-
}
|
|
697
|
-
_objDefineProperty$1(target, prop, descriptor);
|
|
698
|
-
return true;
|
|
699
|
-
}
|
|
700
|
-
catch (e) {
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
return false;
|
|
704
|
-
}
|
|
705
|
-
function _doNothing(value) {
|
|
706
|
-
return value;
|
|
707
|
-
}
|
|
708
|
-
function deepFreeze(obj) {
|
|
709
|
-
if (_objFreeze) {
|
|
710
|
-
objForEachKey(obj, function (name, value) {
|
|
711
|
-
if (isArray(value) || isObject(value)) {
|
|
712
|
-
_objFreeze(value);
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
return objFreeze(obj);
|
|
717
|
-
}
|
|
718
|
-
var objFreeze = _objFreeze || _doNothing;
|
|
719
718
|
function dateNow() {
|
|
720
719
|
var dt = Date;
|
|
721
720
|
return dt.now ? dt.now() : new dt().getTime();
|
|
722
721
|
}
|
|
723
|
-
function getExceptionName(object) {
|
|
724
|
-
if (isError(object)) {
|
|
725
|
-
return object[_DYN_NAME$1 ];
|
|
726
|
-
}
|
|
727
|
-
return STR_EMPTY;
|
|
728
|
-
}
|
|
729
722
|
function setValue(target, field, value, valChk, srcChk) {
|
|
730
723
|
var theValue = value;
|
|
731
724
|
if (target) {
|
|
@@ -740,9 +733,6 @@
|
|
|
740
733
|
function getCfgValue(theValue, defaultValue) {
|
|
741
734
|
return !isNullOrUndefined(theValue) ? theValue : defaultValue;
|
|
742
735
|
}
|
|
743
|
-
function isTruthy(value) {
|
|
744
|
-
return !!value;
|
|
745
|
-
}
|
|
746
736
|
function _createProxyFunction(source, funcName) {
|
|
747
737
|
var srcFunc = null;
|
|
748
738
|
var src = null;
|
|
@@ -772,7 +762,7 @@
|
|
|
772
762
|
function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
|
|
773
763
|
var theArgs = arguments;
|
|
774
764
|
var extended = theArgs[0] || {};
|
|
775
|
-
var argLen = theArgs[_DYN_LENGTH$
|
|
765
|
+
var argLen = theArgs[_DYN_LENGTH$1 ];
|
|
776
766
|
var deep = false;
|
|
777
767
|
var idx = 1;
|
|
778
768
|
if (argLen > 0 && isBoolean(extended)) {
|
|
@@ -803,120 +793,52 @@
|
|
|
803
793
|
}
|
|
804
794
|
else if (!isPlainObject(clone)) {
|
|
805
795
|
clone = {};
|
|
806
|
-
}
|
|
807
|
-
newValue = objExtend(deep, clone, newValue);
|
|
808
|
-
}
|
|
809
|
-
if (newValue !== undefined) {
|
|
810
|
-
extended[prop] = newValue;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
return extended;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
function createEnumStyle(values) {
|
|
818
|
-
var enumClass = {};
|
|
819
|
-
objForEachKey(values, function (field, value) {
|
|
820
|
-
enumClass[field] = value;
|
|
821
|
-
enumClass[value] = field;
|
|
822
|
-
});
|
|
823
|
-
return deepFreeze(enumClass);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
var strWindow = "window";
|
|
827
|
-
var strDocument = "document";
|
|
828
|
-
var strDocumentMode = "documentMode";
|
|
829
|
-
var strNavigator = "navigator";
|
|
830
|
-
var strLocation = "location";
|
|
831
|
-
var strConsole = "console";
|
|
832
|
-
var strPerformance = "performance";
|
|
833
|
-
var strJSON = "JSON";
|
|
834
|
-
var strCrypto = "crypto";
|
|
835
|
-
var strMsCrypto = "msCrypto";
|
|
836
|
-
var strMsie = "msie";
|
|
837
|
-
var strTrident = "trident/";
|
|
838
|
-
var _isTrident = null;
|
|
839
|
-
var _navUserAgentCheck = null;
|
|
840
|
-
var _enableMocks = false;
|
|
841
|
-
var _beaconsSupported = null;
|
|
842
|
-
function getGlobalInst(name) {
|
|
843
|
-
var gbl = getGlobal();
|
|
844
|
-
if (gbl && gbl[name]) {
|
|
845
|
-
return gbl[name];
|
|
846
|
-
}
|
|
847
|
-
if (name === strWindow && hasWindow()) {
|
|
848
|
-
return window;
|
|
849
|
-
}
|
|
850
|
-
return null;
|
|
851
|
-
}
|
|
852
|
-
function hasWindow() {
|
|
853
|
-
return Boolean(typeof window === strShimObject && window);
|
|
854
|
-
}
|
|
855
|
-
function getWindow() {
|
|
856
|
-
if (hasWindow()) {
|
|
857
|
-
return window;
|
|
858
|
-
}
|
|
859
|
-
return getGlobalInst(strWindow);
|
|
860
|
-
}
|
|
861
|
-
function hasDocument() {
|
|
862
|
-
return Boolean(typeof document === strShimObject && document);
|
|
863
|
-
}
|
|
864
|
-
function getDocument() {
|
|
865
|
-
if (hasDocument()) {
|
|
866
|
-
return document;
|
|
867
|
-
}
|
|
868
|
-
return getGlobalInst(strDocument);
|
|
869
|
-
}
|
|
870
|
-
function hasNavigator() {
|
|
871
|
-
return Boolean(typeof navigator === strShimObject && navigator);
|
|
872
|
-
}
|
|
873
|
-
function getNavigator() {
|
|
874
|
-
if (hasNavigator()) {
|
|
875
|
-
return navigator;
|
|
876
|
-
}
|
|
877
|
-
return getGlobalInst(strNavigator);
|
|
878
|
-
}
|
|
879
|
-
function getLocation(checkForMock) {
|
|
880
|
-
if (checkForMock && _enableMocks) {
|
|
881
|
-
var mockLocation = getGlobalInst("__mockLocation");
|
|
882
|
-
if (mockLocation) {
|
|
883
|
-
return mockLocation;
|
|
796
|
+
}
|
|
797
|
+
newValue = objExtend(deep, clone, newValue);
|
|
798
|
+
}
|
|
799
|
+
if (newValue !== undefined) {
|
|
800
|
+
extended[prop] = newValue;
|
|
801
|
+
}
|
|
884
802
|
}
|
|
885
803
|
}
|
|
886
|
-
|
|
887
|
-
return location;
|
|
888
|
-
}
|
|
889
|
-
return getGlobalInst(strLocation);
|
|
804
|
+
return extended;
|
|
890
805
|
}
|
|
806
|
+
|
|
807
|
+
var strDocumentMode = "documentMode";
|
|
808
|
+
var strConsole = "console";
|
|
809
|
+
var strJSON = "JSON";
|
|
810
|
+
var strCrypto = "crypto";
|
|
811
|
+
var strMsCrypto = "msCrypto";
|
|
812
|
+
var strMsie = "msie";
|
|
813
|
+
var strTrident = "trident/";
|
|
814
|
+
var _isTrident = null;
|
|
815
|
+
var _navUserAgentCheck = null;
|
|
891
816
|
function getConsole() {
|
|
892
817
|
if (typeof console !== strShimUndefined) {
|
|
893
818
|
return console;
|
|
894
819
|
}
|
|
895
|
-
return
|
|
896
|
-
}
|
|
897
|
-
function getPerformance() {
|
|
898
|
-
return getGlobalInst(strPerformance);
|
|
820
|
+
return getInst(strConsole);
|
|
899
821
|
}
|
|
900
822
|
function hasJSON() {
|
|
901
|
-
return Boolean((typeof JSON === strShimObject && JSON) ||
|
|
823
|
+
return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
|
|
902
824
|
}
|
|
903
825
|
function getJSON() {
|
|
904
826
|
if (hasJSON()) {
|
|
905
|
-
return JSON ||
|
|
827
|
+
return JSON || getInst(strJSON);
|
|
906
828
|
}
|
|
907
829
|
return null;
|
|
908
830
|
}
|
|
909
831
|
function getCrypto() {
|
|
910
|
-
return
|
|
832
|
+
return getInst(strCrypto);
|
|
911
833
|
}
|
|
912
834
|
function getMsCrypto() {
|
|
913
|
-
return
|
|
835
|
+
return getInst(strMsCrypto);
|
|
914
836
|
}
|
|
915
837
|
function isIE() {
|
|
916
838
|
var nav = getNavigator();
|
|
917
839
|
if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
|
|
918
840
|
_navUserAgentCheck = nav[_DYN_USER_AGENT ];
|
|
919
|
-
var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
841
|
+
var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
|
|
920
842
|
_isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
|
|
921
843
|
}
|
|
922
844
|
return _isTrident;
|
|
@@ -925,9 +847,9 @@
|
|
|
925
847
|
if (userAgentStr === void 0) { userAgentStr = null; }
|
|
926
848
|
if (!userAgentStr) {
|
|
927
849
|
var navigator_1 = getNavigator() || {};
|
|
928
|
-
userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT ] || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
850
|
+
userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT ] || STR_EMPTY)[_DYN_TO_LOWER_CASE ]() : STR_EMPTY;
|
|
929
851
|
}
|
|
930
|
-
var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE
|
|
852
|
+
var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
|
|
931
853
|
if (strContains(ua, strMsie)) {
|
|
932
854
|
var doc = getDocument() || {};
|
|
933
855
|
return Math.max(parseInt(ua[_DYN_SPLIT ](strMsie)[1]), (doc[strDocumentMode] || 0));
|
|
@@ -940,39 +862,6 @@
|
|
|
940
862
|
}
|
|
941
863
|
return null;
|
|
942
864
|
}
|
|
943
|
-
function dumpObj(object) {
|
|
944
|
-
var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL ](object);
|
|
945
|
-
var propertyValueDump = STR_EMPTY;
|
|
946
|
-
if (objectTypeDump === "[object Error]") {
|
|
947
|
-
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object[_DYN_NAME$1 ] + "'";
|
|
948
|
-
}
|
|
949
|
-
else if (hasJSON()) {
|
|
950
|
-
propertyValueDump = getJSON().stringify(object);
|
|
951
|
-
}
|
|
952
|
-
return objectTypeDump + propertyValueDump;
|
|
953
|
-
}
|
|
954
|
-
function isBeaconsSupported() {
|
|
955
|
-
if (_beaconsSupported === null) {
|
|
956
|
-
_beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon);
|
|
957
|
-
}
|
|
958
|
-
return _beaconsSupported;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
var _aiNamespace = null;
|
|
962
|
-
function _getExtensionNamespace() {
|
|
963
|
-
var target = getGlobalInst("Microsoft");
|
|
964
|
-
if (target) {
|
|
965
|
-
_aiNamespace = target["ApplicationInsights"];
|
|
966
|
-
}
|
|
967
|
-
return _aiNamespace;
|
|
968
|
-
}
|
|
969
|
-
function getDebugExt(config) {
|
|
970
|
-
var ns = _aiNamespace;
|
|
971
|
-
if (!ns && config.disableDbgExt !== true) {
|
|
972
|
-
ns = _aiNamespace || _getExtensionNamespace();
|
|
973
|
-
}
|
|
974
|
-
return ns ? ns["ChromeDbgExt"] : null;
|
|
975
|
-
}
|
|
976
865
|
|
|
977
866
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
978
867
|
var AiUserActionablePrefix = "AI: ";
|
|
@@ -1139,14 +1028,13 @@
|
|
|
1139
1028
|
var PerfEvent = /** @class */ (function () {
|
|
1140
1029
|
function PerfEvent(name, payloadDetails, isAsync) {
|
|
1141
1030
|
var _self = this;
|
|
1142
|
-
var accessorDefined = false;
|
|
1143
1031
|
_self.start = dateNow();
|
|
1144
1032
|
_self[_DYN_NAME$1 ] = name;
|
|
1145
1033
|
_self[_DYN_IS_ASYNC ] = isAsync;
|
|
1146
1034
|
_self[_DYN_IS_CHILD_EVT ] = function () { return false; };
|
|
1147
1035
|
if (isFunction(payloadDetails)) {
|
|
1148
1036
|
var theDetails_1;
|
|
1149
|
-
|
|
1037
|
+
objDefineAccessors(_self, "payload", function () {
|
|
1150
1038
|
if (!theDetails_1 && isFunction(payloadDetails)) {
|
|
1151
1039
|
theDetails_1 = payloadDetails();
|
|
1152
1040
|
payloadDetails = null;
|
|
@@ -1184,7 +1072,7 @@
|
|
|
1184
1072
|
var childTime = 0;
|
|
1185
1073
|
var childEvts = _self[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
|
|
1186
1074
|
if (isArray(childEvts)) {
|
|
1187
|
-
for (var lp = 0; lp < childEvts[_DYN_LENGTH$
|
|
1075
|
+
for (var lp = 0; lp < childEvts[_DYN_LENGTH$1 ]; lp++) {
|
|
1188
1076
|
var childEvt = childEvts[lp];
|
|
1189
1077
|
if (childEvt) {
|
|
1190
1078
|
childTime += childEvt[_DYN_TIME ];
|
|
@@ -1194,9 +1082,6 @@
|
|
|
1194
1082
|
_self[_DYN_TIME ] = dateNow() - _self.start;
|
|
1195
1083
|
_self.exTime = _self[_DYN_TIME ] - childTime;
|
|
1196
1084
|
_self[_DYN_COMPLETE ] = function () { };
|
|
1197
|
-
if (!accessorDefined && isFunction(payloadDetails)) {
|
|
1198
|
-
_self.payload = payloadDetails();
|
|
1199
|
-
}
|
|
1200
1085
|
};
|
|
1201
1086
|
}
|
|
1202
1087
|
PerfEvent.ParentContextKey = "parent";
|
|
@@ -1268,12 +1153,6 @@
|
|
|
1268
1153
|
catch (e) {
|
|
1269
1154
|
}
|
|
1270
1155
|
}
|
|
1271
|
-
function randomValue(maxValue) {
|
|
1272
|
-
if (maxValue > 0) {
|
|
1273
|
-
return Math.floor((random32() / MaxUInt32) * (maxValue + 1)) >>> 0;
|
|
1274
|
-
}
|
|
1275
|
-
return 0;
|
|
1276
|
-
}
|
|
1277
1156
|
function random32(signed) {
|
|
1278
1157
|
var value = 0;
|
|
1279
1158
|
var c = getCrypto() || getMsCrypto();
|
|
@@ -1294,14 +1173,6 @@
|
|
|
1294
1173
|
}
|
|
1295
1174
|
return value;
|
|
1296
1175
|
}
|
|
1297
|
-
function mwcRandomSeed(value) {
|
|
1298
|
-
if (!value) {
|
|
1299
|
-
_autoSeedMwc();
|
|
1300
|
-
}
|
|
1301
|
-
else {
|
|
1302
|
-
_mwcSeed(value);
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
1176
|
function mwcRandom32(signed) {
|
|
1306
1177
|
_mwcZ = (36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16)) & MaxUInt32;
|
|
1307
1178
|
_mwcW = (18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16)) & MaxUInt32;
|
|
@@ -1317,7 +1188,7 @@
|
|
|
1317
1188
|
var number = random32() >>> 0;
|
|
1318
1189
|
var chars = 0;
|
|
1319
1190
|
var result = STR_EMPTY;
|
|
1320
|
-
while (result[_DYN_LENGTH$
|
|
1191
|
+
while (result[_DYN_LENGTH$1 ] < maxLength) {
|
|
1321
1192
|
chars++;
|
|
1322
1193
|
result += base64chars.charAt(number & 0x3F);
|
|
1323
1194
|
number >>>= 6;
|
|
@@ -1330,7 +1201,7 @@
|
|
|
1330
1201
|
}
|
|
1331
1202
|
|
|
1332
1203
|
var _objDefineProperty = ObjDefineProperty;
|
|
1333
|
-
var version = "3.0.0-beta.2208-
|
|
1204
|
+
var version = "3.0.0-beta.2208-18";
|
|
1334
1205
|
var instanceName = "." + newId(6);
|
|
1335
1206
|
var _dataUid = 0;
|
|
1336
1207
|
function _createAccessor(target, prop, value) {
|
|
@@ -1401,463 +1272,6 @@
|
|
|
1401
1272
|
return data;
|
|
1402
1273
|
}
|
|
1403
1274
|
|
|
1404
|
-
var strToGMTString = "toGMTString";
|
|
1405
|
-
var strToUTCString = "toUTCString";
|
|
1406
|
-
var strCookie = "cookie";
|
|
1407
|
-
var strExpires = "expires";
|
|
1408
|
-
var strEnabled = "enabled";
|
|
1409
|
-
var strIsCookieUseDisabled = "isCookieUseDisabled";
|
|
1410
|
-
var strDisableCookiesUsage = "disableCookiesUsage";
|
|
1411
|
-
var strConfigCookieMgr = "_ckMgr";
|
|
1412
|
-
var _supportsCookies = null;
|
|
1413
|
-
var _allowUaSameSite = null;
|
|
1414
|
-
var _parsedCookieValue = null;
|
|
1415
|
-
var _doc = getDocument();
|
|
1416
|
-
var _cookieCache = {};
|
|
1417
|
-
var _globalCookieConfig = {};
|
|
1418
|
-
function _gblCookieMgr(config, logger) {
|
|
1419
|
-
var inst = createCookieMgr[strConfigCookieMgr] || _globalCookieConfig[strConfigCookieMgr];
|
|
1420
|
-
if (!inst) {
|
|
1421
|
-
inst = createCookieMgr[strConfigCookieMgr] = createCookieMgr(config, logger);
|
|
1422
|
-
_globalCookieConfig[strConfigCookieMgr] = inst;
|
|
1423
|
-
}
|
|
1424
|
-
return inst;
|
|
1425
|
-
}
|
|
1426
|
-
function _isMgrEnabled(cookieMgr) {
|
|
1427
|
-
if (cookieMgr) {
|
|
1428
|
-
return cookieMgr.isEnabled();
|
|
1429
|
-
}
|
|
1430
|
-
return true;
|
|
1431
|
-
}
|
|
1432
|
-
function _createCookieMgrConfig(rootConfig) {
|
|
1433
|
-
var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG ] = rootConfig[_DYN_COOKIE_CFG ] || {};
|
|
1434
|
-
setValue(cookieMgrCfg, "domain", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);
|
|
1435
|
-
setValue(cookieMgrCfg, "path", rootConfig.cookiePath || "/", null, isNullOrUndefined);
|
|
1436
|
-
if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {
|
|
1437
|
-
var cookieEnabled = void 0;
|
|
1438
|
-
if (!isUndefined(rootConfig[strIsCookieUseDisabled])) {
|
|
1439
|
-
cookieEnabled = !rootConfig[strIsCookieUseDisabled];
|
|
1440
|
-
}
|
|
1441
|
-
if (!isUndefined(rootConfig[strDisableCookiesUsage])) {
|
|
1442
|
-
cookieEnabled = !rootConfig[strDisableCookiesUsage];
|
|
1443
|
-
}
|
|
1444
|
-
cookieMgrCfg[strEnabled] = cookieEnabled;
|
|
1445
|
-
}
|
|
1446
|
-
return cookieMgrCfg;
|
|
1447
|
-
}
|
|
1448
|
-
function createCookieMgr(rootConfig, logger) {
|
|
1449
|
-
var _a;
|
|
1450
|
-
var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);
|
|
1451
|
-
var _path = cookieMgrConfig.path || "/";
|
|
1452
|
-
var _domain = cookieMgrConfig.domain;
|
|
1453
|
-
var _enabled = cookieMgrConfig[strEnabled] !== false;
|
|
1454
|
-
var cookieMgr = (_a = {
|
|
1455
|
-
isEnabled: function () {
|
|
1456
|
-
var enabled = _enabled && areCookiesSupported(logger);
|
|
1457
|
-
var gblManager = _globalCookieConfig[strConfigCookieMgr];
|
|
1458
|
-
if (enabled && gblManager && cookieMgr !== gblManager) {
|
|
1459
|
-
enabled = _isMgrEnabled(gblManager);
|
|
1460
|
-
}
|
|
1461
|
-
return enabled;
|
|
1462
|
-
}
|
|
1463
|
-
},
|
|
1464
|
-
_a[_DYN_SET_ENABLED ] = function (value) {
|
|
1465
|
-
_enabled = value !== false;
|
|
1466
|
-
},
|
|
1467
|
-
_a.set = function (name, value, maxAgeSec, domain, path) {
|
|
1468
|
-
var result = false;
|
|
1469
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1470
|
-
var values = {};
|
|
1471
|
-
var theValue = strTrim(value || STR_EMPTY);
|
|
1472
|
-
var idx = theValue[_DYN_INDEX_OF ](";");
|
|
1473
|
-
if (idx !== -1) {
|
|
1474
|
-
theValue = strTrim(value[_DYN_SUBSTRING$1 ](0, idx));
|
|
1475
|
-
values = _extractParts(value[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1476
|
-
}
|
|
1477
|
-
setValue(values, "domain", domain || _domain, isTruthy, isUndefined);
|
|
1478
|
-
if (!isNullOrUndefined(maxAgeSec)) {
|
|
1479
|
-
var _isIE = isIE();
|
|
1480
|
-
if (isUndefined(values[strExpires])) {
|
|
1481
|
-
var nowMs = dateNow();
|
|
1482
|
-
var expireMs = nowMs + (maxAgeSec * 1000);
|
|
1483
|
-
if (expireMs > 0) {
|
|
1484
|
-
var expiry = new Date();
|
|
1485
|
-
expiry.setTime(expireMs);
|
|
1486
|
-
setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
if (!_isIE) {
|
|
1490
|
-
setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
var location_1 = getLocation();
|
|
1494
|
-
if (location_1 && location_1.protocol === "https:") {
|
|
1495
|
-
setValue(values, "secure", null, null, isUndefined);
|
|
1496
|
-
if (_allowUaSameSite === null) {
|
|
1497
|
-
_allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
|
|
1498
|
-
}
|
|
1499
|
-
if (_allowUaSameSite) {
|
|
1500
|
-
setValue(values, "SameSite", "None", null, isUndefined);
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
setValue(values, "path", path || _path, null, isUndefined);
|
|
1504
|
-
var setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;
|
|
1505
|
-
setCookieFn(name, _formatCookieValue(theValue, values));
|
|
1506
|
-
result = true;
|
|
1507
|
-
}
|
|
1508
|
-
return result;
|
|
1509
|
-
},
|
|
1510
|
-
_a.get = function (name) {
|
|
1511
|
-
var value = STR_EMPTY;
|
|
1512
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1513
|
-
value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
|
|
1514
|
-
}
|
|
1515
|
-
return value;
|
|
1516
|
-
},
|
|
1517
|
-
_a.del = function (name, path) {
|
|
1518
|
-
var result = false;
|
|
1519
|
-
if (_isMgrEnabled(cookieMgr)) {
|
|
1520
|
-
result = cookieMgr.purge(name, path);
|
|
1521
|
-
}
|
|
1522
|
-
return result;
|
|
1523
|
-
},
|
|
1524
|
-
_a.purge = function (name, path) {
|
|
1525
|
-
var _a;
|
|
1526
|
-
var result = false;
|
|
1527
|
-
if (areCookiesSupported(logger)) {
|
|
1528
|
-
var values = (_a = {},
|
|
1529
|
-
_a["path"] = path ? path : "/",
|
|
1530
|
-
_a[strExpires] = "Thu, 01 Jan 1970 00:00:01 GMT",
|
|
1531
|
-
_a);
|
|
1532
|
-
if (!isIE()) {
|
|
1533
|
-
values["max-age"] = "0";
|
|
1534
|
-
}
|
|
1535
|
-
var delCookie = cookieMgrConfig.delCookie || _setCookieValue;
|
|
1536
|
-
delCookie(name, _formatCookieValue(STR_EMPTY, values));
|
|
1537
|
-
result = true;
|
|
1538
|
-
}
|
|
1539
|
-
return result;
|
|
1540
|
-
},
|
|
1541
|
-
_a);
|
|
1542
|
-
cookieMgr[strConfigCookieMgr] = cookieMgr;
|
|
1543
|
-
return cookieMgr;
|
|
1544
|
-
}
|
|
1545
|
-
function areCookiesSupported(logger) {
|
|
1546
|
-
if (_supportsCookies === null) {
|
|
1547
|
-
_supportsCookies = false;
|
|
1548
|
-
try {
|
|
1549
|
-
var doc = _doc || {};
|
|
1550
|
-
_supportsCookies = doc[strCookie] !== undefined;
|
|
1551
|
-
}
|
|
1552
|
-
catch (e) {
|
|
1553
|
-
_throwInternal(logger, 2 , 68 , "Cannot access document.cookie - " + getExceptionName(e), { exception: dumpObj(e) });
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
return _supportsCookies;
|
|
1557
|
-
}
|
|
1558
|
-
function _extractParts(theValue) {
|
|
1559
|
-
var values = {};
|
|
1560
|
-
if (theValue && theValue[_DYN_LENGTH$2 ]) {
|
|
1561
|
-
var parts = strTrim(theValue)[_DYN_SPLIT ](";");
|
|
1562
|
-
arrForEach(parts, function (thePart) {
|
|
1563
|
-
thePart = strTrim(thePart || STR_EMPTY);
|
|
1564
|
-
if (thePart) {
|
|
1565
|
-
var idx = thePart[_DYN_INDEX_OF ]("=");
|
|
1566
|
-
if (idx === -1) {
|
|
1567
|
-
values[thePart] = null;
|
|
1568
|
-
}
|
|
1569
|
-
else {
|
|
1570
|
-
values[strTrim(thePart[_DYN_SUBSTRING$1 ](0, idx))] = strTrim(thePart[_DYN_SUBSTRING$1 ](idx + 1));
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
return values;
|
|
1576
|
-
}
|
|
1577
|
-
function _formatDate(theDate, func) {
|
|
1578
|
-
if (isFunction(theDate[func])) {
|
|
1579
|
-
return theDate[func]();
|
|
1580
|
-
}
|
|
1581
|
-
return null;
|
|
1582
|
-
}
|
|
1583
|
-
function _formatCookieValue(value, values) {
|
|
1584
|
-
var cookieValue = value || STR_EMPTY;
|
|
1585
|
-
objForEachKey(values, function (name, theValue) {
|
|
1586
|
-
cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
|
|
1587
|
-
});
|
|
1588
|
-
return cookieValue;
|
|
1589
|
-
}
|
|
1590
|
-
function _getCookieValue(name) {
|
|
1591
|
-
var cookieValue = STR_EMPTY;
|
|
1592
|
-
if (_doc) {
|
|
1593
|
-
var theCookie = _doc[strCookie] || STR_EMPTY;
|
|
1594
|
-
if (_parsedCookieValue !== theCookie) {
|
|
1595
|
-
_cookieCache = _extractParts(theCookie);
|
|
1596
|
-
_parsedCookieValue = theCookie;
|
|
1597
|
-
}
|
|
1598
|
-
cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
|
|
1599
|
-
}
|
|
1600
|
-
return cookieValue;
|
|
1601
|
-
}
|
|
1602
|
-
function _setCookieValue(name, cookieValue) {
|
|
1603
|
-
if (_doc) {
|
|
1604
|
-
_doc[strCookie] = name + "=" + cookieValue;
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
function uaDisallowsSameSiteNone(userAgent) {
|
|
1608
|
-
if (!isString(userAgent)) {
|
|
1609
|
-
return false;
|
|
1610
|
-
}
|
|
1611
|
-
if (strContains(userAgent, "CPU iPhone OS 12") || strContains(userAgent, "iPad; CPU OS 12")) {
|
|
1612
|
-
return true;
|
|
1613
|
-
}
|
|
1614
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strContains(userAgent, "Version/") && strContains(userAgent, "Safari")) {
|
|
1615
|
-
return true;
|
|
1616
|
-
}
|
|
1617
|
-
if (strContains(userAgent, "Macintosh; Intel Mac OS X 10_14") && strEndsWith(userAgent, "AppleWebKit/605.1.15 (KHTML, like Gecko)")) {
|
|
1618
|
-
return true;
|
|
1619
|
-
}
|
|
1620
|
-
if (strContains(userAgent, "Chrome/5") || strContains(userAgent, "Chrome/6")) {
|
|
1621
|
-
return true;
|
|
1622
|
-
}
|
|
1623
|
-
if (strContains(userAgent, "UnrealEngine") && !strContains(userAgent, "Chrome")) {
|
|
1624
|
-
return true;
|
|
1625
|
-
}
|
|
1626
|
-
if (strContains(userAgent, "UCBrowser/12") || strContains(userAgent, "UCBrowser/11")) {
|
|
1627
|
-
return true;
|
|
1628
|
-
}
|
|
1629
|
-
return false;
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
var strOnPrefix = "on";
|
|
1633
|
-
var strAttachEvent = "attachEvent";
|
|
1634
|
-
var strAddEventHelper = "addEventListener";
|
|
1635
|
-
var strEvents = "events";
|
|
1636
|
-
createUniqueNamespace("aiEvtPageHide");
|
|
1637
|
-
createUniqueNamespace("aiEvtPageShow");
|
|
1638
|
-
var rRemoveEmptyNs = /\.[\.]+/g;
|
|
1639
|
-
var rRemoveTrailingEmptyNs = /[\.]+$/;
|
|
1640
|
-
var _guid = 1;
|
|
1641
|
-
var elmNodeData = createElmNodeData("events");
|
|
1642
|
-
var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
|
|
1643
|
-
function _normalizeNamespace(name) {
|
|
1644
|
-
if (name && name[_DYN_REPLACE$1 ]) {
|
|
1645
|
-
return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
|
|
1646
|
-
}
|
|
1647
|
-
return name;
|
|
1648
|
-
}
|
|
1649
|
-
function _getEvtNamespace(eventName, evtNamespace) {
|
|
1650
|
-
var _a;
|
|
1651
|
-
if (evtNamespace) {
|
|
1652
|
-
var theNamespace_1 = STR_EMPTY;
|
|
1653
|
-
if (isArray(evtNamespace)) {
|
|
1654
|
-
theNamespace_1 = STR_EMPTY;
|
|
1655
|
-
arrForEach(evtNamespace, function (name) {
|
|
1656
|
-
name = _normalizeNamespace(name);
|
|
1657
|
-
if (name) {
|
|
1658
|
-
if (name[0] !== ".") {
|
|
1659
|
-
name = "." + name;
|
|
1660
|
-
}
|
|
1661
|
-
theNamespace_1 += name;
|
|
1662
|
-
}
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
else {
|
|
1666
|
-
theNamespace_1 = _normalizeNamespace(evtNamespace);
|
|
1667
|
-
}
|
|
1668
|
-
if (theNamespace_1) {
|
|
1669
|
-
if (theNamespace_1[0] !== ".") {
|
|
1670
|
-
theNamespace_1 = "." + theNamespace_1;
|
|
1671
|
-
}
|
|
1672
|
-
eventName = (eventName || STR_EMPTY) + theNamespace_1;
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
|
|
1676
|
-
return _a = {},
|
|
1677
|
-
_a[_DYN_TYPE ] = parsedEvent[1],
|
|
1678
|
-
_a.ns = ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT ](".").sort()).join("."),
|
|
1679
|
-
_a;
|
|
1680
|
-
}
|
|
1681
|
-
function _getRegisteredEvents(target, evtName, addDefault) {
|
|
1682
|
-
if (addDefault === void 0) { addDefault = true; }
|
|
1683
|
-
var aiEvts = elmNodeData.get(target, strEvents, {}, addDefault);
|
|
1684
|
-
var registeredEvents = aiEvts[evtName];
|
|
1685
|
-
if (!registeredEvents) {
|
|
1686
|
-
registeredEvents = aiEvts[evtName] = [];
|
|
1687
|
-
}
|
|
1688
|
-
return registeredEvents;
|
|
1689
|
-
}
|
|
1690
|
-
function _doAttach(obj, evtName, handlerRef, useCapture) {
|
|
1691
|
-
var result = false;
|
|
1692
|
-
if (obj && evtName && evtName[_DYN_TYPE ] && handlerRef) {
|
|
1693
|
-
if (obj[strAddEventHelper]) {
|
|
1694
|
-
obj[strAddEventHelper](evtName[_DYN_TYPE ], handlerRef, useCapture);
|
|
1695
|
-
result = true;
|
|
1696
|
-
}
|
|
1697
|
-
else if (obj[strAttachEvent]) {
|
|
1698
|
-
obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
|
|
1699
|
-
result = true;
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
return result;
|
|
1703
|
-
}
|
|
1704
|
-
function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {
|
|
1705
|
-
var _a;
|
|
1706
|
-
if (useCapture === void 0) { useCapture = false; }
|
|
1707
|
-
var result = false;
|
|
1708
|
-
if (target) {
|
|
1709
|
-
try {
|
|
1710
|
-
var evtName = _getEvtNamespace(eventName, evtNamespace);
|
|
1711
|
-
result = _doAttach(target, evtName, handlerRef, useCapture);
|
|
1712
|
-
if (result && elmNodeData.accept(target)) {
|
|
1713
|
-
var registeredEvent = (_a = {
|
|
1714
|
-
guid: _guid++,
|
|
1715
|
-
evtName: evtName
|
|
1716
|
-
},
|
|
1717
|
-
_a[_DYN_HANDLER ] = handlerRef,
|
|
1718
|
-
_a.capture = useCapture,
|
|
1719
|
-
_a);
|
|
1720
|
-
_getRegisteredEvents(target, evtName.type)[_DYN_PUSH$1 ](registeredEvent);
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
catch (e) {
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
return result;
|
|
1727
|
-
}
|
|
1728
|
-
function attachEvent(obj, eventNameWithoutOn, handlerRef, useCapture) {
|
|
1729
|
-
if (useCapture === void 0) { useCapture = false; }
|
|
1730
|
-
return eventOn(obj, eventNameWithoutOn, handlerRef, null, useCapture);
|
|
1731
|
-
}
|
|
1732
|
-
function addEventHandler(eventName, callback, evtNamespace) {
|
|
1733
|
-
var result = false;
|
|
1734
|
-
var w = getWindow();
|
|
1735
|
-
if (w) {
|
|
1736
|
-
result = eventOn(w, eventName, callback, evtNamespace);
|
|
1737
|
-
result = eventOn(w["body"], eventName, callback, evtNamespace) || result;
|
|
1738
|
-
}
|
|
1739
|
-
var doc = getDocument();
|
|
1740
|
-
if (doc) {
|
|
1741
|
-
result = eventOn(doc, eventName, callback, evtNamespace) || result;
|
|
1742
|
-
}
|
|
1743
|
-
return result;
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
var _cookieMgrs = null;
|
|
1747
|
-
var _canUseCookies;
|
|
1748
|
-
function newGuid() {
|
|
1749
|
-
function randomHexDigit() {
|
|
1750
|
-
return randomValue(15);
|
|
1751
|
-
}
|
|
1752
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_DYN_REPLACE$1 ](GuidRegex, function (c) {
|
|
1753
|
-
var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
|
|
1754
|
-
return v.toString(16);
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
function perfNow() {
|
|
1758
|
-
var perf = getPerformance();
|
|
1759
|
-
if (perf && perf.now) {
|
|
1760
|
-
return perf.now();
|
|
1761
|
-
}
|
|
1762
|
-
return dateNow();
|
|
1763
|
-
}
|
|
1764
|
-
function generateW3CId() {
|
|
1765
|
-
var hexValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
1766
|
-
var oct = STR_EMPTY, tmp;
|
|
1767
|
-
for (var a = 0; a < 4; a++) {
|
|
1768
|
-
tmp = random32();
|
|
1769
|
-
oct +=
|
|
1770
|
-
hexValues[tmp & 0xF] +
|
|
1771
|
-
hexValues[tmp >> 4 & 0xF] +
|
|
1772
|
-
hexValues[tmp >> 8 & 0xF] +
|
|
1773
|
-
hexValues[tmp >> 12 & 0xF] +
|
|
1774
|
-
hexValues[tmp >> 16 & 0xF] +
|
|
1775
|
-
hexValues[tmp >> 20 & 0xF] +
|
|
1776
|
-
hexValues[tmp >> 24 & 0xF] +
|
|
1777
|
-
hexValues[tmp >> 28 & 0xF];
|
|
1778
|
-
}
|
|
1779
|
-
var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];
|
|
1780
|
-
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);
|
|
1781
|
-
}
|
|
1782
|
-
var CoreUtils = {
|
|
1783
|
-
_canUseCookies: undefined,
|
|
1784
|
-
isTypeof: isTypeof,
|
|
1785
|
-
isUndefined: isUndefined,
|
|
1786
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
1787
|
-
hasOwnProperty: hasOwnProperty,
|
|
1788
|
-
isFunction: isFunction,
|
|
1789
|
-
isObject: isObject,
|
|
1790
|
-
isDate: isDate,
|
|
1791
|
-
isArray: isArray,
|
|
1792
|
-
isError: isError,
|
|
1793
|
-
isString: isString,
|
|
1794
|
-
isNumber: isNumber,
|
|
1795
|
-
isBoolean: isBoolean,
|
|
1796
|
-
toISOString: toISOString,
|
|
1797
|
-
arrForEach: arrForEach,
|
|
1798
|
-
arrIndexOf: arrIndexOf,
|
|
1799
|
-
arrMap: arrMap,
|
|
1800
|
-
arrReduce: arrReduce,
|
|
1801
|
-
strTrim: strTrim,
|
|
1802
|
-
objCreate: objCreateFn,
|
|
1803
|
-
objKeys: objKeys,
|
|
1804
|
-
objDefineAccessors: objDefineAccessors,
|
|
1805
|
-
addEventHandler: addEventHandler,
|
|
1806
|
-
dateNow: dateNow,
|
|
1807
|
-
isIE: isIE,
|
|
1808
|
-
disableCookies: disableCookies,
|
|
1809
|
-
newGuid: newGuid,
|
|
1810
|
-
perfNow: perfNow,
|
|
1811
|
-
newId: newId,
|
|
1812
|
-
randomValue: randomValue,
|
|
1813
|
-
random32: random32,
|
|
1814
|
-
mwcRandomSeed: mwcRandomSeed,
|
|
1815
|
-
mwcRandom32: mwcRandom32,
|
|
1816
|
-
generateW3CId: generateW3CId
|
|
1817
|
-
};
|
|
1818
|
-
var GuidRegex = /[xy]/g;
|
|
1819
|
-
function _legacyCookieMgr(config, logger) {
|
|
1820
|
-
var cookieMgr = _gblCookieMgr(config, logger);
|
|
1821
|
-
var legacyCanUseCookies = CoreUtils._canUseCookies;
|
|
1822
|
-
if (_cookieMgrs === null) {
|
|
1823
|
-
_cookieMgrs = [];
|
|
1824
|
-
_canUseCookies = legacyCanUseCookies;
|
|
1825
|
-
objDefineAccessors(CoreUtils, "_canUseCookies", function () {
|
|
1826
|
-
return _canUseCookies;
|
|
1827
|
-
}, function (value) {
|
|
1828
|
-
_canUseCookies = value;
|
|
1829
|
-
arrForEach(_cookieMgrs, function (mgr) {
|
|
1830
|
-
mgr[_DYN_SET_ENABLED ](value);
|
|
1831
|
-
});
|
|
1832
|
-
});
|
|
1833
|
-
}
|
|
1834
|
-
if (arrIndexOf(_cookieMgrs, cookieMgr) === -1) {
|
|
1835
|
-
_cookieMgrs[_DYN_PUSH$1 ](cookieMgr);
|
|
1836
|
-
}
|
|
1837
|
-
if (isBoolean(legacyCanUseCookies)) {
|
|
1838
|
-
cookieMgr[_DYN_SET_ENABLED ](legacyCanUseCookies);
|
|
1839
|
-
}
|
|
1840
|
-
if (isBoolean(_canUseCookies)) {
|
|
1841
|
-
cookieMgr[_DYN_SET_ENABLED ](_canUseCookies);
|
|
1842
|
-
}
|
|
1843
|
-
return cookieMgr;
|
|
1844
|
-
}
|
|
1845
|
-
function disableCookies() {
|
|
1846
|
-
_legacyCookieMgr()[_DYN_SET_ENABLED ](false);
|
|
1847
|
-
}
|
|
1848
|
-
function canUseCookies(logger) {
|
|
1849
|
-
return _legacyCookieMgr(null, logger).isEnabled();
|
|
1850
|
-
}
|
|
1851
|
-
function getCookie(logger, name) {
|
|
1852
|
-
return _legacyCookieMgr(null, logger).get(name);
|
|
1853
|
-
}
|
|
1854
|
-
function setCookie(logger, name, value, domain) {
|
|
1855
|
-
_legacyCookieMgr(null, logger).set(name, value, null, domain);
|
|
1856
|
-
}
|
|
1857
|
-
function deleteCookie(logger, name) {
|
|
1858
|
-
return _legacyCookieMgr(null, logger).del(name);
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
1275
|
var pluginStateData = createElmNodeData("plugin");
|
|
1862
1276
|
function _getPluginState(plugin) {
|
|
1863
1277
|
return pluginStateData.get(plugin, "state", {}, true);
|
|
@@ -1927,7 +1341,7 @@
|
|
|
1927
1341
|
_nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT ]() : null;
|
|
1928
1342
|
if (!nextProxy) {
|
|
1929
1343
|
var onComplete = _onComplete;
|
|
1930
|
-
if (onComplete && onComplete[_DYN_LENGTH$
|
|
1344
|
+
if (onComplete && onComplete[_DYN_LENGTH$1 ] > 0) {
|
|
1931
1345
|
arrForEach(onComplete, function (completeDetails) {
|
|
1932
1346
|
try {
|
|
1933
1347
|
completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
|
|
@@ -2059,7 +1473,7 @@
|
|
|
2059
1473
|
function createTelemetryProxyChain(plugins, config, core, startAt) {
|
|
2060
1474
|
var firstProxy = null;
|
|
2061
1475
|
var add = startAt ? false : true;
|
|
2062
|
-
if (isArray(plugins) && plugins[_DYN_LENGTH$
|
|
1476
|
+
if (isArray(plugins) && plugins[_DYN_LENGTH$1 ] > 0) {
|
|
2063
1477
|
var lastProxy_1 = null;
|
|
2064
1478
|
arrForEach(plugins, function (thePlugin) {
|
|
2065
1479
|
if (!add && startAt === thePlugin) {
|
|
@@ -2392,7 +1806,7 @@
|
|
|
2392
1806
|
];
|
|
2393
1807
|
function _arrLoop(arr, fn) {
|
|
2394
1808
|
if (arr) {
|
|
2395
|
-
for (var lp = 0; lp < arr[_DYN_LENGTH$
|
|
1809
|
+
for (var lp = 0; lp < arr[_DYN_LENGTH$1 ]; lp++) {
|
|
2396
1810
|
if (fn(arr[lp], lp)) {
|
|
2397
1811
|
break;
|
|
2398
1812
|
}
|
|
@@ -2445,7 +1859,7 @@
|
|
|
2445
1859
|
_a);
|
|
2446
1860
|
var hookCtx = [];
|
|
2447
1861
|
var cbArgs = _createArgs([funcArgs], orgArgs);
|
|
2448
|
-
funcArgs.evt =
|
|
1862
|
+
funcArgs.evt = getInst("event");
|
|
2449
1863
|
function _createArgs(target, theArgs) {
|
|
2450
1864
|
_arrLoop(theArgs, function (arg) {
|
|
2451
1865
|
target[_DYN_PUSH$1 ](arg);
|
|
@@ -2476,7 +1890,7 @@
|
|
|
2476
1890
|
function _getOwner(target, name, checkPrototype) {
|
|
2477
1891
|
var owner = null;
|
|
2478
1892
|
if (target) {
|
|
2479
|
-
if (
|
|
1893
|
+
if (objHasOwnProperty(target, name)) {
|
|
2480
1894
|
owner = target;
|
|
2481
1895
|
}
|
|
2482
1896
|
else if (checkPrototype) {
|
|
@@ -2544,7 +1958,7 @@
|
|
|
2544
1958
|
var _DYN_STOP_PROPAGATION = "stopPropagation";
|
|
2545
1959
|
var _DYN_IS_DISPLAYED = "isDisplayed";
|
|
2546
1960
|
var _DYN_NAME = "name";
|
|
2547
|
-
var _DYN_LENGTH
|
|
1961
|
+
var _DYN_LENGTH = "length";
|
|
2548
1962
|
var _DYN_SHOW_CHILDREN = "showChildren";
|
|
2549
1963
|
var _DYN_DUMP_TO_CONSOLE = "dumpToConsole";
|
|
2550
1964
|
var _DYN_LOG_PROCESS_TELEMETR2 = "logProcessTelemetry";
|
|
@@ -2568,275 +1982,13 @@
|
|
|
2568
1982
|
var _DYN_FOCUS = "focus";
|
|
2569
1983
|
var _DYN_REPLACE = "replace";
|
|
2570
1984
|
var _DYN_SUBSTRING = "substring";
|
|
2571
|
-
var _DYN_TO_STRING$1 = "toString";
|
|
2572
|
-
var _DYN_IS_ERROR = "isError";
|
|
2573
|
-
|
|
2574
|
-
var DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
|
|
2575
|
-
var DEFAULT_BREEZE_PATH = "/v2/track";
|
|
2576
|
-
var strNotSpecified = "not_specified";
|
|
2577
|
-
|
|
2578
|
-
function createDomEvent(eventName) {
|
|
2579
|
-
var event = null;
|
|
2580
|
-
if (isFunction(Event)) {
|
|
2581
|
-
event = new Event(eventName);
|
|
2582
|
-
}
|
|
2583
|
-
else {
|
|
2584
|
-
var doc = getDocument();
|
|
2585
|
-
if (doc && doc.createEvent) {
|
|
2586
|
-
event = doc.createEvent("Event");
|
|
2587
|
-
event.initEvent(eventName, true, true);
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
return event;
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
var _DYN_LENGTH = "length";
|
|
2594
|
-
var _DYN_TO_LOWER_CASE = "toLowerCase";
|
|
2595
1985
|
var _DYN_TO_STRING = "toString";
|
|
2596
|
-
var _DYN_REMOVE_ITEM = "removeItem";
|
|
2597
|
-
|
|
2598
|
-
var strEmpty = "";
|
|
2599
|
-
function stringToBoolOrDefault(str, defaultValue) {
|
|
2600
|
-
if (defaultValue === void 0) { defaultValue = false; }
|
|
2601
|
-
if (str === undefined || str === null) {
|
|
2602
|
-
return defaultValue;
|
|
2603
|
-
}
|
|
2604
|
-
return str.toString()[_DYN_TO_LOWER_CASE ]() === "true";
|
|
2605
|
-
}
|
|
2606
|
-
function msToTimeSpan(totalms) {
|
|
2607
|
-
if (isNaN(totalms) || totalms < 0) {
|
|
2608
|
-
totalms = 0;
|
|
2609
|
-
}
|
|
2610
|
-
totalms = Math.round(totalms);
|
|
2611
|
-
var ms = strEmpty + totalms % 1000;
|
|
2612
|
-
var sec = strEmpty + Math.floor(totalms / 1000) % 60;
|
|
2613
|
-
var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
|
|
2614
|
-
var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
|
|
2615
|
-
var days = Math.floor(totalms / (1000 * 60 * 60 * 24));
|
|
2616
|
-
ms = ms[_DYN_LENGTH ] === 1 ? "00" + ms : ms[_DYN_LENGTH ] === 2 ? "0" + ms : ms;
|
|
2617
|
-
sec = sec[_DYN_LENGTH ] < 2 ? "0" + sec : sec;
|
|
2618
|
-
min = min[_DYN_LENGTH ] < 2 ? "0" + min : min;
|
|
2619
|
-
hour = hour[_DYN_LENGTH ] < 2 ? "0" + hour : hour;
|
|
2620
|
-
return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
|
|
2621
|
-
}
|
|
2622
|
-
function getExtensionByName(extensions, identifier) {
|
|
2623
|
-
var extension = null;
|
|
2624
|
-
arrForEach(extensions, function (value) {
|
|
2625
|
-
if (value.identifier === identifier) {
|
|
2626
|
-
extension = value;
|
|
2627
|
-
return -1;
|
|
2628
|
-
}
|
|
2629
|
-
});
|
|
2630
|
-
return extension;
|
|
2631
|
-
}
|
|
2632
|
-
function isCrossOriginError(message, url, lineNumber, columnNumber, error) {
|
|
2633
|
-
return !error && isString(message) && (message === "Script error." || message === "Script error");
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
var StorageType = createEnumStyle({
|
|
2637
|
-
LocalStorage: 0 ,
|
|
2638
|
-
SessionStorage: 1
|
|
2639
|
-
});
|
|
2640
|
-
createEnumStyle({
|
|
2641
|
-
AI: 0 ,
|
|
2642
|
-
AI_AND_W3C: 1 ,
|
|
2643
|
-
W3C: 2
|
|
2644
|
-
});
|
|
2645
|
-
|
|
2646
|
-
var _canUseLocalStorage = undefined;
|
|
2647
|
-
var _canUseSessionStorage = undefined;
|
|
2648
|
-
function _getLocalStorageObject() {
|
|
2649
|
-
if (utlCanUseLocalStorage()) {
|
|
2650
|
-
return _getVerifiedStorageObject(StorageType.LocalStorage);
|
|
2651
|
-
}
|
|
2652
|
-
return null;
|
|
2653
|
-
}
|
|
2654
|
-
function _getVerifiedStorageObject(storageType) {
|
|
2655
|
-
try {
|
|
2656
|
-
if (isNullOrUndefined(getGlobal())) {
|
|
2657
|
-
return null;
|
|
2658
|
-
}
|
|
2659
|
-
var uid = (new Date)[_DYN_TO_STRING ]();
|
|
2660
|
-
var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
|
|
2661
|
-
storage.setItem(uid, uid);
|
|
2662
|
-
var fail = storage.getItem(uid) !== uid;
|
|
2663
|
-
storage[_DYN_REMOVE_ITEM ](uid);
|
|
2664
|
-
if (!fail) {
|
|
2665
|
-
return storage;
|
|
2666
|
-
}
|
|
2667
|
-
}
|
|
2668
|
-
catch (exception) {
|
|
2669
|
-
}
|
|
2670
|
-
return null;
|
|
2671
|
-
}
|
|
2672
|
-
function _getSessionStorageObject() {
|
|
2673
|
-
if (utlCanUseSessionStorage()) {
|
|
2674
|
-
return _getVerifiedStorageObject(StorageType.SessionStorage);
|
|
2675
|
-
}
|
|
2676
|
-
return null;
|
|
2677
|
-
}
|
|
2678
|
-
function utlDisableStorage() {
|
|
2679
|
-
_canUseLocalStorage = false;
|
|
2680
|
-
_canUseSessionStorage = false;
|
|
2681
|
-
}
|
|
2682
|
-
function utlCanUseLocalStorage(reset) {
|
|
2683
|
-
if (reset || _canUseLocalStorage === undefined) {
|
|
2684
|
-
_canUseLocalStorage = !!_getVerifiedStorageObject(StorageType.LocalStorage);
|
|
2685
|
-
}
|
|
2686
|
-
return _canUseLocalStorage;
|
|
2687
|
-
}
|
|
2688
|
-
function utlGetLocalStorage(logger, name) {
|
|
2689
|
-
var storage = _getLocalStorageObject();
|
|
2690
|
-
if (storage !== null) {
|
|
2691
|
-
try {
|
|
2692
|
-
return storage.getItem(name);
|
|
2693
|
-
}
|
|
2694
|
-
catch (e) {
|
|
2695
|
-
_canUseLocalStorage = false;
|
|
2696
|
-
_throwInternal(logger, 2 , 1 , "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
return null;
|
|
2700
|
-
}
|
|
2701
|
-
function utlSetLocalStorage(logger, name, data) {
|
|
2702
|
-
var storage = _getLocalStorageObject();
|
|
2703
|
-
if (storage !== null) {
|
|
2704
|
-
try {
|
|
2705
|
-
storage.setItem(name, data);
|
|
2706
|
-
return true;
|
|
2707
|
-
}
|
|
2708
|
-
catch (e) {
|
|
2709
|
-
_canUseLocalStorage = false;
|
|
2710
|
-
_throwInternal(logger, 2 , 3 , "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2711
|
-
}
|
|
2712
|
-
}
|
|
2713
|
-
return false;
|
|
2714
|
-
}
|
|
2715
|
-
function utlRemoveStorage(logger, name) {
|
|
2716
|
-
var storage = _getLocalStorageObject();
|
|
2717
|
-
if (storage !== null) {
|
|
2718
|
-
try {
|
|
2719
|
-
storage[_DYN_REMOVE_ITEM ](name);
|
|
2720
|
-
return true;
|
|
2721
|
-
}
|
|
2722
|
-
catch (e) {
|
|
2723
|
-
_canUseLocalStorage = false;
|
|
2724
|
-
_throwInternal(logger, 2 , 5 , "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
return false;
|
|
2728
|
-
}
|
|
2729
|
-
function utlCanUseSessionStorage(reset) {
|
|
2730
|
-
if (reset || _canUseSessionStorage === undefined) {
|
|
2731
|
-
_canUseSessionStorage = !!_getVerifiedStorageObject(StorageType.SessionStorage);
|
|
2732
|
-
}
|
|
2733
|
-
return _canUseSessionStorage;
|
|
2734
|
-
}
|
|
2735
|
-
function utlGetSessionStorageKeys() {
|
|
2736
|
-
var keys = [];
|
|
2737
|
-
if (utlCanUseSessionStorage()) {
|
|
2738
|
-
objForEachKey(getGlobalInst("sessionStorage"), function (key) {
|
|
2739
|
-
keys.push(key);
|
|
2740
|
-
});
|
|
2741
|
-
}
|
|
2742
|
-
return keys;
|
|
2743
|
-
}
|
|
2744
|
-
function utlGetSessionStorage(logger, name) {
|
|
2745
|
-
var storage = _getSessionStorageObject();
|
|
2746
|
-
if (storage !== null) {
|
|
2747
|
-
try {
|
|
2748
|
-
return storage.getItem(name);
|
|
2749
|
-
}
|
|
2750
|
-
catch (e) {
|
|
2751
|
-
_canUseSessionStorage = false;
|
|
2752
|
-
_throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
return null;
|
|
2756
|
-
}
|
|
2757
|
-
function utlSetSessionStorage(logger, name, data) {
|
|
2758
|
-
var storage = _getSessionStorageObject();
|
|
2759
|
-
if (storage !== null) {
|
|
2760
|
-
try {
|
|
2761
|
-
storage.setItem(name, data);
|
|
2762
|
-
return true;
|
|
2763
|
-
}
|
|
2764
|
-
catch (e) {
|
|
2765
|
-
_canUseSessionStorage = false;
|
|
2766
|
-
_throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
return false;
|
|
2770
|
-
}
|
|
2771
|
-
function utlRemoveSessionStorage(logger, name) {
|
|
2772
|
-
var storage = _getSessionStorageObject();
|
|
2773
|
-
if (storage !== null) {
|
|
2774
|
-
try {
|
|
2775
|
-
storage[_DYN_REMOVE_ITEM ](name);
|
|
2776
|
-
return true;
|
|
2777
|
-
}
|
|
2778
|
-
catch (e) {
|
|
2779
|
-
_canUseSessionStorage = false;
|
|
2780
|
-
_throwInternal(logger, 2 , 6 , "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
|
|
2781
|
-
}
|
|
2782
|
-
}
|
|
2783
|
-
return false;
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
var _internalEndpoints = [
|
|
2787
|
-
DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH,
|
|
2788
|
-
"https://breeze.aimon.applicationinsights.io" + DEFAULT_BREEZE_PATH,
|
|
2789
|
-
"https://dc-int.services.visualstudio.com" + DEFAULT_BREEZE_PATH
|
|
2790
|
-
];
|
|
2791
|
-
function isInternalApplicationInsightsEndpoint(endpointUrl) {
|
|
2792
|
-
return arrIndexOf(_internalEndpoints, endpointUrl[_DYN_TO_LOWER_CASE ]()) !== -1;
|
|
2793
|
-
}
|
|
2794
|
-
var Util = {
|
|
2795
|
-
NotSpecified: strNotSpecified,
|
|
2796
|
-
createDomEvent: createDomEvent,
|
|
2797
|
-
disableStorage: utlDisableStorage,
|
|
2798
|
-
isInternalApplicationInsightsEndpoint: isInternalApplicationInsightsEndpoint,
|
|
2799
|
-
canUseLocalStorage: utlCanUseLocalStorage,
|
|
2800
|
-
getStorage: utlGetLocalStorage,
|
|
2801
|
-
setStorage: utlSetLocalStorage,
|
|
2802
|
-
removeStorage: utlRemoveStorage,
|
|
2803
|
-
canUseSessionStorage: utlCanUseSessionStorage,
|
|
2804
|
-
getSessionStorageKeys: utlGetSessionStorageKeys,
|
|
2805
|
-
getSessionStorage: utlGetSessionStorage,
|
|
2806
|
-
setSessionStorage: utlSetSessionStorage,
|
|
2807
|
-
removeSessionStorage: utlRemoveSessionStorage,
|
|
2808
|
-
disableCookies: disableCookies,
|
|
2809
|
-
canUseCookies: canUseCookies,
|
|
2810
|
-
disallowsSameSiteNone: uaDisallowsSameSiteNone,
|
|
2811
|
-
setCookie: setCookie,
|
|
2812
|
-
stringToBoolOrDefault: stringToBoolOrDefault,
|
|
2813
|
-
getCookie: getCookie,
|
|
2814
|
-
deleteCookie: deleteCookie,
|
|
2815
|
-
trim: strTrim,
|
|
2816
|
-
newId: newId,
|
|
2817
|
-
random32: function () {
|
|
2818
|
-
return random32(true);
|
|
2819
|
-
},
|
|
2820
|
-
generateW3CId: generateW3CId,
|
|
2821
|
-
isArray: isArray,
|
|
2822
|
-
isError: isError,
|
|
2823
|
-
isDate: isDate,
|
|
2824
|
-
toISOStringForIE8: toISOString,
|
|
2825
|
-
getIEVersion: getIEVersion,
|
|
2826
|
-
msToTimeSpan: msToTimeSpan,
|
|
2827
|
-
isCrossOriginError: isCrossOriginError,
|
|
2828
|
-
dump: dumpObj,
|
|
2829
|
-
getExceptionName: getExceptionName,
|
|
2830
|
-
addEventHandler: attachEvent,
|
|
2831
|
-
IsBeaconApiSupported: isBeaconsSupported,
|
|
2832
|
-
getExtension: getExtensionByName
|
|
2833
|
-
};
|
|
2834
1986
|
|
|
2835
1987
|
var strConstructor = "constructor";
|
|
2836
1988
|
var strGetOwnPropertyNames = "getOwnPropertyNames";
|
|
2837
1989
|
var MAX_DEPTH = 16;
|
|
2838
1990
|
function makeRegex(value) {
|
|
2839
|
-
if (value && value[_DYN_LENGTH
|
|
1991
|
+
if (value && value[_DYN_LENGTH ] > 0) {
|
|
2840
1992
|
value = value[_DYN_REPLACE ](/\\/g, "\\\\");
|
|
2841
1993
|
value = value[_DYN_REPLACE ](/([\+\?\|\{\}\[\]\(\)\^\$\#\.\=\!\:\/])/g, "\\$1");
|
|
2842
1994
|
value = value.replace(/\*/g, ".*");
|
|
@@ -2850,7 +2002,7 @@
|
|
|
2850
2002
|
el[_DYN_CLASS_NAME ] += className;
|
|
2851
2003
|
}
|
|
2852
2004
|
else {
|
|
2853
|
-
el[_DYN_CLASS_NAME ] = el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](0, idx) + el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](idx + className[_DYN_LENGTH
|
|
2005
|
+
el[_DYN_CLASS_NAME ] = el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](0, idx) + el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](idx + className[_DYN_LENGTH ]);
|
|
2854
2006
|
}
|
|
2855
2007
|
}
|
|
2856
2008
|
function traverseAndReplace(target, maxDepth, currentDepth, thingsReferenced, excludedKeys, includeFunctions) {
|
|
@@ -2863,7 +2015,7 @@
|
|
|
2863
2015
|
var key = _a[_i];
|
|
2864
2016
|
var targetValue = target[key];
|
|
2865
2017
|
if (isSymbol(targetValue)) {
|
|
2866
|
-
targetValue = targetValue[_DYN_TO_STRING
|
|
2018
|
+
targetValue = targetValue[_DYN_TO_STRING ]();
|
|
2867
2019
|
}
|
|
2868
2020
|
if (targetValue !== null && arrIndexOf(thingsReferenced, targetValue) !== -1) {
|
|
2869
2021
|
out[key] = "<circular (".concat(key, " - \"").concat(getTargetName(targetValue), "\")>");
|
|
@@ -2902,7 +2054,7 @@
|
|
|
2902
2054
|
var matchTxt = rg.exec(innerText);
|
|
2903
2055
|
if (matchTxt && matchTxt[1]) {
|
|
2904
2056
|
matchPos = theText.indexOf(matchTxt[1]);
|
|
2905
|
-
matchLen = matchTxt[1][_DYN_LENGTH
|
|
2057
|
+
matchLen = matchTxt[1][_DYN_LENGTH ];
|
|
2906
2058
|
}
|
|
2907
2059
|
}
|
|
2908
2060
|
if (matchPos !== -1) {
|
|
@@ -2998,7 +2150,7 @@
|
|
|
2998
2150
|
if (isString(target[_DYN_NAME ])) {
|
|
2999
2151
|
return target[_DYN_NAME ];
|
|
3000
2152
|
}
|
|
3001
|
-
if (
|
|
2153
|
+
if (objHasOwnProperty(target, strShimPrototype)) {
|
|
3002
2154
|
return target[_DYN_NAME ] || "";
|
|
3003
2155
|
}
|
|
3004
2156
|
return ((target[strConstructor]) || {})[_DYN_NAME ] || "";
|
|
@@ -3010,7 +2162,7 @@
|
|
|
3010
2162
|
return value;
|
|
3011
2163
|
}
|
|
3012
2164
|
if (isSymbol(value)) {
|
|
3013
|
-
return value[_DYN_TO_STRING
|
|
2165
|
+
return value[_DYN_TO_STRING ]();
|
|
3014
2166
|
}
|
|
3015
2167
|
if (isFunction(value["toString"])) {
|
|
3016
2168
|
return value["toString"]() || "";
|
|
@@ -3019,7 +2171,7 @@
|
|
|
3019
2171
|
}
|
|
3020
2172
|
function getTargetKeys(target, excludedKeys, includeFunctions) {
|
|
3021
2173
|
var keys = objKeys(target);
|
|
3022
|
-
if (!
|
|
2174
|
+
if (!isArray(target)) {
|
|
3023
2175
|
try {
|
|
3024
2176
|
if (Object[strGetOwnPropertyNames]) {
|
|
3025
2177
|
var propKeys = Object[strGetOwnPropertyNames](target);
|
|
@@ -3056,8 +2208,8 @@
|
|
|
3056
2208
|
if (!thingsReferenced) {
|
|
3057
2209
|
thingsReferenced = [];
|
|
3058
2210
|
}
|
|
3059
|
-
var isObj = isObject(target) ||
|
|
3060
|
-
var isErr = target["baseType"] === "ExceptionData" ||
|
|
2211
|
+
var isObj = isObject(target) || isError(target);
|
|
2212
|
+
var isErr = target["baseType"] === "ExceptionData" || isError(target);
|
|
3061
2213
|
var children = [];
|
|
3062
2214
|
function _openNode(currentLine) {
|
|
3063
2215
|
openState = true;
|
|
@@ -3076,7 +2228,7 @@
|
|
|
3076
2228
|
var matched = false;
|
|
3077
2229
|
var childOpened = false;
|
|
3078
2230
|
var keys = getTargetKeys(target, excludeKeys, includeFunctions);
|
|
3079
|
-
if (keys[_DYN_LENGTH
|
|
2231
|
+
if (keys[_DYN_LENGTH ] === 0) {
|
|
3080
2232
|
keys[_DYN_PUSH ]("<empty>");
|
|
3081
2233
|
}
|
|
3082
2234
|
if (level >= MAX_DEPTH) {
|
|
@@ -3089,7 +2241,7 @@
|
|
|
3089
2241
|
}
|
|
3090
2242
|
var targetValue = target[key_1];
|
|
3091
2243
|
if (isSymbol(targetValue)) {
|
|
3092
|
-
targetValue = targetValue[_DYN_TO_STRING
|
|
2244
|
+
targetValue = targetValue[_DYN_TO_STRING ]();
|
|
3093
2245
|
}
|
|
3094
2246
|
if (key_1 === "<maxdepth>") {
|
|
3095
2247
|
var builder = document[_DYN_CREATE_ELEMENT ]("div");
|
|
@@ -3110,7 +2262,7 @@
|
|
|
3110
2262
|
builder[_DYN_INNER_TEXT ] = "<circular (".concat(key_1, ") - \"").concat(getTargetName(targetValue), "\">");
|
|
3111
2263
|
children[_DYN_PUSH ](builder);
|
|
3112
2264
|
}
|
|
3113
|
-
else if (targetValue !== null && (isObject(targetValue) ||
|
|
2265
|
+
else if (targetValue !== null && (isObject(targetValue) || isError(targetValue))) {
|
|
3114
2266
|
thingsReferenced[_DYN_PUSH ](target);
|
|
3115
2267
|
var formatted = formatLogElements(targetValue, null, key_1, level + 1, textFilter, excludeKeys, thingsReferenced, includeFunctions);
|
|
3116
2268
|
thingsReferenced.pop();
|
|
@@ -3147,7 +2299,7 @@
|
|
|
3147
2299
|
outerSpan[_DYN_APPEND_CHILD ](keySpan);
|
|
3148
2300
|
var valueSpan = document[_DYN_CREATE_ELEMENT ]("span");
|
|
3149
2301
|
if (isFunction(targetValue)) {
|
|
3150
|
-
var fnStr = targetValue[_DYN_TO_STRING
|
|
2302
|
+
var fnStr = targetValue[_DYN_TO_STRING ]();
|
|
3151
2303
|
var fnHead = fnStr.match(/^([^{]+)/)[1];
|
|
3152
2304
|
valueSpan.textContent = "".concat(fnHead, "{...}");
|
|
3153
2305
|
}
|
|
@@ -3165,9 +2317,9 @@
|
|
|
3165
2317
|
var rootDiv = document[_DYN_CREATE_ELEMENT ]("div");
|
|
3166
2318
|
var innerText = "";
|
|
3167
2319
|
var currentLine = document[_DYN_CREATE_ELEMENT ]("span");
|
|
3168
|
-
if (isObj || children[_DYN_LENGTH
|
|
2320
|
+
if (isObj || children[_DYN_LENGTH ]) {
|
|
3169
2321
|
innerText = "".concat(key ? key : "obj", ": ");
|
|
3170
|
-
if (
|
|
2322
|
+
if (isArray(target)) {
|
|
3171
2323
|
innerText += "[".concat(getTargetKeys(target, excludeKeys, includeFunctions).length, "]");
|
|
3172
2324
|
}
|
|
3173
2325
|
else {
|
|
@@ -3205,7 +2357,7 @@
|
|
|
3205
2357
|
}
|
|
3206
2358
|
var openHandler_1 = function (evt, forceState) {
|
|
3207
2359
|
evt[_DYN_STOP_PROPAGATION ]();
|
|
3208
|
-
if (
|
|
2360
|
+
if (getIEVersion()) {
|
|
3209
2361
|
focusHandler(evt, target, level, excludeKeys, includeFunctions);
|
|
3210
2362
|
}
|
|
3211
2363
|
if (forceState !== undefined && openState === forceState) {
|
|
@@ -3257,16 +2409,16 @@
|
|
|
3257
2409
|
}
|
|
3258
2410
|
function _testObj(rg, value, excludedKeys, includeFunctions) {
|
|
3259
2411
|
if (value !== null && value !== undefined && value !== "") {
|
|
3260
|
-
if (
|
|
3261
|
-
for (var lp = 0; lp < value[_DYN_LENGTH
|
|
2412
|
+
if (isArray(value)) {
|
|
2413
|
+
for (var lp = 0; lp < value[_DYN_LENGTH ]; lp++) {
|
|
3262
2414
|
if (_testObj(rg, value[lp], excludedKeys, includeFunctions)) {
|
|
3263
2415
|
return true;
|
|
3264
2416
|
}
|
|
3265
2417
|
}
|
|
3266
2418
|
}
|
|
3267
|
-
else if (isObject(value) ||
|
|
2419
|
+
else if (isObject(value) || isError(value)) {
|
|
3268
2420
|
var keys = getTargetKeys(value, excludedKeys, includeFunctions);
|
|
3269
|
-
for (var lp = 0; lp < keys[_DYN_LENGTH
|
|
2421
|
+
for (var lp = 0; lp < keys[_DYN_LENGTH ]; lp++) {
|
|
3270
2422
|
var key_1 = keys[lp];
|
|
3271
2423
|
if (_testValue(rg, key_1) || _testObj(rg, value[key_1], excludedKeys, includeFunctions)) {
|
|
3272
2424
|
return true;
|
|
@@ -3299,11 +2451,11 @@
|
|
|
3299
2451
|
if (!theEl || lastTextFilter !== textFilter) {
|
|
3300
2452
|
lastTextFilter = textFilter;
|
|
3301
2453
|
var ms = "" + tm;
|
|
3302
|
-
while (ms[_DYN_LENGTH
|
|
2454
|
+
while (ms[_DYN_LENGTH ] < 4) {
|
|
3303
2455
|
ms = "0" + ms;
|
|
3304
2456
|
}
|
|
3305
2457
|
ms = ms[_DYN_REPLACE ](/(.)(\d{3}){1}$/g, "$1.$2s");
|
|
3306
|
-
while (ms[_DYN_LENGTH
|
|
2458
|
+
while (ms[_DYN_LENGTH ] <= 9) {
|
|
3307
2459
|
ms = " " + ms;
|
|
3308
2460
|
}
|
|
3309
2461
|
theEl = formatLogElements(target, "[".concat(ms, "]"), key, level, textFilter, excludeKeys, [], includeFunctions).root;
|
|
@@ -3433,23 +2585,23 @@
|
|
|
3433
2585
|
}());
|
|
3434
2586
|
|
|
3435
2587
|
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";
|
|
3436
|
-
console.log(
|
|
3437
|
-
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((
|
|
2588
|
+
console.log(getIEVersion());
|
|
2589
|
+
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
|
|
3438
2590
|
? ""
|
|
3439
|
-
: ".".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(
|
|
2591
|
+
: ".".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
|
|
3440
2592
|
? ""
|
|
3441
|
-
: ".".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(
|
|
2593
|
+
: ".".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
|
|
3442
2594
|
? ""
|
|
3443
|
-
: ".".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((
|
|
2595
|
+
: ".".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
|
|
3444
2596
|
? ""
|
|
3445
|
-
: ".".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(
|
|
2597
|
+
: ".".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
|
|
3446
2598
|
? ""
|
|
3447
2599
|
: "@media only screen and (max-width: 600px) {\n .".concat(prefix, "-dbg-lgr {\n width: 100%;\n min-width: 200px;\n }\n }"), "\n\n"); };
|
|
3448
|
-
var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(
|
|
2600
|
+
var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(getIEVersion() && getIEVersion() < 9
|
|
3449
2601
|
? "width: 100%;\n height: 100%;\n top: 0;\n left: 0;"
|
|
3450
|
-
: "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((
|
|
2602
|
+
: "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
|
|
3451
2603
|
? ""
|
|
3452
|
-
: ".".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(
|
|
2604
|
+
: ".".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
|
|
3453
2605
|
? ""
|
|
3454
2606
|
: ".".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"); };
|
|
3455
2607
|
|
|
@@ -3505,7 +2657,7 @@
|
|
|
3505
2657
|
msgTracker[_DYN_PUSH ](new LogEntry(target, tm, key, level, kind, keep));
|
|
3506
2658
|
if (msgTracker.length > config[_DYN_MAX_MESSAGES ]) {
|
|
3507
2659
|
var lp = 0;
|
|
3508
|
-
while (lp < msgTracker[_DYN_LENGTH
|
|
2660
|
+
while (lp < msgTracker[_DYN_LENGTH ]) {
|
|
3509
2661
|
var entry = msgTracker[lp];
|
|
3510
2662
|
if (!entry.isKeep()) {
|
|
3511
2663
|
var el = entry[_DYN_GET_EL ]();
|
|
@@ -3933,7 +3085,7 @@
|
|
|
3933
3085
|
funcName: funcArgs[_DYN_NAME ],
|
|
3934
3086
|
inst: funcArgs.inst
|
|
3935
3087
|
};
|
|
3936
|
-
if (orgArgs && orgArgs[_DYN_LENGTH
|
|
3088
|
+
if (orgArgs && orgArgs[_DYN_LENGTH ]) {
|
|
3937
3089
|
result.args = orgArgs;
|
|
3938
3090
|
}
|
|
3939
3091
|
if (!isUndefined(funcArgs.err)) {
|
|
@@ -3965,7 +3117,7 @@
|
|
|
3965
3117
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3966
3118
|
orgArgs[_i - 1] = arguments[_i];
|
|
3967
3119
|
}
|
|
3968
|
-
(debugBins[funcArgs.name] || debugBins
|
|
3120
|
+
(debugBins[funcArgs.name] || debugBins.default).increment();
|
|
3969
3121
|
if (funcArgs[_DYN_NAME ] === "trackException" && !debugBinParent[_DYN_SHOW_CHILDREN ]) {
|
|
3970
3122
|
debugBinParent.addClassToEl("notify");
|
|
3971
3123
|
}
|
|
@@ -4014,7 +3166,7 @@
|
|
|
4014
3166
|
|
|
4015
3167
|
exports.DebugPlugin = DebugPlugin$1;
|
|
4016
3168
|
|
|
4017
|
-
|
|
3169
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4018
3170
|
|
|
4019
3171
|
}));
|
|
4020
|
-
//# sourceMappingURL=ai.dbg.3.0.0-beta.2208-
|
|
3172
|
+
//# sourceMappingURL=ai.dbg.3.0.0-beta.2208-18.js.map
|