#!/usr/bin/env node
/* eslint-disable */
// @ts-nocheck
"use strict";

const RAW_RUNTIME_STATE =
  '{\
  "__info": [\
    "This file is automatically generated. Do not touch it, or risk",\
    "your modifications being lost."\
  ],\
  "dependencyTreeRoots": [\
    {\
      "name": "am_i_up_ui",\
      "reference": "workspace:."\
    }\
  ],\
  "enableTopLevelFallback": true,\
  "ignorePatternData": "(^(?:\\\\.yarn\\\\/sdks(?:\\\\/(?!\\\\.{1,2}(?:\\\\/|$))(?:(?:(?!(?:^|\\\\/)\\\\.{1,2}(?:\\\\/|$)).)*?)|$))$)",\
  "pnpZipBackend": "libzip",\
  "fallbackExclusionList": [\
    ["am_i_up_ui", ["workspace:."]]\
  ],\
  "fallbackPool": [\
  ],\
  "packageRegistryData": [\
    [null, [\
      [null, {\
        "packageLocation": "./",\
        "packageDependencies": [\
          ["@eslint/js", "npm:9.39.3"],\
          ["@popperjs/core", "npm:2.11.8"],\
          ["@tanstack/query-core", "npm:5.90.20"],\
          ["@types/bootstrap", "npm:5.2.10"],\
          ["@types/node", "npm:24.11.0"],\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"],\
          ["@vitejs/plugin-react", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.1.4"],\
          ["am_i_up_ui", "workspace:."],\
          ["babel-plugin-react-compiler", "npm:1.0.0"],\
          ["bootstrap", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.3.8"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["eslint-plugin-react-hooks", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.0.1"],\
          ["eslint-plugin-react-refresh", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.4.26"],\
          ["globals", "npm:16.5.0"],\
          ["jotai", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.18.0"],\
          ["jotai-tanstack-query", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.11.0"],\
          ["mediamtx-webrtc-react", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.0.1"],\
          ["prettier", "npm:3.8.1"],\
          ["react", "npm:19.2.4"],\
          ["react-bootstrap", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.10.10"],\
          ["react-bootstrap-icons", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.11.6"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["react-router-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.13.1"],\
          ["socket.io-client", "npm:4.8.3"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"],\
          ["typescript-eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:8.56.1"],\
          ["vite", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.3.1"],\
          ["yaml", "npm:2.8.2"]\
        ],\
        "linkType": "SOFT"\
      }]\
    ]],\
    ["@babel/code-frame", [\
      ["npm:7.29.0", {\
        "packageLocation": "./.yarn/cache/@babel-code-frame-npm-7.29.0-6c4947d913-d34cc504e7.zip/node_modules/@babel/code-frame/",\
        "packageDependencies": [\
          ["@babel/code-frame", "npm:7.29.0"],\
          ["@babel/helper-validator-identifier", "npm:7.28.5"],\
          ["js-tokens", "npm:4.0.0"],\
          ["picocolors", "npm:1.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/compat-data", [\
      ["npm:7.29.0", {\
        "packageLocation": "./.yarn/cache/@babel-compat-data-npm-7.29.0-6b4382e79f-08f3485549.zip/node_modules/@babel/compat-data/",\
        "packageDependencies": [\
          ["@babel/compat-data", "npm:7.29.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/core", [\
      ["npm:7.29.0", {\
        "packageLocation": "./.yarn/cache/@babel-core-npm-7.29.0-a74bfc561b-5127d2e8e8.zip/node_modules/@babel/core/",\
        "packageDependencies": [\
          ["@babel/code-frame", "npm:7.29.0"],\
          ["@babel/core", "npm:7.29.0"],\
          ["@babel/generator", "npm:7.29.1"],\
          ["@babel/helper-compilation-targets", "npm:7.28.6"],\
          ["@babel/helper-module-transforms", "virtual:a74bfc561b28f961f46b2ec8ae406d012b5fbed31a317cc6e0c8e0e4bc61a668944b271114f1150bc3cadae9a39987a6be16fb9362801892abacc23919c76dd7#npm:7.28.6"],\
          ["@babel/helpers", "npm:7.28.6"],\
          ["@babel/parser", "npm:7.29.0"],\
          ["@babel/template", "npm:7.28.6"],\
          ["@babel/traverse", "npm:7.29.0"],\
          ["@babel/types", "npm:7.29.0"],\
          ["@jridgewell/remapping", "npm:2.3.5"],\
          ["convert-source-map", "npm:2.0.0"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["gensync", "npm:1.0.0-beta.2"],\
          ["json5", "npm:2.2.3"],\
          ["semver", "npm:6.3.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/generator", [\
      ["npm:7.29.1", {\
        "packageLocation": "./.yarn/cache/@babel-generator-npm-7.29.1-b1bf16fe79-349086e687.zip/node_modules/@babel/generator/",\
        "packageDependencies": [\
          ["@babel/generator", "npm:7.29.1"],\
          ["@babel/parser", "npm:7.29.0"],\
          ["@babel/types", "npm:7.29.0"],\
          ["@jridgewell/gen-mapping", "npm:0.3.13"],\
          ["@jridgewell/trace-mapping", "npm:0.3.31"],\
          ["jsesc", "npm:3.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-compilation-targets", [\
      ["npm:7.28.6", {\
        "packageLocation": "./.yarn/cache/@babel-helper-compilation-targets-npm-7.28.6-8880f389c9-3fcdf3b1b8.zip/node_modules/@babel/helper-compilation-targets/",\
        "packageDependencies": [\
          ["@babel/compat-data", "npm:7.29.0"],\
          ["@babel/helper-compilation-targets", "npm:7.28.6"],\
          ["@babel/helper-validator-option", "npm:7.27.1"],\
          ["browserslist", "npm:4.28.1"],\
          ["lru-cache", "npm:5.1.1"],\
          ["semver", "npm:6.3.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-globals", [\
      ["npm:7.28.0", {\
        "packageLocation": "./.yarn/cache/@babel-helper-globals-npm-7.28.0-8d79c12faf-5a0cd0c0e8.zip/node_modules/@babel/helper-globals/",\
        "packageDependencies": [\
          ["@babel/helper-globals", "npm:7.28.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-module-imports", [\
      ["npm:7.28.6", {\
        "packageLocation": "./.yarn/cache/@babel-helper-module-imports-npm-7.28.6-5b95b9145c-b49d8d8f20.zip/node_modules/@babel/helper-module-imports/",\
        "packageDependencies": [\
          ["@babel/helper-module-imports", "npm:7.28.6"],\
          ["@babel/traverse", "npm:7.29.0"],\
          ["@babel/types", "npm:7.29.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-module-transforms", [\
      ["npm:7.28.6", {\
        "packageLocation": "./.yarn/cache/@babel-helper-module-transforms-npm-7.28.6-5923cf5a95-6f03e14fc3.zip/node_modules/@babel/helper-module-transforms/",\
        "packageDependencies": [\
          ["@babel/helper-module-transforms", "npm:7.28.6"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:a74bfc561b28f961f46b2ec8ae406d012b5fbed31a317cc6e0c8e0e4bc61a668944b271114f1150bc3cadae9a39987a6be16fb9362801892abacc23919c76dd7#npm:7.28.6", {\
        "packageLocation": "./.yarn/__virtual__/@babel-helper-module-transforms-virtual-3435e223f6/0/cache/@babel-helper-module-transforms-npm-7.28.6-5923cf5a95-6f03e14fc3.zip/node_modules/@babel/helper-module-transforms/",\
        "packageDependencies": [\
          ["@babel/core", "npm:7.29.0"],\
          ["@babel/helper-module-imports", "npm:7.28.6"],\
          ["@babel/helper-module-transforms", "virtual:a74bfc561b28f961f46b2ec8ae406d012b5fbed31a317cc6e0c8e0e4bc61a668944b271114f1150bc3cadae9a39987a6be16fb9362801892abacc23919c76dd7#npm:7.28.6"],\
          ["@babel/helper-validator-identifier", "npm:7.28.5"],\
          ["@babel/traverse", "npm:7.29.0"],\
          ["@types/babel__core", null]\
        ],\
        "packagePeers": [\
          "@babel/core",\
          "@types/babel__core"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-plugin-utils", [\
      ["npm:7.28.6", {\
        "packageLocation": "./.yarn/cache/@babel-helper-plugin-utils-npm-7.28.6-766c984cfe-3f5f8acc15.zip/node_modules/@babel/helper-plugin-utils/",\
        "packageDependencies": [\
          ["@babel/helper-plugin-utils", "npm:7.28.6"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-string-parser", [\
      ["npm:7.27.1", {\
        "packageLocation": "./.yarn/cache/@babel-helper-string-parser-npm-7.27.1-d1471e0598-8bda3448e0.zip/node_modules/@babel/helper-string-parser/",\
        "packageDependencies": [\
          ["@babel/helper-string-parser", "npm:7.27.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-validator-identifier", [\
      ["npm:7.28.5", {\
        "packageLocation": "./.yarn/cache/@babel-helper-validator-identifier-npm-7.28.5-1953d49d2b-42aaebed91.zip/node_modules/@babel/helper-validator-identifier/",\
        "packageDependencies": [\
          ["@babel/helper-validator-identifier", "npm:7.28.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helper-validator-option", [\
      ["npm:7.27.1", {\
        "packageLocation": "./.yarn/cache/@babel-helper-validator-option-npm-7.27.1-7c563f0423-6fec5f006e.zip/node_modules/@babel/helper-validator-option/",\
        "packageDependencies": [\
          ["@babel/helper-validator-option", "npm:7.27.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/helpers", [\
      ["npm:7.28.6", {\
        "packageLocation": "./.yarn/cache/@babel-helpers-npm-7.28.6-682df48628-c4a779c663.zip/node_modules/@babel/helpers/",\
        "packageDependencies": [\
          ["@babel/helpers", "npm:7.28.6"],\
          ["@babel/template", "npm:7.28.6"],\
          ["@babel/types", "npm:7.29.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/parser", [\
      ["npm:7.29.0", {\
        "packageLocation": "./.yarn/cache/@babel-parser-npm-7.29.0-c605c63e8b-333b2aa761.zip/node_modules/@babel/parser/",\
        "packageDependencies": [\
          ["@babel/parser", "npm:7.29.0"],\
          ["@babel/types", "npm:7.29.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/plugin-transform-react-jsx-self", [\
      ["npm:7.27.1", {\
        "packageLocation": "./.yarn/cache/@babel-plugin-transform-react-jsx-self-npm-7.27.1-bd0fa344f1-00a4f917b7.zip/node_modules/@babel/plugin-transform-react-jsx-self/",\
        "packageDependencies": [\
          ["@babel/plugin-transform-react-jsx-self", "npm:7.27.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:6c5b0a61b1a890563b080e21c43f2a56934af967fd2bac5ae9a0f96d232fe6b5f947c465961599877c82c16f4c5e565c0920137c1ac82fcb751a2cc2afad30c0#npm:7.27.1", {\
        "packageLocation": "./.yarn/__virtual__/@babel-plugin-transform-react-jsx-self-virtual-c8ce245d0e/0/cache/@babel-plugin-transform-react-jsx-self-npm-7.27.1-bd0fa344f1-00a4f917b7.zip/node_modules/@babel/plugin-transform-react-jsx-self/",\
        "packageDependencies": [\
          ["@babel/core", "npm:7.29.0"],\
          ["@babel/helper-plugin-utils", "npm:7.28.6"],\
          ["@babel/plugin-transform-react-jsx-self", "virtual:6c5b0a61b1a890563b080e21c43f2a56934af967fd2bac5ae9a0f96d232fe6b5f947c465961599877c82c16f4c5e565c0920137c1ac82fcb751a2cc2afad30c0#npm:7.27.1"],\
          ["@types/babel__core", "npm:7.20.5"]\
        ],\
        "packagePeers": [\
          "@babel/core",\
          "@types/babel__core"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/plugin-transform-react-jsx-source", [\
      ["npm:7.27.1", {\
        "packageLocation": "./.yarn/cache/@babel-plugin-transform-react-jsx-source-npm-7.27.1-36a9716d8f-5e67b56c39.zip/node_modules/@babel/plugin-transform-react-jsx-source/",\
        "packageDependencies": [\
          ["@babel/plugin-transform-react-jsx-source", "npm:7.27.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:6c5b0a61b1a890563b080e21c43f2a56934af967fd2bac5ae9a0f96d232fe6b5f947c465961599877c82c16f4c5e565c0920137c1ac82fcb751a2cc2afad30c0#npm:7.27.1", {\
        "packageLocation": "./.yarn/__virtual__/@babel-plugin-transform-react-jsx-source-virtual-9f56e42dfc/0/cache/@babel-plugin-transform-react-jsx-source-npm-7.27.1-36a9716d8f-5e67b56c39.zip/node_modules/@babel/plugin-transform-react-jsx-source/",\
        "packageDependencies": [\
          ["@babel/core", "npm:7.29.0"],\
          ["@babel/helper-plugin-utils", "npm:7.28.6"],\
          ["@babel/plugin-transform-react-jsx-source", "virtual:6c5b0a61b1a890563b080e21c43f2a56934af967fd2bac5ae9a0f96d232fe6b5f947c465961599877c82c16f4c5e565c0920137c1ac82fcb751a2cc2afad30c0#npm:7.27.1"],\
          ["@types/babel__core", "npm:7.20.5"]\
        ],\
        "packagePeers": [\
          "@babel/core",\
          "@types/babel__core"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/runtime", [\
      ["npm:7.28.6", {\
        "packageLocation": "./.yarn/cache/@babel-runtime-npm-7.28.6-f40c99aeef-358cf24299.zip/node_modules/@babel/runtime/",\
        "packageDependencies": [\
          ["@babel/runtime", "npm:7.28.6"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/template", [\
      ["npm:7.28.6", {\
        "packageLocation": "./.yarn/cache/@babel-template-npm-7.28.6-bff3bc3923-66d87225ed.zip/node_modules/@babel/template/",\
        "packageDependencies": [\
          ["@babel/code-frame", "npm:7.29.0"],\
          ["@babel/parser", "npm:7.29.0"],\
          ["@babel/template", "npm:7.28.6"],\
          ["@babel/types", "npm:7.29.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/traverse", [\
      ["npm:7.29.0", {\
        "packageLocation": "./.yarn/cache/@babel-traverse-npm-7.29.0-85d5d916b6-f63ef6e58d.zip/node_modules/@babel/traverse/",\
        "packageDependencies": [\
          ["@babel/code-frame", "npm:7.29.0"],\
          ["@babel/generator", "npm:7.29.1"],\
          ["@babel/helper-globals", "npm:7.28.0"],\
          ["@babel/parser", "npm:7.29.0"],\
          ["@babel/template", "npm:7.28.6"],\
          ["@babel/traverse", "npm:7.29.0"],\
          ["@babel/types", "npm:7.29.0"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@babel/types", [\
      ["npm:7.29.0", {\
        "packageLocation": "./.yarn/cache/@babel-types-npm-7.29.0-6c2fa77581-23cc3466e8.zip/node_modules/@babel/types/",\
        "packageDependencies": [\
          ["@babel/helper-string-parser", "npm:7.27.1"],\
          ["@babel/helper-validator-identifier", "npm:7.28.5"],\
          ["@babel/types", "npm:7.29.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/aix-ppc64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-aix-ppc64-npm-0.27.3-28583f301d/node_modules/@esbuild/aix-ppc64/",\
        "packageDependencies": [\
          ["@esbuild/aix-ppc64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/android-arm", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-android-arm-npm-0.27.3-a9020951d9/node_modules/@esbuild/android-arm/",\
        "packageDependencies": [\
          ["@esbuild/android-arm", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/android-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-android-arm64-npm-0.27.3-3d7f480203/node_modules/@esbuild/android-arm64/",\
        "packageDependencies": [\
          ["@esbuild/android-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/android-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-android-x64-npm-0.27.3-c71d5a3153/node_modules/@esbuild/android-x64/",\
        "packageDependencies": [\
          ["@esbuild/android-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/darwin-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-darwin-arm64-npm-0.27.3-4c8fed986d/node_modules/@esbuild/darwin-arm64/",\
        "packageDependencies": [\
          ["@esbuild/darwin-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/darwin-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-darwin-x64-npm-0.27.3-f27535b6d7/node_modules/@esbuild/darwin-x64/",\
        "packageDependencies": [\
          ["@esbuild/darwin-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/freebsd-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-freebsd-arm64-npm-0.27.3-9b167bbc41/node_modules/@esbuild/freebsd-arm64/",\
        "packageDependencies": [\
          ["@esbuild/freebsd-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/freebsd-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-freebsd-x64-npm-0.27.3-41645c0759/node_modules/@esbuild/freebsd-x64/",\
        "packageDependencies": [\
          ["@esbuild/freebsd-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-arm", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-arm-npm-0.27.3-49bd02d78a/node_modules/@esbuild/linux-arm/",\
        "packageDependencies": [\
          ["@esbuild/linux-arm", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-arm64-npm-0.27.3-a9fedc262b/node_modules/@esbuild/linux-arm64/",\
        "packageDependencies": [\
          ["@esbuild/linux-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-ia32", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-ia32-npm-0.27.3-f45d477f3e/node_modules/@esbuild/linux-ia32/",\
        "packageDependencies": [\
          ["@esbuild/linux-ia32", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-loong64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-loong64-npm-0.27.3-88ac081187/node_modules/@esbuild/linux-loong64/",\
        "packageDependencies": [\
          ["@esbuild/linux-loong64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-mips64el", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-mips64el-npm-0.27.3-366a446ba9/node_modules/@esbuild/linux-mips64el/",\
        "packageDependencies": [\
          ["@esbuild/linux-mips64el", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-ppc64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-ppc64-npm-0.27.3-abfa4eb56e/node_modules/@esbuild/linux-ppc64/",\
        "packageDependencies": [\
          ["@esbuild/linux-ppc64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-riscv64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-riscv64-npm-0.27.3-fe0b457682/node_modules/@esbuild/linux-riscv64/",\
        "packageDependencies": [\
          ["@esbuild/linux-riscv64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-s390x", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-s390x-npm-0.27.3-a3901c1419/node_modules/@esbuild/linux-s390x/",\
        "packageDependencies": [\
          ["@esbuild/linux-s390x", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/linux-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-linux-x64-npm-0.27.3-2041dd7b27/node_modules/@esbuild/linux-x64/",\
        "packageDependencies": [\
          ["@esbuild/linux-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/netbsd-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-netbsd-arm64-npm-0.27.3-e62baa2b8c/node_modules/@esbuild/netbsd-arm64/",\
        "packageDependencies": [\
          ["@esbuild/netbsd-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/netbsd-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-netbsd-x64-npm-0.27.3-04c8b6bf87/node_modules/@esbuild/netbsd-x64/",\
        "packageDependencies": [\
          ["@esbuild/netbsd-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/openbsd-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-openbsd-arm64-npm-0.27.3-f249832d7a/node_modules/@esbuild/openbsd-arm64/",\
        "packageDependencies": [\
          ["@esbuild/openbsd-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/openbsd-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-openbsd-x64-npm-0.27.3-1270973fae/node_modules/@esbuild/openbsd-x64/",\
        "packageDependencies": [\
          ["@esbuild/openbsd-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/openharmony-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-openharmony-arm64-npm-0.27.3-ef55456c0b/node_modules/@esbuild/openharmony-arm64/",\
        "packageDependencies": [\
          ["@esbuild/openharmony-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/sunos-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-sunos-x64-npm-0.27.3-b9cf8f5e3b/node_modules/@esbuild/sunos-x64/",\
        "packageDependencies": [\
          ["@esbuild/sunos-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/win32-arm64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-win32-arm64-npm-0.27.3-4efe5a15ad/node_modules/@esbuild/win32-arm64/",\
        "packageDependencies": [\
          ["@esbuild/win32-arm64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/win32-ia32", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-win32-ia32-npm-0.27.3-bfe05b431c/node_modules/@esbuild/win32-ia32/",\
        "packageDependencies": [\
          ["@esbuild/win32-ia32", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@esbuild/win32-x64", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/@esbuild-win32-x64-npm-0.27.3-c6a1294f67/node_modules/@esbuild/win32-x64/",\
        "packageDependencies": [\
          ["@esbuild/win32-x64", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint-community/eslint-utils", [\
      ["npm:4.9.1", {\
        "packageLocation": "./.yarn/cache/@eslint-community-eslint-utils-npm-4.9.1-30ad3d49de-dc4ab5e3e3.zip/node_modules/@eslint-community/eslint-utils/",\
        "packageDependencies": [\
          ["@eslint-community/eslint-utils", "npm:4.9.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:94ddeb903fec1804fb7a8348bc3bf7450dd11f65c5b4166d164e75773ccc1c0697e69663dce1080065db7cadeed338344ceeaf9261b8bf684cac4900782ad8ba#npm:4.9.1", {\
        "packageLocation": "./.yarn/__virtual__/@eslint-community-eslint-utils-virtual-24d9787dbd/0/cache/@eslint-community-eslint-utils-npm-4.9.1-30ad3d49de-dc4ab5e3e3.zip/node_modules/@eslint-community/eslint-utils/",\
        "packageDependencies": [\
          ["@eslint-community/eslint-utils", "virtual:94ddeb903fec1804fb7a8348bc3bf7450dd11f65c5b4166d164e75773ccc1c0697e69663dce1080065db7cadeed338344ceeaf9261b8bf684cac4900782ad8ba#npm:4.9.1"],\
          ["@types/eslint", null],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["eslint-visitor-keys", "npm:3.4.3"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "eslint"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint-community/regexpp", [\
      ["npm:4.12.2", {\
        "packageLocation": "./.yarn/cache/@eslint-community-regexpp-npm-4.12.2-3d54624470-fddcbc6685.zip/node_modules/@eslint-community/regexpp/",\
        "packageDependencies": [\
          ["@eslint-community/regexpp", "npm:4.12.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint/config-array", [\
      ["npm:0.21.1", {\
        "packageLocation": "./.yarn/cache/@eslint-config-array-npm-0.21.1-c33ed9ec91-2f657d4edd.zip/node_modules/@eslint/config-array/",\
        "packageDependencies": [\
          ["@eslint/config-array", "npm:0.21.1"],\
          ["@eslint/object-schema", "npm:2.1.7"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["minimatch", "npm:3.1.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint/config-helpers", [\
      ["npm:0.4.2", {\
        "packageLocation": "./.yarn/cache/@eslint-config-helpers-npm-0.4.2-a55655f805-92efd7a527.zip/node_modules/@eslint/config-helpers/",\
        "packageDependencies": [\
          ["@eslint/config-helpers", "npm:0.4.2"],\
          ["@eslint/core", "npm:0.17.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint/core", [\
      ["npm:0.17.0", {\
        "packageLocation": "./.yarn/cache/@eslint-core-npm-0.17.0-8579df04c4-9a580f2246.zip/node_modules/@eslint/core/",\
        "packageDependencies": [\
          ["@eslint/core", "npm:0.17.0"],\
          ["@types/json-schema", "npm:7.0.15"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint/eslintrc", [\
      ["npm:3.3.4", {\
        "packageLocation": "./.yarn/cache/@eslint-eslintrc-npm-3.3.4-ad87ab2457-1fe481a6af.zip/node_modules/@eslint/eslintrc/",\
        "packageDependencies": [\
          ["@eslint/eslintrc", "npm:3.3.4"],\
          ["ajv", "npm:6.14.0"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["espree", "npm:10.4.0"],\
          ["globals", "npm:14.0.0"],\
          ["ignore", "npm:5.3.2"],\
          ["import-fresh", "npm:3.3.1"],\
          ["js-yaml", "npm:4.1.1"],\
          ["minimatch", "npm:3.1.5"],\
          ["strip-json-comments", "npm:3.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint/js", [\
      ["npm:9.39.3", {\
        "packageLocation": "./.yarn/cache/@eslint-js-npm-9.39.3-23424498b1-df1c70d668.zip/node_modules/@eslint/js/",\
        "packageDependencies": [\
          ["@eslint/js", "npm:9.39.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint/object-schema", [\
      ["npm:2.1.7", {\
        "packageLocation": "./.yarn/cache/@eslint-object-schema-npm-2.1.7-cb962a5b9b-936b6e4998.zip/node_modules/@eslint/object-schema/",\
        "packageDependencies": [\
          ["@eslint/object-schema", "npm:2.1.7"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@eslint/plugin-kit", [\
      ["npm:0.4.1", {\
        "packageLocation": "./.yarn/cache/@eslint-plugin-kit-npm-0.4.1-3df70dd079-51600f78b7.zip/node_modules/@eslint/plugin-kit/",\
        "packageDependencies": [\
          ["@eslint/core", "npm:0.17.0"],\
          ["@eslint/plugin-kit", "npm:0.4.1"],\
          ["levn", "npm:0.4.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@gar/promise-retry", [\
      ["npm:1.0.2", {\
        "packageLocation": "./.yarn/cache/@gar-promise-retry-npm-1.0.2-960b209ddf-748a84fb0a.zip/node_modules/@gar/promise-retry/",\
        "packageDependencies": [\
          ["@gar/promise-retry", "npm:1.0.2"],\
          ["retry", "npm:0.13.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@humanfs/core", [\
      ["npm:0.19.1", {\
        "packageLocation": "./.yarn/cache/@humanfs-core-npm-0.19.1-e2e7aaeb6e-aa4e015217.zip/node_modules/@humanfs/core/",\
        "packageDependencies": [\
          ["@humanfs/core", "npm:0.19.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@humanfs/node", [\
      ["npm:0.16.7", {\
        "packageLocation": "./.yarn/cache/@humanfs-node-npm-0.16.7-fa16bdb590-9f83d3cf2c.zip/node_modules/@humanfs/node/",\
        "packageDependencies": [\
          ["@humanfs/core", "npm:0.19.1"],\
          ["@humanfs/node", "npm:0.16.7"],\
          ["@humanwhocodes/retry", "npm:0.4.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@humanwhocodes/module-importer", [\
      ["npm:1.0.1", {\
        "packageLocation": "./.yarn/cache/@humanwhocodes-module-importer-npm-1.0.1-9d07ed2e4a-909b69c3b8.zip/node_modules/@humanwhocodes/module-importer/",\
        "packageDependencies": [\
          ["@humanwhocodes/module-importer", "npm:1.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@humanwhocodes/retry", [\
      ["npm:0.4.3", {\
        "packageLocation": "./.yarn/cache/@humanwhocodes-retry-npm-0.4.3-a8d7ca1663-3775bb3008.zip/node_modules/@humanwhocodes/retry/",\
        "packageDependencies": [\
          ["@humanwhocodes/retry", "npm:0.4.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@isaacs/fs-minipass", [\
      ["npm:4.0.1", {\
        "packageLocation": "./.yarn/cache/@isaacs-fs-minipass-npm-4.0.1-677026e841-c25b6dc159.zip/node_modules/@isaacs/fs-minipass/",\
        "packageDependencies": [\
          ["@isaacs/fs-minipass", "npm:4.0.1"],\
          ["minipass", "npm:7.1.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@jridgewell/gen-mapping", [\
      ["npm:0.3.13", {\
        "packageLocation": "./.yarn/cache/@jridgewell-gen-mapping-npm-0.3.13-9bd96ac800-9a7d65fb13.zip/node_modules/@jridgewell/gen-mapping/",\
        "packageDependencies": [\
          ["@jridgewell/gen-mapping", "npm:0.3.13"],\
          ["@jridgewell/sourcemap-codec", "npm:1.5.5"],\
          ["@jridgewell/trace-mapping", "npm:0.3.31"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@jridgewell/remapping", [\
      ["npm:2.3.5", {\
        "packageLocation": "./.yarn/cache/@jridgewell-remapping-npm-2.3.5-df8dacc063-3de494219f.zip/node_modules/@jridgewell/remapping/",\
        "packageDependencies": [\
          ["@jridgewell/gen-mapping", "npm:0.3.13"],\
          ["@jridgewell/remapping", "npm:2.3.5"],\
          ["@jridgewell/trace-mapping", "npm:0.3.31"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@jridgewell/resolve-uri", [\
      ["npm:3.1.2", {\
        "packageLocation": "./.yarn/cache/@jridgewell-resolve-uri-npm-3.1.2-5bc4245992-d502e6fb51.zip/node_modules/@jridgewell/resolve-uri/",\
        "packageDependencies": [\
          ["@jridgewell/resolve-uri", "npm:3.1.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@jridgewell/sourcemap-codec", [\
      ["npm:1.5.5", {\
        "packageLocation": "./.yarn/cache/@jridgewell-sourcemap-codec-npm-1.5.5-5189d9fc79-f9e538f302.zip/node_modules/@jridgewell/sourcemap-codec/",\
        "packageDependencies": [\
          ["@jridgewell/sourcemap-codec", "npm:1.5.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@jridgewell/trace-mapping", [\
      ["npm:0.3.31", {\
        "packageLocation": "./.yarn/cache/@jridgewell-trace-mapping-npm-0.3.31-1ae81d75ac-4b30ec8cd5.zip/node_modules/@jridgewell/trace-mapping/",\
        "packageDependencies": [\
          ["@jridgewell/resolve-uri", "npm:3.1.2"],\
          ["@jridgewell/sourcemap-codec", "npm:1.5.5"],\
          ["@jridgewell/trace-mapping", "npm:0.3.31"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@npmcli/agent", [\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/@npmcli-agent-npm-4.0.0-502e5ae4f0-f7b5ce0f3d.zip/node_modules/@npmcli/agent/",\
        "packageDependencies": [\
          ["@npmcli/agent", "npm:4.0.0"],\
          ["agent-base", "npm:7.1.4"],\
          ["http-proxy-agent", "npm:7.0.2"],\
          ["https-proxy-agent", "npm:7.0.6"],\
          ["lru-cache", "npm:11.2.6"],\
          ["socks-proxy-agent", "npm:8.0.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@npmcli/fs", [\
      ["npm:5.0.0", {\
        "packageLocation": "./.yarn/cache/@npmcli-fs-npm-5.0.0-9d737ae2f3-26e376d780.zip/node_modules/@npmcli/fs/",\
        "packageDependencies": [\
          ["@npmcli/fs", "npm:5.0.0"],\
          ["semver", "npm:7.7.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@popperjs/core", [\
      ["npm:2.11.8", {\
        "packageLocation": "./.yarn/cache/@popperjs-core-npm-2.11.8-f1692e11a0-4681e682ab.zip/node_modules/@popperjs/core/",\
        "packageDependencies": [\
          ["@popperjs/core", "npm:2.11.8"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@react-aria/ssr", [\
      ["npm:3.9.10", {\
        "packageLocation": "./.yarn/cache/@react-aria-ssr-npm-3.9.10-43d87d597b-44acb4c441.zip/node_modules/@react-aria/ssr/",\
        "packageDependencies": [\
          ["@react-aria/ssr", "npm:3.9.10"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:3.9.10", {\
        "packageLocation": "./.yarn/__virtual__/@react-aria-ssr-virtual-7535a5cd07/0/cache/@react-aria-ssr-npm-3.9.10-43d87d597b-44acb4c441.zip/node_modules/@react-aria/ssr/",\
        "packageDependencies": [\
          ["@react-aria/ssr", "virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:3.9.10"],\
          ["@swc/helpers", "npm:0.5.19"],\
          ["@types/react", "npm:19.2.14"],\
          ["react", "npm:19.2.4"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@restart/hooks", [\
      ["npm:0.4.16", {\
        "packageLocation": "./.yarn/cache/@restart-hooks-npm-0.4.16-61dbae33ba-b6a0f1db04.zip/node_modules/@restart/hooks/",\
        "packageDependencies": [\
          ["@restart/hooks", "npm:0.4.16"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["npm:0.5.1", {\
        "packageLocation": "./.yarn/cache/@restart-hooks-npm-0.5.1-9562cce47a-a409b9f1cc.zip/node_modules/@restart/hooks/",\
        "packageDependencies": [\
          ["@restart/hooks", "npm:0.5.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:0.5.1", {\
        "packageLocation": "./.yarn/__virtual__/@restart-hooks-virtual-11499008ab/0/cache/@restart-hooks-npm-0.5.1-9562cce47a-a409b9f1cc.zip/node_modules/@restart/hooks/",\
        "packageDependencies": [\
          ["@restart/hooks", "virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:0.5.1"],\
          ["@types/react", "npm:19.2.14"],\
          ["dequal", "npm:2.0.3"],\
          ["react", "npm:19.2.4"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }],\
      ["virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:0.4.16", {\
        "packageLocation": "./.yarn/__virtual__/@restart-hooks-virtual-f6f5652456/0/cache/@restart-hooks-npm-0.4.16-61dbae33ba-b6a0f1db04.zip/node_modules/@restart/hooks/",\
        "packageDependencies": [\
          ["@restart/hooks", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:0.4.16"],\
          ["@types/react", "npm:19.2.14"],\
          ["dequal", "npm:2.0.3"],\
          ["react", "npm:19.2.4"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@restart/ui", [\
      ["npm:1.9.4", {\
        "packageLocation": "./.yarn/cache/@restart-ui-npm-1.9.4-316c674ed2-98370e9dc6.zip/node_modules/@restart/ui/",\
        "packageDependencies": [\
          ["@restart/ui", "npm:1.9.4"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:1.9.4", {\
        "packageLocation": "./.yarn/__virtual__/@restart-ui-virtual-2c7fdebac9/0/cache/@restart-ui-npm-1.9.4-316c674ed2-98370e9dc6.zip/node_modules/@restart/ui/",\
        "packageDependencies": [\
          ["@babel/runtime", "npm:7.28.6"],\
          ["@popperjs/core", "npm:2.11.8"],\
          ["@react-aria/ssr", "virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:3.9.10"],\
          ["@restart/hooks", "virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:0.5.1"],\
          ["@restart/ui", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:1.9.4"],\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"],\
          ["@types/warning", "npm:3.0.3"],\
          ["dequal", "npm:2.0.3"],\
          ["dom-helpers", "npm:5.2.1"],\
          ["react", "npm:19.2.4"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["uncontrollable", "virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:8.0.4"],\
          ["warning", "npm:4.0.3"]\
        ],\
        "packagePeers": [\
          "@types/react-dom",\
          "@types/react",\
          "react-dom",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rolldown/pluginutils", [\
      ["npm:1.0.0-rc.3", {\
        "packageLocation": "./.yarn/cache/@rolldown-pluginutils-npm-1.0.0-rc.3-790b1e278c-3928b6282a.zip/node_modules/@rolldown/pluginutils/",\
        "packageDependencies": [\
          ["@rolldown/pluginutils", "npm:1.0.0-rc.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-android-arm-eabi", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-android-arm-eabi-npm-4.59.0-910d6ebd8c/node_modules/@rollup/rollup-android-arm-eabi/",\
        "packageDependencies": [\
          ["@rollup/rollup-android-arm-eabi", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-android-arm64", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-android-arm64-npm-4.59.0-cfb9484bfa/node_modules/@rollup/rollup-android-arm64/",\
        "packageDependencies": [\
          ["@rollup/rollup-android-arm64", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-darwin-arm64", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-darwin-arm64-npm-4.59.0-db3495ba42/node_modules/@rollup/rollup-darwin-arm64/",\
        "packageDependencies": [\
          ["@rollup/rollup-darwin-arm64", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-darwin-x64", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-darwin-x64-npm-4.59.0-cfe999cbb8/node_modules/@rollup/rollup-darwin-x64/",\
        "packageDependencies": [\
          ["@rollup/rollup-darwin-x64", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-freebsd-arm64", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-freebsd-arm64-npm-4.59.0-d0d5ecfb7c/node_modules/@rollup/rollup-freebsd-arm64/",\
        "packageDependencies": [\
          ["@rollup/rollup-freebsd-arm64", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-freebsd-x64", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-freebsd-x64-npm-4.59.0-e833d306d6/node_modules/@rollup/rollup-freebsd-x64/",\
        "packageDependencies": [\
          ["@rollup/rollup-freebsd-x64", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-arm-gnueabihf", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-arm-gnueabihf-npm-4.59.0-d9427160f7/node_modules/@rollup/rollup-linux-arm-gnueabihf/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-arm-gnueabihf", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-arm-musleabihf", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-arm-musleabihf-npm-4.59.0-a56abe1623/node_modules/@rollup/rollup-linux-arm-musleabihf/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-arm-musleabihf", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-arm64-gnu", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-arm64-gnu-npm-4.59.0-8929991df7/node_modules/@rollup/rollup-linux-arm64-gnu/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-arm64-gnu", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-arm64-musl", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-arm64-musl-npm-4.59.0-fcbe29740d/node_modules/@rollup/rollup-linux-arm64-musl/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-arm64-musl", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-loong64-gnu", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-loong64-gnu-npm-4.59.0-53a2cbeb18/node_modules/@rollup/rollup-linux-loong64-gnu/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-loong64-gnu", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-loong64-musl", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-loong64-musl-npm-4.59.0-c53ce95532/node_modules/@rollup/rollup-linux-loong64-musl/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-loong64-musl", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-ppc64-gnu", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-ppc64-gnu-npm-4.59.0-2fa9a28c9f/node_modules/@rollup/rollup-linux-ppc64-gnu/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-ppc64-gnu", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-ppc64-musl", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-ppc64-musl-npm-4.59.0-7c69c76347/node_modules/@rollup/rollup-linux-ppc64-musl/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-ppc64-musl", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-riscv64-gnu", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-riscv64-gnu-npm-4.59.0-4efd598c98/node_modules/@rollup/rollup-linux-riscv64-gnu/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-riscv64-gnu", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-riscv64-musl", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-riscv64-musl-npm-4.59.0-e49f6c8605/node_modules/@rollup/rollup-linux-riscv64-musl/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-riscv64-musl", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-s390x-gnu", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-s390x-gnu-npm-4.59.0-6a6b94ad65/node_modules/@rollup/rollup-linux-s390x-gnu/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-s390x-gnu", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-x64-gnu", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-x64-gnu-npm-4.59.0-da6c703f69/node_modules/@rollup/rollup-linux-x64-gnu/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-x64-gnu", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-linux-x64-musl", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-linux-x64-musl-npm-4.59.0-50f79fbe61/node_modules/@rollup/rollup-linux-x64-musl/",\
        "packageDependencies": [\
          ["@rollup/rollup-linux-x64-musl", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-openbsd-x64", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-openbsd-x64-npm-4.59.0-f004324c8a/node_modules/@rollup/rollup-openbsd-x64/",\
        "packageDependencies": [\
          ["@rollup/rollup-openbsd-x64", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-openharmony-arm64", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-openharmony-arm64-npm-4.59.0-d418bec0d2/node_modules/@rollup/rollup-openharmony-arm64/",\
        "packageDependencies": [\
          ["@rollup/rollup-openharmony-arm64", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-win32-arm64-msvc", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-win32-arm64-msvc-npm-4.59.0-d1e11bba9f/node_modules/@rollup/rollup-win32-arm64-msvc/",\
        "packageDependencies": [\
          ["@rollup/rollup-win32-arm64-msvc", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-win32-ia32-msvc", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-win32-ia32-msvc-npm-4.59.0-d4b7207f70/node_modules/@rollup/rollup-win32-ia32-msvc/",\
        "packageDependencies": [\
          ["@rollup/rollup-win32-ia32-msvc", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-win32-x64-gnu", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-win32-x64-gnu-npm-4.59.0-462c90c9b5/node_modules/@rollup/rollup-win32-x64-gnu/",\
        "packageDependencies": [\
          ["@rollup/rollup-win32-x64-gnu", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@rollup/rollup-win32-x64-msvc", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/unplugged/@rollup-rollup-win32-x64-msvc-npm-4.59.0-1850b314ab/node_modules/@rollup/rollup-win32-x64-msvc/",\
        "packageDependencies": [\
          ["@rollup/rollup-win32-x64-msvc", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@socket.io/component-emitter", [\
      ["npm:3.1.2", {\
        "packageLocation": "./.yarn/cache/@socket.io-component-emitter-npm-3.1.2-bc4133d33f-c4242bad66.zip/node_modules/@socket.io/component-emitter/",\
        "packageDependencies": [\
          ["@socket.io/component-emitter", "npm:3.1.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@swc/helpers", [\
      ["npm:0.5.19", {\
        "packageLocation": "./.yarn/cache/@swc-helpers-npm-0.5.19-8b3f562b85-30317ee644.zip/node_modules/@swc/helpers/",\
        "packageDependencies": [\
          ["@swc/helpers", "npm:0.5.19"],\
          ["tslib", "npm:2.8.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@tanstack/query-core", [\
      ["npm:5.90.20", {\
        "packageLocation": "./.yarn/cache/@tanstack-query-core-npm-5.90.20-fe193b58bc-70637dfcec.zip/node_modules/@tanstack/query-core/",\
        "packageDependencies": [\
          ["@tanstack/query-core", "npm:5.90.20"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/babel__core", [\
      ["npm:7.20.5", {\
        "packageLocation": "./.yarn/cache/@types-babel__core-npm-7.20.5-4d95f75eab-bdee3bb699.zip/node_modules/@types/babel__core/",\
        "packageDependencies": [\
          ["@babel/parser", "npm:7.29.0"],\
          ["@babel/types", "npm:7.29.0"],\
          ["@types/babel__core", "npm:7.20.5"],\
          ["@types/babel__generator", "npm:7.27.0"],\
          ["@types/babel__template", "npm:7.4.4"],\
          ["@types/babel__traverse", "npm:7.28.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/babel__generator", [\
      ["npm:7.27.0", {\
        "packageLocation": "./.yarn/cache/@types-babel__generator-npm-7.27.0-a5af33547a-9f9e959a87.zip/node_modules/@types/babel__generator/",\
        "packageDependencies": [\
          ["@babel/types", "npm:7.29.0"],\
          ["@types/babel__generator", "npm:7.27.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/babel__template", [\
      ["npm:7.4.4", {\
        "packageLocation": "./.yarn/cache/@types-babel__template-npm-7.4.4-f34eba762c-cc84f6c6ab.zip/node_modules/@types/babel__template/",\
        "packageDependencies": [\
          ["@babel/parser", "npm:7.29.0"],\
          ["@babel/types", "npm:7.29.0"],\
          ["@types/babel__template", "npm:7.4.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/babel__traverse", [\
      ["npm:7.28.0", {\
        "packageLocation": "./.yarn/cache/@types-babel__traverse-npm-7.28.0-44a48c1b20-b52d7d4e8f.zip/node_modules/@types/babel__traverse/",\
        "packageDependencies": [\
          ["@babel/types", "npm:7.29.0"],\
          ["@types/babel__traverse", "npm:7.28.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/bootstrap", [\
      ["npm:5.2.10", {\
        "packageLocation": "./.yarn/cache/@types-bootstrap-npm-5.2.10-d5d4ae4dbf-3e978855eb.zip/node_modules/@types/bootstrap/",\
        "packageDependencies": [\
          ["@popperjs/core", "npm:2.11.8"],\
          ["@types/bootstrap", "npm:5.2.10"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/estree", [\
      ["npm:1.0.8", {\
        "packageLocation": "./.yarn/cache/@types-estree-npm-1.0.8-2195bac6d6-39d34d1afa.zip/node_modules/@types/estree/",\
        "packageDependencies": [\
          ["@types/estree", "npm:1.0.8"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/json-schema", [\
      ["npm:7.0.15", {\
        "packageLocation": "./.yarn/cache/@types-json-schema-npm-7.0.15-fd16381786-a996a745e6.zip/node_modules/@types/json-schema/",\
        "packageDependencies": [\
          ["@types/json-schema", "npm:7.0.15"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/node", [\
      ["npm:24.11.0", {\
        "packageLocation": "./.yarn/cache/@types-node-npm-24.11.0-e944c4230d-4fb7390259.zip/node_modules/@types/node/",\
        "packageDependencies": [\
          ["@types/node", "npm:24.11.0"],\
          ["undici-types", "npm:7.16.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/prop-types", [\
      ["npm:15.7.15", {\
        "packageLocation": "./.yarn/cache/@types-prop-types-npm-15.7.15-cefe16a1fa-b59aad1ad1.zip/node_modules/@types/prop-types/",\
        "packageDependencies": [\
          ["@types/prop-types", "npm:15.7.15"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/react", [\
      ["npm:19.2.14", {\
        "packageLocation": "./.yarn/cache/@types-react-npm-19.2.14-072ed0943f-7d25bf41b5.zip/node_modules/@types/react/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["csstype", "npm:3.2.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/react-dom", [\
      ["npm:19.2.3", {\
        "packageLocation": "./.yarn/cache/@types-react-dom-npm-19.2.3-1b243fa1cb-b486ebe0f4.zip/node_modules/@types/react-dom/",\
        "packageDependencies": [\
          ["@types/react-dom", "npm:19.2.3"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3", {\
        "packageLocation": "./.yarn/__virtual__/@types-react-dom-virtual-c4374c4709/0/cache/@types-react-dom-npm-19.2.3-1b243fa1cb-b486ebe0f4.zip/node_modules/@types/react-dom/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"]\
        ],\
        "packagePeers": [\
          "@types/react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/react-transition-group", [\
      ["npm:4.4.12", {\
        "packageLocation": "./.yarn/cache/@types-react-transition-group-npm-4.4.12-d5d75252ec-0441b8b47c.zip/node_modules/@types/react-transition-group/",\
        "packageDependencies": [\
          ["@types/react-transition-group", "npm:4.4.12"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:4.4.12", {\
        "packageLocation": "./.yarn/__virtual__/@types-react-transition-group-virtual-aea545395f/0/cache/@types-react-transition-group-npm-4.4.12-d5d75252ec-0441b8b47c.zip/node_modules/@types/react-transition-group/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-transition-group", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:4.4.12"]\
        ],\
        "packagePeers": [\
          "@types/react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@types/warning", [\
      ["npm:3.0.3", {\
        "packageLocation": "./.yarn/cache/@types-warning-npm-3.0.3-651ad6a5da-82c1235bd0.zip/node_modules/@types/warning/",\
        "packageDependencies": [\
          ["@types/warning", "npm:3.0.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/eslint-plugin", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-eslint-plugin-npm-8.56.1-3df20cf10b-8a97e77779.zip/node_modules/@typescript-eslint/eslint-plugin/",\
        "packageDependencies": [\
          ["@typescript-eslint/eslint-plugin", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/@typescript-eslint-eslint-plugin-virtual-79e3fd711d/0/cache/@typescript-eslint-eslint-plugin-npm-8.56.1-3df20cf10b-8a97e77779.zip/node_modules/@typescript-eslint/eslint-plugin/",\
        "packageDependencies": [\
          ["@eslint-community/regexpp", "npm:4.12.2"],\
          ["@types/eslint", null],\
          ["@types/typescript", null],\
          ["@types/typescript-eslint__parser", null],\
          ["@typescript-eslint/eslint-plugin", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/parser", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/scope-manager", "npm:8.56.1"],\
          ["@typescript-eslint/type-utils", "virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:8.56.1"],\
          ["@typescript-eslint/utils", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/visitor-keys", "npm:8.56.1"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["ignore", "npm:7.0.5"],\
          ["natural-compare", "npm:1.4.0"],\
          ["ts-api-utils", "virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:2.4.0"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "@types/typescript-eslint__parser",\
          "@types/typescript",\
          "@typescript-eslint/parser",\
          "eslint",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/parser", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-parser-npm-8.56.1-3f9b1c2f30-61c9dab481.zip/node_modules/@typescript-eslint/parser/",\
        "packageDependencies": [\
          ["@typescript-eslint/parser", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/@typescript-eslint-parser-virtual-4f9a00aa74/0/cache/@typescript-eslint-parser-npm-8.56.1-3f9b1c2f30-61c9dab481.zip/node_modules/@typescript-eslint/parser/",\
        "packageDependencies": [\
          ["@types/eslint", null],\
          ["@types/typescript", null],\
          ["@typescript-eslint/parser", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/scope-manager", "npm:8.56.1"],\
          ["@typescript-eslint/types", "npm:8.56.1"],\
          ["@typescript-eslint/typescript-estree", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/visitor-keys", "npm:8.56.1"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "@types/typescript",\
          "eslint",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/project-service", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-project-service-npm-8.56.1-766cc01259-ca61cde575.zip/node_modules/@typescript-eslint/project-service/",\
        "packageDependencies": [\
          ["@typescript-eslint/project-service", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:08eece7f558a61e3ba42d291e347c98bcfb1ebfb15f338a48676e1eb239671d197c1afd15b648b5d4feafc689a0004679f0f549b21e3ba4e2b84a1430d054544#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/@typescript-eslint-project-service-virtual-f79f6ac671/0/cache/@typescript-eslint-project-service-npm-8.56.1-766cc01259-ca61cde575.zip/node_modules/@typescript-eslint/project-service/",\
        "packageDependencies": [\
          ["@types/typescript", null],\
          ["@typescript-eslint/project-service", "virtual:08eece7f558a61e3ba42d291e347c98bcfb1ebfb15f338a48676e1eb239671d197c1afd15b648b5d4feafc689a0004679f0f549b21e3ba4e2b84a1430d054544#npm:8.56.1"],\
          ["@typescript-eslint/tsconfig-utils", "virtual:08eece7f558a61e3ba42d291e347c98bcfb1ebfb15f338a48676e1eb239671d197c1afd15b648b5d4feafc689a0004679f0f549b21e3ba4e2b84a1430d054544#npm:8.56.1"],\
          ["@typescript-eslint/types", "npm:8.56.1"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/typescript",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/scope-manager", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-scope-manager-npm-8.56.1-2d38e88a4b-89cc1af263.zip/node_modules/@typescript-eslint/scope-manager/",\
        "packageDependencies": [\
          ["@typescript-eslint/scope-manager", "npm:8.56.1"],\
          ["@typescript-eslint/types", "npm:8.56.1"],\
          ["@typescript-eslint/visitor-keys", "npm:8.56.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/tsconfig-utils", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-tsconfig-utils-npm-8.56.1-e35d1dd914-d03b64d7ff.zip/node_modules/@typescript-eslint/tsconfig-utils/",\
        "packageDependencies": [\
          ["@typescript-eslint/tsconfig-utils", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:08eece7f558a61e3ba42d291e347c98bcfb1ebfb15f338a48676e1eb239671d197c1afd15b648b5d4feafc689a0004679f0f549b21e3ba4e2b84a1430d054544#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/@typescript-eslint-tsconfig-utils-virtual-e7b74ab9e6/0/cache/@typescript-eslint-tsconfig-utils-npm-8.56.1-e35d1dd914-d03b64d7ff.zip/node_modules/@typescript-eslint/tsconfig-utils/",\
        "packageDependencies": [\
          ["@types/typescript", null],\
          ["@typescript-eslint/tsconfig-utils", "virtual:08eece7f558a61e3ba42d291e347c98bcfb1ebfb15f338a48676e1eb239671d197c1afd15b648b5d4feafc689a0004679f0f549b21e3ba4e2b84a1430d054544#npm:8.56.1"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/typescript",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/type-utils", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-type-utils-npm-8.56.1-e472908945-66517aed50.zip/node_modules/@typescript-eslint/type-utils/",\
        "packageDependencies": [\
          ["@typescript-eslint/type-utils", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/@typescript-eslint-type-utils-virtual-f533cfab54/0/cache/@typescript-eslint-type-utils-npm-8.56.1-e472908945-66517aed50.zip/node_modules/@typescript-eslint/type-utils/",\
        "packageDependencies": [\
          ["@types/eslint", null],\
          ["@types/typescript", null],\
          ["@typescript-eslint/type-utils", "virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:8.56.1"],\
          ["@typescript-eslint/types", "npm:8.56.1"],\
          ["@typescript-eslint/typescript-estree", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/utils", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["ts-api-utils", "virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:2.4.0"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "@types/typescript",\
          "eslint",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/types", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-types-npm-8.56.1-09e50c3c54-e5a0318abd.zip/node_modules/@typescript-eslint/types/",\
        "packageDependencies": [\
          ["@typescript-eslint/types", "npm:8.56.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/typescript-estree", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-typescript-estree-npm-8.56.1-bdca7e3c09-92f4421dac.zip/node_modules/@typescript-eslint/typescript-estree/",\
        "packageDependencies": [\
          ["@typescript-eslint/typescript-estree", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-08eece7f55/0/cache/@typescript-eslint-typescript-estree-npm-8.56.1-bdca7e3c09-92f4421dac.zip/node_modules/@typescript-eslint/typescript-estree/",\
        "packageDependencies": [\
          ["@types/typescript", null],\
          ["@typescript-eslint/project-service", "virtual:08eece7f558a61e3ba42d291e347c98bcfb1ebfb15f338a48676e1eb239671d197c1afd15b648b5d4feafc689a0004679f0f549b21e3ba4e2b84a1430d054544#npm:8.56.1"],\
          ["@typescript-eslint/tsconfig-utils", "virtual:08eece7f558a61e3ba42d291e347c98bcfb1ebfb15f338a48676e1eb239671d197c1afd15b648b5d4feafc689a0004679f0f549b21e3ba4e2b84a1430d054544#npm:8.56.1"],\
          ["@typescript-eslint/types", "npm:8.56.1"],\
          ["@typescript-eslint/typescript-estree", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/visitor-keys", "npm:8.56.1"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["minimatch", "npm:10.2.4"],\
          ["semver", "npm:7.7.4"],\
          ["tinyglobby", "npm:0.2.15"],\
          ["ts-api-utils", "virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:2.4.0"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/typescript",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/utils", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-utils-npm-8.56.1-aa0778f53a-d9ffd9b294.zip/node_modules/@typescript-eslint/utils/",\
        "packageDependencies": [\
          ["@typescript-eslint/utils", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/@typescript-eslint-utils-virtual-0d29e5d362/0/cache/@typescript-eslint-utils-npm-8.56.1-aa0778f53a-d9ffd9b294.zip/node_modules/@typescript-eslint/utils/",\
        "packageDependencies": [\
          ["@eslint-community/eslint-utils", "virtual:94ddeb903fec1804fb7a8348bc3bf7450dd11f65c5b4166d164e75773ccc1c0697e69663dce1080065db7cadeed338344ceeaf9261b8bf684cac4900782ad8ba#npm:4.9.1"],\
          ["@types/eslint", null],\
          ["@types/typescript", null],\
          ["@typescript-eslint/scope-manager", "npm:8.56.1"],\
          ["@typescript-eslint/types", "npm:8.56.1"],\
          ["@typescript-eslint/typescript-estree", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/utils", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "@types/typescript",\
          "eslint",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@typescript-eslint/visitor-keys", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/@typescript-eslint-visitor-keys-npm-8.56.1-901d7b2e4d-86d97905de.zip/node_modules/@typescript-eslint/visitor-keys/",\
        "packageDependencies": [\
          ["@typescript-eslint/types", "npm:8.56.1"],\
          ["@typescript-eslint/visitor-keys", "npm:8.56.1"],\
          ["eslint-visitor-keys", "npm:5.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["@vitejs/plugin-react", [\
      ["npm:5.1.4", {\
        "packageLocation": "./.yarn/cache/@vitejs-plugin-react-npm-5.1.4-e0156b487b-dd7b8f4071.zip/node_modules/@vitejs/plugin-react/",\
        "packageDependencies": [\
          ["@vitejs/plugin-react", "npm:5.1.4"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.1.4", {\
        "packageLocation": "./.yarn/__virtual__/@vitejs-plugin-react-virtual-6c5b0a61b1/0/cache/@vitejs-plugin-react-npm-5.1.4-e0156b487b-dd7b8f4071.zip/node_modules/@vitejs/plugin-react/",\
        "packageDependencies": [\
          ["@babel/core", "npm:7.29.0"],\
          ["@babel/plugin-transform-react-jsx-self", "virtual:6c5b0a61b1a890563b080e21c43f2a56934af967fd2bac5ae9a0f96d232fe6b5f947c465961599877c82c16f4c5e565c0920137c1ac82fcb751a2cc2afad30c0#npm:7.27.1"],\
          ["@babel/plugin-transform-react-jsx-source", "virtual:6c5b0a61b1a890563b080e21c43f2a56934af967fd2bac5ae9a0f96d232fe6b5f947c465961599877c82c16f4c5e565c0920137c1ac82fcb751a2cc2afad30c0#npm:7.27.1"],\
          ["@rolldown/pluginutils", "npm:1.0.0-rc.3"],\
          ["@types/babel__core", "npm:7.20.5"],\
          ["@types/vite", null],\
          ["@vitejs/plugin-react", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.1.4"],\
          ["react-refresh", "npm:0.18.0"],\
          ["vite", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.3.1"]\
        ],\
        "packagePeers": [\
          "@types/vite",\
          "vite"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["abbrev", [\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/abbrev-npm-4.0.0-7d848a1ef0-b4cc169352.zip/node_modules/abbrev/",\
        "packageDependencies": [\
          ["abbrev", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["acorn", [\
      ["npm:8.16.0", {\
        "packageLocation": "./.yarn/cache/acorn-npm-8.16.0-b2096bf83f-c9c5269722.zip/node_modules/acorn/",\
        "packageDependencies": [\
          ["acorn", "npm:8.16.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["acorn-jsx", [\
      ["npm:5.3.2", {\
        "packageLocation": "./.yarn/cache/acorn-jsx-npm-5.3.2-d7594599ea-4c54868fbe.zip/node_modules/acorn-jsx/",\
        "packageDependencies": [\
          ["acorn-jsx", "npm:5.3.2"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:9633b00e55c5aebf81b0127f50addd44705c175a47a287258963782da8f9f4e66c2da6640a60ed2826e19f024f73cd554a58729ee1644f93800bbd0d7b7ddd79#npm:5.3.2", {\
        "packageLocation": "./.yarn/__virtual__/acorn-jsx-virtual-642bf0c873/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-4c54868fbe.zip/node_modules/acorn-jsx/",\
        "packageDependencies": [\
          ["@types/acorn", null],\
          ["acorn", "npm:8.16.0"],\
          ["acorn-jsx", "virtual:9633b00e55c5aebf81b0127f50addd44705c175a47a287258963782da8f9f4e66c2da6640a60ed2826e19f024f73cd554a58729ee1644f93800bbd0d7b7ddd79#npm:5.3.2"]\
        ],\
        "packagePeers": [\
          "@types/acorn",\
          "acorn"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["agent-base", [\
      ["npm:7.1.4", {\
        "packageLocation": "./.yarn/cache/agent-base-npm-7.1.4-cb8b4604d5-c2c9ab7599.zip/node_modules/agent-base/",\
        "packageDependencies": [\
          ["agent-base", "npm:7.1.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["ajv", [\
      ["npm:6.14.0", {\
        "packageLocation": "./.yarn/cache/ajv-npm-6.14.0-41f32f2ba8-a2bc39b055.zip/node_modules/ajv/",\
        "packageDependencies": [\
          ["ajv", "npm:6.14.0"],\
          ["fast-deep-equal", "npm:3.1.3"],\
          ["fast-json-stable-stringify", "npm:2.1.0"],\
          ["json-schema-traverse", "npm:0.4.1"],\
          ["uri-js", "npm:4.4.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["am_i_up_ui", [\
      ["workspace:.", {\
        "packageLocation": "./",\
        "packageDependencies": [\
          ["@eslint/js", "npm:9.39.3"],\
          ["@popperjs/core", "npm:2.11.8"],\
          ["@tanstack/query-core", "npm:5.90.20"],\
          ["@types/bootstrap", "npm:5.2.10"],\
          ["@types/node", "npm:24.11.0"],\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"],\
          ["@vitejs/plugin-react", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.1.4"],\
          ["am_i_up_ui", "workspace:."],\
          ["babel-plugin-react-compiler", "npm:1.0.0"],\
          ["bootstrap", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.3.8"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["eslint-plugin-react-hooks", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.0.1"],\
          ["eslint-plugin-react-refresh", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.4.26"],\
          ["globals", "npm:16.5.0"],\
          ["jotai", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.18.0"],\
          ["jotai-tanstack-query", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.11.0"],\
          ["mediamtx-webrtc-react", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.0.1"],\
          ["prettier", "npm:3.8.1"],\
          ["react", "npm:19.2.4"],\
          ["react-bootstrap", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.10.10"],\
          ["react-bootstrap-icons", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.11.6"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["react-router-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.13.1"],\
          ["socket.io-client", "npm:4.8.3"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"],\
          ["typescript-eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:8.56.1"],\
          ["vite", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.3.1"],\
          ["yaml", "npm:2.8.2"]\
        ],\
        "linkType": "SOFT"\
      }]\
    ]],\
    ["ansi-styles", [\
      ["npm:4.3.0", {\
        "packageLocation": "./.yarn/cache/ansi-styles-npm-4.3.0-245c7d42c7-895a23929d.zip/node_modules/ansi-styles/",\
        "packageDependencies": [\
          ["ansi-styles", "npm:4.3.0"],\
          ["color-convert", "npm:2.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["argparse", [\
      ["npm:2.0.1", {\
        "packageLocation": "./.yarn/cache/argparse-npm-2.0.1-faff7999e6-c5640c2d89.zip/node_modules/argparse/",\
        "packageDependencies": [\
          ["argparse", "npm:2.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["babel-plugin-react-compiler", [\
      ["npm:1.0.0", {\
        "packageLocation": "./.yarn/cache/babel-plugin-react-compiler-npm-1.0.0-5beba4221c-9406267ada.zip/node_modules/babel-plugin-react-compiler/",\
        "packageDependencies": [\
          ["@babel/types", "npm:7.29.0"],\
          ["babel-plugin-react-compiler", "npm:1.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["balanced-match", [\
      ["npm:1.0.2", {\
        "packageLocation": "./.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9308baf0a7.zip/node_modules/balanced-match/",\
        "packageDependencies": [\
          ["balanced-match", "npm:1.0.2"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:4.0.4", {\
        "packageLocation": "./.yarn/cache/balanced-match-npm-4.0.4-fd666b3c7f-07e86102a3.zip/node_modules/balanced-match/",\
        "packageDependencies": [\
          ["balanced-match", "npm:4.0.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["baseline-browser-mapping", [\
      ["npm:2.10.0", {\
        "packageLocation": "./.yarn/cache/baseline-browser-mapping-npm-2.10.0-1f4172c310-da9c3ec0fc.zip/node_modules/baseline-browser-mapping/",\
        "packageDependencies": [\
          ["baseline-browser-mapping", "npm:2.10.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["bootstrap", [\
      ["npm:5.3.8", {\
        "packageLocation": "./.yarn/cache/bootstrap-npm-5.3.8-b7bef82d06-0039a9df2c.zip/node_modules/bootstrap/",\
        "packageDependencies": [\
          ["bootstrap", "npm:5.3.8"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.3.8", {\
        "packageLocation": "./.yarn/__virtual__/bootstrap-virtual-e4f3b5788a/0/cache/bootstrap-npm-5.3.8-b7bef82d06-0039a9df2c.zip/node_modules/bootstrap/",\
        "packageDependencies": [\
          ["@popperjs/core", "npm:2.11.8"],\
          ["@types/popperjs__core", null],\
          ["bootstrap", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:5.3.8"]\
        ],\
        "packagePeers": [\
          "@popperjs/core",\
          "@types/popperjs__core"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["brace-expansion", [\
      ["npm:1.1.12", {\
        "packageLocation": "./.yarn/cache/brace-expansion-npm-1.1.12-329e9ad7a1-975fecac2b.zip/node_modules/brace-expansion/",\
        "packageDependencies": [\
          ["balanced-match", "npm:1.0.2"],\
          ["brace-expansion", "npm:1.1.12"],\
          ["concat-map", "npm:0.0.1"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:5.0.4", {\
        "packageLocation": "./.yarn/cache/brace-expansion-npm-5.0.4-acb9332524-359cbcfa80.zip/node_modules/brace-expansion/",\
        "packageDependencies": [\
          ["balanced-match", "npm:4.0.4"],\
          ["brace-expansion", "npm:5.0.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["browserslist", [\
      ["npm:4.28.1", {\
        "packageLocation": "./.yarn/cache/browserslist-npm-4.28.1-e455c4c2e8-545a5fa9d7.zip/node_modules/browserslist/",\
        "packageDependencies": [\
          ["baseline-browser-mapping", "npm:2.10.0"],\
          ["browserslist", "npm:4.28.1"],\
          ["caniuse-lite", "npm:1.0.30001775"],\
          ["electron-to-chromium", "npm:1.5.302"],\
          ["node-releases", "npm:2.0.27"],\
          ["update-browserslist-db", "virtual:e455c4c2e8dc3f3e2b2f64927f2b0dff7ca09ff7730ccbb69cae3e9342c0b24fae16e40b2aa46a2b677c172a1365ba425382266fccbf1e96179eec79a4a5c294#npm:1.2.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["cacache", [\
      ["npm:20.0.3", {\
        "packageLocation": "./.yarn/cache/cacache-npm-20.0.3-5f244d5bdd-c7da1ca694.zip/node_modules/cacache/",\
        "packageDependencies": [\
          ["@npmcli/fs", "npm:5.0.0"],\
          ["cacache", "npm:20.0.3"],\
          ["fs-minipass", "npm:3.0.3"],\
          ["glob", "npm:13.0.6"],\
          ["lru-cache", "npm:11.2.6"],\
          ["minipass", "npm:7.1.3"],\
          ["minipass-collect", "npm:2.0.1"],\
          ["minipass-flush", "npm:1.0.5"],\
          ["minipass-pipeline", "npm:1.2.4"],\
          ["p-map", "npm:7.0.4"],\
          ["ssri", "npm:13.0.1"],\
          ["unique-filename", "npm:5.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["callsites", [\
      ["npm:3.1.0", {\
        "packageLocation": "./.yarn/cache/callsites-npm-3.1.0-268f989910-fff9227740.zip/node_modules/callsites/",\
        "packageDependencies": [\
          ["callsites", "npm:3.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["caniuse-lite", [\
      ["npm:1.0.30001775", {\
        "packageLocation": "./.yarn/cache/caniuse-lite-npm-1.0.30001775-abe3adffcc-96e59a83ab.zip/node_modules/caniuse-lite/",\
        "packageDependencies": [\
          ["caniuse-lite", "npm:1.0.30001775"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["chalk", [\
      ["npm:4.1.2", {\
        "packageLocation": "./.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-4a3fef5cc3.zip/node_modules/chalk/",\
        "packageDependencies": [\
          ["ansi-styles", "npm:4.3.0"],\
          ["chalk", "npm:4.1.2"],\
          ["supports-color", "npm:7.2.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["chownr", [\
      ["npm:3.0.0", {\
        "packageLocation": "./.yarn/cache/chownr-npm-3.0.0-5275e85d25-43925b8770.zip/node_modules/chownr/",\
        "packageDependencies": [\
          ["chownr", "npm:3.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["classnames", [\
      ["npm:2.5.1", {\
        "packageLocation": "./.yarn/cache/classnames-npm-2.5.1-c7273f3423-afff4f77e6.zip/node_modules/classnames/",\
        "packageDependencies": [\
          ["classnames", "npm:2.5.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["color-convert", [\
      ["npm:2.0.1", {\
        "packageLocation": "./.yarn/cache/color-convert-npm-2.0.1-79730e935b-37e1150172.zip/node_modules/color-convert/",\
        "packageDependencies": [\
          ["color-convert", "npm:2.0.1"],\
          ["color-name", "npm:1.1.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["color-name", [\
      ["npm:1.1.4", {\
        "packageLocation": "./.yarn/cache/color-name-npm-1.1.4-025792b0ea-a1a3f91415.zip/node_modules/color-name/",\
        "packageDependencies": [\
          ["color-name", "npm:1.1.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["concat-map", [\
      ["npm:0.0.1", {\
        "packageLocation": "./.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-c996b1cfdf.zip/node_modules/concat-map/",\
        "packageDependencies": [\
          ["concat-map", "npm:0.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["convert-source-map", [\
      ["npm:2.0.0", {\
        "packageLocation": "./.yarn/cache/convert-source-map-npm-2.0.0-7ab664dc4e-8f2f7a27a1.zip/node_modules/convert-source-map/",\
        "packageDependencies": [\
          ["convert-source-map", "npm:2.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["cookie", [\
      ["npm:1.1.1", {\
        "packageLocation": "./.yarn/cache/cookie-npm-1.1.1-881103ddeb-79c4ddc0fc.zip/node_modules/cookie/",\
        "packageDependencies": [\
          ["cookie", "npm:1.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["cross-spawn", [\
      ["npm:7.0.6", {\
        "packageLocation": "./.yarn/cache/cross-spawn-npm-7.0.6-264bddf921-053ea8b213.zip/node_modules/cross-spawn/",\
        "packageDependencies": [\
          ["cross-spawn", "npm:7.0.6"],\
          ["path-key", "npm:3.1.1"],\
          ["shebang-command", "npm:2.0.0"],\
          ["which", "npm:2.0.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["csstype", [\
      ["npm:3.2.3", {\
        "packageLocation": "./.yarn/cache/csstype-npm-3.2.3-741053244e-cd29c51e70.zip/node_modules/csstype/",\
        "packageDependencies": [\
          ["csstype", "npm:3.2.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["debug", [\
      ["npm:4.4.3", {\
        "packageLocation": "./.yarn/cache/debug-npm-4.4.3-0105c6123a-d79136ec6c.zip/node_modules/debug/",\
        "packageDependencies": [\
          ["debug", "npm:4.4.3"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3", {\
        "packageLocation": "./.yarn/__virtual__/debug-virtual-b7022d90de/0/cache/debug-npm-4.4.3-0105c6123a-d79136ec6c.zip/node_modules/debug/",\
        "packageDependencies": [\
          ["@types/supports-color", null],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["ms", "npm:2.1.3"],\
          ["supports-color", null]\
        ],\
        "packagePeers": [\
          "@types/supports-color",\
          "supports-color"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["deep-is", [\
      ["npm:0.1.4", {\
        "packageLocation": "./.yarn/cache/deep-is-npm-0.1.4-88938b5a67-7f0ee496e0.zip/node_modules/deep-is/",\
        "packageDependencies": [\
          ["deep-is", "npm:0.1.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["dequal", [\
      ["npm:2.0.3", {\
        "packageLocation": "./.yarn/cache/dequal-npm-2.0.3-53a630c60e-f98860cdf5.zip/node_modules/dequal/",\
        "packageDependencies": [\
          ["dequal", "npm:2.0.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["dom-helpers", [\
      ["npm:5.2.1", {\
        "packageLocation": "./.yarn/cache/dom-helpers-npm-5.2.1-b38bb4470b-f735074d66.zip/node_modules/dom-helpers/",\
        "packageDependencies": [\
          ["@babel/runtime", "npm:7.28.6"],\
          ["csstype", "npm:3.2.3"],\
          ["dom-helpers", "npm:5.2.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["electron-to-chromium", [\
      ["npm:1.5.302", {\
        "packageLocation": "./.yarn/cache/electron-to-chromium-npm-1.5.302-39149026b5-014413f2b4.zip/node_modules/electron-to-chromium/",\
        "packageDependencies": [\
          ["electron-to-chromium", "npm:1.5.302"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["engine.io-client", [\
      ["npm:6.6.6", {\
        "packageLocation": "./.yarn/cache/engine.io-client-npm-6.6.6-fd14f4b531-805995b57b.zip/node_modules/engine.io-client/",\
        "packageDependencies": [\
          ["@socket.io/component-emitter", "npm:3.1.2"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["engine.io-client", "npm:6.6.6"],\
          ["engine.io-parser", "npm:5.2.3"],\
          ["ws", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:8.21.3"],\
          ["xmlhttprequest-ssl", "npm:2.1.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["engine.io-parser", [\
      ["npm:5.2.3", {\
        "packageLocation": "./.yarn/cache/engine.io-parser-npm-5.2.3-6dfa36cede-ed4900d8db.zip/node_modules/engine.io-parser/",\
        "packageDependencies": [\
          ["engine.io-parser", "npm:5.2.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["env-paths", [\
      ["npm:2.2.1", {\
        "packageLocation": "./.yarn/cache/env-paths-npm-2.2.1-7c7577428c-285325677b.zip/node_modules/env-paths/",\
        "packageDependencies": [\
          ["env-paths", "npm:2.2.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["esbuild", [\
      ["npm:0.27.3", {\
        "packageLocation": "./.yarn/unplugged/esbuild-npm-0.27.3-85b6c20323/node_modules/esbuild/",\
        "packageDependencies": [\
          ["@esbuild/aix-ppc64", "npm:0.27.3"],\
          ["@esbuild/android-arm", "npm:0.27.3"],\
          ["@esbuild/android-arm64", "npm:0.27.3"],\
          ["@esbuild/android-x64", "npm:0.27.3"],\
          ["@esbuild/darwin-arm64", "npm:0.27.3"],\
          ["@esbuild/darwin-x64", "npm:0.27.3"],\
          ["@esbuild/freebsd-arm64", "npm:0.27.3"],\
          ["@esbuild/freebsd-x64", "npm:0.27.3"],\
          ["@esbuild/linux-arm", "npm:0.27.3"],\
          ["@esbuild/linux-arm64", "npm:0.27.3"],\
          ["@esbuild/linux-ia32", "npm:0.27.3"],\
          ["@esbuild/linux-loong64", "npm:0.27.3"],\
          ["@esbuild/linux-mips64el", "npm:0.27.3"],\
          ["@esbuild/linux-ppc64", "npm:0.27.3"],\
          ["@esbuild/linux-riscv64", "npm:0.27.3"],\
          ["@esbuild/linux-s390x", "npm:0.27.3"],\
          ["@esbuild/linux-x64", "npm:0.27.3"],\
          ["@esbuild/netbsd-arm64", "npm:0.27.3"],\
          ["@esbuild/netbsd-x64", "npm:0.27.3"],\
          ["@esbuild/openbsd-arm64", "npm:0.27.3"],\
          ["@esbuild/openbsd-x64", "npm:0.27.3"],\
          ["@esbuild/openharmony-arm64", "npm:0.27.3"],\
          ["@esbuild/sunos-x64", "npm:0.27.3"],\
          ["@esbuild/win32-arm64", "npm:0.27.3"],\
          ["@esbuild/win32-ia32", "npm:0.27.3"],\
          ["@esbuild/win32-x64", "npm:0.27.3"],\
          ["esbuild", "npm:0.27.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["escalade", [\
      ["npm:3.2.0", {\
        "packageLocation": "./.yarn/cache/escalade-npm-3.2.0-19b50dd48f-ced4dd3a78.zip/node_modules/escalade/",\
        "packageDependencies": [\
          ["escalade", "npm:3.2.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["escape-string-regexp", [\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-9497d4dd30.zip/node_modules/escape-string-regexp/",\
        "packageDependencies": [\
          ["escape-string-regexp", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["eslint", [\
      ["npm:9.39.3", {\
        "packageLocation": "./.yarn/cache/eslint-npm-9.39.3-a405c03453-5e5dbf84d4.zip/node_modules/eslint/",\
        "packageDependencies": [\
          ["eslint", "npm:9.39.3"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3", {\
        "packageLocation": "./.yarn/__virtual__/eslint-virtual-94ddeb903f/0/cache/eslint-npm-9.39.3-a405c03453-5e5dbf84d4.zip/node_modules/eslint/",\
        "packageDependencies": [\
          ["@eslint-community/eslint-utils", "virtual:94ddeb903fec1804fb7a8348bc3bf7450dd11f65c5b4166d164e75773ccc1c0697e69663dce1080065db7cadeed338344ceeaf9261b8bf684cac4900782ad8ba#npm:4.9.1"],\
          ["@eslint-community/regexpp", "npm:4.12.2"],\
          ["@eslint/config-array", "npm:0.21.1"],\
          ["@eslint/config-helpers", "npm:0.4.2"],\
          ["@eslint/core", "npm:0.17.0"],\
          ["@eslint/eslintrc", "npm:3.3.4"],\
          ["@eslint/js", "npm:9.39.3"],\
          ["@eslint/plugin-kit", "npm:0.4.1"],\
          ["@humanfs/node", "npm:0.16.7"],\
          ["@humanwhocodes/module-importer", "npm:1.0.1"],\
          ["@humanwhocodes/retry", "npm:0.4.3"],\
          ["@types/estree", "npm:1.0.8"],\
          ["@types/jiti", null],\
          ["ajv", "npm:6.14.0"],\
          ["chalk", "npm:4.1.2"],\
          ["cross-spawn", "npm:7.0.6"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["escape-string-regexp", "npm:4.0.0"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["eslint-scope", "npm:8.4.0"],\
          ["eslint-visitor-keys", "npm:4.2.1"],\
          ["espree", "npm:10.4.0"],\
          ["esquery", "npm:1.7.0"],\
          ["esutils", "npm:2.0.3"],\
          ["fast-deep-equal", "npm:3.1.3"],\
          ["file-entry-cache", "npm:8.0.0"],\
          ["find-up", "npm:5.0.0"],\
          ["glob-parent", "npm:6.0.2"],\
          ["ignore", "npm:5.3.2"],\
          ["imurmurhash", "npm:0.1.4"],\
          ["is-glob", "npm:4.0.3"],\
          ["jiti", null],\
          ["json-stable-stringify-without-jsonify", "npm:1.0.1"],\
          ["lodash.merge", "npm:4.6.2"],\
          ["minimatch", "npm:3.1.5"],\
          ["natural-compare", "npm:1.4.0"],\
          ["optionator", "npm:0.9.4"]\
        ],\
        "packagePeers": [\
          "@types/jiti",\
          "jiti"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["eslint-plugin-react-hooks", [\
      ["npm:7.0.1", {\
        "packageLocation": "./.yarn/cache/eslint-plugin-react-hooks-npm-7.0.1-218b8cae26-1e711d1a9d.zip/node_modules/eslint-plugin-react-hooks/",\
        "packageDependencies": [\
          ["eslint-plugin-react-hooks", "npm:7.0.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.0.1", {\
        "packageLocation": "./.yarn/__virtual__/eslint-plugin-react-hooks-virtual-ac76d8014e/0/cache/eslint-plugin-react-hooks-npm-7.0.1-218b8cae26-1e711d1a9d.zip/node_modules/eslint-plugin-react-hooks/",\
        "packageDependencies": [\
          ["@babel/core", "npm:7.29.0"],\
          ["@babel/parser", "npm:7.29.0"],\
          ["@types/eslint", null],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["eslint-plugin-react-hooks", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.0.1"],\
          ["hermes-parser", "npm:0.25.1"],\
          ["zod", "npm:4.3.6"],\
          ["zod-validation-error", "virtual:ac76d8014e7602f4a23a1f2d8138ec1a0ee848998d3753b4eb36bf1820cabd20a1fc4cbf4f3b7df871d4d62268688cb64f8e54a7eb73f7c9eadc130d4b335a45#npm:4.0.2"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "eslint"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["eslint-plugin-react-refresh", [\
      ["npm:0.4.26", {\
        "packageLocation": "./.yarn/cache/eslint-plugin-react-refresh-npm-0.4.26-d49c61032e-11c2b25b7a.zip/node_modules/eslint-plugin-react-refresh/",\
        "packageDependencies": [\
          ["eslint-plugin-react-refresh", "npm:0.4.26"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.4.26", {\
        "packageLocation": "./.yarn/__virtual__/eslint-plugin-react-refresh-virtual-abbc1ed119/0/cache/eslint-plugin-react-refresh-npm-0.4.26-d49c61032e-11c2b25b7a.zip/node_modules/eslint-plugin-react-refresh/",\
        "packageDependencies": [\
          ["@types/eslint", null],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["eslint-plugin-react-refresh", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.4.26"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "eslint"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["eslint-scope", [\
      ["npm:8.4.0", {\
        "packageLocation": "./.yarn/cache/eslint-scope-npm-8.4.0-8ed12feb40-407f6c6002.zip/node_modules/eslint-scope/",\
        "packageDependencies": [\
          ["eslint-scope", "npm:8.4.0"],\
          ["esrecurse", "npm:4.3.0"],\
          ["estraverse", "npm:5.3.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["eslint-visitor-keys", [\
      ["npm:3.4.3", {\
        "packageLocation": "./.yarn/cache/eslint-visitor-keys-npm-3.4.3-a356ac7e46-92708e882c.zip/node_modules/eslint-visitor-keys/",\
        "packageDependencies": [\
          ["eslint-visitor-keys", "npm:3.4.3"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:4.2.1", {\
        "packageLocation": "./.yarn/cache/eslint-visitor-keys-npm-4.2.1-435d5be22a-fcd4399919.zip/node_modules/eslint-visitor-keys/",\
        "packageDependencies": [\
          ["eslint-visitor-keys", "npm:4.2.1"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:5.0.1", {\
        "packageLocation": "./.yarn/cache/eslint-visitor-keys-npm-5.0.1-30a44b062b-16190bdf2c.zip/node_modules/eslint-visitor-keys/",\
        "packageDependencies": [\
          ["eslint-visitor-keys", "npm:5.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["espree", [\
      ["npm:10.4.0", {\
        "packageLocation": "./.yarn/cache/espree-npm-10.4.0-9633b00e55-c63fe06131.zip/node_modules/espree/",\
        "packageDependencies": [\
          ["acorn", "npm:8.16.0"],\
          ["acorn-jsx", "virtual:9633b00e55c5aebf81b0127f50addd44705c175a47a287258963782da8f9f4e66c2da6640a60ed2826e19f024f73cd554a58729ee1644f93800bbd0d7b7ddd79#npm:5.3.2"],\
          ["eslint-visitor-keys", "npm:4.2.1"],\
          ["espree", "npm:10.4.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["esquery", [\
      ["npm:1.7.0", {\
        "packageLocation": "./.yarn/cache/esquery-npm-1.7.0-c1e8da438a-77d5173db4.zip/node_modules/esquery/",\
        "packageDependencies": [\
          ["esquery", "npm:1.7.0"],\
          ["estraverse", "npm:5.3.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["esrecurse", [\
      ["npm:4.3.0", {\
        "packageLocation": "./.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-81a37116d1.zip/node_modules/esrecurse/",\
        "packageDependencies": [\
          ["esrecurse", "npm:4.3.0"],\
          ["estraverse", "npm:5.3.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["estraverse", [\
      ["npm:5.3.0", {\
        "packageLocation": "./.yarn/cache/estraverse-npm-5.3.0-03284f8f63-1ff9447b96.zip/node_modules/estraverse/",\
        "packageDependencies": [\
          ["estraverse", "npm:5.3.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["esutils", [\
      ["npm:2.0.3", {\
        "packageLocation": "./.yarn/cache/esutils-npm-2.0.3-f865beafd5-9a2fe69a41.zip/node_modules/esutils/",\
        "packageDependencies": [\
          ["esutils", "npm:2.0.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["exponential-backoff", [\
      ["npm:3.1.3", {\
        "packageLocation": "./.yarn/cache/exponential-backoff-npm-3.1.3-28be78d98e-77e3ae682b.zip/node_modules/exponential-backoff/",\
        "packageDependencies": [\
          ["exponential-backoff", "npm:3.1.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["fast-deep-equal", [\
      ["npm:3.1.3", {\
        "packageLocation": "./.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-40dedc862e.zip/node_modules/fast-deep-equal/",\
        "packageDependencies": [\
          ["fast-deep-equal", "npm:3.1.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["fast-json-stable-stringify", [\
      ["npm:2.1.0", {\
        "packageLocation": "./.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-7f081eb0b8.zip/node_modules/fast-json-stable-stringify/",\
        "packageDependencies": [\
          ["fast-json-stable-stringify", "npm:2.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["fast-levenshtein", [\
      ["npm:2.0.6", {\
        "packageLocation": "./.yarn/cache/fast-levenshtein-npm-2.0.6-fcd74b8df5-111972b373.zip/node_modules/fast-levenshtein/",\
        "packageDependencies": [\
          ["fast-levenshtein", "npm:2.0.6"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["fdir", [\
      ["npm:6.5.0", {\
        "packageLocation": "./.yarn/cache/fdir-npm-6.5.0-8814a0dec7-e345083c43.zip/node_modules/fdir/",\
        "packageDependencies": [\
          ["fdir", "npm:6.5.0"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:0e783aadbd2b4b8e6f6056033c0b290501892d23bc7c5dad5477e00e48ad8bd3e4434c3962a52dd75a58e06dbb7218094a494bac954ef2f7f6fdb65d9717e5f4#npm:6.5.0", {\
        "packageLocation": "./.yarn/__virtual__/fdir-virtual-abd4ab2082/0/cache/fdir-npm-6.5.0-8814a0dec7-e345083c43.zip/node_modules/fdir/",\
        "packageDependencies": [\
          ["@types/picomatch", null],\
          ["fdir", "virtual:0e783aadbd2b4b8e6f6056033c0b290501892d23bc7c5dad5477e00e48ad8bd3e4434c3962a52dd75a58e06dbb7218094a494bac954ef2f7f6fdb65d9717e5f4#npm:6.5.0"],\
          ["picomatch", "npm:4.0.3"]\
        ],\
        "packagePeers": [\
          "@types/picomatch",\
          "picomatch"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["file-entry-cache", [\
      ["npm:8.0.0", {\
        "packageLocation": "./.yarn/cache/file-entry-cache-npm-8.0.0-5b09d19a83-9e2b5938b1.zip/node_modules/file-entry-cache/",\
        "packageDependencies": [\
          ["file-entry-cache", "npm:8.0.0"],\
          ["flat-cache", "npm:4.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["find-up", [\
      ["npm:5.0.0", {\
        "packageLocation": "./.yarn/cache/find-up-npm-5.0.0-e03e9b796d-062c5a83a9.zip/node_modules/find-up/",\
        "packageDependencies": [\
          ["find-up", "npm:5.0.0"],\
          ["locate-path", "npm:6.0.0"],\
          ["path-exists", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["flat-cache", [\
      ["npm:4.0.1", {\
        "packageLocation": "./.yarn/cache/flat-cache-npm-4.0.1-12bf2455f7-2c59d93e9f.zip/node_modules/flat-cache/",\
        "packageDependencies": [\
          ["flat-cache", "npm:4.0.1"],\
          ["flatted", "npm:3.3.3"],\
          ["keyv", "npm:4.5.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["flatted", [\
      ["npm:3.3.3", {\
        "packageLocation": "./.yarn/cache/flatted-npm-3.3.3-ca455563b2-e957a1c6b0.zip/node_modules/flatted/",\
        "packageDependencies": [\
          ["flatted", "npm:3.3.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["fs-minipass", [\
      ["npm:3.0.3", {\
        "packageLocation": "./.yarn/cache/fs-minipass-npm-3.0.3-d148d6ac19-63e80da2ff.zip/node_modules/fs-minipass/",\
        "packageDependencies": [\
          ["fs-minipass", "npm:3.0.3"],\
          ["minipass", "npm:7.1.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["fsevents", [\
      ["patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1", {\
        "packageLocation": "./.yarn/unplugged/fsevents-patch-6b67494872/node_modules/fsevents/",\
        "packageDependencies": [\
          ["fsevents", "patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"],\
          ["node-gyp", "npm:12.2.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["gensync", [\
      ["npm:1.0.0-beta.2", {\
        "packageLocation": "./.yarn/cache/gensync-npm-1.0.0-beta.2-224666d72f-782aba6cba.zip/node_modules/gensync/",\
        "packageDependencies": [\
          ["gensync", "npm:1.0.0-beta.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["glob", [\
      ["npm:13.0.6", {\
        "packageLocation": "./.yarn/cache/glob-npm-13.0.6-864eb0cece-269c236f11.zip/node_modules/glob/",\
        "packageDependencies": [\
          ["glob", "npm:13.0.6"],\
          ["minimatch", "npm:10.2.4"],\
          ["minipass", "npm:7.1.3"],\
          ["path-scurry", "npm:2.0.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["glob-parent", [\
      ["npm:6.0.2", {\
        "packageLocation": "./.yarn/cache/glob-parent-npm-6.0.2-2cbef12738-317034d886.zip/node_modules/glob-parent/",\
        "packageDependencies": [\
          ["glob-parent", "npm:6.0.2"],\
          ["is-glob", "npm:4.0.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["globals", [\
      ["npm:14.0.0", {\
        "packageLocation": "./.yarn/cache/globals-npm-14.0.0-5fc3d8d5da-b96ff42620.zip/node_modules/globals/",\
        "packageDependencies": [\
          ["globals", "npm:14.0.0"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:16.5.0", {\
        "packageLocation": "./.yarn/cache/globals-npm-16.5.0-9e83817f44-615241dae7.zip/node_modules/globals/",\
        "packageDependencies": [\
          ["globals", "npm:16.5.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["graceful-fs", [\
      ["npm:4.2.11", {\
        "packageLocation": "./.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-386d011a55.zip/node_modules/graceful-fs/",\
        "packageDependencies": [\
          ["graceful-fs", "npm:4.2.11"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["has-flag", [\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/has-flag-npm-4.0.0-32af9f0536-2e789c61b7.zip/node_modules/has-flag/",\
        "packageDependencies": [\
          ["has-flag", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["hermes-estree", [\
      ["npm:0.25.1", {\
        "packageLocation": "./.yarn/cache/hermes-estree-npm-0.25.1-d7752f3952-48be3b2fa3.zip/node_modules/hermes-estree/",\
        "packageDependencies": [\
          ["hermes-estree", "npm:0.25.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["hermes-parser", [\
      ["npm:0.25.1", {\
        "packageLocation": "./.yarn/cache/hermes-parser-npm-0.25.1-832deac23b-3abaa4c6f1.zip/node_modules/hermes-parser/",\
        "packageDependencies": [\
          ["hermes-estree", "npm:0.25.1"],\
          ["hermes-parser", "npm:0.25.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["http-cache-semantics", [\
      ["npm:4.2.0", {\
        "packageLocation": "./.yarn/cache/http-cache-semantics-npm-4.2.0-fadacfb3ad-45b66a945c.zip/node_modules/http-cache-semantics/",\
        "packageDependencies": [\
          ["http-cache-semantics", "npm:4.2.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["http-proxy-agent", [\
      ["npm:7.0.2", {\
        "packageLocation": "./.yarn/cache/http-proxy-agent-npm-7.0.2-643ed7cc33-4207b06a45.zip/node_modules/http-proxy-agent/",\
        "packageDependencies": [\
          ["agent-base", "npm:7.1.4"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["http-proxy-agent", "npm:7.0.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["https-proxy-agent", [\
      ["npm:7.0.6", {\
        "packageLocation": "./.yarn/cache/https-proxy-agent-npm-7.0.6-27a95c2690-f729219bc7.zip/node_modules/https-proxy-agent/",\
        "packageDependencies": [\
          ["agent-base", "npm:7.1.4"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["https-proxy-agent", "npm:7.0.6"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["iconv-lite", [\
      ["npm:0.7.2", {\
        "packageLocation": "./.yarn/cache/iconv-lite-npm-0.7.2-716fc012a0-3c228920f3.zip/node_modules/iconv-lite/",\
        "packageDependencies": [\
          ["iconv-lite", "npm:0.7.2"],\
          ["safer-buffer", "npm:2.1.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["ignore", [\
      ["npm:5.3.2", {\
        "packageLocation": "./.yarn/cache/ignore-npm-5.3.2-346d3ba017-f9f652c957.zip/node_modules/ignore/",\
        "packageDependencies": [\
          ["ignore", "npm:5.3.2"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:7.0.5", {\
        "packageLocation": "./.yarn/cache/ignore-npm-7.0.5-dea34ee430-ae00db89fe.zip/node_modules/ignore/",\
        "packageDependencies": [\
          ["ignore", "npm:7.0.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["import-fresh", [\
      ["npm:3.3.1", {\
        "packageLocation": "./.yarn/cache/import-fresh-npm-3.3.1-1916794950-bf8cc49487.zip/node_modules/import-fresh/",\
        "packageDependencies": [\
          ["import-fresh", "npm:3.3.1"],\
          ["parent-module", "npm:1.0.1"],\
          ["resolve-from", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["imurmurhash", [\
      ["npm:0.1.4", {\
        "packageLocation": "./.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-8b51313850.zip/node_modules/imurmurhash/",\
        "packageDependencies": [\
          ["imurmurhash", "npm:0.1.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["invariant", [\
      ["npm:2.2.4", {\
        "packageLocation": "./.yarn/cache/invariant-npm-2.2.4-717fbdb119-5af133a917.zip/node_modules/invariant/",\
        "packageDependencies": [\
          ["invariant", "npm:2.2.4"],\
          ["loose-envify", "npm:1.4.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["ip-address", [\
      ["npm:10.1.0", {\
        "packageLocation": "./.yarn/cache/ip-address-npm-10.1.0-d5d5693401-0103516cfa.zip/node_modules/ip-address/",\
        "packageDependencies": [\
          ["ip-address", "npm:10.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["is-extglob", [\
      ["npm:2.1.1", {\
        "packageLocation": "./.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-5487da3569.zip/node_modules/is-extglob/",\
        "packageDependencies": [\
          ["is-extglob", "npm:2.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["is-glob", [\
      ["npm:4.0.3", {\
        "packageLocation": "./.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-17fb4014e2.zip/node_modules/is-glob/",\
        "packageDependencies": [\
          ["is-extglob", "npm:2.1.1"],\
          ["is-glob", "npm:4.0.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["isexe", [\
      ["npm:2.0.0", {\
        "packageLocation": "./.yarn/cache/isexe-npm-2.0.0-b58870bd2e-228cfa503f.zip/node_modules/isexe/",\
        "packageDependencies": [\
          ["isexe", "npm:2.0.0"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/isexe-npm-4.0.0-588229ad74-5884815115.zip/node_modules/isexe/",\
        "packageDependencies": [\
          ["isexe", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["jotai", [\
      ["npm:2.18.0", {\
        "packageLocation": "./.yarn/cache/jotai-npm-2.18.0-ec806e5342-df40027ad6.zip/node_modules/jotai/",\
        "packageDependencies": [\
          ["jotai", "npm:2.18.0"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.18.0", {\
        "packageLocation": "./.yarn/__virtual__/jotai-virtual-627ca781e6/0/cache/jotai-npm-2.18.0-ec806e5342-df40027ad6.zip/node_modules/jotai/",\
        "packageDependencies": [\
          ["@babel/core", null],\
          ["@babel/template", null],\
          ["@types/babel__core", null],\
          ["@types/babel__template", null],\
          ["@types/react", "npm:19.2.14"],\
          ["jotai", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.18.0"],\
          ["react", "npm:19.2.4"]\
        ],\
        "packagePeers": [\
          "@babel/core",\
          "@babel/template",\
          "@types/babel__core",\
          "@types/babel__template",\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["jotai-tanstack-query", [\
      ["npm:0.11.0", {\
        "packageLocation": "./.yarn/cache/jotai-tanstack-query-npm-0.11.0-03b723286e-9c87d69cb2.zip/node_modules/jotai-tanstack-query/",\
        "packageDependencies": [\
          ["jotai-tanstack-query", "npm:0.11.0"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.11.0", {\
        "packageLocation": "./.yarn/__virtual__/jotai-tanstack-query-virtual-986809521a/0/cache/jotai-tanstack-query-npm-0.11.0-03b723286e-9c87d69cb2.zip/node_modules/jotai-tanstack-query/",\
        "packageDependencies": [\
          ["@tanstack/query-core", "npm:5.90.20"],\
          ["@tanstack/react-query", null],\
          ["@types/jotai", null],\
          ["@types/react", "npm:19.2.14"],\
          ["@types/tanstack__query-core", null],\
          ["@types/tanstack__react-query", null],\
          ["jotai", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.18.0"],\
          ["jotai-tanstack-query", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:0.11.0"],\
          ["react", "npm:19.2.4"]\
        ],\
        "packagePeers": [\
          "@tanstack/query-core",\
          "@tanstack/react-query",\
          "@types/jotai",\
          "@types/react",\
          "@types/tanstack__query-core",\
          "@types/tanstack__react-query",\
          "jotai",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["js-tokens", [\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/js-tokens-npm-4.0.0-0ac852e9e2-e248708d37.zip/node_modules/js-tokens/",\
        "packageDependencies": [\
          ["js-tokens", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["js-yaml", [\
      ["npm:4.1.1", {\
        "packageLocation": "./.yarn/cache/js-yaml-npm-4.1.1-86ec786790-561c7d7088.zip/node_modules/js-yaml/",\
        "packageDependencies": [\
          ["argparse", "npm:2.0.1"],\
          ["js-yaml", "npm:4.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["jsesc", [\
      ["npm:3.1.0", {\
        "packageLocation": "./.yarn/cache/jsesc-npm-3.1.0-2f4f998cd7-531779df5e.zip/node_modules/jsesc/",\
        "packageDependencies": [\
          ["jsesc", "npm:3.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["json-buffer", [\
      ["npm:3.0.1", {\
        "packageLocation": "./.yarn/cache/json-buffer-npm-3.0.1-f8f6d20603-0d1c91569d.zip/node_modules/json-buffer/",\
        "packageDependencies": [\
          ["json-buffer", "npm:3.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["json-schema-traverse", [\
      ["npm:0.4.1", {\
        "packageLocation": "./.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-108fa90d4c.zip/node_modules/json-schema-traverse/",\
        "packageDependencies": [\
          ["json-schema-traverse", "npm:0.4.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["json-stable-stringify-without-jsonify", [\
      ["npm:1.0.1", {\
        "packageLocation": "./.yarn/cache/json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-cb168b61fd.zip/node_modules/json-stable-stringify-without-jsonify/",\
        "packageDependencies": [\
          ["json-stable-stringify-without-jsonify", "npm:1.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["json5", [\
      ["npm:2.2.3", {\
        "packageLocation": "./.yarn/cache/json5-npm-2.2.3-9962c55073-5a04eed948.zip/node_modules/json5/",\
        "packageDependencies": [\
          ["json5", "npm:2.2.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["keyv", [\
      ["npm:4.5.4", {\
        "packageLocation": "./.yarn/cache/keyv-npm-4.5.4-4c8e2cf7f7-aa52f3c5e1.zip/node_modules/keyv/",\
        "packageDependencies": [\
          ["json-buffer", "npm:3.0.1"],\
          ["keyv", "npm:4.5.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["levn", [\
      ["npm:0.4.1", {\
        "packageLocation": "./.yarn/cache/levn-npm-0.4.1-d183b2d7bb-effb03cad7.zip/node_modules/levn/",\
        "packageDependencies": [\
          ["levn", "npm:0.4.1"],\
          ["prelude-ls", "npm:1.2.1"],\
          ["type-check", "npm:0.4.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["locate-path", [\
      ["npm:6.0.0", {\
        "packageLocation": "./.yarn/cache/locate-path-npm-6.0.0-06a1e4c528-d3972ab70d.zip/node_modules/locate-path/",\
        "packageDependencies": [\
          ["locate-path", "npm:6.0.0"],\
          ["p-locate", "npm:5.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["lodash.merge", [\
      ["npm:4.6.2", {\
        "packageLocation": "./.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-402fa16a1e.zip/node_modules/lodash.merge/",\
        "packageDependencies": [\
          ["lodash.merge", "npm:4.6.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["loose-envify", [\
      ["npm:1.4.0", {\
        "packageLocation": "./.yarn/cache/loose-envify-npm-1.4.0-6307b72ccf-655d110220.zip/node_modules/loose-envify/",\
        "packageDependencies": [\
          ["js-tokens", "npm:4.0.0"],\
          ["loose-envify", "npm:1.4.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["lru-cache", [\
      ["npm:11.2.6", {\
        "packageLocation": "./.yarn/cache/lru-cache-npm-11.2.6-acb7d4323e-73bbffb298.zip/node_modules/lru-cache/",\
        "packageDependencies": [\
          ["lru-cache", "npm:11.2.6"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:5.1.1", {\
        "packageLocation": "./.yarn/cache/lru-cache-npm-5.1.1-f475882a51-89b2ef2ef4.zip/node_modules/lru-cache/",\
        "packageDependencies": [\
          ["lru-cache", "npm:5.1.1"],\
          ["yallist", "npm:3.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["make-fetch-happen", [\
      ["npm:15.0.4", {\
        "packageLocation": "./.yarn/cache/make-fetch-happen-npm-15.0.4-cd90f16f9b-b874bf6879.zip/node_modules/make-fetch-happen/",\
        "packageDependencies": [\
          ["@gar/promise-retry", "npm:1.0.2"],\
          ["@npmcli/agent", "npm:4.0.0"],\
          ["cacache", "npm:20.0.3"],\
          ["http-cache-semantics", "npm:4.2.0"],\
          ["make-fetch-happen", "npm:15.0.4"],\
          ["minipass", "npm:7.1.3"],\
          ["minipass-fetch", "npm:5.0.2"],\
          ["minipass-flush", "npm:1.0.5"],\
          ["minipass-pipeline", "npm:1.2.4"],\
          ["negotiator", "npm:1.0.0"],\
          ["proc-log", "npm:6.1.0"],\
          ["ssri", "npm:13.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["mediamtx-webrtc-react", [\
      ["npm:1.0.1", {\
        "packageLocation": "./.yarn/cache/mediamtx-webrtc-react-npm-1.0.1-de237e3035-ee1e630f20.zip/node_modules/mediamtx-webrtc-react/",\
        "packageDependencies": [\
          ["mediamtx-webrtc-react", "npm:1.0.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.0.1", {\
        "packageLocation": "./.yarn/__virtual__/mediamtx-webrtc-react-virtual-8ea5a37835/0/cache/mediamtx-webrtc-react-npm-1.0.1-de237e3035-ee1e630f20.zip/node_modules/mediamtx-webrtc-react/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["mediamtx-webrtc-react", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.0.1"],\
          ["react", "npm:19.2.4"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minimatch", [\
      ["npm:10.2.4", {\
        "packageLocation": "./.yarn/cache/minimatch-npm-10.2.4-11f0605299-35f3dfb7b9.zip/node_modules/minimatch/",\
        "packageDependencies": [\
          ["brace-expansion", "npm:5.0.4"],\
          ["minimatch", "npm:10.2.4"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:3.1.5", {\
        "packageLocation": "./.yarn/cache/minimatch-npm-3.1.5-86958baf50-2ecbdc0d33.zip/node_modules/minimatch/",\
        "packageDependencies": [\
          ["brace-expansion", "npm:1.1.12"],\
          ["minimatch", "npm:3.1.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minipass", [\
      ["npm:3.3.6", {\
        "packageLocation": "./.yarn/cache/minipass-npm-3.3.6-b8d93a945b-a114746943.zip/node_modules/minipass/",\
        "packageDependencies": [\
          ["minipass", "npm:3.3.6"],\
          ["yallist", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:7.1.3", {\
        "packageLocation": "./.yarn/cache/minipass-npm-7.1.3-b73a16498d-539da88dac.zip/node_modules/minipass/",\
        "packageDependencies": [\
          ["minipass", "npm:7.1.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minipass-collect", [\
      ["npm:2.0.1", {\
        "packageLocation": "./.yarn/cache/minipass-collect-npm-2.0.1-73d3907e40-5167e73f62.zip/node_modules/minipass-collect/",\
        "packageDependencies": [\
          ["minipass", "npm:7.1.3"],\
          ["minipass-collect", "npm:2.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minipass-fetch", [\
      ["npm:5.0.2", {\
        "packageLocation": "./.yarn/cache/minipass-fetch-npm-5.0.2-cd03eefed8-ce4ab9f21c.zip/node_modules/minipass-fetch/",\
        "packageDependencies": [\
          ["iconv-lite", "npm:0.7.2"],\
          ["minipass", "npm:7.1.3"],\
          ["minipass-fetch", "npm:5.0.2"],\
          ["minipass-sized", "npm:2.0.0"],\
          ["minizlib", "npm:3.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minipass-flush", [\
      ["npm:1.0.5", {\
        "packageLocation": "./.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-2a51b63feb.zip/node_modules/minipass-flush/",\
        "packageDependencies": [\
          ["minipass", "npm:3.3.6"],\
          ["minipass-flush", "npm:1.0.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minipass-pipeline", [\
      ["npm:1.2.4", {\
        "packageLocation": "./.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-cbda57cea2.zip/node_modules/minipass-pipeline/",\
        "packageDependencies": [\
          ["minipass", "npm:3.3.6"],\
          ["minipass-pipeline", "npm:1.2.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minipass-sized", [\
      ["npm:2.0.0", {\
        "packageLocation": "./.yarn/cache/minipass-sized-npm-2.0.0-a911fc7d3f-f9201696a6.zip/node_modules/minipass-sized/",\
        "packageDependencies": [\
          ["minipass", "npm:7.1.3"],\
          ["minipass-sized", "npm:2.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["minizlib", [\
      ["npm:3.1.0", {\
        "packageLocation": "./.yarn/cache/minizlib-npm-3.1.0-6680befdba-5aad75ab00.zip/node_modules/minizlib/",\
        "packageDependencies": [\
          ["minipass", "npm:7.1.3"],\
          ["minizlib", "npm:3.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["ms", [\
      ["npm:2.1.3", {\
        "packageLocation": "./.yarn/cache/ms-npm-2.1.3-81ff3cfac1-d924b57e73.zip/node_modules/ms/",\
        "packageDependencies": [\
          ["ms", "npm:2.1.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["nanoid", [\
      ["npm:3.3.11", {\
        "packageLocation": "./.yarn/cache/nanoid-npm-3.3.11-f98c1f9ef6-40e7f70b3d.zip/node_modules/nanoid/",\
        "packageDependencies": [\
          ["nanoid", "npm:3.3.11"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["natural-compare", [\
      ["npm:1.4.0", {\
        "packageLocation": "./.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-f5f9a7974b.zip/node_modules/natural-compare/",\
        "packageDependencies": [\
          ["natural-compare", "npm:1.4.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["negotiator", [\
      ["npm:1.0.0", {\
        "packageLocation": "./.yarn/cache/negotiator-npm-1.0.0-47d727e27e-4c559dd526.zip/node_modules/negotiator/",\
        "packageDependencies": [\
          ["negotiator", "npm:1.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["node-gyp", [\
      ["npm:12.2.0", {\
        "packageLocation": "./.yarn/unplugged/node-gyp-npm-12.2.0-11f8fe84f1/node_modules/node-gyp/",\
        "packageDependencies": [\
          ["env-paths", "npm:2.2.1"],\
          ["exponential-backoff", "npm:3.1.3"],\
          ["graceful-fs", "npm:4.2.11"],\
          ["make-fetch-happen", "npm:15.0.4"],\
          ["node-gyp", "npm:12.2.0"],\
          ["nopt", "npm:9.0.0"],\
          ["proc-log", "npm:6.1.0"],\
          ["semver", "npm:7.7.4"],\
          ["tar", "npm:7.5.9"],\
          ["tinyglobby", "npm:0.2.15"],\
          ["which", "npm:6.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["node-releases", [\
      ["npm:2.0.27", {\
        "packageLocation": "./.yarn/cache/node-releases-npm-2.0.27-b2d1b8de4a-f1e6583b78.zip/node_modules/node-releases/",\
        "packageDependencies": [\
          ["node-releases", "npm:2.0.27"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["nopt", [\
      ["npm:9.0.0", {\
        "packageLocation": "./.yarn/cache/nopt-npm-9.0.0-81316ec15c-1822eb6f9b.zip/node_modules/nopt/",\
        "packageDependencies": [\
          ["abbrev", "npm:4.0.0"],\
          ["nopt", "npm:9.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["object-assign", [\
      ["npm:4.1.1", {\
        "packageLocation": "./.yarn/cache/object-assign-npm-4.1.1-1004ad6dec-1f4df99451.zip/node_modules/object-assign/",\
        "packageDependencies": [\
          ["object-assign", "npm:4.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["optionator", [\
      ["npm:0.9.4", {\
        "packageLocation": "./.yarn/cache/optionator-npm-0.9.4-1f114b00e8-4afb687a05.zip/node_modules/optionator/",\
        "packageDependencies": [\
          ["deep-is", "npm:0.1.4"],\
          ["fast-levenshtein", "npm:2.0.6"],\
          ["levn", "npm:0.4.1"],\
          ["optionator", "npm:0.9.4"],\
          ["prelude-ls", "npm:1.2.1"],\
          ["type-check", "npm:0.4.0"],\
          ["word-wrap", "npm:1.2.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["p-limit", [\
      ["npm:3.1.0", {\
        "packageLocation": "./.yarn/cache/p-limit-npm-3.1.0-05d2ede37f-9db675949d.zip/node_modules/p-limit/",\
        "packageDependencies": [\
          ["p-limit", "npm:3.1.0"],\
          ["yocto-queue", "npm:0.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["p-locate", [\
      ["npm:5.0.0", {\
        "packageLocation": "./.yarn/cache/p-locate-npm-5.0.0-92cc7c7a3e-2290d627ab.zip/node_modules/p-locate/",\
        "packageDependencies": [\
          ["p-limit", "npm:3.1.0"],\
          ["p-locate", "npm:5.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["p-map", [\
      ["npm:7.0.4", {\
        "packageLocation": "./.yarn/cache/p-map-npm-7.0.4-39386109d0-a5030935d3.zip/node_modules/p-map/",\
        "packageDependencies": [\
          ["p-map", "npm:7.0.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["parent-module", [\
      ["npm:1.0.1", {\
        "packageLocation": "./.yarn/cache/parent-module-npm-1.0.1-1fae11b095-c63d6e8000.zip/node_modules/parent-module/",\
        "packageDependencies": [\
          ["callsites", "npm:3.1.0"],\
          ["parent-module", "npm:1.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["path-exists", [\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-8c0bd3f523.zip/node_modules/path-exists/",\
        "packageDependencies": [\
          ["path-exists", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["path-key", [\
      ["npm:3.1.1", {\
        "packageLocation": "./.yarn/cache/path-key-npm-3.1.1-0e66ea8321-748c43efd5.zip/node_modules/path-key/",\
        "packageDependencies": [\
          ["path-key", "npm:3.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["path-scurry", [\
      ["npm:2.0.2", {\
        "packageLocation": "./.yarn/cache/path-scurry-npm-2.0.2-f10aa6a77e-b35ad37cf6.zip/node_modules/path-scurry/",\
        "packageDependencies": [\
          ["lru-cache", "npm:11.2.6"],\
          ["minipass", "npm:7.1.3"],\
          ["path-scurry", "npm:2.0.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["picocolors", [\
      ["npm:1.1.1", {\
        "packageLocation": "./.yarn/cache/picocolors-npm-1.1.1-4fede47cf1-e2e3e8170a.zip/node_modules/picocolors/",\
        "packageDependencies": [\
          ["picocolors", "npm:1.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["picomatch", [\
      ["npm:4.0.3", {\
        "packageLocation": "./.yarn/cache/picomatch-npm-4.0.3-0a647b87cc-9582c951e9.zip/node_modules/picomatch/",\
        "packageDependencies": [\
          ["picomatch", "npm:4.0.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["postcss", [\
      ["npm:8.5.6", {\
        "packageLocation": "./.yarn/cache/postcss-npm-8.5.6-e7f126c6f3-5127cc7c91.zip/node_modules/postcss/",\
        "packageDependencies": [\
          ["nanoid", "npm:3.3.11"],\
          ["picocolors", "npm:1.1.1"],\
          ["postcss", "npm:8.5.6"],\
          ["source-map-js", "npm:1.2.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["prelude-ls", [\
      ["npm:1.2.1", {\
        "packageLocation": "./.yarn/cache/prelude-ls-npm-1.2.1-3e4d272a55-b00d617431.zip/node_modules/prelude-ls/",\
        "packageDependencies": [\
          ["prelude-ls", "npm:1.2.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["prettier", [\
      ["npm:3.8.1", {\
        "packageLocation": "./.yarn/unplugged/prettier-npm-3.8.1-04022a855f/node_modules/prettier/",\
        "packageDependencies": [\
          ["prettier", "npm:3.8.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["proc-log", [\
      ["npm:6.1.0", {\
        "packageLocation": "./.yarn/cache/proc-log-npm-6.1.0-84e609b3f4-4f178d4062.zip/node_modules/proc-log/",\
        "packageDependencies": [\
          ["proc-log", "npm:6.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["prop-types", [\
      ["npm:15.8.1", {\
        "packageLocation": "./.yarn/cache/prop-types-npm-15.8.1-17c71ee7ee-59ece7ca2f.zip/node_modules/prop-types/",\
        "packageDependencies": [\
          ["loose-envify", "npm:1.4.0"],\
          ["object-assign", "npm:4.1.1"],\
          ["prop-types", "npm:15.8.1"],\
          ["react-is", "npm:16.13.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["prop-types-extra", [\
      ["npm:1.1.1", {\
        "packageLocation": "./.yarn/cache/prop-types-extra-npm-1.1.1-ebbe8d351d-5521568f33.zip/node_modules/prop-types-extra/",\
        "packageDependencies": [\
          ["prop-types-extra", "npm:1.1.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:1.1.1", {\
        "packageLocation": "./.yarn/__virtual__/prop-types-extra-virtual-a21e493851/0/cache/prop-types-extra-npm-1.1.1-ebbe8d351d-5521568f33.zip/node_modules/prop-types-extra/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["prop-types-extra", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:1.1.1"],\
          ["react", "npm:19.2.4"],\
          ["react-is", "npm:16.13.1"],\
          ["warning", "npm:4.0.3"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["punycode", [\
      ["npm:2.3.1", {\
        "packageLocation": "./.yarn/cache/punycode-npm-2.3.1-97543c420d-14f76a8206.zip/node_modules/punycode/",\
        "packageDependencies": [\
          ["punycode", "npm:2.3.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react", [\
      ["npm:19.2.4", {\
        "packageLocation": "./.yarn/cache/react-npm-19.2.4-d29a5aac4d-cd2c9ff67a.zip/node_modules/react/",\
        "packageDependencies": [\
          ["react", "npm:19.2.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-bootstrap", [\
      ["npm:2.10.10", {\
        "packageLocation": "./.yarn/cache/react-bootstrap-npm-2.10.10-16c3b17846-7d515ca782.zip/node_modules/react-bootstrap/",\
        "packageDependencies": [\
          ["react-bootstrap", "npm:2.10.10"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.10.10", {\
        "packageLocation": "./.yarn/__virtual__/react-bootstrap-virtual-3ef5ba6e61/0/cache/react-bootstrap-npm-2.10.10-16c3b17846-7d515ca782.zip/node_modules/react-bootstrap/",\
        "packageDependencies": [\
          ["@babel/runtime", "npm:7.28.6"],\
          ["@restart/hooks", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:0.4.16"],\
          ["@restart/ui", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:1.9.4"],\
          ["@types/prop-types", "npm:15.7.15"],\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"],\
          ["@types/react-transition-group", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:4.4.12"],\
          ["classnames", "npm:2.5.1"],\
          ["dom-helpers", "npm:5.2.1"],\
          ["invariant", "npm:2.2.4"],\
          ["prop-types", "npm:15.8.1"],\
          ["prop-types-extra", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:1.1.1"],\
          ["react", "npm:19.2.4"],\
          ["react-bootstrap", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:2.10.10"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["react-transition-group", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:4.4.5"],\
          ["uncontrollable", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:7.2.1"],\
          ["warning", "npm:4.0.3"]\
        ],\
        "packagePeers": [\
          "@types/react-dom",\
          "@types/react",\
          "react-dom",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-bootstrap-icons", [\
      ["npm:1.11.6", {\
        "packageLocation": "./.yarn/cache/react-bootstrap-icons-npm-1.11.6-2dbc39d6ac-4dfd75c980.zip/node_modules/react-bootstrap-icons/",\
        "packageDependencies": [\
          ["react-bootstrap-icons", "npm:1.11.6"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.11.6", {\
        "packageLocation": "./.yarn/__virtual__/react-bootstrap-icons-virtual-ffeae68cb7/0/cache/react-bootstrap-icons-npm-1.11.6-2dbc39d6ac-4dfd75c980.zip/node_modules/react-bootstrap-icons/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["prop-types", "npm:15.8.1"],\
          ["react", "npm:19.2.4"],\
          ["react-bootstrap-icons", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:1.11.6"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-dom", [\
      ["npm:19.2.4", {\
        "packageLocation": "./.yarn/cache/react-dom-npm-19.2.4-4921ae503e-f0c63f1794.zip/node_modules/react-dom/",\
        "packageDependencies": [\
          ["react-dom", "npm:19.2.4"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4", {\
        "packageLocation": "./.yarn/__virtual__/react-dom-virtual-b20c5a9f0d/0/cache/react-dom-npm-19.2.4-4921ae503e-f0c63f1794.zip/node_modules/react-dom/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["react", "npm:19.2.4"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["scheduler", "npm:0.27.0"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-is", [\
      ["npm:16.13.1", {\
        "packageLocation": "./.yarn/cache/react-is-npm-16.13.1-a9b9382b4f-33977da7a5.zip/node_modules/react-is/",\
        "packageDependencies": [\
          ["react-is", "npm:16.13.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-lifecycles-compat", [\
      ["npm:3.0.4", {\
        "packageLocation": "./.yarn/cache/react-lifecycles-compat-npm-3.0.4-d5e285a39e-1d0df3c85a.zip/node_modules/react-lifecycles-compat/",\
        "packageDependencies": [\
          ["react-lifecycles-compat", "npm:3.0.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-refresh", [\
      ["npm:0.18.0", {\
        "packageLocation": "./.yarn/cache/react-refresh-npm-0.18.0-5576c3f4a3-34a262f7fd.zip/node_modules/react-refresh/",\
        "packageDependencies": [\
          ["react-refresh", "npm:0.18.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-router", [\
      ["npm:7.13.1", {\
        "packageLocation": "./.yarn/cache/react-router-npm-7.13.1-9c7a37cce1-a64c645ced.zip/node_modules/react-router/",\
        "packageDependencies": [\
          ["react-router", "npm:7.13.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:5437a4b0e5f4275a026b683b33ad309a0b776272053b12fc690079739e0bd59739835aaf6eedfc1663c76dc2fbea0989181c4700a399f0a66cad1506b413a2eb#npm:7.13.1", {\
        "packageLocation": "./.yarn/__virtual__/react-router-virtual-3f776f26e6/0/cache/react-router-npm-7.13.1-9c7a37cce1-a64c645ced.zip/node_modules/react-router/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"],\
          ["cookie", "npm:1.1.1"],\
          ["react", "npm:19.2.4"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["react-router", "virtual:5437a4b0e5f4275a026b683b33ad309a0b776272053b12fc690079739e0bd59739835aaf6eedfc1663c76dc2fbea0989181c4700a399f0a66cad1506b413a2eb#npm:7.13.1"],\
          ["set-cookie-parser", "npm:2.7.2"]\
        ],\
        "packagePeers": [\
          "@types/react-dom",\
          "@types/react",\
          "react-dom",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-router-dom", [\
      ["npm:7.13.1", {\
        "packageLocation": "./.yarn/cache/react-router-dom-npm-7.13.1-c0901db57d-2b8ed9dc75.zip/node_modules/react-router-dom/",\
        "packageDependencies": [\
          ["react-router-dom", "npm:7.13.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.13.1", {\
        "packageLocation": "./.yarn/__virtual__/react-router-dom-virtual-5437a4b0e5/0/cache/react-router-dom-npm-7.13.1-c0901db57d-2b8ed9dc75.zip/node_modules/react-router-dom/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"],\
          ["react", "npm:19.2.4"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["react-router", "virtual:5437a4b0e5f4275a026b683b33ad309a0b776272053b12fc690079739e0bd59739835aaf6eedfc1663c76dc2fbea0989181c4700a399f0a66cad1506b413a2eb#npm:7.13.1"],\
          ["react-router-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.13.1"]\
        ],\
        "packagePeers": [\
          "@types/react-dom",\
          "@types/react",\
          "react-dom",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["react-transition-group", [\
      ["npm:4.4.5", {\
        "packageLocation": "./.yarn/cache/react-transition-group-npm-4.4.5-98ea4ef96e-2ba754ba74.zip/node_modules/react-transition-group/",\
        "packageDependencies": [\
          ["react-transition-group", "npm:4.4.5"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:4.4.5", {\
        "packageLocation": "./.yarn/__virtual__/react-transition-group-virtual-e383fc6622/0/cache/react-transition-group-npm-4.4.5-98ea4ef96e-2ba754ba74.zip/node_modules/react-transition-group/",\
        "packageDependencies": [\
          ["@babel/runtime", "npm:7.28.6"],\
          ["@types/react", "npm:19.2.14"],\
          ["@types/react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.3"],\
          ["dom-helpers", "npm:5.2.1"],\
          ["loose-envify", "npm:1.4.0"],\
          ["prop-types", "npm:15.8.1"],\
          ["react", "npm:19.2.4"],\
          ["react-dom", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:19.2.4"],\
          ["react-transition-group", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:4.4.5"]\
        ],\
        "packagePeers": [\
          "@types/react-dom",\
          "@types/react",\
          "react-dom",\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["resolve-from", [\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/resolve-from-npm-4.0.0-f758ec21bf-8408eec31a.zip/node_modules/resolve-from/",\
        "packageDependencies": [\
          ["resolve-from", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["retry", [\
      ["npm:0.13.1", {\
        "packageLocation": "./.yarn/cache/retry-npm-0.13.1-89eb100ab6-9ae822ee19.zip/node_modules/retry/",\
        "packageDependencies": [\
          ["retry", "npm:0.13.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["rollup", [\
      ["npm:4.59.0", {\
        "packageLocation": "./.yarn/cache/rollup-npm-4.59.0-3b10f603ec-f38742da34.zip/node_modules/rollup/",\
        "packageDependencies": [\
          ["@rollup/rollup-android-arm-eabi", "npm:4.59.0"],\
          ["@rollup/rollup-android-arm64", "npm:4.59.0"],\
          ["@rollup/rollup-darwin-arm64", "npm:4.59.0"],\
          ["@rollup/rollup-darwin-x64", "npm:4.59.0"],\
          ["@rollup/rollup-freebsd-arm64", "npm:4.59.0"],\
          ["@rollup/rollup-freebsd-x64", "npm:4.59.0"],\
          ["@rollup/rollup-linux-arm-gnueabihf", "npm:4.59.0"],\
          ["@rollup/rollup-linux-arm-musleabihf", "npm:4.59.0"],\
          ["@rollup/rollup-linux-arm64-gnu", "npm:4.59.0"],\
          ["@rollup/rollup-linux-arm64-musl", "npm:4.59.0"],\
          ["@rollup/rollup-linux-loong64-gnu", "npm:4.59.0"],\
          ["@rollup/rollup-linux-loong64-musl", "npm:4.59.0"],\
          ["@rollup/rollup-linux-ppc64-gnu", "npm:4.59.0"],\
          ["@rollup/rollup-linux-ppc64-musl", "npm:4.59.0"],\
          ["@rollup/rollup-linux-riscv64-gnu", "npm:4.59.0"],\
          ["@rollup/rollup-linux-riscv64-musl", "npm:4.59.0"],\
          ["@rollup/rollup-linux-s390x-gnu", "npm:4.59.0"],\
          ["@rollup/rollup-linux-x64-gnu", "npm:4.59.0"],\
          ["@rollup/rollup-linux-x64-musl", "npm:4.59.0"],\
          ["@rollup/rollup-openbsd-x64", "npm:4.59.0"],\
          ["@rollup/rollup-openharmony-arm64", "npm:4.59.0"],\
          ["@rollup/rollup-win32-arm64-msvc", "npm:4.59.0"],\
          ["@rollup/rollup-win32-ia32-msvc", "npm:4.59.0"],\
          ["@rollup/rollup-win32-x64-gnu", "npm:4.59.0"],\
          ["@rollup/rollup-win32-x64-msvc", "npm:4.59.0"],\
          ["@types/estree", "npm:1.0.8"],\
          ["fsevents", "patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"],\
          ["rollup", "npm:4.59.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["safer-buffer", [\
      ["npm:2.1.2", {\
        "packageLocation": "./.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-7e3c8b2e88.zip/node_modules/safer-buffer/",\
        "packageDependencies": [\
          ["safer-buffer", "npm:2.1.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["scheduler", [\
      ["npm:0.27.0", {\
        "packageLocation": "./.yarn/cache/scheduler-npm-0.27.0-772f0dd512-4f03048cb0.zip/node_modules/scheduler/",\
        "packageDependencies": [\
          ["scheduler", "npm:0.27.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["semver", [\
      ["npm:6.3.1", {\
        "packageLocation": "./.yarn/cache/semver-npm-6.3.1-bcba31fdbe-e3d79b6090.zip/node_modules/semver/",\
        "packageDependencies": [\
          ["semver", "npm:6.3.1"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:7.7.4", {\
        "packageLocation": "./.yarn/cache/semver-npm-7.7.4-746e538da5-5215ad0234.zip/node_modules/semver/",\
        "packageDependencies": [\
          ["semver", "npm:7.7.4"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["set-cookie-parser", [\
      ["npm:2.7.2", {\
        "packageLocation": "./.yarn/cache/set-cookie-parser-npm-2.7.2-e1a4d1221b-4381a9eb7e.zip/node_modules/set-cookie-parser/",\
        "packageDependencies": [\
          ["set-cookie-parser", "npm:2.7.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["shebang-command", [\
      ["npm:2.0.0", {\
        "packageLocation": "./.yarn/cache/shebang-command-npm-2.0.0-eb2b01921d-a41692e7d8.zip/node_modules/shebang-command/",\
        "packageDependencies": [\
          ["shebang-command", "npm:2.0.0"],\
          ["shebang-regex", "npm:3.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["shebang-regex", [\
      ["npm:3.0.0", {\
        "packageLocation": "./.yarn/cache/shebang-regex-npm-3.0.0-899a0cd65e-1dbed0726d.zip/node_modules/shebang-regex/",\
        "packageDependencies": [\
          ["shebang-regex", "npm:3.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["smart-buffer", [\
      ["npm:4.2.0", {\
        "packageLocation": "./.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-a16775323e.zip/node_modules/smart-buffer/",\
        "packageDependencies": [\
          ["smart-buffer", "npm:4.2.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["socket.io-client", [\
      ["npm:4.8.3", {\
        "packageLocation": "./.yarn/cache/socket.io-client-npm-4.8.3-6800638250-76c0d86de0.zip/node_modules/socket.io-client/",\
        "packageDependencies": [\
          ["@socket.io/component-emitter", "npm:3.1.2"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["engine.io-client", "npm:6.6.6"],\
          ["socket.io-client", "npm:4.8.3"],\
          ["socket.io-parser", "npm:4.2.7"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["socket.io-parser", [\
      ["npm:4.2.7", {\
        "packageLocation": "./.yarn/cache/socket.io-parser-npm-4.2.7-0fe17183fd-16a5579718.zip/node_modules/socket.io-parser/",\
        "packageDependencies": [\
          ["@socket.io/component-emitter", "npm:3.1.2"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["socket.io-parser", "npm:4.2.7"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["socks", [\
      ["npm:2.8.7", {\
        "packageLocation": "./.yarn/cache/socks-npm-2.8.7-d1d20aae19-2805a43a1c.zip/node_modules/socks/",\
        "packageDependencies": [\
          ["ip-address", "npm:10.1.0"],\
          ["smart-buffer", "npm:4.2.0"],\
          ["socks", "npm:2.8.7"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["socks-proxy-agent", [\
      ["npm:8.0.5", {\
        "packageLocation": "./.yarn/cache/socks-proxy-agent-npm-8.0.5-24d77a90dc-5d2c6cecba.zip/node_modules/socks-proxy-agent/",\
        "packageDependencies": [\
          ["agent-base", "npm:7.1.4"],\
          ["debug", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:4.4.3"],\
          ["socks", "npm:2.8.7"],\
          ["socks-proxy-agent", "npm:8.0.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["source-map-js", [\
      ["npm:1.2.1", {\
        "packageLocation": "./.yarn/cache/source-map-js-npm-1.2.1-b9a47d7e1a-7bda1fc4c1.zip/node_modules/source-map-js/",\
        "packageDependencies": [\
          ["source-map-js", "npm:1.2.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["ssri", [\
      ["npm:13.0.1", {\
        "packageLocation": "./.yarn/cache/ssri-npm-13.0.1-c266f2233c-cf6408a186.zip/node_modules/ssri/",\
        "packageDependencies": [\
          ["minipass", "npm:7.1.3"],\
          ["ssri", "npm:13.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["strip-json-comments", [\
      ["npm:3.1.1", {\
        "packageLocation": "./.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-9681a6257b.zip/node_modules/strip-json-comments/",\
        "packageDependencies": [\
          ["strip-json-comments", "npm:3.1.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["supports-color", [\
      ["npm:7.2.0", {\
        "packageLocation": "./.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-afb4c88521.zip/node_modules/supports-color/",\
        "packageDependencies": [\
          ["has-flag", "npm:4.0.0"],\
          ["supports-color", "npm:7.2.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["tar", [\
      ["npm:7.5.9", {\
        "packageLocation": "./.yarn/cache/tar-npm-7.5.9-dd42dd386e-e870beb1b2.zip/node_modules/tar/",\
        "packageDependencies": [\
          ["@isaacs/fs-minipass", "npm:4.0.1"],\
          ["chownr", "npm:3.0.0"],\
          ["minipass", "npm:7.1.3"],\
          ["minizlib", "npm:3.1.0"],\
          ["tar", "npm:7.5.9"],\
          ["yallist", "npm:5.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["tinyglobby", [\
      ["npm:0.2.15", {\
        "packageLocation": "./.yarn/cache/tinyglobby-npm-0.2.15-0e783aadbd-869c31490d.zip/node_modules/tinyglobby/",\
        "packageDependencies": [\
          ["fdir", "virtual:0e783aadbd2b4b8e6f6056033c0b290501892d23bc7c5dad5477e00e48ad8bd3e4434c3962a52dd75a58e06dbb7218094a494bac954ef2f7f6fdb65d9717e5f4#npm:6.5.0"],\
          ["picomatch", "npm:4.0.3"],\
          ["tinyglobby", "npm:0.2.15"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["ts-api-utils", [\
      ["npm:2.4.0", {\
        "packageLocation": "./.yarn/cache/ts-api-utils-npm-2.4.0-1179124e9a-ed185861ae.zip/node_modules/ts-api-utils/",\
        "packageDependencies": [\
          ["ts-api-utils", "npm:2.4.0"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:2.4.0", {\
        "packageLocation": "./.yarn/__virtual__/ts-api-utils-virtual-49b9efafcd/0/cache/ts-api-utils-npm-2.4.0-1179124e9a-ed185861ae.zip/node_modules/ts-api-utils/",\
        "packageDependencies": [\
          ["@types/typescript", null],\
          ["ts-api-utils", "virtual:79e3fd711d219a7e195f7717b302bba495278e314f4cbf21fc912bccc21ee612c45d3bed436698ce744dcc117f9112db1d68749c33956122d7e1360e6bcb3f62#npm:2.4.0"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "packagePeers": [\
          "@types/typescript",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["tslib", [\
      ["npm:2.8.1", {\
        "packageLocation": "./.yarn/cache/tslib-npm-2.8.1-66590b21b8-9c4759110a.zip/node_modules/tslib/",\
        "packageDependencies": [\
          ["tslib", "npm:2.8.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["type-check", [\
      ["npm:0.4.0", {\
        "packageLocation": "./.yarn/cache/type-check-npm-0.4.0-60565800ce-7b3fd0ed43.zip/node_modules/type-check/",\
        "packageDependencies": [\
          ["prelude-ls", "npm:1.2.1"],\
          ["type-check", "npm:0.4.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["typescript", [\
      ["patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5", {\
        "packageLocation": "./.yarn/cache/typescript-patch-6fda4d02cf-ad09fdf7a7.zip/node_modules/typescript/",\
        "packageDependencies": [\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["typescript-eslint", [\
      ["npm:8.56.1", {\
        "packageLocation": "./.yarn/cache/typescript-eslint-npm-8.56.1-533c704529-c33aeb9a8b.zip/node_modules/typescript-eslint/",\
        "packageDependencies": [\
          ["typescript-eslint", "npm:8.56.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:8.56.1", {\
        "packageLocation": "./.yarn/__virtual__/typescript-eslint-virtual-58ccd47262/0/cache/typescript-eslint-npm-8.56.1-533c704529-c33aeb9a8b.zip/node_modules/typescript-eslint/",\
        "packageDependencies": [\
          ["@types/eslint", null],\
          ["@types/typescript", null],\
          ["@typescript-eslint/eslint-plugin", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/parser", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/typescript-estree", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["@typescript-eslint/utils", "virtual:58ccd472628fcf79c5364cbafb0fa7401eab7f9f0a8d7e57daff8d16b3df3fcd9fae4f499821557ed433fdc33c9608f2e228cdb9e43ac4ccbde485d9fe0d92aa#npm:8.56.1"],\
          ["eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:9.39.3"],\
          ["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"],\
          ["typescript-eslint", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:8.56.1"]\
        ],\
        "packagePeers": [\
          "@types/eslint",\
          "@types/typescript",\
          "eslint",\
          "typescript"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["uncontrollable", [\
      ["npm:7.2.1", {\
        "packageLocation": "./.yarn/cache/uncontrollable-npm-7.2.1-85b30af5c9-81473e8920.zip/node_modules/uncontrollable/",\
        "packageDependencies": [\
          ["uncontrollable", "npm:7.2.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["npm:8.0.4", {\
        "packageLocation": "./.yarn/cache/uncontrollable-npm-8.0.4-107aa91a37-bc9db6c82f.zip/node_modules/uncontrollable/",\
        "packageDependencies": [\
          ["uncontrollable", "npm:8.0.4"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:8.0.4", {\
        "packageLocation": "./.yarn/__virtual__/uncontrollable-virtual-ed515e923c/0/cache/uncontrollable-npm-8.0.4-107aa91a37-bc9db6c82f.zip/node_modules/uncontrollable/",\
        "packageDependencies": [\
          ["@types/react", "npm:19.2.14"],\
          ["react", "npm:19.2.4"],\
          ["uncontrollable", "virtual:2c7fdebac9e5df003259366b3991a1b6364ba39c2d2c37ca99ad6387c1be4e17fac34260077d1dffbda2937aa3539e2b4e7fcef68647eed81df6e3be2aa3f086#npm:8.0.4"]\
        ],\
        "packagePeers": [\
          "@types/react",\
          "react"\
        ],\
        "linkType": "HARD"\
      }],\
      ["virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:7.2.1", {\
        "packageLocation": "./.yarn/__virtual__/uncontrollable-virtual-025056b67c/0/cache/uncontrollable-npm-7.2.1-85b30af5c9-81473e8920.zip/node_modules/uncontrollable/",\
        "packageDependencies": [\
          ["@babel/runtime", "npm:7.28.6"],\
          ["@types/react", "npm:19.2.14"],\
          ["invariant", "npm:2.2.4"],\
          ["react", "npm:19.2.4"],\
          ["react-lifecycles-compat", "npm:3.0.4"],\
          ["uncontrollable", "virtual:3ef5ba6e611b0ddea09fa2e8d13e5f0af1b65a58c6bcced26ff7fc21d2e144a8eef02fa4f8d0fdfdb869ac1c3efebc364ac1a256779384e56ea3d33438d27b7f#npm:7.2.1"]\
        ],\
        "packagePeers": [\
          "react"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["undici-types", [\
      ["npm:7.16.0", {\
        "packageLocation": "./.yarn/cache/undici-types-npm-7.16.0-0e23b08124-3033e2f2b5.zip/node_modules/undici-types/",\
        "packageDependencies": [\
          ["undici-types", "npm:7.16.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["unique-filename", [\
      ["npm:5.0.0", {\
        "packageLocation": "./.yarn/cache/unique-filename-npm-5.0.0-605f54f18e-afb897e9cf.zip/node_modules/unique-filename/",\
        "packageDependencies": [\
          ["unique-filename", "npm:5.0.0"],\
          ["unique-slug", "npm:6.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["unique-slug", [\
      ["npm:6.0.0", {\
        "packageLocation": "./.yarn/cache/unique-slug-npm-6.0.0-f26b186e99-da7ade4cb0.zip/node_modules/unique-slug/",\
        "packageDependencies": [\
          ["imurmurhash", "npm:0.1.4"],\
          ["unique-slug", "npm:6.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["update-browserslist-db", [\
      ["npm:1.2.3", {\
        "packageLocation": "./.yarn/cache/update-browserslist-db-npm-1.2.3-de1d320326-13a00355ea.zip/node_modules/update-browserslist-db/",\
        "packageDependencies": [\
          ["update-browserslist-db", "npm:1.2.3"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:e455c4c2e8dc3f3e2b2f64927f2b0dff7ca09ff7730ccbb69cae3e9342c0b24fae16e40b2aa46a2b677c172a1365ba425382266fccbf1e96179eec79a4a5c294#npm:1.2.3", {\
        "packageLocation": "./.yarn/__virtual__/update-browserslist-db-virtual-ec2db3efcb/0/cache/update-browserslist-db-npm-1.2.3-de1d320326-13a00355ea.zip/node_modules/update-browserslist-db/",\
        "packageDependencies": [\
          ["@types/browserslist", null],\
          ["browserslist", "npm:4.28.1"],\
          ["escalade", "npm:3.2.0"],\
          ["picocolors", "npm:1.1.1"],\
          ["update-browserslist-db", "virtual:e455c4c2e8dc3f3e2b2f64927f2b0dff7ca09ff7730ccbb69cae3e9342c0b24fae16e40b2aa46a2b677c172a1365ba425382266fccbf1e96179eec79a4a5c294#npm:1.2.3"]\
        ],\
        "packagePeers": [\
          "@types/browserslist",\
          "browserslist"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["uri-js", [\
      ["npm:4.4.1", {\
        "packageLocation": "./.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-4ef57b45aa.zip/node_modules/uri-js/",\
        "packageDependencies": [\
          ["punycode", "npm:2.3.1"],\
          ["uri-js", "npm:4.4.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["vite", [\
      ["npm:7.3.1", {\
        "packageLocation": "./.yarn/cache/vite-npm-7.3.1-330baf2f0d-5c7548f5f4.zip/node_modules/vite/",\
        "packageDependencies": [\
          ["vite", "npm:7.3.1"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.3.1", {\
        "packageLocation": "./.yarn/__virtual__/vite-virtual-1856be0afd/0/cache/vite-npm-7.3.1-330baf2f0d-5c7548f5f4.zip/node_modules/vite/",\
        "packageDependencies": [\
          ["@types/jiti", null],\
          ["@types/less", null],\
          ["@types/lightningcss", null],\
          ["@types/node", "npm:24.11.0"],\
          ["@types/sass", null],\
          ["@types/sass-embedded", null],\
          ["@types/stylus", null],\
          ["@types/sugarss", null],\
          ["@types/terser", null],\
          ["@types/tsx", null],\
          ["@types/yaml", null],\
          ["esbuild", "npm:0.27.3"],\
          ["fdir", "virtual:0e783aadbd2b4b8e6f6056033c0b290501892d23bc7c5dad5477e00e48ad8bd3e4434c3962a52dd75a58e06dbb7218094a494bac954ef2f7f6fdb65d9717e5f4#npm:6.5.0"],\
          ["fsevents", "patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"],\
          ["jiti", null],\
          ["less", null],\
          ["lightningcss", null],\
          ["picomatch", "npm:4.0.3"],\
          ["postcss", "npm:8.5.6"],\
          ["rollup", "npm:4.59.0"],\
          ["sass", null],\
          ["sass-embedded", null],\
          ["stylus", null],\
          ["sugarss", null],\
          ["terser", null],\
          ["tinyglobby", "npm:0.2.15"],\
          ["tsx", null],\
          ["vite", "virtual:ae939b5bf1c4da31987d1d461851d6cc956667f76e9d6d3a45643e06af20bf533b9bcec6bab70ed0ca795aebf9ce43b3ed74bd20004783b74b2a0cc963cd86b8#npm:7.3.1"],\
          ["yaml", "npm:2.8.2"]\
        ],\
        "packagePeers": [\
          "@types/jiti",\
          "@types/less",\
          "@types/lightningcss",\
          "@types/node",\
          "@types/sass-embedded",\
          "@types/sass",\
          "@types/stylus",\
          "@types/sugarss",\
          "@types/terser",\
          "@types/tsx",\
          "@types/yaml",\
          "jiti",\
          "less",\
          "lightningcss",\
          "sass-embedded",\
          "sass",\
          "stylus",\
          "sugarss",\
          "terser",\
          "tsx",\
          "yaml"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["warning", [\
      ["npm:4.0.3", {\
        "packageLocation": "./.yarn/cache/warning-npm-4.0.3-291e921d6d-aebab44512.zip/node_modules/warning/",\
        "packageDependencies": [\
          ["loose-envify", "npm:1.4.0"],\
          ["warning", "npm:4.0.3"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["which", [\
      ["npm:2.0.2", {\
        "packageLocation": "./.yarn/cache/which-npm-2.0.2-320ddf72f7-66522872a7.zip/node_modules/which/",\
        "packageDependencies": [\
          ["isexe", "npm:2.0.0"],\
          ["which", "npm:2.0.2"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:6.0.1", {\
        "packageLocation": "./.yarn/cache/which-npm-6.0.1-afc3b2db90-7e710e54ea.zip/node_modules/which/",\
        "packageDependencies": [\
          ["isexe", "npm:4.0.0"],\
          ["which", "npm:6.0.1"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["word-wrap", [\
      ["npm:1.2.5", {\
        "packageLocation": "./.yarn/cache/word-wrap-npm-1.2.5-42d00c4b09-e0e4a1ca27.zip/node_modules/word-wrap/",\
        "packageDependencies": [\
          ["word-wrap", "npm:1.2.5"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["ws", [\
      ["npm:8.21.3", {\
        "packageLocation": "./.yarn/cache/ws-npm-8.21.3-63c47e1f60-7b28dc2863.zip/node_modules/ws/",\
        "packageDependencies": [\
          ["ws", "npm:8.21.3"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:8.21.3", {\
        "packageLocation": "./.yarn/__virtual__/ws-virtual-097af440a8/0/cache/ws-npm-8.21.3-63c47e1f60-7b28dc2863.zip/node_modules/ws/",\
        "packageDependencies": [\
          ["@types/bufferutil", null],\
          ["@types/utf-8-validate", null],\
          ["bufferutil", null],\
          ["utf-8-validate", null],\
          ["ws", "virtual:fd14f4b531a5a95a85dc33ff712d35b53c356fa12f6734083978806651903eae60196105e71a7d037cf3aeffe0d9c55861ee577971d38735aba6ad2f7a34a45a#npm:8.21.3"]\
        ],\
        "packagePeers": [\
          "@types/bufferutil",\
          "@types/utf-8-validate",\
          "bufferutil",\
          "utf-8-validate"\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["xmlhttprequest-ssl", [\
      ["npm:2.1.2", {\
        "packageLocation": "./.yarn/cache/xmlhttprequest-ssl-npm-2.1.2-7d8e3817bc-70d6086932.zip/node_modules/xmlhttprequest-ssl/",\
        "packageDependencies": [\
          ["xmlhttprequest-ssl", "npm:2.1.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["yallist", [\
      ["npm:3.1.1", {\
        "packageLocation": "./.yarn/cache/yallist-npm-3.1.1-a568a556b4-c66a5c46bc.zip/node_modules/yallist/",\
        "packageDependencies": [\
          ["yallist", "npm:3.1.1"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:4.0.0", {\
        "packageLocation": "./.yarn/cache/yallist-npm-4.0.0-b493d9e907-2286b5e8db.zip/node_modules/yallist/",\
        "packageDependencies": [\
          ["yallist", "npm:4.0.0"]\
        ],\
        "linkType": "HARD"\
      }],\
      ["npm:5.0.0", {\
        "packageLocation": "./.yarn/cache/yallist-npm-5.0.0-8732dd9f1c-a499c81ce6.zip/node_modules/yallist/",\
        "packageDependencies": [\
          ["yallist", "npm:5.0.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["yaml", [\
      ["npm:2.8.2", {\
        "packageLocation": "./.yarn/cache/yaml-npm-2.8.2-6cbf7c73c4-703e4dc1e3.zip/node_modules/yaml/",\
        "packageDependencies": [\
          ["yaml", "npm:2.8.2"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["yocto-queue", [\
      ["npm:0.1.0", {\
        "packageLocation": "./.yarn/cache/yocto-queue-npm-0.1.0-c6c9a7db29-dceb44c285.zip/node_modules/yocto-queue/",\
        "packageDependencies": [\
          ["yocto-queue", "npm:0.1.0"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["zod", [\
      ["npm:4.3.6", {\
        "packageLocation": "./.yarn/cache/zod-npm-4.3.6-a096e305e6-860d25a81a.zip/node_modules/zod/",\
        "packageDependencies": [\
          ["zod", "npm:4.3.6"]\
        ],\
        "linkType": "HARD"\
      }]\
    ]],\
    ["zod-validation-error", [\
      ["npm:4.0.2", {\
        "packageLocation": "./.yarn/cache/zod-validation-error-npm-4.0.2-1b963160c8-0ccfec48c4.zip/node_modules/zod-validation-error/",\
        "packageDependencies": [\
          ["zod-validation-error", "npm:4.0.2"]\
        ],\
        "linkType": "SOFT"\
      }],\
      ["virtual:ac76d8014e7602f4a23a1f2d8138ec1a0ee848998d3753b4eb36bf1820cabd20a1fc4cbf4f3b7df871d4d62268688cb64f8e54a7eb73f7c9eadc130d4b335a45#npm:4.0.2", {\
        "packageLocation": "./.yarn/__virtual__/zod-validation-error-virtual-e1632f4bf2/0/cache/zod-validation-error-npm-4.0.2-1b963160c8-0ccfec48c4.zip/node_modules/zod-validation-error/",\
        "packageDependencies": [\
          ["@types/zod", null],\
          ["zod", "npm:4.3.6"],\
          ["zod-validation-error", "virtual:ac76d8014e7602f4a23a1f2d8138ec1a0ee848998d3753b4eb36bf1820cabd20a1fc4cbf4f3b7df871d4d62268688cb64f8e54a7eb73f7c9eadc130d4b335a45#npm:4.0.2"]\
        ],\
        "packagePeers": [\
          "@types/zod",\
          "zod"\
        ],\
        "linkType": "HARD"\
      }]\
    ]]\
  ]\
}';

function $$SETUP_STATE(hydrateRuntimeState, basePath) {
  return hydrateRuntimeState(JSON.parse(RAW_RUNTIME_STATE), {
    basePath: basePath || __dirname,
  });
}

const fs = require("fs");
const path = require("path");
const crypto = require("crypto");
const os = require("os");
const events = require("events");
const nodeUtils = require("util");
const stream = require("stream");
const zlib = require("zlib");
const require$$0 = require("module");
const StringDecoder = require("string_decoder");
const url = require("url");
const buffer = require("buffer");
const readline = require("readline");
const assert = require("assert");

const _interopDefaultLegacy = (e) =>
  e && typeof e === "object" && "default" in e ? e : { default: e };

function _interopNamespace(e) {
  if (e && e.__esModule) return e;
  const n = Object.create(null);
  if (e) {
    for (const k in e) {
      if (k !== "default") {
        const d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(
          n,
          k,
          d.get
            ? d
            : {
                enumerable: true,
                get: () => e[k],
              },
        );
      }
    }
  }
  n.default = e;
  return Object.freeze(n);
}

const fs__default = /*#__PURE__*/ _interopDefaultLegacy(fs);
const path__default = /*#__PURE__*/ _interopDefaultLegacy(path);
const nodeUtils__namespace = /*#__PURE__*/ _interopNamespace(nodeUtils);
const zlib__default = /*#__PURE__*/ _interopDefaultLegacy(zlib);
const require$$0__default = /*#__PURE__*/ _interopDefaultLegacy(require$$0);
const StringDecoder__default =
  /*#__PURE__*/ _interopDefaultLegacy(StringDecoder);
const buffer__default = /*#__PURE__*/ _interopDefaultLegacy(buffer);
const assert__default = /*#__PURE__*/ _interopDefaultLegacy(assert);

const S_IFMT = 61440;
const S_IFDIR = 16384;
const S_IFREG = 32768;
const S_IFLNK = 40960;
const SAFE_TIME = 456789e3;

function makeError$1(code, message) {
  return Object.assign(new Error(`${code}: ${message}`), { code });
}
function EBUSY(message) {
  return makeError$1(`EBUSY`, message);
}
function ENOSYS(message, reason) {
  return makeError$1(`ENOSYS`, `${message}, ${reason}`);
}
function EINVAL(reason) {
  return makeError$1(`EINVAL`, `invalid argument, ${reason}`);
}
function EBADF(reason) {
  return makeError$1(`EBADF`, `bad file descriptor, ${reason}`);
}
function ENOENT(reason) {
  return makeError$1(`ENOENT`, `no such file or directory, ${reason}`);
}
function ENOTDIR(reason) {
  return makeError$1(`ENOTDIR`, `not a directory, ${reason}`);
}
function EISDIR(reason) {
  return makeError$1(`EISDIR`, `illegal operation on a directory, ${reason}`);
}
function EEXIST(reason) {
  return makeError$1(`EEXIST`, `file already exists, ${reason}`);
}
function EROFS(reason) {
  return makeError$1(`EROFS`, `read-only filesystem, ${reason}`);
}
function ENOTEMPTY(reason) {
  return makeError$1(`ENOTEMPTY`, `directory not empty, ${reason}`);
}
function EOPNOTSUPP(reason) {
  return makeError$1(`EOPNOTSUPP`, `operation not supported, ${reason}`);
}
function ERR_DIR_CLOSED() {
  return makeError$1(`ERR_DIR_CLOSED`, `Directory handle was closed`);
}

const DEFAULT_MODE = S_IFREG | 420;
class StatEntry {
  uid = 0;
  gid = 0;
  size = 0;
  blksize = 0;
  atimeMs = 0;
  mtimeMs = 0;
  ctimeMs = 0;
  birthtimeMs = 0;
  atime = /* @__PURE__ */ new Date(0);
  mtime = /* @__PURE__ */ new Date(0);
  ctime = /* @__PURE__ */ new Date(0);
  birthtime = /* @__PURE__ */ new Date(0);
  dev = 0;
  ino = 0;
  mode = DEFAULT_MODE;
  nlink = 1;
  rdev = 0;
  blocks = 1;
  isBlockDevice() {
    return false;
  }
  isCharacterDevice() {
    return false;
  }
  isDirectory() {
    return (this.mode & S_IFMT) === S_IFDIR;
  }
  isFIFO() {
    return false;
  }
  isFile() {
    return (this.mode & S_IFMT) === S_IFREG;
  }
  isSocket() {
    return false;
  }
  isSymbolicLink() {
    return (this.mode & S_IFMT) === S_IFLNK;
  }
}
class BigIntStatsEntry {
  uid = BigInt(0);
  gid = BigInt(0);
  size = BigInt(0);
  blksize = BigInt(0);
  atimeMs = BigInt(0);
  mtimeMs = BigInt(0);
  ctimeMs = BigInt(0);
  birthtimeMs = BigInt(0);
  atimeNs = BigInt(0);
  mtimeNs = BigInt(0);
  ctimeNs = BigInt(0);
  birthtimeNs = BigInt(0);
  atime = /* @__PURE__ */ new Date(0);
  mtime = /* @__PURE__ */ new Date(0);
  ctime = /* @__PURE__ */ new Date(0);
  birthtime = /* @__PURE__ */ new Date(0);
  dev = BigInt(0);
  ino = BigInt(0);
  mode = BigInt(DEFAULT_MODE);
  nlink = BigInt(1);
  rdev = BigInt(0);
  blocks = BigInt(1);
  isBlockDevice() {
    return false;
  }
  isCharacterDevice() {
    return false;
  }
  isDirectory() {
    return (this.mode & BigInt(S_IFMT)) === BigInt(S_IFDIR);
  }
  isFIFO() {
    return false;
  }
  isFile() {
    return (this.mode & BigInt(S_IFMT)) === BigInt(S_IFREG);
  }
  isSocket() {
    return false;
  }
  isSymbolicLink() {
    return (this.mode & BigInt(S_IFMT)) === BigInt(S_IFLNK);
  }
}
function makeDefaultStats() {
  return new StatEntry();
}
function clearStats(stats) {
  for (const key in stats) {
    if (Object.hasOwn(stats, key)) {
      const element = stats[key];
      if (typeof element === `number`) {
        stats[key] = 0;
      } else if (typeof element === `bigint`) {
        stats[key] = BigInt(0);
      } else if (nodeUtils__namespace.types.isDate(element)) {
        stats[key] = /* @__PURE__ */ new Date(0);
      }
    }
  }
  return stats;
}
function convertToBigIntStats(stats) {
  const bigintStats = new BigIntStatsEntry();
  for (const key in stats) {
    if (Object.hasOwn(stats, key)) {
      const element = stats[key];
      if (typeof element === `number`) {
        bigintStats[key] = BigInt(element);
      } else if (nodeUtils__namespace.types.isDate(element)) {
        bigintStats[key] = new Date(element);
      }
    }
  }
  bigintStats.atimeNs = bigintStats.atimeMs * BigInt(1e6);
  bigintStats.mtimeNs = bigintStats.mtimeMs * BigInt(1e6);
  bigintStats.ctimeNs = bigintStats.ctimeMs * BigInt(1e6);
  bigintStats.birthtimeNs = bigintStats.birthtimeMs * BigInt(1e6);
  return bigintStats;
}
function areStatsEqual(a, b) {
  if (a.atimeMs !== b.atimeMs) return false;
  if (a.birthtimeMs !== b.birthtimeMs) return false;
  if (a.blksize !== b.blksize) return false;
  if (a.blocks !== b.blocks) return false;
  if (a.ctimeMs !== b.ctimeMs) return false;
  if (a.dev !== b.dev) return false;
  if (a.gid !== b.gid) return false;
  if (a.ino !== b.ino) return false;
  if (a.isBlockDevice() !== b.isBlockDevice()) return false;
  if (a.isCharacterDevice() !== b.isCharacterDevice()) return false;
  if (a.isDirectory() !== b.isDirectory()) return false;
  if (a.isFIFO() !== b.isFIFO()) return false;
  if (a.isFile() !== b.isFile()) return false;
  if (a.isSocket() !== b.isSocket()) return false;
  if (a.isSymbolicLink() !== b.isSymbolicLink()) return false;
  if (a.mode !== b.mode) return false;
  if (a.mtimeMs !== b.mtimeMs) return false;
  if (a.nlink !== b.nlink) return false;
  if (a.rdev !== b.rdev) return false;
  if (a.size !== b.size) return false;
  if (a.uid !== b.uid) return false;
  const aN = a;
  const bN = b;
  if (aN.atimeNs !== bN.atimeNs) return false;
  if (aN.mtimeNs !== bN.mtimeNs) return false;
  if (aN.ctimeNs !== bN.ctimeNs) return false;
  if (aN.birthtimeNs !== bN.birthtimeNs) return false;
  return true;
}

const PortablePath = {
  root: `/`,
  dot: `.`,
  parent: `..`,
};
const Filename = {
  home: `~`,
  nodeModules: `node_modules`,
  manifest: `package.json`,
  lockfile: `yarn.lock`,
  virtual: `__virtual__`,
  /**
   * @deprecated
   */
  pnpJs: `.pnp.js`,
  pnpCjs: `.pnp.cjs`,
  pnpData: `.pnp.data.json`,
  pnpEsmLoader: `.pnp.loader.mjs`,
  rc: `.yarnrc.yml`,
  env: `.env`,
};
const npath = Object.create(path__default.default);
const ppath = Object.create(path__default.default.posix);
npath.cwd = () => process.cwd();
ppath.cwd =
  process.platform === `win32`
    ? () => toPortablePath(process.cwd())
    : process.cwd;
if (process.platform === `win32`) {
  ppath.resolve = (...segments) => {
    if (segments.length > 0 && ppath.isAbsolute(segments[0])) {
      return path__default.default.posix.resolve(...segments);
    } else {
      return path__default.default.posix.resolve(ppath.cwd(), ...segments);
    }
  };
}
const contains = function (pathUtils, from, to) {
  from = pathUtils.normalize(from);
  to = pathUtils.normalize(to);
  if (from === to) return `.`;
  if (!from.endsWith(pathUtils.sep)) from = from + pathUtils.sep;
  if (to.startsWith(from)) {
    return to.slice(from.length);
  } else {
    return null;
  }
};
npath.contains = (from, to) => contains(npath, from, to);
ppath.contains = (from, to) => contains(ppath, from, to);
const WINDOWS_PATH_REGEXP = /^([a-zA-Z]:.*)$/;
const UNC_WINDOWS_PATH_REGEXP = /^\/\/(\.\/)?(.*)$/;
const PORTABLE_PATH_REGEXP = /^\/([a-zA-Z]:.*)$/;
const UNC_PORTABLE_PATH_REGEXP = /^\/unc\/(\.dot\/)?(.*)$/;
function fromPortablePathWin32(p) {
  let portablePathMatch, uncPortablePathMatch;
  if ((portablePathMatch = p.match(PORTABLE_PATH_REGEXP)))
    p = portablePathMatch[1];
  else if ((uncPortablePathMatch = p.match(UNC_PORTABLE_PATH_REGEXP)))
    p = `\\\\${uncPortablePathMatch[1] ? `.\\` : ``}${uncPortablePathMatch[2]}`;
  else return p;
  return p.replace(/\//g, `\\`);
}
function toPortablePathWin32(p) {
  p = p.replace(/\\/g, `/`);
  let windowsPathMatch, uncWindowsPathMatch;
  if ((windowsPathMatch = p.match(WINDOWS_PATH_REGEXP)))
    p = `/${windowsPathMatch[1]}`;
  else if ((uncWindowsPathMatch = p.match(UNC_WINDOWS_PATH_REGEXP)))
    p = `/unc/${uncWindowsPathMatch[1] ? `.dot/` : ``}${uncWindowsPathMatch[2]}`;
  return p;
}
const toPortablePath =
  process.platform === `win32` ? toPortablePathWin32 : (p) => p;
const fromPortablePath =
  process.platform === `win32` ? fromPortablePathWin32 : (p) => p;
npath.fromPortablePath = fromPortablePath;
npath.toPortablePath = toPortablePath;
function convertPath(targetPathUtils, sourcePath) {
  return targetPathUtils === npath
    ? fromPortablePath(sourcePath)
    : toPortablePath(sourcePath);
}

const defaultTime = new Date(SAFE_TIME * 1e3);
const defaultTimeMs = defaultTime.getTime();
async function copyPromise(destinationFs, destination, sourceFs, source, opts) {
  const normalizedDestination = destinationFs.pathUtils.normalize(destination);
  const normalizedSource = sourceFs.pathUtils.normalize(source);
  const prelayout = [];
  const postlayout = [];
  const { atime, mtime } = opts.stableTime
    ? { atime: defaultTime, mtime: defaultTime }
    : await sourceFs.lstatPromise(normalizedSource);
  await destinationFs.mkdirpPromise(
    destinationFs.pathUtils.dirname(destination),
    { utimes: [atime, mtime] },
  );
  await copyImpl(
    prelayout,
    postlayout,
    destinationFs,
    normalizedDestination,
    sourceFs,
    normalizedSource,
    { ...opts, didParentExist: true },
  );
  for (const operation of prelayout) await operation();
  await Promise.all(
    postlayout.map((operation) => {
      return operation();
    }),
  );
}
async function copyImpl(
  prelayout,
  postlayout,
  destinationFs,
  destination,
  sourceFs,
  source,
  opts,
) {
  const destinationStat = opts.didParentExist
    ? await maybeLStat(destinationFs, destination)
    : null;
  const sourceStat = await sourceFs.lstatPromise(source);
  const { atime, mtime } = opts.stableTime
    ? { atime: defaultTime, mtime: defaultTime }
    : sourceStat;
  let updated;
  switch (true) {
    case sourceStat.isDirectory():
      {
        updated = await copyFolder(
          prelayout,
          postlayout,
          destinationFs,
          destination,
          destinationStat,
          sourceFs,
          source,
          sourceStat,
          opts,
        );
      }
      break;
    case sourceStat.isFile():
      {
        updated = await copyFile(
          prelayout,
          postlayout,
          destinationFs,
          destination,
          destinationStat,
          sourceFs,
          source,
          sourceStat,
          opts,
        );
      }
      break;
    case sourceStat.isSymbolicLink():
      {
        updated = await copySymlink(
          prelayout,
          postlayout,
          destinationFs,
          destination,
          destinationStat,
          sourceFs,
          source,
          sourceStat,
          opts,
        );
      }
      break;
    default: {
      throw new Error(`Unsupported file type (${sourceStat.mode})`);
    }
  }
  if (opts.linkStrategy?.type !== `HardlinkFromIndex` || !sourceStat.isFile()) {
    if (
      updated ||
      destinationStat?.mtime?.getTime() !== mtime.getTime() ||
      destinationStat?.atime?.getTime() !== atime.getTime()
    ) {
      postlayout.push(() =>
        destinationFs.lutimesPromise(destination, atime, mtime),
      );
      updated = true;
    }
    if (
      destinationStat === null ||
      (destinationStat.mode & 511) !== (sourceStat.mode & 511)
    ) {
      postlayout.push(() =>
        destinationFs.chmodPromise(destination, sourceStat.mode & 511),
      );
      updated = true;
    }
  }
  return updated;
}
async function maybeLStat(baseFs, p) {
  try {
    return await baseFs.lstatPromise(p);
  } catch {
    return null;
  }
}
async function copyFolder(
  prelayout,
  postlayout,
  destinationFs,
  destination,
  destinationStat,
  sourceFs,
  source,
  sourceStat,
  opts,
) {
  if (destinationStat !== null && !destinationStat.isDirectory()) {
    if (opts.overwrite) {
      prelayout.push(async () => destinationFs.removePromise(destination));
      destinationStat = null;
    } else {
      return false;
    }
  }
  let updated = false;
  if (destinationStat === null) {
    prelayout.push(async () => {
      try {
        await destinationFs.mkdirPromise(destination, {
          mode: sourceStat.mode,
        });
      } catch (err) {
        if (err.code !== `EEXIST`) {
          throw err;
        }
      }
    });
    updated = true;
  }
  const entries = await sourceFs.readdirPromise(source);
  const nextOpts =
    opts.didParentExist && !destinationStat
      ? { ...opts, didParentExist: false }
      : opts;
  if (opts.stableSort) {
    for (const entry of entries.sort()) {
      if (
        await copyImpl(
          prelayout,
          postlayout,
          destinationFs,
          destinationFs.pathUtils.join(destination, entry),
          sourceFs,
          sourceFs.pathUtils.join(source, entry),
          nextOpts,
        )
      ) {
        updated = true;
      }
    }
  } else {
    const entriesUpdateStatus = await Promise.all(
      entries.map(async (entry) => {
        await copyImpl(
          prelayout,
          postlayout,
          destinationFs,
          destinationFs.pathUtils.join(destination, entry),
          sourceFs,
          sourceFs.pathUtils.join(source, entry),
          nextOpts,
        );
      }),
    );
    if (entriesUpdateStatus.some((status) => status)) {
      updated = true;
    }
  }
  return updated;
}
async function copyFileViaIndex(
  prelayout,
  postlayout,
  destinationFs,
  destination,
  destinationStat,
  sourceFs,
  source,
  sourceStat,
  opts,
  linkStrategy,
) {
  const sourceHash = await sourceFs.checksumFilePromise(source, {
    algorithm: `sha1`,
  });
  const defaultMode = 420;
  const sourceMode = sourceStat.mode & 511;
  const indexFileName = `${sourceHash}${sourceMode !== defaultMode ? sourceMode.toString(8) : ``}`;
  const indexPath = destinationFs.pathUtils.join(
    linkStrategy.indexPath,
    sourceHash.slice(0, 2),
    `${indexFileName}.dat`,
  );
  let AtomicBehavior;
  ((AtomicBehavior2) => {
    AtomicBehavior2[(AtomicBehavior2["Lock"] = 0)] = "Lock";
    AtomicBehavior2[(AtomicBehavior2["Rename"] = 1)] = "Rename";
  })(AtomicBehavior || (AtomicBehavior = {}));
  let atomicBehavior = 1; /* Rename */
  let indexStat = await maybeLStat(destinationFs, indexPath);
  if (destinationStat) {
    const isDestinationHardlinkedFromIndex =
      indexStat &&
      destinationStat.dev === indexStat.dev &&
      destinationStat.ino === indexStat.ino;
    const isIndexModified = indexStat?.mtimeMs !== defaultTimeMs;
    if (isDestinationHardlinkedFromIndex) {
      if (isIndexModified && linkStrategy.autoRepair) {
        atomicBehavior = 0; /* Lock */
        indexStat = null;
      }
    }
    if (!isDestinationHardlinkedFromIndex) {
      if (opts.overwrite) {
        prelayout.push(async () => destinationFs.removePromise(destination));
        destinationStat = null;
      } else {
        return false;
      }
    }
  }
  const tempPath =
    !indexStat && atomicBehavior === 1 /* Rename */
      ? `${indexPath}.${Math.floor(Math.random() * 4294967296)
          .toString(16)
          .padStart(8, `0`)}`
      : null;
  let tempPathCleaned = false;
  prelayout.push(async () => {
    if (!indexStat) {
      if (atomicBehavior === 0 /* Lock */) {
        await destinationFs.lockPromise(indexPath, async () => {
          const content = await sourceFs.readFilePromise(source);
          await destinationFs.writeFilePromise(indexPath, content);
        });
      }
      if (atomicBehavior === 1 /* Rename */ && tempPath) {
        const content = await sourceFs.readFilePromise(source);
        await destinationFs.writeFilePromise(tempPath, content);
        try {
          await destinationFs.linkPromise(tempPath, indexPath);
        } catch (err) {
          if (err.code === `EEXIST`) {
            tempPathCleaned = true;
            await destinationFs.unlinkPromise(tempPath);
          } else {
            throw err;
          }
        }
      }
    }
    if (!destinationStat) {
      await destinationFs.linkPromise(indexPath, destination);
    }
  });
  postlayout.push(async () => {
    if (!indexStat) {
      await destinationFs.lutimesPromise(indexPath, defaultTime, defaultTime);
      if (sourceMode !== defaultMode) {
        await destinationFs.chmodPromise(indexPath, sourceMode);
      }
    }
    if (tempPath && !tempPathCleaned) {
      await destinationFs.unlinkPromise(tempPath);
    }
  });
  return false;
}
async function copyFileDirect(
  prelayout,
  postlayout,
  destinationFs,
  destination,
  destinationStat,
  sourceFs,
  source,
  sourceStat,
  opts,
) {
  if (destinationStat !== null) {
    if (opts.overwrite) {
      prelayout.push(async () => destinationFs.removePromise(destination));
      destinationStat = null;
    } else {
      return false;
    }
  }
  prelayout.push(async () => {
    const content = await sourceFs.readFilePromise(source);
    await destinationFs.writeFilePromise(destination, content);
  });
  return true;
}
async function copyFile(
  prelayout,
  postlayout,
  destinationFs,
  destination,
  destinationStat,
  sourceFs,
  source,
  sourceStat,
  opts,
) {
  if (opts.linkStrategy?.type === `HardlinkFromIndex`) {
    return copyFileViaIndex(
      prelayout,
      postlayout,
      destinationFs,
      destination,
      destinationStat,
      sourceFs,
      source,
      sourceStat,
      opts,
      opts.linkStrategy,
    );
  } else {
    return copyFileDirect(
      prelayout,
      postlayout,
      destinationFs,
      destination,
      destinationStat,
      sourceFs,
      source,
      sourceStat,
      opts,
    );
  }
}
async function copySymlink(
  prelayout,
  postlayout,
  destinationFs,
  destination,
  destinationStat,
  sourceFs,
  source,
  sourceStat,
  opts,
) {
  if (destinationStat !== null) {
    if (opts.overwrite) {
      prelayout.push(async () => destinationFs.removePromise(destination));
      destinationStat = null;
    } else {
      return false;
    }
  }
  prelayout.push(async () => {
    await destinationFs.symlinkPromise(
      convertPath(
        destinationFs.pathUtils,
        await sourceFs.readlinkPromise(source),
      ),
      destination,
    );
  });
  return true;
}

class CustomDir {
  constructor(path, nextDirent, opts = {}) {
    this.path = path;
    this.nextDirent = nextDirent;
    this.opts = opts;
  }
  closed = false;
  throwIfClosed() {
    if (this.closed) {
      throw ERR_DIR_CLOSED();
    }
  }
  async *[Symbol.asyncIterator]() {
    try {
      let dirent;
      while ((dirent = await this.read()) !== null) {
        yield dirent;
      }
    } finally {
      await this.close();
    }
  }
  read(cb) {
    const dirent = this.readSync();
    if (typeof cb !== `undefined`) return cb(null, dirent);
    return Promise.resolve(dirent);
  }
  readSync() {
    this.throwIfClosed();
    return this.nextDirent();
  }
  close(cb) {
    this.closeSync();
    if (typeof cb !== `undefined`) return cb(null);
    return Promise.resolve();
  }
  closeSync() {
    this.throwIfClosed();
    this.opts.onClose?.();
    this.closed = true;
  }
}
function opendir(fakeFs, path, entries, opts) {
  const nextDirent = () => {
    const filename = entries.shift();
    if (typeof filename === `undefined`) return null;
    const entryPath = fakeFs.pathUtils.join(path, filename);
    return Object.assign(fakeFs.statSync(entryPath), {
      name: filename,
      path: void 0,
    });
  };
  return new CustomDir(path, nextDirent, opts);
}

function assertStatus(current, expected) {
  if (current !== expected) {
    throw new Error(
      `Invalid StatWatcher status: expected '${expected}', got '${current}'`,
    );
  }
}
class CustomStatWatcher extends events.EventEmitter {
  fakeFs;
  path;
  bigint;
  status = "ready"; /* Ready */
  changeListeners = /* @__PURE__ */ new Map();
  lastStats;
  startTimeout = null;
  static create(fakeFs, path, opts) {
    const statWatcher = new CustomStatWatcher(fakeFs, path, opts);
    statWatcher.start();
    return statWatcher;
  }
  constructor(fakeFs, path, { bigint = false } = {}) {
    super();
    this.fakeFs = fakeFs;
    this.path = path;
    this.bigint = bigint;
    this.lastStats = this.stat();
  }
  start() {
    assertStatus(this.status, "ready" /* Ready */);
    this.status = "running"; /* Running */
    this.startTimeout = setTimeout(() => {
      this.startTimeout = null;
      if (!this.fakeFs.existsSync(this.path)) {
        this.emit("change" /* Change */, this.lastStats, this.lastStats);
      }
    }, 3);
  }
  stop() {
    assertStatus(this.status, "running" /* Running */);
    this.status = "stopped"; /* Stopped */
    if (this.startTimeout !== null) {
      clearTimeout(this.startTimeout);
      this.startTimeout = null;
    }
    this.emit("stop" /* Stop */);
  }
  stat() {
    try {
      return this.fakeFs.statSync(this.path, { bigint: this.bigint });
    } catch {
      const statInstance = this.bigint
        ? new BigIntStatsEntry()
        : new StatEntry();
      return clearStats(statInstance);
    }
  }
  /**
   * Creates an interval whose callback compares the current stats with the previous stats and notifies all listeners in case of changes.
   *
   * @param opts.persistent Decides whether the interval should be immediately unref-ed.
   */
  makeInterval(opts) {
    const interval = setInterval(() => {
      const currentStats = this.stat();
      const previousStats = this.lastStats;
      if (areStatsEqual(currentStats, previousStats)) return;
      this.lastStats = currentStats;
      this.emit("change" /* Change */, currentStats, previousStats);
    }, opts.interval);
    return opts.persistent ? interval : interval.unref();
  }
  /**
   * Registers a listener and assigns it an interval.
   */
  registerChangeListener(listener, opts) {
    this.addListener("change" /* Change */, listener);
    this.changeListeners.set(listener, this.makeInterval(opts));
  }
  /**
   * Unregisters the listener and clears the assigned interval.
   */
  unregisterChangeListener(listener) {
    this.removeListener("change" /* Change */, listener);
    const interval = this.changeListeners.get(listener);
    if (typeof interval !== `undefined`) clearInterval(interval);
    this.changeListeners.delete(listener);
  }
  /**
   * Unregisters all listeners and clears all assigned intervals.
   */
  unregisterAllChangeListeners() {
    for (const listener of this.changeListeners.keys()) {
      this.unregisterChangeListener(listener);
    }
  }
  hasChangeListeners() {
    return this.changeListeners.size > 0;
  }
  /**
   * Refs all stored intervals.
   */
  ref() {
    for (const interval of this.changeListeners.values()) interval.ref();
    return this;
  }
  /**
   * Unrefs all stored intervals.
   */
  unref() {
    for (const interval of this.changeListeners.values()) interval.unref();
    return this;
  }
}

const statWatchersByFakeFS = /* @__PURE__ */ new WeakMap();
function watchFile(fakeFs, path, a, b) {
  let bigint;
  let persistent;
  let interval;
  let listener;
  switch (typeof a) {
    case `function`:
      {
        bigint = false;
        persistent = true;
        interval = 5007;
        listener = a;
      }
      break;
    default:
      {
        ({ bigint = false, persistent = true, interval = 5007 } = a);
        listener = b;
      }
      break;
  }
  let statWatchers = statWatchersByFakeFS.get(fakeFs);
  if (typeof statWatchers === `undefined`)
    statWatchersByFakeFS.set(
      fakeFs,
      (statWatchers = /* @__PURE__ */ new Map()),
    );
  let statWatcher = statWatchers.get(path);
  if (typeof statWatcher === `undefined`) {
    statWatcher = CustomStatWatcher.create(fakeFs, path, { bigint });
    statWatchers.set(path, statWatcher);
  }
  statWatcher.registerChangeListener(listener, { persistent, interval });
  return statWatcher;
}
function unwatchFile(fakeFs, path, cb) {
  const statWatchers = statWatchersByFakeFS.get(fakeFs);
  if (typeof statWatchers === `undefined`) return;
  const statWatcher = statWatchers.get(path);
  if (typeof statWatcher === `undefined`) return;
  if (typeof cb === `undefined`) statWatcher.unregisterAllChangeListeners();
  else statWatcher.unregisterChangeListener(cb);
  if (!statWatcher.hasChangeListeners()) {
    statWatcher.stop();
    statWatchers.delete(path);
  }
}
function unwatchAllFiles(fakeFs) {
  const statWatchers = statWatchersByFakeFS.get(fakeFs);
  if (typeof statWatchers === `undefined`) return;
  for (const path of statWatchers.keys()) {
    unwatchFile(fakeFs, path);
  }
}

class FakeFS {
  pathUtils;
  constructor(pathUtils) {
    this.pathUtils = pathUtils;
  }
  async *genTraversePromise(init, { stableSort = false } = {}) {
    const stack = [init];
    while (stack.length > 0) {
      const p = stack.shift();
      const entry = await this.lstatPromise(p);
      if (entry.isDirectory()) {
        const entries = await this.readdirPromise(p);
        if (stableSort) {
          for (const entry2 of entries.sort()) {
            stack.push(this.pathUtils.join(p, entry2));
          }
        } else {
          throw new Error(`Not supported`);
        }
      } else {
        yield p;
      }
    }
  }
  async checksumFilePromise(path, { algorithm = `sha512` } = {}) {
    const fd = await this.openPromise(path, `r`);
    try {
      const CHUNK_SIZE = 65536;
      const chunk = Buffer.allocUnsafeSlow(CHUNK_SIZE);
      const hash = crypto.createHash(algorithm);
      let bytesRead = 0;
      while (
        (bytesRead = await this.readPromise(fd, chunk, 0, CHUNK_SIZE)) !== 0
      )
        hash.update(
          bytesRead === CHUNK_SIZE ? chunk : chunk.slice(0, bytesRead),
        );
      return hash.digest(`hex`);
    } finally {
      await this.closePromise(fd);
    }
  }
  async removePromise(p, { recursive = true, maxRetries = 5 } = {}) {
    let stat;
    try {
      stat = await this.lstatPromise(p);
    } catch (error) {
      if (error.code === `ENOENT`) {
        return;
      } else {
        throw error;
      }
    }
    if (stat.isDirectory()) {
      if (recursive) {
        const entries = await this.readdirPromise(p);
        await Promise.all(
          entries.map((entry) => {
            return this.removePromise(this.pathUtils.resolve(p, entry));
          }),
        );
      }
      for (let t = 0; t <= maxRetries; t++) {
        try {
          await this.rmdirPromise(p);
          break;
        } catch (error) {
          if (error.code !== `EBUSY` && error.code !== `ENOTEMPTY`) {
            throw error;
          } else if (t < maxRetries) {
            await new Promise((resolve) => setTimeout(resolve, t * 100));
          }
        }
      }
    } else {
      await this.unlinkPromise(p);
    }
  }
  removeSync(p, { recursive = true } = {}) {
    let stat;
    try {
      stat = this.lstatSync(p);
    } catch (error) {
      if (error.code === `ENOENT`) {
        return;
      } else {
        throw error;
      }
    }
    if (stat.isDirectory()) {
      if (recursive)
        for (const entry of this.readdirSync(p))
          this.removeSync(this.pathUtils.resolve(p, entry));
      this.rmdirSync(p);
    } else {
      this.unlinkSync(p);
    }
  }
  async mkdirpPromise(p, { chmod, utimes } = {}) {
    p = this.resolve(p);
    if (p === this.pathUtils.dirname(p)) return void 0;
    const parts = p.split(this.pathUtils.sep);
    let createdDirectory;
    for (let u = 2; u <= parts.length; ++u) {
      const subPath = parts.slice(0, u).join(this.pathUtils.sep);
      if (!this.existsSync(subPath)) {
        try {
          await this.mkdirPromise(subPath);
        } catch (error) {
          if (error.code === `EEXIST`) {
            continue;
          } else {
            throw error;
          }
        }
        createdDirectory ??= subPath;
        if (chmod != null) await this.chmodPromise(subPath, chmod);
        if (utimes != null) {
          await this.utimesPromise(subPath, utimes[0], utimes[1]);
        } else {
          const parentStat = await this.statPromise(
            this.pathUtils.dirname(subPath),
          );
          await this.utimesPromise(subPath, parentStat.atime, parentStat.mtime);
        }
      }
    }
    return createdDirectory;
  }
  mkdirpSync(p, { chmod, utimes } = {}) {
    p = this.resolve(p);
    if (p === this.pathUtils.dirname(p)) return void 0;
    const parts = p.split(this.pathUtils.sep);
    let createdDirectory;
    for (let u = 2; u <= parts.length; ++u) {
      const subPath = parts.slice(0, u).join(this.pathUtils.sep);
      if (!this.existsSync(subPath)) {
        try {
          this.mkdirSync(subPath);
        } catch (error) {
          if (error.code === `EEXIST`) {
            continue;
          } else {
            throw error;
          }
        }
        createdDirectory ??= subPath;
        if (chmod != null) this.chmodSync(subPath, chmod);
        if (utimes != null) {
          this.utimesSync(subPath, utimes[0], utimes[1]);
        } else {
          const parentStat = this.statSync(this.pathUtils.dirname(subPath));
          this.utimesSync(subPath, parentStat.atime, parentStat.mtime);
        }
      }
    }
    return createdDirectory;
  }
  async copyPromise(
    destination,
    source,
    {
      baseFs = this,
      overwrite = true,
      stableSort = false,
      stableTime = false,
      linkStrategy = null,
    } = {},
  ) {
    return await copyPromise(this, destination, baseFs, source, {
      overwrite,
      stableSort,
      stableTime,
      linkStrategy,
    });
  }
  copySync(destination, source, { baseFs = this, overwrite = true } = {}) {
    const stat = baseFs.lstatSync(source);
    const exists = this.existsSync(destination);
    if (stat.isDirectory()) {
      this.mkdirpSync(destination);
      const directoryListing = baseFs.readdirSync(source);
      for (const entry of directoryListing) {
        this.copySync(
          this.pathUtils.join(destination, entry),
          baseFs.pathUtils.join(source, entry),
          { baseFs, overwrite },
        );
      }
    } else if (stat.isFile()) {
      if (!exists || overwrite) {
        if (exists) this.removeSync(destination);
        const content = baseFs.readFileSync(source);
        this.writeFileSync(destination, content);
      }
    } else if (stat.isSymbolicLink()) {
      if (!exists || overwrite) {
        if (exists) this.removeSync(destination);
        const target = baseFs.readlinkSync(source);
        this.symlinkSync(convertPath(this.pathUtils, target), destination);
      }
    } else {
      throw new Error(
        `Unsupported file type (file: ${source}, mode: 0o${stat.mode.toString(8).padStart(6, `0`)})`,
      );
    }
    const mode = stat.mode & 511;
    this.chmodSync(destination, mode);
  }
  async changeFilePromise(p, content, opts = {}) {
    if (Buffer.isBuffer(content)) {
      return this.changeFileBufferPromise(p, content, opts);
    } else {
      return this.changeFileTextPromise(p, content, opts);
    }
  }
  async changeFileBufferPromise(p, content, { mode } = {}) {
    let current = Buffer.alloc(0);
    try {
      current = await this.readFilePromise(p);
    } catch {}
    if (Buffer.compare(current, content) === 0) return;
    await this.writeFilePromise(p, content, { mode });
  }
  async changeFileTextPromise(p, content, { automaticNewlines, mode } = {}) {
    let current = ``;
    try {
      current = await this.readFilePromise(p, `utf8`);
    } catch {}
    const normalizedContent = automaticNewlines
      ? normalizeLineEndings(current, content)
      : content;
    if (current === normalizedContent) return;
    await this.writeFilePromise(p, normalizedContent, { mode });
  }
  changeFileSync(p, content, opts = {}) {
    if (Buffer.isBuffer(content)) {
      return this.changeFileBufferSync(p, content, opts);
    } else {
      return this.changeFileTextSync(p, content, opts);
    }
  }
  changeFileBufferSync(p, content, { mode } = {}) {
    let current = Buffer.alloc(0);
    try {
      current = this.readFileSync(p);
    } catch {}
    if (Buffer.compare(current, content) === 0) return;
    this.writeFileSync(p, content, { mode });
  }
  changeFileTextSync(p, content, { automaticNewlines = false, mode } = {}) {
    let current = ``;
    try {
      current = this.readFileSync(p, `utf8`);
    } catch {}
    const normalizedContent = automaticNewlines
      ? normalizeLineEndings(current, content)
      : content;
    if (current === normalizedContent) return;
    this.writeFileSync(p, normalizedContent, { mode });
  }
  async movePromise(fromP, toP) {
    try {
      await this.renamePromise(fromP, toP);
    } catch (error) {
      if (error.code === `EXDEV`) {
        await this.copyPromise(toP, fromP);
        await this.removePromise(fromP);
      } else {
        throw error;
      }
    }
  }
  moveSync(fromP, toP) {
    try {
      this.renameSync(fromP, toP);
    } catch (error) {
      if (error.code === `EXDEV`) {
        this.copySync(toP, fromP);
        this.removeSync(fromP);
      } else {
        throw error;
      }
    }
  }
  async lockPromise(affectedPath, callback) {
    const lockPath = `${affectedPath}.flock`;
    const interval = 1e3 / 60;
    const startTime = Date.now();
    let fd = null;
    const isAlive = async () => {
      let pid;
      try {
        [pid] = await this.readJsonPromise(lockPath);
      } catch {
        return Date.now() - startTime < 500;
      }
      try {
        process.kill(pid, 0);
        return true;
      } catch {
        return false;
      }
    };
    while (fd === null) {
      try {
        fd = await this.openPromise(lockPath, `wx`);
      } catch (error) {
        if (error.code === `EEXIST`) {
          if (!(await isAlive())) {
            try {
              await this.unlinkPromise(lockPath);
              continue;
            } catch {}
          }
          if (Date.now() - startTime < 60 * 1e3) {
            await new Promise((resolve) => setTimeout(resolve, interval));
          } else {
            throw new Error(
              `Couldn't acquire a lock in a reasonable time (via ${lockPath})`,
            );
          }
        } else {
          throw error;
        }
      }
    }
    await this.writePromise(fd, JSON.stringify([process.pid]));
    try {
      return await callback();
    } finally {
      try {
        await this.closePromise(fd);
        await this.unlinkPromise(lockPath);
      } catch {}
    }
  }
  async readJsonPromise(p) {
    const content = await this.readFilePromise(p, `utf8`);
    try {
      return JSON.parse(content);
    } catch (error) {
      error.message += ` (in ${p})`;
      throw error;
    }
  }
  readJsonSync(p) {
    const content = this.readFileSync(p, `utf8`);
    try {
      return JSON.parse(content);
    } catch (error) {
      error.message += ` (in ${p})`;
      throw error;
    }
  }
  async writeJsonPromise(p, data, { compact = false } = {}) {
    const space = compact ? 0 : 2;
    return await this.writeFilePromise(
      p,
      `${JSON.stringify(data, null, space)}
`,
    );
  }
  writeJsonSync(p, data, { compact = false } = {}) {
    const space = compact ? 0 : 2;
    return this.writeFileSync(
      p,
      `${JSON.stringify(data, null, space)}
`,
    );
  }
  async preserveTimePromise(p, cb) {
    const stat = await this.lstatPromise(p);
    const result = await cb();
    if (typeof result !== `undefined`) p = result;
    await this.lutimesPromise(p, stat.atime, stat.mtime);
  }
  async preserveTimeSync(p, cb) {
    const stat = this.lstatSync(p);
    const result = cb();
    if (typeof result !== `undefined`) p = result;
    this.lutimesSync(p, stat.atime, stat.mtime);
  }
}
class BasePortableFakeFS extends FakeFS {
  constructor() {
    super(ppath);
  }
}
function getEndOfLine(content) {
  const matches = content.match(/\r?\n/g);
  if (matches === null) return os.EOL;
  const crlf = matches.filter(
    (nl) =>
      nl ===
      `\r
`,
  ).length;
  const lf = matches.length - crlf;
  return crlf > lf
    ? `\r
`
    : `
`;
}
function normalizeLineEndings(originalContent, newContent) {
  return newContent.replace(/\r?\n/g, getEndOfLine(originalContent));
}

class ProxiedFS extends FakeFS {
  getExtractHint(hints) {
    return this.baseFs.getExtractHint(hints);
  }
  resolve(path) {
    return this.mapFromBase(this.baseFs.resolve(this.mapToBase(path)));
  }
  getRealPath() {
    return this.mapFromBase(this.baseFs.getRealPath());
  }
  async openPromise(p, flags, mode) {
    return this.baseFs.openPromise(this.mapToBase(p), flags, mode);
  }
  openSync(p, flags, mode) {
    return this.baseFs.openSync(this.mapToBase(p), flags, mode);
  }
  async opendirPromise(p, opts) {
    return Object.assign(
      await this.baseFs.opendirPromise(this.mapToBase(p), opts),
      { path: p },
    );
  }
  opendirSync(p, opts) {
    return Object.assign(this.baseFs.opendirSync(this.mapToBase(p), opts), {
      path: p,
    });
  }
  async readPromise(fd, buffer, offset, length, position) {
    return await this.baseFs.readPromise(fd, buffer, offset, length, position);
  }
  readSync(fd, buffer, offset, length, position) {
    return this.baseFs.readSync(fd, buffer, offset, length, position);
  }
  async writePromise(fd, buffer, offset, length, position) {
    if (typeof buffer === `string`) {
      return await this.baseFs.writePromise(fd, buffer, offset);
    } else {
      return await this.baseFs.writePromise(
        fd,
        buffer,
        offset,
        length,
        position,
      );
    }
  }
  writeSync(fd, buffer, offset, length, position) {
    if (typeof buffer === `string`) {
      return this.baseFs.writeSync(fd, buffer, offset);
    } else {
      return this.baseFs.writeSync(fd, buffer, offset, length, position);
    }
  }
  async closePromise(fd) {
    return this.baseFs.closePromise(fd);
  }
  closeSync(fd) {
    this.baseFs.closeSync(fd);
  }
  createReadStream(p, opts) {
    return this.baseFs.createReadStream(
      p !== null ? this.mapToBase(p) : p,
      opts,
    );
  }
  createWriteStream(p, opts) {
    return this.baseFs.createWriteStream(
      p !== null ? this.mapToBase(p) : p,
      opts,
    );
  }
  async realpathPromise(p) {
    return this.mapFromBase(
      await this.baseFs.realpathPromise(this.mapToBase(p)),
    );
  }
  realpathSync(p) {
    return this.mapFromBase(this.baseFs.realpathSync(this.mapToBase(p)));
  }
  async existsPromise(p) {
    return this.baseFs.existsPromise(this.mapToBase(p));
  }
  existsSync(p) {
    return this.baseFs.existsSync(this.mapToBase(p));
  }
  accessSync(p, mode) {
    return this.baseFs.accessSync(this.mapToBase(p), mode);
  }
  async accessPromise(p, mode) {
    return this.baseFs.accessPromise(this.mapToBase(p), mode);
  }
  async statPromise(p, opts) {
    return this.baseFs.statPromise(this.mapToBase(p), opts);
  }
  statSync(p, opts) {
    return this.baseFs.statSync(this.mapToBase(p), opts);
  }
  async fstatPromise(fd, opts) {
    return this.baseFs.fstatPromise(fd, opts);
  }
  fstatSync(fd, opts) {
    return this.baseFs.fstatSync(fd, opts);
  }
  lstatPromise(p, opts) {
    return this.baseFs.lstatPromise(this.mapToBase(p), opts);
  }
  lstatSync(p, opts) {
    return this.baseFs.lstatSync(this.mapToBase(p), opts);
  }
  async fchmodPromise(fd, mask) {
    return this.baseFs.fchmodPromise(fd, mask);
  }
  fchmodSync(fd, mask) {
    return this.baseFs.fchmodSync(fd, mask);
  }
  async chmodPromise(p, mask) {
    return this.baseFs.chmodPromise(this.mapToBase(p), mask);
  }
  chmodSync(p, mask) {
    return this.baseFs.chmodSync(this.mapToBase(p), mask);
  }
  async fchownPromise(fd, uid, gid) {
    return this.baseFs.fchownPromise(fd, uid, gid);
  }
  fchownSync(fd, uid, gid) {
    return this.baseFs.fchownSync(fd, uid, gid);
  }
  async chownPromise(p, uid, gid) {
    return this.baseFs.chownPromise(this.mapToBase(p), uid, gid);
  }
  chownSync(p, uid, gid) {
    return this.baseFs.chownSync(this.mapToBase(p), uid, gid);
  }
  async renamePromise(oldP, newP) {
    return this.baseFs.renamePromise(
      this.mapToBase(oldP),
      this.mapToBase(newP),
    );
  }
  renameSync(oldP, newP) {
    return this.baseFs.renameSync(this.mapToBase(oldP), this.mapToBase(newP));
  }
  async copyFilePromise(sourceP, destP, flags = 0) {
    return this.baseFs.copyFilePromise(
      this.mapToBase(sourceP),
      this.mapToBase(destP),
      flags,
    );
  }
  copyFileSync(sourceP, destP, flags = 0) {
    return this.baseFs.copyFileSync(
      this.mapToBase(sourceP),
      this.mapToBase(destP),
      flags,
    );
  }
  async appendFilePromise(p, content, opts) {
    return this.baseFs.appendFilePromise(this.fsMapToBase(p), content, opts);
  }
  appendFileSync(p, content, opts) {
    return this.baseFs.appendFileSync(this.fsMapToBase(p), content, opts);
  }
  async writeFilePromise(p, content, opts) {
    return this.baseFs.writeFilePromise(this.fsMapToBase(p), content, opts);
  }
  writeFileSync(p, content, opts) {
    return this.baseFs.writeFileSync(this.fsMapToBase(p), content, opts);
  }
  async unlinkPromise(p) {
    return this.baseFs.unlinkPromise(this.mapToBase(p));
  }
  unlinkSync(p) {
    return this.baseFs.unlinkSync(this.mapToBase(p));
  }
  async utimesPromise(p, atime, mtime) {
    return this.baseFs.utimesPromise(this.mapToBase(p), atime, mtime);
  }
  utimesSync(p, atime, mtime) {
    return this.baseFs.utimesSync(this.mapToBase(p), atime, mtime);
  }
  async lutimesPromise(p, atime, mtime) {
    return this.baseFs.lutimesPromise(this.mapToBase(p), atime, mtime);
  }
  lutimesSync(p, atime, mtime) {
    return this.baseFs.lutimesSync(this.mapToBase(p), atime, mtime);
  }
  async mkdirPromise(p, opts) {
    return this.baseFs.mkdirPromise(this.mapToBase(p), opts);
  }
  mkdirSync(p, opts) {
    return this.baseFs.mkdirSync(this.mapToBase(p), opts);
  }
  async rmdirPromise(p, opts) {
    return this.baseFs.rmdirPromise(this.mapToBase(p), opts);
  }
  rmdirSync(p, opts) {
    return this.baseFs.rmdirSync(this.mapToBase(p), opts);
  }
  async rmPromise(p, opts) {
    return this.baseFs.rmPromise(this.mapToBase(p), opts);
  }
  rmSync(p, opts) {
    return this.baseFs.rmSync(this.mapToBase(p), opts);
  }
  async linkPromise(existingP, newP) {
    return this.baseFs.linkPromise(
      this.mapToBase(existingP),
      this.mapToBase(newP),
    );
  }
  linkSync(existingP, newP) {
    return this.baseFs.linkSync(
      this.mapToBase(existingP),
      this.mapToBase(newP),
    );
  }
  async symlinkPromise(target, p, type) {
    const mappedP = this.mapToBase(p);
    if (this.pathUtils.isAbsolute(target))
      return this.baseFs.symlinkPromise(this.mapToBase(target), mappedP, type);
    const mappedAbsoluteTarget = this.mapToBase(
      this.pathUtils.join(this.pathUtils.dirname(p), target),
    );
    const mappedTarget = this.baseFs.pathUtils.relative(
      this.baseFs.pathUtils.dirname(mappedP),
      mappedAbsoluteTarget,
    );
    return this.baseFs.symlinkPromise(mappedTarget, mappedP, type);
  }
  symlinkSync(target, p, type) {
    const mappedP = this.mapToBase(p);
    if (this.pathUtils.isAbsolute(target))
      return this.baseFs.symlinkSync(this.mapToBase(target), mappedP, type);
    const mappedAbsoluteTarget = this.mapToBase(
      this.pathUtils.join(this.pathUtils.dirname(p), target),
    );
    const mappedTarget = this.baseFs.pathUtils.relative(
      this.baseFs.pathUtils.dirname(mappedP),
      mappedAbsoluteTarget,
    );
    return this.baseFs.symlinkSync(mappedTarget, mappedP, type);
  }
  async readFilePromise(p, encoding) {
    return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding);
  }
  readFileSync(p, encoding) {
    return this.baseFs.readFileSync(this.fsMapToBase(p), encoding);
  }
  readdirPromise(p, opts) {
    return this.baseFs.readdirPromise(this.mapToBase(p), opts);
  }
  readdirSync(p, opts) {
    return this.baseFs.readdirSync(this.mapToBase(p), opts);
  }
  async readlinkPromise(p) {
    return this.mapFromBase(
      await this.baseFs.readlinkPromise(this.mapToBase(p)),
    );
  }
  readlinkSync(p) {
    return this.mapFromBase(this.baseFs.readlinkSync(this.mapToBase(p)));
  }
  async truncatePromise(p, len) {
    return this.baseFs.truncatePromise(this.mapToBase(p), len);
  }
  truncateSync(p, len) {
    return this.baseFs.truncateSync(this.mapToBase(p), len);
  }
  async ftruncatePromise(fd, len) {
    return this.baseFs.ftruncatePromise(fd, len);
  }
  ftruncateSync(fd, len) {
    return this.baseFs.ftruncateSync(fd, len);
  }
  watch(p, a, b) {
    return this.baseFs.watch(
      this.mapToBase(p),
      // @ts-expect-error - reason TBS
      a,
      b,
    );
  }
  watchFile(p, a, b) {
    return this.baseFs.watchFile(
      this.mapToBase(p),
      // @ts-expect-error - reason TBS
      a,
      b,
    );
  }
  unwatchFile(p, cb) {
    return this.baseFs.unwatchFile(this.mapToBase(p), cb);
  }
  fsMapToBase(p) {
    if (typeof p === `number`) {
      return p;
    } else {
      return this.mapToBase(p);
    }
  }
}

function direntToPortable(dirent) {
  const portableDirent = dirent;
  if (typeof dirent.path === `string`)
    portableDirent.path = npath.toPortablePath(dirent.path);
  return portableDirent;
}
class NodeFS extends BasePortableFakeFS {
  realFs;
  constructor(realFs = fs__default.default) {
    super();
    this.realFs = realFs;
  }
  getExtractHint() {
    return false;
  }
  getRealPath() {
    return PortablePath.root;
  }
  resolve(p) {
    return ppath.resolve(p);
  }
  async openPromise(p, flags, mode) {
    return await new Promise((resolve, reject) => {
      this.realFs.open(
        npath.fromPortablePath(p),
        flags,
        mode,
        this.makeCallback(resolve, reject),
      );
    });
  }
  openSync(p, flags, mode) {
    return this.realFs.openSync(npath.fromPortablePath(p), flags, mode);
  }
  async opendirPromise(p, opts) {
    return await new Promise((resolve, reject) => {
      if (typeof opts !== `undefined`) {
        this.realFs.opendir(
          npath.fromPortablePath(p),
          opts,
          this.makeCallback(resolve, reject),
        );
      } else {
        this.realFs.opendir(
          npath.fromPortablePath(p),
          this.makeCallback(resolve, reject),
        );
      }
    }).then((dir) => {
      const dirWithFixedPath = dir;
      Object.defineProperty(dirWithFixedPath, `path`, {
        value: p,
        configurable: true,
        writable: true,
      });
      return dirWithFixedPath;
    });
  }
  opendirSync(p, opts) {
    const dir =
      typeof opts !== `undefined`
        ? this.realFs.opendirSync(npath.fromPortablePath(p), opts)
        : this.realFs.opendirSync(npath.fromPortablePath(p));
    const dirWithFixedPath = dir;
    Object.defineProperty(dirWithFixedPath, `path`, {
      value: p,
      configurable: true,
      writable: true,
    });
    return dirWithFixedPath;
  }
  async readPromise(fd, buffer, offset = 0, length = 0, position = -1) {
    return await new Promise((resolve, reject) => {
      this.realFs.read(
        fd,
        buffer,
        offset,
        length,
        position,
        (error, bytesRead) => {
          if (error) {
            reject(error);
          } else {
            resolve(bytesRead);
          }
        },
      );
    });
  }
  readSync(fd, buffer, offset, length, position) {
    return this.realFs.readSync(fd, buffer, offset, length, position);
  }
  async writePromise(fd, buffer, offset, length, position) {
    return await new Promise((resolve, reject) => {
      if (typeof buffer === `string`) {
        return this.realFs.write(
          fd,
          buffer,
          offset,
          this.makeCallback(resolve, reject),
        );
      } else {
        return this.realFs.write(
          fd,
          buffer,
          offset,
          length,
          position,
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  writeSync(fd, buffer, offset, length, position) {
    if (typeof buffer === `string`) {
      return this.realFs.writeSync(fd, buffer, offset);
    } else {
      return this.realFs.writeSync(fd, buffer, offset, length, position);
    }
  }
  async closePromise(fd) {
    await new Promise((resolve, reject) => {
      this.realFs.close(fd, this.makeCallback(resolve, reject));
    });
  }
  closeSync(fd) {
    this.realFs.closeSync(fd);
  }
  createReadStream(p, opts) {
    const realPath = p !== null ? npath.fromPortablePath(p) : p;
    return this.realFs.createReadStream(realPath, opts);
  }
  createWriteStream(p, opts) {
    const realPath = p !== null ? npath.fromPortablePath(p) : p;
    return this.realFs.createWriteStream(realPath, opts);
  }
  async realpathPromise(p) {
    return await new Promise((resolve, reject) => {
      this.realFs.realpath(
        npath.fromPortablePath(p),
        {},
        this.makeCallback(resolve, reject),
      );
    }).then((path) => {
      return npath.toPortablePath(path);
    });
  }
  realpathSync(p) {
    return npath.toPortablePath(
      this.realFs.realpathSync(npath.fromPortablePath(p), {}),
    );
  }
  async existsPromise(p) {
    return await new Promise((resolve) => {
      this.realFs.exists(npath.fromPortablePath(p), resolve);
    });
  }
  accessSync(p, mode) {
    return this.realFs.accessSync(npath.fromPortablePath(p), mode);
  }
  async accessPromise(p, mode) {
    return await new Promise((resolve, reject) => {
      this.realFs.access(
        npath.fromPortablePath(p),
        mode,
        this.makeCallback(resolve, reject),
      );
    });
  }
  existsSync(p) {
    return this.realFs.existsSync(npath.fromPortablePath(p));
  }
  async statPromise(p, opts) {
    return await new Promise((resolve, reject) => {
      if (opts) {
        this.realFs.stat(
          npath.fromPortablePath(p),
          opts,
          this.makeCallback(resolve, reject),
        );
      } else {
        this.realFs.stat(
          npath.fromPortablePath(p),
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  statSync(p, opts) {
    if (opts) {
      return this.realFs.statSync(npath.fromPortablePath(p), opts);
    } else {
      return this.realFs.statSync(npath.fromPortablePath(p));
    }
  }
  async fstatPromise(fd, opts) {
    return await new Promise((resolve, reject) => {
      if (opts) {
        this.realFs.fstat(fd, opts, this.makeCallback(resolve, reject));
      } else {
        this.realFs.fstat(fd, this.makeCallback(resolve, reject));
      }
    });
  }
  fstatSync(fd, opts) {
    if (opts) {
      return this.realFs.fstatSync(fd, opts);
    } else {
      return this.realFs.fstatSync(fd);
    }
  }
  async lstatPromise(p, opts) {
    return await new Promise((resolve, reject) => {
      if (opts) {
        this.realFs.lstat(
          npath.fromPortablePath(p),
          opts,
          this.makeCallback(resolve, reject),
        );
      } else {
        this.realFs.lstat(
          npath.fromPortablePath(p),
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  lstatSync(p, opts) {
    if (opts) {
      return this.realFs.lstatSync(npath.fromPortablePath(p), opts);
    } else {
      return this.realFs.lstatSync(npath.fromPortablePath(p));
    }
  }
  async fchmodPromise(fd, mask) {
    return await new Promise((resolve, reject) => {
      this.realFs.fchmod(fd, mask, this.makeCallback(resolve, reject));
    });
  }
  fchmodSync(fd, mask) {
    return this.realFs.fchmodSync(fd, mask);
  }
  async chmodPromise(p, mask) {
    return await new Promise((resolve, reject) => {
      this.realFs.chmod(
        npath.fromPortablePath(p),
        mask,
        this.makeCallback(resolve, reject),
      );
    });
  }
  chmodSync(p, mask) {
    return this.realFs.chmodSync(npath.fromPortablePath(p), mask);
  }
  async fchownPromise(fd, uid, gid) {
    return await new Promise((resolve, reject) => {
      this.realFs.fchown(fd, uid, gid, this.makeCallback(resolve, reject));
    });
  }
  fchownSync(fd, uid, gid) {
    return this.realFs.fchownSync(fd, uid, gid);
  }
  async chownPromise(p, uid, gid) {
    return await new Promise((resolve, reject) => {
      this.realFs.chown(
        npath.fromPortablePath(p),
        uid,
        gid,
        this.makeCallback(resolve, reject),
      );
    });
  }
  chownSync(p, uid, gid) {
    return this.realFs.chownSync(npath.fromPortablePath(p), uid, gid);
  }
  async renamePromise(oldP, newP) {
    return await new Promise((resolve, reject) => {
      this.realFs.rename(
        npath.fromPortablePath(oldP),
        npath.fromPortablePath(newP),
        this.makeCallback(resolve, reject),
      );
    });
  }
  renameSync(oldP, newP) {
    return this.realFs.renameSync(
      npath.fromPortablePath(oldP),
      npath.fromPortablePath(newP),
    );
  }
  async copyFilePromise(sourceP, destP, flags = 0) {
    return await new Promise((resolve, reject) => {
      this.realFs.copyFile(
        npath.fromPortablePath(sourceP),
        npath.fromPortablePath(destP),
        flags,
        this.makeCallback(resolve, reject),
      );
    });
  }
  copyFileSync(sourceP, destP, flags = 0) {
    return this.realFs.copyFileSync(
      npath.fromPortablePath(sourceP),
      npath.fromPortablePath(destP),
      flags,
    );
  }
  async appendFilePromise(p, content, opts) {
    return await new Promise((resolve, reject) => {
      const fsNativePath =
        typeof p === `string` ? npath.fromPortablePath(p) : p;
      if (opts) {
        this.realFs.appendFile(
          fsNativePath,
          content,
          opts,
          this.makeCallback(resolve, reject),
        );
      } else {
        this.realFs.appendFile(
          fsNativePath,
          content,
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  appendFileSync(p, content, opts) {
    const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
    if (opts) {
      this.realFs.appendFileSync(fsNativePath, content, opts);
    } else {
      this.realFs.appendFileSync(fsNativePath, content);
    }
  }
  async writeFilePromise(p, content, opts) {
    return await new Promise((resolve, reject) => {
      const fsNativePath =
        typeof p === `string` ? npath.fromPortablePath(p) : p;
      if (opts) {
        this.realFs.writeFile(
          fsNativePath,
          content,
          opts,
          this.makeCallback(resolve, reject),
        );
      } else {
        this.realFs.writeFile(
          fsNativePath,
          content,
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  writeFileSync(p, content, opts) {
    const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
    if (opts) {
      this.realFs.writeFileSync(fsNativePath, content, opts);
    } else {
      this.realFs.writeFileSync(fsNativePath, content);
    }
  }
  async unlinkPromise(p) {
    return await new Promise((resolve, reject) => {
      this.realFs.unlink(
        npath.fromPortablePath(p),
        this.makeCallback(resolve, reject),
      );
    });
  }
  unlinkSync(p) {
    return this.realFs.unlinkSync(npath.fromPortablePath(p));
  }
  async utimesPromise(p, atime, mtime) {
    return await new Promise((resolve, reject) => {
      this.realFs.utimes(
        npath.fromPortablePath(p),
        atime,
        mtime,
        this.makeCallback(resolve, reject),
      );
    });
  }
  utimesSync(p, atime, mtime) {
    this.realFs.utimesSync(npath.fromPortablePath(p), atime, mtime);
  }
  async lutimesPromise(p, atime, mtime) {
    return await new Promise((resolve, reject) => {
      this.realFs.lutimes(
        npath.fromPortablePath(p),
        atime,
        mtime,
        this.makeCallback(resolve, reject),
      );
    });
  }
  lutimesSync(p, atime, mtime) {
    this.realFs.lutimesSync(npath.fromPortablePath(p), atime, mtime);
  }
  async mkdirPromise(p, opts) {
    return await new Promise((resolve, reject) => {
      this.realFs.mkdir(
        npath.fromPortablePath(p),
        opts,
        this.makeCallback(resolve, reject),
      );
    });
  }
  mkdirSync(p, opts) {
    return this.realFs.mkdirSync(npath.fromPortablePath(p), opts);
  }
  async rmdirPromise(p, opts) {
    return await new Promise((resolve, reject) => {
      if (opts) {
        this.realFs.rmdir(
          npath.fromPortablePath(p),
          opts,
          this.makeCallback(resolve, reject),
        );
      } else {
        this.realFs.rmdir(
          npath.fromPortablePath(p),
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  rmdirSync(p, opts) {
    return this.realFs.rmdirSync(npath.fromPortablePath(p), opts);
  }
  async rmPromise(p, opts) {
    return await new Promise((resolve, reject) => {
      if (opts) {
        this.realFs.rm(
          npath.fromPortablePath(p),
          opts,
          this.makeCallback(resolve, reject),
        );
      } else {
        this.realFs.rm(
          npath.fromPortablePath(p),
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  rmSync(p, opts) {
    return this.realFs.rmSync(npath.fromPortablePath(p), opts);
  }
  async linkPromise(existingP, newP) {
    return await new Promise((resolve, reject) => {
      this.realFs.link(
        npath.fromPortablePath(existingP),
        npath.fromPortablePath(newP),
        this.makeCallback(resolve, reject),
      );
    });
  }
  linkSync(existingP, newP) {
    return this.realFs.linkSync(
      npath.fromPortablePath(existingP),
      npath.fromPortablePath(newP),
    );
  }
  async symlinkPromise(target, p, type) {
    return await new Promise((resolve, reject) => {
      this.realFs.symlink(
        npath.fromPortablePath(target.replace(/\/+$/, ``)),
        npath.fromPortablePath(p),
        type,
        this.makeCallback(resolve, reject),
      );
    });
  }
  symlinkSync(target, p, type) {
    return this.realFs.symlinkSync(
      npath.fromPortablePath(target.replace(/\/+$/, ``)),
      npath.fromPortablePath(p),
      type,
    );
  }
  async readFilePromise(p, encoding) {
    return await new Promise((resolve, reject) => {
      const fsNativePath =
        typeof p === `string` ? npath.fromPortablePath(p) : p;
      this.realFs.readFile(
        fsNativePath,
        encoding,
        this.makeCallback(resolve, reject),
      );
    });
  }
  readFileSync(p, encoding) {
    const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
    return this.realFs.readFileSync(fsNativePath, encoding);
  }
  async readdirPromise(p, opts) {
    return await new Promise((resolve, reject) => {
      if (opts) {
        if (opts.recursive && process.platform === `win32`) {
          if (opts.withFileTypes) {
            this.realFs.readdir(
              npath.fromPortablePath(p),
              opts,
              this.makeCallback(
                (results) => resolve(results.map(direntToPortable)),
                reject,
              ),
            );
          } else {
            this.realFs.readdir(
              npath.fromPortablePath(p),
              opts,
              this.makeCallback(
                (results) => resolve(results.map(npath.toPortablePath)),
                reject,
              ),
            );
          }
        } else {
          this.realFs.readdir(
            npath.fromPortablePath(p),
            opts,
            this.makeCallback(resolve, reject),
          );
        }
      } else {
        this.realFs.readdir(
          npath.fromPortablePath(p),
          this.makeCallback(resolve, reject),
        );
      }
    });
  }
  readdirSync(p, opts) {
    if (opts) {
      if (opts.recursive && process.platform === `win32`) {
        if (opts.withFileTypes) {
          return this.realFs
            .readdirSync(npath.fromPortablePath(p), opts)
            .map(direntToPortable);
        } else {
          return this.realFs
            .readdirSync(npath.fromPortablePath(p), opts)
            .map(npath.toPortablePath);
        }
      } else {
        return this.realFs.readdirSync(npath.fromPortablePath(p), opts);
      }
    } else {
      return this.realFs.readdirSync(npath.fromPortablePath(p));
    }
  }
  async readlinkPromise(p) {
    return await new Promise((resolve, reject) => {
      this.realFs.readlink(
        npath.fromPortablePath(p),
        this.makeCallback(resolve, reject),
      );
    }).then((path) => {
      return npath.toPortablePath(path);
    });
  }
  readlinkSync(p) {
    return npath.toPortablePath(
      this.realFs.readlinkSync(npath.fromPortablePath(p)),
    );
  }
  async truncatePromise(p, len) {
    return await new Promise((resolve, reject) => {
      this.realFs.truncate(
        npath.fromPortablePath(p),
        len,
        this.makeCallback(resolve, reject),
      );
    });
  }
  truncateSync(p, len) {
    return this.realFs.truncateSync(npath.fromPortablePath(p), len);
  }
  async ftruncatePromise(fd, len) {
    return await new Promise((resolve, reject) => {
      this.realFs.ftruncate(fd, len, this.makeCallback(resolve, reject));
    });
  }
  ftruncateSync(fd, len) {
    return this.realFs.ftruncateSync(fd, len);
  }
  watch(p, a, b) {
    return this.realFs.watch(
      npath.fromPortablePath(p),
      // @ts-expect-error - reason TBS
      a,
      b,
    );
  }
  watchFile(p, a, b) {
    return this.realFs.watchFile(
      npath.fromPortablePath(p),
      // @ts-expect-error - reason TBS
      a,
      b,
    );
  }
  unwatchFile(p, cb) {
    return this.realFs.unwatchFile(npath.fromPortablePath(p), cb);
  }
  makeCallback(resolve, reject) {
    return (err, result) => {
      if (err) {
        reject(err);
      } else {
        resolve(result);
      }
    };
  }
}

const MOUNT_MASK = 4278190080;
class MountFS extends BasePortableFakeFS {
  baseFs;
  mountInstances;
  fdMap = /* @__PURE__ */ new Map();
  nextFd = 3;
  factoryPromise;
  factorySync;
  filter;
  getMountPoint;
  magic;
  maxAge;
  maxOpenFiles;
  typeCheck;
  isMount = /* @__PURE__ */ new Set();
  notMount = /* @__PURE__ */ new Set();
  realPaths = /* @__PURE__ */ new Map();
  constructor({
    baseFs = new NodeFS(),
    filter = null,
    magicByte = 42,
    maxOpenFiles = Infinity,
    useCache = true,
    maxAge = 5e3,
    typeCheck = fs.constants.S_IFREG,
    getMountPoint,
    factoryPromise,
    factorySync,
  }) {
    if (
      Math.floor(magicByte) !== magicByte ||
      !(magicByte > 1 && magicByte <= 127)
    )
      throw new Error(
        `The magic byte must be set to a round value between 1 and 127 included`,
      );
    super();
    this.baseFs = baseFs;
    this.mountInstances = useCache ? /* @__PURE__ */ new Map() : null;
    this.factoryPromise = factoryPromise;
    this.factorySync = factorySync;
    this.filter = filter;
    this.getMountPoint = getMountPoint;
    this.magic = magicByte << 24;
    this.maxAge = maxAge;
    this.maxOpenFiles = maxOpenFiles;
    this.typeCheck = typeCheck;
  }
  getExtractHint(hints) {
    return this.baseFs.getExtractHint(hints);
  }
  getRealPath() {
    return this.baseFs.getRealPath();
  }
  saveAndClose() {
    unwatchAllFiles(this);
    if (this.mountInstances) {
      for (const [path, { childFs }] of this.mountInstances.entries()) {
        childFs.saveAndClose?.();
        this.mountInstances.delete(path);
      }
    }
  }
  discardAndClose() {
    unwatchAllFiles(this);
    if (this.mountInstances) {
      for (const [path, { childFs }] of this.mountInstances.entries()) {
        childFs.discardAndClose?.();
        this.mountInstances.delete(path);
      }
    }
  }
  resolve(p) {
    return this.baseFs.resolve(p);
  }
  remapFd(mountFs, fd) {
    const remappedFd = this.nextFd++ | this.magic;
    this.fdMap.set(remappedFd, [mountFs, fd]);
    return remappedFd;
  }
  async openPromise(p, flags, mode) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.openPromise(p, flags, mode);
      },
      async (mountFs, { subPath }) => {
        return this.remapFd(
          mountFs,
          await mountFs.openPromise(subPath, flags, mode),
        );
      },
    );
  }
  openSync(p, flags, mode) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.openSync(p, flags, mode);
      },
      (mountFs, { subPath }) => {
        return this.remapFd(mountFs, mountFs.openSync(subPath, flags, mode));
      },
    );
  }
  async opendirPromise(p, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.opendirPromise(p, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.opendirPromise(subPath, opts);
      },
      {
        requireSubpath: false,
      },
    );
  }
  opendirSync(p, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.opendirSync(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.opendirSync(subPath, opts);
      },
      {
        requireSubpath: false,
      },
    );
  }
  async readPromise(fd, buffer, offset, length, position) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return await this.baseFs.readPromise(
        fd,
        buffer,
        offset,
        length,
        position,
      );
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`read`);
    const [mountFs, realFd] = entry;
    return await mountFs.readPromise(realFd, buffer, offset, length, position);
  }
  readSync(fd, buffer, offset, length, position) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.readSync(fd, buffer, offset, length, position);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`readSync`);
    const [mountFs, realFd] = entry;
    return mountFs.readSync(realFd, buffer, offset, length, position);
  }
  async writePromise(fd, buffer, offset, length, position) {
    if ((fd & MOUNT_MASK) !== this.magic) {
      if (typeof buffer === `string`) {
        return await this.baseFs.writePromise(fd, buffer, offset);
      } else {
        return await this.baseFs.writePromise(
          fd,
          buffer,
          offset,
          length,
          position,
        );
      }
    }
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`write`);
    const [mountFs, realFd] = entry;
    if (typeof buffer === `string`) {
      return await mountFs.writePromise(realFd, buffer, offset);
    } else {
      return await mountFs.writePromise(
        realFd,
        buffer,
        offset,
        length,
        position,
      );
    }
  }
  writeSync(fd, buffer, offset, length, position) {
    if ((fd & MOUNT_MASK) !== this.magic) {
      if (typeof buffer === `string`) {
        return this.baseFs.writeSync(fd, buffer, offset);
      } else {
        return this.baseFs.writeSync(fd, buffer, offset, length, position);
      }
    }
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`writeSync`);
    const [mountFs, realFd] = entry;
    if (typeof buffer === `string`) {
      return mountFs.writeSync(realFd, buffer, offset);
    } else {
      return mountFs.writeSync(realFd, buffer, offset, length, position);
    }
  }
  async closePromise(fd) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return await this.baseFs.closePromise(fd);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`close`);
    this.fdMap.delete(fd);
    const [mountFs, realFd] = entry;
    return await mountFs.closePromise(realFd);
  }
  closeSync(fd) {
    if ((fd & MOUNT_MASK) !== this.magic) return this.baseFs.closeSync(fd);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`closeSync`);
    this.fdMap.delete(fd);
    const [mountFs, realFd] = entry;
    return mountFs.closeSync(realFd);
  }
  createReadStream(p, opts) {
    if (p === null) return this.baseFs.createReadStream(p, opts);
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.createReadStream(p, opts);
      },
      (mountFs, { archivePath, subPath }) => {
        const stream = mountFs.createReadStream(subPath, opts);
        stream.path = npath.fromPortablePath(
          this.pathUtils.join(archivePath, subPath),
        );
        return stream;
      },
    );
  }
  createWriteStream(p, opts) {
    if (p === null) return this.baseFs.createWriteStream(p, opts);
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.createWriteStream(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.createWriteStream(subPath, opts);
      },
    );
  }
  async realpathPromise(p) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.realpathPromise(p);
      },
      async (mountFs, { archivePath, subPath }) => {
        let realArchivePath = this.realPaths.get(archivePath);
        if (typeof realArchivePath === `undefined`) {
          realArchivePath = await this.baseFs.realpathPromise(archivePath);
          this.realPaths.set(archivePath, realArchivePath);
        }
        return this.pathUtils.join(
          realArchivePath,
          this.pathUtils.relative(
            PortablePath.root,
            await mountFs.realpathPromise(subPath),
          ),
        );
      },
    );
  }
  realpathSync(p) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.realpathSync(p);
      },
      (mountFs, { archivePath, subPath }) => {
        let realArchivePath = this.realPaths.get(archivePath);
        if (typeof realArchivePath === `undefined`) {
          realArchivePath = this.baseFs.realpathSync(archivePath);
          this.realPaths.set(archivePath, realArchivePath);
        }
        return this.pathUtils.join(
          realArchivePath,
          this.pathUtils.relative(
            PortablePath.root,
            mountFs.realpathSync(subPath),
          ),
        );
      },
    );
  }
  async existsPromise(p) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.existsPromise(p);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.existsPromise(subPath);
      },
    );
  }
  existsSync(p) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.existsSync(p);
      },
      (mountFs, { subPath }) => {
        return mountFs.existsSync(subPath);
      },
    );
  }
  async accessPromise(p, mode) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.accessPromise(p, mode);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.accessPromise(subPath, mode);
      },
    );
  }
  accessSync(p, mode) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.accessSync(p, mode);
      },
      (mountFs, { subPath }) => {
        return mountFs.accessSync(subPath, mode);
      },
    );
  }
  async statPromise(p, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.statPromise(p, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.statPromise(subPath, opts);
      },
    );
  }
  statSync(p, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.statSync(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.statSync(subPath, opts);
      },
    );
  }
  async fstatPromise(fd, opts) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.fstatPromise(fd, opts);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`fstat`);
    const [mountFs, realFd] = entry;
    return mountFs.fstatPromise(realFd, opts);
  }
  fstatSync(fd, opts) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.fstatSync(fd, opts);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`fstatSync`);
    const [mountFs, realFd] = entry;
    return mountFs.fstatSync(realFd, opts);
  }
  async lstatPromise(p, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.lstatPromise(p, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.lstatPromise(subPath, opts);
      },
    );
  }
  lstatSync(p, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.lstatSync(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.lstatSync(subPath, opts);
      },
    );
  }
  async fchmodPromise(fd, mask) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.fchmodPromise(fd, mask);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`fchmod`);
    const [mountFs, realFd] = entry;
    return mountFs.fchmodPromise(realFd, mask);
  }
  fchmodSync(fd, mask) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.fchmodSync(fd, mask);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`fchmodSync`);
    const [mountFs, realFd] = entry;
    return mountFs.fchmodSync(realFd, mask);
  }
  async chmodPromise(p, mask) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.chmodPromise(p, mask);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.chmodPromise(subPath, mask);
      },
    );
  }
  chmodSync(p, mask) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.chmodSync(p, mask);
      },
      (mountFs, { subPath }) => {
        return mountFs.chmodSync(subPath, mask);
      },
    );
  }
  async fchownPromise(fd, uid, gid) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.fchownPromise(fd, uid, gid);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`fchown`);
    const [zipFs, realFd] = entry;
    return zipFs.fchownPromise(realFd, uid, gid);
  }
  fchownSync(fd, uid, gid) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.fchownSync(fd, uid, gid);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`fchownSync`);
    const [zipFs, realFd] = entry;
    return zipFs.fchownSync(realFd, uid, gid);
  }
  async chownPromise(p, uid, gid) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.chownPromise(p, uid, gid);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.chownPromise(subPath, uid, gid);
      },
    );
  }
  chownSync(p, uid, gid) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.chownSync(p, uid, gid);
      },
      (mountFs, { subPath }) => {
        return mountFs.chownSync(subPath, uid, gid);
      },
    );
  }
  async renamePromise(oldP, newP) {
    return await this.makeCallPromise(
      oldP,
      async () => {
        return await this.makeCallPromise(
          newP,
          async () => {
            return await this.baseFs.renamePromise(oldP, newP);
          },
          async () => {
            throw Object.assign(
              new Error(`EEXDEV: cross-device link not permitted`),
              { code: `EEXDEV` },
            );
          },
        );
      },
      async (mountFsO, { subPath: subPathO }) => {
        return await this.makeCallPromise(
          newP,
          async () => {
            throw Object.assign(
              new Error(`EEXDEV: cross-device link not permitted`),
              { code: `EEXDEV` },
            );
          },
          async (mountFsN, { subPath: subPathN }) => {
            if (mountFsO !== mountFsN) {
              throw Object.assign(
                new Error(`EEXDEV: cross-device link not permitted`),
                { code: `EEXDEV` },
              );
            } else {
              return await mountFsO.renamePromise(subPathO, subPathN);
            }
          },
        );
      },
    );
  }
  renameSync(oldP, newP) {
    return this.makeCallSync(
      oldP,
      () => {
        return this.makeCallSync(
          newP,
          () => {
            return this.baseFs.renameSync(oldP, newP);
          },
          () => {
            throw Object.assign(
              new Error(`EEXDEV: cross-device link not permitted`),
              { code: `EEXDEV` },
            );
          },
        );
      },
      (mountFsO, { subPath: subPathO }) => {
        return this.makeCallSync(
          newP,
          () => {
            throw Object.assign(
              new Error(`EEXDEV: cross-device link not permitted`),
              { code: `EEXDEV` },
            );
          },
          (mountFsN, { subPath: subPathN }) => {
            if (mountFsO !== mountFsN) {
              throw Object.assign(
                new Error(`EEXDEV: cross-device link not permitted`),
                { code: `EEXDEV` },
              );
            } else {
              return mountFsO.renameSync(subPathO, subPathN);
            }
          },
        );
      },
    );
  }
  async copyFilePromise(sourceP, destP, flags = 0) {
    const fallback = async (sourceFs, sourceP2, destFs, destP2) => {
      if ((flags & fs.constants.COPYFILE_FICLONE_FORCE) !== 0)
        throw Object.assign(
          new Error(
            `EXDEV: cross-device clone not permitted, copyfile '${sourceP2}' -> ${destP2}'`,
          ),
          { code: `EXDEV` },
        );
      if (
        flags & fs.constants.COPYFILE_EXCL &&
        (await this.existsPromise(sourceP2))
      )
        throw Object.assign(
          new Error(
            `EEXIST: file already exists, copyfile '${sourceP2}' -> '${destP2}'`,
          ),
          { code: `EEXIST` },
        );
      let content;
      try {
        content = await sourceFs.readFilePromise(sourceP2);
      } catch {
        throw Object.assign(
          new Error(
            `EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`,
          ),
          { code: `EINVAL` },
        );
      }
      await destFs.writeFilePromise(destP2, content);
    };
    return await this.makeCallPromise(
      sourceP,
      async () => {
        return await this.makeCallPromise(
          destP,
          async () => {
            return await this.baseFs.copyFilePromise(sourceP, destP, flags);
          },
          async (mountFsD, { subPath: subPathD }) => {
            return await fallback(this.baseFs, sourceP, mountFsD, subPathD);
          },
        );
      },
      async (mountFsS, { subPath: subPathS }) => {
        return await this.makeCallPromise(
          destP,
          async () => {
            return await fallback(mountFsS, subPathS, this.baseFs, destP);
          },
          async (mountFsD, { subPath: subPathD }) => {
            if (mountFsS !== mountFsD) {
              return await fallback(mountFsS, subPathS, mountFsD, subPathD);
            } else {
              return await mountFsS.copyFilePromise(subPathS, subPathD, flags);
            }
          },
        );
      },
    );
  }
  copyFileSync(sourceP, destP, flags = 0) {
    const fallback = (sourceFs, sourceP2, destFs, destP2) => {
      if ((flags & fs.constants.COPYFILE_FICLONE_FORCE) !== 0)
        throw Object.assign(
          new Error(
            `EXDEV: cross-device clone not permitted, copyfile '${sourceP2}' -> ${destP2}'`,
          ),
          { code: `EXDEV` },
        );
      if (flags & fs.constants.COPYFILE_EXCL && this.existsSync(sourceP2))
        throw Object.assign(
          new Error(
            `EEXIST: file already exists, copyfile '${sourceP2}' -> '${destP2}'`,
          ),
          { code: `EEXIST` },
        );
      let content;
      try {
        content = sourceFs.readFileSync(sourceP2);
      } catch {
        throw Object.assign(
          new Error(
            `EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`,
          ),
          { code: `EINVAL` },
        );
      }
      destFs.writeFileSync(destP2, content);
    };
    return this.makeCallSync(
      sourceP,
      () => {
        return this.makeCallSync(
          destP,
          () => {
            return this.baseFs.copyFileSync(sourceP, destP, flags);
          },
          (mountFsD, { subPath: subPathD }) => {
            return fallback(this.baseFs, sourceP, mountFsD, subPathD);
          },
        );
      },
      (mountFsS, { subPath: subPathS }) => {
        return this.makeCallSync(
          destP,
          () => {
            return fallback(mountFsS, subPathS, this.baseFs, destP);
          },
          (mountFsD, { subPath: subPathD }) => {
            if (mountFsS !== mountFsD) {
              return fallback(mountFsS, subPathS, mountFsD, subPathD);
            } else {
              return mountFsS.copyFileSync(subPathS, subPathD, flags);
            }
          },
        );
      },
    );
  }
  async appendFilePromise(p, content, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.appendFilePromise(p, content, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.appendFilePromise(subPath, content, opts);
      },
    );
  }
  appendFileSync(p, content, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.appendFileSync(p, content, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.appendFileSync(subPath, content, opts);
      },
    );
  }
  async writeFilePromise(p, content, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.writeFilePromise(p, content, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.writeFilePromise(subPath, content, opts);
      },
    );
  }
  writeFileSync(p, content, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.writeFileSync(p, content, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.writeFileSync(subPath, content, opts);
      },
    );
  }
  async unlinkPromise(p) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.unlinkPromise(p);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.unlinkPromise(subPath);
      },
    );
  }
  unlinkSync(p) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.unlinkSync(p);
      },
      (mountFs, { subPath }) => {
        return mountFs.unlinkSync(subPath);
      },
    );
  }
  async utimesPromise(p, atime, mtime) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.utimesPromise(p, atime, mtime);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.utimesPromise(subPath, atime, mtime);
      },
    );
  }
  utimesSync(p, atime, mtime) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.utimesSync(p, atime, mtime);
      },
      (mountFs, { subPath }) => {
        return mountFs.utimesSync(subPath, atime, mtime);
      },
    );
  }
  async lutimesPromise(p, atime, mtime) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.lutimesPromise(p, atime, mtime);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.lutimesPromise(subPath, atime, mtime);
      },
    );
  }
  lutimesSync(p, atime, mtime) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.lutimesSync(p, atime, mtime);
      },
      (mountFs, { subPath }) => {
        return mountFs.lutimesSync(subPath, atime, mtime);
      },
    );
  }
  async mkdirPromise(p, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.mkdirPromise(p, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.mkdirPromise(subPath, opts);
      },
    );
  }
  mkdirSync(p, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.mkdirSync(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.mkdirSync(subPath, opts);
      },
    );
  }
  async rmdirPromise(p, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.rmdirPromise(p, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.rmdirPromise(subPath, opts);
      },
    );
  }
  rmdirSync(p, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.rmdirSync(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.rmdirSync(subPath, opts);
      },
    );
  }
  async rmPromise(p, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.rmPromise(p, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.rmPromise(subPath, opts);
      },
    );
  }
  rmSync(p, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.rmSync(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.rmSync(subPath, opts);
      },
    );
  }
  async linkPromise(existingP, newP) {
    return await this.makeCallPromise(
      newP,
      async () => {
        return await this.baseFs.linkPromise(existingP, newP);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.linkPromise(existingP, subPath);
      },
    );
  }
  linkSync(existingP, newP) {
    return this.makeCallSync(
      newP,
      () => {
        return this.baseFs.linkSync(existingP, newP);
      },
      (mountFs, { subPath }) => {
        return mountFs.linkSync(existingP, subPath);
      },
    );
  }
  async symlinkPromise(target, p, type) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.symlinkPromise(target, p, type);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.symlinkPromise(target, subPath);
      },
    );
  }
  symlinkSync(target, p, type) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.symlinkSync(target, p, type);
      },
      (mountFs, { subPath }) => {
        return mountFs.symlinkSync(target, subPath);
      },
    );
  }
  async readFilePromise(p, encoding) {
    return this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.readFilePromise(p, encoding);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.readFilePromise(subPath, encoding);
      },
    );
  }
  readFileSync(p, encoding) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.readFileSync(p, encoding);
      },
      (mountFs, { subPath }) => {
        return mountFs.readFileSync(subPath, encoding);
      },
    );
  }
  async readdirPromise(p, opts) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.readdirPromise(p, opts);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.readdirPromise(subPath, opts);
      },
      {
        requireSubpath: false,
      },
    );
  }
  readdirSync(p, opts) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.readdirSync(p, opts);
      },
      (mountFs, { subPath }) => {
        return mountFs.readdirSync(subPath, opts);
      },
      {
        requireSubpath: false,
      },
    );
  }
  async readlinkPromise(p) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.readlinkPromise(p);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.readlinkPromise(subPath);
      },
    );
  }
  readlinkSync(p) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.readlinkSync(p);
      },
      (mountFs, { subPath }) => {
        return mountFs.readlinkSync(subPath);
      },
    );
  }
  async truncatePromise(p, len) {
    return await this.makeCallPromise(
      p,
      async () => {
        return await this.baseFs.truncatePromise(p, len);
      },
      async (mountFs, { subPath }) => {
        return await mountFs.truncatePromise(subPath, len);
      },
    );
  }
  truncateSync(p, len) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.truncateSync(p, len);
      },
      (mountFs, { subPath }) => {
        return mountFs.truncateSync(subPath, len);
      },
    );
  }
  async ftruncatePromise(fd, len) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.ftruncatePromise(fd, len);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`ftruncate`);
    const [mountFs, realFd] = entry;
    return mountFs.ftruncatePromise(realFd, len);
  }
  ftruncateSync(fd, len) {
    if ((fd & MOUNT_MASK) !== this.magic)
      return this.baseFs.ftruncateSync(fd, len);
    const entry = this.fdMap.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`ftruncateSync`);
    const [mountFs, realFd] = entry;
    return mountFs.ftruncateSync(realFd, len);
  }
  watch(p, a, b) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.watch(
          p,
          // @ts-expect-error - reason TBS
          a,
          b,
        );
      },
      (mountFs, { subPath }) => {
        return mountFs.watch(
          subPath,
          // @ts-expect-error - reason TBS
          a,
          b,
        );
      },
    );
  }
  watchFile(p, a, b) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.watchFile(
          p,
          // @ts-expect-error - reason TBS
          a,
          b,
        );
      },
      () => {
        return watchFile(this, p, a, b);
      },
    );
  }
  unwatchFile(p, cb) {
    return this.makeCallSync(
      p,
      () => {
        return this.baseFs.unwatchFile(p, cb);
      },
      () => {
        return unwatchFile(this, p, cb);
      },
    );
  }
  async makeCallPromise(p, discard, accept, { requireSubpath = true } = {}) {
    if (typeof p !== `string`) return await discard();
    const normalizedP = this.resolve(p);
    const mountInfo = this.findMount(normalizedP);
    if (!mountInfo) return await discard();
    if (requireSubpath && mountInfo.subPath === `/`) return await discard();
    return await this.getMountPromise(
      mountInfo.archivePath,
      async (mountFs) => await accept(mountFs, mountInfo),
    );
  }
  makeCallSync(p, discard, accept, { requireSubpath = true } = {}) {
    if (typeof p !== `string`) return discard();
    const normalizedP = this.resolve(p);
    const mountInfo = this.findMount(normalizedP);
    if (!mountInfo) return discard();
    if (requireSubpath && mountInfo.subPath === `/`) return discard();
    return this.getMountSync(mountInfo.archivePath, (mountFs) =>
      accept(mountFs, mountInfo),
    );
  }
  findMount(p) {
    if (this.filter && !this.filter.test(p)) return null;
    let filePath = ``;
    while (true) {
      const pathPartWithArchive = p.substring(filePath.length);
      const mountPoint = this.getMountPoint(pathPartWithArchive, filePath);
      if (!mountPoint) return null;
      filePath = this.pathUtils.join(filePath, mountPoint);
      if (!this.isMount.has(filePath)) {
        if (this.notMount.has(filePath)) continue;
        try {
          if (
            this.typeCheck !== null &&
            (this.baseFs.statSync(filePath).mode & fs.constants.S_IFMT) !==
              this.typeCheck
          ) {
            this.notMount.add(filePath);
            continue;
          }
        } catch {
          return null;
        }
        this.isMount.add(filePath);
      }
      return {
        archivePath: filePath,
        subPath: this.pathUtils.join(
          PortablePath.root,
          p.substring(filePath.length),
        ),
      };
    }
  }
  limitOpenFilesTimeout = null;
  limitOpenFiles(max) {
    if (this.mountInstances === null) return;
    const now = Date.now();
    let nextExpiresAt = now + this.maxAge;
    let closeCount = max === null ? 0 : this.mountInstances.size - max;
    for (const [
      path,
      { childFs, expiresAt, refCount },
    ] of this.mountInstances.entries()) {
      if (refCount !== 0 || childFs.hasOpenFileHandles?.()) {
        continue;
      } else if (now >= expiresAt) {
        childFs.saveAndClose?.();
        this.mountInstances.delete(path);
        closeCount -= 1;
        continue;
      } else if (max === null || closeCount <= 0) {
        nextExpiresAt = expiresAt;
        break;
      }
      childFs.saveAndClose?.();
      this.mountInstances.delete(path);
      closeCount -= 1;
    }
    if (
      this.limitOpenFilesTimeout === null &&
      ((max === null && this.mountInstances.size > 0) || max !== null) &&
      isFinite(nextExpiresAt)
    ) {
      this.limitOpenFilesTimeout = setTimeout(() => {
        this.limitOpenFilesTimeout = null;
        this.limitOpenFiles(null);
      }, nextExpiresAt - now).unref();
    }
  }
  async getMountPromise(p, accept) {
    if (this.mountInstances) {
      let cachedMountFs = this.mountInstances.get(p);
      if (!cachedMountFs) {
        const createFsInstance = await this.factoryPromise(this.baseFs, p);
        cachedMountFs = this.mountInstances.get(p);
        if (!cachedMountFs) {
          cachedMountFs = {
            childFs: createFsInstance(),
            expiresAt: 0,
            refCount: 0,
          };
        }
      }
      this.mountInstances.delete(p);
      this.limitOpenFiles(this.maxOpenFiles - 1);
      this.mountInstances.set(p, cachedMountFs);
      cachedMountFs.expiresAt = Date.now() + this.maxAge;
      cachedMountFs.refCount += 1;
      try {
        return await accept(cachedMountFs.childFs);
      } finally {
        cachedMountFs.refCount -= 1;
      }
    } else {
      const mountFs = (await this.factoryPromise(this.baseFs, p))();
      try {
        return await accept(mountFs);
      } finally {
        mountFs.saveAndClose?.();
      }
    }
  }
  getMountSync(p, accept) {
    if (this.mountInstances) {
      let cachedMountFs = this.mountInstances.get(p);
      if (!cachedMountFs) {
        cachedMountFs = {
          childFs: this.factorySync(this.baseFs, p),
          expiresAt: 0,
          refCount: 0,
        };
      }
      this.mountInstances.delete(p);
      this.limitOpenFiles(this.maxOpenFiles - 1);
      this.mountInstances.set(p, cachedMountFs);
      cachedMountFs.expiresAt = Date.now() + this.maxAge;
      return accept(cachedMountFs.childFs);
    } else {
      const childFs = this.factorySync(this.baseFs, p);
      try {
        return accept(childFs);
      } finally {
        childFs.saveAndClose?.();
      }
    }
  }
}

class PosixFS extends ProxiedFS {
  baseFs;
  constructor(baseFs) {
    super(npath);
    this.baseFs = baseFs;
  }
  mapFromBase(path) {
    return npath.fromPortablePath(path);
  }
  mapToBase(path) {
    return npath.toPortablePath(path);
  }
}

const NUMBER_REGEXP = /^[0-9]+$/;
const VIRTUAL_REGEXP =
  /^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/;
const VALID_COMPONENT = /^([^/]+-)?[a-f0-9]+$/;
class VirtualFS extends ProxiedFS {
  baseFs;
  static makeVirtualPath(base, component, to) {
    if (ppath.basename(base) !== `__virtual__`)
      throw new Error(
        `Assertion failed: Virtual folders must be named "__virtual__"`,
      );
    if (!ppath.basename(component).match(VALID_COMPONENT))
      throw new Error(
        `Assertion failed: Virtual components must be ended by an hexadecimal hash`,
      );
    const target = ppath.relative(ppath.dirname(base), to);
    const segments = target.split(`/`);
    let depth = 0;
    while (depth < segments.length && segments[depth] === `..`) depth += 1;
    const finalSegments = segments.slice(depth);
    const fullVirtualPath = ppath.join(
      base,
      component,
      String(depth),
      ...finalSegments,
    );
    return fullVirtualPath;
  }
  static resolveVirtual(p) {
    const match = p.match(VIRTUAL_REGEXP);
    if (!match || (!match[3] && match[5])) return p;
    const target = ppath.dirname(match[1]);
    if (!match[3] || !match[4]) return target;
    const isnum = NUMBER_REGEXP.test(match[4]);
    if (!isnum) return p;
    const depth = Number(match[4]);
    const backstep = `../`.repeat(depth);
    const subpath = match[5] || `.`;
    return VirtualFS.resolveVirtual(ppath.join(target, backstep, subpath));
  }
  constructor({ baseFs = new NodeFS() } = {}) {
    super(ppath);
    this.baseFs = baseFs;
  }
  getExtractHint(hints) {
    return this.baseFs.getExtractHint(hints);
  }
  getRealPath() {
    return this.baseFs.getRealPath();
  }
  realpathSync(p) {
    const match = p.match(VIRTUAL_REGEXP);
    if (!match) return this.baseFs.realpathSync(p);
    if (!match[5]) return p;
    const realpath = this.baseFs.realpathSync(this.mapToBase(p));
    return VirtualFS.makeVirtualPath(match[1], match[3], realpath);
  }
  async realpathPromise(p) {
    const match = p.match(VIRTUAL_REGEXP);
    if (!match) return await this.baseFs.realpathPromise(p);
    if (!match[5]) return p;
    const realpath = await this.baseFs.realpathPromise(this.mapToBase(p));
    return VirtualFS.makeVirtualPath(match[1], match[3], realpath);
  }
  mapToBase(p) {
    if (p === ``) return p;
    if (this.pathUtils.isAbsolute(p)) return VirtualFS.resolveVirtual(p);
    const resolvedRoot = VirtualFS.resolveVirtual(
      this.baseFs.resolve(PortablePath.dot),
    );
    const resolvedP = VirtualFS.resolveVirtual(this.baseFs.resolve(p));
    return ppath.relative(resolvedRoot, resolvedP) || PortablePath.dot;
  }
  mapFromBase(p) {
    return p;
  }
}

const URL =
  Number(process.versions.node.split(".", 1)[0]) < 20
    ? url.URL
    : globalThis.URL;

class NodePathFS extends ProxiedFS {
  baseFs;
  constructor(baseFs) {
    super(npath);
    this.baseFs = baseFs;
  }
  mapFromBase(path) {
    return path;
  }
  mapToBase(path) {
    if (typeof path === `string`) return path;
    if (path instanceof URL) return url.fileURLToPath(path);
    if (Buffer.isBuffer(path)) {
      const str = path.toString();
      if (!isUtf8(path, str))
        throw new Error(
          `Non-utf8 buffers are not supported at the moment. Please upvote the following issue if you encounter this error: https://github.com/yarnpkg/berry/issues/4942`,
        );
      return str;
    }
    throw new Error(`Unsupported path type: ${nodeUtils.inspect(path)}`);
  }
}
function isUtf8(buf, str) {
  if (typeof buffer__default.default.isUtf8 !== `undefined`)
    return buffer__default.default.isUtf8(buf);
  return Buffer.byteLength(str) === buf.byteLength;
}

const kBaseFs = Symbol(`kBaseFs`);
const kFd = Symbol(`kFd`);
const kClosePromise = Symbol(`kClosePromise`);
const kCloseResolve = Symbol(`kCloseResolve`);
const kCloseReject = Symbol(`kCloseReject`);
const kRefs = Symbol(`kRefs`);
const kRef = Symbol(`kRef`);
const kUnref = Symbol(`kUnref`);
class FileHandle {
  [kBaseFs];
  [kFd];
  [kRefs] = 1;
  [kClosePromise] = void 0;
  [kCloseResolve] = void 0;
  [kCloseReject] = void 0;
  constructor(fd, baseFs) {
    this[kBaseFs] = baseFs;
    this[kFd] = fd;
  }
  get fd() {
    return this[kFd];
  }
  async appendFile(data, options) {
    try {
      this[kRef](this.appendFile);
      const encoding =
        (typeof options === `string` ? options : options?.encoding) ?? void 0;
      return await this[kBaseFs].appendFilePromise(
        this.fd,
        data,
        encoding ? { encoding } : void 0,
      );
    } finally {
      this[kUnref]();
    }
  }
  async chown(uid, gid) {
    try {
      this[kRef](this.chown);
      return await this[kBaseFs].fchownPromise(this.fd, uid, gid);
    } finally {
      this[kUnref]();
    }
  }
  async chmod(mode) {
    try {
      this[kRef](this.chmod);
      return await this[kBaseFs].fchmodPromise(this.fd, mode);
    } finally {
      this[kUnref]();
    }
  }
  createReadStream(options) {
    return this[kBaseFs].createReadStream(null, { ...options, fd: this.fd });
  }
  createWriteStream(options) {
    return this[kBaseFs].createWriteStream(null, { ...options, fd: this.fd });
  }
  // FIXME: Missing FakeFS version
  datasync() {
    throw new Error(`Method not implemented.`);
  }
  // FIXME: Missing FakeFS version
  sync() {
    throw new Error(`Method not implemented.`);
  }
  async read(bufferOrOptions, offsetOrOptions, length, position) {
    try {
      this[kRef](this.read);
      let buffer;
      let offset;
      if (!ArrayBuffer.isView(bufferOrOptions)) {
        buffer = bufferOrOptions?.buffer ?? Buffer.alloc(16384);
        offset = bufferOrOptions?.offset ?? 0;
        length = bufferOrOptions?.length ?? buffer.byteLength - offset;
        position = bufferOrOptions?.position ?? null;
      } else if (
        typeof offsetOrOptions === `object` &&
        offsetOrOptions !== null
      ) {
        buffer = bufferOrOptions;
        offset = offsetOrOptions?.offset ?? 0;
        length = offsetOrOptions?.length ?? buffer.byteLength - offset;
        position = offsetOrOptions?.position ?? null;
      } else {
        buffer = bufferOrOptions;
        offset = offsetOrOptions ?? 0;
        length ??= 0;
      }
      if (length === 0) {
        return {
          bytesRead: length,
          buffer,
        };
      }
      const bytesRead = await this[kBaseFs].readPromise(
        this.fd,
        // FIXME: FakeFS should support ArrayBufferViews directly
        Buffer.isBuffer(buffer)
          ? buffer
          : Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength),
        offset,
        length,
        position,
      );
      return {
        bytesRead,
        buffer,
      };
    } finally {
      this[kUnref]();
    }
  }
  async readFile(options) {
    try {
      this[kRef](this.readFile);
      const encoding =
        (typeof options === `string` ? options : options?.encoding) ?? void 0;
      return await this[kBaseFs].readFilePromise(this.fd, encoding);
    } finally {
      this[kUnref]();
    }
  }
  readLines(options) {
    return readline.createInterface({
      input: this.createReadStream(options),
      crlfDelay: Infinity,
    });
  }
  async stat(opts) {
    try {
      this[kRef](this.stat);
      return await this[kBaseFs].fstatPromise(this.fd, opts);
    } finally {
      this[kUnref]();
    }
  }
  async truncate(len) {
    try {
      this[kRef](this.truncate);
      return await this[kBaseFs].ftruncatePromise(this.fd, len);
    } finally {
      this[kUnref]();
    }
  }
  // FIXME: Missing FakeFS version
  utimes(atime, mtime) {
    throw new Error(`Method not implemented.`);
  }
  async writeFile(data, options) {
    try {
      this[kRef](this.writeFile);
      const encoding =
        (typeof options === `string` ? options : options?.encoding) ?? void 0;
      await this[kBaseFs].writeFilePromise(this.fd, data, encoding);
    } finally {
      this[kUnref]();
    }
  }
  async write(...args) {
    try {
      this[kRef](this.write);
      if (ArrayBuffer.isView(args[0])) {
        const [buffer, offset, length, position] = args;
        const bytesWritten = await this[kBaseFs].writePromise(
          this.fd,
          buffer,
          offset ?? void 0,
          length ?? void 0,
          position ?? void 0,
        );
        return { bytesWritten, buffer };
      } else {
        const [data, position, encoding] = args;
        const bytesWritten = await this[kBaseFs].writePromise(
          this.fd,
          data,
          position,
          encoding,
        );
        return { bytesWritten, buffer: data };
      }
    } finally {
      this[kUnref]();
    }
  }
  // TODO: Use writev from FakeFS when that is implemented
  async writev(buffers, position) {
    try {
      this[kRef](this.writev);
      let bytesWritten = 0;
      if (typeof position !== `undefined`) {
        for (const buffer of buffers) {
          const writeResult = await this.write(
            buffer,
            void 0,
            void 0,
            position,
          );
          bytesWritten += writeResult.bytesWritten;
          position += writeResult.bytesWritten;
        }
      } else {
        for (const buffer of buffers) {
          const writeResult = await this.write(buffer);
          bytesWritten += writeResult.bytesWritten;
        }
      }
      return {
        buffers,
        bytesWritten,
      };
    } finally {
      this[kUnref]();
    }
  }
  // FIXME: Missing FakeFS version
  readv(buffers, position) {
    throw new Error(`Method not implemented.`);
  }
  close() {
    if (this[kFd] === -1) return Promise.resolve();
    if (this[kClosePromise]) return this[kClosePromise];
    this[kRefs]--;
    if (this[kRefs] === 0) {
      const fd = this[kFd];
      this[kFd] = -1;
      this[kClosePromise] = this[kBaseFs].closePromise(fd).finally(() => {
        this[kClosePromise] = void 0;
      });
    } else {
      this[kClosePromise] = new Promise((resolve, reject) => {
        this[kCloseResolve] = resolve;
        this[kCloseReject] = reject;
      }).finally(() => {
        this[kClosePromise] = void 0;
        this[kCloseReject] = void 0;
        this[kCloseResolve] = void 0;
      });
    }
    return this[kClosePromise];
  }
  [kRef](caller) {
    if (this[kFd] === -1) {
      const err = new Error(`file closed`);
      err.code = `EBADF`;
      err.syscall = caller.name;
      throw err;
    }
    this[kRefs]++;
  }
  [kUnref]() {
    this[kRefs]--;
    if (this[kRefs] === 0) {
      const fd = this[kFd];
      this[kFd] = -1;
      this[kBaseFs]
        .closePromise(fd)
        .then(this[kCloseResolve], this[kCloseReject]);
    }
  }
}

const SYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
  `accessSync`,
  `appendFileSync`,
  `createReadStream`,
  `createWriteStream`,
  `chmodSync`,
  `fchmodSync`,
  `chownSync`,
  `fchownSync`,
  `closeSync`,
  `copyFileSync`,
  `linkSync`,
  `lstatSync`,
  `fstatSync`,
  `lutimesSync`,
  `mkdirSync`,
  `openSync`,
  `opendirSync`,
  `readlinkSync`,
  `readFileSync`,
  `readdirSync`,
  `readlinkSync`,
  `realpathSync`,
  `renameSync`,
  `rmdirSync`,
  `rmSync`,
  `statSync`,
  `symlinkSync`,
  `truncateSync`,
  `ftruncateSync`,
  `unlinkSync`,
  `unwatchFile`,
  `utimesSync`,
  `watch`,
  `watchFile`,
  `writeFileSync`,
  `writeSync`,
]);
const ASYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
  `accessPromise`,
  `appendFilePromise`,
  `fchmodPromise`,
  `chmodPromise`,
  `fchownPromise`,
  `chownPromise`,
  `closePromise`,
  `copyFilePromise`,
  `linkPromise`,
  `fstatPromise`,
  `lstatPromise`,
  `lutimesPromise`,
  `mkdirPromise`,
  `openPromise`,
  `opendirPromise`,
  `readdirPromise`,
  `realpathPromise`,
  `readFilePromise`,
  `readdirPromise`,
  `readlinkPromise`,
  `renamePromise`,
  `rmdirPromise`,
  `rmPromise`,
  `statPromise`,
  `symlinkPromise`,
  `truncatePromise`,
  `ftruncatePromise`,
  `unlinkPromise`,
  `utimesPromise`,
  `writeFilePromise`,
  `writeSync`,
]);
function patchFs(patchedFs, fakeFs) {
  fakeFs = new NodePathFS(fakeFs);
  const setupFn = (target, name, replacement) => {
    const orig = target[name];
    target[name] = replacement;
    if (typeof orig?.[nodeUtils.promisify.custom] !== `undefined`) {
      replacement[nodeUtils.promisify.custom] =
        orig[nodeUtils.promisify.custom];
    }
  };
  {
    setupFn(patchedFs, `exists`, (p, ...args) => {
      const hasCallback = typeof args[args.length - 1] === `function`;
      const callback = hasCallback ? args.pop() : () => {};
      process.nextTick(() => {
        fakeFs.existsPromise(p).then(
          (exists) => {
            callback(exists);
          },
          () => {
            callback(false);
          },
        );
      });
    });
    setupFn(patchedFs, `read`, (...args) => {
      let [fd, buffer, offset, length, position, callback] = args;
      if (args.length <= 3) {
        let options = {};
        if (args.length < 3) {
          callback = args[1];
        } else {
          options = args[1];
          callback = args[2];
        }
        ({
          buffer = Buffer.alloc(16384),
          offset = 0,
          length = buffer.byteLength,
          position,
        } = options);
      }
      if (offset == null) offset = 0;
      length |= 0;
      if (length === 0) {
        process.nextTick(() => {
          callback(null, 0, buffer);
        });
        return;
      }
      if (position == null) position = -1;
      process.nextTick(() => {
        fakeFs.readPromise(fd, buffer, offset, length, position).then(
          (bytesRead) => {
            callback(null, bytesRead, buffer);
          },
          (error) => {
            callback(error, 0, buffer);
          },
        );
      });
    });
    for (const fnName of ASYNC_IMPLEMENTATIONS) {
      const origName = fnName.replace(/Promise$/, ``);
      if (typeof patchedFs[origName] === `undefined`) continue;
      const fakeImpl = fakeFs[fnName];
      if (typeof fakeImpl === `undefined`) continue;
      const wrapper = (...args) => {
        const hasCallback = typeof args[args.length - 1] === `function`;
        const callback = hasCallback ? args.pop() : () => {};
        process.nextTick(() => {
          fakeImpl.apply(fakeFs, args).then(
            (result) => {
              callback(null, result);
            },
            (error) => {
              callback(error);
            },
          );
        });
      };
      setupFn(patchedFs, origName, wrapper);
    }
    patchedFs.realpath.native = patchedFs.realpath;
  }
  {
    setupFn(patchedFs, `existsSync`, (p) => {
      try {
        return fakeFs.existsSync(p);
      } catch {
        return false;
      }
    });
    setupFn(patchedFs, `readSync`, (...args) => {
      let [fd, buffer, offset, length, position] = args;
      if (args.length <= 3) {
        const options = args[2] || {};
        ({ offset = 0, length = buffer.byteLength, position } = options);
      }
      if (offset == null) offset = 0;
      length |= 0;
      if (length === 0) return 0;
      if (position == null) position = -1;
      return fakeFs.readSync(fd, buffer, offset, length, position);
    });
    for (const fnName of SYNC_IMPLEMENTATIONS) {
      const origName = fnName;
      if (typeof patchedFs[origName] === `undefined`) continue;
      const fakeImpl = fakeFs[fnName];
      if (typeof fakeImpl === `undefined`) continue;
      setupFn(patchedFs, origName, fakeImpl.bind(fakeFs));
    }
    patchedFs.realpathSync.native = patchedFs.realpathSync;
  }
  {
    const patchedFsPromises = patchedFs.promises;
    for (const fnName of ASYNC_IMPLEMENTATIONS) {
      const origName = fnName.replace(/Promise$/, ``);
      if (typeof patchedFsPromises[origName] === `undefined`) continue;
      const fakeImpl = fakeFs[fnName];
      if (typeof fakeImpl === `undefined`) continue;
      if (fnName === `open`) continue;
      setupFn(patchedFsPromises, origName, (pathLike, ...args) => {
        if (pathLike instanceof FileHandle) {
          return pathLike[origName].apply(pathLike, args);
        } else {
          return fakeImpl.call(fakeFs, pathLike, ...args);
        }
      });
    }
    setupFn(patchedFsPromises, `open`, async (...args) => {
      const fd = await fakeFs.openPromise(...args);
      return new FileHandle(fd, fakeFs);
    });
  }
  {
    patchedFs.read[nodeUtils.promisify.custom] = async (
      fd,
      buffer,
      ...args
    ) => {
      const res = fakeFs.readPromise(fd, buffer, ...args);
      return { bytesRead: await res, buffer };
    };
    patchedFs.write[nodeUtils.promisify.custom] = async (
      fd,
      buffer,
      ...args
    ) => {
      const res = fakeFs.writePromise(fd, buffer, ...args);
      return { bytesWritten: await res, buffer };
    };
  }
}

let cachedInstance;
let registeredFactory = () => {
  throw new Error(
    `Assertion failed: No libzip instance is available, and no factory was configured`,
  );
};
function setFactory(factory) {
  registeredFactory = factory;
}
function getInstance() {
  if (typeof cachedInstance === `undefined`)
    cachedInstance = registeredFactory();
  return cachedInstance;
}

var libzipSync = { exports: {} };

(function (module, exports) {
  var frozenFs = Object.assign({}, fs__default.default);
  var createModule = (function () {
    var _scriptDir = void 0;
    if (typeof __filename !== "undefined")
      _scriptDir = _scriptDir || __filename;
    return function (createModule2) {
      createModule2 = createModule2 || {};
      var Module = typeof createModule2 !== "undefined" ? createModule2 : {};
      var readyPromiseResolve, readyPromiseReject;
      Module["ready"] = new Promise(function (resolve, reject) {
        readyPromiseResolve = resolve;
        readyPromiseReject = reject;
      });
      var moduleOverrides = {};
      var key;
      for (key in Module) {
        if (Module.hasOwnProperty(key)) {
          moduleOverrides[key] = Module[key];
        }
      }
      var scriptDirectory = "";
      function locateFile(path) {
        if (Module["locateFile"]) {
          return Module["locateFile"](path, scriptDirectory);
        }
        return scriptDirectory + path;
      }
      var read_, readBinary;
      var nodeFS;
      var nodePath;
      {
        {
          scriptDirectory = __dirname + "/";
        }
        read_ = function shell_read(filename, binary) {
          var ret = tryParseAsDataURI(filename);
          if (ret) {
            return binary ? ret : ret.toString();
          }
          if (!nodeFS) nodeFS = frozenFs;
          if (!nodePath) nodePath = path__default.default;
          filename = nodePath["normalize"](filename);
          return nodeFS["readFileSync"](filename, binary ? null : "utf8");
        };
        readBinary = function readBinary2(filename) {
          var ret = read_(filename, true);
          if (!ret.buffer) {
            ret = new Uint8Array(ret);
          }
          assert(ret.buffer);
          return ret;
        };
        if (process["argv"].length > 1) {
          process["argv"][1].replace(/\\/g, "/");
        }
        process["argv"].slice(2);
        Module["inspect"] = function () {
          return "[Emscripten Module object]";
        };
      }
      Module["print"] || console.log.bind(console);
      var err = Module["printErr"] || console.warn.bind(console);
      for (key in moduleOverrides) {
        if (moduleOverrides.hasOwnProperty(key)) {
          Module[key] = moduleOverrides[key];
        }
      }
      moduleOverrides = null;
      if (Module["arguments"]);
      if (Module["thisProgram"]);
      if (Module["quit"]);
      var wasmBinary;
      if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
      Module["noExitRuntime"] || true;
      if (typeof WebAssembly !== "object") {
        abort("no native wasm support detected");
      }
      function getValue(ptr, type, noSafe) {
        type = type || "i8";
        if (type.charAt(type.length - 1) === "*") type = "i32";
        switch (type) {
          case "i1":
            return HEAP8[ptr >> 0];
          case "i8":
            return HEAP8[ptr >> 0];
          case "i16":
            return LE_HEAP_LOAD_I16((ptr >> 1) * 2);
          case "i32":
            return LE_HEAP_LOAD_I32((ptr >> 2) * 4);
          case "i64":
            return LE_HEAP_LOAD_I32((ptr >> 2) * 4);
          case "float":
            return LE_HEAP_LOAD_F32((ptr >> 2) * 4);
          case "double":
            return LE_HEAP_LOAD_F64((ptr >> 3) * 8);
          default:
            abort("invalid type for getValue: " + type);
        }
        return null;
      }
      var wasmMemory;
      var ABORT = false;
      function assert(condition, text) {
        if (!condition) {
          abort("Assertion failed: " + text);
        }
      }
      function getCFunc(ident) {
        var func = Module["_" + ident];
        assert(
          func,
          "Cannot call unknown function " +
            ident +
            ", make sure it is exported",
        );
        return func;
      }
      function ccall(ident, returnType, argTypes, args, opts) {
        var toC = {
          string: function (str) {
            var ret2 = 0;
            if (str !== null && str !== void 0 && str !== 0) {
              var len = (str.length << 2) + 1;
              ret2 = stackAlloc(len);
              stringToUTF8(str, ret2, len);
            }
            return ret2;
          },
          array: function (arr) {
            var ret2 = stackAlloc(arr.length);
            writeArrayToMemory(arr, ret2);
            return ret2;
          },
        };
        function convertReturnValue(ret2) {
          if (returnType === "string") return UTF8ToString(ret2);
          if (returnType === "boolean") return Boolean(ret2);
          return ret2;
        }
        var func = getCFunc(ident);
        var cArgs = [];
        var stack = 0;
        if (args) {
          for (var i = 0; i < args.length; i++) {
            var converter = toC[argTypes[i]];
            if (converter) {
              if (stack === 0) stack = stackSave();
              cArgs[i] = converter(args[i]);
            } else {
              cArgs[i] = args[i];
            }
          }
        }
        var ret = func.apply(null, cArgs);
        ret = convertReturnValue(ret);
        if (stack !== 0) stackRestore(stack);
        return ret;
      }
      function cwrap(ident, returnType, argTypes, opts) {
        argTypes = argTypes || [];
        var numericArgs = argTypes.every(function (type) {
          return type === "number";
        });
        var numericRet = returnType !== "string";
        if (numericRet && numericArgs && !opts) {
          return getCFunc(ident);
        }
        return function () {
          return ccall(ident, returnType, argTypes, arguments);
        };
      }
      var UTF8Decoder = new TextDecoder("utf8");
      function UTF8ToString(ptr, maxBytesToRead) {
        if (!ptr) return "";
        var maxPtr = ptr + maxBytesToRead;
        for (var end = ptr; !(end >= maxPtr) && HEAPU8[end];) ++end;
        return UTF8Decoder.decode(HEAPU8.subarray(ptr, end));
      }
      function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) {
        if (!(maxBytesToWrite > 0)) return 0;
        var startIdx = outIdx;
        var endIdx = outIdx + maxBytesToWrite - 1;
        for (var i = 0; i < str.length; ++i) {
          var u = str.charCodeAt(i);
          if (u >= 55296 && u <= 57343) {
            var u1 = str.charCodeAt(++i);
            u = (65536 + ((u & 1023) << 10)) | (u1 & 1023);
          }
          if (u <= 127) {
            if (outIdx >= endIdx) break;
            heap[outIdx++] = u;
          } else if (u <= 2047) {
            if (outIdx + 1 >= endIdx) break;
            heap[outIdx++] = 192 | (u >> 6);
            heap[outIdx++] = 128 | (u & 63);
          } else if (u <= 65535) {
            if (outIdx + 2 >= endIdx) break;
            heap[outIdx++] = 224 | (u >> 12);
            heap[outIdx++] = 128 | ((u >> 6) & 63);
            heap[outIdx++] = 128 | (u & 63);
          } else {
            if (outIdx + 3 >= endIdx) break;
            heap[outIdx++] = 240 | (u >> 18);
            heap[outIdx++] = 128 | ((u >> 12) & 63);
            heap[outIdx++] = 128 | ((u >> 6) & 63);
            heap[outIdx++] = 128 | (u & 63);
          }
        }
        heap[outIdx] = 0;
        return outIdx - startIdx;
      }
      function stringToUTF8(str, outPtr, maxBytesToWrite) {
        return stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite);
      }
      function lengthBytesUTF8(str) {
        var len = 0;
        for (var i = 0; i < str.length; ++i) {
          var u = str.charCodeAt(i);
          if (u >= 55296 && u <= 57343)
            u = (65536 + ((u & 1023) << 10)) | (str.charCodeAt(++i) & 1023);
          if (u <= 127) ++len;
          else if (u <= 2047) len += 2;
          else if (u <= 65535) len += 3;
          else len += 4;
        }
        return len;
      }
      function allocateUTF8(str) {
        var size = lengthBytesUTF8(str) + 1;
        var ret = _malloc(size);
        if (ret) stringToUTF8Array(str, HEAP8, ret, size);
        return ret;
      }
      function writeArrayToMemory(array, buffer2) {
        HEAP8.set(array, buffer2);
      }
      function alignUp(x, multiple) {
        if (x % multiple > 0) {
          x += multiple - (x % multiple);
        }
        return x;
      }
      var buffer, HEAP8, HEAPU8;
      var HEAP_DATA_VIEW;
      function updateGlobalBufferAndViews(buf) {
        buffer = buf;
        Module["HEAP_DATA_VIEW"] = HEAP_DATA_VIEW = new DataView(buf);
        Module["HEAP8"] = HEAP8 = new Int8Array(buf);
        Module["HEAP16"] = new Int16Array(buf);
        Module["HEAP32"] = new Int32Array(buf);
        Module["HEAPU8"] = HEAPU8 = new Uint8Array(buf);
        Module["HEAPU16"] = new Uint16Array(buf);
        Module["HEAPU32"] = new Uint32Array(buf);
        Module["HEAPF32"] = new Float32Array(buf);
        Module["HEAPF64"] = new Float64Array(buf);
      }
      Module["INITIAL_MEMORY"] || 16777216;
      var wasmTable;
      var __ATPRERUN__ = [];
      var __ATINIT__ = [];
      var __ATPOSTRUN__ = [];
      function preRun() {
        if (Module["preRun"]) {
          if (typeof Module["preRun"] == "function")
            Module["preRun"] = [Module["preRun"]];
          while (Module["preRun"].length) {
            addOnPreRun(Module["preRun"].shift());
          }
        }
        callRuntimeCallbacks(__ATPRERUN__);
      }
      function initRuntime() {
        callRuntimeCallbacks(__ATINIT__);
      }
      function postRun() {
        if (Module["postRun"]) {
          if (typeof Module["postRun"] == "function")
            Module["postRun"] = [Module["postRun"]];
          while (Module["postRun"].length) {
            addOnPostRun(Module["postRun"].shift());
          }
        }
        callRuntimeCallbacks(__ATPOSTRUN__);
      }
      function addOnPreRun(cb) {
        __ATPRERUN__.unshift(cb);
      }
      function addOnInit(cb) {
        __ATINIT__.unshift(cb);
      }
      function addOnPostRun(cb) {
        __ATPOSTRUN__.unshift(cb);
      }
      var runDependencies = 0;
      var dependenciesFulfilled = null;
      function addRunDependency(id) {
        runDependencies++;
        if (Module["monitorRunDependencies"]) {
          Module["monitorRunDependencies"](runDependencies);
        }
      }
      function removeRunDependency(id) {
        runDependencies--;
        if (Module["monitorRunDependencies"]) {
          Module["monitorRunDependencies"](runDependencies);
        }
        if (runDependencies == 0) {
          if (dependenciesFulfilled) {
            var callback = dependenciesFulfilled;
            dependenciesFulfilled = null;
            callback();
          }
        }
      }
      Module["preloadedImages"] = {};
      Module["preloadedAudios"] = {};
      function abort(what) {
        if (Module["onAbort"]) {
          Module["onAbort"](what);
        }
        what += "";
        err(what);
        ABORT = true;
        what = "abort(" + what + "). Build with -s ASSERTIONS=1 for more info.";
        var e = new WebAssembly.RuntimeError(what);
        readyPromiseReject(e);
        throw e;
      }
      var dataURIPrefix = "data:application/octet-stream;base64,";
      function isDataURI(filename) {
        return filename.startsWith(dataURIPrefix);
      }
      var wasmBinaryFile =
        "data:application/octet-stream;base64, ";
      if (!isDataURI(wasmBinaryFile)) {
        wasmBinaryFile = locateFile(wasmBinaryFile);
      }
      function getBinary(file) {
        try {
          if (file == wasmBinaryFile && wasmBinary) {
            return new Uint8Array(wasmBinary);
          }
          var binary = tryParseAsDataURI(file);
          if (binary) {
            return binary;
          }
          if (readBinary) {
            return readBinary(file);
          } else {
            throw "sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)";
          }
        } catch (err2) {
          abort(err2);
        }
      }
      function instantiateSync(file, info) {
        var instance;
        var module2;
        var binary;
        try {
          binary = getBinary(file);
          module2 = new WebAssembly.Module(binary);
          instance = new WebAssembly.Instance(module2, info);
        } catch (e) {
          var str = e.toString();
          err("failed to compile wasm module: " + str);
          if (
            str.includes("imported Memory") ||
            str.includes("memory import")
          ) {
            err(
              "Memory size incompatibility issues may be due to changing INITIAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at runtime to something smaller than it was at compile time).",
            );
          }
          throw e;
        }
        return [instance, module2];
      }
      function createWasm() {
        var info = { a: asmLibraryArg };
        function receiveInstance(instance, module2) {
          var exports3 = instance.exports;
          Module["asm"] = exports3;
          wasmMemory = Module["asm"]["g"];
          updateGlobalBufferAndViews(wasmMemory.buffer);
          wasmTable = Module["asm"]["W"];
          addOnInit(Module["asm"]["h"]);
          removeRunDependency();
        }
        addRunDependency();
        if (Module["instantiateWasm"]) {
          try {
            var exports2 = Module["instantiateWasm"](info, receiveInstance);
            return exports2;
          } catch (e) {
            err("Module.instantiateWasm callback failed with error: " + e);
            return false;
          }
        }
        var result = instantiateSync(wasmBinaryFile, info);
        receiveInstance(result[0]);
        return Module["asm"];
      }
      function LE_HEAP_LOAD_F32(byteOffset) {
        return HEAP_DATA_VIEW.getFloat32(byteOffset, true);
      }
      function LE_HEAP_LOAD_F64(byteOffset) {
        return HEAP_DATA_VIEW.getFloat64(byteOffset, true);
      }
      function LE_HEAP_LOAD_I16(byteOffset) {
        return HEAP_DATA_VIEW.getInt16(byteOffset, true);
      }
      function LE_HEAP_LOAD_I32(byteOffset) {
        return HEAP_DATA_VIEW.getInt32(byteOffset, true);
      }
      function LE_HEAP_STORE_I32(byteOffset, value) {
        HEAP_DATA_VIEW.setInt32(byteOffset, value, true);
      }
      function callRuntimeCallbacks(callbacks) {
        while (callbacks.length > 0) {
          var callback = callbacks.shift();
          if (typeof callback == "function") {
            callback(Module);
            continue;
          }
          var func = callback.func;
          if (typeof func === "number") {
            if (callback.arg === void 0) {
              wasmTable.get(func)();
            } else {
              wasmTable.get(func)(callback.arg);
            }
          } else {
            func(callback.arg === void 0 ? null : callback.arg);
          }
        }
      }
      function _gmtime_r(time, tmPtr) {
        var date = new Date(LE_HEAP_LOAD_I32((time >> 2) * 4) * 1e3);
        LE_HEAP_STORE_I32((tmPtr >> 2) * 4, date.getUTCSeconds());
        LE_HEAP_STORE_I32(((tmPtr + 4) >> 2) * 4, date.getUTCMinutes());
        LE_HEAP_STORE_I32(((tmPtr + 8) >> 2) * 4, date.getUTCHours());
        LE_HEAP_STORE_I32(((tmPtr + 12) >> 2) * 4, date.getUTCDate());
        LE_HEAP_STORE_I32(((tmPtr + 16) >> 2) * 4, date.getUTCMonth());
        LE_HEAP_STORE_I32(
          ((tmPtr + 20) >> 2) * 4,
          date.getUTCFullYear() - 1900,
        );
        LE_HEAP_STORE_I32(((tmPtr + 24) >> 2) * 4, date.getUTCDay());
        LE_HEAP_STORE_I32(((tmPtr + 36) >> 2) * 4, 0);
        LE_HEAP_STORE_I32(((tmPtr + 32) >> 2) * 4, 0);
        var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0);
        var yday = ((date.getTime() - start) / (1e3 * 60 * 60 * 24)) | 0;
        LE_HEAP_STORE_I32(((tmPtr + 28) >> 2) * 4, yday);
        if (!_gmtime_r.GMTString) _gmtime_r.GMTString = allocateUTF8("GMT");
        LE_HEAP_STORE_I32(((tmPtr + 40) >> 2) * 4, _gmtime_r.GMTString);
        return tmPtr;
      }
      function ___gmtime_r(a0, a1) {
        return _gmtime_r(a0, a1);
      }
      function _emscripten_memcpy_big(dest, src, num) {
        HEAPU8.copyWithin(dest, src, src + num);
      }
      function emscripten_realloc_buffer(size) {
        try {
          wasmMemory.grow((size - buffer.byteLength + 65535) >>> 16);
          updateGlobalBufferAndViews(wasmMemory.buffer);
          return 1;
        } catch (e) {}
      }
      function _emscripten_resize_heap(requestedSize) {
        var oldSize = HEAPU8.length;
        requestedSize = requestedSize >>> 0;
        var maxHeapSize = 2147483648;
        if (requestedSize > maxHeapSize) {
          return false;
        }
        for (var cutDown = 1; cutDown <= 4; cutDown *= 2) {
          var overGrownHeapSize = oldSize * (1 + 0.2 / cutDown);
          overGrownHeapSize = Math.min(
            overGrownHeapSize,
            requestedSize + 100663296,
          );
          var newSize = Math.min(
            maxHeapSize,
            alignUp(Math.max(requestedSize, overGrownHeapSize), 65536),
          );
          var replacement = emscripten_realloc_buffer(newSize);
          if (replacement) {
            return true;
          }
        }
        return false;
      }
      function _setTempRet0(val) {}
      function _time(ptr) {
        var ret = (Date.now() / 1e3) | 0;
        if (ptr) {
          LE_HEAP_STORE_I32((ptr >> 2) * 4, ret);
        }
        return ret;
      }
      function _tzset() {
        if (_tzset.called) return;
        _tzset.called = true;
        var currentYear = /* @__PURE__ */ new Date().getFullYear();
        var winter = new Date(currentYear, 0, 1);
        var summer = new Date(currentYear, 6, 1);
        var winterOffset = winter.getTimezoneOffset();
        var summerOffset = summer.getTimezoneOffset();
        var stdTimezoneOffset = Math.max(winterOffset, summerOffset);
        LE_HEAP_STORE_I32((__get_timezone() >> 2) * 4, stdTimezoneOffset * 60);
        LE_HEAP_STORE_I32(
          (__get_daylight() >> 2) * 4,
          Number(winterOffset != summerOffset),
        );
        function extractZone(date) {
          var match = date.toTimeString().match(/\(([A-Za-z ]+)\)$/);
          return match ? match[1] : "GMT";
        }
        var winterName = extractZone(winter);
        var summerName = extractZone(summer);
        var winterNamePtr = allocateUTF8(winterName);
        var summerNamePtr = allocateUTF8(summerName);
        if (summerOffset < winterOffset) {
          LE_HEAP_STORE_I32((__get_tzname() >> 2) * 4, winterNamePtr);
          LE_HEAP_STORE_I32(((__get_tzname() + 4) >> 2) * 4, summerNamePtr);
        } else {
          LE_HEAP_STORE_I32((__get_tzname() >> 2) * 4, summerNamePtr);
          LE_HEAP_STORE_I32(((__get_tzname() + 4) >> 2) * 4, winterNamePtr);
        }
      }
      function _timegm(tmPtr) {
        _tzset();
        var time = Date.UTC(
          LE_HEAP_LOAD_I32(((tmPtr + 20) >> 2) * 4) + 1900,
          LE_HEAP_LOAD_I32(((tmPtr + 16) >> 2) * 4),
          LE_HEAP_LOAD_I32(((tmPtr + 12) >> 2) * 4),
          LE_HEAP_LOAD_I32(((tmPtr + 8) >> 2) * 4),
          LE_HEAP_LOAD_I32(((tmPtr + 4) >> 2) * 4),
          LE_HEAP_LOAD_I32((tmPtr >> 2) * 4),
          0,
        );
        var date = new Date(time);
        LE_HEAP_STORE_I32(((tmPtr + 24) >> 2) * 4, date.getUTCDay());
        var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0);
        var yday = ((date.getTime() - start) / (1e3 * 60 * 60 * 24)) | 0;
        LE_HEAP_STORE_I32(((tmPtr + 28) >> 2) * 4, yday);
        return (date.getTime() / 1e3) | 0;
      }
      function intArrayFromBase64(s) {
        {
          var buf;
          try {
            buf = Buffer.from(s, "base64");
          } catch (_) {
            buf = new Buffer(s, "base64");
          }
          return new Uint8Array(
            buf["buffer"],
            buf["byteOffset"],
            buf["byteLength"],
          );
        }
      }
      function tryParseAsDataURI(filename) {
        if (!isDataURI(filename)) {
          return;
        }
        return intArrayFromBase64(filename.slice(dataURIPrefix.length));
      }
      var asmLibraryArg = {
        e: ___gmtime_r,
        c: _emscripten_memcpy_big,
        d: _emscripten_resize_heap,
        a: _setTempRet0,
        b: _time,
        f: _timegm,
      };
      var asm = createWasm();
      Module["___wasm_call_ctors"] = asm["h"];
      Module["_zip_ext_count_symlinks"] = asm["i"];
      Module["_zip_file_get_external_attributes"] = asm["j"];
      Module["_zipstruct_statS"] = asm["k"];
      Module["_zipstruct_stat_size"] = asm["l"];
      Module["_zipstruct_stat_mtime"] = asm["m"];
      Module["_zipstruct_stat_crc"] = asm["n"];
      Module["_zipstruct_errorS"] = asm["o"];
      Module["_zipstruct_error_code_zip"] = asm["p"];
      Module["_zipstruct_stat_comp_size"] = asm["q"];
      Module["_zipstruct_stat_comp_method"] = asm["r"];
      Module["_zip_close"] = asm["s"];
      Module["_zip_delete"] = asm["t"];
      Module["_zip_dir_add"] = asm["u"];
      Module["_zip_discard"] = asm["v"];
      Module["_zip_error_init_with_code"] = asm["w"];
      Module["_zip_get_error"] = asm["x"];
      Module["_zip_file_get_error"] = asm["y"];
      Module["_zip_error_strerror"] = asm["z"];
      Module["_zip_fclose"] = asm["A"];
      Module["_zip_file_add"] = asm["B"];
      Module["_free"] = asm["C"];
      var _malloc = (Module["_malloc"] = asm["D"]);
      Module["_zip_source_error"] = asm["E"];
      Module["_zip_source_seek"] = asm["F"];
      Module["_zip_file_set_external_attributes"] = asm["G"];
      Module["_zip_file_set_mtime"] = asm["H"];
      Module["_zip_fopen_index"] = asm["I"];
      Module["_zip_fread"] = asm["J"];
      Module["_zip_get_name"] = asm["K"];
      Module["_zip_get_num_entries"] = asm["L"];
      Module["_zip_source_read"] = asm["M"];
      Module["_zip_name_locate"] = asm["N"];
      Module["_zip_open_from_source"] = asm["O"];
      Module["_zip_set_file_compression"] = asm["P"];
      Module["_zip_source_buffer"] = asm["Q"];
      Module["_zip_source_buffer_create"] = asm["R"];
      Module["_zip_source_close"] = asm["S"];
      Module["_zip_source_free"] = asm["T"];
      Module["_zip_source_keep"] = asm["U"];
      Module["_zip_source_open"] = asm["V"];
      Module["_zip_source_tell"] = asm["X"];
      Module["_zip_stat_index"] = asm["Y"];
      var __get_tzname = (Module["__get_tzname"] = asm["Z"]);
      var __get_daylight = (Module["__get_daylight"] = asm["_"]);
      var __get_timezone = (Module["__get_timezone"] = asm["$"]);
      var stackSave = (Module["stackSave"] = asm["aa"]);
      var stackRestore = (Module["stackRestore"] = asm["ba"]);
      var stackAlloc = (Module["stackAlloc"] = asm["ca"]);
      Module["cwrap"] = cwrap;
      Module["getValue"] = getValue;
      var calledRun;
      dependenciesFulfilled = function runCaller() {
        if (!calledRun) run();
        if (!calledRun) dependenciesFulfilled = runCaller;
      };
      function run(args) {
        if (runDependencies > 0) {
          return;
        }
        preRun();
        if (runDependencies > 0) {
          return;
        }
        function doRun() {
          if (calledRun) return;
          calledRun = true;
          Module["calledRun"] = true;
          if (ABORT) return;
          initRuntime();
          readyPromiseResolve(Module);
          if (Module["onRuntimeInitialized"]) Module["onRuntimeInitialized"]();
          postRun();
        }
        if (Module["setStatus"]) {
          Module["setStatus"]("Running...");
          setTimeout(function () {
            setTimeout(function () {
              Module["setStatus"]("");
            }, 1);
            doRun();
          }, 1);
        } else {
          doRun();
        }
      }
      Module["run"] = run;
      if (Module["preInit"]) {
        if (typeof Module["preInit"] == "function")
          Module["preInit"] = [Module["preInit"]];
        while (Module["preInit"].length > 0) {
          Module["preInit"].pop()();
        }
      }
      run();
      return createModule2;
    };
  })();
  module.exports = createModule;
})(libzipSync);

const createModule = libzipSync.exports;

const number64 = [
  `number`,
  // low
  `number`,
  // high
];
var Errors = /* @__PURE__ */ ((Errors2) => {
  Errors2[(Errors2["ZIP_ER_OK"] = 0)] = "ZIP_ER_OK";
  Errors2[(Errors2["ZIP_ER_MULTIDISK"] = 1)] = "ZIP_ER_MULTIDISK";
  Errors2[(Errors2["ZIP_ER_RENAME"] = 2)] = "ZIP_ER_RENAME";
  Errors2[(Errors2["ZIP_ER_CLOSE"] = 3)] = "ZIP_ER_CLOSE";
  Errors2[(Errors2["ZIP_ER_SEEK"] = 4)] = "ZIP_ER_SEEK";
  Errors2[(Errors2["ZIP_ER_READ"] = 5)] = "ZIP_ER_READ";
  Errors2[(Errors2["ZIP_ER_WRITE"] = 6)] = "ZIP_ER_WRITE";
  Errors2[(Errors2["ZIP_ER_CRC"] = 7)] = "ZIP_ER_CRC";
  Errors2[(Errors2["ZIP_ER_ZIPCLOSED"] = 8)] = "ZIP_ER_ZIPCLOSED";
  Errors2[(Errors2["ZIP_ER_NOENT"] = 9)] = "ZIP_ER_NOENT";
  Errors2[(Errors2["ZIP_ER_EXISTS"] = 10)] = "ZIP_ER_EXISTS";
  Errors2[(Errors2["ZIP_ER_OPEN"] = 11)] = "ZIP_ER_OPEN";
  Errors2[(Errors2["ZIP_ER_TMPOPEN"] = 12)] = "ZIP_ER_TMPOPEN";
  Errors2[(Errors2["ZIP_ER_ZLIB"] = 13)] = "ZIP_ER_ZLIB";
  Errors2[(Errors2["ZIP_ER_MEMORY"] = 14)] = "ZIP_ER_MEMORY";
  Errors2[(Errors2["ZIP_ER_CHANGED"] = 15)] = "ZIP_ER_CHANGED";
  Errors2[(Errors2["ZIP_ER_COMPNOTSUPP"] = 16)] = "ZIP_ER_COMPNOTSUPP";
  Errors2[(Errors2["ZIP_ER_EOF"] = 17)] = "ZIP_ER_EOF";
  Errors2[(Errors2["ZIP_ER_INVAL"] = 18)] = "ZIP_ER_INVAL";
  Errors2[(Errors2["ZIP_ER_NOZIP"] = 19)] = "ZIP_ER_NOZIP";
  Errors2[(Errors2["ZIP_ER_INTERNAL"] = 20)] = "ZIP_ER_INTERNAL";
  Errors2[(Errors2["ZIP_ER_INCONS"] = 21)] = "ZIP_ER_INCONS";
  Errors2[(Errors2["ZIP_ER_REMOVE"] = 22)] = "ZIP_ER_REMOVE";
  Errors2[(Errors2["ZIP_ER_DELETED"] = 23)] = "ZIP_ER_DELETED";
  Errors2[(Errors2["ZIP_ER_ENCRNOTSUPP"] = 24)] = "ZIP_ER_ENCRNOTSUPP";
  Errors2[(Errors2["ZIP_ER_RDONLY"] = 25)] = "ZIP_ER_RDONLY";
  Errors2[(Errors2["ZIP_ER_NOPASSWD"] = 26)] = "ZIP_ER_NOPASSWD";
  Errors2[(Errors2["ZIP_ER_WRONGPASSWD"] = 27)] = "ZIP_ER_WRONGPASSWD";
  Errors2[(Errors2["ZIP_ER_OPNOTSUPP"] = 28)] = "ZIP_ER_OPNOTSUPP";
  Errors2[(Errors2["ZIP_ER_INUSE"] = 29)] = "ZIP_ER_INUSE";
  Errors2[(Errors2["ZIP_ER_TELL"] = 30)] = "ZIP_ER_TELL";
  Errors2[(Errors2["ZIP_ER_COMPRESSED_DATA"] = 31)] = "ZIP_ER_COMPRESSED_DATA";
  return Errors2;
})(Errors || {});
const makeInterface = (emZip) => ({
  // Those are getters because they can change after memory growth
  get HEAPU8() {
    return emZip.HEAPU8;
  },
  errors: Errors,
  SEEK_SET: 0,
  SEEK_CUR: 1,
  SEEK_END: 2,
  ZIP_CHECKCONS: 4,
  ZIP_EXCL: 2,
  ZIP_RDONLY: 16,
  ZIP_FL_OVERWRITE: 8192,
  ZIP_FL_COMPRESSED: 4,
  ZIP_OPSYS_DOS: 0,
  ZIP_OPSYS_AMIGA: 1,
  ZIP_OPSYS_OPENVMS: 2,
  ZIP_OPSYS_UNIX: 3,
  ZIP_OPSYS_VM_CMS: 4,
  ZIP_OPSYS_ATARI_ST: 5,
  ZIP_OPSYS_OS_2: 6,
  ZIP_OPSYS_MACINTOSH: 7,
  ZIP_OPSYS_Z_SYSTEM: 8,
  ZIP_OPSYS_CPM: 9,
  ZIP_OPSYS_WINDOWS_NTFS: 10,
  ZIP_OPSYS_MVS: 11,
  ZIP_OPSYS_VSE: 12,
  ZIP_OPSYS_ACORN_RISC: 13,
  ZIP_OPSYS_VFAT: 14,
  ZIP_OPSYS_ALTERNATE_MVS: 15,
  ZIP_OPSYS_BEOS: 16,
  ZIP_OPSYS_TANDEM: 17,
  ZIP_OPSYS_OS_400: 18,
  ZIP_OPSYS_OS_X: 19,
  ZIP_CM_DEFAULT: -1,
  ZIP_CM_STORE: 0,
  ZIP_CM_DEFLATE: 8,
  uint08S: emZip._malloc(1),
  uint32S: emZip._malloc(4),
  malloc: emZip._malloc,
  free: emZip._free,
  getValue: emZip.getValue,
  openFromSource: emZip.cwrap(`zip_open_from_source`, `number`, [
    `number`,
    `number`,
    `number`,
  ]),
  close: emZip.cwrap(`zip_close`, `number`, [`number`]),
  discard: emZip.cwrap(`zip_discard`, null, [`number`]),
  getError: emZip.cwrap(`zip_get_error`, `number`, [`number`]),
  getName: emZip.cwrap(`zip_get_name`, `string`, [
    `number`,
    `number`,
    `number`,
  ]),
  getNumEntries: emZip.cwrap(`zip_get_num_entries`, `number`, [
    `number`,
    `number`,
  ]),
  delete: emZip.cwrap(`zip_delete`, `number`, [`number`, `number`]),
  statIndex: emZip.cwrap(`zip_stat_index`, `number`, [
    `number`,
    ...number64,
    `number`,
    `number`,
  ]),
  fopenIndex: emZip.cwrap(`zip_fopen_index`, `number`, [
    `number`,
    ...number64,
    `number`,
  ]),
  fread: emZip.cwrap(`zip_fread`, `number`, [
    `number`,
    `number`,
    `number`,
    `number`,
  ]),
  fclose: emZip.cwrap(`zip_fclose`, `number`, [`number`]),
  dir: {
    add: emZip.cwrap(`zip_dir_add`, `number`, [`number`, `string`]),
  },
  file: {
    add: emZip.cwrap(`zip_file_add`, `number`, [
      `number`,
      `string`,
      `number`,
      `number`,
    ]),
    getError: emZip.cwrap(`zip_file_get_error`, `number`, [`number`]),
    getExternalAttributes: emZip.cwrap(
      `zip_file_get_external_attributes`,
      `number`,
      [`number`, ...number64, `number`, `number`, `number`],
    ),
    setExternalAttributes: emZip.cwrap(
      `zip_file_set_external_attributes`,
      `number`,
      [`number`, ...number64, `number`, `number`, `number`],
    ),
    setMtime: emZip.cwrap(`zip_file_set_mtime`, `number`, [
      `number`,
      ...number64,
      `number`,
      `number`,
    ]),
    setCompression: emZip.cwrap(`zip_set_file_compression`, `number`, [
      `number`,
      ...number64,
      `number`,
      `number`,
    ]),
  },
  ext: {
    countSymlinks: emZip.cwrap(`zip_ext_count_symlinks`, `number`, [`number`]),
  },
  error: {
    initWithCode: emZip.cwrap(`zip_error_init_with_code`, null, [
      `number`,
      `number`,
    ]),
    strerror: emZip.cwrap(`zip_error_strerror`, `string`, [`number`]),
  },
  name: {
    locate: emZip.cwrap(`zip_name_locate`, `number`, [
      `number`,
      `string`,
      `number`,
    ]),
  },
  source: {
    fromUnattachedBuffer: emZip.cwrap(`zip_source_buffer_create`, `number`, [
      `number`,
      ...number64,
      `number`,
      `number`,
    ]),
    fromBuffer: emZip.cwrap(`zip_source_buffer`, `number`, [
      `number`,
      `number`,
      ...number64,
      `number`,
    ]),
    free: emZip.cwrap(`zip_source_free`, null, [`number`]),
    keep: emZip.cwrap(`zip_source_keep`, null, [`number`]),
    open: emZip.cwrap(`zip_source_open`, `number`, [`number`]),
    close: emZip.cwrap(`zip_source_close`, `number`, [`number`]),
    seek: emZip.cwrap(`zip_source_seek`, `number`, [
      `number`,
      ...number64,
      `number`,
    ]),
    tell: emZip.cwrap(`zip_source_tell`, `number`, [`number`]),
    read: emZip.cwrap(`zip_source_read`, `number`, [
      `number`,
      `number`,
      `number`,
    ]),
    error: emZip.cwrap(`zip_source_error`, `number`, [`number`]),
  },
  struct: {
    statS: emZip.cwrap(`zipstruct_statS`, `number`, []),
    statSize: emZip.cwrap(`zipstruct_stat_size`, `number`, [`number`]),
    statCompSize: emZip.cwrap(`zipstruct_stat_comp_size`, `number`, [`number`]),
    statCompMethod: emZip.cwrap(`zipstruct_stat_comp_method`, `number`, [
      `number`,
    ]),
    statMtime: emZip.cwrap(`zipstruct_stat_mtime`, `number`, [`number`]),
    statCrc: emZip.cwrap(`zipstruct_stat_crc`, `number`, [`number`]),
    errorS: emZip.cwrap(`zipstruct_errorS`, `number`, []),
    errorCodeZip: emZip.cwrap(`zipstruct_error_code_zip`, `number`, [`number`]),
  },
});

function getArchivePart(path, extension) {
  let idx = path.indexOf(extension);
  if (idx <= 0) return null;
  let nextCharIdx = idx;
  while (idx >= 0) {
    nextCharIdx = idx + extension.length;
    if (path[nextCharIdx] === ppath.sep) break;
    if (path[idx - 1] === ppath.sep) return null;
    idx = path.indexOf(extension, nextCharIdx);
  }
  if (path.length > nextCharIdx && path[nextCharIdx] !== ppath.sep) return null;
  return path.slice(0, nextCharIdx);
}
class ZipOpenFS extends MountFS {
  static async openPromise(fn, opts) {
    const zipOpenFs = new ZipOpenFS(opts);
    try {
      return await fn(zipOpenFs);
    } finally {
      zipOpenFs.saveAndClose();
    }
  }
  constructor(opts = {}) {
    const fileExtensions = opts.fileExtensions;
    const readOnlyArchives = opts.readOnlyArchives;
    const getMountPoint =
      typeof fileExtensions === `undefined`
        ? (path) => getArchivePart(path, `.zip`)
        : (path) => {
            for (const extension of fileExtensions) {
              const result = getArchivePart(path, extension);
              if (result) {
                return result;
              }
            }
            return null;
          };
    const factorySync = (baseFs, p) => {
      return new ZipFS(p, {
        baseFs,
        readOnly: readOnlyArchives,
        stats: baseFs.statSync(p),
        customZipImplementation: opts.customZipImplementation,
      });
    };
    const factoryPromise = async (baseFs, p) => {
      const zipOptions = {
        baseFs,
        readOnly: readOnlyArchives,
        stats: await baseFs.statPromise(p),
        customZipImplementation: opts.customZipImplementation,
      };
      return () => {
        return new ZipFS(p, zipOptions);
      };
    };
    super({
      ...opts,
      factorySync,
      factoryPromise,
      getMountPoint,
    });
  }
}

class LibzipError extends Error {
  code;
  constructor(message, code) {
    super(message);
    this.name = `Libzip Error`;
    this.code = code;
  }
}
class LibZipImpl {
  libzip;
  lzSource;
  zip;
  listings;
  symlinkCount;
  filesShouldBeCached = true;
  constructor(opts) {
    const buffer =
      `buffer` in opts ? opts.buffer : opts.baseFs.readFileSync(opts.path);
    this.libzip = getInstance();
    const errPtr = this.libzip.malloc(4);
    try {
      let flags = 0;
      if (opts.readOnly) flags |= this.libzip.ZIP_RDONLY;
      const lzSource = this.allocateUnattachedSource(buffer);
      try {
        this.zip = this.libzip.openFromSource(lzSource, flags, errPtr);
        this.lzSource = lzSource;
      } catch (error) {
        this.libzip.source.free(lzSource);
        throw error;
      }
      if (this.zip === 0) {
        const error = this.libzip.struct.errorS();
        this.libzip.error.initWithCode(
          error,
          this.libzip.getValue(errPtr, `i32`),
        );
        throw this.makeLibzipError(error);
      }
    } finally {
      this.libzip.free(errPtr);
    }
    const entryCount = this.libzip.getNumEntries(this.zip, 0);
    const listings = new Array(entryCount);
    for (let t = 0; t < entryCount; ++t)
      listings[t] = this.libzip.getName(this.zip, t, 0);
    this.listings = listings;
    this.symlinkCount = this.libzip.ext.countSymlinks(this.zip);
    if (this.symlinkCount === -1) {
      throw this.makeLibzipError(this.libzip.getError(this.zip));
    }
  }
  getSymlinkCount() {
    return this.symlinkCount;
  }
  getListings() {
    return this.listings;
  }
  stat(entry) {
    const stat = this.libzip.struct.statS();
    const rc = this.libzip.statIndex(this.zip, entry, 0, 0, stat);
    if (rc === -1) throw this.makeLibzipError(this.libzip.getError(this.zip));
    const size = this.libzip.struct.statSize(stat) >>> 0;
    const mtime = this.libzip.struct.statMtime(stat) >>> 0;
    const crc = this.libzip.struct.statCrc(stat) >>> 0;
    return { size, mtime, crc };
  }
  makeLibzipError(error) {
    const errorCode = this.libzip.struct.errorCodeZip(error);
    const strerror = this.libzip.error.strerror(error);
    const libzipError = new LibzipError(
      strerror,
      this.libzip.errors[errorCode],
    );
    if (errorCode === this.libzip.errors.ZIP_ER_CHANGED)
      throw new Error(
        `Assertion failed: Unexpected libzip error: ${libzipError.message}`,
      );
    return libzipError;
  }
  setFileSource(target, compression, buffer) {
    const lzSource = this.allocateSource(buffer);
    try {
      const newIndex = this.libzip.file.add(
        this.zip,
        target,
        lzSource,
        this.libzip.ZIP_FL_OVERWRITE,
      );
      if (newIndex === -1)
        throw this.makeLibzipError(this.libzip.getError(this.zip));
      if (compression !== null) {
        const rc = this.libzip.file.setCompression(
          this.zip,
          newIndex,
          0,
          compression[0],
          compression[1],
        );
        if (rc === -1) {
          throw this.makeLibzipError(this.libzip.getError(this.zip));
        }
      }
      return newIndex;
    } catch (error) {
      this.libzip.source.free(lzSource);
      throw error;
    }
  }
  setMtime(entry, mtime) {
    const rc = this.libzip.file.setMtime(this.zip, entry, 0, mtime, 0);
    if (rc === -1) {
      throw this.makeLibzipError(this.libzip.getError(this.zip));
    }
  }
  getExternalAttributes(index) {
    const attrs = this.libzip.file.getExternalAttributes(
      this.zip,
      index,
      0,
      0,
      this.libzip.uint08S,
      this.libzip.uint32S,
    );
    if (attrs === -1)
      throw this.makeLibzipError(this.libzip.getError(this.zip));
    const opsys = this.libzip.getValue(this.libzip.uint08S, `i8`) >>> 0;
    const attributes = this.libzip.getValue(this.libzip.uint32S, `i32`) >>> 0;
    return [opsys, attributes];
  }
  setExternalAttributes(index, opsys, attributes) {
    const rc = this.libzip.file.setExternalAttributes(
      this.zip,
      index,
      0,
      0,
      opsys,
      attributes,
    );
    if (rc === -1) {
      throw this.makeLibzipError(this.libzip.getError(this.zip));
    }
  }
  locate(name) {
    return this.libzip.name.locate(this.zip, name, 0);
  }
  getFileSource(index) {
    const stat = this.libzip.struct.statS();
    const rc = this.libzip.statIndex(this.zip, index, 0, 0, stat);
    if (rc === -1) throw this.makeLibzipError(this.libzip.getError(this.zip));
    const size = this.libzip.struct.statCompSize(stat);
    const compressionMethod = this.libzip.struct.statCompMethod(stat);
    const buffer = this.libzip.malloc(size);
    try {
      const file = this.libzip.fopenIndex(
        this.zip,
        index,
        0,
        this.libzip.ZIP_FL_COMPRESSED,
      );
      if (file === 0)
        throw this.makeLibzipError(this.libzip.getError(this.zip));
      try {
        const rc2 = this.libzip.fread(file, buffer, size, 0);
        if (rc2 === -1)
          throw this.makeLibzipError(this.libzip.file.getError(file));
        else if (rc2 < size) throw new Error(`Incomplete read`);
        else if (rc2 > size) throw new Error(`Overread`);
        const memory = this.libzip.HEAPU8.subarray(buffer, buffer + size);
        const data = Buffer.from(memory);
        return { data, compressionMethod };
      } finally {
        this.libzip.fclose(file);
      }
    } finally {
      this.libzip.free(buffer);
    }
  }
  deleteEntry(index) {
    const rc = this.libzip.delete(this.zip, index);
    if (rc === -1) {
      throw this.makeLibzipError(this.libzip.getError(this.zip));
    }
  }
  addDirectory(path) {
    const index = this.libzip.dir.add(this.zip, path);
    if (index === -1)
      throw this.makeLibzipError(this.libzip.getError(this.zip));
    return index;
  }
  getBufferAndClose() {
    try {
      this.libzip.source.keep(this.lzSource);
      if (this.libzip.close(this.zip) === -1)
        throw this.makeLibzipError(this.libzip.getError(this.zip));
      if (this.libzip.source.open(this.lzSource) === -1)
        throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
      if (
        this.libzip.source.seek(this.lzSource, 0, 0, this.libzip.SEEK_END) ===
        -1
      )
        throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
      const size = this.libzip.source.tell(this.lzSource);
      if (size === -1)
        throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
      if (
        this.libzip.source.seek(this.lzSource, 0, 0, this.libzip.SEEK_SET) ===
        -1
      )
        throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
      const buffer = this.libzip.malloc(size);
      if (!buffer) throw new Error(`Couldn't allocate enough memory`);
      try {
        const rc = this.libzip.source.read(this.lzSource, buffer, size);
        if (rc === -1)
          throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
        else if (rc < size) throw new Error(`Incomplete read`);
        else if (rc > size) throw new Error(`Overread`);
        let result = Buffer.from(
          this.libzip.HEAPU8.subarray(buffer, buffer + size),
        );
        if (process.env.YARN_IS_TEST_ENV && process.env.YARN_ZIP_DATA_EPILOGUE)
          result = Buffer.concat([
            result,
            Buffer.from(process.env.YARN_ZIP_DATA_EPILOGUE),
          ]);
        return result;
      } finally {
        this.libzip.free(buffer);
      }
    } finally {
      this.libzip.source.close(this.lzSource);
      this.libzip.source.free(this.lzSource);
    }
  }
  allocateBuffer(content) {
    if (!Buffer.isBuffer(content)) content = Buffer.from(content);
    const buffer = this.libzip.malloc(content.byteLength);
    if (!buffer) throw new Error(`Couldn't allocate enough memory`);
    const heap = new Uint8Array(
      this.libzip.HEAPU8.buffer,
      buffer,
      content.byteLength,
    );
    heap.set(content);
    return { buffer, byteLength: content.byteLength };
  }
  allocateUnattachedSource(content) {
    const error = this.libzip.struct.errorS();
    const { buffer, byteLength } = this.allocateBuffer(content);
    const source = this.libzip.source.fromUnattachedBuffer(
      buffer,
      byteLength,
      0,
      1,
      error,
    );
    if (source === 0) {
      this.libzip.free(error);
      throw this.makeLibzipError(error);
    }
    return source;
  }
  allocateSource(content) {
    const { buffer, byteLength } = this.allocateBuffer(content);
    const source = this.libzip.source.fromBuffer(
      this.zip,
      buffer,
      byteLength,
      0,
      1,
    );
    if (source === 0) {
      this.libzip.free(buffer);
      throw this.makeLibzipError(this.libzip.getError(this.zip));
    }
    return source;
  }
  discard() {
    this.libzip.discard(this.zip);
  }
}

const ZIP_UNIX = 3;
const STORE = 0;
const DEFLATE = 8;
const DEFAULT_COMPRESSION_LEVEL = `mixed`;
function toUnixTimestamp(time) {
  if (typeof time === `string` && String(+time) === time) return +time;
  if (typeof time === `number` && Number.isFinite(time)) {
    if (time < 0) {
      return Date.now() / 1e3;
    } else {
      return time;
    }
  }
  if (nodeUtils.types.isDate(time)) return time.getTime() / 1e3;
  throw new Error(`Invalid time`);
}
function makeEmptyArchive() {
  return Buffer.from([
    80, 75, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  ]);
}
class ZipFS extends BasePortableFakeFS {
  baseFs;
  path;
  stats;
  level;
  zipImpl;
  listings = /* @__PURE__ */ new Map();
  entries = /* @__PURE__ */ new Map();
  /**
   * A cache of indices mapped to file sources.
   * Populated by `setFileSource` calls.
   * Required for supporting read after write.
   */
  fileSources = /* @__PURE__ */ new Map();
  symlinkCount;
  fds = /* @__PURE__ */ new Map();
  nextFd = 0;
  ready = false;
  readOnly = false;
  constructor(source, opts = {}) {
    super();
    if (opts.readOnly) this.readOnly = true;
    const pathOptions = opts;
    this.level =
      typeof pathOptions.level !== `undefined`
        ? pathOptions.level
        : DEFAULT_COMPRESSION_LEVEL;
    const ZipImplCls = opts.customZipImplementation ?? LibZipImpl;
    if (typeof source === `string`) {
      const { baseFs = new NodeFS() } = pathOptions;
      this.baseFs = baseFs;
      this.path = source;
    } else {
      this.path = null;
      this.baseFs = null;
    }
    if (opts.stats) {
      this.stats = opts.stats;
    } else {
      if (typeof source === `string`) {
        try {
          this.stats = this.baseFs.statSync(source);
        } catch (error) {
          if (error.code === `ENOENT` && pathOptions.create) {
            this.stats = makeDefaultStats();
          } else {
            throw error;
          }
        }
      } else {
        this.stats = makeDefaultStats();
      }
    }
    if (typeof source === `string`) {
      if (opts.create) {
        this.zipImpl = new ZipImplCls({
          buffer: makeEmptyArchive(),
          readOnly: this.readOnly,
        });
      } else {
        this.zipImpl = new ZipImplCls({
          path: source,
          baseFs: this.baseFs,
          readOnly: this.readOnly,
          size: this.stats.size,
        });
      }
    } else {
      this.zipImpl = new ZipImplCls({
        buffer: source ?? makeEmptyArchive(),
        readOnly: this.readOnly,
      });
    }
    this.listings.set(PortablePath.root, /* @__PURE__ */ new Set());
    const listings = this.zipImpl.getListings();
    for (let t = 0; t < listings.length; t++) {
      const raw = listings[t];
      if (ppath.isAbsolute(raw)) continue;
      const p = ppath.resolve(PortablePath.root, raw);
      this.registerEntry(p, t);
      if (raw.endsWith(`/`)) {
        this.registerListing(p);
      }
    }
    this.symlinkCount = this.zipImpl.getSymlinkCount();
    this.ready = true;
  }
  getExtractHint(hints) {
    for (const fileName of this.entries.keys()) {
      const ext = this.pathUtils.extname(fileName);
      if (hints.relevantExtensions.has(ext)) {
        return true;
      }
    }
    return false;
  }
  getAllFiles() {
    return Array.from(this.entries.keys());
  }
  getRealPath() {
    if (!this.path)
      throw new Error(`ZipFS don't have real paths when loaded from a buffer`);
    return this.path;
  }
  prepareClose() {
    if (!this.ready) throw EBUSY(`archive closed, close`);
    unwatchAllFiles(this);
  }
  getBufferAndClose() {
    this.prepareClose();
    if (this.entries.size === 0) {
      this.discardAndClose();
      return makeEmptyArchive();
    }
    try {
      return this.zipImpl.getBufferAndClose();
    } finally {
      this.ready = false;
    }
  }
  discardAndClose() {
    this.prepareClose();
    this.zipImpl.discard();
    this.ready = false;
  }
  saveAndClose() {
    if (!this.path || !this.baseFs)
      throw new Error(
        `ZipFS cannot be saved and must be discarded when loaded from a buffer`,
      );
    if (this.readOnly) {
      this.discardAndClose();
      return;
    }
    const newMode =
      this.baseFs.existsSync(this.path) || this.stats.mode === DEFAULT_MODE
        ? void 0
        : this.stats.mode;
    this.baseFs.writeFileSync(this.path, this.getBufferAndClose(), {
      mode: newMode,
    });
    this.ready = false;
  }
  resolve(p) {
    return ppath.resolve(PortablePath.root, p);
  }
  async openPromise(p, flags, mode) {
    return this.openSync(p, flags, mode);
  }
  openSync(p, flags, mode) {
    const fd = this.nextFd++;
    this.fds.set(fd, { cursor: 0, p });
    return fd;
  }
  hasOpenFileHandles() {
    return !!this.fds.size;
  }
  async opendirPromise(p, opts) {
    return this.opendirSync(p, opts);
  }
  opendirSync(p, opts = {}) {
    const resolvedP = this.resolveFilename(`opendir '${p}'`, p);
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
      throw ENOENT(`opendir '${p}'`);
    const directoryListing = this.listings.get(resolvedP);
    if (!directoryListing) throw ENOTDIR(`opendir '${p}'`);
    const entries = [...directoryListing];
    const fd = this.openSync(resolvedP, `r`);
    const onClose = () => {
      this.closeSync(fd);
    };
    return opendir(this, resolvedP, entries, { onClose });
  }
  async readPromise(fd, buffer, offset, length, position) {
    return this.readSync(fd, buffer, offset, length, position);
  }
  readSync(fd, buffer, offset = 0, length = buffer.byteLength, position = -1) {
    const entry = this.fds.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`read`);
    const realPosition =
      position === -1 || position === null ? entry.cursor : position;
    const source = this.readFileSync(entry.p);
    source.copy(buffer, offset, realPosition, realPosition + length);
    const bytesRead = Math.max(
      0,
      Math.min(source.length - realPosition, length),
    );
    if (position === -1 || position === null) entry.cursor += bytesRead;
    return bytesRead;
  }
  async writePromise(fd, buffer, offset, length, position) {
    if (typeof buffer === `string`) {
      return this.writeSync(fd, buffer, position);
    } else {
      return this.writeSync(fd, buffer, offset, length, position);
    }
  }
  writeSync(fd, buffer, offset, length, position) {
    const entry = this.fds.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`read`);
    throw new Error(`Unimplemented`);
  }
  async closePromise(fd) {
    return this.closeSync(fd);
  }
  closeSync(fd) {
    const entry = this.fds.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`read`);
    this.fds.delete(fd);
  }
  createReadStream(p, { encoding } = {}) {
    if (p === null) throw new Error(`Unimplemented`);
    const fd = this.openSync(p, `r`);
    const stream$1 = Object.assign(
      new stream.PassThrough({
        emitClose: true,
        autoDestroy: true,
        destroy: (error, callback) => {
          clearImmediate(immediate);
          this.closeSync(fd);
          callback(error);
        },
      }),
      {
        close() {
          stream$1.destroy();
        },
        bytesRead: 0,
        path: p,
        // "This property is `true` if the underlying file has not been opened yet"
        pending: false,
      },
    );
    const immediate = setImmediate(async () => {
      try {
        const data = await this.readFilePromise(p, encoding);
        stream$1.bytesRead = data.length;
        stream$1.end(data);
      } catch (error) {
        stream$1.destroy(error);
      }
    });
    return stream$1;
  }
  createWriteStream(p, { encoding } = {}) {
    if (this.readOnly) throw EROFS(`open '${p}'`);
    if (p === null) throw new Error(`Unimplemented`);
    const chunks = [];
    const fd = this.openSync(p, `w`);
    const stream$1 = Object.assign(
      new stream.PassThrough({
        autoDestroy: true,
        emitClose: true,
        destroy: (error, callback) => {
          try {
            if (error) {
              callback(error);
            } else {
              this.writeFileSync(p, Buffer.concat(chunks), encoding);
              callback(null);
            }
          } catch (err) {
            callback(err);
          } finally {
            this.closeSync(fd);
          }
        },
      }),
      {
        close() {
          stream$1.destroy();
        },
        bytesWritten: 0,
        path: p,
        // "This property is `true` if the underlying file has not been opened yet"
        pending: false,
      },
    );
    stream$1.on(`data`, (chunk) => {
      const chunkBuffer = Buffer.from(chunk);
      stream$1.bytesWritten += chunkBuffer.length;
      chunks.push(chunkBuffer);
    });
    return stream$1;
  }
  async realpathPromise(p) {
    return this.realpathSync(p);
  }
  realpathSync(p) {
    const resolvedP = this.resolveFilename(`lstat '${p}'`, p);
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
      throw ENOENT(`lstat '${p}'`);
    return resolvedP;
  }
  async existsPromise(p) {
    return this.existsSync(p);
  }
  existsSync(p) {
    if (!this.ready) throw EBUSY(`archive closed, existsSync '${p}'`);
    if (this.symlinkCount === 0) {
      const resolvedP2 = ppath.resolve(PortablePath.root, p);
      return this.entries.has(resolvedP2) || this.listings.has(resolvedP2);
    }
    let resolvedP;
    try {
      resolvedP = this.resolveFilename(`stat '${p}'`, p, void 0, false);
    } catch {
      return false;
    }
    if (resolvedP === void 0) return false;
    return this.entries.has(resolvedP) || this.listings.has(resolvedP);
  }
  async accessPromise(p, mode) {
    return this.accessSync(p, mode);
  }
  accessSync(p, mode = fs.constants.F_OK) {
    const resolvedP = this.resolveFilename(`access '${p}'`, p);
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
      throw ENOENT(`access '${p}'`);
    if (this.readOnly && mode & fs.constants.W_OK) {
      throw EROFS(`access '${p}'`);
    }
  }
  async statPromise(p, opts = { bigint: false }) {
    if (opts.bigint) return this.statSync(p, { bigint: true });
    return this.statSync(p);
  }
  statSync(p, opts = { bigint: false, throwIfNoEntry: true }) {
    const resolvedP = this.resolveFilename(
      `stat '${p}'`,
      p,
      void 0,
      opts.throwIfNoEntry,
    );
    if (resolvedP === void 0) return void 0;
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP)) {
      if (opts.throwIfNoEntry === false) return void 0;
      throw ENOENT(`stat '${p}'`);
    }
    if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
      throw ENOTDIR(`stat '${p}'`);
    return this.statImpl(`stat '${p}'`, resolvedP, opts);
  }
  async fstatPromise(fd, opts) {
    return this.fstatSync(fd, opts);
  }
  fstatSync(fd, opts) {
    const entry = this.fds.get(fd);
    if (typeof entry === `undefined`) throw EBADF(`fstatSync`);
    const { p } = entry;
    const resolvedP = this.resolveFilename(`stat '${p}'`, p);
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
      throw ENOENT(`stat '${p}'`);
    if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
      throw ENOTDIR(`stat '${p}'`);
    return this.statImpl(`fstat '${p}'`, resolvedP, opts);
  }
  async lstatPromise(p, opts = { bigint: false }) {
    if (opts.bigint) return this.lstatSync(p, { bigint: true });
    return this.lstatSync(p);
  }
  lstatSync(p, opts = { bigint: false, throwIfNoEntry: true }) {
    const resolvedP = this.resolveFilename(
      `lstat '${p}'`,
      p,
      false,
      opts.throwIfNoEntry,
    );
    if (resolvedP === void 0) return void 0;
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP)) {
      if (opts.throwIfNoEntry === false) return void 0;
      throw ENOENT(`lstat '${p}'`);
    }
    if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
      throw ENOTDIR(`lstat '${p}'`);
    return this.statImpl(`lstat '${p}'`, resolvedP, opts);
  }
  statImpl(reason, p, opts = {}) {
    const entry = this.entries.get(p);
    if (typeof entry !== `undefined`) {
      const stat = this.zipImpl.stat(entry);
      const crc = stat.crc;
      const size = stat.size;
      const mtimeMs = stat.mtime * 1e3;
      const uid = this.stats.uid;
      const gid = this.stats.gid;
      const blksize = 512;
      const blocks = Math.ceil(stat.size / blksize);
      const atimeMs = mtimeMs;
      const birthtimeMs = mtimeMs;
      const ctimeMs = mtimeMs;
      const atime = new Date(atimeMs);
      const birthtime = new Date(birthtimeMs);
      const ctime = new Date(ctimeMs);
      const mtime = new Date(mtimeMs);
      const type = this.listings.has(p)
        ? fs.constants.S_IFDIR
        : this.isSymbolicLink(entry)
          ? fs.constants.S_IFLNK
          : fs.constants.S_IFREG;
      const defaultMode = type === fs.constants.S_IFDIR ? 493 : 420;
      const mode = type | (this.getUnixMode(entry, defaultMode) & 511);
      const statInstance = Object.assign(new StatEntry(), {
        uid,
        gid,
        size,
        blksize,
        blocks,
        atime,
        birthtime,
        ctime,
        mtime,
        atimeMs,
        birthtimeMs,
        ctimeMs,
        mtimeMs,
        mode,
        crc,
      });
      return opts.bigint === true
        ? convertToBigIntStats(statInstance)
        : statInstance;
    }
    if (this.listings.has(p)) {
      const uid = this.stats.uid;
      const gid = this.stats.gid;
      const size = 0;
      const blksize = 512;
      const blocks = 0;
      const atimeMs = this.stats.mtimeMs;
      const birthtimeMs = this.stats.mtimeMs;
      const ctimeMs = this.stats.mtimeMs;
      const mtimeMs = this.stats.mtimeMs;
      const atime = new Date(atimeMs);
      const birthtime = new Date(birthtimeMs);
      const ctime = new Date(ctimeMs);
      const mtime = new Date(mtimeMs);
      const mode = fs.constants.S_IFDIR | 493;
      const crc = 0;
      const statInstance = Object.assign(new StatEntry(), {
        uid,
        gid,
        size,
        blksize,
        blocks,
        atime,
        birthtime,
        ctime,
        mtime,
        atimeMs,
        birthtimeMs,
        ctimeMs,
        mtimeMs,
        mode,
        crc,
      });
      return opts.bigint === true
        ? convertToBigIntStats(statInstance)
        : statInstance;
    }
    throw new Error(`Unreachable`);
  }
  getUnixMode(index, defaultMode) {
    const [opsys, attributes] = this.zipImpl.getExternalAttributes(index);
    if (opsys !== ZIP_UNIX) return defaultMode;
    return attributes >>> 16;
  }
  registerListing(p) {
    const existingListing = this.listings.get(p);
    if (existingListing) return existingListing;
    const parentListing = this.registerListing(ppath.dirname(p));
    parentListing.add(ppath.basename(p));
    const newListing = /* @__PURE__ */ new Set();
    this.listings.set(p, newListing);
    return newListing;
  }
  registerEntry(p, index) {
    const parentListing = this.registerListing(ppath.dirname(p));
    parentListing.add(ppath.basename(p));
    this.entries.set(p, index);
  }
  unregisterListing(p) {
    this.listings.delete(p);
    const parentListing = this.listings.get(ppath.dirname(p));
    parentListing?.delete(ppath.basename(p));
  }
  unregisterEntry(p) {
    this.unregisterListing(p);
    const entry = this.entries.get(p);
    this.entries.delete(p);
    if (typeof entry === `undefined`) return;
    this.fileSources.delete(entry);
    if (this.isSymbolicLink(entry)) {
      this.symlinkCount--;
    }
  }
  deleteEntry(p, index) {
    this.unregisterEntry(p);
    this.zipImpl.deleteEntry(index);
  }
  resolveFilename(
    reason,
    p,
    resolveLastComponent = true,
    throwIfNoEntry = true,
  ) {
    if (!this.ready) throw EBUSY(`archive closed, ${reason}`);
    let resolvedP = ppath.resolve(PortablePath.root, p);
    if (resolvedP === `/`) return PortablePath.root;
    const fileIndex = this.entries.get(resolvedP);
    if (resolveLastComponent && fileIndex !== void 0) {
      if (this.symlinkCount !== 0 && this.isSymbolicLink(fileIndex)) {
        const target = this.getFileSource(fileIndex).toString();
        return this.resolveFilename(
          reason,
          ppath.resolve(ppath.dirname(resolvedP), target),
          true,
          throwIfNoEntry,
        );
      } else {
        return resolvedP;
      }
    }
    while (true) {
      const parentP = this.resolveFilename(
        reason,
        ppath.dirname(resolvedP),
        true,
        throwIfNoEntry,
      );
      if (parentP === void 0) return parentP;
      const isDir = this.listings.has(parentP);
      const doesExist = this.entries.has(parentP);
      if (!isDir && !doesExist) {
        if (throwIfNoEntry === false) return void 0;
        throw ENOENT(reason);
      }
      if (!isDir) throw ENOTDIR(reason);
      resolvedP = ppath.resolve(parentP, ppath.basename(resolvedP));
      if (!resolveLastComponent || this.symlinkCount === 0) break;
      const index = this.zipImpl.locate(resolvedP.slice(1));
      if (index === -1) break;
      if (this.isSymbolicLink(index)) {
        const target = this.getFileSource(index).toString();
        resolvedP = ppath.resolve(ppath.dirname(resolvedP), target);
      } else {
        break;
      }
    }
    return resolvedP;
  }
  setFileSource(p, content) {
    const buffer = Buffer.isBuffer(content) ? content : Buffer.from(content);
    const target = ppath.relative(PortablePath.root, p);
    let compression = null;
    if (this.level !== `mixed`) {
      const method = this.level === 0 ? STORE : DEFLATE;
      compression = [method, this.level];
    }
    const newIndex = this.zipImpl.setFileSource(target, compression, buffer);
    this.fileSources.set(newIndex, buffer);
    return newIndex;
  }
  isSymbolicLink(index) {
    if (this.symlinkCount === 0) return false;
    const [opsys, attrs] = this.zipImpl.getExternalAttributes(index);
    if (opsys !== ZIP_UNIX) return false;
    const attributes = attrs >>> 16;
    return (attributes & fs.constants.S_IFMT) === fs.constants.S_IFLNK;
  }
  getFileSource(index, opts = { asyncDecompress: false }) {
    const cachedFileSource = this.fileSources.get(index);
    if (typeof cachedFileSource !== `undefined`) return cachedFileSource;
    const { data, compressionMethod } = this.zipImpl.getFileSource(index);
    if (compressionMethod === STORE) {
      if (this.zipImpl.filesShouldBeCached) this.fileSources.set(index, data);
      return data;
    } else if (compressionMethod === DEFLATE) {
      if (opts.asyncDecompress) {
        return new Promise((resolve, reject) => {
          zlib__default.default.inflateRaw(data, (error, result) => {
            if (error) {
              reject(error);
            } else {
              if (this.zipImpl.filesShouldBeCached)
                this.fileSources.set(index, result);
              resolve(result);
            }
          });
        });
      } else {
        const decompressedData = zlib__default.default.inflateRawSync(data);
        if (this.zipImpl.filesShouldBeCached)
          this.fileSources.set(index, decompressedData);
        return decompressedData;
      }
    } else {
      throw new Error(`Unsupported compression method: ${compressionMethod}`);
    }
  }
  async fchmodPromise(fd, mask) {
    return this.chmodPromise(this.fdToPath(fd, `fchmod`), mask);
  }
  fchmodSync(fd, mask) {
    return this.chmodSync(this.fdToPath(fd, `fchmodSync`), mask);
  }
  async chmodPromise(p, mask) {
    return this.chmodSync(p, mask);
  }
  chmodSync(p, mask) {
    if (this.readOnly) throw EROFS(`chmod '${p}'`);
    mask &= 493;
    const resolvedP = this.resolveFilename(`chmod '${p}'`, p, false);
    const entry = this.entries.get(resolvedP);
    if (typeof entry === `undefined`)
      throw new Error(
        `Assertion failed: The entry should have been registered (${resolvedP})`,
      );
    const oldMod = this.getUnixMode(entry, fs.constants.S_IFREG | 0);
    const newMod = (oldMod & ~511) | mask;
    this.zipImpl.setExternalAttributes(entry, ZIP_UNIX, newMod << 16);
  }
  async fchownPromise(fd, uid, gid) {
    return this.chownPromise(this.fdToPath(fd, `fchown`), uid, gid);
  }
  fchownSync(fd, uid, gid) {
    return this.chownSync(this.fdToPath(fd, `fchownSync`), uid, gid);
  }
  async chownPromise(p, uid, gid) {
    return this.chownSync(p, uid, gid);
  }
  chownSync(p, uid, gid) {
    throw new Error(`Unimplemented`);
  }
  async renamePromise(oldP, newP) {
    return this.renameSync(oldP, newP);
  }
  renameSync(oldP, newP) {
    throw new Error(`Unimplemented`);
  }
  async copyFilePromise(sourceP, destP, flags) {
    const { indexSource, indexDest, resolvedDestP } = this.prepareCopyFile(
      sourceP,
      destP,
      flags,
    );
    const source = await this.getFileSource(indexSource, {
      asyncDecompress: true,
    });
    const newIndex = this.setFileSource(resolvedDestP, source);
    if (newIndex !== indexDest) {
      this.registerEntry(resolvedDestP, newIndex);
    }
  }
  copyFileSync(sourceP, destP, flags = 0) {
    const { indexSource, indexDest, resolvedDestP } = this.prepareCopyFile(
      sourceP,
      destP,
      flags,
    );
    const source = this.getFileSource(indexSource);
    const newIndex = this.setFileSource(resolvedDestP, source);
    if (newIndex !== indexDest) {
      this.registerEntry(resolvedDestP, newIndex);
    }
  }
  prepareCopyFile(sourceP, destP, flags = 0) {
    if (this.readOnly) throw EROFS(`copyfile '${sourceP} -> '${destP}'`);
    if ((flags & fs.constants.COPYFILE_FICLONE_FORCE) !== 0)
      throw ENOSYS(
        `unsupported clone operation`,
        `copyfile '${sourceP}' -> ${destP}'`,
      );
    const resolvedSourceP = this.resolveFilename(
      `copyfile '${sourceP} -> ${destP}'`,
      sourceP,
    );
    const indexSource = this.entries.get(resolvedSourceP);
    if (typeof indexSource === `undefined`)
      throw EINVAL(`copyfile '${sourceP}' -> '${destP}'`);
    const resolvedDestP = this.resolveFilename(
      `copyfile '${sourceP}' -> ${destP}'`,
      destP,
    );
    const indexDest = this.entries.get(resolvedDestP);
    if (
      (flags &
        (fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE_FORCE)) !==
        0 &&
      typeof indexDest !== `undefined`
    )
      throw EEXIST(`copyfile '${sourceP}' -> '${destP}'`);
    return {
      indexSource,
      resolvedDestP,
      indexDest,
    };
  }
  async appendFilePromise(p, content, opts) {
    if (this.readOnly) throw EROFS(`open '${p}'`);
    if (typeof opts === `undefined`) opts = { flag: `a` };
    else if (typeof opts === `string`) opts = { flag: `a`, encoding: opts };
    else if (typeof opts.flag === `undefined`) opts = { flag: `a`, ...opts };
    return this.writeFilePromise(p, content, opts);
  }
  appendFileSync(p, content, opts = {}) {
    if (this.readOnly) throw EROFS(`open '${p}'`);
    if (typeof opts === `undefined`) opts = { flag: `a` };
    else if (typeof opts === `string`) opts = { flag: `a`, encoding: opts };
    else if (typeof opts.flag === `undefined`) opts = { flag: `a`, ...opts };
    return this.writeFileSync(p, content, opts);
  }
  fdToPath(fd, reason) {
    const path = this.fds.get(fd)?.p;
    if (typeof path === `undefined`) throw EBADF(reason);
    return path;
  }
  async writeFilePromise(p, content, opts) {
    const { encoding, mode, index, resolvedP } = this.prepareWriteFile(p, opts);
    if (
      index !== void 0 &&
      typeof opts === `object` &&
      opts.flag &&
      opts.flag.includes(`a`)
    )
      content = Buffer.concat([
        await this.getFileSource(index, { asyncDecompress: true }),
        Buffer.from(content),
      ]);
    if (encoding !== null) content = content.toString(encoding);
    const newIndex = this.setFileSource(resolvedP, content);
    if (newIndex !== index) this.registerEntry(resolvedP, newIndex);
    if (mode !== null) {
      await this.chmodPromise(resolvedP, mode);
    }
  }
  writeFileSync(p, content, opts) {
    const { encoding, mode, index, resolvedP } = this.prepareWriteFile(p, opts);
    if (
      index !== void 0 &&
      typeof opts === `object` &&
      opts.flag &&
      opts.flag.includes(`a`)
    )
      content = Buffer.concat([
        this.getFileSource(index),
        Buffer.from(content),
      ]);
    if (encoding !== null) content = content.toString(encoding);
    const newIndex = this.setFileSource(resolvedP, content);
    if (newIndex !== index) this.registerEntry(resolvedP, newIndex);
    if (mode !== null) {
      this.chmodSync(resolvedP, mode);
    }
  }
  prepareWriteFile(p, opts) {
    if (typeof p === `number`) p = this.fdToPath(p, `read`);
    if (this.readOnly) throw EROFS(`open '${p}'`);
    const resolvedP = this.resolveFilename(`open '${p}'`, p);
    if (this.listings.has(resolvedP)) throw EISDIR(`open '${p}'`);
    let encoding = null,
      mode = null;
    if (typeof opts === `string`) {
      encoding = opts;
    } else if (typeof opts === `object`) {
      ({ encoding = null, mode = null } = opts);
    }
    const index = this.entries.get(resolvedP);
    return {
      encoding,
      mode,
      resolvedP,
      index,
    };
  }
  async unlinkPromise(p) {
    return this.unlinkSync(p);
  }
  unlinkSync(p) {
    if (this.readOnly) throw EROFS(`unlink '${p}'`);
    const resolvedP = this.resolveFilename(`unlink '${p}'`, p);
    if (this.listings.has(resolvedP)) throw EISDIR(`unlink '${p}'`);
    const index = this.entries.get(resolvedP);
    if (typeof index === `undefined`) throw EINVAL(`unlink '${p}'`);
    this.deleteEntry(resolvedP, index);
  }
  async utimesPromise(p, atime, mtime) {
    return this.utimesSync(p, atime, mtime);
  }
  utimesSync(p, atime, mtime) {
    if (this.readOnly) throw EROFS(`utimes '${p}'`);
    const resolvedP = this.resolveFilename(`utimes '${p}'`, p);
    this.utimesImpl(resolvedP, mtime);
  }
  async lutimesPromise(p, atime, mtime) {
    return this.lutimesSync(p, atime, mtime);
  }
  lutimesSync(p, atime, mtime) {
    if (this.readOnly) throw EROFS(`lutimes '${p}'`);
    const resolvedP = this.resolveFilename(`utimes '${p}'`, p, false);
    this.utimesImpl(resolvedP, mtime);
  }
  utimesImpl(resolvedP, mtime) {
    if (this.listings.has(resolvedP)) {
      if (!this.entries.has(resolvedP)) this.hydrateDirectory(resolvedP);
    }
    const entry = this.entries.get(resolvedP);
    if (entry === void 0) throw new Error(`Unreachable`);
    this.zipImpl.setMtime(entry, toUnixTimestamp(mtime));
  }
  async mkdirPromise(p, opts) {
    return this.mkdirSync(p, opts);
  }
  mkdirSync(p, { mode = 493, recursive = false } = {}) {
    if (recursive) return this.mkdirpSync(p, { chmod: mode });
    if (this.readOnly) throw EROFS(`mkdir '${p}'`);
    const resolvedP = this.resolveFilename(`mkdir '${p}'`, p);
    if (this.entries.has(resolvedP) || this.listings.has(resolvedP))
      throw EEXIST(`mkdir '${p}'`);
    this.hydrateDirectory(resolvedP);
    this.chmodSync(resolvedP, mode);
    return void 0;
  }
  async rmdirPromise(p, opts) {
    return this.rmdirSync(p, opts);
  }
  rmdirSync(p, { recursive = false } = {}) {
    if (this.readOnly) throw EROFS(`rmdir '${p}'`);
    if (recursive) {
      this.removeSync(p);
      return;
    }
    const resolvedP = this.resolveFilename(`rmdir '${p}'`, p);
    const directoryListing = this.listings.get(resolvedP);
    if (!directoryListing) throw ENOTDIR(`rmdir '${p}'`);
    if (directoryListing.size > 0) throw ENOTEMPTY(`rmdir '${p}'`);
    const index = this.entries.get(resolvedP);
    if (typeof index === `undefined`) throw EINVAL(`rmdir '${p}'`);
    this.deleteEntry(p, index);
  }
  async rmPromise(p, opts) {
    return this.rmSync(p, opts);
  }
  rmSync(p, { recursive = false } = {}) {
    if (this.readOnly) throw EROFS(`rm '${p}'`);
    if (recursive) {
      this.removeSync(p);
      return;
    }
    const resolvedP = this.resolveFilename(`rm '${p}'`, p);
    const directoryListing = this.listings.get(resolvedP);
    if (!directoryListing) throw ENOTDIR(`rm '${p}'`);
    if (directoryListing.size > 0) throw ENOTEMPTY(`rm '${p}'`);
    const index = this.entries.get(resolvedP);
    if (typeof index === `undefined`) throw EINVAL(`rm '${p}'`);
    this.deleteEntry(p, index);
  }
  hydrateDirectory(resolvedP) {
    const index = this.zipImpl.addDirectory(
      ppath.relative(PortablePath.root, resolvedP),
    );
    this.registerListing(resolvedP);
    this.registerEntry(resolvedP, index);
    return index;
  }
  async linkPromise(existingP, newP) {
    return this.linkSync(existingP, newP);
  }
  linkSync(existingP, newP) {
    throw EOPNOTSUPP(`link '${existingP}' -> '${newP}'`);
  }
  async symlinkPromise(target, p) {
    return this.symlinkSync(target, p);
  }
  symlinkSync(target, p) {
    if (this.readOnly) throw EROFS(`symlink '${target}' -> '${p}'`);
    const resolvedP = this.resolveFilename(`symlink '${target}' -> '${p}'`, p);
    if (this.listings.has(resolvedP))
      throw EISDIR(`symlink '${target}' -> '${p}'`);
    if (this.entries.has(resolvedP))
      throw EEXIST(`symlink '${target}' -> '${p}'`);
    const index = this.setFileSource(resolvedP, target);
    this.registerEntry(resolvedP, index);
    this.zipImpl.setExternalAttributes(
      index,
      ZIP_UNIX,
      (fs.constants.S_IFLNK | 511) << 16,
    );
    this.symlinkCount += 1;
  }
  async readFilePromise(p, encoding) {
    if (typeof encoding === `object`)
      encoding = encoding ? encoding.encoding : void 0;
    const data = await this.readFileBuffer(p, { asyncDecompress: true });
    return encoding ? data.toString(encoding) : data;
  }
  readFileSync(p, encoding) {
    if (typeof encoding === `object`)
      encoding = encoding ? encoding.encoding : void 0;
    const data = this.readFileBuffer(p);
    return encoding ? data.toString(encoding) : data;
  }
  readFileBuffer(p, opts = { asyncDecompress: false }) {
    if (typeof p === `number`) p = this.fdToPath(p, `read`);
    const resolvedP = this.resolveFilename(`open '${p}'`, p);
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
      throw ENOENT(`open '${p}'`);
    if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
      throw ENOTDIR(`open '${p}'`);
    if (this.listings.has(resolvedP)) throw EISDIR(`read`);
    const entry = this.entries.get(resolvedP);
    if (entry === void 0) throw new Error(`Unreachable`);
    return this.getFileSource(entry, opts);
  }
  async readdirPromise(p, opts) {
    return this.readdirSync(p, opts);
  }
  readdirSync(p, opts) {
    const resolvedP = this.resolveFilename(`scandir '${p}'`, p);
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
      throw ENOENT(`scandir '${p}'`);
    const directoryListing = this.listings.get(resolvedP);
    if (!directoryListing) throw ENOTDIR(`scandir '${p}'`);
    if (opts?.recursive) {
      if (opts?.withFileTypes) {
        const entries = Array.from(directoryListing, (name) => {
          return Object.assign(this.statImpl(`lstat`, ppath.join(p, name)), {
            name,
            path: PortablePath.dot,
            parentPath: PortablePath.dot,
          });
        });
        for (const entry of entries) {
          if (!entry.isDirectory()) continue;
          const subPath = ppath.join(entry.path, entry.name);
          const subListing = this.listings.get(ppath.join(resolvedP, subPath));
          for (const child of subListing) {
            entries.push(
              Object.assign(
                this.statImpl(`lstat`, ppath.join(p, subPath, child)),
                {
                  name: child,
                  path: subPath,
                  parentPath: subPath,
                },
              ),
            );
          }
        }
        return entries;
      } else {
        const entries = [...directoryListing];
        for (const subPath of entries) {
          const subListing = this.listings.get(ppath.join(resolvedP, subPath));
          if (typeof subListing === `undefined`) continue;
          for (const child of subListing) {
            entries.push(ppath.join(subPath, child));
          }
        }
        return entries;
      }
    } else if (opts?.withFileTypes) {
      return Array.from(directoryListing, (name) => {
        return Object.assign(this.statImpl(`lstat`, ppath.join(p, name)), {
          name,
          path: void 0,
          parentPath: void 0,
        });
      });
    } else {
      return [...directoryListing];
    }
  }
  async readlinkPromise(p) {
    const entry = this.prepareReadlink(p);
    return (
      await this.getFileSource(entry, { asyncDecompress: true })
    ).toString();
  }
  readlinkSync(p) {
    const entry = this.prepareReadlink(p);
    return this.getFileSource(entry).toString();
  }
  prepareReadlink(p) {
    const resolvedP = this.resolveFilename(`readlink '${p}'`, p, false);
    if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
      throw ENOENT(`readlink '${p}'`);
    if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
      throw ENOTDIR(`open '${p}'`);
    if (this.listings.has(resolvedP)) throw EINVAL(`readlink '${p}'`);
    const entry = this.entries.get(resolvedP);
    if (entry === void 0) throw new Error(`Unreachable`);
    if (!this.isSymbolicLink(entry)) throw EINVAL(`readlink '${p}'`);
    return entry;
  }
  async truncatePromise(p, len = 0) {
    const resolvedP = this.resolveFilename(`open '${p}'`, p);
    const index = this.entries.get(resolvedP);
    if (typeof index === `undefined`) throw EINVAL(`open '${p}'`);
    const source = await this.getFileSource(index, { asyncDecompress: true });
    const truncated = Buffer.alloc(len, 0);
    source.copy(truncated);
    return await this.writeFilePromise(p, truncated);
  }
  truncateSync(p, len = 0) {
    const resolvedP = this.resolveFilename(`open '${p}'`, p);
    const index = this.entries.get(resolvedP);
    if (typeof index === `undefined`) throw EINVAL(`open '${p}'`);
    const source = this.getFileSource(index);
    const truncated = Buffer.alloc(len, 0);
    source.copy(truncated);
    return this.writeFileSync(p, truncated);
  }
  async ftruncatePromise(fd, len) {
    return this.truncatePromise(this.fdToPath(fd, `ftruncate`), len);
  }
  ftruncateSync(fd, len) {
    return this.truncateSync(this.fdToPath(fd, `ftruncateSync`), len);
  }
  watch(p, a, b) {
    let persistent;
    switch (typeof a) {
      case `function`:
      case `string`:
      case `undefined`:
        {
          persistent = true;
        }
        break;
      default:
        {
          ({ persistent = true } = a);
        }
        break;
    }
    if (!persistent) return { on: () => {}, close: () => {} };
    const interval = setInterval(() => {}, 24 * 60 * 60 * 1e3);
    return {
      on: () => {},
      close: () => {
        clearInterval(interval);
      },
    };
  }
  watchFile(p, a, b) {
    const resolvedP = ppath.resolve(PortablePath.root, p);
    return watchFile(this, resolvedP, a, b);
  }
  unwatchFile(p, cb) {
    const resolvedP = ppath.resolve(PortablePath.root, p);
    return unwatchFile(this, resolvedP, cb);
  }
}

const SIGNATURE = {
  CENTRAL_DIRECTORY: 33639248,
  END_OF_CENTRAL_DIRECTORY: 101010256,
};
const noCommentCDSize = 22;
class JsZipImpl {
  fd;
  baseFs;
  entries;
  filesShouldBeCached = false;
  constructor(opts) {
    if (`buffer` in opts)
      throw new Error(`Buffer based zip archives are not supported`);
    if (!opts.readOnly)
      throw new Error(`Writable zip archives are not supported`);
    this.baseFs = opts.baseFs;
    this.fd = this.baseFs.openSync(opts.path, `r`);
    try {
      this.entries = JsZipImpl.readZipSync(this.fd, this.baseFs, opts.size);
    } catch (error) {
      this.baseFs.closeSync(this.fd);
      this.fd = `closed`;
      throw error;
    }
  }
  static readZipSync(fd, baseFs, fileSize) {
    if (fileSize < noCommentCDSize)
      throw new Error(`Invalid ZIP file: EOCD not found`);
    let eocdOffset = -1;
    let eocdBuffer = Buffer.alloc(noCommentCDSize);
    baseFs.readSync(
      fd,
      eocdBuffer,
      0,
      noCommentCDSize,
      fileSize - noCommentCDSize,
    );
    if (eocdBuffer.readUInt32LE(0) === SIGNATURE.END_OF_CENTRAL_DIRECTORY) {
      eocdOffset = 0;
    } else {
      const bufferSize = Math.min(65557, fileSize);
      eocdBuffer = Buffer.alloc(bufferSize);
      baseFs.readSync(
        fd,
        eocdBuffer,
        0,
        bufferSize,
        Math.max(0, fileSize - bufferSize),
      );
      for (let i = eocdBuffer.length - 4; i >= 0; i--) {
        if (eocdBuffer.readUInt32LE(i) === SIGNATURE.END_OF_CENTRAL_DIRECTORY) {
          eocdOffset = i;
          break;
        }
      }
      if (eocdOffset === -1) {
        throw new Error(`Not a zip archive`);
      }
    }
    const totalEntries = eocdBuffer.readUInt16LE(eocdOffset + 10);
    const centralDirSize = eocdBuffer.readUInt32LE(eocdOffset + 12);
    const centralDirOffset = eocdBuffer.readUInt32LE(eocdOffset + 16);
    const commentLength = eocdBuffer.readUInt16LE(eocdOffset + 20);
    if (eocdOffset + commentLength + noCommentCDSize > eocdBuffer.length)
      throw new Error(`Zip archive inconsistent`);
    if (
      totalEntries == 65535 ||
      centralDirSize == 4294967295 ||
      centralDirOffset == 4294967295
    )
      throw new Error(`Zip 64 is not supported`);
    if (centralDirSize > fileSize) throw new Error(`Zip archive inconsistent`);
    if (totalEntries > centralDirSize / 46)
      throw new Error(`Zip archive inconsistent`);
    const cdBuffer = Buffer.alloc(centralDirSize);
    if (
      baseFs.readSync(fd, cdBuffer, 0, cdBuffer.length, centralDirOffset) !==
      cdBuffer.length
    )
      throw new Error(`Zip archive inconsistent`);
    const entries = [];
    let offset = 0;
    let index = 0;
    let sumCompressedSize = 0;
    while (index < totalEntries) {
      if (offset + 46 > cdBuffer.length)
        throw new Error(`Zip archive inconsistent`);
      if (cdBuffer.readUInt32LE(offset) !== SIGNATURE.CENTRAL_DIRECTORY)
        throw new Error(`Zip archive inconsistent`);
      const versionMadeBy = cdBuffer.readUInt16LE(offset + 4);
      const os = versionMadeBy >>> 8;
      const flags = cdBuffer.readUInt16LE(offset + 8);
      if ((flags & 1) !== 0)
        throw new Error(`Encrypted zip files are not supported`);
      const compressionMethod = cdBuffer.readUInt16LE(offset + 10);
      const crc = cdBuffer.readUInt32LE(offset + 16);
      const nameLength = cdBuffer.readUInt16LE(offset + 28);
      const extraLength = cdBuffer.readUInt16LE(offset + 30);
      const commentLength2 = cdBuffer.readUInt16LE(offset + 32);
      const localHeaderOffset = cdBuffer.readUInt32LE(offset + 42);
      const name = cdBuffer
        .toString(`utf8`, offset + 46, offset + 46 + nameLength)
        .replaceAll(`\0`, ` `);
      if (name.includes(`\0`)) throw new Error(`Invalid ZIP file`);
      const compressedSize = cdBuffer.readUInt32LE(offset + 20);
      const externalAttributes = cdBuffer.readUInt32LE(offset + 38);
      entries.push({
        name,
        os,
        mtime: SAFE_TIME,
        //we dont care,
        crc,
        compressionMethod,
        isSymbolicLink:
          os === ZIP_UNIX && ((externalAttributes >>> 16) & S_IFMT) === S_IFLNK,
        size: cdBuffer.readUInt32LE(offset + 24),
        compressedSize,
        externalAttributes,
        localHeaderOffset,
      });
      sumCompressedSize += compressedSize;
      index += 1;
      offset += 46 + nameLength + extraLength + commentLength2;
    }
    if (sumCompressedSize > fileSize)
      throw new Error(`Zip archive inconsistent`);
    if (offset !== cdBuffer.length) throw new Error(`Zip archive inconsistent`);
    return entries;
  }
  getExternalAttributes(index) {
    const entry = this.entries[index];
    return [entry.os, entry.externalAttributes];
  }
  getListings() {
    return this.entries.map((e) => e.name);
  }
  getSymlinkCount() {
    let count = 0;
    for (const entry of this.entries) if (entry.isSymbolicLink) count += 1;
    return count;
  }
  stat(index) {
    const entry = this.entries[index];
    return {
      crc: entry.crc,
      mtime: entry.mtime,
      size: entry.size,
    };
  }
  locate(name) {
    for (let ind = 0; ind < this.entries.length; ind++)
      if (this.entries[ind].name === name) return ind;
    return -1;
  }
  getFileSource(index) {
    if (this.fd === `closed`) throw new Error(`ZIP file is closed`);
    const entry = this.entries[index];
    const localHeaderBuf = Buffer.alloc(30);
    this.baseFs.readSync(
      this.fd,
      localHeaderBuf,
      0,
      localHeaderBuf.length,
      entry.localHeaderOffset,
    );
    const nameLength = localHeaderBuf.readUInt16LE(26);
    const extraLength = localHeaderBuf.readUInt16LE(28);
    const buffer = Buffer.alloc(entry.compressedSize);
    if (
      this.baseFs.readSync(
        this.fd,
        buffer,
        0,
        entry.compressedSize,
        entry.localHeaderOffset + 30 + nameLength + extraLength,
      ) !== entry.compressedSize
    )
      throw new Error(`Invalid ZIP file`);
    return { data: buffer, compressionMethod: entry.compressionMethod };
  }
  discard() {
    if (this.fd !== `closed`) {
      this.baseFs.closeSync(this.fd);
      this.fd = `closed`;
    }
  }
  addDirectory(path) {
    throw new Error(`Not implemented`);
  }
  deleteEntry(index) {
    throw new Error(`Not implemented`);
  }
  setMtime(index, mtime) {
    throw new Error(`Not implemented`);
  }
  getBufferAndClose() {
    throw new Error(`Not implemented`);
  }
  setFileSource(target, compression, buffer) {
    throw new Error(`Not implemented`);
  }
  setExternalAttributes(index, opsys, attributes) {
    throw new Error(`Not implemented`);
  }
}

setFactory(() => {
  const emZip = createModule();
  return makeInterface(emZip);
});

var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
  ErrorCode2["API_ERROR"] = `API_ERROR`;
  ErrorCode2["BUILTIN_NODE_RESOLUTION_FAILED"] =
    `BUILTIN_NODE_RESOLUTION_FAILED`;
  ErrorCode2["EXPORTS_RESOLUTION_FAILED"] = `EXPORTS_RESOLUTION_FAILED`;
  ErrorCode2["MISSING_DEPENDENCY"] = `MISSING_DEPENDENCY`;
  ErrorCode2["MISSING_PEER_DEPENDENCY"] = `MISSING_PEER_DEPENDENCY`;
  ErrorCode2["QUALIFIED_PATH_RESOLUTION_FAILED"] =
    `QUALIFIED_PATH_RESOLUTION_FAILED`;
  ErrorCode2["INTERNAL"] = `INTERNAL`;
  ErrorCode2["UNDECLARED_DEPENDENCY"] = `UNDECLARED_DEPENDENCY`;
  ErrorCode2["UNSUPPORTED"] = `UNSUPPORTED`;
  return ErrorCode2;
})(ErrorCode || {});
const MODULE_NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([
  "BUILTIN_NODE_RESOLUTION_FAILED" /* BUILTIN_NODE_RESOLUTION_FAILED */,
  "MISSING_DEPENDENCY" /* MISSING_DEPENDENCY */,
  "MISSING_PEER_DEPENDENCY" /* MISSING_PEER_DEPENDENCY */,
  "QUALIFIED_PATH_RESOLUTION_FAILED" /* QUALIFIED_PATH_RESOLUTION_FAILED */,
  "UNDECLARED_DEPENDENCY" /* UNDECLARED_DEPENDENCY */,
]);
function makeError(pnpCode, message, data = {}, code) {
  code ??= MODULE_NOT_FOUND_ERRORS.has(pnpCode) ? `MODULE_NOT_FOUND` : pnpCode;
  const propertySpec = {
    configurable: true,
    writable: true,
    enumerable: false,
  };
  return Object.defineProperties(new Error(message), {
    code: {
      ...propertySpec,
      value: code,
    },
    pnpCode: {
      ...propertySpec,
      value: pnpCode,
    },
    data: {
      ...propertySpec,
      value: data,
    },
  });
}
function getIssuerModule(parent) {
  let issuer = parent;
  while (
    issuer &&
    (issuer.id === `[eval]` || issuer.id === `<repl>` || !issuer.filename)
  )
    issuer = issuer.parent;
  return issuer || null;
}
function getPathForDisplay(p) {
  return npath.normalize(npath.fromPortablePath(p));
}

const [major, minor] = process.versions.node
  .split(`.`)
  .map((value) => parseInt(value, 10));
const WATCH_MODE_MESSAGE_USES_ARRAYS =
  major > 19 || (major === 19 && minor >= 2) || (major === 18 && minor >= 13);

function readPackageScope(checkPath) {
  const rootSeparatorIndex = checkPath.indexOf(npath.sep);
  let separatorIndex;
  do {
    separatorIndex = checkPath.lastIndexOf(npath.sep);
    checkPath = checkPath.slice(0, separatorIndex);
    if (checkPath.endsWith(`${npath.sep}node_modules`)) return false;
    const pjson = readPackage(checkPath + npath.sep);
    if (pjson) {
      return {
        data: pjson,
        path: checkPath,
      };
    }
  } while (separatorIndex > rootSeparatorIndex);
  return false;
}
function readPackage(requestPath) {
  const jsonPath = npath.resolve(requestPath, `package.json`);
  if (!fs__default.default.existsSync(jsonPath)) return null;
  return JSON.parse(fs__default.default.readFileSync(jsonPath, `utf8`));
}
function ERR_REQUIRE_ESM(filename, parentPath = null) {
  const basename =
    parentPath &&
    path__default.default.basename(filename) ===
      path__default.default.basename(parentPath)
      ? filename
      : path__default.default.basename(filename);
  const msg = `require() of ES Module ${filename}${parentPath ? ` from ${parentPath}` : ``} not supported.
Instead change the require of ${basename} in ${parentPath} to a dynamic import() which is available in all CommonJS modules.`;
  const err = new Error(msg);
  err.code = `ERR_REQUIRE_ESM`;
  return err;
}
function reportRequiredFilesToWatchMode(files) {
  if (process.env.WATCH_REPORT_DEPENDENCIES && process.send) {
    files = files.map((filename) =>
      npath.fromPortablePath(
        VirtualFS.resolveVirtual(npath.toPortablePath(filename)),
      ),
    );
    if (WATCH_MODE_MESSAGE_USES_ARRAYS) {
      process.send({ "watch:require": files });
    } else {
      for (const filename of files) {
        process.send({ "watch:require": filename });
      }
    }
  }
}

function applyPatch(pnpapi, opts) {
  let enableNativeHooks = true;
  process.versions.pnp = String(pnpapi.VERSIONS.std);
  const moduleExports = require$$0__default.default;
  moduleExports.findPnpApi = (lookupSource) => {
    const lookupPath =
      lookupSource instanceof URL
        ? url.fileURLToPath(lookupSource)
        : lookupSource;
    const apiPath = opts.manager.findApiPathFor(lookupPath);
    if (apiPath === null) return null;
    const apiEntry = opts.manager.getApiEntry(apiPath, true);
    return apiEntry.instance.findPackageLocator(lookupPath)
      ? apiEntry.instance
      : null;
  };
  function getRequireStack(parent) {
    const requireStack = [];
    for (let cursor = parent; cursor; cursor = cursor.parent)
      requireStack.push(cursor.filename || cursor.id);
    return requireStack;
  }
  const originalModuleLoad = require$$0.Module._load;
  require$$0.Module._load = function (request, parent, isMain) {
    if (request === `pnpapi`) {
      const parentApiPath = opts.manager.getApiPathFromParent(parent);
      if (parentApiPath) {
        return opts.manager.getApiEntry(parentApiPath, true).instance;
      }
    }
    return originalModuleLoad.call(require$$0.Module, request, parent, isMain);
  };
  function getIssuerSpecsFromPaths(paths) {
    return paths.map((path) => ({
      apiPath: opts.manager.findApiPathFor(path),
      path,
      module: null,
    }));
  }
  function getIssuerSpecsFromModule(module) {
    if (
      module &&
      module.id !== `<repl>` &&
      module.id !== `internal/preload` &&
      !module.parent &&
      !module.filename &&
      module.paths.length > 0
    ) {
      return [
        {
          apiPath: opts.manager.findApiPathFor(module.paths[0]),
          path: module.paths[0],
          module,
        },
      ];
    }
    const issuer = getIssuerModule(module);
    if (issuer !== null) {
      const path = npath.dirname(issuer.filename);
      const apiPath = opts.manager.getApiPathFromParent(issuer);
      return [{ apiPath, path, module }];
    } else {
      const path = process.cwd();
      const apiPath =
        opts.manager.findApiPathFor(npath.join(path, `[file]`)) ??
        opts.manager.getApiPathFromParent(null);
      return [{ apiPath, path, module }];
    }
  }
  function makeFakeParent(path) {
    const fakeParent = new require$$0.Module(``);
    const fakeFilePath = npath.join(path, `[file]`);
    fakeParent.paths = require$$0.Module._nodeModulePaths(fakeFilePath);
    return fakeParent;
  }
  const pathRegExp =
    /^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:@[^/]+\/)?[^/]+)\/*(.*|)$/;
  const originalModuleResolveFilename = require$$0.Module._resolveFilename;
  require$$0.Module._resolveFilename = function (
    request,
    parent,
    isMain,
    options,
  ) {
    if (require$$0.isBuiltin(request)) return request;
    if (!enableNativeHooks)
      return originalModuleResolveFilename.call(
        require$$0.Module,
        request,
        parent,
        isMain,
        options,
      );
    if (options && options.plugnplay === false) {
      const { plugnplay, ...forwardedOptions } = options;
      try {
        enableNativeHooks = false;
        return originalModuleResolveFilename.call(
          require$$0.Module,
          request,
          parent,
          isMain,
          forwardedOptions,
        );
      } finally {
        enableNativeHooks = true;
      }
    }
    if (options) {
      const optionNames = new Set(Object.keys(options));
      optionNames.delete(`paths`);
      optionNames.delete(`plugnplay`);
      optionNames.delete(`conditions`);
      if (optionNames.size > 0) {
        throw makeError(
          ErrorCode.UNSUPPORTED,
          `Some options passed to require() aren't supported by PnP yet (${Array.from(optionNames).join(`, `)})`,
        );
      }
    }
    const issuerSpecs =
      options && options.paths
        ? getIssuerSpecsFromPaths(options.paths)
        : getIssuerSpecsFromModule(parent);
    if (request.match(pathRegExp) === null) {
      const parentDirectory =
        parent?.filename != null ? npath.dirname(parent.filename) : null;
      const absoluteRequest = npath.isAbsolute(request)
        ? request
        : parentDirectory !== null
          ? npath.resolve(parentDirectory, request)
          : null;
      if (absoluteRequest !== null) {
        const apiPath =
          parent && parentDirectory === npath.dirname(absoluteRequest)
            ? opts.manager.getApiPathFromParent(parent)
            : opts.manager.findApiPathFor(absoluteRequest);
        if (apiPath !== null) {
          issuerSpecs.unshift({
            apiPath,
            path: parentDirectory,
            module: null,
          });
        }
      }
    }
    let firstError;
    for (const { apiPath, path, module } of issuerSpecs) {
      let resolution;
      const issuerApi =
        apiPath !== null
          ? opts.manager.getApiEntry(apiPath, true).instance
          : null;
      try {
        if (issuerApi !== null) {
          resolution = issuerApi.resolveRequest(
            request,
            path !== null ? `${path}/` : null,
            {
              conditions: options?.conditions,
            },
          );
        } else {
          if (path === null)
            throw new Error(`Assertion failed: Expected the path to be set`);
          resolution = originalModuleResolveFilename.call(
            require$$0.Module,
            request,
            module || makeFakeParent(path),
            isMain,
            {
              conditions: options?.conditions,
            },
          );
        }
      } catch (error) {
        firstError = firstError || error;
        continue;
      }
      if (resolution !== null) {
        return resolution;
      }
    }
    const requireStack = getRequireStack(parent);
    Object.defineProperty(firstError, `requireStack`, {
      configurable: true,
      writable: true,
      enumerable: false,
      value: requireStack,
    });
    if (requireStack.length > 0)
      firstError.message += `
Require stack:
- ${requireStack.join(`
- `)}`;
    if (typeof firstError.pnpCode === `string`)
      Error.captureStackTrace(firstError);
    throw firstError;
  };
  const originalFindPath = require$$0.Module._findPath;
  require$$0.Module._findPath = function (request, paths, isMain) {
    if (request === `pnpapi`) return false;
    if (!enableNativeHooks)
      return originalFindPath.call(require$$0.Module, request, paths, isMain);
    const isAbsolute = npath.isAbsolute(request);
    if (isAbsolute) paths = [``];
    else if (!paths || paths.length === 0) return false;
    for (const path of paths) {
      let resolution;
      try {
        const pnpApiPath = opts.manager.findApiPathFor(
          isAbsolute ? request : path,
        );
        if (pnpApiPath !== null) {
          const api = opts.manager.getApiEntry(pnpApiPath, true).instance;
          resolution = api.resolveRequest(request, path) || false;
        } else {
          resolution = originalFindPath.call(
            require$$0.Module,
            request,
            [path],
            isMain,
          );
        }
      } catch {
        continue;
      }
      if (resolution) {
        return resolution;
      }
    }
    return false;
  };
  if (!process.features.require_module) {
    const originalExtensionJSFunction = require$$0.Module._extensions[`.js`];
    require$$0.Module._extensions[`.js`] = function (module, filename) {
      if (filename.endsWith(`.js`)) {
        const pkg = readPackageScope(filename);
        if (pkg && pkg.data?.type === `module`) {
          const err = ERR_REQUIRE_ESM(filename, module.parent?.filename);
          Error.captureStackTrace(err);
          throw err;
        }
      }
      originalExtensionJSFunction.call(this, module, filename);
    };
  }
  const originalDlopen = process.dlopen;
  process.dlopen = function (...args) {
    const [module, filename, ...rest] = args;
    return originalDlopen.call(
      this,
      module,
      npath.fromPortablePath(
        VirtualFS.resolveVirtual(npath.toPortablePath(filename)),
      ),
      ...rest,
    );
  };
  const originalEmit = process.emit;
  process.emit = function (name, data, ...args) {
    if (
      name === `warning` &&
      typeof data === `object` &&
      data.name === `ExperimentalWarning` &&
      (data.message.includes(`--experimental-loader`) ||
        data.message.includes(`Custom ESM Loaders is an experimental feature`))
    )
      return false;
    return originalEmit.apply(process, arguments);
  };
  patchFs(fs__default.default, new PosixFS(opts.fakeFs));
}

function hydrateRuntimeState(data, { basePath }) {
  const portablePath = npath.toPortablePath(basePath);
  const absolutePortablePath = ppath.resolve(portablePath);
  const ignorePattern =
    data.ignorePatternData !== null ? new RegExp(data.ignorePatternData) : null;
  const packageLocatorsByLocations = /* @__PURE__ */ new Map();
  const packageRegistry = new Map(
    data.packageRegistryData.map(([packageName, packageStoreData]) => {
      return [
        packageName,
        new Map(
          packageStoreData.map(([packageReference, packageInformationData]) => {
            if ((packageName === null) !== (packageReference === null))
              throw new Error(
                `Assertion failed: The name and reference should be null, or neither should`,
              );
            const discardFromLookup =
              packageInformationData.discardFromLookup ?? false;
            const packageLocator = {
              name: packageName,
              reference: packageReference,
            };
            const entry = packageLocatorsByLocations.get(
              packageInformationData.packageLocation,
            );
            if (!entry) {
              packageLocatorsByLocations.set(
                packageInformationData.packageLocation,
                { locator: packageLocator, discardFromLookup },
              );
            } else {
              entry.discardFromLookup =
                entry.discardFromLookup && discardFromLookup;
              if (!discardFromLookup) {
                entry.locator = packageLocator;
              }
            }
            let resolvedPackageLocation = null;
            return [
              packageReference,
              {
                packageDependencies: new Map(
                  packageInformationData.packageDependencies,
                ),
                packagePeers: new Set(packageInformationData.packagePeers),
                linkType: packageInformationData.linkType,
                discardFromLookup,
                // we only need this for packages that are used by the currently running script
                // this is a lazy getter because `ppath.join` has some overhead
                get packageLocation() {
                  return (
                    resolvedPackageLocation ||
                    (resolvedPackageLocation = ppath.join(
                      absolutePortablePath,
                      packageInformationData.packageLocation,
                    ))
                  );
                },
              },
            ];
          }),
        ),
      ];
    }),
  );
  const fallbackExclusionList = new Map(
    data.fallbackExclusionList.map(([packageName, packageReferences]) => {
      return [packageName, new Set(packageReferences)];
    }),
  );
  const fallbackPool = new Map(data.fallbackPool);
  const dependencyTreeRoots = data.dependencyTreeRoots;
  const enableTopLevelFallback = data.enableTopLevelFallback;
  return {
    basePath: portablePath,
    dependencyTreeRoots,
    enableTopLevelFallback,
    fallbackExclusionList,
    pnpZipBackend: data.pnpZipBackend,
    fallbackPool,
    ignorePattern,
    packageLocatorsByLocations,
    packageRegistry,
  };
}

const ArrayIsArray = Array.isArray;
const JSONStringify = JSON.stringify;
const ObjectGetOwnPropertyNames = Object.getOwnPropertyNames;
const ObjectPrototypeHasOwnProperty = (obj, prop) =>
  Object.prototype.hasOwnProperty.call(obj, prop);
const RegExpPrototypeExec = (obj, string) =>
  RegExp.prototype.exec.call(obj, string);
const RegExpPrototypeSymbolReplace = (obj, ...rest) =>
  RegExp.prototype[Symbol.replace].apply(obj, rest);
const StringPrototypeEndsWith = (str, ...rest) =>
  String.prototype.endsWith.apply(str, rest);
const StringPrototypeIncludes = (str, ...rest) =>
  String.prototype.includes.apply(str, rest);
const StringPrototypeLastIndexOf = (str, ...rest) =>
  String.prototype.lastIndexOf.apply(str, rest);
const StringPrototypeIndexOf = (str, ...rest) =>
  String.prototype.indexOf.apply(str, rest);
const StringPrototypeReplace = (str, ...rest) =>
  String.prototype.replace.apply(str, rest);
const StringPrototypeSlice = (str, ...rest) =>
  String.prototype.slice.apply(str, rest);
const StringPrototypeStartsWith = (str, ...rest) =>
  String.prototype.startsWith.apply(str, rest);
const SafeMap = Map;
const JSONParse = JSON.parse;

function createErrorType(code, messageCreator, errorType) {
  return class extends errorType {
    constructor(...args) {
      super(messageCreator(...args));
      this.code = code;
      this.name = `${errorType.name} [${code}]`;
    }
  };
}
const ERR_PACKAGE_IMPORT_NOT_DEFINED = createErrorType(
  `ERR_PACKAGE_IMPORT_NOT_DEFINED`,
  (specifier, packagePath, base) => {
    return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath}package.json` : ``} imported from ${base}`;
  },
  TypeError,
);
const ERR_INVALID_MODULE_SPECIFIER = createErrorType(
  `ERR_INVALID_MODULE_SPECIFIER`,
  (request, reason, base = void 0) => {
    return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ``}`;
  },
  TypeError,
);
const ERR_INVALID_PACKAGE_TARGET = createErrorType(
  `ERR_INVALID_PACKAGE_TARGET`,
  (pkgPath, key, target, isImport = false, base = void 0) => {
    const relError =
      typeof target === `string` &&
      !isImport &&
      target.length &&
      !StringPrototypeStartsWith(target, `./`);
    if (key === `.`) {
      assert__default.default(isImport === false);
      return `Invalid "exports" main target ${JSONStringify(target)} defined in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ``}${relError ? `; targets must start with "./"` : ``}`;
    }
    return `Invalid "${isImport ? `imports` : `exports`}" target ${JSONStringify(
      target,
    )} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ``}${relError ? `; targets must start with "./"` : ``}`;
  },
  Error,
);
const ERR_INVALID_PACKAGE_CONFIG = createErrorType(
  `ERR_INVALID_PACKAGE_CONFIG`,
  (path, base, message) => {
    return `Invalid package config ${path}${base ? ` while importing ${base}` : ``}${message ? `. ${message}` : ``}`;
  },
  Error,
);
const ERR_PACKAGE_PATH_NOT_EXPORTED = createErrorType(
  "ERR_PACKAGE_PATH_NOT_EXPORTED",
  (pkgPath, subpath, base = void 0) => {
    if (subpath === ".")
      return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
    return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
  },
  Error,
);

function filterOwnProperties(source, keys) {
  const filtered = /* @__PURE__ */ Object.create(null);
  for (let i = 0; i < keys.length; i++) {
    const key = keys[i];
    if (ObjectPrototypeHasOwnProperty(source, key)) {
      filtered[key] = source[key];
    }
  }
  return filtered;
}

const packageJSONCache = new SafeMap();
function getPackageConfig(path, specifier, base, readFileSyncFn) {
  const existing = packageJSONCache.get(path);
  if (existing !== void 0) {
    return existing;
  }
  const source = readFileSyncFn(path);
  if (source === void 0) {
    const packageConfig2 = {
      pjsonPath: path,
      exists: false,
      main: void 0,
      name: void 0,
      type: "none",
      exports: void 0,
      imports: void 0,
    };
    packageJSONCache.set(path, packageConfig2);
    return packageConfig2;
  }
  let packageJSON;
  try {
    packageJSON = JSONParse(source);
  } catch (error) {
    throw new ERR_INVALID_PACKAGE_CONFIG(
      path,
      (base ? `"${specifier}" from ` : "") +
        url.fileURLToPath(base || specifier),
      error.message,
    );
  }
  let { imports, main, name, type } = filterOwnProperties(packageJSON, [
    "imports",
    "main",
    "name",
    "type",
  ]);
  const exports = ObjectPrototypeHasOwnProperty(packageJSON, "exports")
    ? packageJSON.exports
    : void 0;
  if (typeof imports !== "object" || imports === null) {
    imports = void 0;
  }
  if (typeof main !== "string") {
    main = void 0;
  }
  if (typeof name !== "string") {
    name = void 0;
  }
  if (type !== "module" && type !== "commonjs") {
    type = "none";
  }
  const packageConfig = {
    pjsonPath: path,
    exists: true,
    main,
    name,
    type,
    exports,
    imports,
  };
  packageJSONCache.set(path, packageConfig);
  return packageConfig;
}
function getPackageScopeConfig(resolved, readFileSyncFn) {
  let packageJSONUrl = new URL("./package.json", resolved);
  while (true) {
    const packageJSONPath2 = packageJSONUrl.pathname;
    if (
      StringPrototypeEndsWith(packageJSONPath2, "node_modules/package.json")
    ) {
      break;
    }
    const packageConfig2 = getPackageConfig(
      url.fileURLToPath(packageJSONUrl),
      resolved,
      void 0,
      readFileSyncFn,
    );
    if (packageConfig2.exists) {
      return packageConfig2;
    }
    const lastPackageJSONUrl = packageJSONUrl;
    packageJSONUrl = new URL("../package.json", packageJSONUrl);
    if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
      break;
    }
  }
  const packageJSONPath = url.fileURLToPath(packageJSONUrl);
  const packageConfig = {
    pjsonPath: packageJSONPath,
    exists: false,
    main: void 0,
    name: void 0,
    type: "none",
    exports: void 0,
    imports: void 0,
  };
  packageJSONCache.set(packageJSONPath, packageConfig);
  return packageConfig;
}

function throwImportNotDefined(specifier, packageJSONUrl, base) {
  throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(
    specifier,
    packageJSONUrl && url.fileURLToPath(new URL(".", packageJSONUrl)),
    url.fileURLToPath(base),
  );
}
function throwInvalidSubpath(subpath, packageJSONUrl, internal, base) {
  const reason = `request is not a valid subpath for the "${internal ? "imports" : "exports"}" resolution of ${url.fileURLToPath(packageJSONUrl)}`;
  throw new ERR_INVALID_MODULE_SPECIFIER(
    subpath,
    reason,
    base && url.fileURLToPath(base),
  );
}
function throwInvalidPackageTarget(
  subpath,
  target,
  packageJSONUrl,
  internal,
  base,
) {
  if (typeof target === "object" && target !== null) {
    target = JSONStringify(target, null, "");
  } else {
    target = `${target}`;
  }
  throw new ERR_INVALID_PACKAGE_TARGET(
    url.fileURLToPath(new URL(".", packageJSONUrl)),
    subpath,
    target,
    internal,
    base && url.fileURLToPath(base),
  );
}
const invalidSegmentRegEx =
  /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
const patternRegEx = /\*/g;
function resolvePackageTargetString(
  target,
  subpath,
  match,
  packageJSONUrl,
  base,
  pattern,
  internal,
  conditions,
) {
  if (subpath !== "" && !pattern && target[target.length - 1] !== "/")
    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
  if (!StringPrototypeStartsWith(target, "./")) {
    if (
      internal &&
      !StringPrototypeStartsWith(target, "../") &&
      !StringPrototypeStartsWith(target, "/")
    ) {
      let isURL = false;
      try {
        new URL(target);
        isURL = true;
      } catch {}
      if (!isURL) {
        const exportTarget = pattern
          ? RegExpPrototypeSymbolReplace(patternRegEx, target, () => subpath)
          : target + subpath;
        return exportTarget;
      }
    }
    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
  }
  if (
    RegExpPrototypeExec(
      invalidSegmentRegEx,
      StringPrototypeSlice(target, 2),
    ) !== null
  )
    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
  const resolved = new URL(target, packageJSONUrl);
  const resolvedPath = resolved.pathname;
  const packagePath = new URL(".", packageJSONUrl).pathname;
  if (!StringPrototypeStartsWith(resolvedPath, packagePath))
    throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base);
  if (subpath === "") return resolved;
  if (RegExpPrototypeExec(invalidSegmentRegEx, subpath) !== null) {
    const request = pattern
      ? StringPrototypeReplace(match, "*", () => subpath)
      : match + subpath;
    throwInvalidSubpath(request, packageJSONUrl, internal, base);
  }
  if (pattern) {
    return new URL(
      RegExpPrototypeSymbolReplace(patternRegEx, resolved.href, () => subpath),
    );
  }
  return new URL(subpath, resolved);
}
function isArrayIndex(key) {
  const keyNum = +key;
  if (`${keyNum}` !== key) return false;
  return keyNum >= 0 && keyNum < 4294967295;
}
function resolvePackageTarget(
  packageJSONUrl,
  target,
  subpath,
  packageSubpath,
  base,
  pattern,
  internal,
  conditions,
) {
  if (typeof target === "string") {
    return resolvePackageTargetString(
      target,
      subpath,
      packageSubpath,
      packageJSONUrl,
      base,
      pattern,
      internal,
    );
  } else if (ArrayIsArray(target)) {
    if (target.length === 0) {
      return null;
    }
    let lastException;
    for (let i = 0; i < target.length; i++) {
      const targetItem = target[i];
      let resolveResult;
      try {
        resolveResult = resolvePackageTarget(
          packageJSONUrl,
          targetItem,
          subpath,
          packageSubpath,
          base,
          pattern,
          internal,
          conditions,
        );
      } catch (e) {
        lastException = e;
        if (e.code === "ERR_INVALID_PACKAGE_TARGET") {
          continue;
        }
        throw e;
      }
      if (resolveResult === void 0) {
        continue;
      }
      if (resolveResult === null) {
        lastException = null;
        continue;
      }
      return resolveResult;
    }
    if (lastException === void 0 || lastException === null)
      return lastException;
    throw lastException;
  } else if (typeof target === "object" && target !== null) {
    const keys = ObjectGetOwnPropertyNames(target);
    for (let i = 0; i < keys.length; i++) {
      const key = keys[i];
      if (isArrayIndex(key)) {
        throw new ERR_INVALID_PACKAGE_CONFIG(
          url.fileURLToPath(packageJSONUrl),
          base,
          '"exports" cannot contain numeric property keys.',
        );
      }
    }
    for (let i = 0; i < keys.length; i++) {
      const key = keys[i];
      if (key === "default" || conditions.has(key)) {
        const conditionalTarget = target[key];
        const resolveResult = resolvePackageTarget(
          packageJSONUrl,
          conditionalTarget,
          subpath,
          packageSubpath,
          base,
          pattern,
          internal,
          conditions,
        );
        if (resolveResult === void 0) continue;
        return resolveResult;
      }
    }
    return void 0;
  } else if (target === null) {
    return null;
  }
  throwInvalidPackageTarget(
    packageSubpath,
    target,
    packageJSONUrl,
    internal,
    base,
  );
}
function patternKeyCompare(a, b) {
  const aPatternIndex = StringPrototypeIndexOf(a, "*");
  const bPatternIndex = StringPrototypeIndexOf(b, "*");
  const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
  const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
  if (baseLenA > baseLenB) return -1;
  if (baseLenB > baseLenA) return 1;
  if (aPatternIndex === -1) return 1;
  if (bPatternIndex === -1) return -1;
  if (a.length > b.length) return -1;
  if (b.length > a.length) return 1;
  return 0;
}
function isConditionalExportsMainSugar(exports, packageJSONUrl, base) {
  if (typeof exports === "string" || ArrayIsArray(exports)) return true;
  if (typeof exports !== "object" || exports === null) return false;
  const keys = ObjectGetOwnPropertyNames(exports);
  let isConditionalSugar = false;
  let i = 0;
  for (let j = 0; j < keys.length; j++) {
    const key = keys[j];
    const curIsConditionalSugar = key === "" || key[0] !== ".";
    if (i++ === 0) {
      isConditionalSugar = curIsConditionalSugar;
    } else if (isConditionalSugar !== curIsConditionalSugar) {
      throw new ERR_INVALID_PACKAGE_CONFIG(
        url.fileURLToPath(packageJSONUrl),
        base,
        `"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`,
      );
    }
  }
  return isConditionalSugar;
}
function throwExportsNotFound(subpath, packageJSONUrl, base) {
  throw new ERR_PACKAGE_PATH_NOT_EXPORTED(
    url.fileURLToPath(new URL(".", packageJSONUrl)),
    subpath,
    base && url.fileURLToPath(base),
  );
}
const emittedPackageWarnings = /* @__PURE__ */ new Set();
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
  const pjsonPath = url.fileURLToPath(pjsonUrl);
  if (emittedPackageWarnings.has(pjsonPath + "|" + match)) return;
  emittedPackageWarnings.add(pjsonPath + "|" + match);
  process.emitWarning(
    `Use of deprecated trailing slash pattern mapping "${match}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${url.fileURLToPath(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`,
    "DeprecationWarning",
    "DEP0155",
  );
}
function packageExportsResolve({
  packageJSONUrl,
  packageSubpath,
  exports,
  base,
  conditions,
}) {
  if (isConditionalExportsMainSugar(exports, packageJSONUrl, base))
    exports = { ".": exports };
  if (
    ObjectPrototypeHasOwnProperty(exports, packageSubpath) &&
    !StringPrototypeIncludes(packageSubpath, "*") &&
    !StringPrototypeEndsWith(packageSubpath, "/")
  ) {
    const target = exports[packageSubpath];
    const resolveResult = resolvePackageTarget(
      packageJSONUrl,
      target,
      "",
      packageSubpath,
      base,
      false,
      false,
      conditions,
    );
    if (resolveResult == null) {
      throwExportsNotFound(packageSubpath, packageJSONUrl, base);
    }
    return resolveResult;
  }
  let bestMatch = "";
  let bestMatchSubpath;
  const keys = ObjectGetOwnPropertyNames(exports);
  for (let i = 0; i < keys.length; i++) {
    const key = keys[i];
    const patternIndex = StringPrototypeIndexOf(key, "*");
    if (
      patternIndex !== -1 &&
      StringPrototypeStartsWith(
        packageSubpath,
        StringPrototypeSlice(key, 0, patternIndex),
      )
    ) {
      if (StringPrototypeEndsWith(packageSubpath, "/"))
        emitTrailingSlashPatternDeprecation(
          packageSubpath,
          packageJSONUrl,
          base,
        );
      const patternTrailer = StringPrototypeSlice(key, patternIndex + 1);
      if (
        packageSubpath.length >= key.length &&
        StringPrototypeEndsWith(packageSubpath, patternTrailer) &&
        patternKeyCompare(bestMatch, key) === 1 &&
        StringPrototypeLastIndexOf(key, "*") === patternIndex
      ) {
        bestMatch = key;
        bestMatchSubpath = StringPrototypeSlice(
          packageSubpath,
          patternIndex,
          packageSubpath.length - patternTrailer.length,
        );
      }
    }
  }
  if (bestMatch) {
    const target = exports[bestMatch];
    const resolveResult = resolvePackageTarget(
      packageJSONUrl,
      target,
      bestMatchSubpath,
      bestMatch,
      base,
      true,
      false,
      conditions,
    );
    if (resolveResult == null) {
      throwExportsNotFound(packageSubpath, packageJSONUrl, base);
    }
    return resolveResult;
  }
  throwExportsNotFound(packageSubpath, packageJSONUrl, base);
}
function packageImportsResolve({ name, base, conditions, readFileSyncFn }) {
  if (
    name === "#" ||
    StringPrototypeStartsWith(name, "#/") ||
    StringPrototypeEndsWith(name, "/")
  ) {
    const reason = "is not a valid internal imports specifier name";
    throw new ERR_INVALID_MODULE_SPECIFIER(
      name,
      reason,
      url.fileURLToPath(base),
    );
  }
  let packageJSONUrl;
  const packageConfig = getPackageScopeConfig(base, readFileSyncFn);
  if (packageConfig.exists) {
    packageJSONUrl = url.pathToFileURL(packageConfig.pjsonPath);
    const imports = packageConfig.imports;
    if (imports) {
      if (
        ObjectPrototypeHasOwnProperty(imports, name) &&
        !StringPrototypeIncludes(name, "*")
      ) {
        const resolveResult = resolvePackageTarget(
          packageJSONUrl,
          imports[name],
          "",
          name,
          base,
          false,
          true,
          conditions,
        );
        if (resolveResult != null) {
          return resolveResult;
        }
      } else {
        let bestMatch = "";
        let bestMatchSubpath;
        const keys = ObjectGetOwnPropertyNames(imports);
        for (let i = 0; i < keys.length; i++) {
          const key = keys[i];
          const patternIndex = StringPrototypeIndexOf(key, "*");
          if (
            patternIndex !== -1 &&
            StringPrototypeStartsWith(
              name,
              StringPrototypeSlice(key, 0, patternIndex),
            )
          ) {
            const patternTrailer = StringPrototypeSlice(key, patternIndex + 1);
            if (
              name.length >= key.length &&
              StringPrototypeEndsWith(name, patternTrailer) &&
              patternKeyCompare(bestMatch, key) === 1 &&
              StringPrototypeLastIndexOf(key, "*") === patternIndex
            ) {
              bestMatch = key;
              bestMatchSubpath = StringPrototypeSlice(
                name,
                patternIndex,
                name.length - patternTrailer.length,
              );
            }
          }
        }
        if (bestMatch) {
          const target = imports[bestMatch];
          const resolveResult = resolvePackageTarget(
            packageJSONUrl,
            target,
            bestMatchSubpath,
            bestMatch,
            base,
            true,
            true,
            conditions,
          );
          if (resolveResult != null) {
            return resolveResult;
          }
        }
      }
    }
  }
  throwImportNotDefined(name, packageJSONUrl, base);
}

const flagSymbol = Symbol("arg flag");

class ArgError extends Error {
  constructor(msg, code) {
    super(msg);
    this.name = "ArgError";
    this.code = code;

    Object.setPrototypeOf(this, ArgError.prototype);
  }
}

function arg(
  opts,
  {
    argv = process.argv.slice(2),
    permissive = false,
    stopAtPositional = false,
  } = {},
) {
  if (!opts) {
    throw new ArgError(
      "argument specification object is required",
      "ARG_CONFIG_NO_SPEC",
    );
  }

  const result = { _: [] };

  const aliases = {};
  const handlers = {};

  for (const key of Object.keys(opts)) {
    if (!key) {
      throw new ArgError(
        "argument key cannot be an empty string",
        "ARG_CONFIG_EMPTY_KEY",
      );
    }

    if (key[0] !== "-") {
      throw new ArgError(
        `argument key must start with '-' but found: '${key}'`,
        "ARG_CONFIG_NONOPT_KEY",
      );
    }

    if (key.length === 1) {
      throw new ArgError(
        `argument key must have a name; singular '-' keys are not allowed: ${key}`,
        "ARG_CONFIG_NONAME_KEY",
      );
    }

    if (typeof opts[key] === "string") {
      aliases[key] = opts[key];
      continue;
    }

    let type = opts[key];
    let isFlag = false;

    if (
      Array.isArray(type) &&
      type.length === 1 &&
      typeof type[0] === "function"
    ) {
      const [fn] = type;
      type = (value, name, prev = []) => {
        prev.push(fn(value, name, prev[prev.length - 1]));
        return prev;
      };
      isFlag = fn === Boolean || fn[flagSymbol] === true;
    } else if (typeof type === "function") {
      isFlag = type === Boolean || type[flagSymbol] === true;
    } else {
      throw new ArgError(
        `type missing or not a function or valid array type: ${key}`,
        "ARG_CONFIG_VAD_TYPE",
      );
    }

    if (key[1] !== "-" && key.length > 2) {
      throw new ArgError(
        `short argument keys (with a single hyphen) must have only one character: ${key}`,
        "ARG_CONFIG_SHORTOPT_TOOLONG",
      );
    }

    handlers[key] = [type, isFlag];
  }

  for (let i = 0, len = argv.length; i < len; i++) {
    const wholeArg = argv[i];

    if (stopAtPositional && result._.length > 0) {
      result._ = result._.concat(argv.slice(i));
      break;
    }

    if (wholeArg === "--") {
      result._ = result._.concat(argv.slice(i + 1));
      break;
    }

    if (wholeArg.length > 1 && wholeArg[0] === "-") {
      /* eslint-disable operator-linebreak */
      const separatedArguments =
        wholeArg[1] === "-" || wholeArg.length === 2
          ? [wholeArg]
          : wholeArg
              .slice(1)
              .split("")
              .map((a) => `-${a}`);
      /* eslint-enable operator-linebreak */

      for (let j = 0; j < separatedArguments.length; j++) {
        const arg = separatedArguments[j];
        const [originalArgName, argStr] =
          arg[1] === "-" ? arg.split(/=(.*)/, 2) : [arg, undefined];

        let argName = originalArgName;
        while (argName in aliases) {
          argName = aliases[argName];
        }

        if (!(argName in handlers)) {
          if (permissive) {
            result._.push(arg);
            continue;
          } else {
            throw new ArgError(
              `unknown or unexpected option: ${originalArgName}`,
              "ARG_UNKNOWN_OPTION",
            );
          }
        }

        const [type, isFlag] = handlers[argName];

        if (!isFlag && j + 1 < separatedArguments.length) {
          throw new ArgError(
            `option requires argument (but was followed by another short argument): ${originalArgName}`,
            "ARG_MISSING_REQUIRED_SHORTARG",
          );
        }

        if (isFlag) {
          result[argName] = type(true, argName, result[argName]);
        } else if (argStr === undefined) {
          if (
            argv.length < i + 2 ||
            (argv[i + 1].length > 1 &&
              argv[i + 1][0] === "-" &&
              !(
                argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) &&
                (type === Number ||
                  // eslint-disable-next-line no-undef
                  (typeof BigInt !== "undefined" && type === BigInt))
              ))
          ) {
            const extended =
              originalArgName === argName ? "" : ` (alias for ${argName})`;
            throw new ArgError(
              `option requires argument: ${originalArgName}${extended}`,
              "ARG_MISSING_REQUIRED_LONGARG",
            );
          }

          result[argName] = type(argv[i + 1], argName, result[argName]);
          ++i;
        } else {
          result[argName] = type(argStr, argName, result[argName]);
        }
      }
    } else {
      result._.push(wholeArg);
    }
  }

  return result;
}

arg.flag = (fn) => {
  fn[flagSymbol] = true;
  return fn;
};

// Utility types
arg.COUNT = arg.flag((v, name, existingCount) => (existingCount || 0) + 1);

// Expose error class
arg.ArgError = ArgError;

var arg_1 = arg;

/**
  @license
  The MIT License (MIT)

  Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  THE SOFTWARE.
*/
function getOptionValue(opt) {
  parseOptions();
  return options[opt];
}
let options;
function parseOptions() {
  if (!options) {
    options = {
      "--conditions": [],
      ...parseArgv(getNodeOptionsEnvArgv()),
      ...parseArgv(process.execArgv),
    };
  }
}
function parseArgv(argv) {
  return arg_1(
    {
      "--conditions": [String],
      "-C": "--conditions",
    },
    {
      argv,
      permissive: true,
    },
  );
}
function getNodeOptionsEnvArgv() {
  const errors = [];
  const envArgv = ParseNodeOptionsEnvVar(
    process.env.NODE_OPTIONS || "",
    errors,
  );
  if (errors.length !== 0);
  return envArgv;
}
function ParseNodeOptionsEnvVar(node_options, errors) {
  const env_argv = [];
  let is_in_string = false;
  let will_start_new_arg = true;
  for (let index = 0; index < node_options.length; ++index) {
    let c = node_options[index];
    if (c === "\\" && is_in_string) {
      if (index + 1 === node_options.length) {
        errors.push("invalid value for NODE_OPTIONS (invalid escape)\n");
        return env_argv;
      } else {
        c = node_options[++index];
      }
    } else if (c === " " && !is_in_string) {
      will_start_new_arg = true;
      continue;
    } else if (c === '"') {
      is_in_string = !is_in_string;
      continue;
    }
    if (will_start_new_arg) {
      env_argv.push(c);
      will_start_new_arg = false;
    } else {
      env_argv[env_argv.length - 1] += c;
    }
  }
  if (is_in_string) {
    errors.push("invalid value for NODE_OPTIONS (unterminated string)\n");
  }
  return env_argv;
}

function makeApi(runtimeState, opts) {
  const alwaysWarnOnFallback =
    Number(process.env.PNP_ALWAYS_WARN_ON_FALLBACK) > 0;
  const debugLevel = Number(process.env.PNP_DEBUG_LEVEL);
  const pathRegExp =
    /^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:node:)?(?:@[^/]+\/)?[^/]+)\/*(.*|)$/;
  const isStrictRegExp = /^(\/|\.{1,2}(\/|$))/;
  const isDirRegExp = /\/$/;
  const isRelativeRegexp = /^\.{0,2}\//;
  const topLevelLocator = { name: null, reference: null };
  const fallbackLocators = [];
  const emittedWarnings = /* @__PURE__ */ new Set();
  if (runtimeState.enableTopLevelFallback === true)
    fallbackLocators.push(topLevelLocator);
  if (opts.compatibilityMode !== false) {
    for (const name of [`react-scripts`, `gatsby`]) {
      const packageStore = runtimeState.packageRegistry.get(name);
      if (packageStore) {
        for (const reference of packageStore.keys()) {
          if (reference === null) {
            throw new Error(
              `Assertion failed: This reference shouldn't be null`,
            );
          } else {
            fallbackLocators.push({ name, reference });
          }
        }
      }
    }
  }
  const { ignorePattern, packageRegistry, packageLocatorsByLocations } =
    runtimeState;
  function makeLogEntry(name, args) {
    return {
      fn: name,
      args,
      error: null,
      result: null,
    };
  }
  function trace(entry) {
    const colors = process.stderr?.hasColors?.() ?? process.stdout.isTTY;
    const c = (n, str) => `\x1B[${n}m${str}\x1B[0m`;
    const error = entry.error;
    if (error)
      console.error(
        c(`31;1`, `\u2716 ${entry.error?.message.replace(/\n.*/s, ``)}`),
      );
    else console.error(c(`33;1`, `\u203C Resolution`));
    if (entry.args.length > 0) console.error();
    for (const arg of entry.args)
      console.error(
        `  ${c(`37;1`, `In \u2190`)} ${nodeUtils.inspect(arg, { colors, compact: true })}`,
      );
    if (entry.result) {
      console.error();
      console.error(
        `  ${c(`37;1`, `Out \u2192`)} ${nodeUtils.inspect(entry.result, { colors, compact: true })}`,
      );
    }
    const stack = new Error().stack.match(/(?<=^ +)at.*/gm)?.slice(2) ?? [];
    if (stack.length > 0) {
      console.error();
      for (const line of stack) {
        console.error(`  ${c(`38;5;244`, line)}`);
      }
    }
    console.error();
  }
  function maybeLog(name, fn) {
    if (opts.allowDebug === false) return fn;
    if (Number.isFinite(debugLevel)) {
      if (debugLevel >= 2) {
        return (...args) => {
          const logEntry = makeLogEntry(name, args);
          try {
            return (logEntry.result = fn(...args));
          } catch (error) {
            throw (logEntry.error = error);
          } finally {
            trace(logEntry);
          }
        };
      } else if (debugLevel >= 1) {
        return (...args) => {
          try {
            return fn(...args);
          } catch (error) {
            const logEntry = makeLogEntry(name, args);
            logEntry.error = error;
            trace(logEntry);
            throw error;
          }
        };
      }
    }
    return fn;
  }
  function getPackageInformationSafe(packageLocator) {
    const packageInformation = getPackageInformation(packageLocator);
    if (!packageInformation) {
      throw makeError(
        ErrorCode.INTERNAL,
        `Couldn't find a matching entry in the dependency tree for the specified parent (this is probably an internal error)`,
      );
    }
    return packageInformation;
  }
  function isDependencyTreeRoot(packageLocator) {
    if (packageLocator.name === null) return true;
    for (const dependencyTreeRoot of runtimeState.dependencyTreeRoots)
      if (
        dependencyTreeRoot.name === packageLocator.name &&
        dependencyTreeRoot.reference === packageLocator.reference
      )
        return true;
    return false;
  }
  const defaultExportsConditions = /* @__PURE__ */ new Set([
    `node`,
    `require`,
    ...getOptionValue(`--conditions`),
  ]);
  function applyNodeExportsResolution(
    unqualifiedPath,
    conditions = defaultExportsConditions,
    issuer,
  ) {
    const locator = findPackageLocator(
      ppath.join(unqualifiedPath, `internal.js`),
      {
        resolveIgnored: true,
        includeDiscardFromLookup: true,
      },
    );
    if (locator === null) {
      throw makeError(
        ErrorCode.INTERNAL,
        `The locator that owns the "${unqualifiedPath}" path can't be found inside the dependency tree (this is probably an internal error)`,
      );
    }
    const { packageLocation } = getPackageInformationSafe(locator);
    const manifestPath = ppath.join(packageLocation, Filename.manifest);
    if (!opts.fakeFs.existsSync(manifestPath)) return null;
    const pkgJson = JSON.parse(opts.fakeFs.readFileSync(manifestPath, `utf8`));
    if (pkgJson.exports == null) return null;
    let subpath = ppath.contains(packageLocation, unqualifiedPath);
    if (subpath === null) {
      throw makeError(
        ErrorCode.INTERNAL,
        `unqualifiedPath doesn't contain the packageLocation (this is probably an internal error)`,
      );
    }
    if (subpath !== `.` && !isRelativeRegexp.test(subpath))
      subpath = `./${subpath}`;
    try {
      const resolvedExport = packageExportsResolve({
        packageJSONUrl: url.pathToFileURL(npath.fromPortablePath(manifestPath)),
        packageSubpath: subpath,
        exports: pkgJson.exports,
        base: issuer ? url.pathToFileURL(npath.fromPortablePath(issuer)) : null,
        conditions,
      });
      return npath.toPortablePath(url.fileURLToPath(resolvedExport));
    } catch (error) {
      throw makeError(
        ErrorCode.EXPORTS_RESOLUTION_FAILED,
        error.message,
        {
          unqualifiedPath: getPathForDisplay(unqualifiedPath),
          locator,
          pkgJson,
          subpath: getPathForDisplay(subpath),
          conditions,
        },
        error.code,
      );
    }
  }
  function applyNodeExtensionResolution(
    unqualifiedPath,
    candidates,
    { extensions },
  ) {
    let stat;
    try {
      candidates.push(unqualifiedPath);
      stat = opts.fakeFs.statSync(unqualifiedPath);
    } catch {}
    if (stat && !stat.isDirectory())
      return opts.fakeFs.realpathSync(unqualifiedPath);
    if (stat && stat.isDirectory()) {
      let pkgJson;
      try {
        pkgJson = JSON.parse(
          opts.fakeFs.readFileSync(
            ppath.join(unqualifiedPath, Filename.manifest),
            `utf8`,
          ),
        );
      } catch {}
      let nextUnqualifiedPath;
      if (pkgJson && pkgJson.main)
        nextUnqualifiedPath = ppath.resolve(unqualifiedPath, pkgJson.main);
      if (nextUnqualifiedPath && nextUnqualifiedPath !== unqualifiedPath) {
        const resolution = applyNodeExtensionResolution(
          nextUnqualifiedPath,
          candidates,
          { extensions },
        );
        if (resolution !== null) {
          return resolution;
        }
      }
    }
    for (let i = 0, length = extensions.length; i < length; i++) {
      const candidateFile = `${unqualifiedPath}${extensions[i]}`;
      candidates.push(candidateFile);
      if (opts.fakeFs.existsSync(candidateFile)) {
        return candidateFile;
      }
    }
    if (stat && stat.isDirectory()) {
      for (let i = 0, length = extensions.length; i < length; i++) {
        const candidateFile = ppath.format({
          dir: unqualifiedPath,
          name: `index`,
          ext: extensions[i],
        });
        candidates.push(candidateFile);
        if (opts.fakeFs.existsSync(candidateFile)) {
          return candidateFile;
        }
      }
    }
    return null;
  }
  function makeFakeModule(path) {
    const fakeModule = new require$$0.Module(path, null);
    fakeModule.filename = path;
    fakeModule.paths = require$$0.Module._nodeModulePaths(path);
    return fakeModule;
  }
  function callNativeResolution(request, issuer) {
    if (issuer.endsWith(`/`)) issuer = ppath.join(issuer, `internal.js`);
    return require$$0.Module._resolveFilename(
      npath.fromPortablePath(request),
      makeFakeModule(npath.fromPortablePath(issuer)),
      false,
      { plugnplay: false },
    );
  }
  function isPathIgnored(path) {
    if (ignorePattern === null) return false;
    const subPath = ppath.contains(runtimeState.basePath, path);
    if (subPath === null) return false;
    if (ignorePattern.test(subPath.replace(/\/$/, ``))) {
      return true;
    } else {
      return false;
    }
  }
  const VERSIONS = { std: 3, resolveVirtual: 1, getAllLocators: 1 };
  const topLevel = topLevelLocator;
  function getPackageInformation({ name, reference }) {
    const packageInformationStore = packageRegistry.get(name);
    if (!packageInformationStore) return null;
    const packageInformation = packageInformationStore.get(reference);
    if (!packageInformation) return null;
    return packageInformation;
  }
  function findPackageDependents({ name, reference }) {
    const dependents = [];
    for (const [dependentName, packageInformationStore] of packageRegistry) {
      if (dependentName === null) continue;
      for (const [
        dependentReference,
        packageInformation,
      ] of packageInformationStore) {
        if (dependentReference === null) continue;
        const dependencyReference =
          packageInformation.packageDependencies.get(name);
        if (dependencyReference !== reference) continue;
        if (dependentName === name && dependentReference === reference)
          continue;
        dependents.push({
          name: dependentName,
          reference: dependentReference,
        });
      }
    }
    return dependents;
  }
  function findBrokenPeerDependencies(dependency, initialPackage) {
    const brokenPackages = /* @__PURE__ */ new Map();
    const alreadyVisited = /* @__PURE__ */ new Set();
    const traversal = (currentPackage) => {
      const identifier = JSON.stringify(currentPackage.name);
      if (alreadyVisited.has(identifier)) return;
      alreadyVisited.add(identifier);
      const dependents = findPackageDependents(currentPackage);
      for (const dependent of dependents) {
        const dependentInformation = getPackageInformationSafe(dependent);
        if (dependentInformation.packagePeers.has(dependency)) {
          traversal(dependent);
        } else {
          let brokenSet = brokenPackages.get(dependent.name);
          if (typeof brokenSet === `undefined`)
            brokenPackages.set(
              dependent.name,
              (brokenSet = /* @__PURE__ */ new Set()),
            );
          brokenSet.add(dependent.reference);
        }
      }
    };
    traversal(initialPackage);
    const brokenList = [];
    for (const name of [...brokenPackages.keys()].sort())
      for (const reference of [...brokenPackages.get(name)].sort())
        brokenList.push({ name, reference });
    return brokenList;
  }
  function findPackageLocator(
    location,
    { resolveIgnored = false, includeDiscardFromLookup = false } = {},
  ) {
    if (isPathIgnored(location) && !resolveIgnored) return null;
    let relativeLocation = ppath.relative(runtimeState.basePath, location);
    if (!relativeLocation.match(isStrictRegExp))
      relativeLocation = `./${relativeLocation}`;
    if (!relativeLocation.endsWith(`/`))
      relativeLocation = `${relativeLocation}/`;
    do {
      const entry = packageLocatorsByLocations.get(relativeLocation);
      if (
        typeof entry === `undefined` ||
        (entry.discardFromLookup && !includeDiscardFromLookup)
      ) {
        relativeLocation = relativeLocation.substring(
          0,
          relativeLocation.lastIndexOf(`/`, relativeLocation.length - 2) + 1,
        );
        continue;
      }
      return entry.locator;
    } while (relativeLocation !== ``);
    return null;
  }
  function tryReadFile(filePath) {
    try {
      return opts.fakeFs.readFileSync(npath.toPortablePath(filePath), `utf8`);
    } catch (err) {
      if (err.code === `ENOENT`) return void 0;
      throw err;
    }
  }
  function resolveToUnqualified(
    request,
    issuer,
    { considerBuiltins = true } = {},
  ) {
    if (request.startsWith(`#`))
      throw new Error(
        `resolveToUnqualified can not handle private import mappings`,
      );
    if (request === `pnpapi`)
      return npath.toPortablePath(opts.pnpapiResolution);
    if (considerBuiltins && require$$0.isBuiltin(request)) return null;
    const requestForDisplay = getPathForDisplay(request);
    const issuerForDisplay = issuer && getPathForDisplay(issuer);
    if (issuer && isPathIgnored(issuer)) {
      if (!ppath.isAbsolute(request) || findPackageLocator(request) === null) {
        const result = callNativeResolution(request, issuer);
        if (result === false) {
          throw makeError(
            ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED,
            `The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer was explicitely ignored by the regexp)

Require request: "${requestForDisplay}"
Required by: ${issuerForDisplay}
`,
            { request: requestForDisplay, issuer: issuerForDisplay },
          );
        }
        return npath.toPortablePath(result);
      }
    }
    let unqualifiedPath;
    const dependencyNameMatch = request.match(pathRegExp);
    if (!dependencyNameMatch) {
      if (ppath.isAbsolute(request)) {
        unqualifiedPath = ppath.normalize(request);
      } else {
        if (!issuer) {
          throw makeError(
            ErrorCode.API_ERROR,
            `The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute`,
            { request: requestForDisplay, issuer: issuerForDisplay },
          );
        }
        const absoluteIssuer = ppath.resolve(issuer);
        if (issuer.match(isDirRegExp)) {
          unqualifiedPath = ppath.normalize(
            ppath.join(absoluteIssuer, request),
          );
        } else {
          unqualifiedPath = ppath.normalize(
            ppath.join(ppath.dirname(absoluteIssuer), request),
          );
        }
      }
    } else {
      if (!issuer) {
        throw makeError(
          ErrorCode.API_ERROR,
          `The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute`,
          { request: requestForDisplay, issuer: issuerForDisplay },
        );
      }
      const [, dependencyName, subPath] = dependencyNameMatch;
      const issuerLocator = findPackageLocator(issuer);
      if (!issuerLocator) {
        const result = callNativeResolution(request, issuer);
        if (result === false) {
          throw makeError(
            ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED,
            `The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer doesn't seem to be part of the Yarn-managed dependency tree).

Require path: "${requestForDisplay}"
Required by: ${issuerForDisplay}
`,
            { request: requestForDisplay, issuer: issuerForDisplay },
          );
        }
        return npath.toPortablePath(result);
      }
      const issuerInformation = getPackageInformationSafe(issuerLocator);
      let dependencyReference =
        issuerInformation.packageDependencies.get(dependencyName);
      let fallbackReference = null;
      if (dependencyReference == null) {
        if (issuerLocator.name !== null) {
          const exclusionEntry = runtimeState.fallbackExclusionList.get(
            issuerLocator.name,
          );
          const canUseFallbacks =
            !exclusionEntry || !exclusionEntry.has(issuerLocator.reference);
          if (canUseFallbacks) {
            for (let t = 0, T = fallbackLocators.length; t < T; ++t) {
              const fallbackInformation = getPackageInformationSafe(
                fallbackLocators[t],
              );
              const reference =
                fallbackInformation.packageDependencies.get(dependencyName);
              if (reference == null) continue;
              if (alwaysWarnOnFallback) fallbackReference = reference;
              else dependencyReference = reference;
              break;
            }
            if (runtimeState.enableTopLevelFallback) {
              if (dependencyReference == null && fallbackReference === null) {
                const reference = runtimeState.fallbackPool.get(dependencyName);
                if (reference != null) {
                  fallbackReference = reference;
                }
              }
            }
          }
        }
      }
      let error = null;
      if (dependencyReference === null) {
        if (isDependencyTreeRoot(issuerLocator)) {
          error = makeError(
            ErrorCode.MISSING_PEER_DEPENDENCY,
            `Your application tried to access ${dependencyName} (a peer dependency); this isn't allowed as there is no ancestor to satisfy the requirement. Use a devDependency if needed.

Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerForDisplay}
`,
            {
              request: requestForDisplay,
              issuer: issuerForDisplay,
              dependencyName,
            },
          );
        } else {
          const brokenAncestors = findBrokenPeerDependencies(
            dependencyName,
            issuerLocator,
          );
          if (
            brokenAncestors.every((ancestor) => isDependencyTreeRoot(ancestor))
          ) {
            error = makeError(
              ErrorCode.MISSING_PEER_DEPENDENCY,
              `${issuerLocator.name} tried to access ${dependencyName} (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound.

Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})
${brokenAncestors
  .map(
    (
      ancestorLocator,
    ) => `Ancestor breaking the chain: ${ancestorLocator.name}@${ancestorLocator.reference}
`,
  )
  .join(``)}
`,
              {
                request: requestForDisplay,
                issuer: issuerForDisplay,
                issuerLocator: Object.assign({}, issuerLocator),
                dependencyName,
                brokenAncestors,
              },
            );
          } else {
            error = makeError(
              ErrorCode.MISSING_PEER_DEPENDENCY,
              `${issuerLocator.name} tried to access ${dependencyName} (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.

Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})

${brokenAncestors
  .map(
    (
      ancestorLocator,
    ) => `Ancestor breaking the chain: ${ancestorLocator.name}@${ancestorLocator.reference}
`,
  )
  .join(``)}
`,
              {
                request: requestForDisplay,
                issuer: issuerForDisplay,
                issuerLocator: Object.assign({}, issuerLocator),
                dependencyName,
                brokenAncestors,
              },
            );
          }
        }
      } else if (dependencyReference === void 0) {
        if (!considerBuiltins && require$$0.isBuiltin(request)) {
          if (isDependencyTreeRoot(issuerLocator)) {
            error = makeError(
              ErrorCode.UNDECLARED_DEPENDENCY,
              `Your application tried to access ${dependencyName}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${dependencyName} isn't otherwise declared in your dependencies, this makes the require call ambiguous and unsound.

Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerForDisplay}
`,
              {
                request: requestForDisplay,
                issuer: issuerForDisplay,
                dependencyName,
              },
            );
          } else {
            error = makeError(
              ErrorCode.UNDECLARED_DEPENDENCY,
              `${issuerLocator.name} tried to access ${dependencyName}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${dependencyName} isn't otherwise declared in ${issuerLocator.name}'s dependencies, this makes the require call ambiguous and unsound.

Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerForDisplay}
`,
              {
                request: requestForDisplay,
                issuer: issuerForDisplay,
                issuerLocator: Object.assign({}, issuerLocator),
                dependencyName,
              },
            );
          }
        } else {
          if (isDependencyTreeRoot(issuerLocator)) {
            error = makeError(
              ErrorCode.UNDECLARED_DEPENDENCY,
              `Your application tried to access ${dependencyName}, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.

Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerForDisplay}
`,
              {
                request: requestForDisplay,
                issuer: issuerForDisplay,
                dependencyName,
              },
            );
          } else {
            error = makeError(
              ErrorCode.UNDECLARED_DEPENDENCY,
              `${issuerLocator.name} tried to access ${dependencyName}, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})
`,
              {
                request: requestForDisplay,
                issuer: issuerForDisplay,
                issuerLocator: Object.assign({}, issuerLocator),
                dependencyName,
              },
            );
          }
        }
      }
      if (dependencyReference == null) {
        if (fallbackReference === null || error === null)
          throw (
            error ||
            new Error(`Assertion failed: Expected an error to have been set`)
          );
        dependencyReference = fallbackReference;
        const message = error.message.replace(/\n.*/g, ``);
        error.message = message;
        if (!emittedWarnings.has(message) && debugLevel !== 0) {
          emittedWarnings.add(message);
          process.emitWarning(error);
        }
      }
      const dependencyLocator = Array.isArray(dependencyReference)
        ? { name: dependencyReference[0], reference: dependencyReference[1] }
        : { name: dependencyName, reference: dependencyReference };
      const dependencyInformation =
        getPackageInformationSafe(dependencyLocator);
      if (!dependencyInformation.packageLocation) {
        throw makeError(
          ErrorCode.MISSING_DEPENDENCY,
          `A dependency seems valid but didn't get installed for some reason. This might be caused by a partial install, such as dev vs prod.

Required package: ${dependencyLocator.name}@${dependencyLocator.reference}${dependencyLocator.name !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})
`,
          {
            request: requestForDisplay,
            issuer: issuerForDisplay,
            dependencyLocator: Object.assign({}, dependencyLocator),
          },
        );
      }
      const dependencyLocation = dependencyInformation.packageLocation;
      if (subPath) {
        unqualifiedPath = ppath.join(dependencyLocation, subPath);
      } else {
        unqualifiedPath = dependencyLocation;
      }
    }
    return ppath.normalize(unqualifiedPath);
  }
  function resolveUnqualifiedExport(
    request,
    unqualifiedPath,
    conditions = defaultExportsConditions,
    issuer,
  ) {
    if (isStrictRegExp.test(request)) return unqualifiedPath;
    const unqualifiedExportPath = applyNodeExportsResolution(
      unqualifiedPath,
      conditions,
      issuer,
    );
    if (unqualifiedExportPath) {
      return ppath.normalize(unqualifiedExportPath);
    } else {
      return unqualifiedPath;
    }
  }
  function resolveUnqualified(
    unqualifiedPath,
    { extensions = Object.keys(require$$0.Module._extensions) } = {},
  ) {
    const candidates = [];
    const qualifiedPath = applyNodeExtensionResolution(
      unqualifiedPath,
      candidates,
      { extensions },
    );
    if (qualifiedPath) {
      return ppath.normalize(qualifiedPath);
    } else {
      reportRequiredFilesToWatchMode(
        candidates.map((candidate) => npath.fromPortablePath(candidate)),
      );
      const unqualifiedPathForDisplay = getPathForDisplay(unqualifiedPath);
      const containingPackage = findPackageLocator(unqualifiedPath);
      if (containingPackage) {
        const { packageLocation } =
          getPackageInformationSafe(containingPackage);
        let exists = true;
        try {
          opts.fakeFs.accessSync(packageLocation);
        } catch (err) {
          if (err?.code === `ENOENT`) {
            exists = false;
          } else {
            const readableError = (
              err?.message ??
              err ??
              `empty exception thrown`
            ).replace(/^[A-Z]/, ($0) => $0.toLowerCase());
            throw makeError(
              ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED,
              `Required package exists but could not be accessed (${readableError}).

Missing package: ${containingPackage.name}@${containingPackage.reference}
Expected package location: ${getPathForDisplay(packageLocation)}
`,
              { unqualifiedPath: unqualifiedPathForDisplay, extensions },
            );
          }
        }
        if (!exists) {
          const errorMessage = packageLocation.includes(`/unplugged/`)
            ? `Required unplugged package missing from disk. This may happen when switching branches without running installs (unplugged packages must be fully materialized on disk to work).`
            : `Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.`;
          throw makeError(
            ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED,
            `${errorMessage}

Missing package: ${containingPackage.name}@${containingPackage.reference}
Expected package location: ${getPathForDisplay(packageLocation)}
`,
            { unqualifiedPath: unqualifiedPathForDisplay, extensions },
          );
        }
      }
      throw makeError(
        ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED,
        `Qualified path resolution failed: we looked for the following paths, but none could be accessed.

Source path: ${unqualifiedPathForDisplay}
${candidates
  .map(
    (candidate) => `Not found: ${getPathForDisplay(candidate)}
`,
  )
  .join(``)}`,
        { unqualifiedPath: unqualifiedPathForDisplay, extensions },
      );
    }
  }
  function resolvePrivateRequest(request, issuer, opts2) {
    if (!issuer)
      throw new Error(
        `Assertion failed: An issuer is required to resolve private import mappings`,
      );
    const resolved = packageImportsResolve({
      name: request,
      base: url.pathToFileURL(npath.fromPortablePath(issuer)),
      conditions: opts2.conditions ?? defaultExportsConditions,
      readFileSyncFn: tryReadFile,
    });
    if (resolved instanceof URL) {
      return resolveUnqualified(
        npath.toPortablePath(url.fileURLToPath(resolved)),
        { extensions: opts2.extensions },
      );
    } else {
      if (resolved.startsWith(`#`))
        throw new Error(
          `Mapping from one private import to another isn't allowed`,
        );
      return resolveRequest(resolved, issuer, opts2);
    }
  }
  function resolveRequest(request, issuer, opts2 = {}) {
    try {
      if (request.startsWith(`#`))
        return resolvePrivateRequest(request, issuer, opts2);
      const { considerBuiltins, extensions, conditions } = opts2;
      const unqualifiedPath = resolveToUnqualified(request, issuer, {
        considerBuiltins,
      });
      if (request === `pnpapi`) return unqualifiedPath;
      if (unqualifiedPath === null) return null;
      const isIssuerIgnored = () =>
        issuer !== null ? isPathIgnored(issuer) : false;
      const remappedPath =
        (!considerBuiltins || !require$$0.isBuiltin(request)) &&
        !isIssuerIgnored()
          ? resolveUnqualifiedExport(
              request,
              unqualifiedPath,
              conditions,
              issuer,
            )
          : unqualifiedPath;
      return resolveUnqualified(remappedPath, { extensions });
    } catch (error) {
      if (Object.hasOwn(error, `pnpCode`))
        Object.assign(error.data, {
          request: getPathForDisplay(request),
          issuer: issuer && getPathForDisplay(issuer),
        });
      throw error;
    }
  }
  function resolveVirtual(request) {
    const normalized = ppath.normalize(request);
    const resolved = VirtualFS.resolveVirtual(normalized);
    return resolved !== normalized ? resolved : null;
  }
  return {
    VERSIONS,
    topLevel,
    getLocator: (name, referencish) => {
      if (Array.isArray(referencish)) {
        return { name: referencish[0], reference: referencish[1] };
      } else {
        return { name, reference: referencish };
      }
    },
    getDependencyTreeRoots: () => {
      return [...runtimeState.dependencyTreeRoots];
    },
    getAllLocators() {
      const locators = [];
      for (const [name, entry] of packageRegistry)
        for (const reference of entry.keys())
          if (name !== null && reference !== null)
            locators.push({ name, reference });
      return locators;
    },
    getPackageInformation: (locator) => {
      const info = getPackageInformation(locator);
      if (info === null) return null;
      const packageLocation = npath.fromPortablePath(info.packageLocation);
      const nativeInfo = { ...info, packageLocation };
      return nativeInfo;
    },
    findPackageLocator: (path) => {
      return findPackageLocator(npath.toPortablePath(path));
    },
    resolveToUnqualified: maybeLog(
      `resolveToUnqualified`,
      (request, issuer, opts2) => {
        const portableIssuer =
          issuer !== null ? npath.toPortablePath(issuer) : null;
        const resolution = resolveToUnqualified(
          npath.toPortablePath(request),
          portableIssuer,
          opts2,
        );
        if (resolution === null) return null;
        return npath.fromPortablePath(resolution);
      },
    ),
    resolveUnqualified: maybeLog(
      `resolveUnqualified`,
      (unqualifiedPath, opts2) => {
        return npath.fromPortablePath(
          resolveUnqualified(npath.toPortablePath(unqualifiedPath), opts2),
        );
      },
    ),
    resolveRequest: maybeLog(`resolveRequest`, (request, issuer, opts2) => {
      const portableIssuer =
        issuer !== null ? npath.toPortablePath(issuer) : null;
      const resolution = resolveRequest(
        npath.toPortablePath(request),
        portableIssuer,
        opts2,
      );
      if (resolution === null) return null;
      return npath.fromPortablePath(resolution);
    }),
    resolveVirtual: maybeLog(`resolveVirtual`, (path) => {
      const result = resolveVirtual(npath.toPortablePath(path));
      if (result !== null) {
        return npath.fromPortablePath(result);
      } else {
        return null;
      }
    }),
  };
}

function makeManager(pnpapi, opts) {
  const initialApiPath = npath.toPortablePath(
    pnpapi.resolveToUnqualified(`pnpapi`, null),
  );
  const initialApiStats = opts.fakeFs.statSync(
    npath.toPortablePath(initialApiPath),
  );
  const apiMetadata = /* @__PURE__ */ new Map([
    [
      initialApiPath,
      {
        instance: pnpapi,
        stats: initialApiStats,
        lastRefreshCheck: Date.now(),
      },
    ],
  ]);
  function loadApiInstance(pnpApiPath) {
    const nativePath = npath.fromPortablePath(pnpApiPath);
    const module = new require$$0.Module(nativePath, null);
    module.load(nativePath);
    return module.exports;
  }
  function refreshApiEntry(pnpApiPath, apiEntry) {
    const timeNow = Date.now();
    if (timeNow - apiEntry.lastRefreshCheck < 500) return;
    apiEntry.lastRefreshCheck = timeNow;
    const stats = opts.fakeFs.statSync(pnpApiPath);
    if (stats.mtime > apiEntry.stats.mtime) {
      process.emitWarning(
        `[Warning] The runtime detected new information in a PnP file; reloading the API instance (${npath.fromPortablePath(pnpApiPath)})`,
      );
      apiEntry.stats = stats;
      apiEntry.instance = loadApiInstance(pnpApiPath);
    }
  }
  function getApiEntry(pnpApiPath, refresh = false) {
    let apiEntry = apiMetadata.get(pnpApiPath);
    if (typeof apiEntry !== `undefined`) {
      if (refresh) {
        refreshApiEntry(pnpApiPath, apiEntry);
      }
    } else {
      apiMetadata.set(
        pnpApiPath,
        (apiEntry = {
          instance: loadApiInstance(pnpApiPath),
          stats: opts.fakeFs.statSync(pnpApiPath),
          lastRefreshCheck: Date.now(),
        }),
      );
    }
    return apiEntry;
  }
  const findApiPathCache = /* @__PURE__ */ new Map();
  function addToCacheAndReturn(start, end, target) {
    if (target !== null) {
      target = VirtualFS.resolveVirtual(target);
      target = opts.fakeFs.realpathSync(target);
    }
    let curr;
    let next = start;
    do {
      curr = next;
      findApiPathCache.set(curr, target);
      next = ppath.dirname(curr);
    } while (curr !== end);
    return target;
  }
  function findApiPathFor(modulePath) {
    let bestCandidate = null;
    for (const [apiPath, apiEntry] of apiMetadata) {
      const locator = apiEntry.instance.findPackageLocator(modulePath);
      if (!locator) continue;
      if (apiMetadata.size === 1) return apiPath;
      const packageInformation =
        apiEntry.instance.getPackageInformation(locator);
      if (!packageInformation)
        throw new Error(
          `Assertion failed: Couldn't get package information for '${modulePath}'`,
        );
      if (!bestCandidate)
        bestCandidate = {
          packageLocation: packageInformation.packageLocation,
          apiPaths: [],
        };
      if (
        packageInformation.packageLocation === bestCandidate.packageLocation
      ) {
        bestCandidate.apiPaths.push(apiPath);
      } else if (
        packageInformation.packageLocation.length >
        bestCandidate.packageLocation.length
      ) {
        bestCandidate = {
          packageLocation: packageInformation.packageLocation,
          apiPaths: [apiPath],
        };
      }
    }
    if (bestCandidate) {
      if (bestCandidate.apiPaths.length === 1) return bestCandidate.apiPaths[0];
      const controlSegment = bestCandidate.apiPaths.map(
        (apiPath) => `  ${npath.fromPortablePath(apiPath)}`,
      ).join(`
`);
      throw new Error(`Unable to locate pnpapi, the module '${modulePath}' is controlled by multiple pnpapi instances.
This is usually caused by using the global cache (enableGlobalCache: true)

Controlled by:
${controlSegment}
`);
    }
    const start = ppath.resolve(npath.toPortablePath(modulePath));
    let curr;
    let next = start;
    do {
      curr = next;
      const cached = findApiPathCache.get(curr);
      if (cached !== void 0) return addToCacheAndReturn(start, curr, cached);
      const cjsCandidate = ppath.join(curr, Filename.pnpCjs);
      if (
        opts.fakeFs.existsSync(cjsCandidate) &&
        opts.fakeFs.statSync(cjsCandidate).isFile()
      )
        return addToCacheAndReturn(start, curr, cjsCandidate);
      const legacyCjsCandidate = ppath.join(curr, Filename.pnpJs);
      if (
        opts.fakeFs.existsSync(legacyCjsCandidate) &&
        opts.fakeFs.statSync(legacyCjsCandidate).isFile()
      )
        return addToCacheAndReturn(start, curr, legacyCjsCandidate);
      next = ppath.dirname(curr);
    } while (curr !== PortablePath.root);
    return addToCacheAndReturn(start, curr, null);
  }
  const moduleToApiPathCache = /* @__PURE__ */ new WeakMap();
  function getApiPathFromParent(parent) {
    if (parent == null) return initialApiPath;
    let apiPath = moduleToApiPathCache.get(parent);
    if (typeof apiPath !== `undefined`) return apiPath;
    apiPath = parent.filename ? findApiPathFor(parent.filename) : null;
    moduleToApiPathCache.set(parent, apiPath);
    return apiPath;
  }
  return {
    getApiPathFromParent,
    findApiPathFor,
    getApiEntry,
  };
}

const localFs = { ...fs__default.default };
const nodeFs = new NodeFS(localFs);
const defaultRuntimeState = $$SETUP_STATE(hydrateRuntimeState);
const defaultPnpapiResolution = __filename;
const customZipImplementation =
  defaultRuntimeState.pnpZipBackend === `js` ? JsZipImpl : void 0;
const defaultFsLayer = new VirtualFS({
  baseFs: new ZipOpenFS({
    customZipImplementation,
    baseFs: nodeFs,
    maxOpenFiles: 80,
    readOnlyArchives: true,
  }),
});
class DynamicFS extends ProxiedFS {
  baseFs = defaultFsLayer;
  constructor() {
    super(ppath);
  }
  mapToBase(p) {
    return p;
  }
  mapFromBase(p) {
    return p;
  }
}
const dynamicFsLayer = new DynamicFS();
let manager;
const defaultApi = Object.assign(
  makeApi(defaultRuntimeState, {
    fakeFs: dynamicFsLayer,
    pnpapiResolution: defaultPnpapiResolution,
  }),
  {
    /**
     * Can be used to generate a different API than the default one (for example
     * to map it on `/` rather than the local directory path, or to use a
     * different FS layer than the default one).
     */
    makeApi: ({
      basePath = void 0,
      fakeFs = dynamicFsLayer,
      pnpapiResolution = defaultPnpapiResolution,
      ...rest
    }) => {
      const apiRuntimeState =
        typeof basePath !== `undefined`
          ? $$SETUP_STATE(hydrateRuntimeState, basePath)
          : defaultRuntimeState;
      return makeApi(apiRuntimeState, {
        fakeFs,
        pnpapiResolution,
        ...rest,
      });
    },
    /**
     * Will inject the specified API into the environment, monkey-patching FS. Is
     * automatically called when the hook is loaded through `--require`.
     */
    setup: (api) => {
      applyPatch(api || defaultApi, {
        fakeFs: defaultFsLayer,
        manager,
      });
      dynamicFsLayer.baseFs = new NodeFS(fs__default.default);
    },
  },
);
manager = makeManager(defaultApi, {
  fakeFs: dynamicFsLayer,
});
if (module.parent && module.parent.id === `internal/preload`) {
  defaultApi.setup();
  if (module.filename) {
    delete require$$0__default.default._cache[module.filename];
  }
}
if (process.mainModule === module) {
  const reportError = (code, message, data) => {
    process.stdout.write(`${JSON.stringify([{ code, message, data }, null])}
`);
  };
  const reportSuccess = (resolution) => {
    process.stdout.write(`${JSON.stringify([null, resolution])}
`);
  };
  const processResolution = (request, issuer) => {
    try {
      reportSuccess(defaultApi.resolveRequest(request, issuer));
    } catch (error) {
      reportError(error.code, error.message, error.data);
    }
  };
  const processRequest = (data) => {
    try {
      const [request, issuer] = JSON.parse(data);
      processResolution(request, issuer);
    } catch (error) {
      reportError(`INVALID_JSON`, error.message, error.data);
    }
  };
  if (process.argv.length > 2) {
    if (process.argv.length !== 4) {
      process.stderr
        .write(`Usage: ${process.argv[0]} ${process.argv[1]} <request> <issuer>
`);
      process.exitCode = 64;
    } else {
      processResolution(process.argv[2], process.argv[3]);
    }
  } else {
    let buffer = ``;
    const decoder = new StringDecoder__default.default.StringDecoder();
    process.stdin.on(`data`, (chunk) => {
      buffer += decoder.write(chunk);
      do {
        const index = buffer.indexOf(`
`);
        if (index === -1) break;
        const line = buffer.slice(0, index);
        buffer = buffer.slice(index + 1);
        processRequest(line);
      } while (true);
    });
  }
}

module.exports = defaultApi;
