@microsoft/applicationinsights-teechannel-js 3.3.7-nightly3.2504-10 → 3.3.7-nightly3.2504-11

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 (48) hide show
  1. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.cjs.js} +284 -133
  2. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.gbl.js} +286 -108
  6. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.js → applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.js} +311 -106
  11. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.js.map +1 -0
  12. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.min.js +6 -0
  13. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +283 -105
  15. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js +285 -107
  19. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-teechannel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-teechannel-js.3.js +285 -107
  24. package/browser/es5/applicationinsights-teechannel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-teechannel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-teechannel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-teechannel-js.js +283 -105
  28. package/dist/es5/applicationinsights-teechannel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-teechannel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-teechannel-js.min.js.map +1 -1
  31. package/dist-es5/ChannelController.js +1 -1
  32. package/dist-es5/Interfaces/ITeeChannelConfig.js +1 -1
  33. package/dist-es5/TeeChannel.js +1 -1
  34. package/dist-es5/__DynamicConstants.js +1 -1
  35. package/dist-es5/applicationinsights-teechannel-js.js +1 -1
  36. package/package.json +3 -3
  37. package/types/applicationinsights-teechannel-js.d.ts +1 -1
  38. package/types/applicationinsights-teechannel-js.namespaced.d.ts +1 -1
  39. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.js.map +0 -1
  40. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.min.js +0 -6
  41. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.cjs.min.js.map +0 -1
  42. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.js.map +0 -1
  43. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.min.js +0 -6
  44. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.gbl.min.js.map +0 -1
  45. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.integrity.json +0 -66
  46. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.js.map +0 -1
  47. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.min.js +0 -6
  48. package/browser/es5/applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.min.js.map +0 -1
