@microsoft/applicationinsights-debugplugin-js 2.8.5-nightly.2206-02 → 2.8.5-nightly.2206-06

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/browser/{ai.dbg.2.8.5-nightly.2206-02.cjs.js → ai.dbg.2.8.5-nightly.2206-06.cjs.js} +1095 -984
  2. package/browser/ai.dbg.2.8.5-nightly.2206-06.cjs.js.map +1 -0
  3. package/browser/ai.dbg.2.8.5-nightly.2206-06.cjs.min.js +6 -0
  4. package/browser/ai.dbg.2.8.5-nightly.2206-06.cjs.min.js.map +1 -0
  5. package/browser/{ai.dbg.2.8.5-nightly.2206-02.gbl.js → ai.dbg.2.8.5-nightly.2206-06.gbl.js} +1095 -984
  6. package/browser/ai.dbg.2.8.5-nightly.2206-06.gbl.js.map +1 -0
  7. package/browser/ai.dbg.2.8.5-nightly.2206-06.gbl.min.js +6 -0
  8. package/browser/ai.dbg.2.8.5-nightly.2206-06.gbl.min.js.map +1 -0
  9. package/browser/ai.dbg.2.8.5-nightly.2206-06.integrity.json +66 -0
  10. package/browser/{ai.dbg.2.8.5-nightly.2206-02.js → ai.dbg.2.8.5-nightly.2206-06.js} +1095 -984
  11. package/browser/ai.dbg.2.8.5-nightly.2206-06.js.map +1 -0
  12. package/browser/ai.dbg.2.8.5-nightly.2206-06.min.js +6 -0
  13. package/browser/ai.dbg.2.8.5-nightly.2206-06.min.js.map +1 -0
  14. package/browser/ai.dbg.2.cjs.js +1094 -983
  15. package/browser/ai.dbg.2.cjs.js.map +1 -1
  16. package/browser/ai.dbg.2.cjs.min.js +2 -2
  17. package/browser/ai.dbg.2.cjs.min.js.map +1 -1
  18. package/browser/ai.dbg.2.gbl.js +1094 -983
  19. package/browser/ai.dbg.2.gbl.js.map +1 -1
  20. package/browser/ai.dbg.2.gbl.min.js +2 -2
  21. package/browser/ai.dbg.2.gbl.min.js.map +1 -1
  22. package/browser/ai.dbg.2.js +1094 -983
  23. package/browser/ai.dbg.2.js.map +1 -1
  24. package/browser/ai.dbg.2.min.js +2 -2
  25. package/browser/ai.dbg.2.min.js.map +1 -1
  26. package/dist/applicationinsights-debugplugin-js.api.json +16 -6
  27. package/dist/applicationinsights-debugplugin-js.d.ts +1 -1
  28. package/dist/applicationinsights-debugplugin-js.js +1094 -983
  29. package/dist/applicationinsights-debugplugin-js.js.map +1 -1
  30. package/dist/applicationinsights-debugplugin-js.min.js +2 -2
  31. package/dist/applicationinsights-debugplugin-js.min.js.map +1 -1
  32. package/dist/applicationinsights-debugplugin-js.rollup.d.ts +1 -1
  33. package/dist-esm/DebugPlugin.js +44 -43
  34. package/dist-esm/DebugPlugin.js.map +1 -1
  35. package/dist-esm/__DynamicConstants.js +55 -0
  36. package/dist-esm/__DynamicConstants.js.map +1 -0
  37. package/dist-esm/applicationinsights-debugplugin-js.js +1 -1
  38. package/dist-esm/components/Dashboard.js +85 -79
  39. package/dist-esm/components/Dashboard.js.map +1 -1
  40. package/dist-esm/components/LogEntry.js +12 -11
  41. package/dist-esm/components/LogEntry.js.map +1 -1
  42. package/dist-esm/components/debugBins.js +46 -45
  43. package/dist-esm/components/debugBins.js.map +1 -1
  44. package/dist-esm/components/filterList.js +52 -51
  45. package/dist-esm/components/filterList.js.map +1 -1
  46. package/dist-esm/components/helpers.js +104 -103
  47. package/dist-esm/components/helpers.js.map +1 -1
  48. package/dist-esm/components/styleNodeSrc.js +2 -1
  49. package/dist-esm/components/styleNodeSrc.js.map +1 -1
  50. package/dist-esm/interfaces/IDebugPluginConfig.js +1 -1
  51. package/package.json +6 -4
  52. package/src/DebugPlugin.ts +16 -17
  53. package/src/__DynamicConstants.ts +53 -0
  54. package/src/components/Dashboard.ts +8 -8
  55. package/src/components/LogEntry.ts +5 -6
  56. package/src/components/debugBins.ts +4 -4
  57. package/src/components/filterList.ts +6 -6
  58. package/src/components/helpers.ts +10 -8
  59. package/src/components/styleNodeSrc.ts +1 -0
  60. package/types/DebugPlugin.d.ts +1 -1
  61. package/types/__DynamicConstants.d.ts +41 -0
  62. package/types/components/LogEntry.d.ts +3 -2
  63. package/types/tsdoc-metadata.json +1 -1
  64. package/browser/ai.dbg.2.8.5-nightly.2206-02.cjs.js.map +0 -1
  65. package/browser/ai.dbg.2.8.5-nightly.2206-02.cjs.min.js +0 -6
  66. package/browser/ai.dbg.2.8.5-nightly.2206-02.cjs.min.js.map +0 -1
  67. package/browser/ai.dbg.2.8.5-nightly.2206-02.gbl.js.map +0 -1
  68. package/browser/ai.dbg.2.8.5-nightly.2206-02.gbl.min.js +0 -6
  69. package/browser/ai.dbg.2.8.5-nightly.2206-02.gbl.min.js.map +0 -1
  70. package/browser/ai.dbg.2.8.5-nightly.2206-02.integrity.json +0 -66
  71. package/browser/ai.dbg.2.8.5-nightly.2206-02.js.map +0 -1
  72. package/browser/ai.dbg.2.8.5-nightly.2206-02.min.js +0 -6
  73. package/browser/ai.dbg.2.8.5-nightly.2206-02.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Debug Plugin, 2.8.5-nightly.2206-02
2
+ * Application Insights JavaScript SDK - Debug Plugin, 2.8.5-nightly.2206-06
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -83,14 +83,307 @@ function __extendsFn(d, b) {
83
83
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
84
84
  }
85
85
 
86
- var strEmpty$1 = "";
87
- var strSetNextPlugin = "setNextPlugin";
88
- var strIsInitialized = "isInitialized";
89
- var strTeardown = "teardown";
90
- var strCore = "core";
91
- var strUpdate = "update";
92
- var strDisabled = "disabled";
93
- var strDoTeardown = "_doTeardown";
86
+ /*!
87
+ * Microsoft Dynamic Proto Utility, 1.1.6
88
+ * Copyright (c) Microsoft and contributors. All rights reserved.
89
+ */
90
+ var Constructor = 'constructor';
91
+ var Prototype = 'prototype';
92
+ var strFunction = 'function';
93
+ var DynInstFuncTable = '_dynInstFuncs';
94
+ var DynProxyTag = '_isDynProxy';
95
+ var DynClassName = '_dynClass';
96
+ var DynClassNamePrefix = '_dynCls$';
97
+ var DynInstChkTag = '_dynInstChk';
98
+ var DynAllowInstChkTag = DynInstChkTag;
99
+ var DynProtoDefaultOptions = '_dfOpts';
100
+ var UnknownValue = '_unknown_';
101
+ var str__Proto$1 = "__proto__";
102
+ var DynProtoBaseProto = "_dyn" + str__Proto$1;
103
+ var DynProtoCurrent = "_dynInstProto";
104
+ var strUseBaseInst = 'useBaseInst';
105
+ var strSetInstFuncs = 'setInstFuncs';
106
+ var Obj = Object;
107
+ var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
108
+ var _objGetOwnProps = Obj["getOwnPropertyNames"];
109
+ var _dynamicNames = 0;
110
+ function _hasOwnProperty(obj, prop) {
111
+ return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
112
+ }
113
+ function _isObjectOrArrayPrototype(target) {
114
+ return target && (target === Obj[Prototype] || target === Array[Prototype]);
115
+ }
116
+ function _isObjectArrayOrFunctionPrototype(target) {
117
+ return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
118
+ }
119
+ function _getObjProto$1(target) {
120
+ var newProto;
121
+ if (target) {
122
+ if (_objGetPrototypeOf$1) {
123
+ return _objGetPrototypeOf$1(target);
124
+ }
125
+ var curProto = target[str__Proto$1] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
126
+ newProto = target[DynProtoBaseProto] || curProto;
127
+ if (!_hasOwnProperty(target, DynProtoBaseProto)) {
128
+ delete target[DynProtoCurrent];
129
+ newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
130
+ target[DynProtoCurrent] = curProto;
131
+ }
132
+ }
133
+ return newProto;
134
+ }
135
+ function _forEachProp(target, func) {
136
+ var props = [];
137
+ if (_objGetOwnProps) {
138
+ props = _objGetOwnProps(target);
139
+ }
140
+ else {
141
+ for (var name_1 in target) {
142
+ if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
143
+ props.push(name_1);
144
+ }
145
+ }
146
+ }
147
+ if (props && props.length > 0) {
148
+ for (var lp = 0; lp < props.length; lp++) {
149
+ func(props[lp]);
150
+ }
151
+ }
152
+ }
153
+ function _isDynamicCandidate(target, funcName, skipOwn) {
154
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
155
+ }
156
+ function _throwTypeError(message) {
157
+ throw new TypeError("DynamicProto: " + message);
158
+ }
159
+ function _getInstanceFuncs(thisTarget) {
160
+ var instFuncs = {};
161
+ _forEachProp(thisTarget, function (name) {
162
+ if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
163
+ instFuncs[name] = thisTarget[name];
164
+ }
165
+ });
166
+ return instFuncs;
167
+ }
168
+ function _hasVisited(values, value) {
169
+ for (var lp = values.length - 1; lp >= 0; lp--) {
170
+ if (values[lp] === value) {
171
+ return true;
172
+ }
173
+ }
174
+ return false;
175
+ }
176
+ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
177
+ function _instFuncProxy(target, funcHost, funcName) {
178
+ var theFunc = funcHost[funcName];
179
+ if (theFunc[DynProxyTag] && useBaseInst) {
180
+ var instFuncTable = target[DynInstFuncTable] || {};
181
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
182
+ theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
183
+ }
184
+ }
185
+ return function () {
186
+ return theFunc.apply(target, arguments);
187
+ };
188
+ }
189
+ var baseFuncs = {};
190
+ _forEachProp(instFuncs, function (name) {
191
+ baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
192
+ });
193
+ var baseProto = _getObjProto$1(classProto);
194
+ var visited = [];
195
+ while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
196
+ _forEachProp(baseProto, function (name) {
197
+ if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf$1)) {
198
+ baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
199
+ }
200
+ });
201
+ visited.push(baseProto);
202
+ baseProto = _getObjProto$1(baseProto);
203
+ }
204
+ return baseFuncs;
205
+ }
206
+ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
207
+ var instFunc = null;
208
+ if (target && _hasOwnProperty(proto, DynClassName)) {
209
+ var instFuncTable = target[DynInstFuncTable] || {};
210
+ instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
211
+ if (!instFunc) {
212
+ _throwTypeError("Missing [" + funcName + "] " + strFunction);
213
+ }
214
+ if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
215
+ var canAddInst = !_hasOwnProperty(target, funcName);
216
+ var objProto = _getObjProto$1(target);
217
+ var visited = [];
218
+ while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
219
+ var protoFunc = objProto[funcName];
220
+ if (protoFunc) {
221
+ canAddInst = (protoFunc === currentDynProtoProxy);
222
+ break;
223
+ }
224
+ visited.push(objProto);
225
+ objProto = _getObjProto$1(objProto);
226
+ }
227
+ try {
228
+ if (canAddInst) {
229
+ target[funcName] = instFunc;
230
+ }
231
+ instFunc[DynInstChkTag] = 1;
232
+ }
233
+ catch (e) {
234
+ instFuncTable[DynAllowInstChkTag] = false;
235
+ }
236
+ }
237
+ }
238
+ return instFunc;
239
+ }
240
+ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
241
+ var protoFunc = proto[funcName];
242
+ if (protoFunc === currentDynProtoProxy) {
243
+ protoFunc = _getObjProto$1(proto)[funcName];
244
+ }
245
+ if (typeof protoFunc !== strFunction) {
246
+ _throwTypeError("[" + funcName + "] is not a " + strFunction);
247
+ }
248
+ return protoFunc;
249
+ }
250
+ function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
251
+ function _createDynamicPrototype(proto, funcName) {
252
+ var dynProtoProxy = function () {
253
+ var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
254
+ return instFunc.apply(this, arguments);
255
+ };
256
+ dynProtoProxy[DynProxyTag] = 1;
257
+ return dynProtoProxy;
258
+ }
259
+ if (!_isObjectOrArrayPrototype(proto)) {
260
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
261
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
262
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
263
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
264
+ }
265
+ _forEachProp(target, function (name) {
266
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
267
+ instFuncs_1[name] = target[name];
268
+ delete target[name];
269
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
270
+ proto[name] = _createDynamicPrototype(proto, name);
271
+ }
272
+ }
273
+ });
274
+ }
275
+ }
276
+ function _checkPrototype(classProto, thisTarget) {
277
+ if (_objGetPrototypeOf$1) {
278
+ var visited = [];
279
+ var thisProto = _getObjProto$1(thisTarget);
280
+ while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
281
+ if (thisProto === classProto) {
282
+ return true;
283
+ }
284
+ visited.push(thisProto);
285
+ thisProto = _getObjProto$1(thisProto);
286
+ }
287
+ return false;
288
+ }
289
+ return true;
290
+ }
291
+ function _getObjName(target, unknownValue) {
292
+ if (_hasOwnProperty(target, Prototype)) {
293
+ return target.name || unknownValue || UnknownValue;
294
+ }
295
+ return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
296
+ }
297
+ function dynamicProto(theClass, target, delegateFunc, options) {
298
+ if (!_hasOwnProperty(theClass, Prototype)) {
299
+ _throwTypeError("theClass is an invalid class definition.");
300
+ }
301
+ var classProto = theClass[Prototype];
302
+ if (!_checkPrototype(classProto, target)) {
303
+ _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
304
+ }
305
+ var className = null;
306
+ if (_hasOwnProperty(classProto, DynClassName)) {
307
+ className = classProto[DynClassName];
308
+ }
309
+ else {
310
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
311
+ _dynamicNames++;
312
+ classProto[DynClassName] = className;
313
+ }
314
+ var perfOptions = dynamicProto[DynProtoDefaultOptions];
315
+ var useBaseInst = !!perfOptions[strUseBaseInst];
316
+ if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
317
+ useBaseInst = !!options[strUseBaseInst];
318
+ }
319
+ var instFuncs = _getInstanceFuncs(target);
320
+ var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
321
+ delegateFunc(target, baseFuncs);
322
+ var setInstanceFunc = !!_objGetPrototypeOf$1 && !!perfOptions[strSetInstFuncs];
323
+ if (setInstanceFunc && options) {
324
+ setInstanceFunc = !!options[strSetInstFuncs];
325
+ }
326
+ _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
327
+ }
328
+ var perfDefaults = {
329
+ setInstFuncs: true,
330
+ useBaseInst: true
331
+ };
332
+ dynamicProto[DynProtoDefaultOptions] = perfDefaults;
333
+
334
+ var _DYN_INITIALIZE = "initialize";
335
+ var _DYN_NAME$1 = "name";
336
+ var _DYN_IDENTIFIER$1 = "identifier";
337
+ var _DYN_PUSH$1 = "push";
338
+ var _DYN_IS_INITIALIZED = "isInitialized";
339
+ var _DYN_CONFIG = "config";
340
+ var _DYN_LOGGER = "logger";
341
+ var _DYN_LENGTH$2 = "length";
342
+ var _DYN_TIME = "time";
343
+ var _DYN_PROCESS_NEXT = "processNext";
344
+ var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
345
+ var _DYN_GET_PLUGIN = "getPlugin";
346
+ var _DYN_SPLICE = "splice";
347
+ var _DYN_TEARDOWN = "teardown";
348
+ var _DYN_MESSAGE_ID = "messageId";
349
+ var _DYN_MESSAGE = "message";
350
+ var _DYN_IS_ASYNC = "isAsync";
351
+ var _DYN__DO_TEARDOWN = "_doTeardown";
352
+ var _DYN_UPDATE = "update";
353
+ var _DYN_GET_NEXT = "getNext";
354
+ var _DYN_DIAG_LOG = "diagLog";
355
+ var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
356
+ var _DYN_CREATE_NEW = "createNew";
357
+ var _DYN_COOKIE_CFG = "cookieCfg";
358
+ var _DYN_INDEX_OF = "indexOf";
359
+ var _DYN_SUBSTRING$1 = "substring";
360
+ var _DYN_USER_AGENT = "userAgent";
361
+ var _DYN_SPLIT = "split";
362
+ var _DYN_SET_ENABLED = "setEnabled";
363
+ var _DYN_REPLACE$1 = "replace";
364
+ var _DYN_SUBSTR = "substr";
365
+ var _DYN_NODE_TYPE = "nodeType";
366
+ var _DYN_APPLY = "apply";
367
+ var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
368
+ var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
369
+ var _DYN_TO_LOWER_CASE$1 = "toLowerCase";
370
+ var _DYN_CALL = "call";
371
+ var _DYN_TYPE = "type";
372
+ var _DYN_HANDLER = "handler";
373
+ var _DYN_IS_CHILD_EVT = "isChildEvt";
374
+ var _DYN_GET_CTX = "getCtx";
375
+ var _DYN_SET_CTX = "setCtx";
376
+ var _DYN_COMPLETE = "complete";
377
+
378
+ var STR_EMPTY = "";
379
+ var STR_CORE = "core";
380
+ var STR_DISABLED = "disabled";
381
+ var STR_EXTENSION_CONFIG = "extensionConfig";
382
+ var STR_PROCESS_TELEMETRY = "processTelemetry";
383
+ var STR_PRIORITY = "priority";
384
+ var STR_ERROR_TO_CONSOLE = "errorToConsole";
385
+ var STR_WARN_TO_CONSOLE = "warnToConsole";
386
+ var STR_GET_PERF_MGR = "getPerfMgr";
94
387
 
95
388
  var strToISOString = "toISOString";
96
389
  var cStrEndsWith = "endsWith";
@@ -99,7 +392,7 @@ var strMap = "map";
99
392
  var strReduce = "reduce";
100
393
  var cStrTrim = "trim";
101
394
  var strToString = "toString";
102
- var str__Proto$1 = "__proto__";
395
+ var str__Proto = "__proto__";
103
396
  var strConstructor$1 = "constructor";
104
397
  var _objDefineProperty$1 = ObjDefineProperty;
105
398
  var _objFreeze = ObjClass.freeze;
@@ -112,17 +405,17 @@ var _dataToISOString = DateProto[strToISOString];
112
405
  var _isArray = Array.isArray;
113
406
  var _objToString = ObjProto[strToString];
114
407
  var _fnToString = ObjHasOwnProperty[strToString];
115
- var _objFunctionString = _fnToString.call(ObjClass);
408
+ var _objFunctionString = _fnToString[_DYN_CALL ](ObjClass);
116
409
  var rCamelCase = /-([a-z])/g;
117
410
  var rNormalizeInvalid = /([^\w\d_$])/g;
