azure-maps-control 3.1.0 → 3.1.2
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/dist/atlas-core-bare-snr-min.js +1 -1
- package/dist/atlas-core-bare-snr.js +29 -8
- package/dist/atlas-core-bare.js +29 -8
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core-snr.js +29 -8
- package/dist/atlas-core.js +29 -8
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas-esm.js +493 -557
- package/dist/atlas-esm.min.js +1 -1
- package/dist/atlas.css +3 -2
- package/dist/atlas.js +493 -557
- package/dist/atlas.min.css +1 -1
- package/dist/atlas.min.js +4 -4
- package/package.json +5 -5
- package/thirdpartynotices.txt +0 -0
- package/typings/index.d.ts +8 -3
package/dist/atlas-esm.js
CHANGED
|
@@ -51090,7 +51090,7 @@ var Url = /** @class */ (function () {
|
|
|
51090
51090
|
return Url;
|
|
51091
51091
|
}());
|
|
51092
51092
|
|
|
51093
|
-
var version$3 = "3.1.
|
|
51093
|
+
var version$3 = "3.1.2";
|
|
51094
51094
|
|
|
51095
51095
|
/**
|
|
51096
51096
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -64461,6 +64461,12 @@ var PolygonLayerOptions$1 = /** @class */ (function (_super) {
|
|
|
64461
64461
|
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
|
|
64462
64462
|
*/
|
|
64463
64463
|
_this.fillPattern = undefined;
|
|
64464
|
+
/**
|
|
64465
|
+
* Whether or not the fill should be antialiased.
|
|
64466
|
+
* Default `true`.
|
|
64467
|
+
* @default true
|
|
64468
|
+
*/
|
|
64469
|
+
_this.fillAntialias = true;
|
|
64464
64470
|
return _this;
|
|
64465
64471
|
}
|
|
64466
64472
|
return PolygonLayerOptions;
|
|
@@ -64535,6 +64541,7 @@ var PolygonLayer = /** @class */ (function (_super) {
|
|
|
64535
64541
|
this._updatePaintProperty("fill-color", newOptions.fillColor, this.options.fillColor);
|
|
64536
64542
|
this._updatePaintProperty("fill-opacity", newOptions.fillOpacity, this.options.fillOpacity);
|
|
64537
64543
|
this._updatePaintProperty("fill-pattern", newOptions.fillPattern, this.options.fillPattern);
|
|
64544
|
+
this._updatePaintProperty("fill-antialias", newOptions.fillAntialias, this.options.fillAntialias);
|
|
64538
64545
|
}
|
|
64539
64546
|
this.options = newOptions;
|
|
64540
64547
|
};
|
|
@@ -64552,7 +64559,8 @@ var PolygonLayer = /** @class */ (function (_super) {
|
|
|
64552
64559
|
visibility: this.options.visible ? "visible" : "none"
|
|
64553
64560
|
},
|
|
64554
64561
|
paint: {
|
|
64555
|
-
"fill-opacity": this.options.fillOpacity
|
|
64562
|
+
"fill-opacity": this.options.fillOpacity,
|
|
64563
|
+
"fill-antialias": this.options.fillAntialias,
|
|
64556
64564
|
},
|
|
64557
64565
|
minzoom: this.options.minZoom,
|
|
64558
64566
|
maxzoom: this.options.maxZoom
|
|
@@ -68170,12 +68178,12 @@ var CONSTRUCTOR = "constructor";
|
|
|
68170
68178
|
var SYMBOL = "Symbol";
|
|
68171
68179
|
var POLYFILL_TAG = "_polyfill";
|
|
68172
68180
|
var INDEX_OF = "indexOf";
|
|
68173
|
-
var LAST_INDEX_OF = "lastIndexOf";
|
|
68174
68181
|
var LENGTH = "length";
|
|
68175
68182
|
var DONE = "done";
|
|
68176
68183
|
var VALUE = "value";
|
|
68177
68184
|
var NAME = "name";
|
|
68178
68185
|
var SLICE = "slice";
|
|
68186
|
+
var CALL = "call";
|
|
68179
68187
|
/**
|
|
68180
68188
|
* @ignore
|
|
68181
68189
|
*/
|
|
@@ -68259,6 +68267,7 @@ var PRIMITIVE_TYPES = [STRING, NUMBER, BOOLEAN, UNDEFINED, "symbol", "bigint"];
|
|
|
68259
68267
|
* @param theType - The type to match against the `typeof value`
|
|
68260
68268
|
* @returns A function which takes a single argument and returns a boolean
|
|
68261
68269
|
*/
|
|
68270
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68262
68271
|
function _createIs(theType) {
|
|
68263
68272
|
return function (value) {
|
|
68264
68273
|
return typeof value === theType;
|
|
@@ -68272,6 +68281,7 @@ function _createIs(theType) {
|
|
|
68272
68281
|
* @param - The object name to match for the `objToString(value)`
|
|
68273
68282
|
* @returns A function which takes a single argument and returns a boolean
|
|
68274
68283
|
*/
|
|
68284
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68275
68285
|
function _createObjIs(theName) {
|
|
68276
68286
|
var theType = "[object " + theName + "]";
|
|
68277
68287
|
return function (value) {
|
|
@@ -68301,8 +68311,9 @@ function _createObjIs(theName) {
|
|
|
68301
68311
|
* objToString(null); // [object Null]
|
|
68302
68312
|
* ```
|
|
68303
68313
|
*/
|
|
68314
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68304
68315
|
function objToString(value) {
|
|
68305
|
-
return ObjProto$1.toString
|
|
68316
|
+
return ObjProto$1.toString[CALL](value);
|
|
68306
68317
|
}
|
|
68307
68318
|
/**
|
|
68308
68319
|
* Checks if the provided value is undefined or contains the string value "undefined",
|
|
@@ -68353,6 +68364,7 @@ function objToString(value) {
|
|
|
68353
68364
|
* isUndefined(polyObjCreate(null)); // false
|
|
68354
68365
|
* ```
|
|
68355
68366
|
*/
|
|
68367
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68356
68368
|
function isUndefined(value) {
|
|
68357
68369
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
68358
68370
|
}
|
|
@@ -68380,6 +68392,7 @@ function isUndefined(value) {
|
|
|
68380
68392
|
* isNullOrUndefined(false); // false
|
|
68381
68393
|
* ```
|
|
68382
68394
|
*/
|
|
68395
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68383
68396
|
function isNullOrUndefined(value) {
|
|
68384
68397
|
return value === NULL_VALUE || isUndefined(value);
|
|
68385
68398
|
}
|
|
@@ -68408,6 +68421,7 @@ function isNullOrUndefined(value) {
|
|
|
68408
68421
|
* isStrictNullOrUndefined(false); // false
|
|
68409
68422
|
* ```
|
|
68410
68423
|
*/
|
|
68424
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68411
68425
|
function isStrictNullOrUndefined(value) {
|
|
68412
68426
|
return value === NULL_VALUE || !isDefined(value);
|
|
68413
68427
|
}
|
|
@@ -68435,6 +68449,7 @@ function isStrictNullOrUndefined(value) {
|
|
|
68435
68449
|
* isDefined(false); // true
|
|
68436
68450
|
* ```
|
|
68437
68451
|
*/
|
|
68452
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68438
68453
|
function isDefined(arg) {
|
|
68439
68454
|
return !!arg || arg !== UNDEF_VALUE;
|
|
68440
68455
|
}
|
|
@@ -68485,9 +68500,10 @@ function isDefined(arg) {
|
|
|
68485
68500
|
* isPrimitiveType("bigint"); // true
|
|
68486
68501
|
* ```
|
|
68487
68502
|
*/
|
|
68488
|
-
|
|
68503
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68504
|
+
function isPrimitiveType(theType) {
|
|
68489
68505
|
return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1;
|
|
68490
|
-
}
|
|
68506
|
+
}
|
|
68491
68507
|
/**
|
|
68492
68508
|
* Checks to see if the past value is a string value
|
|
68493
68509
|
* @group Type Identity
|
|
@@ -68506,7 +68522,7 @@ var isPrimitiveType = function (theType) {
|
|
|
68506
68522
|
* isString(0); // false
|
|
68507
68523
|
* ```
|
|
68508
68524
|
*/
|
|
68509
|
-
var isString = _createIs(STRING);
|
|
68525
|
+
var isString = ( /*#__PURE__*/_createIs(STRING));
|
|
68510
68526
|
/**
|
|
68511
68527
|
* Checks to see if the past value is a function value
|
|
68512
68528
|
* @group Type Identity
|
|
@@ -68529,7 +68545,7 @@ var isString = _createIs(STRING);
|
|
|
68529
68545
|
* isFunction(new Array(1)); // false
|
|
68530
68546
|
* ```
|
|
68531
68547
|
*/
|
|
68532
|
-
var isFunction = _createIs(FUNCTION);
|
|
68548
|
+
var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
|
|
68533
68549
|
/**
|
|
68534
68550
|
* Checks to see if the past value is an object value
|
|
68535
68551
|
* @group Type Identity
|
|
@@ -68538,6 +68554,7 @@ var isFunction = _createIs(FUNCTION);
|
|
|
68538
68554
|
* @param value - The value to check
|
|
68539
68555
|
* @returns
|
|
68540
68556
|
*/
|
|
68557
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68541
68558
|
function isObject(value) {
|
|
68542
68559
|
if (!value && isNullOrUndefined(value)) {
|
|
68543
68560
|
return false;
|
|
@@ -68581,21 +68598,21 @@ var isArray = ArrCls.isArray;
|
|
|
68581
68598
|
* }
|
|
68582
68599
|
* ```
|
|
68583
68600
|
*/
|
|
68584
|
-
var isDate = _createObjIs("Date");
|
|
68601
|
+
var isDate = ( /*#__PURE__*/_createObjIs("Date"));
|
|
68585
68602
|
/**
|
|
68586
68603
|
* Checks if the type of value is a number.
|
|
68587
68604
|
* @group Type Identity
|
|
68588
68605
|
* @param {any} value - Value to be checked.
|
|
68589
68606
|
* @return {boolean} True if the value is a number, false otherwise.
|
|
68590
68607
|
*/
|
|
68591
|
-
var isNumber = _createIs(NUMBER);
|
|
68608
|
+
var isNumber = ( /*#__PURE__*/_createIs(NUMBER));
|
|
68592
68609
|
/**
|
|
68593
68610
|
* Checks if the type of value is a boolean.
|
|
68594
68611
|
* @group Type Identity
|
|
68595
68612
|
* @param {any} value - Value to be checked.
|
|
68596
68613
|
* @return {boolean} True if the value is a boolean, false otherwise.
|
|
68597
68614
|
*/
|
|
68598
|
-
var isBoolean = _createIs(BOOLEAN);
|
|
68615
|
+
var isBoolean = ( /*#__PURE__*/_createIs(BOOLEAN));
|
|
68599
68616
|
/**
|
|
68600
68617
|
* Checks if the type of value is a Error object.
|
|
68601
68618
|
* @group Type Identity
|
|
@@ -68603,15 +68620,16 @@ var isBoolean = _createIs(BOOLEAN);
|
|
|
68603
68620
|
* @param {any} value - Value to be checked.
|
|
68604
68621
|
* @return {boolean} True if the value is a Error, false otherwise.
|
|
68605
68622
|
*/
|
|
68606
|
-
var isError = _createObjIs("Error");
|
|
68623
|
+
var isError = ( /*#__PURE__*/_createObjIs("Error"));
|
|
68607
68624
|
/**
|
|
68608
68625
|
* Checks if the type of value is a PromiseLike instance (contains a then function).
|
|
68609
68626
|
* @group Type Identity
|
|
68610
68627
|
* @param {any} value - Value to be checked.
|
|
68611
68628
|
* @return {boolean} True if the value is a PromiseLike, false otherwise.
|
|
68612
68629
|
*/
|
|
68630
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68613
68631
|
function isPromiseLike(value) {
|
|
68614
|
-
return !!value && isFunction(value.then);
|
|
68632
|
+
return !!(value && value.then && isFunction(value.then));
|
|
68615
68633
|
}
|
|
68616
68634
|
/**
|
|
68617
68635
|
* Checks if the type of value evaluates to true value, handling some special
|
|
@@ -68620,6 +68638,7 @@ function isPromiseLike(value) {
|
|
|
68620
68638
|
* @param {any} value - Value to be checked.
|
|
68621
68639
|
* @return {boolean} True if the value is not truthy, false otherwise.
|
|
68622
68640
|
*/
|
|
68641
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68623
68642
|
function isTruthy(value) {
|
|
68624
68643
|
// Objects created with no prototype (Object.create(null)) cannot be converted to primitives
|
|
68625
68644
|
// Which causes this code to throw, additionally just using !! also fails for Boolean objects
|
|
@@ -68715,8 +68734,9 @@ var objGetOwnPropertyDescriptor = ObjClass$1.getOwnPropertyDescriptor;
|
|
|
68715
68734
|
* objHasOwnProperty(example, 'prop'); // true - own property exists with value of undefined
|
|
68716
68735
|
* ```
|
|
68717
68736
|
*/
|
|
68737
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68718
68738
|
function objHasOwnProperty(obj, prop) {
|
|
68719
|
-
return obj && ObjProto$1.hasOwnProperty
|
|
68739
|
+
return obj && ObjProto$1.hasOwnProperty[CALL](obj, prop);
|
|
68720
68740
|
}
|
|
68721
68741
|
|
|
68722
68742
|
/*
|
|
@@ -68800,6 +68820,7 @@ var objHasOwn = ObjClass$1["hasOwn"] || polyObjHasOwn;
|
|
|
68800
68820
|
* polyObjHasOwn(example, 'prop'); // true - own property exists with value of undefined
|
|
68801
68821
|
* ```
|
|
68802
68822
|
*/
|
|
68823
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68803
68824
|
function polyObjHasOwn(obj, prop) {
|
|
68804
68825
|
return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
|
|
68805
68826
|
}
|
|
@@ -68838,7 +68859,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
68838
68859
|
if (theObject && isObject(theObject)) {
|
|
68839
68860
|
for (var prop in theObject) {
|
|
68840
68861
|
if (objHasOwn(theObject, prop)) {
|
|
68841
|
-
if (callbackfn
|
|
68862
|
+
if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
|
|
68842
68863
|
break;
|
|
68843
68864
|
}
|
|
68844
68865
|
}
|
|
@@ -68863,6 +68884,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
|
|
|
68863
68884
|
* @param completeFn - The function to call to complete the map (used to freeze the instance)
|
|
68864
68885
|
* @returns
|
|
68865
68886
|
*/
|
|
68887
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68866
68888
|
function _createKeyValueMap(values, keyType, valueType, completeFn) {
|
|
68867
68889
|
var theMap = {};
|
|
68868
68890
|
objForEachKey(values, function (key, value) {
|
|
@@ -68904,8 +68926,13 @@ function throwTypeError(message) {
|
|
|
68904
68926
|
* Licensed under the MIT license.
|
|
68905
68927
|
*/
|
|
68906
68928
|
var _objFreeze = ObjClass$1["freeze"];
|
|
68907
|
-
|
|
68908
|
-
|
|
68929
|
+
function _doNothing(value) {
|
|
68930
|
+
return value;
|
|
68931
|
+
}
|
|
68932
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68933
|
+
function _getProto(value) {
|
|
68934
|
+
return value[__PROTO__] || NULL_VALUE;
|
|
68935
|
+
}
|
|
68909
68936
|
/**
|
|
68910
68937
|
* The `objAssign()` method copies all enumerable own properties from one or more source objects
|
|
68911
68938
|
* to a target object. It returns the modified target object.
|
|
@@ -68978,6 +69005,7 @@ var objAssign = ObjClass$1["assign"];
|
|
|
68978
69005
|
* console.log(objKeys(myObj)); // console: ['foo']
|
|
68979
69006
|
* ```
|
|
68980
69007
|
*/
|
|
69008
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
68981
69009
|
function objKeys(value) {
|
|
68982
69010
|
if (!isObject(value) || value === NULL_VALUE) {
|
|
68983
69011
|
throwTypeError("objKeys called on non-object");
|
|
@@ -69070,6 +69098,7 @@ var objGetPrototypeOf = ObjClass$1["getPrototypeOf"] || _getProto;
|
|
|
69070
69098
|
* @typeParam E - Identifies the const enum type being mapped
|
|
69071
69099
|
* @returns A new frozen (immutable) object which looks and acts like a TypeScript Enum class.
|
|
69072
69100
|
*/
|
|
69101
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69073
69102
|
function createEnum(values) {
|
|
69074
69103
|
return _createKeyValueMap(values, 1 /* eMapValues.Value */, 0 /* eMapValues.Key */, objDeepFreeze);
|
|
69075
69104
|
}
|
|
@@ -69107,6 +69136,7 @@ function createEnum(values) {
|
|
|
69107
69136
|
* @typeParam E - Identifies the const enum type being mapped
|
|
69108
69137
|
* @returns A new frozen (immutable) object which contains a property for each key and value that returns the value.
|
|
69109
69138
|
*/
|
|
69139
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69110
69140
|
function createEnumKeyMap(values) {
|
|
69111
69141
|
return _createKeyValueMap(values, 0 /* eMapValues.Key */, 0 /* eMapValues.Key */, objDeepFreeze);
|
|
69112
69142
|
}
|
|
@@ -69142,6 +69172,7 @@ function createEnumKeyMap(values) {
|
|
|
69142
69172
|
* @typeParam V - Identifies the type of the mapping `string`; `number`; etc is not restructed to primitive types.
|
|
69143
69173
|
* @returns A new frozen (immutable) object which contains a property for each key and value that returns the defiend mapped value.
|
|
69144
69174
|
*/
|
|
69175
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69145
69176
|
function createSimpleMap(values) {
|
|
69146
69177
|
var mapClass = {};
|
|
69147
69178
|
objForEachKey(values, function (key, value) {
|
|
@@ -69222,6 +69253,7 @@ function createSimpleMap(values) {
|
|
|
69222
69253
|
* @typeParam T - Identifies the return type that is being created via the mapping.
|
|
69223
69254
|
* @returns A new frozen (immutable) object which contains a property for each key and value that returns the defined mapped value.
|
|
69224
69255
|
*/
|
|
69256
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69225
69257
|
function createTypeMap(values) {
|
|
69226
69258
|
return createSimpleMap(values);
|
|
69227
69259
|
}
|
|
@@ -69237,7 +69269,7 @@ function createTypeMap(values) {
|
|
|
69237
69269
|
* @ignore
|
|
69238
69270
|
* @internal
|
|
69239
69271
|
*/
|
|
69240
|
-
var _wellKnownSymbolMap = createEnumKeyMap({
|
|
69272
|
+
var _wellKnownSymbolMap = /*#__PURE__*/ createEnumKeyMap({
|
|
69241
69273
|
asyncIterator: 0 /* WellKnownSymbols.asyncIterator */,
|
|
69242
69274
|
hasInstance: 1 /* WellKnownSymbols.hasInstance */,
|
|
69243
69275
|
isConcatSpreadable: 2 /* WellKnownSymbols.isConcatSpreadable */,
|
|
@@ -69296,6 +69328,7 @@ var _globalCfg;
|
|
|
69296
69328
|
* Helper to get the current global value
|
|
69297
69329
|
* @returns
|
|
69298
69330
|
*/
|
|
69331
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69299
69332
|
function _getGlobalValue() {
|
|
69300
69333
|
var result;
|
|
69301
69334
|
if (typeof globalThis !== UNDEFINED) {
|
|
@@ -69319,6 +69352,7 @@ function _getGlobalValue() {
|
|
|
69319
69352
|
* multiple modules. Primarily used for poly symbol and test hooks.
|
|
69320
69353
|
* @returns The globally registered value.
|
|
69321
69354
|
*/
|
|
69355
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69322
69356
|
function _getGlobalConfig() {
|
|
69323
69357
|
if (!_globalCfg) {
|
|
69324
69358
|
var gbl = _getGlobalValue() || {};
|
|
@@ -69344,6 +69378,7 @@ function _getGlobalConfig() {
|
|
|
69344
69378
|
* - 'number' - The number of spaces to format with
|
|
69345
69379
|
* - `false` (or not Truthy) - Do not format
|
|
69346
69380
|
*/
|
|
69381
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69347
69382
|
function dumpObj(object, format) {
|
|
69348
69383
|
var propertyValueDump = EMPTY;
|
|
69349
69384
|
if (isError(object)) {
|
|
@@ -69368,10 +69403,10 @@ function dumpObj(object, format) {
|
|
|
69368
69403
|
* Copyright (c) 2022 Nevware21
|
|
69369
69404
|
* Licensed under the MIT license.
|
|
69370
69405
|
*/
|
|
69371
|
-
var
|
|
69372
|
-
|
|
69406
|
+
var _slice;
|
|
69407
|
+
function _throwMissingFunction(funcName, thisArg) {
|
|
69373
69408
|
throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
|
|
69374
|
-
}
|
|
69409
|
+
}
|
|
69375
69410
|
/**
|
|
69376
69411
|
* @internal
|
|
69377
69412
|
* @ignore
|
|
@@ -69382,11 +69417,13 @@ var _throwMissingFunction = function (funcName, thisArg) {
|
|
|
69382
69417
|
* @param funcName - The function name to call on the first argument passed to the wrapped function
|
|
69383
69418
|
* @returns A function which will call the funcName against the first passed argument and pass on the remaining arguments
|
|
69384
69419
|
*/
|
|
69385
|
-
|
|
69420
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69421
|
+
function _unwrapInstFunction(funcName) {
|
|
69422
|
+
_slice = _slice || ArrProto[SLICE];
|
|
69386
69423
|
return function (thisArg) {
|
|
69387
|
-
return thisArg[funcName].apply(thisArg,
|
|
69424
|
+
return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
|
|
69388
69425
|
};
|
|
69389
|
-
}
|
|
69426
|
+
}
|
|
69390
69427
|
/**
|
|
69391
69428
|
* @internal
|
|
69392
69429
|
* @ignore
|
|
@@ -69395,16 +69432,18 @@ var _unwrapInstFunction = function (funcName) {
|
|
|
69395
69432
|
* @param clsProto - The Class or class prototype to fallback to if the instance doesn't have the function.
|
|
69396
69433
|
* @returns A function which will call the funcName against the first passed argument and pass on the remaining arguments
|
|
69397
69434
|
*/
|
|
69398
|
-
|
|
69435
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69436
|
+
function _unwrapFunction(funcName, clsProto) {
|
|
69437
|
+
_slice = _slice || ArrProto[SLICE];
|
|
69399
69438
|
var clsFn = clsProto && clsProto[funcName];
|
|
69400
69439
|
return function (thisArg) {
|
|
69401
69440
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
69402
69441
|
if (theFunc) {
|
|
69403
|
-
return theFunc.apply(thisArg,
|
|
69442
|
+
return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
|
|
69404
69443
|
}
|
|
69405
69444
|
_throwMissingFunction(funcName, thisArg);
|
|
69406
69445
|
};
|
|
69407
|
-
}
|
|
69446
|
+
}
|
|
69408
69447
|
/**
|
|
69409
69448
|
* @internal
|
|
69410
69449
|
* @ignore
|
|
@@ -69414,17 +69453,19 @@ var _unwrapFunction = function (funcName, clsProto) {
|
|
|
69414
69453
|
* @param polyFunc - The function to call if not available on the thisArg, act like the polyfill
|
|
69415
69454
|
* @returns A function which will call the funcName against the first passed argument and pass on the remaining arguments
|
|
69416
69455
|
*/
|
|
69417
|
-
|
|
69456
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69457
|
+
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
69458
|
+
_slice = _slice || ArrProto[SLICE];
|
|
69418
69459
|
var clsFn = clsProto && clsProto[funcName];
|
|
69419
69460
|
return function (thisArg) {
|
|
69420
69461
|
var theFunc = (thisArg && thisArg[funcName]) || clsFn;
|
|
69421
69462
|
if (theFunc || polyFunc) {
|
|
69422
69463
|
var theArgs = arguments;
|
|
69423
|
-
return (theFunc || polyFunc).apply(thisArg, theFunc ?
|
|
69464
|
+
return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
|
|
69424
69465
|
}
|
|
69425
69466
|
_throwMissingFunction(funcName, thisArg);
|
|
69426
69467
|
};
|
|
69427
|
-
}
|
|
69468
|
+
}
|
|
69428
69469
|
/**
|
|
69429
69470
|
* @internal
|
|
69430
69471
|
* @ignore
|
|
@@ -69435,6 +69476,7 @@ var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
|
|
|
69435
69476
|
* @param propName - The property name
|
|
69436
69477
|
* @returns The value of the property
|
|
69437
69478
|
*/
|
|
69479
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69438
69480
|
function _unwrapProp(propName) {
|
|
69439
69481
|
return function (thisArg) {
|
|
69440
69482
|
return thisArg[propName];
|
|
@@ -69506,7 +69548,7 @@ var mathMax = MathCls.max;
|
|
|
69506
69548
|
* returns "". (E.g `strSlice("test", 2, -10)`, strSlice("test", -1, -2)` or `strSlice("test", 3, 2)`).
|
|
69507
69549
|
* @returns A new string containing the extracted section of the string.
|
|
69508
69550
|
*/
|
|
69509
|
-
var strSlice = _unwrapFunction(SLICE, StrProto);
|
|
69551
|
+
var strSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, StrProto));
|
|
69510
69552
|
|
|
69511
69553
|
/*
|
|
69512
69554
|
* @nevware21/ts-utils
|
|
@@ -69557,7 +69599,7 @@ var strSlice = _unwrapFunction(SLICE, StrProto);
|
|
|
69557
69599
|
* console.log(strSubstring(anyString, 0, 10));
|
|
69558
69600
|
* ```
|
|
69559
69601
|
*/
|
|
69560
|
-
var strSubstring = _unwrapFunction("substring", StrProto);
|
|
69602
|
+
var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
|
|
69561
69603
|
/**
|
|
69562
69604
|
* The strSubstr() method returns a portion of the string, starting at the specified index and extending for a given
|
|
69563
69605
|
* number of characters afterwards.
|
|
@@ -69569,7 +69611,7 @@ var strSubstring = _unwrapFunction("substring", StrProto);
|
|
|
69569
69611
|
* @param length - The number of characters to extract.
|
|
69570
69612
|
* @returns A new string containing the specified part of the given string.
|
|
69571
69613
|
*/
|
|
69572
|
-
var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
|
|
69614
|
+
var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
|
|
69573
69615
|
/**
|
|
69574
69616
|
* The polyStrSubstr() method returns a portion of the string, starting at the specified index and extending for a given
|
|
69575
69617
|
* number of characters afterwards.
|
|
@@ -69582,6 +69624,7 @@ var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
|
|
|
69582
69624
|
* @param length - The number of characters to extract.
|
|
69583
69625
|
* @returns A new string containing the specified part of the given string.
|
|
69584
69626
|
*/
|
|
69627
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69585
69628
|
function polyStrSubstr(value, start, length) {
|
|
69586
69629
|
if (isNullOrUndefined(value)) {
|
|
69587
69630
|
throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
|
|
@@ -69623,6 +69666,7 @@ function polyStrSubstr(value, start, length) {
|
|
|
69623
69666
|
* strLeft("Nevware21", 21); // "Nevware21"
|
|
69624
69667
|
* ```
|
|
69625
69668
|
*/
|
|
69669
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69626
69670
|
function strLeft(value, count) {
|
|
69627
69671
|
return strSubstring(value, 0, count);
|
|
69628
69672
|
}
|
|
@@ -69636,6 +69680,7 @@ function strLeft(value, count) {
|
|
|
69636
69680
|
*/
|
|
69637
69681
|
var UNIQUE_REGISTRY_ID = "_urid";
|
|
69638
69682
|
var _polySymbols;
|
|
69683
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69639
69684
|
function _globalSymbolRegistry() {
|
|
69640
69685
|
if (!_polySymbols) {
|
|
69641
69686
|
var gblCfg = _getGlobalConfig();
|
|
@@ -69643,7 +69688,7 @@ function _globalSymbolRegistry() {
|
|
|
69643
69688
|
}
|
|
69644
69689
|
return _polySymbols;
|
|
69645
69690
|
}
|
|
69646
|
-
var _wellKnownSymbolCache
|
|
69691
|
+
var _wellKnownSymbolCache;
|
|
69647
69692
|
/**
|
|
69648
69693
|
* Returns a new (polyfill) Symbol object for the provided description that's guaranteed to be unique.
|
|
69649
69694
|
* Symbols are often used to add unique property keys to an object that won't collide with keys any
|
|
@@ -69655,6 +69700,7 @@ var _wellKnownSymbolCache = {};
|
|
|
69655
69700
|
* @param description - The description of the symbol
|
|
69656
69701
|
* @returns A new polyfill version of a Symbol object
|
|
69657
69702
|
*/
|
|
69703
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69658
69704
|
function polyNewSymbol(description) {
|
|
69659
69705
|
var theSymbol = {
|
|
69660
69706
|
description: asString(description),
|
|
@@ -69671,6 +69717,7 @@ function polyNewSymbol(description) {
|
|
|
69671
69717
|
* @group Symbol
|
|
69672
69718
|
* @param key key to search for.
|
|
69673
69719
|
*/
|
|
69720
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69674
69721
|
function polySymbolFor(key) {
|
|
69675
69722
|
var registry = _globalSymbolRegistry();
|
|
69676
69723
|
if (!objHasOwn(registry.k, key)) {
|
|
@@ -69702,7 +69749,9 @@ function polySymbolFor(key) {
|
|
|
69702
69749
|
* @param name - The property name to return (if it exists) for Symbol
|
|
69703
69750
|
* @returns The value of the property if present
|
|
69704
69751
|
*/
|
|
69752
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69705
69753
|
function polyGetKnownSymbol(name) {
|
|
69754
|
+
!_wellKnownSymbolCache && (_wellKnownSymbolCache = {});
|
|
69706
69755
|
var result;
|
|
69707
69756
|
var knownName = _wellKnownSymbolMap[name];
|
|
69708
69757
|
if (knownName) {
|
|
@@ -69738,6 +69787,7 @@ var propMap = {
|
|
|
69738
69787
|
* @param value - The prop descriptor to convert
|
|
69739
69788
|
* @returns
|
|
69740
69789
|
*/
|
|
69790
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
69741
69791
|
function _createProp(value) {
|
|
69742
69792
|
var prop = {};
|
|
69743
69793
|
prop[propMap["c"]] = true;
|
|
@@ -69929,7 +69979,7 @@ var _isNode;
|
|
|
69929
69979
|
* @group Environment
|
|
69930
69980
|
* @group Lazy
|
|
69931
69981
|
* @group Safe
|
|
69932
|
-
* @param name The name of the global object to get
|
|
69982
|
+
* @param name The name of the global object to get, may be any valid PropertyKey (string, number or symbol)
|
|
69933
69983
|
* @returns A new readonly {@link ILazyValue} instance which will lazily attempt to return the globally
|
|
69934
69984
|
* available named instance.
|
|
69935
69985
|
* @example
|
|
@@ -69947,7 +69997,10 @@ var _isNode;
|
|
|
69947
69997
|
* // otherwise the Promise class.
|
|
69948
69998
|
* ```
|
|
69949
69999
|
*/
|
|
69950
|
-
|
|
70000
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70001
|
+
function lazySafeGetInst(name) {
|
|
70002
|
+
return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
|
|
70003
|
+
}
|
|
69951
70004
|
/**
|
|
69952
70005
|
* Returns the current global scope object, for a normal web page this will be the current
|
|
69953
70006
|
* window, for a Web Worker this will be current worker global scope via "self". The internal
|
|
@@ -69964,14 +70017,15 @@ var lazySafeGetInst = function (name) { return safeGetLazy(function () { return
|
|
|
69964
70017
|
* @param useCached - [Optional] used for testing to bypass the cached lookup, when `true` this will
|
|
69965
70018
|
* cause the cached global to be reset.
|
|
69966
70019
|
*/
|
|
69967
|
-
|
|
70020
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70021
|
+
function getGlobal(useCached) {
|
|
69968
70022
|
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
|
|
69969
70023
|
return _cachedGlobal.v;
|
|
69970
|
-
}
|
|
70024
|
+
}
|
|
69971
70025
|
/**
|
|
69972
70026
|
* Return the named global object if available, will return null if the object is not available.
|
|
69973
70027
|
* @group Environment
|
|
69974
|
-
* @param name The globally named object
|
|
70028
|
+
* @param name The globally named object, may be any valid property key (string, number or symbol)
|
|
69975
70029
|
* @param useCached - [Optional] used for testing to bypass the cached lookup, when `true` this will
|
|
69976
70030
|
* cause the cached global to be reset.
|
|
69977
70031
|
* @example
|
|
@@ -69989,7 +70043,8 @@ var getGlobal = function (useCached) {
|
|
|
69989
70043
|
* // otherwise the Promise class.
|
|
69990
70044
|
* ```
|
|
69991
70045
|
*/
|
|
69992
|
-
|
|
70046
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70047
|
+
function getInst(name, useCached) {
|
|
69993
70048
|
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
|
|
69994
70049
|
if (gbl && gbl[name]) {
|
|
69995
70050
|
return gbl[name];
|
|
@@ -70000,85 +70055,101 @@ var getInst = function (name, useCached) {
|
|
|
70000
70055
|
return _cachedWindow.v;
|
|
70001
70056
|
}
|
|
70002
70057
|
return NULL_VALUE;
|
|
70003
|
-
}
|
|
70058
|
+
}
|
|
70004
70059
|
/**
|
|
70005
70060
|
* Identify whether the runtime contains a `document` object
|
|
70006
70061
|
* @group Environment
|
|
70007
70062
|
* @returns - True if a `document` exists
|
|
70008
70063
|
*/
|
|
70009
|
-
|
|
70064
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70065
|
+
function hasDocument() {
|
|
70066
|
+
return !!getDocument();
|
|
70067
|
+
}
|
|
70010
70068
|
/**
|
|
70011
70069
|
* Return the global `document` instance.
|
|
70012
70070
|
* @group Environment
|
|
70013
70071
|
* @returns
|
|
70014
70072
|
*/
|
|
70015
|
-
|
|
70073
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70074
|
+
function getDocument() {
|
|
70016
70075
|
(!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
|
|
70017
70076
|
return _cachedDocument.v;
|
|
70018
|
-
}
|
|
70077
|
+
}
|
|
70019
70078
|
/**
|
|
70020
70079
|
* Identify whether the runtime contains a `window` object
|
|
70021
70080
|
* @group Environment
|
|
70022
70081
|
* @returns
|
|
70023
70082
|
*/
|
|
70024
|
-
|
|
70083
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70084
|
+
function hasWindow() {
|
|
70085
|
+
return !!getWindow();
|
|
70086
|
+
}
|
|
70025
70087
|
/**
|
|
70026
70088
|
* Return the global `window` instance.
|
|
70027
70089
|
* @group Environment
|
|
70028
70090
|
* @returns
|
|
70029
70091
|
*/
|
|
70030
|
-
|
|
70092
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70093
|
+
function getWindow() {
|
|
70031
70094
|
(!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
|
|
70032
70095
|
return _cachedWindow.v;
|
|
70033
|
-
}
|
|
70096
|
+
}
|
|
70034
70097
|
/**
|
|
70035
70098
|
* Identify whether the runtimne contains a `navigator` object
|
|
70036
70099
|
* @group Environment
|
|
70037
70100
|
* @returns
|
|
70038
70101
|
*/
|
|
70039
|
-
|
|
70102
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70103
|
+
function hasNavigator() {
|
|
70104
|
+
return !!getNavigator();
|
|
70105
|
+
}
|
|
70040
70106
|
/**
|
|
70041
70107
|
* Returns the global `navigator` instance
|
|
70042
70108
|
* @group Environment
|
|
70043
70109
|
* @returns
|
|
70044
70110
|
*/
|
|
70045
|
-
|
|
70111
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70112
|
+
function getNavigator() {
|
|
70046
70113
|
(!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
|
|
70047
70114
|
return _cachedNavigator.v;
|
|
70048
|
-
}
|
|
70115
|
+
}
|
|
70049
70116
|
/**
|
|
70050
70117
|
* Identifies whether the runtime contains a `history` object
|
|
70051
70118
|
* @group Environment
|
|
70052
70119
|
* @returns
|
|
70053
70120
|
*/
|
|
70054
|
-
|
|
70121
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70122
|
+
function hasHistory() {
|
|
70123
|
+
return !!getHistory();
|
|
70124
|
+
}
|
|
70055
70125
|
/**
|
|
70056
70126
|
* Returns the global `history` instance
|
|
70057
70127
|
* @group Environment
|
|
70058
70128
|
* @returns
|
|
70059
70129
|
*/
|
|
70060
|
-
|
|
70130
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70131
|
+
function getHistory() {
|
|
70061
70132
|
(!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history"));
|
|
70062
70133
|
return _cachedHistory.v;
|
|
70063
|
-
}
|
|
70134
|
+
}
|
|
70064
70135
|
/**
|
|
70065
70136
|
* Simple method to determine if we are running in a node environment
|
|
70066
70137
|
* @group Environment
|
|
70067
70138
|
* @returns True if you are
|
|
70068
70139
|
*/
|
|
70069
|
-
|
|
70140
|
+
function isNode() {
|
|
70070
70141
|
!_isNode && (_isNode = safeGetLazy(function () { return !!(process && (process.versions || {}).node); }, false));
|
|
70071
70142
|
return _isNode.v;
|
|
70072
|
-
}
|
|
70143
|
+
}
|
|
70073
70144
|
/**
|
|
70074
70145
|
* Helper to identify if you are running as a Dedicated, Shared or Service worker
|
|
70075
70146
|
* @group Environment
|
|
70076
70147
|
* @returns True if the environment you are in looks like a Web Worker
|
|
70077
70148
|
*/
|
|
70078
|
-
|
|
70149
|
+
function isWebWorker() {
|
|
70079
70150
|
!_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
|
|
70080
70151
|
return _isWebWorker.v;
|
|
70081
|
-
}
|
|
70152
|
+
}
|
|
70082
70153
|
|
|
70083
70154
|
/*
|
|
70084
70155
|
* @nevware21/ts-utils
|
|
@@ -70089,7 +70160,7 @@ var isWebWorker = function () {
|
|
|
70089
70160
|
*/
|
|
70090
70161
|
var _symbol;
|
|
70091
70162
|
var _symbolFor;
|
|
70092
|
-
|
|
70163
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70093
70164
|
function _getSymbolValue(name) {
|
|
70094
70165
|
return safeGetLazy(function () {
|
|
70095
70166
|
return (_symbol.v ? _symbol.v[name] : UNDEF_VALUE);
|
|
@@ -70100,6 +70171,7 @@ function _getSymbolValue(name) {
|
|
|
70100
70171
|
* @group Symbol
|
|
70101
70172
|
* @returns true if Symbol's are support otherwise false
|
|
70102
70173
|
*/
|
|
70174
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70103
70175
|
function hasSymbol() {
|
|
70104
70176
|
return !!getSymbol();
|
|
70105
70177
|
}
|
|
@@ -70112,7 +70184,6 @@ function getSymbol() {
|
|
|
70112
70184
|
var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b);
|
|
70113
70185
|
resetCache && (_symbol = lazySafeGetInst(SYMBOL));
|
|
70114
70186
|
(!_symbolFor || resetCache) && (_symbolFor = _getSymbolValue("for"));
|
|
70115
|
-
(!_symbolKeyFor || resetCache) && (_symbolKeyFor = _getSymbolValue("keyFor"));
|
|
70116
70187
|
return _symbol.v;
|
|
70117
70188
|
}
|
|
70118
70189
|
/**
|
|
@@ -70129,6 +70200,7 @@ function getSymbol() {
|
|
|
70129
70200
|
* getKnownSymbol(WellKnownSymbols.toStringTag) === Symbol.toStringTag; // true
|
|
70130
70201
|
* ```
|
|
70131
70202
|
*/
|
|
70203
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70132
70204
|
function getKnownSymbol(name, noPoly) {
|
|
70133
70205
|
var knownName = _wellKnownSymbolMap[name];
|
|
70134
70206
|
// Cause lazy symbol to get initialized
|
|
@@ -70143,6 +70215,7 @@ function getKnownSymbol(name, noPoly) {
|
|
|
70143
70215
|
* @param noPoly - Flag indicating whether to return a polyfil if symbols are not supported.
|
|
70144
70216
|
* @returns The new symbol
|
|
70145
70217
|
*/
|
|
70218
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70146
70219
|
function newSymbol(description, noPoly) {
|
|
70147
70220
|
// Cause lazy _symbol to get initialized
|
|
70148
70221
|
(!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
@@ -70155,6 +70228,7 @@ function newSymbol(description, noPoly) {
|
|
|
70155
70228
|
* @group Symbol
|
|
70156
70229
|
* @param key key to search for.
|
|
70157
70230
|
*/
|
|
70231
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70158
70232
|
function symbolFor(key) {
|
|
70159
70233
|
// Cause lazy symbol to get initialized
|
|
70160
70234
|
(!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
@@ -70188,6 +70262,7 @@ function symbolFor(key) {
|
|
|
70188
70262
|
* }); // true, iterators must contain a "next" function
|
|
70189
70263
|
* ```
|
|
70190
70264
|
*/
|
|
70265
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70191
70266
|
function isIterator(value) {
|
|
70192
70267
|
return !!value && isFunction(value.next);
|
|
70193
70268
|
}
|
|
@@ -70208,6 +70283,7 @@ function isIterator(value) {
|
|
|
70208
70283
|
* isIterable([]); // true (Arrays are iterable)
|
|
70209
70284
|
* ```
|
|
70210
70285
|
*/
|
|
70286
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70211
70287
|
function isIterable(value) {
|
|
70212
70288
|
return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 /* WellKnownSymbols.iterator */)]);
|
|
70213
70289
|
}
|
|
@@ -70273,7 +70349,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
70273
70349
|
try {
|
|
70274
70350
|
var count = 0;
|
|
70275
70351
|
while (!(iterResult = iter.next())[DONE]) {
|
|
70276
|
-
if (callbackfn
|
|
70352
|
+
if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
|
|
70277
70353
|
break;
|
|
70278
70354
|
}
|
|
70279
70355
|
count++;
|
|
@@ -70368,7 +70444,7 @@ function iterForOf(iter, callbackfn, thisArg) {
|
|
|
70368
70444
|
* fnApply(module1.log, module2, [ "friend" ]); // my friend : 42
|
|
70369
70445
|
* ```
|
|
70370
70446
|
*/
|
|
70371
|
-
var fnApply = _unwrapInstFunction("apply");
|
|
70447
|
+
var fnApply = ( /*#__PURE__*/_unwrapInstFunction("apply"));
|
|
70372
70448
|
|
|
70373
70449
|
/*
|
|
70374
70450
|
* @nevware21/ts-utils
|
|
@@ -70486,7 +70562,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
70486
70562
|
var len = theArray[LENGTH] >>> 0;
|
|
70487
70563
|
for (var idx = 0; idx < len; idx++) {
|
|
70488
70564
|
if (idx in theArray) {
|
|
70489
|
-
if (callbackfn
|
|
70565
|
+
if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
70490
70566
|
break;
|
|
70491
70567
|
}
|
|
70492
70568
|
}
|
|
@@ -70568,85 +70644,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
|
|
|
70568
70644
|
* arrIndexOf(arrayLike, "green-pepper"); // -1
|
|
70569
70645
|
* ```
|
|
70570
70646
|
*/
|
|
70571
|
-
var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
|
|
70572
|
-
/**
|
|
70573
|
-
* The arrLastIndexOf() method returns the last index at which a given element can be found in the array,
|
|
70574
|
-
* or -1 if it is not present.
|
|
70575
|
-
* `arrLastIndexOf()` compares searchElement to elements of the Array using strict equality (the same
|
|
70576
|
-
* method used by the === or triple-equals operator). [NaN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN)
|
|
70577
|
-
* values are never compared as equal, so arrLastIndexOf() always returns -1 when searchElement is NaN.
|
|
70578
|
-
*
|
|
70579
|
-
* The arrLastIndexOf() method skips empty slots in sparse arrays.
|
|
70580
|
-
*
|
|
70581
|
-
* The arrLastIndexOf() method is generic. It only expects the this value to have a length property and integer-keyed properties.
|
|
70582
|
-
*
|
|
70583
|
-
* @since 0.8.0
|
|
70584
|
-
* @group Array
|
|
70585
|
-
* @group ArrayLike
|
|
70586
|
-
* @typeParam T - Identifies the type of array elements
|
|
70587
|
-
* @param theArray - The array or array like object of elements to be searched.
|
|
70588
|
-
* @param searchElement - The element to locate in the array.
|
|
70589
|
-
* @param fromIndex - Zero-based index at which to start searching backwards, converted to an integer.
|
|
70590
|
-
* - Negative index counts back from the end of the array — if fromIndex < 0, fromIndex + array.length is used.
|
|
70591
|
-
* - If fromIndex < -array.length, the array is not searched and -1 is returned. You can think of it conceptually
|
|
70592
|
-
* as starting at a nonexistent position before the beginning of the array and going backwards from there. There
|
|
70593
|
-
* are no array elements on the way, so searchElement is never found.
|
|
70594
|
-
* - If fromIndex >= array.length or fromIndex is omitted, array.length - 1 is used, causing the entire array to
|
|
70595
|
-
* be searched. You can think of it conceptually as starting at a nonexistent position beyond the end of the array and going backwards from there. It eventually reaches the real end position of the array, at which point it starts searching backwards through the actual array elements.
|
|
70596
|
-
* @return The first index of the element in the array; -1 if not found.
|
|
70597
|
-
* @example
|
|
70598
|
-
* ```ts
|
|
70599
|
-
* const numbers = [2, 5, 9, 2];
|
|
70600
|
-
* arrLastIndexOf(numbers, 2); // 3
|
|
70601
|
-
* arrLastIndexOf(numbers, 7); // -1
|
|
70602
|
-
* arrLastIndexOf(numbers, 2, 3); // 3
|
|
70603
|
-
* arrLastIndexOf(numbers, 2, 2); // 0
|
|
70604
|
-
* arrLastIndexOf(numbers, 2, -2); // 0
|
|
70605
|
-
* arrLastIndexOf(numbers, 2, -1); // 3
|
|
70606
|
-
*
|
|
70607
|
-
* let indices: number[] = [];
|
|
70608
|
-
* const array = ["a", "b", "a", "c", "a", "d"];
|
|
70609
|
-
* const element = "a";
|
|
70610
|
-
* let idx = arrLastIndexOf(array, element);
|
|
70611
|
-
* while (idx !== -1) {
|
|
70612
|
-
* indices.push(idx);
|
|
70613
|
-
* idx = arrLastIndexOf(array, element, idx ? idx - 1 : -(array.length + 1));
|
|
70614
|
-
* }
|
|
70615
|
-
* console.log(indices);
|
|
70616
|
-
* // [4, 2, 0]
|
|
70617
|
-
*
|
|
70618
|
-
* function updateVegetablesCollection (veggies, veggie) {
|
|
70619
|
-
* if (arrLastIndexOf(veggies, veggie) === -1) {
|
|
70620
|
-
* veggies.push(veggie);
|
|
70621
|
-
* console.log('New veggies collection is : ' + veggies);
|
|
70622
|
-
* } else {
|
|
70623
|
-
* console.log(veggie + ' already exists in the veggies collection.');
|
|
70624
|
-
* }
|
|
70625
|
-
* }
|
|
70626
|
-
*
|
|
70627
|
-
* let veggies = ['potato', 'tomato', 'chillies', 'green-pepper'];
|
|
70628
|
-
*
|
|
70629
|
-
* updateVegetablesCollection(veggies, 'spinach');
|
|
70630
|
-
* // New veggies collection is : potato,tomato,chillies,green-pepper,spinach
|
|
70631
|
-
* updateVegetablesCollection(veggies, 'spinach');
|
|
70632
|
-
* // spinach already exists in the veggies collection.
|
|
70633
|
-
*
|
|
70634
|
-
* // Array Like
|
|
70635
|
-
* let arrayLike = {
|
|
70636
|
-
* length: 3,
|
|
70637
|
-
* 0: "potato",
|
|
70638
|
-
* 1: "tomato",
|
|
70639
|
-
* 2: "chillies",
|
|
70640
|
-
* 3: "green-pepper" // Not checked as index is > length
|
|
70641
|
-
* };
|
|
70642
|
-
*
|
|
70643
|
-
* arrLastIndexOf(arrayLike, "potato"); // 0
|
|
70644
|
-
* arrLastIndexOf(arrayLike, "tomato"); // 1
|
|
70645
|
-
* arrLastIndexOf(arrayLike, "chillies"); 2
|
|
70646
|
-
* arrLastIndexOf(arrayLike, "green-pepper"); // -1
|
|
70647
|
-
* ```
|
|
70648
|
-
*/
|
|
70649
|
-
_unwrapFunction(LAST_INDEX_OF, ArrProto);
|
|
70647
|
+
var arrIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, ArrProto));
|
|
70650
70648
|
|
|
70651
70649
|
/*
|
|
70652
70650
|
* @nevware21/ts-utils
|
|
@@ -70705,7 +70703,7 @@ _unwrapFunction(LAST_INDEX_OF, ArrProto);
|
|
|
70705
70703
|
* };
|
|
70706
70704
|
* ```
|
|
70707
70705
|
*/
|
|
70708
|
-
var arrMap = _unwrapFunction("map", ArrProto);
|
|
70706
|
+
var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
|
|
70709
70707
|
|
|
70710
70708
|
/*
|
|
70711
70709
|
* @nevware21/ts-utils
|
|
@@ -70757,71 +70755,7 @@ var arrMap = _unwrapFunction("map", ArrProto);
|
|
|
70757
70755
|
* arrSlice(lyrics, 2, -1); // [ "my", "old", "friend.", "I've", "come", "to" ]
|
|
70758
70756
|
* ```
|
|
70759
70757
|
*/
|
|
70760
|
-
var arrSlice = _unwrapFunction(SLICE, ArrProto);
|
|
70761
|
-
|
|
70762
|
-
/*
|
|
70763
|
-
* @nevware21/ts-utils
|
|
70764
|
-
* https://github.com/nevware21/ts-utils
|
|
70765
|
-
*
|
|
70766
|
-
* Copyright (c) 2023 Nevware21
|
|
70767
|
-
* Licensed under the MIT license.
|
|
70768
|
-
*/
|
|
70769
|
-
/**
|
|
70770
|
-
* The `fnCall` function calls the function with the given `thisArg` as the `this` value and with
|
|
70771
|
-
* al of the `_args` provided as it's `arguments.
|
|
70772
|
-
*
|
|
70773
|
-
* > This is almost identical to `fnApply`, except that the function arguments are passed to `fnCall`
|
|
70774
|
-
* individually as a list, while with `fnApply` that are combined into a single array argument.
|
|
70775
|
-
*
|
|
70776
|
-
* Normally, when calling a function, the value of `this` inside the function is the object that the
|
|
70777
|
-
* function was accessed on. With `fnCall()`, you can pass an arbitrary value as the `this` when calling an
|
|
70778
|
-
* existing function, without first attaching the function to the object as a property. This allows you
|
|
70779
|
-
* to use methods of one object as generic utility functions.
|
|
70780
|
-
*
|
|
70781
|
-
* @since 0.9.8
|
|
70782
|
-
* @group Function
|
|
70783
|
-
*
|
|
70784
|
-
* @param fn - The function to be called
|
|
70785
|
-
* @param thisArg - The value of `this` provided for the call to `fn`. If the function is not in strict mode,
|
|
70786
|
-
* `null` and `undefined` will be replaced with the global object, and primitive values will be converted to objects.
|
|
70787
|
-
* @param _args - The zero or more arguments to be passed to the `fn` function.
|
|
70788
|
-
* @returns The result of calling the function with the specified `this` value and arguments.
|
|
70789
|
-
* @example
|
|
70790
|
-
* ```ts
|
|
70791
|
-
* // min / max number in an array
|
|
70792
|
-
* let max = fnCall(Math.max, null, 21, 42, 84, 168, 7, 3);
|
|
70793
|
-
* // 168
|
|
70794
|
-
*
|
|
70795
|
-
* let min = fnCall(Math.min, null, 21, 42, 84, 168, 7, 3);
|
|
70796
|
-
* // 3
|
|
70797
|
-
*
|
|
70798
|
-
* const module1 = {
|
|
70799
|
-
* prefix: "Hello",
|
|
70800
|
-
* x: 21,
|
|
70801
|
-
* getX() {
|
|
70802
|
-
* return this.x;
|
|
70803
|
-
* },
|
|
70804
|
-
* log(value: string) {
|
|
70805
|
-
* return this.prefix + " " + value + " : " + this.x
|
|
70806
|
-
* }
|
|
70807
|
-
* };
|
|
70808
|
-
*
|
|
70809
|
-
* // The 'this' parameter of 'getX' is bound to 'module'.
|
|
70810
|
-
* module1.getX(); // 21
|
|
70811
|
-
* module1.log("Darkness"); // Hello Darkness : 21
|
|
70812
|
-
*
|
|
70813
|
-
* // Create a new function 'boundGetX' with the 'this' parameter bound to 'module'.
|
|
70814
|
-
* let module2 = {
|
|
70815
|
-
* prefix: "my",
|
|
70816
|
-
* x: 42
|
|
70817
|
-
* };
|
|
70818
|
-
*
|
|
70819
|
-
* // Call the function of module1 with module2 as it's this
|
|
70820
|
-
* fnCall(module1.getX, module2); // 42
|
|
70821
|
-
* fnCall(module1.log, module2, "friend"); // my friend : 42
|
|
70822
|
-
* ```
|
|
70823
|
-
*/
|
|
70824
|
-
var fnCall = _unwrapInstFunction("call");
|
|
70758
|
+
var arrSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, ArrProto));
|
|
70825
70759
|
|
|
70826
70760
|
/*
|
|
70827
70761
|
* @nevware21/ts-utils
|
|
@@ -70874,7 +70808,7 @@ var fnCall = _unwrapInstFunction("call");
|
|
|
70874
70808
|
* arrReduce({ length: 0 }, getMax, 1); // 1
|
|
70875
70809
|
* ```
|
|
70876
70810
|
*/
|
|
70877
|
-
var arrReduce = _unwrapFunction("reduce", ArrProto);
|
|
70811
|
+
var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
|
|
70878
70812
|
|
|
70879
70813
|
/*
|
|
70880
70814
|
* @nevware21/ts-utils
|
|
@@ -70883,7 +70817,6 @@ var arrReduce = _unwrapFunction("reduce", ArrProto);
|
|
|
70883
70817
|
* Copyright (c) 2022 Nevware21
|
|
70884
70818
|
* Licensed under the MIT license.
|
|
70885
70819
|
*/
|
|
70886
|
-
var _objCreate = ObjClass$1["create"];
|
|
70887
70820
|
/**
|
|
70888
70821
|
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
|
|
70889
70822
|
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
|
|
@@ -70891,7 +70824,7 @@ var _objCreate = ObjClass$1["create"];
|
|
|
70891
70824
|
* @group Object
|
|
70892
70825
|
* @param obj Object to use as a prototype. May be null
|
|
70893
70826
|
*/
|
|
70894
|
-
var objCreate =
|
|
70827
|
+
var objCreate = ObjClass$1["create"] || polyObjCreate;
|
|
70895
70828
|
/**
|
|
70896
70829
|
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
|
|
70897
70830
|
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
|
|
@@ -70900,6 +70833,7 @@ var objCreate = _objCreate || polyObjCreate;
|
|
|
70900
70833
|
* @group Object
|
|
70901
70834
|
* @param obj Object to use as a prototype. May be null
|
|
70902
70835
|
*/
|
|
70836
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
70903
70837
|
function polyObjCreate(obj) {
|
|
70904
70838
|
if (!obj) {
|
|
70905
70839
|
return {};
|
|
@@ -70953,7 +70887,7 @@ function objSetPrototypeOf(obj, proto) {
|
|
|
70953
70887
|
* @internal
|
|
70954
70888
|
* @ignore
|
|
70955
70889
|
*/
|
|
70956
|
-
|
|
70890
|
+
function _createCustomError(name, d, b) {
|
|
70957
70891
|
_safeDefineName(d, name);
|
|
70958
70892
|
d = objSetPrototypeOf(d, b);
|
|
70959
70893
|
function __() {
|
|
@@ -70962,8 +70896,8 @@ var _createCustomError = function (name, d, b) {
|
|
|
70962
70896
|
}
|
|
70963
70897
|
d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
|
|
70964
70898
|
return d;
|
|
70965
|
-
}
|
|
70966
|
-
|
|
70899
|
+
}
|
|
70900
|
+
function _safeSetName(baseClass, name) {
|
|
70967
70901
|
try {
|
|
70968
70902
|
name && (baseClass[NAME] = name);
|
|
70969
70903
|
//name && (baseClass[PROTOTYPE][NAME] = name);
|
|
@@ -70971,15 +70905,15 @@ var _safeSetName = function (baseClass, name) {
|
|
|
70971
70905
|
catch (e) {
|
|
70972
70906
|
// Do nothing
|
|
70973
70907
|
}
|
|
70974
|
-
}
|
|
70975
|
-
|
|
70908
|
+
}
|
|
70909
|
+
function _safeDefineName(target, name) {
|
|
70976
70910
|
try {
|
|
70977
70911
|
objDefine(target, NAME, { v: name, c: true, e: false });
|
|
70978
70912
|
}
|
|
70979
70913
|
catch (e) {
|
|
70980
70914
|
// Do nothing
|
|
70981
70915
|
}
|
|
70982
|
-
}
|
|
70916
|
+
}
|
|
70983
70917
|
/**
|
|
70984
70918
|
* Create a Custom Error class which may be used to throw custom errors.
|
|
70985
70919
|
* @group Error
|
|
@@ -71049,6 +70983,7 @@ var _safeDefineName = function (target, name) {
|
|
|
71049
70983
|
* theStartupError instanceof StartupError; // true
|
|
71050
70984
|
* ```
|
|
71051
70985
|
*/
|
|
70986
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71052
70987
|
function createCustomError(name, constructCb, errorBase) {
|
|
71053
70988
|
var theBaseClass = errorBase || Error;
|
|
71054
70989
|
var orgName = theBaseClass[PROTOTYPE][NAME];
|
|
@@ -71112,7 +71047,7 @@ function throwUnsupported(message) {
|
|
|
71112
71047
|
/**
|
|
71113
71048
|
* Return the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
|
|
71114
71049
|
*
|
|
71115
|
-
* To offer protection against timing attacks and fingerprinting, the precision of
|
|
71050
|
+
* To offer protection against timing attacks and fingerprinting, the precision of utcNow()
|
|
71116
71051
|
* might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision
|
|
71117
71052
|
* preference is enabled by default and defaults to 20µs in Firefox 59; in 60 it will be 2ms.
|
|
71118
71053
|
*
|
|
@@ -71125,13 +71060,14 @@ function throwUnsupported(message) {
|
|
|
71125
71060
|
* let now = utcNow();
|
|
71126
71061
|
* ```
|
|
71127
71062
|
*/
|
|
71063
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71128
71064
|
function utcNow() {
|
|
71129
71065
|
return (Date.now || polyUtcNow)();
|
|
71130
71066
|
}
|
|
71131
71067
|
/**
|
|
71132
71068
|
* Polyfill fallback to return the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
|
|
71133
71069
|
*
|
|
71134
|
-
* To offer protection against timing attacks and fingerprinting, the precision of
|
|
71070
|
+
* To offer protection against timing attacks and fingerprinting, the precision of utcNow()
|
|
71135
71071
|
* might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision
|
|
71136
71072
|
* preference is enabled by default and defaults to 20µs in Firefox 59; in 60 it will be 2ms.
|
|
71137
71073
|
*
|
|
@@ -71145,6 +71081,7 @@ function utcNow() {
|
|
|
71145
71081
|
* let now = polyUtcNow();
|
|
71146
71082
|
* ```
|
|
71147
71083
|
*/
|
|
71084
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71148
71085
|
function polyUtcNow() {
|
|
71149
71086
|
return new Date().getTime();
|
|
71150
71087
|
}
|
|
@@ -71156,6 +71093,7 @@ function polyUtcNow() {
|
|
|
71156
71093
|
* Copyright (c) 2022 Nevware21
|
|
71157
71094
|
* Licensed under the MIT license.
|
|
71158
71095
|
*/
|
|
71096
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71159
71097
|
function _createTrimFn(exp) {
|
|
71160
71098
|
return function _doTrim(value) {
|
|
71161
71099
|
if (isNullOrUndefined(value)) {
|
|
@@ -71180,27 +71118,7 @@ function _createTrimFn(exp) {
|
|
|
71180
71118
|
* a copy of str), with no exception being thrown.
|
|
71181
71119
|
* To return a new string with whitespace trimmed from just one end, use `strTrimStart()` or `strTrimEnd()`.
|
|
71182
71120
|
*/
|
|
71183
|
-
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
71184
|
-
/**
|
|
71185
|
-
* The `polyStrTrimStart()` method removes whitespace from the beginning of a string.
|
|
71186
|
-
* @group Polyfill
|
|
71187
|
-
* @group String
|
|
71188
|
-
* @param value - The value to be trimmed.
|
|
71189
|
-
* @returns A new string representing str stripped of whitespace from its beginning (left side).
|
|
71190
|
-
* If the beginning of str has no whitespace, a new string is still returned (essentially a copy of str),
|
|
71191
|
-
* with no exception being thrown.
|
|
71192
|
-
*/
|
|
71193
|
-
var polyStrTrimStart = _createTrimFn(/^\s+/g);
|
|
71194
|
-
/**
|
|
71195
|
-
* The `polyStrTrimEnd()` method removes whitespace from the end of a string.
|
|
71196
|
-
* @group Polyfill
|
|
71197
|
-
* @group String
|
|
71198
|
-
* @param value - The value to be trimmed.
|
|
71199
|
-
* @returns A new string representing str stripped of whitespace from its end (right side).
|
|
71200
|
-
* If the end of str has no whitespace, a new string is still returned (essentially a copy of str),
|
|
71201
|
-
* with no exception being thrown.
|
|
71202
|
-
*/
|
|
71203
|
-
var polyStrTrimEnd = _createTrimFn(/(?=\s)\s+$/g);
|
|
71121
|
+
var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
|
|
71204
71122
|
|
|
71205
71123
|
/*
|
|
71206
71124
|
* @nevware21/ts-utils
|
|
@@ -71221,25 +71139,7 @@ var polyStrTrimEnd = _createTrimFn(/(?=\s)\s+$/g);
|
|
|
71221
71139
|
* a copy of str), with no exception being thrown.
|
|
71222
71140
|
* To return a new string with whitespace trimmed from just one end, use `strTrimStart()` or `strTrimEnd()`.
|
|
71223
71141
|
*/
|
|
71224
|
-
var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
|
|
71225
|
-
/**
|
|
71226
|
-
* The `strTrimStart()` method removes whitespace from the beginning of a string.
|
|
71227
|
-
* @group String
|
|
71228
|
-
* @param value - The value to be trimmed.
|
|
71229
|
-
* @returns A new string representing str stripped of whitespace from its beginning (left side).
|
|
71230
|
-
* If the beginning of str has no whitespace, a new string is still returned (essentially a copy of str),
|
|
71231
|
-
* with no exception being thrown.
|
|
71232
|
-
*/
|
|
71233
|
-
_unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart);
|
|
71234
|
-
/**
|
|
71235
|
-
* The `strTrimEnd()` method removes whitespace from the end of a string.
|
|
71236
|
-
* @group String
|
|
71237
|
-
* @param value - The value to be trimmed.
|
|
71238
|
-
* @returns A new string representing str stripped of whitespace from its end (right side).
|
|
71239
|
-
* If the end of str has no whitespace, a new string is still returned (essentially a copy of str),
|
|
71240
|
-
* with no exception being thrown.
|
|
71241
|
-
*/
|
|
71242
|
-
_unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd);
|
|
71142
|
+
var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
|
|
71243
71143
|
|
|
71244
71144
|
/*
|
|
71245
71145
|
* @nevware21/ts-utils
|
|
@@ -71286,6 +71186,7 @@ var _gblWindow;
|
|
|
71286
71186
|
* console.log(isPlainObject("aa")); // false
|
|
71287
71187
|
* ```
|
|
71288
71188
|
*/
|
|
71189
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71289
71190
|
function isPlainObject(value) {
|
|
71290
71191
|
if (!value || typeof value !== OBJECT) {
|
|
71291
71192
|
return false;
|
|
@@ -71300,7 +71201,7 @@ function isPlainObject(value) {
|
|
|
71300
71201
|
// Lazily caching what the runtime reports as the object function constructor (as a string)
|
|
71301
71202
|
// Using an current function lookup to find what this runtime calls a "native" function
|
|
71302
71203
|
_fnToString = Function[PROTOTYPE].toString;
|
|
71303
|
-
_objCtrFnString =
|
|
71204
|
+
_objCtrFnString = _fnToString[CALL](ObjClass$1);
|
|
71304
71205
|
}
|
|
71305
71206
|
try {
|
|
71306
71207
|
var proto = objGetPrototypeOf(value);
|
|
@@ -71310,7 +71211,7 @@ function isPlainObject(value) {
|
|
|
71310
71211
|
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
71311
71212
|
proto = proto[CONSTRUCTOR];
|
|
71312
71213
|
}
|
|
71313
|
-
result = proto && typeof proto === FUNCTION && _fnToString
|
|
71214
|
+
result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
|
|
71314
71215
|
}
|
|
71315
71216
|
}
|
|
71316
71217
|
catch (ex) {
|
|
@@ -71435,13 +71336,13 @@ function _deepCopy(visitMap, value, ctx, key) {
|
|
|
71435
71336
|
});
|
|
71436
71337
|
var idx = 0;
|
|
71437
71338
|
var handler = userHandler;
|
|
71438
|
-
while (!
|
|
71339
|
+
while (!(handler || (idx < defaultDeepCopyHandlers.length ? defaultDeepCopyHandlers[idx++] : _defaultDeepCopyHandler))[CALL](ctx, details)) {
|
|
71439
71340
|
handler = NULL_VALUE;
|
|
71440
71341
|
}
|
|
71441
71342
|
});
|
|
71442
71343
|
}
|
|
71443
71344
|
// Allow the user handler to override the provided value
|
|
71444
|
-
if (userHandler &&
|
|
71345
|
+
if (userHandler && userHandler[CALL](ctx, details)) {
|
|
71445
71346
|
return details.result;
|
|
71446
71347
|
}
|
|
71447
71348
|
return value;
|
|
@@ -71571,6 +71472,7 @@ function objCopyProps(target, source, handler) {
|
|
|
71571
71472
|
* assert.equal(42, c.b.e.value, "Expect that the local property was copied");
|
|
71572
71473
|
* ```
|
|
71573
71474
|
*/
|
|
71475
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71574
71476
|
function objDeepCopy(source, handler) {
|
|
71575
71477
|
var ctx = {
|
|
71576
71478
|
handler: handler,
|
|
@@ -71661,9 +71563,24 @@ function _doExtend(target, theArgs) {
|
|
|
71661
71563
|
});
|
|
71662
71564
|
return target;
|
|
71663
71565
|
}
|
|
71566
|
+
/**
|
|
71567
|
+
* Create a new object by merging the passed arguments, this is effectively the same as calling `objExtend({}, ...theArgs)` where
|
|
71568
|
+
* all of the arguments are added to a new object that is returned.
|
|
71569
|
+
* @group Object
|
|
71570
|
+
* @param target - The original object to be extended.
|
|
71571
|
+
* @param objN - The optional number of arguments to be copied
|
|
71572
|
+
* @returns - A new object or the original
|
|
71573
|
+
*/
|
|
71664
71574
|
function deepExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) {
|
|
71665
71575
|
return _doExtend(objDeepCopy(target) || {}, arrSlice(arguments));
|
|
71666
71576
|
}
|
|
71577
|
+
/**
|
|
71578
|
+
* Extend the target object by merging the passed arguments into it
|
|
71579
|
+
* @group Object
|
|
71580
|
+
* @param target - The object to be extended or overwritten
|
|
71581
|
+
* @param objN - The optional number of arguments to be copied
|
|
71582
|
+
* @returns - A new object or the original
|
|
71583
|
+
*/
|
|
71667
71584
|
function objExtend$1(target, obj1, obj2, obj3, obj4, obj5, obj6) {
|
|
71668
71585
|
return _doExtend(target || {}, arrSlice(arguments));
|
|
71669
71586
|
}
|
|
@@ -71696,7 +71613,7 @@ function objExtend$1(target, obj1, obj2, obj3, obj4, obj5, obj6) {
|
|
|
71696
71613
|
* getLength({ length: () => 53; }); // returns the function that if called would return 53
|
|
71697
71614
|
* ```
|
|
71698
71615
|
*/
|
|
71699
|
-
var getLength = _unwrapProp(LENGTH);
|
|
71616
|
+
var getLength = ( /*#__PURE__*/_unwrapProp(LENGTH));
|
|
71700
71617
|
|
|
71701
71618
|
/*
|
|
71702
71619
|
* @nevware21/ts-utils
|
|
@@ -71716,67 +71633,12 @@ var _perf;
|
|
|
71716
71633
|
* @group Environment
|
|
71717
71634
|
* @returns The global performance object if available.
|
|
71718
71635
|
*/
|
|
71636
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71719
71637
|
function getPerformance() {
|
|
71720
71638
|
(!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance"));
|
|
71721
71639
|
return _perf.v;
|
|
71722
71640
|
}
|
|
71723
71641
|
|
|
71724
|
-
/*
|
|
71725
|
-
* @nevware21/ts-utils
|
|
71726
|
-
* https://github.com/nevware21/ts-utils
|
|
71727
|
-
*
|
|
71728
|
-
* Copyright (c) 2023 Nevware21
|
|
71729
|
-
* Licensed under the MIT license.
|
|
71730
|
-
*/
|
|
71731
|
-
/**
|
|
71732
|
-
* The `polyStrSymSplit()` splits a string into substrings using the [`Symbol.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/split)
|
|
71733
|
-
* method from the splitter object to provide custom behavior. It uses {@link getKnownSymbol}
|
|
71734
|
-
* to get the {@link WellKnownSymbols.split} symbol which will return the polyfill symbol value.
|
|
71735
|
-
* @since 0.9.1
|
|
71736
|
-
* @group Polyfill
|
|
71737
|
-
* @group String
|
|
71738
|
-
* @param value - The string value to be split into substrings.
|
|
71739
|
-
* @param splitter - The object which contains a Symbol.split method, Omitting splitter or passing
|
|
71740
|
-
* an object that doesn't contain a Symbol.split causes it to return an array with the calling
|
|
71741
|
-
* string as a single element.
|
|
71742
|
-
* @param limit - A non-negative integer specifying a limit on the number of substrings to be
|
|
71743
|
-
* included in the array. If provided, splits the string at each occurrence of the specified
|
|
71744
|
-
* separator, but stops when limit entries have been placed in the array. Any leftover text is
|
|
71745
|
-
* not included in the array at all.
|
|
71746
|
-
* - The array may contain fewer entries than limit if the end of the string is reached before
|
|
71747
|
-
* the limit is reached.
|
|
71748
|
-
* - If limit is 0, [] is returned.
|
|
71749
|
-
* @return An Array of strings, split at each point where the separator occurs in the given string.
|
|
71750
|
-
* @example
|
|
71751
|
-
* ```ts
|
|
71752
|
-
* const splitByNumber = {
|
|
71753
|
-
* [getKnownSymbol<typeof Symbol.split>(WellKnownSymbols.split)]: (str: string) => {
|
|
71754
|
-
* let num = 1;
|
|
71755
|
-
* let pos = 0;
|
|
71756
|
-
* const result = [];
|
|
71757
|
-
* while (pos < str.length) {
|
|
71758
|
-
* const matchPos = strIndexOf(str, asString(num), pos);
|
|
71759
|
-
* if (matchPos === -1) {
|
|
71760
|
-
* result.push(strSubstring(str, pos));
|
|
71761
|
-
* break;
|
|
71762
|
-
* }
|
|
71763
|
-
* result.push(strSubstring(str, pos, matchPos));
|
|
71764
|
-
* pos = matchPos + asString(num).length;
|
|
71765
|
-
* num++;
|
|
71766
|
-
* }
|
|
71767
|
-
* return result;
|
|
71768
|
-
* }
|
|
71769
|
-
* };
|
|
71770
|
-
*
|
|
71771
|
-
* const myString = "a1bc2c5d3e4f";
|
|
71772
|
-
* console.log(polyStrSymSplit(myString, splitByNumber)); // [ "a", "bc", "c5d", "e", "f" ]
|
|
71773
|
-
* ```
|
|
71774
|
-
*/
|
|
71775
|
-
function polyStrSymSplit(value, splitter, limit) {
|
|
71776
|
-
var splitFn = splitter && splitter[getKnownSymbol(9 /* WellKnownSymbols.split */)];
|
|
71777
|
-
return splitFn ? splitFn(value, limit) : [value];
|
|
71778
|
-
}
|
|
71779
|
-
|
|
71780
71642
|
/*
|
|
71781
71643
|
* @nevware21/ts-utils
|
|
71782
71644
|
* https://github.com/nevware21/ts-utils
|
|
@@ -71813,53 +71675,7 @@ function polyStrSymSplit(value, splitter, limit) {
|
|
|
71813
71675
|
* // [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]
|
|
71814
71676
|
* ```
|
|
71815
71677
|
*/
|
|
71816
|
-
var strSplit = _unwrapFunction("split", StrProto);
|
|
71817
|
-
/**
|
|
71818
|
-
* The `strSymSplit()` splits a string into substrings using the [`Symbol.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/split)
|
|
71819
|
-
* method from the splitter object to provide custom behavior. If the runtime supports symbols
|
|
71820
|
-
* then the default runtime `split` method will be called, It will use {@link getKnownSymbol}
|
|
71821
|
-
* to get the {@link WellKnownSymbols.split} symbol which will return the runtime symbol or the
|
|
71822
|
-
* polyfill symbol when not supported by the runtime.
|
|
71823
|
-
* @since 0.9.1
|
|
71824
|
-
* @group String
|
|
71825
|
-
* @param value - The string value to be split into substrings.
|
|
71826
|
-
* @param splitter - The object which contains a Symbol.split method, Omitting splitter or passing
|
|
71827
|
-
* an object that doesn't contain a Symbol.split causes it to return an array with the calling
|
|
71828
|
-
* string as a single element.
|
|
71829
|
-
* @param limit - A non-negative integer specifying a limit on the number of substrings to be
|
|
71830
|
-
* included in the array. If provided, splits the string at each occurrence of the specified
|
|
71831
|
-
* separator, but stops when limit entries have been placed in the array. Any leftover text is
|
|
71832
|
-
* not included in the array at all.
|
|
71833
|
-
* - The array may contain fewer entries than limit if the end of the string is reached before
|
|
71834
|
-
* the limit is reached.
|
|
71835
|
-
* - If limit is 0, [] is returned.
|
|
71836
|
-
* @return An Array of strings, split at each point where the separator occurs in the given string.
|
|
71837
|
-
* @example
|
|
71838
|
-
* ```ts
|
|
71839
|
-
* const splitByNumber = {
|
|
71840
|
-
* [Symbol.split]: (str: string) => {
|
|
71841
|
-
* let num = 1;
|
|
71842
|
-
* let pos = 0;
|
|
71843
|
-
* const result = [];
|
|
71844
|
-
* while (pos < str.length) {
|
|
71845
|
-
* const matchPos = strIndexOf(str, asString(num), pos);
|
|
71846
|
-
* if (matchPos === -1) {
|
|
71847
|
-
* result.push(strSubstring(str, pos));
|
|
71848
|
-
* break;
|
|
71849
|
-
* }
|
|
71850
|
-
* result.push(strSubstring(str, pos, matchPos));
|
|
71851
|
-
* pos = matchPos + asString(num).length;
|
|
71852
|
-
* num++;
|
|
71853
|
-
* }
|
|
71854
|
-
* return result;
|
|
71855
|
-
* }
|
|
71856
|
-
* };
|
|
71857
|
-
*
|
|
71858
|
-
* const myString = "a1bc2c5d3e4f";
|
|
71859
|
-
* console.log(strSymSplit(myString, splitByNumber)); // [ "a", "bc", "c5d", "e", "f" ]
|
|
71860
|
-
* ```
|
|
71861
|
-
*/
|
|
71862
|
-
hasSymbol() ? _unwrapFunction("split", StrProto) : polyStrSymSplit;
|
|
71678
|
+
var strSplit = ( /*#__PURE__*/_unwrapFunction("split", StrProto));
|
|
71863
71679
|
|
|
71864
71680
|
/*
|
|
71865
71681
|
* @nevware21/ts-utils
|
|
@@ -71916,7 +71732,7 @@ function setValueByKey(target, path, value) {
|
|
|
71916
71732
|
* @param searchString - The characters to be searched for at the end of `value` string.
|
|
71917
71733
|
* @param length - If provided, it is used as the length of `value`. Defaults to value.length.
|
|
71918
71734
|
*/
|
|
71919
|
-
var strEndsWith = _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
|
|
71735
|
+
var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
|
|
71920
71736
|
/**
|
|
71921
71737
|
* This method lets you determine whether or not a string ends with another string. This method is case-sensitive.
|
|
71922
71738
|
* @group Polyfill
|
|
@@ -71925,6 +71741,7 @@ var strEndsWith = _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith)
|
|
|
71925
71741
|
* @param searchString - The characters to be searched for at the end of `value` string.
|
|
71926
71742
|
* @param length - If provided, it is used as the length of `value`. Defaults to value.length.
|
|
71927
71743
|
*/
|
|
71744
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
71928
71745
|
function polyStrEndsWith(value, searchString, length) {
|
|
71929
71746
|
if (!isString(value)) {
|
|
71930
71747
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
@@ -71975,29 +71792,7 @@ function polyStrEndsWith(value, searchString, length) {
|
|
|
71975
71792
|
* strIndexOf('Blue Whale', '', 11) // returns 10
|
|
71976
71793
|
* ```
|
|
71977
71794
|
*/
|
|
71978
|
-
var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
|
|
71979
|
-
/**
|
|
71980
|
-
* The `strLastIndexOf()` method, given two arguments: the string and a substring to search for, searches
|
|
71981
|
-
* the entire calling string, and returns the index of the last occurrence of the specified substring.
|
|
71982
|
-
* Given a third argument: a number, the method returns the last occurrence of the specified substring
|
|
71983
|
-
* at an index less than or equal to the specified number.
|
|
71984
|
-
* @group String
|
|
71985
|
-
* @param value - The value to be checked for the seeach string
|
|
71986
|
-
* @param searchString - The substring to search for in the value
|
|
71987
|
-
* @param position - The starting position to search from
|
|
71988
|
-
* @example
|
|
71989
|
-
* ```ts
|
|
71990
|
-
* strLastIndexOf('canal', 'a'); // returns 3
|
|
71991
|
-
* strLastIndexOf('canal', 'a', 2); // returns 1
|
|
71992
|
-
* strLastIndexOf('canal', 'a', 0); // returns -1
|
|
71993
|
-
* strLastIndexOf('canal', 'x'); // returns -1
|
|
71994
|
-
* strLastIndexOf('canal', 'c', -5); // returns 0
|
|
71995
|
-
* strLastIndexOf('canal', 'c', 0); // returns 0
|
|
71996
|
-
* strLastIndexOf('canal', ''); // returns 5
|
|
71997
|
-
* strLastIndexOf('canal', '', 2); // returns 2
|
|
71998
|
-
* ```
|
|
71999
|
-
*/
|
|
72000
|
-
_unwrapFunction(LAST_INDEX_OF, StrProto);
|
|
71795
|
+
var strIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, StrProto));
|
|
72001
71796
|
|
|
72002
71797
|
/*
|
|
72003
71798
|
* @nevware21/ts-utils
|
|
@@ -72108,15 +71903,84 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
|
|
|
72108
71903
|
});
|
|
72109
71904
|
return handler.h;
|
|
72110
71905
|
}
|
|
71906
|
+
/**
|
|
71907
|
+
* Creates and starts a timer which executes a function or specified piece of code once the timer expires, this is simular
|
|
71908
|
+
* to using `setTimeout` but provides a return object for cancelling and restarting (refresh) the timer.
|
|
71909
|
+
*
|
|
71910
|
+
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or
|
|
71911
|
+
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler}
|
|
71912
|
+
* instance
|
|
71913
|
+
*
|
|
71914
|
+
* @since 0.4.4
|
|
71915
|
+
* @group Timer
|
|
71916
|
+
*
|
|
71917
|
+
* @param callback - The function to be executed after the timer expires.
|
|
71918
|
+
* @param timeout - The time, in milliseconds that the timer should wait before the specified
|
|
71919
|
+
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning
|
|
71920
|
+
* execute "immediately", or more accurately, the next event cycle.
|
|
71921
|
+
* @param args - Additional arguments which are passed through to the function specified by `callback`.
|
|
71922
|
+
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout.
|
|
71923
|
+
* @example
|
|
71924
|
+
* ```ts
|
|
71925
|
+
* let timeoutCalled = false;
|
|
71926
|
+
* let theTimeout = scheduleTimeout(() => {
|
|
71927
|
+
* // This callback will be called after 100ms as this uses setTimeout()
|
|
71928
|
+
* timeoutCalled = true;
|
|
71929
|
+
* }, 100);
|
|
71930
|
+
*
|
|
71931
|
+
* // Instead of calling clearTimeout() with the returned value from setTimeout() the returned
|
|
71932
|
+
* // handler instance can be used instead to cancel the timer
|
|
71933
|
+
* theTimeout.cancel();
|
|
71934
|
+
* theTimeout.enabled; // false
|
|
71935
|
+
*
|
|
71936
|
+
* // You can start the timer via enabled
|
|
71937
|
+
* theTimeout.enabled = true;
|
|
71938
|
+
*
|
|
71939
|
+
* // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()`
|
|
71940
|
+
* theTimeout.refresh();
|
|
71941
|
+
* ```
|
|
71942
|
+
*/
|
|
72111
71943
|
function scheduleTimeout(callback, timeout) {
|
|
72112
71944
|
return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments));
|
|
72113
71945
|
}
|
|
71946
|
+
/**
|
|
71947
|
+
* Creates a non-running (paused) timer which will execute a function or specified piece of code when enabled and the timer expires,
|
|
71948
|
+
* this is simular to using `scheduleTimeout` but the timer is not enabled (running) and you MUST call `refresh` to start the timer.
|
|
71949
|
+
*
|
|
71950
|
+
* The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or
|
|
71951
|
+
* you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler}
|
|
71952
|
+
* instance
|
|
71953
|
+
*
|
|
71954
|
+
* @since 0.7.0
|
|
71955
|
+
* @group Timer
|
|
71956
|
+
*
|
|
71957
|
+
* @param callback - The function to be executed after the timer expires.
|
|
71958
|
+
* @param timeout - The time, in milliseconds that the timer should wait before the specified
|
|
71959
|
+
* function or code is executed. If this parameter is omitted, a value of 0 is used, meaning
|
|
71960
|
+
* execute "immediately", or more accurately, the next event cycle.
|
|
71961
|
+
* @param args - Additional arguments which are passed through to the function specified by `callback`.
|
|
71962
|
+
* @returns A {@link ITimerHandler} instance which can be used to cancel the timeout.
|
|
71963
|
+
* @example
|
|
71964
|
+
* ```ts
|
|
71965
|
+
* let timeoutCalled = false;
|
|
71966
|
+
* let theTimeout = createTimeout(() => {
|
|
71967
|
+
* // This callback will be called after 100ms as this uses setTimeout()
|
|
71968
|
+
* timeoutCalled = true;
|
|
71969
|
+
* }, 100);
|
|
71970
|
+
*
|
|
71971
|
+
* // As the timer is not started you will need to call "refresh" to start the timer
|
|
71972
|
+
* theTimeout.refresh();
|
|
71973
|
+
*
|
|
71974
|
+
* // or set enabled to true
|
|
71975
|
+
* theTimeout.enabled = true;
|
|
71976
|
+
* ```
|
|
71977
|
+
*/
|
|
72114
71978
|
function createTimeout(callback, timeout) {
|
|
72115
71979
|
return _createTimeoutWith(this, false, UNDEF_VALUE, arrSlice(arguments));
|
|
72116
71980
|
}
|
|
72117
71981
|
|
|
72118
71982
|
/*
|
|
72119
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
71983
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
72120
71984
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
72121
71985
|
*/
|
|
72122
71986
|
|
|
@@ -72138,7 +72002,7 @@ var createEnumStyle = createEnum;
|
|
|
72138
72002
|
var createValueMap = createTypeMap;
|
|
72139
72003
|
|
|
72140
72004
|
/*
|
|
72141
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
72005
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
72142
72006
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
72143
72007
|
*/
|
|
72144
72008
|
|
|
@@ -72209,7 +72073,7 @@ var _DYN_SPAN_ID$1 = "spanId"; // Count: 5
|
|
|
72209
72073
|
var _DYN_TRACE_FLAGS$1 = "traceFlags"; // Count: 6
|
|
72210
72074
|
|
|
72211
72075
|
/*
|
|
72212
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
72076
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
72213
72077
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
72214
72078
|
*/
|
|
72215
72079
|
|
|
@@ -72476,7 +72340,7 @@ function _forEachProp(target, func) {
|
|
|
72476
72340
|
* @ignore
|
|
72477
72341
|
*/
|
|
72478
72342
|
function _isDynamicCandidate(target, funcName, skipOwn) {
|
|
72479
|
-
return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)));
|
|
72343
|
+
return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype);
|
|
72480
72344
|
}
|
|
72481
72345
|
/**
|
|
72482
72346
|
* Helper to throw a TypeError exception
|
|
@@ -72494,7 +72358,7 @@ function _throwTypeError(message) {
|
|
|
72494
72358
|
*/
|
|
72495
72359
|
function _getInstanceFuncs(thisTarget) {
|
|
72496
72360
|
// Get the base proto
|
|
72497
|
-
var instFuncs =
|
|
72361
|
+
var instFuncs = objCreate(null);
|
|
72498
72362
|
// Save any existing instance functions
|
|
72499
72363
|
_forEachProp(thisTarget, function (name) {
|
|
72500
72364
|
// Don't include any dynamic prototype instances - as we only want the real functions
|
|
@@ -72540,7 +72404,7 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
|
|
|
72540
72404
|
};
|
|
72541
72405
|
}
|
|
72542
72406
|
// Start creating a new baseFuncs by creating proxies for the instance functions (as they may get replaced)
|
|
72543
|
-
var baseFuncs =
|
|
72407
|
+
var baseFuncs = objCreate(null);
|
|
72544
72408
|
_forEachProp(instFuncs, function (name) {
|
|
72545
72409
|
// Create an instance callback for passing the base function to the caller
|
|
72546
72410
|
baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
|
|
@@ -72574,8 +72438,8 @@ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
|
|
|
72574
72438
|
// We need to check whether the class name is defined directly on this prototype otherwise
|
|
72575
72439
|
// it will walk the proto chain and return any parent proto classname.
|
|
72576
72440
|
if (target && objHasOwnProperty(proto, DynClassName)) {
|
|
72577
|
-
var instFuncTable = target[DynInstFuncTable] ||
|
|
72578
|
-
instFunc = (instFuncTable[proto[DynClassName]] ||
|
|
72441
|
+
var instFuncTable = target[DynInstFuncTable] || objCreate(null);
|
|
72442
|
+
instFunc = (instFuncTable[proto[DynClassName]] || objCreate(null))[funcName];
|
|
72579
72443
|
if (!instFunc) {
|
|
72580
72444
|
// Avoid stack overflow from recursive calling the same function
|
|
72581
72445
|
_throwTypeError("Missing [" + funcName + "] " + strFunction);
|
|
@@ -72653,24 +72517,28 @@ function _populatePrototype(proto, className, target, baseInstFuncs, setInstance
|
|
|
72653
72517
|
return dynProtoProxy;
|
|
72654
72518
|
}
|
|
72655
72519
|
if (!_isObjectOrArrayPrototype(proto)) {
|
|
72656
|
-
var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] ||
|
|
72657
|
-
|
|
72658
|
-
|
|
72659
|
-
|
|
72660
|
-
instFuncTable[DynAllowInstChkTag]
|
|
72661
|
-
|
|
72662
|
-
_forEachProp(target, function (name) {
|
|
72663
|
-
// Only add overridden functions
|
|
72664
|
-
if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
|
|
72665
|
-
// Save the instance Function to the lookup table and remove it from the instance as it's not a dynamic proto function
|
|
72666
|
-
instFuncs_1[name] = target[name];
|
|
72667
|
-
delete target[name];
|
|
72668
|
-
// Add a dynamic proto if one doesn't exist or if a prototype function exists and it's not a dynamic one
|
|
72669
|
-
if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
|
|
72670
|
-
proto[name] = _createDynamicPrototype(proto, name);
|
|
72671
|
-
}
|
|
72520
|
+
var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
|
|
72521
|
+
if (!_isObjectOrArrayPrototype(instFuncTable)) {
|
|
72522
|
+
var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null)); // fetch and assign if as it may not exist yet
|
|
72523
|
+
// Set whether we are allow to lookup instances, if someone has set to false then do not re-enable
|
|
72524
|
+
if (instFuncTable[DynAllowInstChkTag] !== false) {
|
|
72525
|
+
instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
|
|
72672
72526
|
}
|
|
72673
|
-
|
|
72527
|
+
if (!_isObjectOrArrayPrototype(instFuncs_1)) {
|
|
72528
|
+
_forEachProp(target, function (name) {
|
|
72529
|
+
// Only add overridden functions
|
|
72530
|
+
if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
|
|
72531
|
+
// Save the instance Function to the lookup table and remove it from the instance as it's not a dynamic proto function
|
|
72532
|
+
instFuncs_1[name] = target[name];
|
|
72533
|
+
delete target[name];
|
|
72534
|
+
// Add a dynamic proto if one doesn't exist or if a prototype function exists and it's not a dynamic one
|
|
72535
|
+
if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
|
|
72536
|
+
proto[name] = _createDynamicPrototype(proto, name);
|
|
72537
|
+
}
|
|
72538
|
+
}
|
|
72539
|
+
});
|
|
72540
|
+
}
|
|
72541
|
+
}
|
|
72674
72542
|
}
|
|
72675
72543
|
}
|
|
72676
72544
|
/**
|
|
@@ -72822,17 +72690,53 @@ dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
|
|
|
72822
72690
|
* Copyright (c) 2022 Nevware21
|
|
72823
72691
|
* Licensed under the MIT license.
|
|
72824
72692
|
*/
|
|
72693
|
+
/**
|
|
72694
|
+
* Helper to coallesce the promise resolved / reject into a single callback to simplify error handling.
|
|
72695
|
+
* @group Await Helper
|
|
72696
|
+
* @param value - The value or promise like value to wait to be resolved or rejected.
|
|
72697
|
+
* @param cb - The callback function to call with the resulting value, if the value is not a
|
|
72698
|
+
* promise like value then the callback is called synchronously, if the value is a promise then
|
|
72699
|
+
* the callback will be called once the promise completes the resulting value will be passed as an
|
|
72700
|
+
* IAwaitResponse instance, it will be called whether any promise resolves or rejects.
|
|
72701
|
+
* @returns The value returned by the `cb` callback function, if the value is a promise then the return value
|
|
72702
|
+
* of the callback will be returned as a promise whether the callback returns a promise or not.
|
|
72703
|
+
* @example
|
|
72704
|
+
* ```ts
|
|
72705
|
+
* let promise = createPromise<number>((resolve, reject) => {
|
|
72706
|
+
* resolve(42);
|
|
72707
|
+
* });
|
|
72708
|
+
*
|
|
72709
|
+
* // Handle via doAwaitResponse
|
|
72710
|
+
* doAwaitResponse(promise, (value) => {
|
|
72711
|
+
* if (!value.rejected) {
|
|
72712
|
+
* // Do something with the value
|
|
72713
|
+
* } else {
|
|
72714
|
+
* // Do something with the reason
|
|
72715
|
+
* }
|
|
72716
|
+
* });
|
|
72717
|
+
*
|
|
72718
|
+
* // It can also handle the raw value, so you could process the result of either a
|
|
72719
|
+
* // synchrounous return of the value or a Promise
|
|
72720
|
+
* doAwaitResponse(42, (value) => {
|
|
72721
|
+
* if (!value.rejected) {
|
|
72722
|
+
* // Do something with the value
|
|
72723
|
+
* } else {
|
|
72724
|
+
* // This will never be true as the value is not a promise
|
|
72725
|
+
* }
|
|
72726
|
+
* });
|
|
72727
|
+
* ```
|
|
72728
|
+
*/
|
|
72825
72729
|
function doAwaitResponse(value, cb) {
|
|
72826
72730
|
return doAwait(value, function (value) {
|
|
72827
|
-
cb
|
|
72731
|
+
return cb ? cb({
|
|
72828
72732
|
value: value,
|
|
72829
72733
|
rejected: false
|
|
72830
|
-
});
|
|
72734
|
+
}) : value;
|
|
72831
72735
|
}, function (reason) {
|
|
72832
|
-
cb
|
|
72736
|
+
return cb ? cb({
|
|
72833
72737
|
rejected: true,
|
|
72834
72738
|
reason: reason
|
|
72835
|
-
});
|
|
72739
|
+
}) : reason;
|
|
72836
72740
|
});
|
|
72837
72741
|
}
|
|
72838
72742
|
/**
|
|
@@ -72877,10 +72781,12 @@ function doAwait(value, resolveFn, rejectFn, finallyFn) {
|
|
|
72877
72781
|
}
|
|
72878
72782
|
}
|
|
72879
72783
|
else {
|
|
72880
|
-
|
|
72784
|
+
if (resolveFn) {
|
|
72785
|
+
result = resolveFn(value);
|
|
72786
|
+
}
|
|
72881
72787
|
}
|
|
72882
72788
|
if (finallyFn) {
|
|
72883
|
-
|
|
72789
|
+
doFinally(result, finallyFn);
|
|
72884
72790
|
}
|
|
72885
72791
|
return result;
|
|
72886
72792
|
}
|
|
@@ -73395,7 +73301,7 @@ function createPromise(executor, timeout) {
|
|
|
73395
73301
|
var createAllPromise = _createAllPromise(createPromise);
|
|
73396
73302
|
|
|
73397
73303
|
/*
|
|
73398
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
73304
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
73399
73305
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
73400
73306
|
*/
|
|
73401
73307
|
|
|
@@ -73423,7 +73329,7 @@ var STR_PATH = "path";
|
|
|
73423
73329
|
var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
|
|
73424
73330
|
|
|
73425
73331
|
/*
|
|
73426
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
73332
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
73427
73333
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
73428
73334
|
*/
|
|
73429
73335
|
|
|
@@ -73729,7 +73635,7 @@ function isFeatureEnabled(feature, cfg) {
|
|
|
73729
73635
|
}
|
|
73730
73636
|
|
|
73731
73637
|
/*
|
|
73732
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
73638
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
73733
73639
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
73734
73640
|
*/
|
|
73735
73641
|
|
|
@@ -73984,7 +73890,7 @@ function sendCustomEvent(evtName, cfg, customDetails) {
|
|
|
73984
73890
|
}
|
|
73985
73891
|
|
|
73986
73892
|
/*
|
|
73987
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
73893
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
73988
73894
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
73989
73895
|
*/
|
|
73990
73896
|
|
|
@@ -74102,11 +74008,11 @@ function newId(maxLength) {
|
|
|
74102
74008
|
}
|
|
74103
74009
|
|
|
74104
74010
|
/*
|
|
74105
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74011
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
74106
74012
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
74107
74013
|
*/
|
|
74108
74014
|
|
|
74109
|
-
var version$2 = '3.0.
|
|
74015
|
+
var version$2 = '3.0.7';
|
|
74110
74016
|
var instanceName = "." + newId(6);
|
|
74111
74017
|
var _dataUid = 0;
|
|
74112
74018
|
// Accepts only:
|
|
@@ -74173,7 +74079,7 @@ function createElmNodeData(name) {
|
|
|
74173
74079
|
}
|
|
74174
74080
|
|
|
74175
74081
|
/*
|
|
74176
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74082
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
74177
74083
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
74178
74084
|
*/
|
|
74179
74085
|
|
|
@@ -74342,7 +74248,7 @@ function _applyDefaultValue(dynamicHandler, theConfig, name, defaultValue) {
|
|
|
74342
74248
|
}
|
|
74343
74249
|
|
|
74344
74250
|
/*
|
|
74345
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74251
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
74346
74252
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
74347
74253
|
*/
|
|
74348
74254
|
|
|
@@ -74482,7 +74388,7 @@ function throwInvalidAccess(message) {
|
|
|
74482
74388
|
}
|
|
74483
74389
|
|
|
74484
74390
|
/*
|
|
74485
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74391
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
74486
74392
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
74487
74393
|
*/
|
|
74488
74394
|
|
|
@@ -74712,7 +74618,7 @@ function _makeDynamicObject(state, target, name, desc) {
|
|
|
74712
74618
|
}
|
|
74713
74619
|
|
|
74714
74620
|
/*
|
|
74715
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74621
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
74716
74622
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
74717
74623
|
*/
|
|
74718
74624
|
|
|
@@ -74850,7 +74756,7 @@ function _createState(cfgHandler) {
|
|
|
74850
74756
|
}
|
|
74851
74757
|
|
|
74852
74758
|
/*
|
|
74853
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74759
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
74854
74760
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
74855
74761
|
*/
|
|
74856
74762
|
|
|
@@ -75017,7 +74923,7 @@ function onConfigChange(config, configHandler, logger) {
|
|
|
75017
74923
|
}
|
|
75018
74924
|
|
|
75019
74925
|
/*
|
|
75020
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74926
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75021
74927
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75022
74928
|
*/
|
|
75023
74929
|
|
|
@@ -75062,7 +74968,7 @@ function doUnloadAll(targets, isAsync, done) {
|
|
|
75062
74968
|
}
|
|
75063
74969
|
|
|
75064
74970
|
/*
|
|
75065
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74971
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75066
74972
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75067
74973
|
*/
|
|
75068
74974
|
|
|
@@ -75070,7 +74976,7 @@ function doUnloadAll(targets, isAsync, done) {
|
|
|
75070
74976
|
var ChannelControllerPriority = 500;
|
|
75071
74977
|
|
|
75072
74978
|
/*
|
|
75073
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
74979
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75074
74980
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75075
74981
|
*/
|
|
75076
74982
|
|
|
@@ -75156,7 +75062,7 @@ function cfgDfString(defaultValue) {
|
|
|
75156
75062
|
}
|
|
75157
75063
|
|
|
75158
75064
|
/*
|
|
75159
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
75065
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75160
75066
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75161
75067
|
*/
|
|
75162
75068
|
|
|
@@ -75201,7 +75107,7 @@ function getDebugListener(config) {
|
|
|
75201
75107
|
}
|
|
75202
75108
|
|
|
75203
75109
|
/*
|
|
75204
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
75110
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75205
75111
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75206
75112
|
*/
|
|
75207
75113
|
|
|
@@ -75456,7 +75362,7 @@ function _logInternalMessage(logger, severity, message) {
|
|
|
75456
75362
|
}
|
|
75457
75363
|
|
|
75458
75364
|
/*
|
|
75459
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
75365
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75460
75366
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75461
75367
|
*/
|
|
75462
75368
|
var _a$8, _b$2;
|
|
@@ -75843,7 +75749,7 @@ function uaDisallowsSameSiteNone(userAgent) {
|
|
|
75843
75749
|
}
|
|
75844
75750
|
|
|
75845
75751
|
/*
|
|
75846
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
75752
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75847
75753
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75848
75754
|
*/
|
|
75849
75755
|
|
|
@@ -75988,7 +75894,7 @@ var NotificationManager = /** @class */ (function () {
|
|
|
75988
75894
|
}());
|
|
75989
75895
|
|
|
75990
75896
|
/*
|
|
75991
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
75897
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
75992
75898
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
75993
75899
|
*/
|
|
75994
75900
|
|
|
@@ -76173,7 +76079,7 @@ function getGblPerfMgr() {
|
|
|
76173
76079
|
}
|
|
76174
76080
|
|
|
76175
76081
|
/*
|
|
76176
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
76082
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
76177
76083
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
76178
76084
|
*/
|
|
76179
76085
|
|
|
@@ -76202,7 +76108,7 @@ function generateW3CId() {
|
|
|
76202
76108
|
}
|
|
76203
76109
|
|
|
76204
76110
|
/*
|
|
76205
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
76111
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
76206
76112
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
76207
76113
|
*/
|
|
76208
76114
|
var DEFAULT_VERSION = "00";
|
|
@@ -76296,7 +76202,7 @@ function formatTraceParent(value) {
|
|
|
76296
76202
|
}
|
|
76297
76203
|
|
|
76298
76204
|
/*
|
|
76299
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
76205
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
76300
76206
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
76301
76207
|
*/
|
|
76302
76208
|
|
|
@@ -76413,7 +76319,7 @@ function createDistributedTraceContext(parentCtx) {
|
|
|
76413
76319
|
}
|
|
76414
76320
|
|
|
76415
76321
|
/*
|
|
76416
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
76322
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
76417
76323
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
76418
76324
|
*/
|
|
76419
76325
|
|
|
@@ -76870,7 +76776,7 @@ function createTelemetryPluginProxy(plugin, config, core) {
|
|
|
76870
76776
|
}
|
|
76871
76777
|
|
|
76872
76778
|
/*
|
|
76873
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
76779
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
76874
76780
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
76875
76781
|
*/
|
|
76876
76782
|
|
|
@@ -76899,7 +76805,7 @@ function createUnloadHandlerContainer() {
|
|
|
76899
76805
|
}
|
|
76900
76806
|
|
|
76901
76807
|
/*
|
|
76902
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
76808
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
76903
76809
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
76904
76810
|
*/
|
|
76905
76811
|
|
|
@@ -76936,7 +76842,7 @@ function createUnloadHookContainer() {
|
|
|
76936
76842
|
}
|
|
76937
76843
|
|
|
76938
76844
|
/*
|
|
76939
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
76845
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
76940
76846
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
76941
76847
|
*/
|
|
76942
76848
|
|
|
@@ -77117,7 +77023,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
|
|
|
77117
77023
|
}());
|
|
77118
77024
|
|
|
77119
77025
|
/*
|
|
77120
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
77026
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
77121
77027
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
77122
77028
|
*/
|
|
77123
77029
|
//
|
|
@@ -77200,7 +77106,7 @@ var TelemetryInitializerPlugin = /** @class */ (function (_super) {
|
|
|
77200
77106
|
}(BaseTelemetryPlugin));
|
|
77201
77107
|
|
|
77202
77108
|
/*
|
|
77203
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
77109
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
77204
77110
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
77205
77111
|
*/
|
|
77206
77112
|
|
|
@@ -78164,7 +78070,7 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
78164
78070
|
}());
|
|
78165
78071
|
|
|
78166
78072
|
/*
|
|
78167
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
78073
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
78168
78074
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
78169
78075
|
*/
|
|
78170
78076
|
|
|
@@ -78546,7 +78452,7 @@ function removePageHideEventListener(listener, evtNamespace) {
|
|
|
78546
78452
|
}
|
|
78547
78453
|
|
|
78548
78454
|
/*
|
|
78549
|
-
* Application Insights JavaScript SDK - Core, 3.0.
|
|
78455
|
+
* Application Insights JavaScript SDK - Core, 3.0.7
|
|
78550
78456
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
78551
78457
|
*/
|
|
78552
78458
|
|
|
@@ -78753,7 +78659,7 @@ function InstrumentEvent(target, evtName, callbacks, checkPrototype, checkParent
|
|
|
78753
78659
|
}
|
|
78754
78660
|
|
|
78755
78661
|
/*
|
|
78756
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
78662
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
78757
78663
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
78758
78664
|
*/
|
|
78759
78665
|
|
|
@@ -78775,7 +78681,7 @@ var strNotSpecified = "not_specified";
|
|
|
78775
78681
|
var strIkey = "iKey";
|
|
78776
78682
|
|
|
78777
78683
|
/*
|
|
78778
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
78684
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
78779
78685
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
78780
78686
|
*/
|
|
78781
78687
|
|
|
@@ -78792,7 +78698,7 @@ var RequestHeaders = createValueMap({
|
|
|
78792
78698
|
});
|
|
78793
78699
|
|
|
78794
78700
|
/*
|
|
78795
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
78701
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
78796
78702
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
78797
78703
|
*/
|
|
78798
78704
|
|
|
@@ -78842,7 +78748,7 @@ var _DYN_DURATION$1 = "duration"; // Count: 4
|
|
|
78842
78748
|
var _DYN_RECEIVED_RESPONSE = "receivedResponse"; // Count: 2
|
|
78843
78749
|
|
|
78844
78750
|
/*
|
|
78845
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
78751
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
78846
78752
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
78847
78753
|
*/
|
|
78848
78754
|
|
|
@@ -78964,7 +78870,7 @@ function dsPadNumber(num) {
|
|
|
78964
78870
|
}
|
|
78965
78871
|
|
|
78966
78872
|
/*
|
|
78967
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
78873
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
78968
78874
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
78969
78875
|
*/
|
|
78970
78876
|
|
|
@@ -79043,7 +78949,7 @@ function urlParseFullHost(url, inclPort) {
|
|
|
79043
78949
|
}
|
|
79044
78950
|
|
|
79045
78951
|
/*
|
|
79046
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
78952
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79047
78953
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79048
78954
|
*/
|
|
79049
78955
|
|
|
@@ -79227,22 +79133,17 @@ function createDistributedTraceContextFromTrace(telemetryTrace, parentCtx) {
|
|
|
79227
79133
|
}
|
|
79228
79134
|
|
|
79229
79135
|
/*
|
|
79230
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
79136
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79231
79137
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79232
79138
|
*/
|
|
79233
79139
|
|
|
79234
79140
|
var StorageType = createEnumStyle({
|
|
79235
79141
|
LocalStorage: 0 /* eStorageType.LocalStorage */,
|
|
79236
79142
|
SessionStorage: 1 /* eStorageType.SessionStorage */
|
|
79237
|
-
});
|
|
79238
|
-
createEnumStyle({
|
|
79239
|
-
AI: 0 /* eDistributedTracingModes.AI */,
|
|
79240
|
-
AI_AND_W3C: 1 /* eDistributedTracingModes.AI_AND_W3C */,
|
|
79241
|
-
W3C: 2 /* eDistributedTracingModes.W3C */
|
|
79242
79143
|
});
|
|
79243
79144
|
|
|
79244
79145
|
/*
|
|
79245
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
79146
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79246
79147
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79247
79148
|
*/
|
|
79248
79149
|
|
|
@@ -79413,7 +79314,7 @@ function utlRemoveSessionStorage(logger, name) {
|
|
|
79413
79314
|
}
|
|
79414
79315
|
|
|
79415
79316
|
/*
|
|
79416
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
79317
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79417
79318
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79418
79319
|
*/
|
|
79419
79320
|
var THROTTLE_STORAGE_PREFIX = "appInsightsThrottle";
|
|
@@ -79796,7 +79697,7 @@ var ThrottleMgr = /** @class */ (function () {
|
|
|
79796
79697
|
}());
|
|
79797
79698
|
|
|
79798
79699
|
/*
|
|
79799
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
79700
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79800
79701
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79801
79702
|
*/
|
|
79802
79703
|
|
|
@@ -79833,7 +79734,7 @@ function parseConnectionString(connectionString) {
|
|
|
79833
79734
|
}
|
|
79834
79735
|
|
|
79835
79736
|
/*
|
|
79836
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
79737
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79837
79738
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79838
79739
|
*/
|
|
79839
79740
|
|
|
@@ -79865,7 +79766,7 @@ var Envelope = /** @class */ (function () {
|
|
|
79865
79766
|
}());
|
|
79866
79767
|
|
|
79867
79768
|
/*
|
|
79868
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
79769
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79869
79770
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79870
79771
|
*/
|
|
79871
79772
|
|
|
@@ -79892,7 +79793,7 @@ var Event$1 = /** @class */ (function () {
|
|
|
79892
79793
|
}());
|
|
79893
79794
|
|
|
79894
79795
|
/*
|
|
79895
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
79796
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
79896
79797
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
79897
79798
|
*/
|
|
79898
79799
|
|
|
@@ -80408,7 +80309,7 @@ var _StackFrame = /** @class */ (function () {
|
|
|
80408
80309
|
}());
|
|
80409
80310
|
|
|
80410
80311
|
/*
|
|
80411
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80312
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80412
80313
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80413
80314
|
*/
|
|
80414
80315
|
|
|
@@ -80436,7 +80337,7 @@ var DataPoint = /** @class */ (function () {
|
|
|
80436
80337
|
}());
|
|
80437
80338
|
|
|
80438
80339
|
/*
|
|
80439
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80340
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80440
80341
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80441
80342
|
*/
|
|
80442
80343
|
|
|
@@ -80469,7 +80370,7 @@ var Metric = /** @class */ (function () {
|
|
|
80469
80370
|
}());
|
|
80470
80371
|
|
|
80471
80372
|
/*
|
|
80472
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80373
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80473
80374
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80474
80375
|
*/
|
|
80475
80376
|
|
|
@@ -80498,7 +80399,7 @@ function isCrossOriginError(message, url, lineNumber, columnNumber, error) {
|
|
|
80498
80399
|
}
|
|
80499
80400
|
|
|
80500
80401
|
/*
|
|
80501
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80402
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80502
80403
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80503
80404
|
*/
|
|
80504
80405
|
|
|
@@ -80533,7 +80434,7 @@ var PageView = /** @class */ (function () {
|
|
|
80533
80434
|
}());
|
|
80534
80435
|
|
|
80535
80436
|
/*
|
|
80536
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80437
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80537
80438
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80538
80439
|
*/
|
|
80539
80440
|
|
|
@@ -80589,7 +80490,7 @@ var RemoteDependencyData = /** @class */ (function () {
|
|
|
80589
80490
|
}());
|
|
80590
80491
|
|
|
80591
80492
|
/*
|
|
80592
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80493
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80593
80494
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80594
80495
|
*/
|
|
80595
80496
|
|
|
@@ -80620,7 +80521,7 @@ var Trace = /** @class */ (function () {
|
|
|
80620
80521
|
}());
|
|
80621
80522
|
|
|
80622
80523
|
/*
|
|
80623
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80524
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80624
80525
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80625
80526
|
*/
|
|
80626
80527
|
|
|
@@ -80663,7 +80564,7 @@ var PageViewPerformance = /** @class */ (function () {
|
|
|
80663
80564
|
}());
|
|
80664
80565
|
|
|
80665
80566
|
/*
|
|
80666
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80567
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80667
80568
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80668
80569
|
*/
|
|
80669
80570
|
|
|
@@ -80687,7 +80588,7 @@ var Data = /** @class */ (function () {
|
|
|
80687
80588
|
}());
|
|
80688
80589
|
|
|
80689
80590
|
/*
|
|
80690
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80591
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80691
80592
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80692
80593
|
*/
|
|
80693
80594
|
|
|
@@ -80772,7 +80673,7 @@ var ContextTagKeys = /** @class */ (function (_super) {
|
|
|
80772
80673
|
})));
|
|
80773
80674
|
|
|
80774
80675
|
/*
|
|
80775
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80676
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80776
80677
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80777
80678
|
*/
|
|
80778
80679
|
|
|
@@ -80819,7 +80720,7 @@ function createTelemetryItem(item, baseType, envelopeName, logger, customPropert
|
|
|
80819
80720
|
}
|
|
80820
80721
|
|
|
80821
80722
|
/*
|
|
80822
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80723
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80823
80724
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80824
80725
|
*/
|
|
80825
80726
|
var Extensions = {
|
|
@@ -80835,7 +80736,7 @@ var Extensions = {
|
|
|
80835
80736
|
var CtxTagKeys = new ContextTagKeys();
|
|
80836
80737
|
|
|
80837
80738
|
/*
|
|
80838
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80739
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80839
80740
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80840
80741
|
*/
|
|
80841
80742
|
|
|
@@ -80855,7 +80756,7 @@ function createDomEvent(eventName) {
|
|
|
80855
80756
|
}
|
|
80856
80757
|
|
|
80857
80758
|
/*
|
|
80858
|
-
* Application Insights JavaScript SDK - Common, 3.0.
|
|
80759
|
+
* Application Insights JavaScript SDK - Common, 3.0.7
|
|
80859
80760
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80860
80761
|
*/
|
|
80861
80762
|
|
|
@@ -80864,7 +80765,7 @@ var BreezeChannelIdentifier = "AppInsightsChannelPlugin";
|
|
|
80864
80765
|
var AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
|
|
80865
80766
|
|
|
80866
80767
|
/*
|
|
80867
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.0.
|
|
80768
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.0.7
|
|
80868
80769
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80869
80770
|
*/
|
|
80870
80771
|
|
|
@@ -80924,7 +80825,7 @@ var _DYN_CONNECT_END = "connectEnd"; // Count: 4
|
|
|
80924
80825
|
var _DYN_PAGE_VISIT_START_TIM18 = "pageVisitStartTime"; // Count: 2
|
|
80925
80826
|
|
|
80926
80827
|
/*
|
|
80927
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.0.
|
|
80828
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.0.7
|
|
80928
80829
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
80929
80830
|
*/
|
|
80930
80831
|
|
|
@@ -81121,7 +81022,7 @@ var PageViewManager = /** @class */ (function () {
|
|
|
81121
81022
|
}());
|
|
81122
81023
|
|
|
81123
81024
|
/*
|
|
81124
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.0.
|
|
81025
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.0.7
|
|
81125
81026
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
81126
81027
|
*/
|
|
81127
81028
|
|
|
@@ -81289,7 +81190,7 @@ var PageViewPerformanceManager = /** @class */ (function () {
|
|
|
81289
81190
|
}());
|
|
81290
81191
|
|
|
81291
81192
|
/*
|
|
81292
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.0.
|
|
81193
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.0.7
|
|
81293
81194
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
81294
81195
|
*/
|
|
81295
81196
|
|
|
@@ -81390,7 +81291,7 @@ var PageVisitData = /** @class */ (function () {
|
|
|
81390
81291
|
}());
|
|
81391
81292
|
|
|
81392
81293
|
/*
|
|
81393
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.0.
|
|
81294
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.0.7
|
|
81394
81295
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
81395
81296
|
*/
|
|
81396
81297
|
|
|
@@ -81425,7 +81326,7 @@ var Timing = /** @class */ (function () {
|
|
|
81425
81326
|
}());
|
|
81426
81327
|
|
|
81427
81328
|
/*
|
|
81428
|
-
* Application Insights JavaScript SDK - Web Analytics, 3.0.
|
|
81329
|
+
* Application Insights JavaScript SDK - Web Analytics, 3.0.7
|
|
81429
81330
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
81430
81331
|
*/
|
|
81431
81332
|
/**
|
|
@@ -82110,12 +82011,12 @@ var AnalyticsPlugin = /** @class */ (function (_super) {
|
|
|
82110
82011
|
// Removed Stub for AnalyticsPlugin.prototype._onerror.
|
|
82111
82012
|
// Removed Stub for AnalyticsPlugin.prototype.addTelemetryInitializer.
|
|
82112
82013
|
// Removed Stub for AnalyticsPlugin.prototype.initialize.
|
|
82113
|
-
AnalyticsPlugin.Version = '3.0.
|
|
82014
|
+
AnalyticsPlugin.Version = '3.0.7'; // Not currently used anywhere
|
|
82114
82015
|
return AnalyticsPlugin;
|
|
82115
82016
|
}(BaseTelemetryPlugin));
|
|
82116
82017
|
|
|
82117
82018
|
/*
|
|
82118
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
82019
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
82119
82020
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
82120
82021
|
*/
|
|
82121
82022
|
|
|
@@ -82133,7 +82034,7 @@ var _DYN_NON_OVERRIDE_CONFIGS = "nonOverrideConfigs"; // Count: 2
|
|
|
82133
82034
|
var _DYN_SCHEDULE_FETCH_TIMEO1 = "scheduleFetchTimeout"; // Count: 2
|
|
82134
82035
|
|
|
82135
82036
|
/*
|
|
82136
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
82037
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
82137
82038
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
82138
82039
|
*/
|
|
82139
82040
|
/**
|
|
@@ -82301,7 +82202,7 @@ function _overrideCdnCfgByFeature(field, ftVal, config) {
|
|
|
82301
82202
|
}
|
|
82302
82203
|
|
|
82303
82204
|
/*
|
|
82304
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
82205
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
82305
82206
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
82306
82207
|
*/
|
|
82307
82208
|
/**
|
|
@@ -82678,7 +82579,7 @@ var CfgSyncPlugin = /** @class */ (function (_super) {
|
|
|
82678
82579
|
}(BaseTelemetryPlugin));
|
|
82679
82580
|
|
|
82680
82581
|
/*
|
|
82681
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
82582
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
82682
82583
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
82683
82584
|
*/
|
|
82684
82585
|
|
|
@@ -82691,7 +82592,7 @@ var CfgSyncPlugin = /** @class */ (function (_super) {
|
|
|
82691
82592
|
var STR_DURATION$1 = "duration";
|
|
82692
82593
|
|
|
82693
82594
|
/*
|
|
82694
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
82595
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
82695
82596
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
82696
82597
|
*/
|
|
82697
82598
|
|
|
@@ -82705,7 +82606,7 @@ var STR_DURATION$1 = "duration";
|
|
|
82705
82606
|
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
82706
82607
|
var _DYN_TAGS = "tags"; // Count: 17
|
|
82707
82608
|
var _DYN_DEVICE_TYPE = "deviceType"; // Count: 3
|
|
82708
|
-
var _DYN_DATA = "data"; // Count:
|
|
82609
|
+
var _DYN_DATA = "data"; // Count: 17
|
|
82709
82610
|
var _DYN_NAME$1 = "name"; // Count: 8
|
|
82710
82611
|
var _DYN_TRACE_ID$1 = "traceID"; // Count: 5
|
|
82711
82612
|
var _DYN_LENGTH$2 = "length"; // Count: 38
|
|
@@ -82725,7 +82626,7 @@ var _DYN_EMIT_LINE_DELIMITED_0 = "emitLineDelimitedJson"; // Count: 3
|
|
|
82725
82626
|
var _DYN_CLEAR = "clear"; // Count: 7
|
|
82726
82627
|
var _DYN_BATCH_PAYLOADS = "batchPayloads"; // Count: 3
|
|
82727
82628
|
var _DYN_CREATE_NEW = "createNew"; // Count: 3
|
|
82728
|
-
var _DYN_MARK_AS_SENT = "markAsSent"; // Count:
|
|
82629
|
+
var _DYN_MARK_AS_SENT = "markAsSent"; // Count: 5
|
|
82729
82630
|
var _DYN_CLEAR_SENT = "clearSent"; // Count: 5
|
|
82730
82631
|
var _DYN_BUFFER_OVERRIDE = "bufferOverride"; // Count: 3
|
|
82731
82632
|
var _DYN__BUFFER__KEY = "BUFFER_KEY"; // Count: 5
|
|
@@ -82733,7 +82634,7 @@ var _DYN__SENT__BUFFER__KEY = "SENT_BUFFER_KEY"; // Count: 8
|
|
|
82733
82634
|
var _DYN__MAX__BUFFER__SIZE = "MAX_BUFFER_SIZE"; // Count: 5
|
|
82734
82635
|
var _DYN_SEND_POST = "sendPOST"; // Count: 3
|
|
82735
82636
|
var _DYN_TRIGGER_SEND = "triggerSend"; // Count: 5
|
|
82736
|
-
var _DYN_DIAG_LOG = "diagLog"; // Count:
|
|
82637
|
+
var _DYN_DIAG_LOG = "diagLog"; // Count: 17
|
|
82737
82638
|
var _DYN__SENDER = "_sender"; // Count: 5
|
|
82738
82639
|
var _DYN_CUSTOM_HEADERS = "customHeaders"; // Count: 3
|
|
82739
82640
|
var _DYN_MAX_BATCH_SIZE_IN_BY1 = "maxBatchSizeInBytes"; // Count: 2
|
|
@@ -82741,17 +82642,18 @@ var _DYN_ONUNLOAD_DISABLE_BEA2 = "onunloadDisableBeacon"; // Count: 2
|
|
|
82741
82642
|
var _DYN_IS_BEACON_API_DISABL3 = "isBeaconApiDisabled"; // Count: 3
|
|
82742
82643
|
var _DYN_ALWAYS_USE_XHR_OVERR4 = "alwaysUseXhrOverride"; // Count: 2
|
|
82743
82644
|
var _DYN_ENABLE_SESSION_STORA5 = "enableSessionStorageBuffer"; // Count: 2
|
|
82744
|
-
var _DYN__BUFFER = "_buffer"; // Count:
|
|
82645
|
+
var _DYN__BUFFER = "_buffer"; // Count: 10
|
|
82745
82646
|
var _DYN_ONUNLOAD_DISABLE_FET6 = "onunloadDisableFetch"; // Count: 2
|
|
82647
|
+
var _DYN_DISABLE_SEND_BEACON_7 = "disableSendBeaconSplit"; // Count: 2
|
|
82746
82648
|
var _DYN_INSTRUMENTATION_KEY$1 = "instrumentationKey"; // Count: 2
|
|
82747
82649
|
var _DYN_CONVERT_UNDEFINED = "convertUndefined"; // Count: 2
|
|
82748
82650
|
var _DYN_MAX_BATCH_INTERVAL = "maxBatchInterval"; // Count: 2
|
|
82749
82651
|
var _DYN_BASE_TYPE = "baseType"; // Count: 4
|
|
82750
82652
|
var _DYN_SAMPLE_RATE = "sampleRate"; // Count: 4
|
|
82751
|
-
var
|
|
82653
|
+
var _DYN__XHR_READY_STATE_CHA8 = "_xhrReadyStateChange"; // Count: 2
|
|
82752
82654
|
var _DYN__ON_ERROR = "_onError"; // Count: 7
|
|
82753
82655
|
var _DYN__ON_PARTIAL_SUCCESS = "_onPartialSuccess"; // Count: 3
|
|
82754
|
-
var _DYN__ON_SUCCESS = "_onSuccess"; // Count:
|
|
82656
|
+
var _DYN__ON_SUCCESS = "_onSuccess"; // Count: 6
|
|
82755
82657
|
var _DYN_ITEMS_ACCEPTED = "itemsAccepted"; // Count: 5
|
|
82756
82658
|
var _DYN_ITEMS_RECEIVED = "itemsReceived"; // Count: 6
|
|
82757
82659
|
var _DYN_ORI_PAYLOAD = "oriPayload"; // Count: 5
|
|
@@ -82761,7 +82663,7 @@ var _DYN_GET_SAMPLING_SCORE = "getSamplingScore"; // Count: 2
|
|
|
82761
82663
|
var _DYN_GET_HASH_CODE_SCORE = "getHashCodeScore"; // Count: 4
|
|
82762
82664
|
|
|
82763
82665
|
/*
|
|
82764
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
82666
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
82765
82667
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
82766
82668
|
*/
|
|
82767
82669
|
// these two constants are used to filter out properties not needed when trying to extract custom properties and measurements from the incoming payload
|
|
@@ -82902,7 +82804,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
|
|
|
82902
82804
|
}
|
|
82903
82805
|
}
|
|
82904
82806
|
var EnvelopeCreator = {
|
|
82905
|
-
Version: '3.0.
|
|
82807
|
+
Version: '3.0.7'
|
|
82906
82808
|
};
|
|
82907
82809
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
82908
82810
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -83060,7 +82962,7 @@ function TraceEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
|
83060
82962
|
}
|
|
83061
82963
|
|
|
83062
82964
|
/*
|
|
83063
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
82965
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
83064
82966
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
83065
82967
|
*/
|
|
83066
82968
|
function _disableEvents(target, evtNamespace) {
|
|
@@ -83149,7 +83051,7 @@ function createOfflineListener(parentEvtNamespace) {
|
|
|
83149
83051
|
}
|
|
83150
83052
|
|
|
83151
83053
|
/*
|
|
83152
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
83054
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
83153
83055
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
83154
83056
|
*/
|
|
83155
83057
|
var BaseSendBuffer = /** @class */ (function () {
|
|
@@ -83390,7 +83292,7 @@ var SessionStorageSendBuffer = /** @class */ (function (_super) {
|
|
|
83390
83292
|
}(BaseSendBuffer));
|
|
83391
83293
|
|
|
83392
83294
|
/*
|
|
83393
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
83295
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
83394
83296
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
83395
83297
|
*/
|
|
83396
83298
|
var Serializer = /** @class */ (function () {
|
|
@@ -83556,7 +83458,7 @@ var Serializer = /** @class */ (function () {
|
|
|
83556
83458
|
}());
|
|
83557
83459
|
|
|
83558
83460
|
/*
|
|
83559
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
83461
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
83560
83462
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
83561
83463
|
*/
|
|
83562
83464
|
|
|
@@ -83592,7 +83494,7 @@ var HashCodeScoreGenerator = /** @class */ (function () {
|
|
|
83592
83494
|
}());
|
|
83593
83495
|
|
|
83594
83496
|
/*
|
|
83595
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
83497
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
83596
83498
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
83597
83499
|
*/
|
|
83598
83500
|
|
|
@@ -83626,7 +83528,7 @@ var SamplingScoreGenerator = /** @class */ (function () {
|
|
|
83626
83528
|
}());
|
|
83627
83529
|
|
|
83628
83530
|
/*
|
|
83629
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
83531
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
83630
83532
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
83631
83533
|
*/
|
|
83632
83534
|
|
|
@@ -83662,7 +83564,7 @@ var Sample = /** @class */ (function () {
|
|
|
83662
83564
|
}());
|
|
83663
83565
|
|
|
83664
83566
|
/*
|
|
83665
|
-
* Application Insights JavaScript SDK - Channel, 3.0.
|
|
83567
|
+
* Application Insights JavaScript SDK - Channel, 3.0.7
|
|
83666
83568
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
83667
83569
|
*/
|
|
83668
83570
|
var _a$3, _b$1;
|
|
@@ -83691,6 +83593,7 @@ var defaultAppInsightsChannelConfig = objDeepFreeze((_a$3 = {
|
|
|
83691
83593
|
_a$3[_DYN_ENABLE_SESSION_STORA5 /* @min:enableSessionStorageBuffer */] = cfgDfBoolean(true),
|
|
83692
83594
|
_a$3.isRetryDisabled = cfgDfBoolean(),
|
|
83693
83595
|
_a$3[_DYN_IS_BEACON_API_DISABL3 /* @min:isBeaconApiDisabled */] = cfgDfBoolean(true),
|
|
83596
|
+
_a$3[_DYN_DISABLE_SEND_BEACON_7 /* @min:disableSendBeaconSplit */] = cfgDfBoolean(),
|
|
83694
83597
|
_a$3.disableXhr = cfgDfBoolean(),
|
|
83695
83598
|
_a$3[_DYN_ONUNLOAD_DISABLE_FET6 /* @min:onunloadDisableFetch */] = cfgDfBoolean(),
|
|
83696
83599
|
_a$3[_DYN_ONUNLOAD_DISABLE_BEA2 /* @min:onunloadDisableBeacon */] = cfgDfBoolean(),
|
|
@@ -83752,6 +83655,8 @@ var Sender = /** @class */ (function (_super) {
|
|
|
83752
83655
|
var _disableXhr;
|
|
83753
83656
|
var _fetchKeepAlive;
|
|
83754
83657
|
var _xhrSend;
|
|
83658
|
+
var _fallbackSend;
|
|
83659
|
+
var _disableBeaconSplit;
|
|
83755
83660
|
dynamicProto(Sender, _this, function (_self, _base) {
|
|
83756
83661
|
_initDefaults();
|
|
83757
83662
|
_self.pause = function () {
|
|
@@ -83873,6 +83778,7 @@ var Sender = /** @class */ (function (_super) {
|
|
|
83873
83778
|
_sessionStorageUsed = canUseSessionStorage;
|
|
83874
83779
|
_bufferOverrideUsed = bufferOverride;
|
|
83875
83780
|
_fetchKeepAlive = !senderConfig[_DYN_ONUNLOAD_DISABLE_FET6 /* @min:%2eonunloadDisableFetch */] && isFetchSupported(true);
|
|
83781
|
+
_disableBeaconSplit = !!senderConfig[_DYN_DISABLE_SEND_BEACON_7 /* @min:%2edisableSendBeaconSplit */];
|
|
83876
83782
|
_self._sample = new Sample(senderConfig.samplingPercentage, diagLog);
|
|
83877
83783
|
_instrumentationKey = senderConfig[_DYN_INSTRUMENTATION_KEY$1 /* @min:%2einstrumentationKey */];
|
|
83878
83784
|
if (!_validateInstrumentationKey(_instrumentationKey, config)) {
|
|
@@ -83896,6 +83802,9 @@ var Sender = /** @class */ (function (_super) {
|
|
|
83896
83802
|
_xhrSend = function (payload, isAsync) {
|
|
83897
83803
|
return _doSend(xhrInterface, payload, isAsync);
|
|
83898
83804
|
};
|
|
83805
|
+
_fallbackSend = function (payload, isAsync) {
|
|
83806
|
+
return _doSend(xhrInterface, payload, isAsync, false);
|
|
83807
|
+
};
|
|
83899
83808
|
if (!senderConfig[_DYN_IS_BEACON_API_DISABL3 /* @min:%2eisBeaconApiDisabled */] && isBeaconsSupported()) {
|
|
83900
83809
|
// Config is set to always used beacon sending
|
|
83901
83810
|
httpInterface = _getSenderInterface([3 /* TransportType.Beacon */], false);
|
|
@@ -84008,7 +83917,7 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84008
83917
|
/**
|
|
84009
83918
|
* xhr state changes
|
|
84010
83919
|
*/
|
|
84011
|
-
_self[
|
|
83920
|
+
_self[_DYN__XHR_READY_STATE_CHA8 /* @min:%2e_xhrReadyStateChange */] = function (xhr, payload, countOfItemsInPayload) {
|
|
84012
83921
|
if (xhr.readyState === 4) {
|
|
84013
83922
|
_checkResponsStatus(xhr.status, payload, xhr.responseURL, countOfItemsInPayload, _formatErrorMessageXhr(xhr), _getResponseText(xhr) || xhr.response);
|
|
84014
83923
|
}
|
|
@@ -84163,9 +84072,12 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84163
84072
|
if (status === 200 && payload) {
|
|
84164
84073
|
_self._onSuccess(payload, payload[_DYN_LENGTH$2 /* @min:%2elength */]);
|
|
84165
84074
|
}
|
|
84166
|
-
|
|
84075
|
+
else {
|
|
84076
|
+
response && _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, response);
|
|
84077
|
+
}
|
|
84167
84078
|
}
|
|
84168
|
-
function _doSend(sendInterface, payload, isAsync) {
|
|
84079
|
+
function _doSend(sendInterface, payload, isAsync, markAsSent) {
|
|
84080
|
+
if (markAsSent === void 0) { markAsSent = true; }
|
|
84169
84081
|
var onComplete = function (status, headers, response) {
|
|
84170
84082
|
return _getOnComplete(payload, status, headers, response);
|
|
84171
84083
|
};
|
|
@@ -84174,7 +84086,9 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84174
84086
|
if (sendPostFunc && payloadData) {
|
|
84175
84087
|
// ***********************************************************************************************
|
|
84176
84088
|
// mark payload as sent at the beginning of calling each send function
|
|
84177
|
-
|
|
84089
|
+
if (markAsSent) {
|
|
84090
|
+
_self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);
|
|
84091
|
+
}
|
|
84178
84092
|
return sendPostFunc(payloadData, onComplete, !isAsync);
|
|
84179
84093
|
}
|
|
84180
84094
|
return null;
|
|
@@ -84294,9 +84208,6 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84294
84208
|
}
|
|
84295
84209
|
}
|
|
84296
84210
|
function _doUnloadSend(payload, isAsync) {
|
|
84297
|
-
var onComplete = function (status, headers, response) {
|
|
84298
|
-
return _getOnComplete(payload, status, headers, response);
|
|
84299
|
-
};
|
|
84300
84211
|
if (_syncUnloadSender) {
|
|
84301
84212
|
// We are unloading so always call the sender with sync set to false
|
|
84302
84213
|
_syncUnloadSender(payload, false);
|
|
@@ -84304,19 +84215,26 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84304
84215
|
else {
|
|
84305
84216
|
// Fallback to the previous beacon Sender (which causes a CORB warning on chrome now)
|
|
84306
84217
|
var payloadData = _getPayload(payload);
|
|
84307
|
-
_beaconSender(payloadData
|
|
84218
|
+
_beaconSender(payloadData);
|
|
84308
84219
|
}
|
|
84309
84220
|
}
|
|
84310
84221
|
function _doBeaconSend(payload, oncomplete) {
|
|
84311
84222
|
var nav = getNavigator();
|
|
84312
84223
|
var url = _endpointUrl;
|
|
84224
|
+
var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];
|
|
84225
|
+
// Chrome only allows CORS-safelisted values for the sendBeacon data argument
|
|
84226
|
+
// see: https://bugs.chromium.org/p/chromium/issues/detail?id=720283
|
|
84227
|
+
var batch = buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);
|
|
84313
84228
|
// Chrome only allows CORS-safelisted values for the sendBeacon data argument
|
|
84314
84229
|
// see: https://bugs.chromium.org/p/chromium/issues/detail?id=720283
|
|
84315
|
-
var plainTextBatch = new Blob([
|
|
84230
|
+
var plainTextBatch = new Blob([batch], { type: "text/plain;charset=UTF-8" });
|
|
84316
84231
|
// The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.
|
|
84317
84232
|
var queued = nav.sendBeacon(url, plainTextBatch);
|
|
84318
84233
|
if (queued) {
|
|
84319
|
-
|
|
84234
|
+
// Should NOT pass onComplete directly since onComplete will always be called at full batch level
|
|
84235
|
+
//buffer.markAsSent(payload);
|
|
84236
|
+
// no response from beaconSender, clear buffer
|
|
84237
|
+
_self._onSuccess(payload, payload[_DYN_LENGTH$2 /* @min:%2elength */]);
|
|
84320
84238
|
}
|
|
84321
84239
|
return queued;
|
|
84322
84240
|
}
|
|
@@ -84329,25 +84247,27 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84329
84247
|
*/
|
|
84330
84248
|
function _beaconSender(payload, oncomplete, sync) {
|
|
84331
84249
|
var internalPayload = payload;
|
|
84332
|
-
var data = internalPayload && internalPayload[
|
|
84333
|
-
if (
|
|
84250
|
+
var data = internalPayload && internalPayload[_DYN_ORI_PAYLOAD /* @min:%2eoriPayload */];
|
|
84251
|
+
if (isArray(data) && data[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
|
|
84334
84252
|
// The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.
|
|
84335
|
-
if (!_doBeaconSend(data
|
|
84336
|
-
|
|
84337
|
-
|
|
84338
|
-
|
|
84339
|
-
if (oriPayload[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
|
|
84253
|
+
if (!_doBeaconSend(data)) {
|
|
84254
|
+
if (!_disableBeaconSplit) {
|
|
84255
|
+
// Failed to send entire payload so try and split data and try to send as much events as possible
|
|
84256
|
+
var droppedPayload = [];
|
|
84340
84257
|
for (var lp = 0; lp < data[_DYN_LENGTH$2 /* @min:%2elength */]; lp++) {
|
|
84341
|
-
var thePayload =
|
|
84342
|
-
|
|
84343
|
-
if (!_doBeaconSend(batch, oncomplete)) {
|
|
84258
|
+
var thePayload = data[lp];
|
|
84259
|
+
if (!_doBeaconSend([thePayload])) {
|
|
84344
84260
|
// Can't send anymore, so split the batch and drop the rest
|
|
84345
84261
|
droppedPayload[_DYN_PUSH /* @min:%2epush */](thePayload);
|
|
84346
84262
|
}
|
|
84347
84263
|
}
|
|
84264
|
+
if (droppedPayload[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
|
|
84265
|
+
_fallbackSend && _fallbackSend(droppedPayload, true);
|
|
84266
|
+
_throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, ". " + "Failed to send telemetry with Beacon API, retried with normal sender.");
|
|
84267
|
+
}
|
|
84348
84268
|
}
|
|
84349
|
-
|
|
84350
|
-
|
|
84269
|
+
else {
|
|
84270
|
+
_fallbackSend && _fallbackSend(data, true);
|
|
84351
84271
|
_throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, ". " + "Failed to send telemetry with Beacon API, retried with normal sender.");
|
|
84352
84272
|
}
|
|
84353
84273
|
}
|
|
@@ -84411,16 +84331,17 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84411
84331
|
payloadSize += payload[lp][_DYN_LENGTH$2 /* @min:%2elength */];
|
|
84412
84332
|
}
|
|
84413
84333
|
var payloadData = _getPayload(payload);
|
|
84334
|
+
_self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);
|
|
84414
84335
|
if ((_syncFetchPayload + payloadSize) <= FetchSyncRequestSizeLimitBytes) {
|
|
84415
84336
|
_doFetchSender(payloadData, onComplete, true);
|
|
84416
84337
|
}
|
|
84417
84338
|
else if (isBeaconsSupported()) {
|
|
84418
84339
|
// Fallback to beacon sender as we at least get told which events can't be scheduled
|
|
84419
|
-
_beaconSender(payloadData
|
|
84340
|
+
_beaconSender(payloadData);
|
|
84420
84341
|
}
|
|
84421
84342
|
else {
|
|
84422
84343
|
// Payload is going to be too big so just try and send via XHR
|
|
84423
|
-
|
|
84344
|
+
_fallbackSend && _fallbackSend(payload, true);
|
|
84424
84345
|
_throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, ". " + "Failed to send telemetry with Beacon API, retried with xhrSender.");
|
|
84425
84346
|
}
|
|
84426
84347
|
}
|
|
@@ -84735,7 +84656,9 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84735
84656
|
_namePrefix = UNDEFINED_VALUE$1;
|
|
84736
84657
|
_disableXhr = false;
|
|
84737
84658
|
_fetchKeepAlive = false;
|
|
84659
|
+
_disableBeaconSplit = false;
|
|
84738
84660
|
_xhrSend = null;
|
|
84661
|
+
_fallbackSend = null;
|
|
84739
84662
|
objDefine(_self, "_senderConfig", {
|
|
84740
84663
|
g: function () {
|
|
84741
84664
|
return objExtend({}, defaultAppInsightsChannelConfig);
|
|
@@ -84773,7 +84696,7 @@ var Sender = /** @class */ (function (_super) {
|
|
|
84773
84696
|
}(BaseTelemetryPlugin));
|
|
84774
84697
|
|
|
84775
84698
|
/*
|
|
84776
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.
|
|
84699
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
|
|
84777
84700
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
84778
84701
|
*/
|
|
84779
84702
|
|
|
@@ -84787,7 +84710,7 @@ var STR_DURATION = "duration";
|
|
|
84787
84710
|
var STR_PROPERTIES = "properties";
|
|
84788
84711
|
|
|
84789
84712
|
/*
|
|
84790
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.
|
|
84713
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
|
|
84791
84714
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
84792
84715
|
*/
|
|
84793
84716
|
|
|
@@ -84857,7 +84780,7 @@ var _DYN_AJAX_TOTAL_DURATION = "ajaxTotalDuration"; // Count: 3
|
|
|
84857
84780
|
var _DYN_EVENT_TRACE_CTX = "eventTraceCtx"; // Count: 3
|
|
84858
84781
|
|
|
84859
84782
|
/*
|
|
84860
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.
|
|
84783
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
|
|
84861
84784
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
84862
84785
|
*/
|
|
84863
84786
|
|
|
@@ -85151,7 +85074,7 @@ var ajaxRecord = /** @class */ (function () {
|
|
|
85151
85074
|
}());
|
|
85152
85075
|
|
|
85153
85076
|
/*
|
|
85154
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.
|
|
85077
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
|
|
85155
85078
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
85156
85079
|
*/
|
|
85157
85080
|
|
|
@@ -86299,7 +86222,7 @@ var AjaxMonitor = /** @class */ (function (_super) {
|
|
|
86299
86222
|
}(BaseTelemetryPlugin));
|
|
86300
86223
|
|
|
86301
86224
|
/*
|
|
86302
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86225
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86303
86226
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86304
86227
|
*/
|
|
86305
86228
|
|
|
@@ -86311,7 +86234,7 @@ var Application = /** @class */ (function () {
|
|
|
86311
86234
|
}());
|
|
86312
86235
|
|
|
86313
86236
|
/*
|
|
86314
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86237
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86315
86238
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86316
86239
|
*/
|
|
86317
86240
|
|
|
@@ -86331,11 +86254,11 @@ var Device = /** @class */ (function () {
|
|
|
86331
86254
|
}());
|
|
86332
86255
|
|
|
86333
86256
|
/*
|
|
86334
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86257
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86335
86258
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86336
86259
|
*/
|
|
86337
86260
|
|
|
86338
|
-
var Version = '3.0.
|
|
86261
|
+
var Version = '3.0.7';
|
|
86339
86262
|
var Internal = /** @class */ (function () {
|
|
86340
86263
|
/**
|
|
86341
86264
|
* Constructs a new instance of the internal telemetry data class.
|
|
@@ -86352,7 +86275,7 @@ var Internal = /** @class */ (function () {
|
|
|
86352
86275
|
}());
|
|
86353
86276
|
|
|
86354
86277
|
/*
|
|
86355
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86278
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86356
86279
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86357
86280
|
*/
|
|
86358
86281
|
|
|
@@ -86364,7 +86287,7 @@ var Location = /** @class */ (function () {
|
|
|
86364
86287
|
}());
|
|
86365
86288
|
|
|
86366
86289
|
/*
|
|
86367
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86290
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86368
86291
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86369
86292
|
*/
|
|
86370
86293
|
|
|
@@ -86407,7 +86330,7 @@ var _DYN_COOKIE_SEPARATOR = "cookieSeparator"; // Count: 5
|
|
|
86407
86330
|
var _DYN_AUTH_USER_COOKIE_NAM7 = "authUserCookieName"; // Count: 3
|
|
86408
86331
|
|
|
86409
86332
|
/*
|
|
86410
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86333
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86411
86334
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86412
86335
|
*/
|
|
86413
86336
|
|
|
@@ -86587,7 +86510,7 @@ var _SessionManager = /** @class */ (function () {
|
|
|
86587
86510
|
}());
|
|
86588
86511
|
|
|
86589
86512
|
/*
|
|
86590
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86513
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86591
86514
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86592
86515
|
*/
|
|
86593
86516
|
|
|
@@ -86606,7 +86529,7 @@ var TelemetryTrace = /** @class */ (function () {
|
|
|
86606
86529
|
}());
|
|
86607
86530
|
|
|
86608
86531
|
/*
|
|
86609
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86532
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86610
86533
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86611
86534
|
*/
|
|
86612
86535
|
|
|
@@ -86751,7 +86674,7 @@ var User = /** @class */ (function () {
|
|
|
86751
86674
|
}());
|
|
86752
86675
|
|
|
86753
86676
|
/*
|
|
86754
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86677
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86755
86678
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86756
86679
|
*/
|
|
86757
86680
|
/**
|
|
@@ -86909,7 +86832,7 @@ var TelemetryContext = /** @class */ (function () {
|
|
|
86909
86832
|
}());
|
|
86910
86833
|
|
|
86911
86834
|
/*
|
|
86912
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.
|
|
86835
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.7
|
|
86913
86836
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
86914
86837
|
*/
|
|
86915
86838
|
/**
|
|
@@ -87056,7 +86979,7 @@ var PropertiesPlugin = /** @class */ (function (_super) {
|
|
|
87056
86979
|
var PropertiesPlugin$1 = PropertiesPlugin;
|
|
87057
86980
|
|
|
87058
86981
|
/*
|
|
87059
|
-
* Application Insights JavaScript SDK - Web, 3.0.
|
|
86982
|
+
* Application Insights JavaScript SDK - Web, 3.0.7
|
|
87060
86983
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
87061
86984
|
*/
|
|
87062
86985
|
|
|
@@ -87089,7 +87012,7 @@ var STR_SET_AUTHENTICATED_USER_CONTEXT = "set" + _AUTHENTICATED_USER_CONTEXT;
|
|
|
87089
87012
|
var STR_CLEAR_AUTHENTICATED_USER_CONTEXT = "clear" + _AUTHENTICATED_USER_CONTEXT;
|
|
87090
87013
|
|
|
87091
87014
|
/*
|
|
87092
|
-
* Application Insights JavaScript SDK - Web, 3.0.
|
|
87015
|
+
* Application Insights JavaScript SDK - Web, 3.0.7
|
|
87093
87016
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
87094
87017
|
*/
|
|
87095
87018
|
|
|
@@ -87113,7 +87036,7 @@ var _DYN_SEND_MESSAGE = "sendMessage"; // Count: 3
|
|
|
87113
87036
|
var _DYN_UPDATE_SNIPPET_DEFIN1 = "updateSnippetDefinitions"; // Count: 2
|
|
87114
87037
|
|
|
87115
87038
|
/*
|
|
87116
|
-
* Application Insights JavaScript SDK - Web, 3.0.
|
|
87039
|
+
* Application Insights JavaScript SDK - Web, 3.0.7
|
|
87117
87040
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
87118
87041
|
*/
|
|
87119
87042
|
|
|
@@ -87768,10 +87691,19 @@ var CopyrightControl = /** @class */ (function (_super) {
|
|
|
87768
87691
|
.filter(function (message) { return message; })
|
|
87769
87692
|
.join("");
|
|
87770
87693
|
};
|
|
87694
|
+
// Append latitude, longitude and zoom level to feedback link.
|
|
87695
|
+
_this.updateFeedbackLink = function () {
|
|
87696
|
+
var _a;
|
|
87697
|
+
if (_this.feedbackAnchor && _this.map) {
|
|
87698
|
+
var center = (_a = _this.map.getCamera(), _a.center), zoom = _a.zoom;
|
|
87699
|
+
_this.feedbackAnchor.href = "".concat(CopyrightControl.feedbackLink, "&cp=").concat(center[1], "~").concat(center[0], "&lvl=").concat(zoom + 1);
|
|
87700
|
+
}
|
|
87701
|
+
};
|
|
87771
87702
|
_this.options = new CopyrightControlOptions().merge(options);
|
|
87772
87703
|
return _this;
|
|
87773
87704
|
}
|
|
87774
87705
|
CopyrightControl.prototype.onAdd = function (map) {
|
|
87706
|
+
this.map = map;
|
|
87775
87707
|
this.container = this.buildContainer(map, ControlStyle.auto);
|
|
87776
87708
|
this.container.className = "map-copyright";
|
|
87777
87709
|
this.copyrightDiv = this.buildCopyrightDiv();
|
|
@@ -87838,27 +87770,30 @@ var CopyrightControl = /** @class */ (function (_super) {
|
|
|
87838
87770
|
};
|
|
87839
87771
|
CopyrightControl.prototype.buildFeedbackLink = function () {
|
|
87840
87772
|
var link = document.createElement("a");
|
|
87841
|
-
link.setAttribute("alt", "
|
|
87842
|
-
link.setAttribute("aria-label", "
|
|
87843
|
-
link.href =
|
|
87773
|
+
link.setAttribute("alt", "Provide Map Data Feedback");
|
|
87774
|
+
link.setAttribute("aria-label", "Provide Map Data Feedback");
|
|
87775
|
+
link.href = CopyrightControl.feedbackLink;
|
|
87844
87776
|
link.target = "_blank";
|
|
87845
87777
|
link.rel = "noopener";
|
|
87846
87778
|
link.className = "azure-map-feedback";
|
|
87847
87779
|
return link;
|
|
87848
87780
|
};
|
|
87849
87781
|
CopyrightControl.prototype.addRemoveFeedbackDiv = function (add) {
|
|
87782
|
+
var _a, _b, _c, _d;
|
|
87850
87783
|
if (add) {
|
|
87851
87784
|
this.feedbackAnchor = this.buildFeedbackLink();
|
|
87852
|
-
this.tooltip = buildAccessibleTooltip("
|
|
87785
|
+
this.tooltip = buildAccessibleTooltip("Provide Map Data Feedback");
|
|
87853
87786
|
this.container.appendChild(this.feedbackAnchor);
|
|
87854
87787
|
this.container.appendChild(this.tooltip);
|
|
87855
87788
|
positionTooltip(this.tooltip, this.feedbackAnchor);
|
|
87789
|
+
(_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.events) === null || _b === void 0 ? void 0 : _b.add("moveend", this.updateFeedbackLink);
|
|
87856
87790
|
}
|
|
87857
87791
|
else {
|
|
87858
87792
|
this.feedbackAnchor.remove();
|
|
87859
87793
|
this.tooltip.remove();
|
|
87860
87794
|
delete this.tooltip;
|
|
87861
87795
|
delete this.feedbackAnchor;
|
|
87796
|
+
(_d = (_c = this.map) === null || _c === void 0 ? void 0 : _c.events) === null || _d === void 0 ? void 0 : _d.remove("moveend", this.updateFeedbackLink);
|
|
87862
87797
|
}
|
|
87863
87798
|
};
|
|
87864
87799
|
CopyrightControl.prototype.addRemoveLogo = function (add) {
|
|
@@ -87879,6 +87814,7 @@ var CopyrightControl = /** @class */ (function (_super) {
|
|
|
87879
87814
|
delete this.logoAnchor;
|
|
87880
87815
|
}
|
|
87881
87816
|
};
|
|
87817
|
+
CopyrightControl.feedbackLink = "https://aka.ms/azuremapsdatafeedback?feedbackep=UrlAzureMapsWebSdk";
|
|
87882
87818
|
return CopyrightControl;
|
|
87883
87819
|
}(ControlBase));
|
|
87884
87820
|
|
|
@@ -115333,10 +115269,10 @@ var ServiceOptions = /** @class */ (function (_super) {
|
|
|
115333
115269
|
*/
|
|
115334
115270
|
_this["enable-accessibility"] = _this.enableAccessibility;
|
|
115335
115271
|
/**
|
|
115336
|
-
* Enable fallback to geocoder for
|
|
115272
|
+
* Enable the fallback to the REST API geocoder for detecting location accessibility if extracting location from vector data fails.
|
|
115273
|
+
* Disabling this option will prevent the generation of geocode API requests but may lead to a lack of location information for screen readers.
|
|
115337
115274
|
* default: true
|
|
115338
115275
|
* @default true
|
|
115339
|
-
* @internal
|
|
115340
115276
|
*/
|
|
115341
115277
|
_this.enableAccessibilityLocationFallback = true;
|
|
115342
115278
|
/**
|