@@ -1,32 +1,7 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.7-nightly3.2504-10
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.7-nightly3.2504-11
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- (function (global, factory) {
6
- var undef = "undefined";
7
- typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
- typeof define === "function" && define.amd ? define(["exports"], factory) :
9
- (function(global){
10
- var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_teechannel_js_3_3_7_nightly3_2504_10", msMod="__ms$mod__";
11
- var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-10";
12
- var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
- // Versioned namespace "Microsoft.ApplicationInsights3"
14
- var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
- // Global namespace "Microsoft.ApplicationInsights"
16
- var destNs=baseNs, nsKey="ApplicationInsights", destNs=destNs[nsKey]=(destNs[nsKey]||{});
17
- var expNsDetail=(exportNs[msMod]=(exportNs[msMod] || {})), expNameVer=(expNsDetail["v"]=(expNsDetail["v"] || []));
18
- var destNsDetail=(destNs[msMod]=(destNs[msMod] || {})), destNameVer=(destNsDetail["v"]=(destNsDetail["v"] || []));
19
- (destNsDetail["o"]=(destNsDetail["o"] || [])).push(mods);
20
- factory(theExports);
21
- for(var key in theExports) {
22
- // Always set the imported value into the "export" versioned namespace (last-write wins)
23
- nm="x", exportNs[key]=theExports[key], expNameVer[key]=ver;
24
- // Copy over any named element that is not already present (first-write wins)
25
- typeof destNs[key]===undef ? (nm="n", destNs[key]=theExports[key]) && (destNameVer[key]=ver) : !destNameVer[key] && (destNameVer[key]="---");
26
- (modDetail[nm] = (modDetail[nm] || [])).push(key);
27
- }
28
- })(typeof globalThis !== undef ? globalThis : global || self);
29
- })(this, (function (exports) {
30
5
  'use strict';
31
6
 
32
7
 
@@ -36,7 +11,7 @@ var strShimUndefined = "undefined";
36
11
  var strShimPrototype = "prototype";
37
12
  var ObjClass$1 = Object;
38
13
 
39
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
14
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
40
15
  /*#__NO_SIDE_EFFECTS__*/
41
16
  function _pureAssign(func1, func2) {
42
17
  return func1 || func2;
@@ -55,11 +30,12 @@ var __PROTO__ = "__proto__";
55
30
  var UNDEFINED = "undefined";
56
31
  var CONSTRUCTOR = "constructor";
57
32
  var SYMBOL = "Symbol";
58
- var POLYFILL_TAG = "_polyfill";
59
33
  var LENGTH = "length";
60
34
  var NAME = "name";
61
35
  var CALL = "call";
62
36
  var TO_STRING = "toString";
37
+ var GETTER_NAME = "__lookupGetter__";
38
+ var SETTER_NAME = "__lookupSetter__";
63
39
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
64
40
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
65
41
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -68,6 +44,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
68
44
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
69
45
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
70
46
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
47
+ var POLYFILL_TAG = "_polyfill";
48
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
71
49
  function safe(func, argArray) {
72
50
  try {
73
51
  return {
@@ -90,7 +68,7 @@ function isUndefined(value) {
90
68
  }
91
69
  /*#__NO_SIDE_EFFECTS__*/
92
70
  function isStrictUndefined(arg) {
93
- return !isDefined(arg);
71
+ return arg === UNDEF_VALUE;
94
72
  }
95
73
  /*#__NO_SIDE_EFFECTS__*/
96
74
  function isNullOrUndefined(value) {
@@ -98,7 +76,7 @@ function isNullOrUndefined(value) {
98
76
  }
99
77
  /*#__NO_SIDE_EFFECTS__*/
100
78
  function isStrictNullOrUndefined(value) {
101
- return value === NULL_VALUE || !isDefined(value);
79
+ return value === NULL_VALUE || value === UNDEF_VALUE;
102
80
  }
103
81
  /*#__NO_SIDE_EFFECTS__*/
104
82
  function isDefined(arg) {
@@ -120,18 +98,122 @@ var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
120
98
  function isPromiseLike(value) {
121
99
  return !!(value && value.then && isFunction(value.then));
122
100
  }
123
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
101
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
102
+ var ERROR_TYPE = "[object Error]";
103
+ /*#__NO_SIDE_EFFECTS__*/
104
+ function dumpObj(object, format) {
105
+ var propertyValueDump = EMPTY;
106
+ var objType = ObjProto[TO_STRING][CALL](object);
107
+ if (objType === ERROR_TYPE) {
108
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
109
+ }
110
+ try {
111
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
112
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
113
+ }
114
+ catch (e) {
115
+ propertyValueDump = " - " + dumpObj(e, format);
116
+ }
117
+ return objType + ": " + propertyValueDump;
118
+ }
119
+ function throwError(message) {
120
+ throw new Error(message);
121
+ }
122
+ function throwTypeError(message) {
123
+ throw new TypeError(message);
124
+ }
125
+ function _throwIfNullOrUndefined(obj) {
126
+ if (isStrictNullOrUndefined(obj)) {
127
+ throwTypeError("Cannot convert undefined or null to object");
128
+ }
129
+ }
124
130
  /*#__NO_SIDE_EFFECTS__*/
125
131
  function objHasOwnProperty(obj, prop) {
126
132
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
127
133
  }
128
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
134
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
135
+ /*#__NO_SIDE_EFFECTS__*/
136
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
137
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
138
+ return function (thisArg) {
139
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
140
+ if (theFunc || polyFunc) {
141
+ var theArgs = arguments;
142
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
143
+ }
144
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
145
+ };
146
+ }
147
+ function _objPropertyIsEnum(obj, propKey) {
148
+ var desc;
149
+ var fn = ObjClass.getOwnPropertyDescriptor;
150
+ if (!isStrictNullOrUndefined(obj) && fn) {
151
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
152
+ }
153
+ if (!desc) {
154
+ desc = safe(function () {
155
+ for (var key in obj) {
156
+ if (key === propKey) {
157
+ return { enumerable: true };
158
+ }
159
+ }
160
+ }).v;
161
+ }
162
+ return (desc && desc.enumerable) || false;
163
+ }
164
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
165
+ function _isPropertyWritable(obj, prop) {
166
+ var result = false;
167
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
168
+ var originalValue = obj[prop];
169
+ try {
170
+ obj[prop] = originalValue;
171
+ result = true;
172
+ }
173
+ catch (e) {
174
+ }
175
+ }
176
+ return result;
177
+ }
178
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
179
+ var descriptor;
180
+ _throwIfNullOrUndefined(obj);
181
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
182
+ if (isLength || objHasOwnProperty(obj, prop)) {
183
+ descriptor = {
184
+ configurable: !isLength,
185
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
186
+ };
187
+ var isData = true;
188
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
189
+ var getter = obj[GETTER_NAME](prop);
190
+ var setter = obj[SETTER_NAME](prop);
191
+ if (getter || setter) {
192
+ isData = false;
193
+ if (getter) {
194
+ descriptor.get = getter;
195
+ }
196
+ if (setter) {
197
+ descriptor.set = setter;
198
+ }
199
+ }
200
+ }
201
+ if (isData) {
202
+ descriptor.value = obj[prop];
203
+ descriptor.writable = _isPropertyWritable(obj, prop);
204
+ }
205
+ }
206
+ return descriptor;
207
+ }
208
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
129
209
  /*#__NO_SIDE_EFFECTS__*/
130
210
  function polyObjHasOwn(obj, prop) {
211
+ _throwIfNullOrUndefined(obj);
131
212
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
132
213
  }
214
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
133
215
  function objForEachKey(theObject, callbackfn, thisArg) {
134
- if (theObject && isObject(theObject)) {
216
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
135
217
  for (var prop in theObject) {
136
218
  if (objHasOwn(theObject, prop)) {
137
219
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -141,6 +223,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
141
223
  }
142
224
  }
143
225
  }
226
+ function arrForEach(theArray, callbackfn, thisArg) {
227
+ if (theArray) {
228
+ var len = theArray[LENGTH] >>> 0;
229
+ for (var idx = 0; idx < len; idx++) {
230
+ if (idx in theArray) {
231
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
232
+ break;
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
144
238
  var propMap = {
145
239
  e: "enumerable",
146
240
  c: "configurable",
@@ -169,6 +263,7 @@ function _createProp(value) {
169
263
  return prop;
170
264
  }
171
265
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
266
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
172
267
  function objDefine(target, key, propDesc) {
173
268
  return objDefineProp(target, key, _createProp(propDesc));
174
269
  }
@@ -188,48 +283,49 @@ function _assignMapValue(theMap, key, value, writable) {
188
283
  writable: false
189
284
  });
190
285
  }
191
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
192
- var ERROR_TYPE = "[object Error]";
193
- /*#__NO_SIDE_EFFECTS__*/
194
- function dumpObj(object, format) {
195
- var propertyValueDump = EMPTY;
196
- var objType = ObjProto[TO_STRING][CALL](object);
197
- if (objType === ERROR_TYPE) {
198
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
286
+ function polyObjIsFrozen(obj) {
287
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
288
+ return true;
199
289
  }
200
- try {
201
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
202
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
290
+ if (isFunction(obj)) {
291
+ return false;
203
292
  }
204
- catch (e) {
205
- propertyValueDump = " - " + dumpObj(e, format);
293
+ for (var prop in obj) {
294
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
295
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
296
+ return false;
297
+ }
206
298
  }
207
- return objType + ": " + propertyValueDump;
208
- }
209
- function throwError(message) {
210
- throw new Error(message);
211
- }
212
- function throwTypeError(message) {
213
- throw new TypeError(message);
299
+ return true;
214
300
  }
301
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
215
302
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
216
303
  function _doNothing(value) {
217
304
  return value;
218
305
  }
219
306
  /*#__NO_SIDE_EFFECTS__*/
220
307
  function _getProto(value) {
308
+ _throwIfNullOrUndefined(value);
221
309
  return value[__PROTO__] || NULL_VALUE;
222
310
  }
223
311
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
224
- function objDeepFreeze(value) {
225
- if (_objFreeze) {
226
- objForEachKey(value, function (key, value) {
227
- if (isArray(value) || isObject(value)) {
228
- objDeepFreeze(value);
312
+ function _deepFreeze(val, visited) {
313
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
314
+ for (var lp = 0; lp < visited.length; lp++) {
315
+ if (visited[lp] === val) {
316
+ return val;
229
317
  }
318
+ }
319
+ visited.push(val);
320
+ objForEachKey(val, function (_key, propValue) {
321
+ _deepFreeze(propValue, visited);
230
322
  });
323
+ objFreeze(val);
231
324
  }
232
- return objFreeze(value);
325
+ return val;
326
+ }
327
+ function objDeepFreeze(value) {
328
+ return _objFreeze ? _deepFreeze(value, []) : value;
233
329
  }
234
330
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
235
331
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -279,21 +375,109 @@ function _getGlobalConfig() {
279
375
  }
280
376
  return _globalCfg;
281
377
  }
282
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
378
+ function _tagAsPolyfill(target, polyfillTypeName) {
379
+ if (target) {
380
+ safe(function () {
381
+ target[POLYFILL_TAG] = true;
382
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
383
+ });
384
+ safe(objDefine, [target, POLYFILL_TAG, {
385
+ v: true,
386
+ w: false,
387
+ e: false
388
+ }]);
389
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
390
+ v: polyfillTypeName,
391
+ w: false,
392
+ e: false
393
+ }]);
394
+ }
395
+ return target;
396
+ }
283
397
  /*#__NO_SIDE_EFFECTS__*/
284
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
285
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
286
- return function (thisArg) {
287
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
288
- if (theFunc || polyFunc) {
289
- var theArgs = arguments;
290
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
398
+ function createCachedValue(value) {
399
+ return objDefineProp({
400
+ toJSON: function () { return value; }
401
+ }, "v", { value: value });
402
+ }
403
+ var _isProtoArray;
404
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
405
+ function _polyObjSetPrototypeOf(obj, proto) {
406
+ var _a;
407
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
408
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
409
+ return obj;
410
+ }
411
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
412
+ /*#__NO_SIDE_EFFECTS__*/
413
+ function polyObjCreate(obj, properties) {
414
+ var newObj;
415
+ function tempFunc() { }
416
+ if (!isStrictNullOrUndefined(obj)) {
417
+ var type = typeof obj;
418
+ if (type !== OBJECT && type !== FUNCTION) {
419
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
420
+ }
421
+ tempFunc[PROTOTYPE] = obj;
422
+ safe(function () {
423
+ tempFunc[__PROTO__] = obj;
424
+ });
425
+ newObj = new tempFunc();
426
+ }
427
+ else {
428
+ newObj = {};
429
+ }
430
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
431
+ if (properties) {
432
+ safe(objDefineProperties, [newObj, properties]);
433
+ }
434
+ return newObj;
435
+ }
436
+ /*#__NO_SIDE_EFFECTS__*/
437
+ function utcNow() {
438
+ return (Date.now || polyUtcNow)();
439
+ }
440
+ /*#__NO_SIDE_EFFECTS__*/
441
+ function polyUtcNow() {
442
+ return new Date().getTime();
443
+ }
444
+ var _globalLazyTestHooks;
445
+ function _initTestHooks() {
446
+ _globalLazyTestHooks = _getGlobalConfig();
447
+ }
448
+ /*#__NO_SIDE_EFFECTS__*/
449
+ function getLazy(cb) {
450
+ var lazyValue = {};
451
+ !_globalLazyTestHooks && _initTestHooks();
452
+ lazyValue.b = _globalLazyTestHooks.lzy;
453
+ objDefineProp(lazyValue, "v", {
454
+ configurable: true,
455
+ get: function () {
456
+ var result = cb();
457
+ if (!_globalLazyTestHooks.lzy) {
458
+ objDefineProp(lazyValue, "v", {
459
+ value: result
460
+ });
461
+ }
462
+ lazyValue.b = _globalLazyTestHooks.lzy;
463
+ return result;
291
464
  }
292
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
293
- };
465
+ });
466
+ return lazyValue;
294
467
  }
468
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
469
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
470
+ var value = (utcNow().toString(36).slice(2));
471
+ while (value.length < 16) {
472
+ value += mathRandom().toString(36).slice(2);
473
+ }
474
+ value = value.substring(0, 16);
475
+ return value;
476
+ }));
295
477
  var UNIQUE_REGISTRY_ID = "_urid";
478
+ var POLY_SYM = "$nw21sym";
296
479
  var _polySymbols;
480
+ var _polyId = 0;
297
481
  /*#__NO_SIDE_EFFECTS__*/
298
482
  function _globalSymbolRegistry() {
299
483
  if (!_polySymbols) {
@@ -305,12 +489,35 @@ function _globalSymbolRegistry() {
305
489
  var _wellKnownSymbolCache;
306
490
  /*#__NO_SIDE_EFFECTS__*/
307
491
  function polyNewSymbol(description) {
308
- var theSymbol = {
309
- description: asString(description),
310
- toString: function () { return SYMBOL + "(" + description + ")"; }
311
- };
312
- theSymbol[POLYFILL_TAG] = true;
313
- return theSymbol;
492
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
493
+ var symString = SYMBOL + "(" + description + ")";
494
+ var theSymbol = objCreate(null);
495
+ objDefine(theSymbol, "description", {
496
+ v: asString(description),
497
+ e: false,
498
+ w: false
499
+ });
500
+ objDefine(theSymbol, TO_STRING, {
501
+ v: function () { return symString + POLY_SYM + uniqueId; },
502
+ e: false,
503
+ w: false
504
+ });
505
+ objDefine(theSymbol, "valueOf", {
506
+ v: function () { return theSymbol; },
507
+ e: false,
508
+ w: false
509
+ });
510
+ objDefine(theSymbol, "v", {
511
+ v: symString,
512
+ e: false,
513
+ w: false
514
+ });
515
+ objDefine(theSymbol, "_uid", {
516
+ v: uniqueId,
517
+ e: false,
518
+ w: false
519
+ });
520
+ return _tagAsPolyfill(theSymbol, "symbol");
314
521
  }
315
522
  /*#__NO_SIDE_EFFECTS__*/
316
523
  function polySymbolFor(key) {
@@ -334,16 +541,6 @@ function polyGetKnownSymbol(name) {
334
541
  }
335
542
  return result;
336
543
  }
337
- var _globalLazyTestHooks;
338
- function _initTestHooks() {
339
- _globalLazyTestHooks = _getGlobalConfig();
340
- }
341
- /*#__NO_SIDE_EFFECTS__*/
342
- function createCachedValue(value) {
343
- return objDefineProp({
344
- toJSON: function () { return value; }
345
- }, "v", { value: value });
346
- }
347
544
  var WINDOW = "window";
348
545
  var _cachedGlobal;
349
546
  function _getGlobalInstFn(getFn, theArgs) {
@@ -501,46 +698,10 @@ function arrAppend(target, elms) {
501
698
  }
502
699
  return target;
503
700
  }
504
- function arrForEach(theArray, callbackfn, thisArg) {
505
- if (theArray) {
506
- var len = theArray[LENGTH] >>> 0;
507
- for (var idx = 0; idx < len; idx++) {
508
- if (idx in theArray) {
509
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
510
- break;
511
- }
512
- }
513
- }
514
- }
515
- }
516
701
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
517
702
  function arrSlice(theArray, start, end) {
518
703
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
519
704
  }
520
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
521
- /*#__NO_SIDE_EFFECTS__*/
522
- function polyObjCreate(obj) {
523
- if (!obj) {
524
- return {};
525
- }
526
- var type = typeof obj;
527
- if (type !== OBJECT && type !== FUNCTION) {
528
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
529
- }
530
- function tempFunc() { }
531
- tempFunc[PROTOTYPE] = obj;
532
- return new tempFunc();
533
- }
534
- var _isProtoArray;
535
- function objSetPrototypeOf(obj, proto) {
536
- var fn = ObjClass["setPrototypeOf"] ||
537
- function (d, b) {
538
- var _a;
539
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
540
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
541
- };
542
- return fn(obj, proto);
543
- }
544
705
  /*#__NO_SIDE_EFFECTS__*/
545
706
  function _createCustomError(name, d, b) {
546
707
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -581,14 +742,6 @@ function createCustomError(name, constructCb, errorBase) {
581
742
  }
582
743
  }, theBaseClass);
583
744
  }
584
- /*#__NO_SIDE_EFFECTS__*/
585
- function utcNow() {
586
- return (Date.now || polyUtcNow)();
587
- }
588
- /*#__NO_SIDE_EFFECTS__*/
589
- function polyUtcNow() {
590
- return new Date().getTime();
591
- }
592
745
  var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
593
746
  var _fnToString;
594
747
  var _objCtrFnString;
@@ -1464,7 +1617,7 @@ function newId(maxLength) {
1464
1617
  return result;
1465
1618
  }
1466
1619
 
1467
- var version = '3.3.7-nightly3.2504-10';
1620
+ var version = '3.3.7-nightly3.2504-11';
1468
1621
  var instanceName = "." + newId(6);
1469
1622
  var _dataUid = 0;
1470
1623
  function _canAcceptData(target) {
@@ -3312,6 +3465,4 @@ var TeeChannel = /** @class */ (function (_super) {
3312
3465
  }(BaseTelemetryPlugin));
3313
3466
 
3314
3467
  exports.TeeChannel = TeeChannel;
3315
-
3316
- }));
3317
- //# sourceMappingURL=applicationinsights-teechannel-js.3.3.7-nightly3.2504-10.js.map
3468
+ //# sourceMappingURL=applicationinsights-teechannel-js.3.3.7-nightly3.2504-11.cjs.js.map