@microsoft/1ds-post-js 4.3.7-nightly3.2504-08 → 4.3.7-nightly3.2504-12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/es5/{ms.post-4.3.7-nightly3.2504-08.gbl.js → ms.post-4.3.7-nightly3.2504-12.gbl.js} +297 -120
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-12.gbl.js.map +1 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-12.gbl.min.js +7 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-12.gbl.min.js.map +1 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-12.integrity.json +46 -0
- package/bundle/es5/{ms.post-4.3.7-nightly3.2504-08.js → ms.post-4.3.7-nightly3.2504-12.js} +297 -120
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-12.js.map +1 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-12.min.js +7 -0
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-12.min.js.map +1 -0
- package/bundle/es5/ms.post.gbl.js +296 -119
- package/bundle/es5/ms.post.gbl.js.map +1 -1
- package/bundle/es5/ms.post.gbl.min.js +2 -2
- package/bundle/es5/ms.post.gbl.min.js.map +1 -1
- package/bundle/es5/ms.post.integrity.json +17 -17
- package/bundle/es5/ms.post.js +296 -119
- package/bundle/es5/ms.post.js.map +1 -1
- package/bundle/es5/ms.post.min.js +2 -2
- package/bundle/es5/ms.post.min.js.map +1 -1
- package/dist/es5/ms.post.js +294 -117
- package/dist/es5/ms.post.js.map +1 -1
- package/dist/es5/ms.post.min.js +2 -2
- package/dist/es5/ms.post.min.js.map +1 -1
- package/dist-es5/BatchNotificationActions.js +1 -1
- package/dist-es5/ClockSkewManager.js +1 -1
- package/dist-es5/DataModels.js +1 -1
- package/dist-es5/EventBatch.js +1 -1
- package/dist-es5/HttpManager.js +1 -1
- package/dist-es5/Index.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/KillSwitch.js +1 -1
- package/dist-es5/PostChannel.js +2 -2
- package/dist-es5/PostChannel.js.map +1 -1
- package/dist-es5/RetryPolicy.js +1 -1
- package/dist-es5/Serializer.js +3 -2
- package/dist-es5/Serializer.js.map +1 -1
- package/dist-es5/TimeoutOverrideWrapper.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/typings/XDomainRequest.js +1 -1
- package/package.json +2 -2
- package/types/1ds-post-js.d.ts +1 -1
- package/types/1ds-post-js.namespaced.d.ts +1 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-08.gbl.js.map +0 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-08.gbl.min.js +0 -7
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-08.gbl.min.js.map +0 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-08.integrity.json +0 -46
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-08.js.map +0 -1
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-08.min.js +0 -7
- package/bundle/es5/ms.post-4.3.7-nightly3.2504-08.min.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK POST plugin, 4.3.7-nightly3.2504-
|
|
2
|
+
* 1DS JS SDK POST plugin, 4.3.7-nightly3.2504-12
|
|
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 = "
|
|
9
|
-
var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2504-
|
|
8
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_3_7_nightly3_2504_12", msMod="__ms$mod__";
|
|
9
|
+
var mods={}, modDetail=mods[modName]={}, ver="4.3.7-nightly3.2504-12";
|
|
10
10
|
// Versioned namespace "oneDS4"
|
|
11
11
|
var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
12
12
|
// Global namespace "oneDS"
|
|
@@ -37,7 +37,7 @@ var strShimPrototype = "prototype";
|
|
|
37
37
|
var ObjClass$1 = Object;
|
|
38
38
|
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
39
39
|
|
|
40
|
-
/*! https://github.com/nevware21/ts-utils v0.
|
|
40
|
+
/*! https://github.com/nevware21/ts-utils v0.12.1 */
|
|
41
41
|
/*#__NO_SIDE_EFFECTS__*/
|
|
42
42
|
function _pureAssign(func1, func2) {
|
|
43
43
|
return func1 || func2;
|
|
@@ -56,11 +56,12 @@ var __PROTO__ = "__proto__";
|
|
|
56
56
|
var UNDEFINED = "undefined";
|
|
57
57
|
var CONSTRUCTOR = "constructor";
|
|
58
58
|
var SYMBOL = "Symbol";
|
|
59
|
-
var POLYFILL_TAG = "_polyfill";
|
|
60
59
|
var LENGTH = "length";
|
|
61
60
|
var NAME = "name";
|
|
62
61
|
var CALL = "call";
|
|
63
62
|
var TO_STRING = "toString";
|
|
63
|
+
var GETTER_NAME = "__lookupGetter__";
|
|
64
|
+
var SETTER_NAME = "__lookupSetter__";
|
|
64
65
|
var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
|
|
65
66
|
var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
|
|
66
67
|
var StrCls = ( /*#__PURE__*/_pureAssign(String));
|
|
@@ -69,6 +70,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
|
|
|
69
70
|
var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
|
|
70
71
|
var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
|
|
71
72
|
var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
|
|
73
|
+
var POLYFILL_TAG = "_polyfill";
|
|
74
|
+
var POLYFILL_TYPE_NAME = "__nw21$polytype__";
|
|
72
75
|
function safe(func, argArray) {
|
|
73
76
|
try {
|
|
74
77
|
return {
|
|
@@ -91,7 +94,7 @@ function isUndefined(value) {
|
|
|
91
94
|
}
|
|
92
95
|
/*#__NO_SIDE_EFFECTS__*/
|
|
93
96
|
function isStrictUndefined(arg) {
|
|
94
|
-
return
|
|
97
|
+
return arg === UNDEF_VALUE;
|
|
95
98
|
}
|
|
96
99
|
/*#__NO_SIDE_EFFECTS__*/
|
|
97
100
|
function isNullOrUndefined(value) {
|
|
@@ -99,7 +102,7 @@ function isNullOrUndefined(value) {
|
|
|
99
102
|
}
|
|
100
103
|
/*#__NO_SIDE_EFFECTS__*/
|
|
101
104
|
function isStrictNullOrUndefined(value) {
|
|
102
|
-
return value === NULL_VALUE ||
|
|
105
|
+
return value === NULL_VALUE || value === UNDEF_VALUE;
|
|
103
106
|
}
|
|
104
107
|
/*#__NO_SIDE_EFFECTS__*/
|
|
105
108
|
function isDefined(arg) {
|
|
@@ -121,18 +124,124 @@ var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
|
|
|
121
124
|
function isPromiseLike(value) {
|
|
122
125
|
return !!(value && value.then && isFunction(value.then));
|
|
123
126
|
}
|
|
124
|
-
var
|
|
127
|
+
var asString = ( /* #__PURE__ */_pureAssign(StrCls));
|
|
128
|
+
var ERROR_TYPE = "[object Error]";
|
|
129
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
130
|
+
function dumpObj(object, format) {
|
|
131
|
+
var propertyValueDump = EMPTY;
|
|
132
|
+
var objType = ObjProto[TO_STRING][CALL](object);
|
|
133
|
+
if (objType === ERROR_TYPE) {
|
|
134
|
+
object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
|
|
135
|
+
}
|
|
136
|
+
try {
|
|
137
|
+
propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
|
|
138
|
+
propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
|
|
139
|
+
}
|
|
140
|
+
catch (e) {
|
|
141
|
+
propertyValueDump = " - " + dumpObj(e, format);
|
|
142
|
+
}
|
|
143
|
+
return objType + ": " + propertyValueDump;
|
|
144
|
+
}
|
|
145
|
+
function throwTypeError(message) {
|
|
146
|
+
throw new TypeError(message);
|
|
147
|
+
}
|
|
148
|
+
function _throwIfNullOrUndefined(obj) {
|
|
149
|
+
if (isStrictNullOrUndefined(obj)) {
|
|
150
|
+
throwTypeError("Cannot convert undefined or null to object");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function _throwIfNotString(value) {
|
|
154
|
+
if (!isString(value)) {
|
|
155
|
+
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
156
|
+
}
|
|
157
|
+
}
|
|
125
158
|
/*#__NO_SIDE_EFFECTS__*/
|
|
126
159
|
function objHasOwnProperty(obj, prop) {
|
|
127
160
|
return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
|
|
128
161
|
}
|
|
129
|
-
var
|
|
162
|
+
var _unwrapFunction = ( _unwrapFunctionWithPoly);
|
|
163
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
164
|
+
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
165
|
+
var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
|
|
166
|
+
return function (thisArg) {
|
|
167
|
+
var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
|
|
168
|
+
if (theFunc || polyFunc) {
|
|
169
|
+
var theArgs = arguments;
|
|
170
|
+
return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
|
|
171
|
+
}
|
|
172
|
+
throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
function _objPropertyIsEnum(obj, propKey) {
|
|
176
|
+
var desc;
|
|
177
|
+
var fn = ObjClass.getOwnPropertyDescriptor;
|
|
178
|
+
if (!isStrictNullOrUndefined(obj) && fn) {
|
|
179
|
+
desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
|
|
180
|
+
}
|
|
181
|
+
if (!desc) {
|
|
182
|
+
desc = safe(function () {
|
|
183
|
+
for (var key in obj) {
|
|
184
|
+
if (key === propKey) {
|
|
185
|
+
return { enumerable: true };
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}).v;
|
|
189
|
+
}
|
|
190
|
+
return (desc && desc.enumerable) || false;
|
|
191
|
+
}
|
|
192
|
+
var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
|
|
193
|
+
function _isPropertyWritable(obj, prop) {
|
|
194
|
+
var result = false;
|
|
195
|
+
if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
|
|
196
|
+
var originalValue = obj[prop];
|
|
197
|
+
try {
|
|
198
|
+
obj[prop] = originalValue;
|
|
199
|
+
result = true;
|
|
200
|
+
}
|
|
201
|
+
catch (e) {
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return result;
|
|
205
|
+
}
|
|
206
|
+
function polyObjGetOwnPropertyDescriptor(obj, prop) {
|
|
207
|
+
var descriptor;
|
|
208
|
+
_throwIfNullOrUndefined(obj);
|
|
209
|
+
var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
|
|
210
|
+
if (isLength || objHasOwnProperty(obj, prop)) {
|
|
211
|
+
descriptor = {
|
|
212
|
+
configurable: !isLength,
|
|
213
|
+
enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
|
|
214
|
+
};
|
|
215
|
+
var isData = true;
|
|
216
|
+
if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
|
|
217
|
+
var getter = obj[GETTER_NAME](prop);
|
|
218
|
+
var setter = obj[SETTER_NAME](prop);
|
|
219
|
+
if (getter || setter) {
|
|
220
|
+
isData = false;
|
|
221
|
+
if (getter) {
|
|
222
|
+
descriptor.get = getter;
|
|
223
|
+
}
|
|
224
|
+
if (setter) {
|
|
225
|
+
descriptor.set = setter;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
if (isData) {
|
|
230
|
+
descriptor.value = obj[prop];
|
|
231
|
+
descriptor.writable = _isPropertyWritable(obj, prop);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return descriptor;
|
|
235
|
+
}
|
|
236
|
+
var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
|
|
130
237
|
/*#__NO_SIDE_EFFECTS__*/
|
|
131
238
|
function polyObjHasOwn(obj, prop) {
|
|
239
|
+
_throwIfNullOrUndefined(obj);
|
|
132
240
|
return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
|
|
133
241
|
}
|
|
242
|
+
var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
|
|
134
243
|
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
135
|
-
if (theObject && isObject(theObject)) {
|
|
244
|
+
if (theObject && (isObject(theObject) || isFunction(theObject))) {
|
|
136
245
|
for (var prop in theObject) {
|
|
137
246
|
if (objHasOwn(theObject, prop)) {
|
|
138
247
|
if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
@@ -142,6 +251,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
142
251
|
}
|
|
143
252
|
}
|
|
144
253
|
}
|
|
254
|
+
function arrForEach(theArray, callbackfn, thisArg) {
|
|
255
|
+
if (theArray) {
|
|
256
|
+
var len = theArray[LENGTH] >>> 0;
|
|
257
|
+
for (var idx = 0; idx < len; idx++) {
|
|
258
|
+
if (idx in theArray) {
|
|
259
|
+
if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
145
266
|
var propMap = {
|
|
146
267
|
e: "enumerable",
|
|
147
268
|
c: "configurable",
|
|
@@ -170,6 +291,7 @@ function _createProp(value) {
|
|
|
170
291
|
return prop;
|
|
171
292
|
}
|
|
172
293
|
var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
|
|
294
|
+
var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
|
|
173
295
|
function objDefine(target, key, propDesc) {
|
|
174
296
|
return objDefineProp(target, key, _createProp(propDesc));
|
|
175
297
|
}
|
|
@@ -189,46 +311,50 @@ function _assignMapValue(theMap, key, value, writable) {
|
|
|
189
311
|
writable: false
|
|
190
312
|
});
|
|
191
313
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
function dumpObj(object, format) {
|
|
196
|
-
var propertyValueDump = EMPTY;
|
|
197
|
-
var objType = ObjProto[TO_STRING][CALL](object);
|
|
198
|
-
if (objType === ERROR_TYPE) {
|
|
199
|
-
object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
|
|
314
|
+
function polyObjIsFrozen(obj) {
|
|
315
|
+
if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
|
|
316
|
+
return true;
|
|
200
317
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
|
|
318
|
+
if (isFunction(obj)) {
|
|
319
|
+
return false;
|
|
204
320
|
}
|
|
205
|
-
|
|
206
|
-
|
|
321
|
+
for (var prop in obj) {
|
|
322
|
+
var desc = objGetOwnPropertyDescriptor(obj, prop);
|
|
323
|
+
if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
207
326
|
}
|
|
208
|
-
return
|
|
209
|
-
}
|
|
210
|
-
function throwTypeError(message) {
|
|
211
|
-
throw new TypeError(message);
|
|
327
|
+
return true;
|
|
212
328
|
}
|
|
329
|
+
var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
|
|
213
330
|
var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
|
|
214
331
|
function _doNothing(value) {
|
|
215
332
|
return value;
|
|
216
333
|
}
|
|
217
334
|
/*#__NO_SIDE_EFFECTS__*/
|
|
218
335
|
function _getProto(value) {
|
|
336
|
+
_throwIfNullOrUndefined(value);
|
|
219
337
|
return value[__PROTO__] || NULL_VALUE;
|
|
220
338
|
}
|
|
221
339
|
var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
|
|
222
340
|
var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
|
|
223
|
-
function
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
if (
|
|
227
|
-
|
|
341
|
+
function _deepFreeze(val, visited) {
|
|
342
|
+
if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
|
|
343
|
+
for (var lp = 0; lp < visited.length; lp++) {
|
|
344
|
+
if (visited[lp] === val) {
|
|
345
|
+
return val;
|
|
228
346
|
}
|
|
347
|
+
}
|
|
348
|
+
visited.push(val);
|
|
349
|
+
objForEachKey(val, function (_key, propValue) {
|
|
350
|
+
_deepFreeze(propValue, visited);
|
|
229
351
|
});
|
|
352
|
+
objFreeze(val);
|
|
230
353
|
}
|
|
231
|
-
return
|
|
354
|
+
return val;
|
|
355
|
+
}
|
|
356
|
+
function objDeepFreeze(value) {
|
|
357
|
+
return _objFreeze ? _deepFreeze(value, []) : value;
|
|
232
358
|
}
|
|
233
359
|
var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
|
|
234
360
|
var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
|
|
@@ -282,19 +408,6 @@ function _getGlobalConfig() {
|
|
|
282
408
|
}
|
|
283
409
|
return _globalCfg;
|
|
284
410
|
}
|
|
285
|
-
var _unwrapFunction = ( _unwrapFunctionWithPoly);
|
|
286
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
287
|
-
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
288
|
-
var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
|
|
289
|
-
return function (thisArg) {
|
|
290
|
-
var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
|
|
291
|
-
if (theFunc || polyFunc) {
|
|
292
|
-
var theArgs = arguments;
|
|
293
|
-
return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
|
|
294
|
-
}
|
|
295
|
-
throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
411
|
var mathMin = ( /*#__PURE__*/_pureRef(MathCls, "min"));
|
|
299
412
|
var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
|
|
300
413
|
var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
|
|
@@ -302,9 +415,7 @@ var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
|
|
|
302
415
|
var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
|
|
303
416
|
/*#__NO_SIDE_EFFECTS__*/
|
|
304
417
|
function polyStrSubstr(value, start, length) {
|
|
305
|
-
|
|
306
|
-
throwTypeError("Invalid " + dumpObj(value));
|
|
307
|
-
}
|
|
418
|
+
_throwIfNullOrUndefined(value);
|
|
308
419
|
if (length < 0) {
|
|
309
420
|
return EMPTY;
|
|
310
421
|
}
|
|
@@ -321,8 +432,109 @@ function polyStrSubstr(value, start, length) {
|
|
|
321
432
|
function strLeft(value, count) {
|
|
322
433
|
return strSubstring(value, 0, count);
|
|
323
434
|
}
|
|
435
|
+
function _tagAsPolyfill(target, polyfillTypeName) {
|
|
436
|
+
if (target) {
|
|
437
|
+
safe(function () {
|
|
438
|
+
target[POLYFILL_TAG] = true;
|
|
439
|
+
target[POLYFILL_TYPE_NAME] = polyfillTypeName;
|
|
440
|
+
});
|
|
441
|
+
safe(objDefine, [target, POLYFILL_TAG, {
|
|
442
|
+
v: true,
|
|
443
|
+
w: false,
|
|
444
|
+
e: false
|
|
445
|
+
}]);
|
|
446
|
+
safe(objDefine, [target, POLYFILL_TYPE_NAME, {
|
|
447
|
+
v: polyfillTypeName,
|
|
448
|
+
w: false,
|
|
449
|
+
e: false
|
|
450
|
+
}]);
|
|
451
|
+
}
|
|
452
|
+
return target;
|
|
453
|
+
}
|
|
454
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
455
|
+
function createCachedValue(value) {
|
|
456
|
+
return objDefineProp({
|
|
457
|
+
toJSON: function () { return value; }
|
|
458
|
+
}, "v", { value: value });
|
|
459
|
+
}
|
|
460
|
+
var _isProtoArray;
|
|
461
|
+
var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
|
|
462
|
+
function _polyObjSetPrototypeOf(obj, proto) {
|
|
463
|
+
var _a;
|
|
464
|
+
!_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
|
|
465
|
+
_isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
|
|
466
|
+
return obj;
|
|
467
|
+
}
|
|
468
|
+
var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
|
|
469
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
470
|
+
function polyObjCreate(obj, properties) {
|
|
471
|
+
var newObj;
|
|
472
|
+
function tempFunc() { }
|
|
473
|
+
if (!isStrictNullOrUndefined(obj)) {
|
|
474
|
+
var type = typeof obj;
|
|
475
|
+
if (type !== OBJECT && type !== FUNCTION) {
|
|
476
|
+
throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
|
|
477
|
+
}
|
|
478
|
+
tempFunc[PROTOTYPE] = obj;
|
|
479
|
+
safe(function () {
|
|
480
|
+
tempFunc[__PROTO__] = obj;
|
|
481
|
+
});
|
|
482
|
+
newObj = new tempFunc();
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
newObj = {};
|
|
486
|
+
}
|
|
487
|
+
safe(_polyObjSetPrototypeOf, [newObj, obj]);
|
|
488
|
+
if (properties) {
|
|
489
|
+
safe(objDefineProperties, [newObj, properties]);
|
|
490
|
+
}
|
|
491
|
+
return newObj;
|
|
492
|
+
}
|
|
493
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
494
|
+
function utcNow() {
|
|
495
|
+
return (Date.now || polyUtcNow)();
|
|
496
|
+
}
|
|
497
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
498
|
+
function polyUtcNow() {
|
|
499
|
+
return new Date().getTime();
|
|
500
|
+
}
|
|
501
|
+
var _globalLazyTestHooks;
|
|
502
|
+
function _initTestHooks() {
|
|
503
|
+
_globalLazyTestHooks = _getGlobalConfig();
|
|
504
|
+
}
|
|
505
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
506
|
+
function getLazy(cb) {
|
|
507
|
+
var lazyValue = {};
|
|
508
|
+
!_globalLazyTestHooks && _initTestHooks();
|
|
509
|
+
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
510
|
+
objDefineProp(lazyValue, "v", {
|
|
511
|
+
configurable: true,
|
|
512
|
+
get: function () {
|
|
513
|
+
var result = cb();
|
|
514
|
+
if (!_globalLazyTestHooks.lzy) {
|
|
515
|
+
objDefineProp(lazyValue, "v", {
|
|
516
|
+
value: result
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
520
|
+
return result;
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
return lazyValue;
|
|
524
|
+
}
|
|
525
|
+
var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
|
|
526
|
+
var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
|
|
527
|
+
var value = (utcNow().toString(36).slice(2));
|
|
528
|
+
while (value.length < 16) {
|
|
529
|
+
value += mathRandom().toString(36).slice(2);
|
|
530
|
+
}
|
|
531
|
+
value = value.substring(0, 16);
|
|
532
|
+
return value;
|
|
533
|
+
}));
|
|
324
534
|
var UNIQUE_REGISTRY_ID = "_urid";
|
|
535
|
+
var POLY_SYM = "$nw21sym";
|
|
325
536
|
var _polySymbols;
|
|
537
|
+
var _polyId = 0;
|
|
326
538
|
/*#__NO_SIDE_EFFECTS__*/
|
|
327
539
|
function _globalSymbolRegistry() {
|
|
328
540
|
if (!_polySymbols) {
|
|
@@ -334,12 +546,35 @@ function _globalSymbolRegistry() {
|
|
|
334
546
|
var _wellKnownSymbolCache;
|
|
335
547
|
/*#__NO_SIDE_EFFECTS__*/
|
|
336
548
|
function polyNewSymbol(description) {
|
|
337
|
-
var
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
549
|
+
var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
|
|
550
|
+
var symString = SYMBOL + "(" + description + ")";
|
|
551
|
+
var theSymbol = objCreate(null);
|
|
552
|
+
objDefine(theSymbol, "description", {
|
|
553
|
+
v: asString(description),
|
|
554
|
+
e: false,
|
|
555
|
+
w: false
|
|
556
|
+
});
|
|
557
|
+
objDefine(theSymbol, TO_STRING, {
|
|
558
|
+
v: function () { return symString + POLY_SYM + uniqueId; },
|
|
559
|
+
e: false,
|
|
560
|
+
w: false
|
|
561
|
+
});
|
|
562
|
+
objDefine(theSymbol, "valueOf", {
|
|
563
|
+
v: function () { return theSymbol; },
|
|
564
|
+
e: false,
|
|
565
|
+
w: false
|
|
566
|
+
});
|
|
567
|
+
objDefine(theSymbol, "v", {
|
|
568
|
+
v: symString,
|
|
569
|
+
e: false,
|
|
570
|
+
w: false
|
|
571
|
+
});
|
|
572
|
+
objDefine(theSymbol, "_uid", {
|
|
573
|
+
v: uniqueId,
|
|
574
|
+
e: false,
|
|
575
|
+
w: false
|
|
576
|
+
});
|
|
577
|
+
return _tagAsPolyfill(theSymbol, "symbol");
|
|
343
578
|
}
|
|
344
579
|
/*#__NO_SIDE_EFFECTS__*/
|
|
345
580
|
function polySymbolFor(key) {
|
|
@@ -363,16 +598,6 @@ function polyGetKnownSymbol(name) {
|
|
|
363
598
|
}
|
|
364
599
|
return result;
|
|
365
600
|
}
|
|
366
|
-
var _globalLazyTestHooks;
|
|
367
|
-
function _initTestHooks() {
|
|
368
|
-
_globalLazyTestHooks = _getGlobalConfig();
|
|
369
|
-
}
|
|
370
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
371
|
-
function createCachedValue(value) {
|
|
372
|
-
return objDefineProp({
|
|
373
|
-
toJSON: function () { return value; }
|
|
374
|
-
}, "v", { value: value });
|
|
375
|
-
}
|
|
376
601
|
var WINDOW = "window";
|
|
377
602
|
var _cachedGlobal;
|
|
378
603
|
function _getGlobalInstFn(getFn, theArgs) {
|
|
@@ -534,46 +759,10 @@ function arrAppend(target, elms) {
|
|
|
534
759
|
}
|
|
535
760
|
return target;
|
|
536
761
|
}
|
|
537
|
-
function arrForEach(theArray, callbackfn, thisArg) {
|
|
538
|
-
if (theArray) {
|
|
539
|
-
var len = theArray[LENGTH] >>> 0;
|
|
540
|
-
for (var idx = 0; idx < len; idx++) {
|
|
541
|
-
if (idx in theArray) {
|
|
542
|
-
if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
543
|
-
break;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
762
|
var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
|
|
550
763
|
function arrSlice(theArray, start, end) {
|
|
551
764
|
return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
|
|
552
765
|
}
|
|
553
|
-
var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
|
|
554
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
555
|
-
function polyObjCreate(obj) {
|
|
556
|
-
if (!obj) {
|
|
557
|
-
return {};
|
|
558
|
-
}
|
|
559
|
-
var type = typeof obj;
|
|
560
|
-
if (type !== OBJECT && type !== FUNCTION) {
|
|
561
|
-
throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
|
|
562
|
-
}
|
|
563
|
-
function tempFunc() { }
|
|
564
|
-
tempFunc[PROTOTYPE] = obj;
|
|
565
|
-
return new tempFunc();
|
|
566
|
-
}
|
|
567
|
-
var _isProtoArray;
|
|
568
|
-
function objSetPrototypeOf(obj, proto) {
|
|
569
|
-
var fn = ObjClass["setPrototypeOf"] ||
|
|
570
|
-
function (d, b) {
|
|
571
|
-
var _a;
|
|
572
|
-
!_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
|
|
573
|
-
_isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
|
|
574
|
-
};
|
|
575
|
-
return fn(obj, proto);
|
|
576
|
-
}
|
|
577
766
|
/*#__NO_SIDE_EFFECTS__*/
|
|
578
767
|
function _createCustomError(name, d, b) {
|
|
579
768
|
safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
|
|
@@ -615,19 +804,9 @@ function createCustomError(name, constructCb, errorBase) {
|
|
|
615
804
|
}, theBaseClass);
|
|
616
805
|
}
|
|
617
806
|
/*#__NO_SIDE_EFFECTS__*/
|
|
618
|
-
function utcNow() {
|
|
619
|
-
return (Date.now || polyUtcNow)();
|
|
620
|
-
}
|
|
621
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
622
|
-
function polyUtcNow() {
|
|
623
|
-
return new Date().getTime();
|
|
624
|
-
}
|
|
625
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
626
807
|
function _createTrimFn(exp) {
|
|
627
808
|
return function _doTrim(value) {
|
|
628
|
-
|
|
629
|
-
throwTypeError("strTrim called [" + dumpObj(value) + "]");
|
|
630
|
-
}
|
|
809
|
+
_throwIfNullOrUndefined(value);
|
|
631
810
|
if (value && value.replace) {
|
|
632
811
|
value = value.replace(exp, EMPTY);
|
|
633
812
|
}
|
|
@@ -678,9 +857,7 @@ var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
|
|
|
678
857
|
var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
|
|
679
858
|
/*#__NO_SIDE_EFFECTS__*/
|
|
680
859
|
function polyStrStartsWith(value, searchString, position) {
|
|
681
|
-
|
|
682
|
-
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
683
|
-
}
|
|
860
|
+
_throwIfNotString(value);
|
|
684
861
|
var searchValue = isString(searchString) ? searchString : asString(searchString);
|
|
685
862
|
var pos = position > 0 ? position : 0;
|
|
686
863
|
return strSubstring(value, pos, pos + searchValue[LENGTH]) === searchValue;
|
|
@@ -1819,7 +1996,7 @@ function newId(maxLength) {
|
|
|
1819
1996
|
return result;
|
|
1820
1997
|
}
|
|
1821
1998
|
|
|
1822
|
-
var version = '3.3.7-nightly3.2504-
|
|
1999
|
+
var version = '3.3.7-nightly3.2504-12';
|
|
1823
2000
|
var instanceName = "." + newId(6);
|
|
1824
2001
|
var _dataUid = 0;
|
|
1825
2002
|
function _canAcceptData(target) {
|
|
@@ -4078,7 +4255,7 @@ var _DYN_LENGTH$1 = "length";
|
|
|
4078
4255
|
var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
|
|
4079
4256
|
|
|
4080
4257
|
var _a$1;
|
|
4081
|
-
var Version = '4.3.7-nightly3.2504-
|
|
4258
|
+
var Version = '4.3.7-nightly3.2504-12';
|
|
4082
4259
|
var FullVersionString = "1DS-Web-JS-" + Version;
|
|
4083
4260
|
var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
|
|
4084
4261
|
var _fieldTypeEventPropMap = (_a$1 = {},
|
|
@@ -4508,7 +4685,7 @@ function retryPolicyGetMillisToBackoffForRetry(retriesSoFar) {
|
|
|
4508
4685
|
}
|
|
4509
4686
|
|
|
4510
4687
|
var _MAX_STRING_JOINS = 20;
|
|
4511
|
-
var RequestSizeLimitBytes =
|
|
4688
|
+
var RequestSizeLimitBytes = 3145728;
|
|
4512
4689
|
var BeaconRequestSizeLimitBytes = 65000;
|
|
4513
4690
|
var MaxRecordSize = 2000000;
|
|
4514
4691
|
var MaxBeaconRecordSize = mathMin(MaxRecordSize, BeaconRequestSizeLimitBytes);
|
|
@@ -5755,7 +5932,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
5755
5932
|
var _this = _super.call(this) || this;
|
|
5756
5933
|
_this.identifier = "PostChannel";
|
|
5757
5934
|
_this.priority = 1011;
|
|
5758
|
-
_this.version = '4.3.7-nightly3.2504-
|
|
5935
|
+
_this.version = '4.3.7-nightly3.2504-12';
|
|
5759
5936
|
var _postConfig;
|
|
5760
5937
|
var _isTeardownCalled = false;
|
|
5761
5938
|
var _flushCallbackQueue = [];
|