From e1f4d988bfb35b5e7d45007da23ab4b89129735d Mon Sep 17 00:00:00 2001 From: GH Pages Bot Date: Thu, 17 Oct 2024 08:17:20 +0000 Subject: [PATCH] Deploy Storybook to GitHub Pages --- 1713.154e0f6a.iframe.bundle.js | 2 + 1713.154e0f6a.iframe.bundle.js.LICENSE.txt | 6 + 2840.4d99b275.iframe.bundle.js | 405 + 2840.4d99b275.iframe.bundle.js.LICENSE.txt | 66 + 2840.4d99b275.iframe.bundle.js.map | 1 + 4190.4c769d8b.iframe.bundle.js | 1 + 4463.67677180.iframe.bundle.js | 1 + 4699.f4fbdc7a.iframe.bundle.js | 1 + 4915.a11aa598.iframe.bundle.js | 94 + 4915.a11aa598.iframe.bundle.js.map | 1 + 6403.8ab6aedc.iframe.bundle.js | 1 + 7122.2391adaf.iframe.bundle.js | 1 + 7227.52f84851.iframe.bundle.js | 1 + 7364.e1fe58ce.iframe.bundle.js | 1 + 7648.44a0dbf7.iframe.bundle.js | 1 + 8013.fc9abc01.iframe.bundle.js | 1 + 8681.ba6df9f0.iframe.bundle.js | 1 + 8735.e3821668.iframe.bundle.js | 1 + 8836.8e13965f.iframe.bundle.js | 1 + 9341.1eca5acb.iframe.bundle.js | 1 + 9740.86f1a6e2.iframe.bundle.js | 2 + 9740.86f1a6e2.iframe.bundle.js.LICENSE.txt | 6 + 9756.8c2c801b.iframe.bundle.js | 2 + 9756.8c2c801b.iframe.bundle.js.LICENSE.txt | 6 + ...rt-alert-stories.c822284b.iframe.bundle.js | 2 + ...ries.c822284b.iframe.bundle.js.LICENSE.txt | 6 + ...r-avatar-stories.2098e084.iframe.bundle.js | 2 + ...ries.2098e084.iframe.bundle.js.LICENSE.txt | 6 + ...ge-badge-stories.d37b6c39.iframe.bundle.js | 2 + ...ries.d37b6c39.iframe.bundle.js.LICENSE.txt | 6 + ...eadcrumb-stories.5f5805a8.iframe.bundle.js | 2 + ...ries.5f5805a8.iframe.bundle.js.LICENSE.txt | 6 + ...n-button-stories.4f51b5a2.iframe.bundle.js | 2 + ...ries.4f51b5a2.iframe.bundle.js.LICENSE.txt | 6 + ...t-blocks-stories.f9542cea.iframe.bundle.js | 2 + ...ries.f9542cea.iframe.bundle.js.LICENSE.txt | 6 + ...n-blocks-stories.c2c3c79f.iframe.bundle.js | 2 + ...ries.c2c3c79f.iframe.bundle.js.LICENSE.txt | 6 + ...t-blocks-stories.72877839.iframe.bundle.js | 2 + ...ries.72877839.iframe.bundle.js.LICENSE.txt | 6 + ...checkbox-stories.46fce1e3.iframe.bundle.js | 2 + ...ries.46fce1e3.iframe.bundle.js.LICENSE.txt | 6 + ...ontainer-stories.d328b413.iframe.bundle.js | 1 + ...tepicker-stories.31c186b5.iframe.bundle.js | 2 + ...ries.31c186b5.iframe.bundle.js.LICENSE.txt | 6 + ...g-dialog-stories.5a7933cd.iframe.bundle.js | 2 + ...ries.5a7933cd.iframe.bundle.js.LICENSE.txt | 6 + ...r-drawer-stories.ca0867e9.iframe.bundle.js | 2 + ...ries.ca0867e9.iframe.bundle.js.LICENSE.txt | 6 + ...own-menu-stories.99a9d856.iframe.bundle.js | 2 + ...ries.99a9d856.iframe.bundle.js.LICENSE.txt | 6 + ...or-input-stories.89c3c790.iframe.bundle.js | 1 + ...ut-input-stories.4776735d.iframe.bundle.js | 2 + ...ries.4776735d.iframe.bundle.js.LICENSE.txt | 6 + ...el-label-stories.67a9d596.iframe.bundle.js | 1 + ...r-loader-stories.d73b8400.iframe.bundle.js | 2 + ...ries.d73b8400.iframe.bundle.js.LICENSE.txt | 6 + ...tem-menu-stories.458cb6a4.iframe.bundle.js | 2 + ...ries.458cb6a4.iframe.bundle.js.LICENSE.txt | 6 + ...gination-stories.44ca6500.iframe.bundle.js | 2 + ...ries.44ca6500.iframe.bundle.js.LICENSE.txt | 6 + ...ress-bar-stories.fb1e7a56.iframe.bundle.js | 1 + ...ss-steps-stories.7d57c24a.iframe.bundle.js | 2 + ...ries.7d57c24a.iframe.bundle.js.LICENSE.txt | 6 + ...o-button-stories.9a78f0f1.iframe.bundle.js | 2 + ...ries.9a78f0f1.iframe.bundle.js.LICENSE.txt | 6 + ...h-search-stories.7e961630.iframe.bundle.js | 2 + ...ries.7e961630.iframe.bundle.js.LICENSE.txt | 6 + ...ect-atom-stories.0b4d86f3.iframe.bundle.js | 2 + ...ries.0b4d86f3.iframe.bundle.js.LICENSE.txt | 6 + ...t-select-stories.c1c3754d.iframe.bundle.js | 2 + ...ries.c1c3754d.iframe.bundle.js.LICENSE.txt | 6 + ...-sidebar-stories.d66a0c79.iframe.bundle.js | 2 + ...ries.d66a0c79.iframe.bundle.js.LICENSE.txt | 6 + ...skeleton-stories.4a198807.iframe.bundle.js | 1 + ...h-switch-stories.b24b02df.iframe.bundle.js | 1 + ...abs-tabs-stories.7e8aab1a.iframe.bundle.js | 2 + ...ries.7e8aab1a.iframe.bundle.js.LICENSE.txt | 6 + ...textarea-stories.2424f78b.iframe.bundle.js | 1 + ...le-title-stories.96c5d77d.iframe.bundle.js | 2 + ...ries.96c5d77d.iframe.bundle.js.LICENSE.txt | 6 + ...-toaster-stories.629eef38.iframe.bundle.js | 2 + ...ries.629eef38.iframe.bundle.js.LICENSE.txt | 6 + ...-tooltip-stories.3b0692f6.iframe.bundle.js | 2 + ...ries.3b0692f6.iframe.bundle.js.LICENSE.txt | 6 + ...r-topbar-stories.e5801acf.iframe.bundle.js | 2 + ...ries.e5801acf.iframe.bundle.js.LICENSE.txt | 6 + favicon.svg | 1 + iframe.html | 513 + index.html | 185 + index.json | 1 + main.d7202902.iframe.bundle.js | 1 + nunito-sans-bold-italic.woff2 | Bin 0 -> 49460 bytes nunito-sans-bold.woff2 | Bin 0 -> 47144 bytes nunito-sans-italic.woff2 | Bin 0 -> 49620 bytes nunito-sans-regular.woff2 | Bin 0 -> 47072 bytes project.json | 1 + runtime~main.d0e96487.iframe.bundle.js | 1 + .../manager-bundle.js | 333 + .../manager-bundle.js.LEGAL.txt | 40 + .../essentials-actions-4/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../manager-bundle.js | 12 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-controls-3/manager-bundle.js | 394 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-measure-8/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-outline-9/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-toolbars-7/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 .../essentials-viewport-6/manager-bundle.js | 3 + .../manager-bundle.js.LEGAL.txt | 0 sb-addons/interactions-11/manager-bundle.js | 211 + .../manager-bundle.js.LEGAL.txt | 0 sb-addons/links-2/manager-bundle.js | 3 + sb-addons/links-2/manager-bundle.js.LEGAL.txt | 0 sb-addons/onboarding-1/manager-bundle.js | 129 + .../onboarding-1/manager-bundle.js.LEGAL.txt | 0 .../common-manager-bundle.js | 3 + .../common-manager-bundle.js.LEGAL.txt | 0 sb-common-assets/favicon.svg | 1 + .../nunito-sans-bold-italic.woff2 | Bin 0 -> 49460 bytes sb-common-assets/nunito-sans-bold.woff2 | Bin 0 -> 47144 bytes sb-common-assets/nunito-sans-italic.woff2 | Bin 0 -> 49620 bytes sb-common-assets/nunito-sans-regular.woff2 | Bin 0 -> 47072 bytes sb-manager/globals-module-info.js | 1006 + sb-manager/globals-runtime.js | 54400 ++++++++++++++++ sb-manager/globals.js | 48 + sb-manager/runtime.js | 12089 ++++ sb-preview/globals.js | 33 + sb-preview/runtime.js | 9498 +++ ...-Spectra-stories.f62b81c8.iframe.bundle.js | 2 + ...ries.f62b81c8.iframe.bundle.js.LICENSE.txt | 6 + ...SureCart-stories.5ceebd1c.iframe.bundle.js | 2 + ...ries.5ceebd1c.iframe.bundle.js.LICENSE.txt | 6 + ...SureRank-stories.a116ac14.iframe.bundle.js | 2 + ...ries.a116ac14.iframe.bundle.js.LICENSE.txt | 6 + ...rd-astra-stories.fd1dbda2.iframe.bundle.js | 2 + ...ries.fd1dbda2.iframe.bundle.js.LICENSE.txt | 6 + ...-spectra-stories.57dcf540.iframe.bundle.js | 2 + ...ries.57dcf540.iframe.bundle.js.LICENSE.txt | 6 + ...g-backup-stories.c9a2d2a2.iframe.bundle.js | 1 + ...-connect-stories.22d1a0d2.iframe.bundle.js | 1 + ...ing-done-stories.767e93e2.iframe.bundle.js | 2 + ...ries.767e93e2.iframe.bundle.js.LICENSE.txt | 6 + ...-connect-stories.3d02df6a.iframe.bundle.js | 1 + ...g-import-stories.49f74efd.iframe.bundle.js | 1 + ...-profile-stories.3298e3c2.iframe.bundle.js | 1 + ...tup-done-stories.821d7256.iframe.bundle.js | 2 + ...ries.821d7256.iframe.bundle.js.LICENSE.txt | 6 + ...up-tools-stories.156ad81f.iframe.bundle.js | 1 + ...g-social-stories.f2955856.iframe.bundle.js | 1 + ...ing-spam-stories.e7695e3f.iframe.bundle.js | 1 + ...-welcome-stories.3aef8a73.iframe.bundle.js | 1 + 156 files changed, 79818 insertions(+) create mode 100644 1713.154e0f6a.iframe.bundle.js create mode 100644 1713.154e0f6a.iframe.bundle.js.LICENSE.txt create mode 100644 2840.4d99b275.iframe.bundle.js create mode 100644 2840.4d99b275.iframe.bundle.js.LICENSE.txt create mode 100644 2840.4d99b275.iframe.bundle.js.map create mode 100644 4190.4c769d8b.iframe.bundle.js create mode 100644 4463.67677180.iframe.bundle.js create mode 100644 4699.f4fbdc7a.iframe.bundle.js create mode 100644 4915.a11aa598.iframe.bundle.js create mode 100644 4915.a11aa598.iframe.bundle.js.map create mode 100644 6403.8ab6aedc.iframe.bundle.js create mode 100644 7122.2391adaf.iframe.bundle.js create mode 100644 7227.52f84851.iframe.bundle.js create mode 100644 7364.e1fe58ce.iframe.bundle.js create mode 100644 7648.44a0dbf7.iframe.bundle.js create mode 100644 8013.fc9abc01.iframe.bundle.js create mode 100644 8681.ba6df9f0.iframe.bundle.js create mode 100644 8735.e3821668.iframe.bundle.js create mode 100644 8836.8e13965f.iframe.bundle.js create mode 100644 9341.1eca5acb.iframe.bundle.js create mode 100644 9740.86f1a6e2.iframe.bundle.js create mode 100644 9740.86f1a6e2.iframe.bundle.js.LICENSE.txt create mode 100644 9756.8c2c801b.iframe.bundle.js create mode 100644 9756.8c2c801b.iframe.bundle.js.LICENSE.txt create mode 100644 components-alert-alert-stories.c822284b.iframe.bundle.js create mode 100644 components-alert-alert-stories.c822284b.iframe.bundle.js.LICENSE.txt create mode 100644 components-avatar-avatar-stories.2098e084.iframe.bundle.js create mode 100644 components-avatar-avatar-stories.2098e084.iframe.bundle.js.LICENSE.txt create mode 100644 components-badge-badge-stories.d37b6c39.iframe.bundle.js create mode 100644 components-badge-badge-stories.d37b6c39.iframe.bundle.js.LICENSE.txt create mode 100644 components-breadcrumb-breadcrumb-stories.5f5805a8.iframe.bundle.js create mode 100644 components-breadcrumb-breadcrumb-stories.5f5805a8.iframe.bundle.js.LICENSE.txt create mode 100644 components-button-button-stories.4f51b5a2.iframe.bundle.js create mode 100644 components-button-button-stories.4f51b5a2.iframe.bundle.js.LICENSE.txt create mode 100644 components-cards-list-blocks-stories.f9542cea.iframe.bundle.js create mode 100644 components-cards-list-blocks-stories.f9542cea.iframe.bundle.js.LICENSE.txt create mode 100644 components-cards-plugin-blocks-stories.c2c3c79f.iframe.bundle.js create mode 100644 components-cards-plugin-blocks-stories.c2c3c79f.iframe.bundle.js.LICENSE.txt create mode 100644 components-cards-widget-blocks-stories.72877839.iframe.bundle.js create mode 100644 components-cards-widget-blocks-stories.72877839.iframe.bundle.js.LICENSE.txt create mode 100644 components-checkbox-checkbox-stories.46fce1e3.iframe.bundle.js create mode 100644 components-checkbox-checkbox-stories.46fce1e3.iframe.bundle.js.LICENSE.txt create mode 100644 components-container-container-stories.d328b413.iframe.bundle.js create mode 100644 components-datepicker-datepicker-stories.31c186b5.iframe.bundle.js create mode 100644 components-datepicker-datepicker-stories.31c186b5.iframe.bundle.js.LICENSE.txt create mode 100644 components-dialog-dialog-stories.5a7933cd.iframe.bundle.js create mode 100644 components-dialog-dialog-stories.5a7933cd.iframe.bundle.js.LICENSE.txt create mode 100644 components-drawer-drawer-stories.ca0867e9.iframe.bundle.js create mode 100644 components-drawer-drawer-stories.ca0867e9.iframe.bundle.js.LICENSE.txt create mode 100644 components-dropdown-menu-dropdown-menu-stories.99a9d856.iframe.bundle.js create mode 100644 components-dropdown-menu-dropdown-menu-stories.99a9d856.iframe.bundle.js.LICENSE.txt create mode 100644 components-editor-input-editor-input-stories.89c3c790.iframe.bundle.js create mode 100644 components-input-input-stories.4776735d.iframe.bundle.js create mode 100644 components-input-input-stories.4776735d.iframe.bundle.js.LICENSE.txt create mode 100644 components-label-label-stories.67a9d596.iframe.bundle.js create mode 100644 components-loader-loader-stories.d73b8400.iframe.bundle.js create mode 100644 components-loader-loader-stories.d73b8400.iframe.bundle.js.LICENSE.txt create mode 100644 components-menu-item-menu-stories.458cb6a4.iframe.bundle.js create mode 100644 components-menu-item-menu-stories.458cb6a4.iframe.bundle.js.LICENSE.txt create mode 100644 components-pagination-pagination-stories.44ca6500.iframe.bundle.js create mode 100644 components-pagination-pagination-stories.44ca6500.iframe.bundle.js.LICENSE.txt create mode 100644 components-progress-bar-progress-bar-stories.fb1e7a56.iframe.bundle.js create mode 100644 components-progress-steps-progress-steps-stories.7d57c24a.iframe.bundle.js create mode 100644 components-progress-steps-progress-steps-stories.7d57c24a.iframe.bundle.js.LICENSE.txt create mode 100644 components-radio-button-radio-button-stories.9a78f0f1.iframe.bundle.js create mode 100644 components-radio-button-radio-button-stories.9a78f0f1.iframe.bundle.js.LICENSE.txt create mode 100644 components-search-search-stories.7e961630.iframe.bundle.js create mode 100644 components-search-search-stories.7e961630.iframe.bundle.js.LICENSE.txt create mode 100644 components-select-select-atom-stories.0b4d86f3.iframe.bundle.js create mode 100644 components-select-select-atom-stories.0b4d86f3.iframe.bundle.js.LICENSE.txt create mode 100644 components-select-select-stories.c1c3754d.iframe.bundle.js create mode 100644 components-select-select-stories.c1c3754d.iframe.bundle.js.LICENSE.txt create mode 100644 components-sidebar-sidebar-stories.d66a0c79.iframe.bundle.js create mode 100644 components-sidebar-sidebar-stories.d66a0c79.iframe.bundle.js.LICENSE.txt create mode 100644 components-skeleton-skeleton-stories.4a198807.iframe.bundle.js create mode 100644 components-switch-switch-stories.b24b02df.iframe.bundle.js create mode 100644 components-tabs-tabs-stories.7e8aab1a.iframe.bundle.js create mode 100644 components-tabs-tabs-stories.7e8aab1a.iframe.bundle.js.LICENSE.txt create mode 100644 components-textarea-textarea-stories.2424f78b.iframe.bundle.js create mode 100644 components-title-title-stories.96c5d77d.iframe.bundle.js create mode 100644 components-title-title-stories.96c5d77d.iframe.bundle.js.LICENSE.txt create mode 100644 components-toaster-toaster-stories.629eef38.iframe.bundle.js create mode 100644 components-toaster-toaster-stories.629eef38.iframe.bundle.js.LICENSE.txt create mode 100644 components-tooltip-tooltip-stories.3b0692f6.iframe.bundle.js create mode 100644 components-tooltip-tooltip-stories.3b0692f6.iframe.bundle.js.LICENSE.txt create mode 100644 components-topbar-topbar-stories.e5801acf.iframe.bundle.js create mode 100644 components-topbar-topbar-stories.e5801acf.iframe.bundle.js.LICENSE.txt create mode 100644 favicon.svg create mode 100644 iframe.html create mode 100644 index.html create mode 100644 index.json create mode 100644 main.d7202902.iframe.bundle.js create mode 100644 nunito-sans-bold-italic.woff2 create mode 100644 nunito-sans-bold.woff2 create mode 100644 nunito-sans-italic.woff2 create mode 100644 nunito-sans-regular.woff2 create mode 100644 project.json create mode 100644 runtime~main.d0e96487.iframe.bundle.js create mode 100644 sb-addons/chromatic-com-storybook-10/manager-bundle.js create mode 100644 sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/essentials-actions-4/manager-bundle.js create mode 100644 sb-addons/essentials-actions-4/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/essentials-backgrounds-5/manager-bundle.js create mode 100644 sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/essentials-controls-3/manager-bundle.js create mode 100644 sb-addons/essentials-controls-3/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/essentials-measure-8/manager-bundle.js create mode 100644 sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/essentials-outline-9/manager-bundle.js create mode 100644 sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/essentials-toolbars-7/manager-bundle.js create mode 100644 sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/essentials-viewport-6/manager-bundle.js create mode 100644 sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/interactions-11/manager-bundle.js create mode 100644 sb-addons/interactions-11/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/links-2/manager-bundle.js create mode 100644 sb-addons/links-2/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/onboarding-1/manager-bundle.js create mode 100644 sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt create mode 100644 sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js create mode 100644 sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt create mode 100644 sb-common-assets/favicon.svg create mode 100644 sb-common-assets/nunito-sans-bold-italic.woff2 create mode 100644 sb-common-assets/nunito-sans-bold.woff2 create mode 100644 sb-common-assets/nunito-sans-italic.woff2 create mode 100644 sb-common-assets/nunito-sans-regular.woff2 create mode 100644 sb-manager/globals-module-info.js create mode 100644 sb-manager/globals-runtime.js create mode 100644 sb-manager/globals.js create mode 100644 sb-manager/runtime.js create mode 100644 sb-preview/globals.js create mode 100644 sb-preview/runtime.js create mode 100644 templates-admin-settings-Spectra-admin-settings-Spectra-stories.f62b81c8.iframe.bundle.js create mode 100644 templates-admin-settings-Spectra-admin-settings-Spectra-stories.f62b81c8.iframe.bundle.js.LICENSE.txt create mode 100644 templates-admin-settings-SureCart-admin-settings-SureCart-stories.5ceebd1c.iframe.bundle.js create mode 100644 templates-admin-settings-SureCart-admin-settings-SureCart-stories.5ceebd1c.iframe.bundle.js.LICENSE.txt create mode 100644 templates-admin-settings-SureRank-admin-settings-SureRank-stories.a116ac14.iframe.bundle.js create mode 100644 templates-admin-settings-SureRank-admin-settings-SureRank-stories.a116ac14.iframe.bundle.js.LICENSE.txt create mode 100644 templates-dashboard-astra-dashboard-astra-stories.fd1dbda2.iframe.bundle.js create mode 100644 templates-dashboard-astra-dashboard-astra-stories.fd1dbda2.iframe.bundle.js.LICENSE.txt create mode 100644 templates-dashboard-spectra-dashboard-spectra-stories.57dcf540.iframe.bundle.js create mode 100644 templates-dashboard-spectra-dashboard-spectra-stories.57dcf540.iframe.bundle.js.LICENSE.txt create mode 100644 templates-onboarding-backup-onboarding-backup-stories.c9a2d2a2.iframe.bundle.js create mode 100644 templates-onboarding-connect-onboarding-connect-stories.22d1a0d2.iframe.bundle.js create mode 100644 templates-onboarding-done-onboarding-done-stories.767e93e2.iframe.bundle.js create mode 100644 templates-onboarding-done-onboarding-done-stories.767e93e2.iframe.bundle.js.LICENSE.txt create mode 100644 templates-onboarding-email-smtp-onboarding-smtp-connect-stories.3d02df6a.iframe.bundle.js create mode 100644 templates-onboarding-import-onboarding-import-stories.49f74efd.iframe.bundle.js create mode 100644 templates-onboarding-profile-onboarding-profile-stories.3298e3c2.iframe.bundle.js create mode 100644 templates-onboarding-setup-done-onboarding-setup-done-stories.821d7256.iframe.bundle.js create mode 100644 templates-onboarding-setup-done-onboarding-setup-done-stories.821d7256.iframe.bundle.js.LICENSE.txt create mode 100644 templates-onboarding-setup-tools-onboarding-setup-tools-stories.156ad81f.iframe.bundle.js create mode 100644 templates-onboarding-social-onboarding-social-stories.f2955856.iframe.bundle.js create mode 100644 templates-onboarding-spam-onboarding-spam-stories.e7695e3f.iframe.bundle.js create mode 100644 templates-onboarding-welcome-onboarding-welcome-stories.3aef8a73.iframe.bundle.js diff --git a/1713.154e0f6a.iframe.bundle.js b/1713.154e0f6a.iframe.bundle.js new file mode 100644 index 00000000..347ae10f --- /dev/null +++ b/1713.154e0f6a.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 1713.154e0f6a.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_bsf_force_ui=self.webpackChunk_bsf_force_ui||[]).push([[1713],{"./node_modules/@lexical/react/LexicalAutoFocusPlugin.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{x:function(){return o}});var _lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@lexical/react/LexicalComposerContext.prod.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function o({defaultSelection:o}){const[l]=(0,_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_1__.DF)();return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{l.focus((()=>{const e=document.activeElement,t=l.getRootElement();null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})}),{defaultSelection:o})}),[o,l]),null}},"./node_modules/@lexical/react/LexicalComposer.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{n:function(){return p}});var _lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@lexical/react/LexicalComposerContext.prod.mjs"),lexical__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lexical/Lexical.prod.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,m=s?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect,u={tag:"history-merge"};function p({initialConfig:a,children:c}){const p=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{const{theme:t,namespace:c,nodes:l,onError:d,editorState:m,html:p}=a,f=(0,_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_2__.Mx)(null,t),E=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.ie)({editable:a.editable,html:p,namespace:c,nodes:l,onError:e=>d(e,E),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update((()=>{const t=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.Ni)();if(t.isEmpty()){const o=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.lJ)();t.append(o);const n=s?document.activeElement:null;(null!==(0,lexical__WEBPACK_IMPORTED_MODULE_3__.vJ)()||null!==n&&n===e.getRootElement())&&o.select()}}),u);else if(null!==t)switch(typeof t){case"string":{const o=e.parseEditorState(t);e.setEditorState(o,u);break}case"object":e.setEditorState(t,u);break;case"function":e.update((()=>{(0,lexical__WEBPACK_IMPORTED_MODULE_3__.Ni)().isEmpty()&&t(e)}),u)}}(E,m),[E,f]}),[]);return m((()=>{const e=a.editable,[t]=p;t.setEditable(void 0===e||e)}),[]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_2__.Gu.Provider,{value:p,children:c})}},"./node_modules/@lexical/react/LexicalComposerContext.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{DF:function(){return u},Gu:function(){return l},Mx:function(){return o}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");var t=function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(e){const n=new URLSearchParams;n.append("code",e);for(let e=1;e{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),z=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(D,q)),[q,D]);return m((()=>(k(e.isEditable()),e.registerEditableListener((e=>{k(e)})))),[e]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div",{...g,"aria-activedescendant":R?t:void 0,"aria-autocomplete":R?i:"none","aria-controls":R?a:void 0,"aria-describedby":d,"aria-expanded":R&&"combobox"===w?!!c:void 0,"aria-label":s,"aria-labelledby":u,"aria-multiline":f,"aria-owns":R?b:void 0,"aria-readonly":!R||void 0,"aria-required":p,autoCapitalize:x,className:E,contentEditable:R,"data-testid":L,id:v,ref:z,role:R?w:void 0,spellCheck:y,style:C,tabIndex:h})}));function p(e){return e.getEditorState().read((0,_lexical_text__WEBPACK_IMPORTED_MODULE_2__.yl)(e.isComposing()))}const x=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((function E(t,i){const{placeholder:a,...r}=t,[n]=(0,_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_3__.DF)();return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(b,{editor:n,...r,ref:i}),null!=a&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(v,{editor:n,content:a})]})}));function v({content:e,editor:i}){const a=function(e){const[t,i]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((()=>p(e)));return m((()=>{function t(){const t=p(e);i(t)}return t(),(0,_lexical_utils__WEBPACK_IMPORTED_MODULE_4__.Sd)(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(i),[n,o]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(i.isEditable());if((0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>(o(i.isEditable()),i.registerEditableListener((e=>{o(e)})))),[i]),!a)return null;let d=null;return"function"==typeof e?d=e(n):null!==e&&(d=e),null===d?null:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div",{"aria-hidden":!0,children:d})}},"./node_modules/@lexical/react/LexicalEditorRefPlugin.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{G:function(){return o}});var _lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@lexical/react/LexicalComposerContext.prod.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function o({editorRef:o}){const[r]=(0,_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_1__.DF)();return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{"function"==typeof o?o(r):"object"==typeof o&&(o.current=r)}),[r]),null}},"./node_modules/@lexical/react/LexicalErrorBoundary.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{R:function(){return a}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");function t(r,e){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},t(r,e)}var o={error:null},n=function(e){var n,a;function s(){for(var r,t=arguments.length,n=new Array(t),a=0;a1){const n=e._nodeMap,r=n.get(i.anchor.key),o=n.get(s.anchor.key);return r&&o&&!t._nodeMap.has(r.__key)&&(0,Lexical_prod.kF)(r)&&1===r.__text.length&&1===i.anchor.offset?g:h}const l=c[0],f=t._nodeMap.get(l.__key);if(!(0,Lexical_prod.kF)(f)||!(0,Lexical_prod.kF)(l)||f.__mode!==l.__mode)return h;const p=f.__text,y=l.__text;if(p===y)return h;const k=i.anchor,C=s.anchor;if(k.key!==C.key||"text"!==k.type)return h;const x=k.offset,M=C.offset,z=y.length-p.length;return 1===z&&M===x-1?g:-1===z&&M===x+1?_:-1===z&&M===x?S:h}function k(t,e){let n=Date.now(),r=h;return(o,i,s,c,d,m)=>{const g=Date.now();if(m.has("historic"))return r=h,n=g,p;const _=y(o,i,c,d,t.isComposing()),S=(()=>{const S=null===s||s.editor===t,y=m.has("history-push");if(!y&&S&&m.has("history-merge"))return l;if(null===o)return f;const k=i._selection;return c.size>0||d.size>0?!1===y&&_!==h&&_===r&&gr.exportJSON())))===JSON.stringify(n.read((()=>o.exportJSON())))}(Array.from(c)[0],o,i)?l:f:null!==k?l:p})();return n=g,r=_,S}}function C(t){t.undoStack=[],t.redoStack=[],t.current=null}var react=__webpack_require__("./node_modules/react/index.js");function a({delay:a,externalHistoryState:c}){const[l]=(0,LexicalComposerContext_prod.DF)();return function(t,a,c=1e3){const l=(0,react.useMemo)((()=>a||{current:null,redoStack:[],undoStack:[]}),[a]);(0,react.useEffect)((()=>function x(a,u,d){const l=k(a,d),h=(0,LexicalUtils_prod.Sd)(a.registerCommand(Lexical_prod.ZK,(()=>(function(t,e){const n=e.redoStack,r=e.undoStack;if(0!==r.length){const o=e.current,i=r.pop();null!==o&&(n.push(o),t.dispatchCommand(Lexical_prod.WW,!0)),0===r.length&&t.dispatchCommand(Lexical_prod.Kf,!1),e.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}}(a,u),!0)),Lexical_prod.jZ),a.registerCommand(Lexical_prod.V3,(()=>(function(t,e){const n=e.redoStack,r=e.undoStack;if(0!==n.length){const o=e.current;null!==o&&(r.push(o),t.dispatchCommand(Lexical_prod.Kf,!0));const i=n.pop();0===n.length&&t.dispatchCommand(Lexical_prod.WW,!1),e.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}}(a,u),!0)),Lexical_prod.jZ),a.registerCommand(Lexical_prod.SK,(()=>(C(u),!1)),Lexical_prod.jZ),a.registerCommand(Lexical_prod.t5,(()=>(C(u),a.dispatchCommand(Lexical_prod.WW,!1),a.dispatchCommand(Lexical_prod.Kf,!1),!0)),Lexical_prod.jZ),a.registerUpdateListener((({editorState:t,prevEditorState:e,dirtyLeaves:n,dirtyElements:r,tags:o})=>{const i=u.current,d=u.redoStack,h=u.undoStack,m=null===i?null:i.editorState;if(null!==i&&t===m)return;const g=l(e,t,i,n,r,o);if(g===f)0!==d.length&&(u.redoStack=[],a.dispatchCommand(Lexical_prod.WW,!1)),null!==i&&(h.push({...i}),a.dispatchCommand(Lexical_prod.Kf,!0));else if(g===p)return;u.current={editor:a,editorState:t}})));return h}(t,l,c)),[c,t,l])}(l,c,a),null}},"./node_modules/@lexical/react/LexicalOnChangePlugin.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{D:function(){return i}});var _lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@lexical/react/LexicalComposerContext.prod.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;function i({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:o=!1,onChange:i}){const[n]=(0,_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_1__.DF)();return r((()=>{if(i)return n.registerUpdateListener((({editorState:e,dirtyElements:r,dirtyLeaves:a,prevEditorState:d,tags:s})=>{o&&0===r.size&&0===a.size||t&&s.has("history-merge")||d.isEmpty()||i(e,n,s)}))}),[n,t,o,i]),null}},"./node_modules/@lexical/react/LexicalPlainTextPlugin.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{h:function(){return LexicalPlainTextPlugin_prod_h}});var LexicalComposerContext_prod=__webpack_require__("./node_modules/@lexical/react/LexicalComposerContext.prod.mjs"),react=__webpack_require__("./node_modules/react/index.js");const useLexicalEditable_prod_u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react.useLayoutEffect:react.useEffect;function useLexicalEditable_prod_c(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}var LexicalText_prod=__webpack_require__("./node_modules/@lexical/text/LexicalText.prod.mjs"),LexicalUtils_prod=__webpack_require__("./node_modules/@lexical/utils/LexicalUtils.prod.mjs"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Lexical_prod=__webpack_require__("./node_modules/lexical/Lexical.prod.mjs");(function LexicalSelection_prod_m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})((function(e){const t=new URLSearchParams;t.append("code",e);for(let e=1;eo?o:l,g=l>o?l:o):f?(a=s?o:l,g=void 0):u&&(a=0,g=s?l:o),n.__text=n.__text.slice(a,g),n}}return n}function A(e,t){const l=(0,Lexical_prod.B$)(e.focus,t);return(0,Lexical_prod.Cy)(l)&&!l.isIsolated()||(0,Lexical_prod.ff)(l)&&!l.isInline()&&!l.canBeEmpty()}function M(e,t,n){const l=function D(e){const t=e.anchor.getNode();return"rtl"===((0,Lexical_prod.hV)(t)?t:t.getParentOrThrow()).getDirection()}(e);!function L(e,t,n,l){e.modify(t?"extend":"move",n,l)}(e,t,n?!l:l,"character")}function LexicalHtml_prod_m(t,o,s,c=null){let u=null===c||o.isSelected(c);const f=(0,Lexical_prod.ff)(o)&&o.excludeFromCopy("html");let a=o;if(null!==c){let n=(0,Lexical_prod.BE)(o);n=(0,Lexical_prod.kF)(n)&&null!==c?E(c,n):n,a=n}const d=(0,Lexical_prod.ff)(a)?a.getChildren():[],p=t._nodes.get(a.getType());let h;h=p&&void 0!==p.exportDOM?p.exportDOM(t,a):a.exportDOM(t);const{element:g,after:x}=h;if(!g)return!1;const y=document.createDocumentFragment();for(let e=0;e{if(null!==e){const r=(0,LexicalUtils_prod.xj)(e,KeyboardEvent)?null:e.clipboardData,o=(0,Lexical_prod.vJ)();if(null!==o&&null!=r){e.preventDefault();const i=LexicalClipboard_prod_D(n);null!==i&&r.setData("text/html",i),r.setData("text/plain",o.getTextContent())}}}))}const LexicalPlainTextPlugin_prod_g="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react.useLayoutEffect:react.useEffect;function LexicalPlainTextPlugin_prod_E(t){return t.getEditorState().read((0,LexicalText_prod.yl)(t.isComposing()))}function LexicalPlainTextPlugin_prod_h({contentEditable:e,placeholder:r=null,ErrorBoundary:n}){const[E]=(0,LexicalComposerContext_prod.DF)(),h=function(t,e){const[r,o]=(0,react.useState)((()=>t.getDecorators()));return LexicalPlainTextPlugin_prod_g((()=>t.registerDecoratorListener((t=>{(0,react_dom.flushSync)((()=>{o(t)}))}))),[t]),(0,react.useEffect)((()=>{o(t.getDecorators())}),[t]),(0,react.useMemo)((()=>{const o=[],n=Object.keys(r);for(let i=0;it._onError(e),children:(0,jsx_runtime.jsx)(react.Suspense,{fallback:null,children:r[c]})}),u=t.getElementByKey(c);null!==u&&o.push((0,react_dom.createPortal)(l,u,c))}return o}),[e,r,t])}(E,n);return function(t){LexicalPlainTextPlugin_prod_g((()=>(0,LexicalUtils_prod.Sd)(function LexicalPlainText_prod_R(t){return(0,LexicalUtils_prod.Sd)(t.registerCommand(Lexical_prod.Wu,(e=>{const t=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(t)&&(t.deleteCharacter(e),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.hi,(e=>{const t=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(t)&&(t.deleteWord(e),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.vi,(e=>{const t=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(t)&&(t.deleteLine(e),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.bM,(t=>{const n=(0,Lexical_prod.vJ)();if(!(0,Lexical_prod.I2)(n))return!1;if("string"==typeof t)n.insertText(t);else{const r=t.dataTransfer;if(null!=r)LexicalClipboard_prod_(r,n);else{const e=t.data;e&&n.insertText(e)}}return!0}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.$e,(()=>{const e=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(e)&&(e.removeText(),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.FE,(e=>{const t=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(t)&&(t.insertLineBreak(e),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.XK,(()=>{const e=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(e)&&(e.insertLineBreak(),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.AX,(e=>{const t=(0,Lexical_prod.vJ)();if(!(0,Lexical_prod.I2)(t))return!1;const o=e,i=o.shiftKey;return!!A(t,!0)&&(o.preventDefault(),M(t,i,!0),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.JM,(e=>{const t=(0,Lexical_prod.vJ)();if(!(0,Lexical_prod.I2)(t))return!1;const o=e,i=o.shiftKey;return!!A(t,!1)&&(o.preventDefault(),M(t,i,!1),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.gC,(e=>{const n=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(n)&&(e.preventDefault(),t.dispatchCommand(Lexical_prod.Wu,!0))}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.w$,(e=>{const n=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(n)&&(e.preventDefault(),t.dispatchCommand(Lexical_prod.Wu,!1))}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.if,(e=>{const n=(0,Lexical_prod.vJ)();if(!(0,Lexical_prod.I2)(n))return!1;if(null!==e){if((LexicalPlainText_prod_k||LexicalPlainText_prod_S||LexicalPlainText_prod_I)&&LexicalPlainText_prod_P)return!1;e.preventDefault()}return t.dispatchCommand(Lexical_prod.FE,!1)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.HY,(()=>((0,Lexical_prod.e1)(),!0)),Lexical_prod.jZ),t.registerCommand(Lexical_prod.u5,(e=>{const n=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(n)&&(LexicalPlainText_prod_W(e,t),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.VS,(e=>{const n=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(n)&&(function(e,t){LexicalPlainText_prod_W(e,t),t.update((()=>{const e=(0,Lexical_prod.vJ)();(0,Lexical_prod.I2)(e)&&e.removeText()}))}(e,t),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.w,(n=>{const r=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(r)&&(function(t,n){t.preventDefault(),n.update((()=>{const n=(0,Lexical_prod.vJ)(),{clipboardData:r}=t;null!=r&&(0,Lexical_prod.I2)(n)&&LexicalClipboard_prod_(r,n)}),{tag:"paste"})}(n,t),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.Sr,(e=>{const t=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(t)&&(e.preventDefault(),!0)}),Lexical_prod.jZ),t.registerCommand(Lexical_prod.Tg,(e=>{const t=(0,Lexical_prod.vJ)();return!!(0,Lexical_prod.I2)(t)&&(e.preventDefault(),!0)}),Lexical_prod.jZ))}(t),function LexicalDragon_prod_o(o){const i=window.location.origin,a=a=>{if(a.origin!==i)return;const r=o.getRootElement();if(document.activeElement!==r)return;const s=a.data;if("string"==typeof s){let i;try{i=JSON.parse(s)}catch(e){return}if(i&&"nuanria_messaging"===i.protocol&&"request"===i.type){const r=i.payload;if(r&&"makeChanges"===r.functionId){const i=r.args;if(i){const[r,s,c,g,d,f]=i;o.update((()=>{const o=(0,Lexical_prod.vJ)();if((0,Lexical_prod.I2)(o)){const e=o.anchor;let t=e.getNode(),i=0,f=0;if((0,Lexical_prod.kF)(t)&&r>=0&&s>=0&&(i=r,f=r+s,o.setTextNodeRange(t,i,t,f)),i===f&&""===c||(o.insertRawText(c),t=e.getNode()),(0,Lexical_prod.kF)(t)){i=g,f=g+d;const e=t.getTextContentSize();i=i>e?e:i,f=f>e?e:f,o.setTextNodeRange(t,i,t,f)}a.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",a,!0),()=>{window.removeEventListener("message",a,!0)}}(t))),[t])}(E),(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[e,(0,jsx_runtime.jsx)(LexicalPlainTextPlugin_prod_w,{content:r}),h]})}function LexicalPlainTextPlugin_prod_w({content:r}){const[n]=(0,LexicalComposerContext_prod.DF)(),i=function(t){const[e,r]=(0,react.useState)((()=>LexicalPlainTextPlugin_prod_E(t)));return LexicalPlainTextPlugin_prod_g((()=>{function e(){const e=LexicalPlainTextPlugin_prod_E(t);r(e)}return e(),(0,LexicalUtils_prod.Sd)(t.registerUpdateListener((()=>{e()})),t.registerEditableListener((()=>{e()})))}),[t]),e}(n),l=function useLexicalEditable_prod_a(){return function(t){const[n]=(0,LexicalComposerContext_prod.DF)(),c=(0,react.useMemo)((()=>t(n)),[n,t]),a=(0,react.useRef)(c.initialValueFn()),[l,d]=(0,react.useState)(a.current);return useLexicalEditable_prod_u((()=>{const{initialValueFn:e,subscribe:t}=c,n=e();return a.current!==n&&(a.current=n,d(n)),t((e=>{a.current=e,d(e)}))}),[c,t]),l}(useLexicalEditable_prod_c)}();return i?"function"==typeof r?r(l):r:null}},"./node_modules/@lexical/react/LexicalTypeaheadMenuPlugin.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{QP:function(){return L}});var _lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@lexical/react/LexicalComposerContext.prod.mjs"),lexical__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lexical/Lexical.prod.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_lexical_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@lexical/utils/LexicalUtils.prod.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const b="startTransition",v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;const E=t=>{const e=document.getElementById("typeahead-menu");if(!e)return;const n=e.getBoundingClientRect();n.top+n.height>window.innerHeight&&e.scrollIntoView({block:"center"}),n.top<0&&e.scrollIntoView({block:"center"}),t.scrollIntoView({block:"nearest"})};function S(t,e){const n=t.getBoundingClientRect(),o=e.getBoundingClientRect();return n.top>o.top&&n.top{if(null!=n&&null!=e){const t=l.getRootElement(),e=null!=t?function(t){let n=getComputedStyle(t);const o="absolute"===n.position,r=/(auto|scroll)/;if("fixed"===n.position)return document.body;for(let e=t;e=e.parentElement;)if(n=getComputedStyle(e),(!o||"static"!==n.position)&&r.test(n.overflow+n.overflowY+n.overflowX))return e;return document.body}(t):document.body;let i=!1,u=S(n,e);const s=function(){i||(window.requestAnimationFrame((function(){o(),i=!1})),i=!0);const t=S(n,e);t!==u&&(u=t,null!=r&&r(t))},c=new ResizeObserver(o);return window.addEventListener("resize",o),document.addEventListener("scroll",s,{capture:!0,passive:!0}),c.observe(n),()=>{c.unobserve(n),window.removeEventListener("resize",o),document.removeEventListener("scroll",s,!0)}}}),[n,l,r,o,e])}const O=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.gu)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function I({close:t,editor:e,anchorElementRef:a,resolution:d,options:m,menuRenderFn:w,onSelectOption:C,shouldSplitNodeWithQuery:b=!1,commandPriority:x=lexical__WEBPACK_IMPORTED_MODULE_3__.Ac}){const[S,R]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),I=d.match&&d.match.matchingString;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{R(0)}),[I]);const A=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((n=>{e.update((()=>{const e=null!=d.match&&b?function(t){const e=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.vJ)();if(!(0,lexical__WEBPACK_IMPORTED_MODULE_3__.I2)(e)||!e.isCollapsed())return null;const n=e.anchor;if("text"!==n.type)return null;const o=n.getNode();if(!o.isSimpleText())return null;const r=n.offset,l=o.getTextContent().slice(0,r),i=t.replaceableString.length,u=r-function(t,e,n){let o=n;for(let n=o;n<=e.length;n++)t.substr(-n)===e.substr(0,n)&&(o=n);return o}(l,t.matchingString,i);if(u<0)return null;let a;return 0===u?[a]=o.splitText(r):[,a]=o.splitText(u,r),a}(d.match):null;C(n,e,t,d.match?d.match.matchingString:"")}))}),[e,b,d.match,C,t]),T=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((t=>{const n=e.getRootElement();null!==n&&(n.setAttribute("aria-activedescendant","typeahead-item-"+t),R(t))}),[e]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>()=>{const t=e.getRootElement();null!==t&&t.removeAttribute("aria-activedescendant")}),[e]),v((()=>{null===m?R(null):null===S&&T(0)}),[m,S,T]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(0,_lexical_utils__WEBPACK_IMPORTED_MODULE_4__.Sd)(e.registerCommand(O,(({option:t})=>!(!t.ref||null==t.ref.current||(E(t.ref.current),0))),x))),[e,T,x]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>(0,_lexical_utils__WEBPACK_IMPORTED_MODULE_4__.Sd)(e.registerCommand(lexical__WEBPACK_IMPORTED_MODULE_3__.bb,(t=>{const n=t;if(null!==m&&m.length&&null!==S){const t=S!==m.length-1?S+1:0;T(t);const o=m[t];null!=o.ref&&o.ref.current&&e.dispatchCommand(O,{index:t,option:o}),n.preventDefault(),n.stopImmediatePropagation()}return!0}),x),e.registerCommand(lexical__WEBPACK_IMPORTED_MODULE_3__.UD,(t=>{const e=t;if(null!==m&&m.length&&null!==S){const t=0!==S?S-1:m.length-1;T(t);const n=m[t];null!=n.ref&&n.ref.current&&E(n.ref.current),e.preventDefault(),e.stopImmediatePropagation()}return!0}),x),e.registerCommand(lexical__WEBPACK_IMPORTED_MODULE_3__.Q$,(e=>{const n=e;return n.preventDefault(),n.stopImmediatePropagation(),t(),!0}),x),e.registerCommand(lexical__WEBPACK_IMPORTED_MODULE_3__.OX,(t=>{const e=t;return null!==m&&null!==S&&null!=m[S]&&(e.preventDefault(),e.stopImmediatePropagation(),A(m[S]),!0)}),x),e.registerCommand(lexical__WEBPACK_IMPORTED_MODULE_3__.if,(t=>null!==m&&null!==S&&null!=m[S]&&(null!==t&&(t.preventDefault(),t.stopImmediatePropagation()),A(m[S]),!0)),x))),[A,t,e,m,S,T,x]),w(a,(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({options:m,selectOptionAndCleanUp:A,selectedIndex:S,setHighlightedIndex:R})),[A,S,m]),d.match?d.match.matchingString:"")}(0,lexical__WEBPACK_IMPORTED_MODULE_3__.gu)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function L({options:e,onQueryChange:n,onSelectOption:o,onOpen:r,onClose:l,menuRenderFn:i,triggerFn:m,anchorClassName:h,commandPriority:y=lexical__WEBPACK_IMPORTED_MODULE_3__.Ac,parent:v}){const[x]=(0,_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_2__.DF)(),[E,S]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),O=function(e,n,o,r=document.body){const[l]=(0,_lexical_react_LexicalComposerContext__WEBPACK_IMPORTED_MODULE_2__.DF)(),i=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(document.createElement("div")),u=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{i.current.style.top=i.current.style.bottom;const t=l.getRootElement(),n=i.current,u=n.firstChild;if(null!==t&&null!==e){const{left:l,top:s,width:c,height:a}=e.getRect(),d=i.current.offsetHeight;if(n.style.top=`${s+window.pageYOffset+d+3}px`,n.style.left=`${l+window.pageXOffset}px`,n.style.height=`${a}px`,n.style.width=`${c}px`,null!==u){u.style.top=`${s}`;const e=u.getBoundingClientRect(),o=e.height,r=e.width,i=t.getBoundingClientRect();l+r>i.right&&(n.style.left=`${i.right-r+window.pageXOffset}px`),(s+o>window.innerHeight||s+o>i.bottom)&&s-i.top>o+a&&(n.style.top=s-o+window.pageYOffset-a+"px")}n.isConnected||(null!=o&&(n.className=o),n.setAttribute("aria-label","Typeahead menu"),n.setAttribute("id","typeahead-menu"),n.setAttribute("role","listbox"),n.style.display="block",n.style.position="absolute",r.append(n)),i.current=n,t.setAttribute("aria-controls","typeahead-menu")}}),[l,e,o,r]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const t=l.getRootElement();if(null!==e)return u(),()=>{null!==t&&t.removeAttribute("aria-controls");const e=i.current;null!==e&&e.isConnected&&e.remove()}}),[l,u,e]);const s=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((t=>{null!==e&&(t||n(null))}),[e,n]);return R(e,i.current,u,s),i}(E,S,h,v),A=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{S(null),null!=l&&null!==E&&l()}),[l,E]),T=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((t=>{S(t),null!=r&&null===E&&r(t)}),[r,E]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const t=x.registerUpdateListener((()=>{x.getEditorState().read((()=>{const t=x._window||window,e=t.document.createRange(),o=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.vJ)(),r=function(t){let e=null;return t.getEditorState().read((()=>{const t=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.vJ)();(0,lexical__WEBPACK_IMPORTED_MODULE_3__.I2)(t)&&(e=function(t){const e=t.anchor;if("text"!==e.type)return null;const n=e.getNode();if(!n.isSimpleText())return null;const o=e.offset;return n.getTextContent().slice(0,o)}(t))})),e}(x);if(!(0,lexical__WEBPACK_IMPORTED_MODULE_3__.I2)(o)||!o.isCollapsed()||null===r||null===e)return void A();const l=m(r,x);if(n(l?l.matchingString:null),null!==l&&!function(t,e){return 0===e&&t.getEditorState().read((()=>{const t=(0,lexical__WEBPACK_IMPORTED_MODULE_3__.vJ)();if((0,lexical__WEBPACK_IMPORTED_MODULE_3__.I2)(t)){const e=t.anchor.getNode().getPreviousSibling();return(0,lexical__WEBPACK_IMPORTED_MODULE_3__.kF)(e)&&e.isTextEntity()}return!1}))}(x,l.leadOffset)){const n=function(t,e,n){const o=n.getSelection();if(null===o||!o.isCollapsed)return!1;const r=o.anchorNode,l=t,i=o.anchorOffset;if(null==r||null==i)return!1;try{e.setStart(r,l),e.setEnd(r,i)}catch(t){return!1}return!0}(l.leadOffset,e,t);if(null!==n)return i=()=>T({getRect:()=>e.getBoundingClientRect(),match:l}),void(b in react__WEBPACK_IMPORTED_MODULE_0__?react__WEBPACK_IMPORTED_MODULE_0__[b](i):i())}var i;A()}))}));return()=>{t()}}),[x,m,n,E,A,T]),null===E||null===x?null:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(I,{close:A,resolution:E,editor:x,anchorElementRef:O,options:e,menuRenderFn:i,shouldSplitNodeWithQuery:!0,onSelectOption:o,commandPriority:y})}},"./node_modules/@lexical/text/LexicalText.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{yl:function(){return g}});var lexical__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lexical/Lexical.prod.mjs");function u(t,e=!0){if(t)return!1;let n=function s(){return(0,lexical__WEBPACK_IMPORTED_MODULE_0__.Ni)().getTextContent()}();return e&&(n=n.trim()),""===n}function g(t){return()=>function c(o){if(!u(o,!1))return!1;const l=(0,lexical__WEBPACK_IMPORTED_MODULE_0__.Ni)().getChildren(),s=l.length;if(s>1)return!1;for(let t=0;t{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function te(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}},"./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{N:function(){return AnimatePresence}});var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),react=__webpack_require__("./node_modules/react/index.js"),PresenceContext=__webpack_require__("./node_modules/framer-motion/dist/es/context/PresenceContext.mjs"),use_constant=__webpack_require__("./node_modules/framer-motion/dist/es/utils/use-constant.mjs"),MotionConfigContext=__webpack_require__("./node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs");class PopChildMeasure extends react.Component{getSnapshotBeforeUpdate(prevProps){const element=this.props.childRef.current;if(element&&prevProps.isPresent&&!this.props.isPresent){const size=this.props.sizeRef.current;size.height=element.offsetHeight||0,size.width=element.offsetWidth||0,size.top=element.offsetTop,size.left=element.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:children,isPresent:isPresent}){const id=(0,react.useId)(),ref=(0,react.useRef)(null),size=(0,react.useRef)({width:0,height:0,top:0,left:0}),{nonce:nonce}=(0,react.useContext)(MotionConfigContext.Q);return(0,react.useInsertionEffect)((()=>{const{width:width,height:height,top:top,left:left}=size.current;if(isPresent||!ref.current||!width||!height)return;ref.current.dataset.motionPopId=id;const style=document.createElement("style");return nonce&&(style.nonce=nonce),document.head.appendChild(style),style.sheet&&style.sheet.insertRule(`\n [data-motion-pop-id="${id}"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n top: ${top}px !important;\n left: ${left}px !important;\n }\n `),()=>{document.head.removeChild(style)}}),[isPresent]),(0,jsx_runtime.jsx)(PopChildMeasure,{isPresent:isPresent,childRef:ref,sizeRef:size,children:react.cloneElement(children,{ref:ref})})}const PresenceChild=({children:children,initial:initial,isPresent:isPresent,onExitComplete:onExitComplete,custom:custom,presenceAffectsLayout:presenceAffectsLayout,mode:mode})=>{const presenceChildren=(0,use_constant.M)(newChildrenMap),id=(0,react.useId)(),context=(0,react.useMemo)((()=>({id:id,initial:initial,isPresent:isPresent,custom:custom,onExitComplete:childId=>{presenceChildren.set(childId,!0);for(const isComplete of presenceChildren.values())if(!isComplete)return;onExitComplete&&onExitComplete()},register:childId=>(presenceChildren.set(childId,!1),()=>presenceChildren.delete(childId))})),presenceAffectsLayout?[Math.random()]:[isPresent]);return(0,react.useMemo)((()=>{presenceChildren.forEach(((_,key)=>presenceChildren.set(key,!1)))}),[isPresent]),react.useEffect((()=>{!isPresent&&!presenceChildren.size&&onExitComplete&&onExitComplete()}),[isPresent]),"popLayout"===mode&&(children=(0,jsx_runtime.jsx)(PopChild,{isPresent:isPresent,children:children})),(0,jsx_runtime.jsx)(PresenceContext.t.Provider,{value:context,children:children})};function newChildrenMap(){return new Map}var LayoutGroupContext=__webpack_require__("./node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs"),errors=__webpack_require__("./node_modules/framer-motion/dist/es/utils/errors.mjs");const getChildKey=child=>child.key||"";function onlyElements(children){const filtered=[];return react.Children.forEach(children,(child=>{(0,react.isValidElement)(child)&&filtered.push(child)})),filtered}var use_isomorphic_effect=__webpack_require__("./node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs");const AnimatePresence=({children:children,exitBeforeEnter:exitBeforeEnter,custom:custom,initial:initial=!0,onExitComplete:onExitComplete,presenceAffectsLayout:presenceAffectsLayout=!0,mode:mode="sync"})=>{(0,errors.V)(!exitBeforeEnter,"Replace exitBeforeEnter with mode='wait'");const presentChildren=(0,react.useMemo)((()=>onlyElements(children)),[children]),presentKeys=presentChildren.map(getChildKey),isInitialRender=(0,react.useRef)(!0),pendingPresentChildren=(0,react.useRef)(presentChildren),exitComplete=(0,use_constant.M)((()=>new Map)),[diffedChildren,setDiffedChildren]=(0,react.useState)(presentChildren),[renderedChildren,setRenderedChildren]=(0,react.useState)(presentChildren);(0,use_isomorphic_effect.E)((()=>{isInitialRender.current=!1,pendingPresentChildren.current=presentChildren;for(let i=0;i{const key=getChildKey(child),isPresent=presentChildren===renderedChildren||presentKeys.includes(key);return(0,jsx_runtime.jsx)(PresenceChild,{isPresent:isPresent,initial:!(isInitialRender.current&&!initial)&&void 0,custom:isPresent?void 0:custom,presenceAffectsLayout:presenceAffectsLayout,mode:mode,onExitComplete:isPresent?void 0:()=>{if(!exitComplete.has(key))return;exitComplete.set(key,!0);let isEveryExitComplete=!0;exitComplete.forEach((isExitComplete=>{isExitComplete||(isEveryExitComplete=!1)})),isEveryExitComplete&&(null==forceRender||forceRender(),setRenderedChildren(pendingPresentChildren.current),onExitComplete&&onExitComplete())},children:child},key)}))})}},"./node_modules/lexical/Lexical.prod.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function t(t){return{}}__webpack_require__.d(__webpack_exports__,{$e:function(){return a},AX:function(){return m},Ac:function(){return Fs},B$:function(){return Xe},BE:function(){return Pn},Ck:function(){return Si},Cy:function(){return ms},FE:function(){return s},HY:function(){return z},I2:function(){return yi},JM:function(){return p},Kf:function(){return $},Kp:function(){return ys},Ni:function(){return we},OX:function(){return N},Q$:function(){return b},R1:function(){return _},SK:function(){return B},Sr:function(){return D},Tg:function(){return O},UD:function(){return v},V3:function(){return g},VS:function(){return W},WW:function(){return K},Wu:function(){return i},XK:function(){return o},ZK:function(){return h},bM:function(){return l},bS:function(){return Es},bb:function(){return S},e1:function(){return Ve},ff:function(){return _s},gC:function(){return k},gu:function(){return t},hV:function(){return vs},hi:function(){return u},ie:function(){return As},if:function(){return T},jZ:function(){return Ps},kF:function(){return oi},lJ:function(){return Ns},ns:function(){return Se},sT:function(){return si},sb:function(){return vn},t5:function(){return R},u5:function(){return M},vJ:function(){return Oi},vi:function(){return f},w:function(){return c},w$:function(){return w}});const e={},r={},i={},s={},o={},l={},c={},a={},u={},f={},d={},h={},g={},_={},p={},y={},m={},x={},v={},S={},T={},C={},k={},b={},w={},N={},D={},O={},I={},A={},M={},W={},z={},B={},R={},K={},$={},J={},U={},V={},j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,H=j&&"documentMode"in document?document.documentMode:null,q=j&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Q=j&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),X=!(!j||!("InputEvent"in window)||H)&&"getTargetRanges"in new window.InputEvent("input"),Y=j&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Z=j&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,G=j&&/Android/.test(navigator.userAgent),tt=j&&/^(?=.*Chrome).*/i.test(navigator.userAgent),et=j&&G&&tt,nt=j&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!tt,rt=1,it=3,st=0,ot=1,lt=2,ct=0,at=1,ut=2,ht=4,gt=8,xt=240|(3|ht|gt),vt=1,St=2,Tt=3,Ct=4,kt=5,bt=6,wt=Y||Z||nt?" ":"​",Nt="\n\n",Et=Q?" ":wt,Pt="֑-߿יִ-﷽ﹰ-ﻼ",Ft="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Dt=new RegExp("^[^"+Ft+"]*["+Pt+"]"),Lt=new RegExp("^[^"+Pt+"]*["+Ft+"]"),Ot={bold:1,code:16,highlight:128,italic:2,strikethrough:ht,subscript:32,superscript:64,underline:gt},It={directionless:1,unmergeable:2},At={center:St,end:bt,justify:Ct,left:vt,right:Tt,start:kt},Mt={[St]:"center",[bt]:"end",[Ct]:"justify",[vt]:"left",[Tt]:"right",[kt]:"start"},Wt={normal:0,segmented:2,token:1},zt={[ct]:"normal",[ut]:"segmented",[at]:"token"};var Rt=function Bt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t$t;try{hs(t,(()=>{const i=Oi()||function(t){return t.getEditorState().read((()=>{const t=Oi();return null!==t?t.clone():null}))}(t),s=new Map,o=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let a=!1,u="";for(let n=0;n0){let e=0;for(let i=0;i0)for(const[e,n]of s)if(_s(n)){const r=n.getChildrenKeys();let i=e.firstChild;for(let n=0;n0){for(let e=0;e{Qt(t,e,n)}))}function Zt(t,e){const n=t.__mode,r=t.__format,i=t.__style,s=e.__mode,o=e.__format,l=e.__style;return!(null!==n&&n!==s||null!==r&&r!==o||null!==i&&i!==l)}function Gt(t,e){const n=t.mergeWithSibling(e),r=ts()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function te(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&oi(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(Zt(e,r)){r=Gt(e,r);break}break}e.remove()}for(;null!==(n=r.getNextSibling())&&oi(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Zt(r,n)){r=Gt(r,n);break}break}n.remove()}}else r.remove()}function ne(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),oi(r)){t.set(r.__key,i?r.getTextContentSize():0,"text");break}if(!_s(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element")}}let re=1;const se="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t)};function oe(t){const e=document.activeElement;if(null===e)return!1;const n=e.nodeName;return ms(Ce(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==ue(e))}function le(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!oe(e)&&ae(e)===t}catch(t){return!1}}function ce(t){return t instanceof Ms}function ae(t){let e=t;for(;null!=e;){const t=ue(e);if(ce(t))return t;e=en(e)}return null}function ue(t){return t?t.__lexicalEditor:null}function fe(t){return t.isToken()||t.isSegmented()}function de(t){return t.nodeType===it}function he(t){let e=t;for(;null!=e;){if(de(e))return e;e=e.firstChild}return null}function ge(t,e,n){const r=Ot[e];if(null!==n&&(t&r)==(n&r))return t;let i=t^r;return"subscript"===e?i&=~Ot.superscript:"superscript"===e&&(i&=~Ot.subscript),i}function pe(t,e){if(null!=e)return void(t.__key=e);Yi(),Zi();const n=ts(),r=Gi(),i=""+re++;r._nodeMap.set(i,t),_s(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=ot,t.__key=i}function ye(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling();if(null===i)if(null!==s){const t=s.getWritable();r.__first=s.__key,t.__prev=null}else r.__first=null;else{const t=i.getWritable();if(null!==s){const e=s.getWritable();e.__prev=t.__key,t.__next=e.__key}else t.__next=null;n.__prev=null}if(null===s)if(null!==i){const t=i.getWritable();r.__last=i.__key,t.__next=null}else r.__last=null;else{const t=s.getWritable();if(null!==i){const e=i.getWritable();e.__next=t.__key,t.__prev=e.__key}else t.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function me(t){Zi();const e=t.getLatest(),n=e.__parent,r=Gi(),i=ts(),s=r._nodeMap,o=i._dirtyElements;null!==n&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent}}(n,s,o);const l=e.__key;i._dirtyType=ot,_s(t)?o.set(l,!0):i._dirtyLeaves.add(l)}function xe(t){Yi();const e=ts(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=Se(n);null!==t&&t.getWritable()}if(null!==t){const e=Se(t);null!==e&&e.getWritable()}}}function ve(){return Xi()?null:ts()._compositionKey}function Se(t,e){const n=(e||Gi())._nodeMap.get(t);return void 0===n?null:n}function Te(t,e){const n=t[`__lexicalKey_${ts()._key}`];return void 0!==n?Se(n,e):null}function Ce(t,e){let n=t;for(;null!=n;){const t=Te(n,e);if(null!==t)return t;n=en(n)}return null}function ke(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function be(t){return t.read((()=>we().getTextContent()))}function we(){return Ne(Gi())}function Ne(t){return t._nodeMap.get("root")}function Ee(t){Yi();const e=Gi();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Pe(t){const e=ts(),n=function(t,e){let n=t;for(;null!=n;){const t=n[`__lexicalKey_${e._key}`];if(void 0!==t)return t;n=en(n)}return null}(t,e);return null===n?t===e.getRootElement()?Se("root"):null:Se(n)}function Fe(t,e){return e?t.getTextContentSize():0}function De(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Le(t){const e=[];let n=t;for(;null!==n;)e.push(n),n=n._parentEditor;return e}function Oe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Ie(t){return t.nodeType===it?t.nodeValue:null}function Ae(t,e,n){const r=yn(e._window);if(null===r)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:o}=r;if(null!==i){let e=Ie(i);const r=Ce(i);if(null!==e&&oi(r)){if(e===wt&&n){const t=n.length;e=n,s=t,o=t}null!==e&&Me(r,e,s,o,t)}}}function Me(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const o=s.isComposing();let l=e;(o||i)&&e[e.length-1]===wt&&(l=e.slice(0,-1));const c=s.getTextContent();if(i||l!==c){if(""===l){if(xe(null),Y||Z||nt)s.remove();else{const t=ts();setTimeout((()=>{t.update((()=>{s.isAttached()&&s.remove()}))}),20)}return}const e=s.getParent(),i=Ii(),c=s.getTextContentSize(),a=ve(),u=s.getKey();if(s.isToken()||null!==a&&u===a&&!o||yi(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!s.canInsertTextBefore()&&!o||i.focus.key===t.__key&&i.focus.offset===c&&!s.canInsertTextAfter()&&!o))return void s.markDirty();const f=Oi();if(!yi(f)||null===n||null===r)return void s.setTextContent(l);if(f.setTextNodeRange(s,n,s,r),s.isSegmented()){const t=si(s.getTextContent());s.replace(t),s=t}s.setTextContent(l)}}}function ze(t){return"ArrowLeft"===t}function Be(t){return"ArrowRight"===t}function Re(t,e){return q?t:e}function Ke(t){return"Enter"===t}function $e(t){return"Backspace"===t}function Je(t){return"Delete"===t}function Ue(t,e,n){return"a"===t.toLowerCase()&&Re(e,n)}function Ve(){const t=we();Ee(function ee(t){return ne(t.anchor),ne(t.focus),t}(t.select(0,t.getChildrenSize())))}function je(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=Kt(i);return n[e]=t,t}return i}function He(t,e,n,r,i){if(0===n.size)return;const s=r.__type,o=r.__key,l=e.get(s);void 0===l&&Rt(33,s);const c=l.klass;let a=t.get(c);void 0===a&&(a=new Map,t.set(c,a));const u=a.get(o),f="destroyed"===u&&"created"===i;(void 0===u||f)&&a.set(o,f?"updated":i)}function Qe(t,e,n){const r=t.getParent();let i=n,s=t;return null!==r&&(e&&0===n?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Xe(t,e){const n=t.offset;if("element"===t.type)return Qe(t.getNode(),e,n);{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?Qe(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function Ye(t){const e=on(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ze(t,e,n){return us(t,e,n)}function Ge(t){return!vs(t)&&!t.isLastChild()&&!t.isInline()}function tn(t,e){const n=t._keyToDOMMap.get(e);return void 0===n&&Rt(75,e),n}function en(t){const e=t.assignedSlot||t.parentElement;return null!==e&&11===e.nodeType?e.host:e}function sn(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent()}return!1}function on(t){const e=t._window;return null===e&&Rt(78),e}function an(t){return vs(t)||_s(t)&&t.isShadowRoot()}function fn(t){const e=ts(),n=t.constructor.getType(),r=e._nodes.get(n);void 0===r&&Rt(97);const i=r.replace;if(null!==i){const e=i(t);return e instanceof t.constructor||Rt(98),e}return t}function dn(t,e){!vs(t.getParent())||_s(e)||ms(e)||Rt(99)}function gn(t){return(ms(t)||_s(t)&&!t.canBeEmpty())&&!t.isInline()}function _n(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t)}function yn(t){return j?(t||window).getSelection():null}function vn(t){return 1===t.nodeType}function Sn(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==t.nodeName.match(e)}function Tn(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==t.nodeName.match(e)}function Cn(t){if(vs(t)||ms(t)&&!t.isInline())return!0;if(!_s(t)||an(t))return!1;const e=t.getFirstChild(),n=null===e||$r(e)||oi(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}function kn(t,e){let n=t;for(;null!==n&&null!==n.getParent()&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}const wn=new WeakMap,Nn=new Map;function En(t){if(!t._readOnly&&t.isEmpty())return Nn;t._readOnly||Rt(192);let e=wn.get(t);if(!e){e=new Map,wn.set(t,e);for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)}}return e}function Pn(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function Fn(t,e,n,r,i,s){let o=t.getFirstChild();for(;null!==o;){const t=o.__key;o.__parent===e&&(_s(o)&&Fn(o,t,n,r,i,s),n.has(t)||s.delete(t),i.push(t)),o=o.getNextSibling()}}let Dn,Ln,On,In,An,Mn,Wn,zn,Bn,Rn,Kn="",$n="",Jn=null,Un="",Vn="",jn=!1,Hn=!1,qn=null;function Qn(t,e){const n=Wn.get(t);if(null!==e){const n=dr(t);n.parentNode===e&&e.removeChild(n)}if(zn.has(t)||Ln._keyToDOMMap.delete(t),_s(n)){const t=lr(n,Wn);Xn(t,0,t.length-1,null)}void 0!==n&&He(Rn,On,In,n,"destroyed")}function Xn(t,e,n,r){let i=e;for(;i<=n;++i){const e=t[i];void 0!==e&&Qn(e,r)}}function Yn(t,e){t.setProperty("text-align",e)}const Zn="40px";function Gn(t,e){const n=Dn.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||Zn;t.style.setProperty("padding-inline-start",0===e?"":`calc(${e} * ${r})`)}function tr(t,e){const n=t.style;0===e?Yn(n,""):e===vt?Yn(n,"left"):e===St?Yn(n,"center"):e===Tt?Yn(n,"right"):e===Ct?Yn(n,"justify"):e===kt?Yn(n,"start"):e===bt&&Yn(n,"end")}function er(t,e,n){const r=zn.get(t);void 0===r&&Rt(60);const i=r.createDOM(Dn,Ln);if(function(t,e,n){const r=n._keyToDOMMap;e["__lexicalKey_"+n._key]=t,r.set(t,e)}(t,i,Ln),oi(r)?i.setAttribute("data-lexical-text","true"):ms(r)&&i.setAttribute("data-lexical-decorator","true"),_s(r)){const t=r.__indent,e=r.__size;if(0!==t&&Gn(i,t),0!==e){const t=e-1;!function(t,e,n,r){const i=$n;$n="",nr(t,n,0,e,r,null),sr(n,r),$n=i}(lr(r,zn),t,r,i)}const n=r.__format;0!==n&&tr(i,n),r.isInline()||ir(null,r,i),Ge(r)&&(Kn+=Nt,Vn+=Nt)}else{const e=r.getTextContent();if(ms(r)){const e=r.decorate(Ln,Dn);null!==e&&ar(t,e),i.contentEditable="false"}else oi(r)&&(r.isDirectionless()||($n+=e));Kn+=e,Vn+=e}if(null!==e)if(null!=n)e.insertBefore(i,n);else{const t=e.__lexicalLineBreak;null!=t?e.insertBefore(i,t):e.appendChild(i)}return He(Rn,On,In,r,"created"),i}function nr(t,e,n,r,i,s){const o=Kn;Kn="";let l=n;for(;l<=r;++l){er(t[l],i,s);const e=zn.get(t[l]);null!==e&&oi(e)&&(null===Jn&&(Jn=e.getFormat()),""===Un&&(Un=e.getStyle()))}Ge(e)&&(Kn+=Nt),i.__lexicalTextContent=Kn,Kn=o+Kn}function rr(t,e){const n=e.get(t);return $r(n)||ms(n)&&n.isInline()}function ir(t,e,n){const r=null!==t&&(0===t.__size||rr(t.__last,Wn)),i=0===e.__size||rr(e.__last,zn);if(r){if(!i){const t=n.__lexicalLineBreak;if(null!=t)try{n.removeChild(t)}catch(e){if("object"==typeof e&&null!=e){const r=`${e.toString()} Parent: ${n.tagName}, child: ${t.tagName}.`;throw new Error(r)}throw e}n.__lexicalLineBreak=null}}else if(i){const t=document.createElement("br");n.__lexicalLineBreak=t,n.appendChild(t)}}function sr(t,e){const n=e.__lexicalDirTextContent,r=e.__lexicalDir;if(n!==$n||r!==qn){const n=""===$n,s=n?qn:(i=$n,Dt.test(i)?"rtl":Lt.test(i)?"ltr":null);if(s!==r){const i=e.classList,o=Dn.theme;let l=null!==r?o[r]:void 0,c=null!==s?o[s]:void 0;if(void 0!==l){if("string"==typeof l){const t=Kt(l);l=o[r]=t}i.remove(...l)}if(null===s||n&&"ltr"===s)e.removeAttribute("dir");else{if(void 0!==c){if("string"==typeof c){const t=Kt(c);c=o[s]=t}void 0!==c&&i.add(...c)}e.dir=s}Hn||(t.getWritable().__dir=s)}qn=s,e.__lexicalDirTextContent=$n,e.__lexicalDir=s}var i}function lr(t,e){const n=[];let r=t.__first;for(;null!==r;){const t=e.get(r);void 0===t&&Rt(101),n.push(r),r=t.__next}return n}function cr(t,e){const n=Wn.get(t);let r=zn.get(t);void 0!==n&&void 0!==r||Rt(61);const i=jn||Mn.has(t)||An.has(t),s=tn(Ln,t);if(n===r&&!i){if(_s(n)){const t=s.__lexicalTextContent;void 0!==t&&(Kn+=t,Vn+=t);const e=s.__lexicalDirTextContent;void 0!==e&&($n+=e)}else{const t=n.getTextContent();oi(n)&&!n.isDirectionless()&&($n+=t),Vn+=t,Kn+=t}return s}if(n!==r&&i&&He(Rn,On,In,r,"updated"),r.updateDOM(n,s,Dn)){const n=er(t,null,null);return null===e&&Rt(62),e.replaceChild(n,s),Qn(t,null),n}if(_s(n)&&_s(r)){const t=r.__indent;t!==n.__indent&&Gn(s,t);const e=r.__format;e!==n.__format&&tr(s,e),i&&(function or(t,e,n){const r=$n;var i;$n="",Jn=null,Un="",function(t,e,n){const r=Kn,i=t.__size,s=e.__size;if(Kn="",1===i&&1===s){const r=t.__first,i=e.__first;if(r===i)cr(r,n);else{const t=dr(r),e=er(i,null,null);try{n.replaceChild(e,t)}catch(s){if("object"==typeof s&&null!=s){const o=`${s.toString()} Parent: ${n.tagName}, new child: {tag: ${e.tagName} key: ${i}}, old child: {tag: ${t.tagName}, key: ${r}}.`;throw new Error(o)}throw s}Qn(r,null)}const s=zn.get(i);oi(s)&&(null===Jn&&(Jn=s.getFormat()),""===Un&&(Un=s.getStyle()))}else{const r=lr(t,Wn),o=lr(e,zn);if(0===i)0!==s&&nr(o,e,0,s-1,n,null);else if(0===s){if(0!==i){const t=null==n.__lexicalLineBreak;Xn(r,0,i-1,t?null:n),t&&(n.textContent="")}}else!function(t,e,n,r,i,s){const o=r-1,l=i-1;let c,a,u=s.firstChild,f=0,d=0;for(;f<=o&&d<=l;){const t=e[f],r=n[d];if(t===r)u=ur(cr(r,s)),f++,d++;else{void 0===c&&(c=new Set(e)),void 0===a&&(a=new Set(n));const i=a.has(t),o=c.has(r);if(i)if(o){const t=tn(Ln,r);t===u?u=ur(cr(r,s)):(null!=u?s.insertBefore(t,u):s.appendChild(t),cr(r,s)),f++,d++}else er(r,s,u),d++;else u=ur(dr(t)),Qn(t,s),f++}const i=zn.get(r);null!==i&&oi(i)&&(null===Jn&&(Jn=i.getFormat()),""===Un&&(Un=i.getStyle()))}const g=f>o,_=d>l;if(g&&!_){const e=n[l+1];nr(n,t,d,l,s,void 0===e?null:Ln.getElementByKey(e))}else _&&!g&&Xn(e,f,o,s)}(e,r,o,i,s,n)}Ge(e)&&(Kn+=Nt),n.__lexicalTextContent=Kn,Kn=r+Kn}(t,e,n),sr(e,n),Es(i=e)&&null!=Jn&&Jn!==i.__textFormat&&!Hn&&(i.setTextFormat(Jn),i.setTextStyle(Un)),function(t){Es(t)&&""!==Un&&Un!==t.__textStyle&&!Hn&&t.setTextStyle(Un)}(e),$n=r}(n,r,s),vs(r)||r.isInline()||ir(n,r,s)),Ge(r)&&(Kn+=Nt,Vn+=Nt)}else{const e=r.getTextContent();if(ms(r)){const e=r.decorate(Ln,Dn);null!==e&&ar(t,e)}else oi(r)&&!r.isDirectionless()&&($n+=e);Kn+=e,Vn+=e}if(!Hn&&vs(r)&&r.__cachedText!==Vn){const t=r.getWritable();t.__cachedText=Vn,r=t}return s}function ar(t,e){let n=Ln._pendingDecorators;const r=Ln._decorators;if(null===n){if(r[t]===e)return;n=ke(Ln)}n[t]=e}function ur(t){let e=t.nextSibling;return null!==e&&e===Ln._blockCursorElement&&(e=e.nextSibling),e}function dr(t){const e=Bn.get(t);return void 0===e&&Rt(75,t),e}const hr=Object.freeze({}),_r=[["keydown",function(t,e){if(pr=t.timeStamp,yr=t.key,e.isComposing())return;const{key:n,shiftKey:r,ctrlKey:o,metaKey:l,altKey:c}=t;Ze(e,_,t)||null!=n&&(!function(t,e,n,r){return Be(t)&&!e&&!r&&!n}(n,o,c,l)?!function(t,e,n,r,i){return Be(t)&&!r&&!n&&(e||i)}(n,o,r,c,l)?!function(t,e,n,r){return ze(t)&&!e&&!r&&!n}(n,o,c,l)?!function(t,e,n,r,i){return ze(t)&&!r&&!n&&(e||i)}(n,o,r,c,l)?!function(t,e,n){return function(t){return"ArrowUp"===t}(t)&&!e&&!n}(n,o,l)?!function(t,e,n){return function(t){return"ArrowDown"===t}(t)&&!e&&!n}(n,o,l)?!function(t,e){return Ke(t)&&e}(n,r)?!function(t){return" "===t}(n)?!function(t,e){return q&&e&&"o"===t.toLowerCase()}(n,o)?!function(t,e){return Ke(t)&&!e}(n,r)?!function(t,e,n,r){return q?!e&&!n&&($e(t)||"h"===t.toLowerCase()&&r):!(r||e||n)&&$e(t)}(n,c,l,o)?!function(t){return"Escape"===t}(n)?!function(t,e,n,r,i){return q?!(n||r||i)&&(Je(t)||"d"===t.toLowerCase()&&e):!(e||r||i)&&Je(t)}(n,o,r,c,l)?!function(t,e,n){return $e(t)&&(q?e:n)}(n,c,o)?!function(t,e,n){return Je(t)&&(q?e:n)}(n,c,o)?!function(t,e){return q&&e&&$e(t)}(n,l)?!function(t,e){return q&&e&&Je(t)}(n,l)?!function(t,e,n,r){return"b"===t.toLowerCase()&&!e&&Re(n,r)}(n,c,l,o)?!function(t,e,n,r){return"u"===t.toLowerCase()&&!e&&Re(n,r)}(n,c,l,o)?!function(t,e,n,r){return"i"===t.toLowerCase()&&!e&&Re(n,r)}(n,c,l,o)?!function(t,e,n,r){return"Tab"===t&&!e&&!n&&!r}(n,c,o,l)?!function(t,e,n,r){return"z"===t.toLowerCase()&&!e&&Re(n,r)}(n,r,l,o)?!function(t,e,n,r){return q?"z"===t.toLowerCase()&&n&&e:"y"===t.toLowerCase()&&r||"z"===t.toLowerCase()&&r&&e}(n,r,l,o)?xi(e._editorState._selection)?function(t,e,n,r){return!e&&"c"===t.toLowerCase()&&(q?n:r)}(n,r,l,o)?(t.preventDefault(),Ze(e,M,t)):function(t,e,n,r){return!e&&"x"===t.toLowerCase()&&(q?n:r)}(n,r,l,o)?(t.preventDefault(),Ze(e,W,t)):Ue(n,l,o)&&(t.preventDefault(),Ze(e,z,t)):!Q&&Ue(n,l,o)&&(t.preventDefault(),Ze(e,z,t)):(t.preventDefault(),Ze(e,g,void 0)):(t.preventDefault(),Ze(e,h,void 0)):Ze(e,N,t):(t.preventDefault(),Ze(e,d,"italic")):(t.preventDefault(),Ze(e,d,"underline")):(t.preventDefault(),Ze(e,d,"bold")):(t.preventDefault(),Ze(e,f,!1)):(t.preventDefault(),Ze(e,f,!0)):(t.preventDefault(),Ze(e,u,!1)):(t.preventDefault(),Ze(e,u,!0)):Je(n)?Ze(e,w,t):(t.preventDefault(),Ze(e,i,!1)):Ze(e,b,t):$e(n)?Ze(e,k,t):(t.preventDefault(),Ze(e,i,!0)):(Cr=!1,Ze(e,T,t)):(t.preventDefault(),Cr=!0,Ze(e,s,!0)):Ze(e,C,t):(Cr=!0,Ze(e,T,t)):Ze(e,S,t):Ze(e,v,t):Ze(e,x,t):Ze(e,m,t):Ze(e,y,t):Ze(e,p,t),function(t,e,n,r){return t||e||n||r}(o,r,c,l)&&Ze(e,V,t))}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;n instanceof Node&&"touch"!==r&&hs(e,(()=>{ms(Ce(n))||(Tr=!0)}))}],["compositionstart",function(t,e){hs(e,(()=>{const n=Oi();if(yi(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();xe(r.key),(t.timeStamp{Fr(e,t.data)}))}],["input",function(t,e){t.stopPropagation(),hs(e,(()=>{const n=Oi(),r=t.data,i=Pr(t);if(null!=r&&yi(n)&&wr(n,i,r,t.timeStamp,!1)){kr&&(Fr(e,r),kr=!1);const i=n.anchor.getNode(),s=yn(e._window);if(null===s)return;const o=n.isBackward(),c=o?n.anchor.offset:n.focus.offset,a=o?n.focus.offset:n.anchor.offset;X&&!n.isCollapsed()&&oi(i)&&null!==s.anchorNode&&i.getTextContent().slice(0,c)+r+i.getTextContent().slice(c+a)===Ie(s.anchorNode)||Ze(e,l,r);const u=r.length;Q&&u>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=u),Y||Z||nt||!e.isComposing()||(pr=0,xe(null))}else Ae(!1,e,null!==r?r:void 0),kr&&(Fr(e,r||void 0),kr=!1);Yi(),Xt(ts())})),xr=null}],["click",function(t,e){hs(e,(()=>{const n=Oi(),i=yn(e._window),s=Ii();if(i)if(yi(n)){const e=n.anchor,r=e.getNode();"element"===e.type&&0===e.offset&&n.isCollapsed()&&!vs(r)&&1===we().getChildrenSize()&&r.getTopLevelElementOrThrow().isEmpty()&&null!==s&&n.is(s)?(i.removeAllRanges(),n.dirty=!0):3!==t.detail||n.isCollapsed()||r!==n.focus.getNode()&&(_s(r)?r.select(0):r.getParentOrThrow().select(0))}else if("touch"===t.pointerType){const n=i.anchorNode;if(null!==n){const r=n.nodeType;r!==rt&&r!==it||Ee(Li(s,i,e,t))}}Ze(e,r,t)}))}],["cut",hr],["copy",hr],["dragstart",hr],["dragover",hr],["dragend",hr],["paste",hr],["focus",hr],["blur",hr],["drop",hr]];X&&_r.push(["beforeinput",(t,e)=>function(t,e){const n=t.inputType,r=Pr(t);"deleteCompositionText"===n||Q&&Ye(e)||"insertCompositionText"!==n&&hs(e,(()=>{const _=Oi();if("deleteContentBackward"===n){if(null===_){const t=Ii();if(!yi(t))return;Ee(t.clone())}if(yi(_)){const n=_.anchor.key===_.focus.key;if(p=t.timeStamp,"MediaLast"===yr&&p{hs(e,(()=>{xe(null)}))}),30),yi(_)){const t=_.anchor.getNode();t.markDirty(),_.format=t.getFormat(),oi(t)||Rt(142),_.style=t.getStyle()}}else{xe(null),t.preventDefault();const r=_.anchor.getNode().getTextContent(),s=0===_.anchor.offset&&_.focus.offset===r.length;et&&n&&!s||Ze(e,i,!0)}return}}var p;if(!yi(_))return;const y=t.data;null!==xr&&Ae(!1,e,xr),_.dirty&&null===xr||!_.isCollapsed()||vs(_.anchor.getNode())||null===r||_.applyDOMRange(r),xr=null;const m=_.anchor,x=_.focus,v=m.getNode(),S=x.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ze(e,l,t);break;case"insertFromComposition":xe(null),Ze(e,l,t);break;case"insertLineBreak":xe(null),Ze(e,s,!1);break;case"insertParagraph":xe(null),Cr&&!Z?(Cr=!1,Ze(e,s,!1)):Ze(e,o,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ze(e,c,t);break;case"deleteByComposition":(function(t,e){return t!==e||_s(t)||_s(e)||!t.isToken()||!e.isToken()})(v,S)&&Ze(e,a,t);break;case"deleteByDrag":case"deleteByCut":Ze(e,a,t);break;case"deleteContent":Ze(e,i,!1);break;case"deleteWordBackward":Ze(e,u,!0);break;case"deleteWordForward":Ze(e,u,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ze(e,f,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ze(e,f,!1);break;case"formatStrikeThrough":Ze(e,d,"strikethrough");break;case"formatBold":Ze(e,d,"bold");break;case"formatItalic":Ze(e,d,"italic");break;case"formatUnderline":Ze(e,d,"underline");break;case"historyUndo":Ze(e,h,void 0);break;case"historyRedo":Ze(e,g,void 0)}else{if("\n"===y)t.preventDefault(),Ze(e,s,!1);else if(y===Nt)t.preventDefault(),Ze(e,o,void 0);else if(null==y&&t.dataTransfer){const e=t.dataTransfer.getData("text/plain");t.preventDefault(),_.insertRawText(e)}else null!=y&&wr(_,r,y,t.timeStamp,!0)?(t.preventDefault(),Ze(e,l,y)):xr=y;mr=t.timeStamp}}))}(t,e)]);let pr=0,yr=null,mr=0,xr=null;const vr=new WeakMap;let Sr=!1,Tr=!1,Cr=!1,kr=!1,br=[0,"",0,"root",0];function wr(t,e,n,r,i){const s=t.anchor,o=t.focus,l=s.getNode(),c=ts(),a=yn(c._window),u=null!==a?a.anchorNode:null,f=s.key,d=c.getElementByKey(f),h=n.length;return f!==o.key||!oi(l)||(!i&&(!X||mr1||(i||!X)&&null!==d&&!l.isComposing()&&u!==he(d)||null!==a&&null!==e&&(!e.collapsed||e.startContainer!==a.anchorNode||e.startOffset!==a.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function We(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=e.isToken();return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return(oi(e)||_s(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,l)}function Nr(t,e){return null!==t&&null!==t.nodeValue&&t.nodeType===it&&0!==e&&e!==t.nodeValue.length}function Er(t,n,r){const{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:l}=t;Sr&&(Sr=!1,Nr(i,s)&&Nr(o,l))||hs(n,(()=>{if(!r)return void Ee(null);if(!le(n,i,o))return;const c=Oi();if(yi(c)){const e=c.anchor,r=e.getNode();if(c.isCollapsed()){"Range"===t.type&&t.anchorNode===t.focusNode&&(c.dirty=!0);const i=on(n).event,s=i?i.timeStamp:performance.now(),[o,l,a,u,f]=br,d=we(),h=!1===n.isComposing()&&""===d.getTextContent();if(s{const e=Ii(),i=n.anchorNode;if(null===i)return;const s=i.nodeType;s!==rt&&s!==it||Ee(Li(e,n,r,t))})));const i=Le(r),s=i[i.length-1],o=s._key,l=Lr.get(o),c=l||s;c!==r&&Er(n,c,!1),Er(n,r,!0),r!==s?Lr.set(o,r):l&&Lr.delete(o)}function Ir(t){t._lexicalHandled=!0}function Ar(t){return!0===t._lexicalHandled}function Wr(t,e,n){Yi();const r=t.__key,i=t.getParent();if(null===i)return;const s=function(t){const e=Oi();if(!yi(e)||!_s(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),s=r.getNode();return sn(i,t)&&n.set(t.__key,0,"element"),sn(s,t)&&r.set(t.__key,0,"element"),e}(t);let o=!1;if(yi(s)&&e){const e=s.anchor,n=s.focus;e.key===r&&(Wi(e,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0),n.key===r&&(Wi(n,t,i,t.getPreviousSibling(),t.getNextSibling()),o=!0)}else xi(s)&&e&&t.isSelected()&&t.selectPrevious();if(yi(s)&&e&&!o){const e=t.getIndexWithinParent();ye(t),Ai(s,i,e,-1)}else ye(t);n||an(i)||i.canBeEmpty()||!i.isEmpty()||Wr(i,e),e&&vs(i)&&i.isEmpty()&&i.selectEnd()}class zr{static getType(){Rt(64,this.name)}static clone(t){Rt(65,this.name)}afterCloneFrom(t){this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev}constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,pe(this,t)}getType(){return this.__type}isInline(){Rt(137,this.constructor.name)}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return!0;const e=Se(t);if(null===e)break;t=e.__parent}return!1}isSelected(t){const e=t||Oi();if(null==e)return!1;const n=e.getNodes().some((t=>t.__key===this.__key));if(oi(this))return n;if(yi(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;const t=this.getParent();if(ms(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor,r=n.getNode();if(n.offset===r.getChildrenSize()&&r.is(t)&&r.getLastChildOrThrow().is(this))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return-1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return null===t?null:Se(t)}getParentOrThrow(){const t=this.getParent();return null===t&&Rt(66,this.__key),t}getTopLevelElement(){let t=this;for(;null!==t;){const e=t.getParent();if(an(e))return _s(t)||t===this&&ms(t)||Rt(194),t;t=e}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return null===t&&Rt(67,this.__key),t}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:Se(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:Se(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=this.getParents(),n=t.getParents();_s(this)&&e.unshift(this),_s(t)&&n.unshift(t);const r=e.length,i=n.length;if(0===r||0===i||e[r-1]!==n[i-1])return null;const s=new Set(n);for(let t=0;t{o.append(t)}))),yi(n)){Ee(n);const t=n.anchor,e=n.focus;t.key===i&&gi(t,o),e.key===i&&gi(e,o)}return ve()===i&&xe(s),o}insertAfter(t,e=!0){Yi(),dn(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),s=Oi();let o=!1,l=!1;if(null!==i){const e=t.getIndexWithinParent();if(ye(r),yi(s)){const t=i.__key,n=s.anchor,r=s.focus;o="element"===n.type&&n.key===t&&n.offset===e+1,l="element"===r.type&&r.key===t&&r.offset===e+1}}const c=this.getNextSibling(),a=this.getParentOrThrow().getWritable(),u=r.__key,f=n.__next;if(null===c?a.__last=u:c.getWritable().__prev=u,a.__size++,n.__next=u,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,e&&yi(s)){const t=this.getIndexWithinParent();Ai(s,a,t+1);const e=a.__key;o&&s.anchor.set(e,t+2,"element"),l&&s.focus.set(e,t+2,"element")}return t}insertBefore(t,e=!0){Yi(),dn(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;ye(r);const s=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),l=n.__prev,c=this.getIndexWithinParent();null===s?o.__first=i:s.getWritable().__next=i,o.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const a=Oi();return e&&yi(a)&&Ai(a,this.getParentOrThrow(),c),t}isParentRequired(){return!1}createParentElementNode(){return Ns()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){Yi();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(_s(n))return n.select();if(!oi(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){Yi();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(_s(n))return n.select(0,0);if(!oi(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable()}}class Br extends zr{static getType(){return"linebreak"}static clone(t){return new Br(t.__key)}constructor(t){super(t)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:t=>function(t){const e=t.parentElement;if(null!==e&&Tn(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Jr(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Jr(n))return!0}}return!1}(t)||function(t){const e=t.parentElement;if(null!==e&&Tn(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Jr(n))return!1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Jr(r))return!0}return!1}(t)?null:{conversion:Rr,priority:0}}}static importJSON(t){return Kr()}exportJSON(){return{type:"linebreak",version:1}}}function Rr(t){return{node:Kr()}}function Kr(){return fn(new Br)}function $r(t){return t instanceof Br}function Jr(t){return t.nodeType===it&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Ur(t,e){return 16&e?"code":128&e?"mark":32&e?"sub":64&e?"sup":null}function Vr(t,e){return 1&e?"strong":2&e?"em":"span"}function jr(t,e,n,r,i){const s=r.classList;let o=je(i,"base");void 0!==o&&s.add(...o),o=je(i,"underlineStrikethrough");let l=!1;const c=e>&&e&ht;void 0!==o&&(n>&&n&ht?(l=!0,c||s.add(...o)):c&&s.remove(...o));for(const t in Ot){const r=Ot[t];if(o=je(i,t),void 0!==o)if(n&r){if(l&&("underline"===t||"strikethrough"===t)){e&r&&s.remove(...o);continue}e&r&&(!c||"underline"!==t)&&"strikethrough"!==t||s.add(...o)}else e&r&&s.remove(...o)}}function Hr(t,e,n){const r=e.firstChild,i=n.isComposing(),s=t+(i?wt:"");if(null==r)e.textContent=s;else{const t=r.nodeValue;if(t!==s)if(i||Q){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,s=0;for(;i({conversion:ei,priority:0}),b:()=>({conversion:Zr,priority:0}),code:()=>({conversion:ii,priority:0}),em:()=>({conversion:ii,priority:0}),i:()=>({conversion:ii,priority:0}),s:()=>({conversion:ii,priority:0}),span:()=>({conversion:Yr,priority:0}),strong:()=>({conversion:ii,priority:0}),sub:()=>({conversion:ii,priority:0}),sup:()=>({conversion:ii,priority:0}),u:()=>({conversion:ii,priority:0})}}static importJSON(t){const e=si(t.text);return e.setFormat(t.format),e.setDetail(t.detail),e.setMode(t.mode),e.setStyle(t.style),e}exportDOM(t){let{element:e}=super.exportDOM(t);return null!==e&&vn(e)||Rt(132),e.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(e=Qr(e,"b")),this.hasFormat("italic")&&(e=Qr(e,"i")),this.hasFormat("strikethrough")&&(e=Qr(e,"s")),this.hasFormat("underline")&&(e=Qr(e,"u")),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?Ot[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?It[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=ge(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=Wt[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){Yi();let n=t,r=e;const i=Oi(),s=this.getTextContent(),o=this.__key;if("string"==typeof s){const t=s.length;void 0===n&&(n=t),void 0===r&&(r=t)}else n=0,r=0;if(!yi(i))return Ei(o,n,o,r,"text","text");{const t=ve();t!==i.anchor.key&&t!==i.focus.key||xe(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),s=i.__text,o=n.length;let l=t;l<0&&(l=o+l,l<0&&(l=0));const c=Oi();if(r&&yi(c)){const e=t+o;c.setTextNodeRange(i,e,i,e)}const a=s.slice(0,l)+n+s.slice(l+e);return i.__text=a,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Yi();const e=this.getLatest(),n=e.getTextContent(),r=e.__key,i=ve(),s=new Set(t),o=[],l=n.length;let c="";for(let t=0;tx&&t.offset<=c&&(t.key=l,t.offset-=x,y.dirty=!0),e.key===r&&"text"===e.type&&e.offset>x&&e.offset<=c&&(e.key=l,e.offset-=x,y.dirty=!0)}i===r&&xe(l),x=c,m.push(s)}if(null!==f){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&me(e),null!==n&&me(n)}(this);const t=f.getWritable(),e=this.getIndexWithinParent();p?(t.splice(e,0,m),this.remove()):t.splice(e,1,m),yi(y)&&Ai(y,f,e,a-1)}return m}mergeWithSibling(t){const e=t===this.getPreviousSibling();e||t===this.getNextSibling()||Rt(50);const n=this.__key,r=t.__key,i=this.__text,s=i.length;ve()===r&&xe(n);const o=Oi();if(yi(o)){const i=o.anchor,l=o.focus;null!==i&&i.key===r&&(zi(i,e,n,t,s),o.dirty=!0),null!==l&&l.key===r&&(zi(l,e,n,t,s),o.dirty=!0)}const l=t.__text,c=e?l+i:i+l;this.setTextContent(c);const a=this.getWritable();return t.remove(),a}isTextEntity(){return!1}}function Yr(t){return{forChild:li(t.style),node:null}}function Zr(t){const e=t,n="normal"===e.style.fontWeight;return{forChild:li(e.style,n?void 0:"bold"),node:null}}const Gr=new WeakMap;function ti(t){return"PRE"===t.nodeName||t.nodeType===rt&&void 0!==t.style&&void 0!==t.style.whiteSpace&&t.style.whiteSpace.startsWith("pre")}function ei(t){const e=t;null===t.parentElement&&Rt(129);let n=e.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=Gr.get(n))&&!ti(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t0){/[ \t\n]$/.test(e)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let t=e,r=!0;for(;null!==t&&null!==(t=ni(t,!0));)if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:si(n)}}function ni(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t}if(n=t,n.nodeType===rt){const t=n.style.display;if(""===t&&!Sn(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if(n.nodeType===it)return n;if("BR"===n.nodeName)return null}}const ri={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function ii(t){const e=ri[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:li(t.style,e),node:null}}function si(t=""){return fn(new Xr(t))}function oi(t){return t instanceof Xr}function li(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,s=r.includes("line-through"),o="italic"===t.fontStyle,l=r.includes("underline"),c=t.verticalAlign;return t=>oi(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),s&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),o&&!t.hasFormat("italic")&&t.toggleFormat("italic"),l&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==c||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==c||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class ci extends Xr{static getType(){return"tab"}static clone(t){return new ci(t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text}constructor(t){super("\t",t),this.__detail=2}static importDOM(){return null}static importJSON(t){const e=ai();return e.setFormat(t.format),e.setStyle(t.style),e}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(t){Rt(126)}setDetail(t){Rt(127)}setMode(t){Rt(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function ai(){return fn(new ci)}class fi{constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){let e=this.getNode(),n=t.getNode();const r=this.offset,i=t.offset;if(_s(e)){const t=e.getDescendantByIndex(r);e=null!=t?t:e}if(_s(n)){const t=n.getDescendantByIndex(i);n=null!=t?t:n}return e===n?rt&&(r=t)}else if(!_s(e)){const t=e.getNextSibling();if(oi(t))n=t.__key,r=0,i="text";else{const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function gi(t,e){if(_s(e)){const n=e.getLastDescendant();_s(n)||oi(n)?hi(t,n):hi(t,e)}else hi(t,e)}function _i(t,e,n,r){t.key=e,t.offset=n,t.type=r}class pi{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!xi(t))return!1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every((t=>n.has(t)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new pi(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(oi(r))i=r.select();else{const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t)}i.insertNodes(t);for(let t=0;t0?[]:[o]:o.getNodesBetween(l),Xi()||(this._cachedNodes=u),u}setTextNodeRange(t,e,n,r){_i(this.anchor,t.__key,e,"text"),_i(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const t=this.getNodes();if(0===t.length)return"";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[o,l]=Si(this);let c="",a=!0;for(let u=0;u=0;t--){const e=s[t];if(e.is(f)||_s(e)&&e.isParentOf(f))break;e.isAttached()&&(!h.has(e)||e.is(i)?_||p.insertAfter(e,!1):e.remove())}if(!_){let t=r,n=null;for(;null!==t;){const r=t.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(e.delete(t.__key),n=t),t=t.getParent()}}if(f.isToken())if(l===d)f.select();else{const e=si(t);e.select(),f.replace(e)}else f=f.spliceText(l,d-l,t,!0),""===f.getTextContent()?f.remove():f.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=t.length);for(let t=1;t0&&(_===g.getTextContentSize()||fe(g)||([g]=g.splitText(_)),g.setFormat(p));for(let e=a+1;e(_s(t)||ms(t))&&!t.isInline()))){_s(e)||Rt(135);const r=$i(this);return e.splice(r,0,t),void n.selectEnd()}const r=function(t){const e=Ns();let n=null;for(let r=0;rc?c:l,e=l>c?l:c,n=s.splitText(t,e),r=0===t?n[0]:n[1];return null!=r?[r]:[]}return[s]}const a=r.isBefore(i);if(oi(s)){const e=a?l:c;e===s.getTextContentSize()?t.shift():0!==e&&([,s]=s.splitText(e),t[0]=s)}if(oi(o)){const e=o.getTextContent().length,r=a?c:l;0===r?t.pop():r!==e&&([o]=o.splitText(r),t[n]=o)}return t}modify(t,e,n){const r=this.focus,i=this.anchor,s="move"===t,o=Xe(r,e);if(ms(o)&&!o.isIsolated()){if(s&&o.isKeyboardSelectable()){const t=Fi();return t.add(o.__key),void Ee(t)}const t=e?o.getPreviousSibling():o.getNextSibling();if(oi(t)){const n=t.__key,o=e?t.getTextContent().length:0;return r.set(n,o,"text"),void(s&&i.set(n,o,"text"))}{const n=o.getParentOrThrow();let l,c;return _s(t)?(c=t.__key,l=e?t.getChildrenSize():0):(l=o.getIndexWithinParent(),c=n.__key,e||l++),r.set(c,l,"element"),void(s&&i.set(c,l,"element"))}}const l=ts(),c=yn(l._window);if(!c)return;const a=l._blockCursorElement,u=l._rootElement;if(null===u||null===a||!_s(o)||o.isInline()||o.canBeEmpty()||_n(a,l,u),function(t,e,n,r){t.modify(e,n,r)}(c,t,e?"backward":"forward",n),c.rangeCount>0){const t=c.getRangeAt(0),n=this.anchor.getNode(),r=vs(n)?n:function cn(t){let e=t.getParentOrThrow();for(;null!==e;){if(an(e))return e;e=e.getParentOrThrow()}return e}(n);if(this.applyDOMRange(t),this.dirty=!0,!s){const n=this.getNodes(),i=[];let s=!1;for(let t=0;t0)if(e){const t=i[0];_s(t)?t.selectStart():t.getParentOrThrow().selectStart()}else{const t=i[i.length-1];_s(t)?t.selectEnd():t.getParentOrThrow().selectEnd()}c.anchorNode===t.startContainer&&c.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,s=n.type;_i(n,e.key,e.offset,e.type),_i(e,r,i,s),t._cachedNodes=null}(this)}}}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&_s(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(_s(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(t){const n=this.isCollapsed();if(this.isCollapsed()){const n=this.anchor;let r=n.getNode();if(this.forwardDeletion(n,r,t))return;const i=this.focus,s=Xe(i,t);if(ms(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&_s(r)&&0===r.getChildrenSize()){r.remove();const t=Fi();t.add(s.__key),Ee(t)}else s.remove(),ts().dispatchCommand(e,void 0);return}if(!t&&_s(s)&&_s(r)&&r.isEmpty())return r.remove(),void s.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===n.offset&&("element"===n.type?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const e="text"===i.type?i.getNode():null;if(r="text"===n.type?n.getNode():null,null!==e&&e.isSegmented()){const n=i.offset,s=e.getTextContentSize();if(e.is(r)||t&&n!==s||!t&&0!==n)return void Ti(e,t,n)}else if(null!==r&&r.isSegmented()){const i=n.offset,s=r.getTextContentSize();if(r.is(e)||t&&0!==i||!t&&i!==s)return void Ti(r,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){const t=n.offset,s=r.offset,o=tn||r){i.splice(t,1),r&&(l=void 0);break}}const c=i.join("").trim();""===c?r.remove():(r.setTextContent(c),r.select(l,l))}function Ci(t,e,n,r){let i,s=e;if(t.nodeType===rt){let o=!1;const l=t.childNodes,c=l.length,a=r._blockCursorElement;s===c&&(o=!0,s=c-1);let u=l[s],f=!1;if(u===a)u=l[s+1],f=!0;else if(null!==a){const n=a.parentNode;t===n&&e>Array.prototype.indexOf.call(n.children,a)&&s--}if(i=Pe(u),oi(i))s=Fe(i,o);else{let r=Pe(t);if(null===r)return null;if(_s(r)){s=Math.min(r.getChildrenSize(),s);let t=r.getChildAtIndex(s);if(_s(t)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(t,0,n)){const e=o?t.getLastDescendant():t.getFirstDescendant();null===e?r=t:(t=e,r=_s(t)?t:t.getParentOrThrow()),s=0}oi(t)?(i=t,r=null,s=Fe(t,o)):t!==r&&o&&!f&&s++}else{const n=r.getIndexWithinParent();s=0===e&&ms(r)&&Pe(t)===r?n:n+1,r=r.getParentOrThrow()}if(_s(r))return di(r.__key,s,"element")}}else i=Pe(t);return oi(i)?di(i.__key,s,"text"):null}function ki(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),s=i.getParent();if(e){if((n||!e)&&null===r&&_s(s)&&s.isInline()){const e=s.getPreviousSibling();oi(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)}}else _s(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):oi(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)}else if(r===i.getTextContent().length){const r=i.getNextSibling(),s=i.getParent();if(e&&_s(r)&&r.isInline())t.key=r.__key,t.offset=0,t.type="element";else if((n||e)&&null===r&&_s(s)&&s.isInline()&&!s.canInsertTextAfter()){const e=s.getNextSibling();oi(e)&&(t.key=e.__key,t.offset=0)}}}function bi(t,e,n){if("text"===t.type&&"text"===e.type){const r=t.isBefore(e),i=t.is(e);ki(t,r,i),ki(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type);const s=ts();if(s.isComposing()&&s._compositionKey!==t.key&&yi(n)){const r=n.anchor,i=n.focus;_i(t,r.key,r.offset,r.type),_i(e,i.key,i.offset,i.type)}}}function wi(t,e,n,r,i,s){if(null===t||null===n||!le(i,t,n))return null;const o=Ci(t,e,yi(s)?s.anchor:null,i);if(null===o)return null;const l=Ci(n,r,yi(s)?s.focus:null,i);if(null===l)return null;if("element"===o.type&&"element"===l.type){const e=Pe(t),r=Pe(n);if(ms(e)&&ms(r))return null}return bi(o,l,s),[o,l]}function Ei(t,e,n,r,i,s){const o=Gi(),l=new mi(di(t,e,i),di(n,r,s),0,"");return l.dirty=!0,o._selection=l,l}function Fi(){return new pi(new Set)}function Li(t,e,n,r){const i=n._window;if(null===i)return null;const s=r||i.event,o=s?s.type:void 0,l="selectionchange"===o,c=!Jt&&(l||"beforeinput"===o||"compositionstart"===o||"compositionend"===o||"click"===o&&s&&3===s.detail||"drop"===o||void 0===o);let a,u,f,d;if(yi(t)&&!c)return t.clone();if(null===e)return null;if(a=e.anchorNode,u=e.focusNode,f=e.anchorOffset,d=e.focusOffset,l&&yi(t)&&!le(n,a,u))return t.clone();const h=wi(a,f,u,d,n,t);if(null===h)return null;const[g,_]=h;return new mi(g,_,yi(t)?t.format:0,yi(t)?t.style:"")}function Oi(){return Gi()._selection}function Ii(){return ts()._editorState._selection}function Ai(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),l=s.getNode();if(!e.is(o)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n0||n0||n=t,o=i?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(oi(o)){let t=0;i&&(t=o.getTextContentSize()),e.set(o.__key,t,"text"),r.set(o.__key,t,"text")}}else{if(_s(s)){const t=s.getChildrenSize(),r=n>=t,i=r?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(oi(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text")}}if(_s(o)){const t=o.getChildrenSize(),e=i>=t,n=e?o.getChildAtIndex(t-1):o.getChildAtIndex(i);if(oi(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text")}}}}function Wi(t,e,n,r,i){let s=null,o=0,l=null;null!==r?(s=r.__key,oi(r)?(o=r.getTextContentSize(),l="text"):_s(r)&&(o=r.getChildrenSize(),l="element")):null!==i&&(s=i.__key,oi(i)?l="text":_s(i)&&(l="element")),null!==s&&null!==l?t.set(s,o,l):(o=e.getIndexWithinParent(),-1===o&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"))}function zi(t,e,n,r,i){"text"===t.type?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&(t.offset-=1)}function $i(t){let e=t;t.isCollapsed()||e.removeText();const n=Oi();yi(n)&&(e=n),yi(e)||Rt(161);const r=e.anchor;let i=r.getNode(),s=r.offset;for(;!Cn(i);)[i,s]=Ji(i,s);return s}function Ji(t,e){const n=t.getParent();if(!n){const t=Ns();return we().append(t),t.select(),[we(),0]}if(oi(t)){const r=t.splitText(e);if(0===r.length)return[n,t.getIndexWithinParent()];const i=0===e?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!_s(t)||0===e)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new mi(di(t.__key,e,"element"),di(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}let Ui=null,Vi=null,ji=!1,Hi=!1,qi=0;const Qi={characterData:!0,childList:!0,subtree:!0};function Xi(){return ji||null!==Ui&&Ui._readOnly}function Yi(){ji&&Rt(13)}function Zi(){qi>99&&Rt(14)}function Gi(){return null===Ui&&Rt(195,es()),Ui}function ts(){return null===Vi&&Rt(196,es()),Vi}function es(){let t=0;const e=new Set,n=Ms.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=ue(r);if(ce(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function rs(t,e,n){const r=e.__type,i=function(t,e){const n=t._nodes.get(e);return void 0===n&&Rt(30,e),n}(t,r);let s=n.get(r);void 0===s&&(s=Array.from(i.transforms),n.set(r,s));const o=s.length;for(let t=0;t0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect()}else e=t.getBoundingClientRect();!function(t,e,n){const r=n.ownerDocument,i=r.defaultView;if(null===i)return;let{top:s,bottom:o}=e,l=0,c=0,a=n;for(;null!==a;){const e=a===r.body;if(e)l=0,c=on(t).innerHeight;else{const t=a.getBoundingClientRect();l=t.top,c=t.bottom}let n=0;if(sc&&(n=o-c),0!==n)if(e)i.scrollBy(0,n);else{const t=a.scrollTop;a.scrollTop+=n;const e=a.scrollTop-t;s-=e,o-=e}if(e)break;a=en(a)}}(n,e,s)}}Sr=!0}}(l,c,t,S,x,i)}(function pn(t,e,n){let r=t._blockCursorElement;if(yi(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,s=i.getNode(),o=i.offset;let l=!1,c=null;if(o===s.getChildrenSize())gn(s.getChildAtIndex(o-1))&&(l=!0);else{const e=s.getChildAtIndex(o);if(gn(e)){const n=e.getPreviousSibling();(null===n||gn(n))&&(l=!0,c=t.getElementByKey(e.__key))}}if(l){const n=t.getElementByKey(s.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=Kt(r);r=e.blockCursor=t}void 0!==r&&n.classList.add(...r)}return n}(t._config)),e.style.caretColor="transparent",void(null===c?n.appendChild(r):n.insertBefore(r,c))}}null!==r&&_n(r,t,e)})(t,i,c),null!==g&&g.observe(i,Qi)}finally{Vi=d,Ui=u}}null!==_&&function(t,e,n,r,i){const s=Array.from(t._listeners.mutation),o=s.length;for(let t=0;t{r=us(t,e,n)})),r}const r=Le(t);for(let i=4;i>=0;i--)for(let s=0;s0||u>0;){if(c>0){e._dirtyLeaves=new Set;for(const t of l){const r=i.get(t);oi(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&te(r),void 0!==r&&is(r,s)&&rs(e,r,o),n.add(t)}if(l=e._dirtyLeaves,c=l.size,c>0){qi++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(const t of a){const n=t[0],l=t[1];if("root"!==n&&!l)continue;const c=i.get(n);void 0!==c&&is(c,s)&&rs(e,c,o),r.set(n,l)}l=e._dirtyLeaves,c=l.size,a=e._dirtyElements,u=a.size,qi++}e._dirtyLeaves=n,e._dirtyElements=r}(a,t),fs(t),function(t,e,n,r){const i=t._nodeMap,s=e._nodeMap,o=[];for(const[t]of r){const e=s.get(t);void 0!==e&&(e.isAttached()||(_s(e)&&Fn(e,t,i,s,o,r),i.has(t)||r.delete(t),o.push(t)))}for(const t of o)s.delete(t);for(const t of n){const e=s.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),s.delete(t))}}(c,a,t._dirtyLeaves,t._dirtyElements)),n!==t._compositionKey&&(a._flushSync=!0);const r=a._selection;if(yi(r)){const t=a._nodeMap,e=r.anchor.key,n=r.focus.key;void 0!==t.get(e)&&void 0!==t.get(n)||Rt(19)}else xi(r)&&0===r._nodes.size&&(a._selection=null)}catch(e){return e instanceof Error&&t._onError(e),t._pendingEditorState=c,t._dirtyType=lt,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void cs(t)}finally{Ui=f,ji=d,Vi=h,t._updating=g,qi=0}const _=t._dirtyType!==st||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(a,t);_?a._flushSync?(a._flushSync=!1,cs(t)):u&&se((()=>{cs(t)})):(a._flushSync=!1,u&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function hs(t,e,n){t._updating?t._updates.push([e,n]):ds(t,e,n)}class gs extends zr{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}afterCloneFrom(t){super.afterCloneFrom(t),this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return Mt[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=ts()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(oi(e)&&t.push(e),_s(e)){const n=e.getAllTextNodes();t.push(...n)}e=e.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;_s(t);){const e=t.getFirstChild();if(null===e)break;t=e}return t}getLastDescendant(){let t=this.getLastChild();for(;_s(t);){const e=t.getLastChild();if(null===e)break;t=e}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return _s(t)&&t.getLastDescendant()||t||null}const r=e[t];return _s(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:Se(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return null===t&&Rt(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return null===t?null:Se(t)}getLastChildOrThrow(){const t=this.getLastChild();return null===t&&Rt(96,this.__key),t}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t=t;){if(r===t)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;rt.remove())),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?At[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setIndent(t){return this.getWritable().__indent=t,this}splice(t,e,n){const r=n.length,i=this.getChildrenSize(),s=this.getWritable(),o=s.__key,l=[],c=[],a=this.getChildAtIndex(t+e);let u=null,f=i-e+r;if(0!==t)if(t===i)u=this.getLastChild();else{const e=this.getChildAtIndex(t);null!==e&&(u=e.getPreviousSibling())}if(e>0){let t=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n({root:Ts(we())})))}}class ks extends gs{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class bs extends gs{constructor(t){super(t),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}hasTextFormat(t){const e=Ot[t];return!!(this.getTextFormat()&e)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}static clone(t){return new bs(t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}createDOM(t){const e=document.createElement("p"),n=je(t.theme,"paragraph");return void 0!==n&&e.classList.add(...n),e}updateDOM(t,e,n){return!1}static importDOM(){return{p:t=>({conversion:ws,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(e&&vn(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;const n=this.getDirection();n&&(e.dir=n);const r=this.getIndent();r>0&&(e.style.textIndent=20*r+"px")}return{element:e}}static importJSON(t){const e=Ns();return e.setFormat(t.format),e.setIndent(t.indent),e.setDirection(t.direction),e.setTextFormat(t.textFormat),e}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(t,e){const n=Ns();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getTextStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||oi(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function ws(t){const e=Ns();if(t.style){e.setFormat(t.style.textAlign);const n=parseInt(t.style.textIndent,10)/20;n>0&&e.setIndent(n)}return{node:e}}function Ns(){return fn(new bs)}function Es(t){return t instanceof bs}const Ps=0,Fs=1;function Is(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=Ss(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=st,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;null!==s&&(s.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function As(t){const e=t||{},n=function ns(){return Vi}(),r=e.theme||{},i=void 0===t?n:e.parentEditor||null,s=e.disableEvents||!1,o=Ss(),l=e.namespace||(null!==i?i._config.namespace:Oe()),c=e.editorState,a=[xs,Xr,Br,ci,bs,ks,...e.nodes||[]],{onError:u,html:f}=e,d=void 0===e.editable||e.editable;let h;if(void 0===t&&null!==n)h=n._nodes;else{h=new Map;for(let t=0;t{Object.keys(t).forEach((e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e])}))};return t.forEach((t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n)})),e&&i(e),n}(h,f?f.import:void 0),d);return void 0!==c&&(g._pendingEditorState=c,g._dirtyType=lt),g}class Ms{constructor(t,e,n,r,i,s,o){this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=st,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Oe(),this._onError=i,this._htmlConversions=s,this._editable=o,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t)}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t)}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t)}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t)}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t)}}registerCommand(t,e,n){void 0===n&&Rt(35);const r=this._commands;r.has(t)||r.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=r.get(t);void 0===i&&Rt(36,String(t));const s=i[n];return s.add(e),()=>{s.delete(e),i.every((t=>0===t.size))&&r.delete(t)}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;i.set(e,r);const s=n&&n.skipInitialization;return void 0===s||s||this.initializeMutationListener(e,r),()=>{i.delete(e)}}getRegisteredNode(t){const e=this._nodes.get(t.getType());return void 0===e&&Rt(37,t.name),e}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=En(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t)}var o;return o=t.getType(),hs(this,(()=>{const t=Gi();if(t.isEmpty())return;if("root"===o)return void we().markDirty();const e=t._nodeMap;for(const[,t]of e)t.markDirty()}),null===this._pendingEditorState?{tag:"history-merge"}:void 0),()=>{r.forEach((t=>t.transforms.delete(e)))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ze(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=je(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,Is(this,e,t,r),null!==e&&(this._config.disableEvents||function Mr(t){const e=t.ownerDocument,n=vr.get(e);void 0===n&&Rt(162);const r=n-1;r>=0||Rt(164),vr.set(e,r),0===r&&e.removeEventListener("selectionchange",Or);const i=ue(t);ce(i)?(function(t){if(null!==t._parentEditor){const e=Le(t),n=e[e.length-1]._key;Lr.get(n)===t&&Lr.delete(n)}else Lr.delete(t._key)}(i),t.__lexicalEditor=null):i&&Rt(198);const s=Dr(t);for(let t=0;t{Ar(t)||(Ir(t),(e.isEditable()||"click"===r)&&s(t,e))}:t=>{if(Ar(t))return;Ir(t);const n=e.isEditable();switch(r){case"cut":return n&&Ze(e,W,t);case"copy":return Ze(e,M,t);case"paste":return n&&Ze(e,c,t);case"dragstart":return n&&Ze(e,O,t);case"dragover":return n&&Ze(e,I,t);case"dragend":return n&&Ze(e,A,t);case"focus":return n&&Ze(e,J,t);case"blur":return n&&Ze(e,U,t);case"drop":return n&&Ze(e,D,t)}};t.addEventListener(r,o),i.push((()=>{t.removeEventListener(r,o)}))}}(t,this),null!=n&&t.classList.add(...n)}else this._editorState=r,this._pendingEditorState=null,this._window=null;as("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,e){t.isEmpty()&&Rt(38),Xt(this);const n=this._pendingEditorState,r=this._updateTags,i=void 0!==e?e.tag:null;null===n||n.isEmpty()||(null!=i&&r.add(i),cs(this)),this._pendingEditorState=t,this._dirtyType=lt,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&r.add(i),cs(this)}parseEditorState(t,e){return function(t,e,n){const r=Ss(),i=Ui,s=ji,o=Vi,l=e._dirtyElements,c=e._dirtyLeaves,a=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,Ui=r,ji=!1,Vi=e;try{const i=e._nodes;os(t.root,i),n&&n(),r._readOnly=!0}catch(t){t instanceof Error&&e._onError(t)}finally{e._dirtyElements=l,e._dirtyLeaves=c,e._cloneNotNeeded=a,e._dirtyType=u,Ui=i,ji=s,Vi=o}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return cs(this),this.getEditorState().read(t,{editor:this})}update(t,e){hs(this,t,e)}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),hs(this,(()=>{const t=Oi(),n=we();null!==t?t.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===e.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),t&&t()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;null!==t&&t.blur();const e=yn(this._window);null!==e&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,as("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}Ms.version="0.17.1+prod.esm"},"./node_modules/lucide-react/dist/esm/icons/check.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Check}});const Check=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},"./node_modules/lucide-react/dist/esm/icons/chevron-down.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return ChevronDown}});const ChevronDown=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},"./node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return ChevronsUpDown}});const ChevronsUpDown=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},"./node_modules/lucide-react/dist/esm/icons/ellipsis.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Ellipsis}});const Ellipsis=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},"./node_modules/lucide-react/dist/esm/icons/info.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Info}});const Info=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},"./node_modules/lucide-react/dist/esm/icons/loader-circle.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return LoaderCircle}});const LoaderCircle=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},"./node_modules/lucide-react/dist/esm/icons/minus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Minus}});const Minus=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},"./node_modules/lucide-react/dist/esm/icons/panel-left-close.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return PanelLeftClose}});const PanelLeftClose=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]])},"./node_modules/lucide-react/dist/esm/icons/panel-left-open.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return PanelLeftOpen}});const PanelLeftOpen=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]])},"./node_modules/lucide-react/dist/esm/icons/plus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Plus}});const Plus=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},"./node_modules/lucide-react/dist/esm/icons/search.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Search}});const Search=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},"./node_modules/lucide-react/dist/esm/icons/trash-2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Trash2}});const Trash2=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},"./node_modules/lucide-react/dist/esm/icons/triangle-alert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return TriangleAlert}});const TriangleAlert=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},"./node_modules/lucide-react/dist/esm/icons/upload.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return Upload}});const Upload=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},"./node_modules/lucide-react/dist/esm/icons/x.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:function(){return X}});const X=(0,__webpack_require__("./node_modules/lucide-react/dist/esm/createLucideIcon.js").A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},"./node_modules/nanoid/index.browser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ak:function(){return nanoid}});let nanoid=(size=21)=>{let id="",bytes=crypto.getRandomValues(new Uint8Array(size));for(;size--;)id+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&bytes[size]];return id}}}]); \ No newline at end of file diff --git a/1713.154e0f6a.iframe.bundle.js.LICENSE.txt b/1713.154e0f6a.iframe.bundle.js.LICENSE.txt new file mode 100644 index 00000000..8a8cfbaa --- /dev/null +++ b/1713.154e0f6a.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/2840.4d99b275.iframe.bundle.js b/2840.4d99b275.iframe.bundle.js new file mode 100644 index 00000000..2048b76d --- /dev/null +++ b/2840.4d99b275.iframe.bundle.js @@ -0,0 +1,405 @@ +/*! For license information please see 2840.4d99b275.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_bsf_force_ui=self.webpackChunk_bsf_force_ui||[]).push([[2840],{"./node_modules/@base2/pretty-print-object/dist/index.js":function(__unused_webpack_module,exports){"use strict";var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i{let proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},serializeArg=a=>{if("object"==typeof(e=a)&&e&&findProto(e,(proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)))&&"function"==typeof e.persist){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return"object"==typeof view&&"Window"===view?.constructor.name&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}var e;return a};function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((render=>"playing"===render.phase||"rendering"===render.phase));if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name:name,deprecated:deprecated});if(!deprecated)throw error;console.warn(error)}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?esm_browser_v4():Date.now().toString(36)+Math.random().toString(36).substring(2),serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id:id,count:0,data:{name:name,args:normalizedArgs},options:{...actionOptions,maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit("storybook/actions/action-event",actionDisplayToEmit)};return handler.isAction=!0,handler.implicit=options.implicit,handler}var isInInitialArgs=(name,initialArgs)=>typeof initialArgs[name]>"u"&&!(name in initialArgs),argsEnhancers=[context=>{let{initialArgs:initialArgs,argTypes:argTypes,parameters:{actions:actions}}=context;return actions?.disable||!argTypes?{}:Object.entries(argTypes).filter((([name,argType])=>!!argType.action)).reduce(((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action("string"==typeof argType.action?argType.action:name)),acc)),{})},context=>{let{initialArgs:initialArgs,argTypes:argTypes,id:id,parameters:{actions:actions}}=context;if(!actions||actions.disable||!actions.argTypesRegex||!argTypes)return{};let argTypesRegex=new RegExp(actions.argTypesRegex);return Object.entries(argTypes).filter((([name])=>!!argTypesRegex.test(name))).reduce(((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action(name,{implicit:!0,id:id})),acc)),{})}],subscribed=!1,loaders=[context=>{let{parameters:{actions:actions}}=context;if(!actions?.disable&&!subscribed&&"__STORYBOOK_TEST_ON_MOCK_CALL__"in external_STORYBOOK_MODULE_GLOBAL_.global&&"function"==typeof external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_TEST_ON_MOCK_CALL__){(0,external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_TEST_ON_MOCK_CALL__)(((mock,args)=>{let name=mock.getMockName();"spy"!==name&&(!/^next\/.*::/.test(name)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some((prefix=>name.startsWith(prefix))))&&action(name)(args)})),subscribed=!0}}]},"./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:function(){return decorators},initialGlobals:function(){return initialGlobals},parameters:function(){return parameters}});var external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("storybook/internal/client-logger"),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),PARAM_KEY="backgrounds",DEFAULT_BACKGROUNDS={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:preview_document,window:preview_window}=external_STORYBOOK_MODULE_GLOBAL_.global,isReduceMotionEnabled=()=>!!preview_window?.matchMedia("(prefers-reduced-motion: reduce)")?.matches,clearStyles=selector=>{(Array.isArray(selector)?selector:[selector]).forEach(clearStyle)},clearStyle=selector=>{let element=preview_document.getElementById(selector);element&&element.parentElement?.removeChild(element)},addGridStyle=(selector,css)=>{let existingStyle=preview_document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{let style=preview_document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css,preview_document.head.appendChild(style)}},addBackgroundStyle=(selector,css,storyId)=>{let existingStyle=preview_document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{let style=preview_document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css;let gridStyleSelector="addon-backgrounds-grid"+(storyId?`-docs-${storyId}`:""),existingGridStyle=preview_document.getElementById(gridStyleSelector);existingGridStyle?existingGridStyle.parentElement?.insertBefore(style,existingGridStyle):preview_document.head.appendChild(style)}},defaultGrid={cellSize:100,cellAmount:10,opacity:.8},transitionStyle=isReduceMotionEnabled()?"":"transition: background-color 0.3s;",decorators=FEATURES?.backgroundsStoryGlobals?[(StoryFn,context)=>{let{globals:globals,parameters:parameters2,viewMode:viewMode,id:id}=context,{options:options=DEFAULT_BACKGROUNDS,disable:disable,grid:grid=defaultGrid}=parameters2[PARAM_KEY]||{},data=globals[PARAM_KEY]||{},backgroundName=data.value,item=backgroundName?options[backgroundName]:void 0,value=item?.value||"transparent",showGrid=data.grid||!1,shownBackground=!!item&&!disable,backgroundSelector="docs"===viewMode?`#anchor--${id} .docs-story`:".sb-show-main",gridSelector="docs"===viewMode?`#anchor--${id} .docs-story`:".sb-show-main",isLayoutPadded=void 0===parameters2.layout||"padded"===parameters2.layout,defaultOffset="docs"===viewMode?20:isLayoutPadded?16:0,{cellAmount:cellAmount,cellSize:cellSize,opacity:opacity,offsetX:offsetX=defaultOffset,offsetY:offsetY=defaultOffset}=grid,backgroundSelectorId="docs"===viewMode?`addon-backgrounds-docs-${id}`:"addon-backgrounds-color",backgroundTarget="docs"===viewMode?id:null;(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{shownBackground?addBackgroundStyle(backgroundSelectorId,`\n ${backgroundSelector} {\n background: ${value} !important;\n ${transitionStyle}\n }`,backgroundTarget):clearStyles(backgroundSelectorId)}),[backgroundSelector,backgroundSelectorId,backgroundTarget,shownBackground,value]);let gridSelectorId="docs"===viewMode?`addon-backgrounds-grid-docs-${id}`:"addon-backgrounds-grid";return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{if(!showGrid)return void clearStyles(gridSelectorId);let gridSize=[`${cellSize*cellAmount}px ${cellSize*cellAmount}px`,`${cellSize*cellAmount}px ${cellSize*cellAmount}px`,`${cellSize}px ${cellSize}px`,`${cellSize}px ${cellSize}px`].join(", ");addGridStyle(gridSelectorId,`\n ${gridSelector} {\n background-size: ${gridSize} !important;\n background-position: ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px !important;\n background-blend-mode: difference !important;\n background-image: linear-gradient(rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),\n linear-gradient(rgba(130, 130, 130, ${opacity/2}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${opacity/2}) 1px, transparent 1px) !important;\n }\n `)}),[cellAmount,cellSize,gridSelector,gridSelectorId,showGrid,offsetX,offsetY,opacity]),StoryFn()}]:[(StoryFn,context)=>{let{globals:globals,parameters:parameters2}=context,gridParameters=parameters2[PARAM_KEY].grid,isActive=!0===globals[PARAM_KEY]?.grid&&!0!==gridParameters.disable,{cellAmount:cellAmount,cellSize:cellSize,opacity:opacity}=gridParameters,isInDocs="docs"===context.viewMode,defaultOffset=void 0===parameters2.layout||"padded"===parameters2.layout?16:0,offsetX=gridParameters.offsetX??(isInDocs?20:defaultOffset),offsetY=gridParameters.offsetY??(isInDocs?20:defaultOffset),gridStyles=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useMemo)((()=>`\n ${"docs"===context.viewMode?`#anchor--${context.id} .docs-story`:".sb-show-main"} {\n background-size: ${[`${cellSize*cellAmount}px ${cellSize*cellAmount}px`,`${cellSize*cellAmount}px ${cellSize*cellAmount}px`,`${cellSize}px ${cellSize}px`,`${cellSize}px ${cellSize}px`].join(", ")} !important;\n background-position: ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px !important;\n background-blend-mode: difference !important;\n background-image: linear-gradient(rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),\n linear-gradient(rgba(130, 130, 130, ${opacity/2}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${opacity/2}) 1px, transparent 1px) !important;\n }\n `),[cellSize]);return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{let selectorId="docs"===context.viewMode?`addon-backgrounds-grid-docs-${context.id}`:"addon-backgrounds-grid";isActive?addGridStyle(selectorId,gridStyles):clearStyles(selectorId)}),[isActive,gridStyles,context]),StoryFn()},(StoryFn,context)=>{let{globals:globals,parameters:parameters2}=context,globalsBackgroundColor=globals[PARAM_KEY]?.value,backgroundsConfig=parameters2[PARAM_KEY],selectedBackgroundColor=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useMemo)((()=>backgroundsConfig.disable?"transparent":((currentSelectedValue,backgrounds=[],defaultName)=>{if("transparent"===currentSelectedValue)return"transparent";if(backgrounds.find((background=>background.value===currentSelectedValue))||currentSelectedValue)return currentSelectedValue;let defaultBackground=backgrounds.find((background=>background.name===defaultName));if(defaultBackground)return defaultBackground.value;if(defaultName){let availableColors=backgrounds.map((background=>background.name)).join(", ");external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(esm.T` + Backgrounds Addon: could not find the default color "${defaultName}". + These are the available colors for your story based on your configuration: + ${availableColors}. + `)}return"transparent"})(globalsBackgroundColor,backgroundsConfig.values,backgroundsConfig.default)),[backgroundsConfig,globalsBackgroundColor]),isActive=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useMemo)((()=>selectedBackgroundColor&&"transparent"!==selectedBackgroundColor),[selectedBackgroundColor]),selector="docs"===context.viewMode?`#anchor--${context.id} .docs-story`:".sb-show-main",backgroundStyles=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useMemo)((()=>`\n ${selector} {\n background: ${selectedBackgroundColor} !important;\n ${isReduceMotionEnabled()?"":"transition: background-color 0.3s;"}\n }\n `),[selectedBackgroundColor,selector]);return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{let selectorId="docs"===context.viewMode?`addon-backgrounds-docs-${context.id}`:"addon-backgrounds-color";isActive?addBackgroundStyle(selectorId,backgroundStyles,"docs"===context.viewMode?context.id:null):clearStyles(selectorId)}),[isActive,backgroundStyles,context]),StoryFn()}],parameters={[PARAM_KEY]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1,...!FEATURES?.backgroundsStoryGlobals&&{values:Object.values(DEFAULT_BACKGROUNDS)}}},modern={[PARAM_KEY]:{value:void 0,grid:!1}},initialGlobals=FEATURES?.backgroundsStoryGlobals?modern:{[PARAM_KEY]:null}},"./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{parameters:function(){return parameters}});__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs");var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),excludeTags=Object.entries(external_STORYBOOK_MODULE_GLOBAL_.global.TAGS_OPTIONS??{}).reduce(((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc}),{}),parameters={docs:{renderer:async()=>{let{DocsRenderer:DocsRenderer}=await Promise.all([__webpack_require__.e(4915),__webpack_require__.e(7227)]).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/addon-docs/dist/DocsRenderer-CFRXHY34.mjs"));return new DocsRenderer},stories:{filter:story=>0===(story.tags||[]).filter((tag=>excludeTags[tag])).length&&!story.parameters.docs?.disable}}}},"./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var external_STORYBOOK_MODULE_CORE_EVENTS_=__webpack_require__("storybook/internal/core-events"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),{document:preview_document}=external_STORYBOOK_MODULE_GLOBAL_.global,channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),resetHighlight=()=>{let sheetToBeRemoved=preview_document.getElementById("storybookHighlight");sheetToBeRemoved&&sheetToBeRemoved.parentNode?.removeChild(sheetToBeRemoved)};channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_CHANGED,resetHighlight),channel.on("storybook/highlight/reset",resetHighlight),channel.on("storybook/highlight/add",(infos=>{resetHighlight();let elements=Array.from(new Set(infos.elements)),sheet=preview_document.createElement("style");sheet.setAttribute("id","storybookHighlight"),sheet.innerHTML=elements.map((target=>`${target}{\n ${((color="#FF4785",style="dashed")=>`\n outline: 2px ${style} ${color};\n outline-offset: 2px;\n box-shadow: 0 0 0 6px rgba(255,255,255,0.6);\n`)(infos.color,infos.style)}\n }`)).join(" "),preview_document.head.appendChild(sheet)}))},"./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:function(){return decorators},initialGlobals:function(){return initialGlobals}});var external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),isProduction=!0,prefix="Invariant failed";function invariant(condition,message){if(!condition){if(isProduction)throw new Error(prefix);var provided="function"==typeof message?message():message,value=provided?"".concat(prefix,": ").concat(provided):prefix;throw new Error(value)}}var PARAM_KEY="measureEnabled";function getDocumentWidthAndHeight(){let container=external_STORYBOOK_MODULE_GLOBAL_.global.document.documentElement,height=Math.max(container.scrollHeight,container.offsetHeight);return{width:Math.max(container.scrollWidth,container.offsetWidth),height:height}}function setCanvasWidthAndHeight(canvas,context,{width:width,height:height}){canvas.style.width=`${width}px`,canvas.style.height=`${height}px`;let scale=external_STORYBOOK_MODULE_GLOBAL_.global.window.devicePixelRatio;canvas.width=Math.floor(width*scale),canvas.height=Math.floor(height*scale),context.scale(scale,scale)}var state={};function init(){state.canvas||(state=function createCanvas(){let canvas=external_STORYBOOK_MODULE_GLOBAL_.global.document.createElement("canvas");canvas.id="storybook-addon-measure";let context=canvas.getContext("2d");invariant(null!=context);let{width:width,height:height}=getDocumentWidthAndHeight();return setCanvasWidthAndHeight(canvas,context,{width:width,height:height}),canvas.style.position="absolute",canvas.style.left="0",canvas.style.top="0",canvas.style.zIndex="2147483647",canvas.style.pointerEvents="none",external_STORYBOOK_MODULE_GLOBAL_.global.document.body.appendChild(canvas),{canvas:canvas,context:context,width:width,height:height}}())}function clear(){state.context&&state.context.clearRect(0,0,state.width??0,state.height??0)}var colors={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},labelPadding=6;function roundedRect(context,{x:x,y:y,w:w,h:h,r:r}){x-=w/2,y-=h/2,w<2*r&&(r=w/2),h<2*r&&(r=h/2),context.beginPath(),context.moveTo(x+r,y),context.arcTo(x+w,y,x+w,y+h,r),context.arcTo(x+w,y+h,x,y+h,r),context.arcTo(x,y+h,x,y,r),context.arcTo(x,y,x+w,y,r),context.closePath()}function textWithRect(context,type,{x:x,y:y,w:w,h:h},text){return roundedRect(context,{x:x,y:y,w:w,h:h,r:3}),context.fillStyle=`${colors[type]}dd`,context.fill(),context.strokeStyle=colors[type],context.stroke(),context.fillStyle=colors.text,context.fillText(text,x,y),roundedRect(context,{x:x,y:y,w:w,h:h,r:3}),context.fillStyle=`${colors[type]}dd`,context.fill(),context.strokeStyle=colors[type],context.stroke(),context.fillStyle=colors.text,context.fillText(text,x,y),{x:x,y:y,w:w,h:h}}function configureText(context,text){context.font="600 12px monospace",context.textBaseline="middle",context.textAlign="center";let metrics=context.measureText(text),actualHeight=metrics.actualBoundingBoxAscent+metrics.actualBoundingBoxDescent;return{w:metrics.width+2*labelPadding,h:actualHeight+2*labelPadding}}function drawLabel(context,measurements,{type:type,position:position="center",text:text},prevRect,external=!1){let{x:x,y:y}=function positionCoordinate(position,{padding:padding,border:border,width:width,height:height,top:top,left:left}){let contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom,x=left+border.left+padding.left,y=top+border.top+padding.top;return"top"===position?x+=contentWidth/2:"right"===position?(x+=contentWidth,y+=contentHeight/2):"bottom"===position?(x+=contentWidth/2,y+=contentHeight):"left"===position?y+=contentHeight/2:"center"===position&&(x+=contentWidth/2,y+=contentHeight/2),{x:x,y:y}}(position,measurements),{offsetX:offsetX,offsetY:offsetY}=function offset(type,position,{margin:margin,border:border,padding:padding},labelPaddingSize,external){let shift=dir=>0,offsetX=0,offsetY=0,locationMultiplier=external?1:.5,labelPaddingShift=external?2*labelPaddingSize:0;return"padding"===type?shift=dir=>padding[dir]*locationMultiplier+labelPaddingShift:"border"===type?shift=dir=>padding[dir]+border[dir]*locationMultiplier+labelPaddingShift:"margin"===type&&(shift=dir=>padding[dir]+border[dir]+margin[dir]*locationMultiplier+labelPaddingShift),"top"===position?offsetY=-shift("top"):"right"===position?offsetX=shift("right"):"bottom"===position?offsetY=shift("bottom"):"left"===position&&(offsetX=-shift("left")),{offsetX:offsetX,offsetY:offsetY}}(type,position,measurements,labelPadding+1,external);x+=offsetX,y+=offsetY;let{w:w,h:h}=configureText(context,text);if(prevRect&&function collide(a,b){return Math.abs(a.x-b.x){let rect=external&&"center"===l.position?drawFloatingLabel(context,measurements,l):drawLabel(context,measurements,l,rects[idx-1],external);rects[idx]=rect}))}var colors2={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},SMALL_NODE_SIZE=30;function pxToNumber(px){return parseInt(px.replace("px",""),10)}function round(value){return Number.isInteger(value)?value:value.toFixed(2)}function filterZeroValues(labels){return labels.filter((l=>0!==l.text&&"0"!==l.text))}function floatingAlignment(extremities){let windowExtremities_top=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,windowExtremities_bottom=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY+external_STORYBOOK_MODULE_GLOBAL_.global.window.innerHeight,windowExtremities_left=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX,windowExtremities_right=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX+external_STORYBOOK_MODULE_GLOBAL_.global.window.innerWidth,distances_top=Math.abs(windowExtremities_top-extremities.top),distances_bottom=Math.abs(windowExtremities_bottom-extremities.bottom);return{x:Math.abs(windowExtremities_left-extremities.left)>Math.abs(windowExtremities_right-extremities.right)?"left":"right",y:distances_top>distances_bottom?"top":"bottom"}}function drawBoxModel(element){return context=>{if(element&&context){let measurements=function measureElement(element){let style=external_STORYBOOK_MODULE_GLOBAL_.global.getComputedStyle(element),{top:top,left:left,right:right,bottom:bottom,width:width,height:height}=element.getBoundingClientRect(),{marginTop:marginTop,marginBottom:marginBottom,marginLeft:marginLeft,marginRight:marginRight,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingLeft:paddingLeft,paddingRight:paddingRight,borderBottomWidth:borderBottomWidth,borderTopWidth:borderTopWidth,borderLeftWidth:borderLeftWidth,borderRightWidth:borderRightWidth}=style;top+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,left+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX,bottom+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,right+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX;let margin={top:pxToNumber(marginTop),bottom:pxToNumber(marginBottom),left:pxToNumber(marginLeft),right:pxToNumber(marginRight)},padding={top:pxToNumber(paddingTop),bottom:pxToNumber(paddingBottom),left:pxToNumber(paddingLeft),right:pxToNumber(paddingRight)},border={top:pxToNumber(borderTopWidth),bottom:pxToNumber(borderBottomWidth),left:pxToNumber(borderLeftWidth),right:pxToNumber(borderRightWidth)},extremities={top:top-margin.top,bottom:bottom+margin.bottom,left:left-margin.left,right:right+margin.right};return{margin:margin,padding:padding,border:border,top:top,left:left,bottom:bottom,right:right,width:width,height:height,extremities:extremities,floatingAlignment:floatingAlignment(extremities)}}(element),marginLabels=function drawMargin(context,{margin:margin,width:width,height:height,top:top,left:left,bottom:bottom,right:right}){let marginHeight=height+margin.bottom+margin.top;return context.fillStyle=colors2.margin,context.fillRect(left,top-margin.top,width,margin.top),context.fillRect(right,top-margin.top,margin.right,marginHeight),context.fillRect(left,bottom,width,margin.bottom),context.fillRect(left-margin.left,top-margin.top,margin.left,marginHeight),filterZeroValues([{type:"margin",text:round(margin.top),position:"top"},{type:"margin",text:round(margin.right),position:"right"},{type:"margin",text:round(margin.bottom),position:"bottom"},{type:"margin",text:round(margin.left),position:"left"}])}(context,measurements),paddingLabels=function drawPadding(context,{padding:padding,border:border,width:width,height:height,top:top,left:left,bottom:bottom,right:right}){let paddingWidth=width-border.left-border.right,paddingHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=colors2.padding,context.fillRect(left+border.left,top+border.top,paddingWidth,padding.top),context.fillRect(right-padding.right-border.right,top+padding.top+border.top,padding.right,paddingHeight),context.fillRect(left+border.left,bottom-padding.bottom-border.bottom,paddingWidth,padding.bottom),context.fillRect(left+border.left,top+padding.top+border.top,padding.left,paddingHeight),filterZeroValues([{type:"padding",text:padding.top,position:"top"},{type:"padding",text:padding.right,position:"right"},{type:"padding",text:padding.bottom,position:"bottom"},{type:"padding",text:padding.left,position:"left"}])}(context,measurements),borderLabels=function drawBorder(context,{border:border,width:width,height:height,top:top,left:left,bottom:bottom,right:right}){let borderHeight=height-border.top-border.bottom;return context.fillStyle=colors2.border,context.fillRect(left,top,width,border.top),context.fillRect(left,bottom-border.bottom,width,border.bottom),context.fillRect(left,top+border.top,border.left,borderHeight),context.fillRect(right-border.right,top+border.top,border.right,borderHeight),filterZeroValues([{type:"border",text:border.top,position:"top"},{type:"border",text:border.right,position:"right"},{type:"border",text:border.bottom,position:"bottom"},{type:"border",text:border.left,position:"left"}])}(context,measurements),contentLabels=function drawContent(context,{padding:padding,border:border,width:width,height:height,top:top,left:left}){let contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=colors2.content,context.fillRect(left+border.left+padding.left,top+border.top+padding.top,contentWidth,contentHeight),[{type:"content",position:"center",text:`${round(contentWidth)} x ${round(contentHeight)}`}]}(context,measurements);!function labelStacks(context,measurements,labels,externalLabels){let stacks=labels.reduce(((acc,l)=>(Object.prototype.hasOwnProperty.call(acc,l.position)||(acc[l.position]=[]),acc[l.position]?.push(l),acc)),{});stacks.top&&drawStack(context,measurements,stacks.top,externalLabels),stacks.right&&drawStack(context,measurements,stacks.right,externalLabels),stacks.bottom&&drawStack(context,measurements,stacks.bottom,externalLabels),stacks.left&&drawStack(context,measurements,stacks.left,externalLabels),stacks.center&&drawStack(context,measurements,stacks.center,externalLabels)}(context,measurements,[...contentLabels,...paddingLabels,...borderLabels,...marginLabels],measurements.width<=3*SMALL_NODE_SIZE||measurements.height<=SMALL_NODE_SIZE)}}}function drawSelectedElement(element){!function draw(callback){clear(),callback(state.context)}(drawBoxModel(element))}var nodeAtPointerRef,pointer={x:0,y:0};function findAndDrawElement(x,y){nodeAtPointerRef=((x,y)=>{let element=external_STORYBOOK_MODULE_GLOBAL_.global.document.elementFromPoint(x,y),crawlShadows=node=>{if(node&&node.shadowRoot){let nestedElement=node.shadowRoot.elementFromPoint(x,y);return node.isEqualNode(nestedElement)?node:nestedElement.shadowRoot?crawlShadows(nestedElement):nestedElement}return node};return crawlShadows(element)||element})(x,y),drawSelectedElement(nodeAtPointerRef)}var decorators=[(StoryFn,context)=>{let{measureEnabled:measureEnabled}=context.globals;return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{let onPointerMove=event=>{window.requestAnimationFrame((()=>{event.stopPropagation(),pointer.x=event.clientX,pointer.y=event.clientY}))};return document.addEventListener("pointermove",onPointerMove),()=>{document.removeEventListener("pointermove",onPointerMove)}}),[]),(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{let onResize=()=>{window.requestAnimationFrame((()=>{!function rescale(){invariant(state.canvas,"Canvas should exist in the state."),invariant(state.context,"Context should exist in the state."),setCanvasWidthAndHeight(state.canvas,state.context,{width:0,height:0});let{width:width,height:height}=getDocumentWidthAndHeight();setCanvasWidthAndHeight(state.canvas,state.context,{width:width,height:height}),state.width=width,state.height=height}()}))};return"story"===context.viewMode&&measureEnabled&&(document.addEventListener("pointerover",(event=>{window.requestAnimationFrame((()=>{event.stopPropagation(),findAndDrawElement(event.clientX,event.clientY)}))})),init(),window.addEventListener("resize",onResize),findAndDrawElement(pointer.x,pointer.y)),()=>{window.removeEventListener("resize",onResize),function destroy(){state.canvas&&(clear(),state.canvas.parentNode?.removeChild(state.canvas),state={})}()}}),[measureEnabled,context.viewMode]),StoryFn()}],initialGlobals={[PARAM_KEY]:!1}},"./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:function(){return decorators},initialGlobals:function(){return initialGlobals}});var external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),PARAM_KEY="outline",clearStyles=selector=>{(Array.isArray(selector)?selector:[selector]).forEach(clearStyle)},clearStyle=input=>{let selector="string"==typeof input?input:input.join(""),element=external_STORYBOOK_MODULE_GLOBAL_.global.document.getElementById(selector);element&&element.parentElement&&element.parentElement.removeChild(element)};var decorators=[(StoryFn,context)=>{let{globals:globals}=context,isActive=[!0,"true"].includes(globals.outline),isInDocs="docs"===context.viewMode,outlineStyles=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useMemo)((()=>function outlineCSS(selector){return esm.T` + ${selector} body { + outline: 1px solid #2980b9 !important; + } + + ${selector} article { + outline: 1px solid #3498db !important; + } + + ${selector} nav { + outline: 1px solid #0088c3 !important; + } + + ${selector} aside { + outline: 1px solid #33a0ce !important; + } + + ${selector} section { + outline: 1px solid #66b8da !important; + } + + ${selector} header { + outline: 1px solid #99cfe7 !important; + } + + ${selector} footer { + outline: 1px solid #cce7f3 !important; + } + + ${selector} h1 { + outline: 1px solid #162544 !important; + } + + ${selector} h2 { + outline: 1px solid #314e6e !important; + } + + ${selector} h3 { + outline: 1px solid #3e5e85 !important; + } + + ${selector} h4 { + outline: 1px solid #449baf !important; + } + + ${selector} h5 { + outline: 1px solid #c7d1cb !important; + } + + ${selector} h6 { + outline: 1px solid #4371d0 !important; + } + + ${selector} main { + outline: 1px solid #2f4f90 !important; + } + + ${selector} address { + outline: 1px solid #1a2c51 !important; + } + + ${selector} div { + outline: 1px solid #036cdb !important; + } + + ${selector} p { + outline: 1px solid #ac050b !important; + } + + ${selector} hr { + outline: 1px solid #ff063f !important; + } + + ${selector} pre { + outline: 1px solid #850440 !important; + } + + ${selector} blockquote { + outline: 1px solid #f1b8e7 !important; + } + + ${selector} ol { + outline: 1px solid #ff050c !important; + } + + ${selector} ul { + outline: 1px solid #d90416 !important; + } + + ${selector} li { + outline: 1px solid #d90416 !important; + } + + ${selector} dl { + outline: 1px solid #fd3427 !important; + } + + ${selector} dt { + outline: 1px solid #ff0043 !important; + } + + ${selector} dd { + outline: 1px solid #e80174 !important; + } + + ${selector} figure { + outline: 1px solid #ff00bb !important; + } + + ${selector} figcaption { + outline: 1px solid #bf0032 !important; + } + + ${selector} table { + outline: 1px solid #00cc99 !important; + } + + ${selector} caption { + outline: 1px solid #37ffc4 !important; + } + + ${selector} thead { + outline: 1px solid #98daca !important; + } + + ${selector} tbody { + outline: 1px solid #64a7a0 !important; + } + + ${selector} tfoot { + outline: 1px solid #22746b !important; + } + + ${selector} tr { + outline: 1px solid #86c0b2 !important; + } + + ${selector} th { + outline: 1px solid #a1e7d6 !important; + } + + ${selector} td { + outline: 1px solid #3f5a54 !important; + } + + ${selector} col { + outline: 1px solid #6c9a8f !important; + } + + ${selector} colgroup { + outline: 1px solid #6c9a9d !important; + } + + ${selector} button { + outline: 1px solid #da8301 !important; + } + + ${selector} datalist { + outline: 1px solid #c06000 !important; + } + + ${selector} fieldset { + outline: 1px solid #d95100 !important; + } + + ${selector} form { + outline: 1px solid #d23600 !important; + } + + ${selector} input { + outline: 1px solid #fca600 !important; + } + + ${selector} keygen { + outline: 1px solid #b31e00 !important; + } + + ${selector} label { + outline: 1px solid #ee8900 !important; + } + + ${selector} legend { + outline: 1px solid #de6d00 !important; + } + + ${selector} meter { + outline: 1px solid #e8630c !important; + } + + ${selector} optgroup { + outline: 1px solid #b33600 !important; + } + + ${selector} option { + outline: 1px solid #ff8a00 !important; + } + + ${selector} output { + outline: 1px solid #ff9619 !important; + } + + ${selector} progress { + outline: 1px solid #e57c00 !important; + } + + ${selector} select { + outline: 1px solid #e26e0f !important; + } + + ${selector} textarea { + outline: 1px solid #cc5400 !important; + } + + ${selector} details { + outline: 1px solid #33848f !important; + } + + ${selector} summary { + outline: 1px solid #60a1a6 !important; + } + + ${selector} command { + outline: 1px solid #438da1 !important; + } + + ${selector} menu { + outline: 1px solid #449da6 !important; + } + + ${selector} del { + outline: 1px solid #bf0000 !important; + } + + ${selector} ins { + outline: 1px solid #400000 !important; + } + + ${selector} img { + outline: 1px solid #22746b !important; + } + + ${selector} iframe { + outline: 1px solid #64a7a0 !important; + } + + ${selector} embed { + outline: 1px solid #98daca !important; + } + + ${selector} object { + outline: 1px solid #00cc99 !important; + } + + ${selector} param { + outline: 1px solid #37ffc4 !important; + } + + ${selector} video { + outline: 1px solid #6ee866 !important; + } + + ${selector} audio { + outline: 1px solid #027353 !important; + } + + ${selector} source { + outline: 1px solid #012426 !important; + } + + ${selector} canvas { + outline: 1px solid #a2f570 !important; + } + + ${selector} track { + outline: 1px solid #59a600 !important; + } + + ${selector} map { + outline: 1px solid #7be500 !important; + } + + ${selector} area { + outline: 1px solid #305900 !important; + } + + ${selector} a { + outline: 1px solid #ff62ab !important; + } + + ${selector} em { + outline: 1px solid #800b41 !important; + } + + ${selector} strong { + outline: 1px solid #ff1583 !important; + } + + ${selector} i { + outline: 1px solid #803156 !important; + } + + ${selector} b { + outline: 1px solid #cc1169 !important; + } + + ${selector} u { + outline: 1px solid #ff0430 !important; + } + + ${selector} s { + outline: 1px solid #f805e3 !important; + } + + ${selector} small { + outline: 1px solid #d107b2 !important; + } + + ${selector} abbr { + outline: 1px solid #4a0263 !important; + } + + ${selector} q { + outline: 1px solid #240018 !important; + } + + ${selector} cite { + outline: 1px solid #64003c !important; + } + + ${selector} dfn { + outline: 1px solid #b4005a !important; + } + + ${selector} sub { + outline: 1px solid #dba0c8 !important; + } + + ${selector} sup { + outline: 1px solid #cc0256 !important; + } + + ${selector} time { + outline: 1px solid #d6606d !important; + } + + ${selector} code { + outline: 1px solid #e04251 !important; + } + + ${selector} kbd { + outline: 1px solid #5e001f !important; + } + + ${selector} samp { + outline: 1px solid #9c0033 !important; + } + + ${selector} var { + outline: 1px solid #d90047 !important; + } + + ${selector} mark { + outline: 1px solid #ff0053 !important; + } + + ${selector} bdi { + outline: 1px solid #bf3668 !important; + } + + ${selector} bdo { + outline: 1px solid #6f1400 !important; + } + + ${selector} ruby { + outline: 1px solid #ff7b93 !important; + } + + ${selector} rt { + outline: 1px solid #ff2f54 !important; + } + + ${selector} rp { + outline: 1px solid #803e49 !important; + } + + ${selector} span { + outline: 1px solid #cc2643 !important; + } + + ${selector} br { + outline: 1px solid #db687d !important; + } + + ${selector} wbr { + outline: 1px solid #db175b !important; + }`}(isInDocs?'[data-story-block="true"]':".sb-show-main")),[context]);return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{let selectorId=isInDocs?`addon-outline-docs-${context.id}`:"addon-outline";return isActive?((selector,css)=>{let existingStyle=external_STORYBOOK_MODULE_GLOBAL_.global.document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{let style=external_STORYBOOK_MODULE_GLOBAL_.global.document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css,external_STORYBOOK_MODULE_GLOBAL_.global.document.head.appendChild(style)}})(selectorId,outlineStyles):clearStyles(selectorId),()=>{clearStyles(selectorId)}}),[isActive,outlineStyles,context]),StoryFn()}],initialGlobals={[PARAM_KEY]:!1}},"./node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{initialGlobals:function(){return initialGlobals}});var PARAM_KEY="viewport",modern={[PARAM_KEY]:{value:void 0,isRotated:!1}},initialGlobals=FEATURES?.viewportStoryGlobals?modern:{viewport:"reset",viewportRotated:!1}},"./node_modules/@storybook/addon-interactions/dist/preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{parameters:function(){return parameters},runStep:function(){return runStep}});var _storybook_instrumenter__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/instrumenter/dist/index.mjs"),{step:runStep}=(__webpack_require__("./node_modules/@storybook/test/dist/index.mjs"),(0,_storybook_instrumenter__WEBPACK_IMPORTED_MODULE_1__.wV)({step:(label,play,context)=>play(context)},{intercept:!0})),parameters={throwPlayFunctionExceptions:!1}},"./node_modules/@storybook/addon-links/dist/preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:function(){return decorators}});var storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("storybook/internal/core-events"),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/preview-api"),_storybook_global__WEBPACK_IMPORTED_MODULE_3__=(__webpack_require__("./node_modules/@storybook/csf/dist/index.mjs"),__webpack_require__("@storybook/global")),{document:document,HTMLElement:HTMLElement}=_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global,linksListener=e=>{let{target:target}=e;if(!(target instanceof HTMLElement))return;let element=target,{sbKind:kind,sbStory:story}=element.dataset;var params;(kind||story)&&(e.preventDefault(),params={kind:kind,story:story},storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__.addons.getChannel().emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_0__.SELECT_STORY,params))},hasListener=!1,off=()=>{hasListener&&(hasListener=!1,document.removeEventListener("click",linksListener))},decorators=[(0,storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__.makeDecorator)({name:"withLinks",parameterName:"links",wrapper:(getStory,context)=>(hasListener||(hasListener=!0,document.addEventListener("click",linksListener)),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__.addons.getChannel().once(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_0__.STORY_CHANGED,off),getStory(context))})]},"./node_modules/@storybook/core/dist/docs-tools/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C2:function(){return cv},Op:function(){return yv},Sy:function(){return $a},TQ:function(){return Na},UO:function(){return La},Ux:function(){return y},Y1:function(){return Dg},YF:function(){return Nm},i3:function(){return Qe},p6:function(){return av},rl:function(){return iv}});var e,r,n,_storybook_core_preview_errors__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("storybook/internal/preview-errors"),jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/jsdoc-type-pratt-parser/dist/index.js"),_storybook_core_preview_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/internal/preview-api"),ii=Object.create,he=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyNames,pi=Object.getPrototypeOf,ci=Object.prototype.hasOwnProperty,t=(e,r)=>he(e,"name",{value:r,configurable:!0}),i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Te=i(((wg,rr)=>{var hi="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g;rr.exports=hi})),D=i(((Ag,tr)=>{var Ti=Te(),xi="object"==typeof self&&self&&self.Object===Object&&self,bi=Ti||xi||Function("return this")();tr.exports=bi})),B=i(((Eg,nr)=>{var Di=D().Symbol;nr.exports=Di})),sr=i(((jg,ir)=>{var or=B(),ar=Object.prototype,Pi=ar.hasOwnProperty,qi=ar.toString,z=or?or.toStringTag:void 0;function Si(e){var r=Pi.call(e,z),n=e[z];try{e[z]=void 0;var o=!0}catch{}var a=qi.call(e);return o&&(r?e[z]=n:delete e[z]),a}t(Si,"getRawTag"),ir.exports=Si})),pr=i(((Ig,ur)=>{var Oi=Object.prototype.toString;function wi(e){return Oi.call(e)}t(wi,"objectToString"),ur.exports=wi})),j=i(((Ng,fr)=>{var cr=B(),Ai=sr(),Ei=pr(),lr=cr?cr.toStringTag:void 0;function Ii(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":lr&&lr in Object(e)?Ai(e):Ei(e)}t(Ii,"baseGetTag"),fr.exports=Ii})),re=i(((Lg,mr)=>{function Fi(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}t(Fi,"isObject"),mr.exports=Fi})),xe=i(((Jg,gr)=>{var Ni=j(),Ri=re();function Gi(e){if(!Ri(e))return!1;var r=Ni(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}t(Gi,"isFunction"),gr.exports=Gi})),dr=i(((Gg,yr)=>{var Bi=D()["__core-js_shared__"];yr.exports=Bi})),xr=i(((Vg,Tr)=>{var e,be=dr(),hr=(e=/[^.]+$/.exec(be&&be.keys&&be.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";function zi(e){return!!hr&&hr in e}t(zi,"isMasked"),Tr.exports=zi})),ve=i(((zg,br)=>{var Hi=Function.prototype.toString;function Ki(e){if(null!=e){try{return Hi.call(e)}catch{}try{return e+""}catch{}}return""}t(Ki,"toSource"),br.exports=Ki})),Dr=i(((Hg,vr)=>{var $i=xe(),Wi=xr(),Yi=re(),Xi=ve(),Zi=/^\[object .+?Constructor\]$/,es=Function.prototype,rs=Object.prototype,ts=es.toString,ns=rs.hasOwnProperty,os=RegExp("^"+ts.call(ns).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function as(e){return!(!Yi(e)||Wi(e))&&($i(e)?os:Zi).test(Xi(e))}t(as,"baseIsNative"),vr.exports=as})),qr=i((($g,Pr)=>{function is(e,r){return e?.[r]}t(is,"getValue"),Pr.exports=is})),S=i(((Yg,Sr)=>{var ss=Dr(),us=qr();function ps(e,r){var n=us(e,r);return ss(n)?n:void 0}t(ps,"getNative"),Sr.exports=ps})),Or=i(((Qg,_r)=>{var cs=S(),ls=function(){try{var e=cs(Object,"defineProperty");return e({},"",{}),e}catch{}}();_r.exports=ls})),Er=i(((Zg,Ar)=>{var wr=Or();function fs(e,r,n){"__proto__"==r&&wr?wr(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}t(fs,"baseAssignValue"),Ar.exports=fs})),Cr=i(((ry,jr)=>{function ms(e){return function(r,n,o){for(var a=-1,s=Object(r),u=o(r),p=u.length;p--;){var c=u[e?p:++a];if(!1===n(s[c],c,s))break}return r}}t(ms,"createBaseFor"),jr.exports=ms})),Fr=i(((ny,Ir)=>{var ys=Cr()();Ir.exports=ys})),Rr=i(((oy,Nr)=>{function ds(e,r){for(var n=-1,o=Array(e);++n{function hs(e){return null!=e&&"object"==typeof e}t(hs,"isObjectLike"),Lr.exports=hs})),Jr=i(((uy,Mr)=>{var Ts=j(),xs=C();function vs(e){return xs(e)&&"[object Arguments]"==Ts(e)}t(vs,"baseIsArguments"),Mr.exports=vs})),De=i(((cy,Vr)=>{var Ur=Jr(),Ds=C(),Gr=Object.prototype,Ps=Gr.hasOwnProperty,qs=Gr.propertyIsEnumerable,Ss=Ur(function(){return arguments}())?Ur:function(e){return Ds(e)&&Ps.call(e,"callee")&&!qs.call(e,"callee")};Vr.exports=Ss})),P=i(((ly,Br)=>{var _s=Array.isArray;Br.exports=_s})),kr=i(((fy,zr)=>{function Os(){return!1}t(Os,"stubFalse"),zr.exports=Os})),Pe=i(((k,I)=>{var ws=D(),As=kr(),$r="object"==typeof k&&k&&!k.nodeType&&k,Hr=$r&&"object"==typeof I&&I&&!I.nodeType&&I,Kr=Hr&&Hr.exports===$r?ws.Buffer:void 0,Cs=(Kr?Kr.isBuffer:void 0)||As;I.exports=Cs})),qe=i(((gy,Wr)=>{var Fs=/^(?:0|[1-9]\d*)$/;function Ns(e,r){var n=typeof e;return!!(r=r??9007199254740991)&&("number"==n||"symbol"!=n&&Fs.test(e))&&e>-1&&e%1==0&&e{function Ls(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}t(Ls,"isLength"),Yr.exports=Ls})),Qr=i(((Ty,Xr)=>{var Ms=j(),Js=te(),Us=C(),m={};function lu(e){return Us(e)&&Js(e.length)&&!!m[Ms(e)]}m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1,t(lu,"baseIsTypedArray"),Xr.exports=lu})),et=i(((by,Zr)=>{function fu(e){return function(r){return e(r)}}t(fu,"baseUnary"),Zr.exports=fu})),tt=i(((H,F)=>{var mu=Te(),rt="object"==typeof H&&H&&!H.nodeType&&H,K=rt&&"object"==typeof F&&F&&!F.nodeType&&F,Se=K&&K.exports===rt&&mu.process,yu=function(){try{return K&&K.require&&K.require("util").types||Se&&Se.binding&&Se.binding("util")}catch{}}();F.exports=yu})),_e=i(((Dy,at)=>{var du=Qr(),hu=et(),nt=tt(),ot=nt&&nt.isTypedArray,Tu=ot?hu(ot):du;at.exports=Tu})),st=i(((Py,it)=>{var xu=Rr(),bu=De(),vu=P(),Du=Pe(),Pu=qe(),qu=_e(),_u=Object.prototype.hasOwnProperty;function Ou(e,r){var n=vu(e),o=!n&&bu(e),a=!n&&!o&&Du(e),s=!n&&!o&&!a&&qu(e),u=n||o||a||s,p=u?xu(e.length,String):[],c=p.length;for(var l in e)(r||_u.call(e,l))&&(!u||!("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Pu(l,c)))&&p.push(l);return p}t(Ou,"arrayLikeKeys"),it.exports=Ou})),pt=i(((Sy,ut)=>{var wu=Object.prototype;function Au(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||wu)}t(Au,"isPrototype"),ut.exports=Au})),lt=i(((Oy,ct)=>{function Eu(e,r){return function(n){return e(r(n))}}t(Eu,"overArg"),ct.exports=Eu})),mt=i(((Ay,ft)=>{var Cu=lt()(Object.keys,Object);ft.exports=Cu})),yt=i(((Ey,gt)=>{var Iu=pt(),Fu=mt(),Ru=Object.prototype.hasOwnProperty;function Lu(e){if(!Iu(e))return Fu(e);var r=[];for(var n in Object(e))Ru.call(e,n)&&"constructor"!=n&&r.push(n);return r}t(Lu,"baseKeys"),gt.exports=Lu})),ht=i(((Cy,dt)=>{var Mu=xe(),Ju=te();function Uu(e){return null!=e&&Ju(e.length)&&!Mu(e)}t(Uu,"isArrayLike"),dt.exports=Uu})),ne=i(((Fy,Tt)=>{var Gu=st(),Vu=yt(),Bu=ht();function zu(e){return Bu(e)?Gu(e):Vu(e)}t(zu,"keys"),Tt.exports=zu})),bt=i(((Ry,xt)=>{var ku=Fr(),Hu=ne();function Ku(e,r){return e&&ku(e,r,Hu)}t(Ku,"baseForOwn"),xt.exports=Ku})),Dt=i(((My,vt)=>{function $u(){this.__data__=[],this.size=0}t($u,"listCacheClear"),vt.exports=$u})),Oe=i(((Uy,Pt)=>{function Wu(e,r){return e===r||e!=e&&r!=r}t(Wu,"eq"),Pt.exports=Wu})),$=i(((Vy,qt)=>{var Yu=Oe();function Xu(e,r){for(var n=e.length;n--;)if(Yu(e[n][0],r))return n;return-1}t(Xu,"assocIndexOf"),qt.exports=Xu})),_t=i(((zy,St)=>{var Qu=$(),ep=Array.prototype.splice;function rp(e){var r=this.__data__,n=Qu(r,e);return!(n<0)&&(n==r.length-1?r.pop():ep.call(r,n,1),--this.size,!0)}t(rp,"listCacheDelete"),St.exports=rp})),wt=i(((Hy,Ot)=>{var tp=$();function np(e){var r=this.__data__,n=tp(r,e);return n<0?void 0:r[n][1]}t(np,"listCacheGet"),Ot.exports=np})),Et=i((($y,At)=>{var op=$();function ap(e){return op(this.__data__,e)>-1}t(ap,"listCacheHas"),At.exports=ap})),Ct=i(((Yy,jt)=>{var ip=$();function sp(e,r){var n=this.__data__,o=ip(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this}t(sp,"listCacheSet"),jt.exports=sp})),W=i(((Qy,It)=>{var up=Dt(),pp=_t(),cp=wt(),lp=Et(),fp=Ct();function N(e){var r=-1,n=null==e?0:e.length;for(this.clear();++r{var mp=W();function gp(){this.__data__=new mp,this.size=0}t(gp,"stackClear"),Ft.exports=gp})),Lt=i(((td,Rt)=>{function yp(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}t(yp,"stackDelete"),Rt.exports=yp})),Jt=i(((od,Mt)=>{function dp(e){return this.__data__.get(e)}t(dp,"stackGet"),Mt.exports=dp})),Gt=i(((id,Ut)=>{function hp(e){return this.__data__.has(e)}t(hp,"stackHas"),Ut.exports=hp})),oe=i(((ud,Vt)=>{var bp=S()(D(),"Map");Vt.exports=bp})),Y=i(((pd,Bt)=>{var Dp=S()(Object,"create");Bt.exports=Dp})),Ht=i(((cd,kt)=>{var zt=Y();function Pp(){this.__data__=zt?zt(null):{},this.size=0}t(Pp,"hashClear"),kt.exports=Pp})),$t=i(((fd,Kt)=>{function qp(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}t(qp,"hashDelete"),Kt.exports=qp})),Yt=i(((gd,Wt)=>{var Sp=Y(),wp=Object.prototype.hasOwnProperty;function Ap(e){var r=this.__data__;if(Sp){var n=r[e];return"__lodash_hash_undefined__"===n?void 0:n}return wp.call(r,e)?r[e]:void 0}t(Ap,"hashGet"),Wt.exports=Ap})),Qt=i(((dd,Xt)=>{var Ep=Y(),Cp=Object.prototype.hasOwnProperty;function Ip(e){var r=this.__data__;return Ep?void 0!==r[e]:Cp.call(r,e)}t(Ip,"hashHas"),Xt.exports=Ip})),en=i(((Td,Zt)=>{var Fp=Y();function Rp(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fp&&void 0===r?"__lodash_hash_undefined__":r,this}t(Rp,"hashSet"),Zt.exports=Rp})),tn=i(((bd,rn)=>{var Lp=Ht(),Mp=$t(),Jp=Yt(),Up=Qt(),Gp=en();function R(e){var r=-1,n=null==e?0:e.length;for(this.clear();++r{var nn=tn(),Vp=W(),Bp=oe();function zp(){this.size=0,this.__data__={hash:new nn,map:new(Bp||Vp),string:new nn}}t(zp,"mapCacheClear"),on.exports=zp})),un=i(((qd,sn)=>{function kp(e){var r=typeof e;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e}t(kp,"isKeyable"),sn.exports=kp})),X=i(((_d,pn)=>{var Hp=un();function Kp(e,r){var n=e.__data__;return Hp(r)?n["string"==typeof r?"string":"hash"]:n.map}t(Kp,"getMapData"),pn.exports=Kp})),ln=i(((wd,cn)=>{var $p=X();function Wp(e){var r=$p(this,e).delete(e);return this.size-=r?1:0,r}t(Wp,"mapCacheDelete"),cn.exports=Wp})),mn=i(((Ed,fn)=>{var Yp=X();function Xp(e){return Yp(this,e).get(e)}t(Xp,"mapCacheGet"),fn.exports=Xp})),yn=i(((Cd,gn)=>{var Qp=X();function Zp(e){return Qp(this,e).has(e)}t(Zp,"mapCacheHas"),gn.exports=Zp})),hn=i(((Fd,dn)=>{var ec=X();function rc(e,r){var n=ec(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}t(rc,"mapCacheSet"),dn.exports=rc})),ae=i(((Rd,Tn)=>{var tc=an(),nc=ln(),oc=mn(),ac=yn(),ic=hn();function L(e){var r=-1,n=null==e?0:e.length;for(this.clear();++r{var sc=W(),uc=oe(),pc=ae();function lc(e,r){var n=this.__data__;if(n instanceof sc){var o=n.__data__;if(!uc||o.length<199)return o.push([e,r]),this.size=++n.size,this;n=this.__data__=new pc(o)}return n.set(e,r),this.size=n.size,this}t(lc,"stackSet"),xn.exports=lc})),we=i(((Ud,vn)=>{var fc=W(),mc=Nt(),gc=Lt(),yc=Jt(),dc=Gt(),hc=bn();function M(e){var r=this.__data__=new fc(e);this.size=r.size}t(M,"Stack"),M.prototype.clear=mc,M.prototype.delete=gc,M.prototype.get=yc,M.prototype.has=dc,M.prototype.set=hc,vn.exports=M})),Pn=i(((Vd,Dn)=>{function xc(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}t(xc,"setCacheAdd"),Dn.exports=xc})),Sn=i(((zd,qn)=>{function bc(e){return this.__data__.has(e)}t(bc,"setCacheHas"),qn.exports=bc})),On=i(((Hd,_n)=>{var vc=ae(),Dc=Pn(),Pc=Sn();function ie(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new vc;++r{function qc(e,r){for(var n=-1,o=null==e?0:e.length;++n{function Sc(e,r){return e.has(r)}t(Sc,"cacheHas"),En.exports=Sc})),Ae=i(((Qd,Cn)=>{var _c=On(),Oc=An(),wc=jn();function jc(e,r,n,o,a,s){var u=1&n,p=e.length,c=r.length;if(p!=c&&!(u&&c>p))return!1;var l=s.get(e),f=s.get(r);if(l&&f)return l==r&&f==e;var d=-1,g=!0,x=2&n?new _c:void 0;for(s.set(e,r),s.set(r,e);++d{var Ic=D().Uint8Array;In.exports=Ic})),Rn=i(((rh,Nn)=>{function Fc(e){var r=-1,n=Array(e.size);return e.forEach((function(o,a){n[++r]=[a,o]})),n}t(Fc,"mapToArray"),Nn.exports=Fc})),Mn=i(((nh,Ln)=>{function Nc(e){var r=-1,n=Array(e.size);return e.forEach((function(o){n[++r]=o})),n}t(Nc,"setToArray"),Ln.exports=Nc})),Bn=i(((ah,Vn)=>{var Jn=B(),Un=Fn(),Rc=Oe(),Lc=Ae(),Mc=Rn(),Jc=Mn(),Gn=Jn?Jn.prototype:void 0,Ee=Gn?Gn.valueOf:void 0;function Zc(e,r,n,o,a,s,u){switch(n){case"[object DataView]":if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=r.byteLength||!s(new Un(e),new Un(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Rc(+e,+r);case"[object Error]":return e.name==r.name&&e.message==r.message;case"[object RegExp]":case"[object String]":return e==r+"";case"[object Map]":var p=Mc;case"[object Set]":var c=1&o;if(p||(p=Jc),e.size!=r.size&&!c)return!1;var l=u.get(e);if(l)return l==r;o|=2,u.set(e,r);var f=Lc(p(e),p(r),o,a,s,u);return u.delete(e),f;case"[object Symbol]":if(Ee)return Ee.call(e)==Ee.call(r)}return!1}t(Zc,"equalByTag"),Vn.exports=Zc})),kn=i(((sh,zn)=>{function el(e,r){for(var n=-1,o=r.length,a=e.length;++n{var rl=kn(),tl=P();function nl(e,r,n){var o=r(e);return tl(e)?o:rl(o,n(e))}t(nl,"baseGetAllKeys"),Hn.exports=nl})),Wn=i(((lh,$n)=>{function ol(e,r){for(var n=-1,o=null==e?0:e.length,a=0,s=[];++n{function al(){return[]}t(al,"stubArray"),Yn.exports=al})),eo=i(((yh,Zn)=>{var il=Wn(),sl=Xn(),pl=Object.prototype.propertyIsEnumerable,Qn=Object.getOwnPropertySymbols,cl=Qn?function(e){return null==e?[]:(e=Object(e),il(Qn(e),(function(r){return pl.call(e,r)})))}:sl;Zn.exports=cl})),to=i(((dh,ro)=>{var ll=Kn(),fl=eo(),ml=ne();function gl(e){return ll(e,ml,fl)}t(gl,"getAllKeys"),ro.exports=gl})),ao=i(((Th,oo)=>{var no=to(),hl=Object.prototype.hasOwnProperty;function Tl(e,r,n,o,a,s){var u=1&n,p=no(e),c=p.length;if(c!=no(r).length&&!u)return!1;for(var d=c;d--;){var g=p[d];if(!(u?g in r:hl.call(r,g)))return!1}var x=s.get(e),h=s.get(r);if(x&&h)return x==r&&h==e;var T=!0;s.set(e,r),s.set(r,e);for(var v=u;++d{var vl=S()(D(),"DataView");io.exports=vl})),po=i(((vh,uo)=>{var ql=S()(D(),"Promise");uo.exports=ql})),lo=i(((Dh,co)=>{var Ol=S()(D(),"Set");co.exports=Ol})),mo=i(((Ph,fo)=>{var El=S()(D(),"WeakMap");fo.exports=El})),Do=i(((qh,vo)=>{var je=so(),Ce=oe(),Ie=po(),Fe=lo(),Ne=mo(),bo=j(),J=ve(),go="[object Map]",yo="[object Promise]",ho="[object Set]",To="[object WeakMap]",xo="[object DataView]",Cl=J(je),Il=J(Ce),Fl=J(Ie),Nl=J(Fe),Rl=J(Ne),A=bo;(je&&A(new je(new ArrayBuffer(1)))!=xo||Ce&&A(new Ce)!=go||Ie&&A(Ie.resolve())!=yo||Fe&&A(new Fe)!=ho||Ne&&A(new Ne)!=To)&&(A=t((function(e){var r=bo(e),n="[object Object]"==r?e.constructor:void 0,o=n?J(n):"";if(o)switch(o){case Cl:return xo;case Il:return go;case Fl:return yo;case Nl:return ho;case Rl:return To}return r}),"getTag")),vo.exports=A})),Eo=i(((_h,Ao)=>{var Re=we(),Ll=Ae(),Ml=Bn(),Jl=ao(),Po=Do(),qo=P(),So=Pe(),Ul=_e(),_o="[object Arguments]",Oo="[object Array]",se="[object Object]",wo=Object.prototype.hasOwnProperty;function Bl(e,r,n,o,a,s){var u=qo(e),p=qo(r),c=u?Oo:Po(e),l=p?Oo:Po(r),f=(c=c==_o?se:c)==se,d=(l=l==_o?se:l)==se,g=c==l;if(g&&So(e)){if(!So(r))return!1;u=!0,f=!1}if(g&&!f)return s||(s=new Re),u||Ul(e)?Ll(e,r,n,o,a,s):Ml(e,r,c,n,o,a,s);if(!(1&n)){var x=f&&wo.call(e,"__wrapped__"),h=d&&wo.call(r,"__wrapped__");if(x||h){var T=x?e.value():e,v=h?r.value():r;return s||(s=new Re),a(T,v,n,o,s)}}return!!g&&(s||(s=new Re),Jl(e,r,n,o,a,s))}t(Bl,"baseIsEqualDeep"),Ao.exports=Bl})),Le=i(((wh,Io)=>{var zl=Eo(),jo=C();function Co(e,r,n,o,a){return e===r||(null==e||null==r||!jo(e)&&!jo(r)?e!=e&&r!=r:zl(e,r,n,o,Co,a))}t(Co,"baseIsEqual"),Io.exports=Co})),No=i(((Eh,Fo)=>{var kl=we(),Hl=Le();function Wl(e,r,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var p=n[a];if(u&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++a{var Yl=re();function Xl(e){return e==e&&!Yl(e)}t(Xl,"isStrictComparable"),Ro.exports=Xl})),Mo=i(((Fh,Lo)=>{var Ql=Me(),Zl=ne();function ef(e){for(var r=Zl(e),n=r.length;n--;){var o=r[n],a=e[o];r[n]=[o,a,Ql(a)]}return r}t(ef,"getMatchData"),Lo.exports=ef})),Je=i(((Rh,Jo)=>{function rf(e,r){return function(n){return null!=n&&(n[e]===r&&(void 0!==r||e in Object(n)))}}t(rf,"matchesStrictComparable"),Jo.exports=rf})),Go=i(((Mh,Uo)=>{var tf=No(),nf=Mo(),of=Je();function af(e){var r=nf(e);return 1==r.length&&r[0][2]?of(r[0][0],r[0][1]):function(n){return n===e||tf(n,e,r)}}t(af,"baseMatches"),Uo.exports=af})),ue=i(((Uh,Vo)=>{var sf=j(),uf=C();function cf(e){return"symbol"==typeof e||uf(e)&&"[object Symbol]"==sf(e)}t(cf,"isSymbol"),Vo.exports=cf})),pe=i(((Vh,Bo)=>{var lf=P(),ff=ue(),mf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gf=/^\w*$/;function yf(e,r){if(lf(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ff(e))||(gf.test(e)||!mf.test(e)||null!=r&&e in Object(r))}t(yf,"isKey"),Bo.exports=yf})),Ho=i(((zh,ko)=>{var zo=ae();function Ue(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var n=t((function(){var o=arguments,a=r?r.apply(this,o):o[0],s=n.cache;if(s.has(a))return s.get(a);var u=e.apply(this,o);return n.cache=s.set(a,u)||s,u}),"memoized");return n.cache=new(Ue.Cache||zo),n}t(Ue,"memoize"),Ue.Cache=zo,ko.exports=Ue})),$o=i(((Hh,Ko)=>{var hf=Ho();function xf(e){var r=hf(e,(function(o){return 500===n.size&&n.clear(),o})),n=r.cache;return r}t(xf,"memoizeCapped"),Ko.exports=xf})),Yo=i((($h,Wo)=>{var bf=$o(),vf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Df=/\\(\\)?/g,Pf=bf((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(vf,(function(n,o,a,s){r.push(a?s.replace(Df,"$1"):o||n)})),r}));Wo.exports=Pf})),Qo=i(((Wh,Xo)=>{function qf(e,r){for(var n=-1,o=null==e?0:e.length,a=Array(o);++n{var Zo=B(),Sf=Qo(),_f=P(),Of=ue(),ea=Zo?Zo.prototype:void 0,ra=ea?ea.toString:void 0;function ta(e){if("string"==typeof e)return e;if(_f(e))return Sf(e,ta)+"";if(Of(e))return ra?ra.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r}t(ta,"baseToString"),na.exports=ta})),ia=i(((Zh,aa)=>{var Af=oa();function Ef(e){return null==e?"":Af(e)}t(Ef,"toString"),aa.exports=Ef})),Ge=i(((rT,sa)=>{var jf=P(),Cf=pe(),If=Yo(),Ff=ia();function Nf(e,r){return jf(e)?e:Cf(e,r)?[e]:If(Ff(e))}t(Nf,"castPath"),sa.exports=Nf})),Q=i(((nT,ua)=>{var Rf=ue();function Mf(e){if("string"==typeof e||Rf(e))return e;var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r}t(Mf,"toKey"),ua.exports=Mf})),Ve=i(((aT,pa)=>{var Jf=Ge(),Uf=Q();function Gf(e,r){for(var n=0,o=(r=Jf(r,e)).length;null!=e&&n{var Vf=Ve();function Bf(e,r,n){var o=null==e?void 0:Vf(e,r);return void 0===o?n:o}t(Bf,"get"),ca.exports=Bf})),ma=i(((pT,fa)=>{function zf(e,r){return null!=e&&r in Object(e)}t(zf,"baseHasIn"),fa.exports=zf})),ya=i(((lT,ga)=>{var kf=Ge(),Hf=De(),Kf=P(),$f=qe(),Wf=te(),Yf=Q();function Xf(e,r,n){for(var o=-1,a=(r=kf(r,e)).length,s=!1;++o{var Qf=ma(),Zf=ya();function em(e,r){return null!=e&&Zf(e,r,Qf)}t(em,"hasIn"),da.exports=em})),xa=i(((yT,Ta)=>{var rm=Le(),tm=la(),nm=ha(),om=pe(),am=Me(),im=Je(),sm=Q();function cm(e,r){return om(e)&&am(r)?im(sm(e),r):function(n){var o=tm(n,e);return void 0===o&&o===r?nm(n,e):rm(r,o,3)}}t(cm,"baseMatchesProperty"),Ta.exports=cm})),va=i(((hT,ba)=>{function lm(e){return e}t(lm,"identity"),ba.exports=lm})),Pa=i(((xT,Da)=>{function fm(e){return function(r){return r?.[e]}}t(fm,"baseProperty"),Da.exports=fm})),Sa=i(((vT,qa)=>{var mm=Ve();function gm(e){return function(r){return mm(r,e)}}t(gm,"basePropertyDeep"),qa.exports=gm})),Oa=i(((PT,_a)=>{var ym=Pa(),dm=Sa(),hm=pe(),Tm=Q();function xm(e){return hm(e)?ym(Tm(e)):dm(e)}t(xm,"property"),_a.exports=xm})),Aa=i(((ST,wa)=>{var bm=Go(),vm=xa(),Dm=va(),Pm=P(),qm=Oa();function Sm(e){return"function"==typeof e?e:null==e?Dm:"object"==typeof e?Pm(e)?vm(e[0],e[1]):bm(e):qm(e)}t(Sm,"baseIteratee"),wa.exports=Sm})),ja=i(((OT,Ea)=>{var _m=Er(),Om=bt(),wm=Aa();function Am(e,r){var n={};return r=wm(r,3),Om(e,(function(o,a,s){_m(n,a,r(o,a,s))})),n}t(Am,"mapValues"),Ea.exports=Am})),gi=t((e=>"literal"===e.name),"isLiteral"),yi=t((e=>e.value.replace(/['|"]/g,"")),"toEnumOption"),di=t((e=>{switch(e.type){case"function":return{name:"function"};case"object":let r={};return e.signature.properties.forEach((n=>{r[n.key]=E(n.value)})),{name:"object",value:r};default:throw new _storybook_core_preview_errors__WEBPACK_IMPORTED_MODULE_0__.UnknownArgTypesError({type:e,language:"Flow"})}}),"convertSig"),E=t((e=>{let{name:r,raw:n}=e,o={};switch(typeof n<"u"&&(o.raw=n),e.name){case"literal":return{...o,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...o,name:r};case"Array":return{...o,name:"array",value:e.elements.map(E)};case"signature":return{...o,...di(e)};case"union":return e.elements?.every(gi)?{...o,name:"enum",value:e.elements?.map(yi)}:{...o,name:r,value:e.elements?.map(E)};case"intersection":return{...o,name:r,value:e.elements?.map(E)};default:return{...o,name:"other",value:r}}}),"convert"),Ia=(e=ja(),r=1,n=null!=e?ii(pi(e)):{},((e,r,n,o)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let a of ui(r))!ci.call(e,a)&&a!==n&&he(e,a,{get:()=>r[a],enumerable:!(o=si(r,a))||o.enumerable});return e})(!r&&e&&e.__esModule?n:he(n,"default",{value:e,enumerable:!0}),e)),Ca=/^['"]|['"]$/g,Em=t((e=>e.replace(Ca,"")),"trimQuotes"),jm=t((e=>Ca.test(e)),"includesQuotes"),ce=t((e=>{let r=Em(e);return jm(e)||Number.isNaN(Number(r))?r:Number(r)}),"parseLiteral"),Cm=/^\(.*\) => /,U=t((e=>{let{name:r,raw:n,computed:o,value:a}=e,s={};switch(typeof n<"u"&&(s.raw=n),r){case"enum":{let p=o?a:a.map((c=>ce(c.value)));return{...s,name:r,value:p}}case"string":case"number":case"symbol":case"object":return{...s,name:r};case"func":return{...s,name:"function"};case"bool":case"boolean":return{...s,name:"boolean"};case"arrayOf":case"array":return{...s,name:"array",value:a&&U(a)};case"objectOf":return{...s,name:r,value:U(a)};case"shape":case"exact":let u=(0,Ia.default)(a,(p=>U(p)));return{...s,name:"object",value:u};case"union":return{...s,name:"union",value:a.map((p=>U(p)))};default:{if(r?.indexOf("|")>0)try{let l=r.split("|").map((f=>JSON.parse(f)));return{...s,name:"enum",value:l}}catch{}let p=a?`${r}(${a})`:r,c=Cm.test(r)?"function":"other";return{...s,name:c,value:p}}}}),"convert"),Fm=t((e=>{switch(e.type){case"function":return{name:"function"};case"object":let r={};return e.signature.properties.forEach((n=>{r[n.key]=G(n.value)})),{name:"object",value:r};default:throw new _storybook_core_preview_errors__WEBPACK_IMPORTED_MODULE_0__.UnknownArgTypesError({type:e,language:"Typescript"})}}),"convertSig"),G=t((e=>{let{name:r,raw:n}=e,o={};switch(typeof n<"u"&&(o.raw=n),e.name){case"string":case"number":case"symbol":case"boolean":return{...o,name:r};case"Array":return{...o,name:"array",value:e.elements.map(G)};case"signature":return{...o,...Fm(e)};case"union":let a;return a=e.elements?.every((s=>"literal"===s.name))?{...o,name:"enum",value:e.elements?.map((s=>ce(s.value)))}:{...o,name:r,value:e.elements?.map(G)},a;case"intersection":return{...o,name:r,value:e.elements?.map(G)};default:return{...o,name:"other",value:r}}}),"convert"),le=t((e=>{let{type:r,tsType:n,flowType:o}=e;try{if(null!=r)return U(r);if(null!=n)return G(n);if(null!=o)return E(o)}catch(a){console.error(a)}return null}),"convert"),Nm=(a=>(a.JAVASCRIPT="JavaScript",a.FLOW="Flow",a.TYPESCRIPT="TypeScript",a.UNKNOWN="Unknown",a))(Nm||{}),Rm=["null","undefined"];function V(e){return Rm.some((r=>r===e))}t(V,"isDefaultValueBlacklisted");var b,Fa=t((e=>{if(!e)return"";if("string"==typeof e)return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)}),"str");function Na(e){return!!e.__docgenInfo}function Ra(e){return null!=e&&Object.keys(e).length>0}function La(e,r){return Na(e)?e.__docgenInfo[r]:null}function Ma(e){return Na(e)?Fa(e.__docgenInfo.description):""}function Be(e){return/^\s+$/.test(e)}function Ja(e){let r=e.match(/\r+$/);return null==r?["",e]:[e.slice(-r[0].length),e.slice(0,-r[0].length)]}function q(e){let r=e.match(/^\s+/);return null==r?["",e]:[e.slice(0,r[0].length),e.slice(r[0].length)]}function Ua(e){return e.split(/\n/)}function Ga(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}function ze(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}t(Na,"hasDocgen"),t(Ra,"isValidDocgenSection"),t(La,"getDocgenSection"),t(Ma,"getDocgenDescription"),function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"}(b=b||(b={})),t(Be,"isSpace"),t(Ja,"splitCR"),t(q,"splitSpace"),t(Ua,"splitLines"),t(Ga,"seedSpec"),t(ze,"seedTokens");var Lm=/^@\S+/;function ke({fence:e="```"}={}){let r=Mm(e),n=t(((o,a)=>r(o)?!a:a),"toggleFence");return t((function(a){let s=[[]],u=!1;for(let p of a)Lm.test(p.tokens.description)&&!u?s.push([p]):s[s.length-1].push(p),u=n(p.tokens.description,u);return s}),"parseBlock")}function Mm(e){return"string"==typeof e?r=>r.split(e).length%2==0:e}function He({startLine:e=0,markers:r=b}={}){let n=null,o=e;return t((function(s){let u=s,p=ze();if([p.lineEnd,u]=Ja(u),[p.start,u]=q(u),null===n&&u.startsWith(r.start)&&!u.startsWith(r.nostart)&&(n=[],p.delimiter=u.slice(0,r.start.length),u=u.slice(r.start.length),[p.postDelimiter,u]=q(u)),null===n)return o++,null;let c=u.trimRight().endsWith(r.end);if(""===p.delimiter&&u.startsWith(r.delim)&&!u.startsWith(r.end)&&(p.delimiter=r.delim,u=u.slice(r.delim.length),[p.postDelimiter,u]=q(u)),c){let l=u.trimRight();p.end=u.slice(l.length-r.end.length),u=l.slice(0,-r.end.length)}if(p.description=u,n.push({number:o,source:s,tokens:p}),o++,c){let l=n.slice();return n=null,l}return null}),"parseSource")}function Ke({tokenizers:e}){return t((function(n){var o;let a=Ga({source:n});for(let s of e)if(a=s(a),null!==(o=a.problems[a.problems.length-1])&&void 0!==o&&o.critical)break;return a}),"parseSpec")}function fe(){return e=>{let{tokens:r}=e.source[0],n=r.description.match(/\s*(@(\S+))(\s*)/);return null===n?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(r.tag=n[1],r.postTag=n[3],r.description=r.description.slice(n[0].length),e.tag=n[2],e)}}function me(e="compact"){let r=Um(e);return n=>{let o=0,a=[];for(let[p,{tokens:c}]of n.source.entries()){let l="";if(0===p&&"{"!==c.description[0])return n;for(let f of c.description)if("{"===f&&o++,"}"===f&&o--,l+=f,0===o)break;if(a.push([c,l]),0===o)break}if(0!==o)return n.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:n.source[0].number,critical:!0}),n;let s=[],u=a[0][0].postDelimiter.length;for(let[p,[c,l]]of a.entries())c.type=l,p>0&&(c.type=c.postDelimiter.slice(u)+l,c.postDelimiter=c.postDelimiter.slice(0,u)),[c.postType,c.description]=q(c.description.slice(l.length)),s.push(c.type);return s[0]=s[0].slice(1),s[s.length-1]=s[s.length-1].slice(0,-1),n.type=r(s),n}}t(ke,"getParser"),t(Mm,"getFencer"),t(He,"getParser"),t(Ke,"getParser"),t(fe,"tagTokenizer"),t(me,"typeTokenizer");var Jm=t((e=>e.trim()),"trim");function Um(e){return"compact"===e?r=>r.map(Jm).join(""):"preserve"===e?r=>r.join("\n"):e}t(Um,"getJoiner");var Gm=t((e=>e&&e.startsWith('"')&&e.endsWith('"')),"isQuoted");function ge(){let e=t(((r,{tokens:n},o)=>""===n.type?r:o),"typeEnd");return r=>{let{tokens:n}=r.source[r.source.reduce(e,0)],o=n.description.trimLeft(),a=o.split('"');if(a.length>1&&""===a[0]&&a.length%2==1)return r.name=a[1],n.name=`"${a[1]}"`,[n.postName,n.description]=q(o.slice(n.name.length)),r;let c,s=0,u="",p=!1;for(let f of o){if(0===s&&Be(f))break;"["===f&&s++,"]"===f&&s--,u+=f}if(0!==s)return r.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:r.source[0].number,critical:!0}),r;let l=u;if("["===u[0]&&"]"===u[u.length-1]){p=!0,u=u.slice(1,-1);let f=u.split("=");if(u=f[0].trim(),void 0!==f[1]&&(c=f.slice(1).join("=").trim()),""===u)return r.problems.push({code:"spec:name:empty-name",message:"empty name",line:r.source[0].number,critical:!0}),r;if(""===c)return r.problems.push({code:"spec:name:empty-default",message:"empty default value",line:r.source[0].number,critical:!0}),r;if(!Gm(c)&&/=(?!>)/.test(c))return r.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:r.source[0].number,critical:!0}),r}return r.optional=p,r.name=u,n.name=l,void 0!==c&&(r.default=c),[n.postName,n.description]=q(o.slice(n.name.length)),r}}function ye(e="compact",r=b){let n=$e(e);return o=>(o.description=n(o.source,r),o)}function $e(e){return"compact"===e?Vm:"preserve"===e?km:e}function Vm(e,r=b){return e.map((({tokens:{description:n}})=>n.trim())).filter((n=>""!==n)).join(" ")}t(ge,"nameTokenizer"),t(ye,"descriptionTokenizer"),t($e,"getJoiner"),t(Vm,"compactJoiner");var Bm=t(((e,{tokens:r},n)=>""===r.type?e:n),"lineNo"),zm=t((({tokens:e})=>(""===e.delimiter?e.start:e.postDelimiter.slice(1))+e.description),"getDescription");function km(e,r=b){if(0===e.length)return"";""===e[0].tokens.description&&e[0].tokens.delimiter===r.start&&(e=e.slice(1));let n=e[e.length-1];return void 0!==n&&""===n.tokens.description&&n.tokens.end.endsWith(r.end)&&(e=e.slice(0,-1)),(e=e.slice(e.reduce(Bm,0))).map(zm).join("\n")}function We({startLine:e=0,fence:r="```",spacing:n="compact",markers:o=b,tokenizers:a=[e=>{let{tokens:r}=e.source[0],n=r.description.match(/\s*(@(\S+))(\s*)/);return null===n?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(r.tag=n[1],r.postTag=n[3],r.description=r.description.slice(n[0].length),e.tag=n[2],e)},me(n),ge(),ye(n)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let s=He({startLine:e,markers:o}),u=ke({fence:r}),p=Ke({tokenizers:a}),c=$e(n);return function(l){let f=[];for(let d of Ua(l)){let g=s(d);if(null===g)continue;let x=u(g),h=x.slice(1).map(p);f.push({description:c(x[0],o),tags:h,source:g,problems:h.reduce(((T,v)=>T.concat(v.problems)),[])})}return f}}function Hm(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}function Ye(){return e=>e.source.map((({tokens:r})=>Hm(r))).join("\n")}t(km,"preserveJoiner"),t(We,"getParser"),t(Hm,"join"),t(Ye,"getStringifier");Object.keys({line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0});function Va(e,r={}){return We(r)(e)}t(Va,"parse");Ye();function Xm(e){return null!=e&&e.includes("@")}function Qm(e){let a=Va("/**\n"+(e??"").split("\n").map((s=>` * ${s}`)).join("\n")+"\n*/",{spacing:"preserve"});if(!a||0===a.length)throw new Error("Cannot parse JSDoc tags.");return a[0]}t(Xm,"containsJsDoc"),t(Qm,"parse");var Zm={tags:["param","arg","argument","returns","ignore","deprecated"]},Ba=t(((e,r=Zm)=>{if(!Xm(e))return{includesJsDoc:!1,ignore:!1};let n=Qm(e),o=eg(n,r.tags);return o.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:n.description.trim(),extractedTags:o}}),"parseJsDoc");function eg(e,r){let n={params:null,deprecated:null,returns:null,ignore:!1};for(let o of e.tags)if(void 0===r||r.includes(o.tag)){if("ignore"===o.tag){n.ignore=!0;break}switch(o.tag){case"param":case"arg":case"argument":{let a=tg(o);null!=a&&(null==n.params&&(n.params=[]),n.params.push(a));break}case"deprecated":{let a=ng(o);null!=a&&(n.deprecated=a);break}case"returns":{let a=og(o);null!=a&&(n.returns=a);break}}}return n}function rg(e){return e.replace(/[\.-]$/,"")}function tg(e){if(!e.name||"-"===e.name)return null;let r=Ha(e.type);return{name:e.name,type:r,description:ka(e.description),getPrettyName:t((()=>rg(e.name)),"getPrettyName"),getTypeName:t((()=>r?Ka(r):null),"getTypeName")}}function ng(e){return e.name?za(e.name,e.description):null}function za(e,r){return ka(""===e?r:`${e} ${r}`)}function ka(e){let r=e.replace(/^- /g,"").trim();return""===r?null:r}function og(e){let r=Ha(e.type);return r?{type:r,description:za(e.name,e.description),getTypeName:t((()=>Ka(r)),"getTypeName")}:null}t(eg,"extractJsDocTags"),t(rg,"normaliseParamName"),t(tg,"extractParam"),t(ng,"extractDeprecated"),t(za,"joinNameAndDescription"),t(ka,"normaliseDescription"),t(og,"extractReturns");var _=(0,jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__.stringifyRules)(),ag=_.JsdocTypeObject;function Ha(e){try{return(0,jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__.parse)(e,"typescript")}catch{return null}}function Ka(e){return(0,jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__.transform)(_,e)}_.JsdocTypeAny=()=>"any",_.JsdocTypeObject=(e,r)=>`(${ag(e,r)})`,_.JsdocTypeOptional=(e,r)=>r(e.element),_.JsdocTypeNullable=(e,r)=>r(e.element),_.JsdocTypeNotNullable=(e,r)=>r(e.element),_.JsdocTypeUnion=(e,r)=>e.elements.map(r).join("|"),t(Ha,"extractType"),t(Ka,"extractTypeName");function Qe(e){return e.length>90}function $a(e){return e.length>50}function y(e,r){return e===r?{summary:e}:{summary:e,detail:r}}t(Qe,"isTooLongForTypeSummary"),t($a,"isTooLongForDefaultValueSummary"),t(y,"createSummaryValue");function Wa(e,r){if(null!=e){let{value:n}=e;if(!V(n))return $a(n)?y(r?.name,n):y(n)}return null}function Ya({name:e,value:r,elements:n,raw:o}){return r??(null!=n?n.map(Ya).join(" | "):o??e)}function ig({name:e,raw:r,elements:n}){return y(null!=n?n.map(Ya).join(" | "):null!=r?r.replace(/^\|\s*/,""):e)}function sg({type:e,raw:r}){return y(null!=r?r:e)}function ug({type:e,raw:r}){return null!=r?Qe(r)?y(e,r):y(r):y(e)}function pg(e){let{type:r}=e;return"object"===r?ug(e):sg(e)}function cg({name:e,raw:r}){return null!=r?Qe(r)?y(e,r):y(r):y(e)}function Xa(e){if(null==e)return null;switch(e.name){case"union":return ig(e);case"signature":return pg(e);default:return cg(e)}}t(Wa,"createDefaultValue"),t(Ya,"generateUnionElement"),t(ig,"generateUnion"),t(sg,"generateFuncSignature"),t(ug,"generateObjectSignature"),t(pg,"generateSignature"),t(cg,"generateDefault"),t(Xa,"createType");var Qa=t(((e,r)=>{let{flowType:n,description:o,required:a,defaultValue:s}=r;return{name:e,type:Xa(n),required:a,description:o,defaultValue:Wa(s??null,n??null)}}),"createFlowPropDef");function Za({defaultValue:e}){if(null!=e){let{value:r}=e;if(!V(r))return y(r)}return null}function ei({tsType:e,required:r}){if(null==e)return null;let n=e.name;return r||(n=n.replace(" | undefined","")),y(["Array","Record","signature"].includes(e.name)?e.raw:n)}t(Za,"createDefaultValue"),t(ei,"createType");var ri=t(((e,r)=>{let{description:n,required:o}=r;return{name:e,type:ei(r),required:o,description:n,defaultValue:Za(r)}}),"createTsPropDef");function lg(e){return null!=e?y(e.name):null}function fg(e){let{computed:r,func:n}=e;return typeof r>"u"&&typeof n>"u"}function mg(e){return!!e&&("string"===e.name||"enum"===e.name&&(Array.isArray(e.value)&&e.value.every((({value:r})=>"string"==typeof r&&'"'===r[0]&&'"'===r[r.length-1]))))}function gg(e,r){if(null!=e){let{value:n}=e;if(!V(n))return fg(e)&&mg(r)?y(JSON.stringify(n)):y(n)}return null}function ti(e,r,n){let{description:o,required:a,defaultValue:s}=n;return{name:e,type:lg(r),required:a,description:o,defaultValue:gg(s,r)}}function de(e,r){if(r?.includesJsDoc){let{description:n,extractedTags:o}=r;null!=n&&(e.description=r.description);let a={...o,params:o?.params?.map((s=>({name:s.getPrettyName(),description:s.description})))};Object.values(a).filter(Boolean).length>0&&(e.jsDocTags=a)}return e}t(lg,"createType"),t(fg,"isReactDocgenTypescript"),t(mg,"isStringValued"),t(gg,"createDefaultValue"),t(ti,"createBasicPropDef"),t(de,"applyJsDocResult");var yg=t(((e,r,n)=>{let o=ti(e,r.type,r);return o.sbType=le(r),de(o,n)}),"javaScriptFactory"),dg=t(((e,r,n)=>{let o=ri(e,r);return o.sbType=le(r),de(o,n)}),"tsFactory"),hg=t(((e,r,n)=>{let o=Qa(e,r);return o.sbType=le(r),de(o,n)}),"flowFactory"),Tg=t(((e,r,n)=>de(ti(e,{name:"unknown"},r),n)),"unknownFactory"),Ze=t((e=>{switch(e){case"JavaScript":return yg;case"TypeScript":return dg;case"Flow":return hg;default:return Tg}}),"getPropDefFactory"),ni=t((e=>null!=e.type?"JavaScript":null!=e.flowType?"Flow":null!=e.tsType?"TypeScript":"Unknown"),"getTypeSystem"),xg=t((e=>{let r=ni(e[0]),n=Ze(r);return e.map((o=>{let a=o;return o.type?.elements&&(a={...o,type:{...o.type,value:o.type.elements}}),oi(a.name,a,r,n)}))}),"extractComponentSectionArray"),bg=t((e=>{let r=Object.keys(e),n=ni(e[r[0]]),o=Ze(n);return r.map((a=>{let s=e[a];return null!=s?oi(a,s,n,o):null})).filter(Boolean)}),"extractComponentSectionObject"),av=t(((e,r)=>{let n=La(e,r);return Ra(n)?Array.isArray(n)?xg(n):bg(n):[]}),"extractComponentProps");function oi(e,r,n,o){let a=Ba(r.description);return a.includesJsDoc&&a.ignore?null:{propDef:o(e,r,a),jsDocTags:a.extractedTags,docgenInfo:r,typeSystem:n}}function iv(e){return null!=e?Ma(e):""}t(oi,"extractProp"),t(iv,"extractComponentDescription");var cv=t((e=>{let{component:r,argTypes:n,parameters:{docs:o={}}}=e,{extractArgTypes:a}=o,s=a&&r?a(r):{};return s?(0,_storybook_core_preview_api__WEBPACK_IMPORTED_MODULE_2__.combineParameters)(s,n):n}),"enhanceArgTypes"),ai="storybook/docs",yv=`${ai}/snippet-rendered`,Dg=(o=>(o.AUTO="auto",o.CODE="code",o.DYNAMIC="dynamic",o))(Dg||{})},"./node_modules/@storybook/csf/dist/index.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{aj:function(){return O},hX:function(){return P}});var r,e,C=Object.create,u=Object.defineProperty,B=Object.getOwnPropertyDescriptor,F=Object.getOwnPropertyNames,h=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(r=T=>{var r,e,n;Object.defineProperty(T,"__esModule",{value:!0}),T.isEqual=(r=Object.prototype.toString,e=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:Object.keys,function(t,a){return function i(o,s,p){var y,g,d,c=r.call(o),b=r.call(s);if(o===s)return!0;if(null==o||null==s)return!1;if(p.indexOf(o)>-1&&p.indexOf(s)>-1)return!0;if(p.push(o,s),c!=b||(y=n(o),g=n(s),y.length!=g.length||y.some((function(A){return!i(o[A],s[A],p)}))))return!1;switch(c.slice(8,-1)){case"Symbol":return o.valueOf()==s.valueOf();case"Date":case"Number":return+o==+s||+o!=+o&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+o==""+s;case"Set":case"Map":y=o.entries(),g=s.entries();do{if(!i((d=y.next()).value,g.next().value,p))return!1}while(!d.done);return!0;case"ArrayBuffer":o=new Uint8Array(o),s=new Uint8Array(s);case"DataView":o=new Uint8Array(o.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(o.length!=s.length)return!1;for(d=0;d(e||r((e={exports:{}}).exports,e),e.exports));var l=((r,e,n)=>(n=null!=r?C(h(r)):{},((r,e,n,t)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let a of F(e))!w.call(r,a)&&a!==n&&u(r,a,{get:()=>e[a],enumerable:!(t=B(e,a))||t.enumerable});return r})(!e&&r&&r.__esModule?n:u(n,"default",{value:r,enumerable:!0}),r)))(x()),S=r=>r.map((e=>typeof e<"u")).filter(Boolean).length,P=(r,e,n)=>{if(!r.if)return!0;let{arg:t,global:a}=r.if;if(1!==S([t,a]))throw new Error(`Invalid conditional value ${JSON.stringify({arg:t,global:a})}`);let i=t?e[t]:n[a];return((r,e)=>{let{exists:n,eq:t,neq:a,truthy:i}=r;if(S([n,t,a,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:t,neq:a})}`);if(typeof t<"u")return(0,l.isEqual)(e,t);if(typeof a<"u")return!(0,l.isEqual)(e,a);if(typeof n<"u"){let s=typeof e<"u";return n?s:!s}return typeof i>"u"||i?!!e:!e})(r.if,i)},O=r=>r.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},"./node_modules/@storybook/instrumenter/dist/index.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{wV:function(){return instrument}});var storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("storybook/internal/client-logger"),storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/core-events"),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("storybook/internal/preview-api"),_storybook_global__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("@storybook/global"),process=__webpack_require__("./node_modules/process/browser.js"),__require=__webpack_require__("./node_modules/@storybook/instrumenter/dist sync recursive"),h=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function a(n){return String(n)}a.open="",a.close="";var f2=function p(n=!1){let e=function C(n=!1){let e=typeof process<"u"?process:void 0,i=e?.env||{},g=e?.argv||[];return!("NO_COLOR"in i||g.includes("--no-color"))&&("FORCE_COLOR"in i||g.includes("--color")||"win32"===e?.platform||n&&"dumb"!==i.TERM||"CI"in i)||typeof window<"u"&&!!window.chrome}(n),g=(r,t,c=r)=>{let o=l=>{let s=String(l),b=s.indexOf(t,r.length);return~b?r+((r,t,c,o)=>{let l="",s=0;do{l+=r.substring(s,o)+c,s=o+t.length,o=r.indexOf(t,s)}while(~o);return l+r.substring(s)})(s,t,c,b)+t:r+s+t};return o.open=r,o.close=t,o},u={isColorSupported:e},d=r=>`[${r}m`;for(let[r,t]of h)u[r]=e?g(d(t[0]),d(t[1]),t[2]):a;return u}(!1);function printIteratorEntries(iterator,config,indentation,depth,refs,printer2,separator=": "){let result="",width=0,current=iterator.next();if(!current.done){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(;!current.done;){if(result+=indentationNext,width++===config.maxWidth){result+="…";break}result+=printer2(current.value[0],config,indentationNext,depth,refs)+separator+printer2(current.value[1],config,indentationNext,depth,refs),current=iterator.next(),current.done?config.min||(result+=","):result+=`,${config.spacingInner}`}result+=config.spacingOuter+indentation}return result}function printIteratorValues(iterator,config,indentation,depth,refs,printer2){let result="",width=0,current=iterator.next();if(!current.done){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(;!current.done;){if(result+=indentationNext,width++===config.maxWidth){result+="…";break}result+=printer2(current.value,config,indentationNext,depth,refs),current=iterator.next(),current.done?config.min||(result+=","):result+=`,${config.spacingInner}`}result+=config.spacingOuter+indentation}return result}function printListItems(list,config,indentation,depth,refs,printer2){let result="",isDataView=l=>l instanceof DataView,length=isDataView(list=list instanceof ArrayBuffer?new DataView(list):list)?list.byteLength:list.length;if(length>0){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(let i=0;i0){result+=config.spacingOuter;let indentationNext=indentation+config.indent;for(let i=0;i{let stringedValue=val.toString();if("ArrayContaining"===stringedValue||"ArrayNotContaining"===stringedValue)return++depth>config.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}[${printListItems(val.sample,config,indentation,depth,refs,printer2)}]`;if("ObjectContaining"===stringedValue||"ObjectNotContaining"===stringedValue)return++depth>config.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}{${printObjectProperties(val.sample,config,indentation,depth,refs,printer2)}}`;if("StringMatching"===stringedValue||"StringNotMatching"===stringedValue||"StringContaining"===stringedValue||"StringNotContaining"===stringedValue)return stringedValue+" "+printer2(val.sample,config,indentation,depth,refs);if("function"!=typeof val.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);return val.toAsymmetricMatcher()},test:val=>val&&val.$$typeof===asymmetricMatcher},OBJECT_NAMES=new Set(["DOMStringMap","NamedNodeMap"]),ARRAY_REGEXP=/^(?:HTML\w*Collection|NodeList)$/;var plugin$4={serialize:(collection,config,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return++depth>config.maxDepth?`[${name}]`:(config.min?"":name+" ")+(OBJECT_NAMES.has(name)?`{${printObjectProperties(function isNamedNodeMap(collection){return"NamedNodeMap"===collection.constructor.name}(collection)?[...collection].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}):{...collection},config,indentation,depth,refs,printer2)}}`:`[${printListItems([...collection],config,indentation,depth,refs,printer2)}]`)},test:val=>val&&val.constructor&&!!val.constructor.name&&function testName(name){return OBJECT_NAMES.has(name)||ARRAY_REGEXP.test(name)}(val.constructor.name)};function escapeHTML(str){return str.replaceAll("<","<").replaceAll(">",">")}function printProps(keys,props,config,indentation,depth,refs,printer2){let indentationNext=indentation+config.indent,colors=config.colors;return keys.map((key=>{let value=props[key],printed=printer2(value,config,indentationNext,depth,refs);return"string"!=typeof value&&(printed.includes("\n")&&(printed=config.spacingOuter+indentationNext+printed+config.spacingOuter+indentation),printed=`{${printed}}`),`${config.spacingInner+indentation+colors.prop.open+key+colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`})).join("")}function printChildren(children,config,indentation,depth,refs,printer2){return children.map((child=>config.spacingOuter+indentation+("string"==typeof child?printText(child,config):printer2(child,config,indentation,depth,refs)))).join("")}function printText(text,config){let contentColor=config.colors.content;return contentColor.open+escapeHTML(text)+contentColor.close}function printElement(type,printedProps,printedChildren,config,indentation){let tagColor=config.colors.tag;return`${tagColor.open}<${type}${printedProps&&tagColor.close+printedProps+config.spacingOuter+indentation+tagColor.open}${printedChildren?`>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}${tagColor.close}`}function printElementAsLeaf(type,config){let tagColor=config.colors.tag;return`${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`}var ELEMENT_REGEXP=/^(?:(?:HTML|SVG)\w*)?Element$/;function nodeIsFragment(node){return 11===node.nodeType}var plugin$3={serialize:(node,config,indentation,depth,refs,printer2)=>{if(function nodeIsText(node){return 3===node.nodeType}(node))return printText(node.data,config);if(function nodeIsComment(node){return 8===node.nodeType}(node))return function printComment(comment,config){let commentColor=config.colors.comment;return`${commentColor.open}\x3c!--${escapeHTML(comment)}--\x3e${commentColor.close}`}(node.data,config);let type=nodeIsFragment(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config.maxDepth?printElementAsLeaf(type,config):printElement(type,printProps(nodeIsFragment(node)?[]:Array.from(node.attributes,(attr=>attr.name)).sort(),nodeIsFragment(node)?{}:[...node.attributes].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config,indentation+config.indent,depth,refs,printer2),printChildren(Array.prototype.slice.call(node.childNodes||node.children),config,indentation+config.indent,depth,refs,printer2),config,indentation)},test:val=>{var _a;return(null==(_a=val?.constructor)?void 0:_a.name)&&function testNode(val){let constructorName=val.constructor.name,{nodeType:nodeType,tagName:tagName}=val,isCustomElement="string"==typeof tagName&&tagName.includes("-")||function testHasAttribute(val){try{return"function"==typeof val.hasAttribute&&val.hasAttribute("is")}catch{return!1}}(val);return 1===nodeType&&(ELEMENT_REGEXP.test(constructorName)||isCustomElement)||3===nodeType&&"Text"===constructorName||8===nodeType&&"Comment"===constructorName||11===nodeType&&"DocumentFragment"===constructorName}(val)}},getImmutableName=name=>`Immutable.${name}`,printAsLeaf=name=>`[${name}]`;function printImmutableValues(val,config,indentation,depth,refs,printer2,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):`${getImmutableName(type)+" "}[${printIteratorValues(val.values(),config,indentation,depth,refs,printer2)}]`}var hasRequiredReactIs_development,plugin$2={serialize:(val,config,indentation,depth,refs,printer2)=>val["@@__IMMUTABLE_MAP__@@"]?function printImmutableEntries(val,config,indentation,depth,refs,printer2,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):`${getImmutableName(type)+" "}{${printIteratorEntries(val.entries(),config,indentation,depth,refs,printer2)}}`}(val,config,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedMap":"Map"):val["@@__IMMUTABLE_LIST__@@"]?printImmutableValues(val,config,indentation,depth,refs,printer2,"List"):val["@@__IMMUTABLE_SET__@@"]?printImmutableValues(val,config,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedSet":"Set"):val["@@__IMMUTABLE_STACK__@@"]?printImmutableValues(val,config,indentation,depth,refs,printer2,"Stack"):val["@@__IMMUTABLE_SEQ__@@"]?function printImmutableSeq(val,config,indentation,depth,refs,printer2){let name=getImmutableName("Seq");return++depth>config.maxDepth?printAsLeaf(name):val["@@__IMMUTABLE_KEYED__@@"]?`${name+" "}{${val._iter||val._object?printIteratorEntries(val.entries(),config,indentation,depth,refs,printer2):"…"}}`:`${name+" "}[${val._iter||val._array||val._collection||val._iterable?printIteratorValues(val.values(),config,indentation,depth,refs,printer2):"…"}]`}(val,config,indentation,depth,refs,printer2):function printImmutableRecord(val,config,indentation,depth,refs,printer2){let name=getImmutableName(val._name||"Record");return++depth>config.maxDepth?printAsLeaf(name):`${name+" "}{${printIteratorEntries(function getRecordEntries(val){let i=0;return{next(){if(ival&&(!0===val["@@__IMMUTABLE_ITERABLE__@@"]||!0===val["@@__IMMUTABLE_RECORD__@@"])},reactIs={exports:{}},reactIs_development={};reactIs.exports=function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,function(){var REACT_MODULE_REFERENCE,REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_SERVER_CONTEXT_TYPE=Symbol.for("react.server_context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen");function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,SuspenseList=REACT_SUSPENSE_LIST_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;reactIs_development.ContextConsumer=ContextConsumer,reactIs_development.ContextProvider=ContextProvider,reactIs_development.Element=Element2,reactIs_development.ForwardRef=ForwardRef,reactIs_development.Fragment=Fragment,reactIs_development.Lazy=Lazy,reactIs_development.Memo=Memo,reactIs_development.Portal=Portal,reactIs_development.Profiler=Profiler,reactIs_development.StrictMode=StrictMode,reactIs_development.Suspense=Suspense,reactIs_development.SuspenseList=SuspenseList,reactIs_development.isAsyncMode=function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isConcurrentMode=function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isContextConsumer=function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE},reactIs_development.isContextProvider=function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE},reactIs_development.isElement=function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},reactIs_development.isForwardRef=function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},reactIs_development.isFragment=function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE},reactIs_development.isLazy=function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE},reactIs_development.isMemo=function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE},reactIs_development.isPortal=function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE},reactIs_development.isProfiler=function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE},reactIs_development.isStrictMode=function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},reactIs_development.isSuspense=function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE},reactIs_development.isSuspenseList=function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE},reactIs_development.isValidElementType=function isValidElementType(type){return!("string"!=typeof type&&"function"!=typeof type&&type!==REACT_FRAGMENT_TYPE&&type!==REACT_PROFILER_TYPE&&type!==REACT_STRICT_MODE_TYPE&&type!==REACT_SUSPENSE_TYPE&&type!==REACT_SUSPENSE_LIST_TYPE&&type!==REACT_OFFSCREEN_TYPE&&("object"!=typeof type||null===type||type.$$typeof!==REACT_LAZY_TYPE&&type.$$typeof!==REACT_MEMO_TYPE&&type.$$typeof!==REACT_PROVIDER_TYPE&&type.$$typeof!==REACT_CONTEXT_TYPE&&type.$$typeof!==REACT_FORWARD_REF_TYPE&&type.$$typeof!==REACT_MODULE_REFERENCE&&void 0===type.getModuleId))},reactIs_development.typeOf=typeOf}()),reactIs_development}();var reactIsExports=reactIs.exports;function getChildren(arg,children=[]){if(Array.isArray(arg))for(let item of arg)getChildren(item,children);else null!=arg&&!1!==arg&&""!==arg&&children.push(arg);return children}function getType(element){let type=element.type;if("string"==typeof type)return type;if("function"==typeof type)return type.displayName||type.name||"Unknown";if(reactIsExports.isFragment(element))return"React.Fragment";if(reactIsExports.isSuspense(element))return"React.Suspense";if("object"==typeof type&&null!==type){if(reactIsExports.isContextProvider(element))return"Context.Provider";if(reactIsExports.isContextConsumer(element))return"Context.Consumer";if(reactIsExports.isForwardRef(element)){if(type.displayName)return type.displayName;let functionName=type.render.displayName||type.render.name||"";return""===functionName?"ForwardRef":`ForwardRef(${functionName})`}if(reactIsExports.isMemo(element)){let functionName=type.displayName||type.type.displayName||type.type.name||"";return""===functionName?"Memo":`Memo(${functionName})`}}return"UNDEFINED"}var plugin$1={serialize:(element,config,indentation,depth,refs,printer2)=>++depth>config.maxDepth?printElementAsLeaf(getType(element),config):printElement(getType(element),printProps(function getPropKeys$1(element){let{props:props}=element;return Object.keys(props).filter((key=>"children"!==key&&void 0!==props[key])).sort()}(element),element.props,config,indentation+config.indent,depth,refs,printer2),printChildren(getChildren(element.props.children),config,indentation+config.indent,depth,refs,printer2),config,indentation),test:val=>null!=val&&reactIsExports.isElement(val)},testSymbol="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var plugin={serialize:(object,config,indentation,depth,refs,printer2)=>++depth>config.maxDepth?printElementAsLeaf(object.type,config):printElement(object.type,object.props?printProps(function getPropKeys(object){let{props:props}=object;return props?Object.keys(props).filter((key=>void 0!==props[key])).sort():[]}(object),object.props,config,indentation+config.indent,depth,refs,printer2):"",object.children?printChildren(object.children,config,indentation+config.indent,depth,refs,printer2):"",config,indentation),test:val=>val&&val.$$typeof===testSymbol},toString=Object.prototype.toString,toISOString=Date.prototype.toISOString,errorToString=Error.prototype.toString,regExpToString=RegExp.prototype.toString;function getConstructorName(val){return"function"==typeof val.constructor&&val.constructor.name||"Object"}var SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/,NEWLINE_REGEXP=/\n/g,PrettyFormatPluginError=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name}};function printFunction(val,printFunctionName){return printFunctionName?`[Function ${val.name||"anonymous"}]`:"[Function]"}function printSymbol(val){return String(val).replace(SYMBOL_REGEXP,"Symbol($1)")}function printError(val){return`[${errorToString.call(val)}]`}function printBasicValue(val,printFunctionName,escapeRegex,escapeString){if(!0===val||!1===val)return`${val}`;if(void 0===val)return"undefined";if(null===val)return"null";let typeOf=typeof val;if("number"===typeOf)return function printNumber(val){return Object.is(val,-0)?"-0":String(val)}(val);if("bigint"===typeOf)return function printBigInt(val){return`${val}n`}(val);if("string"===typeOf)return escapeString?`"${val.replaceAll(/"|\\/g,"\\$&")}"`:`"${val}"`;if("function"===typeOf)return printFunction(val,printFunctionName);if("symbol"===typeOf)return printSymbol(val);let toStringed=toString.call(val);return"[object WeakMap]"===toStringed?"WeakMap {}":"[object WeakSet]"===toStringed?"WeakSet {}":"[object Function]"===toStringed||"[object GeneratorFunction]"===toStringed?printFunction(val,printFunctionName):"[object Symbol]"===toStringed?printSymbol(val):"[object Date]"===toStringed?Number.isNaN(+val)?"Date { NaN }":toISOString.call(val):"[object Error]"===toStringed?printError(val):"[object RegExp]"===toStringed?escapeRegex?regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):regExpToString.call(val):val instanceof Error?printError(val):null}function printComplexValue(val,config,indentation,depth,refs,hasCalledToJSON){if(refs.includes(val))return"[Circular]";(refs=[...refs]).push(val);let hitMaxDepth=++depth>config.maxDepth,min=config.min;if(config.callToJSON&&!hitMaxDepth&&val.toJSON&&"function"==typeof val.toJSON&&!hasCalledToJSON)return printer(val.toJSON(),config,indentation,depth,refs,!0);let toStringed=toString.call(val);return"[object Arguments]"===toStringed?hitMaxDepth?"[Arguments]":`${min?"":"Arguments "}[${printListItems(val,config,indentation,depth,refs,printer)}]`:function isToStringedArrayType(toStringed){return"[object Array]"===toStringed||"[object ArrayBuffer]"===toStringed||"[object DataView]"===toStringed||"[object Float32Array]"===toStringed||"[object Float64Array]"===toStringed||"[object Int8Array]"===toStringed||"[object Int16Array]"===toStringed||"[object Int32Array]"===toStringed||"[object Uint8Array]"===toStringed||"[object Uint8ClampedArray]"===toStringed||"[object Uint16Array]"===toStringed||"[object Uint32Array]"===toStringed}(toStringed)?hitMaxDepth?`[${val.constructor.name}]`:`${min||!config.printBasicPrototype&&"Array"===val.constructor.name?"":`${val.constructor.name} `}[${printListItems(val,config,indentation,depth,refs,printer)}]`:"[object Map]"===toStringed?hitMaxDepth?"[Map]":`Map {${printIteratorEntries(val.entries(),config,indentation,depth,refs,printer," => ")}}`:"[object Set]"===toStringed?hitMaxDepth?"[Set]":`Set {${printIteratorValues(val.values(),config,indentation,depth,refs,printer)}}`:hitMaxDepth||function isWindow(val){return typeof window<"u"&&val===window}(val)?`[${getConstructorName(val)}]`:`${min||!config.printBasicPrototype&&"Object"===getConstructorName(val)?"":`${getConstructorName(val)} `}{${printObjectProperties(val,config,indentation,depth,refs,printer)}}`}function printPlugin(plugin2,val,config,indentation,depth,refs){let printed;try{printed=function isNewPlugin(plugin2){return null!=plugin2.serialize}(plugin2)?plugin2.serialize(val,config,indentation,depth,refs,printer):plugin2.print(val,(valChild=>printer(valChild,config,indentation,depth,refs)),(str=>{let indentationNext=indentation+config.indent;return indentationNext+str.replaceAll(NEWLINE_REGEXP,`\n${indentationNext}`)}),{edgeSpacing:config.spacingOuter,min:config.min,spacing:config.spacingInner},config.colors)}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}if("string"!=typeof printed)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);return printed}function findPlugin(plugins2,val){for(let plugin2 of plugins2)try{if(plugin2.test(val))return plugin2}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}return null}function printer(val,config,indentation,depth,refs,hasCalledToJSON){let plugin2=findPlugin(config.plugins,val);if(null!==plugin2)return printPlugin(plugin2,val,config,indentation,depth,refs);let basicResult=printBasicValue(val,config.printFunctionName,config.escapeRegex,config.escapeString);return null!==basicResult?basicResult:printComplexValue(val,config,indentation,depth,refs,hasCalledToJSON)}var DEFAULT_THEME={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},DEFAULT_THEME_KEYS=Object.keys(DEFAULT_THEME),DEFAULT_OPTIONS={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:DEFAULT_THEME};function getPrintFunctionName(options){return options?.printFunctionName??DEFAULT_OPTIONS.printFunctionName}function getEscapeRegex(options){return options?.escapeRegex??DEFAULT_OPTIONS.escapeRegex}function getEscapeString(options){return options?.escapeString??DEFAULT_OPTIONS.escapeString}function getConfig(options){return{callToJSON:options?.callToJSON??DEFAULT_OPTIONS.callToJSON,colors:options?.highlight?DEFAULT_THEME_KEYS.reduce(((colors,key)=>{let value=DEFAULT_THEME[key],color=value&&f2[value];if(!color||"string"!=typeof color.close||"string"!=typeof color.open)throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);return colors[key]=color,colors}),Object.create(null)):DEFAULT_THEME_KEYS.reduce(((colors,key)=>(colors[key]={close:"",open:""},colors)),Object.create(null)),compareKeys:"function"==typeof options?.compareKeys||null===options?.compareKeys?options.compareKeys:DEFAULT_OPTIONS.compareKeys,escapeRegex:getEscapeRegex(options),escapeString:getEscapeString(options),indent:options?.min?"":(indent=options?.indent??DEFAULT_OPTIONS.indent,Array.from({length:indent+1}).join(" ")),maxDepth:options?.maxDepth??DEFAULT_OPTIONS.maxDepth,maxWidth:options?.maxWidth??DEFAULT_OPTIONS.maxWidth,min:options?.min??DEFAULT_OPTIONS.min,plugins:options?.plugins??DEFAULT_OPTIONS.plugins,printBasicPrototype:options?.printBasicPrototype??!0,printFunctionName:getPrintFunctionName(options),spacingInner:options?.min?" ":"\n",spacingOuter:options?.min?"":"\n"};var indent}function format(val,options){if(options&&(function validateOptions(options){for(let key of Object.keys(options))if(!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS,key))throw new Error(`pretty-format: Unknown option "${key}".`);if(options.min&&void 0!==options.indent&&0!==options.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}(options),options.plugins)){let plugin2=findPlugin(options.plugins,val);if(null!==plugin2)return printPlugin(plugin2,val,getConfig(options),"",0,[])}let basicResult=printBasicValue(val,getPrintFunctionName(options),getEscapeRegex(options),getEscapeString(options));return null!==basicResult?basicResult:printComplexValue(val,getConfig(options),"",0,[])}var plugins={AsymmetricMatcher:plugin$5,DOMCollection:plugin$4,DOMElement:plugin$3,Immutable:plugin$2,ReactElement:plugin$1,ReactTestComponent:plugin},ansiColors={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator="…";function colorise(value,styleType){let color=ansiColors[styles[styleType]]||ansiColors[styleType]||"";return color?`[${color[0]}m${String(value)}[${color[1]}m`:String(value)}function truncate(string,length,tail=truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&function isHighSurrogate(char){return char>="\ud800"&&char<="\udbff"}(string[end-1])&&(end-=1),`${string.slice(0,end)}${tail}`}return string}function inspectList(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(0===size)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function inspectProperty([key,value],options){return options.truncate-=2,"string"==typeof key?key=function quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(key):"number"!=typeof key&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,`${key}: ${value=options.inspect(value,options)}`}function inspectTypedArray(array,options){let name=(array=>"function"==typeof Buffer&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name)(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i[key,array[key]])),options,inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,`${key} => ${value=options.inspect(value,options)}`}var isNaN=Number.isNaN||(i=>i!=i);function inspectNumber(number,options){return isNaN(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):0===number?options.stylize(1/number==1/0?"+0":"-0","number"):options.stylize(truncate(String(number),options.truncate),"number")}function inspectBigInt(number,options){let nums=truncate(number.toString(),options.truncate-1);return nums!==truncator&&(nums+="n"),options.stylize(nums,"bigint")}var stringEscapeChars=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex=16,unicodeLength=4;function escape(char){return escapeCharacters[char]||`\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`}function inspectString(string,options){return stringEscapeChars.test(string)&&(string=string.replace(stringEscapeChars,escape)),options.stylize(`'${truncate(string,options.truncate-2)}'`,"string")}function inspectSymbol(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}var getPromiseValue=()=>"Promise{…}";try{let{getPromiseDetails:getPromiseDetails,kPending:kPending,kRejected:kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=(value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`})}catch{}var promise_default=getPromiseValue;function inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(0===properties.length&&0===symbols.length)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return"[Circular]";options.seen.push(object);let propertyContents=inspectList(properties.map((key=>[key,object[key]])),options,inspectProperty),symbolContents=inspectList(symbols.map((key=>[key,object[key]])),options,inspectProperty);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}var toStringTag=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;var errorKeys=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function inspectHTMLCollection(collection,options){return inspectList(collection,options,inspectHTML,"\n")}function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(``,"special");options.truncate-=2*name.length+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList(properties.map((key=>[key,element.getAttribute(key)])),options,inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate2=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate2&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}var chaiInspect="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect=!1;try{let nodeUtil=__require("util");nodeInspect=!!nodeUtil.inspect&&nodeUtil.inspect.custom}catch{nodeInspect=!1}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:function inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map((key=>[key,array[key]])),options,inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`},Date:function inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(null===stringRepresentation)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate(split[1],options.truncate-date.length-1)}`,"date")},Map:function inspectMap(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList(function mapToEntries(map){let entries=[];return map.forEach(((value,key)=>{entries.push([key,value])})),entries}(map),options,inspectMapEntry)} }`)},Set:function inspectSet(set,options){return 0===set.size?"Set{}":(options.truncate-=7,`Set{ ${inspectList(function arrayFromSet(set){let values=[];return set.forEach((value=>{values.push(value)})),values}(set),options)} }`)},RegExp:function inspectRegExp(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate(source,sourceLength)}/${flags}`,"regexp")},Promise:promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{…}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{…}","special"),Arguments:function inspectArguments(args,options){return 0===args.length?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList(args,options)} ]`)},Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter((key=>-1===errorKeys.indexOf(key))),name=error.name;options.truncate-=name.length;let message="";"string"==typeof error.message?message=truncate(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5;let propertyContents=inspectList(properties.map((key=>[key,error[key]])),options,inspectProperty);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`},HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=(value,options,type)=>chaiInspect in value&&"function"==typeof value[chaiInspect]?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&"function"==typeof value[nodeInspect]?value[nodeInspect](options.depth,options):"inspect"in value&&"function"==typeof value.inspect?value.inspect(options.depth,options):"constructor"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type]?stringTagMap[type](value,options):"",toString2=Object.prototype.toString;function inspect(value,opts={}){let options=function normaliseOptions({showHidden:showHidden=!1,depth:depth=2,colors:colors=!1,customInspect:customInspect=!0,showProxy:showProxy=!1,maxArrayLength:maxArrayLength=1/0,breakLength:breakLength=1/0,seen:seen=[],truncate:truncate2=1/0,stylize:stylize=String}={},inspect3){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate2),seen:seen,inspect:inspect3,stylize:stylize};return options.colors&&(options.stylize=colorise),options}(opts,inspect),{customInspect:customInspect}=options,type=null===value?"null":typeof value;if("object"===type&&(type=toString2.call(value).slice(8,-1)),type in baseTypesMap)return baseTypesMap[type](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type);if(output)return"string"==typeof output?output:inspect(output,options)}let proto=!!value&&Object.getPrototypeOf(value);return proto===Object.prototype||null===proto?inspectObject(value,options):value&&"function"==typeof HTMLElement&&value instanceof HTMLElement?inspectHTML(value,options):"constructor"in value?value.constructor!==Object?function inspectClass(value,options){let name="";return toStringTag&&toStringTag in value&&(name=value[toStringTag]),name=name||value.constructor.name,(!name||"_class"===name)&&(name=""),options.truncate-=name.length,`${name}${inspectObject(value,options)}`}(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type)}var{AsymmetricMatcher:AsymmetricMatcher,DOMCollection:DOMCollection,DOMElement:DOMElement,Immutable:Immutable,ReactElement:ReactElement,ReactTestComponent:ReactTestComponent}=plugins,PLUGINS=[ReactTestComponent,ReactElement,DOMElement,DOMCollection,Immutable,AsymmetricMatcher];function stringify(object,maxDepth=10,{maxLength:maxLength,...options}={}){let result,MAX_LENGTH=maxLength??1e4;try{result=format(object,{maxDepth:maxDepth,escapeString:!1,plugins:PLUGINS,...options})}catch{result=format(object,{callToJSON:!1,maxDepth:maxDepth,escapeString:!1,plugins:PLUGINS,...options})}return result.length>=MAX_LENGTH&&maxDepth>1?stringify(object,Math.floor(maxDepth/2)):result}var formatRegExp=/%[sdjifoOc%]/g;function inspect2(obj,options={}){return 0===options.truncate&&(options.truncate=Number.POSITIVE_INFINITY),inspect(obj,options)}function getType2(value){return Object.prototype.toString.apply(value).slice(8,-1)}function getOwnProperties(obj){let ownProps=new Set;return function isFinalObj(obj){return obj===Object.prototype||obj===Function.prototype||obj===RegExp.prototype}(obj)?[]:(function collectOwnProperties(obj,collector){let collect="function"==typeof collector?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect)}(obj,ownProps),Array.from(ownProps))}var defaultCloneOptions={forceWritable:!1};function deepClone(val,options=defaultCloneOptions){return clone(val,new WeakMap,options)}function clone(val,seen,options=defaultCloneOptions){let k,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){for(out=Array(k=val.length),seen.set(val,out);k--;)out[k]=clone(val[k],seen,options);return out}if("[object Object]"===Object.prototype.toString.call(val)){out=Object.create(Object.getPrototypeOf(val)),seen.set(val,out);let props=getOwnProperties(val);for(let k2 of props){let descriptor=Object.getOwnPropertyDescriptor(val,k2);if(!descriptor)continue;let cloned=clone(val[k2],seen,options);options.forceWritable?Object.defineProperty(out,k2,{enumerable:descriptor.enumerable,configurable:!0,writable:!0,value:cloned}):"get"in descriptor?Object.defineProperty(out,k2,{...descriptor,get(){return cloned}}):Object.defineProperty(out,k2,{...descriptor,value:cloned})}return out}return val}function getType3(value){if(void 0===value)return"undefined";if(null===value)return"null";if(Array.isArray(value))return"array";if("boolean"==typeof value)return"boolean";if("function"==typeof value)return"function";if("number"==typeof value)return"number";if("string"==typeof value)return"string";if("bigint"==typeof value)return"bigint";if("object"==typeof value){if(null!=value){if(value.constructor===RegExp)return"regexp";if(value.constructor===Map)return"map";if(value.constructor===Set)return"set";if(value.constructor===Date)return"date"}return"object"}if("symbol"==typeof value)return"symbol";throw new Error(`value of unknown type: ${value}`)}var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0,Diff=class{0;1;constructor(op,text){this[0]=op,this[1]=text}},diff_commonPrefix=function(text1,text2){if(!text1||!text2||text1.charAt(0)!==text2.charAt(0))return 0;let pointermin=0,pointermax=Math.min(text1.length,text2.length),pointermid=pointermax,pointerstart=0;for(;pointermintext2_length?text1=text1.substring(text1_length-text2_length):text1_length0?equalities[equalitiesLength-1]:-1,length_insertions1=0,length_deletions1=0,length_insertions2=0,length_deletions2=0,lastEquality=null,changes=!0)),pointer++;for(changes&&diff_cleanupMerge(diffs),function diff_cleanupSemanticLossless(diffs){function diff_cleanupSemanticScore_(one,two){if(!one||!two)return 6;let char1=one.charAt(one.length-1),char2=two.charAt(0),nonAlphaNumeric1=char1.match(nonAlphaNumericRegex_),nonAlphaNumeric2=char2.match(nonAlphaNumericRegex_),whitespace1=nonAlphaNumeric1&&char1.match(whitespaceRegex_),whitespace2=nonAlphaNumeric2&&char2.match(whitespaceRegex_),lineBreak1=whitespace1&&char1.match(linebreakRegex_),lineBreak2=whitespace2&&char2.match(linebreakRegex_),blankLine1=lineBreak1&&one.match(blanklineEndRegex_),blankLine2=lineBreak2&&two.match(blanklineStartRegex_);return blankLine1||blankLine2?5:lineBreak1||lineBreak2?4:nonAlphaNumeric1&&!whitespace1&&whitespace2?3:whitespace1||whitespace2?2:nonAlphaNumeric1||nonAlphaNumeric2?1:0}let pointer=1;for(;pointer=bestScore&&(bestScore=score,bestEquality1=equality1,bestEdit=edit,bestEquality2=equality2)}diffs[pointer-1][1]!==bestEquality1&&(bestEquality1?diffs[pointer-1][1]=bestEquality1:(diffs.splice(pointer-1,1),pointer--),diffs[pointer][1]=bestEdit,bestEquality2?diffs[pointer+1][1]=bestEquality2:(diffs.splice(pointer+1,1),pointer--))}pointer++}}(diffs),pointer=1;pointer=overlap_length2?(overlap_length1>=deletion.length/2||overlap_length1>=insertion.length/2)&&(diffs.splice(pointer,0,new Diff(DIFF_EQUAL,insertion.substring(0,overlap_length1))),diffs[pointer-1][1]=deletion.substring(0,deletion.length-overlap_length1),diffs[pointer+1][1]=insertion.substring(overlap_length1),pointer++):(overlap_length2>=deletion.length/2||overlap_length2>=insertion.length/2)&&(diffs.splice(pointer,0,new Diff(DIFF_EQUAL,deletion.substring(0,overlap_length2))),diffs[pointer-1][0]=DIFF_INSERT,diffs[pointer-1][1]=insertion.substring(0,insertion.length-overlap_length2),diffs[pointer+1][0]=DIFF_DELETE,diffs[pointer+1][1]=deletion.substring(overlap_length2),pointer++),pointer++}pointer++}},nonAlphaNumericRegex_=/[^a-z0-9]/i,whitespaceRegex_=/\s/,linebreakRegex_=/[\r\n]/,blanklineEndRegex_=/\n\r?\n$/,blanklineStartRegex_=/^\r?\n\r?\n/;function diff_cleanupMerge(diffs){diffs.push(new Diff(DIFF_EQUAL,""));let commonlength,pointer=0,count_delete=0,count_insert=0,text_delete="",text_insert="";for(;pointer1?(0!==count_delete&&0!==count_insert&&(commonlength=diff_commonPrefix(text_insert,text_delete),0!==commonlength&&(pointer-count_delete-count_insert>0&&diffs[pointer-count_delete-count_insert-1][0]===DIFF_EQUAL?diffs[pointer-count_delete-count_insert-1][1]+=text_insert.substring(0,commonlength):(diffs.splice(0,0,new Diff(DIFF_EQUAL,text_insert.substring(0,commonlength))),pointer++),text_insert=text_insert.substring(commonlength),text_delete=text_delete.substring(commonlength)),commonlength=diff_commonSuffix(text_insert,text_delete),0!==commonlength&&(diffs[pointer][1]=text_insert.substring(text_insert.length-commonlength)+diffs[pointer][1],text_insert=text_insert.substring(0,text_insert.length-commonlength),text_delete=text_delete.substring(0,text_delete.length-commonlength))),pointer-=count_delete+count_insert,diffs.splice(pointer,count_delete+count_insert),text_delete.length&&(diffs.splice(pointer,0,new Diff(DIFF_DELETE,text_delete)),pointer++),text_insert.length&&(diffs.splice(pointer,0,new Diff(DIFF_INSERT,text_insert)),pointer++),pointer++):0!==pointer&&diffs[pointer-1][0]===DIFF_EQUAL?(diffs[pointer-1][1]+=diffs[pointer][1],diffs.splice(pointer,1)):pointer++,count_insert=0,count_delete=0,text_delete="",text_insert=""}""===diffs[diffs.length-1][1]&&diffs.pop();let changes=!1;for(pointer=1;pointer{let nCommon=0;for(;aIndex{let nCommon=0;for(;aStart<=aIndex&&bStart<=bIndex&&isCommon(aIndex,bIndex);)aIndex-=1,bIndex-=1,nCommon+=1;return nCommon},extendPathsF=(d,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF)=>{let iF=0,kF=-d,aFirst=aIndexesF[iF],aIndexPrev1=aFirst;aIndexesF[iF]+=countCommonItemsF(aFirst+1,aEnd,bF+aFirst-kF+1,bEnd,isCommon);let nF=d{let iR=0,kR=d,aFirst=aIndexesR[iR],aIndexPrev1=aFirst;aIndexesR[iR]-=countCommonItemsR(aStart,aFirst-1,bStart,bR+aFirst-kR-1,isCommon);let nR=d{let bF=bStart-aStart,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapF=-baDeltaLength-(d-1),kMaxOverlapF=d-1-baDeltaLength,aIndexPrev1=NOT_YET_SET,nF=d{let bR=bEnd-aEnd,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapR=baDeltaLength-d,kMaxOverlapR=baDeltaLength+d,aIndexPrev1=NOT_YET_SET,nR=d{if(bEnd-bStart{foundSubsequence2(nCommon,aCommon,bCommon)},isCommon:(bIndex,aIndex)=>isCommon2(aIndex,bIndex)}}let tStart=aStart,tEnd=aEnd;aStart=bStart,aEnd=bEnd,bStart=tStart,bEnd=tEnd}let{foundSubsequence:foundSubsequence,isCommon:isCommon}=callbacks[transposed?1:0];((nChange,aStart,aEnd,bStart,bEnd,isCommon,aIndexesF,aIndexesR,division)=>{let bF=bStart-aStart,bR=bEnd-aEnd,aLength=aEnd-aStart,bLength=bEnd-bStart,baDeltaLength=bLength-aLength,iMaxF=aLength,iMaxR=aLength;if(aIndexesF[0]=aStart-1,aIndexesR[0]=aEnd,baDeltaLength%2==0){let dMin=(nChange||baDeltaLength)/2,dMax=(aLength+bLength)/2;for(let d=1;d<=dMax;d+=1)if(iMaxF=extendPathsF(d,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF),d{if("number"!=typeof arg)throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);if(!Number.isSafeInteger(arg))throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);if(arg<0)throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`)},validateCallback=(name,arg)=>{let type=typeof arg;if("function"!==type)throw new TypeError(`${pkg}: ${name} typeof ${type} is not a function`)};function printDiffLine(line,isFirstOrLast,color,indicator,trailingSpaceFormatter,emptyFirstOrLastLinePlaceholder){return 0!==line.length?color(`${indicator} ${function formatTrailingSpaces(line,trailingSpaceFormatter){return line.replace(/\s+$/,(match=>trailingSpaceFormatter(match)))}(line,trailingSpaceFormatter)}`):" "!==indicator?color(indicator):isFirstOrLast&&0!==emptyFirstOrLastLinePlaceholder.length?color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`):""}function printDeleteLine(line,isFirstOrLast,{aColor:aColor,aIndicator:aIndicator,changeLineTrailingSpaceColor:changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder:emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printInsertLine(line,isFirstOrLast,{bColor:bColor,bIndicator:bIndicator,changeLineTrailingSpaceColor:changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder:emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printCommonLine(line,isFirstOrLast,{commonColor:commonColor,commonIndicator:commonIndicator,commonLineTrailingSpaceColor:commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder:emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function createPatchMark(aStart,aEnd,bStart,bEnd,{patchColor:patchColor}){return patchColor(`@@ -${aStart+1},${aEnd-aStart} +${bStart+1},${bEnd-bStart} @@`)}var noColor=string=>string,DIFF_CONTEXT_DEFAULT=5,DIFF_TRUNCATE_THRESHOLD_DEFAULT=0;function normalizeDiffOptions(options={}){return{aAnnotation:"Expected",aColor:f2.green,aIndicator:"-",bAnnotation:"Received",bColor:f2.red,bIndicator:"+",changeColor:f2.inverse,changeLineTrailingSpaceColor:noColor,commonColor:f2.dim,commonIndicator:" ",commonLineTrailingSpaceColor:noColor,compareKeys:void 0,contextLines:DIFF_CONTEXT_DEFAULT,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:f2.yellow,truncateThreshold:DIFF_TRUNCATE_THRESHOLD_DEFAULT,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:noColor,...options,compareKeys:(compareKeys=options.compareKeys,compareKeys&&"function"==typeof compareKeys?compareKeys:void 0),contextLines:(contextLines=options.contextLines,"number"==typeof contextLines&&Number.isSafeInteger(contextLines)&&contextLines>=0?contextLines:DIFF_CONTEXT_DEFAULT)};var contextLines,compareKeys}function isEmptyString(lines){return 1===lines.length&&0===lines[0].length}function printDiffLines(diffs,truncated,options){return function printAnnotation({aAnnotation:aAnnotation,aColor:aColor,aIndicator:aIndicator,bAnnotation:bAnnotation,bColor:bColor,bIndicator:bIndicator,includeChangeCounts:includeChangeCounts,omitAnnotationLines:omitAnnotationLines},changeCounts){if(omitAnnotationLines)return"";let aRest="",bRest="";if(includeChangeCounts){let aCount=String(changeCounts.a),bCount=String(changeCounts.b),baAnnotationLengthDiff=bAnnotation.length-aAnnotation.length,aAnnotationPadding=" ".repeat(Math.max(0,baAnnotationLengthDiff)),bAnnotationPadding=" ".repeat(Math.max(0,-baAnnotationLengthDiff)),baCountLengthDiff=bCount.length-aCount.length;aRest=`${aAnnotationPadding} ${aIndicator} ${" ".repeat(Math.max(0,baCountLengthDiff))}${aCount}`,bRest=`${bAnnotationPadding} ${bIndicator} ${" ".repeat(Math.max(0,-baCountLengthDiff))}${bCount}`}let b=`${bIndicator} ${bAnnotation}${bRest}`;return`${aColor(`${aIndicator} ${aAnnotation}${aRest}`)}\n${bColor(b)}\n\n`}(options,function countChanges(diffs){let a2=0,b=0;return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:a2+=1;break;case DIFF_INSERT:b+=1}})),{a:a2,b:b}}(diffs))+(options.expand?function joinAlignedDiffsExpand(diffs,options){return diffs.map(((diff2,i,diffs2)=>{let line=diff2[1],isFirstOrLast=0===i||i===diffs2.length-1;switch(diff2[0]){case DIFF_DELETE:return printDeleteLine(line,isFirstOrLast,options);case DIFF_INSERT:return printInsertLine(line,isFirstOrLast,options);default:return printCommonLine(line,isFirstOrLast,options)}})).join("\n")}(diffs,options):function joinAlignedDiffsNoExpand(diffs,options){let iLength=diffs.length,nContextLines=options.contextLines,nContextLines2=nContextLines+nContextLines,jLength=iLength,hasExcessAtStartOrEnd=!1,nExcessesBetweenChanges=0,i=0;for(;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart)i>nContextLines&&(jLength-=i-nContextLines,hasExcessAtStartOrEnd=!0);else if(i===iLength){let n=i-iStart;n>nContextLines&&(jLength-=n-nContextLines,hasExcessAtStartOrEnd=!0)}else{let n=i-iStart;n>nContextLines2&&(jLength-=n-nContextLines2,nExcessesBetweenChanges+=1)}for(;i!==iLength&&diffs[i][0]!==DIFF_EQUAL;)i+=1}let hasPatch=0!==nExcessesBetweenChanges||hasExcessAtStartOrEnd;0!==nExcessesBetweenChanges?jLength+=nExcessesBetweenChanges+1:hasExcessAtStartOrEnd&&(jLength+=1);let jLast=jLength-1,lines=[],jPatchMark=0;hasPatch&&lines.push("");let aStart=0,bStart=0,aEnd=0,bEnd=0,pushCommonLine=line=>{let j=lines.length;lines.push(printCommonLine(line,0===j||j===jLast,options)),aEnd+=1,bEnd+=1},pushDeleteLine=line=>{let j=lines.length;lines.push(printDeleteLine(line,0===j||j===jLast,options)),aEnd+=1},pushInsertLine=line=>{let j=lines.length;lines.push(printInsertLine(line,0===j||j===jLast,options)),bEnd+=1};for(i=0;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart){i>nContextLines&&(iStart=i-nContextLines,aStart=iStart,bStart=iStart,aEnd=aStart,bEnd=bStart);for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else if(i===iLength){let iEnd=i-iStart>nContextLines?iStart+nContextLines:i;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else{let nCommon=i-iStart;if(nCommon>nContextLines2){let iEnd=iStart+nContextLines;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1]);lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options),jPatchMark=lines.length,lines.push("");let nOmit=nCommon-nContextLines2;aStart=aEnd+nOmit,bStart=bEnd+nOmit,aEnd=aStart,bEnd=bStart;for(let iCommon=i-nContextLines;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}for(;i!==iLength&&diffs[i][0]===DIFF_DELETE;)pushDeleteLine(diffs[i][1]),i+=1;for(;i!==iLength&&diffs[i][0]===DIFF_INSERT;)pushInsertLine(diffs[i][1]),i+=1}return hasPatch&&(lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options)),lines.join("\n")}(diffs,options))+(truncated?options.truncateAnnotationColor(`\n${options.truncateAnnotation}`):"")}function diffLinesUnified(aLines,bLines,options){let normalizedOptions=normalizeDiffOptions(options),[diffs,truncated]=diffLinesRaw(isEmptyString(aLines)?[]:aLines,isEmptyString(bLines)?[]:bLines,normalizedOptions);return printDiffLines(diffs,truncated,normalizedOptions)}function diffLinesRaw(aLines,bLines,options){let truncate2=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=truncate2?Math.min(aLines.length,truncateThreshold):aLines.length,bLength=truncate2?Math.min(bLines.length,truncateThreshold):bLines.length,truncated=aLength!==aLines.length||bLength!==bLines.length,diffs=[],aIndex=0,bIndex=0;for(_default(aLength,bLength,((aIndex2,bIndex2)=>aLines[aIndex2]===bLines[bIndex2]),((nCommon,aCommon,bCommon)=>{for(;aIndex!==aCommon;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bCommon;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));for(;0!==nCommon;nCommon-=1,aIndex+=1,bIndex+=1)diffs.push(new Diff(DIFF_EQUAL,bLines[bIndex]))}));aIndex!==aLength;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bLength;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));return[diffs,truncated]}function getNewLineSymbol(string){return string.includes("\r\n")?"\r\n":"\n"}var ChangeBuffer=class{op;line;lines;changeColor;constructor(op,changeColor){this.op=op,this.line=[],this.lines=[],this.changeColor=changeColor}pushSubstring(substring){this.pushDiff(new Diff(this.op,substring))}pushLine(){this.lines.push(1!==this.line.length?new Diff(this.op,function concatenateRelevantDiffs(op,diffs,changeColor){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op&&0!==diff2[1].length?changeColor(diff2[1]):"")),"")}(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Diff(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(diff2){this.line.push(diff2)}align(diff2){let string=diff2[1];if(string.includes("\n")){let substrings=string.split("\n"),iLast=substrings.length-1;substrings.forEach(((substring,i)=>{i{if(0===i){let subdiff=new Diff(op,substring);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(subdiff)):(this.pushDiffChangeLines(subdiff),this.flushChangeLines())}else idiff2[0]===DIFF_EQUAL&&(i!==iLast||"\n"!==diff2[1])))}return diffs.some((diff2=>diff2[0]===DIFF_EQUAL))}(diffs,isMultiline)){let optionsNormalized=normalizeDiffOptions(options),lines=function getAlignedDiffs(diffs,changeColor){let deleteBuffer=new ChangeBuffer(DIFF_DELETE,changeColor),insertBuffer=new ChangeBuffer(DIFF_INSERT,changeColor),commonBuffer=new CommonBuffer(deleteBuffer,insertBuffer);return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:deleteBuffer.align(diff2);break;case DIFF_INSERT:insertBuffer.align(diff2);break;default:commonBuffer.align(diff2)}})),commonBuffer.getLines()}(diffs,optionsNormalized.changeColor);return printDiffLines(lines,truncated,optionsNormalized)}}return diffLinesUnified(a2.split("\n"),b.split("\n"),options)}function diffStringsRaw(a2,b,cleanup,options){let[diffs,truncated]=function diffStrings(a2,b,options){let truncate2=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=a2.length,bLength=b.length;if(truncate2){let aMultipleLines=a2.includes("\n"),bMultipleLines=b.includes("\n"),aNewLineSymbol=getNewLineSymbol(a2),bNewLineSymbol=getNewLineSymbol(b),_a=aMultipleLines?`${a2.split(aNewLineSymbol,truncateThreshold).join(aNewLineSymbol)}\n`:a2,_b=bMultipleLines?`${b.split(bNewLineSymbol,truncateThreshold).join(bNewLineSymbol)}\n`:b;aLength=_a.length,bLength=_b.length}let truncated=aLength!==a2.length||bLength!==b.length,aIndex=0,bIndex=0,diffs=[];return _default(aLength,bLength,((aIndex2,bIndex2)=>a2[aIndex2]===b[bIndex2]),((nCommon,aCommon,bCommon)=>{aIndex!==aCommon&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex,aCommon))),bIndex!==bCommon&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex,bCommon))),aIndex=aCommon+nCommon,bIndex=bCommon+nCommon,diffs.push(new Diff(DIFF_EQUAL,b.slice(bCommon,bIndex)))})),aIndex!==aLength&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex))),bIndex!==bLength&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex))),[diffs,truncated]}(a2,b,options);return cleanup&&diff_cleanupSemantic(diffs),[diffs,truncated]}function getCommonMessage(message,options){let{commonColor:commonColor}=normalizeDiffOptions(options);return commonColor(message)}var{AsymmetricMatcher:AsymmetricMatcher2,DOMCollection:DOMCollection2,DOMElement:DOMElement2,Immutable:Immutable2,ReactElement:ReactElement2,ReactTestComponent:ReactTestComponent2}=plugins,PLUGINS2=[ReactTestComponent2,ReactElement2,DOMElement2,DOMCollection2,Immutable2,AsymmetricMatcher2],FORMAT_OPTIONS={plugins:PLUGINS2},FALLBACK_FORMAT_OPTIONS={callToJSON:!1,maxDepth:10,plugins:PLUGINS2};function diff(a2,b,options){if(Object.is(a2,b))return"";let aType=getType3(a2),expectedType=aType,omitDifference=!1;if("object"===aType&&"function"==typeof a2.asymmetricMatch){if(a2.$$typeof!==Symbol.for("jest.asymmetricMatcher")||"function"!=typeof a2.getExpectedType)return;expectedType=a2.getExpectedType(),omitDifference="string"===expectedType}if(expectedType!==getType3(b)){let{aAnnotation:aAnnotation,aColor:aColor,aIndicator:aIndicator,bAnnotation:bAnnotation,bColor:bColor,bIndicator:bIndicator}=normalizeDiffOptions(options),formatOptions=getFormatOptions(FALLBACK_FORMAT_OPTIONS,options),aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions);return`${`${aColor(`${aIndicator} ${aAnnotation}:`)} \n${aDisplay}`}\n\n${`${bColor(`${bIndicator} ${bAnnotation}:`)} \n${bDisplay}`}`}if(!omitDifference)switch(aType){case"string":return diffLinesUnified(a2.split("\n"),b.split("\n"),options);case"boolean":case"number":return function comparePrimitive(a2,b,options){let aFormat=format(a2,FORMAT_OPTIONS),bFormat=format(b,FORMAT_OPTIONS);return aFormat===bFormat?"":diffLinesUnified(aFormat.split("\n"),bFormat.split("\n"),options)}(a2,b,options);case"map":return compareObjects(sortMap(a2),sortMap(b),options);case"set":return compareObjects(sortSet(a2),sortSet(b),options);default:return compareObjects(a2,b,options)}}function sortMap(map){return new Map(Array.from(map.entries()).sort())}function sortSet(set){return new Set(Array.from(set.values()).sort())}function compareObjects(a2,b,options){let difference,hasThrown=!1;try{difference=getObjectsDifference(a2,b,getFormatOptions(FORMAT_OPTIONS,options),options)}catch{hasThrown=!0}let noDiffMessage=getCommonMessage(NO_DIFF_MESSAGE,options);if(void 0===difference||difference===noDiffMessage){difference=getObjectsDifference(a2,b,getFormatOptions(FALLBACK_FORMAT_OPTIONS,options),options),difference!==noDiffMessage&&!hasThrown&&(difference=`${getCommonMessage(SIMILAR_MESSAGE,options)}\n\n${difference}`)}return difference}function getFormatOptions(formatOptions,options){let{compareKeys:compareKeys}=normalizeDiffOptions(options);return{...formatOptions,compareKeys:compareKeys}}function getObjectsDifference(a2,b,formatOptions,options){let formatOptionsZeroIndent={...formatOptions,indent:0},aCompare=format(a2,formatOptionsZeroIndent),bCompare=format(b,formatOptionsZeroIndent);if(aCompare===bCompare)return getCommonMessage(NO_DIFF_MESSAGE,options);{let aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions);return function diffLinesUnified2(aLinesDisplay,bLinesDisplay,aLinesCompare,bLinesCompare,options){if(isEmptyString(aLinesDisplay)&&isEmptyString(aLinesCompare)&&(aLinesDisplay=[],aLinesCompare=[]),isEmptyString(bLinesDisplay)&&isEmptyString(bLinesCompare)&&(bLinesDisplay=[],bLinesCompare=[]),aLinesDisplay.length!==aLinesCompare.length||bLinesDisplay.length!==bLinesCompare.length)return diffLinesUnified(aLinesDisplay,bLinesDisplay,options);let[diffs,truncated]=diffLinesRaw(aLinesCompare,bLinesCompare,options),aIndex=0,bIndex=0;return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:diff2[1]=aLinesDisplay[aIndex],aIndex+=1;break;case DIFF_INSERT:diff2[1]=bLinesDisplay[bIndex],bIndex+=1;break;default:diff2[1]=bLinesDisplay[bIndex],aIndex+=1,bIndex+=1}})),printDiffLines(diffs,truncated,normalizeDiffOptions(options))}(aDisplay.split("\n"),bDisplay.split("\n"),aCompare.split("\n"),bCompare.split("\n"),options)}}var MAX_DIFF_STRING_LENGTH=2e4;function isAsymmetricMatcher(data){return"Object"===getType2(data)&&"function"==typeof data.asymmetricMatch}function isReplaceable(obj1,obj2){let obj1Type=getType2(obj1);return obj1Type===getType2(obj2)&&("Object"===obj1Type||"Array"===obj1Type)}function printDiffOrStringify(expected,received,options){let{aAnnotation:aAnnotation,bAnnotation:bAnnotation}=normalizeDiffOptions(options);if("string"==typeof expected&&"string"==typeof received&&expected.length>0&&received.length>0&&expected.length<=MAX_DIFF_STRING_LENGTH&&received.length<=MAX_DIFF_STRING_LENGTH&&expected!==received){if(expected.includes("\n")||received.includes("\n"))return diffStringsUnified(received,expected,options);let[diffs]=diffStringsRaw(received,expected,!0),hasCommonDiff2=diffs.some((diff2=>diff2[0]===DIFF_EQUAL)),printLabel=function getLabelPrinter(...strings){let maxLength=strings.reduce(((max,string)=>string.length>max?string.length:max),0);return string=>`${string}: ${" ".repeat(maxLength-string.length)}`}(aAnnotation,bAnnotation);return`${printLabel(aAnnotation)+function printExpected(value){return f2.green(replaceTrailingSpaces(stringify(value)))}(getCommonAndChangedSubstrings(diffs,DIFF_DELETE,hasCommonDiff2))}\n${printLabel(bAnnotation)+function printReceived(object){return f2.red(replaceTrailingSpaces(stringify(object)))}(getCommonAndChangedSubstrings(diffs,DIFF_INSERT,hasCommonDiff2))}`}let clonedExpected=deepClone(expected,{forceWritable:!0}),clonedReceived=deepClone(received,{forceWritable:!0}),{replacedExpected:replacedExpected,replacedActual:replacedActual}=replaceAsymmetricMatcher(clonedExpected,clonedReceived);return diff(replacedExpected,replacedActual,options)}function replaceAsymmetricMatcher(actual,expected,actualReplaced=new WeakSet,expectedReplaced=new WeakSet){return isReplaceable(actual,expected)?(actualReplaced.has(actual)||expectedReplaced.has(expected)||(actualReplaced.add(actual),expectedReplaced.add(expected),getOwnProperties(expected).forEach((key=>{let expectedValue=expected[key],actualValue=actual[key];if(isAsymmetricMatcher(expectedValue))expectedValue.asymmetricMatch(actualValue)&&(actual[key]=expectedValue);else if(isAsymmetricMatcher(actualValue))actualValue.asymmetricMatch(expectedValue)&&(expected[key]=actualValue);else if(isReplaceable(actualValue,expectedValue)){let replaced=replaceAsymmetricMatcher(actualValue,expectedValue,actualReplaced,expectedReplaced);actual[key]=replaced.replacedActual,expected[key]=replaced.replacedExpected}}))),{replacedActual:actual,replacedExpected:expected}):{replacedActual:actual,replacedExpected:expected}}var SPACE_SYMBOL="·";function replaceTrailingSpaces(text){return text.replace(/\s+$/gm,(spaces=>SPACE_SYMBOL.repeat(spaces.length)))}function getCommonAndChangedSubstrings(diffs,op,hasCommonDiff2){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op?hasCommonDiff2?f2.inverse(diff2[1]):diff2[1]:"")),"")}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@",IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";var OBJECT_PROTO=Object.getPrototypeOf({});function getUnserializableMessage(err){return err instanceof Error?`: ${err.message}`:"string"==typeof err?`: ${err}`:""}function serializeValue(val,seen=new WeakMap){if(!val||"string"==typeof val)return val;if("function"==typeof val)return`Function<${val.name||"anonymous"}>`;if("symbol"==typeof val)return val.toString();if("object"!=typeof val)return val;if(function isImmutable(v){return v&&(v[IS_COLLECTION_SYMBOL]||v[IS_RECORD_SYMBOL])}(val))return serializeValue(val.toJSON(),seen);if(val instanceof Promise||val.constructor&&"AsyncFunction"===val.constructor.prototype)return"Promise";if(typeof Element<"u"&&val instanceof Element)return val.tagName;if("function"==typeof val.asymmetricMatch)return`${val.toString()} ${function format2(...args){if("string"!=typeof args[0]){let objects=[];for(let i2=0;i2{if("%%"===x)return"%";if(i>=len)return x;switch(x){case"%s":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:"number"==typeof value&&0===value&&1/value<0?"-0":"object"==typeof value&&null!==value?inspect2(value,{depth:0,colors:!1}):String(value)}case"%d":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number(value).toString()}case"%i":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number.parseInt(String(value)).toString()}case"%f":return Number.parseFloat(String(args[i++])).toString();case"%o":return inspect2(args[i++],{showHidden:!0,showProxy:!0});case"%O":return inspect2(args[i++]);case"%c":return i++,"";case"%j":try{return JSON.stringify(args[i++])}catch(err){let m2=err.message;if(m2.includes("circular structure")||m2.includes("cyclic structures")||m2.includes("cyclic object"))return"[Circular]";throw err}default:return x}}));for(let x=args[i];i{try{clone2[i]=serializeValue(e,seen)}catch(err){clone2[i]=getUnserializableMessage(err)}})),clone2}{let clone2=Object.create(null);seen.set(val,clone2);let obj=val;for(;obj&&obj!==OBJECT_PROTO;)Object.getOwnPropertyNames(obj).forEach((key=>{if(!(key in clone2))try{clone2[key]=serializeValue(val[key],seen)}catch(err){delete clone2[key],clone2[key]=getUnserializableMessage(err)}})),obj=Object.getPrototypeOf(obj);return clone2}}function processError(_err,diffOptions,seen=new WeakSet){if(!_err||"object"!=typeof _err)return{message:String(_err)};let err=_err;err.stack&&(err.stackStr=String(err.stack)),err.name&&(err.nameStr=String(err.name)),(err.showDiff||void 0===err.showDiff&&void 0!==err.expected&&void 0!==err.actual)&&(err.diff=printDiffOrStringify(err.actual,err.expected,{...diffOptions,...err.diffOptions})),"string"!=typeof err.expected&&(err.expected=stringify(err.expected,10)),"string"!=typeof err.actual&&(err.actual=stringify(err.actual,10));try{"string"==typeof err.message&&(err.message=function normalizeErrorMessage(message){return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}(err.message))}catch{}try{!seen.has(err)&&"object"==typeof err.cause&&(seen.add(err),err.cause=processError(err.cause,diffOptions,seen))}catch{}try{return serializeValue(err)}catch(e){return serializeValue(new Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${err?.message}`))}}var CallStates2,CallStates=((CallStates2=CallStates||{}).DONE="done",CallStates2.ERROR="error",CallStates2.ACTIVE="active",CallStates2.WAITING="waiting",CallStates2),EVENTS_CALL="storybook/instrumenter/call",EVENTS_SYNC="storybook/instrumenter/sync",EVENTS_START="storybook/instrumenter/start",EVENTS_BACK="storybook/instrumenter/back",EVENTS_GOTO="storybook/instrumenter/goto",EVENTS_NEXT="storybook/instrumenter/next",EVENTS_END="storybook/instrumenter/end",controlsDisabled={start:!1,back:!1,goto:!1,next:!1,end:!1},alreadyCompletedException=new Error("This function ran after the play function completed. Did you forget to `await` it?"),isObject=o=>"[object Object]"===Object.prototype.toString.call(o),isInstrumentable=o=>{if(!isObject(o)&&!(o=>"[object Module]"===Object.prototype.toString.call(o))(o))return!1;if(void 0===o.constructor)return!0;let proto=o.constructor.prototype;return!!isObject(proto)},getInitialState=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),getRetainedState=(state,isDebugging=!1)=>{let calls=(isDebugging?state.shadowCalls:state.calls).filter((call=>call.retain));if(!calls.length)return;let callRefsByResult=new Map(Array.from(state.callRefsByResult.entries()).filter((([,ref])=>ref.retain)));return{cursor:calls.length,calls:calls,callRefsByResult:callRefsByResult}},Instrumenter=class{constructor(){this.initialized=!1,this.channel=storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_2__.addons.getChannel(),this.state=_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let resetState=({storyId:storyId,isPlaying:isPlaying=!0,isDebugging:isDebugging=!1})=>{let state=this.getState(storyId);this.setState(storyId,{...getInitialState(),...getRetainedState(state,isDebugging),shadowCalls:isDebugging?state.shadowCalls:[],chainedCallIds:isDebugging?state.chainedCallIds:new Set,playUntil:isDebugging?state.playUntil:void 0,isPlaying:isPlaying,isDebugging:isDebugging}),this.sync(storyId)};this.channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_1__.FORCE_REMOUNT,resetState),this.channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_1__.STORY_RENDER_PHASE_CHANGED,(({storyId:storyId,newPhase:newPhase})=>{let{isDebugging:isDebugging}=this.getState(storyId);this.setState(storyId,{renderPhase:newPhase}),"preparing"===newPhase&&isDebugging&&resetState({storyId:storyId}),"playing"===newPhase&&resetState({storyId:storyId,isDebugging:isDebugging}),"played"===newPhase&&this.setState(storyId,{isLocked:!1,isPlaying:!1,isDebugging:!1}),"errored"===newPhase&&this.setState(storyId,{isLocked:!1,isPlaying:!1})})),this.channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_1__.SET_CURRENT_STORY,(()=>{this.initialized?this.cleanup():this.initialized=!0}));let start=({storyId:storyId,playUntil:playUntil})=>{this.getState(storyId).isDebugging||this.setState(storyId,(({calls:calls})=>({calls:[],shadowCalls:calls.map((call=>({...call,status:"waiting"}))),isDebugging:!0})));let log=this.getLog(storyId);this.setState(storyId,(({shadowCalls:shadowCalls})=>{if(playUntil||!log.length)return{playUntil:playUntil};let firstRowIndex=shadowCalls.findIndex((call=>call.id===log[0].callId));return{playUntil:shadowCalls.slice(0,firstRowIndex).filter((call=>call.interceptable&&!call.ancestors.length)).slice(-1)[0]?.id}})),this.channel.emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_1__.FORCE_REMOUNT,{storyId:storyId,isDebugging:!0})},end=({storyId:storyId})=>{this.setState(storyId,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(storyId).resolvers).forEach((resolve=>resolve()))};this.channel.on(EVENTS_START,start),this.channel.on(EVENTS_BACK,(({storyId:storyId})=>{let log=this.getLog(storyId).filter((call=>!call.ancestors.length)),last=log.reduceRight(((res,item,index)=>res>=0||"waiting"===item.status?res:index),-1);start({storyId:storyId,playUntil:log[last-1]?.callId})})),this.channel.on(EVENTS_GOTO,(({storyId:storyId,callId:callId})=>{let{calls:calls,shadowCalls:shadowCalls,resolvers:resolvers}=this.getState(storyId),call=calls.find((({id:id})=>id===callId)),shadowCall=shadowCalls.find((({id:id})=>id===callId));if(!call&&shadowCall&&Object.values(resolvers).length>0){let nextId=this.getLog(storyId).find((c=>"waiting"===c.status))?.callId;shadowCall.id!==nextId&&this.setState(storyId,{playUntil:shadowCall.id}),Object.values(resolvers).forEach((resolve=>resolve()))}else start({storyId:storyId,playUntil:callId})})),this.channel.on(EVENTS_NEXT,(({storyId:storyId})=>{let{resolvers:resolvers}=this.getState(storyId);if(Object.values(resolvers).length>0)Object.values(resolvers).forEach((resolve=>resolve()));else{let nextId=this.getLog(storyId).find((c=>"waiting"===c.status))?.callId;nextId?start({storyId:storyId,playUntil:nextId}):end({storyId:storyId})}})),this.channel.on(EVENTS_END,end)}getState(storyId){return this.state[storyId]||getInitialState()}setState(storyId,update){let state=this.getState(storyId),patch="function"==typeof update?update(state):update;this.state={...this.state,[storyId]:{...state,...patch}},_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.parent&&(_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){this.state=Object.entries(this.state).reduce(((acc,[storyId,state])=>{let retainedState=getRetainedState(state);return retainedState&&(acc[storyId]=Object.assign(getInitialState(),retainedState)),acc}),{});let payload={controlStates:controlsDisabled,logItems:[]};this.channel.emit(EVENTS_SYNC,payload),_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.parent&&(_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(storyId){let{calls:calls,shadowCalls:shadowCalls}=this.getState(storyId),merged=[...shadowCalls];calls.forEach(((call,index)=>{merged[index]=call}));let seen=new Set;return merged.reduceRight(((acc,call)=>(call.args.forEach((arg=>{arg?.__callId__&&seen.add(arg.__callId__)})),call.path.forEach((node=>{node.__callId__&&seen.add(node.__callId__)})),(call.interceptable||call.exception)&&!seen.has(call.id)&&(acc.unshift({callId:call.id,status:call.status,ancestors:call.ancestors}),seen.add(call.id)),acc)),[])}instrument(obj,options,depth=0){if(!isInstrumentable(obj))return obj;let{mutate:mutate=!1,path:path=[]}=options,keys=options.getKeys?options.getKeys(obj,depth):Object.keys(obj);return depth+=1,keys.reduce(((acc,key)=>{let descriptor=function getPropertyDescriptor(obj,propName){let target=obj;for(;null!=target;){let descriptor=Object.getOwnPropertyDescriptor(target,propName);if(descriptor)return descriptor;target=Object.getPrototypeOf(target)}}(obj,key);if("function"==typeof descriptor?.get){let getter=()=>descriptor?.get?.bind(obj)?.();return Object.defineProperty(acc,key,{get:()=>this.instrument(getter(),{...options,path:path.concat(key)},depth)}),acc}let value=obj[key];return"function"!=typeof value?(acc[key]=this.instrument(value,{...options,path:path.concat(key)},depth),acc):"__originalFn__"in value&&"function"==typeof value.__originalFn__?(acc[key]=value,acc):(acc[key]=(...args)=>this.track(key,value,obj,args,options),acc[key].__originalFn__=value,Object.defineProperty(acc[key],"name",{value:key,writable:!1}),Object.keys(value).length>0&&Object.assign(acc[key],this.instrument({...value},{...options,path:path.concat(key)},depth)),acc)}),mutate?obj:(obj=>{try{return new obj.constructor}catch{return{}}})(obj))}track(method,fn,object,args,options){let storyId=args?.[0]?.__storyId__||_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:cursor,ancestors:ancestors}=this.getState(storyId);this.setState(storyId,{cursor:cursor+1});let id=`${ancestors.slice(-1)[0]||storyId} [${cursor}] ${method}`,{path:path=[],intercept:intercept=!1,retain:retain=!1}=options,interceptable="function"==typeof intercept?intercept(method,path):intercept,call={id:id,cursor:cursor,storyId:storyId,ancestors:ancestors,path:path,method:method,args:args,interceptable:interceptable,retain:retain},result=(interceptable&&!ancestors.length?this.intercept:this.invoke).call(this,fn,object,call,options);return this.instrument(result,{...options,mutate:!0,path:[{__callId__:call.id}]})}intercept(fn,object,call,options){let{chainedCallIds:chainedCallIds,isDebugging:isDebugging,playUntil:playUntil}=this.getState(call.storyId),isChainedUpon=chainedCallIds.has(call.id);return!isDebugging||isChainedUpon||playUntil?(playUntil===call.id&&this.setState(call.storyId,{playUntil:void 0}),this.invoke(fn,object,call,options)):new Promise((resolve=>{this.setState(call.storyId,(({resolvers:resolvers})=>({isLocked:!1,resolvers:{...resolvers,[call.id]:resolve}})))})).then((()=>(this.setState(call.storyId,(state=>{let{[call.id]:_,...resolvers}=state.resolvers;return{isLocked:!0,resolvers:resolvers}})),this.invoke(fn,object,call,options))))}invoke(fn,object,call,options){let{callRefsByResult:callRefsByResult,renderPhase:renderPhase}=this.getState(call.storyId),serializeValues=(value,depth,seen)=>{if(seen.includes(value))return"[Circular]";if(seen=[...seen,value],depth>25)return"...";if(callRefsByResult.has(value))return callRefsByResult.get(value);if(value instanceof Array)return value.map((it=>serializeValues(it,++depth,seen)));if(value instanceof Date)return{__date__:{value:value.toISOString()}};if(value instanceof Error){let{name:name,message:message,stack:stack}=value;return{__error__:{name:name,message:message,stack:stack}}}if(value instanceof RegExp){let{flags:flags,source:source}=value;return{__regexp__:{flags:flags,source:source}}}if(value instanceof _storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.HTMLElement){let{prefix:prefix,localName:localName,id:id,classList:classList,innerText:innerText}=value;return{__element__:{prefix:prefix,localName:localName,id:id,classNames:Array.from(classList),innerText:innerText}}}return"function"==typeof value?{__function__:{name:"getMockName"in value?value.getMockName():value.name}}:"symbol"==typeof value?{__symbol__:{description:value.description}}:"object"==typeof value&&value?.constructor?.name&&"Object"!==value?.constructor?.name?{__class__:{name:value.constructor.name}}:"[object Object]"===Object.prototype.toString.call(value)?Object.fromEntries(Object.entries(value).map((([key,val])=>[key,serializeValues(val,++depth,seen)]))):value},info={...call,args:call.args.map((arg=>serializeValues(arg,0,[])))};call.path.forEach((ref=>{ref?.__callId__&&this.setState(call.storyId,(({chainedCallIds:chainedCallIds})=>({chainedCallIds:new Set(Array.from(chainedCallIds).concat(ref.__callId__))})))}));let handleException=e=>{if(e instanceof Error){let{name:name,message:message,stack:stack,callId:callId=call.id}=e,{showDiff:showDiff,diff:diff2,actual:actual,expected:expected}="AssertionError"===e.name?processError(e):e,exception={name:name,message:message,stack:stack,callId:callId,showDiff:showDiff,diff:diff2,actual:actual,expected:expected};if(this.update({...info,status:"error",exception:exception}),this.setState(call.storyId,(state=>({callRefsByResult:new Map([...Array.from(state.callRefsByResult.entries()),[e,{__callId__:call.id,retain:call.retain}]])}))),call.ancestors.length)throw Object.prototype.hasOwnProperty.call(e,"callId")||Object.defineProperty(e,"callId",{value:call.id}),e}throw e};try{if("played"===renderPhase&&!call.retain)throw alreadyCompletedException;let finalArgs=(options.getArgs?options.getArgs(call,this.getState(call.storyId)):call.args).map((arg=>"function"!=typeof arg||Object.keys(arg).length?arg:(...args)=>{let{cursor:cursor,ancestors:ancestors}=this.getState(call.storyId);this.setState(call.storyId,{cursor:0,ancestors:[...ancestors,call.id]});let restore=()=>this.setState(call.storyId,{cursor:cursor,ancestors:ancestors}),willRestore=!1;try{let res=arg(...args);return res instanceof Promise?(willRestore=!0,res.finally(restore)):res}finally{willRestore||restore()}})),result=fn.apply(object,finalArgs);return result&&["object","function","symbol"].includes(typeof result)&&this.setState(call.storyId,(state=>({callRefsByResult:new Map([...Array.from(state.callRefsByResult.entries()),[result,{__callId__:call.id,retain:call.retain}]])}))),this.update({...info,status:result instanceof Promise?"active":"done"}),result instanceof Promise?result.then((value=>(this.update({...info,status:"done"}),value)),handleException):result}catch(e){return handleException(e)}}update(call){this.channel.emit(EVENTS_CALL,call),this.setState(call.storyId,(({calls:calls})=>{let callsById=calls.concat(call).reduce(((a2,c)=>Object.assign(a2,{[c.id]:c})),{});return{calls:Object.values(callsById).sort(((a2,b)=>a2.id.localeCompare(b.id,void 0,{numeric:!0})))}})),this.sync(call.storyId)}sync(storyId){let synchronize=()=>{let{isLocked:isLocked,isPlaying:isPlaying}=this.getState(storyId),logItems=this.getLog(storyId),pausedAt=logItems.filter((({ancestors:ancestors})=>!ancestors.length)).find((item=>"waiting"===item.status))?.callId,hasActive=logItems.some((item=>"active"===item.status));if(isLocked||hasActive||0===logItems.length){let payload2={controlStates:controlsDisabled,logItems:logItems};return void this.channel.emit(EVENTS_SYNC,payload2)}let hasPrevious=logItems.some((item=>"done"===item.status||"error"===item.status)),payload={controlStates:{start:hasPrevious,back:hasPrevious,goto:!0,next:isPlaying,end:isPlaying},logItems:logItems,pausedAt:pausedAt};this.channel.emit(EVENTS_SYNC,payload)};this.setState(storyId,(({syncTimeout:syncTimeout})=>(clearTimeout(syncTimeout),{syncTimeout:setTimeout(synchronize,0)})))}};function instrument(obj,options={}){try{let forceInstrument=!1,skipInstrument=!1;return _storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.location?.search?.includes("instrument=true")?forceInstrument=!0:_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.location?.search?.includes("instrument=false")&&(skipInstrument=!0),_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.parent===_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window&&!forceInstrument||skipInstrument?obj:(_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window&&!_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Instrumenter),(_storybook_global__WEBPACK_IMPORTED_MODULE_3__.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(obj,options))}catch(e){return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_0__.once.warn(e),obj}}},"./node_modules/@storybook/react/dist/chunk-H6MOWX77.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P$:function(){return __commonJS},VA:function(){return __export},f1:function(){return __toESM}});var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod))},"./node_modules/@storybook/react/dist/entry-preview-docs.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{applyDecorators:function(){return applyDecorators},argTypesEnhancers:function(){return argTypesEnhancers},decorators:function(){return decorators},parameters:function(){return parameters}});var chunk_H6MOWX77=__webpack_require__("./node_modules/@storybook/react/dist/chunk-H6MOWX77.mjs"),docs_tools=__webpack_require__("./node_modules/@storybook/core/dist/docs-tools/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),html_tags=__webpack_require__("./node_modules/html-tags/index.js"),escodegen=__webpack_require__("./node_modules/escodegen/escodegen.js"),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),acorn=__webpack_require__("./node_modules/acorn/dist/acorn.mjs"),acorn_jsx=__webpack_require__("./node_modules/acorn-jsx/index.js"),acorn_jsx_default=__webpack_require__.n(acorn_jsx);function simple(node,visitors,baseVisitor,state,override){baseVisitor||(baseVisitor=base),function c(node,st,override){var type=override||node.type,found=visitors[type];baseVisitor[type](node,st,c),found&&found(node,st)}(node,state,override)}Object.create;function skipThrough(node,st,c){c(node,st)}function ignore(_node,_st,_c){}var base={};base.Program=base.BlockStatement=function(node,st,c){for(var i=0,list=node.body;icomponent.$$typeof===Symbol.for("react.memo"),ACORN_WALK_VISITORS={...base,JSXElement:()=>{}},acornParser=acorn.Parser.extend(acorn_jsx_default()());function extractIdentifierName(identifierNode){return null!=identifierNode?identifierNode.name:null}function filterAncestors(ancestors){return ancestors.filter((x=>"ObjectExpression"===x.type||"ArrayExpression"===x.type))}function calculateNodeDepth(node){let depths=[];return function ancestor(node,visitors,baseVisitor,state,override){var ancestors=[];baseVisitor||(baseVisitor=base),function c(node,st,override){var type=override||node.type,found=visitors[type],isNew=node!==ancestors[ancestors.length-1];isNew&&ancestors.push(node),baseVisitor[type](node,st,c),found&&found(node,st||ancestors,ancestors),isNew&&ancestors.pop()}(node,state,override)}(node,{ObjectExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)},ArrayExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)}},ACORN_WALK_VISITORS),Math.max(...depths)}function parseObject(objectNode){return{inferredType:{type:"Object",depth:calculateNodeDepth(objectNode)},ast:objectNode}}function parseExpression(expression){switch(expression.type){case"Identifier":return function parseIdentifier(identifierNode){return{inferredType:{type:"Identifier",identifier:extractIdentifierName(identifierNode)},ast:identifierNode}}(expression);case"Literal":return function parseLiteral(literalNode){return{inferredType:{type:"Literal"},ast:literalNode}}(expression);case"FunctionExpression":case"ArrowFunctionExpression":return function parseFunction(funcNode){let innerJsxElementNode;simple(funcNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS);let inferredType={type:null!=innerJsxElementNode?"Element":"Function",params:funcNode.params,hasParams:0!==funcNode.params.length},identifierName=extractIdentifierName(funcNode.id);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType:inferredType,ast:funcNode}}(expression);case"ClassExpression":return function parseClass(classNode){let innerJsxElementNode;return simple(classNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS),{inferredType:{type:null!=innerJsxElementNode?"Element":"Class",identifier:extractIdentifierName(classNode.id)},ast:classNode}}(expression);case"JSXElement":return function parseJsxElement(jsxElementNode){let inferredType={type:"Element"},identifierName=extractIdentifierName(jsxElementNode.openingElement.name);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType:inferredType,ast:jsxElementNode}}(expression);case"CallExpression":return function parseCall(callNode){return"shape"===extractIdentifierName("MemberExpression"===callNode.callee.type?callNode.callee.property:callNode.callee)?parseObject(callNode.arguments[0]):null}(expression);case"ObjectExpression":return parseObject(expression);case"ArrayExpression":return function parseArray(arrayNode){return{inferredType:{type:"Array",depth:calculateNodeDepth(arrayNode)},ast:arrayNode}}(expression);default:return null}}function parse(value){let ast=acornParser.parse(`(${value})`,{ecmaVersion:2020}),parsingResult={inferredType:{type:"Unknown"},ast:ast};if(null!=ast.body[0]){let rootNode=ast.body[0];switch(rootNode.type){case"ExpressionStatement":{let expressionResult=parseExpression(rootNode.expression);null!=expressionResult&&(parsingResult=expressionResult);break}}}return parsingResult}function inspectValue(value){try{return{...parse(value)}}catch{}return{inferredType:{type:"Unknown"}}}function generateArray({inferredType:inferredType,ast:ast}){let{depth:depth}=inferredType;if(depth<=2){let compactArray=generateArrayCode(ast,!0);if(!(0,docs_tools.Sy)(compactArray))return(0,docs_tools.Ux)(compactArray)}return(0,docs_tools.Ux)(ARRAY_CAPTION,generateArrayCode(ast))}function generateObject({inferredType:inferredType,ast:ast}){let{depth:depth}=inferredType;if(1===depth){let compactObject=generateObjectCode(ast,!0);if(!(0,docs_tools.Sy)(compactObject))return(0,docs_tools.Ux)(compactObject)}return(0,docs_tools.Ux)(OBJECT_CAPTION,generateObjectCode(ast))}function getPrettyFuncIdentifier(identifier,hasArguments){return hasArguments?`${identifier}( ... )`:`${identifier}()`}function getPrettyElementIdentifier(identifier){return`<${identifier} />`}function getPrettyIdentifier(inferredType){let{type:type,identifier:identifier}=inferredType;switch(type){case"Function":return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case"Element":return getPrettyElementIdentifier(identifier);default:return identifier}}function createDefaultValue(defaultValue){try{let inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case"Object":return generateObject(inspectionResult);case"Function":return function generateFunc({inferredType:inferredType,ast:ast}){let{identifier:identifier}=inferredType;if(null!=identifier)return(0,docs_tools.Ux)(getPrettyIdentifier(inferredType),generateCode(ast));let prettyCaption=generateCode(ast,!0);return(0,docs_tools.Sy)(prettyCaption)?(0,docs_tools.Ux)(FUNCTION_CAPTION,generateCode(ast)):(0,docs_tools.Ux)(prettyCaption)}(inspectionResult);case"Element":return function generateElement(defaultValue,inspectionResult){let{inferredType:inferredType}=inspectionResult,{identifier:identifier}=inferredType;if(null!=identifier&&!isHtmlTag(identifier)){let prettyIdentifier=getPrettyIdentifier(inferredType);return(0,docs_tools.Ux)(prettyIdentifier,defaultValue)}return(0,docs_tools.Sy)(defaultValue)?(0,docs_tools.Ux)(ELEMENT_CAPTION,defaultValue):(0,docs_tools.Ux)(defaultValue)}(defaultValue,inspectionResult);case"Array":return generateArray(inspectionResult);default:return null}}catch(e){console.error(e)}return null}var import_isFunction=(0,chunk_H6MOWX77.f1)(require_isFunction()),import_isPlainObject=(0,chunk_H6MOWX77.f1)(require_isPlainObject()),import_isString=(0,chunk_H6MOWX77.f1)(require_isString());function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){let{name:name}=func;return""!==name&&"anonymous"!==name&&name!==propName?name:null}var DEFAULT_TYPE_RESOLVERS={string:rawDefaultProp=>(0,docs_tools.Ux)(JSON.stringify(rawDefaultProp)),object:rawDefaultProp=>{if(isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type)return function generateReactObject(rawDefaultProp){let{type:type}=rawDefaultProp,{displayName:displayName}=type,jsx2=(0,cjs.Ay)(rawDefaultProp,{});if(null!=displayName){let prettyIdentifier=getPrettyElementIdentifier(displayName);return(0,docs_tools.Ux)(prettyIdentifier,jsx2)}if((0,import_isString.default)(type)&&isHtmlTag(type)){let jsxSummary=(0,cjs.Ay)(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!(0,docs_tools.Sy)(jsxSummary))return(0,docs_tools.Ux)(jsxSummary)}return(0,docs_tools.Ux)(ELEMENT_CAPTION,jsx2)}(rawDefaultProp);if((0,import_isPlainObject.default)(rawDefaultProp)){return generateObject(inspectValue(JSON.stringify(rawDefaultProp)))}if(Array.isArray(rawDefaultProp)){return generateArray(inspectValue(JSON.stringify(rawDefaultProp)))}return(0,docs_tools.Ux)(OBJECT_CAPTION)},function:(rawDefaultProp,propDef)=>{let inspectionResult,isElement=!1;if((0,import_isFunction.default)(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&(0,import_isFunction.default)(rawDefaultProp.prototype.render))isElement=!0;else{let innerElement;try{inspectionResult=inspectValue(rawDefaultProp.toString());let{hasParams:hasParams,params:params}=inspectionResult.inferredType;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch{}}let funcName=extractFunctionName(rawDefaultProp,propDef.name);if(null!=funcName){if(isElement)return(0,docs_tools.Ux)(getPrettyElementIdentifier(funcName));null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString()));let{hasParams:hasParams}=inspectionResult.inferredType;return(0,docs_tools.Ux)(getPrettyFuncIdentifier(funcName,hasParams))}return(0,docs_tools.Ux)(isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)},default:rawDefaultProp=>(0,docs_tools.Ux)(rawDefaultProp.toString())};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,typeResolvers=DEFAULT_TYPE_RESOLVERS){try{switch(typeof rawDefaultProp){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}function generateFuncSignature(params,returns){let hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";let funcParts=[];if(hasParams){let funcParams=params.map((x=>{let prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?`${prettyName}: ${typeName}`:prettyName}));funcParts.push(`(${funcParams.join(", ")})`)}else funcParts.push("()");return hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}function generateShortFuncSignature(params,returns){let hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";let funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}var MAX_FUNC_LENGTH=150;function createTypeDef({name:name,short:short,compact:compact,full:full,inferredType:inferredType}){return{name:name,short:short,compact:compact,full:full??short,inferredType:inferredType}}function cleanPropTypes(value){return value.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function splitIntoLines(value){return value.split(/\r?\n/)}function prettyObject(ast,compact=!1){return cleanPropTypes(generateObjectCode(ast,compact))}function prettyArray(ast,compact=!1){return cleanPropTypes(generateCode(ast,compact))}function generateTypeFromString(value,originalTypeName){let short,compact,full,{inferredType:inferredType,ast:ast}=inspectValue(value),{type:type}=inferredType;switch(type){case"Identifier":case"Literal":short=value,compact=value;break;case"Object":{let{depth:depth}=inferredType;short=OBJECT_CAPTION,compact=1===depth?prettyObject(ast,!0):null,full=prettyObject(ast);break}case"Element":{let{identifier:identifier}=inferredType;short=null==identifier||isHtmlTag(identifier)?ELEMENT_CAPTION:identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break}case"Array":{let{depth:depth}=inferredType;short=ARRAY_CAPTION,compact=depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break}default:short=function getCaptionForInspectionType(type){switch(type){case"Object":return OBJECT_CAPTION;case"Array":return ARRAY_CAPTION;case"Class":return CLASS_CAPTION;case"Function":return FUNCTION_CAPTION;case"Element":return ELEMENT_CAPTION;default:return CUSTOM_CAPTION}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short:short,compact:compact,full:full,inferredType:type})}function objectOf(of){return`objectOf(${of})`}function generateEnum(type){if(Array.isArray(type.value)){let values=type.value.reduce(((acc,v)=>{let{short:short,compact:compact,full:full}=function generateEnumValue({value:value,computed:computed}){return computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:"enum",short:values.short.join(" | "),compact:values.compact.every((x=>null!=x))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"enum",short:type.value,compact:type.value})}function braceAfter(of){return`${of}[]`}function braceAround(of){return`[${of}]`}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:full&&braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case"custom":return function generateCustom({raw:raw}){return null!=raw?generateTypeFromString(raw,"custom"):createTypeDef({name:"custom",short:CUSTOM_CAPTION,compact:CUSTOM_CAPTION})}(type);case"func":return function generateFunc2(extractedProp){let{jsDocTags:jsDocTags}=extractedProp;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:"func",short:FUNCTION_CAPTION,compact:FUNCTION_CAPTION}):createTypeDef({name:"func",short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case"shape":return function generateShape(type,extractedProp){let fields=Object.keys(type.value).map((key=>`${key}: ${generateType(type.value[key],extractedProp).full}`)).join(", "),{inferredType:inferredType,ast:ast}=inspectValue(`{ ${fields} }`),{depth:depth}=inferredType;return createTypeDef({name:"shape",short:OBJECT_CAPTION,compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case"instanceOf":return createTypeDef({name:"instanceOf",short:type.value,compact:type.value});case"objectOf":return function generateObjectOf(type,extractedProp){let{short:short,compact:compact,full:full}=generateType(type.value,extractedProp);return createTypeDef({name:"objectOf",short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:full&&objectOf(full)})}(type,extractedProp);case"union":return function generateUnion(type,extractedProp){if(Array.isArray(type.value)){let values=type.value.reduce(((acc,v)=>{let{short:short,compact:compact,full:full}=generateType(v,extractedProp);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:"union",short:values.short.join(" | "),compact:values.compact.every((x=>null!=x))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"union",short:type.value,compact:null})}(type,extractedProp);case"enum":return generateEnum(type);case"arrayOf":return function generateArray2(type,extractedProp){let{name:name,short:short,compact:compact,full:full,inferredType:inferredType}=generateType(type.value,extractedProp);if("custom"===name){if("Object"===inferredType)return createArrayOfObjectTypeDef(short,compact,full)}else if("shape"===name)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}var rawDefaultPropTypeResolvers=function createTypeResolvers(customResolvers={}){return{...DEFAULT_TYPE_RESOLVERS,...customResolvers}}({function:(rawDefaultProp,{name:name,type:type})=>{let isElement="element"===type?.summary||"elementType"===type?.summary,funcName=extractFunctionName(rawDefaultProp,name);if(null!=funcName){if(isElement)return(0,docs_tools.Ux)(getPrettyElementIdentifier(funcName));let{hasParams:hasParams}=inspectValue(rawDefaultProp.toString()).inferredType;return(0,docs_tools.Ux)(getPrettyFuncIdentifier(funcName,hasParams))}return(0,docs_tools.Ux)(isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)}});function enhancePropTypesProp(extractedProp,rawDefaultProp){let{propDef:propDef}=extractedProp,newtype=function createType(extractedProp){let{type:type}=extractedProp.docgenInfo;if(null==type)return null;try{switch(type.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:short,compact:compact,full:full}=generateType(type,extractedProp);return null==compact||(0,docs_tools.i3)(compact)?full?(0,docs_tools.Ux)(short,full):(0,docs_tools.Ux)(short):(0,docs_tools.Ux)(compact)}case"func":{let detail,{short:short,full:full}=generateType(type,extractedProp),summary=short;return full&&full.lengthextractedProps.find((y=>y.name===x)))).filter(Boolean):extractedProps}(extractedProps.map((x=>enhancePropTypesProp(x,rawDefaultProps[x.propDef.name]))),component)}function enhanceTypeScriptProps(extractedProps){return extractedProps.map((prop=>function enhanceTypeScriptProp(extractedProp,rawDefaultProp){let{propDef:propDef}=extractedProp,{defaultValue:defaultValue}=extractedProp.docgenInfo;if(null!=defaultValue&&null!=defaultValue.value){let newDefaultValue=createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){let newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}return propDef}(prop)))}var propTypesMap=new Map;function getPropDefs(component,section){let processedComponent=component;!(0,docs_tools.TQ)(component)&&!component.propTypes&&isMemo(component)&&(processedComponent=component.type);let extractedProps=(0,docs_tools.p6)(processedComponent,section);if(0===extractedProps.length)return[];switch(extractedProps[0].typeSystem){case docs_tools.YF.JAVASCRIPT:return enhancePropTypesProps(extractedProps,component);case docs_tools.YF.TYPESCRIPT:return enhanceTypeScriptProps(extractedProps);default:return extractedProps.map((x=>x.propDef))}}Object.keys(prop_types_default()).forEach((typeName=>{let type=prop_types_default()[typeName];propTypesMap.set(type,typeName),propTypesMap.set(type.isRequired,typeName)}));var toPascalCase=str=>str.charAt(0).toUpperCase()+str.slice(1);function simplifyNodeForStringify(node){if((0,react.isValidElement)(node)){let props=Object.keys(node.props).reduce(((acc,cur)=>(acc[cur]=simplifyNodeForStringify(node.props[cur]),acc)),{});return{...node,props:props,_owner:null}}return Array.isArray(node)?node.map(simplifyNodeForStringify):node}var renderJsx=(code,options)=>{if(typeof code>"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Too many skip or undefined component"),null;let displayNameDefaults,renderedJSX=code,Type=renderedJSX.type;for(let i=0;i"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Cannot skip undefined element"),null;if(react.Children.count(renderedJSX)>1)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Trying to skip an array of elements"),null;typeof renderedJSX.props.children>"u"?(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react.createElement(Type,{...renderedJSX.props}))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}displayNameDefaults="string"==typeof options?.displayName?{showFunctions:!0,displayName:()=>options.displayName}:{displayName:el=>{return el.type.displayName?el.type.displayName:(0,docs_tools.UO)(el.type,"displayName")?(0,docs_tools.UO)(el.type,"displayName"):el.type.render?.displayName?el.type.render.displayName:"symbol"==typeof el.type||el.type.$$typeof&&"symbol"==typeof el.type.$$typeof?((elementType=el.type).$$typeof||elementType).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map((segment=>segment.split("_").map(toPascalCase).join(""))).join("."):el.type.name&&"_default"!==el.type.name?el.type.name:"function"==typeof el.type?"No Display Name":el.type.$$typeof===Symbol.for("react.forward_ref")?el.type.render.name:isMemo(el.type)?el.type.type.name:el.type;var elementType}};let opts={...displayNameDefaults,filterProps:(value,key)=>void 0!==value,...options};return react.Children.map(code,(c=>{let child="number"==typeof c?c.toString():c,string=("function"==typeof cjs.Ay?cjs.Ay:cjs.Ay.default)(simplifyNodeForStringify(child),opts);if(string.indexOf(""")>-1){let matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach((match=>{string=string.replace(match,match.replace(/"/g,"'"))}))}return string})).join("\n").replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},mdxToJsx=node=>{if(!(node=>"MDXCreateElement"===node.type?.displayName&&!!node.props?.mdxType)(node))return node;let{mdxType:mdxType,originalType:originalType,children:children,...rest}=node.props,jsxChildren=[];return children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx)),(0,react.createElement)(originalType,rest,...jsxChildren)},jsxDecorator=(storyFn,context)=>{let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),skip=(context=>{let sourceParams=context?.parameters.docs?.source,isArgsStory=context?.parameters.__isArgsStory;return sourceParams?.type!==docs_tools.Y1.DYNAMIC&&(!isArgsStory||sourceParams?.code||sourceParams?.type===docs_tools.Y1.CODE)})(context),jsx2="";(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{if(!skip){let{id:id,unmappedArgs:unmappedArgs}=context;channel.emit(docs_tools.Op,{id:id,source:jsx2,args:unmappedArgs})}}));let story=storyFn();if(skip)return story;let options={...defaultOpts,...context?.parameters.jsx||{}},storyJsx=context?.parameters.docs?.source?.excludeDecorators?context.originalStoryFn(context.args,context):story,sourceJsx=mdxToJsx(storyJsx),rendered=renderJsx(sourceJsx,options);return rendered&&(jsx2=rendered),story},applyDecorators=(storyFn,decorators2)=>{let jsxIndex=decorators2.findIndex((d=>d.originalFn===jsxDecorator)),reorderedDecorators=-1===jsxIndex?decorators2:[...decorators2.splice(jsxIndex,1),...decorators2];return(0,external_STORYBOOK_MODULE_PREVIEW_API_.defaultDecorateStory)(storyFn,reorderedDecorators)},parameters={docs:{story:{inline:!0},extractArgTypes:component=>{if(component){let{rows:rows}=(component=>({rows:getPropDefs(component,"props")}))(component);if(rows)return rows.reduce(((acc,row)=>{let{name:name,description:description,type:type,sbType:sbType,defaultValue:defaultSummary,jsDocTags:jsDocTags,required:required}=row;return acc[name]={name:name,description:description,type:{required:required,...sbType},table:{type:type??void 0,jsDocTags:jsDocTags,defaultValue:defaultSummary??void 0}},acc}),{})}return null},extractComponentDescription:docs_tools.rl}},decorators=[jsxDecorator],argTypesEnhancers=[docs_tools.C2]},"./node_modules/@storybook/react/dist/entry-preview.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:function(){return decorators},mount:function(){return mount},parameters:function(){return parameters},render:function(){return render},renderToCanvas:function(){return renderToCanvas}});var chunk_H6MOWX77=__webpack_require__("./node_modules/@storybook/react/dist/chunk-H6MOWX77.mjs"),react=__webpack_require__("./node_modules/react/index.js"),semver=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/index.js"),semver_default=__webpack_require__.n(semver),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),test_utils=__webpack_require__("./node_modules/react-dom/test-utils.js");(0,chunk_H6MOWX77.VA)({},{decorators:()=>decorators,mount:()=>mount,parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});var render=(args,context)=>{let{id:id,component:Component}=context;if(!Component)throw new Error(`Unable to render story ${id} as the component annotation is missing from the default export`);return react.createElement(Component,{...args})};function setReactActEnvironment(isReactActEnvironment){globalThis.IS_REACT_ACT_ENVIRONMENT=isReactActEnvironment}function getReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}(function withGlobalActEnvironment(actImplementation){return callback=>{let previousActEnvironment=getReactActEnvironment();setReactActEnvironment(!0);try{let callbackNeedsToBeAwaited=!1,actResult=actImplementation((()=>{let result=callback();return null!==result&&"object"==typeof result&&"function"==typeof result.then&&(callbackNeedsToBeAwaited=!0),result}));if(callbackNeedsToBeAwaited){let thenable=actResult;return{then:(resolve,reject)=>{thenable.then((returnValue=>{setReactActEnvironment(previousActEnvironment),resolve(returnValue)}),(error=>{setReactActEnvironment(previousActEnvironment),reject(error)}))}}}return setReactActEnvironment(previousActEnvironment),actResult}catch(error){throw setReactActEnvironment(previousActEnvironment),error}}})("function"==typeof react.act?react.act:test_utils.act);var{FRAMEWORK_OPTIONS:FRAMEWORK_OPTIONS}=external_STORYBOOK_MODULE_GLOBAL_.global,ErrorBoundary=class extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:hasError}=this.state,{showMain:showMain}=this.props;hasError||showMain()}componentDidCatch(err){let{showException:showException}=this.props;showException(err)}render(){let{hasError:hasError}=this.state,{children:children}=this.props;return hasError?null:children}},Wrapper=FRAMEWORK_OPTIONS?.strictMode?react.StrictMode:react.Fragment;async function renderToCanvas({storyContext:storyContext,unboundStoryFn:unboundStoryFn,showMain:showMain,showException:showException,forceRemount:forceRemount},canvasElement){let{renderElement:renderElement,unmountElement:unmountElement}=await __webpack_require__.e(8735).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/react-dom-shim/dist/react-18.mjs")),Story=unboundStoryFn,content=getReactActEnvironment()?react.createElement(Story,{...storyContext}):react.createElement(ErrorBoundary,{showMain:showMain,showException:showException},react.createElement(Story,{...storyContext})),element=Wrapper?react.createElement(Wrapper,null,content):content;return forceRemount&&unmountElement(canvasElement),await renderElement(element,canvasElement,storyContext?.parameters?.react?.rootOptions),()=>unmountElement(canvasElement)}var mount=context=>async ui=>(null!=ui&&(context.originalStoryFn=()=>ui),await context.renderToCanvas(),context.canvas),parameters={renderer:"react"},decorators=[(Story,context)=>{if(!context.parameters?.react?.rsc)return react.createElement(Story,null);let major=semver_default().major(react.version),minor=semver_default().minor(react.version);if(major<18||18===major&&minor<3)throw new Error("React Server Components require React >= 18.3");return react.createElement(react.Suspense,null,react.createElement(Story,null))}]},"./node_modules/@storybook/react/node_modules/semver/classes/comparator.js":function(module,__unused_webpack_exports,__webpack_require__){const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if("string"==typeof version)try{version=new SemVer(version,this.options)}catch(er){return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new Range(comp.value,options).test(this.value):""===comp.operator?""===comp.value||new Range(this.value,options).test(comp.semver):(!(options=parseOptions(options)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==comp.value)&&(!(!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!comp.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!comp.operator.startsWith("<"))||(!(this.semver.version!==comp.semver.version||!this.operator.includes("=")||!comp.operator.includes("="))||(!!(cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<"))||!!(cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))))))}}module.exports=Comparator;const parseOptions=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/parse-options.js"),{safeRe:re,t:t}=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/re.js"),cmp=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/cmp.js"),debug=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/debug.js"),SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js")},"./node_modules/@storybook/react/node_modules/semver/classes/range.js":function(module,__unused_webpack_exports,__webpack_require__){const SPACE_CHARACTERS=/\s+/g;class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS," "),this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((c=>c.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter((c=>!isNullSet(c[0]))),0===this.set.length)this.set=[first];else if(this.set.length>1)for(const c of this.set)if(1===c.length&&isAny(c[0])){this.set=[c];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let i=0;i0&&(this.formatted+="||");const comps=this.set[i];for(let k=0;k0&&(this.formatted+=" "),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){const memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map((comp=>parseComparator(comp,this.options))).join(" ").split(/\s+/).map((comp=>replaceGTE0(comp,this.options)));loose&&(rangeList=rangeList.filter((comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE]))))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map((comp=>new Comparator(comp,this.options)));for(const comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some((thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some((rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every((thisComparator=>rangeComparators.every((rangeComparator=>thisComparator.intersects(rangeComparator,options)))))))))}test(version){if(!version)return!1;if("string"==typeof version)try{version=new SemVer(version,this.options)}catch(er){return!1}for(let i=0;i"<0.0.0-0"===c.value,isAny=c=>""===c.value,isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every((otherComparator=>testComparator.intersects(otherComparator,options))),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||"x"===id.toLowerCase()||"*"===id,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceTilde(c,options))).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret}))},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceCaret(c,options))).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?ret="0"===M?`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),ret="0"===M?"0"===m?`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret}))},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map((c=>replaceXRange(c,options))).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,((ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return"="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),"<"===gtlt&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret}))},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>`${from=isX(fM)?"":isX(fm)?`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?`>=${from}`:`>=${from}${incPr?"-0":""}`} ${to=isX(tM)?"":isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`}`.trim(),testSet=(set,version,options)=>{for(let i=0;i0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},"./node_modules/@storybook/react/node_modules/semver/classes/semver.js":function(module,__unused_webpack_exports,__webpack_require__){const debug=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/debug.js"),{MAX_LENGTH:MAX_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER}=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/constants.js"),{safeRe:re,t:t}=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/re.js"),parseOptions=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/parse-options.js"),{compareIdentifiers:compareIdentifiers}=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/identifiers.js");class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if("string"!=typeof version)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(identifier===this.prerelease.join(".")&&!1===identifierBase)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];!1===identifierBase&&(prerelease=[identifier]),0===compareIdentifiers(this.prerelease[0],identifier)?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}module.exports=SemVer},"./node_modules/@storybook/react/node_modules/semver/functions/clean.js":function(module,__unused_webpack_exports,__webpack_require__){const parse=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/parse.js");module.exports=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null}},"./node_modules/@storybook/react/node_modules/semver/functions/cmp.js":function(module,__unused_webpack_exports,__webpack_require__){const eq=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/eq.js"),neq=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/neq.js"),gt=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/gt.js"),gte=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/gte.js"),lt=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/lt.js"),lte=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/lte.js");module.exports=(a,op,b,loose)=>{switch(op){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}}},"./node_modules/@storybook/react/node_modules/semver/functions/coerce.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js"),parse=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/parse.js"),{safeRe:re,t:t}=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/re.js");module.exports=(version,options)=>{if(version instanceof SemVer)return version;if("number"==typeof version&&(version=String(version)),"string"!=typeof version)return null;let match=null;if((options=options||{}).rtl){const coerceRtlRegex=options.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];let next;for(;(next=coerceRtlRegex.exec(version))&&(!match||match.index+match[0].length!==version.length);)match&&next.index+next[0].length===match.index+match[0].length||(match=next),coerceRtlRegex.lastIndex=next.index+next[1].length+next[2].length;coerceRtlRegex.lastIndex=-1}else match=version.match(options.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);if(null===match)return null;const major=match[2],minor=match[3]||"0",patch=match[4]||"0",prerelease=options.includePrerelease&&match[5]?`-${match[5]}`:"",build=options.includePrerelease&&match[6]?`+${match[6]}`:"";return parse(`${major}.${minor}.${patch}${prerelease}${build}`,options)}},"./node_modules/@storybook/react/node_modules/semver/functions/compare-build.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js");module.exports=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)}},"./node_modules/@storybook/react/node_modules/semver/functions/compare-loose.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b)=>compare(a,b,!0)},"./node_modules/@storybook/react/node_modules/semver/functions/compare.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js");module.exports=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose))},"./node_modules/@storybook/react/node_modules/semver/functions/diff.js":function(module,__unused_webpack_exports,__webpack_require__){const parse=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/parse.js");module.exports=(version1,version2)=>{const v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(0===comparison)return null;const v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return lowVersion.patch||lowVersion.minor?highVersion.patch?"patch":highVersion.minor?"minor":"major":"major";const prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"}},"./node_modules/@storybook/react/node_modules/semver/functions/eq.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>0===compare(a,b,loose)},"./node_modules/@storybook/react/node_modules/semver/functions/gt.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)>0},"./node_modules/@storybook/react/node_modules/semver/functions/gte.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)>=0},"./node_modules/@storybook/react/node_modules/semver/functions/inc.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js");module.exports=(version,release,options,identifier,identifierBase)=>{"string"==typeof options&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch(er){return null}}},"./node_modules/@storybook/react/node_modules/semver/functions/lt.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)<0},"./node_modules/@storybook/react/node_modules/semver/functions/lte.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(a,b,loose)<=0},"./node_modules/@storybook/react/node_modules/semver/functions/major.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js");module.exports=(a,loose)=>new SemVer(a,loose).major},"./node_modules/@storybook/react/node_modules/semver/functions/minor.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js");module.exports=(a,loose)=>new SemVer(a,loose).minor},"./node_modules/@storybook/react/node_modules/semver/functions/neq.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>0!==compare(a,b,loose)},"./node_modules/@storybook/react/node_modules/semver/functions/parse.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js");module.exports=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}}},"./node_modules/@storybook/react/node_modules/semver/functions/patch.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js");module.exports=(a,loose)=>new SemVer(a,loose).patch},"./node_modules/@storybook/react/node_modules/semver/functions/prerelease.js":function(module,__unused_webpack_exports,__webpack_require__){const parse=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/parse.js");module.exports=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null}},"./node_modules/@storybook/react/node_modules/semver/functions/rcompare.js":function(module,__unused_webpack_exports,__webpack_require__){const compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(a,b,loose)=>compare(b,a,loose)},"./node_modules/@storybook/react/node_modules/semver/functions/rsort.js":function(module,__unused_webpack_exports,__webpack_require__){const compareBuild=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare-build.js");module.exports=(list,loose)=>list.sort(((a,b)=>compareBuild(b,a,loose)))},"./node_modules/@storybook/react/node_modules/semver/functions/satisfies.js":function(module,__unused_webpack_exports,__webpack_require__){const Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js");module.exports=(version,range,options)=>{try{range=new Range(range,options)}catch(er){return!1}return range.test(version)}},"./node_modules/@storybook/react/node_modules/semver/functions/sort.js":function(module,__unused_webpack_exports,__webpack_require__){const compareBuild=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare-build.js");module.exports=(list,loose)=>list.sort(((a,b)=>compareBuild(a,b,loose)))},"./node_modules/@storybook/react/node_modules/semver/functions/valid.js":function(module,__unused_webpack_exports,__webpack_require__){const parse=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/parse.js");module.exports=(version,options)=>{const v=parse(version,options);return v?v.version:null}},"./node_modules/@storybook/react/node_modules/semver/index.js":function(module,__unused_webpack_exports,__webpack_require__){const internalRe=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/re.js"),constants=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/constants.js"),SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js"),identifiers=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/identifiers.js"),parse=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/parse.js"),valid=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/valid.js"),clean=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/clean.js"),inc=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/inc.js"),diff=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/diff.js"),major=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/major.js"),minor=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/minor.js"),patch=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/patch.js"),prerelease=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/prerelease.js"),compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js"),rcompare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/rcompare.js"),compareLoose=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare-loose.js"),compareBuild=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare-build.js"),sort=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/sort.js"),rsort=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/rsort.js"),gt=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/gt.js"),lt=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/lt.js"),eq=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/eq.js"),neq=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/neq.js"),gte=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/gte.js"),lte=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/lte.js"),cmp=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/cmp.js"),coerce=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/coerce.js"),Comparator=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/comparator.js"),Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js"),satisfies=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/satisfies.js"),toComparators=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/to-comparators.js"),maxSatisfying=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/max-satisfying.js"),minSatisfying=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/min-satisfying.js"),minVersion=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/min-version.js"),validRange=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/valid.js"),outside=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/outside.js"),gtr=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/gtr.js"),ltr=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/ltr.js"),intersects=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/intersects.js"),simplifyRange=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/simplify.js"),subset=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/subset.js");module.exports={parse:parse,valid:valid,clean:clean,inc:inc,diff:diff,major:major,minor:minor,patch:patch,prerelease:prerelease,compare:compare,rcompare:rcompare,compareLoose:compareLoose,compareBuild:compareBuild,sort:sort,rsort:rsort,gt:gt,lt:lt,eq:eq,neq:neq,gte:gte,lte:lte,cmp:cmp,coerce:coerce,Comparator:Comparator,Range:Range,satisfies:satisfies,toComparators:toComparators,maxSatisfying:maxSatisfying,minSatisfying:minSatisfying,minVersion:minVersion,validRange:validRange,outside:outside,gtr:gtr,ltr:ltr,intersects:intersects,simplifyRange:simplifyRange,subset:subset,SemVer:SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}},"./node_modules/@storybook/react/node_modules/semver/internal/constants.js":function(module){const MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},"./node_modules/@storybook/react/node_modules/semver/internal/debug.js":function(module,__unused_webpack_exports,__webpack_require__){var process=__webpack_require__("./node_modules/process/browser.js");const debug="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},"./node_modules/@storybook/react/node_modules/semver/internal/identifiers.js":function(module){const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:acompareIdentifiers(b,a)}},"./node_modules/@storybook/react/node_modules/semver/internal/lrucache.js":function(module){module.exports=class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(key){const value=this.map.get(key);return void 0===value?void 0:(this.map.delete(key),this.map.set(key,value),value)}delete(key){return this.map.delete(key)}set(key,value){if(!this.delete(key)&&void 0!==value){if(this.map.size>=this.max){const firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key,value)}return this}}},"./node_modules/@storybook/react/node_modules/semver/internal/parse-options.js":function(module){const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({});module.exports=options=>options?"object"!=typeof options?looseOption:options:emptyOpts},"./node_modules/@storybook/react/node_modules/semver/internal/re.js":function(module,exports,__webpack_require__){const{MAX_SAFE_COMPONENT_LENGTH:MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH:MAX_SAFE_BUILD_LENGTH,MAX_LENGTH:MAX_LENGTH}=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/constants.js"),debug=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/internal/debug.js"),re=(exports=module.exports={}).re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={};let R=0;const safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],["[a-zA-Z0-9-]",MAX_SAFE_BUILD_LENGTH]],createToken=(name,value,isGlobal)=>{const safe=(value=>{for(const[token,max]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value})(value),index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[a-zA-Z0-9-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`),createToken("COERCE",`${src[t.COERCEPLAIN]}(?:$|[^\\d])`),createToken("COERCEFULL",src[t.COERCEPLAIN]+`(?:${src[t.PRERELEASE]})?`+`(?:${src[t.BUILD]})?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("COERCERTLFULL",src[t.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},"./node_modules/@storybook/react/node_modules/semver/ranges/gtr.js":function(module,__unused_webpack_exports,__webpack_require__){const outside=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/outside.js");module.exports=(version,range,options)=>outside(version,range,">",options)},"./node_modules/@storybook/react/node_modules/semver/ranges/intersects.js":function(module,__unused_webpack_exports,__webpack_require__){const Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js");module.exports=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options))},"./node_modules/@storybook/react/node_modules/semver/ranges/ltr.js":function(module,__unused_webpack_exports,__webpack_require__){const outside=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/ranges/outside.js");module.exports=(version,range,options)=>outside(version,range,"<",options)},"./node_modules/@storybook/react/node_modules/semver/ranges/max-satisfying.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js");module.exports=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(max&&-1!==maxSV.compare(v)||(max=v,maxSV=new SemVer(max,options)))})),max}},"./node_modules/@storybook/react/node_modules/semver/ranges/min-satisfying.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js");module.exports=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch(er){return null}return versions.forEach((v=>{rangeObj.test(v)&&(min&&1!==minSV.compare(v)||(min=v,minSV=new SemVer(min,options)))})),min}},"./node_modules/@storybook/react/node_modules/semver/ranges/min-version.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js"),Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js"),gt=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/gt.js");module.exports=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver))return minver;if(minver=new SemVer("0.0.0-0"),range.test(minver))return minver;minver=null;for(let i=0;i{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":setMin&&!gt(compver,setMin)||(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}})),!setMin||minver&&!gt(minver,setMin)||(minver=setMin)}return minver&&range.test(minver)?minver:null}},"./node_modules/@storybook/react/node_modules/semver/ranges/outside.js":function(module,__unused_webpack_exports,__webpack_require__){const SemVer=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/semver.js"),Comparator=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/comparator.js"),{ANY:ANY}=Comparator,Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js"),satisfies=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/satisfies.js"),gt=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/gt.js"),lt=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/lt.js"),lte=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/lte.js"),gte=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/gte.js");module.exports=(version,range,hilo,options)=>{let gtfn,ltefn,ltfn,comp,ecomp;switch(version=new SemVer(version,options),range=new Range(range,options),hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)})),high.operator===comp||high.operator===ecomp)return!1;if((!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0}},"./node_modules/@storybook/react/node_modules/semver/ranges/simplify.js":function(module,__unused_webpack_exports,__webpack_require__){const satisfies=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/satisfies.js"),compare=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/functions/compare.js");module.exports=(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort(((a,b)=>compare(a,b,options)));for(const version of v){satisfies(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null)}first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):max||min!==v[0]?max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`):ranges.push("*");const simplified=ranges.join(" || "),original="string"==typeof range.raw?range.raw:String(range);return simplified.length=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(1===sub.length&&sub[0].semver===ANY){if(1===dom.length&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?minimumVersionWithPreRelease:minimumVersion}if(1===dom.length&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}const eqSet=new Set;let gt,lt,gtltComp,higher,lower,hasDomLT,hasDomGT;for(const c of sub)">"===c.operator||">="===c.operator?gt=higherGT(gt,c,options):"<"===c.operator||"<="===c.operator?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(0===gtltComp&&(">="!==gt.operator||"<="!==lt.operator))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options))return null;if(lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let needDomLTPre=!(!lt||options.includePrerelease||!lt.semver.prerelease.length)&<.semver,needDomGTPre=!(!gt||options.includePrerelease||!gt.semver.prerelease.length)&>.semver;needDomLTPre&&1===needDomLTPre.prerelease.length&&"<"===lt.operator&&0===needDomLTPre.prerelease[0]&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||">"===c.operator||">="===c.operator,hasDomLT=hasDomLT||"<"===c.operator||"<="===c.operator,gt)if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),">"===c.operator||">="===c.operator){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(">="===gt.operator&&!satisfies(gt.semver,String(c),options))return!1;if(lt)if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),"<"===c.operator||"<="===c.operator){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if("<="===lt.operator&&!satisfies(lt.semver,String(c),options))return!1;if(!c.operator&&(lt||gt)&&0!==gtltComp)return!1}return!(gt&&hasDomLT&&!lt&&0!==gtltComp)&&(!(lt&&hasDomGT&&!gt&&0!==gtltComp)&&(!needDomGTPre&&!needDomLTPre))},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||">"===b.operator&&">="===a.operator?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||"<"===b.operator&&"<="===a.operator?b:a};module.exports=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||null!==isSub,isSub)continue OUTER}if(sawNonNull)return!1}return!0}},"./node_modules/@storybook/react/node_modules/semver/ranges/to-comparators.js":function(module,__unused_webpack_exports,__webpack_require__){const Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js");module.exports=(range,options)=>new Range(range,options).set.map((comp=>comp.map((c=>c.value)).join(" ").trim().split(" ")))},"./node_modules/@storybook/react/node_modules/semver/ranges/valid.js":function(module,__unused_webpack_exports,__webpack_require__){const Range=__webpack_require__("./node_modules/@storybook/react/node_modules/semver/classes/range.js");module.exports=(range,options)=>{try{return new Range(range,options).range||"*"}catch(er){return null}}},"./node_modules/@storybook/test/dist/index.mjs":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{fn:function(){return fn2}});var _storybook_global__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("@storybook/global"),_storybook_instrumenter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@storybook/instrumenter/dist/index.mjs"),storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/client-logger");module=__webpack_require__.hmd(module);var cb,mod,process=__webpack_require__("./node_modules/process/browser.js"),__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__require=__webpack_require__("./node_modules/@storybook/test/dist sync recursive"),__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),require_min_indent=__commonJS({"../../node_modules/min-indent/index.js"(exports,module2){module2.exports=string=>{let match=string.match(/^[ \t]*(?=\S)/gm);return match?match.reduce(((r,a2)=>Math.min(r,a2.length)),1/0):0}}}),require_strip_indent=__commonJS({"../../node_modules/strip-indent/index.js"(exports,module2){var minIndent=require_min_indent();module2.exports=string=>{let indent=minIndent(string);if(0===indent)return string;let regex=new RegExp(`^[ \\t]{${indent}}`,"gm");return string.replace(regex,"")}}}),require_indent_string=__commonJS({"../../node_modules/indent-string/index.js"(exports,module2){module2.exports=(string,count=1,options)=>{if(options={indent:" ",includeEmptyLines:!1,...options},"string"!=typeof string)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof string}\``);if("number"!=typeof count)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof count}\``);if("string"!=typeof options.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``);if(0===count)return string;let regex=options.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return string.replace(regex,options.indent.repeat(count))}}}),require_redent=__commonJS({"../../node_modules/redent/index.js"(exports,module2){var stripIndent=require_strip_indent(),indentString=require_indent_string();module2.exports=(string,count=0,options)=>indentString(stripIndent(string),count,options)}}),require_iteratorProxy=__commonJS({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2=function iteratorProxy(){var values=this,index=0,iter={"@@iterator":function(){return iter},next:function(){if(indexarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(properties);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,key,properties)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key){var item=properties.find((function(tuple){return tuple[0]===key}));return item&&item[1]},has:function(key){return!!ariaPropsMap.get(key)},keys:function(){return properties.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return properties.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(ariaPropsMap,ariaPropsMap.entries());exports.default=_default2}}),require_domMap=__commonJS({"../../node_modules/aria-query/lib/domMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _iterationDecorator=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(require_iterationDecorator());function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(dom);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,key,dom)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key){var item=dom.find((function(tuple){return tuple[0]===key}));return item&&item[1]},has:function(key){return!!domMap.get(key)},keys:function(){return dom.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return dom.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(domMap,domMap.entries());exports.default=_default2}}),require_commandRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};exports.default=_default2}}),require_compositeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};exports.default=_default2}}),require_inputRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};exports.default=_default2}}),require_landmarkRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_rangeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_roletypeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};exports.default=_default2}}),require_sectionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_sectionheadRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_selectRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};exports.default=_default2}}),require_structureRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};exports.default=_default2}}),require_widgetRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};exports.default=_default2}}),require_windowRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};exports.default=_default2}}),require_ariaAbstractRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _commandRole=_interopRequireDefault(require_commandRole()),_compositeRole=_interopRequireDefault(require_compositeRole()),_inputRole=_interopRequireDefault(require_inputRole()),_landmarkRole=_interopRequireDefault(require_landmarkRole()),_rangeRole=_interopRequireDefault(require_rangeRole()),_roletypeRole=_interopRequireDefault(require_roletypeRole()),_sectionRole=_interopRequireDefault(require_sectionRole()),_sectionheadRole=_interopRequireDefault(require_sectionheadRole()),_selectRole=_interopRequireDefault(require_selectRole()),_structureRole=_interopRequireDefault(require_structureRole()),_widgetRole=_interopRequireDefault(require_widgetRole()),_windowRole=_interopRequireDefault(require_windowRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["command",_commandRole.default],["composite",_compositeRole.default],["input",_inputRole.default],["landmark",_landmarkRole.default],["range",_rangeRole.default],["roletype",_roletypeRole.default],["section",_sectionRole.default],["sectionhead",_sectionheadRole.default],["select",_selectRole.default],["structure",_structureRole.default],["widget",_widgetRole.default],["window",_windowRole.default]];exports.default=_default2}}),require_alertRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_alertdialogRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};exports.default=_default2}}),require_applicationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_articleRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};exports.default=_default2}}),require_bannerRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_blockquoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_buttonRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};exports.default=_default2}}),require_captionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_cellRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_checkboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_codeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_columnheaderRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_comboboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_complementaryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_contentinfoRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_definitionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_deletionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_dialogRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};exports.default=_default2}}),require_directoryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};exports.default=_default2}}),require_documentRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_emphasisRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_feedRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};exports.default=_default2}}),require_figureRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_formRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_genericRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_gridRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};exports.default=_default2}}),require_gridcellRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};exports.default=_default2}}),require_groupRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_headingRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_imgRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_insertionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_linkRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};exports.default=_default2}}),require_listRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_listboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_listitemRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_logRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_mainRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_markRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_marqueeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_mathRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_menuRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_menubarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};exports.default=_default2}}),require_menuitemRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};exports.default=_default2}}),require_menuitemcheckboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};exports.default=_default2}}),require_menuitemradioRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};exports.default=_default2}}),require_meterRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};exports.default=_default2}}),require_navigationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_noneRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};exports.default=_default2}}),require_noteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_optionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_paragraphRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_presentationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_progressbarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};exports.default=_default2}}),require_radioRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_radiogroupRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_regionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_rowRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};exports.default=_default2}}),require_rowgroupRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_rowheaderRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_scrollbarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};exports.default=_default2}}),require_searchRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_searchboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};exports.default=_default2}}),require_separatorRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};exports.default=_default2}}),require_sliderRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};exports.default=_default2}}),require_spinbuttonRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};exports.default=_default2}}),require_statusRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_strongRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_subscriptRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_superscriptRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_switchRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};exports.default=_default2}}),require_tabRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};exports.default=_default2}}),require_tableRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_tablistRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};exports.default=_default2}}),require_tabpanelRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_termRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_textboxRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};exports.default=_default2}}),require_timeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_timerRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};exports.default=_default2}}),require_toolbarRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};exports.default=_default2}}),require_tooltipRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_treeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};exports.default=_default2}}),require_treegridRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};exports.default=_default2}}),require_treeitemRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};exports.default=_default2}}),require_ariaLiteralRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _alertRole=_interopRequireDefault(require_alertRole()),_alertdialogRole=_interopRequireDefault(require_alertdialogRole()),_applicationRole=_interopRequireDefault(require_applicationRole()),_articleRole=_interopRequireDefault(require_articleRole()),_bannerRole=_interopRequireDefault(require_bannerRole()),_blockquoteRole=_interopRequireDefault(require_blockquoteRole()),_buttonRole=_interopRequireDefault(require_buttonRole()),_captionRole=_interopRequireDefault(require_captionRole()),_cellRole=_interopRequireDefault(require_cellRole()),_checkboxRole=_interopRequireDefault(require_checkboxRole()),_codeRole=_interopRequireDefault(require_codeRole()),_columnheaderRole=_interopRequireDefault(require_columnheaderRole()),_comboboxRole=_interopRequireDefault(require_comboboxRole()),_complementaryRole=_interopRequireDefault(require_complementaryRole()),_contentinfoRole=_interopRequireDefault(require_contentinfoRole()),_definitionRole=_interopRequireDefault(require_definitionRole()),_deletionRole=_interopRequireDefault(require_deletionRole()),_dialogRole=_interopRequireDefault(require_dialogRole()),_directoryRole=_interopRequireDefault(require_directoryRole()),_documentRole=_interopRequireDefault(require_documentRole()),_emphasisRole=_interopRequireDefault(require_emphasisRole()),_feedRole=_interopRequireDefault(require_feedRole()),_figureRole=_interopRequireDefault(require_figureRole()),_formRole=_interopRequireDefault(require_formRole()),_genericRole=_interopRequireDefault(require_genericRole()),_gridRole=_interopRequireDefault(require_gridRole()),_gridcellRole=_interopRequireDefault(require_gridcellRole()),_groupRole=_interopRequireDefault(require_groupRole()),_headingRole=_interopRequireDefault(require_headingRole()),_imgRole=_interopRequireDefault(require_imgRole()),_insertionRole=_interopRequireDefault(require_insertionRole()),_linkRole=_interopRequireDefault(require_linkRole()),_listRole=_interopRequireDefault(require_listRole()),_listboxRole=_interopRequireDefault(require_listboxRole()),_listitemRole=_interopRequireDefault(require_listitemRole()),_logRole=_interopRequireDefault(require_logRole()),_mainRole=_interopRequireDefault(require_mainRole()),_markRole=_interopRequireDefault(require_markRole()),_marqueeRole=_interopRequireDefault(require_marqueeRole()),_mathRole=_interopRequireDefault(require_mathRole()),_menuRole=_interopRequireDefault(require_menuRole()),_menubarRole=_interopRequireDefault(require_menubarRole()),_menuitemRole=_interopRequireDefault(require_menuitemRole()),_menuitemcheckboxRole=_interopRequireDefault(require_menuitemcheckboxRole()),_menuitemradioRole=_interopRequireDefault(require_menuitemradioRole()),_meterRole=_interopRequireDefault(require_meterRole()),_navigationRole=_interopRequireDefault(require_navigationRole()),_noneRole=_interopRequireDefault(require_noneRole()),_noteRole=_interopRequireDefault(require_noteRole()),_optionRole=_interopRequireDefault(require_optionRole()),_paragraphRole=_interopRequireDefault(require_paragraphRole()),_presentationRole=_interopRequireDefault(require_presentationRole()),_progressbarRole=_interopRequireDefault(require_progressbarRole()),_radioRole=_interopRequireDefault(require_radioRole()),_radiogroupRole=_interopRequireDefault(require_radiogroupRole()),_regionRole=_interopRequireDefault(require_regionRole()),_rowRole=_interopRequireDefault(require_rowRole()),_rowgroupRole=_interopRequireDefault(require_rowgroupRole()),_rowheaderRole=_interopRequireDefault(require_rowheaderRole()),_scrollbarRole=_interopRequireDefault(require_scrollbarRole()),_searchRole=_interopRequireDefault(require_searchRole()),_searchboxRole=_interopRequireDefault(require_searchboxRole()),_separatorRole=_interopRequireDefault(require_separatorRole()),_sliderRole=_interopRequireDefault(require_sliderRole()),_spinbuttonRole=_interopRequireDefault(require_spinbuttonRole()),_statusRole=_interopRequireDefault(require_statusRole()),_strongRole=_interopRequireDefault(require_strongRole()),_subscriptRole=_interopRequireDefault(require_subscriptRole()),_superscriptRole=_interopRequireDefault(require_superscriptRole()),_switchRole=_interopRequireDefault(require_switchRole()),_tabRole=_interopRequireDefault(require_tabRole()),_tableRole=_interopRequireDefault(require_tableRole()),_tablistRole=_interopRequireDefault(require_tablistRole()),_tabpanelRole=_interopRequireDefault(require_tabpanelRole()),_termRole=_interopRequireDefault(require_termRole()),_textboxRole=_interopRequireDefault(require_textboxRole()),_timeRole=_interopRequireDefault(require_timeRole()),_timerRole=_interopRequireDefault(require_timerRole()),_toolbarRole=_interopRequireDefault(require_toolbarRole()),_tooltipRole=_interopRequireDefault(require_tooltipRole()),_treeRole=_interopRequireDefault(require_treeRole()),_treegridRole=_interopRequireDefault(require_treegridRole()),_treeitemRole=_interopRequireDefault(require_treeitemRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["alert",_alertRole.default],["alertdialog",_alertdialogRole.default],["application",_applicationRole.default],["article",_articleRole.default],["banner",_bannerRole.default],["blockquote",_blockquoteRole.default],["button",_buttonRole.default],["caption",_captionRole.default],["cell",_cellRole.default],["checkbox",_checkboxRole.default],["code",_codeRole.default],["columnheader",_columnheaderRole.default],["combobox",_comboboxRole.default],["complementary",_complementaryRole.default],["contentinfo",_contentinfoRole.default],["definition",_definitionRole.default],["deletion",_deletionRole.default],["dialog",_dialogRole.default],["directory",_directoryRole.default],["document",_documentRole.default],["emphasis",_emphasisRole.default],["feed",_feedRole.default],["figure",_figureRole.default],["form",_formRole.default],["generic",_genericRole.default],["grid",_gridRole.default],["gridcell",_gridcellRole.default],["group",_groupRole.default],["heading",_headingRole.default],["img",_imgRole.default],["insertion",_insertionRole.default],["link",_linkRole.default],["list",_listRole.default],["listbox",_listboxRole.default],["listitem",_listitemRole.default],["log",_logRole.default],["main",_mainRole.default],["mark",_markRole.default],["marquee",_marqueeRole.default],["math",_mathRole.default],["menu",_menuRole.default],["menubar",_menubarRole.default],["menuitem",_menuitemRole.default],["menuitemcheckbox",_menuitemcheckboxRole.default],["menuitemradio",_menuitemradioRole.default],["meter",_meterRole.default],["navigation",_navigationRole.default],["none",_noneRole.default],["note",_noteRole.default],["option",_optionRole.default],["paragraph",_paragraphRole.default],["presentation",_presentationRole.default],["progressbar",_progressbarRole.default],["radio",_radioRole.default],["radiogroup",_radiogroupRole.default],["region",_regionRole.default],["row",_rowRole.default],["rowgroup",_rowgroupRole.default],["rowheader",_rowheaderRole.default],["scrollbar",_scrollbarRole.default],["search",_searchRole.default],["searchbox",_searchboxRole.default],["separator",_separatorRole.default],["slider",_sliderRole.default],["spinbutton",_spinbuttonRole.default],["status",_statusRole.default],["strong",_strongRole.default],["subscript",_subscriptRole.default],["superscript",_superscriptRole.default],["switch",_switchRole.default],["tab",_tabRole.default],["table",_tableRole.default],["tablist",_tablistRole.default],["tabpanel",_tabpanelRole.default],["term",_termRole.default],["textbox",_textboxRole.default],["time",_timeRole.default],["timer",_timerRole.default],["toolbar",_toolbarRole.default],["tooltip",_tooltipRole.default],["tree",_treeRole.default],["treegrid",_treegridRole.default],["treeitem",_treeitemRole.default]];exports.default=_default2}}),require_docAbstractRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docAcknowledgmentsRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docAfterwordRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docAppendixRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docBacklinkRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docBiblioentryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};exports.default=_default2}}),require_docBibliographyRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docBibliorefRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docChapterRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docColophonRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docConclusionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docCoverRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};exports.default=_default2}}),require_docCreditRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docCreditsRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docDedicationRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docEndnoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};exports.default=_default2}}),require_docEndnotesRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docEpigraphRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docEpilogueRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docErrataRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docExampleRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docFootnoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docForewordRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docGlossaryRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docGlossrefRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docIndexRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};exports.default=_default2}}),require_docIntroductionRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docNoterefRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};exports.default=_default2}}),require_docNoticeRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};exports.default=_default2}}),require_docPagebreakRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};exports.default=_default2}}),require_docPagelistRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};exports.default=_default2}}),require_docPartRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docPrefaceRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docPrologueRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};exports.default=_default2}}),require_docPullquoteRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};exports.default=_default2}}),require_docQnaRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};exports.default=_default2}}),require_docSubtitleRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};exports.default=_default2}}),require_docTipRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};exports.default=_default2}}),require_docTocRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};exports.default=_default2}}),require_ariaDpubRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _docAbstractRole=_interopRequireDefault(require_docAbstractRole()),_docAcknowledgmentsRole=_interopRequireDefault(require_docAcknowledgmentsRole()),_docAfterwordRole=_interopRequireDefault(require_docAfterwordRole()),_docAppendixRole=_interopRequireDefault(require_docAppendixRole()),_docBacklinkRole=_interopRequireDefault(require_docBacklinkRole()),_docBiblioentryRole=_interopRequireDefault(require_docBiblioentryRole()),_docBibliographyRole=_interopRequireDefault(require_docBibliographyRole()),_docBibliorefRole=_interopRequireDefault(require_docBibliorefRole()),_docChapterRole=_interopRequireDefault(require_docChapterRole()),_docColophonRole=_interopRequireDefault(require_docColophonRole()),_docConclusionRole=_interopRequireDefault(require_docConclusionRole()),_docCoverRole=_interopRequireDefault(require_docCoverRole()),_docCreditRole=_interopRequireDefault(require_docCreditRole()),_docCreditsRole=_interopRequireDefault(require_docCreditsRole()),_docDedicationRole=_interopRequireDefault(require_docDedicationRole()),_docEndnoteRole=_interopRequireDefault(require_docEndnoteRole()),_docEndnotesRole=_interopRequireDefault(require_docEndnotesRole()),_docEpigraphRole=_interopRequireDefault(require_docEpigraphRole()),_docEpilogueRole=_interopRequireDefault(require_docEpilogueRole()),_docErrataRole=_interopRequireDefault(require_docErrataRole()),_docExampleRole=_interopRequireDefault(require_docExampleRole()),_docFootnoteRole=_interopRequireDefault(require_docFootnoteRole()),_docForewordRole=_interopRequireDefault(require_docForewordRole()),_docGlossaryRole=_interopRequireDefault(require_docGlossaryRole()),_docGlossrefRole=_interopRequireDefault(require_docGlossrefRole()),_docIndexRole=_interopRequireDefault(require_docIndexRole()),_docIntroductionRole=_interopRequireDefault(require_docIntroductionRole()),_docNoterefRole=_interopRequireDefault(require_docNoterefRole()),_docNoticeRole=_interopRequireDefault(require_docNoticeRole()),_docPagebreakRole=_interopRequireDefault(require_docPagebreakRole()),_docPagelistRole=_interopRequireDefault(require_docPagelistRole()),_docPartRole=_interopRequireDefault(require_docPartRole()),_docPrefaceRole=_interopRequireDefault(require_docPrefaceRole()),_docPrologueRole=_interopRequireDefault(require_docPrologueRole()),_docPullquoteRole=_interopRequireDefault(require_docPullquoteRole()),_docQnaRole=_interopRequireDefault(require_docQnaRole()),_docSubtitleRole=_interopRequireDefault(require_docSubtitleRole()),_docTipRole=_interopRequireDefault(require_docTipRole()),_docTocRole=_interopRequireDefault(require_docTocRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["doc-abstract",_docAbstractRole.default],["doc-acknowledgments",_docAcknowledgmentsRole.default],["doc-afterword",_docAfterwordRole.default],["doc-appendix",_docAppendixRole.default],["doc-backlink",_docBacklinkRole.default],["doc-biblioentry",_docBiblioentryRole.default],["doc-bibliography",_docBibliographyRole.default],["doc-biblioref",_docBibliorefRole.default],["doc-chapter",_docChapterRole.default],["doc-colophon",_docColophonRole.default],["doc-conclusion",_docConclusionRole.default],["doc-cover",_docCoverRole.default],["doc-credit",_docCreditRole.default],["doc-credits",_docCreditsRole.default],["doc-dedication",_docDedicationRole.default],["doc-endnote",_docEndnoteRole.default],["doc-endnotes",_docEndnotesRole.default],["doc-epigraph",_docEpigraphRole.default],["doc-epilogue",_docEpilogueRole.default],["doc-errata",_docErrataRole.default],["doc-example",_docExampleRole.default],["doc-footnote",_docFootnoteRole.default],["doc-foreword",_docForewordRole.default],["doc-glossary",_docGlossaryRole.default],["doc-glossref",_docGlossrefRole.default],["doc-index",_docIndexRole.default],["doc-introduction",_docIntroductionRole.default],["doc-noteref",_docNoterefRole.default],["doc-notice",_docNoticeRole.default],["doc-pagebreak",_docPagebreakRole.default],["doc-pagelist",_docPagelistRole.default],["doc-part",_docPartRole.default],["doc-preface",_docPrefaceRole.default],["doc-prologue",_docPrologueRole.default],["doc-pullquote",_docPullquoteRole.default],["doc-qna",_docQnaRole.default],["doc-subtitle",_docSubtitleRole.default],["doc-tip",_docTipRole.default],["doc-toc",_docTocRole.default]];exports.default=_default2}}),require_graphicsDocumentRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};exports.default=_default2}}),require_graphicsObjectRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};exports.default=_default2}}),require_graphicsSymbolRole=__commonJS({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default2={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};exports.default=_default2}}),require_ariaGraphicsRoles=__commonJS({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _graphicsDocumentRole=_interopRequireDefault(require_graphicsDocumentRole()),_graphicsObjectRole=_interopRequireDefault(require_graphicsObjectRole()),_graphicsSymbolRole=_interopRequireDefault(require_graphicsSymbolRole());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default2=[["graphics-document",_graphicsDocumentRole.default],["graphics-object",_graphicsObjectRole.default],["graphics-symbol",_graphicsSymbolRole.default]];exports.default=_default2}}),require_rolesMap=__commonJS({"../../node_modules/aria-query/lib/rolesMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _ariaAbstractRoles=_interopRequireDefault(require_ariaAbstractRoles()),_ariaLiteralRoles=_interopRequireDefault(require_ariaLiteralRoles()),_ariaDpubRoles=_interopRequireDefault(require_ariaDpubRoles()),_ariaGraphicsRoles=_interopRequireDefault(require_ariaGraphicsRoles()),_iterationDecorator=_interopRequireDefault(require_iterationDecorator());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return{s:F,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,_iterator3=_createForOfIteratorHelper(roles3);try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _step3$value=_slicedToArray(_step3.value,2),key=_step3$value[0],values=_step3$value[1];fn3.call(thisArg,values,key,roles3)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}},get:function(key){var item=roles3.find((function(tuple){return tuple[0]===key}));return item&&item[1]},has:function(key){return!!rolesMap.get(key)},keys:function(){return roles3.map((function(_ref5){return _slicedToArray(_ref5,1)[0]}))},values:function(){return roles3.map((function(_ref7){return _slicedToArray(_ref7,2)[1]}))}},_default2=(0,_iterationDecorator.default)(rolesMap,rolesMap.entries());exports.default=_default2}}),require_lite=__commonJS({"../../node_modules/dequal/lite/index.js"(exports){var has=Object.prototype.hasOwnProperty;exports.dequal=function dequal(foo,bar){var ctor,len;if(foo===bar)return!0;if(foo&&bar&&(ctor=foo.constructor)===bar.constructor){if(ctor===Date)return foo.getTime()===bar.getTime();if(ctor===RegExp)return foo.toString()===bar.toString();if(ctor===Array){if((len=foo.length)===bar.length)for(;len--&&dequal(foo[len],bar[len]););return-1===len}if(!ctor||"object"==typeof foo){for(ctor in len=0,foo)if(has.call(foo,ctor)&&++len&&!has.call(bar,ctor)||!(ctor in bar)||!dequal(foo[ctor],bar[ctor]))return!1;return Object.keys(bar).length===len}}return foo!=foo&&bar!=bar}}}),require_elementRoleMap=__commonJS({"../../node_modules/aria-query/lib/elementRoleMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _lite=require_lite(),_iterationDecorator=_interopRequireDefault(require_iterationDecorator()),_rolesMap=_interopRequireDefault(require_rolesMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i2){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i2||_arr.length!==i2);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i2)||_unsupportedIterableToArray(arr,i2)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i21&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i2=0,F=function(){};return{s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(elementRoles3);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,elementRoles3)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=elementRoles3.find((function(tuple){return key2.name===tuple[0].name&&(0,_lite.dequal)(key2.attributes,tuple[0].attributes)}));return item&&item[1]},has:function(key2){return!!elementRoleMap.get(key2)},keys:function(){return elementRoles3.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return elementRoles3.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(elementRoleMap,elementRoleMap.entries());exports.default=_default2}}),require_roleElementMap=__commonJS({"../../node_modules/aria-query/lib/roleElementMap.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _iterationDecorator=_interopRequireDefault(require_iterationDecorator()),_rolesMap=_interopRequireDefault(require_rolesMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i2){var _i=null==arr?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i2||_arr.length!==i2);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&null!=_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}}(arr,i2)||_unsupportedIterableToArray(arr,i2)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i20&&roleElement.push([key,relationConcepts])}var key,role,relationConcepts,concepts,relation,concept,k2,i,roleElementMap={entries:function(){return roleElement},forEach:function(fn3){var _step,thisArg=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_iterator=function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i2=0,F=function(){};return{s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&null!=it.return&&it.return()}finally{if(didErr)throw err}}}}(roleElement);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,roleElement)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=roleElement.find((function(tuple){return tuple[0]===key2}));return item&&item[1]},has:function(key2){return!!roleElementMap.get(key2)},keys:function(){return roleElement.map((function(_ref){return _slicedToArray(_ref,1)[0]}))},values:function(){return roleElement.map((function(_ref3){return _slicedToArray(_ref3,2)[1]}))}},_default2=(0,_iterationDecorator.default)(roleElementMap,roleElementMap.entries());exports.default=_default2}}),require_lib=__commonJS({"../../node_modules/aria-query/lib/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.roles=exports.roleElements=exports.elementRoles=exports.dom=exports.aria=void 0;var _ariaPropsMap=_interopRequireDefault(require_ariaPropsMap()),_domMap=_interopRequireDefault(require_domMap()),_rolesMap=_interopRequireDefault(require_rolesMap()),_elementRoleMap=_interopRequireDefault(require_elementRoleMap()),_roleElementMap=_interopRequireDefault(require_roleElementMap());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var aria=_ariaPropsMap.default;exports.aria=aria;var dom=_domMap.default;exports.dom=dom;var roles3=_rolesMap.default;exports.roles=roles3;var elementRoles3=_elementRoleMap.default;exports.elementRoles=elementRoles3;var roleElements2=_roleElementMap.default;exports.roleElements=roleElements2}}),require_color_name=__commonJS({"../../node_modules/color-name/index.js"(exports,module2){module2.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),require_conversions=__commonJS({"../../node_modules/color-convert/conversions.js"(exports,module2){var cssKeywords=require_color_name(),reverseKeywords={};for(let key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;var convert={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};module2.exports=convert;for(let model of Object.keys(convert)){if(!("channels"in convert[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert[model]))throw new Error("missing channel labels property: "+model);if(convert[model].labels.length!==convert[model].channels)throw new Error("channel and label counts mismatch: "+model);let{channels:channels,labels:labels}=convert[model];delete convert[model].channels,delete convert[model].labels,Object.defineProperty(convert[model],"channels",{value:channels}),Object.defineProperty(convert[model],"labels",{value:labels})}convert.rgb.hsl=function(rgb){let h2,s,r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g3,b),max=Math.max(r,g3,b),delta=max-min;max===min?h2=0:r===max?h2=(g3-b)/delta:g3===max?h2=2+(b-r)/delta:b===max&&(h2=4+(r-g3)/delta),h2=Math.min(60*h2,360),h2<0&&(h2+=360);let l=(min+max)/2;return s=max===min?0:l<=.5?delta/(max+min):delta/(2-max-min),[h2,100*s,100*l]},convert.rgb.hsv=function(rgb){let rdif,gdif,bdif,h2,s,r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g3,b),diff2=v-Math.min(r,g3,b),diffc=function(c){return(v-c)/6/diff2+.5};return 0===diff2?(h2=0,s=0):(s=diff2/v,rdif=diffc(r),gdif=diffc(g3),bdif=diffc(b),r===v?h2=bdif-gdif:g3===v?h2=1/3+rdif-bdif:b===v&&(h2=2/3+gdif-rdif),h2<0?h2+=1:h2>1&&(h2-=1)),[360*h2,100*s,100*v]},convert.rgb.hwb=function(rgb){let r=rgb[0],g3=rgb[1],b=rgb[2],h2=convert.rgb.hsl(rgb)[0],w2=1/255*Math.min(r,Math.min(g3,b));return b=1-1/255*Math.max(r,Math.max(g3,b)),[h2,100*w2,100*b]},convert.rgb.cmyk=function(rgb){let r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,k2=Math.min(1-r,1-g3,1-b);return[100*((1-r-k2)/(1-k2)||0),100*((1-g3-k2)/(1-k2)||0),100*((1-b-k2)/(1-k2)||0),100*k2]},convert.rgb.keyword=function(rgb){let reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestKeyword,currentClosestDistance=1/0;for(let keyword of Object.keys(cssKeywords)){let value=cssKeywords[keyword],distance=(y2=value,((x2=rgb)[0]-y2[0])**2+(x2[1]-y2[1])**2+(x2[2]-y2[2])**2);distance.04045?((r+.055)/1.055)**2.4:r/12.92,g3=g3>.04045?((g3+.055)/1.055)**2.4:g3/12.92,b=b>.04045?((b+.055)/1.055)**2.4:b/12.92,[100*(.4124*r+.3576*g3+.1805*b),100*(.2126*r+.7152*g3+.0722*b),100*(.0193*r+.1192*g3+.9505*b)]},convert.rgb.lab=function(rgb){let xyz=convert.rgb.xyz(rgb),x2=xyz[0],y2=xyz[1],z=xyz[2];return x2/=95.047,y2/=100,z/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z=z>.008856?z**(1/3):7.787*z+16/116,[116*y2-16,500*(x2-y2),200*(y2-z)]},convert.hsl.rgb=function(hsl){let t2,t3,val,h2=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return val=255*l,[val,val,val];t2=l<.5?l*(1+s):l+s-l*s;let t1=2*l-t2,rgb=[0,0,0];for(let i=0;i<3;i++)t3=h2+1/3*-(i-1),t3<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i]=255*val;return rgb},convert.hsl.hsv=function(hsl){let h2=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return l*=2,s*=l<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h2,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert.hsv.rgb=function(hsv){let h2=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h2)%6,f4=h2-Math.floor(h2),p3=255*v*(1-s),q=255*v*(1-s*f4),t=255*v*(1-s*(1-f4));switch(v*=255,hi){case 0:return[v,t,p3];case 1:return[q,v,p3];case 2:return[p3,v,t];case 3:return[p3,q,v];case 4:return[t,p3,v];case 5:return[v,p3,q]}},convert.hsv.hsl=function(hsv){let sl,l,h2=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);l=(2-s)*v;let lmin=(2-s)*vmin;return sl=s*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l/=2,[h2,100*sl,100*l]},convert.hwb.rgb=function(hwb){let f4,h2=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);let i=Math.floor(6*h2),v=1-bl;f4=6*h2-i,1&i&&(f4=1-f4);let r,g3,b,n=wh+f4*(v-wh);switch(i){default:case 6:case 0:r=v,g3=n,b=wh;break;case 1:r=n,g3=v,b=wh;break;case 2:r=wh,g3=v,b=n;break;case 3:r=wh,g3=n,b=v;break;case 4:r=n,g3=wh,b=v;break;case 5:r=v,g3=wh,b=n}return[255*r,255*g3,255*b]},convert.cmyk.rgb=function(cmyk){let c=cmyk[0]/100,m2=cmyk[1]/100,y2=cmyk[2]/100,k2=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k2)+k2)),255*(1-Math.min(1,m2*(1-k2)+k2)),255*(1-Math.min(1,y2*(1-k2)+k2))]},convert.xyz.rgb=function(xyz){let r,g3,b,x2=xyz[0]/100,y2=xyz[1]/100,z=xyz[2]/100;return r=3.2406*x2+-1.5372*y2+-.4986*z,g3=-.9689*x2+1.8758*y2+.0415*z,b=.0557*x2+-.204*y2+1.057*z,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,g3=g3>.0031308?1.055*g3**(1/2.4)-.055:12.92*g3,b=b>.0031308?1.055*b**(1/2.4)-.055:12.92*b,r=Math.min(Math.max(0,r),1),g3=Math.min(Math.max(0,g3),1),b=Math.min(Math.max(0,b),1),[255*r,255*g3,255*b]},convert.xyz.lab=function(xyz){let x2=xyz[0],y2=xyz[1],z=xyz[2];return x2/=95.047,y2/=100,z/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z=z>.008856?z**(1/3):7.787*z+16/116,[116*y2-16,500*(x2-y2),200*(y2-z)]},convert.lab.xyz=function(lab){let x2,y2,z;y2=(lab[0]+16)/116,x2=lab[1]/500+y2,z=y2-lab[2]/200;let y22=y2**3,x22=x2**3,z2=z**3;return y2=y22>.008856?y22:(y2-16/116)/7.787,x2=x22>.008856?x22:(x2-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,x2*=95.047,y2*=100,z*=108.883,[x2,y2,z]},convert.lab.lch=function(lab){let h2,l=lab[0],a2=lab[1],b=lab[2];return h2=360*Math.atan2(b,a2)/2/Math.PI,h2<0&&(h2+=360),[l,Math.sqrt(a2*a2+b*b),h2]},convert.lch.lab=function(lch){let l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert.rgb.ansi16=function(args,saturation=null){let[r,g3,b]=args,value=null===saturation?convert.rgb.hsv(args)[2]:saturation;if(value=Math.round(value/50),0===value)return 30;let ansi=30+(Math.round(b/255)<<2|Math.round(g3/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert.hsv.ansi16=function(args){return convert.rgb.ansi16(convert.hsv.rgb(args),args[2])},convert.rgb.ansi256=function(args){let r=args[0],g3=args[1],b=args[2];return r===g3&&g3===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g3/255*5)+Math.round(b/255*5)},convert.ansi16.rgb=function(args){let color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),color=color/10.5*255,[color,color,color];let mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert.ansi256.rgb=function(args){if(args>=232){let c=10*(args-232)+8;return[c,c,c]}let rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert.rgb.hex=function(args){let string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.hex.rgb=function(args){let match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];let colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((char=>char+char)).join(""));let integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert.rgb.hcg=function(rgb){let grayscale,hue,r=rgb[0]/255,g3=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g3),b),min=Math.min(Math.min(r,g3),b),chroma=max-min;return grayscale=chroma<1?min/(1-chroma):0,hue=chroma<=0?0:max===r?(g3-b)/chroma%6:max===g3?2+(b-r)/chroma:4+(r-g3)/chroma,hue/=6,hue%=1,[360*hue,100*chroma,100*grayscale]},convert.hsl.hcg=function(hsl){let s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l),f4=0;return c<1&&(f4=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f4]},convert.hsv.hcg=function(hsv){let s=hsv[1]/100,v=hsv[2]/100,c=s*v,f4=0;return c<1&&(f4=(v-c)/(1-c)),[hsv[0],100*c,100*f4]},convert.hcg.rgb=function(hcg){let h2=hcg[0]/360,c=hcg[1]/100,g3=hcg[2]/100;if(0===c)return[255*g3,255*g3,255*g3];let pure=[0,0,0],hi=h2%1*6,v=hi%1,w2=1-v,mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w2,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w2,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w2}return mg=(1-c)*g3,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert.hcg.hsv=function(hcg){let c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f4=0;return v>0&&(f4=c/v),[hcg[0],100*f4,100*v]},convert.hcg.hsl=function(hcg){let c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert.hcg.hwb=function(hcg){let c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert.hwb.hcg=function(hwb){let w2=hwb[1]/100,v=1-hwb[2]/100,c=v-w2,g3=0;return c<1&&(g3=(v-c)/(1-c)),[hwb[0],100*c,100*g3]},convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert.gray.hsl=function(args){return[0,0,args[0]]},convert.gray.hsv=convert.gray.hsl,convert.gray.hwb=function(gray){return[0,100,gray[0]]},convert.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert.gray.lab=function(gray){return[gray[0],0,0]},convert.gray.hex=function(gray){let val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}}}),require_route=__commonJS({"../../node_modules/color-convert/route.js"(exports,module2){var conversions=require_conversions();function deriveBFS(fromModel){let graph=function buildGraph(){let graph={},models=Object.keys(conversions);for(let len=models.length,i=0;i{convert[fromModel]={},Object.defineProperty(convert[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert[fromModel],"labels",{value:conversions[fromModel].labels});let routes=route(fromModel);Object.keys(routes).forEach((toModel=>{let fn3=routes[toModel];convert[fromModel][toModel]=function wrapRounded(fn3){let wrappedFn=function(...args){let arg0=args[0];if(null==arg0)return arg0;arg0.length>1&&(args=arg0);let result=fn3(args);if("object"==typeof result)for(let len=result.length,i=0;i1&&(args=arg0),fn3(args))};return"conversion"in fn3&&(wrappedFn.conversion=fn3.conversion),wrappedFn}(fn3)}))})),module2.exports=convert}}),require_ansi_styles=__commonJS({"../../node_modules/ansi-styles/index.js"(exports,module2){var colorConvert,wrapAnsi16=(fn3,offset)=>(...args)=>`[${fn3(...args)+offset}m`,wrapAnsi256=(fn3,offset)=>(...args)=>{let code=fn3(...args);return`[${38+offset};5;${code}m`},wrapAnsi16m=(fn3,offset)=>(...args)=>{let rgb=fn3(...args);return`[${38+offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`},ansi2ansi=n=>n,rgb2rgb=(r,g3,b)=>[r,g3,b],setLazyProperty=(object,property,get2)=>{Object.defineProperty(object,property,{get:()=>{let value=get2();return Object.defineProperty(object,property,{value:value,enumerable:!0,configurable:!0}),value},enumerable:!0,configurable:!0})},makeDynamicStyles=(wrap,targetSpace,identity,isBackground)=>{void 0===colorConvert&&(colorConvert=require_color_convert());let offset=isBackground?10:0,styles3={};for(let[sourceSpace,suite]of Object.entries(colorConvert)){let name="ansi16"===sourceSpace?"ansi":sourceSpace;sourceSpace===targetSpace?styles3[name]=wrap(identity,offset):"object"==typeof suite&&(styles3[name]=wrap(suite[targetSpace],offset))}return styles3};Object.defineProperty(module2,"exports",{enumerable:!0,get:function assembleStyles(){let codes=new Map,styles3={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles3.color.gray=styles3.color.blackBright,styles3.bgColor.bgGray=styles3.bgColor.bgBlackBright,styles3.color.grey=styles3.color.blackBright,styles3.bgColor.bgGrey=styles3.bgColor.bgBlackBright;for(let[groupName,group]of Object.entries(styles3)){for(let[styleName,style]of Object.entries(group))styles3[styleName]={open:`[${style[0]}m`,close:`[${style[1]}m`},group[styleName]=styles3[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles3,groupName,{value:group,enumerable:!1})}return Object.defineProperty(styles3,"codes",{value:codes,enumerable:!1}),styles3.color.close="",styles3.bgColor.close="",setLazyProperty(styles3.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!1))),setLazyProperty(styles3.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!1))),setLazyProperty(styles3.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!1))),setLazyProperty(styles3.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,!0))),setLazyProperty(styles3.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,!0))),setLazyProperty(styles3.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,!0))),styles3}})}}),require_browser=__commonJS({"../../node_modules/supports-color/browser.js"(exports,module2){module2.exports={stdout:!1,stderr:!1}}}),require_util2=__commonJS({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(exports,module2){module2.exports={stringReplaceAll:(string,substring,replacer)=>{let index=string.indexOf(substring);if(-1===index)return string;let substringLength=substring.length,endIndex=0,returnValue="";do{returnValue+=string.substr(endIndex,index-endIndex)+substring+replacer,endIndex=index+substringLength,index=string.indexOf(substring,endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue},stringEncaseCRLFWithFirstIndex:(string,prefix,postfix,index)=>{let endIndex=0,returnValue="";do{let gotCR="\r"===string[index-1];returnValue+=string.substr(endIndex,(gotCR?index-1:index)-endIndex)+prefix+(gotCR?"\r\n":"\n")+postfix,endIndex=index+1,index=string.indexOf("\n",endIndex)}while(-1!==index);return returnValue+=string.substr(endIndex),returnValue}}}}),require_templates=__commonJS({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(exports,module2){var TEMPLATE_REGEX=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(c){let u2="u"===c[0],bracket="{"===c[1];return u2&&!bracket&&5===c.length||"x"===c[0]&&3===c.length?String.fromCharCode(parseInt(c.slice(1),16)):u2&&bracket?String.fromCodePoint(parseInt(c.slice(2,-1),16)):ESCAPES.get(c)||c}function parseArguments(name,arguments_){let matches3,results=[],chunks=arguments_.trim().split(/\s*,\s*/g);for(let chunk of chunks){let number=Number(chunk);if(Number.isNaN(number)){if(!(matches3=chunk.match(STRING_REGEX)))throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);results.push(matches3[2].replace(ESCAPE_REGEX,((m2,escape4,character)=>escape4?unescape(escape4):character)))}else results.push(number)}return results}function parseStyle(style){STYLE_REGEX.lastIndex=0;let matches3,results=[];for(;null!==(matches3=STYLE_REGEX.exec(style));){let name=matches3[1];if(matches3[2]){let args=parseArguments(name,matches3[2]);results.push([name].concat(args))}else results.push([name])}return results}function buildStyle(chalk3,styles3){let enabled={};for(let layer of styles3)for(let style of layer.styles)enabled[style[0]]=layer.inverse?null:style.slice(1);let current=chalk3;for(let[styleName,styles4]of Object.entries(enabled))if(Array.isArray(styles4)){if(!(styleName in current))throw new Error(`Unknown Chalk style: ${styleName}`);current=styles4.length>0?current[styleName](...styles4):current[styleName]}return current}module2.exports=(chalk3,temporary)=>{let styles3=[],chunks=[],chunk=[];if(temporary.replace(TEMPLATE_REGEX,((m2,escapeCharacter,inverse,style,close,character)=>{if(escapeCharacter)chunk.push(unescape(escapeCharacter));else if(style){let string=chunk.join("");chunk=[],chunks.push(0===styles3.length?string:buildStyle(chalk3,styles3)(string)),styles3.push({inverse:inverse,styles:parseStyle(style)})}else if(close){if(0===styles3.length)throw new Error("Found extraneous } in Chalk template literal");chunks.push(buildStyle(chalk3,styles3)(chunk.join(""))),chunk=[],styles3.pop()}else chunk.push(character)})),chunks.push(chunk.join("")),styles3.length>0){let errMsg=`Chalk template literal is missing ${styles3.length} closing bracket${1===styles3.length?"":"s"} (\`}\`)`;throw new Error(errMsg)}return chunks.join("")}}}),require_source=__commonJS({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(exports,module2){var ansiStyles=require_ansi_styles(),{stdout:stdoutColor,stderr:stderrColor}=require_browser(),{stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}=require_util2(),levelMapping=["ansi","ansi","ansi256","ansi16m"],styles3=Object.create(null),ChalkClass=class{constructor(options){return chalkFactory(options)}},chalkFactory=options=>{let chalk4={};return((object,options={})=>{if(options.level>3||options.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let colorLevel=stdoutColor?stdoutColor.level:0;object.level=void 0===options.level?colorLevel:options.level})(chalk4,options),chalk4.template=(...arguments_)=>chalkTag(chalk4.template,...arguments_),Object.setPrototypeOf(chalk4,Chalk.prototype),Object.setPrototypeOf(chalk4.template,chalk4),chalk4.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},chalk4.template.Instance=ChalkClass,chalk4.template};function Chalk(options){return chalkFactory(options)}for(let[styleName,style]of Object.entries(ansiStyles))styles3[styleName]={get(){let builder=createBuilder(this,createStyler(style.open,style.close,this._styler),this._isEmpty);return Object.defineProperty(this,styleName,{value:builder}),builder}};styles3.visible={get(){let builder=createBuilder(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:builder}),builder}};var usedModels=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let model of usedModels)styles3[model]={get(){let{level:level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_),ansiStyles.color.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}};for(let model of usedModels){styles3["bg"+model[0].toUpperCase()+model.slice(1)]={get(){let{level:level}=this;return function(...arguments_){let styler=createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_),ansiStyles.bgColor.close,this._styler);return createBuilder(this,styler,this._isEmpty)}}}}var template,proto=Object.defineProperties((()=>{}),{...styles3,level:{enumerable:!0,get(){return this._generator.level},set(level){this._generator.level=level}}}),createStyler=(open,close,parent)=>{let openAll,closeAll;return void 0===parent?(openAll=open,closeAll=close):(openAll=parent.openAll+open,closeAll=close+parent.closeAll),{open:open,close:close,openAll:openAll,closeAll:closeAll,parent:parent}},createBuilder=(self2,_styler,_isEmpty)=>{let builder=(...arguments_)=>applyStyle(builder,1===arguments_.length?""+arguments_[0]:arguments_.join(" "));return builder.__proto__=proto,builder._generator=self2,builder._styler=_styler,builder._isEmpty=_isEmpty,builder},applyStyle=(self2,string)=>{if(self2.level<=0||!string)return self2._isEmpty?"":string;let styler=self2._styler;if(void 0===styler)return string;let{openAll:openAll,closeAll:closeAll}=styler;if(-1!==string.indexOf(""))for(;void 0!==styler;)string=stringReplaceAll(string,styler.close,styler.open),styler=styler.parent;let lfIndex=string.indexOf("\n");return-1!==lfIndex&&(string=stringEncaseCRLFWithFirstIndex(string,closeAll,openAll,lfIndex)),openAll+string+closeAll},chalkTag=(chalk4,...strings)=>{let[firstString]=strings;if(!Array.isArray(firstString))return strings.join(" ");let arguments_=strings.slice(1),parts=[firstString.raw[0]];for(let i=1;i-1}}}),require_listCacheSet=__commonJS({"../../node_modules/lodash/_listCacheSet.js"(exports,module2){var assocIndexOf=require_assocIndexOf();module2.exports=function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}}}),require_ListCache=__commonJS({"../../node_modules/lodash/_ListCache.js"(exports,module2){var listCacheClear=require_listCacheClear(),listCacheDelete=require_listCacheDelete(),listCacheGet=require_listCacheGet(),listCacheHas=require_listCacheHas(),listCacheSet=require_listCacheSet();function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++indexarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1&&value%1==0&&value<=9007199254740991}}}),require_baseIsTypedArray=__commonJS({"../../node_modules/lodash/_baseIsTypedArray.js"(exports,module2){var baseGetTag=require_baseGetTag(),isLength=require_isLength(),isObjectLike=require_isObjectLike(),typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1,module2.exports=function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}}}),require_baseUnary=__commonJS({"../../node_modules/lodash/_baseUnary.js"(exports,module2){module2.exports=function baseUnary(func){return function(value){return func(value)}}}}),require_nodeUtil=__commonJS({"../../node_modules/lodash/_nodeUtil.js"(exports,module2){var freeGlobal=require_freeGlobal(),freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module2&&module2&&!module2.nodeType&&module2,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{return freeModule&&freeModule.require&&freeModule.require("util").types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();module2.exports=nodeUtil}}),require_isTypedArray=__commonJS({"../../node_modules/lodash/isTypedArray.js"(exports,module2){var baseIsTypedArray=require_baseIsTypedArray(),baseUnary=require_baseUnary(),nodeUtil=require_nodeUtil(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module2.exports=isTypedArray}}),require_arrayLikeKeys=__commonJS({"../../node_modules/lodash/_arrayLikeKeys.js"(exports,module2){var baseTimes=require_baseTimes(),isArguments=require_isArguments(),isArray=require_isArray(),isBuffer=require_isBuffer(),isIndex=require_isIndex(),isTypedArray=require_isTypedArray(),hasOwnProperty=Object.prototype.hasOwnProperty;module2.exports=function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)(inherited||hasOwnProperty.call(value,key))&&(!skipIndexes||!("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length)))&&result.push(key);return result}}}),require_isPrototype=__commonJS({"../../node_modules/lodash/_isPrototype.js"(exports,module2){var objectProto=Object.prototype;module2.exports=function isPrototype(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto)}}}),require_overArg=__commonJS({"../../node_modules/lodash/_overArg.js"(exports,module2){module2.exports=function overArg(func,transform){return function(arg){return func(transform(arg))}}}}),require_nativeKeys=__commonJS({"../../node_modules/lodash/_nativeKeys.js"(exports,module2){var nativeKeys=require_overArg()(Object.keys,Object);module2.exports=nativeKeys}}),require_baseKeys=__commonJS({"../../node_modules/lodash/_baseKeys.js"(exports,module2){var isPrototype=require_isPrototype(),nativeKeys=require_nativeKeys(),hasOwnProperty=Object.prototype.hasOwnProperty;module2.exports=function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=key&&result.push(key);return result}}}),require_isArrayLike=__commonJS({"../../node_modules/lodash/isArrayLike.js"(exports,module2){var isFunction=require_isFunction(),isLength=require_isLength();module2.exports=function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}}}),require_keys=__commonJS({"../../node_modules/lodash/keys.js"(exports,module2){var arrayLikeKeys=require_arrayLikeKeys(),baseKeys=require_baseKeys(),isArrayLike=require_isArrayLike();module2.exports=function keys2(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}}}),require_getAllKeys=__commonJS({"../../node_modules/lodash/_getAllKeys.js"(exports,module2){var baseGetAllKeys=require_baseGetAllKeys(),getSymbols=require_getSymbols(),keys2=require_keys();module2.exports=function getAllKeys(object){return baseGetAllKeys(object,keys2,getSymbols)}}}),require_equalObjects=__commonJS({"../../node_modules/lodash/_equalObjects.js"(exports,module2){var getAllKeys=require_getAllKeys(),hasOwnProperty=Object.prototype.hasOwnProperty;module2.exports=function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,objProps=getAllKeys(object),objLength=objProps.length;if(objLength!=getAllKeys(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index=1&&codeUnit<=31||127==codeUnit||0==index&&codeUnit>=48&&codeUnit<=57||1==index&&codeUnit>=48&&codeUnit<=57&&45==firstCodeUnit?"\\"+codeUnit.toString(16)+" ":0==index&&1==length&&45==codeUnit||!(codeUnit>=128||45==codeUnit||95==codeUnit||codeUnit>=48&&codeUnit<=57||codeUnit>=65&&codeUnit<=90||codeUnit>=97&&codeUnit<=122)?"\\"+string.charAt(index):string.charAt(index):result+="�";return result};return root.CSS||(root.CSS={}),root.CSS.escape=cssEscape,cssEscape},"object"==typeof exports?module2.exports=factory(root):"function"==typeof define&&__webpack_require__.amdO?define([],factory.bind(root,root)):factory(root)}}),require_ansi_styles2=__commonJS({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports,module2){var wrapAnsi256=(offset=0)=>code=>`[${38+offset};5;${code}m`,wrapAnsi16m=(offset=0)=>(red,green,blue)=>`[${38+offset};2;${red};${green};${blue}m`;Object.defineProperty(module2,"exports",{enumerable:!0,get:function assembleStyles(){let codes=new Map,styles3={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};styles3.color.gray=styles3.color.blackBright,styles3.bgColor.bgGray=styles3.bgColor.bgBlackBright,styles3.color.grey=styles3.color.blackBright,styles3.bgColor.bgGrey=styles3.bgColor.bgBlackBright;for(let[groupName,group]of Object.entries(styles3)){for(let[styleName,style]of Object.entries(group))styles3[styleName]={open:`[${style[0]}m`,close:`[${style[1]}m`},group[styleName]=styles3[styleName],codes.set(style[0],style[1]);Object.defineProperty(styles3,groupName,{value:group,enumerable:!1})}return Object.defineProperty(styles3,"codes",{value:codes,enumerable:!1}),styles3.color.close="",styles3.bgColor.close="",styles3.color.ansi256=wrapAnsi256(),styles3.color.ansi16m=wrapAnsi16m(),styles3.bgColor.ansi256=wrapAnsi256(10),styles3.bgColor.ansi16m=wrapAnsi16m(10),Object.defineProperties(styles3,{rgbToAnsi256:{value:(red,green,blue)=>red===green&&green===blue?red<8?16:red>248?231:Math.round((red-8)/247*24)+232:16+36*Math.round(red/255*5)+6*Math.round(green/255*5)+Math.round(blue/255*5),enumerable:!1},hexToRgb:{value:hex3=>{let matches3=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(hex3.toString(16));if(!matches3)return[0,0,0];let{colorString:colorString}=matches3.groups;3===colorString.length&&(colorString=colorString.split("").map((character=>character+character)).join(""));let integer=Number.parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},enumerable:!1},hexToAnsi256:{value:hex3=>styles3.rgbToAnsi256(...styles3.hexToRgb(hex3)),enumerable:!1}}),styles3}})}}),require_collections=__commonJS({"../../node_modules/pretty-format/build/collections.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.printIteratorEntries=function printIteratorEntries2(iterator,config3,indentation,depth,refs,printer2,separator=": "){let result="",current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){result+=indentationNext+printer2(current.value[0],config3,indentationNext,depth,refs)+separator+printer2(current.value[1],config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=","+config3.spacingInner}result+=config3.spacingOuter+indentation}return result},exports.printIteratorValues=function printIteratorValues2(iterator,config3,indentation,depth,refs,printer2){let result="",current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;)result+=indentationNext+printer2(current.value,config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=","+config3.spacingInner;result+=config3.spacingOuter+indentation}return result},exports.printListItems=function printListItems2(list,config3,indentation,depth,refs,printer2){let result="";if(list.length){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let keys2=Object.keys(object).sort(compareKeys);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(object).forEach((symbol=>{Object.getOwnPropertyDescriptor(object,symbol).enumerable&&keys2.push(symbol)})),keys2})(val,config3.compareKeys);if(keys2.length){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let stringedValue=val.toString();return"ArrayContaining"===stringedValue||"ArrayNotContaining"===stringedValue?++depth>config3.maxDepth?"["+stringedValue+"]":stringedValue+" ["+(0,_collections.printListItems)(val.sample,config3,indentation,depth,refs,printer2)+"]":"ObjectContaining"===stringedValue||"ObjectNotContaining"===stringedValue?++depth>config3.maxDepth?"["+stringedValue+"]":stringedValue+" {"+(0,_collections.printObjectProperties)(val.sample,config3,indentation,depth,refs,printer2)+"}":"StringMatching"===stringedValue||"StringNotMatching"===stringedValue||"StringContaining"===stringedValue||"StringNotContaining"===stringedValue?stringedValue+" "+printer2(val.sample,config3,indentation,depth,refs):val.toAsymmetricMatcher()};exports.serialize=serialize2;var test3=val=>val&&val.$$typeof===asymmetricMatcher2;exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_ansi_regex=__commonJS({"../../node_modules/pretty-format/node_modules/ansi-regex/index.js"(exports,module2){module2.exports=({onlyFirst:onlyFirst=!1}={})=>{let pattern=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(pattern,onlyFirst?void 0:"g")}}}),require_ConvertAnsi=__commonJS({"../../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _ansiRegex=_interopRequireDefault(require_ansi_regex()),_ansiStyles=_interopRequireDefault(require_ansi_styles2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var test3=val=>"string"==typeof val&&!!val.match((0,_ansiRegex.default)());exports.test=test3;var serialize2=(val,config3,indentation,depth,refs,printer2)=>printer2(val.replace((0,_ansiRegex.default)(),(match=>{switch(match){case _ansiStyles.default.red.close:case _ansiStyles.default.green.close:case _ansiStyles.default.cyan.close:case _ansiStyles.default.gray.close:case _ansiStyles.default.white.close:case _ansiStyles.default.yellow.close:case _ansiStyles.default.bgRed.close:case _ansiStyles.default.bgGreen.close:case _ansiStyles.default.bgYellow.close:case _ansiStyles.default.inverse.close:case _ansiStyles.default.dim.close:case _ansiStyles.default.bold.close:case _ansiStyles.default.reset.open:case _ansiStyles.default.reset.close:return"";case _ansiStyles.default.red.open:return"";case _ansiStyles.default.green.open:return"";case _ansiStyles.default.cyan.open:return"";case _ansiStyles.default.gray.open:return"";case _ansiStyles.default.white.open:return"";case _ansiStyles.default.yellow.open:return"";case _ansiStyles.default.bgRed.open:return"";case _ansiStyles.default.bgGreen.open:return"";case _ansiStyles.default.bgYellow.open:return"";case _ansiStyles.default.inverse.open:return"";case _ansiStyles.default.dim.open:return"";case _ansiStyles.default.bold.open:return"";default:return""}})),config3,indentation,depth,refs);exports.serialize=serialize2;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_DOMCollection=__commonJS({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _collections=require_collections(),OBJECT_NAMES2=["DOMStringMap","NamedNodeMap"],ARRAY_REGEXP2=/^(HTML\w*Collection|NodeList)$/,test3=val=>{return val&&val.constructor&&!!val.constructor.name&&(name=val.constructor.name,-1!==OBJECT_NAMES2.indexOf(name)||ARRAY_REGEXP2.test(name));var name};exports.test=test3;var serialize2=(collection,config3,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return++depth>config3.maxDepth?"["+name+"]":(config3.min?"":name+" ")+(-1!==OBJECT_NAMES2.indexOf(name)?"{"+(0,_collections.printObjectProperties)((collection=>"NamedNodeMap"===collection.constructor.name)(collection)?Array.from(collection).reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}):{...collection},config3,indentation,depth,refs,printer2)+"}":"["+(0,_collections.printListItems)(Array.from(collection),config3,indentation,depth,refs,printer2)+"]")};exports.serialize=serialize2;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_escapeHTML=__commonJS({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function escapeHTML3(str){return str.replace(//g,">")}}}),require_markup=__commonJS({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.printText=exports.printProps=exports.printElementAsLeaf=exports.printElement=exports.printComment=exports.printChildren=void 0;var _escapeHTML=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(require_escapeHTML());exports.printProps=(keys2,props,config3,indentation,depth,refs,printer2)=>{let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map((key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return"string"!=typeof value&&(-1!==printed.indexOf("\n")&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed="{"+printed+"}"),config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close+"="+colors.value.open+printed+colors.value.close})).join("")};exports.printChildren=(children,config3,indentation,depth,refs,printer2)=>children.map((child=>config3.spacingOuter+indentation+("string"==typeof child?printText3(child,config3):printer2(child,config3,indentation,depth,refs)))).join("");var printText3=(text,config3)=>{let contentColor=config3.colors.content;return contentColor.open+(0,_escapeHTML.default)(text)+contentColor.close};exports.printText=printText3;exports.printComment=(comment,config3)=>{let commentColor=config3.colors.comment;return commentColor.open+"\x3c!--"+(0,_escapeHTML.default)(comment)+"--\x3e"+commentColor.close};exports.printElement=(type5,printedProps,printedChildren,config3,indentation)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+(printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open)+(printedChildren?">"+tagColor.close+printedChildren+config3.spacingOuter+indentation+tagColor.open+""+tagColor.close};exports.printElementAsLeaf=(type5,config3)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+tagColor.close+" …"+tagColor.open+" />"+tagColor.close}}}),require_DOMElement=__commonJS({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _markup=require_markup(),ELEMENT_REGEXP3=/^((HTML|SVG)\w*)?Element$/,test3=val=>{var _val$constructor;return(null==val||null===(_val$constructor=val.constructor)||void 0===_val$constructor?void 0:_val$constructor.name)&&(val=>{let constructorName=val.constructor.name,{nodeType:nodeType,tagName:tagName}=val,isCustomElement3="string"==typeof tagName&&tagName.includes("-")||(val=>{try{return"function"==typeof val.hasAttribute&&val.hasAttribute("is")}catch{return!1}})(val);return 1===nodeType&&(ELEMENT_REGEXP3.test(constructorName)||isCustomElement3)||3===nodeType&&"Text"===constructorName||8===nodeType&&"Comment"===constructorName||11===nodeType&&"DocumentFragment"===constructorName})(val)};function nodeIsFragment3(node){return 11===node.nodeType}exports.test=test3;var serialize2=(node,config3,indentation,depth,refs,printer2)=>{if(function nodeIsText3(node){return 3===node.nodeType}(node))return(0,_markup.printText)(node.data,config3);if(function nodeIsComment3(node){return 8===node.nodeType}(node))return(0,_markup.printComment)(node.data,config3);let type5=nodeIsFragment3(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config3.maxDepth?(0,_markup.printElementAsLeaf)(type5,config3):(0,_markup.printElement)(type5,(0,_markup.printProps)(nodeIsFragment3(node)?[]:Array.from(node.attributes).map((attr=>attr.name)).sort(),nodeIsFragment3(node)?{}:Array.from(node.attributes).reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config3,indentation+config3.indent,depth,refs,printer2),(0,_markup.printChildren)(Array.prototype.slice.call(node.childNodes||node.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)};exports.serialize=serialize2;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_Immutable=__commonJS({"../../node_modules/pretty-format/build/plugins/Immutable.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _collections=require_collections(),getImmutableName2=name=>"Immutable."+name,printAsLeaf2=name=>"["+name+"]";var printImmutableValues2=(val,config3,indentation,depth,refs,printer2,type5)=>++depth>config3.maxDepth?printAsLeaf2(getImmutableName2(type5)):getImmutableName2(type5)+" ["+(0,_collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2)+"]",serialize2=(val,config3,indentation,depth,refs,printer2)=>val["@@__IMMUTABLE_MAP__@@"]?((val,config3,indentation,depth,refs,printer2,type5)=>++depth>config3.maxDepth?printAsLeaf2(getImmutableName2(type5)):getImmutableName2(type5)+" {"+(0,_collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2)+"}")(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedMap":"Map"):val["@@__IMMUTABLE_LIST__@@"]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,"List"):val["@@__IMMUTABLE_SET__@@"]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedSet":"Set"):val["@@__IMMUTABLE_STACK__@@"]?printImmutableValues2(val,config3,indentation,depth,refs,printer2,"Stack"):val["@@__IMMUTABLE_SEQ__@@"]?((val,config3,indentation,depth,refs,printer2)=>{let name=getImmutableName2("Seq");return++depth>config3.maxDepth?printAsLeaf2(name):val["@@__IMMUTABLE_KEYED__@@"]?name+" {"+(val._iter||val._object?(0,_collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2):"…")+"}":name+" ["+(val._iter||val._array||val._collection||val._iterable?(0,_collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2):"…")+"]"})(val,config3,indentation,depth,refs,printer2):((val,config3,indentation,depth,refs,printer2)=>{let name=getImmutableName2(val._name||"Record");return++depth>config3.maxDepth?printAsLeaf2(name):name+" {"+(0,_collections.printIteratorEntries)(function getRecordEntries2(val){let i=0;return{next(){if(ival&&(!0===val["@@__IMMUTABLE_ITERABLE__@@"]||!0===val["@@__IMMUTABLE_RECORD__@@"]);exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_react_is_development=__commonJS({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(exports){!function(){var REACT_ELEMENT_TYPE=60103,REACT_PORTAL_TYPE=60106,REACT_FRAGMENT_TYPE=60107,REACT_STRICT_MODE_TYPE=60108,REACT_PROFILER_TYPE=60114,REACT_PROVIDER_TYPE=60109,REACT_CONTEXT_TYPE=60110,REACT_FORWARD_REF_TYPE=60112,REACT_SUSPENSE_TYPE=60113,REACT_SUSPENSE_LIST_TYPE=60120,REACT_MEMO_TYPE=60115,REACT_LAZY_TYPE=60116,REACT_BLOCK_TYPE=60121,REACT_SERVER_BLOCK_TYPE=60122,REACT_FUNDAMENTAL_TYPE=60117,REACT_DEBUG_TRACING_MODE_TYPE=60129,REACT_LEGACY_HIDDEN_TYPE=60131;if("function"==typeof Symbol&&Symbol.for){var symbolFor=Symbol.for;REACT_ELEMENT_TYPE=symbolFor("react.element"),REACT_PORTAL_TYPE=symbolFor("react.portal"),REACT_FRAGMENT_TYPE=symbolFor("react.fragment"),REACT_STRICT_MODE_TYPE=symbolFor("react.strict_mode"),REACT_PROFILER_TYPE=symbolFor("react.profiler"),REACT_PROVIDER_TYPE=symbolFor("react.provider"),REACT_CONTEXT_TYPE=symbolFor("react.context"),REACT_FORWARD_REF_TYPE=symbolFor("react.forward_ref"),REACT_SUSPENSE_TYPE=symbolFor("react.suspense"),REACT_SUSPENSE_LIST_TYPE=symbolFor("react.suspense_list"),REACT_MEMO_TYPE=symbolFor("react.memo"),REACT_LAZY_TYPE=symbolFor("react.lazy"),REACT_BLOCK_TYPE=symbolFor("react.block"),REACT_SERVER_BLOCK_TYPE=symbolFor("react.server.block"),REACT_FUNDAMENTAL_TYPE=symbolFor("react.fundamental"),symbolFor("react.scope"),symbolFor("react.opaque.id"),REACT_DEBUG_TRACING_MODE_TYPE=symbolFor("react.debug_trace_mode"),symbolFor("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=symbolFor("react.legacy_hidden")}function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type5=object.type;switch(type5){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type5;default:var $$typeofType=type5&&type5.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element2,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isConcurrentMode=function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isContextConsumer=function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE},exports.isContextProvider=function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE},exports.isElement=function isElement5(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},exports.isForwardRef=function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},exports.isFragment=function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE},exports.isLazy=function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE},exports.isMemo=function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE},exports.isPortal=function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE},exports.isProfiler=function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE},exports.isStrictMode=function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},exports.isSuspense=function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE},exports.isValidElementType=function isValidElementType(type5){return!("string"!=typeof type5&&"function"!=typeof type5&&type5!==REACT_FRAGMENT_TYPE&&type5!==REACT_PROFILER_TYPE&&type5!==REACT_DEBUG_TRACING_MODE_TYPE&&type5!==REACT_STRICT_MODE_TYPE&&type5!==REACT_SUSPENSE_TYPE&&type5!==REACT_SUSPENSE_LIST_TYPE&&type5!==REACT_LEGACY_HIDDEN_TYPE&&("object"!=typeof type5||null===type5||type5.$$typeof!==REACT_LAZY_TYPE&&type5.$$typeof!==REACT_MEMO_TYPE&&type5.$$typeof!==REACT_PROVIDER_TYPE&&type5.$$typeof!==REACT_CONTEXT_TYPE&&type5.$$typeof!==REACT_FORWARD_REF_TYPE&&type5.$$typeof!==REACT_FUNDAMENTAL_TYPE&&type5.$$typeof!==REACT_BLOCK_TYPE&&type5[0]!==REACT_SERVER_BLOCK_TYPE))},exports.typeOf=typeOf}()}}),require_react_is=__commonJS({"../../node_modules/pretty-format/node_modules/react-is/index.js"(exports,module2){module2.exports=require_react_is_development()}}),require_ReactElement=__commonJS({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var ReactIs=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}(require_react_is()),_markup=require_markup();function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop2){return nodeInterop2?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}var getChildren2=(arg,children=[])=>(Array.isArray(arg)?arg.forEach((item=>{getChildren2(item,children)})):null!=arg&&!1!==arg&&children.push(arg),children),getType4=element=>{let type5=element.type;if("string"==typeof type5)return type5;if("function"==typeof type5)return type5.displayName||type5.name||"Unknown";if(ReactIs.isFragment(element))return"React.Fragment";if(ReactIs.isSuspense(element))return"React.Suspense";if("object"==typeof type5&&null!==type5){if(ReactIs.isContextProvider(element))return"Context.Provider";if(ReactIs.isContextConsumer(element))return"Context.Consumer";if(ReactIs.isForwardRef(element)){if(type5.displayName)return type5.displayName;let functionName=type5.render.displayName||type5.render.name||"";return""!==functionName?"ForwardRef("+functionName+")":"ForwardRef"}if(ReactIs.isMemo(element)){let functionName=type5.displayName||type5.type.displayName||type5.type.name||"";return""!==functionName?"Memo("+functionName+")":"Memo"}}return"UNDEFINED"},serialize2=(element,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?(0,_markup.printElementAsLeaf)(getType4(element),config3):(0,_markup.printElement)(getType4(element),(0,_markup.printProps)((element=>{let{props:props}=element;return Object.keys(props).filter((key=>"children"!==key&&void 0!==props[key])).sort()})(element),element.props,config3,indentation+config3.indent,depth,refs,printer2),(0,_markup.printChildren)(getChildren2(element.props.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation);exports.serialize=serialize2;var test3=val=>null!=val&&ReactIs.isElement(val);exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_ReactTestComponent=__commonJS({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.test=exports.serialize=exports.default=void 0;var _markup=require_markup(),global3=typeof globalThis<"u"?globalThis:typeof global3<"u"?global3:typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Symbol2=global3["jest-symbol-do-not-touch"]||global3.Symbol,testSymbol2="function"==typeof Symbol2&&Symbol2.for?Symbol2.for("react.test.json"):245830487,serialize2=(object,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?(0,_markup.printElementAsLeaf)(object.type,config3):(0,_markup.printElement)(object.type,object.props?(0,_markup.printProps)((object=>{let{props:props}=object;return props?Object.keys(props).filter((key=>void 0!==props[key])).sort():[]})(object),object.props,config3,indentation+config3.indent,depth,refs,printer2):"",object.children?(0,_markup.printChildren)(object.children,config3,indentation+config3.indent,depth,refs,printer2):"",config3,indentation);exports.serialize=serialize2;var test3=val=>val&&val.$$typeof===testSymbol2;exports.test=test3;var _default2={serialize:serialize2,test:test3};exports.default=_default2}}),require_build=__commonJS({"../../node_modules/pretty-format/build/index.js"(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_OPTIONS=void 0,exports.format=format4,exports.plugins=void 0;var _ansiStyles=_interopRequireDefault(require_ansi_styles2()),_collections=require_collections(),_AsymmetricMatcher=_interopRequireDefault(require_AsymmetricMatcher()),_ConvertAnsi=_interopRequireDefault(require_ConvertAnsi()),_DOMCollection=_interopRequireDefault(require_DOMCollection()),_DOMElement=_interopRequireDefault(require_DOMElement()),_Immutable=_interopRequireDefault(require_Immutable()),_ReactElement=_interopRequireDefault(require_ReactElement()),_ReactTestComponent=_interopRequireDefault(require_ReactTestComponent());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var toString4=Object.prototype.toString,toISOString2=Date.prototype.toISOString,errorToString2=Error.prototype.toString,regExpToString2=RegExp.prototype.toString,getConstructorName3=val=>"function"==typeof val.constructor&&val.constructor.name||"Object",SYMBOL_REGEXP2=/^Symbol\((.*)\)(.*)$/,NEWLINE_REGEXP2=/\n/gi,PrettyFormatPluginError2=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name}};function printFunction2(val,printFunctionName){return printFunctionName?"[Function "+(val.name||"anonymous")+"]":"[Function]"}function printSymbol2(val){return String(val).replace(SYMBOL_REGEXP2,"Symbol($1)")}function printError2(val){return"["+errorToString2.call(val)+"]"}function printBasicValue2(val,printFunctionName,escapeRegex,escapeString){if(!0===val||!1===val)return""+val;if(void 0===val)return"undefined";if(null===val)return"null";let typeOf=typeof val;if("number"===typeOf)return function printNumber2(val){return Object.is(val,-0)?"-0":String(val)}(val);if("bigint"===typeOf)return function printBigInt2(val){return`${val}n`}(val);if("string"===typeOf)return escapeString?'"'+val.replace(/"|\\/g,"\\$&")+'"':'"'+val+'"';if("function"===typeOf)return printFunction2(val,printFunctionName);if("symbol"===typeOf)return printSymbol2(val);let toStringed=toString4.call(val);return"[object WeakMap]"===toStringed?"WeakMap {}":"[object WeakSet]"===toStringed?"WeakSet {}":"[object Function]"===toStringed||"[object GeneratorFunction]"===toStringed?printFunction2(val,printFunctionName):"[object Symbol]"===toStringed?printSymbol2(val):"[object Date]"===toStringed?isNaN(+val)?"Date { NaN }":toISOString2.call(val):"[object Error]"===toStringed?printError2(val):"[object RegExp]"===toStringed?escapeRegex?regExpToString2.call(val).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):regExpToString2.call(val):val instanceof Error?printError2(val):null}function printComplexValue2(val,config3,indentation,depth,refs,hasCalledToJSON){if(-1!==refs.indexOf(val))return"[Circular]";(refs=refs.slice()).push(val);let hitMaxDepth=++depth>config3.maxDepth,min=config3.min;if(config3.callToJSON&&!hitMaxDepth&&val.toJSON&&"function"==typeof val.toJSON&&!hasCalledToJSON)return printer2(val.toJSON(),config3,indentation,depth,refs,!0);let toStringed=toString4.call(val);return"[object Arguments]"===toStringed?hitMaxDepth?"[Arguments]":(min?"":"Arguments ")+"["+(0,_collections.printListItems)(val,config3,indentation,depth,refs,printer2)+"]":function isToStringedArrayType2(toStringed){return"[object Array]"===toStringed||"[object ArrayBuffer]"===toStringed||"[object DataView]"===toStringed||"[object Float32Array]"===toStringed||"[object Float64Array]"===toStringed||"[object Int8Array]"===toStringed||"[object Int16Array]"===toStringed||"[object Int32Array]"===toStringed||"[object Uint8Array]"===toStringed||"[object Uint8ClampedArray]"===toStringed||"[object Uint16Array]"===toStringed||"[object Uint32Array]"===toStringed}(toStringed)?hitMaxDepth?"["+val.constructor.name+"]":(min||!config3.printBasicPrototype&&"Array"===val.constructor.name?"":val.constructor.name+" ")+"["+(0,_collections.printListItems)(val,config3,indentation,depth,refs,printer2)+"]":"[object Map]"===toStringed?hitMaxDepth?"[Map]":"Map {"+(0,_collections.printIteratorEntries)(val.entries(),config3,indentation,depth,refs,printer2," => ")+"}":"[object Set]"===toStringed?hitMaxDepth?"[Set]":"Set {"+(0,_collections.printIteratorValues)(val.values(),config3,indentation,depth,refs,printer2)+"}":hitMaxDepth||(val=>typeof window<"u"&&val===window)(val)?"["+getConstructorName3(val)+"]":(min||!config3.printBasicPrototype&&"Object"===getConstructorName3(val)?"":getConstructorName3(val)+" ")+"{"+(0,_collections.printObjectProperties)(val,config3,indentation,depth,refs,printer2)+"}"}function printPlugin2(plugin2,val,config3,indentation,depth,refs){let printed;try{printed=function isNewPlugin2(plugin2){return null!=plugin2.serialize}(plugin2)?plugin2.serialize(val,config3,indentation,depth,refs,printer2):plugin2.print(val,(valChild=>printer2(valChild,config3,indentation,depth,refs)),(str=>{let indentationNext=indentation+config3.indent;return indentationNext+str.replace(NEWLINE_REGEXP2,"\n"+indentationNext)}),{edgeSpacing:config3.spacingOuter,min:config3.min,spacing:config3.spacingInner},config3.colors)}catch(error){throw new PrettyFormatPluginError2(error.message,error.stack)}if("string"!=typeof printed)throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);return printed}function findPlugin2(plugins4,val){for(let p3=0;p3DEFAULT_THEME_KEYS2.reduce(((colors,key)=>{let value=options.theme&&void 0!==options.theme[key]?options.theme[key]:DEFAULT_THEME2[key],color=value&&_ansiStyles.default[value];if(!color||"string"!=typeof color.close||"string"!=typeof color.open)throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);return colors[key]=color,colors}),Object.create(null)),getPrintFunctionName2=options=>options&&void 0!==options.printFunctionName?options.printFunctionName:DEFAULT_OPTIONS2.printFunctionName,getEscapeRegex2=options=>options&&void 0!==options.escapeRegex?options.escapeRegex:DEFAULT_OPTIONS2.escapeRegex,getEscapeString2=options=>options&&void 0!==options.escapeString?options.escapeString:DEFAULT_OPTIONS2.escapeString,getConfig4=options=>{var _options$printBasicPr,indent;return{callToJSON:options&&void 0!==options.callToJSON?options.callToJSON:DEFAULT_OPTIONS2.callToJSON,colors:options&&options.highlight?getColorsHighlight2(options):DEFAULT_THEME_KEYS2.reduce(((colors,key)=>(colors[key]={close:"",open:""},colors)),Object.create(null)),compareKeys:options&&"function"==typeof options.compareKeys?options.compareKeys:DEFAULT_OPTIONS2.compareKeys,escapeRegex:getEscapeRegex2(options),escapeString:getEscapeString2(options),indent:options&&options.min?"":(indent=options&&void 0!==options.indent?options.indent:DEFAULT_OPTIONS2.indent,new Array(indent+1).join(" ")),maxDepth:options&&void 0!==options.maxDepth?options.maxDepth:DEFAULT_OPTIONS2.maxDepth,min:options&&void 0!==options.min?options.min:DEFAULT_OPTIONS2.min,plugins:options&&void 0!==options.plugins?options.plugins:DEFAULT_OPTIONS2.plugins,printBasicPrototype:null===(_options$printBasicPr=options?.printBasicPrototype)||void 0===_options$printBasicPr||_options$printBasicPr,printFunctionName:getPrintFunctionName2(options),spacingInner:options&&options.min?" ":"\n",spacingOuter:options&&options.min?"":"\n"}};function format4(val,options){if(options&&(function validateOptions2(options){if(Object.keys(options).forEach((key=>{if(!DEFAULT_OPTIONS2.hasOwnProperty(key))throw new Error(`pretty-format: Unknown option "${key}".`)})),options.min&&void 0!==options.indent&&0!==options.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(void 0!==options.theme){if(null===options.theme)throw new Error('pretty-format: Option "theme" must not be null.');if("object"!=typeof options.theme)throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`)}}(options),options.plugins)){let plugin2=findPlugin2(options.plugins,val);if(null!==plugin2)return printPlugin2(plugin2,val,getConfig4(options),"",0,[])}let basicResult=printBasicValue2(val,getPrintFunctionName2(options),getEscapeRegex2(options),getEscapeString2(options));return null!==basicResult?basicResult:printComplexValue2(val,getConfig4(options),"",0,[])}var plugins3={AsymmetricMatcher:_AsymmetricMatcher.default,ConvertAnsi:_ConvertAnsi.default,DOMCollection:_DOMCollection.default,DOMElement:_DOMElement.default,Immutable:_Immutable.default,ReactElement:_ReactElement.default,ReactTestComponent:_ReactTestComponent.default};exports.plugins=plugins3;var _default2=format4;exports.default=_default2}}),require_lz_string=__commonJS({"../../node_modules/lz-string/libs/lz-string.js"(exports,module2){var LZString=function(){var f4=String.fromCharCode,keyStrBase64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",keyStrUriSafe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]={};for(var i=0;i>>8,buf[2*i+1]=current_value%256}return buf},decompressFromUint8Array:function(compressed){if(null==compressed)return LZString2.decompress(compressed);for(var buf=new Array(compressed.length/2),i=0,TotalLen=buf.length;i>=1}else{for(value=1,i=0;i>=1}0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i>=1;0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),context_dictionary[context_wc]=context_dictSize++,context_w=String(context_c)}if(""!==context_w){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i>=1}else{for(value=1,i=0;i>=1}0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i>=1;0==--context_enlargeIn&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++)}for(value=2,i=0;i>=1;for(;;){if(context_data_val<<=1,context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));break}context_data_position++}return context_data.join("")},decompress:function(compressed){return null==compressed?"":""==compressed?null:LZString2._decompress(compressed.length,32768,(function(index){return compressed.charCodeAt(index)}))},_decompress:function(length,resetValue,getNextValue){var i,w2,bits,resb,maxpower,power,c,dictionary=[],enlargeIn=4,dictSize=4,numBits=3,entry="",result=[],data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=i;for(bits=0,maxpower=Math.pow(2,2),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f4(bits);break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f4(bits);break;case 2:return""}for(dictionary[3]=c,w2=c,result.push(c);;){if(data.index>length)return"";for(bits=0,maxpower=Math.pow(2,numBits),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(c=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f4(bits),c=dictSize-1,enlargeIn--;break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,0==data.position&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f4(bits),c=dictSize-1,enlargeIn--;break;case 2:return result.join("")}if(0==enlargeIn&&(enlargeIn=Math.pow(2,numBits),numBits++),dictionary[c])entry=dictionary[c];else{if(c!==dictSize)return null;entry=w2+w2.charAt(0)}result.push(entry),dictionary[dictSize++]=w2+entry.charAt(0),w2=entry,0==--enlargeIn&&(enlargeIn=Math.pow(2,numBits),numBits++)}}};return LZString2}();"function"==typeof define&&__webpack_require__.amdO?define((function(){return LZString})):typeof module2<"u"&&null!=module2?module2.exports=LZString:typeof angular<"u"&&null!=angular&&angular.module("LZString",[]).factory("LZString",(function(){return LZString}))}}),__defProp2=Object.defineProperty,__getOwnPropNames2=Object.getOwnPropertyNames,__name=(target,value)=>__defProp2(target,"name",{value:value,configurable:!0}),__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},require_util=(cb={"(disabled):util"(){}},function(){return mod||(0,cb[__getOwnPropNames2(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}),utils_exports={};__export2(utils_exports,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>check_error_exports,compareByInspect:()=>compareByInspect,eql:()=>deep_eql_default,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>inspect2,isNaN:()=>isNaN22,isProxyEnabled:()=>isProxyEnabled,isRegExp:()=>isRegExp2,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>test,transferFlags:()=>transferFlags,type:()=>type});var check_error_exports={};function isErrorInstance(obj){return obj instanceof Error||"[object Error]"===Object.prototype.toString.call(obj)}function isRegExp(obj){return"[object RegExp]"===Object.prototype.toString.call(obj)}function compatibleInstance(thrown,errorLike){return isErrorInstance(errorLike)&&thrown===errorLike}function compatibleConstructor(thrown,errorLike){return isErrorInstance(errorLike)?thrown.constructor===errorLike.constructor||thrown instanceof errorLike.constructor:!("object"!=typeof errorLike&&"function"!=typeof errorLike||!errorLike.prototype)&&(thrown.constructor===errorLike||thrown instanceof errorLike)}function compatibleMessage(thrown,errMatcher){let comparisonString="string"==typeof thrown?thrown:thrown.message;return isRegExp(errMatcher)?errMatcher.test(comparisonString):"string"==typeof errMatcher&&-1!==comparisonString.indexOf(errMatcher)}function getConstructorName(errorLike){let constructorName=errorLike;return isErrorInstance(errorLike)?constructorName=errorLike.constructor.name:"function"==typeof errorLike&&(constructorName=errorLike.name,""===constructorName&&(constructorName=(new errorLike).name||constructorName)),constructorName}function getMessage(errorLike){let msg="";return errorLike&&errorLike.message?msg=errorLike.message:"string"==typeof errorLike&&(msg=errorLike),msg}function flag(obj,key,value){var flags=obj.__flags||(obj.__flags=Object.create(null));if(3!==arguments.length)return flags[key];flags[key]=value}function test(obj,args){var negate=flag(obj,"negate"),expr=args[0];return negate?!expr:expr}function type(obj){if(typeof obj>"u")return"undefined";if(null===obj)return"null";let stringTag=obj[Symbol.toStringTag];return"string"==typeof stringTag?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__export2(check_error_exports,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>getConstructorName,getMessage:()=>getMessage}),__name(isErrorInstance,"isErrorInstance"),__name(isRegExp,"isRegExp"),__name(compatibleInstance,"compatibleInstance"),__name(compatibleConstructor,"compatibleConstructor"),__name(compatibleMessage,"compatibleMessage"),__name(getConstructorName,"getConstructorName"),__name(getMessage,"getMessage"),__name(flag,"flag"),__name(test,"test"),__name(type,"type");var _a,canElideFrames="captureStackTrace"in Error,AssertionError=(_a=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(message="Unspecified AssertionError",props,ssf){super(message),this.message=message,canElideFrames&&Error.captureStackTrace(this,ssf||_a);for(let key in props)key in this||(this[key]=props[key])}toJSON(stack){return{...this,name:this.name,message:this.message,ok:!1,stack:!1!==stack?this.stack:void 0}}},__name(_a,"AssertionError"),_a);function expectTypes(obj,types){var flagMsg=flag(obj,"message"),ssfi=flag(obj,"ssfi");flagMsg=flagMsg?flagMsg+": ":"",obj=flag(obj,"object"),(types=types.map((function(t){return t.toLowerCase()}))).sort();var str=types.map((function(t,index){var art=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a";return(types.length>1&&index===types.length-1?"or ":"")+art+" "+t})).join(", "),objType=type(obj).toLowerCase();if(!types.some((function(expected){return objType===expected})))throw new AssertionError(flagMsg+"object tested must be "+str+", but "+objType+" given",void 0,ssfi)}function getActual(obj,args){return args.length>4?args[4]:obj._obj}__name(expectTypes,"expectTypes"),__name(getActual,"getActual");var ansiColors={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator="…";function colorise(value,styleType){let color=ansiColors[styles[styleType]]||ansiColors[styleType]||"";return color?`[${color[0]}m${String(value)}[${color[1]}m`:String(value)}function normaliseOptions({showHidden:showHidden=!1,depth:depth=2,colors:colors=!1,customInspect:customInspect=!0,showProxy:showProxy=!1,maxArrayLength:maxArrayLength=1/0,breakLength:breakLength=1/0,seen:seen=[],truncate:truncate22=1/0,stylize:stylize=String}={},inspect32){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate22),seen:seen,inspect:inspect32,stylize:stylize};return options.colors&&(options.stylize=colorise),options}function truncate(string,length,tail=truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;return tailLength>length&&stringLength>tailLength?tail:stringLength>length&&stringLength>tailLength?`${string.slice(0,length-tailLength)}${tail}`:string}function inspectList(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(0===size)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function inspectProperty([key,value],options){return options.truncate-=2,"string"==typeof key?key=quoteComplexKey(key):"number"!=typeof key&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,`${key}: ${value=options.inspect(value,options)}`}function inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map((key=>[key,array[key]])),options,inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`}__name(colorise,"colorise"),__name(normaliseOptions,"normaliseOptions"),__name(truncate,"truncate"),__name(inspectList,"inspectList"),__name(quoteComplexKey,"quoteComplexKey"),__name(inspectProperty,"inspectProperty"),__name(inspectArray,"inspectArray");var getArrayName=__name((array=>"function"==typeof Buffer&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name),"getArrayName");function inspectTypedArray(array,options){let name=getArrayName(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i[key,array[key]])),options,inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(null===stringRepresentation)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate(split[1],options.truncate-date.length-1)}`,"date")}function inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,`${key} => ${value=options.inspect(value,options)}`}function mapToEntries(map){let entries=[];return map.forEach(((value,key)=>{entries.push([key,value])})),entries}function inspectMap(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList(mapToEntries(map),options,inspectMapEntry)} }`)}__name(inspectTypedArray,"inspectTypedArray"),__name(inspectDate,"inspectDate"),__name(inspectFunction,"inspectFunction"),__name(inspectMapEntry,"inspectMapEntry"),__name(mapToEntries,"mapToEntries"),__name(inspectMap,"inspectMap");var isNaN2=Number.isNaN||(i=>i!=i);function inspectNumber(number,options){return isNaN2(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):0===number?options.stylize(1/number==1/0?"+0":"-0","number"):options.stylize(truncate(String(number),options.truncate),"number")}function inspectBigInt(number,options){let nums=truncate(number.toString(),options.truncate-1);return nums!==truncator&&(nums+="n"),options.stylize(nums,"bigint")}function inspectRegExp(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate(source,sourceLength)}/${flags}`,"regexp")}function arrayFromSet(set2){let values=[];return set2.forEach((value=>{values.push(value)})),values}function inspectSet(set2,options){return 0===set2.size?"Set{}":(options.truncate-=7,`Set{ ${inspectList(arrayFromSet(set2),options)} }`)}__name(inspectNumber,"inspectNumber"),__name(inspectBigInt,"inspectBigInt"),__name(inspectRegExp,"inspectRegExp"),__name(arrayFromSet,"arrayFromSet"),__name(inspectSet,"inspectSet");var stringEscapeChars=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex=16,unicodeLength=4;function escape(char){return escapeCharacters[char]||`\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`}function inspectString(string,options){return stringEscapeChars.test(string)&&(string=string.replace(stringEscapeChars,escape)),options.stylize(`'${truncate(string,options.truncate-2)}'`,"string")}function inspectSymbol(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}__name(escape,"escape"),__name(inspectString,"inspectString"),__name(inspectSymbol,"inspectSymbol");var getPromiseValue=__name((()=>"Promise{…}"),"getPromiseValue");try{let{getPromiseDetails:getPromiseDetails,kPending:kPending,kRejected:kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=__name(((value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`}),"getPromiseValue"))}catch{}var promise_default=getPromiseValue;function inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(0===properties.length&&0===symbols.length)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return"[Circular]";options.seen.push(object);let propertyContents=inspectList(properties.map((key=>[key,object[key]])),options,inspectProperty),symbolContents=inspectList(symbols.map((key=>[key,object[key]])),options,inspectProperty);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}__name(inspectObject,"inspectObject");var toStringTag=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;function inspectClass(value,options){let name="";return toStringTag&&toStringTag in value&&(name=value[toStringTag]),name=name||value.constructor.name,(!name||"_class"===name)&&(name=""),options.truncate-=name.length,`${name}${inspectObject(value,options)}`}function inspectArguments(args,options){return 0===args.length?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList(args,options)} ]`)}__name(inspectClass,"inspectClass"),__name(inspectArguments,"inspectArguments");var errorKeys=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter((key=>-1===errorKeys.indexOf(key))),name=error.name;options.truncate-=name.length;let message="";"string"==typeof error.message?message=truncate(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5;let propertyContents=inspectList(properties.map((key=>[key,error[key]])),options,inspectProperty);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`}function inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function inspectHTMLCollection(collection,options){return inspectList(collection,options,inspectHTML,"\n")}function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(``,"special");options.truncate-=2*name.length+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList(properties.map((key=>[key,element.getAttribute(key)])),options,inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate22=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate22&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}__name(inspectObject2,"inspectObject"),__name(inspectAttribute,"inspectAttribute"),__name(inspectHTMLCollection,"inspectHTMLCollection"),__name(inspectHTML,"inspectHTML");var chaiInspect="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect=!1;try{let nodeUtil=require_util();nodeInspect=!!nodeUtil.inspect&&nodeUtil.inspect.custom}catch{nodeInspect=!1}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{…}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{…}","special"),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:inspectObject2,HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=__name(((value,options,type32)=>chaiInspect in value&&"function"==typeof value[chaiInspect]?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&"function"==typeof value[nodeInspect]?value[nodeInspect](options.depth,options):"inspect"in value&&"function"==typeof value.inspect?value.inspect(options.depth,options):"constructor"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type32]?stringTagMap[type32](value,options):""),"inspectCustom"),toString=Object.prototype.toString;function inspect(value,opts={}){let options=normaliseOptions(opts,inspect),{customInspect:customInspect}=options,type32=null===value?"null":typeof value;if("object"===type32&&(type32=toString.call(value).slice(8,-1)),type32 in baseTypesMap)return baseTypesMap[type32](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type32);if(output)return"string"==typeof output?output:inspect(output,options)}let proto=!!value&&Object.getPrototypeOf(value);return proto===Object.prototype||null===proto?inspectObject(value,options):value&&"function"==typeof HTMLElement&&value instanceof HTMLElement?inspectHTML(value,options):"constructor"in value?value.constructor!==Object?inspectClass(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type32)}__name(inspect,"inspect");var config={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function inspect2(obj,showHidden,depth,colors){return inspect(obj,{colors:colors,depth:typeof depth>"u"?2:depth,showHidden:showHidden,truncate:config.truncateThreshold?config.truncateThreshold:1/0})}function objDisplay(obj){var str=inspect2(obj),type32=Object.prototype.toString.call(obj);if(config.truncateThreshold&&str.length>=config.truncateThreshold){if("[object Function]"===type32)return obj.name&&""!==obj.name?"[Function: "+obj.name+"]":"[Function]";if("[object Array]"===type32)return"[ Array("+obj.length+") ]";if("[object Object]"===type32){var keys2=Object.keys(obj);return"{ Object ("+(keys2.length>2?keys2.splice(0,2).join(", ")+", ...":keys2.join(", "))+") }"}return str}return str}function getMessage2(obj,args){var negate=flag(obj,"negate"),val=flag(obj,"object"),expected=args[3],actual=getActual(obj,args),msg=negate?args[2]:args[1],flagMsg=flag(obj,"message");return"function"==typeof msg&&(msg=msg()),msg=(msg=msg||"").replace(/#\{this\}/g,(function(){return objDisplay(val)})).replace(/#\{act\}/g,(function(){return objDisplay(actual)})).replace(/#\{exp\}/g,(function(){return objDisplay(expected)})),flagMsg?flagMsg+": "+msg:msg}function transferFlags(assertion,object,includeAll){var flags=assertion.__flags||(assertion.__flags=Object.create(null));for(var flag3 in object.__flags||(object.__flags=Object.create(null)),includeAll=3!==arguments.length||includeAll,flags)(includeAll||"object"!==flag3&&"ssfi"!==flag3&&"lockSsfi"!==flag3&&"message"!=flag3)&&(object.__flags[flag3]=flags[flag3])}function type2(obj){if(typeof obj>"u")return"undefined";if(null===obj)return"null";let stringTag=obj[Symbol.toStringTag];return"string"==typeof stringTag?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}function FakeMap(){this._key="chai/deep-eql__"+Math.random()+Date.now()}__name(inspect2,"inspect"),__name(objDisplay,"objDisplay"),__name(getMessage2,"getMessage"),__name(transferFlags,"transferFlags"),__name(type2,"type"),__name(FakeMap,"FakeMap"),FakeMap.prototype={get:__name((function(key){return key[this._key]}),"get"),set:__name((function(key,value){Object.isExtensible(key)&&Object.defineProperty(key,this._key,{value:value,configurable:!0})}),"set")};var MemoizeMap="function"==typeof WeakMap?WeakMap:FakeMap;function memoizeCompare(leftHandOperand,rightHandOperand,memoizeMap){if(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))return null;var leftHandMap=memoizeMap.get(leftHandOperand);if(leftHandMap){var result=leftHandMap.get(rightHandOperand);if("boolean"==typeof result)return result}return null}function memoizeSet(leftHandOperand,rightHandOperand,memoizeMap,result){if(memoizeMap&&!isPrimitive(leftHandOperand)&&!isPrimitive(rightHandOperand)){var leftHandMap=memoizeMap.get(leftHandOperand);leftHandMap?leftHandMap.set(rightHandOperand,result):((leftHandMap=new MemoizeMap).set(rightHandOperand,result),memoizeMap.set(leftHandOperand,leftHandMap))}}__name(memoizeCompare,"memoizeCompare"),__name(memoizeSet,"memoizeSet");var deep_eql_default=deepEqual;function deepEqual(leftHandOperand,rightHandOperand,options){if(options&&options.comparator)return extensiveDeepEqual(leftHandOperand,rightHandOperand,options);var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);return null!==simpleResult?simpleResult:extensiveDeepEqual(leftHandOperand,rightHandOperand,options)}function simpleEqual(leftHandOperand,rightHandOperand){return leftHandOperand===rightHandOperand?0!==leftHandOperand||1/leftHandOperand==1/rightHandOperand:leftHandOperand!=leftHandOperand&&rightHandOperand!=rightHandOperand||!isPrimitive(leftHandOperand)&&!isPrimitive(rightHandOperand)&&null}function extensiveDeepEqual(leftHandOperand,rightHandOperand,options){(options=options||{}).memoize=!1!==options.memoize&&(options.memoize||new MemoizeMap);var comparator=options&&options.comparator,memoizeResultLeft=memoizeCompare(leftHandOperand,rightHandOperand,options.memoize);if(null!==memoizeResultLeft)return memoizeResultLeft;var memoizeResultRight=memoizeCompare(rightHandOperand,leftHandOperand,options.memoize);if(null!==memoizeResultRight)return memoizeResultRight;if(comparator){var comparatorResult=comparator(leftHandOperand,rightHandOperand);if(!1===comparatorResult||!0===comparatorResult)return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,comparatorResult),comparatorResult;var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);if(null!==simpleResult)return simpleResult}var leftHandType=type2(leftHandOperand);if(leftHandType!==type2(rightHandOperand))return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!1),!1;memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!0);var result=extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options);return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,result),result}function extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options){switch(leftHandType){case"String":case"Number":case"Boolean":case"Date":return deepEqual(leftHandOperand.valueOf(),rightHandOperand.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return leftHandOperand===rightHandOperand;case"Error":return keysEqual(leftHandOperand,rightHandOperand,["name","message","code"],options);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return iterableEqual(leftHandOperand,rightHandOperand,options);case"RegExp":return regexpEqual(leftHandOperand,rightHandOperand);case"Generator":return generatorEqual(leftHandOperand,rightHandOperand,options);case"DataView":return iterableEqual(new Uint8Array(leftHandOperand.buffer),new Uint8Array(rightHandOperand.buffer),options);case"ArrayBuffer":return iterableEqual(new Uint8Array(leftHandOperand),new Uint8Array(rightHandOperand),options);case"Set":case"Map":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return leftHandOperand.equals(rightHandOperand);case"Temporal.Duration":return leftHandOperand.total("nanoseconds")===rightHandOperand.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return leftHandOperand.toString()===rightHandOperand.toString();default:return objectEqual(leftHandOperand,rightHandOperand,options)}}function regexpEqual(leftHandOperand,rightHandOperand){return leftHandOperand.toString()===rightHandOperand.toString()}function entriesEqual(leftHandOperand,rightHandOperand,options){if(leftHandOperand.size!==rightHandOperand.size)return!1;if(0===leftHandOperand.size)return!0;var leftHandItems=[],rightHandItems=[];return leftHandOperand.forEach(__name((function(key,value){leftHandItems.push([key,value])}),"gatherEntries")),rightHandOperand.forEach(__name((function(key,value){rightHandItems.push([key,value])}),"gatherEntries")),iterableEqual(leftHandItems.sort(),rightHandItems.sort(),options)}function iterableEqual(leftHandOperand,rightHandOperand,options){var length=leftHandOperand.length;if(length!==rightHandOperand.length)return!1;if(0===length)return!0;for(var index=-1;++index"u"||null===obj)&&name in Object(obj)}function parsePath(path){return path.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((value=>{if("constructor"===value||"__proto__"===value||"prototype"===value)return{};let mArr=/^\[(\d+)\]$/.exec(value),parsed=null;return parsed=mArr?{i:parseFloat(mArr[1])}:{p:value.replace(/\\([.[\]])/g,"$1")},parsed}))}function internalGetPathValue(obj,parsed,pathDepth){let temporaryValue=obj,res=null;pathDepth=typeof pathDepth>"u"?parsed.length:pathDepth;for(let i=0;i"u"?temporaryValue[part.i]:temporaryValue[part.p],i===pathDepth-1&&(res=temporaryValue))}return res}function getPathInfo(obj,path){let parsed=parsePath(path),last=parsed[parsed.length-1],info={parent:parsed.length>1?internalGetPathValue(obj,parsed,parsed.length-1):obj,name:last.p||last.i,value:internalGetPathValue(obj,parsed)};return info.exists=hasProperty(info.parent,info.name),info}function Assertion(obj,msg,ssfi,lockSsfi){return flag(this,"ssfi",ssfi||Assertion),flag(this,"lockSsfi",lockSsfi),flag(this,"object",obj),flag(this,"message",msg),flag(this,"eql",config.deepEqual||deep_eql_default),proxify(this)}function isProxyEnabled(){return config.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}function addProperty(ctx,name,getter){getter=void 0===getter?function(){}:getter,Object.defineProperty(ctx,name,{get:__name((function propertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",propertyGetter);var result=getter.call(this);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"propertyGetter"),configurable:!0})}__name(deepEqual,"deepEqual"),__name(simpleEqual,"simpleEqual"),__name(extensiveDeepEqual,"extensiveDeepEqual"),__name(extensiveDeepEqualByType,"extensiveDeepEqualByType"),__name(regexpEqual,"regexpEqual"),__name(entriesEqual,"entriesEqual"),__name(iterableEqual,"iterableEqual"),__name(generatorEqual,"generatorEqual"),__name(hasIteratorFunction,"hasIteratorFunction"),__name(getIteratorEntries,"getIteratorEntries"),__name(getGeneratorEntries,"getGeneratorEntries"),__name(getEnumerableKeys,"getEnumerableKeys"),__name(getEnumerableSymbols,"getEnumerableSymbols"),__name(keysEqual,"keysEqual"),__name(objectEqual,"objectEqual"),__name(isPrimitive,"isPrimitive"),__name(mapSymbols,"mapSymbols"),__name(hasProperty,"hasProperty"),__name(parsePath,"parsePath"),__name(internalGetPathValue,"internalGetPathValue"),__name(getPathInfo,"getPathInfo"),__name(Assertion,"Assertion"),Object.defineProperty(Assertion,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack},set:function(value){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack=value}}),Object.defineProperty(Assertion,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff},set:function(value){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff=value}}),Assertion.addProperty=function(name,fn3){addProperty(this.prototype,name,fn3)},Assertion.addMethod=function(name,fn3){addMethod(this.prototype,name,fn3)},Assertion.addChainableMethod=function(name,fn3,chainingBehavior){addChainableMethod(this.prototype,name,fn3,chainingBehavior)},Assertion.overwriteProperty=function(name,fn3){overwriteProperty(this.prototype,name,fn3)},Assertion.overwriteMethod=function(name,fn3){overwriteMethod(this.prototype,name,fn3)},Assertion.overwriteChainableMethod=function(name,fn3,chainingBehavior){overwriteChainableMethod(this.prototype,name,fn3,chainingBehavior)},Assertion.prototype.assert=function(expr,msg,negateMsg,expected,_actual,showDiff){var ok=test(this,arguments);if(!1!==showDiff&&(showDiff=!0),void 0===expected&&void 0===_actual&&(showDiff=!1),!0!==config.showDiff&&(showDiff=!1),!ok){msg=getMessage2(this,arguments);var assertionErrorObjectProperties={actual:getActual(this,arguments),expected:expected,showDiff:showDiff},operator=getOperator(this,arguments);throw operator&&(assertionErrorObjectProperties.operator=operator),new AssertionError(msg,assertionErrorObjectProperties,config.includeStack?this.assert:flag(this,"ssfi"))}},Object.defineProperty(Assertion.prototype,"_obj",{get:function(){return flag(this,"object")},set:function(val){flag(this,"object",val)}}),__name(isProxyEnabled,"isProxyEnabled"),__name(addProperty,"addProperty");var fnLengthDesc=Object.getOwnPropertyDescriptor((function(){}),"length");function addLengthGuard(fn3,assertionName,isChainable){return fnLengthDesc.configurable&&Object.defineProperty(fn3,"length",{get:function(){throw Error(isChainable?"Invalid Chai property: "+assertionName+'.length. Due to a compatibility issue, "length" cannot directly follow "'+assertionName+'". Use "'+assertionName+'.lengthOf" instead.':"Invalid Chai property: "+assertionName+'.length. See docs for proper usage of "'+assertionName+'".')}}),fn3}function getProperties(object){var result=Object.getOwnPropertyNames(object);function addProperty2(property){-1===result.indexOf(property)&&result.push(property)}__name(addProperty2,"addProperty");for(var proto=Object.getPrototypeOf(object);null!==proto;)Object.getOwnPropertyNames(proto).forEach(addProperty2),proto=Object.getPrototypeOf(proto);return result}__name(addLengthGuard,"addLengthGuard"),__name(getProperties,"getProperties");var builtins=["__flags","__methods","_obj","assert"];function proxify(obj,nonChainableMethodName){return isProxyEnabled()?new Proxy(obj,{get:__name((function proxyGetter(target,property){if("string"==typeof property&&-1===config.proxyExcludedKeys.indexOf(property)&&!Reflect.has(target,property)){if(nonChainableMethodName)throw Error("Invalid Chai property: "+nonChainableMethodName+"."+property+'. See docs for proper usage of "'+nonChainableMethodName+'".');var suggestion=null,suggestionDistance=4;throw getProperties(target).forEach((function(prop){if(!Object.prototype.hasOwnProperty(prop)&&-1===builtins.indexOf(prop)){var dist=stringDistanceCapped(property,prop,suggestionDistance);dist=cap)return cap;for(var memo=[],i=0;i<=strA.length;i++)memo[i]=Array(strB.length+1).fill(0),memo[i][0]=i;for(var j=0;j=cap?memo[i][j]=cap:memo[i][j]=Math.min(memo[i-1][j]+1,memo[i][j-1]+1,memo[i-1][j-1]+(ch===strB.charCodeAt(j-1)?0:1))}return memo[strA.length][strB.length]}function addMethod(ctx,name,method){var methodWrapper=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",methodWrapper);var result=method.apply(this,arguments);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"methodWrapper");addLengthGuard(methodWrapper,name,!1),ctx[name]=proxify(methodWrapper,name)}function overwriteProperty(ctx,name,getter){var _get=Object.getOwnPropertyDescriptor(ctx,name),_super=__name((function(){}),"_super");_get&&"function"==typeof _get.get&&(_super=_get.get),Object.defineProperty(ctx,name,{get:__name((function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",overwritingPropertyGetter);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=getter(_super).call(this);if(flag(this,"lockSsfi",origLockSsfi),void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingPropertyGetter"),configurable:!0})}function overwriteMethod(ctx,name,method){var _method=ctx[name],_super=__name((function(){throw new Error(name+" is not a function")}),"_super");_method&&"function"==typeof _method&&(_super=_method);var overwritingMethodWrapper=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",overwritingMethodWrapper);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=method(_super).apply(this,arguments);if(flag(this,"lockSsfi",origLockSsfi),void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingMethodWrapper");addLengthGuard(overwritingMethodWrapper,name,!1),ctx[name]=proxify(overwritingMethodWrapper,name)}__name(proxify,"proxify"),__name(stringDistanceCapped,"stringDistanceCapped"),__name(addMethod,"addMethod"),__name(overwriteProperty,"overwriteProperty"),__name(overwriteMethod,"overwriteMethod");var canSetPrototype="function"==typeof Object.setPrototypeOf,testFn=__name((function(){}),"testFn"),excludeNames=Object.getOwnPropertyNames(testFn).filter((function(name){var propDesc=Object.getOwnPropertyDescriptor(testFn,name);return"object"!=typeof propDesc||!propDesc.configurable})),call=Function.prototype.call,apply=Function.prototype.apply;function addChainableMethod(ctx,name,method,chainingBehavior){"function"!=typeof chainingBehavior&&(chainingBehavior=__name((function(){}),"chainingBehavior"));var chainableBehavior={method:method,chainingBehavior:chainingBehavior};ctx.__methods||(ctx.__methods={}),ctx.__methods[name]=chainableBehavior,Object.defineProperty(ctx,name,{get:__name((function(){chainableBehavior.chainingBehavior.call(this);var chainableMethodWrapper=__name((function(){flag(this,"lockSsfi")||flag(this,"ssfi",chainableMethodWrapper);var result=chainableBehavior.method.apply(this,arguments);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"chainableMethodWrapper");if(addLengthGuard(chainableMethodWrapper,name,!0),canSetPrototype){var prototype=Object.create(this);prototype.call=call,prototype.apply=apply,Object.setPrototypeOf(chainableMethodWrapper,prototype)}else{Object.getOwnPropertyNames(ctx).forEach((function(asserterName){if(-1===excludeNames.indexOf(asserterName)){var pd=Object.getOwnPropertyDescriptor(ctx,asserterName);Object.defineProperty(chainableMethodWrapper,asserterName,pd)}}))}return transferFlags(this,chainableMethodWrapper),proxify(chainableMethodWrapper)}),"chainableMethodGetter"),configurable:!0})}function overwriteChainableMethod(ctx,name,method,chainingBehavior){var chainableBehavior=ctx.__methods[name],_chainingBehavior=chainableBehavior.chainingBehavior;chainableBehavior.chainingBehavior=__name((function(){var result=chainingBehavior(_chainingBehavior).call(this);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingChainableMethodGetter");var _method=chainableBehavior.method;chainableBehavior.method=__name((function(){var result=method(_method).apply(this,arguments);if(void 0!==result)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion}),"overwritingChainableMethodWrapper")}function compareByInspect(a2,b){return inspect2(a2)1&&numErrs===props.length)throw firstErr;return}this.assert(included,"expected #{this} to "+descriptor+"include "+inspect2(val),"expected #{this} to not "+descriptor+"include "+inspect2(val))}function assertExist(){var val=flag2(this,"object");this.assert(null!=val,"expected #{this} to exist","expected #{this} to not exist")}function checkArguments(){var type32=type(flag2(this,"object"));this.assert("Arguments"===type32,"expected #{this} to be arguments but got "+type32,"expected #{this} to not be arguments")}function assertEqual(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");if(flag2(this,"deep")){var prevLockSsfi=flag2(this,"lockSsfi");flag2(this,"lockSsfi",!0),this.eql(val),flag2(this,"lockSsfi",prevLockSsfi)}else this.assert(val===obj,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",val,this._obj,!0)}function assertEql(obj,msg){msg&&flag2(this,"message",msg);var eql=flag2(this,"eql");this.assert(eql(obj,flag2(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",obj,this._obj,!0)}function assertAbove(n,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),shouldThrow=!0;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===nType)if("number"===nType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the argument to above must be a number";else errorMessage=msgPrefix+"the argument to above must be a date";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>n,"expected #{this} to have a "+descriptor+" above #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}function assertLeast(n,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),shouldThrow=!0;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===nType)if("number"===nType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the argument to least must be a number";else errorMessage=msgPrefix+"the argument to least must be a date";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=n,"expected #{this} to have a "+descriptor+" at least #{exp} but got #{act}","expected #{this} to have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}function assertBelow(n,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),shouldThrow=!0;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===nType)if("number"===nType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the argument to below must be a number";else errorMessage=msgPrefix+"the argument to below must be a date";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCountval1===val2,descriptor="";isDeep&&(descriptor+="deep "),isOwn&&(descriptor+="own "),isNested&&(descriptor+="nested "),descriptor+="property ",hasProperty2=isOwn?Object.prototype.hasOwnProperty.call(obj,name):isNested?pathInfo.exists:hasProperty(obj,name),(!negate||1===arguments.length)&&this.assert(hasProperty2,"expected #{this} to have "+descriptor+inspect2(name),"expected #{this} to not have "+descriptor+inspect2(name)),arguments.length>1&&this.assert(hasProperty2&&isEql(val,value),"expected #{this} to have "+descriptor+inspect2(name)+" of #{exp}, but got #{act}","expected #{this} to not have "+descriptor+inspect2(name)+" of #{act}",val,value),flag2(this,"object",value)}function assertOwnProperty(name,value,msg){flag2(this,"own",!0),assertProperty.apply(this,arguments)}function assertOwnPropertyDescriptor(name,descriptor,msg){"string"==typeof descriptor&&(msg=descriptor,descriptor=null),msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),actualDescriptor=Object.getOwnPropertyDescriptor(Object(obj),name),eql=flag2(this,"eql");actualDescriptor&&descriptor?this.assert(eql(descriptor,actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to match "+inspect2(descriptor)+", got "+inspect2(actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to not match "+inspect2(descriptor),descriptor,actualDescriptor,!0):this.assert(actualDescriptor,"expected #{this} to have an own property descriptor for "+inspect2(name),"expected #{this} to not have an own property descriptor for "+inspect2(name)),flag2(this,"object",actualDescriptor)}function assertLengthChain(){flag2(this,"doLength",!0)}function assertLength(n,msg){msg&&flag2(this,"message",msg);var itemsCount,obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),descriptor="length";switch(objType){case"map":case"set":descriptor="size",itemsCount=obj.size;break;default:new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),itemsCount=obj.length}this.assert(itemsCount==n,"expected #{this} to have a "+descriptor+" of #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" of #{act}",n,itemsCount)}function assertMatch(re,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(re.exec(obj),"expected #{this} to match "+re,"expected #{this} not to match "+re)}function assertKeys(keys2){var str,actual,obj=flag2(this,"object"),objType=type(obj),keysType=type(keys2),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),deepStr="",ok=!0,flagMsg=flag2(this,"message"),mixedArgsMsg=(flagMsg=flagMsg?flagMsg+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===objType||"Set"===objType)deepStr=isDeep?"deeply ":"",actual=[],obj.forEach((function(val,key){actual.push(key)})),"Array"!==keysType&&(keys2=Array.prototype.slice.call(arguments));else{switch(actual=getOwnEnumerableProperties(obj),keysType){case"Array":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);break;case"Object":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);keys2=Object.keys(keys2);break;default:keys2=Array.prototype.slice.call(arguments)}keys2=keys2.map((function(val){return"symbol"==typeof val?val:String(val)}))}if(!keys2.length)throw new AssertionError(flagMsg+"keys required",void 0,ssfi);var len=keys2.length,any=flag2(this,"any"),all=flag2(this,"all"),expected=keys2,isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2;if(!any&&!all&&(all=!0),any&&(ok=expected.some((function(expectedKey){return actual.some((function(actualKey){return isEql(expectedKey,actualKey)}))}))),all&&(ok=expected.every((function(expectedKey){return actual.some((function(actualKey){return isEql(expectedKey,actualKey)}))})),flag2(this,"contains")||(ok=ok&&keys2.length==actual.length)),len>1){var last=(keys2=keys2.map((function(key){return inspect2(key)}))).pop();all&&(str=keys2.join(", ")+", and "+last),any&&(str=keys2.join(", ")+", or "+last)}else str=inspect2(keys2[0]);str=(len>1?"keys ":"key ")+str,str=(flag2(this,"contains")?"contain ":"have ")+str,this.assert(ok,"expected #{this} to "+deepStr+str,"expected #{this} to not "+deepStr+str,expected.slice(0).sort(compareByInspect),actual.sort(compareByInspect),!0)}function assertThrows(errorLike,errMsgMatcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),negate=flag2(this,"negate")||!1;new Assertion(obj,flagMsg,ssfi,!0).is.a("function"),(isRegExp2(errorLike)||"string"==typeof errorLike)&&(errMsgMatcher=errorLike,errorLike=null);let caughtErr,errorWasThrown=!1;try{obj()}catch(err){errorWasThrown=!0,caughtErr=err}var everyArgIsUndefined=void 0===errorLike&&void 0===errMsgMatcher,everyArgIsDefined=!(!errorLike||!errMsgMatcher),errorLikeFail=!1,errMsgMatcherFail=!1;if(everyArgIsUndefined||!everyArgIsUndefined&&!negate){var errorLikeString="an error";errorLike instanceof Error?errorLikeString="#{exp}":errorLike&&(errorLikeString=check_error_exports.getConstructorName(errorLike));let actual=caughtErr;if(caughtErr instanceof Error)actual=caughtErr.toString();else if("string"==typeof caughtErr)actual=caughtErr;else if(caughtErr&&("object"==typeof caughtErr||"function"==typeof caughtErr))try{actual=check_error_exports.getConstructorName(caughtErr)}catch{}this.assert(errorWasThrown,"expected #{this} to throw "+errorLikeString,"expected #{this} to not throw an error but #{act} was thrown",errorLike&&errorLike.toString(),actual)}if(errorLike&&caughtErr){if(errorLike instanceof Error)check_error_exports.compatibleInstance(caughtErr,errorLike)===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr&&!negate?" but #{act} was thrown":""),errorLike.toString(),caughtErr.toString()));check_error_exports.compatibleConstructor(caughtErr,errorLike)===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)))}if(caughtErr&&null!=errMsgMatcher){var placeholder="including";isRegExp2(errMsgMatcher)&&(placeholder="matching"),check_error_exports.compatibleMessage(caughtErr,errMsgMatcher)===negate&&(everyArgIsDefined&&negate?errMsgMatcherFail=!0:this.assert(negate,"expected #{this} to throw error "+placeholder+" #{exp} but got #{act}","expected #{this} to throw error not "+placeholder+" #{exp}",errMsgMatcher,check_error_exports.getMessage(caughtErr)))}errorLikeFail&&errMsgMatcherFail&&this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)),flag2(this,"object",caughtErr)}function respondTo(method,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),itself=flag2(this,"itself"),context="function"!=typeof obj||itself?obj[method]:obj.prototype[method];this.assert("function"==typeof context,"expected #{this} to respond to "+inspect2(method),"expected #{this} to not respond to "+inspect2(method))}function satisfy(matcher,msg){msg&&flag2(this,"message",msg);var result=matcher(flag2(this,"object"));this.assert(result,"expected #{this} to satisfy "+objDisplay(matcher),"expected #{this} to not satisfy"+objDisplay(matcher),!flag2(this,"negate"),result)}function closeTo(expected,delta,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");if(new Assertion(obj,flagMsg,ssfi,!0).is.a("number"),"number"!=typeof expected||"number"!=typeof delta)throw new AssertionError((flagMsg=flagMsg?flagMsg+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===delta?", and a delta is required":""),void 0,ssfi);this.assert(Math.abs(obj-expected)<=delta,"expected #{this} to be close to "+expected+" +/- "+delta,"expected #{this} not to be close to "+expected+" +/- "+delta)}function isSubsetOf(_subset,_superset,cmp,contains,ordered){let superset=Array.from(_superset),subset=Array.from(_subset);if(!contains){if(subset.length!==superset.length)return!1;superset=superset.slice()}return subset.every((function(elem,idx){if(ordered)return cmp?cmp(elem,superset[idx]):elem===superset[idx];if(!cmp){var matchIdx=superset.indexOf(elem);return-1!==matchIdx&&(contains||superset.splice(matchIdx,1),!0)}return superset.some((function(elem2,matchIdx2){return!!cmp(elem,elem2)&&(contains||superset.splice(matchIdx2,1),!0)}))}))}function oneOf(list,msg){msg&&flag2(this,"message",msg);var expected=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),contains=flag2(this,"contains"),isDeep=flag2(this,"deep"),eql=flag2(this,"eql");new Assertion(list,flagMsg,ssfi,!0).to.be.an("array"),contains?this.assert(list.some((function(possibility){return expected.indexOf(possibility)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",list,expected):isDeep?this.assert(list.some((function(possibility){return eql(expected,possibility)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",list,expected):this.assert(list.indexOf(expected)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",list,expected)}function assertChanges(subject,prop,msg){msg&&flag2(this,"message",msg);var initial,fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function"),prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),fn3();var final=null==prop?subject():subject[prop],msgObj=null==prop?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","change"),flag2(this,"realDelta",final!==initial),this.assert(initial!==final,"expected "+msgObj+" to change","expected "+msgObj+" to not change")}function assertIncreases(subject,prop,msg){msg&&flag2(this,"message",msg);var initial,fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function"),prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=null==prop?subject():subject[prop],msgObj=null==prop?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","increase"),flag2(this,"realDelta",final-initial),this.assert(final-initial>0,"expected "+msgObj+" to increase","expected "+msgObj+" to not increase")}function assertDecreases(subject,prop,msg){msg&&flag2(this,"message",msg);var initial,fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function"),prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=null==prop?subject():subject[prop],msgObj=null==prop?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","decrease"),flag2(this,"realDelta",initial-final),this.assert(final-initial<0,"expected "+msgObj+" to decrease","expected "+msgObj+" to not decrease")}function assertDelta(delta,msg){msg&&flag2(this,"message",msg);var expression,msgObj=flag2(this,"deltaMsgObj"),initial=flag2(this,"initialDeltaValue"),final=flag2(this,"finalDeltaValue"),behavior2=flag2(this,"deltaBehavior"),realDelta=flag2(this,"realDelta");expression="change"===behavior2?Math.abs(final-initial)===Math.abs(delta):realDelta===Math.abs(delta),this.assert(expression,"expected "+msgObj+" to "+behavior2+" by "+delta,"expected "+msgObj+" to not "+behavior2+" by "+delta)}function expect(val,message){return new Assertion(val,message)}__name(an,"an"),Assertion.addChainableMethod("an",an),Assertion.addChainableMethod("a",an),__name(SameValueZero,"SameValueZero"),__name(includeChainingBehavior,"includeChainingBehavior"),__name(include,"include"),Assertion.addChainableMethod("include",include,includeChainingBehavior),Assertion.addChainableMethod("contain",include,includeChainingBehavior),Assertion.addChainableMethod("contains",include,includeChainingBehavior),Assertion.addChainableMethod("includes",include,includeChainingBehavior),Assertion.addProperty("ok",(function(){this.assert(flag2(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),Assertion.addProperty("true",(function(){this.assert(!0===flag2(this,"object"),"expected #{this} to be true","expected #{this} to be false",!flag2(this,"negate"))})),Assertion.addProperty("callable",(function(){let val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),message=flag2(this,"message"),msg=message?`${message}: `:"",negate=flag2(this,"negate"),assertionMessage=negate?`${msg}expected ${inspect2(val)} not to be a callable function`:`${msg}expected ${inspect2(val)} to be a callable function`,isCallable3=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(type(val));if(isCallable3&&negate||!isCallable3&&!negate)throw new AssertionError(assertionMessage,void 0,ssfi)})),Assertion.addProperty("false",(function(){this.assert(!1===flag2(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!flag2(this,"negate"))})),Assertion.addProperty("null",(function(){this.assert(null===flag2(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),Assertion.addProperty("undefined",(function(){this.assert(void 0===flag2(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),Assertion.addProperty("NaN",(function(){this.assert(isNaN22(flag2(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),__name(assertExist,"assertExist"),Assertion.addProperty("exist",assertExist),Assertion.addProperty("exists",assertExist),Assertion.addProperty("empty",(function(){var itemsCount,val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message");switch(flagMsg=flagMsg?flagMsg+": ":"",type(val).toLowerCase()){case"array":case"string":itemsCount=val.length;break;case"map":case"set":itemsCount=val.size;break;case"weakmap":case"weakset":throw new AssertionError(flagMsg+".empty was passed a weak collection",void 0,ssfi);case"function":var msg=flagMsg+".empty was passed a function "+getName(val);throw new AssertionError(msg.trim(),void 0,ssfi);default:if(val!==Object(val))throw new AssertionError(flagMsg+".empty was passed non-string primitive "+inspect2(val),void 0,ssfi);itemsCount=Object.keys(val).length}this.assert(0===itemsCount,"expected #{this} to be empty","expected #{this} not to be empty")})),__name(checkArguments,"checkArguments"),Assertion.addProperty("arguments",checkArguments),Assertion.addProperty("Arguments",checkArguments),__name(assertEqual,"assertEqual"),Assertion.addMethod("equal",assertEqual),Assertion.addMethod("equals",assertEqual),Assertion.addMethod("eq",assertEqual),__name(assertEql,"assertEql"),Assertion.addMethod("eql",assertEql),Assertion.addMethod("eqls",assertEql),__name(assertAbove,"assertAbove"),Assertion.addMethod("above",assertAbove),Assertion.addMethod("gt",assertAbove),Assertion.addMethod("greaterThan",assertAbove),__name(assertLeast,"assertLeast"),Assertion.addMethod("least",assertLeast),Assertion.addMethod("gte",assertLeast),Assertion.addMethod("greaterThanOrEqual",assertLeast),__name(assertBelow,"assertBelow"),Assertion.addMethod("below",assertBelow),Assertion.addMethod("lt",assertBelow),Assertion.addMethod("lessThan",assertBelow),__name(assertMost,"assertMost"),Assertion.addMethod("most",assertMost),Assertion.addMethod("lte",assertMost),Assertion.addMethod("lessThanOrEqual",assertMost),Assertion.addMethod("within",(function(start,finish,msg){msg&&flag2(this,"message",msg);var errorMessage,obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),startType=type(start).toLowerCase(),finishType=type(finish).toLowerCase(),shouldThrow=!0,range="date"===startType&&"date"===finishType?start.toISOString()+".."+finish.toISOString():start+".."+finish;if(doLength&&"map"!==objType&&"set"!==objType&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),doLength||"date"!==objType||"date"===startType&&"date"===finishType)if("number"===startType&&"number"===finishType||!doLength&&"number"!==objType)if(doLength||"date"===objType||"number"===objType)shouldThrow=!1;else{errorMessage=msgPrefix+"expected "+("string"===objType?"'"+obj+"'":obj)+" to be a number or a date"}else errorMessage=msgPrefix+"the arguments to within must be numbers";else errorMessage=msgPrefix+"the arguments to within must be dates";if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var itemsCount,descriptor="length";"map"===objType||"set"===objType?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=start&&itemsCount<=finish,"expected #{this} to have a "+descriptor+" within "+range,"expected #{this} to not have a "+descriptor+" within "+range)}else this.assert(obj>=start&&obj<=finish,"expected #{this} to be within "+range,"expected #{this} to not be within "+range)})),__name(assertInstanceOf,"assertInstanceOf"),Assertion.addMethod("instanceof",assertInstanceOf),Assertion.addMethod("instanceOf",assertInstanceOf),__name(assertProperty,"assertProperty"),Assertion.addMethod("property",assertProperty),__name(assertOwnProperty,"assertOwnProperty"),Assertion.addMethod("ownProperty",assertOwnProperty),Assertion.addMethod("haveOwnProperty",assertOwnProperty),__name(assertOwnPropertyDescriptor,"assertOwnPropertyDescriptor"),Assertion.addMethod("ownPropertyDescriptor",assertOwnPropertyDescriptor),Assertion.addMethod("haveOwnPropertyDescriptor",assertOwnPropertyDescriptor),__name(assertLengthChain,"assertLengthChain"),__name(assertLength,"assertLength"),Assertion.addChainableMethod("length",assertLength,assertLengthChain),Assertion.addChainableMethod("lengthOf",assertLength,assertLengthChain),__name(assertMatch,"assertMatch"),Assertion.addMethod("match",assertMatch),Assertion.addMethod("matches",assertMatch),Assertion.addMethod("string",(function(str,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");new Assertion(obj,flag2(this,"message"),flag2(this,"ssfi"),!0).is.a("string"),this.assert(~obj.indexOf(str),"expected #{this} to contain "+inspect2(str),"expected #{this} to not contain "+inspect2(str))})),__name(assertKeys,"assertKeys"),Assertion.addMethod("keys",assertKeys),Assertion.addMethod("key",assertKeys),__name(assertThrows,"assertThrows"),Assertion.addMethod("throw",assertThrows),Assertion.addMethod("throws",assertThrows),Assertion.addMethod("Throw",assertThrows),__name(respondTo,"respondTo"),Assertion.addMethod("respondTo",respondTo),Assertion.addMethod("respondsTo",respondTo),Assertion.addProperty("itself",(function(){flag2(this,"itself",!0)})),__name(satisfy,"satisfy"),Assertion.addMethod("satisfy",satisfy),Assertion.addMethod("satisfies",satisfy),__name(closeTo,"closeTo"),Assertion.addMethod("closeTo",closeTo),Assertion.addMethod("approximately",closeTo),__name(isSubsetOf,"isSubsetOf"),Assertion.addMethod("members",(function(subset,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).to.be.iterable,new Assertion(subset,flagMsg,ssfi,!0).to.be.iterable;var subject,failMsg,failNegateMsg,contains=flag2(this,"contains"),ordered=flag2(this,"ordered");contains?(failMsg="expected #{this} to be "+(subject=ordered?"an ordered superset":"a superset")+" of #{exp}",failNegateMsg="expected #{this} to not be "+subject+" of #{exp}"):(failMsg="expected #{this} to have the same "+(subject=ordered?"ordered members":"members")+" as #{exp}",failNegateMsg="expected #{this} to not have the same "+subject+" as #{exp}");var cmp=flag2(this,"deep")?flag2(this,"eql"):void 0;this.assert(isSubsetOf(subset,obj,cmp,contains,ordered),failMsg,failNegateMsg,subset,obj,!0)})),Assertion.addProperty("iterable",(function(msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(null!=obj&&obj[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",obj)})),__name(oneOf,"oneOf"),Assertion.addMethod("oneOf",oneOf),__name(assertChanges,"assertChanges"),Assertion.addMethod("change",assertChanges),Assertion.addMethod("changes",assertChanges),__name(assertIncreases,"assertIncreases"),Assertion.addMethod("increase",assertIncreases),Assertion.addMethod("increases",assertIncreases),__name(assertDecreases,"assertDecreases"),Assertion.addMethod("decrease",assertDecreases),Assertion.addMethod("decreases",assertDecreases),__name(assertDelta,"assertDelta"),Assertion.addMethod("by",assertDelta),Assertion.addProperty("extensible",(function(){var obj=flag2(this,"object"),isExtensible=obj===Object(obj)&&Object.isExtensible(obj);this.assert(isExtensible,"expected #{this} to be extensible","expected #{this} to not be extensible")})),Assertion.addProperty("sealed",(function(){var obj=flag2(this,"object"),isSealed=obj!==Object(obj)||Object.isSealed(obj);this.assert(isSealed,"expected #{this} to be sealed","expected #{this} to not be sealed")})),Assertion.addProperty("frozen",(function(){var obj=flag2(this,"object"),isFrozen=obj!==Object(obj)||Object.isFrozen(obj);this.assert(isFrozen,"expected #{this} to be frozen","expected #{this} to not be frozen")})),Assertion.addProperty("finite",(function(msg){var obj=flag2(this,"object");this.assert("number"==typeof obj&&isFinite(obj),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})),__name(expect,"expect"),expect.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),new AssertionError(message=message||"expect.fail()",{actual:actual,expected:expected,operator:operator},expect.fail)};var should_exports={};function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}function shouldSetter(value){Object.defineProperty(this,"should",{value:value,enumerable:!0,configurable:!0,writable:!0})}__name(shouldGetter,"shouldGetter"),__name(shouldSetter,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:!0});var should2={fail:function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),new AssertionError(message=message||"should.fail()",{actual:actual,expected:expected,operator:operator},should2.fail)},equal:function(actual,expected,message){new Assertion(actual,message).to.equal(expected)},Throw:function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.Throw(errt,errs)},exist:function(val,msg){new Assertion(val,msg).to.exist},not:{}};return should2.not.equal=function(actual,expected,msg){new Assertion(actual,msg).to.not.equal(expected)},should2.not.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.not.Throw(errt,errs)},should2.not.exist=function(val,msg){new Assertion(val,msg).to.not.exist},should2.throw=should2.Throw,should2.not.throw=should2.not.Throw,should2}__export2(should_exports,{Should:()=>Should,should:()=>should}),__name(loadShould,"loadShould");var should=loadShould,Should=loadShould;function assert(express,errmsg){new Assertion(null,null,assert,!0).assert(express,errmsg,"[ negation message unavailable ]")}__name(assert,"assert"),assert.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),new AssertionError(message=message||"assert.fail()",{actual:actual,expected:expected,operator:operator},assert.fail)},assert.isOk=function(val,msg){new Assertion(val,msg,assert.isOk,!0).is.ok},assert.isNotOk=function(val,msg){new Assertion(val,msg,assert.isNotOk,!0).is.not.ok},assert.equal=function(act,exp,msg){var test22=new Assertion(act,msg,assert.equal,!0);test22.assert(exp==flag(test22,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",exp,act,!0)},assert.notEqual=function(act,exp,msg){var test22=new Assertion(act,msg,assert.notEqual,!0);test22.assert(exp!=flag(test22,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",exp,act,!0)},assert.strictEqual=function(act,exp,msg){new Assertion(act,msg,assert.strictEqual,!0).to.equal(exp)},assert.notStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.notStrictEqual,!0).to.not.equal(exp)},assert.deepEqual=assert.deepStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.deepEqual,!0).to.eql(exp)},assert.notDeepEqual=function(act,exp,msg){new Assertion(act,msg,assert.notDeepEqual,!0).to.not.eql(exp)},assert.isAbove=function(val,abv,msg){new Assertion(val,msg,assert.isAbove,!0).to.be.above(abv)},assert.isAtLeast=function(val,atlst,msg){new Assertion(val,msg,assert.isAtLeast,!0).to.be.least(atlst)},assert.isBelow=function(val,blw,msg){new Assertion(val,msg,assert.isBelow,!0).to.be.below(blw)},assert.isAtMost=function(val,atmst,msg){new Assertion(val,msg,assert.isAtMost,!0).to.be.most(atmst)},assert.isTrue=function(val,msg){new Assertion(val,msg,assert.isTrue,!0).is.true},assert.isNotTrue=function(val,msg){new Assertion(val,msg,assert.isNotTrue,!0).to.not.equal(!0)},assert.isFalse=function(val,msg){new Assertion(val,msg,assert.isFalse,!0).is.false},assert.isNotFalse=function(val,msg){new Assertion(val,msg,assert.isNotFalse,!0).to.not.equal(!1)},assert.isNull=function(val,msg){new Assertion(val,msg,assert.isNull,!0).to.equal(null)},assert.isNotNull=function(val,msg){new Assertion(val,msg,assert.isNotNull,!0).to.not.equal(null)},assert.isNaN=function(val,msg){new Assertion(val,msg,assert.isNaN,!0).to.be.NaN},assert.isNotNaN=function(value,message){new Assertion(value,message,assert.isNotNaN,!0).not.to.be.NaN},assert.exists=function(val,msg){new Assertion(val,msg,assert.exists,!0).to.exist},assert.notExists=function(val,msg){new Assertion(val,msg,assert.notExists,!0).to.not.exist},assert.isUndefined=function(val,msg){new Assertion(val,msg,assert.isUndefined,!0).to.equal(void 0)},assert.isDefined=function(val,msg){new Assertion(val,msg,assert.isDefined,!0).to.not.equal(void 0)},assert.isCallable=function(value,message){new Assertion(value,message,assert.isCallable,!0).is.callable},assert.isNotCallable=function(value,message){new Assertion(value,message,assert.isNotCallable,!0).is.not.callable},assert.isObject=function(val,msg){new Assertion(val,msg,assert.isObject,!0).to.be.a("object")},assert.isNotObject=function(val,msg){new Assertion(val,msg,assert.isNotObject,!0).to.not.be.a("object")},assert.isArray=function(val,msg){new Assertion(val,msg,assert.isArray,!0).to.be.an("array")},assert.isNotArray=function(val,msg){new Assertion(val,msg,assert.isNotArray,!0).to.not.be.an("array")},assert.isString=function(val,msg){new Assertion(val,msg,assert.isString,!0).to.be.a("string")},assert.isNotString=function(val,msg){new Assertion(val,msg,assert.isNotString,!0).to.not.be.a("string")},assert.isNumber=function(val,msg){new Assertion(val,msg,assert.isNumber,!0).to.be.a("number")},assert.isNotNumber=function(val,msg){new Assertion(val,msg,assert.isNotNumber,!0).to.not.be.a("number")},assert.isFinite=function(val,msg){new Assertion(val,msg,assert.isFinite,!0).to.be.finite},assert.isBoolean=function(val,msg){new Assertion(val,msg,assert.isBoolean,!0).to.be.a("boolean")},assert.isNotBoolean=function(val,msg){new Assertion(val,msg,assert.isNotBoolean,!0).to.not.be.a("boolean")},assert.typeOf=function(val,type32,msg){new Assertion(val,msg,assert.typeOf,!0).to.be.a(type32)},assert.notTypeOf=function(value,type32,message){new Assertion(value,message,assert.notTypeOf,!0).to.not.be.a(type32)},assert.instanceOf=function(val,type32,msg){new Assertion(val,msg,assert.instanceOf,!0).to.be.instanceOf(type32)},assert.notInstanceOf=function(val,type32,msg){new Assertion(val,msg,assert.notInstanceOf,!0).to.not.be.instanceOf(type32)},assert.include=function(exp,inc,msg){new Assertion(exp,msg,assert.include,!0).include(inc)},assert.notInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notInclude,!0).not.include(inc)},assert.deepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepInclude,!0).deep.include(inc)},assert.notDeepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepInclude,!0).not.deep.include(inc)},assert.nestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.nestedInclude,!0).nested.include(inc)},assert.notNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notNestedInclude,!0).not.nested.include(inc)},assert.deepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepNestedInclude,!0).deep.nested.include(inc)},assert.notDeepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepNestedInclude,!0).not.deep.nested.include(inc)},assert.ownInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.ownInclude,!0).own.include(inc)},assert.notOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notOwnInclude,!0).not.own.include(inc)},assert.deepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepOwnInclude,!0).deep.own.include(inc)},assert.notDeepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepOwnInclude,!0).not.deep.own.include(inc)},assert.match=function(exp,re,msg){new Assertion(exp,msg,assert.match,!0).to.match(re)},assert.notMatch=function(exp,re,msg){new Assertion(exp,msg,assert.notMatch,!0).to.not.match(re)},assert.property=function(obj,prop,msg){new Assertion(obj,msg,assert.property,!0).to.have.property(prop)},assert.notProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notProperty,!0).to.not.have.property(prop)},assert.propertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.propertyVal,!0).to.have.property(prop,val)},assert.notPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notPropertyVal,!0).to.not.have.property(prop,val)},assert.deepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepPropertyVal,!0).to.have.deep.property(prop,val)},assert.notDeepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepPropertyVal,!0).to.not.have.deep.property(prop,val)},assert.ownProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.ownProperty,!0).to.have.own.property(prop)},assert.notOwnProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notOwnProperty,!0).to.not.have.own.property(prop)},assert.ownPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.ownPropertyVal,!0).to.have.own.property(prop,value)},assert.notOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notOwnPropertyVal,!0).to.not.have.own.property(prop,value)},assert.deepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.deepOwnPropertyVal,!0).to.have.deep.own.property(prop,value)},assert.notDeepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(prop,value)},assert.nestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.nestedProperty,!0).to.have.nested.property(prop)},assert.notNestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notNestedProperty,!0).to.not.have.nested.property(prop)},assert.nestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.nestedPropertyVal,!0).to.have.nested.property(prop,val)},assert.notNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notNestedPropertyVal,!0).to.not.have.nested.property(prop,val)},assert.deepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepNestedPropertyVal,!0).to.have.deep.nested.property(prop,val)},assert.notDeepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(prop,val)},assert.lengthOf=function(exp,len,msg){new Assertion(exp,msg,assert.lengthOf,!0).to.have.lengthOf(len)},assert.hasAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyKeys,!0).to.have.any.keys(keys2)},assert.hasAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllKeys,!0).to.have.all.keys(keys2)},assert.containsAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllKeys,!0).to.contain.all.keys(keys2)},assert.doesNotHaveAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyKeys,!0).to.not.have.any.keys(keys2)},assert.doesNotHaveAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllKeys,!0).to.not.have.all.keys(keys2)},assert.hasAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyDeepKeys,!0).to.have.any.deep.keys(keys2)},assert.hasAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllDeepKeys,!0).to.have.all.deep.keys(keys2)},assert.containsAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllDeepKeys,!0).to.contain.all.deep.keys(keys2)},assert.doesNotHaveAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(keys2)},assert.doesNotHaveAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(keys2)},assert.throws=function(fn3,errorLike,errMsgMatcher,msg){return("string"==typeof errorLike||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),flag(new Assertion(fn3,msg,assert.throws,!0).to.throw(errorLike,errMsgMatcher),"object")},assert.doesNotThrow=function(fn3,errorLike,errMsgMatcher,message){("string"==typeof errorLike||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),new Assertion(fn3,message,assert.doesNotThrow,!0).to.not.throw(errorLike,errMsgMatcher)},assert.operator=function(val,operator,val2,msg){var ok;switch(operator){case"==":ok=val==val2;break;case"===":ok=val===val2;break;case">":ok=val>val2;break;case">=":ok=val>=val2;break;case"<":ok=valtoBeChecked,toBeDisabled:()=>toBeDisabled,toBeEmpty:()=>toBeEmpty,toBeEmptyDOMElement:()=>toBeEmptyDOMElement,toBeEnabled:()=>toBeEnabled,toBeInTheDOM:()=>toBeInTheDOM,toBeInTheDocument:()=>toBeInTheDocument,toBeInvalid:()=>toBeInvalid,toBePartiallyChecked:()=>toBePartiallyChecked,toBeRequired:()=>toBeRequired,toBeValid:()=>toBeValid,toBeVisible:()=>toBeVisible,toContainElement:()=>toContainElement,toContainHTML:()=>toContainHTML,toHaveAccessibleDescription:()=>toHaveAccessibleDescription,toHaveAccessibleErrorMessage:()=>toHaveAccessibleErrorMessage,toHaveAccessibleName:()=>toHaveAccessibleName,toHaveAttribute:()=>toHaveAttribute,toHaveClass:()=>toHaveClass,toHaveDescription:()=>toHaveDescription,toHaveDisplayValue:()=>toHaveDisplayValue,toHaveErrorMessage:()=>toHaveErrorMessage,toHaveFocus:()=>toHaveFocus,toHaveFormValues:()=>toHaveFormValues,toHaveRole:()=>toHaveRole,toHaveStyle:()=>toHaveStyle,toHaveTextContent:()=>toHaveTextContent,toHaveValue:()=>toHaveValue});var import_redent=__toESM(require_redent(),1);function $parcel$defineInteropFlag(a2){Object.defineProperty(a2,"__esModule",{value:!0,configurable:!0})}function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $009ddb00d3ec72b8$exports={};$parcel$defineInteropFlag($009ddb00d3ec72b8$exports),$parcel$export($009ddb00d3ec72b8$exports,"default",(()=>$009ddb00d3ec72b8$export$2e2bcd8739ae039));var $009ddb00d3ec72b8$export$2e2bcd8739ae039=class extends Error{constructor(filename,msg,lineno,column,css){super(filename+":"+lineno+":"+column+": "+msg),this.reason=msg,this.filename=filename,this.line=lineno,this.column=column,this.source=css}},$0865a9fb4cc365fe$exports={};$parcel$defineInteropFlag($0865a9fb4cc365fe$exports),$parcel$export($0865a9fb4cc365fe$exports,"default",(()=>$0865a9fb4cc365fe$export$2e2bcd8739ae039));var $b2e137848b48cf4f$export$9be5dd6e61d5d73a,CssTypes,$0865a9fb4cc365fe$export$2e2bcd8739ae039=class{constructor(start,end,source){this.start=start,this.end=end,this.source=source}};$parcel$export({},"CssTypes",(()=>$b2e137848b48cf4f$export$9be5dd6e61d5d73a)),(CssTypes=$b2e137848b48cf4f$export$9be5dd6e61d5d73a||($b2e137848b48cf4f$export$9be5dd6e61d5d73a={})).stylesheet="stylesheet",CssTypes.rule="rule",CssTypes.declaration="declaration",CssTypes.comment="comment",CssTypes.container="container",CssTypes.charset="charset",CssTypes.document="document",CssTypes.customMedia="custom-media",CssTypes.fontFace="font-face",CssTypes.host="host",CssTypes.import="import",CssTypes.keyframes="keyframes",CssTypes.keyframe="keyframe",CssTypes.layer="layer",CssTypes.media="media",CssTypes.namespace="namespace",CssTypes.page="page",CssTypes.startingStyle="starting-style",CssTypes.supports="supports";var $d708735ed1303b43$var$commentre=/\/\*[^]*?(?:\*\/|$)/g;function $d708735ed1303b43$var$trim(str){return str?str.trim():""}function $d708735ed1303b43$var$addParent(obj,parent){let isNode=obj&&"string"==typeof obj.type,childParent=isNode?obj:parent;for(let k2 in obj){let value=obj[k2];Array.isArray(value)?value.forEach((v=>{$d708735ed1303b43$var$addParent(v,childParent)})):value&&"object"==typeof value&&$d708735ed1303b43$var$addParent(value,childParent)}return isNode&&Object.defineProperty(obj,"parent",{configurable:!0,writable:!0,enumerable:!1,value:parent||null}),obj}var $149c1bd638913645$export$98e6a39c04603d36=(css,options)=>{options=options||{};let lineno=1,column=1;function position(){let start={line:lineno,column:column};return function(node){return node.position=new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start,{line:lineno,column:column},options?.source||""),whitespace(),node}}let errorsList=[];function error(msg){let err=new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source||"",msg,lineno,column,css);if(!options?.silent)throw err;errorsList.push(err)}function open(){return match(/^{\s*/)}function close(){return match(/^}/)}function rules(){let node,rules2=[];for(whitespace(),comments(rules2);css.length&&"}"!==css.charAt(0)&&(node=atrule()||rule());)node&&(rules2.push(node),comments(rules2));return rules2}function match(re){let m2=re.exec(css);if(!m2)return;let str=m2[0];return function updatePosition(str){let lines=str.match(/\n/g);lines&&(lineno+=lines.length);let i=str.lastIndexOf("\n");column=~i?str.length-i:column+str.length}(str),css=css.slice(str.length),m2}function whitespace(){match(/^\s*/)}function comments(rules2){let c;for(rules2=rules2||[];c=comment();)c&&rules2.push(c);return rules2}function comment(){let pos=position();if("/"!==css.charAt(0)||"*"!==css.charAt(1))return;let m2=match(/^\/\*[^]*?\*\//);return m2?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,comment:m2[0].slice(2,-2)}):error("End of comment missing")}function findClosingParenthese(str,start,depth){let ptr=start+1,found=!1,closeParentheses=str.indexOf(")",ptr);for(;!found&&-1!==closeParentheses;){let nextParentheses=str.indexOf("(",ptr);-1!==nextParentheses&&nextParenthesesm3.replace(/,/g,"‌"))),res.split(",").map((s=>$d708735ed1303b43$var$trim(s.replace(/\u200C/g,","))))}function declaration(){let pos=position(),propMatch=match(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!propMatch)return;let propValue=$d708735ed1303b43$var$trim(propMatch[0]);if(!match(/^:\s*/))return error("property missing ':'");let val=match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ret=pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration,property:propValue.replace($d708735ed1303b43$var$commentre,""),value:val?$d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre,""):""});return match(/^[;\s]*/),ret}function declarations(){let decl,decls=[];if(!open())return error("missing '{'");for(comments(decls);decl=declaration();)decl&&(decls.push(decl),comments(decls));return close()?decls:error("missing '}'")}function keyframe(){let m2,vals=[],pos=position();for(;m2=match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)vals.push(m2[1]),match(/^,\s*/);if(vals.length)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,values:vals,declarations:declarations()||[]})}let atimport=_compileAtrule("import"),atcharset=_compileAtrule("charset"),atnamespace=_compileAtrule("namespace");function _compileAtrule(name){let re=new RegExp("^@"+name+"\\s*((?::?[^;'\"]|\"(?:\\\\\"|[^\"])*?\"|'(?:\\\\'|[^'])*?')+)(?:;|$)");return function(){let pos=position(),m2=match(re);if(!m2)return;let ret={type:name};return ret[name]=m2[1].trim(),pos(ret)}}function atrule(){if("@"===css[0])return function atkeyframes(){let pos=position(),m1=match(/^@([-\w]+)?keyframes\s*/);if(!m1)return;let vendor=m1[1],m2=match(/^([-\w]+)\s*/);if(!m2)return error("@keyframes missing name");let name=m2[1];if(!open())return error("@keyframes missing '{'");let frame,frames=comments();for(;frame=keyframe();)frames.push(frame),frames=frames.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes,name:name,vendor:vendor,keyframes:frames}):error("@keyframes missing '}'")}()||function atmedia(){let pos=position(),m2=match(/^@media *([^{]+)/);if(!m2)return;let media=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error("@media missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.media,media:media,rules:style}):error("@media missing '}'")}()||function atcustommedia(){let pos=position(),m2=match(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(m2)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,name:$d708735ed1303b43$var$trim(m2[1]),media:$d708735ed1303b43$var$trim(m2[2])})}()||function atsupports(){let pos=position(),m2=match(/^@supports *([^{]+)/);if(!m2)return;let supports=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error("@supports missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports,supports:supports,rules:style}):error("@supports missing '}'")}()||atimport()||atcharset()||atnamespace()||function atdocument(){let pos=position(),m2=match(/^@([-\w]+)?document *([^{]+)/);if(!m2)return;let vendor=$d708735ed1303b43$var$trim(m2[1]),doc=$d708735ed1303b43$var$trim(m2[2]);if(!open())return error("@document missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.document,document:doc,vendor:vendor,rules:style}):error("@document missing '}'")}()||function atpage(){let pos=position();if(!match(/^@page */))return;let sel=selector()||[];if(!open())return error("@page missing '{'");let decl,decls=comments();for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.page,selectors:sel,declarations:decls}):error("@page missing '}'")}()||function athost(){let pos=position();if(!match(/^@host\s*/))return;if(!open())return error("@host missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.host,rules:style}):error("@host missing '}'")}()||function atfontface(){let pos=position();if(!match(/^@font-face\s*/))return;if(!open())return error("@font-face missing '{'");let decl,decls=comments();for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace,declarations:decls}):error("@font-face missing '}'")}()||function atcontainer(){let pos=position(),m2=match(/^@container *([^{]+)/);if(!m2)return;let container=$d708735ed1303b43$var$trim(m2[1]);if(!open())return error("@container missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.container,container:container,rules:style}):error("@container missing '}'")}()||function atstartingstyle(){let pos=position();if(!match(/^@starting-style\s*/))return;if(!open())return error("@starting-style missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle,rules:style}):error("@starting-style missing '}'")}()||function atlayer(){let pos=position(),m2=match(/^@layer *([^{;@]+)/);if(!m2)return;let layer=$d708735ed1303b43$var$trim(m2[1]);if(!open())return match(/^[;\s]*/),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer:layer});let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer:layer,rules:style}):error("@layer missing '}'")}()}function rule(){let pos=position(),sel=selector();return sel?(comments(),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule,selectors:sel,declarations:declarations()||[]})):error("selector missing")}return $d708735ed1303b43$var$addParent(function stylesheet(){let rulesList=rules();return{type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet,stylesheet:{source:options?.source,rules:rulesList,parsingErrors:errorsList}}}())},toStr=Object.prototype.toString;function isCallable(fn3){return"function"==typeof fn3||"[object Function]"===toStr.call(fn3)}var maxSafeInteger=Math.pow(2,53)-1;function toLength(value){var len=function toInteger(value){var number=Number(value);return isNaN(number)?0:0!==number&&isFinite(number)?(number>0?1:-1)*Math.floor(Math.abs(number)):number}(value);return Math.min(Math.max(len,0),maxSafeInteger)}function arrayFrom(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(null==arrayLike)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof mapFn<"u"&&!isCallable(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var kValue,len=toLength(items.length),A=isCallable(C3)?Object(new C3(len)):new Array(len),k2=0;k20&&void 0!==arguments[0]?arguments[0]:[];(function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")})(this,SetLike3),function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"items",void 0),this.items=items}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(SetLike3,[{key:"add",value:function(value){return!1===this.has(value)&&this.items.push(value),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter((function(item){return item!==value})),previousLength!==this.items.length}},{key:"forEach",value:function(callbackfn){var _this=this;this.items.forEach((function(item){callbackfn(item,item,_this)}))}},{key:"has",value:function(value){return-1!==this.items.indexOf(value)}},{key:"size",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default=typeof Set>"u"?Set:SetLike;function getLocalName(element){var _element$localName;return null!==(_element$localName=element.localName)&&void 0!==_element$localName?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},prohibitedAttributes={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function ignorePresentationalRole(element,implicitRole){return function hasGlobalAriaAttributes(element,role){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some((function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!(null!==(_prohibitedAttributes=prohibitedAttributes[role])&&void 0!==_prohibitedAttributes&&_prohibitedAttributes.has(attributeName))}))}(element,implicitRole)}function getRole(element){var explicitRole=function getExplicitRole(element){var role=element.getAttribute("role");if(null!==role){var explicitRole=role.trim().split(" ")[0];if(explicitRole.length>0)return explicitRole}return null}(element);if(null===explicitRole||-1!==presentationRoles.indexOf(explicitRole)){var implicitRole=function getImplicitRole(element){var mappedByTag=localNameToRoleMappings[getLocalName(element)];if(void 0!==mappedByTag)return mappedByTag;switch(getLocalName(element)){case"a":case"area":case"link":if(element.hasAttribute("href"))return"link";break;case"img":return""!==element.getAttribute("alt")||ignorePresentationalRole(element,"img")?"img":"presentation";case"input":var type5=element.type;switch(type5){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return type5;case"range":return"slider";case"email":case"tel":case"text":case"url":return element.hasAttribute("list")?"combobox":"textbox";case"search":return element.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}case"select":return element.hasAttribute("multiple")||element.size>1?"listbox":"combobox"}return null}(element);if(-1===presentationRoles.indexOf(explicitRole||"")||ignorePresentationalRole(element,implicitRole||""))return implicitRole}return explicitRole}var presentationRoles=["presentation","none"];function isElement(node){return null!==node&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement(node){return isElement(node)&&"caption"===getLocalName(node)}function isHTMLInputElement(node){return isElement(node)&&"input"===getLocalName(node)}function isHTMLLegendElement(node){return isElement(node)&&"legend"===getLocalName(node)}function isSVGTitleElement(node){return function isSVGElement(node){return isElement(node)&&void 0!==node.ownerSVGElement}(node)&&"title"===getLocalName(node)}function queryIdRefs(node,attributeName){if(isElement(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(" "),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map((function(id){return root.getElementById(id)})).filter((function(element){return null!==element}))}return[]}function hasAnyConcreteRoles(node,roles3){return!!isElement(node)&&-1!==roles3.indexOf(getRole(node))}function hasAbstractRole(node,role){if(!isElement(node))return!1;if("range"===role)return hasAnyConcreteRoles(node,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(role,"'. This is likely a bug :("))}function querySelectorAllSubtree(element,selectors){var elements=arrayFrom(element.querySelectorAll(selectors));return queryIdRefs(element,"aria-owns").forEach((function(root){elements.push.apply(elements,arrayFrom(root.querySelectorAll(selectors)))})),elements}function querySelectedOptions(listbox){return function isHTMLSelectElement(node){return isElement(node)&&"select"===getLocalName(node)}(listbox)?listbox.selectedOptions||querySelectorAllSubtree(listbox,"[selected]"):querySelectorAllSubtree(listbox,'[aria-selected="true"]')}function getValueOfTextbox(element){return isHTMLInputElement(element)||function isHTMLTextAreaElement(node){return isElement(node)&&"textarea"===getLocalName(node)}(element)?element.value:element.textContent||""}function getTextualContent(declaration){var content=declaration.getPropertyValue("content");return/^["'].*["']$/.test(content)?content.slice(1,-1):""}function isLabelableElement(element){var localName=getLocalName(element);return"button"===localName||"input"===localName&&"hidden"!==element.getAttribute("type")||"meter"===localName||"output"===localName||"progress"===localName||"select"===localName||"textarea"===localName}function findLabelableElement(element){if(isLabelableElement(element))return element;var labelableElement=null;return element.childNodes.forEach((function(childNode){if(null===labelableElement&&isElement(childNode)){var descendantLabelableElement=findLabelableElement(childNode);null!==descendantLabelableElement&&(labelableElement=descendantLabelableElement)}})),labelableElement}function getControlOfLabel(label){if(void 0!==label.control)return label.control;var htmlFor=label.getAttribute("for");return null!==htmlFor?label.ownerDocument.getElementById(htmlFor):findLabelableElement(label)}function computeTextAlternative(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},consultedNodes=new SetLike_default,window2=function safeWindow(node){var defaultView=(null===node.ownerDocument?node:node.ownerDocument).defaultView;if(null===defaultView)throw new TypeError("no window available");return defaultView}(root),_options$compute=options.compute,compute=void 0===_options$compute?"name":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=void 0===_options$computedStyl?void 0!==options.getComputedStyle:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=void 0===_options$getComputedS?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=void 0!==_options$hidden&&_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText="";if(isElement(node)&&computedStyleSupportsPseudoElements){var beforeContent=getTextualContent(getComputedStyle(node,"::before"));accumulatedText="".concat(beforeContent," ").concat(accumulatedText)}if((function isHTMLSlotElement(node){return isElement(node)&&"slot"===getLocalName(node)}(node)?function getSlotContents(slot){var assignedNodes=slot.assignedNodes();return 0===assignedNodes.length?arrayFrom(slot.childNodes):assignedNodes}(node):arrayFrom(node.childNodes).concat(queryIdRefs(node,"aria-owns"))).forEach((function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),separator="inline"!==(isElement(child)?getComputedStyle(child).getPropertyValue("display"):"inline")?" ":"";accumulatedText+="".concat(separator).concat(result).concat(separator)})),isElement(node)&&computedStyleSupportsPseudoElements){var afterContent=getTextualContent(getComputedStyle(node,"::after"));accumulatedText="".concat(accumulatedText," ").concat(afterContent)}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return null===attribute||consultedNodes.has(attribute)||""===attribute.value.trim()?null:(consultedNodes.add(attribute),attribute.value)}function computeElementTextAlternative(node){if(!isElement(node))return null;if(function isHTMLFieldSetElement(node){return isElement(node)&&"fieldset"===getLocalName(node)}(node)){consultedNodes.add(node);for(var children=arrayFrom(node.childNodes),i=0;i0})).join(" ");if(isHTMLInputElement(node)&&"image"===node.type){var _nameFromAlt=useAttribute(node,"alt");if(null!==_nameFromAlt)return _nameFromAlt;var nameFromTitle=useAttribute(node,"title");return null!==nameFromTitle?nameFromTitle:"Submit Query"}if(hasAnyConcreteRoles(node,["button"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(""!==nameFromSubTree)return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return"";if(!hidden&&function isHidden(node,getComputedStyleImplementation){if(!isElement(node))return!1;if(node.hasAttribute("hidden")||"true"===node.getAttribute("aria-hidden"))return!0;var style=getComputedStyleImplementation(node);return"none"===style.getPropertyValue("display")||"hidden"===style.getPropertyValue("visibility")}(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),"";var labelAttributeNode=isElement(current)?current.getAttributeNode("aria-labelledby"):null,labelElements=null===labelAttributeNode||consultedNodes.has(labelAttributeNode)?[]:queryIdRefs(current,"aria-labelledby");if("name"===compute&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map((function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})})).join(" ");var skipToStep2E=context.recursion&&function isControl(node){return hasAnyConcreteRoles(node,["button","combobox","listbox","textbox"])||hasAbstractRole(node,"range")}(current)&&"name"===compute;if(!skipToStep2E){var ariaLabel=(isElement(current)&¤t.getAttribute("aria-label")||"").trim();if(""!==ariaLabel&&"name"===compute)return consultedNodes.add(current),ariaLabel;if(!function isMarkedPresentational(node){return hasAnyConcreteRoles(node,presentationRoles)}(current)){var elementTextAlternative=computeElementTextAlternative(current);if(null!==elementTextAlternative)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles(current,["menu"]))return consultedNodes.add(current),"";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles(current,["combobox","listbox"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions(current);return 0===selectedOptions.length?isHTMLInputElement(current)?current.value:"":arrayFrom(selectedOptions).map((function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})})).join(" ")}if(hasAbstractRole(current,"range"))return consultedNodes.add(current),current.hasAttribute("aria-valuetext")?current.getAttribute("aria-valuetext"):current.hasAttribute("aria-valuenow")?current.getAttribute("aria-valuenow"):current.getAttribute("value")||"";if(hasAnyConcreteRoles(current,["textbox"]))return consultedNodes.add(current),getValueOfTextbox(current)}if(function allowsNameFromContent(node){return hasAnyConcreteRoles(node,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}(current)||isElement(current)&&context.isReferenced||function isNativeHostLanguageTextAlternativeElement(node){return isHTMLTableCaptionElement(node)}(current)){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(""!==accumulatedText2F)return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||"";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=function computeTooltipAttributeValue(node){return isElement(node)?useAttribute(node,"title"):null}(current);return null!==tooltipAttributeValue?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),"")}return function asFlatString(s){return s.trim().replace(/\s\s+/g," ")}(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:"description"===compute,recursion:!1}))}function _typeof2(o){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2})(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r2){return Object.getOwnPropertyDescriptor(e,r2).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return function prohibitsNaming(node){return hasAnyConcreteRoles(node,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}(root)?"":computeTextAlternative(root,options)}var import_aria_query=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1),import_isEqualWith=__toESM(require_isEqualWith(),1),import_css=__toESM(require_css_escape(),1),GenericTypeError=class extends Error{constructor(expectedString,received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn);let withType="";try{withType=context.utils.printWithType("Received",received,context.utils.printReceived)}catch{}this.message=[context.utils.matcherHint(`${context.isNot?".not":""}.${matcherFn.name}`,"received",""),"",`${context.utils.RECEIVED_COLOR("received")} value must ${expectedString}.`,withType].join("\n")}},HtmlElementTypeError=class extends GenericTypeError{constructor(...args){super("be an HTMLElement or an SVGElement",...args)}},NodeTypeError=class extends GenericTypeError{constructor(...args){super("be a Node",...args)}};function checkHasWindow(htmlElement,ErrorClass,...args){if(!htmlElement||!htmlElement.ownerDocument||!htmlElement.ownerDocument.defaultView)throw new ErrorClass(htmlElement,...args)}function checkHtmlElement(htmlElement,...args){checkHasWindow(htmlElement,HtmlElementTypeError,...args);let window2=htmlElement.ownerDocument.defaultView;if(!(htmlElement instanceof window2.HTMLElement||htmlElement instanceof window2.SVGElement))throw new HtmlElementTypeError(htmlElement,...args)}var InvalidCSSError=class extends Error{constructor(received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn),this.message=[received.message,"",context.utils.RECEIVED_COLOR("Failing css:"),context.utils.RECEIVED_COLOR(`${received.css}`)].join("\n")}};function display(context,value){return"string"==typeof value?value:context.utils.stringify(value)}function getMessage3(context,matcher,expectedLabel,expectedValue,receivedLabel,receivedValue){return[`${matcher}\n`,`${expectedLabel}:\n${context.utils.EXPECTED_COLOR((0,import_redent.default)(display(context,expectedValue),2))}`,`${receivedLabel}:\n${context.utils.RECEIVED_COLOR((0,import_redent.default)(display(context,receivedValue),2))}`].join("\n")}function deprecate(name,replacementText){console.warn(`Warning: ${name} has been deprecated and will be removed in future updates.`,replacementText)}function normalize(text){return text.replace(/\s+/g," ").trim()}function getTag(element){return element.tagName&&element.tagName.toLowerCase()}var rolesSupportingValues=["meter","progressbar","slider","spinbutton"];function getSingleElementValue(element){if(element)switch(element.tagName.toLowerCase()){case"input":return function getInputValue(inputElement){switch(inputElement.type){case"number":return""===inputElement.value?null:Number(inputElement.value);case"checkbox":return inputElement.checked;default:return inputElement.value}}(element);case"select":return function getSelectValue({multiple:multiple,options:options}){let selectedOptions=[...options].filter((option=>option.selected));return multiple?[...selectedOptions].map((opt=>opt.value)):0!==selectedOptions.length?selectedOptions[0].value:void 0}(element);default:return element.value??function getAccessibleValue(element){if(rolesSupportingValues.includes(element.getAttribute("role")))return Number(element.getAttribute("aria-valuenow"))}(element)}}function compareArraysAsSet(arr1,arr2){if(Array.isArray(arr1)&&Array.isArray(arr2))return[...new Set(arr1)].every((v=>new Set(arr2).has(v)))}function toBeInTheDOM(element,container){return deprecate("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),element&&checkHtmlElement(element,toBeInTheDOM,this),container&&checkHtmlElement(container,toBeInTheDOM,this),{pass:container?container.contains(element):!!element,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeInTheDOM","element",""),"","Received:",` ${this.utils.printReceived(element&&element.cloneNode(!1))}`].join("\n")}}function toBeInTheDocument(element){(null!==element||!this.isNot)&&checkHtmlElement(element,toBeInTheDocument,this);let pass=null!==element&&element.ownerDocument===element.getRootNode({composed:!0}),errorFound=()=>`expected document not to contain element, found ${this.utils.stringify(element.cloneNode(!0))} instead`;return{pass:pass,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeInTheDocument","element",""),"",this.utils.RECEIVED_COLOR(this.isNot?errorFound():"element could not be found in the document")].join("\n")}}function toBeEmpty(element){return deprecate("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),checkHtmlElement(element,toBeEmpty,this),{pass:""===element.innerHTML,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeEmpty","element",""),"","Received:",` ${this.utils.printReceived(element.innerHTML)}`].join("\n")}}function toBeEmptyDOMElement(element){return checkHtmlElement(element,toBeEmptyDOMElement,this),{pass:isEmptyElement(element),message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toBeEmptyDOMElement","element",""),"","Received:",` ${this.utils.printReceived(element.innerHTML)}`].join("\n")}}function isEmptyElement(element){return 0===[...element.childNodes].filter((node=>8!==node.nodeType)).length}function toContainElement(container,element){return checkHtmlElement(container,toContainElement,this),null!==element&&checkHtmlElement(element,toContainElement,this),{pass:container.contains(element),message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toContainElement","element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(container.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(element&&element.cloneNode(!1))}\n `)].join("\n")}}function getNormalizedHtml(container,htmlText){let div=container.ownerDocument.createElement("div");return div.innerHTML=htmlText,div.innerHTML}function toContainHTML(container,htmlText){if(checkHtmlElement(container,toContainHTML,this),"string"!=typeof htmlText)throw new Error(`.toContainHTML() expects a string value, got ${htmlText}`);return{pass:container.outerHTML.includes(getNormalizedHtml(container,htmlText)),message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toContainHTML","element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(htmlText)}`,"Received:",` ${this.utils.printReceived(container.cloneNode(!0))}`].join("\n")}}function toHaveTextContent(node,checkWith,options={normalizeWhitespace:!0}){!function checkNode(node,...args){if(checkHasWindow(node,NodeTypeError,...args),!(node instanceof node.ownerDocument.defaultView.Node))throw new NodeTypeError(node,...args)}(node,toHaveTextContent,this);let textContent=options.normalizeWhitespace?normalize(node.textContent):node.textContent.replace(/\u00a0/g," "),checkingWithEmptyString=""!==textContent&&""===checkWith;return{pass:!checkingWithEmptyString&&(textToMatch=textContent,matcher=checkWith,matcher instanceof RegExp?matcher.test(textToMatch):textToMatch.includes(String(matcher))),message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveTextContent","element",""),checkingWithEmptyString?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${to} have text content`,checkWith,"Received",textContent)}};var textToMatch,matcher}function toHaveAccessibleDescription(htmlElement,expectedAccessibleDescription){checkHtmlElement(htmlElement,toHaveAccessibleDescription,this);let actualAccessibleDescription=function computeAccessibleDescription(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},description=queryIdRefs(root,"aria-describedby").map((function(element){return computeTextAlternative(element,_objectSpread(_objectSpread({},options),{},{compute:"description"}))})).join(" ");if(""===description){var ariaDescription=root.getAttribute("aria-description");description=null===ariaDescription?"":ariaDescription}if(""===description){var title=root.getAttribute("title");description=null===title?"":title}return description}(htmlElement),pass=!1;return pass=1===arguments.length?""!==actualAccessibleDescription:expectedAccessibleDescription instanceof RegExp?expectedAccessibleDescription.test(actualAccessibleDescription):this.equals(actualAccessibleDescription,expectedAccessibleDescription),{pass:pass,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.${toHaveAccessibleDescription.name}`,"element",""),`Expected element ${to} have accessible description`,expectedAccessibleDescription,"Received",actualAccessibleDescription)}}}var ariaInvalidName="aria-invalid",validStates=["false"];function toHaveAccessibleErrorMessage(htmlElement,expectedAccessibleErrorMessage){checkHtmlElement(htmlElement,toHaveAccessibleErrorMessage,this);let to=this.isNot?"not to":"to",method=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",errormessageId=htmlElement.getAttribute("aria-errormessage");if(errormessageId&&/\s+/.test(errormessageId))return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(method,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${errormessageId}"`)};let ariaInvalidVal=htmlElement.getAttribute(ariaInvalidName);if(!htmlElement.hasAttribute(ariaInvalidName)||validStates.includes(ariaInvalidVal))return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(method,"element"),"Expected element to be marked as invalid with attribute",`${ariaInvalidName}="${String(!0)}"`,"Received",htmlElement.hasAttribute("aria-invalid")?`${ariaInvalidName}="${htmlElement.getAttribute(ariaInvalidName)}`:null)};let error=normalize(htmlElement.ownerDocument.getElementById(errormessageId)?.textContent??"");return{pass:void 0===expectedAccessibleErrorMessage?!!error:expectedAccessibleErrorMessage instanceof RegExp?expectedAccessibleErrorMessage.test(error):this.equals(error,expectedAccessibleErrorMessage),message:()=>getMessage3(this,this.utils.matcherHint(method,"element"),`Expected element ${to} have accessible error message`,expectedAccessibleErrorMessage??"","Received",error)}}var elementRoleList=function buildElementRoleList(elementRolesMap){function getSelectorSpecificity({attributes:attributes=[]}){return attributes.length}function match(element){let{attributes:attributes=[]}=element,typeTextIndex=attributes.findIndex((attribute=>attribute.value&&"type"===attribute.name&&"text"===attribute.value));typeTextIndex>=0&&(attributes=[...attributes.slice(0,typeTextIndex),...attributes.slice(typeTextIndex+1)]);let selector=function makeElementSelector({name:name,attributes:attributes}){return`${name}${attributes.map((({name:attributeName,value:value,constraints:constraints=[]})=>-1!==constraints.indexOf("undefined")?`:not([${attributeName}])`:value?`[${attributeName}="${value}"]`:`[${attributeName}]`)).join("")}`}({...element,attributes:attributes});return node=>!(typeTextIndex>=0&&"text"!==node.type)&&node.matches(selector)}let result=[];for(let[element,roles3]of elementRolesMap.entries())result=[...result,{match:match(element),roles:Array.from(roles3),specificity:getSelectorSpecificity(element)}];return result.sort((function bySelectorSpecificity({specificity:leftSpecificity},{specificity:rightSpecificity}){return rightSpecificity-leftSpecificity}))}(import_aria_query.elementRoles);function toHaveRole(htmlElement,expectedRole){checkHtmlElement(htmlElement,toHaveRole,this);let actualRoles=function getExplicitOrImplicitRoles(htmlElement){return htmlElement.hasAttribute("role")?htmlElement.getAttribute("role").split(" ").filter(Boolean):function getImplicitAriaRoles(currentNode){for(let{match:match,roles:roles3}of elementRoleList)if(match(currentNode))return[...roles3];return[]}(htmlElement)}(htmlElement);return{pass:actualRoles.some((el=>el===expectedRole)),message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.${toHaveRole.name}`,"element",""),`Expected element ${to} have role`,expectedRole,"Received",actualRoles.join(", "))}}}function toHaveAccessibleName(htmlElement,expectedAccessibleName){checkHtmlElement(htmlElement,toHaveAccessibleName,this);let actualAccessibleName=computeAccessibleName(htmlElement),pass=!1;return pass=1===arguments.length?""!==actualAccessibleName:expectedAccessibleName instanceof RegExp?expectedAccessibleName.test(actualAccessibleName):this.equals(actualAccessibleName,expectedAccessibleName),{pass:pass,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint(`${this.isNot?".not":""}.${toHaveAccessibleName.name}`,"element",""),`Expected element ${to} have accessible name`,expectedAccessibleName,"Received",actualAccessibleName)}}}function printAttribute(stringify2,name,value){return void 0===value?name:`${name}=${stringify2(value)}`}function getAttributeComment(stringify2,name,value){return void 0===value?`element.hasAttribute(${stringify2(name)})`:`element.getAttribute(${stringify2(name)}) === ${stringify2(value)}`}function toHaveAttribute(htmlElement,name,expectedValue){checkHtmlElement(htmlElement,toHaveAttribute,this);let isExpectedValuePresent=void 0!==expectedValue,hasAttribute=htmlElement.hasAttribute(name),receivedValue=htmlElement.getAttribute(name);return{pass:isExpectedValuePresent?hasAttribute&&this.equals(receivedValue,expectedValue):hasAttribute,message:()=>{let to=this.isNot?"not to":"to",receivedAttribute=hasAttribute?printAttribute(this.utils.stringify,name,receivedValue):null;return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveAttribute","element",this.utils.printExpected(name),{secondArgument:isExpectedValuePresent?this.utils.printExpected(expectedValue):void 0,comment:getAttributeComment(this.utils.stringify,name,expectedValue)}),`Expected the element ${to} have attribute`,printAttribute(this.utils.stringify,name,expectedValue),"Received",receivedAttribute)}}}function splitClassNames(str){return str?str.split(/\s+/).filter((s=>s.length>0)):[]}function isSubset$1(subset,superset){return subset.every((strOrRegexp=>"string"==typeof strOrRegexp?superset.includes(strOrRegexp):superset.some((className=>strOrRegexp.test(className)))))}function toHaveClass(htmlElement,...params){checkHtmlElement(htmlElement,toHaveClass,this);let{expectedClassNames:expectedClassNames,options:options}=function getExpectedClassNamesAndOptions(params){let expectedClassNames,options,lastParam=params.pop();return"object"!=typeof lastParam||lastParam instanceof RegExp?(expectedClassNames=params.concat(lastParam),options={exact:!1}):(expectedClassNames=params,options=lastParam),{expectedClassNames:expectedClassNames,options:options}}(params),received=splitClassNames(htmlElement.getAttribute("class")),expected=expectedClassNames.reduce(((acc,className)=>acc.concat("string"!=typeof className&&className?className:splitClassNames(className))),[]),hasRegExp=expected.some((className=>className instanceof RegExp));if(options.exact&&hasRegExp)throw new Error("Exact option does not support RegExp expected class names");return options.exact?{pass:isSubset$1(expected,received)&&expected.length===received.length,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveClass","element",this.utils.printExpected(expected.join(" "))),`Expected the element ${to} have EXACTLY defined classes`,expected.join(" "),"Received",received.join(" "))}}:expected.length>0?{pass:isSubset$1(expected,received),message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveClass","element",this.utils.printExpected(expected.join(" "))),`Expected the element ${to} have class`,expected.join(" "),"Received",received.join(" "))}}:{pass:!!this.isNot&&received.length>0,message:()=>this.isNot?getMessage3(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",received.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join("\n")}}function printoutStyles(styles3){return Object.keys(styles3).sort().map((prop=>`${prop}: ${styles3[prop]};`)).join("\n")}function expectedDiff(diffFn,expected,computedStyles){let received=Array.from(computedStyles).filter((prop=>void 0!==expected[prop])).reduce(((obj,prop)=>Object.assign(obj,{[prop]:computedStyles.getPropertyValue(prop)})),{});return diffFn(printoutStyles(expected),printoutStyles(received)).replace(`${import_chalk.default.red("+ Received")}\n`,"")}function toHaveStyle(htmlElement,css){checkHtmlElement(htmlElement,toHaveStyle,this);let parsedCSS="object"==typeof css?css:function parseCSS(css,...args){let ast=$149c1bd638913645$export$98e6a39c04603d36(`selector { ${css} }`,{silent:!0}).stylesheet;if(ast.parsingErrors&&ast.parsingErrors.length>0){let{reason:reason,line:line}=ast.parsingErrors[0];throw new InvalidCSSError({css:css,message:`Syntax error parsing expected css: ${reason} on line: ${line}`},...args)}return ast.rules[0].declarations.filter((d2=>"declaration"===d2.type)).reduce(((obj,{property:property,value:value})=>Object.assign(obj,{[property]:value})),{})}(css,toHaveStyle,this),{getComputedStyle:getComputedStyle}=htmlElement.ownerDocument.defaultView,expected=function getStyleDeclaration(document2,css){let styles3={},copy3=document2.createElement("div");return Object.keys(css).forEach((property=>{copy3.style[property]=css[property],styles3[property]=copy3.style[property]})),styles3}(htmlElement.ownerDocument,parsedCSS),received=getComputedStyle(htmlElement);return{pass:(styles3=expected,computedStyle=received,!!Object.keys(styles3).length&&Object.entries(styles3).every((([prop,value])=>{let isCustomProperty=prop.startsWith("--"),spellingVariants=[prop];return isCustomProperty||spellingVariants.push(prop.toLowerCase()),spellingVariants.some((name=>computedStyle[name]===value||computedStyle.getPropertyValue(name)===value))}))),message:()=>{let matcher=(this.isNot?".not":"")+".toHaveStyle";return[this.utils.matcherHint(matcher,"element",""),expectedDiff(this.utils.diff,expected,received)].join("\n\n")}};var styles3,computedStyle}function toHaveFocus(element){return checkHtmlElement(element,toHaveFocus,this),{pass:element.ownerDocument.activeElement===element,message:()=>[this.utils.matcherHint((this.isNot?".not":"")+".toHaveFocus","element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(element)}`]:["Expected element with focus:",` ${this.utils.printExpected(element)}`,"Received element with focus:",` ${this.utils.printReceived(element.ownerDocument.activeElement)}`]].join("\n")}}function getFormValue(container,name){let elements=[...container.querySelectorAll(`[name="${(0,import_css.default)(name)}"]`)];if(0!==elements.length){if(1===elements.length)return getSingleElementValue(elements[0]);return function getMultiElementValue(elements){let types=[...new Set(elements.map((element=>element.type)))];if(1!==types.length)throw new Error("Multiple form elements with the same name must be of the same type");switch(types[0]){case"radio":{let theChosenOne=elements.find((radio=>radio.checked));return theChosenOne?theChosenOne.value:void 0}case"checkbox":return elements.filter((checkbox=>checkbox.checked)).map((checkbox=>checkbox.value));default:return elements.map((element=>element.value))}}(elements)}}function getPureName(name){return/\[\]$/.test(name)?name.slice(0,-2):name}function toHaveFormValues(formElement,expectedValues){if(checkHtmlElement(formElement,toHaveFormValues,this),!formElement.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let formValues=function getAllFormValues(container){return Array.from(container.elements).map((element=>element.name)).reduce(((obj,name)=>({...obj,[getPureName(name)]:getFormValue(container,name)})),{})}(formElement);return{pass:Object.entries(expectedValues).every((([name,expectedValue])=>(0,import_isEqualWith.default)(formValues[name],expectedValue,compareArraysAsSet))),message:()=>{let to=this.isNot?"not to":"to",matcher=(this.isNot?".not":"")+".toHaveFormValues",commonKeyValues=Object.keys(formValues).filter((key=>expectedValues.hasOwnProperty(key))).reduce(((obj,key)=>({...obj,[key]:formValues[key]})),{});return[this.utils.matcherHint(matcher,"element",""),`Expected the element ${to} have form values`,this.utils.diff(expectedValues,commonKeyValues)].join("\n\n")}}}function isElementVisible(element,previousElement){return function isStyleVisible(element){let{getComputedStyle:getComputedStyle}=element.ownerDocument.defaultView,{display:display2,visibility:visibility,opacity:opacity}=getComputedStyle(element);return"none"!==display2&&"hidden"!==visibility&&"collapse"!==visibility&&"0"!==opacity&&0!==opacity}(element)&&function isAttributeVisible(element,previousElement){let detailsVisibility;return detailsVisibility=previousElement?"DETAILS"!==element.nodeName||"SUMMARY"===previousElement.nodeName||element.hasAttribute("open"):"DETAILS"!==element.nodeName||element.hasAttribute("open"),!element.hasAttribute("hidden")&&detailsVisibility}(element,previousElement)&&(!element.parentElement||isElementVisible(element.parentElement,element))}function toBeVisible(element){checkHtmlElement(element,toBeVisible,this);let isInDocument=element.ownerDocument===element.getRootNode({composed:!0}),isVisible2=isInDocument&&isElementVisible(element);return{pass:isVisible2,message:()=>{let is=isVisible2?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeVisible","element",""),"",`Received element ${is} visible${isInDocument?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}var FORM_TAGS$2=["fieldset","input","select","optgroup","option","button","textarea"];function isElementDisabledByParent(element,parent){return isElementDisabled(parent)&&!function isFirstLegendChildOfFieldset(element,parent){return"legend"===getTag(element)&&"fieldset"===getTag(parent)&&element.isSameNode(Array.from(parent.children).find((child=>"legend"===getTag(child))))}(element,parent)}function canElementBeDisabled(element){let tag=getTag(element);return FORM_TAGS$2.includes(tag)||function isCustomElement(tag){return tag.includes("-")}(tag)}function isElementDisabled(element){return canElementBeDisabled(element)&&element.hasAttribute("disabled")}function isAncestorDisabled(element){let parent=element.parentElement;return!!parent&&(isElementDisabledByParent(element,parent)||isAncestorDisabled(parent))}function isElementOrAncestorDisabled(element){return canElementBeDisabled(element)&&(isElementDisabled(element)||isAncestorDisabled(element))}function toBeDisabled(element){checkHtmlElement(element,toBeDisabled,this);let isDisabled3=isElementOrAncestorDisabled(element);return{pass:isDisabled3,message:()=>{let is=isDisabled3?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeDisabled","element",""),"",`Received element ${is} disabled:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toBeEnabled(element){checkHtmlElement(element,toBeEnabled,this);let isEnabled=!isElementOrAncestorDisabled(element);return{pass:isEnabled,message:()=>{let is=isEnabled?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeEnabled","element",""),"",`Received element ${is} enabled:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}var FORM_TAGS$1=["select","textarea"],ARIA_FORM_TAGS=["input","select","textarea"],UNSUPPORTED_INPUT_TYPES=["color","hidden","range","submit","image","reset"],SUPPORTED_ARIA_ROLES=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function toBeRequired(element){checkHtmlElement(element,toBeRequired,this);let isRequired=function isRequiredOnFormTagsExceptInput(element){return FORM_TAGS$1.includes(getTag(element))&&element.hasAttribute("required")}(element)||function isRequiredOnSupportedInput(element){return"input"===getTag(element)&&element.hasAttribute("required")&&(element.hasAttribute("type")&&!UNSUPPORTED_INPUT_TYPES.includes(element.getAttribute("type"))||!element.hasAttribute("type"))}(element)||function isElementRequiredByARIA(element){return element.hasAttribute("aria-required")&&"true"===element.getAttribute("aria-required")&&(ARIA_FORM_TAGS.includes(getTag(element))||element.hasAttribute("role")&&SUPPORTED_ARIA_ROLES.includes(element.getAttribute("role")))}(element);return{pass:isRequired,message:()=>{let is=isRequired?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeRequired","element",""),"",`Received element ${is} required:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}var FORM_TAGS=["form","input","select","textarea"];function isElementInvalid(element){let isHaveAriaInvalid=function isElementHavingAriaInvalid(element){return element.hasAttribute("aria-invalid")&&"false"!==element.getAttribute("aria-invalid")}(element);return function isSupportsValidityMethod(element){return FORM_TAGS.includes(getTag(element))}(element)?isHaveAriaInvalid||!element.checkValidity():isHaveAriaInvalid}function toBeInvalid(element){checkHtmlElement(element,toBeInvalid,this);let isInvalid=isElementInvalid(element);return{pass:isInvalid,message:()=>{let is=isInvalid?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeInvalid","element",""),"",`Received element ${is} currently invalid:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toBeValid(element){checkHtmlElement(element,toBeValid,this);let isValid=!isElementInvalid(element);return{pass:isValid,message:()=>{let is=isValid?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeValid","element",""),"",`Received element ${is} currently valid:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toHaveValue(htmlElement,expectedValue){if(checkHtmlElement(htmlElement,toHaveValue,this),"input"===htmlElement.tagName.toLowerCase()&&["checkbox","radio"].includes(htmlElement.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let receivedValue=getSingleElementValue(htmlElement),expectsValue=void 0!==expectedValue,expectedTypedValue=expectedValue,receivedTypedValue=receivedValue;return expectedValue==receivedValue&&expectedValue!==receivedValue&&(expectedTypedValue=`${expectedValue} (${typeof expectedValue})`,receivedTypedValue=`${receivedValue} (${typeof receivedValue})`),{pass:expectsValue?(0,import_isEqualWith.default)(receivedValue,expectedValue,compareArraysAsSet):!!receivedValue,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveValue","element",expectedValue),`Expected the element ${to} have value`,expectsValue?expectedTypedValue:"(any)","Received",receivedTypedValue)}}}function toHaveDisplayValue(htmlElement,expectedValue){checkHtmlElement(htmlElement,toHaveDisplayValue,this);let tagName=htmlElement.tagName.toLowerCase();if(!["select","input","textarea"].includes(tagName))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if("input"===tagName&&["radio","checkbox"].includes(htmlElement.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${htmlElement.type}"], try with another matcher instead.`);let values=function getValues(tagName,htmlElement){return"select"===tagName?Array.from(htmlElement).filter((option=>option.selected)).map((option=>option.textContent)):[htmlElement.value]}(tagName,htmlElement),expectedValues=function getExpectedValues(expectedValue){return expectedValue instanceof Array?expectedValue:[expectedValue]}(expectedValue),numberOfMatchesWithValues=expectedValues.filter((expected=>values.some((value=>expected instanceof RegExp?expected.test(value):this.equals(value,String(expected)))))).length,matchedWithAllValues=numberOfMatchesWithValues===values.length,matchedWithAllExpectedValues=numberOfMatchesWithValues===expectedValues.length;return{pass:matchedWithAllValues&&matchedWithAllExpectedValues,message:()=>getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveDisplayValue","element",""),`Expected element ${this.isNot?"not ":""}to have display value`,expectedValue,"Received",values)}}function toBeChecked(element){checkHtmlElement(element,toBeChecked,this);let isValidInput=()=>"input"===element.tagName.toLowerCase()&&["checkbox","radio"].includes(element.type);if(!(isValidInput()||roleSupportsChecked(element.getAttribute("role"))&&["true","false"].includes(element.getAttribute("aria-checked"))))return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${function supportedRolesSentence(){return function toSentence(array,{wordConnector:wordConnector=", ",lastWordConnector:lastWordConnector=" and "}={}){return[array.slice(0,-1).join(wordConnector),array[array.length-1]].join(array.length>1?lastWordConnector:"")}(function supportedRoles(){return import_aria_query.roles.keys().filter(roleSupportsChecked)}().map((role=>`role="${role}"`)),{lastWordConnector:" or "})}()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?element.checked:"true"===element.getAttribute("aria-checked");return{pass:isChecked(),message:()=>{let is=isChecked()?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBeChecked","element",""),"",`Received element ${is} checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function roleSupportsChecked(role){return void 0!==import_aria_query.roles.get(role)?.props["aria-checked"]}function toBePartiallyChecked(element){checkHtmlElement(element,toBePartiallyChecked,this);let isValidInput=()=>"input"===element.tagName.toLowerCase()&&"checkbox"===element.type;if(!isValidInput()&&"checkbox"!==element.getAttribute("role"))return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let isPartiallyChecked=()=>{let isAriaMixed="mixed"===element.getAttribute("aria-checked");return isValidInput()&&element.indeterminate||isAriaMixed};return{pass:isPartiallyChecked(),message:()=>{let is=isPartiallyChecked()?"is":"is not";return[this.utils.matcherHint((this.isNot?".not":"")+".toBePartiallyChecked","element",""),"",`Received element ${is} partially checked:`,` ${this.utils.printReceived(element.cloneNode(!1))}`].join("\n")}}}function toHaveDescription(htmlElement,checkWith){deprecate("toHaveDescription","Please use toHaveAccessibleDescription."),checkHtmlElement(htmlElement,toHaveDescription,this);let expectsDescription=void 0!==checkWith,descriptionIDs=(htmlElement.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),description="";if(descriptionIDs.length>0){let document2=htmlElement.ownerDocument,descriptionEls=descriptionIDs.map((descriptionID=>document2.getElementById(descriptionID))).filter(Boolean);description=normalize(descriptionEls.map((el=>el.textContent)).join(" "))}return{pass:expectsDescription?checkWith instanceof RegExp?checkWith.test(description):this.equals(description,checkWith):!!description,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveDescription","element",""),`Expected the element ${to} have description`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(description))}}}function toHaveErrorMessage(htmlElement,checkWith){if(deprecate("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),checkHtmlElement(htmlElement,toHaveErrorMessage,this),!htmlElement.hasAttribute("aria-invalid")||"false"===htmlElement.getAttribute("aria-invalid")){let not=this.isNot?".not":"";return{pass:!1,message:()=>getMessage3(this,this.utils.matcherHint(`${not}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",htmlElement.hasAttribute("aria-invalid")?`aria-invalid="${htmlElement.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let expectsErrorMessage=void 0!==checkWith,errormessageIDs=(htmlElement.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),errormessage="";if(errormessageIDs.length>0){let document2=htmlElement.ownerDocument,errormessageEls=errormessageIDs.map((errormessageID=>document2.getElementById(errormessageID))).filter(Boolean);errormessage=normalize(errormessageEls.map((el=>el.textContent)).join(" "))}return{pass:expectsErrorMessage?checkWith instanceof RegExp?checkWith.test(errormessage):this.equals(errormessage,checkWith):!!errormessage,message:()=>{let to=this.isNot?"not to":"to";return getMessage3(this,this.utils.matcherHint((this.isNot?".not":"")+".toHaveErrorMessage","element",""),`Expected the element ${to} have error message`,this.utils.printExpected(checkWith),"Received",this.utils.printReceived(errormessage))}}}function assertTypes(value,name,types){let receivedType=typeof value;if(!types.includes(receivedType))throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`)}function isObject(item){return null!=item&&"object"==typeof item&&!Array.isArray(item)}function getType(value){return Object.prototype.toString.apply(value).slice(8,-1)}function getOwnProperties(obj){let ownProps=new Set;return function isFinalObj(obj){return obj===Object.prototype||obj===Function.prototype||obj===RegExp.prototype}(obj)?[]:(function collectOwnProperties(obj,collector){let collect="function"==typeof collector?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect)}(obj,ownProps),Array.from(ownProps))}__toESM(require_redent(),1),__toESM(require_lib(),1),__toESM(require_source(),1),__toESM(require_isEqualWith(),1),__toESM(require_css_escape(),1);var defaultCloneOptions={forceWritable:!1};function deepClone(val,options=defaultCloneOptions){return clone(val,new WeakMap,options)}function clone(val,seen,options=defaultCloneOptions){let k2,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){for(out=Array(k2=val.length),seen.set(val,out);k2--;)out[k2]=clone(val[k2],seen,options);return out}if("[object Object]"===Object.prototype.toString.call(val)){out=Object.create(Object.getPrototypeOf(val)),seen.set(val,out);let props=getOwnProperties(val);for(let k22 of props){let descriptor=Object.getOwnPropertyDescriptor(val,k22);if(!descriptor)continue;let cloned=clone(val[k22],seen,options);options.forceWritable?Object.defineProperty(out,k22,{enumerable:descriptor.enumerable,configurable:!0,writable:!0,value:cloned}):"get"in descriptor?Object.defineProperty(out,k22,{...descriptor,get(){return cloned}}):Object.defineProperty(out,k22,{...descriptor,value:cloned})}return out}return val}var ansiColors2={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},styles2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator2="…";function colorise2(value,styleType){let color=ansiColors2[styles2[styleType]]||ansiColors2[styleType]||"";return color?`[${color[0]}m${String(value)}[${color[1]}m`:String(value)}function truncate2(string,length,tail=truncator2){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&function isHighSurrogate(char){return char>="\ud800"&&char<="\udbff"}(string[end-1])&&(end-=1),`${string.slice(0,end)}${tail}`}return string}function inspectList2(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(0===size)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;ioriginalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator2}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}function inspectProperty2([key,value],options){return options.truncate-=2,"string"==typeof key?key=function quoteComplexKey2(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(key):"number"!=typeof key&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,`${key}: ${value=options.inspect(value,options)}`}function inspectTypedArray2(array,options){let name=(array=>"function"==typeof Buffer&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name)(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i[key,array[key]])),options,inspectProperty2)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}function inspectFunction2(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate2(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}function inspectMapEntry2([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,`${key} => ${value=options.inspect(value,options)}`}var isNaN3=Number.isNaN||(i=>i!=i);function inspectNumber2(number,options){return isNaN3(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):0===number?options.stylize(1/number==1/0?"+0":"-0","number"):options.stylize(truncate2(String(number),options.truncate),"number")}function inspectBigInt2(number,options){let nums=truncate2(number.toString(),options.truncate-1);return nums!==truncator2&&(nums+="n"),options.stylize(nums,"bigint")}var stringEscapeChars2=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters2={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex2=16,unicodeLength2=4;function escape3(char){return escapeCharacters2[char]||`\\u${`0000${char.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`}function inspectString2(string,options){return stringEscapeChars2.test(string)&&(string=string.replace(stringEscapeChars2,escape3)),options.stylize(`'${truncate2(string,options.truncate-2)}'`,"string")}function inspectSymbol2(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}var getPromiseValue2=()=>"Promise{…}";try{let{getPromiseDetails:getPromiseDetails,kPending:kPending,kRejected:kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue2=(value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`})}catch{}var promise_default2=getPromiseValue2;function inspectObject3(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(0===properties.length&&0===symbols.length)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.indexOf(object)>=0)return"[Circular]";options.seen.push(object);let propertyContents=inspectList2(properties.map((key=>[key,object[key]])),options,inspectProperty2),symbolContents=inspectList2(symbols.map((key=>[key,object[key]])),options,inspectProperty2);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}var toStringTag2=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;var errorKeys2=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function inspectAttribute2([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}function inspectHTMLCollection2(collection,options){return inspectList2(collection,options,inspectHTML2,"\n")}function inspectHTML2(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(``,"special");options.truncate-=2*name.length+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList2(properties.map((key=>[key,element.getAttribute(key)])),options,inspectAttribute2," ")),options.truncate-=propertyContents.length;let truncate3=options.truncate,children=inspectHTMLCollection2(element.children,options);return children&&children.length>truncate3&&(children=`${truncator2}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}var chaiInspect2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect2=!1;try{let nodeUtil=__require("util");nodeInspect2=!!nodeUtil.inspect&&nodeUtil.inspect.custom}catch{nodeInspect2=!1}var constructorMap2=new WeakMap,stringTagMap2={},baseTypesMap2={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber2,Number:inspectNumber2,bigint:inspectBigInt2,BigInt:inspectBigInt2,string:inspectString2,String:inspectString2,function:inspectFunction2,Function:inspectFunction2,symbol:inspectSymbol2,Symbol:inspectSymbol2,Array:function inspectArray2(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList2(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList2(nonIndexProperties.map((key=>[key,array[key]])),options,inspectProperty2)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`},Date:function inspectDate2(dateObject,options){let stringRepresentation=dateObject.toJSON();if(null===stringRepresentation)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate2(split[1],options.truncate-date.length-1)}`,"date")},Map:function inspectMap2(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList2(function mapToEntries2(map){let entries=[];return map.forEach(((value,key)=>{entries.push([key,value])})),entries}(map),options,inspectMapEntry2)} }`)},Set:function inspectSet2(set2,options){return 0===set2.size?"Set{}":(options.truncate-=7,`Set{ ${inspectList2(function arrayFromSet2(set2){let values=[];return set2.forEach((value=>{values.push(value)})),values}(set2),options)} }`)},RegExp:function inspectRegExp2(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate2(source,sourceLength)}/${flags}`,"regexp")},Promise:promise_default2,WeakSet:(value,options)=>options.stylize("WeakSet{…}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{…}","special"),Arguments:function inspectArguments2(args,options){return 0===args.length?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList2(args,options)} ]`)},Int8Array:inspectTypedArray2,Uint8Array:inspectTypedArray2,Uint8ClampedArray:inspectTypedArray2,Int16Array:inspectTypedArray2,Uint16Array:inspectTypedArray2,Int32Array:inspectTypedArray2,Uint32Array:inspectTypedArray2,Float32Array:inspectTypedArray2,Float64Array:inspectTypedArray2,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function inspectObject4(error,options){let properties=Object.getOwnPropertyNames(error).filter((key=>-1===errorKeys2.indexOf(key))),name=error.name;options.truncate-=name.length;let message="";"string"==typeof error.message?message=truncate2(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5;let propertyContents=inspectList2(properties.map((key=>[key,error[key]])),options,inspectProperty2);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`},HTMLCollection:inspectHTMLCollection2,NodeList:inspectHTMLCollection2},inspectCustom2=(value,options,type5)=>chaiInspect2 in value&&"function"==typeof value[chaiInspect2]?value[chaiInspect2](options):nodeInspect2&&nodeInspect2 in value&&"function"==typeof value[nodeInspect2]?value[nodeInspect2](options.depth,options):"inspect"in value&&"function"==typeof value.inspect?value.inspect(options.depth,options):"constructor"in value&&constructorMap2.has(value.constructor)?constructorMap2.get(value.constructor)(value,options):stringTagMap2[type5]?stringTagMap2[type5](value,options):"",toString2=Object.prototype.toString;function inspect3(value,opts={}){let options=function normaliseOptions2({showHidden:showHidden=!1,depth:depth=2,colors:colors=!1,customInspect:customInspect=!0,showProxy:showProxy=!1,maxArrayLength:maxArrayLength=1/0,breakLength:breakLength=1/0,seen:seen=[],truncate:truncate3=1/0,stylize:stylize=String}={},inspect5){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate3),seen:seen,inspect:inspect5,stylize:stylize};return options.colors&&(options.stylize=colorise2),options}(opts,inspect3),{customInspect:customInspect}=options,type5=null===value?"null":typeof value;if("object"===type5&&(type5=toString2.call(value).slice(8,-1)),type5 in baseTypesMap2)return baseTypesMap2[type5](value,options);if(customInspect&&value){let output=inspectCustom2(value,options,type5);if(output)return"string"==typeof output?output:inspect3(output,options)}let proto=!!value&&Object.getPrototypeOf(value);return proto===Object.prototype||null===proto?inspectObject3(value,options):value&&"function"==typeof HTMLElement&&value instanceof HTMLElement?inspectHTML2(value,options):"constructor"in value?value.constructor!==Object?function inspectClass2(value,options){let name="";return toStringTag2&&toStringTag2 in value&&(name=value[toStringTag2]),name=name||value.constructor.name,(!name||"_class"===name)&&(name=""),options.truncate-=name.length,`${name}${inspectObject3(value,options)}`}(value,options):inspectObject3(value,options):value===Object(value)?inspectObject3(value,options):options.stylize(String(value),type5)}var h=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function a(n){return String(n)}a.open="",a.close="";var f2=function p(n=!1){let e=function C(n=!1){let e=typeof process<"u"?process:void 0,i=e?.env||{},g3=e?.argv||[];return!("NO_COLOR"in i||g3.includes("--no-color"))&&("FORCE_COLOR"in i||g3.includes("--color")||"win32"===e?.platform||n&&"dumb"!==i.TERM||"CI"in i)||typeof window<"u"&&!!window.chrome}(n),g3=(r,t,c=r)=>{let o=l=>{let s=String(l),b=s.indexOf(t,r.length);return~b?r+((r,t,c,o)=>{let l="",s=0;do{l+=r.substring(s,o)+c,s=o+t.length,o=r.indexOf(t,s)}while(~o);return l+r.substring(s)})(s,t,c,b)+t:r+s+t};return o.open=r,o.close=t,o},u2={isColorSupported:e},d2=r=>`[${r}m`;for(let[r,t]of h)u2[r]=e?g3(d2(t[0]),d2(t[1]),t[2]):a;return u2}(!1);function printIteratorEntries(iterator,config3,indentation,depth,refs,printer2,separator=": "){let result="",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+="…";break}result+=printer2(current.value[0],config3,indentationNext,depth,refs)+separator+printer2(current.value[1],config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=`,${config3.spacingInner}`}result+=config3.spacingOuter+indentation}return result}function printIteratorValues(iterator,config3,indentation,depth,refs,printer2){let result="",width=0,current=iterator.next();if(!current.done){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(;!current.done;){if(result+=indentationNext,width++===config3.maxWidth){result+="…";break}result+=printer2(current.value,config3,indentationNext,depth,refs),current=iterator.next(),current.done?config3.min||(result+=","):result+=`,${config3.spacingInner}`}result+=config3.spacingOuter+indentation}return result}function printListItems(list,config3,indentation,depth,refs,printer2){let result="",isDataView=l=>l instanceof DataView,length=isDataView(list=list instanceof ArrayBuffer?new DataView(list):list)?list.byteLength:list.length;if(length>0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i0){result+=config3.spacingOuter;let indentationNext=indentation+config3.indent;for(let i=0;i{let stringedValue=val.toString();if("ArrayContaining"===stringedValue||"ArrayNotContaining"===stringedValue)return++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}[${printListItems(val.sample,config3,indentation,depth,refs,printer2)}]`;if("ObjectContaining"===stringedValue||"ObjectNotContaining"===stringedValue)return++depth>config3.maxDepth?`[${stringedValue}]`:`${stringedValue+" "}{${printObjectProperties(val.sample,config3,indentation,depth,refs,printer2)}}`;if("StringMatching"===stringedValue||"StringNotMatching"===stringedValue||"StringContaining"===stringedValue||"StringNotContaining"===stringedValue)return stringedValue+" "+printer2(val.sample,config3,indentation,depth,refs);if("function"!=typeof val.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);return val.toAsymmetricMatcher()},test:val=>val&&val.$$typeof===asymmetricMatcher},OBJECT_NAMES=new Set(["DOMStringMap","NamedNodeMap"]),ARRAY_REGEXP=/^(?:HTML\w*Collection|NodeList)$/;var plugin$4={serialize:(collection,config3,indentation,depth,refs,printer2)=>{let name=collection.constructor.name;return++depth>config3.maxDepth?`[${name}]`:(config3.min?"":name+" ")+(OBJECT_NAMES.has(name)?`{${printObjectProperties(function isNamedNodeMap(collection){return"NamedNodeMap"===collection.constructor.name}(collection)?[...collection].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}):{...collection},config3,indentation,depth,refs,printer2)}}`:`[${printListItems([...collection],config3,indentation,depth,refs,printer2)}]`)},test:val=>val&&val.constructor&&!!val.constructor.name&&function testName(name){return OBJECT_NAMES.has(name)||ARRAY_REGEXP.test(name)}(val.constructor.name)};function escapeHTML(str){return str.replaceAll("<","<").replaceAll(">",">")}function printProps(keys2,props,config3,indentation,depth,refs,printer2){let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map((key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return"string"!=typeof value&&(printed.includes("\n")&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed=`{${printed}}`),`${config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`})).join("")}function printChildren(children,config3,indentation,depth,refs,printer2){return children.map((child=>config3.spacingOuter+indentation+("string"==typeof child?printText(child,config3):printer2(child,config3,indentation,depth,refs)))).join("")}function printText(text,config3){let contentColor=config3.colors.content;return contentColor.open+escapeHTML(text)+contentColor.close}function printElement(type5,printedProps,printedChildren,config3,indentation){let tagColor=config3.colors.tag;return`${tagColor.open}<${type5}${printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open}${printedChildren?`>${tagColor.close}${printedChildren}${config3.spacingOuter}${indentation}${tagColor.open}${tagColor.close}`}function printElementAsLeaf(type5,config3){let tagColor=config3.colors.tag;return`${tagColor.open}<${type5}${tagColor.close} …${tagColor.open} />${tagColor.close}`}var ELEMENT_REGEXP=/^(?:(?:HTML|SVG)\w*)?Element$/;function nodeIsFragment(node){return 11===node.nodeType}var plugin$3={serialize:(node,config3,indentation,depth,refs,printer2)=>{if(function nodeIsText(node){return 3===node.nodeType}(node))return printText(node.data,config3);if(function nodeIsComment(node){return 8===node.nodeType}(node))return function printComment(comment,config3){let commentColor=config3.colors.comment;return`${commentColor.open}\x3c!--${escapeHTML(comment)}--\x3e${commentColor.close}`}(node.data,config3);let type5=nodeIsFragment(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config3.maxDepth?printElementAsLeaf(type5,config3):printElement(type5,printProps(nodeIsFragment(node)?[]:Array.from(node.attributes,(attr=>attr.name)).sort(),nodeIsFragment(node)?{}:[...node.attributes].reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config3,indentation+config3.indent,depth,refs,printer2),printChildren(Array.prototype.slice.call(node.childNodes||node.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)},test:val=>{var _a2;return(null==(_a2=val?.constructor)?void 0:_a2.name)&&function testNode(val){let constructorName=val.constructor.name,{nodeType:nodeType,tagName:tagName}=val,isCustomElement3="string"==typeof tagName&&tagName.includes("-")||function testHasAttribute(val){try{return"function"==typeof val.hasAttribute&&val.hasAttribute("is")}catch{return!1}}(val);return 1===nodeType&&(ELEMENT_REGEXP.test(constructorName)||isCustomElement3)||3===nodeType&&"Text"===constructorName||8===nodeType&&"Comment"===constructorName||11===nodeType&&"DocumentFragment"===constructorName}(val)}},getImmutableName=name=>`Immutable.${name}`,printAsLeaf=name=>`[${name}]`;function printImmutableValues(val,config3,indentation,depth,refs,printer2,type5){return++depth>config3.maxDepth?printAsLeaf(getImmutableName(type5)):`${getImmutableName(type5)+" "}[${printIteratorValues(val.values(),config3,indentation,depth,refs,printer2)}]`}var hasRequiredReactIs_development,plugin$2={serialize:(val,config3,indentation,depth,refs,printer2)=>val["@@__IMMUTABLE_MAP__@@"]?function printImmutableEntries(val,config3,indentation,depth,refs,printer2,type5){return++depth>config3.maxDepth?printAsLeaf(getImmutableName(type5)):`${getImmutableName(type5)+" "}{${printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2)}}`}(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedMap":"Map"):val["@@__IMMUTABLE_LIST__@@"]?printImmutableValues(val,config3,indentation,depth,refs,printer2,"List"):val["@@__IMMUTABLE_SET__@@"]?printImmutableValues(val,config3,indentation,depth,refs,printer2,val["@@__IMMUTABLE_ORDERED__@@"]?"OrderedSet":"Set"):val["@@__IMMUTABLE_STACK__@@"]?printImmutableValues(val,config3,indentation,depth,refs,printer2,"Stack"):val["@@__IMMUTABLE_SEQ__@@"]?function printImmutableSeq(val,config3,indentation,depth,refs,printer2){let name=getImmutableName("Seq");return++depth>config3.maxDepth?printAsLeaf(name):val["@@__IMMUTABLE_KEYED__@@"]?`${name+" "}{${val._iter||val._object?printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer2):"…"}}`:`${name+" "}[${val._iter||val._array||val._collection||val._iterable?printIteratorValues(val.values(),config3,indentation,depth,refs,printer2):"…"}]`}(val,config3,indentation,depth,refs,printer2):function printImmutableRecord(val,config3,indentation,depth,refs,printer2){let name=getImmutableName(val._name||"Record");return++depth>config3.maxDepth?printAsLeaf(name):`${name+" "}{${printIteratorEntries(function getRecordEntries(val){let i=0;return{next(){if(ival&&(!0===val["@@__IMMUTABLE_ITERABLE__@@"]||!0===val["@@__IMMUTABLE_RECORD__@@"])},reactIs={exports:{}},reactIs_development={};reactIs.exports=function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,function(){var REACT_MODULE_REFERENCE,REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_SERVER_CONTEXT_TYPE=Symbol.for("react.server_context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen");function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type5=object.type;switch(type5){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type5;default:var $$typeofType=type5&&type5.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element2=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,SuspenseList=REACT_SUSPENSE_LIST_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;reactIs_development.ContextConsumer=ContextConsumer,reactIs_development.ContextProvider=ContextProvider,reactIs_development.Element=Element2,reactIs_development.ForwardRef=ForwardRef,reactIs_development.Fragment=Fragment,reactIs_development.Lazy=Lazy,reactIs_development.Memo=Memo,reactIs_development.Portal=Portal,reactIs_development.Profiler=Profiler,reactIs_development.StrictMode=StrictMode,reactIs_development.Suspense=Suspense,reactIs_development.SuspenseList=SuspenseList,reactIs_development.isAsyncMode=function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isConcurrentMode=function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isContextConsumer=function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE},reactIs_development.isContextProvider=function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE},reactIs_development.isElement=function isElement5(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},reactIs_development.isForwardRef=function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},reactIs_development.isFragment=function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE},reactIs_development.isLazy=function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE},reactIs_development.isMemo=function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE},reactIs_development.isPortal=function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE},reactIs_development.isProfiler=function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE},reactIs_development.isStrictMode=function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},reactIs_development.isSuspense=function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE},reactIs_development.isSuspenseList=function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE},reactIs_development.isValidElementType=function isValidElementType(type5){return!("string"!=typeof type5&&"function"!=typeof type5&&type5!==REACT_FRAGMENT_TYPE&&type5!==REACT_PROFILER_TYPE&&type5!==REACT_STRICT_MODE_TYPE&&type5!==REACT_SUSPENSE_TYPE&&type5!==REACT_SUSPENSE_LIST_TYPE&&type5!==REACT_OFFSCREEN_TYPE&&("object"!=typeof type5||null===type5||type5.$$typeof!==REACT_LAZY_TYPE&&type5.$$typeof!==REACT_MEMO_TYPE&&type5.$$typeof!==REACT_PROVIDER_TYPE&&type5.$$typeof!==REACT_CONTEXT_TYPE&&type5.$$typeof!==REACT_FORWARD_REF_TYPE&&type5.$$typeof!==REACT_MODULE_REFERENCE&&void 0===type5.getModuleId))},reactIs_development.typeOf=typeOf}()),reactIs_development}();var reactIsExports=reactIs.exports;function getChildren(arg,children=[]){if(Array.isArray(arg))for(let item of arg)getChildren(item,children);else null!=arg&&!1!==arg&&""!==arg&&children.push(arg);return children}function getType2(element){let type5=element.type;if("string"==typeof type5)return type5;if("function"==typeof type5)return type5.displayName||type5.name||"Unknown";if(reactIsExports.isFragment(element))return"React.Fragment";if(reactIsExports.isSuspense(element))return"React.Suspense";if("object"==typeof type5&&null!==type5){if(reactIsExports.isContextProvider(element))return"Context.Provider";if(reactIsExports.isContextConsumer(element))return"Context.Consumer";if(reactIsExports.isForwardRef(element)){if(type5.displayName)return type5.displayName;let functionName=type5.render.displayName||type5.render.name||"";return""===functionName?"ForwardRef":`ForwardRef(${functionName})`}if(reactIsExports.isMemo(element)){let functionName=type5.displayName||type5.type.displayName||type5.type.name||"";return""===functionName?"Memo":`Memo(${functionName})`}}return"UNDEFINED"}var plugin$1={serialize:(element,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?printElementAsLeaf(getType2(element),config3):printElement(getType2(element),printProps(function getPropKeys$1(element){let{props:props}=element;return Object.keys(props).filter((key=>"children"!==key&&void 0!==props[key])).sort()}(element),element.props,config3,indentation+config3.indent,depth,refs,printer2),printChildren(getChildren(element.props.children),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation),test:val=>null!=val&&reactIsExports.isElement(val)},testSymbol="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;var plugin={serialize:(object,config3,indentation,depth,refs,printer2)=>++depth>config3.maxDepth?printElementAsLeaf(object.type,config3):printElement(object.type,object.props?printProps(function getPropKeys(object){let{props:props}=object;return props?Object.keys(props).filter((key=>void 0!==props[key])).sort():[]}(object),object.props,config3,indentation+config3.indent,depth,refs,printer2):"",object.children?printChildren(object.children,config3,indentation+config3.indent,depth,refs,printer2):"",config3,indentation),test:val=>val&&val.$$typeof===testSymbol},toString3=Object.prototype.toString,toISOString=Date.prototype.toISOString,errorToString=Error.prototype.toString,regExpToString=RegExp.prototype.toString;function getConstructorName2(val){return"function"==typeof val.constructor&&val.constructor.name||"Object"}var SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/,NEWLINE_REGEXP=/\n/g,PrettyFormatPluginError=class extends Error{constructor(message,stack){super(message),this.stack=stack,this.name=this.constructor.name}};function printFunction(val,printFunctionName){return printFunctionName?`[Function ${val.name||"anonymous"}]`:"[Function]"}function printSymbol(val){return String(val).replace(SYMBOL_REGEXP,"Symbol($1)")}function printError(val){return`[${errorToString.call(val)}]`}function printBasicValue(val,printFunctionName,escapeRegex,escapeString){if(!0===val||!1===val)return`${val}`;if(void 0===val)return"undefined";if(null===val)return"null";let typeOf=typeof val;if("number"===typeOf)return function printNumber(val){return Object.is(val,-0)?"-0":String(val)}(val);if("bigint"===typeOf)return function printBigInt(val){return`${val}n`}(val);if("string"===typeOf)return escapeString?`"${val.replaceAll(/"|\\/g,"\\$&")}"`:`"${val}"`;if("function"===typeOf)return printFunction(val,printFunctionName);if("symbol"===typeOf)return printSymbol(val);let toStringed=toString3.call(val);return"[object WeakMap]"===toStringed?"WeakMap {}":"[object WeakSet]"===toStringed?"WeakSet {}":"[object Function]"===toStringed||"[object GeneratorFunction]"===toStringed?printFunction(val,printFunctionName):"[object Symbol]"===toStringed?printSymbol(val):"[object Date]"===toStringed?Number.isNaN(+val)?"Date { NaN }":toISOString.call(val):"[object Error]"===toStringed?printError(val):"[object RegExp]"===toStringed?escapeRegex?regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):regExpToString.call(val):val instanceof Error?printError(val):null}function printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON){if(refs.includes(val))return"[Circular]";(refs=[...refs]).push(val);let hitMaxDepth=++depth>config3.maxDepth,min=config3.min;if(config3.callToJSON&&!hitMaxDepth&&val.toJSON&&"function"==typeof val.toJSON&&!hasCalledToJSON)return printer(val.toJSON(),config3,indentation,depth,refs,!0);let toStringed=toString3.call(val);return"[object Arguments]"===toStringed?hitMaxDepth?"[Arguments]":`${min?"":"Arguments "}[${printListItems(val,config3,indentation,depth,refs,printer)}]`:function isToStringedArrayType(toStringed){return"[object Array]"===toStringed||"[object ArrayBuffer]"===toStringed||"[object DataView]"===toStringed||"[object Float32Array]"===toStringed||"[object Float64Array]"===toStringed||"[object Int8Array]"===toStringed||"[object Int16Array]"===toStringed||"[object Int32Array]"===toStringed||"[object Uint8Array]"===toStringed||"[object Uint8ClampedArray]"===toStringed||"[object Uint16Array]"===toStringed||"[object Uint32Array]"===toStringed}(toStringed)?hitMaxDepth?`[${val.constructor.name}]`:`${min||!config3.printBasicPrototype&&"Array"===val.constructor.name?"":`${val.constructor.name} `}[${printListItems(val,config3,indentation,depth,refs,printer)}]`:"[object Map]"===toStringed?hitMaxDepth?"[Map]":`Map {${printIteratorEntries(val.entries(),config3,indentation,depth,refs,printer," => ")}}`:"[object Set]"===toStringed?hitMaxDepth?"[Set]":`Set {${printIteratorValues(val.values(),config3,indentation,depth,refs,printer)}}`:hitMaxDepth||function isWindow(val){return typeof window<"u"&&val===window}(val)?`[${getConstructorName2(val)}]`:`${min||!config3.printBasicPrototype&&"Object"===getConstructorName2(val)?"":`${getConstructorName2(val)} `}{${printObjectProperties(val,config3,indentation,depth,refs,printer)}}`}function printPlugin(plugin2,val,config3,indentation,depth,refs){let printed;try{printed=function isNewPlugin(plugin2){return null!=plugin2.serialize}(plugin2)?plugin2.serialize(val,config3,indentation,depth,refs,printer):plugin2.print(val,(valChild=>printer(valChild,config3,indentation,depth,refs)),(str=>{let indentationNext=indentation+config3.indent;return indentationNext+str.replaceAll(NEWLINE_REGEXP,`\n${indentationNext}`)}),{edgeSpacing:config3.spacingOuter,min:config3.min,spacing:config3.spacingInner},config3.colors)}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}if("string"!=typeof printed)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);return printed}function findPlugin(plugins22,val){for(let plugin2 of plugins22)try{if(plugin2.test(val))return plugin2}catch(error){throw new PrettyFormatPluginError(error.message,error.stack)}return null}function printer(val,config3,indentation,depth,refs,hasCalledToJSON){let plugin2=findPlugin(config3.plugins,val);if(null!==plugin2)return printPlugin(plugin2,val,config3,indentation,depth,refs);let basicResult=printBasicValue(val,config3.printFunctionName,config3.escapeRegex,config3.escapeString);return null!==basicResult?basicResult:printComplexValue(val,config3,indentation,depth,refs,hasCalledToJSON)}var DEFAULT_THEME={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},DEFAULT_THEME_KEYS=Object.keys(DEFAULT_THEME),DEFAULT_OPTIONS={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:DEFAULT_THEME};function getPrintFunctionName(options){return options?.printFunctionName??DEFAULT_OPTIONS.printFunctionName}function getEscapeRegex(options){return options?.escapeRegex??DEFAULT_OPTIONS.escapeRegex}function getEscapeString(options){return options?.escapeString??DEFAULT_OPTIONS.escapeString}function getConfig(options){return{callToJSON:options?.callToJSON??DEFAULT_OPTIONS.callToJSON,colors:options?.highlight?DEFAULT_THEME_KEYS.reduce(((colors,key)=>{let value=DEFAULT_THEME[key],color=value&&f2[value];if(!color||"string"!=typeof color.close||"string"!=typeof color.open)throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);return colors[key]=color,colors}),Object.create(null)):DEFAULT_THEME_KEYS.reduce(((colors,key)=>(colors[key]={close:"",open:""},colors)),Object.create(null)),compareKeys:"function"==typeof options?.compareKeys||null===options?.compareKeys?options.compareKeys:DEFAULT_OPTIONS.compareKeys,escapeRegex:getEscapeRegex(options),escapeString:getEscapeString(options),indent:options?.min?"":(indent=options?.indent??DEFAULT_OPTIONS.indent,Array.from({length:indent+1}).join(" ")),maxDepth:options?.maxDepth??DEFAULT_OPTIONS.maxDepth,maxWidth:options?.maxWidth??DEFAULT_OPTIONS.maxWidth,min:options?.min??DEFAULT_OPTIONS.min,plugins:options?.plugins??DEFAULT_OPTIONS.plugins,printBasicPrototype:options?.printBasicPrototype??!0,printFunctionName:getPrintFunctionName(options),spacingInner:options?.min?" ":"\n",spacingOuter:options?.min?"":"\n"};var indent}function format(val,options){if(options&&(function validateOptions(options){for(let key of Object.keys(options))if(!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS,key))throw new Error(`pretty-format: Unknown option "${key}".`);if(options.min&&void 0!==options.indent&&0!==options.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}(options),options.plugins)){let plugin2=findPlugin(options.plugins,val);if(null!==plugin2)return printPlugin(plugin2,val,getConfig(options),"",0,[])}let basicResult=printBasicValue(val,getPrintFunctionName(options),getEscapeRegex(options),getEscapeString(options));return null!==basicResult?basicResult:printComplexValue(val,getConfig(options),"",0,[])}var plugins={AsymmetricMatcher:plugin$5,DOMCollection:plugin$4,DOMElement:plugin$3,Immutable:plugin$2,ReactElement:plugin$1,ReactTestComponent:plugin},{AsymmetricMatcher:AsymmetricMatcher,DOMCollection:DOMCollection,DOMElement:DOMElement,Immutable:Immutable,ReactElement:ReactElement,ReactTestComponent:ReactTestComponent}=plugins,PLUGINS=[ReactTestComponent,ReactElement,DOMElement,DOMCollection,Immutable,AsymmetricMatcher];function stringify(object,maxDepth=10,{maxLength:maxLength,...options}={}){let result,MAX_LENGTH=maxLength??1e4;try{result=format(object,{maxDepth:maxDepth,escapeString:!1,plugins:PLUGINS,...options})}catch{result=format(object,{callToJSON:!1,maxDepth:maxDepth,escapeString:!1,plugins:PLUGINS,...options})}return result.length>=MAX_LENGTH&&maxDepth>1?stringify(object,Math.floor(maxDepth/2)):result}var formatRegExp=/%[sdjifoOc%]/g;function inspect4(obj,options={}){return 0===options.truncate&&(options.truncate=Number.POSITIVE_INFINITY),inspect3(obj,options)}RegExp(/\r?\n|[\r\u2028\u2029]/y.source);var reservedWords_strict=["implements","interface","let","package","private","protected","public","static","yield"];function getType3(value){if(void 0===value)return"undefined";if(null===value)return"null";if(Array.isArray(value))return"array";if("boolean"==typeof value)return"boolean";if("function"==typeof value)return"function";if("number"==typeof value)return"number";if("string"==typeof value)return"string";if("bigint"==typeof value)return"bigint";if("object"==typeof value){if(null!=value){if(value.constructor===RegExp)return"regexp";if(value.constructor===Map)return"map";if(value.constructor===Set)return"set";if(value.constructor===Date)return"date"}return"object"}if("symbol"==typeof value)return"symbol";throw new Error(`value of unknown type: ${value}`)}new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),new Set(reservedWords_strict);var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0,Diff=class{0;1;constructor(op,text){this[0]=op,this[1]=text}},diff_commonPrefix=function(text1,text2){if(!text1||!text2||text1.charAt(0)!==text2.charAt(0))return 0;let pointermin=0,pointermax=Math.min(text1.length,text2.length),pointermid=pointermax,pointerstart=0;for(;pointermintext2_length?text1=text1.substring(text1_length-text2_length):text1_length0?equalities[equalitiesLength-1]:-1,length_insertions1=0,length_deletions1=0,length_insertions2=0,length_deletions2=0,lastEquality=null,changes=!0)),pointer3++;for(changes&&diff_cleanupMerge(diffs),function diff_cleanupSemanticLossless(diffs){function diff_cleanupSemanticScore_(one,two){if(!one||!two)return 6;let char1=one.charAt(one.length-1),char2=two.charAt(0),nonAlphaNumeric1=char1.match(nonAlphaNumericRegex_),nonAlphaNumeric2=char2.match(nonAlphaNumericRegex_),whitespace1=nonAlphaNumeric1&&char1.match(whitespaceRegex_),whitespace2=nonAlphaNumeric2&&char2.match(whitespaceRegex_),lineBreak1=whitespace1&&char1.match(linebreakRegex_),lineBreak2=whitespace2&&char2.match(linebreakRegex_),blankLine1=lineBreak1&&one.match(blanklineEndRegex_),blankLine2=lineBreak2&&two.match(blanklineStartRegex_);return blankLine1||blankLine2?5:lineBreak1||lineBreak2?4:nonAlphaNumeric1&&!whitespace1&&whitespace2?3:whitespace1||whitespace2?2:nonAlphaNumeric1||nonAlphaNumeric2?1:0}let pointer3=1;for(;pointer3=bestScore&&(bestScore=score,bestEquality1=equality1,bestEdit=edit,bestEquality2=equality2)}diffs[pointer3-1][1]!==bestEquality1&&(bestEquality1?diffs[pointer3-1][1]=bestEquality1:(diffs.splice(pointer3-1,1),pointer3--),diffs[pointer3][1]=bestEdit,bestEquality2?diffs[pointer3+1][1]=bestEquality2:(diffs.splice(pointer3+1,1),pointer3--))}pointer3++}}(diffs),pointer3=1;pointer3=overlap_length2?(overlap_length1>=deletion.length/2||overlap_length1>=insertion.length/2)&&(diffs.splice(pointer3,0,new Diff(DIFF_EQUAL,insertion.substring(0,overlap_length1))),diffs[pointer3-1][1]=deletion.substring(0,deletion.length-overlap_length1),diffs[pointer3+1][1]=insertion.substring(overlap_length1),pointer3++):(overlap_length2>=deletion.length/2||overlap_length2>=insertion.length/2)&&(diffs.splice(pointer3,0,new Diff(DIFF_EQUAL,deletion.substring(0,overlap_length2))),diffs[pointer3-1][0]=DIFF_INSERT,diffs[pointer3-1][1]=insertion.substring(0,insertion.length-overlap_length2),diffs[pointer3+1][0]=DIFF_DELETE,diffs[pointer3+1][1]=deletion.substring(overlap_length2),pointer3++),pointer3++}pointer3++}},nonAlphaNumericRegex_=/[^a-z0-9]/i,whitespaceRegex_=/\s/,linebreakRegex_=/[\r\n]/,blanklineEndRegex_=/\n\r?\n$/,blanklineStartRegex_=/^\r?\n\r?\n/;function diff_cleanupMerge(diffs){diffs.push(new Diff(DIFF_EQUAL,""));let commonlength,pointer3=0,count_delete=0,count_insert=0,text_delete="",text_insert="";for(;pointer31?(0!==count_delete&&0!==count_insert&&(commonlength=diff_commonPrefix(text_insert,text_delete),0!==commonlength&&(pointer3-count_delete-count_insert>0&&diffs[pointer3-count_delete-count_insert-1][0]===DIFF_EQUAL?diffs[pointer3-count_delete-count_insert-1][1]+=text_insert.substring(0,commonlength):(diffs.splice(0,0,new Diff(DIFF_EQUAL,text_insert.substring(0,commonlength))),pointer3++),text_insert=text_insert.substring(commonlength),text_delete=text_delete.substring(commonlength)),commonlength=diff_commonSuffix(text_insert,text_delete),0!==commonlength&&(diffs[pointer3][1]=text_insert.substring(text_insert.length-commonlength)+diffs[pointer3][1],text_insert=text_insert.substring(0,text_insert.length-commonlength),text_delete=text_delete.substring(0,text_delete.length-commonlength))),pointer3-=count_delete+count_insert,diffs.splice(pointer3,count_delete+count_insert),text_delete.length&&(diffs.splice(pointer3,0,new Diff(DIFF_DELETE,text_delete)),pointer3++),text_insert.length&&(diffs.splice(pointer3,0,new Diff(DIFF_INSERT,text_insert)),pointer3++),pointer3++):0!==pointer3&&diffs[pointer3-1][0]===DIFF_EQUAL?(diffs[pointer3-1][1]+=diffs[pointer3][1],diffs.splice(pointer3,1)):pointer3++,count_insert=0,count_delete=0,text_delete="",text_insert=""}""===diffs[diffs.length-1][1]&&diffs.pop();let changes=!1;for(pointer3=1;pointer3{let nCommon=0;for(;aIndex{let nCommon=0;for(;aStart<=aIndex&&bStart<=bIndex&&isCommon(aIndex,bIndex);)aIndex-=1,bIndex-=1,nCommon+=1;return nCommon},extendPathsF=(d2,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF)=>{let iF=0,kF=-d2,aFirst=aIndexesF[iF],aIndexPrev1=aFirst;aIndexesF[iF]+=countCommonItemsF(aFirst+1,aEnd,bF+aFirst-kF+1,bEnd,isCommon);let nF=d2{let iR=0,kR=d2,aFirst=aIndexesR[iR],aIndexPrev1=aFirst;aIndexesR[iR]-=countCommonItemsR(aStart,aFirst-1,bStart,bR+aFirst-kR-1,isCommon);let nR=d2{let bF=bStart-aStart,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapF=-baDeltaLength-(d2-1),kMaxOverlapF=d2-1-baDeltaLength,aIndexPrev1=NOT_YET_SET,nF=d2{let bR=bEnd-aEnd,baDeltaLength=bEnd-bStart-(aEnd-aStart),kMinOverlapR=baDeltaLength-d2,kMaxOverlapR=baDeltaLength+d2,aIndexPrev1=NOT_YET_SET,nR=d2{if(bEnd-bStart{foundSubsequence2(nCommon,aCommon,bCommon)},isCommon:(bIndex,aIndex)=>isCommon2(aIndex,bIndex)}}let tStart=aStart,tEnd=aEnd;aStart=bStart,aEnd=bEnd,bStart=tStart,bEnd=tEnd}let{foundSubsequence:foundSubsequence,isCommon:isCommon}=callbacks[transposed?1:0];((nChange,aStart,aEnd,bStart,bEnd,isCommon,aIndexesF,aIndexesR,division)=>{let bF=bStart-aStart,bR=bEnd-aEnd,aLength=aEnd-aStart,bLength=bEnd-bStart,baDeltaLength=bLength-aLength,iMaxF=aLength,iMaxR=aLength;if(aIndexesF[0]=aStart-1,aIndexesR[0]=aEnd,baDeltaLength%2==0){let dMin=(nChange||baDeltaLength)/2,dMax=(aLength+bLength)/2;for(let d2=1;d2<=dMax;d2+=1)if(iMaxF=extendPathsF(d2,aEnd,bEnd,bF,isCommon,aIndexesF,iMaxF),d2{if("number"!=typeof arg)throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);if(!Number.isSafeInteger(arg))throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);if(arg<0)throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`)},validateCallback=(name,arg)=>{let type5=typeof arg;if("function"!==type5)throw new TypeError(`${pkg}: ${name} typeof ${type5} is not a function`)};function printDiffLine(line,isFirstOrLast,color,indicator,trailingSpaceFormatter,emptyFirstOrLastLinePlaceholder){return 0!==line.length?color(`${indicator} ${function formatTrailingSpaces(line,trailingSpaceFormatter){return line.replace(/\s+$/,(match=>trailingSpaceFormatter(match)))}(line,trailingSpaceFormatter)}`):" "!==indicator?color(indicator):isFirstOrLast&&0!==emptyFirstOrLastLinePlaceholder.length?color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`):""}function printDeleteLine(line,isFirstOrLast,{aColor:aColor,aIndicator:aIndicator,changeLineTrailingSpaceColor:changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder:emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,aColor,aIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printInsertLine(line,isFirstOrLast,{bColor:bColor,bIndicator:bIndicator,changeLineTrailingSpaceColor:changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder:emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,bColor,bIndicator,changeLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function printCommonLine(line,isFirstOrLast,{commonColor:commonColor,commonIndicator:commonIndicator,commonLineTrailingSpaceColor:commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder:emptyFirstOrLastLinePlaceholder}){return printDiffLine(line,isFirstOrLast,commonColor,commonIndicator,commonLineTrailingSpaceColor,emptyFirstOrLastLinePlaceholder)}function createPatchMark(aStart,aEnd,bStart,bEnd,{patchColor:patchColor}){return patchColor(`@@ -${aStart+1},${aEnd-aStart} +${bStart+1},${bEnd-bStart} @@`)}var noColor=string=>string,DIFF_CONTEXT_DEFAULT=5,DIFF_TRUNCATE_THRESHOLD_DEFAULT=0;function normalizeDiffOptions(options={}){return{aAnnotation:"Expected",aColor:f2.green,aIndicator:"-",bAnnotation:"Received",bColor:f2.red,bIndicator:"+",changeColor:f2.inverse,changeLineTrailingSpaceColor:noColor,commonColor:f2.dim,commonIndicator:" ",commonLineTrailingSpaceColor:noColor,compareKeys:void 0,contextLines:DIFF_CONTEXT_DEFAULT,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:f2.yellow,truncateThreshold:DIFF_TRUNCATE_THRESHOLD_DEFAULT,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:noColor,...options,compareKeys:(compareKeys=options.compareKeys,compareKeys&&"function"==typeof compareKeys?compareKeys:void 0),contextLines:(contextLines=options.contextLines,"number"==typeof contextLines&&Number.isSafeInteger(contextLines)&&contextLines>=0?contextLines:DIFF_CONTEXT_DEFAULT)};var contextLines,compareKeys}function isEmptyString(lines){return 1===lines.length&&0===lines[0].length}function printDiffLines(diffs,truncated,options){return function printAnnotation({aAnnotation:aAnnotation,aColor:aColor,aIndicator:aIndicator,bAnnotation:bAnnotation,bColor:bColor,bIndicator:bIndicator,includeChangeCounts:includeChangeCounts,omitAnnotationLines:omitAnnotationLines},changeCounts){if(omitAnnotationLines)return"";let aRest="",bRest="";if(includeChangeCounts){let aCount=String(changeCounts.a),bCount=String(changeCounts.b),baAnnotationLengthDiff=bAnnotation.length-aAnnotation.length,aAnnotationPadding=" ".repeat(Math.max(0,baAnnotationLengthDiff)),bAnnotationPadding=" ".repeat(Math.max(0,-baAnnotationLengthDiff)),baCountLengthDiff=bCount.length-aCount.length;aRest=`${aAnnotationPadding} ${aIndicator} ${" ".repeat(Math.max(0,baCountLengthDiff))}${aCount}`,bRest=`${bAnnotationPadding} ${bIndicator} ${" ".repeat(Math.max(0,-baCountLengthDiff))}${bCount}`}let b=`${bIndicator} ${bAnnotation}${bRest}`;return`${aColor(`${aIndicator} ${aAnnotation}${aRest}`)}\n${bColor(b)}\n\n`}(options,function countChanges(diffs){let a2=0,b=0;return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:a2+=1;break;case DIFF_INSERT:b+=1}})),{a:a2,b:b}}(diffs))+(options.expand?function joinAlignedDiffsExpand(diffs,options){return diffs.map(((diff2,i,diffs2)=>{let line=diff2[1],isFirstOrLast=0===i||i===diffs2.length-1;switch(diff2[0]){case DIFF_DELETE:return printDeleteLine(line,isFirstOrLast,options);case DIFF_INSERT:return printInsertLine(line,isFirstOrLast,options);default:return printCommonLine(line,isFirstOrLast,options)}})).join("\n")}(diffs,options):function joinAlignedDiffsNoExpand(diffs,options){let iLength=diffs.length,nContextLines=options.contextLines,nContextLines2=nContextLines+nContextLines,jLength=iLength,hasExcessAtStartOrEnd=!1,nExcessesBetweenChanges=0,i=0;for(;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart)i>nContextLines&&(jLength-=i-nContextLines,hasExcessAtStartOrEnd=!0);else if(i===iLength){let n=i-iStart;n>nContextLines&&(jLength-=n-nContextLines,hasExcessAtStartOrEnd=!0)}else{let n=i-iStart;n>nContextLines2&&(jLength-=n-nContextLines2,nExcessesBetweenChanges+=1)}for(;i!==iLength&&diffs[i][0]!==DIFF_EQUAL;)i+=1}let hasPatch=0!==nExcessesBetweenChanges||hasExcessAtStartOrEnd;0!==nExcessesBetweenChanges?jLength+=nExcessesBetweenChanges+1:hasExcessAtStartOrEnd&&(jLength+=1);let jLast=jLength-1,lines=[],jPatchMark=0;hasPatch&&lines.push("");let aStart=0,bStart=0,aEnd=0,bEnd=0,pushCommonLine=line=>{let j=lines.length;lines.push(printCommonLine(line,0===j||j===jLast,options)),aEnd+=1,bEnd+=1},pushDeleteLine=line=>{let j=lines.length;lines.push(printDeleteLine(line,0===j||j===jLast,options)),aEnd+=1},pushInsertLine=line=>{let j=lines.length;lines.push(printInsertLine(line,0===j||j===jLast,options)),bEnd+=1};for(i=0;i!==iLength;){let iStart=i;for(;i!==iLength&&diffs[i][0]===DIFF_EQUAL;)i+=1;if(iStart!==i)if(0===iStart){i>nContextLines&&(iStart=i-nContextLines,aStart=iStart,bStart=iStart,aEnd=aStart,bEnd=bStart);for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else if(i===iLength){let iEnd=i-iStart>nContextLines?iStart+nContextLines:i;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else{let nCommon=i-iStart;if(nCommon>nContextLines2){let iEnd=iStart+nContextLines;for(let iCommon=iStart;iCommon!==iEnd;iCommon+=1)pushCommonLine(diffs[iCommon][1]);lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options),jPatchMark=lines.length,lines.push("");let nOmit=nCommon-nContextLines2;aStart=aEnd+nOmit,bStart=bEnd+nOmit,aEnd=aStart,bEnd=bStart;for(let iCommon=i-nContextLines;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}else for(let iCommon=iStart;iCommon!==i;iCommon+=1)pushCommonLine(diffs[iCommon][1])}for(;i!==iLength&&diffs[i][0]===DIFF_DELETE;)pushDeleteLine(diffs[i][1]),i+=1;for(;i!==iLength&&diffs[i][0]===DIFF_INSERT;)pushInsertLine(diffs[i][1]),i+=1}return hasPatch&&(lines[jPatchMark]=createPatchMark(aStart,aEnd,bStart,bEnd,options)),lines.join("\n")}(diffs,options))+(truncated?options.truncateAnnotationColor(`\n${options.truncateAnnotation}`):"")}function diffLinesUnified(aLines,bLines,options){let normalizedOptions=normalizeDiffOptions(options),[diffs,truncated]=diffLinesRaw(isEmptyString(aLines)?[]:aLines,isEmptyString(bLines)?[]:bLines,normalizedOptions);return printDiffLines(diffs,truncated,normalizedOptions)}function diffLinesRaw(aLines,bLines,options){let truncate3=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=truncate3?Math.min(aLines.length,truncateThreshold):aLines.length,bLength=truncate3?Math.min(bLines.length,truncateThreshold):bLines.length,truncated=aLength!==aLines.length||bLength!==bLines.length,diffs=[],aIndex=0,bIndex=0;for(_default(aLength,bLength,((aIndex2,bIndex2)=>aLines[aIndex2]===bLines[bIndex2]),((nCommon,aCommon,bCommon)=>{for(;aIndex!==aCommon;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bCommon;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));for(;0!==nCommon;nCommon-=1,aIndex+=1,bIndex+=1)diffs.push(new Diff(DIFF_EQUAL,bLines[bIndex]))}));aIndex!==aLength;aIndex+=1)diffs.push(new Diff(DIFF_DELETE,aLines[aIndex]));for(;bIndex!==bLength;bIndex+=1)diffs.push(new Diff(DIFF_INSERT,bLines[bIndex]));return[diffs,truncated]}function getNewLineSymbol(string){return string.includes("\r\n")?"\r\n":"\n"}var ChangeBuffer=class{op;line;lines;changeColor;constructor(op,changeColor){this.op=op,this.line=[],this.lines=[],this.changeColor=changeColor}pushSubstring(substring){this.pushDiff(new Diff(this.op,substring))}pushLine(){this.lines.push(1!==this.line.length?new Diff(this.op,function concatenateRelevantDiffs(op,diffs,changeColor){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op&&0!==diff2[1].length?changeColor(diff2[1]):"")),"")}(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Diff(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(diff2){this.line.push(diff2)}align(diff2){let string=diff2[1];if(string.includes("\n")){let substrings=string.split("\n"),iLast=substrings.length-1;substrings.forEach(((substring,i)=>{i{if(0===i){let subdiff=new Diff(op,substring);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(subdiff)):(this.pushDiffChangeLines(subdiff),this.flushChangeLines())}else idiff2[0]===DIFF_EQUAL&&(i!==iLast||"\n"!==diff2[1])))}return diffs.some((diff2=>diff2[0]===DIFF_EQUAL))}(diffs,isMultiline)){let optionsNormalized=normalizeDiffOptions(options),lines=function getAlignedDiffs(diffs,changeColor){let deleteBuffer=new ChangeBuffer(DIFF_DELETE,changeColor),insertBuffer=new ChangeBuffer(DIFF_INSERT,changeColor),commonBuffer=new CommonBuffer(deleteBuffer,insertBuffer);return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:deleteBuffer.align(diff2);break;case DIFF_INSERT:insertBuffer.align(diff2);break;default:commonBuffer.align(diff2)}})),commonBuffer.getLines()}(diffs,optionsNormalized.changeColor);return printDiffLines(lines,truncated,optionsNormalized)}}return diffLinesUnified(a2.split("\n"),b.split("\n"),options)}function diffStringsRaw(a2,b,cleanup,options){let[diffs,truncated]=function diffStrings(a2,b,options){let truncate3=options?.truncateThreshold??!1,truncateThreshold=Math.max(Math.floor(options?.truncateThreshold??0),0),aLength=a2.length,bLength=b.length;if(truncate3){let aMultipleLines=a2.includes("\n"),bMultipleLines=b.includes("\n"),aNewLineSymbol=getNewLineSymbol(a2),bNewLineSymbol=getNewLineSymbol(b),_a2=aMultipleLines?`${a2.split(aNewLineSymbol,truncateThreshold).join(aNewLineSymbol)}\n`:a2,_b=bMultipleLines?`${b.split(bNewLineSymbol,truncateThreshold).join(bNewLineSymbol)}\n`:b;aLength=_a2.length,bLength=_b.length}let truncated=aLength!==a2.length||bLength!==b.length,aIndex=0,bIndex=0,diffs=[];return _default(aLength,bLength,((aIndex2,bIndex2)=>a2[aIndex2]===b[bIndex2]),((nCommon,aCommon,bCommon)=>{aIndex!==aCommon&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex,aCommon))),bIndex!==bCommon&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex,bCommon))),aIndex=aCommon+nCommon,bIndex=bCommon+nCommon,diffs.push(new Diff(DIFF_EQUAL,b.slice(bCommon,bIndex)))})),aIndex!==aLength&&diffs.push(new Diff(DIFF_DELETE,a2.slice(aIndex))),bIndex!==bLength&&diffs.push(new Diff(DIFF_INSERT,b.slice(bIndex))),[diffs,truncated]}(a2,b,options);return cleanup&&diff_cleanupSemantic(diffs),[diffs,truncated]}function getCommonMessage(message,options){let{commonColor:commonColor}=normalizeDiffOptions(options);return commonColor(message)}var{AsymmetricMatcher:AsymmetricMatcher2,DOMCollection:DOMCollection2,DOMElement:DOMElement2,Immutable:Immutable2,ReactElement:ReactElement2,ReactTestComponent:ReactTestComponent2}=plugins,PLUGINS2=[ReactTestComponent2,ReactElement2,DOMElement2,DOMCollection2,Immutable2,AsymmetricMatcher2],FORMAT_OPTIONS={plugins:PLUGINS2},FALLBACK_FORMAT_OPTIONS={callToJSON:!1,maxDepth:10,plugins:PLUGINS2};function diff(a2,b,options){if(Object.is(a2,b))return"";let aType=getType3(a2),expectedType=aType,omitDifference=!1;if("object"===aType&&"function"==typeof a2.asymmetricMatch){if(a2.$$typeof!==Symbol.for("jest.asymmetricMatcher")||"function"!=typeof a2.getExpectedType)return;expectedType=a2.getExpectedType(),omitDifference="string"===expectedType}if(expectedType!==getType3(b)){let{aAnnotation:aAnnotation,aColor:aColor,aIndicator:aIndicator,bAnnotation:bAnnotation,bColor:bColor,bIndicator:bIndicator}=normalizeDiffOptions(options),formatOptions=getFormatOptions(FALLBACK_FORMAT_OPTIONS,options),aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions);return`${`${aColor(`${aIndicator} ${aAnnotation}:`)} \n${aDisplay}`}\n\n${`${bColor(`${bIndicator} ${bAnnotation}:`)} \n${bDisplay}`}`}if(!omitDifference)switch(aType){case"string":return diffLinesUnified(a2.split("\n"),b.split("\n"),options);case"boolean":case"number":return function comparePrimitive(a2,b,options){let aFormat=format(a2,FORMAT_OPTIONS),bFormat=format(b,FORMAT_OPTIONS);return aFormat===bFormat?"":diffLinesUnified(aFormat.split("\n"),bFormat.split("\n"),options)}(a2,b,options);case"map":return compareObjects(sortMap(a2),sortMap(b),options);case"set":return compareObjects(sortSet(a2),sortSet(b),options);default:return compareObjects(a2,b,options)}}function sortMap(map){return new Map(Array.from(map.entries()).sort())}function sortSet(set2){return new Set(Array.from(set2.values()).sort())}function compareObjects(a2,b,options){let difference,hasThrown=!1;try{difference=getObjectsDifference(a2,b,getFormatOptions(FORMAT_OPTIONS,options),options)}catch{hasThrown=!0}let noDiffMessage=getCommonMessage(NO_DIFF_MESSAGE,options);if(void 0===difference||difference===noDiffMessage){difference=getObjectsDifference(a2,b,getFormatOptions(FALLBACK_FORMAT_OPTIONS,options),options),difference!==noDiffMessage&&!hasThrown&&(difference=`${getCommonMessage(SIMILAR_MESSAGE,options)}\n\n${difference}`)}return difference}function getFormatOptions(formatOptions,options){let{compareKeys:compareKeys}=normalizeDiffOptions(options);return{...formatOptions,compareKeys:compareKeys}}function getObjectsDifference(a2,b,formatOptions,options){let formatOptionsZeroIndent={...formatOptions,indent:0},aCompare=format(a2,formatOptionsZeroIndent),bCompare=format(b,formatOptionsZeroIndent);if(aCompare===bCompare)return getCommonMessage(NO_DIFF_MESSAGE,options);{let aDisplay=format(a2,formatOptions),bDisplay=format(b,formatOptions);return function diffLinesUnified2(aLinesDisplay,bLinesDisplay,aLinesCompare,bLinesCompare,options){if(isEmptyString(aLinesDisplay)&&isEmptyString(aLinesCompare)&&(aLinesDisplay=[],aLinesCompare=[]),isEmptyString(bLinesDisplay)&&isEmptyString(bLinesCompare)&&(bLinesDisplay=[],bLinesCompare=[]),aLinesDisplay.length!==aLinesCompare.length||bLinesDisplay.length!==bLinesCompare.length)return diffLinesUnified(aLinesDisplay,bLinesDisplay,options);let[diffs,truncated]=diffLinesRaw(aLinesCompare,bLinesCompare,options),aIndex=0,bIndex=0;return diffs.forEach((diff2=>{switch(diff2[0]){case DIFF_DELETE:diff2[1]=aLinesDisplay[aIndex],aIndex+=1;break;case DIFF_INSERT:diff2[1]=bLinesDisplay[bIndex],bIndex+=1;break;default:diff2[1]=bLinesDisplay[bIndex],aIndex+=1,bIndex+=1}})),printDiffLines(diffs,truncated,normalizeDiffOptions(options))}(aDisplay.split("\n"),bDisplay.split("\n"),aCompare.split("\n"),bCompare.split("\n"),options)}}var MAX_DIFF_STRING_LENGTH=2e4;function isAsymmetricMatcher(data){return"Object"===getType(data)&&"function"==typeof data.asymmetricMatch}function isReplaceable(obj1,obj2){let obj1Type=getType(obj1);return obj1Type===getType(obj2)&&("Object"===obj1Type||"Array"===obj1Type)}function printDiffOrStringify(expected,received,options){let{aAnnotation:aAnnotation,bAnnotation:bAnnotation}=normalizeDiffOptions(options);if("string"==typeof expected&&"string"==typeof received&&expected.length>0&&received.length>0&&expected.length<=MAX_DIFF_STRING_LENGTH&&received.length<=MAX_DIFF_STRING_LENGTH&&expected!==received){if(expected.includes("\n")||received.includes("\n"))return diffStringsUnified(received,expected,options);let[diffs]=diffStringsRaw(received,expected,!0),hasCommonDiff2=diffs.some((diff2=>diff2[0]===DIFF_EQUAL)),printLabel=function getLabelPrinter(...strings){let maxLength=strings.reduce(((max,string)=>string.length>max?string.length:max),0);return string=>`${string}: ${" ".repeat(maxLength-string.length)}`}(aAnnotation,bAnnotation);return`${printLabel(aAnnotation)+function printExpected(value){return f2.green(replaceTrailingSpaces(stringify(value)))}(getCommonAndChangedSubstrings(diffs,DIFF_DELETE,hasCommonDiff2))}\n${printLabel(bAnnotation)+function printReceived(object){return f2.red(replaceTrailingSpaces(stringify(object)))}(getCommonAndChangedSubstrings(diffs,DIFF_INSERT,hasCommonDiff2))}`}let clonedExpected=deepClone(expected,{forceWritable:!0}),clonedReceived=deepClone(received,{forceWritable:!0}),{replacedExpected:replacedExpected,replacedActual:replacedActual}=replaceAsymmetricMatcher(clonedExpected,clonedReceived);return diff(replacedExpected,replacedActual,options)}function replaceAsymmetricMatcher(actual,expected,actualReplaced=new WeakSet,expectedReplaced=new WeakSet){return isReplaceable(actual,expected)?(actualReplaced.has(actual)||expectedReplaced.has(expected)||(actualReplaced.add(actual),expectedReplaced.add(expected),getOwnProperties(expected).forEach((key=>{let expectedValue=expected[key],actualValue=actual[key];if(isAsymmetricMatcher(expectedValue))expectedValue.asymmetricMatch(actualValue)&&(actual[key]=expectedValue);else if(isAsymmetricMatcher(actualValue))actualValue.asymmetricMatch(expectedValue)&&(expected[key]=actualValue);else if(isReplaceable(actualValue,expectedValue)){let replaced=replaceAsymmetricMatcher(actualValue,expectedValue,actualReplaced,expectedReplaced);actual[key]=replaced.replacedActual,expected[key]=replaced.replacedExpected}}))),{replacedActual:actual,replacedExpected:expected}):{replacedActual:actual,replacedExpected:expected}}var SPACE_SYMBOL="·";function replaceTrailingSpaces(text){return text.replace(/\s+$/gm,(spaces=>SPACE_SYMBOL.repeat(spaces.length)))}function getCommonAndChangedSubstrings(diffs,op,hasCommonDiff2){return diffs.reduce(((reduced,diff2)=>reduced+(diff2[0]===DIFF_EQUAL?diff2[1]:diff2[0]===op?hasCommonDiff2?f2.inverse(diff2[1]):diff2[1]:"")),"")}function d(e,t){if(!e)throw new Error(t)}function y(e,t){return typeof t===e}function f3(e,t,n){Object.defineProperty(e,t,n)}function p2(e,t,n){Object.defineProperty(e,t,{value:n})}var u=Symbol.for("tinyspy:spy"),x=new Set,I=e=>e[u]||(e=>(f3(e,u,{value:{reset:()=>(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]})(e[u])}}),e[u]))(e);function g(e){d(y("function",e)||y("undefined",e),"cannot spy on a non-function value");let t=function(...s){let r=I(t);r.called=!0,r.callCount++,r.calls.push(s);let R=r.next.shift();if(R){r.results.push(R);let[o,l]=R;if("ok"===o)return l;throw l}let i,c="ok",a2=r.results.length;if(r.impl)try{i=new.target?Reflect.construct(r.impl,s,new.target):r.impl.apply(this,s),c="ok"}catch(o){throw i=o,c="error",r.results.push([c,o]),o}let S=[c,i];return function w(e){return e instanceof Promise}(i)&&i.then((o=>r.resolves[a2]=["ok",o]),(o=>r.resolves[a2]=["error",o])),r.results.push(S),i};p2(t,"_isMockFunction",!0),p2(t,"length",e?e.length:0),p2(t,"name",e&&e.name||"spy");let n=I(t);return n.reset(),n.impl=e,t}var k=(e,t)=>Object.getOwnPropertyDescriptor(e,t),O=(e,t)=>{null!=t&&"function"==typeof t&&null!=t.prototype&&Object.setPrototypeOf(e.prototype,t.prototype)};function C2(e,t,n){d(!y("undefined",e),"spyOn could not find an object to spy upon"),d(y("object",e)||y("function",e),"cannot spyOn on a primitive value");let[s,r]=(()=>{if(!y("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),R=k(e,s),i=Object.getPrototypeOf(e),c=i&&k(i,s),a2=R||c;d(a2||s in e,`${String(s)} does not exist`);let o,S=!1;"value"===r&&a2&&!a2.value&&a2.get&&(r="get",S=!0,n=a2.get()),o=a2?a2[r]:"value"!==r?()=>e[s]:e[s],n||(n=o);let l=g(n);"value"===r&&O(l,o);let h2=A=>{let{value:M,...v}=a2||{configurable:!0,writable:!0};"value"!==r&&delete v.writable,v[r]=A,f3(e,s,v)},m2=l[u];return p2(m2,"restore",(()=>a2?f3(e,s,a2):h2(o))),p2(m2,"getOriginal",(()=>S?o():o)),p2(m2,"willCall",(A=>(m2.impl=A,l))),h2(S?()=>(O(l,n),l):l),x.add(l),l}var mocks=new Set;function isMockFunction(fn22){return"function"==typeof fn22&&"_isMockFunction"in fn22&&fn22._isMockFunction}var callOrder=0;function enhanceSpy(spy){let implementation,stub=spy,instances=[],contexts=[],invocations=[],state=I(spy),mockContext={get calls(){return state.calls},get contexts(){return contexts},get instances(){return instances},get invocationCallOrder(){return invocations},get results(){return state.results.map((([callType,value])=>({type:"error"===callType?"throw":"return",value:value})))},get settledResults(){return state.resolves.map((([callType,value])=>({type:"error"===callType?"rejected":"fulfilled",value:value})))},get lastCall(){return state.calls[state.calls.length-1]}},onceImplementations=[],implementationChangedTemporarily=!1;function mockCall(...args){return instances.push(this),contexts.push(this),invocations.push(++callOrder),(implementationChangedTemporarily?implementation:onceImplementations.shift()||implementation||state.getOriginal()||(()=>{})).apply(this,args)}let name=stub.name;return stub.getMockName=()=>name||"vi.fn()",stub.mockName=n=>(name=n,stub),stub.mockClear=()=>(state.reset(),instances=[],contexts=[],invocations=[],stub),stub.mockReset=()=>(stub.mockClear(),implementation=()=>{},onceImplementations=[],stub),stub.mockRestore=()=>(stub.mockReset(),state.restore(),implementation=void 0,stub),stub.getMockImplementation=()=>implementation,stub.mockImplementation=fn22=>(implementation=fn22,state.willCall(mockCall),stub),stub.mockImplementationOnce=fn22=>(onceImplementations.push(fn22),stub),stub.withImplementation=function withImplementation(fn22,cb){let originalImplementation=implementation;implementation=fn22,state.willCall(mockCall),implementationChangedTemporarily=!0;let reset=()=>{implementation=originalImplementation,implementationChangedTemporarily=!1},result=cb();return result instanceof Promise?result.then((()=>(reset(),stub))):(reset(),stub)},stub.mockReturnThis=()=>stub.mockImplementation((function(){return this})),stub.mockReturnValue=val=>stub.mockImplementation((()=>val)),stub.mockReturnValueOnce=val=>stub.mockImplementationOnce((()=>val)),stub.mockResolvedValue=val=>stub.mockImplementation((()=>Promise.resolve(val))),stub.mockResolvedValueOnce=val=>stub.mockImplementationOnce((()=>Promise.resolve(val))),stub.mockRejectedValue=val=>stub.mockImplementation((()=>Promise.reject(val))),stub.mockRejectedValueOnce=val=>stub.mockImplementationOnce((()=>Promise.reject(val))),Object.defineProperty(stub,"mock",{get:()=>mockContext}),state.willCall(mockCall),mocks.add(stub),stub}function fn(implementation){let enhancedSpy=enhanceSpy(C2({spy:implementation||function(){}},"spy"));return implementation&&enhancedSpy.mockImplementation(implementation),enhancedSpy}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@",IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";var OBJECT_PROTO=Object.getPrototypeOf({});function getUnserializableMessage(err){return err instanceof Error?`: ${err.message}`:"string"==typeof err?`: ${err}`:""}function serializeValue(val,seen=new WeakMap){if(!val||"string"==typeof val)return val;if("function"==typeof val)return`Function<${val.name||"anonymous"}>`;if("symbol"==typeof val)return val.toString();if("object"!=typeof val)return val;if(function isImmutable(v){return v&&(v[IS_COLLECTION_SYMBOL]||v[IS_RECORD_SYMBOL])}(val))return serializeValue(val.toJSON(),seen);if(val instanceof Promise||val.constructor&&"AsyncFunction"===val.constructor.prototype)return"Promise";if(typeof Element<"u"&&val instanceof Element)return val.tagName;if("function"==typeof val.asymmetricMatch)return`${val.toString()} ${function format2(...args){if("string"!=typeof args[0]){let objects=[];for(let i2=0;i2{if("%%"===x2)return"%";if(i>=len)return x2;switch(x2){case"%s":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:"number"==typeof value&&0===value&&1/value<0?"-0":"object"==typeof value&&null!==value?inspect4(value,{depth:0,colors:!1}):String(value)}case"%d":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number(value).toString()}case"%i":{let value=args[i++];return"bigint"==typeof value?`${value.toString()}n`:Number.parseInt(String(value)).toString()}case"%f":return Number.parseFloat(String(args[i++])).toString();case"%o":return inspect4(args[i++],{showHidden:!0,showProxy:!0});case"%O":return inspect4(args[i++]);case"%c":return i++,"";case"%j":try{return JSON.stringify(args[i++])}catch(err){let m2=err.message;if(m2.includes("circular structure")||m2.includes("cyclic structures")||m2.includes("cyclic object"))return"[Circular]";throw err}default:return x2}}));for(let x2=args[i];i{try{clone2[i]=serializeValue(e,seen)}catch(err){clone2[i]=getUnserializableMessage(err)}})),clone2}{let clone2=Object.create(null);seen.set(val,clone2);let obj=val;for(;obj&&obj!==OBJECT_PROTO;)Object.getOwnPropertyNames(obj).forEach((key=>{if(!(key in clone2))try{clone2[key]=serializeValue(val[key],seen)}catch(err){delete clone2[key],clone2[key]=getUnserializableMessage(err)}})),obj=Object.getPrototypeOf(obj);return clone2}}function processError(_err,diffOptions,seen=new WeakSet){if(!_err||"object"!=typeof _err)return{message:String(_err)};let err=_err;err.stack&&(err.stackStr=String(err.stack)),err.name&&(err.nameStr=String(err.name)),(err.showDiff||void 0===err.showDiff&&void 0!==err.expected&&void 0!==err.actual)&&(err.diff=printDiffOrStringify(err.actual,err.expected,{...diffOptions,...err.diffOptions})),"string"!=typeof err.expected&&(err.expected=stringify(err.expected,10)),"string"!=typeof err.actual&&(err.actual=stringify(err.actual,10));try{"string"==typeof err.message&&(err.message=function normalizeErrorMessage(message){return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}(err.message))}catch{}try{!seen.has(err)&&"object"==typeof err.cause&&(seen.add(err),err.cause=processError(err.cause,diffOptions,seen))}catch{}try{return serializeValue(err)}catch(e){return serializeValue(new Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${err?.message}`))}}var MATCHERS_OBJECT=Symbol.for("matchers-object"),JEST_MATCHERS_OBJECT=Symbol.for("$$jest-matchers-object-storybook"),GLOBAL_EXPECT=Symbol.for("expect-global"),ASYMMETRIC_MATCHERS_OBJECT=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,MATCHERS_OBJECT)){let globalState=new WeakMap;Object.defineProperty(globalThis,MATCHERS_OBJECT,{get:()=>globalState})}if(!Object.prototype.hasOwnProperty.call(globalThis,JEST_MATCHERS_OBJECT)){let matchers=Object.create(null),customEqualityTesters=[];Object.defineProperty(globalThis,JEST_MATCHERS_OBJECT,{configurable:!0,get:()=>({state:globalThis[MATCHERS_OBJECT].get(globalThis[GLOBAL_EXPECT]),matchers:matchers,customEqualityTesters:customEqualityTesters})})}if(!Object.prototype.hasOwnProperty.call(globalThis,ASYMMETRIC_MATCHERS_OBJECT)){let assymetricMatchers=Object.create(null);Object.defineProperty(globalThis,ASYMMETRIC_MATCHERS_OBJECT,{get:()=>assymetricMatchers})}function getState(expect4){return globalThis[MATCHERS_OBJECT].get(expect4)}function setState(state,expect4){let map=globalThis[MATCHERS_OBJECT],current=map.get(expect4)||{};Object.assign(current,state),map.set(expect4,current)}var EXPECTED_COLOR=f2.green,RECEIVED_COLOR=f2.red,INVERTED_COLOR=f2.inverse,BOLD_WEIGHT=f2.bold,DIM_COLOR=f2.dim;function matcherHint(matcherName,received="received",expected="expected",options={}){let{comment:comment="",isDirectExpectCall:isDirectExpectCall=!1,isNot:isNot=!1,promise:promise="",secondArgument:secondArgument="",expectedColor:expectedColor=EXPECTED_COLOR,receivedColor:receivedColor=RECEIVED_COLOR,secondArgumentColor:secondArgumentColor=EXPECTED_COLOR}=options,hint="",dimString="expect";return!isDirectExpectCall&&""!==received&&(hint+=DIM_COLOR(`${dimString}(`)+receivedColor(received),dimString=")"),""!==promise&&(hint+=DIM_COLOR(`${dimString}.`)+promise,dimString=""),isNot&&(hint+=`${DIM_COLOR(`${dimString}.`)}not`,dimString=""),matcherName.includes(".")?dimString+=matcherName:(hint+=DIM_COLOR(`${dimString}.`)+matcherName,dimString=""),""===expected?dimString+="()":(hint+=DIM_COLOR(`${dimString}(`)+expectedColor(expected),secondArgument&&(hint+=DIM_COLOR(", ")+secondArgumentColor(secondArgument)),dimString=")"),""!==comment&&(dimString+=` // ${comment}`),""!==dimString&&(hint+=DIM_COLOR(dimString)),hint}var SPACE_SYMBOL2="·";function replaceTrailingSpaces2(text){return text.replace(/\s+$/gm,(spaces=>SPACE_SYMBOL2.repeat(spaces.length)))}function printReceived2(object){return RECEIVED_COLOR(replaceTrailingSpaces2(stringify(object)))}function printExpected2(value){return EXPECTED_COLOR(replaceTrailingSpaces2(stringify(value)))}function getMatcherUtils(){return{EXPECTED_COLOR:EXPECTED_COLOR,RECEIVED_COLOR:RECEIVED_COLOR,INVERTED_COLOR:INVERTED_COLOR,BOLD_WEIGHT:BOLD_WEIGHT,DIM_COLOR:DIM_COLOR,diff:diff,matcherHint:matcherHint,printReceived:printReceived2,printExpected:printExpected2,printDiffOrStringify:printDiffOrStringify}}function getCustomEqualityTesters(){return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters}function equals(a2,b,customTesters,strictCheck){return eq(a2,b,[],[],customTesters=customTesters||[],strictCheck?hasKey:hasDefinedKey)}function isAsymmetric(obj){return!!obj&&"object"==typeof obj&&"asymmetricMatch"in obj&&isA("Function",obj.asymmetricMatch)}function eq(a2,b,aStack,bStack,customTesters,hasKey2){let result=!0,asymmetricResult=function asymmetricMatch(a2,b){let asymmetricA=isAsymmetric(a2),asymmetricB=isAsymmetric(b);if(!asymmetricA||!asymmetricB){if(asymmetricA)return a2.asymmetricMatch(b);if(asymmetricB)return b.asymmetricMatch(a2)}}(a2,b);if(void 0!==asymmetricResult)return asymmetricResult;let testerContext={equals:equals};for(let i=0;iObject.getOwnPropertyDescriptor(obj,symbol).enumerable)))}function hasDefinedKey(obj,key){return hasKey(obj,key)&&void 0!==obj[key]}function hasKey(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}function isA(typeName,value){return Object.prototype.toString.apply(value)===`[object ${typeName}]`}function isDomNode(obj){return null!==obj&&"object"==typeof obj&&"nodeType"in obj&&"number"==typeof obj.nodeType&&"nodeName"in obj&&"string"==typeof obj.nodeName&&"isEqualNode"in obj&&"function"==typeof obj.isEqualNode}var IS_KEYED_SENTINEL2="@@__IMMUTABLE_KEYED__@@",IS_SET_SENTINEL2="@@__IMMUTABLE_SET__@@",IS_LIST_SENTINEL2="@@__IMMUTABLE_LIST__@@",IS_ORDERED_SENTINEL2="@@__IMMUTABLE_ORDERED__@@",IS_RECORD_SYMBOL2="@@__IMMUTABLE_RECORD__@@";function isObjectLiteral(source){return null!=source&&"object"==typeof source&&!Array.isArray(source)}var IteratorSymbol=Symbol.iterator;function hasIterator(object){return!(null==object||!object[IteratorSymbol])}function iterableEquality(a2,b,customTesters=[],aStack=[],bStack=[]){if("object"!=typeof a2||"object"!=typeof b||Array.isArray(a2)||Array.isArray(b)||!hasIterator(a2)||!hasIterator(b))return;if(a2.constructor!==b.constructor)return!1;let length=aStack.length;for(;length--;)if(aStack[length]===a2)return bStack[length]===b;aStack.push(a2),bStack.push(b);let filteredCustomTesters=[...customTesters.filter((t=>t!==iterableEquality)),function iterableEqualityWithStack(a22,b2){return iterableEquality(a22,b2,[...customTesters],[...aStack],[...bStack])}];if(void 0!==a2.size){if(a2.size!==b.size)return!1;if(isA("Set",a2)||function isImmutableUnorderedSet(maybeSet){return!(!maybeSet||!maybeSet[IS_SET_SENTINEL2]||maybeSet[IS_ORDERED_SENTINEL2])}(a2)){let allFound=!0;for(let aValue of a2)if(!b.has(aValue)){let has=!1;for(let bValue of b)!0===equals(aValue,bValue,filteredCustomTesters)&&(has=!0);if(!1===has){allFound=!1;break}}return aStack.pop(),bStack.pop(),allFound}if(isA("Map",a2)||function isImmutableUnorderedKeyed(maybeKeyed){return!(!maybeKeyed||!maybeKeyed[IS_KEYED_SENTINEL2]||maybeKeyed[IS_ORDERED_SENTINEL2])}(a2)){let allFound=!0;for(let aEntry of a2)if(!b.has(aEntry[0])||!equals(aEntry[1],b.get(aEntry[0]),filteredCustomTesters)){let has=!1;for(let bEntry of b){let matchedValue=!1;!0===equals(aEntry[0],bEntry[0],filteredCustomTesters)&&(matchedValue=equals(aEntry[1],bEntry[1],filteredCustomTesters)),!0===matchedValue&&(has=!0)}if(!1===has){allFound=!1;break}}return aStack.pop(),bStack.pop(),allFound}}let bIterator=b[IteratorSymbol]();for(let aValue of a2){let nextB=bIterator.next();if(nextB.done||!equals(aValue,nextB.value,filteredCustomTesters))return!1}if(!bIterator.next().done)return!1;if(!(function isImmutableList(source){return!!(source&&isObjectLiteral(source)&&source[IS_LIST_SENTINEL2])}(a2)||function isImmutableOrderedKeyed(source){return!!(source&&isObjectLiteral(source)&&source[IS_KEYED_SENTINEL2]&&source[IS_ORDERED_SENTINEL2])}(a2)||function isImmutableOrderedSet(source){return!!(source&&isObjectLiteral(source)&&source[IS_SET_SENTINEL2]&&source[IS_ORDERED_SENTINEL2])}(a2)||function isImmutableRecord(source){return!!(source&&isObjectLiteral(source)&&source[IS_RECORD_SYMBOL2])}(a2))){if(!equals(Object.entries(a2),Object.entries(b)))return!1}return aStack.pop(),bStack.pop(),!0}function hasPropertyInObject(object,key){return!(!object||"object"!=typeof object||object===Object.prototype)&&(Object.prototype.hasOwnProperty.call(object,key)||hasPropertyInObject(Object.getPrototypeOf(object),key))}function subsetEquality(object,subset,customTesters=[]){let filteredCustomTesters=customTesters.filter((t=>t!==subsetEquality)),subsetEqualityWithContext=(seenReferences=new WeakMap)=>(object2,subset2)=>{if(function isObjectWithKeys(a2){return isObject(a2)&&!(a2 instanceof Error)&&!Array.isArray(a2)&&!(a2 instanceof Date)}(subset2))return Object.keys(subset2).every((key=>{if(null!=subset2[key]&&"object"==typeof subset2[key]){if(seenReferences.has(subset2[key]))return equals(object2[key],subset2[key],filteredCustomTesters);seenReferences.set(subset2[key],!0)}let result=null!=object2&&hasPropertyInObject(object2,key)&&equals(object2[key],subset2[key],[...filteredCustomTesters,subsetEqualityWithContext(seenReferences)]);return seenReferences.delete(subset2[key]),result}))};return subsetEqualityWithContext()(object,subset)}function typeEquality(a2,b){if(null!=a2&&null!=b&&a2.constructor!==b.constructor)return!1}function arrayBufferEquality(a2,b){let dataViewA=a2,dataViewB=b;if(!(a2 instanceof DataView&&b instanceof DataView)){if(!(a2 instanceof ArrayBuffer&&b instanceof ArrayBuffer))return;try{dataViewA=new DataView(a2),dataViewB=new DataView(b)}catch{return}}if(dataViewA.byteLength!==dataViewB.byteLength)return!1;for(let i=0;it!==sparseArrayEquality)),!0)&&equals(aKeys,bKeys)}function getObjectKeys(object){return[...Object.keys(object),...Object.getOwnPropertySymbols(object).filter((s=>{var _a2;return null==(_a2=Object.getOwnPropertyDescriptor(object,s))?void 0:_a2.enumerable}))]}var AsymmetricMatcher3=class{constructor(sample,inverse=!1){this.sample=sample,this.inverse=inverse}$$typeof=Symbol.for("jest.asymmetricMatcher");getMatcherContext(expect4){return{...getState(expect4||globalThis[GLOBAL_EXPECT]),equals:equals,isNot:this.inverse,customTesters:getCustomEqualityTesters(),utils:{...getMatcherUtils(),diff:diff,stringify:stringify,iterableEquality:iterableEquality,subsetEquality:subsetEquality}}}[Symbol.for("chai/inspect")](options){let result=stringify(this,options.depth,{min:!0});return result.length<=options.truncate?result:`${this.toString()}{…}`}},StringContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){if(!isA("String",sample))throw new Error("Expected is not a string");super(sample,inverse)}asymmetricMatch(other){let result=isA("String",other)&&other.includes(this.sample);return this.inverse?!result:result}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},Anything=class extends AsymmetricMatcher3{asymmetricMatch(other){return null!=other}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},ObjectContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){super(sample,inverse)}getPrototype(obj){return Object.getPrototypeOf?Object.getPrototypeOf(obj):obj.constructor.prototype===obj?null:obj.constructor.prototype}hasProperty(obj,property){return!!obj&&(!!Object.prototype.hasOwnProperty.call(obj,property)||this.hasProperty(this.getPrototype(obj),property))}asymmetricMatch(other){if("object"!=typeof this.sample)throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let result=!0,matcherContext=this.getMatcherContext();for(let property in this.sample)if(!this.hasProperty(other,property)||!equals(this.sample[property],other[property],matcherContext.customTesters)){result=!1;break}return this.inverse?!result:result}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},ArrayContaining=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){super(sample,inverse)}asymmetricMatch(other){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let matcherContext=this.getMatcherContext(),result=0===this.sample.length||Array.isArray(other)&&this.sample.every((item=>other.some((another=>equals(item,another,matcherContext.customTesters)))));return this.inverse?!result:result}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},Any=class extends AsymmetricMatcher3{constructor(sample){if(typeof sample>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(sample)}fnNameFor(func){if(func.name)return func.name;let matches3=Function.prototype.toString.call(func).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return matches3?matches3[1]:""}asymmetricMatch(other){return this.sample===String?"string"==typeof other||other instanceof String:this.sample===Number?"number"==typeof other||other instanceof Number:this.sample===Function?"function"==typeof other||other instanceof Function:this.sample===Boolean?"boolean"==typeof other||other instanceof Boolean:this.sample===BigInt?"bigint"==typeof other||other instanceof BigInt:this.sample===Symbol?"symbol"==typeof other||other instanceof Symbol:this.sample===Object?"object"==typeof other:other instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},StringMatching=class extends AsymmetricMatcher3{constructor(sample,inverse=!1){if(!isA("String",sample)&&!isA("RegExp",sample))throw new Error("Expected is not a String or a RegExp");super(new RegExp(sample),inverse)}asymmetricMatch(other){let result=isA("String",other)&&this.sample.test(other);return this.inverse?!result:result}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},CloseTo=class extends AsymmetricMatcher3{precision;constructor(sample,precision=2,inverse=!1){if(!isA("Number",sample))throw new Error("Expected is not a Number");if(!isA("Number",precision))throw new Error("Precision is not a Number");super(sample),this.inverse=inverse,this.precision=precision}asymmetricMatch(other){if(!isA("Number",other))return!1;let result=!1;return result=other===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||other===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY||Math.abs(this.sample-other)<10**-this.precision/2,this.inverse?!result:result}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${word="digit",count=this.precision,`${count} ${word}${1===count?"":"s"}`})`].join(" ");var word,count}},JestAsymmetricMatchers=(chai,utils)=>{utils.addMethod(chai.expect,"anything",(()=>new Anything)),utils.addMethod(chai.expect,"any",(expected=>new Any(expected))),utils.addMethod(chai.expect,"stringContaining",(expected=>new StringContaining(expected))),utils.addMethod(chai.expect,"objectContaining",(expected=>new ObjectContaining(expected))),utils.addMethod(chai.expect,"arrayContaining",(expected=>new ArrayContaining(expected))),utils.addMethod(chai.expect,"stringMatching",(expected=>new StringMatching(expected))),utils.addMethod(chai.expect,"closeTo",((expected,precision)=>new CloseTo(expected,precision))),chai.expect.not={stringContaining:expected=>new StringContaining(expected,!0),objectContaining:expected=>new ObjectContaining(expected,!0),arrayContaining:expected=>new ArrayContaining(expected,!0),stringMatching:expected=>new StringMatching(expected,!0),closeTo:(expected,precision)=>new CloseTo(expected,precision,!0)}};function recordAsyncExpect(test3,promise){return test3&&promise instanceof Promise&&(promise=promise.finally((()=>{let index=test3.promises.indexOf(promise);-1!==index&&test3.promises.splice(index,1)})),test3.promises||(test3.promises=[]),test3.promises.push(promise)),promise}function wrapSoft(utils,fn3){return function(...args){var _a2;if(!utils.flag(this,"soft"))return fn3.apply(this,args);let test3=utils.flag(this,"vitest-test");if(!test3)throw new Error("expect.soft() can only be used inside a test");try{return fn3.apply(this,args)}catch(err){test3.result||(test3.result={state:"fail"}),test3.result.state="fail",(_a2=test3.result).errors||(_a2.errors=[]),test3.result.errors.push(processError(err))}}}var JestChaiExpect=(chai,utils)=>{let{AssertionError:AssertionError2}=chai,customTesters=getCustomEqualityTesters();function def(name,fn3){let addMethod2=n=>{let softWrapper=wrapSoft(utils,fn3);utils.addMethod(chai.Assertion.prototype,n,softWrapper),utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers,n,softWrapper)};Array.isArray(name)?name.forEach((n=>addMethod2(n))):addMethod2(name)}["throw","throws","Throw"].forEach((m2=>{utils.overwriteMethod(chai.Assertion.prototype,m2,(_super=>function(...args){let promise=utils.flag(this,"promise"),object=utils.flag(this,"object"),isNot=utils.flag(this,"negate");if("rejects"===promise)utils.flag(this,"object",(()=>{throw object}));else if("resolves"===promise&&"function"!=typeof object){if(isNot)return;{let message=utils.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new AssertionError2(message,{showDiff:!1},utils.flag(this,"ssfi"))}}_super.apply(this,args)}))})),def("withTest",(function(test3){return utils.flag(this,"vitest-test",test3),this})),def("toEqual",(function(expected){let actual=utils.flag(this,"object"),equal=equals(actual,expected,[...customTesters,iterableEquality]);return this.assert(equal,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",expected,actual)})),def("toStrictEqual",(function(expected){let obj=utils.flag(this,"object"),equal=equals(obj,expected,[...customTesters,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0);return this.assert(equal,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",expected,obj)})),def("toBe",(function(expected){let actual=this._obj,pass=Object.is(actual,expected),deepEqualityName="";return pass||(equals(actual,expected,[...customTesters,iterableEquality,typeEquality,sparseArrayEquality,arrayBufferEquality],!0)?deepEqualityName="toStrictEqual":equals(actual,expected,[...customTesters,iterableEquality])&&(deepEqualityName="toEqual")),this.assert(pass,function generateToBeMessage(deepEqualityName,expected="#{this}",actual="#{exp}"){let toBeMessage=`expected ${expected} to be ${actual} // Object.is equality`;return["toStrictEqual","toEqual"].includes(deepEqualityName)?`${toBeMessage}\n\nIf it should pass with deep equality, replace "toBe" with "${deepEqualityName}"\n\nExpected: ${expected}\nReceived: serializes to the same string\n`:toBeMessage}(deepEqualityName),"expected #{this} not to be #{exp} // Object.is equality",expected,actual)})),def("toMatchObject",(function(expected){let actual=this._obj,pass=equals(actual,expected,[...customTesters,iterableEquality,subsetEquality]),isNot=utils.flag(this,"negate"),{subset:actualSubset,stripped:stripped}=function getObjectSubset(object,subset,customTesters=[]){let stripped=0,getObjectSubsetWithContext=(seenReferences=new WeakMap)=>(object2,subset2)=>{if(Array.isArray(object2)){if(Array.isArray(subset2)&&subset2.length===object2.length)return subset2.map(((sub,i)=>getObjectSubsetWithContext(seenReferences)(object2[i],sub)))}else{if(object2 instanceof Date)return object2;if(isObject(object2)&&isObject(subset2)){if(equals(object2,subset2,[...customTesters,iterableEquality,subsetEquality]))return subset2;let trimmed={};seenReferences.set(object2,trimmed);for(let key of getObjectKeys(object2))hasPropertyInObject(subset2,key)?trimmed[key]=seenReferences.has(object2[key])?seenReferences.get(object2[key]):getObjectSubsetWithContext(seenReferences)(object2[key],subset2[key]):seenReferences.has(object2[key])||(stripped+=1,isObject(object2[key])&&(stripped+=getObjectKeys(object2[key]).length),getObjectSubsetWithContext(seenReferences)(object2[key],subset2[key]));if(getObjectKeys(trimmed).length>0)return trimmed}}return object2};return{subset:getObjectSubsetWithContext()(object,subset),stripped:stripped}}(actual,expected);if(pass&&isNot||!pass&&!isNot){let msg=utils.getMessage(this,[pass,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",expected,actualSubset,!1]);throw new AssertionError2(0===stripped?msg:`${msg}\n(${stripped} matching ${1===stripped?"property":"properties"} omitted from actual)`,{showDiff:!0,expected:expected,actual:actualSubset})}})),def("toMatch",(function(expected){let actual=this._obj;if("string"!=typeof actual)throw new TypeError(".toMatch() expects to receive a string, but got "+typeof actual);return this.assert("string"==typeof expected?actual.includes(expected):actual.match(expected),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",expected,actual)})),def("toContain",(function(item){let actual=this._obj;if(typeof Node<"u"&&actual instanceof Node){if(!(item instanceof Node))throw new TypeError("toContain() expected a DOM node as the argument, but got "+typeof item);return this.assert(actual.contains(item),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",item,actual)}if(typeof DOMTokenList<"u"&&actual instanceof DOMTokenList){assertTypes(item,"class name",["string"]);let expectedClassList=utils.flag(this,"negate")?actual.value.replace(item,"").trim():`${actual.value} ${item}`;return this.assert(actual.contains(item),`expected "${actual.value}" to contain "${item}"`,`expected "${actual.value}" not to contain "${item}"`,expectedClassList,actual.value)}return"string"==typeof actual&&"string"==typeof item?this.assert(actual.includes(item),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",item,actual):(null!=actual&&"string"!=typeof actual&&utils.flag(this,"object",Array.from(actual)),this.contain(item))})),def("toContainEqual",(function(expected){let obj=utils.flag(this,"object"),index=Array.from(obj).findIndex((item=>equals(item,expected,customTesters)));this.assert(-1!==index,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",expected)})),def("toBeTruthy",(function(){let obj=utils.flag(this,"object");this.assert(!!obj,"expected #{this} to be truthy","expected #{this} to not be truthy",obj,!1)})),def("toBeFalsy",(function(){let obj=utils.flag(this,"object");this.assert(!obj,"expected #{this} to be falsy","expected #{this} to not be falsy",obj,!1)})),def("toBeGreaterThan",(function(expected){let actual=this._obj;return assertTypes(actual,"actual",["number","bigint"]),assertTypes(expected,"expected",["number","bigint"]),this.assert(actual>expected,`expected ${actual} to be greater than ${expected}`,`expected ${actual} to be not greater than ${expected}`,actual,expected,!1)})),def("toBeGreaterThanOrEqual",(function(expected){let actual=this._obj;return assertTypes(actual,"actual",["number","bigint"]),assertTypes(expected,"expected",["number","bigint"]),this.assert(actual>=expected,`expected ${actual} to be greater than or equal to ${expected}`,`expected ${actual} to be not greater than or equal to ${expected}`,actual,expected,!1)})),def("toBeLessThan",(function(expected){let actual=this._obj;return assertTypes(actual,"actual",["number","bigint"]),assertTypes(expected,"expected",["number","bigint"]),this.assert(actualString(key).replace(/([.[\]])/g,"\\$1"))).join("."));let actual=this._obj,[propertyName,expected]=args,{value:value,exists:exists}=Object.prototype.hasOwnProperty.call(actual,propertyName)?{value:actual[propertyName],exists:!0}:utils.getPathInfo(actual,propertyName),pass=exists&&(1===args.length||equals(expected,value,customTesters)),valueString=1===args.length?"":` with value ${utils.objDisplay(expected)}`;return this.assert(pass,`expected #{this} to have property "${propertyName}"${valueString}`,`expected #{this} to not have property "${propertyName}"${valueString}`,expected,exists?value:void 0)})),def("toBeCloseTo",(function(received,precision=2){let expected=this._obj,pass=!1,expectedDiff2=0,receivedDiff=0;return received===Number.POSITIVE_INFINITY&&expected===Number.POSITIVE_INFINITY||received===Number.NEGATIVE_INFINITY&&expected===Number.NEGATIVE_INFINITY?pass=!0:(expectedDiff2=10**-precision/2,receivedDiff=Math.abs(expected-received),pass=receivedDiff((assertion=>{if(!isMockFunction(assertion._obj))throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`)})(assertion),assertion._obj),ordinalOf=i=>{let j=i%10,k2=i%100;return 1===j&&11!==k2?`${i}st`:2===j&&12!==k2?`${i}nd`:3===j&&13!==k2?`${i}rd`:`${i}th`},formatCalls=(spy,msg,showActualCall)=>(spy.mock.calls&&(msg+=f2.gray(`\n\nReceived: \n\n${spy.mock.calls.map(((callArg,i)=>{let methodCall=f2.bold(` ${ordinalOf(i+1)} ${spy.getMockName()} call:\n\n`);return methodCall+=showActualCall?diff(showActualCall,callArg,{omitAnnotationLines:!0}):stringify(callArg).split("\n").map((line=>` ${line}`)).join("\n"),methodCall+="\n",methodCall})).join("\n")}`)),msg+=f2.gray(`\n\nNumber of calls: ${f2.bold(spy.mock.calls.length)}\n`));def(["toHaveBeenCalledTimes","toBeCalledTimes"],(function(number){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length;return this.assert(callCount===number,`expected "${spyName}" to be called #{exp} times, but got ${callCount} times`,`expected "${spyName}" to not be called #{exp} times`,number,callCount,!1)})),def("toHaveBeenCalledOnce",(function(){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length;return this.assert(1===callCount,`expected "${spyName}" to be called once, but got ${callCount} times`,`expected "${spyName}" to not be called once`,1,callCount,!1)})),def(["toHaveBeenCalled","toBeCalled"],(function(){let spy=getSpy(this),spyName=spy.getMockName(),callCount=spy.mock.calls.length,called=callCount>0,isNot=utils.flag(this,"negate"),msg=utils.getMessage(this,[called,`expected "${spyName}" to be called at least once`,`expected "${spyName}" to not be called at all, but actually been called ${callCount} times`,!0,called]);if(called&&isNot&&(msg=formatCalls(spy,msg)),called&&isNot||!called&&!isNot)throw new AssertionError2(msg)})),def(["toHaveBeenCalledWith","toBeCalledWith"],(function(...args){let spy=getSpy(this),spyName=spy.getMockName(),pass=spy.mock.calls.some((callArg=>equals(callArg,args,[...customTesters,iterableEquality]))),isNot=utils.flag(this,"negate"),msg=utils.getMessage(this,[pass,`expected "${spyName}" to be called with arguments: #{exp}`,`expected "${spyName}" to not be called with arguments: #{exp}`,args]);if(pass&&isNot||!pass&&!isNot)throw new AssertionError2(formatCalls(spy,msg,args))})),def(["toHaveBeenNthCalledWith","nthCalledWith"],(function(times,...args){let spy=getSpy(this),spyName=spy.getMockName(),nthCall=spy.mock.calls[times-1],callCount=spy.mock.calls.length,isCalled=times<=callCount;this.assert(equals(nthCall,args,[...customTesters,iterableEquality]),`expected ${ordinalOf(times)} "${spyName}" call to have been called with #{exp}${isCalled?"":`, but called only ${callCount} times`}`,`expected ${ordinalOf(times)} "${spyName}" call to not have been called with #{exp}`,args,nthCall,isCalled)})),def(["toHaveBeenLastCalledWith","lastCalledWith"],(function(...args){let spy=getSpy(this),spyName=spy.getMockName(),lastCall=spy.mock.calls[spy.mock.calls.length-1];this.assert(equals(lastCall,args,[...customTesters,iterableEquality]),`expected last "${spyName}" call to have been called with #{exp}`,`expected last "${spyName}" call to not have been called with #{exp}`,args,lastCall)})),def(["toThrow","toThrowError"],(function(expected){if("string"==typeof expected||typeof expected>"u"||expected instanceof RegExp)return this.throws(expected);let obj=this._obj,promise=utils.flag(this,"promise"),isNot=utils.flag(this,"negate"),thrown=null;if("rejects"===promise)thrown=obj;else{if("resolves"===promise&&"function"!=typeof obj){if(isNot)return;{let message=utils.flag(this,"message")||"expected promise to throw an error, but it didn't";throw new AssertionError2(message,{showDiff:!1},utils.flag(this,"ssfi"))}}{let isThrow=!1;try{obj()}catch(err){isThrow=!0,thrown=err}if(!isThrow&&!isNot){let message=utils.flag(this,"message")||"expected function to throw an error, but it didn't";throw new AssertionError2(message,{showDiff:!1},utils.flag(this,"ssfi"))}}}if("function"==typeof expected){let name=expected.name||expected.prototype.constructor.name;return this.assert(thrown&&thrown instanceof expected,`expected error to be instance of ${name}`,`expected error not to be instance of ${name}`,expected,thrown)}if(expected instanceof Error)return this.assert(thrown&&expected.message===thrown.message,`expected error to have message: ${expected.message}`,`expected error not to have message: ${expected.message}`,expected.message,thrown&&thrown.message);if("object"==typeof expected&&"asymmetricMatch"in expected&&"function"==typeof expected.asymmetricMatch){let matcher=expected;return this.assert(thrown&&matcher.asymmetricMatch(thrown),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",matcher,thrown)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"`)})),[{name:"toHaveResolved",condition:spy=>spy.mock.settledResults.length>0&&spy.mock.settledResults.some((({type:type5})=>"fulfilled"===type5)),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:spy=>spy.mock.calls.length>0&&spy.mock.results.some((({type:type5})=>"throw"!==type5)),action:"called"}].forEach((({name:name,condition:condition,action:action})=>{def(name,(function(){let spy=getSpy(this),spyName=spy.getMockName(),pass=condition(spy);this.assert(pass,`expected "${spyName}" to be successfully ${action} at least once`,`expected "${spyName}" to not be successfully ${action}`,pass,!pass,!1)}))})),[{name:"toHaveResolvedTimes",condition:(spy,times)=>spy.mock.settledResults.reduce(((s,{type:type5})=>"fulfilled"===type5?++s:s),0)===times,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(spy,times)=>spy.mock.results.reduce(((s,{type:type5})=>"throw"===type5?s:++s),0)===times,action:"called"}].forEach((({name:name,condition:condition,action:action})=>{def(name,(function(times){let spy=getSpy(this),spyName=spy.getMockName(),pass=condition(spy,times);this.assert(pass,`expected "${spyName}" to be successfully ${action} ${times} times`,`expected "${spyName}" to not be successfully ${action} ${times} times`,`expected resolved times: ${times}`,`received resolved times: ${pass}`,!1)}))})),[{name:"toHaveResolvedWith",condition:(spy,value)=>spy.mock.settledResults.some((({type:type5,value:result})=>"fulfilled"===type5&&equals(value,result))),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(spy,value)=>spy.mock.results.some((({type:type5,value:result})=>"return"===type5&&equals(value,result))),action:"return"}].forEach((({name:name,condition:condition,action:action})=>{def(name,(function(value){let spy=getSpy(this),pass=condition(spy,value),isNot=utils.flag(this,"negate");if(pass&&isNot||!pass&&!isNot){let spyName=spy.getMockName(),msg=utils.getMessage(this,[pass,`expected "${spyName}" to ${action} with: #{exp} at least once`,`expected "${spyName}" to not ${action} with: #{exp}`,value]),results="return"===action?spy.mock.results:spy.mock.settledResults;throw new AssertionError2(((spy,results,msg,showActualReturn)=>(msg+=f2.gray(`\n\nReceived: \n\n${results.map(((callReturn,i)=>{let methodCall=f2.bold(` ${ordinalOf(i+1)} ${spy.getMockName()} call return:\n\n`);return methodCall+=showActualReturn?diff(showActualReturn,callReturn.value,{omitAnnotationLines:!0}):stringify(callReturn).split("\n").map((line=>` ${line}`)).join("\n"),methodCall+="\n",methodCall})).join("\n")}`),msg+f2.gray(`\n\nNumber of calls: ${f2.bold(spy.mock.calls.length)}\n`)))(spy,results,msg,value))}}))})),[{name:"toHaveLastResolvedWith",condition:(spy,value)=>{let result=spy.mock.settledResults[spy.mock.settledResults.length-1];return result&&"fulfilled"===result.type&&equals(result.value,value)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(spy,value)=>{let result=spy.mock.results[spy.mock.results.length-1];return result&&"return"===result.type&&equals(result.value,value)},action:"return"}].forEach((({name:name,condition:condition,action:action})=>{def(name,(function(value){let spy=getSpy(this),results="return"===action?spy.mock.results:spy.mock.settledResults,result=results[results.length-1],spyName=spy.getMockName();this.assert(condition(spy,value),`expected last "${spyName}" call to ${action} #{exp}`,`expected last "${spyName}" call to not ${action} #{exp}`,value,result?.value)}))})),[{name:"toHaveNthResolvedWith",condition:(spy,index,value)=>{let result=spy.mock.settledResults[index-1];return result&&"fulfilled"===result.type&&equals(result.value,value)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(spy,index,value)=>{let result=spy.mock.results[index-1];return result&&"return"===result.type&&equals(result.value,value)},action:"return"}].forEach((({name:name,condition:condition,action:action})=>{def(name,(function(nthCall,value){let spy=getSpy(this),spyName=spy.getMockName(),result=("return"===action?spy.mock.results:spy.mock.settledResults)[nthCall-1],ordinalCall=`${ordinalOf(nthCall)} call`;this.assert(condition(spy,nthCall,value),`expected ${ordinalCall} "${spyName}" call to ${action} #{exp}`,`expected ${ordinalCall} "${spyName}" call to not ${action} #{exp}`,value,result?.value)}))})),def("toSatisfy",(function(matcher,message){return this.be.satisfy(matcher,message)})),def("withContext",(function(context){for(let key in context)utils.flag(this,key,context[key]);return this})),utils.addProperty(chai.Assertion.prototype,"resolves",(function(){let error=new Error("resolves");utils.flag(this,"promise","resolves"),utils.flag(this,"error",error);let test3=utils.flag(this,"vitest-test"),obj=utils.flag(this,"object");if(utils.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if("function"!=typeof obj?.then)throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);let proxy=new Proxy(this,{get:(target,key,receiver)=>{let result=Reflect.get(target,key,receiver);return"function"!=typeof result?result instanceof chai.Assertion?proxy:result:async(...args)=>{let promise=obj.then((value=>(utils.flag(this,"object",value),result.call(this,...args))),(err=>{let _error=new AssertionError2(`promise rejected "${utils.inspect(err)}" instead of resolving`,{showDiff:!1});throw _error.cause=err,_error.stack=error.stack.replace(error.message,_error.message),_error}));return recordAsyncExpect(test3,promise)}}});return proxy})),utils.addProperty(chai.Assertion.prototype,"rejects",(function(){let error=new Error("rejects");utils.flag(this,"promise","rejects"),utils.flag(this,"error",error);let test3=utils.flag(this,"vitest-test"),obj=utils.flag(this,"object"),wrapper="function"==typeof obj?obj():obj;if(utils.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if("function"!=typeof wrapper?.then)throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);let proxy=new Proxy(this,{get:(target,key,receiver)=>{let result=Reflect.get(target,key,receiver);return"function"!=typeof result?result instanceof chai.Assertion?proxy:result:async(...args)=>{let promise=wrapper.then((value=>{let _error=new AssertionError2(`promise resolved "${utils.inspect(value)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:value});throw _error.stack=error.stack.replace(error.message,_error.message),_error}),(err=>(utils.flag(this,"object",err),result.call(this,...args))));return recordAsyncExpect(test3,promise)}}});return proxy}))};var JestExtendError=class extends Error{constructor(message,actual,expected){super(message),this.actual=actual,this.expected=expected}};function JestExtendPlugin(c,expect4,matchers){return(_,utils)=>{Object.entries(matchers).forEach((([expectAssertionName,expectAssertion])=>{let softWrapper=wrapSoft(utils,(function expectWrapper(...args){let{state:state,isNot:isNot,obj:obj}=function getMatcherState(assertion,expect4){let obj=assertion._obj,isNot=utils_exports.flag(assertion,"negate"),promise=utils_exports.flag(assertion,"promise")||"",jestUtils={...getMatcherUtils(),diff:diff,stringify:stringify,iterableEquality:iterableEquality,subsetEquality:subsetEquality};return{state:{...getState(expect4),customTesters:getCustomEqualityTesters(),isNot:isNot,utils:jestUtils,promise:promise,equals:equals,suppressedErrors:[],soft:utils_exports.flag(assertion,"soft"),poll:utils_exports.flag(assertion,"poll")},isNot:isNot,obj:obj}}(this,expect4),result=expectAssertion.call(state,obj,...args);if(result&&"object"==typeof result&&result instanceof Promise)return result.then((({pass:pass2,message:message2,actual:actual2,expected:expected2})=>{if(pass2&&isNot||!pass2&&!isNot)throw new JestExtendError(message2(),actual2,expected2)}));let{pass:pass,message:message,actual:actual,expected:expected}=result;if(pass&&isNot||!pass&&!isNot)throw new JestExtendError(message(),actual,expected)}));utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers,expectAssertionName,softWrapper),utils.addMethod(c.Assertion.prototype,expectAssertionName,softWrapper);class CustomMatcher extends AsymmetricMatcher3{constructor(inverse=!1,...sample){super(sample,inverse)}asymmetricMatch(other){let{pass:pass}=expectAssertion.call(this.getMatcherContext(expect4),other,...this.sample);return this.inverse?!pass:pass}toString(){return`${this.inverse?"not.":""}${expectAssertionName}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(String).join(", ")}>`}}let customMatcher=(...sample)=>new CustomMatcher(!1,...sample);Object.defineProperty(expect4,expectAssertionName,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0}),Object.defineProperty(expect4.not,expectAssertionName,{configurable:!0,enumerable:!0,value:(...sample)=>new CustomMatcher(!0,...sample),writable:!0}),Object.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT],expectAssertionName,{configurable:!0,enumerable:!0,value:customMatcher,writable:!0})}))}}var JestExtend=(chai,utils)=>{utils.addMethod(chai.expect,"extend",((expect4,expects)=>{use(JestExtendPlugin(chai,expect4,expects))}))};var expect2=function createExpect(){use(JestExtend),use(JestChaiExpect),use(JestAsymmetricMatchers);let expect4=(value,message)=>{let{assertionCalls:assertionCalls}=getState(expect4);return setState({assertionCalls:assertionCalls+1,soft:!1},expect4),expect(value,message)};return Object.assign(expect4,expect),expect4.getState=()=>getState(expect4),expect4.setState=state=>setState(state,expect4),expect4.extend=expects=>expect.extend(expect4,expects),expect4.soft=(...args)=>{let assert2=expect4(...args);return expect4.setState({soft:!0}),assert2},expect4.unreachable=message=>{assert.fail(`expected${message?` "${message}" `:" "}not to be reached`)},setState({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},expect4),utils_exports.addMethod(expect4,"assertions",(function assertions(expected){let errorGen=()=>new Error(`expected number of assertions to be ${expected}, but got ${expect4.getState().assertionCalls}`);"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(errorGen(),assertions),expect4.setState({expectedAssertionsNumber:expected,expectedAssertionsNumberErrorGen:errorGen})})),utils_exports.addMethod(expect4,"hasAssertions",(function hasAssertions(){let error=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(error,hasAssertions),expect4.setState({isExpectingAssertions:!0,isExpectingAssertionsError:error})})),expect4.extend(matchers_exports),expect4}();Object.defineProperty(globalThis,GLOBAL_EXPECT,{value:expect2,writable:!0,configurable:!0});var listeners=new Set;function fn2(implementation){return reactiveMock(implementation?fn(implementation):fn())}function reactiveMock(mock){let reactive=listenWhenCalled(mock),originalMockImplementation=reactive.mockImplementation.bind(null);return reactive.mockImplementation=fn3=>listenWhenCalled(originalMockImplementation(fn3)),reactive}function listenWhenCalled(mock){let state=I(mock),impl=state.impl;return state.willCall((function(...args){return listeners.forEach((listener=>listener(mock,args))),impl?.apply(this,args)})),mock}var dom_esm_exports={};__export(dom_esm_exports,{buildQueries:()=>buildQueries,configure:()=>configure,createEvent:()=>createEvent,findAllByAltText:()=>findAllByAltText,findAllByDisplayValue:()=>findAllByDisplayValue,findAllByLabelText:()=>findAllByLabelText,findAllByPlaceholderText:()=>findAllByPlaceholderText,findAllByRole:()=>findAllByRole,findAllByTestId:()=>findAllByTestId,findAllByText:()=>findAllByText,findAllByTitle:()=>findAllByTitle,findByAltText:()=>findByAltText,findByDisplayValue:()=>findByDisplayValue,findByLabelText:()=>findByLabelText,findByPlaceholderText:()=>findByPlaceholderText,findByRole:()=>findByRole,findByTestId:()=>findByTestId,findByText:()=>findByText,findByTitle:()=>findByTitle,fireEvent:()=>fireEvent,getAllByAltText:()=>getAllByAltText,getAllByDisplayValue:()=>getAllByDisplayValue,getAllByLabelText:()=>getAllByLabelTextWithSuggestions,getAllByPlaceholderText:()=>getAllByPlaceholderText,getAllByRole:()=>getAllByRole,getAllByTestId:()=>getAllByTestId,getAllByText:()=>getAllByText,getAllByTitle:()=>getAllByTitle,getByAltText:()=>getByAltText,getByDisplayValue:()=>getByDisplayValue,getByLabelText:()=>getByLabelTextWithSuggestions,getByPlaceholderText:()=>getByPlaceholderText,getByRole:()=>getByRole,getByTestId:()=>getByTestId,getByText:()=>getByText,getByTitle:()=>getByTitle,getConfig:()=>getConfig2,getDefaultNormalizer:()=>getDefaultNormalizer,getElementError:()=>getElementError,getMultipleElementsFoundError:()=>getMultipleElementsFoundError,getNodeText:()=>getNodeText,getQueriesForElement:()=>getQueriesForElement,getRoles:()=>getRoles,getSuggestedQuery:()=>getSuggestedQuery,isInaccessible:()=>isInaccessible,logDOM:()=>logDOM,logRoles:()=>logRoles,makeFindQuery:()=>makeFindQuery,makeGetAllQuery:()=>makeGetAllQuery,makeSingleQuery:()=>makeSingleQuery,prettyDOM:()=>prettyDOM,prettyFormat:()=>prettyFormat,queries:()=>queries,queryAllByAltText:()=>queryAllByAltTextWithSuggestions,queryAllByAttribute:()=>queryAllByAttribute,queryAllByDisplayValue:()=>queryAllByDisplayValueWithSuggestions,queryAllByLabelText:()=>queryAllByLabelTextWithSuggestions,queryAllByPlaceholderText:()=>queryAllByPlaceholderTextWithSuggestions,queryAllByRole:()=>queryAllByRoleWithSuggestions,queryAllByTestId:()=>queryAllByTestIdWithSuggestions,queryAllByText:()=>queryAllByTextWithSuggestions,queryAllByTitle:()=>queryAllByTitleWithSuggestions,queryByAltText:()=>queryByAltText,queryByAttribute:()=>queryByAttribute,queryByDisplayValue:()=>queryByDisplayValue,queryByLabelText:()=>queryByLabelText,queryByPlaceholderText:()=>queryByPlaceholderText,queryByRole:()=>queryByRole,queryByTestId:()=>queryByTestId,queryByText:()=>queryByText,queryByTitle:()=>queryByTitle,queryHelpers:()=>queryHelpers,screen:()=>screen,waitFor:()=>waitForWrapper,waitForElementToBeRemoved:()=>waitForElementToBeRemoved,within:()=>getQueriesForElement,wrapAllByQueryWithSuggestion:()=>wrapAllByQueryWithSuggestion,wrapSingleQueryWithSuggestion:()=>wrapSingleQueryWithSuggestion});var prettyFormat=__toESM(require_build()),toStr2=Object.prototype.toString;function isCallable2(fn3){return"function"==typeof fn3||"[object Function]"===toStr2.call(fn3)}var maxSafeInteger2=Math.pow(2,53)-1;function toLength2(value){var len=function toInteger2(value){var number=Number(value);return isNaN(number)?0:0!==number&&isFinite(number)?(number>0?1:-1)*Math.floor(Math.abs(number)):number}(value);return Math.min(Math.max(len,0),maxSafeInteger2)}function arrayFrom2(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(null==arrayLike)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof mapFn<"u"&&!isCallable2(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var kValue,len=toLength2(items.length),A=isCallable2(C3)?Object(new C3(len)):new Array(len),k2=0;k20&&void 0!==arguments[0]?arguments[0]:[];(function _classCallCheck2(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")})(this,SetLike3),function _defineProperty3(obj,key,value){return(key=_toPropertyKey3(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"items",void 0),this.items=items}return function _createClass2(Constructor,protoProps,staticProps){return protoProps&&_defineProperties2(Constructor.prototype,protoProps),staticProps&&_defineProperties2(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(SetLike3,[{key:"add",value:function(value){return!1===this.has(value)&&this.items.push(value),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter((function(item){return item!==value})),previousLength!==this.items.length}},{key:"forEach",value:function(callbackfn){var _this=this;this.items.forEach((function(item){callbackfn(item,item,_this)}))}},{key:"has",value:function(value){return-1!==this.items.indexOf(value)}},{key:"size",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default2=typeof Set>"u"?Set:SetLike2;function getLocalName2(element){var _element$localName;return null!==(_element$localName=element.localName)&&void 0!==_element$localName?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings2={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},prohibitedAttributes2={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function ignorePresentationalRole2(element,implicitRole){return function hasGlobalAriaAttributes2(element,role){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some((function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!(null!==(_prohibitedAttributes=prohibitedAttributes2[role])&&void 0!==_prohibitedAttributes&&_prohibitedAttributes.has(attributeName))}))}(element,implicitRole)}function getRole2(element){var explicitRole=function getExplicitRole2(element){var role=element.getAttribute("role");if(null!==role){var explicitRole=role.trim().split(" ")[0];if(explicitRole.length>0)return explicitRole}return null}(element);if(null===explicitRole||"presentation"===explicitRole){var implicitRole=function getImplicitRole2(element){var mappedByTag=localNameToRoleMappings2[getLocalName2(element)];if(void 0!==mappedByTag)return mappedByTag;switch(getLocalName2(element)){case"a":case"area":case"link":if(element.hasAttribute("href"))return"link";break;case"img":return""!==element.getAttribute("alt")||ignorePresentationalRole2(element,"img")?"img":"presentation";case"input":var type5=element.type;switch(type5){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return type5;case"range":return"slider";case"email":case"tel":case"text":case"url":return element.hasAttribute("list")?"combobox":"textbox";case"search":return element.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}case"select":return element.hasAttribute("multiple")||element.size>1?"listbox":"combobox"}return null}(element);if("presentation"!==explicitRole||ignorePresentationalRole2(element,implicitRole||""))return implicitRole}return explicitRole}function isElement2(node){return null!==node&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement2(node){return isElement2(node)&&"caption"===getLocalName2(node)}function isHTMLInputElement2(node){return isElement2(node)&&"input"===getLocalName2(node)}function isHTMLLegendElement2(node){return isElement2(node)&&"legend"===getLocalName2(node)}function isSVGTitleElement2(node){return function isSVGElement2(node){return isElement2(node)&&void 0!==node.ownerSVGElement}(node)&&"title"===getLocalName2(node)}function queryIdRefs2(node,attributeName){if(isElement2(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(" "),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map((function(id){return root.getElementById(id)})).filter((function(element){return null!==element}))}return[]}function hasAnyConcreteRoles2(node,roles3){return!!isElement2(node)&&-1!==roles3.indexOf(getRole2(node))}function hasAbstractRole2(node,role){if(!isElement2(node))return!1;if("range"===role)return hasAnyConcreteRoles2(node,["meter","progressbar","scrollbar","slider","spinbutton"]);throw new TypeError("No knowledge about abstract role '".concat(role,"'. This is likely a bug :("))}function querySelectorAllSubtree2(element,selectors){var elements=arrayFrom2(element.querySelectorAll(selectors));return queryIdRefs2(element,"aria-owns").forEach((function(root){elements.push.apply(elements,arrayFrom2(root.querySelectorAll(selectors)))})),elements}function querySelectedOptions2(listbox){return function isHTMLSelectElement2(node){return isElement2(node)&&"select"===getLocalName2(node)}(listbox)?listbox.selectedOptions||querySelectorAllSubtree2(listbox,"[selected]"):querySelectorAllSubtree2(listbox,'[aria-selected="true"]')}function getValueOfTextbox2(element){return isHTMLInputElement2(element)||function isHTMLTextAreaElement2(node){return isElement2(node)&&"textarea"===getLocalName2(node)}(element)?element.value:element.textContent||""}function getTextualContent2(declaration){var content=declaration.getPropertyValue("content");return/^["'].*["']$/.test(content)?content.slice(1,-1):""}function isLabelableElement2(element){var localName=getLocalName2(element);return"button"===localName||"input"===localName&&"hidden"!==element.getAttribute("type")||"meter"===localName||"output"===localName||"progress"===localName||"select"===localName||"textarea"===localName}function findLabelableElement2(element){if(isLabelableElement2(element))return element;var labelableElement=null;return element.childNodes.forEach((function(childNode){if(null===labelableElement&&isElement2(childNode)){var descendantLabelableElement=findLabelableElement2(childNode);null!==descendantLabelableElement&&(labelableElement=descendantLabelableElement)}})),labelableElement}function getControlOfLabel2(label){if(void 0!==label.control)return label.control;var htmlFor=label.getAttribute("for");return null!==htmlFor?label.ownerDocument.getElementById(htmlFor):findLabelableElement2(label)}function computeTextAlternative2(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},consultedNodes=new SetLike_default2,window2=function safeWindow2(node){var defaultView=(null===node.ownerDocument?node:node.ownerDocument).defaultView;if(null===defaultView)throw new TypeError("no window available");return defaultView}(root),_options$compute=options.compute,compute=void 0===_options$compute?"name":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=void 0===_options$computedStyl?void 0!==options.getComputedStyle:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=void 0===_options$getComputedS?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=void 0!==_options$hidden&&_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText="";if(isElement2(node)&&computedStyleSupportsPseudoElements){var beforeContent=getTextualContent2(getComputedStyle(node,"::before"));accumulatedText="".concat(beforeContent," ").concat(accumulatedText)}if((function isHTMLSlotElement2(node){return isElement2(node)&&"slot"===getLocalName2(node)}(node)?function getSlotContents2(slot){var assignedNodes=slot.assignedNodes();return 0===assignedNodes.length?arrayFrom2(slot.childNodes):assignedNodes}(node):arrayFrom2(node.childNodes).concat(queryIdRefs2(node,"aria-owns"))).forEach((function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),separator="inline"!==(isElement2(child)?getComputedStyle(child).getPropertyValue("display"):"inline")?" ":"";accumulatedText+="".concat(separator).concat(result).concat(separator)})),isElement2(node)&&computedStyleSupportsPseudoElements){var afterContent=getTextualContent2(getComputedStyle(node,"::after"));accumulatedText="".concat(accumulatedText," ").concat(afterContent)}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return null===attribute||consultedNodes.has(attribute)||""===attribute.value.trim()?null:(consultedNodes.add(attribute),attribute.value)}function computeElementTextAlternative(node){if(!isElement2(node))return null;if(function isHTMLFieldSetElement2(node){return isElement2(node)&&"fieldset"===getLocalName2(node)}(node)){consultedNodes.add(node);for(var children=arrayFrom2(node.childNodes),i=0;i0})).join(" ");if(isHTMLInputElement2(node)&&"image"===node.type){var _nameFromAlt=useAttribute(node,"alt");if(null!==_nameFromAlt)return _nameFromAlt;var nameFromTitle=useAttribute(node,"title");return null!==nameFromTitle?nameFromTitle:"Submit Query"}if(hasAnyConcreteRoles2(node,["button"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(""!==nameFromSubTree)return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return"";if(!hidden&&function isHidden2(node,getComputedStyleImplementation){if(!isElement2(node))return!1;if(node.hasAttribute("hidden")||"true"===node.getAttribute("aria-hidden"))return!0;var style=getComputedStyleImplementation(node);return"none"===style.getPropertyValue("display")||"hidden"===style.getPropertyValue("visibility")}(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),"";var labelAttributeNode=isElement2(current)?current.getAttributeNode("aria-labelledby"):null,labelElements=null===labelAttributeNode||consultedNodes.has(labelAttributeNode)?[]:queryIdRefs2(current,"aria-labelledby");if("name"===compute&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map((function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})})).join(" ");var skipToStep2E=context.recursion&&function isControl2(node){return hasAnyConcreteRoles2(node,["button","combobox","listbox","textbox"])||hasAbstractRole2(node,"range")}(current)&&"name"===compute;if(!skipToStep2E){var ariaLabel=(isElement2(current)&¤t.getAttribute("aria-label")||"").trim();if(""!==ariaLabel&&"name"===compute)return consultedNodes.add(current),ariaLabel;if(!function isMarkedPresentational2(node){return hasAnyConcreteRoles2(node,["none","presentation"])}(current)){var elementTextAlternative=computeElementTextAlternative(current);if(null!==elementTextAlternative)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles2(current,["menu"]))return consultedNodes.add(current),"";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles2(current,["combobox","listbox"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions2(current);return 0===selectedOptions.length?isHTMLInputElement2(current)?current.value:"":arrayFrom2(selectedOptions).map((function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})})).join(" ")}if(hasAbstractRole2(current,"range"))return consultedNodes.add(current),current.hasAttribute("aria-valuetext")?current.getAttribute("aria-valuetext"):current.hasAttribute("aria-valuenow")?current.getAttribute("aria-valuenow"):current.getAttribute("value")||"";if(hasAnyConcreteRoles2(current,["textbox"]))return consultedNodes.add(current),getValueOfTextbox2(current)}if(function allowsNameFromContent2(node){return hasAnyConcreteRoles2(node,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}(current)||isElement2(current)&&context.isReferenced||function isNativeHostLanguageTextAlternativeElement2(node){return isHTMLTableCaptionElement2(node)}(current)){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(""!==accumulatedText2F)return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||"";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=function computeTooltipAttributeValue(node){return isElement2(node)?useAttribute(node,"title"):null}(current);return null!==tooltipAttributeValue?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),"")}return function asFlatString2(s){return s.trim().replace(/\s\s+/g," ")}(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:"description"===compute,recursion:!1}))}function _typeof4(obj){return(_typeof4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj2){return typeof obj2}:function(obj2){return obj2&&"function"==typeof Symbol&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2})(obj)}function ownKeys2(object,enumerableOnly){var keys2=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys2.push.apply(keys2,symbols)}return keys2}function _objectSpread2(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{},description=queryIdRefs2(root,"aria-describedby").map((function(element){return computeTextAlternative2(element,_objectSpread2(_objectSpread2({},options),{},{compute:"description"}))})).join(" ");if(""===description){var title=root.getAttribute("title");description=null===title?"":title}return description}function computeAccessibleName2(root){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function prohibitsNaming2(node){return hasAnyConcreteRoles2(node,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}(root)?"":computeTextAlternative2(root,options)}var import_aria_query3=__toESM(require_lib()),import_lz_string=__toESM(require_lz_string());function escapeHTML2(str){return str.replace(//g,">")}var printProps2=(keys2,props,config3,indentation,depth,refs,printer2)=>{let indentationNext=indentation+config3.indent,colors=config3.colors;return keys2.map((key=>{let value=props[key],printed=printer2(value,config3,indentationNext,depth,refs);return"string"!=typeof value&&(-1!==printed.indexOf("\n")&&(printed=config3.spacingOuter+indentationNext+printed+config3.spacingOuter+indentation),printed="{"+printed+"}"),config3.spacingInner+indentation+colors.prop.open+key+colors.prop.close+"="+colors.value.open+printed+colors.value.close})).join("")},printChildren2=(children,config3,indentation,depth,refs,printer2)=>children.map((child=>{let printedChild="string"==typeof child?printText2(child,config3):printer2(child,config3,indentation,depth,refs);return""===printedChild&&"object"==typeof child&&null!==child&&3!==child.nodeType?"":config3.spacingOuter+indentation+printedChild})).join(""),printText2=(text,config3)=>{let contentColor=config3.colors.content;return contentColor.open+escapeHTML2(text)+contentColor.close},printComment2=(comment,config3)=>{let commentColor=config3.colors.comment;return commentColor.open+"\x3c!--"+escapeHTML2(comment)+"--\x3e"+commentColor.close},printElement2=(type5,printedProps,printedChildren,config3,indentation)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+(printedProps&&tagColor.close+printedProps+config3.spacingOuter+indentation+tagColor.open)+(printedChildren?">"+tagColor.close+printedChildren+config3.spacingOuter+indentation+tagColor.open+""+tagColor.close},printElementAsLeaf2=(type5,config3)=>{let tagColor=config3.colors.tag;return tagColor.open+"<"+type5+tagColor.close+" …"+tagColor.open+" />"+tagColor.close},TEXT_NODE$1=3,COMMENT_NODE$1=8,FRAGMENT_NODE2=11,ELEMENT_REGEXP2=/^((HTML|SVG)\w*)?Element$/,isCustomElement2=val=>{let{tagName:tagName}=val;return!!("string"==typeof tagName&&tagName.includes("-")||"function"==typeof val.hasAttribute&&val.hasAttribute("is"))},testNode2=val=>{let constructorName=val.constructor.name,{nodeType:nodeType}=val;return 1===nodeType&&(ELEMENT_REGEXP2.test(constructorName)||isCustomElement2(val))||nodeType===TEXT_NODE$1&&"Text"===constructorName||nodeType===COMMENT_NODE$1&&"Comment"===constructorName||nodeType===FRAGMENT_NODE2&&"DocumentFragment"===constructorName};function nodeIsFragment2(node){return node.nodeType===FRAGMENT_NODE2}function createDOMElementFilter(filterNode){return{test:val=>{var _val$constructor2;return((null==val||null==(_val$constructor2=val.constructor)?void 0:_val$constructor2.name)||isCustomElement2(val))&&testNode2(val)},serialize:(node,config3,indentation,depth,refs,printer2)=>{if(function nodeIsText2(node){return node.nodeType===TEXT_NODE$1}(node))return printText2(node.data,config3);if(function nodeIsComment2(node){return node.nodeType===COMMENT_NODE$1}(node))return printComment2(node.data,config3);let type5=nodeIsFragment2(node)?"DocumentFragment":node.tagName.toLowerCase();return++depth>config3.maxDepth?printElementAsLeaf2(type5,config3):printElement2(type5,printProps2(nodeIsFragment2(node)?[]:Array.from(node.attributes).map((attr=>attr.name)).sort(),nodeIsFragment2(node)?{}:Array.from(node.attributes).reduce(((props,attribute)=>(props[attribute.name]=attribute.value,props)),{}),config3,indentation+config3.indent,depth,refs,printer2),printChildren2(Array.prototype.slice.call(node.childNodes||node.children).filter(filterNode),config3,indentation+config3.indent,depth,refs,printer2),config3,indentation)}}}var chalk2=null,readFileSync=null,codeFrameColumns=null;try{let nodeRequire=module&&module.require;readFileSync=nodeRequire.call(module,"fs").readFileSync,codeFrameColumns=nodeRequire.call(module,"@babel/code-frame").codeFrameColumns,chalk2=nodeRequire.call(module,"chalk")}catch{}function getUserCodeFrame(){if(!readFileSync||!codeFrameColumns)return"";return function getCodeFrame(frame){let locationStart=frame.indexOf("(")+1,locationEnd=frame.indexOf(")"),frameLocation=frame.slice(locationStart,locationEnd),frameLocationElements=frameLocation.split(":"),[filename,line,column]=[frameLocationElements[0],parseInt(frameLocationElements[1],10),parseInt(frameLocationElements[2],10)],rawFileContents="";try{rawFileContents=readFileSync(filename,"utf-8")}catch{return""}let codeFrame=codeFrameColumns(rawFileContents,{start:{line:line,column:column}},{highlightCode:!0,linesBelow:0});return chalk2.dim(frameLocation)+"\n"+codeFrame+"\n"}((new Error).stack.split("\n").slice(1).find((frame=>!frame.includes("node_modules/"))))}var TEXT_NODE2=3;function jestFakeTimersAreEnabled(){return typeof jest<"u"&&null!==jest&&(!0===setTimeout._isMockFunction||Object.prototype.hasOwnProperty.call(setTimeout,"clock"))}function getDocument(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function getWindowFromNode(node){if(node.defaultView)return node.defaultView;if(node.ownerDocument&&node.ownerDocument.defaultView)return node.ownerDocument.defaultView;if(node.window)return node.window;throw node.ownerDocument&&null===node.ownerDocument.defaultView?new Error("It looks like the window object is not available for the provided node."):node.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(node)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):"function"==typeof node.debug&&"function"==typeof node.logTestingPlaygroundURL?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof node+".")}function checkContainerType(container){if(!container||"function"!=typeof container.querySelector||"function"!=typeof container.querySelectorAll)throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+function getTypeName(object){return"object"==typeof object?null===object?"null":object.constructor.name:typeof object}(container)+".")}var shouldHighlight=()=>{if(typeof process>"u")return!1;let colors;try{var _process$env;let colorsJSON=null==(_process$env=process.env)?void 0:_process$env.COLORS;colorsJSON&&(colors=JSON.parse(colorsJSON))}catch{}return"boolean"==typeof colors?colors:void 0!==process.versions&&void 0!==process.versions.node},{DOMCollection:DOMCollection3}=prettyFormat.plugins,ELEMENT_NODE2=1,COMMENT_NODE2=8;function filterCommentsAndDefaultIgnoreTagsTags(value){return value.nodeType!==COMMENT_NODE2&&(value.nodeType!==ELEMENT_NODE2||!value.matches(getConfig2().defaultIgnore))}function prettyDOM(dom,maxLength,options){if(void 0===options&&(options={}),dom||(dom=getDocument().body),"number"!=typeof maxLength&&(maxLength=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),0===maxLength)return"";dom.documentElement&&(dom=dom.documentElement);let domTypeName=typeof dom;if("object"===domTypeName?domTypeName=dom.constructor.name:dom={},!("outerHTML"in dom))throw new TypeError("Expected an element or document but got "+domTypeName);let{filterNode:filterNode=filterCommentsAndDefaultIgnoreTagsTags,...prettyFormatOptions}=options,debugContent=prettyFormat.format(dom,{plugins:[createDOMElementFilter(filterNode),DOMCollection3],printFunctionName:!1,highlight:shouldHighlight(),...prettyFormatOptions});return void 0!==maxLength&&dom.outerHTML.length>maxLength?debugContent.slice(0,maxLength)+"...":debugContent}var logDOM=function(){let userCodeFrame=getUserCodeFrame();console.log(userCodeFrame?prettyDOM(...arguments)+"\n\n"+userCodeFrame:prettyDOM(...arguments))},config2={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:cb=>cb(),unstable_advanceTimersWrapper:cb=>cb(),eventWrapper:cb=>cb(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(message,container){let prettifiedDOM=prettyDOM(container),error=new Error([message,"Ignored nodes: comments, "+config2.defaultIgnore+"\n"+prettifiedDOM].filter(Boolean).join("\n\n"));return error.name="TestingLibraryElementError",error},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function configure(newConfig){"function"==typeof newConfig&&(newConfig=newConfig(config2)),config2={...config2,...newConfig}}function getConfig2(){return config2}var labelledNodeNames=["button","meter","output","progress","select","textarea","input"];function getTextContent(node){return labelledNodeNames.includes(node.nodeName.toLowerCase())?"":node.nodeType===TEXT_NODE2?node.textContent:Array.from(node.childNodes).map((childNode=>getTextContent(childNode))).join("")}function getLabelContent(element){let textContent;return textContent="label"===element.tagName.toLowerCase()?getTextContent(element):element.value||element.textContent,textContent}function getRealLabels(element){var _labels;if(void 0!==element.labels)return null!=(_labels=element.labels)?_labels:[];if(!function isLabelable(element){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName)||"INPUT"===element.tagName&&"hidden"!==element.getAttribute("type")}(element))return[];let labels=element.ownerDocument.querySelectorAll("label");return Array.from(labels).filter((label=>label.control===element))}function getLabels3(container,element,_temp){let{selector:selector="*"}=void 0===_temp?{}:_temp,ariaLabelledBy=element.getAttribute("aria-labelledby"),labelsId=ariaLabelledBy?ariaLabelledBy.split(" "):[];return labelsId.length?labelsId.map((labelId=>{let labellingElement=container.querySelector('[id="'+labelId+'"]');return labellingElement?{content:getLabelContent(labellingElement),formControl:null}:{content:"",formControl:null}})):Array.from(getRealLabels(element)).map((label=>({content:getLabelContent(label),formControl:Array.from(label.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((formControlElement=>formControlElement.matches(selector)))[0]})))}function assertNotNullOrUndefined(matcher){if(null==matcher)throw new Error("It looks like "+matcher+" was passed instead of a matcher. Did you do something like getByText("+matcher+")?")}function fuzzyMatches(textToMatch,node,matcher,normalizer){if("string"!=typeof textToMatch)return!1;assertNotNullOrUndefined(matcher);let normalizedText=normalizer(textToMatch);return"string"==typeof matcher||"number"==typeof matcher?normalizedText.toLowerCase().includes(matcher.toString().toLowerCase()):"function"==typeof matcher?matcher(normalizedText,node):matchRegExp(matcher,normalizedText)}function matches2(textToMatch,node,matcher,normalizer){if("string"!=typeof textToMatch)return!1;assertNotNullOrUndefined(matcher);let normalizedText=normalizer(textToMatch);return matcher instanceof Function?matcher(normalizedText,node):matcher instanceof RegExp?matchRegExp(matcher,normalizedText):normalizedText===String(matcher)}function getDefaultNormalizer(_temp){let{trim:trim=!0,collapseWhitespace:collapseWhitespace=!0}=void 0===_temp?{}:_temp;return text=>{let normalizedText=text;return normalizedText=trim?normalizedText.trim():normalizedText,normalizedText=collapseWhitespace?normalizedText.replace(/\s+/g," "):normalizedText,normalizedText}}function makeNormalizer(_ref){let{trim:trim,collapseWhitespace:collapseWhitespace,normalizer:normalizer}=_ref;if(!normalizer)return getDefaultNormalizer({trim:trim,collapseWhitespace:collapseWhitespace});if(typeof trim<"u"||typeof collapseWhitespace<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return normalizer}function matchRegExp(matcher,text){let match=matcher.test(text);return matcher.global&&0!==matcher.lastIndex&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),matcher.lastIndex=0),match}function getNodeText(node){return node.matches("input[type=submit], input[type=button], input[type=reset]")?node.value:Array.from(node.childNodes).filter((child=>child.nodeType===TEXT_NODE2&&!!child.textContent)).map((c=>c.textContent)).join("")}var elementRoleList2=function buildElementRoleList2(elementRolesMap){function getSelectorSpecificity(_ref3){let{attributes:attributes=[]}=_ref3;return attributes.length}function match(element){let{attributes:attributes=[]}=element,typeTextIndex=attributes.findIndex((attribute=>attribute.value&&"type"===attribute.name&&"text"===attribute.value));typeTextIndex>=0&&(attributes=[...attributes.slice(0,typeTextIndex),...attributes.slice(typeTextIndex+1)]);let selector=function makeElementSelector(_ref){let{name:name,attributes:attributes}=_ref;return""+name+attributes.map((_ref2=>{let{name:attributeName,value:value,constraints:constraints=[]}=_ref2,shouldNotExist=-1!==constraints.indexOf("undefined"),shouldBeNonEmpty=-1!==constraints.indexOf("set");return typeof value<"u"?"["+attributeName+'="'+value+'"]':shouldNotExist?":not(["+attributeName+"])":shouldBeNonEmpty?"["+attributeName+"]:not(["+attributeName+'=""])':"["+attributeName+"]"})).join("")}({...element,attributes:attributes});return node=>!(typeTextIndex>=0&&"text"!==node.type)&&node.matches(selector)}let result=[];for(let[element,roles3]of elementRolesMap.entries())result=[...result,{match:match(element),roles:Array.from(roles3),specificity:getSelectorSpecificity(element)}];return result.sort((function bySelectorSpecificity(_ref4,_ref5){let{specificity:leftSpecificity}=_ref4,{specificity:rightSpecificity}=_ref5;return rightSpecificity-leftSpecificity}))}(import_aria_query3.elementRoles);function isSubtreeInaccessible(element){return!0===element.hidden||"true"===element.getAttribute("aria-hidden")||"none"===element.ownerDocument.defaultView.getComputedStyle(element).display}function isInaccessible(element,options){void 0===options&&(options={});let{isSubtreeInaccessible:isSubtreeInaccessibleImpl=isSubtreeInaccessible}=options;if("hidden"===element.ownerDocument.defaultView.getComputedStyle(element).visibility)return!0;let currentElement=element;for(;currentElement;){if(isSubtreeInaccessibleImpl(currentElement))return!0;currentElement=currentElement.parentElement}return!1}function getImplicitAriaRoles2(currentNode){for(let{match:match,roles:roles3}of elementRoleList2)if(match(currentNode))return[...roles3];return[]}function getRoles(container,_temp){let{hidden:hidden=!1}=void 0===_temp?{}:_temp;return function flattenDOM(node){return[node,...Array.from(node.children).reduce(((acc,child)=>[...acc,...flattenDOM(child)]),[])]}(container).filter((element=>!1!==hidden||!1===isInaccessible(element))).reduce(((acc,node)=>{let roles3=[];return roles3=node.hasAttribute("role")?node.getAttribute("role").split(" ").slice(0,1):getImplicitAriaRoles2(node),roles3.reduce(((rolesAcc,role)=>Array.isArray(rolesAcc[role])?{...rolesAcc,[role]:[...rolesAcc[role],node]}:{...rolesAcc,[role]:[node]}),acc)}),{})}function prettyRoles(dom,_ref6){let{hidden:hidden,includeDescription:includeDescription}=_ref6,roles3=getRoles(dom,{hidden:hidden});return Object.entries(roles3).filter((_ref7=>{let[role]=_ref7;return"generic"!==role})).map((_ref8=>{let[role,elements]=_ref8,delimiterBar="-".repeat(50);return role+":\n\n"+elements.map((el=>{let nameString='Name "'+computeAccessibleName2(el,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})+'":\n',domString=prettyDOM(el.cloneNode(!1));if(includeDescription){return""+nameString+('Description "'+computeAccessibleDescription2(el,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})+'":\n')+domString}return""+nameString+domString})).join("\n\n")+"\n\n"+delimiterBar})).join("\n")}var logRoles=function(dom,_temp2){let{hidden:hidden=!1}=void 0===_temp2?{}:_temp2;return console.log(prettyRoles(dom,{hidden:hidden}))};function checkBooleanAttribute(element,attribute){let attributeValue=element.getAttribute(attribute);return"true"===attributeValue||"false"!==attributeValue&&void 0}var normalize2=getDefaultNormalizer();function getRegExpMatcher(string){return new RegExp(function escapeRegExp(string){return string.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}(string.toLowerCase()),"i")}function makeSuggestion(queryName,element,content,_ref){let{variant:variant,name:name}=_ref,warning="",queryOptions={},queryArgs=[["Role","TestId"].includes(queryName)?content:getRegExpMatcher(content)];name&&(queryOptions.name=getRegExpMatcher(name)),"Role"===queryName&&isInaccessible(element)&&(queryOptions.hidden=!0,warning="Element is inaccessible. This means that the element and all its children are invisible to screen readers.\n If you are using the aria-hidden prop, make sure this is the right choice for your case.\n "),Object.keys(queryOptions).length>0&&queryArgs.push(queryOptions);let queryMethod=variant+"By"+queryName;return{queryName:queryName,queryMethod:queryMethod,queryArgs:queryArgs,variant:variant,warning:warning,toString(){warning&&console.warn(warning);let[text,options]=queryArgs;return text="string"==typeof text?"'"+text+"'":text,options=options?", { "+Object.entries(options).map((_ref2=>{let[k2,v]=_ref2;return k2+": "+v})).join(", ")+" }":"",queryMethod+"("+text+options+")"}}}function canSuggest(currentMethod,requestedMethod,data){return data&&(!requestedMethod||requestedMethod.toLowerCase()===currentMethod.toLowerCase())}function getSuggestedQuery(element,variant,method){var _element$getAttribute,_getImplicitAriaRoles;if(void 0===variant&&(variant="get"),element.matches(getConfig2().defaultIgnore))return;let role=null!=(_element$getAttribute=element.getAttribute("role"))?_element$getAttribute:null==(_getImplicitAriaRoles=getImplicitAriaRoles2(element))?void 0:_getImplicitAriaRoles[0];if("generic"!==role&&canSuggest("Role",method,role))return makeSuggestion("Role",element,role,{variant:variant,name:computeAccessibleName2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements})});let labelText=getLabels3(document,element).map((label=>label.content)).join(" ");if(canSuggest("LabelText",method,labelText))return makeSuggestion("LabelText",element,labelText,{variant:variant});let placeholderText=element.getAttribute("placeholder");if(canSuggest("PlaceholderText",method,placeholderText))return makeSuggestion("PlaceholderText",element,placeholderText,{variant:variant});let textContent=normalize2(getNodeText(element));if(canSuggest("Text",method,textContent))return makeSuggestion("Text",element,textContent,{variant:variant});if(canSuggest("DisplayValue",method,element.value))return makeSuggestion("DisplayValue",element,normalize2(element.value),{variant:variant});let alt=element.getAttribute("alt");if(canSuggest("AltText",method,alt))return makeSuggestion("AltText",element,alt,{variant:variant});let title=element.getAttribute("title");if(canSuggest("Title",method,title))return makeSuggestion("Title",element,title,{variant:variant});let testId=element.getAttribute(getConfig2().testIdAttribute);return canSuggest("TestId",method,testId)?makeSuggestion("TestId",element,testId,{variant:variant}):void 0}function copyStackTrace(target,source){target.stack=source.stack.replace(source.message,target.message)}function waitFor(callback,_ref){let{container:container=getDocument(),timeout:timeout=getConfig2().asyncUtilTimeout,showOriginalStackTrace:showOriginalStackTrace=getConfig2().showOriginalStackTrace,stackTraceError:stackTraceError,interval:interval=50,onTimeout:onTimeout=error=>(Object.defineProperty(error,"message",{value:getConfig2().getElementError(error.message,container).message}),error),mutationObserverOptions:mutationObserverOptions={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=_ref;if("function"!=typeof callback)throw new TypeError("Received `callback` arg must be a function");return new Promise((async(resolve,reject)=>{let lastError,intervalId,observer,finished=!1,promiseStatus="idle",overallTimeoutTimer=setTimeout((function handleTimeout(){let error;lastError?(error=lastError,!showOriginalStackTrace&&"TestingLibraryElementError"===error.name&©StackTrace(error,stackTraceError)):(error=new Error("Timed out in waitFor."),showOriginalStackTrace||copyStackTrace(error,stackTraceError)),onDone(onTimeout(error),null)}),timeout),usingJestFakeTimers=jestFakeTimersAreEnabled();if(usingJestFakeTimers){let{unstable_advanceTimersWrapper:advanceTimersWrapper}=getConfig2();for(checkCallback();!finished;){if(!jestFakeTimersAreEnabled()){let error=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return showOriginalStackTrace||copyStackTrace(error,stackTraceError),void reject(error)}if(await advanceTimersWrapper((async()=>{jest.advanceTimersByTime(interval)})),finished)break;checkCallback()}}else{try{checkContainerType(container)}catch(e){return void reject(e)}intervalId=setInterval(checkRealTimersCallback,interval);let{MutationObserver:MutationObserver}=getWindowFromNode(container);observer=new MutationObserver(checkRealTimersCallback),observer.observe(container,mutationObserverOptions),checkCallback()}function onDone(error,result){finished=!0,clearTimeout(overallTimeoutTimer),usingJestFakeTimers||(clearInterval(intervalId),observer.disconnect()),error?reject(error):resolve(result)}function checkRealTimersCallback(){if(jestFakeTimersAreEnabled()){let error=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return showOriginalStackTrace||copyStackTrace(error,stackTraceError),reject(error)}return checkCallback()}function checkCallback(){if("pending"!==promiseStatus)try{let result=function runWithExpensiveErrorDiagnosticsDisabled(callback){try{return config2._disableExpensiveErrorDiagnostics=!0,callback()}finally{config2._disableExpensiveErrorDiagnostics=!1}}(callback);"function"==typeof result?.then?(promiseStatus="pending",result.then((resolvedValue=>{promiseStatus="resolved",onDone(null,resolvedValue)}),(rejectedValue=>{promiseStatus="rejected",lastError=rejectedValue}))):onDone(null,result)}catch(error){lastError=error}}}))}function waitForWrapper(callback,options){let stackTraceError=new Error("STACK_TRACE_MESSAGE");return getConfig2().asyncWrapper((()=>waitFor(callback,{stackTraceError:stackTraceError,...options})))}function getElementError(message,container){return getConfig2().getElementError(message,container)}function getMultipleElementsFoundError(message,container){return getElementError(message+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",container)}function queryAllByAttribute(attribute,container,text,_temp){let{exact:exact=!0,collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer}=void 0===_temp?{}:_temp,matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer});return Array.from(container.querySelectorAll("["+attribute+"]")).filter((node=>matcher(node.getAttribute(attribute),node,text,matchNormalizer)))}function queryByAttribute(attribute,container,text,options){let els=queryAllByAttribute(attribute,container,text,options);if(els.length>1)throw getMultipleElementsFoundError("Found multiple elements by ["+attribute+"="+text+"]",container);return els[0]||null}function makeSingleQuery(allQuery,getMultipleError2){return function(container){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];let els=allQuery(container,...args);if(els.length>1){let elementStrings=els.map((element=>getElementError(null,element).message)).join("\n\n");throw getMultipleElementsFoundError(getMultipleError2(container,...args)+"\n\nHere are the matching elements:\n\n"+elementStrings,container)}return els[0]||null}}function getSuggestionError(suggestion,container){return getConfig2().getElementError("A better query is available, try this:\n"+suggestion.toString()+"\n",container)}function makeGetAllQuery(allQuery,getMissingError2){return function(container){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];let els=allQuery(container,...args);if(!els.length)throw getConfig2().getElementError(getMissingError2(container,...args),container);return els}}function makeFindQuery(getter){return(container,text,options,waitForOptions)=>waitForWrapper((()=>getter(container,text,options)),{container:container,...waitForOptions})}var wrapSingleQueryWithSuggestion=(query,queryAllByName,variant)=>function(container){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];let element=query(container,...args),[{suggest:suggest=getConfig2().throwSuggestions}={}]=args.slice(-1);if(element&&suggest){let suggestion=getSuggestedQuery(element,variant);if(suggestion&&!queryAllByName.endsWith(suggestion.queryName))throw getSuggestionError(suggestion.toString(),container)}return element},wrapAllByQueryWithSuggestion=(query,queryAllByName,variant)=>function(container){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)args[_key4-1]=arguments[_key4];let els=query(container,...args),[{suggest:suggest=getConfig2().throwSuggestions}={}]=args.slice(-1);if(els.length&&suggest){let uniqueSuggestionMessages=[...new Set(els.map((element=>{var _getSuggestedQuery;return null==(_getSuggestedQuery=getSuggestedQuery(element,variant))?void 0:_getSuggestedQuery.toString()})))];if(1===uniqueSuggestionMessages.length&&!queryAllByName.endsWith(getSuggestedQuery(els[0],variant).queryName))throw getSuggestionError(uniqueSuggestionMessages[0],container)}return els};function buildQueries(queryAllBy,getMultipleError2,getMissingError2){let queryBy=wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllBy,getMultipleError2),queryAllBy.name,"query"),getAllBy=makeGetAllQuery(queryAllBy,getMissingError2),getBy=makeSingleQuery(getAllBy,getMultipleError2),getByWithSuggestions=wrapSingleQueryWithSuggestion(getBy,queryAllBy.name,"get");return[queryBy,wrapAllByQueryWithSuggestion(getAllBy,queryAllBy.name.replace("query","get"),"getAll"),getByWithSuggestions,makeFindQuery(wrapAllByQueryWithSuggestion(getAllBy,queryAllBy.name,"findAll")),makeFindQuery(wrapSingleQueryWithSuggestion(getBy,queryAllBy.name,"find"))]}var queryHelpers=Object.freeze({__proto__:null,getElementError:getElementError,wrapAllByQueryWithSuggestion:wrapAllByQueryWithSuggestion,wrapSingleQueryWithSuggestion:wrapSingleQueryWithSuggestion,getMultipleElementsFoundError:getMultipleElementsFoundError,queryAllByAttribute:queryAllByAttribute,queryByAttribute:queryByAttribute,makeSingleQuery:makeSingleQuery,makeGetAllQuery:makeGetAllQuery,makeFindQuery:makeFindQuery,buildQueries:buildQueries});var queryAllLabelsByText=function(container,text,_temp){let{exact:exact=!0,trim:trim,collapseWhitespace:collapseWhitespace,normalizer:normalizer}=void 0===_temp?{}:_temp,matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer});return function queryAllLabels(container){return Array.from(container.querySelectorAll("label,input")).map((node=>({node:node,textToMatch:getLabelContent(node)}))).filter((_ref=>{let{textToMatch:textToMatch}=_ref;return null!==textToMatch}))}(container).filter((_ref2=>{let{node:node,textToMatch:textToMatch}=_ref2;return matcher(textToMatch,node,text,matchNormalizer)})).map((_ref3=>{let{node:node}=_ref3;return node}))},queryAllByLabelText=function(container,text,_temp2){let{selector:selector="*",exact:exact=!0,collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer}=void 0===_temp2?{}:_temp2;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer}),matchingLabelledElements=Array.from(container.querySelectorAll("*")).filter((element=>getRealLabels(element).length||element.hasAttribute("aria-labelledby"))).reduce(((labelledElements,labelledElement)=>{let labelList=getLabels3(container,labelledElement,{selector:selector});labelList.filter((label=>!!label.formControl)).forEach((label=>{matcher(label.content,label.formControl,text,matchNormalizer)&&label.formControl&&labelledElements.push(label.formControl)}));let labelsValue=labelList.filter((label=>!!label.content)).map((label=>label.content));return matcher(labelsValue.join(" "),labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement),labelsValue.length>1&&labelsValue.forEach(((labelValue,index)=>{matcher(labelValue,labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement);let labelsFiltered=[...labelsValue];labelsFiltered.splice(index,1),labelsFiltered.length>1&&matcher(labelsFiltered.join(" "),labelledElement,text,matchNormalizer)&&labelledElements.push(labelledElement)})),labelledElements}),[]).concat(queryAllByAttribute("aria-label",container,text,{exact:exact,normalizer:matchNormalizer}));return Array.from(new Set(matchingLabelledElements)).filter((element=>element.matches(selector)))},getAllByLabelText=function(container,text){for(var _len=arguments.length,rest=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)rest[_key-2]=arguments[_key];let els=queryAllByLabelText(container,text,...rest);if(!els.length){let labels=queryAllLabelsByText(container,text,...rest);if(labels.length){let tagNames=labels.map((label=>function getTagNameOfElementAssociatedWithLabelViaFor(container,label){let htmlFor=label.getAttribute("for");if(!htmlFor)return null;let element=container.querySelector('[id="'+htmlFor+'"]');return element?element.tagName.toLowerCase():null}(container,label))).filter((tagName=>!!tagName));throw tagNames.length?getConfig2().getElementError(tagNames.map((tagName=>"Found a label with the text of: "+text+", however the element associated with this label (<"+tagName+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+tagName+" />, you can use aria-label or aria-labelledby instead.")).join("\n\n"),container):getConfig2().getElementError("Found a label with the text of: "+text+', however no form control was found associated to that label. Make sure you\'re using the "for" attribute or "aria-labelledby" attribute correctly.',container)}throw getConfig2().getElementError("Unable to find a label with the text of: "+text,container)}return els};var getMultipleError$7=(c,text)=>"Found multiple elements with the text of: "+text,queryByLabelText=wrapSingleQueryWithSuggestion(makeSingleQuery(queryAllByLabelText,getMultipleError$7),queryAllByLabelText.name,"query"),getByLabelText=makeSingleQuery(getAllByLabelText,getMultipleError$7),findAllByLabelText=makeFindQuery(wrapAllByQueryWithSuggestion(getAllByLabelText,getAllByLabelText.name,"findAll")),findByLabelText=makeFindQuery(wrapSingleQueryWithSuggestion(getByLabelText,getAllByLabelText.name,"find")),getAllByLabelTextWithSuggestions=wrapAllByQueryWithSuggestion(getAllByLabelText,getAllByLabelText.name,"getAll"),getByLabelTextWithSuggestions=wrapSingleQueryWithSuggestion(getByLabelText,getAllByLabelText.name,"get"),queryAllByLabelTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByLabelText,queryAllByLabelText.name,"queryAll"),queryAllByPlaceholderText=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return checkContainerType(args[0]),queryAllByAttribute("placeholder",...args)},queryAllByPlaceholderTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByPlaceholderText,queryAllByPlaceholderText.name,"queryAll"),[queryByPlaceholderText,getAllByPlaceholderText,getByPlaceholderText,findAllByPlaceholderText,findByPlaceholderText]=buildQueries(queryAllByPlaceholderText,((c,text)=>"Found multiple elements with the placeholder text of: "+text),((c,text)=>"Unable to find an element with the placeholder text of: "+text)),queryAllByText=function(container,text,_temp){let{selector:selector="*",exact:exact=!0,collapseWhitespace:collapseWhitespace,trim:trim,ignore:ignore=getConfig2().defaultIgnore,normalizer:normalizer}=void 0===_temp?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer}),baseArray=[];return"function"==typeof container.matches&&container.matches(selector)&&(baseArray=[container]),[...baseArray,...Array.from(container.querySelectorAll(selector))].filter((node=>!ignore||!node.matches(ignore))).filter((node=>matcher(getNodeText(node),node,text,matchNormalizer)))},queryAllByTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByText,queryAllByText.name,"queryAll"),[queryByText,getAllByText,getByText,findAllByText,findByText]=buildQueries(queryAllByText,((c,text)=>"Found multiple elements with the text: "+text),(function(c,text,options){void 0===options&&(options={});let{collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer,selector:selector}=options,normalizedText=makeNormalizer({collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer})(text.toString());return"Unable to find an element with the text: "+(normalizedText!==text.toString()?normalizedText+" (normalized from '"+text+"')":text)+("*"!==(selector??"*")?", which matches selector '"+selector+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."})),queryAllByDisplayValue=function(container,value,_temp){let{exact:exact=!0,collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer}=void 0===_temp?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer});return Array.from(container.querySelectorAll("input,textarea,select")).filter((node=>"SELECT"===node.tagName?Array.from(node.options).filter((option=>option.selected)).some((optionNode=>matcher(getNodeText(optionNode),optionNode,value,matchNormalizer))):matcher(node.value,node,value,matchNormalizer)))},queryAllByDisplayValueWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByDisplayValue,queryAllByDisplayValue.name,"queryAll"),[queryByDisplayValue,getAllByDisplayValue,getByDisplayValue,findAllByDisplayValue,findByDisplayValue]=buildQueries(queryAllByDisplayValue,((c,value)=>"Found multiple elements with the display value: "+value+"."),((c,value)=>"Unable to find an element with the display value: "+value+".")),VALID_TAG_REGEXP=/^(img|input|area|.+-.+)$/i,queryAllByAltText=function(container,alt,options){return void 0===options&&(options={}),checkContainerType(container),queryAllByAttribute("alt",container,alt,options).filter((node=>VALID_TAG_REGEXP.test(node.tagName)))},queryAllByAltTextWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByAltText,queryAllByAltText.name,"queryAll"),[queryByAltText,getAllByAltText,getByAltText,findAllByAltText,findByAltText]=buildQueries(queryAllByAltText,((c,alt)=>"Found multiple elements with the alt text: "+alt),((c,alt)=>"Unable to find an element with the alt text: "+alt)),queryAllByTitle=function(container,text,_temp){let{exact:exact=!0,collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer}=void 0===_temp?{}:_temp;checkContainerType(container);let matcher=exact?matches2:fuzzyMatches,matchNormalizer=makeNormalizer({collapseWhitespace:collapseWhitespace,trim:trim,normalizer:normalizer});return Array.from(container.querySelectorAll("[title], svg > title")).filter((node=>matcher(node.getAttribute("title"),node,text,matchNormalizer)||(node=>{var _node$parentElement;return"title"===node.tagName.toLowerCase()&&"svg"===(null==(_node$parentElement=node.parentElement)?void 0:_node$parentElement.tagName.toLowerCase())})(node)&&matcher(getNodeText(node),node,text,matchNormalizer)))},queryAllByTitleWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByTitle,queryAllByTitle.name,"queryAll"),[queryByTitle,getAllByTitle,getByTitle,findAllByTitle,findByTitle]=buildQueries(queryAllByTitle,((c,title)=>"Found multiple elements with the title: "+title+"."),((c,title)=>"Unable to find an element with the title: "+title+".")),queryAllByRole=function(container,role,_temp){let{hidden:hidden=getConfig2().defaultHidden,name:name,description:description,queryFallbacks:queryFallbacks=!1,selected:selected,busy:busy,checked:checked,pressed:pressed,current:current,level:level,expanded:expanded,value:{now:valueNow,min:valueMin,max:valueMax,text:valueText}={}}=void 0===_temp?{}:_temp;var _allRoles$get,_allRoles$get2,_allRoles$get3,_allRoles$get4,_allRoles$get5,_allRoles$get6,_allRoles$get7,_allRoles$get8,_allRoles$get9,_allRoles$get10;if((checkContainerType(container),void 0!==selected)&&void 0===(null==(_allRoles$get=import_aria_query3.roles.get(role))?void 0:_allRoles$get.props["aria-selected"]))throw new Error('"aria-selected" is not supported on role "'+role+'".');if(void 0!==busy&&void 0===(null==(_allRoles$get2=import_aria_query3.roles.get(role))?void 0:_allRoles$get2.props["aria-busy"]))throw new Error('"aria-busy" is not supported on role "'+role+'".');if(void 0!==checked&&void 0===(null==(_allRoles$get3=import_aria_query3.roles.get(role))?void 0:_allRoles$get3.props["aria-checked"]))throw new Error('"aria-checked" is not supported on role "'+role+'".');if(void 0!==pressed&&void 0===(null==(_allRoles$get4=import_aria_query3.roles.get(role))?void 0:_allRoles$get4.props["aria-pressed"]))throw new Error('"aria-pressed" is not supported on role "'+role+'".');if(void 0!==current&&void 0===(null==(_allRoles$get5=import_aria_query3.roles.get(role))?void 0:_allRoles$get5.props["aria-current"]))throw new Error('"aria-current" is not supported on role "'+role+'".');if(void 0!==level&&"heading"!==role)throw new Error('Role "'+role+'" cannot have "level" property.');if(void 0!==valueNow&&void 0===(null==(_allRoles$get6=import_aria_query3.roles.get(role))?void 0:_allRoles$get6.props["aria-valuenow"]))throw new Error('"aria-valuenow" is not supported on role "'+role+'".');if(void 0!==valueMax&&void 0===(null==(_allRoles$get7=import_aria_query3.roles.get(role))?void 0:_allRoles$get7.props["aria-valuemax"]))throw new Error('"aria-valuemax" is not supported on role "'+role+'".');if(void 0!==valueMin&&void 0===(null==(_allRoles$get8=import_aria_query3.roles.get(role))?void 0:_allRoles$get8.props["aria-valuemin"]))throw new Error('"aria-valuemin" is not supported on role "'+role+'".');if(void 0!==valueText&&void 0===(null==(_allRoles$get9=import_aria_query3.roles.get(role))?void 0:_allRoles$get9.props["aria-valuetext"]))throw new Error('"aria-valuetext" is not supported on role "'+role+'".');if(void 0!==expanded&&void 0===(null==(_allRoles$get10=import_aria_query3.roles.get(role))?void 0:_allRoles$get10.props["aria-expanded"]))throw new Error('"aria-expanded" is not supported on role "'+role+'".');let subtreeIsInaccessibleCache=new WeakMap;function cachedIsSubtreeInaccessible(element){return subtreeIsInaccessibleCache.has(element)||subtreeIsInaccessibleCache.set(element,isSubtreeInaccessible(element)),subtreeIsInaccessibleCache.get(element)}return Array.from(container.querySelectorAll(function makeRoleSelector(role){var _roleElements$get;let explicitRoleSelector='*[role~="'+role+'"]',roleRelations=null!=(_roleElements$get=import_aria_query3.roleElements.get(role))?_roleElements$get:new Set,implicitRoleSelectors=new Set(Array.from(roleRelations).map((_ref=>{let{name:name}=_ref;return name})));return[explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(",")}(role))).filter((node=>{if(node.hasAttribute("role")){let roleValue=node.getAttribute("role");if(queryFallbacks)return roleValue.split(" ").filter(Boolean).some((roleAttributeToken=>roleAttributeToken===role));let[firstRoleAttributeToken]=roleValue.split(" ");return firstRoleAttributeToken===role}return getImplicitAriaRoles2(node).some((implicitRole=>implicitRole===role))})).filter((element=>{if(void 0!==selected)return selected===function computeAriaSelected(element){return"OPTION"===element.tagName?element.selected:checkBooleanAttribute(element,"aria-selected")}(element);if(void 0!==busy)return busy===function computeAriaBusy(element){return"true"===element.getAttribute("aria-busy")}(element);if(void 0!==checked)return checked===function computeAriaChecked(element){if(!("indeterminate"in element)||!element.indeterminate)return"checked"in element?element.checked:checkBooleanAttribute(element,"aria-checked")}(element);if(void 0!==pressed)return pressed===function computeAriaPressed(element){return checkBooleanAttribute(element,"aria-pressed")}(element);if(void 0!==current)return current===function computeAriaCurrent(element){var _ref9,_checkBooleanAttribut;return null!=(_ref9=null!=(_checkBooleanAttribut=checkBooleanAttribute(element,"aria-current"))?_checkBooleanAttribut:element.getAttribute("aria-current"))&&_ref9}(element);if(void 0!==expanded)return expanded===function computeAriaExpanded(element){return checkBooleanAttribute(element,"aria-expanded")}(element);if(void 0!==level)return level===function computeHeadingLevel(element){return element.getAttribute("aria-level")&&Number(element.getAttribute("aria-level"))||{H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[element.tagName]}(element);if(void 0!==valueNow||void 0!==valueMax||void 0!==valueMin||void 0!==valueText){let valueMatches=!0;var _computeAriaValueText;if(void 0!==valueNow&&valueMatches&&(valueMatches=valueNow===function computeAriaValueNow(element){let valueNow=element.getAttribute("aria-valuenow");return null===valueNow?void 0:+valueNow}(element)),void 0!==valueMax&&valueMatches&&(valueMatches=valueMax===function computeAriaValueMax(element){let valueMax=element.getAttribute("aria-valuemax");return null===valueMax?void 0:+valueMax}(element)),void 0!==valueMin&&valueMatches&&(valueMatches=valueMin===function computeAriaValueMin(element){let valueMin=element.getAttribute("aria-valuemin");return null===valueMin?void 0:+valueMin}(element)),void 0!==valueText)valueMatches&&(valueMatches=matches2(null!=(_computeAriaValueText=function computeAriaValueText(element){let valueText=element.getAttribute("aria-valuetext");return null===valueText?void 0:valueText}(element))?_computeAriaValueText:null,element,valueText,(text=>text)));return valueMatches}return!0})).filter((element=>void 0===name||matches2(computeAccessibleName2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements}),element,name,(text=>text)))).filter((element=>void 0===description||matches2(computeAccessibleDescription2(element,{computedStyleSupportsPseudoElements:getConfig2().computedStyleSupportsPseudoElements}),element,description,(text=>text)))).filter((element=>!1!==hidden||!1===isInaccessible(element,{isSubtreeInaccessible:cachedIsSubtreeInaccessible})))};var getNameHint=name=>{let nameHint="";return nameHint=void 0===name?"":"string"==typeof name?' and name "'+name+'"':" and name `"+name+"`",nameHint},queryAllByRoleWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByRole,queryAllByRole.name,"queryAll"),[queryByRole,getAllByRole,getByRole,findAllByRole,findByRole]=buildQueries(queryAllByRole,(function(c,role,_temp2){let{name:name}=void 0===_temp2?{}:_temp2;return'Found multiple elements with the role "'+role+'"'+getNameHint(name)}),(function(container,role,_temp3){let{hidden:hidden=getConfig2().defaultHidden,name:name,description:description}=void 0===_temp3?{}:_temp3;if(getConfig2()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+role+'"'+getNameHint(name);let roleMessage,roles3="";Array.from(container.children).forEach((childElement=>{roles3+=prettyRoles(childElement,{hidden:hidden,includeDescription:void 0!==description})})),roleMessage=0===roles3.length?!1===hidden?"There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":"There are no available roles.":("\nHere are the "+(!1===hidden?"accessible":"available")+" roles:\n\n "+roles3.replace(/\n/g,"\n ").replace(/\n\s\s\n/g,"\n\n")+"\n").trim();let nameHint="";nameHint=void 0===name?"":"string"==typeof name?' and name "'+name+'"':" and name `"+name+"`";let descriptionHint="";return descriptionHint=void 0===description?"":"string"==typeof description?' and description "'+description+'"':" and description `"+description+"`",("\nUnable to find an "+(!1===hidden?"accessible ":"")+'element with the role "'+role+'"'+nameHint+descriptionHint+"\n\n"+roleMessage).trim()})),getTestIdAttribute=()=>getConfig2().testIdAttribute,queryAllByTestId=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return checkContainerType(args[0]),queryAllByAttribute(getTestIdAttribute(),...args)},queryAllByTestIdWithSuggestions=wrapAllByQueryWithSuggestion(queryAllByTestId,queryAllByTestId.name,"queryAll"),[queryByTestId,getAllByTestId,getByTestId,findAllByTestId,findByTestId]=buildQueries(queryAllByTestId,((c,id)=>"Found multiple elements by: ["+getTestIdAttribute()+'="'+id+'"]'),((c,id)=>"Unable to find an element by: ["+getTestIdAttribute()+'="'+id+'"]')),queries=Object.freeze({__proto__:null,queryAllByLabelText:queryAllByLabelTextWithSuggestions,queryByLabelText:queryByLabelText,getAllByLabelText:getAllByLabelTextWithSuggestions,getByLabelText:getByLabelTextWithSuggestions,findAllByLabelText:findAllByLabelText,findByLabelText:findByLabelText,queryByPlaceholderText:queryByPlaceholderText,queryAllByPlaceholderText:queryAllByPlaceholderTextWithSuggestions,getByPlaceholderText:getByPlaceholderText,getAllByPlaceholderText:getAllByPlaceholderText,findAllByPlaceholderText:findAllByPlaceholderText,findByPlaceholderText:findByPlaceholderText,queryByText:queryByText,queryAllByText:queryAllByTextWithSuggestions,getByText:getByText,getAllByText:getAllByText,findAllByText:findAllByText,findByText:findByText,queryByDisplayValue:queryByDisplayValue,queryAllByDisplayValue:queryAllByDisplayValueWithSuggestions,getByDisplayValue:getByDisplayValue,getAllByDisplayValue:getAllByDisplayValue,findAllByDisplayValue:findAllByDisplayValue,findByDisplayValue:findByDisplayValue,queryByAltText:queryByAltText,queryAllByAltText:queryAllByAltTextWithSuggestions,getByAltText:getByAltText,getAllByAltText:getAllByAltText,findAllByAltText:findAllByAltText,findByAltText:findByAltText,queryByTitle:queryByTitle,queryAllByTitle:queryAllByTitleWithSuggestions,getByTitle:getByTitle,getAllByTitle:getAllByTitle,findAllByTitle:findAllByTitle,findByTitle:findByTitle,queryByRole:queryByRole,queryAllByRole:queryAllByRoleWithSuggestions,getAllByRole:getAllByRole,getByRole:getByRole,findAllByRole:findAllByRole,findByRole:findByRole,queryByTestId:queryByTestId,queryAllByTestId:queryAllByTestIdWithSuggestions,getByTestId:getByTestId,getAllByTestId:getAllByTestId,findAllByTestId:findAllByTestId,findByTestId:findByTestId});function getQueriesForElement(element,queries$1,initialValue2){return void 0===queries$1&&(queries$1=queries),void 0===initialValue2&&(initialValue2={}),Object.keys(queries$1).reduce(((helpers,key)=>{let fn3=queries$1[key];return helpers[key]=fn3.bind(null,element),helpers}),initialValue2)}var isRemoved=result=>!result||Array.isArray(result)&&!result.length;function initialCheck(elements){if(isRemoved(elements))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function waitForElementToBeRemoved(callback,options){let timeoutError=new Error("Timed out in waitForElementToBeRemoved.");if("function"!=typeof callback){initialCheck(callback);let getRemainingElements=(Array.isArray(callback)?callback:[callback]).map((element=>{let parent=element.parentElement;if(null===parent)return()=>null;for(;parent.parentElement;)parent=parent.parentElement;return()=>parent.contains(element)?element:null}));callback=()=>getRemainingElements.map((c=>c())).filter(Boolean)}return initialCheck(callback()),waitForWrapper((()=>{let result;try{result=callback()}catch(error){if("TestingLibraryElementError"===error.name)return;throw error}if(!isRemoved(result))throw timeoutError}),options)}var eventMap={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},eventAliasMap={doubleClick:"dblClick"};function fireEvent(element,event){return getConfig2().eventWrapper((()=>{if(!event)throw new Error("Unable to fire an event - please provide an event object.");if(!element)throw new Error('Unable to fire a "'+event.type+'" event - please provide a DOM element.');return element.dispatchEvent(event)}))}function createEvent(eventName,node,init,_temp){let{EventType:EventType="Event",defaultInit:defaultInit={}}=void 0===_temp?{}:_temp;if(!node)throw new Error('Unable to fire a "'+eventName+'" event - please provide a DOM element.');let eventInit={...defaultInit,...init},{target:{value:value,files:files,...targetProperties}={}}=eventInit;void 0!==value&&function setNativeValue(element,value){let{set:valueSetter}=Object.getOwnPropertyDescriptor(element,"value")||{},prototype=Object.getPrototypeOf(element),{set:prototypeValueSetter}=Object.getOwnPropertyDescriptor(prototype,"value")||{};if(prototypeValueSetter&&valueSetter!==prototypeValueSetter)prototypeValueSetter.call(element,value);else{if(!valueSetter)throw new Error("The given element does not have a value setter");valueSetter.call(element,value)}}(node,value),void 0!==files&&Object.defineProperty(node,"files",{configurable:!0,enumerable:!0,writable:!0,value:files}),Object.assign(node,targetProperties);let event,window2=getWindowFromNode(node),EventConstructor=window2[EventType]||window2.Event;if("function"==typeof EventConstructor)event=new EventConstructor(eventName,eventInit);else{event=window2.document.createEvent(EventType);let{bubbles:bubbles,cancelable:cancelable,detail:detail,...otherInit}=eventInit;event.initEvent(eventName,bubbles,cancelable,detail),Object.keys(otherInit).forEach((eventKey=>{event[eventKey]=otherInit[eventKey]}))}return["dataTransfer","clipboardData"].forEach((dataTransferKey=>{let dataTransferValue=eventInit[dataTransferKey];"object"==typeof dataTransferValue&&("function"==typeof window2.DataTransfer?Object.defineProperty(event,dataTransferKey,{value:Object.getOwnPropertyNames(dataTransferValue).reduce(((acc,propName)=>(Object.defineProperty(acc,propName,{value:dataTransferValue[propName]}),acc)),new window2.DataTransfer)}):Object.defineProperty(event,dataTransferKey,{value:dataTransferValue}))})),event}function getPlaygroundUrl(markup){return"https://testing-playground.com/#markup="+function encode(value){return import_lz_string.default.compressToEncodedURIComponent(function unindent(string){return string.replace(/[ \t]*[\n][ \t]*/g,"\n")}(value))}(markup)}Object.keys(eventMap).forEach((key=>{let{EventType:EventType,defaultInit:defaultInit}=eventMap[key],eventName=key.toLowerCase();createEvent[key]=(node,init)=>createEvent(eventName,node,init,{EventType:EventType,defaultInit:defaultInit}),fireEvent[key]=(node,init)=>fireEvent(node,createEvent[key](node,init))})),Object.keys(eventAliasMap).forEach((aliasKey=>{let key=eventAliasMap[aliasKey];fireEvent[aliasKey]=function(){return fireEvent[key](...arguments)}}));var clickableInputTypes,clickableInputTypes2,initialValue={debug:(element,maxLength,options)=>Array.isArray(element)?element.forEach((el=>logDOM(el,maxLength,options))):logDOM(element,maxLength,options),logTestingPlaygroundURL:function(element){if(void 0===element&&(element=getDocument().body),!element||!("innerHTML"in element))return void console.log("The element you're providing isn't a valid DOM element.");if(!element.innerHTML)return void console.log("The provided element doesn't have any children.");let playgroundUrl=getPlaygroundUrl(element.innerHTML);return console.log("Open this URL in your browser\n\n"+playgroundUrl),playgroundUrl}},screen=typeof document<"u"&&document.body?getQueriesForElement(document.body,queries,initialValue):Object.keys(queries).reduce(((helpers,key)=>(helpers[key]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},helpers)),initialValue);function isElementType(element,tag,props){return!(element.namespaceURI&&"http://www.w3.org/1999/xhtml"!==element.namespaceURI||(tag=Array.isArray(tag)?tag:[tag],!tag.includes(element.tagName.toLowerCase())))&&(!props||Object.entries(props).every((([k2,v])=>element[k2]===v)))}function isClickableInput(element){return isElementType(element,"button")||isElementType(element,"input")&&element.type in clickableInputTypes}function getWindow(node){var _node_ownerDocument;if(function isDocument(node){return 9===node.nodeType}(node)&&node.defaultView)return node.defaultView;if(null!==(_node_ownerDocument=node.ownerDocument)&&void 0!==_node_ownerDocument&&_node_ownerDocument.defaultView)return node.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${function describe(val){return"function"==typeof val?`function ${val.name}`:null===val?"null":String(val)}(node)}`)}function readBlobText(blob,FileReader){return new Promise(((res,rej)=>{let fr=new FileReader;fr.onerror=rej,fr.onabort=rej,fr.onload=()=>{res(String(fr.result))},fr.readAsText(blob)}))}function createFileList(window2,files){let list={...files,length:files.length,item:index=>list[index],[Symbol.iterator]:function*(){for(let i=0;iexact?item.type===(isGroup?group:type5):isGroup?item.type.startsWith(`${group}/`):item.type===group}function createDataTransfer(window2,files=[]){let dt=typeof window2.DataTransfer>"u"?function createDataTransferStub(window2){return new class{getData(format4){var _this_items_find;let match=null!==(_this_items_find=this.items.find(getTypeMatcher(format4,!0)))&&void 0!==_this_items_find?_this_items_find:this.items.find(getTypeMatcher(format4,!1)),text="";return match?.getAsString((t=>{text=t})),text}setData(format4,data){let matchIndex=this.items.findIndex(getTypeMatcher(format4,!0)),item=new DataTransferItemStub(data,format4);matchIndex>=0?this.items.splice(matchIndex,1,item):this.items.push(item)}clearData(format4){if(format4){let matchIndex=this.items.findIndex(getTypeMatcher(format4,!0));matchIndex>=0&&this.items.remove(matchIndex)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach((i=>t.push(i.type))),Object.freeze(t),t}setDragImage(){}constructor(){_define_property(this,"dropEffect","none"),_define_property(this,"effectAllowed","uninitialized"),_define_property(this,"items",new DataTransferItemListStub),_define_property(this,"files",createFileList(window2,[]))}}}(window2):new window2.DataTransfer;return Object.defineProperty(dt,"files",{get:()=>createFileList(window2,files)}),dt}function getBlobFromDataTransferItem(window2,item){if("file"===item.kind)return item.getAsFile();let data="";return item.getAsString((s=>{data=s})),new window2.Blob([data],{type:item.type})}function _define_property2(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function createClipboardItem(window2,...blobs){let dataMap=Object.fromEntries(blobs.map((b=>["string"==typeof b?"text/plain":b.type,Promise.resolve(b)])));return typeof window2.ClipboardItem<"u"?new window2.ClipboardItem(dataMap):new class{get types(){return Array.from(Object.keys(this.data))}async getType(type5){let value=await this.data[type5];if(!value)throw new Error(`${type5} is not one of the available MIME types on this item.`);return value instanceof window2.Blob?value:new window2.Blob([value],{type:type5})}constructor(d2){_define_property2(this,"data",void 0),this.data=d2}}(dataMap)}var ClipboardStubControl=Symbol("Manage ClipboardSub");function createClipboardStub(window2,control){return Object.assign(new class extends window2.EventTarget{async read(){return Array.from(this.items)}async readText(){let text="";for(let item of this.items){let type5=item.types.includes("text/plain")?"text/plain":item.types.find((t=>t.startsWith("text/")));type5&&(text+=await item.getType(type5).then((b=>readBlobText(b,window2.FileReader))))}return text}async write(data){this.items=data}async writeText(text){this.items=[createClipboardItem(window2,text)]}constructor(...args){super(...args),_define_property2(this,"items",[])}},{[ClipboardStubControl]:control})}function isClipboardStub(clipboard){return!!clipboard?.[ClipboardStubControl]}async function writeDataTransferToClipboard(document2,clipboardData){let window2=getWindow(document2),clipboard=window2.navigator.clipboard,items=[];for(let i=0;i!0),(()=>!1)))throw new Error("The Clipboard API is unavailable.")}var editableInputTypes,editableInputTypes2,maxLengthSupportedTypes,maxLengthSupportedTypes2,g2=globalThis;function isContentEditable(element){return element.hasAttribute("contenteditable")&&("true"==element.getAttribute("contenteditable")||""==element.getAttribute("contenteditable"))}function getContentEditable(node){let element=function getElement(node){return 1===node.nodeType?node:node.parentElement}(node);return element&&(element.closest('[contenteditable=""]')||element.closest('[contenteditable="true"]'))}function isEditable(element){return isEditableInputOrTextArea(element)&&!element.readOnly||isContentEditable(element)}function isEditableInputOrTextArea(element){return isElementType(element,"textarea")||isElementType(element,"input")&&element.type in editableInputTypes}"function"==typeof g2.afterEach&&g2.afterEach((()=>function resetClipboardStubOnView(window2){isClipboardStub(window2.navigator.clipboard)&&window2.navigator.clipboard[ClipboardStubControl].resetClipboardStub()}(globalThis.window))),"function"==typeof g2.afterAll&&g2.afterAll((()=>function detachClipboardStubFromView(window2){isClipboardStub(window2.navigator.clipboard)&&window2.navigator.clipboard[ClipboardStubControl].detachClipboardStub()}(globalThis.window))),(editableInputTypes2=editableInputTypes||(editableInputTypes={})).text="text",editableInputTypes2.date="date",editableInputTypes2["datetime-local"]="datetime-local",editableInputTypes2.email="email",editableInputTypes2.month="month",editableInputTypes2.number="number",editableInputTypes2.password="password",editableInputTypes2.search="search",editableInputTypes2.tel="tel",editableInputTypes2.time="time",editableInputTypes2.url="url",editableInputTypes2.week="week",(maxLengthSupportedTypes2=maxLengthSupportedTypes||(maxLengthSupportedTypes={})).email="email",maxLengthSupportedTypes2.password="password",maxLengthSupportedTypes2.search="search",maxLengthSupportedTypes2.telephone="telephone",maxLengthSupportedTypes2.text="text",maxLengthSupportedTypes2.url="url";var bracketDict,bracketDict2,ApiLevel,ApiLevel2,PointerEventsCheckLevel,PointerEventsCheckLevel2,FOCUSABLE_SELECTOR=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function isFocusable(element){return element.matches(FOCUSABLE_SELECTOR)}function readNextDescriptor(text,context){let pos=0,startBracket=text[pos]in bracketDict?text[pos]:"";pos+=startBracket.length;let type5=new RegExp(`^\\${startBracket}{2}`).test(text)?"":startBracket;return{type:type5,...""===type5?readPrintableChar(text,pos,context):readTag(text,pos,type5,context)}}function readPrintableChar(text,pos,context){let descriptor=text[pos];return assertDescriptor(descriptor,text,pos,context),{consumedLength:pos+=descriptor.length,descriptor:descriptor,releasePrevious:!1,releaseSelf:!0,repeat:1}}function readTag(text,pos,startBracket,context){var _text_slice_match,_text_slice_match1;let releasePreviousModifier="/"===text[pos]?"/":"";pos+=releasePreviousModifier.length;let escapedDescriptor="{"===startBracket&&"\\"===text[pos];pos+=Number(escapedDescriptor);let descriptor=escapedDescriptor?text[pos]:null===(_text_slice_match=text.slice(pos).match("{"===startBracket?/^\w+|^[^}>/]/:/^\w+/))||void 0===_text_slice_match?void 0:_text_slice_match[0];var _text_slice_match_;assertDescriptor(descriptor,text,pos,context),pos+=descriptor.length;let repeatModifier=null!==(_text_slice_match_=null===(_text_slice_match1=text.slice(pos).match(/^>\d+/))||void 0===_text_slice_match1?void 0:_text_slice_match1[0])&&void 0!==_text_slice_match_?_text_slice_match_:"",releaseSelfModifier="/"===text[pos+=repeatModifier.length]||!repeatModifier&&">"===text[pos]?text[pos]:"";pos+=releaseSelfModifier.length;let expectedEndBracket=bracketDict[startBracket],endBracket=text[pos]===expectedEndBracket?expectedEndBracket:"";if(!endBracket)throw new Error(getErrorMessage([!repeatModifier&&"repeat modifier",!releaseSelfModifier&&"release modifier",`"${expectedEndBracket}"`].filter(Boolean).join(" or "),text[pos],text,context));return{consumedLength:pos+=endBracket.length,descriptor:descriptor,releasePrevious:!!releasePreviousModifier,repeat:repeatModifier?Math.max(Number(repeatModifier.substr(1)),1):1,releaseSelf:hasReleaseSelf(releaseSelfModifier,repeatModifier)}}function assertDescriptor(descriptor,text,pos,context){if(!descriptor)throw new Error(getErrorMessage("key descriptor",text[pos],text,context))}function hasReleaseSelf(releaseSelfModifier,repeatModifier){return releaseSelfModifier?"/"===releaseSelfModifier:!repeatModifier&&void 0}function getErrorMessage(expected,found,text,context){return`Expected ${expected} but found "${found??""}" in "${text}"\n See ${"pointer"===context?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}\n for more information about how userEvent parses your input.`}function setLevelRef(instance,level){instance.levelRefs[level]={}}function getLevelRef(instance,level){return instance.levelRefs[level]}function isDisabled2(element){for(let el=element;el;el=el.parentElement)if(isElementType(el,["button","input","select","textarea","optgroup","option"])){if(el.hasAttribute("disabled"))return!0}else if(isElementType(el,"fieldset")){var _el_querySelector;if(el.hasAttribute("disabled")&&(null===(_el_querySelector=el.querySelector(":scope > legend"))||void 0===_el_querySelector||!_el_querySelector.contains(element)))return!0}else if(el.tagName.includes("-")&&el.constructor.formAssociated&&el.hasAttribute("disabled"))return!0;return!1}function getActiveElement(document2){let activeElement=document2.activeElement;return activeElement?.shadowRoot?getActiveElement(activeElement.shadowRoot):isDisabled2(activeElement)?document2.ownerDocument?document2.ownerDocument.body:document2.body:activeElement}function getActiveElementOrBody(document2){var _getActiveElement;return null!==(_getActiveElement=getActiveElement(document2))&&void 0!==_getActiveElement?_getActiveElement:document2.body}function hasOwnSelection(node){return isElement3(node)&&isEditableInputOrTextArea(node)}function isElement3(node){return 1===node.nodeType}function wrapEvent(cb,_element){return getConfig2().eventWrapper(cb)}function focusElement(element){let target=function findClosest(element,callback){let el=element;do{if(callback(el))return el;el=el.parentElement}while(el&&el!==element.ownerDocument.body)}(element,isFocusable),activeElement=getActiveElement(element.ownerDocument);(target??element.ownerDocument.body)!==activeElement&&(wrapEvent(target?()=>target.focus():()=>activeElement?.blur()),function updateSelectionOnFocus(element){let selection=element.ownerDocument.getSelection();if(selection?.focusNode&&hasOwnSelection(element)){let contenteditable=getContentEditable(selection.focusNode);if(contenteditable){if(!selection.isCollapsed){var _contenteditable_firstChild;let focusNode=3===(null===(_contenteditable_firstChild=contenteditable.firstChild)||void 0===_contenteditable_firstChild?void 0:_contenteditable_firstChild.nodeType)?contenteditable.firstChild:contenteditable;selection.setBaseAndExtent(focusNode,0,focusNode,0)}}else selection.setBaseAndExtent(element,0,element,0)}}(target??element.ownerDocument.body))}(bracketDict2=bracketDict||(bracketDict={}))["{"]="}",bracketDict2["["]="]",(ApiLevel2=ApiLevel||(ApiLevel={}))[ApiLevel2.Trigger=2]="Trigger",ApiLevel2[ApiLevel2.Call=1]="Call",(PointerEventsCheckLevel2=PointerEventsCheckLevel||(PointerEventsCheckLevel={}))[PointerEventsCheckLevel2.EachTrigger=4]="EachTrigger",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachApiCall=2]="EachApiCall",PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTarget=1]="EachTarget",PointerEventsCheckLevel2[PointerEventsCheckLevel2.Never=0]="Never";var behavior={};behavior.click=(event,target,instance)=>{let context=target.closest("button,input,label,select,textarea"),control=context&&isElementType(context,"label")&&context.control;return control?()=>{isFocusable(control)&&focusElement(control),instance.dispatchEvent(control,function cloneEvent(event){return new event.constructor(event.type,event)}(event))}:isElementType(target,"input",{type:"file"})?()=>{(function blurElement(element){!isFocusable(element)||getActiveElement(element.ownerDocument)!==element||wrapEvent((()=>element.blur()))})(target),target.dispatchEvent(new(getWindow(target).Event)("fileDialog")),focusElement(target)}:void 0};var UIValue=Symbol("Displayed value in UI"),UISelection=Symbol("Displayed selection in UI"),InitialValue=Symbol("Initial value to compare on blur");function getUIValue(element){return void 0===element[UIValue]?element.value:String(element[UIValue])}function setUIValueClean(element){element[UIValue]=void 0}function clearInitialValue(element){element[InitialValue]=void 0}function setUISelection(element,{focusOffset:focusOffsetParam,anchorOffset:anchorOffsetParam=focusOffsetParam},mode="replace"){let valueLength=getUIValue(element).length,sanitizeOffset=o=>Math.max(0,Math.min(valueLength,o)),anchorOffset="replace"===mode||void 0===element[UISelection]?sanitizeOffset(anchorOffsetParam):element[UISelection].anchorOffset,focusOffset=sanitizeOffset(focusOffsetParam),startOffset=Math.min(anchorOffset,focusOffset),endOffset=Math.max(anchorOffset,focusOffset);if(element[UISelection]={anchorOffset:anchorOffset,focusOffset:focusOffset},element.selectionStart===startOffset&&element.selectionEnd===endOffset)return;let startObj=Object.assign(new Number(startOffset),{[UISelection]:!0});try{element.setSelectionRange(startObj,endOffset)}catch{}}function getUISelection(element){var _element_selectionStart,_element_selectionEnd,_element_UISelection;let sel=null!==(_element_UISelection=element[UISelection])&&void 0!==_element_UISelection?_element_UISelection:{anchorOffset:null!==(_element_selectionStart=element.selectionStart)&&void 0!==_element_selectionStart?_element_selectionStart:0,focusOffset:null!==(_element_selectionEnd=element.selectionEnd)&&void 0!==_element_selectionEnd?_element_selectionEnd:0};return{...sel,startOffset:Math.min(sel.anchorOffset,sel.focusOffset),endOffset:Math.max(sel.anchorOffset,sel.focusOffset)}}function setUISelectionClean(element){element[UISelection]=void 0}var parseInt2=globalThis.parseInt;function build2(onlyDigitsValue,index){let hours=onlyDigitsValue.slice(0,index),validHours=Math.min(parseInt2(hours,10),23),minuteCharacters=onlyDigitsValue.slice(index),parsedMinutes=parseInt2(minuteCharacters,10),validMinutes=Math.min(parsedMinutes,59);return`${validHours.toString().padStart(2,"0")}:${validMinutes.toString().padStart(2,"0")}`}function isValidDateOrTimeValue(element,value){let clone2=element.cloneNode();return clone2.value=value,clone2.value===value}function getNextCursorPosition(node,offset,direction,inputType){if(isTextNode(node)&&offset+direction>=0&&offset+direction<=node.nodeValue.length)return{node:node,offset:offset+direction};let nextNode=getNextCharacterContentNode(node,offset,direction);if(nextNode){if(isTextNode(nextNode))return{node:nextNode,offset:direction>0?Math.min(1,nextNode.nodeValue.length):Math.max(nextNode.nodeValue.length-1,0)};if(isElementType(nextNode,"br")){let nextPlusOne=getNextCharacterContentNode(nextNode,void 0,direction);return nextPlusOne?isTextNode(nextPlusOne)?{node:nextPlusOne,offset:direction>0?0:nextPlusOne.nodeValue.length}:direction<0&&isElementType(nextPlusOne,"br")?{node:nextNode.parentNode,offset:getOffset(nextNode)}:{node:nextPlusOne.parentNode,offset:getOffset(nextPlusOne)+(direction>0?0:1)}:direction<0&&"deleteContentBackward"===inputType?{node:nextNode.parentNode,offset:getOffset(nextNode)}:void 0}return{node:nextNode.parentNode,offset:getOffset(nextNode)+(direction>0?1:0)}}}function getNextCharacterContentNode(node,offset,direction){let nextOffset=Number(offset)+(direction<0?-1:0);return void 0!==offset&&isElement4(node)&&nextOffset>=0&&nextOffsetk2.startsWith("__react")))&&17===getWindow(element).REACT_VERSION})(element)&&(element[TrackChanges]={previousValue:String(element.value),tracked:[]})}function commitValueAfterInput(element,cursorOffset){var _changes_tracked;let changes=element[TrackChanges];if(element[TrackChanges]=void 0,null==changes||null===(_changes_tracked=changes.tracked)||void 0===_changes_tracked||!_changes_tracked.length)return;let isJustReactStateUpdate=2===changes.tracked.length&&changes.tracked[0]===changes.previousValue&&changes.tracked[1]===element.value;isJustReactStateUpdate||setUIValueClean(element),function hasUISelection(element){return!!element[UISelection]}(element)&&setUISelection(element,{focusOffset:isJustReactStateUpdate?cursorOffset:element.value.length})}function getTargetTypeAndSelection(node){let element=function getElement2(node){return 1===node.nodeType?node:node.parentElement}(node);if(element&&hasOwnSelection(element))return{type:"input",selection:getUISelection(element)};let selection=element?.ownerDocument.getSelection();return{type:getContentEditable(node)&&selection?.anchorNode&&getContentEditable(selection.anchorNode)?"contenteditable":"default",selection:selection}}function setSelection({focusNode:focusNode,focusOffset:focusOffset,anchorNode:anchorNode=focusNode,anchorOffset:anchorOffset=focusOffset}){var _anchorNode_ownerDocument_getSelection,_anchorNode_ownerDocument;if("input"===getTargetTypeAndSelection(focusNode).type)return setUISelection(focusNode,{anchorOffset:anchorOffset,focusOffset:focusOffset});null===(_anchorNode_ownerDocument=anchorNode.ownerDocument)||void 0===_anchorNode_ownerDocument||null===(_anchorNode_ownerDocument_getSelection=_anchorNode_ownerDocument.getSelection())||void 0===_anchorNode_ownerDocument_getSelection||_anchorNode_ownerDocument_getSelection.setBaseAndExtent(anchorNode,anchorOffset,focusNode,focusOffset)}function isDateOrTime(element){return isElementType(element,"input")&&["date","time"].includes(element.type)}function input(instance,element,data,inputType="insertText"){let inputRange=function getInputRange(focusNode){let typeAndSelection=getTargetTypeAndSelection(focusNode);return"input"===typeAndSelection.type?typeAndSelection.selection:"contenteditable"===typeAndSelection.type?null===(_typeAndSelection_selection=typeAndSelection.selection)||void 0===_typeAndSelection_selection?void 0:_typeAndSelection_selection.getRangeAt(0):void 0;var _typeAndSelection_selection}(element);inputRange&&(!isDateOrTime(element)&&!instance.dispatchUIEvent(element,"beforeinput",{inputType:inputType,data:data})||("startContainer"in inputRange?function editContenteditable(instance,element,inputRange,data,inputType){let del=!1;if(inputRange.collapsed){if(["deleteContentBackward","deleteContentForward"].includes(inputType)){let nextPosition=getNextCursorPosition(inputRange.startContainer,inputRange.startOffset,"deleteContentBackward"===inputType?-1:1,inputType);if(nextPosition){del=!0;let delRange=inputRange.cloneRange();delRange.comparePoint(nextPosition.node,nextPosition.offset)<0?delRange.setStart(nextPosition.node,nextPosition.offset):delRange.setEnd(nextPosition.node,nextPosition.offset),delRange.deleteContents()}}}else del=!0,inputRange.deleteContents();if(data)if(3===inputRange.endContainer.nodeType){let offset=inputRange.endOffset;inputRange.endContainer.insertData(offset,data),inputRange.setStart(inputRange.endContainer,offset+data.length),inputRange.setEnd(inputRange.endContainer,offset+data.length)}else{let text=element.ownerDocument.createTextNode(data);inputRange.insertNode(text),inputRange.setStart(text,data.length),inputRange.setEnd(text,data.length)}(del||data)&&instance.dispatchUIEvent(element,"input",{inputType:inputType})}(instance,element,inputRange,data,inputType):function editInputElement(instance,element,inputRange,data,inputType){let dataToInsert=data;if(function supportsMaxLength(element){return isElementType(element,"textarea")||isElementType(element,"input")&&element.type in maxLengthSupportedTypes}(element)){let maxLength=function getMaxLength(element){var _element_getAttribute;let attr=null!==(_element_getAttribute=element.getAttribute("maxlength"))&&void 0!==_element_getAttribute?_element_getAttribute:"";return/^\d+$/.test(attr)&&Number(attr)>=0?Number(attr):void 0}(element);if(void 0!==maxLength&&data.length>0){let spaceUntilMaxLength=maxLength-element.value.length;if(!(spaceUntilMaxLength>0))return;dataToInsert=data.substring(0,spaceUntilMaxLength)}}let{newValue:newValue,newOffset:newOffset,oldValue:oldValue}=function calculateNewValue(inputData,node,{startOffset:startOffset,endOffset:endOffset},inputType){let value=getUIValue(node),prologEnd=Math.max(0,startOffset===endOffset&&"deleteContentBackward"===inputType?startOffset-1:startOffset),prolog=value.substring(0,prologEnd),epilogStart=Math.min(value.length,startOffset===endOffset&&"deleteContentForward"===inputType?startOffset+1:endOffset),epilog=value.substring(epilogStart,value.length),newValue=`${prolog}${inputData}${epilog}`,newOffset=prologEnd+inputData.length;if(isElementType(node,"input",{type:"time"})){let builtValue=function buildTimeValue(value){let onlyDigitsValue=value.replace(/\D/g,"");if(onlyDigitsValue.length<2)return value;let firstDigit=parseInt2(onlyDigitsValue[0],10),secondDigit=parseInt2(onlyDigitsValue[1],10);if(firstDigit>=3||2===firstDigit&&secondDigit>=4){let index;return index=firstDigit>=3?1:2,build2(onlyDigitsValue,index)}return 2===value.length?value:build2(onlyDigitsValue,2)}(newValue);""!==builtValue&&isValidDateOrTimeValue(node,builtValue)&&(newValue=builtValue,newOffset=builtValue.length)}return{oldValue:value,newValue:newValue,newOffset:newOffset}}(dataToInsert,element,inputRange,inputType);newValue===oldValue&&newOffset===inputRange.startOffset&&newOffset===inputRange.endOffset||isElementType(element,"input",{type:"number"})&&!function isValidNumberInput(value){var _value_match,_value_match1;let valueParts=value.split("e",2);return!(/[^\d.\-e]/.test(value)||Number(null===(_value_match=value.match(/-/g))||void 0===_value_match?void 0:_value_match.length)>2||Number(null===(_value_match1=value.match(/\./g))||void 0===_value_match1?void 0:_value_match1.length)>1||valueParts[1]&&!/^-?\d*$/.test(valueParts[1]))}(newValue)||(function setUIValue(element,value){void 0===element[InitialValue]&&(element[InitialValue]=element.value),element[UIValue]=value,element.value=Object.assign(new String(value),{[UIValue]:!0})}(element,newValue),setSelection({focusNode:element,anchorOffset:newOffset,focusOffset:newOffset}),isDateOrTime(element)?isValidDateOrTimeValue(element,newValue)&&(commitInput(instance,element,newOffset,{}),instance.dispatchUIEvent(element,"change"),clearInitialValue(element)):commitInput(instance,element,newOffset,{data:data,inputType:inputType}))}(instance,element,inputRange,data,inputType)))}function commitInput(instance,element,newOffset,inputInit){instance.dispatchUIEvent(element,"input",inputInit),commitValueAfterInput(element,newOffset)}function isVisible(element){let window2=getWindow(element);for(let el=element;el?.ownerDocument;el=el.parentElement){let{display:display2,visibility:visibility}=window2.getComputedStyle(el);if("none"===display2||"hidden"===visibility)return!1}return!0}function moveSelection(node,direction){if(hasOwnSelection(node)){let selection=getUISelection(node);setSelection({focusNode:node,focusOffset:selection.startOffset===selection.endOffset?selection.focusOffset+direction:direction<0?selection.startOffset:selection.endOffset})}else{let selection=node.ownerDocument.getSelection();if(!selection?.focusNode)return;if(selection.isCollapsed){let nextPosition=getNextCursorPosition(selection.focusNode,selection.focusOffset,direction);nextPosition&&setSelection({focusNode:nextPosition.node,focusOffset:nextPosition.offset})}else selection[direction<0?"collapseToStart":"collapseToEnd"]()}}function selectAll(target){if(hasOwnSelection(target))return setSelection({focusNode:target,anchorOffset:0,focusOffset:getUIValue(target).length});var _getContentEditable;let focusNode=null!==(_getContentEditable=getContentEditable(target))&&void 0!==_getContentEditable?_getContentEditable:target.ownerDocument.body;setSelection({focusNode:focusNode,anchorOffset:0,focusOffset:focusNode.childNodes.length})}function setSelectionRange(element,anchorOffset,focusOffset){var _element_firstChild;if(hasOwnSelection(element))return setSelection({focusNode:element,anchorOffset:anchorOffset,focusOffset:focusOffset});if(isContentEditable(element)&&3===(null===(_element_firstChild=element.firstChild)||void 0===_element_firstChild?void 0:_element_firstChild.nodeType))return setSelection({focusNode:element.firstChild,anchorOffset:anchorOffset,focusOffset:focusOffset});throw new Error("Not implemented. The result of this interaction is unreliable.")}function walkRadio(instance,el,direction){let window2=getWindow(el),group=Array.from(el.ownerDocument.querySelectorAll(el.name?`input[type="radio"][name="${window2.CSS.escape(el.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=group.findIndex((e=>e===el))+direction;;i+=direction){if(group[i]||(i=direction>0?0:group.length-1),group[i]===el)return;isDisabled2(group[i])||(focusElement(group[i]),instance.dispatchUIEvent(group[i],"click"))}}behavior.cut=(event,target,instance)=>()=>{isEditable(target)&&input(instance,target,"","deleteByCut")},behavior.keydown=(event,target,instance)=>{var _keydownBehavior_event_key,_keydownBehavior_event_key1;return null!==(_keydownBehavior_event_key1=null===(_keydownBehavior_event_key=keydownBehavior[event.key])||void 0===_keydownBehavior_event_key?void 0:_keydownBehavior_event_key.call(keydownBehavior,event,target,instance))&&void 0!==_keydownBehavior_event_key1?_keydownBehavior_event_key1:combinationBehavior(event,target,instance)};var keydownBehavior={ArrowDown:(event,target,instance)=>{if(isElementType(target,"input",{type:"radio"}))return()=>walkRadio(instance,target,-1)},ArrowLeft:(event,target,instance)=>isElementType(target,"input",{type:"radio"})?()=>walkRadio(instance,target,-1):()=>moveSelection(target,-1),ArrowRight:(event,target,instance)=>isElementType(target,"input",{type:"radio"})?()=>walkRadio(instance,target,1):()=>moveSelection(target,1),ArrowUp:(event,target,instance)=>{if(isElementType(target,"input",{type:"radio"}))return()=>walkRadio(instance,target,1)},Backspace:(event,target,instance)=>{if(isEditable(target))return()=>{input(instance,target,"","deleteContentBackward")}},Delete:(event,target,instance)=>{if(isEditable(target))return()=>{input(instance,target,"","deleteContentForward")}},End:(event,target)=>{if(isElementType(target,["input","textarea"])||isContentEditable(target))return()=>{var _getValueOrTextContent,_getValueOrTextContent_length;let newPos=null!==(_getValueOrTextContent_length=null===(_getValueOrTextContent=function getValueOrTextContent(element){return element?isContentEditable(element)?element.textContent:getUIValue(element):null}(target))||void 0===_getValueOrTextContent?void 0:_getValueOrTextContent.length)&&void 0!==_getValueOrTextContent_length?_getValueOrTextContent_length:0;setSelectionRange(target,newPos,newPos)}},Home:(event,target)=>{if(isElementType(target,["input","textarea"])||isContentEditable(target))return()=>{setSelectionRange(target,0,0)}},PageDown:(event,target)=>{if(isElementType(target,["input"]))return()=>{let newPos=getUIValue(target).length;setSelectionRange(target,newPos,newPos)}},PageUp:(event,target)=>{if(isElementType(target,["input"]))return()=>{setSelectionRange(target,0,0)}},Tab:(event,target,instance)=>()=>{let dest=function getTabDestination(activeElement,shift){let document2=activeElement.ownerDocument,focusableElements=document2.querySelectorAll(FOCUSABLE_SELECTOR),enabledElements=Array.from(focusableElements).filter((el=>el===activeElement||!(Number(el.getAttribute("tabindex"))<0||isDisabled2(el))));Number(activeElement.getAttribute("tabindex"))>=0&&enabledElements.sort(((a2,b)=>{let i=Number(a2.getAttribute("tabindex")),j=Number(b.getAttribute("tabindex"));return i===j?0:0===i?1:0===j?-1:i-j}));let checkedRadio={},prunedElements=[document2.body],activeRadioGroup=isElementType(activeElement,"input",{type:"radio"})?activeElement.name:void 0;enabledElements.forEach((currentElement=>{let el=currentElement;if(isElementType(el,"input",{type:"radio"})&&el.name){if(el===activeElement)return void prunedElements.push(el);if(el.name===activeRadioGroup)return;if(el.checked)return prunedElements=prunedElements.filter((e=>!isElementType(e,"input",{type:"radio",name:el.name}))),prunedElements.push(el),void(checkedRadio[el.name]=el);if(typeof checkedRadio[el.name]<"u")return}prunedElements.push(el)}));for(let index=prunedElements.findIndex((el=>el===activeElement));;)if(index+=shift?-1:1,index===prunedElements.length?index=0:-1===index&&(index=prunedElements.length-1),prunedElements[index]===activeElement||prunedElements[index]===document2.body||isVisible(prunedElements[index]))return prunedElements[index]}(target,instance.system.keyboard.modifiers.Shift);focusElement(dest),hasOwnSelection(dest)&&setUISelection(dest,{anchorOffset:0,focusOffset:dest.value.length})}},combinationBehavior=(event,target,instance)=>{if("KeyA"===event.code&&instance.system.keyboard.modifiers.Control)return()=>selectAll(target)};behavior.keypress=(event,target,instance)=>{if("Enter"===event.key){if(isElementType(target,"button")||isElementType(target,"input")&&ClickInputOnEnter.includes(target.type)||isElementType(target,"a")&&target.href)return()=>{instance.dispatchUIEvent(target,"click")};if(isElementType(target,"input")){let form=target.form,submit=form?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return submit?()=>instance.dispatchUIEvent(submit,"click"):form&&SubmitSingleInputOnEnter.includes(target.type)&&1===form.querySelectorAll("input").length?()=>instance.dispatchUIEvent(form,"submit"):void 0}}if(isEditable(target)){let inputType="Enter"===event.key?isContentEditable(target)&&!instance.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",inputData="Enter"===event.key?"\n":event.key;return()=>input(instance,target,inputData,inputType)}};var ClickInputOnEnter=["button","color","file","image","reset","submit"],SubmitSingleInputOnEnter=["email","month","password","search","tel","text","url","week"];behavior.keyup=(event,target,instance)=>{var _keyupBehavior_event_key;return null===(_keyupBehavior_event_key=keyupBehavior[event.key])||void 0===_keyupBehavior_event_key?void 0:_keyupBehavior_event_key.call(keyupBehavior,event,target,instance)};var keyupBehavior={" ":(event,target,instance)=>{if(isClickableInput(target))return()=>instance.dispatchUIEvent(target,"click")}};behavior.paste=(event,target,instance)=>{if(isEditable(target))return()=>{var _event_clipboardData;let insertData=null===(_event_clipboardData=event.clipboardData)||void 0===_event_clipboardData?void 0:_event_clipboardData.getData("text");insertData&&input(instance,target,insertData,"insertFromPaste")}};var eventMap2={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function getEventClass(type5){return eventMap2[type5].EventType}var mouseEvents=["MouseEvent","PointerEvent"];var eventInitializer={ClipboardEvent:[function initClipboardEvent(event,{clipboardData:clipboardData}){assignProps(event,{clipboardData:clipboardData})}],Event:[],InputEvent:[initUIEvent,function initInputEvent(event,{data:data,inputType:inputType,isComposing:isComposing}){assignProps(event,{data:data,isComposing:!!isComposing,inputType:String(inputType)})}],MouseEvent:[initUIEvent,initUIEventModififiers,initMouseEvent],PointerEvent:[initUIEvent,initUIEventModififiers,initMouseEvent,function initPointerEvent(event,{pointerId:pointerId,width:width,height:height,pressure:pressure,tangentialPressure:tangentialPressure,tiltX:tiltX,tiltY:tiltY,twist:twist,pointerType:pointerType,isPrimary:isPrimary}){assignProps(event,{pointerId:sanitizeNumber(pointerId),width:sanitizeNumber(width),height:sanitizeNumber(height),pressure:sanitizeNumber(pressure),tangentialPressure:sanitizeNumber(tangentialPressure),tiltX:sanitizeNumber(tiltX),tiltY:sanitizeNumber(tiltY),twist:sanitizeNumber(twist),pointerType:String(pointerType),isPrimary:!!isPrimary})}],KeyboardEvent:[initUIEvent,initUIEventModififiers,function initKeyboardEvent(event,{key:key,code:code,location:location,repeat:repeat,isComposing:isComposing,charCode:charCode}){assignProps(event,{key:String(key),code:String(code),location:sanitizeNumber(location),repeat:!!repeat,isComposing:!!isComposing,charCode:charCode})}]};function createEvent2(type5,target,init){let window2=getWindow(target),{EventType:EventType,defaultInit:defaultInit}=eventMap2[type5],event=new(function getEventConstructors(window2){var _window_Event;let Event=null!==(_window_Event=window2.Event)&&void 0!==_window_Event?_window_Event:class{};var _window_AnimationEvent;let AnimationEvent=null!==(_window_AnimationEvent=window2.AnimationEvent)&&void 0!==_window_AnimationEvent?_window_AnimationEvent:class extends Event{};var _window_ClipboardEvent;let ClipboardEvent=null!==(_window_ClipboardEvent=window2.ClipboardEvent)&&void 0!==_window_ClipboardEvent?_window_ClipboardEvent:class extends Event{};var _window_PopStateEvent;let PopStateEvent=null!==(_window_PopStateEvent=window2.PopStateEvent)&&void 0!==_window_PopStateEvent?_window_PopStateEvent:class extends Event{};var _window_ProgressEvent;let ProgressEvent=null!==(_window_ProgressEvent=window2.ProgressEvent)&&void 0!==_window_ProgressEvent?_window_ProgressEvent:class extends Event{};var _window_TransitionEvent;let TransitionEvent=null!==(_window_TransitionEvent=window2.TransitionEvent)&&void 0!==_window_TransitionEvent?_window_TransitionEvent:class extends Event{};var _window_UIEvent;let UIEvent=null!==(_window_UIEvent=window2.UIEvent)&&void 0!==_window_UIEvent?_window_UIEvent:class extends Event{};var _window_CompositionEvent;let CompositionEvent=null!==(_window_CompositionEvent=window2.CompositionEvent)&&void 0!==_window_CompositionEvent?_window_CompositionEvent:class extends UIEvent{};var _window_FocusEvent;let FocusEvent=null!==(_window_FocusEvent=window2.FocusEvent)&&void 0!==_window_FocusEvent?_window_FocusEvent:class extends UIEvent{};var _window_InputEvent;let InputEvent=null!==(_window_InputEvent=window2.InputEvent)&&void 0!==_window_InputEvent?_window_InputEvent:class extends UIEvent{};var _window_KeyboardEvent;let KeyboardEvent=null!==(_window_KeyboardEvent=window2.KeyboardEvent)&&void 0!==_window_KeyboardEvent?_window_KeyboardEvent:class extends UIEvent{};var _window_MouseEvent;let MouseEvent=null!==(_window_MouseEvent=window2.MouseEvent)&&void 0!==_window_MouseEvent?_window_MouseEvent:class extends UIEvent{};var _window_DragEvent;let DragEvent=null!==(_window_DragEvent=window2.DragEvent)&&void 0!==_window_DragEvent?_window_DragEvent:class extends MouseEvent{};var _window_PointerEvent;let PointerEvent=null!==(_window_PointerEvent=window2.PointerEvent)&&void 0!==_window_PointerEvent?_window_PointerEvent:class extends MouseEvent{};var _window_TouchEvent;let TouchEvent=null!==(_window_TouchEvent=window2.TouchEvent)&&void 0!==_window_TouchEvent?_window_TouchEvent:class extends UIEvent{};return{Event:Event,AnimationEvent:AnimationEvent,ClipboardEvent:ClipboardEvent,PopStateEvent:PopStateEvent,ProgressEvent:ProgressEvent,TransitionEvent:TransitionEvent,UIEvent:UIEvent,CompositionEvent:CompositionEvent,FocusEvent:FocusEvent,InputEvent:InputEvent,KeyboardEvent:KeyboardEvent,MouseEvent:MouseEvent,DragEvent:DragEvent,PointerEvent:PointerEvent,TouchEvent:TouchEvent}}(window2)[EventType])(type5,defaultInit);return eventInitializer[EventType].forEach((f4=>f4(event,init??{}))),event}function assignProps(obj,props){for(let[key,value]of Object.entries(props))Object.defineProperty(obj,key,{get:()=>value??null})}function sanitizeNumber(n){return Number(n??0)}function initUIEvent(event,{view:view,detail:detail}){assignProps(event,{view:view,detail:sanitizeNumber(detail??0)})}function initUIEventModififiers(event,{altKey:altKey,ctrlKey:ctrlKey,metaKey:metaKey,shiftKey:shiftKey,modifierAltGraph:modifierAltGraph,modifierCapsLock:modifierCapsLock,modifierFn:modifierFn,modifierFnLock:modifierFnLock,modifierNumLock:modifierNumLock,modifierScrollLock:modifierScrollLock,modifierSymbol:modifierSymbol,modifierSymbolLock:modifierSymbolLock}){assignProps(event,{altKey:!!altKey,ctrlKey:!!ctrlKey,metaKey:!!metaKey,shiftKey:!!shiftKey,getModifierState(k2){return!!{Alt:altKey,AltGraph:modifierAltGraph,CapsLock:modifierCapsLock,Control:ctrlKey,Fn:modifierFn,FnLock:modifierFnLock,Meta:metaKey,NumLock:modifierNumLock,ScrollLock:modifierScrollLock,Shift:shiftKey,Symbol:modifierSymbol,SymbolLock:modifierSymbolLock}[k2]}})}function initMouseEvent(event,{x:x2,y:y2,screenX:screenX,screenY:screenY,clientX:clientX=x2,clientY:clientY=y2,button:button,buttons:buttons,relatedTarget:relatedTarget}){assignProps(event,{screenX:sanitizeNumber(screenX),screenY:sanitizeNumber(screenY),clientX:sanitizeNumber(clientX),x:sanitizeNumber(clientX),clientY:sanitizeNumber(clientY),y:sanitizeNumber(clientY),button:sanitizeNumber(button),buttons:sanitizeNumber(buttons),relatedTarget:relatedTarget})}function dispatchUIEvent(target,type5,init,preventDefault=!1){(function isMouseEvent(type5){return mouseEvents.includes(getEventClass(type5))}(type5)||function isKeyboardEvent(type5){return"KeyboardEvent"===getEventClass(type5)}(type5))&&(init={...init,...this.system.getUIEventModifiers()});let event=createEvent2(type5,target,init);return dispatchEvent.call(this,target,event,preventDefault)}function dispatchEvent(target,event,preventDefault=!1){var _behavior_type;let type5=event.type,behaviorImplementation=preventDefault?()=>{}:null===(_behavior_type=behavior[type5])||void 0===_behavior_type?void 0:_behavior_type.call(behavior,event,target,this);if(behaviorImplementation){event.preventDefault();let defaultPrevented=!1;return Object.defineProperty(event,"defaultPrevented",{get:()=>defaultPrevented}),Object.defineProperty(event,"preventDefault",{value:()=>{defaultPrevented=event.cancelable}}),wrapEvent((()=>target.dispatchEvent(event))),defaultPrevented||behaviorImplementation(),!defaultPrevented}return wrapEvent((()=>target.dispatchEvent(event)))}var Interceptor=Symbol("Interceptor for programmatical calls");function prepareInterceptor(element,propName,interceptorImpl){let prototypeDescriptor=Object.getOwnPropertyDescriptor(element.constructor.prototype,propName),objectDescriptor=Object.getOwnPropertyDescriptor(element,propName),target=prototypeDescriptor?.set?"set":"value";if("function"!=typeof prototypeDescriptor?.[target]||prototypeDescriptor[target][Interceptor])throw new Error(`Element ${element.tagName} does not implement "${String(propName)}".`);function intercept(...args){let{applyNative:applyNative=!1,realArgs:realArgs,then:then}=interceptorImpl.call(this,...args),realFunc=(!applyNative&&objectDescriptor||prototypeDescriptor)[target];"set"===target?realFunc.call(this,realArgs):realFunc.call(this,...realArgs),then?.()}intercept[Interceptor]=Interceptor,Object.defineProperty(element,propName,{...objectDescriptor??prototypeDescriptor,[target]:intercept})}function prepareValueInterceptor(element){prepareInterceptor(element,"value",(function(v){let isUI=function isUIValue(value){return"object"==typeof value&&UIValue in value}(v);return isUI&&startTrackValue(this),{applyNative:!!isUI,realArgs:sanitizeValue(this,v),then:isUI?void 0:()=>function trackOrSetValue(element,v){var _element_TrackChanges_tracked,_element_TrackChanges;null===(_element_TrackChanges=element[TrackChanges])||void 0===_element_TrackChanges||null===(_element_TrackChanges_tracked=_element_TrackChanges.tracked)||void 0===_element_TrackChanges_tracked||_element_TrackChanges_tracked.push(v),element[TrackChanges]||(setUIValueClean(element),setUISelection(element,{focusOffset:v.length}))}(this,String(v))}}))}function sanitizeValue(element,v){return isElementType(element,"input",{type:"number"})&&""!==String(v)&&!Number.isNaN(Number(v))?String(Number(v)):String(v)}function prepareSelectionInterceptor(element){prepareInterceptor(element,"setSelectionRange",(function(start,...others){let isUI=function isUISelectionStart(start){return!!start&&"object"==typeof start&&UISelection in start}(start);return{applyNative:!!isUI,realArgs:[Number(start),...others],then:()=>isUI?void 0:setUISelectionClean(element)}})),prepareInterceptor(element,"selectionStart",(function(v){return{realArgs:v,then:()=>setUISelectionClean(element)}})),prepareInterceptor(element,"selectionEnd",(function(v){return{realArgs:v,then:()=>setUISelectionClean(element)}})),prepareInterceptor(element,"select",(function(){return{realArgs:[],then:()=>function setUISelectionRaw(element,selection){element[UISelection]=selection}(element,{anchorOffset:0,focusOffset:getUIValue(element).length})}}))}var DOM_KEY_LOCATION,DOM_KEY_LOCATION2,isPrepared=Symbol("Node prepared with document state workarounds");function prepareDocument(document2){document2[isPrepared]||(document2.addEventListener("focus",(e=>{prepareElement(e.target)}),{capture:!0,passive:!0}),document2.activeElement&&prepareElement(document2.activeElement),document2.addEventListener("blur",(e=>{let el=e.target,initialValue2=function getInitialValue(element){return element[InitialValue]}(el);void 0!==initialValue2&&(el.value!==initialValue2&&function dispatchDOMEvent(target,type5,init){let event=createEvent2(type5,target,init);wrapEvent((()=>target.dispatchEvent(event)))}(el,"change"),clearInitialValue(el))}),{capture:!0,passive:!0}),document2[isPrepared]=isPrepared)}function prepareElement(el){el[isPrepared]||(isElementType(el,["input","textarea"])&&(prepareValueInterceptor(el),prepareSelectionInterceptor(el),function prepareRangeTextInterceptor(element){prepareInterceptor(element,"setRangeText",(function(...realArgs){return{realArgs:realArgs,then:()=>{setUIValueClean(element),setUISelectionClean(element)}}}))}(el)),el[isPrepared]=isPrepared)}function wait(config3){let delay=config3.delay;if("number"==typeof delay)return Promise.all([new Promise((resolve=>globalThis.setTimeout((()=>resolve()),delay))),config3.advanceTimers(delay)])}function _define_property3(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(DOM_KEY_LOCATION2=DOM_KEY_LOCATION||(DOM_KEY_LOCATION={}))[DOM_KEY_LOCATION2.STANDARD=0]="STANDARD",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.LEFT=1]="LEFT",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.RIGHT=2]="RIGHT",DOM_KEY_LOCATION2[DOM_KEY_LOCATION2.NUMPAD=3]="NUMPAD";var modifierKeys=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function isModifierKey(key){return modifierKeys.includes(key)}var modifierLocks=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function isModifierLock(key){return modifierLocks.includes(key)}var KeyboardHost=class{isKeyPressed(keyDef){return!!this.pressed[String(keyDef.code)]}getPressedKeys(){return Object.values(this.pressed).map((p3=>p3.keyDef))}async keydown(instance,keyDef){var _this_pressed,_code,_this_pressed_code;let key=String(keyDef.key),code=String(keyDef.code),target=getActiveElementOrBody(instance.config.document);var _;this.setKeydownTarget(target),null!==(_=(_this_pressed=this.pressed)[_code=code])&&void 0!==_||(_this_pressed[_code]={keyDef:keyDef,unpreventedDefault:!1}),isModifierKey(key)&&(this.modifiers[key]=!0);let unprevented=instance.dispatchUIEvent(target,"keydown",{key:key,code:code});isModifierLock(key)&&!this.modifiers[key]&&(this.modifiers[key]=!0,this.modifierLockStart[key]=!0),(_this_pressed_code=this.pressed[code]).unpreventedDefault||(_this_pressed_code.unpreventedDefault=unprevented),unprevented&&this.hasKeyPress(key)&&instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),"keypress",{key:key,code:code,charCode:"Enter"===keyDef.key?13:String(keyDef.key).charCodeAt(0)})}async keyup(instance,keyDef){let key=String(keyDef.key),code=String(keyDef.code),unprevented=this.pressed[code].unpreventedDefault;delete this.pressed[code],isModifierKey(key)&&!Object.values(this.pressed).find((p3=>p3.keyDef.key===key))&&(this.modifiers[key]=!1),instance.dispatchUIEvent(getActiveElementOrBody(instance.config.document),"keyup",{key:key,code:code},!unprevented),isModifierLock(key)&&this.modifiers[key]&&(this.modifierLockStart[key]?this.modifierLockStart[key]=!1:this.modifiers[key]=!1)}setKeydownTarget(target){target!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=target}hasKeyPress(key){return!(1!==key.length&&"Enter"!==key||this.modifiers.Control||this.modifiers.Alt)}constructor(system){_define_property3(this,"system",void 0),_define_property3(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),_define_property3(this,"pressed",{}),_define_property3(this,"carryChar",""),_define_property3(this,"lastKeydownTarget",void 0),_define_property3(this,"modifierLockStart",{}),this.system=system}},defaultKeyMap=[..."0123456789".split("").map((c=>({code:`Digit${c}`,key:c}))),...")!@#$%^&*(".split("").map(((c,i)=>({code:`Digit${i}`,key:c,shiftKey:!0}))),..."abcdefghijklmnopqrstuvwxyz".split("").map((c=>({code:`Key${c.toUpperCase()}`,key:c}))),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c=>({code:`Key${c}`,key:c,shiftKey:!0}))),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:DOM_KEY_LOCATION.LEFT},{code:"AltRight",key:"Alt",location:DOM_KEY_LOCATION.RIGHT},{code:"ShiftLeft",key:"Shift",location:DOM_KEY_LOCATION.LEFT},{code:"ShiftRight",key:"Shift",location:DOM_KEY_LOCATION.RIGHT},{code:"ControlLeft",key:"Control",location:DOM_KEY_LOCATION.LEFT},{code:"ControlRight",key:"Control",location:DOM_KEY_LOCATION.RIGHT},{code:"MetaLeft",key:"Meta",location:DOM_KEY_LOCATION.LEFT},{code:"MetaRight",key:"Meta",location:DOM_KEY_LOCATION.RIGHT},{code:"OSLeft",key:"OS",location:DOM_KEY_LOCATION.LEFT},{code:"OSRight",key:"OS",location:DOM_KEY_LOCATION.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}];var Buttons=class{getButtons(){let v=0;for(let button of Object.keys(this.pressed))v|=2**Number(button);return v}down(keyDef){let button=getMouseButtonId(keyDef.button);if(!(button in this.pressed))return this.pressed[button]=[keyDef],button;this.pressed[button].push(keyDef)}up(keyDef){let button=getMouseButtonId(keyDef.button);if(button in this.pressed&&(this.pressed[button]=this.pressed[button].filter((k2=>k2.name!==keyDef.name)),0===this.pressed[button].length))return delete this.pressed[button],button}constructor(){!function _define_property4(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"pressed",{})}},MouseButton={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function getMouseButtonId(button=0){return button in MouseButton?MouseButton[button]:Number(button)}var MouseButtonFlip={1:2,2:1};function getMouseEventButton(button){return(button=getMouseButtonId(button))in MouseButtonFlip?MouseButtonFlip[button]:button}var Device=class{get countPressed(){return this.pressedKeys.size}isPressed(keyDef){return this.pressedKeys.has(keyDef.name)}addPressed(keyDef){return this.pressedKeys.add(keyDef.name)}removePressed(keyDef){return this.pressedKeys.delete(keyDef.name)}constructor(){!function _define_property5(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"pressedKeys",new Set)}};function getTreeDiff(a2,b){let treeA=[];for(let el=a2;el;el=el.parentElement)treeA.push(el);let treeB=[];for(let el=b;el;el=el.parentElement)treeB.push(el);let i=0;for(;!(i>=treeA.length||i>=treeB.length||treeA[treeA.length-1-i]!==treeB[treeB.length-1-i]);i++);return[treeA.slice(0,treeA.length-i),treeB.slice(0,treeB.length-i),treeB.slice(treeB.length-i)]}function resolveCaretPosition({target:target,node:node,offset:offset}){return hasOwnSelection(target)?{node:target,offset:offset??getUIValue(target).length}:node?{node:node,offset:offset??(3===node.nodeType?node.nodeValue.length:node.childNodes.length)}:findNodeAtTextOffset(target,offset)}function findNodeAtTextOffset(node,offset,isRoot=!0){let i=void 0===offset?node.childNodes.length-1:0,step=void 0===offset?-1:1;for(;void 0===offset?i>=(isRoot?Math.max(node.childNodes.length-1,0):0):i<=node.childNodes.length;){if(offset&&i===node.childNodes.length)throw new Error("The given offset is out of bounds.");let c=node.childNodes.item(i),text=String(c.textContent);if(text.length)if(void 0!==offset&&text.length{prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,"mouseout",init),leave.forEach((el=>instance.dispatchUIEvent(el,"mouseleave",init))))},enter:()=>{prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,"mouseover",init),enter.forEach((el=>instance.dispatchUIEvent(el,"mouseenter",init))))},move:()=>{instance.dispatchUIEvent(nextTarget,"mousemove",init),this.modifySelecting(instance)}}}down(instance,keyDef,pointer3){let button=this.buttons.down(keyDef);if(void 0===button)return;let target=this.getTarget(instance);this.buttonDownTarget[button]=target;let disabled=isDisabled2(target),init=this.getEventInit("mousedown",keyDef.button);(disabled||instance.dispatchUIEvent(target,"mousedown",init))&&(this.startSelecting(instance,init.detail),focusElement(target)),!disabled&&2===getMouseEventButton(keyDef.button)&&instance.dispatchUIEvent(target,"contextmenu",this.getEventInit("contextmenu",keyDef.button,pointer3))}up(instance,keyDef,pointer3){let button=this.buttons.up(keyDef);if(void 0===button)return;let target=this.getTarget(instance);if(!isDisabled2(target)){instance.dispatchUIEvent(target,"mouseup",this.getEventInit("mouseup",keyDef.button)),this.endSelecting();let clickTarget=getTreeDiff(this.buttonDownTarget[button],target)[2][0];if(clickTarget){let init=this.getEventInit("click",keyDef.button,pointer3);init.detail&&(instance.dispatchUIEvent(clickTarget,0===init.button?"click":"auxclick",init),0===init.button&&2===init.detail&&instance.dispatchUIEvent(clickTarget,"dblclick",{...this.getEventInit("dblclick",keyDef.button),detail:init.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(type5,button,pointer3){let init={...this.position.coords};return pointer3&&(init.pointerId=pointer3.pointerId,init.pointerType=pointer3.pointerType,init.isPrimary=pointer3.isPrimary),init.button=getMouseEventButton(button),init.buttons=this.buttons.getButtons(),"mousedown"===type5?init.detail=this.clickCount.getOnDown(init.button):"mouseup"===type5?init.detail=this.clickCount.getOnUp(init.button):("click"===type5||"auxclick"===type5)&&(init.detail=this.clickCount.incOnClick(init.button)),init}getTarget(instance){var _this_position_target;return null!==(_this_position_target=this.position.target)&&void 0!==_this_position_target?_this_position_target:instance.config.document.body}startSelecting(instance,clickCount){var _this_position_caret,_this_position_caret1;this.selecting=setSelectionPerMouseDown({document:instance.config.document,target:this.getTarget(instance),node:null===(_this_position_caret=this.position.caret)||void 0===_this_position_caret?void 0:_this_position_caret.node,offset:null===(_this_position_caret1=this.position.caret)||void 0===_this_position_caret1?void 0:_this_position_caret1.offset,clickCount:clickCount})}modifySelecting(instance){var _this_position_caret,_this_position_caret1;this.selecting&&function modifySelectionPerMouseMove(selectionRange,{document:document2,target:target,node:node,offset:offset}){let selectionFocus=resolveCaretPosition({target:target,node:node,offset:offset});if("node"in selectionRange){if(selectionFocus.node===selectionRange.node){let anchorOffset=selectionFocus.offsetselectionRange.end||selectionFocus.offset0&&range.setEnd(selectionFocus.node,selectionFocus.offset);let selection=document2.getSelection();selection?.removeAllRanges(),selection?.addRange(range.cloneRange())}}(this.selecting,{document:instance.config.document,target:this.getTarget(instance),node:null===(_this_position_caret=this.position.caret)||void 0===_this_position_caret?void 0:_this_position_caret.node,offset:null===(_this_position_caret1=this.position.caret)||void 0===_this_position_caret1?void 0:_this_position_caret1.offset})}endSelecting(){this.selecting=void 0}constructor(){_define_property6(this,"position",{}),_define_property6(this,"buttons",new Buttons),_define_property6(this,"selecting",void 0),_define_property6(this,"buttonDownTarget",{}),_define_property6(this,"clickCount",new class{incOnClick(button){let current=void 0===this.down[button]?void 0:Number(this.down[button])+1;return this.count=void 0===this.count[button]?{}:{[button]:Number(this.count[button])+1},current}getOnDown(button){var _this_count_button,_this_count_button1;return this.down={[button]:null!==(_this_count_button=this.count[button])&&void 0!==_this_count_button?_this_count_button:0},this.count={[button]:null!==(_this_count_button1=this.count[button])&&void 0!==_this_count_button1?_this_count_button1:0},Number(this.count[button])+1}getOnUp(button){return void 0===this.down[button]?void 0:Number(this.down[button])+1}reset(){this.count={}}constructor(){_define_property6(this,"down",{}),_define_property6(this,"count",{})}})}};function hasPointerEvents(instance,element){var _checkPointerEvents;return"none"!==(null===(_checkPointerEvents=checkPointerEvents(instance,element))||void 0===_checkPointerEvents?void 0:_checkPointerEvents.pointerEvents)}var PointerEventsCheck=Symbol("Last check for pointer-events");function checkPointerEvents(instance,element){let lastCheck=element[PointerEventsCheck];if(instance.config.pointerEventsCheck===PointerEventsCheckLevel.Never||!(!lastCheck||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachApiCall)&&lastCheck[ApiLevel.Call]!==getLevelRef(instance,ApiLevel.Call)||hasBitFlag(instance.config.pointerEventsCheck,PointerEventsCheckLevel.EachTrigger)&&lastCheck[ApiLevel.Trigger]!==getLevelRef(instance,ApiLevel.Trigger)))return lastCheck?.result;let declaration=function closestPointerEventsDeclaration(element){let window2=getWindow(element);for(let el=element,tree=[];el?.ownerDocument;el=el.parentElement){tree.push(el);let pointerEvents=window2.getComputedStyle(el).pointerEvents;if(pointerEvents&&!["inherit","unset"].includes(pointerEvents))return{pointerEvents:pointerEvents,tree:tree}}}(element);return element[PointerEventsCheck]={[ApiLevel.Call]:getLevelRef(instance,ApiLevel.Call),[ApiLevel.Trigger]:getLevelRef(instance,ApiLevel.Trigger),result:declaration},declaration}function assertPointerEvents(instance,element){let declaration=checkPointerEvents(instance,element);if("none"===declaration?.pointerEvents)throw new Error([`Unable to perform pointer interaction as the element ${declaration.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",(tree=declaration.tree,tree.reverse().map(((el,i)=>["".padEnd(i),el.tagName,el.id&&`#${el.id}`,el.hasAttribute("data-testid")&&`(testId=${el.getAttribute("data-testid")})`,getLabelDescr(el),tree.length>1&&0===i&&" <-- This element declared `pointer-events: none`",tree.length>1&&i===tree.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join(""))).join("\n"))].join("\n"));var tree}function getLabelDescr(element){var _element_labels;let label;if(element.hasAttribute("aria-label"))label=element.getAttribute("aria-label");else if(element.hasAttribute("aria-labelledby")){var _element_ownerDocument_getElementById_textContent,_element_ownerDocument_getElementById;label=null===(_element_ownerDocument_getElementById=element.ownerDocument.getElementById(element.getAttribute("aria-labelledby")))||void 0===_element_ownerDocument_getElementById||null===(_element_ownerDocument_getElementById_textContent=_element_ownerDocument_getElementById.textContent)||void 0===_element_ownerDocument_getElementById_textContent?void 0:_element_ownerDocument_getElementById_textContent.trim()}else if(isElementType(element,["button","input","meter","output","progress","select","textarea"])&&null!==(_element_labels=element.labels)&&void 0!==_element_labels&&_element_labels.length)label=Array.from(element.labels).map((el=>{var _el_textContent;return null===(_el_textContent=el.textContent)||void 0===_el_textContent?void 0:_el_textContent.trim()})).join("|");else if(isElementType(element,"button")){var _element_textContent;label=null===(_element_textContent=element.textContent)||void 0===_element_textContent?void 0:_element_textContent.trim()}return label=label?.replace(/\n/g," "),Number(label?.length)>30&&(label=`${label?.substring(0,29)}…`),label?`(label=${label})`:""}function hasBitFlag(conf,flag3){return(conf&flag3)>0}function _define_property7(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Pointer=class{init(instance,position){this.position=position;let target=this.getTarget(instance),[,enter]=getTreeDiff(null,target),init=this.getEventInit();return assertPointerEvents(instance,target),instance.dispatchUIEvent(target,"pointerover",init),enter.forEach((el=>instance.dispatchUIEvent(el,"pointerenter",init))),this}move(instance,position){let prevPosition=this.position,prevTarget=this.getTarget(instance);if(this.position=position,!isDifferentPointerPosition(prevPosition,position))return;let nextTarget=this.getTarget(instance),init=this.getEventInit(),[leave,enter]=getTreeDiff(prevTarget,nextTarget);return{leave:()=>{hasPointerEvents(instance,prevTarget)&&prevTarget!==nextTarget&&(instance.dispatchUIEvent(prevTarget,"pointerout",init),leave.forEach((el=>instance.dispatchUIEvent(el,"pointerleave",init))))},enter:()=>{assertPointerEvents(instance,nextTarget),prevTarget!==nextTarget&&(instance.dispatchUIEvent(nextTarget,"pointerover",init),enter.forEach((el=>instance.dispatchUIEvent(el,"pointerenter",init))))},move:()=>{instance.dispatchUIEvent(nextTarget,"pointermove",init)}}}down(instance,_keyDef){if(this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!0,this.isPrevented=!instance.dispatchUIEvent(target,"pointerdown",this.getEventInit())}up(instance,_keyDef){if(!this.isDown)return;let target=this.getTarget(instance);assertPointerEvents(instance,target),this.isDown=!1,instance.dispatchUIEvent(target,"pointerup",this.getEventInit())}release(instance){let target=this.getTarget(instance),[leave]=getTreeDiff(target,null),init=this.getEventInit();hasPointerEvents(instance,target)&&(instance.dispatchUIEvent(target,"pointerout",init),leave.forEach((el=>instance.dispatchUIEvent(el,"pointerleave",init)))),this.isCancelled=!0}getTarget(instance){var _this_position_target;return null!==(_this_position_target=this.position.target)&&void 0!==_this_position_target?_this_position_target:instance.config.document.body}getEventInit(){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId:pointerId,pointerType:pointerType,isPrimary:isPrimary}){_define_property7(this,"pointerId",void 0),_define_property7(this,"pointerType",void 0),_define_property7(this,"isPrimary",void 0),_define_property7(this,"isMultitouch",!1),_define_property7(this,"isCancelled",!1),_define_property7(this,"isDown",!1),_define_property7(this,"isPrevented",!1),_define_property7(this,"position",{}),this.pointerId=pointerId,this.pointerType=pointerType,this.isPrimary=isPrimary,this.isMultitouch=!isPrimary}};function _define_property8(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var PointerHost=class{isKeyPressed(keyDef){return this.devices.get(keyDef.pointerType).isPressed(keyDef)}async press(instance,keyDef,position){let pointerName=this.getPointerName(keyDef),pointer3="touch"===keyDef.pointerType?this.pointers.new(pointerName,keyDef).init(instance,position):this.pointers.get(pointerName);pointer3.position=position,"touch"!==pointer3.pointerType&&(this.mouse.position=position),this.devices.get(keyDef.pointerType).addPressed(keyDef),this.buttons.down(keyDef),pointer3.down(instance,keyDef),"touch"!==pointer3.pointerType&&!pointer3.isPrevented&&this.mouse.down(instance,keyDef,pointer3)}async move(instance,pointerName,position){let pointer3=this.pointers.get(pointerName),pointermove=pointer3.move(instance,position),mousemove="touch"===pointer3.pointerType||pointer3.isPrevented&&pointer3.isDown?void 0:this.mouse.move(instance,position);pointermove?.leave(),mousemove?.leave(),pointermove?.enter(),mousemove?.enter(),pointermove?.move(),mousemove?.move()}async release(instance,keyDef,position){let device=this.devices.get(keyDef.pointerType);device.removePressed(keyDef),this.buttons.up(keyDef);let pointer3=this.pointers.get(this.getPointerName(keyDef));if(pointer3.position=position,"touch"!==pointer3.pointerType&&(this.mouse.position=position),0===device.countPressed&&pointer3.up(instance,keyDef),"touch"===pointer3.pointerType&&pointer3.release(instance),!pointer3.isPrevented){if("touch"===pointer3.pointerType&&!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.down(instance,keyDef,pointer3)}if(!pointer3.isMultitouch){let mousemove=this.mouse.move(instance,pointer3.position);mousemove?.leave(),mousemove?.enter(),mousemove?.move(),this.mouse.up(instance,keyDef,pointer3)}}}getPointerName(keyDef){return"touch"===keyDef.pointerType?keyDef.name:keyDef.pointerType}getPreviousPosition(pointerName){return this.pointers.has(pointerName)?this.pointers.get(pointerName).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(instance){var _this_mouse_position_target;return null!==(_this_mouse_position_target=this.mouse.position.target)&&void 0!==_this_mouse_position_target?_this_mouse_position_target:instance.config.document.body}setMousePosition(position){this.mouse.position=position,this.pointers.get("mouse").position=position}constructor(system){_define_property8(this,"system",void 0),_define_property8(this,"mouse",void 0),_define_property8(this,"buttons",void 0),_define_property8(this,"devices",new class{get(k2){var _this_registry,_k,_;return null!==(_=(_this_registry=this.registry)[_k=k2])&&void 0!==_||(_this_registry[_k]=new Device),this.registry[k2]}constructor(){_define_property8(this,"registry",{})}}),_define_property8(this,"pointers",new class{new(pointerName,keyDef){let isPrimary="touch"!==keyDef.pointerType||!Object.values(this.registry).some((p3=>"touch"===p3.pointerType&&!p3.isCancelled));return isPrimary||Object.values(this.registry).forEach((p3=>{p3.pointerType===keyDef.pointerType&&!p3.isCancelled&&(p3.isMultitouch=!0)})),this.registry[pointerName]=new Pointer({pointerId:this.nextId++,pointerType:keyDef.pointerType,isPrimary:isPrimary}),this.registry[pointerName]}get(pointerName){if(!this.has(pointerName))throw new Error(`Trying to access pointer "${pointerName}" which does not exist.`);return this.registry[pointerName]}has(pointerName){return pointerName in this.registry}constructor(){_define_property8(this,"registry",{mouse:new Pointer({pointerId:1,pointerType:"mouse",isPrimary:!0})}),_define_property8(this,"nextId",2)}}),this.system=system,this.buttons=new Buttons,this.mouse=new Mouse}};function _define_property9(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var System=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){_define_property9(this,"keyboard",new KeyboardHost(this)),_define_property9(this,"pointer",new PointerHost(this))}};async function keyboardAction(instance,{keyDef:keyDef,releasePrevious:releasePrevious,releaseSelf:releaseSelf,repeat:repeat}){let{system:system}=instance;if(system.keyboard.isKeyPressed(keyDef)&&await system.keyboard.keyup(instance,keyDef),!releasePrevious){for(let i=1;i<=repeat;i++)await system.keyboard.keydown(instance,keyDef),ip3.name===descriptor));keyDef&&defs.push({keyDef:keyDef,releasePrevious:releasePrevious,releaseSelf:releaseSelf}),keys2=keys2.slice(consumedLength)}while(keys2);return defs}async function pointerAction(instance,action){var _previousPosition_caret,_previousPosition_caret1;let pointerName="pointerName"in action&&action.pointerName?action.pointerName:"keyDef"in action?instance.system.pointer.getPointerName(action.keyDef):"mouse",previousPosition=instance.system.pointer.getPreviousPosition(pointerName);var _action_target,_action_coords,_action_node,_action_offset;let position={target:null!==(_action_target=action.target)&&void 0!==_action_target?_action_target:getPrevTarget(instance,previousPosition),coords:null!==(_action_coords=action.coords)&&void 0!==_action_coords?_action_coords:previousPosition?.coords,caret:{node:null!==(_action_node=action.node)&&void 0!==_action_node?_action_node:hasCaretPosition(action)||null==previousPosition||null===(_previousPosition_caret=previousPosition.caret)||void 0===_previousPosition_caret?void 0:_previousPosition_caret.node,offset:null!==(_action_offset=action.offset)&&void 0!==_action_offset?_action_offset:hasCaretPosition(action)||null==previousPosition||null===(_previousPosition_caret1=previousPosition.caret)||void 0===_previousPosition_caret1?void 0:_previousPosition_caret1.offset}};"keyDef"in action?(instance.system.pointer.isKeyPressed(action.keyDef)&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)),action.releasePrevious||(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.press(instance,action.keyDef,position),action.releaseSelf&&(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.release(instance,action.keyDef,position)))):(setLevelRef(instance,ApiLevel.Trigger),await instance.system.pointer.move(instance,pointerName,position))}function hasCaretPosition(action){var _action_target,_ref;return!!(null!==(_ref=null!==(_action_target=action.target)&&void 0!==_action_target?_action_target:action.node)&&void 0!==_ref?_ref:void 0!==action.offset)}function getPrevTarget(instance,position){if(!position)throw new Error("This pointer has no previous position. Provide a target property!");var _position_target;return null!==(_position_target=position.target)&&void 0!==_position_target?_position_target:instance.config.document.body}async function selectOptionsBase(newValue,select,values){if(!newValue&&!select.multiple)throw getConfig2().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",select);let valArray=Array.isArray(values)?values:[values],allOptions=Array.from(select.querySelectorAll('option, [role="option"]')),selectedOptions=valArray.map((val=>{if("string"!=typeof val&&allOptions.includes(val))return val;{let matchingOption=allOptions.find((o=>o.value===val||o.innerHTML===val));if(matchingOption)return matchingOption;throw getConfig2().getElementError(`Value "${String(val)}" not found in options`,select)}})).filter((option=>!isDisabled2(option)));if(isDisabled2(select)||!selectedOptions.length)return;let selectOption=option=>{option.selected=newValue,this.dispatchUIEvent(select,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(select,"change")};if(isElementType(select,"select"))if(select.multiple)for(let option of selectedOptions){let withPointerEvents=0===this.config.pointerEventsCheck||hasPointerEvents(this,option);withPointerEvents&&(this.dispatchUIEvent(option,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(option,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(option,"pointermove"),this.dispatchUIEvent(option,"mousemove"),this.dispatchUIEvent(option,"pointerdown"),this.dispatchUIEvent(option,"mousedown")),focusElement(select),withPointerEvents&&(this.dispatchUIEvent(option,"pointerup"),this.dispatchUIEvent(option,"mouseup")),selectOption(option),withPointerEvents&&this.dispatchUIEvent(option,"click"),await wait(this.config)}else{if(1!==selectedOptions.length)throw getConfig2().getElementError("Cannot select multiple options on a non-multiple select",select);{let withPointerEvents=0===this.config.pointerEventsCheck||hasPointerEvents(this,select);withPointerEvents?await this.click(select):focusElement(select),selectOption(selectedOptions[0]),withPointerEvents&&(this.dispatchUIEvent(select,"pointerover"),this.dispatchUIEvent(select,"pointerenter"),this.dispatchUIEvent(select,"mouseover"),this.dispatchUIEvent(select,"mouseenter"),this.dispatchUIEvent(select,"pointerup"),this.dispatchUIEvent(select,"mouseup"),this.dispatchUIEvent(select,"click")),await wait(this.config)}}else{if("listbox"!==select.getAttribute("role"))throw getConfig2().getElementError("Cannot select options on elements that are neither select nor listbox elements",select);for(let option of selectedOptions)await this.click(option),await this.unhover(option)}}var fakeFiles=Symbol("files and value properties are mocked");function restoreProperty(obj,prop,descriptor){descriptor?Object.defineProperty(obj,prop,descriptor):delete obj[prop]}var userEventApi={click:async function click(element){let pointerIn=[];return this.config.skipHover||pointerIn.push({target:element}),pointerIn.push({keys:"[MouseLeft]",target:element}),this.pointer(pointerIn)},dblClick:async function dblClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft]"])},tripleClick:async function tripleClick(element){return this.pointer([{target:element},"[MouseLeft][MouseLeft][MouseLeft]"])},hover:async function hover(element){return this.pointer({target:element})},unhover:async function unhover(element){return assertPointerEvents(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:element.ownerDocument.body})},tab:async function tab({shift:shift}={}){return this.keyboard(!0===shift?"{Shift>}{Tab}{/Shift}":!1===shift?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")},keyboard:async function keyboard(text){let actions=function parseKeyDef(keyboardMap,text){let defs=[];do{let{type:type5,descriptor:descriptor,consumedLength:consumedLength,releasePrevious:releasePrevious,releaseSelf:releaseSelf=!0,repeat:repeat}=readNextDescriptor(text,"keyboard");var _keyboardMap_find;let keyDef=null!==(_keyboardMap_find=keyboardMap.find((def=>{var _def_code,_def_key;return"["===type5?(null===(_def_code=def.code)||void 0===_def_code?void 0:_def_code.toLowerCase())===descriptor.toLowerCase():"{"===type5?(null===(_def_key=def.key)||void 0===_def_key?void 0:_def_key.toLowerCase())===descriptor.toLowerCase():def.key===descriptor})))&&void 0!==_keyboardMap_find?_keyboardMap_find:{key:"Unknown",code:"Unknown",["["===type5?"code":"key"]:descriptor};defs.push({keyDef:keyDef,releasePrevious:releasePrevious,releaseSelf:releaseSelf,repeat:repeat}),text=text.slice(consumedLength)}while(text);return defs}(this.config.keyboardMap,text);for(let i=0;ireadBlobText(b,window2.FileReader))));return dt}(doc).catch((()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")}));this.dispatchUIEvent(target,"paste",{clipboardData:dataTransfer})},pointer:async function pointer(input2){let{pointerMap:pointerMap}=this.config,actions=[];(Array.isArray(input2)?input2:[input2]).forEach((actionInput=>{"string"==typeof actionInput?actions.push(...parseKeyDef2(pointerMap,actionInput)):"keys"in actionInput?actions.push(...parseKeyDef2(pointerMap,actionInput.keys).map((i=>({...actionInput,...i})))):actions.push(actionInput)}));for(let i=0;i!this.config.applyAccept||function isAcceptableFile(file,accept){if(!accept)return!0;let wildcards=["audio/*","image/*","video/*"];return accept.split(",").some((acceptToken=>acceptToken.startsWith(".")?file.name.endsWith(acceptToken):wildcards.includes(acceptToken)?file.type.startsWith(acceptToken.substr(0,acceptToken.length-1)):file.type===acceptToken))}(file,input2.accept))).slice(0,input2.multiple?void 0:1),fileDialog=()=>{var _input_files;files.length===(null===(_input_files=input2.files)||void 0===_input_files?void 0:_input_files.length)&&files.every(((f4,i)=>{var _input_files2;return f4===(null===(_input_files2=input2.files)||void 0===_input_files2?void 0:_input_files2.item(i))}))||(function setFiles(el,files){var _el_fakeFiles;null===(_el_fakeFiles=el[fakeFiles])||void 0===_el_fakeFiles||_el_fakeFiles.restore();let typeDescr=Object.getOwnPropertyDescriptor(el,"type"),valueDescr=Object.getOwnPropertyDescriptor(el,"value"),filesDescr=Object.getOwnPropertyDescriptor(el,"files");function restore(){restoreProperty(el,"type",typeDescr),restoreProperty(el,"value",valueDescr),restoreProperty(el,"files",filesDescr)}el[fakeFiles]={restore:restore},Object.defineProperties(el,{files:{configurable:!0,get:()=>files},value:{configurable:!0,get:()=>files.length?`C:\\fakepath\\${files[0].name}`:"",set(v){var _valueDescr_set;""===v?restore():null==valueDescr||null===(_valueDescr_set=valueDescr.set)||void 0===_valueDescr_set||_valueDescr_set.call(el,v)}},type:{configurable:!0,get:()=>"file",set(v){"file"!==v&&(restore(),el.type=v)}}})}(input2,createFileList(getWindow(element),files)),this.dispatchUIEvent(input2,"input"),this.dispatchUIEvent(input2,"change"))};input2.addEventListener("fileDialog",fileDialog),await this.click(element),input2.removeEventListener("fileDialog",fileDialog)}};var defaultOptionsDirect={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:defaultKeyMap,pointerMap:[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}],pointerEventsCheck:PointerEventsCheckLevel.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},defaultOptionsSetup={...defaultOptionsDirect,writeToClipboard:!0};function createConfig(options={},defaults=defaultOptionsSetup,node){let document2=function getDocument2(options,node,defaults){var _options_document,_ref;return null!==(_ref=null!==(_options_document=options.document)&&void 0!==_options_document?_options_document:node&&function getDocumentFromNode(el){return function isDocument2(node){return 9===node.nodeType}(el)?el:el.ownerDocument}(node))&&void 0!==_ref?_ref:defaults.document}(options,node,defaults);return{...defaults,...options,document:document2}}function setupDirect({keyboardState:keyboardState,pointerState:pointerState,...options}={},node){let config3=createConfig(options,defaultOptionsDirect,node);var _ref;prepareDocument(config3.document);let system=null!==(_ref=pointerState??keyboardState)&&void 0!==_ref?_ref:new System;return{api:createInstance(config3,system).api,system:system}}function setupSub(options){return createInstance({...this.config,...options},this.system).api}function wrapAndBindImpl(instance,impl){function method(...args){return setLevelRef(instance,ApiLevel.Call),function wrapAsync(implementation){return getConfig2().asyncWrapper(implementation)}((()=>impl.apply(instance,args).then((async ret=>(await wait(instance.config),ret)))))}return Object.defineProperty(method,"name",{get:()=>impl.name}),method}function createInstance(config3,system=new System){let instance={};return Object.assign(instance,{config:config3,dispatchEvent:dispatchEvent.bind(instance),dispatchUIEvent:dispatchUIEvent.bind(instance),system:system,levelRefs:{},...userEventApi}),{instance:instance,api:{...Object.fromEntries(Object.entries(userEventApi).map((([name,api])=>[name,wrapAndBindImpl(instance,api)]))),setup:setupSub.bind(instance)}}}var directApi_exports={};function clear2(element){return setupDirect().api.clear(element)}function click2(element,options={}){return setupDirect(options,element).api.click(element)}function copy2(options={}){return setupDirect(options).api.copy()}function cut2(options={}){return setupDirect(options).api.cut()}function dblClick2(element,options={}){return setupDirect(options).api.dblClick(element)}function deselectOptions2(select,values,options={}){return setupDirect(options).api.deselectOptions(select,values)}function hover2(element,options={}){return setupDirect(options).api.hover(element)}async function keyboard2(text,options={}){let{api:api,system:system}=setupDirect(options);return api.keyboard(text).then((()=>system))}async function pointer2(input2,options={}){let{api:api,system:system}=setupDirect(options);return api.pointer(input2).then((()=>system))}function paste2(clipboardData,options){return setupDirect(options).api.paste(clipboardData)}function selectOptions2(select,values,options={}){return setupDirect(options).api.selectOptions(select,values)}function tripleClick2(element,options={}){return setupDirect(options).api.tripleClick(element)}function type4(element,text,options={}){return setupDirect(options,element).api.type(element,text,options)}function unhover2(element,options={}){let{api:api,system:system}=setupDirect(options);return system.pointer.setMousePosition({target:element}),api.unhover(element)}function upload2(element,fileOrFiles,options={}){return setupDirect(options).api.upload(element,fileOrFiles)}function tab2(options={}){return setupDirect().api.tab(options)}__export(directApi_exports,{clear:()=>clear2,click:()=>click2,copy:()=>copy2,cut:()=>cut2,dblClick:()=>dblClick2,deselectOptions:()=>deselectOptions2,hover:()=>hover2,keyboard:()=>keyboard2,paste:()=>paste2,pointer:()=>pointer2,selectOptions:()=>selectOptions2,tab:()=>tab2,tripleClick:()=>tripleClick2,type:()=>type4,unhover:()=>unhover2,upload:()=>upload2});var userEvent={...directApi_exports,setup:function setupMain(options={}){let config3=createConfig(options);var _config_document_defaultView;return prepareDocument(config3.document),function attachClipboardStubToView(window2){if(isClipboardStub(window2.navigator.clipboard))return window2.navigator.clipboard[ClipboardStubControl];let stub,realClipboard=Object.getOwnPropertyDescriptor(window2.navigator,"clipboard"),control={resetClipboardStub:()=>{stub=createClipboardStub(window2,control)},detachClipboardStub:()=>{realClipboard?Object.defineProperty(window2.navigator,"clipboard",realClipboard):Object.defineProperty(window2.navigator,"clipboard",{value:void 0,configurable:!0})}};return stub=createClipboardStub(window2,control),Object.defineProperty(window2.navigator,"clipboard",{get:()=>stub,configurable:!0}),stub[ClipboardStubControl]}(null!==(_config_document_defaultView=config3.document.defaultView)&&void 0!==_config_document_defaultView?_config_document_defaultView:globalThis.window),createInstance(config3).api}};var esm_default=function dedent(templ){for(var values=[],_i=1;_i"fireEvent"===path[0]||method.startsWith("find")||method.startsWith("waitFor")});testingLibrary.screen=new Proxy(testingLibrary.screen,{get(target,prop,receiver){return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.once.warn(esm_default` + You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead. + More info: https://storybook.js.org/docs/react/essentials/interactions + `),Reflect.get(target,prop,receiver)}});var{buildQueries:buildQueries2,configure:configure2,createEvent:createEvent3,fireEvent:fireEvent2,findAllByAltText:findAllByAltText2,findAllByDisplayValue:findAllByDisplayValue2,findAllByLabelText:findAllByLabelText2,findAllByPlaceholderText:findAllByPlaceholderText2,findAllByRole:findAllByRole2,findAllByTestId:findAllByTestId2,findAllByText:findAllByText2,findAllByTitle:findAllByTitle2,findByAltText:findByAltText2,findByDisplayValue:findByDisplayValue2,findByLabelText:findByLabelText2,findByPlaceholderText:findByPlaceholderText2,findByRole:findByRole2,findByTestId:findByTestId2,findByText:findByText2,findByTitle:findByTitle2,getAllByAltText:getAllByAltText2,getAllByDisplayValue:getAllByDisplayValue2,getAllByLabelText:getAllByLabelText2,getAllByPlaceholderText:getAllByPlaceholderText2,getAllByRole:getAllByRole2,getAllByTestId:getAllByTestId2,getAllByText:getAllByText2,getAllByTitle:getAllByTitle2,getByAltText:getByAltText2,getByDisplayValue:getByDisplayValue2,getByLabelText:getByLabelText2,getByPlaceholderText:getByPlaceholderText2,getByRole:getByRole2,getByTestId:getByTestId2,getByText:getByText2,getByTitle:getByTitle2,getConfig:getConfig3,getDefaultNormalizer:getDefaultNormalizer2,getElementError:getElementError2,getNodeText:getNodeText2,getQueriesForElement:getQueriesForElement2,getRoles:getRoles2,getSuggestedQuery:getSuggestedQuery2,isInaccessible:isInaccessible2,logDOM:logDOM2,logRoles:logRoles2,prettyDOM:prettyDOM2,queries:queries2,queryAllByAltText:queryAllByAltText2,queryAllByAttribute:queryAllByAttribute2,queryAllByDisplayValue:queryAllByDisplayValue2,queryAllByLabelText:queryAllByLabelText2,queryAllByPlaceholderText:queryAllByPlaceholderText2,queryAllByRole:queryAllByRole2,queryAllByTestId:queryAllByTestId2,queryAllByText:queryAllByText2,queryAllByTitle:queryAllByTitle2,queryByAltText:queryByAltText2,queryByAttribute:queryByAttribute2,queryByDisplayValue:queryByDisplayValue2,queryByLabelText:queryByLabelText2,queryByPlaceholderText:queryByPlaceholderText2,queryByRole:queryByRole2,queryByTestId:queryByTestId2,queryByText:queryByText2,queryByTitle:queryByTitle2,queryHelpers:queryHelpers2,screen:screen2,waitFor:waitFor2,waitForElementToBeRemoved:waitForElementToBeRemoved2,within:within,prettyFormat:prettyFormat2}=testingLibrary,{userEvent:userEvent2}=(0,_storybook_instrumenter__WEBPACK_IMPORTED_MODULE_2__.wV)({userEvent:userEvent},{intercept:!0}),{expect:expect3}=(0,_storybook_instrumenter__WEBPACK_IMPORTED_MODULE_2__.wV)({expect:expect2},{getKeys:(obj,depth)=>{let privateApi=["assert","__methods","__flags","_obj"];if(obj.constructor===Assertion){let keys2=Object.keys(Object.getPrototypeOf(obj)).filter((it=>!privateApi.includes(it)));return depth>2?keys2:[...keys2,"not"]}return Object.keys(obj)},intercept:method=>"expect"!==method}),traverseArgs=(value,depth=0,key)=>{if(depth>5||null==value)return value;if(isMockFunction(value))return key&&value.mockName(key),value;if("function"==typeof value&&"isAction"in value&&value.isAction&&(!("implicit"in value)||!value.implicit)){let mock=fn2(value);return key&&mock.mockName(key),mock}if(Array.isArray(value))return depth++,value.map((item=>traverseArgs(item,depth)));if("object"==typeof value&&value.constructor===Object){depth++;for(let[k2,v]of Object.entries(value))Object.getOwnPropertyDescriptor(value,k2)?.writable&&(value[k2]=traverseArgs(v,depth,k2));return value}return value};_storybook_global__WEBPACK_IMPORTED_MODULE_0__.global.__STORYBOOK_TEST_LOADERS__=[({parameters:parameters})=>{!0===parameters?.test?.mockReset?function resetAllMocks(){mocks.forEach((spy=>spy.mockReset()))}():!0===parameters?.test?.clearMocks?function clearAllMocks(){mocks.forEach((spy=>spy.mockClear()))}():!1!==parameters?.test?.restoreMocks&&function restoreAllMocks(){mocks.forEach((spy=>spy.mockRestore()))}()},({initialArgs:initialArgs})=>{traverseArgs(initialArgs)},context=>{globalThis.HTMLElement&&context.canvasElement instanceof globalThis.HTMLElement&&(context.canvas=within(context.canvasElement))}],_storybook_global__WEBPACK_IMPORTED_MODULE_0__.global.__STORYBOOK_TEST_ON_MOCK_CALL__=function onMockCall(callback){return listeners.add(callback),()=>{listeners.delete(callback)}}},"./node_modules/acorn-jsx/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";const XHTMLEntities=__webpack_require__("./node_modules/acorn-jsx/xhtml.js"),hexNumber=/^[\da-fA-F]+$/,decimalNumber=/^\d+$/,acornJsxMap=new WeakMap;function getJsxTokens(acorn){acorn=acorn.Parser.acorn||acorn;let acornJsx=acornJsxMap.get(acorn);if(!acornJsx){const tt=acorn.tokTypes,TokContext=acorn.TokContext,TokenType=acorn.TokenType,tc_oTag=new TokContext("...",!0,!0),tokContexts={tc_oTag:tc_oTag,tc_cTag:tc_cTag,tc_expr:tc_expr},tokTypes={jsxName:new TokenType("jsxName"),jsxText:new TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new TokenType("jsxTagEnd")};tokTypes.jsxTagStart.updateContext=function(){this.context.push(tc_expr),this.context.push(tc_oTag),this.exprAllowed=!1},tokTypes.jsxTagEnd.updateContext=function(prevType){let out=this.context.pop();out===tc_oTag&&prevType===tt.slash||out===tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===tc_expr):this.exprAllowed=!0},acornJsx={tokContexts:tokContexts,tokTypes:tokTypes},acornJsxMap.set(acorn,acornJsx)}return acornJsx}function getQualifiedJSXName(object){return object?"JSXIdentifier"===object.type?object.name:"JSXNamespacedName"===object.type?object.namespace.name+":"+object.name.name:"JSXMemberExpression"===object.type?getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property):void 0:object}module.exports=function(options){return options=options||{},function(Parser){return function plugin(options,Parser){const acorn=Parser.acorn||__webpack_require__("./node_modules/acorn/dist/acorn.mjs"),acornJsx=getJsxTokens(acorn),tt=acorn.tokTypes,tok=acornJsx.tokTypes,tokContexts=acorn.tokContexts,tc_oTag=acornJsx.tokContexts.tc_oTag,tc_cTag=acornJsx.tokContexts.tc_cTag,tc_expr=acornJsx.tokContexts.tc_expr,isNewLine=acorn.isNewLine,isIdentifierStart=acorn.isIdentifierStart,isIdentifierChar=acorn.isIdentifierChar;return class extends Parser{static get acornJsx(){return acornJsx}jsx_readToken(){let out="",chunkStart=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let ch=this.input.charCodeAt(this.pos);switch(ch){case 60:case 123:return this.pos===this.start?60===ch&&this.exprAllowed?(++this.pos,this.finishToken(tok.jsxTagStart)):this.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.pos),this.finishToken(tok.jsxText,out));case 38:out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===ch?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!0),chunkStart=this.pos):++this.pos}}}jsx_readNewLine(normalizeCRLF){let out,ch=this.input.charCodeAt(this.pos);return++this.pos,13===ch&&10===this.input.charCodeAt(this.pos)?(++this.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),this.options.locations&&(++this.curLine,this.lineStart=this.pos),out}jsx_readString(quote){let out="",chunkStart=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let ch=this.input.charCodeAt(this.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!1),chunkStart=this.pos):++this.pos}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(tt.string,out)}jsx_readEntity(){let entity,str="",count=0,ch=this.input[this.pos];"&"!==ch&&this.raise(this.pos,"Entity must start with an ampersand");let startPos=++this.pos;for(;this.pos")}let fragmentOrElement=openingElement.name?"Element":"Fragment";return node["opening"+fragmentOrElement]=openingElement,node["closing"+fragmentOrElement]=closingElement,node.children=children,this.type===tt.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(node,"JSX"+fragmentOrElement)}jsx_parseText(){let node=this.parseLiteral(this.value);return node.type="JSXText",node}jsx_parseElement(){let startPos=this.start,startLoc=this.startLoc;return this.next(),this.jsx_parseElementAt(startPos,startLoc)}parseExprAtom(refShortHandDefaultPos){return this.type===tok.jsxText?this.jsx_parseText():this.type===tok.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(refShortHandDefaultPos)}readToken(code){let context=this.curContext();if(context===tc_expr)return this.jsx_readToken();if(context===tc_oTag||context===tc_cTag){if(isIdentifierStart(code))return this.jsx_readWord();if(62==code)return++this.pos,this.finishToken(tok.jsxTagEnd);if((34===code||39===code)&&context==tc_oTag)return this.jsx_readString(code)}return 60===code&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(tok.jsxTagStart)):super.readToken(code)}updateContext(prevType){if(this.type==tt.braceL){var curContext=this.curContext();curContext==tc_oTag?this.context.push(tokContexts.b_expr):curContext==tc_expr?this.context.push(tokContexts.b_tmpl):super.updateContext(prevType),this.exprAllowed=!0}else{if(this.type!==tt.slash||prevType!==tok.jsxTagStart)return super.updateContext(prevType);this.context.length-=2,this.context.push(tc_cTag),this.exprAllowed=!1}}}}({allowNamespaces:!1!==options.allowNamespaces,allowNamespacedObjects:!!options.allowNamespacedObjects},Parser)}},Object.defineProperty(module.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(__webpack_require__("./node_modules/acorn/dist/acorn.mjs")).tokTypes},configurable:!0,enumerable:!0})},"./node_modules/acorn-jsx/xhtml.js":function(module){module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"./node_modules/acorn/dist/acorn.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Node:function(){return Node},Parser:function(){return Parser},Position:function(){return Position},SourceLocation:function(){return SourceLocation},TokContext:function(){return TokContext},Token:function(){return Token},TokenType:function(){return TokenType},defaultOptions:function(){return defaultOptions},getLineInfo:function(){return getLineInfo},isIdentifierChar:function(){return isIdentifierChar},isIdentifierStart:function(){return isIdentifierStart},isNewLine:function(){return isNewLine},keywordTypes:function(){return keywords$1},lineBreak:function(){return lineBreak},lineBreakG:function(){return lineBreakG},nonASCIIwhitespace:function(){return nonASCIIwhitespace},parse:function(){return parse},parseExpressionAt:function(){return parseExpressionAt},tokContexts:function(){return types$1},tokTypes:function(){return types},tokenizer:function(){return tokenizer},version:function(){return version}});var reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;var astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){for(var pos=65536,i=0;icode)return!1;if((pos+=set[i+1])>=code)return!0}}function isIdentifierStart(code,astral){return code<65?36===code:code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):!1!==astral&&isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code,astral){return code<48?36===code:code<58||!(code<65)&&(code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):!1!==astral&&(isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes)))))}var TokenType=function TokenType(label,conf){void 0===conf&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null};function binop(name,prec){return new TokenType(name,{beforeExpr:!0,binop:prec})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords$1={};function kw(name,options){return void 0===options&&(options={}),options.keyword=name,keywords$1[name]=new TokenType(name,options)}var types={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code,ecma2019String){return 10===code||13===code||!ecma2019String&&(8232===code||8233===code)}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString=ref.toString;function has(obj,propName){return hasOwnProperty.call(obj,propName)}var isArray=Array.isArray||function(obj){return"[object Array]"===toString.call(obj)};function wordsRegexp(words){return new RegExp("^(?:"+words.replace(/ /g,"|")+")$")}var Position=function Position(line,col){this.line=line,this.column=col};Position.prototype.offset=function offset(n){return new Position(this.line,this.column+n)};var SourceLocation=function SourceLocation(p,start,end){this.start=start,this.end=end,null!==p.sourceFile&&(this.source=p.sourceFile)};function getLineInfo(input,offset){for(var line=1,cur=0;;){lineBreakG.lastIndex=cur;var match=lineBreakG.exec(input);if(!(match&&match.index=2015&&(options.ecmaVersion-=2009),null==options.allowReserved&&(options.allowReserved=options.ecmaVersion<5),isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)}}return isArray(options.onComment)&&(options.onComment=function pushComment(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start:start,end:end};options.locations&&(comment.loc=new SourceLocation(this,startLoc,endLoc)),options.ranges&&(comment.range=[start,end]),array.push(comment)}}(options,options.onComment)),options}function functionFlags(async,generator){return 2|(async?4:0)|(generator?8:0)}var Parser=function Parser(options,input,startPos){this.options=options=getOptions(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp(keywords[options.ecmaVersion>=6?6:"module"===options.sourceType?"5module":5]);var reserved="";if(!0!==options.allowReserved){for(var v=options.ecmaVersion;!(reserved=reservedWords[v]);v--);"module"===options.sourceType&&(reserved+=" await")}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict),this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===options.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Parser.prototype.parse=function parse(){var node=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(node)},prototypeAccessors.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},prototypeAccessors.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},prototypeAccessors.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},prototypeAccessors.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},prototypeAccessors.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Parser.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Parser.extend=function extend(){for(var plugins=[],len=arguments.length;len--;)plugins[len]=arguments[len];for(var cls=this,i=0;i=,?^&]/.test(next)||"!"===next&&"="===this.input.charAt(end+1))}start+=match[0].length,skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length,";"===this.input[start]&&start++}},pp.eat=function(type){return this.type===type&&(this.next(),!0)},pp.isContextual=function(name){return this.type===types.name&&this.value===name&&!this.containsEsc},pp.eatContextual=function(name){return!!this.isContextual(name)&&(this.next(),!0)},pp.expectContextual=function(name){this.eatContextual(name)||this.unexpected()},pp.canInsertSemicolon=function(){return this.type===types.eof||this.type===types.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp.semicolon=function(){this.eat(types.semi)||this.insertSemicolon()||this.unexpected()},pp.afterTrailingComma=function(tokType,notNext){if(this.type===tokType)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),notNext||this.next(),!0},pp.expect=function(type){this.eat(type)||this.unexpected()},pp.unexpected=function(pos){this.raise(null!=pos?pos:this.start,"Unexpected token")},pp.checkPatternErrors=function(refDestructuringErrors,isAssign){if(refDestructuringErrors){refDestructuringErrors.trailingComma>-1&&this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element");var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;parens>-1&&this.raiseRecoverable(parens,"Parenthesized pattern")}},pp.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors)return!1;var shorthandAssign=refDestructuringErrors.shorthandAssign,doubleProto=refDestructuringErrors.doubleProto;if(!andThrow)return shorthandAssign>=0||doubleProto>=0;shorthandAssign>=0&&this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns"),doubleProto>=0&&this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property")},pp.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(node,!1,!context);case types._class:return context&&this.unexpected(),this.parseClass(node,!0);case types._if:return this.parseIfStatement(node);case types._return:return this.parseReturnStatement(node);case types._switch:return this.parseSwitchStatement(node);case types._throw:return this.parseThrowStatement(node);case types._try:return this.parseTryStatement(node);case types._const:case types._var:return kind=kind||this.value,context&&"var"!==kind&&this.unexpected(),this.parseVarStatement(node,kind);case types._while:return this.parseWhileStatement(node);case types._with:return this.parseWithStatement(node);case types.braceL:return this.parseBlock(!0,node);case types.semi:return this.parseEmptyStatement(node);case types._export:case types._import:if(this.options.ecmaVersion>10&&starttype===types._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(40===nextCh||46===nextCh)return this.parseExpressionStatement(node,this.parseExpression())}return this.options.allowImportExportEverywhere||(topLevel||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),starttype===types._import?this.parseImport(node):this.parseExport(node,exports);default:if(this.isAsyncFunction())return context&&this.unexpected(),this.next(),this.parseFunctionStatement(node,!0,!context);var maybeName=this.value,expr=this.parseExpression();return starttype===types.name&&"Identifier"===expr.type&&this.eat(types.colon)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}},pp$1.parseBreakContinueStatement=function(node,keyword){var isBreak="break"===keyword;this.next(),this.eat(types.semi)||this.insertSemicolon()?node.label=null:this.type!==types.name?this.unexpected():(node.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(types.semi):this.semicolon(),this.finishNode(node,"DoWhileStatement")},pp$1.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types.parenL),this.type===types.semi)return awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,null);var isLet=this.isLet();if(this.type===types._var||this.type===types._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;return this.next(),this.parseVar(init$1,!0,kind),this.finishNode(init$1,"VariableDeclaration"),(this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===init$1.declarations.length?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.parseForIn(node,init$1)):(awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init$1))}var refDestructuringErrors=new DestructuringErrors,init=this.parseExpression(!0,refDestructuringErrors);return this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.toAssignable(init,!1,refDestructuringErrors),this.checkLVal(init),this.parseForIn(node,init)):(this.checkExpressionErrors(refDestructuringErrors,!0),awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init))},pp$1.parseFunctionStatement=function(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),!1,isAsync)},pp$1.parseIfStatement=function(node){return this.next(),node.test=this.parseParenExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(types._else)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")},pp$1.parseReturnStatement=function(node){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types.semi)||this.insertSemicolon()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")},pp$1.parseSwitchStatement=function(node){var cur;this.next(),node.discriminant=this.parseParenExpression(),node.cases=[],this.expect(types.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var sawDefault=!1;this.type!==types.braceR;)if(this.type===types._case||this.type===types._default){var isCase=this.type===types._case;cur&&this.finishNode(cur,"SwitchCase"),node.cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),sawDefault=!0,cur.test=null),this.expect(types.colon)}else cur||this.unexpected(),cur.consequent.push(this.parseStatement(null));return this.exitScope(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(node,"SwitchStatement")},pp$1.parseThrowStatement=function(node){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")};var empty=[];pp$1.parseTryStatement=function(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.type===types._catch){var clause=this.startNode();if(this.next(),this.eat(types.parenL)){clause.param=this.parseBindingAtom();var simple="Identifier"===clause.param.type;this.enterScope(simple?32:0),this.checkLVal(clause.param,simple?4:2),this.expect(types.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),clause.param=null,this.enterScope(0);clause.body=this.parseBlock(!1),this.exitScope(),node.handler=this.finishNode(clause,"CatchClause")}return node.finalizer=this.eat(types._finally)?this.parseBlock():null,node.handler||node.finalizer||this.raise(node.start,"Missing catch or finally clause"),this.finishNode(node,"TryStatement")},pp$1.parseVarStatement=function(node,kind){return this.next(),this.parseVar(node,!1,kind),this.semicolon(),this.finishNode(node,"VariableDeclaration")},pp$1.parseWhileStatement=function(node){return this.next(),node.test=this.parseParenExpression(),this.labels.push(loopLabel),node.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(node,"WhileStatement")},pp$1.parseWithStatement=function(node){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),node.object=this.parseParenExpression(),node.body=this.parseStatement("with"),this.finishNode(node,"WithStatement")},pp$1.parseEmptyStatement=function(node){return this.next(),this.finishNode(node,"EmptyStatement")},pp$1.parseLabeledStatement=function(node,maybeName,expr,context){for(var i$1=0,list=this.labels;i$1=0;i--){var label$1=this.labels[i];if(label$1.statementStart!==node.start)break;label$1.statementStart=this.start,label$1.kind=kind}return this.labels.push({name:maybeName,kind:kind,statementStart:this.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")},pp$1.parseExpressionStatement=function(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")},pp$1.parseBlock=function(createNewLexicalScope,node,exitStrict){for(void 0===createNewLexicalScope&&(createNewLexicalScope=!0),void 0===node&&(node=this.startNode()),node.body=[],this.expect(types.braceL),createNewLexicalScope&&this.enterScope(0);this.type!==types.braceR;){var stmt=this.parseStatement(null);node.body.push(stmt)}return exitStrict&&(this.strict=!1),this.next(),createNewLexicalScope&&this.exitScope(),this.finishNode(node,"BlockStatement")},pp$1.parseFor=function(node,init){return node.init=init,this.expect(types.semi),node.test=this.type===types.semi?null:this.parseExpression(),this.expect(types.semi),node.update=this.type===types.parenR?null:this.parseExpression(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,"ForStatement")},pp$1.parseForIn=function(node,init){var isForIn=this.type===types._in;return this.next(),"VariableDeclaration"===init.type&&null!=init.declarations[0].init&&(!isForIn||this.options.ecmaVersion<8||this.strict||"var"!==init.kind||"Identifier"!==init.declarations[0].id.type)?this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===init.type&&this.raise(init.start,"Invalid left-hand side in for-loop"),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssign(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")},pp$1.parseVar=function(node,isFor,kind){for(node.declarations=[],node.kind=kind;;){var decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(types.eq)?decl.init=this.parseMaybeAssign(isFor):"const"!==kind||this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===decl.id.type||isFor&&(this.type===types._in||this.isContextual("of"))?decl.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),node.declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(types.comma))break}return node},pp$1.parseVarId=function(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,"var"===kind?1:2,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2;pp$1.parseFunction=function(node,statement,allowExpressionBody,isAsync){this.initFunction(node),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync)&&(this.type===types.star&&statement&FUNC_HANGING_STATEMENT&&this.unexpected(),node.generator=this.eat(types.star)),this.options.ecmaVersion>=8&&(node.async=!!isAsync),statement&FUNC_STATEMENT&&(node.id=4&statement&&this.type!==types.name?null:this.parseIdent(),!node.id||statement&FUNC_HANGING_STATEMENT||this.checkLVal(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?1:2:3));var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(node.async,node.generator)),statement&FUNC_STATEMENT||(node.id=this.type===types.name?this.parseIdent():null),this.parseFunctionParams(node),this.parseFunctionBody(node,allowExpressionBody,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$1.parseFunctionParams=function(node){this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$1.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=!0,this.parseClassId(node,isStatement),this.parseClassSuper(node);var classBody=this.startNode(),hadConstructor=!1;for(classBody.body=[],this.expect(types.braceL);this.type!==types.braceR;){var element=this.parseClassElement(null!==node.superClass);element&&(classBody.body.push(element),"MethodDefinition"===element.type&&"constructor"===element.kind&&(hadConstructor&&this.raise(element.start,"Duplicate constructor in the same class"),hadConstructor=!0))}return this.strict=oldStrict,this.next(),node.body=this.finishNode(classBody,"ClassBody"),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")},pp$1.parseClassElement=function(constructorAllowsSuper){var this$1=this;if(this.eat(types.semi))return null;var method=this.startNode(),tryContextual=function(k,noLineBreak){void 0===noLineBreak&&(noLineBreak=!1);var start=this$1.start,startLoc=this$1.startLoc;return!!this$1.eatContextual(k)&&(!(this$1.type===types.parenL||noLineBreak&&this$1.canInsertSemicolon())||(method.key&&this$1.unexpected(),method.computed=!1,method.key=this$1.startNodeAt(start,startLoc),method.key.name=k,this$1.finishNode(method.key,"Identifier"),!1))};method.kind="method",method.static=tryContextual("static");var isGenerator=this.eat(types.star),isAsync=!1;isGenerator||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star)):tryContextual("get")?method.kind="get":tryContextual("set")&&(method.kind="set")),method.key||this.parsePropertyName(method);var key=method.key,allowsDirectSuper=!1;return method.computed||method.static||!("Identifier"===key.type&&"constructor"===key.name||"Literal"===key.type&&"constructor"===key.value)?method.static&&"Identifier"===key.type&&"prototype"===key.name&&this.raise(key.start,"Classes may not have a static property named prototype"):("method"!==method.kind&&this.raise(key.start,"Constructor can't have get/set modifier"),isGenerator&&this.raise(key.start,"Constructor can't be a generator"),isAsync&&this.raise(key.start,"Constructor can't be an async method"),method.kind="constructor",allowsDirectSuper=constructorAllowsSuper),this.parseClassMethod(method,isGenerator,isAsync,allowsDirectSuper),"get"===method.kind&&0!==method.value.params.length&&this.raiseRecoverable(method.value.start,"getter should have no params"),"set"===method.kind&&1!==method.value.params.length&&this.raiseRecoverable(method.value.start,"setter should have exactly one param"),"set"===method.kind&&"RestElement"===method.value.params[0].type&&this.raiseRecoverable(method.value.params[0].start,"Setter cannot use rest params"),method},pp$1.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){return method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper),this.finishNode(method,"MethodDefinition")},pp$1.parseClassId=function(node,isStatement){this.type===types.name?(node.id=this.parseIdent(),isStatement&&this.checkLVal(node.id,2,!1)):(!0===isStatement&&this.unexpected(),node.id=null)},pp$1.parseClassSuper=function(node){node.superClass=this.eat(types._extends)?this.parseExprSubscripts():null},pp$1.parseExport=function(node,exports){if(this.next(),this.eat(types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(node.exported=this.parseIdent(!0),this.checkExport(exports,node.exported.name,this.lastTokStart)):node.exported=null),this.expectContextual("from"),this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom(),this.semicolon(),this.finishNode(node,"ExportAllDeclaration");if(this.eat(types._default)){var isAsync;if(this.checkExport(exports,"default",this.lastTokStart),this.type===types._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next(),isAsync&&this.next(),node.declaration=this.parseFunction(fNode,4|FUNC_STATEMENT,!1,isAsync)}else if(this.type===types._class){var cNode=this.startNode();node.declaration=this.parseClass(cNode,"nullableID")}else node.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())node.declaration=this.parseStatement(null),"VariableDeclaration"===node.declaration.type?this.checkVariableExport(exports,node.declaration.declarations):this.checkExport(exports,node.declaration.id.name,node.declaration.id.start),node.specifiers=[],node.source=null;else{if(node.declaration=null,node.specifiers=this.parseExportSpecifiers(exports),this.eatContextual("from"))this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom();else{for(var i=0,list=node.specifiers;i=6&&node)switch(node.type){case"Identifier":this.inAsync&&"await"===node.name&&this.raise(node.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);for(var i=0,list=node.properties;i=8&&!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()&&this.eat(types._function))return this.parseFunction(this.startNodeAt(startPos,startLoc),0,!1,!0);if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types.arrow))return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!1);if(this.options.ecmaVersion>=8&&"async"===id.name&&this.type===types.name&&!containsEsc)return id=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(types.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!0)}return id;case types.regexp:var value=this.value;return(node=this.parseLiteral(value.value)).regex={pattern:value.pattern,flags:value.flags},node;case types.num:case types.string:return this.parseLiteral(this.value);case types._null:case types._true:case types._false:return(node=this.startNode()).value=this.type===types._null?null:this.type===types._true,node.raw=this.type.keyword,this.next(),this.finishNode(node,"Literal");case types.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow);return refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)&&(refDestructuringErrors.parenthesizedAssign=start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=start)),expr;case types.bracketL:return node=this.startNode(),this.next(),node.elements=this.parseExprList(types.bracketR,!0,!0,refDestructuringErrors),this.finishNode(node,"ArrayExpression");case types.braceL:return this.parseObj(!1,refDestructuringErrors);case types._function:return node=this.startNode(),this.next(),this.parseFunction(node,0);case types._class:return this.parseClass(this.startNode(),!1);case types._new:return this.parseNew();case types.backQuote:return this.parseTemplate();case types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},pp$3.parseExprImport=function(){var node=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var meta=this.parseIdent(!0);switch(this.type){case types.parenL:return this.parseDynamicImport(node);case types.dot:return node.meta=meta,this.parseImportMeta(node);default:this.unexpected()}},pp$3.parseDynamicImport=function(node){if(this.next(),node.source=this.parseMaybeAssign(),!this.eat(types.parenR)){var errorPos=this.start;this.eat(types.comma)&&this.eat(types.parenR)?this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()"):this.unexpected(errorPos)}return this.finishNode(node,"ImportExpression")},pp$3.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"meta"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'"),containsEsc&&this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module"),this.finishNode(node,"MetaProperty")},pp$3.parseLiteral=function(value){var node=this.startNode();return node.value=value,node.raw=this.input.slice(this.start,this.end),110===node.raw.charCodeAt(node.raw.length-1)&&(node.bigint=node.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(node,"Literal")},pp$3.parseParenExpression=function(){this.expect(types.parenL);var val=this.parseExpression();return this.expect(types.parenR),val},pp$3.parseParenAndDistinguishExpression=function(canBeArrow){var val,startPos=this.start,startLoc=this.startLoc,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var spreadStart,innerStartPos=this.start,innerStartLoc=this.startLoc,exprList=[],first=!0,lastIsComma=!1,refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==types.parenR;){if(first?first=!1:this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(types.parenR,!0)){lastIsComma=!0;break}if(this.type===types.ellipsis){spreadStart=this.start,exprList.push(this.parseParenItem(this.parseRestBinding())),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}exprList.push(this.parseMaybeAssign(!1,refDestructuringErrors,this.parseParenItem))}var innerEndPos=this.start,innerEndLoc=this.startLoc;if(this.expect(types.parenR),canBeArrow&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.parseParenArrowList(startPos,startLoc,exprList);exprList.length&&!lastIsComma||this.unexpected(this.lastTokStart),spreadStart&&this.unexpected(spreadStart),this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,exprList.length>1?((val=this.startNodeAt(innerStartPos,innerStartLoc)).expressions=exprList,this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)):val=exprList[0]}else val=this.parseParenExpression();if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);return par.expression=val,this.finishNode(par,"ParenthesizedExpression")}return val},pp$3.parseParenItem=function(item){return item},pp$3.parseParenArrowList=function(startPos,startLoc,exprList){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList)};var empty$1=[];pp$3.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var node=this.startNode(),meta=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types.dot)){node.meta=meta;var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"target"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'"),containsEsc&&this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(node.start,"'new.target' can only be used in functions"),this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc,isImport=this.type===types._import;return node.callee=this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0),isImport&&"ImportExpression"===node.callee.type&&this.raise(startPos,"Cannot use new with import()"),this.eat(types.parenL)?node.arguments=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1):node.arguments=empty$1,this.finishNode(node,"NewExpression")},pp$3.parseTemplateElement=function(ref){var isTagged=ref.isTagged,elem=this.startNode();return this.type===types.invalidTemplate?(isTagged||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),elem.value={raw:this.value,cooked:null}):elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),elem.tail=this.type===types.backQuote,this.finishNode(elem,"TemplateElement")},pp$3.parseTemplate=function(ref){void 0===ref&&(ref={});var isTagged=ref.isTagged;void 0===isTagged&&(isTagged=!1);var node=this.startNode();this.next(),node.expressions=[];var curElt=this.parseTemplateElement({isTagged:isTagged});for(node.quasis=[curElt];!curElt.tail;)this.type===types.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types.dollarBraceL),node.expressions.push(this.parseExpression()),this.expect(types.braceR),node.quasis.push(curElt=this.parseTemplateElement({isTagged:isTagged}));return this.next(),this.finishNode(node,"TemplateLiteral")},pp$3.isAsyncProp=function(prop){return!prop.computed&&"Identifier"===prop.key.type&&"async"===prop.key.name&&(this.type===types.name||this.type===types.num||this.type===types.string||this.type===types.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$3.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=!0,propHash={};for(node.properties=[],this.next();!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types.braceR))break;var prop=this.parseProperty(isPattern,refDestructuringErrors);isPattern||this.checkPropClash(prop,propHash,refDestructuringErrors),node.properties.push(prop)}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")},pp$3.parseProperty=function(isPattern,refDestructuringErrors){var isGenerator,isAsync,startPos,startLoc,prop=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(types.ellipsis))return isPattern?(prop.argument=this.parseIdent(!1),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(prop,"RestElement")):(this.type===types.parenL&&refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&(refDestructuringErrors.parenthesizedAssign=this.start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=this.start)),prop.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.type===types.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start),this.finishNode(prop,"SpreadElement"));this.options.ecmaVersion>=6&&(prop.method=!1,prop.shorthand=!1,(isPattern||refDestructuringErrors)&&(startPos=this.start,startLoc=this.startLoc),isPattern||(isGenerator=this.eat(types.star)));var containsEsc=this.containsEsc;return this.parsePropertyName(prop),!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star),this.parsePropertyName(prop,refDestructuringErrors)):isAsync=!1,this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc),this.finishNode(prop,"Property")},pp$3.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types.colon&&this.unexpected(),this.eat(types.colon))prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,refDestructuringErrors),prop.kind="init";else if(this.options.ecmaVersion>=6&&this.type===types.parenL)isPattern&&this.unexpected(),prop.kind="init",prop.method=!0,prop.value=this.parseMethod(isGenerator,isAsync);else if(isPattern||containsEsc||!(this.options.ecmaVersion>=5)||prop.computed||"Identifier"!==prop.key.type||"get"!==prop.key.name&&"set"!==prop.key.name||this.type===types.comma||this.type===types.braceR||this.type===types.eq)this.options.ecmaVersion>=6&&!prop.computed&&"Identifier"===prop.key.type?((isGenerator||isAsync)&&this.unexpected(),this.checkUnreserved(prop.key),"await"!==prop.key.name||this.awaitIdentPos||(this.awaitIdentPos=startPos),prop.kind="init",isPattern?prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key):this.type===types.eq&&refDestructuringErrors?(refDestructuringErrors.shorthandAssign<0&&(refDestructuringErrors.shorthandAssign=this.start),prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key)):prop.value=prop.key,prop.shorthand=!0):this.unexpected();else{(isGenerator||isAsync)&&this.unexpected(),prop.kind=prop.key.name,this.parsePropertyName(prop),prop.value=this.parseMethod(!1);var paramCount="get"===prop.kind?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;"get"===prop.kind?this.raiseRecoverable(start,"getter should have no params"):this.raiseRecoverable(start,"setter should have exactly one param")}else"set"===prop.kind&&"RestElement"===prop.value.params[0].type&&this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params")}},pp$3.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types.bracketL))return prop.computed=!0,prop.key=this.parseMaybeAssign(),this.expect(types.bracketR),prop.key;prop.computed=!1}return prop.key=this.type===types.num||this.type===types.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pp$3.initFunction=function(node){node.id=null,this.options.ecmaVersion>=6&&(node.generator=node.expression=!1),this.options.ecmaVersion>=8&&(node.async=!1)},pp$3.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.initFunction(node),this.options.ecmaVersion>=6&&(node.generator=isGenerator),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(isAsync,node.generator)|(allowDirectSuper?128:0)),this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(node,!1,!0),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"FunctionExpression")},pp$3.parseArrowExpression=function(node,params,isAsync){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.enterScope(16|functionFlags(isAsync,!1)),this.initFunction(node),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,node.params=this.toAssignableList(params,!0),this.parseFunctionBody(node,!0,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"ArrowFunctionExpression")},pp$3.parseFunctionBody=function(node,isArrowFunction,isMethod){var isExpression=isArrowFunction&&this.type!==types.braceL,oldStrict=this.strict,useStrict=!1;if(isExpression)node.body=this.parseMaybeAssign(),node.expression=!0,this.checkParams(node,!1);else{var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);oldStrict&&!nonSimple||(useStrict=this.strictDirective(this.end))&&nonSimple&&this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list");var oldLabels=this.labels;this.labels=[],useStrict&&(this.strict=!0),this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params)),this.strict&&node.id&&this.checkLVal(node.id,5),node.body=this.parseBlock(!1,void 0,useStrict&&!oldStrict),node.expression=!1,this.adaptDirectivePrologue(node.body.body),this.labels=oldLabels}this.exitScope()},pp$3.isSimpleParamList=function(params){for(var i=0,list=params;i-1||scope.functions.indexOf(name)>-1||scope.var.indexOf(name)>-1,scope.lexical.push(name),this.inModule&&1&scope.flags&&delete this.undefinedExports[name]}else if(4===bindingType){this.currentScope().lexical.push(name)}else if(3===bindingType){var scope$2=this.currentScope();redeclared=this.treatFunctionsAsVar?scope$2.lexical.indexOf(name)>-1:scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1,scope$2.functions.push(name)}else for(var i=this.scopeStack.length-1;i>=0;--i){var scope$3=this.scopeStack[i];if(scope$3.lexical.indexOf(name)>-1&&!(32&scope$3.flags&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=!0;break}if(scope$3.var.push(name),this.inModule&&1&scope$3.flags&&delete this.undefinedExports[name],3&scope$3.flags)break}redeclared&&this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared")},pp$5.checkLocalExport=function(id){-1===this.scopeStack[0].lexical.indexOf(id.name)&&-1===this.scopeStack[0].var.indexOf(id.name)&&(this.undefinedExports[id.name]=id)},pp$5.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$5.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(3&scope.flags)return scope}},pp$5.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(3&scope.flags&&!(16&scope.flags))return scope}};var Node=function Node(parser,pos,loc){this.type="",this.start=pos,this.end=0,parser.options.locations&&(this.loc=new SourceLocation(parser,loc)),parser.options.directSourceFile&&(this.sourceFile=parser.options.directSourceFile),parser.options.ranges&&(this.range=[pos,0])},pp$6=Parser.prototype;function finishNodeAt(node,type,pos,loc){return node.type=type,node.end=pos,this.options.locations&&(node.loc.end=loc),this.options.ranges&&(node.range[1]=pos),node}pp$6.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$6.startNodeAt=function(pos,loc){return new Node(this,pos,loc)},pp$6.finishNode=function(node,type){return finishNodeAt.call(this,node,type,this.lastTokEnd,this.lastTokEndLoc)},pp$6.finishNodeAt=function(node,type,pos,loc){return finishNodeAt.call(this,node,type,pos,loc)};var TokContext=function TokContext(token,isExpr,preserveSpace,override,generator){this.token=token,this.isExpr=!!isExpr,this.preserveSpace=!!preserveSpace,this.override=override,this.generator=!!generator},types$1={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,(function(p){return p.tryReadTemplateToken()})),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$7=Parser.prototype;pp$7.initialContext=function(){return[types$1.b_stat]},pp$7.braceIsBlock=function(prevType){var parent=this.curContext();return parent===types$1.f_expr||parent===types$1.f_stat||(prevType!==types.colon||parent!==types$1.b_stat&&parent!==types$1.b_expr?prevType===types._return||prevType===types.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):prevType===types._else||prevType===types.semi||prevType===types.eof||prevType===types.parenR||prevType===types.arrow||(prevType===types.braceL?parent===types$1.b_stat:prevType!==types._var&&prevType!==types._const&&prevType!==types.name&&!this.exprAllowed):!parent.isExpr)},pp$7.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var context=this.context[i];if("function"===context.token)return context.generator}return!1},pp$7.updateContext=function(prevType){var update,type=this.type;type.keyword&&prevType===types.dot?this.exprAllowed=!1:(update=type.updateContext)?update.call(this,prevType):this.exprAllowed=type.beforeExpr},types.parenR.updateContext=types.braceR.updateContext=function(){if(1!==this.context.length){var out=this.context.pop();out===types$1.b_stat&&"function"===this.curContext().token&&(out=this.context.pop()),this.exprAllowed=!out.isExpr}else this.exprAllowed=!0},types.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types$1.b_stat:types$1.b_expr),this.exprAllowed=!0},types.dollarBraceL.updateContext=function(){this.context.push(types$1.b_tmpl),this.exprAllowed=!0},types.parenL.updateContext=function(prevType){var statementParens=prevType===types._if||prevType===types._for||prevType===types._with||prevType===types._while;this.context.push(statementParens?types$1.p_stat:types$1.p_expr),this.exprAllowed=!0},types.incDec.updateContext=function(){},types._function.updateContext=types._class.updateContext=function(prevType){!prevType.beforeExpr||prevType===types.semi||prevType===types._else||prevType===types._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(prevType===types.colon||prevType===types.braceL)&&this.curContext()===types$1.b_stat?this.context.push(types$1.f_stat):this.context.push(types$1.f_expr),this.exprAllowed=!1},types.backQuote.updateContext=function(){this.curContext()===types$1.q_tmpl?this.context.pop():this.context.push(types$1.q_tmpl),this.exprAllowed=!1},types.star.updateContext=function(prevType){if(prevType===types._function){var index=this.context.length-1;this.context[index]===types$1.f_expr?this.context[index]=types$1.f_expr_gen:this.context[index]=types$1.f_gen}this.exprAllowed=!0},types.name.updateContext=function(prevType){var allowed=!1;this.options.ecmaVersion>=6&&prevType!==types.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(allowed=!0),this.exprAllowed=allowed};var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma10BinaryProperties},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},data={};function buildUnicodeData(ecmaVersion){var d=data[ecmaVersion]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion]+" "+unicodeGeneralCategoryValues),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var pp$8=Parser.prototype,RegExpValidationState=function RegExpValidationState(parser){this.parser=parser,this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":""),this.unicodeProperties=data[parser.options.ecmaVersion>=11?11:parser.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(ch){return ch<=65535?String.fromCharCode(ch):(ch-=65536,String.fromCharCode(55296+(ch>>10),56320+(1023&ch)))}function isSyntaxCharacter(ch){return 36===ch||ch>=40&&ch<=43||46===ch||63===ch||ch>=91&&ch<=94||ch>=123&&ch<=125}function isControlLetter(ch){return ch>=65&&ch<=90||ch>=97&&ch<=122}function isUnicodePropertyNameCharacter(ch){return isControlLetter(ch)||95===ch}function isUnicodePropertyValueCharacter(ch){return isUnicodePropertyNameCharacter(ch)||isDecimalDigit(ch)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102}function hexToInt(ch){return ch>=65&&ch<=70?ch-65+10:ch>=97&&ch<=102?ch-97+10:ch-48}function isOctalDigit(ch){return ch>=48&&ch<=55}RegExpValidationState.prototype.reset=function reset(start,pattern,flags){var unicode=-1!==flags.indexOf("u");this.start=0|start,this.source=pattern+"",this.flags=flags,this.switchU=unicode&&this.parser.options.ecmaVersion>=6,this.switchN=unicode&&this.parser.options.ecmaVersion>=9},RegExpValidationState.prototype.raise=function raise(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message)},RegExpValidationState.prototype.at=function at(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return-1;var c=s.charCodeAt(i);if(!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l)return c;var next=s.charCodeAt(i+1);return next>=56320&&next<=57343?(c<<10)+next-56613888:c},RegExpValidationState.prototype.nextIndex=function nextIndex(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return l;var next,c=s.charCodeAt(i);return!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l||(next=s.charCodeAt(i+1))<56320||next>57343?i+1:i+2},RegExpValidationState.prototype.current=function current(forceU){return void 0===forceU&&(forceU=!1),this.at(this.pos,forceU)},RegExpValidationState.prototype.lookahead=function lookahead(forceU){return void 0===forceU&&(forceU=!1),this.at(this.nextIndex(this.pos,forceU),forceU)},RegExpValidationState.prototype.advance=function advance(forceU){void 0===forceU&&(forceU=!1),this.pos=this.nextIndex(this.pos,forceU)},RegExpValidationState.prototype.eat=function eat(ch,forceU){return void 0===forceU&&(forceU=!1),this.current(forceU)===ch&&(this.advance(forceU),!0)},pp$8.validateRegExpFlags=function(state){for(var validFlags=state.validFlags,flags=state.flags,i=0;i-1&&this.raise(state.start,"Duplicate regular expression flag")}},pp$8.validateRegExpPattern=function(state){this.regexp_pattern(state),!state.switchN&&this.options.ecmaVersion>=9&&state.groupNames.length>0&&(state.switchN=!0,this.regexp_pattern(state))},pp$8.regexp_pattern=function(state){state.pos=0,state.lastIntValue=0,state.lastStringValue="",state.lastAssertionIsQuantifiable=!1,state.numCapturingParens=0,state.maxBackReference=0,state.groupNames.length=0,state.backReferenceNames.length=0,this.regexp_disjunction(state),state.pos!==state.source.length&&(state.eat(41)&&state.raise("Unmatched ')'"),(state.eat(93)||state.eat(125))&&state.raise("Lone quantifier brackets")),state.maxBackReference>state.numCapturingParens&&state.raise("Invalid escape");for(var i=0,list=state.backReferenceNames;i=9&&(lookbehind=state.eat(60)),state.eat(61)||state.eat(33))return this.regexp_disjunction(state),state.eat(41)||state.raise("Unterminated group"),state.lastAssertionIsQuantifiable=!lookbehind,!0}return state.pos=start,!1},pp$8.regexp_eatQuantifier=function(state,noError){return void 0===noError&&(noError=!1),!!this.regexp_eatQuantifierPrefix(state,noError)&&(state.eat(63),!0)},pp$8.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)},pp$8.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min=0,max=-1;if(this.regexp_eatDecimalDigits(state)&&(min=state.lastIntValue,state.eat(44)&&this.regexp_eatDecimalDigits(state)&&(max=state.lastIntValue),state.eat(125)))return-1!==max&&max=9?this.regexp_groupSpecifier(state):63===state.current()&&state.raise("Invalid group"),this.regexp_disjunction(state),state.eat(41))return state.numCapturingParens+=1,!0;state.raise("Unterminated group")}return!1},pp$8.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)},pp$8.regexp_eatInvalidBracedQuantifier=function(state){return this.regexp_eatBracedQuantifier(state,!0)&&state.raise("Nothing to repeat"),!1},pp$8.regexp_eatSyntaxCharacter=function(state){var ch=state.current();return!!isSyntaxCharacter(ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatPatternCharacters=function(state){for(var start=state.pos,ch=0;-1!==(ch=state.current())&&!isSyntaxCharacter(ch);)state.advance();return state.pos!==start},pp$8.regexp_eatExtendedPatternCharacter=function(state){var ch=state.current();return!(-1===ch||36===ch||ch>=40&&ch<=43||46===ch||63===ch||91===ch||94===ch||124===ch)&&(state.advance(),!0)},pp$8.regexp_groupSpecifier=function(state){if(state.eat(63)){if(this.regexp_eatGroupName(state))return-1!==state.groupNames.indexOf(state.lastStringValue)&&state.raise("Duplicate capture group name"),void state.groupNames.push(state.lastStringValue);state.raise("Invalid group")}},pp$8.regexp_eatGroupName=function(state){if(state.lastStringValue="",state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62))return!0;state.raise("Invalid capture group name")}return!1},pp$8.regexp_eatRegExpIdentifierName=function(state){if(state.lastStringValue="",this.regexp_eatRegExpIdentifierStart(state)){for(state.lastStringValue+=codePointToString(state.lastIntValue);this.regexp_eatRegExpIdentifierPart(state);)state.lastStringValue+=codePointToString(state.lastIntValue);return!0}return!1},pp$8.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierStart(ch){return isIdentifierStart(ch,!0)||36===ch||95===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierPart(ch){return isIdentifierChar(ch,!0)||36===ch||95===ch||8204===ch||8205===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatAtomEscape=function(state){return!!(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state))||(state.switchU&&(99===state.current()&&state.raise("Invalid unicode escape"),state.raise("Invalid escape")),!1)},pp$8.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n=state.lastIntValue;if(state.switchU)return n>state.maxBackReference&&(state.maxBackReference=n),!0;if(n<=state.numCapturingParens)return!0;state.pos=start}return!1},pp$8.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state))return state.backReferenceNames.push(state.lastStringValue),!0;state.raise("Invalid named reference")}return!1},pp$8.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,!1)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)},pp$8.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state))return!0;state.pos=start}return!1},pp$8.regexp_eatZero=function(state){return 48===state.current()&&!isDecimalDigit(state.lookahead())&&(state.lastIntValue=0,state.advance(),!0)},pp$8.regexp_eatControlEscape=function(state){var ch=state.current();return 116===ch?(state.lastIntValue=9,state.advance(),!0):110===ch?(state.lastIntValue=10,state.advance(),!0):118===ch?(state.lastIntValue=11,state.advance(),!0):102===ch?(state.lastIntValue=12,state.advance(),!0):114===ch&&(state.lastIntValue=13,state.advance(),!0)},pp$8.regexp_eatControlLetter=function(state){var ch=state.current();return!!isControlLetter(ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){void 0===forceU&&(forceU=!1);var start=state.pos,switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343)return state.lastIntValue=1024*(lead-55296)+(trail-56320)+65536,!0}state.pos=leadSurrogateEnd,state.lastIntValue=lead}return!0}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&function isValidUnicode(ch){return ch>=0&&ch<=1114111}(state.lastIntValue))return!0;switchU&&state.raise("Invalid unicode escape"),state.pos=start}return!1},pp$8.regexp_eatIdentityEscape=function(state){if(state.switchU)return!!this.regexp_eatSyntaxCharacter(state)||!!state.eat(47)&&(state.lastIntValue=47,!0);var ch=state.current();return!(99===ch||state.switchN&&107===ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch=state.current();if(ch>=49&&ch<=57){do{state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance()}while((ch=state.current())>=48&&ch<=57);return!0}return!1},pp$8.regexp_eatCharacterClassEscape=function(state){var ch=state.current();if(function isCharacterClassEscape(ch){return 100===ch||68===ch||115===ch||83===ch||119===ch||87===ch}(ch))return state.lastIntValue=-1,state.advance(),!0;if(state.switchU&&this.options.ecmaVersion>=9&&(80===ch||112===ch)){if(state.lastIntValue=-1,state.advance(),state.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(state)&&state.eat(125))return!0;state.raise("Invalid property name")}return!1},pp$8.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(state,name,value),!0}}if(state.pos=start,this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue),!0}return!1},pp$8.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){has(state.unicodeProperties.nonBinary,name)||state.raise("Invalid property name"),state.unicodeProperties.nonBinary[name].test(value)||state.raise("Invalid property value")},pp$8.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){state.unicodeProperties.binary.test(nameOrValue)||state.raise("Invalid property name")},pp$8.regexp_eatUnicodePropertyName=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyNameCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatUnicodePropertyValue=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyValueCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)},pp$8.regexp_eatCharacterClass=function(state){if(state.eat(91)){if(state.eat(94),this.regexp_classRanges(state),state.eat(93))return!0;state.raise("Unterminated character class")}return!1},pp$8.regexp_classRanges=function(state){for(;this.regexp_eatClassAtom(state);){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;!state.switchU||-1!==left&&-1!==right||state.raise("Invalid character class"),-1!==left&&-1!==right&&left>right&&state.raise("Range out of order in character class")}}},pp$8.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state))return!0;if(state.switchU){var ch$1=state.current();(99===ch$1||isOctalDigit(ch$1))&&state.raise("Invalid class escape"),state.raise("Invalid escape")}state.pos=start}var ch=state.current();return 93!==ch&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98))return state.lastIntValue=8,!0;if(state.switchU&&state.eat(45))return state.lastIntValue=45,!0;if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state))return!0;state.pos=start}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)},pp$8.regexp_eatClassControlLetter=function(state){var ch=state.current();return!(!isDecimalDigit(ch)&&95!==ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2))return!0;state.switchU&&state.raise("Invalid escape"),state.pos=start}return!1},pp$8.regexp_eatDecimalDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isDecimalDigit(ch=state.current());)state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance();return state.pos!==start},pp$8.regexp_eatHexDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isHexDigit(ch=state.current());)state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance();return state.pos!==start},pp$8.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n1=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n2=state.lastIntValue;n1<=3&&this.regexp_eatOctalDigit(state)?state.lastIntValue=64*n1+8*n2+state.lastIntValue:state.lastIntValue=8*n1+n2}else state.lastIntValue=n1;return!0}return!1},pp$8.regexp_eatOctalDigit=function(state){var ch=state.current();return isOctalDigit(ch)?(state.lastIntValue=ch-48,state.advance(),!0):(state.lastIntValue=0,!1)},pp$8.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i=0;i>10),56320+(1023&code)))}pp$9.next=function(ignoreEscapeSequenceInKeyword){!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp$9.getToken=function(){return this.next(),new Token(this)},"undefined"!=typeof Symbol&&(pp$9[Symbol.iterator]=function(){var this$1=this;return{next:function(){var token=this$1.getToken();return{done:token.type===types.eof,value:token}}}}),pp$9.curContext=function(){return this.context[this.context.length-1]},pp$9.nextToken=function(){var curContext=this.curContext();return curContext&&curContext.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(types.eof):curContext.override?curContext.override(this):void this.readToken(this.fullCharCodeAtPos())},pp$9.readToken=function(code){return isIdentifierStart(code,this.options.ecmaVersion>=6)||92===code?this.readWord():this.getTokenFromCode(code)},pp$9.fullCharCodeAtPos=function(){var code=this.input.charCodeAt(this.pos);return code<=55295||code>=57344?code:(code<<10)+this.input.charCodeAt(this.pos+1)-56613888},pp$9.skipBlockComment=function(){var match,startLoc=this.options.onComment&&this.curPosition(),start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(-1===end&&this.raise(this.pos-2,"Unterminated comment"),this.pos=end+2,this.options.locations)for(lineBreakG.lastIndex=start;(match=lineBreakG.exec(this.input))&&match.index8&&ch<14||ch>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch))))break loop;++this.pos}}},pp$9.finishToken=function(type,val){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var prevType=this.type;this.type=type,this.value=val,this.updateContext(prevType)},pp$9.readToken_dot=function(){var next=this.input.charCodeAt(this.pos+1);if(next>=48&&next<=57)return this.readNumber(!0);var next2=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===next&&46===next2?(this.pos+=3,this.finishToken(types.ellipsis)):(++this.pos,this.finishToken(types.dot))},pp$9.readToken_slash=function(){var next=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===next?this.finishOp(types.assign,2):this.finishOp(types.slash,1)},pp$9.readToken_mult_modulo_exp=function(code){var next=this.input.charCodeAt(this.pos+1),size=1,tokentype=42===code?types.star:types.modulo;return this.options.ecmaVersion>=7&&42===code&&42===next&&(++size,tokentype=types.starstar,next=this.input.charCodeAt(this.pos+2)),61===next?this.finishOp(types.assign,size+1):this.finishOp(tokentype,size)},pp$9.readToken_pipe_amp=function(code){var next=this.input.charCodeAt(this.pos+1);if(next===code){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(124===code?types.logicalOR:types.logicalAND,2)}return 61===next?this.finishOp(types.assign,2):this.finishOp(124===code?types.bitwiseOR:types.bitwiseAND,1)},pp$9.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(types.assign,2):this.finishOp(types.bitwiseXOR,1)},pp$9.readToken_plus_min=function(code){var next=this.input.charCodeAt(this.pos+1);return next===code?45!==next||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(types.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===next?this.finishOp(types.assign,2):this.finishOp(types.plusMin,1)},pp$9.readToken_lt_gt=function(code){var next=this.input.charCodeAt(this.pos+1),size=1;return next===code?(size=62===code&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+size)?this.finishOp(types.assign,size+1):this.finishOp(types.bitShift,size)):33!==next||60!==code||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===next&&(size=2),this.finishOp(types.relational,size)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},pp$9.readToken_eq_excl=function(code){var next=this.input.charCodeAt(this.pos+1);return 61===next?this.finishOp(types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===code&&62===next&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types.arrow)):this.finishOp(61===code?types.eq:types.prefix,1)},pp$9.readToken_question=function(){var ecmaVersion=this.options.ecmaVersion;if(ecmaVersion>=11){var next=this.input.charCodeAt(this.pos+1);if(46===next){var next2=this.input.charCodeAt(this.pos+2);if(next2<48||next2>57)return this.finishOp(types.questionDot,2)}if(63===next){if(ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(types.coalesce,2)}}return this.finishOp(types.question,1)},pp$9.getTokenFromCode=function(code){switch(code){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types.parenL);case 41:return++this.pos,this.finishToken(types.parenR);case 59:return++this.pos,this.finishToken(types.semi);case 44:return++this.pos,this.finishToken(types.comma);case 91:return++this.pos,this.finishToken(types.bracketL);case 93:return++this.pos,this.finishToken(types.bracketR);case 123:return++this.pos,this.finishToken(types.braceL);case 125:return++this.pos,this.finishToken(types.braceR);case 58:return++this.pos,this.finishToken(types.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types.backQuote);case 48:var next=this.input.charCodeAt(this.pos+1);if(120===next||88===next)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===next||79===next)return this.readRadixNumber(8);if(98===next||66===next)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(code);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code);case 124:case 38:return this.readToken_pipe_amp(code);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code);case 60:case 62:return this.readToken_lt_gt(code);case 61:case 33:return this.readToken_eq_excl(code);case 63:return this.readToken_question();case 126:return this.finishOp(types.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(code)+"'")},pp$9.finishOp=function(type,size){var str=this.input.slice(this.pos,this.pos+size);return this.pos+=size,this.finishToken(type,str)},pp$9.readRegexp=function(){for(var escaped,inClass,start=this.pos;;){this.pos>=this.input.length&&this.raise(start,"Unterminated regular expression");var ch=this.input.charAt(this.pos);if(lineBreak.test(ch)&&this.raise(start,"Unterminated regular expression"),escaped)escaped=!1;else{if("["===ch)inClass=!0;else if("]"===ch&&inClass)inClass=!1;else if("/"===ch&&!inClass)break;escaped="\\"===ch}++this.pos}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos,flags=this.readWord1();this.containsEsc&&this.unexpected(flagsStart);var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags),this.validateRegExpFlags(state),this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags)}catch(e){}return this.finishToken(types.regexp,{pattern:pattern,flags:flags,value:value})},pp$9.readInt=function(radix,len,maybeLegacyOctalNumericLiteral){for(var allowSeparators=this.options.ecmaVersion>=12&&void 0===len,isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&48===this.input.charCodeAt(this.pos),start=this.pos,total=0,lastCode=0,i=0,e=null==len?1/0:len;i=97?code-97+10:code>=65?code-65+10:code>=48&&code<=57?code-48:1/0)>=radix)break;lastCode=code,total=total*radix+val}}return allowSeparators&&95===lastCode&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===start||null!=len&&this.pos-start!==len?null:total},pp$9.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);return null==val&&this.raise(this.start+2,"Expected number in radix "+radix),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(val=stringToBigInt(this.input.slice(start,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val)},pp$9.readNumber=function(startsWithDot){var start=this.pos;startsWithDot||null!==this.readInt(10,void 0,!0)||this.raise(start,"Invalid number");var octal=this.pos-start>=2&&48===this.input.charCodeAt(start);octal&&this.strict&&this.raise(start,"Invalid number");var next=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&110===next){var val$1=stringToBigInt(this.input.slice(start,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val$1)}octal&&/[89]/.test(this.input.slice(start,this.pos))&&(octal=!1),46!==next||octal||(++this.pos,this.readInt(10),next=this.input.charCodeAt(this.pos)),69!==next&&101!==next||octal||(43!==(next=this.input.charCodeAt(++this.pos))&&45!==next||++this.pos,null===this.readInt(10)&&this.raise(start,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var val=function stringToNumber(str,isLegacyOctalNumericLiteral){return isLegacyOctalNumericLiteral?parseInt(str,8):parseFloat(str.replace(/_/g,""))}(this.input.slice(start,this.pos),octal);return this.finishToken(types.num,val)},pp$9.readCodePoint=function(){var code;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var codePos=++this.pos;code=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,code>1114111&&this.invalidStringToken(codePos,"Code point out of bounds")}else code=this.readHexChar(4);return code},pp$9.readString=function(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;92===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!1),chunkStart=this.pos):(isNewLine(ch,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(types.string,out)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp$9.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(err){if(err!==INVALID_TEMPLATE_ESCAPE_ERROR)throw err;this.readInvalidTemplateToken()}this.inTemplateElement=!1},pp$9.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(position,message)},pp$9.readTmplToken=function(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var ch=this.input.charCodeAt(this.pos);if(96===ch||36===ch&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==types.template&&this.type!==types.invalidTemplate?(out+=this.input.slice(chunkStart,this.pos),this.finishToken(types.template,out)):36===ch?(this.pos+=2,this.finishToken(types.dollarBraceL)):(++this.pos,this.finishToken(types.backQuote));if(92===ch)out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!0),chunkStart=this.pos;else if(isNewLine(ch)){switch(out+=this.input.slice(chunkStart,this.pos),++this.pos,ch){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:out+="\n";break;default:out+=String.fromCharCode(ch)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),chunkStart=this.pos}else++this.pos}},pp$9.readInvalidTemplateToken=function(){for(;this.pos=48&&ch<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);return octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),this.pos+=octalStr.length-1,ch=this.input.charCodeAt(this.pos),"0"===octalStr&&56!==ch&&57!==ch||!this.strict&&!inTemplate||this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(octal)}return isNewLine(ch)?"":String.fromCharCode(ch)}},pp$9.readHexChar=function(len){var codePos=this.pos,n=this.readInt(16,len);return null===n&&this.invalidStringToken(codePos,"Bad character escape sequence"),n},pp$9.readWord1=function(){this.containsEsc=!1;for(var word="",first=!0,chunkStart=this.pos,astral=this.options.ecmaVersion>=6;this.pos0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content})).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/sourceMaps.js":function(module){"use strict";module.exports=function(item){var content=item[1],cssMapping=item[3];if(!cssMapping)return content;if("function"==typeof btoa){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64),sourceMapping="/*# ".concat(data," */");return[content].concat([sourceMapping]).join("\n")}return[content].join("\n")}},"./node_modules/escodegen/escodegen.js":function(__unused_webpack_module,exports,__webpack_require__){!function(){"use strict";var Syntax,Precedence,BinaryPrecedence,SourceNode,estraverse,esutils,base,indent,json,renumber,hexadecimal,quotes,escapeless,newline,space,parentheses,semicolons,safeConcatenation,directive,extra,parse,sourceMap,sourceCode,preserveBlankLines,FORMAT_MINIFY,FORMAT_DEFAULTS;function isStatement(node){return CodeGenerator.Statement.hasOwnProperty(node.type)}estraverse=__webpack_require__("./node_modules/estraverse/estraverse.js"),esutils=__webpack_require__("./node_modules/esutils/lib/utils.js"),Syntax=estraverse.Syntax,BinaryPrecedence={"??":(Precedence={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22}).Coalesce,"||":Precedence.LogicalOR,"&&":Precedence.LogicalAND,"|":Precedence.BitwiseOR,"^":Precedence.BitwiseXOR,"&":Precedence.BitwiseAND,"==":Precedence.Equality,"!=":Precedence.Equality,"===":Precedence.Equality,"!==":Precedence.Equality,is:Precedence.Equality,isnt:Precedence.Equality,"<":Precedence.Relational,">":Precedence.Relational,"<=":Precedence.Relational,">=":Precedence.Relational,in:Precedence.Relational,instanceof:Precedence.Relational,"<<":Precedence.BitwiseSHIFT,">>":Precedence.BitwiseSHIFT,">>>":Precedence.BitwiseSHIFT,"+":Precedence.Additive,"-":Precedence.Additive,"*":Precedence.Multiplicative,"%":Precedence.Multiplicative,"/":Precedence.Multiplicative,"**":Precedence.Exponentiation};var E_TTT=7,S_TFFF=1;function stringRepeat(str,num){var result="";for(num|=0;num>0;num>>>=1,str+=str)1&num&&(result+=str);return result}function endsWithLineTerminator(str){var len=str.length;return len&&esutils.code.isLineTerminator(str.charCodeAt(len-1))}function merge(target,override){var key;for(key in override)override.hasOwnProperty(key)&&(target[key]=override[key]);return target}function updateDeeply(target,override){var key,val;function isHashObject(target){return"object"==typeof target&&target instanceof Object&&!(target instanceof RegExp)}for(key in override)override.hasOwnProperty(key)&&(isHashObject(val=override[key])?isHashObject(target[key])?updateDeeply(target[key],val):target[key]=updateDeeply({},val):target[key]=val);return target}function escapeRegExpCharacter(ch,previousIsBackslash){return 8232==(-2&ch)?(previousIsBackslash?"u":"\\u")+(8232===ch?"2028":"2029"):10===ch||13===ch?(previousIsBackslash?"":"\\")+(10===ch?"n":"r"):String.fromCharCode(ch)}function escapeAllowedCharacter(code,next){var hex;return 8===code?"\\b":12===code?"\\f":9===code?"\\t":(hex=code.toString(16).toUpperCase(),json||code>255?"\\u"+"0000".slice(hex.length)+hex:0!==code||esutils.code.isDecimalDigit(next)?11===code?"\\x0B":"\\x"+"00".slice(hex.length)+hex:"\\0")}function escapeDisallowedCharacter(code){if(92===code)return"\\\\";if(10===code)return"\\n";if(13===code)return"\\r";if(8232===code)return"\\u2028";if(8233===code)return"\\u2029";throw new Error("Incorrectly classified character")}function flattenToString(arr){var i,iz,elem,result="";for(i=0,iz=arr.length;ij&&(spaces=j)}for(void 0!==specialBase?(previousBase=base,"*"===array[1][spaces]&&(specialBase+=" "),base=specialBase):(1&spaces&&--spaces,previousBase=base),i=1,len=array.length;i0){if(save=result,preserveBlankLines){for(result=[],extRange=(comment=stmt.leadingComments[0]).extendedRange,range=comment.range,(count=((prefix=sourceCode.substring(extRange[0],range[0])).match(/\n/g)||[]).length)>0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment))),prevRange=range,i=1,len=stmt.leadingComments.length;i0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment)));else for(tailingToStatement=!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()),specialBase=stringRepeat(" ",function calculateSpaces(str){var i;for(i=str.length-1;i>=0&&!esutils.code.isLineTerminator(str.charCodeAt(i));--i);return str.length-1-i}(toSourceNodeWhenNeeded([base,result,indent]).toString())),i=0,len=stmt.trailingComments.length;i")),node.expression?(result.push(space),"{"===(expr=this.generateExpression(node.body,Precedence.Assignment,E_TTT)).toString().charAt(0)&&(expr=["(",expr,")"]),result.push(expr)):result.push(this.maybeBlock(node.body,9)),result},CodeGenerator.prototype.generateIterationForStatement=function(operator,stmt,flags){var result=["for"+(stmt.await?noEmptySpace()+"await":"")+space+"("],that=this;return withIndent((function(){stmt.left.type===Syntax.VariableDeclaration?withIndent((function(){result.push(stmt.left.kind+noEmptySpace()),result.push(that.generateStatement(stmt.left.declarations[0],0))})):result.push(that.generateExpression(stmt.left,Precedence.Call,E_TTT)),result=join(result,operator),result=[join(result,that.generateExpression(stmt.right,Precedence.Assignment,E_TTT)),")"]})),result.push(this.maybeBlock(stmt.body,flags)),result},CodeGenerator.prototype.generatePropertyKey=function(expr,computed){var result=[];return computed&&result.push("["),result.push(this.generateExpression(expr,Precedence.Assignment,E_TTT)),computed&&result.push("]"),result},CodeGenerator.prototype.generateAssignment=function(left,right,operator,precedence,flags){return Precedence.Assignment2&&("\n"===(content=sourceCode.substring(range[0]+1,range[1]-1))[0]&&(result=["{"]),result.push(content)),bodyFlags=S_TFFF,8&flags&&(bodyFlags|=16),i=0,iz=stmt.body.length;i0&&(stmt.body[i-1].trailingComments||stmt.body[i].leadingComments||generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result))),i===iz-1&&(bodyFlags|=32),fragment=stmt.body[i].leadingComments&&preserveBlankLines?that.generateStatement(stmt.body[i],bodyFlags):addIndent(that.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())||preserveBlankLines&&i1?withIndent(block):block(),result.push(this.semicolon(flags)),result},ThrowStatement:function(stmt,flags){return[join("throw",this.generateExpression(stmt.argument,Precedence.Sequence,E_TTT)),this.semicolon(flags)]},TryStatement:function(stmt,flags){var result,i,iz,guardedHandlers;if(result=["try",this.maybeBlock(stmt.block,S_TFFF)],result=this.maybeBlockSuffix(stmt.block,result),stmt.handlers)for(i=0,iz=stmt.handlers.length;i0?"\n":""],bodyFlags=17,i=0;i0&&(stmt.body[i-1].trailingComments||stmt.body[i].leadingComments||generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result))),fragment=addIndent(this.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),i+10){for(result.push("("),i=0,iz=length;i=2&&48===fragment.charCodeAt(0))&&result.push(" "),result.push(expr.optional?"?.":"."),result.push(generateIdentifier(expr.property))),parenthesize(result,Precedence.Member,precedence)},MetaProperty:function(expr,precedence,flags){var result;return(result=[]).push("string"==typeof expr.meta?expr.meta:generateIdentifier(expr.meta)),result.push("."),result.push("string"==typeof expr.property?expr.property:generateIdentifier(expr.property)),parenthesize(result,Precedence.Member,precedence)},UnaryExpression:function(expr,precedence,flags){var result,fragment,rightCharCode,leftSource,leftCharCode;return fragment=this.generateExpression(expr.argument,Precedence.Unary,E_TTT),""===space?result=join(expr.operator,fragment):(result=[expr.operator],expr.operator.length>2?result=join(result,fragment):(leftCharCode=(leftSource=toSourceNodeWhenNeeded(result).toString()).charCodeAt(leftSource.length-1),rightCharCode=fragment.toString().charCodeAt(0),(43===leftCharCode||45===leftCharCode)&&leftCharCode===rightCharCode||esutils.code.isIdentifierPartES5(leftCharCode)&&esutils.code.isIdentifierPartES5(rightCharCode)?(result.push(noEmptySpace()),result.push(fragment)):result.push(fragment))),parenthesize(result,Precedence.Unary,precedence)},YieldExpression:function(expr,precedence,flags){var result;return result=expr.delegate?"yield*":"yield",expr.argument&&(result=join(result,this.generateExpression(expr.argument,Precedence.Yield,E_TTT))),parenthesize(result,Precedence.Yield,precedence)},AwaitExpression:function(expr,precedence,flags){return parenthesize(join(expr.all?"await*":"await",this.generateExpression(expr.argument,Precedence.Await,E_TTT)),Precedence.Await,precedence)},UpdateExpression:function(expr,precedence,flags){return expr.prefix?parenthesize([expr.operator,this.generateExpression(expr.argument,Precedence.Unary,E_TTT)],Precedence.Unary,precedence):parenthesize([this.generateExpression(expr.argument,Precedence.Postfix,E_TTT),expr.operator],Precedence.Postfix,precedence)},FunctionExpression:function(expr,precedence,flags){var result=[generateAsyncPrefix(expr,!0),"function"];return expr.id?(result.push(generateStarSuffix(expr)||noEmptySpace()),result.push(generateIdentifier(expr.id))):result.push(generateStarSuffix(expr)||space),result.push(this.generateFunctionBody(expr)),result},ArrayPattern:function(expr,precedence,flags){return this.ArrayExpression(expr,precedence,flags,!0)},ArrayExpression:function(expr,precedence,flags,isPattern){var result,multiline,that=this;return expr.elements.length?(multiline=!isPattern&&expr.elements.length>1,result=["[",multiline?newline:""],withIndent((function(indent){var i,iz;for(i=0,iz=expr.elements.length;i1,withIndent((function(){fragment=that.generateExpression(expr.properties[0],Precedence.Sequence,E_TTT)})),multiline||function hasLineTerminator(str){return/[\r\n]/g.test(str)}(toSourceNodeWhenNeeded(fragment).toString())?(withIndent((function(indent){var i,iz;if(result=["{",newline,indent,fragment],multiline)for(result.push(","+newline),i=1,iz=expr.properties.length;i126))){result+=escapeAllowedCharacter(code,str.charCodeAt(i+1));continue}}result+=String.fromCharCode(code)}if(quote=(single=!("double"===quotes||"auto"===quotes&&doubleQuotes0&&(exponent=+temp.slice(pos+1),temp=temp.slice(0,pos)),point>=0&&(exponent-=temp.length-point-1,temp=+(temp.slice(0,point)+temp.slice(point+1))+""),pos=0;48===temp.charCodeAt(temp.length+pos-1);)--pos;return 0!==pos&&(exponent-=pos,temp=temp.slice(0,pos)),0!==exponent&&(temp+="e"+exponent),(temp.length1e12&&Math.floor(value)===value&&(temp="0x"+value.toString(16)).length0||extra.moz.comprehensionExpressionStartsWithAssignment?result=join(result,fragment):result.push(fragment)})),expr.filter&&(result=join(result,"if"+space),fragment=this.generateExpression(expr.filter,Precedence.Sequence,E_TTT),result=join(result,["(",fragment,")"])),extra.moz.comprehensionExpressionStartsWithAssignment||(fragment=this.generateExpression(expr.body,Precedence.Assignment,E_TTT),result=join(result,fragment)),result.push(expr.type===Syntax.GeneratorExpression?")":"]"),result},ComprehensionBlock:function(expr,precedence,flags){var fragment;return fragment=join(fragment=expr.left.type===Syntax.VariableDeclaration?[expr.left.kind,noEmptySpace(),this.generateStatement(expr.left.declarations[0],0)]:this.generateExpression(expr.left,Precedence.Call,E_TTT),expr.of?"of":"in"),fragment=join(fragment,this.generateExpression(expr.right,Precedence.Sequence,E_TTT)),["for"+space+"(",fragment,")"]},SpreadElement:function(expr,precedence,flags){return["...",this.generateExpression(expr.argument,Precedence.Assignment,E_TTT)]},TaggedTemplateExpression:function(expr,precedence,flags){var itemFlags=3;return 2&flags||(itemFlags=1),parenthesize([this.generateExpression(expr.tag,Precedence.Call,itemFlags),this.generateExpression(expr.quasi,Precedence.Primary,4)],Precedence.TaggedTemplate,precedence)},TemplateElement:function(expr,precedence,flags){return expr.value.raw},TemplateLiteral:function(expr,precedence,flags){var result,i,iz;for(result=["`"],i=0,iz=expr.quasis.length;i=0)return idx}else{var sStr=util.toSetString(aStr);if(has.call(this._set,sStr))return this._set[sStr]}throw new Error('"'+aStr+'" is not in the set.')},ArraySet.prototype.at=function ArraySet_at(aIdx){if(aIdx>=0&&aIdx>>=5)>0&&(digit|=32),encoded+=base64.encode(digit)}while(vlq>0);return encoded},exports.decode=function base64VLQ_decode(aStr,aIndex,aOutParam){var continuation,digit,strLen=aStr.length,result=0,shift=0;do{if(aIndex>=strLen)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(digit=base64.decode(aStr.charCodeAt(aIndex++))))throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1));continuation=!!(32&digit),result+=(digit&=31)<>1;return 1&~aValue?shifted:-shifted}(result),aOutParam.rest=aIndex}},"./node_modules/escodegen/node_modules/source-map/lib/base64.js":function(__unused_webpack_module,exports){var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number0?aHigh-mid>1?recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?aHigh1?recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?mid:aLow<0?-1:aLow}exports.GREATEST_LOWER_BOUND=1,exports.LEAST_UPPER_BOUND=2,exports.search=function search(aNeedle,aHaystack,aCompare,aBias){if(0===aHaystack.length)return-1;var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0)return-1;for(;index-1>=0&&0===aCompare(aHaystack[index],aHaystack[index-1],!0);)--index;return index}},"./node_modules/escodegen/node_modules/source-map/lib/mapping-list.js":function(__unused_webpack_module,exports,__webpack_require__){var util=__webpack_require__("./node_modules/escodegen/node_modules/source-map/lib/util.js");function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)},MappingList.prototype.add=function MappingList_add(aMapping){!function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine,lineB=mappingB.generatedLine,columnA=mappingA.generatedColumn,columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0}(this._last,aMapping)?(this._sorted=!1,this._array.push(aMapping)):(this._last=aMapping,this._array.push(aMapping))},MappingList.prototype.toArray=function MappingList_toArray(){return this._sorted||(this._array.sort(util.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},exports.P=MappingList},"./node_modules/escodegen/node_modules/source-map/lib/quick-sort.js":function(__unused_webpack_module,exports){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y],ary[y]=temp}function doQuickSort(ary,comparator,p,r){if(p=0){var mapping=this._originalMappings[index];if(void 0===aArgs.column)for(var originalLine=mapping.originalLine;mapping&&mapping.originalLine===originalLine;)mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}),mapping=this._originalMappings[++index];else for(var originalColumn=mapping.originalColumn;mapping&&mapping.originalLine===line&&mapping.originalColumn==originalColumn;)mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}),mapping=this._originalMappings[++index]}return mappings},BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.prototype._findSourceIndex=function(aSource){var i,relativeSource=aSource;if(null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource)),this._sources.has(relativeSource))return this._sources.indexOf(relativeSource);for(i=0;i1&&(mapping.source=previousSource+segment[1],previousSource+=segment[1],mapping.originalLine=previousOriginalLine+segment[2],previousOriginalLine=mapping.originalLine,mapping.originalLine+=1,mapping.originalColumn=previousOriginalColumn+segment[3],previousOriginalColumn=mapping.originalColumn,segment.length>4&&(mapping.name=previousName+segment[4],previousName+=segment[4])),generatedMappings.push(mapping),"number"==typeof mapping.originalLine&&originalMappings.push(mapping)}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated),this.__generatedMappings=generatedMappings,quickSort(originalMappings,util.compareByOriginalPositions),this.__originalMappings=originalMappings},BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){if(aNeedle[aLineName]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+aNeedle[aLineName]);if(aNeedle[aColumnName]<0)throw new TypeError("Column must be greater than or equal to 0, got "+aNeedle[aColumnName]);return binarySearch.search(aNeedle,aMappings,aComparator,aBias)},BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var index=0;index=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);null!==source&&(source=this._sources.at(source),source=util.computeSourceURL(this.sourceRoot,source,this._sourceMapURL));var name=util.getArg(mapping,"name",null);return null!==name&&(name=this._names.at(name)),{source:source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name:name}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(sc){return null==sc})))},BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(aSource,nullOnMissing){if(!this.sourcesContent)return null;var index=this._findSourceIndex(aSource);if(index>=0)return this.sourcesContent[index];var url,relativeSource=aSource;if(null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource)),null!=this.sourceRoot&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=relativeSource.replace(/^file:\/\//,"");if("file"==url.scheme&&this._sources.has(fileUriAbsPath))return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];if((!url.path||"/"==url.path)&&this._sources.has("/"+relativeSource))return this.sourcesContent[this._sources.indexOf("/"+relativeSource)]}if(nullOnMissing)return null;throw new Error('"'+relativeSource+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(aArgs){var source=util.getArg(aArgs,"source");if((source=this._findSourceIndex(source))<0)return{line:null,column:null,lastColumn:null};var needle={source:source,originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")},index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._originalMappings[index];if(mapping.source===needle.source)return{line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var sources=[],i=0;i0&&aGenerated.column>=0)||aOriginal||aSource||aName)&&!(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aOriginal&&"line"in aOriginal&&"column"in aOriginal&&aGenerated.line>0&&aGenerated.column>=0&&aOriginal.line>0&&aOriginal.column>=0&&aSource))throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))},SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){for(var next,mapping,nameIdx,sourceIdx,previousGeneratedColumn=0,previousGeneratedLine=1,previousOriginalColumn=0,previousOriginalLine=0,previousName=0,previousSource=0,result="",mappings=this._mappings.toArray(),i=0,len=mappings.length;i0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1]))continue;next+=","}next+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn),previousGeneratedColumn=mapping.generatedColumn,null!=mapping.source&&(sourceIdx=this._sources.indexOf(mapping.source),next+=base64VLQ.encode(sourceIdx-previousSource),previousSource=sourceIdx,next+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine),previousOriginalLine=mapping.originalLine-1,next+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn),previousOriginalColumn=mapping.originalColumn,null!=mapping.name&&(nameIdx=this._names.indexOf(mapping.name),next+=base64VLQ.encode(nameIdx-previousName),previousName=nameIdx)),result+=next}return result},SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(aSources,aSourceRoot){return aSources.map((function(source){if(!this._sourcesContents)return null;null!=aSourceRoot&&(source=util.relative(aSourceRoot,source));var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null}),this)},SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(map.file=this._file),null!=this._sourceRoot&&(map.sourceRoot=this._sourceRoot),this._sourcesContents&&(map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)),map},SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())},exports.x=SourceMapGenerator},"./node_modules/escodegen/node_modules/source-map/lib/source-node.js":function(__unused_webpack_module,exports,__webpack_require__){var SourceMapGenerator=__webpack_require__("./node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js").x,util=__webpack_require__("./node_modules/escodegen/node_modules/source-map/lib/util.js"),REGEX_NEWLINE=/(\r?\n)/,isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[],this.sourceContents={},this.line=null==aLine?null:aLine,this.column=null==aColumn?null:aColumn,this.source=null==aSource?null:aSource,this.name=null==aName?null:aName,this[isSourceNode]=!0,null!=aChunks&&this.add(aChunks)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode,remainingLines=aGeneratedCode.split(REGEX_NEWLINE),remainingLinesIndex=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return remainingLinesIndex=0;i--)this.prepend(aChunk[i]);else{if(!aChunk[isSourceNode]&&"string"!=typeof aChunk)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk);this.children.unshift(aChunk)}return this},SourceNode.prototype.walk=function SourceNode_walk(aFn){for(var chunk,i=0,len=this.children.length;i0){for(newChildren=[],i=0;i=0;i--)"."===(part=parts[i])?parts.splice(i,1):".."===part?up++:up>0&&(""===part?(parts.splice(i+1,up),up=0):(parts.splice(i,2),up--));return""===(path=parts.join("/"))&&(path=isAbsolute?"/":"."),url?(url.path=path,urlGenerate(url)):path}function join(aRoot,aPath){""===aRoot&&(aRoot="."),""===aPath&&(aPath=".");var aPathUrl=urlParse(aPath),aRootUrl=urlParse(aRoot);if(aRootUrl&&(aRoot=aRootUrl.path||"/"),aPathUrl&&!aPathUrl.scheme)return aRootUrl&&(aPathUrl.scheme=aRootUrl.scheme),urlGenerate(aPathUrl);if(aPathUrl||aPath.match(dataUrlRegexp))return aPath;if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path)return aRootUrl.host=aPath,urlGenerate(aRootUrl);var joined="/"===aPath.charAt(0)?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);return aRootUrl?(aRootUrl.path=joined,urlGenerate(aRootUrl)):joined}exports.urlParse=urlParse,exports.urlGenerate=urlGenerate,exports.normalize=normalize,exports.join=join,exports.isAbsolute=function(aPath){return"/"===aPath.charAt(0)||urlRegexp.test(aPath)},exports.relative=function relative(aRoot,aPath){""===aRoot&&(aRoot="."),aRoot=aRoot.replace(/\/$/,"");for(var level=0;0!==aPath.indexOf(aRoot+"/");){var index=aRoot.lastIndexOf("/");if(index<0)return aPath;if((aRoot=aRoot.slice(0,index)).match(/^([^\/]+:\/)?\/*$/))return aPath;++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)};var supportsNullProto=!("__proto__"in Object.create(null));function identity(s){return s}function isProtoString(s){if(!s)return!1;var length=s.length;if(length<9)return!1;if(95!==s.charCodeAt(length-1)||95!==s.charCodeAt(length-2)||111!==s.charCodeAt(length-3)||116!==s.charCodeAt(length-4)||111!==s.charCodeAt(length-5)||114!==s.charCodeAt(length-6)||112!==s.charCodeAt(length-7)||95!==s.charCodeAt(length-8)||95!==s.charCodeAt(length-9))return!1;for(var i=length-10;i>=0;i--)if(36!==s.charCodeAt(i))return!1;return!0}function strcmp(aStr1,aStr2){return aStr1===aStr2?0:null===aStr1?1:null===aStr2?-1:aStr1>aStr2?1:-1}exports.toSetString=supportsNullProto?identity:function toSetString(aStr){return isProtoString(aStr)?"$"+aStr:aStr},exports.fromSetString=supportsNullProto?identity:function fromSetString(aStr){return isProtoString(aStr)?aStr.slice(1):aStr},exports.compareByOriginalPositions=function compareByOriginalPositions(mappingA,mappingB,onlyCompareOriginal){var cmp=strcmp(mappingA.source,mappingB.source);return 0!==cmp||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)||onlyCompareOriginal||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=mappingA.generatedLine-mappingB.generatedLine)?cmp:strcmp(mappingA.name,mappingB.name)},exports.compareByGeneratedPositionsDeflated=function compareByGeneratedPositionsDeflated(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||onlyCompareGenerated||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)},exports.compareByGeneratedPositionsInflated=function compareByGeneratedPositionsInflated(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)},exports.parseSourceMapInput=function parseSourceMapInput(str){return JSON.parse(str.replace(/^\)]}'[^\n]*\n/,""))},exports.computeSourceURL=function computeSourceURL(sourceRoot,sourceURL,sourceMapURL){if(sourceURL=sourceURL||"",sourceRoot&&("/"!==sourceRoot[sourceRoot.length-1]&&"/"!==sourceURL[0]&&(sourceRoot+="/"),sourceURL=sourceRoot+sourceURL),sourceMapURL){var parsed=urlParse(sourceMapURL);if(!parsed)throw new Error("sourceMapURL could not be parsed");if(parsed.path){var index=parsed.path.lastIndexOf("/");index>=0&&(parsed.path=parsed.path.substring(0,index+1))}sourceURL=join(urlGenerate(parsed),sourceURL)}return normalize(sourceURL)}},"./node_modules/escodegen/node_modules/source-map/source-map.js":function(__unused_webpack_module,exports,__webpack_require__){__webpack_require__("./node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js").x,__webpack_require__("./node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"),exports.SourceNode=__webpack_require__("./node_modules/escodegen/node_modules/source-map/lib/source-node.js").SourceNode},"./node_modules/estraverse/estraverse.js":function(__unused_webpack_module,exports){!function clone(exports){"use strict";var Syntax,VisitorOption,VisitorKeys,BREAK,SKIP,REMOVE;function deepCopy(obj){var key,val,ret={};for(key in obj)obj.hasOwnProperty(key)&&(val=obj[key],ret[key]="object"==typeof val&&null!==val?deepCopy(val):val);return ret}function Reference(parent,key){this.parent=parent,this.key=key}function Element(node,path,wrap,ref){this.node=node,this.path=path,this.wrap=wrap,this.ref=ref}function Controller(){}function isNode(node){return null!=node&&("object"==typeof node&&"string"==typeof node.type)}function isProperty(nodeType,key){return(nodeType===Syntax.ObjectExpression||nodeType===Syntax.ObjectPattern)&&"properties"===key}function candidateExistsInLeaveList(leavelist,candidate){for(var i=leavelist.length-1;i>=0;--i)if(leavelist[i].node===candidate)return!0;return!1}function traverse(root,visitor){return(new Controller).traverse(root,visitor)}function extendCommentRange(comment,tokens){var target;return target=function upperBound(array,func){var diff,len,i,current;for(len=array.length,i=0;len;)func(array[current=i+(diff=len>>>1)])?len=diff:(i=current+1,len-=diff+1);return i}(tokens,(function search(token){return token.range[0]>comment.range[0]})),comment.extendedRange=[comment.range[0],comment.range[1]],target!==tokens.length&&(comment.extendedRange[1]=tokens[target].range[0]),(target-=1)>=0&&(comment.extendedRange[0]=tokens[target].range[1]),comment}return Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},VisitorKeys={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},VisitorOption={Break:BREAK={},Skip:SKIP={},Remove:REMOVE={}},Reference.prototype.replace=function replace(node){this.parent[this.key]=node},Reference.prototype.remove=function remove(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},Controller.prototype.path=function path(){var i,iz,j,jz,result;function addToPath(result,path){if(Array.isArray(path))for(j=0,jz=path.length;j=0;)if(candidate=node[key=candidates[current]])if(Array.isArray(candidate)){for(current2=candidate.length;(current2-=1)>=0;)if(candidate[current2]&&!candidateExistsInLeaveList(leavelist,candidate[current2])){if(isProperty(nodeType,candidates[current]))element=new Element(candidate[current2],[key,current2],"Property",null);else{if(!isNode(candidate[current2]))continue;element=new Element(candidate[current2],[key,current2],null,null)}worklist.push(element)}}else if(isNode(candidate)){if(candidateExistsInLeaveList(leavelist,candidate))continue;worklist.push(new Element(candidate,key,null,null))}}}else if(element=leavelist.pop(),ret=this.__execute(visitor.leave,element),this.__state===BREAK||ret===BREAK)return},Controller.prototype.replace=function replace(root,visitor){var worklist,leavelist,node,nodeType,target,element,current,current2,candidates,candidate,sentinel,outer,key;function removeElem(element){var i,key,nextElem,parent;if(element.ref.remove())for(key=element.ref.key,parent=element.ref.parent,i=worklist.length;i--;)if((nextElem=worklist[i]).ref&&nextElem.ref.parent===parent){if(nextElem.ref.key=0;)if(candidate=node[key=candidates[current]])if(Array.isArray(candidate)){for(current2=candidate.length;(current2-=1)>=0;)if(candidate[current2]){if(isProperty(nodeType,candidates[current]))element=new Element(candidate[current2],[key,current2],"Property",new Reference(candidate,current2));else{if(!isNode(candidate[current2]))continue;element=new Element(candidate[current2],[key,current2],null,new Reference(candidate,current2))}worklist.push(element)}}else isNode(candidate)&&worklist.push(new Element(candidate,key,null,new Reference(node,key)))}}else if(element=leavelist.pop(),void 0!==(target=this.__execute(visitor.leave,element))&&target!==BREAK&&target!==SKIP&&target!==REMOVE&&element.ref.replace(target),this.__state!==REMOVE&&target!==REMOVE||removeElem(element),this.__state===BREAK||target===BREAK)return outer.root;return outer.root},exports.Syntax=Syntax,exports.traverse=traverse,exports.replace=function replace(root,visitor){return(new Controller).replace(root,visitor)},exports.attachComments=function attachComments(tree,providedComments,tokens){var comment,len,i,cursor,comments=[];if(!tree.range)throw new Error("attachComments needs range information");if(!tokens.length){if(providedComments.length){for(i=0,len=providedComments.length;inode.range[0]);)comment.extendedRange[1]===node.range[0]?(node.leadingComments||(node.leadingComments=[]),node.leadingComments.push(comment),comments.splice(cursor,1)):cursor+=1;return cursor===comments.length?VisitorOption.Break:comments[cursor].extendedRange[0]>node.range[1]?VisitorOption.Skip:void 0}}),cursor=0,traverse(tree,{leave:function(node){for(var comment;cursornode.range[1]?VisitorOption.Skip:void 0}}),tree},exports.VisitorKeys=VisitorKeys,exports.VisitorOption=VisitorOption,exports.Controller=Controller,exports.cloneEnvironment=function(){return clone({})},exports}(exports)},"./node_modules/esutils/lib/ast.js":function(module){!function(){"use strict";function isStatement(node){if(null==node)return!1;switch(node.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function trailingStatement(node){switch(node.type){case"IfStatement":return null!=node.alternate?node.alternate:node.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return node.body}return null}module.exports={isExpression:function isExpression(node){if(null==node)return!1;switch(node.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:isStatement,isIterationStatement:function isIterationStatement(node){if(null==node)return!1;switch(node.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(node){return isStatement(node)||null!=node&&"FunctionDeclaration"===node.type},isProblematicIfStatement:function isProblematicIfStatement(node){var current;if("IfStatement"!==node.type)return!1;if(null==node.alternate)return!1;current=node.consequent;do{if("IfStatement"===current.type&&null==current.alternate)return!0;current=trailingStatement(current)}while(current);return!1},trailingStatement:trailingStatement}}()},"./node_modules/esutils/lib/code.js":function(module){!function(){"use strict";var ES6Regex,ES5Regex,NON_ASCII_WHITESPACES,IDENTIFIER_START,IDENTIFIER_PART,ch;function fromCodePoint(cp){return cp<=65535?String.fromCharCode(cp):String.fromCharCode(Math.floor((cp-65536)/1024)+55296)+String.fromCharCode((cp-65536)%1024+56320)}for(ES5Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},ES6Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},NON_ASCII_WHITESPACES=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],IDENTIFIER_START=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_START[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||36===ch||95===ch;for(IDENTIFIER_PART=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_PART[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||ch>=48&&ch<=57||36===ch||95===ch;module.exports={isDecimalDigit:function isDecimalDigit(ch){return 48<=ch&&ch<=57},isHexDigit:function isHexDigit(ch){return 48<=ch&&ch<=57||97<=ch&&ch<=102||65<=ch&&ch<=70},isOctalDigit:function isOctalDigit(ch){return ch>=48&&ch<=55},isWhiteSpace:function isWhiteSpace(ch){return 32===ch||9===ch||11===ch||12===ch||160===ch||ch>=5760&&NON_ASCII_WHITESPACES.indexOf(ch)>=0},isLineTerminator:function isLineTerminator(ch){return 10===ch||13===ch||8232===ch||8233===ch},isIdentifierStartES5:function isIdentifierStartES5(ch){return ch<128?IDENTIFIER_START[ch]:ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch))},isIdentifierPartES5:function isIdentifierPartES5(ch){return ch<128?IDENTIFIER_PART[ch]:ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch))},isIdentifierStartES6:function isIdentifierStartES6(ch){return ch<128?IDENTIFIER_START[ch]:ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch))},isIdentifierPartES6:function isIdentifierPartES6(ch){return ch<128?IDENTIFIER_PART[ch]:ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch))}}}()},"./node_modules/esutils/lib/keyword.js":function(module,__unused_webpack_exports,__webpack_require__){!function(){"use strict";var code=__webpack_require__("./node_modules/esutils/lib/code.js");function isKeywordES5(id,strict){return!(!strict&&"yield"===id)&&isKeywordES6(id,strict)}function isKeywordES6(id,strict){if(strict&&function isStrictModeReservedWordES6(id){switch(id){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(id))return!0;switch(id.length){case 2:return"if"===id||"in"===id||"do"===id;case 3:return"var"===id||"for"===id||"new"===id||"try"===id;case 4:return"this"===id||"else"===id||"case"===id||"void"===id||"with"===id||"enum"===id;case 5:return"while"===id||"break"===id||"catch"===id||"throw"===id||"const"===id||"yield"===id||"class"===id||"super"===id;case 6:return"return"===id||"typeof"===id||"delete"===id||"switch"===id||"export"===id||"import"===id;case 7:return"default"===id||"finally"===id||"extends"===id;case 8:return"function"===id||"continue"===id||"debugger"===id;case 10:return"instanceof"===id;default:return!1}}function isReservedWordES5(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES5(id,strict)}function isReservedWordES6(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES6(id,strict)}function isIdentifierNameES5(id){var i,iz,ch;if(0===id.length)return!1;if(ch=id.charCodeAt(0),!code.isIdentifierStartES5(ch))return!1;for(i=1,iz=id.length;i=iz)return!1;if(!(56320<=(lowCh=id.charCodeAt(i))&&lowCh<=57343))return!1;ch=1024*(ch-55296)+(lowCh-56320)+65536}if(!check(ch))return!1;check=code.isIdentifierPartES6}return!0}module.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:function isRestrictedWord(id){return"eval"===id||"arguments"===id},isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:function isIdentifierES5(id,strict){return isIdentifierNameES5(id)&&!isReservedWordES5(id,strict)},isIdentifierES6:function isIdentifierES6(id,strict){return isIdentifierNameES6(id)&&!isReservedWordES6(id,strict)}}}()},"./node_modules/esutils/lib/utils.js":function(__unused_webpack_module,exports,__webpack_require__){!function(){"use strict";exports.ast=__webpack_require__("./node_modules/esutils/lib/ast.js"),exports.code=__webpack_require__("./node_modules/esutils/lib/code.js"),exports.keyword=__webpack_require__("./node_modules/esutils/lib/keyword.js")}()},"./node_modules/html-tags/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=__webpack_require__("./node_modules/html-tags/html-tags.json")},"./node_modules/jsdoc-type-pratt-parser/dist/index.js":function(__unused_webpack_module,exports){!function(exports){"use strict";function tokenToString(token){return void 0!==token.text&&""!==token.text?`'${token.type}' with value '${token.text}'`:`'${token.type}'`}class NoParsletFoundError extends Error{constructor(token){super(`No parslet found for token: ${tokenToString(token)}`),this.token=token,Object.setPrototypeOf(this,NoParsletFoundError.prototype)}getToken(){return this.token}}class EarlyEndOfParseError extends Error{constructor(token){super(`The parsing ended early. The next token was: ${tokenToString(token)}`),this.token=token,Object.setPrototypeOf(this,EarlyEndOfParseError.prototype)}getToken(){return this.token}}class UnexpectedTypeError extends Error{constructor(result,message){let error=`Unexpected type: '${result.type}'.`;void 0!==message&&(error+=` Message: ${message}`),super(error),Object.setPrototypeOf(this,UnexpectedTypeError.prototype)}}function makePunctuationRule(type){return text=>text.startsWith(type)?{type:type,text:type}:null}function getQuoted(text){let char,position=0;const mark=text[0];let escaped=!1;if("'"!==mark&&'"'!==mark)return null;for(;position{const value=getIdentifier(text);return null==value?null:{type:"Identifier",text:value}};function makeKeyWordRule(type){return text=>{if(!text.startsWith(type))return null;const prepends=text[type.length];return void 0!==prepends&&identifierContinueRegex.test(prepends)?null:{type:type,text:type}}}const stringValueRule=text=>{const value=getQuoted(text);return null==value?null:{type:"StringValue",text:value}},numberRule=text=>{const value=getNumber(text);return null===value?null:{type:"Number",text:value}},rules=[text=>text.length>0?null:{type:"EOF",text:""},makePunctuationRule("=>"),makePunctuationRule("("),makePunctuationRule(")"),makePunctuationRule("{"),makePunctuationRule("}"),makePunctuationRule("["),makePunctuationRule("]"),makePunctuationRule("|"),makePunctuationRule("&"),makePunctuationRule("<"),makePunctuationRule(">"),makePunctuationRule(","),makePunctuationRule(";"),makePunctuationRule("*"),makePunctuationRule("?"),makePunctuationRule("!"),makePunctuationRule("="),makePunctuationRule(":"),makePunctuationRule("..."),makePunctuationRule("."),makePunctuationRule("#"),makePunctuationRule("~"),makePunctuationRule("/"),makePunctuationRule("@"),makeKeyWordRule("undefined"),makeKeyWordRule("null"),makeKeyWordRule("function"),makeKeyWordRule("this"),makeKeyWordRule("new"),makeKeyWordRule("module"),makeKeyWordRule("event"),makeKeyWordRule("external"),makeKeyWordRule("typeof"),makeKeyWordRule("keyof"),makeKeyWordRule("readonly"),makeKeyWordRule("import"),makeKeyWordRule("is"),makeKeyWordRule("in"),numberRule,identifierRule,stringValueRule],breakingWhitespaceRegex=/^\s*\n\s*/;class Lexer{static create(text){const current=this.read(text);text=current.text;const next=this.read(text);return text=next.text,new Lexer(text,void 0,current.token,next.token)}constructor(text,previous,current,next){this.text="",this.text=text,this.previous=previous,this.current=current,this.next=next}static read(text,startOfLine=!1){startOfLine=startOfLine||breakingWhitespaceRegex.test(text),text=text.trim();for(const rule of rules){const partial=rule(text);if(null!==partial){const token=Object.assign(Object.assign({},partial),{startOfLine:startOfLine});return{text:text=text.slice(token.text.length),token:token}}}throw new Error("Unexpected Token "+text)}advance(){const next=Lexer.read(this.text);return new Lexer(next.text,this.current,this.next,next.token)}}function assertRootResult(result){if(void 0===result)throw new Error("Unexpected undefined");if("JsdocTypeKeyValue"===result.type||"JsdocTypeParameterList"===result.type||"JsdocTypeProperty"===result.type||"JsdocTypeReadonlyProperty"===result.type||"JsdocTypeObjectField"===result.type||"JsdocTypeJsdocObjectField"===result.type||"JsdocTypeIndexSignature"===result.type||"JsdocTypeMappedType"===result.type)throw new UnexpectedTypeError(result);return result}function assertPlainKeyValueOrRootResult(result){return"JsdocTypeKeyValue"===result.type?assertPlainKeyValueResult(result):assertRootResult(result)}function assertPlainKeyValueOrNameResult(result){return"JsdocTypeName"===result.type?result:assertPlainKeyValueResult(result)}function assertPlainKeyValueResult(result){if("JsdocTypeKeyValue"!==result.type)throw new UnexpectedTypeError(result);return result}function assertNumberOrVariadicNameResult(result){var _a;if("JsdocTypeVariadic"===result.type){if("JsdocTypeName"===(null===(_a=result.element)||void 0===_a?void 0:_a.type))return result;throw new UnexpectedTypeError(result)}if("JsdocTypeNumber"!==result.type&&"JsdocTypeName"!==result.type)throw new UnexpectedTypeError(result);return result}function isSquaredProperty(result){return"JsdocTypeIndexSignature"===result.type||"JsdocTypeMappedType"===result.type}var Precedence;!function(Precedence){Precedence[Precedence.ALL=0]="ALL",Precedence[Precedence.PARAMETER_LIST=1]="PARAMETER_LIST",Precedence[Precedence.OBJECT=2]="OBJECT",Precedence[Precedence.KEY_VALUE=3]="KEY_VALUE",Precedence[Precedence.UNION=4]="UNION",Precedence[Precedence.INTERSECTION=5]="INTERSECTION",Precedence[Precedence.PREFIX=6]="PREFIX",Precedence[Precedence.INFIX=7]="INFIX",Precedence[Precedence.TUPLE=8]="TUPLE",Precedence[Precedence.SYMBOL=9]="SYMBOL",Precedence[Precedence.OPTIONAL=10]="OPTIONAL",Precedence[Precedence.NULLABLE=11]="NULLABLE",Precedence[Precedence.KEY_OF_TYPE_OF=12]="KEY_OF_TYPE_OF",Precedence[Precedence.FUNCTION=13]="FUNCTION",Precedence[Precedence.ARROW=14]="ARROW",Precedence[Precedence.ARRAY_BRACKETS=15]="ARRAY_BRACKETS",Precedence[Precedence.GENERIC=16]="GENERIC",Precedence[Precedence.NAME_PATH=17]="NAME_PATH",Precedence[Precedence.PARENTHESIS=18]="PARENTHESIS",Precedence[Precedence.SPECIAL_TYPES=19]="SPECIAL_TYPES"}(Precedence||(Precedence={}));class Parser{constructor(grammar,textOrLexer,baseParser){this.grammar=grammar,this._lexer="string"==typeof textOrLexer?Lexer.create(textOrLexer):textOrLexer,this.baseParser=baseParser}get lexer(){return this._lexer}parse(){const result=this.parseType(Precedence.ALL);if("EOF"!==this.lexer.current.type)throw new EarlyEndOfParseError(this.lexer.current);return result}parseType(precedence){return assertRootResult(this.parseIntermediateType(precedence))}parseIntermediateType(precedence){const result=this.tryParslets(null,precedence);if(null===result)throw new NoParsletFoundError(this.lexer.current);return this.parseInfixIntermediateType(result,precedence)}parseInfixIntermediateType(left,precedence){let result=this.tryParslets(left,precedence);for(;null!==result;)left=result,result=this.tryParslets(left,precedence);return left}tryParslets(left,precedence){for(const parslet of this.grammar){const result=parslet(this,precedence,left);if(null!==result)return result}return null}consume(types){return Array.isArray(types)||(types=[types]),!!types.includes(this.lexer.current.type)&&(this._lexer=this.lexer.advance(),!0)}acceptLexerState(parser){this._lexer=parser.lexer}}function isQuestionMarkUnknownType(next){return"EOF"===next||"|"===next||","===next||")"===next||">"===next}const nullableParslet=(parser,precedence,left)=>{const type=parser.lexer.current.type,next=parser.lexer.next.type;return null==left&&"?"===type&&!isQuestionMarkUnknownType(next)||null!=left&&"?"===type?(parser.consume("?"),null==left?{type:"JsdocTypeNullable",element:parser.parseType(Precedence.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:assertRootResult(left),meta:{position:"suffix"}}):null};function composeParslet(options){const parslet=(parser,curPrecedence,left)=>{const type=parser.lexer.current.type,next=parser.lexer.next.type;if(null===left){if("parsePrefix"in options&&options.accept(type,next))return options.parsePrefix(parser)}else if("parseInfix"in options&&options.precedence>curPrecedence&&options.accept(type,next))return options.parseInfix(parser,left);return null};return Object.defineProperty(parslet,"name",{value:options.name}),parslet}const optionalParslet=composeParslet({name:"optionalParslet",accept:type=>"="===type,precedence:Precedence.OPTIONAL,parsePrefix:parser=>(parser.consume("="),{type:"JsdocTypeOptional",element:parser.parseType(Precedence.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(parser,left)=>(parser.consume("="),{type:"JsdocTypeOptional",element:assertRootResult(left),meta:{position:"suffix"}})}),numberParslet=composeParslet({name:"numberParslet",accept:type=>"Number"===type,parsePrefix:parser=>{const value=parseFloat(parser.lexer.current.text);return parser.consume("Number"),{type:"JsdocTypeNumber",value:value}}}),parenthesisParslet=composeParslet({name:"parenthesisParslet",accept:type=>"("===type,parsePrefix:parser=>{if(parser.consume("("),parser.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const result=parser.parseIntermediateType(Precedence.ALL);if(!parser.consume(")"))throw new Error("Unterminated parenthesis");return"JsdocTypeParameterList"===result.type?result:"JsdocTypeKeyValue"===result.type?{type:"JsdocTypeParameterList",elements:[result]}:{type:"JsdocTypeParenthesis",element:assertRootResult(result)}}}),specialTypesParslet=composeParslet({name:"specialTypesParslet",accept:(type,next)=>"?"===type&&isQuestionMarkUnknownType(next)||"null"===type||"undefined"===type||"*"===type,parsePrefix:parser=>{if(parser.consume("null"))return{type:"JsdocTypeNull"};if(parser.consume("undefined"))return{type:"JsdocTypeUndefined"};if(parser.consume("*"))return{type:"JsdocTypeAny"};if(parser.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+parser.lexer.current.text)}}),notNullableParslet=composeParslet({name:"notNullableParslet",accept:type=>"!"===type,precedence:Precedence.NULLABLE,parsePrefix:parser=>(parser.consume("!"),{type:"JsdocTypeNotNullable",element:parser.parseType(Precedence.NULLABLE),meta:{position:"prefix"}}),parseInfix:(parser,left)=>(parser.consume("!"),{type:"JsdocTypeNotNullable",element:assertRootResult(left),meta:{position:"suffix"}})});function createParameterListParslet({allowTrailingComma:allowTrailingComma}){return composeParslet({name:"parameterListParslet",accept:type=>","===type,precedence:Precedence.PARAMETER_LIST,parseInfix:(parser,left)=>{const elements=[assertPlainKeyValueOrRootResult(left)];parser.consume(",");do{try{const next=parser.parseIntermediateType(Precedence.PARAMETER_LIST);elements.push(assertPlainKeyValueOrRootResult(next))}catch(e){if(allowTrailingComma&&e instanceof NoParsletFoundError)break;throw e}}while(parser.consume(","));if(elements.length>0&&elements.slice(0,-1).some((e=>"JsdocTypeVariadic"===e.type)))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:elements}}})}const genericParslet=composeParslet({name:"genericParslet",accept:(type,next)=>"<"===type||"."===type&&"<"===next,precedence:Precedence.GENERIC,parseInfix:(parser,left)=>{const dot=parser.consume(".");parser.consume("<");const objects=[];do{objects.push(parser.parseType(Precedence.PARAMETER_LIST))}while(parser.consume(","));if(!parser.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:assertRootResult(left),elements:objects,meta:{brackets:"angle",dot:dot}}}}),unionParslet=composeParslet({name:"unionParslet",accept:type=>"|"===type,precedence:Precedence.UNION,parseInfix:(parser,left)=>{parser.consume("|");const elements=[];do{elements.push(parser.parseType(Precedence.UNION))}while(parser.consume("|"));return{type:"JsdocTypeUnion",elements:[assertRootResult(left),...elements]}}}),baseGrammar=[nullableParslet,optionalParslet,numberParslet,parenthesisParslet,specialTypesParslet,notNullableParslet,createParameterListParslet({allowTrailingComma:!0}),genericParslet,unionParslet,optionalParslet];function createNamePathParslet({allowSquareBracketsOnAnyType:allowSquareBracketsOnAnyType,allowJsdocNamePaths:allowJsdocNamePaths,pathGrammar:pathGrammar}){return function namePathParslet(parser,precedence,left){if(null==left||precedence>=Precedence.NAME_PATH)return null;const type=parser.lexer.current.type,next=parser.lexer.next.type;if(!("."===type&&"<"!==next||"["===type&&(allowSquareBracketsOnAnyType||"JsdocTypeName"===left.type)||allowJsdocNamePaths&&("~"===type||"#"===type)))return null;let pathType,brackets=!1;parser.consume(".")?pathType="property":parser.consume("[")?(pathType="property-brackets",brackets=!0):parser.consume("~")?pathType="inner":(parser.consume("#"),pathType="instance");const pathParser=null!==pathGrammar?new Parser(pathGrammar,parser.lexer,parser):parser,parsed=pathParser.parseIntermediateType(Precedence.NAME_PATH);let right;switch(parser.acceptLexerState(pathParser),parsed.type){case"JsdocTypeName":right={type:"JsdocTypeProperty",value:parsed.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":right={type:"JsdocTypeProperty",value:parsed.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":right={type:"JsdocTypeProperty",value:parsed.value,meta:{quote:parsed.meta.quote}};break;case"JsdocTypeSpecialNamePath":if("event"!==parsed.specialType)throw new UnexpectedTypeError(parsed,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");right=parsed;break;default:throw new UnexpectedTypeError(parsed,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(brackets&&!parser.consume("]")){const token=parser.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${token.type}' with text '${token.text}'`)}return{type:"JsdocTypeNamePath",left:assertRootResult(left),right:right,pathType:pathType}}}function createNameParslet({allowedAdditionalTokens:allowedAdditionalTokens}){return composeParslet({name:"nameParslet",accept:type=>"Identifier"===type||"this"===type||"new"===type||allowedAdditionalTokens.includes(type),parsePrefix:parser=>{const{type:type,text:text}=parser.lexer.current;return parser.consume(type),{type:"JsdocTypeName",value:text}}})}const stringValueParslet=composeParslet({name:"stringValueParslet",accept:type=>"StringValue"===type,parsePrefix:parser=>{const text=parser.lexer.current.text;return parser.consume("StringValue"),{type:"JsdocTypeStringValue",value:text.slice(1,-1),meta:{quote:"'"===text[0]?"single":"double"}}}});function createSpecialNamePathParslet({pathGrammar:pathGrammar,allowedTypes:allowedTypes}){return composeParslet({name:"specialNamePathParslet",accept:type=>allowedTypes.includes(type),parsePrefix:parser=>{const type=parser.lexer.current.type;if(parser.consume(type),!parser.consume(":"))return{type:"JsdocTypeName",value:type};let result,token=parser.lexer.current;if(parser.consume("StringValue"))result={type:"JsdocTypeSpecialNamePath",value:token.text.slice(1,-1),specialType:type,meta:{quote:"'"===token.text[0]?"single":"double"}};else{let value="";const allowed=["Identifier","@","/"];for(;allowed.some((type=>parser.consume(type)));)value+=token.text,token=parser.lexer.current;result={type:"JsdocTypeSpecialNamePath",value:value,specialType:type,meta:{quote:void 0}}}const moduleParser=new Parser(pathGrammar,parser.lexer,parser),moduleResult=moduleParser.parseInfixIntermediateType(result,Precedence.ALL);return parser.acceptLexerState(moduleParser),assertRootResult(moduleResult)}})}const basePathGrammar=[createNameParslet({allowedAdditionalTokens:["external","module"]}),stringValueParslet,numberParslet,createNamePathParslet({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],pathGrammar=[...basePathGrammar,createSpecialNamePathParslet({allowedTypes:["event"],pathGrammar:basePathGrammar})];function getParameters(value){let parameters;if("JsdocTypeParameterList"===value.type)parameters=value.elements;else{if("JsdocTypeParenthesis"!==value.type)throw new UnexpectedTypeError(value);parameters=[value.element]}return parameters.map((p=>assertPlainKeyValueOrRootResult(p)))}function getUnnamedParameters(value){const parameters=getParameters(value);if(parameters.some((p=>"JsdocTypeKeyValue"===p.type)))throw new Error("No parameter should be named");return parameters}function createFunctionParslet({allowNamedParameters:allowNamedParameters,allowNoReturnType:allowNoReturnType,allowWithoutParenthesis:allowWithoutParenthesis,allowNewAsFunctionKeyword:allowNewAsFunctionKeyword}){return composeParslet({name:"functionParslet",accept:(type,next)=>"function"===type||allowNewAsFunctionKeyword&&"new"===type&&"("===next,parsePrefix:parser=>{const newKeyword=parser.consume("new");parser.consume("function");const hasParenthesis="("===parser.lexer.current.type;if(!hasParenthesis){if(!allowWithoutParenthesis)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let result={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:newKeyword,parenthesis:hasParenthesis};const value=parser.parseIntermediateType(Precedence.FUNCTION);if(void 0===allowNamedParameters)result.parameters=getUnnamedParameters(value);else{if(newKeyword&&"JsdocTypeFunction"===value.type&&value.arrow)return result=value,result.constructor=!0,result;result.parameters=getParameters(value);for(const p of result.parameters)if("JsdocTypeKeyValue"===p.type&&!allowNamedParameters.includes(p.key))throw new Error(`only allowed named parameters are ${allowNamedParameters.join(", ")} but got ${p.type}`)}if(parser.consume(":"))result.returnType=parser.parseType(Precedence.PREFIX);else if(!allowNoReturnType)throw new Error("function is missing return type");return result}})}function createVariadicParslet({allowPostfix:allowPostfix,allowEnclosingBrackets:allowEnclosingBrackets}){return composeParslet({name:"variadicParslet",accept:type=>"..."===type,precedence:Precedence.PREFIX,parsePrefix:parser=>{parser.consume("...");const brackets=allowEnclosingBrackets&&parser.consume("[");try{const element=parser.parseType(Precedence.PREFIX);if(brackets&&!parser.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:assertRootResult(element),meta:{position:"prefix",squareBrackets:brackets}}}catch(e){if(e instanceof NoParsletFoundError){if(brackets)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}throw e}},parseInfix:allowPostfix?(parser,left)=>(parser.consume("..."),{type:"JsdocTypeVariadic",element:assertRootResult(left),meta:{position:"suffix",squareBrackets:!1}}):void 0})}const symbolParslet=composeParslet({name:"symbolParslet",accept:type=>"("===type,precedence:Precedence.SYMBOL,parseInfix:(parser,left)=>{if("JsdocTypeName"!==left.type)throw new Error("Symbol expects a name on the left side. (Reacting on '(')");parser.consume("(");const result={type:"JsdocTypeSymbol",value:left.value};if(!parser.consume(")")){const next=parser.parseIntermediateType(Precedence.SYMBOL);if(result.element=assertNumberOrVariadicNameResult(next),!parser.consume(")"))throw new Error("Symbol does not end after value")}return result}}),arrayBracketsParslet=composeParslet({name:"arrayBracketsParslet",precedence:Precedence.ARRAY_BRACKETS,accept:(type,next)=>"["===type&&"]"===next,parseInfix:(parser,left)=>(parser.consume("["),parser.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[assertRootResult(left)],meta:{brackets:"square",dot:!1}})});function createObjectParslet({objectFieldGrammar:objectFieldGrammar,allowKeyTypes:allowKeyTypes}){return composeParslet({name:"objectParslet",accept:type=>"{"===type,parsePrefix:parser=>{parser.consume("{");const result={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!parser.consume("}")){let separator;const fieldParser=new Parser(objectFieldGrammar,parser.lexer,parser);for(;;){fieldParser.acceptLexerState(parser);let field=fieldParser.parseIntermediateType(Precedence.OBJECT);parser.acceptLexerState(fieldParser),void 0===field&&allowKeyTypes&&(field=parser.parseIntermediateType(Precedence.OBJECT));let optional=!1;if("JsdocTypeNullable"===field.type&&(optional=!0,field=field.element),"JsdocTypeNumber"===field.type||"JsdocTypeName"===field.type||"JsdocTypeStringValue"===field.type){let quote;"JsdocTypeStringValue"===field.type&&(quote=field.meta.quote),result.elements.push({type:"JsdocTypeObjectField",key:field.value.toString(),right:void 0,optional:optional,readonly:!1,meta:{quote:quote}})}else{if("JsdocTypeObjectField"!==field.type&&"JsdocTypeJsdocObjectField"!==field.type)throw new UnexpectedTypeError(field);result.elements.push(field)}if(parser.lexer.current.startOfLine)separator="linebreak";else if(parser.consume(","))separator="comma";else{if(!parser.consume(";"))break;separator="semicolon"}if("}"===parser.lexer.current.type)break}if(result.meta.separator=null!=separator?separator:"comma",!parser.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return result}})}function createObjectFieldParslet({allowSquaredProperties:allowSquaredProperties,allowKeyTypes:allowKeyTypes,allowReadonly:allowReadonly,allowOptional:allowOptional}){return composeParslet({name:"objectFieldParslet",precedence:Precedence.KEY_VALUE,accept:type=>":"===type,parseInfix:(parser,left)=>{var _a;let optional=!1,readonlyProperty=!1;allowOptional&&"JsdocTypeNullable"===left.type&&(optional=!0,left=left.element),allowReadonly&&"JsdocTypeReadonlyProperty"===left.type&&(readonlyProperty=!0,left=left.element);const parentParser=null!==(_a=parser.baseParser)&&void 0!==_a?_a:parser;if(parentParser.acceptLexerState(parser),"JsdocTypeNumber"===left.type||"JsdocTypeName"===left.type||"JsdocTypeStringValue"===left.type||isSquaredProperty(left)){if(isSquaredProperty(left)&&!allowSquaredProperties)throw new UnexpectedTypeError(left);let quote;parentParser.consume(":"),"JsdocTypeStringValue"===left.type&&(quote=left.meta.quote);const right=parentParser.parseType(Precedence.KEY_VALUE);return parser.acceptLexerState(parentParser),{type:"JsdocTypeObjectField",key:isSquaredProperty(left)?left:left.value.toString(),right:right,optional:optional,readonly:readonlyProperty,meta:{quote:quote}}}{if(!allowKeyTypes)throw new UnexpectedTypeError(left);parentParser.consume(":");const right=parentParser.parseType(Precedence.KEY_VALUE);return parser.acceptLexerState(parentParser),{type:"JsdocTypeJsdocObjectField",left:assertRootResult(left),right:right}}}})}function createKeyValueParslet({allowOptional:allowOptional,allowVariadic:allowVariadic}){return composeParslet({name:"keyValueParslet",precedence:Precedence.KEY_VALUE,accept:type=>":"===type,parseInfix:(parser,left)=>{let optional=!1,variadic=!1;if(allowOptional&&"JsdocTypeNullable"===left.type&&(optional=!0,left=left.element),allowVariadic&&"JsdocTypeVariadic"===left.type&&void 0!==left.element&&(variadic=!0,left=left.element),"JsdocTypeName"!==left.type)throw new UnexpectedTypeError(left);parser.consume(":");const right=parser.parseType(Precedence.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:left.value,right:right,optional:optional,variadic:variadic}}})}const jsdocBaseGrammar=[...baseGrammar,createFunctionParslet({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),stringValueParslet,createSpecialNamePathParslet({allowedTypes:["module","external","event"],pathGrammar:pathGrammar}),createVariadicParslet({allowEnclosingBrackets:!0,allowPostfix:!0}),createNameParslet({allowedAdditionalTokens:["keyof"]}),symbolParslet,arrayBracketsParslet,createNamePathParslet({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:pathGrammar})],jsdocGrammar=[...jsdocBaseGrammar,createObjectParslet({objectFieldGrammar:[createNameParslet({allowedAdditionalTokens:["module","in"]}),createObjectFieldParslet({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...jsdocBaseGrammar],allowKeyTypes:!0}),createKeyValueParslet({allowOptional:!0,allowVariadic:!0})],typeOfParslet=composeParslet({name:"typeOfParslet",accept:type=>"typeof"===type,parsePrefix:parser=>(parser.consume("typeof"),{type:"JsdocTypeTypeof",element:assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF))})}),objectFieldGrammar$1=[createNameParslet({allowedAdditionalTokens:["module","keyof","event","external","in"]}),nullableParslet,optionalParslet,stringValueParslet,numberParslet,createObjectFieldParslet({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],closureGrammar=[...baseGrammar,createObjectParslet({allowKeyTypes:!1,objectFieldGrammar:objectFieldGrammar$1}),createNameParslet({allowedAdditionalTokens:["event","external","in"]}),typeOfParslet,createFunctionParslet({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),createVariadicParslet({allowEnclosingBrackets:!1,allowPostfix:!1}),createNameParslet({allowedAdditionalTokens:["keyof"]}),createSpecialNamePathParslet({allowedTypes:["module"],pathGrammar:pathGrammar}),createNamePathParslet({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:pathGrammar}),createKeyValueParslet({allowOptional:!1,allowVariadic:!1}),symbolParslet];function createTupleParslet({allowQuestionMark:allowQuestionMark}){return composeParslet({name:"tupleParslet",accept:type=>"["===type,parsePrefix:parser=>{parser.consume("[");const result={type:"JsdocTypeTuple",elements:[]};if(parser.consume("]"))return result;const typeList=parser.parseIntermediateType(Precedence.ALL);if("JsdocTypeParameterList"===typeList.type?"JsdocTypeKeyValue"===typeList.elements[0].type?result.elements=typeList.elements.map(assertPlainKeyValueResult):result.elements=typeList.elements.map(assertRootResult):"JsdocTypeKeyValue"===typeList.type?result.elements=[assertPlainKeyValueResult(typeList)]:result.elements=[assertRootResult(typeList)],!parser.consume("]"))throw new Error("Unterminated '['");if(!allowQuestionMark&&result.elements.some((e=>"JsdocTypeUnknown"===e.type)))throw new Error("Question mark in tuple not allowed");return result}})}const keyOfParslet=composeParslet({name:"keyOfParslet",accept:type=>"keyof"===type,parsePrefix:parser=>(parser.consume("keyof"),{type:"JsdocTypeKeyof",element:assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF))})}),importParslet=composeParslet({name:"importParslet",accept:type=>"import"===type,parsePrefix:parser=>{if(parser.consume("import"),!parser.consume("("))throw new Error("Missing parenthesis after import keyword");const path=parser.parseType(Precedence.PREFIX);if("JsdocTypeStringValue"!==path.type)throw new Error("Only string values are allowed as paths for imports");if(!parser.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:path}}}),readonlyPropertyParslet=composeParslet({name:"readonlyPropertyParslet",accept:type=>"readonly"===type,parsePrefix:parser=>(parser.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:parser.parseType(Precedence.KEY_VALUE)})}),arrowFunctionParslet=composeParslet({name:"arrowFunctionParslet",precedence:Precedence.ARROW,accept:type=>"=>"===type,parseInfix:(parser,left)=>(parser.consume("=>"),{type:"JsdocTypeFunction",parameters:getParameters(left).map(assertPlainKeyValueOrNameResult),arrow:!0,constructor:!1,parenthesis:!0,returnType:parser.parseType(Precedence.OBJECT)})}),intersectionParslet=composeParslet({name:"intersectionParslet",accept:type=>"&"===type,precedence:Precedence.INTERSECTION,parseInfix:(parser,left)=>{parser.consume("&");const elements=[];do{elements.push(parser.parseType(Precedence.INTERSECTION))}while(parser.consume("&"));return{type:"JsdocTypeIntersection",elements:[assertRootResult(left),...elements]}}}),predicateParslet=composeParslet({name:"predicateParslet",precedence:Precedence.INFIX,accept:type=>"is"===type,parseInfix:(parser,left)=>{if("JsdocTypeName"!==left.type)throw new UnexpectedTypeError(left,"A typescript predicate always has to have a name on the left side.");return parser.consume("is"),{type:"JsdocTypePredicate",left:left,right:assertRootResult(parser.parseIntermediateType(Precedence.INFIX))}}}),objectSquaredPropertyParslet=composeParslet({name:"objectSquareBracketPropertyParslet",accept:type=>"["===type,parsePrefix:parser=>{if(void 0===parser.baseParser)throw new Error("Only allowed inside object grammar");parser.consume("[");const key=parser.lexer.current.text;let result;if(parser.consume("Identifier"),parser.consume(":")){const parentParser=parser.baseParser;parentParser.acceptLexerState(parser),result={type:"JsdocTypeIndexSignature",key:key,right:parentParser.parseType(Precedence.ARRAY_BRACKETS)},parser.acceptLexerState(parentParser)}else{if(!parser.consume("in"))throw new Error("Missing ':' or 'in' inside square bracketed property.");{const parentParser=parser.baseParser;parentParser.acceptLexerState(parser),result={type:"JsdocTypeMappedType",key:key,right:parentParser.parseType(Precedence.ARRAY_BRACKETS)},parser.acceptLexerState(parentParser)}}if(!parser.consume("]"))throw new Error("Unterminated square brackets");return result}}),objectFieldGrammar=[readonlyPropertyParslet,createNameParslet({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),nullableParslet,optionalParslet,stringValueParslet,numberParslet,createObjectFieldParslet({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),objectSquaredPropertyParslet],typescriptGrammar=[...baseGrammar,createObjectParslet({allowKeyTypes:!1,objectFieldGrammar:objectFieldGrammar}),typeOfParslet,keyOfParslet,importParslet,stringValueParslet,createFunctionParslet({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),createTupleParslet({allowQuestionMark:!1}),createVariadicParslet({allowEnclosingBrackets:!1,allowPostfix:!1}),createNameParslet({allowedAdditionalTokens:["event","external","in"]}),createSpecialNamePathParslet({allowedTypes:["module"],pathGrammar:pathGrammar}),arrayBracketsParslet,arrowFunctionParslet,createNamePathParslet({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:pathGrammar}),intersectionParslet,predicateParslet,createKeyValueParslet({allowVariadic:!0,allowOptional:!0})];function parse(expression,mode){switch(mode){case"closure":return new Parser(closureGrammar,expression).parse();case"jsdoc":return new Parser(jsdocGrammar,expression).parse();case"typescript":return new Parser(typescriptGrammar,expression).parse()}}function tryParse(expression,modes=["typescript","closure","jsdoc"]){let error;for(const mode of modes)try{return parse(expression,mode)}catch(e){error=e}throw error}function transform(rules,parseResult){const rule=rules[parseResult.type];if(void 0===rule)throw new Error(`In this set of transform rules exists no rule for type ${parseResult.type}.`);return rule(parseResult,(aParseResult=>transform(rules,aParseResult)))}function notAvailableTransform(parseResult){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function extractSpecialParams(source){const result={params:[]};for(const param of source.parameters)"JsdocTypeKeyValue"===param.type?"this"===param.key?result.this=param.right:"new"===param.key?result.new=param.right:result.params.push(param):result.params.push(param);return result}function applyPosition(position,target,value){return"prefix"===position?value+target:target+value}function quote(value,quote){switch(quote){case"double":return`"${value}"`;case"single":return`'${value}'`;case void 0:return value}}function stringifyRules(){return{JsdocTypeParenthesis:(result,transform)=>`(${void 0!==result.element?transform(result.element):""})`,JsdocTypeKeyof:(result,transform)=>`keyof ${transform(result.element)}`,JsdocTypeFunction:(result,transform)=>{if(result.arrow){if(void 0===result.returnType)throw new Error("Arrow function needs a return type.");let stringified=`(${result.parameters.map(transform).join(", ")}) => ${transform(result.returnType)}`;return result.constructor&&(stringified="new "+stringified),stringified}{let stringified=result.constructor?"new":"function";return result.parenthesis?(stringified+=`(${result.parameters.map(transform).join(", ")})`,void 0!==result.returnType&&(stringified+=`: ${transform(result.returnType)}`),stringified):stringified}},JsdocTypeName:result=>result.value,JsdocTypeTuple:(result,transform)=>`[${result.elements.map(transform).join(", ")}]`,JsdocTypeVariadic:(result,transform)=>void 0===result.meta.position?"...":applyPosition(result.meta.position,transform(result.element),"..."),JsdocTypeNamePath:(result,transform)=>{const left=transform(result.left),right=transform(result.right);switch(result.pathType){case"inner":return`${left}~${right}`;case"instance":return`${left}#${right}`;case"property":return`${left}.${right}`;case"property-brackets":return`${left}[${right}]`}},JsdocTypeStringValue:result=>quote(result.value,result.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(result,transform)=>{if("square"===result.meta.brackets){const element=result.elements[0],transformed=transform(element);return"JsdocTypeUnion"===element.type||"JsdocTypeIntersection"===element.type?`(${transformed})[]`:`${transformed}[]`}return`${transform(result.left)}${result.meta.dot?".":""}<${result.elements.map(transform).join(", ")}>`},JsdocTypeImport:(result,transform)=>`import(${transform(result.element)})`,JsdocTypeObjectField:(result,transform)=>{let text="";return result.readonly&&(text+="readonly "),"string"==typeof result.key?text+=quote(result.key,result.meta.quote):text+=transform(result.key),result.optional&&(text+="?"),void 0===result.right?text:text+`: ${transform(result.right)}`},JsdocTypeJsdocObjectField:(result,transform)=>`${transform(result.left)}: ${transform(result.right)}`,JsdocTypeKeyValue:(result,transform)=>{let text=result.key;return result.optional&&(text+="?"),result.variadic&&(text="..."+text),void 0===result.right?text:text+`: ${transform(result.right)}`},JsdocTypeSpecialNamePath:result=>`${result.specialType}:${quote(result.value,result.meta.quote)}`,JsdocTypeNotNullable:(result,transform)=>applyPosition(result.meta.position,transform(result.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(result,transform)=>applyPosition(result.meta.position,transform(result.element),"?"),JsdocTypeNumber:result=>result.value.toString(),JsdocTypeObject:(result,transform)=>`{${result.elements.map(transform).join(("comma"===result.meta.separator?",":";")+" ")}}`,JsdocTypeOptional:(result,transform)=>applyPosition(result.meta.position,transform(result.element),"="),JsdocTypeSymbol:(result,transform)=>`${result.value}(${void 0!==result.element?transform(result.element):""})`,JsdocTypeTypeof:(result,transform)=>`typeof ${transform(result.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(result,transform)=>result.elements.map(transform).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(result,transform)=>result.elements.map(transform).join(" & "),JsdocTypeProperty:result=>quote(result.value,result.meta.quote),JsdocTypePredicate:(result,transform)=>`${transform(result.left)} is ${transform(result.right)}`,JsdocTypeIndexSignature:(result,transform)=>`[${result.key}: ${transform(result.right)}]`,JsdocTypeMappedType:(result,transform)=>`[${result.key} in ${transform(result.right)}]`}}const storedStringifyRules=stringifyRules();function stringify(result){return transform(storedStringifyRules,result)}const reservedWords=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function makeName(value){const result={type:"NameExpression",name:value};return reservedWords.includes(value)&&(result.reservedWord=!0),result}const catharsisTransformRules={JsdocTypeOptional:(result,transform)=>{const transformed=transform(result.element);return transformed.optional=!0,transformed},JsdocTypeNullable:(result,transform)=>{const transformed=transform(result.element);return transformed.nullable=!0,transformed},JsdocTypeNotNullable:(result,transform)=>{const transformed=transform(result.element);return transformed.nullable=!1,transformed},JsdocTypeVariadic:(result,transform)=>{if(void 0===result.element)throw new Error("dots without value are not allowed in catharsis mode");const transformed=transform(result.element);return transformed.repeatable=!0,transformed},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:result=>makeName(quote(result.value,result.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(result,transform)=>{const params=extractSpecialParams(result),transformed={type:"FunctionType",params:params.params.map(transform)};return void 0!==params.this&&(transformed.this=transform(params.this)),void 0!==params.new&&(transformed.new=transform(params.new)),void 0!==result.returnType&&(transformed.result=transform(result.returnType)),transformed},JsdocTypeGeneric:(result,transform)=>({type:"TypeApplication",applications:result.elements.map((o=>transform(o))),expression:transform(result.left)}),JsdocTypeSpecialNamePath:result=>makeName(result.specialType+":"+quote(result.value,result.meta.quote)),JsdocTypeName:result=>"function"!==result.value?makeName(result.value):{type:"FunctionType",params:[]},JsdocTypeNumber:result=>makeName(result.value.toString()),JsdocTypeObject:(result,transform)=>{const transformed={type:"RecordType",fields:[]};for(const field of result.elements)"JsdocTypeObjectField"!==field.type&&"JsdocTypeJsdocObjectField"!==field.type?transformed.fields.push({type:"FieldType",key:transform(field),value:void 0}):transformed.fields.push(transform(field));return transformed},JsdocTypeObjectField:(result,transform)=>{if("string"!=typeof result.key)throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:makeName(quote(result.key,result.meta.quote)),value:void 0===result.right?void 0:transform(result.right)}},JsdocTypeJsdocObjectField:(result,transform)=>({type:"FieldType",key:transform(result.left),value:transform(result.right)}),JsdocTypeUnion:(result,transform)=>({type:"TypeUnion",elements:result.elements.map((e=>transform(e)))}),JsdocTypeKeyValue:(result,transform)=>({type:"FieldType",key:makeName(result.key),value:void 0===result.right?void 0:transform(result.right)}),JsdocTypeNamePath:(result,transform)=>{const leftResult=transform(result.left);let rightValue;rightValue="JsdocTypeSpecialNamePath"===result.right.type?transform(result.right).name:quote(result.right.value,result.right.meta.quote);const joiner="inner"===result.pathType?"~":"instance"===result.pathType?"#":".";return makeName(`${leftResult.name}${joiner}${rightValue}`)},JsdocTypeSymbol:result=>{let value="",element=result.element,trailingDots=!1;return"JsdocTypeVariadic"===(null==element?void 0:element.type)&&("prefix"===element.meta.position?value="...":trailingDots=!0,element=element.element),"JsdocTypeName"===(null==element?void 0:element.type)?value+=element.value:"JsdocTypeNumber"===(null==element?void 0:element.type)&&(value+=element.value.toString()),trailingDots&&(value+="..."),makeName(`${result.value}(${value})`)},JsdocTypeParenthesis:(result,transform)=>transform(assertRootResult(result.element)),JsdocTypeMappedType:notAvailableTransform,JsdocTypeIndexSignature:notAvailableTransform,JsdocTypeImport:notAvailableTransform,JsdocTypeKeyof:notAvailableTransform,JsdocTypeTuple:notAvailableTransform,JsdocTypeTypeof:notAvailableTransform,JsdocTypeIntersection:notAvailableTransform,JsdocTypeProperty:notAvailableTransform,JsdocTypePredicate:notAvailableTransform};function catharsisTransform(result){return transform(catharsisTransformRules,result)}function getQuoteStyle(quote){switch(quote){case void 0:return"none";case"single":return"single";case"double":return"double"}}function getMemberType(type){switch(type){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":case"property-brackets":return"MEMBER"}}function nestResults(type,results){return 2===results.length?{type:type,left:results[0],right:results[1]}:{type:type,left:results[0],right:nestResults(type,results.slice(1))}}const jtpRules={JsdocTypeOptional:(result,transform)=>({type:"OPTIONAL",value:transform(result.element),meta:{syntax:"prefix"===result.meta.position?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(result,transform)=>({type:"NULLABLE",value:transform(result.element),meta:{syntax:"prefix"===result.meta.position?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(result,transform)=>({type:"NOT_NULLABLE",value:transform(result.element),meta:{syntax:"prefix"===result.meta.position?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(result,transform)=>{const transformed={type:"VARIADIC",meta:{syntax:"prefix"===result.meta.position?"PREFIX_DOTS":"suffix"===result.meta.position?"SUFFIX_DOTS":"ONLY_DOTS"}};return void 0!==result.element&&(transformed.value=transform(result.element)),transformed},JsdocTypeName:result=>({type:"NAME",name:result.value}),JsdocTypeTypeof:(result,transform)=>({type:"TYPE_QUERY",name:transform(result.element)}),JsdocTypeTuple:(result,transform)=>({type:"TUPLE",entries:result.elements.map(transform)}),JsdocTypeKeyof:(result,transform)=>({type:"KEY_QUERY",value:transform(result.element)}),JsdocTypeImport:result=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:getQuoteStyle(result.element.meta.quote),string:result.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(result,transform)=>{const specialParams=extractSpecialParams(result),transformed={type:result.arrow?"ARROW":"FUNCTION",params:specialParams.params.map((param=>{if("JsdocTypeKeyValue"===param.type){if(void 0===param.right)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:param.key,typeName:transform(param.right)}}return transform(param)})),new:null,returns:null};return void 0!==specialParams.this?transformed.this=transform(specialParams.this):result.arrow||(transformed.this=null),void 0!==specialParams.new&&(transformed.new=transform(specialParams.new)),void 0!==result.returnType&&(transformed.returns=transform(result.returnType)),transformed},JsdocTypeGeneric:(result,transform)=>{const transformed={type:"GENERIC",subject:transform(result.left),objects:result.elements.map(transform),meta:{syntax:"square"===result.meta.brackets?"SQUARE_BRACKET":result.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return"square"!==result.meta.brackets||"JsdocTypeFunction"!==result.elements[0].type||result.elements[0].parenthesis||(transformed.objects[0]={type:"NAME",name:"function"}),transformed},JsdocTypeObjectField:(result,transform)=>{if("string"!=typeof result.key)throw new Error("Index signatures and mapped types are not supported");if(void 0===result.right)return{type:"RECORD_ENTRY",key:result.key,quoteStyle:getQuoteStyle(result.meta.quote),value:null,readonly:!1};let right=transform(result.right);return result.optional&&(right={type:"OPTIONAL",value:right,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:result.key.toString(),quoteStyle:getQuoteStyle(result.meta.quote),value:right,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(result,transform)=>{if(void 0===result.right)return{type:"RECORD_ENTRY",key:result.key,quoteStyle:"none",value:null,readonly:!1};let right=transform(result.right);return result.optional&&(right={type:"OPTIONAL",value:right,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:result.key,quoteStyle:"none",value:right,readonly:!1}},JsdocTypeObject:(result,transform)=>{const entries=[];for(const field of result.elements)"JsdocTypeObjectField"!==field.type&&"JsdocTypeJsdocObjectField"!==field.type||entries.push(transform(field));return{type:"RECORD",entries:entries}},JsdocTypeSpecialNamePath:result=>{if("module"!==result.specialType)throw new Error(`jsdoctypeparser does not support type ${result.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:getQuoteStyle(result.meta.quote),path:result.value}}},JsdocTypeNamePath:(result,transform)=>{let name,quoteStyle,hasEventPrefix=!1;"JsdocTypeSpecialNamePath"===result.right.type&&"event"===result.right.specialType?(hasEventPrefix=!0,name=result.right.value,quoteStyle=getQuoteStyle(result.right.meta.quote)):(name=result.right.value,quoteStyle=getQuoteStyle(result.right.meta.quote));const transformed={type:getMemberType(result.pathType),owner:transform(result.left),name:name,quoteStyle:quoteStyle,hasEventPrefix:hasEventPrefix};if("MODULE"===transformed.owner.type){const tModule=transformed.owner;return transformed.owner=transformed.owner.value,tModule.value=transformed,tModule}return transformed},JsdocTypeUnion:(result,transform)=>nestResults("UNION",result.elements.map(transform)),JsdocTypeParenthesis:(result,transform)=>({type:"PARENTHESIS",value:transform(assertRootResult(result.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:result=>({type:"STRING_VALUE",quoteStyle:getQuoteStyle(result.meta.quote),string:result.value}),JsdocTypeIntersection:(result,transform)=>nestResults("INTERSECTION",result.elements.map(transform)),JsdocTypeNumber:result=>({type:"NUMBER_VALUE",number:result.value.toString()}),JsdocTypeSymbol:notAvailableTransform,JsdocTypeProperty:notAvailableTransform,JsdocTypePredicate:notAvailableTransform,JsdocTypeMappedType:notAvailableTransform,JsdocTypeIndexSignature:notAvailableTransform};function jtpTransform(result){return transform(jtpRules,result)}function identityTransformRules(){return{JsdocTypeIntersection:(result,transform)=>({type:"JsdocTypeIntersection",elements:result.elements.map(transform)}),JsdocTypeGeneric:(result,transform)=>({type:"JsdocTypeGeneric",left:transform(result.left),elements:result.elements.map(transform),meta:{dot:result.meta.dot,brackets:result.meta.brackets}}),JsdocTypeNullable:result=>result,JsdocTypeUnion:(result,transform)=>({type:"JsdocTypeUnion",elements:result.elements.map(transform)}),JsdocTypeUnknown:result=>result,JsdocTypeUndefined:result=>result,JsdocTypeTypeof:(result,transform)=>({type:"JsdocTypeTypeof",element:transform(result.element)}),JsdocTypeSymbol:(result,transform)=>{const transformed={type:"JsdocTypeSymbol",value:result.value};return void 0!==result.element&&(transformed.element=transform(result.element)),transformed},JsdocTypeOptional:(result,transform)=>({type:"JsdocTypeOptional",element:transform(result.element),meta:{position:result.meta.position}}),JsdocTypeObject:(result,transform)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:result.elements.map(transform)}),JsdocTypeNumber:result=>result,JsdocTypeNull:result=>result,JsdocTypeNotNullable:(result,transform)=>({type:"JsdocTypeNotNullable",element:transform(result.element),meta:{position:result.meta.position}}),JsdocTypeSpecialNamePath:result=>result,JsdocTypeObjectField:(result,transform)=>({type:"JsdocTypeObjectField",key:result.key,right:void 0===result.right?void 0:transform(result.right),optional:result.optional,readonly:result.readonly,meta:result.meta}),JsdocTypeJsdocObjectField:(result,transform)=>({type:"JsdocTypeJsdocObjectField",left:transform(result.left),right:transform(result.right)}),JsdocTypeKeyValue:(result,transform)=>({type:"JsdocTypeKeyValue",key:result.key,right:void 0===result.right?void 0:transform(result.right),optional:result.optional,variadic:result.variadic}),JsdocTypeImport:(result,transform)=>({type:"JsdocTypeImport",element:transform(result.element)}),JsdocTypeAny:result=>result,JsdocTypeStringValue:result=>result,JsdocTypeNamePath:result=>result,JsdocTypeVariadic:(result,transform)=>{const transformed={type:"JsdocTypeVariadic",meta:{position:result.meta.position,squareBrackets:result.meta.squareBrackets}};return void 0!==result.element&&(transformed.element=transform(result.element)),transformed},JsdocTypeTuple:(result,transform)=>({type:"JsdocTypeTuple",elements:result.elements.map(transform)}),JsdocTypeName:result=>result,JsdocTypeFunction:(result,transform)=>{const transformed={type:"JsdocTypeFunction",arrow:result.arrow,parameters:result.parameters.map(transform),constructor:result.constructor,parenthesis:result.parenthesis};return void 0!==result.returnType&&(transformed.returnType=transform(result.returnType)),transformed},JsdocTypeKeyof:(result,transform)=>({type:"JsdocTypeKeyof",element:transform(result.element)}),JsdocTypeParenthesis:(result,transform)=>({type:"JsdocTypeParenthesis",element:transform(result.element)}),JsdocTypeProperty:result=>result,JsdocTypePredicate:(result,transform)=>({type:"JsdocTypePredicate",left:transform(result.left),right:transform(result.right)}),JsdocTypeIndexSignature:(result,transform)=>({type:"JsdocTypeIndexSignature",key:result.key,right:transform(result.right)}),JsdocTypeMappedType:(result,transform)=>({type:"JsdocTypeMappedType",key:result.key,right:transform(result.right)})}}const visitorKeys={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"]};function _traverse(node,parentNode,property,onEnter,onLeave){null==onEnter||onEnter(node,parentNode,property);const keysToVisit=visitorKeys[node.type];for(const key of keysToVisit){const value=node[key];if(void 0!==value)if(Array.isArray(value))for(const element of value)_traverse(element,node,key,onEnter,onLeave);else _traverse(value,node,key,onEnter,onLeave)}null==onLeave||onLeave(node,parentNode,property)}function traverse(node,onEnter,onLeave){_traverse(node,void 0,void 0,onEnter,onLeave)}exports.catharsisTransform=catharsisTransform,exports.identityTransformRules=identityTransformRules,exports.jtpTransform=jtpTransform,exports.parse=parse,exports.stringify=stringify,exports.stringifyRules=stringifyRules,exports.transform=transform,exports.traverse=traverse,exports.tryParse=tryParse,exports.visitorKeys=visitorKeys}(exports)},"./node_modules/process/browser.js":function(module){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i