@microsoft/applicationinsights-analytics-js 3.4.0-nightlybeta.2504-03 → 3.4.0-nightlybeta3.2504-17

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 +246 -175
  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 +248 -177
  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 +248 -177
  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 +246 -175
  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 +33 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 3.4.0-nightlybeta.2504-03
2
+ * Application Insights JavaScript SDK - Web Analytics, 3.4.0-nightlybeta3.2504-17
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_4_0_nightlybeta_2504_03", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.4.0-nightlybeta.2504-03";
7
+ var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_analytics_js_3_4_0_nightlybeta3_2504_17", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.4.0-nightlybeta3.2504-17";
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.2 */
37
37
  /*#__NO_SIDE_EFFECTS__*/
38
38
  function _pureAssign(func1, func2) {
39
39
  return func1 || func2;
@@ -52,7 +52,6 @@ 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";
@@ -65,6 +64,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
65
64
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
66
65
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
67
66
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
67
+ var POLYFILL_TAG = "_polyfill";
68
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
68
69
  function safe(func, argArray) {
69
70
  try {
70
71
  return {
@@ -103,7 +104,7 @@ function isUndefined(value) {
103
104
  }
104
105
  /*#__NO_SIDE_EFFECTS__*/
105
106
  function isStrictUndefined(arg) {
106
- return !isDefined(arg);
107
+ return arg === UNDEF_VALUE;
107
108
  }
108
109
  /*#__NO_SIDE_EFFECTS__*/
109
110
  function isNullOrUndefined(value) {
@@ -111,7 +112,7 @@ function isNullOrUndefined(value) {
111
112
  }
112
113
  /*#__NO_SIDE_EFFECTS__*/
113
114
  function isStrictNullOrUndefined(value) {
114
- return value === NULL_VALUE || !isDefined(value);
115
+ return value === NULL_VALUE || value === UNDEF_VALUE;
115
116
  }
116
117
  /*#__NO_SIDE_EFFECTS__*/
117
118
  function isDefined(arg) {
@@ -133,18 +134,56 @@ var isError = ( /*#__PURE__*/_createObjIs("Error"));
133
134
  function isTruthy(value) {
134
135
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
135
136
  }
136
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
137
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
138
+ var ERROR_TYPE = "[object Error]";
139
+ /*#__NO_SIDE_EFFECTS__*/
140
+ function dumpObj(object, format) {
141
+ var propertyValueDump = EMPTY;
142
+ var objType = ObjProto[TO_STRING][CALL](object);
143
+ if (objType === ERROR_TYPE) {
144
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
145
+ }
146
+ try {
147
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
148
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
149
+ }
150
+ catch (e) {
151
+ propertyValueDump = " - " + dumpObj(e, format);
152
+ }
153
+ return objType + ": " + propertyValueDump;
154
+ }
155
+ function throwError(message) {
156
+ throw new Error(message);
157
+ }
158
+ function throwTypeError(message) {
159
+ throw new TypeError(message);
160
+ }
161
+ function _throwIfNullOrUndefined(obj) {
162
+ if (isStrictNullOrUndefined(obj)) {
163
+ throwTypeError("Cannot convert undefined or null to object");
164
+ }
165
+ }
166
+ function _throwIfNotString(value) {
167
+ if (!isString(value)) {
168
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
169
+ }
170
+ }
171
+ function _returnNothing() {
172
+ return UNDEF_VALUE;
173
+ }
174
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), _returnNothing));
137
175
  /*#__NO_SIDE_EFFECTS__*/
138
176
  function objHasOwnProperty(obj, prop) {
139
177
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
140
178
  }
141
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
142
179
  /*#__NO_SIDE_EFFECTS__*/
143
180
  function polyObjHasOwn(obj, prop) {
181
+ _throwIfNullOrUndefined(obj);
144
182
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
145
183
  }
184
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
146
185
  function objForEachKey(theObject, callbackfn, thisArg) {
147
- if (theObject && isObject(theObject)) {
186
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
148
187
  for (var prop in theObject) {
149
188
  if (objHasOwn(theObject, prop)) {
150
189
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -154,6 +193,31 @@ function objForEachKey(theObject, callbackfn, thisArg) {
154
193
  }
155
194
  }
156
195
  }
196
+ function arrForEach(theArray, callbackfn, thisArg) {
197
+ if (theArray) {
198
+ var len = theArray[LENGTH] >>> 0;
199
+ for (var idx = 0; idx < len; idx++) {
200
+ if (idx in theArray) {
201
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
202
+ break;
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
209
+ /*#__NO_SIDE_EFFECTS__*/
210
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
211
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
212
+ return function (thisArg) {
213
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
214
+ if (theFunc || polyFunc) {
215
+ var theArgs = arguments;
216
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
217
+ }
218
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
219
+ };
220
+ }
157
221
  var propMap = {
158
222
  e: "enumerable",
159
223
  c: "configurable",
@@ -182,6 +246,7 @@ function _createProp(value) {
182
246
  return prop;
183
247
  }
184
248
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
249
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
185
250
  function objDefine(target, key, propDesc) {
186
251
  return objDefineProp(target, key, _createProp(propDesc));
187
252
  }
@@ -201,49 +266,38 @@ function _assignMapValue(theMap, key, value, writable) {
201
266
  writable: false
202
267
  });
203
268
  }
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) };
212
- }
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);
216
- }
217
- catch (e) {
218
- propertyValueDump = " - " + dumpObj(e, format);
219
- }
220
- return objType + ": " + propertyValueDump;
221
- }
222
- function throwError(message) {
223
- throw new Error(message);
224
- }
225
- function throwTypeError(message) {
226
- throw new TypeError(message);
269
+ function _returnFalse() {
270
+ return false;
227
271
  }
272
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), _returnFalse));
228
273
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
229
274
  function _doNothing(value) {
230
275
  return value;
231
276
  }
