@microsoft/applicationinsights-offlinechannel-js 0.3.7-nightly3.2504-10 → 0.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Offline Channel, 0.3.7-nightly3.2504-10
2
+ * Application Insights JavaScript SDK - Offline Channel, 0.3.7-nightly3.2504-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -8,7 +8,7 @@
8
8
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Microsoft = global.Microsoft || {}, global.Microsoft.ApplicationInsights = global.Microsoft.ApplicationInsights || {})));
9
9
  })(this, (function (exports) { 'use strict';
10
10
 
11
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
11
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
12
12
  /*#__NO_SIDE_EFFECTS__*/
13
13
  function _pureAssign(func1, func2) {
14
14
  return func1 || func2;
@@ -27,11 +27,12 @@
27
27
  var UNDEFINED = "undefined";
28
28
  var CONSTRUCTOR = "constructor";
29
29
  var SYMBOL = "Symbol";
30
- var POLYFILL_TAG = "_polyfill";
31
30
  var LENGTH = "length";
32
31
  var NAME = "name";
33
32
  var CALL = "call";
34
33
  var TO_STRING = "toString";
34
+ var GETTER_NAME = "__lookupGetter__";
35
+ var SETTER_NAME = "__lookupSetter__";
35
36
  var ObjClass$1 = ( /*#__PURE__*/_pureAssign(Object));
36
37
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass$1, PROTOTYPE));
37
38
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -40,6 +41,8 @@
40
41
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
41
42
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
42
43
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
44
+ var POLYFILL_TAG = "_polyfill";
45
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
43
46
  function safe(func, argArray) {
44
47
  try {
45
48
  return {
@@ -62,7 +65,7 @@
62
65
  }
63
66
  /*#__NO_SIDE_EFFECTS__*/
64
67
  function isStrictUndefined(arg) {
65
- return !isDefined(arg);
68
+ return arg === UNDEF_VALUE;
66
69
  }
67
70
  /*#__NO_SIDE_EFFECTS__*/
68
71
  function isNullOrUndefined(value) {
@@ -70,7 +73,7 @@
70
73
  }
71
74
  /*#__NO_SIDE_EFFECTS__*/
72
75
  function isStrictNullOrUndefined(value) {
73
- return value === NULL_VALUE || !isDefined(value);
76
+ return value === NULL_VALUE || value === UNDEF_VALUE;
74
77
  }
75
78
  /*#__NO_SIDE_EFFECTS__*/
76
79
  function isDefined(arg) {
@@ -91,18 +94,125 @@
91
94
  function isPromiseLike(value) {
92
95
  return !!(value && value.then && isFunction(value.then));
93
96
  }
94
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass$1, "getOwnPropertyDescriptor"));
97
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
98
+ var ERROR_TYPE = "[object Error]";
99
+ /*#__NO_SIDE_EFFECTS__*/
100
+ function dumpObj(object, format) {
101
+ var propertyValueDump = EMPTY;
102
+ var objType = ObjProto[TO_STRING][CALL](object);
103
+ if (objType === ERROR_TYPE) {
104
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
105
+ }
106
+ try {
107
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
108
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
109
+ }
110
+ catch (e) {
111
+ propertyValueDump = " - " + dumpObj(e, format);
112
+ }
113
+ return objType + ": " + propertyValueDump;
114
+ }
115
+ function throwTypeError(message) {
116
+ throw new TypeError(message);
117
+ }
118
+ function _throwIfNullOrUndefined(obj) {
119
+ if (isStrictNullOrUndefined(obj)) {
120
+ throwTypeError("Cannot convert undefined or null to object");
121
+ }
122
+ }
95
123
  /*#__NO_SIDE_EFFECTS__*/
96
124
  function objHasOwnProperty(obj, prop) {
97
125
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
98
126
  }
99
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass$1, "hasOwn")), polyObjHasOwn));
127
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
128
+ /*#__NO_SIDE_EFFECTS__*/
129
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
130
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
131
+ return function (thisArg) {
132
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
133
+ if (theFunc || polyFunc) {
134
+ var theArgs = arguments;
135
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
136
+ }
137
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
138
+ };
139
+ }
140
+ /*#__NO_SIDE_EFFECTS__*/
141
+ function _unwrapProp(propName) {
142
+ return function (thisArg) {
143
+ return thisArg[propName];
144
+ };
145
+ }
146
+ function _objPropertyIsEnum(obj, propKey) {
147
+ var desc;
148
+ var fn = ObjClass$1.getOwnPropertyDescriptor;
149
+ if (!isStrictNullOrUndefined(obj) && fn) {
150
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
151
+ }
152
+ if (!desc) {
153
+ desc = safe(function () {
154
+ for (var key in obj) {
155
+ if (key === propKey) {
156
+ return { enumerable: true };
157
+ }
158
+ }
159
+ }).v;
160
+ }
161
+ return (desc && desc.enumerable) || false;
162
+ }
163
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
164
+ function _isPropertyWritable(obj, prop) {
165
+ var result = false;
166
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
167
+ var originalValue = obj[prop];
168
+ try {
169
+ obj[prop] = originalValue;
170
+ result = true;
171
+ }
172
+ catch (e) {
173
+ }
174
+ }
175
+ return result;
176
+ }
177
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
178
+ var descriptor;
179
+ _throwIfNullOrUndefined(obj);
180
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
181
+ if (isLength || objHasOwnProperty(obj, prop)) {
182
+ descriptor = {
183
+ configurable: !isLength,
184
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
185
+ };
186
+ var isData = true;
187
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
188
+ var getter = obj[GETTER_NAME](prop);
189
+ var setter = obj[SETTER_NAME](prop);
190
+ if (getter || setter) {
191
+ isData = false;
192
+ if (getter) {
193
+ descriptor.get = getter;
194
+ }
195
+ if (setter) {
196
+ descriptor.set = setter;
197
+ }
198
+ }
199
+ }
200
+ if (isData) {
201
+ descriptor.value = obj[prop];
202
+ descriptor.writable = _isPropertyWritable(obj, prop);
203
+ }
204
+ }
205
+ return descriptor;
206
+ }
207
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass$1, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
100
208
  /*#__NO_SIDE_EFFECTS__*/
