@microsoft/applicationinsights-analytics-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 (28) hide show
  1. package/browser/es5/applicationinsights-analytics-js.cjs.js +296 -138
  2. package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-analytics-js.gbl.js +298 -140
  6. package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-analytics-js.js +298 -140
  11. package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-analytics-js.js +296 -138
  15. package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
  18. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
  19. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
  20. package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
  21. package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
  22. package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
  23. package/dist-es5/JavaScriptSDK/Timing.js +1 -1
  24. package/dist-es5/__DynamicConstants.js +1 -1
  25. package/dist-es5/applicationinsights-analytics-js.js +1 -1
  26. package/package.json +5 -5
  27. package/types/applicationinsights-analytics-js.d.ts +1 -1
  28. package/types/applicationinsights-analytics-js.namespaced.d.ts +1 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 3.3.7-nightly3.2504-10
2
+ * Application Insights JavaScript SDK - Web Analytics, 3.3.7-nightly3.2504-11
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_applicationinsights_analytics_js_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_applicationinsights_analytics_js_3_3_7_nightly3_2504_11", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-11";
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]||{});
@@ -33,7 +33,7 @@ var strShimPrototype = "prototype";
33
33
  var ObjClass$1 = Object;
34
34
  var ObjProto$1 = ObjClass$1[strShimPrototype];
35
35
 
36
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
36
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
37
37
  /*#__NO_SIDE_EFFECTS__*/
