@ncino/web-components 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index_html.js +1 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/avatar/gator/avatar.gator.js +15 -10
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
- package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
- package/dist/components/input/gator/input-file/input-file.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
- package/dist/components/menu/base/gator/menu.gator.js +1 -1
- package/dist/components/popover/gator/popover.gator.js +1 -1
- package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
- package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
- package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.1/node_modules/@deltablot/dropzone/dist/dropzone.js +22 -0
- package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/common/fetch.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.1/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
- package/dist/node_modules/.pnpm/{@floating-ui_dom@1.7.0 → @floating-ui_dom@1.7.1}/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_expect@3.1.4 → @vitest_expect@3.2.0}/node_modules/@vitest/expect/dist/index.js +17 -17
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.0/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -0
- package/dist/node_modules/.pnpm/{@vitest_snapshot@3.1.4 → @vitest_snapshot@3.2.0}/node_modules/@vitest/snapshot/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.0/node_modules/@vitest/spy/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/diff.js +1 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/error.js +2 -0
- package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +1 -0
- package/dist/node_modules/.pnpm/{string_decoder@1.3.0 → string_decoder@1.1.1}/node_modules/string_decoder/lib/string_decoder.js +1 -1
- package/dist/node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/index.js +1 -0
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/util.js +1 -0
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -0
- package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/util.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js +1 -0
- package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f/node_modules/vitest/dist/chunks/utils.CgTj3MsC.js → vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.2.0_@vitest_ui@_14788fcd511f0c706d416dcd7d5ee669/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js} +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f/node_modules/vitest/dist/chunks/vi.ClIskdbk.js → vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.2.0_@vitest_ui@_14788fcd511f0c706d416dcd7d5ee669/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js} +5 -5
- package/dist/packages/web-components/src/components/avatar/gator/avatar.gator.scss.js +1 -1
- package/dist/types/components/avatar/avatar.d.ts +21 -4
- package/dist/types/components/avatar/gator/avatar.gator.d.ts +4 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +29 -29
- package/web-types.json +34 -6
- package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.0/node_modules/@deltablot/dropzone/dist/dropzone.js +0 -22
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.2/node_modules/@figma/code-connect/package.json.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/chunk-tasks.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@vitest_spy@3.1.4/node_modules/@vitest/spy/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/error.js +0 -2
- package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +0 -1
- package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/cookies/index.js +0 -1
- package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/cookies/util.js +0 -1
- package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/fetch/headers.js +0 -1
- package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/pool.js +0 -1
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/connect/helpers.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/html/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/html/index_html.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.2 → @figma_code-connect@1.3.3}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_browser@3.1.4_msw@2.7.3_@types_node@22.15.21_typescript@5.8.3__playwright@1.52._ce6a4a1e71cccb66c0847e643d956555 → @vitest_browser@3.2.0_msw@2.7.3_@types_node@22.15.21_typescript@5.8.3__playwright@1.52._69fe3aa5bafb5870129d66fd4b43fd69}/node_modules/@vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_pretty-format@3.1.4 → @vitest_pretty-format@3.2.0}/node_modules/@vitest/pretty-format/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/helpers.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/source-map.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/index.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/agent.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/abort-signal.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-connect.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-pipeline.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-request.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-stream.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-upgrade.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/index.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/readable.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/util.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/balanced-pool.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/cache.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/cachestorage.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/symbols.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/util.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/client.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/compat/dispatcher-weakref.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cookies/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cookies/parse.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/connect.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/errors.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/request.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/symbols.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/util.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/dispatcher-base.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/dispatcher.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/body.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/dataURL.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/file.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/formdata.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/global.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/index.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/request.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/response.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/symbols.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/util.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/webidl.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/encoding.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/filereader.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/progressevent.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/symbols.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/global.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/handler/DecoratorHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/handler/RedirectHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/handler/RetryHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/interceptor/redirectInterceptor.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/utils.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-agent.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-client.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-errors.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-interceptor.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-pool.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-symbols.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-utils.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/pluralizer.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/node/fixed-queue.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/pool-base.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/pool-stats.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/proxy-agent.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/timers.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/connection.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/events.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/frame.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/receiver.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/symbols.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/util.js +0 -0
- /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/websocket.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f → vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.2.0_@vitest_ui@_14788fcd511f0c706d416dcd7d5ee669}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f/node_modules/vitest/dist/chunks/date.CDOsz-HY.js → vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.2.0_@vitest_ui@_14788fcd511f0c706d416dcd7d5ee669/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js","_virtual/sourcemap-codec.umd.js","node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js","_virtual/sourcemap-codec.umd2.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var
|
|
2
|
+
var ke=Object.defineProperty;var Ne=(t,e,n)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>Ne(t,typeof e!="symbol"?e+"":e,n);import{__vitePreload as Pe}from"../../../../../../../_virtual/preload-helper.js";import{format as Re,plugins as Ce}from"../../../../../@vitest_pretty-format@3.2.0/node_modules/@vitest/pretty-format/dist/index.js";import{r as Te}from"../../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js";const Oe=44,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ae=new Uint8Array(64),Se=new Uint8Array(128);for(let t=0;t<ee.length;t++){const e=ee.charCodeAt(t);Ae[t]=e,Se[e]=t}function F(t,e){let n=0,s=0,i=0;do{const a=t.next();i=Se[a],n|=(i&31)<<s,s+=5}while(i&32);const r=n&1;return n>>>=1,r&&(n=-2147483648|-n),e+n}function te(t,e){return t.pos>=e?!1:t.peek()!==Oe}class Me{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:s}=this,i=n.indexOf(e,s);return i===-1?n.length:i}}function Fe(t){const{length:e}=t,n=new Me(t),s=[];let i=0,r=0,a=0,l=0,o=0;do{const c=n.indexOf(";"),d=[];let p=!0,u=0;for(i=0;n.pos<c;){let S;i=F(n,i),i<u&&(p=!1),u=i,te(n,c)?(r=F(n,r),a=F(n,a),l=F(n,l),te(n,c)?(o=F(n,o),S=[i,r,a,l,o]):S=[i,r,a,l]):S=[i],d.push(S),n.pos++}p||Le(d),s.push(d),n.pos=c+1}while(n.pos<=e);return s}function Le(t){t.sort(Be)}function Be(t,e){return t[0]-e[0]}const De=/^[\w+.-]+:\/\//,Je=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Xe=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var v;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(v||(v={}));function je(t){return De.test(t)}function We(t){return t.startsWith("//")}function _e(t){return t.startsWith("/")}function Ke(t){return t.startsWith("file:")}function ne(t){return/^[.?#]/.test(t)}function B(t){const e=Je.exec(t);return ye(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Ue(t){const e=Xe.exec(t),n=e[2];return ye("file:","",e[1]||"","",_e(n)?n:"/"+n,e[3]||"",e[4]||"")}function ye(t,e,n,s,i,r,a){return{scheme:t,user:e,host:n,port:s,path:i,query:r,hash:a,type:v.Absolute}}function se(t){if(We(t)){const n=B("http:"+t);return n.scheme="",n.type=v.SchemeRelative,n}if(_e(t)){const n=B("http://foo.com"+t);return n.scheme="",n.host="",n.type=v.AbsolutePath,n}if(Ke(t))return Ue(t);if(je(t))return B(t);const e=B("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?v.Query:t.startsWith("#")?v.Hash:v.RelativePath:v.Empty,e}function qe(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function ze(t,e){ve(e,e.type),t.path==="/"?t.path=e.path:t.path=qe(e.path)+t.path}function ve(t,e){const n=e<=v.RelativePath,s=t.path.split("/");let i=1,r=0,a=!1;for(let o=1;o<s.length;o++){const c=s[o];if(!c){a=!0;continue}if(a=!1,c!=="."){if(c===".."){r?(a=!0,r--,i--):n&&(s[i++]=c);continue}s[i++]=c,r++}}let l="";for(let o=1;o<i;o++)l+="/"+s[o];(!l||a&&!l.endsWith("/.."))&&(l+="/"),t.path=l}function He(t,e){if(!t&&!e)return"";const n=se(t);let s=n.type;if(e&&s!==v.Absolute){const r=se(e),a=r.type;switch(s){case v.Empty:n.hash=r.hash;case v.Hash:n.query=r.query;case v.Query:case v.RelativePath:ze(n,r);case v.AbsolutePath:n.user=r.user,n.host=r.host,n.port=r.port;case v.SchemeRelative:n.scheme=r.scheme}a>s&&(s=a)}ve(n,s);const i=n.query+n.hash;switch(s){case v.Hash:case v.Query:return i;case v.RelativePath:{const r=n.path.slice(1);return r?ne(e||t)&&!ne(r)?"./"+r+i:r+i:i||"."}case v.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function ie(t,e){return e&&!e.endsWith("/")&&(e+="/"),He(t,e)}function Ge(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const C=0,Ve=1,Qe=2,Ze=3,Ye=4;function et(t,e){const n=re(t,0);if(n===t.length)return t;e||(t=t.slice());for(let s=n;s<t.length;s=re(t,s+1))t[s]=nt(t[s],e);return t}function re(t,e){for(let n=e;n<t.length;n++)if(!tt(t[n]))return n;return t.length}function tt(t){for(let e=1;e<t.length;e++)if(t[e][C]<t[e-1][C])return!1;return!0}function nt(t,e){return e||(t=t.slice()),t.sort(st)}function st(t,e){return t[C]-e[C]}let X=!1;function it(t,e,n,s){for(;n<=s;){const i=n+(s-n>>1),r=t[i][C]-e;if(r===0)return X=!0,i;r<0?n=i+1:s=i-1}return X=!1,n-1}function rt(t,e,n){for(let s=n+1;s<t.length&&t[s][C]===e;n=s++);return n}function at(t,e,n){for(let s=n-1;s>=0&&t[s][C]===e;n=s--);return n}function ot(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function lt(t,e,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let l=0,o=t.length-1;if(s===i){if(e===r)return X=a!==-1&&t[a][C]===e,a;e>=r?l=a===-1?0:a:o=a}return n.lastKey=s,n.lastNeedle=e,n.lastIndex=it(t,e,l,o)}const ct="`line` must be greater than 0 (lines start at line 1)",ut="`column` must be greater than or equal to 0 (columns start at column 0)",ae=-1,ht=1;class dt{constructor(e,n){const s=typeof e=="string";if(!s&&e._decodedMemo)return e;const i=s?JSON.parse(e):e,{version:r,file:a,names:l,sourceRoot:o,sources:c,sourcesContent:d}=i;this.version=r,this.file=a,this.names=l||[],this.sourceRoot=o,this.sources=c,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const p=ie(o||"",Ge(n));this.resolvedSources=c.map(S=>ie(S||"",p));const{mappings:u}=i;typeof u=="string"?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=et(u,s)),this._decodedMemo=ot(),this._bySources=void 0,this._bySourceMemos=void 0}}function ft(t){var e;return(e=t)._decoded||(e._decoded=Fe(t._encoded))}function pt(t,e){let{line:n,column:s,bias:i}=e;if(n--,n<0)throw new Error(ct);if(s<0)throw new Error(ut);const r=ft(t);if(n>=r.length)return D(null,null,null,null);const a=r[n],l=mt(a,t._decodedMemo,n,s,i||ht);if(l===-1)return D(null,null,null,null);const o=a[l];if(o.length===1)return D(null,null,null,null);const{names:c,resolvedSources:d}=t;return D(d[o[Ve]],o[Qe]+1,o[Ze],o.length===5?c[o[Ye]]:null)}function D(t,e,n,s){return{source:t,line:e,column:n,name:s}}function mt(t,e,n,s,i){let r=lt(t,s,e,n);return X?r=(i===ae?rt:at)(t,s,r):i===ae&&r++,r===-1||r===t.length?-1:r}function xe(t){return t!=null}function gt(t){return t===null||typeof t!="function"&&typeof t!="object"}function J(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function St(t){let e=-1,n=null,s=0,i=0,r=null;for(;e<=t.length;){r=t[e],e++;const a=t[e];if((a==='"'||a==="'"||a==="`")&&r!=="\\"&&(n===a?n=null:n||(n=a)),n||(a==="("&&s++,a===")"&&i++),s&&i&&s===i)return e}return null}const we=/^\s*at .*(?:\S:\d+|\(native\))/m,_t=/^(?:eval@)?(?:\[native code\])?$/,yt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Ie(t){if(!t.includes(":"))return[t];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!n)return[t];let s=n[1];if(s.startsWith("async ")&&(s=s.slice(6)),s.startsWith("http:")||s.startsWith("https:")){const i=new URL(s);i.searchParams.delete("import"),i.searchParams.delete("browserv"),s=i.pathname+i.hash+i.search}if(s.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(s);s=s.slice(i?5:4)}return[s,n[2]||void 0,n[3]||void 0]}function vt(t){let e=t.trim();if(_t.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,s=e.match(n),i=s&&s[1]?s[1]:void 0,[r,a,l]=Ie(e.replace(n,""));return!r||!a||!l?null:{file:r,method:i||"",line:Number.parseInt(a),column:Number.parseInt(l)}}function xt(t){let e=t.trim();if(!we.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const s=n.match(/ (\(.+\)$)/);n=s?n.replace(s[0],""):n;const[i,r,a]=Ie(s?s[1]:n);let l=s&&n||"",o=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!o||!r||!a?null:(l.startsWith("async ")&&(l=l.slice(6)),o.startsWith("file://")&&(o=o.slice(7)),o=o.startsWith("node:")||o.startsWith("internal:")?o:Te(o),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:o,line:Number.parseInt(r),column:Number.parseInt(a)})}function j(t,e={}){const{ignoreStackEntries:n=yt}=e;return(we.test(t)?It(t):wt(t)).map(i=>{var r;e.getUrlId&&(i.file=e.getUrlId(i.file));const a=(r=e.getSourceMap)===null||r===void 0?void 0:r.call(e,i.file);if(!a||typeof a!="object"||!a.version)return oe(n,i.file)?null:i;const l=new dt(a),{line:o,column:c,source:d,name:p}=pt(l,i);let u=i.file;if(d){const S=i.file.startsWith("file://")?i.file:`file://${i.file}`,I=a.sourceRoot?new URL(a.sourceRoot,S):S;u=new URL(d,I).pathname,u.match(/\/\w:\//)&&(u=u.slice(1))}return oe(n,u)?null:o!=null&&c!=null?{line:o,column:c,file:u,method:p||i.method}:i}).filter(i=>i!=null)}function oe(t,e){return t.some(n=>e.match(n))}function wt(t){return t.split(`
|
|
3
3
|
`).map(e=>vt(e)).filter(xe)}function It(t){return t.split(`
|
|
4
|
-
`).map(e=>xt(e)).filter(xe)}function Et(t,e={}){if(!t||gt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||
|
|
4
|
+
`).map(e=>xt(e)).filter(xe)}function Et(t,e={}){if(!t||gt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||"";let s=typeof n=="string"?j(n,e):[];if(!s.length){const i=t;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(s=j(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,e)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(s=j(`${i.sourceURL}:${i.line}:${i.column}`,e))}return e.frameFilter&&(s=s.filter(i=>e.frameFilter(t,i)!==!1)),t.stacks=s,s}let bt=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(bt=(s,i)=>{const[r,a]=t(s);return r===e?"Promise{<pending>}":`Promise${r===n?"!":""}{${i.inspect(a,i)}}`})}catch{}let le=!1;try{const t=require("util");le=t.inspect?t.inspect.custom:!1}catch{le=!1}function $t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var W,ce;function kt(){if(ce)return W;ce=1;var t,e,n,s,i,r,a,l,o,c,d,p,u,S,I,b,$,E,k;return u=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,I=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,b=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,k=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,o=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,$=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,r=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,c=RegExp(l.source),W=function*(_,{jsx:T=!1}={}){var w,P,O,f,m,Z,h,R,Y,N,A,g,M,x;for({length:Z}=_,f=0,m="",x=[{tag:"JS"}],w=[],A=0,g=!1;f<Z;){switch(R=x[x.length-1],R.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[f]==="/"&&(E.test(m)||r.test(m))&&(u.lastIndex=f,h=u.exec(_))){f=u.lastIndex,m=h[0],g=!0,yield{type:"RegularExpressionLiteral",value:h[0],closed:h[1]!==void 0&&h[1]!=="\\"};continue}if(p.lastIndex=f,h=p.exec(_)){switch(M=h[0],Y=p.lastIndex,N=M,M){case"(":m==="?NonExpressionParenKeyword"&&x.push({tag:"JSNonExpressionParen",nesting:A}),A++,g=!1;break;case")":A--,g=!0,R.tag==="JSNonExpressionParen"&&A===R.nesting&&(x.pop(),N="?NonExpressionParenEnd",g=!1);break;case"{":p.lastIndex=0,O=!$.test(m)&&(E.test(m)||r.test(m)),w.push(O),g=!1;break;case"}":switch(R.tag){case"InterpolationInTemplate":if(w.length===R.nesting){b.lastIndex=f,h=b.exec(_),f=b.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",g=!1,yield{type:"TemplateMiddle",value:h[0]}):(x.pop(),g=!0,yield{type:"TemplateTail",value:h[0],closed:h[1]==="`"});continue}break;case"InterpolationInJSX":if(w.length===R.nesting){x.pop(),f+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}g=w.pop(),N=g?"?ExpressionBraceEnd":"}";break;case"]":g=!0;break;case"++":case"--":N=g?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(T&&(E.test(m)||r.test(m))){x.push({tag:"JSXTag"}),f+=1,m="<",yield{type:"JSXPunctuator",value:M};continue}g=!1;break;default:g=!1}f=Y,m=N,yield{type:"Punctuator",value:M};continue}if(t.lastIndex=f,h=t.exec(_)){switch(f=t.lastIndex,N=h[0],h[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&(N="?NonExpressionParenKeyword")}m=N,g=!r.test(h[0]),yield{type:h[1]==="#"?"PrivateIdentifier":"IdentifierName",value:h[0]};continue}if(I.lastIndex=f,h=I.exec(_)){f=I.lastIndex,m=h[0],g=!0,yield{type:"StringLiteral",value:h[0],closed:h[2]!==void 0};continue}if(d.lastIndex=f,h=d.exec(_)){f=d.lastIndex,m=h[0],g=!0,yield{type:"NumericLiteral",value:h[0]};continue}if(b.lastIndex=f,h=b.exec(_)){f=b.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",x.push({tag:"InterpolationInTemplate",nesting:w.length}),g=!1,yield{type:"TemplateHead",value:h[0]}):(g=!0,yield{type:"NoSubstitutionTemplate",value:h[0],closed:h[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=f,h=n.exec(_)){switch(f=n.lastIndex,N=h[0],h[0]){case"<":x.push({tag:"JSXTag"});break;case">":x.pop(),m==="/"||R.tag==="JSXTagEnd"?(N="?JSX",g=!0):x.push({tag:"JSXChildren"});break;case"{":x.push({tag:"InterpolationInJSX",nesting:w.length}),N="?InterpolationInJSX",g=!1;break;case"/":m==="<"&&(x.pop(),x[x.length-1].tag==="JSXChildren"&&x.pop(),x.push({tag:"JSXTagEnd"}))}m=N,yield{type:"JSXPunctuator",value:h[0]};continue}if(e.lastIndex=f,h=e.exec(_)){f=e.lastIndex,m=h[0],yield{type:"JSXIdentifier",value:h[0]};continue}if(s.lastIndex=f,h=s.exec(_)){f=s.lastIndex,m=h[0],yield{type:"JSXString",value:h[0],closed:h[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=f,h=i.exec(_)){f=i.lastIndex,m=h[0],yield{type:"JSXText",value:h[0]};continue}switch(_[f]){case"<":x.push({tag:"JSXTag"}),f++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":x.push({tag:"InterpolationInJSX",nesting:w.length}),f++,m="?InterpolationInJSX",g=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(k.lastIndex=f,h=k.exec(_)){f=k.lastIndex,yield{type:"WhiteSpace",value:h[0]};continue}if(l.lastIndex=f,h=l.exec(_)){f=l.lastIndex,g=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:h[0]};continue}if(o.lastIndex=f,h=o.exec(_)){f=o.lastIndex,c.test(h[0])&&(g=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:h[0],closed:h[1]!==void 0};continue}if(S.lastIndex=f,h=S.exec(_)){f=S.lastIndex,g=!1,yield{type:"SingleLineComment",value:h[0]};continue}P=String.fromCodePoint(_.codePointAt(f)),f+=P.length,m=P,g=!1,yield{type:R.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:P}}},W}kt();var Ee={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Ee.keyword);new Set(Ee.strict);var Nt={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Pt=Object.entries(Nt);function z(t){return String(t)}z.open="";z.close="";function Rt(t=!1){let e=typeof process<"u"?process:void 0,n=(e==null?void 0:e.env)||{},s=(e==null?void 0:e.argv)||[];return!("NO_COLOR"in n||s.includes("--no-color"))&&("FORCE_COLOR"in n||s.includes("--color")||(e==null?void 0:e.platform)==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function Ct(t=!1){let e=Rt(t),n=(a,l,o,c)=>{let d="",p=0;do d+=a.substring(p,c)+o,p=c+l.length,c=a.indexOf(l,p);while(~c);return d+a.substring(p)},s=(a,l,o=a)=>{let c=d=>{let p=String(d),u=p.indexOf(l,a.length);return~u?a+n(p,l,o,u)+l:a+p+l};return c.open=a,c.close=l,c},i={isColorSupported:e},r=a=>`\x1B[${a}m`;for(let[a,l]of Pt)i[a]=e?s(r(l[0]),r(l[1]),l[2]):z;return i}Ct();const H=/\r?\n/;function Tt(t,e,n){const s=t.split(H),i=/\r\n/.test(t)?2:1;let r=0;if(e>s.length)return t.length;for(let a=0;a<e-1;a++)r+=s[a].length+i;return r+n}function Ot(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(H),s=/\r\n/.test(t)?2:1;let i=0,r=0;for(;r<n.length;r++){const a=n[r].length+s;if(i+a>=e)break;i+=a}return r+1}async function At(t,e){const n=(await Pe(async()=>{const{default:i}=await import("../../../../../magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js");return{default:i}},__vite__mapDeps([0,1,2,3]))).default,s=new Set(e.map(i=>i.file));await Promise.all(Array.from(s).map(async i=>{const r=e.filter(c=>c.file===i),a=await t.readSnapshotFile(i),l=new n(a);for(const c of r){const d=Tt(a,c.line,c.column);Jt(a,l,d,c.snapshot)}const o=l.toString();o!==a&&await t.saveSnapshotFile(i,o)}))}const Mt=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Ft(t,e,n,s){let i=t.slice(n);const r=Mt.exec(i);if(!r)return!1;i=i.slice(r.index);let a=St(i);if(a===null)return!1;a+=n+r.index;const l=n+r.index+r[0].length,o=Lt(t,l),c=`, ${be(s,t,n)}`;return o===a?e.appendLeft(a,c):e.overwrite(o,a,c),!0}function Lt(t,e){let n=1,s=0;for(;n!==s&&e<t.length;){const i=t[e++];i==="{"?n++:i==="}"&&s++}return e}function be(t,e,n){const s=Ot(e,n),r=e.split(H)[s-1].match(/^\s*/)[0]||"",a=r.includes(" ")?`${r} `:`${r} `,l=t.trim().replace(/\\/g,"\\\\").split(/\n/g),o=l.length<=1,c="`";return o?`${c}${l.join(`
|
|
5
5
|
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}
|
|
6
6
|
${l.map(d=>d?a+d:"").join(`
|
|
7
7
|
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
|
|
@@ -12,7 +12,7 @@ ${r}${c}`}const ue="toMatchInlineSnapshot",he="toThrowErrorMatchingInlineSnapsho
|
|
|
12
12
|
* @stability 3 - Stable
|
|
13
13
|
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
14
14
|
* @license MIT License
|
|
15
|
-
*/var t=function(e,n){var s,i,r=1,a=0,l=0,o=String.alphabet;function c(d,p,u){if(u){for(s=p;u=c(d,s),u<76&&u>65;)++s;return+d.slice(p-1,s)}return u=o&&o.indexOf(d.charAt(p)),u>-1?u+76:(u=d.charCodeAt(p)||0,u<45||u>127?u:u<46?65:u<48?u-1:u<58?u+18:u<65?u-11:u<91?u+11:u<97?u-37:u<123?u+5:u-63)}if((e+="")!=(n+="")){for(;r;)if(i=c(e,a++),r=c(n,l++),i<76&&r<76&&i>66&&r>66&&(i=c(e,a,a),r=c(n,l,a=s),l=s),i!=r)return i<r?-1:1}return 0};try{K.exports=t}catch{String.naturalCompare=t}return K.exports}var Kt=Wt(),Ut
|
|
15
|
+
*/var t=function(e,n){var s,i,r=1,a=0,l=0,o=String.alphabet;function c(d,p,u){if(u){for(s=p;u=c(d,s),u<76&&u>65;)++s;return+d.slice(p-1,s)}return u=o&&o.indexOf(d.charAt(p)),u>-1?u+76:(u=d.charCodeAt(p)||0,u<45||u>127?u:u<46?65:u<48?u-1:u<58?u+18:u<65?u-11:u<91?u+11:u<97?u-37:u<123?u+5:u-63)}if((e+="")!=(n+="")){for(;r;)if(i=c(e,a++),r=c(n,l++),i<76&&r<76&&i>66&&r>66&&(i=c(e,a,a),r=c(n,l,a=s),l=s),i!=r)return i<r?-1:1}return 0};try{K.exports=t}catch{String.naturalCompare=t}return K.exports}var Kt=Wt(),Ut=$t(Kt);const qt=(t,e,n,s,i,r)=>{const a=t.getMockName(),l=a==="vi.fn()"?"":` ${a}`;let o="";if(t.mock.calls.length!==0){const c=n+e.indent;o=` {${e.spacingOuter}${c}"calls": ${r(t.mock.calls,e,c,s,i)}${e.min?", ":","}${e.spacingOuter}${c}"results": ${r(t.mock.results,e,c,s,i)}${e.min?"":","}${e.spacingOuter}${n}}`}return`[MockFunction${l}]${o}`},zt=t=>t&&!!t._isMockFunction,Ht={serialize:qt,test:zt},{DOMCollection:Gt,DOMElement:Vt,Immutable:Qt,ReactElement:Zt,ReactTestComponent:Yt,AsymmetricMatcher:en}=Ce;let U=[Yt,Zt,Vt,Gt,Qt,en,Ht];function Sn(t){U=[t].concat(U)}function tn(){return U}function nn(t,e){return`${t} ${e}`}function sn(t){if(!/ \d+$/.test(t))throw new Error("Snapshot keys must end with a number.");return t.replace(/ \d+$/,"")}function rn(t,e){const n=e.updateSnapshot,s=Object.create(null);let i="",r=!1;if(t!=null)try{i=t,new Function("exports",i)(s)}catch{}return(n==="all"||n==="new")&&i&&(r=!0),{data:s,dirty:r}}function an(t){return t.includes(`
|
|
16
16
|
`)?`
|
|
17
17
|
${t}
|
|
18
18
|
`:t}function fe(t){return t.length>2&&t.startsWith(`
|
|
@@ -23,5 +23,5 @@ ${t}
|
|
|
23
23
|
${s.join(`
|
|
24
24
|
|
|
25
25
|
`)}
|
|
26
|
-
`,r=await t.readSnapshotFile(n);r!=null&&r===i||await t.saveSnapshotFile(n,i)}function q(t=[],e=[]){const n=Array.from(t);return e.forEach((s,i)=>{const r=n[i];Array.isArray(t[i])?n[i]=q(t[i],s):J(r)?n[i]=V(t[i],s):n[i]=s}),n}function V(t,e){if(J(t)&&J(e)){const n={...t};return Object.keys(e).forEach(s=>{J(e[s])&&!e[s].$$typeof?s in t?n[s]=V(t[s],e[s]):Object.assign(n,{[s]:e[s]}):Array.isArray(e[s])?n[s]=q(t[s],e[s]):Object.assign(n,{[s]:e[s]})}),n}else if(Array.isArray(t)&&Array.isArray(e))return q(t,e);return t}class
|
|
27
|
-
${JSON.stringify(_)}`)
|
|
26
|
+
`,r=await t.readSnapshotFile(n);r!=null&&r===i||await t.saveSnapshotFile(n,i)}function q(t=[],e=[]){const n=Array.from(t);return e.forEach((s,i)=>{const r=n[i];Array.isArray(t[i])?n[i]=q(t[i],s):J(r)?n[i]=V(t[i],s):n[i]=s}),n}function V(t,e){if(J(t)&&J(e)){const n={...t};return Object.keys(e).forEach(s=>{J(e[s])&&!e[s].$$typeof?s in t?n[s]=V(t[s],e[s]):Object.assign(n,{[s]:e[s]}):Array.isArray(e[s])?n[s]=q(t[s],e[s]):Object.assign(n,{[s]:e[s]})}),n}else if(Array.isArray(t)&&Array.isArray(e))return q(t,e);return t}class $e extends Map{constructor(e,n){super(n),this.defaultFn=e}get(e){return this.has(e)||this.set(e,this.defaultFn(e)),super.get(e)}}class L extends $e{constructor(){super(()=>0);y(this,"_total")}valueOf(){return this._total=this.total()}increment(n){typeof this._total<"u"&&this._total++,this.set(n,this.get(n)+1)}total(){if(typeof this._total<"u")return this._total;let n=0;for(const s of this.values())n+=s;return n}}function me(t,e){return t.file===e.file&&t.column===e.column&&t.line===e.line}class Q{constructor(e,n,s,i){y(this,"_counters",new L);y(this,"_dirty");y(this,"_updateSnapshot");y(this,"_snapshotData");y(this,"_initialData");y(this,"_inlineSnapshots");y(this,"_inlineSnapshotStacks");y(this,"_testIdToKeys",new $e(()=>[]));y(this,"_rawSnapshots");y(this,"_uncheckedKeys");y(this,"_snapshotFormat");y(this,"_environment");y(this,"_fileExists");y(this,"expand");y(this,"_added",new L);y(this,"_matched",new L);y(this,"_unmatched",new L);y(this,"_updated",new L);this.testFilePath=e,this.snapshotPath=n;const{data:r,dirty:a}=rn(s,i);this._fileExists=s!=null,this._initialData={...r},this._snapshotData={...r},this._dirty=a,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=i.expand||!1,this._updateSnapshot=i.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...i.snapshotFormat},this._environment=i.snapshotEnvironment}get added(){return this._added}set added(e){this._added._total=e}get matched(){return this._matched}set matched(e){this._matched._total=e}get unmatched(){return this._unmatched}set unmatched(e){this._unmatched._total=e}get updated(){return this._updated}set updated(e){this._updated._total=e}static async create(e,n){const s=await n.snapshotEnvironment.resolvePath(e),i=await n.snapshotEnvironment.readSnapshotFile(s);return new Q(e,s,i,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(e){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(e.length))&&this._uncheckedKeys.delete(n)})}clearTest(e){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==e),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==e);for(const n of this._testIdToKeys.get(e)){const s=sn(n),i=this._counters.get(s);i>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(s,i-1))}this._testIdToKeys.delete(e),this.added.delete(e),this.updated.delete(e),this.matched.delete(e),this.unmatched.delete(e)}_inferInlineSnapshotStack(e){const n=e.findIndex(i=>i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return e[n+3];const s=e.findIndex(i=>i.method.includes("__INLINE_SNAPSHOT__"));return s!==-1?e[s+2]:null}_addSnapshot(e,n,s){this._dirty=!0,s.stack?this._inlineSnapshots.push({snapshot:n,testId:s.testId,...s.stack}):s.rawSnapshot?this._rawSnapshots.push({...s.rawSnapshot,snapshot:n}):this._snapshotData[e]=n}async save(){const e=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,s=this._rawSnapshots.length,i=!e&&!n&&!s,r={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!i?(e&&(await hn(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),n&&await At(this._environment,this._inlineSnapshots),s&&await jt(this._environment,this._rawSnapshots),r.saved=!0):!e&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),r.deleted=!0),r}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(e=>delete this._snapshotData[e]),this._uncheckedKeys.clear())}match({testId:e,testName:n,received:s,key:i,inlineSnapshot:r,isInline:a,error:l,rawSnapshot:o}){this._counters.increment(n);const c=this._counters.get(n);i||(i=nn(n,c)),this._testIdToKeys.get(e).push(i),a&&this._snapshotData[i]!==void 0||this._uncheckedKeys.delete(i);let d=o&&typeof s=="string"?s:cn(s,void 0,this._snapshotFormat);o||(d=an(d)),o&&o.content&&o.content.match(/\r\n/)&&!d.match(/\r\n/)&&(o.content=G(o.content));const p=a?r:o?o.content:this._snapshotData[i],u=o?p:p==null?void 0:p.trim(),S=u===(o?d:d.trim()),I=p!==void 0,b=a||this._fileExists||o&&o.content!=null;S&&!a&&!o&&(this._snapshotData[i]=d);let $;if(a){var E,k;const _=Et(l||new Error("snapshot"),{ignoreStackEntries:[]}),T=this._inferInlineSnapshotStack(_);if(!T)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
|
|
27
|
+
${JSON.stringify(_)}`);$=((E=(k=this.environment).processStackTrace)===null||E===void 0?void 0:E.call(k,T))||T,$.column--;const w=this._inlineSnapshotStacks.filter(P=>me(P,$));if(w.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(O=>!me(O,$));const P=w.find(O=>O.snapshot!==d);if(P)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:d,expected:P.snapshot})}this._inlineSnapshotStacks.push({...$,testId:e,snapshot:d})}return I&&this._updateSnapshot==="all"||(!I||!b)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?S?this.matched.increment(e):(I?this.updated.increment(e):this.added.increment(e),this._addSnapshot(i,d,{stack:$,testId:e,rawSnapshot:o})):(this._addSnapshot(i,d,{stack:$,testId:e,rawSnapshot:o}),this.added.increment(e)),{actual:"",count:c,expected:"",key:i,pass:!0}):S?(this.matched.increment(e),{actual:"",count:c,expected:"",key:i,pass:!0}):(this.unmatched.increment(e),{actual:o?d:fe(d),count:c,expected:u!==void 0?o?u:fe(u):void 0,key:i,pass:!1})}async pack(){const e={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),s=this.getUncheckedKeys();n&&this.removeUncheckedKeys();const i=await this.save();return e.fileDeleted=i.deleted,e.added=this.added.total(),e.matched=this.matched.total(),e.unmatched=this.unmatched.total(),e.updated=this.updated.total(),e.unchecked=i.deleted?0:n,e.uncheckedKeys=Array.from(s),e}}function ge(t,e,n,s){const i=new Error(t);return Object.defineProperty(i,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"expected",{value:s,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"diffOptions",{value:{expand:e}}),i}class _n{constructor(e={}){y(this,"snapshotStateMap",new Map);this.options=e}async setup(e,n){this.snapshotStateMap.has(e)||this.snapshotStateMap.set(e,await Q.create(e,n))}async finish(e){const s=await this.getSnapshotState(e).pack();return this.snapshotStateMap.delete(e),s}skipTest(e,n){this.getSnapshotState(e).markSnapshotsAsCheckedForTest(n)}clearTest(e,n){this.getSnapshotState(e).clearTest(n)}getSnapshotState(e){const n=this.snapshotStateMap.get(e);if(!n)throw new Error(`The snapshot state for '${e}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(e){const{filepath:n,name:s,testId:i=s,message:r,isInline:a=!1,properties:l,inlineSnapshot:o,error:c,errorMessage:d,rawSnapshot:p}=e;let{received:u}=e;if(!n)throw new Error("Snapshot cannot be used outside of test");const S=this.getSnapshotState(n);if(typeof l=="object"){if(typeof u!="object"||!u)throw new Error("Received value must be an object when the matcher has properties");try{var I,b;if(((I=(b=this.options).isEqual)===null||I===void 0?void 0:I.call(b,u,l))??!1)u=V(u,l);else throw ge("Snapshot properties mismatched",S.expand,u,l)}catch(w){throw w.message=d||"Snapshot mismatched",w}}const $=[s,...r?[r]:[]].join(" > "),{actual:E,expected:k,key:_,pass:T}=S.match({testId:i,testName:$,received:u,isInline:a,error:c,inlineSnapshot:o,rawSnapshot:p});if(!T)throw ge(`Snapshot \`${_||"unknown"}\` mismatched`,S.expand,p?E:E==null?void 0:E.trim(),p?k:k==null?void 0:k.trim())}async assertRaw(e){if(!e.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:n,rawSnapshot:s}=e;if(s.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");const i=this.getSnapshotState(n);e.filepath||(e.filepath=n),s.file=await i.environment.resolveRawPath(n,s.file),s.content=await i.environment.readSnapshotFile(s.file)??void 0}return this.assert(e)}clear(){this.snapshotStateMap.clear()}}export{_n as SnapshotClient,Q as SnapshotState,Sn as addSerializer,tn as getSerializers,gn as stripSnapshotIndentation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{internalSpyOn as d,getInternalState as I}from"../../../../../tinyspy@4.0.3/node_modules/tinyspy/dist/index.js";const R=new Set;function j(o){return typeof o=="function"&&"_isMockFunction"in o&&o._isMockFunction}function P(o,e,n){const l=n?{[{get:"getter",set:"setter"}[n]]:e}:e;let i;const s=b(o,e),m=s&&s[n||"value"];j(m)&&(i=m.mock._state());const r=d(o,l),u=O(r);return i&&u.mock._state(i),u}let C=0;function O(o){const e=o;let n,c=[],l=!1,i=[],s=[],m=[];const r=I(o),u={get calls(){return r.calls},get contexts(){return s},get instances(){return i},get invocationCallOrder(){return m},get results(){return r.results.map(([t,a])=>({type:t==="error"?"throw":"return",value:a}))},get settledResults(){return r.resolves.map(([t,a])=>({type:t==="error"?"rejected":"fulfilled",value:a}))},get lastCall(){return r.calls[r.calls.length-1]},_state(t){return t&&(n=t.implementation,c=t.onceImplementations,l=t.implementationChangedTemporarily),{implementation:n,onceImplementations:c,implementationChangedTemporarily:l}}};function k(...t){return i.push(this),s.push(this),m.push(++C),(l?n:c.shift()||n||r.getOriginal()||(()=>{})).apply(this,t)}let g=e.name;e.getMockName=()=>g||"vi.fn()",e.mockName=t=>(g=t,e),e.mockClear=()=>(r.reset(),i=[],s=[],m=[],e),e.mockReset=()=>(e.mockClear(),n=void 0,c=[],e),e.mockRestore=()=>(e.mockReset(),r.restore(),e),Symbol.dispose&&(e[Symbol.dispose]=()=>e.mockRestore()),e.getMockImplementation=()=>l?n:c.at(0)||n,e.mockImplementation=t=>(n=t,r.willCall(k),e),e.mockImplementationOnce=t=>(c.push(t),e);function h(t,a){const f=n;n=t,r.willCall(k),l=!0;const y=()=>{n=f,l=!1},p=a();return typeof p=="object"&&p&&typeof p.then=="function"?p.then(()=>(y(),e)):(y(),e)}return e.withImplementation=h,e.mockReturnThis=()=>e.mockImplementation(function(){return this}),e.mockReturnValue=t=>e.mockImplementation(()=>t),e.mockReturnValueOnce=t=>e.mockImplementationOnce(()=>t),e.mockResolvedValue=t=>e.mockImplementation(()=>Promise.resolve(t)),e.mockResolvedValueOnce=t=>e.mockImplementationOnce(()=>Promise.resolve(t)),e.mockRejectedValue=t=>e.mockImplementation(()=>Promise.reject(t)),e.mockRejectedValueOnce=t=>e.mockImplementationOnce(()=>Promise.reject(t)),Object.defineProperty(e,"mock",{get:()=>u}),r.willCall(k),R.add(e),e}function v(o){const e=O(d({spy:o||function(){}},"spy"));return o&&e.mockImplementation(o),e}function b(o,e){const n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;let c=Object.getPrototypeOf(o);for(;c!==null;){const l=Object.getOwnPropertyDescriptor(c,e);if(l)return l;c=Object.getPrototypeOf(c)}}export{v as fn,j as isMockFunction,R as mocks,P as spyOn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format as l,plugins as a}from"../../../../../@vitest_pretty-format@3.
|
|
1
|
+
import{format as l,plugins as a}from"../../../../../@vitest_pretty-format@3.2.0/node_modules/@vitest/pretty-format/dist/index.js";import{inspect as p}from"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const{AsymmetricMatcher:y,DOMCollection:m,DOMElement:g,Immutable:S,ReactElement:b,ReactTestComponent:d}=a,f=[d,b,g,m,S,y];function h(t,c=10,{maxLength:r,...u}={}){const i=r??1e4;let n;try{n=l(t,{maxDepth:c,escapeString:!1,plugins:f,...u})}catch{n=l(t,{callToJSON:!1,maxDepth:c,escapeString:!1,plugins:f,...u})}return n.length>=i&&c>1?h(t,Math.floor(Math.min(c,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...u}):n}const j=/%[sdjifoOc%]/g;function $(...t){if(typeof t[0]!="string"){const n=[];for(let e=0;e<t.length;e++)n.push(o(t[e],{depth:0,colors:!1}));return n.join(" ")}const c=t.length;let r=1;const u=t[0];let i=String(u).replace(j,n=>{if(n==="%%")return"%";if(r>=c)return n;switch(n){case"%s":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:typeof e=="number"&&e===0&&1/e<0?"-0":typeof e=="object"&&e!==null?typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():o(e,{depth:0,colors:!1}):String(e)}case"%d":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:Number(e).toString()}case"%i":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:Number.parseInt(String(e)).toString()}case"%f":return Number.parseFloat(String(t[r++])).toString();case"%o":return o(t[r++],{showHidden:!0,showProxy:!0});case"%O":return o(t[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(t[r++])}catch(e){const s=e.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw e}default:return n}});for(let n=t[r];r<c;n=t[++r])n===null||typeof n!="object"?i+=` ${n}`:i+=` ${o(n)}`;return i}function o(t,c={}){return c.truncate===0&&(c.truncate=Number.POSITIVE_INFINITY),p(t,c)}function E(t,c={}){typeof c.truncate>"u"&&(c.truncate=40);const r=o(t,c),u=Object.prototype.toString.call(t);if(c.truncate&&r.length>=c.truncate)if(u==="[object Function]"){const i=t;return i.name?`[Function: ${i.name}]`:"[Function]"}else{if(u==="[object Array]")return`[ Array(${t.length}) ]`;if(u==="[object Object]"){const i=Object.keys(t);return`{ Object (${i.length>2?`${i.splice(0,2).join(", ")}, ...`:i.join(", ")}) }`}else return r}return r}function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}export{$ as f,I as g,o as i,E as o,h as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Qn=Object.defineProperty;var Zn=(n,e,t)=>e in n?Qn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var K=(n,e,t)=>Zn(n,typeof e!="symbol"?e+"":e,t);import{format as Q,plugins as Bn}from"../../../../../@vitest_pretty-format@3.1.4/node_modules/@vitest/pretty-format/dist/index.js";import Y from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{s as Rn,g as vn}from"./chunk-_commonjsHelpers.js";import{deepClone as wn,getOwnProperties as xn,getType as sn}from"./helpers.js";import"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const j=-1,O=1,M=0;class A{constructor(e,t){K(this,0);K(this,1);this[0]=e,this[1]=t}}function dn(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(l,o)===e.substring(l,o)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function kn(n,e){if(!n||!e||n.charAt(n.length-1)!==e.charAt(e.length-1))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(n.length-o,n.length-l)===e.substring(e.length-o,e.length-l)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function Cn(n,e){const t=n.length,r=e.length;if(t===0||r===0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));const o=Math.min(t,r);if(n===e)return o;let l=0,s=1;for(;;){const b=n.substring(o-s),u=e.indexOf(b);if(u===-1)return l;s+=u,(u===0||n.substring(o-s)===e.substring(0,s))&&(l=s,s++)}}function ne(n){let e=!1;const t=[];let r=0,o=null,l=0,s=0,b=0,u=0,F=0;for(;l<n.length;)n[l][0]===M?(t[r++]=l,s=u,b=F,u=0,F=0,o=n[l][1]):(n[l][0]===O?u+=n[l][1].length:F+=n[l][1].length,o&&o.length<=Math.max(s,b)&&o.length<=Math.max(u,F)&&(n.splice(t[r-1],0,new A(j,o)),n[t[r-1]+1][0]=O,r--,r--,l=r>0?t[r-1]:-1,s=0,b=0,u=0,F=0,o=null,e=!0)),l++;for(e&&Nn(n),re(n),l=1;l<n.length;){if(n[l-1][0]===j&&n[l][0]===O){const y=n[l-1][1],C=n[l][1],D=Cn(y,C),c=Cn(C,y);D>=c?(D>=y.length/2||D>=C.length/2)&&(n.splice(l,0,new A(M,C.substring(0,D))),n[l-1][1]=y.substring(0,y.length-D),n[l+1][1]=C.substring(D),l++):(c>=y.length/2||c>=C.length/2)&&(n.splice(l,0,new A(M,y.substring(0,c))),n[l-1][0]=O,n[l-1][1]=C.substring(0,C.length-c),n[l+1][0]=j,n[l+1][1]=y.substring(c),l++),l++}l++}}const bn=/[^a-z0-9]/i,yn=/\s/,$n=/[\r\n]/,ee=/\n\r?\n$/,te=/^\r?\n\r?\n/;function re(n){let e=1;for(;e<n.length-1;){if(n[e-1][0]===M&&n[e+1][0]===M){let t=n[e-1][1],r=n[e][1],o=n[e+1][1];const l=kn(t,r);if(l){const y=r.substring(r.length-l);t=t.substring(0,t.length-l),r=y+r.substring(0,r.length-l),o=y+o}let s=t,b=r,u=o,F=en(t,r)+en(r,o);for(;r.charAt(0)===o.charAt(0);){t+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);const y=en(t,r)+en(r,o);y>=F&&(F=y,s=t,b=r,u=o)}n[e-1][1]!==s&&(s?n[e-1][1]=s:(n.splice(e-1,1),e--),n[e][1]=b,u?n[e+1][1]=u:(n.splice(e+1,1),e--))}e++}}function Nn(n){n.push(new A(M,""));let e=0,t=0,r=0,o="",l="",s;for(;e<n.length;)switch(n[e][0]){case O:r++,l+=n[e][1],e++;break;case j:t++,o+=n[e][1],e++;break;case M:t+r>1?(t!==0&&r!==0&&(s=dn(l,o),s!==0&&(e-t-r>0&&n[e-t-r-1][0]===M?n[e-t-r-1][1]+=l.substring(0,s):(n.splice(0,0,new A(M,l.substring(0,s))),e++),l=l.substring(s),o=o.substring(s)),s=kn(l,o),s!==0&&(n[e][1]=l.substring(l.length-s)+n[e][1],l=l.substring(0,l.length-s),o=o.substring(0,o.length-s))),e-=t+r,n.splice(e,t+r),o.length&&(n.splice(e,0,new A(j,o)),e++),l.length&&(n.splice(e,0,new A(O,l)),e++),e++):e!==0&&n[e-1][0]===M?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,o="",l="";break}n[n.length-1][1]===""&&n.pop();let b=!1;for(e=1;e<n.length-1;)n[e-1][0]===M&&n[e+1][0]===M&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)===n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),b=!0):n[e][1].substring(0,n[e+1][1].length)===n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),b=!0)),e++;b&&Nn(n)}function en(n,e){if(!n||!e)return 6;const t=n.charAt(n.length-1),r=e.charAt(0),o=t.match(bn),l=r.match(bn),s=o&&t.match(yn),b=l&&r.match(yn),u=s&&t.match($n),F=b&&r.match($n),y=u&&n.match(ee),C=F&&e.match(te);return y||C?5:u||F?4:o&&!s&&b?3:s||b?2:o||l?1:0}const qn="Compared values have no visual difference.",oe="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";var tn={},Fn;function le(){if(Fn)return tn;Fn=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=D;const n="diff-sequences",e=0,t=(c,i,h,a,f)=>{let p=0;for(;c<i&&h<a&&f(c,h);)c+=1,h+=1,p+=1;return p},r=(c,i,h,a,f)=>{let p=0;for(;c<=i&&h<=a&&f(i,a);)i-=1,a-=1,p+=1;return p},o=(c,i,h,a,f,p,L)=>{let g=0,w=-c,$=p[g],m=$;p[g]+=t($+1,i,a+$-w+1,h,f);const P=c<L?c:L;for(g+=1,w+=2;g<=P;g+=1,w+=2){if(g!==c&&m<p[g])$=p[g];else if($=m+1,i<=$)return g-1;m=p[g],p[g]=$+t($+1,i,a+$-w+1,h,f)}return L},l=(c,i,h,a,f,p,L)=>{let g=0,w=c,$=p[g],m=$;p[g]-=r(i,$-1,h,a+$-w-1,f);const P=c<L?c:L;for(g+=1,w-=2;g<=P;g+=1,w-=2){if(g!==c&&p[g]<m)$=p[g];else if($=m-1,$<i)return g-1;m=p[g],p[g]=$-r(i,$-1,h,a+$-w-1,f)}return L},s=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=a-i,z=h-i,E=f-a-z,R=-E-(c-1),H=-E+(c-1);let k=e;const _=c<g?c:g;for(let T=0,S=-c;T<=_;T+=1,S+=2){const X=T===0||T!==c&&k<L[T],B=X?L[T]:k,q=X?B:B+1,J=P+q-S,U=t(q+1,h,J+1,f,p),G=q+U;if(k=L[T],L[T]=G,R<=S&&S<=H){const Z=(c-1-(S+E))/2;if(Z<=$&&w[Z]-1<=G){const I=P+B-(X?S+1:S-1),N=r(i,B,a,I,p),V=B-N,nn=I-N,x=V+1,on=nn+1;m.nChangePreceding=c-1,c-1===x+on-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=x,m.bEndPreceding=on),m.nCommonPreceding=N,N!==0&&(m.aCommonPreceding=x,m.bCommonPreceding=on),m.nCommonFollowing=U,U!==0&&(m.aCommonFollowing=q+1,m.bCommonFollowing=J+1);const mn=G+1,pn=J+U+1;return m.nChangeFollowing=c-1,c-1===h+f-mn-pn?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=mn,m.bStartFollowing=pn),!0}}}return!1},b=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=f-h,z=h-i,E=f-a-z,R=E-c,H=E+c;let k=e;const _=c<$?c:$;for(let T=0,S=c;T<=_;T+=1,S-=2){const X=T===0||T!==c&&w[T]<k,B=X?w[T]:k,q=X?B:B-1,J=P+q-S,U=r(i,q-1,a,J-1,p),G=q-U;if(k=w[T],w[T]=G,R<=S&&S<=H){const Z=(c+(S-E))/2;if(Z<=g&&G-1<=L[Z]){const I=J-U;if(m.nChangePreceding=c,c===G+I-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=G,m.bEndPreceding=I),m.nCommonPreceding=U,U!==0&&(m.aCommonPreceding=G,m.bCommonPreceding=I),m.nChangeFollowing=c-1,c===1)m.nCommonFollowing=0,m.aStartFollowing=h,m.bStartFollowing=f;else{const N=P+B-(X?S-1:S+1),V=t(B,h,N,f,p);m.nCommonFollowing=V,V!==0&&(m.aCommonFollowing=B,m.bCommonFollowing=N);const nn=B+V,x=N+V;c-1===h+f-nn-x?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=nn,m.bStartFollowing=x)}return!0}}}return!1},u=(c,i,h,a,f,p,L,g,w)=>{const $=a-i,m=f-h,P=h-i,z=f-a,W=z-P;let E=P,R=P;if(L[0]=i-1,g[0]=h,W%2===0){const H=(c||W)/2,k=(P+z)/2;for(let _=1;_<=k;_+=1)if(E=o(_,h,f,$,p,L,E),_<H)R=l(_,i,a,m,p,g,R);else if(b(_,i,h,a,f,p,L,E,g,R,w))return}else{const H=((c||W)+1)/2,k=(P+z+1)/2;let _=1;for(E=o(_,h,f,$,p,L,E),_+=1;_<=k;_+=1)if(R=l(_-1,i,a,m,p,g,R),_<H)E=o(_,h,f,$,p,L,E);else if(s(_,i,h,a,f,p,L,E,g,R,w))return}throw new Error(`${n}: no overlap aStart=${i} aEnd=${h} bStart=${a} bEnd=${f}`)},F=(c,i,h,a,f,p,L,g,w,$)=>{if(f-a<h-i){if(p=!p,p&&L.length===1){const{foundSubsequence:G,isCommon:Z}=L[0];L[1]={foundSubsequence:(I,N,V)=>{G(I,V,N)},isCommon:(I,N)=>Z(N,I)}}const J=i,U=h;i=a,h=f,a=J,f=U}const{foundSubsequence:m,isCommon:P}=L[p?1:0];u(c,i,h,a,f,P,g,w,$);const{nChangePreceding:z,aEndPreceding:W,bEndPreceding:E,nCommonPreceding:R,aCommonPreceding:H,bCommonPreceding:k,nCommonFollowing:_,aCommonFollowing:T,bCommonFollowing:S,nChangeFollowing:X,aStartFollowing:B,bStartFollowing:q}=$;i<W&&a<E&&F(z,i,W,a,E,p,L,g,w,$),R!==0&&m(R,H,k),_!==0&&m(_,T,S),B<h&&q<f&&F(X,B,h,q,f,p,L,g,w,$)},y=(c,i)=>{if(typeof i!="number")throw new TypeError(`${n}: ${c} typeof ${typeof i} is not a number`);if(!Number.isSafeInteger(i))throw new RangeError(`${n}: ${c} value ${i} is not a safe integer`);if(i<0)throw new RangeError(`${n}: ${c} value ${i} is a negative integer`)},C=(c,i)=>{const h=typeof i;if(h!=="function")throw new TypeError(`${n}: ${c} typeof ${h} is not a function`)};function D(c,i,h,a){y("aLength",c),y("bLength",i),C("isCommon",h),C("foundSubsequence",a);const f=t(0,c,0,i,h);if(f!==0&&a(f,0,0),c!==f||i!==f){const p=f,L=f,g=r(p,c-1,L,i-1,h),w=c-g,$=i-g,m=f+g;c!==m&&i!==m&&F(0,p,w,L,$,!1,[{foundSubsequence:a,isCommon:h}],[e],[e],{aCommonFollowing:e,aCommonPreceding:e,aEndPreceding:e,aStartFollowing:e,bCommonFollowing:e,bCommonPreceding:e,bEndPreceding:e,bStartFollowing:e,nChangeFollowing:e,nChangePreceding:e,nCommonFollowing:e,nCommonPreceding:e}),g!==0&&a(g,w,$)}}return tn}var ce=le(),Un=vn(ce);function ie(n,e){return n.replace(/\s+$/,t=>e(t))}function an(n,e,t,r,o,l){return n.length!==0?t(`${r} ${ie(n,o)}`):r!==" "?t(r):e&&l.length!==0?t(`${r} ${l}`):""}function Gn(n,e,{aColor:t,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function zn(n,e,{bColor:t,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Hn(n,e,{commonColor:t,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Ln(n,e,t,r,{patchColor:o}){return o(`@@ -${n+1},${e-n} +${t+1},${r-t} @@`)}function se(n,e){const t=n.length,r=e.contextLines,o=r+r;let l=t,s=!1,b=0,u=0;for(;u!==t;){const g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0)u>r&&(l-=u-r,s=!0);else if(u===t){const w=u-g;w>r&&(l-=w-r,s=!0)}else{const w=u-g;w>o&&(l-=w-o,b+=1)}for(;u!==t&&n[u][0]!==M;)u+=1}const F=b!==0||s;b!==0?l+=b+1:s&&(l+=1);const y=l-1,C=[];let D=0;F&&C.push("");let c=0,i=0,h=0,a=0;const f=g=>{const w=C.length;C.push(Hn(g,w===0||w===y,e)),h+=1,a+=1},p=g=>{const w=C.length;C.push(Gn(g,w===0||w===y,e)),h+=1},L=g=>{const w=C.length;C.push(zn(g,w===0||w===y,e)),a+=1};for(u=0;u!==t;){let g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0){u>r&&(g=u-r,c=g,i=g,h=c,a=i);for(let w=g;w!==u;w+=1)f(n[w][1])}else if(u===t){const w=u-g>r?g+r:u;for(let $=g;$!==w;$+=1)f(n[$][1])}else{const w=u-g;if(w>o){const $=g+r;for(let P=g;P!==$;P+=1)f(n[P][1]);C[D]=Ln(c,h,i,a,e),D=C.length,C.push("");const m=w-o;c=h+m,i=a+m,h=c,a=i;for(let P=u-r;P!==u;P+=1)f(n[P][1])}else for(let $=g;$!==u;$+=1)f(n[$][1])}for(;u!==t&&n[u][0]===j;)p(n[u][1]),u+=1;for(;u!==t&&n[u][0]===O;)L(n[u][1]),u+=1}return F&&(C[D]=Ln(c,h,i,a,e)),C.join(`
|
|
1
|
+
var Qn=Object.defineProperty;var Zn=(n,e,t)=>e in n?Qn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var K=(n,e,t)=>Zn(n,typeof e!="symbol"?e+"":e,t);import{format as Q,plugins as Bn}from"../../../../../@vitest_pretty-format@3.2.0/node_modules/@vitest/pretty-format/dist/index.js";import Y from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{s as Rn,g as vn}from"./chunk-_commonjsHelpers.js";import{deepClone as wn,getOwnProperties as xn,getType as sn}from"./helpers.js";import"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const j=-1,O=1,M=0;class A{constructor(e,t){K(this,0);K(this,1);this[0]=e,this[1]=t}}function dn(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(l,o)===e.substring(l,o)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function kn(n,e){if(!n||!e||n.charAt(n.length-1)!==e.charAt(e.length-1))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(n.length-o,n.length-l)===e.substring(e.length-o,e.length-l)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function Cn(n,e){const t=n.length,r=e.length;if(t===0||r===0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));const o=Math.min(t,r);if(n===e)return o;let l=0,s=1;for(;;){const b=n.substring(o-s),u=e.indexOf(b);if(u===-1)return l;s+=u,(u===0||n.substring(o-s)===e.substring(0,s))&&(l=s,s++)}}function ne(n){let e=!1;const t=[];let r=0,o=null,l=0,s=0,b=0,u=0,F=0;for(;l<n.length;)n[l][0]===M?(t[r++]=l,s=u,b=F,u=0,F=0,o=n[l][1]):(n[l][0]===O?u+=n[l][1].length:F+=n[l][1].length,o&&o.length<=Math.max(s,b)&&o.length<=Math.max(u,F)&&(n.splice(t[r-1],0,new A(j,o)),n[t[r-1]+1][0]=O,r--,r--,l=r>0?t[r-1]:-1,s=0,b=0,u=0,F=0,o=null,e=!0)),l++;for(e&&Nn(n),re(n),l=1;l<n.length;){if(n[l-1][0]===j&&n[l][0]===O){const y=n[l-1][1],C=n[l][1],D=Cn(y,C),c=Cn(C,y);D>=c?(D>=y.length/2||D>=C.length/2)&&(n.splice(l,0,new A(M,C.substring(0,D))),n[l-1][1]=y.substring(0,y.length-D),n[l+1][1]=C.substring(D),l++):(c>=y.length/2||c>=C.length/2)&&(n.splice(l,0,new A(M,y.substring(0,c))),n[l-1][0]=O,n[l-1][1]=C.substring(0,C.length-c),n[l+1][0]=j,n[l+1][1]=y.substring(c),l++),l++}l++}}const bn=/[^a-z0-9]/i,yn=/\s/,$n=/[\r\n]/,ee=/\n\r?\n$/,te=/^\r?\n\r?\n/;function re(n){let e=1;for(;e<n.length-1;){if(n[e-1][0]===M&&n[e+1][0]===M){let t=n[e-1][1],r=n[e][1],o=n[e+1][1];const l=kn(t,r);if(l){const y=r.substring(r.length-l);t=t.substring(0,t.length-l),r=y+r.substring(0,r.length-l),o=y+o}let s=t,b=r,u=o,F=en(t,r)+en(r,o);for(;r.charAt(0)===o.charAt(0);){t+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);const y=en(t,r)+en(r,o);y>=F&&(F=y,s=t,b=r,u=o)}n[e-1][1]!==s&&(s?n[e-1][1]=s:(n.splice(e-1,1),e--),n[e][1]=b,u?n[e+1][1]=u:(n.splice(e+1,1),e--))}e++}}function Nn(n){n.push(new A(M,""));let e=0,t=0,r=0,o="",l="",s;for(;e<n.length;)switch(n[e][0]){case O:r++,l+=n[e][1],e++;break;case j:t++,o+=n[e][1],e++;break;case M:t+r>1?(t!==0&&r!==0&&(s=dn(l,o),s!==0&&(e-t-r>0&&n[e-t-r-1][0]===M?n[e-t-r-1][1]+=l.substring(0,s):(n.splice(0,0,new A(M,l.substring(0,s))),e++),l=l.substring(s),o=o.substring(s)),s=kn(l,o),s!==0&&(n[e][1]=l.substring(l.length-s)+n[e][1],l=l.substring(0,l.length-s),o=o.substring(0,o.length-s))),e-=t+r,n.splice(e,t+r),o.length&&(n.splice(e,0,new A(j,o)),e++),l.length&&(n.splice(e,0,new A(O,l)),e++),e++):e!==0&&n[e-1][0]===M?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,o="",l="";break}n[n.length-1][1]===""&&n.pop();let b=!1;for(e=1;e<n.length-1;)n[e-1][0]===M&&n[e+1][0]===M&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)===n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),b=!0):n[e][1].substring(0,n[e+1][1].length)===n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),b=!0)),e++;b&&Nn(n)}function en(n,e){if(!n||!e)return 6;const t=n.charAt(n.length-1),r=e.charAt(0),o=t.match(bn),l=r.match(bn),s=o&&t.match(yn),b=l&&r.match(yn),u=s&&t.match($n),F=b&&r.match($n),y=u&&n.match(ee),C=F&&e.match(te);return y||C?5:u||F?4:o&&!s&&b?3:s||b?2:o||l?1:0}const qn="Compared values have no visual difference.",oe="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";var tn={},Fn;function le(){if(Fn)return tn;Fn=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=D;const n="diff-sequences",e=0,t=(c,i,h,a,f)=>{let p=0;for(;c<i&&h<a&&f(c,h);)c+=1,h+=1,p+=1;return p},r=(c,i,h,a,f)=>{let p=0;for(;c<=i&&h<=a&&f(i,a);)i-=1,a-=1,p+=1;return p},o=(c,i,h,a,f,p,L)=>{let g=0,w=-c,$=p[g],m=$;p[g]+=t($+1,i,a+$-w+1,h,f);const P=c<L?c:L;for(g+=1,w+=2;g<=P;g+=1,w+=2){if(g!==c&&m<p[g])$=p[g];else if($=m+1,i<=$)return g-1;m=p[g],p[g]=$+t($+1,i,a+$-w+1,h,f)}return L},l=(c,i,h,a,f,p,L)=>{let g=0,w=c,$=p[g],m=$;p[g]-=r(i,$-1,h,a+$-w-1,f);const P=c<L?c:L;for(g+=1,w-=2;g<=P;g+=1,w-=2){if(g!==c&&p[g]<m)$=p[g];else if($=m-1,$<i)return g-1;m=p[g],p[g]=$-r(i,$-1,h,a+$-w-1,f)}return L},s=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=a-i,z=h-i,E=f-a-z,R=-E-(c-1),H=-E+(c-1);let k=e;const _=c<g?c:g;for(let T=0,S=-c;T<=_;T+=1,S+=2){const X=T===0||T!==c&&k<L[T],B=X?L[T]:k,q=X?B:B+1,J=P+q-S,U=t(q+1,h,J+1,f,p),G=q+U;if(k=L[T],L[T]=G,R<=S&&S<=H){const Z=(c-1-(S+E))/2;if(Z<=$&&w[Z]-1<=G){const I=P+B-(X?S+1:S-1),N=r(i,B,a,I,p),V=B-N,nn=I-N,x=V+1,on=nn+1;m.nChangePreceding=c-1,c-1===x+on-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=x,m.bEndPreceding=on),m.nCommonPreceding=N,N!==0&&(m.aCommonPreceding=x,m.bCommonPreceding=on),m.nCommonFollowing=U,U!==0&&(m.aCommonFollowing=q+1,m.bCommonFollowing=J+1);const mn=G+1,pn=J+U+1;return m.nChangeFollowing=c-1,c-1===h+f-mn-pn?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=mn,m.bStartFollowing=pn),!0}}}return!1},b=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=f-h,z=h-i,E=f-a-z,R=E-c,H=E+c;let k=e;const _=c<$?c:$;for(let T=0,S=c;T<=_;T+=1,S-=2){const X=T===0||T!==c&&w[T]<k,B=X?w[T]:k,q=X?B:B-1,J=P+q-S,U=r(i,q-1,a,J-1,p),G=q-U;if(k=w[T],w[T]=G,R<=S&&S<=H){const Z=(c+(S-E))/2;if(Z<=g&&G-1<=L[Z]){const I=J-U;if(m.nChangePreceding=c,c===G+I-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=G,m.bEndPreceding=I),m.nCommonPreceding=U,U!==0&&(m.aCommonPreceding=G,m.bCommonPreceding=I),m.nChangeFollowing=c-1,c===1)m.nCommonFollowing=0,m.aStartFollowing=h,m.bStartFollowing=f;else{const N=P+B-(X?S-1:S+1),V=t(B,h,N,f,p);m.nCommonFollowing=V,V!==0&&(m.aCommonFollowing=B,m.bCommonFollowing=N);const nn=B+V,x=N+V;c-1===h+f-nn-x?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=nn,m.bStartFollowing=x)}return!0}}}return!1},u=(c,i,h,a,f,p,L,g,w)=>{const $=a-i,m=f-h,P=h-i,z=f-a,W=z-P;let E=P,R=P;if(L[0]=i-1,g[0]=h,W%2===0){const H=(c||W)/2,k=(P+z)/2;for(let _=1;_<=k;_+=1)if(E=o(_,h,f,$,p,L,E),_<H)R=l(_,i,a,m,p,g,R);else if(b(_,i,h,a,f,p,L,E,g,R,w))return}else{const H=((c||W)+1)/2,k=(P+z+1)/2;let _=1;for(E=o(_,h,f,$,p,L,E),_+=1;_<=k;_+=1)if(R=l(_-1,i,a,m,p,g,R),_<H)E=o(_,h,f,$,p,L,E);else if(s(_,i,h,a,f,p,L,E,g,R,w))return}throw new Error(`${n}: no overlap aStart=${i} aEnd=${h} bStart=${a} bEnd=${f}`)},F=(c,i,h,a,f,p,L,g,w,$)=>{if(f-a<h-i){if(p=!p,p&&L.length===1){const{foundSubsequence:G,isCommon:Z}=L[0];L[1]={foundSubsequence:(I,N,V)=>{G(I,V,N)},isCommon:(I,N)=>Z(N,I)}}const J=i,U=h;i=a,h=f,a=J,f=U}const{foundSubsequence:m,isCommon:P}=L[p?1:0];u(c,i,h,a,f,P,g,w,$);const{nChangePreceding:z,aEndPreceding:W,bEndPreceding:E,nCommonPreceding:R,aCommonPreceding:H,bCommonPreceding:k,nCommonFollowing:_,aCommonFollowing:T,bCommonFollowing:S,nChangeFollowing:X,aStartFollowing:B,bStartFollowing:q}=$;i<W&&a<E&&F(z,i,W,a,E,p,L,g,w,$),R!==0&&m(R,H,k),_!==0&&m(_,T,S),B<h&&q<f&&F(X,B,h,q,f,p,L,g,w,$)},y=(c,i)=>{if(typeof i!="number")throw new TypeError(`${n}: ${c} typeof ${typeof i} is not a number`);if(!Number.isSafeInteger(i))throw new RangeError(`${n}: ${c} value ${i} is not a safe integer`);if(i<0)throw new RangeError(`${n}: ${c} value ${i} is a negative integer`)},C=(c,i)=>{const h=typeof i;if(h!=="function")throw new TypeError(`${n}: ${c} typeof ${h} is not a function`)};function D(c,i,h,a){y("aLength",c),y("bLength",i),C("isCommon",h),C("foundSubsequence",a);const f=t(0,c,0,i,h);if(f!==0&&a(f,0,0),c!==f||i!==f){const p=f,L=f,g=r(p,c-1,L,i-1,h),w=c-g,$=i-g,m=f+g;c!==m&&i!==m&&F(0,p,w,L,$,!1,[{foundSubsequence:a,isCommon:h}],[e],[e],{aCommonFollowing:e,aCommonPreceding:e,aEndPreceding:e,aStartFollowing:e,bCommonFollowing:e,bCommonPreceding:e,bEndPreceding:e,bStartFollowing:e,nChangeFollowing:e,nChangePreceding:e,nCommonFollowing:e,nCommonPreceding:e}),g!==0&&a(g,w,$)}}return tn}var ce=le(),Un=vn(ce);function ie(n,e){return n.replace(/\s+$/,t=>e(t))}function an(n,e,t,r,o,l){return n.length!==0?t(`${r} ${ie(n,o)}`):r!==" "?t(r):e&&l.length!==0?t(`${r} ${l}`):""}function Gn(n,e,{aColor:t,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function zn(n,e,{bColor:t,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Hn(n,e,{commonColor:t,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Ln(n,e,t,r,{patchColor:o}){return o(`@@ -${n+1},${e-n} +${t+1},${r-t} @@`)}function se(n,e){const t=n.length,r=e.contextLines,o=r+r;let l=t,s=!1,b=0,u=0;for(;u!==t;){const g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0)u>r&&(l-=u-r,s=!0);else if(u===t){const w=u-g;w>r&&(l-=w-r,s=!0)}else{const w=u-g;w>o&&(l-=w-o,b+=1)}for(;u!==t&&n[u][0]!==M;)u+=1}const F=b!==0||s;b!==0?l+=b+1:s&&(l+=1);const y=l-1,C=[];let D=0;F&&C.push("");let c=0,i=0,h=0,a=0;const f=g=>{const w=C.length;C.push(Hn(g,w===0||w===y,e)),h+=1,a+=1},p=g=>{const w=C.length;C.push(Gn(g,w===0||w===y,e)),h+=1},L=g=>{const w=C.length;C.push(zn(g,w===0||w===y,e)),a+=1};for(u=0;u!==t;){let g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0){u>r&&(g=u-r,c=g,i=g,h=c,a=i);for(let w=g;w!==u;w+=1)f(n[w][1])}else if(u===t){const w=u-g>r?g+r:u;for(let $=g;$!==w;$+=1)f(n[$][1])}else{const w=u-g;if(w>o){const $=g+r;for(let P=g;P!==$;P+=1)f(n[P][1]);C[D]=Ln(c,h,i,a,e),D=C.length,C.push("");const m=w-o;c=h+m,i=a+m,h=c,a=i;for(let P=u-r;P!==u;P+=1)f(n[P][1])}else for(let $=g;$!==u;$+=1)f(n[$][1])}for(;u!==t&&n[u][0]===j;)p(n[u][1]),u+=1;for(;u!==t&&n[u][0]===O;)L(n[u][1]),u+=1}return F&&(C[D]=Ln(c,h,i,a,e)),C.join(`
|
|
2
2
|
`)}function ue(n,e){return n.map((t,r,o)=>{const l=t[1],s=r===0||r===o.length-1;switch(t[0]){case j:return Gn(l,s,e);case O:return zn(l,s,e);default:return Hn(l,s,e)}}).join(`
|
|
3
3
|
`)}const ln=n=>n,In=5,he=0;function ge(){return{aAnnotation:"Expected",aColor:Y.green,aIndicator:"-",bAnnotation:"Received",bColor:Y.red,bIndicator:"+",changeColor:Y.inverse,changeLineTrailingSpaceColor:ln,commonColor:Y.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ln,compareKeys:void 0,contextLines:In,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Y.yellow,printBasicPrototype:!1,truncateThreshold:he,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ln}}function ae(n){return n&&typeof n=="function"?n:void 0}function fe(n){return typeof n=="number"&&Number.isSafeInteger(n)&&n>=0?n:In}function v(n={}){return{...ge(),...n,compareKeys:ae(n.compareKeys),contextLines:fe(n.contextLines)}}function d(n){return n.length===1&&n[0].length===0}function me(n){let e=0,t=0;return n.forEach(r=>{switch(r[0]){case j:e+=1;break;case O:t+=1;break}}),{a:e,b:t}}function pe({aAnnotation:n,aColor:e,aIndicator:t,bAnnotation:r,bColor:o,bIndicator:l,includeChangeCounts:s,omitAnnotationLines:b},u){if(b)return"";let F="",y="";if(s){const c=String(u.a),i=String(u.b),h=r.length-n.length,a=" ".repeat(Math.max(0,h)),f=" ".repeat(Math.max(0,-h)),p=i.length-c.length,L=" ".repeat(Math.max(0,p)),g=" ".repeat(Math.max(0,-p));F=`${a} ${t} ${L}${c}`,y=`${f} ${l} ${g}${i}`}const C=`${t} ${n}${F}`,D=`${l} ${r}${y}`;return`${e(C)}
|
|
4
4
|
${o(D)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{printDiffOrStringify as a}from"./diff.js";import{s as c,f as p}from"./chunk-_commonjsHelpers.js";import"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const m="@@__IMMUTABLE_RECORD__@@",g="@@__IMMUTABLE_ITERABLE__@@";function y(t){return t&&(t[g]||t[m])}const d=Object.getPrototypeOf({});function u(t){return t instanceof Error?`<unserializable>: ${t.message}`:typeof t=="string"?`<unserializable>: ${t}`:"<unserializable>"}function o(t,n=new WeakMap){if(!t||typeof t=="string")return t;if(t instanceof Error&&"toJSON"in t&&typeof t.toJSON=="function"){const r=t.toJSON();return r&&r!==t&&typeof r=="object"&&(typeof t.message=="string"&&s(()=>r.message??(r.message=t.message)),typeof t.stack=="string"&&s(()=>r.stack??(r.stack=t.stack)),typeof t.name=="string"&&s(()=>r.name??(r.name=t.name)),t.cause!=null&&s(()=>r.cause??(r.cause=o(t.cause,n)))),o(r,n)}if(typeof t=="function")return`Function<${t.name||"anonymous"}>`;if(typeof t=="symbol")return t.toString();if(typeof t!="object")return t;if(y(t))return o(t.toJSON(),n);if(t instanceof Promise||t.constructor&&t.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&t instanceof Element)return t.tagName;if(typeof t.asymmetricMatch=="function")return`${t.toString()} ${p(t.sample)}`;if(typeof t.toJSON=="function")return o(t.toJSON(),n);if(n.has(t))return n.get(t);if(Array.isArray(t)){const r=new Array(t.length);return n.set(t,r),t.forEach((e,i)=>{try{r[i]=o(e,n)}catch(f){r[i]=u(f)}}),r}else{const r=Object.create(null);n.set(t,r);let e=t;for(;e&&e!==d;)Object.getOwnPropertyNames(e).forEach(i=>{if(!(i in r))try{r[i]=o(t[i],n)}catch(f){delete r[i],r[i]=u(f)}}),e=Object.getPrototypeOf(e);return r}}function s(t){try{return t()}catch{}}function O(t){return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function _(t,n,r=new WeakSet){if(!t||typeof t!="object")return{message:String(t)};const e=t;(e.showDiff||e.showDiff===void 0&&e.expected!==void 0&&e.actual!==void 0)&&(e.diff=a(e.actual,e.expected,{...n,...e.diffOptions})),"expected"in e&&typeof e.expected!="string"&&(e.expected=c(e.expected,10)),"actual"in e&&typeof e.actual!="string"&&(e.actual=c(e.actual,10));try{typeof e.message=="string"&&(e.message=O(e.message))}catch{}try{!r.has(e)&&typeof e.cause=="object"&&(r.add(e),e.cause=_(e.cause,n,r))}catch{}try{return o(e)}catch(i){return o(new Error(`Failed to fully serialize error: ${i==null?void 0:i.message}
|
|
2
|
+
Inner error message: ${e==null?void 0:e.message}`))}}export{_ as processError,o as serializeError,o as serializeValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__module as a}from"../../../../../_virtual/index10.js";import{__require as s}from"../../../buffer@5.7.1/node_modules/buffer/index.js";var l;function w(){return l?a.exports:(l=1,function(p,i){var o=s(),e=o.Buffer;function m(r,f){for(var u in r)f[u]=r[u]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?p.exports=o:(m(o,i),i.Buffer=n);function n(r,f,u){return e(r,f,u)}m(e,n),n.from=function(r,f,u){if(typeof r=="number")throw new TypeError("Argument must not be a number");return e(r,f,u)},n.alloc=function(r,f,u){if(typeof r!="number")throw new TypeError("Argument must be a number");var t=e(r);return f!==void 0?typeof u=="string"?t.fill(f,u):t.fill(f):t.fill(0),t},n.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return e(r)},n.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(r)}}(a,a.exports),a.exports)}export{w as __require};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exports as h}from"../../../../../../_virtual/string_decoder.js";import{__require as y}from"../../../../safe-buffer@5.2
|
|
1
|
+
import{__exports as h}from"../../../../../../_virtual/string_decoder.js";import{__require as y}from"../../../../safe-buffer@5.1.2/node_modules/safe-buffer/index.js";var c;function k(){if(c)return h;c=1;var n=y().Buffer,o=n.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function u(t){var e=d(t);if(typeof e!="string"&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}h.StringDecoder=a;function a(t){this.encoding=u(t);var e;switch(this.encoding){case"utf16le":this.text=p,this.end=v,e=4;break;case"utf8":this.fillLast=N,e=4;break;case"base64":this.text=w,this.end=S,e=3;break;default:this.write=T,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}a.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},a.prototype.end=C,a.prototype.text=x,a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function l(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function f(t,e,r){var i=e.length-1;if(i<r)return 0;var s=l(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=l(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=l(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function g(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function N(t){var e=this.lastTotal-this.lastNeed,r=g(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function x(t,e){var r=f(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function C(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function v(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function w(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function S(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function T(t){return t.toString(this.encoding)}function E(t){return t&&t.length?this.write(t):""}return h}export{k as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function d(e,t){if(!e)throw new Error(t)}function a(e,t){return typeof t===e}function x(e){return e instanceof Promise}function g(e,t,n){Object.defineProperty(e,t,n)}function y(e,t,n){g(e,t,{value:n,configurable:!0,writable:!0})}var c=Symbol.for("tinyspy:spy"),F=new Set,T=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},b=e=>(g(e,c,{value:{reset:()=>T(e[c])}}),e[c]),S=e=>e[c]||b(e);function E(e){d(a("function",e)||a("undefined",e),"cannot spy on a non-function value");let t=function(...o){let r=S(t);r.called=!0,r.callCount++,r.calls.push(o);let f=r.next.shift();if(f){r.results.push(f);let[i,u]=f;if(i==="ok")return u;throw u}let s,p="ok",l=r.results.length;if(r.impl)try{new.target?s=Reflect.construct(r.impl,o,new.target):s=r.impl.apply(this,o),p="ok"}catch(i){throw s=i,p="error",r.results.push([p,i]),i}let O=[p,s];return x(s)&&s.then(i=>r.resolves[l]=["ok",i],i=>r.resolves[l]=["error",i]),r.results.push(O),s};y(t,"_isMockFunction",!0),y(t,"length",e?e.length:0),y(t,"name",e&&e.name||"spy");let n=S(t);return n.reset(),n.impl=e,t}function M(e){return!!e&&e._isMockFunction===!0}var D=(e,t)=>{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let o=Object.getPrototypeOf(e);for(;o!==null;){let r=Object.getOwnPropertyDescriptor(o,t);if(r)return[o,r];o=Object.getPrototypeOf(o)}},h=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function R(e,t,n){d(!a("undefined",e),"spyOn could not find an object to spy upon"),d(a("object",e)||a("function",e),"cannot spyOn on a primitive value");let[o,r]=(()=>{if(!a("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[f,s]=D(e,o)||[];d(s||o in e,`${String(o)} does not exist`);let p=!1;r==="value"&&s&&!s.value&&s.get&&(r="get",p=!0,n=s.get());let l;s?l=s[r]:r!=="value"?l=()=>e[o]:l=e[o],l&&j(l)&&(l=l[c].getOriginal());let O=P=>{let{value:A,...v}=s||{configurable:!0,writable:!0};r!=="value"&&delete v.writable,v[r]=P,g(e,o,v)},i=()=>{f!==e?Reflect.deleteProperty(e,o):s&&!l?g(e,o,s):O(l)};n||(n=l);let u=_(E(n),n);r==="value"&&h(u,l);let w=u[c];return y(w,"restore",i),y(w,"getOriginal",()=>p?l():l),y(w,"willCall",P=>(w.impl=P,u)),O(p?()=>(h(u,n),u):u),F.add(u),u}var C=new Set(["length","name","prototype"]);function I(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let r of o)n[r]||C.has(r)||(t.add(r),n[r]=Object.getOwnPropertyDescriptor(e,r));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}function _(e,t){if(!t||c in t)return e;let{properties:n,descriptors:o}=I(t);for(let r of n){let f=o[r];D(e,r)||g(e,r,f)}return e}function j(e){return M(e)&&"getOriginal"in e[c]}export{E as createInternalSpy,S as getInternalState,R as internalSpyOn,F as spies};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__require as d}from"./parse.js";import{__require as m}from"./util.js";import{__require as p}from"../fetch/webidl.js";import{__require as b}from"../fetch/headers.js";var l,a;function D(){if(a)return l;a=1;const{parseSetCookie:s}=d(),{stringify:i}=m(),{webidl:e}=p(),{Headers:o}=b();function c(r){e.argumentLengthCheck(arguments,1,{header:"getCookies"}),e.brandCheck(r,o,{strict:!1});const t=r.get("cookie"),n={};if(!t)return n;for(const C of t.split(";")){const[g,...f]=C.split("=");n[g.trim()]=f.join("=")}return n}function v(r,t,n){e.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),e.brandCheck(r,o,{strict:!1}),t=e.converters.DOMString(t),n=e.converters.DeleteCookieAttributes(n),u(r,{name:t,value:"",expires:new Date(0),...n})}function k(r){e.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),e.brandCheck(r,o,{strict:!1});const t=r.getSetCookie();return t?t.map(n=>s(n)):[]}function u(r,t){e.argumentLengthCheck(arguments,2,{header:"setCookie"}),e.brandCheck(r,o,{strict:!1}),t=e.converters.Cookie(t),i(t)&&r.append("Set-Cookie",i(t))}return e.converters.DeleteCookieAttributes=e.dictionaryConverter([{converter:e.nullableConverter(e.converters.DOMString),key:"path",defaultValue:null},{converter:e.nullableConverter(e.converters.DOMString),key:"domain",defaultValue:null}]),e.converters.Cookie=e.dictionaryConverter([{converter:e.converters.DOMString,key:"name"},{converter:e.converters.DOMString,key:"value"},{converter:e.nullableConverter(r=>typeof r=="number"?e.converters["unsigned long long"](r):new Date(r)),key:"expires",defaultValue:null},{converter:e.nullableConverter(e.converters["long long"]),key:"maxAge",defaultValue:null},{converter:e.nullableConverter(e.converters.DOMString),key:"domain",defaultValue:null},{converter:e.nullableConverter(e.converters.DOMString),key:"path",defaultValue:null},{converter:e.nullableConverter(e.converters.boolean),key:"secure",defaultValue:null},{converter:e.nullableConverter(e.converters.boolean),key:"httpOnly",defaultValue:null},{converter:e.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:e.sequenceConverter(e.converters.DOMString),key:"unparsed",defaultValue:[]}]),l={getCookies:c,deleteCookie:v,getSetCookies:k,setCookie:u},l}export{D as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i,h;function v(){if(h)return i;h=1;function l(t){if(t.length===0)return!1;for(const n of t){const r=n.charCodeAt(0);if(r>=0||r<=8||r>=10||r<=31||r===127)return!1}}function s(t){for(const n of t){const r=n.charCodeAt(0);if(r<=32||r>127||n==="("||n===")"||n===">"||n==="<"||n==="@"||n===","||n===";"||n===":"||n==="\\"||n==='"'||n==="/"||n==="["||n==="]"||n==="?"||n==="="||n==="{"||n==="}")throw new Error("Invalid cookie name")}}function u(t){for(const n of t){const r=n.charCodeAt(0);if(r<33||r===34||r===44||r===59||r===92||r>126)throw new Error("Invalid header value")}}function o(t){for(const n of t)if(n.charCodeAt(0)<33||n===";")throw new Error("Invalid cookie path")}function d(t){if(t.startsWith("-")||t.endsWith(".")||t.endsWith("-"))throw new Error("Invalid cookie domain")}function f(t){typeof t=="number"&&(t=new Date(t));const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=n[t.getUTCDay()],a=t.getUTCDate().toString().padStart(2,"0"),m=r[t.getUTCMonth()],x=t.getUTCFullYear(),g=t.getUTCHours().toString().padStart(2,"0"),C=t.getUTCMinutes().toString().padStart(2,"0"),S=t.getUTCSeconds().toString().padStart(2,"0");return`${e}, ${a} ${m} ${x} ${g}:${C}:${S} GMT`}function p(t){if(t<0)throw new Error("Invalid cookie max-age")}function c(t){if(t.name.length===0)return null;s(t.name),u(t.value);const n=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&n.push("Secure"),t.httpOnly&&n.push("HttpOnly"),typeof t.maxAge=="number"&&(p(t.maxAge),n.push(`Max-Age=${t.maxAge}`)),t.domain&&(d(t.domain),n.push(`Domain=${t.domain}`)),t.path&&(o(t.path),n.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&n.push(`Expires=${f(t.expires)}`),t.sameSite&&n.push(`SameSite=${t.sameSite}`);for(const r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");const[e,...a]=r.split("=");n.push(`${e.trim()}=${a.join("=")}`)}return n.join("; ")}return i={isCTLExcludingHtab:l,validateCookieName:s,validateCookiePath:o,validateCookieValue:u,toIMFDate:f,stringify:c},i}export{v as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var L=Object.defineProperty;var E=(o,d,h)=>d in o?L(o,d,{enumerable:!0,configurable:!0,writable:!0,value:h}):o[d]=h;var H=(o,d,h)=>E(o,typeof d!="symbol"?d+"":d,h);import{__require as T}from"../core/symbols.js";import{__require as $}from"./symbols.js";import{__require as M}from"../core/util.js";import{__require as N}from"./util.js";import{__require as F}from"../../../../../util@0.12.5/node_modules/util/util.js";import{__require as I}from"./webidl.js";import O from"../../../../../../../_virtual/___vite-browser-external.js";var v,x;function D(){if(x)return v;x=1;const{kHeadersList:o,kConstruct:d}=T(),{kGuard:h}=$(),{kEnumerableProperty:c}=M(),{makeIterator:g,isValidHeaderName:p,isValidHeaderValue:b}=N(),B=F(),{webidl:t}=I(),A=O,u=Symbol("headers map"),n=Symbol("headers map sorted");function w(i){return i===10||i===13||i===9||i===32}function S(i){let e=0,r=i.length;for(;r>e&&w(i.charCodeAt(r-1));)--r;for(;r>e&&w(i.charCodeAt(e));)++e;return e===0&&r===i.length?i:i.substring(e,r)}function C(i,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){const s=e[r];if(s.length!==2)throw t.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});y(i,s[0],s[1])}else if(typeof e=="object"&&e!==null){const r=Object.keys(e);for(let s=0;s<r.length;++s)y(i,r[s],e[r[s]])}else throw t.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function y(i,e,r){if(r=S(r),p(e)){if(!b(r))throw t.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw t.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(i[h]==="immutable")throw new TypeError("immutable");return i[h],i[o].append(e,r)}class m{constructor(e){H(this,"cookies",null);e instanceof m?(this[u]=new Map(e[u]),this[n]=e[n],this.cookies=e.cookies===null?null:[...e.cookies]):(this[u]=new Map(e),this[n]=null)}contains(e){return e=e.toLowerCase(),this[u].has(e)}clear(){this[u].clear(),this[n]=null,this.cookies=null}append(e,r){this[n]=null;const s=e.toLowerCase(),l=this[u].get(s);if(l){const f=s==="cookie"?"; ":", ";this[u].set(s,{name:l.name,value:`${l.value}${f}${r}`})}else this[u].set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??(this.cookies=[]),this.cookies.push(r))}set(e,r){this[n]=null;const s=e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this[u].set(s,{name:e,value:r})}delete(e){this[n]=null,e=e.toLowerCase(),e==="set-cookie"&&(this.cookies=null),this[u].delete(e)}get(e){const r=this[u].get(e.toLowerCase());return r===void 0?null:r.value}*[Symbol.iterator](){for(const[e,{value:r}]of this[u])yield[e,r]}get entries(){const e={};if(this[u].size)for(const{name:r,value:s}of this[u].values())e[r]=s;return e}}class a{constructor(e=void 0){e!==d&&(this[o]=new m,this[h]="none",e!==void 0&&(e=t.converters.HeadersInit(e),C(this,e)))}append(e,r){return t.brandCheck(this,a),t.argumentLengthCheck(arguments,2,{header:"Headers.append"}),e=t.converters.ByteString(e),r=t.converters.ByteString(r),y(this,e,r)}delete(e){if(t.brandCheck(this,a),t.argumentLengthCheck(arguments,1,{header:"Headers.delete"}),e=t.converters.ByteString(e),!p(e))throw t.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this[h]==="immutable")throw new TypeError("immutable");this[h],this[o].contains(e)&&this[o].delete(e)}get(e){if(t.brandCheck(this,a),t.argumentLengthCheck(arguments,1,{header:"Headers.get"}),e=t.converters.ByteString(e),!p(e))throw t.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"});return this[o].get(e)}has(e){if(t.brandCheck(this,a),t.argumentLengthCheck(arguments,1,{header:"Headers.has"}),e=t.converters.ByteString(e),!p(e))throw t.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"});return this[o].contains(e)}set(e,r){if(t.brandCheck(this,a),t.argumentLengthCheck(arguments,2,{header:"Headers.set"}),e=t.converters.ByteString(e),r=t.converters.ByteString(r),r=S(r),p(e)){if(!b(r))throw t.errors.invalidArgument({prefix:"Headers.set",value:r,type:"header value"})}else throw t.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"});if(this[h]==="immutable")throw new TypeError("immutable");this[h],this[o].set(e,r)}getSetCookie(){t.brandCheck(this,a);const e=this[o].cookies;return e?[...e]:[]}get[n](){if(this[o][n])return this[o][n];const e=[],r=[...this[o]].sort((l,f)=>l[0]<f[0]?-1:1),s=this[o].cookies;for(let l=0;l<r.length;++l){const[f,q]=r[l];if(f==="set-cookie")for(let k=0;k<s.length;++k)e.push([f,s[k]]);else A(q!==null),e.push([f,q])}return this[o][n]=e,e}keys(){if(t.brandCheck(this,a),this[h]==="immutable"){const e=this[n];return g(()=>e,"Headers","key")}return g(()=>[...this[n].values()],"Headers","key")}values(){if(t.brandCheck(this,a),this[h]==="immutable"){const e=this[n];return g(()=>e,"Headers","value")}return g(()=>[...this[n].values()],"Headers","value")}entries(){if(t.brandCheck(this,a),this[h]==="immutable"){const e=this[n];return g(()=>e,"Headers","key+value")}return g(()=>[...this[n].values()],"Headers","key+value")}forEach(e,r=globalThis){if(t.brandCheck(this,a),t.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(const[s,l]of this)e.apply(r,[l,s,this])}[Symbol.for("nodejs.util.inspect.custom")](){return t.brandCheck(this,a),this[o]}}return a.prototype[Symbol.iterator]=a.prototype.entries,Object.defineProperties(a.prototype,{append:c,delete:c,get:c,has:c,set:c,getSetCookie:c,keys:c,values:c,entries:c,forEach:c,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0},[B.inspect.custom]:{enumerable:!1}}),t.converters.HeadersInit=function(i){if(t.util.Type(i)==="Object")return i[Symbol.iterator]?t.converters["sequence<sequence<ByteString>>"](i):t.converters["record<ByteString, ByteString>"](i);throw t.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})},v={fill:C,Headers:a,HeadersList:m},v}export{D as __require};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__require as A}from"./symbols.js";import{__require as P}from"./progressevent.js";import{__require as R}from"./encoding.js";import{__require as O}from"../fetch/constants.js";import{__require as I}from"../fetch/dataURL.js";import{__require as z}from"../../../../../util@0.12.5/node_modules/util/util.js";import{__require as C}from"../../../../../string_decoder@1.
|
|
1
|
+
import{__require as A}from"./symbols.js";import{__require as P}from"./progressevent.js";import{__require as R}from"./encoding.js";import{__require as O}from"../fetch/constants.js";import{__require as I}from"../fetch/dataURL.js";import{__require as z}from"../../../../../util@0.12.5/node_modules/util/util.js";import{__require as C}from"../../../../../string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js";import{__require as $}from"../../../../../buffer@5.7.1/node_modules/buffer/index.js";var g,F;function X(){if(F)return g;F=1;const{kState:u,kError:f,kResult:m,kAborted:c,kLastProgressEventFired:p}=A(),{ProgressEvent:U}=P(),{getEncoding:_}=R(),{DOMException:v}=O(),{serializeAMimeType:x,parseMIMEType:k}=I(),{types:B}=z(),{StringDecoder:E}=C(),{btoa:b}=$(),M={enumerable:!0,writable:!1,configurable:!1};function D(e,n,t,i){if(e[u]==="loading")throw new v("Invalid state","InvalidStateError");e[u]="loading",e[m]=null,e[f]=null;const o=n.stream().getReader(),s=[];let l=o.read(),w=!0;(async()=>{for(;!e[c];)try{const{done:d,value:y}=await l;if(w&&!e[c]&&queueMicrotask(()=>{a("loadstart",e)}),w=!1,!d&&B.isUint8Array(y))s.push(y),(e[p]===void 0||Date.now()-e[p]>=50)&&!e[c]&&(e[p]=Date.now(),queueMicrotask(()=>{a("progress",e)})),l=o.read();else if(d){queueMicrotask(()=>{e[u]="done";try{const q=S(s,t,n.type,i);if(e[c])return;e[m]=q,a("load",e)}catch(q){e[f]=q,a("error",e)}e[u]!=="loading"&&a("loadend",e)});break}}catch(d){if(e[c])return;queueMicrotask(()=>{e[u]="done",e[f]=d,a("error",e),e[u]!=="loading"&&a("loadend",e)});break}})()}function a(e,n){const t=new U(e,{bubbles:!1,cancelable:!1});n.dispatchEvent(t)}function S(e,n,t,i){switch(n){case"DataURL":{let r="data:";const o=k(t||"application/octet-stream");o!=="failure"&&(r+=x(o)),r+=";base64,";const s=new E("latin1");for(const l of e)r+=b(s.write(l));return r+=b(s.end()),r}case"Text":{let r="failure";if(i&&(r=_(i)),r==="failure"&&t){const o=k(t);o!=="failure"&&(r=_(o.parameters.get("charset")))}return r==="failure"&&(r="UTF-8"),L(e,r)}case"ArrayBuffer":return h(e).buffer;case"BinaryString":{let r="";const o=new E("latin1");for(const s of e)r+=o.write(s);return r+=o.end(),r}}}function L(e,n){const t=h(e),i=T(t);let r=0;i!==null&&(n=i,r=i==="UTF-8"?3:2);const o=t.slice(r);return new TextDecoder(n).decode(o)}function T(e){const[n,t,i]=e;return n===239&&t===187&&i===191?"UTF-8":n===254&&t===255?"UTF-16BE":n===255&&t===254?"UTF-16LE":null}function h(e){const n=e.reduce((i,r)=>i+r.byteLength,0);let t=0;return e.reduce((i,r)=>(i.set(r,t),t+=r.byteLength,i),new Uint8Array(n))}return g={staticPropertyDescriptors:M,readOperation:D,fireAProgressEvent:a},g}export{X as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__require as D}from"./pool-base.js";import{__require as I}from"./client.js";import{__require as N}from"./core/errors.js";import{__require as U}from"./core/util.js";import{__require as G}from"./core/symbols.js";import{__require as R}from"./core/connect.js";var l,_;function V(){if(_)return l;_=1;const{PoolBase:y,kClients:o,kNeedDrain:b,kAddClient:k,kGetDispatcher:C}=D(),P=I(),{InvalidArgumentError:n}=N(),s=U(),{kUrl:c,kInterceptors:w}=G(),g=R(),u=Symbol("options"),f=Symbol("connections"),a=Symbol("factory");function A(h,r){return new P(h,r)}class v extends y{constructor(r,{connections:i,factory:p=A,connect:e,connectTimeout:x,tls:S,maxCachedSessions:E,socketPath:F,autoSelectFamily:m,autoSelectFamilyAttemptTimeout:O,allowH2:d,...t}={}){if(super(),i!=null&&(!Number.isFinite(i)||i<0))throw new n("invalid connections");if(typeof p!="function")throw new n("factory must be a function.");if(e!=null&&typeof e!="function"&&typeof e!="object")throw new n("connect must be a function or an object");typeof e!="function"&&(e=g({...S,maxCachedSessions:E,allowH2:d,socketPath:F,timeout:x,...s.nodeHasAutoSelectFamily&&m?{autoSelectFamily:m,autoSelectFamilyAttemptTimeout:O}:void 0,...e})),this[w]=t.interceptors&&t.interceptors.Pool&&Array.isArray(t.interceptors.Pool)?t.interceptors.Pool:[],this[f]=i||null,this[c]=s.parseOrigin(r),this[u]={...s.deepClone(t),connect:e,allowH2:d},this[u].interceptors=t.interceptors?{...t.interceptors}:void 0,this[a]=p,this.on("connectionError",(z,j,H)=>{for(const B of j){const q=this[o].indexOf(B);q!==-1&&this[o].splice(q,1)}})}[C](){let r=this[o].find(i=>!i[b]);return r||((!this[f]||this[o].length<this[f])&&(r=this[a](this[c],this[u]),this[k](r)),r)}}return l=v,l}export{V as __require};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{getSafeTimers as a}from"../../../../../@vitest_utils@3.
|
|
1
|
+
import{getSafeTimers as a}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/index.js";const u="__vitest_worker__";function o(){const t=globalThis[u];if(!t){const e=`Vitest failed to access its internal state.
|
|
2
2
|
|
|
3
3
|
One of the following is possible:
|
|
4
4
|
- "vitest" is imported directly without running "vitest" command
|