101
209
  function polyObjHasOwn(obj, prop) {
210
+ _throwIfNullOrUndefined(obj);
102
211
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
103
212
  }
213
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass$1, "hasOwn")), polyObjHasOwn));
104
214
  function objForEachKey(theObject, callbackfn, thisArg) {
105
- if (theObject && isObject(theObject)) {
215
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
106
216
  for (var prop in theObject) {
107
217
  if (objHasOwn(theObject, prop)) {
108
218
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -112,6 +222,18 @@
112
222
  }
113
223
  }
114
224
  }
225
+ function arrForEach(theArray, callbackfn, thisArg) {
226
+ if (theArray) {
227
+ var len = theArray[LENGTH] >>> 0;
228
+ for (var idx = 0; idx < len; idx++) {
229
+ if (idx in theArray) {
230
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
231
+ break;
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
115
237
  var propMap = {
116
238
  e: "enumerable",
117
239
  c: "configurable",
@@ -140,6 +262,7 @@
140
262
  return prop;
141
263
  }
142
264
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass$1, "defineProperty"));
265
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass$1, "defineProperties"));
143
266
  function objDefine(target, key, propDesc) {
144
267
  return objDefineProp(target, key, _createProp(propDesc));
145
268
  }
@@ -159,45 +282,49 @@
159
282
  writable: false
160
283
  });
161
284
  }
