@microsoft/applicationinsights-properties-js 3.3.7-nightly3.2504-10 → 3.3.7-nightly3.2504-12

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 (57) hide show
  1. package/browser/es5/{ai.props.3.3.7-nightly3.2504-10.js → ai.props.3.3.7-nightly3.2504-12.cjs.js} +294 -163
  2. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.cjs.js.map +1 -0
  3. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.cjs.min.js +6 -0
  4. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.props.3.3.7-nightly3.2504-10.gbl.js → ai.props.3.3.7-nightly3.2504-12.gbl.js} +296 -138
  6. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.gbl.js.map +1 -0
  7. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.gbl.min.js +6 -0
  8. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.3.7-nightly3.2504-10.cjs.js → ai.props.3.3.7-nightly3.2504-12.js} +321 -136
  11. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.js.map +1 -0
  12. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.min.js +6 -0
  13. package/browser/es5/ai.props.3.3.7-nightly3.2504-12.min.js.map +1 -0
  14. package/browser/es5/ai.props.3.cjs.js +293 -135
  15. package/browser/es5/ai.props.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.props.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.props.3.gbl.js +295 -137
  19. package/browser/es5/ai.props.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.props.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.props.3.integrity.json +25 -25
  23. package/browser/es5/ai.props.3.js +295 -137
  24. package/browser/es5/ai.props.3.js.map +1 -1
  25. package/browser/es5/ai.props.3.min.js +2 -2
  26. package/browser/es5/ai.props.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-properties-js.js +293 -135
  28. package/dist/es5/applicationinsights-properties-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-properties-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
  31. package/dist-es5/Context/Application.js +1 -1
  32. package/dist-es5/Context/Device.js +1 -1
  33. package/dist-es5/Context/Internal.js +2 -2
  34. package/dist-es5/Context/Internal.js.map +1 -1
  35. package/dist-es5/Context/Location.js +1 -1
  36. package/dist-es5/Context/Session.js +1 -1
  37. package/dist-es5/Context/TelemetryTrace.js +1 -1
  38. package/dist-es5/Context/User.js +1 -1
  39. package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
  40. package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
  41. package/dist-es5/PropertiesPlugin.js +1 -1
  42. package/dist-es5/TelemetryContext.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +1 -1
  44. package/dist-es5/applicationinsights-properties-js.js +1 -1
  45. package/package.json +3 -3
  46. package/types/applicationinsights-properties-js.d.ts +1 -1
  47. package/types/applicationinsights-properties-js.namespaced.d.ts +1 -1
  48. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.cjs.js.map +0 -1
  49. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.cjs.min.js +0 -6
  50. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.cjs.min.js.map +0 -1
  51. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.gbl.js.map +0 -1
  52. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.gbl.min.js +0 -6
  53. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.gbl.min.js.map +0 -1
  54. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.integrity.json +0 -66
  55. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.js.map +0 -1
  56. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.min.js +0 -6
  57. package/browser/es5/ai.props.3.3.7-nightly3.2504-10.min.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.3.7-nightly3.2504-10
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.7-nightly3.2504-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
6
6
  var undef = "undefined";
7
- var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_3_7_nightly3_2504_10", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-10";
7
+ var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_3_7_nightly3_2504_12", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-12";
9
9
  var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
10
10
  // Versioned namespace "Microsoft.ApplicationInsights3"
11
11
  var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
@@ -32,7 +32,7 @@ var strShimUndefined = "undefined";
32
32
  var strShimPrototype = "prototype";
33
33
  var ObjClass$1 = Object;
34
34
 
35
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
35
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
36
36
  /*#__NO_SIDE_EFFECTS__*/
