Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
617 lines
24 KiB
JavaScript
617 lines
24 KiB
JavaScript
// Module ID: 1282
|
|
// Function ID: 1283
|
|
// Dependencies: [1283, 1284, 1286, 1288, 1300, 1301, 1291, 1302, 1303, 1304, 1305, 1298, 1299, 1306, 1290, 1307, 1308, 1309, 1310, 1311, 1312, 1313, 1289, 1296, 1315]
|
|
|
|
// Module 1282
|
|
import _mod1283 from "module_1283" /* 1283 */;
|
|
import _mod1284 from "module_1284" /* 1284 */;
|
|
import _Symbol6 from "_Symbol" /* 1286 */;
|
|
import _mod1288 from "module_1288" /* 1288 */;
|
|
import _mod1289 from "module_1289" /* 1289 */;
|
|
import _mod1290 from "module_1290" /* 1290 */;
|
|
import _mod1291 from "module_1291" /* 1291 */;
|
|
import _mod1300 from "module_1300" /* 1300 */;
|
|
import _mod1301 from "module_1301" /* 1301 */;
|
|
import _mod1302 from "module_1302" /* 1302 */;
|
|
import _mod1303 from "module_1303" /* 1303 */;
|
|
import _mod1304 from "module_1304" /* 1304 */;
|
|
import _mod1305 from "module_1305" /* 1305 */;
|
|
import flag4 from "flag" /* 1306 */;
|
|
import _mod1307 from "module_1307" /* 1307 */;
|
|
import _mod1308 from "module_1308" /* 1308 */;
|
|
import _mod1309 from "module_1309" /* 1309 */;
|
|
import _mod1310 from "module_1310" /* 1310 */;
|
|
import _mod1311 from "module_1311" /* 1311 */;
|
|
import _mod1312 from "module_1312" /* 1312 */;
|
|
import sign from "sign" /* 1313 */;
|
|
import bind_mod from "bind" /* 1296 */;
|
|
import module_1298_mod from "module_1298" /* 1298 */;
|
|
import module_1299 from "module_1299" /* 1299 */;
|
|
|
|
function getEvalledConstructor(arg0) {
|
|
try {
|
|
const _HermesInternal = HermesInternal;
|
|
return Function("\"use strict\"; return (" + arg0 + ").constructor;")();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
function throwTypeError() {
|
|
throw new _mod1283();
|
|
}
|
|
if (_mod1284) {
|
|
throwTypeError = (() => {
|
|
try {
|
|
return throwTypeError;
|
|
} catch (err) {
|
|
try {
|
|
return _mod1284(arguments, "callee").get;
|
|
} catch (err) {
|
|
return throwTypeError;
|
|
}
|
|
}
|
|
})();
|
|
}
|
|
const tmp5 = _Symbol6();
|
|
const obj = {};
|
|
let tmp6;
|
|
if (typeof Uint8Array !== "undefined") {
|
|
if (_mod1288) {
|
|
const _Uint8Array = Uint8Array;
|
|
tmp6 = _mod1288(Uint8Array);
|
|
}
|
|
}
|
|
let AggregateError;
|
|
if (typeof globalThis.AggregateError !== "undefined") {
|
|
AggregateError = globalThis.AggregateError;
|
|
}
|
|
const merged = Object.assign({ "%AggregateError%": null, "%Array%": null, "%ArrayBuffer%": null, "%ArrayIteratorPrototype%": null, "%AsyncFromSyncIteratorPrototype%": "fill", "%AsyncFunction%": "\u0430\u0440\u0435\u0441\u0442\u0443\u0432\u0430\u043C", "%AsyncGenerator%": "\u0436\u0435\u043D\u0430", "%AsyncGeneratorFunction%": "\u0437\u0430\u043A\u043E\u043D", "%AsyncIteratorPrototype%": "\u043E\u0440\u0433\u0430\u043D \u043D\u0430 \u0440\u0435\u0434\u0430", "%Atomics%": "\u043F\u043E\u0434 \u043F\u0440\u0438\u043A\u0440\u0438\u0442\u0438\u0435", "%BigInt%": "\u043F\u043E\u043B\u0438\u0446\u0430\u0439", "%BigInt64Array%": "\u043F\u043E\u043B\u0438\u0446\u0430\u0439\u043A\u0430", "%BigUint64Array%": "\u043F\u043E\u043B\u0438\u0446\u0438\u044F", "%Boolean%": "\u0441\u043B\u0443\u0436\u0438\u0442\u0435\u043B \u043D\u0430 \u0440\u0435\u0434\u0430", "%DataView%": "\u0441\u043B\u0443\u0436\u0438\u0442\u0435\u043B\u043A\u0430 \u043D\u0430 \u0440\u0435\u0434\u0430", "%Date%": "\u0443\u043D\u0438\u0444\u043E\u0440\u043C\u0430", "%decodeURI%": "CAPTCHA", "%decodeURIComponent%": "<string:1382023171>", "%encodeURI%": "<string:3409957458>", "%encodeURIComponent%": "<string:1549795310>", "%Error%": "<string:1631575132>", "%eval%": "<string:471859197>", "%EvalError%": "<string:1900014620>", "%Float16Array%": null, "%Float32Array%": "features", "%Float64Array%": "scalar", "%FinalizationRegistry%": 2, "%Function%": 9, "%GeneratorFunction%": "ArrayBuffer", "%Int8Array%": "prototype", "%Int16Array%": "1 godina", "%Int32Array%": "1 godine", "%isFinite%": "1 godinu", "%isNaN%": "<string:474198478>", "%IteratorPrototype%": "<string:469762387>", "%JSON%": "<string:469762387>", "%Map%": "<string:3321889107>", "%MapIteratorPrototype%": "<string:1275102208>", "%Math%": "hn\u011Bv", "%Number%": "japonsk\u00FD symbol hn\u011Bvu", "%Object%": "komiks", "%Object.getOwnPropertyDescriptor%": "komiksov\u00FD", "%parseFloat%": "manga", "%parseInt%": "na\u0161tvan\u00FD", "%Promise%": "rozzloben\u00FD", "%Proxy%": "\u00FAder", "%RangeError%": "vztek", "%ReferenceError%": "\u017E\u00EDly", "%Reflect%": "zloba", "%RegExp%": "zlost", "%Set%": "<string:10354886>", "%SetIteratorPrototype%": "<string:38443586>", "%SharedArrayBuffer%": "<string:32562432>", "%String%": "<string:1886015744>", "%StringIteratorPrototype%": "<string:23270211>", "%Symbol%": "<string:31801600>", "%SyntaxError%": "<string:23679488>", "%ThrowTypeError%": "<string:59199744>", "%TypedArray%": "<string:32371010>", "%TypeError%": "<string:37113344>", "%Uint8Array%": "<string:1581994240>", "%Uint8ClampedArray%": "<string:1912603429>", "%Uint16Array%": "<string:402653708>", "%Uint32Array%": "<string:2634023746>", "%URIError%": "<string:1308623722>", "%WeakMap%": "<string:4093641591>", "%WeakRef%": "<string:805307258>", "%WeakSet%": "<string:1627390827>", "%Function.prototype.call%": "<string:3338666759>", "%Function.prototype.apply%": "<string:2399142189>", "%Object.defineProperty%": "<string:1476395463>", "%Object.getPrototypeOf%": "<string:3321889107>", "%Math.abs%": "<string:1090583040>", "%Math.floor%": "fuji", "%Math.max%": "<string:1518676050>", "%Math.min%": "<string:2175025621>", "%Math.pow%": "<string:2656108548>", "%Math.round%": "<string:113852892>", "%Math.sign%": "<string:3746627586>", "%Reflect.getPrototypeOf%": "<string:113918696>" });
|
|
merged[0] = AggregateError;
|
|
merged[1] = Array;
|
|
let _ArrayBuffer;
|
|
if (typeof ArrayBuffer !== "undefined") {
|
|
_ArrayBuffer = ArrayBuffer;
|
|
}
|
|
merged[2] = _ArrayBuffer;
|
|
let _moduleResult;
|
|
if (tmp5) {
|
|
if (_mod1288) {
|
|
let items = [];
|
|
const _Symbol = Symbol;
|
|
const _module = _mod1288;
|
|
_moduleResult = _module(items[Symbol.iterator]());
|
|
}
|
|
}
|
|
merged[3] = _moduleResult;
|
|
merged[5] = obj;
|
|
merged[6] = obj;
|
|
merged[7] = obj;
|
|
merged[8] = obj;
|
|
let _Atomics;
|
|
if (typeof Atomics !== "undefined") {
|
|
_Atomics = Atomics;
|
|
}
|
|
merged[9] = _Atomics;
|
|
let _BigInt;
|
|
if (typeof BigInt !== "undefined") {
|
|
_BigInt = BigInt;
|
|
}
|
|
merged[10] = _BigInt;
|
|
let _BigInt64Array;
|
|
if (typeof BigInt64Array !== "undefined") {
|
|
_BigInt64Array = BigInt64Array;
|
|
}
|
|
merged[11] = _BigInt64Array;
|
|
let _BigUint64Array;
|
|
if (typeof BigUint64Array !== "undefined") {
|
|
_BigUint64Array = BigUint64Array;
|
|
}
|
|
merged[12] = _BigUint64Array;
|
|
merged[13] = Boolean;
|
|
let _DataView;
|
|
if (typeof DataView !== "undefined") {
|
|
_DataView = DataView;
|
|
}
|
|
merged[14] = _DataView;
|
|
merged[15] = Date;
|
|
merged[16] = decodeURI;
|
|
merged[17] = decodeURIComponent;
|
|
merged[18] = encodeURI;
|
|
merged[19] = encodeURIComponent;
|
|
merged[20] = _mod1300;
|
|
merged[21] = globalThis.eval;
|
|
merged[22] = _mod1301;
|
|
let Float16Array;
|
|
if (typeof globalThis.Float16Array !== "undefined") {
|
|
Float16Array = globalThis.Float16Array;
|
|
}
|
|
merged[23] = Float16Array;
|
|
let _Float32Array;
|
|
if (typeof Float32Array !== "undefined") {
|
|
_Float32Array = Float32Array;
|
|
}
|
|
merged[24] = _Float32Array;
|
|
let _Float64Array;
|
|
if (typeof Float64Array !== "undefined") {
|
|
_Float64Array = Float64Array;
|
|
}
|
|
merged[25] = _Float64Array;
|
|
let FinalizationRegistry;
|
|
if (typeof globalThis.FinalizationRegistry !== "undefined") {
|
|
FinalizationRegistry = globalThis.FinalizationRegistry;
|
|
}
|
|
merged[26] = FinalizationRegistry;
|
|
merged[27] = Function;
|
|
merged[28] = obj;
|
|
let _Int8Array;
|
|
if (typeof Int8Array !== "undefined") {
|
|
_Int8Array = Int8Array;
|
|
}
|
|
merged[29] = _Int8Array;
|
|
let _Int16Array;
|
|
if (typeof Int16Array !== "undefined") {
|
|
_Int16Array = Int16Array;
|
|
}
|
|
merged[30] = _Int16Array;
|
|
let _Int32Array;
|
|
if (typeof Int32Array !== "undefined") {
|
|
_Int32Array = Int32Array;
|
|
}
|
|
merged[31] = _Int32Array;
|
|
merged[32] = isFinite;
|
|
merged[33] = isNaN;
|
|
let _module1Result;
|
|
if (tmp5) {
|
|
if (_mod1288) {
|
|
const _module1 = _mod1288;
|
|
const items1 = [];
|
|
const _Symbol2 = Symbol;
|
|
const _module2 = _mod1288;
|
|
_module1Result = _module1(_module2(items1[Symbol.iterator]()));
|
|
}
|
|
}
|
|
merged[34] = _module1Result;
|
|
let _JSON;
|
|
if (typeof JSON === "object") {
|
|
_JSON = JSON;
|
|
}
|
|
merged[35] = _JSON;
|
|
let _Map1;
|
|
if (typeof Map !== "undefined") {
|
|
_Map1 = Map;
|
|
}
|
|
merged[36] = _Map1;
|
|
let _module3Result;
|
|
if (typeof Map !== "undefined") {
|
|
if (tmp5) {
|
|
if (_mod1288) {
|
|
const _Map = Map;
|
|
const _module3 = _mod1288;
|
|
const map = new Map();
|
|
const _Symbol3 = Symbol;
|
|
_module3Result = _module3(map[Symbol.iterator]());
|
|
}
|
|
}
|
|
}
|
|
merged[37] = _module3Result;
|
|
merged[38] = Math;
|
|
merged[39] = Number;
|
|
merged[40] = _mod1291;
|
|
merged[41] = _mod1284;
|
|
merged[42] = parseFloat;
|
|
merged[43] = parseInt;
|
|
let _Promise;
|
|
if (typeof Promise !== "undefined") {
|
|
_Promise = Promise;
|
|
}
|
|
merged[44] = _Promise;
|
|
let _Proxy;
|
|
if (typeof Proxy !== "undefined") {
|
|
_Proxy = Proxy;
|
|
}
|
|
merged[45] = _Proxy;
|
|
merged[46] = _mod1302;
|
|
merged[47] = _mod1303;
|
|
let _Reflect;
|
|
if (typeof Reflect !== "undefined") {
|
|
_Reflect = Reflect;
|
|
}
|
|
merged[48] = _Reflect;
|
|
merged[49] = RegExp;
|
|
let _Set1;
|
|
if (typeof Set !== "undefined") {
|
|
_Set1 = Set;
|
|
}
|
|
merged[50] = _Set1;
|
|
let _module4Result;
|
|
if (typeof Set !== "undefined") {
|
|
if (tmp5) {
|
|
if (_mod1288) {
|
|
const _Set = Set;
|
|
const _module4 = _mod1288;
|
|
const set = new Set();
|
|
const _Symbol4 = Symbol;
|
|
_module4Result = _module4(set[Symbol.iterator]());
|
|
}
|
|
}
|
|
}
|
|
merged[51] = _module4Result;
|
|
let _SharedArrayBuffer;
|
|
if (typeof SharedArrayBuffer !== "undefined") {
|
|
_SharedArrayBuffer = SharedArrayBuffer;
|
|
}
|
|
merged[52] = _SharedArrayBuffer;
|
|
merged[53] = String;
|
|
let _module5Result;
|
|
if (tmp5) {
|
|
if (_mod1288) {
|
|
const _Symbol5 = Symbol;
|
|
const _module5 = _mod1288;
|
|
_module5Result = _module5(""[Symbol.iterator]());
|
|
}
|
|
}
|
|
merged[54] = _module5Result;
|
|
let _Symbol1;
|
|
if (tmp5) {
|
|
_Symbol1 = Symbol;
|
|
}
|
|
merged[55] = _Symbol1;
|
|
merged[56] = _mod1304;
|
|
merged[57] = throwTypeError;
|
|
merged[58] = tmp6;
|
|
merged[59] = _mod1283;
|
|
let _Uint8Array1;
|
|
if (typeof Uint8Array !== "undefined") {
|
|
_Uint8Array1 = Uint8Array;
|
|
}
|
|
merged[60] = _Uint8Array1;
|
|
let _Uint8ClampedArray;
|
|
if (typeof Uint8ClampedArray !== "undefined") {
|
|
_Uint8ClampedArray = Uint8ClampedArray;
|
|
}
|
|
merged[61] = _Uint8ClampedArray;
|
|
let _Uint16Array;
|
|
if (typeof Uint16Array !== "undefined") {
|
|
_Uint16Array = Uint16Array;
|
|
}
|
|
merged[62] = _Uint16Array;
|
|
let _Uint32Array;
|
|
if (typeof Uint32Array !== "undefined") {
|
|
_Uint32Array = Uint32Array;
|
|
}
|
|
merged[63] = _Uint32Array;
|
|
merged[64] = _mod1305;
|
|
let _WeakMap;
|
|
if (typeof WeakMap !== "undefined") {
|
|
_WeakMap = WeakMap;
|
|
}
|
|
merged[65] = _WeakMap;
|
|
let _WeakRef;
|
|
if (typeof WeakRef !== "undefined") {
|
|
_WeakRef = WeakRef;
|
|
}
|
|
merged[66] = _WeakRef;
|
|
let _WeakSet;
|
|
if (typeof WeakSet !== "undefined") {
|
|
_WeakSet = WeakSet;
|
|
}
|
|
merged[67] = _WeakSet;
|
|
merged[68] = module_1298;
|
|
merged[69] = module_1299;
|
|
merged[70] = flag4;
|
|
merged[71] = _mod1290;
|
|
merged[72] = _mod1307;
|
|
merged[73] = _mod1308;
|
|
merged[74] = _mod1309;
|
|
merged[75] = _mod1310;
|
|
merged[76] = _mod1311;
|
|
merged[77] = _mod1312;
|
|
merged[78] = sign;
|
|
merged[79] = _mod1289;
|
|
if (_mod1288) {
|
|
try {
|
|
const error = null.error;
|
|
} catch (tmp56) {
|
|
tmp4["%Error.prototype%"] = tmp3(tmp2[3])(tmp3(tmp2[3])(tmp56));
|
|
const tmp3Result = tmp3(tmp2[3]);
|
|
}
|
|
}
|
|
function doEval(arg0) {
|
|
if ("%AsyncFunction%" === arg0) {
|
|
let prototype = getEvalledConstructor("async function () {}");
|
|
} else if ("%GeneratorFunction%" === arg0) {
|
|
prototype = getEvalledConstructor("function* () {}");
|
|
} else if ("%AsyncGeneratorFunction%" === arg0) {
|
|
prototype = getEvalledConstructor("async function* () {}");
|
|
} else if ("%AsyncGenerator%" === arg0) {
|
|
const tmp7 = doEval("%AsyncGeneratorFunction%");
|
|
if (tmp7) {
|
|
prototype = tmp7.prototype;
|
|
}
|
|
} else if ("%AsyncIteratorPrototype%" === arg0) {
|
|
const tmp12 = doEval("%AsyncGenerator%");
|
|
let tmp3 = tmp12;
|
|
if (tmp12) {
|
|
tmp3 = _mod1288;
|
|
}
|
|
if (tmp3) {
|
|
prototype = _mod1288(tmp12.prototype);
|
|
}
|
|
}
|
|
merged[arg0] = prototype;
|
|
return prototype;
|
|
}
|
|
const merged1 = Object.assign({ "%ArrayBufferPrototype%": null, "%ArrayPrototype%": null, "%ArrayProto_entries%": null, "%ArrayProto_forEach%": null, "%ArrayProto_keys%": null, "%ArrayProto_values%": null, "%AsyncFunctionPrototype%": null, "%AsyncGenerator%": null, "%AsyncGeneratorPrototype%": null, "%BooleanPrototype%": null, "%DataViewPrototype%": null, "%DatePrototype%": null, "%ErrorPrototype%": null, "%EvalErrorPrototype%": null, "%Float32ArrayPrototype%": null, "%Float64ArrayPrototype%": null, "%FunctionPrototype%": null, "%Generator%": null, "%GeneratorPrototype%": null, "%Int8ArrayPrototype%": null, "%Int16ArrayPrototype%": null, "%Int32ArrayPrototype%": null, "%JSONParse%": null, "%JSONStringify%": null, "%MapPrototype%": null, "%NumberPrototype%": null, "%ObjectPrototype%": null, "%ObjProto_toString%": null, "%ObjProto_valueOf%": null, "%PromisePrototype%": null, "%PromiseProto_then%": null, "%Promise_all%": null, "%Promise_reject%": null, "%Promise_resolve%": null, "%RangeErrorPrototype%": null, "%ReferenceErrorPrototype%": null, "%RegExpPrototype%": null, "%SetPrototype%": null, "%SharedArrayBufferPrototype%": null, "%StringPrototype%": null, "%SymbolPrototype%": null, "%SyntaxErrorPrototype%": null, "%TypedArrayPrototype%": null, "%TypeErrorPrototype%": null, "%Uint8ArrayPrototype%": null, "%Uint8ClampedArrayPrototype%": null, "%Uint16ArrayPrototype%": null, "%Uint32ArrayPrototype%": null, "%URIErrorPrototype%": null, "%WeakMapPrototype%": null, "%WeakSetPrototype%": null });
|
|
merged1[0] = ["ArrayBuffer", "prototype"];
|
|
merged1[1] = ["Array", "prototype"];
|
|
merged1[2] = ["Array", "prototype", "entries"];
|
|
merged1[3] = ["Array", "prototype", "forEach"];
|
|
merged1[4] = ["Array", "prototype", "keys"];
|
|
merged1[5] = ["Array", "prototype", "values"];
|
|
merged1[6] = ["AsyncFunction", "prototype"];
|
|
merged1[7] = ["AsyncGeneratorFunction", "prototype"];
|
|
merged1[8] = ["AsyncGeneratorFunction", "prototype", "prototype"];
|
|
merged1[9] = ["Boolean", "prototype"];
|
|
merged1[10] = ["DataView", "prototype"];
|
|
merged1[11] = ["Date", "prototype"];
|
|
merged1[12] = ["Error", "prototype"];
|
|
merged1[13] = ["EvalError", "prototype"];
|
|
merged1[14] = ["Float32Array", "prototype"];
|
|
merged1[15] = ["Float64Array", "prototype"];
|
|
merged1[16] = ["Function", "prototype"];
|
|
merged1[17] = ["GeneratorFunction", "prototype"];
|
|
merged1[18] = ["GeneratorFunction", "prototype", "prototype"];
|
|
merged1[19] = ["Int8Array", "prototype"];
|
|
merged1[20] = ["Int16Array", "prototype"];
|
|
merged1[21] = ["Int32Array", "prototype"];
|
|
merged1[22] = ["JSON", "parse"];
|
|
merged1[23] = ["JSON", "stringify"];
|
|
merged1[24] = ["Map", "prototype"];
|
|
merged1[25] = ["Number", "prototype"];
|
|
merged1[26] = ["Object", "prototype"];
|
|
merged1[27] = ["Object", "prototype", "toString"];
|
|
merged1[28] = ["Object", "prototype", "valueOf"];
|
|
merged1[29] = ["Promise", "prototype"];
|
|
merged1[30] = ["Promise", "prototype", "then"];
|
|
merged1[31] = ["Promise", "all"];
|
|
merged1[32] = ["Promise", "reject"];
|
|
merged1[33] = ["Promise", "resolve"];
|
|
merged1[34] = ["RangeError", "prototype"];
|
|
merged1[35] = ["ReferenceError", "prototype"];
|
|
merged1[36] = ["RegExp", "prototype"];
|
|
merged1[37] = ["Set", "prototype"];
|
|
merged1[38] = ["SharedArrayBuffer", "prototype"];
|
|
merged1[39] = ["String", "prototype"];
|
|
merged1[40] = ["Symbol", "prototype"];
|
|
merged1[41] = ["SyntaxError", "prototype"];
|
|
merged1[42] = ["TypedArray", "prototype"];
|
|
merged1[43] = ["TypeError", "prototype"];
|
|
merged1[44] = ["Uint8Array", "prototype"];
|
|
merged1[45] = ["Uint8ClampedArray", "prototype"];
|
|
merged1[46] = ["Uint16Array", "prototype"];
|
|
merged1[47] = ["Uint32Array", "prototype"];
|
|
merged1[48] = ["URIError", "prototype"];
|
|
merged1[49] = ["WeakMap", "prototype"];
|
|
merged1[50] = ["WeakSet", "prototype"];
|
|
let bind = bind_mod;
|
|
const call = bind.call;
|
|
let module_1298 = module_1298_mod;
|
|
let closure_9 = typeof call === "unknown" ? bind(concat) : call(module_1298, concat);
|
|
let bind = bind_mod;
|
|
const call2 = bind.call;
|
|
let closure_10 = typeof call2 === "unknown" ? bind(splice) : call2(module_1299, splice);
|
|
let bind = bind_mod;
|
|
const call3 = bind.call;
|
|
let module_1298 = module_1298_mod;
|
|
let closure_11 = typeof call3 === "unknown" ? bind(replace) : call3(module_1298, replace);
|
|
let bind = bind_mod;
|
|
const call4 = bind.call;
|
|
let module_1298 = module_1298_mod;
|
|
let closure_12 = typeof call4 === "unknown" ? bind(slice) : call4(module_1298, slice);
|
|
let bind = bind_mod;
|
|
const call5 = bind.call;
|
|
let module_1298 = module_1298_mod;
|
|
let closure_13 = typeof call5 === "unknown" ? bind(exec) : call5(module_1298, exec);
|
|
const re14 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
const re15 = /\\(\\)?/g;
|
|
function getBaseIntrinsic(arg0, arg1) {
|
|
|
|
}
|
|
|
|
export default function GetIntrinsic(str, flag) {
|
|
let tmp46;
|
|
let tmp47;
|
|
if (typeof str === "string") {
|
|
if (0 !== str.length) {
|
|
if (arguments.length > 1) {
|
|
if (typeof flag !== "boolean") {
|
|
const tmp99 = new items(1283)("\"allowMissing\" argument must be a boolean");
|
|
throw tmp99;
|
|
}
|
|
}
|
|
if (null === closure_13(/^%?[^%]*%?$/, str)) {
|
|
const tmp93 = new items(1304)("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
throw tmp93;
|
|
} else {
|
|
const tmp104 = closure_12(str, 0, 1);
|
|
const tmp105 = closure_12(str, -1);
|
|
if ("%" === tmp104) {
|
|
if ("%" !== tmp105) {
|
|
const tmp87 = new items(1304)("invalid intrinsic syntax, expected closing `%`");
|
|
throw tmp87;
|
|
}
|
|
}
|
|
if ("%" === tmp105) {
|
|
if ("%" !== tmp104) {
|
|
const tmp81 = new items(1304)("invalid intrinsic syntax, expected opening `%`");
|
|
throw tmp81;
|
|
}
|
|
}
|
|
items = [];
|
|
closure_11(str, closure_14, (arg0, arg1, arg2, arg3) => {
|
|
if (arg2) {
|
|
let tmp2 = closure_11(arg3, re15, "$1");
|
|
} else {
|
|
tmp2 = arg1;
|
|
if (!arg1) {
|
|
tmp2 = arg0;
|
|
}
|
|
}
|
|
items[items.length] = tmp2;
|
|
});
|
|
str = "";
|
|
if (items.length > 0) {
|
|
str = items[0];
|
|
}
|
|
if (typeof getBaseIntrinsic === "function") {
|
|
const text = `${"%" + str}%`;
|
|
let text1 = text;
|
|
if (items(1315)(merged1, `${"%" + str}%`)) {
|
|
const tmp13 = tmp10[`${"%" + str}%`];
|
|
text1 = `${"%" + tmp13[0]}%`;
|
|
}
|
|
if (items(1315)(merged, text1)) {
|
|
if (tmp14[text1] !== obj) {
|
|
if (undefined === tmp22) {
|
|
if (!flag) {
|
|
const _HermesInternal2 = HermesInternal;
|
|
const tmp8Result3 = new tmp8(1283)("intrinsic " + text + " exists, but is not available. Please file an issue!");
|
|
throw tmp8Result3;
|
|
}
|
|
}
|
|
if (tmp12) {
|
|
str = tmp12[0];
|
|
closure_10(items, closure_9([0, 1], tmp12));
|
|
}
|
|
flag = true;
|
|
let num = 1;
|
|
let flag2 = false;
|
|
let tmp42 = tmp22;
|
|
let tmp43 = tmp22;
|
|
if (1 < items.length) {
|
|
do {
|
|
let tmp44 = items[num];
|
|
tmp46 = closure_12(tmp44, 0, 1);
|
|
tmp47 = closure_12(tmp44, -1);
|
|
let flag3 = flag2;
|
|
if ("\"" !== tmp46) {
|
|
if ("'" !== tmp46) {
|
|
if ("`" !== tmp46) {
|
|
if ("\"" !== tmp47) {
|
|
let tmp52 = "constructor" !== tmp44 && flag;
|
|
if (!tmp52) {
|
|
flag3 = true;
|
|
}
|
|
let text2 = `${str}.${tmp44}`;
|
|
let _HermesInternal3 = HermesInternal;
|
|
let combined = "%" + text2 + "%";
|
|
let tmp55 = items;
|
|
let tmp57 = merged;
|
|
if (items(1315)(merged, combined)) {
|
|
let tmp59 = tmp57[combined];
|
|
let tmp58 = flag;
|
|
} else {
|
|
tmp58 = flag;
|
|
tmp59 = tmp42;
|
|
if (null != tmp42) {
|
|
if (tmp44 in tmp42) {
|
|
if (tmp55(1284)) {
|
|
if (num + 1 >= items.length) {
|
|
let tmp66 = tmp55(1284)(tmp42, tmp44);
|
|
let tmp67 = tmp66;
|
|
if (tmp67) {
|
|
if ("get" in tmp66) {
|
|
if (!("originalValue" in tmp66.get)) {
|
|
let get = tmp66.get;
|
|
}
|
|
}
|
|
}
|
|
get = tmp42[tmp44];
|
|
}
|
|
}
|
|
let tmp64 = tmp55(1315)(tmp42, tmp44);
|
|
let tmp65 = tmp42[tmp44];
|
|
let tmp70 = tmp64;
|
|
if (tmp64) {
|
|
tmp70 = !flag3;
|
|
}
|
|
tmp58 = tmp64;
|
|
tmp59 = tmp65;
|
|
if (tmp70) {
|
|
tmp57[combined] = tmp65;
|
|
tmp58 = tmp64;
|
|
tmp59 = tmp65;
|
|
}
|
|
} else if (!flag) {
|
|
let str19 = "base intrinsic for ";
|
|
let tmp60 = new.target;
|
|
let str20 = " exists, but the property is not available.";
|
|
let tmp61 = new.target;
|
|
let tmp62 = new tmp55(1283)("base intrinsic for " + str + " exists, but the property is not available.");
|
|
throw tmp62;
|
|
}
|
|
}
|
|
}
|
|
num = num + 1;
|
|
flag = tmp58;
|
|
tmp42 = tmp59;
|
|
flag2 = flag3;
|
|
str = text2;
|
|
tmp43 = tmp59;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} while (tmp46 === tmp47);
|
|
const tmp75 = new items(1304)("property names with quotes must have matching quotes");
|
|
throw tmp75;
|
|
}
|
|
return tmp43;
|
|
} else if (typeof doEval === "function") {
|
|
if ("%AsyncFunction%" === text1) {
|
|
let prototype = getEvalledConstructor("async function () {}");
|
|
} else if ("%GeneratorFunction%" === text1) {
|
|
prototype = getEvalledConstructor("function* () {}");
|
|
} else {
|
|
if ("%AsyncGeneratorFunction%" === text1) {
|
|
prototype = getEvalledConstructor("async function* () {}");
|
|
} else if ("%AsyncGenerator%" !== text1) {
|
|
if ("%AsyncIteratorPrototype%" === text1) {
|
|
const tmp108 = doEval("%AsyncGeneratorFunction%");
|
|
let prototype1;
|
|
if (tmp108) {
|
|
prototype1 = tmp108.prototype;
|
|
}
|
|
tmp14["%AsyncGenerator%"] = prototype1;
|
|
let tmp8Result4 = prototype1;
|
|
if (prototype1) {
|
|
tmp8Result4 = tmp8(1288);
|
|
}
|
|
if (tmp8Result4) {
|
|
prototype = tmp8(1288)(prototype1.prototype);
|
|
}
|
|
}
|
|
}
|
|
const tmp27 = getEvalledConstructor("async function* () {}");
|
|
tmp14["%AsyncGeneratorFunction%"] = tmp27;
|
|
if (tmp27) {
|
|
prototype = tmp27.prototype;
|
|
}
|
|
}
|
|
tmp14[text1] = prototype;
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
} else {
|
|
const _HermesInternal = HermesInternal;
|
|
const tmp8Result21 = new tmp8(1304)("intrinsic " + text + " does not exist!");
|
|
throw tmp8Result21;
|
|
}
|
|
tmp10 = merged1;
|
|
} else {
|
|
throw new TypeError("Trying to call a non-function");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
throw new items(1283)("intrinsic name must be a non-empty string");
|
|
};
|