162
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
163
- var ERROR_TYPE = "[object Error]";
164
- /*#__NO_SIDE_EFFECTS__*/
165
- function dumpObj(object, format) {
166
- var propertyValueDump = EMPTY;
167
- var objType = ObjProto[TO_STRING][CALL](object);
168
- if (objType === ERROR_TYPE) {
169
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
285
+ function polyObjIsFrozen(obj) {
286
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
287
+ return true;
170
288
  }
171
- try {
172
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
173
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
289
+ if (isFunction(obj)) {
290
+ return false;
174
291
  }
175
- catch (e) {
176
- propertyValueDump = " - " + dumpObj(e, format);
292
+ for (var prop in obj) {
293
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
294
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
295
+ return false;
296
+ }
177
297
  }
178
- return objType + ": " + propertyValueDump;
179
- }
180
- function throwTypeError(message) {
181
- throw new TypeError(message);
298
+ return true;
182
299
  }
300
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass$1, "isFrozen")), polyObjIsFrozen));
183
301
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass$1, "freeze"));
184
302
  function _doNothing(value) {
185
303
  return value;
186
304
  }
187
305
  /*#__NO_SIDE_EFFECTS__*/
188
306
  function _getProto(value) {
307
+ _throwIfNullOrUndefined(value);
189
308
  return value[__PROTO__] || NULL_VALUE;
190
309
  }
191
310
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass$1, "keys"));
192
- function objDeepFreeze(value) {
193
- if (_objFreeze) {
194
- objForEachKey(value, function (key, value) {
195
- if (isArray(value) || isObject(value)) {
196
- objDeepFreeze(value);
311
+ function _deepFreeze(val, visited) {
312
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
313
+ for (var lp = 0; lp < visited.length; lp++) {
314
+ if (visited[lp] === val) {
315
+ return val;
197
316
  }
317
+ }
318
+ visited.push(val);
319
+ objForEachKey(val, function (_key, propValue) {
320
+ _deepFreeze(propValue, visited);
198
321
  });
322
+ objFreeze(val);
199
323
  }
200
- return objFreeze(value);
324
+ return val;
325
+ }
326
+ function objDeepFreeze(value) {
327
+ return _objFreeze ? _deepFreeze(value, []) : value;
201
328
  }
202
329
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
203
330
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "getPrototypeOf")), _getProto));
@@ -251,25 +378,6 @@
251
378
  }
252
379
  return _globalCfg;
253
380
  }
254
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
255
- /*#__NO_SIDE_EFFECTS__*/
256
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
257
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
258
- return function (thisArg) {
259
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
260
- if (theFunc || polyFunc) {
261
- var theArgs = arguments;
262
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
263
- }
264
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
265
- };
266
- }
267
- /*#__NO_SIDE_EFFECTS__*/
268
- function _unwrapProp(propName) {
269
- return function (thisArg) {
270
- return thisArg[propName];
271
- };
272
- }
273
381
  var mathMin = ( /*#__PURE__*/_pureRef(MathCls, "min"));
274
382
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
275
383
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
@@ -277,9 +385,7 @@
277
385
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
278
386
  /*#__NO_SIDE_EFFECTS__*/
279
387
  function polyStrSubstr(value, start, length) {
280
- if (isNullOrUndefined(value)) {
281
- throwTypeError("Invalid " + dumpObj(value));
282
- }
388
+ _throwIfNullOrUndefined(value);
283
389
  if (length < 0) {
284
390
  return EMPTY;
285
391
  }
@@ -292,8 +398,109 @@
292
398
  }
293
399
  return strSlice(value, start, start + length);
294
400
  }
