{"version":3,"file":"globals.js","names":[],"sources":["esm/worklets/globals.js"],"sourcesContent":["const JS_GLOBALS = /* @__PURE__ */ new Set([\n  // Value properties\n  \"globalThis\",\n  \"Infinity\",\n  \"NaN\",\n  \"undefined\",\n  // Function properties\n  \"eval\",\n  \"isFinite\",\n  \"isNaN\",\n  \"parseFloat\",\n  \"parseInt\",\n  \"decodeURI\",\n  \"decodeURIComponent\",\n  \"encodeURI\",\n  \"encodeURIComponent\",\n  \"escape\",\n  \"unescape\",\n  // Fundamental objects\n  \"Object\",\n  \"Function\",\n  \"Boolean\",\n  \"Symbol\",\n  // Error objects\n  \"Error\",\n  \"AggregateError\",\n  \"EvalError\",\n  \"RangeError\",\n  \"ReferenceError\",\n  \"SyntaxError\",\n  \"TypeError\",\n  \"URIError\",\n  \"InternalError\",\n  // Numbers and dates\n  \"Number\",\n  \"BigInt\",\n  \"Math\",\n  \"Date\",\n  // Text processing\n  \"String\",\n  \"RegExp\",\n  // Indexed collections\n  \"Array\",\n  \"Int8Array\",\n  \"Uint8Array\",\n  \"Uint8ClampedArray\",\n  \"Int16Array\",\n  \"Uint16Array\",\n  \"Int32Array\",\n  \"Uint32Array\",\n  \"BigInt64Array\",\n  \"BigUint64Array\",\n  \"Float32Array\",\n  \"Float64Array\",\n  // Keyed collections\n  \"Map\",\n  \"Set\",\n  \"WeakMap\",\n  \"WeakSet\",\n  // Structured data\n  \"ArrayBuffer\",\n  \"SharedArrayBuffer\",\n  \"DataView\",\n  \"Atomics\",\n  \"JSON\",\n  // Managing memory\n  \"WeakRef\",\n  \"FinalizationRegistry\",\n  // Control abstraction objects\n  \"Iterator\",\n  \"AsyncIterator\",\n  \"Promise\",\n  \"GeneratorFunction\",\n  \"AsyncGeneratorFunction\",\n  \"Generator\",\n  \"AsyncGenerator\",\n  \"AsyncFunction\",\n  // Reflection\n  \"Reflect\",\n  \"Proxy\",\n  // Internationalization\n  \"Intl\"\n]);\nconst DEFAULT_GLOBALS = /* @__PURE__ */ new Set([\n  ...JS_GLOBALS,\n  // Environment / Runtime\n  \"null\",\n  \"this\",\n  \"global\",\n  \"window\",\n  \"self\",\n  \"console\",\n  \"performance\",\n  \"arguments\",\n  \"require\",\n  \"fetch\",\n  \"XMLHttpRequest\",\n  \"WebSocket\",\n  \"queueMicrotask\",\n  \"requestAnimationFrame\",\n  \"cancelAnimationFrame\",\n  \"setTimeout\",\n  \"clearTimeout\",\n  \"setImmediate\",\n  \"clearImmediate\",\n  \"setInterval\",\n  \"clearInterval\",\n  \"HermesInternal\",\n  \"_WORKLET\",\n  // Reanimated installs these in the UI runtime. Capturing them on the JS\n  // thread fails before its value unpacker can initialize (Reanimated 3).\n  \"ReanimatedError\",\n  \"__reanimatedLoggerConfig\",\n  \"_IS_FABRIC\",\n  \"_log\",\n  \"_toString\",\n  \"_scheduleHostFunctionOnJS\",\n  \"_scheduleRemoteFunctionOnJS\",\n  \"_scheduleOnRuntime\",\n  \"_makeShareableClone\",\n  \"_updatePropsPaper\",\n  \"_updatePropsFabric\",\n  \"_measurePaper\",\n  \"_measureFabric\",\n  \"_scrollToPaper\",\n  \"_dispatchCommandPaper\",\n  \"_dispatchCommandFabric\",\n  \"_setGestureState\",\n  \"_notifyAboutProgress\",\n  \"_notifyAboutEnd\",\n  \"_runOnUIQueue\",\n  \"_getAnimationTimestamp\"\n]);\nfunction createGlobalsSet(customGlobals, strictGlobal) {\n  const set = /* @__PURE__ */ new Set();\n  if (!strictGlobal) {\n    for (const g of DEFAULT_GLOBALS) {\n      set.add(g);\n    }\n  }\n  if (customGlobals) {\n    for (const g of customGlobals) {\n      set.add(g);\n    }\n  }\n  return set;\n}\nexport {\n  DEFAULT_GLOBALS,\n  JS_GLOBALS,\n  createGlobalsSet\n};\n//# sourceMappingURL=globals.js.map\n"],"mappings":";AAAA,MAAM,6BAA6B,IAAI,IAAI;CAEzC;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;AACF,CAAC;AACD,MAAM,kCAAkC,IAAI,IAAI;CAC9C,GAAG;CAEH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAGA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,SAAS,iBAAiB,eAAe,cAAc;CACrD,MAAM,sBAAsB,IAAI,IAAI;CACpC,IAAI,CAAC,cAAc;EACjB,KAAK,MAAM,KAAK,iBAAiB;GAC/B,IAAI,IAAI,CAAC;EACX;CACF;CACA,IAAI,eAAe;EACjB,KAAK,MAAM,KAAK,eAAe;GAC7B,IAAI,IAAI,CAAC;EACX;CACF;CACA,OAAO;AACT"}