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