@ada-support/embed2 1.14.3 → 1.14.5
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/npm-entry/index.js
CHANGED
|
@@ -1738,7 +1738,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
1738
1738
|
// ================================================
|
|
1739
1739
|
var pid = typeof process !== 'undefined' && process.pid ? process.pid.toString(36) : '' ;
|
|
1740
1740
|
var address = '';
|
|
1741
|
-
if(false)
|
|
1741
|
+
if(false)// removed by dead control flow
|
|
1742
|
+
{ var i, mac, networkInterfaces; }
|
|
1742
1743
|
|
|
1743
1744
|
// Exports
|
|
1744
1745
|
// ================================================
|
|
@@ -1943,11 +1944,11 @@ var path = __webpack_require__(2046);
|
|
|
1943
1944
|
|
|
1944
1945
|
var Object = path.Object;
|
|
1945
1946
|
|
|
1946
|
-
var defineProperty = module.exports = function defineProperty(it, key, desc) {
|
|
1947
|
+
var $defineProperty = module.exports = function defineProperty(it, key, desc) {
|
|
1947
1948
|
return Object.defineProperty(it, key, desc);
|
|
1948
1949
|
};
|
|
1949
1950
|
|
|
1950
|
-
if (Object.defineProperty.sham) defineProperty.sham = true;
|
|
1951
|
+
if (Object.defineProperty.sham) $defineProperty.sham = true;
|
|
1951
1952
|
|
|
1952
1953
|
|
|
1953
1954
|
/***/ }),
|
|
@@ -2250,13 +2251,11 @@ module.exports = {
|
|
|
2250
2251
|
"use strict";
|
|
2251
2252
|
|
|
2252
2253
|
var bind = __webpack_require__(8311);
|
|
2253
|
-
var uncurryThis = __webpack_require__(1907);
|
|
2254
2254
|
var IndexedObject = __webpack_require__(6946);
|
|
2255
2255
|
var toObject = __webpack_require__(9298);
|
|
2256
2256
|
var lengthOfArrayLike = __webpack_require__(575);
|
|
2257
2257
|
var arraySpeciesCreate = __webpack_require__(6968);
|
|
2258
|
-
|
|
2259
|
-
var push = uncurryThis([].push);
|
|
2258
|
+
var createProperty = __webpack_require__(5543);
|
|
2260
2259
|
|
|
2261
2260
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
2262
2261
|
var createMethod = function (TYPE) {
|
|
@@ -2267,28 +2266,28 @@ var createMethod = function (TYPE) {
|
|
|
2267
2266
|
var IS_FIND_INDEX = TYPE === 6;
|
|
2268
2267
|
var IS_FILTER_REJECT = TYPE === 7;
|
|
2269
2268
|
var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
|
|
2270
|
-
return function ($this, callbackfn, that
|
|
2269
|
+
return function ($this, callbackfn, that) {
|
|
2271
2270
|
var O = toObject($this);
|
|
2272
2271
|
var self = IndexedObject(O);
|
|
2273
2272
|
var length = lengthOfArrayLike(self);
|
|
2274
2273
|
var boundFunction = bind(callbackfn, that);
|
|
2275
2274
|
var index = 0;
|
|
2276
|
-
var
|
|
2277
|
-
var target = IS_MAP ?
|
|
2275
|
+
var resIndex = 0;
|
|
2276
|
+
var target = IS_MAP ? arraySpeciesCreate($this, length) : IS_FILTER || IS_FILTER_REJECT ? arraySpeciesCreate($this, 0) : undefined;
|
|
2278
2277
|
var value, result;
|
|
2279
2278
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
2280
2279
|
value = self[index];
|
|
2281
2280
|
result = boundFunction(value, index, O);
|
|
2282
2281
|
if (TYPE) {
|
|
2283
|
-
if (IS_MAP) target
|
|
2282
|
+
if (IS_MAP) createProperty(target, index, result); // map
|
|
2284
2283
|
else if (result) switch (TYPE) {
|
|
2285
|
-
case 3: return true;
|
|
2286
|
-
case 5: return value;
|
|
2287
|
-
case 6: return index;
|
|
2288
|
-
case 2:
|
|
2284
|
+
case 3: return true; // some
|
|
2285
|
+
case 5: return value; // find
|
|
2286
|
+
case 6: return index; // findIndex
|
|
2287
|
+
case 2: createProperty(target, resIndex++, value); // filter
|
|
2289
2288
|
} else switch (TYPE) {
|
|
2290
|
-
case 4: return false;
|
|
2291
|
-
case 7:
|
|
2289
|
+
case 4: return false; // every
|
|
2290
|
+
case 7: createProperty(target, resIndex++, value); // filterReject
|
|
2292
2291
|
}
|
|
2293
2292
|
}
|
|
2294
2293
|
}
|
|
@@ -2370,6 +2369,41 @@ module.exports = function (METHOD_NAME, argument) {
|
|
|
2370
2369
|
};
|
|
2371
2370
|
|
|
2372
2371
|
|
|
2372
|
+
/***/ }),
|
|
2373
|
+
|
|
2374
|
+
/***/ 3130:
|
|
2375
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2376
|
+
|
|
2377
|
+
"use strict";
|
|
2378
|
+
|
|
2379
|
+
var DESCRIPTORS = __webpack_require__(9447);
|
|
2380
|
+
var isArray = __webpack_require__(1793);
|
|
2381
|
+
|
|
2382
|
+
var $TypeError = TypeError;
|
|
2383
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2384
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2385
|
+
|
|
2386
|
+
// Safari < 13 does not throw an error in this case
|
|
2387
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
2388
|
+
// makes no sense without proper strict mode support
|
|
2389
|
+
if (this !== undefined) return true;
|
|
2390
|
+
try {
|
|
2391
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2392
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2393
|
+
} catch (error) {
|
|
2394
|
+
return error instanceof TypeError;
|
|
2395
|
+
}
|
|
2396
|
+
}();
|
|
2397
|
+
|
|
2398
|
+
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2399
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
2400
|
+
throw new $TypeError('Cannot set read only .length');
|
|
2401
|
+
} return O.length = length;
|
|
2402
|
+
} : function (O, length) {
|
|
2403
|
+
return O.length = length;
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
|
|
2373
2407
|
/***/ }),
|
|
2374
2408
|
|
|
2375
2409
|
/***/ 3427:
|
|
@@ -2665,7 +2699,7 @@ var $TypeError = TypeError;
|
|
|
2665
2699
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2666
2700
|
|
|
2667
2701
|
module.exports = function (it) {
|
|
2668
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
2702
|
+
if (it > MAX_SAFE_INTEGER) throw new $TypeError('Maximum allowed index exceeded');
|
|
2669
2703
|
return it;
|
|
2670
2704
|
};
|
|
2671
2705
|
|
|
@@ -2964,7 +2998,7 @@ var fails = __webpack_require__(8828);
|
|
|
2964
2998
|
|
|
2965
2999
|
module.exports = !fails(function () {
|
|
2966
3000
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
2967
|
-
var test =
|
|
3001
|
+
var test = function () { /* empty */ }.bind();
|
|
2968
3002
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
2969
3003
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
2970
3004
|
});
|
|
@@ -3046,7 +3080,7 @@ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
|
3046
3080
|
|
|
3047
3081
|
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
|
3048
3082
|
// additional protection from minified / mangled / dropped function names
|
|
3049
|
-
var PROPER = EXISTS &&
|
|
3083
|
+
var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
|
|
3050
3084
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
3051
3085
|
|
|
3052
3086
|
module.exports = {
|
|
@@ -3154,44 +3188,6 @@ module.exports = function (namespace, method) {
|
|
|
3154
3188
|
};
|
|
3155
3189
|
|
|
3156
3190
|
|
|
3157
|
-
/***/ }),
|
|
3158
|
-
|
|
3159
|
-
/***/ 6656:
|
|
3160
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3161
|
-
|
|
3162
|
-
"use strict";
|
|
3163
|
-
|
|
3164
|
-
var uncurryThis = __webpack_require__(1907);
|
|
3165
|
-
var isArray = __webpack_require__(1793);
|
|
3166
|
-
var isCallable = __webpack_require__(2250);
|
|
3167
|
-
var classof = __webpack_require__(5807);
|
|
3168
|
-
var toString = __webpack_require__(160);
|
|
3169
|
-
|
|
3170
|
-
var push = uncurryThis([].push);
|
|
3171
|
-
|
|
3172
|
-
module.exports = function (replacer) {
|
|
3173
|
-
if (isCallable(replacer)) return replacer;
|
|
3174
|
-
if (!isArray(replacer)) return;
|
|
3175
|
-
var rawLength = replacer.length;
|
|
3176
|
-
var keys = [];
|
|
3177
|
-
for (var i = 0; i < rawLength; i++) {
|
|
3178
|
-
var element = replacer[i];
|
|
3179
|
-
if (typeof element == 'string') push(keys, element);
|
|
3180
|
-
else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
|
|
3181
|
-
}
|
|
3182
|
-
var keysLength = keys.length;
|
|
3183
|
-
var root = true;
|
|
3184
|
-
return function (key, value) {
|
|
3185
|
-
if (root) {
|
|
3186
|
-
root = false;
|
|
3187
|
-
return value;
|
|
3188
|
-
}
|
|
3189
|
-
if (isArray(this)) return value;
|
|
3190
|
-
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
3191
|
-
};
|
|
3192
|
-
};
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
3191
|
/***/ }),
|
|
3196
3192
|
|
|
3197
3193
|
/***/ 9367:
|
|
@@ -3602,6 +3598,23 @@ module.exports = function (argument) {
|
|
|
3602
3598
|
module.exports = true;
|
|
3603
3599
|
|
|
3604
3600
|
|
|
3601
|
+
/***/ }),
|
|
3602
|
+
|
|
3603
|
+
/***/ 9561:
|
|
3604
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3605
|
+
|
|
3606
|
+
"use strict";
|
|
3607
|
+
|
|
3608
|
+
var isObject = __webpack_require__(6285);
|
|
3609
|
+
var getInternalState = (__webpack_require__(4932).get);
|
|
3610
|
+
|
|
3611
|
+
module.exports = function isRawJSON(O) {
|
|
3612
|
+
if (!isObject(O)) return false;
|
|
3613
|
+
var state = getInternalState(O);
|
|
3614
|
+
return !!state && state.type === 'RawJSON';
|
|
3615
|
+
};
|
|
3616
|
+
|
|
3617
|
+
|
|
3605
3618
|
/***/ }),
|
|
3606
3619
|
|
|
3607
3620
|
/***/ 5594:
|
|
@@ -3860,6 +3873,25 @@ module.exports = Math.trunc || function trunc(x) {
|
|
|
3860
3873
|
};
|
|
3861
3874
|
|
|
3862
3875
|
|
|
3876
|
+
/***/ }),
|
|
3877
|
+
|
|
3878
|
+
/***/ 7008:
|
|
3879
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3880
|
+
|
|
3881
|
+
"use strict";
|
|
3882
|
+
|
|
3883
|
+
/* eslint-disable es/no-json -- safe */
|
|
3884
|
+
var fails = __webpack_require__(8828);
|
|
3885
|
+
|
|
3886
|
+
module.exports = !fails(function () {
|
|
3887
|
+
var unsafeInt = '9007199254740993';
|
|
3888
|
+
// eslint-disable-next-line es/no-json-rawjson -- feature detection
|
|
3889
|
+
var raw = JSON.rawJSON(unsafeInt);
|
|
3890
|
+
// eslint-disable-next-line es/no-json-israwjson -- feature detection
|
|
3891
|
+
return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
|
|
3892
|
+
});
|
|
3893
|
+
|
|
3894
|
+
|
|
3863
3895
|
/***/ }),
|
|
3864
3896
|
|
|
3865
3897
|
/***/ 9538:
|
|
@@ -4383,6 +4415,70 @@ module.exports = function (input, pref) {
|
|
|
4383
4415
|
};
|
|
4384
4416
|
|
|
4385
4417
|
|
|
4418
|
+
/***/ }),
|
|
4419
|
+
|
|
4420
|
+
/***/ 1275:
|
|
4421
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4422
|
+
|
|
4423
|
+
"use strict";
|
|
4424
|
+
|
|
4425
|
+
var uncurryThis = __webpack_require__(1907);
|
|
4426
|
+
var hasOwn = __webpack_require__(9724);
|
|
4427
|
+
|
|
4428
|
+
var $SyntaxError = SyntaxError;
|
|
4429
|
+
var $parseInt = parseInt;
|
|
4430
|
+
var fromCharCode = String.fromCharCode;
|
|
4431
|
+
var at = uncurryThis(''.charAt);
|
|
4432
|
+
var slice = uncurryThis(''.slice);
|
|
4433
|
+
var exec = uncurryThis(/./.exec);
|
|
4434
|
+
|
|
4435
|
+
var codePoints = {
|
|
4436
|
+
'\\"': '"',
|
|
4437
|
+
'\\\\': '\\',
|
|
4438
|
+
'\\/': '/',
|
|
4439
|
+
'\\b': '\b',
|
|
4440
|
+
'\\f': '\f',
|
|
4441
|
+
'\\n': '\n',
|
|
4442
|
+
'\\r': '\r',
|
|
4443
|
+
'\\t': '\t'
|
|
4444
|
+
};
|
|
4445
|
+
|
|
4446
|
+
var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;
|
|
4447
|
+
// eslint-disable-next-line regexp/no-control-character -- safe
|
|
4448
|
+
var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;
|
|
4449
|
+
|
|
4450
|
+
module.exports = function (source, i) {
|
|
4451
|
+
var unterminated = true;
|
|
4452
|
+
var value = '';
|
|
4453
|
+
while (i < source.length) {
|
|
4454
|
+
var chr = at(source, i);
|
|
4455
|
+
if (chr === '\\') {
|
|
4456
|
+
var twoChars = slice(source, i, i + 2);
|
|
4457
|
+
if (hasOwn(codePoints, twoChars)) {
|
|
4458
|
+
value += codePoints[twoChars];
|
|
4459
|
+
i += 2;
|
|
4460
|
+
} else if (twoChars === '\\u') {
|
|
4461
|
+
i += 2;
|
|
4462
|
+
var fourHexDigits = slice(source, i, i + 4);
|
|
4463
|
+
if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i);
|
|
4464
|
+
value += fromCharCode($parseInt(fourHexDigits, 16));
|
|
4465
|
+
i += 4;
|
|
4466
|
+
} else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"');
|
|
4467
|
+
} else if (chr === '"') {
|
|
4468
|
+
unterminated = false;
|
|
4469
|
+
i++;
|
|
4470
|
+
break;
|
|
4471
|
+
} else {
|
|
4472
|
+
if (exec(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i);
|
|
4473
|
+
value += chr;
|
|
4474
|
+
i++;
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i);
|
|
4478
|
+
return { value: value, end: i };
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
|
|
4386
4482
|
/***/ }),
|
|
4387
4483
|
|
|
4388
4484
|
/***/ 2046:
|
|
@@ -4473,10 +4569,10 @@ var SHARED = '__core-js_shared__';
|
|
|
4473
4569
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
4474
4570
|
|
|
4475
4571
|
(store.versions || (store.versions = [])).push({
|
|
4476
|
-
version: '3.
|
|
4572
|
+
version: '3.49.0',
|
|
4477
4573
|
mode: IS_PURE ? 'pure' : 'global',
|
|
4478
|
-
copyright: '©
|
|
4479
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
4574
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
4575
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
|
|
4480
4576
|
source: 'https://github.com/zloirock/core-js'
|
|
4481
4577
|
});
|
|
4482
4578
|
|
|
@@ -4832,7 +4928,7 @@ var wellKnownSymbol = __webpack_require__(6264);
|
|
|
4832
4928
|
|
|
4833
4929
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
4834
4930
|
var test = {};
|
|
4835
|
-
|
|
4931
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
4836
4932
|
test[TO_STRING_TAG] = 'z';
|
|
4837
4933
|
|
|
4838
4934
|
module.exports = String(test) === '[object z]';
|
|
@@ -5016,6 +5112,7 @@ var toObject = __webpack_require__(9298);
|
|
|
5016
5112
|
var lengthOfArrayLike = __webpack_require__(575);
|
|
5017
5113
|
var doesNotExceedSafeInteger = __webpack_require__(8024);
|
|
5018
5114
|
var createProperty = __webpack_require__(5543);
|
|
5115
|
+
var setArrayLength = __webpack_require__(3130);
|
|
5019
5116
|
var arraySpeciesCreate = __webpack_require__(6968);
|
|
5020
5117
|
var arrayMethodHasSpeciesSupport = __webpack_require__(7171);
|
|
5021
5118
|
var wellKnownSymbol = __webpack_require__(6264);
|
|
@@ -5061,7 +5158,7 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
|
5061
5158
|
createProperty(A, n++, E);
|
|
5062
5159
|
}
|
|
5063
5160
|
}
|
|
5064
|
-
A
|
|
5161
|
+
setArrayLength(A, n);
|
|
5065
5162
|
return A;
|
|
5066
5163
|
}
|
|
5067
5164
|
});
|
|
@@ -5208,11 +5305,17 @@ var apply = __webpack_require__(6024);
|
|
|
5208
5305
|
var call = __webpack_require__(3930);
|
|
5209
5306
|
var uncurryThis = __webpack_require__(1907);
|
|
5210
5307
|
var fails = __webpack_require__(8828);
|
|
5308
|
+
var isArray = __webpack_require__(1793);
|
|
5211
5309
|
var isCallable = __webpack_require__(2250);
|
|
5310
|
+
var isRawJSON = __webpack_require__(9561);
|
|
5212
5311
|
var isSymbol = __webpack_require__(5594);
|
|
5312
|
+
var classof = __webpack_require__(5807);
|
|
5313
|
+
var toString = __webpack_require__(160);
|
|
5213
5314
|
var arraySlice = __webpack_require__(3427);
|
|
5214
|
-
var
|
|
5315
|
+
var parseJSONString = __webpack_require__(1275);
|
|
5316
|
+
var uid = __webpack_require__(6499);
|
|
5215
5317
|
var NATIVE_SYMBOL = __webpack_require__(9846);
|
|
5318
|
+
var NATIVE_RAW_JSON = __webpack_require__(7008);
|
|
5216
5319
|
|
|
5217
5320
|
var $String = String;
|
|
5218
5321
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
@@ -5220,11 +5323,16 @@ var exec = uncurryThis(/./.exec);
|
|
|
5220
5323
|
var charAt = uncurryThis(''.charAt);
|
|
5221
5324
|
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
5222
5325
|
var replace = uncurryThis(''.replace);
|
|
5326
|
+
var slice = uncurryThis(''.slice);
|
|
5327
|
+
var push = uncurryThis([].push);
|
|
5223
5328
|
var numberToString = uncurryThis(1.1.toString);
|
|
5224
5329
|
|
|
5225
|
-
var
|
|
5226
|
-
var
|
|
5227
|
-
var
|
|
5330
|
+
var surrogates = /[\uD800-\uDFFF]/g;
|
|
5331
|
+
var leadingSurrogates = /^[\uD800-\uDBFF]$/;
|
|
5332
|
+
var trailingSurrogates = /^[\uDC00-\uDFFF]$/;
|
|
5333
|
+
|
|
5334
|
+
var MARK = uid();
|
|
5335
|
+
var MARK_LENGTH = MARK.length;
|
|
5228
5336
|
|
|
5229
5337
|
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
|
|
5230
5338
|
var symbol = getBuiltIn('Symbol')('stringify detection');
|
|
@@ -5242,7 +5350,7 @@ var ILL_FORMED_UNICODE = fails(function () {
|
|
|
5242
5350
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
5243
5351
|
});
|
|
5244
5352
|
|
|
5245
|
-
var
|
|
5353
|
+
var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function (it, replacer) {
|
|
5246
5354
|
var args = arraySlice(arguments);
|
|
5247
5355
|
var $replacer = getReplacerFunction(replacer);
|
|
5248
5356
|
if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
@@ -5252,28 +5360,79 @@ var stringifyWithSymbolsFix = function (it, replacer) {
|
|
|
5252
5360
|
if (!isSymbol(value)) return value;
|
|
5253
5361
|
};
|
|
5254
5362
|
return apply($stringify, null, args);
|
|
5255
|
-
};
|
|
5363
|
+
} : $stringify;
|
|
5256
5364
|
|
|
5257
|
-
var
|
|
5365
|
+
var fixIllFormedJSON = function (match, offset, string) {
|
|
5258
5366
|
var prev = charAt(string, offset - 1);
|
|
5259
5367
|
var next = charAt(string, offset + 1);
|
|
5260
|
-
if (
|
|
5368
|
+
if (
|
|
5369
|
+
(exec(leadingSurrogates, match) && !exec(trailingSurrogates, next)) ||
|
|
5370
|
+
(exec(trailingSurrogates, match) && !exec(leadingSurrogates, prev))
|
|
5371
|
+
) {
|
|
5261
5372
|
return '\\u' + numberToString(charCodeAt(match, 0), 16);
|
|
5262
5373
|
} return match;
|
|
5263
5374
|
};
|
|
5264
5375
|
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5376
|
+
var getReplacerFunction = function (replacer) {
|
|
5377
|
+
if (isCallable(replacer)) return replacer;
|
|
5378
|
+
if (!isArray(replacer)) return;
|
|
5379
|
+
var rawLength = replacer.length;
|
|
5380
|
+
var keys = [];
|
|
5381
|
+
for (var i = 0; i < rawLength; i++) {
|
|
5382
|
+
var element = replacer[i];
|
|
5383
|
+
if (typeof element == 'string') push(keys, element);
|
|
5384
|
+
else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
|
|
5385
|
+
}
|
|
5386
|
+
var keysLength = keys.length;
|
|
5387
|
+
var root = true;
|
|
5388
|
+
return function (key, value) {
|
|
5389
|
+
if (root) {
|
|
5390
|
+
root = false;
|
|
5391
|
+
return value;
|
|
5392
|
+
}
|
|
5393
|
+
if (isArray(this)) return value;
|
|
5394
|
+
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
5395
|
+
};
|
|
5396
|
+
};
|
|
5397
|
+
|
|
5398
|
+
// `JSON.stringify` method
|
|
5399
|
+
// https://tc39.es/ecma262/#sec-json.stringify
|
|
5400
|
+
// https://github.com/tc39/proposal-json-parse-with-source
|
|
5401
|
+
if ($stringify) $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
|
|
5402
|
+
stringify: function stringify(text, replacer, space) {
|
|
5403
|
+
var replacerFunction = getReplacerFunction(replacer);
|
|
5404
|
+
var rawStrings = [];
|
|
5405
|
+
|
|
5406
|
+
var json = stringifyWithProperSymbolsConversion(text, function (key, value) {
|
|
5407
|
+
// some old implementations (like WebKit) could pass numbers as keys
|
|
5408
|
+
var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value;
|
|
5409
|
+
return !NATIVE_RAW_JSON && isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v;
|
|
5410
|
+
}, space);
|
|
5411
|
+
|
|
5412
|
+
if (typeof json != 'string') return json;
|
|
5413
|
+
|
|
5414
|
+
if (ILL_FORMED_UNICODE) json = replace(json, surrogates, fixIllFormedJSON);
|
|
5415
|
+
|
|
5416
|
+
if (NATIVE_RAW_JSON) return json;
|
|
5417
|
+
|
|
5418
|
+
var result = '';
|
|
5419
|
+
var length = json.length;
|
|
5420
|
+
|
|
5421
|
+
for (var i = 0; i < length; i++) {
|
|
5422
|
+
var chr = charAt(json, i);
|
|
5423
|
+
if (chr === '"') {
|
|
5424
|
+
var end = parseJSONString(json, ++i).end - 1;
|
|
5425
|
+
var string = slice(json, i, end);
|
|
5426
|
+
result += slice(string, 0, MARK_LENGTH) === MARK
|
|
5427
|
+
? rawStrings[slice(string, MARK_LENGTH)]
|
|
5428
|
+
: '"' + string + '"';
|
|
5429
|
+
i = end;
|
|
5430
|
+
} else result += chr;
|
|
5274
5431
|
}
|
|
5275
|
-
|
|
5276
|
-
|
|
5432
|
+
|
|
5433
|
+
return result;
|
|
5434
|
+
}
|
|
5435
|
+
});
|
|
5277
5436
|
|
|
5278
5437
|
|
|
5279
5438
|
/***/ }),
|
|
@@ -5524,7 +5683,7 @@ var fallbackDefineProperty = function (O, P, Attributes) {
|
|
|
5524
5683
|
nativeDefineProperty(O, P, Attributes);
|
|
5525
5684
|
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
|
5526
5685
|
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
|
|
5527
|
-
}
|
|
5686
|
+
} return O;
|
|
5528
5687
|
};
|
|
5529
5688
|
|
|
5530
5689
|
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
|
@@ -5550,7 +5709,8 @@ var $defineProperty = function defineProperty(O, P, Attributes) {
|
|
|
5550
5709
|
var key = toPropertyKey(P);
|
|
5551
5710
|
anObject(Attributes);
|
|
5552
5711
|
if (hasOwn(AllSymbols, key)) {
|
|
5553
|
-
|
|
5712
|
+
// first definition - default non-enumerable; redefinition - preserve existing state
|
|
5713
|
+
if (!('enumerable' in Attributes) ? !hasOwn(O, key) || (hasOwn(O, HIDDEN) && O[HIDDEN][key]) : !Attributes.enumerable) {
|
|
5554
5714
|
if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, nativeObjectCreate(null)));
|
|
5555
5715
|
O[HIDDEN][key] = true;
|
|
5556
5716
|
} else {
|
|
@@ -5659,7 +5819,7 @@ if (!NATIVE_SYMBOL) {
|
|
|
5659
5819
|
};
|
|
5660
5820
|
|
|
5661
5821
|
if (DESCRIPTORS) {
|
|
5662
|
-
// https://
|
|
5822
|
+
// https://tc39.es/ecma262/#sec-symbol.prototype.description
|
|
5663
5823
|
defineBuiltInAccessor(SymbolPrototype, 'description', {
|
|
5664
5824
|
configurable: true,
|
|
5665
5825
|
get: function description() {
|
|
@@ -6403,7 +6563,7 @@ module.exports = parent;
|
|
|
6403
6563
|
/******/
|
|
6404
6564
|
/************************************************************************/
|
|
6405
6565
|
var __webpack_exports__ = {};
|
|
6406
|
-
// This entry
|
|
6566
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
6407
6567
|
!function() {
|
|
6408
6568
|
"use strict";
|
|
6409
6569
|
// ESM COMPAT FLAG
|
|
@@ -6420,7 +6580,7 @@ var define_property = __webpack_require__(4997);
|
|
|
6420
6580
|
var symbol = __webpack_require__(2321);
|
|
6421
6581
|
// EXTERNAL MODULE: ./node_modules/core-js-pure/full/symbol/iterator.js
|
|
6422
6582
|
var iterator = __webpack_require__(2231);
|
|
6423
|
-
;//
|
|
6583
|
+
;// ./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js
|
|
6424
6584
|
|
|
6425
6585
|
|
|
6426
6586
|
function _typeof(o) {
|
|
@@ -6435,7 +6595,7 @@ function _typeof(o) {
|
|
|
6435
6595
|
|
|
6436
6596
|
// EXTERNAL MODULE: ./node_modules/core-js-pure/full/symbol/to-primitive.js
|
|
6437
6597
|
var to_primitive = __webpack_require__(9280);
|
|
6438
|
-
;//
|
|
6598
|
+
;// ./node_modules/@babel/runtime-corejs3/helpers/esm/toPrimitive.js
|
|
6439
6599
|
|
|
6440
6600
|
|
|
6441
6601
|
function toPrimitive(t, r) {
|
|
@@ -6449,7 +6609,7 @@ function toPrimitive(t, r) {
|
|
|
6449
6609
|
return ("string" === r ? String : Number)(t);
|
|
6450
6610
|
}
|
|
6451
6611
|
|
|
6452
|
-
;//
|
|
6612
|
+
;// ./node_modules/@babel/runtime-corejs3/helpers/esm/toPropertyKey.js
|
|
6453
6613
|
|
|
6454
6614
|
|
|
6455
6615
|
function toPropertyKey(t) {
|
|
@@ -6457,7 +6617,7 @@ function toPropertyKey(t) {
|
|
|
6457
6617
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
6458
6618
|
}
|
|
6459
6619
|
|
|
6460
|
-
;//
|
|
6620
|
+
;// ./node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js
|
|
6461
6621
|
|
|
6462
6622
|
|
|
6463
6623
|
function _defineProperty(e, r, t) {
|
|
@@ -6472,15 +6632,15 @@ function _defineProperty(e, r, t) {
|
|
|
6472
6632
|
// EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
|
|
6473
6633
|
var lodash_debounce = __webpack_require__(181);
|
|
6474
6634
|
var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
|
|
6475
|
-
;//
|
|
6476
|
-
var n,l,u,i,t,r,o,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function v(n,l,u){var i,t=arguments,r={};for(i in l)"key"!==i&&"ref"!==i&&(r[i]=l[i]);if(arguments.length>3)for(u=[u],i=3;i<arguments.length;i++)u.push(t[i]);if(null!=u&&(r.children=u),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===r[i]&&(r[i]=n.defaultProps[i]);return h(n,r,l&&l.key,l&&l.ref,null)}function h(l,u,i,t,r){var o={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r};return null==r&&(o.__v=o),n.vnode&&n.vnode(o),o}function y(){return{current:null}}function p(n){return n.children}function
|
|
6635
|
+
;// ./node_modules/preact/dist/preact.module.js
|
|
6636
|
+
var n,l,u,i,t,r,o,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function v(n,l,u){var i,t=arguments,r={};for(i in l)"key"!==i&&"ref"!==i&&(r[i]=l[i]);if(arguments.length>3)for(u=[u],i=3;i<arguments.length;i++)u.push(t[i]);if(null!=u&&(r.children=u),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===r[i]&&(r[i]=n.defaultProps[i]);return h(n,r,l&&l.key,l&&l.ref,null)}function h(l,u,i,t,r){var o={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r};return null==r&&(o.__v=o),n.vnode&&n.vnode(o),o}function y(){return{current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function w(l){(!l.__d&&(l.__d=!0)&&u.push(l)&&!m.__r++||t!==n.debounceRendering)&&((t=n.debounceRendering)||i)(m)}function m(){for(var n;m.__r=u.length;)n=u.sort(function(n,l){return n.__v.__b-l.__v.__b}),u=[],n.some(function(n){var l,u,i,t,r,o,f;n.__d&&(o=(r=(l=n).__v).__e,(f=l.__P)&&(u=[],(i=s({},r)).__v=i,t=T(f,r,i,l.__n,void 0!==f.ownerSVGElement,null,u,null==o?_(r):o),$(u,r),t!=o&&k(r)))})}function g(n,l,u,i,t,r,o,c,s,v){var y,d,k,w,m,g,b,A=i&&i.__k||e,P=A.length;for(s==f&&(s=null!=o?o[0]:P?_(i,0):null),u.__k=[],y=0;y<l.length;y++)if(null!=(w=u.__k[y]=null==(w=l[y])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(p,{children:w},null,null,null):null!=w.__e||null!=w.__c?h(w.type,w.props,w.key,null,w.__v):w)){if(w.__=u,w.__b=u.__b+1,null===(k=A[y])||k&&w.key==k.key&&w.type===k.type)A[y]=void 0;else for(d=0;d<P;d++){if((k=A[d])&&w.key==k.key&&w.type===k.type){A[d]=void 0;break}k=null}m=T(n,w,k=k||f,t,r,o,c,s,v),(d=w.ref)&&k.ref!=d&&(b||(b=[]),k.ref&&b.push(k.ref,null,w),b.push(d,w.__c||m,w)),null!=m?(null==g&&(g=m),s=x(n,w,k,A,o,m,s),"option"==u.type?n.value="":"function"==typeof u.type&&(u.__d=s)):s&&k.__e==s&&s.parentNode!=n&&(s=_(k))}if(u.__e=g,null!=o&&"function"!=typeof u.type)for(y=o.length;y--;)null!=o[y]&&a(o[y]);for(y=P;y--;)null!=A[y]&&I(A[y],A[y]);if(b)for(y=0;y<b.length;y++)H(b[y],b[++y],b[++y])}function b(n){return null==n||"boolean"==typeof n?[]:Array.isArray(n)?e.concat.apply([],n.map(b)):[n]}function x(n,l,u,i,t,r,o){var f,e,c;if(void 0!==l.__d)f=l.__d,l.__d=void 0;else if(t==u||r!=o||null==r.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(r),f=null;else{for(e=o,c=0;(e=e.nextSibling)&&c<i.length;c+=2)if(e==r)break n;n.insertBefore(r,o),f=o}return void 0!==f?f:r.nextSibling}function A(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||C(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||C(n,r,l[r],u[r],i)}function P(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]="number"==typeof u&&!1===c.test(l)?u+"px":null==u?"":u}function C(n,l,u,i,t){var r,o,f,e,c;if(t?"className"===l&&(l="class"):"class"===l&&(l="className"),"style"===l)if(r=n.style,"string"==typeof u)r.cssText=u;else{if("string"==typeof i&&(r.cssText="",i=null),i)for(e in i)u&&e in u||P(r,e,"");if(u)for(c in u)i&&u[c]===i[c]||P(r,c,u[c])}else"o"===l[0]&&"n"===l[1]?(o=l!==(l=l.replace(/Capture$/,"")),f=l.toLowerCase(),l=(f in n?f:l).slice(2),u?(i||n.addEventListener(l,N,o),(n.l||(n.l={}))[l]=u):n.removeEventListener(l,N,o)):"list"!==l&&"tagName"!==l&&"form"!==l&&"type"!==l&&"size"!==l&&!t&&l in n?n[l]=null==u?"":u:"function"!=typeof u&&"dangerouslySetInnerHTML"!==l&&(l!==(l=l.replace(/^xlink:?/,""))?null==u||!1===u?n.removeAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase()):n.setAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase(),u):null==u||!1===u&&!/^ar/.test(l)?n.removeAttribute(l):n.setAttribute(l,u))}function N(l){this.l[l.type](n.event?n.event(l):l)}function z(n,l,u){var i,t;for(i=0;i<n.__k.length;i++)(t=n.__k[i])&&(t.__=n,t.__e&&("function"==typeof t.type&&t.__k.length>1&&z(t,l,u),l=x(u,t,t,n.__k,null,t.__e,l),"function"==typeof n.type&&(n.__d=l)))}function T(l,u,i,t,r,o,f,e,c){var a,v,h,y,_,k,w,m,b,x,A,P=u.type;if(void 0!==u.constructor)return null;(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(m=u.props,b=(a=P.contextType)&&t[a.__c],x=a?b?b.props.value:a.__:t,i.__c?w=(v=u.__c=i.__c).__=v.__E:("prototype"in P&&P.prototype.render?u.__c=v=new P(m,x):(u.__c=v=new d(m,x),v.constructor=P,v.render=L),b&&b.sub(v),v.props=m,v.state||(v.state={}),v.context=x,v.__n=t,h=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=P.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=s({},v.__s)),s(v.__s,P.getDerivedStateFromProps(m,v.__s))),y=v.props,_=v.state,h)null==P.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else{if(null==P.getDerivedStateFromProps&&m!==y&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(m,x),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(m,v.__s,x)||u.__v===i.__v){v.props=m,v.state=v.__s,u.__v!==i.__v&&(v.__d=!1),v.__v=u,u.__e=i.__e,u.__k=i.__k,v.__h.length&&f.push(v),z(u,e,l);break n}null!=v.componentWillUpdate&&v.componentWillUpdate(m,v.__s,x),null!=v.componentDidUpdate&&v.__h.push(function(){v.componentDidUpdate(y,_,k)})}v.context=x,v.props=m,v.state=v.__s,(a=n.__r)&&a(u),v.__d=!1,v.__v=u,v.__P=l,a=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(t=s(s({},t),v.getChildContext())),h||null==v.getSnapshotBeforeUpdate||(k=v.getSnapshotBeforeUpdate(y,_)),A=null!=a&&a.type==p&&null==a.key?a.props.children:a,g(l,Array.isArray(A)?A:[A],u,i,t,r,o,f,e,c),v.base=u.__e,v.__h.length&&f.push(v),w&&(v.__E=v.__=null),v.__e=!1}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=j(i.__e,u,i,t,r,o,f,c);(a=n.diffed)&&a(u)}catch(l){u.__v=null,n.__e(l,u,i)}return u.__e}function $(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u)})}catch(l){n.__e(l,u.__v)}})}function j(n,l,u,i,t,r,o,c){var s,a,v,h,y,p=u.props,d=l.props;if(t="svg"===l.type||t,null!=r)for(s=0;s<r.length;s++)if(null!=(a=r[s])&&((null===l.type?3===a.nodeType:a.localName===l.type)||n==a)){n=a,r[s]=null;break}if(null==n){if(null===l.type)return document.createTextNode(d);n=t?document.createElementNS("http://www.w3.org/2000/svg",l.type):document.createElement(l.type,d.is&&{is:d.is}),r=null,c=!1}if(null===l.type)p!==d&&n.data!=d&&(n.data=d);else{if(null!=r&&(r=e.slice.call(n.childNodes)),v=(p=u.props||f).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!c){if(null!=r)for(p={},y=0;y<n.attributes.length;y++)p[n.attributes[y].name]=n.attributes[y].value;(h||v)&&(h&&v&&h.__html==v.__html||(n.innerHTML=h&&h.__html||""))}A(n,d,p,t,c),h?l.__k=[]:(s=l.props.children,g(n,Array.isArray(s)?s:[s],l,u,i,"foreignObject"!==l.type&&t,r,o,f,c)),c||("value"in d&&void 0!==(s=d.value)&&s!==n.value&&C(n,"value",s,p.value,!1),"checked"in d&&void 0!==(s=d.checked)&&s!==n.checked&&C(n,"checked",s,p.checked,!1))}return n}function H(l,u,i){try{"function"==typeof l?l(u):l.current=u}catch(l){n.__e(l,i)}}function I(l,u,i){var t,r,o;if(n.unmount&&n.unmount(l),(t=l.ref)&&(t.current&&t.current!==l.__e||H(t,null,u)),i||"function"==typeof l.type||(i=null!=(r=l.__e)),l.__e=l.__d=void 0,null!=(t=l.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(l){n.__e(l,u)}t.base=t.__P=null}if(t=l.__k)for(o=0;o<t.length;o++)t[o]&&I(t[o],u,i);null!=r&&a(r)}function L(n,l,u){return this.constructor(n,u)}function M(l,u,i){var t,o,c;n.__&&n.__(l,u),o=(t=i===r)?null:i&&i.__k||u.__k,l=v(p,null,[l]),c=[],T(u,(t?u:i||u).__k=l,o||f,f,void 0!==u.ownerSVGElement,i&&!t?[i]:o?null:u.childNodes.length?e.slice.call(u.childNodes):null,c,i||f,t),$(c,l)}function O(n,l){M(n,l,r)}function S(n,l){var u,i;for(i in l=s(s({},n.props),l),arguments.length>2&&(l.children=e.slice.call(arguments,2)),u={},l)"key"!==i&&"ref"!==i&&(u[i]=l[i]);return h(n.type,u,l.key||n.key,l.ref||n.ref,null)}function q(n){var l={},u={__c:"__cC"+o++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var i,t=this;return this.getChildContext||(i=[],this.getChildContext=function(){return l[u.__c]=t,l},this.shouldComponentUpdate=function(n){t.props.value!==n.value&&i.some(function(l){l.context=n.value,w(l)})},this.sub=function(n){i.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){i.splice(i.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Consumer.contextType=u,u.Provider.__=u,u}n={__e:function(n,l){for(var u,i;l=l.__;)if((u=l.__c)&&!u.__)try{if(u.constructor&&null!=u.constructor.getDerivedStateFromError&&(i=!0,u.setState(u.constructor.getDerivedStateFromError(n))),null!=u.componentDidCatch&&(i=!0,u.componentDidCatch(n)),i)return w(u.__E=u)}catch(l){n=l}throw n}},l=function(n){return null!=n&&void 0===n.constructor},d.prototype.setState=function(n,l){var u;u=this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(u,this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),w(this))},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w(this))},d.prototype.render=p,u=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,m.__r=0,r=f,o=0;
|
|
6477
6637
|
//# sourceMappingURL=preact.module.js.map
|
|
6478
6638
|
|
|
6479
|
-
;//
|
|
6639
|
+
;// ./src/client/lib/contexts.ts
|
|
6480
6640
|
|
|
6481
6641
|
const StoreContext = q(null);
|
|
6482
6642
|
const MessageServiceContext = q(null);
|
|
6483
|
-
;//
|
|
6643
|
+
;// ./src/common/helpers/errors.ts
|
|
6484
6644
|
/**
|
|
6485
6645
|
* Creates a standardized Error type for Ada Embed.
|
|
6486
6646
|
*/
|
|
@@ -6514,28 +6674,28 @@ function warn(warningText) {
|
|
|
6514
6674
|
// EXTERNAL MODULE: ./node_modules/uniqid/index.js
|
|
6515
6675
|
var uniqid = __webpack_require__(9797);
|
|
6516
6676
|
var uniqid_default = /*#__PURE__*/__webpack_require__.n(uniqid);
|
|
6517
|
-
;//
|
|
6677
|
+
;// ./node_modules/@sentry/utils/build/esm/debug-build.js
|
|
6518
6678
|
/**
|
|
6519
6679
|
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
6520
6680
|
*
|
|
6521
6681
|
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
6522
6682
|
*/
|
|
6523
|
-
const
|
|
6683
|
+
const DEBUG_BUILD = (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__);
|
|
6524
6684
|
|
|
6525
6685
|
|
|
6526
6686
|
//# sourceMappingURL=debug-build.js.map
|
|
6527
6687
|
|
|
6528
|
-
;//
|
|
6688
|
+
;// ./node_modules/@sentry/utils/build/esm/version.js
|
|
6529
6689
|
const SDK_VERSION = '8.33.0';
|
|
6530
6690
|
|
|
6531
6691
|
|
|
6532
6692
|
//# sourceMappingURL=version.js.map
|
|
6533
6693
|
|
|
6534
|
-
;//
|
|
6694
|
+
;// ./node_modules/@sentry/utils/build/esm/worldwide.js
|
|
6535
6695
|
|
|
6536
6696
|
|
|
6537
6697
|
/** Get's the global object for the current JavaScript runtime */
|
|
6538
|
-
const
|
|
6698
|
+
const GLOBAL_OBJ = globalThis ;
|
|
6539
6699
|
|
|
6540
6700
|
/**
|
|
6541
6701
|
* Returns a global singleton contained in the global `__SENTRY__[]` object.
|
|
@@ -6549,7 +6709,7 @@ const worldwide_GLOBAL_OBJ = globalThis ;
|
|
|
6549
6709
|
* @returns the singleton
|
|
6550
6710
|
*/
|
|
6551
6711
|
function getGlobalSingleton(name, creator, obj) {
|
|
6552
|
-
const gbl = (obj ||
|
|
6712
|
+
const gbl = (obj || GLOBAL_OBJ) ;
|
|
6553
6713
|
const __SENTRY__ = (gbl.__SENTRY__ = gbl.__SENTRY__ || {});
|
|
6554
6714
|
const versionedCarrier = (__SENTRY__[SDK_VERSION] = __SENTRY__[SDK_VERSION] || {});
|
|
6555
6715
|
return versionedCarrier[name] || (versionedCarrier[name] = creator());
|
|
@@ -6558,7 +6718,7 @@ function getGlobalSingleton(name, creator, obj) {
|
|
|
6558
6718
|
|
|
6559
6719
|
//# sourceMappingURL=worldwide.js.map
|
|
6560
6720
|
|
|
6561
|
-
;//
|
|
6721
|
+
;// ./node_modules/@sentry/utils/build/esm/logger.js
|
|
6562
6722
|
|
|
6563
6723
|
|
|
6564
6724
|
|
|
@@ -6589,11 +6749,11 @@ const originalConsoleMethods
|
|
|
6589
6749
|
* @returns The results of the callback
|
|
6590
6750
|
*/
|
|
6591
6751
|
function consoleSandbox(callback) {
|
|
6592
|
-
if (!("console" in
|
|
6752
|
+
if (!("console" in GLOBAL_OBJ)) {
|
|
6593
6753
|
return callback();
|
|
6594
6754
|
}
|
|
6595
6755
|
|
|
6596
|
-
const console =
|
|
6756
|
+
const console = GLOBAL_OBJ.console ;
|
|
6597
6757
|
const wrappedFuncs = {};
|
|
6598
6758
|
|
|
6599
6759
|
const wrappedLevels = Object.keys(originalConsoleMethods) ;
|
|
@@ -6627,13 +6787,13 @@ function makeLogger() {
|
|
|
6627
6787
|
isEnabled: () => enabled,
|
|
6628
6788
|
};
|
|
6629
6789
|
|
|
6630
|
-
if (
|
|
6790
|
+
if (DEBUG_BUILD) {
|
|
6631
6791
|
CONSOLE_LEVELS.forEach(name => {
|
|
6632
6792
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6633
6793
|
logger[name] = (...args) => {
|
|
6634
6794
|
if (enabled) {
|
|
6635
6795
|
consoleSandbox(() => {
|
|
6636
|
-
|
|
6796
|
+
GLOBAL_OBJ.console[name](`${PREFIX}[${name}]:`, ...args);
|
|
6637
6797
|
});
|
|
6638
6798
|
}
|
|
6639
6799
|
};
|
|
@@ -6651,12 +6811,12 @@ function makeLogger() {
|
|
|
6651
6811
|
* This is a logger singleton which either logs things or no-ops if logging is not enabled.
|
|
6652
6812
|
* The logger is a singleton on the carrier, to ensure that a consistent logger is used throughout the SDK.
|
|
6653
6813
|
*/
|
|
6654
|
-
const
|
|
6814
|
+
const logger = getGlobalSingleton('logger', makeLogger);
|
|
6655
6815
|
|
|
6656
6816
|
|
|
6657
6817
|
//# sourceMappingURL=logger.js.map
|
|
6658
6818
|
|
|
6659
|
-
;//
|
|
6819
|
+
;// ./node_modules/@sentry/utils/build/esm/dsn.js
|
|
6660
6820
|
|
|
6661
6821
|
|
|
6662
6822
|
|
|
@@ -6676,7 +6836,7 @@ function isValidProtocol(protocol) {
|
|
|
6676
6836
|
*
|
|
6677
6837
|
* @param withPassword When set to true, the password will be included.
|
|
6678
6838
|
*/
|
|
6679
|
-
function
|
|
6839
|
+
function dsnToString(dsn, withPassword = false) {
|
|
6680
6840
|
const { host, path, pass, port, projectId, protocol, publicKey } = dsn;
|
|
6681
6841
|
return (
|
|
6682
6842
|
`${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ''}` +
|
|
@@ -6735,7 +6895,7 @@ function dsnFromComponents(components) {
|
|
|
6735
6895
|
}
|
|
6736
6896
|
|
|
6737
6897
|
function validateDsn(dsn) {
|
|
6738
|
-
if (!
|
|
6898
|
+
if (!DEBUG_BUILD) {
|
|
6739
6899
|
return true;
|
|
6740
6900
|
}
|
|
6741
6901
|
|
|
@@ -6744,7 +6904,7 @@ function validateDsn(dsn) {
|
|
|
6744
6904
|
const requiredComponents = ['protocol', 'publicKey', 'host', 'projectId'];
|
|
6745
6905
|
const hasMissingRequiredComponent = requiredComponents.find(component => {
|
|
6746
6906
|
if (!dsn[component]) {
|
|
6747
|
-
|
|
6907
|
+
logger.error(`Invalid Sentry Dsn: ${component} missing`);
|
|
6748
6908
|
return true;
|
|
6749
6909
|
}
|
|
6750
6910
|
return false;
|
|
@@ -6755,17 +6915,17 @@ function validateDsn(dsn) {
|
|
|
6755
6915
|
}
|
|
6756
6916
|
|
|
6757
6917
|
if (!projectId.match(/^\d+$/)) {
|
|
6758
|
-
|
|
6918
|
+
logger.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);
|
|
6759
6919
|
return false;
|
|
6760
6920
|
}
|
|
6761
6921
|
|
|
6762
6922
|
if (!isValidProtocol(protocol)) {
|
|
6763
|
-
|
|
6923
|
+
logger.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);
|
|
6764
6924
|
return false;
|
|
6765
6925
|
}
|
|
6766
6926
|
|
|
6767
6927
|
if (port && isNaN(parseInt(port, 10))) {
|
|
6768
|
-
|
|
6928
|
+
logger.error(`Invalid Sentry Dsn: Invalid port ${port}`);
|
|
6769
6929
|
return false;
|
|
6770
6930
|
}
|
|
6771
6931
|
|
|
@@ -6776,7 +6936,7 @@ function validateDsn(dsn) {
|
|
|
6776
6936
|
* Creates a valid Sentry Dsn object, identifying a Sentry instance and project.
|
|
6777
6937
|
* @returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source
|
|
6778
6938
|
*/
|
|
6779
|
-
function
|
|
6939
|
+
function makeDsn(from) {
|
|
6780
6940
|
const components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);
|
|
6781
6941
|
if (!components || !validateDsn(components)) {
|
|
6782
6942
|
return undefined;
|
|
@@ -6787,7 +6947,7 @@ function dsn_makeDsn(from) {
|
|
|
6787
6947
|
|
|
6788
6948
|
//# sourceMappingURL=dsn.js.map
|
|
6789
6949
|
|
|
6790
|
-
;//
|
|
6950
|
+
;// ./node_modules/@sentry/utils/build/esm/is.js
|
|
6791
6951
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
6792
6952
|
const objectToString = Object.prototype.toString;
|
|
6793
6953
|
|
|
@@ -6886,7 +7046,7 @@ function isParameterizedString(wat) {
|
|
|
6886
7046
|
* @param wat A value to be checked.
|
|
6887
7047
|
* @returns A boolean representing the result.
|
|
6888
7048
|
*/
|
|
6889
|
-
function
|
|
7049
|
+
function isPrimitive(wat) {
|
|
6890
7050
|
return wat === null || isParameterizedString(wat) || (typeof wat !== 'object' && typeof wat !== 'function');
|
|
6891
7051
|
}
|
|
6892
7052
|
|
|
@@ -6984,11 +7144,11 @@ function isVueViewModel(wat) {
|
|
|
6984
7144
|
|
|
6985
7145
|
//# sourceMappingURL=is.js.map
|
|
6986
7146
|
|
|
6987
|
-
;//
|
|
7147
|
+
;// ./node_modules/@sentry/utils/build/esm/browser.js
|
|
6988
7148
|
|
|
6989
7149
|
|
|
6990
7150
|
|
|
6991
|
-
const WINDOW =
|
|
7151
|
+
const WINDOW = GLOBAL_OBJ ;
|
|
6992
7152
|
|
|
6993
7153
|
const DEFAULT_MAX_STRING_LENGTH = 80;
|
|
6994
7154
|
|
|
@@ -7182,7 +7342,7 @@ function getComponentName(elem) {
|
|
|
7182
7342
|
|
|
7183
7343
|
//# sourceMappingURL=browser.js.map
|
|
7184
7344
|
|
|
7185
|
-
;//
|
|
7345
|
+
;// ./node_modules/@sentry/utils/build/esm/string.js
|
|
7186
7346
|
|
|
7187
7347
|
|
|
7188
7348
|
/**
|
|
@@ -7207,7 +7367,7 @@ function truncate(str, max = 0) {
|
|
|
7207
7367
|
* @param max Maximum number of characters in truncated string
|
|
7208
7368
|
* @returns string Encoded
|
|
7209
7369
|
*/
|
|
7210
|
-
function
|
|
7370
|
+
function snipLine(line, colno) {
|
|
7211
7371
|
let newLine = line;
|
|
7212
7372
|
const lineLength = newLine.length;
|
|
7213
7373
|
if (lineLength <= 150) {
|
|
@@ -7325,7 +7485,8 @@ function stringMatchesSomePattern(
|
|
|
7325
7485
|
|
|
7326
7486
|
//# sourceMappingURL=string.js.map
|
|
7327
7487
|
|
|
7328
|
-
;//
|
|
7488
|
+
;// ./node_modules/@sentry/utils/build/esm/object.js
|
|
7489
|
+
/* unused harmony import specifier */ var object_isPrimitive;
|
|
7329
7490
|
|
|
7330
7491
|
|
|
7331
7492
|
|
|
@@ -7354,7 +7515,7 @@ function fill(source, name, replacementFactory) {
|
|
|
7354
7515
|
// Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work
|
|
7355
7516
|
// otherwise it'll throw "TypeError: Object.defineProperties called on non-object"
|
|
7356
7517
|
if (typeof wrapped === 'function') {
|
|
7357
|
-
|
|
7518
|
+
markFunctionWrapped(wrapped, original);
|
|
7358
7519
|
}
|
|
7359
7520
|
|
|
7360
7521
|
source[name] = wrapped;
|
|
@@ -7367,7 +7528,7 @@ function fill(source, name, replacementFactory) {
|
|
|
7367
7528
|
* @param name The name of the property to be set
|
|
7368
7529
|
* @param value The value to which to set the property
|
|
7369
7530
|
*/
|
|
7370
|
-
function
|
|
7531
|
+
function addNonEnumerableProperty(obj, name, value) {
|
|
7371
7532
|
try {
|
|
7372
7533
|
Object.defineProperty(obj, name, {
|
|
7373
7534
|
// enumerable: false, // the default, so we can save on bundle size by not explicitly setting it
|
|
@@ -7376,7 +7537,7 @@ function object_addNonEnumerableProperty(obj, name, value) {
|
|
|
7376
7537
|
configurable: true,
|
|
7377
7538
|
});
|
|
7378
7539
|
} catch (o_O) {
|
|
7379
|
-
|
|
7540
|
+
DEBUG_BUILD && logger.log(`Failed to add non-enumerable property "${name}" to object`, obj);
|
|
7380
7541
|
}
|
|
7381
7542
|
}
|
|
7382
7543
|
|
|
@@ -7387,11 +7548,11 @@ function object_addNonEnumerableProperty(obj, name, value) {
|
|
|
7387
7548
|
* @param wrapped the wrapper function
|
|
7388
7549
|
* @param original the original function that gets wrapped
|
|
7389
7550
|
*/
|
|
7390
|
-
function
|
|
7551
|
+
function markFunctionWrapped(wrapped, original) {
|
|
7391
7552
|
try {
|
|
7392
7553
|
const proto = original.prototype || {};
|
|
7393
7554
|
wrapped.prototype = original.prototype = proto;
|
|
7394
|
-
|
|
7555
|
+
addNonEnumerableProperty(wrapped, '__sentry_original__', original);
|
|
7395
7556
|
} catch (o_O) {} // eslint-disable-line no-empty
|
|
7396
7557
|
}
|
|
7397
7558
|
|
|
@@ -7402,7 +7563,7 @@ function object_markFunctionWrapped(wrapped, original) {
|
|
|
7402
7563
|
* @param func the function to unwrap
|
|
7403
7564
|
* @returns the unwrapped version of the function if available.
|
|
7404
7565
|
*/
|
|
7405
|
-
function
|
|
7566
|
+
function getOriginalFunction(func) {
|
|
7406
7567
|
return func.__sentry_original__;
|
|
7407
7568
|
}
|
|
7408
7569
|
|
|
@@ -7521,7 +7682,7 @@ function extractExceptionKeysForMessage(exception, maxLength = 40) {
|
|
|
7521
7682
|
*
|
|
7522
7683
|
* Attention: This function keeps circular references in the returned object.
|
|
7523
7684
|
*/
|
|
7524
|
-
function
|
|
7685
|
+
function dropUndefinedKeys(inputValue) {
|
|
7525
7686
|
// This map keeps track of what already visited nodes map to.
|
|
7526
7687
|
// Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular
|
|
7527
7688
|
// references as the input object.
|
|
@@ -7610,7 +7771,7 @@ function objectify(wat) {
|
|
|
7610
7771
|
break;
|
|
7611
7772
|
|
|
7612
7773
|
// this will catch the remaining primitives: `String`, `Number`, and `Boolean`
|
|
7613
|
-
case
|
|
7774
|
+
case object_isPrimitive(wat):
|
|
7614
7775
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
7615
7776
|
objectified = new (wat ).constructor(wat);
|
|
7616
7777
|
break;
|
|
@@ -7626,7 +7787,8 @@ function objectify(wat) {
|
|
|
7626
7787
|
|
|
7627
7788
|
//# sourceMappingURL=object.js.map
|
|
7628
7789
|
|
|
7629
|
-
;//
|
|
7790
|
+
;// ./node_modules/@sentry/utils/build/esm/misc.js
|
|
7791
|
+
/* unused harmony import specifier */ var misc_snipLine;
|
|
7630
7792
|
|
|
7631
7793
|
|
|
7632
7794
|
|
|
@@ -7636,8 +7798,8 @@ function objectify(wat) {
|
|
|
7636
7798
|
*
|
|
7637
7799
|
* @returns string Generated UUID4.
|
|
7638
7800
|
*/
|
|
7639
|
-
function
|
|
7640
|
-
const gbl =
|
|
7801
|
+
function uuid4() {
|
|
7802
|
+
const gbl = GLOBAL_OBJ ;
|
|
7641
7803
|
const crypto = gbl.crypto || gbl.msCrypto;
|
|
7642
7804
|
|
|
7643
7805
|
let getRandomByte = () => Math.random() * 16;
|
|
@@ -7701,7 +7863,7 @@ function getEventDescription(event) {
|
|
|
7701
7863
|
* @param type Type of the exception.
|
|
7702
7864
|
* @hidden
|
|
7703
7865
|
*/
|
|
7704
|
-
function
|
|
7866
|
+
function addExceptionTypeValue(event, value, type) {
|
|
7705
7867
|
const exception = (event.exception = event.exception || {});
|
|
7706
7868
|
const values = (exception.values = exception.values || []);
|
|
7707
7869
|
const firstException = (values[0] = values[0] || {});
|
|
@@ -7720,7 +7882,7 @@ function misc_addExceptionTypeValue(event, value, type) {
|
|
|
7720
7882
|
* @param newMechanism Mechanism data to add to the event.
|
|
7721
7883
|
* @hidden
|
|
7722
7884
|
*/
|
|
7723
|
-
function
|
|
7885
|
+
function addExceptionMechanism(event, newMechanism) {
|
|
7724
7886
|
const firstException = getFirstException(event);
|
|
7725
7887
|
if (!firstException) {
|
|
7726
7888
|
return;
|
|
@@ -7784,17 +7946,17 @@ function addContextToFrame(lines, frame, linesOfContext = 5) {
|
|
|
7784
7946
|
|
|
7785
7947
|
frame.pre_context = lines
|
|
7786
7948
|
.slice(Math.max(0, sourceLine - linesOfContext), sourceLine)
|
|
7787
|
-
.map((line) =>
|
|
7949
|
+
.map((line) => misc_snipLine(line, 0));
|
|
7788
7950
|
|
|
7789
7951
|
// We guard here to ensure this is not larger than the existing number of lines
|
|
7790
7952
|
const lineIndex = Math.min(maxLines - 1, sourceLine);
|
|
7791
7953
|
|
|
7792
7954
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
7793
|
-
frame.context_line =
|
|
7955
|
+
frame.context_line = misc_snipLine(lines[lineIndex], frame.colno || 0);
|
|
7794
7956
|
|
|
7795
7957
|
frame.post_context = lines
|
|
7796
7958
|
.slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)
|
|
7797
|
-
.map((line) =>
|
|
7959
|
+
.map((line) => misc_snipLine(line, 0));
|
|
7798
7960
|
}
|
|
7799
7961
|
|
|
7800
7962
|
/**
|
|
@@ -7827,7 +7989,7 @@ function checkOrSetAlreadyCaught(exception) {
|
|
|
7827
7989
|
try {
|
|
7828
7990
|
// set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the
|
|
7829
7991
|
// `ExtraErrorData` integration
|
|
7830
|
-
|
|
7992
|
+
addNonEnumerableProperty(exception , '__sentry_captured__', true);
|
|
7831
7993
|
} catch (err) {
|
|
7832
7994
|
// `exception` is a primitive, so we can't mark it seen
|
|
7833
7995
|
}
|
|
@@ -7841,14 +8003,14 @@ function checkOrSetAlreadyCaught(exception) {
|
|
|
7841
8003
|
* @param maybeArray Input to turn into an array, if necessary
|
|
7842
8004
|
* @returns The input, if already an array, or an array with the input as the only element, if not
|
|
7843
8005
|
*/
|
|
7844
|
-
function
|
|
8006
|
+
function arrayify(maybeArray) {
|
|
7845
8007
|
return Array.isArray(maybeArray) ? maybeArray : [maybeArray];
|
|
7846
8008
|
}
|
|
7847
8009
|
|
|
7848
8010
|
|
|
7849
8011
|
//# sourceMappingURL=misc.js.map
|
|
7850
8012
|
|
|
7851
|
-
;//
|
|
8013
|
+
;// ./node_modules/@sentry/utils/build/esm/syncpromise.js
|
|
7852
8014
|
|
|
7853
8015
|
|
|
7854
8016
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
@@ -8042,7 +8204,7 @@ class SyncPromise {
|
|
|
8042
8204
|
|
|
8043
8205
|
//# sourceMappingURL=syncpromise.js.map
|
|
8044
8206
|
|
|
8045
|
-
;//
|
|
8207
|
+
;// ./node_modules/@sentry/utils/build/esm/memo.js
|
|
8046
8208
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
8047
8209
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8048
8210
|
|
|
@@ -8089,7 +8251,7 @@ function memoBuilder() {
|
|
|
8089
8251
|
|
|
8090
8252
|
//# sourceMappingURL=memo.js.map
|
|
8091
8253
|
|
|
8092
|
-
;//
|
|
8254
|
+
;// ./node_modules/@sentry/utils/build/esm/stacktrace.js
|
|
8093
8255
|
const STACKTRACE_FRAME_LIMIT = 50;
|
|
8094
8256
|
const UNKNOWN_FUNCTION = '?';
|
|
8095
8257
|
// Used to sanitize webpack (error: *) wrapped stack errors
|
|
@@ -8256,7 +8418,7 @@ function getFramesFromEvent(event) {
|
|
|
8256
8418
|
|
|
8257
8419
|
//# sourceMappingURL=stacktrace.js.map
|
|
8258
8420
|
|
|
8259
|
-
;//
|
|
8421
|
+
;// ./node_modules/@sentry/utils/build/esm/normalize.js
|
|
8260
8422
|
|
|
8261
8423
|
|
|
8262
8424
|
|
|
@@ -8447,7 +8609,7 @@ function stringifyValue(
|
|
|
8447
8609
|
// It's safe to use `global`, `window`, and `document` here in this manner, as we are asserting using `typeof` first
|
|
8448
8610
|
// which won't throw if they are not present.
|
|
8449
8611
|
|
|
8450
|
-
if (typeof
|
|
8612
|
+
if (typeof __webpack_require__.g !== 'undefined' && value === __webpack_require__.g) {
|
|
8451
8613
|
return '[Global]';
|
|
8452
8614
|
}
|
|
8453
8615
|
|
|
@@ -8556,7 +8718,8 @@ function normalizeUrlToBase(url, basePath) {
|
|
|
8556
8718
|
|
|
8557
8719
|
//# sourceMappingURL=normalize.js.map
|
|
8558
8720
|
|
|
8559
|
-
;//
|
|
8721
|
+
;// ./node_modules/@sentry/utils/build/esm/envelope.js
|
|
8722
|
+
/* unused harmony import specifier */ var envelope_GLOBAL_OBJ;
|
|
8560
8723
|
|
|
8561
8724
|
|
|
8562
8725
|
|
|
@@ -8567,7 +8730,7 @@ function normalizeUrlToBase(url, basePath) {
|
|
|
8567
8730
|
* Make sure to always explicitly provide the generic to this function
|
|
8568
8731
|
* so that the envelope types resolve correctly.
|
|
8569
8732
|
*/
|
|
8570
|
-
function
|
|
8733
|
+
function createEnvelope(headers, items = []) {
|
|
8571
8734
|
return [headers, items] ;
|
|
8572
8735
|
}
|
|
8573
8736
|
|
|
@@ -8616,8 +8779,8 @@ function envelopeContainsItemType(envelope, types) {
|
|
|
8616
8779
|
* Encode a string to UTF8 array.
|
|
8617
8780
|
*/
|
|
8618
8781
|
function encodeUTF8(input) {
|
|
8619
|
-
return
|
|
8620
|
-
?
|
|
8782
|
+
return GLOBAL_OBJ.__SENTRY__ && GLOBAL_OBJ.__SENTRY__.encodePolyfill
|
|
8783
|
+
? GLOBAL_OBJ.__SENTRY__.encodePolyfill(input)
|
|
8621
8784
|
: new TextEncoder().encode(input);
|
|
8622
8785
|
}
|
|
8623
8786
|
|
|
@@ -8625,8 +8788,8 @@ function encodeUTF8(input) {
|
|
|
8625
8788
|
* Decode a UTF8 array to string.
|
|
8626
8789
|
*/
|
|
8627
8790
|
function decodeUTF8(input) {
|
|
8628
|
-
return
|
|
8629
|
-
?
|
|
8791
|
+
return envelope_GLOBAL_OBJ.__SENTRY__ && envelope_GLOBAL_OBJ.__SENTRY__.decodePolyfill
|
|
8792
|
+
? envelope_GLOBAL_OBJ.__SENTRY__.decodePolyfill(input)
|
|
8630
8793
|
: new TextDecoder().decode(input);
|
|
8631
8794
|
}
|
|
8632
8795
|
|
|
@@ -8724,7 +8887,7 @@ function parseEnvelope(env) {
|
|
|
8724
8887
|
/**
|
|
8725
8888
|
* Creates envelope item for a single span
|
|
8726
8889
|
*/
|
|
8727
|
-
function
|
|
8890
|
+
function createSpanEnvelopeItem(spanJson) {
|
|
8728
8891
|
const spanHeaders = {
|
|
8729
8892
|
type: 'span',
|
|
8730
8893
|
};
|
|
@@ -8739,7 +8902,7 @@ function createAttachmentEnvelopeItem(attachment) {
|
|
|
8739
8902
|
const buffer = typeof attachment.data === 'string' ? encodeUTF8(attachment.data) : attachment.data;
|
|
8740
8903
|
|
|
8741
8904
|
return [
|
|
8742
|
-
|
|
8905
|
+
dropUndefinedKeys({
|
|
8743
8906
|
type: 'attachment',
|
|
8744
8907
|
length: buffer.length,
|
|
8745
8908
|
filename: attachment.filename,
|
|
@@ -8799,9 +8962,9 @@ function createEventEnvelopeHeaders(
|
|
|
8799
8962
|
event_id: event.event_id ,
|
|
8800
8963
|
sent_at: new Date().toISOString(),
|
|
8801
8964
|
...(sdkInfo && { sdk: sdkInfo }),
|
|
8802
|
-
...(!!tunnel && dsn && { dsn:
|
|
8965
|
+
...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),
|
|
8803
8966
|
...(dynamicSamplingContext && {
|
|
8804
|
-
trace:
|
|
8967
|
+
trace: dropUndefinedKeys({ ...dynamicSamplingContext }),
|
|
8805
8968
|
}),
|
|
8806
8969
|
};
|
|
8807
8970
|
}
|
|
@@ -8809,7 +8972,7 @@ function createEventEnvelopeHeaders(
|
|
|
8809
8972
|
|
|
8810
8973
|
//# sourceMappingURL=envelope.js.map
|
|
8811
8974
|
|
|
8812
|
-
;//
|
|
8975
|
+
;// ./node_modules/@sentry/utils/build/esm/error.js
|
|
8813
8976
|
/** An error emitted by Sentry SDKs and related utilities. */
|
|
8814
8977
|
class SentryError extends Error {
|
|
8815
8978
|
/** Display name of this error instance. */
|
|
@@ -8828,7 +8991,7 @@ class SentryError extends Error {
|
|
|
8828
8991
|
|
|
8829
8992
|
//# sourceMappingURL=error.js.map
|
|
8830
8993
|
|
|
8831
|
-
;//
|
|
8994
|
+
;// ./node_modules/@sentry/utils/build/esm/time.js
|
|
8832
8995
|
|
|
8833
8996
|
|
|
8834
8997
|
const ONE_SECOND_IN_MS = 1000;
|
|
@@ -8854,7 +9017,7 @@ function dateTimestampInSeconds() {
|
|
|
8854
9017
|
* Wrapping the native API works around differences in behavior from different browsers.
|
|
8855
9018
|
*/
|
|
8856
9019
|
function createUnixTimestampInSecondsFunc() {
|
|
8857
|
-
const { performance } =
|
|
9020
|
+
const { performance } = GLOBAL_OBJ ;
|
|
8858
9021
|
if (!performance || !performance.now) {
|
|
8859
9022
|
return dateTimestampInSeconds;
|
|
8860
9023
|
}
|
|
@@ -8887,7 +9050,7 @@ function createUnixTimestampInSecondsFunc() {
|
|
|
8887
9050
|
* skew can grow to arbitrary amounts like days, weeks or months.
|
|
8888
9051
|
* See https://github.com/getsentry/sentry-javascript/issues/2590.
|
|
8889
9052
|
*/
|
|
8890
|
-
const
|
|
9053
|
+
const timestampInSeconds = createUnixTimestampInSecondsFunc();
|
|
8891
9054
|
|
|
8892
9055
|
/**
|
|
8893
9056
|
* Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only.
|
|
@@ -8903,7 +9066,7 @@ const browserPerformanceTimeOrigin = (() => {
|
|
|
8903
9066
|
// performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin
|
|
8904
9067
|
// data as reliable if they are within a reasonable threshold of the current time.
|
|
8905
9068
|
|
|
8906
|
-
const { performance } =
|
|
9069
|
+
const { performance } = GLOBAL_OBJ ;
|
|
8907
9070
|
if (!performance || !performance.now) {
|
|
8908
9071
|
_browserPerformanceTimeOriginMode = 'none';
|
|
8909
9072
|
return undefined;
|
|
@@ -8950,7 +9113,7 @@ const browserPerformanceTimeOrigin = (() => {
|
|
|
8950
9113
|
|
|
8951
9114
|
//# sourceMappingURL=time.js.map
|
|
8952
9115
|
|
|
8953
|
-
;//
|
|
9116
|
+
;// ./node_modules/@sentry/utils/build/esm/clientreport.js
|
|
8954
9117
|
|
|
8955
9118
|
|
|
8956
9119
|
|
|
@@ -8971,13 +9134,15 @@ function createClientReportEnvelope(
|
|
|
8971
9134
|
discarded_events,
|
|
8972
9135
|
},
|
|
8973
9136
|
];
|
|
8974
|
-
return
|
|
9137
|
+
return createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);
|
|
8975
9138
|
}
|
|
8976
9139
|
|
|
8977
9140
|
|
|
8978
9141
|
//# sourceMappingURL=clientreport.js.map
|
|
8979
9142
|
|
|
8980
|
-
;//
|
|
9143
|
+
;// ./node_modules/@sentry/core/build/esm/api.js
|
|
9144
|
+
/* unused harmony import specifier */ var api_makeDsn;
|
|
9145
|
+
/* unused harmony import specifier */ var api_dsnToString;
|
|
8981
9146
|
|
|
8982
9147
|
|
|
8983
9148
|
const SENTRY_API_VERSION = '7';
|
|
@@ -9021,14 +9186,14 @@ function getReportDialogEndpoint(
|
|
|
9021
9186
|
|
|
9022
9187
|
,
|
|
9023
9188
|
) {
|
|
9024
|
-
const dsn =
|
|
9189
|
+
const dsn = api_makeDsn(dsnLike);
|
|
9025
9190
|
if (!dsn) {
|
|
9026
9191
|
return '';
|
|
9027
9192
|
}
|
|
9028
9193
|
|
|
9029
9194
|
const endpoint = `${getBaseApiEndpoint(dsn)}embed/error-page/`;
|
|
9030
9195
|
|
|
9031
|
-
let encodedOptions = `dsn=${
|
|
9196
|
+
let encodedOptions = `dsn=${api_dsnToString(dsn)}`;
|
|
9032
9197
|
for (const key in dialogOptions) {
|
|
9033
9198
|
if (key === 'dsn') {
|
|
9034
9199
|
continue;
|
|
@@ -9060,7 +9225,7 @@ function getReportDialogEndpoint(
|
|
|
9060
9225
|
|
|
9061
9226
|
//# sourceMappingURL=api.js.map
|
|
9062
9227
|
|
|
9063
|
-
;//
|
|
9228
|
+
;// ./node_modules/@sentry/core/build/esm/carrier.js
|
|
9064
9229
|
|
|
9065
9230
|
|
|
9066
9231
|
/**
|
|
@@ -9075,14 +9240,14 @@ function getReportDialogEndpoint(
|
|
|
9075
9240
|
* it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check
|
|
9076
9241
|
* at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.
|
|
9077
9242
|
**/
|
|
9078
|
-
function
|
|
9243
|
+
function getMainCarrier() {
|
|
9079
9244
|
// This ensures a Sentry carrier exists
|
|
9080
|
-
|
|
9081
|
-
return
|
|
9245
|
+
getSentryCarrier(GLOBAL_OBJ);
|
|
9246
|
+
return GLOBAL_OBJ;
|
|
9082
9247
|
}
|
|
9083
9248
|
|
|
9084
9249
|
/** Will either get the existing sentry carrier, or create a new one. */
|
|
9085
|
-
function
|
|
9250
|
+
function getSentryCarrier(carrier) {
|
|
9086
9251
|
const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});
|
|
9087
9252
|
|
|
9088
9253
|
// For now: First SDK that sets the .version property wins
|
|
@@ -9096,7 +9261,7 @@ function carrier_getSentryCarrier(carrier) {
|
|
|
9096
9261
|
|
|
9097
9262
|
//# sourceMappingURL=carrier.js.map
|
|
9098
9263
|
|
|
9099
|
-
;//
|
|
9264
|
+
;// ./node_modules/@sentry/utils/build/esm/propagationContext.js
|
|
9100
9265
|
|
|
9101
9266
|
|
|
9102
9267
|
/**
|
|
@@ -9104,15 +9269,18 @@ function carrier_getSentryCarrier(carrier) {
|
|
|
9104
9269
|
*/
|
|
9105
9270
|
function generatePropagationContext() {
|
|
9106
9271
|
return {
|
|
9107
|
-
traceId:
|
|
9108
|
-
spanId:
|
|
9272
|
+
traceId: uuid4(),
|
|
9273
|
+
spanId: uuid4().substring(16),
|
|
9109
9274
|
};
|
|
9110
9275
|
}
|
|
9111
9276
|
|
|
9112
9277
|
|
|
9113
9278
|
//# sourceMappingURL=propagationContext.js.map
|
|
9114
9279
|
|
|
9115
|
-
;//
|
|
9280
|
+
;// ./node_modules/@sentry/core/build/esm/session.js
|
|
9281
|
+
/* unused harmony import specifier */ var session_uuid4;
|
|
9282
|
+
/* unused harmony import specifier */ var session_dropUndefinedKeys;
|
|
9283
|
+
/* unused harmony import specifier */ var session_timestampInSeconds;
|
|
9116
9284
|
|
|
9117
9285
|
|
|
9118
9286
|
/**
|
|
@@ -9125,10 +9293,10 @@ function generatePropagationContext() {
|
|
|
9125
9293
|
*/
|
|
9126
9294
|
function makeSession(context) {
|
|
9127
9295
|
// Both timestamp and started are in seconds since the UNIX epoch.
|
|
9128
|
-
const startingTime =
|
|
9296
|
+
const startingTime = session_timestampInSeconds();
|
|
9129
9297
|
|
|
9130
9298
|
const session = {
|
|
9131
|
-
sid:
|
|
9299
|
+
sid: session_uuid4(),
|
|
9132
9300
|
init: true,
|
|
9133
9301
|
timestamp: startingTime,
|
|
9134
9302
|
started: startingTime,
|
|
@@ -9169,7 +9337,7 @@ function updateSession(session, context = {}) {
|
|
|
9169
9337
|
}
|
|
9170
9338
|
}
|
|
9171
9339
|
|
|
9172
|
-
session.timestamp = context.timestamp ||
|
|
9340
|
+
session.timestamp = context.timestamp || timestampInSeconds();
|
|
9173
9341
|
|
|
9174
9342
|
if (context.abnormal_mechanism) {
|
|
9175
9343
|
session.abnormal_mechanism = context.abnormal_mechanism;
|
|
@@ -9180,7 +9348,7 @@ function updateSession(session, context = {}) {
|
|
|
9180
9348
|
}
|
|
9181
9349
|
if (context.sid) {
|
|
9182
9350
|
// Good enough uuid validation. — Kamil
|
|
9183
|
-
session.sid = context.sid.length === 32 ? context.sid :
|
|
9351
|
+
session.sid = context.sid.length === 32 ? context.sid : uuid4();
|
|
9184
9352
|
}
|
|
9185
9353
|
if (context.init !== undefined) {
|
|
9186
9354
|
session.init = context.init;
|
|
@@ -9251,7 +9419,7 @@ function closeSession(session, status) {
|
|
|
9251
9419
|
* @returns a JSON object of the passed session
|
|
9252
9420
|
*/
|
|
9253
9421
|
function sessionToJSON(session) {
|
|
9254
|
-
return
|
|
9422
|
+
return session_dropUndefinedKeys({
|
|
9255
9423
|
sid: `${session.sid}`,
|
|
9256
9424
|
init: session.init,
|
|
9257
9425
|
// Make sure that sec is converted to ms for date constructor
|
|
@@ -9274,7 +9442,7 @@ function sessionToJSON(session) {
|
|
|
9274
9442
|
|
|
9275
9443
|
//# sourceMappingURL=session.js.map
|
|
9276
9444
|
|
|
9277
|
-
;//
|
|
9445
|
+
;// ./node_modules/@sentry/core/build/esm/utils/spanOnScope.js
|
|
9278
9446
|
|
|
9279
9447
|
|
|
9280
9448
|
const SCOPE_SPAN_FIELD = '_sentrySpan';
|
|
@@ -9285,7 +9453,7 @@ const SCOPE_SPAN_FIELD = '_sentrySpan';
|
|
|
9285
9453
|
*/
|
|
9286
9454
|
function _setSpanForScope(scope, span) {
|
|
9287
9455
|
if (span) {
|
|
9288
|
-
|
|
9456
|
+
addNonEnumerableProperty(scope , SCOPE_SPAN_FIELD, span);
|
|
9289
9457
|
} else {
|
|
9290
9458
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
9291
9459
|
delete (scope )[SCOPE_SPAN_FIELD];
|
|
@@ -9296,14 +9464,14 @@ function _setSpanForScope(scope, span) {
|
|
|
9296
9464
|
* Get the active span for a given scope.
|
|
9297
9465
|
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
9298
9466
|
*/
|
|
9299
|
-
function
|
|
9467
|
+
function _getSpanForScope(scope) {
|
|
9300
9468
|
return scope[SCOPE_SPAN_FIELD];
|
|
9301
9469
|
}
|
|
9302
9470
|
|
|
9303
9471
|
|
|
9304
9472
|
//# sourceMappingURL=spanOnScope.js.map
|
|
9305
9473
|
|
|
9306
|
-
;//
|
|
9474
|
+
;// ./node_modules/@sentry/core/build/esm/scope.js
|
|
9307
9475
|
|
|
9308
9476
|
|
|
9309
9477
|
|
|
@@ -9399,7 +9567,7 @@ class ScopeClass {
|
|
|
9399
9567
|
newScope._client = this._client;
|
|
9400
9568
|
newScope._lastEventId = this._lastEventId;
|
|
9401
9569
|
|
|
9402
|
-
_setSpanForScope(newScope,
|
|
9570
|
+
_setSpanForScope(newScope, _getSpanForScope(this));
|
|
9403
9571
|
|
|
9404
9572
|
return newScope;
|
|
9405
9573
|
}
|
|
@@ -9605,7 +9773,7 @@ class ScopeClass {
|
|
|
9605
9773
|
const scopeToMerge = typeof captureContext === 'function' ? captureContext(this) : captureContext;
|
|
9606
9774
|
|
|
9607
9775
|
const [scopeInstance, requestSession] =
|
|
9608
|
-
scopeToMerge instanceof
|
|
9776
|
+
scopeToMerge instanceof Scope
|
|
9609
9777
|
? [scopeToMerge.getScopeData(), scopeToMerge.getRequestSession()]
|
|
9610
9778
|
: isPlainObject(scopeToMerge)
|
|
9611
9779
|
? [captureContext , (captureContext ).requestSession]
|
|
@@ -9735,7 +9903,7 @@ class ScopeClass {
|
|
|
9735
9903
|
propagationContext: this._propagationContext,
|
|
9736
9904
|
sdkProcessingMetadata: this._sdkProcessingMetadata,
|
|
9737
9905
|
transactionName: this._transactionName,
|
|
9738
|
-
span:
|
|
9906
|
+
span: _getSpanForScope(this),
|
|
9739
9907
|
};
|
|
9740
9908
|
}
|
|
9741
9909
|
|
|
@@ -9767,10 +9935,10 @@ class ScopeClass {
|
|
|
9767
9935
|
* @inheritDoc
|
|
9768
9936
|
*/
|
|
9769
9937
|
captureException(exception, hint) {
|
|
9770
|
-
const eventId = hint && hint.event_id ? hint.event_id :
|
|
9938
|
+
const eventId = hint && hint.event_id ? hint.event_id : uuid4();
|
|
9771
9939
|
|
|
9772
9940
|
if (!this._client) {
|
|
9773
|
-
|
|
9941
|
+
logger.warn('No client configured on scope - will not capture exception!');
|
|
9774
9942
|
return eventId;
|
|
9775
9943
|
}
|
|
9776
9944
|
|
|
@@ -9794,10 +9962,10 @@ class ScopeClass {
|
|
|
9794
9962
|
* @inheritDoc
|
|
9795
9963
|
*/
|
|
9796
9964
|
captureMessage(message, level, hint) {
|
|
9797
|
-
const eventId = hint && hint.event_id ? hint.event_id :
|
|
9965
|
+
const eventId = hint && hint.event_id ? hint.event_id : uuid4();
|
|
9798
9966
|
|
|
9799
9967
|
if (!this._client) {
|
|
9800
|
-
|
|
9968
|
+
logger.warn('No client configured on scope - will not capture message!');
|
|
9801
9969
|
return eventId;
|
|
9802
9970
|
}
|
|
9803
9971
|
|
|
@@ -9822,10 +9990,10 @@ class ScopeClass {
|
|
|
9822
9990
|
* @inheritDoc
|
|
9823
9991
|
*/
|
|
9824
9992
|
captureEvent(event, hint) {
|
|
9825
|
-
const eventId = hint && hint.event_id ? hint.event_id :
|
|
9993
|
+
const eventId = hint && hint.event_id ? hint.event_id : uuid4();
|
|
9826
9994
|
|
|
9827
9995
|
if (!this._client) {
|
|
9828
|
-
|
|
9996
|
+
logger.warn('No client configured on scope - will not capture event!');
|
|
9829
9997
|
return eventId;
|
|
9830
9998
|
}
|
|
9831
9999
|
|
|
@@ -9858,7 +10026,7 @@ class ScopeClass {
|
|
|
9858
10026
|
/**
|
|
9859
10027
|
* Holds additional event information.
|
|
9860
10028
|
*/
|
|
9861
|
-
const
|
|
10029
|
+
const Scope = ScopeClass;
|
|
9862
10030
|
|
|
9863
10031
|
/**
|
|
9864
10032
|
* Holds additional event information.
|
|
@@ -9867,24 +10035,24 @@ const scope_Scope = ScopeClass;
|
|
|
9867
10035
|
|
|
9868
10036
|
//# sourceMappingURL=scope.js.map
|
|
9869
10037
|
|
|
9870
|
-
;//
|
|
10038
|
+
;// ./node_modules/@sentry/core/build/esm/defaultScopes.js
|
|
9871
10039
|
|
|
9872
10040
|
|
|
9873
10041
|
|
|
9874
10042
|
/** Get the default current scope. */
|
|
9875
10043
|
function getDefaultCurrentScope() {
|
|
9876
|
-
return getGlobalSingleton('defaultCurrentScope', () => new
|
|
10044
|
+
return getGlobalSingleton('defaultCurrentScope', () => new Scope());
|
|
9877
10045
|
}
|
|
9878
10046
|
|
|
9879
10047
|
/** Get the default isolation scope. */
|
|
9880
10048
|
function getDefaultIsolationScope() {
|
|
9881
|
-
return getGlobalSingleton('defaultIsolationScope', () => new
|
|
10049
|
+
return getGlobalSingleton('defaultIsolationScope', () => new Scope());
|
|
9882
10050
|
}
|
|
9883
10051
|
|
|
9884
10052
|
|
|
9885
10053
|
//# sourceMappingURL=defaultScopes.js.map
|
|
9886
10054
|
|
|
9887
|
-
;//
|
|
10055
|
+
;// ./node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
|
|
9888
10056
|
|
|
9889
10057
|
|
|
9890
10058
|
|
|
@@ -9898,14 +10066,14 @@ class AsyncContextStack {
|
|
|
9898
10066
|
constructor(scope, isolationScope) {
|
|
9899
10067
|
let assignedScope;
|
|
9900
10068
|
if (!scope) {
|
|
9901
|
-
assignedScope = new
|
|
10069
|
+
assignedScope = new Scope();
|
|
9902
10070
|
} else {
|
|
9903
10071
|
assignedScope = scope;
|
|
9904
10072
|
}
|
|
9905
10073
|
|
|
9906
10074
|
let assignedIsolationScope;
|
|
9907
10075
|
if (!isolationScope) {
|
|
9908
|
-
assignedIsolationScope = new
|
|
10076
|
+
assignedIsolationScope = new Scope();
|
|
9909
10077
|
} else {
|
|
9910
10078
|
assignedIsolationScope = isolationScope;
|
|
9911
10079
|
}
|
|
@@ -10002,13 +10170,13 @@ class AsyncContextStack {
|
|
|
10002
10170
|
* This will be removed during the v8 cycle and is only here to make migration easier.
|
|
10003
10171
|
*/
|
|
10004
10172
|
function getAsyncContextStack() {
|
|
10005
|
-
const registry =
|
|
10006
|
-
const sentry =
|
|
10173
|
+
const registry = getMainCarrier();
|
|
10174
|
+
const sentry = getSentryCarrier(registry);
|
|
10007
10175
|
|
|
10008
10176
|
return (sentry.stack = sentry.stack || new AsyncContextStack(getDefaultCurrentScope(), getDefaultIsolationScope()));
|
|
10009
10177
|
}
|
|
10010
10178
|
|
|
10011
|
-
function
|
|
10179
|
+
function withScope(callback) {
|
|
10012
10180
|
return getAsyncContextStack().withScope(callback);
|
|
10013
10181
|
}
|
|
10014
10182
|
|
|
@@ -10032,7 +10200,7 @@ function withIsolationScope(callback) {
|
|
|
10032
10200
|
function getStackAsyncContextStrategy() {
|
|
10033
10201
|
return {
|
|
10034
10202
|
withIsolationScope,
|
|
10035
|
-
withScope
|
|
10203
|
+
withScope,
|
|
10036
10204
|
withSetScope,
|
|
10037
10205
|
withSetIsolationScope: (_isolationScope, callback) => {
|
|
10038
10206
|
return withIsolationScope(callback);
|
|
@@ -10045,7 +10213,9 @@ function getStackAsyncContextStrategy() {
|
|
|
10045
10213
|
|
|
10046
10214
|
//# sourceMappingURL=stackStrategy.js.map
|
|
10047
10215
|
|
|
10048
|
-
;//
|
|
10216
|
+
;// ./node_modules/@sentry/core/build/esm/asyncContext/index.js
|
|
10217
|
+
/* unused harmony import specifier */ var asyncContext_getMainCarrier;
|
|
10218
|
+
/* unused harmony import specifier */ var asyncContext_getSentryCarrier;
|
|
10049
10219
|
|
|
10050
10220
|
|
|
10051
10221
|
|
|
@@ -10056,8 +10226,8 @@ function getStackAsyncContextStrategy() {
|
|
|
10056
10226
|
*/
|
|
10057
10227
|
function setAsyncContextStrategy(strategy) {
|
|
10058
10228
|
// Get main carrier (global for every environment)
|
|
10059
|
-
const registry =
|
|
10060
|
-
const sentry =
|
|
10229
|
+
const registry = asyncContext_getMainCarrier();
|
|
10230
|
+
const sentry = asyncContext_getSentryCarrier(registry);
|
|
10061
10231
|
sentry.acs = strategy;
|
|
10062
10232
|
}
|
|
10063
10233
|
|
|
@@ -10065,8 +10235,8 @@ function setAsyncContextStrategy(strategy) {
|
|
|
10065
10235
|
* Get the current async context strategy.
|
|
10066
10236
|
* If none has been setup, the default will be used.
|
|
10067
10237
|
*/
|
|
10068
|
-
function
|
|
10069
|
-
const sentry =
|
|
10238
|
+
function getAsyncContextStrategy(carrier) {
|
|
10239
|
+
const sentry = getSentryCarrier(carrier);
|
|
10070
10240
|
|
|
10071
10241
|
if (sentry.acs) {
|
|
10072
10242
|
return sentry.acs;
|
|
@@ -10079,7 +10249,9 @@ function asyncContext_getAsyncContextStrategy(carrier) {
|
|
|
10079
10249
|
|
|
10080
10250
|
//# sourceMappingURL=index.js.map
|
|
10081
10251
|
|
|
10082
|
-
;//
|
|
10252
|
+
;// ./node_modules/@sentry/core/build/esm/currentScopes.js
|
|
10253
|
+
/* unused harmony import specifier */ var currentScopes_getAsyncContextStrategy;
|
|
10254
|
+
/* unused harmony import specifier */ var currentScopes_getMainCarrier;
|
|
10083
10255
|
|
|
10084
10256
|
|
|
10085
10257
|
|
|
@@ -10088,9 +10260,9 @@ function asyncContext_getAsyncContextStrategy(carrier) {
|
|
|
10088
10260
|
/**
|
|
10089
10261
|
* Get the currently active scope.
|
|
10090
10262
|
*/
|
|
10091
|
-
function
|
|
10092
|
-
const carrier =
|
|
10093
|
-
const acs =
|
|
10263
|
+
function getCurrentScope() {
|
|
10264
|
+
const carrier = getMainCarrier();
|
|
10265
|
+
const acs = getAsyncContextStrategy(carrier);
|
|
10094
10266
|
return acs.getCurrentScope();
|
|
10095
10267
|
}
|
|
10096
10268
|
|
|
@@ -10099,8 +10271,8 @@ function currentScopes_getCurrentScope() {
|
|
|
10099
10271
|
* The isolation scope is active for the current exection context.
|
|
10100
10272
|
*/
|
|
10101
10273
|
function getIsolationScope() {
|
|
10102
|
-
const carrier =
|
|
10103
|
-
const acs =
|
|
10274
|
+
const carrier = getMainCarrier();
|
|
10275
|
+
const acs = getAsyncContextStrategy(carrier);
|
|
10104
10276
|
return acs.getIsolationScope();
|
|
10105
10277
|
}
|
|
10106
10278
|
|
|
@@ -10109,7 +10281,7 @@ function getIsolationScope() {
|
|
|
10109
10281
|
* This scope is applied to _all_ events.
|
|
10110
10282
|
*/
|
|
10111
10283
|
function getGlobalScope() {
|
|
10112
|
-
return getGlobalSingleton('globalScope', () => new
|
|
10284
|
+
return getGlobalSingleton('globalScope', () => new Scope());
|
|
10113
10285
|
}
|
|
10114
10286
|
|
|
10115
10287
|
/**
|
|
@@ -10124,8 +10296,8 @@ function getGlobalScope() {
|
|
|
10124
10296
|
function currentScopes_withScope(
|
|
10125
10297
|
...rest
|
|
10126
10298
|
) {
|
|
10127
|
-
const carrier =
|
|
10128
|
-
const acs =
|
|
10299
|
+
const carrier = currentScopes_getMainCarrier();
|
|
10300
|
+
const acs = currentScopes_getAsyncContextStrategy(carrier);
|
|
10129
10301
|
|
|
10130
10302
|
// If a scope is defined, we want to make this the active scope instead of the default one
|
|
10131
10303
|
if (rest.length === 2) {
|
|
@@ -10159,8 +10331,8 @@ function currentScopes_withIsolationScope(
|
|
|
10159
10331
|
...rest
|
|
10160
10332
|
|
|
10161
10333
|
) {
|
|
10162
|
-
const carrier =
|
|
10163
|
-
const acs =
|
|
10334
|
+
const carrier = currentScopes_getMainCarrier();
|
|
10335
|
+
const acs = currentScopes_getAsyncContextStrategy(carrier);
|
|
10164
10336
|
|
|
10165
10337
|
// If a scope is defined, we want to make this the active scope instead of the default one
|
|
10166
10338
|
if (rest.length === 2) {
|
|
@@ -10179,25 +10351,30 @@ function currentScopes_withIsolationScope(
|
|
|
10179
10351
|
/**
|
|
10180
10352
|
* Get the currently active client.
|
|
10181
10353
|
*/
|
|
10182
|
-
function
|
|
10183
|
-
return
|
|
10354
|
+
function getClient() {
|
|
10355
|
+
return getCurrentScope().getClient();
|
|
10184
10356
|
}
|
|
10185
10357
|
|
|
10186
10358
|
|
|
10187
10359
|
//# sourceMappingURL=currentScopes.js.map
|
|
10188
10360
|
|
|
10189
|
-
;//
|
|
10361
|
+
;// ./node_modules/@sentry/core/build/esm/debug-build.js
|
|
10190
10362
|
/**
|
|
10191
10363
|
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
10192
10364
|
*
|
|
10193
10365
|
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
10194
10366
|
*/
|
|
10195
|
-
const
|
|
10367
|
+
const debug_build_DEBUG_BUILD = (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__);
|
|
10196
10368
|
|
|
10197
10369
|
|
|
10198
10370
|
//# sourceMappingURL=debug-build.js.map
|
|
10199
10371
|
|
|
10200
|
-
;//
|
|
10372
|
+
;// ./node_modules/@sentry/core/build/esm/envelope.js
|
|
10373
|
+
/* unused harmony import specifier */ var envelope_dsnToString;
|
|
10374
|
+
/* unused harmony import specifier */ var envelope_createSpanEnvelopeItem;
|
|
10375
|
+
/* unused harmony import specifier */ var envelope_createEnvelope;
|
|
10376
|
+
/* unused harmony import specifier */ var getDynamicSamplingContextFromSpan;
|
|
10377
|
+
/* unused harmony import specifier */ var spanToJSON;
|
|
10201
10378
|
|
|
10202
10379
|
|
|
10203
10380
|
|
|
@@ -10229,13 +10406,13 @@ function createSessionEnvelope(
|
|
|
10229
10406
|
const envelopeHeaders = {
|
|
10230
10407
|
sent_at: new Date().toISOString(),
|
|
10231
10408
|
...(sdkInfo && { sdk: sdkInfo }),
|
|
10232
|
-
...(!!tunnel && dsn && { dsn:
|
|
10409
|
+
...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),
|
|
10233
10410
|
};
|
|
10234
10411
|
|
|
10235
10412
|
const envelopeItem =
|
|
10236
10413
|
'aggregates' in session ? [{ type: 'sessions' }, session] : [{ type: 'session' }, session.toJSON()];
|
|
10237
10414
|
|
|
10238
|
-
return
|
|
10415
|
+
return createEnvelope(envelopeHeaders, [envelopeItem]);
|
|
10239
10416
|
}
|
|
10240
10417
|
|
|
10241
10418
|
/**
|
|
@@ -10269,7 +10446,7 @@ function createEventEnvelope(
|
|
|
10269
10446
|
delete event.sdkProcessingMetadata;
|
|
10270
10447
|
|
|
10271
10448
|
const eventItem = [{ type: eventType }, event];
|
|
10272
|
-
return
|
|
10449
|
+
return createEnvelope(envelopeHeaders, [eventItem]);
|
|
10273
10450
|
}
|
|
10274
10451
|
|
|
10275
10452
|
/**
|
|
@@ -10293,7 +10470,7 @@ function createSpanEnvelope(spans, client) {
|
|
|
10293
10470
|
const headers = {
|
|
10294
10471
|
sent_at: new Date().toISOString(),
|
|
10295
10472
|
...(dscHasRequiredProps(dsc) && { trace: dsc }),
|
|
10296
|
-
...(!!tunnel && dsn && { dsn:
|
|
10473
|
+
...(!!tunnel && dsn && { dsn: envelope_dsnToString(dsn) }),
|
|
10297
10474
|
};
|
|
10298
10475
|
|
|
10299
10476
|
const beforeSendSpan = client && client.getOptions().beforeSendSpan;
|
|
@@ -10305,17 +10482,21 @@ function createSpanEnvelope(spans, client) {
|
|
|
10305
10482
|
for (const span of spans) {
|
|
10306
10483
|
const spanJson = convertToSpanJSON(span);
|
|
10307
10484
|
if (spanJson) {
|
|
10308
|
-
items.push(
|
|
10485
|
+
items.push(envelope_createSpanEnvelopeItem(spanJson));
|
|
10309
10486
|
}
|
|
10310
10487
|
}
|
|
10311
10488
|
|
|
10312
|
-
return
|
|
10489
|
+
return envelope_createEnvelope(headers, items);
|
|
10313
10490
|
}
|
|
10314
10491
|
|
|
10315
10492
|
|
|
10316
10493
|
//# sourceMappingURL=envelope.js.map
|
|
10317
10494
|
|
|
10318
|
-
;//
|
|
10495
|
+
;// ./node_modules/@sentry/core/build/esm/integration.js
|
|
10496
|
+
/* unused harmony import specifier */ var integration_logger;
|
|
10497
|
+
/* unused harmony import specifier */ var integration_arrayify;
|
|
10498
|
+
/* unused harmony import specifier */ var integration_getClient;
|
|
10499
|
+
/* unused harmony import specifier */ var integration_DEBUG_BUILD;
|
|
10319
10500
|
|
|
10320
10501
|
|
|
10321
10502
|
|
|
@@ -10365,7 +10546,7 @@ function getIntegrationsToSetup(options) {
|
|
|
10365
10546
|
if (Array.isArray(userIntegrations)) {
|
|
10366
10547
|
integrations = [...defaultIntegrations, ...userIntegrations];
|
|
10367
10548
|
} else if (typeof userIntegrations === 'function') {
|
|
10368
|
-
integrations =
|
|
10549
|
+
integrations = integration_arrayify(userIntegrations(defaultIntegrations));
|
|
10369
10550
|
} else {
|
|
10370
10551
|
integrations = defaultIntegrations;
|
|
10371
10552
|
}
|
|
@@ -10419,7 +10600,7 @@ function afterSetupIntegrations(client, integrations) {
|
|
|
10419
10600
|
/** Setup a single integration. */
|
|
10420
10601
|
function setupIntegration(client, integration, integrationIndex) {
|
|
10421
10602
|
if (integrationIndex[integration.name]) {
|
|
10422
|
-
|
|
10603
|
+
debug_build_DEBUG_BUILD && logger.log(`Integration skipped because it was already installed: ${integration.name}`);
|
|
10423
10604
|
return;
|
|
10424
10605
|
}
|
|
10425
10606
|
integrationIndex[integration.name] = integration;
|
|
@@ -10450,15 +10631,15 @@ function setupIntegration(client, integration, integrationIndex) {
|
|
|
10450
10631
|
client.addEventProcessor(processor);
|
|
10451
10632
|
}
|
|
10452
10633
|
|
|
10453
|
-
|
|
10634
|
+
debug_build_DEBUG_BUILD && logger.log(`Integration installed: ${integration.name}`);
|
|
10454
10635
|
}
|
|
10455
10636
|
|
|
10456
10637
|
/** Add an integration to the current scope's client. */
|
|
10457
10638
|
function addIntegration(integration) {
|
|
10458
|
-
const client =
|
|
10639
|
+
const client = integration_getClient();
|
|
10459
10640
|
|
|
10460
10641
|
if (!client) {
|
|
10461
|
-
|
|
10642
|
+
integration_DEBUG_BUILD && integration_logger.warn(`Cannot add integration "${integration.name}" because no SDK Client is available.`);
|
|
10462
10643
|
return;
|
|
10463
10644
|
}
|
|
10464
10645
|
|
|
@@ -10476,7 +10657,9 @@ function defineIntegration(fn) {
|
|
|
10476
10657
|
|
|
10477
10658
|
//# sourceMappingURL=integration.js.map
|
|
10478
10659
|
|
|
10479
|
-
;//
|
|
10660
|
+
;// ./node_modules/@sentry/utils/build/esm/baggage.js
|
|
10661
|
+
/* unused harmony import specifier */ var baggage_DEBUG_BUILD;
|
|
10662
|
+
/* unused harmony import specifier */ var baggage_logger;
|
|
10480
10663
|
|
|
10481
10664
|
|
|
10482
10665
|
|
|
@@ -10538,7 +10721,7 @@ function baggageHeaderToDynamicSamplingContext(
|
|
|
10538
10721
|
* @returns a baggage header, created from `dynamicSamplingContext`, or `undefined` either if `dynamicSamplingContext`
|
|
10539
10722
|
* was `undefined`, or if `dynamicSamplingContext` didn't contain any values.
|
|
10540
10723
|
*/
|
|
10541
|
-
function
|
|
10724
|
+
function dynamicSamplingContextToSentryBaggageHeader(
|
|
10542
10725
|
// this also takes undefined for convenience and bundle size in other places
|
|
10543
10726
|
dynamicSamplingContext,
|
|
10544
10727
|
) {
|
|
@@ -10619,8 +10802,8 @@ function objectToBaggageHeader(object) {
|
|
|
10619
10802
|
const baggageEntry = `${encodeURIComponent(objectKey)}=${encodeURIComponent(objectValue)}`;
|
|
10620
10803
|
const newBaggageHeader = currentIndex === 0 ? baggageEntry : `${baggageHeader},${baggageEntry}`;
|
|
10621
10804
|
if (newBaggageHeader.length > MAX_BAGGAGE_STRING_LENGTH) {
|
|
10622
|
-
|
|
10623
|
-
|
|
10805
|
+
baggage_DEBUG_BUILD &&
|
|
10806
|
+
baggage_logger.warn(
|
|
10624
10807
|
`Not adding key: ${objectKey} with val: ${objectValue} to baggage header due to exceeding baggage size limits.`,
|
|
10625
10808
|
);
|
|
10626
10809
|
return baggageHeader;
|
|
@@ -10633,13 +10816,13 @@ function objectToBaggageHeader(object) {
|
|
|
10633
10816
|
|
|
10634
10817
|
//# sourceMappingURL=baggage.js.map
|
|
10635
10818
|
|
|
10636
|
-
;//
|
|
10819
|
+
;// ./node_modules/@sentry/core/build/esm/constants.js
|
|
10637
10820
|
const DEFAULT_ENVIRONMENT = 'production';
|
|
10638
10821
|
|
|
10639
10822
|
|
|
10640
10823
|
//# sourceMappingURL=constants.js.map
|
|
10641
10824
|
|
|
10642
|
-
;//
|
|
10825
|
+
;// ./node_modules/@sentry/core/build/esm/semanticAttributes.js
|
|
10643
10826
|
/**
|
|
10644
10827
|
* Use this attribute to represent the source of a span.
|
|
10645
10828
|
* Should be one of: custom, url, route, view, component, task, unknown
|
|
@@ -10691,7 +10874,7 @@ const SEMANTIC_ATTRIBUTE_URL_FULL = 'url.full';
|
|
|
10691
10874
|
|
|
10692
10875
|
//# sourceMappingURL=semanticAttributes.js.map
|
|
10693
10876
|
|
|
10694
|
-
;//
|
|
10877
|
+
;// ./node_modules/@sentry/core/build/esm/utils/hasTracingEnabled.js
|
|
10695
10878
|
|
|
10696
10879
|
|
|
10697
10880
|
// Treeshakable guard to remove all code related to tracing
|
|
@@ -10708,7 +10891,7 @@ function hasTracingEnabled(
|
|
|
10708
10891
|
return false;
|
|
10709
10892
|
}
|
|
10710
10893
|
|
|
10711
|
-
const client =
|
|
10894
|
+
const client = getClient();
|
|
10712
10895
|
const options = maybeOptions || (client && client.getOptions());
|
|
10713
10896
|
// eslint-disable-next-line deprecation/deprecation
|
|
10714
10897
|
return !!options && (options.enableTracing || 'tracesSampleRate' in options || 'tracesSampler' in options);
|
|
@@ -10717,7 +10900,7 @@ function hasTracingEnabled(
|
|
|
10717
10900
|
|
|
10718
10901
|
//# sourceMappingURL=hasTracingEnabled.js.map
|
|
10719
10902
|
|
|
10720
|
-
;//
|
|
10903
|
+
;// ./node_modules/@sentry/core/build/esm/metrics/metric-summary.js
|
|
10721
10904
|
|
|
10722
10905
|
|
|
10723
10906
|
/**
|
|
@@ -10740,7 +10923,7 @@ function getMetricSummaryJsonForSpan(span) {
|
|
|
10740
10923
|
|
|
10741
10924
|
for (const [, [exportKey, summary]] of storage) {
|
|
10742
10925
|
const arr = output[exportKey] || (output[exportKey] = []);
|
|
10743
|
-
arr.push(
|
|
10926
|
+
arr.push(dropUndefinedKeys(summary));
|
|
10744
10927
|
}
|
|
10745
10928
|
|
|
10746
10929
|
return output;
|
|
@@ -10749,7 +10932,7 @@ function getMetricSummaryJsonForSpan(span) {
|
|
|
10749
10932
|
/**
|
|
10750
10933
|
* Updates the metric summary on a span.
|
|
10751
10934
|
*/
|
|
10752
|
-
function
|
|
10935
|
+
function updateMetricSummaryOnSpan(
|
|
10753
10936
|
span,
|
|
10754
10937
|
metricType,
|
|
10755
10938
|
sanitizedName,
|
|
@@ -10795,7 +10978,7 @@ function metric_summary_updateMetricSummaryOnSpan(
|
|
|
10795
10978
|
|
|
10796
10979
|
//# sourceMappingURL=metric-summary.js.map
|
|
10797
10980
|
|
|
10798
|
-
;//
|
|
10981
|
+
;// ./node_modules/@sentry/core/build/esm/tracing/spanstatus.js
|
|
10799
10982
|
const SPAN_STATUS_UNSET = 0;
|
|
10800
10983
|
const SPAN_STATUS_OK = 1;
|
|
10801
10984
|
const SPAN_STATUS_ERROR = 2;
|
|
@@ -10865,7 +11048,15 @@ function setHttpStatus(span, httpStatus) {
|
|
|
10865
11048
|
|
|
10866
11049
|
//# sourceMappingURL=spanstatus.js.map
|
|
10867
11050
|
|
|
10868
|
-
;//
|
|
11051
|
+
;// ./node_modules/@sentry/core/build/esm/utils/spanUtils.js
|
|
11052
|
+
/* unused harmony import specifier */ var spanUtils_dropUndefinedKeys;
|
|
11053
|
+
/* unused harmony import specifier */ var spanUtils_addNonEnumerableProperty;
|
|
11054
|
+
/* unused harmony import specifier */ var generateSentryTraceHeader;
|
|
11055
|
+
/* unused harmony import specifier */ var spanUtils_getAsyncContextStrategy;
|
|
11056
|
+
/* unused harmony import specifier */ var spanUtils_getMainCarrier;
|
|
11057
|
+
/* unused harmony import specifier */ var spanUtils_getCurrentScope;
|
|
11058
|
+
/* unused harmony import specifier */ var spanUtils_updateMetricSummaryOnSpan;
|
|
11059
|
+
/* unused harmony import specifier */ var spanUtils_getSpanForScope;
|
|
10869
11060
|
|
|
10870
11061
|
|
|
10871
11062
|
|
|
@@ -10888,7 +11079,7 @@ function spanToTransactionTraceContext(span) {
|
|
|
10888
11079
|
const { spanId: span_id, traceId: trace_id } = span.spanContext();
|
|
10889
11080
|
const { data, op, parent_span_id, status, origin } = spanUtils_spanToJSON(span);
|
|
10890
11081
|
|
|
10891
|
-
return
|
|
11082
|
+
return spanUtils_dropUndefinedKeys({
|
|
10892
11083
|
parent_span_id,
|
|
10893
11084
|
span_id,
|
|
10894
11085
|
trace_id,
|
|
@@ -10906,7 +11097,7 @@ function spanToTraceContext(span) {
|
|
|
10906
11097
|
const { spanId: span_id, traceId: trace_id } = span.spanContext();
|
|
10907
11098
|
const { parent_span_id } = spanUtils_spanToJSON(span);
|
|
10908
11099
|
|
|
10909
|
-
return
|
|
11100
|
+
return dropUndefinedKeys({ parent_span_id, span_id, trace_id });
|
|
10910
11101
|
}
|
|
10911
11102
|
|
|
10912
11103
|
/**
|
|
@@ -10935,7 +11126,7 @@ function spanTimeInputToSeconds(input) {
|
|
|
10935
11126
|
return ensureTimestampInSeconds(input.getTime());
|
|
10936
11127
|
}
|
|
10937
11128
|
|
|
10938
|
-
return
|
|
11129
|
+
return timestampInSeconds();
|
|
10939
11130
|
}
|
|
10940
11131
|
|
|
10941
11132
|
/**
|
|
@@ -10964,7 +11155,7 @@ function spanUtils_spanToJSON(span) {
|
|
|
10964
11155
|
if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {
|
|
10965
11156
|
const { attributes, startTime, name, endTime, parentSpanId, status } = span;
|
|
10966
11157
|
|
|
10967
|
-
return
|
|
11158
|
+
return dropUndefinedKeys({
|
|
10968
11159
|
span_id,
|
|
10969
11160
|
trace_id,
|
|
10970
11161
|
data: attributes,
|
|
@@ -11041,14 +11232,14 @@ function addChildSpanToSpan(span, childSpan) {
|
|
|
11041
11232
|
// We store the root span reference on the child span
|
|
11042
11233
|
// We need this for `getRootSpan()` to work
|
|
11043
11234
|
const rootSpan = span[ROOT_SPAN_FIELD] || span;
|
|
11044
|
-
|
|
11235
|
+
spanUtils_addNonEnumerableProperty(childSpan , ROOT_SPAN_FIELD, rootSpan);
|
|
11045
11236
|
|
|
11046
11237
|
// We store a list of child spans on the parent span
|
|
11047
11238
|
// We need this for `getSpanDescendants()` to work
|
|
11048
11239
|
if (span[CHILD_SPANS_FIELD]) {
|
|
11049
11240
|
span[CHILD_SPANS_FIELD].add(childSpan);
|
|
11050
11241
|
} else {
|
|
11051
|
-
|
|
11242
|
+
spanUtils_addNonEnumerableProperty(span, CHILD_SPANS_FIELD, new Set([childSpan]));
|
|
11052
11243
|
}
|
|
11053
11244
|
}
|
|
11054
11245
|
|
|
@@ -11095,13 +11286,13 @@ function getRootSpan(span) {
|
|
|
11095
11286
|
* Returns the currently active span.
|
|
11096
11287
|
*/
|
|
11097
11288
|
function getActiveSpan() {
|
|
11098
|
-
const carrier =
|
|
11099
|
-
const acs =
|
|
11289
|
+
const carrier = spanUtils_getMainCarrier();
|
|
11290
|
+
const acs = spanUtils_getAsyncContextStrategy(carrier);
|
|
11100
11291
|
if (acs.getActiveSpan) {
|
|
11101
11292
|
return acs.getActiveSpan();
|
|
11102
11293
|
}
|
|
11103
11294
|
|
|
11104
|
-
return
|
|
11295
|
+
return spanUtils_getSpanForScope(spanUtils_getCurrentScope());
|
|
11105
11296
|
}
|
|
11106
11297
|
|
|
11107
11298
|
/**
|
|
@@ -11117,14 +11308,16 @@ function updateMetricSummaryOnActiveSpan(
|
|
|
11117
11308
|
) {
|
|
11118
11309
|
const span = getActiveSpan();
|
|
11119
11310
|
if (span) {
|
|
11120
|
-
|
|
11311
|
+
spanUtils_updateMetricSummaryOnSpan(span, metricType, sanitizedName, value, unit, tags, bucketKey);
|
|
11121
11312
|
}
|
|
11122
11313
|
}
|
|
11123
11314
|
|
|
11124
11315
|
|
|
11125
11316
|
//# sourceMappingURL=spanUtils.js.map
|
|
11126
11317
|
|
|
11127
|
-
;//
|
|
11318
|
+
;// ./node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js
|
|
11319
|
+
/* unused harmony import specifier */ var dynamicSamplingContext_addNonEnumerableProperty;
|
|
11320
|
+
/* unused harmony import specifier */ var dynamicSamplingContext_dynamicSamplingContextToSentryBaggageHeader;
|
|
11128
11321
|
|
|
11129
11322
|
|
|
11130
11323
|
|
|
@@ -11143,7 +11336,7 @@ const FROZEN_DSC_FIELD = '_frozenDsc';
|
|
|
11143
11336
|
*/
|
|
11144
11337
|
function freezeDscOnSpan(span, dsc) {
|
|
11145
11338
|
const spanWithMaybeDsc = span ;
|
|
11146
|
-
|
|
11339
|
+
dynamicSamplingContext_addNonEnumerableProperty(spanWithMaybeDsc, FROZEN_DSC_FIELD, dsc);
|
|
11147
11340
|
}
|
|
11148
11341
|
|
|
11149
11342
|
/**
|
|
@@ -11156,7 +11349,7 @@ function getDynamicSamplingContextFromClient(trace_id, client) {
|
|
|
11156
11349
|
|
|
11157
11350
|
const { publicKey: public_key } = client.getDsn() || {};
|
|
11158
11351
|
|
|
11159
|
-
const dsc =
|
|
11352
|
+
const dsc = dropUndefinedKeys({
|
|
11160
11353
|
environment: options.environment || DEFAULT_ENVIRONMENT,
|
|
11161
11354
|
release: options.release,
|
|
11162
11355
|
public_key,
|
|
@@ -11176,7 +11369,7 @@ function getDynamicSamplingContextFromClient(trace_id, client) {
|
|
|
11176
11369
|
* @returns a dynamic sampling context
|
|
11177
11370
|
*/
|
|
11178
11371
|
function dynamicSamplingContext_getDynamicSamplingContextFromSpan(span) {
|
|
11179
|
-
const client =
|
|
11372
|
+
const client = getClient();
|
|
11180
11373
|
if (!client) {
|
|
11181
11374
|
return {};
|
|
11182
11375
|
}
|
|
@@ -11237,13 +11430,13 @@ function dynamicSamplingContext_getDynamicSamplingContextFromSpan(span) {
|
|
|
11237
11430
|
*/
|
|
11238
11431
|
function spanToBaggageHeader(span) {
|
|
11239
11432
|
const dsc = dynamicSamplingContext_getDynamicSamplingContextFromSpan(span);
|
|
11240
|
-
return
|
|
11433
|
+
return dynamicSamplingContext_dynamicSamplingContextToSentryBaggageHeader(dsc);
|
|
11241
11434
|
}
|
|
11242
11435
|
|
|
11243
11436
|
|
|
11244
11437
|
//# sourceMappingURL=dynamicSamplingContext.js.map
|
|
11245
11438
|
|
|
11246
|
-
;//
|
|
11439
|
+
;// ./node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
|
|
11247
11440
|
|
|
11248
11441
|
|
|
11249
11442
|
|
|
@@ -11261,8 +11454,8 @@ function parseSampleRate(sampleRate) {
|
|
|
11261
11454
|
|
|
11262
11455
|
const rate = typeof sampleRate === 'string' ? parseFloat(sampleRate) : sampleRate;
|
|
11263
11456
|
if (typeof rate !== 'number' || isNaN(rate) || rate < 0 || rate > 1) {
|
|
11264
|
-
|
|
11265
|
-
|
|
11457
|
+
debug_build_DEBUG_BUILD &&
|
|
11458
|
+
logger.warn(
|
|
11266
11459
|
`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(
|
|
11267
11460
|
sampleRate,
|
|
11268
11461
|
)} of type ${JSON.stringify(typeof sampleRate)}.`,
|
|
@@ -11276,7 +11469,7 @@ function parseSampleRate(sampleRate) {
|
|
|
11276
11469
|
|
|
11277
11470
|
//# sourceMappingURL=parseSampleRate.js.map
|
|
11278
11471
|
|
|
11279
|
-
;//
|
|
11472
|
+
;// ./node_modules/@sentry/core/build/esm/eventProcessors.js
|
|
11280
11473
|
|
|
11281
11474
|
|
|
11282
11475
|
|
|
@@ -11296,7 +11489,7 @@ function notifyEventProcessors(
|
|
|
11296
11489
|
} else {
|
|
11297
11490
|
const result = processor({ ...event }, hint) ;
|
|
11298
11491
|
|
|
11299
|
-
|
|
11492
|
+
debug_build_DEBUG_BUILD && processor.id && result === null && logger.log(`Event processor "${processor.id}" dropped event`);
|
|
11300
11493
|
|
|
11301
11494
|
if (isThenable(result)) {
|
|
11302
11495
|
void result
|
|
@@ -11314,7 +11507,7 @@ function notifyEventProcessors(
|
|
|
11314
11507
|
|
|
11315
11508
|
//# sourceMappingURL=eventProcessors.js.map
|
|
11316
11509
|
|
|
11317
|
-
;//
|
|
11510
|
+
;// ./node_modules/@sentry/core/build/esm/utils/applyScopeDataToEvent.js
|
|
11318
11511
|
|
|
11319
11512
|
|
|
11320
11513
|
|
|
@@ -11416,22 +11609,22 @@ function mergeAndOverwriteScopeData
|
|
|
11416
11609
|
function applyDataToEvent(event, data) {
|
|
11417
11610
|
const { extra, tags, user, contexts, level, transactionName } = data;
|
|
11418
11611
|
|
|
11419
|
-
const cleanedExtra =
|
|
11612
|
+
const cleanedExtra = dropUndefinedKeys(extra);
|
|
11420
11613
|
if (cleanedExtra && Object.keys(cleanedExtra).length) {
|
|
11421
11614
|
event.extra = { ...cleanedExtra, ...event.extra };
|
|
11422
11615
|
}
|
|
11423
11616
|
|
|
11424
|
-
const cleanedTags =
|
|
11617
|
+
const cleanedTags = dropUndefinedKeys(tags);
|
|
11425
11618
|
if (cleanedTags && Object.keys(cleanedTags).length) {
|
|
11426
11619
|
event.tags = { ...cleanedTags, ...event.tags };
|
|
11427
11620
|
}
|
|
11428
11621
|
|
|
11429
|
-
const cleanedUser =
|
|
11622
|
+
const cleanedUser = dropUndefinedKeys(user);
|
|
11430
11623
|
if (cleanedUser && Object.keys(cleanedUser).length) {
|
|
11431
11624
|
event.user = { ...cleanedUser, ...event.user };
|
|
11432
11625
|
}
|
|
11433
11626
|
|
|
11434
|
-
const cleanedContexts =
|
|
11627
|
+
const cleanedContexts = dropUndefinedKeys(contexts);
|
|
11435
11628
|
if (cleanedContexts && Object.keys(cleanedContexts).length) {
|
|
11436
11629
|
event.contexts = { ...cleanedContexts, ...event.contexts };
|
|
11437
11630
|
}
|
|
@@ -11482,7 +11675,7 @@ function applySpanToEvent(event, span) {
|
|
|
11482
11675
|
*/
|
|
11483
11676
|
function applyFingerprintToEvent(event, fingerprint) {
|
|
11484
11677
|
// Make sure it's an array first and we actually have something in place
|
|
11485
|
-
event.fingerprint = event.fingerprint ?
|
|
11678
|
+
event.fingerprint = event.fingerprint ? arrayify(event.fingerprint) : [];
|
|
11486
11679
|
|
|
11487
11680
|
// If we have something on the scope, then merge it with event
|
|
11488
11681
|
if (fingerprint) {
|
|
@@ -11498,7 +11691,8 @@ function applyFingerprintToEvent(event, fingerprint) {
|
|
|
11498
11691
|
|
|
11499
11692
|
//# sourceMappingURL=applyScopeDataToEvent.js.map
|
|
11500
11693
|
|
|
11501
|
-
;//
|
|
11694
|
+
;// ./node_modules/@sentry/core/build/esm/utils/prepareEvent.js
|
|
11695
|
+
/* unused harmony import specifier */ var prepareEvent_Scope;
|
|
11502
11696
|
|
|
11503
11697
|
|
|
11504
11698
|
|
|
@@ -11538,7 +11732,7 @@ function prepareEvent(
|
|
|
11538
11732
|
const { normalizeDepth = 3, normalizeMaxBreadth = 1000 } = options;
|
|
11539
11733
|
const prepared = {
|
|
11540
11734
|
...event,
|
|
11541
|
-
event_id: event.event_id || hint.event_id ||
|
|
11735
|
+
event_id: event.event_id || hint.event_id || uuid4(),
|
|
11542
11736
|
timestamp: event.timestamp || dateTimestampInSeconds(),
|
|
11543
11737
|
};
|
|
11544
11738
|
const integrations = hint.integrations || options.integrations.map(i => i.name);
|
|
@@ -11560,7 +11754,7 @@ function prepareEvent(
|
|
|
11560
11754
|
const finalScope = getFinalScope(scope, hint.captureContext);
|
|
11561
11755
|
|
|
11562
11756
|
if (hint.mechanism) {
|
|
11563
|
-
|
|
11757
|
+
addExceptionMechanism(prepared, hint.mechanism);
|
|
11564
11758
|
}
|
|
11565
11759
|
|
|
11566
11760
|
const clientEventProcessors = client ? client.getEventProcessors() : [];
|
|
@@ -11653,7 +11847,7 @@ const debugIdStackParserCache = new WeakMap();
|
|
|
11653
11847
|
* Puts debug IDs into the stack frames of an error event.
|
|
11654
11848
|
*/
|
|
11655
11849
|
function applyDebugIds(event, stackParser) {
|
|
11656
|
-
const debugIdMap =
|
|
11850
|
+
const debugIdMap = GLOBAL_OBJ._sentryDebugIds;
|
|
11657
11851
|
|
|
11658
11852
|
if (!debugIdMap) {
|
|
11659
11853
|
return;
|
|
@@ -11836,7 +12030,7 @@ function getFinalScope(
|
|
|
11836
12030
|
return scope;
|
|
11837
12031
|
}
|
|
11838
12032
|
|
|
11839
|
-
const finalScope = scope ? scope.clone() : new
|
|
12033
|
+
const finalScope = scope ? scope.clone() : new Scope();
|
|
11840
12034
|
finalScope.update(captureContext);
|
|
11841
12035
|
return finalScope;
|
|
11842
12036
|
}
|
|
@@ -11869,7 +12063,7 @@ function parseEventHintOrCaptureContext(
|
|
|
11869
12063
|
function hintIsScopeOrFunction(
|
|
11870
12064
|
hint,
|
|
11871
12065
|
) {
|
|
11872
|
-
return hint instanceof
|
|
12066
|
+
return hint instanceof prepareEvent_Scope || typeof hint === 'function';
|
|
11873
12067
|
}
|
|
11874
12068
|
|
|
11875
12069
|
const captureContextKeys = (/* unused pure expression or super */ null && ([
|
|
@@ -11890,7 +12084,7 @@ function hintIsScopeContext(hint) {
|
|
|
11890
12084
|
|
|
11891
12085
|
//# sourceMappingURL=prepareEvent.js.map
|
|
11892
12086
|
|
|
11893
|
-
;//
|
|
12087
|
+
;// ./node_modules/@sentry/core/build/esm/baseclient.js
|
|
11894
12088
|
|
|
11895
12089
|
|
|
11896
12090
|
|
|
@@ -11962,9 +12156,9 @@ class BaseClient {
|
|
|
11962
12156
|
this._eventProcessors = [];
|
|
11963
12157
|
|
|
11964
12158
|
if (options.dsn) {
|
|
11965
|
-
this._dsn =
|
|
12159
|
+
this._dsn = makeDsn(options.dsn);
|
|
11966
12160
|
} else {
|
|
11967
|
-
|
|
12161
|
+
debug_build_DEBUG_BUILD && logger.warn('No DSN provided, client will not send events.');
|
|
11968
12162
|
}
|
|
11969
12163
|
|
|
11970
12164
|
if (this._dsn) {
|
|
@@ -11987,11 +12181,11 @@ class BaseClient {
|
|
|
11987
12181
|
*/
|
|
11988
12182
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11989
12183
|
captureException(exception, hint, scope) {
|
|
11990
|
-
const eventId =
|
|
12184
|
+
const eventId = uuid4();
|
|
11991
12185
|
|
|
11992
12186
|
// ensure we haven't captured this very object before
|
|
11993
12187
|
if (checkOrSetAlreadyCaught(exception)) {
|
|
11994
|
-
|
|
12188
|
+
debug_build_DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);
|
|
11995
12189
|
return eventId;
|
|
11996
12190
|
}
|
|
11997
12191
|
|
|
@@ -12019,13 +12213,13 @@ class BaseClient {
|
|
|
12019
12213
|
currentScope,
|
|
12020
12214
|
) {
|
|
12021
12215
|
const hintWithEventId = {
|
|
12022
|
-
event_id:
|
|
12216
|
+
event_id: uuid4(),
|
|
12023
12217
|
...hint,
|
|
12024
12218
|
};
|
|
12025
12219
|
|
|
12026
12220
|
const eventMessage = isParameterizedString(message) ? message : String(message);
|
|
12027
12221
|
|
|
12028
|
-
const promisedEvent =
|
|
12222
|
+
const promisedEvent = isPrimitive(message)
|
|
12029
12223
|
? this.eventFromMessage(eventMessage, level, hintWithEventId)
|
|
12030
12224
|
: this.eventFromException(message, hintWithEventId);
|
|
12031
12225
|
|
|
@@ -12038,11 +12232,11 @@ class BaseClient {
|
|
|
12038
12232
|
* @inheritDoc
|
|
12039
12233
|
*/
|
|
12040
12234
|
captureEvent(event, hint, currentScope) {
|
|
12041
|
-
const eventId =
|
|
12235
|
+
const eventId = uuid4();
|
|
12042
12236
|
|
|
12043
12237
|
// ensure we haven't captured this very object before
|
|
12044
12238
|
if (hint && hint.originalException && checkOrSetAlreadyCaught(hint.originalException)) {
|
|
12045
|
-
|
|
12239
|
+
debug_build_DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);
|
|
12046
12240
|
return eventId;
|
|
12047
12241
|
}
|
|
12048
12242
|
|
|
@@ -12064,7 +12258,7 @@ class BaseClient {
|
|
|
12064
12258
|
*/
|
|
12065
12259
|
captureSession(session) {
|
|
12066
12260
|
if (!(typeof session.release === 'string')) {
|
|
12067
|
-
|
|
12261
|
+
debug_build_DEBUG_BUILD && logger.warn('Discarded session because of missing or non-string release');
|
|
12068
12262
|
} else {
|
|
12069
12263
|
this.sendSession(session);
|
|
12070
12264
|
// After sending, we set init false to indicate it's not the first occurrence
|
|
@@ -12221,7 +12415,7 @@ class BaseClient {
|
|
|
12221
12415
|
// would be `Partial<Record<SentryRequestType, Partial<Record<Outcome, number>>>>`
|
|
12222
12416
|
// With typescript 4.1 we could even use template literal types
|
|
12223
12417
|
const key = `${reason}:${category}`;
|
|
12224
|
-
|
|
12418
|
+
debug_build_DEBUG_BUILD && logger.log(`Recording outcome: "${key}"${count > 1 ? ` (${count} times)` : ''}`);
|
|
12225
12419
|
this._outcomes[key] = (this._outcomes[key] || 0) + count;
|
|
12226
12420
|
}
|
|
12227
12421
|
}
|
|
@@ -12269,12 +12463,12 @@ class BaseClient {
|
|
|
12269
12463
|
|
|
12270
12464
|
if (this._isEnabled() && this._transport) {
|
|
12271
12465
|
return this._transport.send(envelope).then(null, reason => {
|
|
12272
|
-
|
|
12466
|
+
debug_build_DEBUG_BUILD && logger.error('Error while sending event:', reason);
|
|
12273
12467
|
return reason;
|
|
12274
12468
|
});
|
|
12275
12469
|
}
|
|
12276
12470
|
|
|
12277
|
-
|
|
12471
|
+
debug_build_DEBUG_BUILD && logger.error('Transport disabled');
|
|
12278
12472
|
|
|
12279
12473
|
return resolvedSyncPromise({});
|
|
12280
12474
|
}
|
|
@@ -12402,7 +12596,7 @@ class BaseClient {
|
|
|
12402
12596
|
if (!trace && propagationContext) {
|
|
12403
12597
|
const { traceId: trace_id, spanId, parentSpanId, dsc } = propagationContext;
|
|
12404
12598
|
evt.contexts = {
|
|
12405
|
-
trace:
|
|
12599
|
+
trace: dropUndefinedKeys({
|
|
12406
12600
|
trace_id,
|
|
12407
12601
|
span_id: spanId,
|
|
12408
12602
|
parent_span_id: parentSpanId,
|
|
@@ -12433,14 +12627,14 @@ class BaseClient {
|
|
|
12433
12627
|
return finalEvent.event_id;
|
|
12434
12628
|
},
|
|
12435
12629
|
reason => {
|
|
12436
|
-
if (
|
|
12630
|
+
if (debug_build_DEBUG_BUILD) {
|
|
12437
12631
|
// If something's gone wrong, log the error as a warning. If it's just us having used a `SentryError` for
|
|
12438
12632
|
// control flow, log just the message (no stack) as a log-level log.
|
|
12439
12633
|
const sentryError = reason ;
|
|
12440
12634
|
if (sentryError.logLevel === 'log') {
|
|
12441
|
-
|
|
12635
|
+
logger.log(sentryError.message);
|
|
12442
12636
|
} else {
|
|
12443
|
-
|
|
12637
|
+
logger.warn(sentryError);
|
|
12444
12638
|
}
|
|
12445
12639
|
}
|
|
12446
12640
|
return undefined;
|
|
@@ -12602,24 +12796,24 @@ class BaseClient {
|
|
|
12602
12796
|
* Sends client reports as an envelope.
|
|
12603
12797
|
*/
|
|
12604
12798
|
_flushOutcomes() {
|
|
12605
|
-
|
|
12799
|
+
debug_build_DEBUG_BUILD && logger.log('Flushing outcomes...');
|
|
12606
12800
|
|
|
12607
12801
|
const outcomes = this._clearOutcomes();
|
|
12608
12802
|
|
|
12609
12803
|
if (outcomes.length === 0) {
|
|
12610
|
-
|
|
12804
|
+
debug_build_DEBUG_BUILD && logger.log('No outcomes to send');
|
|
12611
12805
|
return;
|
|
12612
12806
|
}
|
|
12613
12807
|
|
|
12614
12808
|
// This is really the only place where we want to check for a DSN and only send outcomes then
|
|
12615
12809
|
if (!this._dsn) {
|
|
12616
|
-
|
|
12810
|
+
debug_build_DEBUG_BUILD && logger.log('No dsn provided, will not send outcomes');
|
|
12617
12811
|
return;
|
|
12618
12812
|
}
|
|
12619
12813
|
|
|
12620
|
-
|
|
12814
|
+
debug_build_DEBUG_BUILD && logger.log('Sending outcomes:', outcomes);
|
|
12621
12815
|
|
|
12622
|
-
const envelope = createClientReportEnvelope(outcomes, this._options.tunnel &&
|
|
12816
|
+
const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn));
|
|
12623
12817
|
|
|
12624
12818
|
// sendEnvelope should not throw
|
|
12625
12819
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -12716,7 +12910,7 @@ function isTransactionEvent(event) {
|
|
|
12716
12910
|
|
|
12717
12911
|
//# sourceMappingURL=baseclient.js.map
|
|
12718
12912
|
|
|
12719
|
-
;//
|
|
12913
|
+
;// ./node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
|
|
12720
12914
|
|
|
12721
12915
|
|
|
12722
12916
|
/**
|
|
@@ -12752,7 +12946,7 @@ function applySdkMetadata(options, name, names = [name], source = 'npm') {
|
|
|
12752
12946
|
|
|
12753
12947
|
//# sourceMappingURL=sdkMetadata.js.map
|
|
12754
12948
|
|
|
12755
|
-
;//
|
|
12949
|
+
;// ./node_modules/@sentry/utils/build/esm/env.js
|
|
12756
12950
|
/*
|
|
12757
12951
|
* This module exists for optimizations in the build process through rollup and terser. We define some global
|
|
12758
12952
|
* constants, which can be overridden during build. By guarding certain pieces of code with functions that return these
|
|
@@ -12788,18 +12982,18 @@ function getSDKSource() {
|
|
|
12788
12982
|
|
|
12789
12983
|
//# sourceMappingURL=env.js.map
|
|
12790
12984
|
|
|
12791
|
-
;//
|
|
12985
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/debug-build.js
|
|
12792
12986
|
/**
|
|
12793
12987
|
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
12794
12988
|
*
|
|
12795
12989
|
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
12796
12990
|
*/
|
|
12797
|
-
const
|
|
12991
|
+
const esm_debug_build_DEBUG_BUILD = (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__);
|
|
12798
12992
|
|
|
12799
12993
|
|
|
12800
12994
|
//# sourceMappingURL=debug-build.js.map
|
|
12801
12995
|
|
|
12802
|
-
;//
|
|
12996
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/eventbuilder.js
|
|
12803
12997
|
|
|
12804
12998
|
|
|
12805
12999
|
|
|
@@ -12832,7 +13026,7 @@ function eventFromPlainObject(
|
|
|
12832
13026
|
syntheticException,
|
|
12833
13027
|
isUnhandledRejection,
|
|
12834
13028
|
) {
|
|
12835
|
-
const client =
|
|
13029
|
+
const client = getClient();
|
|
12836
13030
|
const normalizeDepth = client && client.getOptions().normalizeDepth;
|
|
12837
13031
|
|
|
12838
13032
|
// If we can, we extract an exception from the object properties
|
|
@@ -12965,7 +13159,7 @@ function eventFromException(
|
|
|
12965
13159
|
) {
|
|
12966
13160
|
const syntheticException = (hint && hint.syntheticException) || undefined;
|
|
12967
13161
|
const event = eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace);
|
|
12968
|
-
|
|
13162
|
+
addExceptionMechanism(event); // defaults to { type: 'generic', handled: true }
|
|
12969
13163
|
event.level = 'error';
|
|
12970
13164
|
if (hint && hint.event_id) {
|
|
12971
13165
|
event.event_id = hint.event_id;
|
|
@@ -13027,7 +13221,7 @@ function eventFromUnknownInput(
|
|
|
13027
13221
|
const name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');
|
|
13028
13222
|
const message = domException.message ? `${name}: ${domException.message}` : name;
|
|
13029
13223
|
event = eventFromString(stackParser, message, syntheticException, attachStacktrace);
|
|
13030
|
-
|
|
13224
|
+
addExceptionTypeValue(event, message);
|
|
13031
13225
|
}
|
|
13032
13226
|
if ('code' in domException) {
|
|
13033
13227
|
// eslint-disable-next-line deprecation/deprecation
|
|
@@ -13046,7 +13240,7 @@ function eventFromUnknownInput(
|
|
|
13046
13240
|
// group on any key/value change.
|
|
13047
13241
|
const objectException = exception ;
|
|
13048
13242
|
event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);
|
|
13049
|
-
|
|
13243
|
+
addExceptionMechanism(event, {
|
|
13050
13244
|
synthetic: true,
|
|
13051
13245
|
});
|
|
13052
13246
|
return event;
|
|
@@ -13062,8 +13256,8 @@ function eventFromUnknownInput(
|
|
|
13062
13256
|
//
|
|
13063
13257
|
// So bail out and capture it as a simple message:
|
|
13064
13258
|
event = eventFromString(stackParser, exception , syntheticException, attachStacktrace);
|
|
13065
|
-
|
|
13066
|
-
|
|
13259
|
+
addExceptionTypeValue(event, `${exception}`, undefined);
|
|
13260
|
+
addExceptionMechanism(event, {
|
|
13067
13261
|
synthetic: true,
|
|
13068
13262
|
});
|
|
13069
13263
|
|
|
@@ -13148,11 +13342,18 @@ function getErrorPropertyFromObject(obj) {
|
|
|
13148
13342
|
|
|
13149
13343
|
//# sourceMappingURL=eventbuilder.js.map
|
|
13150
13344
|
|
|
13151
|
-
;//
|
|
13345
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/helpers.js
|
|
13346
|
+
/* unused harmony import specifier */ var captureException;
|
|
13347
|
+
/* unused harmony import specifier */ var helpers_withScope;
|
|
13348
|
+
/* unused harmony import specifier */ var helpers_addExceptionTypeValue;
|
|
13349
|
+
/* unused harmony import specifier */ var helpers_addExceptionMechanism;
|
|
13350
|
+
/* unused harmony import specifier */ var helpers_getOriginalFunction;
|
|
13351
|
+
/* unused harmony import specifier */ var helpers_markFunctionWrapped;
|
|
13352
|
+
/* unused harmony import specifier */ var helpers_addNonEnumerableProperty;
|
|
13152
13353
|
|
|
13153
13354
|
|
|
13154
13355
|
|
|
13155
|
-
const helpers_WINDOW =
|
|
13356
|
+
const helpers_WINDOW = GLOBAL_OBJ ;
|
|
13156
13357
|
|
|
13157
13358
|
let ignoreOnError = 0;
|
|
13158
13359
|
|
|
@@ -13217,7 +13418,7 @@ function wrap(
|
|
|
13217
13418
|
}
|
|
13218
13419
|
|
|
13219
13420
|
// We don't wanna wrap it twice
|
|
13220
|
-
if (
|
|
13421
|
+
if (helpers_getOriginalFunction(fn)) {
|
|
13221
13422
|
return fn;
|
|
13222
13423
|
}
|
|
13223
13424
|
} catch (e) {
|
|
@@ -13248,11 +13449,11 @@ function wrap(
|
|
|
13248
13449
|
} catch (ex) {
|
|
13249
13450
|
ignoreNextOnError();
|
|
13250
13451
|
|
|
13251
|
-
|
|
13452
|
+
helpers_withScope(scope => {
|
|
13252
13453
|
scope.addEventProcessor(event => {
|
|
13253
13454
|
if (options.mechanism) {
|
|
13254
|
-
|
|
13255
|
-
|
|
13455
|
+
helpers_addExceptionTypeValue(event, undefined, undefined);
|
|
13456
|
+
helpers_addExceptionMechanism(event, options.mechanism);
|
|
13256
13457
|
}
|
|
13257
13458
|
|
|
13258
13459
|
event.extra = {
|
|
@@ -13283,9 +13484,9 @@ function wrap(
|
|
|
13283
13484
|
|
|
13284
13485
|
// Signal that this function has been wrapped/filled already
|
|
13285
13486
|
// for both debugging and to prevent it to being wrapped/filled twice
|
|
13286
|
-
|
|
13487
|
+
helpers_markFunctionWrapped(sentryWrapped, fn);
|
|
13287
13488
|
|
|
13288
|
-
|
|
13489
|
+
helpers_addNonEnumerableProperty(fn, '__sentry_wrapped__', sentryWrapped);
|
|
13289
13490
|
|
|
13290
13491
|
// Restore original function name (not all browsers allow that)
|
|
13291
13492
|
try {
|
|
@@ -13306,7 +13507,7 @@ function wrap(
|
|
|
13306
13507
|
|
|
13307
13508
|
//# sourceMappingURL=helpers.js.map
|
|
13308
13509
|
|
|
13309
|
-
;//
|
|
13510
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/userfeedback.js
|
|
13310
13511
|
|
|
13311
13512
|
|
|
13312
13513
|
/**
|
|
@@ -13332,11 +13533,11 @@ function createUserFeedbackEnvelope(
|
|
|
13332
13533
|
version: metadata.sdk.version,
|
|
13333
13534
|
},
|
|
13334
13535
|
}),
|
|
13335
|
-
...(!!tunnel && !!dsn && { dsn:
|
|
13536
|
+
...(!!tunnel && !!dsn && { dsn: dsnToString(dsn) }),
|
|
13336
13537
|
};
|
|
13337
13538
|
const item = createUserFeedbackEnvelopeItem(feedback);
|
|
13338
13539
|
|
|
13339
|
-
return
|
|
13540
|
+
return createEnvelope(headers, [item]);
|
|
13340
13541
|
}
|
|
13341
13542
|
|
|
13342
13543
|
function createUserFeedbackEnvelopeItem(feedback) {
|
|
@@ -13349,7 +13550,7 @@ function createUserFeedbackEnvelopeItem(feedback) {
|
|
|
13349
13550
|
|
|
13350
13551
|
//# sourceMappingURL=userfeedback.js.map
|
|
13351
13552
|
|
|
13352
|
-
;//
|
|
13553
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/client.js
|
|
13353
13554
|
|
|
13354
13555
|
|
|
13355
13556
|
|
|
@@ -13419,7 +13620,7 @@ class BrowserClient extends BaseClient {
|
|
|
13419
13620
|
*/
|
|
13420
13621
|
captureUserFeedback(feedback) {
|
|
13421
13622
|
if (!this._isEnabled()) {
|
|
13422
|
-
|
|
13623
|
+
esm_debug_build_DEBUG_BUILD && logger.warn('SDK not enabled, will not capture user feedback.');
|
|
13423
13624
|
return;
|
|
13424
13625
|
}
|
|
13425
13626
|
|
|
@@ -13446,12 +13647,12 @@ class BrowserClient extends BaseClient {
|
|
|
13446
13647
|
|
|
13447
13648
|
//# sourceMappingURL=client.js.map
|
|
13448
13649
|
|
|
13449
|
-
;//
|
|
13650
|
+
;// ./node_modules/@sentry/utils/build/esm/supports.js
|
|
13450
13651
|
|
|
13451
13652
|
|
|
13452
13653
|
|
|
13453
13654
|
|
|
13454
|
-
const supports_WINDOW =
|
|
13655
|
+
const supports_WINDOW = GLOBAL_OBJ ;
|
|
13455
13656
|
|
|
13456
13657
|
/**
|
|
13457
13658
|
* Tells whether current environment supports ErrorEvent objects
|
|
@@ -13567,8 +13768,8 @@ function supportsNativeFetch() {
|
|
|
13567
13768
|
}
|
|
13568
13769
|
doc.head.removeChild(sandbox);
|
|
13569
13770
|
} catch (err) {
|
|
13570
|
-
|
|
13571
|
-
|
|
13771
|
+
DEBUG_BUILD &&
|
|
13772
|
+
logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);
|
|
13572
13773
|
}
|
|
13573
13774
|
}
|
|
13574
13775
|
|
|
@@ -13614,7 +13815,7 @@ function supportsReferrerPolicy() {
|
|
|
13614
13815
|
|
|
13615
13816
|
//# sourceMappingURL=supports.js.map
|
|
13616
13817
|
|
|
13617
|
-
;//
|
|
13818
|
+
;// ./node_modules/@sentry-internal/browser-utils/build/esm/debug-build.js
|
|
13618
13819
|
/**
|
|
13619
13820
|
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
13620
13821
|
*
|
|
@@ -13625,17 +13826,17 @@ const build_esm_debug_build_DEBUG_BUILD = (typeof __SENTRY_DEBUG__ === 'undefine
|
|
|
13625
13826
|
|
|
13626
13827
|
//# sourceMappingURL=debug-build.js.map
|
|
13627
13828
|
|
|
13628
|
-
;//
|
|
13829
|
+
;// ./node_modules/@sentry-internal/browser-utils/build/esm/types.js
|
|
13629
13830
|
|
|
13630
13831
|
|
|
13631
|
-
const types_WINDOW =
|
|
13832
|
+
const types_WINDOW = GLOBAL_OBJ
|
|
13632
13833
|
|
|
13633
13834
|
;
|
|
13634
13835
|
|
|
13635
13836
|
|
|
13636
13837
|
//# sourceMappingURL=types.js.map
|
|
13637
13838
|
|
|
13638
|
-
;//
|
|
13839
|
+
;// ./node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js
|
|
13639
13840
|
|
|
13640
13841
|
|
|
13641
13842
|
|
|
@@ -13686,7 +13887,7 @@ function getNativeImplementation(
|
|
|
13686
13887
|
document.head.removeChild(sandbox);
|
|
13687
13888
|
} catch (e) {
|
|
13688
13889
|
// Could not create sandbox iframe, just use window.xxx
|
|
13689
|
-
build_esm_debug_build_DEBUG_BUILD &&
|
|
13890
|
+
build_esm_debug_build_DEBUG_BUILD && logger.warn(`Could not create sandbox iframe for ${name} check, bailing to window.${name}: `, e);
|
|
13690
13891
|
}
|
|
13691
13892
|
}
|
|
13692
13893
|
|
|
@@ -13758,7 +13959,7 @@ function getNativeImplementation_setTimeout(...rest) {
|
|
|
13758
13959
|
|
|
13759
13960
|
//# sourceMappingURL=getNativeImplementation.js.map
|
|
13760
13961
|
|
|
13761
|
-
;//
|
|
13962
|
+
;// ./node_modules/@sentry/utils/build/esm/promisebuffer.js
|
|
13762
13963
|
|
|
13763
13964
|
|
|
13764
13965
|
|
|
@@ -13862,7 +14063,7 @@ function makePromiseBuffer(limit) {
|
|
|
13862
14063
|
|
|
13863
14064
|
//# sourceMappingURL=promisebuffer.js.map
|
|
13864
14065
|
|
|
13865
|
-
;//
|
|
14066
|
+
;// ./node_modules/@sentry/utils/build/esm/ratelimit.js
|
|
13866
14067
|
// Intentionally keeping the key broad, as we don't know for sure what rate limit headers get returned from backend
|
|
13867
14068
|
|
|
13868
14069
|
const DEFAULT_RETRY_AFTER = 60 * 1000; // 60 seconds
|
|
@@ -13970,7 +14171,7 @@ function updateRateLimits(
|
|
|
13970
14171
|
|
|
13971
14172
|
//# sourceMappingURL=ratelimit.js.map
|
|
13972
14173
|
|
|
13973
|
-
;//
|
|
14174
|
+
;// ./node_modules/@sentry/core/build/esm/transports/base.js
|
|
13974
14175
|
|
|
13975
14176
|
|
|
13976
14177
|
|
|
@@ -14012,7 +14213,7 @@ function createTransport(
|
|
|
14012
14213
|
}
|
|
14013
14214
|
|
|
14014
14215
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14015
|
-
const filteredEnvelope =
|
|
14216
|
+
const filteredEnvelope = createEnvelope(envelope[0], filteredEnvelopeItems );
|
|
14016
14217
|
|
|
14017
14218
|
// Creates client report for each item in an envelope
|
|
14018
14219
|
const recordEnvelopeLoss = (reason) => {
|
|
@@ -14027,7 +14228,7 @@ function createTransport(
|
|
|
14027
14228
|
response => {
|
|
14028
14229
|
// We don't want to throw on NOK responses, but we want to at least log them
|
|
14029
14230
|
if (response.statusCode !== undefined && (response.statusCode < 200 || response.statusCode >= 300)) {
|
|
14030
|
-
|
|
14231
|
+
debug_build_DEBUG_BUILD && logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
|
|
14031
14232
|
}
|
|
14032
14233
|
|
|
14033
14234
|
rateLimits = updateRateLimits(rateLimits, response);
|
|
@@ -14043,7 +14244,7 @@ function createTransport(
|
|
|
14043
14244
|
result => result,
|
|
14044
14245
|
error => {
|
|
14045
14246
|
if (error instanceof SentryError) {
|
|
14046
|
-
|
|
14247
|
+
debug_build_DEBUG_BUILD && logger.error('Skipped sending event because buffer is full.');
|
|
14047
14248
|
recordEnvelopeLoss('queue_overflow');
|
|
14048
14249
|
return resolvedSyncPromise({});
|
|
14049
14250
|
} else {
|
|
@@ -14070,7 +14271,7 @@ function getEventForEnvelopeItem(item, type) {
|
|
|
14070
14271
|
|
|
14071
14272
|
//# sourceMappingURL=base.js.map
|
|
14072
14273
|
|
|
14073
|
-
;//
|
|
14274
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/transports/fetch.js
|
|
14074
14275
|
|
|
14075
14276
|
|
|
14076
14277
|
|
|
@@ -14142,7 +14343,8 @@ function makeFetchTransport(
|
|
|
14142
14343
|
|
|
14143
14344
|
//# sourceMappingURL=fetch.js.map
|
|
14144
14345
|
|
|
14145
|
-
;//
|
|
14346
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/stack-parsers.js
|
|
14347
|
+
/* unused harmony import specifier */ var stack_parsers_UNKNOWN_FUNCTION;
|
|
14146
14348
|
|
|
14147
14349
|
|
|
14148
14350
|
const OPERA10_PRIORITY = 10;
|
|
@@ -14262,30 +14464,30 @@ const winjs = line => {
|
|
|
14262
14464
|
const parts = winjsRegex.exec(line) ;
|
|
14263
14465
|
|
|
14264
14466
|
return parts
|
|
14265
|
-
? createFrame(parts[2], parts[1] ||
|
|
14467
|
+
? createFrame(parts[2], parts[1] || stack_parsers_UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined)
|
|
14266
14468
|
: undefined;
|
|
14267
14469
|
};
|
|
14268
14470
|
|
|
14269
|
-
const winjsStackLineParser = [WINJS_PRIORITY, winjs];
|
|
14471
|
+
const winjsStackLineParser = (/* unused pure expression or super */ null && ([WINJS_PRIORITY, winjs]));
|
|
14270
14472
|
|
|
14271
14473
|
const opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
14272
14474
|
|
|
14273
14475
|
const opera10 = line => {
|
|
14274
14476
|
const parts = opera10Regex.exec(line) ;
|
|
14275
|
-
return parts ? createFrame(parts[2], parts[3] ||
|
|
14477
|
+
return parts ? createFrame(parts[2], parts[3] || stack_parsers_UNKNOWN_FUNCTION, +parts[1]) : undefined;
|
|
14276
14478
|
};
|
|
14277
14479
|
|
|
14278
|
-
const opera10StackLineParser = [OPERA10_PRIORITY, opera10];
|
|
14480
|
+
const opera10StackLineParser = (/* unused pure expression or super */ null && ([OPERA10_PRIORITY, opera10]));
|
|
14279
14481
|
|
|
14280
14482
|
const opera11Regex =
|
|
14281
14483
|
/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;
|
|
14282
14484
|
|
|
14283
14485
|
const opera11 = line => {
|
|
14284
14486
|
const parts = opera11Regex.exec(line) ;
|
|
14285
|
-
return parts ? createFrame(parts[5], parts[3] || parts[4] ||
|
|
14487
|
+
return parts ? createFrame(parts[5], parts[3] || parts[4] || stack_parsers_UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;
|
|
14286
14488
|
};
|
|
14287
14489
|
|
|
14288
|
-
const opera11StackLineParser = [OPERA11_PRIORITY, opera11];
|
|
14490
|
+
const opera11StackLineParser = (/* unused pure expression or super */ null && ([OPERA11_PRIORITY, opera11]));
|
|
14289
14491
|
|
|
14290
14492
|
const defaultStackLineParsers = [chromeStackLineParser, geckoStackLineParser];
|
|
14291
14493
|
|
|
@@ -14326,7 +14528,7 @@ const extractSafariExtensionDetails = (func, filename) => {
|
|
|
14326
14528
|
|
|
14327
14529
|
//# sourceMappingURL=stack-parsers.js.map
|
|
14328
14530
|
|
|
14329
|
-
;//
|
|
14531
|
+
;// ./node_modules/@sentry/core/build/esm/integrations/inboundfilters.js
|
|
14330
14532
|
|
|
14331
14533
|
|
|
14332
14534
|
|
|
@@ -14379,20 +14581,20 @@ function _mergeOptions(
|
|
|
14379
14581
|
|
|
14380
14582
|
function _shouldDropEvent(event, options) {
|
|
14381
14583
|
if (options.ignoreInternal && _isSentryError(event)) {
|
|
14382
|
-
|
|
14383
|
-
|
|
14584
|
+
debug_build_DEBUG_BUILD &&
|
|
14585
|
+
logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${getEventDescription(event)}`);
|
|
14384
14586
|
return true;
|
|
14385
14587
|
}
|
|
14386
14588
|
if (_isIgnoredError(event, options.ignoreErrors)) {
|
|
14387
|
-
|
|
14388
|
-
|
|
14589
|
+
debug_build_DEBUG_BUILD &&
|
|
14590
|
+
logger.warn(
|
|
14389
14591
|
`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${getEventDescription(event)}`,
|
|
14390
14592
|
);
|
|
14391
14593
|
return true;
|
|
14392
14594
|
}
|
|
14393
14595
|
if (_isUselessError(event)) {
|
|
14394
|
-
|
|
14395
|
-
|
|
14596
|
+
debug_build_DEBUG_BUILD &&
|
|
14597
|
+
logger.warn(
|
|
14396
14598
|
`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${getEventDescription(
|
|
14397
14599
|
event,
|
|
14398
14600
|
)}`,
|
|
@@ -14400,15 +14602,15 @@ function _shouldDropEvent(event, options) {
|
|
|
14400
14602
|
return true;
|
|
14401
14603
|
}
|
|
14402
14604
|
if (_isIgnoredTransaction(event, options.ignoreTransactions)) {
|
|
14403
|
-
|
|
14404
|
-
|
|
14605
|
+
debug_build_DEBUG_BUILD &&
|
|
14606
|
+
logger.warn(
|
|
14405
14607
|
`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${getEventDescription(event)}`,
|
|
14406
14608
|
);
|
|
14407
14609
|
return true;
|
|
14408
14610
|
}
|
|
14409
14611
|
if (_isDeniedUrl(event, options.denyUrls)) {
|
|
14410
|
-
|
|
14411
|
-
|
|
14612
|
+
debug_build_DEBUG_BUILD &&
|
|
14613
|
+
logger.warn(
|
|
14412
14614
|
`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${getEventDescription(
|
|
14413
14615
|
event,
|
|
14414
14616
|
)}.\nUrl: ${_getEventFilterUrl(event)}`,
|
|
@@ -14416,8 +14618,8 @@ function _shouldDropEvent(event, options) {
|
|
|
14416
14618
|
return true;
|
|
14417
14619
|
}
|
|
14418
14620
|
if (!_isAllowedUrl(event, options.allowUrls)) {
|
|
14419
|
-
|
|
14420
|
-
|
|
14621
|
+
debug_build_DEBUG_BUILD &&
|
|
14622
|
+
logger.warn(
|
|
14421
14623
|
`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${getEventDescription(
|
|
14422
14624
|
event,
|
|
14423
14625
|
)}.\nUrl: ${_getEventFilterUrl(event)}`,
|
|
@@ -14523,7 +14725,7 @@ function _getEventFilterUrl(event) {
|
|
|
14523
14725
|
}
|
|
14524
14726
|
return frames ? _getLastValidUrl(frames) : null;
|
|
14525
14727
|
} catch (oO) {
|
|
14526
|
-
|
|
14728
|
+
debug_build_DEBUG_BUILD && logger.error(`Cannot extract url for event ${getEventDescription(event)}`);
|
|
14527
14729
|
return null;
|
|
14528
14730
|
}
|
|
14529
14731
|
}
|
|
@@ -14550,7 +14752,7 @@ function _isUselessError(event) {
|
|
|
14550
14752
|
|
|
14551
14753
|
//# sourceMappingURL=inboundfilters.js.map
|
|
14552
14754
|
|
|
14553
|
-
;//
|
|
14755
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/integrations/httpcontext.js
|
|
14554
14756
|
|
|
14555
14757
|
|
|
14556
14758
|
|
|
@@ -14587,7 +14789,7 @@ const httpContextIntegration = defineIntegration(() => {
|
|
|
14587
14789
|
|
|
14588
14790
|
//# sourceMappingURL=httpcontext.js.map
|
|
14589
14791
|
|
|
14590
|
-
;//
|
|
14792
|
+
;// ./node_modules/@sentry/utils/build/esm/instrument/handlers.js
|
|
14591
14793
|
|
|
14592
14794
|
|
|
14593
14795
|
|
|
@@ -14597,7 +14799,7 @@ const handlers = {};
|
|
|
14597
14799
|
const instrumented = {};
|
|
14598
14800
|
|
|
14599
14801
|
/** Add a handler function. */
|
|
14600
|
-
function
|
|
14802
|
+
function addHandler(type, handler) {
|
|
14601
14803
|
handlers[type] = handlers[type] || [];
|
|
14602
14804
|
(handlers[type] ).push(handler);
|
|
14603
14805
|
}
|
|
@@ -14613,7 +14815,7 @@ function resetInstrumentationHandlers() {
|
|
|
14613
14815
|
}
|
|
14614
14816
|
|
|
14615
14817
|
/** Maybe run an instrumentation function, unless it was already called. */
|
|
14616
|
-
function
|
|
14818
|
+
function maybeInstrument(type, instrumentFn) {
|
|
14617
14819
|
if (!instrumented[type]) {
|
|
14618
14820
|
instrumentFn();
|
|
14619
14821
|
instrumented[type] = true;
|
|
@@ -14621,7 +14823,7 @@ function handlers_maybeInstrument(type, instrumentFn) {
|
|
|
14621
14823
|
}
|
|
14622
14824
|
|
|
14623
14825
|
/** Trigger handlers for a given instrumentation type. */
|
|
14624
|
-
function
|
|
14826
|
+
function triggerHandlers(type, data) {
|
|
14625
14827
|
const typeHandlers = type && handlers[type];
|
|
14626
14828
|
if (!typeHandlers) {
|
|
14627
14829
|
return;
|
|
@@ -14631,8 +14833,8 @@ function handlers_triggerHandlers(type, data) {
|
|
|
14631
14833
|
try {
|
|
14632
14834
|
handler(data);
|
|
14633
14835
|
} catch (e) {
|
|
14634
|
-
|
|
14635
|
-
|
|
14836
|
+
DEBUG_BUILD &&
|
|
14837
|
+
logger.error(
|
|
14636
14838
|
`Error while triggering instrumentation handler.\nType: ${type}\nName: ${getFunctionName(handler)}\nError:`,
|
|
14637
14839
|
e,
|
|
14638
14840
|
);
|
|
@@ -14643,7 +14845,7 @@ function handlers_triggerHandlers(type, data) {
|
|
|
14643
14845
|
|
|
14644
14846
|
//# sourceMappingURL=handlers.js.map
|
|
14645
14847
|
|
|
14646
|
-
;//
|
|
14848
|
+
;// ./node_modules/@sentry-internal/browser-utils/build/esm/instrument/dom.js
|
|
14647
14849
|
|
|
14648
14850
|
|
|
14649
14851
|
|
|
@@ -14661,8 +14863,8 @@ let lastCapturedEventTargetId;
|
|
|
14661
14863
|
*/
|
|
14662
14864
|
function addClickKeypressInstrumentationHandler(handler) {
|
|
14663
14865
|
const type = 'dom';
|
|
14664
|
-
|
|
14665
|
-
|
|
14866
|
+
addHandler(type, handler);
|
|
14867
|
+
maybeInstrument(type, instrumentDOM);
|
|
14666
14868
|
}
|
|
14667
14869
|
|
|
14668
14870
|
/** Exported for tests only. */
|
|
@@ -14674,7 +14876,7 @@ function instrumentDOM() {
|
|
|
14674
14876
|
// Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom
|
|
14675
14877
|
// handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before
|
|
14676
14878
|
// we instrument `addEventListener` so that we don't end up attaching this handler twice.
|
|
14677
|
-
const triggerDOMHandler =
|
|
14879
|
+
const triggerDOMHandler = triggerHandlers.bind(null, 'dom');
|
|
14678
14880
|
const globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);
|
|
14679
14881
|
types_WINDOW.document.addEventListener('click', globalDOMEventHandler, false);
|
|
14680
14882
|
types_WINDOW.document.addEventListener('keypress', globalDOMEventHandler, false);
|
|
@@ -14837,11 +15039,11 @@ function makeDOMEventHandler(
|
|
|
14837
15039
|
}
|
|
14838
15040
|
|
|
14839
15041
|
// Mark event as "seen"
|
|
14840
|
-
|
|
15042
|
+
addNonEnumerableProperty(event, '_sentryCaptured', true);
|
|
14841
15043
|
|
|
14842
15044
|
if (target && !target._sentryId) {
|
|
14843
15045
|
// Add UUID to event target so we can identify if
|
|
14844
|
-
|
|
15046
|
+
addNonEnumerableProperty(target, '_sentryId', uuid4());
|
|
14845
15047
|
}
|
|
14846
15048
|
|
|
14847
15049
|
const name = event.type === 'keypress' ? 'input' : event.type;
|
|
@@ -14878,7 +15080,7 @@ function getEventTarget(event) {
|
|
|
14878
15080
|
|
|
14879
15081
|
//# sourceMappingURL=dom.js.map
|
|
14880
15082
|
|
|
14881
|
-
;//
|
|
15083
|
+
;// ./node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js
|
|
14882
15084
|
|
|
14883
15085
|
|
|
14884
15086
|
|
|
@@ -14894,8 +15096,8 @@ const SENTRY_XHR_DATA_KEY = '__sentry_xhr_v3__';
|
|
|
14894
15096
|
*/
|
|
14895
15097
|
function addXhrInstrumentationHandler(handler) {
|
|
14896
15098
|
const type = 'xhr';
|
|
14897
|
-
|
|
14898
|
-
|
|
15099
|
+
addHandler(type, handler);
|
|
15100
|
+
maybeInstrument(type, instrumentXHR);
|
|
14899
15101
|
}
|
|
14900
15102
|
|
|
14901
15103
|
/** Exported only for tests. */
|
|
@@ -14909,7 +15111,7 @@ function instrumentXHR() {
|
|
|
14909
15111
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
14910
15112
|
xhrproto.open = new Proxy(xhrproto.open, {
|
|
14911
15113
|
apply(originalOpen, xhrOpenThisArg, xhrOpenArgArray) {
|
|
14912
|
-
const startTimestamp =
|
|
15114
|
+
const startTimestamp = timestampInSeconds() * 1000;
|
|
14913
15115
|
|
|
14914
15116
|
// open() should always be called with two or more arguments
|
|
14915
15117
|
// But to be on the safe side, we actually validate this and bail out if we don't have a method & url
|
|
@@ -14949,11 +15151,11 @@ function instrumentXHR() {
|
|
|
14949
15151
|
}
|
|
14950
15152
|
|
|
14951
15153
|
const handlerData = {
|
|
14952
|
-
endTimestamp:
|
|
15154
|
+
endTimestamp: timestampInSeconds() * 1000,
|
|
14953
15155
|
startTimestamp,
|
|
14954
15156
|
xhr: xhrOpenThisArg,
|
|
14955
15157
|
};
|
|
14956
|
-
|
|
15158
|
+
triggerHandlers('xhr', handlerData);
|
|
14957
15159
|
}
|
|
14958
15160
|
};
|
|
14959
15161
|
|
|
@@ -15007,10 +15209,10 @@ function instrumentXHR() {
|
|
|
15007
15209
|
}
|
|
15008
15210
|
|
|
15009
15211
|
const handlerData = {
|
|
15010
|
-
startTimestamp:
|
|
15212
|
+
startTimestamp: timestampInSeconds() * 1000,
|
|
15011
15213
|
xhr: sendThisArg,
|
|
15012
15214
|
};
|
|
15013
|
-
|
|
15215
|
+
triggerHandlers('xhr', handlerData);
|
|
15014
15216
|
|
|
15015
15217
|
return originalSend.apply(sendThisArg, sendArgArray);
|
|
15016
15218
|
},
|
|
@@ -15036,14 +15238,14 @@ function parseUrl(url) {
|
|
|
15036
15238
|
|
|
15037
15239
|
//# sourceMappingURL=xhr.js.map
|
|
15038
15240
|
|
|
15039
|
-
;//
|
|
15241
|
+
;// ./node_modules/@sentry/utils/build/esm/vendor/supportsHistory.js
|
|
15040
15242
|
|
|
15041
15243
|
|
|
15042
15244
|
// Based on https://github.com/angular/angular.js/pull/13945/files
|
|
15043
15245
|
// The MIT License
|
|
15044
15246
|
|
|
15045
15247
|
|
|
15046
|
-
const supportsHistory_WINDOW =
|
|
15248
|
+
const supportsHistory_WINDOW = GLOBAL_OBJ ;
|
|
15047
15249
|
|
|
15048
15250
|
/**
|
|
15049
15251
|
* Tells whether current environment supports History API
|
|
@@ -15068,7 +15270,7 @@ function supportsHistory() {
|
|
|
15068
15270
|
|
|
15069
15271
|
//# sourceMappingURL=supportsHistory.js.map
|
|
15070
15272
|
|
|
15071
|
-
;//
|
|
15273
|
+
;// ./node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js
|
|
15072
15274
|
|
|
15073
15275
|
|
|
15074
15276
|
|
|
@@ -15084,8 +15286,8 @@ let lastHref;
|
|
|
15084
15286
|
*/
|
|
15085
15287
|
function addHistoryInstrumentationHandler(handler) {
|
|
15086
15288
|
const type = 'history';
|
|
15087
|
-
|
|
15088
|
-
|
|
15289
|
+
addHandler(type, handler);
|
|
15290
|
+
maybeInstrument(type, instrumentHistory);
|
|
15089
15291
|
}
|
|
15090
15292
|
|
|
15091
15293
|
function instrumentHistory() {
|
|
@@ -15100,7 +15302,7 @@ function instrumentHistory() {
|
|
|
15100
15302
|
const from = lastHref;
|
|
15101
15303
|
lastHref = to;
|
|
15102
15304
|
const handlerData = { from, to };
|
|
15103
|
-
|
|
15305
|
+
triggerHandlers('history', handlerData);
|
|
15104
15306
|
if (oldOnPopState) {
|
|
15105
15307
|
// Apparently this can throw in Firefox when incorrectly implemented plugin is installed.
|
|
15106
15308
|
// https://github.com/getsentry/sentry-javascript/issues/3344
|
|
@@ -15123,7 +15325,7 @@ function instrumentHistory() {
|
|
|
15123
15325
|
// keep track of the current URL state, as we always receive only the updated state
|
|
15124
15326
|
lastHref = to;
|
|
15125
15327
|
const handlerData = { from, to };
|
|
15126
|
-
|
|
15328
|
+
triggerHandlers('history', handlerData);
|
|
15127
15329
|
}
|
|
15128
15330
|
return originalHistoryFunction.apply(this, args);
|
|
15129
15331
|
};
|
|
@@ -15136,7 +15338,7 @@ function instrumentHistory() {
|
|
|
15136
15338
|
|
|
15137
15339
|
//# sourceMappingURL=history.js.map
|
|
15138
15340
|
|
|
15139
|
-
;//
|
|
15341
|
+
;// ./node_modules/@sentry/core/build/esm/breadcrumbs.js
|
|
15140
15342
|
|
|
15141
15343
|
|
|
15142
15344
|
|
|
@@ -15153,7 +15355,7 @@ const DEFAULT_BREADCRUMBS = 100;
|
|
|
15153
15355
|
* user's actions prior to an error or crash.
|
|
15154
15356
|
*/
|
|
15155
15357
|
function addBreadcrumb(breadcrumb, hint) {
|
|
15156
|
-
const client =
|
|
15358
|
+
const client = getClient();
|
|
15157
15359
|
const isolationScope = getIsolationScope();
|
|
15158
15360
|
|
|
15159
15361
|
if (!client) return;
|
|
@@ -15180,7 +15382,7 @@ function addBreadcrumb(breadcrumb, hint) {
|
|
|
15180
15382
|
|
|
15181
15383
|
//# sourceMappingURL=breadcrumbs.js.map
|
|
15182
15384
|
|
|
15183
|
-
;//
|
|
15385
|
+
;// ./node_modules/@sentry/utils/build/esm/instrument/console.js
|
|
15184
15386
|
|
|
15185
15387
|
|
|
15186
15388
|
|
|
@@ -15194,29 +15396,29 @@ function addBreadcrumb(breadcrumb, hint) {
|
|
|
15194
15396
|
*/
|
|
15195
15397
|
function addConsoleInstrumentationHandler(handler) {
|
|
15196
15398
|
const type = 'console';
|
|
15197
|
-
|
|
15198
|
-
|
|
15399
|
+
addHandler(type, handler);
|
|
15400
|
+
maybeInstrument(type, instrumentConsole);
|
|
15199
15401
|
}
|
|
15200
15402
|
|
|
15201
15403
|
function instrumentConsole() {
|
|
15202
|
-
if (!("console" in
|
|
15404
|
+
if (!("console" in GLOBAL_OBJ)) {
|
|
15203
15405
|
return;
|
|
15204
15406
|
}
|
|
15205
15407
|
|
|
15206
15408
|
CONSOLE_LEVELS.forEach(function (level) {
|
|
15207
|
-
if (!(level in
|
|
15409
|
+
if (!(level in GLOBAL_OBJ.console)) {
|
|
15208
15410
|
return;
|
|
15209
15411
|
}
|
|
15210
15412
|
|
|
15211
|
-
fill(
|
|
15413
|
+
fill(GLOBAL_OBJ.console, level, function (originalConsoleMethod) {
|
|
15212
15414
|
originalConsoleMethods[level] = originalConsoleMethod;
|
|
15213
15415
|
|
|
15214
15416
|
return function (...args) {
|
|
15215
15417
|
const handlerData = { args, level };
|
|
15216
|
-
|
|
15418
|
+
triggerHandlers('console', handlerData);
|
|
15217
15419
|
|
|
15218
15420
|
const log = originalConsoleMethods[level];
|
|
15219
|
-
log && log.apply(
|
|
15421
|
+
log && log.apply(GLOBAL_OBJ.console, args);
|
|
15220
15422
|
};
|
|
15221
15423
|
});
|
|
15222
15424
|
});
|
|
@@ -15225,7 +15427,11 @@ function instrumentConsole() {
|
|
|
15225
15427
|
|
|
15226
15428
|
//# sourceMappingURL=console.js.map
|
|
15227
15429
|
|
|
15228
|
-
;//
|
|
15430
|
+
;// ./node_modules/@sentry/utils/build/esm/instrument/fetch.js
|
|
15431
|
+
/* unused harmony import specifier */ var fetch_timestampInSeconds;
|
|
15432
|
+
/* unused harmony import specifier */ var fetch_addHandler;
|
|
15433
|
+
/* unused harmony import specifier */ var fetch_maybeInstrument;
|
|
15434
|
+
/* unused harmony import specifier */ var fetch_triggerHandlers;
|
|
15229
15435
|
|
|
15230
15436
|
|
|
15231
15437
|
|
|
@@ -15246,8 +15452,8 @@ function addFetchInstrumentationHandler(
|
|
|
15246
15452
|
skipNativeFetchCheck,
|
|
15247
15453
|
) {
|
|
15248
15454
|
const type = 'fetch';
|
|
15249
|
-
|
|
15250
|
-
|
|
15455
|
+
addHandler(type, handler);
|
|
15456
|
+
maybeInstrument(type, () => instrumentFetch(undefined, skipNativeFetchCheck));
|
|
15251
15457
|
}
|
|
15252
15458
|
|
|
15253
15459
|
/**
|
|
@@ -15260,8 +15466,8 @@ function addFetchInstrumentationHandler(
|
|
|
15260
15466
|
*/
|
|
15261
15467
|
function addFetchEndInstrumentationHandler(handler) {
|
|
15262
15468
|
const type = 'fetch-body-resolved';
|
|
15263
|
-
|
|
15264
|
-
|
|
15469
|
+
fetch_addHandler(type, handler);
|
|
15470
|
+
fetch_maybeInstrument(type, () => instrumentFetch(streamHandler));
|
|
15265
15471
|
}
|
|
15266
15472
|
|
|
15267
15473
|
function instrumentFetch(onFetchResolved, skipNativeFetchCheck = false) {
|
|
@@ -15269,7 +15475,7 @@ function instrumentFetch(onFetchResolved, skipNativeFetchCheck = false) {
|
|
|
15269
15475
|
return;
|
|
15270
15476
|
}
|
|
15271
15477
|
|
|
15272
|
-
fill(
|
|
15478
|
+
fill(GLOBAL_OBJ, 'fetch', function (originalFetch) {
|
|
15273
15479
|
return function (...args) {
|
|
15274
15480
|
const { method, url } = parseFetchArgs(args);
|
|
15275
15481
|
const handlerData = {
|
|
@@ -15278,12 +15484,12 @@ function instrumentFetch(onFetchResolved, skipNativeFetchCheck = false) {
|
|
|
15278
15484
|
method,
|
|
15279
15485
|
url,
|
|
15280
15486
|
},
|
|
15281
|
-
startTimestamp:
|
|
15487
|
+
startTimestamp: timestampInSeconds() * 1000,
|
|
15282
15488
|
};
|
|
15283
15489
|
|
|
15284
15490
|
// if there is no callback, fetch is instrumented directly
|
|
15285
15491
|
if (!onFetchResolved) {
|
|
15286
|
-
|
|
15492
|
+
triggerHandlers('fetch', {
|
|
15287
15493
|
...handlerData,
|
|
15288
15494
|
});
|
|
15289
15495
|
}
|
|
@@ -15298,14 +15504,14 @@ function instrumentFetch(onFetchResolved, skipNativeFetchCheck = false) {
|
|
|
15298
15504
|
const virtualStackTrace = new Error().stack;
|
|
15299
15505
|
|
|
15300
15506
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
15301
|
-
return originalFetch.apply(
|
|
15507
|
+
return originalFetch.apply(GLOBAL_OBJ, args).then(
|
|
15302
15508
|
async (response) => {
|
|
15303
15509
|
if (onFetchResolved) {
|
|
15304
15510
|
onFetchResolved(response);
|
|
15305
15511
|
} else {
|
|
15306
|
-
|
|
15512
|
+
triggerHandlers('fetch', {
|
|
15307
15513
|
...handlerData,
|
|
15308
|
-
endTimestamp:
|
|
15514
|
+
endTimestamp: timestampInSeconds() * 1000,
|
|
15309
15515
|
response,
|
|
15310
15516
|
});
|
|
15311
15517
|
}
|
|
@@ -15313,9 +15519,9 @@ function instrumentFetch(onFetchResolved, skipNativeFetchCheck = false) {
|
|
|
15313
15519
|
return response;
|
|
15314
15520
|
},
|
|
15315
15521
|
(error) => {
|
|
15316
|
-
|
|
15522
|
+
triggerHandlers('fetch', {
|
|
15317
15523
|
...handlerData,
|
|
15318
|
-
endTimestamp:
|
|
15524
|
+
endTimestamp: timestampInSeconds() * 1000,
|
|
15319
15525
|
error,
|
|
15320
15526
|
});
|
|
15321
15527
|
|
|
@@ -15325,7 +15531,7 @@ function instrumentFetch(onFetchResolved, skipNativeFetchCheck = false) {
|
|
|
15325
15531
|
// have a stack trace, so the SDK backfilled the stack trace so
|
|
15326
15532
|
// you can see which fetch call failed.
|
|
15327
15533
|
error.stack = virtualStackTrace;
|
|
15328
|
-
|
|
15534
|
+
addNonEnumerableProperty(error, 'framesToPop', 1);
|
|
15329
15535
|
}
|
|
15330
15536
|
|
|
15331
15537
|
// NOTE: If you are a Sentry user, and you are seeing this stack frame,
|
|
@@ -15382,8 +15588,8 @@ async function streamHandler(response) {
|
|
|
15382
15588
|
}
|
|
15383
15589
|
|
|
15384
15590
|
await resolveResponse(clonedResponseForResolving, () => {
|
|
15385
|
-
|
|
15386
|
-
endTimestamp:
|
|
15591
|
+
fetch_triggerHandlers('fetch-body-resolved', {
|
|
15592
|
+
endTimestamp: fetch_timestampInSeconds() * 1000,
|
|
15387
15593
|
response,
|
|
15388
15594
|
});
|
|
15389
15595
|
});
|
|
@@ -15441,7 +15647,7 @@ function parseFetchArgs(fetchArgs) {
|
|
|
15441
15647
|
|
|
15442
15648
|
//# sourceMappingURL=fetch.js.map
|
|
15443
15649
|
|
|
15444
|
-
;//
|
|
15650
|
+
;// ./node_modules/@sentry/utils/build/esm/severity.js
|
|
15445
15651
|
// Note: Ideally the `SeverityLevel` type would be derived from `validSeverityLevels`, but that would mean either
|
|
15446
15652
|
//
|
|
15447
15653
|
// a) moving `validSeverityLevels` to `@sentry/types`,
|
|
@@ -15467,7 +15673,7 @@ function severityLevelFromString(level) {
|
|
|
15467
15673
|
|
|
15468
15674
|
//# sourceMappingURL=severity.js.map
|
|
15469
15675
|
|
|
15470
|
-
;//
|
|
15676
|
+
;// ./node_modules/@sentry/utils/build/esm/breadcrumb-log-level.js
|
|
15471
15677
|
/**
|
|
15472
15678
|
* Determine a breadcrumb's log level (only `warning` or `error`) based on an HTTP status code.
|
|
15473
15679
|
*/
|
|
@@ -15487,7 +15693,7 @@ function getBreadcrumbLogLevelFromHttpStatusCode(statusCode) {
|
|
|
15487
15693
|
|
|
15488
15694
|
//# sourceMappingURL=breadcrumb-log-level.js.map
|
|
15489
15695
|
|
|
15490
|
-
;//
|
|
15696
|
+
;// ./node_modules/@sentry/utils/build/esm/url.js
|
|
15491
15697
|
/**
|
|
15492
15698
|
* Parses string form of URL into an object
|
|
15493
15699
|
* // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B
|
|
@@ -15561,7 +15767,7 @@ function getSanitizedUrlString(url) {
|
|
|
15561
15767
|
|
|
15562
15768
|
//# sourceMappingURL=url.js.map
|
|
15563
15769
|
|
|
15564
|
-
;//
|
|
15770
|
+
;// ./node_modules/@sentry/browser/build/npm/esm/integrations/breadcrumbs.js
|
|
15565
15771
|
|
|
15566
15772
|
|
|
15567
15773
|
|
|
@@ -15616,7 +15822,7 @@ const breadcrumbsIntegration = defineIntegration(_breadcrumbsIntegration);
|
|
|
15616
15822
|
*/
|
|
15617
15823
|
function _getSentryBreadcrumbHandler(client) {
|
|
15618
15824
|
return function addSentryBreadcrumb(event) {
|
|
15619
|
-
if (
|
|
15825
|
+
if (getClient() !== client) {
|
|
15620
15826
|
return;
|
|
15621
15827
|
}
|
|
15622
15828
|
|
|
@@ -15643,7 +15849,7 @@ function _getDomBreadcrumbHandler(
|
|
|
15643
15849
|
dom,
|
|
15644
15850
|
) {
|
|
15645
15851
|
return function _innerDomBreadcrumb(handlerData) {
|
|
15646
|
-
if (
|
|
15852
|
+
if (getClient() !== client) {
|
|
15647
15853
|
return;
|
|
15648
15854
|
}
|
|
15649
15855
|
|
|
@@ -15654,8 +15860,8 @@ function _getDomBreadcrumbHandler(
|
|
|
15654
15860
|
let maxStringLength =
|
|
15655
15861
|
typeof dom === 'object' && typeof dom.maxStringLength === 'number' ? dom.maxStringLength : undefined;
|
|
15656
15862
|
if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {
|
|
15657
|
-
|
|
15658
|
-
|
|
15863
|
+
esm_debug_build_DEBUG_BUILD &&
|
|
15864
|
+
logger.warn(
|
|
15659
15865
|
`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`,
|
|
15660
15866
|
);
|
|
15661
15867
|
maxStringLength = MAX_ALLOWED_STRING_LENGTH;
|
|
@@ -15702,7 +15908,7 @@ function _getDomBreadcrumbHandler(
|
|
|
15702
15908
|
*/
|
|
15703
15909
|
function _getConsoleBreadcrumbHandler(client) {
|
|
15704
15910
|
return function _consoleBreadcrumb(handlerData) {
|
|
15705
|
-
if (
|
|
15911
|
+
if (getClient() !== client) {
|
|
15706
15912
|
return;
|
|
15707
15913
|
}
|
|
15708
15914
|
|
|
@@ -15738,7 +15944,7 @@ function _getConsoleBreadcrumbHandler(client) {
|
|
|
15738
15944
|
*/
|
|
15739
15945
|
function _getXhrBreadcrumbHandler(client) {
|
|
15740
15946
|
return function _xhrBreadcrumb(handlerData) {
|
|
15741
|
-
if (
|
|
15947
|
+
if (getClient() !== client) {
|
|
15742
15948
|
return;
|
|
15743
15949
|
}
|
|
15744
15950
|
|
|
@@ -15785,7 +15991,7 @@ function _getXhrBreadcrumbHandler(client) {
|
|
|
15785
15991
|
*/
|
|
15786
15992
|
function _getFetchBreadcrumbHandler(client) {
|
|
15787
15993
|
return function _fetchBreadcrumb(handlerData) {
|
|
15788
|
-
if (
|
|
15994
|
+
if (getClient() !== client) {
|
|
15789
15995
|
return;
|
|
15790
15996
|
}
|
|
15791
15997
|
|
|
@@ -15851,7 +16057,7 @@ function _getFetchBreadcrumbHandler(client) {
|
|
|
15851
16057
|
*/
|
|
15852
16058
|
function _getHistoryBreadcrumbHandler(client) {
|
|
15853
16059
|
return function _historyBreadcrumb(handlerData) {
|
|
15854
|
-
if (
|
|
16060
|
+
if (getClient() !== client) {
|
|
15855
16061
|
return;
|
|
15856
16062
|
}
|
|
15857
16063
|
|
|
@@ -15892,7 +16098,7 @@ function _isEvent(event) {
|
|
|
15892
16098
|
|
|
15893
16099
|
//# sourceMappingURL=breadcrumbs.js.map
|
|
15894
16100
|
|
|
15895
|
-
;//
|
|
16101
|
+
;// ./src/client/lib/error-tracker.ts
|
|
15896
16102
|
|
|
15897
16103
|
|
|
15898
16104
|
const sentryTags = {};
|
|
@@ -15919,7 +16125,7 @@ const client = new BrowserClient({
|
|
|
15919
16125
|
return event;
|
|
15920
16126
|
},
|
|
15921
16127
|
environment: "production",
|
|
15922
|
-
release: "1.14.
|
|
16128
|
+
release: "1.14.5-b0ec618",
|
|
15923
16129
|
sampleRate: 0.25,
|
|
15924
16130
|
autoSessionTracking: false,
|
|
15925
16131
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -15949,7 +16155,7 @@ const errorTracker = {
|
|
|
15949
16155
|
};
|
|
15950
16156
|
errorTracker.setTag("url", window.location.href);
|
|
15951
16157
|
/* harmony default export */ var error_tracker = (errorTracker);
|
|
15952
|
-
;//
|
|
16158
|
+
;// ./src/common/constants/events.ts
|
|
15953
16159
|
/**
|
|
15954
16160
|
* Embed Method Events
|
|
15955
16161
|
*/
|
|
@@ -16054,7 +16260,7 @@ let FetchEventStatus = /*#__PURE__*/function (FetchEventStatus) {
|
|
|
16054
16260
|
FetchEventStatus["Failure"] = "FAILURE";
|
|
16055
16261
|
return FetchEventStatus;
|
|
16056
16262
|
}({});
|
|
16057
|
-
;//
|
|
16263
|
+
;// ./src/common/lib/channel.ts
|
|
16058
16264
|
|
|
16059
16265
|
|
|
16060
16266
|
|
|
@@ -16158,7 +16364,7 @@ class Channel {
|
|
|
16158
16364
|
});
|
|
16159
16365
|
}
|
|
16160
16366
|
}
|
|
16161
|
-
;//
|
|
16367
|
+
;// ./src/common/lib/fc/index.ts
|
|
16162
16368
|
|
|
16163
16369
|
|
|
16164
16370
|
|
|
@@ -16189,7 +16395,8 @@ class FrameChannel extends Channel {
|
|
|
16189
16395
|
this.targetWindow.postMessage(this.constructObjectToSend(eventName, data, id, status), this.targetOrigin);
|
|
16190
16396
|
}
|
|
16191
16397
|
isValidMessageEvent(event) {
|
|
16192
|
-
if (false)
|
|
16398
|
+
if (false) // removed by dead control flow
|
|
16399
|
+
{}
|
|
16193
16400
|
if (this.targetOrigin === "*") {
|
|
16194
16401
|
return true;
|
|
16195
16402
|
}
|
|
@@ -16253,7 +16460,7 @@ class FrameChannel extends Channel {
|
|
|
16253
16460
|
}
|
|
16254
16461
|
}
|
|
16255
16462
|
}
|
|
16256
|
-
;//
|
|
16463
|
+
;// ./src/client/helpers/events/index.ts
|
|
16257
16464
|
/**
|
|
16258
16465
|
* Older browsers like IE11 cannot use Event and CustomEvent constructors. These
|
|
16259
16466
|
* functions use the "old-school" approach if Event and CustomEvent are not
|
|
@@ -16291,7 +16498,7 @@ function createNewEvent(eventName) {
|
|
|
16291
16498
|
}
|
|
16292
16499
|
return event;
|
|
16293
16500
|
}
|
|
16294
|
-
;//
|
|
16501
|
+
;// ./src/client/lib/ce.ts
|
|
16295
16502
|
|
|
16296
16503
|
|
|
16297
16504
|
|
|
@@ -16342,7 +16549,7 @@ class CustomEventChannel extends Channel {
|
|
|
16342
16549
|
};
|
|
16343
16550
|
}
|
|
16344
16551
|
}
|
|
16345
|
-
;//
|
|
16552
|
+
;// ./src/client/lib/message-service.ts
|
|
16346
16553
|
|
|
16347
16554
|
|
|
16348
16555
|
|
|
@@ -16376,7 +16583,7 @@ class MessageService {
|
|
|
16376
16583
|
// EXTERNAL MODULE: ./node_modules/json-stable-stringify/index.js
|
|
16377
16584
|
var json_stable_stringify = __webpack_require__(5473);
|
|
16378
16585
|
var json_stable_stringify_default = /*#__PURE__*/__webpack_require__.n(json_stable_stringify);
|
|
16379
|
-
;//
|
|
16586
|
+
;// ./src/common/constants/actions.ts
|
|
16380
16587
|
let ActionCreators = /*#__PURE__*/function (ActionCreators) {
|
|
16381
16588
|
ActionCreators["SET_STATE_ACTION"] = "setState";
|
|
16382
16589
|
ActionCreators["TOGGLE_CHAT_ACTION"] = "toggleChat";
|
|
@@ -16394,7 +16601,7 @@ let ActionTypes = /*#__PURE__*/function (ActionTypes) {
|
|
|
16394
16601
|
ActionTypes["FOCUS_OFF_ADA_TYPE"] = "FOCUS_OFF_ADA";
|
|
16395
16602
|
return ActionTypes;
|
|
16396
16603
|
}({});
|
|
16397
|
-
;//
|
|
16604
|
+
;// ./src/client/helpers/event-subscriptions/index.ts
|
|
16398
16605
|
let subscriptions = [];
|
|
16399
16606
|
function hasEventSubscription(eventKey) {
|
|
16400
16607
|
return subscriptions.some(subscription => subscription.eventKey === eventKey);
|
|
@@ -16447,7 +16654,7 @@ function publishEvent(eventKey, data) {
|
|
|
16447
16654
|
}
|
|
16448
16655
|
});
|
|
16449
16656
|
}
|
|
16450
|
-
;//
|
|
16657
|
+
;// ./src/common/helpers/http.ts
|
|
16451
16658
|
/**
|
|
16452
16659
|
* Vanilla HTTP request. Returns a Promise.
|
|
16453
16660
|
*/
|
|
@@ -16491,9 +16698,9 @@ function httpRequest(obj) {
|
|
|
16491
16698
|
xhr.send(obj.body);
|
|
16492
16699
|
});
|
|
16493
16700
|
}
|
|
16494
|
-
;//
|
|
16701
|
+
;// ./src/common/helpers/config-info.ts
|
|
16495
16702
|
const isProduction = "production" === "production";
|
|
16496
|
-
;//
|
|
16703
|
+
;// ./src/common/helpers/url/constants.ts
|
|
16497
16704
|
// These ports are only used in development (localhost URL construction).
|
|
16498
16705
|
// Production code paths check `isProduction` first and never read these values.
|
|
16499
16706
|
//
|
|
@@ -16513,7 +16720,7 @@ const ports = {
|
|
|
16513
16720
|
default: Number(DEV_FRAMES_PORT)
|
|
16514
16721
|
}
|
|
16515
16722
|
};
|
|
16516
|
-
;//
|
|
16723
|
+
;// ./src/common/helpers/url/index.ts
|
|
16517
16724
|
|
|
16518
16725
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16519
16726
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16521,7 +16728,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16521
16728
|
|
|
16522
16729
|
const DEFAULT_ADA_DOMAIN = "ada";
|
|
16523
16730
|
function getClientCacheUrl(handle, cluster, domain) {
|
|
16524
|
-
if (false)
|
|
16731
|
+
if (false) // removed by dead control flow
|
|
16732
|
+
{}
|
|
16525
16733
|
const clientCacheHandle = "rollout";
|
|
16526
16734
|
const envString = domain || DEFAULT_ADA_DOMAIN;
|
|
16527
16735
|
const clusterString = cluster ? `.${cluster}` : "";
|
|
@@ -16543,7 +16751,7 @@ function getEmbedURL(_ref) {
|
|
|
16543
16751
|
} else {
|
|
16544
16752
|
host = `http://${handle}.localhost:${ports.localhost.default}`;
|
|
16545
16753
|
}
|
|
16546
|
-
return `${host}/embed/${frameName}/${"
|
|
16754
|
+
return `${host}/embed/${frameName}/${"b0ec618"}/index.html`;
|
|
16547
16755
|
}
|
|
16548
16756
|
function constructQueryString(query) {
|
|
16549
16757
|
return Object.keys(query).map(key => {
|
|
@@ -16631,7 +16839,7 @@ function escapeUrlParam(param) {
|
|
|
16631
16839
|
*/
|
|
16632
16840
|
return param.replace(/&(?!amp)(?!lt;)(?!gt;)(?!quot)(?!apos;)/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/\?/g, "?").replace(/=/g, "=").replace(/\./g, ".");
|
|
16633
16841
|
}
|
|
16634
|
-
;//
|
|
16842
|
+
;// ./src/client/store/actions/index.ts
|
|
16635
16843
|
|
|
16636
16844
|
|
|
16637
16845
|
|
|
@@ -16743,7 +16951,7 @@ const actions = {
|
|
|
16743
16951
|
};
|
|
16744
16952
|
// EXTERNAL MODULE: ./node_modules/@ada-support/web-storage/dist/index.js
|
|
16745
16953
|
var dist = __webpack_require__(6183);
|
|
16746
|
-
;//
|
|
16954
|
+
;// ./src/client/store/mutations/index.ts
|
|
16747
16955
|
|
|
16748
16956
|
function mutations_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16749
16957
|
function mutations_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? mutations_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : mutations_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16828,7 +17036,7 @@ const mutations = (state, action) => {
|
|
|
16828
17036
|
}
|
|
16829
17037
|
};
|
|
16830
17038
|
/* harmony default export */ var store_mutations = (mutations);
|
|
16831
|
-
;//
|
|
17039
|
+
;// ./src/client/store/index.ts
|
|
16832
17040
|
|
|
16833
17041
|
function store_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16834
17042
|
function store_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? store_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : store_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16909,7 +17117,8 @@ class Store {
|
|
|
16909
17117
|
/**
|
|
16910
17118
|
* To help debug state issues. We do not want this in production.
|
|
16911
17119
|
*/
|
|
16912
|
-
if (false)
|
|
17120
|
+
if (false) // removed by dead control flow
|
|
17121
|
+
{}
|
|
16913
17122
|
const channels = this.messageService.getAllChannels();
|
|
16914
17123
|
|
|
16915
17124
|
/**
|
|
@@ -16939,7 +17148,7 @@ class Store {
|
|
|
16939
17148
|
}
|
|
16940
17149
|
}
|
|
16941
17150
|
}
|
|
16942
|
-
;//
|
|
17151
|
+
;// ./src/client/lib/store-proxy.ts
|
|
16943
17152
|
|
|
16944
17153
|
|
|
16945
17154
|
|
|
@@ -16972,7 +17181,7 @@ class StoreProxy {
|
|
|
16972
17181
|
});
|
|
16973
17182
|
}
|
|
16974
17183
|
}
|
|
16975
|
-
;//
|
|
17184
|
+
;// ./src/client/helpers/local-notifications/index.ts
|
|
16976
17185
|
const browserHasNotificationSupport = "Notification" in window;
|
|
16977
17186
|
function checkIfUserHasGivenPermission() {
|
|
16978
17187
|
if (!browserHasNotificationSupport) {
|
|
@@ -17024,7 +17233,7 @@ function notificationPermissionsListener(notificationPermissionsChangeHandler) {
|
|
|
17024
17233
|
// We have to catch an exception to avoid errors being thrown in console
|
|
17025
17234
|
});
|
|
17026
17235
|
}
|
|
17027
|
-
;//
|
|
17236
|
+
;// ./src/common/constants/storage-keys.ts
|
|
17028
17237
|
const CHATTER_TOKEN_STORAGE_KEY = "chatter";
|
|
17029
17238
|
const CHATTER_CREATED_STORAGE_KEY = "ada-embed_chatter-created";
|
|
17030
17239
|
const SESSION_AUTH_TOKEN_STORAGE_KEY = "ada-embed_session-token";
|
|
@@ -17037,7 +17246,188 @@ const ZD_MESSAGING_CHATTER_CREATED_STORAGE_KEY = "ada-embed_zd-messaging-chatter
|
|
|
17037
17246
|
|
|
17038
17247
|
/** @deprecated - Use CHATTER_TOKEN_STORAGE_KEY */
|
|
17039
17248
|
const CHATTER_STORAGE_KEY = (/* unused pure expression or super */ null && (CHATTER_TOKEN_STORAGE_KEY));
|
|
17040
|
-
;//
|
|
17249
|
+
;// ./src/common/helpers/messaging-auth-state.ts
|
|
17250
|
+
|
|
17251
|
+
|
|
17252
|
+
// Single static key, shared verbatim with messaging + chat and disclosed by
|
|
17253
|
+
// @ada-support/web-storage. Per-bot scoping is implicit in the bot-subdomain
|
|
17254
|
+
// storage origin this runs on, so no apiOrigin/handle-scoped key is needed.
|
|
17255
|
+
const MESSAGING_AUTH_STATE_STORAGE_KEY = "messagingAuthState";
|
|
17256
|
+
function isRecord(value) {
|
|
17257
|
+
return typeof value === "object" && value !== null;
|
|
17258
|
+
}
|
|
17259
|
+
|
|
17260
|
+
// Typed @ada-support/web-storage wrapper for the chosen persistence provider, or
|
|
17261
|
+
// null when persistence is disabled / there is no window. The wrapper is what
|
|
17262
|
+
// puts `messagingAuthState` on the published web-storage disclosure list and
|
|
17263
|
+
// serializes the value, so callers pass/get a typed object rather than a string.
|
|
17264
|
+
function getMessagingAuthStorage(persistence) {
|
|
17265
|
+
if (persistence === "private" || typeof window === "undefined") {
|
|
17266
|
+
return null;
|
|
17267
|
+
}
|
|
17268
|
+
return persistence === "session" ? dist/* adaSessionStorage */.ad : dist/* adaLocalStorage */.BB;
|
|
17269
|
+
}
|
|
17270
|
+
function getApiOrigin(_ref) {
|
|
17271
|
+
let {
|
|
17272
|
+
handle,
|
|
17273
|
+
cluster,
|
|
17274
|
+
domain
|
|
17275
|
+
} = _ref;
|
|
17276
|
+
try {
|
|
17277
|
+
return new window.URL(getURL({
|
|
17278
|
+
name: "api",
|
|
17279
|
+
handle,
|
|
17280
|
+
cluster,
|
|
17281
|
+
domain
|
|
17282
|
+
}), window.location.origin).origin;
|
|
17283
|
+
} catch (error) {
|
|
17284
|
+
return null;
|
|
17285
|
+
}
|
|
17286
|
+
}
|
|
17287
|
+
function buildMessagingAuthStateStorageKey(_ref2) {
|
|
17288
|
+
let {
|
|
17289
|
+
handle,
|
|
17290
|
+
cluster,
|
|
17291
|
+
domain
|
|
17292
|
+
} = _ref2;
|
|
17293
|
+
// The key itself is static; the handle/origin now only gate whether there is a
|
|
17294
|
+
// resolvable session to read/write (preserving the previous no-op behavior
|
|
17295
|
+
// before a handle/origin is known) rather than scoping the key.
|
|
17296
|
+
if (!handle || !getApiOrigin({
|
|
17297
|
+
handle,
|
|
17298
|
+
cluster,
|
|
17299
|
+
domain
|
|
17300
|
+
})) {
|
|
17301
|
+
return null;
|
|
17302
|
+
}
|
|
17303
|
+
return MESSAGING_AUTH_STATE_STORAGE_KEY;
|
|
17304
|
+
}
|
|
17305
|
+
function parseMessagingAuthState(value) {
|
|
17306
|
+
let parsedValue = value;
|
|
17307
|
+
if (typeof value === "string") {
|
|
17308
|
+
try {
|
|
17309
|
+
parsedValue = JSON.parse(value);
|
|
17310
|
+
} catch (error) {
|
|
17311
|
+
return null;
|
|
17312
|
+
}
|
|
17313
|
+
}
|
|
17314
|
+
if (!isRecord(parsedValue)) {
|
|
17315
|
+
return null;
|
|
17316
|
+
}
|
|
17317
|
+
const {
|
|
17318
|
+
messagingToken,
|
|
17319
|
+
messagingTokenExpiresAt,
|
|
17320
|
+
sessionRefreshToken,
|
|
17321
|
+
refreshGeneration
|
|
17322
|
+
} = parsedValue;
|
|
17323
|
+
if (typeof messagingToken !== "string" || !messagingToken || typeof messagingTokenExpiresAt !== "number" || !Number.isFinite(messagingTokenExpiresAt) || messagingTokenExpiresAt <= 0 || typeof sessionRefreshToken !== "string" || !sessionRefreshToken || typeof refreshGeneration !== "number" || !Number.isFinite(refreshGeneration)) {
|
|
17324
|
+
return null;
|
|
17325
|
+
}
|
|
17326
|
+
return {
|
|
17327
|
+
messagingToken,
|
|
17328
|
+
messagingTokenExpiresAt,
|
|
17329
|
+
sessionRefreshToken,
|
|
17330
|
+
refreshGeneration
|
|
17331
|
+
};
|
|
17332
|
+
}
|
|
17333
|
+
|
|
17334
|
+
// Storage-blocked browsers can throw on the storage methods, so each access is
|
|
17335
|
+
// wrapped to fall back gracefully rather than throw into callers.
|
|
17336
|
+
function safeReadMessagingAuthState(persistence) {
|
|
17337
|
+
try {
|
|
17338
|
+
var _getMessagingAuthStor;
|
|
17339
|
+
return parseMessagingAuthState(((_getMessagingAuthStor = getMessagingAuthStorage(persistence)) === null || _getMessagingAuthStor === void 0 ? void 0 : _getMessagingAuthStor.getItem(MESSAGING_AUTH_STATE_STORAGE_KEY)) ?? null);
|
|
17340
|
+
} catch (error) {
|
|
17341
|
+
return null;
|
|
17342
|
+
}
|
|
17343
|
+
}
|
|
17344
|
+
function readMessagingAuthStateFromStorage(_ref3) {
|
|
17345
|
+
let {
|
|
17346
|
+
handle,
|
|
17347
|
+
cluster,
|
|
17348
|
+
domain
|
|
17349
|
+
} = _ref3;
|
|
17350
|
+
if (!buildMessagingAuthStateStorageKey({
|
|
17351
|
+
handle,
|
|
17352
|
+
cluster,
|
|
17353
|
+
domain
|
|
17354
|
+
})) {
|
|
17355
|
+
return undefined;
|
|
17356
|
+
}
|
|
17357
|
+
const persistedAuthStates = ["normal", "session"].map(persistence => safeReadMessagingAuthState(persistence)).filter(authState => authState !== null);
|
|
17358
|
+
return persistedAuthStates.reduce((highestState, authState) => !highestState || authState.refreshGeneration > highestState.refreshGeneration ? authState : highestState, undefined);
|
|
17359
|
+
}
|
|
17360
|
+
function writeMessagingAuthStateToStorage(_ref4) {
|
|
17361
|
+
let {
|
|
17362
|
+
handle,
|
|
17363
|
+
cluster,
|
|
17364
|
+
domain,
|
|
17365
|
+
persistence,
|
|
17366
|
+
state
|
|
17367
|
+
} = _ref4;
|
|
17368
|
+
const storageKey = buildMessagingAuthStateStorageKey({
|
|
17369
|
+
handle,
|
|
17370
|
+
cluster,
|
|
17371
|
+
domain
|
|
17372
|
+
});
|
|
17373
|
+
const storage = getMessagingAuthStorage(persistence);
|
|
17374
|
+
if (!storageKey || !storage || !state) {
|
|
17375
|
+
return false;
|
|
17376
|
+
}
|
|
17377
|
+
try {
|
|
17378
|
+
const existing = readMessagingAuthStateFromStorage({
|
|
17379
|
+
handle,
|
|
17380
|
+
cluster,
|
|
17381
|
+
domain
|
|
17382
|
+
});
|
|
17383
|
+
if (existing && existing.refreshGeneration >= state.refreshGeneration) {
|
|
17384
|
+
return false;
|
|
17385
|
+
}
|
|
17386
|
+
storage.setItem(storageKey, state);
|
|
17387
|
+
return true;
|
|
17388
|
+
} catch (error) {
|
|
17389
|
+
return false;
|
|
17390
|
+
}
|
|
17391
|
+
}
|
|
17392
|
+
function clearAllMessagingAuthStatesFromStorage() {
|
|
17393
|
+
["normal", "session"].forEach(persistence => {
|
|
17394
|
+
try {
|
|
17395
|
+
var _getMessagingAuthStor2;
|
|
17396
|
+
(_getMessagingAuthStor2 = getMessagingAuthStorage(persistence)) === null || _getMessagingAuthStor2 === void 0 ? void 0 : _getMessagingAuthStor2.removeItem(MESSAGING_AUTH_STATE_STORAGE_KEY);
|
|
17397
|
+
} catch (error) {
|
|
17398
|
+
// Storage blocked; nothing to clear.
|
|
17399
|
+
}
|
|
17400
|
+
});
|
|
17401
|
+
}
|
|
17402
|
+
|
|
17403
|
+
// Removes the messaging auth state (across both persistence providers). Used when
|
|
17404
|
+
// a bot rotates to a new chatter. With the bot-subdomain storage origin there is a
|
|
17405
|
+
// single auth state per origin, so this and `clearAllMessagingAuthStatesFromStorage`
|
|
17406
|
+
// now clear the same key.
|
|
17407
|
+
function clearMessagingAuthStateFromStorage(_ref5) {
|
|
17408
|
+
let {
|
|
17409
|
+
handle,
|
|
17410
|
+
cluster,
|
|
17411
|
+
domain
|
|
17412
|
+
} = _ref5;
|
|
17413
|
+
if (!buildMessagingAuthStateStorageKey({
|
|
17414
|
+
handle,
|
|
17415
|
+
cluster,
|
|
17416
|
+
domain
|
|
17417
|
+
})) {
|
|
17418
|
+
return;
|
|
17419
|
+
}
|
|
17420
|
+
["normal", "session"].forEach(persistence => {
|
|
17421
|
+
try {
|
|
17422
|
+
var _getMessagingAuthStor3;
|
|
17423
|
+
(_getMessagingAuthStor3 = getMessagingAuthStorage(persistence)) === null || _getMessagingAuthStor3 === void 0 ? void 0 : _getMessagingAuthStor3.removeItem(MESSAGING_AUTH_STATE_STORAGE_KEY);
|
|
17424
|
+
} catch (error) {
|
|
17425
|
+
// Storage blocked; nothing to clear.
|
|
17426
|
+
}
|
|
17427
|
+
});
|
|
17428
|
+
}
|
|
17429
|
+
;// ./src/client/store/state.ts
|
|
17430
|
+
|
|
17041
17431
|
|
|
17042
17432
|
|
|
17043
17433
|
|
|
@@ -17076,6 +17466,11 @@ const getInitialState = adaSettings => ({
|
|
|
17076
17466
|
chatterToken: getValueFromStorage(CHATTER_TOKEN_STORAGE_KEY) || undefined,
|
|
17077
17467
|
chatterCreated: getValueFromStorage(CHATTER_CREATED_STORAGE_KEY) || undefined,
|
|
17078
17468
|
sessionToken: getValueFromStorage(SESSION_AUTH_TOKEN_STORAGE_KEY) || undefined,
|
|
17469
|
+
messagingAuthState: readMessagingAuthStateFromStorage({
|
|
17470
|
+
handle: adaSettings.handle,
|
|
17471
|
+
cluster: adaSettings.cluster,
|
|
17472
|
+
domain: adaSettings.domain
|
|
17473
|
+
}),
|
|
17079
17474
|
zdSessionId: getValueFromStorage(ZD_SESSION_STORAGE_KEY) || undefined,
|
|
17080
17475
|
zdPreviousTags: getValueFromStorage(ZD_PREVIOUS_TAGS_STORAGE_KEY) || undefined,
|
|
17081
17476
|
zdMessagingExternalUserId: getValueFromStorage(ZD_MESSAGING_EXTERNAL_USER_ID_STORAGE_KEY) || null,
|
|
@@ -17100,7 +17495,7 @@ const getInitialState = adaSettings => ({
|
|
|
17100
17495
|
// EXTERNAL MODULE: ./node_modules/lodash.memoize/index.js
|
|
17101
17496
|
var lodash_memoize = __webpack_require__(7654);
|
|
17102
17497
|
var lodash_memoize_default = /*#__PURE__*/__webpack_require__.n(lodash_memoize);
|
|
17103
|
-
;//
|
|
17498
|
+
;// ./src/services/logger/index.ts
|
|
17104
17499
|
|
|
17105
17500
|
function logger_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17106
17501
|
function logger_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? logger_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : logger_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -17143,13 +17538,13 @@ async function log(message, extra, options) {
|
|
|
17143
17538
|
service: "embed",
|
|
17144
17539
|
env: "production",
|
|
17145
17540
|
embedVersion: 2,
|
|
17146
|
-
version: "1.14.
|
|
17541
|
+
version: "1.14.5",
|
|
17147
17542
|
isNpm: true,
|
|
17148
|
-
commitHash: "
|
|
17543
|
+
commitHash: "b0ec618"
|
|
17149
17544
|
}))
|
|
17150
17545
|
});
|
|
17151
17546
|
}
|
|
17152
|
-
;//
|
|
17547
|
+
;// ./src/common/helpers/get-intro-for-url.ts
|
|
17153
17548
|
function getProcessedPath(path) {
|
|
17154
17549
|
const regex = /^http(s)?:\/\/(www.)?/;
|
|
17155
17550
|
return path.trim().replace(regex, "");
|
|
@@ -17170,7 +17565,7 @@ function doesUrlMatchPath(url, path) {
|
|
|
17170
17565
|
const matches = pathRegex.exec(processedUrl);
|
|
17171
17566
|
return matches !== null;
|
|
17172
17567
|
}
|
|
17173
|
-
;//
|
|
17568
|
+
;// ./src/common/helpers/TriggerConditionEvaluator.ts
|
|
17174
17569
|
|
|
17175
17570
|
const stripTrailingSlash = url => url.endsWith("/") ? url.slice(0, -1) : url;
|
|
17176
17571
|
const evalUrlMatchTriggerCondition = (triggerConditions, url) => {
|
|
@@ -17230,7 +17625,7 @@ const evalTriggerCondition = triggerCondition => {
|
|
|
17230
17625
|
return true;
|
|
17231
17626
|
}
|
|
17232
17627
|
};
|
|
17233
|
-
;//
|
|
17628
|
+
;// ./src/businessEvents/businessEvent.ts
|
|
17234
17629
|
|
|
17235
17630
|
function businessEvent_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17236
17631
|
function businessEvent_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? businessEvent_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : businessEvent_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -17284,7 +17679,7 @@ const getEventsToTrigger = businessEvents =>
|
|
|
17284
17679
|
* we may change this in the future
|
|
17285
17680
|
*/
|
|
17286
17681
|
businessEvents.filter(businessEvent => businessEvent.trigger_conditions.some(triggerCondition => evalTriggerCondition(triggerCondition)));
|
|
17287
|
-
;//
|
|
17682
|
+
;// ./src/common/types/languages.ts
|
|
17288
17683
|
const Languages = {
|
|
17289
17684
|
en: "en",
|
|
17290
17685
|
// English
|
|
@@ -17376,7 +17771,7 @@ const Languages = {
|
|
|
17376
17771
|
// Arabic
|
|
17377
17772
|
he: "he" // Hebrew
|
|
17378
17773
|
};
|
|
17379
|
-
;//
|
|
17774
|
+
;// ./src/common/helpers/get-browser-language.ts
|
|
17380
17775
|
|
|
17381
17776
|
const DEFAULT_LANGUAGE_CODE = "en";
|
|
17382
17777
|
const SUPPORTED_LANGUAGES = [...Object.values(Languages)];
|
|
@@ -17397,7 +17792,7 @@ const SUPPORTED_LANGUAGES = [...Object.values(Languages)];
|
|
|
17397
17792
|
function isSupportedLanguageCode(languageCode) {
|
|
17398
17793
|
return SUPPORTED_LANGUAGES.includes(languageCode);
|
|
17399
17794
|
}
|
|
17400
|
-
const
|
|
17795
|
+
const getBrowserLanguage = () => {
|
|
17401
17796
|
const browserLanguageString = (navigator.languages && navigator.languages[0] || navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage || DEFAULT_LANGUAGE_CODE).toLowerCase();
|
|
17402
17797
|
if (isSupportedLanguageCode(browserLanguageString)) {
|
|
17403
17798
|
return browserLanguageString;
|
|
@@ -17412,8 +17807,8 @@ const get_browser_language_getBrowserLanguage = () => {
|
|
|
17412
17807
|
}
|
|
17413
17808
|
return browserLanguageString;
|
|
17414
17809
|
};
|
|
17415
|
-
/* harmony default export */ var get_browser_language = (
|
|
17416
|
-
;//
|
|
17810
|
+
/* harmony default export */ var get_browser_language = (getBrowserLanguage);
|
|
17811
|
+
;// ./src/services/helpers.ts
|
|
17417
17812
|
const NO_OP_FUNCTION = () => {
|
|
17418
17813
|
// Do nothing
|
|
17419
17814
|
};
|
|
@@ -17426,7 +17821,7 @@ function isStartOptions(input) {
|
|
|
17426
17821
|
}
|
|
17427
17822
|
return typeof input.handle === "string";
|
|
17428
17823
|
}
|
|
17429
|
-
;//
|
|
17824
|
+
;// ./src/campaigns/campaign.ts
|
|
17430
17825
|
|
|
17431
17826
|
function campaign_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17432
17827
|
function campaign_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? campaign_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : campaign_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -17593,7 +17988,7 @@ const getCampaignToTrigger = (adaSettings, marketingCampaigns, options, onlyBasi
|
|
|
17593
17988
|
return conditionsMet && doesPassFrequencyCheck;
|
|
17594
17989
|
});
|
|
17595
17990
|
};
|
|
17596
|
-
;//
|
|
17991
|
+
;// ./src/common/helpers/fetch-client.ts
|
|
17597
17992
|
|
|
17598
17993
|
|
|
17599
17994
|
|
|
@@ -17651,7 +18046,7 @@ async function fetchClient(handle, cluster, domain, language) {
|
|
|
17651
18046
|
var get_own_property_symbols = __webpack_require__(913);
|
|
17652
18047
|
// EXTERNAL MODULE: ./node_modules/core-js-pure/full/instance/index-of.js
|
|
17653
18048
|
var index_of = __webpack_require__(6890);
|
|
17654
|
-
;//
|
|
18049
|
+
;// ./node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutPropertiesLoose.js
|
|
17655
18050
|
|
|
17656
18051
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
17657
18052
|
if (null == r) return {};
|
|
@@ -17663,7 +18058,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
17663
18058
|
return t;
|
|
17664
18059
|
}
|
|
17665
18060
|
|
|
17666
|
-
;//
|
|
18061
|
+
;// ./node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js
|
|
17667
18062
|
|
|
17668
18063
|
|
|
17669
18064
|
|
|
@@ -17679,7 +18074,7 @@ function _objectWithoutProperties(e, t) {
|
|
|
17679
18074
|
return i;
|
|
17680
18075
|
}
|
|
17681
18076
|
|
|
17682
|
-
;//
|
|
18077
|
+
;// ./src/common/models/client/index.ts
|
|
17683
18078
|
|
|
17684
18079
|
|
|
17685
18080
|
const _excluded = ["chat", "chat_button", "features", "handle", "language", "persistence", "privacy", "rollout", "alternative_bot", "tint", "translated_languages"];
|
|
@@ -17748,7 +18143,7 @@ function getButtonText(client) {
|
|
|
17748
18143
|
}
|
|
17749
18144
|
return buttonTextMap[languageKey];
|
|
17750
18145
|
}
|
|
17751
|
-
;//
|
|
18146
|
+
;// ./src/client/helpers/alternative-bot-rollout/index.ts
|
|
17752
18147
|
|
|
17753
18148
|
function alternative_bot_rollout_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17754
18149
|
function alternative_bot_rollout_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? alternative_bot_rollout_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : alternative_bot_rollout_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -17947,7 +18342,7 @@ async function fetchClientUsingAlternativeBotRollout(primaryBotClientObject, alt
|
|
|
17947
18342
|
}
|
|
17948
18343
|
return primaryBotClientObject;
|
|
17949
18344
|
}
|
|
17950
|
-
;//
|
|
18345
|
+
;// ./src/client/helpers/location-change/index.ts
|
|
17951
18346
|
|
|
17952
18347
|
function dispatchEvent(eventName) {
|
|
17953
18348
|
const event = createNewEvent(eventName);
|
|
@@ -17983,7 +18378,7 @@ function bindLocationChangeOverrides() {
|
|
|
17983
18378
|
function unbindLocationChangeOverrides() {
|
|
17984
18379
|
window.removeEventListener("popstate", popStateListener);
|
|
17985
18380
|
}
|
|
17986
|
-
;//
|
|
18381
|
+
;// ./src/client/helpers/rollout.ts
|
|
17987
18382
|
|
|
17988
18383
|
function rollout_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17989
18384
|
function rollout_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? rollout_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : rollout_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -18080,12 +18475,12 @@ function checkRollout(rollout, handle) {
|
|
|
18080
18475
|
warn("Unable to detemrine rollout group - defaulting to showing chat button");
|
|
18081
18476
|
return true;
|
|
18082
18477
|
}
|
|
18083
|
-
;//
|
|
18478
|
+
;// ./src/client/helpers/web-notifications/web-notification-events.ts
|
|
18084
18479
|
let WebNotificationEvents = /*#__PURE__*/function (WebNotificationEvents) {
|
|
18085
18480
|
WebNotificationEvents["NOTIFICATION_CLICK"] = "ada:web_notification:click";
|
|
18086
18481
|
return WebNotificationEvents;
|
|
18087
18482
|
}({});
|
|
18088
|
-
;//
|
|
18483
|
+
;// ./src/client/helpers/web-notifications/index.ts
|
|
18089
18484
|
|
|
18090
18485
|
function handleWebNotificationClick(data) {
|
|
18091
18486
|
if (data.type === WebNotificationEvents.NOTIFICATION_CLICK) {
|
|
@@ -18113,7 +18508,7 @@ function addServiceWorkerListeners() {
|
|
|
18113
18508
|
var object_assign = __webpack_require__(5401);
|
|
18114
18509
|
// EXTERNAL MODULE: ./node_modules/core-js-pure/full/instance/bind.js
|
|
18115
18510
|
var bind = __webpack_require__(3375);
|
|
18116
|
-
;//
|
|
18511
|
+
;// ./node_modules/@babel/runtime-corejs3/helpers/esm/extends.js
|
|
18117
18512
|
|
|
18118
18513
|
|
|
18119
18514
|
function _extends() {
|
|
@@ -18127,13 +18522,13 @@ function _extends() {
|
|
|
18127
18522
|
}, _extends.apply(null, arguments);
|
|
18128
18523
|
}
|
|
18129
18524
|
|
|
18130
|
-
;//
|
|
18525
|
+
;// ./src/common/lib/ConnectContainer/index.tsx
|
|
18131
18526
|
|
|
18132
18527
|
|
|
18133
18528
|
function ConnectContainer_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18134
18529
|
function ConnectContainer_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ConnectContainer_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ConnectContainer_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18135
18530
|
|
|
18136
|
-
class ConnectContainer extends
|
|
18531
|
+
class ConnectContainer extends d {
|
|
18137
18532
|
constructor() {
|
|
18138
18533
|
super(...arguments);
|
|
18139
18534
|
_defineProperty(this, "state", {
|
|
@@ -18181,7 +18576,7 @@ class ConnectContainer extends preact_module_d {
|
|
|
18181
18576
|
return v(WrappedComponent, _extends({}, this.props, propsFromState, propsFromDispatch));
|
|
18182
18577
|
}
|
|
18183
18578
|
}
|
|
18184
|
-
;//
|
|
18579
|
+
;// ./src/client/lib/connect.tsx
|
|
18185
18580
|
|
|
18186
18581
|
|
|
18187
18582
|
|
|
@@ -18200,15 +18595,16 @@ function connect(mapStateToProps, mapDispatchToProps) {
|
|
|
18200
18595
|
function bindActionCreators(action, dispatch) {
|
|
18201
18596
|
return payload => dispatch(action, payload);
|
|
18202
18597
|
}
|
|
18203
|
-
;//
|
|
18598
|
+
;// ./src/common/helpers/isRTL.ts
|
|
18599
|
+
/* unused harmony import specifier */ var isRTL_getBrowserLanguage;
|
|
18204
18600
|
|
|
18205
18601
|
const RTLLanguages = ["ar", "he"];
|
|
18206
18602
|
const isRTLLanguage = language => Boolean(language && RTLLanguages.includes(language)) || false;
|
|
18207
18603
|
const isRTL = (client, language) => {
|
|
18208
|
-
const rtlLanguageBool = isRTLLanguage(language) || isRTLLanguage(
|
|
18604
|
+
const rtlLanguageBool = isRTLLanguage(language) || isRTLLanguage(isRTL_getBrowserLanguage());
|
|
18209
18605
|
return rtlLanguageBool || false;
|
|
18210
18606
|
};
|
|
18211
|
-
;//
|
|
18607
|
+
;// ./src/common/helpers/getAlignment.ts
|
|
18212
18608
|
|
|
18213
18609
|
function getAlignment(adaSettings) {
|
|
18214
18610
|
const {
|
|
@@ -18220,13 +18616,13 @@ function getAlignment(adaSettings) {
|
|
|
18220
18616
|
}
|
|
18221
18617
|
return align || "right";
|
|
18222
18618
|
}
|
|
18223
|
-
;//
|
|
18619
|
+
;// ./src/common/helpers/wait.ts
|
|
18224
18620
|
function wait(ms) {
|
|
18225
18621
|
return new Promise(resolve => {
|
|
18226
18622
|
setTimeout(resolve, ms);
|
|
18227
18623
|
});
|
|
18228
18624
|
}
|
|
18229
|
-
;//
|
|
18625
|
+
;// ./src/common/types/modules.ts
|
|
18230
18626
|
const CHAT_IFRAME = "chat";
|
|
18231
18627
|
const ENTRY_SCRIPT = "entry";
|
|
18232
18628
|
const EMBED_SCRIPT = "client";
|
|
@@ -18234,7 +18630,7 @@ const INTRO_IFRAME = "intro";
|
|
|
18234
18630
|
const BUTTON_IFRAME = "button";
|
|
18235
18631
|
const MASK_IFRAME = "drawer-mask";
|
|
18236
18632
|
const XSTORAGE_IFRAME = "x-storage";
|
|
18237
|
-
;//
|
|
18633
|
+
;// ./src/frames/helpers/storage/index.ts
|
|
18238
18634
|
|
|
18239
18635
|
const PERSISTENCE_NORMAL = "normal";
|
|
18240
18636
|
const PERSISTENCE_SESSION = "session";
|
|
@@ -18266,7 +18662,7 @@ function setBrowserStorageItem(key, value, persistenceSetting) {
|
|
|
18266
18662
|
dist/* adaSessionStorage */.ad.setItem(key, value);
|
|
18267
18663
|
}
|
|
18268
18664
|
}
|
|
18269
|
-
;//
|
|
18665
|
+
;// ./src/proactiveConversations/proactiveConversation.ts
|
|
18270
18666
|
|
|
18271
18667
|
function proactiveConversation_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18272
18668
|
function proactiveConversation_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? proactiveConversation_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : proactiveConversation_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -18392,7 +18788,7 @@ function evaluateUrlTriggerConditions(conditions, url) {
|
|
|
18392
18788
|
}
|
|
18393
18789
|
return evalUrlMatchTriggerCondition(conditions, url);
|
|
18394
18790
|
}
|
|
18395
|
-
;//
|
|
18791
|
+
;// ./src/services/chat-versioning/manifest.ts
|
|
18396
18792
|
|
|
18397
18793
|
|
|
18398
18794
|
const CHAT_MANIFEST_PATH = "https://static.ada.support/chat-manifest.json";
|
|
@@ -18454,7 +18850,7 @@ const isManifest = input => {
|
|
|
18454
18850
|
}
|
|
18455
18851
|
return true;
|
|
18456
18852
|
};
|
|
18457
|
-
;//
|
|
18853
|
+
;// ./src/services/chat-versioning/index.ts
|
|
18458
18854
|
|
|
18459
18855
|
|
|
18460
18856
|
|
|
@@ -18555,14 +18951,14 @@ const getChatVersion = async adaSettings => {
|
|
|
18555
18951
|
}
|
|
18556
18952
|
return getChatVersionFromManifest(manifest);
|
|
18557
18953
|
};
|
|
18558
|
-
;//
|
|
18954
|
+
;// ./src/client/components/IFrame/index.tsx
|
|
18559
18955
|
|
|
18560
18956
|
|
|
18561
18957
|
|
|
18562
18958
|
|
|
18563
18959
|
|
|
18564
18960
|
|
|
18565
|
-
class IFrame extends
|
|
18961
|
+
class IFrame extends d {
|
|
18566
18962
|
constructor() {
|
|
18567
18963
|
super(...arguments);
|
|
18568
18964
|
_defineProperty(this, "iframeRef", y());
|
|
@@ -18702,7 +19098,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
18702
19098
|
};
|
|
18703
19099
|
}
|
|
18704
19100
|
/* harmony default export */ var components_IFrame = (connect(mapStateToProps, mapDispatchToProps)(IFrame));
|
|
18705
|
-
;//
|
|
19101
|
+
;// ./src/client/components/ButtonFrame/index.tsx
|
|
18706
19102
|
|
|
18707
19103
|
|
|
18708
19104
|
|
|
@@ -18710,7 +19106,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
18710
19106
|
|
|
18711
19107
|
|
|
18712
19108
|
|
|
18713
|
-
class ButtonFrame extends
|
|
19109
|
+
class ButtonFrame extends d {
|
|
18714
19110
|
constructor() {
|
|
18715
19111
|
super(...arguments);
|
|
18716
19112
|
_defineProperty(this, "state", {
|
|
@@ -18823,15 +19219,35 @@ function ButtonFrame_mapStateToProps(storeState) {
|
|
|
18823
19219
|
};
|
|
18824
19220
|
}
|
|
18825
19221
|
/* harmony default export */ var components_ButtonFrame = (connect(ButtonFrame_mapStateToProps)(ButtonFrame));
|
|
18826
|
-
;//
|
|
18827
|
-
|
|
19222
|
+
;// ./node_modules/preact/hooks/dist/hooks.module.js
|
|
19223
|
+
/* unused harmony import specifier */ var hooks_module_n;
|
|
19224
|
+
var hooks_module_t,hooks_module_u,hooks_module_r,hooks_module_o=0,hooks_module_i=[],hooks_module_c=n.__r,hooks_module_f=n.diffed,hooks_module_e=n.__c,hooks_module_a=n.unmount;function hooks_module_v(t,r){hooks_module_n.__h&&hooks_module_n.__h(hooks_module_u,t,hooks_module_o||r),hooks_module_o=0;var i=hooks_module_u.__H||(hooks_module_u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function hooks_module_m(n){return hooks_module_o=1,hooks_module_p(hooks_module_k,n)}function hooks_module_p(n,r,o){var i=hooks_module_v(hooks_module_t++,2);return i.t=n,i.__c||(i.__c=hooks_module_u,i.__=[o?o(r):hooks_module_k(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}]),i.__}function hooks_module_y(r,o){var i=hooks_module_v(hooks_module_t++,3);!hooks_module_n.__s&&hooks_module_j(i.__H,o)&&(i.__=r,i.__H=o,hooks_module_u.__H.__h.push(i))}function hooks_module_l(r,o){var i=hooks_module_v(hooks_module_t++,4);!hooks_module_n.__s&&hooks_module_j(i.__H,o)&&(i.__=r,i.__H=o,hooks_module_u.__h.push(i))}function hooks_module_h(n){return hooks_module_o=5,hooks_module_(function(){return{current:n}},[])}function hooks_module_s(n,t,u){hooks_module_o=6,hooks_module_l(function(){"function"==typeof n?n(t()):n&&(n.current=t())},null==u?u:u.concat(n))}function hooks_module_(n,u){var r=hooks_module_v(hooks_module_t++,7);return hooks_module_j(r.__H,u)?(r.__H=u,r.__h=n,r.__=n()):r.__}function hooks_module_A(n,t){return hooks_module_o=8,hooks_module_(function(){return n},t)}function F(n){var r=hooks_module_u.context[n.__c],o=hooks_module_v(hooks_module_t++,9);return o.__c=n,r?(null==o.__&&(o.__=!0,r.sub(hooks_module_u)),r.props.value):n.__}function hooks_module_T(t,u){hooks_module_n.useDebugValue&&hooks_module_n.useDebugValue(u?u(t):t)}function hooks_module_d(n){var r=hooks_module_v(hooks_module_t++,10),o=hooks_module_m();return r.__=n,hooks_module_u.componentDidCatch||(hooks_module_u.componentDidCatch=function(n){r.__&&r.__(n),o[1](n)}),[o[0],function(){o[1](void 0)}]}function hooks_module_q(){hooks_module_i.some(function(t){if(t.__P)try{t.__H.__h.forEach(hooks_module_b),t.__H.__h.forEach(hooks_module_g),t.__H.__h=[]}catch(u){return t.__H.__h=[],n.__e(u,t.__v),!0}}),hooks_module_i=[]}n.__r=function(n){hooks_module_c&&hooks_module_c(n),hooks_module_t=0;var r=(hooks_module_u=n.__c).__H;r&&(r.__h.forEach(hooks_module_b),r.__h.forEach(hooks_module_g),r.__h=[])},n.diffed=function(t){hooks_module_f&&hooks_module_f(t);var u=t.__c;u&&u.__H&&u.__H.__h.length&&(1!==hooks_module_i.push(u)&&hooks_module_r===n.requestAnimationFrame||((hooks_module_r=n.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),hooks_module_x&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(u,100);hooks_module_x&&(t=requestAnimationFrame(u))})(hooks_module_q))},n.__c=function(t,u){u.some(function(t){try{t.__h.forEach(hooks_module_b),t.__h=t.__h.filter(function(n){return!n.__||hooks_module_g(n)})}catch(r){u.some(function(n){n.__h&&(n.__h=[])}),u=[],n.__e(r,t.__v)}}),hooks_module_e&&hooks_module_e(t,u)},n.unmount=function(t){hooks_module_a&&hooks_module_a(t);var u=t.__c;if(u&&u.__H)try{u.__H.__.forEach(hooks_module_b)}catch(t){n.__e(t,u.__v)}};var hooks_module_x="function"==typeof requestAnimationFrame;function hooks_module_b(n){"function"==typeof n.u&&n.u()}function hooks_module_g(n){n.u=n.__()}function hooks_module_j(n,t){return!n||t.some(function(t,u){return t!==n[u]})}function hooks_module_k(n,t){return"function"==typeof t?t(n):t}
|
|
18828
19225
|
//# sourceMappingURL=hooks.module.js.map
|
|
18829
19226
|
|
|
18830
|
-
;//
|
|
18831
|
-
|
|
19227
|
+
;// ./node_modules/preact/compat/dist/compat.module.js
|
|
19228
|
+
/* unused harmony import specifier */ var compat_module_n;
|
|
19229
|
+
/* unused harmony import specifier */ var compat_module_t;
|
|
19230
|
+
/* unused harmony import specifier */ var compat_module_e;
|
|
19231
|
+
/* unused harmony import specifier */ var compat_module_r;
|
|
19232
|
+
/* unused harmony import specifier */ var compat_module_o;
|
|
19233
|
+
/* unused harmony import specifier */ var compat_module_u;
|
|
19234
|
+
/* unused harmony import specifier */ var compat_module_i;
|
|
19235
|
+
/* unused harmony import specifier */ var compat_module_f;
|
|
19236
|
+
/* unused harmony import specifier */ var compat_module_c;
|
|
19237
|
+
/* unused harmony import specifier */ var compat_module_a;
|
|
19238
|
+
/* unused harmony import specifier */ var compat_module_s;
|
|
19239
|
+
/* unused harmony import specifier */ var compat_module_h;
|
|
19240
|
+
/* unused harmony import specifier */ var compat_module_m;
|
|
19241
|
+
/* unused harmony import specifier */ var compat_module_p;
|
|
19242
|
+
/* unused harmony import specifier */ var compat_module_b;
|
|
19243
|
+
/* unused harmony import specifier */ var compat_module_d;
|
|
19244
|
+
/* unused harmony import specifier */ var compat_module_S;
|
|
19245
|
+
/* unused harmony import specifier */ var compat_module_x;
|
|
19246
|
+
/* unused harmony import specifier */ var compat_module_l;
|
|
19247
|
+
function compat_module_g(n,t){for(var e in t)n[e]=t[e];return n}function compat_module_w(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}var E=function(n){var t,e;function r(t){var e;return(e=n.call(this,t)||this).isPureReactComponent=!0,e}return e=n,(t=r).prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,r.prototype.shouldComponentUpdate=function(n,t){return compat_module_w(this.props,n)||compat_module_w(this.state,t)},r}(d);function compat_module_C(n,t){function e(n){var e=this.props.ref,r=e==n.ref;return!r&&e&&(e.call?e(null):e.current=null),t?!t(this.props,n)||!r:compat_module_w(this.props,n)}function r(t){return this.shouldComponentUpdate=e,compat_module_s(n,t)}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(n.displayName||n.name)+")",r.t=!0,r}var compat_module_=n.__b;n.__b=function(n){n.type&&n.type.t&&n.ref&&(n.props.ref=n.ref,n.ref=null),compat_module_&&compat_module_(n)};var compat_module_A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_k(n){function t(t,e){var r=compat_module_g({},t);return delete r.ref,n(r,"object"!=typeof(e=t.ref||e)||"current"in e?e:null)}return t.$$typeof=compat_module_A,t.render=t,t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var R=function(n,t){return n?compat_module_h(n).reduce(function(n,e,r){return n.concat(t(e,r))},[]):null},compat_module_F=(/* unused pure expression or super */ null && ({map:R,forEach:R,count:function(n){return n?compat_module_h(n).length:0},only:function(n){if(1!==(n=compat_module_h(n)).length)throw new Error("Children.only() expects only one child.");return n[0]},toArray:compat_module_h})),compat_module_N=n.__e;function U(n){return n&&((n=compat_module_g({},n)).__c=null,n.__k=n.__k&&n.__k.map(U)),n}function compat_module_M(){this.__u=0,this.o=null,this.__b=null}function compat_module_j(n){var t=n.__.__c;return t&&t.u&&t.u(n)}function compat_module_L(n){var t,e,r;function o(o){if(t||(t=n()).then(function(n){e=n.default||n},function(n){r=n}),r)throw r;if(!e)throw t;return compat_module_s(e,o)}return o.displayName="Lazy",o.t=!0,o}function compat_module_O(){this.i=null,this.l=null}n.__e=function(n,t,e){if(n.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return r.__c(n,t.__c);compat_module_N(n,t,e)},(compat_module_M.prototype=new d).__c=function(n,t){var e=this;null==e.o&&(e.o=[]),e.o.push(t);var r=compat_module_j(e.__v),o=!1,u=function(){o||(o=!0,r?r(i):i())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){u(),t.__c&&t.__c()};var i=function(){var n;if(!--e.__u)for(e.__v.__k[0]=e.state.u,e.setState({u:e.__b=null});n=e.o.pop();)n.forceUpdate()};e.__u++||e.setState({u:e.__b=e.__v.__k[0]}),n.then(u,u)},compat_module_M.prototype.render=function(n,t){return this.__b&&(this.__v.__k[0]=U(this.__b),this.__b=null),[v(p,null,t.u?null:n.children),t.u&&n.fallback]};var compat_module_P=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};(compat_module_O.prototype=new d).u=function(n){var t=this,e=compat_module_j(t.__v),r=t.l.get(n);return r[0]++,function(o){var u=function(){t.props.revealOrder?(r.push(o),compat_module_P(t,n,r)):o()};e?e(u):u()}},compat_module_O.prototype.render=function(n){this.i=null,this.l=new Map;var t=b(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},compat_module_O.prototype.componentDidUpdate=compat_module_O.prototype.componentDidMount=function(){var n=this;n.l.forEach(function(t,e){compat_module_P(n,e,t)})};var W=function(){function n(){}var t=n.prototype;return t.getChildContext=function(){return this.props.context},t.render=function(n){return n.children},n}();function compat_module_z(n){var t=this,e=n.container,r=v(W,{context:t.context},n.vnode);return t.s&&t.s!==e&&(t.v.parentNode&&t.s.removeChild(t.v),I(t.h),t.p=!1),n.vnode?t.p?(e.__k=t.__k,M(r,e),t.__k=e.__k):(t.v=document.createTextNode(""),O("",e),e.appendChild(t.v),t.p=!0,t.s=e,M(r,e,t.v),t.__k=t.v.__k):t.p&&(t.v.parentNode&&t.s.removeChild(t.v),I(t.h)),t.h=r,t.componentWillUnmount=function(){t.v.parentNode&&t.s.removeChild(t.v),I(t.h)},null}function D(n,t){return v(compat_module_z,{vnode:n,container:t})}var compat_module_H=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;d.prototype.isReactComponent={};var compat_module_T="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;function V(n,t,e){if(null==t.__k)for(;t.firstChild;)t.removeChild(t.firstChild);return compat_module_m(n,t),"function"==typeof e&&e(),n?n.__c:null}function Z(n,t,e){return compat_module_p(n,t),"function"==typeof e&&e(),n?n.__c:null}var compat_module_I=n.event;function compat_module_$(n,t){n["UNSAFE_"+t]&&!n[t]&&Object.defineProperty(n,t,{configurable:!1,get:function(){return this["UNSAFE_"+t]},set:function(n){this["UNSAFE_"+t]=n}})}n.event=function(n){compat_module_I&&(n=compat_module_I(n)),n.persist=function(){};var t=!1,e=!1,r=n.stopPropagation;n.stopPropagation=function(){r.call(n),t=!0};var o=n.preventDefault;return n.preventDefault=function(){o.call(n),e=!0},n.isPropagationStopped=function(){return t},n.isDefaultPrevented=function(){return e},n.nativeEvent=n};var compat_module_q={configurable:!0,get:function(){return this.class}},B=n.vnode;n.vnode=function(n){n.$$typeof=compat_module_T;var t=n.type,e=n.props;if(t){if(e.class!=e.className&&(compat_module_q.enumerable="className"in e,null!=e.className&&(e.class=e.className),Object.defineProperty(e,"className",compat_module_q)),"function"!=typeof t){var r,o,u;for(u in e.defaultValue&&void 0!==e.value&&(e.value||0===e.value||(e.value=e.defaultValue),delete e.defaultValue),Array.isArray(e.value)&&e.multiple&&"select"===t&&(b(e.children).forEach(function(n){-1!=e.value.indexOf(n.props.value)&&(n.props.selected=!0)}),delete e.value),null!=e.value&&"textarea"===t&&(e.children=e.value,delete e.value),e)if(r=compat_module_H.test(u))break;if(r)for(u in o=n.props={},e)o[compat_module_H.test(u)?u.replace(/[A-Z0-9]/,"-$&").toLowerCase():u]=e[u]}!function(t){var e=n.type,r=n.props;if(r&&"string"==typeof e){var o={};for(var u in r)/^on(Ani|Tra|Tou)/.test(u)&&(r[u.toLowerCase()]=r[u],delete r[u]),o[u.toLowerCase()]=u;if(o.ondoubleclick&&(r.ondblclick=r[o.ondoubleclick],delete r[o.ondoubleclick]),o.onbeforeinput&&(r.onbeforeinput=r[o.onbeforeinput],delete r[o.onbeforeinput]),o.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var i=o.oninput||"oninput";r[i]||(r[i]=r[o.onchange],delete r[o.onchange])}}}(),"function"==typeof t&&!t.m&&t.prototype&&(compat_module_$(t.prototype,"componentWillMount"),compat_module_$(t.prototype,"componentWillReceiveProps"),compat_module_$(t.prototype,"componentWillUpdate"),t.m=!0)}B&&B(n)};var G="16.8.0";function J(n){return compat_module_s.bind(null,n)}function K(n){return!!n&&n.$$typeof===compat_module_T}function Q(n){return K(n)?compat_module_b.apply(null,arguments):n}function X(n){return!!n.__k&&(compat_module_m(null,n),!0)}function Y(n){return n&&(n.base||1===n.nodeType&&n)||null}var nn=function(n,t){return n(t)},tn=(/* unused pure expression or super */ null && (compat_module_d));/* harmony default export */ var compat_module = ((/* unused pure expression or super */ null && ({useState:compat_module_n,useReducer:compat_module_t,useEffect:compat_module_e,useLayoutEffect:compat_module_r,useRef:compat_module_o,useImperativeHandle:compat_module_u,useMemo:compat_module_i,useCallback:compat_module_f,useContext:compat_module_c,useDebugValue:compat_module_a,version:"16.8.0",Children:compat_module_F,render:V,hydrate:Z,unmountComponentAtNode:X,createPortal:D,createElement:compat_module_s,createContext:compat_module_S,createFactory:J,cloneElement:Q,createRef:compat_module_x,Fragment:compat_module_d,isValidElement:K,findDOMNode:Y,Component:compat_module_l,PureComponent:E,memo:compat_module_C,forwardRef:compat_module_k,unstable_batchedUpdates:nn,StrictMode:compat_module_d,Suspense:compat_module_M,SuspenseList:compat_module_O,lazy:compat_module_L})));
|
|
18832
19248
|
//# sourceMappingURL=compat.module.js.map
|
|
18833
19249
|
|
|
18834
|
-
;//
|
|
19250
|
+
;// ./src/common/helpers/fetch-as-object-url.ts
|
|
18835
19251
|
async function fetchAsObjectURL(url) {
|
|
18836
19252
|
const response = await fetch(url);
|
|
18837
19253
|
if (!response.ok) {
|
|
@@ -18840,7 +19256,7 @@ async function fetchAsObjectURL(url) {
|
|
|
18840
19256
|
const blob = await response.blob();
|
|
18841
19257
|
return URL.createObjectURL(blob);
|
|
18842
19258
|
}
|
|
18843
|
-
;//
|
|
19259
|
+
;// ./src/client/components/LightboxOverlay/index.tsx
|
|
18844
19260
|
|
|
18845
19261
|
function LightboxOverlay_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18846
19262
|
function LightboxOverlay_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? LightboxOverlay_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : LightboxOverlay_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -18920,7 +19336,7 @@ const PrintIcon = () => v("svg", {
|
|
|
18920
19336
|
}, v("path", {
|
|
18921
19337
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
18922
19338
|
}));
|
|
18923
|
-
class LightboxOverlay extends
|
|
19339
|
+
class LightboxOverlay extends d {
|
|
18924
19340
|
constructor() {
|
|
18925
19341
|
super(...arguments);
|
|
18926
19342
|
_defineProperty(this, "state", {
|
|
@@ -19198,11 +19614,11 @@ class LightboxOverlay extends preact_module_d {
|
|
|
19198
19614
|
})))), document.body);
|
|
19199
19615
|
}
|
|
19200
19616
|
}
|
|
19201
|
-
;//
|
|
19617
|
+
;// ./src/common/constants/timeouts.ts
|
|
19202
19618
|
const ANIMATION_DELAY = 50;
|
|
19203
19619
|
const CHAT_FRAME_TIMEOUT_EVENT_MS = 5000;
|
|
19204
19620
|
const CHAT_FALLBACK_DELAY_MS = 10000;
|
|
19205
|
-
;//
|
|
19621
|
+
;// ./src/common/helpers/host-telemetry.ts
|
|
19206
19622
|
|
|
19207
19623
|
function host_telemetry_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19208
19624
|
function host_telemetry_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? host_telemetry_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : host_telemetry_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -19434,9 +19850,9 @@ function toMonitoringContext(hostTelemetry) {
|
|
|
19434
19850
|
mobile_version: hostTelemetry.mobileVersion
|
|
19435
19851
|
} : {});
|
|
19436
19852
|
}
|
|
19437
|
-
;//
|
|
19853
|
+
;// ./src/common/helpers/is-mobile.ts
|
|
19438
19854
|
const isMobile = /(iPhone)|(iPod)|(android)|(webOS)/i.exec(navigator.userAgent) !== null;
|
|
19439
|
-
;//
|
|
19855
|
+
;// ./src/common/helpers/programmatic-control.ts
|
|
19440
19856
|
|
|
19441
19857
|
|
|
19442
19858
|
// MES-981: privileged transcript-bearing surface is opt-in. Host pages
|
|
@@ -19462,27 +19878,79 @@ function shouldDeliverTranscriptEvent(eventKey, adaSettings) {
|
|
|
19462
19878
|
if (!TRANSCRIPT_EVENT_KEYS.has(eventKey)) return true;
|
|
19463
19879
|
return isProgrammaticControlEnabled(adaSettings);
|
|
19464
19880
|
}
|
|
19465
|
-
;//
|
|
19881
|
+
;// ./src/client/components/ChatFrame/chatFrameEvents/chatterEvent/index.ts
|
|
19882
|
+
|
|
19466
19883
|
|
|
19467
19884
|
|
|
19468
19885
|
function storeChatterEventDataInBrowser(client, payload) {
|
|
19469
|
-
|
|
19470
|
-
|
|
19471
|
-
|
|
19886
|
+
let {
|
|
19887
|
+
cluster,
|
|
19888
|
+
domain,
|
|
19889
|
+
privateMode
|
|
19890
|
+
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
19472
19891
|
const {
|
|
19473
19892
|
chatter,
|
|
19474
19893
|
created,
|
|
19475
|
-
sessionToken
|
|
19894
|
+
sessionToken,
|
|
19895
|
+
messagingAuthState
|
|
19476
19896
|
} = payload;
|
|
19897
|
+
if (privateMode) {
|
|
19898
|
+
return;
|
|
19899
|
+
}
|
|
19900
|
+
const {
|
|
19901
|
+
persistence
|
|
19902
|
+
} = client;
|
|
19903
|
+
|
|
19904
|
+
// A new chatter resets refreshGeneration back to 1, so the generation guard in
|
|
19905
|
+
// writeMessagingAuthStateToStorage would otherwise refuse to overwrite a previous
|
|
19906
|
+
// chatter's higher-generation (now-dead) auth state — leaving the host-page copy
|
|
19907
|
+
// stuck on a refresh token the backend has rotated away. Whenever the persisted
|
|
19908
|
+
// chatter token does not match the incoming one — including when it is absent or in
|
|
19909
|
+
// the other persistence provider, leaving the auth state orphaned — drop the stale
|
|
19910
|
+
// auth state first so the new chatter's credentials persist.
|
|
19911
|
+
const previousChatter = retrieveStorage(CHATTER_TOKEN_STORAGE_KEY, client, privateMode);
|
|
19912
|
+
if (previousChatter !== chatter) {
|
|
19913
|
+
clearMessagingAuthStateFromStorage({
|
|
19914
|
+
handle: client.handle,
|
|
19915
|
+
cluster,
|
|
19916
|
+
domain
|
|
19917
|
+
});
|
|
19918
|
+
}
|
|
19477
19919
|
setBrowserStorageItem(CHATTER_TOKEN_STORAGE_KEY, chatter, persistence);
|
|
19478
19920
|
setBrowserStorageItem(CHATTER_CREATED_STORAGE_KEY, created, persistence);
|
|
19479
19921
|
if (sessionToken) {
|
|
19480
19922
|
setBrowserStorageItem(SESSION_AUTH_TOKEN_STORAGE_KEY, sessionToken, persistence);
|
|
19481
19923
|
}
|
|
19924
|
+
|
|
19925
|
+
// embed-2 only PERSISTS / mirrors the chat auth state here; it is the relay that
|
|
19926
|
+
// lets the chat iframe restore the JWT (e.g. across reloads). embed-2 deliberately
|
|
19927
|
+
// never attaches `Authorization` to its own XHR requests — adding headers to
|
|
19928
|
+
// embed-2's cross-origin XHR trips CORS preflight (see common/helpers/http.ts) — so
|
|
19929
|
+
// the chat iframe, not embed-2, is what sends `Bearer <messagingToken>`.
|
|
19930
|
+
const parsedAuthState = parseMessagingAuthState(messagingAuthState);
|
|
19931
|
+
if (parsedAuthState) {
|
|
19932
|
+
writeMessagingAuthStateToStorage({
|
|
19933
|
+
handle: client.handle,
|
|
19934
|
+
cluster,
|
|
19935
|
+
domain,
|
|
19936
|
+
persistence,
|
|
19937
|
+
state: parsedAuthState
|
|
19938
|
+
});
|
|
19939
|
+
} else {
|
|
19940
|
+
// chat published no usable auth state for this chatter (e.g. it cleared a dead
|
|
19941
|
+
// refresh token on unrecoverable invalid_refresh_token). Drop the host-side copy so
|
|
19942
|
+
// a stale token can't be resurrected on reload — a null write would otherwise no-op
|
|
19943
|
+
// and leave it in place.
|
|
19944
|
+
clearMessagingAuthStateFromStorage({
|
|
19945
|
+
handle: client.handle,
|
|
19946
|
+
cluster,
|
|
19947
|
+
domain
|
|
19948
|
+
});
|
|
19949
|
+
}
|
|
19482
19950
|
}
|
|
19483
|
-
;//
|
|
19951
|
+
;// ./src/client/components/ChatFrame/chatFrameEvents/index.ts
|
|
19484
19952
|
|
|
19485
|
-
;//
|
|
19953
|
+
;// ./src/client/components/ChatFrame/fallback-html.ts
|
|
19486
19954
|
/**
|
|
19487
19955
|
* Fallback HTML shown when the chat iframe fails to load within the timeout period.
|
|
19488
19956
|
* This is a self-contained HTML page with inline styles and JavaScript.
|
|
@@ -19610,7 +20078,7 @@ const FALLBACK_HTML = `<!DOCTYPE html>
|
|
|
19610
20078
|
function getFallbackDataURI() {
|
|
19611
20079
|
return `data:text/html;charset=utf-8,${encodeURIComponent(FALLBACK_HTML)}`;
|
|
19612
20080
|
}
|
|
19613
|
-
;//
|
|
20081
|
+
;// ./src/client/components/ChatFrame/index.tsx
|
|
19614
20082
|
|
|
19615
20083
|
|
|
19616
20084
|
|
|
@@ -19657,7 +20125,7 @@ function forwardPublishEvent(publishPayload, adaSettings) {
|
|
|
19657
20125
|
}
|
|
19658
20126
|
publishEvent(eventKey, data);
|
|
19659
20127
|
}
|
|
19660
|
-
class ChatFrame extends
|
|
20128
|
+
class ChatFrame extends d {
|
|
19661
20129
|
constructor() {
|
|
19662
20130
|
super(...arguments);
|
|
19663
20131
|
_defineProperty(this, "iframeRef", y());
|
|
@@ -19706,7 +20174,7 @@ class ChatFrame extends preact_module_d {
|
|
|
19706
20174
|
log("Chat frame mount", {
|
|
19707
20175
|
handle,
|
|
19708
20176
|
chatUrl: this.url,
|
|
19709
|
-
embedVersion: "
|
|
20177
|
+
embedVersion: "b0ec618".slice(0, 7),
|
|
19710
20178
|
embedSettings: adaSettings
|
|
19711
20179
|
});
|
|
19712
20180
|
|
|
@@ -19794,7 +20262,7 @@ class ChatFrame extends preact_module_d {
|
|
|
19794
20262
|
const hostPageUrlParams = new URL(window.location.href).searchParams;
|
|
19795
20263
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
19796
20264
|
const queryParams = {
|
|
19797
|
-
embedVersion: "
|
|
20265
|
+
embedVersion: "b0ec618".slice(0, 7),
|
|
19798
20266
|
greeting,
|
|
19799
20267
|
language,
|
|
19800
20268
|
skipGreeting,
|
|
@@ -20132,12 +20600,16 @@ class ChatFrame extends preact_module_d {
|
|
|
20132
20600
|
case CHATTER_EVENT:
|
|
20133
20601
|
{
|
|
20134
20602
|
const {
|
|
20135
|
-
client
|
|
20603
|
+
client,
|
|
20604
|
+
cluster,
|
|
20605
|
+
domain,
|
|
20606
|
+
privateMode
|
|
20136
20607
|
} = this.props;
|
|
20137
20608
|
const {
|
|
20138
20609
|
chatter,
|
|
20139
20610
|
created,
|
|
20140
|
-
sessionToken
|
|
20611
|
+
sessionToken,
|
|
20612
|
+
messagingAuthState
|
|
20141
20613
|
} = payload;
|
|
20142
20614
|
const {
|
|
20143
20615
|
chatterTokenCallback
|
|
@@ -20145,14 +20617,19 @@ class ChatFrame extends preact_module_d {
|
|
|
20145
20617
|
if (!client) {
|
|
20146
20618
|
throw new AdaEmbedError("`client` is undefined");
|
|
20147
20619
|
}
|
|
20148
|
-
storeChatterEventDataInBrowser(client, payload
|
|
20620
|
+
storeChatterEventDataInBrowser(client, payload, {
|
|
20621
|
+
cluster,
|
|
20622
|
+
domain,
|
|
20623
|
+
privateMode
|
|
20624
|
+
});
|
|
20149
20625
|
if (chatterTokenCallback) {
|
|
20150
20626
|
chatterTokenCallback(chatter);
|
|
20151
20627
|
}
|
|
20152
20628
|
await setGlobalState({
|
|
20153
20629
|
chatterToken: chatter,
|
|
20154
20630
|
chatterCreated: created,
|
|
20155
|
-
sessionToken
|
|
20631
|
+
sessionToken,
|
|
20632
|
+
messagingAuthState
|
|
20156
20633
|
});
|
|
20157
20634
|
break;
|
|
20158
20635
|
}
|
|
@@ -20582,14 +21059,14 @@ function ChatFrame_mapDispatchToProps(dispatch) {
|
|
|
20582
21059
|
|
|
20583
21060
|
// eslint-disable-next-line import/no-default-export
|
|
20584
21061
|
/* harmony default export */ var components_ChatFrame = (connect(ChatFrame_mapStateToProps, ChatFrame_mapDispatchToProps)(ChatFrame));
|
|
20585
|
-
;//
|
|
21062
|
+
;// ./src/client/components/IntroFrame/index.tsx
|
|
20586
21063
|
|
|
20587
21064
|
|
|
20588
21065
|
|
|
20589
21066
|
|
|
20590
21067
|
|
|
20591
21068
|
|
|
20592
|
-
class IntroFrame extends
|
|
21069
|
+
class IntroFrame extends d {
|
|
20593
21070
|
get isShown() {
|
|
20594
21071
|
const {
|
|
20595
21072
|
isIntroShown,
|
|
@@ -20663,14 +21140,14 @@ function IntroFrame_mapStateToProps(storeState) {
|
|
|
20663
21140
|
|
|
20664
21141
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
20665
21142
|
/* harmony default export */ var components_IntroFrame = (connect(IntroFrame_mapStateToProps)(IntroFrame));
|
|
20666
|
-
;//
|
|
21143
|
+
;// ./src/client/components/MaskFrame/index.tsx
|
|
20667
21144
|
|
|
20668
21145
|
|
|
20669
21146
|
|
|
20670
21147
|
|
|
20671
21148
|
|
|
20672
21149
|
|
|
20673
|
-
class MaskFrame extends
|
|
21150
|
+
class MaskFrame extends d {
|
|
20674
21151
|
constructor() {
|
|
20675
21152
|
super(...arguments);
|
|
20676
21153
|
_defineProperty(this, "state", {
|
|
@@ -20734,13 +21211,13 @@ function MaskFrame_mapStateToProps(storeState) {
|
|
|
20734
21211
|
|
|
20735
21212
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
20736
21213
|
/* harmony default export */ var components_MaskFrame = (connect(MaskFrame_mapStateToProps)(MaskFrame));
|
|
20737
|
-
;//
|
|
21214
|
+
;// ./src/client/components/XStorageFrame/index.tsx
|
|
20738
21215
|
|
|
20739
21216
|
|
|
20740
21217
|
|
|
20741
21218
|
|
|
20742
21219
|
|
|
20743
|
-
class XStorageFrame extends
|
|
21220
|
+
class XStorageFrame extends d {
|
|
20744
21221
|
static get styles() {
|
|
20745
21222
|
return `
|
|
20746
21223
|
position: absolute;
|
|
@@ -20763,7 +21240,7 @@ class XStorageFrame extends preact_module_d {
|
|
|
20763
21240
|
}
|
|
20764
21241
|
}
|
|
20765
21242
|
/* harmony default export */ var components_XStorageFrame = (connect()(XStorageFrame));
|
|
20766
|
-
;//
|
|
21243
|
+
;// ./src/client/components/Container/host-facing-meta-fields.ts
|
|
20767
21244
|
|
|
20768
21245
|
function host_facing_meta_fields_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20769
21246
|
function host_facing_meta_fields_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? host_facing_meta_fields_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : host_facing_meta_fields_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -20783,7 +21260,7 @@ function withProactiveKey(metaFields, key) {
|
|
|
20783
21260
|
proactive_conversation: key
|
|
20784
21261
|
});
|
|
20785
21262
|
}
|
|
20786
|
-
;//
|
|
21263
|
+
;// ./src/client/components/Container/index.tsx
|
|
20787
21264
|
|
|
20788
21265
|
function Container_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20789
21266
|
function Container_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Container_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Container_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -20826,7 +21303,8 @@ function Container_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
|
20826
21303
|
|
|
20827
21304
|
|
|
20828
21305
|
|
|
20829
|
-
|
|
21306
|
+
|
|
21307
|
+
class Container extends d {
|
|
20830
21308
|
constructor() {
|
|
20831
21309
|
super(...arguments);
|
|
20832
21310
|
_defineProperty(this, "state", {
|
|
@@ -21478,11 +21956,20 @@ class Container extends preact_module_d {
|
|
|
21478
21956
|
dist/* adaSessionStorage */.ad.removeItem(CHATTER_TOKEN_STORAGE_KEY);
|
|
21479
21957
|
dist/* adaLocalStorage */.BB.removeItem(CHATTER_CREATED_STORAGE_KEY);
|
|
21480
21958
|
dist/* adaSessionStorage */.ad.removeItem(CHATTER_CREATED_STORAGE_KEY);
|
|
21959
|
+
// Scope the clear to this bot so a sibling Ada bot on the same origin keeps its
|
|
21960
|
+
// own messaging auth state. adaSettings.{handle,cluster,domain} matches the key
|
|
21961
|
+
// storeChatterEventDataInBrowser wrote under.
|
|
21962
|
+
clearMessagingAuthStateFromStorage({
|
|
21963
|
+
handle: adaSettings.handle,
|
|
21964
|
+
cluster: adaSettings.cluster,
|
|
21965
|
+
domain: adaSettings.domain
|
|
21966
|
+
});
|
|
21481
21967
|
|
|
21482
21968
|
// And from state
|
|
21483
21969
|
newState = Container_objectSpread(Container_objectSpread({}, newState), {}, {
|
|
21484
21970
|
chatterToken: undefined,
|
|
21485
|
-
chatterCreated: undefined
|
|
21971
|
+
chatterCreated: undefined,
|
|
21972
|
+
messagingAuthState: undefined
|
|
21486
21973
|
});
|
|
21487
21974
|
}
|
|
21488
21975
|
await setGlobalState(newState);
|
|
@@ -21512,11 +21999,19 @@ class Container extends preact_module_d {
|
|
|
21512
21999
|
dist/* adaSessionStorage */.ad.removeItem(CHATTER_TOKEN_STORAGE_KEY);
|
|
21513
22000
|
dist/* adaLocalStorage */.BB.removeItem(CHATTER_CREATED_STORAGE_KEY);
|
|
21514
22001
|
dist/* adaSessionStorage */.ad.removeItem(CHATTER_CREATED_STORAGE_KEY);
|
|
22002
|
+
// Scope the clear to this bot so a sibling Ada bot on the same origin keeps its
|
|
22003
|
+
// own messaging auth state (see RESET above).
|
|
22004
|
+
clearMessagingAuthStateFromStorage({
|
|
22005
|
+
handle: adaSettings.handle,
|
|
22006
|
+
cluster: adaSettings.cluster,
|
|
22007
|
+
domain: adaSettings.domain
|
|
22008
|
+
});
|
|
21515
22009
|
|
|
21516
22010
|
// And from state
|
|
21517
22011
|
await setGlobalState({
|
|
21518
22012
|
chatterToken: undefined,
|
|
21519
|
-
chatterCreated: undefined
|
|
22013
|
+
chatterCreated: undefined,
|
|
22014
|
+
messagingAuthState: undefined
|
|
21520
22015
|
});
|
|
21521
22016
|
xStorageChannel.postMessage(DELETE_HISTORY_EVENT, undefined);
|
|
21522
22017
|
localChannel.postMessage(DELETE_HISTORY_RESPONSE, null, id);
|
|
@@ -21747,6 +22242,15 @@ class Container extends preact_module_d {
|
|
|
21747
22242
|
adaSettings: Container_objectSpread(Container_objectSpread({}, adaSettings), {}, {
|
|
21748
22243
|
handle: assignedClient.handle
|
|
21749
22244
|
}),
|
|
22245
|
+
// Re-read the handle-scoped messaging auth blob under the assigned bot handle.
|
|
22246
|
+
// getInitialState read it under the original adaSettings.handle, which differs
|
|
22247
|
+
// from assignedClient.handle under alternative-bot rollout, so without this the
|
|
22248
|
+
// host-side JWT fallback would miss the assigned bot's persisted token on reload.
|
|
22249
|
+
messagingAuthState: readMessagingAuthStateFromStorage({
|
|
22250
|
+
handle: assignedClient.handle,
|
|
22251
|
+
cluster: cluster,
|
|
22252
|
+
domain
|
|
22253
|
+
}),
|
|
21750
22254
|
chatterInLiveChat
|
|
21751
22255
|
}));
|
|
21752
22256
|
} catch (e) {
|
|
@@ -21965,7 +22469,7 @@ function Container_mapDispatchToProps(dispatch) {
|
|
|
21965
22469
|
};
|
|
21966
22470
|
}
|
|
21967
22471
|
const ConnectedContainer = connect(Container_mapStateToProps, Container_mapDispatchToProps)(Container);
|
|
21968
|
-
;//
|
|
22472
|
+
;// ./src/client/embed.tsx
|
|
21969
22473
|
|
|
21970
22474
|
function embed_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21971
22475
|
function embed_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? embed_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : embed_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -22192,7 +22696,7 @@ function createEmbed(adaSettings) {
|
|
|
22192
22696
|
}
|
|
22193
22697
|
};
|
|
22194
22698
|
}
|
|
22195
|
-
;//
|
|
22699
|
+
;// ./src/common/helpers/with-timeout.ts
|
|
22196
22700
|
|
|
22197
22701
|
|
|
22198
22702
|
/**
|
|
@@ -22216,7 +22720,7 @@ function withTimeout(promise, ms, errorMessage) {
|
|
|
22216
22720
|
});
|
|
22217
22721
|
});
|
|
22218
22722
|
}
|
|
22219
|
-
;//
|
|
22723
|
+
;// ./src/interface.ts
|
|
22220
22724
|
|
|
22221
22725
|
|
|
22222
22726
|
|
|
@@ -22593,7 +23097,7 @@ function createEmbedInterface() {
|
|
|
22593
23097
|
}
|
|
22594
23098
|
});
|
|
22595
23099
|
}
|
|
22596
|
-
;//
|
|
23100
|
+
;// ./src/index-npm.ts
|
|
22597
23101
|
|
|
22598
23102
|
|
|
22599
23103
|
// We need "export default" for NPM module to be used as `import adaEmbed from "@ada-support/embed2";`
|