37
37
  function _pureAssign(func1, func2) {
38
38
  return func1 || func2;
@@ -51,11 +51,12 @@ var __PROTO__ = "__proto__";
51
51
  var UNDEFINED = "undefined";
52
52
  var CONSTRUCTOR = "constructor";
53
53
  var SYMBOL = "Symbol";
54
- var POLYFILL_TAG = "_polyfill";
55
54
  var LENGTH = "length";
56
55
  var NAME = "name";
57
56
  var CALL = "call";
58
57
  var TO_STRING = "toString";
58
+ var GETTER_NAME = "__lookupGetter__";
59
+ var SETTER_NAME = "__lookupSetter__";
59
60
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
60
61
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
61
62
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -64,6 +65,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
64
65
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
65
66
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
66
67
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
68
+ var POLYFILL_TAG = "_polyfill";
69
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
67
70
  function safe(func, argArray) {
68
71
  try {
69
72
  return {
@@ -102,7 +105,7 @@ function isUndefined(value) {
102
105
  }
103
106
  /*#__NO_SIDE_EFFECTS__*/
104
107
  function isStrictUndefined(arg) {
105
- return !isDefined(arg);
108
+ return arg === UNDEF_VALUE;
106
109
  }
107
110
  /*#__NO_SIDE_EFFECTS__*/
108
111
  function isNullOrUndefined(value) {
@@ -110,7 +113,7 @@ function isNullOrUndefined(value) {
110
113
  }
111
114
  /*#__NO_SIDE_EFFECTS__*/
112
115
  function isStrictNullOrUndefined(value) {
113
- return value === NULL_VALUE || !isDefined(value);
116
+ return value === NULL_VALUE || value === UNDEF_VALUE;
114
117
  }
115
118
  /*#__NO_SIDE_EFFECTS__*/
116
119
  function isDefined(arg) {
@@ -126,23 +129,130 @@ function isObject(value) {
126
129
  return !!value && typeof value === OBJECT;
127
130
  }
128
131
  var isArray = ( /* #__PURE__*/_pureRef(ArrCls, "isArray"));
132
+ var isNumber = ( /*#__PURE__*/_createIs("number"));
129
133
  var isError = ( /*#__PURE__*/_createObjIs("Error"));
130
134
  /*#__NO_SIDE_EFFECTS__*/
131
135
  function isTruthy(value) {
132
136
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
133
137
  }
134
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
138
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
139
+ var ERROR_TYPE = "[object Error]";
140
+ /*#__NO_SIDE_EFFECTS__*/
141
+ function dumpObj(object, format) {
142
+ var propertyValueDump = EMPTY;
143
+ var objType = ObjProto[TO_STRING][CALL](object);
144
+ if (objType === ERROR_TYPE) {
145
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
146
+ }
147
+ try {
148
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
149
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
150
+ }
151
+ catch (e) {
152
+ propertyValueDump = " - " + dumpObj(e, format);
153
+ }
154
+ return objType + ": " + propertyValueDump;
155
+ }
156
+ function throwTypeError(message) {
157
+ throw new TypeError(message);
158
+ }
159
+ function _throwIfNullOrUndefined(obj) {
160
+ if (isStrictNullOrUndefined(obj)) {
161
+ throwTypeError("Cannot convert undefined or null to object");
162
+ }
163
+ }
164
+ function _throwIfNotString(value) {
165
+ if (!isString(value)) {
166
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
167
+ }
168
+ }
135
169
  /*#__NO_SIDE_EFFECTS__*/
136
170
  function objHasOwnProperty(obj, prop) {
137
171
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
138
172
  }
139
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
173
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
174
+ /*#__NO_SIDE_EFFECTS__*/
175
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
176
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
177
+ return function (thisArg) {
178
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
179
+ if (theFunc || polyFunc) {
180
+ var theArgs = arguments;
181
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
182
+ }
183
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
184
+ };
185
+ }
186
+ function _objPropertyIsEnum(obj, propKey) {
187
+ var desc;
188
+ var fn = ObjClass.getOwnPropertyDescriptor;
189
+ if (!isStrictNullOrUndefined(obj) && fn) {
190
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
191
+ }
192
+ if (!desc) {
193
+ desc = safe(function () {
194
+ for (var key in obj) {
195
+ if (key === propKey) {
196
+ return { enumerable: true };
197
+ }
198
+ }
199
+ }).v;
200
+ }
201
+ return (desc && desc.enumerable) || false;
202
+ }
203
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
204
+ function _isPropertyWritable(obj, prop) {
205
+ var result = false;
206
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
207
+ var originalValue = obj[prop];
208
+ try {
209
+ obj[prop] = originalValue;
210
+ result = true;
211
+ }
212
+ catch (e) {
213
+ }
214
+ }
215
+ return result;
216
+ }
217
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
218
+ var descriptor;
219
+ _throwIfNullOrUndefined(obj);
220
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
221
+ if (isLength || objHasOwnProperty(obj, prop)) {
222
+ descriptor = {
223
+ configurable: !isLength,
224
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
225
+ };
226
+ var isData = true;
227
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
228
+ var getter = obj[GETTER_NAME](prop);
229
+ var setter = obj[SETTER_NAME](prop);
230
+ if (getter || setter) {
231
+ isData = false;
232
+ if (getter) {
233
+ descriptor.get = getter;
234
+ }
235
+ if (setter) {
236
+ descriptor.set = setter;
237
+ }
238
+ }
239
+ }
240
+ if (isData) {
241
+ descriptor.value = obj[prop];
242
+ descriptor.writable = _isPropertyWritable(obj, prop);
243
+ }
244
+ }
245
+ return descriptor;
246
+ }
247
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
140
248
  /*#__NO_SIDE_EFFECTS__*/
141
249
  function polyObjHasOwn(obj, prop) {
250
+ _throwIfNullOrUndefined(obj);
142
251
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
143
252
  }
253
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
144
254
  function objForEachKey(theObject, callbackfn, thisArg) {
145
- if (theObject && isObject(theObject)) {
255
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
146
256
  for (var prop in theObject) {
147
257
  if (objHasOwn(theObject, prop)) {
148
258
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -152,6 +262,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
152
262
  }
153
263
  }
154
264
  }
265
+ function arrForEach(theArray, callbackfn, thisArg) {
266
+ if (theArray) {
267
+ var len = theArray[LENGTH] >>> 0;
268
+ for (var idx = 0; idx < len; idx++) {
269
+ if (idx in theArray) {
270
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
271
+ break;
272
+ }
273
+ }
274
+ }
275
+ }
276
+ }
155
277
  var propMap = {
156
278
  e: "enumerable",
157
279
  c: "configurable",
@@ -180,6 +302,7 @@ function _createProp(value) {
180
302
  return prop;
181
303
  }
182
304
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
305
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
183
306
  function objDefine(target, key, propDesc) {
184
307
  return objDefineProp(target, key, _createProp(propDesc));
185
308
  }
@@ -199,45 +322,49 @@ function _assignMapValue(theMap, key, value, writable) {
199
322
  writable: false
200
323
  });
201
324
  }
202
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
203
- var ERROR_TYPE = "[object Error]";
204
- /*#__NO_SIDE_EFFECTS__*/
205
- function dumpObj(object, format) {
206
- var propertyValueDump = EMPTY;
207
- var objType = ObjProto[TO_STRING][CALL](object);
208
- if (objType === ERROR_TYPE) {
209
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
325
+ function polyObjIsFrozen(obj) {
326
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
327
+ return true;
210
328
  }
211
- try {
212
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
213
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
329
+ if (isFunction(obj)) {
330
+ return false;
214
331
  }
215
- catch (e) {
216
- propertyValueDump = " - " + dumpObj(e, format);
332
+ for (var prop in obj) {
333
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
334
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
335
+ return false;
336
+ }
217
337
  }
218
- return objType + ": " + propertyValueDump;
219
- }
220
- function throwTypeError(message) {
221
- throw new TypeError(message);
338
+ return true;
222
339
  }
340
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
223
341
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
224
342
  function _doNothing(value) {
225
343
  return value;
226
344
  }
227
345
  /*#__NO_SIDE_EFFECTS__*/
228
346
  function _getProto(value) {
347
+ _throwIfNullOrUndefined(value);
229
348
  return value[__PROTO__] || NULL_VALUE;
230
349
  }
231
350
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
232
- function objDeepFreeze(value) {
233
- if (_objFreeze) {
234
- objForEachKey(value, function (key, value) {
235
- if (isArray(value) || isObject(value)) {
236
- objDeepFreeze(value);
351
+ function _deepFreeze(val, visited) {
352
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
353
+ for (var lp = 0; lp < visited.length; lp++) {
354
+ if (visited[lp] === val) {
355
+ return val;
237
356
  }
357
+ }
358
+ visited.push(val);
359
+ objForEachKey(val, function (_key, propValue) {
360
+ _deepFreeze(propValue, visited);
238
361
  });
362
+ objFreeze(val);
239
363
  }
240
- return objFreeze(value);
364
+ return val;
365
+ }
366
+ function objDeepFreeze(value) {
367
+ return _objFreeze ? _deepFreeze(value, []) : value;
241
368
  }
242
369
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
243
370
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -291,28 +418,13 @@ function _getGlobalConfig() {
291
418
  }
292
419
  return _globalCfg;
293
420
  }
294
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
295
- /*#__NO_SIDE_EFFECTS__*/
296
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
297
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
298
- return function (thisArg) {
299
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
300
- if (theFunc || polyFunc) {
301
- var theArgs = arguments;
302
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
303
- }
304
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
305
- };
306
- }
307
421
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
308
422
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
309
423
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
310
424
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
311
425
  /*#__NO_SIDE_EFFECTS__*/
312
426
  function polyStrSubstr(value, start, length) {
313
- if (isNullOrUndefined(value)) {
314
- throwTypeError("Invalid " + dumpObj(value));
315
- }
427
+ _throwIfNullOrUndefined(value);
316
428
  if (length < 0) {
317
429
  return EMPTY;
318
430
  }
@@ -329,8 +441,109 @@ function polyStrSubstr(value, start, length) {
329
441
  function strLeft(value, count) {
330
442
  return strSubstring(value, 0, count);
331
443
  }
444
+ function _tagAsPolyfill(target, polyfillTypeName) {
445
+ if (target) {
446
+ safe(function () {
447
+ target[POLYFILL_TAG] = true;
448
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
449
+ });
450
+ safe(objDefine, [target, POLYFILL_TAG, {
451
+ v: true,
452
+ w: false,
453
+ e: false
454
+ }]);
455
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
456
+ v: polyfillTypeName,
457
+ w: false,
458
+ e: false
459
+ }]);
460
+ }
461
+ return target;
462
+ }
463
+ /*#__NO_SIDE_EFFECTS__*/
464
+ function createCachedValue(value) {
465
+ return objDefineProp({
466
+ toJSON: function () { return value; }
467
+ }, "v", { value: value });
468
+ }
469
+ var _isProtoArray;
470
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
471
+ function _polyObjSetPrototypeOf(obj, proto) {
472
+ var _a;
473
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
474
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
475
+ return obj;
476
+ }
477
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
478
+ /*#__NO_SIDE_EFFECTS__*/
479
+ function polyObjCreate(obj, properties) {
480
+ var newObj;
481
+ function tempFunc() { }
482
+ if (!isStrictNullOrUndefined(obj)) {
483
+ var type = typeof obj;
484
+ if (type !== OBJECT && type !== FUNCTION) {
485
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
486
+ }
487
+ tempFunc[PROTOTYPE] = obj;
488
+ safe(function () {
489
+ tempFunc[__PROTO__] = obj;
490
+ });
491
+ newObj = new tempFunc();
492
+ }
493
+ else {
494
+ newObj = {};
495
+ }
496
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
497
+ if (properties) {
498
+ safe(objDefineProperties, [newObj, properties]);
499
+ }
500
+ return newObj;
501
+ }
502
+ /*#__NO_SIDE_EFFECTS__*/
503
+ function utcNow() {
504
+ return (Date.now || polyUtcNow)();
505
+ }
506
+ /*#__NO_SIDE_EFFECTS__*/
507
+ function polyUtcNow() {
508
+ return new Date().getTime();
509
+ }
510
+ var _globalLazyTestHooks;
511
+ function _initTestHooks() {
512
+ _globalLazyTestHooks = _getGlobalConfig();
513
+ }
514
+ /*#__NO_SIDE_EFFECTS__*/
515
+ function getLazy(cb) {
516
+ var lazyValue = {};
517
+ !_globalLazyTestHooks && _initTestHooks();
518
+ lazyValue.b = _globalLazyTestHooks.lzy;
519
+ objDefineProp(lazyValue, "v", {
520
+ configurable: true,
521
+ get: function () {
522
+ var result = cb();
523
+ if (!_globalLazyTestHooks.lzy) {
524
+ objDefineProp(lazyValue, "v", {
525
+ value: result
526
+ });
527
+ }
528
+ lazyValue.b = _globalLazyTestHooks.lzy;
529
+ return result;
530
+ }
531
+ });
532
+ return lazyValue;
533
+ }
534
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
535
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
536
+ var value = (utcNow().toString(36).slice(2));
537
+ while (value.length < 16) {
538
+ value += mathRandom().toString(36).slice(2);
539
+ }
540
+ value = value.substring(0, 16);
541
+ return value;
542
+ }));
332
543
  var UNIQUE_REGISTRY_ID = "_urid";
544
+ var POLY_SYM = "$nw21sym";
333
545
  var _polySymbols;
546
+ var _polyId = 0;
334
547
  /*#__NO_SIDE_EFFECTS__*/
335
548
  function _globalSymbolRegistry() {
336
549
  if (!_polySymbols) {
@@ -342,12 +555,35 @@ function _globalSymbolRegistry() {
342
555
  var _wellKnownSymbolCache;
343
556
  /*#__NO_SIDE_EFFECTS__*/
344
557
  function polyNewSymbol(description) {
345
- var theSymbol = {
346
- description: asString(description),
347
- toString: function () { return SYMBOL + "(" + description + ")"; }
348
- };
349
- theSymbol[POLYFILL_TAG] = true;
350
- return theSymbol;
558
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
559
+ var symString = SYMBOL + "(" + description + ")";
560
+ var theSymbol = objCreate(null);
561
+ objDefine(theSymbol, "description", {
562
+ v: asString(description),
563
+ e: false,
564
+ w: false
565
+ });
566
+ objDefine(theSymbol, TO_STRING, {
567
+ v: function () { return symString + POLY_SYM + uniqueId; },
568
+ e: false,
569
+ w: false
570
+ });
571
+ objDefine(theSymbol, "valueOf", {
572
+ v: function () { return theSymbol; },
573
+ e: false,
574
+ w: false
575
+ });
576
+ objDefine(theSymbol, "v", {
577
+ v: symString,
578
+ e: false,
579
+ w: false
580
+ });
581
+ objDefine(theSymbol, "_uid", {
582
+ v: uniqueId,
583
+ e: false,
584
+ w: false
585
+ });
586
+ return _tagAsPolyfill(theSymbol, "symbol");
351
587
  }
352
588
  /*#__NO_SIDE_EFFECTS__*/
353
589
  function polySymbolFor(key) {
@@ -371,36 +607,6 @@ function polyGetKnownSymbol(name) {
371
607
  }
372
608
  return result;
373
609
  }
374
- var _globalLazyTestHooks;
375
- function _initTestHooks() {
376
- _globalLazyTestHooks = _getGlobalConfig();
377
- }
378
- /*#__NO_SIDE_EFFECTS__*/
379
- function getLazy(cb) {
380
- var lazyValue = {};
381
- !_globalLazyTestHooks && _initTestHooks();
382
- lazyValue.b = _globalLazyTestHooks.lzy;
383
- objDefineProp(lazyValue, "v", {
384
- configurable: true,
385
- get: function () {
386
- var result = cb();
387
- if (!_globalLazyTestHooks.lzy) {
388
- objDefineProp(lazyValue, "v", {
389
- value: result
390
- });
391
- }
392
- lazyValue.b = _globalLazyTestHooks.lzy;
393
- return result;
394
- }
395
- });
396
- return lazyValue;
397
- }
398
- /*#__NO_SIDE_EFFECTS__*/
399
- function createCachedValue(value) {
400
- return objDefineProp({
401
- toJSON: function () { return value; }
402
- }, "v", { value: value });
403
- }
404
610
  var WINDOW = "window";
405
611
  var _cachedGlobal;
406
612
  function _getGlobalInstFn(getFn, theArgs) {
@@ -546,43 +752,7 @@ function arrAppend(target, elms) {
546
752
  }
547
753
  return target;
548
754
  }
549
- function arrForEach(theArray, callbackfn, thisArg) {
550
- if (theArray) {
551
- var len = theArray[LENGTH] >>> 0;
552
- for (var idx = 0; idx < len; idx++) {
553
- if (idx in theArray) {
554
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
555
- break;
556
- }
557
- }
558
- }
559
- }
560
- }
561
755
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
562
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
563
- /*#__NO_SIDE_EFFECTS__*/
564
- function polyObjCreate(obj) {
565
- if (!obj) {
566
- return {};
567
- }
568
- var type = typeof obj;
569
- if (type !== OBJECT && type !== FUNCTION) {
570
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
571
- }
572
- function tempFunc() { }
573
- tempFunc[PROTOTYPE] = obj;
574
- return new tempFunc();
575
- }
576
- var _isProtoArray;
577
- function objSetPrototypeOf(obj, proto) {
578
- var fn = ObjClass["setPrototypeOf"] ||
579
- function (d, b) {
580
- var _a;
581
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
582
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
583
- };
584
- return fn(obj, proto);
585
- }
586
756
  /*#__NO_SIDE_EFFECTS__*/
587
757
  function _createCustomError(name, d, b) {
588
758
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -624,19 +794,9 @@ function createCustomError(name, constructCb, errorBase) {
624
794
  }, theBaseClass);
625
795
  }
626
796
  /*#__NO_SIDE_EFFECTS__*/
627
- function utcNow() {
628
- return (Date.now || polyUtcNow)();
629
- }
630
- /*#__NO_SIDE_EFFECTS__*/
631
- function polyUtcNow() {
632
- return new Date().getTime();
633
- }
634
- /*#__NO_SIDE_EFFECTS__*/
635
797
  function _createTrimFn(exp) {
636
798
  return function _doTrim(value) {
637
- if (isNullOrUndefined(value)) {
638
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
639
- }
799
+ _throwIfNullOrUndefined(value);
640
800
  if (value && value.replace) {
641
801
  value = value.replace(exp, EMPTY);
642
802
  }
@@ -682,9 +842,7 @@ var mathRound = ( /*#__PURE__*/_pureRef(MathCls, "round"));
682
842
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
683
843
  /*#__NO_SIDE_EFFECTS__*/
684
844
  function polyStrEndsWith(value, searchString, length) {
685
- if (!isString(value)) {
686
- throwTypeError("'" + dumpObj(value) + "' is not a string");
687
- }
845
+ _throwIfNotString(value);
688
846
  var searchValue = isString(searchString) ? searchString : asString(searchString);
689
847
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
690
848
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -1340,7 +1498,7 @@ function newId(maxLength) {
1340
1498
  return result;
1341
1499
  }
1342
1500
 
1343
- var version = '3.3.7-nightly3.2504-10';
1501
+ var version = '3.3.7-nightly3.2504-12';
1344
1502
  var instanceName = "." + newId(6);
1345
1503
  var _dataUid = 0;
1346
1504
  function _canAcceptData(target) {
@@ -3584,7 +3742,7 @@ var Device = /** @class */ (function () {
3584
3742
  return Device;
3585
3743
  }());
3586
3744
 
3587
- var Version = '3.3.7-nightly3.2504-10';
3745
+ var Version = '3.3.7-nightly3.2504-12';
3588
3746
  var Internal = /** @class */ (function () {
3589
3747
  function Internal(config, unloadHookContainer) {
3590
3748
  var _this = this;