401
+ function _tagAsPolyfill(target, polyfillTypeName) {
402
+ if (target) {
403
+ safe(function () {
404
+ target[POLYFILL_TAG] = true;
405
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
406
+ });
407
+ safe(objDefine, [target, POLYFILL_TAG, {
408
+ v: true,
409
+ w: false,
410
+ e: false
411
+ }]);
412
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
413
+ v: polyfillTypeName,
414
+ w: false,
415
+ e: false
416
+ }]);
417
+ }
418
+ return target;
419
+ }
420
+ /*#__NO_SIDE_EFFECTS__*/
421
+ function createCachedValue(value) {
422
+ return objDefineProp({
423
+ toJSON: function () { return value; }
424
+ }, "v", { value: value });
425
+ }
426
+ var _isProtoArray;
427
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass$1, "setPrototypeOf")), _polyObjSetPrototypeOf));
428
+ function _polyObjSetPrototypeOf(obj, proto) {
429
+ var _a;
430
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
431
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
432
+ return obj;
433
+ }
434
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "create")), polyObjCreate));
435
+ /*#__NO_SIDE_EFFECTS__*/
436
+ function polyObjCreate(obj, properties) {
437
+ var newObj;
438
+ function tempFunc() { }
439
+ if (!isStrictNullOrUndefined(obj)) {
440
+ var type = typeof obj;
441
+ if (type !== OBJECT && type !== FUNCTION) {
442
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
443
+ }
444
+ tempFunc[PROTOTYPE] = obj;
445
+ safe(function () {
446
+ tempFunc[__PROTO__] = obj;
447
+ });
448
+ newObj = new tempFunc();
449
+ }
450
+ else {
451
+ newObj = {};
452
+ }
453
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
454
+ if (properties) {
455
+ safe(objDefineProperties, [newObj, properties]);
456
+ }
457
+ return newObj;
458
+ }
459
+ /*#__NO_SIDE_EFFECTS__*/
460
+ function utcNow() {
461
+ return (Date.now || polyUtcNow)();
462
+ }
463
+ /*#__NO_SIDE_EFFECTS__*/
464
+ function polyUtcNow() {
465
+ return new Date().getTime();
466
+ }
467
+ var _globalLazyTestHooks;
468
+ function _initTestHooks() {
469
+ _globalLazyTestHooks = _getGlobalConfig();
470
+ }
471
+ /*#__NO_SIDE_EFFECTS__*/
472
+ function getLazy(cb) {
473
+ var lazyValue = {};
474
+ !_globalLazyTestHooks && _initTestHooks();
475
+ lazyValue.b = _globalLazyTestHooks.lzy;
476
+ objDefineProp(lazyValue, "v", {
477
+ configurable: true,
478
+ get: function () {
479
+ var result = cb();
480
+ if (!_globalLazyTestHooks.lzy) {
481
+ objDefineProp(lazyValue, "v", {
482
+ value: result
483
+ });
484
+ }
485
+ lazyValue.b = _globalLazyTestHooks.lzy;
486
+ return result;
487
+ }
488
+ });
489
+ return lazyValue;
490
+ }
491
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
492
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
493
+ var value = (utcNow().toString(36).slice(2));
494
+ while (value.length < 16) {
495
+ value += mathRandom().toString(36).slice(2);
496
+ }
497
+ value = value.substring(0, 16);
498
+ return value;
499
+ }));
295
500
  var UNIQUE_REGISTRY_ID = "_urid";
501
+ var POLY_SYM = "$nw21sym";
296
502
  var _polySymbols;
503
+ var _polyId = 0;
297
504
  /*#__NO_SIDE_EFFECTS__*/
298
505
  function _globalSymbolRegistry() {
299
506
  if (!_polySymbols) {
@@ -305,12 +512,35 @@
305
512
  var _wellKnownSymbolCache;
306
513
  /*#__NO_SIDE_EFFECTS__*/
307
514
  function polyNewSymbol(description) {
308
- var theSymbol = {
309
- description: asString(description),
310
- toString: function () { return SYMBOL + "(" + description + ")"; }
311
- };
312
- theSymbol[POLYFILL_TAG] = true;
313
- return theSymbol;
515
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
516
+ var symString = SYMBOL + "(" + description + ")";
517
+ var theSymbol = objCreate(null);
518
+ objDefine(theSymbol, "description", {
519
+ v: asString(description),
520
+ e: false,
521
+ w: false
522
+ });
523
+ objDefine(theSymbol, TO_STRING, {
524
+ v: function () { return symString + POLY_SYM + uniqueId; },
525
+ e: false,
526
+ w: false
527
+ });
528
+ objDefine(theSymbol, "valueOf", {
529
+ v: function () { return theSymbol; },
530
+ e: false,
531
+ w: false
532
+ });
533
+ objDefine(theSymbol, "v", {
534
+ v: symString,
535
+ e: false,
536
+ w: false
537
+ });
538
+ objDefine(theSymbol, "_uid", {
539
+ v: uniqueId,
540
+ e: false,
541
+ w: false
542
+ });
543
+ return _tagAsPolyfill(theSymbol, "symbol");
314
544
  }
315
545
  /*#__NO_SIDE_EFFECTS__*/
316
546
  function polySymbolFor(key) {
@@ -334,16 +564,6 @@
334
564
  }
335
565
  return result;
336
566
  }
337
- var _globalLazyTestHooks;
338
- function _initTestHooks() {
339
- _globalLazyTestHooks = _getGlobalConfig();
340
- }
341
- /*#__NO_SIDE_EFFECTS__*/
342
- function createCachedValue(value) {
343
- return objDefineProp({
344
- toJSON: function () { return value; }
345
- }, "v", { value: value });
346
- }
347
567
  var WINDOW = "window";
348
568
  var _cachedGlobal;
349
569
  function _getGlobalInstFn(getFn, theArgs) {
@@ -505,46 +725,10 @@
505
725
  }
506
726
  return target;
507
727
  }
