@microsoft/1ds-post-js 4.0.6-nightly3.2312-05 → 4.0.6

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 (47) hide show
  1. package/bundle/es5/{ms.post-4.0.6-nightly3.2312-05.gbl.js → ms.post-4.0.6.gbl.js} +221 -204
  2. package/bundle/es5/ms.post-4.0.6.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.0.6.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.0.6.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.0.6.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.0.6-nightly3.2312-05.js → ms.post-4.0.6.js} +221 -204
  7. package/bundle/es5/ms.post-4.0.6.js.map +1 -0
  8. package/bundle/es5/ms.post-4.0.6.min.js +7 -0
  9. package/bundle/es5/ms.post-4.0.6.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +220 -203
  11. package/bundle/es5/ms.post.gbl.js.map +1 -1
  12. package/bundle/es5/ms.post.gbl.min.js +2 -2
  13. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.post.integrity.json +17 -17
  15. package/bundle/es5/ms.post.js +220 -203
  16. package/bundle/es5/ms.post.js.map +1 -1
  17. package/bundle/es5/ms.post.min.js +2 -2
  18. package/bundle/es5/ms.post.min.js.map +1 -1
  19. package/dist/es5/ms.post.js +218 -201
  20. package/dist/es5/ms.post.js.map +1 -1
  21. package/dist/es5/ms.post.min.js +2 -2
  22. package/dist/es5/ms.post.min.js.map +1 -1
  23. package/dist-es5/BatchNotificationActions.js +1 -1
  24. package/dist-es5/ClockSkewManager.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/EventBatch.js +1 -1
  27. package/dist-es5/HttpManager.js +1 -1
  28. package/dist-es5/Index.js +1 -1
  29. package/dist-es5/InternalConstants.js +1 -1
  30. package/dist-es5/KillSwitch.js +1 -1
  31. package/dist-es5/PostChannel.js +2 -2
  32. package/dist-es5/PostChannel.js.map +1 -1
  33. package/dist-es5/RetryPolicy.js +1 -1
  34. package/dist-es5/Serializer.js +1 -1
  35. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  36. package/dist-es5/__DynamicConstants.js +1 -1
  37. package/dist-es5/typings/XDomainRequest.js +1 -1
  38. package/package.json +63 -66
  39. package/types/1ds-post-js.d.ts +1 -1
  40. package/types/1ds-post-js.namespaced.d.ts +1 -1
  41. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.js.map +0 -1
  46. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.min.js +0 -7
  47. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.min.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.0.6-nightly3.2312-05