232
277
  /*#__NO_SIDE_EFFECTS__*/
233
278
  function _getProto(value) {
279
+ _throwIfNullOrUndefined(value);
234
280
  return value[__PROTO__] || NULL_VALUE;
235
281
  }
236
282
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
237
283
  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);
284
+ function _deepFreeze(val, visited) {
285
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
286
+ for (var lp = 0; lp < visited.length; lp++) {
287
+ if (visited[lp] === val) {
288
+ return val;
243
289
  }
290
+ }
291
+ visited.push(val);
292
+ objForEachKey(val, function (_key, propValue) {
293
+ _deepFreeze(propValue, visited);
244
294
  });
295
+ objFreeze(val);
245
296
  }
246
- return objFreeze(value);
297
+ return val;
298
+ }
299
+ function objDeepFreeze(value) {
300
+ return _objFreeze ? _deepFreeze(value, []) : value;
247
301
  }
248
302
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
249
303
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -297,28 +351,13 @@ function _getGlobalConfig() {
297
351
  }
298
352
  return _globalCfg;
299
353
  }
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
354
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
314
355
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
315
356
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
316
357
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
317
358
  /*#__NO_SIDE_EFFECTS__*/
318
359
  function polyStrSubstr(value, start, length) {
319
- if (isNullOrUndefined(value)) {
320
- throwTypeError("Invalid " + dumpObj(value));
321
- }
360
+ _throwIfNullOrUndefined(value);
322
361
  if (length < 0) {
323
362
  return EMPTY;
324
363
  }
@@ -335,8 +374,94 @@ function polyStrSubstr(value, start, length) {
335
374
  function strLeft(value, count) {
336
375
  return strSubstring(value, 0, count);
337
376
  }
377
+ function _tagAsPolyfill(target, polyfillTypeName) {
378
+ if (target) {
379
+ safe(function () {
380
+ target[POLYFILL_TAG] = true;
381
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
382
+ });
383
+ safe(objDefine, [target, POLYFILL_TAG, {
384
+ v: true,
385
+ w: false,
386
+ e: false
387
+ }]);
388
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
389
+ v: polyfillTypeName,
390
+ w: false,
391
+ e: false
392
+ }]);
393
+ }
394
+ return target;
395
+ }
396
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
397
+ /*#__NO_SIDE_EFFECTS__*/
398
+ function polyObjCreate(obj, properties) {
399
+ var newObj = null;
400
+ function tempFunc() { }
401
+ if (!isStrictNullOrUndefined(obj)) {
402
+ var type = typeof obj;
403
+ if (type !== OBJECT && type !== FUNCTION) {
404
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
405
+ }
406
+ tempFunc[PROTOTYPE] = obj;
407
+ safe(function () {
408
+ tempFunc[__PROTO__] = obj;
409
+ });
410
+ newObj = new tempFunc();
411
+ }
412
+ else {
413
+ newObj = {};
414
+ }
415
+ if (properties) {
416
+ safe(objDefineProperties, [newObj, properties]);
417
+ }
418
+ return newObj;
419
+ }
420
+ /*#__NO_SIDE_EFFECTS__*/
421
+ function utcNow() {
422
+ return (Date.now || polyUtcNow)();
423
+ }
424
+ /*#__NO_SIDE_EFFECTS__*/
425
+ function polyUtcNow() {
426
+ return new Date().getTime();
427
+ }
428
+ var _globalLazyTestHooks;
429
+ function _initTestHooks() {
430
+ _globalLazyTestHooks = _getGlobalConfig();
431
+ }
432
+ /*#__NO_SIDE_EFFECTS__*/
433
+ function getLazy(cb) {
434
+ var lazyValue = {};
435
+ !_globalLazyTestHooks && _initTestHooks();
436
+ lazyValue.b = _globalLazyTestHooks.lzy;
437
+ objDefineProp(lazyValue, "v", {
438
+ configurable: true,
439
+ get: function () {
440
+ var result = cb();
441
+ if (!_globalLazyTestHooks.lzy) {
442
+ objDefineProp(lazyValue, "v", {
443
+ value: result
444
+ });
445
+ }
446
+ lazyValue.b = _globalLazyTestHooks.lzy;
447
+ return result;
448
+ }
449
+ });
450
+ return lazyValue;
451
+ }
452
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
453
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
454
+ var value = (utcNow().toString(36).slice(2));
455
+ while (value.length < 16) {
456
+ value += mathRandom().toString(36).slice(2);
457
+ }
458
+ value = value.substring(0, 16);
459
+ return value;
460
+ }));
338
461
  var UNIQUE_REGISTRY_ID = "_urid";
