@microsoft/applicationinsights-channel-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 (55) hide show
  1. package/browser/es5/{applicationinsights-channel-js.3.3.7-nightly3.2504-08.js → applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.js} +287 -140
  2. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.js → applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.js} +289 -115
  6. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.js → applicationinsights-channel-js.3.3.7-nightly3.2504-12.js} +314 -113
  11. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.js.map +1 -0
  12. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.min.js +6 -0
  13. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-channel-js.3.cjs.js +286 -112
  15. package/browser/es5/applicationinsights-channel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-channel-js.3.gbl.js +288 -114
  19. package/browser/es5/applicationinsights-channel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-channel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-channel-js.3.js +288 -114
  24. package/browser/es5/applicationinsights-channel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-channel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-channel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-channel-js.js +286 -112
  28. package/dist/es5/applicationinsights-channel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-channel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-channel-js.min.js.map +1 -1
  31. package/dist-es5/EnvelopeCreator.js +2 -2
  32. package/dist-es5/EnvelopeCreator.js.map +1 -1
  33. package/dist-es5/Interfaces.js +1 -1
  34. package/dist-es5/InternalConstants.js +1 -1
  35. package/dist-es5/SendBuffer.js +1 -1
  36. package/dist-es5/Sender.js +1 -1
  37. package/dist-es5/Serializer.js +1 -1
  38. package/dist-es5/TelemetryProcessors/Sample.js +1 -1
  39. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  40. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  41. package/dist-es5/__DynamicConstants.js +1 -1
  42. package/dist-es5/applicationinsights-channel-js.js +1 -1
  43. package/package.json +3 -3
  44. package/types/applicationinsights-channel-js.d.ts +1 -1
  45. package/types/applicationinsights-channel-js.namespaced.d.ts +1 -1
  46. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.js.map +0 -1
  47. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.min.js +0 -6
  48. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.min.js.map +0 -1
  49. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.js.map +0 -1
  50. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.min.js +0 -6
  51. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.min.js.map +0 -1
  52. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.integrity.json +0 -66
  53. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.js.map +0 -1
  54. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.min.js +0 -6
  55. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 3.3.7-nightly3.2504-08
2
+ * Application Insights JavaScript SDK - Channel, 3.3.7-nightly3.2504-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -12,7 +12,7 @@ var strShimPrototype = "prototype";
12
12
  var ObjClass$1 = Object;
13
13
  var ObjProto$1 = ObjClass$1[strShimPrototype];
14
14
 
15
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
15
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
16
16
  /*#__NO_SIDE_EFFECTS__*/
