@lwrjs/client-modules 0.11.0-alpha.8 → 0.11.0-alpha.9
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.
|
@@ -37,7 +37,7 @@ const {
|
|
|
37
37
|
hasOwnProperty: ObjectProtoHasOwnProperty$LWS$1
|
|
38
38
|
} = ObjectProto$LWS$1;
|
|
39
39
|
const {
|
|
40
|
-
toString: ObjectProtoToString$LWS
|
|
40
|
+
toString: ObjectProtoToString$LWS$1
|
|
41
41
|
} = ObjectProto$LWS$1;
|
|
42
42
|
function isObject$LWS$1(value$LWS) {
|
|
43
43
|
return typeof value$LWS === 'object' && value$LWS !== null;
|
|
@@ -86,13 +86,11 @@ const {
|
|
|
86
86
|
forEach: ArrayProtoForEach$LWS$1,
|
|
87
87
|
keys: ArrayProtoKeys$LWS$1,
|
|
88
88
|
lastIndexOf: ArrayProtoLastIndexOf$LWS$1,
|
|
89
|
-
map: ArrayProtoMap$LWS$1,
|
|
90
89
|
pop: ArrayProtoPop$LWS$1,
|
|
91
90
|
reduce: ArrayProtoReduce$LWS$1,
|
|
92
91
|
reduceRight: ArrayProtoReduceRight$LWS$1,
|
|
93
92
|
reverse: ArrayProtoReverse$LWS$1,
|
|
94
93
|
some: ArrayProtoSome$LWS$1,
|
|
95
|
-
splice: ArrayProtoSplice$LWS$1,
|
|
96
94
|
toLocaleString: ArrayProtoToLocaleString$LWS$1,
|
|
97
95
|
values: ArrayProtoValues$LWS$1,
|
|
98
96
|
[SymbolIterator$LWS$1]: ArrayProtoSymbolIterator$LWS$1
|
|
@@ -103,6 +101,8 @@ const ArrayUnscopables$LWS$1 = ObjectFreeze$LWS$1(ObjectAssign$LWS$1({
|
|
|
103
101
|
// Used by '@locker/near-membrane-dom'.
|
|
104
102
|
const {
|
|
105
103
|
includes: ArrayProtoIncludes$LWS$1,
|
|
104
|
+
map: ArrayProtoMap$LWS$1,
|
|
105
|
+
splice: ArrayProtoSplice$LWS$1,
|
|
106
106
|
sort: ArrayProtoSort$LWS$1,
|
|
107
107
|
unshift: ArrayProtoUnshift$LWS$1
|
|
108
108
|
} = ArrayProto$LWS$1;
|
|
@@ -206,7 +206,7 @@ const LOCKER_IDENTIFIER_MARKER$LWS = '$LWS';
|
|
|
206
206
|
// phase two, the user opted-in to custom devtools formatters. Phase one
|
|
207
207
|
// is used for light weight initialization time debug while phase two is
|
|
208
208
|
// reserved for post initialization runtime
|
|
209
|
-
const LOCKER_UNMINIFIED_FLAG$LWS =
|
|
209
|
+
const LOCKER_UNMINIFIED_FLAG$LWS$1 =
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
211
211
|
/* istanbul ignore next */
|
|
212
212
|
`${function LOCKER_UNMINIFIED_FLAG$LWS() {
|
|
@@ -227,26 +227,26 @@ const ERR_ILLEGAL_PROPERTY_ACCESS$LWS = 'Illegal property access.';
|
|
|
227
227
|
const ERR_INVALID_SANDBOX_KEY$LWS = 'Invalid sandbox key.';
|
|
228
228
|
// Near-membrane constants.
|
|
229
229
|
const LOCKER_NEAR_MEMBRANE_IS_MASKED_SYMBOL$LWS = SymbolFor$LWS$1('@@lockerNearMembraneIsMasked');
|
|
230
|
-
const LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS = SymbolFor$LWS$1('@@lockerNearMembraneSerializedValue');
|
|
231
|
-
const LOCKER_NEAR_MEMBRANE_SYMBOL$LWS = SymbolFor$LWS$1('@@lockerNearMembrane');
|
|
230
|
+
const LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS$1 = SymbolFor$LWS$1('@@lockerNearMembraneSerializedValue');
|
|
231
|
+
const LOCKER_NEAR_MEMBRANE_SYMBOL$LWS$1 = SymbolFor$LWS$1('@@lockerNearMembrane');
|
|
232
232
|
const LOCKER_NEAR_MEMBRANE_UNMASKED_VALUE_SYMBOL$LWS = SymbolFor$LWS$1('@@lockerNearMembraneUnmaskedValue');
|
|
233
233
|
// Legacy symbol used by packages/locker-core-engine/src/LockerFilter.js.
|
|
234
234
|
const SYMBOL_LIVE_OBJECT$LWS = SymbolFor$LWS$1('@@lockerLiveValue');
|
|
235
235
|
// Object brand constants.
|
|
236
236
|
const TO_STRING_BRAND_ARRAY$LWS = '[object Array]';
|
|
237
237
|
const TO_STRING_BRAND_ARRAY_BUFFER$LWS = '[object ArrayBuffer]';
|
|
238
|
-
const TO_STRING_BRAND_BIG_INT$LWS = '[object BigInt]';
|
|
239
|
-
const TO_STRING_BRAND_BOOLEAN$LWS = '[object Boolean]';
|
|
238
|
+
const TO_STRING_BRAND_BIG_INT$LWS$1 = '[object BigInt]';
|
|
239
|
+
const TO_STRING_BRAND_BOOLEAN$LWS$1 = '[object Boolean]';
|
|
240
240
|
const TO_STRING_BRAND_DATE$LWS = '[object Date]';
|
|
241
241
|
const TO_STRING_BRAND_FUNCTION$LWS = '[object Function]';
|
|
242
242
|
const TO_STRING_BRAND_MAP$LWS = '[object Map]';
|
|
243
243
|
const TO_STRING_BRAND_NULL$LWS = '[object Null]';
|
|
244
|
-
const TO_STRING_BRAND_NUMBER$LWS = '[object Number]';
|
|
244
|
+
const TO_STRING_BRAND_NUMBER$LWS$1 = '[object Number]';
|
|
245
245
|
const TO_STRING_BRAND_OBJECT$LWS = '[object Object]';
|
|
246
246
|
const TO_STRING_BRAND_REG_EXP$LWS = '[object RegExp]';
|
|
247
247
|
const TO_STRING_BRAND_SET$LWS = '[object Set]';
|
|
248
|
-
const TO_STRING_BRAND_STRING$LWS = '[object String]';
|
|
249
|
-
const TO_STRING_BRAND_SYMBOL$LWS = '[object Symbol]';
|
|
248
|
+
const TO_STRING_BRAND_STRING$LWS$1 = '[object String]';
|
|
249
|
+
const TO_STRING_BRAND_SYMBOL$LWS$1 = '[object Symbol]';
|
|
250
250
|
const TO_STRING_BRAND_UNDEFINED$LWS = '[object Undefined]';
|
|
251
251
|
const TO_STRING_BRAND_WEAK_MAP$LWS = '[object WeakMap]';
|
|
252
252
|
const TO_STRING_BRAND_WEAK_SET$LWS = '[object WeakSet]';
|
|
@@ -553,34 +553,38 @@ function toSafeMap$LWS$1(map$LWS) {
|
|
|
553
553
|
ReflectSetPrototypeOf$LWS$1(map$LWS, MapProto$LWS$1);
|
|
554
554
|
return map$LWS;
|
|
555
555
|
}
|
|
556
|
-
const NumberCtor$LWS = Number;
|
|
556
|
+
const NumberCtor$LWS$1 = Number;
|
|
557
557
|
// Used by '@locker/near-membrane-dom'.
|
|
558
558
|
const {
|
|
559
|
-
isFinite: NumberIsFinite$LWS,
|
|
560
|
-
isInteger: NumberIsInteger$LWS
|
|
561
|
-
|
|
559
|
+
isFinite: NumberIsFinite$LWS$1,
|
|
560
|
+
isInteger: NumberIsInteger$LWS$1,
|
|
561
|
+
isNaN: NumberIsNaN$LWS$1
|
|
562
|
+
} = NumberCtor$LWS$1;
|
|
562
563
|
const {
|
|
563
564
|
toFixed: NumberProtoToFixed$LWS,
|
|
564
565
|
valueOf: NumberProtoValueOf$LWS
|
|
565
|
-
} = NumberCtor$LWS.prototype;
|
|
566
|
-
const StringCtor$LWS = String;
|
|
566
|
+
} = NumberCtor$LWS$1.prototype;
|
|
567
|
+
const StringCtor$LWS$1 = String;
|
|
567
568
|
const {
|
|
568
|
-
prototype: StringProto$LWS
|
|
569
|
-
} = StringCtor$LWS;
|
|
569
|
+
prototype: StringProto$LWS$1
|
|
570
|
+
} = StringCtor$LWS$1;
|
|
570
571
|
const {
|
|
572
|
+
charAt: StringProtoCharAt$LWS,
|
|
573
|
+
charCodeAt: StringProtoCharCodeAt$LWS,
|
|
571
574
|
endsWith: StringProtoEndsWith$LWS,
|
|
572
575
|
includes: StringProtoIncludes$LWS,
|
|
573
576
|
indexOf: StringProtoIndexOf$LWS,
|
|
574
577
|
lastIndexOf: StringProtoLastIndexOf$LWS,
|
|
575
578
|
match: StringProtoMatch$LWS,
|
|
576
579
|
replace: StringProtoReplace$LWS,
|
|
577
|
-
slice: StringProtoSlice$LWS,
|
|
580
|
+
slice: StringProtoSlice$LWS$1,
|
|
578
581
|
split: StringProtoSplit$LWS,
|
|
579
582
|
startsWith: StringProtoStartsWith$LWS,
|
|
583
|
+
substring: StringProtoSubstring$LWS,
|
|
580
584
|
toLowerCase: StringProtoToLowerCase$LWS,
|
|
581
585
|
toUpperCase: StringProtoToUpperCase$LWS,
|
|
582
|
-
valueOf: StringProtoValueOf$LWS
|
|
583
|
-
} = StringProto$LWS;
|
|
586
|
+
valueOf: StringProtoValueOf$LWS$1
|
|
587
|
+
} = StringProto$LWS$1;
|
|
584
588
|
const quoteCharRegExpRegistry$LWS = {
|
|
585
589
|
__proto__: null,
|
|
586
590
|
[CHAR_QUOTE_DOUBLE$LWS]: /\\?"/g,
|
|
@@ -588,7 +592,7 @@ const quoteCharRegExpRegistry$LWS = {
|
|
|
588
592
|
};
|
|
589
593
|
const URLCtor$LWS = typeof URL === 'function' ? URL : /* istanbul ignore next: unreachable in test env */undefined;
|
|
590
594
|
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
591
|
-
const URLProtoToString$LWS = URLCtor$LWS == null
|
|
595
|
+
const URLProtoToString$LWS = URLCtor$LWS == null || (_URLCtor$prototype$LWS = URLCtor$LWS.prototype) == null ? void 0 : _URLCtor$prototype$LWS.toString;
|
|
592
596
|
// To extract the function body start the match from the beginning of the
|
|
593
597
|
// source code with the character class `[\s\S]` instead of `.` because `[\s\S]`
|
|
594
598
|
// matches everything including newlines where as `.` matches everything except
|
|
@@ -604,7 +608,7 @@ function capitalizeFirstChar$LWS(string$LWS) {
|
|
|
604
608
|
} = string$LWS;
|
|
605
609
|
if (length$LWS) {
|
|
606
610
|
const upper$LWS = ReflectApply$LWS$1(StringProtoToUpperCase$LWS, string$LWS[0], []);
|
|
607
|
-
return length$LWS === 1 ? upper$LWS : upper$LWS + ReflectApply$LWS$1(StringProtoSlice$LWS, string$LWS, [1]);
|
|
611
|
+
return length$LWS === 1 ? upper$LWS : upper$LWS + ReflectApply$LWS$1(StringProtoSlice$LWS$1, string$LWS, [1]);
|
|
608
612
|
}
|
|
609
613
|
return '';
|
|
610
614
|
}
|
|
@@ -654,8 +658,8 @@ function toSafeTemplateStringValue$LWS(value$LWS) {
|
|
|
654
658
|
if (URLCtor$LWS && value$LWS instanceof URLCtor$LWS) {
|
|
655
659
|
return ReflectApply$LWS$1(URLProtoToString$LWS, value$LWS, []);
|
|
656
660
|
}
|
|
657
|
-
const result$LWS = ReflectApply$LWS$1(ObjectProtoToString$LWS, value$LWS, []);
|
|
658
|
-
return result$LWS === TO_STRING_BRAND_SYMBOL$LWS ? ReflectApply$LWS$1(SymbolProtoToString$LWS, value$LWS, []) : result$LWS;
|
|
661
|
+
const result$LWS = ReflectApply$LWS$1(ObjectProtoToString$LWS$1, value$LWS, []);
|
|
662
|
+
return result$LWS === TO_STRING_BRAND_SYMBOL$LWS$1 ? ReflectApply$LWS$1(SymbolProtoToString$LWS, value$LWS, []) : result$LWS;
|
|
659
663
|
}
|
|
660
664
|
if (typeof value$LWS === 'symbol') {
|
|
661
665
|
return ReflectApply$LWS$1(SymbolProtoToString$LWS, value$LWS, []);
|
|
@@ -663,7 +667,7 @@ function toSafeTemplateStringValue$LWS(value$LWS) {
|
|
|
663
667
|
// Attempt to coerce `value` to a string with the String() constructor.
|
|
664
668
|
// Section 22.1.1.1 String ( value )
|
|
665
669
|
// https://tc39.es/ecma262/#sec-string-constructor-string-value
|
|
666
|
-
return StringCtor$LWS(value$LWS);
|
|
670
|
+
return StringCtor$LWS$1(value$LWS);
|
|
667
671
|
// eslint-disable-next-line no-empty
|
|
668
672
|
} catch (_unused3$LWS) {}
|
|
669
673
|
return '[object Unknown]';
|
|
@@ -861,7 +865,7 @@ function getBrandByTrialAndError$LWS(value$LWS) {
|
|
|
861
865
|
try {
|
|
862
866
|
if ('toPrecision' in value$LWS) {
|
|
863
867
|
ReflectApply$LWS$1(NumberProtoValueOf$LWS, value$LWS, []);
|
|
864
|
-
return TO_STRING_BRAND_NUMBER$LWS;
|
|
868
|
+
return TO_STRING_BRAND_NUMBER$LWS$1;
|
|
865
869
|
}
|
|
866
870
|
// eslint-disable-next-line no-empty
|
|
867
871
|
} catch (_unused10$LWS) {}
|
|
@@ -873,7 +877,7 @@ function getBrandByTrialAndError$LWS(value$LWS) {
|
|
|
873
877
|
try {
|
|
874
878
|
if ('description' in value$LWS) {
|
|
875
879
|
ReflectApply$LWS$1(SymbolProtoValueOf$LWS, value$LWS, []);
|
|
876
|
-
return TO_STRING_BRAND_SYMBOL$LWS;
|
|
880
|
+
return TO_STRING_BRAND_SYMBOL$LWS$1;
|
|
877
881
|
}
|
|
878
882
|
// eslint-disable-next-line no-empty
|
|
879
883
|
} catch (_unused11$LWS) {}
|
|
@@ -897,8 +901,8 @@ function getBrandByTrialAndError$LWS(value$LWS) {
|
|
|
897
901
|
// b. Assert: Type(s) is String.
|
|
898
902
|
try {
|
|
899
903
|
if (ObjectHasOwn$LWS$1(value$LWS, 'length')) {
|
|
900
|
-
ReflectApply$LWS$1(StringProtoValueOf$LWS, value$LWS, []);
|
|
901
|
-
return TO_STRING_BRAND_STRING$LWS;
|
|
904
|
+
ReflectApply$LWS$1(StringProtoValueOf$LWS$1, value$LWS, []);
|
|
905
|
+
return TO_STRING_BRAND_STRING$LWS$1;
|
|
902
906
|
}
|
|
903
907
|
// eslint-disable-next-line no-empty
|
|
904
908
|
} catch (_unused13$LWS) {}
|
|
@@ -909,7 +913,7 @@ function getBrandByTrialAndError$LWS(value$LWS) {
|
|
|
909
913
|
// b. Assert: Type(b) is Boolean.
|
|
910
914
|
try {
|
|
911
915
|
ReflectApply$LWS$1(BooleanProtoValueOf$LWS, value$LWS, []);
|
|
912
|
-
return TO_STRING_BRAND_BOOLEAN$LWS;
|
|
916
|
+
return TO_STRING_BRAND_BOOLEAN$LWS$1;
|
|
913
917
|
// eslint-disable-next-line no-empty
|
|
914
918
|
} catch (_unused14$LWS) {}
|
|
915
919
|
// istanbul ignore else: All platforms that LWS runs tests in support BigInt
|
|
@@ -920,7 +924,7 @@ function getBrandByTrialAndError$LWS(value$LWS) {
|
|
|
920
924
|
// Step 2: If Type(value) is Object and value has a [[BigIntData]] internal slot, then
|
|
921
925
|
// a. Assert: Type(value.[[BigIntData]]) is BigInt.
|
|
922
926
|
ReflectApply$LWS$1(BigIntProtoValueOf$LWS, value$LWS, []);
|
|
923
|
-
return TO_STRING_BRAND_BIG_INT$LWS;
|
|
927
|
+
return TO_STRING_BRAND_BIG_INT$LWS$1;
|
|
924
928
|
// eslint-disable-next-line no-empty
|
|
925
929
|
} catch (_unused15$LWS) {}
|
|
926
930
|
}
|
|
@@ -939,22 +943,22 @@ function getBrand$LWS(value$LWS) {
|
|
|
939
943
|
// eslint-disable-next-line default-case
|
|
940
944
|
switch (typeof value$LWS) {
|
|
941
945
|
case 'bigint':
|
|
942
|
-
return TO_STRING_BRAND_BIG_INT$LWS;
|
|
946
|
+
return TO_STRING_BRAND_BIG_INT$LWS$1;
|
|
943
947
|
case 'boolean':
|
|
944
|
-
return TO_STRING_BRAND_BOOLEAN$LWS;
|
|
948
|
+
return TO_STRING_BRAND_BOOLEAN$LWS$1;
|
|
945
949
|
case 'function':
|
|
946
950
|
return TO_STRING_BRAND_FUNCTION$LWS;
|
|
947
951
|
case 'number':
|
|
948
|
-
return TO_STRING_BRAND_NUMBER$LWS;
|
|
952
|
+
return TO_STRING_BRAND_NUMBER$LWS$1;
|
|
949
953
|
case 'string':
|
|
950
|
-
return TO_STRING_BRAND_STRING$LWS;
|
|
954
|
+
return TO_STRING_BRAND_STRING$LWS$1;
|
|
951
955
|
case 'symbol':
|
|
952
|
-
return TO_STRING_BRAND_SYMBOL$LWS;
|
|
956
|
+
return TO_STRING_BRAND_SYMBOL$LWS$1;
|
|
953
957
|
}
|
|
954
958
|
if (ArrayIsArray$LWS$1(value$LWS)) {
|
|
955
959
|
return TO_STRING_BRAND_ARRAY$LWS;
|
|
956
960
|
}
|
|
957
|
-
return TO_STRING_TAG_SYMBOL$LWS in value$LWS ? getBrandByTrialAndError$LWS(value$LWS) : ReflectApply$LWS$1(ObjectProtoToString$LWS, value$LWS, []);
|
|
961
|
+
return TO_STRING_TAG_SYMBOL$LWS in value$LWS ? getBrandByTrialAndError$LWS(value$LWS) : ReflectApply$LWS$1(ObjectProtoToString$LWS$1, value$LWS, []);
|
|
958
962
|
}
|
|
959
963
|
typeof performance === 'undefined' ? /* istanbul ignore next: unreachable in test env */DateNow$LWS : ReflectApply$LWS$1(FunctionProtoBind$LWS, performance.now, [performance]);
|
|
960
964
|
// Based on Acorn strictDirective() parser utility.
|
|
@@ -966,7 +970,7 @@ function indexOfPragma$LWS(source$LWS, pragma$LWS) {
|
|
|
966
970
|
while (true) {
|
|
967
971
|
skipWhiteSpacesRegExp$LWS.lastIndex = pos$LWS;
|
|
968
972
|
pos$LWS += ReflectApply$LWS$1(RegExpProtoExec$LWS, skipWhiteSpacesRegExp$LWS, [source$LWS])[0].length;
|
|
969
|
-
const stringLiteralMatch$LWS = ReflectApply$LWS$1(RegExpProtoExec$LWS, stringLiteralRegExp$LWS, [ReflectApply$LWS$1(StringProtoSlice$LWS, source$LWS, [pos$LWS])]);
|
|
973
|
+
const stringLiteralMatch$LWS = ReflectApply$LWS$1(RegExpProtoExec$LWS, stringLiteralRegExp$LWS, [ReflectApply$LWS$1(StringProtoSlice$LWS$1, source$LWS, [pos$LWS])]);
|
|
970
974
|
if (stringLiteralMatch$LWS === null) {
|
|
971
975
|
return -1;
|
|
972
976
|
}
|
|
@@ -995,30 +999,30 @@ function indexOfPragma$LWS(source$LWS, pragma$LWS) {
|
|
|
995
999
|
const {
|
|
996
1000
|
parse: JSONParse$LWS
|
|
997
1001
|
} = JSON;
|
|
998
|
-
function getNearMembraneProxySerializedValue$LWS(object$LWS) {
|
|
1002
|
+
function getNearMembraneProxySerializedValue$LWS$1(object$LWS) {
|
|
999
1003
|
if (typeof object$LWS === 'object' && object$LWS !== null || typeof object$LWS === 'function') {
|
|
1000
1004
|
// To extract the serialized value of a blue near-membrane proxy we must
|
|
1001
1005
|
// perform a two step handshake. First, we trigger the "has" trap for
|
|
1002
1006
|
// the `LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL` property which
|
|
1003
1007
|
// must report `false`. Second, we trigger the "get" trap to return the
|
|
1004
1008
|
// serialized value.
|
|
1005
|
-
return LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS in object$LWS ? undefined : object$LWS[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS];
|
|
1009
|
+
return LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS$1 in object$LWS ? undefined : object$LWS[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS$1];
|
|
1006
1010
|
}
|
|
1007
1011
|
return undefined;
|
|
1008
1012
|
}
|
|
1009
|
-
function isNearMembraneProxy$LWS(value$LWS) {
|
|
1013
|
+
function isNearMembraneProxy$LWS$1(value$LWS) {
|
|
1010
1014
|
if (typeof value$LWS === 'object' && value$LWS !== null || typeof value$LWS === 'function') {
|
|
1011
1015
|
// To extract the flag value of a blue near-membrane proxy we must
|
|
1012
1016
|
// perform a two step handshake. First, we trigger the "has" trap for
|
|
1013
1017
|
// the `LOCKER_NEAR_MEMBRANE_SYMBOL` property which must report `false`.
|
|
1014
1018
|
// Second, we trigger the "get" trap to return the flag value.
|
|
1015
|
-
return !(LOCKER_NEAR_MEMBRANE_SYMBOL$LWS in value$LWS) && value$LWS[LOCKER_NEAR_MEMBRANE_SYMBOL$LWS] === true;
|
|
1019
|
+
return !(LOCKER_NEAR_MEMBRANE_SYMBOL$LWS$1 in value$LWS) && value$LWS[LOCKER_NEAR_MEMBRANE_SYMBOL$LWS$1] === true;
|
|
1016
1020
|
}
|
|
1017
1021
|
return false;
|
|
1018
1022
|
}
|
|
1019
1023
|
const SEEN_OBJECTS$LWS = toSafeMap$LWS$1(new MapCtor$LWS$1());
|
|
1020
1024
|
function cloneBoxedPrimitive$LWS(object$LWS) {
|
|
1021
|
-
return ObjectCtor$LWS$1(getNearMembraneProxySerializedValue$LWS(object$LWS));
|
|
1025
|
+
return ObjectCtor$LWS$1(getNearMembraneProxySerializedValue$LWS$1(object$LWS));
|
|
1022
1026
|
}
|
|
1023
1027
|
function cloneMap$LWS(map$LWS, queue$LWS) {
|
|
1024
1028
|
// Section 2.7.3 StructuredSerializeInternal:
|
|
@@ -1060,7 +1064,7 @@ function cloneRegExp$LWS(regexp$LWS) {
|
|
|
1060
1064
|
const {
|
|
1061
1065
|
flags: flags$LWS,
|
|
1062
1066
|
source: source$LWS
|
|
1063
|
-
} = JSONParse$LWS(getNearMembraneProxySerializedValue$LWS(regexp$LWS));
|
|
1067
|
+
} = JSONParse$LWS(getNearMembraneProxySerializedValue$LWS$1(regexp$LWS));
|
|
1064
1068
|
return new RegExpCtor$LWS$1(source$LWS, flags$LWS);
|
|
1065
1069
|
}
|
|
1066
1070
|
function cloneSet$LWS(set$LWS, queue$LWS) {
|
|
@@ -1248,7 +1252,7 @@ function partialStructuredCloneInternal$LWS(value$LWS) {
|
|
|
1248
1252
|
}
|
|
1249
1253
|
if (cloneValue$LWS === undefined) {
|
|
1250
1254
|
// istanbul ignore else
|
|
1251
|
-
if (!isNearMembraneProxy$LWS(originalValue$LWS)) {
|
|
1255
|
+
if (!isNearMembraneProxy$LWS$1(originalValue$LWS)) {
|
|
1252
1256
|
// Skip cloning non-membrane proxied objects.
|
|
1253
1257
|
SEEN_OBJECTS$LWS.set(originalValue$LWS, originalValue$LWS);
|
|
1254
1258
|
setter$LWS(originalValue$LWS);
|
|
@@ -1263,16 +1267,16 @@ function partialStructuredCloneInternal$LWS(value$LWS) {
|
|
|
1263
1267
|
cloneValue$LWS = cloneRegExp$LWS(originalValue$LWS);
|
|
1264
1268
|
break;
|
|
1265
1269
|
// Step 7: If value has a [[BooleanData]] internal slot...
|
|
1266
|
-
case TO_STRING_BRAND_BOOLEAN$LWS:
|
|
1270
|
+
case TO_STRING_BRAND_BOOLEAN$LWS$1:
|
|
1267
1271
|
// Step 8: Otherwise, if value has a [[NumberData]] internal slot...
|
|
1268
1272
|
// eslint-disable-next-line no-fallthrough
|
|
1269
|
-
case TO_STRING_BRAND_NUMBER$LWS:
|
|
1273
|
+
case TO_STRING_BRAND_NUMBER$LWS$1:
|
|
1270
1274
|
// Step 9: Otherwise, if value has a [[BigIntData]] internal slot...
|
|
1271
1275
|
// eslint-disable-next-line no-fallthrough
|
|
1272
|
-
case TO_STRING_BRAND_BIG_INT$LWS:
|
|
1276
|
+
case TO_STRING_BRAND_BIG_INT$LWS$1:
|
|
1273
1277
|
// Step 10: Otherwise, if value has a [[StringData]] internal slot...
|
|
1274
1278
|
// eslint-disable-next-line no-fallthrough
|
|
1275
|
-
case TO_STRING_BRAND_STRING$LWS:
|
|
1279
|
+
case TO_STRING_BRAND_STRING$LWS$1:
|
|
1276
1280
|
cloneValue$LWS = cloneBoxedPrimitive$LWS(originalValue$LWS);
|
|
1277
1281
|
break;
|
|
1278
1282
|
}
|
|
@@ -1425,14 +1429,14 @@ function prependStorageNamespaceMarker$LWS(key$LWS, namespace$LWS) {
|
|
|
1425
1429
|
function removeNamespaceMarker$LWS(key$LWS, namespace$LWS) {
|
|
1426
1430
|
if (typeof key$LWS === 'string') {
|
|
1427
1431
|
const marker$LWS = getNamespaceMarker$LWS(namespace$LWS);
|
|
1428
|
-
return ReflectApply$LWS$1(StringProtoStartsWith$LWS, key$LWS, [marker$LWS]) ? ReflectApply$LWS$1(StringProtoSlice$LWS, key$LWS, [marker$LWS.length]) : key$LWS;
|
|
1432
|
+
return ReflectApply$LWS$1(StringProtoStartsWith$LWS, key$LWS, [marker$LWS]) ? ReflectApply$LWS$1(StringProtoSlice$LWS$1, key$LWS, [marker$LWS.length]) : key$LWS;
|
|
1429
1433
|
}
|
|
1430
1434
|
return '';
|
|
1431
1435
|
}
|
|
1432
1436
|
function removeStorageNamespaceMarker$LWS(key$LWS, namespace$LWS) {
|
|
1433
1437
|
if (typeof key$LWS === 'string') {
|
|
1434
1438
|
const marker$LWS = getStorageNamespaceMarker$LWS(namespace$LWS);
|
|
1435
|
-
return ReflectApply$LWS$1(StringProtoStartsWith$LWS, key$LWS, [marker$LWS]) ? ReflectApply$LWS$1(StringProtoSlice$LWS, key$LWS, [marker$LWS.length]) : key$LWS;
|
|
1439
|
+
return ReflectApply$LWS$1(StringProtoStartsWith$LWS, key$LWS, [marker$LWS]) ? ReflectApply$LWS$1(StringProtoSlice$LWS$1, key$LWS, [marker$LWS.length]) : key$LWS;
|
|
1436
1440
|
}
|
|
1437
1441
|
return '';
|
|
1438
1442
|
}
|
|
@@ -1449,12 +1453,11 @@ const {
|
|
|
1449
1453
|
} = PromiseCtor$LWS.prototype;
|
|
1450
1454
|
const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
|
|
1451
1455
|
const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
|
|
1452
|
-
/*! version: 0.20.
|
|
1456
|
+
/*! version: 0.20.3 */
|
|
1453
1457
|
|
|
1454
1458
|
/*!
|
|
1455
1459
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
1456
1460
|
*/
|
|
1457
|
-
var _rootWindow$CustomEle$LWS;
|
|
1458
1461
|
const AbortControllerCtor$LWS = AbortController;
|
|
1459
1462
|
const {
|
|
1460
1463
|
prototype: AbortControllerProto$LWS
|
|
@@ -1861,12 +1864,6 @@ item$LWS => {
|
|
|
1861
1864
|
const brand$LWS = item$LWS == null ? void 0 : item$LWS.brand;
|
|
1862
1865
|
return typeof brand$LWS === 'string' && ReflectApply$LWS$1(RegExpProtoTest$LWS$1, webKitUserAgentRegExp$LWS, [brand$LWS]);
|
|
1863
1866
|
}]) !== undefined : ReflectApply$LWS$1(RegExpProtoTest$LWS$1, webKitUserAgentRegExp$LWS, [getUserAgent$LWS$1()]));
|
|
1864
|
-
|
|
1865
|
-
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
1866
|
-
const CustomElementRegistryProto$LWS = (_rootWindow$CustomEle$LWS = rootWindow$LWS$1.CustomElementRegistry) == null ? void 0 : _rootWindow$CustomEle$LWS.prototype;
|
|
1867
|
-
const CustomElementRegistryProtoDefine$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.define) : /* istanbul ignore next: this is a safety precaution that is unreachable via tests */undefined;
|
|
1868
|
-
const CustomElementRegistryProtoGet$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.get) : /* istanbul ignore next: this is a safety precaution that is unreachable via tests */undefined;
|
|
1869
|
-
const CustomElementRegistryProtoWhenDefined$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.whenDefined) : /* istanbul ignore next: this is a safety precaution that is unreachable via tests */undefined;
|
|
1870
1867
|
const {
|
|
1871
1868
|
getElementById: DocumentFragmentProtoGetElementById$LWS
|
|
1872
1869
|
} = DocumentFragment.prototype;
|
|
@@ -2089,7 +2086,7 @@ function transformSourceText$LWS(sourceText$LWS) {
|
|
|
2089
2086
|
// Move index after the semicolon.
|
|
2090
2087
|
afterPragmaIndex$LWS += 1;
|
|
2091
2088
|
}
|
|
2092
|
-
return ReflectApply$LWS$1(StringProtoSlice$LWS, code$LWS, [0, afterPragmaIndex$LWS]) + prefix$LWS + ReflectApply$LWS$1(StringProtoSlice$LWS, code$LWS, [afterPragmaIndex$LWS]);
|
|
2089
|
+
return ReflectApply$LWS$1(StringProtoSlice$LWS$1, code$LWS, [0, afterPragmaIndex$LWS]) + prefix$LWS + ReflectApply$LWS$1(StringProtoSlice$LWS$1, code$LWS, [afterPragmaIndex$LWS]);
|
|
2093
2090
|
}
|
|
2094
2091
|
const {
|
|
2095
2092
|
key: StorageProtoKey$LWS,
|
|
@@ -2115,7 +2112,7 @@ const {
|
|
|
2115
2112
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'responseText');
|
|
2116
2113
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'status');
|
|
2117
2114
|
ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
2118
|
-
/*! version: 0.20.
|
|
2115
|
+
/*! version: 0.20.3 */
|
|
2119
2116
|
|
|
2120
2117
|
/*!
|
|
2121
2118
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2174,9 +2171,9 @@ function sanitizeURLForElement$LWS(url$LWS) {
|
|
|
2174
2171
|
function sanitizeURLString$LWS(urlString$LWS) {
|
|
2175
2172
|
return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS$1(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
|
|
2176
2173
|
}
|
|
2177
|
-
/*! version: 0.20.
|
|
2174
|
+
/*! version: 0.20.3 */
|
|
2178
2175
|
|
|
2179
|
-
/*! @license DOMPurify 3.0.
|
|
2176
|
+
/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
|
|
2180
2177
|
|
|
2181
2178
|
const {
|
|
2182
2179
|
entries,
|
|
@@ -2431,7 +2428,7 @@ function createDOMPurify() {
|
|
|
2431
2428
|
*/
|
|
2432
2429
|
|
|
2433
2430
|
|
|
2434
|
-
DOMPurify.version = '3.0.
|
|
2431
|
+
DOMPurify.version = '3.0.5';
|
|
2435
2432
|
/**
|
|
2436
2433
|
* Array of elements that DOMPurify removed during sanitation.
|
|
2437
2434
|
* Empty if nothing was removed.
|
|
@@ -3240,10 +3237,10 @@ function createDOMPurify() {
|
|
|
3240
3237
|
|
|
3241
3238
|
return true;
|
|
3242
3239
|
}
|
|
3243
|
-
/* Make sure that older browsers don't get
|
|
3240
|
+
/* Make sure that older browsers don't get fallback-tag mXSS */
|
|
3244
3241
|
|
|
3245
3242
|
|
|
3246
|
-
if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) {
|
|
3243
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
|
|
3247
3244
|
_forceRemove(currentNode);
|
|
3248
3245
|
|
|
3249
3246
|
return true;
|
|
@@ -3661,7 +3658,7 @@ function createDOMPurify() {
|
|
|
3661
3658
|
returnNode = body;
|
|
3662
3659
|
}
|
|
3663
3660
|
|
|
3664
|
-
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.
|
|
3661
|
+
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
|
|
3665
3662
|
/*
|
|
3666
3663
|
AdoptNode() is not used because internal state is not reset
|
|
3667
3664
|
(e.g. the past names map of a HTMLFormElement), this is safe
|
|
@@ -3860,7 +3857,7 @@ try {
|
|
|
3860
3857
|
// swallow
|
|
3861
3858
|
}
|
|
3862
3859
|
const trusted = createPolicy('trusted', policyOptions);
|
|
3863
|
-
/*! version: 0.20.
|
|
3860
|
+
/*! version: 0.20.3 */
|
|
3864
3861
|
|
|
3865
3862
|
/*!
|
|
3866
3863
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -3938,7 +3935,7 @@ function createSantizerHooksRegistry$LWS(sandboxKey$LWS) {
|
|
|
3938
3935
|
const {
|
|
3939
3936
|
tagName: tagName$LWS
|
|
3940
3937
|
} = data$LWS;
|
|
3941
|
-
const tagNameCheck$LWS = config$LWS == null
|
|
3938
|
+
const tagNameCheck$LWS = config$LWS == null || (_config$CUSTOM_ELEMEN$LWS = config$LWS.CUSTOM_ELEMENT_HANDLING) == null ? void 0 : _config$CUSTOM_ELEMEN$LWS.tagNameCheck;
|
|
3942
3939
|
if (tagNameCheck$LWS && ReflectApply$LWS$1(RegExpProtoTest$LWS$1, tagNameCheck$LWS, [tagName$LWS]) &&
|
|
3943
3940
|
// This MUST be called ONLY after we've ensured the previous
|
|
3944
3941
|
// two conditions have been met, otherwise it may result in an
|
|
@@ -4109,7 +4106,7 @@ function blobSanitizer$LWS(sandboxKey$LWS) {
|
|
|
4109
4106
|
}
|
|
4110
4107
|
return getSanitizerForConfig$LWS(sandboxKey$LWS, 'STRING_BLOB_HTML');
|
|
4111
4108
|
}
|
|
4112
|
-
/*! version: 0.20.
|
|
4109
|
+
/*! version: 0.20.3 */
|
|
4113
4110
|
|
|
4114
4111
|
/*!
|
|
4115
4112
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -4307,11 +4304,12 @@ function encloseSrcSetter$LWS(targetElement$LWS) {
|
|
|
4307
4304
|
ReflectApply$LWS$1(ElementProtoSetAttributeNS$LWS, targetElement$LWS, [attributeNamespaceURI$LWS, attributeName$LWS, src$LWS]);
|
|
4308
4305
|
};
|
|
4309
4306
|
}
|
|
4310
|
-
/*! version: 0.20.
|
|
4307
|
+
/*! version: 0.20.3 */
|
|
4311
4308
|
|
|
4312
4309
|
/*!
|
|
4313
4310
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
4314
4311
|
*/
|
|
4312
|
+
var _rootWindow$CustomEle$LWS;
|
|
4315
4313
|
const ERR_ILLEGAL_CONSTRUCTOR$LWS = 'Illegal constructor';
|
|
4316
4314
|
const ERR_ILLEGAL_INVOCATION$LWS = 'Illegal invocation.';
|
|
4317
4315
|
const ERR_NO_NEW_OP_HTML_ELEMENT$LWS = "Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.";
|
|
@@ -4321,6 +4319,11 @@ const definitionCache$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS$1());
|
|
|
4321
4319
|
const globalRegistryCache$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS$1());
|
|
4322
4320
|
const pivotCtorCache$LWS = toSafeMap$LWS$1(new MapCtor$LWS$1());
|
|
4323
4321
|
const sandboxRegistryCache$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS$1());
|
|
4322
|
+
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
4323
|
+
const CustomElementRegistryProto$LWS = (_rootWindow$CustomEle$LWS = rootWindow$LWS$1.CustomElementRegistry) == null ? void 0 : _rootWindow$CustomEle$LWS.prototype;
|
|
4324
|
+
const CustomElementRegistryProtoDefine$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.define) : /* istanbul ignore next: this is a safety precaution that is unreachable via tests */undefined;
|
|
4325
|
+
const CustomElementRegistryProtoWhenDefined$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.whenDefined) : /* istanbul ignore next: this is a safety precaution that is unreachable via tests */undefined;
|
|
4326
|
+
const CustomElementRegistryProtoUpgrade$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.upgrade) : /* istanbul ignore next: this is a safety precaution that is unreachable via tests */undefined;
|
|
4324
4327
|
/* eslint-disable no-underscore-dangle */
|
|
4325
4328
|
class VirtualRegistry$LWS {
|
|
4326
4329
|
constructor(document$LWS, originalHTMLElementCtor$LWS = getUnmaskedFunction$LWS(ReflectApply$LWS$1(DocumentProtoDefaultViewGetter$LWS, document$LWS, []).HTMLElement)) {
|
|
@@ -4387,15 +4390,31 @@ class VirtualRegistry$LWS {
|
|
|
4387
4390
|
applyGet(cer$LWS, args$LWS) {
|
|
4388
4391
|
const tagName$LWS = args$LWS[0];
|
|
4389
4392
|
const definition$LWS = this._definitionByTag.get(tagName$LWS);
|
|
4390
|
-
return definition$LWS ? definition$LWS.LocalCtor :
|
|
4393
|
+
return definition$LWS ? definition$LWS.LocalCtor : undefined;
|
|
4394
|
+
}
|
|
4395
|
+
applyUpgrade(cer$LWS, args$LWS) {
|
|
4396
|
+
const element$LWS = args$LWS[0];
|
|
4397
|
+
const tagName$LWS = ReflectApply$LWS$1(ElementProtoTagNameGetter$LWS, element$LWS, []);
|
|
4398
|
+
const tagNameLowerCased$LWS = ReflectApply$LWS$1(StringProtoToLowerCase$LWS, tagName$LWS, []);
|
|
4399
|
+
const definition$LWS = this._definitionByTag.get(tagNameLowerCased$LWS);
|
|
4400
|
+
// There is no way to to tell `customElements.upgrade` which definition to use to upgrade,
|
|
4401
|
+
// so we're only using the definition as a check to make sure this sandbox actually has a
|
|
4402
|
+
// definition for the given not-yet-upgraded-element. Regardless of the code being run in a
|
|
4403
|
+
// sandbox, or not, when the browser invokes the process to upgrade, it will take our
|
|
4404
|
+
// patched path and the result will be the correct definition.
|
|
4405
|
+
if (definition$LWS) {
|
|
4406
|
+
ReflectApply$LWS$1(CustomElementRegistryProtoUpgrade$LWS, cer$LWS, [element$LWS]);
|
|
4407
|
+
}
|
|
4391
4408
|
}
|
|
4392
4409
|
applyWhenDefined(cer$LWS, args$LWS) {
|
|
4393
4410
|
const tagName$LWS = args$LWS[0];
|
|
4394
4411
|
const promise$LWS = ReflectApply$LWS$1(CustomElementRegistryProtoWhenDefined$LWS, cer$LWS, args$LWS);
|
|
4395
4412
|
return new PromiseCtor$LWS((resolve$LWS, reject$LWS) => {
|
|
4396
|
-
ReflectApply$LWS$1(PromiseProtoThen$LWS, promise$LWS, [
|
|
4413
|
+
ReflectApply$LWS$1(PromiseProtoThen$LWS, promise$LWS, [() => {
|
|
4397
4414
|
const definition$LWS = this._definitionByTag.get(tagName$LWS);
|
|
4398
|
-
|
|
4415
|
+
if (definition$LWS) {
|
|
4416
|
+
resolve$LWS(definition$LWS.LocalCtor);
|
|
4417
|
+
}
|
|
4399
4418
|
}, reject$LWS]);
|
|
4400
4419
|
});
|
|
4401
4420
|
}
|
|
@@ -4684,6 +4703,7 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4684
4703
|
ReflectApply$LWS$1(formResetCallback$LWS, this, []);
|
|
4685
4704
|
}
|
|
4686
4705
|
}
|
|
4706
|
+
// istanbul ignore next: currently unreachable via tests because the browser mechanics that would result in its execution cannot be simulated or reproduced.
|
|
4687
4707
|
formStateRestoreCallback(state$LWS, reason$LWS) {
|
|
4688
4708
|
const definition$LWS = this.instanceRegistry.getDefinition(this);
|
|
4689
4709
|
const formStateRestoreCallback$LWS = definition$LWS && definition$LWS.formStateRestoreCallback;
|
|
@@ -4745,6 +4765,7 @@ function getObservedAttributesDifference$LWS(originalDefinition$LWS, definition$
|
|
|
4745
4765
|
const {
|
|
4746
4766
|
observedAttributes: observedAttributes$LWS
|
|
4747
4767
|
} = definition$LWS;
|
|
4768
|
+
// istanbul ignore if: this is a safety precaution that is unreachable via tests
|
|
4748
4769
|
if (originalDefinition$LWS === definition$LWS || observedAttributes$LWS === undefined) {
|
|
4749
4770
|
return undefined;
|
|
4750
4771
|
}
|
|
@@ -4879,16 +4900,29 @@ function patchAttributes$LWS(instance$LWS, originalDefinition$LWS, definition$LW
|
|
|
4879
4900
|
function patchCustomElementRegistry$LWS(globalObject$LWS, registry$LWS) {
|
|
4880
4901
|
const {
|
|
4881
4902
|
CustomElementRegistry: {
|
|
4882
|
-
prototype:
|
|
4903
|
+
prototype: globalCustomElementRegistryProto$LWS
|
|
4883
4904
|
},
|
|
4884
4905
|
customElements: customElements$LWS
|
|
4885
4906
|
} = globalObject$LWS;
|
|
4886
4907
|
const {
|
|
4887
4908
|
define: originalDefine$LWS,
|
|
4888
4909
|
get: originalGet$LWS,
|
|
4910
|
+
upgrade: originalUpgrade$LWS,
|
|
4889
4911
|
whenDefined: originalWhenDefined$LWS
|
|
4890
|
-
} =
|
|
4891
|
-
|
|
4912
|
+
} = globalCustomElementRegistryProto$LWS;
|
|
4913
|
+
globalCustomElementRegistryProto$LWS.define = maskFunction$LWS(function define$LWS(...args$LWS) {
|
|
4914
|
+
if (this !== customElements$LWS) {
|
|
4915
|
+
// This is more restricted than native behavior because
|
|
4916
|
+
// in native this is normally a runtime error when
|
|
4917
|
+
// attempting to define a class that setDefinition from a
|
|
4918
|
+
// constructor from another window. But right now, we
|
|
4919
|
+
// don't know how to do this runtime check, the safe bet
|
|
4920
|
+
// is to throw here.
|
|
4921
|
+
throw new TypeErrorCtor$LWS$1(ERR_ILLEGAL_INVOCATION$LWS);
|
|
4922
|
+
}
|
|
4923
|
+
return registry$LWS.applyDefine(this, args$LWS);
|
|
4924
|
+
}, originalDefine$LWS, createUnmaskableTraps$LWS(originalDefine$LWS));
|
|
4925
|
+
globalCustomElementRegistryProto$LWS.get = maskFunction$LWS(function get$LWS(...args$LWS) {
|
|
4892
4926
|
if (this !== customElements$LWS) {
|
|
4893
4927
|
// This is more restricted than native behavior because
|
|
4894
4928
|
// in native this is going to leak constructors from
|
|
@@ -4900,19 +4934,19 @@ function patchCustomElementRegistry$LWS(globalObject$LWS, registry$LWS) {
|
|
|
4900
4934
|
}
|
|
4901
4935
|
return registry$LWS.applyGet(this, args$LWS);
|
|
4902
4936
|
}, originalGet$LWS, createUnmaskableTraps$LWS(originalGet$LWS));
|
|
4903
|
-
|
|
4937
|
+
globalCustomElementRegistryProto$LWS.upgrade = maskFunction$LWS(function upgrade$LWS(...args$LWS) {
|
|
4904
4938
|
if (this !== customElements$LWS) {
|
|
4905
4939
|
// This is more restricted than native behavior because
|
|
4906
|
-
// in native this is
|
|
4907
|
-
//
|
|
4908
|
-
//
|
|
4909
|
-
//
|
|
4910
|
-
//
|
|
4940
|
+
// in native this is going to leak constructors from
|
|
4941
|
+
// another windows. But right now, we don't know the
|
|
4942
|
+
// implications yet, the safe bet is to throw here.
|
|
4943
|
+
// @TODO: This could leak pivots from another document,
|
|
4944
|
+
// that's the concern.
|
|
4911
4945
|
throw new TypeErrorCtor$LWS$1(ERR_ILLEGAL_INVOCATION$LWS);
|
|
4912
4946
|
}
|
|
4913
|
-
|
|
4914
|
-
},
|
|
4915
|
-
|
|
4947
|
+
registry$LWS.applyUpgrade(this, args$LWS);
|
|
4948
|
+
}, originalUpgrade$LWS, createUnmaskableTraps$LWS(originalUpgrade$LWS));
|
|
4949
|
+
globalCustomElementRegistryProto$LWS.whenDefined = maskFunction$LWS(function whenDefined$LWS(...args$LWS) {
|
|
4916
4950
|
if (this !== customElements$LWS) {
|
|
4917
4951
|
// This is more restricted than native behavior because in native
|
|
4918
4952
|
// this is going to leak constructors from another windows when
|
|
@@ -5122,9 +5156,9 @@ function initDistortionAuraUtilGlobalEval$LWS({
|
|
|
5122
5156
|
UNCOMPILED_CONTEXT: UNCOMPILED_CONTEXT$LWS,
|
|
5123
5157
|
globalObject: globalObject$LWS
|
|
5124
5158
|
}) {
|
|
5125
|
-
var _globalObject$aura$LWS
|
|
5159
|
+
var _globalObject$aura$LWS;
|
|
5126
5160
|
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
5127
|
-
const originalGlobalEval$LWS = (_globalObject$aura$LWS = globalObject$LWS.aura) == null
|
|
5161
|
+
const originalGlobalEval$LWS = (_globalObject$aura$LWS = globalObject$LWS.aura) == null || (_globalObject$aura$LWS = _globalObject$aura$LWS.util) == null ? void 0 : _globalObject$aura$LWS.globalEval;
|
|
5128
5162
|
// istanbul ignore else: external is the default sandbox type for coverage runs
|
|
5129
5163
|
if (typeof originalGlobalEval$LWS !== 'function') {
|
|
5130
5164
|
return noop$LWS$1;
|
|
@@ -5157,7 +5191,7 @@ function initDistortionCacheStorageDelete$LWS({
|
|
|
5157
5191
|
}) {
|
|
5158
5192
|
var _CacheStorage$prototy$LWS;
|
|
5159
5193
|
// Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
5160
|
-
const originalDelete$LWS = CacheStorage$LWS == null
|
|
5194
|
+
const originalDelete$LWS = CacheStorage$LWS == null || (_CacheStorage$prototy$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy$LWS.delete;
|
|
5161
5195
|
if (typeof originalDelete$LWS !== 'function') {
|
|
5162
5196
|
return noop$LWS$1;
|
|
5163
5197
|
}
|
|
@@ -5186,7 +5220,7 @@ function initDistortionCacheStorageHas$LWS({
|
|
|
5186
5220
|
}) {
|
|
5187
5221
|
var _CacheStorage$prototy2$LWS;
|
|
5188
5222
|
// Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
5189
|
-
const originalHas$LWS = CacheStorage$LWS == null
|
|
5223
|
+
const originalHas$LWS = CacheStorage$LWS == null || (_CacheStorage$prototy2$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy2$LWS.has;
|
|
5190
5224
|
if (typeof originalHas$LWS !== 'function') {
|
|
5191
5225
|
return noop$LWS$1;
|
|
5192
5226
|
}
|
|
@@ -5215,7 +5249,7 @@ function initDistortionCacheStorageKeys$LWS({
|
|
|
5215
5249
|
}) {
|
|
5216
5250
|
var _CacheStorage$prototy3$LWS;
|
|
5217
5251
|
// Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
5218
|
-
const originalKeys$LWS = CacheStorage$LWS == null
|
|
5252
|
+
const originalKeys$LWS = CacheStorage$LWS == null || (_CacheStorage$prototy3$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy3$LWS.keys;
|
|
5219
5253
|
if (typeof originalKeys$LWS !== 'function') {
|
|
5220
5254
|
return noop$LWS$1;
|
|
5221
5255
|
}
|
|
@@ -5248,7 +5282,7 @@ function initDistortionCacheStorageMatch$LWS({
|
|
|
5248
5282
|
}) {
|
|
5249
5283
|
var _CacheStorage$prototy4$LWS;
|
|
5250
5284
|
// Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
5251
|
-
const originalMatch$LWS = CacheStorage$LWS == null
|
|
5285
|
+
const originalMatch$LWS = CacheStorage$LWS == null || (_CacheStorage$prototy4$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy4$LWS.match;
|
|
5252
5286
|
if (typeof originalMatch$LWS !== 'function') {
|
|
5253
5287
|
return noop$LWS$1;
|
|
5254
5288
|
}
|
|
@@ -5292,7 +5326,7 @@ function initDistortionCacheStorageOpen$LWS({
|
|
|
5292
5326
|
}) {
|
|
5293
5327
|
var _CacheStorage$prototy5$LWS;
|
|
5294
5328
|
// Chrome and Safari will only expose CacheStorage over HTTPS.
|
|
5295
|
-
const originalOpen$LWS = CacheStorage$LWS == null
|
|
5329
|
+
const originalOpen$LWS = CacheStorage$LWS == null || (_CacheStorage$prototy5$LWS = CacheStorage$LWS.prototype) == null ? void 0 : _CacheStorage$prototy5$LWS.open;
|
|
5296
5330
|
if (typeof originalOpen$LWS !== 'function') {
|
|
5297
5331
|
return noop$LWS$1;
|
|
5298
5332
|
}
|
|
@@ -5334,7 +5368,7 @@ function unprefixCookie$LWS(cookieEntry$LWS, namespace$LWS) {
|
|
|
5334
5368
|
length: markerLength$LWS
|
|
5335
5369
|
} = marker$LWS;
|
|
5336
5370
|
const pos$LWS = cookieEntry$LWS.length > markerLength$LWS && cookieEntry$LWS[markerLength$LWS] === '=' ? markerLength$LWS + 1 : markerLength$LWS;
|
|
5337
|
-
return ReflectApply$LWS$1(StringProtoSlice$LWS, cookieEntry$LWS, [pos$LWS]);
|
|
5371
|
+
return ReflectApply$LWS$1(StringProtoSlice$LWS$1, cookieEntry$LWS, [pos$LWS]);
|
|
5338
5372
|
}
|
|
5339
5373
|
|
|
5340
5374
|
/* istanbul ignore next: only available in secure context */
|
|
@@ -5344,7 +5378,7 @@ function initDistortionCookieStoreDelete$LWS({
|
|
|
5344
5378
|
}
|
|
5345
5379
|
}) {
|
|
5346
5380
|
var _CookieStore$prototyp$LWS;
|
|
5347
|
-
const originalDelete$LWS = CookieStore$LWS == null
|
|
5381
|
+
const originalDelete$LWS = CookieStore$LWS == null || (_CookieStore$prototyp$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp$LWS.delete;
|
|
5348
5382
|
if (typeof originalDelete$LWS !== 'function') {
|
|
5349
5383
|
return noop$LWS$1;
|
|
5350
5384
|
}
|
|
@@ -5368,7 +5402,7 @@ function initDistortionCookieStoreGet$LWS({
|
|
|
5368
5402
|
}
|
|
5369
5403
|
}) {
|
|
5370
5404
|
var _CookieStore$prototyp2$LWS;
|
|
5371
|
-
const originalGet$LWS = CookieStore$LWS == null
|
|
5405
|
+
const originalGet$LWS = CookieStore$LWS == null || (_CookieStore$prototyp2$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp2$LWS.get;
|
|
5372
5406
|
if (typeof originalGet$LWS !== 'function') {
|
|
5373
5407
|
return noop$LWS$1;
|
|
5374
5408
|
}
|
|
@@ -5404,7 +5438,7 @@ function initDistortionCookieStoreGetAll$LWS({
|
|
|
5404
5438
|
}
|
|
5405
5439
|
}) {
|
|
5406
5440
|
var _CookieStore$prototyp3$LWS;
|
|
5407
|
-
const originalGetAll$LWS = CookieStore$LWS == null
|
|
5441
|
+
const originalGetAll$LWS = CookieStore$LWS == null || (_CookieStore$prototyp3$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp3$LWS.getAll;
|
|
5408
5442
|
if (typeof originalGetAll$LWS !== 'function') {
|
|
5409
5443
|
return noop$LWS$1;
|
|
5410
5444
|
}
|
|
@@ -5543,7 +5577,7 @@ function initDistortionCookieStoreSet$LWS({
|
|
|
5543
5577
|
}
|
|
5544
5578
|
}) {
|
|
5545
5579
|
var _CookieStore$prototyp4$LWS;
|
|
5546
|
-
const originalSet$LWS = CookieStore$LWS == null
|
|
5580
|
+
const originalSet$LWS = CookieStore$LWS == null || (_CookieStore$prototyp4$LWS = CookieStore$LWS.prototype) == null ? void 0 : _CookieStore$prototyp4$LWS.set;
|
|
5547
5581
|
if (typeof originalSet$LWS !== 'function') {
|
|
5548
5582
|
return noop$LWS$1;
|
|
5549
5583
|
}
|
|
@@ -5594,11 +5628,7 @@ function initDistortionCustomElementRegistryDefine$LWS({
|
|
|
5594
5628
|
// Next, we MUST use a reference to the now patched version of this API method,
|
|
5595
5629
|
// or else we'll end up attempting to distort the wrong definition.
|
|
5596
5630
|
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
5597
|
-
const originalCustomElementsDefine$LWS = CustomElementRegistry$LWS == null
|
|
5598
|
-
// istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
5599
|
-
if (typeof originalCustomElementsDefine$LWS !== 'function') {
|
|
5600
|
-
return noop$LWS$1;
|
|
5601
|
-
}
|
|
5631
|
+
const originalCustomElementsDefine$LWS = CustomElementRegistry$LWS == null || (_CustomElementRegistr$LWS = CustomElementRegistry$LWS.prototype) == null ? void 0 : _CustomElementRegistr$LWS.define;
|
|
5602
5632
|
return function distortionCustomElementRegistryDefine$LWS({
|
|
5603
5633
|
key: key$LWS
|
|
5604
5634
|
}) {
|
|
@@ -5627,11 +5657,7 @@ function initDistortionCustomElementRegistryGet$LWS({
|
|
|
5627
5657
|
// Next, we MUST use a reference to the now patched version of this API method,
|
|
5628
5658
|
// or else we'll end up attempting to distort the wrong definition.
|
|
5629
5659
|
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
5630
|
-
const originalCustomElementsGet$LWS = CustomElementRegistry$LWS == null
|
|
5631
|
-
// istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
5632
|
-
if (typeof originalCustomElementsGet$LWS !== 'function') {
|
|
5633
|
-
return noop$LWS$1;
|
|
5634
|
-
}
|
|
5660
|
+
const originalCustomElementsGet$LWS = CustomElementRegistry$LWS == null || (_CustomElementRegistr2$LWS = CustomElementRegistry$LWS.prototype) == null ? void 0 : _CustomElementRegistr2$LWS.get;
|
|
5635
5661
|
return function distortionCustomElementRegistryGet$LWS({
|
|
5636
5662
|
key: key$LWS
|
|
5637
5663
|
}) {
|
|
@@ -5650,7 +5676,7 @@ function initDistortionCustomElementRegistryGet$LWS({
|
|
|
5650
5676
|
}];
|
|
5651
5677
|
};
|
|
5652
5678
|
}
|
|
5653
|
-
function
|
|
5679
|
+
function initDistortionCustomElementRegistryUpgrade$LWS({
|
|
5654
5680
|
document: document$LWS,
|
|
5655
5681
|
globalObject: {
|
|
5656
5682
|
CustomElementRegistry: CustomElementRegistry$LWS,
|
|
@@ -5661,11 +5687,36 @@ function initDistortionCustomElementRegistryWhenDefined$LWS({
|
|
|
5661
5687
|
// Next, we MUST use a reference to the now patched version of this API method,
|
|
5662
5688
|
// or else we'll end up attempting to distort the wrong definition.
|
|
5663
5689
|
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
5664
|
-
const
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5690
|
+
const originalCustomElementsUpgrade$LWS = CustomElementRegistry$LWS == null || (_CustomElementRegistr3$LWS = CustomElementRegistry$LWS.prototype) == null ? void 0 : _CustomElementRegistr3$LWS.upgrade;
|
|
5691
|
+
return function distortionCustomElementRegistryUpgrade$LWS({
|
|
5692
|
+
key: key$LWS
|
|
5693
|
+
}) {
|
|
5694
|
+
const registry$LWS = getSandboxCustomElementRegistry$LWS(document$LWS, key$LWS);
|
|
5695
|
+
return [originalCustomElementsUpgrade$LWS, function upgrade$LWS(...args$LWS) {
|
|
5696
|
+
if (this !== customElements$LWS) {
|
|
5697
|
+
// This is more restricted than native behavior because in native
|
|
5698
|
+
// this is normally a runtime error when attempting to upgrade a
|
|
5699
|
+
// class that inherit from a constructor from another window.
|
|
5700
|
+
// But right now, we don't know how to do this runtime check,
|
|
5701
|
+
// the safe bet is to throw here.
|
|
5702
|
+
throw new TypeErrorCtor$LWS$1(ERR_ILLEGAL_INVOCATION$LWS);
|
|
5703
|
+
}
|
|
5704
|
+
registry$LWS.applyUpgrade(this, args$LWS);
|
|
5705
|
+
}];
|
|
5706
|
+
};
|
|
5707
|
+
}
|
|
5708
|
+
function initDistortionCustomElementRegistryWhenDefined$LWS({
|
|
5709
|
+
document: document$LWS,
|
|
5710
|
+
globalObject: {
|
|
5711
|
+
CustomElementRegistry: CustomElementRegistry$LWS,
|
|
5712
|
+
customElements: customElements$LWS
|
|
5668
5713
|
}
|
|
5714
|
+
}) {
|
|
5715
|
+
var _CustomElementRegistr4$LWS;
|
|
5716
|
+
// Next, we MUST use a reference to the now patched version of this API method,
|
|
5717
|
+
// or else we'll end up attempting to distort the wrong definition.
|
|
5718
|
+
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
5719
|
+
const originalCustomElementsWhenDefined$LWS = CustomElementRegistry$LWS == null || (_CustomElementRegistr4$LWS = CustomElementRegistry$LWS.prototype) == null ? void 0 : _CustomElementRegistr4$LWS.whenDefined;
|
|
5669
5720
|
return function distortionCustomElementRegistryWhenDefined$LWS({
|
|
5670
5721
|
key: key$LWS
|
|
5671
5722
|
}) {
|
|
@@ -5725,7 +5776,7 @@ function initDistortionDocumentCookieSetter$LWS({
|
|
|
5725
5776
|
0: newCookieEntry$LWS
|
|
5726
5777
|
} = cookieEntries$LWS;
|
|
5727
5778
|
if (newCookieEntry$LWS.length && newCookieEntry$LWS[0] === '=') {
|
|
5728
|
-
newCookieEntry$LWS = ReflectApply$LWS$1(StringProtoSlice$LWS, newCookieEntry$LWS, [1]);
|
|
5779
|
+
newCookieEntry$LWS = ReflectApply$LWS$1(StringProtoSlice$LWS$1, newCookieEntry$LWS, [1]);
|
|
5729
5780
|
}
|
|
5730
5781
|
cookieEntries$LWS[0] = prependNamespaceMarker$LWS(newCookieEntry$LWS, key$LWS);
|
|
5731
5782
|
const cookie$LWS = ReflectApply$LWS$1(ArrayProtoJoin$LWS$1, cookieEntries$LWS, [COOKIE_DELIMITER$LWS]);
|
|
@@ -6062,25 +6113,16 @@ function initDistortionElementAttachShadow$LWS({
|
|
|
6062
6113
|
// istanbul ignore else: needs default platform behavior test
|
|
6063
6114
|
if (originalShadowRootInit$LWS !== null && originalShadowRootInit$LWS !== undefined) {
|
|
6064
6115
|
// Snapshot shadowRootInit to avoid getter poisoning.
|
|
6065
|
-
const
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
if (mode$LWS !== 'closed') {
|
|
6069
|
-
throw new LockerSecurityError$LWS("Shadow root mode cannot be 'open.'");
|
|
6070
|
-
}
|
|
6071
|
-
// Assign own properties and set prototype of shadowRootInit
|
|
6072
|
-
// because attachShadow() accepts inherited shadowRootInit
|
|
6073
|
-
// properties.
|
|
6074
|
-
const shadowRootInit$LWS = ObjectAssign$LWS$1({}, originalShadowRootInit$LWS, {
|
|
6075
|
-
mode: mode$LWS
|
|
6076
|
-
});
|
|
6116
|
+
const clonedShadowRootInit$LWS = shallowCloneOptions$LWS(originalShadowRootInit$LWS);
|
|
6117
|
+
// Override the user defined shadowRoot mode to ensure that it is always closed
|
|
6118
|
+
clonedShadowRootInit$LWS.mode = 'closed';
|
|
6077
6119
|
// Set the prototype of shadowRootInit after assignment
|
|
6078
6120
|
// of mode to avoid complications with inherited
|
|
6079
6121
|
// non-configurable/non-writable mode properties.
|
|
6080
6122
|
const originalShadowRootInitProto$LWS = ReflectGetPrototypeOf$LWS$1(originalShadowRootInit$LWS);
|
|
6081
|
-
ReflectSetPrototypeOf$LWS$1(
|
|
6123
|
+
ReflectSetPrototypeOf$LWS$1(clonedShadowRootInit$LWS, originalShadowRootInitProto$LWS);
|
|
6082
6124
|
// Replace shadowRootInit parameter.
|
|
6083
|
-
args$LWS[0] =
|
|
6125
|
+
args$LWS[0] = clonedShadowRootInit$LWS;
|
|
6084
6126
|
}
|
|
6085
6127
|
}
|
|
6086
6128
|
return ReflectApply$LWS$1(originalAttachShadow$LWS, this, args$LWS);
|
|
@@ -8778,7 +8820,7 @@ function initDistortionTrustedTypePolicyFactoryCreatePolicy$LWS({
|
|
|
8778
8820
|
}) {
|
|
8779
8821
|
var _TrustedTypePolicyFac$LWS;
|
|
8780
8822
|
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
8781
|
-
const originalCreatePolicy$LWS = TrustedTypePolicyFactory$LWS == null
|
|
8823
|
+
const originalCreatePolicy$LWS = TrustedTypePolicyFactory$LWS == null || (_TrustedTypePolicyFac$LWS = TrustedTypePolicyFactory$LWS.prototype) == null ? void 0 : _TrustedTypePolicyFac$LWS.createPolicy;
|
|
8782
8824
|
// istanbul ignore if: this is a safety precaution, but currently unreachable via tests
|
|
8783
8825
|
if (typeof originalCreatePolicy$LWS !== 'function') {
|
|
8784
8826
|
return noop$LWS$1;
|
|
@@ -8967,7 +9009,7 @@ function initDistortionWindowFramesGetter$LWS({
|
|
|
8967
9009
|
const framesLengthSetter$LWS = ReflectApply$LWS$1(FunctionProtoBind$LWS, noop$LWS$1, []);
|
|
8968
9010
|
const getFrameByIndexKey$LWS = key$LWS => {
|
|
8969
9011
|
const possibleIndex$LWS = typeof key$LWS === 'string' ? +key$LWS : -1;
|
|
8970
|
-
if (possibleIndex$LWS > -1 && NumberIsInteger$LWS(possibleIndex$LWS) && possibleIndex$LWS < ReflectApply$LWS$1(WindowLengthGetter$LWS, globalObject$LWS, [])) {
|
|
9012
|
+
if (possibleIndex$LWS > -1 && NumberIsInteger$LWS$1(possibleIndex$LWS) && possibleIndex$LWS < ReflectApply$LWS$1(WindowLengthGetter$LWS, globalObject$LWS, [])) {
|
|
8971
9013
|
const value$LWS = ObjectLookupOwnValue$LWS(globalObject$LWS, key$LWS);
|
|
8972
9014
|
// istanbul ignore else: needs default platform behavior test
|
|
8973
9015
|
if (isWindow$LWS(value$LWS)) {
|
|
@@ -9516,7 +9558,7 @@ initDistortionCacheStorageDelete$LWS, initDistortionCacheStorageHas$LWS, initDis
|
|
|
9516
9558
|
// CookieStore
|
|
9517
9559
|
initDistortionCookieStoreDelete$LWS, initDistortionCookieStoreGet$LWS, initDistortionCookieStoreGetAll$LWS, initDistortionCookieStoreOnChange$LWS, initDistortionCookieStoreSet$LWS,
|
|
9518
9560
|
// CustomElementRegistry
|
|
9519
|
-
initDistortionCustomElementRegistryDefine$LWS, initDistortionCustomElementRegistryGet$LWS, initDistortionCustomElementRegistryWhenDefined$LWS,
|
|
9561
|
+
initDistortionCustomElementRegistryDefine$LWS, initDistortionCustomElementRegistryGet$LWS, initDistortionCustomElementRegistryUpgrade$LWS, initDistortionCustomElementRegistryWhenDefined$LWS,
|
|
9520
9562
|
// Document
|
|
9521
9563
|
initDistortionDocumentCookieGetter$LWS, initDistortionDocumentCookieSetter$LWS, initDistortionDocumentCreateElement$LWS, initDistortionDocumentCreateElementNS$LWS, initDistortionDocumentExecCommand$LWS, initDistortionDocumentReplaceChildren$LWS,
|
|
9522
9564
|
// DOMParser
|
|
@@ -9568,7 +9610,7 @@ initDistortionElementAfter$LWS, initDistortionElementAppend$LWS, initDistortionE
|
|
|
9568
9610
|
// initDistortionNodeAppendChild,
|
|
9569
9611
|
initDistortionNodeInsertBefore$LWS]);
|
|
9570
9612
|
const externalKeyedDistortionFactoryInitializers$LWS = internalKeyedDistortionFactoryInitializers$LWS;
|
|
9571
|
-
const DocumentBlockedProperties$LWS = ['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', '
|
|
9613
|
+
const DocumentBlockedProperties$LWS = ['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', 'mozCancelFullScreen', 'mozFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'onfullscreenchange', 'onfullscreenerror', 'onmozfullscreenchange', 'onmozfullscreenerror', 'onrejectionhandled', 'onunhandledrejection', 'releaseCapture', 'releaseEvents', 'webkitFullScreenKeyboardInputAllowed', 'write', 'writeln'];
|
|
9572
9614
|
const ElementBlockedProperties$LWS = ['mozRequestFullScreen', 'onfullscreenchange', 'onfullscreenerror', 'requestFullscreen', 'webkitRequestFullScreen', 'webkitRequestFullscreen'];
|
|
9573
9615
|
const EventBlockedProperties$LWS = ['originalTarget', 'explicitOriginalTarget'];
|
|
9574
9616
|
const HTMLElementBlockedAttributes$LWS = ['nonce'];
|
|
@@ -9584,9 +9626,9 @@ const HTMLScriptElementBlockedProperties$LWS = ['nonce'];
|
|
|
9584
9626
|
const SVGElementBlockedAttributes$LWS = ['nonce'];
|
|
9585
9627
|
const SVGElementBlockedProperties$LWS = ['nonce'];
|
|
9586
9628
|
const UIEventBlockedProperties$LWS = ['rangeParent'];
|
|
9587
|
-
const WindowBlockedProperties$LWS = ['find'
|
|
9629
|
+
const WindowBlockedProperties$LWS = ['find'];
|
|
9588
9630
|
const XSLTProcessorBlockedProperties$LWS = ['transformToDocument', 'transformToFragment'];
|
|
9589
|
-
/*! version: 0.20.
|
|
9631
|
+
/*! version: 0.20.3 */
|
|
9590
9632
|
|
|
9591
9633
|
/*!
|
|
9592
9634
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -9833,10 +9875,12 @@ const {
|
|
|
9833
9875
|
__lookupSetter__: ObjectProtoLookupSetter$LWS,
|
|
9834
9876
|
hasOwnProperty: ObjectProtoHasOwnProperty$LWS
|
|
9835
9877
|
} = ObjectProto$LWS;
|
|
9836
|
-
const ObjectHasOwn$LWS = typeof OriginalObjectHasOwn$LWS === 'function' ? OriginalObjectHasOwn$LWS : /* istanbul ignore next: currently unreachable via tests */
|
|
9837
|
-
function ObjectHasOwn$LWS(object$LWS, key$LWS) {
|
|
9878
|
+
const ObjectHasOwn$LWS = typeof OriginalObjectHasOwn$LWS === 'function' ? OriginalObjectHasOwn$LWS : /* istanbul ignore next: currently unreachable via tests */function ObjectHasOwn$LWS(object$LWS, key$LWS) {
|
|
9838
9879
|
return ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS]);
|
|
9839
9880
|
};
|
|
9881
|
+
const {
|
|
9882
|
+
toString: ObjectProtoToString$LWS
|
|
9883
|
+
} = ObjectProto$LWS;
|
|
9840
9884
|
function isObject$LWS(value$LWS) {
|
|
9841
9885
|
return typeof value$LWS === 'object' && value$LWS !== null;
|
|
9842
9886
|
}
|
|
@@ -9865,18 +9909,15 @@ const {
|
|
|
9865
9909
|
flat: ArrayProtoFlat$LWS,
|
|
9866
9910
|
flatMap: ArrayProtoFlatMap$LWS,
|
|
9867
9911
|
forEach: ArrayProtoForEach$LWS,
|
|
9868
|
-
indexOf: ArrayProtoIndexOf$LWS,
|
|
9869
9912
|
join: ArrayProtoJoin$LWS,
|
|
9870
9913
|
keys: ArrayProtoKeys$LWS,
|
|
9871
9914
|
lastIndexOf: ArrayProtoLastIndexOf$LWS,
|
|
9872
|
-
map: ArrayProtoMap$LWS,
|
|
9873
9915
|
pop: ArrayProtoPop$LWS,
|
|
9874
9916
|
reduce: ArrayProtoReduce$LWS,
|
|
9875
9917
|
reduceRight: ArrayProtoReduceRight$LWS,
|
|
9876
9918
|
reverse: ArrayProtoReverse$LWS,
|
|
9877
9919
|
slice: ArrayProtoSlice$LWS,
|
|
9878
9920
|
some: ArrayProtoSome$LWS,
|
|
9879
|
-
splice: ArrayProtoSplice$LWS,
|
|
9880
9921
|
toLocaleString: ArrayProtoToLocaleString$LWS,
|
|
9881
9922
|
toString: ArrayProtoToString$LWS,
|
|
9882
9923
|
values: ArrayProtoValues$LWS,
|
|
@@ -9889,20 +9930,22 @@ const {
|
|
|
9889
9930
|
filter: ArrayProtoFilter$LWS,
|
|
9890
9931
|
find: ArrayProtoFind$LWS,
|
|
9891
9932
|
includes: ArrayProtoIncludes$LWS,
|
|
9933
|
+
indexOf: ArrayProtoIndexOf$LWS,
|
|
9934
|
+
map: ArrayProtoMap$LWS,
|
|
9935
|
+
push: ArrayProtoPush$LWS,
|
|
9892
9936
|
shift: ArrayProtoShift$LWS,
|
|
9937
|
+
splice: ArrayProtoSplice$LWS,
|
|
9893
9938
|
sort: ArrayProtoSort$LWS,
|
|
9894
9939
|
unshift: ArrayProtoUnshift$LWS
|
|
9895
9940
|
} = ArrayProto$LWS;
|
|
9896
|
-
const {
|
|
9897
|
-
push: ArrayProtoPush$LWS
|
|
9898
|
-
} = ArrayProto$LWS;
|
|
9899
9941
|
const {
|
|
9900
9942
|
isArray: ArrayIsArray$LWS
|
|
9901
9943
|
} = ArrayCtor$LWS;
|
|
9902
9944
|
function toSafeArray$LWS(array$LWS) {
|
|
9903
9945
|
ReflectSetPrototypeOf$LWS(array$LWS, null);
|
|
9904
9946
|
array$LWS.at = ArrayProtoAt$LWS;
|
|
9905
|
-
array$LWS.concat = ArrayProtoConcat$LWS;
|
|
9947
|
+
array$LWS.concat = ArrayProtoConcat$LWS;
|
|
9948
|
+
// *** DO NOT SET THE ARRAY CONSTRUCTOR PROPERTY ***
|
|
9906
9949
|
// https://bugs.chromium.org/p/v8/issues/detail?id=13202
|
|
9907
9950
|
// https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/lookup.cc;l=196-215?q=IsArraySpeciesLookupChainIntact
|
|
9908
9951
|
//
|
|
@@ -9912,7 +9955,6 @@ function toSafeArray$LWS(array$LWS) {
|
|
|
9912
9955
|
// if the prototype of the array is change or nulled beforehand. Further,
|
|
9913
9956
|
// the de-opt persists after a page refresh. It is not until navigating to
|
|
9914
9957
|
// a different page that the performance of `Array#splice` is restored.
|
|
9915
|
-
|
|
9916
9958
|
array$LWS.copyWithin = ArrayProtoCopyWithin$LWS;
|
|
9917
9959
|
array$LWS.entries = ArrayProtoEntries$LWS;
|
|
9918
9960
|
array$LWS.every = ArrayProtoEvery$LWS;
|
|
@@ -9948,11 +9990,31 @@ function toSafeArray$LWS(array$LWS) {
|
|
|
9948
9990
|
ReflectSetPrototypeOf$LWS(array$LWS, ArrayProto$LWS);
|
|
9949
9991
|
return array$LWS;
|
|
9950
9992
|
}
|
|
9951
|
-
ObjectLookupOwnGetter$LWS(ArrayBuffer.prototype, 'byteLength');
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9993
|
+
ObjectLookupOwnGetter$LWS(ArrayBuffer.prototype, 'byteLength');
|
|
9994
|
+
// This package is bundled by third-parties that have their own build time
|
|
9995
|
+
// replacement logic. Instead of customizing each build system to be aware
|
|
9996
|
+
// of this package we implement a two phase debug mode by performing small
|
|
9997
|
+
// runtime checks to determine phase one, our code is unminified, and
|
|
9998
|
+
// phase two, the user opted-in to custom devtools formatters. Phase one
|
|
9999
|
+
// is used for light weight initialization time debug while phase two is
|
|
10000
|
+
// reserved for post initialization runtime
|
|
10001
|
+
const LOCKER_UNMINIFIED_FLAG$LWS =
|
|
10002
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10003
|
+
/* istanbul ignore next */
|
|
10004
|
+
`${function LOCKER_UNMINIFIED_FLAG$LWS() {
|
|
10005
|
+
return LOCKER_UNMINIFIED_FLAG$LWS.name;
|
|
10006
|
+
}()}`.includes('LOCKER_UNMINIFIED_FLAG');
|
|
10007
|
+
// Character constants.
|
|
10008
|
+
const CHAR_ELLIPSIS$LWS = '\u2026';
|
|
10009
|
+
// Near-membrane constants.
|
|
10010
|
+
const LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembraneSerializedValue');
|
|
10011
|
+
const LOCKER_NEAR_MEMBRANE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembrane');
|
|
10012
|
+
SymbolFor$LWS('@@lockerLiveValue');
|
|
10013
|
+
const TO_STRING_BRAND_BIG_INT$LWS = '[object BigInt]';
|
|
10014
|
+
const TO_STRING_BRAND_BOOLEAN$LWS = '[object Boolean]';
|
|
10015
|
+
const TO_STRING_BRAND_NUMBER$LWS = '[object Number]';
|
|
10016
|
+
const TO_STRING_BRAND_STRING$LWS = '[object String]';
|
|
10017
|
+
const TO_STRING_BRAND_SYMBOL$LWS = '[object Symbol]';
|
|
9956
10018
|
const MapCtor$LWS = Map;
|
|
9957
10019
|
const {
|
|
9958
10020
|
prototype: MapProto$LWS
|
|
@@ -9996,6 +10058,12 @@ function toSafeMap$LWS(map$LWS) {
|
|
|
9996
10058
|
ReflectSetPrototypeOf$LWS(map$LWS, MapProto$LWS);
|
|
9997
10059
|
return map$LWS;
|
|
9998
10060
|
}
|
|
10061
|
+
const NumberCtor$LWS = Number;
|
|
10062
|
+
const {
|
|
10063
|
+
isFinite: NumberIsFinite$LWS,
|
|
10064
|
+
isInteger: NumberIsInteger$LWS,
|
|
10065
|
+
isNaN: NumberIsNaN$LWS
|
|
10066
|
+
} = NumberCtor$LWS;
|
|
9999
10067
|
const RegExpCtor$LWS = RegExp;
|
|
10000
10068
|
const {
|
|
10001
10069
|
prototype: RegExpProto$LWS
|
|
@@ -10009,6 +10077,14 @@ const {
|
|
|
10009
10077
|
prototype: SetProto$LWS
|
|
10010
10078
|
} = SetCtor$LWS;
|
|
10011
10079
|
ObjectLookupOwnGetter$LWS(SetProto$LWS, 'size');
|
|
10080
|
+
const StringCtor$LWS = String;
|
|
10081
|
+
const {
|
|
10082
|
+
prototype: StringProto$LWS
|
|
10083
|
+
} = StringCtor$LWS;
|
|
10084
|
+
const {
|
|
10085
|
+
slice: StringProtoSlice$LWS,
|
|
10086
|
+
valueOf: StringProtoValueOf$LWS
|
|
10087
|
+
} = StringProto$LWS;
|
|
10012
10088
|
const WeakMapCtor$LWS = WeakMap;
|
|
10013
10089
|
const {
|
|
10014
10090
|
prototype: WeakMapProto$LWS
|
|
@@ -10053,12 +10129,42 @@ function toSafeWeakSet$LWS(weakSet$LWS) {
|
|
|
10053
10129
|
ReflectSetPrototypeOf$LWS(weakSet$LWS, WeakSetProto$LWS);
|
|
10054
10130
|
return weakSet$LWS;
|
|
10055
10131
|
}
|
|
10132
|
+
// Used by '@locker/near-membrane-dom'.
|
|
10133
|
+
const {
|
|
10134
|
+
stringify: JSONStringify$LWS
|
|
10135
|
+
} = JSON;
|
|
10136
|
+
function getNearMembraneProxySerializedValue$LWS(object$LWS) {
|
|
10137
|
+
if (typeof object$LWS === 'object' && object$LWS !== null || typeof object$LWS === 'function') {
|
|
10138
|
+
// To extract the serialized value of a blue near-membrane proxy we must
|
|
10139
|
+
// perform a two step handshake. First, we trigger the "has" trap for
|
|
10140
|
+
// the `LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL` property which
|
|
10141
|
+
// must report `false`. Second, we trigger the "get" trap to return the
|
|
10142
|
+
// serialized value.
|
|
10143
|
+
return LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS in object$LWS ? undefined : object$LWS[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS];
|
|
10144
|
+
}
|
|
10145
|
+
return undefined;
|
|
10146
|
+
}
|
|
10147
|
+
function isNearMembraneProxy$LWS(value$LWS) {
|
|
10148
|
+
if (typeof value$LWS === 'object' && value$LWS !== null || typeof value$LWS === 'function') {
|
|
10149
|
+
// To extract the flag value of a blue near-membrane proxy we must
|
|
10150
|
+
// perform a two step handshake. First, we trigger the "has" trap for
|
|
10151
|
+
// the `LOCKER_NEAR_MEMBRANE_SYMBOL` property which must report `false`.
|
|
10152
|
+
// Second, we trigger the "get" trap to return the flag value.
|
|
10153
|
+
return !(LOCKER_NEAR_MEMBRANE_SYMBOL$LWS in value$LWS) && value$LWS[LOCKER_NEAR_MEMBRANE_SYMBOL$LWS] === true;
|
|
10154
|
+
}
|
|
10155
|
+
return false;
|
|
10156
|
+
}
|
|
10056
10157
|
toSafeMap$LWS(new MapCtor$LWS());
|
|
10057
10158
|
const ErrorCtor$LWS = Error;
|
|
10058
10159
|
const TypeErrorCtor$LWS = TypeError;
|
|
10059
|
-
function noop$LWS() {
|
|
10060
|
-
|
|
10160
|
+
function noop$LWS() {
|
|
10161
|
+
// No operation performed.
|
|
10162
|
+
}
|
|
10061
10163
|
|
|
10164
|
+
// Used by '@locker/near-membrane-dom'.
|
|
10165
|
+
const {
|
|
10166
|
+
min: MathMin$LWS
|
|
10167
|
+
} = Math;
|
|
10062
10168
|
const rootWindow$LWS = window;
|
|
10063
10169
|
const {
|
|
10064
10170
|
// We don't cherry-pick the 'userAgent' property from `navigator` here
|
|
@@ -10067,13 +10173,13 @@ const {
|
|
|
10067
10173
|
navigator: {
|
|
10068
10174
|
userAgentData: userAgentData$LWS
|
|
10069
10175
|
}
|
|
10070
|
-
} = rootWindow$LWS;
|
|
10176
|
+
} = rootWindow$LWS;
|
|
10177
|
+
// The user-agent client hints API is experimental and subject to change.
|
|
10071
10178
|
// https://caniuse.com/mdn-api_navigator_useragentdata
|
|
10072
10179
|
// istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator
|
|
10073
|
-
|
|
10074
|
-
|
|
10180
|
+
const brands$LWS = userAgentData$LWS == null ? void 0 : userAgentData$LWS.brands;
|
|
10181
|
+
// Note: Chromium identifies itself as Chrome in its user-agent string.
|
|
10075
10182
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent
|
|
10076
|
-
|
|
10077
10183
|
const chromiumUserAgentRegExp$LWS = / (?:Headless)?Chrome\/\d+/;
|
|
10078
10184
|
let userAgent$LWS;
|
|
10079
10185
|
function getUserAgent$LWS() {
|
|
@@ -10107,10 +10213,11 @@ const {
|
|
|
10107
10213
|
createElement: DocumentProtoCreateElement$LWS,
|
|
10108
10214
|
open: DocumentProtoOpen$LWS
|
|
10109
10215
|
} = DocumentProto$LWS;
|
|
10110
|
-
const DocumentProtoBodyGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'body');
|
|
10216
|
+
const DocumentProtoBodyGetter$LWS = ObjectLookupOwnGetter$LWS(DocumentProto$LWS, 'body');
|
|
10217
|
+
|
|
10218
|
+
// The DOMException constructor was exposed in Edge 12 but wasn't invocable
|
|
10111
10219
|
// until Edge 79. As long as this is used for instanceof checks it should be fine.
|
|
10112
10220
|
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException#browser_compatibility
|
|
10113
|
-
|
|
10114
10221
|
const DOMExceptionCtor$LWS = DOMException;
|
|
10115
10222
|
ObjectLookupOwnGetter$LWS(DOMExceptionCtor$LWS.prototype, 'code');
|
|
10116
10223
|
const {
|
|
@@ -10127,6 +10234,272 @@ const {
|
|
|
10127
10234
|
} = NodeProto$LWS;
|
|
10128
10235
|
const NodeProtoLastChildGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'lastChild');
|
|
10129
10236
|
|
|
10237
|
+
// This package is bundled by third-parties that have their own build time
|
|
10238
|
+
// replacement logic. Instead of customizing each build system to be aware
|
|
10239
|
+
// of this package we implement a two phase debug mode by performing small
|
|
10240
|
+
// runtime checks to determine phase one, our code is unminified, and
|
|
10241
|
+
// phase two, the user opted-in to custom devtools formatters. Phase one
|
|
10242
|
+
// is used for light weight initialization time debug while phase two is
|
|
10243
|
+
// reserved for post initialization runtime.
|
|
10244
|
+
// istanbul ignore else: not avoidable via tests
|
|
10245
|
+
if (LOCKER_UNMINIFIED_FLAG$LWS) {
|
|
10246
|
+
// We passed the phase one gate so we know our code is unminified and we can
|
|
10247
|
+
// install Locker's custom devtools formatter.
|
|
10248
|
+
let lockerDebugModeSymbolFlag$LWS = true;
|
|
10249
|
+
const LOCKER_DEBUG_MODE_SYMBOL$LWS = SymbolFor$LWS('@@lockerDebugMode');
|
|
10250
|
+
const MAX_ARRAY_DISPLAY$LWS = 100;
|
|
10251
|
+
const MAX_OBJECT_DISPLAY$LWS = 5;
|
|
10252
|
+
const MAX_STRING_DISPLAY$LWS = 100;
|
|
10253
|
+
const MID_STRING_DISPLAY$LWS = MAX_STRING_DISPLAY$LWS / 2;
|
|
10254
|
+
const headerCSSText$LWS = 'display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;';
|
|
10255
|
+
const bodyItemStyleObject$LWS = {
|
|
10256
|
+
style: 'margin-left:15px; margin-bottom: 3px;'
|
|
10257
|
+
};
|
|
10258
|
+
const bodyStyleObject$LWS = {
|
|
10259
|
+
style: 'display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;'
|
|
10260
|
+
};
|
|
10261
|
+
const keyEnumerableStringStyleObject$LWS = {
|
|
10262
|
+
style: 'color: #9d288c; font-weight: bold'
|
|
10263
|
+
};
|
|
10264
|
+
const keyNonEnumerableOrSymbolStyleObject$LWS = {
|
|
10265
|
+
style: 'color: #b17ab0'
|
|
10266
|
+
};
|
|
10267
|
+
const primitiveBlueColorStyleObject$LWS = {
|
|
10268
|
+
style: 'color: #16239f'
|
|
10269
|
+
};
|
|
10270
|
+
const primitiveGreenColorStyleObject$LWS = {
|
|
10271
|
+
style: 'color: #236d25'
|
|
10272
|
+
};
|
|
10273
|
+
const primitiveGreyColorStyleObject$LWS = {
|
|
10274
|
+
style: 'color: #606367'
|
|
10275
|
+
};
|
|
10276
|
+
const primitiveOrangeColorStyleObject$LWS = {
|
|
10277
|
+
style: 'color: #b82619'
|
|
10278
|
+
};
|
|
10279
|
+
// istanbul ignore next: currently unreachable via tests
|
|
10280
|
+
const formatValue$LWS = function formatValue$LWS(value$LWS) {
|
|
10281
|
+
if (value$LWS === null || value$LWS === undefined) {
|
|
10282
|
+
return ['span', primitiveGreyColorStyleObject$LWS, `${value$LWS}`];
|
|
10283
|
+
}
|
|
10284
|
+
if (typeof value$LWS === 'boolean') {
|
|
10285
|
+
return ['span', primitiveBlueColorStyleObject$LWS, value$LWS];
|
|
10286
|
+
}
|
|
10287
|
+
if (typeof value$LWS === 'number') {
|
|
10288
|
+
return NumberIsFinite$LWS(value$LWS) ? ['span', primitiveBlueColorStyleObject$LWS, value$LWS] : ['span', primitiveBlueColorStyleObject$LWS, `${value$LWS >= 0 ? '' : '-'}Infinity`];
|
|
10289
|
+
}
|
|
10290
|
+
if (typeof value$LWS === 'bigint') {
|
|
10291
|
+
return ['span', primitiveGreenColorStyleObject$LWS, `${value$LWS}n`];
|
|
10292
|
+
}
|
|
10293
|
+
if (typeof value$LWS === 'string') {
|
|
10294
|
+
let string$LWS = value$LWS;
|
|
10295
|
+
const {
|
|
10296
|
+
length: length$LWS
|
|
10297
|
+
} = string$LWS;
|
|
10298
|
+
if (length$LWS > MAX_STRING_DISPLAY$LWS) {
|
|
10299
|
+
const firstChunk$LWS = ReflectApply$LWS(StringProtoSlice$LWS, string$LWS, [0, MID_STRING_DISPLAY$LWS]);
|
|
10300
|
+
const lastChunk$LWS = ReflectApply$LWS(StringProtoSlice$LWS, string$LWS, [length$LWS - MID_STRING_DISPLAY$LWS - 1, length$LWS]);
|
|
10301
|
+
string$LWS = firstChunk$LWS + CHAR_ELLIPSIS$LWS + lastChunk$LWS;
|
|
10302
|
+
}
|
|
10303
|
+
// @TODO: Default to using single quotes on main header and double
|
|
10304
|
+
// quotes on body.
|
|
10305
|
+
return ['span', primitiveOrangeColorStyleObject$LWS, JSONStringify$LWS(string$LWS)];
|
|
10306
|
+
}
|
|
10307
|
+
if (ArrayIsArray$LWS(value$LWS)) {
|
|
10308
|
+
return ['span', {}, `Array(${value$LWS.length})`];
|
|
10309
|
+
}
|
|
10310
|
+
if (isObject$LWS(value$LWS)) {
|
|
10311
|
+
return ['span', {}, `{${CHAR_ELLIPSIS$LWS}}`];
|
|
10312
|
+
}
|
|
10313
|
+
// Symbol will be coerced to a string.
|
|
10314
|
+
return ['span', primitiveOrangeColorStyleObject$LWS, StringCtor$LWS(value$LWS)];
|
|
10315
|
+
};
|
|
10316
|
+
// istanbul ignore next: currently unreachable via tests
|
|
10317
|
+
const formatHeader$LWS = function formatHeader$LWS(object$LWS, config$LWS) {
|
|
10318
|
+
const isChildElement$LWS = config$LWS == null ? void 0 : config$LWS.isChildElement;
|
|
10319
|
+
const formattedHeader$LWS = [];
|
|
10320
|
+
let formattedHeaderOffset$LWS = 0;
|
|
10321
|
+
if (isChildElement$LWS) {
|
|
10322
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', keyEnumerableStringStyleObject$LWS, config$LWS.childKey];
|
|
10323
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, ': '];
|
|
10324
|
+
}
|
|
10325
|
+
const brand$LWS = ReflectApply$LWS(ObjectProtoToString$LWS, object$LWS, []);
|
|
10326
|
+
let keys$LWS = ObjectKeys$LWS(object$LWS);
|
|
10327
|
+
if (brand$LWS === TO_STRING_BRAND_SYMBOL$LWS) {
|
|
10328
|
+
if (!ReflectApply$LWS(ArrayProtoIncludes$LWS, keys$LWS, ['description'])) {
|
|
10329
|
+
ReflectApply$LWS(ArrayProtoUnshift$LWS, keys$LWS, ['description']);
|
|
10330
|
+
}
|
|
10331
|
+
} else if (brand$LWS === TO_STRING_BRAND_STRING$LWS) {
|
|
10332
|
+
const {
|
|
10333
|
+
length: length$LWS
|
|
10334
|
+
} = object$LWS;
|
|
10335
|
+
keys$LWS = ReflectApply$LWS(ArrayProtoFilter$LWS, keys$LWS, [key$LWS => {
|
|
10336
|
+
const possibleIndex$LWS = typeof key$LWS === 'string' ? +key$LWS : -1;
|
|
10337
|
+
return possibleIndex$LWS < 0 || possibleIndex$LWS >= length$LWS || !NumberIsInteger$LWS(possibleIndex$LWS);
|
|
10338
|
+
}]);
|
|
10339
|
+
}
|
|
10340
|
+
const ownKeysRaw$LWS = ReflectOwnKeys$LWS(object$LWS);
|
|
10341
|
+
const ownKeys$LWS = ReflectApply$LWS(ArrayProtoMap$LWS, ownKeysRaw$LWS, [StringCtor$LWS]);
|
|
10342
|
+
const {
|
|
10343
|
+
length: ownKeysLength$LWS
|
|
10344
|
+
} = ownKeys$LWS;
|
|
10345
|
+
if (ArrayIsArray$LWS(object$LWS)) {
|
|
10346
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, `(${object$LWS.length}) [`];
|
|
10347
|
+
for (let i$LWS = 0, length$LWS = MathMin$LWS(ownKeysLength$LWS, MAX_ARRAY_DISPLAY$LWS); i$LWS < length$LWS; i$LWS += 1) {
|
|
10348
|
+
const ownKeyRaw$LWS = ownKeysRaw$LWS[i$LWS];
|
|
10349
|
+
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
10350
|
+
const value$LWS = object$LWS[ownKeyRaw$LWS];
|
|
10351
|
+
if (ownKey$LWS !== 'length') {
|
|
10352
|
+
if (!NumberIsNaN$LWS(NumberCtor$LWS(ownKey$LWS))) {
|
|
10353
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, i$LWS ? ', ' : ''];
|
|
10354
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = formatValue$LWS(value$LWS);
|
|
10355
|
+
} else {
|
|
10356
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, i$LWS ? ', ' : ''];
|
|
10357
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', primitiveGreyColorStyleObject$LWS, StringCtor$LWS(ownKey$LWS)];
|
|
10358
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, ': '];
|
|
10359
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = formatValue$LWS(value$LWS);
|
|
10360
|
+
}
|
|
10361
|
+
}
|
|
10362
|
+
}
|
|
10363
|
+
if (ownKeysLength$LWS > MAX_ARRAY_DISPLAY$LWS) {
|
|
10364
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', null, ['span', {}, `, ${CHAR_ELLIPSIS$LWS}`]];
|
|
10365
|
+
}
|
|
10366
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, ']'];
|
|
10367
|
+
return formattedHeader$LWS;
|
|
10368
|
+
}
|
|
10369
|
+
let boxedHeaderEntry$LWS;
|
|
10370
|
+
let headerOpening$LWS = '{';
|
|
10371
|
+
// eslint-disable-next-line default-case
|
|
10372
|
+
switch (brand$LWS) {
|
|
10373
|
+
case TO_STRING_BRAND_BIG_INT$LWS:
|
|
10374
|
+
case TO_STRING_BRAND_BOOLEAN$LWS:
|
|
10375
|
+
case TO_STRING_BRAND_NUMBER$LWS:
|
|
10376
|
+
case TO_STRING_BRAND_STRING$LWS:
|
|
10377
|
+
case TO_STRING_BRAND_SYMBOL$LWS:
|
|
10378
|
+
{
|
|
10379
|
+
let colorStyleObject$LWS = primitiveBlueColorStyleObject$LWS;
|
|
10380
|
+
if (brand$LWS === TO_STRING_BRAND_BIG_INT$LWS) {
|
|
10381
|
+
colorStyleObject$LWS = primitiveGreenColorStyleObject$LWS;
|
|
10382
|
+
} else if (brand$LWS === TO_STRING_BRAND_SYMBOL$LWS) {
|
|
10383
|
+
colorStyleObject$LWS = primitiveOrangeColorStyleObject$LWS;
|
|
10384
|
+
}
|
|
10385
|
+
headerOpening$LWS = `${ReflectApply$LWS(StringProtoSlice$LWS, brand$LWS, [8, -1])} {`;
|
|
10386
|
+
boxedHeaderEntry$LWS = ['span', colorStyleObject$LWS, `${StringCtor$LWS(getNearMembraneProxySerializedValue$LWS(object$LWS))}`];
|
|
10387
|
+
break;
|
|
10388
|
+
}
|
|
10389
|
+
}
|
|
10390
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, headerOpening$LWS];
|
|
10391
|
+
if (boxedHeaderEntry$LWS) {
|
|
10392
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = boxedHeaderEntry$LWS;
|
|
10393
|
+
if (ownKeysLength$LWS) {
|
|
10394
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, ', '];
|
|
10395
|
+
}
|
|
10396
|
+
}
|
|
10397
|
+
for (let i$LWS = 0, length$LWS = MathMin$LWS(ownKeysLength$LWS, MAX_OBJECT_DISPLAY$LWS); i$LWS < length$LWS; i$LWS += 1) {
|
|
10398
|
+
const ownKeyRaw$LWS = ownKeysRaw$LWS[i$LWS];
|
|
10399
|
+
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
10400
|
+
const value$LWS = object$LWS[ownKeyRaw$LWS];
|
|
10401
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, i$LWS ? ', ' : ''];
|
|
10402
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', primitiveGreyColorStyleObject$LWS, ownKey$LWS];
|
|
10403
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, ': '];
|
|
10404
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = formatValue$LWS(value$LWS);
|
|
10405
|
+
}
|
|
10406
|
+
if (ownKeysLength$LWS > MAX_OBJECT_DISPLAY$LWS) {
|
|
10407
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', null, ['span', {}, `, ${CHAR_ELLIPSIS$LWS}`]];
|
|
10408
|
+
}
|
|
10409
|
+
formattedHeader$LWS[formattedHeaderOffset$LWS++] = ['span', {}, '}'];
|
|
10410
|
+
return formattedHeader$LWS;
|
|
10411
|
+
};
|
|
10412
|
+
// istanbul ignore next: currently unreachable via tests
|
|
10413
|
+
const formatBody$LWS = function formatBody$LWS(object$LWS) {
|
|
10414
|
+
// @TODO: Arrays are broken into groups of 100.
|
|
10415
|
+
const ownKeysRaw$LWS = ReflectOwnKeys$LWS(object$LWS);
|
|
10416
|
+
const ownKeys$LWS = ReflectApply$LWS(ArrayProtoMap$LWS, ownKeysRaw$LWS, [StringCtor$LWS]);
|
|
10417
|
+
// Put 'length' at the end of array.
|
|
10418
|
+
const isArray$LWS = ArrayIsArray$LWS(object$LWS);
|
|
10419
|
+
if (isArray$LWS) {
|
|
10420
|
+
const lengthIndex$LWS = ReflectApply$LWS(ArrayProtoIndexOf$LWS, ownKeys$LWS, ['length']);
|
|
10421
|
+
const lengthKeyRaw$LWS = ReflectApply$LWS(ArrayProtoSplice$LWS, ownKeysRaw$LWS, [lengthIndex$LWS, 1])[0];
|
|
10422
|
+
ReflectApply$LWS(ArrayProtoPush$LWS, ownKeysRaw$LWS, [lengthKeyRaw$LWS]);
|
|
10423
|
+
const lengthKey$LWS = ReflectApply$LWS(ArrayProtoSplice$LWS, ownKeys$LWS, [lengthIndex$LWS, 1])[0];
|
|
10424
|
+
ReflectApply$LWS(ArrayProtoPush$LWS, ownKeys$LWS, [lengthKey$LWS]);
|
|
10425
|
+
}
|
|
10426
|
+
const formattedBody$LWS = [];
|
|
10427
|
+
let formattedBodyOffset$LWS = 0;
|
|
10428
|
+
for (let i$LWS = 0, {
|
|
10429
|
+
length: length$LWS
|
|
10430
|
+
} = ownKeys$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
10431
|
+
const ownKeyRaw$LWS = ownKeysRaw$LWS[i$LWS];
|
|
10432
|
+
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
10433
|
+
const value$LWS = object$LWS[ownKeyRaw$LWS];
|
|
10434
|
+
if (isObject$LWS(value$LWS)) {
|
|
10435
|
+
formattedBody$LWS[formattedBodyOffset$LWS++] = ['div', {}, ['object', {
|
|
10436
|
+
object: value$LWS,
|
|
10437
|
+
config: {
|
|
10438
|
+
childKey: StringCtor$LWS(ownKey$LWS),
|
|
10439
|
+
isChildElement: true
|
|
10440
|
+
}
|
|
10441
|
+
}]];
|
|
10442
|
+
} else {
|
|
10443
|
+
let currentKeyStyle$LWS = keyEnumerableStringStyleObject$LWS;
|
|
10444
|
+
if (isArray$LWS && ownKey$LWS === 'length') {
|
|
10445
|
+
currentKeyStyle$LWS = keyNonEnumerableOrSymbolStyleObject$LWS;
|
|
10446
|
+
}
|
|
10447
|
+
formattedBody$LWS[formattedBodyOffset$LWS++] = ['div', bodyItemStyleObject$LWS, ['span', currentKeyStyle$LWS, ownKey$LWS], ['span', {}, ': '], formatValue$LWS(value$LWS)];
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
return formattedBody$LWS;
|
|
10451
|
+
};
|
|
10452
|
+
let {
|
|
10453
|
+
devtoolsFormatters: devtoolsFormatters$LWS
|
|
10454
|
+
} = rootWindow$LWS;
|
|
10455
|
+
if (!ArrayIsArray$LWS(devtoolsFormatters$LWS)) {
|
|
10456
|
+
devtoolsFormatters$LWS = [];
|
|
10457
|
+
ReflectDefineProperty$LWS(rootWindow$LWS, 'devtoolsFormatters', {
|
|
10458
|
+
__proto__: null,
|
|
10459
|
+
configurable: true,
|
|
10460
|
+
value: devtoolsFormatters$LWS,
|
|
10461
|
+
writable: true
|
|
10462
|
+
});
|
|
10463
|
+
}
|
|
10464
|
+
// Append our custom formatter to the array of devtools formatters.
|
|
10465
|
+
// istanbul ignore next: currently unreachable via tests
|
|
10466
|
+
devtoolsFormatters$LWS[devtoolsFormatters$LWS.length] = {
|
|
10467
|
+
// istanbul ignore next: currently unreachable via tests
|
|
10468
|
+
header(object$LWS, config$LWS) {
|
|
10469
|
+
if (lockerDebugModeSymbolFlag$LWS) {
|
|
10470
|
+
// We passed the second phase gate so we know that the user has
|
|
10471
|
+
// opted-in to custom devtools formatters. Close the gate and
|
|
10472
|
+
// define the @@lockerDebugMode symbol on window.
|
|
10473
|
+
lockerDebugModeSymbolFlag$LWS = false;
|
|
10474
|
+
ReflectDefineProperty$LWS(rootWindow$LWS, LOCKER_DEBUG_MODE_SYMBOL$LWS, {
|
|
10475
|
+
__proto__: null,
|
|
10476
|
+
configurable: true,
|
|
10477
|
+
value: true,
|
|
10478
|
+
writable: true
|
|
10479
|
+
});
|
|
10480
|
+
}
|
|
10481
|
+
if (!isNearMembraneProxy$LWS(object$LWS)) {
|
|
10482
|
+
return null;
|
|
10483
|
+
}
|
|
10484
|
+
const headerDiv$LWS = ['div', {
|
|
10485
|
+
style: `${headerCSSText$LWS}${config$LWS != null && config$LWS.isChildElement ? '' : 'font-style: italic;'}`
|
|
10486
|
+
}];
|
|
10487
|
+
ReflectApply$LWS(ArrayProtoPush$LWS, headerDiv$LWS, formatHeader$LWS(object$LWS, config$LWS));
|
|
10488
|
+
return ['div', {}, headerDiv$LWS];
|
|
10489
|
+
},
|
|
10490
|
+
// istanbul ignore next: currently unreachable via tests
|
|
10491
|
+
hasBody() {
|
|
10492
|
+
return true;
|
|
10493
|
+
},
|
|
10494
|
+
// istanbul ignore next: currently unreachable via tests
|
|
10495
|
+
body(object$LWS) {
|
|
10496
|
+
const bodyDiv$LWS = ['div', bodyStyleObject$LWS];
|
|
10497
|
+
ReflectApply$LWS(ArrayProtoPush$LWS, bodyDiv$LWS, formatBody$LWS(object$LWS));
|
|
10498
|
+
return bodyDiv$LWS;
|
|
10499
|
+
}
|
|
10500
|
+
};
|
|
10501
|
+
}
|
|
10502
|
+
|
|
10130
10503
|
/**
|
|
10131
10504
|
* This file contains an exportable (portable) function `init()` used to initialize
|
|
10132
10505
|
* one side of a membrane on any realm. The only prerequisite is the ability to
|
|
@@ -10151,12 +10524,10 @@ const NodeProtoLastChildGetter$LWS = ObjectLookupOwnGetter$LWS(NodeProto$LWS, 'l
|
|
|
10151
10524
|
* argument of the foreign callable for proxies, and the other side can use
|
|
10152
10525
|
* it via `selectedTarget!`.
|
|
10153
10526
|
*/
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10527
|
+
const proxyTargetToLazyPropertyDescriptorStateMap$LWS = toSafeWeakMap$LWS(new WeakMapCtor$LWS());
|
|
10528
|
+
// istanbul ignore next
|
|
10157
10529
|
function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
10158
10530
|
var _ref$LWS, _ref2$LWS, _ReflectApply$LWS, _globalThisRef$BigInt$LWS, _globalThisRef$BigUin$LWS;
|
|
10159
|
-
|
|
10160
10531
|
/* eslint-disable prefer-object-spread */
|
|
10161
10532
|
const ArrayCtor$LWS = Array;
|
|
10162
10533
|
const ArrayBufferCtor$LWS = ArrayBuffer;
|
|
@@ -10168,8 +10539,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10168
10539
|
const RegExpCtor$LWS = RegExp;
|
|
10169
10540
|
const StringCtor$LWS = String;
|
|
10170
10541
|
const SymbolCtor$LWS = Symbol;
|
|
10171
|
-
const TypeErrorCtor$LWS = TypeError;
|
|
10172
|
-
|
|
10542
|
+
const TypeErrorCtor$LWS = TypeError;
|
|
10543
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow, no-shadow
|
|
10173
10544
|
const WeakMapCtor$LWS = WeakMap;
|
|
10174
10545
|
const WeakSetCtor$LWS = WeakSet;
|
|
10175
10546
|
const {
|
|
@@ -10232,10 +10603,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10232
10603
|
__proto__: null,
|
|
10233
10604
|
configurable: true,
|
|
10234
10605
|
get() {
|
|
10235
|
-
ReflectDeleteProperty$LWS(ObjectProto$LWS, 'globalThis');
|
|
10606
|
+
ReflectDeleteProperty$LWS(ObjectProto$LWS, 'globalThis');
|
|
10607
|
+
// Safari 12 on iOS 12.1 has a `this` of `undefined` so we
|
|
10236
10608
|
// fallback to `self`.
|
|
10237
10609
|
// eslint-disable-next-line no-restricted-globals
|
|
10238
|
-
|
|
10239
10610
|
return this != null ? this : self;
|
|
10240
10611
|
}
|
|
10241
10612
|
}), globalThis);
|
|
@@ -10245,10 +10616,11 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10245
10616
|
const LOCKER_IDENTIFIER_MARKER$LWS = '$LWS';
|
|
10246
10617
|
const LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS = IS_NOT_IN_SHADOW_REALM$LWS ? SymbolFor$LWS('@@lockerNearMembraneSerializedValue') : undefined;
|
|
10247
10618
|
const LOCKER_NEAR_MEMBRANE_SYMBOL$LWS = IS_NOT_IN_SHADOW_REALM$LWS ? SymbolFor$LWS('@@lockerNearMembrane') : undefined;
|
|
10248
|
-
const LOCKER_NEAR_MEMBRANE_UNDEFINED_VALUE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembraneUndefinedValue');
|
|
10619
|
+
const LOCKER_NEAR_MEMBRANE_UNDEFINED_VALUE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembraneUndefinedValue');
|
|
10620
|
+
// The default stack trace limit in Chrome is 10.
|
|
10249
10621
|
// Set to 20 to account for stack trace filtering.
|
|
10250
|
-
|
|
10251
|
-
|
|
10622
|
+
const LOCKER_STACK_TRACE_LIMIT$LWS = 20;
|
|
10623
|
+
// This package is bundled by third-parties that have their own build time
|
|
10252
10624
|
// replacement logic. Instead of customizing each build system to be aware
|
|
10253
10625
|
// of this package we implement a two phase debug mode by performing small
|
|
10254
10626
|
// runtime checks to determine phase one, our code is unminified, and
|
|
@@ -10256,18 +10628,17 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10256
10628
|
// is used for light weight initialization time debug while phase two is
|
|
10257
10629
|
// reserved for post initialization runtime.
|
|
10258
10630
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10259
|
-
|
|
10260
10631
|
const LOCKER_UNMINIFIED_FLAG$LWS = `${function LOCKER_UNMINIFIED_FLAG$LWS() {
|
|
10261
10632
|
return LOCKER_UNMINIFIED_FLAG$LWS.name;
|
|
10262
|
-
}()}`.includes('LOCKER_UNMINIFIED_FLAG');
|
|
10263
|
-
|
|
10633
|
+
}()}`.includes('LOCKER_UNMINIFIED_FLAG');
|
|
10634
|
+
// Indicate whether debug support is available.
|
|
10264
10635
|
const LOCKER_DEBUGGABLE_FLAG$LWS = LOCKER_UNMINIFIED_FLAG$LWS && IS_NOT_IN_SHADOW_REALM$LWS;
|
|
10265
|
-
const ERR_ILLEGAL_PROPERTY_ACCESS$LWS = 'Illegal property access.';
|
|
10636
|
+
const ERR_ILLEGAL_PROPERTY_ACCESS$LWS = 'Illegal property access.';
|
|
10637
|
+
// BigInt is not supported in Safari 13.1.
|
|
10266
10638
|
// https://caniuse.com/bigint
|
|
10267
|
-
|
|
10268
|
-
|
|
10639
|
+
const FLAGS_REG_EXP$LWS = IS_IN_SHADOW_REALM$LWS ? /\w*$/ : undefined;
|
|
10640
|
+
// Minification safe references to the private `BoundaryProxyHandler`
|
|
10269
10641
|
// 'apply' and 'construct' trap variant's property names.
|
|
10270
|
-
|
|
10271
10642
|
let MINIFICATION_SAFE_TRAP_PROPERTY_NAMES$LWS;
|
|
10272
10643
|
const SUPPORTS_BIG_INT$LWS = typeof BigInt === 'function';
|
|
10273
10644
|
const {
|
|
@@ -10311,9 +10682,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10311
10682
|
exec: RegExpProtoExec$LWS,
|
|
10312
10683
|
test: RegExpProtoTest$LWS,
|
|
10313
10684
|
toString: RegExProtoToString$LWS
|
|
10314
|
-
} = RegExpProto$LWS;
|
|
10685
|
+
} = RegExpProto$LWS;
|
|
10686
|
+
// Edge 15 does not support RegExp.prototype.flags.
|
|
10315
10687
|
// https://caniuse.com/mdn-javascript_builtins_regexp_flags
|
|
10316
|
-
|
|
10317
10688
|
const RegExpProtoFlagsGetter$LWS = IS_IN_SHADOW_REALM$LWS ? (_ReflectApply$LWS = ReflectApply$LWS(ObjectProtoLookupGetter$LWS, RegExpProto$LWS, ['flags'])) != null ? _ReflectApply$LWS : function flags$LWS() {
|
|
10318
10689
|
const string$LWS = ReflectApply$LWS(RegExProtoToString$LWS, this, []);
|
|
10319
10690
|
return ReflectApply$LWS(RegExpProtoExec$LWS, FLAGS_REG_EXP$LWS, [string$LWS])[0];
|
|
@@ -10353,8 +10724,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10353
10724
|
} = Uint16Array;
|
|
10354
10725
|
const {
|
|
10355
10726
|
prototype: Uint32ArrayProto$LWS
|
|
10356
|
-
} = Uint32Array;
|
|
10357
|
-
|
|
10727
|
+
} = Uint32Array;
|
|
10728
|
+
// eslint-disable-next-line no-proto
|
|
10358
10729
|
const TypedArrayProto$LWS = Uint8ArrayProto$LWS.__proto__;
|
|
10359
10730
|
const TypedArrayProtoLengthGetter$LWS = ReflectApply$LWS(ObjectProtoLookupGetter$LWS, TypedArrayProto$LWS, ['length']);
|
|
10360
10731
|
const {
|
|
@@ -10377,8 +10748,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10377
10748
|
} = WeakSetProto$LWS;
|
|
10378
10749
|
const consoleObject$LWS = IS_NOT_IN_SHADOW_REALM$LWS && typeof console === 'object' && console !== null ? console : undefined;
|
|
10379
10750
|
const consoleInfo$LWS = consoleObject$LWS == null ? void 0 : consoleObject$LWS.info;
|
|
10380
|
-
const localEval$LWS = IS_IN_SHADOW_REALM$LWS ? eval : undefined;
|
|
10381
|
-
|
|
10751
|
+
const localEval$LWS = IS_IN_SHADOW_REALM$LWS ? eval : undefined;
|
|
10752
|
+
// Install flags to ensure things are installed once per realm.
|
|
10382
10753
|
let installedErrorPrepareStackTraceFlag$LWS = false;
|
|
10383
10754
|
let installedPropertyDescriptorMethodWrappersFlag$LWS = false;
|
|
10384
10755
|
function alwaysFalse$LWS() {
|
|
@@ -10388,16 +10759,17 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10388
10759
|
if (installedErrorPrepareStackTraceFlag$LWS) {
|
|
10389
10760
|
return;
|
|
10390
10761
|
}
|
|
10391
|
-
installedErrorPrepareStackTraceFlag$LWS = true;
|
|
10762
|
+
installedErrorPrepareStackTraceFlag$LWS = true;
|
|
10763
|
+
// Feature detect the V8 stack trace API.
|
|
10392
10764
|
// https://v8.dev/docs/stack-trace-api
|
|
10393
|
-
|
|
10394
10765
|
const CallSite$LWS = (() => {
|
|
10395
10766
|
try {
|
|
10396
10767
|
var _callSites$$LWS;
|
|
10397
10768
|
ErrorCtor$LWS.prepareStackTrace = (_error$LWS, callSites) => callSites;
|
|
10398
10769
|
const callSites = new ErrorCtor$LWS().stack;
|
|
10399
10770
|
ReflectDeleteProperty$LWS(ErrorCtor$LWS, 'prepareStackTrace');
|
|
10400
|
-
return isArrayOrThrowForRevoked$LWS(callSites) && callSites.length > 0 ? (_callSites$$LWS = callSites[0]) == null ? void 0 : _callSites$$LWS.constructor : undefined;
|
|
10771
|
+
return isArrayOrThrowForRevoked$LWS(callSites) && callSites.length > 0 ? (_callSites$$LWS = callSites[0]) == null ? void 0 : _callSites$$LWS.constructor : undefined;
|
|
10772
|
+
// eslint-disable-next-line no-empty
|
|
10401
10773
|
} catch (_unused$LWS) {}
|
|
10402
10774
|
return undefined;
|
|
10403
10775
|
})();
|
|
@@ -10408,10 +10780,12 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10408
10780
|
getEvalOrigin: CallSiteProtoGetEvalOrigin$LWS,
|
|
10409
10781
|
getFunctionName: CallSiteProtoGetFunctionName$LWS,
|
|
10410
10782
|
toString: CallSiteProtoToString$LWS
|
|
10411
|
-
} = CallSite$LWS.prototype;
|
|
10412
|
-
|
|
10413
|
-
const lockerFunctionNameMarkerRegExp$LWS = new RegExpCtor$LWS(`${
|
|
10414
|
-
|
|
10783
|
+
} = CallSite$LWS.prototype;
|
|
10784
|
+
// A regexp to detect call sites containing LOCKER_IDENTIFIER_MARKER.
|
|
10785
|
+
const lockerFunctionNameMarkerRegExp$LWS = new RegExpCtor$LWS(`${
|
|
10786
|
+
// Escape regexp special characters in LOCKER_IDENTIFIER_MARKER.
|
|
10787
|
+
ReflectApply$LWS(StringProtoReplace$LWS, LOCKER_IDENTIFIER_MARKER$LWS, [/[\\^$.*+?()[\]{}|]/g, '\\$&'])
|
|
10788
|
+
// Function name references in call sites also contain
|
|
10415
10789
|
// the name of the class they belong to,
|
|
10416
10790
|
// e.g. myClassName.myFunctionName.
|
|
10417
10791
|
}(?=\\.|$)`);
|
|
@@ -10439,8 +10813,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10439
10813
|
if (typeof evalOrigin$LWS === 'string' && ReflectApply$LWS(RegExpProtoTest$LWS, lockerFunctionNameMarkerRegExp$LWS, [evalOrigin$LWS])) {
|
|
10440
10814
|
isMarked$LWS = true;
|
|
10441
10815
|
}
|
|
10442
|
-
}
|
|
10443
|
-
|
|
10816
|
+
}
|
|
10817
|
+
// Only write a single LWS entry per consecutive LWS stacks.
|
|
10444
10818
|
if (isMarked$LWS) {
|
|
10445
10819
|
if (!consecutive$LWS) {
|
|
10446
10820
|
consecutive$LWS = true;
|
|
@@ -10451,7 +10825,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10451
10825
|
consecutive$LWS = false;
|
|
10452
10826
|
}
|
|
10453
10827
|
try {
|
|
10454
|
-
stackTrace$LWS += `\n at ${ReflectApply$LWS(CallSiteProtoToString$LWS, callSite$LWS, [])}`;
|
|
10828
|
+
stackTrace$LWS += `\n at ${ReflectApply$LWS(CallSiteProtoToString$LWS, callSite$LWS, [])}`;
|
|
10829
|
+
// eslint-disable-next-line no-empty
|
|
10455
10830
|
} catch (_unused3$LWS) {}
|
|
10456
10831
|
}
|
|
10457
10832
|
return stackTrace$LWS;
|
|
@@ -10462,7 +10837,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10462
10837
|
// formatStackTrace().
|
|
10463
10838
|
ErrorCtor$LWS.prepareStackTrace = function prepareStackTrace(error, callSites) {
|
|
10464
10839
|
return formatStackTrace(error, callSites);
|
|
10465
|
-
};
|
|
10840
|
+
};
|
|
10841
|
+
// eslint-disable-next-line no-empty
|
|
10466
10842
|
} catch (_unused4$LWS) {}
|
|
10467
10843
|
try {
|
|
10468
10844
|
const {
|
|
@@ -10470,10 +10846,12 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10470
10846
|
} = ErrorCtor$LWS;
|
|
10471
10847
|
if (typeof stackTraceLimit$LWS !== 'number' || stackTraceLimit$LWS < LOCKER_STACK_TRACE_LIMIT$LWS) {
|
|
10472
10848
|
ErrorCtor$LWS.stackTraceLimit = LOCKER_STACK_TRACE_LIMIT$LWS;
|
|
10473
|
-
}
|
|
10849
|
+
}
|
|
10850
|
+
// eslint-disable-next-line no-empty
|
|
10474
10851
|
} catch (_unused5$LWS) {}
|
|
10475
10852
|
} : noop$LWS;
|
|
10476
|
-
function noop$LWS() {
|
|
10853
|
+
function noop$LWS() {
|
|
10854
|
+
// No-operation.
|
|
10477
10855
|
}
|
|
10478
10856
|
const serializeBigIntObject$LWS = IS_IN_SHADOW_REALM$LWS ? bigIntObject$LWS =>
|
|
10479
10857
|
// Section 21.2.3 Properties of the BigInt Prototype Object
|
|
@@ -10544,19 +10922,19 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10544
10922
|
// Symbol.prototype[@@toStringTag] is defined by default so
|
|
10545
10923
|
// must have been removed.
|
|
10546
10924
|
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
|
|
10547
|
-
return serializeSymbolObject$LWS(target$LWS);
|
|
10925
|
+
return serializeSymbolObject$LWS(target$LWS);
|
|
10926
|
+
// eslint-disable-next-line no-empty
|
|
10548
10927
|
} catch (_unused6$LWS) {}
|
|
10549
10928
|
if (SUPPORTS_BIG_INT$LWS) {
|
|
10550
10929
|
// BigInt.prototype[@@toStringTag] is defined by default so
|
|
10551
10930
|
// must have been removed.
|
|
10552
10931
|
// https://tc39.es/ecma262/#sec-bigint.prototype-@@tostringtag
|
|
10553
10932
|
try {
|
|
10554
|
-
return serializeBigIntObject$LWS(target$LWS);
|
|
10933
|
+
return serializeBigIntObject$LWS(target$LWS);
|
|
10934
|
+
// eslint-disable-next-line no-empty
|
|
10555
10935
|
} catch (_unused7$LWS) {}
|
|
10556
10936
|
}
|
|
10557
|
-
|
|
10558
10937
|
// eslint-disable-next-line no-fallthrough
|
|
10559
|
-
|
|
10560
10938
|
default:
|
|
10561
10939
|
return undefined;
|
|
10562
10940
|
}
|
|
@@ -10569,27 +10947,33 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10569
10947
|
// Symbol.prototype[@@toStringTag] is defined by default so
|
|
10570
10948
|
// attempted before others.
|
|
10571
10949
|
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
|
|
10572
|
-
return serializeSymbolObject$LWS(target$LWS);
|
|
10950
|
+
return serializeSymbolObject$LWS(target$LWS);
|
|
10951
|
+
// eslint-disable-next-line no-empty
|
|
10573
10952
|
} catch (_unused8$LWS) {}
|
|
10574
10953
|
if (SUPPORTS_BIG_INT$LWS) {
|
|
10575
10954
|
// BigInt.prototype[@@toStringTag] is defined by default so
|
|
10576
10955
|
// attempted before others.
|
|
10577
10956
|
// https://tc39.es/ecma262/#sec-bigint.prototype-@@tostringtag
|
|
10578
10957
|
try {
|
|
10579
|
-
return serializeBigIntObject$LWS(target$LWS);
|
|
10958
|
+
return serializeBigIntObject$LWS(target$LWS);
|
|
10959
|
+
// eslint-disable-next-line no-empty
|
|
10580
10960
|
} catch (_unused9$LWS) {}
|
|
10581
10961
|
}
|
|
10582
10962
|
try {
|
|
10583
|
-
return serializeBooleanObject$LWS(target$LWS);
|
|
10963
|
+
return serializeBooleanObject$LWS(target$LWS);
|
|
10964
|
+
// eslint-disable-next-line no-empty
|
|
10584
10965
|
} catch (_unused10$LWS) {}
|
|
10585
10966
|
try {
|
|
10586
|
-
return serializeNumberObject$LWS(target$LWS);
|
|
10967
|
+
return serializeNumberObject$LWS(target$LWS);
|
|
10968
|
+
// eslint-disable-next-line no-empty
|
|
10587
10969
|
} catch (_unused11$LWS) {}
|
|
10588
10970
|
try {
|
|
10589
|
-
return serializeRegExp$LWS(target$LWS);
|
|
10971
|
+
return serializeRegExp$LWS(target$LWS);
|
|
10972
|
+
// eslint-disable-next-line no-empty
|
|
10590
10973
|
} catch (_unused12$LWS) {}
|
|
10591
10974
|
try {
|
|
10592
|
-
return serializeStringObject$LWS(target$LWS);
|
|
10975
|
+
return serializeStringObject$LWS(target$LWS);
|
|
10976
|
+
// eslint-disable-next-line no-empty
|
|
10593
10977
|
} catch (_unused13$LWS) {}
|
|
10594
10978
|
return undefined;
|
|
10595
10979
|
} : noop$LWS;
|
|
@@ -10604,15 +10988,16 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10604
10988
|
}
|
|
10605
10989
|
if (typeof value$LWS === 'function') {
|
|
10606
10990
|
return ReflectApply$LWS(FunctionProtoToString$LWS, value$LWS, []);
|
|
10607
|
-
}
|
|
10991
|
+
}
|
|
10992
|
+
// Attempt to coerce `value` to a string with the String() constructor.
|
|
10608
10993
|
// Section 22.1.1.1 String ( value )
|
|
10609
10994
|
// https://tc39.es/ecma262/#sec-string-constructor-string-value
|
|
10610
|
-
|
|
10611
|
-
|
|
10995
|
+
return StringCtor$LWS(value$LWS);
|
|
10996
|
+
// eslint-disable-next-line no-empty
|
|
10612
10997
|
} catch (_unused14$LWS) {}
|
|
10613
10998
|
return '[Object Unknown]';
|
|
10614
|
-
}
|
|
10615
|
-
|
|
10999
|
+
}
|
|
11000
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow, no-shadow
|
|
10616
11001
|
function toSafeWeakMap$LWS(weakMap$LWS) {
|
|
10617
11002
|
ReflectSetPrototypeOf$LWS(weakMap$LWS, null);
|
|
10618
11003
|
weakMap$LWS.delete = WeakMapProtoDelete$LWS;
|
|
@@ -10637,17 +11022,12 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10637
11022
|
}
|
|
10638
11023
|
const {
|
|
10639
11024
|
distortionCallback: distortionCallback$LWS,
|
|
10640
|
-
instrumentation: instrumentation$LWS,
|
|
10641
11025
|
liveTargetCallback: liveTargetCallback$LWS,
|
|
10642
|
-
revokedProxyCallback: revokedProxyCallback$LWS
|
|
11026
|
+
revokedProxyCallback: revokedProxyCallback$LWS
|
|
11027
|
+
// eslint-disable-next-line prefer-object-spread
|
|
10643
11028
|
} = ObjectAssign$LWS({
|
|
10644
11029
|
__proto__: null
|
|
10645
11030
|
}, options$LWS);
|
|
10646
|
-
const LOCKER_INSTRUMENTATION_FLAG$LWS =
|
|
10647
|
-
// In the future we can preface the LOCKER_INSTRUMENTATION_FLAG
|
|
10648
|
-
// definition with a LOCKER_UNMINIFIED_FLAG check to have instrumentation
|
|
10649
|
-
// removed in minified production builds.
|
|
10650
|
-
IS_NOT_IN_SHADOW_REALM$LWS && typeof instrumentation$LWS === 'object' && instrumentation$LWS !== null;
|
|
10651
11031
|
const applyTrapNameRegistry$LWS = {
|
|
10652
11032
|
// Populated in the returned connector function below.
|
|
10653
11033
|
__proto__: null,
|
|
@@ -10670,7 +11050,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10670
11050
|
};
|
|
10671
11051
|
const lazyPropertyDescriptorStateCache$LWS = toSafeWeakMap$LWS(new WeakMapCtor$LWS());
|
|
10672
11052
|
const proxyPointerCache$LWS = toSafeWeakMap$LWS(new WeakMapCtor$LWS());
|
|
10673
|
-
const startActivity$LWS = LOCKER_INSTRUMENTATION_FLAG$LWS ? instrumentation$LWS.startActivity : undefined;
|
|
10674
11053
|
let foreignCallablePushErrorTarget$LWS;
|
|
10675
11054
|
let foreignCallablePushTarget$LWS;
|
|
10676
11055
|
let foreignCallableApply$LWS;
|
|
@@ -10713,9 +11092,7 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10713
11092
|
let foreignPointerUint16ArrayProto$LWS;
|
|
10714
11093
|
let foreignPointerUint32ArrayProto$LWS;
|
|
10715
11094
|
let selectedTarget$LWS;
|
|
10716
|
-
let lastProxyTrapCalled$LWS = 0
|
|
10717
|
-
/* ProxyHandlerTraps.None */;
|
|
10718
|
-
|
|
11095
|
+
let lastProxyTrapCalled$LWS = 0 /* ProxyHandlerTraps.None */;
|
|
10719
11096
|
let handshakePropertyFlag$LWS = false;
|
|
10720
11097
|
let useFastForeignTargetPath$LWS = IS_IN_SHADOW_REALM$LWS;
|
|
10721
11098
|
let useFastForeignTargetPathForTypedArrays$LWS = IS_IN_SHADOW_REALM$LWS;
|
|
@@ -10755,10 +11132,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10755
11132
|
fastForeignTargetPointers$LWS = toSafeWeakSet$LWS(new WeakSetCtor$LWS());
|
|
10756
11133
|
} : noop$LWS;
|
|
10757
11134
|
function copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(foreignTargetPointer$LWS, shadowTarget$LWS) {
|
|
10758
|
-
let activity$LWS;
|
|
10759
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10760
|
-
activity$LWS = startActivity$LWS('copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget');
|
|
10761
|
-
}
|
|
10762
11135
|
let protoPointerOrNull$LWS;
|
|
10763
11136
|
try {
|
|
10764
11137
|
protoPointerOrNull$LWS = foreignCallableBatchGetPrototypeOfAndGetOwnPropertyDescriptors$LWS(foreignTargetPointer$LWS, (...descriptorTuples$LWS) => {
|
|
@@ -10779,18 +11152,15 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10779
11152
|
// getterPointer
|
|
10780
11153
|
descriptorTuples$LWS[i$LWS + 6] // setterPointer
|
|
10781
11154
|
);
|
|
10782
|
-
}
|
|
11155
|
+
}
|
|
11156
|
+
// Use `ObjectDefineProperties()` instead of individual
|
|
10783
11157
|
// `ReflectDefineProperty()` calls for better performance.
|
|
10784
|
-
|
|
10785
11158
|
ObjectDefineProperties$LWS(shadowTarget$LWS, descriptors$LWS);
|
|
10786
11159
|
});
|
|
10787
11160
|
} catch (error) {
|
|
10788
11161
|
var _selectedTarget2$LWS;
|
|
10789
11162
|
const errorToThrow$LWS = (_selectedTarget2$LWS = selectedTarget$LWS) != null ? _selectedTarget2$LWS : error;
|
|
10790
11163
|
selectedTarget$LWS = undefined;
|
|
10791
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10792
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
10793
|
-
}
|
|
10794
11164
|
throw errorToThrow$LWS;
|
|
10795
11165
|
}
|
|
10796
11166
|
let proto$LWS;
|
|
@@ -10802,18 +11172,12 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10802
11172
|
proto$LWS = null;
|
|
10803
11173
|
}
|
|
10804
11174
|
ReflectSetPrototypeOf$LWS(shadowTarget$LWS, proto$LWS);
|
|
10805
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10806
|
-
activity$LWS.stop();
|
|
10807
|
-
}
|
|
10808
11175
|
}
|
|
10809
11176
|
function createApplyOrConstructTrapForZeroOrMoreArgs$LWS(proxyTrapEnum$LWS) {
|
|
10810
|
-
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1
|
|
10811
|
-
/* ProxyHandlerTraps.Apply */;
|
|
10812
|
-
|
|
10813
|
-
const activityName$LWS = `Reflect.${isApplyTrap$LWS ? 'apply' : 'construct'}()`;
|
|
11177
|
+
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1 /* ProxyHandlerTraps.Apply */;
|
|
10814
11178
|
const arityToApplyOrConstructTrapNameRegistry$LWS = isApplyTrap$LWS ? applyTrapNameRegistry$LWS : constructTrapNameRegistry$LWS;
|
|
10815
11179
|
const foreignCallableApplyOrConstruct$LWS = isApplyTrap$LWS ? foreignCallableApply$LWS : foreignCallableConstruct$LWS;
|
|
10816
|
-
return function applyOrConstructTrap$LWS(
|
|
11180
|
+
return function applyOrConstructTrap$LWS(_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS) {
|
|
10817
11181
|
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
10818
11182
|
const args$LWS = isApplyTrap$LWS ? argsOrNewTarget$LWS : thisArgOrArgs$LWS;
|
|
10819
11183
|
const {
|
|
@@ -10821,13 +11185,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10821
11185
|
} = args$LWS;
|
|
10822
11186
|
if (length$LWS !== 0) {
|
|
10823
11187
|
var _arityToApplyOrConstr$LWS;
|
|
10824
|
-
return this[(_arityToApplyOrConstr$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](
|
|
11188
|
+
return this[(_arityToApplyOrConstr$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS);
|
|
10825
11189
|
}
|
|
10826
|
-
|
|
10827
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10828
|
-
activity$LWS = startActivity$LWS(activityName$LWS);
|
|
10829
|
-
} // @ts-ignore: Prevent private property access error.
|
|
10830
|
-
|
|
11190
|
+
// @ts-ignore: Prevent private property access error.
|
|
10831
11191
|
const {
|
|
10832
11192
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
10833
11193
|
} = this;
|
|
@@ -10845,9 +11205,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10845
11205
|
var _selectedTarget3$LWS;
|
|
10846
11206
|
const errorToThrow$LWS = (_selectedTarget3$LWS = selectedTarget$LWS) != null ? _selectedTarget3$LWS : error;
|
|
10847
11207
|
selectedTarget$LWS = undefined;
|
|
10848
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10849
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
10850
|
-
}
|
|
10851
11208
|
throw errorToThrow$LWS;
|
|
10852
11209
|
}
|
|
10853
11210
|
let result$LWS;
|
|
@@ -10858,20 +11215,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10858
11215
|
} else {
|
|
10859
11216
|
result$LWS = pointerOrPrimitive$LWS;
|
|
10860
11217
|
}
|
|
10861
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10862
|
-
activity$LWS.stop();
|
|
10863
|
-
}
|
|
10864
11218
|
return result$LWS;
|
|
10865
11219
|
};
|
|
10866
11220
|
}
|
|
10867
11221
|
function createApplyOrConstructTrapForOneOrMoreArgs$LWS(proxyTrapEnum$LWS) {
|
|
10868
|
-
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1
|
|
10869
|
-
/* ProxyHandlerTraps.Apply */;
|
|
10870
|
-
|
|
10871
|
-
const activityName$LWS = `Reflect.${isApplyTrap$LWS ? 'apply' : 'construct'}(1)`;
|
|
11222
|
+
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1 /* ProxyHandlerTraps.Apply */;
|
|
10872
11223
|
const arityToApplyOrConstructTrapNameRegistry$LWS = isApplyTrap$LWS ? applyTrapNameRegistry$LWS : constructTrapNameRegistry$LWS;
|
|
10873
11224
|
const foreignCallableApplyOrConstruct$LWS = isApplyTrap$LWS ? foreignCallableApply$LWS : foreignCallableConstruct$LWS;
|
|
10874
|
-
return function applyOrConstructTrapForOneOrMoreArgs$LWS(
|
|
11225
|
+
return function applyOrConstructTrapForOneOrMoreArgs$LWS(_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS) {
|
|
10875
11226
|
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
10876
11227
|
const args$LWS = isApplyTrap$LWS ? argsOrNewTarget$LWS : thisArgOrArgs$LWS;
|
|
10877
11228
|
const {
|
|
@@ -10879,13 +11230,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10879
11230
|
} = args$LWS;
|
|
10880
11231
|
if (length$LWS !== 1) {
|
|
10881
11232
|
var _arityToApplyOrConstr2$LWS;
|
|
10882
|
-
return this[(_arityToApplyOrConstr2$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr2$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](
|
|
11233
|
+
return this[(_arityToApplyOrConstr2$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr2$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS);
|
|
10883
11234
|
}
|
|
10884
|
-
|
|
10885
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10886
|
-
activity$LWS = startActivity$LWS(activityName$LWS);
|
|
10887
|
-
} // @ts-ignore: Prevent private property access error.
|
|
10888
|
-
|
|
11235
|
+
// @ts-ignore: Prevent private property access error.
|
|
10889
11236
|
const {
|
|
10890
11237
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
10891
11238
|
} = this;
|
|
@@ -10912,9 +11259,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10912
11259
|
var _selectedTarget4$LWS;
|
|
10913
11260
|
const errorToThrow$LWS = (_selectedTarget4$LWS = selectedTarget$LWS) != null ? _selectedTarget4$LWS : error;
|
|
10914
11261
|
selectedTarget$LWS = undefined;
|
|
10915
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10916
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
10917
|
-
}
|
|
10918
11262
|
throw errorToThrow$LWS;
|
|
10919
11263
|
}
|
|
10920
11264
|
let result$LWS;
|
|
@@ -10925,20 +11269,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10925
11269
|
} else {
|
|
10926
11270
|
result$LWS = pointerOrPrimitive$LWS;
|
|
10927
11271
|
}
|
|
10928
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10929
|
-
activity$LWS.stop();
|
|
10930
|
-
}
|
|
10931
11272
|
return result$LWS;
|
|
10932
11273
|
};
|
|
10933
11274
|
}
|
|
10934
11275
|
function createApplyOrConstructTrapForTwoOrMoreArgs$LWS(proxyTrapEnum$LWS) {
|
|
10935
|
-
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1
|
|
10936
|
-
/* ProxyHandlerTraps.Apply */;
|
|
10937
|
-
|
|
10938
|
-
const activityName$LWS = `Reflect.${isApplyTrap$LWS ? 'apply' : 'construct'}(2)`;
|
|
11276
|
+
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1 /* ProxyHandlerTraps.Apply */;
|
|
10939
11277
|
const arityToApplyOrConstructTrapNameRegistry$LWS = isApplyTrap$LWS ? applyTrapNameRegistry$LWS : constructTrapNameRegistry$LWS;
|
|
10940
11278
|
const foreignCallableApplyOrConstruct$LWS = isApplyTrap$LWS ? foreignCallableApply$LWS : foreignCallableConstruct$LWS;
|
|
10941
|
-
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(
|
|
11279
|
+
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS) {
|
|
10942
11280
|
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
10943
11281
|
const args$LWS = isApplyTrap$LWS ? argsOrNewTarget$LWS : thisArgOrArgs$LWS;
|
|
10944
11282
|
const {
|
|
@@ -10946,13 +11284,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10946
11284
|
} = args$LWS;
|
|
10947
11285
|
if (length$LWS !== 2) {
|
|
10948
11286
|
var _arityToApplyOrConstr3$LWS;
|
|
10949
|
-
return this[(_arityToApplyOrConstr3$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr3$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](
|
|
11287
|
+
return this[(_arityToApplyOrConstr3$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr3$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS);
|
|
10950
11288
|
}
|
|
10951
|
-
|
|
10952
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10953
|
-
activity$LWS = startActivity$LWS(activityName$LWS);
|
|
10954
|
-
} // @ts-ignore: Prevent private property access error.
|
|
10955
|
-
|
|
11289
|
+
// @ts-ignore: Prevent private property access error.
|
|
10956
11290
|
const {
|
|
10957
11291
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
10958
11292
|
} = this;
|
|
@@ -10986,9 +11320,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10986
11320
|
var _selectedTarget5$LWS;
|
|
10987
11321
|
const errorToThrow$LWS = (_selectedTarget5$LWS = selectedTarget$LWS) != null ? _selectedTarget5$LWS : error;
|
|
10988
11322
|
selectedTarget$LWS = undefined;
|
|
10989
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
10990
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
10991
|
-
}
|
|
10992
11323
|
throw errorToThrow$LWS;
|
|
10993
11324
|
}
|
|
10994
11325
|
let result$LWS;
|
|
@@ -10999,20 +11330,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
10999
11330
|
} else {
|
|
11000
11331
|
result$LWS = pointerOrPrimitive$LWS;
|
|
11001
11332
|
}
|
|
11002
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11003
|
-
activity$LWS.stop();
|
|
11004
|
-
}
|
|
11005
11333
|
return result$LWS;
|
|
11006
11334
|
};
|
|
11007
11335
|
}
|
|
11008
11336
|
function createApplyOrConstructTrapForThreeOrMoreArgs$LWS(proxyTrapEnum$LWS) {
|
|
11009
|
-
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1
|
|
11010
|
-
/* ProxyHandlerTraps.Apply */;
|
|
11011
|
-
|
|
11012
|
-
const activityName$LWS = `Reflect.${isApplyTrap$LWS ? 'apply' : 'construct'}(3)`;
|
|
11337
|
+
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1 /* ProxyHandlerTraps.Apply */;
|
|
11013
11338
|
const arityToApplyOrConstructTrapNameRegistry$LWS = isApplyTrap$LWS ? applyTrapNameRegistry$LWS : constructTrapNameRegistry$LWS;
|
|
11014
11339
|
const foreignCallableApplyOrConstruct$LWS = isApplyTrap$LWS ? foreignCallableApply$LWS : foreignCallableConstruct$LWS;
|
|
11015
|
-
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(
|
|
11340
|
+
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS) {
|
|
11016
11341
|
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
11017
11342
|
const args$LWS = isApplyTrap$LWS ? argsOrNewTarget$LWS : thisArgOrArgs$LWS;
|
|
11018
11343
|
const {
|
|
@@ -11020,13 +11345,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11020
11345
|
} = args$LWS;
|
|
11021
11346
|
if (length$LWS !== 3) {
|
|
11022
11347
|
var _arityToApplyOrConstr4$LWS;
|
|
11023
|
-
return this[(_arityToApplyOrConstr4$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr4$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](
|
|
11348
|
+
return this[(_arityToApplyOrConstr4$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr4$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS);
|
|
11024
11349
|
}
|
|
11025
|
-
|
|
11026
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11027
|
-
activity$LWS = startActivity$LWS(activityName$LWS);
|
|
11028
|
-
} // @ts-ignore: Prevent private property access error.
|
|
11029
|
-
|
|
11350
|
+
// @ts-ignore: Prevent private property access error.
|
|
11030
11351
|
const {
|
|
11031
11352
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
11032
11353
|
} = this;
|
|
@@ -11067,9 +11388,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11067
11388
|
var _selectedTarget6$LWS;
|
|
11068
11389
|
const errorToThrow$LWS = (_selectedTarget6$LWS = selectedTarget$LWS) != null ? _selectedTarget6$LWS : error;
|
|
11069
11390
|
selectedTarget$LWS = undefined;
|
|
11070
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11071
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
11072
|
-
}
|
|
11073
11391
|
throw errorToThrow$LWS;
|
|
11074
11392
|
}
|
|
11075
11393
|
let result$LWS;
|
|
@@ -11080,20 +11398,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11080
11398
|
} else {
|
|
11081
11399
|
result$LWS = pointerOrPrimitive$LWS;
|
|
11082
11400
|
}
|
|
11083
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11084
|
-
activity$LWS.stop();
|
|
11085
|
-
}
|
|
11086
11401
|
return result$LWS;
|
|
11087
11402
|
};
|
|
11088
11403
|
}
|
|
11089
11404
|
function createApplyOrConstructTrapForFourOrMoreArgs$LWS(proxyTrapEnum$LWS) {
|
|
11090
|
-
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1
|
|
11091
|
-
/* ProxyHandlerTraps.Apply */;
|
|
11092
|
-
|
|
11093
|
-
const activityName$LWS = `Reflect.${isApplyTrap$LWS ? 'apply' : 'construct'}(4)`;
|
|
11405
|
+
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1 /* ProxyHandlerTraps.Apply */;
|
|
11094
11406
|
const arityToApplyOrConstructTrapNameRegistry$LWS = isApplyTrap$LWS ? applyTrapNameRegistry$LWS : constructTrapNameRegistry$LWS;
|
|
11095
11407
|
const foreignCallableApplyOrConstruct$LWS = isApplyTrap$LWS ? foreignCallableApply$LWS : foreignCallableConstruct$LWS;
|
|
11096
|
-
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(
|
|
11408
|
+
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS) {
|
|
11097
11409
|
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
11098
11410
|
const args$LWS = isApplyTrap$LWS ? argsOrNewTarget$LWS : thisArgOrArgs$LWS;
|
|
11099
11411
|
const {
|
|
@@ -11101,13 +11413,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11101
11413
|
} = args$LWS;
|
|
11102
11414
|
if (length$LWS !== 4) {
|
|
11103
11415
|
var _arityToApplyOrConstr5$LWS;
|
|
11104
|
-
return this[(_arityToApplyOrConstr5$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr5$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](
|
|
11416
|
+
return this[(_arityToApplyOrConstr5$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr5$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS);
|
|
11105
11417
|
}
|
|
11106
|
-
|
|
11107
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11108
|
-
activity$LWS = startActivity$LWS(activityName$LWS);
|
|
11109
|
-
} // @ts-ignore: Prevent private property access error.
|
|
11110
|
-
|
|
11418
|
+
// @ts-ignore: Prevent private property access error.
|
|
11111
11419
|
const {
|
|
11112
11420
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
11113
11421
|
} = this;
|
|
@@ -11155,9 +11463,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11155
11463
|
var _selectedTarget7$LWS;
|
|
11156
11464
|
const errorToThrow$LWS = (_selectedTarget7$LWS = selectedTarget$LWS) != null ? _selectedTarget7$LWS : error;
|
|
11157
11465
|
selectedTarget$LWS = undefined;
|
|
11158
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11159
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
11160
|
-
}
|
|
11161
11466
|
throw errorToThrow$LWS;
|
|
11162
11467
|
}
|
|
11163
11468
|
let result$LWS;
|
|
@@ -11168,20 +11473,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11168
11473
|
} else {
|
|
11169
11474
|
result$LWS = pointerOrPrimitive$LWS;
|
|
11170
11475
|
}
|
|
11171
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11172
|
-
activity$LWS.stop();
|
|
11173
|
-
}
|
|
11174
11476
|
return result$LWS;
|
|
11175
11477
|
};
|
|
11176
11478
|
}
|
|
11177
11479
|
function createApplyOrConstructTrapForFiveOrMoreArgs$LWS(proxyTrapEnum$LWS) {
|
|
11178
|
-
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1
|
|
11179
|
-
/* ProxyHandlerTraps.Apply */;
|
|
11180
|
-
|
|
11181
|
-
const activityName$LWS = `Reflect.${isApplyTrap$LWS ? 'apply' : 'construct'}(5)`;
|
|
11480
|
+
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1 /* ProxyHandlerTraps.Apply */;
|
|
11182
11481
|
const arityToApplyOrConstructTrapNameRegistry$LWS = isApplyTrap$LWS ? applyTrapNameRegistry$LWS : constructTrapNameRegistry$LWS;
|
|
11183
11482
|
const foreignCallableApplyOrConstruct$LWS = isApplyTrap$LWS ? foreignCallableApply$LWS : foreignCallableConstruct$LWS;
|
|
11184
|
-
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(
|
|
11483
|
+
return function applyOrConstructTrapForTwoOrMoreArgs$LWS(_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS) {
|
|
11185
11484
|
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
11186
11485
|
const args$LWS = isApplyTrap$LWS ? argsOrNewTarget$LWS : thisArgOrArgs$LWS;
|
|
11187
11486
|
const {
|
|
@@ -11189,13 +11488,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11189
11488
|
} = args$LWS;
|
|
11190
11489
|
if (length$LWS !== 5) {
|
|
11191
11490
|
var _arityToApplyOrConstr6$LWS;
|
|
11192
|
-
return this[(_arityToApplyOrConstr6$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr6$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](
|
|
11491
|
+
return this[(_arityToApplyOrConstr6$LWS = arityToApplyOrConstructTrapNameRegistry$LWS[length$LWS]) != null ? _arityToApplyOrConstr6$LWS : arityToApplyOrConstructTrapNameRegistry$LWS.n](_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS);
|
|
11193
11492
|
}
|
|
11194
|
-
|
|
11195
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11196
|
-
activity$LWS = startActivity$LWS(activityName$LWS);
|
|
11197
|
-
} // @ts-ignore: Prevent private property access error.
|
|
11198
|
-
|
|
11493
|
+
// @ts-ignore: Prevent private property access error.
|
|
11199
11494
|
const {
|
|
11200
11495
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
11201
11496
|
} = this;
|
|
@@ -11250,9 +11545,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11250
11545
|
var _selectedTarget8$LWS;
|
|
11251
11546
|
const errorToThrow$LWS = (_selectedTarget8$LWS = selectedTarget$LWS) != null ? _selectedTarget8$LWS : error;
|
|
11252
11547
|
selectedTarget$LWS = undefined;
|
|
11253
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11254
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
11255
|
-
}
|
|
11256
11548
|
throw errorToThrow$LWS;
|
|
11257
11549
|
}
|
|
11258
11550
|
let result$LWS;
|
|
@@ -11263,21 +11555,15 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11263
11555
|
} else {
|
|
11264
11556
|
result$LWS = pointerOrPrimitive$LWS;
|
|
11265
11557
|
}
|
|
11266
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11267
|
-
activity$LWS.stop();
|
|
11268
|
-
}
|
|
11269
11558
|
return result$LWS;
|
|
11270
11559
|
};
|
|
11271
11560
|
}
|
|
11272
11561
|
function createApplyOrConstructTrapForAnyNumberOfArgs$LWS(proxyTrapEnum$LWS) {
|
|
11273
|
-
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1
|
|
11274
|
-
/* ProxyHandlerTraps.Apply */;
|
|
11275
|
-
|
|
11276
|
-
const nativeMethodName$LWS = isApplyTrap$LWS ? 'apply' : 'construct';
|
|
11562
|
+
const isApplyTrap$LWS = proxyTrapEnum$LWS & 1 /* ProxyHandlerTraps.Apply */;
|
|
11277
11563
|
const foreignCallableApplyOrConstruct$LWS = isApplyTrap$LWS ? foreignCallableApply$LWS : foreignCallableConstruct$LWS;
|
|
11278
11564
|
return function applyOrConstructTrapForAnyNumberOfArgs$LWS(_shadowTarget$LWS, thisArgOrArgs$LWS, argsOrNewTarget$LWS) {
|
|
11279
|
-
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
11280
|
-
|
|
11565
|
+
lastProxyTrapCalled$LWS = proxyTrapEnum$LWS;
|
|
11566
|
+
// @ts-ignore: Prevent private property access error.
|
|
11281
11567
|
const {
|
|
11282
11568
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
11283
11569
|
} = this;
|
|
@@ -11285,10 +11571,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11285
11571
|
const {
|
|
11286
11572
|
length: length$LWS
|
|
11287
11573
|
} = args$LWS;
|
|
11288
|
-
let activity$LWS;
|
|
11289
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11290
|
-
activity$LWS = startActivity$LWS(`Reflect.${nativeMethodName$LWS}(${length$LWS})`);
|
|
11291
|
-
}
|
|
11292
11574
|
const thisArgOrNewTarget$LWS = isApplyTrap$LWS ? thisArgOrArgs$LWS : argsOrNewTarget$LWS;
|
|
11293
11575
|
let combinedOffset$LWS = 2;
|
|
11294
11576
|
const combinedArgs$LWS = new ArrayCtor$LWS(length$LWS + combinedOffset$LWS);
|
|
@@ -11301,8 +11583,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11301
11583
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
11302
11584
|
typeof thisArgOrNewTarget$LWS === 'undefined' ? undefined : thisArgOrNewTarget$LWS;
|
|
11303
11585
|
for (let i$LWS = 0; i$LWS < length$LWS; i$LWS += 1) {
|
|
11304
|
-
const arg$LWS = args$LWS[i$LWS];
|
|
11305
|
-
|
|
11586
|
+
const arg$LWS = args$LWS[i$LWS];
|
|
11587
|
+
// Inlining `getTransferableValue()`.
|
|
11306
11588
|
combinedArgs$LWS[combinedOffset$LWS++] = typeof arg$LWS === 'object' && arg$LWS !== null || typeof arg$LWS === 'function' ? getTransferablePointer$LWS(arg$LWS) :
|
|
11307
11589
|
// Intentionally ignoring `document.all`.
|
|
11308
11590
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
@@ -11314,9 +11596,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11314
11596
|
var _selectedTarget9$LWS;
|
|
11315
11597
|
const errorToThrow$LWS = (_selectedTarget9$LWS = selectedTarget$LWS) != null ? _selectedTarget9$LWS : error;
|
|
11316
11598
|
selectedTarget$LWS = undefined;
|
|
11317
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11318
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
11319
|
-
}
|
|
11320
11599
|
throw errorToThrow$LWS;
|
|
11321
11600
|
}
|
|
11322
11601
|
let result$LWS;
|
|
@@ -11327,9 +11606,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11327
11606
|
} else {
|
|
11328
11607
|
result$LWS = pointerOrPrimitive$LWS;
|
|
11329
11608
|
}
|
|
11330
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11331
|
-
activity$LWS.stop();
|
|
11332
|
-
}
|
|
11333
11609
|
return result$LWS;
|
|
11334
11610
|
};
|
|
11335
11611
|
}
|
|
@@ -11417,18 +11693,15 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11417
11693
|
let targetFunctionName$LWS = '';
|
|
11418
11694
|
let targetTypedArrayLength$LWS = 0;
|
|
11419
11695
|
if (revokedProxyCallback$LWS && revokedProxyCallback$LWS(originalTarget$LWS)) {
|
|
11420
|
-
proxyPointer$LWS = foreignCallablePusher$LWS(createPointer$LWS(originalTarget$LWS), 64
|
|
11421
|
-
/* TargetTraits.Revoked */, targetFunctionArity$LWS, targetFunctionName$LWS, targetTypedArrayLength$LWS);
|
|
11696
|
+
proxyPointer$LWS = foreignCallablePusher$LWS(createPointer$LWS(originalTarget$LWS), 64 /* TargetTraits.Revoked */, targetFunctionArity$LWS, targetFunctionName$LWS, targetTypedArrayLength$LWS);
|
|
11422
11697
|
proxyPointerCache$LWS.set(originalTarget$LWS, proxyPointer$LWS);
|
|
11423
11698
|
return proxyPointer$LWS;
|
|
11424
11699
|
}
|
|
11425
11700
|
let distortionTarget$LWS;
|
|
11426
|
-
let targetTraits$LWS = 16
|
|
11427
|
-
/* TargetTraits.IsObject */;
|
|
11428
|
-
|
|
11701
|
+
let targetTraits$LWS = 16 /* TargetTraits.IsObject */;
|
|
11429
11702
|
if (distortionCallback$LWS) {
|
|
11430
|
-
distortionTarget$LWS = distortionCallback$LWS(originalTarget$LWS);
|
|
11431
|
-
|
|
11703
|
+
distortionTarget$LWS = distortionCallback$LWS(originalTarget$LWS);
|
|
11704
|
+
// If a distortion entry is found, it must be a valid proxy target.
|
|
11432
11705
|
if (distortionTarget$LWS !== originalTarget$LWS && typeof distortionTarget$LWS !== typeof originalTarget$LWS) {
|
|
11433
11706
|
throw new TypeErrorCtor$LWS(`Invalid distortion ${toSafeTemplateStringValue$LWS(originalTarget$LWS)}.`);
|
|
11434
11707
|
}
|
|
@@ -11439,14 +11712,11 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11439
11712
|
if (typeof distortionTarget$LWS === 'function') {
|
|
11440
11713
|
isPossiblyRevoked$LWS = false;
|
|
11441
11714
|
targetFunctionArity$LWS = 0;
|
|
11442
|
-
targetTraits$LWS = 4
|
|
11443
|
-
/* TargetTraits.IsFunction */;
|
|
11444
|
-
|
|
11715
|
+
targetTraits$LWS = 4 /* TargetTraits.IsFunction */;
|
|
11445
11716
|
try {
|
|
11446
11717
|
// Detect arrow functions.
|
|
11447
11718
|
if (!('prototype' in distortionTarget$LWS)) {
|
|
11448
|
-
targetTraits$LWS |= 8
|
|
11449
|
-
/* TargetTraits.IsArrowFunction */;
|
|
11719
|
+
targetTraits$LWS |= 8 /* TargetTraits.IsArrowFunction */;
|
|
11450
11720
|
}
|
|
11451
11721
|
|
|
11452
11722
|
const safeLengthDesc$LWS = ReflectGetOwnPropertyDescriptor$LWS(originalTarget$LWS, 'length');
|
|
@@ -11466,13 +11736,11 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11466
11736
|
}
|
|
11467
11737
|
} else if (ArrayBufferIsView$LWS(distortionTarget$LWS)) {
|
|
11468
11738
|
isPossiblyRevoked$LWS = false;
|
|
11469
|
-
targetTraits$LWS = 2
|
|
11470
|
-
/* TargetTraits.IsArrayBufferView */;
|
|
11471
|
-
|
|
11739
|
+
targetTraits$LWS = 2 /* TargetTraits.IsArrayBufferView */;
|
|
11472
11740
|
try {
|
|
11473
11741
|
targetTypedArrayLength$LWS = ReflectApply$LWS(TypedArrayProtoLengthGetter$LWS, distortionTarget$LWS, []);
|
|
11474
|
-
targetTraits$LWS |= 32
|
|
11475
|
-
|
|
11742
|
+
targetTraits$LWS |= 32 /* TargetTraits.IsTypedArray */;
|
|
11743
|
+
// eslint-disable-next-line no-empty
|
|
11476
11744
|
} catch (_unused17$LWS) {
|
|
11477
11745
|
// Could be a DataView object or a revoked proxy.
|
|
11478
11746
|
isPossiblyRevoked$LWS = true;
|
|
@@ -11481,12 +11749,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11481
11749
|
if (isPossiblyRevoked$LWS) {
|
|
11482
11750
|
try {
|
|
11483
11751
|
if (isArrayOrThrowForRevoked$LWS(distortionTarget$LWS)) {
|
|
11484
|
-
targetTraits$LWS = 1
|
|
11485
|
-
/* TargetTraits.IsArray */;
|
|
11752
|
+
targetTraits$LWS = 1 /* TargetTraits.IsArray */;
|
|
11486
11753
|
}
|
|
11487
11754
|
} catch (_unused18$LWS) {
|
|
11488
|
-
targetTraits$LWS = 64
|
|
11489
|
-
/* TargetTraits.Revoked */;
|
|
11755
|
+
targetTraits$LWS = 64 /* TargetTraits.Revoked */;
|
|
11490
11756
|
}
|
|
11491
11757
|
}
|
|
11492
11758
|
|
|
@@ -11498,7 +11764,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11498
11764
|
if (installedPropertyDescriptorMethodWrappersFlag$LWS) {
|
|
11499
11765
|
return;
|
|
11500
11766
|
}
|
|
11501
|
-
installedPropertyDescriptorMethodWrappersFlag$LWS = true;
|
|
11767
|
+
installedPropertyDescriptorMethodWrappersFlag$LWS = true;
|
|
11768
|
+
// We wrap property descriptor methods to activate lazy
|
|
11502
11769
|
// descriptors and/or workaround browser bugs. The following
|
|
11503
11770
|
// methods are wrapped:
|
|
11504
11771
|
// Object.getOwnPropertyDescriptors()
|
|
@@ -11531,9 +11798,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11531
11798
|
// property descriptor methods to activate lazy descriptors
|
|
11532
11799
|
// we use the wrapper to workaround the `window` getter
|
|
11533
11800
|
// nulling bug.
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11801
|
+
const shouldFixChromeBug$LWS = isArrayOrThrowForRevoked$LWS(unforgeableGlobalThisKeys$LWS) && unforgeableGlobalThisKeys$LWS.length > 0;
|
|
11802
|
+
// Lazily populated by `getUnforgeableGlobalThisGetter()`;
|
|
11537
11803
|
const keyToGlobalThisGetterRegistry$LWS = shouldFixChromeBug$LWS ? {
|
|
11538
11804
|
__proto__: null
|
|
11539
11805
|
} : undefined;
|
|
@@ -11553,8 +11819,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11553
11819
|
// to obscure the getter source as "[native code]".
|
|
11554
11820
|
globalThisGetter$LWS = ReflectApply$LWS(FunctionProtoBind$LWS,
|
|
11555
11821
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
11556
|
-
unboundGlobalThisGetter$LWS, []);
|
|
11557
|
-
|
|
11822
|
+
unboundGlobalThisGetter$LWS, []);
|
|
11823
|
+
// Preserve identity continuity of getters.
|
|
11558
11824
|
keyToGlobalThisGetterRegistry$LWS[key$LWS] = globalThisGetter$LWS;
|
|
11559
11825
|
}
|
|
11560
11826
|
return globalThisGetter$LWS;
|
|
@@ -11565,10 +11831,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11565
11831
|
const wrapDefineAccessOrProperty$LWS = originalFunc$LWS => {
|
|
11566
11832
|
const {
|
|
11567
11833
|
length: originalFuncLength$LWS
|
|
11568
|
-
} = originalFunc$LWS;
|
|
11834
|
+
} = originalFunc$LWS;
|
|
11835
|
+
// `__defineGetter__()` and `__defineSetter__()` have
|
|
11569
11836
|
// function lengths of 2 while `Reflect.defineProperty()`
|
|
11570
11837
|
// has a function length of 3.
|
|
11571
|
-
|
|
11572
11838
|
const useThisArgAsTarget$LWS = originalFuncLength$LWS === 2;
|
|
11573
11839
|
return new ProxyCtor$LWS(originalFunc$LWS, {
|
|
11574
11840
|
apply(_originalFunc$LWS, thisArg$LWS, args$LWS) {
|
|
@@ -11666,8 +11932,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11666
11932
|
target$LWS[ownKey$LWS];
|
|
11667
11933
|
}
|
|
11668
11934
|
if (isLazyProp$LWS || isFixingChromeBug$LWS) {
|
|
11669
|
-
const unsafeDesc$LWS = isFixingChromeBug$LWS ? getFixedDescriptor$LWS(target$LWS, ownKey$LWS) : ReflectGetOwnPropertyDescriptor$LWS(target$LWS, ownKey$LWS);
|
|
11670
|
-
|
|
11935
|
+
const unsafeDesc$LWS = isFixingChromeBug$LWS ? getFixedDescriptor$LWS(target$LWS, ownKey$LWS) : ReflectGetOwnPropertyDescriptor$LWS(target$LWS, ownKey$LWS);
|
|
11936
|
+
// Update the descriptor map entry.
|
|
11671
11937
|
if (unsafeDesc$LWS) {
|
|
11672
11938
|
unsafeDescs$LWS[ownKey$LWS] = unsafeDesc$LWS;
|
|
11673
11939
|
} else if (!isFixingChromeBug$LWS) {
|
|
@@ -11679,39 +11945,43 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11679
11945
|
}
|
|
11680
11946
|
});
|
|
11681
11947
|
try {
|
|
11682
|
-
ReflectRef$LWS.defineProperty = wrapDefineAccessOrProperty$LWS(ReflectDefineProperty$LWS);
|
|
11948
|
+
ReflectRef$LWS.defineProperty = wrapDefineAccessOrProperty$LWS(ReflectDefineProperty$LWS);
|
|
11949
|
+
// eslint-disable-next-line no-empty
|
|
11683
11950
|
} catch (_unused19$LWS) {}
|
|
11684
11951
|
try {
|
|
11685
|
-
ReflectRef$LWS.getOwnPropertyDescriptor = wrapGetOwnPropertyDescriptor$LWS(ReflectGetOwnPropertyDescriptor$LWS);
|
|
11952
|
+
ReflectRef$LWS.getOwnPropertyDescriptor = wrapGetOwnPropertyDescriptor$LWS(ReflectGetOwnPropertyDescriptor$LWS);
|
|
11953
|
+
// eslint-disable-next-line no-empty
|
|
11686
11954
|
} catch (_unused20$LWS) {}
|
|
11687
11955
|
try {
|
|
11688
|
-
ObjectCtor$LWS.getOwnPropertyDescriptor = wrapGetOwnPropertyDescriptor$LWS(ObjectGetOwnPropertyDescriptor$LWS);
|
|
11956
|
+
ObjectCtor$LWS.getOwnPropertyDescriptor = wrapGetOwnPropertyDescriptor$LWS(ObjectGetOwnPropertyDescriptor$LWS);
|
|
11957
|
+
// eslint-disable-next-line no-empty
|
|
11689
11958
|
} catch (_unused21$LWS) {}
|
|
11690
11959
|
try {
|
|
11691
|
-
ObjectCtor$LWS.getOwnPropertyDescriptors = wrapGetOwnPropertyDescriptors$LWS(ObjectGetOwnPropertyDescriptors$LWS);
|
|
11960
|
+
ObjectCtor$LWS.getOwnPropertyDescriptors = wrapGetOwnPropertyDescriptors$LWS(ObjectGetOwnPropertyDescriptors$LWS);
|
|
11961
|
+
// eslint-disable-next-line no-empty
|
|
11692
11962
|
} catch (_unused22$LWS) {}
|
|
11693
11963
|
try {
|
|
11694
11964
|
// eslint-disable-next-line @typescript-eslint/naming-convention, no-restricted-properties, no-underscore-dangle
|
|
11695
|
-
ObjectProto$LWS.__defineGetter__ = wrapDefineAccessOrProperty$LWS(ObjectProtoDefineGetter$LWS);
|
|
11965
|
+
ObjectProto$LWS.__defineGetter__ = wrapDefineAccessOrProperty$LWS(ObjectProtoDefineGetter$LWS);
|
|
11966
|
+
// eslint-disable-next-line no-empty
|
|
11696
11967
|
} catch (_unused23$LWS) {}
|
|
11697
11968
|
try {
|
|
11698
11969
|
// eslint-disable-next-line @typescript-eslint/naming-convention, no-restricted-properties, no-underscore-dangle
|
|
11699
|
-
ObjectProto$LWS.__defineSetter__ = wrapDefineAccessOrProperty$LWS(ObjectProtoDefineSetter$LWS);
|
|
11970
|
+
ObjectProto$LWS.__defineSetter__ = wrapDefineAccessOrProperty$LWS(ObjectProtoDefineSetter$LWS);
|
|
11971
|
+
// eslint-disable-next-line no-empty
|
|
11700
11972
|
} catch (_unused24$LWS) {}
|
|
11701
11973
|
try {
|
|
11702
11974
|
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle
|
|
11703
|
-
ObjectProto$LWS.__lookupGetter__ = wrapLookupAccessor$LWS(ObjectProtoLookupGetter$LWS, lookupFixedGetter$LWS);
|
|
11975
|
+
ObjectProto$LWS.__lookupGetter__ = wrapLookupAccessor$LWS(ObjectProtoLookupGetter$LWS, lookupFixedGetter$LWS);
|
|
11976
|
+
// eslint-disable-next-line no-empty
|
|
11704
11977
|
} catch (_unused25$LWS) {}
|
|
11705
11978
|
try {
|
|
11706
11979
|
// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle
|
|
11707
|
-
ObjectProto$LWS.__lookupSetter__ = wrapLookupAccessor$LWS(ObjectProtoLookupSetter$LWS, lookupFixedSetter$LWS);
|
|
11980
|
+
ObjectProto$LWS.__lookupSetter__ = wrapLookupAccessor$LWS(ObjectProtoLookupSetter$LWS, lookupFixedSetter$LWS);
|
|
11981
|
+
// eslint-disable-next-line no-empty
|
|
11708
11982
|
} catch (_unused26$LWS) {}
|
|
11709
11983
|
} : noop$LWS;
|
|
11710
11984
|
function lookupForeignDescriptor$LWS(foreignTargetPointer$LWS, shadowTarget$LWS, key$LWS) {
|
|
11711
|
-
let activity$LWS;
|
|
11712
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11713
|
-
activity$LWS = startActivity$LWS('lookupForeignDescriptor');
|
|
11714
|
-
}
|
|
11715
11985
|
let protoPointerOrNull$LWS;
|
|
11716
11986
|
let safeDesc$LWS;
|
|
11717
11987
|
try {
|
|
@@ -11766,9 +12036,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11766
12036
|
var _selectedTarget10$LWS;
|
|
11767
12037
|
const errorToThrow$LWS = (_selectedTarget10$LWS = selectedTarget$LWS) != null ? _selectedTarget10$LWS : error;
|
|
11768
12038
|
selectedTarget$LWS = undefined;
|
|
11769
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11770
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
11771
|
-
}
|
|
11772
12039
|
throw errorToThrow$LWS;
|
|
11773
12040
|
}
|
|
11774
12041
|
if (safeDesc$LWS === undefined) {
|
|
@@ -11801,16 +12068,13 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11801
12068
|
safeDesc$LWS.foreign = (typeof possibleProxy$LWS === 'object' && possibleProxy$LWS !== null || typeof possibleProxy$LWS === 'function') && proxyPointerCache$LWS.get(possibleProxy$LWS) !== undefined;
|
|
11802
12069
|
}
|
|
11803
12070
|
}
|
|
11804
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
11805
|
-
activity$LWS.stop();
|
|
11806
|
-
}
|
|
11807
12071
|
return safeDesc$LWS;
|
|
11808
12072
|
}
|
|
11809
12073
|
function passthruForeignTraversedSet$LWS(foreignTargetPointer$LWS, shadowTarget$LWS, key$LWS, value$LWS, receiver$LWS) {
|
|
11810
|
-
const safeDesc$LWS = lookupForeignDescriptor$LWS(foreignTargetPointer$LWS, shadowTarget$LWS, key$LWS);
|
|
12074
|
+
const safeDesc$LWS = lookupForeignDescriptor$LWS(foreignTargetPointer$LWS, shadowTarget$LWS, key$LWS);
|
|
12075
|
+
// Following the specification steps for
|
|
11811
12076
|
// OrdinarySetWithOwnDescriptor ( O, P, V, Receiver, ownDesc ).
|
|
11812
12077
|
// https://tc39.es/ecma262/#sec-ordinarysetwithowndescriptor
|
|
11813
|
-
|
|
11814
12078
|
if (safeDesc$LWS) {
|
|
11815
12079
|
if ('get' in safeDesc$LWS || 'set' in safeDesc$LWS) {
|
|
11816
12080
|
const {
|
|
@@ -11838,9 +12102,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11838
12102
|
// case we must resolve the local setter and call
|
|
11839
12103
|
// it instead.
|
|
11840
12104
|
ReflectApply$LWS(setter$LWS, receiver$LWS, [value$LWS]);
|
|
11841
|
-
}
|
|
12105
|
+
}
|
|
12106
|
+
// If there is a setter, it either throw or we can assume
|
|
11842
12107
|
// the value was set.
|
|
11843
|
-
|
|
11844
12108
|
return true;
|
|
11845
12109
|
}
|
|
11846
12110
|
return false;
|
|
@@ -11848,30 +12112,30 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11848
12112
|
if (safeDesc$LWS.writable === false) {
|
|
11849
12113
|
return false;
|
|
11850
12114
|
}
|
|
11851
|
-
}
|
|
11852
|
-
|
|
12115
|
+
}
|
|
12116
|
+
// Exit early if receiver is not object like.
|
|
11853
12117
|
if (!(typeof receiver$LWS === 'object' && receiver$LWS !== null || typeof receiver$LWS === 'function')) {
|
|
11854
12118
|
return false;
|
|
11855
12119
|
}
|
|
11856
12120
|
const safeReceiverDesc$LWS = ReflectGetOwnPropertyDescriptor$LWS(receiver$LWS, key$LWS);
|
|
11857
12121
|
if (safeReceiverDesc$LWS) {
|
|
11858
|
-
ReflectSetPrototypeOf$LWS(safeReceiverDesc$LWS, null);
|
|
12122
|
+
ReflectSetPrototypeOf$LWS(safeReceiverDesc$LWS, null);
|
|
12123
|
+
// Exit early for accessor descriptors or non-writable data
|
|
11859
12124
|
// descriptors.
|
|
11860
|
-
|
|
11861
12125
|
if ('get' in safeReceiverDesc$LWS || 'set' in safeReceiverDesc$LWS || safeReceiverDesc$LWS.writable === false) {
|
|
11862
12126
|
return false;
|
|
11863
|
-
}
|
|
12127
|
+
}
|
|
12128
|
+
// Setting the descriptor with only a value entry should not
|
|
11864
12129
|
// affect existing descriptor traits.
|
|
11865
|
-
|
|
11866
12130
|
ReflectDefineProperty$LWS(receiver$LWS, key$LWS, {
|
|
11867
12131
|
__proto__: null,
|
|
11868
12132
|
value: value$LWS
|
|
11869
12133
|
});
|
|
11870
12134
|
return true;
|
|
11871
|
-
}
|
|
12135
|
+
}
|
|
12136
|
+
// `ReflectDefineProperty()` and `ReflectSet()` both are expected
|
|
11872
12137
|
// to return `false` when attempting to add a new property if the
|
|
11873
12138
|
// receiver is not extensible.
|
|
11874
|
-
|
|
11875
12139
|
return ReflectDefineProperty$LWS(receiver$LWS, key$LWS, {
|
|
11876
12140
|
__proto__: null,
|
|
11877
12141
|
configurable: true,
|
|
@@ -11883,8 +12147,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11883
12147
|
function pushErrorAcrossBoundary$LWS(error) {
|
|
11884
12148
|
if (LOCKER_DEBUGGABLE_FLAG$LWS) {
|
|
11885
12149
|
checkDebugMode$LWS();
|
|
11886
|
-
}
|
|
11887
|
-
|
|
12150
|
+
}
|
|
12151
|
+
// Inline getTransferableValue().
|
|
11888
12152
|
if (typeof error === 'object' && error !== null || typeof error === 'function') {
|
|
11889
12153
|
const foreignErrorPointer$LWS = getTransferablePointer$LWS(error, foreignCallablePushErrorTarget$LWS);
|
|
11890
12154
|
foreignErrorPointer$LWS();
|
|
@@ -11937,19 +12201,18 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11937
12201
|
} = this;
|
|
11938
12202
|
if (useFastForeignTargetPath$LWS) {
|
|
11939
12203
|
fastForeignTargetPointers$LWS.delete(foreignTargetPointer$LWS);
|
|
11940
|
-
}
|
|
12204
|
+
}
|
|
12205
|
+
// We don't wrap `foreignCallableGetTargetIntegrityTraits()`
|
|
11941
12206
|
// in a try-catch because it cannot throw.
|
|
11942
|
-
|
|
11943
12207
|
const targetIntegrityTraits$LWS = foreignCallableGetTargetIntegrityTraits$LWS(foreignTargetPointer$LWS);
|
|
11944
|
-
if (targetIntegrityTraits$LWS & 8
|
|
11945
|
-
/* TargetIntegrityTraits.Revoked */) {
|
|
12208
|
+
if (targetIntegrityTraits$LWS & 8 /* TargetIntegrityTraits.Revoked */) {
|
|
11946
12209
|
// the target is a revoked proxy, in which case we revoke
|
|
11947
12210
|
// this proxy as well.
|
|
11948
12211
|
this.revoke();
|
|
11949
12212
|
return;
|
|
11950
|
-
}
|
|
12213
|
+
}
|
|
12214
|
+
// A proxy can revoke itself when traps are triggered and break
|
|
11951
12215
|
// the membrane, therefore we need protection.
|
|
11952
|
-
|
|
11953
12216
|
try {
|
|
11954
12217
|
copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(foreignTargetPointer$LWS, shadowTarget$LWS);
|
|
11955
12218
|
} catch (_unused27$LWS) {
|
|
@@ -11960,24 +12223,21 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11960
12223
|
return;
|
|
11961
12224
|
}
|
|
11962
12225
|
}
|
|
11963
|
-
if (foreignTargetTraits$LWS & 16
|
|
11964
|
-
/* TargetTraits.IsObject */ && !(SymbolToStringTag$LWS in shadowTarget$LWS)) {
|
|
12226
|
+
if (foreignTargetTraits$LWS & 16 /* TargetTraits.IsObject */ && !(SymbolToStringTag$LWS in shadowTarget$LWS)) {
|
|
11965
12227
|
let toStringTag$LWS = 'Object';
|
|
11966
12228
|
try {
|
|
11967
|
-
toStringTag$LWS = foreignCallableGetToStringTagOfTarget$LWS(foreignTargetPointer$LWS);
|
|
12229
|
+
toStringTag$LWS = foreignCallableGetToStringTagOfTarget$LWS(foreignTargetPointer$LWS);
|
|
12230
|
+
// eslint-disable-next-line no-empty
|
|
11968
12231
|
} catch (_unused28$LWS) {}
|
|
11969
12232
|
this.staticToStringTag = toStringTag$LWS;
|
|
11970
|
-
}
|
|
11971
|
-
|
|
11972
|
-
if (targetIntegrityTraits$LWS & 4
|
|
11973
|
-
/* TargetIntegrityTraits.IsFrozen */) {
|
|
12233
|
+
}
|
|
12234
|
+
// Preserve the semantics of the target.
|
|
12235
|
+
if (targetIntegrityTraits$LWS & 4 /* TargetIntegrityTraits.IsFrozen */) {
|
|
11974
12236
|
ObjectFreeze$LWS(shadowTarget$LWS);
|
|
11975
12237
|
} else {
|
|
11976
|
-
if (targetIntegrityTraits$LWS & 2
|
|
11977
|
-
/* TargetIntegrityTraits.IsSealed */) {
|
|
12238
|
+
if (targetIntegrityTraits$LWS & 2 /* TargetIntegrityTraits.IsSealed */) {
|
|
11978
12239
|
ObjectSeal$LWS(shadowTarget$LWS);
|
|
11979
|
-
} else if (targetIntegrityTraits$LWS & 1
|
|
11980
|
-
/* TargetIntegrityTraits.IsNotExtensible */) {
|
|
12240
|
+
} else if (targetIntegrityTraits$LWS & 1 /* TargetIntegrityTraits.IsNotExtensible */) {
|
|
11981
12241
|
ReflectPreventExtensions$LWS(shadowTarget$LWS);
|
|
11982
12242
|
}
|
|
11983
12243
|
if (LOCKER_UNMINIFIED_FLAG$LWS) {
|
|
@@ -11988,20 +12248,15 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
11988
12248
|
}
|
|
11989
12249
|
} : noop$LWS;
|
|
11990
12250
|
let shadowTarget$LWS;
|
|
11991
|
-
const isForeignTargetArray$LWS = foreignTargetTraits$LWS & 1
|
|
11992
|
-
/* TargetTraits.
|
|
11993
|
-
|
|
11994
|
-
const isForeignTargetFunction$LWS = foreignTargetTraits$LWS & 4
|
|
11995
|
-
/* TargetTraits.IsFunction */;
|
|
11996
|
-
|
|
12251
|
+
const isForeignTargetArray$LWS = foreignTargetTraits$LWS & 1 /* TargetTraits.IsArray */;
|
|
12252
|
+
const isForeignTargetFunction$LWS = foreignTargetTraits$LWS & 4 /* TargetTraits.IsFunction */;
|
|
11997
12253
|
if (isForeignTargetFunction$LWS) {
|
|
11998
12254
|
// This shadow target is never invoked. It's needed to avoid
|
|
11999
12255
|
// proxy trap invariants. Because it's not invoked the code
|
|
12000
12256
|
// does not need to be instrumented for code coverage.
|
|
12001
12257
|
//
|
|
12002
12258
|
// istanbul ignore next
|
|
12003
|
-
shadowTarget$LWS = foreignTargetTraits$LWS & 8
|
|
12004
|
-
/* TargetTraits.IsArrowFunction */ ? () => {} : function () {};
|
|
12259
|
+
shadowTarget$LWS = foreignTargetTraits$LWS & 8 /* TargetTraits.IsArrowFunction */ ? () => {} : function () {};
|
|
12005
12260
|
} else if (isForeignTargetArray$LWS) {
|
|
12006
12261
|
shadowTarget$LWS = [];
|
|
12007
12262
|
} else {
|
|
@@ -12013,9 +12268,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12013
12268
|
} = ProxyRevocable$LWS(shadowTarget$LWS, this);
|
|
12014
12269
|
this.foreignTargetPointer = foreignTargetPointer$LWS;
|
|
12015
12270
|
this.foreignTargetTraits = foreignTargetTraits$LWS;
|
|
12016
|
-
this.foreignTargetTypedArrayLength = foreignTargetTypedArrayLength$LWS;
|
|
12271
|
+
this.foreignTargetTypedArrayLength = foreignTargetTypedArrayLength$LWS;
|
|
12272
|
+
// Define in the BoundaryProxyHandler constructor so it is bound
|
|
12017
12273
|
// to the BoundaryProxyHandler instance.
|
|
12018
|
-
|
|
12019
12274
|
this.nonConfigurableDescriptorCallback = (key$LWS, configurable$LWS, enumerable$LWS, writable$LWS, valuePointer$LWS, getterPointer$LWS, setterPointer$LWS) => {
|
|
12020
12275
|
// Update the descriptor to non-configurable on the shadow
|
|
12021
12276
|
// target.
|
|
@@ -12025,8 +12280,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12025
12280
|
this.revoke = revoke$LWS;
|
|
12026
12281
|
this.serialize = noop$LWS;
|
|
12027
12282
|
this.shadowTarget = shadowTarget$LWS;
|
|
12028
|
-
this.staticToStringTag = 'Object';
|
|
12029
|
-
|
|
12283
|
+
this.staticToStringTag = 'Object';
|
|
12284
|
+
// Define traps.
|
|
12030
12285
|
if (isForeignTargetFunction$LWS) {
|
|
12031
12286
|
var _applyTrapNameRegistr$LWS, _constructTrapNameReg$LWS;
|
|
12032
12287
|
this.apply = this[(_applyTrapNameRegistr$LWS = applyTrapNameRegistry$LWS[foreignTargetFunctionArity$LWS]) != null ? _applyTrapNameRegistr$LWS : applyTrapNameRegistry$LWS.n];
|
|
@@ -12037,24 +12292,20 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12037
12292
|
this.isExtensible = BoundaryProxyHandler$LWS.defaultIsExtensibleTrap;
|
|
12038
12293
|
this.getOwnPropertyDescriptor = BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap;
|
|
12039
12294
|
this.getPrototypeOf = BoundaryProxyHandler$LWS.defaultGetPrototypeOfTrap;
|
|
12040
|
-
this.get = foreignTargetTraits$LWS & 32
|
|
12041
|
-
/* TargetTraits.IsTypedArray */ ? BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray : BoundaryProxyHandler$LWS.defaultGetTrap;
|
|
12295
|
+
this.get = foreignTargetTraits$LWS & 32 /* TargetTraits.IsTypedArray */ ? BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray : BoundaryProxyHandler$LWS.defaultGetTrap;
|
|
12042
12296
|
this.has = BoundaryProxyHandler$LWS.defaultHasTrap;
|
|
12043
12297
|
this.ownKeys = BoundaryProxyHandler$LWS.defaultOwnKeysTrap;
|
|
12044
12298
|
this.preventExtensions = BoundaryProxyHandler$LWS.defaultPreventExtensionsTrap;
|
|
12045
12299
|
this.setPrototypeOf = BoundaryProxyHandler$LWS.defaultSetPrototypeOfTrap;
|
|
12046
12300
|
this.set = BoundaryProxyHandler$LWS.defaultSetTrap;
|
|
12047
|
-
if (foreignTargetTraits$LWS & 64
|
|
12048
|
-
/* TargetTraits.Revoked */) {
|
|
12301
|
+
if (foreignTargetTraits$LWS & 64 /* TargetTraits.Revoked */) {
|
|
12049
12302
|
this.revoke();
|
|
12050
12303
|
} else if (IS_IN_SHADOW_REALM$LWS) {
|
|
12051
|
-
if (isForeignTargetArray$LWS || foreignTargetTraits$LWS & 2
|
|
12052
|
-
/* TargetTraits.IsArrayBufferView */) {
|
|
12304
|
+
if (isForeignTargetArray$LWS || foreignTargetTraits$LWS & 2 /* TargetTraits.IsArrayBufferView */) {
|
|
12053
12305
|
this.makeProxyLive();
|
|
12054
12306
|
}
|
|
12055
12307
|
} else {
|
|
12056
|
-
if (foreignTargetTraits$LWS & 16
|
|
12057
|
-
/* TargetTraits.IsObject */) {
|
|
12308
|
+
if (foreignTargetTraits$LWS & 16 /* TargetTraits.IsObject */) {
|
|
12058
12309
|
// Lazily define serialize method.
|
|
12059
12310
|
let cachedSerializedValue$LWS = LOCKER_NEAR_MEMBRANE_UNDEFINED_VALUE_SYMBOL$LWS;
|
|
12060
12311
|
this.serialize = () => {
|
|
@@ -12065,16 +12316,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12065
12316
|
};
|
|
12066
12317
|
}
|
|
12067
12318
|
}
|
|
12068
|
-
}
|
|
12069
|
-
|
|
12319
|
+
}
|
|
12320
|
+
// Passthru traps:
|
|
12070
12321
|
static passthruDefinePropertyTrap(_shadowTarget$LWS, key$LWS, unsafePartialDesc$LWS) {
|
|
12071
|
-
lastProxyTrapCalled$LWS = 4
|
|
12072
|
-
/* ProxyHandlerTraps.DefineProperty */;
|
|
12073
|
-
|
|
12074
|
-
let activity$LWS;
|
|
12075
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12076
|
-
activity$LWS = startActivity$LWS('Reflect.defineProperty');
|
|
12077
|
-
}
|
|
12322
|
+
lastProxyTrapCalled$LWS = 4 /* ProxyHandlerTraps.DefineProperty */;
|
|
12078
12323
|
const {
|
|
12079
12324
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12080
12325
|
nonConfigurableDescriptorCallback: nonConfigurableDescriptorCallback$LWS
|
|
@@ -12106,27 +12351,15 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12106
12351
|
var _selectedTarget11$LWS;
|
|
12107
12352
|
const errorToThrow$LWS = (_selectedTarget11$LWS = selectedTarget$LWS) != null ? _selectedTarget11$LWS : error;
|
|
12108
12353
|
selectedTarget$LWS = undefined;
|
|
12109
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12110
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12111
|
-
}
|
|
12112
12354
|
throw errorToThrow$LWS;
|
|
12113
12355
|
}
|
|
12114
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12115
|
-
activity$LWS.stop();
|
|
12116
|
-
}
|
|
12117
12356
|
if (useFastForeignTargetPath$LWS && result$LWS && (typeof getterPointerOrUndefinedSymbol$LWS === 'function' || typeof setterPointerOrUndefinedSymbol$LWS === 'function')) {
|
|
12118
12357
|
fastForeignTargetPointers$LWS.delete(foreignTargetPointer$LWS);
|
|
12119
12358
|
}
|
|
12120
12359
|
return result$LWS;
|
|
12121
12360
|
}
|
|
12122
12361
|
static passthruDeletePropertyTrap(_shadowTarget$LWS, key$LWS) {
|
|
12123
|
-
lastProxyTrapCalled$LWS = 8
|
|
12124
|
-
/* ProxyHandlerTraps.DeleteProperty */;
|
|
12125
|
-
|
|
12126
|
-
let activity$LWS;
|
|
12127
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12128
|
-
activity$LWS = startActivity$LWS('Reflect.deleteProperty');
|
|
12129
|
-
}
|
|
12362
|
+
lastProxyTrapCalled$LWS = 8 /* ProxyHandlerTraps.DeleteProperty */;
|
|
12130
12363
|
let result$LWS = false;
|
|
12131
12364
|
try {
|
|
12132
12365
|
result$LWS = foreignCallableDeleteProperty$LWS(this.foreignTargetPointer, key$LWS);
|
|
@@ -12134,24 +12367,12 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12134
12367
|
var _selectedTarget12$LWS;
|
|
12135
12368
|
const errorToThrow$LWS = (_selectedTarget12$LWS = selectedTarget$LWS) != null ? _selectedTarget12$LWS : error;
|
|
12136
12369
|
selectedTarget$LWS = undefined;
|
|
12137
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12138
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12139
|
-
}
|
|
12140
12370
|
throw errorToThrow$LWS;
|
|
12141
12371
|
}
|
|
12142
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12143
|
-
activity$LWS.stop();
|
|
12144
|
-
}
|
|
12145
12372
|
return result$LWS;
|
|
12146
12373
|
}
|
|
12147
12374
|
static passthruGetPrototypeOfTrap(_shadowTarget$LWS) {
|
|
12148
|
-
lastProxyTrapCalled$LWS = 64
|
|
12149
|
-
/* ProxyHandlerTraps.GetPrototypeOf */;
|
|
12150
|
-
|
|
12151
|
-
let activity$LWS;
|
|
12152
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12153
|
-
activity$LWS = startActivity$LWS('Reflect.getPrototypeOf');
|
|
12154
|
-
}
|
|
12375
|
+
lastProxyTrapCalled$LWS = 64 /* ProxyHandlerTraps.GetPrototypeOf */;
|
|
12155
12376
|
let protoPointerOrNull$LWS;
|
|
12156
12377
|
try {
|
|
12157
12378
|
protoPointerOrNull$LWS = foreignCallableGetPrototypeOf$LWS(this.foreignTargetPointer);
|
|
@@ -12159,9 +12380,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12159
12380
|
var _selectedTarget13$LWS;
|
|
12160
12381
|
const errorToThrow$LWS = (_selectedTarget13$LWS = selectedTarget$LWS) != null ? _selectedTarget13$LWS : error;
|
|
12161
12382
|
selectedTarget$LWS = undefined;
|
|
12162
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12163
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12164
|
-
}
|
|
12165
12383
|
throw errorToThrow$LWS;
|
|
12166
12384
|
}
|
|
12167
12385
|
let proto$LWS;
|
|
@@ -12172,24 +12390,15 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12172
12390
|
} else {
|
|
12173
12391
|
proto$LWS = null;
|
|
12174
12392
|
}
|
|
12175
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12176
|
-
activity$LWS.stop();
|
|
12177
|
-
}
|
|
12178
12393
|
return proto$LWS;
|
|
12179
12394
|
}
|
|
12180
12395
|
static passthruIsExtensibleTrap(_shadowTarget$LWS) {
|
|
12181
|
-
lastProxyTrapCalled$LWS = 256
|
|
12182
|
-
/* ProxyHandlerTraps.IsExtensible */;
|
|
12183
|
-
|
|
12184
|
-
let activity$LWS;
|
|
12185
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12186
|
-
activity$LWS = startActivity$LWS('Reflect.isExtensible');
|
|
12187
|
-
}
|
|
12396
|
+
lastProxyTrapCalled$LWS = 256 /* ProxyHandlerTraps.IsExtensible */;
|
|
12188
12397
|
const {
|
|
12189
12398
|
shadowTarget: shadowTarget$LWS
|
|
12190
12399
|
} = this;
|
|
12191
|
-
let result$LWS = false;
|
|
12192
|
-
|
|
12400
|
+
let result$LWS = false;
|
|
12401
|
+
// Check if already locked.
|
|
12193
12402
|
if (ReflectIsExtensible$LWS(shadowTarget$LWS)) {
|
|
12194
12403
|
const {
|
|
12195
12404
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
@@ -12200,9 +12409,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12200
12409
|
var _selectedTarget14$LWS;
|
|
12201
12410
|
const errorToThrow$LWS = (_selectedTarget14$LWS = selectedTarget$LWS) != null ? _selectedTarget14$LWS : error;
|
|
12202
12411
|
selectedTarget$LWS = undefined;
|
|
12203
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12204
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12205
|
-
}
|
|
12206
12412
|
throw errorToThrow$LWS;
|
|
12207
12413
|
}
|
|
12208
12414
|
if (!result$LWS) {
|
|
@@ -12210,19 +12416,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12210
12416
|
ReflectPreventExtensions$LWS(shadowTarget$LWS);
|
|
12211
12417
|
}
|
|
12212
12418
|
}
|
|
12213
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12214
|
-
activity$LWS.stop();
|
|
12215
|
-
}
|
|
12216
12419
|
return result$LWS;
|
|
12217
12420
|
}
|
|
12218
12421
|
static passthruOwnKeysTrap(_shadowTarget$LWS) {
|
|
12219
|
-
lastProxyTrapCalled$LWS = 512
|
|
12220
|
-
/* ProxyHandlerTraps.OwnKeys */;
|
|
12221
|
-
|
|
12222
|
-
let activity$LWS;
|
|
12223
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12224
|
-
activity$LWS = startActivity$LWS('Reflect.ownKeys');
|
|
12225
|
-
}
|
|
12422
|
+
lastProxyTrapCalled$LWS = 512 /* ProxyHandlerTraps.OwnKeys */;
|
|
12226
12423
|
let ownKeys$LWS;
|
|
12227
12424
|
try {
|
|
12228
12425
|
foreignCallableOwnKeys$LWS(this.foreignTargetPointer, (...args$LWS) => {
|
|
@@ -12232,24 +12429,12 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12232
12429
|
var _selectedTarget15$LWS;
|
|
12233
12430
|
const errorToThrow$LWS = (_selectedTarget15$LWS = selectedTarget$LWS) != null ? _selectedTarget15$LWS : error;
|
|
12234
12431
|
selectedTarget$LWS = undefined;
|
|
12235
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12236
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12237
|
-
}
|
|
12238
12432
|
throw errorToThrow$LWS;
|
|
12239
12433
|
}
|
|
12240
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12241
|
-
activity$LWS.stop();
|
|
12242
|
-
}
|
|
12243
12434
|
return ownKeys$LWS || [];
|
|
12244
12435
|
}
|
|
12245
12436
|
static passthruGetOwnPropertyDescriptorTrap(_shadowTarget$LWS, key$LWS) {
|
|
12246
|
-
lastProxyTrapCalled$LWS = 32
|
|
12247
|
-
/* ProxyHandlerTraps.GetOwnPropertyDescriptor */;
|
|
12248
|
-
|
|
12249
|
-
let activity$LWS;
|
|
12250
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12251
|
-
activity$LWS = startActivity$LWS('Reflect.getOwnPropertyDescriptor');
|
|
12252
|
-
}
|
|
12437
|
+
lastProxyTrapCalled$LWS = 32 /* ProxyHandlerTraps.GetOwnPropertyDescriptor */;
|
|
12253
12438
|
const {
|
|
12254
12439
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12255
12440
|
shadowTarget: shadowTarget$LWS
|
|
@@ -12268,73 +12453,45 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12268
12453
|
var _selectedTarget16$LWS;
|
|
12269
12454
|
const errorToThrow$LWS = (_selectedTarget16$LWS = selectedTarget$LWS) != null ? _selectedTarget16$LWS : error;
|
|
12270
12455
|
selectedTarget$LWS = undefined;
|
|
12271
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12272
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12273
|
-
}
|
|
12274
12456
|
throw errorToThrow$LWS;
|
|
12275
12457
|
}
|
|
12276
|
-
|
|
12277
|
-
activity$LWS.stop();
|
|
12278
|
-
} // Getting forged descriptors of handshake properties is not allowed.
|
|
12279
|
-
|
|
12458
|
+
// Getting forged descriptors of handshake properties is not allowed.
|
|
12280
12459
|
if (IS_NOT_IN_SHADOW_REALM$LWS && safeDesc$LWS && (key$LWS === LOCKER_NEAR_MEMBRANE_SYMBOL$LWS || key$LWS === LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS)) {
|
|
12281
12460
|
throw new TypeErrorCtor$LWS(ERR_ILLEGAL_PROPERTY_ACCESS$LWS);
|
|
12282
12461
|
}
|
|
12283
12462
|
return safeDesc$LWS;
|
|
12284
12463
|
}
|
|
12285
12464
|
static passthruPreventExtensionsTrap(_shadowTarget$LWS) {
|
|
12286
|
-
lastProxyTrapCalled$LWS = 1024
|
|
12287
|
-
/* ProxyHandlerTraps.PreventExtensions */;
|
|
12288
|
-
|
|
12289
|
-
let activity$LWS;
|
|
12290
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12291
|
-
activity$LWS = startActivity$LWS('Reflect.preventExtensions');
|
|
12292
|
-
}
|
|
12465
|
+
lastProxyTrapCalled$LWS = 1024 /* ProxyHandlerTraps.PreventExtensions */;
|
|
12293
12466
|
const {
|
|
12294
12467
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12295
12468
|
shadowTarget: shadowTarget$LWS
|
|
12296
12469
|
} = this;
|
|
12297
12470
|
let result$LWS = true;
|
|
12298
12471
|
if (ReflectIsExtensible$LWS(shadowTarget$LWS)) {
|
|
12299
|
-
let resultEnum$LWS = 0
|
|
12300
|
-
/* PreventExtensionsResult.None */;
|
|
12301
|
-
|
|
12472
|
+
let resultEnum$LWS = 0 /* PreventExtensionsResult.None */;
|
|
12302
12473
|
try {
|
|
12303
12474
|
resultEnum$LWS = foreignCallablePreventExtensions$LWS(foreignTargetPointer$LWS);
|
|
12304
12475
|
} catch (error) {
|
|
12305
12476
|
var _selectedTarget17$LWS;
|
|
12306
12477
|
const errorToThrow$LWS = (_selectedTarget17$LWS = selectedTarget$LWS) != null ? _selectedTarget17$LWS : error;
|
|
12307
12478
|
selectedTarget$LWS = undefined;
|
|
12308
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12309
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12310
|
-
}
|
|
12311
12479
|
throw errorToThrow$LWS;
|
|
12312
|
-
}
|
|
12480
|
+
}
|
|
12481
|
+
// If the target is a proxy it might reject the
|
|
12313
12482
|
// preventExtension call, in which case we should not
|
|
12314
12483
|
// attempt to lock down the shadow target.
|
|
12315
|
-
|
|
12316
|
-
if (!(resultEnum$LWS & 1
|
|
12317
|
-
/* PreventExtensionsResult.Extensible */)) {
|
|
12484
|
+
if (!(resultEnum$LWS & 1 /* PreventExtensionsResult.Extensible */)) {
|
|
12318
12485
|
copyForeignOwnPropertyDescriptorsAndPrototypeToShadowTarget$LWS(foreignTargetPointer$LWS, shadowTarget$LWS);
|
|
12319
12486
|
ReflectPreventExtensions$LWS(shadowTarget$LWS);
|
|
12320
12487
|
}
|
|
12321
|
-
result$LWS = !(resultEnum$LWS & 2
|
|
12322
|
-
/* PreventExtensionsResult.False */);
|
|
12488
|
+
result$LWS = !(resultEnum$LWS & 2 /* PreventExtensionsResult.False */);
|
|
12323
12489
|
}
|
|
12324
12490
|
|
|
12325
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12326
|
-
activity$LWS.stop();
|
|
12327
|
-
}
|
|
12328
12491
|
return result$LWS;
|
|
12329
12492
|
}
|
|
12330
12493
|
static passthruSetPrototypeOfTrap(_shadowTarget$LWS, proto$LWS) {
|
|
12331
|
-
lastProxyTrapCalled$LWS = 4096
|
|
12332
|
-
/* ProxyHandlerTraps.SetPrototypeOf */;
|
|
12333
|
-
|
|
12334
|
-
let activity$LWS;
|
|
12335
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12336
|
-
activity$LWS = startActivity$LWS('Reflect.setPrototypeOf');
|
|
12337
|
-
}
|
|
12494
|
+
lastProxyTrapCalled$LWS = 4096 /* ProxyHandlerTraps.SetPrototypeOf */;
|
|
12338
12495
|
const {
|
|
12339
12496
|
foreignTargetPointer: foreignTargetPointer$LWS
|
|
12340
12497
|
} = this;
|
|
@@ -12346,74 +12503,52 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12346
12503
|
var _selectedTarget18$LWS;
|
|
12347
12504
|
const errorToThrow$LWS = (_selectedTarget18$LWS = selectedTarget$LWS) != null ? _selectedTarget18$LWS : error;
|
|
12348
12505
|
selectedTarget$LWS = undefined;
|
|
12349
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12350
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12351
|
-
}
|
|
12352
12506
|
throw errorToThrow$LWS;
|
|
12353
12507
|
}
|
|
12354
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12355
|
-
activity$LWS.stop();
|
|
12356
|
-
}
|
|
12357
12508
|
if (useFastForeignTargetPath$LWS && result$LWS) {
|
|
12358
12509
|
fastForeignTargetPointers$LWS.delete(foreignTargetPointer$LWS);
|
|
12359
12510
|
}
|
|
12360
12511
|
return result$LWS;
|
|
12361
12512
|
}
|
|
12362
12513
|
static passthruSetTrap(_shadowTarget$LWS, key$LWS, value$LWS, receiver$LWS) {
|
|
12363
|
-
lastProxyTrapCalled$LWS = 2048
|
|
12364
|
-
/* ProxyHandlerTraps.Set */;
|
|
12365
|
-
|
|
12514
|
+
lastProxyTrapCalled$LWS = 2048 /* ProxyHandlerTraps.Set */;
|
|
12366
12515
|
const {
|
|
12367
12516
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12368
12517
|
proxy: proxy$LWS,
|
|
12369
12518
|
shadowTarget: shadowTarget$LWS
|
|
12370
|
-
} = this;
|
|
12519
|
+
} = this;
|
|
12520
|
+
// Intentionally ignoring `document.all`.
|
|
12371
12521
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
12372
12522
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
12373
|
-
|
|
12374
12523
|
if (typeof value$LWS === 'undefined') {
|
|
12375
12524
|
value$LWS = undefined;
|
|
12376
12525
|
}
|
|
12377
12526
|
if (typeof receiver$LWS === 'undefined') {
|
|
12378
12527
|
receiver$LWS = proxy$LWS;
|
|
12379
|
-
}
|
|
12380
|
-
|
|
12528
|
+
}
|
|
12529
|
+
// Setting forged values of handshake properties is not allowed.
|
|
12381
12530
|
if (IS_NOT_IN_SHADOW_REALM$LWS && (key$LWS === LOCKER_NEAR_MEMBRANE_SYMBOL$LWS || key$LWS === LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS)) {
|
|
12382
12531
|
throw new TypeErrorCtor$LWS(ERR_ILLEGAL_PROPERTY_ACCESS$LWS);
|
|
12383
12532
|
}
|
|
12384
12533
|
const isFastPath$LWS = proxy$LWS === receiver$LWS;
|
|
12385
|
-
let activity$LWS;
|
|
12386
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12387
|
-
activity$LWS = startActivity$LWS(isFastPath$LWS ? 'Reflect.set' : 'passthruForeignTraversedSet');
|
|
12388
|
-
}
|
|
12389
12534
|
let result$LWS = false;
|
|
12390
12535
|
try {
|
|
12391
12536
|
result$LWS = isFastPath$LWS ? foreignCallableSet$LWS(foreignTargetPointer$LWS, key$LWS,
|
|
12392
12537
|
// Inline getTransferableValue().
|
|
12393
|
-
typeof value$LWS === 'object' && value$LWS !== null || typeof value$LWS === 'function' ? getTransferablePointer$LWS(value$LWS) : value$LWS
|
|
12538
|
+
typeof value$LWS === 'object' && value$LWS !== null || typeof value$LWS === 'function' ? getTransferablePointer$LWS(value$LWS) : value$LWS) : passthruForeignTraversedSet$LWS(foreignTargetPointer$LWS, shadowTarget$LWS, key$LWS, value$LWS, receiver$LWS);
|
|
12394
12539
|
} catch (error) {
|
|
12395
12540
|
var _selectedTarget19$LWS;
|
|
12396
12541
|
const errorToThrow$LWS = (_selectedTarget19$LWS = selectedTarget$LWS) != null ? _selectedTarget19$LWS : error;
|
|
12397
12542
|
selectedTarget$LWS = undefined;
|
|
12398
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12399
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12400
|
-
}
|
|
12401
12543
|
throw errorToThrow$LWS;
|
|
12402
12544
|
}
|
|
12403
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12404
|
-
activity$LWS.stop();
|
|
12405
|
-
}
|
|
12406
12545
|
return result$LWS;
|
|
12407
12546
|
}
|
|
12408
|
-
}
|
|
12547
|
+
}
|
|
12548
|
+
// Logic implementation of all traps.
|
|
12409
12549
|
// Hybrid traps:
|
|
12410
12550
|
// (traps that operate on their shadowTarget, proxy, and foreignTargetPointer):
|
|
12411
|
-
|
|
12412
12551
|
BoundaryProxyHandler$LWS.hybridGetTrap = IS_IN_SHADOW_REALM$LWS ? function (_shadowTarget$LWS, key$LWS, receiver$LWS) {
|
|
12413
|
-
let activity$LWS;
|
|
12414
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12415
|
-
activity$LWS = startActivity$LWS('hybridGetTrap');
|
|
12416
|
-
}
|
|
12417
12552
|
const {
|
|
12418
12553
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12419
12554
|
foreignTargetTraits: foreignTargetTraits$LWS,
|
|
@@ -12430,9 +12565,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12430
12565
|
var _selectedTarget20$LWS;
|
|
12431
12566
|
const errorToThrow$LWS = (_selectedTarget20$LWS = selectedTarget$LWS) != null ? _selectedTarget20$LWS : error;
|
|
12432
12567
|
selectedTarget$LWS = undefined;
|
|
12433
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12434
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12435
|
-
}
|
|
12436
12568
|
throw errorToThrow$LWS;
|
|
12437
12569
|
}
|
|
12438
12570
|
if (typeof pointerOrPrimitive$LWS === 'function') {
|
|
@@ -12462,9 +12594,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12462
12594
|
var _selectedTarget21$LWS;
|
|
12463
12595
|
const errorToThrow$LWS = (_selectedTarget21$LWS = selectedTarget$LWS) != null ? _selectedTarget21$LWS : error;
|
|
12464
12596
|
selectedTarget$LWS = undefined;
|
|
12465
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12466
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12467
|
-
}
|
|
12468
12597
|
throw errorToThrow$LWS;
|
|
12469
12598
|
}
|
|
12470
12599
|
if (typeof pointerOrPrimitive$LWS === 'function') {
|
|
@@ -12496,9 +12625,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12496
12625
|
var _selectedTarget22$LWS;
|
|
12497
12626
|
const errorToThrow$LWS = (_selectedTarget22$LWS = selectedTarget$LWS) != null ? _selectedTarget22$LWS : error;
|
|
12498
12627
|
selectedTarget$LWS = undefined;
|
|
12499
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12500
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12501
|
-
}
|
|
12502
12628
|
throw errorToThrow$LWS;
|
|
12503
12629
|
}
|
|
12504
12630
|
if (typeof pointerOrPrimitive$LWS === 'function') {
|
|
@@ -12510,8 +12636,7 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12510
12636
|
}
|
|
12511
12637
|
}
|
|
12512
12638
|
}
|
|
12513
|
-
if (safeDesc$LWS === undefined && result$LWS === undefined && key$LWS === SymbolToStringTag$LWS && foreignTargetTraits$LWS & 16
|
|
12514
|
-
/* TargetTraits.IsObject */) {
|
|
12639
|
+
if (safeDesc$LWS === undefined && result$LWS === undefined && key$LWS === SymbolToStringTag$LWS && foreignTargetTraits$LWS & 16 /* TargetTraits.IsObject */) {
|
|
12515
12640
|
let toStringTag$LWS;
|
|
12516
12641
|
try {
|
|
12517
12642
|
toStringTag$LWS = foreignCallableGetToStringTagOfTarget$LWS(foreignTargetPointer$LWS);
|
|
@@ -12519,29 +12644,19 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12519
12644
|
var _selectedTarget23$LWS;
|
|
12520
12645
|
const errorToThrow$LWS = (_selectedTarget23$LWS = selectedTarget$LWS) != null ? _selectedTarget23$LWS : error;
|
|
12521
12646
|
selectedTarget$LWS = undefined;
|
|
12522
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12523
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12524
|
-
}
|
|
12525
12647
|
throw errorToThrow$LWS;
|
|
12526
|
-
}
|
|
12648
|
+
}
|
|
12649
|
+
// The default language toStringTag is "Object". If we
|
|
12527
12650
|
// receive "Object" we return `undefined` to let the
|
|
12528
12651
|
// language resolve it naturally without projecting a
|
|
12529
12652
|
// value.
|
|
12530
|
-
|
|
12531
12653
|
if (toStringTag$LWS !== 'Object') {
|
|
12532
12654
|
result$LWS = toStringTag$LWS;
|
|
12533
12655
|
}
|
|
12534
12656
|
}
|
|
12535
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12536
|
-
activity$LWS.stop();
|
|
12537
|
-
}
|
|
12538
12657
|
return result$LWS;
|
|
12539
12658
|
} : noop$LWS;
|
|
12540
12659
|
BoundaryProxyHandler$LWS.hybridGetTrapForTypedArray = IS_IN_SHADOW_REALM$LWS ? function (_shadowTarget$LWS, key$LWS, receiver$LWS) {
|
|
12541
|
-
let activity$LWS;
|
|
12542
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12543
|
-
activity$LWS = startActivity$LWS('hybridGetTrapForTypedArray');
|
|
12544
|
-
}
|
|
12545
12660
|
const {
|
|
12546
12661
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12547
12662
|
foreignTargetTypedArrayLength: foreignTargetTypedArrayLength$LWS,
|
|
@@ -12562,9 +12677,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12562
12677
|
var _selectedTarget24$LWS;
|
|
12563
12678
|
const errorToThrow$LWS = (_selectedTarget24$LWS = selectedTarget$LWS) != null ? _selectedTarget24$LWS : error;
|
|
12564
12679
|
selectedTarget$LWS = undefined;
|
|
12565
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12566
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12567
|
-
}
|
|
12568
12680
|
throw errorToThrow$LWS;
|
|
12569
12681
|
}
|
|
12570
12682
|
if (typeof pointerOrPrimitive$LWS === 'function') {
|
|
@@ -12594,9 +12706,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12594
12706
|
var _selectedTarget25$LWS;
|
|
12595
12707
|
const errorToThrow$LWS = (_selectedTarget25$LWS = selectedTarget$LWS) != null ? _selectedTarget25$LWS : error;
|
|
12596
12708
|
selectedTarget$LWS = undefined;
|
|
12597
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12598
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12599
|
-
}
|
|
12600
12709
|
throw errorToThrow$LWS;
|
|
12601
12710
|
}
|
|
12602
12711
|
if (typeof pointerOrPrimitive$LWS === 'function') {
|
|
@@ -12619,16 +12728,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12619
12728
|
}
|
|
12620
12729
|
}
|
|
12621
12730
|
}
|
|
12622
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12623
|
-
activity$LWS.stop();
|
|
12624
|
-
}
|
|
12625
12731
|
return result$LWS;
|
|
12626
12732
|
} : noop$LWS;
|
|
12627
12733
|
BoundaryProxyHandler$LWS.hybridHasTrap = IS_IN_SHADOW_REALM$LWS ? function (_shadowTarget$LWS, key$LWS) {
|
|
12628
|
-
let activity$LWS;
|
|
12629
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12630
|
-
activity$LWS = startActivity$LWS('hybridHasTrap');
|
|
12631
|
-
}
|
|
12632
12734
|
let trueOrProtoPointerOrNull$LWS;
|
|
12633
12735
|
try {
|
|
12634
12736
|
trueOrProtoPointerOrNull$LWS = foreignCallableBatchGetPrototypeOfWhenHasNoOwnProperty$LWS(this.foreignTargetPointer, key$LWS);
|
|
@@ -12636,9 +12738,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12636
12738
|
var _selectedTarget26$LWS;
|
|
12637
12739
|
const errorToThrow$LWS = (_selectedTarget26$LWS = selectedTarget$LWS) != null ? _selectedTarget26$LWS : error;
|
|
12638
12740
|
selectedTarget$LWS = undefined;
|
|
12639
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12640
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12641
|
-
}
|
|
12642
12741
|
throw errorToThrow$LWS;
|
|
12643
12742
|
}
|
|
12644
12743
|
let result$LWS = false;
|
|
@@ -12663,21 +12762,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12663
12762
|
currentObject$LWS = ReflectGetPrototypeOf$LWS(currentObject$LWS);
|
|
12664
12763
|
}
|
|
12665
12764
|
}
|
|
12666
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12667
|
-
activity$LWS.stop();
|
|
12668
|
-
}
|
|
12669
12765
|
return result$LWS;
|
|
12670
12766
|
} : alwaysFalse$LWS;
|
|
12671
12767
|
BoundaryProxyHandler$LWS.passthruGetTrap = IS_NOT_IN_SHADOW_REALM$LWS ? function (_shadowTarget$LWS, key$LWS, receiver$LWS) {
|
|
12672
12768
|
// Only allow accessing handshake property values if the
|
|
12673
12769
|
// "has" trap has been triggered immediately BEFORE and
|
|
12674
12770
|
// the property does NOT exist.
|
|
12675
|
-
handshakePropertyFlag$LWS && (handshakePropertyFlag$LWS = lastProxyTrapCalled$LWS === 128
|
|
12676
|
-
/* ProxyHandlerTraps.
|
|
12677
|
-
|
|
12678
|
-
lastProxyTrapCalled$LWS = 16
|
|
12679
|
-
/* ProxyHandlerTraps.Get */;
|
|
12680
|
-
|
|
12771
|
+
handshakePropertyFlag$LWS && (handshakePropertyFlag$LWS = lastProxyTrapCalled$LWS === 128 /* ProxyHandlerTraps.Has */);
|
|
12772
|
+
lastProxyTrapCalled$LWS = 16 /* ProxyHandlerTraps.Get */;
|
|
12681
12773
|
const isNearMembraneSymbol$LWS = key$LWS === LOCKER_NEAR_MEMBRANE_SYMBOL$LWS;
|
|
12682
12774
|
const isNearMembraneSerializedValueSymbol$LWS = key$LWS === LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS;
|
|
12683
12775
|
if (handshakePropertyFlag$LWS) {
|
|
@@ -12692,10 +12784,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12692
12784
|
return this.serialize();
|
|
12693
12785
|
}
|
|
12694
12786
|
}
|
|
12695
|
-
let activity$LWS;
|
|
12696
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12697
|
-
activity$LWS = startActivity$LWS('Reflect.get');
|
|
12698
|
-
}
|
|
12699
12787
|
const {
|
|
12700
12788
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12701
12789
|
foreignTargetTraits: foreignTargetTraits$LWS,
|
|
@@ -12714,9 +12802,6 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12714
12802
|
var _selectedTarget27$LWS;
|
|
12715
12803
|
const errorToThrow$LWS = (_selectedTarget27$LWS = selectedTarget$LWS) != null ? _selectedTarget27$LWS : error;
|
|
12716
12804
|
selectedTarget$LWS = undefined;
|
|
12717
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12718
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12719
|
-
}
|
|
12720
12805
|
throw errorToThrow$LWS;
|
|
12721
12806
|
}
|
|
12722
12807
|
let result$LWS;
|
|
@@ -12727,23 +12812,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12727
12812
|
} else {
|
|
12728
12813
|
result$LWS = pointerOrPrimitive$LWS;
|
|
12729
12814
|
}
|
|
12730
|
-
|
|
12731
|
-
activity$LWS.stop();
|
|
12732
|
-
} // Getting forged values of handshake properties is not allowed.
|
|
12733
|
-
|
|
12815
|
+
// Getting forged values of handshake properties is not allowed.
|
|
12734
12816
|
if (result$LWS !== undefined && (isNearMembraneSymbol$LWS || isNearMembraneSerializedValueSymbol$LWS)) {
|
|
12735
12817
|
throw new TypeErrorCtor$LWS(ERR_ILLEGAL_PROPERTY_ACCESS$LWS);
|
|
12736
12818
|
}
|
|
12737
12819
|
return result$LWS;
|
|
12738
12820
|
} : noop$LWS;
|
|
12739
12821
|
BoundaryProxyHandler$LWS.passthruHasTrap = IS_NOT_IN_SHADOW_REALM$LWS ? function (_shadowTarget$LWS, key$LWS) {
|
|
12740
|
-
lastProxyTrapCalled$LWS = 128
|
|
12741
|
-
/* ProxyHandlerTraps.Has */;
|
|
12742
|
-
|
|
12743
|
-
let activity$LWS;
|
|
12744
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12745
|
-
activity$LWS = startActivity$LWS('Reflect.has');
|
|
12746
|
-
}
|
|
12822
|
+
lastProxyTrapCalled$LWS = 128 /* ProxyHandlerTraps.Has */;
|
|
12747
12823
|
let result$LWS;
|
|
12748
12824
|
try {
|
|
12749
12825
|
result$LWS = foreignCallableHas$LWS(this.foreignTargetPointer, key$LWS);
|
|
@@ -12751,17 +12827,14 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12751
12827
|
var _selectedTarget28$LWS;
|
|
12752
12828
|
const errorToThrow$LWS = (_selectedTarget28$LWS = selectedTarget$LWS) != null ? _selectedTarget28$LWS : error;
|
|
12753
12829
|
selectedTarget$LWS = undefined;
|
|
12754
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12755
|
-
activity$LWS.error(errorToThrow$LWS);
|
|
12756
|
-
}
|
|
12757
12830
|
throw errorToThrow$LWS;
|
|
12758
12831
|
}
|
|
12759
12832
|
const isNearMembraneSymbol$LWS = key$LWS === LOCKER_NEAR_MEMBRANE_SYMBOL$LWS;
|
|
12760
12833
|
const isNearMembraneSerializedValueSymbol$LWS = key$LWS === LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS;
|
|
12761
12834
|
if (result$LWS) {
|
|
12762
|
-
handshakePropertyFlag$LWS = false;
|
|
12835
|
+
handshakePropertyFlag$LWS = false;
|
|
12836
|
+
// Checking the existence of forged handshake properties
|
|
12763
12837
|
// is not allowed.
|
|
12764
|
-
|
|
12765
12838
|
if (isNearMembraneSymbol$LWS || isNearMembraneSerializedValueSymbol$LWS) {
|
|
12766
12839
|
throw new TypeErrorCtor$LWS(ERR_ILLEGAL_PROPERTY_ACCESS$LWS);
|
|
12767
12840
|
}
|
|
@@ -12770,19 +12843,16 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12770
12843
|
// property does NOT exist on the object or its [[Prototype]].
|
|
12771
12844
|
handshakePropertyFlag$LWS = isNearMembraneSymbol$LWS || isNearMembraneSerializedValueSymbol$LWS;
|
|
12772
12845
|
}
|
|
12773
|
-
if (LOCKER_INSTRUMENTATION_FLAG$LWS) {
|
|
12774
|
-
activity$LWS.stop();
|
|
12775
|
-
}
|
|
12776
12846
|
return result$LWS;
|
|
12777
|
-
} : alwaysFalse$LWS;
|
|
12778
|
-
|
|
12847
|
+
} : alwaysFalse$LWS;
|
|
12848
|
+
// Pending traps:
|
|
12779
12849
|
BoundaryProxyHandler$LWS.pendingDefinePropertyTrap = IS_IN_SHADOW_REALM$LWS ? function (shadowTarget$LWS, key$LWS, unsafePartialDesc$LWS) {
|
|
12780
12850
|
const {
|
|
12781
12851
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12782
12852
|
foreignTargetTraits: foreignTargetTraits$LWS
|
|
12783
|
-
} = this;
|
|
12853
|
+
} = this;
|
|
12854
|
+
// We don't wrap `foreignCallableIsTargetLive()` in a
|
|
12784
12855
|
// try-catch because it cannot throw.
|
|
12785
|
-
|
|
12786
12856
|
if (foreignCallableIsTargetLive$LWS(foreignTargetPointer$LWS, foreignTargetTraits$LWS)) {
|
|
12787
12857
|
this.makeProxyLive();
|
|
12788
12858
|
} else {
|
|
@@ -12821,9 +12891,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12821
12891
|
const {
|
|
12822
12892
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12823
12893
|
foreignTargetTraits: foreignTargetTraits$LWS
|
|
12824
|
-
} = this;
|
|
12894
|
+
} = this;
|
|
12895
|
+
// We don't wrap `foreignCallableIsTargetLive()` in a
|
|
12825
12896
|
// try-catch because it cannot throw.
|
|
12826
|
-
|
|
12827
12897
|
if (foreignCallableIsTargetLive$LWS(foreignTargetPointer$LWS, foreignTargetTraits$LWS)) {
|
|
12828
12898
|
this.makeProxyLive();
|
|
12829
12899
|
} else {
|
|
@@ -12842,9 +12912,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12842
12912
|
const {
|
|
12843
12913
|
foreignTargetPointer: foreignTargetPointer$LWS,
|
|
12844
12914
|
foreignTargetTraits: foreignTargetTraits$LWS
|
|
12845
|
-
} = this;
|
|
12915
|
+
} = this;
|
|
12916
|
+
// We don't wrap `foreignCallableIsTargetLive()` in a
|
|
12846
12917
|
// try-catch because it cannot throw.
|
|
12847
|
-
|
|
12848
12918
|
if (foreignCallableIsTargetLive$LWS(foreignTargetPointer$LWS, foreignTargetTraits$LWS)) {
|
|
12849
12919
|
this.makeProxyLive();
|
|
12850
12920
|
} else {
|
|
@@ -12858,8 +12928,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12858
12928
|
this.makeProxyStatic();
|
|
12859
12929
|
}
|
|
12860
12930
|
return this.set(shadowTarget$LWS, key$LWS, value$LWS, receiver$LWS);
|
|
12861
|
-
} : alwaysFalse$LWS;
|
|
12862
|
-
|
|
12931
|
+
} : alwaysFalse$LWS;
|
|
12932
|
+
// Static traps:
|
|
12863
12933
|
BoundaryProxyHandler$LWS.staticDefinePropertyTrap = IS_IN_SHADOW_REALM$LWS ? ReflectDefineProperty$LWS : alwaysFalse$LWS;
|
|
12864
12934
|
BoundaryProxyHandler$LWS.staticDeletePropertyTrap = IS_IN_SHADOW_REALM$LWS ? ReflectDeleteProperty$LWS : alwaysFalse$LWS;
|
|
12865
12935
|
BoundaryProxyHandler$LWS.staticGetOwnPropertyDescriptorTrap = IS_IN_SHADOW_REALM$LWS ? ReflectGetOwnPropertyDescriptor$LWS : noop$LWS;
|
|
@@ -12870,8 +12940,7 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12870
12940
|
staticToStringTag: staticToStringTag$LWS
|
|
12871
12941
|
} = this;
|
|
12872
12942
|
const result$LWS = ReflectGet$LWS(shadowTarget$LWS, key$LWS, receiver$LWS);
|
|
12873
|
-
if (result$LWS === undefined && key$LWS === SymbolToStringTag$LWS && foreignTargetTraits$LWS & 16
|
|
12874
|
-
/* TargetTraits.IsObject */ &&
|
|
12943
|
+
if (result$LWS === undefined && key$LWS === SymbolToStringTag$LWS && foreignTargetTraits$LWS & 16 /* TargetTraits.IsObject */ &&
|
|
12875
12944
|
// The default language toStringTag is "Object". If we
|
|
12876
12945
|
// receive "Object" we return `undefined` to let the
|
|
12877
12946
|
// language resolve it naturally without projecting a
|
|
@@ -12886,10 +12955,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12886
12955
|
BoundaryProxyHandler$LWS.staticOwnKeysTrap = IS_IN_SHADOW_REALM$LWS ? ReflectOwnKeys$LWS : () => [];
|
|
12887
12956
|
BoundaryProxyHandler$LWS.staticPreventExtensionsTrap = IS_IN_SHADOW_REALM$LWS ? ReflectPreventExtensions$LWS : alwaysFalse$LWS;
|
|
12888
12957
|
BoundaryProxyHandler$LWS.staticSetPrototypeOfTrap = IS_IN_SHADOW_REALM$LWS ? ReflectSetPrototypeOf$LWS : alwaysFalse$LWS;
|
|
12889
|
-
BoundaryProxyHandler$LWS.staticSetTrap = IS_IN_SHADOW_REALM$LWS ? ReflectSet$LWS : alwaysFalse$LWS;
|
|
12958
|
+
BoundaryProxyHandler$LWS.staticSetTrap = IS_IN_SHADOW_REALM$LWS ? ReflectSet$LWS : alwaysFalse$LWS;
|
|
12959
|
+
// Default traps:
|
|
12890
12960
|
// Pending traps are needed for the shadow realm side of the membrane
|
|
12891
12961
|
// to avoid leaking mutation operations on the primary realm side.
|
|
12892
|
-
|
|
12893
12962
|
BoundaryProxyHandler$LWS.defaultDefinePropertyTrap = IS_IN_SHADOW_REALM$LWS ? BoundaryProxyHandler$LWS.pendingDefinePropertyTrap : BoundaryProxyHandler$LWS.passthruDefinePropertyTrap;
|
|
12894
12963
|
BoundaryProxyHandler$LWS.defaultDeletePropertyTrap = IS_IN_SHADOW_REALM$LWS ? BoundaryProxyHandler$LWS.pendingDeletePropertyTrap : BoundaryProxyHandler$LWS.passthruDeletePropertyTrap;
|
|
12895
12964
|
BoundaryProxyHandler$LWS.defaultGetOwnPropertyDescriptorTrap = BoundaryProxyHandler$LWS.passthruGetOwnPropertyDescriptorTrap;
|
|
@@ -12904,8 +12973,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12904
12973
|
if (IS_IN_SHADOW_REALM$LWS) {
|
|
12905
12974
|
// Initialize `fastForeignTargetPointers` weak map.
|
|
12906
12975
|
clearFastForeignTargetPointers$LWS();
|
|
12907
|
-
}
|
|
12908
|
-
|
|
12976
|
+
}
|
|
12977
|
+
// Export callable hooks to a foreign realm.
|
|
12909
12978
|
foreignCallableHooksCallback$LWS(
|
|
12910
12979
|
// globalThisPointer
|
|
12911
12980
|
// When crossing, should be mapped to the foreign globalThis
|
|
@@ -12920,10 +12989,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12920
12989
|
value$LWS => {
|
|
12921
12990
|
if (typeof value$LWS === 'object' && value$LWS !== null || typeof value$LWS === 'function') {
|
|
12922
12991
|
return getTransferablePointer$LWS(value$LWS);
|
|
12923
|
-
}
|
|
12992
|
+
}
|
|
12993
|
+
// Intentionally ignoring `document.all`.
|
|
12924
12994
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
12925
12995
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
12926
|
-
|
|
12927
12996
|
return typeof value$LWS === 'undefined' ? undefined : value$LWS;
|
|
12928
12997
|
},
|
|
12929
12998
|
// callableGetPropertyValuePointer: this callable function allows
|
|
@@ -12934,10 +13003,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12934
13003
|
targetPointer$LWS();
|
|
12935
13004
|
const target$LWS = selectedTarget$LWS;
|
|
12936
13005
|
selectedTarget$LWS = undefined;
|
|
12937
|
-
const value$LWS = target$LWS == null ? void 0 : target$LWS[key$LWS];
|
|
13006
|
+
const value$LWS = target$LWS == null ? void 0 : target$LWS[key$LWS];
|
|
13007
|
+
// Intentionally ignoring `document.all`.
|
|
12938
13008
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
12939
13009
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
12940
|
-
|
|
12941
13010
|
return createPointer$LWS(typeof value$LWS === 'undefined' ? undefined : value$LWS);
|
|
12942
13011
|
},
|
|
12943
13012
|
// callableEvaluate
|
|
@@ -12947,8 +13016,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
12947
13016
|
result$LWS = localEval$LWS(sourceText$LWS);
|
|
12948
13017
|
} catch (error) {
|
|
12949
13018
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
12950
|
-
}
|
|
12951
|
-
|
|
13019
|
+
}
|
|
13020
|
+
// Inline getTransferableValue().
|
|
12952
13021
|
return typeof result$LWS === 'object' && result$LWS !== null || typeof result$LWS === 'function' ? getTransferablePointer$LWS(result$LWS) : result$LWS;
|
|
12953
13022
|
} : noop$LWS,
|
|
12954
13023
|
// callableLinkPointers: this callable function allows the foreign
|
|
@@ -13004,8 +13073,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13004
13073
|
result$LWS = ReflectApply$LWS(func$LWS, thisArg$LWS, args$LWS);
|
|
13005
13074
|
} catch (error) {
|
|
13006
13075
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13007
|
-
}
|
|
13008
|
-
|
|
13076
|
+
}
|
|
13077
|
+
// Inline getTransferableValue().
|
|
13009
13078
|
return typeof result$LWS === 'object' && result$LWS !== null || typeof result$LWS === 'function' ? getTransferablePointer$LWS(result$LWS) :
|
|
13010
13079
|
// Intentionally ignoring `document.all`.
|
|
13011
13080
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
@@ -13038,8 +13107,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13038
13107
|
result$LWS = ReflectConstruct$LWS(constructor$LWS, args$LWS, newTarget$LWS);
|
|
13039
13108
|
} catch (error) {
|
|
13040
13109
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13041
|
-
}
|
|
13042
|
-
|
|
13110
|
+
}
|
|
13111
|
+
// Inline getTransferableValue().
|
|
13043
13112
|
return typeof result$LWS === 'object' && result$LWS !== null || typeof result$LWS === 'function' ? getTransferablePointer$LWS(result$LWS) :
|
|
13044
13113
|
// Intentionally ignoring `document.all`.
|
|
13045
13114
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
@@ -13116,22 +13185,21 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13116
13185
|
result$LWS = ReflectGet$LWS(target$LWS, key$LWS, receiver$LWS);
|
|
13117
13186
|
} catch (error) {
|
|
13118
13187
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13119
|
-
}
|
|
13120
|
-
|
|
13188
|
+
}
|
|
13189
|
+
// Inline getTransferableValue().
|
|
13121
13190
|
if (typeof result$LWS === 'object' && result$LWS !== null || typeof result$LWS === 'function') {
|
|
13122
13191
|
return getTransferablePointer$LWS(result$LWS);
|
|
13123
13192
|
}
|
|
13124
|
-
if (result$LWS === undefined && key$LWS === SymbolToStringTag$LWS && targetTraits$LWS & 16
|
|
13125
|
-
/* TargetTraits.IsObject */) {
|
|
13193
|
+
if (result$LWS === undefined && key$LWS === SymbolToStringTag$LWS && targetTraits$LWS & 16 /* TargetTraits.IsObject */) {
|
|
13126
13194
|
try {
|
|
13127
13195
|
if (!(key$LWS in target$LWS)) {
|
|
13128
13196
|
// Section 19.1.3.6 Object.prototype.toString()
|
|
13129
13197
|
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
13130
|
-
const brand$LWS = ReflectApply$LWS(ObjectProtoToString$LWS, target$LWS, []);
|
|
13198
|
+
const brand$LWS = ReflectApply$LWS(ObjectProtoToString$LWS, target$LWS, []);
|
|
13199
|
+
// The default language toStringTag is "Object". If
|
|
13131
13200
|
// we receive "[object Object]" we return `undefined`
|
|
13132
13201
|
// to let the language resolve it naturally without
|
|
13133
13202
|
// projecting a value.
|
|
13134
|
-
|
|
13135
13203
|
if (brand$LWS !== '[object Object]') {
|
|
13136
13204
|
result$LWS = ReflectApply$LWS(StringProtoSlice$LWS, brand$LWS, [8, -1]);
|
|
13137
13205
|
}
|
|
@@ -13139,10 +13207,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13139
13207
|
} catch (error) {
|
|
13140
13208
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13141
13209
|
}
|
|
13142
|
-
}
|
|
13210
|
+
}
|
|
13211
|
+
// Intentionally ignoring `document.all`.
|
|
13143
13212
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
13144
13213
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
13145
|
-
|
|
13146
13214
|
return typeof result$LWS === 'undefined' ? undefined : result$LWS;
|
|
13147
13215
|
},
|
|
13148
13216
|
// callableGetOwnPropertyDescriptor
|
|
@@ -13186,10 +13254,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13186
13254
|
proto$LWS = ReflectGetPrototypeOf$LWS(target$LWS);
|
|
13187
13255
|
} catch (error) {
|
|
13188
13256
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13189
|
-
}
|
|
13257
|
+
}
|
|
13258
|
+
// Intentionally ignoring `document.all`.
|
|
13190
13259
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
13191
13260
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
13192
|
-
|
|
13193
13261
|
if (typeof proto$LWS === 'undefined') {
|
|
13194
13262
|
return null;
|
|
13195
13263
|
}
|
|
@@ -13235,16 +13303,12 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13235
13303
|
targetPointer$LWS();
|
|
13236
13304
|
const target$LWS = selectedTarget$LWS;
|
|
13237
13305
|
selectedTarget$LWS = undefined;
|
|
13238
|
-
let result$LWS = 2
|
|
13239
|
-
/* PreventExtensionsResult.False */;
|
|
13240
|
-
|
|
13306
|
+
let result$LWS = 2 /* PreventExtensionsResult.False */;
|
|
13241
13307
|
try {
|
|
13242
13308
|
if (ReflectPreventExtensions$LWS(target$LWS)) {
|
|
13243
|
-
result$LWS = 4
|
|
13244
|
-
/* PreventExtensionsResult.True */;
|
|
13309
|
+
result$LWS = 4 /* PreventExtensionsResult.True */;
|
|
13245
13310
|
} else if (ReflectIsExtensible$LWS(target$LWS)) {
|
|
13246
|
-
result$LWS |= 1
|
|
13247
|
-
/* PreventExtensionsResult.Extensible */;
|
|
13311
|
+
result$LWS |= 1 /* PreventExtensionsResult.Extensible */;
|
|
13248
13312
|
}
|
|
13249
13313
|
} catch (error) {
|
|
13250
13314
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
@@ -13252,7 +13316,7 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13252
13316
|
return result$LWS;
|
|
13253
13317
|
},
|
|
13254
13318
|
// callableSet
|
|
13255
|
-
(targetPointer$LWS, key$LWS, valuePointerOrPrimitive$LWS
|
|
13319
|
+
(targetPointer$LWS, key$LWS, valuePointerOrPrimitive$LWS) => {
|
|
13256
13320
|
targetPointer$LWS();
|
|
13257
13321
|
const target$LWS = selectedTarget$LWS;
|
|
13258
13322
|
selectedTarget$LWS = undefined;
|
|
@@ -13264,16 +13328,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13264
13328
|
} else {
|
|
13265
13329
|
value$LWS = valuePointerOrPrimitive$LWS;
|
|
13266
13330
|
}
|
|
13267
|
-
let receiver$LWS;
|
|
13268
|
-
if (typeof receiverPointerOrPrimitive$LWS === 'function') {
|
|
13269
|
-
receiverPointerOrPrimitive$LWS();
|
|
13270
|
-
receiver$LWS = selectedTarget$LWS;
|
|
13271
|
-
selectedTarget$LWS = undefined;
|
|
13272
|
-
} else {
|
|
13273
|
-
receiver$LWS = receiverPointerOrPrimitive$LWS === LOCKER_NEAR_MEMBRANE_UNDEFINED_VALUE_SYMBOL$LWS ? target$LWS : receiverPointerOrPrimitive$LWS;
|
|
13274
|
-
}
|
|
13275
13331
|
try {
|
|
13276
|
-
return ReflectSet$LWS(target$LWS, key$LWS, value$LWS,
|
|
13332
|
+
return ReflectSet$LWS(target$LWS, key$LWS, value$LWS, target$LWS);
|
|
13277
13333
|
} catch (error) {
|
|
13278
13334
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13279
13335
|
}
|
|
@@ -13311,7 +13367,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13311
13367
|
}
|
|
13312
13368
|
}
|
|
13313
13369
|
try {
|
|
13314
|
-
ReflectApply$LWS(consoleInfo$LWS, consoleObject$LWS, args$LWS);
|
|
13370
|
+
ReflectApply$LWS(consoleInfo$LWS, consoleObject$LWS, args$LWS);
|
|
13371
|
+
// eslint-disable-next-line no-empty
|
|
13315
13372
|
} catch (_unused29$LWS) {}
|
|
13316
13373
|
}
|
|
13317
13374
|
} : noop$LWS,
|
|
@@ -13344,9 +13401,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13344
13401
|
IS_NOT_IN_SHADOW_REALM$LWS ? targetPointer$LWS => {
|
|
13345
13402
|
targetPointer$LWS();
|
|
13346
13403
|
const target$LWS = selectedTarget$LWS;
|
|
13347
|
-
selectedTarget$LWS = undefined;
|
|
13404
|
+
selectedTarget$LWS = undefined;
|
|
13405
|
+
// We don't wrap the weak map `get()` call in a try-catch
|
|
13348
13406
|
// because we know `target` is an object.
|
|
13349
|
-
|
|
13350
13407
|
const state$LWS = proxyTargetToLazyPropertyDescriptorStateMap$LWS.get(target$LWS);
|
|
13351
13408
|
return state$LWS ? getTransferablePointer$LWS(state$LWS) : state$LWS;
|
|
13352
13409
|
} : noop$LWS,
|
|
@@ -13367,40 +13424,31 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13367
13424
|
IS_NOT_IN_SHADOW_REALM$LWS ? targetPointer$LWS => {
|
|
13368
13425
|
targetPointer$LWS();
|
|
13369
13426
|
const target$LWS = selectedTarget$LWS;
|
|
13370
|
-
selectedTarget$LWS = undefined;
|
|
13427
|
+
selectedTarget$LWS = undefined;
|
|
13428
|
+
// A target may be a proxy that is revoked or throws in its
|
|
13371
13429
|
// "isExtensible" trap.
|
|
13372
|
-
|
|
13373
13430
|
try {
|
|
13374
13431
|
if (!ReflectIsExtensible$LWS(target$LWS)) {
|
|
13375
13432
|
if (ObjectIsFrozen$LWS(target$LWS)) {
|
|
13376
|
-
return 4
|
|
13377
|
-
/* TargetIntegrityTraits.IsFrozen */ & 2
|
|
13378
|
-
/* TargetIntegrityTraits.IsSealed */ & 1
|
|
13379
|
-
/* TargetIntegrityTraits.IsNotExtensible */;
|
|
13433
|
+
return 4 /* TargetIntegrityTraits.IsFrozen */ & 2 /* TargetIntegrityTraits.IsSealed */ & 1 /* TargetIntegrityTraits.IsNotExtensible */;
|
|
13380
13434
|
}
|
|
13381
13435
|
|
|
13382
13436
|
if (ObjectIsSealed$LWS(target$LWS)) {
|
|
13383
|
-
return 2
|
|
13384
|
-
/* TargetIntegrityTraits.IsSealed */ & 1
|
|
13385
|
-
/* TargetIntegrityTraits.IsNotExtensible */;
|
|
13437
|
+
return 2 /* TargetIntegrityTraits.IsSealed */ & 1 /* TargetIntegrityTraits.IsNotExtensible */;
|
|
13386
13438
|
}
|
|
13387
13439
|
|
|
13388
|
-
return 1
|
|
13389
|
-
/* TargetIntegrityTraits.IsNotExtensible */;
|
|
13440
|
+
return 1 /* TargetIntegrityTraits.IsNotExtensible */;
|
|
13390
13441
|
}
|
|
13391
13442
|
} catch (_unused30$LWS) {
|
|
13392
13443
|
try {
|
|
13393
13444
|
isArrayOrThrowForRevoked$LWS(target$LWS);
|
|
13394
13445
|
} catch (_unused31$LWS) {
|
|
13395
|
-
return 8
|
|
13396
|
-
/* TargetIntegrityTraits.Revoked */;
|
|
13446
|
+
return 8 /* TargetIntegrityTraits.Revoked */;
|
|
13397
13447
|
}
|
|
13398
13448
|
}
|
|
13399
13449
|
|
|
13400
|
-
return 0
|
|
13401
|
-
|
|
13402
|
-
} : () => 0
|
|
13403
|
-
/* TargetIntegrityTraits.None */,
|
|
13450
|
+
return 0 /* TargetIntegrityTraits.None */;
|
|
13451
|
+
} : () => 0 /* TargetIntegrityTraits.None */,
|
|
13404
13452
|
// callableGetToStringTagOfTarget
|
|
13405
13453
|
targetPointer$LWS => {
|
|
13406
13454
|
targetPointer$LWS();
|
|
@@ -13478,7 +13526,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13478
13526
|
selectedTarget$LWS = undefined;
|
|
13479
13527
|
if (target$LWS !== ObjectProto$LWS && target$LWS !== RegExpProto$LWS) {
|
|
13480
13528
|
try {
|
|
13481
|
-
return liveTargetCallback$LWS(target$LWS, targetTraits$LWS);
|
|
13529
|
+
return liveTargetCallback$LWS(target$LWS, targetTraits$LWS);
|
|
13530
|
+
// eslint-disable-next-line no-empty
|
|
13482
13531
|
} catch (_unused32$LWS) {}
|
|
13483
13532
|
}
|
|
13484
13533
|
return false;
|
|
@@ -13490,7 +13539,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13490
13539
|
selectedTarget$LWS = undefined;
|
|
13491
13540
|
try {
|
|
13492
13541
|
isArrayOrThrowForRevoked$LWS(target$LWS);
|
|
13493
|
-
return false;
|
|
13542
|
+
return false;
|
|
13543
|
+
// eslint-disable-next-line no-empty
|
|
13494
13544
|
} catch (_unused33$LWS) {}
|
|
13495
13545
|
return true;
|
|
13496
13546
|
} : alwaysFalse$LWS,
|
|
@@ -13502,7 +13552,8 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13502
13552
|
try {
|
|
13503
13553
|
return SymbolToStringTag$LWS in target$LWS ? serializeTargetByTrialAndError$LWS(target$LWS) :
|
|
13504
13554
|
// Fast path.
|
|
13505
|
-
serializeTargetByBrand$LWS(target$LWS);
|
|
13555
|
+
serializeTargetByBrand$LWS(target$LWS);
|
|
13556
|
+
// eslint-disable-next-line no-empty
|
|
13506
13557
|
} catch (_unused34$LWS) {}
|
|
13507
13558
|
return undefined;
|
|
13508
13559
|
} : noop$LWS,
|
|
@@ -13513,9 +13564,9 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13513
13564
|
selectedTarget$LWS = undefined;
|
|
13514
13565
|
statePointer$LWS();
|
|
13515
13566
|
const state$LWS = selectedTarget$LWS;
|
|
13516
|
-
selectedTarget$LWS = undefined;
|
|
13567
|
+
selectedTarget$LWS = undefined;
|
|
13568
|
+
// We don't wrap the weak map `set()` call in a try-catch
|
|
13517
13569
|
// because we know `target` is an object.
|
|
13518
|
-
|
|
13519
13570
|
proxyTargetToLazyPropertyDescriptorStateMap$LWS.set(target$LWS, state$LWS);
|
|
13520
13571
|
} : noop$LWS,
|
|
13521
13572
|
// callableTrackAsFastTarget
|
|
@@ -13572,10 +13623,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13572
13623
|
proto$LWS = ReflectGetPrototypeOf$LWS(target$LWS);
|
|
13573
13624
|
} catch (error) {
|
|
13574
13625
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13575
|
-
}
|
|
13626
|
+
}
|
|
13627
|
+
// Intentionally ignoring `document.all`.
|
|
13576
13628
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
13577
13629
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
13578
|
-
|
|
13579
13630
|
if (typeof proto$LWS === 'undefined') {
|
|
13580
13631
|
return null;
|
|
13581
13632
|
}
|
|
@@ -13594,10 +13645,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13594
13645
|
proto$LWS = ReflectGetPrototypeOf$LWS(target$LWS);
|
|
13595
13646
|
} catch (error) {
|
|
13596
13647
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13597
|
-
}
|
|
13648
|
+
}
|
|
13649
|
+
// Intentionally ignoring `document.all`.
|
|
13598
13650
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
13599
13651
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
13600
|
-
|
|
13601
13652
|
if (typeof proto$LWS === 'undefined') {
|
|
13602
13653
|
return null;
|
|
13603
13654
|
}
|
|
@@ -13639,10 +13690,10 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13639
13690
|
proto$LWS = ReflectGetPrototypeOf$LWS(target$LWS);
|
|
13640
13691
|
} catch (error) {
|
|
13641
13692
|
throw pushErrorAcrossBoundary$LWS(error);
|
|
13642
|
-
}
|
|
13693
|
+
}
|
|
13694
|
+
// Intentionally ignoring `document.all`.
|
|
13643
13695
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/all
|
|
13644
13696
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
13645
|
-
|
|
13646
13697
|
if (typeof proto$LWS === 'undefined') {
|
|
13647
13698
|
return null;
|
|
13648
13699
|
}
|
|
@@ -13693,48 +13744,20 @@ function createMembraneMarshall$LWS(globalObject$LWS) {
|
|
|
13693
13744
|
35: foreignCallableBatchGetPrototypeOfWhenHasNoOwnProperty$LWS,
|
|
13694
13745
|
36: foreignCallableBatchGetPrototypeOfWhenHasNoOwnPropertyDescriptor$LWS
|
|
13695
13746
|
} = hooks$LWS);
|
|
13696
|
-
const applyTrapForZeroOrMoreArgs$LWS = createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1
|
|
13697
|
-
/* ProxyHandlerTraps.Apply */);
|
|
13698
|
-
|
|
13699
|
-
const
|
|
13700
|
-
/* ProxyHandlerTraps.Apply */);
|
|
13701
|
-
|
|
13702
|
-
const
|
|
13703
|
-
/* ProxyHandlerTraps.
|
|
13704
|
-
|
|
13705
|
-
const
|
|
13706
|
-
/* ProxyHandlerTraps.
|
|
13707
|
-
|
|
13708
|
-
const
|
|
13709
|
-
/* ProxyHandlerTraps.
|
|
13710
|
-
|
|
13711
|
-
const applyTrapForFiveOrMoreArgs$LWS = createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1
|
|
13712
|
-
/* ProxyHandlerTraps.Apply */);
|
|
13713
|
-
|
|
13714
|
-
const applyTrapForAnyNumberOfArgs$LWS = createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1
|
|
13715
|
-
/* ProxyHandlerTraps.Apply */);
|
|
13716
|
-
|
|
13717
|
-
const constructTrapForZeroOrMoreArgs$LWS = createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2
|
|
13718
|
-
/* ProxyHandlerTraps.Construct */);
|
|
13719
|
-
|
|
13720
|
-
const constructTrapForOneOrMoreArgs$LWS = createApplyOrConstructTrapForOneOrMoreArgs$LWS(2
|
|
13721
|
-
/* ProxyHandlerTraps.Construct */);
|
|
13722
|
-
|
|
13723
|
-
const constructTrapForTwoOrMoreArgs$LWS = createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2
|
|
13724
|
-
/* ProxyHandlerTraps.Construct */);
|
|
13725
|
-
|
|
13726
|
-
const constructTrapForThreeOrMoreArgs$LWS = createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2
|
|
13727
|
-
/* ProxyHandlerTraps.Construct */);
|
|
13728
|
-
|
|
13729
|
-
const constructTrapForFourOrMoreArgs$LWS = createApplyOrConstructTrapForFourOrMoreArgs$LWS(2
|
|
13730
|
-
/* ProxyHandlerTraps.Construct */);
|
|
13731
|
-
|
|
13732
|
-
const constructTrapForFiveOrMoreArgs$LWS = createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2
|
|
13733
|
-
/* ProxyHandlerTraps.Construct */);
|
|
13734
|
-
|
|
13735
|
-
const constructTrapForAnyNumberOfArgs$LWS = createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2
|
|
13736
|
-
/* ProxyHandlerTraps.Construct */);
|
|
13737
|
-
|
|
13747
|
+
const applyTrapForZeroOrMoreArgs$LWS = createApplyOrConstructTrapForZeroOrMoreArgs$LWS(1 /* ProxyHandlerTraps.Apply */);
|
|
13748
|
+
const applyTrapForOneOrMoreArgs$LWS = createApplyOrConstructTrapForOneOrMoreArgs$LWS(1 /* ProxyHandlerTraps.Apply */);
|
|
13749
|
+
const applyTrapForTwoOrMoreArgs$LWS = createApplyOrConstructTrapForTwoOrMoreArgs$LWS(1 /* ProxyHandlerTraps.Apply */);
|
|
13750
|
+
const applyTrapForThreeOrMoreArgs$LWS = createApplyOrConstructTrapForThreeOrMoreArgs$LWS(1 /* ProxyHandlerTraps.Apply */);
|
|
13751
|
+
const applyTrapForFourOrMoreArgs$LWS = createApplyOrConstructTrapForFourOrMoreArgs$LWS(1 /* ProxyHandlerTraps.Apply */);
|
|
13752
|
+
const applyTrapForFiveOrMoreArgs$LWS = createApplyOrConstructTrapForFiveOrMoreArgs$LWS(1 /* ProxyHandlerTraps.Apply */);
|
|
13753
|
+
const applyTrapForAnyNumberOfArgs$LWS = createApplyOrConstructTrapForAnyNumberOfArgs$LWS(1 /* ProxyHandlerTraps.Apply */);
|
|
13754
|
+
const constructTrapForZeroOrMoreArgs$LWS = createApplyOrConstructTrapForZeroOrMoreArgs$LWS(2 /* ProxyHandlerTraps.Construct */);
|
|
13755
|
+
const constructTrapForOneOrMoreArgs$LWS = createApplyOrConstructTrapForOneOrMoreArgs$LWS(2 /* ProxyHandlerTraps.Construct */);
|
|
13756
|
+
const constructTrapForTwoOrMoreArgs$LWS = createApplyOrConstructTrapForTwoOrMoreArgs$LWS(2 /* ProxyHandlerTraps.Construct */);
|
|
13757
|
+
const constructTrapForThreeOrMoreArgs$LWS = createApplyOrConstructTrapForThreeOrMoreArgs$LWS(2 /* ProxyHandlerTraps.Construct */);
|
|
13758
|
+
const constructTrapForFourOrMoreArgs$LWS = createApplyOrConstructTrapForFourOrMoreArgs$LWS(2 /* ProxyHandlerTraps.Construct */);
|
|
13759
|
+
const constructTrapForFiveOrMoreArgs$LWS = createApplyOrConstructTrapForFiveOrMoreArgs$LWS(2 /* ProxyHandlerTraps.Construct */);
|
|
13760
|
+
const constructTrapForAnyNumberOfArgs$LWS = createApplyOrConstructTrapForAnyNumberOfArgs$LWS(2 /* ProxyHandlerTraps.Construct */);
|
|
13738
13761
|
if (MINIFICATION_SAFE_TRAP_PROPERTY_NAMES$LWS === undefined) {
|
|
13739
13762
|
// A minification safe way to get the 'apply' and 'construct'
|
|
13740
13763
|
// trap property names.
|
|
@@ -13812,8 +13835,8 @@ class VirtualEnvironment$LWS {
|
|
|
13812
13835
|
constructor(options$LWS) {
|
|
13813
13836
|
if (options$LWS === undefined) {
|
|
13814
13837
|
throw new ErrorCtor$LWS('Missing required VirtualEnvironment options.');
|
|
13815
|
-
}
|
|
13816
|
-
|
|
13838
|
+
}
|
|
13839
|
+
// prettier-ignore
|
|
13817
13840
|
const {
|
|
13818
13841
|
blueConnector: blueConnector$LWS,
|
|
13819
13842
|
redConnector: redConnector$LWS,
|
|
@@ -13821,7 +13844,8 @@ class VirtualEnvironment$LWS {
|
|
|
13821
13844
|
instrumentation: instrumentation$LWS,
|
|
13822
13845
|
liveTargetCallback: liveTargetCallback$LWS,
|
|
13823
13846
|
revokedProxyCallback: revokedProxyCallback$LWS,
|
|
13824
|
-
signSourceCallback: signSourceCallback$LWS
|
|
13847
|
+
signSourceCallback: signSourceCallback$LWS
|
|
13848
|
+
// eslint-disable-next-line prefer-object-spread
|
|
13825
13849
|
} = ObjectAssign$LWS({
|
|
13826
13850
|
__proto__: null
|
|
13827
13851
|
}, options$LWS);
|
|
@@ -13966,8 +13990,8 @@ class VirtualEnvironment$LWS {
|
|
|
13966
13990
|
this.blueGetSelectedTarget = blueGetSelectedTarget$LWS;
|
|
13967
13991
|
this.blueGetTransferableValue = blueGetTransferableValue$LWS;
|
|
13968
13992
|
this.blueCallableGetPropertyValuePointer = blueCallableGetPropertyValuePointer$LWS;
|
|
13969
|
-
this.blueCallableLinkPointers = blueCallableLinkPointers$LWS;
|
|
13970
|
-
|
|
13993
|
+
this.blueCallableLinkPointers = blueCallableLinkPointers$LWS;
|
|
13994
|
+
// Ensure the `this` context of red callable functions is `undefined`.
|
|
13971
13995
|
this.redGlobalThisPointer = () => redGlobalThisPointer$LWS();
|
|
13972
13996
|
this.redCallableGetPropertyValuePointer = (targetPointer$LWS, key$LWS) => redCallableGetPropertyValuePointer$LWS(targetPointer$LWS, key$LWS);
|
|
13973
13997
|
this.redCallableEvaluate = signSourceCallback$LWS ? sourceText$LWS => redCallableEvaluate$LWS(signSourceCallback$LWS(sourceText$LWS)) : sourceText$LWS => redCallableEvaluate$LWS(sourceText$LWS);
|
|
@@ -14047,11 +14071,11 @@ class VirtualEnvironment$LWS {
|
|
|
14047
14071
|
args$LWS[0] = targetPointer$LWS;
|
|
14048
14072
|
for (let i$LWS = 0, j$LWS = 1; i$LWS < length$LWS; i$LWS += 1, j$LWS += 7) {
|
|
14049
14073
|
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
14050
|
-
const unsafeBlueDesc$LWS = unsafeBlueDescs$LWS[ownKey$LWS];
|
|
14074
|
+
const unsafeBlueDesc$LWS = unsafeBlueDescs$LWS[ownKey$LWS];
|
|
14075
|
+
// Avoid poisoning by only installing own properties from unsafeBlueDescs.
|
|
14051
14076
|
// We don't use a toSafeDescriptor() style helper since that mutates
|
|
14052
14077
|
// the unsafeBlueDesc.
|
|
14053
14078
|
// eslint-disable-next-line prefer-object-spread
|
|
14054
|
-
|
|
14055
14079
|
const safeBlueDesc$LWS = ObjectAssign$LWS({
|
|
14056
14080
|
__proto__: null
|
|
14057
14081
|
}, unsafeBlueDesc$LWS);
|
|
@@ -14079,6 +14103,7 @@ class VirtualEnvironment$LWS {
|
|
|
14079
14103
|
}
|
|
14080
14104
|
}
|
|
14081
14105
|
}
|
|
14106
|
+
|
|
14082
14107
|
/**
|
|
14083
14108
|
* This list must be in sync with ecma-262, anything new added to the global object
|
|
14084
14109
|
* should be considered, to decide whether or not they need remapping. The default
|
|
@@ -14098,7 +14123,6 @@ class VirtualEnvironment$LWS {
|
|
|
14098
14123
|
* problematic, and requires a lot more work to guarantee that objects from both sides
|
|
14099
14124
|
* can be considered equivalents (without identity discontinuity).
|
|
14100
14125
|
*/
|
|
14101
|
-
|
|
14102
14126
|
const ESGlobalKeys$LWS = [
|
|
14103
14127
|
// *** 19.1 Value Properties of the Global Object
|
|
14104
14128
|
'globalThis', 'Infinity', 'NaN', 'undefined',
|
|
@@ -14151,18 +14175,19 @@ const ESGlobalKeys$LWS = [
|
|
|
14151
14175
|
// 'Atomics', // Remapped
|
|
14152
14176
|
'JSON', 'Math', 'Reflect',
|
|
14153
14177
|
// *** Annex B
|
|
14154
|
-
'escape', 'unescape'
|
|
14178
|
+
'escape', 'unescape'
|
|
14179
|
+
// *** ECMA-402
|
|
14155
14180
|
// 'Intl', // Remapped
|
|
14156
|
-
];
|
|
14181
|
+
];
|
|
14182
|
+
// These are foundational things that should never be wrapped but are equivalent
|
|
14157
14183
|
// @TODO: Revisit this list.
|
|
14158
|
-
|
|
14159
14184
|
const ReflectiveIntrinsicObjectNames$LWS = ['AggregateError', 'Array', 'Error', 'EvalError', 'Function', 'Object', 'Proxy', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError', 'eval', 'globalThis'];
|
|
14160
14185
|
const ESGlobalsAndReflectiveIntrinsicObjectNames$LWS = toSafeArray$LWS([...ESGlobalKeys$LWS, ...ReflectiveIntrinsicObjectNames$LWS]);
|
|
14161
14186
|
function getGlobalObjectOwnKeys$LWS(source$LWS) {
|
|
14162
|
-
const ownKeys$LWS = ReflectOwnKeys$LWS(source$LWS);
|
|
14187
|
+
const ownKeys$LWS = ReflectOwnKeys$LWS(source$LWS);
|
|
14188
|
+
// WKWebView incorrectly excludes the 'webkit' own property of the global
|
|
14163
14189
|
// object from `Object.keys()` and `Reflect.ownKeys()` results, so add it.
|
|
14164
14190
|
// istanbul ignore if: currently unreachable via tests
|
|
14165
|
-
|
|
14166
14191
|
if (ObjectHasOwn$LWS(source$LWS, 'webkit') && !ReflectApply$LWS(ArrayProtoIncludes$LWS, ownKeys$LWS, ['webkit'])) {
|
|
14167
14192
|
ownKeys$LWS[ownKeys$LWS.length] = 'webkit';
|
|
14168
14193
|
}
|
|
@@ -14173,10 +14198,10 @@ function assignFilteredGlobalDescriptorsFromPropertyDescriptorMap$LWS(descs$LWS,
|
|
|
14173
14198
|
for (let i$LWS = 0, {
|
|
14174
14199
|
length: length$LWS
|
|
14175
14200
|
} = ownKeys$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
14176
|
-
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
14201
|
+
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
14202
|
+
// Avoid overriding ECMAScript global names that correspond to
|
|
14177
14203
|
// global intrinsics. This guarantee that those entries will be
|
|
14178
14204
|
// ignored if present in the source property descriptor map.
|
|
14179
|
-
|
|
14180
14205
|
if (!ESGlobalsAndReflectiveIntrinsicObjectNames$LWS.includes(ownKey$LWS)) {
|
|
14181
14206
|
const unsafeDesc$LWS = source$LWS[ownKey$LWS];
|
|
14182
14207
|
if (unsafeDesc$LWS) {
|
|
@@ -14199,10 +14224,10 @@ function getFilteredGlobalOwnKeys$LWS(source$LWS) {
|
|
|
14199
14224
|
for (let i$LWS = 0, {
|
|
14200
14225
|
length: length$LWS
|
|
14201
14226
|
} = ownKeys$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
14202
|
-
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
14227
|
+
const ownKey$LWS = ownKeys$LWS[i$LWS];
|
|
14228
|
+
// Avoid overriding ECMAScript global names that correspond to global
|
|
14203
14229
|
// intrinsics. This guarantees that those entries will be ignored if
|
|
14204
14230
|
// present in the source object.
|
|
14205
|
-
|
|
14206
14231
|
if (!ESGlobalsAndReflectiveIntrinsicObjectNames$LWS.includes(ownKey$LWS)) {
|
|
14207
14232
|
result$LWS[resultOffset$LWS++] = ownKey$LWS;
|
|
14208
14233
|
}
|
|
@@ -14226,32 +14251,33 @@ function linkIntrinsics$LWS(env$LWS, globalObject$LWS) {
|
|
|
14226
14251
|
}
|
|
14227
14252
|
}
|
|
14228
14253
|
}
|
|
14229
|
-
const blueDocumentToRecordMap$LWS = toSafeWeakMap$LWS(new WeakMap());
|
|
14254
|
+
const blueDocumentToRecordMap$LWS = toSafeWeakMap$LWS(new WeakMap());
|
|
14255
|
+
// Chromium based browsers have a bug that nulls the result of `window`
|
|
14230
14256
|
// getters in detached iframes when the property descriptor of `window.window`
|
|
14231
14257
|
// is retrieved.
|
|
14232
14258
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1305302
|
|
14233
|
-
|
|
14234
14259
|
const unforgeablePoisonedWindowKeys$LWS = IS_CHROMIUM_BROWSER$LWS ? ['window'] : undefined;
|
|
14235
14260
|
function getCachedGlobalObjectReferences$LWS(globalObject$LWS) {
|
|
14236
14261
|
const {
|
|
14237
14262
|
window: window$LWS
|
|
14238
14263
|
} = globalObject$LWS;
|
|
14239
14264
|
let record$LWS;
|
|
14240
|
-
let document$LWS;
|
|
14241
|
-
|
|
14265
|
+
let document$LWS;
|
|
14266
|
+
// Suppress errors thrown on cross-origin opaque windows.
|
|
14242
14267
|
try {
|
|
14243
14268
|
({
|
|
14244
14269
|
document: document$LWS
|
|
14245
14270
|
} = globalObject$LWS);
|
|
14246
|
-
record$LWS = blueDocumentToRecordMap$LWS.get(document$LWS);
|
|
14271
|
+
record$LWS = blueDocumentToRecordMap$LWS.get(document$LWS);
|
|
14272
|
+
// eslint-disable-next-line no-empty
|
|
14247
14273
|
} catch (_unused$LWS) {
|
|
14248
14274
|
return undefined;
|
|
14249
14275
|
}
|
|
14250
14276
|
if (record$LWS) {
|
|
14251
14277
|
return record$LWS;
|
|
14252
|
-
}
|
|
14278
|
+
}
|
|
14279
|
+
// Cache references to object values that can't be replaced
|
|
14253
14280
|
// window -> Window -> WindowProperties -> EventTarget
|
|
14254
|
-
|
|
14255
14281
|
const WindowProto$LWS = ReflectGetPrototypeOf$LWS(window$LWS);
|
|
14256
14282
|
const WindowPropertiesProto$LWS = ReflectGetPrototypeOf$LWS(WindowProto$LWS);
|
|
14257
14283
|
const EventTargetProto$LWS = ReflectGetPrototypeOf$LWS(WindowPropertiesProto$LWS);
|
|
@@ -14312,14 +14338,13 @@ function filterWindowKeys$LWS(keys$LWS) {
|
|
|
14312
14338
|
* that will be installed (via the membrane) as global descriptors in
|
|
14313
14339
|
* the red realm.
|
|
14314
14340
|
*/
|
|
14315
|
-
|
|
14316
14341
|
function removeWindowDescriptors$LWS(unsafeDescs$LWS) {
|
|
14317
14342
|
// Remove unforgeable descriptors that cannot be installed.
|
|
14318
14343
|
ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'document');
|
|
14319
14344
|
ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'location');
|
|
14320
14345
|
ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'top');
|
|
14321
|
-
ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'window');
|
|
14322
|
-
|
|
14346
|
+
ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'window');
|
|
14347
|
+
// Remove other browser specific unforgeables.
|
|
14323
14348
|
ReflectDeleteProperty$LWS(unsafeDescs$LWS, 'chrome');
|
|
14324
14349
|
return unsafeDescs$LWS;
|
|
14325
14350
|
}
|
|
@@ -14329,7 +14354,6 @@ function removeWindowDescriptors$LWS(unsafeDescs$LWS) {
|
|
|
14329
14354
|
* usually help because this library runs before anything else that can poison
|
|
14330
14355
|
* the environment.
|
|
14331
14356
|
*/
|
|
14332
|
-
|
|
14333
14357
|
getCachedGlobalObjectReferences$LWS(rootWindow$LWS);
|
|
14334
14358
|
const IFRAME_SANDBOX_ATTRIBUTE_VALUE$LWS = 'allow-same-origin allow-scripts';
|
|
14335
14359
|
const revoked$LWS = toSafeWeakSet$LWS(new WeakSetCtor$LWS());
|
|
@@ -14337,11 +14361,10 @@ const blueCreateHooksCallbackCache$LWS = toSafeWeakMap$LWS(new WeakMapCtor$LWS()
|
|
|
14337
14361
|
let defaultGlobalOwnKeys$LWS = null;
|
|
14338
14362
|
function createDetachableIframe$LWS(doc$LWS) {
|
|
14339
14363
|
var _ReflectApply$LWS;
|
|
14340
|
-
const iframe$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, doc$LWS, ['iframe']);
|
|
14364
|
+
const iframe$LWS = ReflectApply$LWS(DocumentProtoCreateElement$LWS, doc$LWS, ['iframe']);
|
|
14365
|
+
// It is impossible to test whether the NodeProtoLastChildGetter branch is
|
|
14341
14366
|
// reached in a normal Karma test environment.
|
|
14342
|
-
|
|
14343
|
-
const parent$LWS = (_ReflectApply$LWS = ReflectApply$LWS(DocumentProtoBodyGetter$LWS, doc$LWS, [])) != null ? _ReflectApply$LWS : /* istanbul ignore next */
|
|
14344
|
-
ReflectApply$LWS(NodeProtoLastChildGetter$LWS, doc$LWS, []);
|
|
14367
|
+
const parent$LWS = (_ReflectApply$LWS = ReflectApply$LWS(DocumentProtoBodyGetter$LWS, doc$LWS, [])) != null ? _ReflectApply$LWS : /* istanbul ignore next */ReflectApply$LWS(NodeProtoLastChildGetter$LWS, doc$LWS, []);
|
|
14345
14368
|
const style$LWS = ReflectApply$LWS(HTMLElementProtoStyleGetter$LWS, iframe$LWS, []);
|
|
14346
14369
|
style$LWS.display = 'none';
|
|
14347
14370
|
ReflectApply$LWS(ElementProtoSetAttribute$LWS, iframe$LWS, ['sandbox', IFRAME_SANDBOX_ATTRIBUTE_VALUE$LWS]);
|
|
@@ -14364,7 +14387,8 @@ function createIframeVirtualEnvironment$LWS(globalObject$LWS, providedOptions$LW
|
|
|
14364
14387
|
instrumentation: instrumentation$LWS,
|
|
14365
14388
|
keepAlive: keepAlive$LWS = true,
|
|
14366
14389
|
liveTargetCallback: liveTargetCallback$LWS,
|
|
14367
|
-
signSourceCallback: signSourceCallback$LWS
|
|
14390
|
+
signSourceCallback: signSourceCallback$LWS
|
|
14391
|
+
// eslint-disable-next-line prefer-object-spread
|
|
14368
14392
|
} = ObjectAssign$LWS({
|
|
14369
14393
|
__proto__: null
|
|
14370
14394
|
}, providedOptions$LWS);
|
|
@@ -14378,9 +14402,9 @@ function createIframeVirtualEnvironment$LWS(globalObject$LWS, providedOptions$LW
|
|
|
14378
14402
|
if (blueConnector$LWS === undefined) {
|
|
14379
14403
|
blueConnector$LWS = createBlueConnector$LWS(globalObject$LWS);
|
|
14380
14404
|
blueCreateHooksCallbackCache$LWS.set(blueRefs$LWS.document, blueConnector$LWS);
|
|
14381
|
-
}
|
|
14405
|
+
}
|
|
14406
|
+
// Install default TrustedTypes policy in the virtual environment.
|
|
14382
14407
|
// @ts-ignore trustedTypes does not exist on GlobalObject
|
|
14383
|
-
|
|
14384
14408
|
if (typeof redWindow$LWS.trustedTypes !== 'undefined' && isObject$LWS(defaultPolicy$LWS)) {
|
|
14385
14409
|
// @ts-ignore trustedTypes does not exist on GlobalObject
|
|
14386
14410
|
redWindow$LWS.trustedTypes.createPolicy('default', defaultPolicy$LWS);
|
|
@@ -14397,10 +14421,10 @@ function createIframeVirtualEnvironment$LWS(globalObject$LWS, providedOptions$LW
|
|
|
14397
14421
|
revokedProxyCallback: keepAlive$LWS ? revokedProxyCallback$LWS : undefined,
|
|
14398
14422
|
signSourceCallback: signSourceCallback$LWS
|
|
14399
14423
|
});
|
|
14400
|
-
linkIntrinsics$LWS(env$LWS, globalObject$LWS);
|
|
14424
|
+
linkIntrinsics$LWS(env$LWS, globalObject$LWS);
|
|
14425
|
+
// window
|
|
14401
14426
|
// window.document
|
|
14402
14427
|
// In browsers globalThis is === window.
|
|
14403
|
-
|
|
14404
14428
|
if (typeof globalThis === 'undefined') {
|
|
14405
14429
|
// Support for globalThis was added in Chrome 71.
|
|
14406
14430
|
// However, environments like Android emulators are running Chrome 69.
|
|
@@ -14408,10 +14432,10 @@ function createIframeVirtualEnvironment$LWS(globalObject$LWS, providedOptions$LW
|
|
|
14408
14432
|
} else {
|
|
14409
14433
|
// document is === window.document.
|
|
14410
14434
|
env$LWS.link('document');
|
|
14411
|
-
}
|
|
14435
|
+
}
|
|
14436
|
+
// window.__proto__ (aka Window.prototype)
|
|
14412
14437
|
// window.__proto__.__proto__ (aka WindowProperties.prototype)
|
|
14413
14438
|
// window.__proto__.__proto__.__proto__ (aka EventTarget.prototype)
|
|
14414
|
-
|
|
14415
14439
|
env$LWS.link('__proto__', '__proto__', '__proto__');
|
|
14416
14440
|
env$LWS.remapProto(blueRefs$LWS.document, blueRefs$LWS.DocumentProto);
|
|
14417
14441
|
env$LWS.lazyRemapProperties(blueRefs$LWS.window, shouldUseDefaultGlobalOwnKeys$LWS ? defaultGlobalOwnKeys$LWS : filterWindowKeys$LWS(getFilteredGlobalOwnKeys$LWS(globalObjectShape$LWS)),
|
|
@@ -14425,22 +14449,22 @@ function createIframeVirtualEnvironment$LWS(globalObject$LWS, providedOptions$LW
|
|
|
14425
14449
|
assignFilteredGlobalDescriptorsFromPropertyDescriptorMap$LWS(filteredEndowments$LWS, endowments$LWS);
|
|
14426
14450
|
removeWindowDescriptors$LWS(filteredEndowments$LWS);
|
|
14427
14451
|
env$LWS.remapProperties(blueRefs$LWS.window, filteredEndowments$LWS);
|
|
14428
|
-
}
|
|
14452
|
+
}
|
|
14453
|
+
// We intentionally skip remapping Window.prototype because there is nothing
|
|
14429
14454
|
// in it that needs to be remapped.
|
|
14430
|
-
|
|
14431
|
-
|
|
14455
|
+
env$LWS.lazyRemapProperties(blueRefs$LWS.EventTargetProto, blueRefs$LWS.EventTargetProtoOwnKeys);
|
|
14456
|
+
// We don't remap `blueRefs.WindowPropertiesProto` because it is "magical"
|
|
14432
14457
|
// in that it provides access to elements by id.
|
|
14433
14458
|
//
|
|
14434
14459
|
// Once we get the iframe info ready, and all mapped, we can proceed to
|
|
14435
14460
|
// detach the iframe only if `options.keepAlive` isn't true.
|
|
14436
|
-
|
|
14437
14461
|
if (keepAlive$LWS) {
|
|
14438
14462
|
// @TODO: Temporary hack to preserve the document reference in Firefox.
|
|
14439
14463
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=543435
|
|
14440
14464
|
const {
|
|
14441
14465
|
document: redDocument$LWS
|
|
14442
|
-
} = redWindow$LWS;
|
|
14443
|
-
|
|
14466
|
+
} = redWindow$LWS;
|
|
14467
|
+
// Revoke the proxies of the redDocument and redWindow to prevent access.
|
|
14444
14468
|
revoked$LWS.add(redDocument$LWS);
|
|
14445
14469
|
revoked$LWS.add(redWindow$LWS);
|
|
14446
14470
|
ReflectApply$LWS(DocumentProtoOpen$LWS, redDocument$LWS, []);
|
|
@@ -14465,10 +14489,6 @@ function createResourceLoadError$LWS(url$LWS) {
|
|
|
14465
14489
|
return new LockerSecurityError$LWS(`platformResourceLoader error loading ${enquote$LWS(url$LWS)}.`);
|
|
14466
14490
|
}
|
|
14467
14491
|
const EMPTY_EVAL_HELPERS$LWS = {
|
|
14468
|
-
// @TODO: Remove the 'asyncToGen' and 'makeRedResyncImports' aliases after
|
|
14469
|
-
// the LWS compiler update makes its way through the LWC deployment pipeline.
|
|
14470
|
-
asyncToGen: noop$LWS$1,
|
|
14471
|
-
makeRedResyncImports: noop$LWS$1,
|
|
14472
14492
|
forAwaitOf: noop$LWS$1,
|
|
14473
14493
|
genToAsync: noop$LWS$1,
|
|
14474
14494
|
loadScript: noop$LWS$1,
|
|
@@ -14565,10 +14585,6 @@ const EVAL_HELPERS_SOURCE_TEXT$LWS = `'use strict';
|
|
|
14565
14585
|
return args$LWS ? ReflectApply$LWS(superProto$LWS[key$LWS], thisArgOrReceiver$LWS, args$LWS) : ReflectGet$LWS(superProto$LWS, key$LWS, thisArgOrReceiver$LWS);
|
|
14566
14586
|
}
|
|
14567
14587
|
return {
|
|
14568
|
-
// @TODO: Remove the 'asyncToGen' and 'makeRedResyncImports' aliases after
|
|
14569
|
-
// the LWS compiler update makes its way through the LWC deployment pipeline.
|
|
14570
|
-
asyncToGen: genToAsync$LWS,
|
|
14571
|
-
makeRedResyncImports: makeRedSyncImports$LWS,
|
|
14572
14588
|
forAwaitOf: forAwaitOf$LWS,
|
|
14573
14589
|
genToAsync: genToAsync$LWS,
|
|
14574
14590
|
loadScript: loadScript$LWS,
|
|
@@ -14812,7 +14828,7 @@ function getSandboxRegistry$LWS(document$LWS) {
|
|
|
14812
14828
|
}
|
|
14813
14829
|
|
|
14814
14830
|
// Flag whether the iframe should remain connected to the DOM.
|
|
14815
|
-
const IFRAME_KEEP_ALIVE_FLAG$LWS = LOCKER_UNMINIFIED_FLAG$LWS && !false;
|
|
14831
|
+
const IFRAME_KEEP_ALIVE_FLAG$LWS = LOCKER_UNMINIFIED_FLAG$LWS$1 && !false;
|
|
14816
14832
|
// Fast path non-configurable document, location, and window objects in the
|
|
14817
14833
|
// virtual environment distortion callback by seeding them in the root window's
|
|
14818
14834
|
// created distortion map.
|
|
@@ -15373,12 +15389,13 @@ function evaluateFunction$LWS(key$LWS, fn$LWS, scope$LWS = EMPTY_OBJECT$LWS, sou
|
|
|
15373
15389
|
})(...argValues$LWS);
|
|
15374
15390
|
}
|
|
15375
15391
|
const sandboxDependencies$LWS = toSafeMap$LWS$1(new MapCtor$LWS$1());
|
|
15392
|
+
const lprDepNames$LWS = toSafeSet$LWS(new SetCtor$LWS$1(['lightning/platformResourceLoader', 'lightning:platformResourceLoader', 'lightningmobileruntime/platformResourceLoader', 'lightningmobileruntime:platformResourceLoader']));
|
|
15376
15393
|
// istanbul ignore next: currently unreachable via tests, platformResourceLoader testing is exclusively done in AMD format mode
|
|
15377
15394
|
function wrapDependency$LWS(dep$LWS, depName$LWS, key$LWS) {
|
|
15378
15395
|
if (depName$LWS === 'lwc' || depName$LWS === '@lwc/engine-dom' || depName$LWS === '@lwc:engine-dom') {
|
|
15379
15396
|
return wrapLWC$LWS(dep$LWS, key$LWS);
|
|
15380
15397
|
}
|
|
15381
|
-
if (
|
|
15398
|
+
if (lprDepNames$LWS.has(depName$LWS)) {
|
|
15382
15399
|
return wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS);
|
|
15383
15400
|
}
|
|
15384
15401
|
return dep$LWS;
|
|
@@ -15463,7 +15480,7 @@ function wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS) {
|
|
|
15463
15480
|
depRegistry$LWS.set(dep$LWS, secureDep$LWS);
|
|
15464
15481
|
return secureDep$LWS;
|
|
15465
15482
|
}
|
|
15466
|
-
/*! version: 0.20.
|
|
15483
|
+
/*! version: 0.20.3 */
|
|
15467
15484
|
|
|
15468
15485
|
const loaderDefine = globalThis.LWR.define;
|
|
15469
15486
|
|
|
@@ -15481,7 +15498,7 @@ function markLiveObject(object) {
|
|
|
15481
15498
|
* Evaluate the given exporter in a sandbox of the given namespace
|
|
15482
15499
|
*/
|
|
15483
15500
|
function vNextEvaluateModule(namespace, specifier, exporter) {
|
|
15484
|
-
return evaluateFunction$LWS(namespace, exporter, undefined,
|
|
15501
|
+
return evaluateFunction$LWS(namespace, exporter, undefined, `//# sourceURL=modules/${specifier}.js\n`);
|
|
15485
15502
|
}
|
|
15486
15503
|
|
|
15487
15504
|
/**
|