@microsoft/applicationinsights-properties-js 3.4.0-nightlybeta3.2504-05 → 3.4.0-nightlybeta3.2504-20

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.4.0-nightlybeta3.2504-05.js → ai.props.3.4.0-nightlybeta3.2504-20.cjs.js} +209 -165
  2. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.cjs.js.map +1 -0
  3. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.cjs.min.js +6 -0
  4. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.props.3.4.0-nightlybeta3.2504-05.gbl.js → ai.props.3.4.0-nightlybeta3.2504-20.gbl.js} +211 -140
  6. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.gbl.js.map +1 -0
  7. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.gbl.min.js +6 -0
  8. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.4.0-nightlybeta3.2504-05.cjs.js → ai.props.3.4.0-nightlybeta3.2504-20.js} +236 -138
  11. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.js.map +1 -0
  12. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.min.js +6 -0
  13. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-20.min.js.map +1 -0
  14. package/browser/es5/ai.props.3.cjs.js +208 -137
  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 +210 -139
  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 +210 -139
  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 +208 -137
  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 +33 -1
  48. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.cjs.js.map +0 -1
  49. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.cjs.min.js +0 -6
  50. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.cjs.min.js.map +0 -1
  51. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.gbl.js.map +0 -1
  52. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.gbl.min.js +0 -6
  53. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.gbl.min.js.map +0 -1
  54. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.integrity.json +0 -66
  55. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.js.map +0 -1
  56. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.min.js +0 -6
  57. package/browser/es5/ai.props.3.4.0-nightlybeta3.2504-05.min.js.map +0 -1
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "ai.props",
3
+ "version": "3.4.0-nightlybeta3.2504-20",
4
+ "ext": {
5
+ "@cjs.js": {
6
+ "file": "ai.props.3.4.0-nightlybeta3.2504-20.cjs.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-kwgZ6pB5hGbwH8CGvqokIWi5EvawV5z5cSHKOioVedI= sha384-NFngmK4GlJpiToyZ1KsUALTEXI/p0LidQiuS4RRIRWepxLukbqlqMFOcI8GOlvnn sha512-fUrmdmkkQPIaKO9F0DME6OEgNPcqZHPb8VxWfmbcKYXNBSbYr+l3Aqw/3OSb1FxsCGff6vjx8Op31d0cSzXmYg==",
9
+ "hashes": {
10
+ "sha256": "kwgZ6pB5hGbwH8CGvqokIWi5EvawV5z5cSHKOioVedI=",
11
+ "sha384": "NFngmK4GlJpiToyZ1KsUALTEXI/p0LidQiuS4RRIRWepxLukbqlqMFOcI8GOlvnn",
12
+ "sha512": "fUrmdmkkQPIaKO9F0DME6OEgNPcqZHPb8VxWfmbcKYXNBSbYr+l3Aqw/3OSb1FxsCGff6vjx8Op31d0cSzXmYg=="
13
+ }
14
+ },
15
+ "@cjs.min.js": {
16
+ "file": "ai.props.3.4.0-nightlybeta3.2504-20.cjs.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-6uFYghIXWBFX17aH+g/L2kLoykcEjKco1oz+g1EKhuI= sha384-jr6K/T2o6ZjgKOgvu/CjnU6goW1Lq5V7lP3KVIe/nPAN0pXuQp6mwpbl/dZIwUnG sha512-pXHWIS0biTb7VFBCsP2qa4ym/uODwSxKqJ4kBvXvGm7l5sgd+NdXlbyKCjWQJCCL07vamacKKyYtxOan9JfTcQ==",
19
+ "hashes": {
20
+ "sha256": "6uFYghIXWBFX17aH+g/L2kLoykcEjKco1oz+g1EKhuI=",
21
+ "sha384": "jr6K/T2o6ZjgKOgvu/CjnU6goW1Lq5V7lP3KVIe/nPAN0pXuQp6mwpbl/dZIwUnG",
22
+ "sha512": "pXHWIS0biTb7VFBCsP2qa4ym/uODwSxKqJ4kBvXvGm7l5sgd+NdXlbyKCjWQJCCL07vamacKKyYtxOan9JfTcQ=="
23
+ }
24
+ },
25
+ "@gbl.js": {
26
+ "file": "ai.props.3.4.0-nightlybeta3.2504-20.gbl.js",
27
+ "type": "text/javascript; charset=utf-8",
28
+ "integrity": "sha256-ivuHQE+rSDpjg723HoXMzXOj/MfVhhS/sZEJnnSfSiQ= sha384-QpSfWaadTKrVupD2mp23/MHNOIiN9GossKoxIoQickmpKOldFQx5UU3AFDByiVHG sha512-GpQVP2A/ms7LL2zdmPaMsi9wWfYM6qKWtcMf+OlCFRxHuWPPRk4HW6anXtzE5echs2ixa1FjszoFEQDXNtilTQ==",
29
+ "hashes": {
30
+ "sha256": "ivuHQE+rSDpjg723HoXMzXOj/MfVhhS/sZEJnnSfSiQ=",
31
+ "sha384": "QpSfWaadTKrVupD2mp23/MHNOIiN9GossKoxIoQickmpKOldFQx5UU3AFDByiVHG",
32
+ "sha512": "GpQVP2A/ms7LL2zdmPaMsi9wWfYM6qKWtcMf+OlCFRxHuWPPRk4HW6anXtzE5echs2ixa1FjszoFEQDXNtilTQ=="
33
+ }
34
+ },
35
+ "@gbl.min.js": {
36
+ "file": "ai.props.3.4.0-nightlybeta3.2504-20.gbl.min.js",
37
+ "type": "text/javascript; charset=utf-8",
38
+ "integrity": "sha256-DW0eDn9c8yqzLaJddZwAhWo3F6GOUL0SpCAjoM4gwb0= sha384-b0XSHXDb6LmfgWCmxcLK7FZ/8twlxiMInlbaJbB+QKAZRnJIjzTt4fgHBLxlU3/f sha512-BuUVZ97L6feax8iBfWYvTicNlf8+Bk1KDvMr+y9ou9JDELAFLw5NuFiHsZbT+h05QSYN1jX8+YA3kGZIjWolgQ==",
39
+ "hashes": {
40
+ "sha256": "DW0eDn9c8yqzLaJddZwAhWo3F6GOUL0SpCAjoM4gwb0=",
41
+ "sha384": "b0XSHXDb6LmfgWCmxcLK7FZ/8twlxiMInlbaJbB+QKAZRnJIjzTt4fgHBLxlU3/f",
42
+ "sha512": "BuUVZ97L6feax8iBfWYvTicNlf8+Bk1KDvMr+y9ou9JDELAFLw5NuFiHsZbT+h05QSYN1jX8+YA3kGZIjWolgQ=="
43
+ }
44
+ },
45
+ "@js": {
46
+ "file": "ai.props.3.4.0-nightlybeta3.2504-20.js",
47
+ "type": "text/javascript; charset=utf-8",
48
+ "integrity": "sha256-8ReOyaYpxOqULj2Yz0wsk0c55fFIfybEH/CnjfRjA7o= sha384-FZIqB56n62bBzt1kLfOCf1OQYTSmVWz0rJiAI3w1iqYnIE4FO0KBx/YDnVutbWW8 sha512-uf5jR4krgumQa8kK2ZMHXFzlcKXHzEBv0AQTJUWQNAgjNuPa9lqVVfQgUbXPwp6wLEB8xYJns0qYgKTmaFssrQ==",
49
+ "hashes": {
50
+ "sha256": "8ReOyaYpxOqULj2Yz0wsk0c55fFIfybEH/CnjfRjA7o=",
51
+ "sha384": "FZIqB56n62bBzt1kLfOCf1OQYTSmVWz0rJiAI3w1iqYnIE4FO0KBx/YDnVutbWW8",
52
+ "sha512": "uf5jR4krgumQa8kK2ZMHXFzlcKXHzEBv0AQTJUWQNAgjNuPa9lqVVfQgUbXPwp6wLEB8xYJns0qYgKTmaFssrQ=="
53
+ }
54
+ },
55
+ "@min.js": {
56
+ "file": "ai.props.3.4.0-nightlybeta3.2504-20.min.js",
57
+ "type": "text/javascript; charset=utf-8",
58
+ "integrity": "sha256-a6+FaUPRAxO7JaTF21KNo/0z7atFIQ+l5u7sPbgkWW0= sha384-NyDf7y/MOQQY+IaDfXUINY58vUaIuRAR8nbBwv5ztjhDdTERPY9vLR+nfEZl421N sha512-EwCzndfR9KEoVPoQG7Y2vPrWFX0N+a6RgYoH/YHFYkIJZTRqAcPL9/mH4OAy2NviQuuLEqsrPi0W03gc8Mzr0Q==",
59
+ "hashes": {
60
+ "sha256": "a6+FaUPRAxO7JaTF21KNo/0z7atFIQ+l5u7sPbgkWW0=",
61
+ "sha384": "NyDf7y/MOQQY+IaDfXUINY58vUaIuRAR8nbBwv5ztjhDdTERPY9vLR+nfEZl421N",
62
+ "sha512": "EwCzndfR9KEoVPoQG7Y2vPrWFX0N+a6RgYoH/YHFYkIJZTRqAcPL9/mH4OAy2NviQuuLEqsrPi0W03gc8Mzr0Q=="
63
+ }
64
+ }
65
+ }
66
+ }
@@ -1,7 +1,32 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2504-05
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.4.0-nightlybeta3.2504-20
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
+ (function (global, factory) {
6
+ var undef = "undefined";
7
+ typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
+ typeof define === "function" && define.amd ? define(["exports"], factory) :
9
+ (function(global){
10
+ var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_4_0_nightlybeta3_2504_20", msMod="__ms$mod__";
11
+ var mods={}, modDetail=mods[modName]={}, ver="3.4.0-nightlybeta3.2504-20";
12
+ var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
+ // Versioned namespace "Microsoft.ApplicationInsights3"
14
+ var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
+ // Global namespace "Microsoft.ApplicationInsights"
16
+ var destNs=baseNs, nsKey="ApplicationInsights", destNs=destNs[nsKey]=(destNs[nsKey]||{});
17
+ var expNsDetail=(exportNs[msMod]=(exportNs[msMod] || {})), expNameVer=(expNsDetail["v"]=(expNsDetail["v"] || []));
18
+ var destNsDetail=(destNs[msMod]=(destNs[msMod] || {})), destNameVer=(destNsDetail["v"]=(destNsDetail["v"] || []));
19
+ (destNsDetail["o"]=(destNsDetail["o"] || [])).push(mods);
20
+ factory(theExports);
21
+ for(var key in theExports) {
22
+ // Always set the imported value into the "export" versioned namespace (last-write wins)
23
+ nm="x", exportNs[key]=theExports[key], expNameVer[key]=ver;
24
+ // Copy over any named element that is not already present (first-write wins)
25
+ typeof destNs[key]===undef ? (nm="n", destNs[key]=theExports[key]) && (destNameVer[key]=ver) : !destNameVer[key] && (destNameVer[key]="---");
26
+ (modDetail[nm] = (modDetail[nm] || [])).push(key);
27
+ }
28
+ })(typeof globalThis !== undef ? globalThis : global || self);
29
+ })(this, (function (exports) {
5
30
  'use strict';
6
31
 
7
32
 
@@ -11,7 +36,7 @@ var strShimUndefined = "undefined";
11
36
  var strShimPrototype = "prototype";
12
37
  var ObjClass$1 = Object;
13
38
 
14
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
39
+ /*! https://github.com/nevware21/ts-utils v0.12.2 */
15
40
  /*#__NO_SIDE_EFFECTS__*/
16
41
  function _pureAssign(func1, func2) {
17
42
  return func1 || func2;
@@ -30,7 +55,6 @@ var __PROTO__ = "__proto__";
30
55
  var UNDEFINED = "undefined";
31
56
  var CONSTRUCTOR = "constructor";
32
57
  var SYMBOL = "Symbol";
33
- var POLYFILL_TAG = "_polyfill";
34
58
  var LENGTH = "length";
35
59
  var NAME = "name";
36
60
  var CALL = "call";
@@ -43,6 +67,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
43
67
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
44
68
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
45
69
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
70
+ var POLYFILL_TAG = "_polyfill";
71
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
46
72
  function safe(func, argArray) {
47
73
  try {
48
74
  return {
@@ -81,7 +107,7 @@ function isUndefined(value) {
81
107
  }
82
108
  /*#__NO_SIDE_EFFECTS__*/
83
109
  function isStrictUndefined(arg) {
84
- return !isDefined(arg);
110
+ return arg === UNDEF_VALUE;
85
111
  }
86
112
  /*#__NO_SIDE_EFFECTS__*/
87
113
  function isNullOrUndefined(value) {
@@ -89,7 +115,7 @@ function isNullOrUndefined(value) {
89
115
  }
90
116
  /*#__NO_SIDE_EFFECTS__*/
91
117
  function isStrictNullOrUndefined(value) {
92
- return value === NULL_VALUE || !isDefined(value);
118
+ return value === NULL_VALUE || value === UNDEF_VALUE;
93
119
  }
94
120
  /*#__NO_SIDE_EFFECTS__*/
95
121
  function isDefined(arg) {
@@ -110,18 +136,53 @@ var isError = ( /*#__PURE__*/_createObjIs("Error"));
110
136
  function isTruthy(value) {
111
137
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
112
138
  }
113
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
139
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
140
+ var ERROR_TYPE = "[object Error]";
141
+ /*#__NO_SIDE_EFFECTS__*/
142
+ function dumpObj(object, format) {
143
+ var propertyValueDump = EMPTY;
144
+ var objType = ObjProto[TO_STRING][CALL](object);
145
+ if (objType === ERROR_TYPE) {
146
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
147
+ }
148
+ try {
149
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
150
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
151
+ }
152
+ catch (e) {
153
+ propertyValueDump = " - " + dumpObj(e, format);
154
+ }
155
+ return objType + ": " + propertyValueDump;
156
+ }
157
+ function throwTypeError(message) {
158
+ throw new TypeError(message);
159
+ }
160
+ function _throwIfNullOrUndefined(obj) {
161
+ if (isStrictNullOrUndefined(obj)) {
162
+ throwTypeError("Cannot convert undefined or null to object");
163
+ }
164
+ }
165
+ function _throwIfNotString(value) {
166
+ if (!isString(value)) {
167
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
168
+ }
169
+ }
170
+ function _returnNothing() {
171
+ return UNDEF_VALUE;
172
+ }
173
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), _returnNothing));
114
174
  /*#__NO_SIDE_EFFECTS__*/
115
175
  function objHasOwnProperty(obj, prop) {
116
176
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
117
177
  }
118
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
119
178
  /*#__NO_SIDE_EFFECTS__*/
120
179
  function polyObjHasOwn(obj, prop) {
180
+ _throwIfNullOrUndefined(obj);
121
181
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
122
182
  }
183
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
123
184
  function objForEachKey(theObject, callbackfn, thisArg) {
124
- if (theObject && isObject(theObject)) {
185
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
125
186
  for (var prop in theObject) {
126
187
  if (objHasOwn(theObject, prop)) {
127
188
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -131,6 +192,31 @@ function objForEachKey(theObject, callbackfn, thisArg) {
131
192
  }
132
193
  }
133
194
  }
195
+ function arrForEach(theArray, callbackfn, thisArg) {
196
+ if (theArray) {
197
+ var len = theArray[LENGTH] >>> 0;
198
+ for (var idx = 0; idx < len; idx++) {
199
+ if (idx in theArray) {
200
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
201
+ break;
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
208
+ /*#__NO_SIDE_EFFECTS__*/
209
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
210
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
211
+ return function (thisArg) {
212
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
213
+ if (theFunc || polyFunc) {
214
+ var theArgs = arguments;
215
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
216
+ }
217
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
218
+ };
219
+ }
134
220
  var propMap = {
135
221
  e: "enumerable",
136
222
  c: "configurable",
@@ -159,6 +245,7 @@ function _createProp(value) {
159
245
  return prop;
160
246
  }
161
247
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
248
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
162
249
  function objDefine(target, key, propDesc) {
163
250
  return objDefineProp(target, key, _createProp(propDesc));
164
251
  }
@@ -178,45 +265,37 @@ function _assignMapValue(theMap, key, value, writable) {
178
265
  writable: false
179
266
  });
180
267
  }
181
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
182
- var ERROR_TYPE = "[object Error]";
183
- /*#__NO_SIDE_EFFECTS__*/
184
- function dumpObj(object, format) {
185
- var propertyValueDump = EMPTY;
186
- var objType = ObjProto[TO_STRING][CALL](object);
187
- if (objType === ERROR_TYPE) {
188
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
189
- }
190
- try {
191
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
192
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
193
- }
194
- catch (e) {
195
- propertyValueDump = " - " + dumpObj(e, format);
196
- }
197
- return objType + ": " + propertyValueDump;
198
- }
199
- function throwTypeError(message) {
200
- throw new TypeError(message);
268
+ function _returnFalse() {
269
+ return false;
201
270
  }
271
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), _returnFalse));
202
272
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
203
273
  function _doNothing(value) {
204
274
  return value;
205
275
  }
206
276
  /*#__NO_SIDE_EFFECTS__*/
207
277
  function _getProto(value) {
278
+ _throwIfNullOrUndefined(value);
208
279
  return value[__PROTO__] || NULL_VALUE;
209
280
  }
210
281
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
211
- function objDeepFreeze(value) {
212
- if (_objFreeze) {
213
- objForEachKey(value, function (key, value) {
214
- if (isArray(value) || isObject(value)) {
215
- objDeepFreeze(value);
282
+ function _deepFreeze(val, visited) {
283
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
284
+ for (var lp = 0; lp < visited.length; lp++) {
285
+ if (visited[lp] === val) {
286
+ return val;
216
287
  }
288
+ }
289
+ visited.push(val);
290
+ objForEachKey(val, function (_key, propValue) {
291
+ _deepFreeze(propValue, visited);
217
292
  });
293
+ objFreeze(val);
218
294
  }
219
- return objFreeze(value);
295
+ return val;
296
+ }
297
+ function objDeepFreeze(value) {
298
+ return _objFreeze ? _deepFreeze(value, []) : value;
220
299
  }
221
300
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
222
301
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -270,28 +349,13 @@ function _getGlobalConfig() {
270
349
  }
271
350
  return _globalCfg;
272
351
  }
273
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
274
- /*#__NO_SIDE_EFFECTS__*/
275
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
276
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
277
- return function (thisArg) {
278
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
279
- if (theFunc || polyFunc) {
280
- var theArgs = arguments;
281
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
282
- }
283
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
284
- };
285
- }
286
352
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
287
353
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
288
354
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
289
355
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
290
356
  /*#__NO_SIDE_EFFECTS__*/
291
357
  function polyStrSubstr(value, start, length) {
292
- if (isNullOrUndefined(value)) {
293
- throwTypeError("Invalid " + dumpObj(value));
294
- }
358
+ _throwIfNullOrUndefined(value);
295
359
  if (length < 0) {
296
360
  return EMPTY;
297
361
  }
@@ -308,8 +372,94 @@ function polyStrSubstr(value, start, length) {
308
372
  function strLeft(value, count) {
309
373
  return strSubstring(value, 0, count);
310
374
  }
375
+ function _tagAsPolyfill(target, polyfillTypeName) {
376
+ if (target) {
377
+ safe(function () {
378
+ target[POLYFILL_TAG] = true;
379
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
380
+ });
381
+ safe(objDefine, [target, POLYFILL_TAG, {
382
+ v: true,
383
+ w: false,
384
+ e: false
385
+ }]);
386
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
387
+ v: polyfillTypeName,
388
+ w: false,
389
+ e: false
390
+ }]);
391
+ }
392
+ return target;
393
+ }
394
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
395
+ /*#__NO_SIDE_EFFECTS__*/
396
+ function polyObjCreate(obj, properties) {
397
+ var newObj = null;
398
+ function tempFunc() { }
399
+ if (!isStrictNullOrUndefined(obj)) {
400
+ var type = typeof obj;
401
+ if (type !== OBJECT && type !== FUNCTION) {
402
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
403
+ }
404
+ tempFunc[PROTOTYPE] = obj;
405
+ safe(function () {
406
+ tempFunc[__PROTO__] = obj;
407
+ });
408
+ newObj = new tempFunc();
409
+ }
410
+ else {
411
+ newObj = {};
412
+ }
413
+ if (properties) {
414
+ safe(objDefineProperties, [newObj, properties]);
415
+ }
416
+ return newObj;
417
+ }
418
+ /*#__NO_SIDE_EFFECTS__*/
419
+ function utcNow() {
420
+ return (Date.now || polyUtcNow)();
421
+ }
422
+ /*#__NO_SIDE_EFFECTS__*/
423
+ function polyUtcNow() {
424
+ return new Date().getTime();
425
+ }
426
+ var _globalLazyTestHooks;
427
+ function _initTestHooks() {
428
+ _globalLazyTestHooks = _getGlobalConfig();
429
+ }
430
+ /*#__NO_SIDE_EFFECTS__*/
431
+ function getLazy(cb) {
432
+ var lazyValue = {};
433
+ !_globalLazyTestHooks && _initTestHooks();
434
+ lazyValue.b = _globalLazyTestHooks.lzy;
435
+ objDefineProp(lazyValue, "v", {
436
+ configurable: true,
437
+ get: function () {
438
+ var result = cb();
439
+ if (!_globalLazyTestHooks.lzy) {
440
+ objDefineProp(lazyValue, "v", {
441
+ value: result
442
+ });
443
+ }
444
+ lazyValue.b = _globalLazyTestHooks.lzy;
445
+ return result;
446
+ }
447
+ });
448
+ return lazyValue;
449
+ }
450
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
451
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
452
+ var value = (utcNow().toString(36).slice(2));
453
+ while (value.length < 16) {
454
+ value += mathRandom().toString(36).slice(2);
455
+ }
456
+ value = value.substring(0, 16);
457
+ return value;
458
+ }));
311
459
  var UNIQUE_REGISTRY_ID = "_urid";
460
+ var POLY_SYM = "$nw21sym";
312
461
  var _polySymbols;
462
+ var _polyId = 0;
313
463
  /*#__NO_SIDE_EFFECTS__*/
314
464
  function _globalSymbolRegistry() {
315
465
  if (!_polySymbols) {
@@ -321,12 +471,22 @@ function _globalSymbolRegistry() {
321
471
  var _wellKnownSymbolCache;
322
472
  /*#__NO_SIDE_EFFECTS__*/
323
473
  function polyNewSymbol(description) {
324
- var theSymbol = {
325
- description: asString(description),
326
- toString: function () { return SYMBOL + "(" + description + ")"; }
327
- };
328
- theSymbol[POLYFILL_TAG] = true;
329
- return theSymbol;
474
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
475
+ var symString = SYMBOL + "(" + description + ")";
476
+ function _setProp(name, value) {
477
+ objDefine(theSymbol, name, {
478
+ v: value,
479
+ e: false,
480
+ w: false
481
+ });
482
+ }
483
+ var theSymbol = objCreate(null);
484
+ _setProp("description", asString(description));
485
+ _setProp(TO_STRING, function () { return symString + POLY_SYM + uniqueId; });
486
+ _setProp("valueOf", function () { return theSymbol; });
487
+ _setProp("v", symString);
488
+ _setProp("_uid", uniqueId);
489
+ return _tagAsPolyfill(theSymbol, "symbol");
330
490
  }
331
491
  /*#__NO_SIDE_EFFECTS__*/
332
492
  function polySymbolFor(key) {
@@ -350,30 +510,6 @@ function polyGetKnownSymbol(name) {
350
510
  }
351
511
  return result;
352
512
  }
353
- var _globalLazyTestHooks;
354
- function _initTestHooks() {
355
- _globalLazyTestHooks = _getGlobalConfig();
356
- }
357
- /*#__NO_SIDE_EFFECTS__*/
358
- function getLazy(cb) {
359
- var lazyValue = {};
360
- !_globalLazyTestHooks && _initTestHooks();
361
- lazyValue.b = _globalLazyTestHooks.lzy;
362
- objDefineProp(lazyValue, "v", {
363
- configurable: true,
364
- get: function () {
365
- var result = cb();
366
- if (!_globalLazyTestHooks.lzy) {
367
- objDefineProp(lazyValue, "v", {
368
- value: result
369
- });
370
- }
371
- lazyValue.b = _globalLazyTestHooks.lzy;
372
- return result;
373
- }
374
- });
375
- return lazyValue;
376
- }
377
513
  /*#__NO_SIDE_EFFECTS__*/
378
514
  function createCachedValue(value) {
379
515
  return objDefineProp({
@@ -525,42 +661,14 @@ function arrAppend(target, elms) {
525
661
  }
526
662
  return target;
527
663
  }
528
- function arrForEach(theArray, callbackfn, thisArg) {
529
- if (theArray) {
530
- var len = theArray[LENGTH] >>> 0;
531
- for (var idx = 0; idx < len; idx++) {
532
- if (idx in theArray) {
533
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
534
- break;
535
- }
536
- }
537
- }
538
- }
539
- }
540
664
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
541
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
542
- /*#__NO_SIDE_EFFECTS__*/
543
- function polyObjCreate(obj) {
544
- if (!obj) {
545
- return {};
546
- }
547
- var type = typeof obj;
548
- if (type !== OBJECT && type !== FUNCTION) {
549
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
550
- }
551
- function tempFunc() { }
552
- tempFunc[PROTOTYPE] = obj;
553
- return new tempFunc();
554
- }
555
665
  var _isProtoArray;
556
- function objSetPrototypeOf(obj, proto) {
557
- var fn = ObjClass["setPrototypeOf"] ||
558
- function (d, b) {
559
- var _a;
560
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
561
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
562
- };
563
- return fn(obj, proto);
666
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
667
+ function _polyObjSetPrototypeOf(obj, proto) {
668
+ var _a;
669
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
670
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
671
+ return obj;
564
672
  }
565
673
  /*#__NO_SIDE_EFFECTS__*/
566
674
  function _createCustomError(name, d, b) {
@@ -603,19 +711,9 @@ function createCustomError(name, constructCb, errorBase) {
603
711
  }, theBaseClass);
604
712
  }
605
713
  /*#__NO_SIDE_EFFECTS__*/
606
- function utcNow() {
607
- return (Date.now || polyUtcNow)();
608
- }
609
- /*#__NO_SIDE_EFFECTS__*/
610
- function polyUtcNow() {
611
- return new Date().getTime();
612
- }
613
- /*#__NO_SIDE_EFFECTS__*/
614
714
  function _createTrimFn(exp) {
615
715
  return function _doTrim(value) {
616
- if (isNullOrUndefined(value)) {
617
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
618
- }
716
+ _throwIfNullOrUndefined(value);
619
717
  if (value && value.replace) {
620
718
  value = value.replace(exp, EMPTY);
621
719
  }
@@ -661,9 +759,7 @@ var mathRound = ( /*#__PURE__*/_pureRef(MathCls, "round"));
661
759
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
662
760
  /*#__NO_SIDE_EFFECTS__*/
663
761
  function polyStrEndsWith(value, searchString, length) {
664
- if (!isString(value)) {
665
- throwTypeError("'" + dumpObj(value) + "' is not a string");
666
- }
762
+ _throwIfNotString(value);
667
763
  var searchValue = isString(searchString) ? searchString : asString(searchString);
668
764
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
669
765
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -1097,6 +1193,13 @@ var STR_DOMAIN = "domain";
1097
1193
  var STR_PATH = "path";
1098
1194
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
1099
1195
 
1196
+ function cfgDfMerge(defaultValue) {
1197
+ return {
1198
+ mrg: true,
1199
+ v: defaultValue
1200
+ };
1201
+ }
1202
+
1100
1203
  var rCamelCase = /-([a-z])/g;
1101
1204
  var rNormalizeInvalid = /([^\w\d_$])/g;
1102
1205
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
@@ -1319,7 +1422,7 @@ function newId(maxLength) {
1319
1422
  return result;
1320
1423
  }
1321
1424
 
1322
- var version = '3.4.0-nightlybeta3.2504-05';
1425
+ var version = '3.4.0-nightlybeta3.2504-20';
1323
1426
  var instanceName = "." + newId(6);
1324
1427
  var _dataUid = 0;
1325
1428
  function _canAcceptData(target) {
@@ -1985,13 +2088,6 @@ function onConfigChange(config, configHandler, logger) {
1985
2088
  return createDynamicConfig(config, null, logger)[_DYN_WATCH ](configHandler);
1986
2089
  }
1987
2090
 
1988
- function cfgDfMerge(defaultValue) {
1989
- return {
1990
- mrg: true,
1991
- v: defaultValue
1992
- };
1993
- }
1994
-
1995
2091
  var _aiNamespace = null;
1996
2092
  function _getExtensionNamespace() {
1997
2093
  var target = getInst("Microsoft");
@@ -3563,7 +3659,7 @@ var Device = /** @class */ (function () {
3563
3659
  return Device;
3564
3660
  }());
3565
3661
 
3566
- var Version = '3.4.0-nightlybeta3.2504-05';
3662
+ var Version = '3.4.0-nightlybeta3.2504-20';
3567
3663
  var Internal = /** @class */ (function () {
3568
3664
  function Internal(config, unloadHookContainer) {
3569
3665
  var _this = this;
@@ -4124,4 +4220,6 @@ exports.Session = Session;
4124
4220
  exports.SessionManager = _SessionManager;
4125
4221
  exports.TelemetryContext = TelemetryContext;
4126
4222
  exports.TelemetryTrace = TelemetryTrace;
4127
- //# sourceMappingURL=ai.props.3.4.0-nightlybeta3.2504-05.cjs.js.map
4223
+
4224
+ }));
4225
+ //# sourceMappingURL=ai.props.3.4.0-nightlybeta3.2504-20.js.map