17
17
  function _pureAssign(func1, func2) {
18
18
  return func1 || func2;
@@ -31,11 +31,12 @@ var __PROTO__ = "__proto__";
31
31
  var UNDEFINED = "undefined";
32
32
  var CONSTRUCTOR = "constructor";
33
33
  var SYMBOL = "Symbol";
34
- var POLYFILL_TAG = "_polyfill";
35
34
  var LENGTH = "length";
36
35
  var NAME = "name";
37
36
  var CALL = "call";
38
37
  var TO_STRING = "toString";
38
+ var GETTER_NAME = "__lookupGetter__";
39
+ var SETTER_NAME = "__lookupSetter__";
39
40
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
40
41
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
41
42
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -44,6 +45,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
44
45
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
45
46
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
46
47
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
48
+ var POLYFILL_TAG = "_polyfill";
49
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
47
50
  function safe(func, argArray) {
48
51
  try {
49
52
  return {
@@ -82,7 +85,7 @@ function isUndefined(value) {
82
85
  }
83
86
  /*#__NO_SIDE_EFFECTS__*/
84
87
  function isStrictUndefined(arg) {
85
- return !isDefined(arg);
88
+ return arg === UNDEF_VALUE;
86
89
  }
87
90
  /*#__NO_SIDE_EFFECTS__*/
88
91
  function isNullOrUndefined(value) {
@@ -90,7 +93,7 @@ function isNullOrUndefined(value) {
90
93
  }
91
94
  /*#__NO_SIDE_EFFECTS__*/
92
95
  function isStrictNullOrUndefined(value) {
93
- return value === NULL_VALUE || !isDefined(value);
96
+ return value === NULL_VALUE || value === UNDEF_VALUE;
94
97
  }
95
98
  /*#__NO_SIDE_EFFECTS__*/
96
99
  function isDefined(arg) {
@@ -117,18 +120,119 @@ function isPromiseLike(value) {
117
120
  function isTruthy(value) {
118
121
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
119
122
  }
120
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
123
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
124
+ var ERROR_TYPE = "[object Error]";
125
+ /*#__NO_SIDE_EFFECTS__*/
126
+ function dumpObj(object, format) {
127
+ var propertyValueDump = EMPTY;
128
+ var objType = ObjProto[TO_STRING][CALL](object);
129
+ if (objType === ERROR_TYPE) {
130
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
131
+ }
132
+ try {
133
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
134
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
135
+ }
136
+ catch (e) {
137
+ propertyValueDump = " - " + dumpObj(e, format);
138
+ }
139
+ return objType + ": " + propertyValueDump;
140
+ }
141
+ function throwTypeError(message) {
142
+ throw new TypeError(message);
143
+ }
144
+ function _throwIfNullOrUndefined(obj) {
145
+ if (isStrictNullOrUndefined(obj)) {
146
+ throwTypeError("Cannot convert undefined or null to object");
147
+ }
148
+ }
121
149
  /*#__NO_SIDE_EFFECTS__*/
122
150
  function objHasOwnProperty(obj, prop) {
123
151
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
124
152
  }
125
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
153
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
154
+ /*#__NO_SIDE_EFFECTS__*/
155
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
156
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
157
+ return function (thisArg) {
158
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
159
+ if (theFunc || polyFunc) {
160
+ var theArgs = arguments;
161
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
162
+ }
163
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
164
+ };
165
+ }
166
+ function _objPropertyIsEnum(obj, propKey) {
167
+ var desc;
168
+ var fn = ObjClass.getOwnPropertyDescriptor;
169
+ if (!isStrictNullOrUndefined(obj) && fn) {
170
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
171
+ }
172
+ if (!desc) {
173
+ desc = safe(function () {
174
+ for (var key in obj) {
175
+ if (key === propKey) {
176
+ return { enumerable: true };
177
+ }
178
+ }
179
+ }).v;
180
+ }
181
+ return (desc && desc.enumerable) || false;
182
+ }
183
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
184
+ function _isPropertyWritable(obj, prop) {
185
+ var result = false;
186
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
187
+ var originalValue = obj[prop];
188
+ try {
189
+ obj[prop] = originalValue;
190
+ result = true;
191
+ }
192
+ catch (e) {
193
+ }
194
+ }
195
+ return result;
196
+ }
197
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
198
+ var descriptor;
199
+ _throwIfNullOrUndefined(obj);
200
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
201
+ if (isLength || objHasOwnProperty(obj, prop)) {
202
+ descriptor = {
203
+ configurable: !isLength,
204
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
205
+ };
206
+ var isData = true;
207
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
208
+ var getter = obj[GETTER_NAME](prop);
209
+ var setter = obj[SETTER_NAME](prop);
210
+ if (getter || setter) {
211
+ isData = false;
212
+ if (getter) {
213
+ descriptor.get = getter;
214
+ }
215
+ if (setter) {
216
+ descriptor.set = setter;
217
+ }
218
+ }
219
+ }
220
+ if (isData) {
221
+ descriptor.value = obj[prop];
222
+ descriptor.writable = _isPropertyWritable(obj, prop);
223
+ }
224
+ }
225
+ return descriptor;
226
+ }
227
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
126
228
  /*#__NO_SIDE_EFFECTS__*/
127
229
  function polyObjHasOwn(obj, prop) {
230
+ _throwIfNullOrUndefined(obj);
128
231
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
129
232
  }
233
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
130
234
  function objForEachKey(theObject, callbackfn, thisArg) {
131
- if (theObject && isObject(theObject)) {
235
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
132
236
  for (var prop in theObject) {
133
237
  if (objHasOwn(theObject, prop)) {
134
238
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -138,6 +242,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
138
242
  }
139
243
  }
140
244
  }
245
+ function arrForEach(theArray, callbackfn, thisArg) {
246
+ if (theArray) {
247
+ var len = theArray[LENGTH] >>> 0;
248
+ for (var idx = 0; idx < len; idx++) {
249
+ if (idx in theArray) {
250
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
251
+ break;
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
141
257
  var propMap = {
142
258
  e: "enumerable",
143
259
  c: "configurable",
@@ -166,6 +282,7 @@ function _createProp(value) {
166
282
  return prop;
167
283
  }
168
284
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
285
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
169
286
  function objDefine(target, key, propDesc) {
170
287
  return objDefineProp(target, key, _createProp(propDesc));
171
288
  }
@@ -185,46 +302,50 @@ function _assignMapValue(theMap, key, value, writable) {
185
302
  writable: false
186
303
  });
187
304
  }
188
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
189
- var ERROR_TYPE = "[object Error]";
190
- /*#__NO_SIDE_EFFECTS__*/
191
- function dumpObj(object, format) {
192
- var propertyValueDump = EMPTY;
193
- var objType = ObjProto[TO_STRING][CALL](object);
194
- if (objType === ERROR_TYPE) {
195
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
305
+ function polyObjIsFrozen(obj) {
306
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
307
+ return true;
196
308
  }
197
- try {
198
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
199
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
309
+ if (isFunction(obj)) {
310
+ return false;
200
311
  }
201
- catch (e) {
202
- propertyValueDump = " - " + dumpObj(e, format);
312
+ for (var prop in obj) {
313
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
314
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
315
+ return false;
316
+ }
203
317
  }
204
- return objType + ": " + propertyValueDump;
205
- }
206
- function throwTypeError(message) {
207
- throw new TypeError(message);
318
+ return true;
208
319
  }
320
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
209
321
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
210
322
  function _doNothing(value) {
211
323
  return value;
212
324
  }
213
325
  /*#__NO_SIDE_EFFECTS__*/
214
326
  function _getProto(value) {
327
+ _throwIfNullOrUndefined(value);
215
328
  return value[__PROTO__] || NULL_VALUE;
216
329
  }
217
330
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
218
331
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
219
- function objDeepFreeze(value) {
220
- if (_objFreeze) {
221
- objForEachKey(value, function (key, value) {
222
- if (isArray(value) || isObject(value)) {
223
- objDeepFreeze(value);
332
+ function _deepFreeze(val, visited) {
333
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
334
+ for (var lp = 0; lp < visited.length; lp++) {
335
+ if (visited[lp] === val) {
336
+ return val;
224
337
  }
338
+ }
339
+ visited.push(val);
340
+ objForEachKey(val, function (_key, propValue) {
341
+ _deepFreeze(propValue, visited);
225
342
  });
343
+ objFreeze(val);
226
344
  }
227
- return objFreeze(value);
345
+ return val;
346
+ }
347
+ function objDeepFreeze(value) {
348
+ return _objFreeze ? _deepFreeze(value, []) : value;
228
349
  }
229
350
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
230
351
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -291,19 +412,6 @@ function _getGlobalConfig() {
291
412
  }
292
413
  return _globalCfg;
293
414
  }
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
415
  var mathMin = ( /*#__PURE__*/_pureRef(MathCls, "min"));
308
416
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
309
417
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
@@ -311,9 +419,7 @@ var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
311
419
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
312
420
  /*#__NO_SIDE_EFFECTS__*/
313
421
  function polyStrSubstr(value, start, length) {
314
- if (isNullOrUndefined(value)) {
315
- throwTypeError("Invalid " + dumpObj(value));
316
- }
422
+ _throwIfNullOrUndefined(value);
317
423
  if (length < 0) {
318
424
  return EMPTY;
319
425
  }
@@ -326,8 +432,109 @@ function polyStrSubstr(value, start, length) {
326
432
  }
327
433
  return strSlice(value, start, start + length);
328
434
  }
435
+ function _tagAsPolyfill(target, polyfillTypeName) {
436
+ if (target) {
437
+ safe(function () {
438
+ target[POLYFILL_TAG] = true;
439
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
440
+ });
441
+ safe(objDefine, [target, POLYFILL_TAG, {
442
+ v: true,
443
+ w: false,
444
+ e: false
445
+ }]);
446
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
447
+ v: polyfillTypeName,
448
+ w: false,
449
+ e: false
450
+ }]);
451
+ }
452
+ return target;
453
+ }
454
+ /*#__NO_SIDE_EFFECTS__*/
455
+ function createCachedValue(value) {
456
+ return objDefineProp({
457
+ toJSON: function () { return value; }
458
+ }, "v", { value: value });
459
+ }
460
+ var _isProtoArray;
461
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
462
+ function _polyObjSetPrototypeOf(obj, proto) {
463
+ var _a;
464
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
465
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
466
+ return obj;
467
+ }
468
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
469
+ /*#__NO_SIDE_EFFECTS__*/
470
+ function polyObjCreate(obj, properties) {
471
+ var newObj;
472
+ function tempFunc() { }
473
+ if (!isStrictNullOrUndefined(obj)) {
474
+ var type = typeof obj;
475
+ if (type !== OBJECT && type !== FUNCTION) {
476
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
477
+ }
478
+ tempFunc[PROTOTYPE] = obj;
479
+ safe(function () {
480
+ tempFunc[__PROTO__] = obj;
481
+ });
482
+ newObj = new tempFunc();
483
+ }
484
+ else {
485
+ newObj = {};
486
+ }
487
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
488
+ if (properties) {
489
+ safe(objDefineProperties, [newObj, properties]);
490
+ }
491
+ return newObj;
492
+ }
493
+ /*#__NO_SIDE_EFFECTS__*/
494
+ function utcNow() {
495
+ return (Date.now || polyUtcNow)();
496
+ }
497
+ /*#__NO_SIDE_EFFECTS__*/
498
+ function polyUtcNow() {
499
+ return new Date().getTime();
500
+ }
501
+ var _globalLazyTestHooks;
502
+ function _initTestHooks() {
503
+ _globalLazyTestHooks = _getGlobalConfig();
504
+ }
505
+ /*#__NO_SIDE_EFFECTS__*/
506
+ function getLazy(cb) {
507
+ var lazyValue = {};
508
+ !_globalLazyTestHooks && _initTestHooks();
509
+ lazyValue.b = _globalLazyTestHooks.lzy;
510
+ objDefineProp(lazyValue, "v", {
511
+ configurable: true,
512
+ get: function () {
513
+ var result = cb();
514
+ if (!_globalLazyTestHooks.lzy) {
515
+ objDefineProp(lazyValue, "v", {
516
+ value: result
517
+ });
518
+ }
519
+ lazyValue.b = _globalLazyTestHooks.lzy;
520
+ return result;
521
+ }
522
+ });
523
+ return lazyValue;
524
+ }
525
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
526
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
527
+ var value = (utcNow().toString(36).slice(2));
528
+ while (value.length < 16) {
529
+ value += mathRandom().toString(36).slice(2);
530
+ }
531
+ value = value.substring(0, 16);
532
+ return value;
533
+ }));
329
534
  var UNIQUE_REGISTRY_ID = "_urid";
535
+ var POLY_SYM = "$nw21sym";
330
536
  var _polySymbols;
537
+ var _polyId = 0;
331
538
  /*#__NO_SIDE_EFFECTS__*/
332
539
  function _globalSymbolRegistry() {
333
540
  if (!_polySymbols) {
@@ -339,12 +546,35 @@ function _globalSymbolRegistry() {
339
546
  var _wellKnownSymbolCache;
340
547
  /*#__NO_SIDE_EFFECTS__*/
341
548
  function polyNewSymbol(description) {
342
- var theSymbol = {
343
- description: asString(description),
344
- toString: function () { return SYMBOL + "(" + description + ")"; }
345
- };
346
- theSymbol[POLYFILL_TAG] = true;
347
- return theSymbol;
549
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
550
+ var symString = SYMBOL + "(" + description + ")";
551
+ var theSymbol = objCreate(null);
552
+ objDefine(theSymbol, "description", {
553
+ v: asString(description),
554
+ e: false,
555
+ w: false
556
+ });
557
+ objDefine(theSymbol, TO_STRING, {
558
+ v: function () { return symString + POLY_SYM + uniqueId; },
559
+ e: false,
560
+ w: false
561
+ });
562
+ objDefine(theSymbol, "valueOf", {
563
+ v: function () { return theSymbol; },
564
+ e: false,
565
+ w: false
566
+ });
567
+ objDefine(theSymbol, "v", {
568
+ v: symString,
569
+ e: false,
570
+ w: false
571
+ });
572
+ objDefine(theSymbol, "_uid", {
573
+ v: uniqueId,
574
+ e: false,
575
+ w: false
576
+ });
577
+ return _tagAsPolyfill(theSymbol, "symbol");
348
578
  }
349
579
  /*#__NO_SIDE_EFFECTS__*/
350
580
  function polySymbolFor(key) {
@@ -368,16 +598,6 @@ function polyGetKnownSymbol(name) {
368
598
  }
369
599
  return result;
370
600
  }
371
- var _globalLazyTestHooks;
372
- function _initTestHooks() {
373
- _globalLazyTestHooks = _getGlobalConfig();
374
- }
375
- /*#__NO_SIDE_EFFECTS__*/
376
- function createCachedValue(value) {
377
- return objDefineProp({
378
- toJSON: function () { return value; }
379
- }, "v", { value: value });
380
- }
381
601
  var WINDOW = "window";
382
602
  var _cachedGlobal;
383
603
  function _getGlobalInstFn(getFn, theArgs) {
@@ -539,47 +759,11 @@ function arrAppend(target, elms) {
539
759
  }
540
760
  return target;
541
761
  }
542
- function arrForEach(theArray, callbackfn, thisArg) {
543
- if (theArray) {
544
- var len = theArray[LENGTH] >>> 0;
545
- for (var idx = 0; idx < len; idx++) {
546
- if (idx in theArray) {
547
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
548
- break;
549
- }
550
- }
551
- }
552
- }
553
- }
554
762
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
555
763
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
556
764
  function arrSlice(theArray, start, end) {
557
765
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
558
766
  }
559
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
560
- /*#__NO_SIDE_EFFECTS__*/
561
- function polyObjCreate(obj) {
562
- if (!obj) {
563
- return {};
564
- }
565
- var type = typeof obj;
566
- if (type !== OBJECT && type !== FUNCTION) {
567
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
568
- }
569
- function tempFunc() { }
570
- tempFunc[PROTOTYPE] = obj;
571
- return new tempFunc();
572
- }
573
- var _isProtoArray;
574
- function objSetPrototypeOf(obj, proto) {
575
- var fn = ObjClass["setPrototypeOf"] ||
576
- function (d, b) {
577
- var _a;
578
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
579
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
580
- };
581
- return fn(obj, proto);
582
- }
583
767
  /*#__NO_SIDE_EFFECTS__*/
584
768
  function _createCustomError(name, d, b) {
585
769
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -621,19 +805,9 @@ function createCustomError(name, constructCb, errorBase) {
621
805
  }, theBaseClass);
622
806
  }
623
807
  /*#__NO_SIDE_EFFECTS__*/
624
- function utcNow() {
625
- return (Date.now || polyUtcNow)();
626
- }
627
- /*#__NO_SIDE_EFFECTS__*/
628
- function polyUtcNow() {
629
- return new Date().getTime();
630
- }
631
- /*#__NO_SIDE_EFFECTS__*/
632
808
  function _createTrimFn(exp) {
633
809
  return function _doTrim(value) {
634
- if (isNullOrUndefined(value)) {
635
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
636
- }
810
+ _throwIfNullOrUndefined(value);
637
811
  if (value && value.replace) {
638
812
  value = value.replace(exp, EMPTY);
639
813
  }
@@ -1899,7 +2073,7 @@ function newId(maxLength) {
1899
2073
  return result;
1900
2074
  }
1901
2075
 
1902
- var version = '3.3.7-nightly3.2504-08';
2076
+ var version = '3.3.7-nightly3.2504-12';
1903
2077
  var instanceName = "." + newId(6);
1904
2078
  var _dataUid = 0;
1905
2079
  function _canAcceptData(target) {
@@ -5606,7 +5780,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
5606
5780
  }
5607
5781
  }
5608
5782
  var EnvelopeCreator = {
5609
- Version: '3.3.7-nightly3.2504-08'
5783
+ Version: '3.3.7-nightly3.2504-12'
5610
5784
  };
5611
5785
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5612
5786
  EnvelopeCreatorInit(logger, telemetryItem);