118
411
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
119
- var _objGetPrototypeOf$1 = Object["getPrototypeOf"];
120
- function _getObjProto$1(target) {
412
+ var _objGetPrototypeOf = Object["getPrototypeOf"];
413
+ function _getObjProto(target) {
121
414
  if (target) {
122
- if (_objGetPrototypeOf$1) {
123
- return _objGetPrototypeOf$1(target);
415
+ if (_objGetPrototypeOf) {
416
+ return _objGetPrototypeOf(target);
124
417
  }
125
- var newProto = target[str__Proto$1] || target[strShimPrototype] || target[strConstructor$1];
418
+ var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor$1];
126
419
  if (newProto) {
127
420
  return newProto;
128
421
  }
@@ -130,7 +423,7 @@ function _getObjProto$1(target) {
130
423
  return null;
131
424
  }
132
425
  function objToString(obj) {
133
- return _objToString.call(obj);
426
+ return _objToString[_DYN_CALL ](obj);
134
427
  }
135
428
  function isTypeof(value, theType) {
136
429
  return typeof value === theType;
@@ -145,7 +438,7 @@ function isNotNullOrUndefined(value) {
145
438
  return !isNullOrUndefined(value);
146
439
  }
147
440
  function hasOwnProperty(obj, prop) {
148
- return !!(obj && ObjHasOwnProperty.call(obj, prop));
441
+ return !!(obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop));
149
442
  }
150
443
  function isObject(value) {
151
444
  return !!(value && typeof value === strShimObject);
@@ -156,11 +449,11 @@ function isFunction(value) {
156
449
  function normalizeJsName(name) {
157
450
  var value = name;
158
451
  if (value && isString(value)) {
159
- value = value.replace(rCamelCase, function (_all, letter) {
452
+ value = value[_DYN_REPLACE$1 ](rCamelCase, function (_all, letter) {
160
453
  return letter.toUpperCase();
161
454
  });
162
- value = value.replace(rNormalizeInvalid, "_");
163
- value = value.replace(rLeadingNumeric, function (_all, match) {
455
+ value = value[_DYN_REPLACE$1 ](rNormalizeInvalid, "_");
456
+ value = value[_DYN_REPLACE$1 ](rLeadingNumeric, function (_all, match) {
164
457
  return "_" + match;
165
458
  });
166
459
  }
@@ -169,8 +462,8 @@ function normalizeJsName(name) {
169
462
  function objForEachKey(target, callbackfn) {
170
463
  if (target) {
171
464
  for (var prop in target) {
172
- if (ObjHasOwnProperty.call(target, prop)) {
173
- callbackfn.call(target, prop, target[prop]);
465
+ if (ObjHasOwnProperty[_DYN_CALL ](target, prop)) {
466
+ callbackfn[_DYN_CALL ](target, prop, target[prop]);
174
467
  }
175
468
  }
176
469
  }
@@ -184,8 +477,8 @@ function strEndsWith(value, search) {
184
477
  }
185
478
  function _strEndsWithPoly(value, search) {
186
479
  var result = false;
187
- var searchLen = search ? search.length : 0;
188
- var valLen = value ? value.length : 0;
480
+ var searchLen = search ? search[_DYN_LENGTH$2 ] : 0;
481
+ var valLen = value ? value[_DYN_LENGTH$2 ] : 0;
189
482
  if (searchLen && valLen && valLen >= searchLen && !(result = value === search)) {
190
483
  var pos = valLen - 1;
191
484
  for (var lp = searchLen - 1; lp >= 0; lp--) {
@@ -200,19 +493,19 @@ function _strEndsWithPoly(value, search) {
200
493
  }
201
494
  function strContains(value, search) {
202
495
  if (value && search) {
203
- return value.indexOf(search) !== -1;
496
+ return value[_DYN_INDEX_OF ](search) !== -1;
204
497
  }
205
498
  return false;
206
499
  }
207
500
  function isDate(obj) {
208
- return !!(obj && _objToString.call(obj) === "[object Date]");
501
+ return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Date]");
209
502
  }
210
503
  var isArray = _isArray || _isArrayPoly;
211
504
  function _isArrayPoly(obj) {
212
- return !!(obj && _objToString.call(obj) === "[object Array]");
505
+ return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Array]");
213
506
  }
214
507
  function isError(obj) {
215
- return !!(obj && _objToString.call(obj) === "[object Error]");
508
+ return !!(obj && _objToString[_DYN_CALL ](obj) === "[object Error]");
216
509
  }
217
510
  function isString(value) {
218
511
  return typeof value === "string";
@@ -229,15 +522,15 @@ function isSymbol(value) {
229
522
  function isPlainObject(value) {
230
523
  var result = false;
231
524
  if (value && typeof value === "object") {
232
- var proto = _objGetPrototypeOf$1 ? _objGetPrototypeOf$1(value) : _getObjProto$1(value);
525
+ var proto = _objGetPrototypeOf ? _objGetPrototypeOf(value) : _getObjProto(value);
233
526
  if (!proto) {
234
527
  result = true;
235
528
  }
236
529
  else {
237
- if (proto[strConstructor$1] && ObjHasOwnProperty.call(proto, strConstructor$1)) {
530
+ if (proto[strConstructor$1] && ObjHasOwnProperty[_DYN_CALL ](proto, strConstructor$1)) {
238
531
  proto = proto[strConstructor$1];
239
532
  }
240
- result = typeof proto === strShimFunction && _fnToString.call(proto) === _objFunctionString;
533
+ result = typeof proto === strShimFunction && _fnToString[_DYN_CALL ](proto) === _objFunctionString;
241
534
  }
242
535
  }
243
536
  return result;
@@ -251,7 +544,7 @@ function _toISOStringPoly(date) {
251
544
  if (date && date.getUTCFullYear) {
252
545
  var pad = function (num) {
253
546
  var r = String(num);
254
- if (r.length === 1) {
547
+ if (r[_DYN_LENGTH$2 ] === 1) {
255
548
  r = "0" + r;
256
549
  }
257
550
  return r;
@@ -267,11 +560,11 @@ function _toISOStringPoly(date) {
267
560
  }
268
561
  }
269
562
  function arrForEach(arr, callbackfn, thisArg) {
270
- var len = arr.length;
563
+ var len = arr[_DYN_LENGTH$2 ];
271
564
  try {
272
565
  for (var idx = 0; idx < len; idx++) {
273
566
  if (idx in arr) {
274
- if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
567
+ if (callbackfn[_DYN_CALL ](thisArg || arr, arr[idx], idx, arr) === -1) {
275
568
  break;
276
569
  }
277
570
  }
@@ -285,7 +578,7 @@ function arrIndexOf(arr, searchElement, fromIndex) {
285
578
  if (arr[strIndexOf]) {
286
579
  return arr[strIndexOf](searchElement, fromIndex);
287
580
  }
288
- var len = arr.length;
581
+ var len = arr[_DYN_LENGTH$2 ];
289
582
  var from = fromIndex || 0;
290
583
  try {
291
584
  for (var lp = Math.max(from >= 0 ? from : len - Math.abs(from), 0); lp < len; lp++) {
@@ -305,13 +598,13 @@ function arrMap(arr, callbackfn, thisArg) {
305
598
  if (arr[strMap]) {
306
599
  return arr[strMap](callbackfn, thisArg);
307
600
  }
308
- var len = arr.length;
601
+ var len = arr[_DYN_LENGTH$2 ];
309
602
  var _this = thisArg || arr;
310
603
  results = new Array(len);
311
604
  try {
312
605
  for (var lp = 0; lp < len; lp++) {
313
606
  if (lp in arr) {
314
- results[lp] = callbackfn.call(_this, arr[lp], arr);
607
+ results[lp] = callbackfn[_DYN_CALL ](_this, arr[lp], arr);
315
608
  }
316
609
  }
317
610
  }
@@ -326,9 +619,9 @@ function arrReduce(arr, callbackfn, initialValue) {
326
619
  if (arr[strReduce]) {
327
620
  return arr[strReduce](callbackfn, initialValue);
328
621
  }
329
- var len = arr.length;
622
+ var len = arr[_DYN_LENGTH$2 ];
330
623
  var lp = 0;
331
- if (arguments.length >= 3) {
624
+ if (arguments[_DYN_LENGTH$2 ] >= 3) {
332
625
  value = arguments[2];
333
626
  }
334
627
  else {
@@ -348,7 +641,7 @@ function arrReduce(arr, callbackfn, initialValue) {
348
641
  }
349
642
  function strTrim(str) {
350
643
  if (str) {
351
- str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str.replace ? str.replace(/^\s+|\s+$/g, "") : str);
644
+ str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE$1 ] ? str[_DYN_REPLACE$1 ](/^\s+|\s+$/g, STR_EMPTY) : str);
352
645
  }
353
646
  return str;
354
647
  }
@@ -372,15 +665,15 @@ function objKeys(obj) {
372
665
  }
373
666
  var result = [];
374
667
  for (var prop in obj) {
375
- if (obj && ObjHasOwnProperty.call(obj, prop)) {
376
- result.push(prop);
668
+ if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, prop)) {
669
+ result[_DYN_PUSH$1 ](prop);
377
670
  }
378
671
  }
379
672
  if (_objKeysHasDontEnumBug) {
380
- var dontEnumsLength = _objKeysDontEnums.length;
673
+ var dontEnumsLength = _objKeysDontEnums[_DYN_LENGTH$2 ];
381
674
  for (var lp = 0; lp < dontEnumsLength; lp++) {
382
- if (obj && ObjHasOwnProperty.call(obj, _objKeysDontEnums[lp])) {
383
- result.push(_objKeysDontEnums[lp]);
675
+ if (obj && ObjHasOwnProperty[_DYN_CALL ](obj, _objKeysDontEnums[lp])) {
676
+ result[_DYN_PUSH$1 ](_objKeysDontEnums[lp]);
384
677
  }
385
678
  }
386
679
  }
@@ -427,9 +720,9 @@ function dateNow() {
427
720
  }
428
721
  function getExceptionName(object) {
429
722
  if (isError(object)) {
430
- return object.name;
723
+ return object[_DYN_NAME$1 ];
431
724
  }
432
- return strEmpty$1;
725
+ return STR_EMPTY;
433
726
  }
434
727
  function setValue(target, field, value, valChk, srcChk) {
435
728
  var theValue = value;
@@ -442,6 +735,9 @@ function setValue(target, field, value, valChk, srcChk) {
442
735
  }
443
736
  return theValue;
444
737
  }
738
+ function getCfgValue(theValue, defaultValue) {
739
+ return !isNullOrUndefined(theValue) ? theValue : defaultValue;
740
+ }
445
741
  function isTruthy(value) {
446
742
  return !!value;
447
743
  }
@@ -460,7 +756,7 @@ function _createProxyFunction(source, funcName) {
460
756
  src = srcFunc();
461
757
  }
462
758
  if (src) {
463
- return src[funcName].apply(src, originalArguments);
759
+ return src[funcName][_DYN_APPLY ](src, originalArguments);
464
760
  }
465
761
  };
466
762
  }
@@ -474,7 +770,7 @@ function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {
474
770
  function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
475
771
  var theArgs = arguments;
476
772
  var extended = theArgs[0] || {};
477
- var argLen = theArgs.length;
773
+ var argLen = theArgs[_DYN_LENGTH$2 ];
478
774
  var deep = false;
479
775
  var idx = 1;
480
776
  if (argLen > 0 && isBoolean(extended)) {
@@ -490,7 +786,7 @@ function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
490
786
  var isArgArray = isArray(arg);
491
787
  var isArgObj = isObject(arg);
492
788
  for (var prop in arg) {
493
- var propOk = (isArgArray && (prop in arg)) || (isArgObj && (ObjHasOwnProperty.call(arg, prop)));
789
+ var propOk = (isArgArray && (prop in arg)) || (isArgObj && (ObjHasOwnProperty[_DYN_CALL ](arg, prop)));
494
790
  if (!propOk) {
495
791
  continue;
496
792
  }
@@ -504,274 +800,26 @@ function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
504
800
  }
505
801
  }
506
802
  else if (!isPlainObject(clone)) {
507
- clone = {};
508
- }
509
- newValue = objExtend(deep, clone, newValue);
510
- }
511
- if (newValue !== undefined) {
512
- extended[prop] = newValue;
513
- }
514
- }
515
- }
516
- return extended;
517
- }
518
-
519
- function createEnumStyle(values) {
520
- var enumClass = {};
521
- objForEachKey(values, function (field, value) {
522
- enumClass[field] = value;
523
- enumClass[value] = field;
524
- });
525
- return deepFreeze(enumClass);
526
- }
527
-
528
- /*!
529
- * Microsoft Dynamic Proto Utility, 1.1.6
530
- * Copyright (c) Microsoft and contributors. All rights reserved.
531
- */
532
- var Constructor = 'constructor';
533
- var Prototype = 'prototype';
534
- var strFunction = 'function';
535
- var DynInstFuncTable = '_dynInstFuncs';
536
- var DynProxyTag = '_isDynProxy';
537
- var DynClassName = '_dynClass';
538
- var DynClassNamePrefix = '_dynCls$';
539
- var DynInstChkTag = '_dynInstChk';
540
- var DynAllowInstChkTag = DynInstChkTag;
541
- var DynProtoDefaultOptions = '_dfOpts';
542
- var UnknownValue = '_unknown_';
543
- var str__Proto = "__proto__";
544
- var DynProtoBaseProto = "_dyn" + str__Proto;
545
- var DynProtoCurrent = "_dynInstProto";
546
- var strUseBaseInst = 'useBaseInst';
547
- var strSetInstFuncs = 'setInstFuncs';
548
- var Obj = Object;
549
- var _objGetPrototypeOf = Obj["getPrototypeOf"];
550
- var _objGetOwnProps = Obj["getOwnPropertyNames"];
551
- var _dynamicNames = 0;
552
- function _hasOwnProperty(obj, prop) {
553
- return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
554
- }
555
- function _isObjectOrArrayPrototype(target) {
556
- return target && (target === Obj[Prototype] || target === Array[Prototype]);
557
- }
558
- function _isObjectArrayOrFunctionPrototype(target) {
559
- return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
560
- }
561
- function _getObjProto(target) {
562
- var newProto;
563
- if (target) {
564
- if (_objGetPrototypeOf) {
565
- return _objGetPrototypeOf(target);
566
- }
567
- var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
568
- newProto = target[DynProtoBaseProto] || curProto;
569
- if (!_hasOwnProperty(target, DynProtoBaseProto)) {
570
- delete target[DynProtoCurrent];
571
- newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
572
- target[DynProtoCurrent] = curProto;
573
- }
574
- }
575
- return newProto;
576
- }
577
- function _forEachProp(target, func) {
578
- var props = [];
579
- if (_objGetOwnProps) {
580
- props = _objGetOwnProps(target);
581
- }
582
- else {
583
- for (var name_1 in target) {
584
- if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
585
- props.push(name_1);
586
- }
587
- }
588
- }
589
- if (props && props.length > 0) {
590
- for (var lp = 0; lp < props.length; lp++) {
591
- func(props[lp]);
592
- }
593
- }
594
- }
595
- function _isDynamicCandidate(target, funcName, skipOwn) {
596
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
597
- }
598
- function _throwTypeError(message) {
599
- throw new TypeError("DynamicProto: " + message);
600
- }
601
- function _getInstanceFuncs(thisTarget) {
602
- var instFuncs = {};
603
- _forEachProp(thisTarget, function (name) {
604
- if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
605
- instFuncs[name] = thisTarget[name];
606
- }
607
- });
608
- return instFuncs;
609
- }
610
- function _hasVisited(values, value) {
611
- for (var lp = values.length - 1; lp >= 0; lp--) {
612
- if (values[lp] === value) {
613
- return true;
614
- }
615
- }
616
- return false;
617
- }
618
- function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
619
- function _instFuncProxy(target, funcHost, funcName) {
620
- var theFunc = funcHost[funcName];
621
- if (theFunc[DynProxyTag] && useBaseInst) {
622
- var instFuncTable = target[DynInstFuncTable] || {};
623
- if (instFuncTable[DynAllowInstChkTag] !== false) {
624
- theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
625
- }
626
- }
627
- return function () {
628
- return theFunc.apply(target, arguments);
629
- };
630
- }
631
- var baseFuncs = {};
632
- _forEachProp(instFuncs, function (name) {
633
- baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
634
- });
635
- var baseProto = _getObjProto(classProto);
636
- var visited = [];
637
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
638
- _forEachProp(baseProto, function (name) {
639
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
640
- baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
641
- }
642
- });
643
- visited.push(baseProto);
644
- baseProto = _getObjProto(baseProto);
645
- }
646
- return baseFuncs;
647
- }
648
- function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
649
- var instFunc = null;
650
- if (target && _hasOwnProperty(proto, DynClassName)) {
651
- var instFuncTable = target[DynInstFuncTable] || {};
652
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
653
- if (!instFunc) {
654
- _throwTypeError("Missing [" + funcName + "] " + strFunction);
655
- }
656
- if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
657
- var canAddInst = !_hasOwnProperty(target, funcName);
658
- var objProto = _getObjProto(target);
659
- var visited = [];
660
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
661
- var protoFunc = objProto[funcName];
662
- if (protoFunc) {
663
- canAddInst = (protoFunc === currentDynProtoProxy);
664
- break;
665
- }
666
- visited.push(objProto);
667
- objProto = _getObjProto(objProto);
668
- }
669
- try {
670
- if (canAddInst) {
671
- target[funcName] = instFunc;
672
- }
673
- instFunc[DynInstChkTag] = 1;
674
- }
675
- catch (e) {
676
- instFuncTable[DynAllowInstChkTag] = false;
677
- }
678
- }
679
- }
680
- return instFunc;
681
- }
682
- function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
683
- var protoFunc = proto[funcName];
684
- if (protoFunc === currentDynProtoProxy) {
685
- protoFunc = _getObjProto(proto)[funcName];
686
- }
687
- if (typeof protoFunc !== strFunction) {
688
- _throwTypeError("[" + funcName + "] is not a " + strFunction);
689
- }
690
- return protoFunc;
691
- }
692
- function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
693
- function _createDynamicPrototype(proto, funcName) {
694
- var dynProtoProxy = function () {
695
- var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
696
- return instFunc.apply(this, arguments);
697
- };
698
- dynProtoProxy[DynProxyTag] = 1;
699
- return dynProtoProxy;
700
- }
701
- if (!_isObjectOrArrayPrototype(proto)) {
702
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
703
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
704
- if (instFuncTable[DynAllowInstChkTag] !== false) {
705
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
706
- }
707
- _forEachProp(target, function (name) {
708
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
709
- instFuncs_1[name] = target[name];
710
- delete target[name];
711
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
712
- proto[name] = _createDynamicPrototype(proto, name);
803
+ clone = {};
713
804
  }
805
+ newValue = objExtend(deep, clone, newValue);
714
806
  }
715
- });
716
- }
717
- }
718
- function _checkPrototype(classProto, thisTarget) {
719
- if (_objGetPrototypeOf) {
720
- var visited = [];
721
- var thisProto = _getObjProto(thisTarget);
722
- while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
723
- if (thisProto === classProto) {
724
- return true;
807
+ if (newValue !== undefined) {
808
+ extended[prop] = newValue;
725
809
  }
726
- visited.push(thisProto);
727
- thisProto = _getObjProto(thisProto);
728
810
  }
729
- return false;
730
- }
731
- return true;
732
- }
733
- function _getObjName(target, unknownValue) {
734
- if (_hasOwnProperty(target, Prototype)) {
735
- return target.name || unknownValue || UnknownValue;
736
811
  }
737
- return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
812
+ return extended;
738
813
  }
739
- function dynamicProto(theClass, target, delegateFunc, options) {
740
- if (!_hasOwnProperty(theClass, Prototype)) {
741
- _throwTypeError("theClass is an invalid class definition.");
742
- }
743
- var classProto = theClass[Prototype];
744
- if (!_checkPrototype(classProto, target)) {
745
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
746
- }
747
- var className = null;
748
- if (_hasOwnProperty(classProto, DynClassName)) {
749
- className = classProto[DynClassName];
750
- }
751
- else {
752
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
753
- _dynamicNames++;
754
- classProto[DynClassName] = className;
755
- }
756
- var perfOptions = dynamicProto[DynProtoDefaultOptions];
757
- var useBaseInst = !!perfOptions[strUseBaseInst];
758
- if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
759
- useBaseInst = !!options[strUseBaseInst];
760
- }
761
- var instFuncs = _getInstanceFuncs(target);
762
- var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
763
- delegateFunc(target, baseFuncs);
764
- var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
765
- if (setInstanceFunc && options) {
766
- setInstanceFunc = !!options[strSetInstFuncs];
767
- }
768
- _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
814
+
815
+ function createEnumStyle(values) {
816
+ var enumClass = {};
817
+ objForEachKey(values, function (field, value) {
818
+ enumClass[field] = value;
819
+ enumClass[value] = field;
820
+ });
821
+ return deepFreeze(enumClass);
769
822
  }
770
- var perfDefaults = {
771
- setInstFuncs: true,
772
- useBaseInst: true
773
- };
774
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
775
823
 
776
824
  var strWindow = "window";
777
825
  var strDocument = "document";
@@ -864,9 +912,9 @@ function getMsCrypto() {
864
912
  }
865
913
  function isIE() {
866
914
  var nav = getNavigator();
867
- if (nav && (nav.userAgent !== _navUserAgentCheck || _isTrident === null)) {
868
- _navUserAgentCheck = nav.userAgent;
869
- var userAgent = (_navUserAgentCheck || strEmpty$1).toLowerCase();
915
+ if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
916
+ _navUserAgentCheck = nav[_DYN_USER_AGENT ];
917
+ var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE$1 ]();
870
918
  _isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
871
919
  }
872
920
  return _isTrident;
@@ -875,15 +923,15 @@ function getIEVersion(userAgentStr) {
875
923
  if (userAgentStr === void 0) { userAgentStr = null; }
876
924
  if (!userAgentStr) {
877
925
  var navigator_1 = getNavigator() || {};
878
- userAgentStr = navigator_1 ? (navigator_1.userAgent || strEmpty$1).toLowerCase() : strEmpty$1;
926
+ userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT ] || STR_EMPTY)[_DYN_TO_LOWER_CASE$1 ]() : STR_EMPTY;
879
927
  }
880
- var ua = (userAgentStr || strEmpty$1).toLowerCase();
928
+ var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE$1 ]();
881
929
  if (strContains(ua, strMsie)) {
882
930
  var doc = getDocument() || {};
883
- return Math.max(parseInt(ua.split(strMsie)[1]), (doc[strDocumentMode] || 0));
931
+ return Math.max(parseInt(ua[_DYN_SPLIT ](strMsie)[1]), (doc[strDocumentMode] || 0));
884
932
  }
885
933
  else if (strContains(ua, strTrident)) {
886
- var tridentVer = parseInt(ua.split(strTrident)[1]);
934
+ var tridentVer = parseInt(ua[_DYN_SPLIT ](strTrident)[1]);
887
935
  if (tridentVer) {
888
936
  return tridentVer + 4;
889
937
  }
@@ -891,10 +939,10 @@ function getIEVersion(userAgentStr) {
891
939
  return null;
892
940
  }
893
941
  function dumpObj(object) {
894
- var objectTypeDump = Object[strShimPrototype].toString.call(object);
895
- var propertyValueDump = strEmpty$1;
942
+ var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL ](object);
943
+ var propertyValueDump = STR_EMPTY;
896
944
  if (objectTypeDump === "[object Error]") {
897
- propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
945
+ propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object[_DYN_NAME$1 ] + "'";
898
946
  }
899
947
  else if (hasJSON()) {
900
948
  propertyValueDump = getJSON().stringify(object);
@@ -927,13 +975,11 @@ function getDebugExt(config) {
927
975
  var AiNonUserActionablePrefix = "AI (Internal): ";
928
976
  var AiUserActionablePrefix = "AI: ";
929
977
  var AIInternalMessagePrefix = "AITR_";
930
- var strErrorToConsole = "errorToConsole";
931
- var strWarnToConsole = "warnToConsole";
932
978
  function _sanitizeDiagnosticText(text) {
933
979
  if (text) {
934
- return "\"" + text.replace(/\"/g, strEmpty$1) + "\"";
980
+ return "\"" + text[_DYN_REPLACE$1 ](/\"/g, STR_EMPTY) + "\"";
935
981
  }
936
- return strEmpty$1;
982
+ return STR_EMPTY;
937
983
  }
938
984
  function _logToConsole(func, message) {
939
985
  var theConsole = getConsole();
@@ -951,23 +997,23 @@ var _InternalLogMessage = /** @class */ (function () {
951
997
  function _InternalLogMessage(msgId, msg, isUserAct, properties) {
952
998
  if (isUserAct === void 0) { isUserAct = false; }
953
999
  var _self = this;
954
- _self.messageId = msgId;
955
- _self.message =
1000
+ _self[_DYN_MESSAGE_ID ] = msgId;
1001
+ _self[_DYN_MESSAGE ] =
956
1002
  (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
957
1003
  msgId;
958
- var strProps = strEmpty$1;
1004
+ var strProps = STR_EMPTY;
959
1005
  if (hasJSON()) {
960
1006
  strProps = getJSON().stringify(properties);
961
1007
  }
962
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : strEmpty$1) +
963
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : strEmpty$1);
964
- _self.message += diagnosticText;
1008
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
1009
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
1010
+ _self[_DYN_MESSAGE ] += diagnosticText;
965
1011
  }
966
1012
  _InternalLogMessage.dataType = "MessageData";
967
1013
  return _InternalLogMessage;
968
1014
  }());
969
1015
  function safeGetLogger(core, config) {
970
- return (core || {}).logger || new DiagnosticLogger(config);
1016
+ return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
971
1017
  }
972
1018
  var DiagnosticLogger = /** @class */ (function () {
973
1019
  function DiagnosticLogger(config) {
@@ -975,48 +1021,49 @@ var DiagnosticLogger = /** @class */ (function () {
975
1021
  this.queue = [];
976
1022
  var _messageCount = 0;
977
1023
  var _messageLogged = {};
1024
+ var _loggingLevelConsole;
1025
+ var _loggingLevelTelemetry;
1026
+ var _maxInternalMessageLimit;
1027
+ var _enableDebugExceptions;
978
1028
  dynamicProto(DiagnosticLogger, this, function (_self) {
979
- if (isNullOrUndefined(config)) {
980
- config = {};
981
- }
982
- _self.consoleLoggingLevel = function () { return _getConfigValue("loggingLevelConsole", 0); };
983
- _self.telemetryLoggingLevel = function () { return _getConfigValue("loggingLevelTelemetry", 1); };
984
- _self.maxInternalMessageLimit = function () { return _getConfigValue("maxMessageLimit", 25); };
985
- _self.enableDebugExceptions = function () { return _getConfigValue("enableDebugExceptions", false); };
1029
+ _setDefaultsFromConfig(config || {});
1030
+ _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
1031
+ _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
1032
+ _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
1033
+ _self[_DYN_ENABLE_DEBUG_EXCEPTI4 ] = function () { return _enableDebugExceptions; };
986
1034
  _self.throwInternal = function (severity, msgId, msg, properties, isUserAct) {
987
1035
  if (isUserAct === void 0) { isUserAct = false; }
988
1036
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
989
- if (_self.enableDebugExceptions()) {
1037
+ if (_enableDebugExceptions) {
990
1038
  throw dumpObj(message);
991
1039
  }
992
1040
  else {
993
- var logFunc = severity === 1 ? strErrorToConsole : strWarnToConsole;
994
- if (!isUndefined(message.message)) {
995
- var logLevel = _self.consoleLoggingLevel();
1041
+ var logFunc = severity === 1 ? STR_ERROR_TO_CONSOLE : STR_WARN_TO_CONSOLE;
1042
+ if (!isUndefined(message[_DYN_MESSAGE ])) {
996
1043
  if (isUserAct) {
997
- var messageKey = +message.messageId;
998
- if (!_messageLogged[messageKey] && logLevel >= severity) {
999
- _self[logFunc](message.message);
1044
+ var messageKey = +message[_DYN_MESSAGE_ID ];
1045
+ if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
1046
+ _self[logFunc](message[_DYN_MESSAGE ]);
1000
1047
  _messageLogged[messageKey] = true;
1001
1048
  }
1002
1049
  }
1003
1050
  else {
1004
- if (logLevel >= severity) {
1005
- _self[logFunc](message.message);
1051
+ if (_loggingLevelConsole >= severity) {
1052
+ _self[logFunc](message[_DYN_MESSAGE ]);
1006
1053
  }
1007
1054
  }
1008
- _self.logInternalMessage(severity, message);
1055
+ _logInternalMessage(severity, message);
1009
1056
  }
1010
1057
  else {
1011
1058
  _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
1012
1059
  }
1013
1060
  }
1014
1061
  };
1015
- _self.warnToConsole = function (message) {
1062
+ _self[STR_WARN_TO_CONSOLE ] = function (message) {
1016
1063
  _logToConsole("warn", message);
1017
1064
  _debugExtMsg("warning", message);
1018
1065
  };
1019
- _self.errorToConsole = function (message) {
1066
+ _self[STR_ERROR_TO_CONSOLE ] = function (message) {
1020
1067
  _logToConsole("error", message);
1021
1068
  _debugExtMsg("error", message);
1022
1069
  };
@@ -1024,12 +1071,13 @@ var DiagnosticLogger = /** @class */ (function () {
1024
1071
  _messageCount = 0;
1025
1072
  _messageLogged = {};
1026
1073
  };
1027
- _self.logInternalMessage = function (severity, message) {
1074
+ _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
1075
+ function _logInternalMessage(severity, message) {
1028
1076
  if (_areInternalMessagesThrottled()) {
1029
1077
  return;
1030
1078
  }
1031
1079
  var logMessage = true;
1032
- var messageKey = AIInternalMessagePrefix + message.messageId;
1080
+ var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
1033
1081
  if (_messageLogged[messageKey]) {
1034
1082
  logMessage = false;
1035
1083
  }
@@ -1037,58 +1085,63 @@ var DiagnosticLogger = /** @class */ (function () {
1037
1085
  _messageLogged[messageKey] = true;
1038
1086
  }
1039
1087
  if (logMessage) {
1040
- if (severity <= _self.telemetryLoggingLevel()) {
1041
- _self.queue.push(message);
1088
+ if (severity <= _loggingLevelTelemetry) {
1089
+ _self.queue[_DYN_PUSH$1 ](message);
1042
1090
  _messageCount++;
1043
1091
  _debugExtMsg((severity === 1 ? "error" : "warn"), message);
1044
1092
  }
1045
- if (_messageCount === _self.maxInternalMessageLimit()) {
1093
+ if (_messageCount === _maxInternalMessageLimit) {
1046
1094
  var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
1047
1095
  var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
1048
- _self.queue.push(throttleMessage);
1096
+ _self.queue[_DYN_PUSH$1 ](throttleMessage);
1049
1097
  if (severity === 1 ) {
1050
- _self.errorToConsole(throttleLimitMessage);
1098
+ _self[STR_ERROR_TO_CONSOLE ](throttleLimitMessage);
1051
1099
  }
1052
1100
  else {
1053
- _self.warnToConsole(throttleLimitMessage);
1101
+ _self[STR_WARN_TO_CONSOLE ](throttleLimitMessage);
1054
1102
  }
1055
1103
  }
1056
1104
  }
1057
- };
1058
- function _getConfigValue(name, defValue) {
1059
- var value = config[name];
1060
- if (!isNullOrUndefined(value)) {
1061
- return value;
1062
- }
1063
- return defValue;
1105
+ }
1106
+ function _setDefaultsFromConfig(config) {
1107
+ _loggingLevelConsole = getCfgValue(config.loggingLevelConsole, 0);
1108
+ _loggingLevelTelemetry = getCfgValue(config.loggingLevelTelemetry, 1);
1109
+ _maxInternalMessageLimit = getCfgValue(config.maxMessageLimit, 25);
1110
+ _enableDebugExceptions = getCfgValue(config[_DYN_ENABLE_DEBUG_EXCEPTI4 ], false);
1064
1111
  }
1065
1112
  function _areInternalMessagesThrottled() {
1066
- return _messageCount >= _self.maxInternalMessageLimit();
1113
+ return _messageCount >= _maxInternalMessageLimit;
1067
1114
  }
1068
1115
  function _debugExtMsg(name, data) {
1069
- var dbgExt = getDebugExt(config);
1070
- if (dbgExt && dbgExt.diagLog) {
1071
- dbgExt.diagLog(name, data);
1116
+ var dbgExt = getDebugExt(config || {});
1117
+ if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
1118
+ dbgExt[_DYN_DIAG_LOG ](name, data);
1072
1119
  }
1073
1120
  }
1074
1121
  });
1075
1122
  }
1123
+ DiagnosticLogger.__ieDyn=1;
1076
1124
  return DiagnosticLogger;
1077
1125
  }());
1126
+ function _getLogger(logger) {
1127
+ return (logger || new DiagnosticLogger());
1128
+ }
1078
1129
  function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
1079
1130
  if (isUserAct === void 0) { isUserAct = false; }
1080
- (logger || new DiagnosticLogger()).throwInternal(severity, msgId, msg, properties, isUserAct);
1131
+ _getLogger(logger).throwInternal(severity, msgId, msg, properties, isUserAct);
1081
1132
  }
1082
1133
 
1083
1134
  var strExecutionContextKey = "ctx";
1135
+ var strParentContextKey = "ParentContextKey";
1136
+ var strChildrenContextKey = "ChildrenContextKey";
1084
1137
  var PerfEvent = /** @class */ (function () {
1085
1138
  function PerfEvent(name, payloadDetails, isAsync) {
1086
1139
  var _self = this;
1087
1140
  var accessorDefined = false;
1088
1141
  _self.start = dateNow();
1089
- _self.name = name;
1090
- _self.isAsync = isAsync;
1091
- _self.isChildEvt = function () { return false; };
1142
+ _self[_DYN_NAME$1 ] = name;
1143
+ _self[_DYN_IS_ASYNC ] = isAsync;
1144
+ _self[_DYN_IS_CHILD_EVT ] = function () { return false; };
1092
1145
  if (isFunction(payloadDetails)) {
1093
1146
  var theDetails_1;
1094
1147
  accessorDefined = objDefineAccessors(_self, "payload", function () {
@@ -1099,24 +1152,24 @@ var PerfEvent = /** @class */ (function () {
1099
1152
  return theDetails_1;
1100
1153
  });
1101
1154
  }
1102
- _self.getCtx = function (key) {
1155
+ _self[_DYN_GET_CTX ] = function (key) {
1103
1156
  if (key) {
1104
- if (key === PerfEvent.ParentContextKey || key === PerfEvent.ChildrenContextKey) {
1157
+ if (key === PerfEvent[strParentContextKey] || key === PerfEvent[strChildrenContextKey]) {
1105
1158
  return _self[key];
1106
1159
  }
1107
1160
  return (_self[strExecutionContextKey] || {})[key];
1108
1161
  }
1109
1162
  return null;
1110
1163
  };
1111
- _self.setCtx = function (key, value) {
1164
+ _self[_DYN_SET_CTX ] = function (key, value) {
1112
1165
  if (key) {
1113
- if (key === PerfEvent.ParentContextKey) {
1166
+ if (key === PerfEvent[strParentContextKey]) {
1114
1167
  if (!_self[key]) {
1115
- _self.isChildEvt = function () { return true; };
1168
+ _self[_DYN_IS_CHILD_EVT ] = function () { return true; };
1116
1169
  }
1117
1170
  _self[key] = value;
1118
1171
  }
1119
- else if (key === PerfEvent.ChildrenContextKey) {
1172
+ else if (key === PerfEvent[strChildrenContextKey]) {
1120
1173
  _self[key] = value;
1121
1174
  }
1122
1175
  else {
@@ -1125,20 +1178,20 @@ var PerfEvent = /** @class */ (function () {
1125
1178
  }
1126
1179
  }
1127
1180
  };
1128
- _self.complete = function () {
1181
+ _self[_DYN_COMPLETE ] = function () {
1129
1182
  var childTime = 0;
1130
- var childEvts = _self.getCtx(PerfEvent.ChildrenContextKey);
1183
+ var childEvts = _self[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
1131
1184
  if (isArray(childEvts)) {
1132
- for (var lp = 0; lp < childEvts.length; lp++) {
1185
+ for (var lp = 0; lp < childEvts[_DYN_LENGTH$2 ]; lp++) {
1133
1186
  var childEvt = childEvts[lp];
1134
1187
  if (childEvt) {
1135
- childTime += childEvt.time;
1188
+ childTime += childEvt[_DYN_TIME ];
1136
1189
  }
1137
1190
  }
1138
1191
  }
1139
- _self.time = dateNow() - _self.start;
1140
- _self.exTime = _self.time - childTime;
1141
- _self.complete = function () { };
1192
+ _self[_DYN_TIME ] = dateNow() - _self.start;
1193
+ _self.exTime = _self[_DYN_TIME ] - childTime;
1194
+ _self[_DYN_COMPLETE ] = function () { };
1142
1195
  if (!accessorDefined && isFunction(payloadDetails)) {
1143
1196
  _self.payload = payloadDetails();
1144
1197
  }
@@ -1152,40 +1205,40 @@ var doPerfActiveKey = "CoreUtils.doPerf";
1152
1205
  function doPerf(mgrSource, getSource, func, details, isAsync) {
1153
1206
  if (mgrSource) {
1154
1207
  var perfMgr = mgrSource;
1155
- if (isFunction(perfMgr["getPerfMgr"])) {
1156
- perfMgr = perfMgr["getPerfMgr"]();
1208
+ if (perfMgr[STR_GET_PERF_MGR]) {
1209
+ perfMgr = perfMgr[STR_GET_PERF_MGR]();
1157
1210
  }
1158
1211
  if (perfMgr) {
1159
1212
  var perfEvt = void 0;
1160
- var currentActive = perfMgr.getCtx(doPerfActiveKey);
1213
+ var currentActive = perfMgr[_DYN_GET_CTX ](doPerfActiveKey);
1161
1214
  try {
1162
1215
  perfEvt = perfMgr.create(getSource(), details, isAsync);
1163
1216
  if (perfEvt) {
1164
- if (currentActive && perfEvt.setCtx) {
1165
- perfEvt.setCtx(PerfEvent.ParentContextKey, currentActive);
1166
- if (currentActive.getCtx && currentActive.setCtx) {
1167
- var children = currentActive.getCtx(PerfEvent.ChildrenContextKey);
1217
+ if (currentActive && perfEvt[_DYN_SET_CTX ]) {
1218
+ perfEvt[_DYN_SET_CTX ](PerfEvent[strParentContextKey], currentActive);
1219
+ if (currentActive[_DYN_GET_CTX ] && currentActive[_DYN_SET_CTX ]) {
1220
+ var children = currentActive[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
1168
1221
  if (!children) {
1169
1222
  children = [];
1170
- currentActive.setCtx(PerfEvent.ChildrenContextKey, children);
1223
+ currentActive[_DYN_SET_CTX ](PerfEvent[strChildrenContextKey], children);
1171
1224
  }
1172
- children.push(perfEvt);
1225
+ children[_DYN_PUSH$1 ](perfEvt);
1173
1226
  }
1174
1227
  }
1175
- perfMgr.setCtx(doPerfActiveKey, perfEvt);
1228
+ perfMgr[_DYN_SET_CTX ](doPerfActiveKey, perfEvt);
1176
1229
  return func(perfEvt);
1177
1230
  }
1178
1231
  }
1179
1232
  catch (ex) {
1180
- if (perfEvt && perfEvt.setCtx) {
1181
- perfEvt.setCtx("exception", ex);
1233
+ if (perfEvt && perfEvt[_DYN_SET_CTX ]) {
1234
+ perfEvt[_DYN_SET_CTX ]("exception", ex);
1182
1235
  }
1183
1236
  }
1184
1237
  finally {
1185
1238
  if (perfEvt) {
1186
1239
  perfMgr.fire(perfEvt);
1187
1240
  }
1188
- perfMgr.setCtx(doPerfActiveKey, currentActive);
1241
+ perfMgr[_DYN_SET_CTX ](doPerfActiveKey, currentActive);
1189
1242
  }
1190
1243
  }
1191
1244
  }
@@ -1261,8 +1314,8 @@ function newId(maxLength) {
1261
1314
  var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1262
1315
  var number = random32() >>> 0;
1263
1316
  var chars = 0;
1264
- var result = strEmpty$1;
1265
- while (result.length < maxLength) {
1317
+ var result = STR_EMPTY;
1318
+ while (result[_DYN_LENGTH$2 ] < maxLength) {
1266
1319
  chars++;
1267
1320
  result += base64chars.charAt(number & 0x3F);
1268
1321
  number >>>= 6;
@@ -1275,7 +1328,7 @@ function newId(maxLength) {
1275
1328
  }
1276
1329
 
1277
1330
  var _objDefineProperty = ObjDefineProperty;
1278
- var version = "2.8.5-nightly.2206-02";
1331
+ var version = "2.8.5-nightly.2206-06";
1279
1332
  var instanceName = "." + newId(6);
1280
1333
  var _dataUid = 0;
1281
1334
  function _createAccessor(target, prop, value) {
@@ -1294,7 +1347,7 @@ function _createAccessor(target, prop, value) {
1294
1347
  return false;
1295
1348
  }
1296
1349
  function _canAcceptData(target) {
1297
- return target.nodeType === 1 || target.nodeType === 9 || !(+target.nodeType);
1350
+ return target[_DYN_NODE_TYPE ] === 1 || target[_DYN_NODE_TYPE ] === 9 || !(+target[_DYN_NODE_TYPE ]);
1298
1351
  }
1299
1352
  function _getCache(data, target) {
1300
1353
  var theCache = target[data.id];
@@ -1314,11 +1367,11 @@ function _getCache(data, target) {
1314
1367
  }
1315
1368
  function createUniqueNamespace(name, includeVersion) {
1316
1369
  if (includeVersion === void 0) { includeVersion = false; }
1317
- return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : "") + instanceName);
1370
+ return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY) + instanceName);
1318
1371
  }
1319
1372
  function createElmNodeData(name) {
1320
1373
  var data = {
1321
- id: createUniqueNamespace("_aiData-" + (name || "") + "." + version),
1374
+ id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY) + "." + version),
1322
1375
  accept: function (target) {
1323
1376
  return _canAcceptData(target);
1324
1377
  },
@@ -1375,7 +1428,7 @@ function _isMgrEnabled(cookieMgr) {
1375
1428
  return true;
1376
1429
  }
1377
1430
  function _createCookieMgrConfig(rootConfig) {
1378
- var cookieMgrCfg = rootConfig.cookieCfg = rootConfig.cookieCfg || {};
1431
+ var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG ] = rootConfig[_DYN_COOKIE_CFG ] || {};
1379
1432
  setValue(cookieMgrCfg, "domain", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);
1380
1433
  setValue(cookieMgrCfg, "path", rootConfig.cookiePath || "/", null, isNullOrUndefined);
1381
1434
  if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {
@@ -1391,31 +1444,33 @@ function _createCookieMgrConfig(rootConfig) {
1391
1444
  return cookieMgrCfg;
1392
1445
  }
1393
1446
  function createCookieMgr(rootConfig, logger) {
1447
+ var _a;
1394
1448
  var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);
1395
1449
  var _path = cookieMgrConfig.path || "/";
1396
1450
  var _domain = cookieMgrConfig.domain;
1397
1451
  var _enabled = cookieMgrConfig[strEnabled] !== false;
1398
- var cookieMgr = {
1399
- isEnabled: function () {
1400
- var enabled = _enabled && areCookiesSupported(logger);
1401
- var gblManager = _globalCookieConfig[strConfigCookieMgr];
1402
- if (enabled && gblManager && cookieMgr !== gblManager) {
1403
- enabled = _isMgrEnabled(gblManager);
1404
- }
1405
- return enabled;
1452
+ var cookieMgr = (_a = {
1453
+ isEnabled: function () {
1454
+ var enabled = _enabled && areCookiesSupported(logger);
1455
+ var gblManager = _globalCookieConfig[strConfigCookieMgr];
1456
+ if (enabled && gblManager && cookieMgr !== gblManager) {
1457
+ enabled = _isMgrEnabled(gblManager);
1458
+ }
1459
+ return enabled;
1460
+ }
1406
1461
  },
1407
- setEnabled: function (value) {
1462
+ _a[_DYN_SET_ENABLED ] = function (value) {
1408
1463
  _enabled = value !== false;
1409
1464
  },
1410
- set: function (name, value, maxAgeSec, domain, path) {
1465
+ _a.set = function (name, value, maxAgeSec, domain, path) {
1411
1466
  var result = false;
1412
1467
  if (_isMgrEnabled(cookieMgr)) {
1413
1468
  var values = {};
1414
- var theValue = strTrim(value || strEmpty$1);
1415
- var idx = theValue.indexOf(";");
1469
+ var theValue = strTrim(value || STR_EMPTY);
1470
+ var idx = theValue[_DYN_INDEX_OF ](";");
1416
1471
  if (idx !== -1) {
1417
- theValue = strTrim(value.substring(0, idx));
1418
- values = _extractParts(value.substring(idx + 1));
1472
+ theValue = strTrim(value[_DYN_SUBSTRING$1 ](0, idx));
1473
+ values = _extractParts(value[_DYN_SUBSTRING$1 ](idx + 1));
1419
1474
  }
1420
1475
  setValue(values, "domain", domain || _domain, isTruthy, isUndefined);
1421
1476
  if (!isNullOrUndefined(maxAgeSec)) {
@@ -1426,18 +1481,18 @@ function createCookieMgr(rootConfig, logger) {
1426
1481
  if (expireMs > 0) {
1427
1482
  var expiry = new Date();
1428
1483
  expiry.setTime(expireMs);
1429
- setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || strEmpty$1, isTruthy);
1484
+ setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
1430
1485
  }
1431
1486
  }
1432
1487
  if (!_isIE) {
1433
- setValue(values, "max-age", strEmpty$1 + maxAgeSec, null, isUndefined);
1488
+ setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
1434
1489
  }
1435
1490
  }
1436
1491
  var location_1 = getLocation();
1437
1492
  if (location_1 && location_1.protocol === "https:") {
1438
1493
  setValue(values, "secure", null, null, isUndefined);
1439
1494
  if (_allowUaSameSite === null) {
1440
- _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {}).userAgent);
1495
+ _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
1441
1496
  }
1442
1497
  if (_allowUaSameSite) {
1443
1498
  setValue(values, "SameSite", "None", null, isUndefined);
@@ -1450,21 +1505,21 @@ function createCookieMgr(rootConfig, logger) {
1450
1505
  }
1451
1506
  return result;
1452
1507
  },
1453
- get: function (name) {
1454
- var value = strEmpty$1;
1508
+ _a.get = function (name) {
1509
+ var value = STR_EMPTY;
1455
1510
  if (_isMgrEnabled(cookieMgr)) {
1456
1511
  value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
1457
1512
  }
1458
1513
  return value;
1459
1514
  },
1460
- del: function (name, path) {
1515
+ _a.del = function (name, path) {
1461
1516
  var result = false;
1462
1517
  if (_isMgrEnabled(cookieMgr)) {
1463
1518
  result = cookieMgr.purge(name, path);
1464
1519
  }
1465
1520
  return result;
1466
1521
  },
1467
- purge: function (name, path) {
1522
+ _a.purge = function (name, path) {
1468
1523
  var _a;
1469
1524
  var result = false;
1470
1525
  if (areCookiesSupported(logger)) {
@@ -1476,12 +1531,12 @@ function createCookieMgr(rootConfig, logger) {
1476
1531
  values["max-age"] = "0";
1477
1532
  }
1478
1533
  var delCookie = cookieMgrConfig.delCookie || _setCookieValue;
1479
- delCookie(name, _formatCookieValue(strEmpty$1, values));
1534
+ delCookie(name, _formatCookieValue(STR_EMPTY, values));
1480
1535
  result = true;
1481
1536
  }
1482
1537
  return result;
1483
- }
1484
- };
1538
+ },
1539
+ _a);
1485
1540
  cookieMgr[strConfigCookieMgr] = cookieMgr;
1486
1541
  return cookieMgr;
1487
1542
  }
@@ -1500,17 +1555,17 @@ function areCookiesSupported(logger) {
1500
1555
  }
1501
1556
  function _extractParts(theValue) {
1502
1557
  var values = {};
1503
- if (theValue && theValue.length) {
1504
- var parts = strTrim(theValue).split(";");
1558
+ if (theValue && theValue[_DYN_LENGTH$2 ]) {
1559
+ var parts = strTrim(theValue)[_DYN_SPLIT ](";");
1505
1560
  arrForEach(parts, function (thePart) {
1506
- thePart = strTrim(thePart || strEmpty$1);
1561
+ thePart = strTrim(thePart || STR_EMPTY);
1507
1562
  if (thePart) {
1508
- var idx = thePart.indexOf("=");
1563
+ var idx = thePart[_DYN_INDEX_OF ]("=");
1509
1564
  if (idx === -1) {
1510
1565
  values[thePart] = null;
1511
1566
  }
1512
1567
  else {
1513
- values[strTrim(thePart.substring(0, idx))] = strTrim(thePart.substring(idx + 1));
1568
+ values[strTrim(thePart[_DYN_SUBSTRING$1 ](0, idx))] = strTrim(thePart[_DYN_SUBSTRING$1 ](idx + 1));
1514
1569
  }
1515
1570
  }
1516
1571
  });
@@ -1524,21 +1579,21 @@ function _formatDate(theDate, func) {
1524
1579
  return null;
1525
1580
  }
1526
1581
  function _formatCookieValue(value, values) {
1527
- var cookieValue = value || strEmpty$1;
1582
+ var cookieValue = value || STR_EMPTY;
1528
1583
  objForEachKey(values, function (name, theValue) {
1529
- cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : strEmpty$1);
1584
+ cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
1530
1585
  });
1531
1586
  return cookieValue;
1532
1587
  }
1533
1588
  function _getCookieValue(name) {
1534
- var cookieValue = strEmpty$1;
1589
+ var cookieValue = STR_EMPTY;
1535
1590
  if (_doc) {
1536
- var theCookie = _doc[strCookie] || strEmpty$1;
1591
+ var theCookie = _doc[strCookie] || STR_EMPTY;
1537
1592
  if (_parsedCookieValue !== theCookie) {
1538
1593
  _cookieCache = _extractParts(theCookie);
1539
1594
  _parsedCookieValue = theCookie;
1540
1595
  }
1541
- cookieValue = strTrim(_cookieCache[name] || strEmpty$1);
1596
+ cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
1542
1597
  }
1543
1598
  return cookieValue;
1544
1599
  }
@@ -1584,16 +1639,17 @@ var _guid = 1;
1584
1639
  var elmNodeData = createElmNodeData("events");
1585
1640
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
1586
1641
  function _normalizeNamespace(name) {
1587
- if (name && name.replace) {
1588
- return name.replace(/^\s*\.*|\.*\s*$/g, "");
1642
+ if (name && name[_DYN_REPLACE$1 ]) {
1643
+ return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
1589
1644
  }
1590
1645
  return name;
1591
1646
  }
1592
1647
  function _getEvtNamespace(eventName, evtNamespace) {
1648
+ var _a;
1593
1649
  if (evtNamespace) {
1594
- var theNamespace_1 = "";
1650
+ var theNamespace_1 = STR_EMPTY;
1595
1651
  if (isArray(evtNamespace)) {
1596
- theNamespace_1 = "";
1652
+ theNamespace_1 = STR_EMPTY;
1597
1653
  arrForEach(evtNamespace, function (name) {
1598
1654
  name = _normalizeNamespace(name);
1599
1655
  if (name) {
@@ -1611,14 +1667,14 @@ function _getEvtNamespace(eventName, evtNamespace) {
1611
1667
  if (theNamespace_1[0] !== ".") {
1612
1668
  theNamespace_1 = "." + theNamespace_1;
1613
1669
  }
1614
- eventName = (eventName || "") + theNamespace_1;
1670
+ eventName = (eventName || STR_EMPTY) + theNamespace_1;
1615
1671
  }
1616
1672
  }
1617
- var parsedEvent = (eventNamespace.exec(eventName || "") || []);
1618
- return {
1619
- type: parsedEvent[1],
1620
- ns: ((parsedEvent[2] || "").replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, "").split(".").sort()).join(".")
1621
- };
1673
+ var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
1674
+ return _a = {},
1675
+ _a[_DYN_TYPE ] = parsedEvent[1],
1676
+ _a.ns = ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT ](".").sort()).join("."),
1677
+ _a;
1622
1678
  }
1623
1679
  function _getRegisteredEvents(target, evtName, addDefault) {
1624
1680
  if (addDefault === void 0) { addDefault = true; }
@@ -1631,19 +1687,20 @@ function _getRegisteredEvents(target, evtName, addDefault) {
1631
1687
  }
1632
1688
  function _doAttach(obj, evtName, handlerRef, useCapture) {
1633
1689
  var result = false;
1634
- if (obj && evtName && evtName.type && handlerRef) {
1690
+ if (obj && evtName && evtName[_DYN_TYPE ] && handlerRef) {
1635
1691
  if (obj[strAddEventHelper]) {
1636
- obj[strAddEventHelper](evtName.type, handlerRef, useCapture);
1692
+ obj[strAddEventHelper](evtName[_DYN_TYPE ], handlerRef, useCapture);
1637
1693
  result = true;
1638
1694
  }
1639
1695
  else if (obj[strAttachEvent]) {
1640
- obj[strAttachEvent](strOnPrefix + evtName.type, handlerRef);
1696
+ obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE ], handlerRef);
1641
1697
  result = true;
1642
1698
  }
1643
1699
  }
1644
1700
  return result;
1645
1701
  }
1646
1702
  function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {
1703
+ var _a;
1647
1704
  if (useCapture === void 0) { useCapture = false; }
1648
1705
  var result = false;
1649
1706
  if (target) {
@@ -1651,13 +1708,14 @@ function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {
1651
1708
  var evtName = _getEvtNamespace(eventName, evtNamespace);
1652
1709
  result = _doAttach(target, evtName, handlerRef, useCapture);
1653
1710
  if (result && elmNodeData.accept(target)) {
1654
- var registeredEvent = {
1655
- guid: _guid++,
1656
- evtName: evtName,
1657
- handler: handlerRef,
1658
- capture: useCapture
1659
- };
1660
- _getRegisteredEvents(target, evtName.type).push(registeredEvent);
1711
+ var registeredEvent = (_a = {
1712
+ guid: _guid++,
1713
+ evtName: evtName
1714
+ },
1715
+ _a[_DYN_HANDLER ] = handlerRef,
1716
+ _a.capture = useCapture,
1717
+ _a);
1718
+ _getRegisteredEvents(target, evtName.type)[_DYN_PUSH$1 ](registeredEvent);
1661
1719
  }
1662
1720
  }
1663
1721
  catch (e) {
@@ -1689,7 +1747,7 @@ function newGuid() {
1689
1747
  function randomHexDigit() {
1690
1748
  return randomValue(15);
1691
1749
  }
1692
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(GuidRegex, function (c) {
1750
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_DYN_REPLACE$1 ](GuidRegex, function (c) {
1693
1751
  var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
1694
1752
  return v.toString(16);
1695
1753
  });
@@ -1703,7 +1761,7 @@ function perfNow() {
1703
1761
  }
1704
1762
  function generateW3CId() {
1705
1763
  var hexValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
1706
- var oct = strEmpty$1, tmp;
1764
+ var oct = STR_EMPTY, tmp;
1707
1765
  for (var a = 0; a < 4; a++) {
1708
1766
  tmp = random32();
1709
1767
  oct +=
@@ -1717,7 +1775,7 @@ function generateW3CId() {
1717
1775
  hexValues[tmp >> 28 & 0xF];
1718
1776
  }
1719
1777
  var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];
1720
- return oct.substr(0, 8) + oct.substr(9, 4) + "4" + oct.substr(13, 3) + clockSequenceHi + oct.substr(16, 3) + oct.substr(19, 12);
1778
+ 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);
1721
1779
  }
1722
1780
  var CoreUtils = {
1723
1781
  _canUseCookies: undefined,
@@ -1767,23 +1825,23 @@ function _legacyCookieMgr(config, logger) {
1767
1825
  }, function (value) {
1768
1826
  _canUseCookies = value;
1769
1827
  arrForEach(_cookieMgrs, function (mgr) {
1770
- mgr.setEnabled(value);
1828
+ mgr[_DYN_SET_ENABLED ](value);
1771
1829
  });
1772
1830
  });
1773
1831
  }
1774
1832
  if (arrIndexOf(_cookieMgrs, cookieMgr) === -1) {
1775
- _cookieMgrs.push(cookieMgr);
1833
+ _cookieMgrs[_DYN_PUSH$1 ](cookieMgr);
1776
1834
  }
1777
1835
  if (isBoolean(legacyCanUseCookies)) {
1778
- cookieMgr.setEnabled(legacyCanUseCookies);
1836
+ cookieMgr[_DYN_SET_ENABLED ](legacyCanUseCookies);
1779
1837
  }
1780
1838
  if (isBoolean(_canUseCookies)) {
1781
- cookieMgr.setEnabled(_canUseCookies);
1839
+ cookieMgr[_DYN_SET_ENABLED ](_canUseCookies);
1782
1840
  }
1783
1841
  return cookieMgr;
1784
1842
  }
1785
1843
  function disableCookies() {
1786
- _legacyCookieMgr().setEnabled(false);
1844
+ _legacyCookieMgr()[_DYN_SET_ENABLED ](false);
1787
1845
  }
1788
1846
  function canUseCookies(logger) {
1789
1847
  return _legacyCookieMgr(null, logger).isEnabled();
@@ -1809,12 +1867,12 @@ var strGetTelCtx = "_getTelCtx";
1809
1867
  var _chainId = 0;
1810
1868
  function _getNextProxyStart(proxy, core, startAt) {
1811
1869
  while (proxy) {
1812
- if (proxy.getPlugin() === startAt) {
1870
+ if (proxy[_DYN_GET_PLUGIN ]() === startAt) {
1813
1871
  return proxy;
1814
1872
  }
1815
- proxy = proxy.getNext();
1873
+ proxy = proxy[_DYN_GET_NEXT ]();
1816
1874
  }
1817
- return createTelemetryProxyChain([startAt], core.config || {}, core);
1875
+ return createTelemetryProxyChain([startAt], core[_DYN_CONFIG ] || {}, core);
1818
1876
  }
1819
1877
  function _createInternalContext(telemetryChain, config, core, startAt) {
1820
1878
  var _nextProxy = null;
@@ -1855,7 +1913,7 @@ function _createInternalContext(telemetryChain, config, core, startAt) {
1855
1913
  args[_i - 2] = arguments[_i];
1856
1914
  }
1857
1915
  if (onComplete) {
1858
- _onComplete.push({
1916
+ _onComplete[_DYN_PUSH$1 ]({
1859
1917
  func: onComplete,
1860
1918
  self: !isUndefined(that) ? that : context.ctx,
1861
1919
  args: args
@@ -1864,16 +1922,16 @@ function _createInternalContext(telemetryChain, config, core, startAt) {
1864
1922
  }
1865
1923
  function _moveNext() {
1866
1924
  var nextProxy = _nextProxy;
1867
- _nextProxy = nextProxy ? nextProxy.getNext() : null;
1925
+ _nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT ]() : null;
1868
1926
  if (!nextProxy) {
1869
1927
  var onComplete = _onComplete;
1870
- if (onComplete && onComplete.length > 0) {
1928
+ if (onComplete && onComplete[_DYN_LENGTH$2 ] > 0) {
1871
1929
  arrForEach(onComplete, function (completeDetails) {
1872
1930
  try {
1873
- completeDetails.func.call(completeDetails.self, completeDetails.args);
1931
+ completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
1874
1932
  }
1875
1933
  catch (e) {
1876
- _throwInternal(core.logger, 2 , 73 , "Unexpected Exception during onComplete - " + dumpObj(e));
1934
+ _throwInternal(core[_DYN_LOGGER ], 2 , 73 , "Unexpected Exception during onComplete - " + dumpObj(e));
1877
1935
  }
1878
1936
  });
1879
1937
  _onComplete = [];
@@ -1886,7 +1944,7 @@ function _createInternalContext(telemetryChain, config, core, startAt) {
1886
1944
  if (mergeDefault === void 0) { mergeDefault = 0 ; }
1887
1945
  var theConfig;
1888
1946
  if (config) {
1889
- var extConfig = config.extensionConfig;
1947
+ var extConfig = config[STR_EXTENSION_CONFIG ];
1890
1948
  if (extConfig && identifier) {
1891
1949
  theConfig = extConfig[identifier];
1892
1950
  }
@@ -1927,7 +1985,7 @@ function _createInternalContext(telemetryChain, config, core, startAt) {
1927
1985
  function _iterateChain(cb) {
1928
1986
  var nextPlugin;
1929
1987
  while (!!(nextPlugin = context._next())) {
1930
- var plugin = nextPlugin.getPlugin();
1988
+ var plugin = nextPlugin[_DYN_GET_PLUGIN ]();
1931
1989
  if (plugin) {
1932
1990
  cb(plugin);
1933
1991
  }
@@ -1940,7 +1998,7 @@ function createProcessTelemetryContext(telemetryChain, config, core, startAt) {
1940
1998
  var context = internalContext.ctx;
1941
1999
  function _processNext(env) {
1942
2000
  var nextPlugin = internalContext._next();
1943
- nextPlugin && nextPlugin.processTelemetry(env, context);
2001
+ nextPlugin && nextPlugin[STR_PROCESS_TELEMETRY ](env, context);
1944
2002
  return !nextPlugin;
1945
2003
  }
1946
2004
  function _createNew(plugins, startAt) {
@@ -1948,14 +2006,14 @@ function createProcessTelemetryContext(telemetryChain, config, core, startAt) {
1948
2006
  if (isArray(plugins)) {
1949
2007
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1950
2008
  }
1951
- return createProcessTelemetryContext(plugins || context.getNext(), config, core, startAt);
2009
+ return createProcessTelemetryContext(plugins || context[_DYN_GET_NEXT ](), config, core, startAt);
1952
2010
  }
1953
- context.processNext = _processNext;
1954
- context.createNew = _createNew;
2011
+ context[_DYN_PROCESS_NEXT ] = _processNext;
2012
+ context[_DYN_CREATE_NEW ] = _createNew;
1955
2013
  return context;
1956
2014
  }
1957
2015
  function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
1958
- var config = core.config || {};
2016
+ var config = core[_DYN_CONFIG ] || {};
1959
2017
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1960
2018
  var context = internalContext.ctx;
1961
2019
  function _processNext(unloadState) {
@@ -1968,20 +2026,20 @@ function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {
1968
2026
  if (isArray(plugins)) {
1969
2027
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1970
2028
  }
1971
- return createProcessTelemetryUnloadContext(plugins || context.getNext(), core, startAt);
2029
+ return createProcessTelemetryUnloadContext(plugins || context[_DYN_GET_NEXT ](), core, startAt);
1972
2030
  }
1973
- context.processNext = _processNext;
1974
- context.createNew = _createNew;
2031
+ context[_DYN_PROCESS_NEXT ] = _processNext;
2032
+ context[_DYN_CREATE_NEW ] = _createNew;
1975
2033
  return context;
1976
2034
  }
1977
2035
  function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
1978
- var config = core.config || {};
2036
+ var config = core[_DYN_CONFIG ] || {};
1979
2037
  var internalContext = _createInternalContext(telemetryChain, config, core, startAt);
1980
2038
  var context = internalContext.ctx;
1981
2039
  function _processNext(updateState) {
1982
2040
  return context.iterate(function (plugin) {
1983
- if (isFunction(plugin.update)) {
1984
- plugin.update(context, updateState);
2041
+ if (isFunction(plugin[_DYN_UPDATE ])) {
2042
+ plugin[_DYN_UPDATE ](context, updateState);
1985
2043
  }
1986
2044
  });
1987
2045
  }
@@ -1990,22 +2048,22 @@ function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
1990
2048
  if (isArray(plugins)) {
1991
2049
  plugins = createTelemetryProxyChain(plugins, config, core, startAt);
1992
2050
  }
1993
- return createProcessTelemetryUpdateContext(plugins || context.getNext(), core, startAt);
2051
+ return createProcessTelemetryUpdateContext(plugins || context[_DYN_GET_NEXT ](), core, startAt);
1994
2052
  }
1995
- context.processNext = _processNext;
1996
- context.createNew = _createNew;
2053
+ context[_DYN_PROCESS_NEXT ] = _processNext;
2054
+ context[_DYN_CREATE_NEW ] = _createNew;
1997
2055
  return context;
1998
2056
  }
1999
2057
  function createTelemetryProxyChain(plugins, config, core, startAt) {
2000
2058
  var firstProxy = null;
2001
2059
  var add = startAt ? false : true;
2002
- if (isArray(plugins) && plugins.length > 0) {
2060
+ if (isArray(plugins) && plugins[_DYN_LENGTH$2 ] > 0) {
2003
2061
  var lastProxy_1 = null;
2004
2062
  arrForEach(plugins, function (thePlugin) {
2005
2063
  if (!add && startAt === thePlugin) {
2006
2064
  add = true;
2007
2065
  }
2008
- if (add && thePlugin && isFunction(thePlugin.processTelemetry)) {
2066
+ if (add && thePlugin && isFunction(thePlugin[STR_PROCESS_TELEMETRY ])) {
2009
2067
  var newProxy = createTelemetryPluginProxy(thePlugin, config, core);
2010
2068
  if (!firstProxy) {
2011
2069
  firstProxy = newProxy;
@@ -2024,11 +2082,11 @@ function createTelemetryProxyChain(plugins, config, core, startAt) {
2024
2082
  }
2025
2083
  function createTelemetryPluginProxy(plugin, config, core) {
2026
2084
  var nextProxy = null;
2027
- var hasProcessTelemetry = isFunction(plugin.processTelemetry);
2028
- var hasSetNext = isFunction(plugin.setNextPlugin);
2085
+ var hasProcessTelemetry = isFunction(plugin[STR_PROCESS_TELEMETRY ]);
2086
+ var hasSetNext = isFunction(plugin[_DYN_SET_NEXT_PLUGIN ]);
2029
2087
  var chainId;
2030
2088
  if (plugin) {
2031
- chainId = plugin.identifier + "-" + plugin.priority + "-" + _chainId++;
2089
+ chainId = plugin[_DYN_IDENTIFIER$1 ] + "-" + plugin[STR_PRIORITY ] + "-" + _chainId++;
2032
2090
  }
2033
2091
  else {
2034
2092
  chainId = "Unknown-0-" + _chainId++;
@@ -2060,17 +2118,17 @@ function createTelemetryPluginProxy(plugin, config, core) {
2060
2118
  }
2061
2119
  function _processChain(itemCtx, processPluginFn, name, details, isAsync) {
2062
2120
  var hasRun = false;
2063
- var identifier = plugin ? plugin.identifier : strTelemetryPluginChain;
2121
+ var identifier = plugin ? plugin[_DYN_IDENTIFIER$1 ] : strTelemetryPluginChain;
2064
2122
  var hasRunContext = itemCtx[strHasRunFlags];
2065
2123
  if (!hasRunContext) {
2066
2124
  hasRunContext = itemCtx[strHasRunFlags] = {};
2067
2125
  }
2068
2126
  itemCtx.setNext(nextProxy);
2069
2127
  if (plugin) {
2070
- doPerf(itemCtx[strCore](), function () { return identifier + ":" + name; }, function () {
2128
+ doPerf(itemCtx[STR_CORE ](), function () { return identifier + ":" + name; }, function () {
2071
2129
  hasRunContext[chainId] = true;
2072
2130
  try {
2073
- var nextId = nextProxy ? nextProxy._id : strEmpty$1;
2131
+ var nextId = nextProxy ? nextProxy._id : STR_EMPTY;
2074
2132
  if (nextId) {
2075
2133
  hasRunContext[nextId] = false;
2076
2134
  }
@@ -2082,7 +2140,7 @@ function createTelemetryPluginProxy(plugin, config, core) {
2082
2140
  hasRun = true;
2083
2141
  }
2084
2142
  if (!nextProxy || !hasNextRun) {
2085
- _throwInternal(itemCtx.diagLog(), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
2143
+ _throwInternal(itemCtx[_DYN_DIAG_LOG ](), 1 , 73 , "Plugin [" + identifier + "] failed during " + name + " - " + dumpObj(error) + ", run flags: " + dumpObj(hasRunContext));
2086
2144
  }
2087
2145
  }
2088
2146
  }, details, isAsync);
@@ -2096,17 +2154,17 @@ function createTelemetryPluginProxy(plugin, config, core) {
2096
2154
  return false;
2097
2155
  }
2098
2156
  var pluginState = _getPluginState(plugin);
2099
- if (pluginState.teardown || pluginState[strDisabled]) {
2157
+ if (pluginState[_DYN_TEARDOWN ] || pluginState[STR_DISABLED]) {
2100
2158
  return false;
2101
2159
  }
2102
2160
  if (hasSetNext) {
2103
- plugin.setNextPlugin(nextProxy);
2161
+ plugin[_DYN_SET_NEXT_PLUGIN ](nextProxy);
2104
2162
  }
2105
- plugin.processTelemetry(env, itemCtx);
2163
+ plugin[STR_PROCESS_TELEMETRY ](env, itemCtx);
2106
2164
  return true;
2107
2165
  }
2108
2166
  if (!_processChain(itemCtx, _callProcessTelemetry, "processTelemetry", function () { return ({ item: env }); }, !(env.sync))) {
2109
- itemCtx.processNext(env);
2167
+ itemCtx[_DYN_PROCESS_NEXT ](env);
2110
2168
  }
2111
2169
  }
2112
2170
  function _unloadPlugin(unloadCtx, unloadState) {
@@ -2114,20 +2172,20 @@ function createTelemetryPluginProxy(plugin, config, core) {
2114
2172
  var hasRun = false;
2115
2173
  if (plugin) {
2116
2174
  var pluginState = _getPluginState(plugin);
2117
- var pluginCore = plugin[strCore] || pluginState.core;
2118
- if (plugin && (!pluginCore || pluginCore === unloadCtx[strCore]()) && !pluginState[strTeardown]) {
2119
- pluginState[strCore] = null;
2120
- pluginState[strTeardown] = true;
2121
- pluginState[strIsInitialized] = false;
2122
- if (plugin[strTeardown] && plugin[strTeardown](unloadCtx, unloadState) === true) {
2175
+ var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE ];
2176
+ if (plugin && (!pluginCore || pluginCore === unloadCtx.core()) && !pluginState[_DYN_TEARDOWN ]) {
2177
+ pluginState[STR_CORE ] = null;
2178
+ pluginState[_DYN_TEARDOWN ] = true;
2179
+ pluginState[_DYN_IS_INITIALIZED ] = false;
2180
+ if (plugin[_DYN_TEARDOWN ] && plugin[_DYN_TEARDOWN ](unloadCtx, unloadState) === true) {
2123
2181
  hasRun = true;
2124
2182
  }
2125
2183
  }
2126
2184
  }
2127
2185
  return hasRun;
2128
2186
  }
2129
- if (!_processChain(unloadCtx, _callTeardown, "unload", function () { }, unloadState.isAsync)) {
2130
- unloadCtx.processNext(unloadState);
2187
+ if (!_processChain(unloadCtx, _callTeardown, "unload", function () { }, unloadState[_DYN_IS_ASYNC ])) {
2188
+ unloadCtx[_DYN_PROCESS_NEXT ](unloadState);
2131
2189
  }
2132
2190
  }
2133
2191
  function _updatePlugin(updateCtx, updateState) {
@@ -2135,9 +2193,9 @@ function createTelemetryPluginProxy(plugin, config, core) {
2135
2193
  var hasRun = false;
2136
2194
  if (plugin) {
2137
2195
  var pluginState = _getPluginState(plugin);
2138
- var pluginCore = plugin[strCore] || pluginState.core;
2139
- if (plugin && (!pluginCore || pluginCore === updateCtx[strCore]()) && !pluginState[strTeardown]) {
2140
- if (plugin[strUpdate] && plugin[strUpdate](updateCtx, updateState) === true) {
2196
+ var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE ];
2197
+ if (plugin && (!pluginCore || pluginCore === updateCtx.core()) && !pluginState[_DYN_TEARDOWN ]) {
2198
+ if (plugin[_DYN_UPDATE ] && plugin[_DYN_UPDATE ](updateCtx, updateState) === true) {
2141
2199
  hasRun = true;
2142
2200
  }
2143
2201
  }
@@ -2145,19 +2203,17 @@ function createTelemetryPluginProxy(plugin, config, core) {
2145
2203
  return hasRun;
2146
2204
  }
2147
2205
  if (!_processChain(updateCtx, _callUpdate, "update", function () { }, false)) {
2148
- updateCtx.processNext(updateState);
2206
+ updateCtx[_DYN_PROCESS_NEXT ](updateState);
2149
2207
  }
2150
2208
  }
2151
2209
  return objFreeze(proxyChain);
2152
2210
  }
2153
2211
 
2154
- var strExtensionConfig = "extensionConfig";
2155
-
2156
2212
  function createUnloadHandlerContainer() {
2157
2213
  var handlers = [];
2158
2214
  function _addHandler(handler) {
2159
2215
  if (handler) {
2160
- handlers.push(handler);
2216
+ handlers[_DYN_PUSH$1 ](handler);
2161
2217
  }
2162
2218
  }
2163
2219
  function _runHandlers(unloadCtx, unloadState) {
@@ -2166,7 +2222,7 @@ function createUnloadHandlerContainer() {
2166
2222
  handler(unloadCtx, unloadState);
2167
2223
  }
2168
2224
  catch (e) {
2169
- _throwInternal(unloadCtx.diagLog(), 2 , 73 , "Unexpected error calling unload handler - " + dumpObj(e));
2225
+ _throwInternal(unloadCtx[_DYN_DIAG_LOG ](), 2 , 73 , "Unexpected error calling unload handler - " + dumpObj(e));
2170
2226
  }
2171
2227
  });
2172
2228
  handlers = [];
@@ -2188,37 +2244,40 @@ var BaseTelemetryPlugin = /** @class */ (function () {
2188
2244
  var _hooks;
2189
2245
  _initDefaults();
2190
2246
  dynamicProto(BaseTelemetryPlugin, _self, function (_self) {
2191
- _self.initialize = function (config, core, extensions, pluginChain) {
2247
+ _self[_DYN_INITIALIZE ] = function (config, core, extensions, pluginChain) {
2192
2248
  _setDefaults(config, core, pluginChain);
2193
2249
  _isinitialized = true;
2194
2250
  };
2195
- _self.teardown = function (unloadCtx, unloadState) {
2196
- var core = _self.core;
2197
- if (!core || (unloadCtx && core !== unloadCtx.core())) {
2251
+ _self[_DYN_TEARDOWN ] = function (unloadCtx, unloadState) {
2252
+ var _a;
2253
+ var core = _self[STR_CORE ];
2254
+ if (!core || (unloadCtx && core !== unloadCtx[STR_CORE ]())) {
2198
2255
  return;
2199
2256
  }
2200
2257
  var result;
2201
2258
  var unloadDone = false;
2202
2259
  var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);
2203
- var theUnloadState = unloadState || {
2204
- reason: 0 ,
2205
- isAsync: false
2206
- };
2260
+ var theUnloadState = unloadState || (_a = {
2261
+ reason: 0
2262
+ },
2263
+ _a[_DYN_IS_ASYNC ] = false,
2264
+ _a);
2207
2265
  function _unloadCallback() {
2208
2266
  if (!unloadDone) {
2209
2267
  unloadDone = true;
2210
2268
  _unloadHandlerContainer.run(theUnloadCtx, unloadState);
2211
- arrForEach(_hooks, function (fn) {
2269
+ var oldHooks = _hooks;
2270
+ _hooks = [];
2271
+ arrForEach(oldHooks, function (fn) {
2212
2272
  fn.rm();
2213
2273
  });
2214
- _hooks = [];
2215
2274
  if (result === true) {
2216
- theUnloadCtx.processNext(theUnloadState);
2275
+ theUnloadCtx[_DYN_PROCESS_NEXT ](theUnloadState);
2217
2276
  }
2218
2277
  _initDefaults();
2219
2278
  }
2220
2279
  }
2221
- if (!_self[strDoTeardown] || _self[strDoTeardown](theUnloadCtx, theUnloadState, _unloadCallback) !== true) {
2280
+ if (!_self[_DYN__DO_TEARDOWN ] || _self[_DYN__DO_TEARDOWN ](theUnloadCtx, theUnloadState, _unloadCallback) !== true) {
2222
2281
  _unloadCallback();
2223
2282
  }
2224
2283
  else {
@@ -2226,9 +2285,9 @@ var BaseTelemetryPlugin = /** @class */ (function () {
2226
2285
  }
2227
2286
  return result;
2228
2287
  };
2229
- _self.update = function (updateCtx, updateState) {
2230
- var core = _self.core;
2231
- if (!core || (updateCtx && core !== updateCtx.core())) {
2288
+ _self[_DYN_UPDATE ] = function (updateCtx, updateState) {
2289
+ var core = _self[STR_CORE ];
2290
+ if (!core || (updateCtx && core !== updateCtx[STR_CORE ]())) {
2232
2291
  return;
2233
2292
  }
2234
2293
  var result;
@@ -2240,7 +2299,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
2240
2299
  function _updateCallback() {
2241
2300
  if (!updateDone) {
2242
2301
  updateDone = true;
2243
- _setDefaults(theUpdateCtx.getCfg(), theUpdateCtx.core(), theUpdateCtx.getNext());
2302
+ _setDefaults(theUpdateCtx.getCfg(), theUpdateCtx.core(), theUpdateCtx[_DYN_GET_NEXT ]());
2244
2303
  }
2245
2304
  }
2246
2305
  if (!_self._doUpdate || _self._doUpdate(theUpdateCtx, theUpdateState, _updateCallback) !== true) {
@@ -2257,30 +2316,30 @@ var BaseTelemetryPlugin = /** @class */ (function () {
2257
2316
  _hooks = _hooks.concat(hooks);
2258
2317
  }
2259
2318
  else {
2260
- _hooks.push(hooks);
2319
+ _hooks[_DYN_PUSH$1 ](hooks);
2261
2320
  }
2262
2321
  }
2263
2322
  };
2264
2323
  proxyFunctionAs(_self, "_addUnloadCb", function () { return _unloadHandlerContainer; }, "add");
2265
2324
  });
2266
- _self.diagLog = function (itemCtx) {
2267
- return _getTelCtx(itemCtx).diagLog();
2325
+ _self[_DYN_DIAG_LOG ] = function (itemCtx) {
2326
+ return _getTelCtx(itemCtx)[_DYN_DIAG_LOG ]();
2268
2327
  };
2269
- _self[strIsInitialized] = function () {
2328
+ _self[_DYN_IS_INITIALIZED ] = function () {
2270
2329
  return _isinitialized;
2271
2330
  };
2272
2331
  _self.setInitialized = function (isInitialized) {
2273
2332
  _isinitialized = isInitialized;
2274
2333
  };
2275
- _self[strSetNextPlugin] = function (next) {
2334
+ _self[_DYN_SET_NEXT_PLUGIN ] = function (next) {
2276
2335
  _nextPlugin = next;
2277
2336
  };
2278
- _self.processNext = function (env, itemCtx) {
2337
+ _self[_DYN_PROCESS_NEXT ] = function (env, itemCtx) {
2279
2338
  if (itemCtx) {
2280
- itemCtx.processNext(env);
2339
+ itemCtx[_DYN_PROCESS_NEXT ](env);
2281
2340
  }
2282
- else if (_nextPlugin && isFunction(_nextPlugin.processTelemetry)) {
2283
- _nextPlugin.processTelemetry(env, null);
2341
+ else if (_nextPlugin && isFunction(_nextPlugin[STR_PROCESS_TELEMETRY ])) {
2342
+ _nextPlugin[STR_PROCESS_TELEMETRY ](env, null);
2284
2343
  }
2285
2344
  };
2286
2345
  _self._getTelCtx = _getTelCtx;
@@ -2288,39 +2347,40 @@ var BaseTelemetryPlugin = /** @class */ (function () {
2288
2347
  if (currentCtx === void 0) { currentCtx = null; }
2289
2348
  var itemCtx = currentCtx;
2290
2349
  if (!itemCtx) {
2291
- var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self.core);
2350
+ var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self[STR_CORE ]);
2292
2351
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
2293
- itemCtx = rootCtx.createNew(null, _nextPlugin[strGetPlugin]);
2352
+ itemCtx = rootCtx[_DYN_CREATE_NEW ](null, _nextPlugin[strGetPlugin]);
2294
2353
  }
2295
2354
  else {
2296
- itemCtx = rootCtx.createNew(null, _nextPlugin);
2355
+ itemCtx = rootCtx[_DYN_CREATE_NEW ](null, _nextPlugin);
2297
2356
  }
2298
2357
  }
2299
2358
  return itemCtx;
2300
2359
  }
2301
2360
  function _setDefaults(config, core, pluginChain) {
2302
2361
  if (config) {
2303
- setValue(config, strExtensionConfig, [], null, isNullOrUndefined);
2362
+ setValue(config, STR_EXTENSION_CONFIG, [], null, isNullOrUndefined);
2304
2363
  }
2305
2364
  if (!pluginChain && core) {
2306
- pluginChain = core.getProcessTelContext().getNext();
2365
+ pluginChain = core[_DYN_GET_PROCESS_TEL_CONT0 ]()[_DYN_GET_NEXT ]();
2307
2366
  }
2308
2367
  var nextPlugin = _nextPlugin;
2309
2368
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
2310
2369
  nextPlugin = _nextPlugin[strGetPlugin]();
2311
2370
  }
2312
- _self.core = core;
2371
+ _self[STR_CORE ] = core;
2313
2372
  _rootCtx = createProcessTelemetryContext(pluginChain, config, core, nextPlugin);
2314
2373
  }
2315
2374
  function _initDefaults() {
2316
2375
  _isinitialized = false;
2317
- _self.core = null;
2376
+ _self[STR_CORE ] = null;
2318
2377
  _rootCtx = null;
2319
2378
  _nextPlugin = null;
2320
2379
  _hooks = [];
2321
2380
  _unloadHandlerContainer = createUnloadHandlerContainer();
2322
2381
  }
2323
2382
  }
2383
+ BaseTelemetryPlugin.__ieDyn=1;
2324
2384
  return BaseTelemetryPlugin;
2325
2385
  }());
2326
2386
 
@@ -2330,7 +2390,7 @@ var cbNames = [
2330
2390
  ];
2331
2391
  function _arrLoop(arr, fn) {
2332
2392
  if (arr) {
2333
- for (var lp = 0; lp < arr.length; lp++) {
2393
+ for (var lp = 0; lp < arr[_DYN_LENGTH$2 ]; lp++) {
2334
2394
  if (fn(arr[lp], lp)) {
2335
2395
  break;
2336
2396
  }
@@ -2348,7 +2408,7 @@ function _doCallbacks(hooks, callDetails, cbArgs, hookCtx, type) {
2348
2408
  return ctx;
2349
2409
  };
2350
2410
  try {
2351
- cb.apply(callDetails.inst, cbArgs);
2411
+ cb[_DYN_APPLY ](callDetails.inst, cbArgs);
2352
2412
  }
2353
2413
  catch (err) {
2354
2414
  var orgEx = callDetails.err;
@@ -2356,7 +2416,7 @@ function _doCallbacks(hooks, callDetails, cbArgs, hookCtx, type) {
2356
2416
  var hookErrorCb = cbks[cbNames[2 ]];
2357
2417
  if (hookErrorCb) {
2358
2418
  callDetails.err = err;
2359
- hookErrorCb.apply(callDetails.inst, cbArgs);
2419
+ hookErrorCb[_DYN_APPLY ](callDetails.inst, cbArgs);
2360
2420
  }
2361
2421
  }
2362
2422
  catch (e) {
@@ -2371,21 +2431,22 @@ function _doCallbacks(hooks, callDetails, cbArgs, hookCtx, type) {
2371
2431
  }
2372
2432
  function _createFunctionHook(aiHook) {
2373
2433
  return function () {
2434
+ var _a;
2374
2435
  var funcThis = this;
2375
2436
  var orgArgs = arguments;
2376
2437
  var hooks = aiHook.h;
2377
- var funcArgs = {
2378
- name: aiHook.n,
2379
- inst: funcThis,
2380
- ctx: null,
2381
- set: _replaceArg
2382
- };
2438
+ var funcArgs = (_a = {},
2439
+ _a[_DYN_NAME$1 ] = aiHook.n,
2440
+ _a.inst = funcThis,
2441
+ _a.ctx = null,
2442
+ _a.set = _replaceArg,
2443
+ _a);
2383
2444
  var hookCtx = [];
2384
2445
  var cbArgs = _createArgs([funcArgs], orgArgs);
2385
2446
  funcArgs.evt = getGlobalInst("event");
2386
2447
  function _createArgs(target, theArgs) {
2387
2448
  _arrLoop(theArgs, function (arg) {
2388
- target.push(arg);
2449
+ target[_DYN_PUSH$1 ](arg);
2389
2450
  });
2390
2451
  return target;
2391
2452
  }
@@ -2398,7 +2459,7 @@ function _createFunctionHook(aiHook) {
2398
2459
  var theFunc = aiHook.f;
2399
2460
  if (theFunc) {
2400
2461
  try {
2401
- funcArgs.rslt = theFunc.apply(funcThis, orgArgs);
2462
+ funcArgs.rslt = theFunc[_DYN_APPLY ](funcThis, orgArgs);
2402
2463
  }
2403
2464
  catch (err) {
2404
2465
  funcArgs.err = err;
@@ -2417,7 +2478,7 @@ function _getOwner(target, name, checkPrototype) {
2417
2478
  owner = target;
2418
2479
  }
2419
2480
  else if (checkPrototype) {
2420
- owner = _getOwner(_getObjProto$1(target), name, false);
2481
+ owner = _getOwner(_getObjProto(target), name, false);
2421
2482
  }
2422
2483
  }
2423
2484
  return owner;
@@ -2442,14 +2503,14 @@ function _createInstrumentHook(owner, funcName, fn, callbacks) {
2442
2503
  var id = this.id;
2443
2504
  _arrLoop(aiHook.h, function (hook, idx) {
2444
2505
  if (hook.id === id) {
2445
- aiHook.h.splice(idx, 1);
2506
+ aiHook.h[_DYN_SPLICE ](idx, 1);
2446
2507
  return 1;
2447
2508
  }
2448
2509
  });
2449
2510
  }
2450
2511
  };
2451
2512
  aiHook.i++;
2452
- aiHook.h.push(theHook);
2513
+ aiHook.h[_DYN_PUSH$1 ](theHook);
2453
2514
  return theHook;
2454
2515
  }
2455
2516
  function InstrumentFunc(target, funcName, callbacks, checkPrototype) {
@@ -2466,6 +2527,52 @@ function InstrumentFunc(target, funcName, callbacks, checkPrototype) {
2466
2527
  return null;
2467
2528
  }
2468
2529
 
2530
+ var _DYN_IDENTIFIER = "identifier";
2531
+ var _DYN_TRACKERS = "trackers";
2532
+ var _DYN_DISABLE_NOTIFICATION0 = "disableNotifications";
2533
+ var _DYN_NEW_LOG_ENTRY = "newLogEntry";
2534
+ var _DYN_PUSH = "push";
2535
+ var _DYN_GET_TRANSMISSION_CON1 = "getTransmissionControls";
2536
+ var _DYN_EXCLUDE_KEYS = "excludeKeys";
2537
+ var _DYN_MAX_MESSAGES = "maxMessages";
2538
+ var _DYN_CREATE_ELEMENT = "createElement";
2539
+ var _DYN_CLASS_NAME = "className";
2540
+ var _DYN_INNER_HTML = "innerHTML";
2541
+ var _DYN_APPEND_CHILD = "appendChild";
2542
+ var _DYN_STOP_PROPAGATION = "stopPropagation";
2543
+ var _DYN_IS_DISPLAYED = "isDisplayed";
2544
+ var _DYN_NAME = "name";
2545
+ var _DYN_LENGTH$1 = "length";
2546
+ var _DYN_SHOW_CHILDREN = "showChildren";
2547
+ var _DYN_DUMP_TO_CONSOLE = "dumpToConsole";
2548
+ var _DYN_LOG_PROCESS_TELEMETR2 = "logProcessTelemetry";
2549
+ var _DYN_INCLUDE_FUNCTIONS = "includeFunctions";
2550
+ var _DYN_POINTER_EVENTS = "pointerEvents";
2551
+ var _DYN_PARENT_ELEMENT = "parentElement";
2552
+ var _DYN_SET_TEXT_FILTER = "setTextFilter";
2553
+ var _DYN_RENDER = "render";
2554
+ var _DYN_GET_EL = "getEl";
2555
+ var _DYN_REMOVE_CHILD = "removeChild";
2556
+ var _DYN_SET_ATTRIBUTE = "setAttribute";
2557
+ var _DYN_ONKEYUP = "onkeyup";
2558
+ var _DYN_INNER_TEXT = "innerText";
2559
+ var _DYN_ONCLICK = "onclick";
2560
+ var _DYN_ONTOUCHEND = "ontouchend";
2561
+ var _DYN_ONKEYDOWN = "onkeydown";
2562
+ var _DYN_PREVENT_DEFAULT = "preventDefault";
2563
+ var _DYN_TARGET = "target";
2564
+ var _DYN_CHILDREN = "children";
2565
+ var _DYN_FILTER_LIST = "filterList";
2566
+ var _DYN_FOCUS = "focus";
2567
+ var _DYN_REPLACE = "replace";
2568
+ var _DYN_SUBSTRING = "substring";
2569
+ var _DYN_TO_STRING$1 = "toString";
2570
+ var _DYN_IS_ERROR = "isError";
2571
+
2572
+ var DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
2573
+ var DEFAULT_BREEZE_PATH = "/v2/track";
2574
+ var strNotSpecified = "not_specified";
2575
+
2469
2576
  function createDomEvent(eventName) {
2470
2577
  var event = null;
2471
2578
  if (isFunction(Event)) {
@@ -2481,13 +2588,18 @@ function createDomEvent(eventName) {
2481
2588
  return event;
2482
2589
  }
2483
2590
 
2591
+ var _DYN_LENGTH = "length";
2592
+ var _DYN_TO_LOWER_CASE = "toLowerCase";
2593
+ var _DYN_TO_STRING = "toString";
2594
+ var _DYN_REMOVE_ITEM = "removeItem";
2595
+
2484
2596
  var strEmpty = "";
2485
2597
  function stringToBoolOrDefault(str, defaultValue) {
2486
2598
  if (defaultValue === void 0) { defaultValue = false; }
2487
2599
  if (str === undefined || str === null) {
2488
2600
  return defaultValue;
2489
2601
  }
2490
- return str.toString().toLowerCase() === "true";
2602
+ return str.toString()[_DYN_TO_LOWER_CASE ]() === "true";
2491
2603
  }
2492
2604
  function msToTimeSpan(totalms) {
2493
2605
  if (isNaN(totalms) || totalms < 0) {
@@ -2499,10 +2611,10 @@ function msToTimeSpan(totalms) {
2499
2611
  var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
2500
2612
  var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
2501
2613
  var days = Math.floor(totalms / (1000 * 60 * 60 * 24));
2502
- ms = ms.length === 1 ? "00" + ms : ms.length === 2 ? "0" + ms : ms;
2503
- sec = sec.length < 2 ? "0" + sec : sec;
2504
- min = min.length < 2 ? "0" + min : min;
2505
- hour = hour.length < 2 ? "0" + hour : hour;
2614
+ ms = ms[_DYN_LENGTH ] === 1 ? "00" + ms : ms[_DYN_LENGTH ] === 2 ? "0" + ms : ms;
2615
+ sec = sec[_DYN_LENGTH ] < 2 ? "0" + sec : sec;
2616
+ min = min[_DYN_LENGTH ] < 2 ? "0" + min : min;
2617
+ hour = hour[_DYN_LENGTH ] < 2 ? "0" + hour : hour;
2506
2618
  return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
2507
2619
  }
2508
2620
  function getExtensionByName(extensions, identifier) {
@@ -2519,8 +2631,6 @@ function isCrossOriginError(message, url, lineNumber, columnNumber, error) {
2519
2631
  return !error && isString(message) && (message === "Script error." || message === "Script error");
2520
2632
  }
2521
2633
 
2522
- var strNotSpecified = "not_specified";
2523
-
2524
2634
  var StorageType = createEnumStyle({
2525
2635
  LocalStorage: 0 ,
2526
2636
  SessionStorage: 1
@@ -2544,11 +2654,11 @@ function _getVerifiedStorageObject(storageType) {
2544
2654
  if (isNullOrUndefined(getGlobal())) {
2545
2655
  return null;
2546
2656
  }
2547
- var uid = (new Date).toString();
2657
+ var uid = (new Date)[_DYN_TO_STRING ]();
2548
2658
  var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
2549
2659
  storage.setItem(uid, uid);
2550
2660
  var fail = storage.getItem(uid) !== uid;
2551
- storage.removeItem(uid);
2661
+ storage[_DYN_REMOVE_ITEM ](uid);
2552
2662
  if (!fail) {
2553
2663
  return storage;
2554
2664
  }
@@ -2604,7 +2714,7 @@ function utlRemoveStorage(logger, name) {
2604
2714
  var storage = _getLocalStorageObject();
2605
2715
  if (storage !== null) {
2606
2716
  try {
2607
- storage.removeItem(name);
2717
+ storage[_DYN_REMOVE_ITEM ](name);
2608
2718
  return true;
2609
2719
  }
2610
2720
  catch (e) {
@@ -2660,7 +2770,7 @@ function utlRemoveSessionStorage(logger, name) {
2660
2770
  var storage = _getSessionStorageObject();
2661
2771
  if (storage !== null) {
2662
2772
  try {
2663
- storage.removeItem(name);
2773
+ storage[_DYN_REMOVE_ITEM ](name);
2664
2774
  return true;
2665
2775
  }
2666
2776
  catch (e) {
@@ -2672,12 +2782,12 @@ function utlRemoveSessionStorage(logger, name) {
2672
2782
  }
2673
2783
 
2674
2784
  var _internalEndpoints = [
2675
- "https://dc.services.visualstudio.com/v2/track",
2676
- "https://breeze.aimon.applicationinsights.io/v2/track",
2677
- "https://dc-int.services.visualstudio.com/v2/track"
2785
+ DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH,
2786
+ "https://breeze.aimon.applicationinsights.io" + DEFAULT_BREEZE_PATH,
2787
+ "https://dc-int.services.visualstudio.com" + DEFAULT_BREEZE_PATH
2678
2788
  ];
2679
2789
  function isInternalApplicationInsightsEndpoint(endpointUrl) {
2680
- return arrIndexOf(_internalEndpoints, endpointUrl.toLowerCase()) !== -1;
2790
+ return arrIndexOf(_internalEndpoints, endpointUrl[_DYN_TO_LOWER_CASE ]()) !== -1;
2681
2791
  }
2682
2792
  var Util = {
2683
2793
  NotSpecified: strNotSpecified,
@@ -2720,157 +2830,25 @@ var Util = {
2720
2830
  getExtension: getExtensionByName
2721
2831
  };
2722
2832
 
2723
- 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";
2724
- console.log(Util.getIEVersion());
2725
- 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((Util.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(Util.getIEVersion() && Util.getIEVersion() < 9
2726
- ? ""
2727
- : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
2728
- ? ""
2729
- : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
2730
- ? ""
2731
- : ".".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((Util.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((Util.getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.on {\n background-color: #0078D4;\n }\n\n ").concat(Util.getIEVersion() && Util.getIEVersion() < 9
2732
- ? ""
2733
- : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
2734
- ? ""
2735
- : "@media only screen and (max-width: 600px) {\n .".concat(prefix, "-dbg-lgr {\n width: 100%;\n min-width: 200px;\n }\n }"), "\n\n"); };
2736
- var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(Util.getIEVersion() && Util.getIEVersion() < 9
2737
- ? "width: 100%;\n height: 100%;\n top: 0;\n left: 0;"
2738
- : "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((Util.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(Util.getIEVersion() && Util.getIEVersion() < 9
2739
- ? ""
2740
- : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
2741
- ? ""
2742
- : ".".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"); };
2743
-
2744
- var FilterList = /** @class */ (function () {
2745
- function FilterList(parent, trackers, toggleCb) {
2746
- var _this = this;
2747
- this.children = [];
2748
- this.getCurrentFilter = function () {
2749
- return _this.filterList;
2750
- };
2751
- var _self = this;
2752
- var active = false;
2753
- trackers = trackers.concat("other");
2754
- _self.filterList = [];
2755
- _self.el = document.createElement("div");
2756
- _self.el.className = "filterlist";
2757
- var inputEl = document.createElement("div");
2758
- inputEl.className = "filterlist-input";
2759
- inputEl.innerText = "filter nodes...";
2760
- _self.el.appendChild(inputEl);
2761
- var dropdownMenuEl = document.createElement("div");
2762
- dropdownMenuEl.className = "filterlist-dropdown";
2763
- _self.el.appendChild(dropdownMenuEl);
2764
- dropdownMenuEl.onkeyup = function (evt) {
2765
- if (active && evt.keyCode === 27) {
2766
- evt.stopPropagation();
2767
- _hideDropdown();
2768
- }
2769
- };
2770
- var _loop_1 = function (t) {
2771
- var chEl = document.createElement("div");
2772
- chEl.setAttribute("tabindex", "0");
2773
- chEl.setAttribute("filter-type", t);
2774
- chEl.className = "filterlist-toggle";
2775
- var checkbox = document.createElement("div");
2776
- checkbox.className = "checkbox on";
2777
- var label = document.createElement("span");
2778
- label.className = "label";
2779
- label.innerText = t;
2780
- chEl.appendChild(checkbox);
2781
- chEl.appendChild(label);
2782
- chEl.onkeyup = function (evt) {
2783
- if (active && evt.keyCode === 27) {
2784
- evt.stopPropagation();
2785
- _hideDropdown();
2786
- }
2787
- };
2788
- chEl.onclick = function (evt) {
2789
- evt.stopPropagation();
2790
- chEl.focus();
2791
- if (checkbox.className === "checkbox off") {
2792
- if (evt.shiftKey) {
2793
- _self.filterList = trackers.concat();
2794
- for (var _i = 0, _a = _self.children; _i < _a.length; _i++) {
2795
- var ch = _a[_i];
2796
- ch.childNodes[0].className = "checkbox off";
2797
- }
2798
- }
2799
- _self.filterList.splice(arrIndexOf(_self.filterList, t), 1);
2800
- checkbox.className = "checkbox on";
2801
- }
2802
- else {
2803
- if (evt.shiftKey) {
2804
- _self.filterList = [];
2805
- for (var _b = 0, _c = _self.children; _b < _c.length; _b++) {
2806
- var ch = _c[_b];
2807
- ch.childNodes[0].className = "checkbox on";
2808
- }
2809
- }
2810
- _self.filterList.push(t);
2811
- checkbox.className = "checkbox off";
2812
- }
2813
- toggleCb();
2814
- };
2815
- _self.children.push(chEl);
2816
- };
2817
- for (var _i = 0, trackers_1 = trackers; _i < trackers_1.length; _i++) {
2818
- var t = trackers_1[_i];
2819
- _loop_1(t);
2820
- }
2821
- function _hideDropdown() {
2822
- active = false;
2823
- for (var _i = 0, _a = _self.children; _i < _a.length; _i++) {
2824
- var ch = _a[_i];
2825
- dropdownMenuEl.removeChild(ch);
2826
- }
2827
- }
2828
- function _showDropdown() {
2829
- active = true;
2830
- for (var _i = 0, _a = _self.children; _i < _a.length; _i++) {
2831
- var ch = _a[_i];
2832
- dropdownMenuEl.appendChild(ch);
2833
- }
2834
- dropdownMenuEl.focus();
2835
- }
2836
- _self.el.onkeyup = function (evt) {
2837
- if (active && evt.keyCode === 27) {
2838
- evt.stopPropagation();
2839
- _hideDropdown();
2840
- }
2841
- };
2842
- _self.el.onclick = function () {
2843
- if (!active) {
2844
- _showDropdown();
2845
- }
2846
- else {
2847
- _hideDropdown();
2848
- }
2849
- };
2850
- parent.appendChild(_self.el);
2851
- }
2852
- return FilterList;
2853
- }());
2854
-
2855
2833
  var strConstructor = "constructor";
2856
2834
  var strGetOwnPropertyNames = "getOwnPropertyNames";
2857
2835
  var MAX_DEPTH = 16;
2858
2836
  function makeRegex(value) {
2859
- if (value && value.length > 0) {
2860
- value = value.replace(/\\/g, "\\\\");
2861
- value = value.replace(/([\+\?\|\{\}\[\]\(\)\^\$\#\.\=\!\:\/])/g, "\\$1");
2837
+ if (value && value[_DYN_LENGTH$1 ] > 0) {
2838
+ value = value[_DYN_REPLACE ](/\\/g, "\\\\");
2839
+ value = value[_DYN_REPLACE ](/([\+\?\|\{\}\[\]\(\)\^\$\#\.\=\!\:\/])/g, "\\$1");
2862
2840
  value = value.replace(/\*/g, ".*");
2863
2841
  return new RegExp("(" + value + ")");
2864
2842
  }
2865
2843
  return null;
2866
2844
  }
2867
2845
  function toggleClassName(el, className) {
2868
- var idx = el.className.indexOf(className);
2846
+ var idx = el[_DYN_CLASS_NAME ].indexOf(className);
2869
2847
  if (idx === -1) {
2870
- el.className += className;
2848
+ el[_DYN_CLASS_NAME ] += className;
2871
2849
  }
2872
2850
  else {
2873
- el.className = el.className.substring(0, idx) + el.className.substring(idx + className.length);
2851
+ el[_DYN_CLASS_NAME ] = el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](0, idx) + el[_DYN_CLASS_NAME ][_DYN_SUBSTRING ](idx + className[_DYN_LENGTH$1 ]);
2874
2852
  }
2875
2853
  }
2876
2854
  function traverseAndReplace(target, maxDepth, currentDepth, thingsReferenced, excludedKeys, includeFunctions) {
@@ -2883,7 +2861,7 @@ function traverseAndReplace(target, maxDepth, currentDepth, thingsReferenced, ex
2883
2861
  var key = _a[_i];
2884
2862
  var targetValue = target[key];
2885
2863
  if (isSymbol(targetValue)) {
2886
- targetValue = targetValue.toString();
2864
+ targetValue = targetValue[_DYN_TO_STRING$1 ]();
2887
2865
  }
2888
2866
  if (targetValue !== null && arrIndexOf(thingsReferenced, targetValue) !== -1) {
2889
2867
  out[key] = "<circular (".concat(key, " - \"").concat(getTargetName(targetValue), "\")>");
@@ -2893,7 +2871,7 @@ function traverseAndReplace(target, maxDepth, currentDepth, thingsReferenced, ex
2893
2871
  out[key] = "<max allowed depth reached>";
2894
2872
  }
2895
2873
  else {
2896
- thingsReferenced.push(target);
2874
+ thingsReferenced[_DYN_PUSH ](target);
2897
2875
  out[key] = traverseAndReplace(targetValue, maxDepth, currentDepth + 1, thingsReferenced, excludedKeys, includeFunctions);
2898
2876
  thingsReferenced.pop();
2899
2877
  }
@@ -2907,9 +2885,9 @@ function traverseAndReplace(target, maxDepth, currentDepth, thingsReferenced, ex
2907
2885
  }
2908
2886
  function _sanitizeText(value) {
2909
2887
  if (value) {
2910
- value = value.replace(/&/g, "&amp;");
2911
- value = value.replace(/>/g, "&gt;");
2912
- value = value.replace(/</g, "&lt;");
2888
+ value = value[_DYN_REPLACE ](/&/g, "&amp;");
2889
+ value = value[_DYN_REPLACE ](/>/g, "&gt;");
2890
+ value = value[_DYN_REPLACE ](/</g, "&lt;");
2913
2891
  }
2914
2892
  return value;
2915
2893
  }
@@ -2922,19 +2900,19 @@ function _setInnerText(elm, theText, textFilter) {
2922
2900
  var matchTxt = rg.exec(innerText);
2923
2901
  if (matchTxt && matchTxt[1]) {
2924
2902
  matchPos = theText.indexOf(matchTxt[1]);
2925
- matchLen = matchTxt[1].length;
2903
+ matchLen = matchTxt[1][_DYN_LENGTH$1 ];
2926
2904
  }
2927
2905
  }
2928
2906
  if (matchPos !== -1) {
2929
- var innerHtml = _sanitizeText(theText.substring(0, matchPos)) +
2907
+ var innerHtml = _sanitizeText(theText[_DYN_SUBSTRING ](0, matchPos)) +
2930
2908
  "<span class=\"matched-text-filter\">" +
2931
- _sanitizeText(theText.substring(matchPos, matchPos + matchLen)) +
2909
+ _sanitizeText(theText[_DYN_SUBSTRING ](matchPos, matchPos + matchLen)) +
2932
2910
  "</span>" +
2933
- theText.substring(matchPos + matchLen);
2934
- elm.innerHTML = innerHtml;
2911
+ theText[_DYN_SUBSTRING ](matchPos + matchLen);
2912
+ elm[_DYN_INNER_HTML ] = innerHtml;
2935
2913
  return true;
2936
2914
  }
2937
- elm.innerText = theText;
2915
+ elm[_DYN_INNER_TEXT ] = theText;
2938
2916
  return false;
2939
2917
  }
2940
2918
  var lastSelectedElement;
@@ -2944,53 +2922,53 @@ function copySelectedTree() {
2944
2922
  if (!toCopy) {
2945
2923
  return;
2946
2924
  }
2947
- var textArea = document.createElement("textarea");
2948
- textArea.innerText = JSON.stringify(toCopy);
2925
+ var textArea = document[_DYN_CREATE_ELEMENT ]("textarea");
2926
+ textArea[_DYN_INNER_TEXT ] = JSON.stringify(toCopy);
2949
2927
  textArea.style.opacity = "0";
2950
- document.body.appendChild(textArea);
2928
+ document.body[_DYN_APPEND_CHILD ](textArea);
2951
2929
  textArea.select();
2952
2930
  document.execCommand("copy");
2953
- textArea.parentElement.removeChild(textArea);
2931
+ textArea[_DYN_PARENT_ELEMENT ][_DYN_REMOVE_CHILD ](textArea);
2954
2932
  }
2955
2933
  function focusHandler(evt, target, level, excludeKeys, includeFunctions) {
2956
2934
  if (lastSelectedElement) {
2957
2935
  toggleClassName(lastSelectedElement, " last-selected-element");
2958
2936
  }
2959
- lastSelectedElement = evt.target;
2937
+ lastSelectedElement = evt[_DYN_TARGET ];
2960
2938
  for (var i = 0; i < 10; i++) {
2961
2939
  if (lastSelectedElement.tagName === "DIV") {
2962
2940
  break;
2963
2941
  }
2964
- lastSelectedElement = lastSelectedElement.parentElement;
2942
+ lastSelectedElement = lastSelectedElement[_DYN_PARENT_ELEMENT ];
2965
2943
  }
2966
- lastSelectedElement.className += " last-selected-element";
2944
+ lastSelectedElement[_DYN_CLASS_NAME ] += " last-selected-element";
2967
2945
  selectedObject = traverseAndReplace(target, MAX_DEPTH, level, null, excludeKeys, includeFunctions);
2968
2946
  }
2969
2947
  function _navHandler(evt, openHandler, currentState) {
2970
- var el = evt.target;
2948
+ var el = evt[_DYN_TARGET ];
2971
2949
  switch (evt.which) {
2972
2950
  case 13:
2973
2951
  (openHandler) ? openHandler(evt) : void 0;
2974
2952
  break;
2975
2953
  case 38:
2976
- evt.preventDefault();
2954
+ evt[_DYN_PREVENT_DEFAULT ]();
2977
2955
  var prev = el.previousElementSibling;
2978
2956
  if (prev && prev.tagName !== "BUTTON") {
2979
- prev.focus();
2957
+ prev[_DYN_FOCUS ]();
2980
2958
  }
2981
2959
  break;
2982
2960
  case 40:
2983
- evt.preventDefault();
2961
+ evt[_DYN_PREVENT_DEFAULT ]();
2984
2962
  var next = el.nextElementSibling;
2985
2963
  if (next) {
2986
- next.focus();
2964
+ next[_DYN_FOCUS ]();
2987
2965
  }
2988
2966
  break;
2989
2967
  case 39:
2990
2968
  if (openHandler) {
2991
2969
  openHandler(evt, true);
2992
2970
  if (currentState) {
2993
- el.firstElementChild.nextSibling.focus();
2971
+ el.firstElementChild.nextSibling[_DYN_FOCUS ]();
2994
2972
  }
2995
2973
  }
2996
2974
  break;
@@ -2999,29 +2977,29 @@ function _navHandler(evt, openHandler, currentState) {
2999
2977
  openHandler(evt, false);
3000
2978
  }
3001
2979
  if (!currentState) {
3002
- el.parentElement.focus();
2980
+ el[_DYN_PARENT_ELEMENT ][_DYN_FOCUS ]();
3003
2981
  }
3004
2982
  break;
3005
2983
  case 67:
3006
2984
  if (evt.ctrlKey) {
3007
2985
  copySelectedTree();
3008
- evt.target.focus();
2986
+ evt[_DYN_TARGET ][_DYN_FOCUS ]();
3009
2987
  }
3010
2988
  break;
3011
2989
  }
3012
2990
  }
3013
2991
  function getTargetName(target) {
3014
2992
  if (target) {
3015
- if (isString(target.identifier)) {
3016
- return target.identifier;
2993
+ if (isString(target[_DYN_IDENTIFIER ])) {
2994
+ return target[_DYN_IDENTIFIER ];
3017
2995
  }
3018
- if (isString(target.name)) {
3019
- return target.name;
2996
+ if (isString(target[_DYN_NAME ])) {
2997
+ return target[_DYN_NAME ];
3020
2998
  }
3021
2999
  if (hasOwnProperty(target, strShimPrototype)) {
3022
- return target.name || "";
3000
+ return target[_DYN_NAME ] || "";
3023
3001
  }
3024
- return ((target[strConstructor]) || {}).name || "";
3002
+ return ((target[strConstructor]) || {})[_DYN_NAME ] || "";
3025
3003
  }
3026
3004
  return "";
3027
3005
  }
@@ -3030,7 +3008,7 @@ function _toString(value) {
3030
3008
  return value;
3031
3009
  }
3032
3010
  if (isSymbol(value)) {
3033
- return value.toString();
3011
+ return value[_DYN_TO_STRING$1 ]();
3034
3012
  }
3035
3013
  if (isFunction(value["toString"])) {
3036
3014
  return value["toString"]() || "";
@@ -3047,7 +3025,7 @@ function getTargetKeys(target, excludedKeys, includeFunctions) {
3047
3025
  arrForEach(propKeys, function (key) {
3048
3026
  var theKey = _toString(key);
3049
3027
  if (theKey && arrIndexOf(keys, theKey) === -1) {
3050
- keys.push(key);
3028
+ keys[_DYN_PUSH ](key);
3051
3029
  }
3052
3030
  });
3053
3031
  }
@@ -3063,7 +3041,7 @@ function getTargetKeys(target, excludedKeys, includeFunctions) {
3063
3041
  }
3064
3042
  var theKey = _toString(key);
3065
3043
  if (theKey && arrIndexOf(excludedKeys, theKey) === -1) {
3066
- theKeys.push(theKey);
3044
+ theKeys[_DYN_PUSH ](theKey);
3067
3045
  }
3068
3046
  });
3069
3047
  return theKeys;
@@ -3076,28 +3054,28 @@ function formatLogElements(target, tmLabel, key, level, textFilter, excludeKeys,
3076
3054
  if (!thingsReferenced) {
3077
3055
  thingsReferenced = [];
3078
3056
  }
3079
- var isObj = isObject(target) || Util.isError(target);
3080
- var isErr = target["baseType"] === "ExceptionData" || Util.isError(target);
3057
+ var isObj = isObject(target) || Util[_DYN_IS_ERROR ](target);
3058
+ var isErr = target["baseType"] === "ExceptionData" || Util[_DYN_IS_ERROR ](target);
3081
3059
  var children = [];
3082
3060
  function _openNode(currentLine) {
3083
3061
  openState = true;
3084
3062
  arrForEach(children, function (child) {
3085
- rootDiv.appendChild(child);
3063
+ rootDiv[_DYN_APPEND_CHILD ](child);
3086
3064
  });
3087
- currentLine.className = "obj-key expandable open";
3065
+ currentLine[_DYN_CLASS_NAME ] = "obj-key expandable open";
3088
3066
  }
3089
3067
  function _collapseNode(currentLine) {
3090
3068
  arrForEach(children, function (child) {
3091
- rootDiv.removeChild(child);
3069
+ rootDiv[_DYN_REMOVE_CHILD ](child);
3092
3070
  });
3093
3071
  openState = false;
3094
- currentLine.className = "obj-key expandable closed";
3072
+ currentLine[_DYN_CLASS_NAME ] = "obj-key expandable closed";
3095
3073
  }
3096
3074
  var matched = false;
3097
3075
  var childOpened = false;
3098
3076
  var keys = getTargetKeys(target, excludeKeys, includeFunctions);
3099
- if (keys.length === 0) {
3100
- keys.push("<empty>");
3077
+ if (keys[_DYN_LENGTH$1 ] === 0) {
3078
+ keys[_DYN_PUSH ]("<empty>");
3101
3079
  }
3102
3080
  if (level >= MAX_DEPTH) {
3103
3081
  keys.unshift("<maxdepth>");
@@ -3109,29 +3087,29 @@ function formatLogElements(target, tmLabel, key, level, textFilter, excludeKeys,
3109
3087
  }
3110
3088
  var targetValue = target[key_1];
3111
3089
  if (isSymbol(targetValue)) {
3112
- targetValue = targetValue.toString();
3090
+ targetValue = targetValue[_DYN_TO_STRING$1 ]();
3113
3091
  }
3114
3092
  if (key_1 === "<maxdepth>") {
3115
- var builder = document.createElement("div");
3116
- builder.className = "empty";
3117
- builder.innerText = "<max allowed depth reached>";
3118
- children.push(builder);
3093
+ var builder = document[_DYN_CREATE_ELEMENT ]("div");
3094
+ builder[_DYN_CLASS_NAME ] = "empty";
3095
+ builder[_DYN_INNER_TEXT ] = "<max allowed depth reached>";
3096
+ children[_DYN_PUSH ](builder);
3119
3097
  break;
3120
3098
  }
3121
3099
  else if (key_1 === "<empty>") {
3122
- var builder = document.createElement("div");
3123
- builder.className = "empty";
3124
- builder.innerText = "<empty>";
3125
- children.push(builder);
3100
+ var builder = document[_DYN_CREATE_ELEMENT ]("div");
3101
+ builder[_DYN_CLASS_NAME ] = "empty";
3102
+ builder[_DYN_INNER_TEXT ] = "<empty>";
3103
+ children[_DYN_PUSH ](builder);
3126
3104
  }
3127
3105
  else if (targetValue !== null && arrIndexOf(thingsReferenced, targetValue) !== -1) {
3128
- var builder = document.createElement("div");
3129
- builder.className = "empty";
3130
- builder.innerText = "<circular (".concat(key_1, ") - \"").concat(getTargetName(targetValue), "\">");
3131
- children.push(builder);
3106
+ var builder = document[_DYN_CREATE_ELEMENT ]("div");
3107
+ builder[_DYN_CLASS_NAME ] = "empty";
3108
+ builder[_DYN_INNER_TEXT ] = "<circular (".concat(key_1, ") - \"").concat(getTargetName(targetValue), "\">");
3109
+ children[_DYN_PUSH ](builder);
3132
3110
  }
3133
- else if (targetValue !== null && (isObject(targetValue) || Util.isError(targetValue))) {
3134
- thingsReferenced.push(target);
3111
+ else if (targetValue !== null && (isObject(targetValue) || Util[_DYN_IS_ERROR ](targetValue))) {
3112
+ thingsReferenced[_DYN_PUSH ](target);
3135
3113
  var formatted = formatLogElements(targetValue, null, key_1, level + 1, textFilter, excludeKeys, thingsReferenced, includeFunctions);
3136
3114
  thingsReferenced.pop();
3137
3115
  if (formatted.matched) {
@@ -3140,34 +3118,34 @@ function formatLogElements(target, tmLabel, key, level, textFilter, excludeKeys,
3140
3118
  if (formatted.isErr) {
3141
3119
  isErr = true;
3142
3120
  }
3143
- children.push(formatted.root);
3121
+ children[_DYN_PUSH ](formatted.root);
3144
3122
  }
3145
3123
  else {
3146
- var builder = document.createElement("div");
3147
- builder.setAttribute("tabindex", "0");
3148
- builder.onclick = function (evt) {
3149
- evt.stopPropagation();
3124
+ var builder = document[_DYN_CREATE_ELEMENT ]("div");
3125
+ builder[_DYN_SET_ATTRIBUTE ]("tabindex", "0");
3126
+ builder[_DYN_ONCLICK ] = function (evt) {
3127
+ evt[_DYN_STOP_PROPAGATION ]();
3150
3128
  };
3151
- builder.ontouchend = function (evt) {
3152
- evt.stopPropagation();
3129
+ builder[_DYN_ONTOUCHEND ] = function (evt) {
3130
+ evt[_DYN_STOP_PROPAGATION ]();
3153
3131
  };
3154
- builder.onkeydown = function (evt) {
3155
- evt.stopPropagation();
3132
+ builder[_DYN_ONKEYDOWN ] = function (evt) {
3133
+ evt[_DYN_STOP_PROPAGATION ]();
3156
3134
  _navHandler(evt);
3157
3135
  };
3158
3136
  builder.onfocus = function (evt) {
3159
3137
  focusHandler(evt, target, level, excludeKeys, includeFunctions);
3160
3138
  };
3161
- var outerSpan = document.createElement("span");
3162
- var keySpan = document.createElement("span");
3163
- keySpan.className = "key";
3139
+ var outerSpan = document[_DYN_CREATE_ELEMENT ]("span");
3140
+ var keySpan = document[_DYN_CREATE_ELEMENT ]("span");
3141
+ keySpan[_DYN_CLASS_NAME ] = "key";
3164
3142
  if (_setInnerText(keySpan, "".concat(key_1, ": "), textFilter)) {
3165
3143
  childOpened = true;
3166
3144
  }
3167
- outerSpan.appendChild(keySpan);
3168
- var valueSpan = document.createElement("span");
3145
+ outerSpan[_DYN_APPEND_CHILD ](keySpan);
3146
+ var valueSpan = document[_DYN_CREATE_ELEMENT ]("span");
3169
3147
  if (isFunction(targetValue)) {
3170
- var fnStr = targetValue.toString();
3148
+ var fnStr = targetValue[_DYN_TO_STRING$1 ]();
3171
3149
  var fnHead = fnStr.match(/^([^{]+)/)[1];
3172
3150
  valueSpan.textContent = "".concat(fnHead, "{...}");
3173
3151
  }
@@ -3176,16 +3154,16 @@ function formatLogElements(target, tmLabel, key, level, textFilter, excludeKeys,
3176
3154
  childOpened = true;
3177
3155
  }
3178
3156
  }
3179
- valueSpan.className = "".concat(typeof targetValue);
3180
- outerSpan.appendChild(valueSpan);
3181
- builder.appendChild(outerSpan);
3182
- children.push(builder);
3157
+ valueSpan[_DYN_CLASS_NAME ] = "".concat(typeof targetValue);
3158
+ outerSpan[_DYN_APPEND_CHILD ](valueSpan);
3159
+ builder[_DYN_APPEND_CHILD ](outerSpan);
3160
+ children[_DYN_PUSH ](builder);
3183
3161
  }
3184
3162
  }
3185
- var rootDiv = document.createElement("div");
3163
+ var rootDiv = document[_DYN_CREATE_ELEMENT ]("div");
3186
3164
  var innerText = "";
3187
- var currentLine = document.createElement("span");
3188
- if (isObj || children.length) {
3165
+ var currentLine = document[_DYN_CREATE_ELEMENT ]("span");
3166
+ if (isObj || children[_DYN_LENGTH$1 ]) {
3189
3167
  innerText = "".concat(key ? key : "obj", ": ");
3190
3168
  if (Util.isArray(target)) {
3191
3169
  innerText += "[".concat(getTargetKeys(target, excludeKeys, includeFunctions).length, "]");
@@ -3199,32 +3177,32 @@ function formatLogElements(target, tmLabel, key, level, textFilter, excludeKeys,
3199
3177
  }
3200
3178
  matched = _setInnerText(currentLine, innerText, textFilter);
3201
3179
  if (tmLabel) {
3202
- var tmWrapper = document.createElement("span");
3203
- var tmDetails = document.createElement("span");
3204
- tmDetails.className = "obj-time";
3205
- tmDetails.innerText = tmLabel;
3206
- tmWrapper.appendChild(tmDetails);
3207
- tmWrapper.appendChild(currentLine);
3180
+ var tmWrapper = document[_DYN_CREATE_ELEMENT ]("span");
3181
+ var tmDetails = document[_DYN_CREATE_ELEMENT ]("span");
3182
+ tmDetails[_DYN_CLASS_NAME ] = "obj-time";
3183
+ tmDetails[_DYN_INNER_TEXT ] = tmLabel;
3184
+ tmWrapper[_DYN_APPEND_CHILD ](tmDetails);
3185
+ tmWrapper[_DYN_APPEND_CHILD ](currentLine);
3208
3186
  currentLine = tmWrapper;
3209
3187
  }
3210
- currentLine.className = "obj-key expandable closed";
3188
+ currentLine[_DYN_CLASS_NAME ] = "obj-key expandable closed";
3211
3189
  }
3212
3190
  else {
3213
3191
  innerText = "".concat(key ? key : "obj", ": ").concat(target.toString());
3214
3192
  matched = _setInnerText(currentLine, innerText, textFilter);
3215
- currentLine.className = "obj-key";
3193
+ currentLine[_DYN_CLASS_NAME ] = "obj-key";
3216
3194
  }
3217
- rootDiv.appendChild(currentLine);
3218
- rootDiv.setAttribute("tabindex", "0");
3195
+ rootDiv[_DYN_APPEND_CHILD ](currentLine);
3196
+ rootDiv[_DYN_SET_ATTRIBUTE ]("tabindex", "0");
3219
3197
  if (childOpened) {
3220
3198
  _openNode(currentLine);
3221
3199
  }
3222
3200
  if (isObj) {
3223
3201
  if (isErr) {
3224
- rootDiv.className = "exception";
3202
+ rootDiv[_DYN_CLASS_NAME ] = "exception";
3225
3203
  }
3226
3204
  var openHandler_1 = function (evt, forceState) {
3227
- evt.stopPropagation();
3205
+ evt[_DYN_STOP_PROPAGATION ]();
3228
3206
  if (Util.getIEVersion()) {
3229
3207
  focusHandler(evt, target, level, excludeKeys, includeFunctions);
3230
3208
  }
@@ -3240,13 +3218,13 @@ function formatLogElements(target, tmLabel, key, level, textFilter, excludeKeys,
3240
3218
  }
3241
3219
  }
3242
3220
  };
3243
- rootDiv.onkeydown = function (evt) {
3221
+ rootDiv[_DYN_ONKEYDOWN ] = function (evt) {
3244
3222
  _navHandler(evt, openHandler_1, openState);
3245
3223
  };
3246
- rootDiv.onclick = function (evt) {
3224
+ rootDiv[_DYN_ONCLICK ] = function (evt) {
3247
3225
  openHandler_1(evt);
3248
3226
  };
3249
- rootDiv.ontouchend = function (evt) {
3227
+ rootDiv[_DYN_ONTOUCHEND ] = function (evt) {
3250
3228
  openHandler_1(evt);
3251
3229
  };
3252
3230
  rootDiv.onfocus = function (evt) {
@@ -3278,15 +3256,15 @@ var LogEntry = /** @class */ (function () {
3278
3256
  function _testObj(rg, value, excludedKeys, includeFunctions) {
3279
3257
  if (value !== null && value !== undefined && value !== "") {
3280
3258
  if (Util.isArray(value)) {
3281
- for (var lp = 0; lp < value.length; lp++) {
3259
+ for (var lp = 0; lp < value[_DYN_LENGTH$1 ]; lp++) {
3282
3260
  if (_testObj(rg, value[lp], excludedKeys, includeFunctions)) {
3283
3261
  return true;
3284
3262
  }
3285
3263
  }
3286
3264
  }
3287
- else if (isObject(value) || Util.isError(value)) {
3265
+ else if (isObject(value) || Util[_DYN_IS_ERROR ](value)) {
3288
3266
  var keys = getTargetKeys(value, excludedKeys, includeFunctions);
3289
- for (var lp = 0; lp < keys.length; lp++) {
3267
+ for (var lp = 0; lp < keys[_DYN_LENGTH$1 ]; lp++) {
3290
3268
  var key_1 = keys[lp];
3291
3269
  if (_testValue(rg, key_1) || _testObj(rg, value[key_1], excludedKeys, includeFunctions)) {
3292
3270
  return true;
@@ -3315,15 +3293,15 @@ var LogEntry = /** @class */ (function () {
3315
3293
  }
3316
3294
  return true;
3317
3295
  };
3318
- _self.render = function (textFilter, excludeKeys, includeFunctions) {
3296
+ _self[_DYN_RENDER ] = function (textFilter, excludeKeys, includeFunctions) {
3319
3297
  if (!theEl || lastTextFilter !== textFilter) {
3320
3298
  lastTextFilter = textFilter;
3321
3299
  var ms = "" + tm;
3322
- while (ms.length < 4) {
3300
+ while (ms[_DYN_LENGTH$1 ] < 4) {
3323
3301
  ms = "0" + ms;
3324
3302
  }
3325
- ms = ms.replace(/(.)(\d{3}){1}$/g, "$1.$2s");
3326
- while (ms.length <= 9) {
3303
+ ms = ms[_DYN_REPLACE ](/(.)(\d{3}){1}$/g, "$1.$2s");
3304
+ while (ms[_DYN_LENGTH$1 ] <= 9) {
3327
3305
  ms = " " + ms;
3328
3306
  }
3329
3307
  theEl = formatLogElements(target, "[".concat(ms, "]"), key, level, textFilter, excludeKeys, [], includeFunctions).root;
@@ -3331,7 +3309,7 @@ var LogEntry = /** @class */ (function () {
3331
3309
  }
3332
3310
  return theEl;
3333
3311
  };
3334
- _self.getEl = function () {
3312
+ _self[_DYN_GET_EL ] = function () {
3335
3313
  return theEl;
3336
3314
  };
3337
3315
  _self.getKind = function () {
@@ -3341,6 +3319,138 @@ var LogEntry = /** @class */ (function () {
3341
3319
  return LogEntry;
3342
3320
  }());
3343
3321
 
3322
+ var FilterList = /** @class */ (function () {
3323
+ function FilterList(parent, trackers, toggleCb) {
3324
+ var _this = this;
3325
+ this.children = [];
3326
+ this.getCurrentFilter = function () {
3327
+ return _this[_DYN_FILTER_LIST ];
3328
+ };
3329
+ var _self = this;
3330
+ var active = false;
3331
+ trackers = trackers.concat("other");
3332
+ _self[_DYN_FILTER_LIST ] = [];
3333
+ _self.el = document[_DYN_CREATE_ELEMENT ]("div");
3334
+ _self.el[_DYN_CLASS_NAME ] = "filterlist";
3335
+ var inputEl = document[_DYN_CREATE_ELEMENT ]("div");
3336
+ inputEl[_DYN_CLASS_NAME ] = "filterlist-input";
3337
+ inputEl[_DYN_INNER_TEXT ] = "filter nodes...";
3338
+ _self.el[_DYN_APPEND_CHILD ](inputEl);
3339
+ var dropdownMenuEl = document[_DYN_CREATE_ELEMENT ]("div");
3340
+ dropdownMenuEl[_DYN_CLASS_NAME ] = "filterlist-dropdown";
3341
+ _self.el[_DYN_APPEND_CHILD ](dropdownMenuEl);
3342
+ dropdownMenuEl[_DYN_ONKEYUP ] = function (evt) {
3343
+ if (active && evt.keyCode === 27) {
3344
+ evt[_DYN_STOP_PROPAGATION ]();
3345
+ _hideDropdown();
3346
+ }
3347
+ };
3348
+ var _loop_1 = function (t) {
3349
+ var chEl = document[_DYN_CREATE_ELEMENT ]("div");
3350
+ chEl[_DYN_SET_ATTRIBUTE ]("tabindex", "0");
3351
+ chEl[_DYN_SET_ATTRIBUTE ]("filter-type", t);
3352
+ chEl[_DYN_CLASS_NAME ] = "filterlist-toggle";
3353
+ var checkbox = document[_DYN_CREATE_ELEMENT ]("div");
3354
+ checkbox[_DYN_CLASS_NAME ] = "checkbox on";
3355
+ var label = document[_DYN_CREATE_ELEMENT ]("span");
3356
+ label[_DYN_CLASS_NAME ] = "label";
3357
+ label[_DYN_INNER_TEXT ] = t;
3358
+ chEl[_DYN_APPEND_CHILD ](checkbox);
3359
+ chEl[_DYN_APPEND_CHILD ](label);
3360
+ chEl[_DYN_ONKEYUP ] = function (evt) {
3361
+ if (active && evt.keyCode === 27) {
3362
+ evt[_DYN_STOP_PROPAGATION ]();
3363
+ _hideDropdown();
3364
+ }
3365
+ };
3366
+ chEl[_DYN_ONCLICK ] = function (evt) {
3367
+ evt[_DYN_STOP_PROPAGATION ]();
3368
+ chEl[_DYN_FOCUS ]();
3369
+ if (checkbox[_DYN_CLASS_NAME ] === "checkbox off") {
3370
+ if (evt.shiftKey) {
3371
+ _self[_DYN_FILTER_LIST ] = trackers.concat();
3372
+ for (var _i = 0, _a = _self[_DYN_CHILDREN ]; _i < _a.length; _i++) {
3373
+ var ch = _a[_i];
3374
+ ch.childNodes[0][_DYN_CLASS_NAME ] = "checkbox off";
3375
+ }
3376
+ }
3377
+ _self[_DYN_FILTER_LIST ].splice(arrIndexOf(_self[_DYN_FILTER_LIST ], t), 1);
3378
+ checkbox[_DYN_CLASS_NAME ] = "checkbox on";
3379
+ }
3380
+ else {
3381
+ if (evt.shiftKey) {
3382
+ _self[_DYN_FILTER_LIST ] = [];
3383
+ for (var _b = 0, _c = _self[_DYN_CHILDREN ]; _b < _c.length; _b++) {
3384
+ var ch = _c[_b];
3385
+ ch.childNodes[0][_DYN_CLASS_NAME ] = "checkbox on";
3386
+ }
3387
+ }
3388
+ _self.filterList[_DYN_PUSH ](t);
3389
+ checkbox[_DYN_CLASS_NAME ] = "checkbox off";
3390
+ }
3391
+ toggleCb();
3392
+ };
3393
+ _self.children[_DYN_PUSH ](chEl);
3394
+ };
3395
+ for (var _i = 0, trackers_1 = trackers; _i < trackers_1.length; _i++) {
3396
+ var t = trackers_1[_i];
3397
+ _loop_1(t);
3398
+ }
3399
+ function _hideDropdown() {
3400
+ active = false;
3401
+ for (var _i = 0, _a = _self[_DYN_CHILDREN ]; _i < _a.length; _i++) {
3402
+ var ch = _a[_i];
3403
+ dropdownMenuEl[_DYN_REMOVE_CHILD ](ch);
3404
+ }
3405
+ }
3406
+ function _showDropdown() {
3407
+ active = true;
3408
+ for (var _i = 0, _a = _self[_DYN_CHILDREN ]; _i < _a.length; _i++) {
3409
+ var ch = _a[_i];
3410
+ dropdownMenuEl[_DYN_APPEND_CHILD ](ch);
3411
+ }
3412
+ dropdownMenuEl[_DYN_FOCUS ]();
3413
+ }
3414
+ _self.el[_DYN_ONKEYUP ] = function (evt) {
3415
+ if (active && evt.keyCode === 27) {
3416
+ evt[_DYN_STOP_PROPAGATION ]();
3417
+ _hideDropdown();
3418
+ }
3419
+ };
3420
+ _self.el[_DYN_ONCLICK ] = function () {
3421
+ if (!active) {
3422
+ _showDropdown();
3423
+ }
3424
+ else {
3425
+ _hideDropdown();
3426
+ }
3427
+ };
3428
+ parent[_DYN_APPEND_CHILD ](_self.el);
3429
+ }
3430
+ return FilterList;
3431
+ }());
3432
+
3433
+ 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";
3434
+ console.log(Util.getIEVersion());
3435
+ 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((Util.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(Util.getIEVersion() && Util.getIEVersion() < 9
3436
+ ? ""
3437
+ : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
3438
+ ? ""
3439
+ : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
3440
+ ? ""
3441
+ : ".".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((Util.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((Util.getIEVersion()) ? "" : "box-sizing: border-box;", "\n }\n\n .").concat(prefix, "-dbg-lgr-dashboard .checkbox.on {\n background-color: #0078D4;\n }\n\n ").concat(Util.getIEVersion() && Util.getIEVersion() < 9
3442
+ ? ""
3443
+ : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
3444
+ ? ""
3445
+ : "@media only screen and (max-width: 600px) {\n .".concat(prefix, "-dbg-lgr {\n width: 100%;\n min-width: 200px;\n }\n }"), "\n\n"); };
3446
+ var permStyle = function (prefix) { return "\n .".concat(prefix, "-debug-bin-container {\n position: fixed;\n ").concat(Util.getIEVersion() && Util.getIEVersion() < 9
3447
+ ? "width: 100%;\n height: 100%;\n top: 0;\n left: 0;"
3448
+ : "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((Util.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(Util.getIEVersion() && Util.getIEVersion() < 9
3449
+ ? ""
3450
+ : ".".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(Util.getIEVersion() && Util.getIEVersion() < 9
3451
+ ? ""
3452
+ : ".".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"); };
3453
+
3344
3454
  var Dashboard = /** @class */ (function () {
3345
3455
  function Dashboard(config) {
3346
3456
  var _this = this;
@@ -3351,54 +3461,54 @@ var Dashboard = /** @class */ (function () {
3351
3461
  var loggerEl;
3352
3462
  dynamicProto(Dashboard, this, function (_self) {
3353
3463
  var prefix = config.prefix;
3354
- var trackers = config.trackers;
3355
- var rootEl = document.createElement("div");
3356
- rootEl.className = "".concat(prefix, "-dbg-lgr-dashboard");
3357
- tempStyleEl = document.createElement("style");
3358
- tempStyleEl.innerHTML = tempStyle(prefix);
3464
+ var trackers = config[_DYN_TRACKERS ];
3465
+ var rootEl = document[_DYN_CREATE_ELEMENT ]("div");
3466
+ rootEl[_DYN_CLASS_NAME ] = "".concat(prefix, "-dbg-lgr-dashboard");
3467
+ tempStyleEl = document[_DYN_CREATE_ELEMENT ]("style");
3468
+ tempStyleEl[_DYN_INNER_HTML ] = tempStyle(prefix);
3359
3469
  rootEl.style.position = "fixed";
3360
3470
  rootEl.style.width = "100vw";
3361
3471
  rootEl.style.height = "100vh";
3362
3472
  rootEl.style.backgroundColor = "#ffffff";
3363
3473
  rootEl.style.opacity = "1";
3364
- rootEl.style.pointerEvents = "auto";
3474
+ rootEl.style[_DYN_POINTER_EVENTS ] = "auto";
3365
3475
  rootEl.style.top = "-100%";
3366
3476
  rootEl.style.transition = ".2s top cubic-bezier(0.87, 0, 0.13, 1)";
3367
- var logHeading = document.createElement("h1");
3477
+ var logHeading = document[_DYN_CREATE_ELEMENT ]("h1");
3368
3478
  logHeading.textContent = "dashboard";
3369
3479
  logHeading.style.fontFamily = "monospace";
3370
3480
  logHeading.style.textAlign = "center";
3371
- rootEl.appendChild(logHeading);
3481
+ rootEl[_DYN_APPEND_CHILD ](logHeading);
3372
3482
  _createLogger(rootEl, prefix, trackers);
3373
3483
  _self.getElm = function () {
3374
3484
  return rootEl;
3375
3485
  };
3376
- _self.isDisplayed = function () {
3377
- return !!(rootEl.parentElement || rootEl.parentNode);
3486
+ _self[_DYN_IS_DISPLAYED ] = function () {
3487
+ return !!(rootEl[_DYN_PARENT_ELEMENT ] || rootEl.parentNode);
3378
3488
  };
3379
3489
  _self.getTextFilter = function () {
3380
3490
  return textFilter;
3381
3491
  };
3382
- _self.setTextFilter = function (value) {
3492
+ _self[_DYN_SET_TEXT_FILTER ] = function (value) {
3383
3493
  if (value !== textFilter) {
3384
3494
  textFilter = value;
3385
- _self.render();
3495
+ _self[_DYN_RENDER ]();
3386
3496
  }
3387
3497
  };
3388
3498
  _self.getTrackers = function () {
3389
3499
  return trackers;
3390
3500
  };
3391
- _self.newLogEntry = function (target, tm, key, level, kind, keep) {
3501
+ _self[_DYN_NEW_LOG_ENTRY ] = function (target, tm, key, level, kind, keep) {
3392
3502
  var _self = _this;
3393
- msgTracker.push(new LogEntry(target, tm, key, level, kind, keep));
3394
- if (msgTracker.length > config.maxMessages) {
3503
+ msgTracker[_DYN_PUSH ](new LogEntry(target, tm, key, level, kind, keep));
3504
+ if (msgTracker.length > config[_DYN_MAX_MESSAGES ]) {
3395
3505
  var lp = 0;
3396
- while (lp < msgTracker.length) {
3506
+ while (lp < msgTracker[_DYN_LENGTH$1 ]) {
3397
3507
  var entry = msgTracker[lp];
3398
3508
  if (!entry.isKeep()) {
3399
- var el = entry.getEl();
3400
- if (el && el.parentElement) {
3401
- el.parentElement.removeChild(el);
3509
+ var el = entry[_DYN_GET_EL ]();
3510
+ if (el && el[_DYN_PARENT_ELEMENT ]) {
3511
+ el[_DYN_PARENT_ELEMENT ][_DYN_REMOVE_CHILD ](el);
3402
3512
  }
3403
3513
  msgTracker.splice(lp, 1);
3404
3514
  break;
@@ -3406,34 +3516,34 @@ var Dashboard = /** @class */ (function () {
3406
3516
  lp++;
3407
3517
  }
3408
3518
  }
3409
- _self.render();
3519
+ _self[_DYN_RENDER ]();
3410
3520
  };
3411
3521
  _self.show = function () {
3412
- if (!_this.isDisplayed()) {
3413
- document.body.appendChild(rootEl);
3414
- document.head.appendChild(tempStyleEl);
3522
+ if (!_this[_DYN_IS_DISPLAYED ]()) {
3523
+ document.body[_DYN_APPEND_CHILD ](rootEl);
3524
+ document.head[_DYN_APPEND_CHILD ](tempStyleEl);
3415
3525
  rootEl.style.top = "0%";
3416
- rootEl.style.pointerEvents = "auto";
3417
- _self.render();
3526
+ rootEl.style[_DYN_POINTER_EVENTS ] = "auto";
3527
+ _self[_DYN_RENDER ]();
3418
3528
  }
3419
3529
  };
3420
3530
  _self.hide = function () {
3421
- if (_self.isDisplayed()) {
3531
+ if (_self[_DYN_IS_DISPLAYED ]()) {
3422
3532
  rootEl.style.top = "-100%";
3423
- rootEl.style.pointerEvents = "none";
3424
- document.head.removeChild(tempStyleEl);
3425
- document.body.removeChild(rootEl);
3533
+ rootEl.style[_DYN_POINTER_EVENTS ] = "none";
3534
+ document.head[_DYN_REMOVE_CHILD ](tempStyleEl);
3535
+ document.body[_DYN_REMOVE_CHILD ](rootEl);
3426
3536
  }
3427
3537
  };
3428
- _self.render = function () {
3429
- if (_self.isDisplayed()) {
3538
+ _self[_DYN_RENDER ] = function () {
3539
+ if (_self[_DYN_IS_DISPLAYED ]()) {
3430
3540
  var excludedTypes_1 = filterList.getCurrentFilter();
3431
3541
  arrForEach(msgTracker, function (entry) {
3432
- var el = entry.getEl();
3433
- if (el && el.parentElement) {
3434
- el.parentElement.removeChild(el);
3542
+ var el = entry[_DYN_GET_EL ]();
3543
+ if (el && el[_DYN_PARENT_ELEMENT ]) {
3544
+ el[_DYN_PARENT_ELEMENT ][_DYN_REMOVE_CHILD ](el);
3435
3545
  }
3436
- if (!entry.isMatch(textFilter, config.excludeKeys, config.includeFunctions)) {
3546
+ if (!entry.isMatch(textFilter, config[_DYN_EXCLUDE_KEYS ], config[_DYN_INCLUDE_FUNCTIONS ])) {
3437
3547
  return;
3438
3548
  }
3439
3549
  var type = entry.getKind();
@@ -3444,9 +3554,9 @@ var Dashboard = /** @class */ (function () {
3444
3554
  else if (arrIndexOf(excludedTypes_1, type) !== -1) {
3445
3555
  return;
3446
3556
  }
3447
- var newEl = entry.render(textFilter, config.excludeKeys, config.includeFunctions);
3557
+ var newEl = entry.render(textFilter, config[_DYN_EXCLUDE_KEYS ], config[_DYN_INCLUDE_FUNCTIONS ]);
3448
3558
  if (newEl) {
3449
- loggerEl.appendChild(newEl);
3559
+ loggerEl[_DYN_APPEND_CHILD ](newEl);
3450
3560
  }
3451
3561
  });
3452
3562
  }
@@ -3455,36 +3565,36 @@ var Dashboard = /** @class */ (function () {
3455
3565
  var newEvents = [];
3456
3566
  arrForEach(msgTracker, function (entry) {
3457
3567
  if (entry.isKeep()) {
3458
- newEvents.push(entry);
3568
+ newEvents[_DYN_PUSH ](entry);
3459
3569
  }
3460
3570
  else {
3461
- var el = entry.getEl();
3462
- if (el && el.parentElement) {
3463
- el.parentElement.removeChild(el);
3571
+ var el = entry[_DYN_GET_EL ]();
3572
+ if (el && el[_DYN_PARENT_ELEMENT ]) {
3573
+ el[_DYN_PARENT_ELEMENT ][_DYN_REMOVE_CHILD ](el);
3464
3574
  }
3465
3575
  }
3466
3576
  });
3467
3577
  msgTracker = newEvents;
3468
- _self.render();
3578
+ _self[_DYN_RENDER ]();
3469
3579
  }
3470
3580
  function closeDashboard() {
3471
3581
  _self.hide();
3472
3582
  }
3473
3583
  function _createLogger(hostDiv, prefix, trackers) {
3474
- loggerEl = document.createElement("div");
3475
- loggerEl.className = "".concat(prefix, "-dbg-lgr");
3476
- var controlDiv = document.createElement("div");
3477
- controlDiv.className = "controls";
3478
- var textFilterInput = document.createElement("input");
3479
- textFilterInput.className = "text-filter-input";
3480
- textFilterInput.setAttribute("placeholder", "filter text");
3584
+ loggerEl = document[_DYN_CREATE_ELEMENT ]("div");
3585
+ loggerEl[_DYN_CLASS_NAME ] = "".concat(prefix, "-dbg-lgr");
3586
+ var controlDiv = document[_DYN_CREATE_ELEMENT ]("div");
3587
+ controlDiv[_DYN_CLASS_NAME ] = "controls";
3588
+ var textFilterInput = document[_DYN_CREATE_ELEMENT ]("input");
3589
+ textFilterInput[_DYN_CLASS_NAME ] = "text-filter-input";
3590
+ textFilterInput[_DYN_SET_ATTRIBUTE ]("placeholder", "filter text");
3481
3591
  textFilterInput.onchange = function (evt) {
3482
- _self.setTextFilter(textFilterInput.value);
3592
+ _self[_DYN_SET_TEXT_FILTER ](textFilterInput.value);
3483
3593
  };
3484
3594
  textFilterInput.onblur = function (evt) {
3485
- _self.setTextFilter(textFilterInput.value);
3595
+ _self[_DYN_SET_TEXT_FILTER ](textFilterInput.value);
3486
3596
  };
3487
- textFilterInput.onkeyup = function (evt) {
3597
+ textFilterInput[_DYN_ONKEYUP ] = function (evt) {
3488
3598
  if (keyupTimer != null) {
3489
3599
  clearTimeout(keyupTimer);
3490
3600
  }
@@ -3492,37 +3602,38 @@ var Dashboard = /** @class */ (function () {
3492
3602
  if (newValue !== _self.getTextFilter()) {
3493
3603
  keyupTimer = setTimeout(function () {
3494
3604
  keyupTimer = null;
3495
- _self.setTextFilter(textFilterInput.value);
3605
+ _self[_DYN_SET_TEXT_FILTER ](textFilterInput.value);
3496
3606
  }, 200);
3497
3607
  }
3498
3608
  };
3499
- controlDiv.appendChild(textFilterInput);
3500
- var copyButton = document.createElement("button");
3501
- copyButton.innerText = "copy current node";
3502
- copyButton.className = "btn-secondary";
3503
- copyButton.onclick = copySelectedTree;
3504
- copyButton.ontouchend = copySelectedTree;
3609
+ controlDiv[_DYN_APPEND_CHILD ](textFilterInput);
3610
+ var copyButton = document[_DYN_CREATE_ELEMENT ]("button");
3611
+ copyButton[_DYN_INNER_TEXT ] = "copy current node";
3612
+ copyButton[_DYN_CLASS_NAME ] = "btn-secondary";
3613
+ copyButton[_DYN_ONCLICK ] = copySelectedTree;
3614
+ copyButton[_DYN_ONTOUCHEND ] = copySelectedTree;
3505
3615
  var keyupTimer = null;
3506
- filterList = new FilterList(controlDiv, trackers.slice(0), function () { return _self.render(); });
3507
- controlDiv.appendChild(copyButton);
3508
- var clearEventsBtn = document.createElement("button");
3509
- clearEventsBtn.innerText = "clear events";
3510
- clearEventsBtn.className = "btn-secondary";
3511
- clearEventsBtn.onclick = clearEvents;
3512
- clearEventsBtn.ontouchend = clearEvents;
3513
- controlDiv.appendChild(clearEventsBtn);
3514
- var closeEventsBtn = document.createElement("button");
3616
+ filterList = new FilterList(controlDiv, trackers.slice(0), function () { return _self[_DYN_RENDER ](); });
3617
+ controlDiv[_DYN_APPEND_CHILD ](copyButton);
3618
+ var clearEventsBtn = document[_DYN_CREATE_ELEMENT ]("button");
3619
+ clearEventsBtn[_DYN_INNER_TEXT ] = "clear events";
3620
+ clearEventsBtn[_DYN_CLASS_NAME ] = "btn-secondary";
3621
+ clearEventsBtn[_DYN_ONCLICK ] = clearEvents;
3622
+ clearEventsBtn[_DYN_ONTOUCHEND ] = clearEvents;
3623
+ controlDiv[_DYN_APPEND_CHILD ](clearEventsBtn);
3624
+ var closeEventsBtn = document[_DYN_CREATE_ELEMENT ]("button");
3515
3625
  closeEventsBtn.id = "close-dashboard";
3516
- closeEventsBtn.innerText = "close dashboard";
3517
- closeEventsBtn.className = "btn-primary";
3518
- closeEventsBtn.onclick = closeDashboard;
3519
- closeEventsBtn.ontouchend = closeDashboard;
3520
- controlDiv.appendChild(closeEventsBtn);
3521
- hostDiv.appendChild(controlDiv);
3522
- hostDiv.appendChild(loggerEl);
3626
+ closeEventsBtn[_DYN_INNER_TEXT ] = "close dashboard";
3627
+ closeEventsBtn[_DYN_CLASS_NAME ] = "btn-primary";
3628
+ closeEventsBtn[_DYN_ONCLICK ] = closeDashboard;
3629
+ closeEventsBtn[_DYN_ONTOUCHEND ] = closeDashboard;
3630
+ controlDiv[_DYN_APPEND_CHILD ](closeEventsBtn);
3631
+ hostDiv[_DYN_APPEND_CHILD ](controlDiv);
3632
+ hostDiv[_DYN_APPEND_CHILD ](loggerEl);
3523
3633
  }
3524
3634
  });
3525
3635
  }
3636
+ Dashboard.__ieDyn=1;
3526
3637
  return Dashboard;
3527
3638
  }());
3528
3639
 
@@ -3533,67 +3644,67 @@ var DebugBinParent = /** @class */ (function () {
3533
3644
  this.showChildren = false;
3534
3645
  this.value = 0;
3535
3646
  var _self = this;
3536
- _self.el = document.createElement("div");
3537
- _self.el.setAttribute("tabindex", "0");
3538
- _self.el.className = "".concat(prefix, "-debug-bin-parent");
3647
+ _self.el = document[_DYN_CREATE_ELEMENT ]("div");
3648
+ _self.el[_DYN_SET_ATTRIBUTE ]("tabindex", "0");
3649
+ _self.el[_DYN_CLASS_NAME ] = "".concat(prefix, "-debug-bin-parent");
3539
3650
  _self.el.style.bottom = "".concat(20 + bottomDistance, "px");
3540
- _self.elSpan = document.createElement("span");
3541
- _self.elSpan.innerText = "".concat(_self.value);
3542
- _self.elSpan.setAttribute("data-name", "AppInsights");
3543
- _self.el.appendChild(_self.elSpan);
3544
- _self.el.onclick = function () {
3545
- _self.showChildren = !_self.showChildren;
3546
- _self.el.className = (_self.showChildren) ? "".concat(prefix, "-debug-bin-parent active") : "".concat(prefix, "-debug-bin-parent");
3547
- _self.render();
3651
+ _self.elSpan = document[_DYN_CREATE_ELEMENT ]("span");
3652
+ _self.elSpan[_DYN_INNER_TEXT ] = "".concat(_self.value);
3653
+ _self.elSpan[_DYN_SET_ATTRIBUTE ]("data-name", "AppInsights");
3654
+ _self.el[_DYN_APPEND_CHILD ](_self.elSpan);
3655
+ _self.el[_DYN_ONCLICK ] = function () {
3656
+ _self[_DYN_SHOW_CHILDREN ] = !_self[_DYN_SHOW_CHILDREN ];
3657
+ _self.el[_DYN_CLASS_NAME ] = (_self[_DYN_SHOW_CHILDREN ]) ? "".concat(prefix, "-debug-bin-parent active") : "".concat(prefix, "-debug-bin-parent");
3658
+ _self[_DYN_RENDER ]();
3548
3659
  };
3549
- _self.el.onkeydown = function (evt) {
3660
+ _self.el[_DYN_ONKEYDOWN ] = function (evt) {
3550
3661
  if (evt.which === 13 || evt.which === 32) {
3551
- evt.preventDefault();
3552
- evt.target.click();
3662
+ evt[_DYN_PREVENT_DEFAULT ]();
3663
+ evt[_DYN_TARGET ].click();
3553
3664
  }
3554
3665
  };
3555
- _self.render();
3666
+ _self[_DYN_RENDER ]();
3556
3667
  }
3557
3668
  DebugBinParent.prototype.addClassToEl = function (name) {
3558
3669
  var _self = this;
3559
- if (_self.el.className.indexOf(name) === -1) {
3560
- _self.el.className += " ".concat(name);
3670
+ if (_self.el[_DYN_CLASS_NAME ].indexOf(name) === -1) {
3671
+ _self.el[_DYN_CLASS_NAME ] += " ".concat(name);
3561
3672
  }
3562
3673
  };
3563
3674
  DebugBinParent.prototype.addChild = function (bin) {
3564
- this.children.push(bin);
3675
+ this.children[_DYN_PUSH ](bin);
3565
3676
  };
3566
3677
  DebugBinParent.prototype.addButton = function (handler, label) {
3567
- var btn = document.createElement("button");
3568
- btn.innerText = label;
3569
- btn.onclick = handler;
3678
+ var btn = document[_DYN_CREATE_ELEMENT ]("button");
3679
+ btn[_DYN_INNER_TEXT ] = label;
3680
+ btn[_DYN_ONCLICK ] = handler;
3570
3681
  this.addChild(btn);
3571
3682
  };
3572
3683
  DebugBinParent.prototype.increment = function () {
3573
3684
  var _self = this;
3574
- _self.elSpan.innerText = "".concat(++_self.value);
3685
+ _self.elSpan[_DYN_INNER_TEXT ] = "".concat(++_self.value);
3575
3686
  };
3576
3687
  DebugBinParent.prototype.render = function () {
3577
3688
  var _self = this;
3578
- if (!_self.el.parentElement) {
3579
- _self.parent.appendChild(_self.el);
3689
+ if (!_self.el[_DYN_PARENT_ELEMENT ]) {
3690
+ _self.parent[_DYN_APPEND_CHILD ](_self.el);
3580
3691
  }
3581
- for (var _i = 0, _a = _self.children; _i < _a.length; _i++) {
3692
+ for (var _i = 0, _a = _self[_DYN_CHILDREN ]; _i < _a.length; _i++) {
3582
3693
  var ch = _a[_i];
3583
3694
  if (ch instanceof DebugBin) {
3584
- if (ch.el.parentElement !== _self.el && _self.showChildren) {
3585
- _self.el.appendChild(ch.el);
3695
+ if (ch.el.parentElement !== _self.el && _self[_DYN_SHOW_CHILDREN ]) {
3696
+ _self.el[_DYN_APPEND_CHILD ](ch.el);
3586
3697
  }
3587
- else if (ch.el.parentElement === _self.el && !_self.showChildren) {
3588
- _self.el.removeChild(ch.el);
3698
+ else if (ch.el.parentElement === _self.el && !_self[_DYN_SHOW_CHILDREN ]) {
3699
+ _self.el[_DYN_REMOVE_CHILD ](ch.el);
3589
3700
  }
3590
3701
  }
3591
3702
  else {
3592
- if (_self.showChildren) {
3593
- _self.el.appendChild(ch);
3703
+ if (_self[_DYN_SHOW_CHILDREN ]) {
3704
+ _self.el[_DYN_APPEND_CHILD ](ch);
3594
3705
  }
3595
3706
  else {
3596
- _self.el.removeChild(ch);
3707
+ _self.el[_DYN_REMOVE_CHILD ](ch);
3597
3708
  }
3598
3709
  }
3599
3710
  }
@@ -3607,22 +3718,22 @@ var DebugBin = /** @class */ (function () {
3607
3718
  this.parent = parent;
3608
3719
  var _self = this;
3609
3720
  parent.addChild(_self);
3610
- _self.el = document.createElement("div");
3611
- _self.elName = document.createElement("span");
3612
- _self.elName.innerText = "".concat(name, ": ");
3613
- _self.elName.className = "el-name";
3614
- _self.el.appendChild(_self.elName);
3615
- _self.elValue = document.createElement("span");
3616
- _self.elValue.innerText = "".concat(value);
3617
- _self.elValue.className = "el-value";
3618
- _self.el.appendChild(_self.elValue);
3721
+ _self.el = document[_DYN_CREATE_ELEMENT ]("div");
3722
+ _self.elName = document[_DYN_CREATE_ELEMENT ]("span");
3723
+ _self.elName[_DYN_INNER_TEXT ] = "".concat(name, ": ");
3724
+ _self.elName[_DYN_CLASS_NAME ] = "el-name";
3725
+ _self.el[_DYN_APPEND_CHILD ](_self.elName);
3726
+ _self.elValue = document[_DYN_CREATE_ELEMENT ]("span");
3727
+ _self.elValue[_DYN_INNER_TEXT ] = "".concat(value);
3728
+ _self.elValue[_DYN_CLASS_NAME ] = "el-value";
3729
+ _self.el[_DYN_APPEND_CHILD ](_self.elValue);
3619
3730
  }
3620
3731
  DebugBin.prototype.increment = function () {
3621
3732
  var _self = this;
3622
- _self.elValue.innerText = "".concat(++_self.value);
3733
+ _self.elValue[_DYN_INNER_TEXT ] = "".concat(++_self.value);
3623
3734
  _self.parent.increment();
3624
- _self.elValue.className = "el-value incremented";
3625
- setTimeout(function () { return _self.elValue.className = "el-value"; }, 1);
3735
+ _self.elValue[_DYN_CLASS_NAME ] = "el-value incremented";
3736
+ setTimeout(function () { return _self.elValue[_DYN_CLASS_NAME ] = "el-value"; }, 1);
3626
3737
  };
3627
3738
  return DebugBin;
3628
3739
  }());
@@ -3670,7 +3781,7 @@ var DebugPlugin = /** @class */ (function (_super) {
3670
3781
  __extendsFn(DebugPlugin, _super);
3671
3782
  function DebugPlugin() {
3672
3783
  var _this = _super.call(this) || this;
3673
- _this.identifier = DebugPlugin.identifier;
3784
+ _this.identifier = DebugPlugin[_DYN_IDENTIFIER ];
3674
3785
  var dashboard;
3675
3786
  var permStyleEl;
3676
3787
  var debugBins;
@@ -3684,48 +3795,48 @@ var DebugPlugin = /** @class */ (function (_super) {
3684
3795
  base.initialize(config, core, extensions, pluginChain);
3685
3796
  var defaultConfig = getDefaultConfig();
3686
3797
  var ctx_1 = _self._getTelCtx();
3687
- var identifier_1 = _self.identifier;
3798
+ var identifier_1 = _self[_DYN_IDENTIFIER ];
3688
3799
  objForEachKey(defaultConfig, function (field, value) {
3689
3800
  _theConfig[field] = function () { return ctx_1.getConfig(identifier_1, field, value()); };
3690
3801
  });
3691
3802
  var foundTrackers_1 = [];
3692
- trackers = _theConfig.trackers();
3803
+ trackers = _theConfig[_DYN_TRACKERS ]();
3693
3804
  var prefix = _theConfig.cssPrefix();
3694
- if (!_theConfig.disableNotifications()) {
3805
+ if (!_theConfig[_DYN_DISABLE_NOTIFICATION0 ]()) {
3695
3806
  var notifyMgr = (isFunction(core.getNotifyMgr) && core.getNotifyMgr()) || core["_notificationManager"];
3696
3807
  if (notifyMgr) {
3697
3808
  notifyMgr.addNotificationListener({
3698
3809
  eventsSent: function (events) {
3699
- dashboard.newLogEntry(events, dateNow() - startTime, "Notification:eventsSent", 0, "eventsSent");
3810
+ dashboard[_DYN_NEW_LOG_ENTRY ](events, dateNow() - startTime, "Notification:eventsSent", 0, "eventsSent");
3700
3811
  },
3701
3812
  eventsDiscarded: function (events, reason) {
3702
- dashboard.newLogEntry({
3813
+ dashboard[_DYN_NEW_LOG_ENTRY ]({
3703
3814
  events: events,
3704
3815
  reason: reason
3705
3816
  }, dateNow() - startTime, "Notification:eventsDiscarded", 0, "eventsDiscarded");
3706
3817
  },
3707
3818
  eventsSendRequest: function (sendReason, isAsync) {
3708
- dashboard.newLogEntry({
3819
+ dashboard[_DYN_NEW_LOG_ENTRY ]({
3709
3820
  sendReason: sendReason,
3710
3821
  isAsync: isAsync
3711
3822
  }, dateNow() - startTime, "Notification:eventsSendRequest", 0, "eventsSendRequest");
3712
3823
  },
3713
3824
  perfEvent: function (perfEvent) {
3714
3825
  var evtName = "Notification:perfEvent[".concat(perfEvent.name, "]");
3715
- dashboard.newLogEntry(perfEvent, dateNow() - startTime, evtName, 0, "perfEvent");
3826
+ dashboard[_DYN_NEW_LOG_ENTRY ](perfEvent, dateNow() - startTime, evtName, 0, "perfEvent");
3716
3827
  }
3717
3828
  });
3718
3829
  if (arrIndexOf(trackers, "eventsSent") !== -1) {
3719
- foundTrackers_1.push("eventsSent");
3830
+ foundTrackers_1[_DYN_PUSH ]("eventsSent");
3720
3831
  }
3721
3832
  if (arrIndexOf(trackers, "eventsSendRequest") !== -1) {
3722
- foundTrackers_1.push("eventsSendRequest");
3833
+ foundTrackers_1[_DYN_PUSH ]("eventsSendRequest");
3723
3834
  }
3724
3835
  if (arrIndexOf(trackers, "eventsDiscarded") !== -1) {
3725
- foundTrackers_1.push("eventsDiscarded");
3836
+ foundTrackers_1[_DYN_PUSH ]("eventsDiscarded");
3726
3837
  }
3727
3838
  if (arrIndexOf(trackers, "perfEvent") !== -1) {
3728
- foundTrackers_1.push("perfEvent");
3839
+ foundTrackers_1[_DYN_PUSH ]("perfEvent");
3729
3840
  }
3730
3841
  }
3731
3842
  }
@@ -3741,8 +3852,8 @@ var DebugPlugin = /** @class */ (function (_super) {
3741
3852
  _addTargets(targetObjects_1, ext);
3742
3853
  });
3743
3854
  }
3744
- if (isFunction(core.getTransmissionControls)) {
3745
- var channelControls = core.getTransmissionControls();
3855
+ if (isFunction(core[_DYN_GET_TRANSMISSION_CON1 ])) {
3856
+ var channelControls = core[_DYN_GET_TRANSMISSION_CON1 ]();
3746
3857
  if (channelControls) {
3747
3858
  arrForEach(channelControls, function (channel) {
3748
3859
  if (isArray(channel)) {
@@ -3761,7 +3872,7 @@ var DebugPlugin = /** @class */ (function (_super) {
3761
3872
  }, true);
3762
3873
  if (val) {
3763
3874
  if (arrIndexOf(foundTrackers_1, tracker) === -1) {
3764
- foundTrackers_1.push(tracker);
3875
+ foundTrackers_1[_DYN_PUSH ](tracker);
3765
3876
  }
3766
3877
  }
3767
3878
  });
@@ -3770,35 +3881,35 @@ var DebugPlugin = /** @class */ (function (_super) {
3770
3881
  dashboard = new Dashboard({
3771
3882
  prefix: prefix,
3772
3883
  trackers: foundTrackers_1,
3773
- excludeKeys: _theConfig.excludeKeys(),
3774
- maxMessages: _theConfig.maxMessages(),
3884
+ excludeKeys: _theConfig[_DYN_EXCLUDE_KEYS ](),
3885
+ maxMessages: _theConfig[_DYN_MAX_MESSAGES ](),
3775
3886
  includeFunctions: _theConfig.showFunctions()
3776
3887
  });
3777
- var debugBinContainer = document.createElement("div");
3778
- debugBinContainer.className = "".concat(prefix, "-debug-bin-container");
3888
+ var debugBinContainer = document[_DYN_CREATE_ELEMENT ]("div");
3889
+ debugBinContainer[_DYN_CLASS_NAME ] = "".concat(prefix, "-debug-bin-container");
3779
3890
  debugBinParent = new DebugBinParent(debugBinContainer, [], 0, prefix);
3780
3891
  arrForEach(foundTrackers_1, function (tracker, idx) {
3781
3892
  debugBins[tracker] = new DebugBin(tracker, 0, debugBinParent, (idx + 1) * 50);
3782
3893
  });
3783
- permStyleEl = document.createElement("style");
3784
- permStyleEl.innerHTML = permStyle(prefix);
3785
- document.head.appendChild(permStyleEl);
3894
+ permStyleEl = document[_DYN_CREATE_ELEMENT ]("style");
3895
+ permStyleEl[_DYN_INNER_HTML ] = permStyle(prefix);
3896
+ document.head[_DYN_APPEND_CHILD ](permStyleEl);
3786
3897
  debugBinParent.addButton(function (evt) {
3787
- evt.stopPropagation();
3788
- if (dashboard.isDisplayed()) {
3898
+ evt[_DYN_STOP_PROPAGATION ]();
3899
+ if (dashboard[_DYN_IS_DISPLAYED ]()) {
3789
3900
  dashboard.hide();
3790
3901
  }
3791
3902
  else {
3792
3903
  dashboard.show();
3793
3904
  }
3794
3905
  }, "show dashboard");
3795
- document.body.appendChild(debugBinContainer);
3796
- dashboard.newLogEntry(config, 0, "config", 0, "config", true);
3906
+ document.body[_DYN_APPEND_CHILD ](debugBinContainer);
3907
+ dashboard[_DYN_NEW_LOG_ENTRY ](config, 0, "config", 0, "config", true);
3797
3908
  }
3798
3909
  };
3799
3910
  function _addTarget(targetObjects, ext) {
3800
3911
  if (ext && arrIndexOf(targetObjects, ext) === -1) {
3801
- targetObjects.push(ext);
3912
+ targetObjects[_DYN_PUSH ](ext);
3802
3913
  return true;
3803
3914
  }
3804
3915
  return false;
@@ -3817,10 +3928,10 @@ var DebugPlugin = /** @class */ (function (_super) {
3817
3928
  }
3818
3929
  function _createInstrumentObject(funcArgs, orgArgs) {
3819
3930
  var result = {
3820
- funcName: funcArgs.name,
3931
+ funcName: funcArgs[_DYN_NAME ],
3821
3932
  inst: funcArgs.inst
3822
3933
  };
3823
- if (orgArgs && orgArgs.length) {
3934
+ if (orgArgs && orgArgs[_DYN_LENGTH$1 ]) {
3824
3935
  result.args = orgArgs;
3825
3936
  }
3826
3937
  if (!isUndefined(funcArgs.err)) {
@@ -3833,14 +3944,14 @@ var DebugPlugin = /** @class */ (function (_super) {
3833
3944
  }
3834
3945
  function _getEvtPrefix(funcArgs) {
3835
3946
  var identifier = getTargetName(funcArgs.inst);
3836
- var evtPrefix = funcArgs.name;
3947
+ var evtPrefix = funcArgs[_DYN_NAME ];
3837
3948
  if (identifier) {
3838
3949
  evtPrefix += ":" + identifier;
3839
3950
  }
3840
3951
  return evtPrefix;
3841
3952
  }
3842
3953
  function _logEntry(theEvent, evtName, kind) {
3843
- dashboard.newLogEntry(theEvent, dateNow() - startTime, evtName, 0, kind);
3954
+ dashboard[_DYN_NEW_LOG_ENTRY ](theEvent, dateNow() - startTime, evtName, 0, kind);
3844
3955
  var dbgExt = getDebugExt(_self.core.config);
3845
3956
  if (dbgExt && dbgExt.debugMsg) {
3846
3957
  dbgExt.debugMsg(evtName, theEvent);
@@ -3853,12 +3964,12 @@ var DebugPlugin = /** @class */ (function (_super) {
3853
3964
  orgArgs[_i - 1] = arguments[_i];
3854
3965
  }
3855
3966
  (debugBins[funcArgs.name] || debugBins["default"]).increment();
3856
- if (funcArgs.name === "trackException" && !debugBinParent.showChildren) {
3967
+ if (funcArgs[_DYN_NAME ] === "trackException" && !debugBinParent[_DYN_SHOW_CHILDREN ]) {
3857
3968
  debugBinParent.addClassToEl("notify");
3858
3969
  }
3859
3970
  var evtPrefix = _getEvtPrefix(funcArgs);
3860
- _logEntry(_createInstrumentObject(funcArgs, orgArgs), evtPrefix, funcArgs.name);
3861
- if (_theConfig.dumpToConsole() && console && console.log) {
3971
+ _logEntry(_createInstrumentObject(funcArgs, orgArgs), evtPrefix, funcArgs[_DYN_NAME ]);
3972
+ if (_theConfig[_DYN_DUMP_TO_CONSOLE ]() && console && console.log) {
3862
3973
  console.log("[".concat(evtPrefix, "] preProcess - funcArgs: "), funcArgs);
3863
3974
  console.log("[".concat(evtPrefix, "] preProcess - orgArgs: "), orgArgs);
3864
3975
  }
@@ -3872,21 +3983,21 @@ var DebugPlugin = /** @class */ (function (_super) {
3872
3983
  }
3873
3984
  if (!isUndefined(funcArgs.err)) {
3874
3985
  var evtPrefix = _getEvtPrefix(funcArgs);
3875
- if (!debugBinParent.showChildren) {
3986
+ if (!debugBinParent[_DYN_SHOW_CHILDREN ]) {
3876
3987
  debugBinParent.addClassToEl("notify");
3877
3988
  }
3878
- _logEntry(_createInstrumentObject(funcArgs, orgArgs), evtPrefix, funcArgs.name);
3879
- if (_theConfig.dumpToConsole() && console && console.log) {
3989
+ _logEntry(_createInstrumentObject(funcArgs, orgArgs), evtPrefix, funcArgs[_DYN_NAME ]);
3990
+ if (_theConfig[_DYN_DUMP_TO_CONSOLE ]() && console && console.log) {
3880
3991
  console.log("[".concat(evtPrefix, "] complete"));
3881
3992
  }
3882
3993
  }
3883
3994
  };
3884
3995
  }
3885
3996
  _self.processTelemetry = function (event, itemCtx) {
3886
- if (_theConfig.dumpToConsole() && console && console.log) {
3997
+ if (_theConfig[_DYN_DUMP_TO_CONSOLE ]() && console && console.log) {
3887
3998
  console.log("[".concat(_self.identifier, ":processTelemetry] complete"));
3888
3999
  }
3889
- if (!debugBins["processTelemetry"] && _theConfig.logProcessTelemetry() === true) {
4000
+ if (!debugBins["processTelemetry"] && _theConfig[_DYN_LOG_PROCESS_TELEMETR2 ]() === true) {
3890
4001
  _logEntry(event, "[".concat(_self.identifier, ":processTelemetry[").concat(event.baseType, "]"), "processTelemetry");
3891
4002
  }
3892
4003
  _self.processNext(event, itemCtx);
@@ -3900,4 +4011,4 @@ var DebugPlugin = /** @class */ (function (_super) {
3900
4011
  var DebugPlugin$1 = DebugPlugin;
3901
4012
 
3902
4013
  exports.DebugPlugin = DebugPlugin$1;
3903
- //# sourceMappingURL=ai.dbg.2.8.5-nightly.2206-02.cjs.js.map
4014
+ //# sourceMappingURL=ai.dbg.2.8.5-nightly.2206-06.cjs.js.map