38
38
  function _pureAssign(func1, func2) {
39
39
  return func1 || func2;
@@ -52,11 +52,12 @@ var __PROTO__ = "__proto__";
52
52
  var UNDEFINED = "undefined";
53
53
  var CONSTRUCTOR = "constructor";
54
54
  var SYMBOL = "Symbol";
55
- var POLYFILL_TAG = "_polyfill";
56
55
  var LENGTH = "length";
57
56
  var NAME = "name";
58
57
  var CALL = "call";
59
58
  var TO_STRING = "toString";
59
+ var GETTER_NAME = "__lookupGetter__";
60
+ var SETTER_NAME = "__lookupSetter__";
60
61
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
61
62
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
62
63
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -65,6 +66,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
65
66
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
66
67
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
67
68
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
69
+ var POLYFILL_TAG = "_polyfill";
70
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
68
71
  function safe(func, argArray) {
69
72
  try {
70
73
  return {
@@ -103,7 +106,7 @@ function isUndefined(value) {
103
106
  }
104
107
  /*#__NO_SIDE_EFFECTS__*/
105
108
  function isStrictUndefined(arg) {
106
- return !isDefined(arg);
109
+ return arg === UNDEF_VALUE;
107
110
  }
108
111
  /*#__NO_SIDE_EFFECTS__*/
109
112
  function isNullOrUndefined(value) {
@@ -111,7 +114,7 @@ function isNullOrUndefined(value) {
111
114
  }
112
115
  /*#__NO_SIDE_EFFECTS__*/
113
116
  function isStrictNullOrUndefined(value) {
114
- return value === NULL_VALUE || !isDefined(value);
117
+ return value === NULL_VALUE || value === UNDEF_VALUE;
115
118
  }
116
119
  /*#__NO_SIDE_EFFECTS__*/
117
120
  function isDefined(arg) {
@@ -127,24 +130,134 @@ function isObject(value) {
127
130
  return !!value && typeof value === OBJECT;
128
131
  }
129
132
  var isArray = ( /* #__PURE__*/_pureRef(ArrCls, "isArray"));
133
+ var isNumber = ( /*#__PURE__*/_createIs("number"));
130
134
  var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
131
135
  var isError = ( /*#__PURE__*/_createObjIs("Error"));
132
136
  /*#__NO_SIDE_EFFECTS__*/
133
137
  function isTruthy(value) {
134
138
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
135
139
  }
136
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
140
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
141
+ var ERROR_TYPE = "[object Error]";
142
+ /*#__NO_SIDE_EFFECTS__*/
143
+ function dumpObj(object, format) {
144
+ var propertyValueDump = EMPTY;
145
+ var objType = ObjProto[TO_STRING][CALL](object);
146
+ if (objType === ERROR_TYPE) {
147
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
148
+ }
149
+ try {
150
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
151
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
152
+ }
153
+ catch (e) {
154
+ propertyValueDump = " - " + dumpObj(e, format);
155
+ }
156
+ return objType + ": " + propertyValueDump;
157
+ }
158
+ function throwError(message) {
159
+ throw new Error(message);
160
+ }
161
+ function throwTypeError(message) {
162
+ throw new TypeError(message);
163
+ }
164
+ function _throwIfNullOrUndefined(obj) {
165
+ if (isStrictNullOrUndefined(obj)) {
166
+ throwTypeError("Cannot convert undefined or null to object");
167
+ }
168
+ }
169
+ function _throwIfNotString(value) {
170
+ if (!isString(value)) {
171
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
172
+ }
173
+ }
137
174
  /*#__NO_SIDE_EFFECTS__*/
138
175
  function objHasOwnProperty(obj, prop) {
139
176
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
140
177
  }
141
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
178
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
179
+ /*#__NO_SIDE_EFFECTS__*/
180
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
181
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
182
+ return function (thisArg) {
183
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
184
+ if (theFunc || polyFunc) {
185
+ var theArgs = arguments;
186
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
187
+ }
188
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
189
+ };
190
+ }
191
+ function _objPropertyIsEnum(obj, propKey) {
192
+ var desc;
193
+ var fn = ObjClass.getOwnPropertyDescriptor;
194
+ if (!isStrictNullOrUndefined(obj) && fn) {
195
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
196
+ }
197
+ if (!desc) {
198
+ desc = safe(function () {
199
+ for (var key in obj) {
200
+ if (key === propKey) {
201
+ return { enumerable: true };
202
+ }
203
+ }
204
+ }).v;
205
+ }
206
+ return (desc && desc.enumerable) || false;
207
+ }
208
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
209
+ function _isPropertyWritable(obj, prop) {
210
+ var result = false;
211
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
212
+ var originalValue = obj[prop];
213
+ try {
214
+ obj[prop] = originalValue;
215
+ result = true;
216
+ }
217
+ catch (e) {
218
+ }
219
+ }
220
+ return result;
221
+ }
222
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
223
+ var descriptor;
224
+ _throwIfNullOrUndefined(obj);
225
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
226
+ if (isLength || objHasOwnProperty(obj, prop)) {
227
+ descriptor = {
228
+ configurable: !isLength,
229
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
230
+ };
231
+ var isData = true;
232
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
233
+ var getter = obj[GETTER_NAME](prop);
234
+ var setter = obj[SETTER_NAME](prop);
235
+ if (getter || setter) {
236
+ isData = false;
237
+ if (getter) {
238
+ descriptor.get = getter;
239
+ }
240
+ if (setter) {
241
+ descriptor.set = setter;
242
+ }
243
+ }
244
+ }
245
+ if (isData) {
246
+ descriptor.value = obj[prop];
247
+ descriptor.writable = _isPropertyWritable(obj, prop);
248
+ }
249
+ }
250
+ return descriptor;
251
+ }
252
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
142
253
  /*#__NO_SIDE_EFFECTS__*/
143
254
  function polyObjHasOwn(obj, prop) {
255
+ _throwIfNullOrUndefined(obj);
144
256
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
145
257
  }
258
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
146
259
  function objForEachKey(theObject, callbackfn, thisArg) {
147
- if (theObject && isObject(theObject)) {
260
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
148
261
  for (var prop in theObject) {
149
262
  if (objHasOwn(theObject, prop)) {
150
263
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -154,6 +267,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
154
267
  }
155
268
  }
156
269
  }
270
+ function arrForEach(theArray, callbackfn, thisArg) {
271
+ if (theArray) {
272
+ var len = theArray[LENGTH] >>> 0;
273
+ for (var idx = 0; idx < len; idx++) {
274
+ if (idx in theArray) {
275
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
276
+ break;
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
157
282
  var propMap = {
158
283
  e: "enumerable",
159
284
  c: "configurable",
@@ -182,6 +307,7 @@ function _createProp(value) {
182
307
  return prop;
183
308
  }
184
309
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
310
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
185
311
  function objDefine(target, key, propDesc) {
186
312
  return objDefineProp(target, key, _createProp(propDesc));
187
313
  }
@@ -201,49 +327,50 @@ function _assignMapValue(theMap, key, value, writable) {
201
327
  writable: false
202
328
  });
203
329
  }
204
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
205
- var ERROR_TYPE = "[object Error]";
206
- /*#__NO_SIDE_EFFECTS__*/
207
- function dumpObj(object, format) {
208
- var propertyValueDump = EMPTY;
209
- var objType = ObjProto[TO_STRING][CALL](object);
210
- if (objType === ERROR_TYPE) {
211
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
330
+ function polyObjIsFrozen(obj) {
331
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
332
+ return true;
212
333
  }
213
- try {
214
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
215
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
334
+ if (isFunction(obj)) {
335
+ return false;
216
336
  }
217
- catch (e) {
218
- propertyValueDump = " - " + dumpObj(e, format);
337
+ for (var prop in obj) {
338
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
339
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
340
+ return false;
341
+ }
219
342
  }
220
- return objType + ": " + propertyValueDump;
221
- }
222
- function throwError(message) {
223
- throw new Error(message);
224
- }
225
- function throwTypeError(message) {
226
- throw new TypeError(message);
343
+ return true;
227
344
  }
345
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
228
346
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
229
347
  function _doNothing(value) {
230
348
  return value;
231
349
  }
232
350
  /*#__NO_SIDE_EFFECTS__*/
233
351
  function _getProto(value) {
352
+ _throwIfNullOrUndefined(value);
234
353
  return value[__PROTO__] || NULL_VALUE;
235
354
  }
236
355
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
237
356
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
238
- function objDeepFreeze(value) {
239
- if (_objFreeze) {
240
- objForEachKey(value, function (key, value) {
241
- if (isArray(value) || isObject(value)) {
242
- objDeepFreeze(value);
357
+ function _deepFreeze(val, visited) {
358
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
359
+ for (var lp = 0; lp < visited.length; lp++) {
360
+ if (visited[lp] === val) {
361
+ return val;
243
362
  }
363
+ }
364
+ visited.push(val);
365
+ objForEachKey(val, function (_key, propValue) {
366
+ _deepFreeze(propValue, visited);
244
367
  });
368
+ objFreeze(val);
245
369
  }
246
- return objFreeze(value);
370
+ return val;
371
+ }
372
+ function objDeepFreeze(value) {
373
+ return _objFreeze ? _deepFreeze(value, []) : value;
247
374
  }
248
375
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
249
376
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -297,28 +424,13 @@ function _getGlobalConfig() {
297
424
  }
298
425
  return _globalCfg;
299
426
  }
300
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
301
- /*#__NO_SIDE_EFFECTS__*/
302
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
303
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
304
- return function (thisArg) {
305
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
306
- if (theFunc || polyFunc) {
307
- var theArgs = arguments;
308
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
309
- }
310
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
311
- };
312
- }
313
427
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
314
428
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
315
429
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
316
430
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
317
431
  /*#__NO_SIDE_EFFECTS__*/
318
432
  function polyStrSubstr(value, start, length) {
319
- if (isNullOrUndefined(value)) {
320
- throwTypeError("Invalid " + dumpObj(value));
321
- }
433
+ _throwIfNullOrUndefined(value);
322
434
  if (length < 0) {
323
435
  return EMPTY;
324
436
  }
@@ -335,8 +447,109 @@ function polyStrSubstr(value, start, length) {
335
447
  function strLeft(value, count) {
336
448
  return strSubstring(value, 0, count);
337
449
  }
450
+ function _tagAsPolyfill(target, polyfillTypeName) {
451
+ if (target) {
452
+ safe(function () {
453
+ target[POLYFILL_TAG] = true;
454
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
455
+ });
456
+ safe(objDefine, [target, POLYFILL_TAG, {
457
+ v: true,
458
+ w: false,
459
+ e: false
460
+ }]);
461
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
462
+ v: polyfillTypeName,
463
+ w: false,
464
+ e: false
465
+ }]);
466
+ }
467
+ return target;
468
+ }
469
+ /*#__NO_SIDE_EFFECTS__*/
470
+ function createCachedValue(value) {
471
+ return objDefineProp({
472
+ toJSON: function () { return value; }
473
+ }, "v", { value: value });
474
+ }
475
+ var _isProtoArray;
476
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
477
+ function _polyObjSetPrototypeOf(obj, proto) {
478
+ var _a;
479
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
480
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
481
+ return obj;
482
+ }
483
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
484
+ /*#__NO_SIDE_EFFECTS__*/
485
+ function polyObjCreate(obj, properties) {
486
+ var newObj;
487
+ function tempFunc() { }
488
+ if (!isStrictNullOrUndefined(obj)) {
489
+ var type = typeof obj;
490
+ if (type !== OBJECT && type !== FUNCTION) {
491
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
492
+ }
493
+ tempFunc[PROTOTYPE] = obj;
494
+ safe(function () {
495
+ tempFunc[__PROTO__] = obj;
496
+ });
497
+ newObj = new tempFunc();
498
+ }
499
+ else {
500
+ newObj = {};
501
+ }
502
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
503
+ if (properties) {
504
+ safe(objDefineProperties, [newObj, properties]);
505
+ }
506
+ return newObj;
507
+ }
508
+ /*#__NO_SIDE_EFFECTS__*/
509
+ function utcNow() {
510
+ return (Date.now || polyUtcNow)();
511
+ }
512
+ /*#__NO_SIDE_EFFECTS__*/
513
+ function polyUtcNow() {
514
+ return new Date().getTime();
515
+ }
516
+ var _globalLazyTestHooks;
517
+ function _initTestHooks() {
518
+ _globalLazyTestHooks = _getGlobalConfig();
519
+ }
520
+ /*#__NO_SIDE_EFFECTS__*/
521
+ function getLazy(cb) {
522
+ var lazyValue = {};
523
+ !_globalLazyTestHooks && _initTestHooks();
524
+ lazyValue.b = _globalLazyTestHooks.lzy;
525
+ objDefineProp(lazyValue, "v", {
526
+ configurable: true,
527
+ get: function () {
528
+ var result = cb();
529
+ if (!_globalLazyTestHooks.lzy) {
530
+ objDefineProp(lazyValue, "v", {
531
+ value: result
532
+ });
533
+ }
534
+ lazyValue.b = _globalLazyTestHooks.lzy;
535
+ return result;
536
+ }
537
+ });
538
+ return lazyValue;
539
+ }
540
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
541
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
542
+ var value = (utcNow().toString(36).slice(2));
543
+ while (value.length < 16) {
544
+ value += mathRandom().toString(36).slice(2);
545
+ }
546
+ value = value.substring(0, 16);
547
+ return value;
548
+ }));
338
549
  var UNIQUE_REGISTRY_ID = "_urid";
550
+ var POLY_SYM = "$nw21sym";
339
551
  var _polySymbols;
552
+ var _polyId = 0;
340
553
  /*#__NO_SIDE_EFFECTS__*/
341
554
  function _globalSymbolRegistry() {
342
555
  if (!_polySymbols) {
@@ -348,12 +561,35 @@ function _globalSymbolRegistry() {
348
561
  var _wellKnownSymbolCache;
349
562
  /*#__NO_SIDE_EFFECTS__*/
350
563
  function polyNewSymbol(description) {
351
- var theSymbol = {
352
- description: asString(description),
353
- toString: function () { return SYMBOL + "(" + description + ")"; }
354
- };
355
- theSymbol[POLYFILL_TAG] = true;
356
- return theSymbol;
564
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
565
+ var symString = SYMBOL + "(" + description + ")";
566
+ var theSymbol = objCreate(null);
567
+ objDefine(theSymbol, "description", {
568
+ v: asString(description),
569
+ e: false,
570
+ w: false
571
+ });
572
+ objDefine(theSymbol, TO_STRING, {
573
+ v: function () { return symString + POLY_SYM + uniqueId; },
574
+ e: false,
575
+ w: false
576
+ });
577
+ objDefine(theSymbol, "valueOf", {
578
+ v: function () { return theSymbol; },
579
+ e: false,
580
+ w: false
581
+ });
582
+ objDefine(theSymbol, "v", {
583
+ v: symString,
584
+ e: false,
585
+ w: false
586
+ });
587
+ objDefine(theSymbol, "_uid", {
588
+ v: uniqueId,
589
+ e: false,
590
+ w: false
591
+ });
592
+ return _tagAsPolyfill(theSymbol, "symbol");
357
593
  }
358
594
  /*#__NO_SIDE_EFFECTS__*/
359
595
  function polySymbolFor(key) {
@@ -377,36 +613,6 @@ function polyGetKnownSymbol(name) {
377
613
  }
378
614
  return result;
379
615
  }
380
- var _globalLazyTestHooks;
381
- function _initTestHooks() {
382
- _globalLazyTestHooks = _getGlobalConfig();
383
- }
384
- /*#__NO_SIDE_EFFECTS__*/
385
- function getLazy(cb) {
386
- var lazyValue = {};
387
- !_globalLazyTestHooks && _initTestHooks();
388
- lazyValue.b = _globalLazyTestHooks.lzy;
389
- objDefineProp(lazyValue, "v", {
390
- configurable: true,
391
- get: function () {
392
- var result = cb();
393
- if (!_globalLazyTestHooks.lzy) {
394
- objDefineProp(lazyValue, "v", {
395
- value: result
396
- });
397
- }
398
- lazyValue.b = _globalLazyTestHooks.lzy;
399
- return result;
400
- }
401
- });
402
- return lazyValue;
403
- }
404
- /*#__NO_SIDE_EFFECTS__*/
405
- function createCachedValue(value) {
406
- return objDefineProp({
407
- toJSON: function () { return value; }
408
- }, "v", { value: value });
409
- }
410
616
  var WINDOW = "window";
411
617
  var _cachedGlobal;
412
618
  function _getGlobalInstFn(getFn, theArgs) {
@@ -560,44 +766,8 @@ function arrAppend(target, elms) {
560
766
  }
561
767
  return target;
562
768
  }
563
- function arrForEach(theArray, callbackfn, thisArg) {
564
- if (theArray) {
565
- var len = theArray[LENGTH] >>> 0;
566
- for (var idx = 0; idx < len; idx++) {
567
- if (idx in theArray) {
568
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
569
- break;
570
- }
571
- }
572
- }
573
- }
574
- }
575
769
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
576
770
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
577
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
578
- /*#__NO_SIDE_EFFECTS__*/
579
- function polyObjCreate(obj) {
580
- if (!obj) {
581
- return {};
582
- }
583
- var type = typeof obj;
584
- if (type !== OBJECT && type !== FUNCTION) {
585
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
586
- }
587
- function tempFunc() { }
588
- tempFunc[PROTOTYPE] = obj;
589
- return new tempFunc();
590
- }
591
- var _isProtoArray;
592
- function objSetPrototypeOf(obj, proto) {
593
- var fn = ObjClass["setPrototypeOf"] ||
594
- function (d, b) {
595
- var _a;
596
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
597
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
598
- };
599
- return fn(obj, proto);
600
- }
601
771
  /*#__NO_SIDE_EFFECTS__*/
602
772
  function _createCustomError(name, d, b) {
603
773
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -639,19 +809,9 @@ function createCustomError(name, constructCb, errorBase) {
639
809
  }, theBaseClass);
640
810
  }
641
811
  /*#__NO_SIDE_EFFECTS__*/
642
- function utcNow() {
643
- return (Date.now || polyUtcNow)();
644
- }
645
- /*#__NO_SIDE_EFFECTS__*/
646
- function polyUtcNow() {
647
- return new Date().getTime();
648
- }
649
- /*#__NO_SIDE_EFFECTS__*/
650
812
  function _createTrimFn(exp) {
651
813
  return function _doTrim(value) {
652
- if (isNullOrUndefined(value)) {
653
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
654
- }
814
+ _throwIfNullOrUndefined(value);
655
815
  if (value && value.replace) {
656
816
  value = value.replace(exp, EMPTY);
657
817
  }
@@ -706,9 +866,7 @@ var mathRound = ( /*#__PURE__*/_pureRef(MathCls, "round"));
706
866
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
707
867
  /*#__NO_SIDE_EFFECTS__*/
708
868
  function polyStrEndsWith(value, searchString, length) {
709
- if (!isString(value)) {
710
- throwTypeError("'" + dumpObj(value) + "' is not a string");
711
- }
869
+ _throwIfNotString(value);
712
870
  var searchValue = isString(searchString) ? searchString : asString(searchString);
713
871
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
714
872
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -1354,7 +1512,7 @@ function newId(maxLength) {
1354
1512
  return result;
1355
1513
  }
1356
1514
 
1357
- var version = '3.3.7-nightly3.2504-10';
1515
+ var version = '3.3.7-nightly3.2504-11';
1358
1516
  var instanceName = "." + newId(6);
1359
1517
  var _dataUid = 0;
1360
1518
  function _canAcceptData(target) {
@@ -5772,7 +5930,7 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
5772
5930
  });
5773
5931
  return _this;
5774
5932
  }
5775
- AnalyticsPlugin.Version = '3.3.7-nightly3.2504-10';
5933
+ AnalyticsPlugin.Version = '3.3.7-nightly3.2504-11';
5776
5934
  return AnalyticsPlugin;
5777
5935
  }(BaseTelemetryPlugin));
5778
5936