462
+ var POLY_SYM = "$nw21sym";
339
463
  var _polySymbols;
464
+ var _polyId = 0;
340
465
  /*#__NO_SIDE_EFFECTS__*/
341
466
  function _globalSymbolRegistry() {
342
467
  if (!_polySymbols) {
@@ -348,12 +473,22 @@ function _globalSymbolRegistry() {
348
473
  var _wellKnownSymbolCache;
349
474
  /*#__NO_SIDE_EFFECTS__*/
350
475
  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;
476
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
477
+ var symString = SYMBOL + "(" + description + ")";
478
+ function _setProp(name, value) {
479
+ objDefine(theSymbol, name, {
480
+ v: value,
481
+ e: false,
482
+ w: false
483
+ });
484
+ }
485
+ var theSymbol = objCreate(null);
486
+ _setProp("description", asString(description));
487
+ _setProp(TO_STRING, function () { return symString + POLY_SYM + uniqueId; });
488
+ _setProp("valueOf", function () { return theSymbol; });
489
+ _setProp("v", symString);
490
+ _setProp("_uid", uniqueId);
491
+ return _tagAsPolyfill(theSymbol, "symbol");
357
492
  }
358
493
  /*#__NO_SIDE_EFFECTS__*/
359
494
  function polySymbolFor(key) {
@@ -377,30 +512,6 @@ function polyGetKnownSymbol(name) {
377
512
  }
378
513
  return result;
379
514
  }
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
515
  /*#__NO_SIDE_EFFECTS__*/
405
516
  function createCachedValue(value) {
406
517
  return objDefineProp({
@@ -560,43 +671,15 @@ function arrAppend(target, elms) {
560
671
  }
561
672
  return target;
562
673
  }
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
674
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
576
675
  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
676
  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);
677
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
678
+ function _polyObjSetPrototypeOf(obj, proto) {
679
+ var _a;
680
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
681
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
682
+ return obj;
600
683
  }
601
684
  /*#__NO_SIDE_EFFECTS__*/
602
685
  function _createCustomError(name, d, b) {
@@ -639,19 +722,9 @@ function createCustomError(name, constructCb, errorBase) {
639
722
  }, theBaseClass);
640
723
  }
641
724
  /*#__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
725
  function _createTrimFn(exp) {
651
726
  return function _doTrim(value) {
652
- if (isNullOrUndefined(value)) {
653
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
654
- }
727
+ _throwIfNullOrUndefined(value);
655
728
  if (value && value.replace) {
656
729
  value = value.replace(exp, EMPTY);
657
730
  }
@@ -706,9 +779,7 @@ var mathRound = ( /*#__PURE__*/_pureRef(MathCls, "round"));
706
779
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
707
780
  /*#__NO_SIDE_EFFECTS__*/
708
781
  function polyStrEndsWith(value, searchString, length) {
709
- if (!isString(value)) {
710
- throwTypeError("'" + dumpObj(value) + "' is not a string");
711
- }
782
+ _throwIfNotString(value);
712
783
  var searchValue = isString(searchString) ? searchString : asString(searchString);
713
784
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
714
785
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -1157,6 +1228,48 @@ var STR_DOMAIN = "domain";
1157
1228
  var STR_PATH = "path";
1158
1229
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
1159
1230
 
1231
+ function _stringToBoolOrDefault(theValue, defaultValue, theConfig) {
1232
+ if (!theValue && isNullOrUndefined(theValue)) {
1233
+ return defaultValue;
1234
+ }
1235
+ if (isBoolean(theValue)) {
1236
+ return theValue;
1237
+ }
1238
+ return asString(theValue)[_DYN_TO_LOWER_CASE$1 ]() === "true";
1239
+ }
1240
+ function cfgDfMerge(defaultValue) {
1241
+ return {
1242
+ mrg: true,
1243
+ v: defaultValue
1244
+ };
1245
+ }
1246
+ function cfgDfSet(setter, defaultValue) {
1247
+ return {
1248
+ set: setter,
1249
+ v: defaultValue
1250
+ };
1251
+ }
1252
+ function cfgDfValidate(validator, defaultValue, fallBackName) {
1253
+ return {
1254
+ fb: fallBackName,
1255
+ isVal: validator,
1256
+ v: defaultValue
1257
+ };
1258
+ }
1259
+ function cfgDfBoolean(defaultValue, fallBackName) {
1260
+ return {
1261
+ fb: fallBackName,
1262
+ set: _stringToBoolOrDefault,
1263
+ v: !!defaultValue
1264
+ };
1265
+ }
1266
+ function cfgDfString(defaultValue) {
1267
+ return {
1268
+ isVal: isString,
1269
+ v: asString(defaultValue || STR_EMPTY)
1270
+ };
1271
+ }
1272
+
1160
1273
  var strGetPrototypeOf = "getPrototypeOf";
1161
1274
  var rCamelCase = /-([a-z])/g;
1162
1275
  var rNormalizeInvalid = /([^\w\d_$])/g;
@@ -1354,7 +1467,7 @@ function newId(maxLength) {
1354
1467
  return result;
1355
1468
  }
1356
1469
 
1357
- var version = '3.4.0-nightlybeta.2504-03';
1470
+ var version = '3.4.0-nightlybeta3.2504-17';
1358
1471
  var instanceName = "." + newId(6);
1359
1472
  var _dataUid = 0;
1360
1473
  function _canAcceptData(target) {
@@ -2020,48 +2133,6 @@ function onConfigChange(config, configHandler, logger) {
2020
2133
  return createDynamicConfig(config, null, logger)[_DYN_WATCH ](configHandler);
2021
2134
  }
2022
2135
 
2023
- function _stringToBoolOrDefault(theValue, defaultValue, theConfig) {
2024
- if (!theValue && isNullOrUndefined(theValue)) {
2025
- return defaultValue;
2026
- }
2027
- if (isBoolean(theValue)) {
2028
- return theValue;
2029
- }
2030
- return asString(theValue)[_DYN_TO_LOWER_CASE$1 ]() === "true";
2031
- }
2032
- function cfgDfMerge(defaultValue) {
2033
- return {
2034
- mrg: true,
2035
- v: defaultValue
2036
- };
2037
- }
2038
- function cfgDfSet(setter, defaultValue) {
2039
- return {
2040
- set: setter,
2041
- v: defaultValue
2042
- };
2043
- }
2044
- function cfgDfValidate(validator, defaultValue, fallBackName) {
2045
- return {
2046
- fb: fallBackName,
2047
- isVal: validator,
2048
- v: defaultValue
2049
- };
2050
- }
2051
- function cfgDfBoolean(defaultValue, fallBackName) {
2052
- return {
2053
- fb: fallBackName,
2054
- set: _stringToBoolOrDefault,
2055
- v: !!defaultValue
2056
- };
2057
- }
2058
- function cfgDfString(defaultValue) {
2059
- return {
2060
- isVal: isString,
2061
- v: asString(defaultValue || STR_EMPTY)
2062
- };
2063
- }
2064
-
2065
2136
  var _aiNamespace = null;
2066
2137
  function _getExtensionNamespace() {
2067
2138
  var target = getInst("Microsoft");
@@ -5772,7 +5843,7 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
5772
5843
  });
5773
5844
  return _this;
5774
5845
  }
5775
- AnalyticsPlugin.Version = '3.4.0-nightlybeta.2504-03';
5846
+ AnalyticsPlugin.Version = '3.4.0-nightlybeta3.2504-17';
5776
5847
  return AnalyticsPlugin;
5777
5848
  }(BaseTelemetryPlugin));
5778
5849