@ncino/web-components 5.0.0-preview.1 → 5.0.0-preview.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/index_html.js +1 -1
- package/dist/_virtual/index_react.js +1 -1
- package/dist/_virtual/preload-helper.js +1 -1
- package/dist/assets/node_modules/.pnpm/ckeditor5@45.2.1/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
- package/dist/components/accordion/gator/base/accordion.gator.js +6 -6
- package/dist/components/avatar/gator/avatar.gator.js +2 -2
- package/dist/components/badge/gator/badge.gator.js +2 -2
- package/dist/components/boolean/boolean.gator.js +6 -6
- package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +2 -2
- package/dist/components/button/gator/button.gator.js +4 -4
- package/dist/components/button-group/gator/button-group.gator.js +2 -2
- package/dist/components/checkbox/checkbox.gator.js +5 -5
- package/dist/components/checkbox-group/checkbox-group.gator.js +8 -8
- package/dist/components/combobox/base/combobox.js +1 -1
- package/dist/components/combobox/base/combobox.slds.js +13 -13
- package/dist/components/date-picker/base/gator/datepicker.gator.js +18 -18
- package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
- package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
- package/dist/components/icon/gator/icon.gator.js +2 -2
- package/dist/components/illustration/gator/illustration.gator.js +2 -2
- package/dist/components/input/base/input-base.gator.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +11 -11
- package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
- package/dist/components/input/gator/input-date/input-date.gator.js +15 -15
- package/dist/components/input/gator/input-file/input-file.gator.js +3 -3
- package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
- package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
- package/dist/components/input/gator/input-search/input-search.gator.js +2 -2
- package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +2 -2
- package/dist/components/list/gator/list/list.gator.js +2 -2
- package/dist/components/list/gator/list-item/list-item.gator.js +6 -6
- package/dist/components/menu/base/gator/menu.gator.js +3 -3
- package/dist/components/menu/base/slds/menu.slds.js +2 -2
- package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
- package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
- package/dist/components/modal/gator/modal.gator.js +38 -39
- package/dist/components/page-header/gator/page-header.gator.js +2 -2
- package/dist/components/panel/gator/panel.gator.js +13 -13
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/pill/pill.slds.js +3 -3
- package/dist/components/popover/gator/popover.gator.js +10 -10
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.gator.js +2 -2
- package/dist/components/radio-group/radio-group.gator.js +2 -2
- package/dist/components/selection-box-group/selection-box-group.gator.js +5 -5
- package/dist/components/selector/gator/selector.gator.js +2 -2
- package/dist/components/switch/gator/switch.gator.js +2 -2
- package/dist/components/tabs/gator/tabset/tabset.gator.js +3 -3
- package/dist/components/text-detail/gator/text-detail.gator.js +17 -18
- package/dist/components/time-picker/gator/time-picker.gator.js +19 -19
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.2.1/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.2.1/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.2.1/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.2.1/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.2.1/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +12 -12
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.2.1/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@45.2.1/node_modules/@ckeditor/ckeditor5-font/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.2.1/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.2.1/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.2.1/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +6 -6
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.2.1/node_modules/@ckeditor/ckeditor5-image/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.2.1/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@45.2.1/node_modules/@ckeditor/ckeditor5-link/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@45.2.1/node_modules/@ckeditor/ckeditor5-list/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.2.1/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.2.1/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.2.1/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +9 -9
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.2.1/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-style@45.2.1/node_modules/@ckeditor/ckeditor5-style/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.2.1/node_modules/@ckeditor/ckeditor5-table/dist/index.js +6 -6
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.2.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.2.1/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +38 -38
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@45.2.1/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.1/node_modules/@deltablot/dropzone/dist/dropzone.js +1 -1
- package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/common/fetch.js +1 -0
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +1 -0
- package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/package.json.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +2 -2
- package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/channels/index.js +9 -9
- package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/csf/index.js +1 -1
- package/dist/node_modules/.pnpm/@storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/core/dist/preview-api/index.js +22 -22
- package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/instrumenter/dist/index.js +36 -36
- package/dist/node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js +111 -111
- package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +8 -8
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -5
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +11 -11
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +21 -21
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -2
- package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +4 -4
- package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +3 -3
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -1
- package/dist/node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/async-directive.js +1 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +3 -3
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js +2 -2
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js +1 -1
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +8 -8
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
- package/dist/packages/web-components/src/index.slds.scss.js +1 -1
- package/dist/types/components/modal/gator/modal.gator.d.ts +1 -1
- package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +4 -2
- package/dist/utils/accessibility-utils.js +1 -1
- package/dist/utils/datatestid-utils.js +1 -1
- package/dist/utils/lightdom-utils.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/dist/utils/vitest-utils.js +1 -1
- package/package.json +10 -10
- package/web-types.json +2 -3
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/fetch.js +0 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.1_5fd2997ee9a97429a51e07bc2023c338/node_modules/@vitest/browser/context.js +0 -1
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/index_html.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/index_react.js +0 -0
package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{__require as R}from"../fetch/webidl.js";import{__require as A}from"../fetch/constants.js";import{__require as F}from"../fetch/dataURL.js";import{__require as $}from"../fetch/global.js";import{__require as j}from"./constants.js";import{__require as _}from"./symbols.js";import{__require as Y}from"./util.js";import{__require as z}from"./connection.js";import{__require as H}from"./frame.js";import{__require as W}from"./receiver.js";import{__require as X}from"../core/util.js";import{__require as J}from"../global.js";import{__require as K}from"../../../../../util@0.12.5/node_modules/util/util.js";var y,E;function he(){if(E)return y;E=1;const{webidl:r}=R(),{DOMException:u}=A(),{URLSerializer:N}=F(),{getGlobalOrigin:k}=$(),{staticPropertyDescriptors:l,states:m,opcodes:b,emptyBuffer:q}=j(),{kWebSocketURL:C,kReadyState:h,kController:D,kBinaryType:p,kResponse:d,kSentClose:I,kByteParser:B}=_(),{isEstablished:v,isClosing:S,isValidSubprotocol:G,failWebsocketConnection:x,fireEvent:T}=Y(),{establishWebSocketConnection:U}=z(),{WebsocketFrameSend:g}=H(),{ByteParser:M}=W(),{kEnumerableProperty:c,isBlobLike:w}=X(),{getGlobalDispatcher:P}=J(),{types:O}=K();let L=!1;class t extends EventTarget{#e={open:null,error:null,close:null,message:null};#r=0;#t="";#n="";constructor(e,n=[]){super(),r.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),L||(L=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));const s=r.converters["DOMString or sequence<DOMString> or WebSocketInit"](n);e=r.converters.USVString(e),n=s.protocols;const a=k();let i;try{i=new URL(e,a)}catch(f){throw new u(f,"SyntaxError")}if(i.protocol==="http:"?i.protocol="ws:":i.protocol==="https:"&&(i.protocol="wss:"),i.protocol!=="ws:"&&i.protocol!=="wss:")throw new u(`Expected a ws: or wss: protocol, got ${i.protocol}`,"SyntaxError");if(i.hash||i.href.endsWith("#"))throw new u("Got fragment","SyntaxError");if(typeof n=="string"&&(n=[n]),n.length!==new Set(n.map(f=>f.toLowerCase())).size)throw new u("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(n.length>0&&!n.every(f=>G(f)))throw new u("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[C]=new URL(i.href),this[D]=U(i,n,this,f=>this.#s(f),s),this[h]=t.CONNECTING,this[p]="blob"}close(e=void 0,n=void 0){if(r.brandCheck(this,t),e!==void 0&&(e=r.converters["unsigned short"](e,{clamp:!0})),n!==void 0&&(n=r.converters.USVString(n)),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new u("invalid code","InvalidAccessError");let s=0;if(n!==void 0&&(s=Buffer.byteLength(n),s>123))throw new u(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");if(!(this[h]===t.CLOSING||this[h]===t.CLOSED))if(!v(this))x(this,"Connection was closed before it was established."),this[h]=t.CLOSING;else if(S(this))this[h]=t.CLOSING;else{const a=new g;e!==void 0&&n===void 0?(a.frameData=Buffer.allocUnsafe(2),a.frameData.writeUInt16BE(e,0)):e!==void 0&&n!==void 0?(a.frameData=Buffer.allocUnsafe(2+s),a.frameData.writeUInt16BE(e,0),a.frameData.write(n,2,"utf-8")):a.frameData=q,this[d].socket.write(a.createFrame(b.CLOSE),f=>{f||(this[I]=!0)}),this[h]=m.CLOSING}}send(e){if(r.brandCheck(this,t),r.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),e=r.converters.WebSocketSendData(e),this[h]===t.CONNECTING)throw new u("Sent before connected.","InvalidStateError");if(!v(this)||S(this))return;const n=this[d].socket;if(typeof e=="string"){const s=Buffer.from(e),i=new g(s).createFrame(b.TEXT);this.#r+=s.byteLength,n.write(i,()=>{this.#r-=s.byteLength})}else if(O.isArrayBuffer(e)){const s=Buffer.from(e),i=new g(s).createFrame(b.BINARY);this.#r+=s.byteLength,n.write(i,()=>{this.#r-=s.byteLength})}else if(ArrayBuffer.isView(e)){const s=Buffer.from(e,e.byteOffset,e.byteLength),i=new g(s).createFrame(b.BINARY);this.#r+=s.byteLength,n.write(i,()=>{this.#r-=s.byteLength})}else if(w(e)){const s=new g;e.arrayBuffer().then(a=>{const i=Buffer.from(a);s.frameData=i;const f=s.createFrame(b.BINARY);this.#r+=i.byteLength,n.write(f,()=>{this.#r-=i.byteLength})})}}get readyState(){return r.brandCheck(this,t),this[h]}get bufferedAmount(){return r.brandCheck(this,t),this.#r}get url(){return r.brandCheck(this,t),N(this[C])}get extensions(){return r.brandCheck(this,t),this.#n}get protocol(){return r.brandCheck(this,t),this.#t}get onopen(){return r.brandCheck(this,t),this.#e.open}set onopen(e){r.brandCheck(this,t),this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onerror(){return r.brandCheck(this,t),this.#e.error}set onerror(e){r.brandCheck(this,t),this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}get onclose(){return r.brandCheck(this,t),this.#e.close}set onclose(e){r.brandCheck(this,t),this.#e.close&&this.removeEventListener("close",this.#e.close),typeof e=="function"?(this.#e.close=e,this.addEventListener("close",e)):this.#e.close=null}get onmessage(){return r.brandCheck(this,t),this.#e.message}set onmessage(e){r.brandCheck(this,t),this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get binaryType(){return r.brandCheck(this,t),this[p]}set binaryType(e){r.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[p]="blob":this[p]=e}#s(e){this[d]=e;const n=new M(this);n.on("drain",function(){this.ws[d].socket.resume()}),e.socket.ws=this,this[B]=n,this[h]=m.OPEN;const s=e.headersList.get("sec-websocket-extensions");s!==null&&(this.#n=s);const a=e.headersList.get("sec-websocket-protocol");a!==null&&(this.#t=a),T("open",this)}}return t.CONNECTING=t.prototype.CONNECTING=m.CONNECTING,t.OPEN=t.prototype.OPEN=m.OPEN,t.CLOSING=t.prototype.CLOSING=m.CLOSING,t.CLOSED=t.prototype.CLOSED=m.CLOSED,Object.defineProperties(t.prototype,{CONNECTING:l,OPEN:l,CLOSING:l,CLOSED:l,url:c,readyState:c,bufferedAmount:c,onopen:c,onerror:c,onclose:c,close:c,onmessage:c,binaryType:c,send:c,extensions:c,protocol:c,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(t,{CONNECTING:l,OPEN:l,CLOSING:l,CLOSED:l}),r.converters["sequence<DOMString>"]=r.sequenceConverter(r.converters.DOMString),r.converters["DOMString or sequence<DOMString>"]=function(o){return r.util.Type(o)==="Object"&&Symbol.iterator in o?r.converters["sequence<DOMString>"](o):r.converters.DOMString(o)},r.converters.WebSocketInit=r.dictionaryConverter([{key:"protocols",converter:r.converters["DOMString or sequence<DOMString>"],get defaultValue(){return[]}},{key:"dispatcher",converter:o=>o,get defaultValue(){return P()}},{key:"headers",converter:r.nullableConverter(r.converters.HeadersInit)}]),r.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(o){return r.util.Type(o)==="Object"&&!(Symbol.iterator in o)?r.converters.WebSocketInit(o):{protocols:r.converters["DOMString or sequence<DOMString>"](o)}},r.converters.WebSocketSendData=function(o){if(r.util.Type(o)==="Object"){if(w(o))return r.converters.Blob(o,{strict:!1});if(ArrayBuffer.isView(o)||O.isAnyArrayBuffer(o))return r.converters.BufferSource(o)}return r.converters.USVString(o)},y={WebSocket:t},y}export{he as __require};
|
|
@@ -5,4 +5,4 @@ One of the following is possible:
|
|
|
5
5
|
- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
|
|
6
6
|
- "vitest" is imported inside Vite / Vitest config file
|
|
7
7
|
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
|
|
8
|
-
`;throw new Error(e)}return t}function d(){
|
|
8
|
+
`;throw new Error(e)}return t}function d(){return o()?.environment.name}function m(){return typeof process<"u"&&!!process.send}function v(t,e=!1){const s=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...e?[]:[/^mock:/]];t.forEach((i,n)=>{s.some(r=>r.test(n))||t.invalidateModule(i)})}function c(){const{setTimeout:t}=a();return new Promise(e=>t(e,0))}async function l(){await c();const t=o(),e=[];let s=0;for(const i of t.moduleCache.values())i.promise&&!i.evaluated&&e.push(i.promise),i.resolving&&s++;!e.length&&!s||(await Promise.allSettled(e),await l())}export{d as a,o as g,m as i,v as r,l as w};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import{ASYMMETRIC_MATCHERS_OBJECT as Lt,getState as Se,setState as Me,addCustomEqualityTesters as $t,customMatchers as Bt,GLOBAL_EXPECT as Ot,JestExtend as Ht,JestChaiExpect as Gt,JestAsymmetricMatchers as Wt,equals as Ut,iterableEquality as Jt,subsetEquality as Kt}from"../../../../../@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js";import{E as Vt}from"../../../../../@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js";import{getSafeTimers as Xe}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js";import{parseSingleStack as zt}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js";import{expect as Pe,assert as Qt,util as Q,Assertion as Xt,use as pe}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{a as Yt,g as Ye,w as Zt,r as er,i as xt}from"./utils.XdZDrNZV.js";import{g as tr,c as Qe}from"./_commonjsHelpers.BFTU3MAI.js";import{stripSnapshotIndentation as it,addSerializer as rr,SnapshotClient as nr}from"../../../../../@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js";import{fn as ir,spyOn as or,mocks as Oe,isMockFunction as sr}from"../../../../../@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js";import{R as ar,r as cr,m as ur}from"./date.Bq6ZW5rf.js";import{assertTypes as fr,createSimpleStackTrace as lr}from"../../../../../@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js";var ie={};const mr=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function dr(s){return function(u,m={}){const t=Ye().config.expect?.poll??{},{interval:p=t.interval??50,timeout:f=t.timeout??1e3,message:o}=m,T=s(null,o).withContext({poll:!0});u=u.bind(T);const d=Q.flag(T,"vitest-test");if(!d)throw new Error("expect.poll() must be called inside a test");const E=new Proxy(T,{get(P,O,q){const N=Reflect.get(P,O,q);if(typeof N!="function")return N instanceof Xt?E:N;if(O==="assert")return N;if(typeof O=="string"&&mr.includes(O))throw new SyntaxError(`expect.poll() is not supported in combination with .${O}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...j){const A=new Error("STACK_TRACE_ERROR"),x=()=>new Promise((_,J)=>{let S,K,Z;const{setTimeout:F,clearTimeout:ce}=Xe(),ee=async()=>{try{Q.flag(T,"_name",O);const X=await u();Q.flag(T,"object",X),_(await N.call(T,...j)),ce(S),ce(K)}catch(X){Z=X,Q.flag(T,"_isLastPollAttempt")||(S=F(ee,p))}};K=F(()=>{ce(S),Q.flag(T,"_isLastPollAttempt",!0);const X=ue=>{J(ot(new Error("Matcher did not succeed in time.",{cause:ue}),A))};ee().then(()=>X(Z)).catch(ue=>X(ue))},f),ee()});let D=!1;d.onFinished??=[],d.onFinished.push(()=>{if(!D){const _=Q.flag(T,"negate")?"not.":"",S=`expect.${Q.flag(T,"_poll.element")?"element(locator)":"poll(assertion)"}.${_}${String(O)}()`,K=new Error(`${S} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
|
|
2
2
|
|
|
3
|
-
await ${
|
|
4
|
-
`);throw
|
|
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
|
-
`).some(function(k,b){return k.match(
|
|
3
|
+
await ${S}
|
|
4
|
+
`);throw ot(K,A)}});let H;return{then(_,J){return D=!0,(H||=x()).then(_,J)},catch(_){return(H||=x()).catch(_)},finally(_){return(H||=x()).finally(_)},[Symbol.toStringTag]:"Promise"}}}});return E}}function ot(s,n){return n.stack!==void 0&&(s.stack=n.stack.replace(n.message,s.message)),s}function pr(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 ye={exports:{}},hr=ye.exports,st;function yr(){return st||(st=1,function(s,n){(function(){(function(u){return typeof pr=="function"?s.exports=u:chai.use(u)})(function(u,m){var l=u.Assertion,t=l.prototype;l.addMethod("containSubset",function(f){var o=m.flag(this,"object"),T=u.config.showDiff;t.assert.call(this,p(f,o),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",f,o,T)}),u.assert.containSubset=function(f,o,T){new u.Assertion(f,T).to.be.containSubset(o)};function p(f,o){if(f===o)return!0;if(typeof o!=typeof f)return!1;if(typeof f!="object"||f===null)return f===o;if(f&&!o)return!1;if(Array.isArray(f)){if(typeof o.length!="number")return!1;var T=Array.prototype.slice.call(o);return f.every(function(d){return T.some(function(E){return p(d,E)})})}return f instanceof Date?o instanceof Date?f.getTime()===o.getTime():!1:Object.keys(f).every(function(d){var E=f[d],P=o[d];return typeof E=="object"&&E!==null&&P!==null?p(E,P):typeof E=="function"?E(P):P===E})}})}).call(hr)}(ye)),ye.exports}var Tr=yr(),wr=tr(Tr);function vr(s,n,u){const m=s.flag(n,"negate")?"not.":"",l=`${s.flag(n,"_name")}(expected)`,t=s.flag(n,"promise");return`expect(actual)${t?`.${t}`:""}.${m}${l}`}function gr(s,n,u,m){const l=s;if(l&&n instanceof Promise){n=n.finally(()=>{if(!l.promises)return;const p=l.promises.indexOf(n);p!==-1&&l.promises.splice(p,1)}),l.promises||(l.promises=[]),l.promises.push(n);let t=!1;return l.onFinished??=[],l.onFinished.push(()=>{if(!t){const f=(globalThis.__vitest_worker__?.onFilterStackTrace||(o=>o||""))(m.stack);console.warn([`Promise returned by \`${u}\` 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
|
+
`,f].join(""))}}),{then(p,f){return t=!0,n.then(p,f)},catch(p){return n.catch(p)},finally(p){return n.finally(p)},[Symbol.toStringTag]:"Promise"}}return n}let xe;function me(){return xe||(xe=new nr({isEqual:(s,n)=>Ut(s,n,[Jt,Kt])})),xe}function at(s,n){if(typeof s!="function"){if(!n)throw new Error(`expected must be a function, received ${typeof s}`);return s}try{s()}catch(u){return u}throw new Error("snapshot function didn't throw")}function de(s){return{filepath:s.file.filepath,name:Vt(s).slice(1).join(" > "),testId:s.id}}const kr=(s,n)=>{function u(m,l){const t=n.flag(l,"vitest-test");if(!t)throw new Error(`'${m}' cannot be used without test context`);return t}for(const m of["matchSnapshot","toMatchSnapshot"])n.addMethod(s.Assertion.prototype,m,function(l,t){if(n.flag(this,"_name",m),n.flag(this,"negate"))throw new Error(`${m} cannot be used with "not"`);const f=n.flag(this,"object"),o=u(m,this);typeof l=="string"&&typeof t>"u"&&(t=l,l=void 0);const T=n.flag(this,"message");me().assert({received:f,message:t,isInline:!1,properties:l,errorMessage:T,...de(o)})});n.addMethod(s.Assertion.prototype,"toMatchFileSnapshot",function(m,l){if(n.flag(this,"_name","toMatchFileSnapshot"),n.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const p=new Error("resolves"),f=n.flag(this,"object"),o=u("toMatchFileSnapshot",this),T=n.flag(this,"message"),d=me().assertRaw({received:f,message:l,isInline:!1,rawSnapshot:{file:m},errorMessage:T,...de(o)});return gr(o,d,vr(n,this),p)}),n.addMethod(s.Assertion.prototype,"toMatchInlineSnapshot",function(l,t,p){if(n.flag(this,"_name","toMatchInlineSnapshot"),n.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const o=u("toMatchInlineSnapshot",this);if(o.each||o.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const d=n.flag(this,"object"),E=n.flag(this,"error");typeof l=="string"&&(p=t,t=l,l=void 0),t&&(t=it(t));const P=n.flag(this,"message");me().assert({received:d,message:p,isInline:!0,properties:l,inlineSnapshot:t,error:E,errorMessage:P,...de(o)})}),n.addMethod(s.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(m){if(n.flag(this,"_name","toThrowErrorMatchingSnapshot"),n.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const t=n.flag(this,"object"),p=u("toThrowErrorMatchingSnapshot",this),f=n.flag(this,"promise"),o=n.flag(this,"message");me().assert({received:at(t,f),message:m,errorMessage:o,...de(p)})}),n.addMethod(s.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(l,t){if(n.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const f=u("toThrowErrorMatchingInlineSnapshot",this);if(f.each||f.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const T=n.flag(this,"object"),d=n.flag(this,"error"),E=n.flag(this,"promise"),P=n.flag(this,"message");l&&(l=it(l)),me().assert({received:at(T,E),message:t,inlineSnapshot:l,isInline:!0,error:d,errorMessage:P,...de(f)})}),n.addMethod(s.expect,"addSnapshotSerializer",rr)};pe(Ht);pe(Gt);pe(wr);pe(kr);pe(Wt);function br(s){const n=(t,p)=>{const{assertionCalls:f}=Se(n);return Me({assertionCalls:f+1},n),Pe(t,p)};Object.assign(n,Pe),Object.assign(n,globalThis[Lt]),n.getState=()=>Se(n),n.setState=t=>Me(t,n);const u=Se(globalThis[Ot])||{};Me({...u,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:Yt(),get testPath(){return Ye().filepath},currentTestName:u.currentTestName},n),n.extend=t=>Pe.extend(n,t),n.addEqualityTesters=t=>$t(t),n.soft=(...t)=>n(...t).withContext({soft:!0}),n.poll=dr(n),n.unreachable=t=>{Qt.fail(`expected${t?` "${t}" `:" "}not to be reached`)};function m(t){const p=()=>new Error(`expected number of assertions to be ${t}, but got ${n.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(p(),m),n.setState({expectedAssertionsNumber:t,expectedAssertionsNumberErrorGen:p})}function l(){const t=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(t,l),n.setState({isExpectingAssertions:!0,isExpectingAssertionsError:t})}return Q.addMethod(n,"assertions",m),Q.addMethod(n,"hasAssertions",l),n.extend(Bt),n}const Ir=br();Object.defineProperty(globalThis,Ot,{value:Ir,writable:!0,configurable:!0});var oe={},Ce,ct;function Er(){if(ct)return Ce;ct=1;var s;return typeof Qe<"u"?s=Qe:typeof window<"u"?s=window:s=self,Ce=s,Ce}var Fe,ut;function Ar(){if(ut)return Fe;ut=1;let s;try{({}).__proto__,s=!1}catch{s=!0}return Fe=s,Fe}var je,ft;function ae(){if(ft)return je;ft=1;var s=Function.call,n=Ar(),u=["size","caller","callee","arguments"];return n&&u.push("__proto__"),je=function(l){return Object.getOwnPropertyNames(l).reduce(function(t,p){return u.includes(p)||typeof l[p]!="function"||(t[p]=s.bind(l[p])),t},Object.create(null))},je}var Re,lt;function we(){if(lt)return Re;lt=1;var s=ae();return Re=s(Array.prototype),Re}var _e,mt;function Sr(){if(mt)return _e;mt=1;var s=we().every;function n(l,t){return l[t.id]===void 0&&(l[t.id]=0),l[t.id]<t.callCount}function u(l,t,p,f){var o=!0;return p!==f.length-1&&(o=t.calledBefore(f[p+1])),n(l,t)&&o?(l[t.id]+=1,!0):!1}function m(l){var t={},p=arguments.length>1?arguments:l;return s(p,u.bind(null,t))}return _e=m,_e}var qe,dt;function Mr(){if(dt)return qe;dt=1;function s(n){return n.constructor&&n.constructor.name||null}return qe=s,qe}var Ne={},pt;function Pr(){return pt||(pt=1,function(s){s.wrap=function(n,u){var m=function(){return s.printWarning(u),n.apply(this,arguments)};return n.prototype&&(m.prototype=n.prototype),m},s.defaultMsg=function(n,u){return`${n}.${u} is deprecated and will be removed from the public API in a future version of ${n}.`},s.printWarning=function(n){typeof process=="object"&&process.emitWarning?process.emitWarning(n):console.info?console.info(n):console.log(n)}}(Ne)),Ne}var De,ht;function Or(){return ht||(ht=1,De=function(n,u){var m=!0;try{n.forEach(function(){if(!u.apply(this,arguments))throw new Error})}catch{m=!1}return m}),De}var Le,yt;function xr(){return yt||(yt=1,Le=function(n){if(!n)return"";try{return n.displayName||n.name||(String(n).match(/function ([^\s(]+)/)||[])[1]}catch{return""}}),Le}var $e,Tt;function Cr(){if(Tt)return $e;Tt=1;var s=we().sort,n=we().slice;function u(l,t){var p=l.getCall(0),f=t.getCall(0),o=p&&p.callId||-1,T=f&&f.callId||-1;return o<T?-1:1}function m(l){return s(n(l),u)}return $e=m,$e}var Be,wt;function Fr(){if(wt)return Be;wt=1;var s=ae();return Be=s(Function.prototype),Be}var He,vt;function jr(){if(vt)return He;vt=1;var s=ae();return He=s(Map.prototype),He}var Ge,gt;function Rr(){if(gt)return Ge;gt=1;var s=ae();return Ge=s(Object.prototype),Ge}var We,kt;function _r(){if(kt)return We;kt=1;var s=ae();return We=s(Set.prototype),We}var Ue,bt;function qr(){if(bt)return Ue;bt=1;var s=ae();return Ue=s(String.prototype),Ue}var Je,It;function Nr(){return It||(It=1,Je={array:we(),function:Fr(),map:jr(),object:Rr(),set:_r(),string:qr()}),Je}var Te={exports:{}},Dr=Te.exports,Et;function Lr(){return Et||(Et=1,function(s,n){(function(u,m){s.exports=m()})(Dr,function(){var u=typeof Promise=="function",m=typeof self=="object"?self:Qe,l=typeof Symbol<"u",t=typeof Map<"u",p=typeof Set<"u",f=typeof WeakMap<"u",o=typeof WeakSet<"u",T=typeof DataView<"u",d=l&&typeof Symbol.iterator<"u",E=l&&typeof Symbol.toStringTag<"u",P=p&&typeof Set.prototype.entries=="function",O=t&&typeof Map.prototype.entries=="function",q=P&&Object.getPrototypeOf(new Set().entries()),N=O&&Object.getPrototypeOf(new Map().entries()),j=d&&typeof Array.prototype[Symbol.iterator]=="function",A=j&&Object.getPrototypeOf([][Symbol.iterator]()),x=d&&typeof String.prototype[Symbol.iterator]=="function",D=x&&Object.getPrototypeOf(""[Symbol.iterator]()),H=8,_=-1;function J(S){var K=typeof S;if(K!=="object")return K;if(S===null)return"null";if(S===m)return"global";if(Array.isArray(S)&&(E===!1||!(Symbol.toStringTag in S)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&S===window.location)return"Location";if(typeof window.document=="object"&&S===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&S===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&S===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&S instanceof window.HTMLElement){if(S.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(S.tagName==="TD")return"HTMLTableDataCellElement";if(S.tagName==="TH")return"HTMLTableHeaderCellElement"}}var Z=E&&S[Symbol.toStringTag];if(typeof Z=="string")return Z;var F=Object.getPrototypeOf(S);return F===RegExp.prototype?"RegExp":F===Date.prototype?"Date":u&&F===Promise.prototype?"Promise":p&&F===Set.prototype?"Set":t&&F===Map.prototype?"Map":o&&F===WeakSet.prototype?"WeakSet":f&&F===WeakMap.prototype?"WeakMap":T&&F===DataView.prototype?"DataView":t&&F===N?"Map Iterator":p&&F===q?"Set Iterator":j&&F===A?"Array Iterator":x&&F===D?"String Iterator":F===null?"Object":Object.prototype.toString.call(S).slice(H,_)}return J})}(Te)),Te.exports}var Ke,At;function $r(){if(At)return Ke;At=1;var s=Lr();return Ke=function(u){return s(u).toLowerCase()},Ke}var Ve,St;function Br(){if(St)return Ve;St=1;function s(n){return n&&n.toString?n.toString():String(n)}return Ve=s,Ve}var ze,Mt;function Hr(){return Mt||(Mt=1,ze={global:Er(),calledInOrder:Sr(),className:Mr(),deprecated:Pr(),every:Or(),functionName:xr(),orderByFirstCall:Cr(),prototypes:Nr(),typeOf:$r(),valueToString:Br()}),ze}var Pt;function Gr(){if(Pt)return oe;Pt=1;const s=Hr().global;let n,u;if(typeof __vitest_required__<"u"){try{n=__vitest_required__.timers}catch{}try{u=__vitest_required__.timersPromises}catch{}}function m(t){const p=Math.pow(2,31)-1,f=1e12,o=function(){},T=function(){return[]},d={};let E,P=!1;t.setTimeout&&(d.setTimeout=!0,E=t.setTimeout(o,0),P=typeof E=="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 q=t.Performance&&(typeof t.Performance).match(/^(function|object)$/),N=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(E);const j=t.Date,A=d.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(t.Intl)):void 0;let x=f;if(j===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 D{constructor(i,a,h,e){this.name=i,this.entryType=a,this.startTime=h,this.duration=e}toJSON(){return JSON.stringify({...this})}}function H(r){return Number.isFinite?Number.isFinite(r):isFinite(r)}let _=!1;function J(r,i){r.loopLimit&&i===r.loopLimit-1&&(_=!0)}function S(){_=!1}function K(r){if(!r)return 0;const i=r.split(":"),a=i.length;let h=a,e=0,v;if(a>3||!/^(\d\d:){0,2}\d\d?$/.test(r))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;h--;){if(v=parseInt(i[h],10),v>=60)throw new Error(`Invalid time ${r}`);e+=v*Math.pow(60,a-h-1)}return e*1e3}function Z(r){const a=r*1e6%1e6,h=a<0?a+1e6:a;return Math.floor(h)}function F(r){if(!r)return 0;if(typeof r.getTime=="function")return r.getTime();if(typeof r=="number")return r;throw new TypeError("now should be milliseconds since UNIX epoch")}function ce(r,i,a){return a&&a.callAt>=r&&a.callAt<=i}function ee(r,i){const a=new Error(`Aborting after running ${r.loopLimit} timers, assuming an infinite loop!`);if(!i.error)return a;const h=/target\.*[<|(|[].*?[>|\]|)]\s*/;let e=new RegExp(String(Object.keys(r).join("|")));P&&(e=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(r).join("|")})\\s+`));let v=-1;i.error.stack.split(`
|
|
6
|
+
`).some(function(k,b){return k.match(h)?(v=b,!0):k.match(e)?(v=b,!1):v>=0});const I=`${a}
|
|
7
7
|
${i.type||"Microtask"} - ${i.func.name||"anonymous"}
|
|
8
8
|
${i.error.stack.split(`
|
|
9
9
|
`).slice(v+1).join(`
|
|
10
|
-
`)}`;try{Object.defineProperty(a,"stack",{value:
|
|
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=
|
|
10
|
+
`)}`;try{Object.defineProperty(a,"stack",{value:I})}catch{}return a}function X(){class r extends j{constructor(h,e,v,I,k,b,w){arguments.length===0?super(r.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:j,enumerable:!1})}static[Symbol.hasInstance](h){return h instanceof j}}return r.isFake=!0,j.now&&(r.now=function(){return r.clock.now}),j.toSource&&(r.toSource=function(){return j.toSource()}),r.toString=function(){return j.toString()},new Proxy(r,{apply(){if(this instanceof r)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 j(r.clock.now).toString()}})}function ue(){const r={};return Object.getOwnPropertyNames(A).forEach(i=>r[i]=A[i]),r.DateTimeFormat=function(...i){const a=new A.DateTimeFormat(...i),h={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach(e=>{h[e]=a[e].bind(a)}),["format","formatToParts"].forEach(e=>{h[e]=function(v){return a[e](v||r.clock.now)}}),h},r.DateTimeFormat.prototype=Object.create(A.DateTimeFormat.prototype),r.DateTimeFormat.supportedLocalesOf=A.DateTimeFormat.supportedLocalesOf,r}function Ft(r,i){r.jobs||(r.jobs=[]),r.jobs.push(i)}function V(r){if(r.jobs){for(let i=0;i<r.jobs.length;i++){const a=r.jobs[i];if(a.func.apply(null,a.args),J(r,i),r.loopLimit&&i>r.loopLimit)throw ee(r,a)}S(),r.jobs=[]}}function te(r,i){if(i.func===void 0)throw new Error("Callback must be provided to timer calls");if(P&&typeof i.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${i.func} of type ${typeof i.func}`);if(_&&(i.error=new Error),i.type=i.immediate?"Immediate":"Timeout",i.hasOwnProperty("delay")&&(typeof i.delay!="number"&&(i.delay=parseInt(i.delay,10)),H(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),r.timers||(r.timers={}),i.id=x++,i.createdAt=r.now,i.callAt=r.now+(parseInt(i.delay)||(r.duringTick?1:0)),r.timers[i.id]=i,P){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=r.now+(parseInt(i.delay)||(r.duringTick?1:0)),r.timers[i.id]=i,a},[Symbol.toPrimitive]:function(){return i.id}};return a}return i.id}function ge(r,i){if(r.callAt<i.callAt)return-1;if(r.callAt>i.callAt)return 1;if(r.immediate&&!i.immediate)return-1;if(!r.immediate&&i.immediate)return 1;if(r.createdAt<i.createdAt)return-1;if(r.createdAt>i.createdAt)return 1;if(r.id<i.id)return-1;if(r.id>i.id)return 1}function ke(r,i,a){const h=r.timers;let e=null,v,I;for(v in h)h.hasOwnProperty(v)&&(I=ce(i,a,h[v]),I&&(!e||ge(e,h[v])===1)&&(e=h[v]));return e}function he(r){const i=r.timers;let a=null,h;for(h in i)i.hasOwnProperty(h)&&(!a||ge(a,i[h])===1)&&(a=i[h]);return a}function Ze(r){const i=r.timers;let a=null,h;for(h in i)i.hasOwnProperty(h)&&(!a||ge(a,i[h])===-1)&&(a=i[h]);return a}function be(r,i){if(typeof i.interval=="number"?r.timers[i.id].callAt+=i.interval:delete r.timers[i.id],typeof i.func=="function")i.func.apply(null,i.args);else{const a=eval;(function(){a(i.func)})()}}function et(r){return r==="IdleCallback"||r==="AnimationFrame"?`cancel${r}`:`clear${r}`}function jt(r){return r==="IdleCallback"||r==="AnimationFrame"?`request${r}`:`set${r}`}function Rt(){let r=0;return function(i){!r++&&console.warn(i)}}const _t=Rt();function fe(r,i,a){if(!i)return;r.timers||(r.timers={});const h=Number(i);if(Number.isNaN(h)||h<f){const e=et(a);if(r.shouldClearNativeTimers===!0){const v=r[`_${e}`];return typeof v=="function"?v(i):void 0}_t(`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(r.timers.hasOwnProperty(h)){const e=r.timers[h];if(e.type===a||e.type==="Timeout"&&a==="Interval"||e.type==="Interval"&&a==="Timeout")delete r.timers[h];else{const v=et(a),I=jt(e.type);throw new Error(`Cannot clear timer: timer created with ${I}() but cleared with ${v}()`)}}}function qt(r,i){let a,h,e;const v="_hrtime",I="_nextTick";for(h=0,e=r.methods.length;h<e;h++){if(a=r.methods[h],a==="hrtime"&&t.process)t.process.hrtime=r[v];else if(a==="nextTick"&&t.process)t.process.nextTick=r[I];else if(a==="performance"){const k=Object.getOwnPropertyDescriptor(r,`_${a}`);k&&k.get&&!k.set?Object.defineProperty(t,a,k):k.configurable&&(t[a]=r[`_${a}`])}else if(t[a]&&t[a].hadOwnProperty)t[a]=r[`_${a}`];else try{delete t[a]}catch{}if(r.timersModuleMethods!==void 0)for(let k=0;k<r.timersModuleMethods.length;k++){const b=r.timersModuleMethods[k];n[b.methodName]=b.original}if(r.timersPromisesModuleMethods!==void 0)for(let k=0;k<r.timersPromisesModuleMethods.length;k++){const b=r.timersPromisesModuleMethods[k];u[b.methodName]=b.original}}i.shouldAdvanceTime===!0&&t.clearInterval(r.attachedInterval),r.methods=[];for(const[k,b]of r.abortListenerMap.entries())b.removeEventListener("abort",k),r.abortListenerMap.delete(k);return r.timers?Object.keys(r.timers).map(function(b){return r.timers[b]}):[]}function Ie(r,i,a){if(a[i].hadOwnProperty=Object.prototype.hasOwnProperty.call(r,i),a[`_${i}`]=r[i],i==="Date")r[i]=a[i];else if(i==="Intl")r[i]=a[i];else if(i==="performance"){const h=Object.getOwnPropertyDescriptor(r,i);if(h&&h.get&&!h.set){Object.defineProperty(a,`_${i}`,h);const e=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(r,i,e)}else r[i]=a[i]}else r[i]=function(){return a[i].apply(a,arguments)},Object.defineProperties(r[i],Object.getOwnPropertyDescriptors(a[i]));r[i].clock=a}function Nt(r,i){r.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=A);const ne=t.setImmediate||t.setTimeout;function tt(r,i){r=Math.floor(F(r)),i=i||1e3;let a=0;const h=[0,0],e={now:r,Date:X(),loopLimit:i};e.Date.clock=e;function v(){return 16-(e.now-r)%16}function I(w){const c=e.now-h[0]-r,y=Math.floor(c/1e3),g=(c-y*1e3)*1e6+a-h[1];if(Array.isArray(w)){if(w[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const M=w[0];let C=g-w[1],z=y-M;return C<0&&(C+=1e9,z-=1),[z,C]}return[y,g]}function k(){const w=I();return w[0]*1e3+w[1]/1e6}d.hrtimeBigint&&(I.bigint=function(){const w=I();return BigInt(w[0])*BigInt(1e9)+BigInt(w[1])}),d.Intl&&(e.Intl=ue(),e.Intl.clock=e),e.requestIdleCallback=function(c,y){let g=0;e.countTimers()>0&&(g=50);const M=te(e,{func:c,args:Array.prototype.slice.call(arguments,2),delay:typeof y>"u"?g:Math.min(y,g),idleCallback:!0});return Number(M)},e.cancelIdleCallback=function(c){return fe(e,c,"IdleCallback")},e.setTimeout=function(c,y){return te(e,{func:c,args:Array.prototype.slice.call(arguments,2),delay:y})},typeof t.Promise<"u"&&O&&(e.setTimeout[O.custom]=function(c,y){return new t.Promise(function(M){te(e,{func:M,args:[y],delay:c})})}),e.clearTimeout=function(c){return fe(e,c,"Timeout")},e.nextTick=function(c){return Ft(e,{func:c,args:Array.prototype.slice.call(arguments,1),error:_?new Error:null})},e.queueMicrotask=function(c){return e.nextTick(c)},e.setInterval=function(c,y){return y=parseInt(y,10),te(e,{func:c,args:Array.prototype.slice.call(arguments,2),delay:y,interval:y})},e.clearInterval=function(c){return fe(e,c,"Interval")},d.setImmediate&&(e.setImmediate=function(c){return te(e,{func:c,args:Array.prototype.slice.call(arguments,1),immediate:!0})},typeof t.Promise<"u"&&O&&(e.setImmediate[O.custom]=function(c){return new t.Promise(function(g){te(e,{func:g,args:[c],immediate:!0})})}),e.clearImmediate=function(c){return fe(e,c,"Immediate")}),e.countTimers=function(){return Object.keys(e.timers||{}).length+(e.jobs||[]).length},e.requestAnimationFrame=function(c){const y=te(e,{func:c,delay:v(),get args(){return[k()]},animation:!0});return Number(y)},e.cancelAnimationFrame=function(c){return fe(e,c,"AnimationFrame")},e.runMicrotasks=function(){V(e)};function b(w,c,y,g){const M=typeof w=="number"?w:K(w),C=Math.floor(M),z=Z(M);let G=a+z,R=e.now+C;if(M<0)throw new TypeError("Negative ticks are not supported");G>=1e6&&(R+=1,G-=1e6),a=G;let W=e.now,re=e.now,U,Y,$,rt,Ee,Ae;e.duringTick=!0,$=e.now,V(e),$!==e.now&&(W+=e.now-$,R+=e.now-$);function nt(){for(U=ke(e,W,R);U&&W<=R;){if(e.timers[U.id]){W=U.callAt,e.now=U.callAt,$=e.now;try{V(e),be(e,U)}catch(le){Y=Y||le}if(c){ne(rt);return}Ee()}Ae()}if($=e.now,V(e),$!==e.now&&(W+=e.now-$,R+=e.now-$),e.duringTick=!1,U=ke(e,W,R),U)try{e.tick(R-e.now)}catch(le){Y=Y||le}else e.now=R,a=G;if(Y)throw Y;if(c)y(e.now);else return e.now}return rt=c&&function(){try{Ee(),Ae(),nt()}catch(le){g(le)}},Ee=function(){$!==e.now&&(W+=e.now-$,R+=e.now-$,re+=e.now-$)},Ae=function(){U=ke(e,re,R),re=W},nt()}return e.tick=function(c){return b(c,!1)},typeof t.Promise<"u"&&(e.tickAsync=function(c){return new t.Promise(function(y,g){ne(function(){try{b(c,!0,y,g)}catch(M){g(M)}})})}),e.next=function(){V(e);const c=he(e);if(!c)return e.now;e.duringTick=!0;try{return e.now=c.callAt,be(e,c),V(e),e.now}finally{e.duringTick=!1}},typeof t.Promise<"u"&&(e.nextAsync=function(){return new t.Promise(function(c,y){ne(function(){try{const g=he(e);if(!g){c(e.now);return}let M;e.duringTick=!0,e.now=g.callAt;try{be(e,g)}catch(C){M=C}e.duringTick=!1,ne(function(){M?y(M):c(e.now)})}catch(g){y(g)}})})}),e.runAll=function(){let c,y;for(V(e),y=0;y<e.loopLimit;y++){if(!e.timers||(c=Object.keys(e.timers).length,c===0))return S(),e.now;e.next(),J(e,y)}const g=he(e);throw ee(e,g)},e.runToFrame=function(){return e.tick(v())},typeof t.Promise<"u"&&(e.runAllAsync=function(){return new t.Promise(function(c,y){let g=0;function M(){ne(function(){try{V(e);let C;if(g<e.loopLimit){if(!e.timers){S(),c(e.now);return}if(C=Object.keys(e.timers).length,C===0){S(),c(e.now);return}e.next(),g++,M(),J(e,g);return}const z=he(e);y(ee(e,z))}catch(C){y(C)}})}M()})}),e.runToLast=function(){const c=Ze(e);return c?e.tick(c.callAt-e.now):(V(e),e.now)},typeof t.Promise<"u"&&(e.runToLastAsync=function(){return new t.Promise(function(c,y){ne(function(){try{const g=Ze(e);g||(V(e),c(e.now)),c(e.tickAsync(g.callAt-e.now))}catch(g){y(g)}})})}),e.reset=function(){a=0,e.timers={},e.jobs=[],e.now=r},e.setSystemTime=function(c){const y=F(c),g=y-e.now;let M,C;h[0]=h[0]+g,h[1]=h[1]+a,e.now=y,a=0;for(M in e.timers)e.timers.hasOwnProperty(M)&&(C=e.timers[M],C.createdAt+=g,C.callAt+=g)},e.jump=function(c){const y=typeof c=="number"?c:K(c),g=Math.floor(y);for(const M of Object.values(e.timers))e.now+g>M.callAt&&(M.callAt=e.now+g);e.tick(g)},d.performance&&(e.performance=Object.create(null),e.performance.now=k),d.hrtime&&(e.hrtime=I),e}function Dt(r){if(arguments.length>1||r instanceof Date||Array.isArray(r)||typeof r=="number")throw new TypeError(`FakeTimers.install called with ${String(r)} 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(r=typeof r<"u"?r:{},r.shouldAdvanceTime=r.shouldAdvanceTime||!1,r.advanceTimeDelta=r.advanceTimeDelta||20,r.shouldClearNativeTimers=r.shouldClearNativeTimers||!1,r.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function i(v){if(!r.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${v}'`)}let a,h;const e=tt(r.now,r.loopLimit);if(e.shouldClearNativeTimers=r.shouldClearNativeTimers,e.uninstall=function(){return qt(e,r)},e.abortListenerMap=new Map,e.methods=r.toFake||[],e.methods.length===0&&(e.methods=Object.keys(L)),r.shouldAdvanceTime===!0){const v=Nt.bind(null,e,r.advanceTimeDelta),I=t.setInterval(v,r.advanceTimeDelta);e.attachedInterval=I}if(e.methods.includes("performance")){const v=(()=>{if(N)return t.performance.constructor.prototype;if(q)return t.Performance.prototype})();if(v)Object.getOwnPropertyNames(v).forEach(function(I){I!=="now"&&(e.performance[I]=I.indexOf("getEntries")===0?T:o)}),e.performance.mark=I=>new D(I,"mark",0,0),e.performance.measure=I=>new D(I,"measure",0,100),e.performance.timeOrigin=F(r.now);else if((r.toFake||[]).includes("performance"))return i("performance")}for(t===s&&n&&(e.timersModuleMethods=[]),t===s&&u&&(e.timersPromisesModuleMethods=[]),a=0,h=e.methods.length;a<h;a++){const v=e.methods[a];if(!d[v]){i(v);continue}if(v==="hrtime"?t.process&&typeof t.process.hrtime=="function"&&Ie(t.process,v,e):v==="nextTick"?t.process&&typeof t.process.nextTick=="function"&&Ie(t.process,v,e):Ie(t,v,e),e.timersModuleMethods!==void 0&&n[v]){const I=n[v];e.timersModuleMethods.push({methodName:v,original:I}),n[v]=t[v]}e.timersPromisesModuleMethods!==void 0&&(v==="setTimeout"?(e.timersPromisesModuleMethods.push({methodName:"setTimeout",original:u.setTimeout}),u.setTimeout=(I,k,b={})=>new Promise((w,c)=>{const y=()=>{b.signal.removeEventListener("abort",y),e.abortListenerMap.delete(y),e.clearTimeout(g),c(b.signal.reason)},g=e.setTimeout(()=>{b.signal&&(b.signal.removeEventListener("abort",y),e.abortListenerMap.delete(y)),w(k)},I);b.signal&&(b.signal.aborted?y():(b.signal.addEventListener("abort",y),e.abortListenerMap.set(y,b.signal)))})):v==="setImmediate"?(e.timersPromisesModuleMethods.push({methodName:"setImmediate",original:u.setImmediate}),u.setImmediate=(I,k={})=>new Promise((b,w)=>{const c=()=>{k.signal.removeEventListener("abort",c),e.abortListenerMap.delete(c),e.clearImmediate(y),w(k.signal.reason)},y=e.setImmediate(()=>{k.signal&&(k.signal.removeEventListener("abort",c),e.abortListenerMap.delete(c)),b(I)});k.signal&&(k.signal.aborted?c():(k.signal.addEventListener("abort",c),e.abortListenerMap.set(c,k.signal)))})):v==="setInterval"&&(e.timersPromisesModuleMethods.push({methodName:"setInterval",original:u.setInterval}),u.setInterval=(I,k,b={})=>({[Symbol.asyncIterator]:()=>{const w=()=>{let R,W;const re=new Promise((U,Y)=>{R=U,W=Y});return re.resolve=R,re.reject=W,re};let c=!1,y=!1,g,M=0;const C=[],z=e.setInterval(()=>{C.length>0?C.shift().resolve():M++},I),G=()=>{b.signal.removeEventListener("abort",G),e.abortListenerMap.delete(G),e.clearInterval(z),c=!0;for(const R of C)R.resolve()};return b.signal&&(b.signal.aborted?c=!0:(b.signal.addEventListener("abort",G),e.abortListenerMap.set(G,b.signal))),{next:async()=>{if(b.signal?.aborted&&!y)throw y=!0,b.signal.reason;if(c)return{done:!0,value:void 0};if(M>0)return M--,{done:!1,value:k};const R=w();if(C.push(R),await R,g&&C.length===0&&g.resolve(),b.signal?.aborted&&!y)throw y=!0,b.signal.reason;return c?{done:!0,value:void 0}:{done:!1,value:k}},return:async()=>c?{done:!0,value:void 0}:(C.length>0&&(g=w(),await g),e.clearInterval(z),c=!0,b.signal&&(b.signal.removeEventListener("abort",G),e.abortListenerMap.delete(G)),{done:!0,value:void 0})}}})))}return e}return{timers:L,createClock:tt,install:Dt,withGlobal:m}}const l=m(s);return oe.timers=l.timers,oe.createClock=l.createClock,oe.install=l.install,oe.withGlobal=m,oe}var Wr=Gr();class Ur{_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=ar.now;constructor({global:n,config:u}){this._userConfig=u,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=Wr.withGlobal(n),this._global=n}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(n=1){if(this._checkFakeTimers())for(let u=n;u>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);u--);}async advanceTimersToNextTimerAsync(n=1){if(this._checkFakeTimers())for(let u=n;u>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);u--);}advanceTimersByTime(n){this._checkFakeTimers()&&this._clock.tick(n)}async advanceTimersByTimeAsync(n){this._checkFakeTimers()&&await this._clock.tickAsync(n)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&(cr(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){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 n=Object.keys(this._fakeTimers.timers).filter(u=>u!=="nextTick"&&u!=="queueMicrotask");if(this._userConfig?.toFake?.includes("nextTick")&&xt())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:this._userConfig?.toFake||n,ignoreMissingTimers:!0}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:n}=this._clock;this._clock.reset(),this._clock.setSystemTime(n)}}setSystemTime(n){const u=typeof n>"u"||n instanceof Date?n:new Date(n);this._fakingTime?this._clock.setSystemTime(u):(this._fakingDate=u??new Date(this.getRealSystemTime()),ur(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(n){this._userConfig=n}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}}function Ct(s,n){return n.stack!==void 0&&(s.stack=n.stack.replace(n.message,s.message)),s}function Jr(s,n={}){const{setTimeout:u,setInterval:m,clearTimeout:l,clearInterval:t}=Xe(),{interval:p=50,timeout:f=1e3}=typeof n=="number"?{timeout:n}:n,o=new Error("STACK_TRACE_ERROR");return new Promise((T,d)=>{let E,P="idle",O,q;const N=x=>{O&&l(O),q&&t(q),T(x)},j=()=>{q&&t(q);let x=E;x||(x=Ct(new Error("Timed out in waitFor!"),o)),d(x)},A=()=>{if(ve.isFakeTimers()&&ve.advanceTimersByTime(p),P!=="pending")try{const x=s();if(x!==null&&typeof x=="object"&&typeof x.then=="function"){const D=x;P="pending",D.then(H=>{P="resolved",N(H)},H=>{P="rejected",E=H})}else return N(x),!0}catch(x){E=x}};A()!==!0&&(O=u(j,f),q=m(A,p))})}function Kr(s,n={}){const{setTimeout:u,setInterval:m,clearTimeout:l,clearInterval:t}=Xe(),{interval:p=50,timeout:f=1e3}=typeof n=="number"?{timeout:n}:n,o=new Error("STACK_TRACE_ERROR");return new Promise((T,d)=>{let E="idle",P,O;const q=A=>{O&&t(O),A||(A=Ct(new Error("Timed out in waitUntil!"),o)),d(A)},N=A=>{if(A)return P&&l(P),O&&t(O),T(A),!0},j=()=>{if(ve.isFakeTimers()&&ve.advanceTimersByTime(p),E!=="pending")try{const A=s();if(A!==null&&typeof A=="object"&&typeof A.then=="function"){const x=A;E="pending",x.then(D=>{E="resolved",N(D)},D=>{E="rejected",q(D)})}else return N(A)}catch(A){q(A)}};j()!==!0&&(P=u(q,f),O=m(j,p))})}function Vr(){let s=null;const n=Ye();let u;const m=()=>u||=new Ur({global:globalThis,config:n.config.fakeTimers}),l=new Map,t=new Map,p=["PROD","DEV","SSR"],f={useFakeTimers(o){if(xt()&&(o?.toFake?.includes("nextTick")||n.config?.fakeTimers?.toFake?.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({...n.config.fakeTimers,...o}):m().configure(n.config.fakeTimers),m().useFakeTimers(),f},isFakeTimers(){return m().isFakeTimers()},useRealTimers(){return m().useRealTimers(),f},runOnlyPendingTimers(){return m().runOnlyPendingTimers(),f},async runOnlyPendingTimersAsync(){return await m().runOnlyPendingTimersAsync(),f},runAllTimers(){return m().runAllTimers(),f},async runAllTimersAsync(){return await m().runAllTimersAsync(),f},runAllTicks(){return m().runAllTicks(),f},advanceTimersByTime(o){return m().advanceTimersByTime(o),f},async advanceTimersByTimeAsync(o){return await m().advanceTimersByTimeAsync(o),f},advanceTimersToNextTimer(){return m().advanceTimersToNextTimer(),f},async advanceTimersToNextTimerAsync(){return await m().advanceTimersToNextTimerAsync(),f},advanceTimersToNextFrame(){return m().advanceTimersToNextFrame(),f},getTimerCount(){return m().getTimerCount()},setSystemTime(o){return m().setSystemTime(o),f},getMockedSystemTime(){return m().getMockedSystemTime()},getRealSystemTime(){return m().getRealSystemTime()},clearAllTimers(){return m().clearAllTimers(),f},spyOn:or,fn:ir,waitFor:Jr,waitUntil:Kr,hoisted(o){return fr(o,'"vi.hoisted" factory',["function"]),o()},mock(o,T){if(typeof o!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof o}`);const d=se("mock");B().queueMock(o,d,typeof T=="function"?()=>T(()=>B().importActual(o,d,B().getMockContext().callstack)):T)},unmock(o){if(typeof o!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof o}`);B().queueUnmock(o,se("unmock"))},doMock(o,T){if(typeof o!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof o}`);const d=se("doMock");B().queueMock(o,d,typeof T=="function"?()=>T(()=>B().importActual(o,d,B().getMockContext().callstack)):T)},doUnmock(o){if(typeof o!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof o}`);B().queueUnmock(o,se("doUnmock"))},async importActual(o){return B().importActual(o,se("importActual"),B().getMockContext().callstack)},async importMock(o){return B().importMock(o,se("importMock"))},mockObject(o){return B().mockObject({value:o}).value},mocked(o,T={}){return o},isMockFunction(o){return sr(o)},clearAllMocks(){return[...Oe].reverse().forEach(o=>o.mockClear()),f},resetAllMocks(){return[...Oe].reverse().forEach(o=>o.mockReset()),f},restoreAllMocks(){return[...Oe].reverse().forEach(o=>o.mockRestore()),f},stubGlobal(o,T){return l.has(o)||l.set(o,Object.getOwnPropertyDescriptor(globalThis,o)),Object.defineProperty(globalThis,o,{value:T,writable:!0,configurable:!0,enumerable:!0}),f},stubEnv(o,T){return t.has(o)||t.set(o,ie[o]),p.includes(o)?ie[o]=T?"1":"":T===void 0?delete ie[o]:ie[o]=String(T),f},unstubAllGlobals(){return l.forEach((o,T)=>{o?Object.defineProperty(globalThis,T,o):Reflect.deleteProperty(globalThis,T)}),l.clear(),f},unstubAllEnvs(){return t.forEach((o,T)=>{o===void 0?delete ie[T]:ie[T]=o}),t.clear(),f},resetModules(){return er(n.moduleCache),f},async dynamicImportSettled(){return Zt()},setConfig(o){s||(s={...n.config}),Object.assign(n.config,o)},resetConfig(){s&&Object.assign(n.config,s)}};return f}const zr=Vr(),ve=zr;function B(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(s,n){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(n)}() is forbidden.`)}})}function se(s){const u=lr({stackTraceLimit:5}).split(`
|
|
12
|
+
`),m=u.findIndex(t=>t.includes(` at Object.${s}`)||t.includes(`${s}@`));return zt(u[m+1])?.file||""}export{Ir as a,zr as b,br as c,me as g,ve as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o='.gator-button{display:inline-flex;align-items:center;justify-content:center;border-style:none;cursor:pointer;font-family:var(--text-family-body, "Open Sans", sans-serif);font-weight:600;margin:var(--ngc-button-margin, auto);width:var(--ngc-button-width);position:relative;border-radius:var(--ngc-button-border-radius, 2px);gap:.5rem}.gator-button_small{font-size:.8125rem;line-height:1.125rem;padding:var(--ngc-button-padding, 0 .75rem);min-width:3.5rem;height:1.75rem}.gator-button_medium{font-size:.9375rem;line-height:1.125rem;padding:var(--ngc-button-padding, 0 1rem);min-width:4rem;height:2.25rem}.gator-button_large{font-size:1.0625rem;line-height:1.5rem;padding:var(--ngc-button-padding, 0 1rem);min-width:6rem;height:3rem}.gator-button_xlarge{font-size:1rem;line-height:1.5rem;padding:var(--ngc-button-padding, 0 2.5rem);min-width:7.5rem;height:3.5rem}.gator-button:focus-visible{outline:2px solid var(--ngc-button-focus-outline-color, var(--color-focus-border));outline-offset:2px}.gator-button:disabled{cursor:not-allowed}.gator-button.gator-button_loading{cursor:not-allowed}.gator-button_primary{background-color:var(--ngc-button-background-color, #11395B);color:var(--ngc-button-color, var(--text-color-inverse-white, #FFF))}.gator-button_primary:not([disabled]):not(.gator-button_loading):hover{box-shadow:var(--ngc-button-hover-box-shadow, 0px 3px 6px 0px rgba(31, 31, 31, .2));background-color:var(--ngc-button-hover-background-color, #0E304D)}.gator-button_primary:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, #0A2033);box-shadow:none}.gator-button_primary:disabled{background-color:var(--ngc-button-disabled-background-color, #E5E5E5);color:var(--ngc-button-disabled-color, #808080)}.gator-button_primary.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-surface-interactive-primary-pressed))}.gator-button_secondary{position:relative;background-color:var(--ngc-button-background-color, transparent);color:var(--ngc-button-color, var(--color-interactive-brand, #0E304D))}.gator-button_secondary:before{content:"";position:absolute;
|
|
1
|
+
const o='.gator-button{display:inline-flex;align-items:center;justify-content:center;border-style:none;cursor:pointer;font-family:var(--text-family-body, "Open Sans", sans-serif);font-weight:600;margin:var(--ngc-button-margin, auto);width:var(--ngc-button-width);position:relative;border-radius:var(--ngc-button-border-radius, 2px);gap:.5rem}.gator-button_small{font-size:.8125rem;line-height:1.125rem;padding:var(--ngc-button-padding, 0 .75rem);min-width:3.5rem;height:1.75rem}.gator-button_medium{font-size:.9375rem;line-height:1.125rem;padding:var(--ngc-button-padding, 0 1rem);min-width:4rem;height:2.25rem}.gator-button_large{font-size:1.0625rem;line-height:1.5rem;padding:var(--ngc-button-padding, 0 1rem);min-width:6rem;height:3rem}.gator-button_xlarge{font-size:1rem;line-height:1.5rem;padding:var(--ngc-button-padding, 0 2.5rem);min-width:7.5rem;height:3.5rem}.gator-button:focus-visible{outline:2px solid var(--ngc-button-focus-outline-color, var(--color-focus-border));outline-offset:2px}.gator-button:disabled{cursor:not-allowed}.gator-button.gator-button_loading{cursor:not-allowed}.gator-button_primary{background-color:var(--ngc-button-background-color, #11395B);color:var(--ngc-button-color, var(--text-color-inverse-white, #FFF))}.gator-button_primary:not([disabled]):not(.gator-button_loading):hover{box-shadow:var(--ngc-button-hover-box-shadow, 0px 3px 6px 0px rgba(31, 31, 31, .2));background-color:var(--ngc-button-hover-background-color, #0E304D)}.gator-button_primary:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, #0A2033);box-shadow:none}.gator-button_primary:disabled{background-color:var(--ngc-button-disabled-background-color, #E5E5E5);color:var(--ngc-button-disabled-color, #808080)}.gator-button_primary.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-surface-interactive-primary-pressed))}.gator-button_secondary{position:relative;background-color:var(--ngc-button-background-color, transparent);color:var(--ngc-button-color, var(--color-interactive-brand, #0E304D))}.gator-button_secondary:before{content:"";position:absolute;inset:0;border-radius:var(--ngc-button-border-radius, 2px);border-width:var(--ngc-button-border-width, 1px);border-color:var(--ngc-button-border-color, var(--color-surface-interactive-primary));border-style:solid}.gator-button_secondary:not([disabled]):not(.gator-button_loading):hover{background-color:var(--ngc-button-hover-background-color, var(--color-surface-hover));color:var(--color-interactive-brand-hover, #0A2033);box-shadow:var(--ngc-button-hover-box-shadow, 0px 3px 6px 0px rgba(31, 31, 31, .2))}.gator-button_secondary:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-background-color, transparent);color:var(--color-interactive-brand-pressed, #0A2033);box-shadow:none}.gator-button_secondary:disabled{color:var(--ngc-button-disabled-color, #808080);cursor:not-allowed}.gator-button_secondary:disabled:before{border-color:var(--ngc-button-border-color, #BFBFBF)}.gator-button_secondary.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--color-surface-hover))}.gator-button_secondary.gator-button_loading:before{border-color:var(--color-stroke-secondary)}.gator-button_destructive{background-color:var(--ngc-button-background-color, var(--button-color-destructive-background, #D44011));color:var(--ngc-button-color, var(--color-text-inverse))}.gator-button_destructive:not([disabled]):not(.gator-button_loading):hover{box-shadow:var(--ngc-button-hover-box-shadow, 0px 3px 6px 0px rgba(31, 31, 31, .2));background-color:var(--ngc-button-hover-background-color, var(--button-color-destructive-hover, #AA330E))}.gator-button_destructive:not([disabled]):not(.gator-button_loading):active{background-color:var(--ngc-button-pressed-background-color, #AA330E);box-shadow:none}.gator-button_destructive:disabled{background-color:var(--ngc-button-disabled-background-color, var(--button-color-destructive-disabled, #DBDBDB));color:var(--ngc-button-disabled-color, var(--text-color-disabled, #808080))}.gator-button_destructive.gator-button_loading{background-color:var(--ngc-button-loading-background-color, var(--button-color-destructive-loading, #AA330E))}.gator-button_base{color:var(--ngc-button-color-base, var(--color-surface-interactive-primary));background:none;padding:0 var(--spacing-gap-4, .25rem)}.gator-button_base .gator-button-text{border-bottom:1px solid var(--color-underline-primary)}.gator-button_base.gator-button_small{min-width:2.75rem}.gator-button_base.gator-button_medium{min-width:3.125rem}.gator-button_base.gator-button_large,.gator-button_base.gator-button_xlarge{min-width:3.5625rem}.gator-button_base:not([disabled]):not(.gator-button_loading):hover .gator-button-text{color:var(--color-interactive-brand-hover, #0A2033);border-bottom:1px solid var(--color-surface-interactive-primary-hover)}.gator-button_base:not([disabled]):not(.gator-button_loading):active .gator-button-text{color:var(--color-interactive-brand-pressed, #0A2033);border-bottom:1px solid var(--color-surface-interactive-primary-pressed)}.gator-button_base:disabled{color:var(--text-color-disabled, #808080)}.gator-button_base:disabled .gator-button-text{border-bottom:1px solid var(--color-underline-primary, #BFBFBF)}.gator-button-loader{display:flex;align-items:center;justify-content:center;position:absolute}.gator-button-loader+.gator-button-text{visibility:hidden}.gator-button-skeleton{background-color:var(--color-surface-loading)}.gator-button-content{display:flex;align-items:center;justify-content:center;gap:.5rem}.gator-button_loading .gator-button-content{visibility:hidden}';export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r='.gator-chip{background-color:var(--ngc-chip-background-color, var(--color-background-primary));border-radius:var(--ngc-chip-border-radius, 3rem);display:inline-block;padding:var(--ngc-chip-padding, .25rem .75rem);font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-chip-font-size, .9375rem);line-height:var(--ngc-chip-line-height);border:var(--ngc-chip-border, 1px solid var(--color-stroke-tertiary, #E5E5E5));color:var(--color-neutral-70);cursor:var(--ngc-chip-cursor, default)}.gator-chip.hide-border{border:1px solid transparent}button:hover{background-color:var(--ngc-chip-hover-background-color, var(--color-neutral-20));cursor:var(--ngc-chip-cursor, pointer)}button:focus-visible{outline:none;box-shadow:var(--ngc-chip-focus-box-shadow, var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-2, 2px) var(--color-focus-gap, #FFF), var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-4, 4px) var(--color-focus-border, #11395B))}button:active{background-color:var(--ngc-chip-active-background-color)}.gator-chip_disabled{cursor:not-allowed!important;color:var(--button-color-default-text-disabled, #6D6D6D);outline:1px solid transparent!important;background:var(--color-surface-disabled, #E5E5E5);border:1px solid transparent!important}.gator-chip_disabled:hover{background:var(--color-surface-disabled, #E5E5E5)!important}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color, var(--color-background-primary))}.gator-chip_error:not(.gator-chip_disabled){background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_warning:not(.gator-chip_disabled){background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_success:not(.gator-chip_disabled){background:var(--color-surface-success, #E9F7F0);border:1px solid var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_info:not(.gator-chip_disabled){border:1px solid var(--color-surface-brand-secondary, #C3CDD6);background:var(--color-surface-brand
|
|
1
|
+
const r='.gator-chip{background-color:var(--ngc-chip-background-color, var(--color-background-primary));border-radius:var(--ngc-chip-border-radius, 3rem);display:inline-block;padding:var(--ngc-chip-padding, .25rem .75rem);font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-chip-font-size, .9375rem);line-height:var(--ngc-chip-line-height);border:var(--ngc-chip-border, 1px solid var(--color-stroke-tertiary, #E5E5E5));color:var(--color-neutral-70);cursor:var(--ngc-chip-cursor, default)}.gator-chip.hide-border{border:1px solid transparent}button:hover{background-color:var(--ngc-chip-hover-background-color, var(--color-neutral-20));cursor:var(--ngc-chip-cursor, pointer)}button:focus-visible{outline:none;box-shadow:var(--ngc-chip-focus-box-shadow, var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-2, 2px) var(--color-focus-gap, #FFF), var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-4, 4px) var(--color-focus-border, #11395B))}button:active{background-color:var(--ngc-chip-active-background-color)}.gator-chip_disabled{cursor:not-allowed!important;color:var(--button-color-default-text-disabled, #6D6D6D);outline:1px solid transparent!important;background:var(--color-surface-disabled, #E5E5E5);border:1px solid transparent!important}.gator-chip_disabled:hover{background:var(--color-surface-disabled, #E5E5E5)!important}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color, var(--color-background-primary))}.gator-chip_error:not(.gator-chip_disabled){background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_warning:not(.gator-chip_disabled){background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_success:not(.gator-chip_disabled){background:var(--color-surface-success, #E9F7F0);border:1px solid var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_info:not(.gator-chip_disabled){border:1px solid var(--color-surface-brand-secondary, #C3CDD6);background:var(--color-surface-brand, #F3F5F7)}.gator-chip_info:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-surface-brand-secondary, #C3CDD6)}.gator-chip_info:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_small{font-size:var(--text-size-caption);line-height:var(--text-line-height-caption)}';export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=".gator-modal-background{position:fixed;top:0;left:0;width:100%;height:100vh;background-color:var(--color-black-100);opacity:60%}.gator-modal{--ngc-card-position: fixed;--ngc-card-top: 50%;--ngc-card-left: 50%;--ngc-card-max-width: none;--ngc-card-transform: translate(-50%, -50%)}.gator-modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:var(--color-neutral-10)}.gator-modal-header .gator-modal-close-button{
|
|
1
|
+
const a=".gator-modal-background{position:fixed;top:0;left:0;width:100%;height:100vh;background-color:var(--color-black-100);opacity:60%}.gator-modal{--ngc-card-position: fixed;--ngc-card-top: 50%;--ngc-card-left: 50%;--ngc-card-max-width: none;--ngc-card-transform: translate(-50%, -50%)}.gator-modal-wrapper{display:flex;flex-direction:column;max-height:90vh;overflow-y:auto}.gator-modal-header{flex-shrink:0;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:var(--color-neutral-10)}.gator-modal-header .gator-modal-close-button{--ngc-icon-button-hover-box-shadow: none}.gator-modal-content{flex-grow:1;overflow-y:auto;padding:var(--spacing-6) var(--spacing-6) 3.5rem var(--spacing-6)}.gator-modal-content ngc-skeleton-loader:first-child{--ngc-skeleton-loader-margin: 0 0 var(--spacing-3) 0}.gator-modal-footer{flex-shrink:0;display:flex;padding:var(--spacing-6)}.gator-modal-warning{display:flex;flex-direction:row;align-items:center}.gator-modal-warning ngc-icon{--ngc-icon-color: var(--color-red-40);--ngc-icon-margin: 0 var(--spacing-3) 0 0}.gator-modal-warning ngc-input-label{--gator-input-label-color: var(--color-red-40);--gator-input-label-font-size: .9375rem;--gator-input-label-line-height: 1.375rem}.gator-modal-action-buttons{display:flex;gap:var(--spacing-3)}.gator-modal ngc-card-header{width:100%}.gator-modal--small{--ngc-card-width: 375px;--ngc-card-border-radius: .5rem}.gator-modal--small .gator-modal-header{border-radius:.5rem .5rem 0 0}.gator-modal--small ngc-card-header{--ngc-card-header-title-line-height: 2rem}.gator-modal--small .gator-modal-content{padding:var(--spacing-4) var(--spacing-4) 56px var(--spacing-4)}.gator-modal--small .gator-modal-footer{flex-direction:column-reverse;align-items:center;padding:var(--spacing-4)}.gator-modal--small .gator-modal-warning{margin-top:var(--spacing-6)}.gator-modal--small .gator-modal-action-buttons{flex-direction:column-reverse;width:100%}.gator-modal--small .gator-modal-action-buttons ngc-button{--ngc-button-width: 100% }.gator-modal--standard{--ngc-card-width: 600px}.gator-modal--standard .gator-modal-header{border-radius:1rem 1rem 0 0}.gator-modal--standard ngc-card-header{--ngc-card-header-title-font-size: 1.625rem;--ngc-card-header-title-line-height: 2.25rem}.gator-modal--standard .gator-modal-footer{flex-direction:row}.gator-modal--standard .gator-modal-warning{margin-right:auto}.gator-modal--standard .gator-modal-action-buttons{margin-left:auto}.gator-modal--standard .gator-modal-action-buttons ngc-skeleton-loader:first-child{--ngc-skeleton-loader-margin: 0 var(--spacing-3) 0 0}.gator-modal--fullscreen{--ngc-card-border-radius: 0;--ngc-card-background-color: var(--color-neutral-10)}.gator-modal--fullscreen .gator-modal-wrapper{height:100vh;width:100vw;max-height:100vh}.gator-modal--fullscreen .gator-modal-header{margin-left:48px}.gator-modal--fullscreen .gator-modal-header ngc-card-header{justify-content:center;--ngc-card-header-title-font-size: 2rem;--ngc-card-header-title-line-height: 2.625rem;--ngc-text-detail-content-alignment: center}.gator-modal--fullscreen .gator-modal-footer{flex-direction:column-reverse;justify-content:center;align-items:center}.gator-modal--fullscreen .gator-modal-warning{margin-top:var(--spacing-3)}";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t='.gator-switch-container{display:inline-flex;font-family:var(--text-family-body, "Open Sans", sans-serif)}.gator-switch{display:inline-flex;align-items:center;position:relative;justify-content:center;width:var(--ngc-switch-width);height:var(--ngc-switch-height);border-radius:var(--ngc-switch-border-radius);color:var(--ngc-switch-off-background-color);background-color:currentColor}.gator-switch-container label{margin:var(--ngc-switch-label-margin)}.gator-switch input{opacity:0}.gator-switch-slider{position:absolute;width:var(--ngc-switch-slider-width);height:var(--ngc-switch-slider-height);border-radius:var(--ngc-switch-slider-border-radius);top:.125rem;left:.125rem}.gator-switch-slider:after{border-radius:inherit;content:"";position:absolute;
|
|
1
|
+
const t='.gator-switch-container{display:inline-flex;font-family:var(--text-family-body, "Open Sans", sans-serif)}.gator-switch{display:inline-flex;align-items:center;position:relative;justify-content:center;width:var(--ngc-switch-width);height:var(--ngc-switch-height);border-radius:var(--ngc-switch-border-radius);color:var(--ngc-switch-off-background-color);background-color:currentColor}.gator-switch-container label{margin:var(--ngc-switch-label-margin)}.gator-switch input{opacity:0}.gator-switch-slider{position:absolute;width:var(--ngc-switch-slider-width);height:var(--ngc-switch-slider-height);border-radius:var(--ngc-switch-slider-border-radius);top:.125rem;left:.125rem}.gator-switch-slider:after{border-radius:inherit;content:"";position:absolute;inset:0;background:var(--ngc-switch-slider-color);box-shadow:var(--ngc-switch-slider-box-shadow)}.gator-switch-on{color:var(--ngc-switch-on-background-color)}.gator-switch-on .gator-switch-slider{left:1.25rem}.gator-switch-disabled{opacity:var(--ngc-switch-disabled-opacity);pointer-events:none}.gator-switch:focus-within{outline:var(--ngc-switch-focus-outline);outline-offset:var(--ngc-switch-focus-outline-offset)}.gator-switch:hover{cursor:pointer}.gator-switch:hover .gator-switch-slider:before{border-radius:inherit;content:"";position:absolute;opacity:.3;inset:0;-webkit-transform:scale(2);transform:scale(2);background:currentColor}.gator-switch:hover .gator-switch-slider:active:before{opacity:.7}.gator-switch-toggle-on .gator-switch-slider{animation:switchon .3s;animation-fill-mode:ease}.gator-switch-toggle-off .gator-switch-slider{animation:switchoff .3s;animation-fill-mode:ease}@keyframes switchon{0%{left:.125rem}to{left:1.25rem}}@keyframes switchoff{0%{left:1.25rem}to{left:.125rem}}';export{t as default};
|
package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t='.gator-text-detail{display:inline-flex;flex-direction:row;align-items:center;width:100%}.gator-text-detail_vertical{flex-direction:column;justify-content:center;text-align:center}.gator-text-detail_vertical .gator-text-detail-content{align-items:center;margin:var(--spacing-3) 0}.gator-text-detail_vertical .gator-text-detail-loading{align-items:center}.gator-text-
|
|
1
|
+
const t='.gator-text-detail{display:inline-flex;flex-direction:row;align-items:center;width:100%;gap:1rem}.gator-text-detail-loading ngc-skeleton-loader[full-width]{width:100%}.gator-text-detail-loading .gator-text-detail-title{width:100%}.gator-text-detail_vertical{flex-direction:column;justify-content:center;text-align:center}.gator-text-detail_vertical .gator-text-detail-content{align-self:stretch;align-items:center;margin:var(--spacing-3) 0}.gator-text-detail_vertical .gator-text-detail-loading{align-items:center}.gator-text-detail-content{display:inline-flex;flex-direction:column;flex-grow:1;padding:0 var(--spacing-2);gap:var(--spacing-2);align-items:var(--ngc-text-detail-content-alignment, start)}.gator-text-detail-content.gator-text-detail_small{gap:var(--spacing-1)}.gator-text-detail-content_invert-title{flex-direction:column-reverse}.gator-text-detail-title{display:inline-flex;flex-direction:row;align-items:center;color:var(--ngc-text-detail-title-color, var(--color-neutral-70));font-family:var(--text-family-body, "Open Sans"),sans-serif;font-weight:var(--ngc-text-detail-title-font-weight, 400);font-size:var(--ngc-text-detail-title-font-size, var(--text-size-body-1, 1.0625rem));line-height:var(--ngc-text-detail-title-line-height, var(--text-line-height-body-1, 1.5rem));overflow-wrap:anywhere}.gator-text-detail-title_large{font-family:var(--text-family-headings, "nCino+Avenir"),sans-serif;font-size:var(--ngc-text-detail-title-font-size-large, var(--text-size-heading-3, 1.625rem));line-height:var(--ngc-text-detail-title-line-height-large, var(--text-line-height-h5, 1.875rem));font-weight:600}.gator-text-detail-title_small{font-size:var(--ngc-text-detail-title-font-size-small, var(--text-size-body-2, .9375rem));line-height:var(--ngc-text-detail-title-line-height-small, var(--text-line-height-body-2, 1.375rem))}.gator-text-detail-subtitle-icon{padding-left:var(--spacing-2);--ngc-icon-color: var(--ngc-text-detail-icon-color, var(--color-neutral-50));--ngc-icon-width: var(--ngc-text-detail-icon-icon-width, 1.125rem);--ngc-icon-height: var(--ngc-text-detail-icon-icon-height, 1.125rem)}.gator-text-detail-subtitle{color:var(--ngc-text-detail-subtitle-color, var(--color-neutral-50));font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-text-detail-subtitle-font-size, var(--text-size-body-2, .9375rem));line-height:var(--ngc-text-detail-subtitle-line-height, var(--text-line-height-caption, 1.125rem));display:flex;flex-direction:row;overflow-wrap:anywhere}';export{t as default};
|