@lwrjs/client-modules 0.7.1 → 0.7.4
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.
|
@@ -68,9 +68,6 @@ const SymbolCtor$LWS = Symbol;
|
|
|
68
68
|
const {
|
|
69
69
|
prototype: SymbolProto$LWS
|
|
70
70
|
} = SymbolCtor$LWS;
|
|
71
|
-
const {
|
|
72
|
-
valueOf: SymbolProtoValueOf$LWS
|
|
73
|
-
} = SymbolProto$LWS;
|
|
74
71
|
const {
|
|
75
72
|
for: SymbolFor$LWS,
|
|
76
73
|
iterator: SymbolIterator$LWS,
|
|
@@ -78,25 +75,9 @@ const {
|
|
|
78
75
|
unscopables: SymbolUnscopables$LWS
|
|
79
76
|
} = SymbolCtor$LWS;
|
|
80
77
|
const {
|
|
81
|
-
toString: SymbolProtoToString$LWS
|
|
78
|
+
toString: SymbolProtoToString$LWS,
|
|
79
|
+
valueOf: SymbolProtoValueOf$LWS
|
|
82
80
|
} = SymbolProto$LWS;
|
|
83
|
-
|
|
84
|
-
function isSymbolObject$LWS(value$LWS) {
|
|
85
|
-
if (typeof value$LWS === 'object' && value$LWS !== null) {
|
|
86
|
-
try {
|
|
87
|
-
// Section 20.4.3 Properties of the Symbol Prototype Object
|
|
88
|
-
// https://tc39.es/ecma262/#thissymbolvalue
|
|
89
|
-
// Step 2: If Type(value) is Object and value has a [[SymbolData]] internal slot, then
|
|
90
|
-
// a. Let s be value.[[SymbolData]].
|
|
91
|
-
// b. Assert: Type(s) is Symbol.
|
|
92
|
-
ReflectApply$LWS(SymbolProtoValueOf$LWS, value$LWS, []);
|
|
93
|
-
return true; // eslint-disable-next-line no-empty
|
|
94
|
-
} catch (_unused$LWS) {}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
81
|
const ArrayCtor$LWS = Array;
|
|
101
82
|
const {
|
|
102
83
|
prototype: ArrayProto$LWS
|
|
@@ -168,8 +149,17 @@ function ArrayConcat$LWS(array$LWS, ...args$LWS) {
|
|
|
168
149
|
function toSafeArray$LWS(array$LWS) {
|
|
169
150
|
ReflectSetPrototypeOf$LWS(array$LWS, null);
|
|
170
151
|
array$LWS.at = ArrayProtoAt$LWS;
|
|
171
|
-
array$LWS.concat = ArrayProtoConcat$LWS;
|
|
172
|
-
|
|
152
|
+
array$LWS.concat = ArrayProtoConcat$LWS; // *** DO NOT SET THE ARRAY CONSTRUCTOR PROPERTY ***
|
|
153
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=13202
|
|
154
|
+
// https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/lookup.cc;l=196-215?q=IsArraySpeciesLookupChainIntact
|
|
155
|
+
//
|
|
156
|
+
// In V8 setting the constructor property of an array, promise, regexp, or
|
|
157
|
+
// typed array triggers a de-opt because it could change an instance's
|
|
158
|
+
// @@species. This de-opt affects at least `Array#splice` and occurs even
|
|
159
|
+
// if the prototype of the array is change or nulled beforehand. Further,
|
|
160
|
+
// the de-opt persists after a page refresh. It is not until navigating to
|
|
161
|
+
// a different page that the performance of `Array#splice` is restored.
|
|
162
|
+
|
|
173
163
|
array$LWS.copyWithin = ArrayProtoCopyWithin$LWS;
|
|
174
164
|
array$LWS.entries = ArrayProtoEntries$LWS;
|
|
175
165
|
array$LWS.every = ArrayProtoEvery$LWS;
|
|
@@ -210,63 +200,15 @@ const ArrayBufferCtor$LWS = ArrayBuffer;
|
|
|
210
200
|
const {
|
|
211
201
|
isView: ArrayBufferIsView$LWS
|
|
212
202
|
} = ArrayBufferCtor$LWS;
|
|
213
|
-
const ArrayBufferProtoByteLengthGetter$LWS = ObjectLookupOwnGetter$LWS(ArrayBufferCtor$LWS.prototype, 'byteLength');
|
|
214
|
-
|
|
215
|
-
function isArrayBuffer$LWS(value$LWS) {
|
|
216
|
-
try {
|
|
217
|
-
// Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
|
|
218
|
-
// https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.bytelength
|
|
219
|
-
// Step 2: Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
|
220
|
-
ReflectApply$LWS(ArrayBufferProtoByteLengthGetter$LWS, value$LWS, []);
|
|
221
|
-
return true; // eslint-disable-next-line no-empty
|
|
222
|
-
} catch (_unused2$LWS) {}
|
|
223
|
-
|
|
224
|
-
return false;
|
|
225
|
-
} // https://caniuse.com/bigint
|
|
226
|
-
|
|
203
|
+
const ArrayBufferProtoByteLengthGetter$LWS = ObjectLookupOwnGetter$LWS(ArrayBufferCtor$LWS.prototype, 'byteLength'); // https://caniuse.com/bigint
|
|
227
204
|
|
|
228
205
|
const SUPPORTS_BIG_INT$LWS = typeof BigInt === 'function';
|
|
229
206
|
const BigIntProtoValueOf$LWS = SUPPORTS_BIG_INT$LWS ? BigInt.prototype.valueOf :
|
|
230
207
|
/* istanbul ignore next: currently unreachable via tests */
|
|
231
208
|
undefined;
|
|
232
|
-
const isBigIntObject$LWS = SUPPORTS_BIG_INT$LWS ? function isBigIntObject$LWS(value$LWS) {
|
|
233
|
-
if (typeof value$LWS === 'object' && value$LWS !== null) {
|
|
234
|
-
try {
|
|
235
|
-
// Section 21.2.3 Properties of the BigInt Prototype Object
|
|
236
|
-
// https://tc39.es/ecma262/#thisbigintvalue
|
|
237
|
-
// Step 2: If Type(value) is Object and value has a [[BigIntData]] internal slot, then
|
|
238
|
-
// a. Assert: Type(value.[[BigIntData]]) is BigInt.
|
|
239
|
-
ReflectApply$LWS(BigIntProtoValueOf$LWS, value$LWS, []);
|
|
240
|
-
return true; // eslint-disable-next-line no-empty
|
|
241
|
-
} catch (_unused3$LWS) {}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
return false;
|
|
245
|
-
} :
|
|
246
|
-
/* istanbul ignore next: currently unreachable via tests */
|
|
247
|
-
function isBigIntObject$LWS(_value$LWS) {
|
|
248
|
-
return false;
|
|
249
|
-
};
|
|
250
209
|
const {
|
|
251
210
|
valueOf: BooleanProtoValueOf$LWS
|
|
252
211
|
} = Boolean.prototype;
|
|
253
|
-
|
|
254
|
-
function isBooleanObject$LWS(value$LWS) {
|
|
255
|
-
if (typeof value$LWS === 'object' && value$LWS !== null) {
|
|
256
|
-
try {
|
|
257
|
-
// Section 20.3.3 Properties of the Boolean Prototype Object
|
|
258
|
-
// https://tc39.es/ecma262/#thisbooleanvalue
|
|
259
|
-
// Step 2: If Type(value) is Object and value has a [[BooleanData]] internal slot, then
|
|
260
|
-
// a. Let b be value.[[BooleanData]].
|
|
261
|
-
// b. Assert: Type(b) is Boolean.
|
|
262
|
-
ReflectApply$LWS(BooleanProtoValueOf$LWS, value$LWS, []);
|
|
263
|
-
return true; // eslint-disable-next-line no-empty
|
|
264
|
-
} catch (_unused4$LWS) {}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
return false;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
212
|
const LOCKER_IDENTIFIER_MARKER$LWS = '$LWS'; // This package is bundled by third-parties that have their own build time
|
|
271
213
|
// replacement logic. Instead of customizing each build system to be aware
|
|
272
214
|
// of this package we implement a two phase debug mode by performing small
|
|
@@ -285,6 +227,7 @@ const CHAR_QUOTE_SINGLE$LWS = "'";
|
|
|
285
227
|
const SANDBOX_EVAL_CONTEXT_NAME$LWS = '$lockerEvalContext$';
|
|
286
228
|
const SANDBOX_EVAL_HELPERS_NAME$LWS = '$lockerEvalHelpers$';
|
|
287
229
|
const TO_STRING_BRAND_ARRAY$LWS = '[object Array]';
|
|
230
|
+
const TO_STRING_BRAND_ARRAY_BUFFER$LWS = '[object ArrayBuffer]';
|
|
288
231
|
const TO_STRING_BRAND_BIG_INT$LWS = '[object BigInt]';
|
|
289
232
|
const TO_STRING_BRAND_BOOLEAN$LWS = '[object Boolean]';
|
|
290
233
|
const TO_STRING_BRAND_DATE$LWS = '[object Date]';
|
|
@@ -303,29 +246,12 @@ const TO_STRING_BRAND_WEAK_SET$LWS = '[object WeakSet]';
|
|
|
303
246
|
const UNCOMPILED_LOCATION_NAME$LWS = `uncompiledLocation${LOCKER_IDENTIFIER_MARKER$LWS}`;
|
|
304
247
|
const WEBPACK_REQUIRE_NAME$LWS = '__webpack_require__';
|
|
305
248
|
const DateCtor$LWS = Date;
|
|
306
|
-
const {
|
|
307
|
-
valueOf: DateProtoValueOf$LWS
|
|
308
|
-
} = DateCtor$LWS.prototype;
|
|
309
249
|
const {
|
|
310
250
|
now: DateNow$LWS
|
|
311
251
|
} = DateCtor$LWS;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
try {
|
|
316
|
-
// Section 21.4.4 Properties of the Date Prototype Object
|
|
317
|
-
// https://tc39.es/ecma262/#thistimevalue
|
|
318
|
-
// Step 1: If Type(value) is Object and value has a [[DateValue]] internal slot, then
|
|
319
|
-
// a. Return value.[[DateValue]].
|
|
320
|
-
// Step 2: Throw a TypeError exception.
|
|
321
|
-
ReflectApply$LWS(DateProtoValueOf$LWS, value$LWS, []);
|
|
322
|
-
return true; // eslint-disable-next-line no-empty
|
|
323
|
-
} catch (_unused5$LWS) {}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
return false;
|
|
327
|
-
}
|
|
328
|
-
|
|
252
|
+
const {
|
|
253
|
+
valueOf: DateProtoValueOf$LWS
|
|
254
|
+
} = DateCtor$LWS.prototype;
|
|
329
255
|
const {
|
|
330
256
|
bind: FunctionProtoBind$LWS,
|
|
331
257
|
toString: FunctionProtoToString$LWS
|
|
@@ -349,28 +275,15 @@ const {
|
|
|
349
275
|
[SymbolIterator$LWS]: MapProtoSymbolIterator$LWS,
|
|
350
276
|
[SymbolToStringTag$LWS]: MapProtoSymbolToStringTag$LWS
|
|
351
277
|
} = MapProto$LWS;
|
|
352
|
-
const MapProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(MapProto$LWS, 'size');
|
|
353
278
|
const {
|
|
354
279
|
entries: MapProtoEntries$LWS,
|
|
355
280
|
set: MapProtoSet$LWS
|
|
356
281
|
} = MapProto$LWS;
|
|
357
|
-
|
|
358
|
-
function isMap$LWS(value$LWS) {
|
|
359
|
-
try {
|
|
360
|
-
// Section 24.1.3.10 get Map.prototype.size
|
|
361
|
-
// https://tc39.es/ecma262/#sec-get-map.prototype.size
|
|
362
|
-
// Step 2: Perform ? RequireInternalSlot(M, [[MapData]]).
|
|
363
|
-
ReflectApply$LWS(MapProtoSizeGetter$LWS, value$LWS, []);
|
|
364
|
-
return true; // eslint-disable-next-line no-empty
|
|
365
|
-
} catch (_unused6$LWS) {}
|
|
366
|
-
|
|
367
|
-
return false;
|
|
368
|
-
}
|
|
282
|
+
const MapProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(MapProto$LWS, 'size');
|
|
369
283
|
|
|
370
284
|
function toSafeMap$LWS(map$LWS) {
|
|
371
285
|
ReflectSetPrototypeOf$LWS(map$LWS, null);
|
|
372
286
|
map$LWS.clear = MapProtoClear$LWS;
|
|
373
|
-
map$LWS.constructor = MapCtor$LWS;
|
|
374
287
|
map$LWS.delete = MapProtoDelete$LWS;
|
|
375
288
|
map$LWS.entries = MapProtoEntries$LWS;
|
|
376
289
|
map$LWS.forEach = MapProtoForEach$LWS;
|
|
@@ -396,30 +309,14 @@ const NumberCtor$LWS = Number;
|
|
|
396
309
|
const {
|
|
397
310
|
prototype: NumberProto$LWS
|
|
398
311
|
} = NumberCtor$LWS;
|
|
399
|
-
const {
|
|
400
|
-
valueOf: NumberProtoValueOf$LWS
|
|
401
|
-
} = NumberProto$LWS;
|
|
402
312
|
const {
|
|
403
313
|
isFinite: NumberIsFinite$LWS,
|
|
404
314
|
isInteger: NumberIsInteger$LWS
|
|
405
315
|
} = NumberCtor$LWS;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
// Section 21.1.3 Properties of the Number Prototype Object
|
|
411
|
-
// https://tc39.es/ecma262/#thisnumbervalue
|
|
412
|
-
// Step 2: If Type(value) is Object and value has a [[NumberData]] internal slot, then
|
|
413
|
-
// a. Let n be value.[[NumberData]].
|
|
414
|
-
// b. Assert: Type(n) is Number.
|
|
415
|
-
ReflectApply$LWS(NumberProtoValueOf$LWS, value$LWS, []);
|
|
416
|
-
return true; // eslint-disable-next-line no-empty
|
|
417
|
-
} catch (_unused7$LWS) {}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
return false;
|
|
421
|
-
}
|
|
422
|
-
|
|
316
|
+
const {
|
|
317
|
+
toFixed: NumberProtoToFixed$LWS,
|
|
318
|
+
valueOf: NumberProtoValueOf$LWS
|
|
319
|
+
} = NumberProto$LWS;
|
|
423
320
|
const StringCtor$LWS = String;
|
|
424
321
|
const {
|
|
425
322
|
prototype: StringProto$LWS
|
|
@@ -490,23 +387,7 @@ function isConvertibleToString$LWS(value$LWS) {
|
|
|
490
387
|
// Section 7.1.17 ToString ( argument )
|
|
491
388
|
// https://tc39.es/ecma262/#sec-tostring
|
|
492
389
|
return `${value$LWS}` !== undefined; // eslint-disable-next-line no-empty
|
|
493
|
-
} catch (
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
return false;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
function isStringObject$LWS(value$LWS) {
|
|
500
|
-
if (typeof value$LWS === 'object' && value$LWS !== null) {
|
|
501
|
-
try {
|
|
502
|
-
// Section 22.1.3 Properties of the String Prototype Object
|
|
503
|
-
// https://tc39.es/ecma262/#thisstringvalue
|
|
504
|
-
// Step 2: If Type(value) is Object and value has a [[StringData]] internal slot, then
|
|
505
|
-
// a. Let s be value.[[StringData]].
|
|
506
|
-
// b. Assert: Type(s) is String.
|
|
507
|
-
ReflectApply$LWS(StringProtoValueOf$LWS, value$LWS, []);
|
|
508
|
-
return true; // eslint-disable-next-line no-empty
|
|
509
|
-
} catch (_unused9$LWS) {}
|
|
390
|
+
} catch (_unused$LWS) {}
|
|
510
391
|
}
|
|
511
392
|
|
|
512
393
|
return false;
|
|
@@ -551,7 +432,7 @@ function toSafeTemplateStringValue$LWS(value$LWS) {
|
|
|
551
432
|
|
|
552
433
|
|
|
553
434
|
return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty
|
|
554
|
-
} catch (
|
|
435
|
+
} catch (_unused2$LWS) {}
|
|
555
436
|
|
|
556
437
|
return '[object Unknown]';
|
|
557
438
|
}
|
|
@@ -571,23 +452,6 @@ function escapeRegExp$LWS(string$LWS) {
|
|
|
571
452
|
return ReflectApply$LWS(StringProtoReplace$LWS, string$LWS, [specialCharRegExp$LWS, '\\$&']);
|
|
572
453
|
}
|
|
573
454
|
|
|
574
|
-
function isRegExp$LWS(value$LWS) {
|
|
575
|
-
try {
|
|
576
|
-
// Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
|
|
577
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.source
|
|
578
|
-
// Step 3: If R does not have an [[OriginalSource]] internal slot, then
|
|
579
|
-
// a. If SameValue(R, %RegExp.prototype%) is true, return "(?:)".
|
|
580
|
-
// b. Otherwise, throw a TypeError exception.
|
|
581
|
-
if (value$LWS !== RegExpProto$LWS) {
|
|
582
|
-
ReflectApply$LWS(RegExpProtoSourceGetter$LWS, value$LWS, []);
|
|
583
|
-
return true;
|
|
584
|
-
} // eslint-disable-next-line no-empty
|
|
585
|
-
|
|
586
|
-
} catch (_unused11$LWS) {}
|
|
587
|
-
|
|
588
|
-
return false;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
455
|
const SetCtor$LWS = Set;
|
|
592
456
|
const {
|
|
593
457
|
prototype: SetProto$LWS
|
|
@@ -602,29 +466,16 @@ const {
|
|
|
602
466
|
[SymbolIterator$LWS]: SetProtoSymbolIterator$LWS,
|
|
603
467
|
[SymbolToStringTag$LWS]: SetProtoSymbolToStringTag$LWS
|
|
604
468
|
} = SetProto$LWS;
|
|
605
|
-
const SetProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(SetProto$LWS, 'size');
|
|
606
469
|
const {
|
|
607
470
|
add: SetProtoAdd$LWS,
|
|
608
471
|
values: SetProtoValues$LWS
|
|
609
472
|
} = SetProto$LWS;
|
|
610
|
-
|
|
611
|
-
function isSet$LWS(value$LWS) {
|
|
612
|
-
try {
|
|
613
|
-
// Section 24.2.3.9 get Set.prototype.size
|
|
614
|
-
// https://tc39.es/ecma262/#sec-get-set.prototype.size
|
|
615
|
-
// Step 2: Perform ? RequireInternalSlot(S, [[SetData]]).
|
|
616
|
-
ReflectApply$LWS(SetProtoSizeGetter$LWS, value$LWS, []);
|
|
617
|
-
return true; // eslint-disable-next-line no-empty
|
|
618
|
-
} catch (_unused12$LWS) {}
|
|
619
|
-
|
|
620
|
-
return false;
|
|
621
|
-
}
|
|
473
|
+
const SetProtoSizeGetter$LWS = ObjectLookupOwnGetter$LWS(SetProto$LWS, 'size');
|
|
622
474
|
|
|
623
475
|
function toSafeSet$LWS(set$LWS) {
|
|
624
476
|
ReflectSetPrototypeOf$LWS(set$LWS, null);
|
|
625
477
|
set$LWS.add = SetProtoAdd$LWS;
|
|
626
478
|
set$LWS.clear = SetProtoClear$LWS;
|
|
627
|
-
set$LWS.constructor = SetCtor$LWS;
|
|
628
479
|
set$LWS.delete = SetProtoDelete$LWS;
|
|
629
480
|
set$LWS.entries = SetProtoEntries$LWS;
|
|
630
481
|
set$LWS.forEach = SetProtoForEach$LWS;
|
|
@@ -648,31 +499,18 @@ const WeakMapCtor$LWS = WeakMap;
|
|
|
648
499
|
const {
|
|
649
500
|
prototype: WeakMapProto$LWS
|
|
650
501
|
} = WeakMapCtor$LWS;
|
|
502
|
+
const {
|
|
503
|
+
has: WeakMapProtoHas$LWS
|
|
504
|
+
} = WeakMapProto$LWS;
|
|
651
505
|
const {
|
|
652
506
|
delete: WeakMapProtoDelete$LWS,
|
|
653
507
|
get: WeakMapProtoGet$LWS,
|
|
654
|
-
has: WeakMapProtoHas$LWS,
|
|
655
508
|
set: WeakMapProtoSet$LWS,
|
|
656
509
|
[SymbolToStringTag$LWS]: WeakMapProtoSymbolToStringTag$LWS
|
|
657
510
|
} = WeakMapProto$LWS;
|
|
658
511
|
|
|
659
|
-
function isWeakMap$LWS(value$LWS) {
|
|
660
|
-
if (typeof value$LWS === 'object' && value$LWS !== null) {
|
|
661
|
-
try {
|
|
662
|
-
// Section 24.3.3.4 WeakMap.prototype.has ( key )
|
|
663
|
-
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
664
|
-
// Step 2: Perform ? RequireInternalSlot(M, [[WeakMapData]]).
|
|
665
|
-
ReflectApply$LWS(WeakMapProtoHas$LWS, value$LWS, []);
|
|
666
|
-
return true; // eslint-disable-next-line no-empty
|
|
667
|
-
} catch (_unused13$LWS) {}
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
return false;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
512
|
function toSafeWeakMap$LWS$1(weakMap$LWS) {
|
|
674
513
|
ReflectSetPrototypeOf$LWS(weakMap$LWS, null);
|
|
675
|
-
weakMap$LWS.constructor = WeakMapCtor$LWS;
|
|
676
514
|
weakMap$LWS.delete = WeakMapProtoDelete$LWS;
|
|
677
515
|
weakMap$LWS.get = WeakMapProtoGet$LWS;
|
|
678
516
|
weakMap$LWS.has = WeakMapProtoHas$LWS;
|
|
@@ -682,22 +520,27 @@ function toSafeWeakMap$LWS$1(weakMap$LWS) {
|
|
|
682
520
|
return weakMap$LWS;
|
|
683
521
|
}
|
|
684
522
|
|
|
523
|
+
const WeakSetCtor$LWS = WeakSet;
|
|
524
|
+
const {
|
|
525
|
+
prototype: WeakSetProto$LWS
|
|
526
|
+
} = WeakSetCtor$LWS;
|
|
685
527
|
const {
|
|
686
528
|
has: WeakSetProtoHas$LWS
|
|
687
|
-
} =
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
694
|
-
// Step 2: 2. Perform ? RequireInternalSlot(S, [[WeakSetData]]).
|
|
695
|
-
ReflectApply$LWS(WeakSetProtoHas$LWS, value$LWS, []);
|
|
696
|
-
return true; // eslint-disable-next-line no-empty
|
|
697
|
-
} catch (_unused14$LWS) {}
|
|
698
|
-
}
|
|
529
|
+
} = WeakSetProto$LWS;
|
|
530
|
+
const {
|
|
531
|
+
add: WeakSetProtoAdd$LWS,
|
|
532
|
+
delete: WeakSetProtoDelete$LWS,
|
|
533
|
+
[SymbolToStringTag$LWS]: WeakSetProtoSymbolToStringTag$LWS
|
|
534
|
+
} = WeakSetProto$LWS;
|
|
699
535
|
|
|
700
|
-
|
|
536
|
+
function toSafeWeakSet$LWS(weakSet$LWS) {
|
|
537
|
+
ReflectSetPrototypeOf$LWS(weakSet$LWS, null);
|
|
538
|
+
weakSet$LWS.add = WeakSetProtoAdd$LWS;
|
|
539
|
+
weakSet$LWS.delete = WeakSetProtoDelete$LWS;
|
|
540
|
+
weakSet$LWS.has = WeakSetProtoHas$LWS;
|
|
541
|
+
weakSet$LWS[SymbolToStringTag$LWS] = WeakSetProtoSymbolToStringTag$LWS;
|
|
542
|
+
ReflectSetPrototypeOf$LWS(weakSet$LWS, WeakSetProto$LWS);
|
|
543
|
+
return weakSet$LWS;
|
|
701
544
|
}
|
|
702
545
|
|
|
703
546
|
const {
|
|
@@ -711,53 +554,152 @@ const lineBreakRegExp$LWS = /\r\n?|\n|\u2028|\u2029/;
|
|
|
711
554
|
const skipWhiteSpacesRegExp$LWS = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
712
555
|
const stringLiteralRegExp$LWS = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
|
|
713
556
|
|
|
714
|
-
function
|
|
557
|
+
function getBrandByTrialAndError$LWS(value$LWS) {
|
|
715
558
|
// Internally these brand checks rely on native methods that throw and catch
|
|
716
559
|
// an exception when they operate on values with unexpected internal slot
|
|
717
560
|
// entries.
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
561
|
+
//
|
|
562
|
+
// Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
|
|
563
|
+
// https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.bytelength
|
|
564
|
+
// Step 2: Perform RequireInternalSlot(O, [[ArrayBufferData]]).
|
|
565
|
+
try {
|
|
566
|
+
if ('byteLength' in value$LWS) {
|
|
567
|
+
ReflectApply$LWS(ArrayBufferProtoByteLengthGetter$LWS, value$LWS, []);
|
|
568
|
+
return TO_STRING_BRAND_ARRAY_BUFFER$LWS;
|
|
569
|
+
} // eslint-disable-next-line no-empty
|
|
721
570
|
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
571
|
+
} catch (_unused3$LWS) {} // Section 21.4.4 Properties of the Date Prototype Object
|
|
572
|
+
// https://tc39.es/ecma262/#thistimevalue
|
|
573
|
+
// Step 1: If Type(value) is Object and value has a [[DateValue]] internal slot, then
|
|
574
|
+
// a. Return value.[[DateValue]].
|
|
575
|
+
// Step 2: Throw a TypeError exception.
|
|
725
576
|
|
|
726
|
-
if (isRegExp$LWS(value$LWS)) {
|
|
727
|
-
return TO_STRING_BRAND_REG_EXP$LWS;
|
|
728
|
-
}
|
|
729
577
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
578
|
+
try {
|
|
579
|
+
if ('toLocaleDateString' in value$LWS) {
|
|
580
|
+
ReflectApply$LWS(DateProtoValueOf$LWS, value$LWS, []);
|
|
581
|
+
return TO_STRING_BRAND_DATE$LWS;
|
|
582
|
+
} // eslint-disable-next-line no-empty
|
|
733
583
|
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
584
|
+
} catch (_unused4$LWS) {} // Section 24.1.3.10 get Map.prototype.size
|
|
585
|
+
// https://tc39.es/ecma262/#sec-get-map.prototype.size
|
|
586
|
+
// Step 2: Perform ? RequireInternalSlot(M, [[MapData]]).
|
|
737
587
|
|
|
738
|
-
if (isWeakSet$LWS(value$LWS)) {
|
|
739
|
-
return TO_STRING_BRAND_WEAK_SET$LWS;
|
|
740
|
-
}
|
|
741
588
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
589
|
+
try {
|
|
590
|
+
if ('get' in value$LWS && 'size' in value$LWS) {
|
|
591
|
+
ReflectApply$LWS(MapProtoSizeGetter$LWS, value$LWS, []);
|
|
592
|
+
return TO_STRING_BRAND_MAP$LWS;
|
|
593
|
+
} // eslint-disable-next-line no-empty
|
|
745
594
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
595
|
+
} catch (_unused5$LWS) {} // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
|
|
596
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.source
|
|
597
|
+
// Step 3: If R does not have an [[OriginalSource]] internal slot, then
|
|
598
|
+
// a. If SameValue(R, %RegExp.prototype%) is true, return "(?:)".
|
|
599
|
+
// b. Otherwise, throw a TypeError exception.
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
try {
|
|
603
|
+
if (ObjectHasOwn$LWS(value$LWS, 'lastIndex')) {
|
|
604
|
+
ReflectApply$LWS(RegExpProtoSourceGetter$LWS, value$LWS, []);
|
|
605
|
+
return TO_STRING_BRAND_REG_EXP$LWS;
|
|
606
|
+
} // eslint-disable-next-line no-empty
|
|
607
|
+
|
|
608
|
+
} catch (_unused6$LWS) {} // Section 24.2.3.9 get Set.prototype.size
|
|
609
|
+
// https://tc39.es/ecma262/#sec-get-set.prototype.size
|
|
610
|
+
// Step 2: Perform ? RequireInternalSlot(S, [[SetData]]).
|
|
749
611
|
|
|
750
|
-
if (isNumberObject$LWS(value$LWS)) {
|
|
751
|
-
return TO_STRING_BRAND_NUMBER$LWS;
|
|
752
|
-
}
|
|
753
612
|
|
|
754
|
-
|
|
755
|
-
|
|
613
|
+
try {
|
|
614
|
+
if ('add' in value$LWS && 'size' in value$LWS) {
|
|
615
|
+
ReflectApply$LWS(SetProtoSizeGetter$LWS, value$LWS, []);
|
|
616
|
+
return TO_STRING_BRAND_SET$LWS;
|
|
617
|
+
} // eslint-disable-next-line no-empty
|
|
618
|
+
|
|
619
|
+
} catch (_unused7$LWS) {} // Section 24.3.3.4 WeakMap.prototype.has ( key )
|
|
620
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
621
|
+
// Step 2: Perform RequireInternalSlot(M, [[WeakMapData]]).
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
try {
|
|
625
|
+
if ('get' in value$LWS && !('size' in value$LWS)) {
|
|
626
|
+
ReflectApply$LWS(WeakMapProtoHas$LWS, value$LWS, []);
|
|
627
|
+
return TO_STRING_BRAND_WEAK_MAP$LWS;
|
|
628
|
+
} // eslint-disable-next-line no-empty
|
|
629
|
+
|
|
630
|
+
} catch (_unused8$LWS) {} // Section 24.4.3.4 WeakSet.prototype.has ( value )
|
|
631
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
632
|
+
// Step 2: 2. Perform RequireInternalSlot(S, [[WeakSetData]]).
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
try {
|
|
636
|
+
if ('add' in value$LWS && !('size' in value$LWS)) {
|
|
637
|
+
ReflectApply$LWS(WeakSetProtoHas$LWS, value$LWS, []);
|
|
638
|
+
return TO_STRING_BRAND_WEAK_SET$LWS;
|
|
639
|
+
} // eslint-disable-next-line no-empty
|
|
640
|
+
|
|
641
|
+
} catch (_unused9$LWS) {} // Section 21.1.3 Properties of the Number Prototype Object
|
|
642
|
+
// https://tc39.es/ecma262/#thisnumbervalue
|
|
643
|
+
// Step 2: If Type(value) is Object and value has a [[NumberData]] internal slot, then
|
|
644
|
+
// a. Let n be value.[[NumberData]].
|
|
645
|
+
// b. Assert: Type(n) is Number.
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
try {
|
|
649
|
+
if ('toPrecision' in value$LWS) {
|
|
650
|
+
ReflectApply$LWS(NumberProtoValueOf$LWS, value$LWS, []);
|
|
651
|
+
return TO_STRING_BRAND_NUMBER$LWS;
|
|
652
|
+
} // eslint-disable-next-line no-empty
|
|
653
|
+
|
|
654
|
+
} catch (_unused10$LWS) {} // Section 22.1.3 Properties of the String Prototype Object
|
|
655
|
+
// https://tc39.es/ecma262/#thisstringvalue
|
|
656
|
+
// Step 2: If Type(value) is Object and value has a [[StringData]] internal slot, then
|
|
657
|
+
// a. Let s be value.[[StringData]].
|
|
658
|
+
// b. Assert: Type(s) is String.
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
try {
|
|
662
|
+
if (ObjectHasOwn$LWS(value$LWS, 'length')) {
|
|
663
|
+
ReflectApply$LWS(StringProtoValueOf$LWS, value$LWS, []);
|
|
664
|
+
return TO_STRING_BRAND_STRING$LWS;
|
|
665
|
+
} // eslint-disable-next-line no-empty
|
|
666
|
+
|
|
667
|
+
} catch (_unused11$LWS) {} // Section 20.4.3 Properties of the Symbol Prototype Object
|
|
668
|
+
// https://tc39.es/ecma262/#thissymbolvalue
|
|
669
|
+
// Step 2: If Type(value) is Object and value has a [[SymbolData]] internal slot, then
|
|
670
|
+
// a. Let s be value.[[SymbolData]].
|
|
671
|
+
// b. Assert: Type(s) is Symbol.
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
try {
|
|
675
|
+
if ('description' in value$LWS) {
|
|
676
|
+
ReflectApply$LWS(SymbolProtoValueOf$LWS, value$LWS, []);
|
|
677
|
+
return TO_STRING_BRAND_SYMBOL$LWS;
|
|
678
|
+
} // eslint-disable-next-line no-empty
|
|
679
|
+
|
|
680
|
+
} catch (_unused12$LWS) {} // istanbul ignore else: All platforms that LWS runs tests in support BigInt
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
if (SUPPORTS_BIG_INT$LWS) {
|
|
684
|
+
try {
|
|
685
|
+
// Section 21.2.3 Properties of the BigInt Prototype Object
|
|
686
|
+
// https://tc39.es/ecma262/#thisbigintvalue
|
|
687
|
+
// Step 2: If Type(value) is Object and value has a [[BigIntData]] internal slot, then
|
|
688
|
+
// a. Assert: Type(value.[[BigIntData]]) is BigInt.
|
|
689
|
+
ReflectApply$LWS(BigIntProtoValueOf$LWS, value$LWS, []);
|
|
690
|
+
return TO_STRING_BRAND_BIG_INT$LWS; // eslint-disable-next-line no-empty
|
|
691
|
+
} catch (_unused13$LWS) {}
|
|
756
692
|
}
|
|
757
693
|
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
694
|
+
try {
|
|
695
|
+
// Section 20.3.3 Properties of the Boolean Prototype Object
|
|
696
|
+
// https://tc39.es/ecma262/#thisbooleanvalue
|
|
697
|
+
// Step 2: If Type(value) is Object and value has a [[BooleanData]] internal slot, then
|
|
698
|
+
// a. Let b be value.[[BooleanData]].
|
|
699
|
+
// b. Assert: Type(b) is Boolean.
|
|
700
|
+
ReflectApply$LWS(BooleanProtoValueOf$LWS, value$LWS, []);
|
|
701
|
+
return TO_STRING_BRAND_BOOLEAN$LWS; // eslint-disable-next-line no-empty
|
|
702
|
+
} catch (_unused14$LWS) {} // Cannot detect brands for Arguments and Error objects.
|
|
761
703
|
|
|
762
704
|
|
|
763
705
|
return TO_STRING_BRAND_OBJECT$LWS;
|
|
@@ -799,7 +741,7 @@ function getBrand$LWS(value$LWS) {
|
|
|
799
741
|
return TO_STRING_BRAND_ARRAY$LWS;
|
|
800
742
|
}
|
|
801
743
|
|
|
802
|
-
return TO_STRING_TAG_SYMBOL$LWS in value$LWS ?
|
|
744
|
+
return TO_STRING_TAG_SYMBOL$LWS in value$LWS ? getBrandByTrialAndError$LWS(value$LWS) : ReflectApply$LWS(ObjectProtoToString$LWS, value$LWS, []);
|
|
803
745
|
}
|
|
804
746
|
|
|
805
747
|
const getTimestamp$LWS = typeof performance === 'undefined' ?
|
|
@@ -896,40 +838,90 @@ const {
|
|
|
896
838
|
const LOCKER_LIVE_VALUE_SYMBOL$LWS = SymbolFor$LWS('@@lockerLiveValue'); // This is used by packages/locker-core-engine/src/LockerFilter.js
|
|
897
839
|
|
|
898
840
|
function isLiveObject$LWS(value$LWS) {
|
|
899
|
-
|
|
900
|
-
return false;
|
|
901
|
-
} // Based on the isTargetLive() function of
|
|
841
|
+
// Based on the isTargetLive() function of
|
|
902
842
|
// salesforce/near-membrane/packages/near-membrane-base/src/membrane.ts.
|
|
843
|
+
if (value$LWS === null || value$LWS === undefined || value$LWS === ObjectProto$LWS || value$LWS === RegExpProto$LWS) {
|
|
844
|
+
return false;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
if (typeof value$LWS === 'function') {
|
|
848
|
+
try {
|
|
849
|
+
return ObjectHasOwn$LWS(value$LWS, LOCKER_LIVE_VALUE_SYMBOL$LWS); // eslint-disable-next-line no-empty
|
|
850
|
+
} catch (_unused15$LWS) {}
|
|
903
851
|
|
|
852
|
+
return false;
|
|
853
|
+
}
|
|
904
854
|
|
|
905
855
|
if (typeof value$LWS === 'object') {
|
|
906
|
-
|
|
907
|
-
constructor: constructor$LWS
|
|
908
|
-
} = value$LWS;
|
|
856
|
+
let constructor$LWS;
|
|
909
857
|
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}
|
|
858
|
+
try {
|
|
859
|
+
({
|
|
860
|
+
constructor: constructor$LWS
|
|
861
|
+
} = value$LWS);
|
|
915
862
|
|
|
916
|
-
|
|
863
|
+
if (constructor$LWS === ObjectCtor$LWS) {
|
|
864
|
+
// If the constructor, own or inherited, points to `Object`
|
|
865
|
+
// then `value` is not likely a prototype object.
|
|
866
|
+
return true;
|
|
867
|
+
} // eslint-disable-next-line no-empty
|
|
917
868
|
|
|
918
|
-
|
|
919
|
-
// Ensure `value` is not an `Object.prototype` from an iframe.
|
|
920
|
-
result$LWS = typeof constructor$LWS !== 'function' || constructor$LWS.prototype !== value$LWS;
|
|
921
|
-
}
|
|
869
|
+
} catch (_unused16$LWS) {}
|
|
922
870
|
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
871
|
+
try {
|
|
872
|
+
if (ObjectHasOwn$LWS(value$LWS, LOCKER_LIVE_VALUE_SYMBOL$LWS)) {
|
|
873
|
+
return true;
|
|
874
|
+
} // eslint-disable-next-line no-empty
|
|
875
|
+
|
|
876
|
+
} catch (_unused17$LWS) {}
|
|
877
|
+
|
|
878
|
+
try {
|
|
879
|
+
if (ReflectGetPrototypeOf$LWS(value$LWS) === null && ( // Ensure `value` is not an `Object.prototype` from an iframe.
|
|
880
|
+
typeof constructor$LWS !== 'function' || constructor$LWS.prototype !== value$LWS)) {
|
|
881
|
+
return true;
|
|
882
|
+
} // eslint-disable-next-line no-empty
|
|
883
|
+
|
|
884
|
+
} catch (_unused18$LWS) {}
|
|
926
885
|
|
|
927
|
-
|
|
928
|
-
|
|
886
|
+
try {
|
|
887
|
+
if (ArrayIsArray$LWS(value$LWS)) {
|
|
888
|
+
return true;
|
|
889
|
+
}
|
|
890
|
+
} catch (_unused19$LWS) {
|
|
891
|
+
// The value is a revoked proxy.
|
|
892
|
+
return false;
|
|
929
893
|
}
|
|
894
|
+
|
|
895
|
+
if (ArrayBufferIsView$LWS(value$LWS)) {
|
|
896
|
+
return true;
|
|
897
|
+
} // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
|
|
898
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.source
|
|
899
|
+
// Step 3: If R does not have an [[OriginalSource]] internal slot, then
|
|
900
|
+
// a. If SameValue(R, %RegExp.prototype%) is true, return "(?:)".
|
|
901
|
+
// b. Otherwise, throw a TypeError exception.
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
try {
|
|
905
|
+
if (ObjectHasOwn$LWS(value$LWS, 'lastIndex')) {
|
|
906
|
+
ReflectApply$LWS(RegExpProtoSourceGetter$LWS, value$LWS, []);
|
|
907
|
+
return true;
|
|
908
|
+
} // eslint-disable-next-line no-empty
|
|
909
|
+
|
|
910
|
+
} catch (_unused20$LWS) {} // Section 25.1.5.1 get ArrayBuffer.prototype.byteLength
|
|
911
|
+
// https://tc39.es/ecma262/#sec-get-arraybuffer.prototype.bytelength
|
|
912
|
+
// Step 2: Perform RequireInternalSlot(O, [[ArrayBufferData]]).
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
try {
|
|
916
|
+
if ('byteLength' in value$LWS) {
|
|
917
|
+
ReflectApply$LWS(ArrayBufferProtoByteLengthGetter$LWS, value$LWS, []);
|
|
918
|
+
return true;
|
|
919
|
+
} // eslint-disable-next-line no-empty
|
|
920
|
+
|
|
921
|
+
} catch (_unused21$LWS) {}
|
|
930
922
|
}
|
|
931
923
|
|
|
932
|
-
return
|
|
924
|
+
return false;
|
|
933
925
|
}
|
|
934
926
|
|
|
935
927
|
function markLiveObject$LWS(target$LWS) {
|
|
@@ -990,10 +982,13 @@ function isNearMembrane$LWS(value$LWS) {
|
|
|
990
982
|
return false;
|
|
991
983
|
}
|
|
992
984
|
|
|
985
|
+
const PromiseCtor$LWS = Promise;
|
|
993
986
|
const {
|
|
987
|
+
catch: PromiseProtoCatch$LWS,
|
|
994
988
|
then: PromiseProtoThen$LWS
|
|
995
|
-
} =
|
|
996
|
-
const
|
|
989
|
+
} = PromiseCtor$LWS.prototype;
|
|
990
|
+
const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
|
|
991
|
+
const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
|
|
997
992
|
const ProxyCtor$LWS = Proxy;
|
|
998
993
|
const {
|
|
999
994
|
revocable: ProxyRevocable$LWS
|
|
@@ -1006,7 +1001,7 @@ function createRevokedProxy$LWS(object$LWS) {
|
|
|
1006
1001
|
revocable$LWS.revoke();
|
|
1007
1002
|
return revocable$LWS.proxy;
|
|
1008
1003
|
}
|
|
1009
|
-
/*! version: 0.16.
|
|
1004
|
+
/*! version: 0.16.25 */
|
|
1010
1005
|
|
|
1011
1006
|
/*!
|
|
1012
1007
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -1039,19 +1034,6 @@ const DocumentProtoDefaultViewGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentPro
|
|
|
1039
1034
|
const DocumentProtoDocumentElementGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'documentElement');
|
|
1040
1035
|
const DocumentProtoHeadGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'head');
|
|
1041
1036
|
const DocumentProtoImplementationGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'implementation');
|
|
1042
|
-
|
|
1043
|
-
function getDocumentDefaultView$LWS(value$LWS) {
|
|
1044
|
-
if (typeof value$LWS === 'object' && value$LWS !== null && 'defaultView' in value$LWS) {
|
|
1045
|
-
// Slower check that must certainly detect a document object.
|
|
1046
|
-
try {
|
|
1047
|
-
// This will throw if "value" is not an instance of Document
|
|
1048
|
-
return ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, value$LWS, []); // eslint-disable-next-line no-empty
|
|
1049
|
-
} catch (_unused$LWS) {}
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
return null;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
1037
|
const {
|
|
1056
1038
|
prototype: ElementProto$LWS
|
|
1057
1039
|
} = Element;
|
|
@@ -1087,7 +1069,51 @@ const NodeProtoChildNodesGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, '
|
|
|
1087
1069
|
const NodeProtoFirstChildGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'firstChild');
|
|
1088
1070
|
const NodeProtoNodeNameGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'nodeName');
|
|
1089
1071
|
const NodeProtoOwnerDocumentGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'ownerDocument');
|
|
1090
|
-
|
|
1072
|
+
/* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
|
|
1073
|
+
|
|
1074
|
+
class Validator$LWS {
|
|
1075
|
+
constructor(record$LWS) {
|
|
1076
|
+
this.isEqualDomString = (leftString$LWS, rightString$LWS) => {
|
|
1077
|
+
ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.left, [leftString$LWS]);
|
|
1078
|
+
ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.right, [rightString$LWS]);
|
|
1079
|
+
return deepIsEqualNode$LWS(this._templates.left, this._templates.right);
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
this.isSharedElement = element$LWS => element$LWS === ReflectApply$LWS(DocumentProtoHeadGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoBodyGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoDocumentElementGetter$LWS, this._document, []);
|
|
1083
|
+
|
|
1084
|
+
this.isAllowedSharedElementChild = element$LWS => element$LWS instanceof this._constructors.HTMLLinkElement || element$LWS instanceof this._constructors.HTMLScriptElement;
|
|
1085
|
+
|
|
1086
|
+
this.isMediaSourceObject = object$LWS => // MediaSource may not be defined in some browsers
|
|
1087
|
+
this._constructors.MediaSource && object$LWS instanceof this._constructors.MediaSource;
|
|
1088
|
+
|
|
1089
|
+
const {
|
|
1090
|
+
document: document$LWS,
|
|
1091
|
+
globalObject: {
|
|
1092
|
+
HTMLLinkElement: HTMLLinkElement$LWS,
|
|
1093
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
1094
|
+
MediaSource: MediaSource$LWS
|
|
1095
|
+
}
|
|
1096
|
+
} = record$LWS;
|
|
1097
|
+
this._constructors = {
|
|
1098
|
+
HTMLLinkElement: HTMLLinkElement$LWS,
|
|
1099
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
1100
|
+
MediaSource: MediaSource$LWS
|
|
1101
|
+
};
|
|
1102
|
+
this._document = document$LWS;
|
|
1103
|
+
this._templates = {
|
|
1104
|
+
left: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template']),
|
|
1105
|
+
right: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template'])
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
const topValidator$LWS = new Validator$LWS( // Mock sandbox record.
|
|
1112
|
+
{
|
|
1113
|
+
document,
|
|
1114
|
+
globalObject: window
|
|
1115
|
+
});
|
|
1116
|
+
const documentToValidatorMap$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS([[document, topValidator$LWS]]));
|
|
1091
1117
|
const documentPattern$LWS = 'document';
|
|
1092
1118
|
const windowPattern$LWS = 'document\\.defaultView|frames|globalThis|self|window';
|
|
1093
1119
|
const webpackGlobalPattern$LWS = `${windowPattern$LWS}|global`;
|
|
@@ -1118,83 +1144,57 @@ function deepIsEqualNode$LWS(leftRoot$LWS, rightRoot$LWS) {
|
|
|
1118
1144
|
|
|
1119
1145
|
for (let i$LWS = 0; i$LWS < childCount$LWS; i$LWS += 1) {
|
|
1120
1146
|
if (deepIsEqualNode$LWS(leftChildNodes$LWS[i$LWS], rightChildNodes$LWS[i$LWS]) === false) {
|
|
1121
|
-
return false;
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
return true;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
return false;
|
|
1130
|
-
}
|
|
1131
|
-
/* eslint no-underscore-dangle: ['error',{allowAfterThis:true}] */
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
class Validator$LWS {
|
|
1135
|
-
constructor(globalObject$LWS) {
|
|
1136
|
-
this.isEqualDomString = (leftString$LWS, rightString$LWS) => {
|
|
1137
|
-
ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.left, [leftString$LWS]);
|
|
1138
|
-
ReflectApply$LWS(ElementProtoInnerHTMLSetter$LWS, this._templates.right, [rightString$LWS]);
|
|
1139
|
-
return deepIsEqualNode$LWS(this._templates.left, this._templates.right);
|
|
1140
|
-
};
|
|
1141
|
-
|
|
1142
|
-
this.isSharedElement = element$LWS => element$LWS === ReflectApply$LWS(DocumentProtoHeadGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoBodyGetter$LWS, this._document, []) || element$LWS === ReflectApply$LWS(DocumentProtoDocumentElementGetter$LWS, this._document, []);
|
|
1147
|
+
return false;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1143
1151
|
|
|
1144
|
-
|
|
1152
|
+
return true;
|
|
1153
|
+
}
|
|
1145
1154
|
|
|
1146
|
-
|
|
1147
|
-
|
|
1155
|
+
return false;
|
|
1156
|
+
}
|
|
1148
1157
|
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
MediaSource: MediaSource$LWS
|
|
1154
|
-
} = globalObject$LWS;
|
|
1155
|
-
this._constructors = {
|
|
1156
|
-
HTMLLinkElement: HTMLLinkElement$LWS,
|
|
1157
|
-
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
1158
|
-
MediaSource: MediaSource$LWS
|
|
1159
|
-
};
|
|
1160
|
-
this._document = document$LWS;
|
|
1161
|
-
this._templates = {
|
|
1162
|
-
left: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template']),
|
|
1163
|
-
right: ReflectApply$LWS(DocumentProtoCreateElement$LWS, this._document, ['template'])
|
|
1164
|
-
};
|
|
1158
|
+
function getValidator$LWS(record$LWS) {
|
|
1159
|
+
// Fast path validator lookup for top level window.
|
|
1160
|
+
if (record$LWS === undefined || record$LWS.globalObject === window) {
|
|
1161
|
+
return topValidator$LWS;
|
|
1165
1162
|
}
|
|
1166
1163
|
|
|
1167
|
-
|
|
1164
|
+
const {
|
|
1165
|
+
document: document$LWS
|
|
1166
|
+
} = record$LWS; // Use the `document` as the key because a window object maintains its identity
|
|
1167
|
+
// continuity when its location changes and while the non-configurable document
|
|
1168
|
+
// property does not.
|
|
1168
1169
|
|
|
1169
|
-
|
|
1170
|
-
let validator$LWS = globalObjectToValidatorMap$LWS.get(globalObject$LWS);
|
|
1170
|
+
let validator$LWS = documentToValidatorMap$LWS.get(document$LWS);
|
|
1171
1171
|
|
|
1172
1172
|
if (validator$LWS === undefined) {
|
|
1173
|
-
validator$LWS = new Validator$LWS(
|
|
1174
|
-
|
|
1173
|
+
validator$LWS = new Validator$LWS(record$LWS);
|
|
1174
|
+
documentToValidatorMap$LWS.set(document$LWS, validator$LWS);
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
1177
|
return validator$LWS;
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
|
-
function
|
|
1181
|
-
// To avoid conflicts with anyone else using SANDBOX_EVAL_CONTEXT_NAME
|
|
1182
|
-
// we sniff the source
|
|
1180
|
+
function transformUncompiledSourceText$LWS(sourceText$LWS) {
|
|
1181
|
+
// To avoid conflicts with anyone else using `SANDBOX_EVAL_CONTEXT_NAME`,
|
|
1182
|
+
// we sniff the source text to see if it is present, and in that case we
|
|
1183
1183
|
// don't proceed with the string replacement.
|
|
1184
|
-
if (ReflectApply$LWS(RegExpProtoTest$LWS, sandboxEvalContextNameRegExp$LWS, [
|
|
1185
|
-
return
|
|
1184
|
+
if (ReflectApply$LWS(RegExpProtoTest$LWS, sandboxEvalContextNameRegExp$LWS, [sourceText$LWS])) {
|
|
1185
|
+
return sourceText$LWS;
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
|
-
const destructuredBlueHelpers$LWS = []; // Input `
|
|
1188
|
+
const destructuredBlueHelpers$LWS = []; // Input `sourceText` is uncompiled, so `window.location` returns `null` inside
|
|
1189
1189
|
// the detached iframe sandbox. Our compiler solves this problem by transforming
|
|
1190
1190
|
// the red `location` reference into a blue `location` reference. The solution
|
|
1191
1191
|
// below emulates what our compiler does, but using a simple string replacement.
|
|
1192
1192
|
|
|
1193
1193
|
let locationTransformed$LWS = false;
|
|
1194
|
-
|
|
1194
|
+
sourceText$LWS = ReflectApply$LWS(StringProtoReplace$LWS, sourceText$LWS, [// RegExp.prototype[Symbol.replace] resets the lastIndex of global
|
|
1195
1195
|
// regexp to 0.
|
|
1196
1196
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1197
|
-
ReflectApply$LWS(RegExpProtoTest$LWS, webpackRequireNameRegExp$LWS, [
|
|
1197
|
+
ReflectApply$LWS(RegExpProtoTest$LWS, webpackRequireNameRegExp$LWS, [sourceText$LWS]) ? locationReferencesWithWebPackRegExp$LWS : locationReferencesRegExp$LWS, (_match$LWS, assignmentOperator$LWS) => {
|
|
1198
1198
|
locationTransformed$LWS = true;
|
|
1199
1199
|
return assignmentOperator$LWS ? `${UNCOMPILED_LOCATION_NAME$LWS}.href${assignmentOperator$LWS}` : UNCOMPILED_LOCATION_NAME$LWS;
|
|
1200
1200
|
}]);
|
|
@@ -1204,26 +1204,26 @@ function transformUncompiledSource$LWS(source$LWS) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
if (!destructuredBlueHelpers$LWS.length) {
|
|
1207
|
-
return
|
|
1207
|
+
return sourceText$LWS;
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
const destructureSandboxEvalContextSnippet$LWS = `const {
|
|
1211
1211
|
${ReflectApply$LWS(ArrayProtoJoin$LWS, destructuredBlueHelpers$LWS, [','])}} = ${SANDBOX_EVAL_CONTEXT_NAME$LWS};`;
|
|
1212
|
-
const pragmaIndex$LWS = indexOfPragma$LWS(
|
|
1212
|
+
const pragmaIndex$LWS = indexOfPragma$LWS(sourceText$LWS, 'use strict');
|
|
1213
1213
|
|
|
1214
1214
|
if (pragmaIndex$LWS === -1) {
|
|
1215
|
-
return destructureSandboxEvalContextSnippet$LWS +
|
|
1215
|
+
return destructureSandboxEvalContextSnippet$LWS + sourceText$LWS;
|
|
1216
1216
|
} // The "use strict" pragma, including quotes, is 12 characters long.
|
|
1217
1217
|
|
|
1218
1218
|
|
|
1219
1219
|
let afterPragmaIndex$LWS = pragmaIndex$LWS + 12; // istanbul ignore else
|
|
1220
1220
|
|
|
1221
|
-
if (afterPragmaIndex$LWS <
|
|
1221
|
+
if (afterPragmaIndex$LWS < sourceText$LWS.length && sourceText$LWS[afterPragmaIndex$LWS] === ';') {
|
|
1222
1222
|
// Move index after the semicolon.
|
|
1223
1223
|
afterPragmaIndex$LWS += 1;
|
|
1224
1224
|
}
|
|
1225
1225
|
|
|
1226
|
-
return ReflectApply$LWS(StringProtoSlice$LWS,
|
|
1226
|
+
return ReflectApply$LWS(StringProtoSlice$LWS, sourceText$LWS, [0, afterPragmaIndex$LWS]) + destructureSandboxEvalContextSnippet$LWS + ReflectApply$LWS(StringProtoSlice$LWS, sourceText$LWS, [afterPragmaIndex$LWS]);
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
1229
|
const BlobCtor$LWS = Blob;
|
|
@@ -1542,15 +1542,14 @@ function partialStructuredClone$LWS(value$LWS) {
|
|
|
1542
1542
|
|
|
1543
1543
|
try {
|
|
1544
1544
|
result$LWS = partialStructuredCloneInternal$LWS(value$LWS); // eslint-disable-next-line no-empty
|
|
1545
|
-
} catch (
|
|
1545
|
+
} catch (_unused$LWS) {}
|
|
1546
1546
|
|
|
1547
1547
|
SEEN_OBJECTS_MAP$LWS.clear();
|
|
1548
1548
|
return result$LWS;
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
1551
1551
|
const {
|
|
1552
|
-
getElementById: DocumentFragmentProtoGetElementById$LWS
|
|
1553
|
-
querySelector: DocumentFragmentProtoQuerySelector$LWS
|
|
1552
|
+
getElementById: DocumentFragmentProtoGetElementById$LWS
|
|
1554
1553
|
} = DocumentFragment.prototype;
|
|
1555
1554
|
const {
|
|
1556
1555
|
createDocument: DOMImplementationProtoCreateDocument$LWS
|
|
@@ -1585,7 +1584,10 @@ const SVGElementProtoDatasetGetter$LWS = ObjectLookupOwnGetter$LWS(SVGElement.pr
|
|
|
1585
1584
|
const {
|
|
1586
1585
|
createObjectURL: URLCreateObjectURL$LWS,
|
|
1587
1586
|
revokeObjectURL: URLRevokeObjectURL$LWS
|
|
1588
|
-
} = URL;
|
|
1587
|
+
} = URL;
|
|
1588
|
+
const {
|
|
1589
|
+
setTimeout: WindowSetTimeout$LWS
|
|
1590
|
+
} = window; // These properties are part of the WindowOrGlobalScope mixin and not on
|
|
1589
1591
|
// Window.prototype.
|
|
1590
1592
|
// https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope
|
|
1591
1593
|
|
|
@@ -1595,11 +1597,35 @@ const {
|
|
|
1595
1597
|
encodeURIComponent: WindowEncodeURIComponent$LWS,
|
|
1596
1598
|
setInterval: WindowSetInterval$LWS
|
|
1597
1599
|
} = window;
|
|
1600
|
+
|
|
1601
|
+
const WindowQueueMicrotask$LWS = (() => {
|
|
1602
|
+
const {
|
|
1603
|
+
queueMicrotask: queueMicrotask$LWS
|
|
1604
|
+
} = window; // istanbul ignore else
|
|
1605
|
+
|
|
1606
|
+
if (typeof queueMicrotask$LWS === 'function') {
|
|
1607
|
+
return queueMicrotask$LWS;
|
|
1608
|
+
} // Edge 15 does not support `queueMicrotask()`.
|
|
1609
|
+
// https://caniuse.com/mdn-api_queuemicrotask
|
|
1610
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask#when_queuemicrotask_isnt_available
|
|
1611
|
+
// istanbul ignore next: coverage is not measured in Edge 15, which means this whole fallback is considered "uncovered" when the tests are run in Chrome.
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
return function queueMicrotask$LWS(callback$LWS) {
|
|
1615
|
+
let promise$LWS = PromiseResolve$LWS();
|
|
1616
|
+
promise$LWS = ReflectApply$LWS(PromiseProtoThen$LWS, promise$LWS, [callback$LWS]);
|
|
1617
|
+
ReflectApply$LWS(PromiseProtoCatch$LWS, promise$LWS, [error => WindowSetTimeout$LWS(() => {
|
|
1618
|
+
throw error;
|
|
1619
|
+
}, 0)]);
|
|
1620
|
+
};
|
|
1621
|
+
})();
|
|
1622
|
+
|
|
1623
|
+
const WindowDocumentGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'document');
|
|
1624
|
+
const WindowFrameElementGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'frameElement');
|
|
1598
1625
|
const WindowLengthGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'length');
|
|
1599
|
-
const WindowSelfGetter$LWS = ObjectLookupOwnGetter$LWS(window, 'self');
|
|
1600
1626
|
|
|
1601
1627
|
function isWindow$LWS(value$LWS) {
|
|
1602
|
-
if (typeof value$LWS === 'object' && value$LWS !== null && ObjectHasOwn$LWS(value$LWS, '
|
|
1628
|
+
if (typeof value$LWS === 'object' && value$LWS !== null && ObjectHasOwn$LWS(value$LWS, 'window') && value$LWS.window === value$LWS) {
|
|
1603
1629
|
// Slower check that must certainly detect a window object.
|
|
1604
1630
|
try {
|
|
1605
1631
|
// window.self getter only works for a window object, otherwise it
|
|
@@ -1610,9 +1636,9 @@ function isWindow$LWS(value$LWS) {
|
|
|
1610
1636
|
// equivalent to window.frames, and here is the very simple spec for
|
|
1611
1637
|
// this getter:
|
|
1612
1638
|
// https://html.spec.whatwg.org/multipage/window-object.html#dom-self
|
|
1613
|
-
ReflectApply$LWS(
|
|
1639
|
+
ReflectApply$LWS(WindowDocumentGetter$LWS, value$LWS, []);
|
|
1614
1640
|
return true; // eslint-disable-next-line no-empty
|
|
1615
|
-
} catch (
|
|
1641
|
+
} catch (_unused2$LWS) {}
|
|
1616
1642
|
}
|
|
1617
1643
|
|
|
1618
1644
|
return false;
|
|
@@ -1633,7 +1659,7 @@ const {
|
|
|
1633
1659
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'responseText');
|
|
1634
1660
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS(XhrProto$LWS, 'status');
|
|
1635
1661
|
const XhrProtoWithCredentialsSetter$LWS = ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
1636
|
-
/*! version: 0.16.
|
|
1662
|
+
/*! version: 0.16.25 */
|
|
1637
1663
|
|
|
1638
1664
|
/*!
|
|
1639
1665
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -1700,7 +1726,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
|
|
|
1700
1726
|
function sanitizeURLString$LWS(urlString$LWS) {
|
|
1701
1727
|
return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
|
|
1702
1728
|
}
|
|
1703
|
-
/*! version: 0.16.
|
|
1729
|
+
/*! version: 0.16.25 */
|
|
1704
1730
|
|
|
1705
1731
|
/*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
|
|
1706
1732
|
|
|
@@ -3220,9 +3246,8 @@ const SANITIZER_HOOKS_REGISTRY$LWS = {
|
|
|
3220
3246
|
__proto__: null,
|
|
3221
3247
|
uponSanitizeAttribute: sanitizeHrefAttributeHook$LWS
|
|
3222
3248
|
};
|
|
3223
|
-
const
|
|
3224
|
-
const
|
|
3225
|
-
const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, docRef$LWS, ['a']); // Queue for managing pending xhr requests.
|
|
3249
|
+
const htmlTemplate$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['template']);
|
|
3250
|
+
const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['a']); // Queue for managing pending xhr requests.
|
|
3226
3251
|
|
|
3227
3252
|
const queue$LWS = toSafeSet$LWS(new SetCtor$LWS()); // A regexp to find all non lowercase alphanumeric.
|
|
3228
3253
|
|
|
@@ -3244,10 +3269,10 @@ function checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS) {
|
|
|
3244
3269
|
}
|
|
3245
3270
|
|
|
3246
3271
|
function createUrlContainer$LWS(url$LWS) {
|
|
3247
|
-
const container$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS,
|
|
3272
|
+
const container$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['div']);
|
|
3248
3273
|
ReflectApply$LWS(ElementProtoSetAttribute$LWS, container$LWS, ['style', 'display:none']);
|
|
3249
3274
|
ReflectApply$LWS(ElementProtoSetAttribute$LWS, container$LWS, ['id', url$LWS]);
|
|
3250
|
-
const body$LWS = ReflectApply$LWS(DocumentProtoBodyGetter$LWS,
|
|
3275
|
+
const body$LWS = ReflectApply$LWS(DocumentProtoBodyGetter$LWS, document, []);
|
|
3251
3276
|
ReflectApply$LWS(NodeProtoAppendChild$LWS, body$LWS, [container$LWS]);
|
|
3252
3277
|
return container$LWS;
|
|
3253
3278
|
}
|
|
@@ -3375,7 +3400,7 @@ function sanitizeSvgHref$LWS(url$LWS) {
|
|
|
3375
3400
|
const normalizedHref$LWS = parseHref$LWS(urlAsString$LWS); // Sanitize only for supported URL_SCHEMES_LIST.
|
|
3376
3401
|
|
|
3377
3402
|
if (URL_SCHEMES_LIST$LWS.includes(normalizedHref$LWS.protocol)) {
|
|
3378
|
-
const container$LWS = ReflectApply$LWS(DocumentProtoGetElementById$LWS,
|
|
3403
|
+
const container$LWS = ReflectApply$LWS(DocumentProtoGetElementById$LWS, document, [normalizedHref$LWS.normalizedUrl]); // Have we sanitized this URL already?
|
|
3379
3404
|
|
|
3380
3405
|
if (container$LWS && normalizedHref$LWS.normalizedFragment) {
|
|
3381
3406
|
checkExistingAndDequeue$LWS(container$LWS, normalizedHref$LWS);
|
|
@@ -3396,7 +3421,7 @@ function createSvgContainer$LWS(ownerDoc$LWS) {
|
|
|
3396
3421
|
}
|
|
3397
3422
|
|
|
3398
3423
|
function sanitizeSvgInnerHtml$LWS(stringOrSvg$LWS, dirty$LWS = '') {
|
|
3399
|
-
const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ?
|
|
3424
|
+
const ownerDoc$LWS = typeof stringOrSvg$LWS === 'string' ? document : ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, stringOrSvg$LWS, []);
|
|
3400
3425
|
let container$LWS;
|
|
3401
3426
|
|
|
3402
3427
|
if (typeof stringOrSvg$LWS === 'string') {
|
|
@@ -3420,31 +3445,33 @@ function sanitizeSvgTextReturnDOM$LWS(dirty$LWS) {
|
|
|
3420
3445
|
const sanitizer$LWS = svgSanitizer$LWS();
|
|
3421
3446
|
return sanitizer$LWS.sanitize(dirty$LWS);
|
|
3422
3447
|
}
|
|
3423
|
-
/*! version: 0.16.
|
|
3448
|
+
/*! version: 0.16.25 */
|
|
3424
3449
|
|
|
3425
3450
|
/*!
|
|
3426
3451
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
3427
3452
|
*/
|
|
3428
3453
|
const CustomElementRegistryBlockedProperties$LWS = ObjectFreeze$LWS(['define']);
|
|
3429
|
-
const
|
|
3454
|
+
const documentToSandboxAttributeDistortionRegistry$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS());
|
|
3455
|
+
const recordToAttributeDistortionFactories$LWS = toSafeMap$LWS(new MapCtor$LWS());
|
|
3430
3456
|
|
|
3431
|
-
function getAttributeDistortion$LWS(
|
|
3432
|
-
const
|
|
3457
|
+
function getAttributeDistortion$LWS(record$LWS, element$LWS, attrName$LWS, attributeNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
|
|
3458
|
+
const {
|
|
3459
|
+
document: document$LWS,
|
|
3460
|
+
key: key$LWS
|
|
3461
|
+
} = record$LWS;
|
|
3462
|
+
const sandboxAttributeDistortionRegistry$LWS = documentToSandboxAttributeDistortionRegistry$LWS.get(document$LWS); // istanbul ignore if: currently unreachable via tests
|
|
3433
3463
|
|
|
3434
|
-
if (
|
|
3464
|
+
if (sandboxAttributeDistortionRegistry$LWS === undefined) {
|
|
3435
3465
|
return undefined;
|
|
3436
3466
|
}
|
|
3437
3467
|
|
|
3438
|
-
const
|
|
3439
|
-
registry: attributeDistortionRegistryBySandboxKeyRegistry$LWS
|
|
3440
|
-
} = distortionData$LWS;
|
|
3441
|
-
const attributeDistortionRegistry$LWS = attributeDistortionRegistryBySandboxKeyRegistry$LWS[key$LWS]; // istanbul ignore if: currently unreachable via tests
|
|
3468
|
+
const attributeDistortionRegistry$LWS = sandboxAttributeDistortionRegistry$LWS[key$LWS]; // istanbul ignore if: currently unreachable via tests
|
|
3442
3469
|
|
|
3443
3470
|
if (attributeDistortionRegistry$LWS === undefined) {
|
|
3444
3471
|
return undefined;
|
|
3445
3472
|
}
|
|
3446
3473
|
|
|
3447
|
-
const elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[ReflectApply$LWS(StringProtoToLowerCase$LWS,
|
|
3474
|
+
const elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[ReflectApply$LWS(StringProtoToLowerCase$LWS, attrName$LWS, [])];
|
|
3448
3475
|
|
|
3449
3476
|
if (elementCtorMapByAttributeNamespaceRegistry$LWS === undefined) {
|
|
3450
3477
|
return undefined;
|
|
@@ -3456,8 +3483,7 @@ function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attr
|
|
|
3456
3483
|
return undefined;
|
|
3457
3484
|
}
|
|
3458
3485
|
|
|
3459
|
-
const mapIterator$LWS = elementCtorMap$LWS.entries();
|
|
3460
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
3486
|
+
const mapIterator$LWS = elementCtorMap$LWS.entries();
|
|
3461
3487
|
|
|
3462
3488
|
for (const {
|
|
3463
3489
|
0: Ctor$LWS,
|
|
@@ -3473,31 +3499,43 @@ function getAttributeDistortion$LWS(globalObject$LWS, key$LWS, element$LWS, attr
|
|
|
3473
3499
|
return undefined;
|
|
3474
3500
|
}
|
|
3475
3501
|
|
|
3476
|
-
function
|
|
3477
|
-
const
|
|
3502
|
+
function createAttributeDistortions$LWS(record$LWS, entries$LWS = []) {
|
|
3503
|
+
const factories$LWS = recordToAttributeDistortionFactories$LWS.get(record$LWS); // istanbul ignore else: currently unreachable via tests
|
|
3478
3504
|
|
|
3479
|
-
if (
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3505
|
+
if (factories$LWS === undefined) {
|
|
3506
|
+
return entries$LWS;
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
recordToAttributeDistortionFactories$LWS.delete(record$LWS);
|
|
3510
|
+
const {
|
|
3511
|
+
document: document$LWS,
|
|
3512
|
+
key: key$LWS
|
|
3513
|
+
} = record$LWS;
|
|
3514
|
+
let sandboxAttributeDistortionRegistry$LWS = documentToSandboxAttributeDistortionRegistry$LWS.get(document$LWS);
|
|
3515
|
+
|
|
3516
|
+
if (sandboxAttributeDistortionRegistry$LWS === undefined) {
|
|
3517
|
+
sandboxAttributeDistortionRegistry$LWS = {
|
|
3485
3518
|
__proto__: null
|
|
3486
3519
|
};
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
length: entriesOffset$LWS
|
|
3490
|
-
} = entries$LWS;
|
|
3520
|
+
documentToSandboxAttributeDistortionRegistry$LWS.set(document$LWS, sandboxAttributeDistortionRegistry$LWS);
|
|
3521
|
+
}
|
|
3491
3522
|
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3523
|
+
const attributeDistortionRegistry$LWS = {
|
|
3524
|
+
__proto__: null
|
|
3525
|
+
};
|
|
3526
|
+
sandboxAttributeDistortionRegistry$LWS[key$LWS] = attributeDistortionRegistry$LWS;
|
|
3527
|
+
let {
|
|
3528
|
+
length: entriesOffset$LWS
|
|
3529
|
+
} = entries$LWS;
|
|
3497
3530
|
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3531
|
+
for (let i$LWS = 0, {
|
|
3532
|
+
length: length$LWS
|
|
3533
|
+
} = factories$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
3534
|
+
const factory$LWS = factories$LWS[i$LWS];
|
|
3535
|
+
const entry$LWS = factory$LWS(attributeDistortionRegistry$LWS); // istanbul ignore if: currently unreachable via tests
|
|
3536
|
+
|
|
3537
|
+
if (entry$LWS) {
|
|
3538
|
+
entries$LWS[entriesOffset$LWS++] = entry$LWS;
|
|
3501
3539
|
}
|
|
3502
3540
|
}
|
|
3503
3541
|
|
|
@@ -3511,23 +3549,15 @@ function normalizeNamespace$LWS(ns$LWS) {
|
|
|
3511
3549
|
return ns$LWS === null || ns$LWS === undefined || ns$LWS === '' ? NAMESPACE_DEFAULT$LWS : ns$LWS;
|
|
3512
3550
|
}
|
|
3513
3551
|
|
|
3514
|
-
function registerElementSetDistortion$LWS(
|
|
3515
|
-
let
|
|
3552
|
+
function registerElementSetDistortion$LWS(record$LWS, ElementCtor$LWS, attributeName$LWS, attributeNamespace$LWS, distortion$LWS) {
|
|
3553
|
+
let factories$LWS = recordToAttributeDistortionFactories$LWS.get(record$LWS);
|
|
3516
3554
|
|
|
3517
|
-
if (
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
registry: {
|
|
3521
|
-
__proto__: null
|
|
3522
|
-
}
|
|
3523
|
-
};
|
|
3524
|
-
globalObjectToDistortionData$LWS.set(globalObject$LWS, distortionData$LWS);
|
|
3555
|
+
if (factories$LWS === undefined) {
|
|
3556
|
+
factories$LWS = [];
|
|
3557
|
+
recordToAttributeDistortionFactories$LWS.set(record$LWS, factories$LWS);
|
|
3525
3558
|
}
|
|
3526
3559
|
|
|
3527
3560
|
const loweredAttributeName$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, attributeName$LWS, []);
|
|
3528
|
-
const {
|
|
3529
|
-
factories: factories$LWS
|
|
3530
|
-
} = distortionData$LWS;
|
|
3531
3561
|
|
|
3532
3562
|
factories$LWS[factories$LWS.length] = attributeDistortionRegistry$LWS => {
|
|
3533
3563
|
let elementCtorMapByAttributeNamespaceRegistry$LWS = attributeDistortionRegistry$LWS[loweredAttributeName$LWS];
|
|
@@ -3551,13 +3581,12 @@ function registerElementSetDistortion$LWS(globalObject$LWS, ElementCtor$LWS, att
|
|
|
3551
3581
|
};
|
|
3552
3582
|
}
|
|
3553
3583
|
|
|
3554
|
-
function distortionAttrValueSetter$LWS(
|
|
3555
|
-
const {
|
|
3556
|
-
key: key$LWS
|
|
3557
|
-
} = options$LWS;
|
|
3584
|
+
function distortionAttrValueSetter$LWS(record$LWS) {
|
|
3558
3585
|
const {
|
|
3559
|
-
|
|
3560
|
-
|
|
3586
|
+
globalObject: {
|
|
3587
|
+
Attr: Attr$LWS
|
|
3588
|
+
}
|
|
3589
|
+
} = record$LWS;
|
|
3561
3590
|
const originalAttrValueSetter$LWS = ObjectLookupOwnSetter$LWS(Attr$LWS.prototype, 'value');
|
|
3562
3591
|
|
|
3563
3592
|
function value$LWS(val$LWS) {
|
|
@@ -3567,7 +3596,7 @@ function distortionAttrValueSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
3567
3596
|
const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, this, []);
|
|
3568
3597
|
const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, this, []);
|
|
3569
3598
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
3570
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
3599
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerElement$LWS, attrName$LWS, normalizedNamespace$LWS);
|
|
3571
3600
|
/* istanbul ignore if: coverage missing, needs investigation */
|
|
3572
3601
|
|
|
3573
3602
|
if (distortion$LWS) {
|
|
@@ -3582,24 +3611,26 @@ function distortionAttrValueSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
3582
3611
|
return [originalAttrValueSetter$LWS, value$LWS];
|
|
3583
3612
|
}
|
|
3584
3613
|
|
|
3585
|
-
function distortionAuraUtilGlobalEval$LWS(
|
|
3614
|
+
function distortionAuraUtilGlobalEval$LWS(record$LWS) {
|
|
3586
3615
|
var _globalObject$aura$LWS, _globalObject$aura$ut$LWS;
|
|
3587
3616
|
|
|
3588
|
-
// istanbul ignore next:
|
|
3617
|
+
// istanbul ignore next: external is the default sandbox type for coverage runs and this distortion is internal only
|
|
3618
|
+
const {
|
|
3619
|
+
UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
|
|
3620
|
+
globalObject: globalObject$LWS,
|
|
3621
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
3622
|
+
} = record$LWS; // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
|
|
3623
|
+
|
|
3589
3624
|
const originalGlobalEval$LWS = (_globalObject$aura$LWS = globalObject$LWS.aura) == null ? void 0 : (_globalObject$aura$ut$LWS = _globalObject$aura$LWS.util) == null ? void 0 : _globalObject$aura$ut$LWS.globalEval; // istanbul ignore else: external is the default sandbox type for coverage runs
|
|
3590
3625
|
|
|
3591
3626
|
if (typeof originalGlobalEval$LWS !== 'function') {
|
|
3592
3627
|
return null;
|
|
3593
|
-
} //
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
const {
|
|
3597
|
-
evaluator: evaluator$LWS
|
|
3598
|
-
} = options$LWS; // Based on Aura.Utils.Util.prototype.globalEval from the aura/aura repository.
|
|
3628
|
+
} // Based on Aura.Utils.Util.prototype.globalEval from the aura/aura repository.
|
|
3599
3629
|
// istanbul ignore next: external is the default sandbox type for coverage runs and this distortion is internal only
|
|
3600
3630
|
|
|
3601
|
-
|
|
3602
|
-
|
|
3631
|
+
|
|
3632
|
+
const globalEval$LWS = function globalEval$LWS(sourceText$LWS, descriptor$LWS, type$LWS) {
|
|
3633
|
+
let wrappedSourceText$LWS = `(function s(){return(${sourceText$LWS})})()`;
|
|
3603
3634
|
|
|
3604
3635
|
if (typeof descriptor$LWS === 'string') {
|
|
3605
3636
|
const split$LWS = ReflectApply$LWS(StringProtoSplit$LWS, descriptor$LWS, ['://']);
|
|
@@ -3607,10 +3638,10 @@ function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
|
|
|
3607
3638
|
length: length$LWS
|
|
3608
3639
|
} = split$LWS;
|
|
3609
3640
|
const name$LWS = length$LWS ? split$LWS[split$LWS.length - 1] : '';
|
|
3610
|
-
|
|
3641
|
+
wrappedSourceText$LWS += this.sourceComment + (type$LWS === 'lib' ? `/libraries/${ReflectApply$LWS(StringProtoReplace$LWS, name$LWS, ['.', '/'])}` : `/components/${ReflectApply$LWS(StringProtoReplace$LWS, name$LWS, [':', '/'])}.js`);
|
|
3611
3642
|
}
|
|
3612
3643
|
|
|
3613
|
-
return
|
|
3644
|
+
return sandboxEvaluator$LWS(transformUncompiledSourceText$LWS(wrappedSourceText$LWS), UNCOMPILED_CONTEXT$LWS);
|
|
3614
3645
|
}; // istanbul ignore next: external is the default sandbox type for coverage runs and this distortion is internal only
|
|
3615
3646
|
|
|
3616
3647
|
|
|
@@ -3619,12 +3650,15 @@ function distortionAuraUtilGlobalEval$LWS(globalObject$LWS, options$LWS) {
|
|
|
3619
3650
|
/* istanbul ignore next: only available in secure context */
|
|
3620
3651
|
|
|
3621
3652
|
|
|
3622
|
-
function distortionCacheStorageDelete$LWS(
|
|
3653
|
+
function distortionCacheStorageDelete$LWS(record$LWS) {
|
|
3623
3654
|
var _CacheStorage$prototy$LWS;
|
|
3624
3655
|
|
|
3625
3656
|
const {
|
|
3626
|
-
|
|
3627
|
-
|
|
3657
|
+
globalObject: {
|
|
3658
|
+
CacheStorage: CacheStorage$LWS
|
|
3659
|
+
},
|
|
3660
|
+
key: key$LWS
|
|
3661
|
+
} = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
3628
3662
|
|
|
3629
3663
|
const originalDelete$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy$LWS.delete;
|
|
3630
3664
|
|
|
@@ -3632,10 +3666,6 @@ function distortionCacheStorageDelete$LWS(globalObject$LWS, options$LWS) {
|
|
|
3632
3666
|
return null;
|
|
3633
3667
|
}
|
|
3634
3668
|
|
|
3635
|
-
const {
|
|
3636
|
-
key: key$LWS
|
|
3637
|
-
} = options$LWS;
|
|
3638
|
-
|
|
3639
3669
|
const patchedDelete$LWS = function patchedDelete$LWS(...args$LWS) {
|
|
3640
3670
|
if (args$LWS.length) {
|
|
3641
3671
|
const {
|
|
@@ -3655,12 +3685,15 @@ function distortionCacheStorageDelete$LWS(globalObject$LWS, options$LWS) {
|
|
|
3655
3685
|
/* istanbul ignore next: only available in secure context */
|
|
3656
3686
|
|
|
3657
3687
|
|
|
3658
|
-
function distortionCacheStorageHas$LWS(
|
|
3688
|
+
function distortionCacheStorageHas$LWS(record$LWS) {
|
|
3659
3689
|
var _CacheStorage$prototy2$LWS;
|
|
3660
3690
|
|
|
3661
3691
|
const {
|
|
3662
|
-
|
|
3663
|
-
|
|
3692
|
+
globalObject: {
|
|
3693
|
+
CacheStorage: CacheStorage$LWS
|
|
3694
|
+
},
|
|
3695
|
+
key: key$LWS
|
|
3696
|
+
} = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
3664
3697
|
|
|
3665
3698
|
const originalHas$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy2$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy2$LWS.has;
|
|
3666
3699
|
|
|
@@ -3668,10 +3701,6 @@ function distortionCacheStorageHas$LWS(globalObject$LWS, options$LWS) {
|
|
|
3668
3701
|
return null;
|
|
3669
3702
|
}
|
|
3670
3703
|
|
|
3671
|
-
const {
|
|
3672
|
-
key: key$LWS
|
|
3673
|
-
} = options$LWS;
|
|
3674
|
-
|
|
3675
3704
|
const has$LWS = function has$LWS(...args$LWS) {
|
|
3676
3705
|
if (args$LWS.length) {
|
|
3677
3706
|
const {
|
|
@@ -3691,12 +3720,15 @@ function distortionCacheStorageHas$LWS(globalObject$LWS, options$LWS) {
|
|
|
3691
3720
|
/* istanbul ignore next: only available in secure context */
|
|
3692
3721
|
|
|
3693
3722
|
|
|
3694
|
-
function distortionCacheStorageKeys$LWS(
|
|
3723
|
+
function distortionCacheStorageKeys$LWS(record$LWS) {
|
|
3695
3724
|
var _CacheStorage$prototy3$LWS;
|
|
3696
3725
|
|
|
3697
3726
|
const {
|
|
3698
|
-
|
|
3699
|
-
|
|
3727
|
+
globalObject: {
|
|
3728
|
+
CacheStorage: CacheStorage$LWS
|
|
3729
|
+
},
|
|
3730
|
+
key: key$LWS
|
|
3731
|
+
} = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
3700
3732
|
|
|
3701
3733
|
const originalKeys$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy3$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy3$LWS.keys;
|
|
3702
3734
|
|
|
@@ -3704,10 +3736,6 @@ function distortionCacheStorageKeys$LWS(globalObject$LWS, options$LWS) {
|
|
|
3704
3736
|
return null;
|
|
3705
3737
|
}
|
|
3706
3738
|
|
|
3707
|
-
const {
|
|
3708
|
-
key: key$LWS
|
|
3709
|
-
} = options$LWS;
|
|
3710
|
-
|
|
3711
3739
|
const keys$LWS = function keys$LWS() {
|
|
3712
3740
|
const keysResultPromise$LWS = ReflectApply$LWS(originalKeys$LWS, this, []);
|
|
3713
3741
|
return ReflectApply$LWS(PromiseProtoThen$LWS, keysResultPromise$LWS, [result$LWS => {
|
|
@@ -3732,12 +3760,15 @@ function distortionCacheStorageKeys$LWS(globalObject$LWS, options$LWS) {
|
|
|
3732
3760
|
/* istanbul ignore next: only available in secure context */
|
|
3733
3761
|
|
|
3734
3762
|
|
|
3735
|
-
function distortionCacheStorageMatch$LWS(
|
|
3763
|
+
function distortionCacheStorageMatch$LWS(record$LWS) {
|
|
3736
3764
|
var _CacheStorage$prototy4$LWS;
|
|
3737
3765
|
|
|
3738
3766
|
const {
|
|
3739
|
-
|
|
3740
|
-
|
|
3767
|
+
globalObject: {
|
|
3768
|
+
CacheStorage: CacheStorage$LWS
|
|
3769
|
+
},
|
|
3770
|
+
key: key$LWS
|
|
3771
|
+
} = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
3741
3772
|
|
|
3742
3773
|
const originalMatch$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy4$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy4$LWS.match;
|
|
3743
3774
|
|
|
@@ -3745,10 +3776,6 @@ function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
|
|
|
3745
3776
|
return null;
|
|
3746
3777
|
}
|
|
3747
3778
|
|
|
3748
|
-
const {
|
|
3749
|
-
key: key$LWS
|
|
3750
|
-
} = options$LWS;
|
|
3751
|
-
|
|
3752
3779
|
const match$LWS = function match$LWS( // @ts-ignore: Prevent 'TS1003: Identifier expected' error.
|
|
3753
3780
|
...args$LWS) {
|
|
3754
3781
|
const {
|
|
@@ -3770,7 +3797,7 @@ function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
|
|
|
3770
3797
|
} = matchOptions$LWS;
|
|
3771
3798
|
|
|
3772
3799
|
if (isConvertibleToString$LWS(cacheName$LWS)) {
|
|
3773
|
-
const clonedOptions$LWS = shallowCloneOptions$LWS(
|
|
3800
|
+
const clonedOptions$LWS = shallowCloneOptions$LWS(matchOptions$LWS);
|
|
3774
3801
|
clonedOptions$LWS.cacheName = prefixNamespace$LWS(cacheName$LWS, key$LWS);
|
|
3775
3802
|
args$LWS[1] = clonedOptions$LWS;
|
|
3776
3803
|
return ReflectApply$LWS(originalMatch$LWS, this, args$LWS);
|
|
@@ -3785,12 +3812,15 @@ function distortionCacheStorageMatch$LWS(globalObject$LWS, options$LWS) {
|
|
|
3785
3812
|
/* istanbul ignore next: only available in secure context */
|
|
3786
3813
|
|
|
3787
3814
|
|
|
3788
|
-
function distortionCacheStorageOpen$LWS(
|
|
3815
|
+
function distortionCacheStorageOpen$LWS(record$LWS) {
|
|
3789
3816
|
var _CacheStorage$prototy5$LWS;
|
|
3790
3817
|
|
|
3791
3818
|
const {
|
|
3792
|
-
|
|
3793
|
-
|
|
3819
|
+
globalObject: {
|
|
3820
|
+
CacheStorage: CacheStorage$LWS
|
|
3821
|
+
},
|
|
3822
|
+
key: key$LWS
|
|
3823
|
+
} = record$LWS; // Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
3794
3824
|
|
|
3795
3825
|
const originalOpen$LWS = CacheStorage$LWS == null ? void 0 : (_CacheStorage$prototy5$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy5$LWS.open;
|
|
3796
3826
|
|
|
@@ -3798,10 +3828,6 @@ function distortionCacheStorageOpen$LWS(globalObject$LWS, options$LWS) {
|
|
|
3798
3828
|
return null;
|
|
3799
3829
|
}
|
|
3800
3830
|
|
|
3801
|
-
const {
|
|
3802
|
-
key: key$LWS
|
|
3803
|
-
} = options$LWS;
|
|
3804
|
-
|
|
3805
3831
|
const open$LWS = function open$LWS(...args$LWS) {
|
|
3806
3832
|
if (args$LWS.length) {
|
|
3807
3833
|
const {
|
|
@@ -3852,22 +3878,21 @@ function unprefixCookie$LWS(cookieEntry$LWS, key$LWS) {
|
|
|
3852
3878
|
/* istanbul ignore next: only available in secure context */
|
|
3853
3879
|
|
|
3854
3880
|
|
|
3855
|
-
function distortionCookieStoreDelete$LWS(
|
|
3881
|
+
function distortionCookieStoreDelete$LWS(record$LWS) {
|
|
3856
3882
|
var _CookieStore$prototyp$LWS;
|
|
3857
3883
|
|
|
3858
3884
|
const {
|
|
3859
|
-
|
|
3860
|
-
|
|
3885
|
+
globalObject: {
|
|
3886
|
+
CookieStore: CookieStore$LWS
|
|
3887
|
+
},
|
|
3888
|
+
key: key$LWS
|
|
3889
|
+
} = record$LWS;
|
|
3861
3890
|
const originalDelete$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp$LWS.delete;
|
|
3862
3891
|
|
|
3863
3892
|
if (typeof originalDelete$LWS !== 'function') {
|
|
3864
3893
|
return null;
|
|
3865
3894
|
}
|
|
3866
3895
|
|
|
3867
|
-
const {
|
|
3868
|
-
key: key$LWS
|
|
3869
|
-
} = options$LWS;
|
|
3870
|
-
|
|
3871
3896
|
const deleteValue$LWS = function deleteValue$LWS(...args$LWS) {
|
|
3872
3897
|
const detailsOrName$LWS = args$LWS.length ? args$LWS[0] : undefined;
|
|
3873
3898
|
|
|
@@ -3883,22 +3908,21 @@ function distortionCookieStoreDelete$LWS(globalObject$LWS, options$LWS) {
|
|
|
3883
3908
|
/* istanbul ignore next: only available in secure context */
|
|
3884
3909
|
|
|
3885
3910
|
|
|
3886
|
-
function distortionCookieStoreGet$LWS(
|
|
3911
|
+
function distortionCookieStoreGet$LWS(record$LWS) {
|
|
3887
3912
|
var _CookieStore$prototyp2$LWS;
|
|
3888
3913
|
|
|
3889
3914
|
const {
|
|
3890
|
-
|
|
3891
|
-
|
|
3915
|
+
globalObject: {
|
|
3916
|
+
CookieStore: CookieStore$LWS
|
|
3917
|
+
},
|
|
3918
|
+
key: key$LWS
|
|
3919
|
+
} = record$LWS;
|
|
3892
3920
|
const originalGet$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp2$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp2$LWS.get;
|
|
3893
3921
|
|
|
3894
3922
|
if (typeof originalGet$LWS !== 'function') {
|
|
3895
3923
|
return null;
|
|
3896
3924
|
}
|
|
3897
3925
|
|
|
3898
|
-
const {
|
|
3899
|
-
key: key$LWS
|
|
3900
|
-
} = options$LWS;
|
|
3901
|
-
|
|
3902
3926
|
const get$LWS = function get$LWS(...args$LWS) {
|
|
3903
3927
|
const detailsOrName$LWS = args$LWS.length ? args$LWS[0] : undefined;
|
|
3904
3928
|
|
|
@@ -3928,22 +3952,21 @@ function distortionCookieStoreGet$LWS(globalObject$LWS, options$LWS) {
|
|
|
3928
3952
|
/* istanbul ignore next: only available in secure context */
|
|
3929
3953
|
|
|
3930
3954
|
|
|
3931
|
-
function distortionCookieStoreGetAll$LWS(
|
|
3955
|
+
function distortionCookieStoreGetAll$LWS(record$LWS) {
|
|
3932
3956
|
var _CookieStore$prototyp3$LWS;
|
|
3933
3957
|
|
|
3934
3958
|
const {
|
|
3935
|
-
|
|
3936
|
-
|
|
3959
|
+
globalObject: {
|
|
3960
|
+
CookieStore: CookieStore$LWS
|
|
3961
|
+
},
|
|
3962
|
+
key: key$LWS
|
|
3963
|
+
} = record$LWS;
|
|
3937
3964
|
const originalGetAll$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp3$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp3$LWS.getAll;
|
|
3938
3965
|
|
|
3939
3966
|
if (typeof originalGetAll$LWS !== 'function') {
|
|
3940
3967
|
return null;
|
|
3941
3968
|
}
|
|
3942
3969
|
|
|
3943
|
-
const {
|
|
3944
|
-
key: key$LWS
|
|
3945
|
-
} = options$LWS;
|
|
3946
|
-
|
|
3947
3970
|
const getAll$LWS = function getAll$LWS(...args$LWS) {
|
|
3948
3971
|
const detailsOrName$LWS = args$LWS.length ? args$LWS[0] : undefined;
|
|
3949
3972
|
|
|
@@ -3984,7 +4007,10 @@ const restrictedEventTargetRegistryBySandboxKeyRegistry$LWS = {
|
|
|
3984
4007
|
__proto__: null
|
|
3985
4008
|
};
|
|
3986
4009
|
|
|
3987
|
-
function isEventTargetRestricted$LWS(
|
|
4010
|
+
function isEventTargetRestricted$LWS(record$LWS, eventTarget$LWS, eventName$LWS) {
|
|
4011
|
+
const {
|
|
4012
|
+
key: key$LWS
|
|
4013
|
+
} = record$LWS;
|
|
3988
4014
|
const {
|
|
3989
4015
|
[key$LWS]: restrictedEventTargetRegistry$LWS
|
|
3990
4016
|
} = restrictedEventTargetRegistryBySandboxKeyRegistry$LWS;
|
|
@@ -3996,18 +4022,21 @@ function isEventTargetRestricted$LWS(eventTarget$LWS, eventName$LWS, key$LWS) {
|
|
|
3996
4022
|
return restrictedEventTargetRegistry$LWS[eventName$LWS].has(eventTarget$LWS.constructor);
|
|
3997
4023
|
}
|
|
3998
4024
|
|
|
3999
|
-
function registerEventTargetRestriction$LWS(
|
|
4000
|
-
if (isEventTargetRestricted$LWS(EventTargetCtor$LWS.prototype, eventName$LWS
|
|
4025
|
+
function registerEventTargetRestriction$LWS(record$LWS, EventTargetCtor$LWS, eventName$LWS) {
|
|
4026
|
+
if (isEventTargetRestricted$LWS(record$LWS, EventTargetCtor$LWS.prototype, eventName$LWS)) {
|
|
4001
4027
|
return;
|
|
4002
4028
|
}
|
|
4003
4029
|
|
|
4030
|
+
const {
|
|
4031
|
+
key: key$LWS
|
|
4032
|
+
} = record$LWS;
|
|
4004
4033
|
const {
|
|
4005
4034
|
[key$LWS]: restrictedEventTargetRegistry$LWS = {
|
|
4006
4035
|
__proto__: null
|
|
4007
4036
|
}
|
|
4008
4037
|
} = restrictedEventTargetRegistryBySandboxKeyRegistry$LWS;
|
|
4009
4038
|
const {
|
|
4010
|
-
[eventName$LWS]: restrictedEventTargetCtors$LWS =
|
|
4039
|
+
[eventName$LWS]: restrictedEventTargetCtors$LWS = toSafeWeakSet$LWS(new WeakSetCtor$LWS())
|
|
4011
4040
|
} = restrictedEventTargetRegistry$LWS;
|
|
4012
4041
|
restrictedEventTargetCtors$LWS.add(EventTargetCtor$LWS);
|
|
4013
4042
|
restrictedEventTargetRegistry$LWS[eventName$LWS] = restrictedEventTargetCtors$LWS;
|
|
@@ -4016,13 +4045,12 @@ function registerEventTargetRestriction$LWS(EventTargetCtor$LWS, eventName$LWS,
|
|
|
4016
4045
|
/* istanbul ignore next: only available in secure context */
|
|
4017
4046
|
|
|
4018
4047
|
|
|
4019
|
-
function distortionCookieStoreOnChange$LWS(
|
|
4020
|
-
const {
|
|
4021
|
-
key: key$LWS
|
|
4022
|
-
} = options$LWS;
|
|
4048
|
+
function distortionCookieStoreOnChange$LWS(record$LWS) {
|
|
4023
4049
|
const {
|
|
4024
|
-
|
|
4025
|
-
|
|
4050
|
+
globalObject: {
|
|
4051
|
+
CookieStore: CookieStore$LWS
|
|
4052
|
+
}
|
|
4053
|
+
} = record$LWS;
|
|
4026
4054
|
const originalOnChangeSetter$LWS = ObjectLookupOwnSetter$LWS(CookieStore$LWS == null ? void 0 : CookieStore$LWS.prototype, 'onchange');
|
|
4027
4055
|
|
|
4028
4056
|
if (typeof originalOnChangeSetter$LWS !== 'function') {
|
|
@@ -4033,38 +4061,34 @@ function distortionCookieStoreOnChange$LWS(globalObject$LWS, options$LWS) {
|
|
|
4033
4061
|
throw new LockerSecurityError$LWS('Cannot set cookieStore.onchange.');
|
|
4034
4062
|
};
|
|
4035
4063
|
|
|
4036
|
-
registerEventTargetRestriction$LWS(CookieStore$LWS, 'change'
|
|
4064
|
+
registerEventTargetRestriction$LWS(record$LWS, CookieStore$LWS, 'change');
|
|
4037
4065
|
return [originalOnChangeSetter$LWS, onchange$LWS];
|
|
4038
4066
|
}
|
|
4039
4067
|
/* istanbul ignore next: only available in secure context */
|
|
4040
4068
|
|
|
4041
4069
|
|
|
4042
|
-
function distortionCookieStoreSet$LWS(
|
|
4070
|
+
function distortionCookieStoreSet$LWS(record$LWS) {
|
|
4043
4071
|
var _CookieStore$prototyp4$LWS;
|
|
4044
4072
|
|
|
4045
4073
|
const {
|
|
4046
|
-
|
|
4047
|
-
|
|
4074
|
+
globalObject: {
|
|
4075
|
+
CookieStore: CookieStore$LWS
|
|
4076
|
+
},
|
|
4077
|
+
key: key$LWS
|
|
4078
|
+
} = record$LWS;
|
|
4048
4079
|
const originalSet$LWS = CookieStore$LWS == null ? void 0 : (_CookieStore$prototyp4$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp4$LWS.set;
|
|
4049
4080
|
|
|
4050
4081
|
if (typeof originalSet$LWS !== 'function') {
|
|
4051
4082
|
return null;
|
|
4052
4083
|
}
|
|
4053
4084
|
|
|
4054
|
-
const {
|
|
4055
|
-
key: key$LWS
|
|
4056
|
-
} = options$LWS;
|
|
4057
|
-
|
|
4058
4085
|
const set$LWS = function set$LWS(...args$LWS) {
|
|
4059
4086
|
const {
|
|
4060
4087
|
length: length$LWS
|
|
4061
4088
|
} = args$LWS;
|
|
4062
4089
|
|
|
4063
4090
|
if (length$LWS > 1) {
|
|
4064
|
-
|
|
4065
|
-
0: name$LWS
|
|
4066
|
-
} = args$LWS;
|
|
4067
|
-
args$LWS[0] = prefixNamespace$LWS(name$LWS, key$LWS);
|
|
4091
|
+
args$LWS[0] = prefixNamespace$LWS(args$LWS[0], key$LWS);
|
|
4068
4092
|
} else if (length$LWS) {
|
|
4069
4093
|
const {
|
|
4070
4094
|
0: details$LWS
|
|
@@ -4083,10 +4107,12 @@ function distortionCookieStoreSet$LWS(globalObject$LWS, options$LWS) {
|
|
|
4083
4107
|
return [originalSet$LWS, set$LWS];
|
|
4084
4108
|
}
|
|
4085
4109
|
|
|
4086
|
-
function distortionCSSStyleRuleStyleGetter$LWS(
|
|
4110
|
+
function distortionCSSStyleRuleStyleGetter$LWS(record$LWS) {
|
|
4087
4111
|
const {
|
|
4088
|
-
|
|
4089
|
-
|
|
4112
|
+
globalObject: {
|
|
4113
|
+
CSSStyleRule: CSSStyleRule$LWS
|
|
4114
|
+
}
|
|
4115
|
+
} = record$LWS;
|
|
4090
4116
|
const originalStyleGetter$LWS = ObjectLookupOwnGetter$LWS(CSSStyleRule$LWS.prototype, 'style');
|
|
4091
4117
|
|
|
4092
4118
|
function style$LWS() {
|
|
@@ -4096,15 +4122,15 @@ function distortionCSSStyleRuleStyleGetter$LWS(globalObject$LWS) {
|
|
|
4096
4122
|
return [originalStyleGetter$LWS, style$LWS];
|
|
4097
4123
|
}
|
|
4098
4124
|
|
|
4099
|
-
function distortionCustomElementRegistryGet$LWS(
|
|
4125
|
+
function distortionCustomElementRegistryGet$LWS(record$LWS) {
|
|
4100
4126
|
var _CustomElementRegistr$LWS;
|
|
4101
4127
|
|
|
4102
4128
|
const {
|
|
4129
|
+
globalObject: {
|
|
4130
|
+
CustomElementRegistry: CustomElementRegistry$LWS
|
|
4131
|
+
},
|
|
4103
4132
|
key: key$LWS
|
|
4104
|
-
} =
|
|
4105
|
-
const {
|
|
4106
|
-
CustomElementRegistry: CustomElementRegistry$LWS
|
|
4107
|
-
} = globalObject$LWS;
|
|
4133
|
+
} = record$LWS;
|
|
4108
4134
|
const LOWERED_NS$LWS = ReflectApply$LWS(StringProtoToLowerCase$LWS, key$LWS, []); // istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurence of the operator
|
|
4109
4135
|
|
|
4110
4136
|
const originalGet$LWS = CustomElementRegistry$LWS == null ? void 0 : (_CustomElementRegistr$LWS = CustomElementRegistry$LWS.prototype) == null ? void 0 : _CustomElementRegistr$LWS.get; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
@@ -4139,13 +4165,13 @@ function distortionCustomElementRegistryGet$LWS(globalObject$LWS, options$LWS) {
|
|
|
4139
4165
|
*/
|
|
4140
4166
|
|
|
4141
4167
|
|
|
4142
|
-
function distortionDocumentCookieGetter$LWS(
|
|
4168
|
+
function distortionDocumentCookieGetter$LWS(record$LWS) {
|
|
4143
4169
|
const {
|
|
4170
|
+
globalObject: {
|
|
4171
|
+
Document: Document$LWS
|
|
4172
|
+
},
|
|
4144
4173
|
key: key$LWS
|
|
4145
|
-
} =
|
|
4146
|
-
const {
|
|
4147
|
-
Document: Document$LWS
|
|
4148
|
-
} = globalObject$LWS;
|
|
4174
|
+
} = record$LWS;
|
|
4149
4175
|
const originalCookieGetter$LWS = ObjectLookupOwnGetter$LWS(Document$LWS.prototype, 'cookie');
|
|
4150
4176
|
|
|
4151
4177
|
function get$LWS() {
|
|
@@ -4175,13 +4201,13 @@ function distortionDocumentCookieGetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
4175
4201
|
*/
|
|
4176
4202
|
|
|
4177
4203
|
|
|
4178
|
-
function distortionDocumentCookieSetter$LWS(
|
|
4204
|
+
function distortionDocumentCookieSetter$LWS(record$LWS) {
|
|
4179
4205
|
const {
|
|
4206
|
+
globalObject: {
|
|
4207
|
+
Document: Document$LWS
|
|
4208
|
+
},
|
|
4180
4209
|
key: key$LWS
|
|
4181
|
-
} =
|
|
4182
|
-
const {
|
|
4183
|
-
Document: Document$LWS
|
|
4184
|
-
} = globalObject$LWS;
|
|
4210
|
+
} = record$LWS;
|
|
4185
4211
|
const originalCookieSetter$LWS = ObjectLookupOwnSetter$LWS(Document$LWS.prototype, 'cookie');
|
|
4186
4212
|
|
|
4187
4213
|
function set$LWS(value$LWS) {
|
|
@@ -4202,10 +4228,12 @@ function distortionDocumentCookieSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
4202
4228
|
return [originalCookieSetter$LWS, set$LWS];
|
|
4203
4229
|
}
|
|
4204
4230
|
|
|
4205
|
-
function distortionDocumentDomainSetter$LWS(
|
|
4231
|
+
function distortionDocumentDomainSetter$LWS(record$LWS) {
|
|
4206
4232
|
const {
|
|
4207
|
-
|
|
4208
|
-
|
|
4233
|
+
globalObject: {
|
|
4234
|
+
Document: Document$LWS
|
|
4235
|
+
}
|
|
4236
|
+
} = record$LWS;
|
|
4209
4237
|
const originalDomainSetter$LWS = ObjectLookupOwnSetter$LWS(Document$LWS.prototype, 'domain');
|
|
4210
4238
|
|
|
4211
4239
|
function domain$LWS() {
|
|
@@ -4213,23 +4241,16 @@ function distortionDocumentDomainSetter$LWS(globalObject$LWS) {
|
|
|
4213
4241
|
}
|
|
4214
4242
|
|
|
4215
4243
|
return [originalDomainSetter$LWS, domain$LWS];
|
|
4216
|
-
}
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
var SandboxType$LWS;
|
|
4220
|
-
|
|
4221
|
-
(function (SandboxType$LWS) {
|
|
4222
|
-
SandboxType$LWS[SandboxType$LWS["External"] = 0] = "External";
|
|
4223
|
-
SandboxType$LWS[SandboxType$LWS["Internal"] = 1] = "Internal";
|
|
4224
|
-
})(SandboxType$LWS || (SandboxType$LWS = {}));
|
|
4225
|
-
|
|
4226
|
-
ReflectSetPrototypeOf$LWS(SandboxType$LWS, null);
|
|
4244
|
+
}
|
|
4227
4245
|
|
|
4228
|
-
function distortionDocumentExecCommand$LWS(
|
|
4246
|
+
function distortionDocumentExecCommand$LWS(record$LWS) {
|
|
4229
4247
|
const {
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4248
|
+
globalObject: {
|
|
4249
|
+
Document: Document$LWS,
|
|
4250
|
+
HTMLElement: HTMLElement$LWS
|
|
4251
|
+
},
|
|
4252
|
+
type: type$LWS
|
|
4253
|
+
} = record$LWS;
|
|
4233
4254
|
const {
|
|
4234
4255
|
prototype: DocumentProto$LWS
|
|
4235
4256
|
} = Document$LWS;
|
|
@@ -4246,10 +4267,7 @@ function distortionDocumentExecCommand$LWS(globalObject$LWS, options$LWS) {
|
|
|
4246
4267
|
|
|
4247
4268
|
const {
|
|
4248
4269
|
isSharedElement: isSharedElement$LWS
|
|
4249
|
-
} = getValidator$LWS(
|
|
4250
|
-
const {
|
|
4251
|
-
sandboxType: sandboxType$LWS
|
|
4252
|
-
} = options$LWS;
|
|
4270
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4253
4271
|
|
|
4254
4272
|
function execCommand$LWS(...args$LWS) {
|
|
4255
4273
|
if (args$LWS.length > 2) {
|
|
@@ -4262,7 +4280,9 @@ function distortionDocumentExecCommand$LWS(globalObject$LWS, options$LWS) {
|
|
|
4262
4280
|
|
|
4263
4281
|
if (ReflectApply$LWS(StringProtoToLowerCase$LWS, command$LWS, []) === 'inserthtml') {
|
|
4264
4282
|
// istanbul ignore else: external is the default sandbox type for coverage runs
|
|
4265
|
-
if (
|
|
4283
|
+
if (type$LWS === 0
|
|
4284
|
+
/* External */
|
|
4285
|
+
) {
|
|
4266
4286
|
const activeElement$LWS = ReflectApply$LWS(originalActiveElement$LWS, this, []);
|
|
4267
4287
|
|
|
4268
4288
|
if (isSharedElement$LWS(activeElement$LWS) && ReflectApply$LWS(originalIsContentEditable$LWS, activeElement$LWS, [])) {
|
|
@@ -4314,10 +4334,12 @@ function sanitizeWindowOpenArguments$LWS(args$LWS) {
|
|
|
4314
4334
|
return sanitizedArgs$LWS;
|
|
4315
4335
|
}
|
|
4316
4336
|
|
|
4317
|
-
function distortionDocumentOpen$LWS(
|
|
4337
|
+
function distortionDocumentOpen$LWS(record$LWS) {
|
|
4318
4338
|
const {
|
|
4319
|
-
|
|
4320
|
-
|
|
4339
|
+
globalObject: {
|
|
4340
|
+
Document: Document$LWS
|
|
4341
|
+
}
|
|
4342
|
+
} = record$LWS;
|
|
4321
4343
|
const {
|
|
4322
4344
|
open: originalDocumentOpen$LWS
|
|
4323
4345
|
} = Document$LWS.prototype;
|
|
@@ -4338,10 +4360,12 @@ function distortionDocumentOpen$LWS(globalObject$LWS) {
|
|
|
4338
4360
|
return [originalDocumentOpen$LWS, open$LWS];
|
|
4339
4361
|
}
|
|
4340
4362
|
|
|
4341
|
-
function distortionDocumentReplaceChildren$LWS(
|
|
4363
|
+
function distortionDocumentReplaceChildren$LWS(record$LWS) {
|
|
4342
4364
|
const {
|
|
4343
|
-
|
|
4344
|
-
|
|
4365
|
+
globalObject: {
|
|
4366
|
+
Document: Document$LWS
|
|
4367
|
+
}
|
|
4368
|
+
} = record$LWS;
|
|
4345
4369
|
const {
|
|
4346
4370
|
replaceChildren: originalReplaceChild$LWS
|
|
4347
4371
|
} = Document$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4353,7 +4377,7 @@ function distortionDocumentReplaceChildren$LWS(globalObject$LWS) {
|
|
|
4353
4377
|
|
|
4354
4378
|
const {
|
|
4355
4379
|
isSharedElement: isSharedElement$LWS
|
|
4356
|
-
} = getValidator$LWS(
|
|
4380
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4357
4381
|
|
|
4358
4382
|
function replaceChildren$LWS(...args$LWS) {
|
|
4359
4383
|
// To figure out if "this" is the top level document, we can check if
|
|
@@ -4371,10 +4395,12 @@ function distortionDocumentReplaceChildren$LWS(globalObject$LWS) {
|
|
|
4371
4395
|
return [originalReplaceChild$LWS, replaceChildren$LWS];
|
|
4372
4396
|
}
|
|
4373
4397
|
|
|
4374
|
-
function distortionDOMParserParseFromString$LWS(
|
|
4398
|
+
function distortionDOMParserParseFromString$LWS(record$LWS) {
|
|
4375
4399
|
const {
|
|
4376
|
-
|
|
4377
|
-
|
|
4400
|
+
globalObject: {
|
|
4401
|
+
DOMParser: DOMParser$LWS
|
|
4402
|
+
}
|
|
4403
|
+
} = record$LWS;
|
|
4378
4404
|
const {
|
|
4379
4405
|
parseFromString: originalParseFromString$LWS
|
|
4380
4406
|
} = DOMParser$LWS.prototype;
|
|
@@ -4405,11 +4431,13 @@ function distortionDOMParserParseFromString$LWS(globalObject$LWS) {
|
|
|
4405
4431
|
return [originalParseFromString$LWS, parseFromString$LWS];
|
|
4406
4432
|
}
|
|
4407
4433
|
|
|
4408
|
-
function distortionElementAfter$LWS(
|
|
4434
|
+
function distortionElementAfter$LWS(record$LWS) {
|
|
4409
4435
|
const {
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4436
|
+
globalObject: {
|
|
4437
|
+
Element: Element$LWS,
|
|
4438
|
+
Node: Node$LWS
|
|
4439
|
+
}
|
|
4440
|
+
} = record$LWS;
|
|
4413
4441
|
const {
|
|
4414
4442
|
after: originalAfter$LWS
|
|
4415
4443
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4422,7 +4450,7 @@ function distortionElementAfter$LWS(globalObject$LWS) {
|
|
|
4422
4450
|
const {
|
|
4423
4451
|
isSharedElement: isSharedElement$LWS,
|
|
4424
4452
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
4425
|
-
} = getValidator$LWS(
|
|
4453
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4426
4454
|
|
|
4427
4455
|
function after$LWS(...args$LWS) {
|
|
4428
4456
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4447,11 +4475,13 @@ function distortionElementAfter$LWS(globalObject$LWS) {
|
|
|
4447
4475
|
return [originalAfter$LWS, after$LWS];
|
|
4448
4476
|
}
|
|
4449
4477
|
|
|
4450
|
-
function distortionElementAppend$LWS(
|
|
4478
|
+
function distortionElementAppend$LWS(record$LWS) {
|
|
4451
4479
|
const {
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4480
|
+
globalObject: {
|
|
4481
|
+
Element: Element$LWS,
|
|
4482
|
+
Node: Node$LWS
|
|
4483
|
+
}
|
|
4484
|
+
} = record$LWS;
|
|
4455
4485
|
const {
|
|
4456
4486
|
append: originalAppend$LWS
|
|
4457
4487
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4464,7 +4494,7 @@ function distortionElementAppend$LWS(globalObject$LWS) {
|
|
|
4464
4494
|
const {
|
|
4465
4495
|
isSharedElement: isSharedElement$LWS,
|
|
4466
4496
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
4467
|
-
} = getValidator$LWS(
|
|
4497
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4468
4498
|
|
|
4469
4499
|
function append$LWS(...args$LWS) {
|
|
4470
4500
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4492,10 +4522,12 @@ function distortionElementAppend$LWS(globalObject$LWS) {
|
|
|
4492
4522
|
return [originalAppend$LWS, append$LWS];
|
|
4493
4523
|
}
|
|
4494
4524
|
|
|
4495
|
-
function distortionElementAttachShadow$LWS(
|
|
4525
|
+
function distortionElementAttachShadow$LWS(record$LWS) {
|
|
4496
4526
|
const {
|
|
4497
|
-
|
|
4498
|
-
|
|
4527
|
+
globalObject: {
|
|
4528
|
+
Element: Element$LWS
|
|
4529
|
+
}
|
|
4530
|
+
} = record$LWS;
|
|
4499
4531
|
const {
|
|
4500
4532
|
attachShadow: originalAttachShadow$LWS
|
|
4501
4533
|
} = Element$LWS.prototype;
|
|
@@ -4544,14 +4576,14 @@ function pairElement$LWS(attrInstance$LWS, element$LWS) {
|
|
|
4544
4576
|
namedNodeMapToElementRegistry$LWS.set(attrInstance$LWS, element$LWS);
|
|
4545
4577
|
}
|
|
4546
4578
|
|
|
4547
|
-
function setNamedItemWithAttr$LWS(
|
|
4579
|
+
function setNamedItemWithAttr$LWS(record$LWS, originalMethod$LWS, nodeNameMap$LWS, attr$LWS) {
|
|
4548
4580
|
const element$LWS = namedNodeMapToElementRegistry$LWS.get(nodeNameMap$LWS); // istanbul ignore else: nothing to do if there's no element
|
|
4549
4581
|
|
|
4550
4582
|
if (element$LWS) {
|
|
4551
4583
|
const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, attr$LWS, []);
|
|
4552
4584
|
const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, attr$LWS, []);
|
|
4553
4585
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
4554
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
4586
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, element$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: nothing to do if there's no distortion
|
|
4555
4587
|
|
|
4556
4588
|
if (distortion$LWS) {
|
|
4557
4589
|
const attrValue$LWS = ReflectApply$LWS(AttrProtoValueGetter$LWS, attr$LWS, []);
|
|
@@ -4563,10 +4595,12 @@ function setNamedItemWithAttr$LWS(globalObject$LWS, key$LWS, originalMethod$LWS,
|
|
|
4563
4595
|
return ReflectApply$LWS(originalMethod$LWS, nodeNameMap$LWS, [attr$LWS]);
|
|
4564
4596
|
}
|
|
4565
4597
|
|
|
4566
|
-
function distortionElementAttributesGetter$LWS(
|
|
4598
|
+
function distortionElementAttributesGetter$LWS(record$LWS) {
|
|
4567
4599
|
const {
|
|
4568
|
-
|
|
4569
|
-
|
|
4600
|
+
globalObject: {
|
|
4601
|
+
Element: Element$LWS
|
|
4602
|
+
}
|
|
4603
|
+
} = record$LWS;
|
|
4570
4604
|
const originalAttributesGetter$LWS = ObjectLookupOwnGetter$LWS(Element$LWS.prototype, 'attributes');
|
|
4571
4605
|
|
|
4572
4606
|
function attributes$LWS() {
|
|
@@ -4578,11 +4612,13 @@ function distortionElementAttributesGetter$LWS(globalObject$LWS) {
|
|
|
4578
4612
|
return [originalAttributesGetter$LWS, attributes$LWS];
|
|
4579
4613
|
}
|
|
4580
4614
|
|
|
4581
|
-
function distortionElementBefore$LWS(
|
|
4615
|
+
function distortionElementBefore$LWS(record$LWS) {
|
|
4582
4616
|
const {
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4617
|
+
globalObject: {
|
|
4618
|
+
Element: Element$LWS,
|
|
4619
|
+
Node: Node$LWS
|
|
4620
|
+
}
|
|
4621
|
+
} = record$LWS;
|
|
4586
4622
|
const {
|
|
4587
4623
|
before: originalBefore$LWS
|
|
4588
4624
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4595,7 +4631,7 @@ function distortionElementBefore$LWS(globalObject$LWS) {
|
|
|
4595
4631
|
const {
|
|
4596
4632
|
isSharedElement: isSharedElement$LWS,
|
|
4597
4633
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
4598
|
-
} = getValidator$LWS(
|
|
4634
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4599
4635
|
|
|
4600
4636
|
function before$LWS(...args$LWS) {
|
|
4601
4637
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4620,11 +4656,14 @@ function distortionElementBefore$LWS(globalObject$LWS) {
|
|
|
4620
4656
|
return [originalBefore$LWS, before$LWS];
|
|
4621
4657
|
}
|
|
4622
4658
|
|
|
4623
|
-
function distortionElementInnerHTMLSetter$LWS(
|
|
4659
|
+
function distortionElementInnerHTMLSetter$LWS(record$LWS) {
|
|
4624
4660
|
const {
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4661
|
+
globalObject: {
|
|
4662
|
+
Element: Element$LWS,
|
|
4663
|
+
SVGElement: SVGElement$LWS,
|
|
4664
|
+
XMLDocument: XMLDocument$LWS
|
|
4665
|
+
}
|
|
4666
|
+
} = record$LWS;
|
|
4628
4667
|
const originalInnerHTMLSetter$LWS = ObjectLookupOwnSetter$LWS(Element$LWS.prototype, 'innerHTML'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
4629
4668
|
// "globalObject" because magenta objects (arbitrary user-code created global objects)
|
|
4630
4669
|
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
@@ -4634,25 +4673,32 @@ function distortionElementInnerHTMLSetter$LWS(globalObject$LWS) {
|
|
|
4634
4673
|
|
|
4635
4674
|
const {
|
|
4636
4675
|
isSharedElement: isSharedElement$LWS
|
|
4637
|
-
} = getValidator$LWS(
|
|
4676
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4638
4677
|
|
|
4639
4678
|
function innerHTML$LWS(value$LWS) {
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4679
|
+
const isOwnerXMLDocument$LWS = ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, this, []) instanceof XMLDocument$LWS;
|
|
4680
|
+
|
|
4681
|
+
if (!isOwnerXMLDocument$LWS) {
|
|
4682
|
+
// istanbul ignore else: needs default platform behavior test
|
|
4683
|
+
if (isSharedElement$LWS(this)) {
|
|
4684
|
+
throw new LockerSecurityError$LWS(`Cannot set innerHTML of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
4685
|
+
}
|
|
4686
|
+
|
|
4687
|
+
value$LWS = this instanceof SVGElement$LWS ? sanitizeSvgInnerHtml$LWS(this, value$LWS) : sanitize$LWS(value$LWS);
|
|
4643
4688
|
}
|
|
4644
4689
|
|
|
4645
|
-
|
|
4646
|
-
ReflectApply$LWS(originalInnerHTMLSetter$LWS, this, [sanitizedValue$LWS]);
|
|
4690
|
+
ReflectApply$LWS(originalInnerHTMLSetter$LWS, this, [value$LWS]);
|
|
4647
4691
|
}
|
|
4648
4692
|
|
|
4649
4693
|
return [originalInnerHTMLSetter$LWS, innerHTML$LWS];
|
|
4650
4694
|
}
|
|
4651
4695
|
|
|
4652
|
-
function distortionElementInsertAdjacentElement$LWS(
|
|
4696
|
+
function distortionElementInsertAdjacentElement$LWS(record$LWS) {
|
|
4653
4697
|
const {
|
|
4654
|
-
|
|
4655
|
-
|
|
4698
|
+
globalObject: {
|
|
4699
|
+
Element: Element$LWS
|
|
4700
|
+
}
|
|
4701
|
+
} = record$LWS;
|
|
4656
4702
|
const {
|
|
4657
4703
|
insertAdjacentElement: originalInsertAdjacentElement$LWS
|
|
4658
4704
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4665,7 +4711,7 @@ function distortionElementInsertAdjacentElement$LWS(globalObject$LWS) {
|
|
|
4665
4711
|
const {
|
|
4666
4712
|
isSharedElement: isSharedElement$LWS,
|
|
4667
4713
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
4668
|
-
} = getValidator$LWS(
|
|
4714
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4669
4715
|
|
|
4670
4716
|
function insertAdjacentElement$LWS(...args$LWS) {
|
|
4671
4717
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4685,10 +4731,12 @@ function distortionElementInsertAdjacentElement$LWS(globalObject$LWS) {
|
|
|
4685
4731
|
return [originalInsertAdjacentElement$LWS, insertAdjacentElement$LWS];
|
|
4686
4732
|
}
|
|
4687
4733
|
|
|
4688
|
-
function distortionElementInsertAdjacentHTML$LWS(
|
|
4734
|
+
function distortionElementInsertAdjacentHTML$LWS(record$LWS) {
|
|
4689
4735
|
const {
|
|
4690
|
-
|
|
4691
|
-
|
|
4736
|
+
globalObject: {
|
|
4737
|
+
Element: Element$LWS
|
|
4738
|
+
}
|
|
4739
|
+
} = record$LWS;
|
|
4692
4740
|
const {
|
|
4693
4741
|
insertAdjacentHTML: originalInsertAdjacentHTML$LWS
|
|
4694
4742
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4700,7 +4748,7 @@ function distortionElementInsertAdjacentHTML$LWS(globalObject$LWS) {
|
|
|
4700
4748
|
|
|
4701
4749
|
const {
|
|
4702
4750
|
isSharedElement: isSharedElement$LWS
|
|
4703
|
-
} = getValidator$LWS(
|
|
4751
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4704
4752
|
|
|
4705
4753
|
function insertAdjacentHTML$LWS(...args$LWS) {
|
|
4706
4754
|
if (isSharedElement$LWS(this)) {
|
|
@@ -4718,10 +4766,12 @@ function distortionElementInsertAdjacentHTML$LWS(globalObject$LWS) {
|
|
|
4718
4766
|
return [originalInsertAdjacentHTML$LWS, insertAdjacentHTML$LWS];
|
|
4719
4767
|
}
|
|
4720
4768
|
|
|
4721
|
-
function distortionElementOuterHTMLSetter$LWS(
|
|
4769
|
+
function distortionElementOuterHTMLSetter$LWS(record$LWS) {
|
|
4722
4770
|
const {
|
|
4723
|
-
|
|
4724
|
-
|
|
4771
|
+
globalObject: {
|
|
4772
|
+
Element: Element$LWS
|
|
4773
|
+
}
|
|
4774
|
+
} = record$LWS;
|
|
4725
4775
|
const originalOuterHTMLSetter$LWS = ObjectLookupOwnSetter$LWS(Element$LWS.prototype, 'outerHTML'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
4726
4776
|
// "globalObject" because future magenta objects (arbitrary user-code created global objects)
|
|
4727
4777
|
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
@@ -4731,7 +4781,7 @@ function distortionElementOuterHTMLSetter$LWS(globalObject$LWS) {
|
|
|
4731
4781
|
|
|
4732
4782
|
const {
|
|
4733
4783
|
isSharedElement: isSharedElement$LWS
|
|
4734
|
-
} = getValidator$LWS(
|
|
4784
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4735
4785
|
|
|
4736
4786
|
function outerHTML$LWS(value$LWS) {
|
|
4737
4787
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4745,11 +4795,13 @@ function distortionElementOuterHTMLSetter$LWS(globalObject$LWS) {
|
|
|
4745
4795
|
return [originalOuterHTMLSetter$LWS, outerHTML$LWS];
|
|
4746
4796
|
}
|
|
4747
4797
|
|
|
4748
|
-
function distortionElementPrepend$LWS(
|
|
4798
|
+
function distortionElementPrepend$LWS(record$LWS) {
|
|
4749
4799
|
const {
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4800
|
+
globalObject: {
|
|
4801
|
+
Element: Element$LWS,
|
|
4802
|
+
Node: Node$LWS
|
|
4803
|
+
}
|
|
4804
|
+
} = record$LWS;
|
|
4753
4805
|
const {
|
|
4754
4806
|
prepend: originalPrepend$LWS
|
|
4755
4807
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4762,7 +4814,7 @@ function distortionElementPrepend$LWS(globalObject$LWS) {
|
|
|
4762
4814
|
const {
|
|
4763
4815
|
isSharedElement: isSharedElement$LWS,
|
|
4764
4816
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
4765
|
-
} = getValidator$LWS(
|
|
4817
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4766
4818
|
|
|
4767
4819
|
function prepend$LWS(...args$LWS) {
|
|
4768
4820
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4790,10 +4842,12 @@ function distortionElementPrepend$LWS(globalObject$LWS) {
|
|
|
4790
4842
|
return [originalPrepend$LWS, prepend$LWS];
|
|
4791
4843
|
}
|
|
4792
4844
|
|
|
4793
|
-
function distortionElementRemove$LWS(
|
|
4845
|
+
function distortionElementRemove$LWS(record$LWS) {
|
|
4794
4846
|
const {
|
|
4795
|
-
|
|
4796
|
-
|
|
4847
|
+
globalObject: {
|
|
4848
|
+
Element: Element$LWS
|
|
4849
|
+
}
|
|
4850
|
+
} = record$LWS;
|
|
4797
4851
|
const {
|
|
4798
4852
|
remove: originalRemove$LWS
|
|
4799
4853
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4805,7 +4859,7 @@ function distortionElementRemove$LWS(globalObject$LWS) {
|
|
|
4805
4859
|
|
|
4806
4860
|
const {
|
|
4807
4861
|
isSharedElement: isSharedElement$LWS
|
|
4808
|
-
} = getValidator$LWS(
|
|
4862
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4809
4863
|
|
|
4810
4864
|
function remove$LWS() {
|
|
4811
4865
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4819,10 +4873,12 @@ function distortionElementRemove$LWS(globalObject$LWS) {
|
|
|
4819
4873
|
return [originalRemove$LWS, remove$LWS];
|
|
4820
4874
|
}
|
|
4821
4875
|
|
|
4822
|
-
function distortionElementReplaceChildren$LWS(
|
|
4876
|
+
function distortionElementReplaceChildren$LWS(record$LWS) {
|
|
4823
4877
|
const {
|
|
4824
|
-
|
|
4825
|
-
|
|
4878
|
+
globalObject: {
|
|
4879
|
+
Element: Element$LWS
|
|
4880
|
+
}
|
|
4881
|
+
} = record$LWS;
|
|
4826
4882
|
const {
|
|
4827
4883
|
replaceChildren: originalReplaceChildren$LWS
|
|
4828
4884
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4834,7 +4890,7 @@ function distortionElementReplaceChildren$LWS(globalObject$LWS) {
|
|
|
4834
4890
|
|
|
4835
4891
|
const {
|
|
4836
4892
|
isSharedElement: isSharedElement$LWS
|
|
4837
|
-
} = getValidator$LWS(
|
|
4893
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4838
4894
|
|
|
4839
4895
|
function replaceChildren$LWS(...args$LWS) {
|
|
4840
4896
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4848,10 +4904,12 @@ function distortionElementReplaceChildren$LWS(globalObject$LWS) {
|
|
|
4848
4904
|
return [originalReplaceChildren$LWS, replaceChildren$LWS];
|
|
4849
4905
|
}
|
|
4850
4906
|
|
|
4851
|
-
function distortionElementReplaceWith$LWS(
|
|
4907
|
+
function distortionElementReplaceWith$LWS(record$LWS) {
|
|
4852
4908
|
const {
|
|
4853
|
-
|
|
4854
|
-
|
|
4909
|
+
globalObject: {
|
|
4910
|
+
Element: Element$LWS
|
|
4911
|
+
}
|
|
4912
|
+
} = record$LWS;
|
|
4855
4913
|
const {
|
|
4856
4914
|
replaceWith: originalReplaceWith$LWS
|
|
4857
4915
|
} = Element$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -4863,7 +4921,7 @@ function distortionElementReplaceWith$LWS(globalObject$LWS) {
|
|
|
4863
4921
|
|
|
4864
4922
|
const {
|
|
4865
4923
|
isSharedElement: isSharedElement$LWS
|
|
4866
|
-
} = getValidator$LWS(
|
|
4924
|
+
} = getValidator$LWS(record$LWS.top);
|
|
4867
4925
|
|
|
4868
4926
|
function replaceWith$LWS(...args$LWS) {
|
|
4869
4927
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -4877,32 +4935,29 @@ function distortionElementReplaceWith$LWS(globalObject$LWS) {
|
|
|
4877
4935
|
return [originalReplaceWith$LWS, replaceWith$LWS];
|
|
4878
4936
|
}
|
|
4879
4937
|
|
|
4880
|
-
function
|
|
4881
|
-
const nameAsString$LWS = toString$LWS(name$LWS);
|
|
4882
|
-
return ReflectApply$LWS(StringProtoToLowerCase$LWS, nameAsString$LWS, []);
|
|
4883
|
-
}
|
|
4884
|
-
|
|
4885
|
-
function distortionElementSetAttribute$LWS(globalObject$LWS, options$LWS) {
|
|
4886
|
-
const {
|
|
4887
|
-
key: key$LWS
|
|
4888
|
-
} = options$LWS;
|
|
4938
|
+
function distortionElementSetAttribute$LWS(record$LWS) {
|
|
4889
4939
|
const {
|
|
4890
|
-
|
|
4891
|
-
|
|
4940
|
+
globalObject: {
|
|
4941
|
+
Element: Element$LWS
|
|
4942
|
+
}
|
|
4943
|
+
} = record$LWS;
|
|
4892
4944
|
const {
|
|
4893
4945
|
setAttribute: originalSetAttribute$LWS
|
|
4894
4946
|
} = Element$LWS.prototype;
|
|
4895
4947
|
|
|
4896
4948
|
function setAttribute$LWS(...args$LWS) {
|
|
4897
4949
|
if (args$LWS.length > 1) {
|
|
4898
|
-
const attrName$LWS =
|
|
4950
|
+
const attrName$LWS = toString$LWS(args$LWS[0]);
|
|
4899
4951
|
const attrValue$LWS = toString$LWS(args$LWS[1]);
|
|
4900
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
4952
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS);
|
|
4901
4953
|
|
|
4902
4954
|
if (distortion$LWS) {
|
|
4903
4955
|
ReflectApply$LWS(distortion$LWS, this, [attrValue$LWS]);
|
|
4904
4956
|
return;
|
|
4905
|
-
}
|
|
4957
|
+
} // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
4958
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
4959
|
+
// such as svg element's "viewBox"
|
|
4960
|
+
|
|
4906
4961
|
|
|
4907
4962
|
args$LWS[0] = attrName$LWS;
|
|
4908
4963
|
args$LWS[1] = attrValue$LWS;
|
|
@@ -4914,14 +4969,13 @@ function distortionElementSetAttribute$LWS(globalObject$LWS, options$LWS) {
|
|
|
4914
4969
|
return [originalSetAttribute$LWS, setAttribute$LWS];
|
|
4915
4970
|
}
|
|
4916
4971
|
|
|
4917
|
-
function distortionElementSetAttributeNode$LWS(
|
|
4918
|
-
const {
|
|
4919
|
-
key: key$LWS
|
|
4920
|
-
} = options$LWS;
|
|
4972
|
+
function distortionElementSetAttributeNode$LWS(record$LWS) {
|
|
4921
4973
|
const {
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4974
|
+
globalObject: {
|
|
4975
|
+
Attr: Attr$LWS,
|
|
4976
|
+
Element: Element$LWS
|
|
4977
|
+
}
|
|
4978
|
+
} = record$LWS;
|
|
4925
4979
|
const {
|
|
4926
4980
|
setAttributeNode: originalSetAttributeNode$LWS
|
|
4927
4981
|
} = Element$LWS.prototype;
|
|
@@ -4945,7 +4999,7 @@ function distortionElementSetAttributeNode$LWS(globalObject$LWS, options$LWS) {
|
|
|
4945
4999
|
const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, attr$LWS, []);
|
|
4946
5000
|
const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, attr$LWS, []);
|
|
4947
5001
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
4948
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
5002
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS);
|
|
4949
5003
|
|
|
4950
5004
|
if (distortion$LWS) {
|
|
4951
5005
|
const oldAttr$LWS = ReflectApply$LWS(ElementProtoGetAttributeNode$LWS, this, [attrName$LWS]);
|
|
@@ -4986,14 +5040,13 @@ function distortionElementSetAttributeNode$LWS(globalObject$LWS, options$LWS) {
|
|
|
4986
5040
|
return [originalSetAttributeNode$LWS, setAttributeNode$LWS];
|
|
4987
5041
|
}
|
|
4988
5042
|
|
|
4989
|
-
function distortionElementSetAttributeNodeNS$LWS(
|
|
4990
|
-
const {
|
|
4991
|
-
key: key$LWS
|
|
4992
|
-
} = options$LWS;
|
|
5043
|
+
function distortionElementSetAttributeNodeNS$LWS(record$LWS) {
|
|
4993
5044
|
const {
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
5045
|
+
globalObject: {
|
|
5046
|
+
Attr: Attr$LWS,
|
|
5047
|
+
Element: Element$LWS
|
|
5048
|
+
}
|
|
5049
|
+
} = record$LWS;
|
|
4997
5050
|
const {
|
|
4998
5051
|
setAttributeNodeNS: originalSetAttributeNodeNS$LWS
|
|
4999
5052
|
} = Element$LWS.prototype;
|
|
@@ -5017,7 +5070,7 @@ function distortionElementSetAttributeNodeNS$LWS(globalObject$LWS, options$LWS)
|
|
|
5017
5070
|
const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, attr$LWS, []);
|
|
5018
5071
|
const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, attr$LWS, []);
|
|
5019
5072
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
5020
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
5073
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS);
|
|
5021
5074
|
|
|
5022
5075
|
if (distortion$LWS) {
|
|
5023
5076
|
const oldAttr$LWS = ReflectApply$LWS(ElementProtoGetAttributeNodeNS$LWS, this, [attrNamespace$LWS, attrName$LWS]);
|
|
@@ -5058,13 +5111,12 @@ function distortionElementSetAttributeNodeNS$LWS(globalObject$LWS, options$LWS)
|
|
|
5058
5111
|
return [originalSetAttributeNodeNS$LWS, setAttributeNodeNS$LWS];
|
|
5059
5112
|
}
|
|
5060
5113
|
|
|
5061
|
-
function distortionElementSetAttributeNS$LWS(
|
|
5062
|
-
const {
|
|
5063
|
-
key: key$LWS
|
|
5064
|
-
} = options$LWS;
|
|
5114
|
+
function distortionElementSetAttributeNS$LWS(record$LWS) {
|
|
5065
5115
|
const {
|
|
5066
|
-
|
|
5067
|
-
|
|
5116
|
+
globalObject: {
|
|
5117
|
+
Element: Element$LWS
|
|
5118
|
+
}
|
|
5119
|
+
} = record$LWS;
|
|
5068
5120
|
const {
|
|
5069
5121
|
setAttributeNS: originalSetAttributeNS$LWS
|
|
5070
5122
|
} = Element$LWS.prototype;
|
|
@@ -5084,10 +5136,10 @@ function distortionElementSetAttributeNS$LWS(globalObject$LWS, options$LWS) {
|
|
|
5084
5136
|
attrNamespace$LWS = toString$LWS(attrNamespace$LWS);
|
|
5085
5137
|
}
|
|
5086
5138
|
|
|
5087
|
-
const attrName$LWS =
|
|
5139
|
+
const attrName$LWS = toString$LWS(args$LWS[1]);
|
|
5088
5140
|
const attrValue$LWS = toString$LWS(args$LWS[2]);
|
|
5089
5141
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
5090
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
5142
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
|
|
5091
5143
|
|
|
5092
5144
|
if (distortion$LWS) {
|
|
5093
5145
|
ReflectApply$LWS(distortion$LWS, this, [attrValue$LWS]);
|
|
@@ -5099,7 +5151,10 @@ function distortionElementSetAttributeNS$LWS(globalObject$LWS, options$LWS) {
|
|
|
5099
5151
|
{
|
|
5100
5152
|
// This is in a block to avoid requiring an "instanbul ignore next" for all for lines.
|
|
5101
5153
|
// We could avoid this entirely by testing the default platform behavior.
|
|
5102
|
-
args$LWS[0] = attrNamespace$LWS;
|
|
5154
|
+
args$LWS[0] = attrNamespace$LWS; // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
5155
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
5156
|
+
// such as svg element's "viewBox"
|
|
5157
|
+
|
|
5103
5158
|
args$LWS[1] = attrName$LWS;
|
|
5104
5159
|
args$LWS[2] = attrValue$LWS;
|
|
5105
5160
|
ReflectApply$LWS(originalSetAttributeNS$LWS, this, args$LWS);
|
|
@@ -5109,10 +5164,12 @@ function distortionElementSetAttributeNS$LWS(globalObject$LWS, options$LWS) {
|
|
|
5109
5164
|
return [originalSetAttributeNS$LWS, setAttributeNS$LWS];
|
|
5110
5165
|
}
|
|
5111
5166
|
|
|
5112
|
-
function distortionElementShadowRootGetter$LWS(
|
|
5167
|
+
function distortionElementShadowRootGetter$LWS(record$LWS) {
|
|
5113
5168
|
const {
|
|
5114
|
-
|
|
5115
|
-
|
|
5169
|
+
globalObject: {
|
|
5170
|
+
Element: Element$LWS
|
|
5171
|
+
}
|
|
5172
|
+
} = record$LWS;
|
|
5116
5173
|
const originalShadowRootGetter$LWS = ObjectLookupOwnGetter$LWS(Element$LWS.prototype, 'shadowRoot');
|
|
5117
5174
|
|
|
5118
5175
|
function shadowRoot$LWS() {
|
|
@@ -5122,13 +5179,12 @@ function distortionElementShadowRootGetter$LWS(globalObject$LWS) {
|
|
|
5122
5179
|
return [originalShadowRootGetter$LWS, shadowRoot$LWS];
|
|
5123
5180
|
}
|
|
5124
5181
|
|
|
5125
|
-
function distortionElementToggleAttribute$LWS(
|
|
5126
|
-
const {
|
|
5127
|
-
key: key$LWS
|
|
5128
|
-
} = options$LWS;
|
|
5182
|
+
function distortionElementToggleAttribute$LWS(record$LWS) {
|
|
5129
5183
|
const {
|
|
5130
|
-
|
|
5131
|
-
|
|
5184
|
+
globalObject: {
|
|
5185
|
+
Element: Element$LWS
|
|
5186
|
+
}
|
|
5187
|
+
} = record$LWS;
|
|
5132
5188
|
const {
|
|
5133
5189
|
hasAttribute: ElementProtoHasAttribute$LWS,
|
|
5134
5190
|
toggleAttribute: originalToggleAttribute$LWS
|
|
@@ -5140,8 +5196,8 @@ function distortionElementToggleAttribute$LWS(globalObject$LWS, options$LWS) {
|
|
|
5140
5196
|
} = args$LWS; // istanbul ignore else: needs default platform behavior test
|
|
5141
5197
|
|
|
5142
5198
|
if (length$LWS > 0) {
|
|
5143
|
-
const attrName$LWS =
|
|
5144
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
5199
|
+
const attrName$LWS = toString$LWS(args$LWS[0]);
|
|
5200
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, this, attrName$LWS); // istanbul ignore else: needs default platform behavior test
|
|
5145
5201
|
|
|
5146
5202
|
if (distortion$LWS) {
|
|
5147
5203
|
const distortionArgs$LWS = length$LWS > 1 ? [args$LWS[1]] : []; // Calling the distortion may end this execution entirely, if the distortion throws.
|
|
@@ -5150,7 +5206,10 @@ function distortionElementToggleAttribute$LWS(globalObject$LWS, options$LWS) {
|
|
|
5150
5206
|
// the presence or absence of this attribute.
|
|
5151
5207
|
|
|
5152
5208
|
return ReflectApply$LWS(ElementProtoHasAttribute$LWS, this, [attrName$LWS]);
|
|
5153
|
-
} //
|
|
5209
|
+
} // Cannot use the normalized attrNameDistortionKey because that value has been
|
|
5210
|
+
// lowercased, which may cause issues with case-sensitive attribute names
|
|
5211
|
+
// such as svg element's "viewBox"
|
|
5212
|
+
// istanbul ignore next: needs default platform behavior test
|
|
5154
5213
|
|
|
5155
5214
|
|
|
5156
5215
|
args$LWS[0] = attrName$LWS;
|
|
@@ -5161,6 +5220,22 @@ function distortionElementToggleAttribute$LWS(globalObject$LWS, options$LWS) {
|
|
|
5161
5220
|
};
|
|
5162
5221
|
|
|
5163
5222
|
return [originalToggleAttribute$LWS, toggleAttribute$LWS];
|
|
5223
|
+
}
|
|
5224
|
+
|
|
5225
|
+
function distortionEval$LWS(record$LWS) {
|
|
5226
|
+
const {
|
|
5227
|
+
UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
|
|
5228
|
+
globalObject: {
|
|
5229
|
+
eval: originalEval$LWS
|
|
5230
|
+
},
|
|
5231
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
5232
|
+
} = record$LWS;
|
|
5233
|
+
|
|
5234
|
+
function Eval$LWS(sourceText$LWS) {
|
|
5235
|
+
return sandboxEvaluator$LWS(transformUncompiledSourceText$LWS(toString$LWS(sourceText$LWS)), UNCOMPILED_CONTEXT$LWS);
|
|
5236
|
+
}
|
|
5237
|
+
|
|
5238
|
+
return [originalEval$LWS, Eval$LWS];
|
|
5164
5239
|
} // istanbul ignore next: LWS/Locker currently blocks CustomElementRegistry#define() and disables the composedPath tests
|
|
5165
5240
|
|
|
5166
5241
|
|
|
@@ -5189,10 +5264,12 @@ function createDistortedComposedPath$LWS(event$LWS) {
|
|
|
5189
5264
|
} // istanbul ignore next: LWS/Locker currently blocks CustomElementRegistry#define() and disables the composedPath tests
|
|
5190
5265
|
|
|
5191
5266
|
|
|
5192
|
-
function distortionEventComposedPath$LWS(
|
|
5267
|
+
function distortionEventComposedPath$LWS(record$LWS) {
|
|
5193
5268
|
const {
|
|
5194
|
-
|
|
5195
|
-
|
|
5269
|
+
globalObject: {
|
|
5270
|
+
Event: Event$LWS
|
|
5271
|
+
}
|
|
5272
|
+
} = record$LWS;
|
|
5196
5273
|
const {
|
|
5197
5274
|
composedPath: originalComposedPath$LWS
|
|
5198
5275
|
} = Event$LWS.prototype;
|
|
@@ -5205,10 +5282,12 @@ function distortionEventComposedPath$LWS(globalObject$LWS) {
|
|
|
5205
5282
|
} // istanbul ignore next: LWS/Locker currently blocks CustomElementRegistry#define() and disables the composedPath tests
|
|
5206
5283
|
|
|
5207
5284
|
|
|
5208
|
-
function distortionEventPathGetter$LWS(
|
|
5285
|
+
function distortionEventPathGetter$LWS(record$LWS) {
|
|
5209
5286
|
const {
|
|
5210
|
-
|
|
5211
|
-
|
|
5287
|
+
globalObject: {
|
|
5288
|
+
Event: Event$LWS
|
|
5289
|
+
}
|
|
5290
|
+
} = record$LWS;
|
|
5212
5291
|
const originalPathGetter$LWS = ObjectLookupOwnGetter$LWS(Event$LWS.prototype, 'path');
|
|
5213
5292
|
|
|
5214
5293
|
if (typeof originalPathGetter$LWS !== 'function') {
|
|
@@ -5222,13 +5301,12 @@ function distortionEventPathGetter$LWS(globalObject$LWS) {
|
|
|
5222
5301
|
return [originalPathGetter$LWS, path$LWS];
|
|
5223
5302
|
}
|
|
5224
5303
|
|
|
5225
|
-
function distortionEventTargetAddEventListener$LWS(
|
|
5226
|
-
const {
|
|
5227
|
-
key: key$LWS
|
|
5228
|
-
} = options$LWS;
|
|
5304
|
+
function distortionEventTargetAddEventListener$LWS(record$LWS) {
|
|
5229
5305
|
const {
|
|
5230
|
-
|
|
5231
|
-
|
|
5306
|
+
globalObject: {
|
|
5307
|
+
EventTarget: EventTarget$LWS
|
|
5308
|
+
}
|
|
5309
|
+
} = record$LWS;
|
|
5232
5310
|
const {
|
|
5233
5311
|
addEventListener: originalAddEventListener$LWS
|
|
5234
5312
|
} = EventTarget$LWS.prototype;
|
|
@@ -5241,11 +5319,9 @@ function distortionEventTargetAddEventListener$LWS(globalObject$LWS, options$LWS
|
|
|
5241
5319
|
// istanbul ignore else: needs default platform behavior test
|
|
5242
5320
|
|
|
5243
5321
|
if (length$LWS > 1) {
|
|
5244
|
-
const
|
|
5245
|
-
0: eventName$LWS
|
|
5246
|
-
} = args$LWS;
|
|
5322
|
+
const eventName$LWS = toString$LWS(args$LWS[0]);
|
|
5247
5323
|
|
|
5248
|
-
if (isEventTargetRestricted$LWS(this, eventName$LWS
|
|
5324
|
+
if (isEventTargetRestricted$LWS(record$LWS, this, eventName$LWS)) {
|
|
5249
5325
|
var _safeDesc$LWS;
|
|
5250
5326
|
|
|
5251
5327
|
const unsafeDesc$LWS = ReflectGetOwnPropertyDescriptor$LWS(this.constructor, 'name');
|
|
@@ -5264,6 +5340,8 @@ function distortionEventTargetAddEventListener$LWS(globalObject$LWS, options$LWS
|
|
|
5264
5340
|
|
|
5265
5341
|
throw new LockerSecurityError$LWS(`${exceptionMessage$LWS}.`);
|
|
5266
5342
|
}
|
|
5343
|
+
|
|
5344
|
+
args$LWS[0] = eventName$LWS;
|
|
5267
5345
|
}
|
|
5268
5346
|
|
|
5269
5347
|
return ReflectApply$LWS(originalAddEventListener$LWS, this, args$LWS);
|
|
@@ -5272,10 +5350,41 @@ function distortionEventTargetAddEventListener$LWS(globalObject$LWS, options$LWS
|
|
|
5272
5350
|
return [originalAddEventListener$LWS, addEventListener$LWS];
|
|
5273
5351
|
}
|
|
5274
5352
|
|
|
5275
|
-
function
|
|
5353
|
+
function distortionFunction$LWS(record$LWS) {
|
|
5276
5354
|
const {
|
|
5277
|
-
|
|
5278
|
-
|
|
5355
|
+
UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
|
|
5356
|
+
globalObject: {
|
|
5357
|
+
Function: originalFunction$LWS
|
|
5358
|
+
},
|
|
5359
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
5360
|
+
} = record$LWS;
|
|
5361
|
+
|
|
5362
|
+
function Function$LWS(...args$LWS) {
|
|
5363
|
+
const {
|
|
5364
|
+
length: length$LWS
|
|
5365
|
+
} = args$LWS;
|
|
5366
|
+
|
|
5367
|
+
if (length$LWS) {
|
|
5368
|
+
const lastIndex$LWS = length$LWS - 1;
|
|
5369
|
+
args$LWS[lastIndex$LWS] = transformUncompiledSourceText$LWS(toString$LWS(args$LWS[lastIndex$LWS]));
|
|
5370
|
+
} // NOTE: Function constructor and eval are controlled by the same CSP rules,
|
|
5371
|
+
// which means we can rely on eval to fulfill the behavior of the Function
|
|
5372
|
+
// constructor.
|
|
5373
|
+
|
|
5374
|
+
|
|
5375
|
+
const fn$LWS = sandboxEvaluator$LWS(`(...args) => Function(...args)`, UNCOMPILED_CONTEXT$LWS);
|
|
5376
|
+
return ReflectApply$LWS(fn$LWS, this, args$LWS);
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
return [originalFunction$LWS, Function$LWS];
|
|
5380
|
+
}
|
|
5381
|
+
|
|
5382
|
+
function distortionHistoryPushState$LWS(record$LWS) {
|
|
5383
|
+
const {
|
|
5384
|
+
globalObject: {
|
|
5385
|
+
History: History$LWS
|
|
5386
|
+
}
|
|
5387
|
+
} = record$LWS;
|
|
5279
5388
|
const {
|
|
5280
5389
|
pushState: originalPushState$LWS
|
|
5281
5390
|
} = History$LWS.prototype;
|
|
@@ -5291,10 +5400,12 @@ function distortionHistoryPushState$LWS(globalObject$LWS) {
|
|
|
5291
5400
|
return [originalPushState$LWS, pushState$LWS];
|
|
5292
5401
|
}
|
|
5293
5402
|
|
|
5294
|
-
function distortionHistoryReplaceState$LWS(
|
|
5403
|
+
function distortionHistoryReplaceState$LWS(record$LWS) {
|
|
5295
5404
|
const {
|
|
5296
|
-
|
|
5297
|
-
|
|
5405
|
+
globalObject: {
|
|
5406
|
+
History: History$LWS
|
|
5407
|
+
}
|
|
5408
|
+
} = record$LWS;
|
|
5298
5409
|
const {
|
|
5299
5410
|
replaceState: originalReplaceState$LWS
|
|
5300
5411
|
} = History$LWS.prototype;
|
|
@@ -5310,10 +5421,12 @@ function distortionHistoryReplaceState$LWS(globalObject$LWS) {
|
|
|
5310
5421
|
return [originalReplaceState$LWS, replaceState$LWS];
|
|
5311
5422
|
}
|
|
5312
5423
|
|
|
5313
|
-
function distortionHTMLElementDatasetGetter$LWS(
|
|
5424
|
+
function distortionHTMLElementDatasetGetter$LWS(record$LWS) {
|
|
5314
5425
|
const {
|
|
5315
|
-
|
|
5316
|
-
|
|
5426
|
+
globalObject: {
|
|
5427
|
+
HTMLElement: HTMLElement$LWS
|
|
5428
|
+
}
|
|
5429
|
+
} = record$LWS;
|
|
5317
5430
|
const originalDatasetGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLElement$LWS.prototype, 'dataset');
|
|
5318
5431
|
|
|
5319
5432
|
function dataset$LWS() {
|
|
@@ -5323,10 +5436,12 @@ function distortionHTMLElementDatasetGetter$LWS(globalObject$LWS) {
|
|
|
5323
5436
|
return [originalDatasetGetter$LWS, dataset$LWS];
|
|
5324
5437
|
}
|
|
5325
5438
|
|
|
5326
|
-
function distortionHTMLElementInnerTextSetter$LWS(
|
|
5439
|
+
function distortionHTMLElementInnerTextSetter$LWS(record$LWS) {
|
|
5327
5440
|
const {
|
|
5328
|
-
|
|
5329
|
-
|
|
5441
|
+
globalObject: {
|
|
5442
|
+
HTMLElement: HTMLElement$LWS
|
|
5443
|
+
}
|
|
5444
|
+
} = record$LWS;
|
|
5330
5445
|
const originalInnerTextSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLElement$LWS.prototype, 'innerText'); // istanbul ignore if: currently unreachable via tests
|
|
5331
5446
|
|
|
5332
5447
|
if (typeof originalInnerTextSetter$LWS !== 'function') {
|
|
@@ -5341,7 +5456,7 @@ function distortionHTMLElementInnerTextSetter$LWS(globalObject$LWS) {
|
|
|
5341
5456
|
|
|
5342
5457
|
const {
|
|
5343
5458
|
isSharedElement: isSharedElement$LWS
|
|
5344
|
-
} = getValidator$LWS(
|
|
5459
|
+
} = getValidator$LWS(record$LWS.top);
|
|
5345
5460
|
|
|
5346
5461
|
const innerText$LWS = function innerText$LWS(value$LWS) {
|
|
5347
5462
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -5358,10 +5473,12 @@ function distortionHTMLElementInnerTextSetter$LWS(globalObject$LWS) {
|
|
|
5358
5473
|
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/outerText#Browser_compatibility
|
|
5359
5474
|
|
|
5360
5475
|
|
|
5361
|
-
function distortionHTMLElementOuterTextSetter$LWS(
|
|
5476
|
+
function distortionHTMLElementOuterTextSetter$LWS(record$LWS) {
|
|
5362
5477
|
const {
|
|
5363
|
-
|
|
5364
|
-
|
|
5478
|
+
globalObject: {
|
|
5479
|
+
HTMLElement: HTMLElement$LWS
|
|
5480
|
+
}
|
|
5481
|
+
} = record$LWS;
|
|
5365
5482
|
const originalOuterTextSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLElement$LWS.prototype, 'outerText'); // istanbul ignore if: currently unreachable via tests
|
|
5366
5483
|
|
|
5367
5484
|
if (typeof originalOuterTextSetter$LWS !== 'function') {
|
|
@@ -5376,7 +5493,7 @@ function distortionHTMLElementOuterTextSetter$LWS(globalObject$LWS) {
|
|
|
5376
5493
|
|
|
5377
5494
|
const {
|
|
5378
5495
|
isSharedElement: isSharedElement$LWS
|
|
5379
|
-
} = getValidator$LWS(
|
|
5496
|
+
} = getValidator$LWS(record$LWS.top);
|
|
5380
5497
|
|
|
5381
5498
|
const outerText$LWS = function outerText$LWS(value$LWS) {
|
|
5382
5499
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -5390,10 +5507,12 @@ function distortionHTMLElementOuterTextSetter$LWS(globalObject$LWS) {
|
|
|
5390
5507
|
return [originalOuterTextSetter$LWS, outerText$LWS];
|
|
5391
5508
|
}
|
|
5392
5509
|
|
|
5393
|
-
function distortionHTMLElementStyleGetter$LWS(
|
|
5510
|
+
function distortionHTMLElementStyleGetter$LWS(record$LWS) {
|
|
5394
5511
|
const {
|
|
5395
|
-
|
|
5396
|
-
|
|
5512
|
+
globalObject: {
|
|
5513
|
+
HTMLElement: HTMLElement$LWS
|
|
5514
|
+
}
|
|
5515
|
+
} = record$LWS;
|
|
5397
5516
|
const originalStyleGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLElement$LWS.prototype, 'style');
|
|
5398
5517
|
|
|
5399
5518
|
function style$LWS() {
|
|
@@ -5403,10 +5522,12 @@ function distortionHTMLElementStyleGetter$LWS(globalObject$LWS) {
|
|
|
5403
5522
|
return [originalStyleGetter$LWS, style$LWS];
|
|
5404
5523
|
}
|
|
5405
5524
|
|
|
5406
|
-
function distortionHTMLIFrameElementSrcSetter$LWS(
|
|
5525
|
+
function distortionHTMLIFrameElementSrcSetter$LWS(record$LWS) {
|
|
5407
5526
|
const {
|
|
5408
|
-
|
|
5409
|
-
|
|
5527
|
+
globalObject: {
|
|
5528
|
+
HTMLIFrameElement: HTMLIFrameElement$LWS
|
|
5529
|
+
}
|
|
5530
|
+
} = record$LWS;
|
|
5410
5531
|
const originalSrcSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLIFrameElement$LWS.prototype, 'src');
|
|
5411
5532
|
|
|
5412
5533
|
function src$LWS(value$LWS) {
|
|
@@ -5419,7 +5540,7 @@ function distortionHTMLIFrameElementSrcSetter$LWS(globalObject$LWS) {
|
|
|
5419
5540
|
ReflectApply$LWS(HTMLIFrameElementProtoSrcSetter$LWS, this, [urlString$LWS]);
|
|
5420
5541
|
}
|
|
5421
5542
|
|
|
5422
|
-
registerElementSetDistortion$LWS(
|
|
5543
|
+
registerElementSetDistortion$LWS(record$LWS, HTMLIFrameElement$LWS, 'src', NAMESPACE_DEFAULT$LWS, src$LWS);
|
|
5423
5544
|
return [originalSrcSetter$LWS, src$LWS];
|
|
5424
5545
|
}
|
|
5425
5546
|
|
|
@@ -5430,10 +5551,12 @@ function isValidRelValue$LWS(value$LWS) {
|
|
|
5430
5551
|
return typeof value$LWS !== 'string' || !ReflectApply$LWS(RegExpProtoTest$LWS, importRegExp$LWS, [value$LWS]);
|
|
5431
5552
|
}
|
|
5432
5553
|
|
|
5433
|
-
function distortionHTMLLinkElementRelSetter$LWS(
|
|
5554
|
+
function distortionHTMLLinkElementRelSetter$LWS(record$LWS) {
|
|
5434
5555
|
const {
|
|
5435
|
-
|
|
5436
|
-
|
|
5556
|
+
globalObject: {
|
|
5557
|
+
HTMLLinkElement: HTMLLinkElement$LWS
|
|
5558
|
+
}
|
|
5559
|
+
} = record$LWS;
|
|
5437
5560
|
const originalRelSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLLinkElement$LWS.prototype, 'rel');
|
|
5438
5561
|
|
|
5439
5562
|
function rel$LWS(value$LWS) {
|
|
@@ -5447,15 +5570,17 @@ function distortionHTMLLinkElementRelSetter$LWS(globalObject$LWS) {
|
|
|
5447
5570
|
consoleWarn$LWS(WARN_MESSAGE$LWS);
|
|
5448
5571
|
}
|
|
5449
5572
|
|
|
5450
|
-
registerElementSetDistortion$LWS(
|
|
5573
|
+
registerElementSetDistortion$LWS(record$LWS, HTMLLinkElement$LWS, 'rel', NAMESPACE_DEFAULT$LWS, rel$LWS);
|
|
5451
5574
|
return [originalRelSetter$LWS, rel$LWS];
|
|
5452
5575
|
}
|
|
5453
5576
|
|
|
5454
|
-
function distortionHTMLLinkElementRelListSetter$LWS(
|
|
5577
|
+
function distortionHTMLLinkElementRelListSetter$LWS(record$LWS) {
|
|
5455
5578
|
const {
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5579
|
+
globalObject: {
|
|
5580
|
+
DOMTokenList: DOMTokenList$LWS,
|
|
5581
|
+
HTMLLinkElement: HTMLLinkElement$LWS
|
|
5582
|
+
}
|
|
5583
|
+
} = record$LWS;
|
|
5459
5584
|
const originalRelListSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLLinkElement$LWS.prototype, 'relList');
|
|
5460
5585
|
|
|
5461
5586
|
function relList$LWS(relListValue$LWS) {
|
|
@@ -5474,16 +5599,46 @@ function distortionHTMLLinkElementRelListSetter$LWS(globalObject$LWS) {
|
|
|
5474
5599
|
return [originalRelListSetter$LWS, relList$LWS];
|
|
5475
5600
|
}
|
|
5476
5601
|
|
|
5602
|
+
function distortionHTMLObjectElementDataSetter$LWS(record$LWS) {
|
|
5603
|
+
const {
|
|
5604
|
+
globalObject: {
|
|
5605
|
+
HTMLObjectElement: HTMLObjectElement$LWS
|
|
5606
|
+
}
|
|
5607
|
+
} = record$LWS;
|
|
5608
|
+
const originalDataSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLObjectElement$LWS.prototype, 'data');
|
|
5609
|
+
|
|
5610
|
+
function data$LWS(value$LWS) {
|
|
5611
|
+
const urlString$LWS = sanitizeURLForElement$LWS(value$LWS);
|
|
5612
|
+
|
|
5613
|
+
if (!isValidURLScheme$LWS(urlString$LWS)) {
|
|
5614
|
+
throw new LockerSecurityError$LWS('HTMLObjectElement.data supports http://, https:// schemes and relative urls.');
|
|
5615
|
+
}
|
|
5616
|
+
|
|
5617
|
+
const parsedURL$LWS = parseURL$LWS(urlString$LWS);
|
|
5618
|
+
|
|
5619
|
+
if (!isValidURL$LWS(parsedURL$LWS)) {
|
|
5620
|
+
throw new LockerSecurityError$LWS(`Cannot request disallowed endpoint: ${parsedURL$LWS.normalizedURL}`);
|
|
5621
|
+
}
|
|
5622
|
+
|
|
5623
|
+
ReflectApply$LWS(originalDataSetter$LWS, this, [urlString$LWS]);
|
|
5624
|
+
}
|
|
5625
|
+
|
|
5626
|
+
registerElementSetDistortion$LWS(record$LWS, HTMLObjectElement$LWS, 'data', NAMESPACE_DEFAULT$LWS, data$LWS);
|
|
5627
|
+
return [originalDataSetter$LWS, data$LWS];
|
|
5628
|
+
}
|
|
5629
|
+
|
|
5477
5630
|
function getDatasetSrcValue$LWS(el$LWS) {
|
|
5478
5631
|
const dataset$LWS = ReflectApply$LWS(HTMLElementProtoDatasetGetter$LWS, el$LWS, []);
|
|
5479
5632
|
const distortedSrc$LWS = ObjectLookupOwnValue$LWS(dataset$LWS, 'distortedSrc');
|
|
5480
5633
|
return distortedSrc$LWS === undefined ? '' : distortedSrc$LWS;
|
|
5481
5634
|
}
|
|
5482
5635
|
|
|
5483
|
-
function distortionHTMLScriptElementSrcGetter$LWS(
|
|
5636
|
+
function distortionHTMLScriptElementSrcGetter$LWS(record$LWS) {
|
|
5484
5637
|
const {
|
|
5485
|
-
|
|
5486
|
-
|
|
5638
|
+
globalObject: {
|
|
5639
|
+
HTMLScriptElement: HTMLScriptElement$LWS
|
|
5640
|
+
}
|
|
5641
|
+
} = record$LWS;
|
|
5487
5642
|
const originalSrcGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLScriptElement$LWS.prototype, 'src');
|
|
5488
5643
|
|
|
5489
5644
|
function src$LWS() {
|
|
@@ -5493,49 +5648,18 @@ function distortionHTMLScriptElementSrcGetter$LWS(globalObject$LWS) {
|
|
|
5493
5648
|
return [originalSrcGetter$LWS, src$LWS];
|
|
5494
5649
|
}
|
|
5495
5650
|
|
|
5651
|
+
const SCRIPT_PAYLOAD_NAME$LWS = '$payload$';
|
|
5496
5652
|
const SCRIPT_EVALUATOR_PROPERTY_NAME$LWS = '$evaluator$';
|
|
5497
5653
|
const SCRIPT_BLOB_OPTIONS$LWS = {
|
|
5498
5654
|
__proto__: null,
|
|
5499
5655
|
type: 'text/javascript'
|
|
5500
|
-
}; // istanbul ignore next
|
|
5501
|
-
|
|
5502
|
-
const SCRIPT_BLOB_TEMPLATE$LWS = `{${extractFunctionBodySource$LWS(() => {
|
|
5503
|
-
/* eslint-disable prefer-object-spread */
|
|
5504
|
-
// The SCRIPT_EVALUATOR_PROPERTY_NAME is removed from the current script
|
|
5505
|
-
// on first access.
|
|
5506
|
-
document.currentScript[2
|
|
5507
|
-
/* EvaluatorNameLiteral */
|
|
5508
|
-
]( // source
|
|
5509
|
-
decodeURIComponent(1
|
|
5510
|
-
/* EvalSourceText */
|
|
5511
|
-
), // context
|
|
5512
|
-
0
|
|
5513
|
-
/* EvalContextText */
|
|
5514
|
-
);
|
|
5515
|
-
/* eslint-enable prefer-object-spread */
|
|
5516
|
-
})}}`;
|
|
5517
|
-
const scriptBlobTemplateData$LWS = {
|
|
5518
|
-
__proto__: null,
|
|
5519
|
-
[0
|
|
5520
|
-
/* EvalContextText */
|
|
5521
|
-
]: `{${UNCOMPILED_LOCATION_NAME$LWS}:location}`,
|
|
5522
|
-
[1
|
|
5523
|
-
/* EvalSourceText */
|
|
5524
|
-
]: '',
|
|
5525
|
-
[2
|
|
5526
|
-
/* EvaluatorNameLiteral */
|
|
5527
|
-
]: enquote$LWS(SCRIPT_EVALUATOR_PROPERTY_NAME$LWS)
|
|
5528
|
-
};
|
|
5529
|
-
const scriptBlobTemplateRegExp$LWS = /\b(?:[0-9]|[1-9][0-9]+)\b/g;
|
|
5530
|
-
|
|
5531
|
-
const scriptBlobTemplateReplacement$LWS = digit$LWS => {
|
|
5532
|
-
var _scriptBlobTemplateDa$LWS;
|
|
5533
|
-
|
|
5534
|
-
return (_scriptBlobTemplateDa$LWS = scriptBlobTemplateData$LWS[digit$LWS]) != null ? _scriptBlobTemplateDa$LWS : digit$LWS;
|
|
5535
5656
|
};
|
|
5657
|
+
const SCRIPT_BLOB_TEMPLATE$LWS = `document.currentScript[${enquote$LWS(SCRIPT_EVALUATOR_PROPERTY_NAME$LWS)}](decodeURIComponent(${// Enquote with double quotes because `WindowEncodeURIComponent()` encodes
|
|
5658
|
+
// double quotes (") as (%22).
|
|
5659
|
+
enquote$LWS(SCRIPT_PAYLOAD_NAME$LWS, CHAR_QUOTE_DOUBLE$LWS)}))`;
|
|
5536
5660
|
|
|
5537
5661
|
function abstractFactoryValueThrower$LWS(proto$LWS, propName$LWS) {
|
|
5538
|
-
return function valueThrowerDistortionFactory$LWS(
|
|
5662
|
+
return function valueThrowerDistortionFactory$LWS(_record$LWS) {
|
|
5539
5663
|
const {
|
|
5540
5664
|
[propName$LWS]: originalValue$LWS
|
|
5541
5665
|
} = proto$LWS;
|
|
@@ -5549,7 +5673,7 @@ function abstractFactoryValueThrower$LWS(proto$LWS, propName$LWS) {
|
|
|
5549
5673
|
}
|
|
5550
5674
|
|
|
5551
5675
|
function abstractFactoryGetThrower$LWS(proto$LWS, propName$LWS) {
|
|
5552
|
-
return function getThrowerDistortionFactory$LWS(
|
|
5676
|
+
return function getThrowerDistortionFactory$LWS(_record$LWS) {
|
|
5553
5677
|
const originalGet$LWS = ObjectLookupOwnGetter$LWS(proto$LWS, propName$LWS);
|
|
5554
5678
|
|
|
5555
5679
|
function get$LWS() {
|
|
@@ -5561,7 +5685,7 @@ function abstractFactoryGetThrower$LWS(proto$LWS, propName$LWS) {
|
|
|
5561
5685
|
}
|
|
5562
5686
|
|
|
5563
5687
|
function abstractFactorySetThrower$LWS(proto$LWS, propName$LWS) {
|
|
5564
|
-
return function setThrowerDistortionFactory$LWS(
|
|
5688
|
+
return function setThrowerDistortionFactory$LWS(_record$LWS) {
|
|
5565
5689
|
const originalSet$LWS = ObjectLookupOwnSetter$LWS(proto$LWS, propName$LWS);
|
|
5566
5690
|
|
|
5567
5691
|
function set$LWS() {
|
|
@@ -5578,10 +5702,7 @@ function abstractFactorySetThrower$LWS(proto$LWS, propName$LWS) {
|
|
|
5578
5702
|
|
|
5579
5703
|
|
|
5580
5704
|
function createScriptUrl$LWS(sourceText$LWS) {
|
|
5581
|
-
|
|
5582
|
-
/* EvalSourceText */
|
|
5583
|
-
] = enquote$LWS(WindowEncodeURIComponent$LWS(transformUncompiledSource$LWS(sourceText$LWS)));
|
|
5584
|
-
return URLCreateObjectURL$LWS(new BlobCtor$LWS([ReflectApply$LWS(StringProtoReplace$LWS, SCRIPT_BLOB_TEMPLATE$LWS, [scriptBlobTemplateRegExp$LWS, scriptBlobTemplateReplacement$LWS])], SCRIPT_BLOB_OPTIONS$LWS));
|
|
5705
|
+
return URLCreateObjectURL$LWS(new BlobCtor$LWS([ReflectApply$LWS(StringProtoReplace$LWS, SCRIPT_BLOB_TEMPLATE$LWS, [SCRIPT_PAYLOAD_NAME$LWS, WindowEncodeURIComponent$LWS(sourceText$LWS)])], SCRIPT_BLOB_OPTIONS$LWS));
|
|
5585
5706
|
}
|
|
5586
5707
|
|
|
5587
5708
|
function createBlockedPropertyDistortionFactories$LWS(proto$LWS, propertyList$LWS, factories$LWS = []) {
|
|
@@ -5629,9 +5750,12 @@ function createBlockedPropertyDistortionFactories$LWS(proto$LWS, propertyList$LW
|
|
|
5629
5750
|
return factories$LWS;
|
|
5630
5751
|
}
|
|
5631
5752
|
|
|
5632
|
-
function createScriptDistortion$LWS(
|
|
5633
|
-
const
|
|
5634
|
-
|
|
5753
|
+
function createScriptDistortion$LWS(record$LWS, attributeName$LWS, datasetGetter$LWS) {
|
|
5754
|
+
const {
|
|
5755
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
5756
|
+
} = record$LWS;
|
|
5757
|
+
const distortionName$LWS = `script${capitalizeFirstChar$LWS(attributeName$LWS)}`;
|
|
5758
|
+
const normalizerAnchor$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, document, ['a']); // Use a computed property to dynamically set the distortion function name
|
|
5635
5759
|
// without using Reflect.defineProperty().
|
|
5636
5760
|
|
|
5637
5761
|
const {
|
|
@@ -5674,8 +5798,14 @@ function createScriptDistortion$LWS(attributeName$LWS, datasetGetter$LWS, evalua
|
|
|
5674
5798
|
get: ReflectApply$LWS(FunctionProtoBind$LWS, () => {
|
|
5675
5799
|
ReflectDeleteProperty$LWS(this, SCRIPT_EVALUATOR_PROPERTY_NAME$LWS);
|
|
5676
5800
|
const ownerDoc$LWS = ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, this, []);
|
|
5677
|
-
const
|
|
5678
|
-
|
|
5801
|
+
const defaultView$LWS = ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, ownerDoc$LWS, []); // We don't need to use something like
|
|
5802
|
+
// `WindowLocationGetter()` because the
|
|
5803
|
+
// 'location' property is non-configurable.
|
|
5804
|
+
|
|
5805
|
+
const context$LWS = {
|
|
5806
|
+
[UNCOMPILED_LOCATION_NAME$LWS]: defaultView$LWS.location
|
|
5807
|
+
};
|
|
5808
|
+
return sourceText$LWS => sandboxEvaluator$LWS(transformUncompiledSourceText$LWS(toString$LWS(sourceText$LWS)), context$LWS, defaultView$LWS, ownerDoc$LWS);
|
|
5679
5809
|
}, [this])
|
|
5680
5810
|
});
|
|
5681
5811
|
ReflectApply$LWS(ElementProtoSetAttributeNS$LWS, this, [attributeNamespaceURI$LWS, attributeName$LWS, createScriptUrl$LWS(responseText$LWS)]);
|
|
@@ -5698,7 +5828,7 @@ function createScriptDistortion$LWS(attributeName$LWS, datasetGetter$LWS, evalua
|
|
|
5698
5828
|
return distortion$LWS;
|
|
5699
5829
|
}
|
|
5700
5830
|
|
|
5701
|
-
function distortBlockedAttributes$LWS(
|
|
5831
|
+
function distortBlockedAttributes$LWS(record$LWS, Ctor$LWS, attributes$LWS, elNamespace$LWS = NAMESPACE_DEFAULT$LWS) {
|
|
5702
5832
|
for (let i$LWS = 0, {
|
|
5703
5833
|
length: length$LWS
|
|
5704
5834
|
} = attributes$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
@@ -5715,27 +5845,28 @@ function distortBlockedAttributes$LWS(globalObject$LWS, Ctor$LWS, attributes$LWS
|
|
|
5715
5845
|
throw new LockerSecurityError$LWS(`Attribute ${enquotedAttributeName$LWS} not allowed on ${safeCtorName$LWS}.`);
|
|
5716
5846
|
}
|
|
5717
5847
|
};
|
|
5718
|
-
registerElementSetDistortion$LWS(
|
|
5848
|
+
registerElementSetDistortion$LWS(record$LWS, Ctor$LWS, attributeName$LWS, elNamespace$LWS, distortion$LWS);
|
|
5719
5849
|
}
|
|
5720
5850
|
}
|
|
5721
5851
|
|
|
5722
|
-
function distortionHTMLScriptElementSrcSetter$LWS(
|
|
5723
|
-
const {
|
|
5724
|
-
evaluator: evaluator$LWS
|
|
5725
|
-
} = options$LWS;
|
|
5852
|
+
function distortionHTMLScriptElementSrcSetter$LWS(record$LWS) {
|
|
5726
5853
|
const {
|
|
5727
|
-
|
|
5728
|
-
|
|
5854
|
+
globalObject: {
|
|
5855
|
+
HTMLScriptElement: HTMLScriptElement$LWS
|
|
5856
|
+
}
|
|
5857
|
+
} = record$LWS;
|
|
5729
5858
|
const originalSrcSetter$LWS = ObjectLookupOwnSetter$LWS(HTMLScriptElement$LWS.prototype, 'src');
|
|
5730
|
-
const src$LWS = createScriptDistortion$LWS('src', HTMLElementProtoDatasetGetter$LWS
|
|
5731
|
-
registerElementSetDistortion$LWS(
|
|
5859
|
+
const src$LWS = createScriptDistortion$LWS(record$LWS, 'src', HTMLElementProtoDatasetGetter$LWS);
|
|
5860
|
+
registerElementSetDistortion$LWS(record$LWS, HTMLScriptElement$LWS, 'src', NAMESPACE_DEFAULT$LWS, src$LWS);
|
|
5732
5861
|
return [originalSrcSetter$LWS, src$LWS];
|
|
5733
5862
|
}
|
|
5734
5863
|
|
|
5735
|
-
function distortionIDBObjectStoreAdd$LWS(
|
|
5864
|
+
function distortionIDBObjectStoreAdd$LWS(record$LWS) {
|
|
5736
5865
|
const {
|
|
5737
|
-
|
|
5738
|
-
|
|
5866
|
+
globalObject: {
|
|
5867
|
+
IDBObjectStore: IDBObjectStore$LWS
|
|
5868
|
+
}
|
|
5869
|
+
} = record$LWS;
|
|
5739
5870
|
const {
|
|
5740
5871
|
add: originalAdd$LWS
|
|
5741
5872
|
} = IDBObjectStore$LWS.prototype;
|
|
@@ -5752,10 +5883,12 @@ function distortionIDBObjectStoreAdd$LWS(globalObject$LWS) {
|
|
|
5752
5883
|
return [originalAdd$LWS, add$LWS];
|
|
5753
5884
|
}
|
|
5754
5885
|
|
|
5755
|
-
function distortionIDBObjectStorePut$LWS(
|
|
5886
|
+
function distortionIDBObjectStorePut$LWS(record$LWS) {
|
|
5756
5887
|
const {
|
|
5757
|
-
|
|
5758
|
-
|
|
5888
|
+
globalObject: {
|
|
5889
|
+
IDBObjectStore: IDBObjectStore$LWS
|
|
5890
|
+
}
|
|
5891
|
+
} = record$LWS;
|
|
5759
5892
|
const {
|
|
5760
5893
|
put: originalPut$LWS
|
|
5761
5894
|
} = IDBObjectStore$LWS.prototype;
|
|
@@ -5772,14 +5905,13 @@ function distortionIDBObjectStorePut$LWS(globalObject$LWS) {
|
|
|
5772
5905
|
return [originalPut$LWS, put$LWS];
|
|
5773
5906
|
}
|
|
5774
5907
|
|
|
5775
|
-
function distortionNamedNodeMapSetNamedItem$LWS(
|
|
5908
|
+
function distortionNamedNodeMapSetNamedItem$LWS(record$LWS) {
|
|
5776
5909
|
const {
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
} = globalObject$LWS;
|
|
5910
|
+
globalObject: {
|
|
5911
|
+
Attr: Attr$LWS,
|
|
5912
|
+
NamedNodeMap: NamedNodeMap$LWS
|
|
5913
|
+
}
|
|
5914
|
+
} = record$LWS;
|
|
5783
5915
|
const {
|
|
5784
5916
|
setNamedItem: originalSetNamedItem$LWS
|
|
5785
5917
|
} = NamedNodeMap$LWS.prototype;
|
|
@@ -5788,7 +5920,7 @@ function distortionNamedNodeMapSetNamedItem$LWS(globalObject$LWS, options$LWS) {
|
|
|
5788
5920
|
const attr$LWS = args$LWS.length ? args$LWS[0] : undefined;
|
|
5789
5921
|
|
|
5790
5922
|
if (attr$LWS && attr$LWS instanceof Attr$LWS) {
|
|
5791
|
-
return setNamedItemWithAttr$LWS(
|
|
5923
|
+
return setNamedItemWithAttr$LWS(record$LWS, originalSetNamedItem$LWS, this, attr$LWS);
|
|
5792
5924
|
}
|
|
5793
5925
|
|
|
5794
5926
|
return ReflectApply$LWS(originalSetNamedItem$LWS, this, args$LWS);
|
|
@@ -5797,14 +5929,13 @@ function distortionNamedNodeMapSetNamedItem$LWS(globalObject$LWS, options$LWS) {
|
|
|
5797
5929
|
return [originalSetNamedItem$LWS, setNamedItem$LWS];
|
|
5798
5930
|
}
|
|
5799
5931
|
|
|
5800
|
-
function distortionNamedNodeMapSetNamedItemNS$LWS(
|
|
5801
|
-
const {
|
|
5802
|
-
key: key$LWS
|
|
5803
|
-
} = options$LWS;
|
|
5932
|
+
function distortionNamedNodeMapSetNamedItemNS$LWS(record$LWS) {
|
|
5804
5933
|
const {
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5934
|
+
globalObject: {
|
|
5935
|
+
Attr: Attr$LWS,
|
|
5936
|
+
NamedNodeMap: NamedNodeMap$LWS
|
|
5937
|
+
}
|
|
5938
|
+
} = record$LWS;
|
|
5808
5939
|
const {
|
|
5809
5940
|
setNamedItemNS: originalSetNamedItemNS$LWS
|
|
5810
5941
|
} = NamedNodeMap$LWS.prototype;
|
|
@@ -5813,7 +5944,7 @@ function distortionNamedNodeMapSetNamedItemNS$LWS(globalObject$LWS, options$LWS)
|
|
|
5813
5944
|
const attr$LWS = args$LWS.length ? args$LWS[0] : undefined;
|
|
5814
5945
|
|
|
5815
5946
|
if (attr$LWS && attr$LWS instanceof Attr$LWS) {
|
|
5816
|
-
return setNamedItemWithAttr$LWS(
|
|
5947
|
+
return setNamedItemWithAttr$LWS(record$LWS, originalSetNamedItemNS$LWS, this, attr$LWS);
|
|
5817
5948
|
}
|
|
5818
5949
|
|
|
5819
5950
|
return ReflectApply$LWS(originalSetNamedItemNS$LWS, this, args$LWS);
|
|
@@ -5822,10 +5953,12 @@ function distortionNamedNodeMapSetNamedItemNS$LWS(globalObject$LWS, options$LWS)
|
|
|
5822
5953
|
return [originalSetNamedItemNS$LWS, setNamedItemNS$LWS];
|
|
5823
5954
|
}
|
|
5824
5955
|
|
|
5825
|
-
function distortionNavigatorSendBeacon$LWS(
|
|
5956
|
+
function distortionNavigatorSendBeacon$LWS(record$LWS) {
|
|
5826
5957
|
const {
|
|
5827
|
-
|
|
5828
|
-
|
|
5958
|
+
globalObject: {
|
|
5959
|
+
Navigator: Navigator$LWS
|
|
5960
|
+
}
|
|
5961
|
+
} = record$LWS;
|
|
5829
5962
|
const {
|
|
5830
5963
|
sendBeacon: originalSendBeacon$LWS
|
|
5831
5964
|
} = Navigator$LWS.prototype;
|
|
@@ -5847,10 +5980,12 @@ function distortionNavigatorSendBeacon$LWS(globalObject$LWS) {
|
|
|
5847
5980
|
return [originalSendBeacon$LWS, sendBeacon$LWS];
|
|
5848
5981
|
}
|
|
5849
5982
|
|
|
5850
|
-
function distortionNavigatorServiceWorkerGetter$LWS(
|
|
5983
|
+
function distortionNavigatorServiceWorkerGetter$LWS(record$LWS) {
|
|
5851
5984
|
const {
|
|
5852
|
-
|
|
5853
|
-
|
|
5985
|
+
globalObject: {
|
|
5986
|
+
Navigator: Navigator$LWS
|
|
5987
|
+
}
|
|
5988
|
+
} = record$LWS;
|
|
5854
5989
|
const originalServiceWorkerGetter$LWS = ObjectLookupOwnGetter$LWS(Navigator$LWS.prototype, 'serviceWorker'); // istanbul ignore if: needs default platform behavior test
|
|
5855
5990
|
|
|
5856
5991
|
if (typeof originalServiceWorkerGetter$LWS !== 'function') {
|
|
@@ -5862,10 +5997,12 @@ function distortionNavigatorServiceWorkerGetter$LWS(globalObject$LWS) {
|
|
|
5862
5997
|
return [originalServiceWorkerGetter$LWS, get$LWS];
|
|
5863
5998
|
}
|
|
5864
5999
|
|
|
5865
|
-
function distortionNodeInsertBefore$LWS(
|
|
6000
|
+
function distortionNodeInsertBefore$LWS(record$LWS) {
|
|
5866
6001
|
const {
|
|
5867
|
-
|
|
5868
|
-
|
|
6002
|
+
globalObject: {
|
|
6003
|
+
Node: Node$LWS
|
|
6004
|
+
}
|
|
6005
|
+
} = record$LWS;
|
|
5869
6006
|
const {
|
|
5870
6007
|
insertBefore: originalInsertBefore$LWS
|
|
5871
6008
|
} = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -5878,7 +6015,7 @@ function distortionNodeInsertBefore$LWS(globalObject$LWS) {
|
|
|
5878
6015
|
const {
|
|
5879
6016
|
isSharedElement: isSharedElement$LWS,
|
|
5880
6017
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
5881
|
-
} = getValidator$LWS(
|
|
6018
|
+
} = getValidator$LWS(record$LWS.top);
|
|
5882
6019
|
|
|
5883
6020
|
function insertBefore$LWS(...args$LWS) {
|
|
5884
6021
|
// Node.prototype.insertBefore accepts two arguments. The first is the
|
|
@@ -5902,14 +6039,13 @@ function distortionNodeInsertBefore$LWS(globalObject$LWS) {
|
|
|
5902
6039
|
return [originalInsertBefore$LWS, insertBefore$LWS];
|
|
5903
6040
|
}
|
|
5904
6041
|
|
|
5905
|
-
function distortionNodeValueSetter$LWS(
|
|
5906
|
-
const {
|
|
5907
|
-
key: key$LWS
|
|
5908
|
-
} = options$LWS;
|
|
6042
|
+
function distortionNodeValueSetter$LWS(record$LWS) {
|
|
5909
6043
|
const {
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
6044
|
+
globalObject: {
|
|
6045
|
+
Attr: Attr$LWS,
|
|
6046
|
+
Node: Node$LWS
|
|
6047
|
+
}
|
|
6048
|
+
} = record$LWS;
|
|
5913
6049
|
const originalNodeValueSetter$LWS = ObjectLookupOwnSetter$LWS(Node$LWS.prototype, 'nodeValue');
|
|
5914
6050
|
|
|
5915
6051
|
function nodeValue$LWS(value$LWS) {
|
|
@@ -5927,7 +6063,7 @@ function distortionNodeValueSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
5927
6063
|
const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, this, []);
|
|
5928
6064
|
const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, this, []);
|
|
5929
6065
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
5930
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
6066
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
|
|
5931
6067
|
|
|
5932
6068
|
if (distortion$LWS) {
|
|
5933
6069
|
return ReflectApply$LWS(distortion$LWS, ownerEl$LWS, [value$LWS]);
|
|
@@ -5941,10 +6077,12 @@ function distortionNodeValueSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
5941
6077
|
return [originalNodeValueSetter$LWS, nodeValue$LWS];
|
|
5942
6078
|
}
|
|
5943
6079
|
|
|
5944
|
-
function distortionNodeRemoveChild$LWS(
|
|
6080
|
+
function distortionNodeRemoveChild$LWS(record$LWS) {
|
|
5945
6081
|
const {
|
|
5946
|
-
|
|
5947
|
-
|
|
6082
|
+
globalObject: {
|
|
6083
|
+
Node: Node$LWS
|
|
6084
|
+
}
|
|
6085
|
+
} = record$LWS;
|
|
5948
6086
|
const {
|
|
5949
6087
|
removeChild: originalRemoveChild$LWS
|
|
5950
6088
|
} = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -5956,7 +6094,7 @@ function distortionNodeRemoveChild$LWS(globalObject$LWS) {
|
|
|
5956
6094
|
|
|
5957
6095
|
const {
|
|
5958
6096
|
isSharedElement: isSharedElement$LWS
|
|
5959
|
-
} = getValidator$LWS(
|
|
6097
|
+
} = getValidator$LWS(record$LWS.top);
|
|
5960
6098
|
|
|
5961
6099
|
function removeChild$LWS(...args$LWS) {
|
|
5962
6100
|
// Node.prototype.removeChild only accepts one child argument.
|
|
@@ -5979,10 +6117,12 @@ function distortionNodeRemoveChild$LWS(globalObject$LWS) {
|
|
|
5979
6117
|
return [originalRemoveChild$LWS, removeChild$LWS];
|
|
5980
6118
|
}
|
|
5981
6119
|
|
|
5982
|
-
function distortionNodeReplaceChild$LWS(
|
|
6120
|
+
function distortionNodeReplaceChild$LWS(record$LWS) {
|
|
5983
6121
|
const {
|
|
5984
|
-
|
|
5985
|
-
|
|
6122
|
+
globalObject: {
|
|
6123
|
+
Node: Node$LWS
|
|
6124
|
+
}
|
|
6125
|
+
} = record$LWS;
|
|
5986
6126
|
const {
|
|
5987
6127
|
replaceChild: originalReplaceChild$LWS
|
|
5988
6128
|
} = Node$LWS.prototype; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
@@ -5994,7 +6134,7 @@ function distortionNodeReplaceChild$LWS(globalObject$LWS) {
|
|
|
5994
6134
|
|
|
5995
6135
|
const {
|
|
5996
6136
|
isSharedElement: isSharedElement$LWS
|
|
5997
|
-
} = getValidator$LWS(
|
|
6137
|
+
} = getValidator$LWS(record$LWS.top);
|
|
5998
6138
|
|
|
5999
6139
|
function replaceChild$LWS(...args$LWS) {
|
|
6000
6140
|
// Node.prototype.replaceChild accepts two child element arguments. If the "old element"
|
|
@@ -6020,14 +6160,92 @@ function distortionNodeReplaceChild$LWS(globalObject$LWS) {
|
|
|
6020
6160
|
return [originalReplaceChild$LWS, replaceChild$LWS];
|
|
6021
6161
|
}
|
|
6022
6162
|
|
|
6023
|
-
|
|
6163
|
+
const EVALUATOR_PROPERTY_NAME$LWS = '$evaluator$';
|
|
6164
|
+
const RAW_VALUE_PROPERTY_NAME$LWS = '$$raw$$';
|
|
6165
|
+
const SANDBOXED_PROPERTY_NAME$LWS = '$$sandboxed$$';
|
|
6166
|
+
|
|
6167
|
+
const inlineEvaluatorCall$LWS = () => `document.currentScript['${EVALUATOR_PROPERTY_NAME$LWS}']();`;
|
|
6168
|
+
/**
|
|
6169
|
+
*
|
|
6170
|
+
* @param host: Host element for the evaluator
|
|
6171
|
+
* @param src: Raw code to be evaluated
|
|
6172
|
+
* @param evaluator: No argument function to be returned to the caller.
|
|
6173
|
+
* @returns boolean: False if the getter has been accessed previously. True if only redefined
|
|
6174
|
+
*/
|
|
6175
|
+
|
|
6176
|
+
|
|
6177
|
+
function setEvaluatorFn$LWS(host$LWS, src$LWS, evaluator$LWS) {
|
|
6178
|
+
if (ReflectHas$LWS(host$LWS, SANDBOXED_PROPERTY_NAME$LWS)) {
|
|
6179
|
+
return false;
|
|
6180
|
+
}
|
|
6181
|
+
|
|
6182
|
+
ReflectDefineProperty$LWS(host$LWS, RAW_VALUE_PROPERTY_NAME$LWS, {
|
|
6183
|
+
__proto__: null,
|
|
6184
|
+
configurable: true,
|
|
6185
|
+
value: src$LWS
|
|
6186
|
+
});
|
|
6187
|
+
ReflectDefineProperty$LWS(host$LWS, EVALUATOR_PROPERTY_NAME$LWS, {
|
|
6188
|
+
__proto__: null,
|
|
6189
|
+
configurable: true,
|
|
6190
|
+
// Create a bound function to obscure the getter
|
|
6191
|
+
// source as "[native code]".
|
|
6192
|
+
get: ReflectApply$LWS(FunctionProtoBind$LWS, () => {
|
|
6193
|
+
ReflectDeleteProperty$LWS(host$LWS, EVALUATOR_PROPERTY_NAME$LWS);
|
|
6194
|
+
ReflectDefineProperty$LWS(host$LWS, SANDBOXED_PROPERTY_NAME$LWS, {
|
|
6195
|
+
__proto__: null
|
|
6196
|
+
});
|
|
6197
|
+
const ownerDoc$LWS = ReflectApply$LWS(NodeProtoOwnerDocumentGetter$LWS, host$LWS, []);
|
|
6198
|
+
const globalObject$LWS = ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS, ownerDoc$LWS, []);
|
|
6199
|
+
return () => evaluator$LWS(globalObject$LWS);
|
|
6200
|
+
}, [host$LWS])
|
|
6201
|
+
});
|
|
6202
|
+
return true;
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
function rawValue$LWS(host$LWS) {
|
|
6206
|
+
// @ts-ignore
|
|
6207
|
+
return host$LWS[RAW_VALUE_PROPERTY_NAME$LWS];
|
|
6208
|
+
}
|
|
6209
|
+
|
|
6210
|
+
function distortionNodeTextContentGetter$LWS(record$LWS) {
|
|
6024
6211
|
const {
|
|
6025
|
-
|
|
6026
|
-
} =
|
|
6212
|
+
globalObject: globalObject$LWS
|
|
6213
|
+
} = record$LWS;
|
|
6027
6214
|
const {
|
|
6028
|
-
Attr: Attr$LWS,
|
|
6029
6215
|
Node: Node$LWS
|
|
6030
6216
|
} = globalObject$LWS;
|
|
6217
|
+
const originalTextContentGetter$LWS = ObjectLookupOwnGetter$LWS(Node$LWS.prototype, 'textContent');
|
|
6218
|
+
const {
|
|
6219
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
6220
|
+
SVGScriptElement: SVGScriptElement$LWS
|
|
6221
|
+
} = globalObject$LWS;
|
|
6222
|
+
|
|
6223
|
+
function textContent$LWS() {
|
|
6224
|
+
if (this instanceof HTMLScriptElement$LWS || this instanceof SVGScriptElement$LWS) {
|
|
6225
|
+
const rawSource$LWS = rawValue$LWS(this);
|
|
6226
|
+
|
|
6227
|
+
if (rawSource$LWS !== undefined) {
|
|
6228
|
+
return rawSource$LWS;
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
|
|
6232
|
+
return ReflectApply$LWS(originalTextContentGetter$LWS, this, []);
|
|
6233
|
+
}
|
|
6234
|
+
|
|
6235
|
+
return [originalTextContentGetter$LWS, textContent$LWS];
|
|
6236
|
+
}
|
|
6237
|
+
|
|
6238
|
+
function distortionNodeTextContentSetter$LWS(record$LWS) {
|
|
6239
|
+
const {
|
|
6240
|
+
globalObject: globalObject$LWS,
|
|
6241
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
6242
|
+
} = record$LWS;
|
|
6243
|
+
const {
|
|
6244
|
+
Attr: Attr$LWS,
|
|
6245
|
+
Node: Node$LWS,
|
|
6246
|
+
HTMLScriptElement: HTMLScriptElement$LWS,
|
|
6247
|
+
SVGScriptElement: SVGScriptElement$LWS
|
|
6248
|
+
} = globalObject$LWS;
|
|
6031
6249
|
const originalTextContentSetter$LWS = ObjectLookupOwnSetter$LWS(Node$LWS.prototype, 'textContent'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
6032
6250
|
// "globalObject" because future magenta objects (arbitrary user-code created global objects)
|
|
6033
6251
|
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
@@ -6037,7 +6255,7 @@ function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
6037
6255
|
|
|
6038
6256
|
const {
|
|
6039
6257
|
isSharedElement: isSharedElement$LWS
|
|
6040
|
-
} = getValidator$LWS(
|
|
6258
|
+
} = getValidator$LWS(record$LWS.top);
|
|
6041
6259
|
|
|
6042
6260
|
function textContent$LWS(value$LWS) {
|
|
6043
6261
|
const valueAsString$LWS = toString$LWS(value$LWS); // There are two existence of the attribute textContent, one on Attr and one on Node.
|
|
@@ -6059,11 +6277,23 @@ function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
6059
6277
|
const attrName$LWS = ReflectApply$LWS(AttrProtoNameGetter$LWS, this, []);
|
|
6060
6278
|
const attrNamespace$LWS = ReflectApply$LWS(AttrProtoNamespaceURIGetter$LWS, this, []);
|
|
6061
6279
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
6062
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
6280
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS); // istanbul ignore else: needs default platform behavior test
|
|
6063
6281
|
|
|
6064
6282
|
if (distortion$LWS) {
|
|
6065
6283
|
return ReflectApply$LWS(distortion$LWS, ownerEl$LWS, [valueAsString$LWS]);
|
|
6066
6284
|
}
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
if (this instanceof HTMLScriptElement$LWS || this instanceof SVGScriptElement$LWS) {
|
|
6288
|
+
const didAttach$LWS = setEvaluatorFn$LWS(this, valueAsString$LWS, globalObject$LWS => {
|
|
6289
|
+
sandboxEvaluator$LWS(valueAsString$LWS, globalObject$LWS);
|
|
6290
|
+
ReflectApply$LWS(originalTextContentSetter$LWS, this, [valueAsString$LWS]);
|
|
6291
|
+
});
|
|
6292
|
+
|
|
6293
|
+
if (didAttach$LWS) {
|
|
6294
|
+
const overrideContent$LWS = inlineEvaluatorCall$LWS();
|
|
6295
|
+
return ReflectApply$LWS(originalTextContentSetter$LWS, this, [overrideContent$LWS]);
|
|
6296
|
+
}
|
|
6067
6297
|
} // istanbul ignore else: needs default platform behavior test
|
|
6068
6298
|
|
|
6069
6299
|
|
|
@@ -6077,10 +6307,12 @@ function distortionNodeTextContentSetter$LWS(globalObject$LWS, options$LWS) {
|
|
|
6077
6307
|
return [originalTextContentSetter$LWS, textContent$LWS];
|
|
6078
6308
|
}
|
|
6079
6309
|
|
|
6080
|
-
function distortionNotificationCtor$LWS(
|
|
6310
|
+
function distortionNotificationCtor$LWS(record$LWS) {
|
|
6081
6311
|
const {
|
|
6082
|
-
|
|
6083
|
-
|
|
6312
|
+
globalObject: {
|
|
6313
|
+
Notification: originalNotificationCtor$LWS
|
|
6314
|
+
}
|
|
6315
|
+
} = record$LWS; // istanbul ignore if: needs default platform behavior test
|
|
6084
6316
|
|
|
6085
6317
|
if (typeof originalNotificationCtor$LWS !== 'function') {
|
|
6086
6318
|
return null;
|
|
@@ -6097,10 +6329,12 @@ function distortionNotificationCtor$LWS(globalObject$LWS) {
|
|
|
6097
6329
|
return [originalNotificationCtor$LWS, Notification$LWS];
|
|
6098
6330
|
}
|
|
6099
6331
|
|
|
6100
|
-
function distortionRangeCreateContextualFragment$LWS(
|
|
6332
|
+
function distortionRangeCreateContextualFragment$LWS(record$LWS) {
|
|
6101
6333
|
const {
|
|
6102
|
-
|
|
6103
|
-
|
|
6334
|
+
globalObject: {
|
|
6335
|
+
Range: Range$LWS
|
|
6336
|
+
}
|
|
6337
|
+
} = record$LWS;
|
|
6104
6338
|
const {
|
|
6105
6339
|
createContextualFragment: originalCreateContextualFragment$LWS
|
|
6106
6340
|
} = Range$LWS.prototype;
|
|
@@ -6122,23 +6356,49 @@ function distortionRangeCreateContextualFragment$LWS(globalObject$LWS) {
|
|
|
6122
6356
|
return [originalCreateContextualFragment$LWS, createContextualFragment$LWS];
|
|
6123
6357
|
}
|
|
6124
6358
|
|
|
6125
|
-
function distortionRangeDeleteContents$LWS(
|
|
6359
|
+
function distortionRangeDeleteContents$LWS(record$LWS) {
|
|
6126
6360
|
const {
|
|
6127
|
-
|
|
6128
|
-
|
|
6361
|
+
globalObject: {
|
|
6362
|
+
AbstractRange: AbstractRange$LWS,
|
|
6363
|
+
Range: Range$LWS
|
|
6364
|
+
}
|
|
6365
|
+
} = record$LWS;
|
|
6129
6366
|
const {
|
|
6130
|
-
deleteContents: originalDeleteContents$LWS
|
|
6131
|
-
|
|
6132
|
-
|
|
6367
|
+
deleteContents: originalDeleteContents$LWS
|
|
6368
|
+
} = Range$LWS.prototype; // Chrome <= 89, Edge <= 89, Safari <= 14, Firefox <= 68, Mobile Safari <= 14.4:
|
|
6369
|
+
// endContainer/startContainer are defined on Range.prototype
|
|
6370
|
+
//
|
|
6371
|
+
// Chrome >= 90, Edge >= 90, Safari >= 14.1, Firefox >= 69, Mobile Safari >= 14.5:
|
|
6372
|
+
// endContainer/startContainer are defined on AbstractRange.prototype
|
|
6373
|
+
//
|
|
6374
|
+
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
6375
|
+
|
|
6376
|
+
const {
|
|
6377
|
+
prototype: AbstractRangeProto$LWS
|
|
6378
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
6379
|
+
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'endContainer');
|
|
6380
|
+
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'startContainer'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
6381
|
+
// "globalObject" because magenta objects (arbitrary user-code created global objects)
|
|
6382
|
+
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
6383
|
+
// content window). Using the provided "globalObject" here would result in receiving a validator
|
|
6384
|
+
// bound to the magenta global object, which would erroneously prevent code from interacting
|
|
6385
|
+
// with that document's <html>, <head> and <body>.
|
|
6386
|
+
|
|
6387
|
+
const {
|
|
6388
|
+
isSharedElement: isSharedElement$LWS
|
|
6389
|
+
} = getValidator$LWS(record$LWS.top);
|
|
6133
6390
|
|
|
6134
6391
|
function deleteContents$LWS(...args$LWS) {
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6392
|
+
const containers$LWS = [ReflectApply$LWS(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS(originalStartContainerGetter$LWS, this, [])];
|
|
6393
|
+
|
|
6394
|
+
for (let i$LWS = 0, {
|
|
6395
|
+
length: length$LWS
|
|
6396
|
+
} = containers$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
6397
|
+
const container$LWS = containers$LWS[i$LWS];
|
|
6139
6398
|
|
|
6140
|
-
|
|
6141
|
-
|
|
6399
|
+
if (isSharedElement$LWS(container$LWS)) {
|
|
6400
|
+
throw new LockerSecurityError$LWS(`Cannot delete contents of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, container$LWS, [])}.`);
|
|
6401
|
+
}
|
|
6142
6402
|
}
|
|
6143
6403
|
|
|
6144
6404
|
return ReflectApply$LWS(originalDeleteContents$LWS, this, args$LWS);
|
|
@@ -6147,23 +6407,49 @@ function distortionRangeDeleteContents$LWS(globalObject$LWS) {
|
|
|
6147
6407
|
return [originalDeleteContents$LWS, deleteContents$LWS];
|
|
6148
6408
|
}
|
|
6149
6409
|
|
|
6150
|
-
function distortionRangeExtractContents$LWS(
|
|
6410
|
+
function distortionRangeExtractContents$LWS(record$LWS) {
|
|
6151
6411
|
const {
|
|
6152
|
-
|
|
6153
|
-
|
|
6412
|
+
globalObject: {
|
|
6413
|
+
AbstractRange: AbstractRange$LWS,
|
|
6414
|
+
Range: Range$LWS
|
|
6415
|
+
}
|
|
6416
|
+
} = record$LWS;
|
|
6154
6417
|
const {
|
|
6155
|
-
extractContents: originalExtractContents$LWS
|
|
6156
|
-
|
|
6157
|
-
|
|
6418
|
+
extractContents: originalExtractContents$LWS
|
|
6419
|
+
} = Range$LWS.prototype; // Chrome <= 89, Edge <= 89, Safari <= 14, Firefox <= 68, Mobile Safari <= 14.4:
|
|
6420
|
+
// endContainer/startContainer are defined on Range.prototype
|
|
6421
|
+
//
|
|
6422
|
+
// Chrome >= 90, Edge >= 90, Safari >= 14.1, Firefox >= 69, Mobile Safari >= 14.5:
|
|
6423
|
+
// endContainer/startContainer are defined on AbstractRange.prototype
|
|
6424
|
+
//
|
|
6425
|
+
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
6426
|
+
|
|
6427
|
+
const {
|
|
6428
|
+
prototype: AbstractRangeProto$LWS
|
|
6429
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
6430
|
+
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'endContainer');
|
|
6431
|
+
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS(AbstractRangeProto$LWS, 'startContainer'); // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
6432
|
+
// "globalObject" because magenta objects (arbitrary user-code created global objects)
|
|
6433
|
+
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
6434
|
+
// content window). Using the provided "globalObject" here would result in receiving a validator
|
|
6435
|
+
// bound to the magenta global object, which would erroneously prevent code from interacting
|
|
6436
|
+
// with that document's <html>, <head> and <body>.
|
|
6437
|
+
|
|
6438
|
+
const {
|
|
6439
|
+
isSharedElement: isSharedElement$LWS
|
|
6440
|
+
} = getValidator$LWS(record$LWS.top);
|
|
6158
6441
|
|
|
6159
6442
|
function extractContents$LWS(...args$LWS) {
|
|
6160
|
-
|
|
6161
|
-
// we need to convert the nodes in the Range into a DocumentFragment.
|
|
6162
|
-
const clonedContentsFragment$LWS = ReflectApply$LWS(originalCloneContents$LWS, this, []);
|
|
6163
|
-
const elementFound$LWS = ReflectApply$LWS(DocumentFragmentProtoQuerySelector$LWS, clonedContentsFragment$LWS, ['html,head,body']);
|
|
6443
|
+
const containers$LWS = [ReflectApply$LWS(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS(originalStartContainerGetter$LWS, this, [])];
|
|
6164
6444
|
|
|
6165
|
-
|
|
6166
|
-
|
|
6445
|
+
for (let i$LWS = 0, {
|
|
6446
|
+
length: length$LWS
|
|
6447
|
+
} = containers$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
6448
|
+
const container$LWS = containers$LWS[i$LWS];
|
|
6449
|
+
|
|
6450
|
+
if (isSharedElement$LWS(container$LWS)) {
|
|
6451
|
+
throw new LockerSecurityError$LWS(`Cannot extract contents of ${ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, container$LWS, [])}.`);
|
|
6452
|
+
}
|
|
6167
6453
|
}
|
|
6168
6454
|
|
|
6169
6455
|
return ReflectApply$LWS(originalExtractContents$LWS, this, args$LWS);
|
|
@@ -6172,7 +6458,7 @@ function distortionRangeExtractContents$LWS(globalObject$LWS) {
|
|
|
6172
6458
|
return [originalExtractContents$LWS, extractContents$LWS];
|
|
6173
6459
|
}
|
|
6174
6460
|
|
|
6175
|
-
function distortionRangeInsertNode$LWS(
|
|
6461
|
+
function distortionRangeInsertNode$LWS(record$LWS) {
|
|
6176
6462
|
// IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
6177
6463
|
// "globalObject" because future magenta objects (arbitrary user-code created global objects)
|
|
6178
6464
|
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
@@ -6182,10 +6468,12 @@ function distortionRangeInsertNode$LWS(globalObject$LWS) {
|
|
|
6182
6468
|
const {
|
|
6183
6469
|
isSharedElement: isSharedElement$LWS,
|
|
6184
6470
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
6185
|
-
} = getValidator$LWS(
|
|
6471
|
+
} = getValidator$LWS(record$LWS.top);
|
|
6186
6472
|
const {
|
|
6187
|
-
|
|
6188
|
-
|
|
6473
|
+
globalObject: {
|
|
6474
|
+
Range: Range$LWS
|
|
6475
|
+
}
|
|
6476
|
+
} = record$LWS;
|
|
6189
6477
|
const {
|
|
6190
6478
|
insertNode: originalInsertNode$LWS
|
|
6191
6479
|
} = Range$LWS.prototype;
|
|
@@ -6212,10 +6500,63 @@ function distortionRangeInsertNode$LWS(globalObject$LWS) {
|
|
|
6212
6500
|
return [originalInsertNode$LWS, insertNode$LWS];
|
|
6213
6501
|
}
|
|
6214
6502
|
|
|
6215
|
-
function
|
|
6503
|
+
function createRangeProtoMethodDistortionFactory$LWS(methodName$LWS) {
|
|
6504
|
+
return function distortionContentWindowGetter$LWS(record$LWS) {
|
|
6505
|
+
const {
|
|
6506
|
+
globalObject: {
|
|
6507
|
+
Range: Range$LWS
|
|
6508
|
+
}
|
|
6509
|
+
} = record$LWS;
|
|
6510
|
+
const {
|
|
6511
|
+
prototype: RangeProto$LWS
|
|
6512
|
+
} = Range$LWS;
|
|
6513
|
+
const {
|
|
6514
|
+
[methodName$LWS]: originalMethod$LWS
|
|
6515
|
+
} = RangeProto$LWS; // IMPORTANT! This validator MUST use the "window" global object, and not the provided
|
|
6516
|
+
// "globalObject" because magenta objects (arbitrary user-code created global objects)
|
|
6517
|
+
// must be allowed to interact with their OWN <html>, <head> and <body> (within the iframe
|
|
6518
|
+
// content window). Using the provided "globalObject" here would result in receiving a validator
|
|
6519
|
+
// bound to the magenta global object, which would erroneously prevent code from interacting
|
|
6520
|
+
// with that document's <html>, <head> and <body>.
|
|
6521
|
+
|
|
6522
|
+
const {
|
|
6523
|
+
isSharedElement: isSharedElement$LWS
|
|
6524
|
+
} = getValidator$LWS(record$LWS.top);
|
|
6525
|
+
|
|
6526
|
+
function method$LWS(...args$LWS) {
|
|
6527
|
+
if (args$LWS.length) {
|
|
6528
|
+
const {
|
|
6529
|
+
0: node$LWS
|
|
6530
|
+
} = args$LWS; // istanbul ignore else: needs default platform behavior test
|
|
6531
|
+
|
|
6532
|
+
if (isSharedElement$LWS(node$LWS)) {
|
|
6533
|
+
throw new LockerSecurityError$LWS(`Cannot call ${methodName$LWS} with ${toSafeTemplateStringValue$LWS(ReflectApply$LWS(NodeProtoNodeNameGetter$LWS, node$LWS, []))}.`);
|
|
6534
|
+
}
|
|
6535
|
+
}
|
|
6536
|
+
|
|
6537
|
+
return ReflectApply$LWS(originalMethod$LWS, this, args$LWS);
|
|
6538
|
+
}
|
|
6539
|
+
|
|
6540
|
+
return [originalMethod$LWS, method$LWS];
|
|
6541
|
+
};
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6544
|
+
const distortionRangeSetEnd$LWS = createRangeProtoMethodDistortionFactory$LWS('setEnd');
|
|
6545
|
+
const distortionRangeSelectNode$LWS = createRangeProtoMethodDistortionFactory$LWS('selectNode');
|
|
6546
|
+
const distortionRangeSelectNodeContents$LWS = createRangeProtoMethodDistortionFactory$LWS('selectNodeContents');
|
|
6547
|
+
const distortionRangeSetEndAfter$LWS = createRangeProtoMethodDistortionFactory$LWS('setEndAfter');
|
|
6548
|
+
const distortionRangeSetEndBefore$LWS = createRangeProtoMethodDistortionFactory$LWS('setEndBefore');
|
|
6549
|
+
const distortionRangeSetStart$LWS = createRangeProtoMethodDistortionFactory$LWS('setStart');
|
|
6550
|
+
const distortionRangeSetStartAfter$LWS = createRangeProtoMethodDistortionFactory$LWS('setStartAfter');
|
|
6551
|
+
const distortionRangeSetStartBefore$LWS = createRangeProtoMethodDistortionFactory$LWS('setStartBefore');
|
|
6552
|
+
const distortionRangeSurroundContents$LWS = createRangeProtoMethodDistortionFactory$LWS('surroundContents');
|
|
6553
|
+
|
|
6554
|
+
function distortionServiceWorkerContainer$LWS(record$LWS) {
|
|
6216
6555
|
const {
|
|
6217
|
-
|
|
6218
|
-
|
|
6556
|
+
globalObject: {
|
|
6557
|
+
ServiceWorkerContainer: ServiceWorkerContainer$LWS
|
|
6558
|
+
}
|
|
6559
|
+
} = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
6219
6560
|
|
|
6220
6561
|
if (typeof ServiceWorkerContainer$LWS !== 'function') {
|
|
6221
6562
|
return null;
|
|
@@ -6227,10 +6568,12 @@ function distortionServiceWorkerContainer$LWS(globalObject$LWS) {
|
|
|
6227
6568
|
return [originalPrototype$LWS, createRevokedProxy$LWS(originalPrototype$LWS)];
|
|
6228
6569
|
}
|
|
6229
6570
|
|
|
6230
|
-
function distortionShadowRootInnerHTMLSetter$LWS(
|
|
6571
|
+
function distortionShadowRootInnerHTMLSetter$LWS(record$LWS) {
|
|
6231
6572
|
const {
|
|
6232
|
-
|
|
6233
|
-
|
|
6573
|
+
globalObject: {
|
|
6574
|
+
ShadowRoot: ShadowRoot$LWS
|
|
6575
|
+
}
|
|
6576
|
+
} = record$LWS;
|
|
6234
6577
|
const originalInnerHTMLSetter$LWS = ObjectLookupOwnSetter$LWS(ShadowRoot$LWS.prototype, 'innerHTML');
|
|
6235
6578
|
|
|
6236
6579
|
function innerHTML$LWS(value$LWS) {
|
|
@@ -6240,10 +6583,12 @@ function distortionShadowRootInnerHTMLSetter$LWS(globalObject$LWS) {
|
|
|
6240
6583
|
return [originalInnerHTMLSetter$LWS, innerHTML$LWS];
|
|
6241
6584
|
}
|
|
6242
6585
|
|
|
6243
|
-
function distortionShadowRootModeGetter$LWS(
|
|
6586
|
+
function distortionShadowRootModeGetter$LWS(record$LWS) {
|
|
6244
6587
|
const {
|
|
6245
|
-
|
|
6246
|
-
|
|
6588
|
+
globalObject: {
|
|
6589
|
+
ShadowRoot: ShadowRoot$LWS
|
|
6590
|
+
}
|
|
6591
|
+
} = record$LWS;
|
|
6247
6592
|
const originalModeGetter$LWS = ObjectLookupOwnGetter$LWS(ShadowRoot$LWS.prototype, 'mode');
|
|
6248
6593
|
|
|
6249
6594
|
function mode$LWS() {
|
|
@@ -6253,10 +6598,12 @@ function distortionShadowRootModeGetter$LWS(globalObject$LWS) {
|
|
|
6253
6598
|
return [originalModeGetter$LWS, mode$LWS];
|
|
6254
6599
|
}
|
|
6255
6600
|
|
|
6256
|
-
function distortionSharedWorkerCtor$LWS(
|
|
6601
|
+
function distortionSharedWorkerCtor$LWS(record$LWS) {
|
|
6257
6602
|
const {
|
|
6258
|
-
|
|
6259
|
-
|
|
6603
|
+
globalObject: {
|
|
6604
|
+
SharedWorker: originalSharedWorkerCtor$LWS
|
|
6605
|
+
}
|
|
6606
|
+
} = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
6260
6607
|
|
|
6261
6608
|
if (typeof originalSharedWorkerCtor$LWS !== 'function') {
|
|
6262
6609
|
return null;
|
|
@@ -6269,10 +6616,12 @@ function distortionSharedWorkerCtor$LWS(globalObject$LWS) {
|
|
|
6269
6616
|
return [originalSharedWorkerCtor$LWS, SharedWorker$LWS];
|
|
6270
6617
|
}
|
|
6271
6618
|
|
|
6272
|
-
function distortionSharedWorkerProto$LWS(
|
|
6619
|
+
function distortionSharedWorkerProto$LWS(record$LWS) {
|
|
6273
6620
|
const {
|
|
6274
|
-
|
|
6275
|
-
|
|
6621
|
+
globalObject: {
|
|
6622
|
+
SharedWorker: SharedWorker$LWS
|
|
6623
|
+
}
|
|
6624
|
+
} = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
6276
6625
|
|
|
6277
6626
|
if (typeof SharedWorker$LWS !== 'function') {
|
|
6278
6627
|
return null;
|
|
@@ -6583,9 +6932,13 @@ const {
|
|
|
6583
6932
|
const patchedStorageProtoLengthGetter$LWS = ObjectLookupOwnGetter$LWS(PatchedStorageProto$LWS, 'length');
|
|
6584
6933
|
|
|
6585
6934
|
function createDistortionStorageFactory$LWS(storageName$LWS) {
|
|
6586
|
-
return function distortionStorageFactory$LWS(
|
|
6587
|
-
|
|
6935
|
+
return function distortionStorageFactory$LWS(record$LWS) {
|
|
6936
|
+
const {
|
|
6937
|
+
globalObject: globalObject$LWS,
|
|
6938
|
+
key: key$LWS
|
|
6939
|
+
} = record$LWS; // Depending on browser configuration the storage object may be `null`
|
|
6588
6940
|
// or throw an exception when its getter is accessed.
|
|
6941
|
+
|
|
6589
6942
|
let originalStorageObject$LWS;
|
|
6590
6943
|
|
|
6591
6944
|
try {
|
|
@@ -6597,89 +6950,99 @@ function createDistortionStorageFactory$LWS(storageName$LWS) {
|
|
|
6597
6950
|
return null;
|
|
6598
6951
|
}
|
|
6599
6952
|
|
|
6600
|
-
const {
|
|
6601
|
-
key: key$LWS
|
|
6602
|
-
} = options$LWS;
|
|
6603
6953
|
const patchedStorageObject$LWS = createStorage$LWS(originalStorageObject$LWS, getStorageRootKey$LWS(key$LWS));
|
|
6604
6954
|
return [originalStorageObject$LWS, patchedStorageObject$LWS];
|
|
6605
6955
|
};
|
|
6606
6956
|
}
|
|
6607
6957
|
|
|
6608
|
-
function distortionStorageLength$LWS(
|
|
6958
|
+
function distortionStorageLength$LWS(record$LWS) {
|
|
6609
6959
|
const {
|
|
6610
|
-
|
|
6611
|
-
|
|
6960
|
+
globalObject: {
|
|
6961
|
+
Storage: Storage$LWS
|
|
6962
|
+
}
|
|
6963
|
+
} = record$LWS;
|
|
6612
6964
|
const originalLengthGetter$LWS = ObjectLookupOwnGetter$LWS(Storage$LWS.prototype, 'length');
|
|
6613
6965
|
return [originalLengthGetter$LWS, patchedStorageProtoLengthGetter$LWS];
|
|
6614
6966
|
}
|
|
6615
6967
|
|
|
6616
|
-
function distortionStorageGetItem$LWS(
|
|
6968
|
+
function distortionStorageGetItem$LWS(record$LWS) {
|
|
6617
6969
|
const {
|
|
6618
|
-
|
|
6619
|
-
|
|
6970
|
+
globalObject: {
|
|
6971
|
+
Storage: Storage$LWS
|
|
6972
|
+
}
|
|
6973
|
+
} = record$LWS;
|
|
6620
6974
|
const {
|
|
6621
6975
|
getItem: originalStorageGetItem$LWS
|
|
6622
6976
|
} = Storage$LWS.prototype;
|
|
6623
6977
|
return [originalStorageGetItem$LWS, patchedStorageProtoGetItem$LWS];
|
|
6624
6978
|
}
|
|
6625
6979
|
|
|
6626
|
-
function distortionStorageSetItem$LWS(
|
|
6980
|
+
function distortionStorageSetItem$LWS(record$LWS) {
|
|
6627
6981
|
const {
|
|
6628
|
-
|
|
6629
|
-
|
|
6982
|
+
globalObject: {
|
|
6983
|
+
Storage: Storage$LWS
|
|
6984
|
+
}
|
|
6985
|
+
} = record$LWS;
|
|
6630
6986
|
const {
|
|
6631
6987
|
setItem: originalStorageSetItem$LWS
|
|
6632
6988
|
} = Storage$LWS.prototype;
|
|
6633
6989
|
return [originalStorageSetItem$LWS, patchedStorageProtoSetItem$LWS];
|
|
6634
6990
|
}
|
|
6635
6991
|
|
|
6636
|
-
function distortionStorageKey$LWS(
|
|
6992
|
+
function distortionStorageKey$LWS(record$LWS) {
|
|
6637
6993
|
const {
|
|
6638
|
-
|
|
6639
|
-
|
|
6994
|
+
globalObject: {
|
|
6995
|
+
Storage: Storage$LWS
|
|
6996
|
+
}
|
|
6997
|
+
} = record$LWS;
|
|
6640
6998
|
const {
|
|
6641
6999
|
key: originalStorageKey$LWS
|
|
6642
7000
|
} = Storage$LWS.prototype;
|
|
6643
7001
|
return [originalStorageKey$LWS, patchedStorageProtoKey$LWS];
|
|
6644
7002
|
}
|
|
6645
7003
|
|
|
6646
|
-
function distortionStorageRemoveItem$LWS(
|
|
7004
|
+
function distortionStorageRemoveItem$LWS(record$LWS) {
|
|
6647
7005
|
const {
|
|
6648
|
-
|
|
6649
|
-
|
|
7006
|
+
globalObject: {
|
|
7007
|
+
Storage: Storage$LWS
|
|
7008
|
+
}
|
|
7009
|
+
} = record$LWS;
|
|
6650
7010
|
const {
|
|
6651
7011
|
removeItem: originalStorageRemoveItem$LWS
|
|
6652
7012
|
} = Storage$LWS.prototype;
|
|
6653
7013
|
return [originalStorageRemoveItem$LWS, patchedStorageProtoRemoveItem$LWS];
|
|
6654
7014
|
}
|
|
6655
7015
|
|
|
6656
|
-
function distortionStorageClear$LWS(
|
|
7016
|
+
function distortionStorageClear$LWS(record$LWS) {
|
|
6657
7017
|
const {
|
|
6658
|
-
|
|
6659
|
-
|
|
7018
|
+
globalObject: {
|
|
7019
|
+
Storage: Storage$LWS
|
|
7020
|
+
}
|
|
7021
|
+
} = record$LWS;
|
|
6660
7022
|
const {
|
|
6661
7023
|
clear: originalStorageClear$LWS
|
|
6662
7024
|
} = Storage$LWS.prototype;
|
|
6663
7025
|
return [originalStorageClear$LWS, patchedStorageProtoClear$LWS];
|
|
6664
7026
|
}
|
|
6665
7027
|
|
|
6666
|
-
function distortionStorage$LWS(
|
|
7028
|
+
function distortionStorage$LWS(record$LWS) {
|
|
6667
7029
|
const {
|
|
6668
|
-
|
|
6669
|
-
|
|
7030
|
+
globalObject: {
|
|
7031
|
+
Storage: Storage$LWS
|
|
7032
|
+
}
|
|
7033
|
+
} = record$LWS;
|
|
6670
7034
|
return [Storage$LWS, PatchedStorage$LWS];
|
|
6671
7035
|
}
|
|
6672
7036
|
|
|
6673
7037
|
const distortionLocalStorage$LWS = createDistortionStorageFactory$LWS('localStorage');
|
|
6674
7038
|
const distortionSessionStorage$LWS = createDistortionStorageFactory$LWS('sessionStorage');
|
|
6675
7039
|
|
|
6676
|
-
function distortionSVGAnimateElementAttributeNameAttribute$LWS(
|
|
6677
|
-
const {
|
|
6678
|
-
key: key$LWS
|
|
6679
|
-
} = options$LWS;
|
|
7040
|
+
function distortionSVGAnimateElementAttributeNameAttribute$LWS(record$LWS) {
|
|
6680
7041
|
const {
|
|
6681
|
-
|
|
6682
|
-
|
|
7042
|
+
globalObject: {
|
|
7043
|
+
SVGAnimateElement: SVGAnimateElement$LWS
|
|
7044
|
+
}
|
|
7045
|
+
} = record$LWS;
|
|
6683
7046
|
const {
|
|
6684
7047
|
setAttribute: originalSetAttribute$LWS
|
|
6685
7048
|
} = Element.prototype;
|
|
@@ -6689,7 +7052,7 @@ function distortionSVGAnimateElementAttributeNameAttribute$LWS(globalObject$LWS,
|
|
|
6689
7052
|
const originalAttributeValue$LWS = ReflectApply$LWS(ElementProtoGetAttribute$LWS, el$LWS, [attrName$LWS]);
|
|
6690
7053
|
|
|
6691
7054
|
if (originalAttributeValue$LWS) {
|
|
6692
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
7055
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, el$LWS, attrName$LWS);
|
|
6693
7056
|
|
|
6694
7057
|
if (distortion$LWS) {
|
|
6695
7058
|
ReflectApply$LWS(distortion$LWS, el$LWS, [originalAttributeValue$LWS]);
|
|
@@ -6708,14 +7071,16 @@ function distortionSVGAnimateElementAttributeNameAttribute$LWS(globalObject$LWS,
|
|
|
6708
7071
|
}
|
|
6709
7072
|
}
|
|
6710
7073
|
|
|
6711
|
-
registerElementSetDistortion$LWS(
|
|
7074
|
+
registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'attributeName', NAMESPACE_DEFAULT$LWS, attributeName$LWS);
|
|
6712
7075
|
return null;
|
|
6713
7076
|
}
|
|
6714
7077
|
|
|
6715
|
-
function distortionSVGAnimateElementFromAttribute$LWS(
|
|
7078
|
+
function distortionSVGAnimateElementFromAttribute$LWS(record$LWS) {
|
|
6716
7079
|
const {
|
|
6717
|
-
|
|
6718
|
-
|
|
7080
|
+
globalObject: {
|
|
7081
|
+
SVGAnimateElement: SVGAnimateElement$LWS
|
|
7082
|
+
}
|
|
7083
|
+
} = record$LWS;
|
|
6719
7084
|
const {
|
|
6720
7085
|
setAttribute: originalSetAttribute$LWS
|
|
6721
7086
|
} = Element.prototype;
|
|
@@ -6728,14 +7093,16 @@ function distortionSVGAnimateElementFromAttribute$LWS(globalObject$LWS) {
|
|
|
6728
7093
|
ReflectApply$LWS(originalSetAttribute$LWS, this, ['from', value$LWS]);
|
|
6729
7094
|
}
|
|
6730
7095
|
|
|
6731
|
-
registerElementSetDistortion$LWS(
|
|
7096
|
+
registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'from', NAMESPACE_DEFAULT$LWS, from$LWS);
|
|
6732
7097
|
return null;
|
|
6733
7098
|
}
|
|
6734
7099
|
|
|
6735
|
-
function distortionSVGAnimateElementToAttribute$LWS(
|
|
7100
|
+
function distortionSVGAnimateElementToAttribute$LWS(record$LWS) {
|
|
6736
7101
|
const {
|
|
6737
|
-
|
|
6738
|
-
|
|
7102
|
+
globalObject: {
|
|
7103
|
+
SVGAnimateElement: SVGAnimateElement$LWS
|
|
7104
|
+
}
|
|
7105
|
+
} = record$LWS;
|
|
6739
7106
|
const {
|
|
6740
7107
|
setAttribute: originalSetAttribute$LWS
|
|
6741
7108
|
} = Element.prototype;
|
|
@@ -6748,14 +7115,16 @@ function distortionSVGAnimateElementToAttribute$LWS(globalObject$LWS) {
|
|
|
6748
7115
|
ReflectApply$LWS(originalSetAttribute$LWS, this, ['to', value$LWS]);
|
|
6749
7116
|
}
|
|
6750
7117
|
|
|
6751
|
-
registerElementSetDistortion$LWS(
|
|
7118
|
+
registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'to', NAMESPACE_DEFAULT$LWS, to$LWS);
|
|
6752
7119
|
return null;
|
|
6753
7120
|
}
|
|
6754
7121
|
|
|
6755
|
-
function distortionSVGAnimateElementValuesAttribute$LWS(
|
|
7122
|
+
function distortionSVGAnimateElementValuesAttribute$LWS(record$LWS) {
|
|
6756
7123
|
const {
|
|
6757
|
-
|
|
6758
|
-
|
|
7124
|
+
globalObject: {
|
|
7125
|
+
SVGAnimateElement: SVGAnimateElement$LWS
|
|
7126
|
+
}
|
|
7127
|
+
} = record$LWS;
|
|
6759
7128
|
const {
|
|
6760
7129
|
setAttribute: originalSetAttribute$LWS
|
|
6761
7130
|
} = Element.prototype;
|
|
@@ -6779,14 +7148,16 @@ function distortionSVGAnimateElementValuesAttribute$LWS(globalObject$LWS) {
|
|
|
6779
7148
|
ReflectApply$LWS(originalSetAttribute$LWS, this, ['values', returnValues$LWS]);
|
|
6780
7149
|
}
|
|
6781
7150
|
|
|
6782
|
-
registerElementSetDistortion$LWS(
|
|
7151
|
+
registerElementSetDistortion$LWS(record$LWS, SVGAnimateElement$LWS, 'values', NAMESPACE_DEFAULT$LWS, values$LWS);
|
|
6783
7152
|
return null;
|
|
6784
7153
|
}
|
|
6785
7154
|
|
|
6786
|
-
function distortionSVGElementDatasetGetter$LWS(
|
|
7155
|
+
function distortionSVGElementDatasetGetter$LWS(record$LWS) {
|
|
6787
7156
|
const {
|
|
6788
|
-
|
|
6789
|
-
|
|
7157
|
+
globalObject: {
|
|
7158
|
+
SVGElement: SVGElement$LWS
|
|
7159
|
+
}
|
|
7160
|
+
} = record$LWS;
|
|
6790
7161
|
const originalDatasetGetter$LWS = ObjectLookupOwnGetter$LWS(SVGElement$LWS.prototype, 'dataset');
|
|
6791
7162
|
|
|
6792
7163
|
function dataset$LWS() {
|
|
@@ -6796,25 +7167,23 @@ function distortionSVGElementDatasetGetter$LWS(globalObject$LWS) {
|
|
|
6796
7167
|
return [originalDatasetGetter$LWS, dataset$LWS];
|
|
6797
7168
|
}
|
|
6798
7169
|
|
|
6799
|
-
function distortionSVGScriptElementHrefAttribute$LWS(
|
|
7170
|
+
function distortionSVGScriptElementHrefAttribute$LWS(record$LWS) {
|
|
6800
7171
|
const {
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
registerElementSetDistortion$LWS(
|
|
6807
|
-
registerElementSetDistortion$LWS(globalObject$LWS, SVGScriptElement$LWS, 'xlink:href', NAMESPACE_XLINK$LWS, createScriptDistortion$LWS('xlink:href', SVGElementProtoDatasetGetter$LWS, evaluator$LWS));
|
|
7172
|
+
globalObject: {
|
|
7173
|
+
SVGScriptElement: SVGScriptElement$LWS
|
|
7174
|
+
}
|
|
7175
|
+
} = record$LWS;
|
|
7176
|
+
registerElementSetDistortion$LWS(record$LWS, SVGScriptElement$LWS, 'href', NAMESPACE_XLINK$LWS, createScriptDistortion$LWS(record$LWS, 'href', SVGElementProtoDatasetGetter$LWS));
|
|
7177
|
+
registerElementSetDistortion$LWS(record$LWS, SVGScriptElement$LWS, 'xlink:href', NAMESPACE_XLINK$LWS, createScriptDistortion$LWS(record$LWS, 'xlink:href', SVGElementProtoDatasetGetter$LWS));
|
|
6808
7178
|
return null;
|
|
6809
7179
|
}
|
|
6810
7180
|
|
|
6811
|
-
function distortionSVGSetElementAttributeNameAttribute$LWS(
|
|
6812
|
-
const {
|
|
6813
|
-
key: key$LWS
|
|
6814
|
-
} = options$LWS;
|
|
7181
|
+
function distortionSVGSetElementAttributeNameAttribute$LWS(record$LWS) {
|
|
6815
7182
|
const {
|
|
6816
|
-
|
|
6817
|
-
|
|
7183
|
+
globalObject: {
|
|
7184
|
+
SVGSetElement: SVGSetElement$LWS
|
|
7185
|
+
}
|
|
7186
|
+
} = record$LWS;
|
|
6818
7187
|
const {
|
|
6819
7188
|
setAttribute: originalSetAttribute$LWS
|
|
6820
7189
|
} = Element.prototype;
|
|
@@ -6824,7 +7193,7 @@ function distortionSVGSetElementAttributeNameAttribute$LWS(globalObject$LWS, opt
|
|
|
6824
7193
|
const originalAttributeValue$LWS = ReflectApply$LWS(ElementProtoGetAttribute$LWS, el$LWS, [attrName$LWS]); // istanbul ignore else: needs default platform behavior test
|
|
6825
7194
|
|
|
6826
7195
|
if (originalAttributeValue$LWS) {
|
|
6827
|
-
const distortion$LWS = getAttributeDistortion$LWS(
|
|
7196
|
+
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, el$LWS, attrName$LWS); // istanbul ignore else: needs default platform behavior test
|
|
6828
7197
|
|
|
6829
7198
|
if (distortion$LWS) {
|
|
6830
7199
|
ReflectApply$LWS(distortion$LWS, el$LWS, [originalAttributeValue$LWS]);
|
|
@@ -6841,14 +7210,16 @@ function distortionSVGSetElementAttributeNameAttribute$LWS(globalObject$LWS, opt
|
|
|
6841
7210
|
}
|
|
6842
7211
|
}
|
|
6843
7212
|
|
|
6844
|
-
registerElementSetDistortion$LWS(
|
|
7213
|
+
registerElementSetDistortion$LWS(record$LWS, SVGSetElement$LWS, 'attributeName', NAMESPACE_DEFAULT$LWS, attributeName$LWS);
|
|
6845
7214
|
return null;
|
|
6846
7215
|
}
|
|
6847
7216
|
|
|
6848
|
-
function distortionSVGSetElementToAttribute$LWS(
|
|
7217
|
+
function distortionSVGSetElementToAttribute$LWS(record$LWS) {
|
|
6849
7218
|
const {
|
|
6850
|
-
|
|
6851
|
-
|
|
7219
|
+
globalObject: {
|
|
7220
|
+
SVGSetElement: SVGSetElement$LWS
|
|
7221
|
+
}
|
|
7222
|
+
} = record$LWS;
|
|
6852
7223
|
const {
|
|
6853
7224
|
setAttribute: originalSetAttribute$LWS
|
|
6854
7225
|
} = Element.prototype;
|
|
@@ -6861,15 +7232,17 @@ function distortionSVGSetElementToAttribute$LWS(globalObject$LWS) {
|
|
|
6861
7232
|
ReflectApply$LWS(originalSetAttribute$LWS, this, ['to', value$LWS]);
|
|
6862
7233
|
}
|
|
6863
7234
|
|
|
6864
|
-
registerElementSetDistortion$LWS(
|
|
7235
|
+
registerElementSetDistortion$LWS(record$LWS, SVGSetElement$LWS, 'to', NAMESPACE_DEFAULT$LWS, to$LWS);
|
|
6865
7236
|
return null;
|
|
6866
7237
|
}
|
|
6867
7238
|
|
|
6868
7239
|
function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
|
|
6869
|
-
return function distortionHrefAttributeFactory$LWS(
|
|
7240
|
+
return function distortionHrefAttributeFactory$LWS(record$LWS) {
|
|
6870
7241
|
const {
|
|
6871
|
-
|
|
6872
|
-
|
|
7242
|
+
globalObject: {
|
|
7243
|
+
SVGUseElement: SVGUseElement$LWS
|
|
7244
|
+
}
|
|
7245
|
+
} = record$LWS;
|
|
6873
7246
|
const {
|
|
6874
7247
|
setAttribute: originalSetAttribute$LWS,
|
|
6875
7248
|
setAttributeNS: originalSetAttributeNS$LWS
|
|
@@ -6882,7 +7255,7 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
|
|
|
6882
7255
|
ReflectApply$LWS(originalSetAttributeNS$LWS, this, [NAMESPACE_XLINK$LWS, attributeName$LWS, returnValue$LWS]);
|
|
6883
7256
|
}
|
|
6884
7257
|
|
|
6885
|
-
registerElementSetDistortion$LWS(
|
|
7258
|
+
registerElementSetDistortion$LWS(record$LWS, SVGUseElement$LWS, attributeName$LWS, NAMESPACE_XLINK$LWS, xlinkNamespaceDistortion$LWS);
|
|
6886
7259
|
|
|
6887
7260
|
if (attributeName$LWS === 'href') {
|
|
6888
7261
|
const defaultNamespaceDistortion$LWS = function defaultNamespaceDistortion$LWS(value$LWS) {
|
|
@@ -6892,7 +7265,7 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
|
|
|
6892
7265
|
ReflectApply$LWS(originalSetAttribute$LWS, this, [attributeName$LWS, returnValue$LWS]);
|
|
6893
7266
|
};
|
|
6894
7267
|
|
|
6895
|
-
registerElementSetDistortion$LWS(
|
|
7268
|
+
registerElementSetDistortion$LWS(record$LWS, SVGUseElement$LWS, attributeName$LWS, NAMESPACE_DEFAULT$LWS, defaultNamespaceDistortion$LWS);
|
|
6896
7269
|
}
|
|
6897
7270
|
|
|
6898
7271
|
return null;
|
|
@@ -6902,10 +7275,12 @@ function createDistortionHrefAttributeFactory$LWS(attributeName$LWS) {
|
|
|
6902
7275
|
const distortionSVGUseElementHrefAttribute$LWS = createDistortionHrefAttributeFactory$LWS('href');
|
|
6903
7276
|
const distortionSVGUseElementXlinkHrefAttribute$LWS = createDistortionHrefAttributeFactory$LWS('xlink:href');
|
|
6904
7277
|
|
|
6905
|
-
function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(
|
|
7278
|
+
function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(record$LWS) {
|
|
6906
7279
|
const {
|
|
6907
|
-
|
|
6908
|
-
|
|
7280
|
+
globalObject: {
|
|
7281
|
+
TrustedTypePolicyFactory: TrustedTypePolicyFactory$LWS
|
|
7282
|
+
}
|
|
7283
|
+
} = record$LWS; // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
6909
7284
|
|
|
6910
7285
|
if (typeof TrustedTypePolicyFactory$LWS !== 'function') {
|
|
6911
7286
|
return null;
|
|
@@ -6933,17 +7308,19 @@ function distortionTrustedTypePolicyFactoryCreatePolicy$LWS(globalObject$LWS) {
|
|
|
6933
7308
|
|
|
6934
7309
|
const HTML_MIME_TYPES_LIST$LWS = toSafeArray$LWS(['text/html', 'image/svg+xml', 'text/xml']);
|
|
6935
7310
|
|
|
6936
|
-
function distortionURLCreateObjectURL$LWS(
|
|
7311
|
+
function distortionURLCreateObjectURL$LWS(record$LWS) {
|
|
6937
7312
|
const {
|
|
6938
|
-
|
|
6939
|
-
|
|
7313
|
+
globalObject: {
|
|
7314
|
+
URL: URL$LWS
|
|
7315
|
+
}
|
|
7316
|
+
} = record$LWS;
|
|
6940
7317
|
const {
|
|
6941
7318
|
createObjectURL: originalCreateObjectURL$LWS
|
|
6942
7319
|
} = URL$LWS;
|
|
6943
7320
|
const {
|
|
6944
7321
|
isEqualDomString: isEqualDomString$LWS,
|
|
6945
7322
|
isMediaSourceObject: isMediaSourceObject$LWS
|
|
6946
|
-
} = getValidator$LWS(
|
|
7323
|
+
} = getValidator$LWS(record$LWS);
|
|
6947
7324
|
|
|
6948
7325
|
function createObjectURL$LWS(blobObject$LWS) {
|
|
6949
7326
|
// Create a URL object first using the native APIs.
|
|
@@ -7002,10 +7379,12 @@ function distortionURLCreateObjectURL$LWS(globalObject$LWS) {
|
|
|
7002
7379
|
return [originalCreateObjectURL$LWS, createObjectURL$LWS];
|
|
7003
7380
|
}
|
|
7004
7381
|
|
|
7005
|
-
function distortionWindowFetch$LWS(
|
|
7382
|
+
function distortionWindowFetch$LWS(record$LWS) {
|
|
7006
7383
|
const {
|
|
7007
|
-
|
|
7008
|
-
|
|
7384
|
+
globalObject: {
|
|
7385
|
+
fetch: originalFetch$LWS
|
|
7386
|
+
}
|
|
7387
|
+
} = record$LWS;
|
|
7009
7388
|
|
|
7010
7389
|
function fetch$LWS(...args$LWS) {
|
|
7011
7390
|
// Let the native method handle missing parameters error or null/undefined URL case.
|
|
@@ -7096,7 +7475,10 @@ class ShadowFramesPrototypeHandler$LWS extends BaseFrameHandler$LWS {}
|
|
|
7096
7475
|
|
|
7097
7476
|
ObjectFreeze$LWS(ShadowFramesPrototypeHandler$LWS.prototype);
|
|
7098
7477
|
|
|
7099
|
-
function distortionWindowFramesGetter$LWS(
|
|
7478
|
+
function distortionWindowFramesGetter$LWS(record$LWS) {
|
|
7479
|
+
const {
|
|
7480
|
+
globalObject: globalObject$LWS
|
|
7481
|
+
} = record$LWS;
|
|
7100
7482
|
const originalWindowFramesGetter$LWS = ObjectLookupOwnGetter$LWS(globalObject$LWS, 'frames'); // istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
7101
7483
|
|
|
7102
7484
|
if (typeof originalWindowFramesGetter$LWS !== 'function') {
|
|
@@ -7277,10 +7659,12 @@ function distortionWindowFramesGetter$LWS(globalObject$LWS) {
|
|
|
7277
7659
|
return [originalWindowFramesGetter$LWS, frames$LWS];
|
|
7278
7660
|
}
|
|
7279
7661
|
|
|
7280
|
-
function distortionWindowGetComputedStyle$LWS(
|
|
7662
|
+
function distortionWindowGetComputedStyle$LWS(record$LWS) {
|
|
7281
7663
|
const {
|
|
7282
|
-
|
|
7283
|
-
|
|
7664
|
+
globalObject: {
|
|
7665
|
+
getComputedStyle: originalGetComputedStyle$LWS
|
|
7666
|
+
}
|
|
7667
|
+
} = record$LWS;
|
|
7284
7668
|
|
|
7285
7669
|
function getComputedStyle$LWS(...args$LWS) {
|
|
7286
7670
|
return toLiveValue$LWS(ReflectApply$LWS(originalGetComputedStyle$LWS, this, args$LWS));
|
|
@@ -7289,7 +7673,10 @@ function distortionWindowGetComputedStyle$LWS(globalObject$LWS) {
|
|
|
7289
7673
|
return [originalGetComputedStyle$LWS, getComputedStyle$LWS];
|
|
7290
7674
|
}
|
|
7291
7675
|
|
|
7292
|
-
function distortionWindowLengthGetter$LWS(
|
|
7676
|
+
function distortionWindowLengthGetter$LWS(record$LWS) {
|
|
7677
|
+
const {
|
|
7678
|
+
globalObject: globalObject$LWS
|
|
7679
|
+
} = record$LWS;
|
|
7293
7680
|
const originalLengthGetter$LWS = ObjectLookupOwnGetter$LWS(globalObject$LWS, 'length'); // istanbul ignore if: currently unreachable via tests
|
|
7294
7681
|
|
|
7295
7682
|
if (typeof originalLengthGetter$LWS !== 'function') {
|
|
@@ -7303,10 +7690,10 @@ function distortionWindowLengthGetter$LWS(globalObject$LWS) {
|
|
|
7303
7690
|
return [originalLengthGetter$LWS, length$LWS];
|
|
7304
7691
|
}
|
|
7305
7692
|
|
|
7306
|
-
function distortionWindowOnstorage$LWS(
|
|
7693
|
+
function distortionWindowOnstorage$LWS(record$LWS) {
|
|
7307
7694
|
const {
|
|
7308
|
-
|
|
7309
|
-
} =
|
|
7695
|
+
globalObject: globalObject$LWS
|
|
7696
|
+
} = record$LWS;
|
|
7310
7697
|
const {
|
|
7311
7698
|
Window: Window$LWS
|
|
7312
7699
|
} = globalObject$LWS;
|
|
@@ -7320,14 +7707,16 @@ function distortionWindowOnstorage$LWS(globalObject$LWS, options$LWS) {
|
|
|
7320
7707
|
throw new LockerSecurityError$LWS('Cannot set window.onstorage.');
|
|
7321
7708
|
};
|
|
7322
7709
|
|
|
7323
|
-
registerEventTargetRestriction$LWS(Window$LWS, 'storage'
|
|
7710
|
+
registerEventTargetRestriction$LWS(record$LWS, Window$LWS, 'storage');
|
|
7324
7711
|
return [originalOnstorageSetter$LWS, onstorage$LWS];
|
|
7325
7712
|
}
|
|
7326
7713
|
|
|
7327
|
-
function distortionWindowOpen$LWS(
|
|
7714
|
+
function distortionWindowOpen$LWS(record$LWS) {
|
|
7328
7715
|
const {
|
|
7329
|
-
|
|
7330
|
-
|
|
7716
|
+
globalObject: {
|
|
7717
|
+
open: originalWindowOpen$LWS
|
|
7718
|
+
}
|
|
7719
|
+
} = record$LWS;
|
|
7331
7720
|
|
|
7332
7721
|
function open$LWS(...args$LWS) {
|
|
7333
7722
|
const sanitizedArgs$LWS = sanitizeWindowOpenArguments$LWS(args$LWS);
|
|
@@ -7337,10 +7726,12 @@ function distortionWindowOpen$LWS(globalObject$LWS) {
|
|
|
7337
7726
|
return [originalWindowOpen$LWS, open$LWS];
|
|
7338
7727
|
}
|
|
7339
7728
|
|
|
7340
|
-
function distortionWindowPostMessage$LWS(
|
|
7729
|
+
function distortionWindowPostMessage$LWS(record$LWS) {
|
|
7341
7730
|
const {
|
|
7342
|
-
|
|
7343
|
-
|
|
7731
|
+
globalObject: {
|
|
7732
|
+
postMessage: originalPostMessage$LWS
|
|
7733
|
+
}
|
|
7734
|
+
} = record$LWS;
|
|
7344
7735
|
|
|
7345
7736
|
function postMessage$LWS(...args$LWS) {
|
|
7346
7737
|
// istanbul ignore else: needs default platform behavior test
|
|
@@ -7350,19 +7741,20 @@ function distortionWindowPostMessage$LWS(globalObject$LWS) {
|
|
|
7350
7741
|
args$LWS = partialStructuredClone$LWS(args$LWS);
|
|
7351
7742
|
}
|
|
7352
7743
|
|
|
7353
|
-
return ReflectApply$LWS(originalPostMessage$LWS,
|
|
7744
|
+
return ReflectApply$LWS(originalPostMessage$LWS, this, args$LWS);
|
|
7354
7745
|
}
|
|
7355
7746
|
|
|
7356
7747
|
return [originalPostMessage$LWS, postMessage$LWS];
|
|
7357
7748
|
}
|
|
7358
7749
|
|
|
7359
|
-
function distortionWindowSetInterval$LWS(
|
|
7360
|
-
const {
|
|
7361
|
-
evaluator: evaluator$LWS
|
|
7362
|
-
} = options$LWS;
|
|
7750
|
+
function distortionWindowSetInterval$LWS(record$LWS) {
|
|
7363
7751
|
const {
|
|
7364
|
-
|
|
7365
|
-
|
|
7752
|
+
UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
|
|
7753
|
+
globalObject: {
|
|
7754
|
+
setInterval: originalSetInterval$LWS
|
|
7755
|
+
},
|
|
7756
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
7757
|
+
} = record$LWS;
|
|
7366
7758
|
|
|
7367
7759
|
function setInterval$LWS(...args$LWS) {
|
|
7368
7760
|
if (args$LWS.length) {
|
|
@@ -7372,10 +7764,10 @@ function distortionWindowSetInterval$LWS(globalObject$LWS, options$LWS) {
|
|
|
7372
7764
|
|
|
7373
7765
|
if (callback$LWS !== null && callback$LWS !== undefined && typeof callback$LWS !== 'function') {
|
|
7374
7766
|
// Snapshot callback source to prevent shapeshifting.
|
|
7375
|
-
const
|
|
7767
|
+
const sourceText$LWS = transformUncompiledSourceText$LWS(toString$LWS(callback$LWS)); // Replace callback parameter.
|
|
7376
7768
|
|
|
7377
7769
|
args$LWS[0] = () => {
|
|
7378
|
-
|
|
7770
|
+
sandboxEvaluator$LWS(sourceText$LWS, UNCOMPILED_CONTEXT$LWS);
|
|
7379
7771
|
};
|
|
7380
7772
|
}
|
|
7381
7773
|
}
|
|
@@ -7386,13 +7778,14 @@ function distortionWindowSetInterval$LWS(globalObject$LWS, options$LWS) {
|
|
|
7386
7778
|
return [originalSetInterval$LWS, setInterval$LWS];
|
|
7387
7779
|
}
|
|
7388
7780
|
|
|
7389
|
-
function distortionWindowSetTimeout$LWS(
|
|
7781
|
+
function distortionWindowSetTimeout$LWS(record$LWS) {
|
|
7390
7782
|
const {
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7783
|
+
UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
|
|
7784
|
+
globalObject: {
|
|
7785
|
+
setTimeout: originalSetTimeout$LWS
|
|
7786
|
+
},
|
|
7787
|
+
sandboxEvaluator: sandboxEvaluator$LWS
|
|
7788
|
+
} = record$LWS;
|
|
7396
7789
|
|
|
7397
7790
|
function setTimeout$LWS(...args$LWS) {
|
|
7398
7791
|
if (args$LWS.length) {
|
|
@@ -7402,10 +7795,10 @@ function distortionWindowSetTimeout$LWS(globalObject$LWS, options$LWS) {
|
|
|
7402
7795
|
|
|
7403
7796
|
if (callback$LWS !== null && callback$LWS !== undefined && typeof callback$LWS !== 'function') {
|
|
7404
7797
|
// Snapshot callback source to prevent shapeshifting.
|
|
7405
|
-
const
|
|
7798
|
+
const sourceText$LWS = transformUncompiledSourceText$LWS(toString$LWS(callback$LWS)); // Replace callback parameter.
|
|
7406
7799
|
|
|
7407
7800
|
args$LWS[0] = () => {
|
|
7408
|
-
|
|
7801
|
+
sandboxEvaluator$LWS(sourceText$LWS, UNCOMPILED_CONTEXT$LWS);
|
|
7409
7802
|
};
|
|
7410
7803
|
}
|
|
7411
7804
|
}
|
|
@@ -7416,10 +7809,12 @@ function distortionWindowSetTimeout$LWS(globalObject$LWS, options$LWS) {
|
|
|
7416
7809
|
return [originalSetTimeout$LWS, setTimeout$LWS];
|
|
7417
7810
|
}
|
|
7418
7811
|
|
|
7419
|
-
function distortionWindowStructuredClone$LWS(
|
|
7812
|
+
function distortionWindowStructuredClone$LWS(record$LWS) {
|
|
7420
7813
|
const {
|
|
7421
|
-
|
|
7422
|
-
|
|
7814
|
+
globalObject: {
|
|
7815
|
+
structuredClone: originalStructuredClone$LWS
|
|
7816
|
+
}
|
|
7817
|
+
} = record$LWS; // istanbul ignore if: currently unreachable via tests
|
|
7423
7818
|
|
|
7424
7819
|
if (typeof originalStructuredClone$LWS !== 'function') {
|
|
7425
7820
|
return null;
|
|
@@ -7439,10 +7834,12 @@ function distortionWindowStructuredClone$LWS(globalObject$LWS) {
|
|
|
7439
7834
|
return [originalStructuredClone$LWS, structuredClone$LWS];
|
|
7440
7835
|
}
|
|
7441
7836
|
|
|
7442
|
-
function distortionWorkerCtor$LWS(
|
|
7837
|
+
function distortionWorkerCtor$LWS(record$LWS) {
|
|
7443
7838
|
const {
|
|
7444
|
-
|
|
7445
|
-
|
|
7839
|
+
globalObject: {
|
|
7840
|
+
Worker: originalWorkerCtor$LWS
|
|
7841
|
+
}
|
|
7842
|
+
} = record$LWS;
|
|
7446
7843
|
|
|
7447
7844
|
function Worker$LWS(scriptURL$LWS) {
|
|
7448
7845
|
throw new LockerSecurityError$LWS(`Cannot create Worker with ${toSafeTemplateStringValue$LWS(scriptURL$LWS)}.`);
|
|
@@ -7451,19 +7848,23 @@ function distortionWorkerCtor$LWS(globalObject$LWS) {
|
|
|
7451
7848
|
return [originalWorkerCtor$LWS, Worker$LWS];
|
|
7452
7849
|
}
|
|
7453
7850
|
|
|
7454
|
-
function distortionWorkerProto$LWS(
|
|
7851
|
+
function distortionWorkerProto$LWS(record$LWS) {
|
|
7455
7852
|
const {
|
|
7456
|
-
|
|
7457
|
-
|
|
7853
|
+
globalObject: {
|
|
7854
|
+
Worker: {
|
|
7855
|
+
prototype: originalPrototype$LWS
|
|
7856
|
+
}
|
|
7458
7857
|
}
|
|
7459
|
-
} =
|
|
7858
|
+
} = record$LWS;
|
|
7460
7859
|
return [originalPrototype$LWS, createRevokedProxy$LWS(originalPrototype$LWS)];
|
|
7461
7860
|
}
|
|
7462
7861
|
|
|
7463
|
-
function distortionXMLHttpRequestOpen$LWS(
|
|
7862
|
+
function distortionXMLHttpRequestOpen$LWS(record$LWS) {
|
|
7464
7863
|
const {
|
|
7465
|
-
|
|
7466
|
-
|
|
7864
|
+
globalObject: {
|
|
7865
|
+
XMLHttpRequest: XMLHttpRequest$LWS
|
|
7866
|
+
}
|
|
7867
|
+
} = record$LWS;
|
|
7467
7868
|
const {
|
|
7468
7869
|
open: originalOpen$LWS
|
|
7469
7870
|
} = XMLHttpRequest$LWS.prototype;
|
|
@@ -7488,11 +7889,13 @@ function distortionXMLHttpRequestOpen$LWS(globalObject$LWS) {
|
|
|
7488
7889
|
return [originalOpen$LWS, open$LWS];
|
|
7489
7890
|
}
|
|
7490
7891
|
|
|
7491
|
-
function distortionXMLHttpRequestResponseGetter$LWS(
|
|
7892
|
+
function distortionXMLHttpRequestResponseGetter$LWS(record$LWS) {
|
|
7492
7893
|
const {
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7894
|
+
globalObject: {
|
|
7895
|
+
Document: Document$LWS,
|
|
7896
|
+
XMLHttpRequest: XMLHttpRequest$LWS
|
|
7897
|
+
}
|
|
7898
|
+
} = record$LWS;
|
|
7496
7899
|
const originalResponseGetter$LWS = ObjectLookupOwnGetter$LWS(XMLHttpRequest$LWS.prototype, 'response');
|
|
7497
7900
|
|
|
7498
7901
|
function response$LWS() {
|
|
@@ -7505,10 +7908,12 @@ function distortionXMLHttpRequestResponseGetter$LWS(globalObject$LWS) {
|
|
|
7505
7908
|
return [originalResponseGetter$LWS, response$LWS];
|
|
7506
7909
|
}
|
|
7507
7910
|
|
|
7508
|
-
function distortionXMLHttpRequestResponseXMLGetter$LWS(
|
|
7911
|
+
function distortionXMLHttpRequestResponseXMLGetter$LWS(record$LWS) {
|
|
7509
7912
|
const {
|
|
7510
|
-
|
|
7511
|
-
|
|
7913
|
+
globalObject: {
|
|
7914
|
+
XMLHttpRequest: XMLHttpRequest$LWS
|
|
7915
|
+
}
|
|
7916
|
+
} = record$LWS;
|
|
7512
7917
|
const originalResponseXMLGetter$LWS = ObjectLookupOwnGetter$LWS(XMLHttpRequest$LWS.prototype, 'responseXML');
|
|
7513
7918
|
|
|
7514
7919
|
function responseXML$LWS() {
|
|
@@ -7533,17 +7938,19 @@ distortionCSSStyleRuleStyleGetter$LWS, // Document
|
|
|
7533
7938
|
distortionDocumentDomainSetter$LWS, distortionDocumentExecCommand$LWS, distortionDocumentOpen$LWS, // DOMParser
|
|
7534
7939
|
distortionDOMParserParseFromString$LWS, // Element
|
|
7535
7940
|
distortionElementAttachShadow$LWS, distortionElementAttributesGetter$LWS, distortionElementInnerHTMLSetter$LWS, distortionElementOuterHTMLSetter$LWS, distortionElementInsertAdjacentHTML$LWS, distortionElementRemove$LWS, distortionElementReplaceChildren$LWS, distortionElementReplaceWith$LWS, // Event
|
|
7536
|
-
distortionEventComposedPath$LWS, distortionEventPathGetter$LWS, //
|
|
7941
|
+
distortionEventComposedPath$LWS, distortionEventPathGetter$LWS, // Function
|
|
7942
|
+
distortionFunction$LWS, // History
|
|
7537
7943
|
distortionHistoryPushState$LWS, distortionHistoryReplaceState$LWS, // HTMLElement
|
|
7538
7944
|
distortionHTMLElementDatasetGetter$LWS, distortionHTMLElementInnerTextSetter$LWS, distortionHTMLElementOuterTextSetter$LWS, distortionHTMLElementStyleGetter$LWS, // HTMLIFrameElement
|
|
7539
7945
|
distortionHTMLIFrameElementSrcSetter$LWS, // HTMLLinkElement
|
|
7540
|
-
distortionHTMLLinkElementRelSetter$LWS, distortionHTMLLinkElementRelListSetter$LWS, //
|
|
7946
|
+
distortionHTMLLinkElementRelSetter$LWS, distortionHTMLLinkElementRelListSetter$LWS, // HTMLObjectElement
|
|
7947
|
+
distortionHTMLObjectElementDataSetter$LWS, // HTMLScriptElement
|
|
7541
7948
|
distortionHTMLScriptElementSrcGetter$LWS, // IDBObjectStore
|
|
7542
7949
|
distortionIDBObjectStoreAdd$LWS, distortionIDBObjectStorePut$LWS, // Navigator
|
|
7543
7950
|
distortionNavigatorSendBeacon$LWS, distortionNavigatorServiceWorkerGetter$LWS, // Node
|
|
7544
7951
|
distortionNodeRemoveChild$LWS, distortionNodeReplaceChild$LWS, // Notification
|
|
7545
7952
|
distortionNotificationCtor$LWS, // Range
|
|
7546
|
-
distortionRangeCreateContextualFragment$LWS, distortionRangeDeleteContents$LWS, distortionRangeExtractContents$LWS, distortionRangeInsertNode$LWS, // ServiceWorkerContainer
|
|
7953
|
+
distortionRangeCreateContextualFragment$LWS, distortionRangeDeleteContents$LWS, distortionRangeExtractContents$LWS, distortionRangeInsertNode$LWS, distortionRangeSelectNode$LWS, distortionRangeSelectNodeContents$LWS, distortionRangeSetEnd$LWS, distortionRangeSetEndAfter$LWS, distortionRangeSetEndBefore$LWS, distortionRangeSetStart$LWS, distortionRangeSetStartAfter$LWS, distortionRangeSetStartBefore$LWS, distortionRangeSurroundContents$LWS, // ServiceWorkerContainer
|
|
7547
7954
|
distortionServiceWorkerContainer$LWS, // ShadowRoot
|
|
7548
7955
|
distortionShadowRootInnerHTMLSetter$LWS, distortionShadowRootModeGetter$LWS, // SharedWorker
|
|
7549
7956
|
distortionSharedWorkerCtor$LWS, distortionSharedWorkerProto$LWS, // Storage
|
|
@@ -7568,7 +7975,7 @@ distortionElementSetAttribute$LWS, distortionElementSetAttributeNode$LWS, distor
|
|
|
7568
7975
|
distortionEventTargetAddEventListener$LWS, // HTMLScriptElement,
|
|
7569
7976
|
distortionHTMLScriptElementSrcSetter$LWS, // NamedNodeMap
|
|
7570
7977
|
distortionNamedNodeMapSetNamedItem$LWS, distortionNamedNodeMapSetNamedItemNS$LWS, // Node
|
|
7571
|
-
distortionNodeValueSetter$LWS, distortionNodeTextContentSetter$LWS, // Storage
|
|
7978
|
+
distortionNodeValueSetter$LWS, distortionNodeTextContentGetter$LWS, distortionNodeTextContentSetter$LWS, // Storage
|
|
7572
7979
|
distortionLocalStorage$LWS, distortionSessionStorage$LWS, // SVGAnimationElement
|
|
7573
7980
|
distortionSVGAnimateElementAttributeNameAttribute$LWS, // SVGScriptElement
|
|
7574
7981
|
distortionSVGScriptElementHrefAttribute$LWS, // SVGSetElement
|
|
@@ -7580,6 +7987,8 @@ distortionElementAfter$LWS, distortionElementAppend$LWS, distortionElementBefore
|
|
|
7580
7987
|
// distortionNodeAppendChild,
|
|
7581
7988
|
distortionNodeInsertBefore$LWS]));
|
|
7582
7989
|
const externalKeyedDistortionFactories$LWS = internalKeyedDistortionFactories$LWS;
|
|
7990
|
+
const evaluationDistortionFactories$LWS = ObjectFreeze$LWS([// eval
|
|
7991
|
+
distortionEval$LWS]);
|
|
7583
7992
|
const DocumentBlockedProperties$LWS = ObjectFreeze$LWS(['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', 'mozCancelFullScreen', 'mozFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'onfullscreenchange', 'onfullscreenerror', 'onmozfullscreenchange', 'onmozfullscreenerror', 'onrejectionhandled', 'onsecuritypolicyviolation', 'onunhandledrejection', 'releaseCapture', 'releaseEvents', 'webkitFullScreenKeyboardInputAllowed', 'write', 'writeln']);
|
|
7584
7993
|
const ElementBlockedProperties$LWS = ObjectFreeze$LWS(['mozRequestFullScreen', 'onfullscreenchange', 'onfullscreenerror', 'requestFullscreen', 'webkitRequestFullScreen', 'webkitRequestFullscreen']);
|
|
7585
7994
|
const HTMLElementBlockedAttributes$LWS = ObjectFreeze$LWS(['nonce']);
|
|
@@ -7594,7 +8003,7 @@ const HTMLScriptElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
|
|
|
7594
8003
|
const SVGElementBlockedAttributes$LWS = ObjectFreeze$LWS(['nonce']);
|
|
7595
8004
|
const SVGElementBlockedProperties$LWS = ObjectFreeze$LWS(['nonce']);
|
|
7596
8005
|
const XSLTProcessorBlockedProperties$LWS = ObjectFreeze$LWS(['transformToDocument', 'transformToFragment']);
|
|
7597
|
-
/*! version: 0.16.
|
|
8006
|
+
/*! version: 0.16.25 */
|
|
7598
8007
|
|
|
7599
8008
|
/*!
|
|
7600
8009
|
* Copyright (C) 2021 salesforce.com, inc.
|
|
@@ -7697,11 +8106,11 @@ class DefaultInstrumentation$LWS {
|
|
|
7697
8106
|
|
|
7698
8107
|
|
|
7699
8108
|
const defaultInstrumentation$LWS = new DefaultInstrumentation$LWS();
|
|
7700
|
-
/*! version: 0.16.
|
|
8109
|
+
/*! version: 0.16.25 */
|
|
7701
8110
|
|
|
7702
|
-
const
|
|
8111
|
+
const Pt=SymbolFor$LWS("@@lockerDebugMode");if(LOCKER_UNMINIFIED_FLAG$LWS){let t=!0;const O=100,_=5,E=100,x=E/2,A="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",B={style:"margin-left:11px; margin-bottom: 3px;"},M={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},F={style:"color: #9d288c; font-weight: bold"},j={style:"color: #b17ab0"},H={style:"color: #16239f"},k={style:"color: #236d25"},R={style:"color: #606367"},I={style:"color: #b82619"},formatValue$LWS=function(t){if(null==t)return ["span",R,`${t}`];if("boolean"==typeof t)return ["span",H,t];if("number"==typeof t)return NumberIsFinite$LWS(t)?["span",H,t]:["span",H,(t>=0?"":"-")+"Infinity"];if("string"==typeof t){let e=t;const{length:o}=e;if(o>E){const t=ReflectApply$LWS(StringProtoSlice$LWS,e,[0,x]),r=ReflectApply$LWS(StringProtoSlice$LWS,e,[o-x-1,o]);e=t+CHAR_ELLIPSIS$LWS+r;}return ["span",I,JSONStringify$LWS(e)]}return ArrayIsArray$LWS(t)?["span",{},`Array(${t.length})`]:isObject$LWS(t)?["span",{},`{${CHAR_ELLIPSIS$LWS}}`]:["span",I,StringCtor$LWS(t)]},formatHeader$LWS=function(t,o={}){const{t:r}=o,i=[];let b=0;r&&(i[b++]=["span",F,o.o],i[b++]=["span",{},": "]);const T=ReflectApply$LWS(ObjectProtoToString$LWS,t,[]);let P=ObjectKeys$LWS(t);if(T===TO_STRING_BRAND_SYMBOL$LWS)ReflectApply$LWS(ArrayProtoIncludes$LWS,P,["description"])||ReflectApply$LWS(ArrayProtoUnshift$LWS,P,["description"]);else if(T===TO_STRING_BRAND_STRING$LWS){const{length:e}=t;P=ReflectApply$LWS(ArrayProtoFilter$LWS,P,[t=>{const o="string"==typeof t?+t:-1;return o<0||o>=e||!NumberIsInteger$LWS(o)}]);}const{length:w}=P;if(ArrayIsArray$LWS(t)){i[b++]=["span",r?R:{},`(${t.length}) [`];for(let e=0,o=MathMin$LWS(w,O);e<o;e+=1){const o=t[P[e]];i[b++]=["span",{},e?", ":""],i[b++]=formatValue$LWS(o);}return w>O&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"]"],i}let m,E="{";switch(T){case TO_STRING_BRAND_BIG_INT$LWS:case TO_STRING_BRAND_BOOLEAN$LWS:case TO_STRING_BRAND_NUMBER$LWS:case TO_STRING_BRAND_STRING$LWS:case TO_STRING_BRAND_SYMBOL$LWS:{let e=H;T===TO_STRING_BRAND_BIG_INT$LWS?e=k:T===TO_STRING_BRAND_SYMBOL$LWS&&(e=I),E=`${ReflectApply$LWS(StringProtoSlice$LWS,T,[8,-1])} {`,m=["span",e,`${StringCtor$LWS(getNearMembraneSerializedValue$LWS(t))}`];break}}i[b++]=["span",{},E],m&&(i[b++]=m,w&&(i[b++]=["span",{},", "]));for(let e=0,o=MathMin$LWS(w,_);e<o;e+=1){const o=P[e],r=t[o];i[b++]=["span",{},e?", ":""],i[b++]=["span",R,o],i[b++]=["span",{},": "],i[b++]=formatValue$LWS(r);}return w>_&&(i[b++]=["span",null,["span",{},`, ${CHAR_ELLIPSIS$LWS}`]]),i[b++]=["span",{},"}"],i},formatBody$LWS=function(t){const o=ObjectKeys$LWS(t),r=ReflectOwnKeys$LWS(t);ArrayIsArray$LWS(t)||ReflectApply$LWS(ArrayProtoSort$LWS,r,[]);const i=[];let a=0;for(let e=0,{length:s}=r;e<s;e+=1){const s=r[e],l=t[s];if(isObject$LWS(l))i[a++]=["div",{},["object",{object:l,config:{o:StringCtor$LWS(s),t:!0}}]];else {let t=F;"symbol"!=typeof s&&ReflectApply$LWS(ArrayProtoIncludes$LWS,o,[s])||(t=j),i[a++]=["div",B,["span",t,StringCtor$LWS(s)],["span",{},": "],formatValue$LWS(l)];}}return i};let{devtoolsFormatters:C}=window;ArrayIsArray$LWS(C)||(C=[],ReflectDefineProperty$LWS(window,"devtoolsFormatters",{__proto__:null,configurable:!0,value:C,writable:!0})),C[C.length]={header(e,a={}){if(t&&(t=!1,ReflectDefineProperty$LWS(window,Pt,{__proto__:null,configurable:!0,value:!0,writable:!0})),!isNearMembrane$LWS(e))return null;const s=["div",{style:`${A}${a.t?"":"font-style: italic;"}`}];return ReflectApply$LWS(ArrayProtoPush$LWS,s,formatHeader$LWS(e,a)),["div",{},s]},hasBody:()=>!0,body(t){const e=["div",M];return ReflectApply$LWS(ArrayProtoPush$LWS,e,formatBody$LWS(t)),e}};}const wt=Array,mt=WeakMap,{setPrototypeOf:Ot}=Reflect,{iterator:_t,toStringTag:Et,unscopables:xt}=Symbol,{prototype:At}=wt,{at:Bt,concat:Mt,copyWithin:Ft,entries:jt,every:Ht,fill:kt,filter:Rt,find:It,findIndex:Ct,flat:Nt,flatMap:Dt,forEach:Gt,includes:Kt,indexOf:Ut,join:Vt,keys:zt,lastIndexOf:Xt,map:Qt,pop:Zt,push:Jt,reduce:Yt,reduceRight:qt,reverse:te,shift:ee,slice:oe,some:re,sort:ne,splice:ie,toLocaleString:ae,toString:se,unshift:le,values:ce,[_t]:ue}=At,fe=Object.freeze(Object.assign({__proto__:null},At[xt])),{prototype:de}=mt,{delete:ye,get:pe,has:Se,set:he,[Et]:Le}=de;function toSafeWeakMap$LWS(t){return Ot(t,null),t.constructor=mt,t.delete=ye,t.get=pe,t.has=Se,t.set=he,t[Et]=Le,Ot(t,de),t}const ge=toSafeWeakMap$LWS(new WeakMap);function createMembraneMarshall$LWS(t){var e,o,r;const n=Array,i=ArrayBuffer,a=Error,s=Number,l=Object,c=Proxy,u=Reflect,f=RegExp,d=String,y=Symbol,p=TypeError,S=WeakMap,{for:h,toStringTag:L}=y,{apply:g,construct:$,defineProperty:W,deleteProperty:v,get:b,getOwnPropertyDescriptor:T,getPrototypeOf:P,has:w,isExtensible:m,ownKeys:O,preventExtensions:_,set:E,setPrototypeOf:x}=u,{assign:A,defineProperties:B,freeze:M,getOwnPropertyDescriptor:F,getOwnPropertyDescriptors:j,isFrozen:H,isSealed:k,keys:R,prototype:I,seal:C}=l,{hasOwnProperty:N,propertyIsEnumerable:D,toString:G}=I,{hasOwn:K}=l,{__defineGetter__:U,__defineSetter__:V,__lookupGetter__:z,__lookupSetter__:X}=I,Q="function"==typeof K?K:(t,e)=>g(N,t,[e]),Z="object"!=typeof t||null===t,J=Z?void 0:h("@@lockerDebugMode"),Y=Z?void 0:h("@@lockerLiveValue"),q=Z?void 0:h("@@lockerNearMembraneSerializedValue"),tt=Z?void 0:h("@@lockerNearMembrane"),et=h("@@lockerNearMembraneUndefinedValue"),LOCKER_UNMINIFIED_FLAG$LWS=`${()=>
|
|
7703
8112
|
/* $LWS */
|
|
7704
|
-
1}`.includes("*"),ot=LOCKER_UNMINIFIED_FLAG$LWS&&!Q,rt="function"==typeof BigInt,nt=Q?/\w*$/:void 0,{isArray:at}=n,{includes:it,indexOf:st,slice:lt}=n.prototype,{isView:ct}=a,ut=Q?void 0:$(z,a.prototype,["byteLength"]),ft=rt?BigInt.prototype.valueOf:void 0,{valueOf:yt}=Boolean.prototype,{toString:dt}=i.prototype,{bind:pt,toString:St}=Function.prototype,{stringify:ht}=JSON,{isInteger:Lt}=s,{valueOf:$t}=s.prototype,{revocable:gt}=c,{prototype:Wt}=f,{exec:vt,test:bt,toString:Pt}=Wt,Tt=Q?null!=(e=$(z,Wt,["flags"]))?e:function(){const t=$(Pt,this,[]);return $(vt,nt,[t])[0]}:void 0,wt=$(z,Wt,["source"]),{replace:mt,slice:xt,valueOf:Ot}=y.prototype,{toString:_t,valueOf:At}=d.prototype,Bt=$(z,Uint8Array.prototype.__proto__,["length"]),{prototype:Et}=S,{delete:jt,has:Ft,set:Mt,[L]:Ht}=Et,kt=Q||"object"!=typeof console||null===console?void 0:console,Rt=null==kt?void 0:kt.info,Ct=Q?eval:void 0,It=null!=(o=null!=(r=null!=t?t:"undefined"!=typeof globalThis?globalThis:void 0)?r:"undefined"!=typeof self?self:void 0)?o:(W(C,"globalThis",{__proto__:null,configurable:!0,get(){return v(C,"globalThis"),null!=this?this:self}}),globalThis);let Dt=!1,Nt=!1;function alwaysFalse$LWS(){return !1}function identity$LWS(t){return t}const Kt=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(Dt)return;Dt=!0;const t=(()=>{try{var t;i.prepareStackTrace=(t,e)=>e;const e=(new i).stack;return v(i,"prepareStackTrace"),at(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0}catch(t){}})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:o,toString:r}=t.prototype,n=new f(`${$(mt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);try{i.prepareStackTrace=function(t,a){return function(t,a){let i="";try{i=$(dt,t,[]);}catch(t){i="<error>";}let s=!1;for(let t=0,{length:l}=a;t<l;t+=1){const l=a[t],c=$(o,l,[]);let u=!1;if("string"==typeof c&&"eval"!==c&&$(bt,n,[c])&&(u=!0),!u){const t=$(e,l,[]);"string"==typeof t&&$(bt,n,[t])&&(u=!0);}if(u)s||(s=!0,i+="\n at LWS");else {s=!1;try{i+=`\n at ${$(r,l,[])}`;}catch(t){}}}return i}(t,a)};}catch(t){}try{const{stackTraceLimit:t}=i;("number"!=typeof t||t<20)&&(i.stackTraceLimit=20);}catch(t){}}:noop$LWS;function noop$LWS(){}const Gt=Q?t=>$(ft,t,[]):noop$LWS,Vt=Q?t=>$(yt,t,[]):noop$LWS,Ut=Q?t=>$($t,t,[]):noop$LWS,zt=Q?t=>{if(t!==Wt){const e=$(wt,t,[]);return ht({__proto__:null,flags:$(Tt,t,[]),source:e})}}:noop$LWS,Xt=Q?t=>$(Ot,t,[]):noop$LWS,Zt=Q?t=>$(At,t,[]):noop$LWS,Qt=Q?t=>{switch($(K,t,[])){case"[object Boolean]":return Vt(t);case"[object Number]":return Ut(t);case"[object RegExp]":return zt(t);case"[object String]":return Xt(t);case"[object Object]":try{return Zt(t)}catch(t){}if(rt)try{return Gt(t)}catch(t){}default:return}}:noop$LWS,Jt=Q?t=>{try{return Zt(t)}catch(t){}if(rt)try{return Gt(t)}catch(t){}try{return Vt(t)}catch(t){}try{return Ut(t)}catch(t){}try{return zt(t)}catch(t){}try{return Xt(t)}catch(t){}}:noop$LWS;function toSafeWeakMap$LWS(t){return A(t,null),t.constructor=S,t.delete=jt,t.has=Ft,t.set=Mt,t[L]=Ht,A(t,Et),t}return function(t,e,o){const{distortionCallback:r=identity$LWS,instrumentation:a}=B({__proto__:null},o),i=!Q&&"object"==typeof a&&null!==a,s={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},f={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},d=toSafeWeakMap$LWS(new S),h=toSafeWeakMap$LWS(new S),D=i?a.startActivity:void 0;let G,rt,nt,ft,yt,dt,ht,$t,vt,bt,Pt,Tt,mt,Ot,At,Et,jt,Ft,Mt,Ht,Dt,Gt,Vt,Ut,zt,Xt,Zt,Yt,qt,te=!1,ee=0;const oe=Q?(t,e,o)=>{o[e]=!1;const r=getTransferablePointer$LWS(t);let n;try{$t(r,e,(t,e,o,r,a,i,s)=>{n=createDescriptorFromMeta$LWS(e,o,r,a,i,s);});}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,e}n?W(t,e,n):v(t,e);}:noop$LWS;let re=ot?()=>{try{Z(It,J)&&(re=()=>!0,Kt(),Dt());}catch(t){re=alwaysFalse$LWS;}return !1}:alwaysFalse$LWS;function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let o,r,n;i&&(o=D("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));try{r=Xt(t,(...t)=>{const o={};for(let e=0,{length:r}=t;e<r;e+=7){o[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}E(e,o);});}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,i&&o.error(e),e}"function"==typeof r?(r(),n=qt,qt=void 0):n=null,A(e,n),i&&o.stop();}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}()`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(0!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(1)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(1!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(2)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(2!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(3)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(3!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForFourOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(4)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(4!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForFiveOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(5)`,r=e?s:f,n=e?nt:ft;return function(a,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(5!==u)return this[null!=(f=r[u])?f:r.n](a,s,l);let y;i&&(y=D(o));const{i:d}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r,4:a}=c;S=n(d,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r,"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,i&&y.stop(),h}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,o=e?"apply":"construct",r=e?nt:ft;return function(a,s,l){ee=t;const{i:c}=this,u=e?l:s,{length:f}=u;let y;i&&(y=D(`Reflect.${o}(${f})`));const d=e?s:l;let p=2;const S=new n(f+p);let h,L;S[0]=c;try{S[1]="object"==typeof d&&null!==d||"function"==typeof d?getTransferablePointer$LWS(d):"undefined"==typeof d?void 0:d;for(let t=0;t<f;t+=1){const e=u[t];S[p++]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e;}h=$(r,void 0,S);}catch(t){var g;const e=null!=(g=qt)?g:t;throw qt=void 0,i&&y.error(e),e}return "function"==typeof h?(h(),L=qt,qt=void 0):L=h,i&&y.stop(),L}}function createDescriptorFromMeta$LWS(t,e,o,r,n,a){const i={__proto__:null};return t!==et&&(i.configurable=t),e!==et&&(i.enumerable=e),o!==et&&(i.writable=o),n!==et&&("function"==typeof n?(n(),i.get=qt,qt=void 0):i.get=void 0),a!==et&&("function"==typeof a?(a(),i.set=qt,qt=void 0):i.set=void 0),r!==et&&("function"==typeof r?(r(),i.value=qt,qt=void 0):i.value=r),i}function createPointer$LWS(t){return ()=>{qt=t;}}const ne=Q?t=>{let e=d.get(t);if(void 0===e){const o=jt(getTransferablePointer$LWS(t));"function"==typeof o&&(o(),e=qt,qt=void 0,e&&d.set(t,e));}return e}:noop$LWS;function getTransferablePointer$LWS(t,e=rt){let o=h.get(t);if(o)return o;const n=Q?t:r(t);if(n!==t&&typeof n!=typeof t)throw new p(`Invalid distortion ${function(t){if("string"==typeof t)return t;try{if("object"==typeof t&&null!==t){const e=$(K,t,[]);return "[object Symbol]"===e?$(_t,t,[]):e}return "function"==typeof t?$(St,t,[]):y(t)}catch(t){}return "[Object Unknown]"}(t)}.`);let a=!0,i=0,s=0,l=16;if("function"==typeof n){a=!1,i=0,l=4;try{"prototype"in n||(l|=8);const e=P(t,"length");if(e){A(e,null);const{value:t}=e;"number"==typeof t&&(i=t);}void 0;}catch(t){a=!0;}}else if(ct(n)){a=!1,l=2;try{s=$(Bt,n,[]),l|=32;}catch(t){a=!0;}}if(a)try{at(n)&&(l=1);}catch(t){l=64;}return o=e(createPointer$LWS(n),l,i,"",s),h.set(t,o),o}const ae=Q?t=>{if(Nt)return;Nt=!0;const e=at(t)&&t.length>0,o=e?{__proto__:null}:void 0,r=e?(e,o)=>$(it,t,[o])?{configurable:!1,enumerable:$(N,e,[o]),get:n(o),set:void 0}:P(e,o):void 0,n=e?t=>{let e=o[t];return void 0===e&&(e=$(pt,s,[]),o[t]=e),e}:void 0,a=e?(e,o)=>$(it,t,[o])?n(o):$(z,e,[o]):void 0,i=e?(e,o)=>$(it,t,[o])?void 0:$(X,e,[o]):void 0,s=e?()=>It:void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,o=2===e;return new c(t,{apply(r,n,a){if(a.length>=e){const t=o?n:a[0];if("object"==typeof t&&null!==t||"function"==typeof t){const e=o?a[0]:a[1],r=ne(t);null!=r&&r[e]&&t[e];}}return $(t,n,a)}})},wrapLookupAccessor$LWS=(t,o)=>new c(t,{apply(r,n,a){if(a.length&&("object"==typeof n&&null!==n||"function"==typeof n)){const{0:t}=a,r=ne(n);if(null!=r&&r[t]&&n[t],e&&n===It)return o(n,t)}return $(t,n,a)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new c(t,{apply(o,n,a){if(a.length>1){const{0:t,1:o}=a;if("object"==typeof t&&null!==t||"function"==typeof t){const n=ne(t);if(null!=n&&n[o]&&t[o],e&&t===It)return r(t,o)}}return $(t,n,a)}});try{u.defineProperty=wrapDefineAccessOrProperty$LWS(W);}catch(t){}try{u.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(P);}catch(t){}try{l.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(F);}catch(t){}try{l.getOwnPropertyDescriptors=new c(f=M,{apply(t,o,n){const a=n.length?n[0]:void 0;if(("object"!=typeof a||null===a)&&"function"!=typeof a)return $(f,o,n);const i=ne(a),s=a===It&&e,l=s?{}:$(f,o,n);if(!s&&void 0===i)return l;const c=x(s?a:l);for(let t=0,{length:e}=c;t<e;t+=1){const e=c[t],o=!(null==i||!i[e]);if(o&&a[e],o||s){const t=s?r(a,e):P(a,e);t?l[e]=t:s||v(l,e);}}return l}});}catch(t){}var f;try{C.__defineGetter__=wrapDefineAccessOrProperty$LWS(V);}catch(t){}try{C.__defineSetter__=wrapDefineAccessOrProperty$LWS(U);}catch(t){}try{C.__lookupGetter__=wrapLookupAccessor$LWS(z,a);}catch(t){}try{C.__lookupSetter__=wrapLookupAccessor$LWS(X,i);}catch(t){}}:noop$LWS;function lookupForeignDescriptor$LWS(t,e,o){let r,n,a;i&&(r=D("lookupForeignDescriptor"));try{n=Yt(t,o,(t,r,n,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(r,n,i,s,l,c),!1===r&&W(e,o,a),a.l=!0;});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,i&&r.error(e),e}if(void 0===a){let t=null;for("function"==typeof n&&(n(),t=qt,qt=void 0);t;){if(a=P(t,o),a){A(a,null);break}t=T(t);}if(a){var l;const{get:t,set:e,value:o}=a,r=null!=(l=null!=t?t:e)?l:o;a.l=("object"==typeof r&&null!==r||"function"==typeof r)&&void 0!==h.get(r);}}return i&&r.stop(),a}function pushErrorAcrossBoundary$LWS(t){if(ot&&re(),"object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t,G)();}return t}function pushTarget$LWS(t,e,o,r,n){const{proxy:a}=new BoundaryProxyHandler$LWS(t,e,o,r,n);return h.set(a,t),createPointer$LWS(a)}const ie=Q?(t,e)=>{d.set(t,e),zt(getTransferablePointer$LWS(t),getTransferablePointer$LWS(e));}:noop$LWS;class BoundaryProxyHandler$LWS{constructor(t,e,o,r,n){let a;const i=1&e,l=4&e;a=l?8&e?()=>{}:function(){}:i?[]:{};const{proxy:c,revoke:u}=gt(a,this);var y,d;(this.i=t,this.u=e,this.p=n,this.S=(t,e,o,r,n,a,i)=>{W(this.h,t,createDescriptorFromMeta$LWS(e,o,r,n,a,i));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.h=a,this.L="Object",l)&&(this.apply=this[null!=(y=s[o])?y:s.n],this.construct=this[null!=(d=f[o])?d:f.n]);if(this.defineProperty=BoundaryProxyHandler$LWS.$,this.deleteProperty=BoundaryProxyHandler$LWS.g,this.isExtensible=BoundaryProxyHandler$LWS.W,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.v,this.getPrototypeOf=BoundaryProxyHandler$LWS.P,this.get=32&e?BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray:BoundaryProxyHandler$LWS.T,this.has=BoundaryProxyHandler$LWS.m,this.ownKeys=BoundaryProxyHandler$LWS.O,this.preventExtensions=BoundaryProxyHandler$LWS._,this.setPrototypeOf=BoundaryProxyHandler$LWS.A,this.set=BoundaryProxyHandler$LWS.B,64&e)j(this),this.revoke();else if(Q)(i||2&e)&&this.j();else {if(16&e){let t=et;$(V,this,["serializedValue",()=>(t===et&&(t=Ut(this.i)),t)]);}j(this);}}j(){this.deleteProperty=BoundaryProxyHandler$LWS.F,this.defineProperty=BoundaryProxyHandler$LWS.M,this.preventExtensions=BoundaryProxyHandler$LWS.H,this.set=BoundaryProxyHandler$LWS.k,this.setPrototypeOf=BoundaryProxyHandler$LWS.R,j(this);}C(){this.defineProperty=BoundaryProxyHandler$LWS.I,this.deleteProperty=BoundaryProxyHandler$LWS.D,this.get=BoundaryProxyHandler$LWS.N,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.K,this.getPrototypeOf=BoundaryProxyHandler$LWS.G,this.has=BoundaryProxyHandler$LWS.V,this.isExtensible=BoundaryProxyHandler$LWS.U,this.ownKeys=BoundaryProxyHandler$LWS.X,this.preventExtensions=BoundaryProxyHandler$LWS.Z,this.set=BoundaryProxyHandler$LWS.J,this.setPrototypeOf=BoundaryProxyHandler$LWS.Y;const{i:t,u:e,h:o}=this,r=Ft(t);if(8&r)return j(this),this.revoke(),void 0;try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o);}catch(e){if(Vt(t))return j(this),this.revoke(),void 0}if(16&e&&!w(o,L)){let e="Object";try{e=Mt(t);}catch(t){}this.L=e;}4&r?j(o):(2&r?I(o):1&r&&O(o),LOCKER_UNMINIFIED_FLAG$LWS&&Et("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),j(this);}static M(t,e,o){let r;ee=4,i&&(r=D("Reflect.defineProperty"));const{i:n,S:a}=this,s=o;A(s,null);const{get:l,set:c,value:u}=s,f="value"in s?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):"undefined"==typeof u?void 0:u:et,y="get"in s?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et,d="set"in s?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et;let p=!1;try{p=yt(n,e,"configurable"in s?!!s.configurable:et,"enumerable"in s?!!s.enumerable:et,"writable"in s?!!s.writable:et,f,y,d,a);}catch(t){var S;const e=null!=(S=qt)?S:t;throw qt=void 0,i&&r.error(e),e}return i&&r.stop(),p}static F(t,e){let o;ee=8,i&&(o=D("Reflect.deleteProperty"));let r=!1;try{r=dt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),r}static q(t){let e,o,r;ee=64,i&&(e=D("Reflect.getPrototypeOf"));try{o=vt(this.i);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,i&&e.error(o),o}return "function"==typeof o?(o(),r=qt,qt=void 0):r=null,i&&e.stop(),r}static tt(t){let e;ee=256,i&&(e=D("Reflect.isExtensible"));const{h:o}=this;let r=!1;if(m(o)){const{i:t}=this;try{r=Pt(t);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,i&&e.error(o),o}r||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o),O(o));}return i&&e.stop(),r}static et(t){let e,o;ee=512,i&&(e=D("Reflect.ownKeys"));try{Tt(this.i,(...t)=>{o=t;});}catch(t){var r;const o=null!=(r=qt)?r:t;throw qt=void 0,i&&e.error(o),o}return i&&e.stop(),o||[]}static ot(t,e){let o;ee=32,i&&(o=D("Reflect.getOwnPropertyDescriptor"));const{i:r,h:n}=this;let a;try{$t(r,e,(t,o,r,i,s,l,c)=>{a=createDescriptorFromMeta$LWS(o,r,i,s,l,c),!1===a.configurable&&W(n,e,a);});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),a}static H(t){let e;ee=1024,i&&(e=D("Reflect.preventExtensions"));const{i:o,h:r}=this;let n=!0;if(m(r)){let t=0;try{t=mt(o);}catch(t){var a;const o=null!=(a=qt)?a:t;throw qt=void 0,i&&e.error(o),o}1&t||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(o,r),O(r)),n=!(2&t);}return i&&e.stop(),n}static R(t,e){let o;ee=4096,i&&(o=D("Reflect.setPrototypeOf"));const r=e?getTransferablePointer$LWS(e):e;let n=!1;try{n=At(this.i,r);}catch(t){var a;const e=null!=(a=qt)?a:t;throw qt=void 0,i&&o.error(e),e}return i&&o.stop(),n}static k(t,e,o,r){ee=2048;const{i:n,proxy:a,h:s}=this;"undefined"==typeof o&&(o=void 0),"undefined"==typeof r&&(r=a);const l=a===r;let c;i&&(c=D(l?"Reflect.set":"passthruForeignTraversedSet"));let u=!1;try{u=l?Ot(n,e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o,et):function(t,e,o,r,n){const a=lookupForeignDescriptor$LWS(t,e,o);if(a){if("get"in a||"set"in a){const{set:t}=a;return !!t&&(a.l?nt(getTransferablePointer$LWS(t),"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):"undefined"==typeof n?void 0:n,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r):$(t,n,[r]),!0)}if(!1===a.writable)return !1}if(("object"!=typeof n||null===n)&&"function"!=typeof n)return !1;const i=P(n,o);return i?(A(i,null),!("get"in i)&&!("set"in i)&&!1!==i.writable&&(W(n,o,{__proto__:null,value:r}),!0)):W(n,o,{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!0})}(n,s,e,o,r);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&c.error(e),e}return i&&c.stop(),u}}BoundaryProxyHandler$LWS.rt=Q?function(t,e,o){let r;i&&(r=D("hybridGetTrap"));const{i:n,u:a,proxy:s,h:l}=this,c=lookupForeignDescriptor$LWS(n,l,e);let u;if(c){const{get:t,value:e}=c;if(t)if(c.l){const e=getTransferablePointer$LWS(t),a=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(e,a);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=$(t,o,[]);else u=e;}else if(e===L&&16&a){let t;try{t=Mt(n);}catch(t){var y;const e=null!=(y=qt)?y:t;throw qt=void 0,i&&r.error(e),e}"Object"!==t&&(u=t);}return i&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray=Q?function(t,e,o){let r;i&&(r=D("hybridGetTrapForTypedArray"));const{i:n,p:a,proxy:s,h:l}=this,c="string"==typeof e?+e:-1;let u;if(c>-1&&c<a&&Lt(c))try{u=Ht(n,e);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}else {const t=lookupForeignDescriptor$LWS(n,l,e);if(t){const{get:e,value:a}=t;if(e)if(t.l){const t=getTransferablePointer$LWS(e),a=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(t,a);}catch(t){var y;const e=null!=(y=qt)?y:t;throw qt=void 0,i&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=$(e,o,[]);else u=a;}}return i&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.nt=Q?function(t,e){let o,r;i&&(o=D("hybridHasTrap"));try{r=Zt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}let a=!1;if(!0===r)a=!0;else {let t=null;for("function"==typeof r&&(r(),t=qt,qt=void 0);t;){if(Z(t,e)){a=!0;break}t=T(t);}}return i&&o.stop(),a}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.it=Q?noop$LWS:function(t,e,o){if(te&&(te=128===ee),ee=16,te){if(e===tt)return !0;if(e===q)return this.serializedValue}let r;i&&(r=D("Reflect.get"));const{i:n,u:a,proxy:s}=this;"undefined"==typeof o&&(o=s);const l=s===o?et:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let c,u;try{c=ht(n,a,e,l);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,i&&r.error(e),e}return "function"==typeof c?(c(),u=qt,qt=void 0):u=c,i&&r.stop(),u},BoundaryProxyHandler$LWS.st=Q?alwaysFalse$LWS:function(t,e){let o,r;ee=128,i&&(o=D("Reflect.has"));try{r=bt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,i&&o.error(e),e}return te=!r&&(e===tt||e===q),i&&o.stop(),r},BoundaryProxyHandler$LWS.lt=Q?function(t,e,o){return Gt(this.i)?this.j():this.C(),this.defineProperty(t,e,o)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ct=Q?function(t,e){return Gt(this.i)?this.j():this.C(),this.deleteProperty(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ut=Q?function(t){return Gt(this.i)?this.j():this.C(),this.preventExtensions(t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ft=Q?function(t,e){return Gt(this.i)?this.j():this.C(),this.setPrototypeOf(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.yt=Q?function(t,e,o,r){return Gt(this.i)?this.j():this.C(),this.set(t,e,o,r)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.I=Q?W:alwaysFalse$LWS,BoundaryProxyHandler$LWS.D=Q?v:alwaysFalse$LWS,BoundaryProxyHandler$LWS.K=Q?P:noop$LWS,BoundaryProxyHandler$LWS.G=Q?T:()=>null,BoundaryProxyHandler$LWS.N=Q?function(t,e,o){const{u:r,L:n}=this,a=b(t,e,o);return void 0===a&&e===L&&16&r&&"Object"!==n&&!w(t,e)?n:a}:noop$LWS,BoundaryProxyHandler$LWS.V=Q?w:alwaysFalse$LWS,BoundaryProxyHandler$LWS.U=Q?m:alwaysFalse$LWS,BoundaryProxyHandler$LWS.X=Q?x:()=>[],BoundaryProxyHandler$LWS.Z=Q?O:alwaysFalse$LWS,BoundaryProxyHandler$LWS.Y=Q?A:alwaysFalse$LWS,BoundaryProxyHandler$LWS.J=Q?_:alwaysFalse$LWS,BoundaryProxyHandler$LWS.$=Q?BoundaryProxyHandler$LWS.lt:BoundaryProxyHandler$LWS.M,BoundaryProxyHandler$LWS.g=Q?BoundaryProxyHandler$LWS.ct:BoundaryProxyHandler$LWS.F,BoundaryProxyHandler$LWS.v=BoundaryProxyHandler$LWS.ot,BoundaryProxyHandler$LWS.P=BoundaryProxyHandler$LWS.q,BoundaryProxyHandler$LWS.T=Q?BoundaryProxyHandler$LWS.rt:BoundaryProxyHandler$LWS.it,BoundaryProxyHandler$LWS.m=Q?BoundaryProxyHandler$LWS.nt:BoundaryProxyHandler$LWS.st,BoundaryProxyHandler$LWS.W=BoundaryProxyHandler$LWS.tt,BoundaryProxyHandler$LWS.O=BoundaryProxyHandler$LWS.et,BoundaryProxyHandler$LWS._=Q?BoundaryProxyHandler$LWS.ut:BoundaryProxyHandler$LWS.H,BoundaryProxyHandler$LWS.B=Q?BoundaryProxyHandler$LWS.yt:BoundaryProxyHandler$LWS.k,BoundaryProxyHandler$LWS.A=Q?BoundaryProxyHandler$LWS.ft:BoundaryProxyHandler$LWS.R,e(createPointer$LWS(It),Q?noop$LWS:()=>{const t=qt;return qt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,(t,e)=>{t();const o=qt;qt=void 0;const r=null==o?void 0:o[e];return createPointer$LWS("undefined"==typeof r?void 0:r)},Q?t=>{let e;try{e=Ct(t);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):e}:noop$LWS,(t,e)=>{t();const o=qt;qt=void 0,("object"==typeof o&&null!==o||"function"==typeof o)&&h.set(o,e);},ot?(t,e,o,r,n)=>{const a=pushTarget$LWS(t,e,o,r,n);return ()=>(re(),a())}:pushTarget$LWS,pushTarget$LWS,(t,e,...o)=>{t();const r=qt;let n,a;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{a=$(r,n,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,...o)=>{t();const r=qt;let n,a;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{a=g(r,o,n);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a},(t,e,o,r,n,a,i,s,l)=>{t();const c=qt;qt=void 0;const u=createDescriptorFromMeta$LWS(o,r,n,a,i,s);let f=!1;try{f=W(c,e,u);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(f&&!1===o){let t;try{t=P(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&(A(t,null),!1===t.configurable)){const{get:o,set:r,value:n}=t;l(e,!1,"enumerable"in t?t.enumerable:et,"writable"in t?t.writable:et,"value"in t?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):n:et,"get"in t?"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o:et,"set"in t?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et);}}return f},(t,e)=>{t();const o=qt;qt=void 0;try{return v(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,o,r)=>{t();const n=qt;let a,i;qt=void 0,"function"==typeof r?(r(),a=qt,qt=void 0):a=r===et?n:r;try{i=b(n,o,a);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof i&&null!==i||"function"==typeof i)return getTransferablePointer$LWS(i);if(void 0===i&&o===L&&16&e)try{if(!w(n,o)){const t=$(K,n,[]);"[object Object]"!==t&&(i=$(xt,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof i?void 0:i},(t,e,o)=>{t();const r=qt;let n;qt=void 0;try{n=P(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:r,value:a}=n;o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et);}},t=>{t();const e=qt;let o;qt=void 0;try{o=T(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof o?null:o?getTransferablePointer$LWS(o):o},(t,e)=>{t();const o=qt;qt=void 0;try{return w(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=qt;qt=void 0;try{return m(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=x(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}$(e,void 0,r);},t=>{t();const e=qt;qt=void 0;let o=2;try{O(e)?o=4:m(e)&&(o|=1);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o},(t,e,o,r)=>{t();const n=qt;let a,i;qt=void 0,"function"==typeof o?(o(),a=qt,qt=void 0):a=o,"function"==typeof r?(r(),i=qt,qt=void 0):i=r===et?n:r;try{return _(n,e,a,i)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e=null)=>{t();const o=qt;let r;qt=void 0,"function"==typeof e?(e(),r=qt,qt=void 0):r=null;try{return A(o,r)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},ot?(...t)=>{if(re()){for(let e=0,{length:o}=t;e<o;e+=1){const o=t[e];"function"==typeof o&&(o(),t[e]=qt,qt=void 0);}try{$(Rt,kt,t);}catch(t){}}}:noop$LWS,Q?(t,...e)=>{t();const o=qt;qt=void 0;for(let t=0,{length:r}=e;t<r;t+=7)W(o,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));}:noop$LWS,Q?noop$LWS:t=>{t();const e=qt;qt=void 0;const o=fe.get(e);return o?getTransferablePointer$LWS(o):o},Q?()=>0:t=>{t();const e=qt;qt=void 0;try{if(!m(e))return H(e)||k(e)?0:1}catch(t){try{at(e);}catch(t){return 8}}return 0},t=>{t();const e=qt;qt=void 0;try{const t=$(K,e,[]);return "[object Object]"===t?"Object":$(xt,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Q?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0;try{return o[e]}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Kt,Q?(t,...e)=>{const o=$(st,e,[et]);let r,n;-1===o?r=e:(r=$(lt,e,[0,o]),n=$(lt,e,[o+1])),t();const a=qt;qt=void 0;let i=ne(a);void 0===i&&(i={__proto__:null},ie(a,i));for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];i[e]=!0,W(a,e,{__proto__:null,configurable:!0,get:()=>(oe(a,e,i),a[e]),set(t){oe(a,e,i),_(a,e,t);}});}ae(n);}:noop$LWS,Q?alwaysFalse$LWS:t=>{t();const e=qt;if(qt=void 0,e===C)return !1;try{if("object"==typeof e){const{constructor:t}=e;if(t===l)return !0;if(null===T(e)&&("function"!=typeof t||t.prototype!==e))return !0;try{return $(ut,e,[]),!0}catch(t){}try{if(e!==Wt)return $(wt,e,[]),!0}catch(t){}}return Z(e,Y)}catch(t){}return !1},Q?alwaysFalse$LWS:t=>{t();const e=qt;qt=void 0;try{return at(e),!1}catch(t){}return !0},Q?t=>{t();const e=qt;qt=void 0;try{return w(e,L)?Jt(e):Qt(e)}catch(t){}}:noop$LWS,Q?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0,e();const r=qt;qt=void 0,fe.set(o,r);},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=M(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const a=x(r),{length:i}=a,s=new n(7*i);for(let t=0,e=0;t<i;t+=1,e+=7){const o=a[t],n=r[o];A(n,null);const{get:i,set:l,value:c}=n;s[e]=o,s[e+1]="configurable"in n?n.configurable:et,s[e+2]="enumerable"in n?n.enumerable:et,s[e+3]="writable"in n?n.writable:et,s[e+4]="value"in n?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et,s[e+5]="get"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):i:et,s[e+6]="set"in n?"object"==typeof l&&null!==l||"function"==typeof l?getTransferablePointer$LWS(l):l:et;}let l;$(e,void 0,s);try{l=T(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof l?null:l?getTransferablePointer$LWS(l):l},(t,e)=>{t();const o=qt;let r;qt=void 0;try{if(Z(o,e))return !0;r=T(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof r?null:r?getTransferablePointer$LWS(r):r},(t,e,o)=>{t();const r=qt;let n,a;qt=void 0;try{n=P(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){A(n,null);const{get:t,set:r,value:a}=n;return o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof a&&null!==a||"function"==typeof a?getTransferablePointer$LWS(a):"undefined"==typeof a?void 0:a:et,"get"in n?"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):r:et),void 0}try{a=T(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof a?null:a?getTransferablePointer$LWS(a):a});let se=!1;return (...t)=>{if(se)return;se=!0,({6:G,7:rt,8:nt,9:ft,10:yt,11:dt,12:ht,13:$t,14:vt,15:bt,16:Pt,17:Tt,18:mt,19:Ot,20:At,21:Et,23:jt,24:Ft,25:Mt,26:Ht,27:Dt,29:Gt,30:Vt,31:Ut,32:zt,33:Xt,34:Zt,35:Yt}=t);const e=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),o=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),r=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),n=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1),a=createApplyOrConstructTrapForFourOrMoreArgs$LWS(1),i=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1),l=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),c=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),u=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),y=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),d=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2),p=createApplyOrConstructTrapForFourOrMoreArgs$LWS(2),S=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2),h=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2),L=R({dt:e,St:o,ht:r,Lt:n,$t:a,gt:i,Wt:l,vt:c,bt:u,Pt:y,Tt:d,wt:p,xt:S,Ot:h});s[0]=L[0],s[1]=L[1],s[2]=L[2],s[3]=L[3],s[4]=L[4],s[5]=L[5],s.n=L[6],f[0]=L[7],f[1]=L[8],f[2]=L[9],f[3]=L[10],f[4]=L[11],f[5]=L[12],f.n=L[13];const{prototype:$}=BoundaryProxyHandler$LWS;$[s[0]]=e,$[s[1]]=o,$[s[2]]=r,$[s[3]]=n,$[s[4]]=a,$[s[5]]=i,$[s.n]=l,$[f[0]]=c,$[f[1]]=u,$[f[2]]=y,$[f[3]]=d,$[f[4]]=p,$[f[5]]=S,$[f.n]=h,A($,null),j($);}}}const ye=TypeError,de=WeakMap,pe=toSafeWeakMap$LWS(new de),Se=toSafeWeakMap$LWS(new de),he=`\n'use strict';\n(${createMembraneMarshall$LWS})`;function createBlueConnector$LWS(t){if("object"!=typeof t||null===t)throw new ye("Missing globalObject.");let e=Se.get(t);return void 0===e&&(e=createMembraneMarshall$LWS(t),Se.set(t,e)),e}function createRedConnector$LWS(t){if("function"!=typeof t)throw new ye("Missing evaluator function.");let e=pe.get(t);return void 0===e&&(e=t(he)(),pe.set(t,e)),e}const Le=Symbol.for("@@lockerNearMembraneUndefinedValue"),$e=Array,ge=Error,We=Object,{push:ve}=$e.prototype,{assign:be}=We,{apply:Pe,ownKeys:Te}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new ge("Missing VirtualEnvironmentOptions options bag.");const{_t:e,distortionCallback:o,instrumentation:r,redConnector:n}=be({__proto__:null},t);let a;const i=e("blue",(...t)=>{a=t;},{distortionCallback:o,instrumentation:r}),{0:s,1:l,2:c,3:u,5:f,6:y,7:d,8:p,9:S,10:h,11:L,12:$,13:g,14:W,15:v,16:b,17:P,18:T,19:w,20:m,21:x,23:O,24:_,25:A,26:B,27:E,29:j,30:F,31:M,32:H,33:k,34:R,35:C}=a;let I;const D=n("red",(...t)=>{I=t;}),{0:N,3:K,4:G,5:V,6:U,7:z,8:X,9:Z,10:Q,11:J,12:Y,13:q,14:tt,15:et,16:ot,17:rt,18:nt,19:at,20:it,21:st,22:lt,23:ct,24:ut,25:ft,26:yt,27:dt,28:pt,29:St,30:ht,31:Lt,32:$t,33:gt,34:Wt,35:vt}=I;i(void 0,void 0,void 0,void 0,void 0,void 0,U,z,X,Z,Q,J,Y,q,tt,et,ot,rt,nt,at,it,st,void 0,ct,ut,ft,yt,dt,void 0,St,ht,Lt,$t,gt,Wt,vt),D(void 0,void 0,void 0,void 0,void 0,void 0,y,d,p,S,h,L,$,g,W,v,b,P,T,w,m,x,void 0,O,_,A,B,E,void 0,j,F,M,H,k,R,C),this.At=s,this.Bt=l,this.Et=c,this.jt=u,this.Ft=f,this.redGlobalThisPointer=N,this.Mt=K,this.Ht=G,this.kt=V,this.Rt=it,this.Ct=lt,this.It=pt;}evaluate(t){try{const e=this.Ht(t);return "function"==typeof e?(e(),this.Bt()):e}catch(t){var e;throw null!=(e=this.Bt())?e:t}}Dt(t,e,o){const r=[this.Et(t)];Pe(ve,r,e),null!=o&&o.length&&(r[r.length]=Le,Pe(ve,r,o)),Pe(this.It,void 0,r);}link(...t){let e=this.At,o=this.redGlobalThisPointer;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];e=this.jt(e,n),o=this.Mt(o,n),this.kt(o,e),this.Ft(e,o);}}Nt(t,e){const o=this.Et(t),r=Te(e),{length:n}=r,a=new $e(1+7*n);a[0]=o;for(let t=0,o=1;t<n;t+=1,o+=7){const n=r[t],i=e[n],s=be({__proto__:null},i);a[o]=n,a[o+1]="configurable"in s?!!s.configurable:Le,a[o+2]="enumerable"in s?!!s.enumerable:Le,a[o+3]="writable"in s?!!s.writable:Le,a[o+4]="value"in s?this.Et(s.value):Le,a[o+5]="get"in s?this.Et(s.get):Le,a[o+6]="set"in s?this.Et(s.set):Le;}Pe(this.Ct,this,a);}Kt(t,e){const o=this.Et(t),r=e?this.Et(e):e;this.Rt(o,r);}}const{assign:we}=Object,{ownKeys:me}=Reflect,xe=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],Oe=(_e=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape",...xe],Wt(_e,null),_e.at=wt,_e.concat=mt,_e.constructor=$t,_e.copyWithin=xt,_e.entries=Ot,_e.every=_t,_e.fill=At,_e.filter=Bt,_e.find=Et,_e.findIndex=jt,_e.flat=Ft,_e.flatMap=Mt,_e.forEach=Ht,_e.includes=kt,_e.indexOf=Rt,_e.join=Ct,_e.keys=It,_e.lastIndexOf=Dt,_e.map=Nt,_e.pop=Kt,_e.push=Gt,_e.reduce=Vt,_e.reduceRight=Ut,_e.reverse=zt,_e.shift=Xt,_e.slice=Zt,_e.some=Qt,_e.sort=Jt,_e.splice=Yt,_e.toLocaleString=qt,_e.toString=te,_e.unshift=ee,_e.values=oe,_e[vt]=re,_e[Pt]=ne,Wt(_e,Tt),_e);var _e;function getFilteredGlobalOwnKeys$LWS(t){const e=[];let o=0;const r=me(t);for(let t=0,{length:n}=r;t<n;t+=1){const n=r[t];Oe.includes(n)||(e[o++]=n);}return e}const{deleteProperty:Ae,getPrototypeOf:Be,ownKeys:Ee}=Reflect,je=toSafeWeakMap$LWS(new WeakMap),Fe=(()=>{const{navigator:t,navigator:{userAgentData:e}}=window,o=null==e?void 0:e.brands;if(Array.isArray(o)&&o.length?o.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t.userAgent))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){let e=je.get(t);if(e)return e;const{document:o,window:r}=t,n=Be(r),a=Be(n),i=Be(a);return e={document:o,Gt:Be(o),window:r,Vt:n,Ut:a,zt:i,Xt:Ee(i)},je.set(t,e),e}function filterWindowKeys$LWS(t){const e=[];let o=0;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(e[o++]=n);}return e}getCachedGlobalObjectReferences$LWS(window);const Me=Object,He=TypeError,{prototype:ke}=Document,{prototype:Re}=Node,{remove:Ce,setAttribute:Ie}=Element.prototype,{appendChild:De}=Re,{assign:Ne}=Me,{__lookupGetter__:Ke}=Me.prototype,{apply:Ge}=Reflect,{close:Ve,createElement:Ue,open:ze}=ke,Xe=Ge(Ke,ke,["body"]),Ze=Ge(Ke,HTMLElement.prototype,["style"]),Qe=Ge(Ke,HTMLIFrameElement.prototype,["contentWindow"]),Je=Ge(Ke,Re,["lastChild"]),Ye=document;let qe=null;function createIframeVirtualEnvironment$LWS(t,e){if("object"!=typeof t||null===t)throw new He("Missing global object virtualization target.");const{distortionCallback:o,endowments:r,globalObjectShape:n,instrumentation:a,Zt:i=!1}=Ne({__proto__:null},e),s=function(){var t;const e=Ge(Ue,Ye,["iframe"]),o=null!=(t=Ge(Xe,Ye,[]))?t:Ge(Je,Ye,[]);return Ge(Ze,e,[]).display="none",Ge(Ie,e,["sandbox","allow-same-origin allow-scripts"]),Ge(De,o,[e]),e}(),l=Ge(Qe,s,[]),c="object"!=typeof n||null===n;c&&null===qe&&(qe=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(l)));const u=getCachedGlobalObjectReferences$LWS(t),f=new VirtualEnvironment$LWS({_t:createBlueConnector$LWS(t),distortionCallback:o,instrumentation:a,redConnector:createRedConnector$LWS(l.eval)});if(!function(t,e){for(let o=0,{length:r}=xe;o<r;o+=1){const r=xe[o],n=e[r];n&&(n.prototype?t.link(r,"prototype"):t.link(r));}}(f,t),"undefined"==typeof globalThis?f.link("window","document"):f.link("document"),f.link("__proto__","__proto__","__proto__"),f.Kt(u.document,u.Gt),f.Dt(u.window,c?qe:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(n)),i?void 0:Fe),r){const t={};!function(t,e){const o=me(e);for(let r=0,{length:n}=o;r<n;r+=1){const n=o[r];if(!Oe.includes(n)){const o=e[n];o&&(t[n]=we({__proto__:null},o));}}return t}(t,r),Ae(y=t,"document"),Ae(y,"location"),Ae(y,"top"),Ae(y,"window"),Ae(y,"chrome"),f.Nt(u.window,t);}var y;if(f.Dt(u.zt,u.Xt),i){const{document:t}=l;Ge(ze,t,[]),Ge(Ve,t,[]);}else Ge(Ce,s,[]);return f}const to=`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{Qt:e}=t,o=Array,r=Promise,n=TypeError,{asyncIterator:a,iterator:i}=Symbol,{[i]:s}=o.prototype,l=function*(){}.constructor.prototype.prototype,{next:c,throw:u}=l,{delete:f,get:y,set:d}=Map.prototype,{appendChild:p}=Node.prototype,{defineProperties:S,freeze:h}=Object,{then:L}=r.prototype,$=r.resolve.bind(r),{apply:g,getPrototypeOf:W,setPrototypeOf:v}=Reflect,{replace:b}=String.prototype,{get:P,set:T}=WeakMap.prototype,{createElement:w}=Document.prototype,{querySelector:m,setAttribute:x}=Element.prototype,{stopPropagation:O}=Event.prototype,{addEventListener:_,removeEventListener:A}=EventTarget.prototype,B=document,{head:E}=B,j=new Map,F=/\\?'/g,M="data-locker-id",H=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;class LockerSecurityError$LWS extends Error{constructor(t){super(`Lightning Web Security: ${t}`);}}function escapeSingleQuotes$LWS(t){return g(b,t,[F,"\\'"])}function genStep$LWS(t,e,o,r,n,a,i){let s,l;try{s=g(a,t,[i]),l=s.value;}catch(t){return o(t),void 0}s.done?e(l):$(l).then(r,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{function onerror$LWS(e){g(A,t,["error",onerror$LWS]),g(A,t,["load",onload$LWS]),g(O,e,[]),r(new LockerSecurityError$LWS(`Resource loader error loading '${escapeSingleQuotes$LWS(o)}'.`));}function onload$LWS(){g(A,t,["error",onerror$LWS]),g(A,t,["load",onload$LWS]),e(void 0);}g(_,t,["error",onerror$LWS]),g(_,t,["load",onload$LWS]);});return g(T,e,[t,n]),g(p,E,[t]),n}function spreadable$LWS(t){return v(t,null),t[i]=s,t}function toString$LWS(t){return "string"==typeof t?t:`${t}`}return {asyncToGen:function(t,e,o){return new r((r,n)=>{const a=g(t,e,o);function next$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,c,t);}function thrower$LWS(t){genStep$LWS(a,r,n,next$LWS,thrower$LWS,u,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,o){if(0===e){let e=!1,{[a]:r}=o;if(null==r&&(e=!0,({[i]:r}=o)),"function"!=typeof r)throw new n("Object is not iterable.");return g(d,j,[t,{iterable:g(r,o,[]),step:void 0,sync:e}]),void 0}const s=g(y,j,[t]);if(1===e){const t=s.iterable.next();return s.sync?new r(e=>{s.step=t,e();}):g(L,t,[t=>{s.step=t;}])}if(2===e)return s.step.value;if(3===e){const e=!!s.step.done;return e&&g(f,j,[t]),e}},loadScript:function(t,o){const r=toString$LWS(o);let n=g(m,E,[`script[data-distorted-src='${escapeSingleQuotes$LWS(r)}'][data-locker-id='${H}']`]);var a;return n?null!=(a=g(P,e,[n]))?a:$():(n=g(w,B,["script"]),g(x,n,[M,H]),n.type="text/javascript",n.src=r,loadPromise$LWS(n,r))},loadStyle:function(t,o){const r=toString$LWS(o);let n=g(m,E,[`link[href='${escapeSingleQuotes$LWS(r)}']`]);var a;return n?null!=(a=g(P,e,[n]))?a:$():(n=g(w,B,["link"]),n.type="text/css",n.rel="stylesheet",n.href=r,loadPromise$LWS(n,r))},makeRedGet:function(...t){const{length:e}=t,r=o(e),n={};for(let o=0;o<e;o+=1)n[o]={__proto__:null,get:t[o]};return S(r,n),r},makeRedResyncImports:function(t){return function(){for(let e=0,{length:o}=t;e<o;e+=1)try{t[e];}catch(t){}return spreadable$LWS(t)}},namespace:function(t){return h(t)},spreadable:spreadable$LWS,super:function(t,e,o,r){const n=W(t.prototype)[e];return g(n,o,r)}}}})`;var eo,oo;!function(t){t[t.External=0]="External",t[t.Internal=1]="Internal";}(eo||(eo={})),ReflectSetPrototypeOf$LWS(eo,null),function(t){t[t.Script=0]="Script",t[t.Module=1]="Module";}(oo||(oo={})),ReflectSetPrototypeOf$LWS(oo,null);const no={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},ao={__proto__:null,"lws-core-sandbox":{sandboxKey:"lws-core-sandbox"}},io=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS),so=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS);let lo,co;function clearEvalContext$LWS(){const t=lo;return lo=void 0,t}function clearEvalHelpers$LWS(){const t=co;return co=void 0,t}function createDistortionEntries$LWS(t){const{globalObject:o,instrumentation:r,key:a,type:i,verboseInstrumentation:s}=t,{error:l}=r,c={context:void 0,endowments:void 0,globalObject:o,instrumentation:r,key:a,source:"",sourceType:oo.Script,type:i,verboseInstrumentation:s},{Document:u,Element:f,HTMLElement:y,HTMLIFrameElement:d,HTMLScriptElement:p,SVGElement:S,XSLTProcessor:h}=o,L=s&&"object"==typeof r&&null!==r,$=L?getBasicInstrumentationData$LWS(a):void 0,evaluator$LWS=(t,e,o)=>{const r=ObjectAssign$LWS({},c);return r.context=o,r.globalObject=e,r.source=t,evaluateInSandbox$LWS(r)},g=L?r.startActivity:void 0,W=i===eo.Internal?ArrayConcat$LWS(internalDistortionFactories$LWS,internalKeyedDistortionFactories$LWS):ArrayConcat$LWS(externalDistortionFactories$LWS,externalKeyedDistortionFactories$LWS);createBlockedPropertyDistortionFactories$LWS(CustomElementRegistry.prototype,CustomElementRegistryBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(u.prototype,DocumentBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(f.prototype,ElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(y.prototype,HTMLElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(d.prototype,HTMLIFrameElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(HTMLEmbedElement.prototype,HTMLEmbedElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(HTMLObjectElement.prototype,HTMLObjectElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(p.prototype,HTMLScriptElementBlockedProperties$LWS,W),createBlockedPropertyDistortionFactories$LWS(S.prototype,SVGElementBlockedProperties$LWS,W),"function"==typeof h&&createBlockedPropertyDistortionFactories$LWS(h.prototype,XSLTProcessorBlockedProperties$LWS,W),distortBlockedAttributes$LWS(o,y,HTMLElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,d,HTMLIFrameElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,p,HTMLScriptElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(o,S,SVGElementBlockedAttributes$LWS);const v=[];let b=0;for(let t=0,{length:s}=W;t<s;t+=1){const s=W[t],c=s(o,{evaluator:evaluator$LWS,key:a,instrumentation:r,sandboxType:i});if(!ArrayIsArray$LWS(c))continue;const{0:u,1:f}=c;if(!isObjectLike$LWS(u))continue;let y=f;if("function"==typeof f){let t;if(L){const{name:e}=s;t=e?ReflectApply$LWS(StringProtoReplace$LWS,e,[LOCKER_IDENTIFIER_MARKER$LWS,""]):"<unknown>";}const e=new ProxyCtor$LWS(u,ObjectFreeze$LWS({apply(o,r,i){let s;r===e&&(r=f),L&&(s=g(t,$));try{return ReflectApply$LWS(f,r,i)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{L&&s.stop();}},construct(o,r,n){let i;n===e&&(n=f),L&&(i=g(t,$));try{return ReflectConstruct$LWS(f,r,n)}catch(t){throw l({sandboxKey:a,error:t}),t}finally{L&&i.stop();}}}));y=e;}v[b++]=[u,y];}return createAttributeDistortionsForSandboxKey$LWS(o,a,v),v}function getBasicInstrumentationData$LWS(t){let e=ao[t];return void 0===e&&(e={sandboxKey:t},ao[t]=e),e}function setEvalContext$LWS(t){lo=t;}function createEvaluateOptionsFromArgs$LWS(t){var e;const{length:o}=t,r=o?t[0]:void 0,n=1===o&&isObjectLike$LWS(r);return ObjectAssign$LWS({__proto__:null,context:o>2?t[2]:void 0,endowments:o>3?t[3]:void 0,globalObject:window,instrumentation:null!=(e=o>4?t[4]:void 0)?e:defaultInstrumentation$LWS,key:n?void 0:r,source:o>1?t[1]:void 0,sourceType:oo.Module,type:eo.External,verboseInstrumentation:o>5&&t[5]||!1},n?r:void 0)}function evaluateInSandbox$LWS(...t){const e=createEvaluateOptionsFromArgs$LWS(t),{context:o,endowments:r,globalObject:a,instrumentation:i,key:s,source:l,sourceType:c,type:u,verboseInstrumentation:f}=e;if("string"!=typeof s)throw new LockerSecurityError$LWS("Invalid sandbox key.");const y="object"==typeof i&&null!==i,d=y?getBasicInstrumentationData$LWS(s):void 0,p=y?i.startActivity:void 0;let S;y&&(S=p("evaluateInSandbox",d));let h=so.get(a);void 0===h&&(h={__proto__:null},so.set(a,h));let L=h[s];if(void 0===L){const t={context:void 0,endowments:void 0,globalObject:a,instrumentation:i,key:s,source:"",sourceType:oo.Script,type:u,verboseInstrumentation:f},e=toSafeMap$LWS(new MapCtor$LWS(createDistortionEntries$LWS(t)));e.set(a,a);const o=createIframeVirtualEnvironment$LWS(a,{distortionCallback(o){const r=e.get(o);if(r)return r;let n;const a=getDocumentDefaultView$LWS(o);if(a?(n=a,e.set(o,o)):isWindow$LWS(o)&&(n=o),n){e.set(n,n);const o=ObjectAssign$LWS({},t);o.globalObject=n;const r=createDistortionEntries$LWS(o);for(let t=0,{length:o}=r;t<o;t+=1){const{0:o,1:n}=r[t];e.set(o,n);}let a;o.context=t=>{a=t;},o.source=`${SANDBOX_EVAL_CONTEXT_NAME$LWS}(this)`,evaluateInSandbox$LWS(o),e.set(a,n);}return o},endowments:ObjectAssign$LWS({},no,r?ObjectGetOwnPropertyDescriptors$LWS(r):void 0),Zt:!1,instrumentation:f?i:void 0});L={evaluate:t=>o.evaluate(t),Jt:{}},setEvalContext$LWS(t=>{ObjectAssign$LWS(L.Jt,t({Qt:io}));}),L.evaluate(to),h[s]=L;}var $;let g;setEvalContext$LWS(o),$=L.Jt,co=$;const W=function(t,e=oo.Module){let o="function"==typeof t?extractFunctionBodySource$LWS(t):toString$LWS(t);return o=ReflectApply$LWS(StringProtoReplace$LWS,o,[/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"]),e===oo.Module&&-1===indexOfPragma$LWS(o,"use strict")?`'use strict';${o}`:o}(l,c);try{g=L.evaluate(W);}catch(t){throw y&&S.error({sandboxKey:s,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS();}return y&&S.stop(),g}
|
|
8113
|
+
1}`.includes("*"),ot=LOCKER_UNMINIFIED_FLAG$LWS&&!Z,rt="function"==typeof BigInt,nt=Z?/\w*$/:void 0,{isArray:it}=n,{includes:at,indexOf:st,slice:lt}=n.prototype,{isView:ct}=i,ut=Z?void 0:g(z,i.prototype,["byteLength"]),ft=rt?BigInt.prototype.valueOf:void 0,{valueOf:dt}=Boolean.prototype,{toString:yt}=a.prototype,{bind:pt,toString:St}=Function.prototype,{stringify:ht}=JSON,{isInteger:Lt}=s,{valueOf:gt}=s.prototype,{revocable:$t}=c,{prototype:Wt}=f,{exec:vt,test:bt,toString:Tt}=Wt,Pt=Z?null!=(e=g(z,Wt,["flags"]))?e:function(){const t=g(Tt,this,[]);return g(vt,nt,[t])[0]}:void 0,wt=g(z,Wt,["source"]),{replace:mt,slice:Ot,valueOf:_t}=d.prototype,{toString:Et,valueOf:xt}=y.prototype,At=g(z,Uint8Array.prototype.__proto__,["length"]),{prototype:Bt}=S,{delete:Mt,has:Ft,set:jt,[L]:Ht}=Bt,kt=Z||"object"!=typeof console||null===console?void 0:console,Rt=null==kt?void 0:kt.info,It=Z?eval:void 0,Ct=null!=(o=null!=(r=null!=t?t:"undefined"!=typeof globalThis?globalThis:void 0)?r:"undefined"!=typeof self?self:void 0)?o:(W(I,"globalThis",{__proto__:null,configurable:!0,get(){return v(I,"globalThis"),null!=this?this:self}}),globalThis);let Nt=!1,Dt=!1;function alwaysFalse$LWS(){return !1}function identity$LWS(t){return t}const Gt=LOCKER_UNMINIFIED_FLAG$LWS?()=>{if(Nt)return;Nt=!0;const t=(()=>{try{var t;a.prepareStackTrace=(t,e)=>e;const e=(new a).stack;return v(a,"prepareStackTrace"),it(e)&&e.length>0?null==(t=e[0])?void 0:t.constructor:void 0}catch(t){}})();if("function"!=typeof t)return;const{getEvalOrigin:e,getFunctionName:o,toString:r}=t.prototype,n=new f(`${g(mt,"$LWS",[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`);try{a.prepareStackTrace=function(t,i){return function(t,i){let a="";try{a=g(yt,t,[]);}catch(t){a="<error>";}let s=!1;for(let t=0,{length:l}=i;t<l;t+=1){const l=i[t],c=g(o,l,[]);let u=!1;if("string"==typeof c&&"eval"!==c&&g(bt,n,[c])&&(u=!0),!u){const t=g(e,l,[]);"string"==typeof t&&g(bt,n,[t])&&(u=!0);}if(u)s||(s=!0,a+="\n at LWS");else {s=!1;try{a+=`\n at ${g(r,l,[])}`;}catch(t){}}}return a}(t,i)};}catch(t){}try{const{stackTraceLimit:t}=a;("number"!=typeof t||t<20)&&(a.stackTraceLimit=20);}catch(t){}}:noop$LWS;function noop$LWS(){}const Kt=Z?t=>g(ft,t,[]):noop$LWS,Ut=Z?t=>g(dt,t,[]):noop$LWS,Vt=Z?t=>g(gt,t,[]):noop$LWS,zt=Z?t=>{if(t!==Wt){const e=g(wt,t,[]);return ht({__proto__:null,flags:g(Pt,t,[]),source:e})}}:noop$LWS,Xt=Z?t=>g(_t,t,[]):noop$LWS,Qt=Z?t=>g(xt,t,[]):noop$LWS,Zt=Z?t=>{switch(g(G,t,[])){case"[object Boolean]":return Ut(t);case"[object Number]":return Vt(t);case"[object RegExp]":return zt(t);case"[object String]":return Xt(t);case"[object Object]":try{return Qt(t)}catch(t){}if(rt)try{return Kt(t)}catch(t){}default:return}}:noop$LWS,Jt=Z?t=>{try{return Qt(t)}catch(t){}if(rt)try{return Kt(t)}catch(t){}try{return Ut(t)}catch(t){}try{return Vt(t)}catch(t){}try{return zt(t)}catch(t){}try{return Xt(t)}catch(t){}}:noop$LWS;function toSafeWeakMap$LWS(t){return x(t,null),t.constructor=S,t.delete=Mt,t.has=Ft,t.set=jt,t[L]=Ht,x(t,Bt),t}return function(t,e,o){const{distortionCallback:r=identity$LWS,instrumentation:i}=A({__proto__:null},o),a=!Z&&"object"==typeof i&&null!==i,s={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},f={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},y=toSafeWeakMap$LWS(new S),h=toSafeWeakMap$LWS(new S),N=a?i.startActivity:void 0;let K,rt,nt,ft,dt,yt,ht,gt,vt,bt,Tt,Pt,mt,_t,xt,Bt,Mt,Ft,jt,Ht,Nt,Kt,Ut,Vt,zt,Xt,Qt,Yt,qt,te=!1,ee=0;const oe=Z?(t,e,o)=>{o[e]=!1;const r=getTransferablePointer$LWS(t);let n;try{gt(r,e,(t,e,o,r,i,a,s)=>{n=createDescriptorFromMeta$LWS(e,o,r,i,a,s);});}catch(t){var i;const e=null!=(i=qt)?i:t;throw qt=void 0,e}n?W(t,e,n):v(t,e);}:noop$LWS;let re=ot?()=>{try{Q(Ct,J)&&(re=()=>!0,Gt(),Nt());}catch(t){re=alwaysFalse$LWS;}return !1}:alwaysFalse$LWS;function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,e){let o,r,n;a&&(o=N("copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget"));try{r=Xt(t,(...t)=>{const o={};for(let e=0,{length:r}=t;e<r;e+=7){o[t[e]]=createDescriptorFromMeta$LWS(t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]);}B(e,o);});}catch(t){var i;const e=null!=(i=qt)?i:t;throw qt=void 0,a&&o.error(e),e}"function"==typeof r?(r(),n=qt,qt=void 0):n=null,x(e,n),a&&o.stop();}function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}()`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(0!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForOneOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(1)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(1!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(2)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(2!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(3)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(3!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForFourOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(4)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(4!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForFiveOrMoreArgs$LWS(t){const e=1&t,o=`Reflect.${e?"apply":"construct"}(5)`,r=e?s:f,n=e?nt:ft;return function(i,s,l){ee=t;const c=e?l:s,{length:u}=c;var f;if(5!==u)return this[null!=(f=r[u])?f:r.n](i,s,l);let d;a&&(d=N(o));const{i:y}=this,p=e?s:l;let S,h;try{const{0:t,1:e,2:o,3:r,4:i}=c;S=n(y,"object"==typeof p&&null!==p||"function"==typeof p?getTransferablePointer$LWS(p):"undefined"==typeof p?void 0:p,"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,"object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):"undefined"==typeof o?void 0:o,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r,"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i);}catch(t){var L;const e=null!=(L=qt)?L:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof S?(S(),h=qt,qt=void 0):h=S,a&&d.stop(),h}}function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(t){const e=1&t,o=e?"apply":"construct",r=e?nt:ft;return function(i,s,l){ee=t;const{i:c}=this,u=e?l:s,{length:f}=u;let d;a&&(d=N(`Reflect.${o}(${f})`));const y=e?s:l;let p=2;const S=new n(f+p);let h,L;S[0]=c;try{S[1]="object"==typeof y&&null!==y||"function"==typeof y?getTransferablePointer$LWS(y):"undefined"==typeof y?void 0:y;for(let t=0;t<f;t+=1){const e=u[t];S[p++]="object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):"undefined"==typeof e?void 0:e;}h=g(r,void 0,S);}catch(t){var $;const e=null!=($=qt)?$:t;throw qt=void 0,a&&d.error(e),e}return "function"==typeof h?(h(),L=qt,qt=void 0):L=h,a&&d.stop(),L}}function createDescriptorFromMeta$LWS(t,e,o,r,n,i){const a={__proto__:null};return t!==et&&(a.configurable=t),e!==et&&(a.enumerable=e),o!==et&&(a.writable=o),n!==et&&("function"==typeof n?(n(),a.get=qt,qt=void 0):a.get=void 0),i!==et&&("function"==typeof i?(i(),a.set=qt,qt=void 0):a.set=void 0),r!==et&&("function"==typeof r?(r(),a.value=qt,qt=void 0):a.value=r),a}function createPointer$LWS(t){return ()=>{qt=t;}}const ne=Z?t=>{let e=y.get(t);if(void 0===e){const o=Mt(getTransferablePointer$LWS(t));"function"==typeof o&&(o(),e=qt,qt=void 0,e&&y.set(t,e));}return e}:noop$LWS;function getTransferablePointer$LWS(t,e=rt){let o=h.get(t);if(o)return o;const n=Z?t:r(t);if(n!==t&&typeof n!=typeof t)throw new p(`Invalid distortion ${function(t){if("string"==typeof t)return t;try{if("object"==typeof t&&null!==t){const e=g(G,t,[]);return "[object Symbol]"===e?g(Et,t,[]):e}return "function"==typeof t?g(St,t,[]):d(t)}catch(t){}return "[Object Unknown]"}(t)}.`);let i=!0,a=0,s=0,l=16;if("function"==typeof n){i=!1,a=0,l=4;try{"prototype"in n||(l|=8);const e=T(t,"length");if(e){x(e,null);const{value:t}=e;"number"==typeof t&&(a=t);}void 0;}catch(t){i=!0;}}else if(ct(n)){i=!1,l=2;try{s=g(At,n,[]),l|=32;}catch(t){i=!0;}}if(i)try{it(n)&&(l=1);}catch(t){l=64;}return o=e(createPointer$LWS(n),l,a,"",s),h.set(t,o),o}const ie=Z?t=>{if(Dt)return;Dt=!0;const e=it(t)&&t.length>0,o=e?{__proto__:null}:void 0,r=e?(e,o)=>g(at,t,[o])?{configurable:!1,enumerable:g(D,e,[o]),get:n(o),set:void 0}:T(e,o):void 0,n=e?t=>{let e=o[t];return void 0===e&&(e=g(pt,s,[]),o[t]=e),e}:void 0,i=e?(e,o)=>g(at,t,[o])?n(o):g(z,e,[o]):void 0,a=e?(e,o)=>g(at,t,[o])?void 0:g(X,e,[o]):void 0,s=e?()=>Ct:void 0,wrapDefineAccessOrProperty$LWS=t=>{const{length:e}=t,o=2===e;return new c(t,{apply(r,n,i){if(i.length>=e){const t=o?n:i[0];if("object"==typeof t&&null!==t||"function"==typeof t){const e=o?i[0]:i[1],r=ne(t);null!=r&&r[e]&&t[e];}}return g(t,n,i)}})},wrapLookupAccessor$LWS=(t,o)=>new c(t,{apply(r,n,i){if(i.length&&("object"==typeof n&&null!==n||"function"==typeof n)){const{0:t}=i,r=ne(n);if(null!=r&&r[t]&&n[t],e&&n===Ct)return o(n,t)}return g(t,n,i)}}),wrapGetOwnPropertyDescriptor$LWS=t=>new c(t,{apply(o,n,i){if(i.length>1){const{0:t,1:o}=i;if("object"==typeof t&&null!==t||"function"==typeof t){const n=ne(t);if(null!=n&&n[o]&&t[o],e&&t===Ct)return r(t,o)}}return g(t,n,i)}});try{u.defineProperty=wrapDefineAccessOrProperty$LWS(W);}catch(t){}try{u.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(T);}catch(t){}try{l.getOwnPropertyDescriptor=wrapGetOwnPropertyDescriptor$LWS(F);}catch(t){}try{l.getOwnPropertyDescriptors=new c(f=j,{apply(t,o,n){const i=n.length?n[0]:void 0;if(("object"!=typeof i||null===i)&&"function"!=typeof i)return g(f,o,n);const a=ne(i),s=i===Ct&&e,l=s?{}:g(f,o,n);if(!s&&void 0===a)return l;const c=O(s?i:l);for(let t=0,{length:e}=c;t<e;t+=1){const e=c[t],o=!(null==a||!a[e]);if(o&&i[e],o||s){const t=s?r(i,e):T(i,e);t?l[e]=t:s||v(l,e);}}return l}});}catch(t){}var f;try{I.__defineGetter__=wrapDefineAccessOrProperty$LWS(U);}catch(t){}try{I.__defineSetter__=wrapDefineAccessOrProperty$LWS(V);}catch(t){}try{I.__lookupGetter__=wrapLookupAccessor$LWS(z,i);}catch(t){}try{I.__lookupSetter__=wrapLookupAccessor$LWS(X,a);}catch(t){}}:noop$LWS;function lookupForeignDescriptor$LWS(t,e,o){let r,n,i;a&&(r=N("lookupForeignDescriptor"));try{n=Yt(t,o,(t,r,n,a,s,l,c)=>{i={__proto__:null,l:!0},r!==et&&(i.configurable=r),n!==et&&(i.enumerable=n),a!==et&&(i.writable=a),l!==et&&("function"==typeof l?(l(),i.get=qt,qt=void 0):i.get=void 0),c!==et&&("function"==typeof c?(c(),i.set=qt,qt=void 0):i.set=void 0),s!==et&&("function"==typeof s?(s(),i.value=qt,qt=void 0):i.value=s),!1===r&&W(e,o,i);});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,a&&r.error(e),e}if(void 0===i){let t;for("function"==typeof n?(n(),t=qt,qt=void 0):t=null;t;){if(i=T(t,o),i){x(i,null);break}t=P(t);}if(i){var l;const{get:t,set:e,value:o}=i,r=null!=(l=null!=t?t:e)?l:o;i.l=("object"==typeof r&&null!==r||"function"==typeof r)&&void 0!==h.get(r);}}return a&&r.stop(),i}function pushErrorAcrossBoundary$LWS(t){if(ot&&re(),"object"==typeof t&&null!==t||"function"==typeof t){getTransferablePointer$LWS(t,K)();}return t}function pushTarget$LWS(t,e,o,r,n){const{proxy:i}=new BoundaryProxyHandler$LWS(t,e,o,r,n);return h.set(i,t),createPointer$LWS(i)}const ae=Z?(t,e)=>{y.set(t,e),zt(getTransferablePointer$LWS(t),getTransferablePointer$LWS(e));}:noop$LWS;class BoundaryProxyHandler$LWS{constructor(t,e,o,r,n){let i;const a=1&e,l=4&e;i=l?8&e?()=>{}:function(){}:a?[]:{};const{proxy:c,revoke:u}=$t(i,this);var d,y;(this.i=t,this.u=e,this.p=n,this.S=(t,e,o,r,n,i,a)=>{W(this.h,t,createDescriptorFromMeta$LWS(e,o,r,n,i,a));},this.proxy=c,this.revoke=u,this.serializedValue=void 0,this.h=i,this.L="Object",l)&&(this.apply=this[null!=(d=s[o])?d:s.n],this.construct=this[null!=(y=f[o])?y:f.n]);if(this.defineProperty=BoundaryProxyHandler$LWS.g,this.deleteProperty=BoundaryProxyHandler$LWS.$,this.isExtensible=BoundaryProxyHandler$LWS.W,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.v,this.getPrototypeOf=BoundaryProxyHandler$LWS.T,this.get=32&e?BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray:BoundaryProxyHandler$LWS.P,this.has=BoundaryProxyHandler$LWS.m,this.ownKeys=BoundaryProxyHandler$LWS.O,this.preventExtensions=BoundaryProxyHandler$LWS._,this.setPrototypeOf=BoundaryProxyHandler$LWS.A,this.set=BoundaryProxyHandler$LWS.B,64&e)M(this),this.revoke();else if(Z)(a||2&e)&&this.M();else {if(16&e){let t=et;g(U,this,["serializedValue",()=>(t===et&&(t=Vt(this.i)),t)]);}M(this);}}M(){this.deleteProperty=BoundaryProxyHandler$LWS.F,this.defineProperty=BoundaryProxyHandler$LWS.j,this.preventExtensions=BoundaryProxyHandler$LWS.H,this.set=BoundaryProxyHandler$LWS.k,this.setPrototypeOf=BoundaryProxyHandler$LWS.R,M(this);}I(){this.defineProperty=BoundaryProxyHandler$LWS.C,this.deleteProperty=BoundaryProxyHandler$LWS.N,this.get=BoundaryProxyHandler$LWS.D,this.getOwnPropertyDescriptor=BoundaryProxyHandler$LWS.G,this.getPrototypeOf=BoundaryProxyHandler$LWS.K,this.has=BoundaryProxyHandler$LWS.U,this.isExtensible=BoundaryProxyHandler$LWS.V,this.ownKeys=BoundaryProxyHandler$LWS.X,this.preventExtensions=BoundaryProxyHandler$LWS.Z,this.set=BoundaryProxyHandler$LWS.J,this.setPrototypeOf=BoundaryProxyHandler$LWS.Y;const{i:t,u:e,h:o}=this,r=Ft(t);if(8&r)return M(this),this.revoke(),void 0;try{copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o);}catch(e){if(Ut(t))return M(this),this.revoke(),void 0}if(16&e&&!(L in o)){let e="Object";try{e=jt(t);}catch(t){}this.L=e;}4&r?M(o):(2&r?C(o):1&r&&_(o),LOCKER_UNMINIFIED_FLAG$LWS&&Bt("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",t)),M(this);}static j(t,e,o){let r;ee=4,a&&(r=N("Reflect.defineProperty"));const{i:n,S:i}=this,s=o;x(s,null);const{get:l,set:c,value:u}=s,f="value"in s?"object"==typeof u&&null!==u||"function"==typeof u?getTransferablePointer$LWS(u):"undefined"==typeof u?void 0:u:et,d="get"in s?"function"==typeof l?getTransferablePointer$LWS(l):l:et,y="set"in s?"function"==typeof c?getTransferablePointer$LWS(c):c:et;let p=!1;try{p=dt(n,e,"configurable"in s?!!s.configurable:et,"enumerable"in s?!!s.enumerable:et,"writable"in s?!!s.writable:et,f,d,y,i);}catch(t){var S;const e=null!=(S=qt)?S:t;throw qt=void 0,a&&r.error(e),e}return a&&r.stop(),p}static F(t,e){let o;ee=8,a&&(o=N("Reflect.deleteProperty"));let r=!1;try{r=yt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,a&&o.error(e),e}return a&&o.stop(),r}static q(t){let e,o,r;ee=64,a&&(e=N("Reflect.getPrototypeOf"));try{o=vt(this.i);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,a&&e.error(o),o}return "function"==typeof o?(o(),r=qt,qt=void 0):r=null,a&&e.stop(),r}static tt(t){let e;ee=256,a&&(e=N("Reflect.isExtensible"));const{h:o}=this;let r=!1;if(m(o)){const{i:t}=this;try{r=Tt(t);}catch(t){var n;const o=null!=(n=qt)?n:t;throw qt=void 0,a&&e.error(o),o}r||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(t,o),_(o));}return a&&e.stop(),r}static et(t){let e,o;ee=512,a&&(e=N("Reflect.ownKeys"));try{Pt(this.i,(...t)=>{o=t;});}catch(t){var r;const o=null!=(r=qt)?r:t;throw qt=void 0,a&&e.error(o),o}return a&&e.stop(),o||[]}static ot(t,e){let o;ee=32,a&&(o=N("Reflect.getOwnPropertyDescriptor"));const{i:r,h:n}=this;let i;try{gt(r,e,(t,o,r,a,s,l,c)=>{i=createDescriptorFromMeta$LWS(o,r,a,s,l,c),!1===i.configurable&&W(n,e,i);});}catch(t){var s;const e=null!=(s=qt)?s:t;throw qt=void 0,a&&o.error(e),e}return a&&o.stop(),i}static H(t){let e;ee=1024,a&&(e=N("Reflect.preventExtensions"));const{i:o,h:r}=this;let n=!0;if(m(r)){let t=0;try{t=mt(o);}catch(t){var i;const o=null!=(i=qt)?i:t;throw qt=void 0,a&&e.error(o),o}1&t||(copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(o,r),_(r)),n=!(2&t);}return a&&e.stop(),n}static R(t,e){let o;ee=4096,a&&(o=N("Reflect.setPrototypeOf"));const r=e?getTransferablePointer$LWS(e):e;let n=!1;try{n=xt(this.i,r);}catch(t){var i;const e=null!=(i=qt)?i:t;throw qt=void 0,a&&o.error(e),e}return a&&o.stop(),n}static k(t,e,o,r){ee=2048;const{i:n,proxy:i,h:s}=this;"undefined"==typeof o&&(o=void 0),"undefined"==typeof r&&(r=i);const l=i===r;let c;a&&(c=N(l?"Reflect.set":"passthruForeignTraversedSet"));let u=!1;try{u=l?_t(n,e,"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o,et):function(t,e,o,r,n){const i=lookupForeignDescriptor$LWS(t,e,o);if(i){if("get"in i||"set"in i){const{set:t}=i;return !!t&&(i.l?nt(getTransferablePointer$LWS(t),"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):"undefined"==typeof n?void 0:n,"object"==typeof r&&null!==r||"function"==typeof r?getTransferablePointer$LWS(r):"undefined"==typeof r?void 0:r):g(t,n,[r]),!0)}if(!1===i.writable)return !1}if(("object"!=typeof n||null===n)&&"function"!=typeof n)return !1;const a=T(n,o);return a?(x(a,null),!("get"in a)&&!("set"in a)&&!1!==a.writable&&(W(n,o,{__proto__:null,value:r}),!0)):W(n,o,{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!0})}(n,s,e,o,r);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&c.error(e),e}return a&&c.stop(),u}}BoundaryProxyHandler$LWS.rt=Z?function(t,e,o){let r;a&&(r=N("hybridGetTrap"));const{i:n,u:i,proxy:s,h:l}=this,c=lookupForeignDescriptor$LWS(n,l,e);let u;if(c){const{get:t,value:e}=c;if(t)if(c.l){const e=getTransferablePointer$LWS(t),i=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(e,i);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=g(t,o,[]);else u=e;}else if(e===L&&16&i){let t;try{t=jt(n);}catch(t){var d;const e=null!=(d=qt)?d:t;throw qt=void 0,a&&r.error(e),e}"Object"!==t&&(u=t);}return a&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray=Z?function(t,e,o){let r;a&&(r=N("hybridGetTrapForTypedArray"));const{i:n,p:i,proxy:s,h:l}=this,c="string"==typeof e?+e:-1;let u;if(c>-1&&c<i&&Lt(c))try{u=Ht(n,e);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&r.error(e),e}else {const t=lookupForeignDescriptor$LWS(n,l,e);if(t){const{get:e,value:i}=t;if(e)if(t.l){const t=getTransferablePointer$LWS(e),i=s===o?n:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let l;try{l=nt(t,i);}catch(t){var d;const e=null!=(d=qt)?d:t;throw qt=void 0,a&&r.error(e),e}"function"==typeof l?(l(),u=qt,qt=void 0):u=l;}else u=g(e,o,[]);else u=i;}}return a&&r.stop(),u}:noop$LWS,BoundaryProxyHandler$LWS.nt=Z?function(t,e){let o,r;a&&(o=N("hybridHasTrap"));try{r=Qt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,a&&o.error(e),e}let i=!1;if(!0===r)i=!0;else {let t;for("function"==typeof r?(r(),t=qt,qt=void 0):t=null;t;){if(Q(t,e)){i=!0;break}t=P(t);}}return a&&o.stop(),i}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.it=Z?noop$LWS:function(t,e,o){if(te&&(te=128===ee),ee=16,te){if(e===tt)return !0;if(e===q)return this.serializedValue}let r;a&&(r=N("Reflect.get"));const{i:n,u:i,proxy:s}=this;"undefined"==typeof o&&(o=s);const l=s===o?et:"object"==typeof o&&null!==o||"function"==typeof o?getTransferablePointer$LWS(o):o;let c,u;try{c=ht(n,i,e,l);}catch(t){var f;const e=null!=(f=qt)?f:t;throw qt=void 0,a&&r.error(e),e}return "function"==typeof c?(c(),u=qt,qt=void 0):u=c,a&&r.stop(),u},BoundaryProxyHandler$LWS.st=Z?alwaysFalse$LWS:function(t,e){let o,r;ee=128,a&&(o=N("Reflect.has"));try{r=bt(this.i,e);}catch(t){var n;const e=null!=(n=qt)?n:t;throw qt=void 0,a&&o.error(e),e}return te=!r&&(e===tt||e===q),a&&o.stop(),r},BoundaryProxyHandler$LWS.lt=Z?function(t,e,o){return Kt(this.i)?this.M():this.I(),this.defineProperty(t,e,o)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ct=Z?function(t,e){return Kt(this.i)?this.M():this.I(),this.deleteProperty(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ut=Z?function(t){return Kt(this.i)?this.M():this.I(),this.preventExtensions(t)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.ft=Z?function(t,e){return Kt(this.i)?this.M():this.I(),this.setPrototypeOf(t,e)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.dt=Z?function(t,e,o,r){return Kt(this.i)?this.M():this.I(),this.set(t,e,o,r)}:alwaysFalse$LWS,BoundaryProxyHandler$LWS.C=Z?W:alwaysFalse$LWS,BoundaryProxyHandler$LWS.N=Z?v:alwaysFalse$LWS,BoundaryProxyHandler$LWS.G=Z?T:noop$LWS,BoundaryProxyHandler$LWS.K=Z?P:()=>null,BoundaryProxyHandler$LWS.D=Z?function(t,e,o){const{u:r,L:n}=this,i=b(t,e,o);return void 0===i&&e===L&&16&r&&"Object"!==n&&!(e in t)?n:i}:noop$LWS,BoundaryProxyHandler$LWS.U=Z?w:alwaysFalse$LWS,BoundaryProxyHandler$LWS.V=Z?m:alwaysFalse$LWS,BoundaryProxyHandler$LWS.X=Z?O:()=>[],BoundaryProxyHandler$LWS.Z=Z?_:alwaysFalse$LWS,BoundaryProxyHandler$LWS.Y=Z?x:alwaysFalse$LWS,BoundaryProxyHandler$LWS.J=Z?E:alwaysFalse$LWS,BoundaryProxyHandler$LWS.g=Z?BoundaryProxyHandler$LWS.lt:BoundaryProxyHandler$LWS.j,BoundaryProxyHandler$LWS.$=Z?BoundaryProxyHandler$LWS.ct:BoundaryProxyHandler$LWS.F,BoundaryProxyHandler$LWS.v=BoundaryProxyHandler$LWS.ot,BoundaryProxyHandler$LWS.T=BoundaryProxyHandler$LWS.q,BoundaryProxyHandler$LWS.P=Z?BoundaryProxyHandler$LWS.rt:BoundaryProxyHandler$LWS.it,BoundaryProxyHandler$LWS.m=Z?BoundaryProxyHandler$LWS.nt:BoundaryProxyHandler$LWS.st,BoundaryProxyHandler$LWS.W=BoundaryProxyHandler$LWS.tt,BoundaryProxyHandler$LWS.O=BoundaryProxyHandler$LWS.et,BoundaryProxyHandler$LWS._=Z?BoundaryProxyHandler$LWS.ut:BoundaryProxyHandler$LWS.H,BoundaryProxyHandler$LWS.B=Z?BoundaryProxyHandler$LWS.dt:BoundaryProxyHandler$LWS.k,BoundaryProxyHandler$LWS.A=Z?BoundaryProxyHandler$LWS.ft:BoundaryProxyHandler$LWS.R,e(createPointer$LWS(Ct),Z?noop$LWS:()=>{const t=qt;return qt=void 0,t},t=>"object"==typeof t&&null!==t||"function"==typeof t?getTransferablePointer$LWS(t):"undefined"==typeof t?void 0:t,(t,e)=>{t();const o=qt;qt=void 0;const r=null==o?void 0:o[e];return createPointer$LWS("undefined"==typeof r?void 0:r)},Z?t=>{let e;try{e=It(t);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof e&&null!==e||"function"==typeof e?getTransferablePointer$LWS(e):e}:noop$LWS,(t,e)=>{t();const o=qt;qt=void 0,("object"==typeof o&&null!==o||"function"==typeof o)&&h.set(o,e);},ot?(t,e,o,r,n)=>{const i=pushTarget$LWS(t,e,o,r,n);return ()=>(re(),i())}:pushTarget$LWS,pushTarget$LWS,(t,e,...o)=>{t();const r=qt;let n,i;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{i=g(r,n,o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i},(t,e,...o)=>{t();const r=qt;let n,i;qt=void 0,"function"==typeof e&&(e(),n=qt,qt=void 0);for(let t=0,{length:e}=o;t<e;t+=1){const e=o[t];"function"==typeof e&&(e(),o[t]=qt,qt=void 0);}try{i=$(r,o,n);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i},(t,e,o,r,n,i,a,s,l)=>{t();const c=qt;qt=void 0;const u=createDescriptorFromMeta$LWS(o,r,n,i,a,s);let f=!1;try{f=W(c,e,u);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(f&&!1===o){let t;try{t=T(c,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(t&&(x(t,null),!1===t.configurable)){const{get:o,set:r,value:n}=t;l(e,!1,"enumerable"in t?t.enumerable:et,"writable"in t?t.writable:et,"value"in t?"object"==typeof n&&null!==n||"function"==typeof n?getTransferablePointer$LWS(n):n:et,"get"in t?"function"==typeof o?getTransferablePointer$LWS(o):o:et,"set"in t?"function"==typeof r?getTransferablePointer$LWS(r):r:et);}}return f},(t,e)=>{t();const o=qt;qt=void 0;try{return v(o,e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e,o,r)=>{t();const n=qt;let i,a;qt=void 0,"function"==typeof r?(r(),i=qt,qt=void 0):i=r===et?n:r;try{a=b(n,o,i);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if("object"==typeof a&&null!==a||"function"==typeof a)return getTransferablePointer$LWS(a);if(void 0===a&&o===L&&16&e)try{if(!(o in n)){const t=g(G,n,[]);"[object Object]"!==t&&(a=g(Ot,t,[8,-1]));}}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof a?void 0:a},(t,e,o)=>{t();const r=qt;let n;qt=void 0;try{n=T(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){x(n,null);const{get:t,set:r,value:i}=n;o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i:et,"get"in n?"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"function"==typeof r?getTransferablePointer$LWS(r):r:et);}},t=>{t();const e=qt;let o;qt=void 0;try{o=P(e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof o?null:o?getTransferablePointer$LWS(o):o},(t,e)=>{t();const o=qt;qt=void 0;try{return e in o}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},t=>{t();const e=qt;qt=void 0;try{return m(e)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=O(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}g(e,void 0,r);},t=>{t();const e=qt;qt=void 0;let o=2;try{_(e)?o=4:m(e)&&(o|=1);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return o},(t,e,o,r)=>{t();const n=qt;let i,a;qt=void 0,"function"==typeof o?(o(),i=qt,qt=void 0):i=o,"function"==typeof r?(r(),a=qt,qt=void 0):a=r===et?n:r;try{return E(n,e,i,a)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},(t,e=null)=>{t();const o=qt;let r;qt=void 0,"function"==typeof e?(e(),r=qt,qt=void 0):r=null;try{return x(o,r)}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},ot?(...t)=>{if(re()){for(let e=0,{length:o}=t;e<o;e+=1){const o=t[e];"function"==typeof o&&(o(),t[e]=qt,qt=void 0);}try{g(Rt,kt,t);}catch(t){}}}:noop$LWS,Z?(t,...e)=>{t();const o=qt;qt=void 0;for(let t=0,{length:r}=e;t<r;t+=7)W(o,e[t],createDescriptorFromMeta$LWS(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5],e[t+6]));}:noop$LWS,Z?noop$LWS:t=>{t();const e=qt;qt=void 0;const o=ge.get(e);return o?getTransferablePointer$LWS(o):o},Z?()=>0:t=>{t();const e=qt;qt=void 0;try{if(!m(e))return H(e)||k(e)?0:1}catch(t){try{it(e);}catch(t){return 8}}return 0},t=>{t();const e=qt;qt=void 0;try{const t=g(G,e,[]);return "[object Object]"===t?"Object":g(Ot,t,[8,-1])}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Z?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0;try{return o[e]}catch(t){throw pushErrorAcrossBoundary$LWS(t)}},Gt,Z?(t,...e)=>{const o=g(st,e,[et]);let r,n;-1===o?r=e:(r=g(lt,e,[0,o]),n=g(lt,e,[o+1])),t();const i=qt;qt=void 0;let a=ne(i);void 0===a&&(a={__proto__:null},ae(i,a));for(let t=0,{length:e}=r;t<e;t+=1){const e=r[t];a[e]=!0,W(i,e,{__proto__:null,configurable:!0,get:()=>(oe(i,e,a),i[e]),set(t){oe(i,e,a),E(i,e,t);}});}ie(n);}:noop$LWS,Z?alwaysFalse$LWS:t=>{t();const e=qt;if(qt=void 0,null==e||e===I||e===Wt)return !1;if("function"==typeof e){try{return Q(e,Y)}catch(t){}return !1}if("object"==typeof e){let t;try{if(({constructor:t}=e),t===l)return !0}catch(t){}try{if(Q(e,Y))return !0}catch(t){}try{if(null===P(e)&&("function"!=typeof t||t.prototype!==e))return !0}catch(t){}try{if(Q(e,"lastIndex"))return g(wt,e,[]),!0}catch(t){}try{if("byteLength"in e)return g(ut,e,[]),!0}catch(t){}}return !1},Z?alwaysFalse$LWS:t=>{t();const e=qt;qt=void 0;try{return it(e),!1}catch(t){}return !0},Z?t=>{t();const e=qt;qt=void 0;try{return L in e?Jt(e):Zt(e)}catch(t){}}:noop$LWS,Z?noop$LWS:(t,e)=>{t();const o=qt;qt=void 0,e();const r=qt;qt=void 0,ge.set(o,r);},(t,e)=>{t();const o=qt;let r;qt=void 0;try{r=j(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}const i=O(r),{length:a}=i,s=new n(7*a);for(let t=0,e=0;t<a;t+=1,e+=7){const o=i[t],n=r[o];x(n,null);const{get:a,set:l,value:c}=n;s[e]=o,s[e+1]="configurable"in n?n.configurable:et,s[e+2]="enumerable"in n?n.enumerable:et,s[e+3]="writable"in n?n.writable:et,s[e+4]="value"in n?"object"==typeof c&&null!==c||"function"==typeof c?getTransferablePointer$LWS(c):c:et,s[e+5]="get"in n?"function"==typeof a?getTransferablePointer$LWS(a):a:et,s[e+6]="set"in n?"function"==typeof l?getTransferablePointer$LWS(l):l:et;}let l;g(e,void 0,s);try{l=P(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof l?null:l?getTransferablePointer$LWS(l):l},(t,e)=>{t();const o=qt;let r;qt=void 0;try{if(Q(o,e))return !0;r=P(o);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof r?null:r?getTransferablePointer$LWS(r):r},(t,e,o)=>{t();const r=qt;let n,i;qt=void 0;try{n=T(r,e);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}if(n){x(n,null);const{get:t,set:r,value:i}=n;return o(e,"configurable"in n?n.configurable:et,"enumerable"in n?n.enumerable:et,"writable"in n?n.writable:et,"value"in n?"object"==typeof i&&null!==i||"function"==typeof i?getTransferablePointer$LWS(i):"undefined"==typeof i?void 0:i:et,"get"in n?"function"==typeof t?getTransferablePointer$LWS(t):t:et,"set"in n?"function"==typeof r?getTransferablePointer$LWS(r):r:et),void 0}try{i=P(r);}catch(t){throw pushErrorAcrossBoundary$LWS(t)}return "undefined"==typeof i?null:i?getTransferablePointer$LWS(i):i});let se=!1;return (...t)=>{if(se)return;se=!0,({6:K,7:rt,8:nt,9:ft,10:dt,11:yt,12:ht,13:gt,14:vt,15:bt,16:Tt,17:Pt,18:mt,19:_t,20:xt,21:Bt,23:Mt,24:Ft,25:jt,26:Ht,27:Nt,29:Kt,30:Ut,31:Vt,32:zt,33:Xt,34:Qt,35:Yt}=t);const e=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1),o=createApplyOrConstructTrapForOneOrMoreArgs$LWS(1),r=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1),n=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1),i=createApplyOrConstructTrapForFourOrMoreArgs$LWS(1),a=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1),l=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1),c=createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2),u=createApplyOrConstructTrapForOneOrMoreArgs$LWS(2),d=createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2),y=createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2),p=createApplyOrConstructTrapForFourOrMoreArgs$LWS(2),S=createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2),h=createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2),L=R({yt:e,St:o,ht:r,Lt:n,gt:i,$t:a,Wt:l,vt:c,bt:u,Tt:d,Pt:y,wt:p,Ot:S,_t:h});s[0]=L[0],s[1]=L[1],s[2]=L[2],s[3]=L[3],s[4]=L[4],s[5]=L[5],s.n=L[6],f[0]=L[7],f[1]=L[8],f[2]=L[9],f[3]=L[10],f[4]=L[11],f[5]=L[12],f.n=L[13];const{prototype:g}=BoundaryProxyHandler$LWS;g[s[0]]=e,g[s[1]]=o,g[s[2]]=r,g[s[3]]=n,g[s[4]]=i,g[s[5]]=a,g[s.n]=l,g[f[0]]=c,g[f[1]]=u,g[f[2]]=d,g[f[3]]=y,g[f[4]]=p,g[f[5]]=S,g[f.n]=h,x(g,null),M(g);}}}const $e=TypeError,We=`\n'use strict';\n(${createMembraneMarshall$LWS})`;function createRedConnector$LWS(t){if("function"!=typeof t)throw new $e("Missing evaluator function.");return t(We)()}const ve=Symbol.for("@@lockerNearMembraneUndefinedValue"),be=Array,Te=Error,Pe=Object,{push:we}=be.prototype,{assign:me}=Pe,{apply:Oe,ownKeys:_e}=Reflect;class VirtualEnvironment$LWS{constructor(t){if(void 0===t)throw new Te("Missing VirtualEnvironmentOptions options bag.");const{Et:e,distortionCallback:o,instrumentation:r,redConnector:n}=me({__proto__:null},t);let i;const a=e("blue",(...t)=>{i=t;},{distortionCallback:o,instrumentation:r}),{0:s,1:l,2:c,3:u,5:f,6:d,7:y,8:p,9:S,10:h,11:L,12:g,13:$,14:W,15:v,16:b,17:T,18:P,19:w,20:m,21:O,23:_,24:E,25:x,26:A,27:B,29:M,30:F,31:j,32:H,33:k,34:R,35:I}=i;let C;const N=n("red",(...t)=>{C=t;}),{0:D,3:G,4:K,5:U,6:V,7:z,8:X,9:Q,10:Z,11:J,12:Y,13:q,14:tt,15:et,16:ot,17:rt,18:nt,19:it,20:at,21:st,22:lt,23:ct,24:ut,25:ft,26:dt,27:yt,28:pt,29:St,30:ht,31:Lt,32:gt,33:$t,34:Wt,35:vt}=C;a(void 0,void 0,void 0,void 0,void 0,void 0,V,z,X,Q,Z,J,Y,q,tt,et,ot,rt,nt,it,at,st,void 0,ct,ut,ft,dt,yt,void 0,St,ht,Lt,gt,$t,Wt,vt),N(void 0,void 0,void 0,void 0,void 0,void 0,d,y,p,S,h,L,g,$,W,v,b,T,P,w,m,O,void 0,_,E,x,A,B,void 0,M,F,j,H,k,R,I),this.xt=s,this.At=l,this.Bt=c,this.Mt=u,this.Ft=f,this.redGlobalThisPointer=D,this.jt=G,this.Ht=K,this.kt=U,this.Rt=at,this.It=lt,this.Ct=pt;}evaluate(t){try{const e=this.Ht(t);return "function"==typeof e?(e(),this.At()):e}catch(t){var e;throw null!=(e=this.At())?e:t}}Nt(t,e,o){if("object"==typeof t&&null!==t||"function"==typeof t){const r=[this.Bt(t)];Oe(we,r,e),null!=o&&o.length&&(r[r.length]=ve,Oe(we,r,o)),Oe(this.Ct,void 0,r);}}link(...t){let e=this.xt,o=this.redGlobalThisPointer;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];e=this.Mt(e,n),o=this.jt(o,n),this.kt(o,e),this.Ft(e,o);}}Dt(t,e){if("object"==typeof t&&null!==t||"function"==typeof t){const o=this.Bt(t),r=_e(e),{length:n}=r,i=new be(1+7*n);i[0]=o;for(let t=0,o=1;t<n;t+=1,o+=7){const n=r[t],a=e[n],s=me({__proto__:null},a);i[o]=n,i[o+1]="configurable"in s?!!s.configurable:ve,i[o+2]="enumerable"in s?!!s.enumerable:ve,i[o+3]="writable"in s?!!s.writable:ve,i[o+4]="value"in s?this.Bt(s.value):ve,i[o+5]="get"in s?this.Bt(s.get):ve,i[o+6]="set"in s?this.Bt(s.set):ve;}Oe(this.It,this,i);}}Gt(t,e){if("object"==typeof t&&null!==t||"function"==typeof t){const o=this.Bt(t),r=e?this.Bt(e):e;this.Rt(o,r);}}}const{assign:Ee}=Object,{ownKeys:xe}=Reflect,Ae=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"],Be=(Me=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Number","RegExp","String","Symbol","WeakRef","JSON","Math","Reflect","escape","unescape",...Ae],Ot(Me,null),Me.at=Bt,Me.concat=Mt,Me.constructor=wt,Me.copyWithin=Ft,Me.entries=jt,Me.every=Ht,Me.fill=kt,Me.filter=Rt,Me.find=It,Me.findIndex=Ct,Me.flat=Nt,Me.flatMap=Dt,Me.forEach=Gt,Me.includes=Kt,Me.indexOf=Ut,Me.join=Vt,Me.keys=zt,Me.lastIndexOf=Xt,Me.map=Qt,Me.pop=Zt,Me.push=Jt,Me.reduce=Yt,Me.reduceRight=qt,Me.reverse=te,Me.shift=ee,Me.slice=oe,Me.some=re,Me.sort=ne,Me.splice=ie,Me.toLocaleString=ae,Me.toString=se,Me.unshift=le,Me.values=ce,Me[_t]=ue,Me[xt]=fe,Ot(Me,At),Me);var Me;function getFilteredGlobalOwnKeys$LWS(t){const e=[];let o=0;const r=xe(t);for(let t=0,{length:n}=r;t<n;t+=1){const n=r[t];Be.includes(n)||(e[o++]=n);}return e}const{deleteProperty:Fe,getPrototypeOf:je,ownKeys:He}=Reflect,ke=toSafeWeakMap$LWS(new WeakMap),Re=(()=>{const{navigator:t,navigator:{userAgentData:e}}=window,o=null==e?void 0:e.brands;if(Array.isArray(o)&&o.length?o.find(t=>"Chromium"===(null==t?void 0:t.brand)):/ (?:Headless)?Chrome\/\d+/.test(t.userAgent))return ["window"]})();function getCachedGlobalObjectReferences$LWS(t){const{window:e}=t;let o,r;try{({document:r}=t),o=ke.get(r);}catch(t){return}if(o)return o;const n=je(e),i=je(n),a=je(i);return o={document:r,Kt:je(r),window:e,Ut:je(e),Vt:je(n),zt:a,Xt:He(a)},ke.set(r,o),o}function filterWindowKeys$LWS(t){const e=[];let o=0;for(let r=0,{length:n}=t;r<n;r+=1){const n=t[r];"document"!==n&&"location "!==n&&"top"!==n&&"window"!==n&&"chrome"!==n&&(e[o++]=n);}return e}getCachedGlobalObjectReferences$LWS(window);const Ie=Object,Ce=TypeError,Ne=WeakMap,{prototype:De}=Document,{prototype:Ge}=Node,{remove:Ke,setAttribute:Ue}=Element.prototype,{appendChild:Ve}=Ge,{assign:ze}=Ie,{__lookupGetter__:Xe}=Ie.prototype,{apply:Qe}=Reflect,{close:Ze,createElement:Je,open:Ye}=De,qe=Qe(Xe,De,["body"]),to=Qe(Xe,HTMLElement.prototype,["style"]),eo=Qe(Xe,HTMLIFrameElement.prototype,["contentWindow"]),oo=Qe(Xe,Ge,["lastChild"]),ro=document,no=toSafeWeakMap$LWS(new Ne);let io=null;function createIframeVirtualEnvironment$LWS(t,e){if("object"!=typeof t||null===t)throw new Ce("Missing global object virtualization target.");const{distortionCallback:o,endowments:r,globalObjectShape:n,instrumentation:i,Qt:a=!1}=ze({__proto__:null},e),s=function(){var t;const e=Qe(Je,ro,["iframe"]),o=null!=(t=Qe(qe,ro,[]))?t:Qe(oo,ro,[]);return Qe(to,e,[]).display="none",Qe(Ue,e,["sandbox","allow-same-origin allow-scripts"]),Qe(Ve,o,[e]),e}(),l=Qe(eo,s,[]),c="object"!=typeof n||null===n;c&&null===io&&(io=filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(l)));const u=getCachedGlobalObjectReferences$LWS(t);if("object"!=typeof u||null===u)throw new Ce("Invalid virtualization target.");let f=no.get(u.document);void 0===f&&(f=function(t){if("object"!=typeof t||null===t)throw new $e("Missing globalObject.");return createMembraneMarshall$LWS(t)}(t),no.set(u.document,f));const d=new VirtualEnvironment$LWS({Et:f,distortionCallback:o,instrumentation:i,redConnector:createRedConnector$LWS(l.eval)});if(!function(t,e){for(let o=0,{length:r}=Ae;o<r;o+=1){const r=Ae[o],n=e[r];n&&(n.prototype?t.link(r,"prototype"):t.link(r));}}(d,t),"undefined"==typeof globalThis?d.link("window","document"):d.link("document"),d.link("__proto__","__proto__","__proto__"),d.Gt(u.document,u.Kt),d.Nt(u.window,c?io:filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(n)),a?void 0:Re),r){const t={};!function(t,e){const o=xe(e);for(let r=0,{length:n}=o;r<n;r+=1){const n=o[r];if(!Be.includes(n)){const o=e[n];o&&(t[n]=Ee({__proto__:null},o));}}return t}(t,r),Fe(y=t,"document"),Fe(y,"location"),Fe(y,"top"),Fe(y,"window"),Fe(y,"chrome"),d.Dt(u.window,t);}var y;if(d.Nt(u.zt,u.Xt),a){const{document:t}=l;Qe(Ye,t,[]),Qe(Ze,t,[]);}else Qe(Ke,s,[]);return d}const ao=`'use strict';\n ${SANDBOX_EVAL_CONTEXT_NAME$LWS}(${function(t){const{Zt:e}=t,o=Array,r=Promise,n=TypeError,{asyncIterator:i,iterator:a}=Symbol,{[a]:s}=o.prototype,l=function*(){}.constructor.prototype.prototype,{next:c,throw:u}=l,{delete:f,get:d,set:y}=Map.prototype,{appendChild:p}=Node.prototype,{defineProperties:S,freeze:h}=Object,{then:L}=r.prototype,g=r.resolve.bind(r),{apply:$,getPrototypeOf:W,setPrototypeOf:v}=Reflect,{replace:b}=String.prototype,{get:T,set:P}=WeakMap.prototype,{createElement:w}=Document.prototype,{querySelector:m,setAttribute:O}=Element.prototype,{stopPropagation:_}=Event.prototype,{addEventListener:E,removeEventListener:x}=EventTarget.prototype,{head:A}=document,B=new Map,M=/\\?'/g,F="data-locker-id",j=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;class LockerSecurityError$LWS extends Error{constructor(t){super(`Lightning Web Security: ${t}`);}}function escapeSingleQuotes$LWS(t){return $(b,t,[M,"\\'"])}function genStep$LWS(t,e,o,r,n,i,a){let s,l;try{s=$(i,t,[a]),l=s.value;}catch(t){return o(t),void 0}s.done?e(l):g(l).then(r,n);}function loadPromise$LWS(t,o){const n=new r((e,r)=>{function onerror$LWS(e){$(x,t,["error",onerror$LWS]),$(x,t,["load",onload$LWS]),$(_,e,[]),r(new LockerSecurityError$LWS(`Resource loader error loading '${escapeSingleQuotes$LWS(o)}'.`));}function onload$LWS(){$(x,t,["error",onerror$LWS]),$(x,t,["load",onload$LWS]),e(void 0);}$(E,t,["error",onerror$LWS]),$(E,t,["load",onload$LWS]);});return $(P,e,[t,n]),$(p,A,[t]),n}function spreadable$LWS(t){return v(t,null),t[a]=s,t}function toString$LWS(t){return "string"==typeof t?t:`${t}`}return {asyncToGen:function(t,e,o){return new r((r,n)=>{const i=$(t,e,o);function next$LWS(t){genStep$LWS(i,r,n,next$LWS,thrower$LWS,c,t);}function thrower$LWS(t){genStep$LWS(i,r,n,next$LWS,thrower$LWS,u,t);}next$LWS(void 0);})},forAwaitOf:function(t,e,o){if(0===e){let e=!1,{[i]:r}=o;if(null==r&&(e=!0,({[a]:r}=o)),"function"!=typeof r)throw new n("Object is not iterable.");return $(y,B,[t,{iterable:$(r,o,[]),step:void 0,sync:e}]),void 0}const s=$(d,B,[t]);if(1===e){const t=s.iterable.next();return s.sync?new r(e=>{s.step=t,e();}):$(L,t,[t=>{s.step=t;}])}if(2===e)return s.step.value;if(3===e){const e=!!s.step.done;return e&&$(f,B,[t]),e}},loadScript:function(t,o){const r=toString$LWS(o);let n=$(m,A,[`script[data-distorted-src='${escapeSingleQuotes$LWS(r)}'][data-locker-id='${j}']`]);var i;return n?null!=(i=$(T,e,[n]))?i:g():(n=$(w,document,["script"]),$(O,n,[F,j]),n.type="text/javascript",n.src=r,loadPromise$LWS(n,r))},loadStyle:function(t,o){const r=toString$LWS(o);let n=$(m,A,[`link[href='${escapeSingleQuotes$LWS(r)}']`]);var i;return n?null!=(i=$(T,e,[n]))?i:g():(n=$(w,document,["link"]),n.type="text/css",n.rel="stylesheet",n.href=r,loadPromise$LWS(n,r))},makeRedGet:function(...t){const{length:e}=t,r=o(e),n={};for(let o=0;o<e;o+=1)n[o]={__proto__:null,get:t[o]};return S(r,n),r},makeRedResyncImports:function(t){return function(){for(let e=0,{length:o}=t;e<o;e+=1)try{t[e];}catch(t){}return spreadable$LWS(t)}},namespace:function(t){return h(t)},spreadable:spreadable$LWS,super:function(t,e,o,r){const n=W(t.prototype)[e];return $(n,o,r)}}}})`,lo={[SANDBOX_EVAL_CONTEXT_NAME$LWS]:{__proto__:null,get:()=>clearEvalContext$LWS()},[SANDBOX_EVAL_HELPERS_NAME$LWS]:{__proto__:null,get:()=>clearEvalHelpers$LWS()}},co=(()=>{const{navigator:t,navigator:{userAgentData:o}}=window,r=/WebKit/i,n=null==o?void 0:o.brands;return !(ArrayIsArray$LWS(n)&&n.length?n.find(t=>{const e=null==t?void 0:t.brand;return "string"==typeof e&&r.test(e)}):r.test(t.userAgent))})(),uo=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS),fo=toSafeWeakMap$LWS$1(new WeakMapCtor$LWS),yo=toSafeWeakSet$LWS(new WeakSetCtor$LWS);let po,So;function clearEvalContext$LWS(){const t=po;return po=void 0,t}function clearEvalHelpers$LWS(){const t=So;return So=void 0,t}function createDistortionFactoryEntries$LWS(t,o=function(t){const{globalObject:e,type:o}=t,{Document:r,Element:n,HTMLElement:i,HTMLIFrameElement:a,HTMLScriptElement:s,SVGElement:l,XSLTProcessor:c}=e,u=1===o?ArrayConcat$LWS(internalDistortionFactories$LWS,internalKeyedDistortionFactories$LWS):ArrayConcat$LWS(externalDistortionFactories$LWS,externalKeyedDistortionFactories$LWS);createBlockedPropertyDistortionFactories$LWS(CustomElementRegistry.prototype,CustomElementRegistryBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(r.prototype,DocumentBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(n.prototype,ElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(i.prototype,HTMLElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(a.prototype,HTMLIFrameElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(HTMLEmbedElement.prototype,HTMLEmbedElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(HTMLObjectElement.prototype,HTMLObjectElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(s.prototype,HTMLScriptElementBlockedProperties$LWS,u),createBlockedPropertyDistortionFactories$LWS(l.prototype,SVGElementBlockedProperties$LWS,u),"function"==typeof c&&createBlockedPropertyDistortionFactories$LWS(c.prototype,XSLTProcessorBlockedProperties$LWS,u);return u}(t)){const{BASIC_INSTRUMENTATION_DATA:r,LOCKER_VERBOSE_DEBUG_MODE_INSTRUMENTATION_FLAG:i,instrumentation:a,key:s}=t,{error:l}=a,c=i?a.startActivity:void 0,u=[];let f=0;for(let a=0,{length:d}=o;a<d;a+=1){const d=o[a],y=d(t);if(!ArrayIsArray$LWS(y))continue;const{0:p,1:S}=y;if(!isObjectLike$LWS(p))continue;let h=S;if("function"==typeof S){let t;if(i){const{name:e}=d;t=e?ReflectApply$LWS(StringProtoReplace$LWS,e,[LOCKER_IDENTIFIER_MARKER$LWS,""]):"<unknown>";}const e=new ProxyCtor$LWS(p,ObjectFreeze$LWS({apply(o,a,u){let f;a===e&&(a=S),i&&(f=c(t,r));try{return ReflectApply$LWS(S,a,u)}catch(t){throw l({sandboxKey:s,error:t}),t}finally{i&&f.stop();}},construct(o,n,a){let u;a===e&&(a=S),i&&(u=c(t,r));try{return ReflectConstruct$LWS(S,n,a)}catch(t){throw l({sandboxKey:s,error:t}),t}finally{i&&u.stop();}}}));h=e;}u[f++]=[p,h];}return u}function getSandboxRecord$LWS({context:t,document:e,endowments:o,globalObject:r,instrumentation:i,key:a,type:s,verboseInstrumentation:l},c){let u=uo.get(e);void 0===u&&(u={__proto__:null},uo.set(e,u));let f=u[a];if(f)return f;const d="object"==typeof i&&null!==i;let lazyVirtualEnvironmentEvaluator$LWS=t=>{const e=function(t){const{LOCKER_VERBOSE_DEBUG_MODE_INSTRUMENTATION_FLAG:e,Jt:o,endowments:r,globalObject:i,instrumentation:a,key:s,type:l,top:c,top:{Jt:u}}=t,f=t===c,d=createIframeVirtualEnvironment$LWS(i,{distortionCallback(t){const r=u.get(t);if(r)return f?r:o.get(t)||r;if("function"==typeof t||!ObjectHasOwn$LWS(t,"location"))return t;let i,d;if(ObjectHasOwn$LWS(t,"window")&&t.window===t)try{i=ReflectApply$LWS(WindowDocumentGetter$LWS,t,[]),d=t;}catch(t){}else if("defaultView"in t){let e;try{e=ReflectApply$LWS(DocumentProtoDefaultViewGetter$LWS,t,[]);}catch(t){}e&&(i=t,d=e);}return d&&getSandboxRecord$LWS({context:void 0,document:i,endowments:void 0,globalObject:d,instrumentation:a,key:s,type:l,verboseInstrumentation:e},c),t},endowments:ObjectAssign$LWS({},lo,r?ObjectGetOwnPropertyDescriptors$LWS(r):void 0),Qt:!1,instrumentation:e?a:void 0});return t=>d.evaluate(t)}(f);lazyVirtualEnvironmentEvaluator$LWS=e;const o=clearEvalContext$LWS();return setEvalContext$LWS(t=>{ObjectAssign$LWS(f.Yt,t({Zt:fo}));}),e(ao),setEvalContext$LWS(o),e(t)};f={BASIC_INSTRUMENTATION_DATA:d?{sandboxKey:a}:void 0,LOCKER_DEBUG_MODE_INSTRUMENTATION_FLAG:d,LOCKER_VERBOSE_DEBUG_MODE_INSTRUMENTATION_FLAG:l&&d,UNCOMPILED_CONTEXT:{[UNCOMPILED_LOCATION_NAME$LWS]:r.location},context:t,document:e,Jt:co?toSafeWeakMap$LWS$1(new WeakMapCtor$LWS):toSafeMap$LWS(new MapCtor$LWS),endowments:o,globalObject:r,Yt:{},instrumentation:i,key:a,sandboxEvaluator:(t,o,n=r,c=e)=>internalEvaluateInSandbox$LWS({context:o,document:c,endowments:void 0,globalObject:n,instrumentation:i,key:a,source:t,sourceType:0,type:s,verboseInstrumentation:l}),top:c,type:s,virtualEnvironmentEvaluator:t=>lazyVirtualEnvironmentEvaluator$LWS(t)},u[a]=f,void 0===c&&(c=f,f.top=f);const{Jt:y}=c;y.set(e,e),y.set(r,r);const p=function(t){distortBlockedAttributes$LWS(t,HTMLElement,HTMLElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(t,HTMLIFrameElement,HTMLIFrameElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(t,HTMLScriptElement,HTMLScriptElementBlockedAttributes$LWS),distortBlockedAttributes$LWS(t,SVGElement,SVGElementBlockedAttributes$LWS);const e=createDistortionFactoryEntries$LWS(t);return createAttributeDistortions$LWS(t,e),e}(f);for(let t=0,{length:e}=p;t<e;t+=1){const{0:e,1:o}=p[t];y.set(e,o);}if(f===c)return f;const{Jt:S}=f,h=createDistortionFactoryEntries$LWS(f,evaluationDistortionFactories$LWS);for(let t=0,{length:e}=h;t<e;t+=1){const{0:e,1:o}=h[t];y.set(e,o),S.set(e,e);}if(yo.has(r))return f;yo.add(r);const onDOMContentLoadedOrWindowLoad$LWS=()=>{try{getSandboxRecord$LWS({context:void 0,document:r.document,endowments:void 0,globalObject:r,instrumentation:i,key:a,type:s,verboseInstrumentation:l},c);}catch(t){}},L=ReflectApply$LWS(WindowFrameElementGetter$LWS,r,[]);return L?(ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,L,["load",onDOMContentLoadedOrWindowLoad$LWS,!0]),f):(ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,r,["unload",function onWindowUnload$LWS(){WindowQueueMicrotask$LWS(()=>{try{ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,r,["DOMContentLoaded",onDOMContentLoadedOrWindowLoad$LWS,!0]),ReflectApply$LWS(EventTargetProtoAddEventListener$LWS,r,["unload",onWindowUnload$LWS,!0]);}catch(t){}});},!0]),f)}function internalEvaluateInSandbox$LWS(t){const{context:e,instrumentation:o,key:r,source:i,sourceType:a}=t;if("string"!=typeof r)throw new LockerSecurityError$LWS("Invalid sandbox key.");const s=getSandboxRecord$LWS(t);var l;let c;setEvalContext$LWS(e),l=s.Yt,So=l;const u=function(t,e=1){let o="function"==typeof t?extractFunctionBodySource$LWS(t):toString$LWS(t);return o=ReflectApply$LWS(StringProtoReplace$LWS,o,[/\/\/# sandbox(?=MappingURL=.*?\s*$)/,"//# source"]),1===e&&-1===indexOfPragma$LWS(o,"use strict")?`'use strict';${o}`:o}(i,a),{BASIC_INSTRUMENTATION_DATA:f,LOCKER_DEBUG_MODE_INSTRUMENTATION_FLAG:d}=s,y=d?o.startActivity:void 0;let p;d&&(p=y("evaluateInSandbox",f));try{c=s.virtualEnvironmentEvaluator(u);}catch(t){throw d&&p.error({sandboxKey:r,error:t}),t}finally{clearEvalContext$LWS(),clearEvalHelpers$LWS();}return d&&p.stop(),c}function setEvalContext$LWS(t){po=t;}function evaluateInSandbox$LWS(t,e,o,r,n=defaultInstrumentation$LWS,i=!1){return internalEvaluateInSandbox$LWS({context:o,document:document,endowments:r,globalObject:window,instrumentation:n,key:t,source:e,sourceType:1,type:0,verboseInstrumentation:i})}
|
|
7705
8114
|
|
|
7706
8115
|
const loaderDefine = globalThis.LWR.define;
|
|
7707
8116
|
/**
|