2
+ * 1DS JS SDK POST plugin, 4.0.6
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
6
6
  (function (global, factory) {
7
7
  var undef = "undefined";
8
- var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_0_6_nightly3_2312_05", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.0.6-nightly3.2312-05";
8
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_0_6", msMod="__ms$mod__";
9
+ var mods={}, modDetail=mods[modName]={}, ver="4.0.6";
10
10
  // Versioned namespace "oneDS4"
11
11
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
12
12
  // Global namespace "oneDS"
@@ -57,6 +57,8 @@ var DONE = "done";
57
57
  var VALUE = "value";
58
58
  var NAME = "name";
59
59
  var SLICE = "slice";
60
+ var CALL = "call";
61
+ var TO_STRING = "toString";
60
62
  var ObjClass = Object;
61
63
  var ObjProto = ObjClass[PROTOTYPE];
62
64
  var StrCls = String;
@@ -65,44 +67,42 @@ var MathCls = Math;
65
67
  var ArrCls = Array;
66
68
  var ArrProto = ArrCls[PROTOTYPE];
67
69
 
68
- function safeGet(cb, defValue) {
69
- var result = defValue;
70
+ function safe(func, argArray) {
70
71
  try {
71
- result = cb();
72
+ return {
73
+ v: func.apply(this, argArray)
74
+ };
72
75
  }
73
76
  catch (e) {
77
+ return { e: e };
74
78
  }
75
- return result;
76
79
  }
77
80
 
81
+ /*#__NO_SIDE_EFFECTS__*/
78
82
  function _createIs(theType) {
79
83
  return function (value) {
80
84
  return typeof value === theType;
81
85
  };
82
86
  }
83
- function _createObjIs(theName) {
84
- var theType = "[object " + theName + "]";
85
- return function (value) {
86
- return !!(value && objToString(value) === theType);
87
- };
88
- }
89
- function objToString(value) {
90
- return ObjProto.toString.call(value);
91
- }
87
+ /*#__NO_SIDE_EFFECTS__*/
92
88
  function isUndefined(value) {
93
89
  return typeof value === UNDEFINED || value === UNDEFINED;
94
90
  }
91
+ /*#__NO_SIDE_EFFECTS__*/
95
92
  function isNullOrUndefined(value) {
96
93
  return value === NULL_VALUE || isUndefined(value);
97
94
  }
95
+ /*#__NO_SIDE_EFFECTS__*/
98
96
  function isStrictNullOrUndefined(value) {
99
97
  return value === NULL_VALUE || !isDefined(value);
100
98
  }
99
+ /*#__NO_SIDE_EFFECTS__*/
101
100
  function isDefined(arg) {
102
101
  return !!arg || arg !== UNDEF_VALUE;
103
102
  }
104
- var isString = _createIs(STRING);
105
- var isFunction = _createIs(FUNCTION);
103
+ var isString = ( /*#__PURE__*/_createIs(STRING));
104
+ var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
105
+ /*#__NO_SIDE_EFFECTS__*/
106
106
  function isObject(value) {
107
107
  if (!value && isNullOrUndefined(value)) {
108
108
  return false;
@@ -110,20 +110,22 @@ function isObject(value) {
110
110
  return !!value && typeof value === OBJECT;
111
111
  }
112
112
  var isArray = ArrCls.isArray;
113
- var isNumber = _createIs(NUMBER);
114
- var isBoolean = _createIs(BOOLEAN);
115
- var isError = _createObjIs("Error");
113
+ var isNumber = ( /*#__PURE__*/_createIs(NUMBER));
114
+ var isBoolean = ( /*#__PURE__*/_createIs(BOOLEAN));
115
+ /*#__NO_SIDE_EFFECTS__*/
116
116
  function isPromiseLike(value) {
117
- return !!value && isFunction(value.then);
117
+ return !!(value && value.then && isFunction(value.then));
118
118
  }
119
119
 
120
120
  var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
121
121
 
122
+ /*#__NO_SIDE_EFFECTS__*/
122
123
  function objHasOwnProperty(obj, prop) {
123
- return obj && ObjProto.hasOwnProperty.call(obj, prop);
124
+ return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
124
125
  }
125
126
 
126
127
  var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
128
+ /*#__NO_SIDE_EFFECTS__*/
127
129
  function polyObjHasOwn(obj, prop) {
128
130
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
129
131
  }
@@ -132,7 +134,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
132
134
  if (theObject && isObject(theObject)) {
133
135
  for (var prop in theObject) {
134
136
  if (objHasOwn(theObject, prop)) {
135
- if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
137
+ if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
136
138
  break;
137
139
  }
138
140
  }
@@ -140,6 +142,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
140
142
  }
141
143
  }
142
144
 
145
+ /*#__NO_SIDE_EFFECTS__*/
143
146
  function _createKeyValueMap(values, keyType, valueType, completeFn) {
144
147
  var theMap = {};
145
148
  objForEachKey(values, function (key, value) {
@@ -154,15 +157,15 @@ function throwTypeError(message) {
154
157
  }
155
158
 
156
159
  var _objFreeze = ObjClass["freeze"];
157
- var _doNothing = function (value) { return value; };
158
- var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
159
- var objAssign = ObjClass["assign"];
160
- function objKeys(value) {
161
- if (!isObject(value) || value === NULL_VALUE) {
162
- throwTypeError("objKeys called on non-object");
163
- }
164
- return ObjClass.keys(value);
160
+ function _doNothing(value) {
161
+ return value;
165
162
  }
163
+ /*#__NO_SIDE_EFFECTS__*/
164
+ function _getProto(value) {
165
+ return value[__PROTO__] || NULL_VALUE;
166
+ }
167
+ var objAssign = ObjClass["assign"];
168
+ var objKeys = ObjClass.keys;
166
169
  function objDeepFreeze(value) {
167
170
  if (_objFreeze) {
168
171
  objForEachKey(value, function (key, value) {
@@ -176,14 +179,16 @@ function objDeepFreeze(value) {
176
179
  var objFreeze = _objFreeze || _doNothing;
177
180
  var objGetPrototypeOf = ObjClass["getPrototypeOf"] || _getProto;
178
181
 
182
+ /*#__NO_SIDE_EFFECTS__*/
179
183
  function createEnum(values) {
180
184
  return _createKeyValueMap(values, 1 , 0 , objDeepFreeze);
181
185
  }
186
+ /*#__NO_SIDE_EFFECTS__*/
182
187
  function createEnumKeyMap(values) {
183
188
  return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
184
189
  }
185
190
 
186
- var _wellKnownSymbolMap = createEnumKeyMap({
191
+ var _wellKnownSymbolMap = /*#__PURE__*/ createEnumKeyMap({
187
192
  asyncIterator: 0 ,
188
193
  hasInstance: 1 ,
189
194
  isConcatSpreadable: 2 ,
@@ -219,67 +224,57 @@ function _getGlobalValue() {
219
224
  }
220
225
  return result;
221
226
  }
227
+ /*#__NO_SIDE_EFFECTS__*/
222
228
  function _getGlobalConfig() {
223
229
  if (!_globalCfg) {
224
- var gbl = _getGlobalValue() || {};
230
+ var gbl = safe(_getGlobalValue).v || {};
225
231
  _globalCfg = gbl[GLOBAL_CONFIG_KEY] = gbl[GLOBAL_CONFIG_KEY] || {};
226
232
  }
227
233
  return _globalCfg;
228
234
  }
229
235
 
236
+ var ERROR_TYPE = "[object Error]";
237
+ /*#__NO_SIDE_EFFECTS__*/
230
238
  function dumpObj(object, format) {
231
239
  var propertyValueDump = EMPTY;
232
- if (isError(object)) {
233
- propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
240
+ var objType = ObjProto[TO_STRING][CALL](object);
241
+ if (objType === ERROR_TYPE) {
242
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
234
243
  }
235
- else {
236
- try {
237
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? (isNumber(format) ? format : 4) : UNDEF_VALUE);
238
- }
239
- catch (e) {
240
- propertyValueDump = " - " + dumpObj(e, format);
241
- }
244
+ try {
245
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === NUMBER) ? format : 4) : UNDEF_VALUE);
246
+ propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
247
+ }
248
+ catch (e) {
249
+ propertyValueDump = " - " + dumpObj(e, format);
242
250
  }
243
- return objToString(object) + ": " + propertyValueDump;
251
+ return objType + ": " + propertyValueDump;
244
252
  }
245
253
 
246
- var _arrSlice = ArrProto[SLICE];
247
- var _throwMissingFunction = function (funcName, thisArg) {
248
- throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
249
- };
250
- var _unwrapInstFunction = function (funcName) {
251
- return function (thisArg) {
252
- return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
253
- };
254
- };
255
- var _unwrapFunction = function (funcName, clsProto) {
256
- var clsFn = clsProto && clsProto[funcName];
257
- return function (thisArg) {
258
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
259
- if (theFunc) {
260
- return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
261
- }
262
- _throwMissingFunction(funcName, thisArg);
263
- };
264
- };
265
- var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
254
+ var _slice;
255
+ var _unwrapInstFunction = _unwrapFunctionWithPoly;
256
+ var _unwrapFunction = _unwrapFunctionWithPoly;
257
+ /*#__NO_SIDE_EFFECTS__*/
258
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
259
+ _slice = _slice || ArrProto[SLICE];
266
260
  var clsFn = clsProto && clsProto[funcName];
267
261
  return function (thisArg) {
268
262
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
269
263
  if (theFunc || polyFunc) {
270
264
  var theArgs = arguments;
271
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _arrSlice.call(theArgs, 1) : theArgs);
265
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
272
266
  }
273
- _throwMissingFunction(funcName, thisArg);
267
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
274
268
  };
275
- };
269
+ }
276
270
 
277
271
  var mathMax = MathCls.max;
278
272
 
279
- var strSlice = _unwrapFunction(SLICE, StrProto);
273
+ var strSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, StrProto));
280
274
 
281
- var strSubstring = _unwrapFunction("substring", StrProto);
282
- var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
275
+ var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
276
+ var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
277
+ /*#__NO_SIDE_EFFECTS__*/
283
278
  function polyStrSubstr(value, start, length) {
284
279
  if (isNullOrUndefined(value)) {
285
280
  throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
@@ -296,23 +291,14 @@ function polyStrSubstr(value, start, length) {
296
291
  }
297
292
  return strSlice(value, start, start + length);
298
293
  }
294
+ /*#__NO_SIDE_EFFECTS__*/
299
295
  function strLeft(value, count) {
300
296
  return strSubstring(value, 0, count);
301
297
  }
302
298
 
303
- var strStartsWith = _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith);
304
- function polyStrStartsWith(value, searchString, position) {
305
- if (!isString(value)) {
306
- throwTypeError("'" + dumpObj(value) + "' is not a string");
307
- }
308
- var searchValue = isString(searchString) ? searchString : asString(searchString);
309
- var chkLen = searchValue[LENGTH];
310
- var pos = position > 0 ? position : 0;
311
- return strSubstring(value, pos, pos + chkLen) === searchValue;
312
- }
313
-
314
299
  var UNIQUE_REGISTRY_ID = "_urid";
315
300
  var _polySymbols;
301
+ /*#__NO_SIDE_EFFECTS__*/
316
302
  function _globalSymbolRegistry() {
317
303
  if (!_polySymbols) {
318
304
  var gblCfg = _getGlobalConfig();
@@ -320,7 +306,8 @@ function _globalSymbolRegistry() {
320
306
  }
321
307
  return _polySymbols;
322
308
  }
323
- var _wellKnownSymbolCache = {};
309
+ var _wellKnownSymbolCache;
310
+ /*#__NO_SIDE_EFFECTS__*/
324
311
  function polyNewSymbol(description) {
325
312
  var theSymbol = {
326
313
  description: asString(description),
@@ -329,18 +316,21 @@ function polyNewSymbol(description) {
329
316
  theSymbol[POLYFILL_TAG] = true;
330
317
  return theSymbol;
331
318
  }
319
+ /*#__NO_SIDE_EFFECTS__*/
332
320
  function polySymbolFor(key) {
333
321
  var registry = _globalSymbolRegistry();
334
322
  if (!objHasOwn(registry.k, key)) {
335
323
  var newSymbol_1 = polyNewSymbol(key);
336
324
  var regId_1 = objKeys(registry.s).length;
337
- newSymbol_1[UNIQUE_REGISTRY_ID] = function () { return regId_1 + "_" + newSymbol_1.toString(); };
325
+ newSymbol_1[UNIQUE_REGISTRY_ID] = function () { return regId_1 + "_" + newSymbol_1[TO_STRING](); };
338
326
  registry.k[key] = newSymbol_1;
339
327
  registry.s[newSymbol_1[UNIQUE_REGISTRY_ID]()] = asString(key);
340
328
  }
341
329
  return registry.k[key];
342
330
  }
331
+ /*#__NO_SIDE_EFFECTS__*/
343
332
  function polyGetKnownSymbol(name) {
333
+ !_wellKnownSymbolCache && (_wellKnownSymbolCache = {});
344
334
  var result;
345
335
  var knownName = _wellKnownSymbolMap[name];
346
336
  if (knownName) {
@@ -357,6 +347,7 @@ var propMap = {
357
347
  g: "get",
358
348
  s: "set"
359
349
  };
350
+ /*#__NO_SIDE_EFFECTS__*/
360
351
  function _createProp(value) {
361
352
  var prop = {};
362
353
  prop[propMap["c"]] = true;
@@ -381,13 +372,12 @@ function objDefine(target, key, propDesc) {
381
372
  }
382
373
 
383
374
  var _globalLazyTestHooks;
384
- var _fetchLazyTestHooks = function () {
375
+ function _initTestHooks() {
385
376
  _globalLazyTestHooks = _getGlobalConfig();
386
- _fetchLazyTestHooks = NULL_VALUE;
387
- };
377
+ }
388
378
  function getLazy(cb) {
389
379
  var lazyValue = {};
390
- _fetchLazyTestHooks && _fetchLazyTestHooks();
380
+ !_globalLazyTestHooks && _initTestHooks();
391
381
  lazyValue.b = _globalLazyTestHooks.lzy;
392
382
  objDefineProp(lazyValue, "v", {
393
383
  configurable: true,
@@ -397,21 +387,27 @@ function getLazy(cb) {
397
387
  objDefineProp(lazyValue, "v", {
398
388
  value: result
399
389
  });
400
- if (lazyValue.b) {
401
- delete lazyValue.b;
402
- }
403
- }
404
- if (_globalLazyTestHooks.lzy && lazyValue.b !== _globalLazyTestHooks.lzy) {
405
- lazyValue.b = _globalLazyTestHooks.lzy;
406
390
  }
391
+ lazyValue.b = _globalLazyTestHooks.lzy;
407
392
  return result;
408
393
  }
409
394
  });
410
395
  return lazyValue;
411
396
  }
412
397
 
398
+ /*#__NO_SIDE_EFFECTS__*/
413
399
  function safeGetLazy(cb, defValue) {
414
- return getLazy(function () { return safeGet(cb, defValue); });
400
+ return getLazy(function () {
401
+ var result = safe(cb);
402
+ return result.e ? defValue : result.v;
403
+ });
404
+ }
405
+
406
+ /*#__NO_SIDE_EFFECTS__*/
407
+ function createCachedValue(value) {
408
+ return objDefineProp({
409
+ toJSON: function () { return value; }
410
+ }, "v", { value: value });
415
411
  }
416
412
 
417
413
  var WINDOW = "window";
@@ -420,12 +416,18 @@ var _cachedWindow;
420
416
  var _cachedDocument;
421
417
  var _cachedNavigator;
422
418
  var _isNode;
423
- var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
424
- var getGlobal = function (useCached) {
425
- (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
419
+ /*#__NO_SIDE_EFFECTS__*/
420
+ function lazySafeGetInst(name) {
421
+ return getLazy(function () { return safe((getInst), [name]).v || UNDEF_VALUE; });
422
+ }
423
+ /*#__NO_SIDE_EFFECTS__*/
424
+ function getGlobal(useCached) {
425
+ !_globalLazyTestHooks && _initTestHooks();
426
+ (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
426
427
  return _cachedGlobal.v;
427
- };
428
- var getInst = function (name, useCached) {
428
+ }
429
+ /*#__NO_SIDE_EFFECTS__*/
430
+ function getInst(name, useCached) {
429
431
  var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
430
432
  if (gbl && gbl[name]) {
431
433
  return gbl[name];
@@ -434,62 +436,81 @@ var getInst = function (name, useCached) {
434
436
  return _cachedWindow.v;
435
437
  }
436
438
  return NULL_VALUE;
437
- };
438
- var hasDocument = function () { return !!getDocument(); };
439
- var getDocument = function () {
440
- (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
439
+ }
440
+ /*#__NO_SIDE_EFFECTS__*/
441
+ function getDocument() {
442
+ !_globalLazyTestHooks && _initTestHooks();
443
+ (!_cachedDocument || _globalLazyTestHooks.lzy) && (_cachedDocument = createCachedValue(safe((getInst), ["document"]).v));
441
444
  return _cachedDocument.v;
442
- };
443
- var hasWindow = function () { return !!getWindow(); };
444
- var getWindow = function () {
445
- (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
445
+ }
446
+ /*#__NO_SIDE_EFFECTS__*/
447
+ function hasWindow() {
448
+ return !!getWindow();
449
+ }
450
+ /*#__NO_SIDE_EFFECTS__*/
451
+ function getWindow() {
452
+ !_globalLazyTestHooks && _initTestHooks();
453
+ (!_cachedWindow || _globalLazyTestHooks.lzy) && (_cachedWindow = createCachedValue(safe((getInst), [WINDOW]).v));
446
454
  return _cachedWindow.v;
447
- };
448
- var hasNavigator = function () { return !!getNavigator(); };
449
- var getNavigator = function () {
450
- (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
455
+ }
456
+ /*#__NO_SIDE_EFFECTS__*/
457
+ function hasNavigator() {
458
+ return !!getNavigator();
459
+ }
460
+ /*#__NO_SIDE_EFFECTS__*/
461
+ function getNavigator() {
462
+ !_globalLazyTestHooks && _initTestHooks();
463
+ (!_cachedNavigator || _globalLazyTestHooks.lzy) && (_cachedNavigator = createCachedValue(safe((getInst), ["navigator"]).v));
451
464
  return _cachedNavigator.v;
452
- };
453
- var isNode = function () {
454
- !_isNode && (_isNode = safeGetLazy(function () { return !!(process && (process.versions || {}).node); }, false));
465
+ }
466
+ function isNode() {
467
+ !_isNode && (_isNode = createCachedValue(!!safe(function () { return (process && (process.versions || {}).node); }).v));
455
468
  return _isNode.v;
456
- };
469
+ }
457
470
 
458
471
  var _symbol;
459
472
  var _symbolFor;
460
- var _symbolKeyFor;
461
- function _getSymbolValue(name) {
462
- return safeGetLazy(function () {
463
- return (_symbol.v ? _symbol.v[name] : UNDEF_VALUE);
464
- }, UNDEF_VALUE);
473
+ function _initSymbol() {
474
+ if (!_symbol || !_symbol.b) {
475
+ _symbol = lazySafeGetInst(SYMBOL);
476
+ _symbolFor = safeGetLazy(function () { return (_symbol.v ? _symbol.v["for"] : UNDEF_VALUE); }, UNDEF_VALUE);
477
+ }
465
478
  }
479
+ /*#__NO_SIDE_EFFECTS__*/
466
480
  function hasSymbol() {
467
481
  return !!getSymbol();
468
482
  }
483
+ /*#__NO_SIDE_EFFECTS__*/
469
484
  function getSymbol() {
470
- var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b);
471
- resetCache && (_symbol = lazySafeGetInst(SYMBOL));
472
- (!_symbolFor || resetCache) && (_symbolFor = _getSymbolValue("for"));
473
- (!_symbolKeyFor || resetCache) && (_symbolKeyFor = _getSymbolValue("keyFor"));
485
+ !_globalLazyTestHooks && _initTestHooks();
486
+ (!_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
474
487
  return _symbol.v;
475
488
  }
489
+ /*#__NO_SIDE_EFFECTS__*/
476
490
  function getKnownSymbol(name, noPoly) {
477
491
  var knownName = _wellKnownSymbolMap[name];
478
- (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
492
+ !_globalLazyTestHooks && _initTestHooks();
493
+ (!_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
479
494
  return _symbol.v ? _symbol.v[knownName || name] : (!noPoly ? polyGetKnownSymbol(name) : UNDEF_VALUE);
480
495
  }
496
+ /*#__NO_SIDE_EFFECTS__*/
481
497
  function newSymbol(description, noPoly) {
482
- (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
498
+ !_globalLazyTestHooks && _initTestHooks();
499
+ (!_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
483
500
  return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : NULL_VALUE);
484
501
  }
502
+ /*#__NO_SIDE_EFFECTS__*/
485
503
  function symbolFor(key) {
486
- (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
504
+ !_globalLazyTestHooks && _initTestHooks();
505
+ (!_symbolFor || !_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
487
506
  return (_symbolFor.v || polySymbolFor)(key);
488
507
  }
489
508
 
509
+ /*#__NO_SIDE_EFFECTS__*/
490
510
  function isIterator(value) {
491
511
  return !!value && isFunction(value.next);
492
512
  }
513
+ /*#__NO_SIDE_EFFECTS__*/
493
514
  function isIterable(value) {
494
515
  return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]);
495
516
  }
@@ -498,7 +519,7 @@ var _iterSymbol;
498
519
  function iterForOf(iter, callbackfn, thisArg) {
499
520
  if (iter) {
500
521
  if (!isIterator(iter)) {
501
- !_iterSymbol && (_iterSymbol = getLazy(function () { return getKnownSymbol(3 ); }));
522
+ !_iterSymbol && (_iterSymbol = createCachedValue(getKnownSymbol(3 )));
502
523
  iter = iter[_iterSymbol.v] ? iter[_iterSymbol.v]() : null;
503
524
  }
504
525
  if (isIterator(iter)) {
@@ -507,7 +528,7 @@ function iterForOf(iter, callbackfn, thisArg) {
507
528
  try {
508
529
  var count = 0;
509
530
  while (!(iterResult = iter.next())[DONE]) {
510
- if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
531
+ if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
511
532
  break;
512
533
  }
513
534
  count++;
@@ -536,7 +557,7 @@ function iterForOf(iter, callbackfn, thisArg) {
536
557
  }
537
558
  }
538
559
 
539
- var fnApply = _unwrapInstFunction("apply");
560
+ var fnApply = ( /*#__PURE__*/_unwrapInstFunction("apply"));
540
561
 
541
562
  function arrAppend(target, elms) {
542
563
  if (!isUndefined(elms) && target) {
@@ -560,7 +581,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
560
581
  var len = theArray[LENGTH] >>> 0;
561
582
  for (var idx = 0; idx < len; idx++) {
562
583
  if (idx in theArray) {
563
- if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
584
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
564
585
  break;
565
586
  }
566
587
  }
@@ -568,21 +589,19 @@ function arrForEach(theArray, callbackfn, thisArg) {
568
589
  }
569
590
  }
570
591
 
571
- var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
572
-
573
- var arrSlice = _unwrapFunction(SLICE, ArrProto);
592
+ var arrIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, ArrProto));
574
593
 
575
- var fnCall = _unwrapInstFunction("call");
594
+ var arrSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, ArrProto));
576
595
 
577
- var _objCreate = ObjClass["create"];
578
- var objCreate = _objCreate || polyObjCreate;
596
+ var objCreate = ObjClass["create"] || polyObjCreate;
597
+ /*#__NO_SIDE_EFFECTS__*/
579
598
  function polyObjCreate(obj) {
580
599
  if (!obj) {
581
600
  return {};
582
601
  }
583
602
  var type = typeof obj;
584
603
  if (type !== OBJECT && type !== FUNCTION) {
585
- throw new TypeError("Prototype must be an Object or function: " + dumpObj(obj));
604
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
586
605
  }
587
606
  function tempFunc() { }
588
607
  tempFunc[PROTOTYPE] = obj;
@@ -602,39 +621,30 @@ function objSetPrototypeOf(obj, proto) {
602
621
  return fn(obj, proto);
603
622
  }
604
623
 
605
- var _createCustomError = function (name, d, b) {
606
- _safeDefineName(d, name);
624
+ function _createCustomError(name, d, b) {
625
+ safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
607
626
  d = objSetPrototypeOf(d, b);
608
627
  function __() {
609
628
  this.constructor = d;
610
- _safeDefineName(this, name);
629
+ safe(objDefine, [this, NAME, { v: name, c: true, e: false }]);
611
630
  }
612
631
  d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
613
632
  return d;
614
- };
615
- var _safeSetName = function (baseClass, name) {
616
- try {
617
- name && (baseClass[NAME] = name);
618
- }
619
- catch (e) {
620
- }
621
- };
622
- var _safeDefineName = function (target, name) {
623
- try {
624
- objDefine(target, NAME, { v: name, c: true, e: false });
625
- }
626
- catch (e) {
627
- }
628
- };
633
+ }
634
+ function _setName(baseClass, name) {
635
+ name && (baseClass[NAME] = name);
636
+ }
637
+ /*#__NO_SIDE_EFFECTS__*/
629
638
  function createCustomError(name, constructCb, errorBase) {
630
639
  var theBaseClass = errorBase || Error;
631
640
  var orgName = theBaseClass[PROTOTYPE][NAME];
632
641
  var captureFn = Error.captureStackTrace;
633
642
  return _createCustomError(name, function () {
634
643
  var _this = this;
644
+ var theArgs = arguments;
635
645
  try {
636
- _safeSetName(theBaseClass, name);
637
- var _self = fnApply(theBaseClass, _this, arrSlice(arguments)) || _this;
646
+ safe(_setName, [theBaseClass, name]);
647
+ var _self = fnApply(theBaseClass, _this, ArrProto[SLICE][CALL](theArgs)) || _this;
638
648
  if (_self !== _this) {
639
649
  var orgProto = objGetPrototypeOf(_this);
640
650
  if (orgProto !== objGetPrototypeOf(_self)) {
@@ -642,22 +652,25 @@ function createCustomError(name, constructCb, errorBase) {
642
652
  }
643
653
  }
644
654
  captureFn && captureFn(_self, _this[CONSTRUCTOR]);
645
- constructCb && constructCb(_self, arguments);
655
+ constructCb && constructCb(_self, theArgs);
646
656
  return _self;
647
657
  }
648
658
  finally {
649
- _safeSetName(theBaseClass, orgName);
659
+ safe(_setName, [theBaseClass, orgName]);
650
660
  }
651
661
  }, theBaseClass);
652
662
  }
653
663
 
664
+ /*#__NO_SIDE_EFFECTS__*/
654
665
  function utcNow() {
655
666
  return (Date.now || polyUtcNow)();
656
667
  }
668
+ /*#__NO_SIDE_EFFECTS__*/
657
669
  function polyUtcNow() {
658
670
  return new Date().getTime();
659
671
  }
660
672
 
673
+ /*#__NO_SIDE_EFFECTS__*/
661
674
  function _createTrimFn(exp) {
662
675
  return function _doTrim(value) {
663
676
  if (isNullOrUndefined(value)) {
@@ -669,13 +682,14 @@ function _createTrimFn(exp) {
669
682
  return value;
670
683
  };
671
684
  }
672
- var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
685
+ var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
673
686
 
674
- var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
687
+ var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
675
688
 
676
689
  var _fnToString;
677
690
  var _objCtrFnString;
678
691
  var _gblWindow;
692
+ /*#__NO_SIDE_EFFECTS__*/
679
693
  function isPlainObject(value) {
680
694
  if (!value || typeof value !== OBJECT) {
681
695
  return false;
@@ -686,8 +700,8 @@ function isPlainObject(value) {
686
700
  var result = false;
687
701
  if (value !== _gblWindow) {
688
702
  if (!_objCtrFnString) {
689
- _fnToString = Function[PROTOTYPE].toString;
690
- _objCtrFnString = fnCall(_fnToString, ObjClass);
703
+ _fnToString = Function[PROTOTYPE][TO_STRING];
704
+ _objCtrFnString = _fnToString[CALL](ObjClass);
691
705
  }
692
706
  try {
693
707
  var proto = objGetPrototypeOf(value);
@@ -696,7 +710,7 @@ function isPlainObject(value) {
696
710
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
697
711
  proto = proto[CONSTRUCTOR];
698
712
  }
699
- result = proto && typeof proto === FUNCTION && _fnToString.call(proto) === _objCtrFnString;
713
+ result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
700
714
  }
701
715
  }
702
716
  catch (ex) {
@@ -705,20 +719,23 @@ function isPlainObject(value) {
705
719
  return result;
706
720
  }
707
721
 
708
- var _perf;
709
- function getPerformance() {
710
- (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance"));
711
- return _perf.v;
712
- }
722
+ /*#__NO_SIDE_EFFECTS__*/
713
723
  function perfNow() {
714
- var perf = getPerformance();
715
- if (perf && perf.now) {
716
- return perf.now();
717
- }
718
724
  return utcNow();
719
725
  }
720
726
 
721
- var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
727
+ var strIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, StrProto));
728
+
729
+ var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
730
+ /*#__NO_SIDE_EFFECTS__*/
731
+ function polyStrStartsWith(value, searchString, position) {
732
+ if (!isString(value)) {
733
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
734
+ }
735
+ var searchValue = isString(searchString) ? searchString : asString(searchString);
736
+ var pos = position > 0 ? position : 0;
737
+ return strSubstring(value, pos, pos + searchValue[LENGTH]) === searchValue;
738
+ }
722
739
 
723
740
  var REF = "ref";
724
741
  var UNREF = "un" + REF;
@@ -789,7 +806,7 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
789
806
  var timerFn = theArgs[0];
790
807
  theArgs[0] = function () {
791
808
  handler.dn();
792
- fnApply(timerFn, self, arrSlice(arguments));
809
+ fnApply(timerFn, self, ArrProto[SLICE][CALL](arguments));
793
810
  };
794
811
  var handler = _createTimerHandler(startTimer, function (timerId) {
795
812
  if (timerId) {
@@ -806,14 +823,12 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
806
823
  return handler.h;
807
824
  }
808
825
  function scheduleTimeout(callback, timeout) {
809
- return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments));
826
+ return _createTimeoutWith(this, true, UNDEF_VALUE, ArrProto[SLICE][CALL](arguments));
810
827
  }
811
828
  function scheduleTimeoutWith(overrideFn, callback, timeout) {
812
- return _createTimeoutWith(this, true, overrideFn, arrSlice(arguments, 1));
829
+ return _createTimeoutWith(this, true, overrideFn, ArrProto[SLICE][CALL](arguments, 1));
813
830
  }
814
831
 
815
- (getGlobal() || {})["Symbol"];
816
- (getGlobal() || {})["Reflect"];
817
832
  var strHasOwnProperty = "hasOwnProperty";
818
833
  var extendStaticsFn = function (d, b) {
819
834
  extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
@@ -910,13 +925,13 @@ function _forEachProp(target, func) {
910
925
  }
911
926
  }
912
927
  function _isDynamicCandidate(target, funcName, skipOwn) {
913
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)));
928
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype);
914
929
  }
915
930
  function _throwTypeError(message) {
916
931
  throwTypeError("DynamicProto: " + message);
917
932
  }
918
933
  function _getInstanceFuncs(thisTarget) {
919
- var instFuncs = {};
934
+ var instFuncs = objCreate(null);
920
935
  _forEachProp(thisTarget, function (name) {
921
936
  if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
922
937
  instFuncs[name] = thisTarget[name];
@@ -945,7 +960,7 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
945
960
  return theFunc.apply(target, arguments);
946
961
  };
947
962
  }
948
- var baseFuncs = {};
963
+ var baseFuncs = objCreate(null);
949
964
  _forEachProp(instFuncs, function (name) {
950
965
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
951
966
  });
@@ -965,8 +980,8 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
965
980
  function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
966
981
  var instFunc = null;
967
982
  if (target && objHasOwnProperty(proto, DynClassName)) {
968
- var instFuncTable = target[DynInstFuncTable] || {};
969
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
983
+ var instFuncTable = target[DynInstFuncTable] || objCreate(null);
984
+ instFunc = (instFuncTable[proto[DynClassName]] || objCreate(null))[funcName];
970
985
  if (!instFunc) {
971
986
  _throwTypeError("Missing [" + funcName + "] " + strFunction);
972
987
  }
@@ -1016,20 +1031,24 @@ function _populatePrototype(proto, className, target, baseInstFuncs, setInstance
1016
1031
  return dynProtoProxy;
1017
1032
  }
1018
1033
  if (!_isObjectOrArrayPrototype(proto)) {
1019
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
1020
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
1021
- if (instFuncTable[DynAllowInstChkTag] !== false) {
1022
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
1023
- }
1024
- _forEachProp(target, function (name) {
1025
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
1026
- instFuncs_1[name] = target[name];
1027
- delete target[name];
1028
- if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
1029
- proto[name] = _createDynamicPrototype(proto, name);
1030
- }
1034
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
1035
+ if (!_isObjectOrArrayPrototype(instFuncTable)) {
1036
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null));
1037
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
1038
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
1039
+ }
1040
+ if (!_isObjectOrArrayPrototype(instFuncs_1)) {
1041
+ _forEachProp(target, function (name) {
1042
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
1043
+ instFuncs_1[name] = target[name];
1044
+ delete target[name];
1045
+ if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
1046
+ proto[name] = _createDynamicPrototype(proto, name);
1047
+ }
1048
+ }
1049
+ });
1031
1050
  }
1032
- });
1051
+ }
1033
1052
  }
1034
1053
  }
1035
1054
  function _checkPrototype(classProto, thisTarget) {
@@ -1681,7 +1700,7 @@ function newId(maxLength) {
1681
1700
  return result;
1682
1701
  }
1683
1702
 
1684
- var version = '3.0.7-nightly3.2312-05';
1703
+ var version = '3.0.8';
1685
1704
  var instanceName = "." + newId(6);
1686
1705
  var _dataUid = 0;
1687
1706
  function _canAcceptData(target) {
@@ -3510,7 +3529,7 @@ var _DYN_LENGTH$1 = "length";
3510
3529
  var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
3511
3530
 
3512
3531
  var _a$1;
3513
- var Version = '4.0.6-nightly3.2312-05';
3532
+ var Version = '4.0.6';
3514
3533
  var FullVersionString = "1DS-Web-JS-" + Version;
3515
3534
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
3516
3535
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -3525,8 +3544,6 @@ var _fieldTypeEventPropMap = (_a$1 = {},
3525
3544
  _a$1[4096 | 1 ] = 1 ,
3526
3545
  _a$1[4096 | 3 ] = 7 ,
3527
3546
  _a$1);
3528
- hasDocument();
3529
- hasWindow();
3530
3547
  function isValueAssigned(value) {
3531
3548
  return !(value === STR_EMPTY$1 || isNullOrUndefined(value));
3532
3549
  }
@@ -5304,7 +5321,7 @@ var PostChannel = /** @class */ (function (_super) {
5304
5321
  var _this = _super.call(this) || this;
5305
5322
  _this.identifier = "PostChannel";
5306
5323
  _this.priority = 1011;
5307
- _this.version = '4.0.6-nightly3.2312-05';
5324
+ _this.version = '4.0.6';
5308
5325
  var _postConfig;
5309
5326
  var _isTeardownCalled = false;
5310
5327
  var _flushCallbackQueue = [];
@@ -6021,4 +6038,4 @@ exports.PostChannel = PostChannel;
6021
6038
  exports.RT_PROFILE = RT_PROFILE;
6022
6039
 
6023
6040
  }));
6024
- //# sourceMappingURL=ms.post-4.0.6-nightly3.2312-05.gbl.js.map
6041
+ //# sourceMappingURL=ms.post-4.0.6.gbl.js.map