508
- function arrForEach(theArray, callbackfn, thisArg) {
509
- if (theArray) {
510
- var len = theArray[LENGTH] >>> 0;
511
- for (var idx = 0; idx < len; idx++) {
512
- if (idx in theArray) {
513
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
514
- break;
515
- }
516
- }
517
- }
518
- }
519
- }
520
728
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
521
729
  function arrSlice(theArray, start, end) {
522
730
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
523
731
  }
524
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "create")), polyObjCreate));
525
- /*#__NO_SIDE_EFFECTS__*/
526
- function polyObjCreate(obj) {
527
- if (!obj) {
528
- return {};
529
- }
530
- var type = typeof obj;
531
- if (type !== OBJECT && type !== FUNCTION) {
532
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
533
- }
534
- function tempFunc() { }
535
- tempFunc[PROTOTYPE] = obj;
536
- return new tempFunc();
537
- }
538
- var _isProtoArray;
539
- function objSetPrototypeOf(obj, proto) {
540
- var fn = ObjClass$1["setPrototypeOf"] ||
541
- function (d, b) {
542
- var _a;
543
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
544
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
545
- };
546
- return fn(obj, proto);
547
- }
548
732
  /*#__NO_SIDE_EFFECTS__*/
549
733
  function _createCustomError(name, d, b) {
550
734
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -586,19 +770,9 @@
586
770
  }, theBaseClass);
587
771
  }
588
772
  /*#__NO_SIDE_EFFECTS__*/
589
- function utcNow() {
590
- return (Date.now || polyUtcNow)();
591
- }
592
- /*#__NO_SIDE_EFFECTS__*/
593
- function polyUtcNow() {
594
- return new Date().getTime();
595
- }
596
- /*#__NO_SIDE_EFFECTS__*/
597
773
  function _createTrimFn(exp) {
598
774
  return function _doTrim(value) {
599
- if (isNullOrUndefined(value)) {
600
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
601
- }
775
+ _throwIfNullOrUndefined(value);
602
776
  if (value && value.replace) {
603
777
  value = value.replace(exp, EMPTY);
604
778
  }
@@ -1987,7 +2161,7 @@
1987
2161
  return result;
1988
2162
  }
1989
2163
 
1990
- var version$1 = '3.3.7-nightly3.2504-10';
2164
+ var version$1 = '3.3.7-nightly3.2504-12';
1991
2165
  var instanceName = "." + newId(6);
1992
2166
  var _dataUid = 0;
1993
2167
  function _canAcceptData(target) {
@@ -6314,7 +6488,7 @@
6314
6488
  return Sender;
6315
6489
  }());
6316
6490
 
6317
- var version = '0.3.7-nightly3.2504-10';
6491
+ var version = '0.3.7-nightly3.2504-12';
6318
6492
  var DefaultOfflineIdentifier = "OfflineChannel";
6319
6493
  var DefaultBatchInterval = 15000;
6320
6494
  var DefaultInMemoMaxTime = 15000;