@ncino/web-components 4.0.1-preview.1 → 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.
Files changed (142) hide show
  1. package/dist/_virtual/index_html.js +1 -1
  2. package/dist/components/avatar/avatar.js +1 -1
  3. package/dist/components/avatar/gator/avatar.gator.js +15 -10
  4. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
  5. package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
  6. package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
  7. package/dist/components/menu/base/gator/menu.gator.js +1 -1
  8. package/dist/components/popover/gator/popover.gator.js +1 -1
  9. package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
  10. package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
  11. 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
  12. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +1 -0
  13. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.1/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
  14. 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
  15. package/dist/node_modules/.pnpm/{@vitest_expect@3.1.4 → @vitest_expect@3.2.0}/node_modules/@vitest/expect/dist/index.js +17 -17
  16. package/dist/node_modules/.pnpm/@vitest_runner@3.2.0/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -0
  17. package/dist/node_modules/.pnpm/{@vitest_snapshot@3.1.4 → @vitest_snapshot@3.2.0}/node_modules/@vitest/snapshot/dist/index.js +5 -5
  18. package/dist/node_modules/.pnpm/@vitest_spy@3.2.0/node_modules/@vitest/spy/dist/index.js +1 -0
  19. 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
  20. package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/diff.js +1 -1
  21. package/dist/node_modules/.pnpm/@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/error.js +2 -0
  22. package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +1 -0
  23. 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
  24. package/dist/node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js +1 -0
  25. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/index.js +1 -0
  26. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/util.js +1 -0
  27. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -0
  28. package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/util.js +1 -1
  29. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js +1 -0
  30. package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.1.4_@vitest_ui@_d0ae304dca34f8d8a069ed58c3715569/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
  31. package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.1.4_@vitest_ui@_d0ae304dca34f8d8a069ed58c3715569/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
  32. package/dist/packages/web-components/src/components/avatar/gator/avatar.gator.scss.js +1 -1
  33. package/dist/types/components/avatar/avatar.d.ts +21 -4
  34. package/dist/types/components/avatar/gator/avatar.gator.d.ts +4 -1
  35. package/dist/utils/vitest-a11y-utils.js +1 -1
  36. package/package.json +28 -28
  37. package/web-types.json +34 -6
  38. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.2/node_modules/@figma/code-connect/package.json.js +0 -1
  39. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
  40. package/dist/node_modules/.pnpm/@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/chunk-tasks.js +0 -1
  41. package/dist/node_modules/.pnpm/@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/index.js +0 -4
  42. package/dist/node_modules/.pnpm/@vitest_spy@3.1.4/node_modules/@vitest/spy/dist/index.js +0 -1
  43. package/dist/node_modules/.pnpm/@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/error.js +0 -2
  44. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +0 -1
  45. package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js +0 -1
  46. package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/cookies/index.js +0 -1
  47. package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/cookies/util.js +0 -1
  48. package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/fetch/headers.js +0 -1
  49. package/dist/node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/pool.js +0 -1
  50. /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
  51. /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
  52. /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
  53. /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
  54. /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
  55. /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
  56. /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
  57. /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
  58. /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
  59. /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
  60. /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
  61. /package/dist/node_modules/.pnpm/{@vitest_browser@3.1.4_msw@2.7.3_@types_node@22.15.29_typescript@5.8.3__playwright@1.52._65062dc9a55a6735cb61161760810601 → @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
  62. /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
  63. /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/helpers.js +0 -0
  64. /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.4 → @vitest_utils@3.2.0}/node_modules/@vitest/utils/dist/index.js +0 -0
  65. /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
  66. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/index.js +0 -0
  67. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/agent.js +0 -0
  68. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/abort-signal.js +0 -0
  69. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-connect.js +0 -0
  70. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-pipeline.js +0 -0
  71. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-request.js +0 -0
  72. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-stream.js +0 -0
  73. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/api-upgrade.js +0 -0
  74. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/index.js +0 -0
  75. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/readable.js +0 -0
  76. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/api/util.js +0 -0
  77. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/balanced-pool.js +0 -0
  78. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/cache.js +0 -0
  79. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/cachestorage.js +0 -0
  80. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/symbols.js +0 -0
  81. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cache/util.js +0 -0
  82. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/client.js +0 -0
  83. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/compat/dispatcher-weakref.js +0 -0
  84. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cookies/constants.js +0 -0
  85. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/cookies/parse.js +0 -0
  86. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/connect.js +0 -0
  87. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/constants.js +0 -0
  88. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/errors.js +0 -0
  89. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/request.js +0 -0
  90. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/symbols.js +0 -0
  91. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/core/util.js +0 -0
  92. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/dispatcher-base.js +0 -0
  93. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/dispatcher.js +0 -0
  94. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/body.js +0 -0
  95. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/constants.js +0 -0
  96. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/dataURL.js +0 -0
  97. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/file.js +0 -0
  98. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/formdata.js +0 -0
  99. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/global.js +0 -0
  100. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/index.js +0 -0
  101. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/request.js +0 -0
  102. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/response.js +0 -0
  103. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/symbols.js +0 -0
  104. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/util.js +0 -0
  105. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fetch/webidl.js +0 -0
  106. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/encoding.js +0 -0
  107. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/filereader.js +0 -0
  108. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/progressevent.js +0 -0
  109. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/fileapi/symbols.js +0 -0
  110. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/global.js +0 -0
  111. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/handler/DecoratorHandler.js +0 -0
  112. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/handler/RedirectHandler.js +0 -0
  113. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/handler/RetryHandler.js +0 -0
  114. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/interceptor/redirectInterceptor.js +0 -0
  115. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/constants.js +0 -0
  116. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -0
  117. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -0
  118. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/llhttp/utils.js +0 -0
  119. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-agent.js +0 -0
  120. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-client.js +0 -0
  121. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-errors.js +0 -0
  122. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-interceptor.js +0 -0
  123. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-pool.js +0 -0
  124. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-symbols.js +0 -0
  125. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/mock-utils.js +0 -0
  126. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -0
  127. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/mock/pluralizer.js +0 -0
  128. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/node/fixed-queue.js +0 -0
  129. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/pool-base.js +0 -0
  130. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/pool-stats.js +0 -0
  131. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/proxy-agent.js +0 -0
  132. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/timers.js +0 -0
  133. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/connection.js +0 -0
  134. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/constants.js +0 -0
  135. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/events.js +0 -0
  136. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/frame.js +0 -0
  137. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/receiver.js +0 -0
  138. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/symbols.js +0 -0
  139. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/util.js +0 -0
  140. /package/dist/node_modules/.pnpm/{undici@5.28.5 → undici@5.29.0}/node_modules/undici/lib/websocket/websocket.js +0 -0
  141. /package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.1.4_@vitest_ui@_d0ae304dca34f8d8a069ed58c3715569 → 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
  142. /package/dist/node_modules/.pnpm/{vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.1.4_@vitest_ui@_d0ae304dca34f8d8a069ed58c3715569/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
@@ -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/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};
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.3.0/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};
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.4/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.
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
@@ -1,12 +1,12 @@
1
- var $t=Object.defineProperty;var Bt=(s,r,c)=>r in s?$t(s,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[r]=c;var te=(s,r,c)=>Bt(s,typeof r!="symbol"?r+"":r,c);import{ASYMMETRIC_MATCHERS_OBJECT as Ht,getState as Pe,setState as Oe,addCustomEqualityTesters as Gt,customMatchers as Wt,GLOBAL_EXPECT as Ct,JestExtend as Ut,JestChaiExpect as Jt,JestAsymmetricMatchers as Kt,equals as Vt,iterableEquality as zt,subsetEquality as Qt}from"../../../../../@vitest_expect@3.1.4/node_modules/@vitest/expect/dist/index.js";import"../../../../../@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/index.js";import{f as Xt}from"../../../../../@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/chunk-tasks.js";import{getSafeTimers as Ze}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/index.js";import{expect as xe,assert as Yt,util as Y,Assertion as Zt,use as he}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{a as er,g as et,w as tr,r as rr,i as Ft}from"./utils.CgTj3MsC.js";import{g as nr,c as Ye}from"./_commonjsHelpers.BFTU3MAI.js";import{stripSnapshotIndentation as st,addSerializer as ir,SnapshotClient as or}from"../../../../../@vitest_snapshot@3.1.4/node_modules/@vitest/snapshot/dist/index.js";import{fn as sr,spyOn as ar,mocks as Ce,isMockFunction as cr}from"../../../../../@vitest_spy@3.1.4/node_modules/@vitest/spy/dist/index.js";import{parseSingleStack as ur}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/source-map.js";import{R as fr,r as lr,m as mr}from"./date.CDOsz-HY.js";import{assertTypes as dr,createSimpleStackTrace as pr}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/helpers.js";var oe={};const hr=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function yr(s){return function(c,m={}){var A;const t=((A=et().config.expect)==null?void 0:A.poll)??{},{interval:p=t.interval??50,timeout:l=t.timeout??1e3,message:o}=m,h=s(null,o).withContext({poll:!0});c=c.bind(h);const d=Y.flag(h,"vitest-test");if(!d)throw new Error("expect.poll() must be called inside a test");const I=new Proxy(h,{get(O,j,H){const x=Reflect.get(O,j,H);if(typeof x!="function")return x instanceof Zt?I:x;if(j==="assert")return x;if(typeof j=="string"&&hr.includes(j))throw new SyntaxError(`expect.poll() is not supported in combination with .${j}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...M){const C=new Error("STACK_TRACE_ERROR"),N=()=>new Promise((q,P)=>{let B,Q,R;const{setTimeout:ye,clearTimeout:re}=Ze(),ue=async()=>{try{Y.flag(h,"_name",j);const Z=await c();Y.flag(h,"object",Z),q(await x.call(h,...M)),re(B),re(Q)}catch(Z){R=Z,Y.flag(h,"_isLastPollAttempt")||(B=ye(ue,p))}};Q=ye(()=>{re(B),Y.flag(h,"_isLastPollAttempt",!0);const Z=fe=>{P(at(new Error("Matcher did not succeed in time.",{cause:fe}),C))};ue().then(()=>Z(R)).catch(fe=>Z(fe))},l),ue()});let J=!1;d.onFinished??(d.onFinished=[]),d.onFinished.push(()=>{if(!J){const q=Y.flag(h,"negate")?"not.":"",B=`expect.${Y.flag(h,"_poll.element")?"element(locator)":"poll(assertion)"}.${q}${String(j)}()`,Q=new Error(`${B} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
1
+ var $t=Object.defineProperty;var Bt=(s,r,c)=>r in s?$t(s,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[r]=c;var te=(s,r,c)=>Bt(s,typeof r!="symbol"?r+"":r,c);import{ASYMMETRIC_MATCHERS_OBJECT as Ht,getState as Pe,setState as Oe,addCustomEqualityTesters as Gt,customMatchers as Wt,GLOBAL_EXPECT as Ct,JestExtend as Ut,JestChaiExpect as Jt,JestAsymmetricMatchers as Kt,equals as Vt,iterableEquality as zt,subsetEquality as Qt}from"../../../../../@vitest_expect@3.2.0/node_modules/@vitest/expect/dist/index.js";import{E as Xt}from"../../../../../@vitest_runner@3.2.0/node_modules/@vitest/runner/dist/chunk-hooks.js";import{getSafeTimers as Ze}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/index.js";import{parseSingleStack as Yt}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/source-map.js";import{expect as xe,assert as Zt,util as Y,Assertion as er,use as he}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{a as tr,g as et,w as rr,r as nr,i as Ft}from"./utils.XdZDrNZV.js";import{g as ir,c as Ye}from"./_commonjsHelpers.BFTU3MAI.js";import{stripSnapshotIndentation as st,addSerializer as or,SnapshotClient as sr}from"../../../../../@vitest_snapshot@3.2.0/node_modules/@vitest/snapshot/dist/index.js";import{fn as ar,spyOn as cr,mocks as Ce,isMockFunction as ur}from"../../../../../@vitest_spy@3.2.0/node_modules/@vitest/spy/dist/index.js";import{R as fr,r as lr,m as mr}from"./date.Bq6ZW5rf.js";import{assertTypes as dr,createSimpleStackTrace as pr}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/helpers.js";var oe={};const hr=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function yr(s){return function(c,m={}){var A;const t=((A=et().config.expect)==null?void 0:A.poll)??{},{interval:p=t.interval??50,timeout:l=t.timeout??1e3,message:o}=m,h=s(null,o).withContext({poll:!0});c=c.bind(h);const d=Y.flag(h,"vitest-test");if(!d)throw new Error("expect.poll() must be called inside a test");const I=new Proxy(h,{get(O,j,G){const x=Reflect.get(O,j,G);if(typeof x!="function")return x instanceof er?I:x;if(j==="assert")return x;if(typeof j=="string"&&hr.includes(j))throw new SyntaxError(`expect.poll() is not supported in combination with .${j}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...M){const C=new Error("STACK_TRACE_ERROR"),N=()=>new Promise((q,P)=>{let B,Q,R;const{setTimeout:ye,clearTimeout:re}=Ze(),ue=async()=>{try{Y.flag(h,"_name",j);const Z=await c();Y.flag(h,"object",Z),q(await x.call(h,...M)),re(B),re(Q)}catch(Z){R=Z,Y.flag(h,"_isLastPollAttempt")||(B=ye(ue,p))}};Q=ye(()=>{re(B),Y.flag(h,"_isLastPollAttempt",!0);const Z=fe=>{P(at(new Error("Matcher did not succeed in time.",{cause:fe}),C))};ue().then(()=>Z(R)).catch(fe=>Z(fe))},l),ue()});let J=!1;d.onFinished??(d.onFinished=[]),d.onFinished.push(()=>{if(!J){const q=Y.flag(h,"negate")?"not.":"",B=`expect.${Y.flag(h,"_poll.element")?"element(locator)":"poll(assertion)"}.${q}${String(j)}()`,Q=new Error(`${B} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
2
2
 
3
3
  await ${B}
4
- `);throw at(Q,C)}});let K;return{then(q,P){return J=!0,(K||(K=N())).then(q,P)},catch(q){return(K||(K=N())).catch(q)},finally(q){return(K||(K=N())).finally(q)},[Symbol.toStringTag]:"Promise"}}}});return I}}function at(s,r){return r.stack!==void 0&&(s.stack=r.stack.replace(r.message,s.message)),s}function Tr(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var we={exports:{}},wr=we.exports,ct;function vr(){return ct||(ct=1,function(s,r){(function(){(function(c){return typeof Tr=="function"?s.exports=c:chai.use(c)})(function(c,m){var f=c.Assertion,t=f.prototype;f.addMethod("containSubset",function(l){var o=m.flag(this,"object"),h=c.config.showDiff;t.assert.call(this,p(l,o),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",l,o,h)}),c.assert.containSubset=function(l,o,h){new c.Assertion(l,h).to.be.containSubset(o)};function p(l,o){if(l===o)return!0;if(typeof o!=typeof l)return!1;if(typeof l!="object"||l===null)return l===o;if(l&&!o)return!1;if(Array.isArray(l)){if(typeof o.length!="number")return!1;var h=Array.prototype.slice.call(o);return l.every(function(d){return h.some(function(I){return p(d,I)})})}return l instanceof Date?o instanceof Date?l.getTime()===o.getTime():!1:Object.keys(l).every(function(d){var I=l[d],A=o[d];return typeof I=="object"&&I!==null&&A!==null?p(I,A):typeof I=="function"?I(A):A===I})}})}).call(wr)}(we)),we.exports}var gr=vr(),kr=nr(gr);function br(s,r,c){const m=s.flag(r,"negate")?"not.":"",f=`${s.flag(r,"_name")}(expected)`,t=s.flag(r,"promise");return`expect(actual)${t?`.${t}`:""}.${m}${f}`}function Ir(s,r,c,m){const f=s;if(f&&r instanceof Promise){r=r.finally(()=>{if(!f.promises)return;const p=f.promises.indexOf(r);p!==-1&&f.promises.splice(p,1)}),f.promises||(f.promises=[]),f.promises.push(r);let t=!1;return f.onFinished??(f.onFinished=[]),f.onFinished.push(()=>{var p;if(!t){const o=(((p=globalThis.__vitest_worker__)==null?void 0:p.onFilterStackTrace)||(h=>h||""))(m.stack);console.warn([`Promise returned by \`${c}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
5
- `,o].join(""))}}),{then(p,l){return t=!0,r.then(p,l)},catch(p){return r.catch(p)},finally(p){return r.finally(p)},[Symbol.toStringTag]:"Promise"}}return r}let Fe;function de(){return Fe||(Fe=new or({isEqual:(s,r)=>Vt(s,r,[zt,Qt])})),Fe}function ut(s,r){if(typeof s!="function"){if(!r)throw new Error(`expected must be a function, received ${typeof s}`);return s}try{s()}catch(c){return c}throw new Error("snapshot function didn't throw")}function pe(s){return{filepath:s.file.filepath,name:Xt(s).slice(1).join(" > "),testId:s.id}}const Er=(s,r)=>{function c(m,f){const t=r.flag(f,"vitest-test");if(!t)throw new Error(`'${m}' cannot be used without test context`);return t}for(const m of["matchSnapshot","toMatchSnapshot"])r.addMethod(s.Assertion.prototype,m,function(f,t){if(r.flag(this,"_name",m),r.flag(this,"negate"))throw new Error(`${m} cannot be used with "not"`);const l=r.flag(this,"object"),o=c(m,this);typeof f=="string"&&typeof t>"u"&&(t=f,f=void 0);const h=r.flag(this,"message");de().assert({received:l,message:t,isInline:!1,properties:f,errorMessage:h,...pe(o)})});r.addMethod(s.Assertion.prototype,"toMatchFileSnapshot",function(m,f){if(r.flag(this,"_name","toMatchFileSnapshot"),r.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const p=new Error("resolves"),l=r.flag(this,"object"),o=c("toMatchFileSnapshot",this),h=r.flag(this,"message"),d=de().assertRaw({received:l,message:f,isInline:!1,rawSnapshot:{file:m},errorMessage:h,...pe(o)});return Ir(o,d,br(r,this),p)}),r.addMethod(s.Assertion.prototype,"toMatchInlineSnapshot",function(f,t,p){var O;if(r.flag(this,"_name","toMatchInlineSnapshot"),r.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const o=c("toMatchInlineSnapshot",this);if(o.each||((O=o.suite)==null?void 0:O.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const d=r.flag(this,"object"),I=r.flag(this,"error");typeof f=="string"&&(p=t,t=f,f=void 0),t&&(t=st(t));const A=r.flag(this,"message");de().assert({received:d,message:p,isInline:!0,properties:f,inlineSnapshot:t,error:I,errorMessage:A,...pe(o)})}),r.addMethod(s.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(m){if(r.flag(this,"_name","toThrowErrorMatchingSnapshot"),r.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const t=r.flag(this,"object"),p=c("toThrowErrorMatchingSnapshot",this),l=r.flag(this,"promise"),o=r.flag(this,"message");de().assert({received:ut(t,l),message:m,errorMessage:o,...pe(p)})}),r.addMethod(s.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(f,t){var O;if(r.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const l=c("toThrowErrorMatchingInlineSnapshot",this);if(l.each||((O=l.suite)==null?void 0:O.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const h=r.flag(this,"object"),d=r.flag(this,"error"),I=r.flag(this,"promise"),A=r.flag(this,"message");f&&(f=st(f)),de().assert({received:ut(h,I),message:t,inlineSnapshot:f,isInline:!0,error:d,errorMessage:A,...pe(l)})}),r.addMethod(s.expect,"addSnapshotSerializer",ir)};he(Ut);he(Jt);he(kr);he(Er);he(Kt);function Ar(s){const r=(t,p)=>{const{assertionCalls:l}=Pe(r);return Oe({assertionCalls:l+1},r),xe(t,p)};Object.assign(r,xe),Object.assign(r,globalThis[Ht]),r.getState=()=>Pe(r),r.setState=t=>Oe(t,r);const c=Pe(globalThis[Ct])||{};Oe({...c,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:er(),get testPath(){return et().filepath},currentTestName:c.currentTestName},r),r.extend=t=>xe.extend(r,t),r.addEqualityTesters=t=>Gt(t),r.soft=(...t)=>r(...t).withContext({soft:!0}),r.poll=yr(r),r.unreachable=t=>{Yt.fail(`expected${t?` "${t}" `:" "}not to be reached`)};function m(t){const p=()=>new Error(`expected number of assertions to be ${t}, but got ${r.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(p(),m),r.setState({expectedAssertionsNumber:t,expectedAssertionsNumberErrorGen:p})}function f(){const t=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(t,f),r.setState({isExpectingAssertions:!0,isExpectingAssertionsError:t})}return Y.addMethod(r,"assertions",m),Y.addMethod(r,"hasAssertions",f),r.extend(Wt),r}const Sr=Ar();Object.defineProperty(globalThis,Ct,{value:Sr,writable:!0,configurable:!0});var se={},je,ft;function Mr(){if(ft)return je;ft=1;var s;return typeof Ye<"u"?s=Ye:typeof window<"u"?s=window:s=self,je=s,je}var Re,lt;function Pr(){if(lt)return Re;lt=1;let s;try{({}).__proto__,s=!1}catch{s=!0}return Re=s,Re}var _e,mt;function ce(){if(mt)return _e;mt=1;var s=Function.call,r=Pr(),c=["size","caller","callee","arguments"];return r&&c.push("__proto__"),_e=function(f){return Object.getOwnPropertyNames(f).reduce(function(t,p){return c.includes(p)||typeof f[p]!="function"||(t[p]=s.bind(f[p])),t},Object.create(null))},_e}var qe,dt;function ge(){if(dt)return qe;dt=1;var s=ce();return qe=s(Array.prototype),qe}var Ne,pt;function Or(){if(pt)return Ne;pt=1;var s=ge().every;function r(f,t){return f[t.id]===void 0&&(f[t.id]=0),f[t.id]<t.callCount}function c(f,t,p,l){var o=!0;return p!==l.length-1&&(o=t.calledBefore(l[p+1])),r(f,t)&&o?(f[t.id]+=1,!0):!1}function m(f){var t={},p=arguments.length>1?arguments:f;return s(p,c.bind(null,t))}return Ne=m,Ne}var De,ht;function xr(){if(ht)return De;ht=1;function s(r){return r.constructor&&r.constructor.name||null}return De=s,De}var Le={},yt;function Cr(){return yt||(yt=1,function(s){s.wrap=function(r,c){var m=function(){return s.printWarning(c),r.apply(this,arguments)};return r.prototype&&(m.prototype=r.prototype),m},s.defaultMsg=function(r,c){return`${r}.${c} is deprecated and will be removed from the public API in a future version of ${r}.`},s.printWarning=function(r){typeof process=="object"&&process.emitWarning?process.emitWarning(r):console.info?console.info(r):console.log(r)}}(Le)),Le}var $e,Tt;function Fr(){return Tt||(Tt=1,$e=function(r,c){var m=!0;try{r.forEach(function(){if(!c.apply(this,arguments))throw new Error})}catch{m=!1}return m}),$e}var Be,wt;function jr(){return wt||(wt=1,Be=function(r){if(!r)return"";try{return r.displayName||r.name||(String(r).match(/function ([^\s(]+)/)||[])[1]}catch{return""}}),Be}var He,vt;function Rr(){if(vt)return He;vt=1;var s=ge().sort,r=ge().slice;function c(f,t){var p=f.getCall(0),l=t.getCall(0),o=p&&p.callId||-1,h=l&&l.callId||-1;return o<h?-1:1}function m(f){return s(r(f),c)}return He=m,He}var Ge,gt;function _r(){if(gt)return Ge;gt=1;var s=ce();return Ge=s(Function.prototype),Ge}var We,kt;function qr(){if(kt)return We;kt=1;var s=ce();return We=s(Map.prototype),We}var Ue,bt;function Nr(){if(bt)return Ue;bt=1;var s=ce();return Ue=s(Object.prototype),Ue}var Je,It;function Dr(){if(It)return Je;It=1;var s=ce();return Je=s(Set.prototype),Je}var Ke,Et;function Lr(){if(Et)return Ke;Et=1;var s=ce();return Ke=s(String.prototype),Ke}var Ve,At;function $r(){return At||(At=1,Ve={array:ge(),function:_r(),map:qr(),object:Nr(),set:Dr(),string:Lr()}),Ve}var ve={exports:{}},Br=ve.exports,St;function Hr(){return St||(St=1,function(s,r){(function(c,m){s.exports=m()})(Br,function(){var c=typeof Promise=="function",m=typeof self=="object"?self:Ye,f=typeof Symbol<"u",t=typeof Map<"u",p=typeof Set<"u",l=typeof WeakMap<"u",o=typeof WeakSet<"u",h=typeof DataView<"u",d=f&&typeof Symbol.iterator<"u",I=f&&typeof Symbol.toStringTag<"u",A=p&&typeof Set.prototype.entries=="function",O=t&&typeof Map.prototype.entries=="function",j=A&&Object.getPrototypeOf(new Set().entries()),H=O&&Object.getPrototypeOf(new Map().entries()),x=d&&typeof Array.prototype[Symbol.iterator]=="function",M=x&&Object.getPrototypeOf([][Symbol.iterator]()),C=d&&typeof String.prototype[Symbol.iterator]=="function",N=C&&Object.getPrototypeOf(""[Symbol.iterator]()),J=8,K=-1;function q(P){var B=typeof P;if(B!=="object")return B;if(P===null)return"null";if(P===m)return"global";if(Array.isArray(P)&&(I===!1||!(Symbol.toStringTag in P)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&P===window.location)return"Location";if(typeof window.document=="object"&&P===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&P===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&P===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&P instanceof window.HTMLElement){if(P.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(P.tagName==="TD")return"HTMLTableDataCellElement";if(P.tagName==="TH")return"HTMLTableHeaderCellElement"}}var Q=I&&P[Symbol.toStringTag];if(typeof Q=="string")return Q;var R=Object.getPrototypeOf(P);return R===RegExp.prototype?"RegExp":R===Date.prototype?"Date":c&&R===Promise.prototype?"Promise":p&&R===Set.prototype?"Set":t&&R===Map.prototype?"Map":o&&R===WeakSet.prototype?"WeakSet":l&&R===WeakMap.prototype?"WeakMap":h&&R===DataView.prototype?"DataView":t&&R===H?"Map Iterator":p&&R===j?"Set Iterator":x&&R===M?"Array Iterator":C&&R===N?"String Iterator":R===null?"Object":Object.prototype.toString.call(P).slice(J,K)}return q})}(ve)),ve.exports}var ze,Mt;function Gr(){if(Mt)return ze;Mt=1;var s=Hr();return ze=function(c){return s(c).toLowerCase()},ze}var Qe,Pt;function Wr(){if(Pt)return Qe;Pt=1;function s(r){return r&&r.toString?r.toString():String(r)}return Qe=s,Qe}var Xe,Ot;function Ur(){return Ot||(Ot=1,Xe={global:Mr(),calledInOrder:Or(),className:xr(),deprecated:Cr(),every:Fr(),functionName:jr(),orderByFirstCall:Rr(),prototypes:$r(),typeOf:Gr(),valueToString:Wr()}),Xe}var xt;function Jr(){if(xt)return se;xt=1;const s=Ur().global;let r,c;if(typeof __vitest_required__<"u"){try{r=__vitest_required__.timers}catch{}try{c=__vitest_required__.timersPromises}catch{}}function m(t){const p=Math.pow(2,31)-1,l=1e12,o=function(){},h=function(){return[]},d={};let I,A=!1;t.setTimeout&&(d.setTimeout=!0,I=t.setTimeout(o,0),A=typeof I=="object"),d.clearTimeout=!!t.clearTimeout,d.setInterval=!!t.setInterval,d.clearInterval=!!t.clearInterval,d.hrtime=t.process&&typeof t.process.hrtime=="function",d.hrtimeBigint=d.hrtime&&typeof t.process.hrtime.bigint=="function",d.nextTick=t.process&&typeof t.process.nextTick=="function";const O=t.process&&t.__vitest_required__&&t.__vitest_required__.util.promisify;d.performance=t.performance&&typeof t.performance.now=="function";const j=t.Performance&&(typeof t.Performance).match(/^(function|object)$/),H=t.performance&&t.performance.constructor&&t.performance.constructor.prototype;d.queueMicrotask=t.hasOwnProperty("queueMicrotask"),d.requestAnimationFrame=t.requestAnimationFrame&&typeof t.requestAnimationFrame=="function",d.cancelAnimationFrame=t.cancelAnimationFrame&&typeof t.cancelAnimationFrame=="function",d.requestIdleCallback=t.requestIdleCallback&&typeof t.requestIdleCallback=="function",d.cancelIdleCallbackPresent=t.cancelIdleCallback&&typeof t.cancelIdleCallback=="function",d.setImmediate=t.setImmediate&&typeof t.setImmediate=="function",d.clearImmediate=t.clearImmediate&&typeof t.clearImmediate=="function",d.Intl=t.Intl&&typeof t.Intl=="object",t.clearTimeout&&t.clearTimeout(I);const x=t.Date,M=d.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(t.Intl)):void 0;let C=l;if(x===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");d.Date=!0;class N{constructor(i,a,y,e){this.name=i,this.entryType=a,this.startTime=y,this.duration=e}toJSON(){return JSON.stringify({...this})}}function J(n){return Number.isFinite?Number.isFinite(n):isFinite(n)}let K=!1;function q(n,i){n.loopLimit&&i===n.loopLimit-1&&(K=!0)}function P(){K=!1}function B(n){if(!n)return 0;const i=n.split(":"),a=i.length;let y=a,e=0,v;if(a>3||!/^(\d\d:){0,2}\d\d?$/.test(n))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;y--;){if(v=parseInt(i[y],10),v>=60)throw new Error(`Invalid time ${n}`);e+=v*Math.pow(60,a-y-1)}return e*1e3}function Q(n){const a=n*1e6%1e6,y=a<0?a+1e6:a;return Math.floor(y)}function R(n){if(!n)return 0;if(typeof n.getTime=="function")return n.getTime();if(typeof n=="number")return n;throw new TypeError("now should be milliseconds since UNIX epoch")}function ye(n,i,a){return a&&a.callAt>=n&&a.callAt<=i}function re(n,i){const a=new Error(`Aborting after running ${n.loopLimit} timers, assuming an infinite loop!`);if(!i.error)return a;const y=/target\.*[<|(|[].*?[>|\]|)]\s*/;let e=new RegExp(String(Object.keys(n).join("|")));A&&(e=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(n).join("|")})\\s+`));let v=-1;i.error.stack.split(`
4
+ `);throw at(Q,C)}});let K;return{then(q,P){return J=!0,(K||(K=N())).then(q,P)},catch(q){return(K||(K=N())).catch(q)},finally(q){return(K||(K=N())).finally(q)},[Symbol.toStringTag]:"Promise"}}}});return I}}function at(s,r){return r.stack!==void 0&&(s.stack=r.stack.replace(r.message,s.message)),s}function Tr(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var we={exports:{}},wr=we.exports,ct;function vr(){return ct||(ct=1,function(s,r){(function(){(function(c){return typeof Tr=="function"?s.exports=c:chai.use(c)})(function(c,m){var f=c.Assertion,t=f.prototype;f.addMethod("containSubset",function(l){var o=m.flag(this,"object"),h=c.config.showDiff;t.assert.call(this,p(l,o),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",l,o,h)}),c.assert.containSubset=function(l,o,h){new c.Assertion(l,h).to.be.containSubset(o)};function p(l,o){if(l===o)return!0;if(typeof o!=typeof l)return!1;if(typeof l!="object"||l===null)return l===o;if(l&&!o)return!1;if(Array.isArray(l)){if(typeof o.length!="number")return!1;var h=Array.prototype.slice.call(o);return l.every(function(d){return h.some(function(I){return p(d,I)})})}return l instanceof Date?o instanceof Date?l.getTime()===o.getTime():!1:Object.keys(l).every(function(d){var I=l[d],A=o[d];return typeof I=="object"&&I!==null&&A!==null?p(I,A):typeof I=="function"?I(A):A===I})}})}).call(wr)}(we)),we.exports}var gr=vr(),kr=ir(gr);function br(s,r,c){const m=s.flag(r,"negate")?"not.":"",f=`${s.flag(r,"_name")}(expected)`,t=s.flag(r,"promise");return`expect(actual)${t?`.${t}`:""}.${m}${f}`}function Ir(s,r,c,m){const f=s;if(f&&r instanceof Promise){r=r.finally(()=>{if(!f.promises)return;const p=f.promises.indexOf(r);p!==-1&&f.promises.splice(p,1)}),f.promises||(f.promises=[]),f.promises.push(r);let t=!1;return f.onFinished??(f.onFinished=[]),f.onFinished.push(()=>{var p;if(!t){const o=(((p=globalThis.__vitest_worker__)==null?void 0:p.onFilterStackTrace)||(h=>h||""))(m.stack);console.warn([`Promise returned by \`${c}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
5
+ `,o].join(""))}}),{then(p,l){return t=!0,r.then(p,l)},catch(p){return r.catch(p)},finally(p){return r.finally(p)},[Symbol.toStringTag]:"Promise"}}return r}let Fe;function de(){return Fe||(Fe=new sr({isEqual:(s,r)=>Vt(s,r,[zt,Qt])})),Fe}function ut(s,r){if(typeof s!="function"){if(!r)throw new Error(`expected must be a function, received ${typeof s}`);return s}try{s()}catch(c){return c}throw new Error("snapshot function didn't throw")}function pe(s){return{filepath:s.file.filepath,name:Xt(s).slice(1).join(" > "),testId:s.id}}const Er=(s,r)=>{function c(m,f){const t=r.flag(f,"vitest-test");if(!t)throw new Error(`'${m}' cannot be used without test context`);return t}for(const m of["matchSnapshot","toMatchSnapshot"])r.addMethod(s.Assertion.prototype,m,function(f,t){if(r.flag(this,"_name",m),r.flag(this,"negate"))throw new Error(`${m} cannot be used with "not"`);const l=r.flag(this,"object"),o=c(m,this);typeof f=="string"&&typeof t>"u"&&(t=f,f=void 0);const h=r.flag(this,"message");de().assert({received:l,message:t,isInline:!1,properties:f,errorMessage:h,...pe(o)})});r.addMethod(s.Assertion.prototype,"toMatchFileSnapshot",function(m,f){if(r.flag(this,"_name","toMatchFileSnapshot"),r.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const p=new Error("resolves"),l=r.flag(this,"object"),o=c("toMatchFileSnapshot",this),h=r.flag(this,"message"),d=de().assertRaw({received:l,message:f,isInline:!1,rawSnapshot:{file:m},errorMessage:h,...pe(o)});return Ir(o,d,br(r,this),p)}),r.addMethod(s.Assertion.prototype,"toMatchInlineSnapshot",function(f,t,p){var O;if(r.flag(this,"_name","toMatchInlineSnapshot"),r.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const o=c("toMatchInlineSnapshot",this);if(o.each||((O=o.suite)==null?void 0:O.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const d=r.flag(this,"object"),I=r.flag(this,"error");typeof f=="string"&&(p=t,t=f,f=void 0),t&&(t=st(t));const A=r.flag(this,"message");de().assert({received:d,message:p,isInline:!0,properties:f,inlineSnapshot:t,error:I,errorMessage:A,...pe(o)})}),r.addMethod(s.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(m){if(r.flag(this,"_name","toThrowErrorMatchingSnapshot"),r.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const t=r.flag(this,"object"),p=c("toThrowErrorMatchingSnapshot",this),l=r.flag(this,"promise"),o=r.flag(this,"message");de().assert({received:ut(t,l),message:m,errorMessage:o,...pe(p)})}),r.addMethod(s.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(f,t){var O;if(r.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const l=c("toThrowErrorMatchingInlineSnapshot",this);if(l.each||((O=l.suite)==null?void 0:O.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const h=r.flag(this,"object"),d=r.flag(this,"error"),I=r.flag(this,"promise"),A=r.flag(this,"message");f&&(f=st(f)),de().assert({received:ut(h,I),message:t,inlineSnapshot:f,isInline:!0,error:d,errorMessage:A,...pe(l)})}),r.addMethod(s.expect,"addSnapshotSerializer",or)};he(Ut);he(Jt);he(kr);he(Er);he(Kt);function Ar(s){const r=(t,p)=>{const{assertionCalls:l}=Pe(r);return Oe({assertionCalls:l+1},r),xe(t,p)};Object.assign(r,xe),Object.assign(r,globalThis[Ht]),r.getState=()=>Pe(r),r.setState=t=>Oe(t,r);const c=Pe(globalThis[Ct])||{};Oe({...c,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:tr(),get testPath(){return et().filepath},currentTestName:c.currentTestName},r),r.extend=t=>xe.extend(r,t),r.addEqualityTesters=t=>Gt(t),r.soft=(...t)=>r(...t).withContext({soft:!0}),r.poll=yr(r),r.unreachable=t=>{Zt.fail(`expected${t?` "${t}" `:" "}not to be reached`)};function m(t){const p=()=>new Error(`expected number of assertions to be ${t}, but got ${r.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(p(),m),r.setState({expectedAssertionsNumber:t,expectedAssertionsNumberErrorGen:p})}function f(){const t=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(t,f),r.setState({isExpectingAssertions:!0,isExpectingAssertionsError:t})}return Y.addMethod(r,"assertions",m),Y.addMethod(r,"hasAssertions",f),r.extend(Wt),r}const Sr=Ar();Object.defineProperty(globalThis,Ct,{value:Sr,writable:!0,configurable:!0});var se={},je,ft;function Mr(){if(ft)return je;ft=1;var s;return typeof Ye<"u"?s=Ye:typeof window<"u"?s=window:s=self,je=s,je}var Re,lt;function Pr(){if(lt)return Re;lt=1;let s;try{({}).__proto__,s=!1}catch{s=!0}return Re=s,Re}var _e,mt;function ce(){if(mt)return _e;mt=1;var s=Function.call,r=Pr(),c=["size","caller","callee","arguments"];return r&&c.push("__proto__"),_e=function(f){return Object.getOwnPropertyNames(f).reduce(function(t,p){return c.includes(p)||typeof f[p]!="function"||(t[p]=s.bind(f[p])),t},Object.create(null))},_e}var qe,dt;function ge(){if(dt)return qe;dt=1;var s=ce();return qe=s(Array.prototype),qe}var Ne,pt;function Or(){if(pt)return Ne;pt=1;var s=ge().every;function r(f,t){return f[t.id]===void 0&&(f[t.id]=0),f[t.id]<t.callCount}function c(f,t,p,l){var o=!0;return p!==l.length-1&&(o=t.calledBefore(l[p+1])),r(f,t)&&o?(f[t.id]+=1,!0):!1}function m(f){var t={},p=arguments.length>1?arguments:f;return s(p,c.bind(null,t))}return Ne=m,Ne}var De,ht;function xr(){if(ht)return De;ht=1;function s(r){return r.constructor&&r.constructor.name||null}return De=s,De}var Le={},yt;function Cr(){return yt||(yt=1,function(s){s.wrap=function(r,c){var m=function(){return s.printWarning(c),r.apply(this,arguments)};return r.prototype&&(m.prototype=r.prototype),m},s.defaultMsg=function(r,c){return`${r}.${c} is deprecated and will be removed from the public API in a future version of ${r}.`},s.printWarning=function(r){typeof process=="object"&&process.emitWarning?process.emitWarning(r):console.info?console.info(r):console.log(r)}}(Le)),Le}var $e,Tt;function Fr(){return Tt||(Tt=1,$e=function(r,c){var m=!0;try{r.forEach(function(){if(!c.apply(this,arguments))throw new Error})}catch{m=!1}return m}),$e}var Be,wt;function jr(){return wt||(wt=1,Be=function(r){if(!r)return"";try{return r.displayName||r.name||(String(r).match(/function ([^\s(]+)/)||[])[1]}catch{return""}}),Be}var He,vt;function Rr(){if(vt)return He;vt=1;var s=ge().sort,r=ge().slice;function c(f,t){var p=f.getCall(0),l=t.getCall(0),o=p&&p.callId||-1,h=l&&l.callId||-1;return o<h?-1:1}function m(f){return s(r(f),c)}return He=m,He}var Ge,gt;function _r(){if(gt)return Ge;gt=1;var s=ce();return Ge=s(Function.prototype),Ge}var We,kt;function qr(){if(kt)return We;kt=1;var s=ce();return We=s(Map.prototype),We}var Ue,bt;function Nr(){if(bt)return Ue;bt=1;var s=ce();return Ue=s(Object.prototype),Ue}var Je,It;function Dr(){if(It)return Je;It=1;var s=ce();return Je=s(Set.prototype),Je}var Ke,Et;function Lr(){if(Et)return Ke;Et=1;var s=ce();return Ke=s(String.prototype),Ke}var Ve,At;function $r(){return At||(At=1,Ve={array:ge(),function:_r(),map:qr(),object:Nr(),set:Dr(),string:Lr()}),Ve}var ve={exports:{}},Br=ve.exports,St;function Hr(){return St||(St=1,function(s,r){(function(c,m){s.exports=m()})(Br,function(){var c=typeof Promise=="function",m=typeof self=="object"?self:Ye,f=typeof Symbol<"u",t=typeof Map<"u",p=typeof Set<"u",l=typeof WeakMap<"u",o=typeof WeakSet<"u",h=typeof DataView<"u",d=f&&typeof Symbol.iterator<"u",I=f&&typeof Symbol.toStringTag<"u",A=p&&typeof Set.prototype.entries=="function",O=t&&typeof Map.prototype.entries=="function",j=A&&Object.getPrototypeOf(new Set().entries()),G=O&&Object.getPrototypeOf(new Map().entries()),x=d&&typeof Array.prototype[Symbol.iterator]=="function",M=x&&Object.getPrototypeOf([][Symbol.iterator]()),C=d&&typeof String.prototype[Symbol.iterator]=="function",N=C&&Object.getPrototypeOf(""[Symbol.iterator]()),J=8,K=-1;function q(P){var B=typeof P;if(B!=="object")return B;if(P===null)return"null";if(P===m)return"global";if(Array.isArray(P)&&(I===!1||!(Symbol.toStringTag in P)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&P===window.location)return"Location";if(typeof window.document=="object"&&P===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&P===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&P===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&P instanceof window.HTMLElement){if(P.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(P.tagName==="TD")return"HTMLTableDataCellElement";if(P.tagName==="TH")return"HTMLTableHeaderCellElement"}}var Q=I&&P[Symbol.toStringTag];if(typeof Q=="string")return Q;var R=Object.getPrototypeOf(P);return R===RegExp.prototype?"RegExp":R===Date.prototype?"Date":c&&R===Promise.prototype?"Promise":p&&R===Set.prototype?"Set":t&&R===Map.prototype?"Map":o&&R===WeakSet.prototype?"WeakSet":l&&R===WeakMap.prototype?"WeakMap":h&&R===DataView.prototype?"DataView":t&&R===G?"Map Iterator":p&&R===j?"Set Iterator":x&&R===M?"Array Iterator":C&&R===N?"String Iterator":R===null?"Object":Object.prototype.toString.call(P).slice(J,K)}return q})}(ve)),ve.exports}var ze,Mt;function Gr(){if(Mt)return ze;Mt=1;var s=Hr();return ze=function(c){return s(c).toLowerCase()},ze}var Qe,Pt;function Wr(){if(Pt)return Qe;Pt=1;function s(r){return r&&r.toString?r.toString():String(r)}return Qe=s,Qe}var Xe,Ot;function Ur(){return Ot||(Ot=1,Xe={global:Mr(),calledInOrder:Or(),className:xr(),deprecated:Cr(),every:Fr(),functionName:jr(),orderByFirstCall:Rr(),prototypes:$r(),typeOf:Gr(),valueToString:Wr()}),Xe}var xt;function Jr(){if(xt)return se;xt=1;const s=Ur().global;let r,c;if(typeof __vitest_required__<"u"){try{r=__vitest_required__.timers}catch{}try{c=__vitest_required__.timersPromises}catch{}}function m(t){const p=Math.pow(2,31)-1,l=1e12,o=function(){},h=function(){return[]},d={};let I,A=!1;t.setTimeout&&(d.setTimeout=!0,I=t.setTimeout(o,0),A=typeof I=="object"),d.clearTimeout=!!t.clearTimeout,d.setInterval=!!t.setInterval,d.clearInterval=!!t.clearInterval,d.hrtime=t.process&&typeof t.process.hrtime=="function",d.hrtimeBigint=d.hrtime&&typeof t.process.hrtime.bigint=="function",d.nextTick=t.process&&typeof t.process.nextTick=="function";const O=t.process&&t.__vitest_required__&&t.__vitest_required__.util.promisify;d.performance=t.performance&&typeof t.performance.now=="function";const j=t.Performance&&(typeof t.Performance).match(/^(function|object)$/),G=t.performance&&t.performance.constructor&&t.performance.constructor.prototype;d.queueMicrotask=t.hasOwnProperty("queueMicrotask"),d.requestAnimationFrame=t.requestAnimationFrame&&typeof t.requestAnimationFrame=="function",d.cancelAnimationFrame=t.cancelAnimationFrame&&typeof t.cancelAnimationFrame=="function",d.requestIdleCallback=t.requestIdleCallback&&typeof t.requestIdleCallback=="function",d.cancelIdleCallbackPresent=t.cancelIdleCallback&&typeof t.cancelIdleCallback=="function",d.setImmediate=t.setImmediate&&typeof t.setImmediate=="function",d.clearImmediate=t.clearImmediate&&typeof t.clearImmediate=="function",d.Intl=t.Intl&&typeof t.Intl=="object",t.clearTimeout&&t.clearTimeout(I);const x=t.Date,M=d.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(t.Intl)):void 0;let C=l;if(x===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");d.Date=!0;class N{constructor(i,a,y,e){this.name=i,this.entryType=a,this.startTime=y,this.duration=e}toJSON(){return JSON.stringify({...this})}}function J(n){return Number.isFinite?Number.isFinite(n):isFinite(n)}let K=!1;function q(n,i){n.loopLimit&&i===n.loopLimit-1&&(K=!0)}function P(){K=!1}function B(n){if(!n)return 0;const i=n.split(":"),a=i.length;let y=a,e=0,v;if(a>3||!/^(\d\d:){0,2}\d\d?$/.test(n))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;y--;){if(v=parseInt(i[y],10),v>=60)throw new Error(`Invalid time ${n}`);e+=v*Math.pow(60,a-y-1)}return e*1e3}function Q(n){const a=n*1e6%1e6,y=a<0?a+1e6:a;return Math.floor(y)}function R(n){if(!n)return 0;if(typeof n.getTime=="function")return n.getTime();if(typeof n=="number")return n;throw new TypeError("now should be milliseconds since UNIX epoch")}function ye(n,i,a){return a&&a.callAt>=n&&a.callAt<=i}function re(n,i){const a=new Error(`Aborting after running ${n.loopLimit} timers, assuming an infinite loop!`);if(!i.error)return a;const y=/target\.*[<|(|[].*?[>|\]|)]\s*/;let e=new RegExp(String(Object.keys(n).join("|")));A&&(e=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(n).join("|")})\\s+`));let v=-1;i.error.stack.split(`
6
6
  `).some(function(k,b){return k.match(y)?(v=b,!0):k.match(e)?(v=b,!1):v>=0});const E=`${a}
7
7
  ${i.type||"Microtask"} - ${i.func.name||"anonymous"}
8
8
  ${i.error.stack.split(`
9
9
  `).slice(v+1).join(`
10
10
  `)}`;try{Object.defineProperty(a,"stack",{value:E})}catch{}return a}function ue(){class n extends x{constructor(y,e,v,E,k,b,w){arguments.length===0?super(n.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:x,enumerable:!1})}static[Symbol.hasInstance](y){return y instanceof x}}return n.isFake=!0,x.now&&(n.now=function(){return n.clock.now}),x.toSource&&(n.toSource=function(){return x.toSource()}),n.toString=function(){return x.toString()},new Proxy(n,{apply(){if(this instanceof n)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new x(n.clock.now).toString()}})}function Z(){const n={};return Object.getOwnPropertyNames(M).forEach(i=>n[i]=M[i]),n.DateTimeFormat=function(...i){const a=new M.DateTimeFormat(...i),y={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach(e=>{y[e]=a[e].bind(a)}),["format","formatToParts"].forEach(e=>{y[e]=function(v){return a[e](v||n.clock.now)}}),y},n.DateTimeFormat.prototype=Object.create(M.DateTimeFormat.prototype),n.DateTimeFormat.supportedLocalesOf=M.DateTimeFormat.supportedLocalesOf,n}function fe(n,i){n.jobs||(n.jobs=[]),n.jobs.push(i)}function V(n){if(n.jobs){for(let i=0;i<n.jobs.length;i++){const a=n.jobs[i];if(a.func.apply(null,a.args),q(n,i),n.loopLimit&&i>n.loopLimit)throw re(n,a)}P(),n.jobs=[]}}function ne(n,i){if(i.func===void 0)throw new Error("Callback must be provided to timer calls");if(A&&typeof i.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${i.func} of type ${typeof i.func}`);if(K&&(i.error=new Error),i.type=i.immediate?"Immediate":"Timeout",i.hasOwnProperty("delay")&&(typeof i.delay!="number"&&(i.delay=parseInt(i.delay,10)),J(i.delay)||(i.delay=0),i.delay=i.delay>p?1:i.delay,i.delay=Math.max(0,i.delay)),i.hasOwnProperty("interval")&&(i.type="Interval",i.interval=i.interval>p?1:i.interval),i.hasOwnProperty("animation")&&(i.type="AnimationFrame",i.animation=!0),i.hasOwnProperty("idleCallback")&&(i.type="IdleCallback",i.idleCallback=!0),n.timers||(n.timers={}),i.id=C++,i.createdAt=n.now,i.callAt=n.now+(parseInt(i.delay)||(n.duringTick?1:0)),n.timers[i.id]=i,A){const a={refed:!0,ref:function(){return this.refed=!0,a},unref:function(){return this.refed=!1,a},hasRef:function(){return this.refed},refresh:function(){return i.callAt=n.now+(parseInt(i.delay)||(n.duringTick?1:0)),n.timers[i.id]=i,a},[Symbol.toPrimitive]:function(){return i.id}};return a}return i.id}function be(n,i){if(n.callAt<i.callAt)return-1;if(n.callAt>i.callAt)return 1;if(n.immediate&&!i.immediate)return-1;if(!n.immediate&&i.immediate)return 1;if(n.createdAt<i.createdAt)return-1;if(n.createdAt>i.createdAt)return 1;if(n.id<i.id)return-1;if(n.id>i.id)return 1}function Ie(n,i,a){const y=n.timers;let e=null,v,E;for(v in y)y.hasOwnProperty(v)&&(E=ye(i,a,y[v]),E&&(!e||be(e,y[v])===1)&&(e=y[v]));return e}function Te(n){const i=n.timers;let a=null,y;for(y in i)i.hasOwnProperty(y)&&(!a||be(a,i[y])===1)&&(a=i[y]);return a}function tt(n){const i=n.timers;let a=null,y;for(y in i)i.hasOwnProperty(y)&&(!a||be(a,i[y])===-1)&&(a=i[y]);return a}function Ee(n,i){if(typeof i.interval=="number"?n.timers[i.id].callAt+=i.interval:delete n.timers[i.id],typeof i.func=="function")i.func.apply(null,i.args);else{const a=eval;(function(){a(i.func)})()}}function rt(n){return n==="IdleCallback"||n==="AnimationFrame"?`cancel${n}`:`clear${n}`}function Rt(n){return n==="IdleCallback"||n==="AnimationFrame"?`request${n}`:`set${n}`}function _t(){let n=0;return function(i){!n++&&console.warn(i)}}const qt=_t();function le(n,i,a){if(!i)return;n.timers||(n.timers={});const y=Number(i);if(Number.isNaN(y)||y<l){const e=rt(a);if(n.shouldClearNativeTimers===!0){const v=n[`_${e}`];return typeof v=="function"?v(i):void 0}qt(`FakeTimers: ${e} was invoked to clear a native timer instead of one created by this library.
11
- To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(n.timers.hasOwnProperty(y)){const e=n.timers[y];if(e.type===a||e.type==="Timeout"&&a==="Interval"||e.type==="Interval"&&a==="Timeout")delete n.timers[y];else{const v=rt(a),E=Rt(e.type);throw new Error(`Cannot clear timer: timer created with ${E}() but cleared with ${v}()`)}}}function Nt(n,i){let a,y,e;const v="_hrtime",E="_nextTick";for(y=0,e=n.methods.length;y<e;y++){if(a=n.methods[y],a==="hrtime"&&t.process)t.process.hrtime=n[v];else if(a==="nextTick"&&t.process)t.process.nextTick=n[E];else if(a==="performance"){const k=Object.getOwnPropertyDescriptor(n,`_${a}`);k&&k.get&&!k.set?Object.defineProperty(t,a,k):k.configurable&&(t[a]=n[`_${a}`])}else if(t[a]&&t[a].hadOwnProperty)t[a]=n[`_${a}`];else try{delete t[a]}catch{}if(n.timersModuleMethods!==void 0)for(let k=0;k<n.timersModuleMethods.length;k++){const b=n.timersModuleMethods[k];r[b.methodName]=b.original}if(n.timersPromisesModuleMethods!==void 0)for(let k=0;k<n.timersPromisesModuleMethods.length;k++){const b=n.timersPromisesModuleMethods[k];c[b.methodName]=b.original}}i.shouldAdvanceTime===!0&&t.clearInterval(n.attachedInterval),n.methods=[];for(const[k,b]of n.abortListenerMap.entries())b.removeEventListener("abort",k),n.abortListenerMap.delete(k);return n.timers?Object.keys(n.timers).map(function(b){return n.timers[b]}):[]}function Ae(n,i,a){if(a[i].hadOwnProperty=Object.prototype.hasOwnProperty.call(n,i),a[`_${i}`]=n[i],i==="Date")n[i]=a[i];else if(i==="Intl")n[i]=a[i];else if(i==="performance"){const y=Object.getOwnPropertyDescriptor(n,i);if(y&&y.get&&!y.set){Object.defineProperty(a,`_${i}`,y);const e=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(n,i,e)}else n[i]=a[i]}else n[i]=function(){return a[i].apply(a,arguments)},Object.defineProperties(n[i],Object.getOwnPropertyDescriptors(a[i]));n[i].clock=a}function Dt(n,i){n.tick(i)}const L={setTimeout:t.setTimeout,clearTimeout:t.clearTimeout,setInterval:t.setInterval,clearInterval:t.clearInterval,Date:t.Date};d.setImmediate&&(L.setImmediate=t.setImmediate),d.clearImmediate&&(L.clearImmediate=t.clearImmediate),d.hrtime&&(L.hrtime=t.process.hrtime),d.nextTick&&(L.nextTick=t.process.nextTick),d.performance&&(L.performance=t.performance),d.requestAnimationFrame&&(L.requestAnimationFrame=t.requestAnimationFrame),d.queueMicrotask&&(L.queueMicrotask=t.queueMicrotask),d.cancelAnimationFrame&&(L.cancelAnimationFrame=t.cancelAnimationFrame),d.requestIdleCallback&&(L.requestIdleCallback=t.requestIdleCallback),d.cancelIdleCallback&&(L.cancelIdleCallback=t.cancelIdleCallback),d.Intl&&(L.Intl=M);const ie=t.setImmediate||t.setTimeout;function nt(n,i){n=Math.floor(R(n)),i=i||1e3;let a=0;const y=[0,0],e={now:n,Date:ue(),loopLimit:i};e.Date.clock=e;function v(){return 16-(e.now-n)%16}function E(w){const u=e.now-y[0]-n,T=Math.floor(u/1e3),g=(u-T*1e3)*1e6+a-y[1];if(Array.isArray(w)){if(w[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const S=w[0];let F=g-w[1],X=T-S;return F<0&&(F+=1e9,X-=1),[X,F]}return[T,g]}function k(){const w=E();return w[0]*1e3+w[1]/1e6}d.hrtimeBigint&&(E.bigint=function(){const w=E();return BigInt(w[0])*BigInt(1e9)+BigInt(w[1])}),d.Intl&&(e.Intl=Z(),e.Intl.clock=e),e.requestIdleCallback=function(u,T){let g=0;e.countTimers()>0&&(g=50);const S=ne(e,{func:u,args:Array.prototype.slice.call(arguments,2),delay:typeof T>"u"?g:Math.min(T,g),idleCallback:!0});return Number(S)},e.cancelIdleCallback=function(u){return le(e,u,"IdleCallback")},e.setTimeout=function(u,T){return ne(e,{func:u,args:Array.prototype.slice.call(arguments,2),delay:T})},typeof t.Promise<"u"&&O&&(e.setTimeout[O.custom]=function(u,T){return new t.Promise(function(S){ne(e,{func:S,args:[T],delay:u})})}),e.clearTimeout=function(u){return le(e,u,"Timeout")},e.nextTick=function(u){return fe(e,{func:u,args:Array.prototype.slice.call(arguments,1),error:K?new Error:null})},e.queueMicrotask=function(u){return e.nextTick(u)},e.setInterval=function(u,T){return T=parseInt(T,10),ne(e,{func:u,args:Array.prototype.slice.call(arguments,2),delay:T,interval:T})},e.clearInterval=function(u){return le(e,u,"Interval")},d.setImmediate&&(e.setImmediate=function(u){return ne(e,{func:u,args:Array.prototype.slice.call(arguments,1),immediate:!0})},typeof t.Promise<"u"&&O&&(e.setImmediate[O.custom]=function(u){return new t.Promise(function(g){ne(e,{func:g,args:[u],immediate:!0})})}),e.clearImmediate=function(u){return le(e,u,"Immediate")}),e.countTimers=function(){return Object.keys(e.timers||{}).length+(e.jobs||[]).length},e.requestAnimationFrame=function(u){const T=ne(e,{func:u,delay:v(),get args(){return[k()]},animation:!0});return Number(T)},e.cancelAnimationFrame=function(u){return le(e,u,"AnimationFrame")},e.runMicrotasks=function(){V(e)};function b(w,u,T,g){const S=typeof w=="number"?w:B(w),F=Math.floor(S),X=Q(S);let G=a+X,_=e.now+F;if(S<0)throw new TypeError("Negative ticks are not supported");G>=1e6&&(_+=1,G-=1e6),a=G;let D=e.now,z=e.now,W,ee,$,it,Se,Me;e.duringTick=!0,$=e.now,V(e),$!==e.now&&(D+=e.now-$,_+=e.now-$);function ot(){for(W=Ie(e,D,_);W&&D<=_;){if(e.timers[W.id]){D=W.callAt,e.now=W.callAt,$=e.now;try{V(e),Ee(e,W)}catch(me){ee=ee||me}if(u){ie(it);return}Se()}Me()}if($=e.now,V(e),$!==e.now&&(D+=e.now-$,_+=e.now-$),e.duringTick=!1,W=Ie(e,D,_),W)try{e.tick(_-e.now)}catch(me){ee=ee||me}else e.now=_,a=G;if(ee)throw ee;if(u)T(e.now);else return e.now}return it=u&&function(){try{Se(),Me(),ot()}catch(me){g(me)}},Se=function(){$!==e.now&&(D+=e.now-$,_+=e.now-$,z+=e.now-$)},Me=function(){W=Ie(e,z,_),z=D},ot()}return e.tick=function(u){return b(u,!1)},typeof t.Promise<"u"&&(e.tickAsync=function(u){return new t.Promise(function(T,g){ie(function(){try{b(u,!0,T,g)}catch(S){g(S)}})})}),e.next=function(){V(e);const u=Te(e);if(!u)return e.now;e.duringTick=!0;try{return e.now=u.callAt,Ee(e,u),V(e),e.now}finally{e.duringTick=!1}},typeof t.Promise<"u"&&(e.nextAsync=function(){return new t.Promise(function(u,T){ie(function(){try{const g=Te(e);if(!g){u(e.now);return}let S;e.duringTick=!0,e.now=g.callAt;try{Ee(e,g)}catch(F){S=F}e.duringTick=!1,ie(function(){S?T(S):u(e.now)})}catch(g){T(g)}})})}),e.runAll=function(){let u,T;for(V(e),T=0;T<e.loopLimit;T++){if(!e.timers||(u=Object.keys(e.timers).length,u===0))return P(),e.now;e.next(),q(e,T)}const g=Te(e);throw re(e,g)},e.runToFrame=function(){return e.tick(v())},typeof t.Promise<"u"&&(e.runAllAsync=function(){return new t.Promise(function(u,T){let g=0;function S(){ie(function(){try{V(e);let F;if(g<e.loopLimit){if(!e.timers){P(),u(e.now);return}if(F=Object.keys(e.timers).length,F===0){P(),u(e.now);return}e.next(),g++,S(),q(e,g);return}const X=Te(e);T(re(e,X))}catch(F){T(F)}})}S()})}),e.runToLast=function(){const u=tt(e);return u?e.tick(u.callAt-e.now):(V(e),e.now)},typeof t.Promise<"u"&&(e.runToLastAsync=function(){return new t.Promise(function(u,T){ie(function(){try{const g=tt(e);g||(V(e),u(e.now)),u(e.tickAsync(g.callAt-e.now))}catch(g){T(g)}})})}),e.reset=function(){a=0,e.timers={},e.jobs=[],e.now=n},e.setSystemTime=function(u){const T=R(u),g=T-e.now;let S,F;y[0]=y[0]+g,y[1]=y[1]+a,e.now=T,a=0;for(S in e.timers)e.timers.hasOwnProperty(S)&&(F=e.timers[S],F.createdAt+=g,F.callAt+=g)},e.jump=function(u){const T=typeof u=="number"?u:B(u),g=Math.floor(T);for(const S of Object.values(e.timers))e.now+g>S.callAt&&(S.callAt=e.now+g);e.tick(g)},d.performance&&(e.performance=Object.create(null),e.performance.now=k),d.hrtime&&(e.hrtime=E),e}function Lt(n){if(arguments.length>1||n instanceof Date||Array.isArray(n)||typeof n=="number")throw new TypeError(`FakeTimers.install called with ${String(n)} install requires an object parameter`);if(t.Date.isFake===!0)throw new TypeError("Can't install fake timers twice on the same global object.");if(n=typeof n<"u"?n:{},n.shouldAdvanceTime=n.shouldAdvanceTime||!1,n.advanceTimeDelta=n.advanceTimeDelta||20,n.shouldClearNativeTimers=n.shouldClearNativeTimers||!1,n.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function i(v){if(!n.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${v}'`)}let a,y;const e=nt(n.now,n.loopLimit);if(e.shouldClearNativeTimers=n.shouldClearNativeTimers,e.uninstall=function(){return Nt(e,n)},e.abortListenerMap=new Map,e.methods=n.toFake||[],e.methods.length===0&&(e.methods=Object.keys(L)),n.shouldAdvanceTime===!0){const v=Dt.bind(null,e,n.advanceTimeDelta),E=t.setInterval(v,n.advanceTimeDelta);e.attachedInterval=E}if(e.methods.includes("performance")){const v=(()=>{if(H)return t.performance.constructor.prototype;if(j)return t.Performance.prototype})();if(v)Object.getOwnPropertyNames(v).forEach(function(E){E!=="now"&&(e.performance[E]=E.indexOf("getEntries")===0?h:o)}),e.performance.mark=E=>new N(E,"mark",0,0),e.performance.measure=E=>new N(E,"measure",0,100),e.performance.timeOrigin=R(n.now);else if((n.toFake||[]).includes("performance"))return i("performance")}for(t===s&&r&&(e.timersModuleMethods=[]),t===s&&c&&(e.timersPromisesModuleMethods=[]),a=0,y=e.methods.length;a<y;a++){const v=e.methods[a];if(!d[v]){i(v);continue}if(v==="hrtime"?t.process&&typeof t.process.hrtime=="function"&&Ae(t.process,v,e):v==="nextTick"?t.process&&typeof t.process.nextTick=="function"&&Ae(t.process,v,e):Ae(t,v,e),e.timersModuleMethods!==void 0&&r[v]){const E=r[v];e.timersModuleMethods.push({methodName:v,original:E}),r[v]=t[v]}e.timersPromisesModuleMethods!==void 0&&(v==="setTimeout"?(e.timersPromisesModuleMethods.push({methodName:"setTimeout",original:c.setTimeout}),c.setTimeout=(E,k,b={})=>new Promise((w,u)=>{const T=()=>{b.signal.removeEventListener("abort",T),e.abortListenerMap.delete(T),e.clearTimeout(g),u(b.signal.reason)},g=e.setTimeout(()=>{b.signal&&(b.signal.removeEventListener("abort",T),e.abortListenerMap.delete(T)),w(k)},E);b.signal&&(b.signal.aborted?T():(b.signal.addEventListener("abort",T),e.abortListenerMap.set(T,b.signal)))})):v==="setImmediate"?(e.timersPromisesModuleMethods.push({methodName:"setImmediate",original:c.setImmediate}),c.setImmediate=(E,k={})=>new Promise((b,w)=>{const u=()=>{k.signal.removeEventListener("abort",u),e.abortListenerMap.delete(u),e.clearImmediate(T),w(k.signal.reason)},T=e.setImmediate(()=>{k.signal&&(k.signal.removeEventListener("abort",u),e.abortListenerMap.delete(u)),b(E)});k.signal&&(k.signal.aborted?u():(k.signal.addEventListener("abort",u),e.abortListenerMap.set(u,k.signal)))})):v==="setInterval"&&(e.timersPromisesModuleMethods.push({methodName:"setInterval",original:c.setInterval}),c.setInterval=(E,k,b={})=>({[Symbol.asyncIterator]:()=>{const w=()=>{let _,D;const z=new Promise((W,ee)=>{_=W,D=ee});return z.resolve=_,z.reject=D,z};let u=!1,T=!1,g,S=0;const F=[],X=e.setInterval(()=>{F.length>0?F.shift().resolve():S++},E),G=()=>{b.signal.removeEventListener("abort",G),e.abortListenerMap.delete(G),e.clearInterval(X),u=!0;for(const _ of F)_.resolve()};return b.signal&&(b.signal.aborted?u=!0:(b.signal.addEventListener("abort",G),e.abortListenerMap.set(G,b.signal))),{next:async()=>{var D,z;if((D=b.signal)!=null&&D.aborted&&!T)throw T=!0,b.signal.reason;if(u)return{done:!0,value:void 0};if(S>0)return S--,{done:!1,value:k};const _=w();if(F.push(_),await _,g&&F.length===0&&g.resolve(),(z=b.signal)!=null&&z.aborted&&!T)throw T=!0,b.signal.reason;return u?{done:!0,value:void 0}:{done:!1,value:k}},return:async()=>u?{done:!0,value:void 0}:(F.length>0&&(g=w(),await g),e.clearInterval(X),u=!0,b.signal&&(b.signal.removeEventListener("abort",G),e.abortListenerMap.delete(G)),{done:!0,value:void 0})}}})))}return e}return{timers:L,createClock:nt,install:Lt,withGlobal:m}}const f=m(s);return se.timers=f.timers,se.createClock=f.createClock,se.install=f.install,se.withGlobal=m,se}var Kr=Jr();class Vr{constructor({global:r,config:c}){te(this,"_global");te(this,"_clock");te(this,"_fakingTime");te(this,"_fakingDate");te(this,"_fakeTimers");te(this,"_userConfig");te(this,"_now",fr.now);this._userConfig=c,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=Kr.withGlobal(r),this._global=r}clearAllTimers(){this._fakingTime&&this._clock.reset()}dispose(){this.useRealTimers()}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll()}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync()}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast()}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync()}advanceTimersToNextTimer(r=1){if(this._checkFakeTimers())for(let c=r;c>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);c--);}async advanceTimersToNextTimerAsync(r=1){if(this._checkFakeTimers())for(let c=r;c>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);c--);}advanceTimersByTime(r){this._checkFakeTimers()&&this._clock.tick(r)}async advanceTimersByTimeAsync(r){this._checkFakeTimers()&&await this._clock.tickAsync(r)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&(lr(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){var r,c,m;if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){const f=Object.keys(this._fakeTimers.timers).filter(t=>t!=="nextTick"&&t!=="queueMicrotask");if((c=(r=this._userConfig)==null?void 0:r.toFake)!=null&&c.includes("nextTick")&&Ft())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:((m=this._userConfig)==null?void 0:m.toFake)||f,ignoreMissingTimers:!0}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:r}=this._clock;this._clock.reset(),this._clock.setSystemTime(r)}}setSystemTime(r){const c=typeof r>"u"||r instanceof Date?r:new Date(r);this._fakingTime?this._clock.setSystemTime(c):(this._fakingDate=c??new Date(this.getRealSystemTime()),mr(this._fakingDate))}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(r){this._userConfig=r}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}}function jt(s,r){return r.stack!==void 0&&(s.stack=r.stack.replace(r.message,s.message)),s}function zr(s,r={}){const{setTimeout:c,setInterval:m,clearTimeout:f,clearInterval:t}=Ze(),{interval:p=50,timeout:l=1e3}=typeof r=="number"?{timeout:r}:r,o=new Error("STACK_TRACE_ERROR");return new Promise((h,d)=>{let I,A="idle",O,j;const H=C=>{O&&f(O),j&&t(j),h(C)},x=()=>{j&&t(j);let C=I;C||(C=jt(new Error("Timed out in waitFor!"),o)),d(C)},M=()=>{if(ke.isFakeTimers()&&ke.advanceTimersByTime(p),A!=="pending")try{const C=s();if(C!==null&&typeof C=="object"&&typeof C.then=="function"){const N=C;A="pending",N.then(J=>{A="resolved",H(J)},J=>{A="rejected",I=J})}else return H(C),!0}catch(C){I=C}};M()!==!0&&(O=c(x,l),j=m(M,p))})}function Qr(s,r={}){const{setTimeout:c,setInterval:m,clearTimeout:f,clearInterval:t}=Ze(),{interval:p=50,timeout:l=1e3}=typeof r=="number"?{timeout:r}:r,o=new Error("STACK_TRACE_ERROR");return new Promise((h,d)=>{let I="idle",A,O;const j=M=>{O&&t(O),M||(M=jt(new Error("Timed out in waitUntil!"),o)),d(M)},H=M=>{if(M)return A&&f(A),O&&t(O),h(M),!0},x=()=>{if(ke.isFakeTimers()&&ke.advanceTimersByTime(p),I!=="pending")try{const M=s();if(M!==null&&typeof M=="object"&&typeof M.then=="function"){const C=M;I="pending",C.then(N=>{I="resolved",H(N)},N=>{I="rejected",j(N)})}else return H(M)}catch(M){j(M)}};x()!==!0&&(A=c(j,l),O=m(x,p))})}function Xr(){let s=null;const r=et();let c;const m=()=>c||(c=new Vr({global:globalThis,config:r.config.fakeTimers})),f=new Map,t=new Map,p=["PROD","DEV","SSR"],l={useFakeTimers(o){var h,d,I,A;if(Ft()&&((h=o==null?void 0:o.toFake)!=null&&h.includes("nextTick")||(A=(I=(d=r.config)==null?void 0:d.fakeTimers)==null?void 0:I.toFake)!=null&&A.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return o?m().configure({...r.config.fakeTimers,...o}):m().configure(r.config.fakeTimers),m().useFakeTimers(),l},isFakeTimers(){return m().isFakeTimers()},useRealTimers(){return m().useRealTimers(),l},runOnlyPendingTimers(){return m().runOnlyPendingTimers(),l},async runOnlyPendingTimersAsync(){return await m().runOnlyPendingTimersAsync(),l},runAllTimers(){return m().runAllTimers(),l},async runAllTimersAsync(){return await m().runAllTimersAsync(),l},runAllTicks(){return m().runAllTicks(),l},advanceTimersByTime(o){return m().advanceTimersByTime(o),l},async advanceTimersByTimeAsync(o){return await m().advanceTimersByTimeAsync(o),l},advanceTimersToNextTimer(){return m().advanceTimersToNextTimer(),l},async advanceTimersToNextTimerAsync(){return await m().advanceTimersToNextTimerAsync(),l},advanceTimersToNextFrame(){return m().advanceTimersToNextFrame(),l},getTimerCount(){return m().getTimerCount()},setSystemTime(o){return m().setSystemTime(o),l},getMockedSystemTime(){return m().getMockedSystemTime()},getRealSystemTime(){return m().getRealSystemTime()},clearAllTimers(){return m().clearAllTimers(),l},spyOn:ar,fn:sr,waitFor:zr,waitUntil:Qr,hoisted(o){return dr(o,'"vi.hoisted" factory',["function"]),o()},mock(o,h){if(typeof o!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof o}`);const d=ae("mock");U().queueMock(o,d,typeof h=="function"?()=>h(()=>U().importActual(o,d,U().getMockContext().callstack)):h)},unmock(o){if(typeof o!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof o}`);U().queueUnmock(o,ae("unmock"))},doMock(o,h){if(typeof o!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof o}`);const d=ae("doMock");U().queueMock(o,d,typeof h=="function"?()=>h(()=>U().importActual(o,d,U().getMockContext().callstack)):h)},doUnmock(o){if(typeof o!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof o}`);U().queueUnmock(o,ae("doUnmock"))},async importActual(o){return U().importActual(o,ae("importActual"),U().getMockContext().callstack)},async importMock(o){return U().importMock(o,ae("importMock"))},mocked(o,h={}){return o},isMockFunction(o){return cr(o)},clearAllMocks(){return[...Ce].reverse().forEach(o=>o.mockClear()),l},resetAllMocks(){return[...Ce].reverse().forEach(o=>o.mockReset()),l},restoreAllMocks(){return[...Ce].reverse().forEach(o=>o.mockRestore()),l},stubGlobal(o,h){return f.has(o)||f.set(o,Object.getOwnPropertyDescriptor(globalThis,o)),Object.defineProperty(globalThis,o,{value:h,writable:!0,configurable:!0,enumerable:!0}),l},stubEnv(o,h){return t.has(o)||t.set(o,oe[o]),p.includes(o)?oe[o]=h?"1":"":h===void 0?delete oe[o]:oe[o]=String(h),l},unstubAllGlobals(){return f.forEach((o,h)=>{o?Object.defineProperty(globalThis,h,o):Reflect.deleteProperty(globalThis,h)}),f.clear(),l},unstubAllEnvs(){return t.forEach((o,h)=>{o===void 0?delete oe[h]:oe[h]=o}),t.clear(),l},resetModules(){return rr(r.moduleCache),l},async dynamicImportSettled(){return tr()},setConfig(o){s||(s={...r.config}),Object.assign(r.config,o)},resetConfig(){s&&Object.assign(r.config,s)}};return l}const Yr=Xr(),ke=Yr;function U(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(s,r){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(r)}() is forbidden.`)}})}function ae(s){const c=pr({stackTraceLimit:5}).split(`
12
- `),m=c.findIndex(t=>t.includes(` at Object.${s}`)||t.includes(`${s}@`)),f=ur(c[m+1]);return(f==null?void 0:f.file)||""}export{Sr as a,Yr as b,Ar as c,de as g,ke as v};
11
+ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(n.timers.hasOwnProperty(y)){const e=n.timers[y];if(e.type===a||e.type==="Timeout"&&a==="Interval"||e.type==="Interval"&&a==="Timeout")delete n.timers[y];else{const v=rt(a),E=Rt(e.type);throw new Error(`Cannot clear timer: timer created with ${E}() but cleared with ${v}()`)}}}function Nt(n,i){let a,y,e;const v="_hrtime",E="_nextTick";for(y=0,e=n.methods.length;y<e;y++){if(a=n.methods[y],a==="hrtime"&&t.process)t.process.hrtime=n[v];else if(a==="nextTick"&&t.process)t.process.nextTick=n[E];else if(a==="performance"){const k=Object.getOwnPropertyDescriptor(n,`_${a}`);k&&k.get&&!k.set?Object.defineProperty(t,a,k):k.configurable&&(t[a]=n[`_${a}`])}else if(t[a]&&t[a].hadOwnProperty)t[a]=n[`_${a}`];else try{delete t[a]}catch{}if(n.timersModuleMethods!==void 0)for(let k=0;k<n.timersModuleMethods.length;k++){const b=n.timersModuleMethods[k];r[b.methodName]=b.original}if(n.timersPromisesModuleMethods!==void 0)for(let k=0;k<n.timersPromisesModuleMethods.length;k++){const b=n.timersPromisesModuleMethods[k];c[b.methodName]=b.original}}i.shouldAdvanceTime===!0&&t.clearInterval(n.attachedInterval),n.methods=[];for(const[k,b]of n.abortListenerMap.entries())b.removeEventListener("abort",k),n.abortListenerMap.delete(k);return n.timers?Object.keys(n.timers).map(function(b){return n.timers[b]}):[]}function Ae(n,i,a){if(a[i].hadOwnProperty=Object.prototype.hasOwnProperty.call(n,i),a[`_${i}`]=n[i],i==="Date")n[i]=a[i];else if(i==="Intl")n[i]=a[i];else if(i==="performance"){const y=Object.getOwnPropertyDescriptor(n,i);if(y&&y.get&&!y.set){Object.defineProperty(a,`_${i}`,y);const e=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(n,i,e)}else n[i]=a[i]}else n[i]=function(){return a[i].apply(a,arguments)},Object.defineProperties(n[i],Object.getOwnPropertyDescriptors(a[i]));n[i].clock=a}function Dt(n,i){n.tick(i)}const L={setTimeout:t.setTimeout,clearTimeout:t.clearTimeout,setInterval:t.setInterval,clearInterval:t.clearInterval,Date:t.Date};d.setImmediate&&(L.setImmediate=t.setImmediate),d.clearImmediate&&(L.clearImmediate=t.clearImmediate),d.hrtime&&(L.hrtime=t.process.hrtime),d.nextTick&&(L.nextTick=t.process.nextTick),d.performance&&(L.performance=t.performance),d.requestAnimationFrame&&(L.requestAnimationFrame=t.requestAnimationFrame),d.queueMicrotask&&(L.queueMicrotask=t.queueMicrotask),d.cancelAnimationFrame&&(L.cancelAnimationFrame=t.cancelAnimationFrame),d.requestIdleCallback&&(L.requestIdleCallback=t.requestIdleCallback),d.cancelIdleCallback&&(L.cancelIdleCallback=t.cancelIdleCallback),d.Intl&&(L.Intl=M);const ie=t.setImmediate||t.setTimeout;function nt(n,i){n=Math.floor(R(n)),i=i||1e3;let a=0;const y=[0,0],e={now:n,Date:ue(),loopLimit:i};e.Date.clock=e;function v(){return 16-(e.now-n)%16}function E(w){const u=e.now-y[0]-n,T=Math.floor(u/1e3),g=(u-T*1e3)*1e6+a-y[1];if(Array.isArray(w)){if(w[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const S=w[0];let F=g-w[1],X=T-S;return F<0&&(F+=1e9,X-=1),[X,F]}return[T,g]}function k(){const w=E();return w[0]*1e3+w[1]/1e6}d.hrtimeBigint&&(E.bigint=function(){const w=E();return BigInt(w[0])*BigInt(1e9)+BigInt(w[1])}),d.Intl&&(e.Intl=Z(),e.Intl.clock=e),e.requestIdleCallback=function(u,T){let g=0;e.countTimers()>0&&(g=50);const S=ne(e,{func:u,args:Array.prototype.slice.call(arguments,2),delay:typeof T>"u"?g:Math.min(T,g),idleCallback:!0});return Number(S)},e.cancelIdleCallback=function(u){return le(e,u,"IdleCallback")},e.setTimeout=function(u,T){return ne(e,{func:u,args:Array.prototype.slice.call(arguments,2),delay:T})},typeof t.Promise<"u"&&O&&(e.setTimeout[O.custom]=function(u,T){return new t.Promise(function(S){ne(e,{func:S,args:[T],delay:u})})}),e.clearTimeout=function(u){return le(e,u,"Timeout")},e.nextTick=function(u){return fe(e,{func:u,args:Array.prototype.slice.call(arguments,1),error:K?new Error:null})},e.queueMicrotask=function(u){return e.nextTick(u)},e.setInterval=function(u,T){return T=parseInt(T,10),ne(e,{func:u,args:Array.prototype.slice.call(arguments,2),delay:T,interval:T})},e.clearInterval=function(u){return le(e,u,"Interval")},d.setImmediate&&(e.setImmediate=function(u){return ne(e,{func:u,args:Array.prototype.slice.call(arguments,1),immediate:!0})},typeof t.Promise<"u"&&O&&(e.setImmediate[O.custom]=function(u){return new t.Promise(function(g){ne(e,{func:g,args:[u],immediate:!0})})}),e.clearImmediate=function(u){return le(e,u,"Immediate")}),e.countTimers=function(){return Object.keys(e.timers||{}).length+(e.jobs||[]).length},e.requestAnimationFrame=function(u){const T=ne(e,{func:u,delay:v(),get args(){return[k()]},animation:!0});return Number(T)},e.cancelAnimationFrame=function(u){return le(e,u,"AnimationFrame")},e.runMicrotasks=function(){V(e)};function b(w,u,T,g){const S=typeof w=="number"?w:B(w),F=Math.floor(S),X=Q(S);let W=a+X,_=e.now+F;if(S<0)throw new TypeError("Negative ticks are not supported");W>=1e6&&(_+=1,W-=1e6),a=W;let D=e.now,z=e.now,U,ee,$,it,Se,Me;e.duringTick=!0,$=e.now,V(e),$!==e.now&&(D+=e.now-$,_+=e.now-$);function ot(){for(U=Ie(e,D,_);U&&D<=_;){if(e.timers[U.id]){D=U.callAt,e.now=U.callAt,$=e.now;try{V(e),Ee(e,U)}catch(me){ee=ee||me}if(u){ie(it);return}Se()}Me()}if($=e.now,V(e),$!==e.now&&(D+=e.now-$,_+=e.now-$),e.duringTick=!1,U=Ie(e,D,_),U)try{e.tick(_-e.now)}catch(me){ee=ee||me}else e.now=_,a=W;if(ee)throw ee;if(u)T(e.now);else return e.now}return it=u&&function(){try{Se(),Me(),ot()}catch(me){g(me)}},Se=function(){$!==e.now&&(D+=e.now-$,_+=e.now-$,z+=e.now-$)},Me=function(){U=Ie(e,z,_),z=D},ot()}return e.tick=function(u){return b(u,!1)},typeof t.Promise<"u"&&(e.tickAsync=function(u){return new t.Promise(function(T,g){ie(function(){try{b(u,!0,T,g)}catch(S){g(S)}})})}),e.next=function(){V(e);const u=Te(e);if(!u)return e.now;e.duringTick=!0;try{return e.now=u.callAt,Ee(e,u),V(e),e.now}finally{e.duringTick=!1}},typeof t.Promise<"u"&&(e.nextAsync=function(){return new t.Promise(function(u,T){ie(function(){try{const g=Te(e);if(!g){u(e.now);return}let S;e.duringTick=!0,e.now=g.callAt;try{Ee(e,g)}catch(F){S=F}e.duringTick=!1,ie(function(){S?T(S):u(e.now)})}catch(g){T(g)}})})}),e.runAll=function(){let u,T;for(V(e),T=0;T<e.loopLimit;T++){if(!e.timers||(u=Object.keys(e.timers).length,u===0))return P(),e.now;e.next(),q(e,T)}const g=Te(e);throw re(e,g)},e.runToFrame=function(){return e.tick(v())},typeof t.Promise<"u"&&(e.runAllAsync=function(){return new t.Promise(function(u,T){let g=0;function S(){ie(function(){try{V(e);let F;if(g<e.loopLimit){if(!e.timers){P(),u(e.now);return}if(F=Object.keys(e.timers).length,F===0){P(),u(e.now);return}e.next(),g++,S(),q(e,g);return}const X=Te(e);T(re(e,X))}catch(F){T(F)}})}S()})}),e.runToLast=function(){const u=tt(e);return u?e.tick(u.callAt-e.now):(V(e),e.now)},typeof t.Promise<"u"&&(e.runToLastAsync=function(){return new t.Promise(function(u,T){ie(function(){try{const g=tt(e);g||(V(e),u(e.now)),u(e.tickAsync(g.callAt-e.now))}catch(g){T(g)}})})}),e.reset=function(){a=0,e.timers={},e.jobs=[],e.now=n},e.setSystemTime=function(u){const T=R(u),g=T-e.now;let S,F;y[0]=y[0]+g,y[1]=y[1]+a,e.now=T,a=0;for(S in e.timers)e.timers.hasOwnProperty(S)&&(F=e.timers[S],F.createdAt+=g,F.callAt+=g)},e.jump=function(u){const T=typeof u=="number"?u:B(u),g=Math.floor(T);for(const S of Object.values(e.timers))e.now+g>S.callAt&&(S.callAt=e.now+g);e.tick(g)},d.performance&&(e.performance=Object.create(null),e.performance.now=k),d.hrtime&&(e.hrtime=E),e}function Lt(n){if(arguments.length>1||n instanceof Date||Array.isArray(n)||typeof n=="number")throw new TypeError(`FakeTimers.install called with ${String(n)} install requires an object parameter`);if(t.Date.isFake===!0)throw new TypeError("Can't install fake timers twice on the same global object.");if(n=typeof n<"u"?n:{},n.shouldAdvanceTime=n.shouldAdvanceTime||!1,n.advanceTimeDelta=n.advanceTimeDelta||20,n.shouldClearNativeTimers=n.shouldClearNativeTimers||!1,n.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function i(v){if(!n.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${v}'`)}let a,y;const e=nt(n.now,n.loopLimit);if(e.shouldClearNativeTimers=n.shouldClearNativeTimers,e.uninstall=function(){return Nt(e,n)},e.abortListenerMap=new Map,e.methods=n.toFake||[],e.methods.length===0&&(e.methods=Object.keys(L)),n.shouldAdvanceTime===!0){const v=Dt.bind(null,e,n.advanceTimeDelta),E=t.setInterval(v,n.advanceTimeDelta);e.attachedInterval=E}if(e.methods.includes("performance")){const v=(()=>{if(G)return t.performance.constructor.prototype;if(j)return t.Performance.prototype})();if(v)Object.getOwnPropertyNames(v).forEach(function(E){E!=="now"&&(e.performance[E]=E.indexOf("getEntries")===0?h:o)}),e.performance.mark=E=>new N(E,"mark",0,0),e.performance.measure=E=>new N(E,"measure",0,100),e.performance.timeOrigin=R(n.now);else if((n.toFake||[]).includes("performance"))return i("performance")}for(t===s&&r&&(e.timersModuleMethods=[]),t===s&&c&&(e.timersPromisesModuleMethods=[]),a=0,y=e.methods.length;a<y;a++){const v=e.methods[a];if(!d[v]){i(v);continue}if(v==="hrtime"?t.process&&typeof t.process.hrtime=="function"&&Ae(t.process,v,e):v==="nextTick"?t.process&&typeof t.process.nextTick=="function"&&Ae(t.process,v,e):Ae(t,v,e),e.timersModuleMethods!==void 0&&r[v]){const E=r[v];e.timersModuleMethods.push({methodName:v,original:E}),r[v]=t[v]}e.timersPromisesModuleMethods!==void 0&&(v==="setTimeout"?(e.timersPromisesModuleMethods.push({methodName:"setTimeout",original:c.setTimeout}),c.setTimeout=(E,k,b={})=>new Promise((w,u)=>{const T=()=>{b.signal.removeEventListener("abort",T),e.abortListenerMap.delete(T),e.clearTimeout(g),u(b.signal.reason)},g=e.setTimeout(()=>{b.signal&&(b.signal.removeEventListener("abort",T),e.abortListenerMap.delete(T)),w(k)},E);b.signal&&(b.signal.aborted?T():(b.signal.addEventListener("abort",T),e.abortListenerMap.set(T,b.signal)))})):v==="setImmediate"?(e.timersPromisesModuleMethods.push({methodName:"setImmediate",original:c.setImmediate}),c.setImmediate=(E,k={})=>new Promise((b,w)=>{const u=()=>{k.signal.removeEventListener("abort",u),e.abortListenerMap.delete(u),e.clearImmediate(T),w(k.signal.reason)},T=e.setImmediate(()=>{k.signal&&(k.signal.removeEventListener("abort",u),e.abortListenerMap.delete(u)),b(E)});k.signal&&(k.signal.aborted?u():(k.signal.addEventListener("abort",u),e.abortListenerMap.set(u,k.signal)))})):v==="setInterval"&&(e.timersPromisesModuleMethods.push({methodName:"setInterval",original:c.setInterval}),c.setInterval=(E,k,b={})=>({[Symbol.asyncIterator]:()=>{const w=()=>{let _,D;const z=new Promise((U,ee)=>{_=U,D=ee});return z.resolve=_,z.reject=D,z};let u=!1,T=!1,g,S=0;const F=[],X=e.setInterval(()=>{F.length>0?F.shift().resolve():S++},E),W=()=>{b.signal.removeEventListener("abort",W),e.abortListenerMap.delete(W),e.clearInterval(X),u=!0;for(const _ of F)_.resolve()};return b.signal&&(b.signal.aborted?u=!0:(b.signal.addEventListener("abort",W),e.abortListenerMap.set(W,b.signal))),{next:async()=>{var D,z;if((D=b.signal)!=null&&D.aborted&&!T)throw T=!0,b.signal.reason;if(u)return{done:!0,value:void 0};if(S>0)return S--,{done:!1,value:k};const _=w();if(F.push(_),await _,g&&F.length===0&&g.resolve(),(z=b.signal)!=null&&z.aborted&&!T)throw T=!0,b.signal.reason;return u?{done:!0,value:void 0}:{done:!1,value:k}},return:async()=>u?{done:!0,value:void 0}:(F.length>0&&(g=w(),await g),e.clearInterval(X),u=!0,b.signal&&(b.signal.removeEventListener("abort",W),e.abortListenerMap.delete(W)),{done:!0,value:void 0})}}})))}return e}return{timers:L,createClock:nt,install:Lt,withGlobal:m}}const f=m(s);return se.timers=f.timers,se.createClock=f.createClock,se.install=f.install,se.withGlobal=m,se}var Kr=Jr();class Vr{constructor({global:r,config:c}){te(this,"_global");te(this,"_clock");te(this,"_fakingTime");te(this,"_fakingDate");te(this,"_fakeTimers");te(this,"_userConfig");te(this,"_now",fr.now);this._userConfig=c,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=Kr.withGlobal(r),this._global=r}clearAllTimers(){this._fakingTime&&this._clock.reset()}dispose(){this.useRealTimers()}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll()}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync()}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast()}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync()}advanceTimersToNextTimer(r=1){if(this._checkFakeTimers())for(let c=r;c>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);c--);}async advanceTimersToNextTimerAsync(r=1){if(this._checkFakeTimers())for(let c=r;c>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);c--);}advanceTimersByTime(r){this._checkFakeTimers()&&this._clock.tick(r)}async advanceTimersByTimeAsync(r){this._checkFakeTimers()&&await this._clock.tickAsync(r)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&(lr(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){var r,c,m;if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){const f=Object.keys(this._fakeTimers.timers).filter(t=>t!=="nextTick"&&t!=="queueMicrotask");if((c=(r=this._userConfig)==null?void 0:r.toFake)!=null&&c.includes("nextTick")&&Ft())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:((m=this._userConfig)==null?void 0:m.toFake)||f,ignoreMissingTimers:!0}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:r}=this._clock;this._clock.reset(),this._clock.setSystemTime(r)}}setSystemTime(r){const c=typeof r>"u"||r instanceof Date?r:new Date(r);this._fakingTime?this._clock.setSystemTime(c):(this._fakingDate=c??new Date(this.getRealSystemTime()),mr(this._fakingDate))}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(r){this._userConfig=r}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}}function jt(s,r){return r.stack!==void 0&&(s.stack=r.stack.replace(r.message,s.message)),s}function zr(s,r={}){const{setTimeout:c,setInterval:m,clearTimeout:f,clearInterval:t}=Ze(),{interval:p=50,timeout:l=1e3}=typeof r=="number"?{timeout:r}:r,o=new Error("STACK_TRACE_ERROR");return new Promise((h,d)=>{let I,A="idle",O,j;const G=C=>{O&&f(O),j&&t(j),h(C)},x=()=>{j&&t(j);let C=I;C||(C=jt(new Error("Timed out in waitFor!"),o)),d(C)},M=()=>{if(ke.isFakeTimers()&&ke.advanceTimersByTime(p),A!=="pending")try{const C=s();if(C!==null&&typeof C=="object"&&typeof C.then=="function"){const N=C;A="pending",N.then(J=>{A="resolved",G(J)},J=>{A="rejected",I=J})}else return G(C),!0}catch(C){I=C}};M()!==!0&&(O=c(x,l),j=m(M,p))})}function Qr(s,r={}){const{setTimeout:c,setInterval:m,clearTimeout:f,clearInterval:t}=Ze(),{interval:p=50,timeout:l=1e3}=typeof r=="number"?{timeout:r}:r,o=new Error("STACK_TRACE_ERROR");return new Promise((h,d)=>{let I="idle",A,O;const j=M=>{O&&t(O),M||(M=jt(new Error("Timed out in waitUntil!"),o)),d(M)},G=M=>{if(M)return A&&f(A),O&&t(O),h(M),!0},x=()=>{if(ke.isFakeTimers()&&ke.advanceTimersByTime(p),I!=="pending")try{const M=s();if(M!==null&&typeof M=="object"&&typeof M.then=="function"){const C=M;I="pending",C.then(N=>{I="resolved",G(N)},N=>{I="rejected",j(N)})}else return G(M)}catch(M){j(M)}};x()!==!0&&(A=c(j,l),O=m(x,p))})}function Xr(){let s=null;const r=et();let c;const m=()=>c||(c=new Vr({global:globalThis,config:r.config.fakeTimers})),f=new Map,t=new Map,p=["PROD","DEV","SSR"],l={useFakeTimers(o){var h,d,I,A;if(Ft()&&((h=o==null?void 0:o.toFake)!=null&&h.includes("nextTick")||(A=(I=(d=r.config)==null?void 0:d.fakeTimers)==null?void 0:I.toFake)!=null&&A.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return o?m().configure({...r.config.fakeTimers,...o}):m().configure(r.config.fakeTimers),m().useFakeTimers(),l},isFakeTimers(){return m().isFakeTimers()},useRealTimers(){return m().useRealTimers(),l},runOnlyPendingTimers(){return m().runOnlyPendingTimers(),l},async runOnlyPendingTimersAsync(){return await m().runOnlyPendingTimersAsync(),l},runAllTimers(){return m().runAllTimers(),l},async runAllTimersAsync(){return await m().runAllTimersAsync(),l},runAllTicks(){return m().runAllTicks(),l},advanceTimersByTime(o){return m().advanceTimersByTime(o),l},async advanceTimersByTimeAsync(o){return await m().advanceTimersByTimeAsync(o),l},advanceTimersToNextTimer(){return m().advanceTimersToNextTimer(),l},async advanceTimersToNextTimerAsync(){return await m().advanceTimersToNextTimerAsync(),l},advanceTimersToNextFrame(){return m().advanceTimersToNextFrame(),l},getTimerCount(){return m().getTimerCount()},setSystemTime(o){return m().setSystemTime(o),l},getMockedSystemTime(){return m().getMockedSystemTime()},getRealSystemTime(){return m().getRealSystemTime()},clearAllTimers(){return m().clearAllTimers(),l},spyOn:cr,fn:ar,waitFor:zr,waitUntil:Qr,hoisted(o){return dr(o,'"vi.hoisted" factory',["function"]),o()},mock(o,h){if(typeof o!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof o}`);const d=ae("mock");H().queueMock(o,d,typeof h=="function"?()=>h(()=>H().importActual(o,d,H().getMockContext().callstack)):h)},unmock(o){if(typeof o!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof o}`);H().queueUnmock(o,ae("unmock"))},doMock(o,h){if(typeof o!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof o}`);const d=ae("doMock");H().queueMock(o,d,typeof h=="function"?()=>h(()=>H().importActual(o,d,H().getMockContext().callstack)):h)},doUnmock(o){if(typeof o!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof o}`);H().queueUnmock(o,ae("doUnmock"))},async importActual(o){return H().importActual(o,ae("importActual"),H().getMockContext().callstack)},async importMock(o){return H().importMock(o,ae("importMock"))},mockObject(o){return H().mockObject({value:o}).value},mocked(o,h={}){return o},isMockFunction(o){return ur(o)},clearAllMocks(){return[...Ce].reverse().forEach(o=>o.mockClear()),l},resetAllMocks(){return[...Ce].reverse().forEach(o=>o.mockReset()),l},restoreAllMocks(){return[...Ce].reverse().forEach(o=>o.mockRestore()),l},stubGlobal(o,h){return f.has(o)||f.set(o,Object.getOwnPropertyDescriptor(globalThis,o)),Object.defineProperty(globalThis,o,{value:h,writable:!0,configurable:!0,enumerable:!0}),l},stubEnv(o,h){return t.has(o)||t.set(o,oe[o]),p.includes(o)?oe[o]=h?"1":"":h===void 0?delete oe[o]:oe[o]=String(h),l},unstubAllGlobals(){return f.forEach((o,h)=>{o?Object.defineProperty(globalThis,h,o):Reflect.deleteProperty(globalThis,h)}),f.clear(),l},unstubAllEnvs(){return t.forEach((o,h)=>{o===void 0?delete oe[h]:oe[h]=o}),t.clear(),l},resetModules(){return nr(r.moduleCache),l},async dynamicImportSettled(){return rr()},setConfig(o){s||(s={...r.config}),Object.assign(r.config,o)},resetConfig(){s&&Object.assign(r.config,s)}};return l}const Yr=Xr(),ke=Yr;function H(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(s,r){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(r)}() is forbidden.`)}})}function ae(s){const c=pr({stackTraceLimit:5}).split(`
12
+ `),m=c.findIndex(t=>t.includes(` at Object.${s}`)||t.includes(`${s}@`)),f=Yt(c[m+1]);return(f==null?void 0:f.file)||""}export{Sr as a,Yr as b,Ar as c,de as g,ke as v};
@@ -1 +1 @@
1
- const a='.gator-avatar{display:inline-flex;border-radius:50%;background-color:var(--ngc-avatar-background-color, #C3CDD6);justify-content:center;font-family:var(--text-family-body, "Open Sans", sans-serif);font-weight:700;color:var(--ngc-avatar-color, #1F1F1F)}.gator-avatar-content{display:flex;align-items:center}.gator-avatar-image{background-size:cover;background-position:center;overflow:hidden;border-radius:50%}';export{a as default};
1
+ const a='.gator-avatar{display:inline-flex;border-radius:50%;background-color:var(--ngc-avatar-background-color, #C3CDD6);justify-content:center;font-family:var(--text-family-body, "Open Sans", sans-serif);font-weight:700;color:var(--ngc-avatar-color, #1F1F1F)}.gator-avatar-content{display:flex;align-items:center}.gator-avatar-image{background-size:cover;background-position:center;overflow:hidden;border-radius:50%}.gator-avatar-interactive:hover{cursor:pointer;box-shadow:var(--shadow-x-offset-0, 0px) var(--shadow-shadow-1-card-property-1-y-offset, 1px) var(--shadow-shadow-1-card-property-1-blur, 1.5px) var(--shadow-shadow-1-card-property-1-spread, 0px) var(--shadow-color-4, rgba(31, 31, 31, .04)),var(--shadow-x-offset-0, 0px) var(--shadow-shadow-1-card-property-2-y-offset, 2px) var(--shadow-shadow-1-card-property-2-blur, 5px) var(--shadow-shadow-1-card-property-2-spread, 0px) var(--shadow-color-10, rgba(31, 31, 31, .1)),var(--shadow-x-offset-0, 0px) var(--shadow-shadow-1-card-property-3-y-offset, 3px) var(--shadow-shadow-1-card-property-3-blur, 9px) var(--shadow-shadow-1-card-property-3-spread, 6px) var(--shadow-color-5, rgba(31, 31, 31, .05))}.gator-avatar-interactive:focus-visible{outline:2px solid var(--color-stroke-brand, #11395B)}.gator-avatar-interactive:active{outline:1px solid var(--color-stroke-secondary, #BFBFBF)}';export{a as default};
@@ -1,18 +1,35 @@
1
1
  import { LitElement } from 'lit';
2
+ export type NJC_AVATAR_SIZE = 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
2
3
  export declare class NjcAvatar extends LitElement {
3
4
  /**
4
- * @property {string} size - Size in px of the avatar
5
- * @type {number}
5
+ * @property {string} size - Predefined size of the avatar
6
+ * @type {NJC_AVATAR_SIZE}
6
7
  */
7
- size: number;
8
+ size: NJC_AVATAR_SIZE;
8
9
  /**
9
10
  * @property {string} src - URL of the image to display
10
11
  * @type {string}
11
12
  */
12
13
  src: string;
13
14
  /**
14
- * @property {string} srcAriaLabel - Aria label for the image
15
+ * @property {string} srcAriaLabel - DEPRECATED: aria-label for the avatar image
15
16
  * @type {string}
17
+ * @deprecated Use `avatar-aria-label` instead
16
18
  */
17
19
  srcAriaLabel: string;
20
+ /**
21
+ * @property {string} avatarAriaLabel - Aria-label for the avatar
22
+ * @type {string}
23
+ */
24
+ avatarAriaLabel: string;
25
+ /**
26
+ * @property {boolean} interactive - If true, the avatar will be interactive
27
+ * @type {boolean}
28
+ */
29
+ interactive: boolean;
30
+ /**
31
+ * @property {boolean} skeleton - If true, the avatar will display a skeleton loader
32
+ * @type {boolean}
33
+ */
34
+ skeleton: boolean;
18
35
  }
@@ -1,13 +1,16 @@
1
1
  import { NjcAvatar } from '../avatar.ts';
2
2
  import { Ref } from 'lit/directives/ref.js';
3
3
  /**
4
- * @slot - The content within the button
4
+ * @slot - The content within the avatar, typically initials or an icon.
5
5
  */
6
6
  export declare class NgcAvatar extends NjcAvatar {
7
7
  static styles: import('lit').CSSResult[];
8
8
  _avatarRef: Ref<HTMLDivElement>;
9
+ protected _size: number;
9
10
  render(): import('lit').TemplateResult<1>;
10
11
  updated(): void;
12
+ applySizeToSlottedIcon(): void;
13
+ get pixelSize(): number;
11
14
  }
12
15
  declare global {
13
16
  interface HTMLElementTagNameMap {
@@ -1 +1 @@
1
- import{page as n}from"../node_modules/.pnpm/@vitest_browser@3.1.4_msw@2.7.3_@types_node@22.15.29_typescript@5.8.3__playwright@1.52._65062dc9a55a6735cb61161760810601/node_modules/@vitest/browser/context.js";import a from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.1.4_@vitest_ui@_d0ae304dca34f8d8a069ed58c3715569/node_modules/vitest/dist/chunks/vi.ClIskdbk.js";const p="Supercalifragilisticexpialidocious".repeat(10);async function u(e){return(await a.run(e)).violations}async function x(e){const t=await u(e);o(t,`Expected no axe core violations, but got ${t.length}`).toHaveLength(0)}function h(){return n.viewport(320,256)}function g(e){let t;if(e.scrollWidth!==0?t=e:e.shadowRoot?t=e.shadowRoot.firstElementChild:t=e.firstElementChild,t){const r=t.scrollWidth>t.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function w(e,t,r){var l;let i=e.querySelector(":focus-visible");if(i||(i=(l=e.shadowRoot)==null?void 0:l.querySelector(":focus-visible")),i){const s=getComputedStyle(i).getPropertyValue(t);return o(s).toContain(r)}return o(!0).toBe(!1)}export{w as expectComponentFocusStyle,g as expectComponentNotToHaveHorizontalScrollbar,x as expectNoAxeViolations,h as resizeWindowForReflowTest,u as runAxeAndGetViolations,p as superLongStringForReflowTest};
1
+ import{page as n}from"../node_modules/.pnpm/@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";import a from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/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";const p="Supercalifragilisticexpialidocious".repeat(10);async function u(e){return(await a.run(e)).violations}async function x(e){const t=await u(e);o(t,`Expected no axe core violations, but got ${t.length}`).toHaveLength(0)}function h(){return n.viewport(320,256)}function g(e){let t;if(e.scrollWidth!==0?t=e:e.shadowRoot?t=e.shadowRoot.firstElementChild:t=e.firstElementChild,t){const r=t.scrollWidth>t.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function w(e,t,r){var l;let i=e.querySelector(":focus-visible");if(i||(i=(l=e.shadowRoot)==null?void 0:l.querySelector(":focus-visible")),i){const s=getComputedStyle(i).getPropertyValue(t);return o(s).toContain(r)}return o(!0).toBe(!1)}export{w as expectComponentFocusStyle,g as expectComponentNotToHaveHorizontalScrollbar,x as expectNoAxeViolations,h as resizeWindowForReflowTest,u as runAxeAndGetViolations,p as superLongStringForReflowTest};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "4.0.1-preview.1",
4
+ "version": "4.1.0",
5
5
  "license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"
@@ -15,7 +15,7 @@
15
15
  "module": "dist/index.js",
16
16
  "engineStrict": false,
17
17
  "private": false,
18
- "packageManager": "pnpm@10.11.0",
18
+ "packageManager": "pnpm@10.11.1",
19
19
  "exports": {
20
20
  ".": {
21
21
  "import": "./dist/index.js",
@@ -67,8 +67,8 @@
67
67
  "test:coverage:headless": "vitest --coverage.enabled true --browser.headless"
68
68
  },
69
69
  "dependencies": {
70
- "@deltablot/dropzone": "^7.3.0",
71
- "@floating-ui/dom": "^1.7.0",
70
+ "@deltablot/dropzone": "^7.3.1",
71
+ "@floating-ui/dom": "^1.7.1",
72
72
  "@lit/localize": "^0.12.2",
73
73
  "ckeditor5": "^45.1.0",
74
74
  "libphonenumber-js": "^1.12.8",
@@ -79,55 +79,55 @@
79
79
  "@actions/exec": "^1.1.1",
80
80
  "@custom-elements-manifest/analyzer": "0.10.4",
81
81
  "@geometricpanda/storybook-addon-badges": "^2.0.5",
82
- "@figma/code-connect": "1.3.2",
82
+ "@figma/code-connect": "1.3.3",
83
83
  "@lit/localize-tools": "^0.8.0",
84
84
  "@salesforce-ux/design-system": "^2.27.1",
85
- "@storybook/addon-a11y": "^8.6.12",
86
- "@storybook/addon-actions": "^8.6.12",
85
+ "@storybook/addon-a11y": "^8.6.14",
86
+ "@storybook/addon-actions": "^8.6.14",
87
87
  "@storybook/addon-designs": "^8.2.1",
88
- "@storybook/addon-docs": "^8.6.12",
89
- "@storybook/addon-essentials": "^8.6.12",
90
- "@storybook/addon-interactions": "^8.6.12",
91
- "@storybook/addon-links": "^8.6.12",
92
- "@storybook/blocks": "^8.6.12",
93
- "@storybook/manager-api": "^8.6.12",
94
- "@storybook/preview-api": "^8.6.12",
95
- "@storybook/test": "^8.6.12",
96
- "@storybook/web-components": "^8.6.12",
97
- "@storybook/web-components-vite": "^8.6.12",
98
- "@types/react": "^19.1.4",
88
+ "@storybook/addon-docs": "^8.6.14",
89
+ "@storybook/addon-essentials": "^8.6.14",
90
+ "@storybook/addon-interactions": "^8.6.14",
91
+ "@storybook/addon-links": "^8.6.14",
92
+ "@storybook/blocks": "^8.6.14",
93
+ "@storybook/manager-api": "^8.6.14",
94
+ "@storybook/preview-api": "^8.6.14",
95
+ "@storybook/test": "^8.6.14",
96
+ "@storybook/web-components": "^8.6.14",
97
+ "@storybook/web-components-vite": "^8.6.14",
98
+ "@types/react": "^19.1.6",
99
99
  "@typescript-eslint/parser": "^8.33.0",
100
- "@vitest/browser": "^3.1.3",
101
- "@vitest/coverage-v8": "^3.1.3",
102
- "@vitest/ui": "3.1.3",
100
+ "@vitest/browser": "^3.2.0",
101
+ "@vitest/coverage-v8": "^3.2.0",
102
+ "@vitest/ui": "3.2.0",
103
103
  "axe-core": "^4.10.3",
104
104
  "cem-plugin-expanded-types": "^1.4.0",
105
105
  "chromatic": "^12.0.0",
106
106
  "conventional-changelog-conventionalcommits": "^9.0.0",
107
107
  "custom-element-jet-brains-integration": "^1.7.0",
108
108
  "custom-elements-manifest": "^2.1.0",
109
- "eslint": "^9.26.0",
109
+ "eslint": "^9.28.0",
110
110
  "eslint-config-standard": "^17.1.0",
111
111
  "eslint-plugin-import": "^2.31.0",
112
112
  "eslint-plugin-json": "^4.0.1",
113
- "eslint-plugin-n": "^17.18.0",
113
+ "eslint-plugin-n": "^17.19.0",
114
114
  "eslint-plugin-promise": "^7.2.1",
115
115
  "eslint-plugin-storybook": "^0.12.0",
116
116
  "eslint-plugin-yml": "1.18.0",
117
117
  "glob": "^11.0.2",
118
118
  "jsdom": "26.1.0",
119
119
  "playwright": "1.52.0",
120
- "postcss": "^8.5.3",
120
+ "postcss": "^8.5.4",
121
121
  "rimraf": "^6.0.1",
122
- "sass": "1.89.0",
123
- "storybook": "^8.6.12",
122
+ "sass": "1.89.1",
123
+ "storybook": "^8.6.14",
124
124
  "storybook-dark-mode": "^4.0.2",
125
125
  "storybook-design-token": "^3.2.0",
126
126
  "typescript": "^5.8.3",
127
127
  "vite": "6.3.5",
128
- "vite-plugin-dts": "4.5.3",
128
+ "vite-plugin-dts": "4.5.4",
129
129
  "vite-plugin-static-copy": "^3.0.0",
130
- "vitest": "^3.1.3",
130
+ "vitest": "^3.2.0",
131
131
  "wc-storybook-helpers": "2.0.4",
132
132
  "yaml-eslint-parser": "^1.3.0"
133
133
  },