// Metro module 540 (f541). import * as _Module541 from "./Module541"; import * as _Module542 from "./Module542"; import * as _hasNativeSymbols from "./hasNativeSymbols"; import * as _Module546 from "./Module546"; import * as _Module558 from "./Module558"; import * as _Module559 from "./Module559"; import * as _Module549 from "./Module549"; import * as _Module560 from "./Module560"; import * as _Module561 from "./Module561"; import * as _Module562 from "./Module562"; import * as _Module563 from "./Module563"; import * as _Module556 from "./Module556"; import * as _Module557 from "./Module557"; import * as _Module564 from "./Module564"; import * as _Module548 from "./Module548"; import * as _Module565 from "./Module565"; import * as _Module566 from "./Module566"; import * as _Module567 from "./Module567"; import * as _Module568 from "./Module568"; import * as _Module569 from "./Module569"; import * as _Module570 from "./Module570"; import * as _sign from "./sign"; import * as _Module547 from "./Module547"; import { call } from "./Module554"; import * as _Module573 from "./Module573"; let throwTypeError, c513_5, c513_6, doEval2, c513_8, c513_9, c513_10, c513_11, c513_12, c513_13, c513_14, c513_15, getBaseIntrinsic, doEval; const Function2 = Function; const getEvalledConstructor = function getEvalledConstructor(a0) { let r11; try { r11 = Function2(`"use strict"; return (${a0}).constructor;`)(); } catch ($e) { return void 0; } return r11; }; let r8 = function throwTypeError() { throw new _Module541(); }; throwTypeError = r8; if (_Module542) { r8 = (function() { let get; try {} catch ($e) { try { get = _Module542(arguments, "callee").get; } catch ($e) { return throwTypeError; } return get; } return throwTypeError; })(); } const r10 = _hasNativeSymbols(); c513_5 = {}; const r5 = typeof globalThis.Uint8Array !== "undefined" ? _Module546 ? _Module546(Uint8Array) : void 0 : void 0; const r31 = { __proto__: null, "%AggregateError%": typeof globalThis.AggregateError !== "undefined" ? AggregateError : void 0, "%Array%": null, "%ArrayBuffer%": null, "%ArrayIteratorPrototype%": null, "%AsyncFromSyncIteratorPrototype%": void 0, "%AsyncFunction%": null, "%AsyncGenerator%": null, "%AsyncGeneratorFunction%": null, "%AsyncIteratorPrototype%": null, "%Atomics%": null, "%BigInt%": null, "%BigInt64Array%": null, "%BigUint64Array%": null, "%Boolean%": null, "%DataView%": null, "%Date%": null, "%decodeURI%": null, "%decodeURIComponent%": null, "%encodeURI%": null, "%encodeURIComponent%": null, "%Error%": null, "%eval%": null, "%EvalError%": null, "%Float16Array%": null, "%Float32Array%": null, "%Float64Array%": null, "%FinalizationRegistry%": null, "%Function%": null, "%GeneratorFunction%": null, "%Int8Array%": null, "%Int16Array%": null, "%Int32Array%": null, "%isFinite%": null, "%isNaN%": null, "%IteratorPrototype%": null, "%JSON%": null, "%Map%": null, "%MapIteratorPrototype%": null, "%Math%": null, "%Number%": null, "%Object%": null, "%Object.getOwnPropertyDescriptor%": null, "%parseFloat%": null, "%parseInt%": null, "%Promise%": null, "%Proxy%": null, "%RangeError%": null, "%ReferenceError%": null, "%Reflect%": null, "%RegExp%": null, "%Set%": null, "%SetIteratorPrototype%": null, "%SharedArrayBuffer%": null, "%String%": null, "%StringIteratorPrototype%": null, "%Symbol%": null, "%SyntaxError%": null, "%ThrowTypeError%": null, "%TypedArray%": null, "%TypeError%": null, "%Uint8Array%": null, "%Uint8ClampedArray%": null, "%Uint16Array%": null, "%Uint32Array%": null, "%URIError%": null, "%WeakMap%": null, "%WeakRef%": null, "%WeakSet%": null, "%Function.prototype.call%": null, "%Function.prototype.apply%": null, "%Object.defineProperty%": null, "%Object.getPrototypeOf%": null, "%Math.abs%": null, "%Math.floor%": null, "%Math.max%": null, "%Math.min%": null, "%Math.pow%": null, "%Math.round%": null, "%Math.sign%": null, "%Reflect.getPrototypeOf%": null }; r31["%Array%"] = Array; r31["%ArrayBuffer%"] = typeof globalThis.ArrayBuffer !== "undefined" ? ArrayBuffer : void 0; r31["%ArrayIteratorPrototype%"] = r10 ? _Module546 ? _Module546([][Symbol.iterator]()) : void 0 : void 0; r31["%AsyncFunction%"] = c513_5; r31["%AsyncGenerator%"] = c513_5; r31["%AsyncGeneratorFunction%"] = c513_5; r31["%AsyncIteratorPrototype%"] = c513_5; r31["%Atomics%"] = typeof globalThis.Atomics !== "undefined" ? Atomics : void 0; r31["%BigInt%"] = typeof globalThis.BigInt !== "undefined" ? BigInt : void 0; r31["%BigInt64Array%"] = typeof globalThis.BigInt64Array !== "undefined" ? BigInt64Array : void 0; r31["%BigUint64Array%"] = typeof globalThis.BigUint64Array !== "undefined" ? BigUint64Array : void 0; r31["%Boolean%"] = Boolean; r31["%DataView%"] = typeof globalThis.DataView !== "undefined" ? DataView : void 0; r31["%Date%"] = Date; r31["%decodeURI%"] = decodeURI; r31["%decodeURIComponent%"] = decodeURIComponent; r31["%encodeURI%"] = encodeURI; r31["%encodeURIComponent%"] = encodeURIComponent; r31["%Error%"] = _Module558; r31["%eval%"] = globalThis.eval; r31["%EvalError%"] = _Module559; r31["%Float16Array%"] = typeof globalThis.Float16Array !== "undefined" ? Float16Array : void 0; r31["%Float32Array%"] = typeof globalThis.Float32Array !== "undefined" ? Float32Array : void 0; r31["%Float64Array%"] = typeof globalThis.Float64Array !== "undefined" ? Float64Array : void 0; r31["%FinalizationRegistry%"] = typeof globalThis.FinalizationRegistry !== "undefined" ? FinalizationRegistry : void 0; r31["%Function%"] = Function2; r31["%GeneratorFunction%"] = c513_5; r31["%Int8Array%"] = typeof globalThis.Int8Array !== "undefined" ? Int8Array : void 0; r31["%Int16Array%"] = typeof globalThis.Int16Array !== "undefined" ? Int16Array : void 0; r31["%Int32Array%"] = typeof globalThis.Int32Array !== "undefined" ? Int32Array : void 0; r31["%isFinite%"] = isFinite; r31["%isNaN%"] = isNaN; r31["%IteratorPrototype%"] = r10 ? _Module546 ? _Module546(_Module546([][Symbol.iterator]())) : void 0 : void 0; r31["%JSON%"] = typeof globalThis.JSON === "object" ? JSON : void 0; r31["%Map%"] = typeof globalThis.Map !== "undefined" ? Map : void 0; r31["%MapIteratorPrototype%"] = typeof globalThis.Map !== "undefined" ? r10 ? _Module546 ? _Module546(new Map()[Symbol.iterator]()) : void 0 : void 0 : void 0; r31["%Math%"] = Math; r31["%Number%"] = Number; r31["%Object%"] = _Module549; r31["%Object.getOwnPropertyDescriptor%"] = _Module542; r31["%parseFloat%"] = parseFloat; r31["%parseInt%"] = parseInt; r31["%Promise%"] = typeof globalThis.Promise !== "undefined" ? Promise : void 0; r31["%Proxy%"] = typeof globalThis.Proxy !== "undefined" ? Proxy : void 0; r31["%RangeError%"] = _Module560; r31["%ReferenceError%"] = _Module561; r31["%Reflect%"] = typeof globalThis.Reflect !== "undefined" ? Reflect : void 0; r31["%RegExp%"] = RegExp; r31["%Set%"] = typeof globalThis.Set !== "undefined" ? Set : void 0; r31["%SetIteratorPrototype%"] = typeof globalThis.Set !== "undefined" ? r10 ? _Module546 ? _Module546(new Set()[Symbol.iterator]()) : void 0 : void 0 : void 0; r31["%SharedArrayBuffer%"] = typeof globalThis.SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0; r31["%String%"] = String; r31["%StringIteratorPrototype%"] = r10 ? _Module546 ? _Module546(""[Symbol.iterator]()) : void 0 : void 0; r31["%Symbol%"] = r10 ? Symbol : void 0; r31["%SyntaxError%"] = _Module562; r31["%ThrowTypeError%"] = r8; r31["%TypedArray%"] = r5; r31["%TypeError%"] = _Module541; r31["%Uint8Array%"] = typeof globalThis.Uint8Array !== "undefined" ? Uint8Array : void 0; r31["%Uint8ClampedArray%"] = typeof globalThis.Uint8ClampedArray !== "undefined" ? Uint8ClampedArray : void 0; r31["%Uint16Array%"] = typeof globalThis.Uint16Array !== "undefined" ? Uint16Array : void 0; r31["%Uint32Array%"] = typeof globalThis.Uint32Array !== "undefined" ? Uint32Array : void 0; r31["%URIError%"] = _Module563; r31["%WeakMap%"] = typeof globalThis.WeakMap !== "undefined" ? WeakMap : void 0; r31["%WeakRef%"] = typeof globalThis.WeakRef !== "undefined" ? WeakRef : void 0; r31["%WeakSet%"] = typeof globalThis.WeakSet !== "undefined" ? WeakSet : void 0; r31["%Function.prototype.call%"] = _Module556; r31["%Function.prototype.apply%"] = _Module557; r31["%Object.defineProperty%"] = _Module564; r31["%Object.getPrototypeOf%"] = _Module548; r31["%Math.abs%"] = _Module565; r31["%Math.floor%"] = _Module566; r31["%Math.max%"] = _Module567; r31["%Math.min%"] = _Module568; r31["%Math.pow%"] = _Module569; r31["%Math.round%"] = _Module570; r31["%Math.sign%"] = _sign; r31["%Reflect.getPrototypeOf%"] = _Module547; c513_6 = r31; if (_Module546) { try { null.error; } catch ($e) { c513_6["%Error.prototype%"] = _Module546(_Module546($e)); } } doEval = function doEval(a0) { let r11; if (a0 === "%AsyncFunction%") { r11 = getEvalledConstructor("async function () {}"); } else if (a0 === "%GeneratorFunction%") { r11 = getEvalledConstructor("function* () {}"); } else if (a0 === "%AsyncGeneratorFunction%") { r11 = getEvalledConstructor("async function* () {}"); } else if (a0 === "%AsyncGenerator%") { const r23 = doEval("%AsyncGeneratorFunction%"); r11 = r23 ? r23.prototype : void 0; } else { r11 = void 0; if (a0 === "%AsyncIteratorPrototype%") { const r13 = doEval("%AsyncGenerator%"); r11 = r13 && _Module546 ? _Module546(r13.prototype) : void 0; } } c513_6[a0] = r11; return r11; }; doEval2 = doEval; const r216 = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%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 }; r216["%ArrayPrototype%"] = ["Array", "prototype"]; r216["%ArrayProto_entries%"] = ["Array", "prototype", "entries"]; r216["%ArrayProto_forEach%"] = ["Array", "prototype", "forEach"]; r216["%ArrayProto_keys%"] = ["Array", "prototype", "keys"]; r216["%ArrayProto_values%"] = ["Array", "prototype", "values"]; r216["%AsyncFunctionPrototype%"] = ["AsyncFunction", "prototype"]; r216["%AsyncGenerator%"] = ["AsyncGeneratorFunction", "prototype"]; r216["%AsyncGeneratorPrototype%"] = ["AsyncGeneratorFunction", "prototype", "prototype"]; r216["%BooleanPrototype%"] = ["Boolean", "prototype"]; r216["%DataViewPrototype%"] = ["DataView", "prototype"]; r216["%DatePrototype%"] = ["Date", "prototype"]; r216["%ErrorPrototype%"] = ["Error", "prototype"]; r216["%EvalErrorPrototype%"] = ["EvalError", "prototype"]; r216["%Float32ArrayPrototype%"] = ["Float32Array", "prototype"]; r216["%Float64ArrayPrototype%"] = ["Float64Array", "prototype"]; r216["%FunctionPrototype%"] = ["Function", "prototype"]; r216["%Generator%"] = ["GeneratorFunction", "prototype"]; r216["%GeneratorPrototype%"] = ["GeneratorFunction", "prototype", "prototype"]; r216["%Int8ArrayPrototype%"] = ["Int8Array", "prototype"]; r216["%Int16ArrayPrototype%"] = ["Int16Array", "prototype"]; r216["%Int32ArrayPrototype%"] = ["Int32Array", "prototype"]; r216["%JSONParse%"] = ["JSON", "parse"]; r216["%JSONStringify%"] = ["JSON", "stringify"]; r216["%MapPrototype%"] = ["Map", "prototype"]; r216["%NumberPrototype%"] = ["Number", "prototype"]; r216["%ObjectPrototype%"] = ["Object", "prototype"]; r216["%ObjProto_toString%"] = ["Object", "prototype", "toString"]; r216["%ObjProto_valueOf%"] = ["Object", "prototype", "valueOf"]; r216["%PromisePrototype%"] = ["Promise", "prototype"]; r216["%PromiseProto_then%"] = ["Promise", "prototype", "then"]; r216["%Promise_all%"] = ["Promise", "all"]; r216["%Promise_reject%"] = ["Promise", "reject"]; r216["%Promise_resolve%"] = ["Promise", "resolve"]; r216["%RangeErrorPrototype%"] = ["RangeError", "prototype"]; r216["%ReferenceErrorPrototype%"] = ["ReferenceError", "prototype"]; r216["%RegExpPrototype%"] = ["RegExp", "prototype"]; r216["%SetPrototype%"] = ["Set", "prototype"]; r216["%SharedArrayBufferPrototype%"] = ["SharedArrayBuffer", "prototype"]; r216["%StringPrototype%"] = ["String", "prototype"]; r216["%SymbolPrototype%"] = ["Symbol", "prototype"]; r216["%SyntaxErrorPrototype%"] = ["SyntaxError", "prototype"]; r216["%TypedArrayPrototype%"] = ["TypedArray", "prototype"]; r216["%TypeErrorPrototype%"] = ["TypeError", "prototype"]; r216["%Uint8ArrayPrototype%"] = ["Uint8Array", "prototype"]; r216["%Uint8ClampedArrayPrototype%"] = ["Uint8ClampedArray", "prototype"]; r216["%Uint16ArrayPrototype%"] = ["Uint16Array", "prototype"]; r216["%Uint32ArrayPrototype%"] = ["Uint32Array", "prototype"]; r216["%URIErrorPrototype%"] = ["URIError", "prototype"]; r216["%WeakMapPrototype%"] = ["WeakMap", "prototype"]; r216["%WeakSetPrototype%"] = ["WeakSet", "prototype"]; c513_8 = r216; c513_9 = call(_Module556, Array.prototype.concat); c513_10 = call(_Module557, Array.prototype.splice); c513_11 = call(_Module556, String.prototype.replace); c513_12 = call(_Module556, String.prototype.slice); c513_13 = call(_Module556, RegExp.prototype.exec); c513_14 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; c513_15 = /\\(\\)?/g; getBaseIntrinsic = function getBaseIntrinsic(a0, a1) {}; module.exports = function GetIntrinsic(a0, a1) { let r33, r94, r152, r164, r165, length; if (typeof a0 === "string" && a0.length !== 0) { if (arguments.length > 1 && typeof a1 !== "boolean") { throw new _Module541("\"allowMissing\" argument must be a boolean"); } if (c513_13(/^%?[^%]*%?$/, a0) === null) { throw new _Module562("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); } const r53 = c513_12(a0, 0, 1); const r54 = c513_12(a0, -1); if (r53 === "%" && r54 !== "%") { throw new _Module562("invalid intrinsic syntax, expected closing `%`"); } if (r54 === "%" && r53 !== "%") { throw new _Module562("invalid intrinsic syntax, expected opening `%`"); } const r27 = []; let c12366_0 = r27; c513_11(a0, c513_14, function(a0, a1, a2, a3) { c12366_0[c12366_0.length] = a2 ? c513_11(a3, c513_15, "$1") : a1 ? a1 : a0; }); let r26 = r27.length > 0 ? r27[0] : ""; const r20 = "%" + r26 + "%"; const r18 = _Module573(c513_8, r20); let r67 = r20; let r19 = void 0; if (r18) { const r68 = c513_8[r20]; r67 = "%" + r68[0] + "%"; r19 = r68; } const r73 = _Module573(c513_6, r67); const r74 = r67; if (r73) { let r84 = c513_6[r74]; if (r84 === c513_5) { if (r74 === "%AsyncFunction%") { r94 = getEvalledConstructor("async function () {}"); } else if (r74 === "%GeneratorFunction%") { r94 = getEvalledConstructor("function* () {}"); } else if (r74 === "%AsyncGeneratorFunction%") { r94 = getEvalledConstructor("async function* () {}"); } else if (r74 === "%AsyncGenerator%") { const evalledConstructor = getEvalledConstructor("async function* () {}"); c513_6["%AsyncGeneratorFunction%"] = evalledConstructor; r94 = evalledConstructor ? evalledConstructor.prototype : void 0; } else { r94 = void 0; if (r74 === "%AsyncIteratorPrototype%") { const r96 = doEval("%AsyncGeneratorFunction%"); const r97 = r96 ? r96.prototype : void 0; c513_6["%AsyncGenerator%"] = r97; r94 = r97 && _Module546 ? _Module546(r97.prototype) : void 0; } } c513_6[r74] = r94; r84 = r94; } if (r84 === void 0 && !a1) { throw new _Module541(`intrinsic ${r20} exists, but is not available. Please file an issue!`); } if (r19) { r26 = r19[0]; c513_10(r27, c513_9([0, 1], r19)); } const r7 = 1 < r27.length; let r136 = true; let r0 = 1; let r137 = false; let r138 = r84; let r139 = r138; if (r7) { do { const r40 = r27[r0]; const r32 = c513_12(r40, 0, 1); const r141 = c513_12(r40, -1); const r34 = r136; const r2 = r0; let r142 = r137; const r39 = r138; const r31 = r26; if (!(r32 !== "\"" && (r32 !== "'" && (r32 !== "`" && (r141 !== "\"" && (r141 !== "'" && r141 !== "`"))))) && r32 !== r141) { throw new _Module562("property names with quotes must have matching quotes"); } if (!(r40 !== "constructor" && r34)) { r142 = true; } const r145 = r31 + ("." + r40); const r35 = `%${r145}%`; if (_Module573(c513_6, r35)) { r152 = c513_6[r35]; r33 = r34; } else { r33 = r34; r152 = r39; if (r152 != null) { if (!(r40 in r39)) { if (a1) { return void 0; } throw new _Module541("base intrinsic for " + a0 + " exists, but the property is not available."); } if (_Module542) { if (r2 + 1 >= r27.length) { const r168 = _Module542(r39, r40); const r170 = !!r168; r165 = r170 && ("get" in r168 && !("originalValue" in r168.get)) ? r168.get : r39[r40]; r164 = r170; } else { r164 = _Module573(r39, r40); r165 = r39[r40]; } } else { r164 = _Module573(r39, r40); r165 = r39[r40]; } const r174 = r164 ? !r142 : r164; r33 = r164; r152 = r165; if (r174) { c513_6[r35] = r165; r33 = r164; r152 = r165; } } } r0 = r2 + 1; length = r27.length; r136 = r33; r138 = r152; r137 = r142; r26 = r145; r139 = r138; } while (r0 < length); } return r139; } throw new _Module562(`intrinsic ${r20} does not exist!`); } throw new _Module541("intrinsic name must be a non-empty string"); };