@sikka/hawa 0.2.36-beta → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -65
- package/dist/index.cjs.js +8 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +8 -0
- package/dist/tailwind.css +3966 -0
- package/package.json +153 -145
- package/dist/blocks/Account/UserProfileForm.d.ts +0 -9
- package/dist/blocks/Account/UserProfileForm.d.ts.map +0 -1
- package/dist/blocks/Account/UserSettingsForm.d.ts +0 -10
- package/dist/blocks/Account/UserSettingsForm.d.ts.map +0 -1
- package/dist/blocks/Account/index.d.ts +0 -3
- package/dist/blocks/Account/index.d.ts.map +0 -1
- package/dist/blocks/AuthForms/AppLanding.d.ts +0 -39
- package/dist/blocks/AuthForms/AppLanding.d.ts.map +0 -1
- package/dist/blocks/AuthForms/CheckEmail.d.ts +0 -12
- package/dist/blocks/AuthForms/CheckEmail.d.ts.map +0 -1
- package/dist/blocks/AuthForms/CodeConfirmation.d.ts +0 -23
- package/dist/blocks/AuthForms/CodeConfirmation.d.ts.map +0 -1
- package/dist/blocks/AuthForms/NewPasswordForm.d.ts +0 -21
- package/dist/blocks/AuthForms/NewPasswordForm.d.ts.map +0 -1
- package/dist/blocks/AuthForms/ResetPasswordForm.d.ts +0 -21
- package/dist/blocks/AuthForms/ResetPasswordForm.d.ts.map +0 -1
- package/dist/blocks/AuthForms/SignInBlock.d.ts +0 -3
- package/dist/blocks/AuthForms/SignInBlock.d.ts.map +0 -1
- package/dist/blocks/AuthForms/SignInForm.d.ts +0 -60
- package/dist/blocks/AuthForms/SignInForm.d.ts.map +0 -1
- package/dist/blocks/AuthForms/SignInPhone.d.ts +0 -25
- package/dist/blocks/AuthForms/SignInPhone.d.ts.map +0 -1
- package/dist/blocks/AuthForms/SignUpForm.d.ts +0 -61
- package/dist/blocks/AuthForms/SignUpForm.d.ts.map +0 -1
- package/dist/blocks/AuthForms/index.d.ts +0 -10
- package/dist/blocks/AuthForms/index.d.ts.map +0 -1
- package/dist/blocks/Misc/Announcement.d.ts +0 -11
- package/dist/blocks/Misc/Announcement.d.ts.map +0 -1
- package/dist/blocks/Misc/EmptyState.d.ts +0 -12
- package/dist/blocks/Misc/EmptyState.d.ts.map +0 -1
- package/dist/blocks/Misc/LeadGenerator.d.ts +0 -13
- package/dist/blocks/Misc/LeadGenerator.d.ts.map +0 -1
- package/dist/blocks/Misc/NoPermission.d.ts +0 -10
- package/dist/blocks/Misc/NoPermission.d.ts.map +0 -1
- package/dist/blocks/Misc/NotFound.d.ts +0 -12
- package/dist/blocks/Misc/NotFound.d.ts.map +0 -1
- package/dist/blocks/Misc/Testimonial.d.ts +0 -7
- package/dist/blocks/Misc/Testimonial.d.ts.map +0 -1
- package/dist/blocks/Misc/index.d.ts +0 -7
- package/dist/blocks/Misc/index.d.ts.map +0 -1
- package/dist/blocks/Payment/ChargeWalletForm.d.ts +0 -13
- package/dist/blocks/Payment/ChargeWalletForm.d.ts.map +0 -1
- package/dist/blocks/Payment/CheckoutForm.d.ts +0 -28
- package/dist/blocks/Payment/CheckoutForm.d.ts.map +0 -1
- package/dist/blocks/Payment/Confirmation.d.ts +0 -39
- package/dist/blocks/Payment/Confirmation.d.ts.map +0 -1
- package/dist/blocks/Payment/CreditCardForm.d.ts +0 -8
- package/dist/blocks/Payment/CreditCardForm.d.ts.map +0 -1
- package/dist/blocks/Payment/PayWithWallet.d.ts +0 -9
- package/dist/blocks/Payment/PayWithWallet.d.ts.map +0 -1
- package/dist/blocks/Payment/SelectPayment.d.ts +0 -21
- package/dist/blocks/Payment/SelectPayment.d.ts.map +0 -1
- package/dist/blocks/Payment/index.d.ts +0 -7
- package/dist/blocks/Payment/index.d.ts.map +0 -1
- package/dist/blocks/Pricing/ComparingPlans.d.ts +0 -40
- package/dist/blocks/Pricing/ComparingPlans.d.ts.map +0 -1
- package/dist/blocks/Pricing/HorizontalPricing.d.ts +0 -48
- package/dist/blocks/Pricing/HorizontalPricing.d.ts.map +0 -1
- package/dist/blocks/Pricing/PricingPlans.d.ts +0 -48
- package/dist/blocks/Pricing/PricingPlans.d.ts.map +0 -1
- package/dist/blocks/Pricing/index.d.ts +0 -4
- package/dist/blocks/Pricing/index.d.ts.map +0 -1
- package/dist/blocks/Referral/ReferralAccount.d.ts +0 -8
- package/dist/blocks/Referral/ReferralAccount.d.ts.map +0 -1
- package/dist/blocks/Referral/ReferralSettlement.d.ts +0 -9
- package/dist/blocks/Referral/ReferralSettlement.d.ts.map +0 -1
- package/dist/blocks/Referral/ReferralStats.d.ts +0 -9
- package/dist/blocks/Referral/ReferralStats.d.ts.map +0 -1
- package/dist/blocks/Referral/index.d.ts +0 -4
- package/dist/blocks/Referral/index.d.ts.map +0 -1
- package/dist/blocks/index.d.ts +0 -7
- package/dist/blocks/index.d.ts.map +0 -1
- package/dist/countries.d.ts +0 -3
- package/dist/countries.d.ts.map +0 -1
- package/dist/elements/ActionCard.d.ts +0 -14
- package/dist/elements/ActionCard.d.ts.map +0 -1
- package/dist/elements/ArrowCarousel.d.ts +0 -14
- package/dist/elements/ArrowCarousel.d.ts.map +0 -1
- package/dist/elements/AutoCompleteField.d.ts +0 -9
- package/dist/elements/AutoCompleteField.d.ts.map +0 -1
- package/dist/elements/BackToTop.d.ts +0 -11
- package/dist/elements/BackToTop.d.ts.map +0 -1
- package/dist/elements/Breadcrumb.d.ts +0 -13
- package/dist/elements/Breadcrumb.d.ts.map +0 -1
- package/dist/elements/Button.d.ts +0 -13
- package/dist/elements/Button.d.ts.map +0 -1
- package/dist/elements/Card.d.ts +0 -14
- package/dist/elements/Card.d.ts.map +0 -1
- package/dist/elements/Carousel.d.ts +0 -7
- package/dist/elements/Carousel.d.ts.map +0 -1
- package/dist/elements/Checkbox.d.ts +0 -13
- package/dist/elements/Checkbox.d.ts.map +0 -1
- package/dist/elements/Command.d.ts +0 -47
- package/dist/elements/Command.d.ts.map +0 -1
- package/dist/elements/DataTable.d.ts +0 -27
- package/dist/elements/DataTable.d.ts.map +0 -1
- package/dist/elements/Dialog.d.ts +0 -19
- package/dist/elements/Dialog.d.ts.map +0 -1
- package/dist/elements/DragDropImages.d.ts +0 -36
- package/dist/elements/DragDropImages.d.ts.map +0 -1
- package/dist/elements/DraggableCard.d.ts +0 -7
- package/dist/elements/DraggableCard.d.ts.map +0 -1
- package/dist/elements/DropdownMenu.d.ts +0 -41
- package/dist/elements/DropdownMenu.d.ts.map +0 -1
- package/dist/elements/FeedbackByEmoji.d.ts +0 -8
- package/dist/elements/FeedbackByEmoji.d.ts.map +0 -1
- package/dist/elements/FeedbackRating.d.ts +0 -15
- package/dist/elements/FeedbackRating.d.ts.map +0 -1
- package/dist/elements/FloatingComment.d.ts +0 -33
- package/dist/elements/FloatingComment.d.ts.map +0 -1
- package/dist/elements/FloatingCommentExec.d.ts +0 -5
- package/dist/elements/FloatingCommentExec.d.ts.map +0 -1
- package/dist/elements/FloatingCommentSlate.d.ts +0 -20
- package/dist/elements/FloatingCommentSlate.d.ts.map +0 -1
- package/dist/elements/HawaAccordion.d.ts +0 -12
- package/dist/elements/HawaAccordion.d.ts.map +0 -1
- package/dist/elements/HawaAdCard.d.ts +0 -13
- package/dist/elements/HawaAdCard.d.ts.map +0 -1
- package/dist/elements/HawaAlert.d.ts +0 -25
- package/dist/elements/HawaAlert.d.ts.map +0 -1
- package/dist/elements/HawaButton.d.ts +0 -22
- package/dist/elements/HawaButton.d.ts.map +0 -1
- package/dist/elements/HawaCheckbox.d.ts +0 -13
- package/dist/elements/HawaCheckbox.d.ts.map +0 -1
- package/dist/elements/HawaChip.d.ts +0 -18
- package/dist/elements/HawaChip.d.ts.map +0 -1
- package/dist/elements/HawaCodeBlock.d.ts +0 -16
- package/dist/elements/HawaCodeBlock.d.ts.map +0 -1
- package/dist/elements/HawaColorPicker.d.ts +0 -10
- package/dist/elements/HawaColorPicker.d.ts.map +0 -1
- package/dist/elements/HawaCopyrights.d.ts +0 -16
- package/dist/elements/HawaCopyrights.d.ts.map +0 -1
- package/dist/elements/HawaDatepicker.d.ts +0 -5
- package/dist/elements/HawaDatepicker.d.ts.map +0 -1
- package/dist/elements/HawaIconCount.d.ts +0 -10
- package/dist/elements/HawaIconCount.d.ts.map +0 -1
- package/dist/elements/HawaInlineCode.d.ts +0 -7
- package/dist/elements/HawaInlineCode.d.ts.map +0 -1
- package/dist/elements/HawaItemCard.d.ts +0 -28
- package/dist/elements/HawaItemCard.d.ts.map +0 -1
- package/dist/elements/HawaLandingCard.d.ts +0 -19
- package/dist/elements/HawaLandingCard.d.ts.map +0 -1
- package/dist/elements/HawaLoading.d.ts +0 -9
- package/dist/elements/HawaLoading.d.ts.map +0 -1
- package/dist/elements/HawaMenu.d.ts +0 -25
- package/dist/elements/HawaMenu.d.ts.map +0 -1
- package/dist/elements/HawaModal.d.ts +0 -22
- package/dist/elements/HawaModal.d.ts.map +0 -1
- package/dist/elements/HawaPanelTabs.d.ts +0 -14
- package/dist/elements/HawaPanelTabs.d.ts.map +0 -1
- package/dist/elements/HawaPhoneInput.d.ts +0 -12
- package/dist/elements/HawaPhoneInput.d.ts.map +0 -1
- package/dist/elements/HawaPinInput.d.ts +0 -11
- package/dist/elements/HawaPinInput.d.ts.map +0 -1
- package/dist/elements/HawaPricingCard.d.ts +0 -22
- package/dist/elements/HawaPricingCard.d.ts.map +0 -1
- package/dist/elements/HawaRadio.d.ts +0 -18
- package/dist/elements/HawaRadio.d.ts.map +0 -1
- package/dist/elements/HawaRange.d.ts +0 -13
- package/dist/elements/HawaRange.d.ts.map +0 -1
- package/dist/elements/HawaSearchBar.d.ts +0 -5
- package/dist/elements/HawaSearchBar.d.ts.map +0 -1
- package/dist/elements/HawaSelect.d.ts +0 -26
- package/dist/elements/HawaSelect.d.ts.map +0 -1
- package/dist/elements/HawaSettingsRow.d.ts +0 -45
- package/dist/elements/HawaSettingsRow.d.ts.map +0 -1
- package/dist/elements/HawaStats.d.ts +0 -16
- package/dist/elements/HawaStats.d.ts.map +0 -1
- package/dist/elements/HawaStepper.d.ts +0 -9
- package/dist/elements/HawaStepper.d.ts.map +0 -1
- package/dist/elements/HawaStoreButtons.d.ts +0 -8
- package/dist/elements/HawaStoreButtons.d.ts.map +0 -1
- package/dist/elements/HawaTable.d.ts +0 -43
- package/dist/elements/HawaTable.d.ts.map +0 -1
- package/dist/elements/HawaTabs.d.ts +0 -14
- package/dist/elements/HawaTabs.d.ts.map +0 -1
- package/dist/elements/HawaTextField.d.ts +0 -35
- package/dist/elements/HawaTextField.d.ts.map +0 -1
- package/dist/elements/HawaTypography.d.ts +0 -8
- package/dist/elements/HawaTypography.d.ts.map +0 -1
- package/dist/elements/Icons.d.ts +0 -23
- package/dist/elements/Icons.d.ts.map +0 -1
- package/dist/elements/Input.d.ts +0 -6
- package/dist/elements/Input.d.ts.map +0 -1
- package/dist/elements/InterfaceSettings.d.ts +0 -12
- package/dist/elements/InterfaceSettings.d.ts.map +0 -1
- package/dist/elements/InvoiceAccordion.d.ts +0 -32
- package/dist/elements/InvoiceAccordion.d.ts.map +0 -1
- package/dist/elements/Label.d.ts +0 -6
- package/dist/elements/Label.d.ts.map +0 -1
- package/dist/elements/Popover.d.ts +0 -17
- package/dist/elements/Popover.d.ts.map +0 -1
- package/dist/elements/SearchableSelect.d.ts +0 -19
- package/dist/elements/SearchableSelect.d.ts.map +0 -1
- package/dist/elements/Select.d.ts +0 -12
- package/dist/elements/Select.d.ts.map +0 -1
- package/dist/elements/Separator.d.ts +0 -5
- package/dist/elements/Separator.d.ts.map +0 -1
- package/dist/elements/Skeleton.d.ts +0 -4
- package/dist/elements/Skeleton.d.ts.map +0 -1
- package/dist/elements/SortButton.d.ts +0 -3
- package/dist/elements/SortButton.d.ts.map +0 -1
- package/dist/elements/StickyFeatures.d.ts +0 -15
- package/dist/elements/StickyFeatures.d.ts.map +0 -1
- package/dist/elements/SubsectionList.d.ts +0 -20
- package/dist/elements/SubsectionList.d.ts.map +0 -1
- package/dist/elements/Switch.d.ts +0 -9
- package/dist/elements/Switch.d.ts.map +0 -1
- package/dist/elements/TabPanel.d.ts +0 -9
- package/dist/elements/TabPanel.d.ts.map +0 -1
- package/dist/elements/Table.d.ts +0 -18
- package/dist/elements/Table.d.ts.map +0 -1
- package/dist/elements/TableTest.d.ts +0 -43
- package/dist/elements/TableTest.d.ts.map +0 -1
- package/dist/elements/Tabs.d.ts +0 -10
- package/dist/elements/Tabs.d.ts.map +0 -1
- package/dist/elements/Test.d.ts +0 -3
- package/dist/elements/Test.d.ts.map +0 -1
- package/dist/elements/Textarea.d.ts +0 -8
- package/dist/elements/Textarea.d.ts.map +0 -1
- package/dist/elements/Timeline.d.ts +0 -14
- package/dist/elements/Timeline.d.ts.map +0 -1
- package/dist/elements/Toast.d.ts +0 -20
- package/dist/elements/Toast.d.ts.map +0 -1
- package/dist/elements/Toaster.d.ts +0 -3
- package/dist/elements/Toaster.d.ts.map +0 -1
- package/dist/elements/Tooltip.d.ts +0 -13
- package/dist/elements/Tooltip.d.ts.map +0 -1
- package/dist/elements/UsageCard.d.ts +0 -10
- package/dist/elements/UsageCard.d.ts.map +0 -1
- package/dist/elements/UserReferralSource.d.ts +0 -15
- package/dist/elements/UserReferralSource.d.ts.map +0 -1
- package/dist/elements/index.d.ts +0 -77
- package/dist/elements/index.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -14
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useBreakpoint.d.ts +0 -3
- package/dist/hooks/useBreakpoint.d.ts.map +0 -1
- package/dist/hooks/useCarousel.d.ts +0 -9
- package/dist/hooks/useCarousel.d.ts.map +0 -1
- package/dist/hooks/useClipboard.d.ts +0 -9
- package/dist/hooks/useClipboard.d.ts.map +0 -1
- package/dist/hooks/useDiscloser.d.ts +0 -8
- package/dist/hooks/useDiscloser.d.ts.map +0 -1
- package/dist/hooks/useFocusWithin.d.ts +0 -10
- package/dist/hooks/useFocusWithin.d.ts.map +0 -1
- package/dist/hooks/useFullscreen.d.ts +0 -6
- package/dist/hooks/useFullscreen.d.ts.map +0 -1
- package/dist/hooks/useHover.d.ts +0 -4
- package/dist/hooks/useHover.d.ts.map +0 -1
- package/dist/hooks/useMediaQuery.d.ts +0 -5
- package/dist/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/hooks/useParentDirection.d.ts +0 -6
- package/dist/hooks/useParentDirection.d.ts.map +0 -1
- package/dist/hooks/useScrollPosition.d.ts +0 -3
- package/dist/hooks/useScrollPosition.d.ts.map +0 -1
- package/dist/hooks/useTable.d.ts +0 -6
- package/dist/hooks/useTable.d.ts.map +0 -1
- package/dist/hooks/useTabs.d.ts +0 -6
- package/dist/hooks/useTabs.d.ts.map +0 -1
- package/dist/hooks/useToast.d.ts +0 -46
- package/dist/hooks/useToast.d.ts.map +0 -1
- package/dist/hooks/useWindowEvent.d.ts +0 -2
- package/dist/hooks/useWindowEvent.d.ts.map +0 -1
- package/dist/hooks/useWindowScroll.d.ts +0 -8
- package/dist/hooks/useWindowScroll.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.es.js +0 -47963
- package/dist/index.umd.js +0 -254
- package/dist/layout/AppLayout.d.ts +0 -46
- package/dist/layout/AppLayout.d.ts.map +0 -1
- package/dist/layout/AppSidebar.d.ts +0 -12
- package/dist/layout/AppSidebar.d.ts.map +0 -1
- package/dist/layout/Banner.d.ts +0 -15
- package/dist/layout/Banner.d.ts.map +0 -1
- package/dist/layout/Box.d.ts +0 -3
- package/dist/layout/Box.d.ts.map +0 -1
- package/dist/layout/Footer.d.ts +0 -23
- package/dist/layout/Footer.d.ts.map +0 -1
- package/dist/layout/HawaAppLayout.d.ts +0 -32
- package/dist/layout/HawaAppLayout.d.ts.map +0 -1
- package/dist/layout/HawaAppLayoutSimplified.d.ts +0 -33
- package/dist/layout/HawaAppLayoutSimplified.d.ts.map +0 -1
- package/dist/layout/HawaBottomAppBar.d.ts +0 -9
- package/dist/layout/HawaBottomAppBar.d.ts.map +0 -1
- package/dist/layout/HawaContainer.d.ts +0 -11
- package/dist/layout/HawaContainer.d.ts.map +0 -1
- package/dist/layout/HawaGrid.d.ts +0 -7
- package/dist/layout/HawaGrid.d.ts.map +0 -1
- package/dist/layout/HawaSiteLayout.d.ts +0 -24
- package/dist/layout/HawaSiteLayout.d.ts.map +0 -1
- package/dist/layout/Sidebar.d.ts +0 -36
- package/dist/layout/Sidebar.d.ts.map +0 -1
- package/dist/layout/Sidebar2.d.ts +0 -21
- package/dist/layout/Sidebar2.d.ts.map +0 -1
- package/dist/layout/index.d.ts +0 -13
- package/dist/layout/index.d.ts.map +0 -1
- package/dist/style.css +0 -1
- package/dist/util.d.ts +0 -11
- package/dist/util.d.ts.map +0 -1
package/dist/index.umd.js
DELETED
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
(function(Ce,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(Ce=typeof globalThis<"u"?globalThis:Ce||self,p(Ce.index={},Ce.React,Ce.ReactDOM))})(this,function(Ce,p,wo){"use strict";function j0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const q=j0(p),e4=j0(wo),l_="";var Gc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kg={exports:{}},Ul={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var I0;function t4(){if(I0)return Ul;I0=1;var e=p,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,u,c){var d,g={},v=null,y=null;c!==void 0&&(v=""+c),u.key!==void 0&&(v=""+u.key),u.ref!==void 0&&(y=u.ref);for(d in u)r.call(u,d)&&!a.hasOwnProperty(d)&&(g[d]=u[d]);if(s&&s.defaultProps)for(d in u=s.defaultProps,u)g[d]===void 0&&(g[d]=u[d]);return{$$typeof:t,type:s,key:v,ref:y,props:g,_owner:o.current}}return Ul.Fragment=n,Ul.jsx=i,Ul.jsxs=i,Ul}var Zl={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var T0;function n4(){return T0||(T0=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),C=Symbol.iterator,h="@@iterator";function w(ie){if(ie===null||typeof ie!="object")return null;var Ve=C&&ie[C]||ie[h];return typeof Ve=="function"?Ve:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(ie){{for(var Ve=arguments.length,Je=new Array(Ve>1?Ve-1:0),ct=1;ct<Ve;ct++)Je[ct-1]=arguments[ct];P("error",ie,Je)}}function P(ie,Ve,Je){{var ct=E.ReactDebugCurrentFrame,St=ct.getStackAddendum();St!==""&&(Ve+="%s",Je=Je.concat([St]));var jt=Je.map(function(Ft){return String(Ft)});jt.unshift("Warning: "+Ve),Function.prototype.apply.call(console[ie],console,jt)}}var N=!1,$=!1,G=!1,V=!1,J=!1,K;K=Symbol.for("react.module.reference");function me(ie){return!!(typeof ie=="string"||typeof ie=="function"||ie===r||ie===a||J||ie===o||ie===c||ie===d||V||ie===y||N||$||G||typeof ie=="object"&&ie!==null&&(ie.$$typeof===v||ie.$$typeof===g||ie.$$typeof===i||ie.$$typeof===s||ie.$$typeof===u||ie.$$typeof===K||ie.getModuleId!==void 0))}function ye(ie,Ve,Je){var ct=ie.displayName;if(ct)return ct;var St=Ve.displayName||Ve.name||"";return St!==""?Je+"("+St+")":Je}function ne(ie){return ie.displayName||"Context"}function fe(ie){if(ie==null)return null;if(typeof ie.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ie=="function")return ie.displayName||ie.name||null;if(typeof ie=="string")return ie;switch(ie){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof ie=="object")switch(ie.$$typeof){case s:var Ve=ie;return ne(Ve)+".Consumer";case i:var Je=ie;return ne(Je._context)+".Provider";case u:return ye(ie,ie.render,"ForwardRef");case g:var ct=ie.displayName||null;return ct!==null?ct:fe(ie.type)||"Memo";case v:{var St=ie,jt=St._payload,Ft=St._init;try{return fe(Ft(jt))}catch{return null}}}return null}var R=Object.assign,W=0,oe,pe,se,Z,te,U,Q;function he(){}he.__reactDisabledLog=!0;function H(){{if(W===0){oe=console.log,pe=console.info,se=console.warn,Z=console.error,te=console.group,U=console.groupCollapsed,Q=console.groupEnd;var ie={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:ie,log:ie,warn:ie,error:ie,group:ie,groupCollapsed:ie,groupEnd:ie})}W++}}function ge(){{if(W--,W===0){var ie={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},ie,{value:oe}),info:R({},ie,{value:pe}),warn:R({},ie,{value:se}),error:R({},ie,{value:Z}),group:R({},ie,{value:te}),groupCollapsed:R({},ie,{value:U}),groupEnd:R({},ie,{value:Q})})}W<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=E.ReactCurrentDispatcher,be;function Me(ie,Ve,Je){{if(be===void 0)try{throw Error()}catch(St){var ct=St.stack.trim().match(/\n( *(at )?)/);be=ct&&ct[1]||""}return`
|
|
18
|
-
`+be+ie}}var Ne=!1,We;{var Ke=typeof WeakMap=="function"?WeakMap:Map;We=new Ke}function $e(ie,Ve){if(!ie||Ne)return"";{var Je=We.get(ie);if(Je!==void 0)return Je}var ct;Ne=!0;var St=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var jt;jt=ae.current,ae.current=null,H();try{if(Ve){var Ft=function(){throw Error()};if(Object.defineProperty(Ft.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ft,[])}catch(on){ct=on}Reflect.construct(ie,[],Ft)}else{try{Ft.call()}catch(on){ct=on}ie.call(Ft.prototype)}}else{try{throw Error()}catch(on){ct=on}ie()}}catch(on){if(on&&ct&&typeof on.stack=="string"){for(var yt=on.stack.split(`
|
|
19
|
-
`),rn=ct.stack.split(`
|
|
20
|
-
`),Rt=yt.length-1,Mt=rn.length-1;Rt>=1&&Mt>=0&&yt[Rt]!==rn[Mt];)Mt--;for(;Rt>=1&&Mt>=0;Rt--,Mt--)if(yt[Rt]!==rn[Mt]){if(Rt!==1||Mt!==1)do if(Rt--,Mt--,Mt<0||yt[Rt]!==rn[Mt]){var Qt=`
|
|
21
|
-
`+yt[Rt].replace(" at new "," at ");return ie.displayName&&Qt.includes("<anonymous>")&&(Qt=Qt.replace("<anonymous>",ie.displayName)),typeof ie=="function"&&We.set(ie,Qt),Qt}while(Rt>=1&&Mt>=0);break}}}finally{Ne=!1,ae.current=jt,ge(),Error.prepareStackTrace=St}var kn=ie?ie.displayName||ie.name:"",hr=kn?Me(kn):"";return typeof ie=="function"&&We.set(ie,hr),hr}function qe(ie,Ve,Je){return $e(ie,!1)}function ot(ie){var Ve=ie.prototype;return!!(Ve&&Ve.isReactComponent)}function ht(ie,Ve,Je){if(ie==null)return"";if(typeof ie=="function")return $e(ie,ot(ie));if(typeof ie=="string")return Me(ie);switch(ie){case c:return Me("Suspense");case d:return Me("SuspenseList")}if(typeof ie=="object")switch(ie.$$typeof){case u:return qe(ie.render);case g:return ht(ie.type,Ve,Je);case v:{var ct=ie,St=ct._payload,jt=ct._init;try{return ht(jt(St),Ve,Je)}catch{}}}return""}var At=Object.prototype.hasOwnProperty,le={},Ee=E.ReactDebugCurrentFrame;function Ie(ie){if(ie){var Ve=ie._owner,Je=ht(ie.type,ie._source,Ve?Ve.type:null);Ee.setExtraStackFrame(Je)}else Ee.setExtraStackFrame(null)}function Ze(ie,Ve,Je,ct,St){{var jt=Function.call.bind(At);for(var Ft in ie)if(jt(ie,Ft)){var yt=void 0;try{if(typeof ie[Ft]!="function"){var rn=Error((ct||"React class")+": "+Je+" type `"+Ft+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ie[Ft]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw rn.name="Invariant Violation",rn}yt=ie[Ft](Ve,Ft,ct,Je,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Rt){yt=Rt}yt&&!(yt instanceof Error)&&(Ie(St),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ct||"React class",Je,Ft,typeof yt),Ie(null)),yt instanceof Error&&!(yt.message in le)&&(le[yt.message]=!0,Ie(St),j("Failed %s type: %s",Je,yt.message),Ie(null))}}}var He=Array.isArray;function ke(ie){return He(ie)}function Fe(ie){{var Ve=typeof Symbol=="function"&&Symbol.toStringTag,Je=Ve&&ie[Symbol.toStringTag]||ie.constructor.name||"Object";return Je}}function Ge(ie){try{return tt(ie),!1}catch{return!0}}function tt(ie){return""+ie}function xt(ie){if(Ge(ie))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(ie)),tt(ie)}var $t=E.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Wt,mn,Kt;Kt={};function En(ie){if(At.call(ie,"ref")){var Ve=Object.getOwnPropertyDescriptor(ie,"ref").get;if(Ve&&Ve.isReactWarning)return!1}return ie.ref!==void 0}function vn(ie){if(At.call(ie,"key")){var Ve=Object.getOwnPropertyDescriptor(ie,"key").get;if(Ve&&Ve.isReactWarning)return!1}return ie.key!==void 0}function $n(ie,Ve){if(typeof ie.ref=="string"&&$t.current&&Ve&&$t.current.stateNode!==Ve){var Je=fe($t.current.type);Kt[Je]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',fe($t.current.type),ie.ref),Kt[Je]=!0)}}function Rn(ie,Ve){{var Je=function(){Wt||(Wt=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ve))};Je.isReactWarning=!0,Object.defineProperty(ie,"key",{get:Je,configurable:!0})}}function Cn(ie,Ve){{var Je=function(){mn||(mn=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ve))};Je.isReactWarning=!0,Object.defineProperty(ie,"ref",{get:Je,configurable:!0})}}var Mn=function(ie,Ve,Je,ct,St,jt,Ft){var yt={$$typeof:t,type:ie,key:Ve,ref:Je,props:Ft,_owner:jt};return yt._store={},Object.defineProperty(yt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(yt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.defineProperty(yt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:St}),Object.freeze&&(Object.freeze(yt.props),Object.freeze(yt)),yt};function pr(ie,Ve,Je,ct,St){{var jt,Ft={},yt=null,rn=null;Je!==void 0&&(xt(Je),yt=""+Je),vn(Ve)&&(xt(Ve.key),yt=""+Ve.key),En(Ve)&&(rn=Ve.ref,$n(Ve,St));for(jt in Ve)At.call(Ve,jt)&&!mt.hasOwnProperty(jt)&&(Ft[jt]=Ve[jt]);if(ie&&ie.defaultProps){var Rt=ie.defaultProps;for(jt in Rt)Ft[jt]===void 0&&(Ft[jt]=Rt[jt])}if(yt||rn){var Mt=typeof ie=="function"?ie.displayName||ie.name||"Unknown":ie;yt&&Rn(Ft,Mt),rn&&Cn(Ft,Mt)}return Mn(ie,yt,rn,St,ct,$t.current,Ft)}}var fn=E.ReactCurrentOwner,Sn=E.ReactDebugCurrentFrame;function Dn(ie){if(ie){var Ve=ie._owner,Je=ht(ie.type,ie._source,Ve?Ve.type:null);Sn.setExtraStackFrame(Je)}else Sn.setExtraStackFrame(null)}var Tt;Tt=!1;function Xn(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function Or(){{if(fn.current){var ie=fe(fn.current.type);if(ie)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+ie+"`."}return""}}function $r(ie){{if(ie!==void 0){var Ve=ie.fileName.replace(/^.*[\\\/]/,""),Je=ie.lineNumber;return`
|
|
24
|
-
|
|
25
|
-
Check your code at `+Ve+":"+Je+"."}return""}}var Ln={};function Gr(ie){{var Ve=Or();if(!Ve){var Je=typeof ie=="string"?ie:ie.displayName||ie.name;Je&&(Ve=`
|
|
26
|
-
|
|
27
|
-
Check the top-level render call using <`+Je+">.")}return Ve}}function Yn(ie,Ve){{if(!ie._store||ie._store.validated||ie.key!=null)return;ie._store.validated=!0;var Je=Gr(Ve);if(Ln[Je])return;Ln[Je]=!0;var ct="";ie&&ie._owner&&ie._owner!==fn.current&&(ct=" It was passed a child from "+fe(ie._owner.type)+"."),Dn(ie),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Je,ct),Dn(null)}}function Yt(ie,Ve){{if(typeof ie!="object")return;if(ke(ie))for(var Je=0;Je<ie.length;Je++){var ct=ie[Je];Xn(ct)&&Yn(ct,Ve)}else if(Xn(ie))ie._store&&(ie._store.validated=!0);else if(ie){var St=w(ie);if(typeof St=="function"&&St!==ie.entries)for(var jt=St.call(ie),Ft;!(Ft=jt.next()).done;)Xn(Ft.value)&&Yn(Ft.value,Ve)}}}function fo(ie){{var Ve=ie.type;if(Ve==null||typeof Ve=="string")return;var Je;if(typeof Ve=="function")Je=Ve.propTypes;else if(typeof Ve=="object"&&(Ve.$$typeof===u||Ve.$$typeof===g))Je=Ve.propTypes;else return;if(Je){var ct=fe(Ve);Ze(Je,ie.props,"prop",ct,ie)}else if(Ve.PropTypes!==void 0&&!Tt){Tt=!0;var St=fe(Ve);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",St||"Unknown")}typeof Ve.getDefaultProps=="function"&&!Ve.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function go(ie){{for(var Ve=Object.keys(ie.props),Je=0;Je<Ve.length;Je++){var ct=Ve[Je];if(ct!=="children"&&ct!=="key"){Dn(ie),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ct),Dn(null);break}}ie.ref!==null&&(Dn(ie),j("Invalid attribute `ref` supplied to `React.Fragment`."),Dn(null))}}function po(ie,Ve,Je,ct,St,jt){{var Ft=me(ie);if(!Ft){var yt="";(ie===void 0||typeof ie=="object"&&ie!==null&&Object.keys(ie).length===0)&&(yt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var rn=$r(St);rn?yt+=rn:yt+=Or();var Rt;ie===null?Rt="null":ke(ie)?Rt="array":ie!==void 0&&ie.$$typeof===t?(Rt="<"+(fe(ie.type)||"Unknown")+" />",yt=" Did you accidentally export a JSX literal instead of a component?"):Rt=typeof ie,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Rt,yt)}var Mt=pr(ie,Ve,Je,St,jt);if(Mt==null)return Mt;if(Ft){var Qt=Ve.children;if(Qt!==void 0)if(ct)if(ke(Qt)){for(var kn=0;kn<Qt.length;kn++)Yt(Qt[kn],ie);Object.freeze&&Object.freeze(Qt)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yt(Qt,ie)}return ie===r?go(Mt):fo(Mt),Mt}}function nn(ie,Ve,Je){return po(ie,Ve,Je,!0)}function ho(ie,Ve,Je){return po(ie,Ve,Je,!1)}var ra=ho,oa=nn;Zl.Fragment=r,Zl.jsx=ra,Zl.jsxs=oa}()),Zl}process.env.NODE_ENV==="production"?kg.exports=t4():kg.exports=n4();var l=kg.exports;const r4=()=>l.jsx("div",{className:"flex flex-row items-center bg-red-500 hover:bg-blue-500",children:"something"});function k0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=k0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _e(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=k0(e))&&(r&&(r+=" "),r+=t);return r}function o4(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=P0(t))&&(r&&(r+=" "),r+=n);return r}function P0(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=P0(e[r]))&&(n&&(n+=" "),n+=t);return n}var Pg="-";function a4(e){var t=s4(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function a(s){var u=s.split(Pg);return u[0]===""&&u.length!==1&&u.shift(),B0(u,t)||i4(s)}function i(s,u){var c=n[s]||[];return u&&o[s]?[].concat(c,o[s]):c}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function B0(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?B0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(Pg);return(i=t.validators.find(function(s){var u=s.validator;return u(a)}))==null?void 0:i.classGroupId}}var N0=/^\[(.+)\]$/;function i4(e){if(N0.test(e)){var t=N0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function s4(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=u4(Object.entries(e.classGroups),n);return o.forEach(function(a){var i=a[0],s=a[1];Bg(s,r,i,t)}),r}function Bg(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:O0(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(l4(o)){Bg(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(i){var s=i[0],u=i[1];Bg(u,O0(t,s),n,r)})})}function O0(e,t){var n=e;return t.split(Pg).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function l4(e){return e.isThemeGetter}function u4(e,t){return t?e.map(function(n){var r=n[0],o=n[1],a=o.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var u=s[0],c=s[1];return[t+u,c]})):i});return[r,a]}):e}function c4(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(a,i){n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var $0="!";function d4(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],u=0,c=0,d,g=0;g<i.length;g++){var v=i[g];if(u===0){if(v===r&&(n||i.slice(g,g+o)===t)){s.push(i.slice(c,g)),c=g+o;continue}if(v==="/"){d=g;continue}}v==="["?u++:v==="]"&&u--}var y=s.length===0?i:i.substring(c),C=y.startsWith($0),h=C?y.substring(1):y,w=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:C,baseClassName:h,maybePostfixModifierPosition:w}}}function f4(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function g4(e){return{cache:c4(e.cacheSize),splitModifiers:d4(e),...a4(e)}}var p4=/\s+/;function h4(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(p4).map(function(i){var s=n(i),u=s.modifiers,c=s.hasImportantModifier,d=s.baseClassName,g=s.maybePostfixModifierPosition,v=r(g?d.substring(0,g):d),y=!!g;if(!v){if(!g)return{isTailwindClass:!1,originalClassName:i};if(v=r(d),!v)return{isTailwindClass:!1,originalClassName:i};y=!1}var C=f4(u).join(":"),h=c?C+$0:C;return{isTailwindClass:!0,modifierId:h,classGroupId:v,originalClassName:i,hasPostfixModifier:y}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,u=i.classGroupId,c=i.hasPostfixModifier,d=s+u;return a.has(d)?!1:(a.add(d),o(u,c).forEach(function(g){return a.add(s+g)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function m4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=s;function s(c){var d=t[0],g=t.slice(1),v=g.reduce(function(y,C){return C(y)},d());return r=g4(v),o=r.cache.get,a=r.cache.set,i=u,u(c)}function u(c){var d=o(c);if(d)return d;var g=h4(c,r);return a(c,g),g}return function(){return i(o4.apply(null,arguments))}}function ln(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var R0=/^\[(?:([a-z-]+):)?(.+)\]$/i,v4=/^\d+\/\d+$/,b4=new Set(["px","full","screen"]),x4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C4=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function to(e){return li(e)||b4.has(e)||v4.test(e)||Ng(e)}function Ng(e){return ui(e,"length",A4)}function w4(e){return ui(e,"size",M0)}function E4(e){return ui(e,"position",M0)}function S4(e){return ui(e,"url",j4)}function zc(e){return ui(e,"number",li)}function li(e){return!Number.isNaN(Number(e))}function D4(e){return e.endsWith("%")&&li(e.slice(0,-1))}function Xl(e){return L0(e)||ui(e,"number",L0)}function kt(e){return R0.test(e)}function Yl(){return!0}function wa(e){return x4.test(e)}function F4(e){return ui(e,"",I4)}function ui(e,t,n){var r=R0.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function A4(e){return y4.test(e)}function M0(){return!1}function j4(e){return e.startsWith("url(")}function L0(e){return Number.isInteger(Number(e))}function I4(e){return C4.test(e)}function T4(){var e=ln("colors"),t=ln("spacing"),n=ln("blur"),r=ln("brightness"),o=ln("borderColor"),a=ln("borderRadius"),i=ln("borderSpacing"),s=ln("borderWidth"),u=ln("contrast"),c=ln("grayscale"),d=ln("hueRotate"),g=ln("invert"),v=ln("gap"),y=ln("gradientColorStops"),C=ln("gradientColorStopPositions"),h=ln("inset"),w=ln("margin"),E=ln("opacity"),j=ln("padding"),P=ln("saturate"),N=ln("scale"),$=ln("sepia"),G=ln("skew"),V=ln("space"),J=ln("translate"),K=function(){return["auto","contain","none"]},me=function(){return["auto","hidden","clip","visible","scroll"]},ye=function(){return["auto",kt,t]},ne=function(){return[kt,t]},fe=function(){return["",to]},R=function(){return["auto",li,kt]},W=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},oe=function(){return["solid","dashed","dotted","double","none"]},pe=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},se=function(){return["start","end","center","between","around","evenly","stretch"]},Z=function(){return["","0",kt]},te=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},U=function(){return[li,zc]},Q=function(){return[li,kt]};return{cacheSize:500,theme:{colors:[Yl],spacing:[to],blur:["none","",wa,kt],brightness:U(),borderColor:[e],borderRadius:["none","","full",wa,kt],borderSpacing:ne(),borderWidth:fe(),contrast:U(),grayscale:Z(),hueRotate:Q(),invert:Z(),gap:ne(),gradientColorStops:[e],gradientColorStopPositions:[D4,Ng],inset:ye(),margin:ye(),opacity:U(),padding:ne(),saturate:U(),scale:U(),sepia:Z(),skew:Q(),space:ne(),translate:ne()},classGroups:{aspect:[{aspect:["auto","square","video",kt]}],container:["container"],columns:[{columns:[wa]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(W(),[kt])}],overflow:[{overflow:me()}],"overflow-x":[{"overflow-x":me()}],"overflow-y":[{"overflow-y":me()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xl]}],basis:[{basis:ye()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",kt]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Xl]}],"grid-cols":[{"grid-cols":[Yl]}],"col-start-end":[{col:["auto",{span:["full",Xl]},kt]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[Yl]}],"row-start-end":[{row:["auto",{span:[Xl]},kt]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",kt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",kt]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal"].concat(se())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(se(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(se(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",kt,t]}],"min-w":[{"min-w":["min","max","fit",kt,to]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[wa]},wa,kt]}],h:[{h:[kt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",kt,to]}],"max-h":[{"max-h":[kt,t,"min","max","fit"]}],"font-size":[{text:["base",wa,Ng]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zc]}],"font-family":[{font:[Yl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",kt]}],"line-clamp":[{"line-clamp":["none",li,zc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kt,to]}],"list-image":[{"list-image":["none",kt]}],"list-style-type":[{list:["none","disc","decimal",kt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(oe(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",to]}],"underline-offset":[{"underline-offset":["auto",kt,to]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:ne()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",kt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",kt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(W(),[E4])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",w4]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},S4]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[].concat(oe(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:oe()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(oe())}],"outline-offset":[{"outline-offset":[kt,to]}],"outline-w":[{outline:[to]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[to]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wa,F4]}],"shadow-color":[{shadow:[Yl]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":pe()}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",wa,kt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[g]}],saturate:[{saturate:[P]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",kt]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",kt]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",kt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Xl,kt]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[G]}],"skew-y":[{"skew-y":[G]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",kt]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",kt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ne()}],"scroll-mx":[{"scroll-mx":ne()}],"scroll-my":[{"scroll-my":ne()}],"scroll-ms":[{"scroll-ms":ne()}],"scroll-me":[{"scroll-me":ne()}],"scroll-mt":[{"scroll-mt":ne()}],"scroll-mr":[{"scroll-mr":ne()}],"scroll-mb":[{"scroll-mb":ne()}],"scroll-ml":[{"scroll-ml":ne()}],"scroll-p":[{"scroll-p":ne()}],"scroll-px":[{"scroll-px":ne()}],"scroll-py":[{"scroll-py":ne()}],"scroll-ps":[{"scroll-ps":ne()}],"scroll-pe":[{"scroll-pe":ne()}],"scroll-pt":[{"scroll-pt":ne()}],"scroll-pr":[{"scroll-pr":ne()}],"scroll-pb":[{"scroll-pb":ne()}],"scroll-pl":[{"scroll-pl":ne()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",kt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[to,zc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var k4=m4(T4);function Te(...e){return k4(_e(e))}const P4=({centered:e,label:t,helperText:n,id:r,onChange:o,val:a,...i})=>{const[s,u]=p.useState(a);return l.jsxs("div",{className:Te("flex h-full select-none",e?"items-center justify-center":"items-start "),children:[l.jsx("input",{type:"checkbox",checked:s,onChange:c=>u(c.target.checked),id:r,...i,"aria-label":t,className:"mt-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"}),(t||n)&&l.jsxs("div",{className:" flex select-none flex-col py-2",onClick:c=>{i.disabled||u(!s)},children:[t&&l.jsx("label",{className:Te("mx-2 cursor-pointer text-sm font-medium dark:text-gray-300",i.disabled?"cursor-default text-muted-foreground":""),children:t}),n&&l.jsx("p",{className:Te("mx-2 mt-1 cursor-pointer text-xs text-red-600 dark:text-red-500",i.disabled?"cursor-default text-muted-foreground":""),children:n})]})]})},B4=e=>(p.useState(e.defaultValue),l.jsxs("div",{children:[l.jsx("div",{className:"mb-4 border-b border-gray-200 dark:border-gray-700",children:l.jsx("ul",{className:"-mb-px flex flex-wrap text-center text-sm font-medium",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist",children:e.options.map((t,n)=>l.jsx("li",{className:"mr-2",role:"presentation",children:l.jsx("button",{className:"inline-block rounded-t-lg border-b-2 border-blue-600 p-4 text-blue-600 hover:text-blue-600 dark:border-blue-500 dark:text-blue-500 dark:hover:text-blue-500",id:`${t.value}-tab`,"data-tabs-target":`#${t.value}`,type:"button",role:"tab","aria-controls":t.value,"aria-selected":"true",children:t.label})},n))})}),l.jsx("div",{id:"myTabContent",children:e.options.map((t,n)=>l.jsx("div",{className:"rounded bg-gray-50 p-4 dark:bg-gray-800",id:`${t.value}`,role:"tabpanel","aria-labelledby":`${t.value}-tab`,children:t.content},n))})]})),Uc=({label:e,size:t="normal",icon:n,color:r,dot:o,dotType:a="available"})=>{let i="flex flex-row w-fit gap-1 items-center rounded px-2.5 py-0.5 font-bold text-blue-800 dark:bg-blue-200 dark:text-blue-800",s={small:"h-full leading-4 px-1 py-0 text-[9px] gap-0.5 ",normal:"h-fit text-xs",large:""},u={small:"flex h-1 w-1 rounded-full",normal:"flex h-2 w-2 rounded-full",large:"flex h-3 w-3 rounded-full"},c={available:"bg-green-500",unavailable:"bg-red-500"};return l.jsxs("span",{className:_e(i,s[t],r?`bg-${r}-100 text-${r}-500`:"bg-layoutPrimary-500"),children:[o&&l.jsx("span",{className:_e(u[t],c[a])}),n&&n,e]})},N4=e=>l.jsxs("div",{className:"flex h-fit flex-row items-center gap-2 px-2",children:[l.jsx("div",{children:e.icon}),l.jsx("div",{className:"text-sm",children:e.count})]});function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}function O4(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Zc(...e){return t=>e.forEach(n=>O4(n,t))}function Jt(...e){return p.useCallback(Zc(...e),e)}const ci=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),a=o.find($4);if(a){const i=a.props.children,s=o.map(u=>u===a?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:u);return p.createElement(Og,xe({},r,{ref:t}),p.isValidElement(i)?p.cloneElement(i,void 0,s):null)}return p.createElement(Og,xe({},r,{ref:t}),n)});ci.displayName="Slot";const Og=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...R4(r,n.props),ref:t?Zc(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});Og.displayName="SlotClone";const _0=({children:e})=>p.createElement(p.Fragment,null,e);function $4(e){return p.isValidElement(e)&&e.type===_0}function R4(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const Et=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?ci:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(s,xe({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $g(e,t){e&&wo.flushSync(()=>e.dispatchEvent(t))}const V0=p.forwardRef((e,t)=>p.createElement(Et.label,xe({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}})));function W0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=W0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function M4(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=W0(e))&&(r&&(r+=" "),r+=t);return r}const H0=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,G0=M4,Rg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return G0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],g=a==null?void 0:a[c];if(d===null)return null;const v=H0(d)||H0(g);return o[c][v]}),s=n&&Object.entries(n).reduce((c,d)=>{let[g,v]=d;return v===void 0||(c[g]=v),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:g,className:v,...y}=d;return Object.entries(y).every(C=>{let[h,w]=C;return Array.isArray(w)?w.includes({...a,...s}[h]):{...a,...s}[h]===w})?[...c,g,v]:c},[]);return G0(e,i,u,n==null?void 0:n.class,n==null?void 0:n.className)},L4=Rg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ea=q.forwardRef(({className:e,...t},n)=>l.jsx(V0,{ref:n,className:Te(L4(),e),...t}));Ea.displayName=V0.displayName;function Eo({className:e,...t}){return l.jsx("div",{className:Te("animate-pulse rounded-md bg-muted",e),...t})}const Ot=({margin:e="normal",width:t="full",preview:n=!1,...r})=>{let o={none:"mb-0",normal:"mb-3",large:"mb-5"},a={small:"w-full max-w-2xs",normal:"w-1/2",full:"w-full"},i="flex max-h-fit relative flex-col justify-center gap-2",s="block w-full rounded border transition-all bg-background p-2 text-sm text-black dark:text-white focus:border-blue-500 focus:ring-blue-500";return l.jsxs("div",{className:Te(i,o[e],a[t],r.className),children:[r.label&&l.jsx(Ea,{children:r.label}),r.isLoading?l.jsx(Eo,{className:"h-[38px] w-full"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:Te("absolute top-[22px] h-[0.8px] w-full bg-gray-200 transition-all dark:bg-gray-800",n?"opacity-100":"opacity-0")}),l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:Te("relative"),children:[r.icon&&l.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2",children:r.icon}),l.jsx("input",{...r,className:Te(s,r.icon&&"pl-10",n&&"border-transparent bg-transparent px-0"),disabled:n})]}),r.iconInside&&l.jsx("div",{className:"absolute right-1 top-[41px] -translate-y-1/2",children:r.iconInside}),r.helperText&&l.jsx("p",{className:"mb-0 mt-0 text-xs text-red-600 dark:text-red-500",children:r.helperText})]})]})]})},z0=e=>{const[t,n]=p.useState(e.color);return l.jsxs("div",{className:"flex w-fit flex-row rounded border p-0",children:[l.jsx("div",{style:{backgroundColor:t},className:"rounded-bl-lg rounded-tl-lg",children:l.jsx("input",{type:"color",value:t,onChange:r=>{n(r.target.value),e.handleChange(r)},className:"opacity-0"})}),l.jsx("input",{type:"text",onChange:r=>{n(r.target.value),e.handleChange(r)},value:t,className:"w-24 bg-background rounded-br-lg rounded-tr-lg pl-2 pr-2"})]})},U0=({value:e,handleChange:t,startElement:n,endElement:r,label:o,...a})=>{const[i,s]=p.useState(e);return l.jsxs("div",{...a,children:[o&&l.jsx("label",{htmlFor:"default-range",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300",children:o}),l.jsxs("div",{className:"flex w-fit flex-row items-center justify-center",children:[l.jsx("div",{className:"mr-2",children:n})," ",l.jsx("input",{id:"default-range",type:"range",value:i,onChange:u=>{s(u.target.value),t(u)},className:"h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"}),l.jsx("div",{className:"ml-2",children:r})," "]})]})},Sr=({design:e="default",width:t="default",orientation:n="horizontal",...r})=>{var y,C,h;const[o,a]=p.useState(r.defaultValue);let i="inline-block py-2 px-4 w-full text-primary-foreground bg-primary active dark:bg-primary ",s="inline-block py-2 px-4 w-full transition-all hover:bg-primary/10 dark:bg-background bg-primary/5 hover:text-gray-900 dark:hover:bg-primary/10 dark:hover:text-white dark:bg-primary/5",u={horizontal:"flex flex-row",vertical:"flex flex-col"},c={default:"max-w-fit",full:"w-full"};const[d,g]=p.useState(null),v=p.useRef(null);switch(p.useEffect(()=>{if(v.current&&v.current.parentNode){const w=window.getComputedStyle(v.current.parentNode).direction;g(w)}}),e){case"tabs":return l.jsx("ul",{ref:v,className:Te(((y=r.options)==null?void 0:y.length)>2?"flex-wrap xs:max-w-full xs:flex-nowrap":"","select-none whitespace-nowrap rounded border text-center text-sm font-medium",c[t],u[n]),children:(C=r.options)==null?void 0:C.map((w,E)=>l.jsxs("li",{"aria-current":"page",onClick:()=>{a(w.value),r.onChangeTab(w.value)},className:Te("w-full cursor-pointer ",n==="horizontal"&&d==="ltr"&&"rounded-none first:rounded-l last:rounded-r",n==="horizontal"&&d==="rtl"&&"rounded-none first:rounded-r last:rounded-l",n==="vertical"&&"rounded-none first:rounded-t last:rounded-b","last flex flex-row items-center justify-center gap-2 ",o===w.value?i:s),children:[w.icon&&w.icon,w.label]},E))});case"bordered":return l.jsx("div",{className:Te(u[n],"gap-4"),children:r.options.map((w,E)=>l.jsx("div",{className:"rounded border border-gray-200 ",children:l.jsxs("div",{className:"radio-item radio-item-bordered flex items-center transition-all",children:[l.jsx("input",{disabled:w.disabled,id:w.value.toString(),type:"radio",value:w.value,name:"bordered-radio"}),l.jsx("label",{htmlFor:w.value.toString(),className:Te("ml-2 w-full p-4 pl-3 text-sm font-medium dark:text-white",w.disabled?"opacity-50":"cursor-pointer text-gray-900"),children:w.label})]},E+1)}))});case"cards":return l.jsx("ul",{className:Te(u[n],"gap-4"),children:(h=r.options)==null?void 0:h.map((w,E)=>l.jsxs("li",{children:[l.jsx("input",{type:"radio",id:w.value.toString(),name:"cards-radio",value:w.value.toString(),className:"peer hidden",required:!0,disabled:w.disabled}),l.jsx("label",{htmlFor:w.value.toString(),className:Te("inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:peer-checked:text-primary",w.disabled?"opacity-50":"cursor-pointer hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-gray-700 dark:hover:text-gray-300"),children:l.jsxs("div",{className:"block h-full w-full",children:[l.jsx("div",{className:"w-full text-lg font-semibold",children:w.label}),l.jsx("div",{className:"w-full",children:w.sublabel})]})})]}))});default:return l.jsx("div",{className:Te(u[n],"gap-2"),children:r.options.map((w,E)=>l.jsxs("div",{className:"radio-item radio-item-default flex items-center transition-all",children:[l.jsx("input",{disabled:w.disabled,id:w.value.toString(),type:"radio",value:w.value,name:"default-radio"}),l.jsx("label",{htmlFor:w.value.toString(),className:Te("text-sm font-medium dark:text-white",w.disabled?"text-gray-400":"cursor-pointer text-gray-900"),children:w.label})]},E+1))})}};function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function _4(e,t){if(di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z0(e){var t=_4(e,"string");return di(t)==="symbol"?t:String(t)}function Jl(e,t,n){return t=Z0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X0(Object(n),!0).forEach(function(r){Jl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V4(e){if(Array.isArray(e))return e}function W4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function Mg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y0(e,t){if(e){if(typeof e=="string")return Mg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mg(e,t)}}function H4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
28
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zo(e,t){return V4(e)||W4(e,t)||Y0(e,t)||H4()}function G4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function So(e,t){if(e==null)return{};var n=G4(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var z4=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function J0(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,a=e.defaultValue,i=a===void 0?null:a,s=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,g=e.onMenuClose,v=e.onMenuOpen,y=e.value,C=So(e,z4),h=p.useState(s!==void 0?s:n),w=zo(h,2),E=w[0],j=w[1],P=p.useState(u!==void 0?u:o),N=zo(P,2),$=N[0],G=N[1],V=p.useState(y!==void 0?y:i),J=zo(V,2),K=J[0],me=J[1],ye=p.useCallback(function(se,Z){typeof c=="function"&&c(se,Z),me(se)},[c]),ne=p.useCallback(function(se,Z){var te;typeof d=="function"&&(te=d(se,Z)),j(te!==void 0?te:se)},[d]),fe=p.useCallback(function(){typeof v=="function"&&v(),G(!0)},[v]),R=p.useCallback(function(){typeof g=="function"&&g(),G(!1)},[g]),W=s!==void 0?s:E,oe=u!==void 0?u:$,pe=y!==void 0?y:K;return dt(dt({},C),{},{inputValue:W,menuIsOpen:oe,onChange:ye,onInputChange:ne,onMenuClose:R,onMenuOpen:fe,value:pe})}function U4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z0(r.key),r)}}function Z4(e,t,n){return t&&K0(e.prototype,t),n&&K0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Lg(e,t)}function X4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lg(e,t)}function Xc(e){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xc(e)}function Y4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function J4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K4(e,t){if(t&&(di(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J4(e)}function Q4(e){var t=Y4();return function(){var r=Xc(e),o;if(t){var a=Xc(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return K4(this,o)}}function q4(e){if(Array.isArray(e))return Mg(e)}function eS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
29
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kl(e){return q4(e)||eS(e)||Y0(e)||tS()}function nS(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function rS(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var oS=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rS(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
30
|
-
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var i=nS(o);try{i.insertRule(r,i.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Gn="-ms-",Yc="-moz-",_t="-webkit-",_g="comm",Vg="rule",Wg="decl",aS="@import",Q0="@keyframes",iS="@layer",sS=Math.abs,Jc=String.fromCharCode,lS=Object.assign;function uS(e,t){return Bn(e,0)^45?(((t<<2^Bn(e,0))<<2^Bn(e,1))<<2^Bn(e,2))<<2^Bn(e,3):0}function q0(e){return e.trim()}function cS(e,t){return(e=t.exec(e))?e[0]:e}function Vt(e,t,n){return e.replace(t,n)}function Hg(e,t){return e.indexOf(t)}function Bn(e,t){return e.charCodeAt(t)|0}function Ql(e,t,n){return e.slice(t,n)}function Do(e){return e.length}function Gg(e){return e.length}function Kc(e,t){return t.push(e),e}function dS(e,t){return e.map(t).join("")}var Qc=1,ps=1,e1=0,ur=0,yn=0,hs="";function qc(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Qc,column:ps,length:i,return:""}}function ql(e,t){return lS(qc("",null,null,"",null,null,0),e,{length:-e.length},t)}function fS(){return yn}function gS(){return yn=ur>0?Bn(hs,--ur):0,ps--,yn===10&&(ps=1,Qc--),yn}function Dr(){return yn=ur<e1?Bn(hs,ur++):0,ps++,yn===10&&(ps=1,Qc++),yn}function Fo(){return Bn(hs,ur)}function ed(){return ur}function eu(e,t){return Ql(hs,e,t)}function tu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function t1(e){return Qc=ps=1,e1=Do(hs=e),ur=0,[]}function n1(e){return hs="",e}function td(e){return q0(eu(ur-1,zg(e===91?e+2:e===40?e+1:e)))}function pS(e){for(;(yn=Fo())&&yn<33;)Dr();return tu(e)>2||tu(yn)>3?"":" "}function hS(e,t){for(;--t&&Dr()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return eu(e,ed()+(t<6&&Fo()==32&&Dr()==32))}function zg(e){for(;Dr();)switch(yn){case e:return ur;case 34:case 39:e!==34&&e!==39&&zg(yn);break;case 40:e===41&&zg(e);break;case 92:Dr();break}return ur}function mS(e,t){for(;Dr()&&e+yn!==47+10;)if(e+yn===42+42&&Fo()===47)break;return"/*"+eu(t,ur-1)+"*"+Jc(e===47?e:Dr())}function vS(e){for(;!tu(Fo());)Dr();return eu(e,ur)}function bS(e){return n1(nd("",null,null,null,[""],e=t1(e),0,[0],e))}function nd(e,t,n,r,o,a,i,s,u){for(var c=0,d=0,g=i,v=0,y=0,C=0,h=1,w=1,E=1,j=0,P="",N=o,$=a,G=r,V=P;w;)switch(C=j,j=Dr()){case 40:if(C!=108&&Bn(V,g-1)==58){Hg(V+=Vt(td(j),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:V+=td(j);break;case 9:case 10:case 13:case 32:V+=pS(C);break;case 92:V+=hS(ed()-1,7);continue;case 47:switch(Fo()){case 42:case 47:Kc(xS(mS(Dr(),ed()),t,n),u);break;default:V+="/"}break;case 123*h:s[c++]=Do(V)*E;case 125*h:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+d:E==-1&&(V=Vt(V,/\f/g,"")),y>0&&Do(V)-g&&Kc(y>32?o1(V+";",r,n,g-1):o1(Vt(V," ","")+";",r,n,g-2),u);break;case 59:V+=";";default:if(Kc(G=r1(V,t,n,c,d,o,s,P,N=[],$=[],g),a),j===123)if(d===0)nd(V,t,G,G,N,a,g,s,$);else switch(v===99&&Bn(V,3)===110?100:v){case 100:case 108:case 109:case 115:nd(e,G,G,r&&Kc(r1(e,G,G,0,0,o,s,P,o,N=[],g),$),o,$,g,s,r?N:$);break;default:nd(V,G,G,G,[""],$,0,s,$)}}c=d=y=0,h=E=1,P=V="",g=i;break;case 58:g=1+Do(V),y=C;default:if(h<1){if(j==123)--h;else if(j==125&&h++==0&&gS()==125)continue}switch(V+=Jc(j),j*h){case 38:E=d>0?1:(V+="\f",-1);break;case 44:s[c++]=(Do(V)-1)*E,E=1;break;case 64:Fo()===45&&(V+=td(Dr())),v=Fo(),d=g=Do(P=V+=vS(ed())),j++;break;case 45:C===45&&Do(V)==2&&(h=0)}}return a}function r1(e,t,n,r,o,a,i,s,u,c,d){for(var g=o-1,v=o===0?a:[""],y=Gg(v),C=0,h=0,w=0;C<r;++C)for(var E=0,j=Ql(e,g+1,g=sS(h=i[C])),P=e;E<y;++E)(P=q0(h>0?v[E]+" "+j:Vt(j,/&\f/g,v[E])))&&(u[w++]=P);return qc(e,t,n,o===0?Vg:s,u,c,d)}function xS(e,t,n){return qc(e,t,n,_g,Jc(fS()),Ql(e,2,-2),0)}function o1(e,t,n,r){return qc(e,t,n,Wg,Ql(e,0,r),Ql(e,r+1,-1),r)}function ms(e,t){for(var n="",r=Gg(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yS(e,t,n,r){switch(e.type){case iS:if(e.children.length)break;case aS:case Wg:return e.return=e.return||e.value;case _g:return"";case Q0:return e.return=e.value+"{"+ms(e.children,r)+"}";case Vg:e.value=e.props.join(",")}return Do(n=ms(e.children,r))?e.return=e.value+"{"+n+"}":""}function CS(e){var t=Gg(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function wS(e){return function(t){t.root||(t=t.return)&&e(t)}}function ES(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var SS=function(t,n,r){for(var o=0,a=0;o=a,a=Fo(),o===38&&a===12&&(n[r]=1),!tu(a);)Dr();return eu(t,ur)},DS=function(t,n){var r=-1,o=44;do switch(tu(o)){case 0:o===38&&Fo()===12&&(n[r]=1),t[r]+=SS(ur-1,n,r);break;case 2:t[r]+=td(o);break;case 4:if(o===44){t[++r]=Fo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Jc(o)}while(o=Dr());return t},FS=function(t,n){return n1(DS(t1(t),n))},a1=new WeakMap,AS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!a1.get(r))&&!o){a1.set(t,!0);for(var a=[],i=FS(n,a),s=r.props,u=0,c=0;u<i.length;u++)for(var d=0;d<s.length;d++,c++)t.props[c]=a[u]?i[u].replace(/&\f/g,s[d]):s[d]+" "+i[u]}}},jS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},IS="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",TS=function(t){return t.type==="comm"&&t.children.indexOf(IS)>-1},kS=function(t){return function(n,r,o){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var i=!!n.parent,s=i?n.parent.children:o,u=s.length-1;u>=0;u--){var c=s[u];if(c.line<n.line)break;if(c.column<n.column){if(TS(c))return;break}}a.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},i1=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},PS=function(t,n){for(var r=t-1;r>=0;r--)if(!i1(n[r]))return!0;return!1},s1=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},BS=function(t,n,r){i1(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),s1(t)):PS(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),s1(t)))};function l1(e,t){switch(uS(e,t)){case 5103:return _t+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _t+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _t+e+Yc+e+Gn+e+e;case 6828:case 4268:return _t+e+Gn+e+e;case 6165:return _t+e+Gn+"flex-"+e+e;case 5187:return _t+e+Vt(e,/(\w+).+(:[^]+)/,_t+"box-$1$2"+Gn+"flex-$1$2")+e;case 5443:return _t+e+Gn+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return _t+e+Gn+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return _t+e+Gn+Vt(e,"shrink","negative")+e;case 5292:return _t+e+Gn+Vt(e,"basis","preferred-size")+e;case 6060:return _t+"box-"+Vt(e,"-grow","")+_t+e+Gn+Vt(e,"grow","positive")+e;case 4554:return _t+Vt(e,/([^-])(transform)/g,"$1"+_t+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,_t+"$1"),/(image-set)/,_t+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,_t+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,_t+"box-pack:$3"+Gn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_t+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,_t+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Do(e)-1-t>6)switch(Bn(e,t+1)){case 109:if(Bn(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+_t+"$2-$3$1"+Yc+(Bn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hg(e,"stretch")?l1(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bn(e,t+1)!==115)break;case 6444:switch(Bn(e,Do(e)-3-(~Hg(e,"!important")&&10))){case 107:return Vt(e,":",":"+_t)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_t+(Bn(e,14)===45?"inline-":"")+"box$3$1"+_t+"$2$3$1"+Gn+"$2box$3")+e}break;case 5936:switch(Bn(e,t+11)){case 114:return _t+e+Gn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _t+e+Gn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _t+e+Gn+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _t+e+Gn+e+e}return e}var NS=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Wg:t.return=l1(t.value,t.length);break;case Q0:return ms([ql(t,{value:Vt(t.value,"@","@"+_t)})],o);case Vg:if(t.length)return dS(t.props,function(a){switch(cS(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ms([ql(t,{props:[Vt(a,/:(read-\w+)/,":"+Yc+"$1")]})],o);case"::placeholder":return ms([ql(t,{props:[Vt(a,/:(plac\w+)/,":"+_t+"input-$1")]}),ql(t,{props:[Vt(a,/:(plac\w+)/,":"+Yc+"$1")]}),ql(t,{props:[Vt(a,/:(plac\w+)/,Gn+"input-$1")]})],o)}return""})}},OS=[NS],$S=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
31
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var w=h.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||OS;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var w=h.getAttribute("data-emotion").split(" "),E=1;E<w.length;E++)a[w[E]]=!0;s.push(h)});var u,c=[AS,jS];process.env.NODE_ENV!=="production"&&c.push(kS({get compat(){return C.compat}}),BS);{var d,g=[yS,process.env.NODE_ENV!=="production"?function(h){h.root||(h.return?d.insert(h.return):h.value&&h.type!==_g&&d.insert(h.value+"{}"))}:wS(function(h){d.insert(h)})],v=CS(c.concat(o,g)),y=function(w){return ms(bS(w),v)};u=function(w,E,j,P){d=j,process.env.NODE_ENV!=="production"&&E.map!==void 0&&(d={insert:function($){j.insert($+E.map)}}),y(w?w+"{"+E.styles+"}":E.styles),P&&(C.inserted[E.name]=!0)}}var C={key:n,sheet:new oS({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return C.sheet.hydrate(s),C},Ug={exports:{}},Gt={};/** @license React v16.13.1
|
|
32
|
-
* react-is.production.min.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var u1;function RS(){if(u1)return Gt;u1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function P($){if(typeof $=="object"&&$!==null){var G=$.$$typeof;switch(G){case t:switch($=$.type,$){case u:case c:case r:case a:case o:case g:return $;default:switch($=$&&$.$$typeof,$){case s:case d:case C:case y:case i:return $;default:return G}}case n:return G}}}function N($){return P($)===c}return Gt.AsyncMode=u,Gt.ConcurrentMode=c,Gt.ContextConsumer=s,Gt.ContextProvider=i,Gt.Element=t,Gt.ForwardRef=d,Gt.Fragment=r,Gt.Lazy=C,Gt.Memo=y,Gt.Portal=n,Gt.Profiler=a,Gt.StrictMode=o,Gt.Suspense=g,Gt.isAsyncMode=function($){return N($)||P($)===u},Gt.isConcurrentMode=N,Gt.isContextConsumer=function($){return P($)===s},Gt.isContextProvider=function($){return P($)===i},Gt.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},Gt.isForwardRef=function($){return P($)===d},Gt.isFragment=function($){return P($)===r},Gt.isLazy=function($){return P($)===C},Gt.isMemo=function($){return P($)===y},Gt.isPortal=function($){return P($)===n},Gt.isProfiler=function($){return P($)===a},Gt.isStrictMode=function($){return P($)===o},Gt.isSuspense=function($){return P($)===g},Gt.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===c||$===a||$===o||$===g||$===v||typeof $=="object"&&$!==null&&($.$$typeof===C||$.$$typeof===y||$.$$typeof===i||$.$$typeof===s||$.$$typeof===d||$.$$typeof===w||$.$$typeof===E||$.$$typeof===j||$.$$typeof===h)},Gt.typeOf=P,Gt}var zt={};/** @license React v16.13.1
|
|
39
|
-
* react-is.development.js
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the MIT license found in the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var c1;function MS(){return c1||(c1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function P($e){return typeof $e=="string"||typeof $e=="function"||$e===r||$e===c||$e===a||$e===o||$e===g||$e===v||typeof $e=="object"&&$e!==null&&($e.$$typeof===C||$e.$$typeof===y||$e.$$typeof===i||$e.$$typeof===s||$e.$$typeof===d||$e.$$typeof===w||$e.$$typeof===E||$e.$$typeof===j||$e.$$typeof===h)}function N($e){if(typeof $e=="object"&&$e!==null){var qe=$e.$$typeof;switch(qe){case t:var ot=$e.type;switch(ot){case u:case c:case r:case a:case o:case g:return ot;default:var ht=ot&&ot.$$typeof;switch(ht){case s:case d:case C:case y:case i:return ht;default:return qe}}case n:return qe}}}var $=u,G=c,V=s,J=i,K=t,me=d,ye=r,ne=C,fe=y,R=n,W=a,oe=o,pe=g,se=!1;function Z($e){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te($e)||N($e)===u}function te($e){return N($e)===c}function U($e){return N($e)===s}function Q($e){return N($e)===i}function he($e){return typeof $e=="object"&&$e!==null&&$e.$$typeof===t}function H($e){return N($e)===d}function ge($e){return N($e)===r}function ae($e){return N($e)===C}function be($e){return N($e)===y}function Me($e){return N($e)===n}function Ne($e){return N($e)===a}function We($e){return N($e)===o}function Ke($e){return N($e)===g}zt.AsyncMode=$,zt.ConcurrentMode=G,zt.ContextConsumer=V,zt.ContextProvider=J,zt.Element=K,zt.ForwardRef=me,zt.Fragment=ye,zt.Lazy=ne,zt.Memo=fe,zt.Portal=R,zt.Profiler=W,zt.StrictMode=oe,zt.Suspense=pe,zt.isAsyncMode=Z,zt.isConcurrentMode=te,zt.isContextConsumer=U,zt.isContextProvider=Q,zt.isElement=he,zt.isForwardRef=H,zt.isFragment=ge,zt.isLazy=ae,zt.isMemo=be,zt.isPortal=Me,zt.isProfiler=Ne,zt.isStrictMode=We,zt.isSuspense=Ke,zt.isValidElementType=P,zt.typeOf=N}()),zt}process.env.NODE_ENV==="production"?Ug.exports=RS():Ug.exports=MS();var Zg=Ug.exports,d1=Zg,LS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_S={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f1={};f1[d1.ForwardRef]=LS,f1[d1.Memo]=_S;var VS=!0;function g1(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Xg=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||VS===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Yg=function(t,n,r){Xg(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function WS(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var HS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},p1=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
46
|
-
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
47
|
-
You can read more about this here:
|
|
48
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,GS="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",zS=/[A-Z]|^ms/g,h1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jg=function(t){return t.charCodeAt(1)===45},m1=function(t){return t!=null&&typeof t!="boolean"},Kg=ES(function(e){return Jg(e)?e:e.replace(zS,"-$&").toLowerCase()}),rd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(h1,function(r,o,a){return no={name:o,styles:a,next:no},o})}return HS[t]!==1&&!Jg(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var US=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ZS=["normal","none","initial","inherit","unset"],XS=rd,YS=/^-ms-/,JS=/-(.)/g,v1={};rd=function(t,n){if(t==="content"&&(typeof n!="string"||ZS.indexOf(n)===-1&&!US.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=XS(t,n);return r!==""&&!Jg(t)&&t.indexOf("-")!==-1&&v1[t]===void 0&&(v1[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(YS,"ms-").replace(JS,function(o,a){return a.toUpperCase()})+"?")),r}}var b1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nu(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(b1);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return no={name:n.name,styles:n.styles,next:no},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)no={name:r.name,styles:r.styles,next:no},r=r.next;var o=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(o+=n.map),o}return KS(e,t,n)}case"function":{if(e!==void 0){var a=no,i=n(e);return no=a,nu(e,t,i)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],u=n.replace(h1,function(d,g,v){var y="animation"+s.length;return s.push("const "+y+" = keyframes`"+v.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+y+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+u+"`"]).join(`
|
|
49
|
-
`)+`
|
|
50
|
-
|
|
51
|
-
You should wrap it with \`css\` like this:
|
|
52
|
-
|
|
53
|
-
`+("css`"+u+"`"))}break}if(t==null)return n;var c=t[n];return c!==void 0?c:n}function KS(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nu(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":m1(i)&&(r+=Kg(a)+":"+rd(a,i)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(b1);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)m1(i[s])&&(r+=Kg(a)+":"+rd(a,i[s])+";");else{var u=nu(e,t,i);switch(a){case"animation":case"animationName":{r+=Kg(a)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(GS),r+=a+"{"+u+"}"}}}}return r}var x1=/label:\s*([^\s;\n{]+)\s*(;|$)/g,y1;process.env.NODE_ENV!=="production"&&(y1=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var no,ru=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";no=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=nu(r,n,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error(p1),a+=i[0]);for(var s=1;s<t.length;s++)a+=nu(r,n,t[s]),o&&(process.env.NODE_ENV!=="production"&&i[s]===void 0&&console.error(p1),a+=i[s]);var u;process.env.NODE_ENV!=="production"&&(a=a.replace(y1,function(v){return u=v,""})),x1.lastIndex=0;for(var c="",d;(d=x1.exec(a))!==null;)c+="-"+d[1];var g=WS(a)+c;return process.env.NODE_ENV!=="production"?{name:g,styles:a,map:u,next:no,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:g,styles:a,next:no}},QS=function(t){return t()},C1=q["useInsertionEffect"]?q["useInsertionEffect"]:!1,w1=C1||QS,E1=C1||q.useLayoutEffect,Qg={}.hasOwnProperty,qg=q.createContext(typeof HTMLElement<"u"?$S({key:"css"}):null);process.env.NODE_ENV!=="production"&&(qg.displayName="EmotionCacheContext"),qg.Provider;var ep=function(t){return p.forwardRef(function(n,r){var o=p.useContext(qg);return t(n,o,r)})},od=q.createContext({});process.env.NODE_ENV!=="production"&&(od.displayName="EmotionThemeContext");var S1=function(t){var n=t.split(".");return n[n.length-1]},qS=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return S1(n[1])},e5=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),t5=function(t){return t.replace(/\$/g,"-")},n5=function(t){if(t)for(var n=t.split(`
|
|
54
|
-
`),r=0;r<n.length;r++){var o=qS(n[r]);if(o){if(e5.has(o))break;if(/^[A-Z]/.test(o))return t5(o)}}},tp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",np="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",r5=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var o in n)Qg.call(n,o)&&(r[o]=n[o]);if(r[tp]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var a=n5(new Error().stack);a&&(r[np]=a)}return r},o5=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Xg(n,r,o),w1(function(){return Yg(n,r,o)}),null},D1=ep(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[tp],a=[r],i="";typeof e.className=="string"?i=g1(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=ru(a,void 0,q.useContext(od));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[np];u&&(s=ru([s,"label:"+u+";"]))}i+=t.key+"-"+s.name;var c={};for(var d in e)Qg.call(e,d)&&d!=="css"&&d!==tp&&(process.env.NODE_ENV==="production"||d!==np)&&(c[d]=e[d]);return c.ref=n,c.className=i,q.createElement(q.Fragment,null,q.createElement(o5,{cache:t,serialized:s,isStringTag:typeof o=="string"}),q.createElement(o,c))});process.env.NODE_ENV!=="production"&&(D1.displayName="EmotionCssPropInternal");var a5=D1,i5={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},pt=function(t,n){var r=arguments;if(n==null||!Qg.call(n,"css"))return q.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=a5,a[1]=r5(t,n);for(var i=2;i<o;i++)a[i]=r[i];return q.createElement.apply(null,a)},F1=!1,s5=ep(function(e,t){process.env.NODE_ENV!=="production"&&!F1&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),F1=!0);var n=e.styles,r=ru([n],void 0,q.useContext(od)),o=q.useRef();return E1(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",a),i.hydrate([u])),o.current=[i,s],function(){i.flush()}},[t]),E1(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Yg(t,r.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(s5.displayName="EmotionGlobal");function rp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ru(t)}var l5=function(){var t=rp.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},u5=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(var s in a)a[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function c5(e,t,n){var r=[],o=g1(e,r,n);return r.length<2?n:o+t(r)}var d5=function(t){var n=t.cache,r=t.serializedArr;return w1(function(){for(var o=0;o<r.length;o++)Yg(n,r[o],!1)}),null},f5=ep(function(e,t){var n=!1,r=[],o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,d=new Array(c),g=0;g<c;g++)d[g]=arguments[g];var v=ru(d,t.registered);return r.push(v),Xg(t,v,!1),t.key+"-"+v.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,d=new Array(c),g=0;g<c;g++)d[g]=arguments[g];return c5(t.registered,o,u5(d))},i={css:o,cx:a,theme:q.useContext(od)},s=e.children(i);return n=!0,q.createElement(q.Fragment,null,q.createElement(d5,{cache:t,serializedArr:r}),s)});if(process.env.NODE_ENV!=="production"&&(f5.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var A1=!0,g5=typeof jest<"u"||typeof vi<"u";if(A1&&!g5){var j1=typeof globalThis<"u"?globalThis:A1?window:global,I1="__EMOTION_REACT_"+i5.version.split(".")[0]+"__";j1[I1]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),j1[I1]=!0}}function p5(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const h5=["top","right","bottom","left"],Sa=Math.min,Fr=Math.max,ad=Math.round,id=Math.floor,Da=e=>({x:e,y:e}),m5={left:"right",right:"left",bottom:"top",top:"bottom"},v5={start:"end",end:"start"};function op(e,t,n){return Fr(e,Sa(t,n))}function Uo(e,t){return typeof e=="function"?e(t):e}function Zo(e){return e.split("-")[0]}function vs(e){return e.split("-")[1]}function ap(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function bs(e){return["top","bottom"].includes(Zo(e))?"y":"x"}function sp(e){return ap(bs(e))}function b5(e,t,n){n===void 0&&(n=!1);const r=vs(e),o=sp(e),a=ip(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=sd(i)),[i,sd(i)]}function x5(e){const t=sd(e);return[lp(e),t,lp(t)]}function lp(e){return e.replace(/start|end/g,t=>v5[t])}function y5(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function C5(e,t,n,r){const o=vs(e);let a=y5(Zo(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(lp)))),a}function sd(e){return e.replace(/left|right|bottom|top/g,t=>m5[t])}function w5(e){return{top:0,right:0,bottom:0,left:0,...e}}function T1(e){return typeof e!="number"?w5(e):{top:e,right:e,bottom:e,left:e}}function ld(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function k1(e,t,n){let{reference:r,floating:o}=e;const a=bs(t),i=sp(t),s=ip(i),u=Zo(t),c=a==="y",d=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,v=r[s]/2-o[s]/2;let y;switch(u){case"top":y={x:d,y:r.y-o.height};break;case"bottom":y={x:d,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-o.width,y:g};break;default:y={x:r.x,y:r.y}}switch(vs(t)){case"start":y[i]-=v*(n&&c?-1:1);break;case"end":y[i]+=v*(n&&c?-1:1);break}return y}const E5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:g}=k1(c,r,u),v=r,y={},C=0;for(let h=0;h<s.length;h++){const{name:w,fn:E}=s[h],{x:j,y:P,data:N,reset:$}=await E({x:d,y:g,initialPlacement:r,placement:v,strategy:o,middlewareData:y,rects:c,platform:i,elements:{reference:e,floating:t}});if(d=j??d,g=P??g,y={...y,[w]:{...y[w],...N}},$&&C<=50){C++,typeof $=="object"&&($.placement&&(v=$.placement),$.rects&&(c=$.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:d,y:g}=k1(c,v,u)),h=-1;continue}}return{x:d,y:g,placement:v,strategy:o,middlewareData:y}};async function ou(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:g="floating",altBoundary:v=!1,padding:y=0}=Uo(t,e),C=T1(y),w=s[v?g==="floating"?"reference":"floating":g],E=ld(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),j=g==="floating"?{...i.floating,x:r,y:o}:i.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),N=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},$=ld(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:j,offsetParent:P,strategy:u}):j);return{top:(E.top-$.top+C.top)/N.y,bottom:($.bottom-E.bottom+C.bottom)/N.y,left:(E.left-$.left+C.left)/N.x,right:($.right-E.right+C.right)/N.x}}const P1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=Uo(e,t)||{};if(c==null)return{};const g=T1(d),v={x:n,y:r},y=sp(o),C=ip(y),h=await i.getDimensions(c),w=y==="y",E=w?"top":"left",j=w?"bottom":"right",P=w?"clientHeight":"clientWidth",N=a.reference[C]+a.reference[y]-v[y]-a.floating[C],$=v[y]-a.reference[y],G=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let V=G?G[P]:0;(!V||!await(i.isElement==null?void 0:i.isElement(G)))&&(V=s.floating[P]||a.floating[C]);const J=N/2-$/2,K=V/2-h[C]/2-1,me=Sa(g[E],K),ye=Sa(g[j],K),ne=me,fe=V-h[C]-ye,R=V/2-h[C]/2+J,W=op(ne,R,fe),oe=!u.arrow&&vs(o)!=null&&R!=W&&a.reference[C]/2-(R<ne?me:ye)-h[C]/2<0,pe=oe?R<ne?R-ne:R-fe:0;return{[y]:v[y]+pe,data:{[y]:W,centerOffset:R-W-pe,...oe&&{alignmentOffset:pe}},reset:oe}}}),S5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:h=!0,...w}=Uo(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const E=Zo(o),j=Zo(s)===s,P=await(u.isRTL==null?void 0:u.isRTL(c.floating)),N=v||(j||!h?[sd(s)]:x5(s));!v&&C!=="none"&&N.push(...C5(s,h,C,P));const $=[s,...N],G=await ou(t,w),V=[];let J=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&V.push(G[E]),g){const ne=b5(o,i,P);V.push(G[ne[0]],G[ne[1]])}if(J=[...J,{placement:o,overflows:V}],!V.every(ne=>ne<=0)){var K,me;const ne=(((K=a.flip)==null?void 0:K.index)||0)+1,fe=$[ne];if(fe)return{data:{index:ne,overflows:J},reset:{placement:fe}};let R=(me=J.filter(W=>W.overflows[0]<=0).sort((W,oe)=>W.overflows[1]-oe.overflows[1])[0])==null?void 0:me.placement;if(!R)switch(y){case"bestFit":{var ye;const W=(ye=J.map(oe=>[oe.placement,oe.overflows.filter(pe=>pe>0).reduce((pe,se)=>pe+se,0)]).sort((oe,pe)=>oe[1]-pe[1])[0])==null?void 0:ye[0];W&&(R=W);break}case"initialPlacement":R=s;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function B1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N1(e){return h5.some(t=>e[t]>=0)}const D5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Uo(e,t);switch(r){case"referenceHidden":{const a=await ou(t,{...o,elementContext:"reference"}),i=B1(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:N1(i)}}}case"escaped":{const a=await ou(t,{...o,altBoundary:!0}),i=B1(a,n.floating);return{data:{escapedOffsets:i,escaped:N1(i)}}}default:return{}}}}};async function F5(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Zo(n),s=vs(n),u=bs(n)==="y",c=["left","top"].includes(i)?-1:1,d=a&&u?-1:1,g=Uo(t,e);let{mainAxis:v,crossAxis:y,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return s&&typeof C=="number"&&(y=s==="end"?C*-1:C),u?{x:y*d,y:v*c}:{x:v*c,y:y*d}}const A5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await F5(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},j5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:w=>{let{x:E,y:j}=w;return{x:E,y:j}}},...u}=Uo(e,t),c={x:n,y:r},d=await ou(t,u),g=bs(Zo(o)),v=ap(g);let y=c[v],C=c[g];if(a){const w=v==="y"?"top":"left",E=v==="y"?"bottom":"right",j=y+d[w],P=y-d[E];y=op(j,y,P)}if(i){const w=g==="y"?"top":"left",E=g==="y"?"bottom":"right",j=C+d[w],P=C-d[E];C=op(j,C,P)}const h=s.fn({...t,[v]:y,[g]:C});return{...h,data:{x:h.x-n,y:h.y-r}}}}},I5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:c=!0}=Uo(e,t),d={x:n,y:r},g=bs(o),v=ap(g);let y=d[v],C=d[g];const h=Uo(s,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const P=v==="y"?"height":"width",N=a.reference[v]-a.floating[P]+w.mainAxis,$=a.reference[v]+a.reference[P]-w.mainAxis;y<N?y=N:y>$&&(y=$)}if(c){var E,j;const P=v==="y"?"width":"height",N=["top","left"].includes(Zo(o)),$=a.reference[g]-a.floating[P]+(N&&((E=i.offset)==null?void 0:E[g])||0)+(N?0:w.crossAxis),G=a.reference[g]+a.reference[P]+(N?0:((j=i.offset)==null?void 0:j[g])||0)-(N?w.crossAxis:0);C<$?C=$:C>G&&(C=G)}return{[v]:y,[g]:C}}}},T5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Uo(e,t),u=await ou(t,s),c=Zo(n),d=vs(n),g=bs(n)==="y",{width:v,height:y}=r.floating;let C,h;c==="top"||c==="bottom"?(C=c,h=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=c,C=d==="end"?"top":"bottom");const w=y-u[C],E=v-u[h],j=!t.middlewareData.shift;let P=w,N=E;if(g){const G=v-u.left-u.right;N=d||j?Sa(E,G):G}else{const G=y-u.top-u.bottom;P=d||j?Sa(w,G):G}if(j&&!d){const G=Fr(u.left,0),V=Fr(u.right,0),J=Fr(u.top,0),K=Fr(u.bottom,0);g?N=v-2*(G!==0||V!==0?G+V:Fr(u.left,u.right)):P=y-2*(J!==0||K!==0?J+K:Fr(u.top,u.bottom))}await i({...t,availableWidth:N,availableHeight:P});const $=await o.getDimensions(a.floating);return v!==$.width||y!==$.height?{reset:{rects:!0}}:{}}}};function Fa(e){return O1(e)?(e.nodeName||"").toLowerCase():"#document"}function Ar(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xo(e){var t;return(t=(O1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function O1(e){return e instanceof Node||e instanceof Ar(e).Node}function Yo(e){return e instanceof Element||e instanceof Ar(e).Element}function Ao(e){return e instanceof HTMLElement||e instanceof Ar(e).HTMLElement}function $1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ar(e).ShadowRoot}function au(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function k5(e){return["table","td","th"].includes(Fa(e))}function up(e){const t=cp(),n=Vr(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function P5(e){let t=xs(e);for(;Ao(t)&&!ud(t);){if(up(t))return t;t=xs(t)}return null}function cp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ud(e){return["html","body","#document"].includes(Fa(e))}function Vr(e){return Ar(e).getComputedStyle(e)}function cd(e){return Yo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xs(e){if(Fa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$1(e)&&e.host||Xo(e);return $1(t)?t.host:t}function R1(e){const t=xs(e);return ud(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ao(t)&&au(t)?t:R1(t)}function iu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=R1(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ar(o);return a?t.concat(i,i.visualViewport||[],au(o)?o:[],i.frameElement&&n?iu(i.frameElement):[]):t.concat(o,iu(o,[],n))}function M1(e){const t=Vr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ao(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=ad(n)!==a||ad(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function dp(e){return Yo(e)?e:e.contextElement}function ys(e){const t=dp(e);if(!Ao(t))return Da(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=M1(t);let i=(a?ad(n.width):n.width)/r,s=(a?ad(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const B5=Da(0);function L1(e){const t=Ar(e);return!cp()||!t.visualViewport?B5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function N5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ar(e)?!1:t}function fi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=dp(e);let i=Da(1);t&&(r?Yo(r)&&(i=ys(r)):i=ys(e));const s=N5(a,n,r)?L1(a):Da(0);let u=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,d=o.width/i.x,g=o.height/i.y;if(a){const v=Ar(a),y=r&&Yo(r)?Ar(r):r;let C=v.frameElement;for(;C&&r&&y!==v;){const h=ys(C),w=C.getBoundingClientRect(),E=Vr(C),j=w.left+(C.clientLeft+parseFloat(E.paddingLeft))*h.x,P=w.top+(C.clientTop+parseFloat(E.paddingTop))*h.y;u*=h.x,c*=h.y,d*=h.x,g*=h.y,u+=j,c+=P,C=Ar(C).frameElement}}return ld({width:d,height:g,x:u,y:c})}function O5(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ao(n),a=Xo(n);if(n===a)return t;let i={scrollLeft:0,scrollTop:0},s=Da(1);const u=Da(0);if((o||!o&&r!=="fixed")&&((Fa(n)!=="body"||au(a))&&(i=cd(n)),Ao(n))){const c=fi(n);s=ys(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+u.x,y:t.y*s.y-i.scrollTop*s.y+u.y}}function $5(e){return Array.from(e.getClientRects())}function _1(e){return fi(Xo(e)).left+cd(e).scrollLeft}function R5(e){const t=Xo(e),n=cd(e),r=e.ownerDocument.body,o=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_1(e);const s=-n.scrollTop;return Vr(r).direction==="rtl"&&(i+=Fr(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function M5(e,t){const n=Ar(e),r=Xo(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const c=cp();(!c||c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s,y:u}}function L5(e,t){const n=fi(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ao(e)?ys(e):Da(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,u=o*a.x,c=r*a.y;return{width:i,height:s,x:u,y:c}}function V1(e,t,n){let r;if(t==="viewport")r=M5(e,n);else if(t==="document")r=R5(Xo(e));else if(Yo(t))r=L5(t,n);else{const o=L1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ld(r)}function W1(e,t){const n=xs(e);return n===t||!Yo(n)||ud(n)?!1:Vr(n).position==="fixed"||W1(n,t)}function _5(e,t){const n=t.get(e);if(n)return n;let r=iu(e,[],!1).filter(s=>Yo(s)&&Fa(s)!=="body"),o=null;const a=Vr(e).position==="fixed";let i=a?xs(e):e;for(;Yo(i)&&!ud(i);){const s=Vr(i),u=up(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||au(i)&&!u&&W1(e,i))?r=r.filter(d=>d!==i):o=s,i=xs(i)}return t.set(e,r),r}function V5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?_5(t,this._c):[].concat(n),r],s=i[0],u=i.reduce((c,d)=>{const g=V1(t,d,o);return c.top=Fr(g.top,c.top),c.right=Sa(g.right,c.right),c.bottom=Sa(g.bottom,c.bottom),c.left=Fr(g.left,c.left),c},V1(t,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function W5(e){return M1(e)}function H5(e,t,n){const r=Ao(t),o=Xo(t),a=n==="fixed",i=fi(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=Da(0);if(r||!r&&!a)if((Fa(t)!=="body"||au(o))&&(s=cd(t)),r){const c=fi(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else o&&(u.x=_1(o));return{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function H1(e,t){return!Ao(e)||Vr(e).position==="fixed"?null:t?t(e):e.offsetParent}function G1(e,t){const n=Ar(e);if(!Ao(e))return n;let r=H1(e,t);for(;r&&k5(r)&&Vr(r).position==="static";)r=H1(r,t);return r&&(Fa(r)==="html"||Fa(r)==="body"&&Vr(r).position==="static"&&!up(r))?n:r||P5(e)||n}const G5=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||G1,a=this.getDimensions;return{reference:H5(t,await o(n),r),floating:{x:0,y:0,...await a(n)}}};function z5(e){return Vr(e).direction==="rtl"}const U5={convertOffsetParentRelativeRectToViewportRelativeRect:O5,getDocumentElement:Xo,getClippingRect:V5,getOffsetParent:G1,getElementRects:G5,getClientRects:$5,getDimensions:W5,getScale:ys,isElement:Yo,isRTL:z5};function Z5(e,t){let n=null,r;const o=Xo(e);function a(){clearTimeout(r),n&&n.disconnect(),n=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const{left:c,top:d,width:g,height:v}=e.getBoundingClientRect();if(s||t(),!g||!v)return;const y=id(d),C=id(o.clientWidth-(c+g)),h=id(o.clientHeight-(d+v)),w=id(c),j={rootMargin:-y+"px "+-C+"px "+-h+"px "+-w+"px",threshold:Fr(0,Sa(1,u))||1};let P=!0;function N($){const G=$[0].intersectionRatio;if(G!==u){if(!P)return i();G?i(!1,G):r=setTimeout(()=>{i(!1,1e-7)},100)}P=!1}try{n=new IntersectionObserver(N,{...j,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,j)}n.observe(e)}return i(!0),a}function z1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=dp(e),d=o||a?[...c?iu(c):[],...iu(t)]:[];d.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),a&&E.addEventListener("resize",n)});const g=c&&s?Z5(c,n):null;let v=-1,y=null;i&&(y=new ResizeObserver(E=>{let[j]=E;j&&j.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),c&&!u&&y.observe(c),y.observe(t));let C,h=u?fi(e):null;u&&w();function w(){const E=fi(e);h&&(E.x!==h.x||E.y!==h.y||E.width!==h.width||E.height!==h.height)&&n(),h=E,C=requestAnimationFrame(w)}return n(),()=>{d.forEach(E=>{o&&E.removeEventListener("scroll",n),a&&E.removeEventListener("resize",n)}),g&&g(),y&&y.disconnect(),y=null,u&&cancelAnimationFrame(C)}}const X5=(e,t,n)=>{const r=new Map,o={platform:U5,...n},a={...o.platform,_c:r};return E5(e,t,{...o,platform:a})};var fp=p.useLayoutEffect,Y5=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],dd=function(){};function J5(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function K5(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(J5(e,i)));return a.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var fd=function(t){return iD(t)?t.filter(Boolean):di(t)==="object"&&t!==null?[t]:[]},U1=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=So(t,Y5);return dt({},n)},hn=function(t,n,r){var o=t.cx,a=t.getStyles,i=t.getClassNames,s=t.className;return{css:a(n,t),className:o(r??{},i(n,t),s)}};function gd(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Q5(e){return gd(e)?window.innerHeight:e.clientHeight}function Z1(e){return gd(e)?window.pageYOffset:e.scrollTop}function pd(e,t){if(gd(e)){window.scrollTo(0,t);return}e.scrollTop=t}function q5(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function eD(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function hd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:dd,o=Z1(e),a=t-o,i=10,s=0;function u(){s+=i;var c=eD(s,o,a,n);pd(e,c),s<n?window.requestAnimationFrame(u):r(e)}u()}function X1(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?pd(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&pd(e,Math.max(t.offsetTop-o,0))}function tD(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Y1(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function nD(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var J1=!1,rD={get passive(){return J1=!0}},md=typeof window<"u"?window:{};md.addEventListener&&md.removeEventListener&&(md.addEventListener("p",dd,rD),md.removeEventListener("p",dd,!1));var oD=J1;function aD(e){return e!=null}function iD(e){return Array.isArray(e)}function su(e,t,n){return e?t:n}function d_(e){return e}function f_(e){return e}var sD=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=Object.entries(t).filter(function(i){var s=zo(i,1),u=s[0];return!r.includes(u)});return a.reduce(function(i,s){var u=zo(s,2),c=u[0],d=u[1];return i[c]=d,i},{})},lD=["children","innerProps"],uD=["children","innerProps"];function cD(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,u=q5(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d=u.getBoundingClientRect(),g=d.height,v=n.getBoundingClientRect(),y=v.bottom,C=v.height,h=v.top,w=n.offsetParent.getBoundingClientRect(),E=w.top,j=i?window.innerHeight:Q5(u),P=Z1(u),N=parseInt(getComputedStyle(n).marginBottom,10),$=parseInt(getComputedStyle(n).marginTop,10),G=E-$,V=j-h,J=G+P,K=g-P-h,me=y-j+P+N,ye=P+h-$,ne=160;switch(o){case"auto":case"bottom":if(V>=C)return{placement:"bottom",maxHeight:t};if(K>=C&&!i)return a&&hd(u,me,ne),{placement:"bottom",maxHeight:t};if(!i&&K>=r||i&&V>=r){a&&hd(u,me,ne);var fe=i?V-N:K-N;return{placement:"bottom",maxHeight:fe}}if(o==="auto"||i){var R=t,W=i?G:J;return W>=r&&(R=Math.min(W-N-s,t)),{placement:"top",maxHeight:R}}if(o==="bottom")return a&&pd(u,me),{placement:"bottom",maxHeight:t};break;case"top":if(G>=C)return{placement:"top",maxHeight:t};if(J>=C&&!i)return a&&hd(u,ye,ne),{placement:"top",maxHeight:t};if(!i&&J>=r||i&&G>=r){var oe=t;return(!i&&J>=r||i&&G>=r)&&(oe=i?G-$:J-$),a&&hd(u,ye,ne),{placement:"top",maxHeight:oe}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function dD(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var K1=function(t){return t==="auto"?"bottom":t},fD=function(t,n){var r,o=t.placement,a=t.theme,i=a.borderRadius,s=a.spacing,u=a.colors;return dt((r={label:"menu"},Jl(r,dD(o),"100%"),Jl(r,"position","absolute"),Jl(r,"width","100%"),Jl(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Q1=p.createContext(null),gD=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,c=p.useContext(Q1)||{},d=c.setPortalPlacement,g=p.useRef(null),v=p.useState(o),y=zo(v,2),C=y[0],h=y[1],w=p.useState(null),E=zo(w,2),j=E[0],P=E[1],N=u.spacing.controlHeight;return fp(function(){var $=g.current;if($){var G=i==="fixed",V=s&&!G,J=cD({maxHeight:o,menuEl:$,minHeight:r,placement:a,shouldScroll:V,isFixedPosition:G,controlHeight:N});h(J.maxHeight),P(J.placement),d==null||d(J.placement)}},[o,a,i,s,r,d,N]),n({ref:g,placerProps:dt(dt({},t),{},{placement:j||K1(a),maxHeight:C})})},pD=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return pt("div",xe({},hn(t,"menu",{menu:!0}),{ref:r},o),n)},hD=pD,mD=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return dt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},vD=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,a=t.isMulti;return pt("div",xe({},hn(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},r),n)},q1=function(t,n){var r=t.theme,o=r.spacing.baseUnit,a=r.colors;return dt({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},bD=q1,xD=q1,yD=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,a=So(t,lD);return pt("div",xe({},hn(dt(dt({},a),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},CD=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,a=So(t,uD);return pt("div",xe({},hn(dt(dt({},a),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},wD=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},ED=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,a=t.innerProps,i=t.menuPlacement,s=t.menuPosition,u=p.useRef(null),c=p.useRef(null),d=p.useState(K1(i)),g=zo(d,2),v=g[0],y=g[1],C=p.useMemo(function(){return{setPortalPlacement:y}},[]),h=p.useState(null),w=zo(h,2),E=w[0],j=w[1],P=p.useCallback(function(){if(o){var V=tD(o),J=s==="fixed"?0:window.pageYOffset,K=V[v]+J;(K!==(E==null?void 0:E.offset)||V.left!==(E==null?void 0:E.rect.left)||V.width!==(E==null?void 0:E.rect.width))&&j({offset:K,rect:V})}},[o,s,v,E==null?void 0:E.offset,E==null?void 0:E.rect.left,E==null?void 0:E.rect.width]);fp(function(){P()},[P]);var N=p.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&u.current&&(c.current=z1(o,u.current,P,{elementResize:"ResizeObserver"in window}))},[o,P]);fp(function(){N()},[N]);var $=p.useCallback(function(V){u.current=V,N()},[N]);if(!n&&s!=="fixed"||!E)return null;var G=pt("div",xe({ref:$},hn(dt(dt({},t),{},{offset:E.offset,position:s,rect:E.rect}),"menuPortal",{"menu-portal":!0}),a),r);return pt(Q1.Provider,{value:C},n?wo.createPortal(G,n):G)},SD=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},DD=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,a=t.isRtl;return pt("div",xe({},hn(t,"container",{"--is-disabled":o,"--is-rtl":a}),r),n)},FD=function(t,n){var r=t.theme.spacing,o=t.isMulti,a=t.hasValue,i=t.selectProps.controlShouldRenderValue;return dt({alignItems:"center",display:o&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},AD=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,a=t.hasValue;return pt("div",xe({},hn(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),r),n)},jD=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ID=function(t){var n=t.children,r=t.innerProps;return pt("div",xe({},hn(t,"indicatorsContainer",{indicators:!0}),r),n)},eb,TD=["size"],kD=["innerProps","isRtl","size"];function PD(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var BD=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:PD},tb=function(t){var n=t.size,r=So(t,TD);return pt("svg",xe({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:BD},r))},gp=function(t){return pt(tb,xe({size:20},t),pt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},nb=function(t){return pt(tb,xe({size:20},t),pt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},rb=function(t,n){var r=t.isFocused,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return dt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?i.neutral60:i.neutral20,padding:a*2,":hover":{color:r?i.neutral80:i.neutral40}})},ND=rb,OD=function(t){var n=t.children,r=t.innerProps;return pt("div",xe({},hn(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||pt(nb,null))},$D=rb,RD=function(t){var n=t.children,r=t.innerProps;return pt("div",xe({},hn(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||pt(gp,null))},MD=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,i=o.colors;return dt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:a*2,marginTop:a*2})},LD=function(t){var n=t.innerProps;return pt("span",xe({},n,hn(t,"indicatorSeparator",{"indicator-separator":!0})))},_D=l5(eb||(eb=p5([`
|
|
55
|
-
0%, 80%, 100% { opacity: 0; }
|
|
56
|
-
40% { opacity: 1; }
|
|
57
|
-
`]))),VD=function(t,n){var r=t.isFocused,o=t.size,a=t.theme,i=a.colors,s=a.spacing.baseUnit;return dt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?i.neutral60:i.neutral20,padding:s*2})},pp=function(t){var n=t.delay,r=t.offset;return pt("span",{css:rp({animation:"".concat(_D," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},WD=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,a=o===void 0?4:o,i=So(t,kD);return pt("div",xe({},hn(dt(dt({},i),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),pt(pp,{delay:0,offset:r}),pt(pp,{delay:160,offset:!0}),pt(pp,{delay:320,offset:!r}))},HD=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.theme,i=a.colors,s=a.borderRadius,u=a.spacing;return dt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:o?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},GD=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.innerRef,i=t.innerProps,s=t.menuIsOpen;return pt("div",xe({ref:a},hn(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),i),n)},zD=GD,UD=["data"],ZD=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},XD=function(t){var n=t.children,r=t.cx,o=t.getStyles,a=t.getClassNames,i=t.Heading,s=t.headingProps,u=t.innerProps,c=t.label,d=t.theme,g=t.selectProps;return pt("div",xe({},hn(t,"group",{group:!0}),u),pt(i,xe({},s,{selectProps:g,theme:d,getStyles:o,getClassNames:a,cx:r}),c),pt("div",null,n))},YD=function(t,n){var r=t.theme,o=r.colors,a=r.spacing;return dt({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},JD=function(t){var n=U1(t);n.data;var r=So(n,UD);return pt("div",xe({},hn(t,"groupHeading",{"group-heading":!0}),r))},KD=XD,QD=["innerRef","isDisabled","isHidden","inputClassName"],qD=function(t,n){var r=t.isDisabled,o=t.value,a=t.theme,i=a.spacing,s=a.colors;return dt(dt({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},e9),n?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},ob={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},e9={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ob)},t9=function(t){return dt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ob)},n9=function(t){var n=t.cx,r=t.value,o=U1(t),a=o.innerRef,i=o.isDisabled,s=o.isHidden,u=o.inputClassName,c=So(o,QD);return pt("div",xe({},hn(t,"input",{"input-container":!0}),{"data-value":r||""}),pt("input",xe({className:n({input:!0},u),ref:a,style:t9(s),disabled:i},c)))},r9=n9,o9=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,i=r.colors;return dt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},a9=function(t,n){var r=t.theme,o=r.borderRadius,a=r.colors,i=t.cropWithEllipsis;return dt({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},i9=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,i=r.colors,s=t.isFocused;return dt({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},ab=function(t){var n=t.children,r=t.innerProps;return pt("div",r,n)},s9=ab,l9=ab;function u9(e){var t=e.children,n=e.innerProps;return pt("div",xe({role:"button"},n),t||pt(gp,{size:14}))}var c9=function(t){var n=t.children,r=t.components,o=t.data,a=t.innerProps,i=t.isDisabled,s=t.removeProps,u=t.selectProps,c=r.Container,d=r.Label,g=r.Remove;return pt(c,{data:o,innerProps:dt(dt({},hn(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:u},pt(d,{data:o,innerProps:dt({},hn(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},n),pt(g,{data:o,innerProps:dt(dt({},hn(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:u}))},d9=c9,f9=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.theme,s=i.spacing,u=i.colors;return dt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?u.primary:o?u.primary25:"transparent",color:r?u.neutral20:a?u.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?u.primary:u.primary50}})},g9=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.isSelected,i=t.innerRef,s=t.innerProps;return pt("div",xe({},hn(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":a}),{ref:i,"aria-disabled":r},s),n)},p9=g9,h9=function(t,n){var r=t.theme,o=r.spacing,a=r.colors;return dt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},m9=function(t){var n=t.children,r=t.innerProps;return pt("div",xe({},hn(t,"placeholder",{placeholder:!0}),r),n)},v9=m9,b9=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing,i=o.colors;return dt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},x9=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return pt("div",xe({},hn(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},y9=x9,C9={ClearIndicator:RD,Control:zD,DropdownIndicator:OD,DownChevron:nb,CrossIcon:gp,Group:KD,GroupHeading:JD,IndicatorsContainer:ID,IndicatorSeparator:LD,Input:r9,LoadingIndicator:WD,Menu:hD,MenuList:vD,MenuPortal:ED,LoadingMessage:CD,NoOptionsMessage:yD,MultiValue:d9,MultiValueContainer:s9,MultiValueLabel:l9,MultiValueRemove:u9,Option:p9,Placeholder:v9,SelectContainer:DD,SingleValue:y9,ValueContainer:AD},w9=function(t){return dt(dt({},C9),t.components)},ib=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function E9(e,t){return!!(e===t||ib(e)&&ib(t))}function S9(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!E9(e[n],t[n]))return!1;return!0}function D9(e,t){t===void 0&&(t=S9);var n=null;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return r.clear=function(){n=null},r}function F9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var A9=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:F9},j9=function(t){return pt("span",xe({css:A9},t))},sb=j9,I9={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.isDisabled,a=t.tabSelectsValue,i=t.context;switch(i){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,a=t.labels,i=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,a=t.label,i=a===void 0?"":a,s=t.selectValue,u=t.isDisabled,c=t.isSelected,d=function(C,h){return C&&C.length?"".concat(C.indexOf(h)+1," of ").concat(C.length):""};if(n==="value"&&s)return"value ".concat(i," focused, ").concat(d(s,r),".");if(n==="menu"){var g=u?" disabled":"",v="".concat(c?"selected":"focused").concat(g);return"option ".concat(i," ").concat(v,", ").concat(d(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},T9=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,i=t.isFocused,s=t.selectValue,u=t.selectProps,c=t.id,d=u.ariaLiveMessages,g=u.getOptionLabel,v=u.inputValue,y=u.isMulti,C=u.isOptionDisabled,h=u.isSearchable,w=u.menuIsOpen,E=u.options,j=u.screenReaderStatus,P=u.tabSelectsValue,N=u["aria-label"],$=u["aria-live"],G=p.useMemo(function(){return dt(dt({},I9),d||{})},[d]),V=p.useMemo(function(){var R="";if(n&&G.onChange){var W=n.option,oe=n.options,pe=n.removedValue,se=n.removedValues,Z=n.value,te=function(be){return Array.isArray(be)?null:be},U=pe||W||te(Z),Q=U?g(U):"",he=oe||se||void 0,H=he?he.map(g):[],ge=dt({isDisabled:U&&C(U,s),label:Q,labels:H},n);R=G.onChange(ge)}return R},[n,G,C,s,g]),J=p.useMemo(function(){var R="",W=r||o,oe=!!(r&&s&&s.includes(r));if(W&&G.onFocus){var pe={focused:W,label:g(W),isDisabled:C(W,s),isSelected:oe,options:a,context:W===r?"menu":"value",selectValue:s};R=G.onFocus(pe)}return R},[r,o,g,C,G,a,s]),K=p.useMemo(function(){var R="";if(w&&E.length&&G.onFilter){var W=j({count:a.length});R=G.onFilter({inputValue:v,resultsMessage:W})}return R},[a,v,w,G,E,j]),me=p.useMemo(function(){var R="";if(G.guidance){var W=o?"value":w?"menu":"input";R=G.guidance({"aria-label":N,context:W,isDisabled:r&&C(r,s),isMulti:y,isSearchable:h,tabSelectsValue:P})}return R},[N,r,o,y,C,h,w,G,s,P]),ye="".concat(J," ").concat(K," ").concat(me),ne=pt(p.Fragment,null,pt("span",{id:"aria-selection"},V),pt("span",{id:"aria-context"},ye)),fe=(n==null?void 0:n.action)==="initial-input-focus";return pt(p.Fragment,null,pt(sb,{id:c},fe&&ne),pt(sb,{"aria-live":$,"aria-atomic":"false","aria-relevant":"additions text"},i&&!fe&&ne))},k9=T9,hp=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],P9=new RegExp("["+hp.map(function(e){return e.letters}).join("")+"]","g"),lb={},mp=0;mp<hp.length;mp++)for(var vp=hp[mp],bp=0;bp<vp.letters.length;bp++)lb[vp.letters[bp]]=vp.base;var ub=function(t){return t.replace(P9,function(n){return lb[n]})},B9=D9(ub),cb=function(t){return t.replace(/^\s+|\s+$/g,"")},N9=function(t){return"".concat(t.label," ").concat(t.value)},O9=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=dt({ignoreCase:!0,ignoreAccents:!0,stringify:N9,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,i=o.ignoreAccents,s=o.stringify,u=o.trim,c=o.matchFrom,d=u?cb(r):r,g=u?cb(s(n)):s(n);return a&&(d=d.toLowerCase(),g=g.toLowerCase()),i&&(d=B9(d),g=ub(g)),c==="start"?g.substr(0,d.length)===d:g.indexOf(d)>-1}},$9=["innerRef"];function R9(e){var t=e.innerRef,n=So(e,$9),r=sD(n,"onExited","in","enter","exit","appear");return pt("input",xe({ref:t},r,{css:rp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var M9=function(t){t.preventDefault(),t.stopPropagation()};function L9(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=p.useRef(!1),s=p.useRef(!1),u=p.useRef(0),c=p.useRef(null),d=p.useCallback(function(w,E){if(c.current!==null){var j=c.current,P=j.scrollTop,N=j.scrollHeight,$=j.clientHeight,G=c.current,V=E>0,J=N-$-P,K=!1;J>E&&i.current&&(r&&r(w),i.current=!1),V&&s.current&&(a&&a(w),s.current=!1),V&&E>J?(n&&!i.current&&n(w),G.scrollTop=N,K=!0,i.current=!0):!V&&-E>P&&(o&&!s.current&&o(w),G.scrollTop=0,K=!0,s.current=!0),K&&M9(w)}},[n,r,o,a]),g=p.useCallback(function(w){d(w,w.deltaY)},[d]),v=p.useCallback(function(w){u.current=w.changedTouches[0].clientY},[]),y=p.useCallback(function(w){var E=u.current-w.changedTouches[0].clientY;d(w,E)},[d]),C=p.useCallback(function(w){if(w){var E=oD?{passive:!1}:!1;w.addEventListener("wheel",g,E),w.addEventListener("touchstart",v,E),w.addEventListener("touchmove",y,E)}},[y,v,g]),h=p.useCallback(function(w){w&&(w.removeEventListener("wheel",g,!1),w.removeEventListener("touchstart",v,!1),w.removeEventListener("touchmove",y,!1))},[y,v,g]);return p.useEffect(function(){if(t){var w=c.current;return C(w),function(){h(w)}}},[t,C,h]),function(w){c.current=w}}var db=["boxSizing","height","overflow","paddingRight","position"],fb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function gb(e){e.preventDefault()}function pb(e){e.stopPropagation()}function hb(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function mb(){return"ontouchstart"in window||navigator.maxTouchPoints}var vb=!!(typeof window<"u"&&window.document&&window.document.createElement),lu=0,Cs={capture:!1,passive:!1};function _9(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=p.useRef({}),a=p.useRef(null),i=p.useCallback(function(u){if(vb){var c=document.body,d=c&&c.style;if(r&&db.forEach(function(C){var h=d&&d[C];o.current[C]=h}),r&&lu<1){var g=parseInt(o.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,y=window.innerWidth-v+g||0;Object.keys(fb).forEach(function(C){var h=fb[C];d&&(d[C]=h)}),d&&(d.paddingRight="".concat(y,"px"))}c&&mb()&&(c.addEventListener("touchmove",gb,Cs),u&&(u.addEventListener("touchstart",hb,Cs),u.addEventListener("touchmove",pb,Cs))),lu+=1}},[r]),s=p.useCallback(function(u){if(vb){var c=document.body,d=c&&c.style;lu=Math.max(lu-1,0),r&&lu<1&&db.forEach(function(g){var v=o.current[g];d&&(d[g]=v)}),c&&mb()&&(c.removeEventListener("touchmove",gb,Cs),u&&(u.removeEventListener("touchstart",hb,Cs),u.removeEventListener("touchmove",pb,Cs)))}},[r]);return p.useEffect(function(){if(t){var u=a.current;return i(u),function(){s(u)}}},[t,i,s]),function(u){a.current=u}}function V9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var W9=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},H9=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:V9};function G9(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,a=e.onBottomArrive,i=e.onBottomLeave,s=e.onTopArrive,u=e.onTopLeave,c=L9({isEnabled:o,onBottomArrive:a,onBottomLeave:i,onTopArrive:s,onTopLeave:u}),d=_9({isEnabled:n}),g=function(y){c(y),d(y)};return pt(p.Fragment,null,n&&pt("div",{onClick:W9,css:H9}),t(g))}function z9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var U9=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:z9},Z9=function(t){var n=t.name,r=t.onFocus;return pt("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:U9,value:"",onChange:function(){}})},X9=Z9,Y9=function(t){return t.label},bb=function(t){return t.label},xb=function(t){return t.value},J9=function(t){return!!t.isDisabled},K9={clearIndicator:$D,container:SD,control:HD,dropdownIndicator:ND,group:ZD,groupHeading:YD,indicatorsContainer:jD,indicatorSeparator:MD,input:qD,loadingIndicator:VD,loadingMessage:xD,menu:fD,menuList:mD,menuPortal:wD,multiValue:o9,multiValueLabel:a9,multiValueRemove:i9,noOptionsMessage:bD,option:f9,placeholder:h9,singleValue:b9,valueContainer:FD},Q9={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},q9=4,yb=4,eF=38,tF=yb*2,nF={baseUnit:yb,controlHeight:eF,menuGutter:tF},xp={borderRadius:q9,colors:Q9,spacing:nF},rF={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Y1(),captureMenuScroll:!Y1(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:O9(),formatGroupLabel:Y9,getOptionLabel:bb,getOptionValue:xb,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:J9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!nD(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Cb(e,t,n,r){var o=Fb(e,t,n),a=Ab(e,t,n),i=Db(e,t),s=vd(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:i,value:s,index:r}}function wb(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(i,s){return Cb(e,i,t,s)}).filter(function(i){return Sb(e,i)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Cb(e,n,t,r);return Sb(e,a)?a:void 0}).filter(aD)}function Eb(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Kl(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function oF(e,t){return Eb(wb(e,t))}function Sb(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Ib(e)||!a)&&jb(e,{label:i,value:s,data:o},r)}function aF(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var a=t.indexOf(n);if(a>-1)return n;if(o<t.length)return t[o]}return null}function iF(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Db=function(t,n){return t.getOptionLabel(n)},vd=function(t,n){return t.getOptionValue(n)};function Fb(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Ab(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=vd(e,t);return n.some(function(o){return vd(e,o)===r})}function jb(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Ib=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},sF=1,yp=function(e){X4(n,e);var t=Q4(n);function n(r){var o;if(U4(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,u){var c=o.props,d=c.onChange,g=c.name;u.name=g,o.ariaOnChange(s,u),d(s,u)},o.setValue=function(s,u,c){var d=o.props,g=d.closeMenuOnSelect,v=d.isMulti,y=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:y}),g&&(o.setState({inputIsHiddenAfterUpdate:!v}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:u,option:c})},o.selectOption=function(s){var u=o.props,c=u.blurInputOnSelect,d=u.isMulti,g=u.name,v=o.state.selectValue,y=d&&o.isOptionSelected(s,v),C=o.isOptionDisabled(s,v);if(y){var h=o.getOptionValue(s);o.setValue(v.filter(function(w){return o.getOptionValue(w)!==h}),"deselect-option",s)}else if(!C)d?o.setValue([].concat(Kl(v),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:g});return}c&&o.blurInput()},o.removeValue=function(s){var u=o.props.isMulti,c=o.state.selectValue,d=o.getOptionValue(s),g=c.filter(function(y){return o.getOptionValue(y)!==d}),v=su(u,g,g[0]||null);o.onChange(v,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(su(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),g=su(s,d,d[0]||null);o.onChange(g,{action:"pop-value",removedValue:c})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return K5.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(s){return Db(o.props,s)},o.getOptionValue=function(s){return vd(o.props,s)},o.getStyles=function(s,u){var c=o.props.unstyled,d=K9[s](u,c);d.boxSizing="border-box";var g=o.props.styles[s];return g?g(d,u):d},o.getClassNames=function(s,u){var c,d;return(c=(d=o.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},o.getElementId=function(s){return"".concat(o.instancePrefix,"-").concat(s)},o.getComponents=function(){return w9(o.props)},o.buildCategorizedOptions=function(){return wb(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Eb(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(s,u){o.setState({ariaSelection:dt({value:s},u)})},o.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(s){o.blockOptionHover=!1},o.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},o.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!o.props.isDisabled){var u=o.props,c=u.isMulti,d=u.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!c}),o.onMenuClose()):o.openMenu("first"),s.preventDefault()}},o.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(o.clearValue(),s.preventDefault(),o.openAfterFocus=!1,s.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(s){typeof o.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&gd(s.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(s)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(o.initialTouchX=c.clientX,o.initialTouchY=c.clientY,o.userIsDragging=!1)},o.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-o.initialTouchX),g=Math.abs(c.clientY-o.initialTouchY),v=5;o.userIsDragging=d>v||g>v}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var u=o.props.inputValue,c=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){o.blockOptionHover||o.state.focusedOption===s||o.setState({focusedOption:s})},o.shouldHideSelectedOptions=function(){return Ib(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var u=o.props,c=u.isMulti,d=u.backspaceRemovesValue,g=u.escapeClearsValue,v=u.inputValue,y=u.isClearable,C=u.isDisabled,h=u.menuIsOpen,w=u.onKeyDown,E=u.tabSelectsValue,j=u.openMenuOnFocus,P=o.state,N=P.focusedOption,$=P.focusedValue,G=P.selectValue;if(!C&&!(typeof w=="function"&&(w(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||v)return;o.focusValue("previous");break;case"ArrowRight":if(!c||v)return;o.focusValue("next");break;case"Delete":case"Backspace":if(v)return;if($)o.removeValue($);else{if(!d)return;c?o.popValue():y&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!h||!E||!N||j&&o.isOptionSelected(N,G))return;o.selectOption(N);break;case"Enter":if(s.keyCode===229)break;if(h){if(!N||o.isComposing)return;o.selectOption(N);break}return;case"Escape":h?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:v}),o.onMenuClose()):y&&g&&o.clearValue();break;case" ":if(v)return;if(!h){o.openMenu("first");break}if(!N)return;o.selectOption(N);break;case"ArrowUp":h?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":h?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!h)return;o.focusOption("pageup");break;case"PageDown":if(!h)return;o.focusOption("pagedown");break;case"Home":if(!h)return;o.focusOption("first");break;case"End":if(!h)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++sF),o.state.selectValue=fd(r.value),r.menuIsOpen&&o.state.selectValue.length){var a=o.buildFocusableOptions(),i=a.indexOf(o.state.selectValue[0]);o.state.focusedOption=a[i]}return o}return Z4(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&X1(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var a=this.props,i=a.isDisabled,s=a.menuIsOpen,u=this.state.isFocused;(u&&!i&&o.isDisabled||u&&s&&!o.menuIsOpen)&&this.focusInput(),u&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(X1(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,i=this.state,s=i.selectValue,u=i.isFocused,c=this.buildFocusableOptions(),d=o==="first"?0:c.length-1;if(!this.props.isMulti){var g=c.indexOf(s[0]);g>-1&&(d=g)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[d]},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,i=a.selectValue,s=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=i.indexOf(s);s||(u=-1);var c=i.length-1,d=-1;if(i.length){switch(o){case"previous":u===0?d=0:u===-1?d=c:d=u-1;break;case"next":u>-1&&u<c&&(d=u+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:i[d]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,i=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var u=0,c=s.indexOf(i);i||(c=-1),o==="up"?u=c>0?c-1:s.length-1:o==="down"?u=(c+1)%s.length:o==="pageup"?(u=c-a,u<0&&(u=0)):o==="pagedown"?(u=c+a,u>s.length-1&&(u=s.length-1)):o==="last"&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(xp):dt(dt({},xp),this.props.theme):xp}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,i=this.getStyles,s=this.getClassNames,u=this.getValue,c=this.selectOption,d=this.setValue,g=this.props,v=g.isMulti,y=g.isRtl,C=g.options,h=this.hasValue();return{clearValue:o,cx:a,getStyles:i,getClassNames:s,getValue:u,hasValue:h,isMulti:v,isRtl:y,options:C,selectOption:c,selectProps:g,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,a=o.isClearable,i=o.isMulti;return a===void 0?i:a}},{key:"isOptionDisabled",value:function(o,a){return Fb(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return Ab(this.props,o,a)}},{key:"filterOption",value:function(o,a){return jb(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:i,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,a=o.isDisabled,i=o.isSearchable,s=o.inputId,u=o.inputValue,c=o.tabIndex,d=o.form,g=o.menuIsOpen,v=o.required,y=this.getComponents(),C=y.Input,h=this.state,w=h.inputIsHidden,E=h.ariaSelection,j=this.commonProps,P=s||this.getElementId("input"),N=dt(dt(dt({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":v,role:"combobox"},g&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(E==null?void 0:E.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?q.createElement(C,xe({},j,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:P,innerRef:this.getInputRef,isDisabled:a,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:d,type:"text",value:u},N)):q.createElement(R9,xe({id:P,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:dd,onFocus:this.onInputFocus,disabled:a,tabIndex:c,inputMode:"none",form:d,value:""},N))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),i=a.MultiValue,s=a.MultiValueContainer,u=a.MultiValueLabel,c=a.MultiValueRemove,d=a.SingleValue,g=a.Placeholder,v=this.commonProps,y=this.props,C=y.controlShouldRenderValue,h=y.isDisabled,w=y.isMulti,E=y.inputValue,j=y.placeholder,P=this.state,N=P.selectValue,$=P.focusedValue,G=P.isFocused;if(!this.hasValue()||!C)return E?null:q.createElement(g,xe({},v,{key:"placeholder",isDisabled:h,isFocused:G,innerProps:{id:this.getElementId("placeholder")}}),j);if(w)return N.map(function(J,K){var me=J===$,ye="".concat(o.getOptionLabel(J),"-").concat(o.getOptionValue(J));return q.createElement(i,xe({},v,{components:{Container:s,Label:u,Remove:c},isFocused:me,isDisabled:h,key:ye,index:K,removeProps:{onClick:function(){return o.removeValue(J)},onTouchEnd:function(){return o.removeValue(J)},onMouseDown:function(fe){fe.preventDefault()}},data:J}),o.formatOptionLabel(J,"value"))});if(E)return null;var V=N[0];return q.createElement(d,xe({},v,{data:V,isDisabled:h}),this.formatOptionLabel(V,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,i=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!a||u||!this.hasValue()||c)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return q.createElement(a,xe({},i,{innerProps:g,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,i=this.commonProps,s=this.props,u=s.isDisabled,c=s.isLoading,d=this.state.isFocused;if(!a||!c)return null;var g={"aria-hidden":"true"};return q.createElement(a,xe({},i,{innerProps:g,isDisabled:u,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,i=o.IndicatorSeparator;if(!a||!i)return null;var s=this.commonProps,u=this.props.isDisabled,c=this.state.isFocused;return q.createElement(i,xe({},s,{isDisabled:u,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var i=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return q.createElement(a,xe({},i,{innerProps:c,isDisabled:s,isFocused:u}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),i=a.Group,s=a.GroupHeading,u=a.Menu,c=a.MenuList,d=a.MenuPortal,g=a.LoadingMessage,v=a.NoOptionsMessage,y=a.Option,C=this.commonProps,h=this.state.focusedOption,w=this.props,E=w.captureMenuScroll,j=w.inputValue,P=w.isLoading,N=w.loadingMessage,$=w.minMenuHeight,G=w.maxMenuHeight,V=w.menuIsOpen,J=w.menuPlacement,K=w.menuPosition,me=w.menuPortalTarget,ye=w.menuShouldBlockScroll,ne=w.menuShouldScrollIntoView,fe=w.noOptionsMessage,R=w.onMenuScrollToTop,W=w.onMenuScrollToBottom;if(!V)return null;var oe=function(he,H){var ge=he.type,ae=he.data,be=he.isDisabled,Me=he.isSelected,Ne=he.label,We=he.value,Ke=h===ae,$e=be?void 0:function(){return o.onOptionHover(ae)},qe=be?void 0:function(){return o.selectOption(ae)},ot="".concat(o.getElementId("option"),"-").concat(H),ht={id:ot,onClick:qe,onMouseMove:$e,onMouseOver:$e,tabIndex:-1};return q.createElement(y,xe({},C,{innerProps:ht,data:ae,isDisabled:be,isSelected:Me,key:ot,label:Ne,type:ge,value:We,isFocused:Ke,innerRef:Ke?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(he.data,"menu"))},pe;if(this.hasOptions())pe=this.getCategorizedOptions().map(function(Q){if(Q.type==="group"){var he=Q.data,H=Q.options,ge=Q.index,ae="".concat(o.getElementId("group"),"-").concat(ge),be="".concat(ae,"-heading");return q.createElement(i,xe({},C,{key:ae,data:he,options:H,Heading:s,headingProps:{id:be,data:Q.data},label:o.formatGroupLabel(Q.data)}),Q.options.map(function(Me){return oe(Me,"".concat(ge,"-").concat(Me.index))}))}else if(Q.type==="option")return oe(Q,"".concat(Q.index))});else if(P){var se=N({inputValue:j});if(se===null)return null;pe=q.createElement(g,C,se)}else{var Z=fe({inputValue:j});if(Z===null)return null;pe=q.createElement(v,C,Z)}var te={minMenuHeight:$,maxMenuHeight:G,menuPlacement:J,menuPosition:K,menuShouldScrollIntoView:ne},U=q.createElement(gD,xe({},C,te),function(Q){var he=Q.ref,H=Q.placerProps,ge=H.placement,ae=H.maxHeight;return q.createElement(u,xe({},C,te,{innerRef:he,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove,id:o.getElementId("listbox")},isLoading:P,placement:ge}),q.createElement(G9,{captureEnabled:E,onTopArrive:R,onBottomArrive:W,lockEnabled:ye},function(be){return q.createElement(c,xe({},C,{innerRef:function(Ne){o.getMenuListRef(Ne),be(Ne)},isLoading:P,maxHeight:ae,focusedOption:h}),pe)}))});return me||K==="fixed"?q.createElement(d,xe({},C,{appendTo:me,controlElement:this.controlRef,menuPlacement:J,menuPosition:K}),U):U}},{key:"renderFormField",value:function(){var o=this,a=this.props,i=a.delimiter,s=a.isDisabled,u=a.isMulti,c=a.name,d=a.required,g=this.state.selectValue;if(d&&!this.hasValue()&&!s)return q.createElement(X9,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(u)if(i){var v=g.map(function(h){return o.getOptionValue(h)}).join(i);return q.createElement("input",{name:c,type:"hidden",value:v})}else{var y=g.length>0?g.map(function(h,w){return q.createElement("input",{key:"i-".concat(w),name:c,type:"hidden",value:o.getOptionValue(h)})}):q.createElement("input",{name:c,type:"hidden",value:""});return q.createElement("div",null,y)}else{var C=g[0]?this.getOptionValue(g[0]):"";return q.createElement("input",{name:c,type:"hidden",value:C})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,i=a.ariaSelection,s=a.focusedOption,u=a.focusedValue,c=a.isFocused,d=a.selectValue,g=this.getFocusableOptions();return q.createElement(k9,xe({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:s,focusedValue:u,isFocused:c,selectValue:d,focusableOptions:g}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,i=o.IndicatorsContainer,s=o.SelectContainer,u=o.ValueContainer,c=this.props,d=c.className,g=c.id,v=c.isDisabled,y=c.menuIsOpen,C=this.state.isFocused,h=this.commonProps=this.getCommonProps();return q.createElement(s,xe({},h,{className:d,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:C}),this.renderLiveRegion(),q.createElement(a,xe({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:C,menuIsOpen:y}),q.createElement(u,xe({},h,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),q.createElement(i,xe({},h,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,s=a.clearFocusValueOnUpdate,u=a.inputIsHiddenAfterUpdate,c=a.ariaSelection,d=a.isFocused,g=a.prevWasFocused,v=o.options,y=o.value,C=o.menuIsOpen,h=o.inputValue,w=o.isMulti,E=fd(y),j={};if(i&&(y!==i.value||v!==i.options||C!==i.menuIsOpen||h!==i.inputValue)){var P=C?oF(o,E):[],N=s?aF(a,E):null,$=iF(a,P);j={selectValue:E,focusedOption:$,focusedValue:N,clearFocusValueOnUpdate:!1}}var G=u!=null&&o!==i?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},V=c,J=d&&g;return d&&!J&&(V={value:su(w,E,E[0]||null),options:E,action:"initial-input-focus"},J=!g),(c==null?void 0:c.action)==="initial-input-focus"&&(V=null),dt(dt(dt({},j),G),{},{prevProps:o,ariaSelection:V,prevWasFocused:J})}}]),n}(p.Component);yp.defaultProps=rF;var lF=p.forwardRef(function(e,t){var n=J0(e);return q.createElement(yp,xe({ref:t},n))}),Tb=lF,uF=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],kb=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),a=String(r.getOptionValue(n)).toLowerCase(),i=String(r.getOptionLabel(n)).toLowerCase();return a===o||i===o},Cp={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,o){return!(!t||n.some(function(a){return kb(t,a,o)})||r.some(function(a){return kb(t,a,o)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function cF(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,o=r===void 0?"last":r,a=e.formatCreateLabel,i=a===void 0?Cp.formatCreateLabel:a,s=e.isValidNewOption,u=s===void 0?Cp.isValidNewOption:s,c=e.getNewOptionData,d=c===void 0?Cp.getNewOptionData:c,g=e.onCreateOption,v=e.options,y=v===void 0?[]:v,C=e.onChange,h=So(e,uF),w=h.getOptionValue,E=w===void 0?xb:w,j=h.getOptionLabel,P=j===void 0?bb:j,N=h.inputValue,$=h.isLoading,G=h.isMulti,V=h.value,J=h.name,K=p.useMemo(function(){return u(N,fd(V),y,{getOptionValue:E,getOptionLabel:P})?d(N,i(N)):void 0},[i,d,P,E,N,u,y,V]),me=p.useMemo(function(){return(n||!$)&&K?o==="first"?[K].concat(Kl(y)):[].concat(Kl(y),[K]):y},[n,o,$,K,y]),ye=p.useCallback(function(ne,fe){if(fe.action!=="select-option")return C(ne,fe);var R=Array.isArray(ne)?ne:[ne];if(R[R.length-1]===K){if(g)g(N);else{var W=d(N,N),oe={action:"create-option",name:J,option:W};C(su(G,[].concat(Kl(fd(V)),[W]),W),oe)}return}C(ne,fe)},[d,N,G,J,K,g,C,V]);return dt(dt({},h),{},{options:me,onChange:ye})}var dF=p.forwardRef(function(e,t){var n=J0(e),r=cF(n);return q.createElement(yp,xe({ref:t},r))}),fF=dF;const gF=({cx:e,children:t,getStyles:n,innerProps:r,innerRef:o,size:a="normal",...i})=>{let s={small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""};return l.jsx("div",{ref:o,className:_e(s[a],"flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500"),...r,children:t})},pF=({cx:e,children:t,getStyles:n,innerProps:r,innerRef:o,...a})=>l.jsx("div",{className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded border bg-background p-1.5",ref:o,...r,children:t}),hF=({cx:e,children:t,getStyles:n,innerProps:r,innerRef:o,size:a="normal",...i})=>l.jsx("div",{ref:o,className:"flex cursor-pointer select-none flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...r,children:t}),uu=e=>l.jsxs("div",{className:" mb-3 flex w-full flex-col gap-2",children:[e.label&&l.jsx(Ea,{children:e.label}),e.isLoading?l.jsx(Eo,{className:"h-[38px] w-full"}):e.isCreatable?l.jsx(fF,{styles:{input:t=>({...t,"input:focus":{boxShadow:"none"}}),control:t=>({...t,borderRadius:"0.75rem"}),menu:t=>({...t,borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"}),menuList:t=>({...t,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"}),option:t=>({...t,borderRadius:"0.75rem",margin:3,width:"98%"})},options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onCreateOption:()=>console.log("im changing"),onChange:(t,n)=>e.onChange(t,n),onInputChange:(t,n)=>e.onInputChange(t,n)}):l.jsx(Tb,{classNames:{container:()=>Te("rounded",e.disabled?"cursor-not-allowed":"cursor-pointer"),placeholder:()=>"px-2 text-muted-foreground",input:()=>"text-white px-2",valueContainer:()=>"text-white dark:text-muted-foreground",singleValue:()=>"text-black dark:text-white px-2",indicatorsContainer:()=>" px-2 cursor-pointer text-muted-foreground"},unstyled:!0,isDisabled:e.disabled,options:e.options,defaultValue:e.defaultValue,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onChange:(t,n)=>e.onChange(t,n),components:{Control:gF,Option:hF,Menu:pF},getOptionLabel:e.getOptionLabel}),e.helperText&&l.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500",children:e.helperText})]});function rt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function cr(e,t=[]){let n=[];function r(a,i){const s=p.createContext(i),u=n.length;n=[...n,i];function c(g){const{scope:v,children:y,...C}=g,h=(v==null?void 0:v[e][u])||s,w=p.useMemo(()=>C,Object.values(C));return p.createElement(h.Provider,{value:w},y)}function d(g,v){const y=(v==null?void 0:v[e][u])||s,C=p.useContext(y);if(C)return C;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,d]}const o=()=>{const a=n.map(i=>p.createContext(i));return function(s){const u=(s==null?void 0:s[e])||a;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return o.scopeName=e,[r,mF(o,...t)]}function mF(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:u,scopeName:c})=>{const g=u(a)[`__scope${c}`];return{...s,...g}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Jn(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function jr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=vF({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Jn(n),u=p.useCallback(c=>{if(a){const g=typeof c=="function"?c(e):c;g!==e&&s(g)}else o(c)},[a,e,o,s]);return[i,u]}function vF({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),a=Jn(t);return p.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function Pb(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Aa=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function wp(e){const[t,n]=p.useState(void 0);return Aa(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;i=c.inlineSize,s=c.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Bb="Switch",[bF,g_]=cr(Bb),[xF,yF]=bF(Bb),CF=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:u="on",onCheckedChange:c,...d}=e,[g,v]=p.useState(null),y=Jt(t,j=>v(j)),C=p.useRef(!1),h=g?!!g.closest("form"):!0,[w=!1,E]=jr({prop:o,defaultProp:a,onChange:c});return p.createElement(xF,{scope:n,checked:w,disabled:s},p.createElement(Et.button,xe({type:"button",role:"switch","aria-checked":w,"aria-required":i,"data-state":Nb(w),"data-disabled":s?"":void 0,disabled:s,value:u},d,{ref:y,onClick:rt(e.onClick,j=>{E(P=>!P),h&&(C.current=j.isPropagationStopped(),C.current||j.stopPropagation())})})),h&&p.createElement(SF,{control:g,bubbles:!C.current,name:r,value:u,checked:w,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))}),wF="SwitchThumb",EF=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=yF(wF,n);return p.createElement(Et.span,xe({"data-state":Nb(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),SF=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=p.useRef(null),i=Pb(n),s=wp(t);return p.useEffect(()=>{const u=a.current,c=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&g){const v=new Event("click",{bubbles:r});g.call(u,n),u.dispatchEvent(v)}},[i,n,r]),p.createElement("input",xe({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Nb(e){return e?"checked":"unchecked"}const Ob=CF,DF=EF;let FF={default:"h-[25px] w-[42px]",sm:"h-[20px] w-[37px]"},AF={default:"h-[21px] w-[21px]",sm:"h-[16px] w-[16px]"};const Ep=q.forwardRef(({className:e,size:t="default",label:n,...r},o)=>{const[a,i]=q.useState(null),s=q.useRef(null);return q.useEffect(()=>{if(s.current&&s.current.parentNode){const u=window.getComputedStyle(s.current.parentNode).direction;i(u)}}),l.jsxs("div",{className:"flex flex-row items-center",ref:s,children:[l.jsx(Ob,{className:Te("relative cursor-pointer rounded-full bg-primary/20 outline-none data-[state=checked]:bg-primary",e,FF[t]),...r,ref:o,children:l.jsx(DF,{className:Te(AF[t],"block rounded-full bg-white transition-transform duration-100 will-change-transform data-[state=checked]:bg-primary-foreground dark:bg-background",a==="rtl"?"-translate-x-0.5 data-[state=checked]:-translate-x-[19px]":"translate-x-0.5 data-[state=checked]:translate-x-[19px]")})}),n&&l.jsx("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:n})]})});Ep.displayName=Ob.displayName;const jF=({settingsLabel:e,settingsType:t,settingsDescription:n,colorProps:r,rangeProps:o,radioProps:a,switchProps:i,selectProps:s})=>l.jsxs("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-sm",children:e}),n&&l.jsx("div",{className:"text-xs",children:n})," "]}),t==="text"&&l.jsx(Ot,{margin:"none",width:"small"}),t==="boolean"&&l.jsx(Ep,{...i}),t==="range"&&l.jsx(U0,{...o}),t==="color"&&l.jsx(z0,{...r}),t==="radio"&&l.jsx(Sr,{...a}),t==="select"&&l.jsx(uu,{...s})]}),IF=e=>l.jsx("div",{children:e.children}),ws=({design:e="spinner",size:t="sm",color:n,...r})=>{let o={button:"h-4 w-4",xs:"h-1 w-1",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"},a={pulse:"animate-in fade-in duration-1000",bounce:"animate-bounce"};switch(e.split("-")[0]){case"dots":return l.jsxs("div",{className:"flex flex-row gap-2",children:[l.jsx("div",{className:_e("animate-bounce rounded-full delay-100 repeat-infinite",t==="button"?"h-2 w-2":o[t],a[e.split("-")[1]],n||"bg-primary")}),l.jsx("div",{className:_e("animate-bounce rounded-full delay-200 repeat-infinite",t==="button"?"h-2 w-2":o[t],a[e.split("-")[1]],n||"bg-primary")}),l.jsx("div",{className:_e("animate-bounce rounded-full delay-300 repeat-infinite",t==="button"?"h-2 w-2":o[t],a[e.split("-")[1]],n||"bg-primary")})]});default:return l.jsx("div",{className:"flex flex-row gap-x-3",children:l.jsx("div",{"aria-label":"Loading...",role:"status",children:l.jsxs("svg",{className:_e(o[t],"animate-spin"),viewBox:"3 3 18 18",children:[l.jsx("path",{className:"fill-primary/20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),l.jsx("path",{className:n||"fill-primary",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})})}},$b=Rg("inline-flex items-center justify-center select-none rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",light:"bg-primary/20 text-primary hover:bg-primary/40",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",neoBrutalism:"cursor-pointer transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms] active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"},size:{default:"h-10 px-4 py-2",heightless:"px-4 py-4",xs:"h-fit py-1 text-[10px] px-2 ",sm:"h-9 text-[11px] rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-14 rounded-md px-10",icon:"h-10 w-10",smallIcon:"h-7 w-7"}},defaultVariants:{variant:"default",size:"default"}}),Qe=q.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,isLoading:o,children:a,...i},s)=>{const u="button",c=t==="outline"||t==="ghost"||t==="neoBrutalism"?"bg-primary":"bg-primary-foreground";return l.jsx(u,{className:Te($b({variant:t,size:n,className:e})),ref:s,...i,children:o?l.jsx(ws,{design:"dots-pulse",color:c,size:n==="sm"?"xs":"button"}):a})});Qe.displayName="Button";const ro=({variant:e="normal",direction:t="ltr",severity:n="info",duration:r,icon:o,className:a,...i})=>{const s=p.useRef(null),[u,c]=p.useState(!1);p.useEffect(()=>{if(r){const v=setTimeout(()=>{c(!0)},r),y=setTimeout(()=>{c(!0),s.current.removeChild(s.current.children[0])},r+1e3);return()=>{clearTimeout(v),clearTimeout(y)}}},[r]);let d={none:"hover:bg-gray-300",info:"hover:bg-blue-300",warning:"hover:bg-yellow-300",error:"hover:bg-red-300",success:"hover:bg-green-300"},g={normal:{none:"text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{none:"border-t-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{none:"border-l-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{none:"border-r-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{none:"border-b-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}};return l.jsx("div",{ref:s,children:l.jsxs("div",{className:_e("relative mb-4 flex flex-col rounded p-4 text-sm transition-all",g[e][n],u?"opacity-0":"opacity-100",a),role:"alert",dir:t,children:[l.jsxs("div",{className:"flex flex-row",children:[o&&l.jsx("div",{className:t==="rtl"?"pl-2 pt-1":"pr-2 pt-1",children:o}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:_e("font-medium",t==="rtl"?"ml-8":"mr-8"),children:i.title}),l.jsx("span",{children:i.text}),i.actions&&l.jsx("div",{className:"mt-2 flex flex-row gap-2",children:i.actions.map((v,y)=>l.jsx(Qe,{variant:v.variant,onClick:v.onClick(),children:v.label},y))})]})]}),!i.persistant&&l.jsxs("button",{type:"button",className:_e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900",d[n],t==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{c(!0),setTimeout(()=>{s.current.removeChild(s.current.children[0])},200)},children:[l.jsx("span",{className:"sr-only",children:"Close"}),l.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})},TF=(e,t)=>{const n=[],r=Math.ceil((e==null?void 0:e.length)/t);for(let o=1;o<=r;o++)n.push(o);return n},kF=(e,t,n)=>e==null?void 0:e.slice((t-1)*n,t*n),PF=(e,t,n)=>t!==null?e==null?void 0:e.sort((r,o)=>{const a=r[t].value,i=o[t].value;return typeof a=="string"&&typeof i=="string"?n==="asc"?a.localeCompare(i):i.localeCompare(a):n==="asc"?a-i:i-a}):e,Rb=(e,t,n,r,o)=>{const[a,i]=p.useState([]),[s,u]=p.useState([]);return p.useEffect(()=>{if(e){const c=TF(e,n);i([...c]);const d=PF(e,r,o),g=kF(d,t,n);u([...g])}},[e,i,t,n,r,o]),{slice:s,range:a}};function bd(e){const t=e+"CollectionProvider",[n,r]=cr(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:C,children:h}=y,w=p.useRef(null),E=p.useRef(new Map).current;return p.createElement(o,{scope:C,itemMap:E,collectionRef:w},h)},s=e+"CollectionSlot",u=p.forwardRef((y,C)=>{const{scope:h,children:w}=y,E=a(s,h),j=Jt(C,E.collectionRef);return p.createElement(ci,{ref:j},w)}),c=e+"CollectionItemSlot",d="data-radix-collection-item",g=p.forwardRef((y,C)=>{const{scope:h,children:w,...E}=y,j=p.useRef(null),P=Jt(C,j),N=a(c,h);return p.useEffect(()=>(N.itemMap.set(j,{ref:j,...E}),()=>void N.itemMap.delete(j))),p.createElement(ci,{[d]:"",ref:P},w)});function v(y){const C=a(e+"CollectionConsumer",y);return p.useCallback(()=>{const w=C.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(C.itemMap.values()).sort((N,$)=>E.indexOf(N.ref.current)-E.indexOf($.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:i,Slot:u,ItemSlot:g},v,r]}const BF=p.createContext(void 0);function xd(e){const t=p.useContext(BF);return e||t||"ltr"}function NF(e,t=globalThis==null?void 0:globalThis.document){const n=Jn(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Sp="dismissableLayer.update",OF="dismissableLayer.pointerDownOutside",$F="dismissableLayer.focusOutside";let Mb;const Lb=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cu=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:u,...c}=e,d=p.useContext(Lb),[g,v]=p.useState(null),y=(n=g==null?void 0:g.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,C]=p.useState({}),h=Jt(t,J=>v(J)),w=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),j=w.indexOf(E),P=g?w.indexOf(g):-1,N=d.layersWithOutsidePointerEventsDisabled.size>0,$=P>=j,G=MF(J=>{const K=J.target,me=[...d.branches].some(ye=>ye.contains(K));!$||me||(a==null||a(J),s==null||s(J),J.defaultPrevented||u==null||u())},y),V=LF(J=>{const K=J.target;[...d.branches].some(ye=>ye.contains(K))||(i==null||i(J),s==null||s(J),J.defaultPrevented||u==null||u())},y);return NF(J=>{P===d.layers.size-1&&(o==null||o(J),!J.defaultPrevented&&u&&(J.preventDefault(),u()))},y),p.useEffect(()=>{if(g)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Mb=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(g)),d.layers.add(g),_b(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Mb)}},[g,y,r,d]),p.useEffect(()=>()=>{g&&(d.layers.delete(g),d.layersWithOutsidePointerEventsDisabled.delete(g),_b())},[g,d]),p.useEffect(()=>{const J=()=>C({});return document.addEventListener(Sp,J),()=>document.removeEventListener(Sp,J)},[]),p.createElement(Et.div,xe({},c,{ref:h,style:{pointerEvents:N?$?"auto":"none":void 0,...e.style},onFocusCapture:rt(e.onFocusCapture,V.onFocusCapture),onBlurCapture:rt(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:rt(e.onPointerDownCapture,G.onPointerDownCapture)}))}),RF=p.forwardRef((e,t)=>{const n=p.useContext(Lb),r=p.useRef(null),o=Jt(t,r);return p.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.createElement(Et.div,xe({},e,{ref:o}))});function MF(e,t=globalThis==null?void 0:globalThis.document){const n=Jn(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){Vb(OF,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function LF(e,t=globalThis==null?void 0:globalThis.document){const n=Jn(e),r=p.useRef(!1);return p.useEffect(()=>{const o=a=>{a.target&&!r.current&&Vb($F,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function _b(){const e=new CustomEvent(Sp);document.dispatchEvent(e)}function Vb(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$g(o,a):o.dispatchEvent(a)}const _F=cu,VF=RF;let Dp=0;function Fp(){p.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Wb()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Wb()),Dp++,()=>{Dp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Dp--}},[])}function Wb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ap="focusScope.autoFocusOnMount",jp="focusScope.autoFocusOnUnmount",Hb={bubbles:!1,cancelable:!0},Ip=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,u]=p.useState(null),c=Jn(o),d=Jn(a),g=p.useRef(null),v=Jt(t,h=>u(h)),y=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let h=function(P){if(y.paused||!s)return;const N=P.target;s.contains(N)?g.current=N:ja(g.current,{select:!0})},w=function(P){if(y.paused||!s)return;const N=P.relatedTarget;N!==null&&(s.contains(N)||ja(g.current,{select:!0}))},E=function(P){if(document.activeElement===document.body)for(const $ of P)$.removedNodes.length>0&&ja(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const j=new MutationObserver(E);return s&&j.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),j.disconnect()}}},[r,s,y.paused]),p.useEffect(()=>{if(s){Ub.add(y);const h=document.activeElement;if(!s.contains(h)){const E=new CustomEvent(Ap,Hb);s.addEventListener(Ap,c),s.dispatchEvent(E),E.defaultPrevented||(WF(ZF(Gb(s)),{select:!0}),document.activeElement===h&&ja(s))}return()=>{s.removeEventListener(Ap,c),setTimeout(()=>{const E=new CustomEvent(jp,Hb);s.addEventListener(jp,d),s.dispatchEvent(E),E.defaultPrevented||ja(h??document.body,{select:!0}),s.removeEventListener(jp,d),Ub.remove(y)},0)}}},[s,c,d,y]);const C=p.useCallback(h=>{if(!n&&!r||y.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,E=document.activeElement;if(w&&E){const j=h.currentTarget,[P,N]=HF(j);P&&N?!h.shiftKey&&E===N?(h.preventDefault(),n&&ja(P,{select:!0})):h.shiftKey&&E===P&&(h.preventDefault(),n&&ja(N,{select:!0})):E===j&&h.preventDefault()}},[n,r,y.paused]);return p.createElement(Et.div,xe({tabIndex:-1},i,{ref:v,onKeyDown:C}))});function WF(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ja(r,{select:t}),document.activeElement!==n)return}function HF(e){const t=Gb(e),n=zb(t,e),r=zb(t.reverse(),e);return[n,r]}function Gb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zb(e,t){for(const n of e)if(!GF(n,{upTo:t}))return n}function GF(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zF(e){return e instanceof HTMLInputElement&&"select"in e}function ja(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zF(e)&&t&&e.select()}}const Ub=UF();function UF(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zb(e,t),e.unshift(t)},remove(t){var n;e=Zb(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Zb(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ZF(e){return e.filter(t=>t.tagName!=="A")}const XF=q["useId".toString()]||(()=>{});let YF=0;function Ir(e){const[t,n]=q.useState(XF());return Aa(()=>{e||n(r=>r??String(YF++))},[e]),e||(t?`radix-${t}`:"")}const JF=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?P1({element:r.current,padding:o}).fn(n):{}:r?P1({element:r,padding:o}).fn(n):{}}}};var yd=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Cd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Cd(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Cd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Xb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yb(e,t){const n=Xb(e);return Math.round(t*n)/n}function Jb(e){const t=q.useRef(e);return yd(()=>{t.current=e}),t}function KF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,g]=q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,y]=q.useState(r);Cd(v,r)||y(r);const[C,h]=q.useState(null),[w,E]=q.useState(null),j=q.useCallback(oe=>{oe!=G.current&&(G.current=oe,h(oe))},[h]),P=q.useCallback(oe=>{oe!==V.current&&(V.current=oe,E(oe))},[E]),N=a||C,$=i||w,G=q.useRef(null),V=q.useRef(null),J=q.useRef(d),K=Jb(u),me=Jb(o),ye=q.useCallback(()=>{if(!G.current||!V.current)return;const oe={placement:t,strategy:n,middleware:v};me.current&&(oe.platform=me.current),X5(G.current,V.current,oe).then(pe=>{const se={...pe,isPositioned:!0};ne.current&&!Cd(J.current,se)&&(J.current=se,e4.flushSync(()=>{g(se)}))})},[v,t,n,me]);yd(()=>{c===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,g(oe=>({...oe,isPositioned:!1})))},[c]);const ne=q.useRef(!1);yd(()=>(ne.current=!0,()=>{ne.current=!1}),[]),yd(()=>{if(N&&(G.current=N),$&&(V.current=$),N&&$){if(K.current)return K.current(N,$,ye);ye()}},[N,$,ye,K]);const fe=q.useMemo(()=>({reference:G,floating:V,setReference:j,setFloating:P}),[j,P]),R=q.useMemo(()=>({reference:N,floating:$}),[N,$]),W=q.useMemo(()=>{const oe={position:n,left:0,top:0};if(!R.floating)return oe;const pe=Yb(R.floating,d.x),se=Yb(R.floating,d.y);return s?{...oe,transform:"translate("+pe+"px, "+se+"px)",...Xb(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:pe,top:se}},[n,s,R.floating,d.x,d.y]);return q.useMemo(()=>({...d,update:ye,refs:fe,elements:R,floatingStyles:W}),[d,ye,fe,R,W])}const QF=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return p.createElement(Et.svg,xe({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Kb="Popper",[Qb,Es]=cr(Kb),[qF,qb]=Qb(Kb),eA=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return p.createElement(qF,{scope:t,anchor:r,onAnchorChange:o},n)},tA="PopperAnchor",nA=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=qb(tA,n),i=p.useRef(null),s=Jt(t,i);return p.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:p.createElement(Et.div,xe({},o,{ref:s}))}),ex="PopperContent",[rA,oA]=Qb(ex),aA=p.forwardRef((e,t)=>{var n,r,o,a,i,s,u,c;const{__scopePopper:d,side:g="bottom",sideOffset:v=0,align:y="center",alignOffset:C=0,arrowPadding:h=0,avoidCollisions:w=!0,collisionBoundary:E=[],collisionPadding:j=0,sticky:P="partial",hideWhenDetached:N=!1,updatePositionStrategy:$="optimized",onPlaced:G,...V}=e,J=qb(ex,d),[K,me]=p.useState(null),ye=Jt(t,ht=>me(ht)),[ne,fe]=p.useState(null),R=wp(ne),W=(n=R==null?void 0:R.width)!==null&&n!==void 0?n:0,oe=(r=R==null?void 0:R.height)!==null&&r!==void 0?r:0,pe=g+(y!=="center"?"-"+y:""),se=typeof j=="number"?j:{top:0,right:0,bottom:0,left:0,...j},Z=Array.isArray(E)?E:[E],te=Z.length>0,U={padding:se,boundary:Z.filter(uA),altBoundary:te},{refs:Q,floatingStyles:he,placement:H,isPositioned:ge,middlewareData:ae}=KF({strategy:"fixed",placement:pe,whileElementsMounted:(...ht)=>z1(...ht,{animationFrame:$==="always"}),elements:{reference:J.anchor},middleware:[A5({mainAxis:v+oe,alignmentAxis:C}),w&&j5({mainAxis:!0,crossAxis:!1,limiter:P==="partial"?I5():void 0,...U}),w&&S5({...U}),T5({...U,apply:({elements:ht,rects:At,availableWidth:le,availableHeight:Ee})=>{const{width:Ie,height:Ze}=At.reference,He=ht.floating.style;He.setProperty("--radix-popper-available-width",`${le}px`),He.setProperty("--radix-popper-available-height",`${Ee}px`),He.setProperty("--radix-popper-anchor-width",`${Ie}px`),He.setProperty("--radix-popper-anchor-height",`${Ze}px`)}}),ne&&JF({element:ne,padding:h}),cA({arrowWidth:W,arrowHeight:oe}),N&&D5({strategy:"referenceHidden",...U})]}),[be,Me]=tx(H),Ne=Jn(G);Aa(()=>{ge&&(Ne==null||Ne())},[ge,Ne]);const We=(o=ae.arrow)===null||o===void 0?void 0:o.x,Ke=(a=ae.arrow)===null||a===void 0?void 0:a.y,$e=((i=ae.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[qe,ot]=p.useState();return Aa(()=>{K&&ot(window.getComputedStyle(K).zIndex)},[K]),p.createElement("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:ge?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:qe,"--radix-popper-transform-origin":[(s=ae.transformOrigin)===null||s===void 0?void 0:s.x,(u=ae.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},p.createElement(rA,{scope:d,placedSide:be,onArrowChange:fe,arrowX:We,arrowY:Ke,shouldHideArrow:$e},p.createElement(Et.div,xe({"data-side":be,"data-align":Me},V,{ref:ye,style:{...V.style,animation:ge?void 0:"none",opacity:(c=ae.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),iA="PopperArrow",sA={top:"bottom",right:"left",bottom:"top",left:"right"},lA=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=oA(iA,r),i=sA[a.placedSide];return p.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},p.createElement(QF,xe({},o,{ref:n,style:{...o.style,display:"block"}})))});function uA(e){return e!==null}const cA=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:s,rects:u,middlewareData:c}=t,g=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=g?0:e.arrowWidth,y=g?0:e.arrowHeight,[C,h]=tx(s),w={start:"0%",center:"50%",end:"100%"}[h],E=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+v/2,j=((a=(i=c.arrow)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0)+y/2;let P="",N="";return C==="bottom"?(P=g?w:`${E}px`,N=`${-y}px`):C==="top"?(P=g?w:`${E}px`,N=`${u.floating.height+y}px`):C==="right"?(P=`${-y}px`,N=g?w:`${j}px`):C==="left"&&(P=`${u.floating.width+y}px`,N=g?w:`${j}px`),{data:{x:P,y:N}}}});function tx(e){const[t,n="center"]=e.split("-");return[t,n]}const wd=eA,Tp=nA,kp=aA,dA=lA,Ed=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?wo.createPortal(p.createElement(Et.div,xe({},o,{ref:t})),r):null});function fA(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const Kn=e=>{const{present:t,children:n}=e,r=gA(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),a=Jt(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:a}):null};Kn.displayName="Presence";function gA(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[s,u]=fA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Sd(r.current);a.current=s==="mounted"?c:"none"},[s]),Aa(()=>{const c=r.current,d=o.current;if(d!==e){const v=a.current,y=Sd(c);e?u("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&v!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Aa(()=>{if(t){const c=g=>{const y=Sd(r.current).includes(g.animationName);g.target===t&&y&&wo.flushSync(()=>u("ANIMATION_END"))},d=g=>{g.target===t&&(a.current=Sd(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Sd(e){return(e==null?void 0:e.animationName)||"none"}const Pp="rovingFocusGroup.onEntryFocus",pA={bubbles:!1,cancelable:!0},Bp="RovingFocusGroup",[Np,nx,hA]=bd(Bp),[mA,Dd]=cr(Bp,[hA]),[vA,bA]=mA(Bp),xA=p.forwardRef((e,t)=>p.createElement(Np.Provider,{scope:e.__scopeRovingFocusGroup},p.createElement(Np.Slot,{scope:e.__scopeRovingFocusGroup},p.createElement(yA,xe({},e,{ref:t}))))),yA=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,g=p.useRef(null),v=Jt(t,g),y=xd(a),[C=null,h]=jr({prop:i,defaultProp:s,onChange:u}),[w,E]=p.useState(!1),j=Jn(c),P=nx(n),N=p.useRef(!1),[$,G]=p.useState(0);return p.useEffect(()=>{const V=g.current;if(V)return V.addEventListener(Pp,j),()=>V.removeEventListener(Pp,j)},[j]),p.createElement(vA,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:C,onItemFocus:p.useCallback(V=>h(V),[h]),onItemShiftTab:p.useCallback(()=>E(!0),[]),onFocusableItemAdd:p.useCallback(()=>G(V=>V+1),[]),onFocusableItemRemove:p.useCallback(()=>G(V=>V-1),[])},p.createElement(Et.div,xe({tabIndex:w||$===0?-1:0,"data-orientation":r},d,{ref:v,style:{outline:"none",...e.style},onMouseDown:rt(e.onMouseDown,()=>{N.current=!0}),onFocus:rt(e.onFocus,V=>{const J=!N.current;if(V.target===V.currentTarget&&J&&!w){const K=new CustomEvent(Pp,pA);if(V.currentTarget.dispatchEvent(K),!K.defaultPrevented){const me=P().filter(W=>W.focusable),ye=me.find(W=>W.active),ne=me.find(W=>W.id===C),R=[ye,ne,...me].filter(Boolean).map(W=>W.ref.current);rx(R)}}N.current=!1}),onBlur:rt(e.onBlur,()=>E(!1))})))}),CA="RovingFocusGroupItem",wA=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Ir(),u=a||s,c=bA(CA,n),d=c.currentTabStopId===u,g=nx(n),{onFocusableItemAdd:v,onFocusableItemRemove:y}=c;return p.useEffect(()=>{if(r)return v(),()=>y()},[r,v,y]),p.createElement(Np.ItemSlot,{scope:n,id:u,focusable:r,active:o},p.createElement(Et.span,xe({tabIndex:d?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:rt(e.onMouseDown,C=>{r?c.onItemFocus(u):C.preventDefault()}),onFocus:rt(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:rt(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){c.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const h=DA(C,c.orientation,c.dir);if(h!==void 0){C.preventDefault();let E=g().filter(j=>j.focusable).map(j=>j.ref.current);if(h==="last")E.reverse();else if(h==="prev"||h==="next"){h==="prev"&&E.reverse();const j=E.indexOf(C.currentTarget);E=c.loop?FA(E,j+1):E.slice(j+1)}setTimeout(()=>rx(E))}})})))}),EA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function SA(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function DA(e,t,n){const r=SA(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return EA[r]}function rx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function FA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const ox=xA,ax=wA;var AA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ss=new WeakMap,Fd=new WeakMap,Ad={},Op=0,ix=function(e){return e&&(e.host||ix(e.parentNode))},jA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ix(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},IA=function(e,t,n,r){var o=jA(t,Array.isArray(e)?e:[e]);Ad[n]||(Ad[n]=new WeakMap);var a=Ad[n],i=[],s=new Set,u=new Set(o),c=function(g){!g||s.has(g)||(s.add(g),c(g.parentNode))};o.forEach(c);var d=function(g){!g||u.has(g)||Array.prototype.forEach.call(g.children,function(v){if(s.has(v))d(v);else{var y=v.getAttribute(r),C=y!==null&&y!=="false",h=(Ss.get(v)||0)+1,w=(a.get(v)||0)+1;Ss.set(v,h),a.set(v,w),i.push(v),h===1&&C&&Fd.set(v,!0),w===1&&v.setAttribute(n,"true"),C||v.setAttribute(r,"true")}})};return d(t),s.clear(),Op++,function(){i.forEach(function(g){var v=Ss.get(g)-1,y=a.get(g)-1;Ss.set(g,v),a.set(g,y),v||(Fd.has(g)||g.removeAttribute(r),Fd.delete(g)),y||g.removeAttribute(n)}),Op--,Op||(Ss=new WeakMap,Ss=new WeakMap,Fd=new WeakMap,Ad={})}},jd=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||AA(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),IA(r,o,n,"aria-hidden")):function(){return null}},zn=function(){return zn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},zn.apply(this,arguments)};function $p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ds(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function s(d){try{c(r.next(d))}catch(g){i(g)}}function u(d){try{c(r.throw(d))}catch(g){i(g)}}function c(d){d.done?a(d.value):o(d.value).then(s,u)}c((r=r.apply(e,t||[])).next())})}function Fs(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(d){return u([c,d])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(d){c=[6,d],o=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function TA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function kA(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(TA(arguments[t]));return e}function sx(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var du="right-scroll-bar-position",fu="width-before-scroll-bar",PA="with-scroll-bars-hidden",BA="--removed-body-scroll-bar-size";function NA(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function OA(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function lx(e,t){return OA(t||null,function(n){return e.forEach(function(r){return NA(r,n)})})}function $A(e){return e}function RA(e,t){t===void 0&&(t=$A);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var u=function(){var d=i;i=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return o}function ux(e){e===void 0&&(e={});var t=RA(null);return t.options=zn({async:!0,ssr:!1},e),t}var cx=function(e){var t=e.sideCar,n=$p(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return q.createElement(r,zn({},n))};cx.isSideCarExport=!0;function dx(e,t){return e.useMedium(t),cx}var fx=ux(),Rp=function(){},Id=q.forwardRef(function(e,t){var n=q.useRef(null),r=q.useState({onScrollCapture:Rp,onWheelCapture:Rp,onTouchMoveCapture:Rp}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,C=e.inert,h=e.allowPinchZoom,w=e.as,E=w===void 0?"div":w,j=$p(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=v,N=lx([n,t]),$=zn(zn({},j),o);return q.createElement(q.Fragment,null,d&&q.createElement(P,{sideCar:fx,removeScrollBar:c,shards:g,noIsolation:y,inert:C,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),i?q.cloneElement(q.Children.only(s),zn(zn({},$),{ref:N})):q.createElement(E,zn({},$,{className:u,ref:N}),s))});Id.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Id.classNames={fullWidth:fu,zeroRight:du};var gx,MA=function(){if(gx)return gx;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function LA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=MA();return t&&e.setAttribute("nonce",t),e}function _A(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function VA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WA=function(){var e=0,t=null;return{add:function(n){e==0&&(t=LA())&&(_A(t,n),VA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},HA=function(){var e=WA();return function(t,n){q.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Mp=function(){var e=HA(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},GA={left:0,top:0,right:0,gap:0},Lp=function(e){return parseInt(e||"",10)||0},zA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Lp(n),Lp(r),Lp(o)]},UA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return GA;var t=zA(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ZA=Mp(),XA=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
58
|
-
.`.concat(PA,` {
|
|
59
|
-
overflow: hidden `).concat(r,`;
|
|
60
|
-
padding-right: `).concat(s,"px ").concat(r,`;
|
|
61
|
-
}
|
|
62
|
-
body {
|
|
63
|
-
overflow: hidden `).concat(r,`;
|
|
64
|
-
overscroll-behavior: contain;
|
|
65
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
66
|
-
padding-left: `.concat(o,`px;
|
|
67
|
-
padding-top: `).concat(a,`px;
|
|
68
|
-
padding-right: `).concat(i,`px;
|
|
69
|
-
margin-left:0;
|
|
70
|
-
margin-top:0;
|
|
71
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
72
|
-
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.`).concat(du,` {
|
|
76
|
-
right: `).concat(s,"px ").concat(r,`;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.`).concat(fu,` {
|
|
80
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.`).concat(du," .").concat(du,` {
|
|
84
|
-
right: 0 `).concat(r,`;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.`).concat(fu," .").concat(fu,` {
|
|
88
|
-
margin-right: 0 `).concat(r,`;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
body {
|
|
92
|
-
`).concat(BA,": ").concat(s,`px;
|
|
93
|
-
}
|
|
94
|
-
`)},px=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=q.useMemo(function(){return UA(o)},[o]);return q.createElement(ZA,{styles:XA(a,!t,o,n?"":"!important")})},_p=!1;if(typeof window<"u")try{var Td=Object.defineProperty({},"passive",{get:function(){return _p=!0,!0}});window.addEventListener("test",Td,Td),window.removeEventListener("test",Td,Td)}catch{_p=!1}var As=_p?{passive:!1}:!1,YA=function(e){return e.tagName==="TEXTAREA"},hx=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!YA(e)&&n[t]==="visible")},JA=function(e){return hx(e,"overflowY")},KA=function(e){return hx(e,"overflowX")},mx=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=vx(e,n);if(r){var o=bx(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},QA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},qA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vx=function(e,t){return e==="v"?JA(t):KA(t)},bx=function(e,t){return e==="v"?QA(t):qA(t)},e6=function(e,t){return e==="h"&&t==="rtl"?-1:1},t6=function(e,t,n,r,o){var a=e6(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,u=t.contains(s),c=!1,d=i>0,g=0,v=0;do{var y=bx(e,s),C=y[0],h=y[1],w=y[2],E=h-w-a*C;(C||E)&&vx(e,s)&&(g+=E,v+=C),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(d&&(o&&g===0||!o&&i>g)||!d&&(o&&v===0||!o&&-i>v))&&(c=!0),c},kd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xx=function(e){return[e.deltaX,e.deltaY]},yx=function(e){return e&&"current"in e?e.current:e},n6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},r6=function(e){return`
|
|
95
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
96
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
97
|
-
`)},o6=0,js=[];function a6(e){var t=q.useRef([]),n=q.useRef([0,0]),r=q.useRef(),o=q.useState(o6++)[0],a=q.useState(function(){return Mp()})[0],i=q.useRef(e);q.useEffect(function(){i.current=e},[e]),q.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=sx([e.lockRef.current],(e.shards||[]).map(yx),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=q.useCallback(function(h,w){if("touches"in h&&h.touches.length===2)return!i.current.allowPinchZoom;var E=kd(h),j=n.current,P="deltaX"in h?h.deltaX:j[0]-E[0],N="deltaY"in h?h.deltaY:j[1]-E[1],$,G=h.target,V=Math.abs(P)>Math.abs(N)?"h":"v";if("touches"in h&&V==="h"&&G.type==="range")return!1;var J=mx(V,G);if(!J)return!0;if(J?$=V:($=V==="v"?"h":"v",J=mx(V,G)),!J)return!1;if(!r.current&&"changedTouches"in h&&(P||N)&&(r.current=$),!$)return!0;var K=r.current||$;return t6(K,w,h,K==="h"?P:N,!0)},[]),u=q.useCallback(function(h){var w=h;if(!(!js.length||js[js.length-1]!==a)){var E="deltaY"in w?xx(w):kd(w),j=t.current.filter(function($){return $.name===w.type&&$.target===w.target&&n6($.delta,E)})[0];if(j&&j.should){w.cancelable&&w.preventDefault();return}if(!j){var P=(i.current.shards||[]).map(yx).filter(Boolean).filter(function($){return $.contains(w.target)}),N=P.length>0?s(w,P[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),c=q.useCallback(function(h,w,E,j){var P={name:h,delta:w,target:E,should:j};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(N){return N!==P})},1)},[]),d=q.useCallback(function(h){n.current=kd(h),r.current=void 0},[]),g=q.useCallback(function(h){c(h.type,xx(h),h.target,s(h,e.lockRef.current))},[]),v=q.useCallback(function(h){c(h.type,kd(h),h.target,s(h,e.lockRef.current))},[]);q.useEffect(function(){return js.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",u,As),document.addEventListener("touchmove",u,As),document.addEventListener("touchstart",d,As),function(){js=js.filter(function(h){return h!==a}),document.removeEventListener("wheel",u,As),document.removeEventListener("touchmove",u,As),document.removeEventListener("touchstart",d,As)}},[]);var y=e.removeScrollBar,C=e.inert;return q.createElement(q.Fragment,null,C?q.createElement(a,{styles:r6(o)}):null,y?q.createElement(px,{gapMode:"margin"}):null)}const i6=dx(fx,a6);var Cx=q.forwardRef(function(e,t){return q.createElement(Id,zn({},e,{ref:t,sideCar:i6}))});Cx.classNames=Id.classNames;const Vp=Cx,Wp=["Enter"," "],s6=["ArrowDown","PageUp","Home"],wx=["ArrowUp","PageDown","End"],l6=[...s6,...wx],u6={ltr:[...Wp,"ArrowRight"],rtl:[...Wp,"ArrowLeft"]},c6={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Pd="Menu",[gu,d6,f6]=bd(Pd),[gi,Ex]=cr(Pd,[f6,Es,Dd]),Bd=Es(),Sx=Dd(),[Dx,Ia]=gi(Pd),[g6,pu]=gi(Pd),p6=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Bd(t),[u,c]=p.useState(null),d=p.useRef(!1),g=Jn(a),v=xd(o);return p.useEffect(()=>{const y=()=>{d.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>d.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),p.createElement(wd,s,p.createElement(Dx,{scope:t,open:n,onOpenChange:g,content:u,onContentChange:c},p.createElement(g6,{scope:t,onClose:p.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:d,dir:v,modal:i},r)))},Fx=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Bd(n);return p.createElement(Tp,xe({},o,r,{ref:t}))}),Ax="MenuPortal",[h6,jx]=gi(Ax,{forceMount:void 0}),m6=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Ia(Ax,t);return p.createElement(h6,{scope:t,forceMount:n},p.createElement(Kn,{present:n||a.open},p.createElement(Ed,{asChild:!0,container:o},r)))},oo="MenuContent",[v6,Hp]=gi(oo),b6=p.forwardRef((e,t)=>{const n=jx(oo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ia(oo,e.__scopeMenu),i=pu(oo,e.__scopeMenu);return p.createElement(gu.Provider,{scope:e.__scopeMenu},p.createElement(Kn,{present:r||a.open},p.createElement(gu.Slot,{scope:e.__scopeMenu},i.modal?p.createElement(x6,xe({},o,{ref:t})):p.createElement(y6,xe({},o,{ref:t})))))}),x6=p.forwardRef((e,t)=>{const n=Ia(oo,e.__scopeMenu),r=p.useRef(null),o=Jt(t,r);return p.useEffect(()=>{const a=r.current;if(a)return jd(a)},[]),p.createElement(Gp,xe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:rt(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),y6=p.forwardRef((e,t)=>{const n=Ia(oo,e.__scopeMenu);return p.createElement(Gp,xe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Gp=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:g,onInteractOutside:v,onDismiss:y,disableOutsideScroll:C,...h}=e,w=Ia(oo,n),E=pu(oo,n),j=Bd(n),P=Sx(n),N=d6(n),[$,G]=p.useState(null),V=p.useRef(null),J=Jt(t,V,w.onContentChange),K=p.useRef(0),me=p.useRef(""),ye=p.useRef(0),ne=p.useRef(null),fe=p.useRef("right"),R=p.useRef(0),W=C?Vp:p.Fragment,oe=C?{as:ci,allowPinchZoom:!0}:void 0,pe=Z=>{var te,U;const Q=me.current+Z,he=N().filter(Ne=>!Ne.disabled),H=document.activeElement,ge=(te=he.find(Ne=>Ne.ref.current===H))===null||te===void 0?void 0:te.textValue,ae=he.map(Ne=>Ne.textValue),be=R6(ae,Q,ge),Me=(U=he.find(Ne=>Ne.textValue===be))===null||U===void 0?void 0:U.ref.current;(function Ne(We){me.current=We,window.clearTimeout(K.current),We!==""&&(K.current=window.setTimeout(()=>Ne(""),1e3))})(Q),Me&&setTimeout(()=>Me.focus())};p.useEffect(()=>()=>window.clearTimeout(K.current),[]),Fp();const se=p.useCallback(Z=>{var te,U;return fe.current===((te=ne.current)===null||te===void 0?void 0:te.side)&&L6(Z,(U=ne.current)===null||U===void 0?void 0:U.area)},[]);return p.createElement(v6,{scope:n,searchRef:me,onItemEnter:p.useCallback(Z=>{se(Z)&&Z.preventDefault()},[se]),onItemLeave:p.useCallback(Z=>{var te;se(Z)||((te=V.current)===null||te===void 0||te.focus(),G(null))},[se]),onTriggerLeave:p.useCallback(Z=>{se(Z)&&Z.preventDefault()},[se]),pointerGraceTimerRef:ye,onPointerGraceIntentChange:p.useCallback(Z=>{ne.current=Z},[])},p.createElement(W,oe,p.createElement(Ip,{asChild:!0,trapped:o,onMountAutoFocus:rt(a,Z=>{var te;Z.preventDefault(),(te=V.current)===null||te===void 0||te.focus()}),onUnmountAutoFocus:i},p.createElement(cu,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:g,onInteractOutside:v,onDismiss:y},p.createElement(ox,xe({asChild:!0},P,{dir:E.dir,orientation:"vertical",loop:r,currentTabStopId:$,onCurrentTabStopIdChange:G,onEntryFocus:rt(u,Z=>{E.isUsingKeyboardRef.current||Z.preventDefault()})}),p.createElement(kp,xe({role:"menu","aria-orientation":"vertical","data-state":Ox(w.open),"data-radix-menu-content":"",dir:E.dir},j,h,{ref:J,style:{outline:"none",...h.style},onKeyDown:rt(h.onKeyDown,Z=>{const U=Z.target.closest("[data-radix-menu-content]")===Z.currentTarget,Q=Z.ctrlKey||Z.altKey||Z.metaKey,he=Z.key.length===1;U&&(Z.key==="Tab"&&Z.preventDefault(),!Q&&he&&pe(Z.key));const H=V.current;if(Z.target!==H||!l6.includes(Z.key))return;Z.preventDefault();const ae=N().filter(be=>!be.disabled).map(be=>be.ref.current);wx.includes(Z.key)&&ae.reverse(),O6(ae)}),onBlur:rt(e.onBlur,Z=>{Z.currentTarget.contains(Z.target)||(window.clearTimeout(K.current),me.current="")}),onPointerMove:rt(e.onPointerMove,hu(Z=>{const te=Z.target,U=R.current!==Z.clientX;if(Z.currentTarget.contains(te)&&U){const Q=Z.clientX>R.current?"right":"left";fe.current=Q,R.current=Z.clientX}}))})))))))}),C6=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.createElement(Et.div,xe({},r,{ref:t}))}),zp="MenuItem",Ix="menu.itemSelect",Up=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=p.useRef(null),i=pu(zp,e.__scopeMenu),s=Hp(zp,e.__scopeMenu),u=Jt(t,a),c=p.useRef(!1),d=()=>{const g=a.current;if(!n&&g){const v=new CustomEvent(Ix,{bubbles:!0,cancelable:!0});g.addEventListener(Ix,y=>r==null?void 0:r(y),{once:!0}),$g(g,v),v.defaultPrevented?c.current=!1:i.onClose()}};return p.createElement(Tx,xe({},o,{ref:u,disabled:n,onClick:rt(e.onClick,d),onPointerDown:g=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,g),c.current=!0},onPointerUp:rt(e.onPointerUp,g=>{var v;c.current||(v=g.currentTarget)===null||v===void 0||v.click()}),onKeyDown:rt(e.onKeyDown,g=>{const v=s.searchRef.current!=="";n||v&&g.key===" "||Wp.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})}))}),Tx=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Hp(zp,n),s=Sx(n),u=p.useRef(null),c=Jt(t,u),[d,g]=p.useState(!1),[v,y]=p.useState("");return p.useEffect(()=>{const C=u.current;if(C){var h;y(((h=C.textContent)!==null&&h!==void 0?h:"").trim())}},[a.children]),p.createElement(gu.ItemSlot,{scope:n,disabled:r,textValue:o??v},p.createElement(ax,xe({asChild:!0},s,{focusable:!r}),p.createElement(Et.div,xe({role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:c,onPointerMove:rt(e.onPointerMove,hu(C=>{r?i.onItemLeave(C):(i.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus())})),onPointerLeave:rt(e.onPointerLeave,hu(C=>i.onItemLeave(C))),onFocus:rt(e.onFocus,()=>g(!0)),onBlur:rt(e.onBlur,()=>g(!1))}))))}),w6=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.createElement(Px,{scope:e.__scopeMenu,checked:n},p.createElement(Up,xe({role:"menuitemcheckbox","aria-checked":Od(n)?"mixed":n},o,{ref:t,"data-state":Zp(n),onSelect:rt(o.onSelect,()=>r==null?void 0:r(Od(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),E6="MenuRadioGroup",[m_,S6]=gi(E6,{value:void 0,onValueChange:()=>{}}),D6="MenuRadioItem",F6=p.forwardRef((e,t)=>{const{value:n,...r}=e,o=S6(D6,e.__scopeMenu),a=n===o.value;return p.createElement(Px,{scope:e.__scopeMenu,checked:a},p.createElement(Up,xe({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Zp(a),onSelect:rt(r.onSelect,()=>{var i;return(i=o.onValueChange)===null||i===void 0?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})))}),kx="MenuItemIndicator",[Px,A6]=gi(kx,{checked:!1}),j6=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=A6(kx,n);return p.createElement(Kn,{present:r||Od(a.checked)||a.checked===!0},p.createElement(Et.span,xe({},o,{ref:t,"data-state":Zp(a.checked)})))}),I6=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.createElement(Et.div,xe({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Bx="MenuSub",[T6,Nx]=gi(Bx),k6=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Ia(Bx,t),i=Bd(t),[s,u]=p.useState(null),[c,d]=p.useState(null),g=Jn(o);return p.useEffect(()=>(a.open===!1&&g(!1),()=>g(!1)),[a.open,g]),p.createElement(wd,i,p.createElement(Dx,{scope:t,open:r,onOpenChange:g,content:c,onContentChange:d},p.createElement(T6,{scope:t,contentId:Ir(),triggerId:Ir(),trigger:s,onTriggerChange:u},n)))},Nd="MenuSubTrigger",P6=p.forwardRef((e,t)=>{const n=Ia(Nd,e.__scopeMenu),r=pu(Nd,e.__scopeMenu),o=Nx(Nd,e.__scopeMenu),a=Hp(Nd,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,c={__scopeMenu:e.__scopeMenu},d=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>d,[d]),p.useEffect(()=>{const g=s.current;return()=>{window.clearTimeout(g),u(null)}},[s,u]),p.createElement(Fx,xe({asChild:!0},c),p.createElement(Tx,xe({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ox(n.open)},e,{ref:Zc(t,o.onTriggerChange),onClick:g=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:rt(e.onPointerMove,hu(g=>{a.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:rt(e.onPointerLeave,hu(g=>{var v;d();const y=(v=n.content)===null||v===void 0?void 0:v.getBoundingClientRect();if(y){var C;const h=(C=n.content)===null||C===void 0?void 0:C.dataset.side,w=h==="right",E=w?-5:5,j=y[w?"left":"right"],P=y[w?"right":"left"];a.onPointerGraceIntentChange({area:[{x:g.clientX+E,y:g.clientY},{x:j,y:y.top},{x:P,y:y.top},{x:P,y:y.bottom},{x:j,y:y.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(g),g.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:rt(e.onKeyDown,g=>{const v=a.searchRef.current!=="";if(!(e.disabled||v&&g.key===" ")&&u6[r.dir].includes(g.key)){var y;n.onOpenChange(!0),(y=n.content)===null||y===void 0||y.focus(),g.preventDefault()}})})))}),B6="MenuSubContent",N6=p.forwardRef((e,t)=>{const n=jx(oo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Ia(oo,e.__scopeMenu),i=pu(oo,e.__scopeMenu),s=Nx(B6,e.__scopeMenu),u=p.useRef(null),c=Jt(t,u);return p.createElement(gu.Provider,{scope:e.__scopeMenu},p.createElement(Kn,{present:r||a.open},p.createElement(gu.Slot,{scope:e.__scopeMenu},p.createElement(Gp,xe({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var g;i.isUsingKeyboardRef.current&&((g=u.current)===null||g===void 0||g.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:rt(e.onFocusOutside,d=>{d.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:rt(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:rt(e.onKeyDown,d=>{const g=d.currentTarget.contains(d.target),v=c6[i.dir].includes(d.key);if(g&&v){var y;a.onOpenChange(!1),(y=s.trigger)===null||y===void 0||y.focus(),d.preventDefault()}})})))))});function Ox(e){return e?"open":"closed"}function Od(e){return e==="indeterminate"}function Zp(e){return Od(e)?"indeterminate":e?"checked":"unchecked"}function O6(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $6(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function R6(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=$6(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const u=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function M6(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,u=t[a].y,c=t[i].x,d=t[i].y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(o=!o)}return o}function L6(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return M6(n,t)}function hu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const _6=p6,V6=Fx,W6=m6,H6=b6,G6=C6,z6=Up,U6=w6,Z6=F6,X6=j6,Y6=I6,J6=k6,K6=P6,Q6=N6,$x="DropdownMenu",[q6,v_]=cr($x,[Ex]),Tr=Ex(),[ej,Rx]=q6($x),tj=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,u=Tr(t),c=p.useRef(null),[d=!1,g]=jr({prop:o,defaultProp:a,onChange:i});return p.createElement(ej,{scope:t,triggerId:Ir(),triggerRef:c,contentId:Ir(),open:d,onOpenChange:g,onOpenToggle:p.useCallback(()=>g(v=>!v),[g]),modal:s},p.createElement(_6,xe({},u,{open:d,onOpenChange:g,dir:r,modal:s}),n))},nj="DropdownMenuTrigger",rj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Rx(nj,n),i=Tr(n);return p.createElement(V6,xe({asChild:!0},i),p.createElement(Et.button,xe({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Zc(t,a.triggerRef),onPointerDown:rt(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:rt(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),oj=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Tr(t);return p.createElement(W6,xe({},r,n))},aj="DropdownMenuContent",ij=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rx(aj,n),a=Tr(n),i=p.useRef(!1);return p.createElement(H6,xe({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:rt(e.onCloseAutoFocus,s=>{var u;i.current||(u=o.triggerRef.current)===null||u===void 0||u.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:rt(e.onInteractOutside,s=>{const u=s.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,d=u.button===2||c;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),sj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(G6,xe({},o,r,{ref:t}))}),lj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(z6,xe({},o,r,{ref:t}))}),uj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(U6,xe({},o,r,{ref:t}))}),cj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(Z6,xe({},o,r,{ref:t}))}),dj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(X6,xe({},o,r,{ref:t}))}),fj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(Y6,xe({},o,r,{ref:t}))}),gj=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=Tr(t),[s=!1,u]=jr({prop:r,defaultProp:a,onChange:o});return p.createElement(J6,xe({},i,{open:s,onOpenChange:u}),n)},pj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(K6,xe({},o,r,{ref:t}))}),hj=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Tr(n);return p.createElement(Q6,xe({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),mj=tj,vj=rj,Mx=oj,Lx=ij,_x=sj,Vx=lj,Wx=uj,Hx=cj,Gx=dj,zx=fj,bj=gj,Ux=pj,Zx=hj,xj=mj,yj=vj,Xx=Mx,Cj=bj,Yx=q.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(Ux,{ref:o,className:Te("flex cursor-default select-none items-center justify-between rounded-sm px-2 py-3 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[l.jsx("div",{className:"flex flex-row items-center gap-2",children:n})," ",l.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",className:Te(r.dir==="rtl"?"rotate-180":""),children:l.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]}));Yx.displayName=Ux.displayName;const Jx=q.forwardRef(({className:e,...t},n)=>l.jsx(Zx,{ref:n,className:Te("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Jx.displayName=Zx.displayName;const Kx=q.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(Mx,{children:l.jsx(Lx,{ref:r,sideOffset:t,className:Te("z-50 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Kx.displayName=Lx.displayName;const Xp=q.forwardRef(({className:e,inset:t,...n},r)=>l.jsxs(Vx,{disabled:n.disabled,ref:r,className:Te("relative flex cursor-pointer select-none items-center justify-between rounded-sm text-sm outline-none transition-colors focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n,children:[l.jsx("div",{className:"flex flex-row items-center gap-2 ",children:n.children}),n.end&&n.end]}));Xp.displayName=Vx.displayName;const wj=q.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(Wx,{ref:o,className:Te("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsxs(Gx,{children:[l.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:l.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})," "]})}),t]}));wj.displayName=Wx.displayName;const Ej=q.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Hx,{ref:r,className:Te("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Gx,{children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24","aria-label":"Circle",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:l.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));Ej.displayName=Hx.displayName;const Qx=q.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(_x,{ref:r,className:Te("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Qx.displayName=_x.displayName;const qx=q.forwardRef(({className:e,...t},n)=>l.jsx(zx,{ref:n,className:Te("-mx-1 my-1 h-px bg-muted",e),...t}));qx.displayName=zx.displayName;const pi=({trigger:e,items:t,direction:n,sideOffset:r,side:o,className:a,triggerClassname:i,align:s,alignOffset:u,onItemSelect:c,size:d="default",width:g="default"})=>{const v={default:"min-w-[8rem]",sm:"w-fit",lg:"w-[200px]",parent:"ddm-w-parent"},y={default:"px-2 py-3 ",sm:"text-xs px-1.5 py-1.5"};return l.jsxs(xj,{dir:n,children:[l.jsx(yj,{asChild:!0,className:i,children:e}),l.jsx(Xx,{children:l.jsx(Kx,{side:o,sideOffset:r,className:Te(a,v[g],"flex flex-col gap-2"),align:s,alignOffset:u,children:t.map((C,h)=>C.type==="separator"?l.jsx(qx,{},h):C.type==="label"?l.jsx(Qx,{children:C.label},h):C.subitems?l.jsxs(Cj,{children:[l.jsxs(Yx,{className:Te(y[d]),dir:n,children:[C.icon&&C.icon,C.label&&C.label]}),l.jsx(Xx,{children:l.jsx(Jx,{children:C.subitems.map((w,E)=>l.jsxs(Xp,{className:Te(y[d],!C.icon&&!C.label?"px-0 py-0 focus:bg-transparent":"focus:bg-accent"),disabled:w.disabled,onSelect:()=>{w.action(),c&&c(w.value)},children:[w.icon&&w.icon,w.label&&w.label]},E))})})]},h):l.jsxs(Xp,{disabled:C.disabled,onSelect:w=>{C.presist&&w.preventDefault(),C.action&&C.action(),c&&c(C.value)},end:C.end,className:Te(y[d],!C.icon&&!C.label?"px-0 py-0 focus:bg-transparent ":"focus:bg-accent ",C.presist&&"focus:bg-transparent"),children:[C.icon&&C.icon,C.label&&C.label]},h))})})]})},ey=()=>l.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})}),ty=({size:e="normal",bodyColor:t="white",headerColor:n="gray-200",borders:r="all",highlightFirst:o=!1,direction:a="ltr",bordersWidth:i="1",pagination:s=!0,onRowClicked:u,clickable:c,...d})=>{var fe,R,W,oe,pe,se,Z,te;const[g,v]=p.useState(10),[y,C]=p.useState(null),[h,w]=p.useState(1);p.useState(null);const[E,j]=p.useState(d.rows),[P,N]=p.useState(null),[$,G]=p.useState(null),{slice:V,range:J}=Rb(d.rows,h,g,P,$);let K=a==="rtl",me={normal:"py-3 px-6",small:"px-3 py-1"};const ye=(U,Q)=>{Q&&(N(U),G(he=>he==="asc"?"desc":"asc"))},ne=()=>{(V==null?void 0:V.length)<1&&h!==1&&w(h-1),y&&w(y)};return p.useEffect(()=>{ne()},[V,h]),l.jsxs("div",{className:"relative flex flex-col gap-2 ",children:[d.isLoading?l.jsx(Eo,{className:"h-[105px] w-full"}):l.jsx(l.Fragment,{children:l.jsxs("div",{className:`overflow-x-auto rounded bg-${n}`,children:[d.headerTools&&l.jsx("div",{className:"flex flex-row items-center justify-between gap-2 border bg-background px-2 py-2",children:d.headerTools}),l.jsxs("table",{className:Te("w-full rounded bg-muted text-left text-sm text-muted-foreground",`bg-${n}`),children:[l.jsx("thead",{className:Te("bg-muted text-xs uppercase text-muted-foreground ",r==="rows"||r==="all"||r==="inner"?"border-b ":""),children:l.jsxs("tr",{children:[d.columns.map((U,Q)=>{if(!U.hidden)return l.jsxs("th",{onClick:()=>U.sortable&&ye(Q,U.sortable),scope:"col",colSpan:2,className:Te(U.sortable&&"cursor-pointer hover:bg-muted-foreground/10",me[e],Q!==0&&(r==="cols"||r==="all"||r==="inner")&&`border-r border-r-[${i}px] border-l border-l-[${i}px]`),children:[U.value,P===Q&&l.jsx("span",{children:$==="asc"?" ▲":" ▼"})]},Q)}),d.actions?l.jsx("th",{scope:"col",className:Te(me[e],"w-[calc(1%)] text-center"),children:((fe=d.texts)==null?void 0:fe.actions)??"Actions"}):null]})}),l.jsx("tbody",{className:t&&d.rows?`bg-${t}`:"bg-transparent",children:E?V==null?void 0:V.map((U,Q)=>{let he=Q==(V==null?void 0:V.length)-1;return l.jsxs("tr",{className:Te(" text-mute-foreground border bg-background ",c?"transition-all hover:bg-gray-100":"",!he&&(r==="all"||r==="rows"||r==="inner")&&`border-b border-b-[${i}px]`),onClick:H=>u(U),children:[U==null?void 0:U.map((H,ge)=>{let ae=ge===0,be=ge===(U==null?void 0:U.length)-1,Me=K&&he&&be&&!d.actions,Ne=K&&he&&ae,We=!K&&he&&ae,Ke=!K&&he&&be&&!d.actions;if(!H.hidden)return l.jsxs("td",{colSpan:2,className:Te(me[e],o&&ae?"font-bold":"font-normal",Ne?"rounded-bl-none rounded-br":Me||We?"rounded-bl rounded-br-none":Ke?"rounded-bl-none rounded-br":"",!ae&&!be&&(r==="cols"||r==="inner"||r==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:!ae&&d.actions&&(r==="cols"||r==="inner"||r==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:""),children:[H.value," ",H.suffix&&H.suffix]},ge)}),d.actions&&l.jsx("td",{align:K?"right":"left",className:Te(K&&he&&"rounded-bl rounded-br-none",!K&&he&&"rounded-bl-none rounded-br"),colSpan:1,children:l.jsx("div",{className:"flex items-center justify-center",children:l.jsx(pi,{width:d.actionsWidth,size:d.actionsSize,direction:a,side:"right",items:d.actions,onItemSelect:H=>d.handleActionClick(H,U),trigger:l.jsx("div",{className:"flex w-fit cursor-pointer items-center justify-center rounded p-2 transition-all hover:bg-primary/20 ",children:l.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})})})]},Q)}):l.jsx("tr",{className:"bg-transparent",children:l.jsx("td",{colSpan:20,children:l.jsx("div",{className:Te("w-full rounded-b border bg-background p-5 text-center"),children:((R=d.texts)==null?void 0:R.noData)??"No Data"})})})})]})]})}),s&&!d.isLoading&&l.jsxs("div",{className:"flex flex-row items-center justify-between ",children:[J.length>1?l.jsxs("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded ",children:[l.jsx("div",{className:Te("flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",a==="rtl"&&"rotate-0"),onClick:()=>h<=1?w(J.length):w(h-1),children:l.jsx(ey,{})}),l.jsxs("div",{className:"flex flex-row items-center overflow-clip rounded transition-all",children:[J.length>6&&J.map((U,Q)=>{if(Q<=0)return l.jsx("button",{className:Te("w-10 p-1 text-xs hover:bg-gray-200",h===U?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>w(U),children:U},Q)}),(J==null?void 0:J.length)>6&&l.jsx("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:h!==0||h!==J.length-1?h:"...",value:h==1||h==J.length?"...":y||h,onChange:U=>C(parseInt(U.target.value)),onKeyDown:U=>{U.key==="Enter"&&(w(y),C(null))}}),(J==null?void 0:J.length)>6&&J.map((U,Q)=>{if(Q>=J.length-1)return l.jsx("button",{className:Te("w-10 p-1 text-xs hover:bg-gray-200",h===U?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>w(U),children:U},Q)}),(J==null?void 0:J.length)<=6&&J.map((U,Q)=>l.jsx("button",{className:Te("w-10 p-1 text-xs",h===U?"bg-primary text-primary-foreground ":"border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",a==="rtl"?Q===0?"rounded-r border-l-0":Q===J.length-1?"rounded-l border-r-0":"":Q===0?"rounded-l border-r-0":Q===J.length-1?"rounded-r border-l-0":""),onClick:()=>w(U),children:U},Q))]}),l.jsx("div",{onClick:()=>h>=J.length?w(1):w(h+1),className:Te("flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",a==="rtl"&&"rotate-180"),children:l.jsx(ey,{})})]}):l.jsx("div",{}),d.rows?l.jsxs("div",{className:"flex w-fit flex-row items-center gap-2 ",children:[l.jsxs("div",{className:"text-xs ",children:[d.rows.length," ",((W=d.texts)==null?void 0:W.items)??"Items"]}),l.jsxs("select",{value:g,className:"h-6 cursor-pointer rounded border bg-background px-2 text-xs",onChange:U=>{v(parseInt(U.target.value))},children:[l.jsxs("option",{value:10,style:{fontSize:10},children:["10 / ",((oe=d.texts)==null?void 0:oe.page)??"Page"]}),l.jsxs("option",{value:20,style:{fontSize:10},children:["20 / ",((pe=d.texts)==null?void 0:pe.page)??"Page"]}),l.jsxs("option",{value:30,style:{fontSize:10},children:["30 / ",((se=d.texts)==null?void 0:se.page)??"Page"]}),l.jsxs("option",{value:50,style:{fontSize:10},children:["50 / ",((Z=d.texts)==null?void 0:Z.page)??"Page"]}),l.jsxs("option",{value:100,style:{fontSize:10},children:["100 / ",((te=d.texts)==null?void 0:te.page)??"Page"]})]})]}):l.jsx("div",{})]})]})},Sj=e=>l.jsx(Ot,{type:"search",...e}),Dj=e=>{const[t,n]=p.useState(!1);return l.jsxs("div",{className:"h-fit w-full",children:[l.jsxs("button",{id:"accordion-collapse-heading-"+e.index,type:"button",className:_e(t?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:()=>n(!t),"data-accordion-target":"#accordion-collapse-body-"+e.index,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.index,children:[l.jsx("span",{children:e.title}),l.jsx("svg",{"data-accordion-icon":"",className:`h-6 w-6 ${t?"":"rotate-180"} shrink-0 transition-all`,fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),l.jsx("div",{id:"accordion-collapse-body-"+e.index,"aria-labelledby":"accordion-collapse-heading-"+e.index,className:_e(t?"invisible hidden h-0 p-0":"visible h-full","w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"),children:l.jsx("p",{className:"mb-2 text-gray-500 dark:text-gray-400",children:e.content})})]})},ny=[{country_label:"Saudi Arabia",code:"SA",unicode:"🇸🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"🇦🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"🇧🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"🇰🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"🇶🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"🇴🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"🇦🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"🇦🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"🇦🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"🇦🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"🇦🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"🇦🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"🇦🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"🇦🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"🇦🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"🇦🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"🇦🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"🇦🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"🇦🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"🇦🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"🇦🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"🇧🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"🇧🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"🇧🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"🇧🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"🇧🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"🇧🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"🇧🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"🇧🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"🇧🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"🇧🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"🇧🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"🇧🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"🇧🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"🇧🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"🇧🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"🇧🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"🇧🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"🇧🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"🇨🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"🇨🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"🇨🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"🇨🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"🇨🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"🇨🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"🇨🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"🇨🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"🇨🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"🇨🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"🇨🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"🇨🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"🇨🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"🇨🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"🇨🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"🇨🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"🇨🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"🇨🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"🇩🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"🇩🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"🇩🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"🇩🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"🇩🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"🇩🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"🇪🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"🇪🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"🇪🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"🇪🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"🇪🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"🇪🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"🇫🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"🇫🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"🇫🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"🇫🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"🇫🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"🇫🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"🇬🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"🇬🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"🇬🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"🇬🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"🇬🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"🇬🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"🇬🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"🇬🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"🇬🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"🇬🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"🇬🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"🇬🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"🇬🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"🇬🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"🇬🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"🇬🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"🇬🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"🇬🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"🇬🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"🇭🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"🇭🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"🇭🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"🇭🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"🇭🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"🇮🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"🇮🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"🇮🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"🇮🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"🇮🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"🇮🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"🇮🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"🇮🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"🇮🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"🇮🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"🇯🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"🇯🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"🇯🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"🇯🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"🇰🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"🇰🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"🇰🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"🇰🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"🇰🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"🇰🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"🇰🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"🇰🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"🇰🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"🇰🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"🇱🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"🇱🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"🇱🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"🇱🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"🇱🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"🇱🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"🇱🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"🇱🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"🇱🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"🇱🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"🇱🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"🇲🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"🇲🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"🇲🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"🇲🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"🇲🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"🇲🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"🇲🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"🇲🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"🇲🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"🇲🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"🇲🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"🇲🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"🇲🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"🇲🇶",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"🇲🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"🇲🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"🇲🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"🇲🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"🇲🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"🇲🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"🇲🇽",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"🇲🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"🇲🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"🇳🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"🇳🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"🇳🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"🇳🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"🇳🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"🇳🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"🇳🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"🇳🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"🇳🇵",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"🇳🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"🇳🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"🇳🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"🇵🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"🇵🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"🇵🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"🇵🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"🇵🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"🇵🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"🇵🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"🇵🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"🇵🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"🇵🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"🇵🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"🇵🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"🇵🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"🇵🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"🇷🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"🇷🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"🇷🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"🇷🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"🇷🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"🇸🇧",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"🇸🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"🇸🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"🇸🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"🇸🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"🇸🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"🇸🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"🇸🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"🇸🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"🇸🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"🇸🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"🇸🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"🇸🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"🇸🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"🇸🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"🇸🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"🇸🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"🇸🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"🇸🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"🇹🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"🇹🇩",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"🇹🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"🇹🇭",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"🇹🇯",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"🇹🇰",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"🇹🇱",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"🇹🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"🇹🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"🇹🇴",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"🇹🇷",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"🇹🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"🇹🇻",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"🇹🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"🇹🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"🇺🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"🇺🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"🇺🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"🇺🇾",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"🇺🇿",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"🇻🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"🇻🇨",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"🇻🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"🇻🇬",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"🇻🇮",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"🇻🇳",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"🇻🇺",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"🇼🇫",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"🇼🇸",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"🇾🇪",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"🇾🇹",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"🇿🇦",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"🇿🇲",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"🇿🇼",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}],Fj=({cx:e,children:t,getStyles:n,innerProps:r,innerRef:o,...a})=>l.jsx("div",{className:"absolute z-50 w-[190px] rounded border bg-background",ref:o,...r,children:t}),Aj=({cx:e,children:t,getStyles:n,innerProps:r,innerRef:o,...a})=>l.jsxs("div",{ref:o,className:"m-2 flex cursor-pointer flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...r,children:[l.jsxs("div",{className:"flex flex-row items-center justify-center gap-1",children:[l.jsx("img",{className:"h-8 w-8",src:a.data.image}),l.jsx("span",{className:"text-[10px]",children:a.data.country_label})]}),t]}),$d=e=>{const[t,n]=p.useState("+966");return l.jsxs("div",{className:"mb-3 flex flex-col",children:[e.label&&l.jsx("label",{className:"mb-2 block text-sm font-medium",children:e.label}),l.jsxs("div",{dir:"ltr",className:"flex flex-row ",children:[l.jsx(Tb,{classNames:{control:()=>"w-[64px] text-right pr-2 cursor-pointer z-10 border rounded-l bg-background",placeholder:r=>"text-muted-foreground text-right ",input:r=>"bg-transparent cursor-pointer dark:text-white p-2 rounded-l text-[0.875rem] ",valueContainer:()=>"rounded-l h-auto text-[0.875rem]"},styles:{placeholder:r=>({...r,fontSize:"0.875rem",textAlign:"right"})},components:{Option:Aj,Menu:Fj,DropdownIndicator:()=>null,IndicatorSeparator:()=>null},options:ny,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",unstyled:!0,defaultValue:e.preferredCountry,value:t,onChange:(r,o)=>n(r)}),l.jsx("input",{onChange:e.handleChange,type:"number",placeholder:"531045453",className:"block w-full rounded-r border bg-background p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500"}),e.helperText&&l.jsx("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500",children:e.helperText})]})]})},jj=({orientation:e="horizontal",direction:t="ltr",width:n="normal",marginBetween:r=0,pill:o=!1,...a})=>{var y,C;const[i,s]=p.useState((y=a.options[0])==null?void 0:y.value);let u={vertical:"inline-block py-2 px-4 text-white bg-primary active",horizontal:"inline-block py-2 px-4 text-white bg-primary active"},c={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"},d={full:"w-full min-w-full",normal:"w-fit"},g={vertical:"flex flex-row",horizontal:"flex flex-col"},v={vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-primary bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-primary text-center text-sm font-medium text-gray-500 dark:text-gray-400"};return l.jsxs("div",{dir:t,className:Te(g[e],a.options[i]?"border-b-2":"border-b-0"),children:[l.jsx("ul",{className:Te("w-full border-primary",r?e==="vertical"?"mb-0":"mb-"+r:"",r&&t==="rtl"?"ml-"+r:"mr-"+r,v[e],e==="horizontal"?"grid grid-cols-3 gap-1 sm:flex sm:flex-row sm:gap-0 ":"",d[n],o?"gap-0.5 rounded border-none bg-gray-100 p-0.5":e==="vertical"?t==="rtl"?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-0 sm:border-b-2"),children:(C=a.options)==null?void 0:C.map((h,w)=>l.jsxs("button",{"aria-current":"page",onClick:()=>{s(h.value),a==null||a.onChangeTab(h)},className:Te(h.value===i?[u[e],t==="rtl"?"rounded-r":"rounded-l"]:c[e],o?"rounded":e==="vertical"?"rounded rounded-bl-none rounded-tl-none":"rounded sm:rounded-b-none","flex w-fit flex-row items-center gap-2 transition-all "),children:[h.icon,h.label]},w))}),l.jsx("div",{className:"flex-1 transition-all",children:a.options.map((h,w)=>l.jsx("div",{className:Te(i===h.value?"":"hidden"),children:h.content},w))})]})},Ij=({open:e,title:t,onClose:n,closeOnClickOutside:r=!0,...o})=>{let a="absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all";return p.useEffect(()=>(r&&e&&(window.onclick=i=>{i.stopPropagation(),n()}),()=>window.onclick=null),[e]),l.jsxs("div",{className:_e(a,e?"z-10 opacity-100 ":"invisible -z-10 opacity-0"),children:[l.jsx("div",{className:_e("absolute h-screen w-full bg-gray-500 opacity-50",e?"opacity-50":"opacity-0")}),l.jsxs("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700",children:[l.jsxs("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600",children:[l.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:t}),l.jsxs("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:i=>{n()},children:[l.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),l.jsx("span",{className:"sr-only",children:"Close modal"})]})]}),l.jsx("div",{className:"space-y-6 p-3",children:o.children}),l.jsx("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600",children:o.actions})]})]})},Rd=({menuItems:e,withHeader:t,direction:n="ltr",headerTitle:r,headerSubtitle:o,size:a="normal",children:i,onClickOutside:s,actionedItem:u,position:c="top-right"})=>{const[d,g]=p.useState(!1),v=p.useRef(null),[y,C]=p.useState(null),[h,w]=p.useState(null),E=p.useRef(null),[j,P]=p.useState(null),[N,$]=p.useState(null);p.useEffect(()=>{var ye,ne,fe,R;$((ye=E.current)==null?void 0:ye.getBoundingClientRect().height),P((ne=E.current)==null?void 0:ne.getBoundingClientRect().width),C((fe=v.current)==null?void 0:fe.getBoundingClientRect().height),w((R=v.current)==null?void 0:R.getBoundingClientRect().width);const me=W=>{E.current&&!E.current.contains(W.target)&&g(!1)};return document.addEventListener("click",me,!0),()=>{document.removeEventListener("click",me,!0)}},[s]);let G="border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",V={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""},J,K=5;switch(c){case"top-right":J=n==="rtl"?`${j-h}px, -${N+y+K}px`:`0px, -${N+y+K}px`;break;case"top-left":J=n==="rtl"?`0px, -${N+y+K}px`:`-${j-h}px, -${N+y+K}px`;break;case"bottom-right":J=n==="rtl"?`-0px, ${K}px`:`-${h-j}px, ${K}px`;break;case"bottom-left":J=n==="rtl"?`0px, ${K}px`:`-${j-h}px,${K}px`;break;case"right-bottom":J=n==="rtl"?`${j+K}px, -${y}px`:`${h+K}px, -${y}px`;break;case"right-top":J=n==="rtl"?`${j+K}px, -${N}px`:`${h+K}px, -${N}px`;break;case"left-bottom":J=n==="rtl"?`-${h+K}px, -${y}px`:`-${j+K}px, -${y}px`;break;case"left-top":J=n==="rtl"?`-${h+K}px, -${N}px`:`-${j+K}px, -${N}px`;break;default:J=`-${j/2}px, -${y+N/2}px`;break}return l.jsxs("div",{onClick:()=>{g(!d)},children:[l.jsx("div",{ref:v,children:i}),l.jsxs("div",{ref:E,style:{position:"absolute",width:"max-content",transform:`translate(${J})`,maxWidth:"200px"},className:_e(G,d?"opacity-100":"invisible opacity-0"),children:[t&&l.jsxs("div",{className:"px-4 py-3 text-xs text-gray-900 dark:text-white",children:[l.jsx("div",{children:r}),l.jsx("div",{className:"truncate font-medium",children:o})]}),e==null?void 0:e.map((me,ye)=>l.jsx("ul",{className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200",children:me==null?void 0:me.map((ne,fe)=>ne.element?l.jsx("li",{className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white",children:ne.element},fe):l.jsxs("li",{onClick:()=>{ne.disabled?console.log("button is disabled"):ne==null||ne.action(u)},className:_e("transition-all",ne.isButton?"flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse":ne.disabled?"text-gray-300":" flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",V[a]),children:[ne.icon&&l.jsx("div",{className:a==="small"?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2",children:ne.icon}),ne.label]},fe))},ye))]})]})},Tj=e=>l.jsxs("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400",children:[e.withLogo?l.jsx("a",{href:e.onLogoClicked,children:l.jsx("div",{className:"cursor-pointer",children:l.jsx("image",{href:e.logoURL,width:100,height:50})})}):null,l.jsx("div",{children:e.version}),e.credits?e.credits:null]}),kj=({orientation:e="horizontal",...t})=>{let n={vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"};return l.jsx("div",{className:_e(n[e]," flex-wrap justify-start gap-4"),children:t.steps.map((r,o)=>l.jsx("div",{className:"my-2 flex w-auto flex-row flex-wrap justify-start ",children:l.jsx("div",{className:e==="vertical"?"flex w-full flex-row items-center":o+1===t.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10",children:l.jsxs("div",{className:"flex flex-row gap-2 ",children:[l.jsx("div",{className:_e("flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-primary/20 ring-offset-2",o+1<=t.currentStep?"bg-primary text-primary-foreground ":"bg-primary/20"),children:o+1<=t.currentStep?l.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:l.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})}):o+1}),l.jsx("div",{className:"whitespace-nowrap",children:r})]})})},o))})},Ut=q.forwardRef(({className:e,clickable:t=!1,...n},r)=>l.jsx("div",{ref:r,className:Te("rounded-lg border bg-card text-card-foreground shadow-sm",t&&"cursor-pointer transition-all hover:drop-shadow-md dark:hover:shadow-dark",e),...n}));Ut.displayName="Card";const jo=q.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Te("flex flex-col space-y-1.5 p-6",e),...t}));jo.displayName="CardHeader";const Io=q.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:Te("text-2xl font-semibold leading-none tracking-tight",e),...t}));Io.displayName="CardTitle";const hi=q.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:Te("text-sm text-muted-foreground",e),...t}));hi.displayName="CardDescription";const Lt=q.forwardRef(({headless:e,className:t,...n},r)=>l.jsx("div",{ref:r,className:Te("p-6",e?"pt-6":"pt-0",t),...n}));Lt.displayName="CardContent";const kr=q.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Te("flex items-center p-6 pt-0",e),...t}));kr.displayName="CardFooter";const Pj=({variant:e="default",...t})=>l.jsxs(Ut,{onClick:t.handleClick,clickable:!!t.handleClick,children:[l.jsxs(jo,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l.jsx(Io,{className:"text-sm font-medium",children:t.label}),t.icon&&t.icon]}),l.jsxs(Lt,{children:[t.isLoading?l.jsx(Eo,{className:"h-8 w-3/4"}):l.jsx("div",{className:"text-2xl font-bold",children:t.number}),t.isLoading&&t.helperText?l.jsx(Eo,{className:"mt-2 h-4 w-1/2"}):t.helperText&&l.jsx("p",{className:"text-xs text-muted-foreground",children:t.helperText}),t.isLoading&&t.chart?l.jsx(Eo,{className:"mt-2 h-4 w-1/2"}):t.chart]})]}),Yp=p.forwardRef((e,t)=>p.createElement(Et.span,xe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Bj=Yp,[Md,x_]=cr("Tooltip",[Es]),Ld=Es(),Nj="TooltipProvider",Oj=700,Jp="tooltip.open",[$j,Kp]=Md(Nj),Rj=e=>{const{__scopeTooltip:t,delayDuration:n=Oj,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=p.useState(!0),u=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),p.createElement($j,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:p.useCallback(d=>{u.current=d},[]),disableHoverableContent:o},a)},Qp="Tooltip",[Mj,_d]=Md(Qp),Lj=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,u=Kp(Qp,e.__scopeTooltip),c=Ld(t),[d,g]=p.useState(null),v=Ir(),y=p.useRef(0),C=i??u.disableHoverableContent,h=s??u.delayDuration,w=p.useRef(!1),[E=!1,j]=jr({prop:r,defaultProp:o,onChange:V=>{V?(u.onOpen(),document.dispatchEvent(new CustomEvent(Jp))):u.onClose(),a==null||a(V)}}),P=p.useMemo(()=>E?w.current?"delayed-open":"instant-open":"closed",[E]),N=p.useCallback(()=>{window.clearTimeout(y.current),w.current=!1,j(!0)},[j]),$=p.useCallback(()=>{window.clearTimeout(y.current),j(!1)},[j]),G=p.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{w.current=!0,j(!0)},h)},[h,j]);return p.useEffect(()=>()=>window.clearTimeout(y.current),[]),p.createElement(wd,c,p.createElement(Mj,{scope:t,contentId:v,open:E,stateAttribute:P,trigger:d,onTriggerChange:g,onTriggerEnter:p.useCallback(()=>{u.isOpenDelayed?G():N()},[u.isOpenDelayed,G,N]),onTriggerLeave:p.useCallback(()=>{C?$():window.clearTimeout(y.current)},[$,C]),onOpen:N,onClose:$,disableHoverableContent:C},n))},ry="TooltipTrigger",_j=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=_d(ry,n),a=Kp(ry,n),i=Ld(n),s=p.useRef(null),u=Jt(t,s,o.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),g=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),p.createElement(Tp,xe({asChild:!0},i),p.createElement(Et.button,xe({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:u,onPointerMove:rt(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:rt(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:rt(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:rt(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:rt(e.onBlur,o.onClose),onClick:rt(e.onClick,o.onClose)})))}),Vj="TooltipPortal",[y_,Wj]=Md(Vj,{forceMount:void 0}),mu="TooltipContent",Hj=p.forwardRef((e,t)=>{const n=Wj(mu,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=_d(mu,e.__scopeTooltip);return p.createElement(Kn,{present:r||i.open},i.disableHoverableContent?p.createElement(oy,xe({side:o},a,{ref:t})):p.createElement(Gj,xe({side:o},a,{ref:t})))}),Gj=p.forwardRef((e,t)=>{const n=_d(mu,e.__scopeTooltip),r=Kp(mu,e.__scopeTooltip),o=p.useRef(null),a=Jt(t,o),[i,s]=p.useState(null),{trigger:u,onClose:c}=n,d=o.current,{onPointerInTransitChange:g}=r,v=p.useCallback(()=>{s(null),g(!1)},[g]),y=p.useCallback((C,h)=>{const w=C.currentTarget,E={x:C.clientX,y:C.clientY},j=Yj(E,w.getBoundingClientRect()),P=Jj(E,j),N=Kj(h.getBoundingClientRect()),$=qj([...P,...N]);s($),g(!0)},[g]);return p.useEffect(()=>()=>v(),[v]),p.useEffect(()=>{if(u&&d){const C=w=>y(w,d),h=w=>y(w,u);return u.addEventListener("pointerleave",C),d.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",h)}}},[u,d,y,v]),p.useEffect(()=>{if(i){const C=h=>{const w=h.target,E={x:h.clientX,y:h.clientY},j=(u==null?void 0:u.contains(w))||(d==null?void 0:d.contains(w)),P=!Qj(E,i);j?v():P&&(v(),c())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[u,d,i,c,v]),p.createElement(oy,xe({},e,{ref:a}))}),[zj,Uj]=Md(Qp,{isInside:!1}),oy=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,u=_d(mu,n),c=Ld(n),{onClose:d}=u;return p.useEffect(()=>(document.addEventListener(Jp,d),()=>document.removeEventListener(Jp,d)),[d]),p.useEffect(()=>{if(u.trigger){const g=v=>{const y=v.target;y!=null&&y.contains(u.trigger)&&d()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[u.trigger,d]),p.createElement(cu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:g=>g.preventDefault(),onDismiss:d},p.createElement(kp,xe({"data-state":u.stateAttribute},c,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(_0,null,r),p.createElement(zj,{scope:n,isInside:!0},p.createElement(Bj,{id:u.contentId,role:"tooltip"},o||r))))}),Zj="TooltipArrow",Xj=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ld(n);return Uj(Zj,n).isInside?null:p.createElement(dA,xe({},o,r,{ref:t}))});function Yj(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Jj(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Kj(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Qj(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,u=t[a].y,c=t[i].x,d=t[i].y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(o=!o)}return o}function qj(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),e7(t)}function e7(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const t7=Lj,n7=_j,ay=Hj,iy=Xj,sy=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(ay,{ref:r,sideOffset:t,className:Te("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));sy.displayName=ay.displayName;const r7=p.forwardRef(({className:e,...t},n)=>l.jsx(iy,{ref:n,className:Te(e),...t}));r7.displayName=iy.displayName;const Is=({side:e,open:t,content:n,children:r,defaultOpen:o,onOpenChange:a,delayDuration:i=300,...s})=>l.jsx(Rj,{delayDuration:i,children:l.jsxs(t7,{open:t,defaultOpen:o,onOpenChange:a,children:[l.jsx(n7,{asChild:!0,children:r}),l.jsx(sy,{side:e,align:"center",...s,children:n})]})});function ly({timeout:e=2e3}={}){const[t,n]=p.useState(null),[r,o]=p.useState(!1),[a,i]=p.useState(null),s=d=>{clearTimeout(a),i(setTimeout(()=>o(!1),e)),o(d)};return{copy:d=>{"clipboard"in navigator?navigator.clipboard.writeText(d).then(()=>s(!0)).catch(g=>n(g)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{o(!1),n(null),clearTimeout(a)},error:t,copied:r}}const o7=({tabs:e,code:t,fileName:n,width:r="full"})=>{const o=ly(),[a,i]=p.useState(0);let s={full:"w-full",md:"w-full max-w-md",sm:"w-full max-w-sm",xs:"w-full max-w-xs"};return l.jsxs("div",{className:Te(s[r],"w-full flex-col items-center rounded bg-gray-200 text-left text-sm text-white dark:bg-gray-800 sm:text-base"),children:[e&&l.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:e.map((u,c)=>l.jsx("div",{className:Te(a===c?" border-b-2 border-primary":"bg-transparent"),children:l.jsx("div",{onClick:()=>i(c),className:Te("mb-1 w-full max-w-[52px] cursor-pointer rounded-inner p-2 py-1 text-center text-[0.75rem] hover:bg-gray-300 dark:hover:bg-gray-500"),children:u.title})}))}),n&&l.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:l.jsx("div",{className:Te("mb-1 w-full max-w-[52px] rounded-inner p-2 py-1 text-center text-[0.75rem]"),children:n})}),l.jsx("pre",{children:l.jsxs("code",{className:Te("relative flex w-full flex-row items-start justify-between rounded bg-gray-200 p-0 text-left text-sm text-black dark:bg-gray-800 dark:text-white sm:text-base"),children:[l.jsx("div",{className:"flex min-h-[37.75px] w-full flex-row justify-start overflow-auto p-4 ",children:e?e[a].code:t}),l.jsx("div",{className:"absolute right-0 flex w-fit flex-row items-center gap-2 p-2",children:l.jsx(Is,{open:o.copied,side:"left",content:l.jsx("div",{children:"Copied!"}),children:l.jsx(Qe,{size:"icon",onClick:()=>o.copy(e?e[a].code:t),variant:"outline",className:"opacity-50 sm:opacity-100",children:l.jsxs("svg",{"aria-label":"Copy Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[l.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),l.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})})})})]})})]})},a7=()=>{const[e,t]=p.useState(""),n=r=>{t(r.target.value)};return l.jsx("div",{className:"relative inline-block text-left",children:l.jsx("span",{className:"rounded-md shadow-sm",children:l.jsx("input",{type:"date",value:e,onChange:n,className:"block w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"})})})};var qp={exports:{}};/*
|
|
98
|
-
object-assign
|
|
99
|
-
(c) Sindre Sorhus
|
|
100
|
-
@license MIT
|
|
101
|
-
*/var eh,uy;function i7(){if(uy)return eh;uy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return eh=o()?Object.assign:function(a,i){for(var s,u=r(a),c,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var g in s)t.call(s,g)&&(u[g]=s[g]);if(e){c=e(s);for(var v=0;v<c.length;v++)n.call(s,c[v])&&(u[c[v]]=s[c[v]])}}return u},eh}var th,cy;function nh(){if(cy)return th;cy=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return th=e,th}var rh,dy;function fy(){return dy||(dy=1,rh=Function.call.bind(Object.prototype.hasOwnProperty)),rh}var oh,gy;function s7(){if(gy)return oh;gy=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=nh(),n={},r=fy();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,u,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var g;try{if(typeof a[d]!="function"){var v=Error((u||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=a[d](i,d,u,s,null,t)}catch(C){g=C}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var y=c?c():"";e("Failed "+s+" type: "+g.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},oh=o,oh}var ah,py;function l7(){if(py)return ah;py=1;var e=Zg,t=i7(),n=nh(),r=fy(),o=s7(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return ah=function(s,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function g(te){var U=te&&(c&&te[c]||te[d]);if(typeof U=="function")return U}var v="<<anonymous>>",y={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:j(),arrayOf:P,element:N(),elementType:$(),instanceOf:G,node:me(),objectOf:J,oneOf:V,oneOfType:K,shape:ne,exact:fe};function C(te,U){return te===U?te!==0||1/te===1/U:te!==te&&U!==U}function h(te,U){this.message=te,this.data=U&&typeof U=="object"?U:{},this.stack=""}h.prototype=Error.prototype;function w(te){if(process.env.NODE_ENV!=="production")var U={},Q=0;function he(ge,ae,be,Me,Ne,We,Ke){if(Me=Me||v,We=We||be,Ke!==n){if(u){var $e=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $e.name="Invariant Violation",$e}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=Me+":"+be;!U[qe]&&Q<3&&(a("You are manually calling a React.PropTypes validation function for the `"+We+"` prop on `"+Me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[qe]=!0,Q++)}}return ae[be]==null?ge?ae[be]===null?new h("The "+Ne+" `"+We+"` is marked as required "+("in `"+Me+"`, but its value is `null`.")):new h("The "+Ne+" `"+We+"` is marked as required in "+("`"+Me+"`, but its value is `undefined`.")):null:te(ae,be,Me,Ne,We)}var H=he.bind(null,!1);return H.isRequired=he.bind(null,!0),H}function E(te){function U(Q,he,H,ge,ae,be){var Me=Q[he],Ne=oe(Me);if(Ne!==te){var We=pe(Me);return new h("Invalid "+ge+" `"+ae+"` of type "+("`"+We+"` supplied to `"+H+"`, expected ")+("`"+te+"`."),{expectedType:te})}return null}return w(U)}function j(){return w(i)}function P(te){function U(Q,he,H,ge,ae){if(typeof te!="function")return new h("Property `"+ae+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var be=Q[he];if(!Array.isArray(be)){var Me=oe(be);return new h("Invalid "+ge+" `"+ae+"` of type "+("`"+Me+"` supplied to `"+H+"`, expected an array."))}for(var Ne=0;Ne<be.length;Ne++){var We=te(be,Ne,H,ge,ae+"["+Ne+"]",n);if(We instanceof Error)return We}return null}return w(U)}function N(){function te(U,Q,he,H,ge){var ae=U[Q];if(!s(ae)){var be=oe(ae);return new h("Invalid "+H+" `"+ge+"` of type "+("`"+be+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return w(te)}function $(){function te(U,Q,he,H,ge){var ae=U[Q];if(!e.isValidElementType(ae)){var be=oe(ae);return new h("Invalid "+H+" `"+ge+"` of type "+("`"+be+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return w(te)}function G(te){function U(Q,he,H,ge,ae){if(!(Q[he]instanceof te)){var be=te.name||v,Me=Z(Q[he]);return new h("Invalid "+ge+" `"+ae+"` of type "+("`"+Me+"` supplied to `"+H+"`, expected ")+("instance of `"+be+"`."))}return null}return w(U)}function V(te){if(!Array.isArray(te))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function U(Q,he,H,ge,ae){for(var be=Q[he],Me=0;Me<te.length;Me++)if(C(be,te[Me]))return null;var Ne=JSON.stringify(te,function(Ke,$e){var qe=pe($e);return qe==="symbol"?String($e):$e});return new h("Invalid "+ge+" `"+ae+"` of value `"+String(be)+"` "+("supplied to `"+H+"`, expected one of "+Ne+"."))}return w(U)}function J(te){function U(Q,he,H,ge,ae){if(typeof te!="function")return new h("Property `"+ae+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var be=Q[he],Me=oe(be);if(Me!=="object")return new h("Invalid "+ge+" `"+ae+"` of type "+("`"+Me+"` supplied to `"+H+"`, expected an object."));for(var Ne in be)if(r(be,Ne)){var We=te(be,Ne,H,ge,ae+"."+Ne,n);if(We instanceof Error)return We}return null}return w(U)}function K(te){if(!Array.isArray(te))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var U=0;U<te.length;U++){var Q=te[U];if(typeof Q!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(Q)+" at index "+U+"."),i}function he(H,ge,ae,be,Me){for(var Ne=[],We=0;We<te.length;We++){var Ke=te[We],$e=Ke(H,ge,ae,be,Me,n);if($e==null)return null;$e.data&&r($e.data,"expectedType")&&Ne.push($e.data.expectedType)}var qe=Ne.length>0?", expected one of type ["+Ne.join(", ")+"]":"";return new h("Invalid "+be+" `"+Me+"` supplied to "+("`"+ae+"`"+qe+"."))}return w(he)}function me(){function te(U,Q,he,H,ge){return R(U[Q])?null:new h("Invalid "+H+" `"+ge+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return w(te)}function ye(te,U,Q,he,H){return new h((te||"React class")+": "+U+" type `"+Q+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function ne(te){function U(Q,he,H,ge,ae){var be=Q[he],Me=oe(be);if(Me!=="object")return new h("Invalid "+ge+" `"+ae+"` of type `"+Me+"` "+("supplied to `"+H+"`, expected `object`."));for(var Ne in te){var We=te[Ne];if(typeof We!="function")return ye(H,ge,ae,Ne,pe(We));var Ke=We(be,Ne,H,ge,ae+"."+Ne,n);if(Ke)return Ke}return null}return w(U)}function fe(te){function U(Q,he,H,ge,ae){var be=Q[he],Me=oe(be);if(Me!=="object")return new h("Invalid "+ge+" `"+ae+"` of type `"+Me+"` "+("supplied to `"+H+"`, expected `object`."));var Ne=t({},Q[he],te);for(var We in Ne){var Ke=te[We];if(r(te,We)&&typeof Ke!="function")return ye(H,ge,ae,We,pe(Ke));if(!Ke)return new h("Invalid "+ge+" `"+ae+"` key `"+We+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(Q[he],null," ")+`
|
|
102
|
-
Valid keys: `+JSON.stringify(Object.keys(te),null," "));var $e=Ke(be,We,H,ge,ae+"."+We,n);if($e)return $e}return null}return w(U)}function R(te){switch(typeof te){case"number":case"string":case"undefined":return!0;case"boolean":return!te;case"object":if(Array.isArray(te))return te.every(R);if(te===null||s(te))return!0;var U=g(te);if(U){var Q=U.call(te),he;if(U!==te.entries){for(;!(he=Q.next()).done;)if(!R(he.value))return!1}else for(;!(he=Q.next()).done;){var H=he.value;if(H&&!R(H[1]))return!1}}else return!1;return!0;default:return!1}}function W(te,U){return te==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function oe(te){var U=typeof te;return Array.isArray(te)?"array":te instanceof RegExp?"object":W(U,te)?"symbol":U}function pe(te){if(typeof te>"u"||te===null)return""+te;var U=oe(te);if(U==="object"){if(te instanceof Date)return"date";if(te instanceof RegExp)return"regexp"}return U}function se(te){var U=pe(te);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Z(te){return!te.constructor||!te.constructor.name?v:te.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},ah}var ih,hy;function u7(){if(hy)return ih;hy=1;var e=nh();function t(){}function n(){}return n.resetWarningCache=t,ih=function(){function r(i,s,u,c,d,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},ih}if(process.env.NODE_ENV!=="production"){var c7=Zg,d7=!0;qp.exports=l7()(c7.isElement,d7)}else qp.exports=u7()();var f7=qp.exports;const en=zl(f7);var g7=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function vu(e,t){var n=p7(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function p7(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=g7.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var h7=[".DS_Store","Thumbs.db"];function m7(e){return Ds(this,void 0,void 0,function(){return Fs(this,function(t){return Vd(e)&&v7(e)?[2,C7(e.dataTransfer,e.type)]:b7(e)?[2,x7(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,y7(e)]:[2,[]]})})}function v7(e){return Vd(e.dataTransfer)}function b7(e){return Vd(e)&&Vd(e.target)}function Vd(e){return typeof e=="object"&&e!==null}function x7(e){return sh(e.target.files).map(function(t){return vu(t)})}function y7(e){return Ds(this,void 0,void 0,function(){var t;return Fs(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return vu(r)})]}})})}function C7(e,t){return Ds(this,void 0,void 0,function(){var n,r;return Fs(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=sh(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(w7))]):[3,2];case 1:return r=o.sent(),[2,my(vy(r))];case 2:return[2,my(sh(e.files).map(function(a){return vu(a)}))]}})})}function my(e){return e.filter(function(t){return h7.indexOf(t.name)===-1})}function sh(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function w7(e){if(typeof e.webkitGetAsEntry!="function")return by(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?xy(t):by(e)}function vy(e){return e.reduce(function(t,n){return kA(t,Array.isArray(n)?vy(n):[n])},[])}function by(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=vu(t);return Promise.resolve(n)}function E7(e){return Ds(this,void 0,void 0,function(){return Fs(this,function(t){return[2,e.isDirectory?xy(e):S7(e)]})})}function xy(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function a(){var i=this;t.readEntries(function(s){return Ds(i,void 0,void 0,function(){var u,c,d;return Fs(this,function(g){switch(g.label){case 0:if(s.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=g.sent(),n(u),[3,4];case 3:return c=g.sent(),r(c),[3,4];case 4:return[3,6];case 5:d=Promise.all(s.map(E7)),o.push(d),a(),g.label=6;case 6:return[2]}})})},function(s){r(s)})}a()})}function S7(e){return Ds(this,void 0,void 0,function(){return Fs(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var a=vu(o,e.fullPath);n(a)},function(o){r(o)})})]})})}var D7=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):o===s})}return!0};function yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yy(Object(n),!0).forEach(function(r){wy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ey(e,t){return I7(e)||j7(e,t)||A7(e,t)||F7()}function F7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
103
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A7(e,t){if(e){if(typeof e=="string")return Sy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sy(e,t)}}function Sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,i,s;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(u){a=!0,s=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function I7(e){if(Array.isArray(e))return e}var T7="file-invalid-type",k7="file-too-large",P7="file-too-small",B7="too-many-files",N7=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:T7,message:"File type must be ".concat(n)}},Dy=function(t){return{code:k7,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Fy=function(t){return{code:P7,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},O7={code:B7,message:"Too many files"};function Ay(e,t){var n=e.type==="application/x-moz-file"||D7(e,t);return[n,n?null:N7(t)]}function jy(e,t,n){if(bu(e.size))if(bu(t)&&bu(n)){if(e.size>n)return[!1,Dy(n)];if(e.size<t)return[!1,Fy(t)]}else{if(bu(t)&&e.size<t)return[!1,Fy(t)];if(bu(n)&&e.size>n)return[!1,Dy(n)]}return[!0,null]}function bu(e){return e!=null}function $7(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles;return!a&&t.length>1||a&&i>=1&&t.length>i?!1:t.every(function(s){var u=Ay(s,n),c=Ey(u,1),d=c[0],g=jy(s,r,o),v=Ey(g,1),y=v[0];return d&&y})}function Wd(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Hd(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Iy(e){e.preventDefault()}function R7(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function M7(e){return e.indexOf("Edge/")!==-1}function L7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return R7(e)||M7(e)}function To(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return t.some(function(s){return!Wd(r)&&s&&s.apply(void 0,[r].concat(a)),Wd(r)})}}function _7(){return"showOpenFilePicker"in window}function V7(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}).reduce(function(t,n){return Cy(Cy({},t),{},wy({},n,[]))},{}):{}}]}function W7(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function H7(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}var G7=["children"],z7=["open"],U7=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Z7=["refKey","onChange","onClick"];function X7(e){return K7(e)||J7(e)||Ty(e)||Y7()}function Y7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
104
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K7(e){if(Array.isArray(e))return uh(e)}function lh(e,t){return eI(e)||q7(e,t)||Ty(e,t)||Q7()}function Q7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
105
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ty(e,t){if(e){if(typeof e=="string")return uh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uh(e,t)}}function uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,i,s;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(u){a=!0,s=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function eI(e){if(Array.isArray(e))return e}function ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ky(Object(n),!0).forEach(function(r){ch(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ch(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gd(e,t){if(e==null)return{};var n=tI(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var dh=p.forwardRef(function(e,t){var n=e.children,r=Gd(e,G7),o=By(r),a=o.open,i=Gd(o,z7);return p.useImperativeHandle(t,function(){return{open:a}},[a]),p.createElement(p.Fragment,null,n(gn(gn({},i),{},{open:a})))});dh.displayName="Dropzone";var Py={disabled:!1,getFilesFromEvent:m7,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};dh.defaultProps=Py,dh.propTypes={children:en.func,accept:en.oneOfType([en.string,en.arrayOf(en.string)]),multiple:en.bool,preventDropOnDocument:en.bool,noClick:en.bool,noKeyboard:en.bool,noDrag:en.bool,noDragEventsBubbling:en.bool,minSize:en.number,maxSize:en.number,maxFiles:en.number,disabled:en.bool,getFilesFromEvent:en.func,onFileDialogCancel:en.func,onFileDialogOpen:en.func,useFsAccessApi:en.bool,onDragEnter:en.func,onDragLeave:en.func,onDragOver:en.func,onDrop:en.func,onDropAccepted:en.func,onDropRejected:en.func,validator:en.func};var fh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function By(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=gn(gn({},Py),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,s=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,g=t.onDragOver,v=t.onDrop,y=t.onDropAccepted,C=t.onDropRejected,h=t.onFileDialogCancel,w=t.onFileDialogOpen,E=t.useFsAccessApi,j=t.preventDropOnDocument,P=t.noClick,N=t.noKeyboard,$=t.noDrag,G=t.noDragEventsBubbling,V=t.validator,J=p.useMemo(function(){return typeof w=="function"?w:Ny},[w]),K=p.useMemo(function(){return typeof h=="function"?h:Ny},[h]),me=p.useRef(null),ye=p.useRef(null),ne=p.useReducer(nI,fh),fe=lh(ne,2),R=fe[0],W=fe[1],oe=R.isFocused,pe=R.isFileDialogActive,se=R.draggedFiles,Z=p.useRef(typeof window<"u"&&window.isSecureContext&&E&&_7()),te=function(){!Z.current&&pe&&setTimeout(function(){if(ye.current){var Ge=ye.current.files;Ge.length||(W({type:"closeDialog"}),K())}},300)};p.useEffect(function(){return window.addEventListener("focus",te,!1),function(){window.removeEventListener("focus",te,!1)}},[ye,pe,K,Z]);var U=p.useRef([]),Q=function(Ge){me.current&&me.current.contains(Ge.target)||(Ge.preventDefault(),U.current=[])};p.useEffect(function(){return j&&(document.addEventListener("dragover",Iy,!1),document.addEventListener("drop",Q,!1)),function(){j&&(document.removeEventListener("dragover",Iy),document.removeEventListener("drop",Q))}},[me,j]);var he=p.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),At(Fe),U.current=[].concat(X7(U.current),[Fe.target]),Hd(Fe)&&Promise.resolve(o(Fe)).then(function(Ge){Wd(Fe)&&!G||(W({draggedFiles:Ge,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Fe))})},[o,c,G]),H=p.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),At(Fe);var Ge=Hd(Fe);if(Ge&&Fe.dataTransfer)try{Fe.dataTransfer.dropEffect="copy"}catch{}return Ge&&g&&g(Fe),!1},[g,G]),ge=p.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),At(Fe);var Ge=U.current.filter(function(xt){return me.current&&me.current.contains(xt)}),tt=Ge.indexOf(Fe.target);tt!==-1&&Ge.splice(tt,1),U.current=Ge,!(Ge.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Hd(Fe)&&d&&d(Fe))},[me,d,G]),ae=p.useCallback(function(Fe,Ge){var tt=[],xt=[];Fe.forEach(function($t){var mt=Ay($t,n),Wt=lh(mt,2),mn=Wt[0],Kt=Wt[1],En=jy($t,i,a),vn=lh(En,2),$n=vn[0],Rn=vn[1],Cn=V?V($t):null;if(mn&&$n&&!Cn)tt.push($t);else{var Mn=[Kt,Rn];Cn&&(Mn=Mn.concat(Cn)),xt.push({file:$t,errors:Mn.filter(function(pr){return pr})})}}),(!s&&tt.length>1||s&&u>=1&&tt.length>u)&&(tt.forEach(function($t){xt.push({file:$t,errors:[O7]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:xt,type:"setFiles"}),v&&v(tt,xt,Ge),xt.length>0&&C&&C(xt,Ge),tt.length>0&&y&&y(tt,Ge)},[W,s,n,i,a,u,v,y,C,V]),be=p.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),At(Fe),U.current=[],Hd(Fe)&&Promise.resolve(o(Fe)).then(function(Ge){Wd(Fe)&&!G||ae(Ge,Fe)}),W({type:"reset"})},[o,ae,G]),Me=p.useCallback(function(){if(Z.current){W({type:"openDialog"}),J();var Fe={multiple:s,types:V7(n)};window.showOpenFilePicker(Fe).then(function(Ge){return o(Ge)}).then(function(Ge){ae(Ge,null),W({type:"closeDialog"})}).catch(function(Ge){W7(Ge)?(K(Ge),W({type:"closeDialog"})):H7(Ge)&&(Z.current=!1,ye.current&&(ye.current.value=null,ye.current.click()))});return}ye.current&&(W({type:"openDialog"}),J(),ye.current.value=null,ye.current.click())},[W,J,K,E,ae,n,s]),Ne=p.useCallback(function(Fe){!me.current||!me.current.isEqualNode(Fe.target)||(Fe.key===" "||Fe.key==="Enter"||Fe.keyCode===32||Fe.keyCode===13)&&(Fe.preventDefault(),Me())},[me,Me]),We=p.useCallback(function(){W({type:"focus"})},[]),Ke=p.useCallback(function(){W({type:"blur"})},[]),$e=p.useCallback(function(){P||(L7()?setTimeout(Me,0):Me())},[P,Me]),qe=function(Ge){return r?null:Ge},ot=function(Ge){return N?null:qe(Ge)},ht=function(Ge){return $?null:qe(Ge)},At=function(Ge){G&&Ge.stopPropagation()},le=p.useMemo(function(){return function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ge=Fe.refKey,tt=Ge===void 0?"ref":Ge,xt=Fe.role,$t=Fe.onKeyDown,mt=Fe.onFocus,Wt=Fe.onBlur,mn=Fe.onClick,Kt=Fe.onDragEnter,En=Fe.onDragOver,vn=Fe.onDragLeave,$n=Fe.onDrop,Rn=Gd(Fe,U7);return gn(gn(ch({onKeyDown:ot(To($t,Ne)),onFocus:ot(To(mt,We)),onBlur:ot(To(Wt,Ke)),onClick:qe(To(mn,$e)),onDragEnter:ht(To(Kt,he)),onDragOver:ht(To(En,H)),onDragLeave:ht(To(vn,ge)),onDrop:ht(To($n,be)),role:typeof xt=="string"&&xt!==""?xt:"button"},tt,me),!r&&!N?{tabIndex:0}:{}),Rn)}},[me,Ne,We,Ke,$e,he,H,ge,be,N,$,r]),Ee=p.useCallback(function(Fe){Fe.stopPropagation()},[]),Ie=p.useMemo(function(){return function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ge=Fe.refKey,tt=Ge===void 0?"ref":Ge,xt=Fe.onChange,$t=Fe.onClick,mt=Gd(Fe,Z7),Wt=ch({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:qe(To(xt,be)),onClick:qe(To($t,Ee)),tabIndex:-1},tt,ye);return gn(gn({},Wt),mt)}},[ye,n,s,be,r]),Ze=se.length,He=Ze>0&&$7({files:se,accept:n,minSize:i,maxSize:a,multiple:s,maxFiles:u}),ke=Ze>0&&!He;return gn(gn({},R),{},{isDragAccept:He,isDragReject:ke,isFocused:oe&&!r,getRootProps:le,getInputProps:Ie,rootRef:me,inputRef:ye,open:qe(Me)})}function nI(e,t){switch(t.type){case"focus":return gn(gn({},e),{},{isFocused:!0});case"blur":return gn(gn({},e),{},{isFocused:!1});case"openDialog":return gn(gn({},fh),{},{isFileDialogActive:!0});case"closeDialog":return gn(gn({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return gn(gn({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return gn(gn({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return gn({},fh);default:return e}}function Ny(){}const rI=({texts:e,files:t,setFiles:n,setDeletedFiles:r,onAcceptedFiles:o,errorMessages:a,maxFiles:i,accept:s,showPreview:u,onDeleteFile:c,onClearFiles:d,disclaimer:g,maxSize:v,label:y,termsLink:C,privacyLink:h})=>{var ne,fe;const[w,E]=p.useState(0),[j,P]=p.useState(0),{getRootProps:N,getInputProps:$,fileRejections:G,acceptedFiles:V,isDragActive:J}=By({multiple:!0,accept:s,maxSize:v,maxFiles:i,onDrop:R=>{n(R.map((W,oe)=>Object.assign(W,{preview:URL.createObjectURL(W)})))}});p.useEffect(()=>()=>{t==null||t.forEach(R=>{URL.revokeObjectURL(R.preview)})},[t]),p.useEffect(()=>{n(V)},[V,w]),d=()=>{V.length=0,V.splice(0,V.length),n([])};const K=()=>{V.length=0,n([])};p.useEffect(()=>{if(v>0){const R=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],W=Math.floor(Math.log(v)/Math.log(1024));P(parseFloat((v/Math.pow(1024,W)).toFixed(2))+" "+R[W])}},[v]);const me=G.map((R,W)=>{switch(R.errors[0].code){case"file-too-large":return l.jsx(ro,{text:R.file.name,title:e.fileTooLarge,severity:"error"});case"too-many-files":return l.jsx(ro,{text:R.file.name,title:e.tooManyFiles,severity:"error"});case"file-invalid-type":return l.jsx(ro,{text:R.file.name,title:e.invalidFileType,severity:"error"});default:return l.jsx(ro,{text:R.file.name,title:R.errors[0].code,severity:"error"})}}),ye=t==null?void 0:t.map((R,W)=>l.jsxs("div",{className:"relative rounded",children:[l.jsxs("button",{onClick:oe=>{oe.stopPropagation(),V.splice(V.indexOf(R),1),E(Math.random),c(R)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded-inner rounded-bl-none rounded-tr-none bg-gray-900 p-1.5 text-sm text-gray-400 transition-all hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[l.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),l.jsx("span",{className:"sr-only",children:"Close modal"})]}),l.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:`url(${R.preview})`,backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg"},R.name)]}));return l.jsxs("div",{children:[y&&l.jsx("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300",children:y}),l.jsxs("div",{className:_e("flex flex-col justify-center rounded border border-dashed p-6 transition-all ",J?"bg-muted":"bg-muted/20 hover:bg-muted/50 "),children:[l.jsxs("div",{...N({}),children:[l.jsx("p",{...$()}),l.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 pt-4 text-center",children:[l.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1.5em",width:"1.5em",children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"}),l.jsx("path",{d:"M13 13l9 3l-4 2l-2 4l-3 -9"}),l.jsx("path",{d:"M3 3l0 .01"}),l.jsx("path",{d:"M7 3l0 .01"}),l.jsx("path",{d:"M11 3l0 .01"}),l.jsx("path",{d:"M15 3l0 .01"}),l.jsx("path",{d:"M3 7l0 .01"}),l.jsx("path",{d:"M3 11l0 .01"}),l.jsx("path",{d:"M3 15l0 .01"})]}),l.jsx(e.clickHereToUpload,{})]}),l.jsxs("div",{className:"pt-2 text-center text-xs",children:[e.acceptedFileTypes," ",s.split(",")]}),l.jsxs("div",{className:"pb-2 pt-1 text-center text-xs",children:[e.maxFileSize," ",j]})]}),V.length>0&&l.jsx("div",{className:"flex justify-center rounded-lg p-2 ",children:l.jsx(Qe,{onClick:K,children:"Clear All"})}),V.length>0&&ye&&u?l.jsx("aside",{className:"flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2",children:ye}):null,l.jsx("div",{className:"px-4",children:((fe=(ne=G[0])==null?void 0:ne.errors[0])==null?void 0:fe.code)&&me})]}),g&&l.jsxs("div",{className:"mt-2 text-sm text-muted-foreground/50",children:[e.disclaimer??"By uploading a file you agree to our"," ",l.jsx("a",{href:C,className:"clickable-link text-muted-foreground/50",children:e.terms??"Terms"})," ",e.and??"and"," ",l.jsx("a",{href:h,className:"clickable-link text-muted-foreground/50",children:e.privacyPolicy??"Privacy Policy"})]})]})},oI=e=>l.jsxs("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4",children:[l.jsx("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button",children:l.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})}),l.jsx("div",{className:"p-4",children:e.children})]}),aI=({subsections:e})=>{const[t,n]=p.useState(null);return l.jsx("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 ",children:e.map((r,o)=>l.jsxs("div",{className:"my-0",children:[r.title&&l.jsx("div",{className:"my-4 font-bold",children:r.title}),r.sections.map((a,i)=>l.jsx(iI,{onItemClick:()=>n(a.value),selected:t,value:a.value,icon:a.icon,title:a.label,chip:"Upgrade"},i))]},o))})},iI=({title:e,value:t,icon:n,chip:r,selected:o,onItemClick:a})=>l.jsxs("div",{onClick:a,className:_e("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",o===t?"bg-primary text-white hover:bg-primary":"hover:bg-layoutPrimary-300"),children:[l.jsxs("div",{className:"flex w-full flex-row items-center justify-start gap-2",children:[n," ",l.jsx("span",{children:e})]}),r&&l.jsx(Uc,{label:"Upgrade",size:"normal"})," "]}),sI=e=>l.jsxs("div",{className:"flex w-full flex-col gap-0 rounded border bg-card p-4",children:[l.jsxs("div",{className:"flex flex-row items-center gap-2",children:[l.jsx("span",{className:"bg-white-200",children:e.title}),e.tooltip&&l.jsx(Is,{content:e.tooltip,children:l.jsx("svg",{stroke:"currentColor","aria-label":"Exclamation Circle",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})})]}),l.jsxs("div",{className:"bg-white-100 flex flex-row",children:[l.jsx("div",{children:e.currentUsage}),l.jsxs("div",{children:[" (",e.percent,"%)"]})]}),l.jsx("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700",children:l.jsx("div",{className:"h-2.5 rounded-full bg-primary",style:{width:`${e.percent??0}%`}})})]}),lI=({direction:e="ltr",texts:t={total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"},...n})=>{var i;const r=s=>l.jsxs("div",{className:_e(s.start?"items-start":"items-end","flex w-full flex-col"),children:[l.jsx("div",{className:" text-sm text-gray-500",children:s.label}),l.jsx("div",{className:" whitespace-nowrap",children:s.text})]}),[o,a]=p.useState(!1);return l.jsxs("div",{className:"flex w-full flex-col",children:[l.jsxs("div",{className:"flex w-full flex-row items-center gap-2 border p-4 ",children:[n.invoiceActions&&l.jsx("div",{className:_e("transition-all hover:cursor-pointer ",e==="rtl"?"rotate-180":"",o?"rotate-90":""),onClick:()=>a(!o),children:l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"2em",width:"2em",children:l.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})}),l.jsxs("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:()=>a(!o),children:[l.jsxs("div",{className:"flex flex-row items-center gap-2",children:[l.jsx("span",{className:"bg-white-200",children:n.invoiceTitle}),n.status&&l.jsx(Uc,{size:"small",label:n.status})]}),l.jsx("div",{className:"font-sm text-gray-400",children:n.invoiceSubtitle})]}),l.jsxs("div",{className:"flex flex-row items-center gap-2",children:[l.jsx("div",{className:"whitespace-nowrap",children:n.total}),l.jsx(Rd,{direction:e,position:e==="rtl"?"bottom-right":"bottom-left",menuItems:n.invoiceActions,children:l.jsx("div",{className:" p-2",children:l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})})})})]})]}),o&&l.jsxs("div",{className:_e(o?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"),children:[l.jsx("div",{className:"border-b pb-2",children:n.invoiceDescription}),(i=n.products)==null?void 0:i.map((s,u)=>l.jsxs("div",{className:"flex flex-row border-b pb-4",children:[l.jsx("div",{className:"w-full",children:l.jsx(r,{start:!0,label:t.plan,text:s.plan})}),l.jsxs("div",{className:"flex w-full flex-row gap-20 ",children:[l.jsx(r,{label:t.usage,text:`${s.usage} SAR`}),l.jsx(r,{label:t.price,text:`${s.price} SAR`}),l.jsx(r,{label:t.amount,text:`${s.amount} SAR`})]})]},u)),l.jsxs("div",{className:"flex flex-row justify-between",children:[l.jsx("div",{children:t.total})," ",l.jsx("div",{children:n.total})]})]})]})},uI=({position:e="bottom-right",...t})=>{const[n,r]=p.useState(!1),[o,a]=p.useState(!1),[i,s]=p.useState(null),[u,c]=p.useState(5),d=p.useRef(null),g={"bottom-right":"right-4","bottom-left":"left-4"};p.useEffect(()=>{const y=setTimeout(()=>{u>=0&&c(u-1)},1e3);return()=>{clearTimeout(y)}},[u]);const v=()=>{r(!0),setTimeout(()=>{d.current.removeChild(d.current.children[0])},200)};return l.jsx("div",{ref:d,className:_e("fixed bottom-4 ",g[e]),children:l.jsxs("div",{className:_e("relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",n?"opacity-0":"opacity-100"),children:[l.jsx("div",{className:"absolute left-2 top-2 p-1.5 text-sm",children:t.title}),l.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>v(),children:l.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),l.jsx("div",{className:"mt-8",children:t.question}),l.jsx("div",{className:"flex w-full flex-row gap-1 rounded",children:t.options.map(y=>l.jsx("span",{onClick:()=>{t.onOptionClicked(y),s(y),a(!0);const C=setTimeout(()=>{r(!0)},4800);setTimeout(()=>{d.current.removeChild(d.current.children[0]),clearTimeout(C)},5300)},className:_e("w-full cursor-pointer rounded border p-4 text-center transition-all ",i===y?"bg-gray-500 text-white":"border bg-background hover:bg-gray-300 dark:hover:bg-gray-700"),children:y}))}),t.texts&&l.jsxs("div",{className:" flex flex-row justify-between text-xs",children:[l.jsx("span",{children:t.texts.least}),l.jsx("span",{children:t.texts.most})]}),o&&l.jsxs("div",{className:"absolute left-0 top-0 gap-2 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all",children:[l.jsxs("span",{className:"font-bold text-white",children:["Thank you for your answer. This box will disappear in"," "+u," seconds"]}),l.jsx("div",{className:"flex flex-row gap-2",children:l.jsx(Qe,{onClick:()=>v(),children:"Close"})})]})]})})},zd=q.forwardRef(({className:e,label:t,helperText:n,...r},o)=>l.jsxs("div",{className:"flex flex-col gap-2",children:[t&&l.jsx(Ea,{htmlFor:r.id,children:t}),l.jsx("textarea",{className:Te("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}),n&&l.jsx("p",{className:"mb-0 mt-0 text-xs text-red-600 dark:text-red-500",children:n})]}));zd.displayName="Textarea";const Oy="Popover",[$y,C_]=cr(Oy,[Es]),gh=Es(),[cI,Ts]=$y(Oy),dI=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=gh(t),u=p.useRef(null),[c,d]=p.useState(!1),[g=!1,v]=jr({prop:r,defaultProp:o,onChange:a});return p.createElement(wd,s,p.createElement(cI,{scope:t,contentId:Ir(),triggerRef:u,open:g,onOpenChange:v,onOpenToggle:p.useCallback(()=>v(y=>!y),[v]),hasCustomAnchor:c,onCustomAnchorAdd:p.useCallback(()=>d(!0),[]),onCustomAnchorRemove:p.useCallback(()=>d(!1),[]),modal:i},n))},fI="PopoverTrigger",gI=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ts(fI,n),a=gh(n),i=Jt(t,o.triggerRef),s=p.createElement(Et.button,xe({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ly(o.open)},r,{ref:i,onClick:rt(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:p.createElement(Tp,xe({asChild:!0},a),s)}),Ry="PopoverPortal",[pI,hI]=$y(Ry,{forceMount:void 0}),mI=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Ts(Ry,t);return p.createElement(pI,{scope:t,forceMount:n},p.createElement(Kn,{present:n||a.open},p.createElement(Ed,{asChild:!0,container:o},r)))},xu="PopoverContent",vI=p.forwardRef((e,t)=>{const n=hI(xu,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Ts(xu,e.__scopePopover);return p.createElement(Kn,{present:r||a.open},a.modal?p.createElement(bI,xe({},o,{ref:t})):p.createElement(xI,xe({},o,{ref:t})))}),bI=p.forwardRef((e,t)=>{const n=Ts(xu,e.__scopePopover),r=p.useRef(null),o=Jt(t,r),a=p.useRef(!1);return p.useEffect(()=>{const i=r.current;if(i)return jd(i)},[]),p.createElement(Vp,{as:ci,allowPinchZoom:!0},p.createElement(My,xe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rt(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:rt(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,c=s.button===2||u;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:rt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})))}),xI=p.forwardRef((e,t)=>{const n=Ts(xu,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return p.createElement(My,xe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(u))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),My=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...g}=e,v=Ts(xu,n),y=gh(n);return Fp(),p.createElement(Ip,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},p.createElement(cu,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>v.onOpenChange(!1)},p.createElement(kp,xe({"data-state":Ly(v.open),role:"dialog",id:v.contentId},y,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function Ly(e){return e?"open":"closed"}const yI=dI,CI=gI,wI=mI,_y=vI,ph=q.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(wI,{children:l.jsx(_y,{ref:o,align:t,sideOffset:n,className:Te("z-50 rounded border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:shadow-dark",e),...r})}));ph.displayName=_y.displayName;const hh=({trigger:e,children:t,className:n,align:r="center",side:o,sideOffset:a=4,open:i,disableTrigger:s,...u})=>l.jsxs(yI,{open:i,...u,children:[l.jsx(CI,{disabled:s,children:e}),l.jsx(ph,{side:o,className:n,align:r,sideOffset:a,children:t})]}),EI=e=>{const[t,n]=p.useState(null),[r,o]=p.useState(!1),[a,i]=p.useState(""),[s,u]=p.useState(!1);let c=[{icon:l.jsx(SI,{}),value:"very-good"},{icon:l.jsx(DI,{}),value:"good"},{icon:l.jsx(FI,{}),value:"bad"},{icon:l.jsx(AI,{}),value:"very-bad"}];const d=async()=>{if(console.log("submitting"),a){o(!0);try{await e.handleSubmit({choice:t,feedback:a})}catch(g){console.error("Error during submission:",g),o(!1)}await o(!1)}else o(!1),u(!0)};return l.jsxs("div",{className:Te("flex flex-col gap-2 rounded border p-2 transition-all",t?"h-[165px] min-w-fit":"h-[44px] "),children:[l.jsx("div",{className:"flex flex-row items-center justify-center gap-2 ",children:l.jsx("div",{className:"flex flex-row justify-center gap-0.5 ",children:c.map((g,v)=>l.jsx(Qe,{onClick:()=>{t===g.value?n(""):n(g.value)},variant:"ghost",size:"smallIcon",className:Te(t===g.value?"bg-primary/10 hover:bg-primary/10 ":"text-[#666666]"),children:g.icon},v))})}),l.jsx("div",{className:Te("flex flex-col overflow-clip transition-all duration-500 ease-in-out ",t?"visible opacity-100":"invisible opacity-0 "),children:e.showSuccess?l.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 pt-4",children:[l.jsx("div",{className:"rounded bg-primary p-2 text-primary-foreground",children:l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.5em",width:"0.5em",children:l.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})}),l.jsxs("div",{className:"text-sm flex flex-col text-center",children:[l.jsx("span",{children:"Your feedback has been received!"}),l.jsx("span",{children:"Thank you for your help"})]})]}):l.jsxs(l.Fragment,{children:[l.jsxs(hh,{className:"select-none p-1 text-xs ",open:s,trigger:l.jsx(zd,{className:Te("mb-2 h-full resize-none"),placeholder:"Your feedback",onChange:g=>{g.target.value&&u(!1),i(g.target.value),console.log("changing to",g.target.value)}}),children:[l.jsx("span",{children:"Please enter your feedback"})," "]}),l.jsx(Qe,{isLoading:r,onClick:d,className:"w-full",size:"sm",children:"Submit"})]})})]})},SI=()=>l.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:l.jsxs("g",{clipPath:"url(#clip0_53_166)",children:[l.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",fill:"currentColor",fillRule:"evenodd"}),l.jsx("path",{clipRule:"evenodd",d:"M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",fill:"#FF990A",fillRule:"evenodd"})]})}),DI=()=>l.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("g",{clipPath:"url(#clip0_53_167)",children:l.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})})}),FI=()=>l.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("g",{clipPath:"url(#clip0_53_152)",children:l.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",fill:"currentColor",fillRule:"evenodd"})})}),AI=()=>l.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:l.jsxs("g",{clipPath:"url(#clip0_53_151)",children:[l.jsx("path",{d:"M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",fill:"#0070F3"}),l.jsx("path",{clipRule:"evenodd",d:"M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})]})}),Vy=e=>l.jsx("svg",{onClick:e.onClick||(()=>{}),className:_e("h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",e.direction==="right"?"-rotate-90":"rotate-90",e.disabled?"text-gray-300":"cursor-pointer hover:scale-150"),fill:e.disabled&&"grey",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}),jI=e=>{const[t,n]=p.useState(e.index||0);return p.useEffect(()=>{console.log(`INDEX CHANGED TO: ${t}`)},[t]),l.jsxs("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md",children:[l.jsx(Vy,{direction:"left",disabled:t==0,onClick:()=>{t!=0&&n(t-1)}}),l.jsxs("div",{className:"relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 ",children:[l.jsx("div",{children:e.items[t].icon}),l.jsx("div",{className:"absolute bottom-1 mb-0 mt-2 select-none",children:e.items[t].label})]}),l.jsx(Vy,{direction:"right",disabled:t==e.items.length-1,onClick:()=>{t!=e.items.length-1&&n(t+1)}})]})},II=e=>l.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",onMouseDown:e.onMouseDown,children:e.name}),Wy={bold:{css:"font-bold",content:"B"},italic:{id:"italic",css:"italic",content:"I"},under:{id:"under",css:"underline",content:"U"},strike:{id:"strike",css:"line-through",content:"S"}},ao="",TI=e=>{const[t,n]=p.useState({content:"",stylings:[],revert:[0,0],clipboard:[],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}),r=p.useRef(null),o=p.useRef(t),a=R=>{o.current=R,n(R)},i=R=>{for(var W=0;R=R.previousSibling;W++);return W},s=(R,W)=>Array.from(R.childNodes).slice(0,W).map(se=>se.textContent.length).reduce((se,Z)=>se+Z,0),u=R=>Array.from(r.current.childNodes).slice(0,R).map(pe=>{let se=Array.from(pe.childNodes);return s(pe,se.length)}).reduce((pe,se)=>pe+se,0),c=R=>{let W=window.getSelection(),oe=Array.from(r.current.childNodes);oe=oe.filter(U=>!["#text","BR"].includes(U.nodeName));let pe=W[R],se=pe.parentNode,Z=0;const te=pe.nodeName=="DIV"&&Array.from(pe.classList).includes("line");if(se.nodeName=="SPAN"){let U=i(se);Z+=s(se.parentNode,U);let Q=i(se.parentNode);Z+=u(Q)}if(Array.from(se.classList).includes("line")){if(pe.nodeName=="#text"){let Q=i(pe);Z+=s(se,Q)}let U=i(se);Z+=u(U)}if(te){let U=i(pe);Z=u(U)}return se==r.current&&!te?0:Z},d=()=>{if(document.activeElement!=r.current)return[0,0];let R=window.getSelection(),W=c("anchorNode"),oe=c("focusNode");return[W+R.anchorOffset,oe+R.focusOffset].sort((se,Z)=>se-Z)};p.useEffect(()=>{setTimeout(function(){let[R,W]=o.current.revert;if(R==0&&W==0)return;let oe=null,pe=null,se=0,Z=Array.from(r.current.getElementsByTagName("span"));for(let Q=0;Q<Z.length;Q++){let he=Z[Q],H=he.textContent.length+se;oe==null&&R>=se&&R<=H&&(oe=Z[Q],R-=se),pe==null&&W>se&&W<=H&&(pe=Z[Q],W-=se),se+=he.textContent.length}var te=document.createRange(),U=window.getSelection();te.setStart(oe.firstChild,R),te.setEnd(pe.firstChild,W),U.removeAllRanges(),U.addRange(te)},1)},[t.revert]);const g=(R,W)=>{let oe=[];for(let pe=R;pe<=W;pe++)oe.push(pe);return oe},v=(R,W)=>{const oe=new Set;for(const pe of W)R.has(pe)&&oe.add(pe);return oe},y=R=>R.sort((W,oe)=>W-oe)[0],C=R=>R.sort((W,oe)=>oe-W)[0],h=(R,W)=>{if(R.type!=W.type)return-1;if(W.start<=R.start&&W.finish>=R.finish)return 0;let oe=new Set(g(R.start-1,R.finish-1)),pe=new Set(g(W.start-1,W.finish-1));return v(oe,pe).size==0?2:1},w=(R,W,oe,pe)=>{let[se,Z,te]=R.find(([Q,he,H])=>Q==0);W=W.filter((Q,he)=>he!=Z);let U=[{type:pe,start:y([te.start,oe.start]),finish:C([te.start,oe.start])},{type:pe,start:y([te.finish,oe.finish]),finish:C([te.finish,oe.finish])}];return U=U.filter(Q=>Q.start!=Q.finish),W=[...W,...U],W},E=(R,W,oe,pe)=>{let se=R.filter(([Q,he,H])=>Q==1).map(([Q,he,H])=>[he,H]);se.push([-1,oe]);let Z=se.map(([Q,he])=>he.start).sort((Q,he)=>Q-he)[0],te=se.map(([Q,he])=>he.finish).sort((Q,he)=>he-Q)[0],U=se.map(Q=>Q[0]);return W=W.filter((Q,he)=>!U.includes(he)),W.push({type:pe,start:Z,finish:te}),W},j=R=>{let W=o.current.stylings.slice(),[oe,pe]=d();if(oe==pe)return;let se={type:R,start:oe,finish:pe},Z=[];for(let U=0;U<W.length;U++){let Q=W[U],he=h(se,Q);he!=-1&&Z.push([he,U,Q])}let te;Z.find(([U,Q,he])=>U==1)?te=E(Z,W,se,R):Z.find(([U,Q,he])=>U==0)?te=w(Z,W,se,R):(Z.find(([U,Q,he])=>U==2)||Z.length==0)&&(te=[...W,se]),a({...t,stylings:te,revert:[oe,pe]})},P=(R,W,oe=0,pe=0)=>R.filter(({start:Z,finish:te})=>W>=Z+oe&&W<te+pe),N=(R,W,oe)=>{let pe=R.filter(({start:se,finish:Z})=>Z>W&&se<oe||se<oe&&Z>W);return pe=pe.map(se=>({...se,start:C([se.start,W])-W,finish:y([se.finish,oe])-W})),pe},$=(R,W,oe=0)=>{let pe={...R,start:R.start,finish:W},se={...R,start:W+oe,finish:R.finish+oe};return[pe,se]},G=(R,W,oe,pe=!0)=>(R=R.map(se=>se.start>=W&&se.finish>W?(console.log("succeeding"),{...se,start:se.start+oe,finish:se.finish+oe}):se.start<W&&se.finish>W?pe?{...se,finish:se.finish+oe}:$(se,W,oe):se.finish==W&&pe?{...se,finish:se.finish+oe}:se),R.flat()),V=(R,W,oe)=>{let pe=Math.abs(oe-W);return R=R.map(se=>se.start>=W&&se.start>=oe&&se.finish>=W&&se.finish>=oe?{...se,start:se.start-pe,finish:se.finish-pe}:se.start>=W&&se.finish<=oe?null:se.start<=W&&se.finish>=oe?{...se,finish:se.finish-pe}:se.start>W&&se.start<oe?{...se,start:C([se.start,oe])-pe,finish:se.finish-pe}:se.finish>W&&se.finish<oe?{...se,finish:y([se.finish,W])}:se),R.flat().filter(se=>se)},J=(R,W,oe,pe)=>(W==0||(W>0?R=G(R,oe-W,W):R=V(R,oe,pe+Math.abs(W))),R),K=(R,W,oe,pe)=>{let se=o.current.events.paste.length,Z=oe-se,te=Z,U=Z+se-W;return R=V(R,te,U),R=G(R,Z,se,!1),R=R.concat(o.current.clipboard.map(Q=>({...Q,start:Q.start+Z,finish:Q.finish+Z}))),R},me=(R,W,oe,pe)=>{console.log(`Dropped at: ${[oe,pe]}`);let se=o.current.events.drop.text.length,[Z,te]=o.current.events.drop.drag,U=oe-Z,Q=N(R,Z,te),he=Z,H=te;if(U>0&&(R=G(R,pe,se,!1),R=V(R,he,H)),U<0){let ge=oe;R=V(R,he,H),R=G(R,ge,se,!1)}return R=R.concat(Q.map(ge=>({...ge,start:ge.start+oe,finish:ge.finish+oe}))),R},ye=(R,W,oe)=>{o.current.events.drop.is&&R.length!=o.current.content.length||(console.log(`Changed at: ${[W,oe]}`),setTimeout(function(){let pe=R.length-o.current.content.length,se=o.current.stylings;o.current.events.paste.is?se=K(se,pe,W):o.current.events.drop.is?se=me(se,pe,W,oe):se=J(se,pe,W,oe),a({...o.current,content:R,stylings:se,revert:[W,oe],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}})},0))},ne=()=>{let R=o.current.content,W=[...o.current.stylings],oe=[],pe=R.split("").map((se,Z)=>se==ao?Z:null).filter(se=>se);pe.unshift(0),pe.push(R.length);for(let se=0;se<pe.length-1;se++){let Z=pe[se],te=pe[se+1],U=R.slice(Z,te),Q=N(W,Z,te),he=[],H=Q.map(({start:ae,finish:be})=>[ae,be]).flat().sort((ae,be)=>ae-be);H=H.filter((ae,be)=>H.indexOf(ae)==be),H[0]!=0&&H.unshift(0);let ge=U.length;H[H.length-1]!=ge&&H.push(ge);for(let ae=0;ae<H.length-1;ae++){let be=H[ae],Me=H[ae+1];he.push({content:U.substring(be,Me),types:P(Q,be).map(Ne=>Ne.type)})}oe.push(he)}return oe};p.useEffect(()=>{let R=ne().map((W,oe)=>`<div class="line" data-line-index="${oe}">${W.map((pe,se)=>`<span class="${pe.types.map(Z=>Wy[Z].css).join(" ")}" data-child-index="${se}">${pe.content}</span>`).join("")}</div>`).join("");r.current.innerHTML=R},[t.content,t.stylings,t.revert]);const fe=()=>{switch(e.rtl||"disabled"){case"enabled":return"rtl";case"disabled":return"ltr";case"auto":return"ltr"}};return l.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[l.jsx("div",{className:_e("flex w-full flex-row justify-start p-2"),children:Object.entries(Wy).map(([R,W])=>l.jsx(II,{name:W.content,onMouseDown:oe=>{oe.preventDefault(),j(R)}},`property-${R}`))}),l.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),l.jsx("div",{className:"selection-ignore box-border w-full p-2",children:l.jsx("div",{ref:r,contentEditable:"true",className:"selection-ignore rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none",style:{direction:fe()},onPaste:R=>{R.preventDefault();let W=R.clipboardData.getData("text/plain");W=W.replaceAll(`
|
|
106
|
-
`,""),W=W.replaceAll("\r",""),document.execCommand("insertHTML",!1,W),a({...o.current,events:{...o.current.events,paste:{is:!0,length:W.length}}})},onInput:R=>{let[W,oe]=d(),pe=R.target.textContent,se=o.current.content,Z=R.nativeEvent.inputType;if(Z=="insertParagraph"){console.log(`Inserted new line at [${W}, ${oe}]`);let te=pe.split("");te.splice(W,0,ao),W==0&&!se.startsWith(ao)&&(te.splice(W,0,ao),W+=1,oe+=1),pe=te.join(""),W+=1,oe+=1}else{let te=window.getSelection(),{anchorNode:U,focusNode:Q}=te,he=R.nativeEvent.data;if(U.parentNode==Q.parentNode&&U.parentNode.nodeName=="SPAN"&&te.anchorOffset<=1&&te.focusOffset<=1&&Z=="insertText"){let H=i(U.parentNode.parentNode),ge=se;se.startsWith(ao)&&(ge=ge.slice(1));let ae=ge.split(ao)[H];console.log(ge.split(ao)),ae=ae.split(""),ae.splice(0,0,he),ae=ae.join("");let be=ge.split(ao);be[H]=ae,pe=be.join(ao),se.startsWith(ao)&&(pe=ao+pe),W+=1,oe+=1}}ye(pe,W,oe)},onCopy:()=>{let[R,W]=d(),oe=o.current.stylings.slice();oe=N(oe,R,W),a({...t,clipboard:oe})},onDrop:R=>{let W=R.dataTransfer.getData("text");W.trim()!=""&&a({...o.current,events:{...o.current.events,drop:{is:!0,text:W,drag:d()}}})}})}),l.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),l.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:()=>{(e.onSubmit||(()=>{}))(t.content,t.stylings)},children:"Submit"})]})};/*!
|
|
107
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
108
|
-
*
|
|
109
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
110
|
-
* Released under the MIT License.
|
|
111
|
-
*/function Hy(e){return Object.prototype.toString.call(e)==="[object Object]"}function Un(e){var t,n;return Hy(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Hy(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Nn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=MI[e],a=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mi(e){return!!e&&!!e[Pr]}function bi(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===LI}(e)||Array.isArray(e)||!!e[qy]||!!(!((t=e.constructor)===null||t===void 0)&&t[qy])||vh(e)||bh(e))}function yu(e,t,n){n===void 0&&(n=!1),ks(e)===0?(n?Object.keys:Th)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function ks(e){var t=e[Pr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:vh(e)?2:bh(e)?3:0}function mh(e,t){return ks(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function kI(e,t){return ks(e)===2?e.get(t):e[t]}function Gy(e,t,n){var r=ks(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function PI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vh(e){return $I&&e instanceof Map}function bh(e){return RI&&e instanceof Set}function xi(e){return e.o||e.t}function xh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_I(e);delete t[Pr];for(var n=Th(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function yh(e,t){return t===void 0&&(t=!1),Ch(e)||mi(e)||!bi(e)||(ks(e)>1&&(e.set=e.add=e.clear=e.delete=BI),Object.freeze(e),t&&yu(e,function(n,r){return yh(r,!0)},!0)),e}function BI(){Nn(2)}function Ch(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ko(e){var t=VI[e];return t||Nn(18,e),t}function zy(){return process.env.NODE_ENV==="production"||Ps||Nn(0),Ps}function wh(e,t){t&&(ko("Patches"),e.u=[],e.s=[],e.v=t)}function Ud(e){Eh(e),e.p.forEach(NI),e.p=null}function Eh(e){e===Ps&&(Ps=e.l)}function Uy(e){return Ps={p:[],l:Ps,h:e,m:!0,_:0}}function NI(e){var t=e[Pr];t.i===0||t.i===1?t.j():t.g=!0}function Sh(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ko("ES5").S(t,e,r),r?(n[Pr].P&&(Ud(t),Nn(4)),bi(e)&&(e=Zd(t,e),t.l||Xd(t,e)),t.u&&ko("Patches").M(n[Pr].t,e,t.u,t.s)):e=Zd(t,n,[]),Ud(t),t.u&&t.v(t.u,t.s),e!==Qy?e:void 0}function Zd(e,t,n){if(Ch(t))return t;var r=t[Pr];if(!r)return yu(t,function(s,u){return Zy(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Xd(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=xh(r.k):r.o,a=o,i=!1;r.i===3&&(a=new Set(o),o.clear(),i=!0),yu(a,function(s,u){return Zy(e,r,o,s,u,n,i)}),Xd(e,o,!1),n&&e.u&&ko("Patches").N(r,n,e.u,e.s)}return r.o}function Zy(e,t,n,r,o,a,i){if(process.env.NODE_ENV!=="production"&&o===n&&Nn(5),mi(o)){var s=Zd(e,o,a&&t&&t.i!==3&&!mh(t.R,r)?a.concat(r):void 0);if(Gy(n,r,s),!mi(s))return;e.m=!1}else i&&n.add(o);if(bi(o)&&!Ch(o)){if(!e.h.D&&e._<1)return;Zd(e,o),t&&t.A.l||Xd(e,o)}}function Xd(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&yh(t,n)}function Dh(e,t){var n=e[Pr];return(n?xi(n):e)[t]}function Xy(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Fh(e){e.P||(e.P=!0,e.l&&Fh(e.l))}function Ah(e){e.o||(e.o=xh(e.t))}function jh(e,t,n){var r=vh(t)?ko("MapSet").F(t,n):bh(t)?ko("MapSet").T(t,n):e.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:zy(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,c=kh;i&&(u=[s],c=Cu);var d=Proxy.revocable(u,c),g=d.revoke,v=d.proxy;return s.k=v,s.j=g,v}(t,n):ko("ES5").J(t,n);return(n?n.A:zy()).p.push(r),r}function OI(e){return mi(e)||Nn(22,e),function t(n){if(!bi(n))return n;var r,o=n[Pr],a=ks(n);if(o){if(!o.P&&(o.i<4||!ko("ES5").K(o)))return o.t;o.I=!0,r=Yy(n,a),o.I=!1}else r=Yy(n,a);return yu(r,function(i,s){o&&kI(o.t,i)===s||Gy(r,i,t(s))}),a===3?new Set(r):r}(e)}function Yy(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return xh(e)}var Jy,Ps,Ih=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$I=typeof Map<"u",RI=typeof Set<"u",Ky=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qy=Ih?Symbol.for("immer-nothing"):((Jy={})["immer-nothing"]=!0,Jy),qy=Ih?Symbol.for("immer-draftable"):"__$immer_draftable",Pr=Ih?Symbol.for("immer-state"):"__$immer_state",MI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},LI=""+Object.prototype.constructor,Th=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,_I=Object.getOwnPropertyDescriptors||function(e){var t={};return Th(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},VI={},kh={get:function(e,t){if(t===Pr)return e;var n=xi(e);if(!mh(n,t))return function(o,a,i){var s,u=Xy(a,i);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!bi(r)?r:r===Dh(e.t,t)?(Ah(e),e.o[t]=jh(e.A.h,r,e)):r},has:function(e,t){return t in xi(e)},ownKeys:function(e){return Reflect.ownKeys(xi(e))},set:function(e,t,n){var r=Xy(xi(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Dh(xi(e),t),a=o==null?void 0:o[Pr];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(PI(n,o)&&(n!==void 0||mh(e.t,t)))return!0;Ah(e),Fh(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Dh(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ah(e),Fh(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=xi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Nn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Nn(12)}},Cu={};yu(kh,function(e,t){Cu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Cu.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Nn(13),Cu.set.call(this,e,t,void 0)},Cu.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Nn(14),kh.set.call(this,e[0],t,n,e[0])};var WI=function(){function e(n){var r=this;this.O=Ky,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=r;return function(h){var w=this;h===void 0&&(h=s);for(var E=arguments.length,j=Array(E>1?E-1:0),P=1;P<E;P++)j[P-1]=arguments[P];return u.produce(h,function(N){var $;return($=a).call.apply($,[w,N].concat(j))})}}var c;if(typeof a!="function"&&Nn(6),i!==void 0&&typeof i!="function"&&Nn(7),bi(o)){var d=Uy(r),g=jh(r,o,void 0),v=!0;try{c=a(g),v=!1}finally{v?Ud(d):Eh(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(h){return wh(d,i),Sh(h,d)},function(h){throw Ud(d),h}):(wh(d,i),Sh(c,d))}if(!o||typeof o!="object"){if((c=a(o))===void 0&&(c=o),c===Qy&&(c=void 0),r.D&&yh(c,!0),i){var y=[],C=[];ko("Patches").M(o,c,y,C),i(y,C)}return c}Nn(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(c){for(var d=arguments.length,g=Array(d>1?d-1:0),v=1;v<d;v++)g[v-1]=arguments[v];return r.produceWithPatches(c,function(y){return o.apply(void 0,[y].concat(g))})};var i,s,u=r.produce(o,a,function(c,d){i=c,s=d});return typeof Promise<"u"&&u instanceof Promise?u.then(function(c){return[c,i,s]}):[u,i,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){bi(n)||Nn(8),mi(n)&&(n=OI(n));var r=Uy(this),o=jh(this,n,void 0);return o[Pr].C=!0,Eh(r),o},t.finishDraft=function(n,r){var o=n&&n[Pr];process.env.NODE_ENV!=="production"&&(o&&o.C||Nn(9),o.I&&Nn(10));var a=o.A;return wh(a,r),Sh(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!Ky&&Nn(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var i=ko("Patches").$;return mi(n)?i(n,r):this.produce(n,function(s){return i(s,r)})},e}(),Br=new WI,Ph=Br.produce;Br.produceWithPatches.bind(Br),Br.setAutoFreeze.bind(Br),Br.setUseProxies.bind(Br),Br.applyPatches.bind(Br);var e2=Br.createDraft.bind(Br),t2=Br.finishDraft.bind(Br),HI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ce.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},GI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=It.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},zI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Be.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Yd=new WeakMap,Jd=new WeakMap,wu=new WeakMap,n2=new WeakMap,r2=new WeakMap,o2=new WeakMap,a2=new WeakMap,ce={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=ce.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],a=t[r];if(o!==a)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],i=t[n];return ce.equals(r,o)&&a>i},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return ce.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),a=e[n],i=t[n];return ce.equals(r,o)&&a<i},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return ce.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&ce.compare(e,t)===0},isBefore(e,t){return ce.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&ce.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&ce.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&ce.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&ce.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],a=t[t.length-1];return o!==a&&ce.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!ce.isAncestor(t,e)&&!ce.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:a}=t;(ce.equals(a,r)||ce.endsBefore(a,r)||ce.isAncestor(a,r))&&(r[a.length-1]+=1);break}case"remove_node":{var{path:i}=t;if(ce.equals(i,r)||ce.isAncestor(i,r))return null;ce.endsBefore(i,r)&&(r[i.length-1]-=1);break}case"merge_node":{var{path:s,position:u}=t;ce.equals(s,r)||ce.endsBefore(s,r)?r[s.length-1]-=1:ce.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break}case"split_node":{var{path:c,position:d}=t;if(ce.equals(c,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else ce.endsBefore(c,r)?r[c.length-1]+=1:ce.isAncestor(c,r)&&e[c.length]>=d&&(r[c.length-1]+=1,r[c.length]-=d);break}case"move_node":{var{path:g,newPath:v}=t;if(ce.equals(g,v))return r;if(ce.isAncestor(g,r)||ce.equals(g,r)){var y=v.slice();return ce.endsBefore(g,v)&&g.length<v.length&&(y[g.length-1]-=1),y.concat(r.slice(g.length))}else ce.isSibling(g,v)&&(ce.isAncestor(v,r)||ce.equals(v,r))?ce.endsBefore(g,r)?r[g.length-1]-=1:r[g.length-1]+=1:ce.endsBefore(v,r)||ce.equals(v,r)||ce.isAncestor(v,r)?(ce.endsBefore(g,r)&&(r[g.length-1]-=1),r[v.length-1]+=1):ce.endsBefore(g,r)&&(ce.equals(v,r)&&(r[v.length-1]+=1),r[g.length-1]-=1);break}}return r}};function Qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UI=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,a=Ye.parent(e,r),i=r[r.length-1];if(i>a.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(a.children.splice(i,0,o),t)for(var[s,u]of Be.points(t))t[u]=It.transform(s,n);break}case"insert_text":{var{path:c,offset:d,text:g}=n;if(g.length===0)break;var v=Ye.leaf(e,c),y=v.text.slice(0,d),C=v.text.slice(d);if(v.text=y+g+C,t)for(var[h,w]of Be.points(t))t[w]=It.transform(h,n);break}case"merge_node":{var{path:E}=n,j=Ye.get(e,E),P=ce.previous(E),N=Ye.get(e,P),$=Ye.parent(e,E),G=E[E.length-1];if(lt.isText(j)&<.isText(N))N.text+=j.text;else if(!lt.isText(j)&&!lt.isText(N))N.children.push(...j.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(Tn.stringify(j)," ").concat(Tn.stringify(N)));if($.children.splice(G,1),t)for(var[V,J]of Be.points(t))t[J]=It.transform(V,n);break}case"move_node":{var{path:K,newPath:me}=n;if(ce.isAncestor(K,me))throw new Error("Cannot move a path [".concat(K,"] to new path [").concat(me,"] because the destination is inside itself."));var ye=Ye.get(e,K),ne=Ye.parent(e,K),fe=K[K.length-1];ne.children.splice(fe,1);var R=ce.transform(K,n),W=Ye.get(e,ce.parent(R)),oe=R[R.length-1];if(W.children.splice(oe,0,ye),t)for(var[pe,se]of Be.points(t))t[se]=It.transform(pe,n);break}case"remove_node":{var{path:Z}=n,te=Z[Z.length-1],U=Ye.parent(e,Z);if(U.children.splice(te,1),t)for(var[Q,he]of Be.points(t)){var H=It.transform(Q,n);if(t!=null&&H!=null)t[he]=H;else{var ge=void 0,ae=void 0;for(var[be,Me]of Ye.texts(e))if(ce.compare(Me,Z)===-1)ge=[be,Me];else{ae=[be,Me];break}var Ne=!1;ge&&ae&&(ce.equals(ae[1],Z)?Ne=!ce.hasPrevious(ae[1]):Ne=ce.common(ge[1],Z).length<ce.common(ae[1],Z).length),ge&&!Ne?(Q.path=ge[1],Q.offset=ge[0].text.length):ae?(Q.path=ae[1],Q.offset=0):t=null}}break}case"remove_text":{var{path:We,offset:Ke,text:$e}=n;if($e.length===0)break;var qe=Ye.leaf(e,We),ot=qe.text.slice(0,Ke),ht=qe.text.slice(Ke+$e.length);if(qe.text=ot+ht,t)for(var[At,le]of Be.points(t))t[le]=It.transform(At,n);break}case"set_node":{var{path:Ee,properties:Ie,newProperties:Ze}=n;if(Ee.length===0)throw new Error("Cannot set properties on the root node!");var He=Ye.get(e,Ee);for(var ke in Ze){if(ke==="children"||ke==="text")throw new Error('Cannot set the "'.concat(ke,'" property of nodes!'));var Fe=Ze[ke];Fe==null?delete He[ke]:He[ke]=Fe}for(var Ge in Ie)Ze.hasOwnProperty(Ge)||delete He[Ge];break}case"set_selection":{var{newProperties:tt}=n;if(tt==null)t=tt;else{if(t==null){if(!Be.isRange(tt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Tn.stringify(tt)," when there is no current selection."));t=Eu({},tt)}for(var xt in tt){var $t=tt[xt];if($t==null){if(xt==="anchor"||xt==="focus")throw new Error('Cannot remove the "'.concat(xt,'" selection property'));delete t[xt]}else t[xt]=$t}}break}case"split_node":{var{path:mt,position:Wt,properties:mn}=n;if(mt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(mt,"] because the root node cannot be split."));var Kt=Ye.get(e,mt),En=Ye.parent(e,mt),vn=mt[mt.length-1],$n;if(lt.isText(Kt)){var Rn=Kt.text.slice(0,Wt),Cn=Kt.text.slice(Wt);Kt.text=Rn,$n=Eu(Eu({},mn),{},{text:Cn})}else{var Mn=Kt.children.slice(0,Wt),pr=Kt.children.slice(Wt);Kt.children=Mn,$n=Eu(Eu({},mn),{},{children:pr})}if(En.children.splice(vn+1,0,$n),t)for(var[fn,Sn]of Be.points(t))t[Sn]=It.transform(fn,n);break}}return t},ZI={transform(e,t){e.children=e2(e.children);var n=e.selection&&e2(e.selection);try{n=UI(e,n,t)}finally{e.children=t2(e.children),n?e.selection=mi(n)?t2(n):n:e.selection=null}}},XI={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},YI={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},s2=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Un(r)&&Un(o)){if(!s2(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==o[a])return!1}else if(r!==o)return!1}for(var i in t)if(e[i]===void 0&&t[i]!==void 0)return!1;return!0};function JI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Jo(e,t){if(e==null)return{};var n=JI(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var KI=["anchor","focus"];function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function QI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Be={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Be.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Be.edges(e);return t},equals(e,t){return It.equals(e.anchor,t.anchor)&&It.equals(e.focus,t.focus)},includes(e,t){if(Be.isRange(t)){if(Be.includes(e,t.anchor)||Be.includes(e,t.focus))return!0;var[n,r]=Be.edges(e),[o,a]=Be.edges(t);return It.isBefore(n,o)&&It.isAfter(r,a)}var[i,s]=Be.edges(e),u=!1,c=!1;return It.isPoint(t)?(u=It.compare(t,i)>=0,c=It.compare(t,s)<=0):(u=ce.compare(t,i.path)>=0,c=ce.compare(t,s.path)<=0),u&&c},intersection(e,t){var n=Jo(e,KI),[r,o]=Be.edges(e),[a,i]=Be.edges(t),s=It.isBefore(r,a)?a:r,u=It.isBefore(o,i)?o:i;return It.isBefore(u,s)?null:QI({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return It.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return It.equals(t,n)},isExpanded(e){return!Be.isCollapsed(e)},isForward(e){return!Be.isBackward(e)},isRange(e){return Un(e)&&It.isPoint(e.anchor)&&It.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Be.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ph(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,a,i;if(o==="inward"){var s=Be.isCollapsed(r);Be.isForward(r)?(a="forward",i=s?a:"backward"):(a="backward",i=s?a:"forward")}else o==="outward"?Be.isForward(r)?(a="backward",i="forward"):(a="forward",i="backward"):(a=o,i=o);var u=It.transform(r.anchor,t,{affinity:a}),c=It.transform(r.focus,t,{affinity:i});if(!u||!c)return null;r.anchor=u,r.focus=c})}},u2=e=>Un(e)&&Ye.isNodeList(e.children)&&!O.isEditor(e),at={isAncestor(e){return Un(e)&&Ye.isNodeList(e.children)},isElement:u2,isElementList(e){return Array.isArray(e)&&e.every(t=>at.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return u2(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},qI=["children"],e8=["text"],c2=new WeakMap,Ye={ancestor(e,t){var n=Ye.get(e,t);if(lt.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Tn.stringify(n)));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of ce.ancestors(t,n)){var o=Ye.ancestor(e,r),a=[o,r];yield a}},child(e,t){if(lt.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Tn.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Tn.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Ye.ancestor(e,t),{children:a}=o,i=r?a.length-1:0;r?i>=0:i<a.length;){var s=Ye.child(o,i),u=t.concat(i);yield[s,u],i=r?i-1:i+1}},common(e,t,n){var r=ce.common(t,n),o=Ye.get(e,r);return[o,r]},descendant(e,t){var n=Ye.get(e,t);if(O.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Tn.stringify(n)));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Ye.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Ye.nodes(e,t))at.isElement(n)&&(yield[n,r])},extractProps(e){if(at.isAncestor(e)){var t=Jo(e,qI);return t}else{var t=Jo(e,e8);return t}},first(e,t){for(var n=t.slice(),r=Ye.get(e,n);r&&!(lt.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(lt.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Tn.stringify(e)));var n=Ph({children:e.children},r=>{var[o,a]=Be.edges(t),i=Ye.nodes(r,{reverse:!0,pass:v=>{var[,y]=v;return!Be.includes(t,y)}});for(var[,s]of i){if(!Be.includes(t,s)){var u=Ye.parent(r,s),c=s[s.length-1];u.children.splice(c,1)}if(ce.equals(s,a.path)){var d=Ye.leaf(r,s);d.text=d.text.slice(0,a.offset)}if(ce.equals(s,o.path)){var g=Ye.leaf(r,s);g.text=g.text.slice(o.offset)}}O.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(lt.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Tn.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(lt.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return lt.isText(e)||at.isElement(e)||O.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=c2.get(e);if(t!==void 0)return t;var n=e.every(r=>Ye.isNode(r));return c2.set(e,n),n},last(e,t){for(var n=t.slice(),r=Ye.get(e,n);r&&!(lt.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Ye.get(e,t);if(!lt.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Tn.stringify(n)));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of ce.levels(t,n)){var o=Ye.get(e,r);yield[o,r]}},matches(e,t){return at.isElement(e)&&at.isElementProps(t)&&at.matches(e,t)||lt.isText(e)&<.isTextProps(t)&<.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:a}=t,i=new Set,s=[],u=e;!(a&&(r?ce.isBefore(s,a):ce.isAfter(s,a)));){if(i.has(u)||(yield[u,s]),!i.has(u)&&!lt.isText(u)&&u.children.length!==0&&(n==null||n([u,s])===!1)){i.add(u);var c=r?u.children.length-1:0;ce.isAncestor(s,o)&&(c=o[s.length]),s=s.concat(c),u=Ye.get(e,s);continue}if(s.length===0)break;if(!r){var d=ce.next(s);if(Ye.has(e,d)){s=d,u=Ye.get(e,s);continue}}if(r&&s[s.length-1]!==0){var g=ce.previous(s);s=g,u=Ye.get(e,s);continue}s=ce.parent(s),u=Ye.get(e,s),i.add(u)}},parent(e,t){var n=ce.parent(t),r=Ye.get(e,n);if(lt.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return lt.isText(e)?e.text:e.children.map(Ye.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Ye.nodes(e,t))lt.isText(n)&&(yield[n,r])}};function d2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Su={isNodeOperation(e){return Su.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Un(e))return!1;switch(e.type){case"insert_node":return ce.isPath(e.path)&&Ye.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&ce.isPath(e.path);case"merge_node":return typeof e.position=="number"&&ce.isPath(e.path)&&Un(e.properties);case"move_node":return ce.isPath(e.path)&&ce.isPath(e.newPath);case"remove_node":return ce.isPath(e.path)&&Ye.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&ce.isPath(e.path);case"set_node":return ce.isPath(e.path)&&Un(e.properties)&&Un(e.newProperties);case"set_selection":return e.properties===null&&Be.isRange(e.newProperties)||e.newProperties===null&&Be.isRange(e.properties)||Un(e.properties)&&Un(e.newProperties);case"split_node":return ce.isPath(e.path)&&typeof e.position=="number"&&Un(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Su.isOperation(t))},isSelectionOperation(e){return Su.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Su.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return cn(cn({},e),{},{type:"remove_node"});case"insert_text":return cn(cn({},e),{},{type:"remove_text"});case"merge_node":return cn(cn({},e),{},{type:"split_node",path:ce.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(ce.equals(t,n))return e;if(ce.isSibling(n,t))return cn(cn({},e),{},{path:t,newPath:n});var r=ce.transform(n,e),o=ce.transform(ce.next(n),e);return cn(cn({},e),{},{path:r,newPath:o})}case"remove_node":return cn(cn({},e),{},{type:"insert_node"});case"remove_text":return cn(cn({},e),{},{type:"insert_text"});case"set_node":{var{properties:a,newProperties:i}=e;return cn(cn({},e),{},{properties:i,newProperties:a})}case"set_selection":{var{properties:s,newProperties:u}=e;return s==null?cn(cn({},e),{},{properties:u,newProperties:null}):u==null?cn(cn({},e),{},{properties:null,newProperties:s}):cn(cn({},e),{},{properties:u,newProperties:s})}case"split_node":return cn(cn({},e),{},{type:"merge_node",path:ce.next(e.path)})}}},f2=new WeakMap,t8=e=>{var t=f2.get(e);if(t!==void 0)return t;if(!Un(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Un(e.marks))&&(e.selection===null||Be.isRange(e.selection))&&Ye.isNodeList(e.children)&&Su.isOperationList(e.operations);return f2.set(e,n),n},O={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return t8(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)}},n8={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(ce.isPath)}};function g2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function p2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var It={compare(e,t){var n=ce.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return It.compare(e,t)===1},isBefore(e,t){return It.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&ce.equals(e.path,t.path)},isPoint(e){return Un(e)&&typeof e.offset=="number"&&ce.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ph(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:a,offset:i}=r;switch(t.type){case"insert_node":case"move_node":{r.path=ce.transform(a,t,n);break}case"insert_text":{ce.equals(t.path,a)&&(t.offset<i||t.offset===i&&o==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{ce.equals(t.path,a)&&(r.offset+=t.position),r.path=ce.transform(a,t,n);break}case"remove_text":{ce.equals(t.path,a)&&t.offset<=i&&(r.offset-=Math.min(i-t.offset,t.text.length));break}case"remove_node":{if(ce.equals(t.path,a)||ce.isAncestor(t.path,a))return null;r.path=ce.transform(a,t,n);break}case"split_node":{if(ce.equals(t.path,a)){if(t.position===i&&o==null)return null;(t.position<i||t.position===i&&o==="forward")&&(r.offset-=t.position,r.path=ce.transform(a,t,p2(p2({},n),{},{affinity:"forward"})))}else r.path=ce.transform(a,t,n);break}}})}},h2=void 0,Tn={setScrubber(e){h2=e},stringify(e){return JSON.stringify(e,h2)}},r8=["text"],o8=["anchor","focus"];function m2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lt={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(a){var i=Jo(a,r8);return i}return s2(r?o(e):e,r?o(t):t)},isText(e){return Un(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>lt.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Ko({},e)];for(var r of t){var o=Jo(r,o8),[a,i]=Be.edges(r),s=[],u=0,c=a.offset,d=i.offset;for(var g of n){var{length:v}=g.text,y=u;if(u+=v,c<=y&&u<=d){Object.assign(g,o),s.push(g);continue}if(c!==d&&(c===u||d===y)||c>u||d<y||d===y&&y!==0){s.push(g);continue}var C=g,h=void 0,w=void 0;if(d<u){var E=d-y;w=Ko(Ko({},C),{},{text:C.text.slice(E)}),C=Ko(Ko({},C),{},{text:C.text.slice(0,E)})}if(c>y){var j=c-y;h=Ko(Ko({},C),{},{text:C.text.slice(0,j)}),C=Ko(Ko({},C),{},{text:C.text.slice(j)})}Object.assign(C,o),h&&s.push(h),s.push(C),w&&s.push(w)}n=s}return n}},Bh=e=>e.selection?e.selection:e.children.length>0?O.end(e,[]):[0],Bs=(e,t)=>{var[n]=O.node(e,t);return r=>r===n},Nh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?c8(t):t,a=Ct.None,i=Ct.None,s=0,u=null,c=null;for(var d of o){var g=d.codePointAt(0);if(!g)break;var v=w8(d,g);if([a,i]=r?[i,v]:[v,a],Ns(a,Ct.ZWJ)&&Ns(i,Ct.ExtPict)&&(r?u=v2(t.substring(0,s)):u=v2(t.substring(0,t.length-s)),!u)||Ns(a,Ct.RI)&&Ns(i,Ct.RI)&&(c!==null?c=!c:r?c=!0:c=A8(t.substring(0,t.length-s)),!c)||a!==Ct.None&&i!==Ct.None&&S8(a,i))break;s+=d.length}return s||1},a8=/\s/,i8=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,s8=/['\u2018\u2019]/,l8=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var a=Nh(t,n),[i,s]=Oh(t,a,n);if(u8(i,s,n))o=!0,r+=a;else if(!o)r+=a;else break;t=s}return r},Oh=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},u8=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(a8.test(t))return!1;if(s8.test(t)){var o=Nh(n,r),[a,i]=Oh(n,o,r);if(e(a,i,r))return!0}return!i8.test(t)},c8=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(f8(o.charCodeAt(0))){var a=t.charAt(n-r-1);if(d8(a.charCodeAt(0))){yield a+o,r++;continue}}yield o}},d8=e=>e>=55296&&e<=56319,f8=e=>e>=56320&&e<=57343,Ct;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(Ct||(Ct={}));var g8=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,p8=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,h8=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,m8=/^[\u1100-\u115F\uA960-\uA97C]$/,v8=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,b8=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,x8=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,y8=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,C8=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,w8=(e,t)=>{var n=Ct.Any;return e.search(g8)!==-1&&(n|=Ct.Extend),t===8205&&(n|=Ct.ZWJ),t>=127462&&t<=127487&&(n|=Ct.RI),e.search(p8)!==-1&&(n|=Ct.Prepend),e.search(h8)!==-1&&(n|=Ct.SpacingMark),e.search(m8)!==-1&&(n|=Ct.L),e.search(v8)!==-1&&(n|=Ct.V),e.search(b8)!==-1&&(n|=Ct.T),e.search(x8)!==-1&&(n|=Ct.LV),e.search(y8)!==-1&&(n|=Ct.LVT),e.search(C8)!==-1&&(n|=Ct.ExtPict),n};function Ns(e,t){return(e&t)!==0}var E8=[[Ct.L,Ct.L|Ct.V|Ct.LV|Ct.LVT],[Ct.LV|Ct.V,Ct.V|Ct.T],[Ct.LVT|Ct.T,Ct.T],[Ct.Any,Ct.Extend|Ct.ZWJ],[Ct.Any,Ct.SpacingMark],[Ct.Prepend,Ct.Any],[Ct.ZWJ,Ct.ExtPict],[Ct.RI,Ct.RI]];function S8(e,t){return E8.findIndex(n=>Ns(e,n[0])&&Ns(t,n[1]))===-1}var D8=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,v2=e=>e.search(D8)!==-1,F8=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,A8=e=>{var t=e.match(F8);if(t===null)return!1;var n=t[0].length/2;return n%2===1},j8={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};O.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=Bh(e)}=n;if(ce.isPath(o)&&(o=O.range(e,o)),Be.isRange(o))if(Be.isCollapsed(o))o=o.anchor;else{var a=Be.end(o);if(!r&&O.void(e,{at:a}))return;var i=Be.start(o),s=O.pointRef(e,i),u=O.pointRef(e,a);ze.delete(e,{at:o,voids:r});var c=s.unref(),d=u.unref();o=c||d,ze.setSelection(e,{anchor:o,focus:o})}if(!(!r&&O.void(e,{at:o})||O.elementReadOnly(e,{at:o}))){var{path:g,offset:v}=o;t.length>0&&e.apply({type:"insert_text",path:g,offset:v,text:t})}})}};function b2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ze=Kd(Kd(Kd(Kd({},ZI),XI),YI),j8),I8=(e,t)=>{for(var n of O.pathRefs(e))HI.transform(n,t);for(var r of O.pointRefs(e))GI.transform(r,t);for(var o of O.rangeRefs(e))zI.transform(o,t);var a=Yd.get(e)||[],i=Jd.get(e)||new Set,s,u,c=C=>{if(C){var h=C.join(",");u.has(h)||(u.add(h),s.push(C))}};if(ce.operationCanTransformPath(t)){s=[],u=new Set;for(var d of a){var g=ce.transform(d,t);c(g)}}else s=a,u=i;var v=e.getDirtyPaths(t);for(var y of v)c(y);Yd.set(e,s),Jd.set(e,u),ze.transform(e,t),e.operations.push(t),O.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),wu.get(e)||(wu.set(e,!0),Promise.resolve().then(()=>{wu.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},T8=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return ce.levels(n)}case"insert_node":{var{node:r,path:o}=t,a=ce.levels(o),i=lt.isText(r)?[]:Array.from(Ye.nodes(r),me=>{var[,ye]=me;return o.concat(ye)});return[...a,...i]}case"merge_node":{var{path:s}=t,u=ce.ancestors(s),c=ce.previous(s);return[...u,c]}case"move_node":{var{path:d,newPath:g}=t;if(ce.equals(d,g))return[];var v=[],y=[];for(var C of ce.ancestors(d)){var h=ce.transform(C,t);v.push(h)}for(var w of ce.ancestors(g)){var E=ce.transform(w,t);y.push(E)}var j=y[y.length-1],P=g[g.length-1],N=j.concat(P);return[...v,...y,N]}case"remove_node":{var{path:$}=t,G=ce.ancestors($);return[...G]}case"split_node":{var{path:V}=t,J=ce.levels(V),K=ce.next(V);return[...J,K]}default:return[]}},k8=e=>{var{selection:t}=e;return t?Ye.fragment(e,t):[]},P8=(e,t)=>{var[n,r]=t;if(!lt.isText(n)){if(at.isElement(n)&&n.children.length===0){var o={text:""};ze.insertNodes(e,o,{at:r.concat(0),voids:!0});return}for(var a=O.isEditor(n)?!1:at.isElement(n)&&(e.isInline(n)||n.children.length===0||lt.isText(n.children[0])||e.isInline(n.children[0])),i=0,s=0;s<n.children.length;s++,i++){var u=Ye.get(e,r);if(!lt.isText(u)){var c=u.children[i],d=u.children[i-1],g=s===n.children.length-1,v=lt.isText(c)||at.isElement(c)&&e.isInline(c);if(v!==a)ze.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(at.isElement(c)){if(e.isInline(c)){if(d==null||!lt.isText(d)){var y={text:""};ze.insertNodes(e,y,{at:r.concat(i),voids:!0}),i++}else if(g){var C={text:""};ze.insertNodes(e,C,{at:r.concat(i+1),voids:!0}),i++}}}else d!=null&<.isText(d)&&(lt.equals(c,d,{loose:!0})?(ze.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):d.text===""?(ze.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):c.text===""&&(ze.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}}},B8=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=r*42;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},N8=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:o="lowest",at:a=t.selection,match:i}=n;if(a){var s=O.path(t,a),u=o==="lowest";for(var[c,d]of O.levels(t,{at:s,voids:r,match:i,reverse:u}))if(!lt.isText(c)){if(Be.isRange(a)){if(ce.isAncestor(d,a.anchor.path)&&ce.isAncestor(d,a.focus.path))return[c,d]}else if(!ce.equals(s,d))return[c,d]}}};function x2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function y2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var O8=(e,t,n)=>{var{selection:r}=e;if(r){var o=(g,v)=>{if(!lt.isText(g))return!1;var[y,C]=O.parent(e,v);return!e.isVoid(y)||e.markableVoid(y)},a=Be.isExpanded(r),i=!1;if(!a){var[s,u]=O.node(e,r);if(s&&o(s,u)){var[c]=O.parent(e,u);i=c&&e.markableVoid(c)}}if(a||i)ze.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var d=y2(y2({},O.marks(e)||{}),{},{[t]:n});e.marks=d,wu.get(e)||e.onChange()}}};function C2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $8=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=O.point(t,n,{edge:"end"}),a=O.end(t,[]),i={anchor:o,focus:a},{distance:s=1}=r,u=0,c;for(var d of O.positions(t,w2(w2({},r),{},{at:i}))){if(u>s)break;u!==0&&(c=d),u++}return c};function E2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function S2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var R8=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=O.start(t,[]),a=O.point(t,n,{edge:"start"}),i={anchor:o,focus:a},{distance:s=1}=r,u=0,c;for(var d of O.positions(t,S2(S2({},r),{},{at:i,reverse:!0}))){if(u>s)break;u!==0&&(c=d),u++}return c},M8=(e,t)=>{var{selection:n}=e;n&&Be.isCollapsed(n)&&ze.delete(e,{unit:t,reverse:!0})},L8=(e,t)=>{var{selection:n}=e;n&&Be.isCollapsed(n)&&ze.delete(e,{unit:t})},_8=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&Be.isExpanded(r)&&ze.delete(t,{reverse:n==="backward"})},V8=(e,t)=>[O.start(e,t),O.end(e,t)];function D2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function F2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var W8=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return O.above(t,F2(F2({},n),{},{match:r=>at.isElement(r)&&O.isElementReadOnly(t,r)}))},H8=(e,t)=>O.point(e,t,{edge:"end"}),G8=(e,t)=>{var n=O.path(e,t,{edge:"start"});return O.node(e,n)},z8=(e,t)=>{var n=O.range(e,t);return Ye.fragment(e,n)};function A2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function j2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var U8=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return O.above(t,j2(j2({},n),{},{match:r=>at.isElement(r)&&O.isVoid(t,r)}))},Z8=(e,t)=>t.children.some(n=>at.isElement(n)&&O.isBlock(e,n)),X8=(e,t)=>t.children.some(n=>lt.isText(n)||O.isInline(e,n)),Y8=(e,t)=>Ye.has(e,t),J8=(e,t)=>t.children.every(n=>lt.isText(n)),K8=e=>{ze.splitNodes(e,{always:!0})},Q8=(e,t,n)=>{ze.insertNodes(e,t,n)},q8=e=>{ze.splitNodes(e,{always:!0})};function I2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:a}=t;if(o){if(a){var i=eT({text:n},a);ze.insertNodes(t,i,{at:r.at,voids:r.voids})}else ze.insertText(t,n,r);t.marks=null}},nT=(e,t)=>!e.isInline(t),rT=(e,t,n)=>O.isStart(e,t,n)||O.isEnd(e,t,n),oT=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&<.isText(r)&&r.text===""&&!e.isVoid(t)},aT=(e,t,n)=>{var r=O.end(e,n);return It.equals(t,r)},iT=e=>{var t=n2.get(e);return t===void 0?!0:t},sT=(e,t,n)=>{if(t.offset!==0)return!1;var r=O.start(e,n);return It.equals(t,r)},lT=(e,t)=>{var n=O.path(e,t,{edge:"end"});return O.node(e,n)},uT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=O.path(t,n,r),a=Ye.leaf(t,o);return[a,o]};function*cT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),!!n){var i=[],s=O.path(e,n);for(var[u,c]of Ye.levels(e,s))if(a(u,c)&&(i.push([u,c]),!o&&at.isElement(u)&&O.isVoid(e,u)))break;r&&i.reverse(),yield*i}}var dT=["text"],fT=["text"],gT=function(t){var{marks:n,selection:r}=t;if(!r)return null;if(n)return n;if(Be.isExpanded(r)){var[o]=O.nodes(t,{match:lt.isText});if(o){var[a]=o,i=Jo(a,dT);return i}else return{}}var{anchor:s}=r,{path:u}=s,[c]=O.leaf(t,u);if(s.offset===0){var d=O.previous(t,{at:u,match:lt.isText}),g=O.above(t,{match:E=>at.isElement(E)&&O.isVoid(t,E)&&t.markableVoid(E)});if(!g){var v=O.above(t,{match:E=>at.isElement(E)&&O.isBlock(t,E)});if(d&&v){var[y,C]=d,[,h]=v;ce.isAncestor(h,C)&&(c=y)}}}var w=Jo(c,fT);return w},pT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:a,at:i=t.selection}=n;if(i){var s=O.after(t,i,{voids:o});if(s){var[,u]=O.last(t,[]),c=[s.path,u];if(ce.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(a==null)if(ce.isPath(i)){var[d]=O.parent(t,i);a=v=>d.children.includes(v)}else a=()=>!0;var[g]=O.nodes(t,{at:c,match:a,mode:r,voids:o});return g}}},hT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=O.path(t,n,r),a=Ye.get(t,o);return[a,o]};function*mT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:a=!1,voids:i=!1,ignoreNonSelectable:s=!1}=t,{match:u}=t;if(u||(u=()=>!0),!!n){var c,d;if(n8.isSpan(n))c=n[0],d=n[1];else{var g=O.path(e,n,{edge:"start"}),v=O.path(e,n,{edge:"end"});c=a?v:g,d=a?g:v}var y=Ye.nodes(e,{reverse:a,from:c,to:d,pass:N=>{var[$]=N;return at.isElement($)?!!(!i&&(O.isVoid(e,$)||O.isElementReadOnly(e,$))||s&&!O.isSelectable(e,$)):!1}}),C=[],h;for(var[w,E]of y)if(!(s&&at.isElement(w)&&!O.isSelectable(e,w))){var j=h&&ce.compare(E,h[1])===0;if(!(r==="highest"&&j)){if(!u(w,E)){if(o&&!j&<.isText(w))return;continue}if(r==="lowest"&&j){h=[w,E];continue}var P=r==="lowest"?h:[w,E];P&&(o?C.push(P):yield P),h=[w,E]}}r==="lowest"&&h&&(o?C.push(h):yield h),o&&(yield*C)}}var vT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,a=d=>Yd.get(d)||[],i=d=>Jd.get(d)||new Set,s=d=>{var g=a(d).pop(),v=g.join(",");return i(d).delete(v),g};if(O.isNormalizing(t)){if(r){var u=Array.from(Ye.nodes(t),d=>{var[,g]=d;return g}),c=new Set(u.map(d=>d.join(",")));Yd.set(t,u),Jd.set(t,c)}a(t).length!==0&&O.withoutNormalizing(t,()=>{for(var d of a(t))if(Ye.has(t,d)){var g=O.node(t,d),[v,y]=g;at.isElement(v)&&v.children.length===0&&t.normalizeNode(g,{operation:o})}for(var C=a(t),h=C.length,w=0;C.length!==0;){if(!t.shouldNormalize({dirtyPaths:C,iteration:w,initialDirtyPathsLength:h,operation:o}))return;var E=s(t);if(Ye.has(t,E)){var j=O.node(t,E);t.normalizeNode(j,{operation:o})}w++,C=a(t)}})}},bT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=O.path(t,n,r),a=ce.parent(o),i=O.node(t,a);return i},xT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,a={current:n,affinity:o,unref(){var{current:s}=a,u=O.pathRefs(t);return u.delete(a),a.current=null,s}},i=O.pathRefs(t);return i.add(a),a},yT=e=>{var t=r2.get(e);return t||(t=new Set,r2.set(e,t)),t},CT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:a}=r;if(ce.isPath(n)){if(a==="start"){var[,i]=Ye.first(t,n);n=i}else if(a==="end"){var[,s]=Ye.last(t,n);n=s}}return Be.isRange(n)&&(a==="start"?n=Be.start(n):a==="end"?n=Be.end(n):n=ce.common(n.anchor.path,n.focus.path)),It.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},wT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,a={current:n,affinity:o,unref(){var{current:s}=a,u=O.pointRefs(t);return u.delete(a),a.current=null,s}},i=O.pointRefs(t);return i.add(a),a},ET=e=>{var t=o2.get(e);return t||(t=new Set,o2.set(e,t)),t},ST=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=r;if(ce.isPath(n)){var a;if(o==="end"){var[,i]=Ye.last(t,n);a=i}else{var[,s]=Ye.first(t,n);a=s}var u=Ye.get(t,a);if(!lt.isText(u))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(n,"] because it has no ").concat(o," text node."));return{path:a,offset:o==="end"?u.text.length:0}}if(Be.isRange(n)){var[c,d]=Be.edges(n);return o==="start"?c:d}return n};function*DT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:a=!1,ignoreNonSelectable:i=!1}=t;if(!n)return;var s=O.range(e,n),[u,c]=Be.edges(s),d=o?c:u,g=!1,v="",y=0,C=0,h=0;for(var[w,E]of O.nodes(e,{at:n,reverse:o,voids:a,ignoreNonSelectable:i})){if(at.isElement(w)){if(!a&&(e.isVoid(w)||e.isElementReadOnly(w))){yield O.start(e,E);continue}if(e.isInline(w))continue;if(O.hasInlines(e,w)){var j=ce.isAncestor(E,c.path)?c:O.end(e,E),P=ce.isAncestor(E,u.path)?u:O.start(e,E);v=O.string(e,{anchor:P,focus:j},{voids:a}),g=!0}}if(lt.isText(w)){var N=ce.equals(E,d.path);for(N?(C=o?d.offset:w.text.length-d.offset,h=d.offset):(C=w.text.length,h=o?C:0),(N||g||r==="offset")&&(yield{path:E,offset:h},g=!1);;){if(y===0){if(v==="")break;y=$(v,r,o),v=Oh(v,y,o)[1]}if(h=o?h-y:h+y,C=C-y,C<0){y=-C;break}y=0,yield{path:E,offset:h}}}}function $(G,V,J){return V==="character"?Nh(G,J):V==="word"?l8(G,J):V==="line"||V==="block"?G.length:1}}var FT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:a,at:i=t.selection}=n;if(i){var s=O.before(t,i,{voids:o});if(s){var[,u]=O.first(t,[]),c=[s.path,u];if(ce.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(ce.isPath(i)){var[d]=O.parent(t,i);a=v=>d.children.includes(v)}else a=()=>!0;var[g]=O.nodes(t,{reverse:!0,at:c,match:a,mode:r,voids:o});return g}}},AT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,a={current:n,affinity:o,unref(){var{current:s}=a,u=O.rangeRefs(t);return u.delete(a),a.current=null,s}},i=O.rangeRefs(t);return i.add(a),a},jT=e=>{var t=a2.get(e);return t||(t=new Set,a2.set(e,t)),t},IT=(e,t,n)=>{if(Be.isRange(t)&&!n)return t;var r=O.start(e,t),o=O.end(e,n||t);return{anchor:r,focus:o}};function T2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function TT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kT=(e,t)=>{var{selection:n}=e;if(n){var r=(d,g)=>{if(!lt.isText(d))return!1;var[v,y]=O.parent(e,g);return!e.isVoid(v)||e.markableVoid(v)},o=Be.isExpanded(n),a=!1;if(!o){var[i,s]=O.node(e,n);if(i&&r(i,s)){var[u]=O.parent(e,s);a=u&&e.markableVoid(u)}}if(o||a)ze.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var c=TT({},O.marks(e)||{});delete c[t],e.marks=c,wu.get(e)||e.onChange()}}},PT=(e,t)=>{n2.set(e,t)},BT=(e,t)=>O.point(e,t,{edge:"start"}),NT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,a=O.range(t,n),[i,s]=Be.edges(a),u="";for(var[c,d]of O.nodes(t,{at:a,match:lt.isText,voids:o})){var g=c.text;ce.equals(d,s.path)&&(g=g.slice(0,s.offset)),ce.equals(d,i.path)&&(g=g.slice(i.offset)),u+=g}return u},OT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[a,i]=Be.edges(n);if(a.offset!==0||i.offset!==0||Be.isCollapsed(n)||ce.hasPrevious(i.path))return n;var s=O.above(t,{at:i,match:C=>at.isElement(C)&&O.isBlock(t,C),voids:o}),u=s?s[1]:[],c=O.start(t,a),d={anchor:c,focus:i},g=!0;for(var[v,y]of O.nodes(t,{at:d,match:lt.isText,reverse:!0,voids:o})){if(g){g=!1;continue}if(v.text!==""||ce.isBefore(y,u)){i={path:y,offset:v.text.length};break}}return{anchor:a,focus:i}},$T=(e,t)=>{var n=O.isNormalizing(e);O.setNormalizing(e,!1);try{t()}finally{O.setNormalizing(e,n)}O.normalize(e)},RT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O.withoutNormalizing(t,()=>{var r,o,{reverse:a=!1,unit:i="character",distance:s=1,voids:u=!1}=n,{at:c=t.selection,hanging:d=!1}=n;if(c){var g=!1;if(Be.isRange(c)&&Be.isCollapsed(c)&&(g=!0,c=c.anchor),It.isPoint(c)){var v=O.void(t,{at:c,mode:"highest"});if(!u&&v){var[,y]=v;c=y}else{var C={unit:i,distance:s},h=a?O.before(t,c,C)||O.start(t,[]):O.after(t,c,C)||O.end(t,[]);c={anchor:c,focus:h},d=!0}}if(ce.isPath(c)){ze.removeNodes(t,{at:c,voids:u});return}if(!Be.isCollapsed(c)){if(!d){var[,w]=Be.edges(c),E=O.end(t,[]);It.equals(w,E)||(c=O.unhangRange(t,c,{voids:u}))}var[j,P]=Be.edges(c),N=O.above(t,{match:ot=>at.isElement(ot)&&O.isBlock(t,ot),at:j,voids:u}),$=O.above(t,{match:ot=>at.isElement(ot)&&O.isBlock(t,ot),at:P,voids:u}),G=N&&$&&!ce.equals(N[1],$[1]),V=ce.equals(j.path,P.path),J=u?null:(r=O.void(t,{at:j,mode:"highest"}))!==null&&r!==void 0?r:O.elementReadOnly(t,{at:j,mode:"highest"}),K=u?null:(o=O.void(t,{at:P,mode:"highest"}))!==null&&o!==void 0?o:O.elementReadOnly(t,{at:P,mode:"highest"});if(J){var me=O.before(t,j);me&&N&&ce.isAncestor(N[1],me.path)&&(j=me)}if(K){var ye=O.after(t,P);ye&&$&&ce.isAncestor($[1],ye.path)&&(P=ye)}var ne=[],fe;for(var R of O.nodes(t,{at:c,voids:u})){var[W,oe]=R;fe&&ce.compare(oe,fe)===0||(!u&&at.isElement(W)&&(O.isVoid(t,W)||O.isElementReadOnly(t,W))||!ce.isCommon(oe,j.path)&&!ce.isCommon(oe,P.path))&&(ne.push(R),fe=oe)}var pe=Array.from(ne,ot=>{var[,ht]=ot;return O.pathRef(t,ht)}),se=O.pointRef(t,j),Z=O.pointRef(t,P),te="";if(!V&&!J){var U=se.current,[Q]=O.leaf(t,U),{path:he}=U,{offset:H}=j,ge=Q.text.slice(H);ge.length>0&&(t.apply({type:"remove_text",path:he,offset:H,text:ge}),te=ge)}if(pe.reverse().map(ot=>ot.unref()).filter(ot=>ot!==null).forEach(ot=>ze.removeNodes(t,{at:ot,voids:u})),!K){var ae=Z.current,[be]=O.leaf(t,ae),{path:Me}=ae,Ne=V?j.offset:0,We=be.text.slice(Ne,P.offset);We.length>0&&(t.apply({type:"remove_text",path:Me,offset:Ne,text:We}),te=We)}!V&&G&&Z.current&&se.current&&ze.mergeNodes(t,{at:Z.current,hanging:!0,voids:u}),g&&a&&i==="character"&&te.length>1&&te.match(/[\u0E00-\u0E7F]+/)&&ze.insertText(t,te.slice(0,te.length-s));var Ke=se.unref(),$e=Z.unref(),qe=a?Ke||$e:$e||Ke;n.at==null&&qe&&ze.select(t,qe)}}})},MT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};O.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!1}=r,{at:i=Bh(t)}=r;if(n.length){if(Be.isRange(i))if(o||(i=O.unhangRange(t,i,{voids:a})),Be.isCollapsed(i))i=i.anchor;else{var[,s]=Be.edges(i);if(!a&&O.void(t,{at:s}))return;var u=O.pointRef(t,s);ze.delete(t,{at:i}),i=u.unref()}else ce.isPath(i)&&(i=O.start(t,i));if(!(!a&&O.void(t,{at:i}))){var c=O.above(t,{at:i,match:H=>at.isElement(H)&&O.isInline(t,H),mode:"highest",voids:a});if(c){var[,d]=c;if(O.isEnd(t,i,d)){var g=O.after(t,d);i=g}else if(O.isStart(t,i,d)){var v=O.before(t,d);i=v}}var y=O.above(t,{match:H=>at.isElement(H)&&O.isBlock(t,H),at:i,voids:a}),[,C]=y,h=O.isStart(t,i,C),w=O.isEnd(t,i,C),E=h&&w,j=!h||h&&w,P=!w,[,N]=Ye.first({children:n},[]),[,$]=Ye.last({children:n},[]),G=[],V=H=>{var[ge,ae]=H,be=ae.length===0;return be?!1:E?!0:!(j&&ce.isAncestor(ae,N)&&at.isElement(ge)&&!t.isVoid(ge)&&!t.isInline(ge)||P&&ce.isAncestor(ae,$)&&at.isElement(ge)&&!t.isVoid(ge)&&!t.isInline(ge))};for(var J of Ye.nodes({children:n},{pass:V}))V(J)&&G.push(J);var K=[],me=[],ye=[],ne=!0,fe=!1;for(var[R]of G)at.isElement(R)&&!t.isInline(R)?(ne=!1,fe=!0,me.push(R)):ne?K.push(R):ye.push(R);var[W]=O.nodes(t,{at:i,match:H=>lt.isText(H)||O.isInline(t,H),mode:"highest",voids:a}),[,oe]=W,pe=O.isStart(t,i,oe),se=O.isEnd(t,i,oe),Z=O.pathRef(t,w&&!ye.length?ce.next(C):C),te=O.pathRef(t,se?ce.next(oe):oe);ze.splitNodes(t,{at:i,match:H=>fe?at.isElement(H)&&O.isBlock(t,H):lt.isText(H)||O.isInline(t,H),mode:fe?"lowest":"highest",always:fe&&(!h||K.length>0)&&(!w||ye.length>0),voids:a});var U=O.pathRef(t,!pe||pe&&se?ce.next(oe):oe);if(ze.insertNodes(t,K,{at:U.current,match:H=>lt.isText(H)||O.isInline(t,H),mode:"highest",voids:a}),E&&!K.length&&me.length&&!ye.length&&ze.delete(t,{at:C,voids:a}),ze.insertNodes(t,me,{at:Z.current,match:H=>at.isElement(H)&&O.isBlock(t,H),mode:"lowest",voids:a}),ze.insertNodes(t,ye,{at:te.current,match:H=>lt.isText(H)||O.isInline(t,H),mode:"highest",voids:a}),!r.at){var Q;if(ye.length>0&&te.current?Q=ce.previous(te.current):me.length>0&&Z.current?Q=ce.previous(Z.current):U.current&&(Q=ce.previous(U.current)),Q){var he=O.end(t,Q);ze.select(t,he)}}U.unref(),Z.unref(),te.unref()}}})},LT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:o}=t;if(o){if(r==="anchor")ze.select(t,o.anchor);else if(r==="focus")ze.select(t,o.focus);else if(r==="start"){var[a]=Be.edges(o);ze.select(t,a)}else if(r==="end"){var[,i]=Be.edges(o);ze.select(t,i)}}else return},_T=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},VT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:o=1,unit:a="character",reverse:i=!1}=n,{edge:s=null}=n;if(r){s==="start"&&(s=Be.isBackward(r)?"focus":"anchor"),s==="end"&&(s=Be.isBackward(r)?"anchor":"focus");var{anchor:u,focus:c}=r,d={distance:o,unit:a,ignoreNonSelectable:!0},g={};if(s==null||s==="anchor"){var v=i?O.before(t,u,d):O.after(t,u,d);v&&(g.anchor=v)}if(s==null||s==="focus"){var y=i?O.before(t,c,d):O.after(t,c,d);y&&(g.focus=y)}ze.setSelection(t,g)}},WT=(e,t)=>{var{selection:n}=e;if(t=O.range(e,t),n){ze.setSelection(e,t);return}if(!Be.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(Tn.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function k2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function P2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var HT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:a="both"}=r;if(o){a==="start"&&(a=Be.isBackward(o)?"focus":"anchor"),a==="end"&&(a=Be.isBackward(o)?"anchor":"focus");var{anchor:i,focus:s}=o,u=a==="anchor"?i:s;ze.setSelection(t,{[a==="anchor"?"anchor":"focus"]:P2(P2({},u),n)})}},GT=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var a in t)(a==="anchor"&&t.anchor!=null&&!It.equals(t.anchor,n.anchor)||a==="focus"&&t.focus!=null&&!It.equals(t.focus,n.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==n[a])&&(r[a]=n[a],o[a]=t[a]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},zT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};O.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!1,mode:i="lowest"}=r,{at:s,match:u,select:c}=r;if(Ye.isNode(n)&&(n=[n]),n.length!==0){var[d]=n;if(s||(s=Bh(t),c=!0),c==null&&(c=!1),Be.isRange(s))if(o||(s=O.unhangRange(t,s,{voids:a})),Be.isCollapsed(s))s=s.anchor;else{var[,g]=Be.edges(s),v=O.pointRef(t,g);ze.delete(t,{at:s}),s=v.unref()}if(It.isPoint(s)){u==null&&(lt.isText(d)?u=V=>lt.isText(V):t.isInline(d)?u=V=>lt.isText(V)||O.isInline(t,V):u=V=>at.isElement(V)&&O.isBlock(t,V));var[y]=O.nodes(t,{at:s.path,match:u,mode:i,voids:a});if(y){var[,C]=y,h=O.pathRef(t,C),w=O.isEnd(t,s,C);ze.splitNodes(t,{at:s,match:u,mode:i,voids:a});var E=h.unref();s=w?ce.next(E):E}else return}var j=ce.parent(s),P=s[s.length-1];if(!(!a&&O.void(t,{at:j}))){for(var N of n){var $=j.concat(P);P++,t.apply({type:"insert_node",path:$,node:N}),s=ce.next(s)}if(s=ce.previous(s),c){var G=O.end(t,s);G&&ze.select(t,G)}}}})},UT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:o="lowest",voids:a=!1}=n,{match:i}=n;if(i==null&&(i=ce.isPath(r)?Bs(t,r):N=>at.isElement(N)&&O.isBlock(t,N)),!!r){var s=O.nodes(t,{at:r,match:i,mode:o,voids:a}),u=Array.from(s,N=>{var[,$]=N;return O.pathRef(t,$)});for(var c of u){var d=c.unref();if(d.length<2)throw new Error("Cannot lift node at a path [".concat(d,"] because it has a depth of less than `2`."));var g=O.node(t,ce.parent(d)),[v,y]=g,C=d[d.length-1],{length:h}=v.children;if(h===1){var w=ce.next(y);ze.moveNodes(t,{at:d,to:w,voids:a}),ze.removeNodes(t,{at:y,voids:a})}else if(C===0)ze.moveNodes(t,{at:d,to:y,voids:a});else if(C===h-1){var E=ce.next(y);ze.moveNodes(t,{at:d,to:E,voids:a})}else{var j=ce.next(d),P=ce.next(y);ze.splitNodes(t,{at:j,voids:a}),ze.moveNodes(t,{at:d,to:P,voids:a})}}}})},ZT=["text"],XT=["children"],B2=(e,t)=>{if(at.isElement(t)){var n=t;return O.isVoid(e,t)?!0:n.children.length===1?B2(e,n.children[0]):!1}else return!O.isEditor(t)},YT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:a=!1,voids:i=!1,mode:s="lowest"}=n;if(o){if(r==null)if(ce.isPath(o)){var[u]=O.parent(t,o);r=me=>u.children.includes(me)}else r=me=>at.isElement(me)&&O.isBlock(t,me);if(!a&&Be.isRange(o)&&(o=O.unhangRange(t,o,{voids:i})),Be.isRange(o))if(Be.isCollapsed(o))o=o.anchor;else{var[,c]=Be.edges(o),d=O.pointRef(t,c);ze.delete(t,{at:o}),o=d.unref(),n.at==null&&ze.select(t,o)}var[g]=O.nodes(t,{at:o,match:r,voids:i,mode:s}),v=O.previous(t,{at:o,match:r,voids:i,mode:s});if(!(!g||!v)){var[y,C]=g,[h,w]=v;if(!(C.length===0||w.length===0)){var E=ce.next(w),j=ce.common(C,w),P=ce.isSibling(C,w),N=Array.from(O.levels(t,{at:C}),me=>{var[ye]=me;return ye}).slice(j.length).slice(0,-1),$=O.above(t,{at:C,mode:"highest",match:me=>N.includes(me)&&B2(t,me)}),G=$&&O.pathRef(t,$[1]),V,J;if(lt.isText(y)&<.isText(h)){var K=Jo(y,ZT);J=h.text.length,V=K}else if(at.isElement(y)&&at.isElement(h)){var K=Jo(y,XT);J=h.children.length,V=K}else throw new Error("Cannot merge the node at path [".concat(C,"] with the previous sibling because it is not the same kind: ").concat(Tn.stringify(y)," ").concat(Tn.stringify(h)));P||ze.moveNodes(t,{at:C,to:E,voids:i}),G&&ze.removeNodes(t,{at:G.current,voids:i}),at.isElement(h)&&O.isEmpty(t,h)||lt.isText(h)&&h.text===""&&w[w.length-1]!==0?ze.removeNodes(t,{at:w,voids:i}):t.apply({type:"merge_node",path:E,position:J,properties:V}),G&&G.unref()}}}})},JT=(e,t)=>{O.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:a=!1}=t,{match:i}=t;if(r){i==null&&(i=ce.isPath(r)?Bs(e,r):y=>at.isElement(y)&&O.isBlock(e,y));var s=O.pathRef(e,n),u=O.nodes(e,{at:r,match:i,mode:o,voids:a}),c=Array.from(u,y=>{var[,C]=y;return O.pathRef(e,C)});for(var d of c){var g=d.unref(),v=s.current;g.length!==0&&e.apply({type:"move_node",path:g,newPath:v}),s.current&&ce.isSibling(v,g)&&ce.isAfter(v,g)&&(s.current=ce.next(s.current))}s.unref()}})},KT=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:a="lowest"}=n,{at:i=t.selection,match:s}=n;if(i){s==null&&(s=ce.isPath(i)?Bs(t,i):y=>at.isElement(y)&&O.isBlock(t,y)),!r&&Be.isRange(i)&&(i=O.unhangRange(t,i,{voids:o}));var u=O.nodes(t,{at:i,match:s,mode:a,voids:o}),c=Array.from(u,y=>{var[,C]=y;return O.pathRef(t,C)});for(var d of c){var g=d.unref();if(g){var[v]=O.node(t,g);t.apply({type:"remove_node",path:g,node:v})}}}})},QT=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};O.withoutNormalizing(t,()=>{var{match:o,at:a=t.selection,compare:i,merge:s}=r,{hanging:u=!1,mode:c="lowest",split:d=!1,voids:g=!1}=r;if(a){if(o==null&&(o=ce.isPath(a)?Bs(t,a):J=>at.isElement(J)&&O.isBlock(t,J)),!u&&Be.isRange(a)&&(a=O.unhangRange(t,a,{voids:g})),d&&Be.isRange(a)){if(Be.isCollapsed(a)&&O.leaf(t,a.anchor)[0].text.length>0)return;var v=O.rangeRef(t,a,{affinity:"inward"}),[y,C]=Be.edges(a),h=c==="lowest"?"lowest":"highest",w=O.isEnd(t,C,C.path);ze.splitNodes(t,{at:C,match:o,mode:h,voids:g,always:!w});var E=O.isStart(t,y,y.path);ze.splitNodes(t,{at:y,match:o,mode:h,voids:g,always:!E}),a=v.unref(),r.at==null&&ze.select(t,a)}i||(i=(J,K)=>J!==K);for(var[j,P]of O.nodes(t,{at:a,match:o,mode:c,voids:g})){var N={},$={};if(P.length!==0){var G=!1;for(var V in n)V==="children"||V==="text"||i(n[V],j[V])&&(G=!0,j.hasOwnProperty(V)&&(N[V]=j[V]),s?n[V]!=null&&($[V]=s(j[V],n[V])):n[V]!=null&&($[V]=n[V]));G&&t.apply({type:"set_node",path:P,properties:N,newProperties:$})}}}})},qT=(e,t)=>{if(Be.isCollapsed(t))return t.anchor;var[,n]=Be.edges(t),r=O.pointRef(e,n);return ze.delete(e,{at:t}),r.unref()},ek=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:o=!1}=n,{match:a,at:i=t.selection,height:s=0,always:u=!1}=n;if(a==null&&(a=Z=>at.isElement(Z)&&O.isBlock(t,Z)),Be.isRange(i)&&(i=qT(t,i)),ce.isPath(i)){var c=i,d=O.point(t,c),[g]=O.parent(t,c);a=Z=>Z===g,s=d.path.length-c.length+1,i=d,u=!0}if(i){var v=O.pointRef(t,i,{affinity:"backward"}),y;try{var[C]=O.nodes(t,{at:i,match:a,mode:r,voids:o});if(!C)return;var h=O.void(t,{at:i,mode:"highest"}),w=0;if(!o&&h){var[E,j]=h;if(at.isElement(E)&&t.isInline(E)){var P=O.after(t,j);if(!P){var N={text:""},$=ce.next(j);ze.insertNodes(t,N,{at:$,voids:o}),P=O.point(t,$)}i=P,u=!0}var G=i.path.length-j.length;s=G+1,u=!0}y=O.pointRef(t,i);var V=i.path.length-s,[,J]=C,K=i.path.slice(0,V),me=s===0?i.offset:i.path[V]+w;for(var[ye,ne]of O.levels(t,{at:K,reverse:!0,voids:o})){var fe=!1;if(ne.length<J.length||ne.length===0||!o&&at.isElement(ye)&&O.isVoid(t,ye))break;var R=v.current,W=O.isEnd(t,R,ne);if(u||!v||!O.isEdge(t,R,ne)){fe=!0;var oe=Ye.extractProps(ye);t.apply({type:"split_node",path:ne,position:me,properties:oe})}me=ne[ne.length-1]+(fe||W?1:0)}if(n.at==null){var pe=y.current||O.end(t,[]);ze.select(t,pe)}}finally{var se;v.unref(),(se=y)===null||se===void 0||se.unref()}}})},tk=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var o={};for(var a of n)o[a]=null;ze.setNodes(t,o,r)},nk=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:a=!1}=n,{at:i=t.selection,match:s}=n;if(i){s==null&&(s=ce.isPath(i)?Bs(t,i):y=>at.isElement(y)&&O.isBlock(t,y)),ce.isPath(i)&&(i=O.range(t,i));var u=Be.isRange(i)?O.rangeRef(t,i):null,c=O.nodes(t,{at:i,match:s,mode:r,voids:a}),d=Array.from(c,y=>{var[,C]=y;return O.pathRef(t,C)}).reverse(),g=function(C){var h=C.unref(),[w]=O.node(t,h),E=O.range(t,h);o&&u&&(E=Be.intersection(u.current,E)),ze.liftNodes(t,{at:E,match:j=>at.isAncestor(w)&&w.children.includes(j),voids:a})};for(var v of d)g(v);u&&u.unref()}})};function N2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function O2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var rk=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};O.withoutNormalizing(t,()=>{var{mode:o="lowest",split:a=!1,voids:i=!1}=r,{match:s,at:u=t.selection}=r;if(u){if(s==null&&(ce.isPath(u)?s=Bs(t,u):t.isInline(n)?s=E=>at.isElement(E)&&O.isInline(t,E)||lt.isText(E):s=E=>at.isElement(E)&&O.isBlock(t,E)),a&&Be.isRange(u)){var[c,d]=Be.edges(u),g=O.rangeRef(t,u,{affinity:"inward"});ze.splitNodes(t,{at:d,match:s,voids:i}),ze.splitNodes(t,{at:c,match:s,voids:i}),u=g.unref(),r.at==null&&ze.select(t,u)}var v=Array.from(O.nodes(t,{at:u,match:t.isInline(n)?E=>at.isElement(E)&&O.isBlock(t,E):E=>O.isEditor(E),mode:"lowest",voids:i}));for(var[,y]of v){var C=Be.isRange(u)?Be.intersection(u,O.range(t,y)):u;if(C){var h=Array.from(O.nodes(t,{at:C,match:s,mode:o,voids:i}));if(h.length>0){var w=function(){var[E]=h,j=h[h.length-1],[,P]=E,[,N]=j;if(P.length===0&&N.length===0)return"continue";var $=ce.equals(P,N)?ce.parent(P):ce.common(P,N),G=O.range(t,P,N),V=O.node(t,$),[J]=V,K=$.length+1,me=ce.next(N.slice(0,K)),ye=O2(O2({},n),{},{children:[]});ze.insertNodes(t,ye,{at:me,voids:i}),ze.moveNodes(t,{at:G,match:ne=>at.isAncestor(J)&&J.children.includes(ne),to:me.concat(0),voids:i})}();if(w==="continue")continue}}}}})},ok=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return I8(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return O8(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return M8(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return L8(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _8(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k8(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return K8(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return q8(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return MT(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Q8(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tT(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return P8(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kT(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return T8(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return B8(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return N8(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $8(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return R8(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LT(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RT(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _T(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return V8(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return W8(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return H8(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G8(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return z8(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gT(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Z8(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return X8(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Y8(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return J8(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zT(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nT(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rT(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return oT(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aT(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return iT(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sT(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lT(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uT(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cT(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return UT(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YT(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VT(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JT(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pT(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hT(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mT(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vT(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bT(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return CT(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return xT(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yT(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ST(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wT(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ET(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DT(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return FT(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IT(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AT(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jT(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return KT(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WT(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QT(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return PT(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HT(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GT(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ek(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BT(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NT(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OT(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tk(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nk(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return U8(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $T(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rk(e,...r)}};return e},ak=lk,$2="֑-߿יִ-﷽ﹰ-ﻼ",R2="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",ik=new RegExp("^[^"+R2+"]*["+$2+"]"),sk=new RegExp("^[^"+$2+"]*["+R2+"]");function lk(e){return e=String(e||""),ik.test(e)?"rtl":sk.test(e)?"ltr":"neutral"}const M2=zl(ak);function uk(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $h=uk,ck=typeof Gc=="object"&&Gc&&Gc.Object===Object&&Gc,dk=ck,fk=dk,gk=typeof self=="object"&&self&&self.Object===Object&&self,pk=fk||gk||Function("return this")(),L2=pk,hk=L2,mk=function(){return hk.Date.now()},vk=mk,bk=/\s/;function xk(e){for(var t=e.length;t--&&bk.test(e.charAt(t)););return t}var yk=xk,Ck=yk,wk=/^\s+/;function Ek(e){return e&&e.slice(0,Ck(e)+1).replace(wk,"")}var Sk=Ek,Dk=L2,Fk=Dk.Symbol,_2=Fk,V2=_2,W2=Object.prototype,Ak=W2.hasOwnProperty,jk=W2.toString,Du=V2?V2.toStringTag:void 0;function Ik(e){var t=Ak.call(e,Du),n=e[Du];try{e[Du]=void 0;var r=!0}catch{}var o=jk.call(e);return r&&(t?e[Du]=n:delete e[Du]),o}var Tk=Ik,kk=Object.prototype,Pk=kk.toString;function Bk(e){return Pk.call(e)}var Nk=Bk,H2=_2,Ok=Tk,$k=Nk,Rk="[object Null]",Mk="[object Undefined]",G2=H2?H2.toStringTag:void 0;function Lk(e){return e==null?e===void 0?Mk:Rk:G2&&G2 in Object(e)?Ok(e):$k(e)}var _k=Lk;function Vk(e){return e!=null&&typeof e=="object"}var Wk=Vk,Hk=_k,Gk=Wk,zk="[object Symbol]";function Uk(e){return typeof e=="symbol"||Gk(e)&&Hk(e)==zk}var Zk=Uk,Xk=Sk,z2=$h,Yk=Zk,U2=0/0,Jk=/^[-+]0x[0-9a-f]+$/i,Kk=/^0b[01]+$/i,Qk=/^0o[0-7]+$/i,qk=parseInt;function eP(e){if(typeof e=="number")return e;if(Yk(e))return U2;if(z2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Xk(e);var n=Kk.test(e);return n||Qk.test(e)?qk(e.slice(2),n?2:8):Jk.test(e)?U2:+e}var tP=eP,nP=$h,Rh=vk,Z2=tP,rP="Expected a function",oP=Math.max,aP=Math.min;function iP(e,t,n){var r,o,a,i,s,u,c=0,d=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(rP);t=Z2(t)||0,nP(n)&&(d=!!n.leading,g="maxWait"in n,a=g?oP(Z2(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v);function y(G){var V=r,J=o;return r=o=void 0,c=G,i=e.apply(J,V),i}function C(G){return c=G,s=setTimeout(E,t),d?y(G):i}function h(G){var V=G-u,J=G-c,K=t-V;return g?aP(K,a-J):K}function w(G){var V=G-u,J=G-c;return u===void 0||V>=t||V<0||g&&J>=a}function E(){var G=Rh();if(w(G))return j(G);s=setTimeout(E,h(G))}function j(G){return s=void 0,v&&r?y(G):(r=o=void 0,i)}function P(){s!==void 0&&clearTimeout(s),c=0,r=u=o=s=void 0}function N(){return s===void 0?i:j(Rh())}function $(){var G=Rh(),V=w(G);if(r=arguments,o=this,u=G,V){if(s===void 0)return C(u);if(g)return clearTimeout(s),s=setTimeout(E,t),y(u)}return s===void 0&&(s=setTimeout(E,t)),i}return $.cancel=P,$.flush=N,$}var X2=iP;const sP=zl(X2);var lP=X2,uP=$h,cP="Expected a function";function dP(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(cP);return uP(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),lP(e,t,{leading:r,maxWait:t,trailing:o})}var fP=dP;const gP=zl(fP);function Y2(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function J2(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Mh(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return J2(n.overflowY,t)||J2(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function Qd(e,t,n,r,o,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0}var K2=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,u=typeof i=="function"?i:function(ot){return ot!==i};if(!Y2(e))throw new TypeError("Invalid target");for(var c,d,g=document.scrollingElement||document.documentElement,v=[],y=e;Y2(y)&&u(y);){if((y=(d=(c=y).parentElement)==null?c.getRootNode().host||null:d)===g){v.push(y);break}y!=null&&y===document.body&&Mh(y)&&!Mh(document.documentElement)||y!=null&&Mh(y,s)&&v.push(y)}for(var C=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,j=e.getBoundingClientRect(),P=j.height,N=j.width,$=j.top,G=j.right,V=j.bottom,J=j.left,K=o==="start"||o==="nearest"?$:o==="end"?V:$+P/2,me=a==="center"?J+N/2:a==="end"?G:J,ye=[],ne=0;ne<v.length;ne++){var fe=v[ne],R=fe.getBoundingClientRect(),W=R.height,oe=R.width,pe=R.top,se=R.right,Z=R.bottom,te=R.left;if(r==="if-needed"&&$>=0&&J>=0&&V<=h&&G<=C&&$>=pe&&V<=Z&&J>=te&&G<=se)return ye;var U=getComputedStyle(fe),Q=parseInt(U.borderLeftWidth,10),he=parseInt(U.borderTopWidth,10),H=parseInt(U.borderRightWidth,10),ge=parseInt(U.borderBottomWidth,10),ae=0,be=0,Me="offsetWidth"in fe?fe.offsetWidth-fe.clientWidth-Q-H:0,Ne="offsetHeight"in fe?fe.offsetHeight-fe.clientHeight-he-ge:0,We="offsetWidth"in fe?fe.offsetWidth===0?0:oe/fe.offsetWidth:0,Ke="offsetHeight"in fe?fe.offsetHeight===0?0:W/fe.offsetHeight:0;if(g===fe)ae=o==="start"?K:o==="end"?K-h:o==="nearest"?Qd(E,E+h,h,he,ge,E+K,E+K+P,P):K-h/2,be=a==="start"?me:a==="center"?me-C/2:a==="end"?me-C:Qd(w,w+C,C,Q,H,w+me,w+me+N,N),ae=Math.max(0,ae+E),be=Math.max(0,be+w);else{ae=o==="start"?K-pe-he:o==="end"?K-Z+ge+Ne:o==="nearest"?Qd(pe,Z,W,he,ge+Ne,K,K+P,P):K-(pe+W/2)+Ne/2,be=a==="start"?me-te-Q:a==="center"?me-(te+oe/2)+Me/2:a==="end"?me-se+H+Me:Qd(te,se,oe,Q,H+Me,me,me+N,N);var $e=fe.scrollLeft,qe=fe.scrollTop;K+=qe-(ae=Math.max(0,Math.min(qe+ae/Ke,fe.scrollHeight-W/Ke+Ne))),me+=$e-(be=Math.max(0,Math.min($e+be/We,fe.scrollWidth-oe/We+Me)))}ye.push({el:fe,top:ae,left:be})}return ye};function Q2(e){return e===Object(e)&&Object.keys(e).length!==0}function pP(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var o=r.el,a=r.top,i=r.left;o.scroll&&n?o.scroll({top:a,left:i,behavior:t}):(o.scrollTop=a,o.scrollLeft=i)})}function hP(e){return e===!1?{block:"end",inline:"nearest"}:Q2(e)?e:{block:"start",inline:"nearest"}}function mP(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Q2(t)&&typeof t.behavior=="function")return t.behavior(n?K2(e,t):[]);if(n){var r=hP(t);return pP(K2(e,r),r.behavior)}}var yi=[],vP=function(){return yi.some(function(e){return e.activeTargets.length>0})},bP=function(){return yi.some(function(e){return e.skippedTargets.length>0})},q2="ResizeObserver loop completed with undelivered notifications.",xP=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:q2}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=q2),window.dispatchEvent(e)},Fu;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Fu||(Fu={}));var Ci=function(e){return Object.freeze(e)},yP=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ci(this)}return e}(),eC=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ci(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,a=t.right,i=t.bottom,s=t.left,u=t.width,c=t.height;return{x:n,y:r,top:o,right:a,bottom:i,left:s,width:u,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Lh=function(e){return e instanceof SVGElement&&"getBBox"in e},tC=function(e){if(Lh(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,a=o.offsetWidth,i=o.offsetHeight;return!(a||i||e.getClientRects().length)},nC=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},CP=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Au=typeof window<"u"?window:{},qd=new WeakMap,rC=/auto|scroll/,wP=/^tb|vertical/,EP=/msie|trident/i.test(Au.navigator&&Au.navigator.userAgent),Po=function(e){return parseFloat(e||"0")},Os=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new yP((n?t:e)||0,(n?e:t)||0)},oC=Ci({devicePixelContentBoxSize:Os(),borderBoxSize:Os(),contentBoxSize:Os(),contentRect:new eC(0,0,0,0)}),aC=function(e,t){if(t===void 0&&(t=!1),qd.has(e)&&!t)return qd.get(e);if(tC(e))return qd.set(e,oC),oC;var n=getComputedStyle(e),r=Lh(e)&&e.ownerSVGElement&&e.getBBox(),o=!EP&&n.boxSizing==="border-box",a=wP.test(n.writingMode||""),i=!r&&rC.test(n.overflowY||""),s=!r&&rC.test(n.overflowX||""),u=r?0:Po(n.paddingTop),c=r?0:Po(n.paddingRight),d=r?0:Po(n.paddingBottom),g=r?0:Po(n.paddingLeft),v=r?0:Po(n.borderTopWidth),y=r?0:Po(n.borderRightWidth),C=r?0:Po(n.borderBottomWidth),h=r?0:Po(n.borderLeftWidth),w=g+c,E=u+d,j=h+y,P=v+C,N=s?e.offsetHeight-P-e.clientHeight:0,$=i?e.offsetWidth-j-e.clientWidth:0,G=o?w+j:0,V=o?E+P:0,J=r?r.width:Po(n.width)-G-$,K=r?r.height:Po(n.height)-V-N,me=J+w+$+j,ye=K+E+N+P,ne=Ci({devicePixelContentBoxSize:Os(Math.round(J*devicePixelRatio),Math.round(K*devicePixelRatio),a),borderBoxSize:Os(me,ye,a),contentBoxSize:Os(J,K,a),contentRect:new eC(g,u,J,K)});return qd.set(e,ne),ne},iC=function(e,t,n){var r=aC(e,n),o=r.borderBoxSize,a=r.contentBoxSize,i=r.devicePixelContentBoxSize;switch(t){case Fu.DEVICE_PIXEL_CONTENT_BOX:return i;case Fu.BORDER_BOX:return o;default:return a}},SP=function(){function e(t){var n=aC(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ci([n.borderBoxSize]),this.contentBoxSize=Ci([n.contentBoxSize]),this.devicePixelContentBoxSize=Ci([n.devicePixelContentBoxSize])}return e}(),sC=function(e){if(tC(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},DP=function(){var e=1/0,t=[];yi.forEach(function(i){if(i.activeTargets.length!==0){var s=[];i.activeTargets.forEach(function(c){var d=new SP(c.target),g=sC(c.target);s.push(d),c.lastReportedSize=iC(c.target,c.observedBox),g<e&&(e=g)}),t.push(function(){i.callback.call(i.observer,s,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},lC=function(e){yi.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(sC(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},FP=function(){var e=0;for(lC(e);vP();)e=DP(),lC(e);return bP()&&xP(),e>0},_h,uC=[],AP=function(){return uC.splice(0).forEach(function(e){return e()})},jP=function(e){if(!_h){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return AP()}).observe(n,r),_h=function(){n.textContent="".concat(t?t--:t++)}}uC.push(e),_h()},IP=function(e){jP(function(){requestAnimationFrame(e)})},ef=0,TP=function(){return!!ef},kP=250,PP={attributes:!0,characterData:!0,childList:!0,subtree:!0},cC=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],dC=function(e){return e===void 0&&(e=0),Date.now()+e},Vh=!1,BP=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=kP),!Vh){Vh=!0;var r=dC(t);IP(function(){var o=!1;try{o=FP()}finally{if(Vh=!1,t=r-dC(),!TP())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,PP)};document.body?n():Au.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),cC.forEach(function(n){return Au.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),cC.forEach(function(n){return Au.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Wh=new BP,fC=function(e){!ef&&e>0&&Wh.start(),ef+=e,!ef&&Wh.stop()},NP=function(e){return!Lh(e)&&!CP(e)&&getComputedStyle(e).display==="inline"},OP=function(){function e(t,n){this.target=t,this.observedBox=n||Fu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=iC(this.target,this.observedBox,!0);return NP(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),$P=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),tf=new WeakMap,gC=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},nf=function(){function e(){}return e.connect=function(t,n){var r=new $P(t,n);tf.set(t,r)},e.observe=function(t,n,r){var o=tf.get(t),a=o.observationTargets.length===0;gC(o.observationTargets,n)<0&&(a&&yi.push(o),o.observationTargets.push(new OP(n,r&&r.box)),fC(1),Wh.schedule())},e.unobserve=function(t,n){var r=tf.get(t),o=gC(r.observationTargets,n),a=r.observationTargets.length===1;o>=0&&(a&&yi.splice(yi.indexOf(r),1),r.observationTargets.splice(o,1),fC(-1))},e.disconnect=function(t){var n=this,r=tf.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),RP=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");nf.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!nC(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");nf.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!nC(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");nf.unobserve(this,t)},e.prototype.disconnect=function(){nf.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});for(var MP=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Hh={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},LP={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:MP?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},pC={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},rf=1;rf<20;rf++)pC["f"+rf]=111+rf;function of(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(i){return hC(i,t)}),o=function(s){return r.some(function(u){return mC(u,s)})},a=n==null?o:o(n);return a}function _P(e,t){return of(e,t)}function VP(e,t){return of(e,{byKey:!0},t)}function hC(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var i in Hh)r[Hh[i]]=!1;var s=!0,u=!1,c=void 0;try{for(var d=o[Symbol.iterator](),g;!(s=(g=d.next()).done);s=!0){var v=g.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var C=Gh(v),h=Hh[C];(a===1||!h)&&(n?r.key=C:r.which=vC(v)),h&&(r[h]=y?null:!0)}}catch(w){u=!0,c=w}finally{try{!s&&d.return&&d.return()}finally{if(u)throw c}}return r}function mC(e,t){for(var n in e){var r=e[n],o=void 0;if(r!=null&&(n==="key"&&t.key!=null?o=t.key.toLowerCase():n==="which"?o=r===91&&t.which===93?91:t.which:o=t[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function vC(e){e=Gh(e);var t=pC[e]||e.toUpperCase().charCodeAt(0);return t}function Gh(e){return e=e.toLowerCase(),e=LP[e]||e,e}Qo.default=of;var zh=Qo.isHotkey=of;Qo.isCodeHotkey=_P,Qo.isKeyHotkey=VP,Qo.parseHotkey=hC,Qo.compareHotkey=mC,Qo.toKeyCode=vC,Qo.toKeyName=Gh;function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function $s(e,t){if(e==null)return{};var n=WP(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Uh=p.createContext(null),Ta=()=>{var e=p.useContext(Uh);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},bC=parseInt(p.version.split(".")[0],10),HP=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,xC=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),dr=typeof navigator<"u"&&/Android/.test(navigator.userAgent),sf=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ju=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),GP=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),yC=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),zP=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),UP=dr&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),ZP=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),XP=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),YP=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent),lf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ka=(!zP||!UP)&&!GP&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Zh=new WeakMap,Xh=new WeakMap,CC=new WeakMap,uf=new WeakMap,Yh=new WeakMap,Iu=new WeakMap,wi=new WeakMap,Jh=new WeakMap,cf=new WeakMap,Kh=new WeakMap,Ei=new WeakMap,Si=new WeakMap,Tu=new WeakMap,Qh=new WeakMap,qh=new WeakMap,io=new WeakMap,qo=new WeakMap,fr=new WeakMap,Pa=new WeakMap,Ba=new WeakMap,wC=new WeakMap,Rs=Symbol("placeholder"),EC=Symbol("mark-placeholder"),JP=globalThis.Text,em=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,KP=e=>Na(e)&&e.nodeType===8,Wr=e=>Na(e)&&e.nodeType===1,Na=e=>{var t=em(e);return!!t&&e instanceof t.Node},tm=e=>{var t=e&&e.anchorNode&&em(e.anchorNode);return!!t&&e instanceof t.Selection},SC=e=>Na(e)&&e.nodeType===3,QP=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,qP=e=>{var[t,n]=e;if(Wr(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=DC(t,o,r?"backward":"forward"),r=o<n;Wr(t)&&t.childNodes.length;){var a=r?t.childNodes.length-1:0;t=tB(t,a,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},eB=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},DC=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],a=t,i=!1,s=!1;(KP(o)||Wr(o)&&o.childNodes.length===0||Wr(o)&&o.getAttribute("contenteditable")==="false")&&!(i&&s);){if(a>=r.length){i=!0,a=t-1,n="backward";continue}if(a<0){s=!0,a=t+1,n="forward";continue}o=r[a],t=a,a+=n==="forward"?1:-1}return[o,t]},tB=(e,t,n)=>{var[r]=DC(e,t,n);return r},FC=e=>{var t="";if(SC(e)&&e.nodeValue)return e.nodeValue;if(Wr(e)){for(var n of Array.from(e.childNodes))t+=FC(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
|
|
112
|
-
`)}return t},nB=/data-slate-fragment="(.+?)"/m,rB=e=>{var t=e.getData("text/html"),[,n]=t.match(nB)||[];return n},nm=(e,t,n)=>{var{target:r}=t;if(Wr(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=Re.getWindow(e);if(o.contains(r))return Re.hasDOMNode(e,r,{editable:!0});var a=n.find(i=>{var{addedNodes:s,removedNodes:u}=i;for(var c of s)if(c===r||c.contains(r))return!0;for(var d of u)if(d===r||d.contains(r))return!0});return!a||a===t?!1:nm(e,a,n)},oB=0;class aB{constructor(){this.id="".concat(oB++)}}var Re={androidPendingDiffs:e=>fr.get(e),androidScheduleFlush:e=>{var t;(t=qh.get(e))===null||t===void 0||t()},blur:e=>{var t=Re.toDOMNode(e,e),n=Re.findDocumentOrShadowRoot(e);Ei.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=Re.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&ze.deselect(e)},findDocumentOrShadowRoot:e=>{var t=Re.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var a=Re.toSlateNode(e,t.target),i=Re.findPath(e,a);if(at.isElement(a)&&O.isVoid(e,a)){var s=o.getBoundingClientRect(),u=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=O.point(e,i,{edge:u?"start":"end"}),d=u?O.before(e,c):O.after(e,c);if(d){var g=O.range(e,d);return g}}var v,{document:y}=Re.getWindow(e);if(y.caretRangeFromPoint)v=y.caretRangeFromPoint(n,r);else{var C=y.caretPositionFromPoint(n,r);C&&(v=y.createRange(),v.setStart(C.offsetNode,C.offset),v.setEnd(C.offsetNode,C.offset))}if(!v)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var h=Re.toSlateRange(e,v,{exactMatch:!1,suppressThrow:!1});return h},findKey:(e,t)=>{var n=Jh.get(t);return n||(n=new aB,Jh.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=Xh.get(r);if(o==null){if(O.isEditor(r))return n;break}var a=Zh.get(r);if(a==null)break;n.unshift(a),r=o}throw new Error("Unable to find the path for Slate node: ".concat(Tn.stringify(t)))},focus:e=>{var t=Re.toDOMNode(e,e),n=Re.findDocumentOrShadowRoot(e);Ei.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},getWindow:e=>{var t=CC.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=r,a=Re.toDOMNode(t,t),i;try{i=Wr(n)?n:n.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return i?i.closest("[data-slate-editor]")===a&&(!o||i.isContentEditable?!0:typeof i.isContentEditable=="boolean"&&i.closest('[contenteditable="false"]')===a||!!i.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>Na(t)&&Re.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return O.hasPath(e,n.path)&&O.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>Re.hasEditableTarget(e,t)||Re.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>Na(t)&&Re.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Si.get(e),isFocused:e=>!!Ei.get(e),isReadOnly:e=>!!Kh.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Kh.get(e))return!1;var n=Re.hasTarget(e,t)&&Re.toSlateNode(e,t);return at.isElement(n)&&O.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=cf.get(e),r=O.isEditor(t)?uf.get(e):n==null?void 0:n.get(Re.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Tn.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=O.node(e,t.path),r=Re.toDOMNode(e,n),o;O.void(e,{at:t})&&(t={path:t.path,offset:0});for(var a="[data-slate-string], [data-slate-zero-width]",i=Array.from(r.querySelectorAll(a)),s=0,u=0;u<i.length;u++){var c=i[u],d=c.childNodes[0];if(!(d==null||d.textContent==null)){var{length:g}=d.textContent,v=c.getAttribute("data-slate-length"),y=v==null?g:parseInt(v,10),C=s+y,h=i[u+1];if(t.offset===C&&h!==null&&h!==void 0&&h.hasAttribute("data-slate-mark-placeholder")){var w,E=h.childNodes[0];o=[E instanceof JP?E:h,(w=h.textContent)!==null&&w!==void 0&&w.startsWith("\uFEFF")?1:0];break}if(t.offset<=C){var j=Math.min(g,Math.max(0,t.offset-s));o=[d,j];break}s=C}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Tn.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=Be.isBackward(t),a=Re.toDOMPoint(e,n),i=Be.isCollapsed(t)?a:Re.toDOMPoint(e,r),s=Re.getWindow(e),u=s.document.createRange(),[c,d]=o?i:a,[g,v]=o?a:i,y=Wr(c)?c:c.parentElement,C=!!y.getAttribute("data-slate-zero-width"),h=Wr(g)?g:g.parentElement,w=!!h.getAttribute("data-slate-zero-width");return u.setStart(c,C?1:d),u.setEnd(g,w?1:v),u},toSlateNode:(e,t)=>{var n=Wr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Iu.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,[a,i]=r?t:qP(t),s=a.parentNode,u=null,c=0;if(s){var d,g,v=Re.toDOMNode(e,e),y=s.closest('[data-slate-void="true"]'),C=y&&v.contains(y)?y:null,h=s.closest("[data-slate-leaf]"),w=null;if(h){if(u=h.closest('[data-slate-node="text"]'),u){var E=Re.getWindow(e),j=E.document.createRange();j.setStart(u,0),j.setEnd(a,i);var P=j.cloneContents(),N=[...Array.prototype.slice.call(P.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(P.querySelectorAll("[contenteditable=false]"))];N.forEach(R=>{if(dr&&!r&&R.hasAttribute("data-slate-zero-width")&&R.textContent.length>0&&R.textContext!=="\uFEFF"){R.textContent.startsWith("\uFEFF")&&(R.textContent=R.textContent.slice(1));return}R.parentNode.removeChild(R)}),c=P.textContent.length,w=u}}else if(C){for(var $=C.querySelectorAll("[data-slate-leaf]"),G=0;G<$.length;G++){var V=$[G];if(Re.hasDOMNode(e,V)){h=V;break}}h?(u=h.closest('[data-slate-node="text"]'),w=h,c=w.textContent.length,w.querySelectorAll("[data-slate-zero-width]").forEach(R=>{c-=R.textContent.length})):c=1}w&&c===w.textContent.length&&dr&&w.getAttribute("data-slate-zero-width")==="z"&&(d=w.textContent)!==null&&d!==void 0&&d.startsWith("\uFEFF")&&(s.hasAttribute("data-slate-zero-width")||sf&&(g=w.textContent)!==null&&g!==void 0&&g.endsWith(`
|
|
113
|
-
|
|
114
|
-
`))&&c--}if(dr&&!u&&!r){var J=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(J&&Re.hasDOMNode(e,J,{editable:!0})){var K=Re.toSlateNode(e,J),{path:me,offset:ye}=O.start(e,Re.findPath(e,K));return J.querySelector("[data-slate-leaf]")||(ye=i),{path:me,offset:ye}}}if(!u){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var ne=Re.toSlateNode(e,u),fe=Re.findPath(e,ne);return{path:fe,offset:c}},toSlateRange:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,a=tm(t)?t.anchorNode:t.startContainer,i,s,u,c,d;if(a&&(tm(t)?(i=t.anchorNode,s=t.anchorOffset,u=t.focusNode,c=t.focusOffset,yC&&eB(i)?d=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:d=t.isCollapsed):(i=t.startContainer,s=t.startOffset,u=t.endContainer,c=t.endOffset,d=t.collapsed)),i==null||u==null||s==null||c==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if("getAttribute"in u&&u.getAttribute("contenteditable")==="false"&&u.getAttribute("data-slate-void")!=="true"){var g;u=i,c=((g=i.textContent)===null||g===void 0?void 0:g.length)||0}var v=Re.toSlatePoint(e,[i,s],{exactMatch:r,suppressThrow:o});if(!v)return null;var y=d?v:Re.toSlatePoint(e,[u,c],{exactMatch:r,suppressThrow:o});if(!y)return null;if(sf&&!d&&i!==u){var C=O.isEnd(e,v,v.path),h=O.isStart(e,y,y.path);if(C){var w=O.after(e,v);v=w||v}if(h){var E=O.before(e,y);y=E||y}}var j={anchor:v,focus:y};return Be.isExpanded(j)&&Be.isForward(j)&&Wr(u)&&O.void(e,{at:j.focus,mode:"highest"})&&(j=O.unhangRange(e,j,{voids:!0})),j}};function iB(e,t){var{path:n,diff:r}=t;if(!O.hasPath(e,n))return!1;var o=Ye.get(e,n);if(!lt.isText(o))return!1;if(r.start!==o.text.length||r.text.length===0)return o.text.slice(r.start,r.start+r.text.length)===r.text;var a=ce.next(n);if(!O.hasPath(e,a))return!1;var i=Ye.get(e,a);return lt.isText(i)&&i.text.startsWith(r.text)}function AC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((o,a)=>o.slice(0,a.start)+a.text+o.slice(a.end),e)}function sB(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function lB(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}function jC(e,t){var{start:n,end:r,text:o}=t,a=e.slice(n,r),i=sB(a,o),s=Math.min(a.length-i,o.length-i),u=lB(a,o,s),c={start:n+i,end:r-u,text:o.slice(i,o.length-u)};return c.start===c.end&&c.text.length===0?null:c}function uB(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),a=AC(e,t,n),i=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),s=a.slice(r,i),u=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return jC(e,{start:r,end:u,text:s})}function cB(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function rm(e,t){var{path:n,offset:r}=t;if(!O.hasPath(e,n))return null;var o=Ye.get(e,n);if(!lt.isText(o))return null;var a=O.above(e,{match:s=>at.isElement(s)&&O.isBlock(e,s),at:n});if(!a)return null;for(;r>o.text.length;){var i=O.next(e,{at:n,match:lt.isText});if(!i||!ce.isDescendant(i[1],a[1]))return null;r-=o.text.length,o=i[0],n=i[1]}return{path:n,offset:r}}function IC(e,t){var n=rm(e,t.anchor);if(!n)return null;if(Be.isCollapsed(t))return{anchor:n,focus:n};var r=rm(e,t.focus);return r?{anchor:n,focus:r}:null}function om(e,t,n){var r=fr.get(e),o=r==null?void 0:r.find(d=>{var{path:g}=d;return ce.equals(g,t.path)});if(!o||t.offset<=o.diff.start)return It.transform(t,n,{affinity:"backward"});var{diff:a}=o;if(t.offset<=a.start+a.text.length){var i={path:t.path,offset:a.start},s=It.transform(i,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-a.start}:null}var u={path:t.path,offset:t.offset-a.text.length+a.end-a.start},c=It.transform(u,n,{affinity:"backward"});return c?n.type==="split_node"&&ce.equals(n.path,t.path)&&u.offset<n.position&&a.start<n.position?c:{path:c.path,offset:c.offset+a.text.length-a.end+a.start}:null}function TC(e,t,n){var r=om(e,t.anchor,n);if(!r)return null;if(Be.isCollapsed(t))return{anchor:r,focus:r};var o=om(e,t.focus,n);return o?{anchor:r,focus:o}:null}function dB(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!ce.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!ce.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!ce.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:ce.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:ce.transform(n,t,{affinity:"forward"})};case"merge_node":return ce.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:ce.transform(n,t)}:{diff:r,id:o,path:ce.transform(n,t)}}var a=ce.transform(n,t);return a?{diff:r,path:a,id:o}:null}function kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function df(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kC(Object(n),!0).forEach(function(r){af(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var fB=25,gB=200,pB=function(){},hB=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function mB(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,a=null,i=null,s=null,u=0,c=!1,d=()=>{var ne=Ba.get(t);if(Ba.delete(t),ne){var{selection:fe}=t,R=IC(t,ne);R&&(!fe||!Be.equals(R,fe))&&ze.select(t,R)}},g=()=>{var ne=Pa.get(t);if(Pa.delete(t),!!ne){if(ne.at){var fe=It.isPoint(ne.at)?rm(t,ne.at):IC(t,ne.at);if(!fe)return;var R=O.range(t,fe);(!t.selection||!Be.equals(t.selection,R))&&ze.select(t,fe)}ne.run()}},v=()=>{if(i&&(clearTimeout(i),i=null),s&&(clearTimeout(s),s=null),!N()&&!P()){d();return}o||(o=!0,setTimeout(()=>o=!1)),P()&&(o="action");var ne=t.selection&&O.rangeRef(t,t.selection,{affinity:"forward"});qo.set(t,t.marks),pB("flush",Pa.get(t),fr.get(t));for(var fe=N(),R;R=(W=fr.get(t))===null||W===void 0?void 0:W[0];){var W,oe,pe=io.get(t);pe!==void 0&&(io.delete(t),t.marks=pe),pe&&c===!1&&(c=null);var se=cB(R);(!t.selection||!Be.equals(t.selection,se))&&ze.select(t,se),R.diff.text?O.insertText(t,R.diff.text):O.deleteFragment(t),fr.set(t,(oe=fr.get(t))===null||oe===void 0?void 0:oe.filter(U=>{var{id:Q}=U;return Q!==R.id})),iB(t,R)||(fe=!1,Pa.delete(t),qo.delete(t),o="action",Ba.delete(t),n.cancel(),r.cancel(),ne==null||ne.unref())}var Z=ne==null?void 0:ne.unref();if(Z&&!Ba.get(t)&&(!t.selection||!Be.equals(Z,t.selection))&&ze.select(t,Z),P()){g();return}fe&&n(),n.flush(),r.flush(),d();var te=qo.get(t);qo.delete(t),te!==void 0&&(t.marks=te,t.onChange())},y=ne=>{a&&clearTimeout(a),a=setTimeout(()=>{Si.set(t,!1),v()},fB)},C=ne=>{Si.set(t,!0),a&&(clearTimeout(a),a=null)},h=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,R=Yh.get(t);if(R){if(N()||fe){R.style.display="none";return}R.style.removeProperty("display")}},w=(ne,fe)=>{var R,W=(R=fr.get(t))!==null&&R!==void 0?R:[];fr.set(t,W);var oe=Ye.leaf(t,ne),pe=W.findIndex(te=>ce.equals(te.path,ne));if(pe<0){var se=jC(oe.text,fe);se&&W.push({path:ne,diff:fe,id:u++}),h();return}var Z=uB(oe.text,W[pe].diff,fe);if(!Z){W.splice(pe,1),h();return}W[pe]=df(df({},W[pe]),{},{diff:Z})},E=function(fe){var{at:R}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c=!1,Ba.delete(t),n.cancel(),r.cancel(),P()&&v(),Pa.set(t,{at:R,run:fe}),s=setTimeout(v)},j=ne=>{var fe;i&&(clearTimeout(i),i=null);var{inputType:R}=ne,W=null,oe=ne.dataTransfer||ne.data||void 0;c!==!1&&R!=="insertText"&&R!=="insertCompositionText"&&(c=!1);var[pe]=ne.getTargetRanges();pe&&(W=Re.toSlateRange(t,pe,{exactMatch:!1,suppressThrow:!0}));var se=Re.getWindow(t),Z=se.getSelection();if(!W&&Z&&(pe=Z,W=Re.toSlateRange(t,Z,{exactMatch:!1,suppressThrow:!0})),W=(fe=W)!==null&&fe!==void 0?fe:t.selection,!!W){var te=!0;if(R.startsWith("delete")){if(Be.isExpanded(W)){var[U,Q]=Be.edges(W),he=Ye.leaf(t,U.path);if(he.text.length===U.offset&&Q.offset===0){var H=O.next(t,{at:U.path,match:lt.isText});H&&ce.equals(H[1],Q.path)&&(W={anchor:Q,focus:Q})}}var ge=R.endsWith("Backward")?"backward":"forward",[ae,be]=Be.edges(W),[Me,Ne]=O.leaf(t,ae.path),We={text:"",start:ae.offset,end:be.offset},Ke=fr.get(t),$e=Ke==null?void 0:Ke.find(mt=>ce.equals(mt.path,Ne)),qe=$e?[$e.diff,We]:[We],ot=AC(Me.text,...qe);if(ot.length===0&&(te=!1),Be.isExpanded(W)){if(te&&ce.equals(W.anchor.path,W.focus.path)){var ht={path:W.anchor.path,offset:ae.offset},At=O.range(t,ht,ht);return V(At),w(W.anchor.path,{text:"",end:be.offset,start:ae.offset})}return E(()=>O.deleteFragment(t,{direction:ge}),{at:W})}}switch(R){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return E(()=>O.deleteFragment(t),{at:W});case"deleteContent":case"deleteContentForward":{var{anchor:le}=W;if(te&&Be.isCollapsed(W)){var Ee=Ye.leaf(t,le.path);if(le.offset<Ee.text.length)return w(le.path,{text:"",start:le.offset,end:le.offset+1})}return E(()=>O.deleteForward(t),{at:W})}case"deleteContentBackward":{var Ie,{anchor:Ze}=W,He=tm(pe)?pe.isCollapsed:!!((Ie=pe)!==null&&Ie!==void 0&&Ie.collapsed);return te&&He&&Be.isCollapsed(W)&&Ze.offset>0?w(Ze.path,{text:"",start:Ze.offset-1,end:Ze.offset}):E(()=>O.deleteBackward(t),{at:W})}case"deleteEntireSoftLine":return E(()=>{O.deleteBackward(t,{unit:"line"}),O.deleteForward(t,{unit:"line"})},{at:W});case"deleteHardLineBackward":return E(()=>O.deleteBackward(t,{unit:"block"}),{at:W});case"deleteSoftLineBackward":return E(()=>O.deleteBackward(t,{unit:"line"}),{at:W});case"deleteHardLineForward":return E(()=>O.deleteForward(t,{unit:"block"}),{at:W});case"deleteSoftLineForward":return E(()=>O.deleteForward(t,{unit:"line"}),{at:W});case"deleteWordBackward":return E(()=>O.deleteBackward(t,{unit:"word"}),{at:W});case"deleteWordForward":return E(()=>O.deleteForward(t,{unit:"word"}),{at:W});case"insertLineBreak":return E(()=>O.insertSoftBreak(t),{at:W});case"insertParagraph":return E(()=>O.insertBreak(t),{at:W});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(hB(oe))return E(()=>Re.insertData(t,oe),{at:W});var ke=oe??"";if(io.get(t)&&(ke=ke.replace("\uFEFF","")),R==="insertText"&&/.*\n.*\n$/.test(ke)&&(ke=ke.slice(0,-1)),ke.includes(`
|
|
115
|
-
`))return E(()=>{var mt=ke.split(`
|
|
116
|
-
`);mt.forEach((Wt,mn)=>{Wt&&O.insertText(t,Wt),mn!==mt.length-1&&O.insertSoftBreak(t)})},{at:W});if(ce.equals(W.anchor.path,W.focus.path)){var[Fe,Ge]=Be.edges(W),tt={start:Fe.offset,end:Ge.offset,text:ke};if(ke&&c&&R==="insertCompositionText"){var xt=c.start+c.text.search(/\S|$/),$t=tt.start+tt.text.search(/\S|$/);$t===xt+1&&tt.end===c.start+c.text.length?(tt.start-=1,c=null,me()):c=!1}else R==="insertText"?c===null?c=tt:c&&Be.isCollapsed(W)&&c.end+c.text.length===Fe.offset?c=df(df({},c),{},{text:c.text+ke}):c=!1:c=!1;if(te){w(Fe.path,tt);return}}return E(()=>O.insertText(t,ke),{at:W})}}}},P=()=>!!Pa.get(t),N=()=>{var ne;return!!((ne=fr.get(t))!==null&&ne!==void 0&&ne.length)},$=()=>P()||N(),G=()=>o,V=ne=>{Ba.set(t,ne),i&&(clearTimeout(i),i=null);var{selection:fe}=t;if(ne){var R=!fe||!ce.equals(fe.anchor.path,ne.anchor.path),W=!fe||!ce.equals(fe.anchor.path.slice(0,-1),ne.anchor.path.slice(0,-1));(R&&c||W)&&(c=!1),(R||N())&&(i=setTimeout(v,gB))}},J=()=>{(P()||!N())&&v()},K=ne=>{N()||(h(!0),setTimeout(h))},me=()=>{P()||(s=setTimeout(v))},ye=ne=>{if(!(N()||P())&&ne.some(R=>nm(t,R,ne))){var fe;(fe=wC.get(t))===null||fe===void 0||fe()}};return{flush:v,scheduleFlush:me,hasPendingDiffs:N,hasPendingAction:P,hasPendingChanges:$,isFlushing:G,handleUserSelect:V,handleCompositionEnd:y,handleCompositionStart:C,handleDOMBeforeInput:j,handleKeyDown:K,handleDomMutations:ye,handleInput:J}}function vB(){var e=p.useRef(!1);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var ku=lf?p.useLayoutEffect:p.useEffect;function bB(e,t,n){var[r]=p.useState(()=>new MutationObserver(t));ku(()=>{r.takeRecords()}),p.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}var xB=["node"];function PC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PC(Object(n),!0).forEach(function(r){af(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var CB={subtree:!0,childList:!0,characterData:!0},wB=dr?e=>{var{node:t}=e,n=$s(e,xB);if(!dr)return null;var r=Ta(),o=vB(),[a]=p.useState(()=>mB(yB({editor:r},n)));return bB(t,a.handleDomMutations,CB),qh.set(r,a.scheduleFlush),o&&a.flush(),a}:()=>null,EB=["anchor","focus"],SB=["anchor","focus"],DB=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),BC=(e,t)=>{var n=$s(e,EB),r=$s(t,SB);return e[Rs]===t[Rs]&&DB(n,r)},FB=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!Be.equals(r,o)||!BC(r,o))return!1}return!0},AB=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!BC(r,o))return!1}return!0},jB=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,a=Ta(),i=Re.findPath(a,o),s=ce.parent(i),u=n[EC]===!0;return a.isVoid(r)?p.createElement(am,{length:Ye.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!a.isInline(r)&&O.string(a,s)===""?p.createElement(am,{isLineBreak:!0,isMarkPlaceholder:u}):n.text===""?p.createElement(am,{isMarkPlaceholder:u}):t&&n.text.slice(-1)===`
|
|
117
|
-
`?p.createElement(NC,{isTrailing:!0,text:n.text}):p.createElement(NC,{text:n.text})},NC=e=>{var{text:t,isTrailing:n=!1}=e,r=p.useRef(null),o=()=>"".concat(t??"").concat(n?`
|
|
118
|
-
`:""),[a]=p.useState(o);return ku(()=>{var i=o();r.current&&r.current.textContent!==i&&(r.current.textContent=i)}),p.createElement(IB,{ref:r},a)},IB=p.memo(p.forwardRef((e,t)=>p.createElement("span",{"data-slate-string":!0,ref:t},e.children))),am=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),p.createElement("span",Object.assign({},o),!dr||!n?"\uFEFF":null,n?p.createElement("br",null):null)};function TB(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function OC(e){e.current&&(clearTimeout(e.current),e.current=null)}var kB=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:a,renderLeaf:i=j=>p.createElement(BB,Object.assign({},j))}=e,s=Ta(),u=p.useRef(null),c=p.useRef(null),[d,g]=p.useState(!1),v=p.useRef(null),y=p.useCallback(j=>{if(TB(u,j==null),j==null){var P;Yh.delete(s),(P=t.onPlaceholderResize)===null||P===void 0||P.call(t,null)}else{if(Yh.set(s,j),!u.current){var N=window.ResizeObserver||RP;u.current=new N(()=>{var $;($=t.onPlaceholderResize)===null||$===void 0||$.call(t,j)})}u.current.observe(j),c.current=j}},[c,t,s]),C=p.createElement(jB,{isLast:n,leaf:t,parent:o,text:r}),h=t[Rs];if(p.useEffect(()=>(h?v.current||(v.current=setTimeout(()=>{g(!0),v.current=null},300)):(OC(v),g(!1)),()=>OC(v)),[h,g]),h&&d){var w={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:ju?"inherit":void 0},contentEditable:!1,ref:y}};C=p.createElement(p.Fragment,null,a(w),C)}var E={"data-slate-leaf":!0};return i({attributes:E,children:C,leaf:t,text:r})},PB=p.memo(kB,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&<.equals(t.leaf,e.leaf)&&t.leaf[Rs]===e.leaf[Rs]),BB=e=>{var{attributes:t,children:n}=e;return p.createElement("span",Object.assign({},t),n)},NB=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:a,text:i}=e,s=Ta(),u=p.useRef(null),c=lt.decorations(i,t),d=Re.findKey(s,i),g=[],v=0;v<c.length;v++){var y=c[v];g.push(p.createElement(PB,{isLast:n&&v===c.length-1,key:"".concat(d.id,"-").concat(v),renderPlaceholder:o,leaf:y,text:i,parent:r,renderLeaf:a}))}var C=p.useCallback(h=>{var w=cf.get(s);h?(w==null||w.set(d,h),wi.set(i,h),Iu.set(h,i)):(w==null||w.delete(d),wi.delete(i),u.current&&Iu.delete(u.current)),u.current=h},[u,s,d,i]);return p.createElement("span",{"data-slate-node":"text",ref:C},g)},$C=p.memo(NB,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&AB(t.decorations,e.decorations)),OB=e=>{var{decorations:t,element:n,renderElement:r=j=>p.createElement(RB,Object.assign({},j)),renderPlaceholder:o,renderLeaf:a,selection:i}=e,s=Ta(),u=_B(),c=s.isInline(n),d=Re.findKey(s,n),g=p.useCallback(j=>{var P=cf.get(s);j?(P==null||P.set(d,j),wi.set(n,j),Iu.set(j,n)):(P==null||P.delete(d),wi.delete(n))},[s,d,n]),v=MC({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:i}),y={"data-slate-node":"element",ref:g};if(c&&(y["data-slate-inline"]=!0),!c&&O.hasInlines(s,n)){var C=Ye.string(n),h=M2(C);h==="rtl"&&(y.dir=h)}if(O.isVoid(s,n)){y["data-slate-void"]=!0,!u&&c&&(y.contentEditable=!1);var w=c?"span":"div",[[E]]=Ye.texts(n);v=p.createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},p.createElement($C,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:E})),Zh.set(E,0),Xh.set(E,n)}return r({attributes:y,children:v,element:n})},$B=p.memo(OB,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&FB(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Be.equals(e.selection,t.selection))),RB=e=>{var{attributes:t,children:n,element:r}=e,o=Ta(),a=o.isInline(r)?"span":"div";return p.createElement(a,Object.assign({},t,{style:{position:"relative"}}),n)},RC=p.createContext(()=>[]),MB=()=>p.useContext(RC),LB=p.createContext(!1),MC=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:i}=e,s=MB(),u=Ta(),c=Re.findPath(u,n),d=[],g=at.isElement(n)&&!u.isInline(n)&&O.hasInlines(u,n),v=0;v<n.children.length;v++){var y=c.concat(v),C=n.children[v],h=Re.findKey(u,C),w=O.range(u,y),E=i&&Be.intersection(w,i),j=s([C,y]);for(var P of t){var N=Be.intersection(P,w);N&&j.push(N)}at.isElement(C)?d.push(p.createElement(LB.Provider,{key:"provider-".concat(h.id),value:!!E},p.createElement($B,{decorations:j,element:C,key:h.id,renderElement:r,renderPlaceholder:o,renderLeaf:a,selection:E}))):d.push(p.createElement($C,{decorations:j,key:h.id,isLast:g&&v===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:a,text:C})),Zh.set(C,v),Xh.set(C,n)}return d},LC=p.createContext(!1),_B=()=>p.useContext(LC),_C=p.createContext(null),VB=()=>{var e=p.useContext(_C);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function WB(){var e=Ta(),t=p.useRef(!1),n=p.useRef(0),r=p.useCallback(()=>{if(!t.current){t.current=!0;var o=Re.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return p.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var HB=3,GB={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},zB={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},UB={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},dn=e=>{var t=GB[e],n=zB[e],r=UB[e],o=t&&zh(t),a=n&&zh(n),i=r&&zh(r);return s=>!!(o&&o(s)||xC&&a&&a(s)||!xC&&i&&i(s))},pn={isBold:dn("bold"),isCompose:dn("compose"),isMoveBackward:dn("moveBackward"),isMoveForward:dn("moveForward"),isDeleteBackward:dn("deleteBackward"),isDeleteForward:dn("deleteForward"),isDeleteLineBackward:dn("deleteLineBackward"),isDeleteLineForward:dn("deleteLineForward"),isDeleteWordBackward:dn("deleteWordBackward"),isDeleteWordForward:dn("deleteWordForward"),isExtendBackward:dn("extendBackward"),isExtendForward:dn("extendForward"),isExtendLineBackward:dn("extendLineBackward"),isExtendLineForward:dn("extendLineForward"),isItalic:dn("italic"),isMoveLineBackward:dn("moveLineBackward"),isMoveLineForward:dn("moveLineForward"),isMoveWordBackward:dn("moveWordBackward"),isMoveWordForward:dn("moveWordForward"),isRedo:dn("redo"),isSoftBreak:dn("insertSoftBreak"),isSplitBlock:dn("splitBlock"),isTransposeCharacter:dn("transposeCharacter"),isUndo:dn("undo")},ZB=(e,t)=>{var n=[],r=()=>{n=[]},o=i=>{if(t.current){var s=i.filter(u=>nm(e,u,i));n.push(...s)}};function a(){n.length>0&&(n.reverse().forEach(i=>{i.type!=="characterData"&&(i.removedNodes.forEach(s=>{i.target.insertBefore(s,i.nextSibling)}),i.addedNodes.forEach(s=>{i.target.removeChild(s)}))}),r())}return{registerMutations:o,restoreDOM:a,clear:r}},XB={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class VC extends p.Component{constructor(){super(...arguments),this.context=null,this.manager=null,this.mutationObserver=null}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,XB)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=ZB(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var a;(a=this.manager)===null||a===void 0||a.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}VC.contextType=Uh;var YB=dr?VC:e=>{var{children:t}=e;return p.createElement(p.Fragment,null,t)},JB=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],KB=["text"];function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WC(Object(n),!0).forEach(function(r){af(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var QB=e=>p.createElement(p.Fragment,null,MC(e)),qB=e=>{var t=p.useCallback(H=>p.createElement(eN,Object.assign({},H)),[]),{autoFocus:n,decorate:r=tN,onDOMBeforeInput:o,placeholder:a,readOnly:i=!1,renderElement:s,renderLeaf:u,renderPlaceholder:c=t,scrollSelectionIntoView:d=nN,style:g={},as:v="div",disableDefaultStyles:y=!1}=e,C=$s(e,JB),h=VB(),[w,E]=p.useState(!1),j=p.useRef(null),P=p.useRef([]),[N,$]=p.useState(),{onUserInput:G,receivedUserInput:V}=WB(),[,J]=p.useReducer(H=>H+1,0);wC.set(h,J),Kh.set(h,i);var K=p.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);p.useEffect(()=>{j.current&&n&&j.current.focus()},[n]);var me=p.useRef(),ye=p.useMemo(()=>gP(()=>{var H=me.current;if((dr||!Re.isComposing(h))&&(!K.isUpdatingSelection||H!=null&&H.isFlushing())&&!K.isDraggingInternally){var ge=Re.findDocumentOrShadowRoot(h),{activeElement:ae}=ge,be=Re.toDOMNode(h,h),Me=ge.getSelection();if(ae===be?(K.latestElement=ae,Ei.set(h,!0)):Ei.delete(h),!Me)return ze.deselect(h);var{anchorNode:Ne,focusNode:We}=Me,Ke=Re.hasEditableTarget(h,Ne)||Re.isTargetInsideNonReadonlyVoid(h,Ne),$e=Re.hasEditableTarget(h,We)||Re.isTargetInsideNonReadonlyVoid(h,We);if(Ke&&$e){var qe=Re.toSlateRange(h,Me,{exactMatch:!1,suppressThrow:!0});qe&&(!Re.isComposing(h)&&!(H!=null&&H.hasPendingChanges())&&!(H!=null&&H.isFlushing())?ze.select(h,qe):H==null||H.handleUserSelect(qe))}i&&(!Ke||!$e)&&ze.deselect(h)}},100),[h,i,K]),ne=p.useMemo(()=>sP(ye,0),[ye]);me.current=wB({node:j,onDOMSelectionChange:ye,scheduleOnDOMSelectionChange:ne}),ku(()=>{var H,ge,ae;j.current&&(ae=em(j.current))?(CC.set(h,ae),uf.set(h,j.current),wi.set(h,j.current),Iu.set(j.current,h)):wi.delete(h);var{selection:be}=h,Me=Re.findDocumentOrShadowRoot(h),Ne=Me.getSelection();if(!(!Ne||!Re.isFocused(h)||(H=me.current)!==null&&H!==void 0&&H.hasPendingAction())){var We=ht=>{var At=Ne.type!=="None";if(!(!be&&!At)){var le=uf.get(h),Ee=!1;if(le.contains(Ne.anchorNode)&&le.contains(Ne.focusNode)&&(Ee=!0),At&&Ee&&be&&!ht){var Ie=Re.toSlateRange(h,Ne,{exactMatch:!0,suppressThrow:!0});if(Ie&&Be.equals(Ie,be)){var Ze;if(!K.hasMarkPlaceholder)return;var{anchorNode:He}=Ne;if(He!=null&&(Ze=He.parentElement)!==null&&Ze!==void 0&&Ze.hasAttribute("data-slate-mark-placeholder"))return}}if(be&&!Re.hasRange(h,be)){h.selection=Re.toSlateRange(h,Ne,{exactMatch:!1,suppressThrow:!0});return}K.isUpdatingSelection=!0;var ke=be&&Re.toDOMRange(h,be);return ke?(Re.isComposing(h)&&!dr?Ne.collapseToEnd():Be.isBackward(be)?Ne.setBaseAndExtent(ke.endContainer,ke.endOffset,ke.startContainer,ke.startOffset):Ne.setBaseAndExtent(ke.startContainer,ke.startOffset,ke.endContainer,ke.endOffset),d(h,ke)):Ne.removeAllRanges(),ke}},Ke=We(),$e=((ge=me.current)===null||ge===void 0?void 0:ge.isFlushing())==="action";if(!dr||!$e){setTimeout(()=>{if(Ke&&sf){var ht=Re.toDOMNode(h,h);ht.focus()}K.isUpdatingSelection=!1});return}var qe=null,ot=requestAnimationFrame(()=>{if($e){var ht=At=>{try{var le=Re.toDOMNode(h,h);le.focus(),We(At)}catch{}};ht(),qe=setTimeout(()=>{ht(!0),K.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(ot),qe&&clearTimeout(qe)}}});var fe=p.useCallback(H=>{if(G(),!i&&Re.hasEditableTarget(h,H.target)&&!rN(H,o)){var ge;if(me.current)return me.current.handleDOMBeforeInput(H);ne.flush(),ye.flush();var{selection:ae}=h,{inputType:be}=H,Me=H.dataTransfer||H.data||void 0,Ne=be==="insertCompositionText"||be==="deleteCompositionText";if(Ne&&Re.isComposing(h))return;var We=!1;if(be==="insertText"&&ae&&Be.isCollapsed(ae)&&H.data&&H.data.length===1&&/[a-z ]/i.test(H.data)&&ae.anchor.offset!==0){var Ke,$e;We=!0,h.marks&&(We=!1);var{anchor:qe}=ae,[ot,ht]=Re.toDOMPoint(h,qe),At=(Ke=ot.parentElement)===null||Ke===void 0?void 0:Ke.closest("a"),le=Re.getWindow(h);if(We&&At&&Re.hasDOMNode(h,At)){var Ee,Ie=le==null?void 0:le.document.createTreeWalker(At,NodeFilter.SHOW_TEXT).lastChild();Ie===ot&&((Ee=Ie.textContent)===null||Ee===void 0?void 0:Ee.length)===ht&&(We=!1)}if(We&&ot.parentElement&&(le==null||($e=le.getComputedStyle(ot.parentElement))===null||$e===void 0?void 0:$e.whiteSpace)==="pre"){var Ze=O.above(h,{at:qe.path,match:xt=>at.isElement(xt)&&O.isBlock(h,xt)});Ze&&Ye.string(Ze[0]).includes(" ")&&(We=!1)}}if(!be.startsWith("delete")||be.startsWith("deleteBy")){var[He]=H.getTargetRanges();if(He){var ke=Re.toSlateRange(h,He,{exactMatch:!1,suppressThrow:!1});if(!ae||!Be.equals(ae,ke)){We=!1;var Fe=!Ne&&h.selection&&O.rangeRef(h,h.selection);ze.select(h,ke),Fe&&Tu.set(h,Fe)}}}if(Ne)return;if(We||H.preventDefault(),ae&&Be.isExpanded(ae)&&be.startsWith("delete")){var Ge=be.endsWith("Backward")?"backward":"forward";O.deleteFragment(h,{direction:Ge});return}switch(be){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{O.deleteFragment(h);break}case"deleteContent":case"deleteContentForward":{O.deleteForward(h);break}case"deleteContentBackward":{O.deleteBackward(h);break}case"deleteEntireSoftLine":{O.deleteBackward(h,{unit:"line"}),O.deleteForward(h,{unit:"line"});break}case"deleteHardLineBackward":{O.deleteBackward(h,{unit:"block"});break}case"deleteSoftLineBackward":{O.deleteBackward(h,{unit:"line"});break}case"deleteHardLineForward":{O.deleteForward(h,{unit:"block"});break}case"deleteSoftLineForward":{O.deleteForward(h,{unit:"line"});break}case"deleteWordBackward":{O.deleteBackward(h,{unit:"word"});break}case"deleteWordForward":{O.deleteForward(h,{unit:"word"});break}case"insertLineBreak":O.insertSoftBreak(h);break;case"insertParagraph":{O.insertBreak(h);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{be==="insertFromComposition"&&Re.isComposing(h)&&(E(!1),Si.set(h,!1)),(Me==null?void 0:Me.constructor.name)==="DataTransfer"?Re.insertData(h,Me):typeof Me=="string"&&(We?P.current.push(()=>O.insertText(h,Me)):O.insertText(h,Me));break}}var tt=(ge=Tu.get(h))===null||ge===void 0?void 0:ge.unref();Tu.delete(h),tt&&(!h.selection||!Be.equals(h.selection,tt))&&ze.select(h,tt)}},[h,ye,G,o,i,ne]),R=p.useCallback(H=>{H==null?(ye.cancel(),ne.cancel(),uf.delete(h),wi.delete(h),j.current&&ka&&j.current.removeEventListener("beforeinput",fe)):ka&&H.addEventListener("beforeinput",fe),j.current=H},[ye,ne,h,fe]);ku(()=>{var H=Re.getWindow(h);return H.document.addEventListener("selectionchange",ne),()=>{H.document.removeEventListener("selectionchange",ne)}},[ne]);var W=r([h,[]]),oe=a&&h.children.length===1&&Array.from(Ye.texts(h)).length===1&&Ye.string(h)===""&&!w,pe=p.useCallback(H=>{if(H&&oe){var ge;$((ge=H.getBoundingClientRect())===null||ge===void 0?void 0:ge.height)}else $(void 0)},[oe]);if(oe){var se=O.start(h,[]);W.push({[Rs]:!0,placeholder:a,onPlaceholderResize:pe,anchor:se,focus:se})}var{marks:Z}=h;if(K.hasMarkPlaceholder=!1,h.selection&&Be.isCollapsed(h.selection)&&Z){var{anchor:te}=h.selection,U=Ye.leaf(h,te.path),Q=$s(U,KB);if(!lt.equals(U,Z,{loose:!0})){K.hasMarkPlaceholder=!0;var he=Object.fromEntries(Object.keys(Q).map(H=>[H,null]));W.push(Ms(Ms(Ms({[EC]:!0},he),Z),{},{anchor:te,focus:te}))}}return p.useEffect(()=>{setTimeout(()=>{var{selection:H}=h;if(H){var{anchor:ge}=H,ae=Ye.leaf(h,ge.path);if(Z&&!lt.equals(ae,Z,{loose:!0})){io.set(h,Z);return}}io.delete(h)})}),p.createElement(LC.Provider,{value:i},p.createElement(RC.Provider,{value:r},p.createElement(YB,{node:j,receivedUserInput:V},p.createElement(v,Object.assign({role:i?void 0:"textbox","aria-multiline":i?void 0:!0},C,{spellCheck:ka||!lf?C.spellCheck:!1,autoCorrect:ka||!lf?C.autoCorrect:"false",autoCapitalize:ka||!lf?C.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!i,zindex:-1,suppressContentEditableWarning:!0,ref:R,style:Ms(Ms({},y?{}:Ms({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},N?{minHeight:N}:{})),g),onBeforeInput:p.useCallback(H=>{if(!ka&&!i&&!qn(H,C.onBeforeInput)&&Re.hasSelectableTarget(h,H.target)&&(H.preventDefault(),!Re.isComposing(h))){var ge=H.data;O.insertText(h,ge)}},[C.onBeforeInput,h,i]),onInput:p.useCallback(H=>{if(!qn(H,C.onInput)){if(me.current){me.current.handleInput();return}for(var ge of P.current)ge();P.current=[]}},[C.onInput]),onBlur:p.useCallback(H=>{if(!(i||K.isUpdatingSelection||!Re.hasSelectableTarget(h,H.target)||qn(H,C.onBlur))){var ge=Re.findDocumentOrShadowRoot(h);if(K.latestElement!==ge.activeElement){var{relatedTarget:ae}=H,be=Re.toDOMNode(h,h);if(ae!==be&&!(Wr(ae)&&ae.hasAttribute("data-slate-spacer"))){if(ae!=null&&Na(ae)&&Re.hasDOMNode(h,ae)){var Me=Re.toSlateNode(h,ae);if(at.isElement(Me)&&!h.isVoid(Me))return}if(ju){var Ne=ge.getSelection();Ne==null||Ne.removeAllRanges()}Ei.delete(h)}}}},[i,K.isUpdatingSelection,K.latestElement,h,C.onBlur]),onClick:p.useCallback(H=>{if(Re.hasTarget(h,H.target)&&!qn(H,C.onClick)&&Na(H.target)){var ge=Re.toSlateNode(h,H.target),ae=Re.findPath(h,ge);if(!O.hasPath(h,ae)||Ye.get(h,ae)!==ge)return;if(H.detail===HB&&ae.length>=1){var be=ae;if(!(at.isElement(ge)&&O.isBlock(h,ge))){var Me,Ne=O.above(h,{match:At=>at.isElement(At)&&O.isBlock(h,At),at:ae});be=(Me=Ne==null?void 0:Ne[1])!==null&&Me!==void 0?Me:ae.slice(0,1)}var We=O.range(h,be);ze.select(h,We);return}if(i)return;var Ke=O.start(h,ae),$e=O.end(h,ae),qe=O.void(h,{at:Ke}),ot=O.void(h,{at:$e});if(qe&&ot&&ce.equals(qe[1],ot[1])){var ht=O.range(h,Ke);ze.select(h,ht)}}},[h,C.onClick,i]),onCompositionEnd:p.useCallback(H=>{if(Re.hasSelectableTarget(h,H.target)){var ge;if(Re.isComposing(h)&&(E(!1),Si.set(h,!1)),(ge=me.current)===null||ge===void 0||ge.handleCompositionEnd(H),qn(H,C.onCompositionEnd)||dr)return;if(!ju&&!ZP&&!HP&&!YP&&!XP&&H.data){var ae=io.get(h);io.delete(h),ae!==void 0&&(qo.set(h,h.marks),h.marks=ae),O.insertText(h,H.data);var be=qo.get(h);qo.delete(h),be!==void 0&&(h.marks=be)}}},[C.onCompositionEnd,h]),onCompositionUpdate:p.useCallback(H=>{Re.hasSelectableTarget(h,H.target)&&!qn(H,C.onCompositionUpdate)&&(Re.isComposing(h)||(E(!0),Si.set(h,!0)))},[C.onCompositionUpdate,h]),onCompositionStart:p.useCallback(H=>{if(Re.hasSelectableTarget(h,H.target)){var ge;if((ge=me.current)===null||ge===void 0||ge.handleCompositionStart(H),qn(H,C.onCompositionStart)||dr)return;E(!0);var{selection:ae}=h;if(ae){if(Be.isExpanded(ae)){O.deleteFragment(h);return}var be=O.above(h,{match:We=>at.isElement(We)&&O.isInline(h,We),mode:"highest"});if(be){var[,Me]=be;if(O.isEnd(h,ae.anchor,Me)){var Ne=O.after(h,Me);ze.setSelection(h,{anchor:Ne,focus:Ne})}}}}},[C.onCompositionStart,h]),onCopy:p.useCallback(H=>{Re.hasSelectableTarget(h,H.target)&&!qn(H,C.onCopy)&&!HC(H)&&(H.preventDefault(),Re.setFragmentData(h,H.clipboardData,"copy"))},[C.onCopy,h]),onCut:p.useCallback(H=>{if(!i&&Re.hasSelectableTarget(h,H.target)&&!qn(H,C.onCut)&&!HC(H)){H.preventDefault(),Re.setFragmentData(h,H.clipboardData,"cut");var{selection:ge}=h;if(ge)if(Be.isExpanded(ge))O.deleteFragment(h);else{var ae=Ye.parent(h,ge.anchor.path);O.isVoid(h,ae)&&ze.delete(h)}}},[i,h,C.onCut]),onDragOver:p.useCallback(H=>{if(Re.hasTarget(h,H.target)&&!qn(H,C.onDragOver)){var ge=Re.toSlateNode(h,H.target);at.isElement(ge)&&O.isVoid(h,ge)&&H.preventDefault()}},[C.onDragOver,h]),onDragStart:p.useCallback(H=>{if(!i&&Re.hasTarget(h,H.target)&&!qn(H,C.onDragStart)){var ge=Re.toSlateNode(h,H.target),ae=Re.findPath(h,ge),be=at.isElement(ge)&&O.isVoid(h,ge)||O.void(h,{at:ae,voids:!0});if(be){var Me=O.range(h,ae);ze.select(h,Me)}K.isDraggingInternally=!0,Re.setFragmentData(h,H.dataTransfer,"drag")}},[i,h,C.onDragStart,K]),onDrop:p.useCallback(H=>{if(!i&&Re.hasTarget(h,H.target)&&!qn(H,C.onDrop)){H.preventDefault();var ge=h.selection,ae=Re.findEventRange(h,H),be=H.dataTransfer;ze.select(h,ae),K.isDraggingInternally&&ge&&!Be.equals(ge,ae)&&!O.void(h,{at:ae,voids:!0})&&ze.delete(h,{at:ge}),Re.insertData(h,be),Re.isFocused(h)||Re.focus(h)}K.isDraggingInternally=!1},[i,h,C.onDrop,K]),onDragEnd:p.useCallback(H=>{!i&&K.isDraggingInternally&&C.onDragEnd&&Re.hasTarget(h,H.target)&&C.onDragEnd(H),K.isDraggingInternally=!1},[i,K,C,h]),onFocus:p.useCallback(H=>{if(!i&&!K.isUpdatingSelection&&Re.hasEditableTarget(h,H.target)&&!qn(H,C.onFocus)){var ge=Re.toDOMNode(h,h),ae=Re.findDocumentOrShadowRoot(h);if(K.latestElement=ae.activeElement,sf&&H.target!==ge){ge.focus();return}Ei.set(h,!0)}},[i,K,h,C.onFocus]),onKeyDown:p.useCallback(H=>{if(!i&&Re.hasEditableTarget(h,H.target)){var ge;(ge=me.current)===null||ge===void 0||ge.handleKeyDown(H);var{nativeEvent:ae}=H;if(Re.isComposing(h)&&ae.isComposing===!1&&(Si.set(h,!1),E(!1)),qn(H,C.onKeyDown)||Re.isComposing(h))return;var{selection:be}=h,Me=h.children[be!==null?be.focus.path[0]:0],Ne=M2(Ye.string(Me))==="rtl";if(pn.isRedo(ae)){H.preventDefault();var We=h;typeof We.redo=="function"&&We.redo();return}if(pn.isUndo(ae)){H.preventDefault();var Ke=h;typeof Ke.undo=="function"&&Ke.undo();return}if(pn.isMoveLineBackward(ae)){H.preventDefault(),ze.move(h,{unit:"line",reverse:!0});return}if(pn.isMoveLineForward(ae)){H.preventDefault(),ze.move(h,{unit:"line"});return}if(pn.isExtendLineBackward(ae)){H.preventDefault(),ze.move(h,{unit:"line",edge:"focus",reverse:!0});return}if(pn.isExtendLineForward(ae)){H.preventDefault(),ze.move(h,{unit:"line",edge:"focus"});return}if(pn.isMoveBackward(ae)){H.preventDefault(),be&&Be.isCollapsed(be)?ze.move(h,{reverse:!Ne}):ze.collapse(h,{edge:"start"});return}if(pn.isMoveForward(ae)){H.preventDefault(),be&&Be.isCollapsed(be)?ze.move(h,{reverse:Ne}):ze.collapse(h,{edge:"end"});return}if(pn.isMoveWordBackward(ae)){H.preventDefault(),be&&Be.isExpanded(be)&&ze.collapse(h,{edge:"focus"}),ze.move(h,{unit:"word",reverse:!Ne});return}if(pn.isMoveWordForward(ae)){H.preventDefault(),be&&Be.isExpanded(be)&&ze.collapse(h,{edge:"focus"}),ze.move(h,{unit:"word",reverse:Ne});return}if(ka){if((yC||ju)&&be&&(pn.isDeleteBackward(ae)||pn.isDeleteForward(ae))&&Be.isCollapsed(be)){var $e=Ye.parent(h,be.anchor.path);if(at.isElement($e)&&O.isVoid(h,$e)&&(O.isInline(h,$e)||O.isBlock(h,$e))){H.preventDefault(),O.deleteBackward(h,{unit:"block"});return}}}else{if(pn.isBold(ae)||pn.isItalic(ae)||pn.isTransposeCharacter(ae)){H.preventDefault();return}if(pn.isSoftBreak(ae)){H.preventDefault(),O.insertSoftBreak(h);return}if(pn.isSplitBlock(ae)){H.preventDefault(),O.insertBreak(h);return}if(pn.isDeleteBackward(ae)){H.preventDefault(),be&&Be.isExpanded(be)?O.deleteFragment(h,{direction:"backward"}):O.deleteBackward(h);return}if(pn.isDeleteForward(ae)){H.preventDefault(),be&&Be.isExpanded(be)?O.deleteFragment(h,{direction:"forward"}):O.deleteForward(h);return}if(pn.isDeleteLineBackward(ae)){H.preventDefault(),be&&Be.isExpanded(be)?O.deleteFragment(h,{direction:"backward"}):O.deleteBackward(h,{unit:"line"});return}if(pn.isDeleteLineForward(ae)){H.preventDefault(),be&&Be.isExpanded(be)?O.deleteFragment(h,{direction:"forward"}):O.deleteForward(h,{unit:"line"});return}if(pn.isDeleteWordBackward(ae)){H.preventDefault(),be&&Be.isExpanded(be)?O.deleteFragment(h,{direction:"backward"}):O.deleteBackward(h,{unit:"word"});return}if(pn.isDeleteWordForward(ae)){H.preventDefault(),be&&Be.isExpanded(be)?O.deleteFragment(h,{direction:"forward"}):O.deleteForward(h,{unit:"word"});return}}}},[i,h,C.onKeyDown]),onPaste:p.useCallback(H=>{!i&&Re.hasEditableTarget(h,H.target)&&!qn(H,C.onPaste)&&(!ka||QP(H.nativeEvent)||ju)&&(H.preventDefault(),Re.insertData(h,H.clipboardData))},[i,h,C.onPaste])}),p.createElement(QB,{decorations:W,node:h,renderElement:s,renderPlaceholder:c,renderLeaf:u,selection:h.selection})))))},eN=e=>{var{attributes:t,children:n}=e;return p.createElement("span",Object.assign({},t),n,dr&&p.createElement("br",null))},tN=()=>[],nN=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&Be.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),mP(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},qn=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},HC=e=>Na(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),rN=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},oN=p.createContext(!1),aN=p.createContext({});function iN(e){var t=p.useRef([]).current,n=p.useRef({editor:e}).current,r=p.useCallback(a=>{n.editor=a,t.forEach(i=>i(a))},[t,n]),o=p.useMemo(()=>({getSlate:()=>n.editor,addEventListener:a=>(t.push(a),()=>{t.splice(t.indexOf(a),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var sN=["editor","children","onChange","initialValue"],lN=e=>{var{editor:t,children:n,onChange:r,initialValue:o}=e,a=$s(e,sN),i=p.useRef(!1),[s,u]=p.useState(()=>{if(!Ye.isNodeList(o))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Tn.stringify(o)));if(!O.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Tn.stringify(t)));return t.children=o,Object.assign(t,a),{v:0,editor:t}}),{selectorContext:c,onChange:d}=iN(t),g=p.useCallback(()=>{r&&r(t.children),u(C=>({v:C.v+1,editor:t})),d(t)},[t,d,r]);p.useEffect(()=>(Qh.set(t,g),()=>{Qh.set(t,()=>{}),i.current=!0}),[t,g]);var[v,y]=p.useState(Re.isFocused(t));return p.useEffect(()=>{y(Re.isFocused(t))},[t]),ku(()=>{var C=()=>y(Re.isFocused(t));return bC>=17?(document.addEventListener("focusin",C),document.addEventListener("focusout",C),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",C)}):(document.addEventListener("focus",C,!0),document.addEventListener("blur",C,!0),()=>{document.removeEventListener("focus",C,!0),document.removeEventListener("blur",C,!0)})},[]),p.createElement(aN.Provider,{value:c},p.createElement(_C.Provider,{value:s},p.createElement(Uh.Provider,{value:s.editor},p.createElement(oN.Provider,{value:v},n))))},GC=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},zC=(e,t,n)=>{var r=Re.toDOMRange(e,t).getBoundingClientRect(),o=Re.toDOMRange(e,n).getBoundingClientRect();return GC(r,o)&&GC(o,r)},uN=(e,t)=>{var n=O.range(e,Be.end(t)),r=Array.from(O.positions(e,{at:t})),o=0,a=r.length,i=Math.floor(a/2);if(zC(e,O.range(e,r[o]),n))return O.range(e,r[o],n);if(r.length<2)return O.range(e,r[r.length-1],n);for(;i!==r.length&&i!==o;)zC(e,O.range(e,r[i]),n)?a=i:o=i,i=Math.floor((o+a)/2);return O.range(e,r[a],n)};function UC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ZC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UC(Object(n),!0).forEach(function(r){af(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cN=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:o,onChange:a,deleteBackward:i,addMark:s,removeMark:u}=r;return cf.set(r,new WeakMap),r.addMark=(c,d)=>{var g,v;(g=qh.get(r))===null||g===void 0||g(),!io.get(r)&&(v=fr.get(r))!==null&&v!==void 0&&v.length&&io.set(r,null),qo.delete(r),s(c,d)},r.removeMark=c=>{var d;!io.get(r)&&(d=fr.get(r))!==null&&d!==void 0&&d.length&&io.set(r,null),qo.delete(r),u(c)},r.deleteBackward=c=>{if(c!=="line")return i(c);if(r.selection&&Be.isCollapsed(r.selection)){var d=O.above(r,{match:C=>at.isElement(C)&&O.isBlock(r,C),at:r.selection});if(d){var[,g]=d,v=O.range(r,g,r.selection.anchor),y=uN(r,v);Be.isCollapsed(y)||ze.delete(r,{at:y})}}},r.apply=c=>{var d=[],g=fr.get(r);if(g!=null&&g.length){var v=g.map(G=>dB(G,c)).filter(Boolean);fr.set(r,v)}var y=Ba.get(r);y&&Ba.set(r,TC(r,y,c));var C=Pa.get(r);if(C!=null&&C.at){var h=It.isPoint(C==null?void 0:C.at)?om(r,C.at,c):TC(r,C.at,c);Pa.set(r,h?ZC(ZC({},C),{},{at:h}):null)}switch(c.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{d.push(...ff(r,c.path));break}case"set_selection":{var w;(w=Tu.get(r))===null||w===void 0||w.unref(),Tu.delete(r);break}case"insert_node":case"remove_node":{d.push(...ff(r,ce.parent(c.path)));break}case"merge_node":{var E=ce.previous(c.path);d.push(...ff(r,E));break}case"move_node":{var j=ce.common(ce.parent(c.path),ce.parent(c.newPath));d.push(...ff(r,j));break}}o(c);for(var[P,N]of d){var[$]=O.node(r,P);Jh.set($,N)}},r.setFragmentData=c=>{var{selection:d}=r;if(d){var[g,v]=Be.edges(d),y=O.void(r,{at:g.path}),C=O.void(r,{at:v.path});if(!(Be.isCollapsed(d)&&!y)){var h=Re.toDOMRange(r,d),w=h.cloneContents(),E=w.childNodes[0];if(w.childNodes.forEach(me=>{me.textContent&&me.textContent.trim()!==""&&(E=me)}),C){var[j]=C,P=h.cloneRange(),N=Re.toDOMNode(r,j);P.setEndAfter(N),w=P.cloneContents()}if(y&&(E=w.querySelector("[data-slate-spacer]")),Array.from(w.querySelectorAll("[data-slate-zero-width]")).forEach(me=>{var ye=me.getAttribute("data-slate-zero-width")==="n";me.textContent=ye?`
|
|
119
|
-
`:""}),SC(E)){var $=E.ownerDocument.createElement("span");$.style.whiteSpace="pre",$.appendChild(E),w.appendChild($),E=$}var G=r.getFragment(),V=JSON.stringify(G),J=window.btoa(encodeURIComponent(V));E.setAttribute("data-slate-fragment",J),c.setData("application/".concat(n),J);var K=w.ownerDocument.createElement("div");return K.appendChild(w),K.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(K),c.setData("text/html",K.innerHTML),c.setData("text/plain",FC(K)),w.ownerDocument.body.removeChild(K),c}}},r.insertData=c=>{r.insertFragmentData(c)||r.insertTextData(c)},r.insertFragmentData=c=>{var d=c.getData("application/".concat(n))||rB(c);if(d){var g=decodeURIComponent(window.atob(d)),v=JSON.parse(g);return r.insertFragment(v),!0}return!1},r.insertTextData=c=>{var d=c.getData("text/plain");if(d){var g=d.split(/\r\n|\r|\n/),v=!1;for(var y of g)v&&ze.splitNodes(r,{always:!0}),r.insertText(y),v=!0;return!0}return!1},r.onChange=c=>{var d=bC<18?wo.unstable_batchedUpdates:g=>g();d(()=>{var g=Qh.get(r);g&&g(),a(c)})},r},ff=(e,t)=>{var n=[];for(var[r,o]of O.levels(e,{at:t})){var a=Re.findKey(e,r);n.push([o,a])}return n};const dN=[{type:"paragraph",children:[{text:""}]}];let fN={bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"},strikethrough:{textDecoration:"line-through"}};const gN=e=>{let t=Object.assign({},e.leaf);delete t.text;let n=Object.entries(t).filter(([o,a])=>a).map(([o,a])=>o),r={};return n.length!=0&&n.map(o=>{Object.entries(fN[o]).map(([a,i])=>{r[a]=i})}),l.jsx("span",{...e.attributes,style:r,children:e.children})},gf=e=>l.jsx("div",{className:"border-box mr-[5px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-400 p-2",onMouseDown:e.onMouseDown,children:e.name}),pN=()=>{const[e]=p.useState(()=>cN(ok())),t=p.useCallback(r=>l.jsx(gN,{...r}),[]),n=(r,o)=>{r.preventDefault();let a=O.marks(e)[o]||!1;console.log(O.marks(e)),O.addMark(e,o,!a)};return l.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded bg-blue-300 shadow-md",children:[l.jsxs("div",{className:"flex w-full flex-row justify-start p-2",children:[l.jsx(gf,{name:"B",onMouseDown:r=>{n(r,"bold")}}),l.jsx(gf,{name:"I",onMouseDown:r=>{n(r,"italic")}}),l.jsx(gf,{name:"U",onMouseDown:r=>{n(r,"underline")}}),l.jsx(gf,{name:"S",onMouseDown:r=>{n(r,"strikethrough")}})]}),l.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),l.jsx("div",{className:"w-full",children:l.jsx(lN,{editor:e,initialValue:dN,children:l.jsx(qB,{renderLeaf:t,className:"h-[150px] p-2",onKeyDown:r=>{if(r.ctrlKey)switch(r.key){case"b":{r.preventDefault(),O.addMark(e,"bold",!0);break}}}})})}),l.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),l.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",children:"Submit"})]})};var Di={},Fi={};/**
|
|
120
|
-
* @license React
|
|
121
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
122
|
-
*
|
|
123
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the MIT license found in the
|
|
126
|
-
* LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/var XC;function hN(){if(XC)return Fi;XC=1;var e=p;function t(S){for(var T="https://reactjs.org/docs/error-decoder.html?invariant="+S,_=1;_<arguments.length;_++)T+="&args[]="+encodeURIComponent(arguments[_]);return"Minified React error #"+S+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,o={},a={};function i(S){return n.call(a,S)?!0:n.call(o,S)?!1:r.test(S)?a[S]=!0:(o[S]=!0,!1)}function s(S,T,_,X,Se,ve,Pe){this.acceptsBooleans=T===2||T===3||T===4,this.attributeName=X,this.attributeNamespace=Se,this.mustUseProperty=_,this.propertyName=S,this.type=T,this.sanitizeURL=ve,this.removeEmptyString=Pe}var u={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(S){u[S]=new s(S,0,!1,S,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(S){var T=S[0];u[T]=new s(T,1,!1,S[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(S){u[S]=new s(S,2,!1,S.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(S){u[S]=new s(S,2,!1,S,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(S){u[S]=new s(S,3,!1,S.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(S){u[S]=new s(S,3,!0,S,null,!1,!1)}),["capture","download"].forEach(function(S){u[S]=new s(S,4,!1,S,null,!1,!1)}),["cols","rows","size","span"].forEach(function(S){u[S]=new s(S,6,!1,S,null,!1,!1)}),["rowSpan","start"].forEach(function(S){u[S]=new s(S,5,!1,S.toLowerCase(),null,!1,!1)});var c=/[\-:]([a-z])/g;function d(S){return S[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(S){var T=S.replace(c,d);u[T]=new s(T,1,!1,S,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(S){var T=S.replace(c,d);u[T]=new s(T,1,!1,S,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(S){var T=S.replace(c,d);u[T]=new s(T,1,!1,S,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(S){u[S]=new s(S,1,!1,S.toLowerCase(),null,!1,!1)}),u.xlinkHref=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(S){u[S]=new s(S,1,!1,S.toLowerCase(),null,!0,!0)});var g={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v=["Webkit","ms","Moz","O"];Object.keys(g).forEach(function(S){v.forEach(function(T){T=T+S.charAt(0).toUpperCase()+S.substring(1),g[T]=g[S]})});var y=/["'&<>]/;function C(S){if(typeof S=="boolean"||typeof S=="number")return""+S;S=""+S;var T=y.exec(S);if(T){var _="",X,Se=0;for(X=T.index;X<S.length;X++){switch(S.charCodeAt(X)){case 34:T=""";break;case 38:T="&";break;case 39:T="'";break;case 60:T="<";break;case 62:T=">";break;default:continue}Se!==X&&(_+=S.substring(Se,X)),Se=X+1,_+=T}S=Se!==X?_+S.substring(Se,X):_}return S}var h=/([A-Z])/g,w=/^ms-/,E=Array.isArray;function j(S,T){return{insertionMode:S,selectedValue:T}}function P(S,T,_){switch(T){case"select":return j(1,_.value!=null?_.value:_.defaultValue);case"svg":return j(2,null);case"math":return j(3,null);case"foreignObject":return j(1,null);case"table":return j(4,null);case"thead":case"tbody":case"tfoot":return j(5,null);case"colgroup":return j(7,null);case"tr":return j(6,null)}return 4<=S.insertionMode||S.insertionMode===0?j(1,null):S}var N=new Map;function $(S,T,_){if(typeof _!="object")throw Error(t(62));T=!0;for(var X in _)if(n.call(_,X)){var Se=_[X];if(Se!=null&&typeof Se!="boolean"&&Se!==""){if(X.indexOf("--")===0){var ve=C(X);Se=C((""+Se).trim())}else{ve=X;var Pe=N.get(ve);Pe!==void 0||(Pe=C(ve.replace(h,"-$1").toLowerCase().replace(w,"-ms-")),N.set(ve,Pe)),ve=Pe,Se=typeof Se=="number"?Se===0||n.call(g,X)?""+Se:Se+"px":C((""+Se).trim())}T?(T=!1,S.push(' style="',ve,":",Se)):S.push(";",ve,":",Se)}}T||S.push('"')}function G(S,T,_,X){switch(_){case"style":$(S,T,X);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){if(T=u.hasOwnProperty(_)?u[_]:null,T!==null){switch(typeof X){case"function":case"symbol":return;case"boolean":if(!T.acceptsBooleans)return}switch(_=T.attributeName,T.type){case 3:X&&S.push(" ",_,'=""');break;case 4:X===!0?S.push(" ",_,'=""'):X!==!1&&S.push(" ",_,'="',C(X),'"');break;case 5:isNaN(X)||S.push(" ",_,'="',C(X),'"');break;case 6:!isNaN(X)&&1<=X&&S.push(" ",_,'="',C(X),'"');break;default:T.sanitizeURL&&(X=""+X),S.push(" ",_,'="',C(X),'"')}}else if(i(_)){switch(typeof X){case"function":case"symbol":return;case"boolean":if(T=_.toLowerCase().slice(0,5),T!=="data-"&&T!=="aria-")return}S.push(" ",_,'="',C(X),'"')}}}function V(S,T,_){if(T!=null){if(_!=null)throw Error(t(60));if(typeof T!="object"||!("__html"in T))throw Error(t(61));T=T.__html,T!=null&&S.push(""+T)}}function J(S){var T="";return e.Children.forEach(S,function(_){_!=null&&(T+=_)}),T}function K(S,T,_,X){S.push(ne(_));var Se=_=null,ve;for(ve in T)if(n.call(T,ve)){var Pe=T[ve];if(Pe!=null)switch(ve){case"children":_=Pe;break;case"dangerouslySetInnerHTML":Se=Pe;break;default:G(S,X,ve,Pe)}}return S.push(">"),V(S,Se,_),typeof _=="string"?(S.push(C(_)),null):_}var me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ye=new Map;function ne(S){var T=ye.get(S);if(T===void 0){if(!me.test(S))throw Error(t(65,S));T="<"+S,ye.set(S,T)}return T}function fe(S,T,_,X,Se){switch(T){case"select":S.push(ne("select"));var ve=null,Pe=null;for(ut in _)if(n.call(_,ut)){var Ue=_[ut];if(Ue!=null)switch(ut){case"children":ve=Ue;break;case"dangerouslySetInnerHTML":Pe=Ue;break;case"defaultValue":case"value":break;default:G(S,X,ut,Ue)}}return S.push(">"),V(S,Pe,ve),ve;case"option":Pe=Se.selectedValue,S.push(ne("option"));var it=Ue=null,ft=null,ut=null;for(ve in _)if(n.call(_,ve)){var Bt=_[ve];if(Bt!=null)switch(ve){case"children":Ue=Bt;break;case"selected":ft=Bt;break;case"dangerouslySetInnerHTML":ut=Bt;break;case"value":it=Bt;default:G(S,X,ve,Bt)}}if(Pe!=null)if(_=it!==null?""+it:J(Ue),E(Pe)){for(X=0;X<Pe.length;X++)if(""+Pe[X]===_){S.push(' selected=""');break}}else""+Pe===_&&S.push(' selected=""');else ft&&S.push(' selected=""');return S.push(">"),V(S,ut,Ue),Ue;case"textarea":S.push(ne("textarea")),ut=Pe=ve=null;for(Ue in _)if(n.call(_,Ue)&&(it=_[Ue],it!=null))switch(Ue){case"children":ut=it;break;case"value":ve=it;break;case"defaultValue":Pe=it;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:G(S,X,Ue,it)}if(ve===null&&Pe!==null&&(ve=Pe),S.push(">"),ut!=null){if(ve!=null)throw Error(t(92));if(E(ut)&&1<ut.length)throw Error(t(93));ve=""+ut}return typeof ve=="string"&&ve[0]===`
|
|
128
|
-
`&&S.push(`
|
|
129
|
-
`),ve!==null&&S.push(C(""+ve)),null;case"input":S.push(ne("input")),it=ut=Ue=ve=null;for(Pe in _)if(n.call(_,Pe)&&(ft=_[Pe],ft!=null))switch(Pe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":it=ft;break;case"defaultValue":Ue=ft;break;case"checked":ut=ft;break;case"value":ve=ft;break;default:G(S,X,Pe,ft)}return ut!==null?G(S,X,"checked",ut):it!==null&&G(S,X,"checked",it),ve!==null?G(S,X,"value",ve):Ue!==null&&G(S,X,"value",Ue),S.push("/>"),null;case"menuitem":S.push(ne("menuitem"));for(var _n in _)if(n.call(_,_n)&&(ve=_[_n],ve!=null))switch(_n){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:G(S,X,_n,ve)}return S.push(">"),null;case"title":S.push(ne("title")),ve=null;for(Bt in _)if(n.call(_,Bt)&&(Pe=_[Bt],Pe!=null))switch(Bt){case"children":ve=Pe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:G(S,X,Bt,Pe)}return S.push(">"),ve;case"listing":case"pre":S.push(ne(T)),Pe=ve=null;for(it in _)if(n.call(_,it)&&(Ue=_[it],Ue!=null))switch(it){case"children":ve=Ue;break;case"dangerouslySetInnerHTML":Pe=Ue;break;default:G(S,X,it,Ue)}if(S.push(">"),Pe!=null){if(ve!=null)throw Error(t(60));if(typeof Pe!="object"||!("__html"in Pe))throw Error(t(61));_=Pe.__html,_!=null&&(typeof _=="string"&&0<_.length&&_[0]===`
|
|
130
|
-
`?S.push(`
|
|
131
|
-
`,_):S.push(""+_))}return typeof ve=="string"&&ve[0]===`
|
|
132
|
-
`&&S.push(`
|
|
133
|
-
`),ve;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":S.push(ne(T));for(var Fn in _)if(n.call(_,Fn)&&(ve=_[Fn],ve!=null))switch(Fn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,T));default:G(S,X,Fn,ve)}return S.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return K(S,_,T,X);case"html":return Se.insertionMode===0&&S.push("<!DOCTYPE html>"),K(S,_,T,X);default:if(T.indexOf("-")===-1&&typeof _.is!="string")return K(S,_,T,X);S.push(ne(T)),Pe=ve=null;for(ft in _)if(n.call(_,ft)&&(Ue=_[ft],Ue!=null))switch(ft){case"children":ve=Ue;break;case"dangerouslySetInnerHTML":Pe=Ue;break;case"style":$(S,X,Ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:i(ft)&&typeof Ue!="function"&&typeof Ue!="symbol"&&S.push(" ",ft,'="',C(Ue),'"')}return S.push(">"),V(S,Pe,ve),ve}}function R(S,T,_){if(S.push('<!--$?--><template id="'),_===null)throw Error(t(395));return S.push(_),S.push('"></template>')}function W(S,T,_,X){switch(_.insertionMode){case 0:case 1:return S.push('<div hidden id="'),S.push(T.segmentPrefix),T=X.toString(16),S.push(T),S.push('">');case 2:return S.push('<svg aria-hidden="true" style="display:none" id="'),S.push(T.segmentPrefix),T=X.toString(16),S.push(T),S.push('">');case 3:return S.push('<math aria-hidden="true" style="display:none" id="'),S.push(T.segmentPrefix),T=X.toString(16),S.push(T),S.push('">');case 4:return S.push('<table hidden id="'),S.push(T.segmentPrefix),T=X.toString(16),S.push(T),S.push('">');case 5:return S.push('<table hidden><tbody id="'),S.push(T.segmentPrefix),T=X.toString(16),S.push(T),S.push('">');case 6:return S.push('<table hidden><tr id="'),S.push(T.segmentPrefix),T=X.toString(16),S.push(T),S.push('">');case 7:return S.push('<table hidden><colgroup id="'),S.push(T.segmentPrefix),T=X.toString(16),S.push(T),S.push('">');default:throw Error(t(397))}}function oe(S,T){switch(T.insertionMode){case 0:case 1:return S.push("</div>");case 2:return S.push("</svg>");case 3:return S.push("</math>");case 4:return S.push("</table>");case 5:return S.push("</tbody></table>");case 6:return S.push("</tr></table>");case 7:return S.push("</colgroup></table>");default:throw Error(t(397))}}var pe=/[<\u2028\u2029]/g;function se(S){return JSON.stringify(S).replace(pe,function(T){switch(T){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Z(S,T){return T=T===void 0?"":T,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:T+"P:",segmentPrefix:T+"S:",boundaryPrefix:T+"B:",idPrefix:T,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:S}}function te(S,T,_,X){return _.generateStaticMarkup?(S.push(C(T)),!1):(T===""?S=X:(X&&S.push("<!-- -->"),S.push(C(T)),S=!0),S)}var U=Object.assign,Q=Symbol.for("react.element"),he=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),Me=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),We=Symbol.for("react.suspense"),Ke=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),ot=Symbol.for("react.scope"),ht=Symbol.for("react.debug_trace_mode"),At=Symbol.for("react.legacy_hidden"),le=Symbol.for("react.default_value"),Ee=Symbol.iterator;function Ie(S){if(S==null)return null;if(typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case H:return"Fragment";case he:return"Portal";case ae:return"Profiler";case ge:return"StrictMode";case We:return"Suspense";case Ke:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case Me:return(S.displayName||"Context")+".Consumer";case be:return(S._context.displayName||"Context")+".Provider";case Ne:var T=S.render;return S=S.displayName,S||(S=T.displayName||T.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case $e:return T=S.displayName||null,T!==null?T:Ie(S.type)||"Memo";case qe:T=S._payload,S=S._init;try{return Ie(S(T))}catch{}}return null}var Ze={};function He(S,T){if(S=S.contextTypes,!S)return Ze;var _={},X;for(X in S)_[X]=T[X];return _}var ke=null;function Fe(S,T){if(S!==T){S.context._currentValue2=S.parentValue,S=S.parent;var _=T.parent;if(S===null){if(_!==null)throw Error(t(401))}else{if(_===null)throw Error(t(401));Fe(S,_)}T.context._currentValue2=T.value}}function Ge(S){S.context._currentValue2=S.parentValue,S=S.parent,S!==null&&Ge(S)}function tt(S){var T=S.parent;T!==null&&tt(T),S.context._currentValue2=S.value}function xt(S,T){if(S.context._currentValue2=S.parentValue,S=S.parent,S===null)throw Error(t(402));S.depth===T.depth?Fe(S,T):xt(S,T)}function $t(S,T){var _=T.parent;if(_===null)throw Error(t(402));S.depth===_.depth?Fe(S,_):$t(S,_),T.context._currentValue2=T.value}function mt(S){var T=ke;T!==S&&(T===null?tt(S):S===null?Ge(T):T.depth===S.depth?Fe(T,S):T.depth>S.depth?xt(T,S):$t(T,S),ke=S)}var Wt={isMounted:function(){return!1},enqueueSetState:function(S,T){S=S._reactInternals,S.queue!==null&&S.queue.push(T)},enqueueReplaceState:function(S,T){S=S._reactInternals,S.replace=!0,S.queue=[T]},enqueueForceUpdate:function(){}};function mn(S,T,_,X){var Se=S.state!==void 0?S.state:null;S.updater=Wt,S.props=_,S.state=Se;var ve={queue:[],replace:!1};S._reactInternals=ve;var Pe=T.contextType;if(S.context=typeof Pe=="object"&&Pe!==null?Pe._currentValue2:X,Pe=T.getDerivedStateFromProps,typeof Pe=="function"&&(Pe=Pe(_,Se),Se=Pe==null?Se:U({},Se,Pe),S.state=Se),typeof T.getDerivedStateFromProps!="function"&&typeof S.getSnapshotBeforeUpdate!="function"&&(typeof S.UNSAFE_componentWillMount=="function"||typeof S.componentWillMount=="function"))if(T=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),T!==S.state&&Wt.enqueueReplaceState(S,S.state,null),ve.queue!==null&&0<ve.queue.length)if(T=ve.queue,Pe=ve.replace,ve.queue=null,ve.replace=!1,Pe&&T.length===1)S.state=T[0];else{for(ve=Pe?T[0]:S.state,Se=!0,Pe=Pe?1:0;Pe<T.length;Pe++){var Ue=T[Pe];Ue=typeof Ue=="function"?Ue.call(S,ve,_,X):Ue,Ue!=null&&(Se?(Se=!1,ve=U({},ve,Ue)):U(ve,Ue))}S.state=ve}else ve.queue=null}var Kt={id:1,overflow:""};function En(S,T,_){var X=S.id;S=S.overflow;var Se=32-vn(X)-1;X&=~(1<<Se),_+=1;var ve=32-vn(T)+Se;if(30<ve){var Pe=Se-Se%5;return ve=(X&(1<<Pe)-1).toString(32),X>>=Pe,Se-=Pe,{id:1<<32-vn(T)+Se|_<<Se|X,overflow:ve+S}}return{id:1<<ve|_<<Se|X,overflow:S}}var vn=Math.clz32?Math.clz32:Cn,$n=Math.log,Rn=Math.LN2;function Cn(S){return S>>>=0,S===0?32:31-($n(S)/Rn|0)|0}function Mn(S,T){return S===T&&(S!==0||1/S===1/T)||S!==S&&T!==T}var pr=typeof Object.is=="function"?Object.is:Mn,fn=null,Sn=null,Dn=null,Tt=null,Xn=!1,Or=!1,$r=0,Ln=null,Gr=0;function Yn(){if(fn===null)throw Error(t(321));return fn}function Yt(){if(0<Gr)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function fo(){return Tt===null?Dn===null?(Xn=!1,Dn=Tt=Yt()):(Xn=!0,Tt=Dn):Tt.next===null?(Xn=!1,Tt=Tt.next=Yt()):(Xn=!0,Tt=Tt.next),Tt}function go(){Sn=fn=null,Or=!1,Dn=null,Gr=0,Tt=Ln=null}function po(S,T){return typeof T=="function"?T(S):T}function nn(S,T,_){if(fn=Yn(),Tt=fo(),Xn){var X=Tt.queue;if(T=X.dispatch,Ln!==null&&(_=Ln.get(X),_!==void 0)){Ln.delete(X),X=Tt.memoizedState;do X=S(X,_.action),_=_.next;while(_!==null);return Tt.memoizedState=X,[X,T]}return[Tt.memoizedState,T]}return S=S===po?typeof T=="function"?T():T:_!==void 0?_(T):T,Tt.memoizedState=S,S=Tt.queue={last:null,dispatch:null},S=S.dispatch=ra.bind(null,fn,S),[Tt.memoizedState,S]}function ho(S,T){if(fn=Yn(),Tt=fo(),T=T===void 0?null:T,Tt!==null){var _=Tt.memoizedState;if(_!==null&&T!==null){var X=_[1];e:if(X===null)X=!1;else{for(var Se=0;Se<X.length&&Se<T.length;Se++)if(!pr(T[Se],X[Se])){X=!1;break e}X=!0}if(X)return _[0]}}return S=S(),Tt.memoizedState=[S,T],S}function ra(S,T,_){if(25<=Gr)throw Error(t(301));if(S===fn)if(Or=!0,S={action:_,next:null},Ln===null&&(Ln=new Map),_=Ln.get(T),_===void 0)Ln.set(T,S);else{for(T=_;T.next!==null;)T=T.next;T.next=S}}function oa(){throw Error(t(394))}function ie(){}var Ve={readContext:function(S){return S._currentValue2},useContext:function(S){return Yn(),S._currentValue2},useMemo:ho,useReducer:nn,useRef:function(S){fn=Yn(),Tt=fo();var T=Tt.memoizedState;return T===null?(S={current:S},Tt.memoizedState=S):T},useState:function(S){return nn(po,S)},useInsertionEffect:ie,useLayoutEffect:function(){},useCallback:function(S,T){return ho(function(){return S},T)},useImperativeHandle:ie,useEffect:ie,useDebugValue:ie,useDeferredValue:function(S){return Yn(),S},useTransition:function(){return Yn(),[!1,oa]},useId:function(){var S=Sn.treeContext,T=S.overflow;S=S.id,S=(S&~(1<<32-vn(S)-1)).toString(32)+T;var _=Je;if(_===null)throw Error(t(404));return T=$r++,S=":"+_.idPrefix+"R"+S,0<T&&(S+="H"+T.toString(32)),S+":"},useMutableSource:function(S,T){return Yn(),T(S._source)},useSyncExternalStore:function(S,T,_){if(_===void 0)throw Error(t(407));return _()}},Je=null,ct=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function St(S){return console.error(S),null}function jt(){}function Ft(S,T,_,X,Se,ve,Pe,Ue,it){var ft=[],ut=new Set;return T={destination:null,responseState:T,progressiveChunkSize:X===void 0?12800:X,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ut,pingedTasks:ft,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Se===void 0?St:Se,onAllReady:ve===void 0?jt:ve,onShellReady:Pe===void 0?jt:Pe,onShellError:Ue===void 0?jt:Ue,onFatalError:it===void 0?jt:it},_=rn(T,0,null,_,!1,!1),_.parentFlushed=!0,S=yt(T,S,null,_,ut,Ze,null,Kt),ft.push(S),T}function yt(S,T,_,X,Se,ve,Pe,Ue){S.allPendingTasks++,_===null?S.pendingRootTasks++:_.pendingTasks++;var it={node:T,ping:function(){var ft=S.pingedTasks;ft.push(it),ft.length===1&&Pn(S)},blockedBoundary:_,blockedSegment:X,abortSet:Se,legacyContext:ve,context:Pe,treeContext:Ue};return Se.add(it),it}function rn(S,T,_,X,Se,ve){return{status:0,id:-1,index:T,parentFlushed:!1,chunks:[],children:[],formatContext:X,boundary:_,lastPushedText:Se,textEmbedded:ve}}function Rt(S,T){if(S=S.onError(T),S!=null&&typeof S!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof S+'" instead');return S}function Mt(S,T){var _=S.onShellError;_(T),_=S.onFatalError,_(T),S.destination!==null?(S.status=2,S.destination.destroy(T)):(S.status=1,S.fatalError=T)}function Qt(S,T,_,X,Se){for(fn={},Sn=T,$r=0,S=_(X,Se);Or;)Or=!1,$r=0,Gr+=1,Tt=null,S=_(X,Se);return go(),S}function kn(S,T,_,X){var Se=_.render(),ve=X.childContextTypes;if(ve!=null){var Pe=T.legacyContext;if(typeof _.getChildContext!="function")X=Pe;else{_=_.getChildContext();for(var Ue in _)if(!(Ue in ve))throw Error(t(108,Ie(X)||"Unknown",Ue));X=U({},Pe,_)}T.legacyContext=X,an(S,T,Se),T.legacyContext=Pe}else an(S,T,Se)}function hr(S,T){if(S&&S.defaultProps){T=U({},T),S=S.defaultProps;for(var _ in S)T[_]===void 0&&(T[_]=S[_]);return T}return T}function on(S,T,_,X,Se){if(typeof _=="function")if(_.prototype&&_.prototype.isReactComponent){Se=He(_,T.legacyContext);var ve=_.contextType;ve=new _(X,typeof ve=="object"&&ve!==null?ve._currentValue2:Se),mn(ve,_,X,Se),kn(S,T,ve,_)}else{ve=He(_,T.legacyContext),Se=Qt(S,T,_,X,ve);var Pe=$r!==0;if(typeof Se=="object"&&Se!==null&&typeof Se.render=="function"&&Se.$$typeof===void 0)mn(Se,_,X,ve),kn(S,T,Se,_);else if(Pe){X=T.treeContext,T.treeContext=En(X,1,0);try{an(S,T,Se)}finally{T.treeContext=X}}else an(S,T,Se)}else if(typeof _=="string"){switch(Se=T.blockedSegment,ve=fe(Se.chunks,_,X,S.responseState,Se.formatContext),Se.lastPushedText=!1,Pe=Se.formatContext,Se.formatContext=P(Pe,_,X),tr(S,T,ve),Se.formatContext=Pe,_){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Se.chunks.push("</",_,">")}Se.lastPushedText=!1}else{switch(_){case At:case ht:case ge:case ae:case H:an(S,T,X.children);return;case Ke:an(S,T,X.children);return;case ot:throw Error(t(343));case We:e:{_=T.blockedBoundary,Se=T.blockedSegment,ve=X.fallback,X=X.children,Pe=new Set;var Ue={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Pe,errorDigest:null},it=rn(S,Se.chunks.length,Ue,Se.formatContext,!1,!1);Se.children.push(it),Se.lastPushedText=!1;var ft=rn(S,0,null,Se.formatContext,!1,!1);ft.parentFlushed=!0,T.blockedBoundary=Ue,T.blockedSegment=ft;try{if(tr(S,T,X),S.responseState.generateStaticMarkup||ft.lastPushedText&&ft.textEmbedded&&ft.chunks.push("<!-- -->"),ft.status=1,vr(Ue,ft),Ue.pendingTasks===0)break e}catch(ut){ft.status=4,Ue.forceClientRender=!0,Ue.errorDigest=Rt(S,ut)}finally{T.blockedBoundary=_,T.blockedSegment=Se}T=yt(S,ve,_,it,Pe,T.legacyContext,T.context,T.treeContext),S.pingedTasks.push(T)}return}if(typeof _=="object"&&_!==null)switch(_.$$typeof){case Ne:if(X=Qt(S,T,_.render,X,Se),$r!==0){_=T.treeContext,T.treeContext=En(_,1,0);try{an(S,T,X)}finally{T.treeContext=_}}else an(S,T,X);return;case $e:_=_.type,X=hr(_,X),on(S,T,_,X,Se);return;case be:if(Se=X.children,_=_._context,X=X.value,ve=_._currentValue2,_._currentValue2=X,Pe=ke,ke=X={parent:Pe,depth:Pe===null?0:Pe.depth+1,context:_,parentValue:ve,value:X},T.context=X,an(S,T,Se),S=ke,S===null)throw Error(t(403));X=S.parentValue,S.context._currentValue2=X===le?S.context._defaultValue:X,S=ke=S.parent,T.context=S;return;case Me:X=X.children,X=X(_._currentValue2),an(S,T,X);return;case qe:Se=_._init,_=Se(_._payload),X=hr(_,X),on(S,T,_,X,void 0);return}throw Error(t(130,_==null?_:typeof _,""))}}function an(S,T,_){if(T.node=_,typeof _=="object"&&_!==null){switch(_.$$typeof){case Q:on(S,T,_.type,_.props,_.ref);return;case he:throw Error(t(257));case qe:var X=_._init;_=X(_._payload),an(S,T,_);return}if(E(_)){mr(S,T,_);return}if(_===null||typeof _!="object"?X=null:(X=Ee&&_[Ee]||_["@@iterator"],X=typeof X=="function"?X:null),X&&(X=X.call(_))){if(_=X.next(),!_.done){var Se=[];do Se.push(_.value),_=X.next();while(!_.done);mr(S,T,Se)}return}throw S=Object.prototype.toString.call(_),Error(t(31,S==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":S))}typeof _=="string"?(X=T.blockedSegment,X.lastPushedText=te(T.blockedSegment.chunks,_,S.responseState,X.lastPushedText)):typeof _=="number"&&(X=T.blockedSegment,X.lastPushedText=te(T.blockedSegment.chunks,""+_,S.responseState,X.lastPushedText))}function mr(S,T,_){for(var X=_.length,Se=0;Se<X;Se++){var ve=T.treeContext;T.treeContext=En(ve,X,Se);try{tr(S,T,_[Se])}finally{T.treeContext=ve}}}function tr(S,T,_){var X=T.blockedSegment.formatContext,Se=T.legacyContext,ve=T.context;try{return an(S,T,_)}catch(it){if(go(),typeof it=="object"&&it!==null&&typeof it.then=="function"){_=it;var Pe=T.blockedSegment,Ue=rn(S,Pe.chunks.length,null,Pe.formatContext,Pe.lastPushedText,!0);Pe.children.push(Ue),Pe.lastPushedText=!1,S=yt(S,T.node,T.blockedBoundary,Ue,T.abortSet,T.legacyContext,T.context,T.treeContext).ping,_.then(S,S),T.blockedSegment.formatContext=X,T.legacyContext=Se,T.context=ve,mt(ve)}else throw T.blockedSegment.formatContext=X,T.legacyContext=Se,T.context=ve,mt(ve),it}}function xn(S){var T=S.blockedBoundary;S=S.blockedSegment,S.status=3,br(this,T,S)}function No(S,T,_){var X=S.blockedBoundary;S.blockedSegment.status=3,X===null?(T.allPendingTasks--,T.status!==2&&(T.status=2,T.destination!==null&&T.destination.push(null))):(X.pendingTasks--,X.forceClientRender||(X.forceClientRender=!0,S=_===void 0?Error(t(432)):_,X.errorDigest=T.onError(S),X.parentFlushed&&T.clientRenderedBoundaries.push(X)),X.fallbackAbortableTasks.forEach(function(Se){return No(Se,T,_)}),X.fallbackAbortableTasks.clear(),T.allPendingTasks--,T.allPendingTasks===0&&(X=T.onAllReady,X()))}function vr(S,T){if(T.chunks.length===0&&T.children.length===1&&T.children[0].boundary===null){var _=T.children[0];_.id=T.id,_.parentFlushed=!0,_.status===1&&vr(S,_)}else S.completedSegments.push(T)}function br(S,T,_){if(T===null){if(_.parentFlushed){if(S.completedRootSegment!==null)throw Error(t(389));S.completedRootSegment=_}S.pendingRootTasks--,S.pendingRootTasks===0&&(S.onShellError=jt,T=S.onShellReady,T())}else T.pendingTasks--,T.forceClientRender||(T.pendingTasks===0?(_.parentFlushed&&_.status===1&&vr(T,_),T.parentFlushed&&S.completedBoundaries.push(T),T.fallbackAbortableTasks.forEach(xn,S),T.fallbackAbortableTasks.clear()):_.parentFlushed&&_.status===1&&(vr(T,_),T.completedSegments.length===1&&T.parentFlushed&&S.partialBoundaries.push(T)));S.allPendingTasks--,S.allPendingTasks===0&&(S=S.onAllReady,S())}function Pn(S){if(S.status!==2){var T=ke,_=ct.current;ct.current=Ve;var X=Je;Je=S.responseState;try{var Se=S.pingedTasks,ve;for(ve=0;ve<Se.length;ve++){var Pe=Se[ve],Ue=S,it=Pe.blockedSegment;if(it.status===0){mt(Pe.context);try{an(Ue,Pe,Pe.node),Ue.responseState.generateStaticMarkup||it.lastPushedText&&it.textEmbedded&&it.chunks.push("<!-- -->"),Pe.abortSet.delete(Pe),it.status=1,br(Ue,Pe.blockedBoundary,it)}catch(An){if(go(),typeof An=="object"&&An!==null&&typeof An.then=="function"){var ft=Pe.ping;An.then(ft,ft)}else{Pe.abortSet.delete(Pe),it.status=4;var ut=Pe.blockedBoundary,Bt=An,_n=Rt(Ue,Bt);if(ut===null?Mt(Ue,Bt):(ut.pendingTasks--,ut.forceClientRender||(ut.forceClientRender=!0,ut.errorDigest=_n,ut.parentFlushed&&Ue.clientRenderedBoundaries.push(ut))),Ue.allPendingTasks--,Ue.allPendingTasks===0){var Fn=Ue.onAllReady;Fn()}}}finally{}}}Se.splice(0,ve),S.destination!==null&&Ur(S,S.destination)}catch(An){Rt(S,An),Mt(S,An)}finally{Je=X,ct.current=_,_===Ve&&mt(T)}}}function Rr(S,T,_){switch(_.parentFlushed=!0,_.status){case 0:var X=_.id=S.nextSegmentId++;return _.lastPushedText=!1,_.textEmbedded=!1,S=S.responseState,T.push('<template id="'),T.push(S.placeholderPrefix),S=X.toString(16),T.push(S),T.push('"></template>');case 1:_.status=2;var Se=!0;X=_.chunks;var ve=0;_=_.children;for(var Pe=0;Pe<_.length;Pe++){for(Se=_[Pe];ve<Se.index;ve++)T.push(X[ve]);Se=zr(S,T,Se)}for(;ve<X.length-1;ve++)T.push(X[ve]);return ve<X.length&&(Se=T.push(X[ve])),Se;default:throw Error(t(390))}}function zr(S,T,_){var X=_.boundary;if(X===null)return Rr(S,T,_);if(X.parentFlushed=!0,X.forceClientRender)return S.responseState.generateStaticMarkup||(X=X.errorDigest,T.push("<!--$!-->"),T.push("<template"),X&&(T.push(' data-dgst="'),X=C(X),T.push(X),T.push('"')),T.push("></template>")),Rr(S,T,_),S=S.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),S;if(0<X.pendingTasks){X.rootSegmentID=S.nextSegmentId++,0<X.completedSegments.length&&S.partialBoundaries.push(X);var Se=S.responseState,ve=Se.nextSuspenseID++;return Se=Se.boundaryPrefix+ve.toString(16),X=X.id=Se,R(T,S.responseState,X),Rr(S,T,_),T.push("<!--/$-->")}if(X.byteSize>S.progressiveChunkSize)return X.rootSegmentID=S.nextSegmentId++,S.completedBoundaries.push(X),R(T,S.responseState,X.id),Rr(S,T,_),T.push("<!--/$-->");if(S.responseState.generateStaticMarkup||T.push("<!--$-->"),_=X.completedSegments,_.length!==1)throw Error(t(391));return zr(S,T,_[0]),S=S.responseState.generateStaticMarkup?!0:T.push("<!--/$-->"),S}function aa(S,T,_){return W(T,S.responseState,_.formatContext,_.id),zr(S,T,_),oe(T,_.formatContext)}function ia(S,T,_){for(var X=_.completedSegments,Se=0;Se<X.length;Se++)Oo(S,T,_,X[Se]);if(X.length=0,S=S.responseState,X=_.id,_=_.rootSegmentID,T.push(S.startInlineScript),S.sentCompleteBoundaryFunction?T.push('$RC("'):(S.sentCompleteBoundaryFunction=!0,T.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),X===null)throw Error(t(395));return _=_.toString(16),T.push(X),T.push('","'),T.push(S.segmentPrefix),T.push(_),T.push('")<\/script>')}function Oo(S,T,_,X){if(X.status===2)return!0;var Se=X.id;if(Se===-1){if((X.id=_.rootSegmentID)===-1)throw Error(t(392));return aa(S,T,X)}return aa(S,T,X),S=S.responseState,T.push(S.startInlineScript),S.sentCompleteSegmentFunction?T.push('$RS("'):(S.sentCompleteSegmentFunction=!0,T.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),T.push(S.segmentPrefix),Se=Se.toString(16),T.push(Se),T.push('","'),T.push(S.placeholderPrefix),T.push(Se),T.push('")<\/script>')}function Ur(S,T){try{var _=S.completedRootSegment;if(_!==null&&S.pendingRootTasks===0){zr(S,T,_),S.completedRootSegment=null;var X=S.responseState.bootstrapChunks;for(_=0;_<X.length-1;_++)T.push(X[_]);_<X.length&&T.push(X[_])}var Se=S.clientRenderedBoundaries,ve;for(ve=0;ve<Se.length;ve++){var Pe=Se[ve];X=T;var Ue=S.responseState,it=Pe.id,ft=Pe.errorDigest,ut=Pe.errorMessage,Bt=Pe.errorComponentStack;if(X.push(Ue.startInlineScript),Ue.sentClientRenderFunction?X.push('$RX("'):(Ue.sentClientRenderFunction=!0,X.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),it===null)throw Error(t(395));if(X.push(it),X.push('"'),ft||ut||Bt){X.push(",");var _n=se(ft||"");X.push(_n)}if(ut||Bt){X.push(",");var Fn=se(ut||"");X.push(Fn)}if(Bt){X.push(",");var An=se(Bt);X.push(An)}if(!X.push(")<\/script>")){S.destination=null,ve++,Se.splice(0,ve);return}}Se.splice(0,ve);var Mr=S.completedBoundaries;for(ve=0;ve<Mr.length;ve++)if(!ia(S,T,Mr[ve])){S.destination=null,ve++,Mr.splice(0,ve);return}Mr.splice(0,ve);var nr=S.partialBoundaries;for(ve=0;ve<nr.length;ve++){var Mo=nr[ve];e:{Se=S,Pe=T;var Zr=Mo.completedSegments;for(Ue=0;Ue<Zr.length;Ue++)if(!Oo(Se,Pe,Mo,Zr[Ue])){Ue++,Zr.splice(0,Ue);var mo=!1;break e}Zr.splice(0,Ue),mo=!0}if(!mo){S.destination=null,ve++,nr.splice(0,ve);return}}nr.splice(0,ve);var Lr=S.completedBoundaries;for(ve=0;ve<Lr.length;ve++)if(!ia(S,T,Lr[ve])){S.destination=null,ve++,Lr.splice(0,ve);return}Lr.splice(0,ve)}finally{S.allPendingTasks===0&&S.pingedTasks.length===0&&S.clientRenderedBoundaries.length===0&&S.completedBoundaries.length===0&&T.push(null)}}function sa(S,T){try{var _=S.abortableTasks;_.forEach(function(X){return No(X,S,T)}),_.clear(),S.destination!==null&&Ur(S,S.destination)}catch(X){Rt(S,X),Mt(S,X)}}function $o(){}function Ro(S,T,_,X){var Se=!1,ve=null,Pe="",Ue={push:function(ft){return ft!==null&&(Pe+=ft),!0},destroy:function(ft){Se=!0,ve=ft}},it=!1;if(S=Ft(S,Z(_,T?T.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,$o,void 0,function(){it=!0},void 0,void 0),Pn(S),sa(S,X),S.status===1)S.status=2,Ue.destroy(S.fatalError);else if(S.status!==2&&S.destination===null){S.destination=Ue;try{Ur(S,Ue)}catch(ft){Rt(S,ft),Mt(S,ft)}}if(Se)throw ve;if(!it)throw Error(t(426));return Pe}return Fi.renderToNodeStream=function(){throw Error(t(207))},Fi.renderToStaticMarkup=function(S,T){return Ro(S,T,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Fi.renderToStaticNodeStream=function(){throw Error(t(208))},Fi.renderToString=function(S,T){return Ro(S,T,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Fi.version="18.2.0",Fi}var pf={};/**
|
|
134
|
-
* @license React
|
|
135
|
-
* react-dom-server.browser.production.min.js
|
|
136
|
-
*
|
|
137
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the MIT license found in the
|
|
140
|
-
* LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/var YC;function mN(){if(YC)return pf;YC=1;var e=p;function t(D){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+D,L=1;L<arguments.length;L++)k+="&args[]="+encodeURIComponent(arguments[L]);return"Minified React error #"+D+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function o(D,k){if(k.length!==0)if(512<k.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(k);else{var L=n.length-r;L<k.length&&(L===0?D.enqueue(n):(n.set(k.subarray(0,L),r),D.enqueue(n),k=k.subarray(L)),n=new Uint8Array(512),r=0),n.set(k,r),r+=k.length}}function a(D,k){return o(D,k),!0}function i(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var s=new TextEncoder;function u(D){return s.encode(D)}function c(D){return s.encode(D)}function d(D,k){typeof D.error=="function"?D.error(k):D.close()}var g=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},C={};function h(D){return g.call(C,D)?!0:g.call(y,D)?!1:v.test(D)?C[D]=!0:(y[D]=!0,!1)}function w(D,k,L,Y,De,we,Oe){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=Y,this.attributeNamespace=De,this.mustUseProperty=L,this.propertyName=D,this.type=k,this.sanitizeURL=we,this.removeEmptyString=Oe}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){E[D]=new w(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var k=D[0];E[k]=new w(k,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){E[D]=new w(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){E[D]=new w(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){E[D]=new w(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){E[D]=new w(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){E[D]=new w(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){E[D]=new w(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){E[D]=new w(D,5,!1,D.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function P(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var k=D.replace(j,P);E[k]=new w(k,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var k=D.replace(j,P);E[k]=new w(k,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var k=D.replace(j,P);E[k]=new w(k,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){E[D]=new w(D,1,!1,D.toLowerCase(),null,!1,!1)}),E.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){E[D]=new w(D,1,!1,D.toLowerCase(),null,!0,!0)});var N={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$=["Webkit","ms","Moz","O"];Object.keys(N).forEach(function(D){$.forEach(function(k){k=k+D.charAt(0).toUpperCase()+D.substring(1),N[k]=N[D]})});var G=/["'&<>]/;function V(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var k=G.exec(D);if(k){var L="",Y,De=0;for(Y=k.index;Y<D.length;Y++){switch(D.charCodeAt(Y)){case 34:k=""";break;case 38:k="&";break;case 39:k="'";break;case 60:k="<";break;case 62:k=">";break;default:continue}De!==Y&&(L+=D.substring(De,Y)),De=Y+1,L+=k}D=De!==Y?L+D.substring(De,Y):L}return D}var J=/([A-Z])/g,K=/^ms-/,me=Array.isArray,ye=c("<script>"),ne=c("<\/script>"),fe=c('<script src="'),R=c('<script type="module" src="'),W=c('" async=""><\/script>'),oe=/(<\/|<)(s)(cript)/gi;function pe(D,k,L,Y){return""+k+(L==="s"?"\\u0073":"\\u0053")+Y}function se(D,k,L,Y,De){D=D===void 0?"":D,k=k===void 0?ye:c('<script nonce="'+V(k)+'">');var we=[];if(L!==void 0&&we.push(k,u((""+L).replace(oe,pe)),ne),Y!==void 0)for(L=0;L<Y.length;L++)we.push(fe,u(V(Y[L])),W);if(De!==void 0)for(Y=0;Y<De.length;Y++)we.push(R,u(V(De[Y])),W);return{bootstrapChunks:we,startInlineScript:k,placeholderPrefix:c(D+"P:"),segmentPrefix:c(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Z(D,k){return{insertionMode:D,selectedValue:k}}function te(D){return Z(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function U(D,k,L){switch(k){case"select":return Z(1,L.value!=null?L.value:L.defaultValue);case"svg":return Z(2,null);case"math":return Z(3,null);case"foreignObject":return Z(1,null);case"table":return Z(4,null);case"thead":case"tbody":case"tfoot":return Z(5,null);case"colgroup":return Z(7,null);case"tr":return Z(6,null)}return 4<=D.insertionMode||D.insertionMode===0?Z(1,null):D}var Q=c("<!-- -->");function he(D,k,L,Y){return k===""?Y:(Y&&D.push(Q),D.push(u(V(k))),!0)}var H=new Map,ge=c(' style="'),ae=c(":"),be=c(";");function Me(D,k,L){if(typeof L!="object")throw Error(t(62));k=!0;for(var Y in L)if(g.call(L,Y)){var De=L[Y];if(De!=null&&typeof De!="boolean"&&De!==""){if(Y.indexOf("--")===0){var we=u(V(Y));De=u(V((""+De).trim()))}else{we=Y;var Oe=H.get(we);Oe!==void 0||(Oe=c(V(we.replace(J,"-$1").toLowerCase().replace(K,"-ms-"))),H.set(we,Oe)),we=Oe,De=typeof De=="number"?De===0||g.call(N,Y)?u(""+De):u(De+"px"):u(V((""+De).trim()))}k?(k=!1,D.push(ge,we,ae,De)):D.push(be,we,ae,De)}}k||D.push(Ke)}var Ne=c(" "),We=c('="'),Ke=c('"'),$e=c('=""');function qe(D,k,L,Y){switch(L){case"style":Me(D,k,Y);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){if(k=E.hasOwnProperty(L)?E[L]:null,k!==null){switch(typeof Y){case"function":case"symbol":return;case"boolean":if(!k.acceptsBooleans)return}switch(L=u(k.attributeName),k.type){case 3:Y&&D.push(Ne,L,$e);break;case 4:Y===!0?D.push(Ne,L,$e):Y!==!1&&D.push(Ne,L,We,u(V(Y)),Ke);break;case 5:isNaN(Y)||D.push(Ne,L,We,u(V(Y)),Ke);break;case 6:!isNaN(Y)&&1<=Y&&D.push(Ne,L,We,u(V(Y)),Ke);break;default:k.sanitizeURL&&(Y=""+Y),D.push(Ne,L,We,u(V(Y)),Ke)}}else if(h(L)){switch(typeof Y){case"function":case"symbol":return;case"boolean":if(k=L.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")return}D.push(Ne,u(L),We,u(V(Y)),Ke)}}}var ot=c(">"),ht=c("/>");function At(D,k,L){if(k!=null){if(L!=null)throw Error(t(60));if(typeof k!="object"||!("__html"in k))throw Error(t(61));k=k.__html,k!=null&&D.push(u(""+k))}}function le(D){var k="";return e.Children.forEach(D,function(L){L!=null&&(k+=L)}),k}var Ee=c(' selected=""');function Ie(D,k,L,Y){D.push(Fe(L));var De=L=null,we;for(we in k)if(g.call(k,we)){var Oe=k[we];if(Oe!=null)switch(we){case"children":L=Oe;break;case"dangerouslySetInnerHTML":De=Oe;break;default:qe(D,Y,we,Oe)}}return D.push(ot),At(D,De,L),typeof L=="string"?(D.push(u(V(L))),null):L}var Ze=c(`
|
|
142
|
-
`),He=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ke=new Map;function Fe(D){var k=ke.get(D);if(k===void 0){if(!He.test(D))throw Error(t(65,D));k=c("<"+D),ke.set(D,k)}return k}var Ge=c("<!DOCTYPE html>");function tt(D,k,L,Y,De){switch(k){case"select":D.push(Fe("select"));var we=null,Oe=null;for(wt in L)if(g.call(L,wt)){var Xe=L[wt];if(Xe!=null)switch(wt){case"children":we=Xe;break;case"dangerouslySetInnerHTML":Oe=Xe;break;case"defaultValue":case"value":break;default:qe(D,Y,wt,Xe)}}return D.push(ot),At(D,Oe,we),we;case"option":Oe=De.selectedValue,D.push(Fe("option"));var gt=Xe=null,Dt=null,wt=null;for(we in L)if(g.call(L,we)){var Xt=L[we];if(Xt!=null)switch(we){case"children":Xe=Xt;break;case"selected":Dt=Xt;break;case"dangerouslySetInnerHTML":wt=Xt;break;case"value":gt=Xt;default:qe(D,Y,we,Xt)}}if(Oe!=null)if(L=gt!==null?""+gt:le(Xe),me(Oe)){for(Y=0;Y<Oe.length;Y++)if(""+Oe[Y]===L){D.push(Ee);break}}else""+Oe===L&&D.push(Ee);else Dt&&D.push(Ee);return D.push(ot),At(D,wt,Xe),Xe;case"textarea":D.push(Fe("textarea")),wt=Oe=we=null;for(Xe in L)if(g.call(L,Xe)&&(gt=L[Xe],gt!=null))switch(Xe){case"children":wt=gt;break;case"value":we=gt;break;case"defaultValue":Oe=gt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:qe(D,Y,Xe,gt)}if(we===null&&Oe!==null&&(we=Oe),D.push(ot),wt!=null){if(we!=null)throw Error(t(92));if(me(wt)&&1<wt.length)throw Error(t(93));we=""+wt}return typeof we=="string"&&we[0]===`
|
|
143
|
-
`&&D.push(Ze),we!==null&&D.push(u(V(""+we))),null;case"input":D.push(Fe("input")),gt=wt=Xe=we=null;for(Oe in L)if(g.call(L,Oe)&&(Dt=L[Oe],Dt!=null))switch(Oe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":gt=Dt;break;case"defaultValue":Xe=Dt;break;case"checked":wt=Dt;break;case"value":we=Dt;break;default:qe(D,Y,Oe,Dt)}return wt!==null?qe(D,Y,"checked",wt):gt!==null&&qe(D,Y,"checked",gt),we!==null?qe(D,Y,"value",we):Xe!==null&&qe(D,Y,"value",Xe),D.push(ht),null;case"menuitem":D.push(Fe("menuitem"));for(var Hn in L)if(g.call(L,Hn)&&(we=L[Hn],we!=null))switch(Hn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:qe(D,Y,Hn,we)}return D.push(ot),null;case"title":D.push(Fe("title")),we=null;for(Xt in L)if(g.call(L,Xt)&&(Oe=L[Xt],Oe!=null))switch(Xt){case"children":we=Oe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:qe(D,Y,Xt,Oe)}return D.push(ot),we;case"listing":case"pre":D.push(Fe(k)),Oe=we=null;for(gt in L)if(g.call(L,gt)&&(Xe=L[gt],Xe!=null))switch(gt){case"children":we=Xe;break;case"dangerouslySetInnerHTML":Oe=Xe;break;default:qe(D,Y,gt,Xe)}if(D.push(ot),Oe!=null){if(we!=null)throw Error(t(60));if(typeof Oe!="object"||!("__html"in Oe))throw Error(t(61));L=Oe.__html,L!=null&&(typeof L=="string"&&0<L.length&&L[0]===`
|
|
144
|
-
`?D.push(Ze,u(L)):D.push(u(""+L)))}return typeof we=="string"&&we[0]===`
|
|
145
|
-
`&&D.push(Ze),we;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":D.push(Fe(k));for(var or in L)if(g.call(L,or)&&(we=L[or],we!=null))switch(or){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,k));default:qe(D,Y,or,we)}return D.push(ht),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ie(D,L,k,Y);case"html":return De.insertionMode===0&&D.push(Ge),Ie(D,L,k,Y);default:if(k.indexOf("-")===-1&&typeof L.is!="string")return Ie(D,L,k,Y);D.push(Fe(k)),Oe=we=null;for(Dt in L)if(g.call(L,Dt)&&(Xe=L[Dt],Xe!=null))switch(Dt){case"children":we=Xe;break;case"dangerouslySetInnerHTML":Oe=Xe;break;case"style":Me(D,Y,Xe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:h(Dt)&&typeof Xe!="function"&&typeof Xe!="symbol"&&D.push(Ne,u(Dt),We,u(V(Xe)),Ke)}return D.push(ot),At(D,Oe,we),we}}var xt=c("</"),$t=c(">"),mt=c('<template id="'),Wt=c('"></template>'),mn=c("<!--$-->"),Kt=c('<!--$?--><template id="'),En=c('"></template>'),vn=c("<!--$!-->"),$n=c("<!--/$-->"),Rn=c("<template"),Cn=c('"'),Mn=c(' data-dgst="');c(' data-msg="'),c(' data-stck="');var pr=c("></template>");function fn(D,k,L){if(o(D,Kt),L===null)throw Error(t(395));return o(D,L),a(D,En)}var Sn=c('<div hidden id="'),Dn=c('">'),Tt=c("</div>"),Xn=c('<svg aria-hidden="true" style="display:none" id="'),Or=c('">'),$r=c("</svg>"),Ln=c('<math aria-hidden="true" style="display:none" id="'),Gr=c('">'),Yn=c("</math>"),Yt=c('<table hidden id="'),fo=c('">'),go=c("</table>"),po=c('<table hidden><tbody id="'),nn=c('">'),ho=c("</tbody></table>"),ra=c('<table hidden><tr id="'),oa=c('">'),ie=c("</tr></table>"),Ve=c('<table hidden><colgroup id="'),Je=c('">'),ct=c("</colgroup></table>");function St(D,k,L,Y){switch(L.insertionMode){case 0:case 1:return o(D,Sn),o(D,k.segmentPrefix),o(D,u(Y.toString(16))),a(D,Dn);case 2:return o(D,Xn),o(D,k.segmentPrefix),o(D,u(Y.toString(16))),a(D,Or);case 3:return o(D,Ln),o(D,k.segmentPrefix),o(D,u(Y.toString(16))),a(D,Gr);case 4:return o(D,Yt),o(D,k.segmentPrefix),o(D,u(Y.toString(16))),a(D,fo);case 5:return o(D,po),o(D,k.segmentPrefix),o(D,u(Y.toString(16))),a(D,nn);case 6:return o(D,ra),o(D,k.segmentPrefix),o(D,u(Y.toString(16))),a(D,oa);case 7:return o(D,Ve),o(D,k.segmentPrefix),o(D,u(Y.toString(16))),a(D,Je);default:throw Error(t(397))}}function jt(D,k){switch(k.insertionMode){case 0:case 1:return a(D,Tt);case 2:return a(D,$r);case 3:return a(D,Yn);case 4:return a(D,go);case 5:return a(D,ho);case 6:return a(D,ie);case 7:return a(D,ct);default:throw Error(t(397))}}var Ft=c('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),yt=c('$RS("'),rn=c('","'),Rt=c('")<\/script>'),Mt=c('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Qt=c('$RC("'),kn=c('","'),hr=c('")<\/script>'),on=c('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),an=c('$RX("'),mr=c('"'),tr=c(")<\/script>"),xn=c(","),No=/[<\u2028\u2029]/g;function vr(D){return JSON.stringify(D).replace(No,function(k){switch(k){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var br=Object.assign,Pn=Symbol.for("react.element"),Rr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),aa=Symbol.for("react.strict_mode"),ia=Symbol.for("react.profiler"),Oo=Symbol.for("react.provider"),Ur=Symbol.for("react.context"),sa=Symbol.for("react.forward_ref"),$o=Symbol.for("react.suspense"),Ro=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),_=Symbol.for("react.scope"),X=Symbol.for("react.debug_trace_mode"),Se=Symbol.for("react.legacy_hidden"),ve=Symbol.for("react.default_value"),Pe=Symbol.iterator;function Ue(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case zr:return"Fragment";case Rr:return"Portal";case ia:return"Profiler";case aa:return"StrictMode";case $o:return"Suspense";case Ro:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case Ur:return(D.displayName||"Context")+".Consumer";case Oo:return(D._context.displayName||"Context")+".Provider";case sa:var k=D.render;return D=D.displayName,D||(D=k.displayName||k.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case S:return k=D.displayName||null,k!==null?k:Ue(D.type)||"Memo";case T:k=D._payload,D=D._init;try{return Ue(D(k))}catch{}}return null}var it={};function ft(D,k){if(D=D.contextTypes,!D)return it;var L={},Y;for(Y in D)L[Y]=k[Y];return L}var ut=null;function Bt(D,k){if(D!==k){D.context._currentValue=D.parentValue,D=D.parent;var L=k.parent;if(D===null){if(L!==null)throw Error(t(401))}else{if(L===null)throw Error(t(401));Bt(D,L)}k.context._currentValue=k.value}}function _n(D){D.context._currentValue=D.parentValue,D=D.parent,D!==null&&_n(D)}function Fn(D){var k=D.parent;k!==null&&Fn(k),D.context._currentValue=D.value}function An(D,k){if(D.context._currentValue=D.parentValue,D=D.parent,D===null)throw Error(t(402));D.depth===k.depth?Bt(D,k):An(D,k)}function Mr(D,k){var L=k.parent;if(L===null)throw Error(t(402));D.depth===L.depth?Bt(D,L):Mr(D,L),k.context._currentValue=k.value}function nr(D){var k=ut;k!==D&&(k===null?Fn(D):D===null?_n(k):k.depth===D.depth?Bt(k,D):k.depth>D.depth?An(k,D):Mr(k,D),ut=D)}var Mo={isMounted:function(){return!1},enqueueSetState:function(D,k){D=D._reactInternals,D.queue!==null&&D.queue.push(k)},enqueueReplaceState:function(D,k){D=D._reactInternals,D.replace=!0,D.queue=[k]},enqueueForceUpdate:function(){}};function Zr(D,k,L,Y){var De=D.state!==void 0?D.state:null;D.updater=Mo,D.props=L,D.state=De;var we={queue:[],replace:!1};D._reactInternals=we;var Oe=k.contextType;if(D.context=typeof Oe=="object"&&Oe!==null?Oe._currentValue:Y,Oe=k.getDerivedStateFromProps,typeof Oe=="function"&&(Oe=Oe(L,De),De=Oe==null?De:br({},De,Oe),D.state=De),typeof k.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function"&&(typeof D.UNSAFE_componentWillMount=="function"||typeof D.componentWillMount=="function"))if(k=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),k!==D.state&&Mo.enqueueReplaceState(D,D.state,null),we.queue!==null&&0<we.queue.length)if(k=we.queue,Oe=we.replace,we.queue=null,we.replace=!1,Oe&&k.length===1)D.state=k[0];else{for(we=Oe?k[0]:D.state,De=!0,Oe=Oe?1:0;Oe<k.length;Oe++){var Xe=k[Oe];Xe=typeof Xe=="function"?Xe.call(D,we,L,Y):Xe,Xe!=null&&(De?(De=!1,we=br({},we,Xe)):br(we,Xe))}D.state=we}else we.queue=null}var mo={id:1,overflow:""};function Lr(D,k,L){var Y=D.id;D=D.overflow;var De=32-la(Y)-1;Y&=~(1<<De),L+=1;var we=32-la(k)+De;if(30<we){var Oe=De-De%5;return we=(Y&(1<<Oe)-1).toString(32),Y>>=Oe,De-=Oe,{id:1<<32-la(k)+De|L<<De|Y,overflow:we+D}}return{id:1<<we|L<<De|Y,overflow:D}}var la=Math.clz32?Math.clz32:Ni,Zu=Math.log,Xu=Math.LN2;function Ni(D){return D>>>=0,D===0?32:31-(Zu(D)/Xu|0)|0}function Yu(D,k){return D===k&&(D!==0||1/D===1/k)||D!==D&&k!==k}var Oi=typeof Object.is=="function"?Object.is:Yu,_r=null,ua=null,Wa=null,Zt=null,Xr=!1,Vn=!1,vo=0,Yr=null,Ha=0;function Jr(){if(_r===null)throw Error(t(321));return _r}function rr(){if(0<Ha)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function $i(){return Zt===null?Wa===null?(Xr=!1,Wa=Zt=rr()):(Xr=!0,Zt=Wa):Zt.next===null?(Xr=!1,Zt=Zt.next=rr()):(Xr=!0,Zt=Zt.next),Zt}function Ri(){ua=_r=null,Vn=!1,Wa=null,Ha=0,Zt=Yr=null}function Xs(D,k){return typeof k=="function"?k(D):k}function Ys(D,k,L){if(_r=Jr(),Zt=$i(),Xr){var Y=Zt.queue;if(k=Y.dispatch,Yr!==null&&(L=Yr.get(Y),L!==void 0)){Yr.delete(Y),Y=Zt.memoizedState;do Y=D(Y,L.action),L=L.next;while(L!==null);return Zt.memoizedState=Y,[Y,k]}return[Zt.memoizedState,k]}return D=D===Xs?typeof k=="function"?k():k:L!==void 0?L(k):k,Zt.memoizedState=D,D=Zt.queue={last:null,dispatch:null},D=D.dispatch=Ju.bind(null,_r,D),[Zt.memoizedState,D]}function Js(D,k){if(_r=Jr(),Zt=$i(),k=k===void 0?null:k,Zt!==null){var L=Zt.memoizedState;if(L!==null&&k!==null){var Y=L[1];e:if(Y===null)Y=!1;else{for(var De=0;De<Y.length&&De<k.length;De++)if(!Oi(k[De],Y[De])){Y=!1;break e}Y=!0}if(Y)return L[0]}}return D=D(),Zt.memoizedState=[D,k],D}function Ju(D,k,L){if(25<=Ha)throw Error(t(301));if(D===_r)if(Vn=!0,D={action:L,next:null},Yr===null&&(Yr=new Map),L=Yr.get(k),L===void 0)Yr.set(k,D);else{for(k=L;k.next!==null;)k=k.next;k.next=D}}function Ku(){throw Error(t(394))}function Ga(){}var za={readContext:function(D){return D._currentValue},useContext:function(D){return Jr(),D._currentValue},useMemo:Js,useReducer:Ys,useRef:function(D){_r=Jr(),Zt=$i();var k=Zt.memoizedState;return k===null?(D={current:D},Zt.memoizedState=D):k},useState:function(D){return Ys(Xs,D)},useInsertionEffect:Ga,useLayoutEffect:function(){},useCallback:function(D,k){return Js(function(){return D},k)},useImperativeHandle:Ga,useEffect:Ga,useDebugValue:Ga,useDeferredValue:function(D){return Jr(),D},useTransition:function(){return Jr(),[!1,Ku]},useId:function(){var D=ua.treeContext,k=D.overflow;D=D.id,D=(D&~(1<<32-la(D)-1)).toString(32)+k;var L=Ua;if(L===null)throw Error(t(404));return k=vo++,D=":"+L.idPrefix+"R"+D,0<k&&(D+="H"+k.toString(32)),D+":"},useMutableSource:function(D,k){return Jr(),k(D._source)},useSyncExternalStore:function(D,k,L){if(L===void 0)throw Error(t(407));return L()}},Ua=null,ca=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Qu(D){return console.error(D),null}function da(){}function Mi(D,k,L,Y,De,we,Oe,Xe,gt){var Dt=[],wt=new Set;return k={destination:null,responseState:k,progressiveChunkSize:Y===void 0?12800:Y,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:wt,pingedTasks:Dt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:De===void 0?Qu:De,onAllReady:we===void 0?da:we,onShellReady:Oe===void 0?da:Oe,onShellError:Xe===void 0?da:Xe,onFatalError:gt===void 0?da:gt},L=Lo(k,0,null,L,!1,!1),L.parentFlushed=!0,D=Li(k,D,null,L,wt,it,null,mo),Dt.push(D),k}function Li(D,k,L,Y,De,we,Oe,Xe){D.allPendingTasks++,L===null?D.pendingRootTasks++:L.pendingTasks++;var gt={node:k,ping:function(){var Dt=D.pingedTasks;Dt.push(gt),Dt.length===1&&nl(D)},blockedBoundary:L,blockedSegment:Y,abortSet:De,legacyContext:we,context:Oe,treeContext:Xe};return De.add(gt),gt}function Lo(D,k,L,Y,De,we){return{status:0,id:-1,index:k,parentFlushed:!1,chunks:[],children:[],formatContext:Y,boundary:L,lastPushedText:De,textEmbedded:we}}function _o(D,k){if(D=D.onError(k),D!=null&&typeof D!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function Za(D,k){var L=D.onShellError;L(k),L=D.onFatalError,L(k),D.destination!==null?(D.status=2,d(D.destination,k)):(D.status=1,D.fatalError=k)}function Ks(D,k,L,Y,De){for(_r={},ua=k,vo=0,D=L(Y,De);Vn;)Vn=!1,vo=0,Ha+=1,Zt=null,D=L(Y,De);return Ri(),D}function _i(D,k,L,Y){var De=L.render(),we=Y.childContextTypes;if(we!=null){var Oe=k.legacyContext;if(typeof L.getChildContext!="function")Y=Oe;else{L=L.getChildContext();for(var Xe in L)if(!(Xe in we))throw Error(t(108,Ue(Y)||"Unknown",Xe));Y=br({},Oe,L)}k.legacyContext=Y,Wn(D,k,De),k.legacyContext=Oe}else Wn(D,k,De)}function Qs(D,k){if(D&&D.defaultProps){k=br({},k),D=D.defaultProps;for(var L in D)k[L]===void 0&&(k[L]=D[L]);return k}return k}function Xa(D,k,L,Y,De){if(typeof L=="function")if(L.prototype&&L.prototype.isReactComponent){De=ft(L,k.legacyContext);var we=L.contextType;we=new L(Y,typeof we=="object"&&we!==null?we._currentValue:De),Zr(we,L,Y,De),_i(D,k,we,L)}else{we=ft(L,k.legacyContext),De=Ks(D,k,L,Y,we);var Oe=vo!==0;if(typeof De=="object"&&De!==null&&typeof De.render=="function"&&De.$$typeof===void 0)Zr(De,L,Y,we),_i(D,k,De,L);else if(Oe){Y=k.treeContext,k.treeContext=Lr(Y,1,0);try{Wn(D,k,De)}finally{k.treeContext=Y}}else Wn(D,k,De)}else if(typeof L=="string"){switch(De=k.blockedSegment,we=tt(De.chunks,L,Y,D.responseState,De.formatContext),De.lastPushedText=!1,Oe=De.formatContext,De.formatContext=U(Oe,L,Y),Ya(D,k,we),De.formatContext=Oe,L){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:De.chunks.push(xt,u(L),$t)}De.lastPushedText=!1}else{switch(L){case Se:case X:case aa:case ia:case zr:Wn(D,k,Y.children);return;case Ro:Wn(D,k,Y.children);return;case _:throw Error(t(343));case $o:e:{L=k.blockedBoundary,De=k.blockedSegment,we=Y.fallback,Y=Y.children,Oe=new Set;var Xe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Oe,errorDigest:null},gt=Lo(D,De.chunks.length,Xe,De.formatContext,!1,!1);De.children.push(gt),De.lastPushedText=!1;var Dt=Lo(D,0,null,De.formatContext,!1,!1);Dt.parentFlushed=!0,k.blockedBoundary=Xe,k.blockedSegment=Dt;try{if(Ya(D,k,Y),Dt.lastPushedText&&Dt.textEmbedded&&Dt.chunks.push(Q),Dt.status=1,Ja(Xe,Dt),Xe.pendingTasks===0)break e}catch(wt){Dt.status=4,Xe.forceClientRender=!0,Xe.errorDigest=_o(D,wt)}finally{k.blockedBoundary=L,k.blockedSegment=De}k=Li(D,we,L,gt,Oe,k.legacyContext,k.context,k.treeContext),D.pingedTasks.push(k)}return}if(typeof L=="object"&&L!==null)switch(L.$$typeof){case sa:if(Y=Ks(D,k,L.render,Y,De),vo!==0){L=k.treeContext,k.treeContext=Lr(L,1,0);try{Wn(D,k,Y)}finally{k.treeContext=L}}else Wn(D,k,Y);return;case S:L=L.type,Y=Qs(L,Y),Xa(D,k,L,Y,De);return;case Oo:if(De=Y.children,L=L._context,Y=Y.value,we=L._currentValue,L._currentValue=Y,Oe=ut,ut=Y={parent:Oe,depth:Oe===null?0:Oe.depth+1,context:L,parentValue:we,value:Y},k.context=Y,Wn(D,k,De),D=ut,D===null)throw Error(t(403));Y=D.parentValue,D.context._currentValue=Y===ve?D.context._defaultValue:Y,D=ut=D.parent,k.context=D;return;case Ur:Y=Y.children,Y=Y(L._currentValue),Wn(D,k,Y);return;case T:De=L._init,L=De(L._payload),Y=Qs(L,Y),Xa(D,k,L,Y,void 0);return}throw Error(t(130,L==null?L:typeof L,""))}}function Wn(D,k,L){if(k.node=L,typeof L=="object"&&L!==null){switch(L.$$typeof){case Pn:Xa(D,k,L.type,L.props,L.ref);return;case Rr:throw Error(t(257));case T:var Y=L._init;L=Y(L._payload),Wn(D,k,L);return}if(me(L)){qs(D,k,L);return}if(L===null||typeof L!="object"?Y=null:(Y=Pe&&L[Pe]||L["@@iterator"],Y=typeof Y=="function"?Y:null),Y&&(Y=Y.call(L))){if(L=Y.next(),!L.done){var De=[];do De.push(L.value),L=Y.next();while(!L.done);qs(D,k,De)}return}throw D=Object.prototype.toString.call(L),Error(t(31,D==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":D))}typeof L=="string"?(Y=k.blockedSegment,Y.lastPushedText=he(k.blockedSegment.chunks,L,D.responseState,Y.lastPushedText)):typeof L=="number"&&(Y=k.blockedSegment,Y.lastPushedText=he(k.blockedSegment.chunks,""+L,D.responseState,Y.lastPushedText))}function qs(D,k,L){for(var Y=L.length,De=0;De<Y;De++){var we=k.treeContext;k.treeContext=Lr(we,Y,De);try{Ya(D,k,L[De])}finally{k.treeContext=we}}}function Ya(D,k,L){var Y=k.blockedSegment.formatContext,De=k.legacyContext,we=k.context;try{return Wn(D,k,L)}catch(gt){if(Ri(),typeof gt=="object"&>!==null&&typeof gt.then=="function"){L=gt;var Oe=k.blockedSegment,Xe=Lo(D,Oe.chunks.length,null,Oe.formatContext,Oe.lastPushedText,!0);Oe.children.push(Xe),Oe.lastPushedText=!1,D=Li(D,k.node,k.blockedBoundary,Xe,k.abortSet,k.legacyContext,k.context,k.treeContext).ping,L.then(D,D),k.blockedSegment.formatContext=Y,k.legacyContext=De,k.context=we,nr(we)}else throw k.blockedSegment.formatContext=Y,k.legacyContext=De,k.context=we,nr(we),gt}}function qu(D){var k=D.blockedBoundary;D=D.blockedSegment,D.status=3,tl(this,k,D)}function el(D,k,L){var Y=D.blockedBoundary;D.blockedSegment.status=3,Y===null?(k.allPendingTasks--,k.status!==2&&(k.status=2,k.destination!==null&&k.destination.close())):(Y.pendingTasks--,Y.forceClientRender||(Y.forceClientRender=!0,D=L===void 0?Error(t(432)):L,Y.errorDigest=k.onError(D),Y.parentFlushed&&k.clientRenderedBoundaries.push(Y)),Y.fallbackAbortableTasks.forEach(function(De){return el(De,k,L)}),Y.fallbackAbortableTasks.clear(),k.allPendingTasks--,k.allPendingTasks===0&&(Y=k.onAllReady,Y()))}function Ja(D,k){if(k.chunks.length===0&&k.children.length===1&&k.children[0].boundary===null){var L=k.children[0];L.id=k.id,L.parentFlushed=!0,L.status===1&&Ja(D,L)}else D.completedSegments.push(k)}function tl(D,k,L){if(k===null){if(L.parentFlushed){if(D.completedRootSegment!==null)throw Error(t(389));D.completedRootSegment=L}D.pendingRootTasks--,D.pendingRootTasks===0&&(D.onShellError=da,k=D.onShellReady,k())}else k.pendingTasks--,k.forceClientRender||(k.pendingTasks===0?(L.parentFlushed&&L.status===1&&Ja(k,L),k.parentFlushed&&D.completedBoundaries.push(k),k.fallbackAbortableTasks.forEach(qu,D),k.fallbackAbortableTasks.clear()):L.parentFlushed&&L.status===1&&(Ja(k,L),k.completedSegments.length===1&&k.parentFlushed&&D.partialBoundaries.push(k)));D.allPendingTasks--,D.allPendingTasks===0&&(D=D.onAllReady,D())}function nl(D){if(D.status!==2){var k=ut,L=ca.current;ca.current=za;var Y=Ua;Ua=D.responseState;try{var De=D.pingedTasks,we;for(we=0;we<De.length;we++){var Oe=De[we],Xe=D,gt=Oe.blockedSegment;if(gt.status===0){nr(Oe.context);try{Wn(Xe,Oe,Oe.node),gt.lastPushedText&>.textEmbedded&>.chunks.push(Q),Oe.abortSet.delete(Oe),gt.status=1,tl(Xe,Oe.blockedBoundary,gt)}catch(ar){if(Ri(),typeof ar=="object"&&ar!==null&&typeof ar.then=="function"){var Dt=Oe.ping;ar.then(Dt,Dt)}else{Oe.abortSet.delete(Oe),gt.status=4;var wt=Oe.blockedBoundary,Xt=ar,Hn=_o(Xe,Xt);if(wt===null?Za(Xe,Xt):(wt.pendingTasks--,wt.forceClientRender||(wt.forceClientRender=!0,wt.errorDigest=Hn,wt.parentFlushed&&Xe.clientRenderedBoundaries.push(wt))),Xe.allPendingTasks--,Xe.allPendingTasks===0){var or=Xe.onAllReady;or()}}}finally{}}}De.splice(0,we),D.destination!==null&&Vi(D,D.destination)}catch(ar){_o(D,ar),Za(D,ar)}finally{Ua=Y,ca.current=L,L===za&&nr(k)}}}function Ka(D,k,L){switch(L.parentFlushed=!0,L.status){case 0:var Y=L.id=D.nextSegmentId++;return L.lastPushedText=!1,L.textEmbedded=!1,D=D.responseState,o(k,mt),o(k,D.placeholderPrefix),D=u(Y.toString(16)),o(k,D),a(k,Wt);case 1:L.status=2;var De=!0;Y=L.chunks;var we=0;L=L.children;for(var Oe=0;Oe<L.length;Oe++){for(De=L[Oe];we<De.index;we++)o(k,Y[we]);De=Qa(D,k,De)}for(;we<Y.length-1;we++)o(k,Y[we]);return we<Y.length&&(De=a(k,Y[we])),De;default:throw Error(t(390))}}function Qa(D,k,L){var Y=L.boundary;if(Y===null)return Ka(D,k,L);if(Y.parentFlushed=!0,Y.forceClientRender)Y=Y.errorDigest,a(k,vn),o(k,Rn),Y&&(o(k,Mn),o(k,u(V(Y))),o(k,Cn)),a(k,pr),Ka(D,k,L);else if(0<Y.pendingTasks){Y.rootSegmentID=D.nextSegmentId++,0<Y.completedSegments.length&&D.partialBoundaries.push(Y);var De=D.responseState,we=De.nextSuspenseID++;De=c(De.boundaryPrefix+we.toString(16)),Y=Y.id=De,fn(k,D.responseState,Y),Ka(D,k,L)}else if(Y.byteSize>D.progressiveChunkSize)Y.rootSegmentID=D.nextSegmentId++,D.completedBoundaries.push(Y),fn(k,D.responseState,Y.id),Ka(D,k,L);else{if(a(k,mn),L=Y.completedSegments,L.length!==1)throw Error(t(391));Qa(D,k,L[0])}return a(k,$n)}function rl(D,k,L){return St(k,D.responseState,L.formatContext,L.id),Qa(D,k,L),jt(k,L.formatContext)}function ol(D,k,L){for(var Y=L.completedSegments,De=0;De<Y.length;De++)al(D,k,L,Y[De]);if(Y.length=0,D=D.responseState,Y=L.id,L=L.rootSegmentID,o(k,D.startInlineScript),D.sentCompleteBoundaryFunction?o(k,Qt):(D.sentCompleteBoundaryFunction=!0,o(k,Mt)),Y===null)throw Error(t(395));return L=u(L.toString(16)),o(k,Y),o(k,kn),o(k,D.segmentPrefix),o(k,L),a(k,hr)}function al(D,k,L,Y){if(Y.status===2)return!0;var De=Y.id;if(De===-1){if((Y.id=L.rootSegmentID)===-1)throw Error(t(392));return rl(D,k,Y)}return rl(D,k,Y),D=D.responseState,o(k,D.startInlineScript),D.sentCompleteSegmentFunction?o(k,yt):(D.sentCompleteSegmentFunction=!0,o(k,Ft)),o(k,D.segmentPrefix),De=u(De.toString(16)),o(k,De),o(k,rn),o(k,D.placeholderPrefix),o(k,De),a(k,Rt)}function Vi(D,k){n=new Uint8Array(512),r=0;try{var L=D.completedRootSegment;if(L!==null&&D.pendingRootTasks===0){Qa(D,k,L),D.completedRootSegment=null;var Y=D.responseState.bootstrapChunks;for(L=0;L<Y.length-1;L++)o(k,Y[L]);L<Y.length&&a(k,Y[L])}var De=D.clientRenderedBoundaries,we;for(we=0;we<De.length;we++){var Oe=De[we];Y=k;var Xe=D.responseState,gt=Oe.id,Dt=Oe.errorDigest,wt=Oe.errorMessage,Xt=Oe.errorComponentStack;if(o(Y,Xe.startInlineScript),Xe.sentClientRenderFunction?o(Y,an):(Xe.sentClientRenderFunction=!0,o(Y,on)),gt===null)throw Error(t(395));o(Y,gt),o(Y,mr),(Dt||wt||Xt)&&(o(Y,xn),o(Y,u(vr(Dt||"")))),(wt||Xt)&&(o(Y,xn),o(Y,u(vr(wt||"")))),Xt&&(o(Y,xn),o(Y,u(vr(Xt)))),a(Y,tr)}De.splice(0,we);var Hn=D.completedBoundaries;for(we=0;we<Hn.length;we++)ol(D,k,Hn[we]);Hn.splice(0,we),i(k),n=new Uint8Array(512),r=0;var or=D.partialBoundaries;for(we=0;we<or.length;we++){var ar=or[we];e:{De=D,Oe=k;var qa=ar.completedSegments;for(Xe=0;Xe<qa.length;Xe++)if(!al(De,Oe,ar,qa[Xe])){Xe++,qa.splice(0,Xe);var sl=!1;break e}qa.splice(0,Xe),sl=!0}if(!sl){D.destination=null,we++,or.splice(0,we);return}}or.splice(0,we);var Wi=D.completedBoundaries;for(we=0;we<Wi.length;we++)ol(D,k,Wi[we]);Wi.splice(0,we)}finally{i(k),D.allPendingTasks===0&&D.pingedTasks.length===0&&D.clientRenderedBoundaries.length===0&&D.completedBoundaries.length===0&&k.close()}}function il(D,k){try{var L=D.abortableTasks;L.forEach(function(Y){return el(Y,D,k)}),L.clear(),D.destination!==null&&Vi(D,D.destination)}catch(Y){_o(D,Y),Za(D,Y)}}return pf.renderToReadableStream=function(D,k){return new Promise(function(L,Y){var De,we,Oe=new Promise(function(wt,Xt){we=wt,De=Xt}),Xe=Mi(D,se(k?k.identifierPrefix:void 0,k?k.nonce:void 0,k?k.bootstrapScriptContent:void 0,k?k.bootstrapScripts:void 0,k?k.bootstrapModules:void 0),te(k?k.namespaceURI:void 0),k?k.progressiveChunkSize:void 0,k?k.onError:void 0,we,function(){var wt=new ReadableStream({type:"bytes",pull:function(Xt){if(Xe.status===1)Xe.status=2,d(Xt,Xe.fatalError);else if(Xe.status!==2&&Xe.destination===null){Xe.destination=Xt;try{Vi(Xe,Xt)}catch(Hn){_o(Xe,Hn),Za(Xe,Hn)}}},cancel:function(){il(Xe)}},{highWaterMark:0});wt.allReady=Oe,L(wt)},function(wt){Oe.catch(function(){}),Y(wt)},De);if(k&&k.signal){var gt=k.signal,Dt=function(){il(Xe,gt.reason),gt.removeEventListener("abort",Dt)};gt.addEventListener("abort",Dt)}nl(Xe)})},pf.version="18.2.0",pf}var Ai={};/**
|
|
146
|
-
* @license React
|
|
147
|
-
* react-dom-server-legacy.browser.development.js
|
|
148
|
-
*
|
|
149
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the MIT license found in the
|
|
152
|
-
* LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/var JC;function vN(){return JC||(JC=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(f){{for(var b=arguments.length,F=new Array(b>1?b-1:0),I=1;I<b;I++)F[I-1]=arguments[I];a("warn",f,F)}}function o(f){{for(var b=arguments.length,F=new Array(b>1?b-1:0),I=1;I<b;I++)F[I-1]=arguments[I];a("error",f,F)}}function a(f,b,F){{var I=n.ReactDebugCurrentFrame,M=I.getStackAddendum();M!==""&&(b+="%s",F=F.concat([M]));var ee=F.map(function(ue){return String(ue)});ee.unshift("Warning: "+b),Function.prototype.apply.call(console[f],console,ee)}}function i(f){f()}function s(f){}function u(f,b){c(f,b)}function c(f,b){return f.push(b)}function d(f){}function g(f){f.push(null)}function v(f){return f}function y(f){return f}function C(f,b){f.destroy(b)}function h(f){{var b=typeof Symbol=="function"&&Symbol.toStringTag,F=b&&f[Symbol.toStringTag]||f.constructor.name||"Object";return F}}function w(f){try{return E(f),!1}catch{return!0}}function E(f){return""+f}function j(f,b){if(w(f))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,h(f)),E(f)}function P(f,b){if(w(f))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",b,h(f)),E(f)}function N(f){if(w(f))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",h(f)),E(f)}var $=Object.prototype.hasOwnProperty,G=0,V=1,J=2,K=3,me=4,ye=5,ne=6,fe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",R=fe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",W=new RegExp("^["+fe+"]["+R+"]*$"),oe={},pe={};function se(f){return $.call(pe,f)?!0:$.call(oe,f)?!1:W.test(f)?(pe[f]=!0,!0):(oe[f]=!0,o("Invalid attribute name: `%s`",f),!1)}function Z(f,b,F,I){if(F!==null&&F.type===G)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(I)return!1;if(F!==null)return!F.acceptsBooleans;var M=f.toLowerCase().slice(0,5);return M!=="data-"&&M!=="aria-"}default:return!1}}function te(f){return Q.hasOwnProperty(f)?Q[f]:null}function U(f,b,F,I,M,ee,ue){this.acceptsBooleans=b===J||b===K||b===me,this.attributeName=I,this.attributeNamespace=M,this.mustUseProperty=F,this.propertyName=f,this.type=b,this.sanitizeURL=ee,this.removeEmptyString=ue}var Q={},he=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];he.forEach(function(f){Q[f]=new U(f,G,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var b=f[0],F=f[1];Q[b]=new U(b,V,!1,F,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){Q[f]=new U(f,J,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){Q[f]=new U(f,J,!1,f,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(f){Q[f]=new U(f,K,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){Q[f]=new U(f,K,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){Q[f]=new U(f,me,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){Q[f]=new U(f,ne,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){Q[f]=new U(f,ye,!1,f.toLowerCase(),null,!1,!1)});var H=/[\-\:]([a-z])/g,ge=function(f){return f[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(f){var b=f.replace(H,ge);Q[b]=new U(b,V,!1,f,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(f){var b=f.replace(H,ge);Q[b]=new U(b,V,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var b=f.replace(H,ge);Q[b]=new U(b,V,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){Q[f]=new U(f,V,!1,f.toLowerCase(),null,!1,!1)});var ae="xlinkHref";Q[ae]=new U("xlinkHref",V,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){Q[f]=new U(f,V,!1,f.toLowerCase(),null,!0,!0)});var be={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Me(f,b){return f+b.charAt(0).toUpperCase()+b.substring(1)}var Ne=["Webkit","ms","Moz","O"];Object.keys(be).forEach(function(f){Ne.forEach(function(b){be[Me(b,f)]=be[f]})});var We={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ke(f,b){We[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),b.onChange||b.readOnly||b.disabled||b.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function $e(f,b){if(f.indexOf("-")===-1)return typeof b.is=="string";switch(f){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qe={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ot={},ht=new RegExp("^(aria)-["+R+"]*$"),At=new RegExp("^(aria)[A-Z]["+R+"]*$");function le(f,b){{if($.call(ot,b)&&ot[b])return!0;if(At.test(b)){var F="aria-"+b.slice(4).toLowerCase(),I=qe.hasOwnProperty(F)?F:null;if(I==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),ot[b]=!0,!0;if(b!==I)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,I),ot[b]=!0,!0}if(ht.test(b)){var M=b.toLowerCase(),ee=qe.hasOwnProperty(M)?M:null;if(ee==null)return ot[b]=!0,!1;if(b!==ee)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,ee),ot[b]=!0,!0}}return!0}function Ee(f,b){{var F=[];for(var I in b){var M=le(f,I);M||F.push(I)}var ee=F.map(function(ue){return"`"+ue+"`"}).join(", ");F.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ee,f):F.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ee,f)}}function Ie(f,b){$e(f,b)||Ee(f,b)}var Ze=!1;function He(f,b){{if(f!=="input"&&f!=="textarea"&&f!=="select")return;b!=null&&b.value===null&&!Ze&&(Ze=!0,f==="select"&&b.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",f):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",f))}}var ke={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Fe=function(){};{var Ge={},tt=/^on./,xt=/^on[^A-Z]/,$t=new RegExp("^(aria)-["+R+"]*$"),mt=new RegExp("^(aria)[A-Z]["+R+"]*$");Fe=function(f,b,F,I){if($.call(Ge,b)&&Ge[b])return!0;var M=b.toLowerCase();if(M==="onfocusin"||M==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ge[b]=!0,!0;if(I!=null){var ee=I.registrationNameDependencies,ue=I.possibleRegistrationNames;if(ee.hasOwnProperty(b))return!0;var Ae=ue.hasOwnProperty(M)?ue[M]:null;if(Ae!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",b,Ae),Ge[b]=!0,!0;if(tt.test(b))return o("Unknown event handler property `%s`. It will be ignored.",b),Ge[b]=!0,!0}else if(tt.test(b))return xt.test(b)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),Ge[b]=!0,!0;if($t.test(b)||mt.test(b))return!0;if(M==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ge[b]=!0,!0;if(M==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ge[b]=!0,!0;if(M==="is"&&F!==null&&F!==void 0&&typeof F!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof F),Ge[b]=!0,!0;if(typeof F=="number"&&isNaN(F))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),Ge[b]=!0,!0;var Le=te(b),nt=Le!==null&&Le.type===G;if(ke.hasOwnProperty(M)){var st=ke[M];if(st!==b)return o("Invalid DOM property `%s`. Did you mean `%s`?",b,st),Ge[b]=!0,!0}else if(!nt&&b!==M)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",b,M),Ge[b]=!0,!0;return typeof F=="boolean"&&Z(b,F,Le,!1)?(F?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',F,b,b,F,b):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',F,b,b,F,b,b,b),Ge[b]=!0,!0):nt?!0:Z(b,F,Le,!1)?(Ge[b]=!0,!1):((F==="false"||F==="true")&&Le!==null&&Le.type===K&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",F,b,F==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,F),Ge[b]=!0),!0)}}var Wt=function(f,b,F){{var I=[];for(var M in b){var ee=Fe(f,M,b[M],F);ee||I.push(M)}var ue=I.map(function(Ae){return"`"+Ae+"`"}).join(", ");I.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ue,f):I.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ue,f)}};function mn(f,b,F){$e(f,b)||Wt(f,b,F)}var Kt=function(){};{var En=/^(?:webkit|moz|o)[A-Z]/,vn=/^-ms-/,$n=/-(.)/g,Rn=/;\s*$/,Cn={},Mn={},pr=!1,fn=!1,Sn=function(f){return f.replace($n,function(b,F){return F.toUpperCase()})},Dn=function(f){Cn.hasOwnProperty(f)&&Cn[f]||(Cn[f]=!0,o("Unsupported style property %s. Did you mean %s?",f,Sn(f.replace(vn,"ms-"))))},Tt=function(f){Cn.hasOwnProperty(f)&&Cn[f]||(Cn[f]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",f,f.charAt(0).toUpperCase()+f.slice(1)))},Xn=function(f,b){Mn.hasOwnProperty(b)&&Mn[b]||(Mn[b]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,f,b.replace(Rn,"")))},Or=function(f,b){pr||(pr=!0,o("`NaN` is an invalid value for the `%s` css style property.",f))},$r=function(f,b){fn||(fn=!0,o("`Infinity` is an invalid value for the `%s` css style property.",f))};Kt=function(f,b){f.indexOf("-")>-1?Dn(f):En.test(f)?Tt(f):Rn.test(b)&&Xn(f,b),typeof b=="number"&&(isNaN(b)?Or(f,b):isFinite(b)||$r(f,b))}}var Ln=Kt,Gr=/["'&<>]/;function Yn(f){N(f);var b=""+f,F=Gr.exec(b);if(!F)return b;var I,M="",ee,ue=0;for(ee=F.index;ee<b.length;ee++){switch(b.charCodeAt(ee)){case 34:I=""";break;case 38:I="&";break;case 39:I="'";break;case 60:I="<";break;case 62:I=">";break;default:continue}ue!==ee&&(M+=b.substring(ue,ee)),ue=ee+1,M+=I}return ue!==ee?M+b.substring(ue,ee):M}function Yt(f){return typeof f=="boolean"||typeof f=="number"?""+f:Yn(f)}var fo=/([A-Z])/g,go=/^ms-/;function po(f){return f.replace(fo,"-$1").toLowerCase().replace(go,"-ms-")}var nn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ho=!1;function ra(f){!ho&&nn.test(f)&&(ho=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(f)))}var oa=Array.isArray;function ie(f){return oa(f)}var Ve="<script>",Je="<\/script>",ct='<script src="',St='<script type="module" src="',jt='" async=""><\/script>';function Ft(f){return N(f),(""+f).replace(yt,rn)}var yt=/(<\/|<)(s)(cript)/gi,rn=function(f,b,F,I){return""+b+(F==="s"?"\\u0073":"\\u0053")+I};function Rt(f,b,F,I,M){var ee=f===void 0?"":f,ue=b===void 0?Ve:'<script nonce="'+Yt(b)+'">',Ae=[];if(F!==void 0&&Ae.push(ue,Ft(F),Je),I!==void 0)for(var Le=0;Le<I.length;Le++)Ae.push(ct,Yt(I[Le]),jt);if(M!==void 0)for(var nt=0;nt<M.length;nt++)Ae.push(St,Yt(M[nt]),jt);return{bootstrapChunks:Ae,startInlineScript:ue,placeholderPrefix:ee+"P:",segmentPrefix:ee+"S:",boundaryPrefix:ee+"B:",idPrefix:ee,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Mt=0,Qt=1,kn=2,hr=3,on=4,an=5,mr=6,tr=7;function xn(f,b){return{insertionMode:f,selectedValue:b}}function No(f,b,F){switch(b){case"select":return xn(Qt,F.value!=null?F.value:F.defaultValue);case"svg":return xn(kn,null);case"math":return xn(hr,null);case"foreignObject":return xn(Qt,null);case"table":return xn(on,null);case"thead":case"tbody":case"tfoot":return xn(an,null);case"colgroup":return xn(tr,null);case"tr":return xn(mr,null)}return f.insertionMode>=on||f.insertionMode===Mt?xn(Qt,null):f}var vr=null;function br(f){var b=f.nextSuspenseID++;return f.boundaryPrefix+b.toString(16)}function Pn(f,b,F){var I=f.idPrefix,M=":"+I+"R"+b;return F>0&&(M+="H"+F.toString(32)),M+":"}function Rr(f){return Yt(f)}var zr="<!-- -->";function aa(f,b,F,I){return b===""?I:(I&&f.push(zr),f.push(Rr(b)),!0)}function ia(f,b,F,I){F&&I&&f.push(zr)}var Oo=new Map;function Ur(f){var b=Oo.get(f);if(b!==void 0)return b;var F=Yt(po(f));return Oo.set(f,F),F}var sa=' style="',$o=":",Ro=";";function S(f,b,F){if(typeof F!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var I=!0;for(var M in F)if($.call(F,M)){var ee=F[M];if(!(ee==null||typeof ee=="boolean"||ee==="")){var ue=void 0,Ae=void 0,Le=M.indexOf("--")===0;Le?(ue=Yt(M),P(ee,M),Ae=Yt((""+ee).trim())):(Ln(M,ee),ue=Ur(M),typeof ee=="number"?ee!==0&&!$.call(be,M)?Ae=ee+"px":Ae=""+ee:(P(ee,M),Ae=Yt((""+ee).trim()))),I?(I=!1,f.push(sa,ue,$o,Ae)):f.push(Ro,ue,$o,Ae)}}I||f.push(X)}var T=" ",_='="',X='"',Se='=""';function ve(f,b,F,I){switch(F){case"style":{S(f,b,I);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(F.length>2&&(F[0]==="o"||F[0]==="O")&&(F[1]==="n"||F[1]==="N"))){var M=te(F);if(M!==null){switch(typeof I){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}var ee=M.attributeName,ue=ee;switch(M.type){case K:I&&f.push(T,ue,Se);return;case me:I===!0?f.push(T,ue,Se):I===!1||f.push(T,ue,_,Yt(I),X);return;case ye:isNaN(I)||f.push(T,ue,_,Yt(I),X);break;case ne:!isNaN(I)&&I>=1&&f.push(T,ue,_,Yt(I),X);break;default:M.sanitizeURL&&(j(I,ee),I=""+I,ra(I)),f.push(T,ue,_,Yt(I),X)}}else if(se(F)){switch(typeof I){case"function":case"symbol":return;case"boolean":{var Ae=F.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}f.push(T,F,_,Yt(I),X)}}}var Pe=">",Ue="/>";function it(f,b,F){if(b!=null){if(F!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var I=b.__html;I!=null&&(N(I),f.push(""+I))}}var ft=!1,ut=!1,Bt=!1,_n=!1,Fn=!1,An=!1,Mr=!1;function nr(f,b){{var F=f[b];if(F!=null){var I=ie(F);f.multiple&&!I?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",b):!f.multiple&&I&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",b)}}}function Mo(f,b,F){Ke("select",b),nr(b,"value"),nr(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Bt&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Bt=!0),f.push(Vn("select"));var I=null,M=null;for(var ee in b)if($.call(b,ee)){var ue=b[ee];if(ue==null)continue;switch(ee){case"children":I=ue;break;case"dangerouslySetInnerHTML":M=ue;break;case"defaultValue":case"value":break;default:ve(f,F,ee,ue);break}}return f.push(Pe),it(f,M,I),I}function Zr(f){var b="";return e.Children.forEach(f,function(F){F!=null&&(b+=F,!Fn&&typeof F!="string"&&typeof F!="number"&&(Fn=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var mo=' selected=""';function Lr(f,b,F,I){var M=I.selectedValue;f.push(Vn("option"));var ee=null,ue=null,Ae=null,Le=null;for(var nt in b)if($.call(b,nt)){var st=b[nt];if(st==null)continue;switch(nt){case"children":ee=st;break;case"selected":Ae=st,Mr||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mr=!0);break;case"dangerouslySetInnerHTML":Le=st;break;case"value":ue=st;default:ve(f,F,nt,st);break}}if(M!=null){var vt;if(ue!==null?(j(ue,"value"),vt=""+ue):(Le!==null&&(An||(An=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),vt=Zr(ee)),ie(M))for(var qt=0;qt<M.length;qt++){j(M[qt],"value");var In=""+M[qt];if(In===vt){f.push(mo);break}}else j(M,"select.value"),""+M===vt&&f.push(mo)}else Ae&&f.push(mo);return f.push(Pe),it(f,Le,ee),ee}function la(f,b,F){Ke("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!ut&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),ut=!0),b.value!==void 0&&b.defaultValue!==void 0&&!ft&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),ft=!0),f.push(Vn("input"));var I=null,M=null,ee=null,ue=null;for(var Ae in b)if($.call(b,Ae)){var Le=b[Ae];if(Le==null)continue;switch(Ae){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ue=Le;break;case"defaultValue":M=Le;break;case"checked":ee=Le;break;case"value":I=Le;break;default:ve(f,F,Ae,Le);break}}return ee!==null?ve(f,F,"checked",ee):ue!==null&&ve(f,F,"checked",ue),I!==null?ve(f,F,"value",I):M!==null&&ve(f,F,"value",M),f.push(Ue),null}function Zu(f,b,F){Ke("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!_n&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),_n=!0),f.push(Vn("textarea"));var I=null,M=null,ee=null;for(var ue in b)if($.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":ee=Ae;break;case"value":I=Ae;break;case"defaultValue":M=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ve(f,F,ue,Ae);break}}if(I===null&&M!==null&&(I=M),f.push(Pe),ee!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),I!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ie(ee)){if(ee.length>1)throw new Error("<textarea> can only have at most one child.");N(ee[0]),I=""+ee[0]}N(ee),I=""+ee}return typeof I=="string"&&I[0]===`
|
|
154
|
-
`&&f.push(ua),I!==null&&(j(I,"value"),f.push(Rr(""+I))),null}function Xu(f,b,F,I){f.push(Vn(F));for(var M in b)if($.call(b,M)){var ee=b[M];if(ee==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error(F+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ve(f,I,M,ee);break}}return f.push(Ue),null}function Ni(f,b,F){f.push(Vn("menuitem"));for(var I in b)if($.call(b,I)){var M=b[I];if(M==null)continue;switch(I){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ve(f,F,I,M);break}}return f.push(Pe),null}function Yu(f,b,F){f.push(Vn("title"));var I=null;for(var M in b)if($.call(b,M)){var ee=b[M];if(ee==null)continue;switch(M){case"children":I=ee;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ve(f,F,M,ee);break}}f.push(Pe);{var ue=Array.isArray(I)&&I.length<2?I[0]||null:I;Array.isArray(I)&&I.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ue!=null&&ue.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ue!=null&&typeof ue!="string"&&typeof ue!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return I}function Oi(f,b,F,I){f.push(Vn(F));var M=null,ee=null;for(var ue in b)if($.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":M=Ae;break;case"dangerouslySetInnerHTML":ee=Ae;break;default:ve(f,I,ue,Ae);break}}return f.push(Pe),it(f,ee,M),typeof M=="string"?(f.push(Rr(M)),null):M}function _r(f,b,F,I){f.push(Vn(F));var M=null,ee=null;for(var ue in b)if($.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":M=Ae;break;case"dangerouslySetInnerHTML":ee=Ae;break;case"style":S(f,I,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:se(ue)&&typeof Ae!="function"&&typeof Ae!="symbol"&&f.push(T,ue,_,Yt(Ae),X);break}}return f.push(Pe),it(f,ee,M),M}var ua=`
|
|
155
|
-
`;function Wa(f,b,F,I){f.push(Vn(F));var M=null,ee=null;for(var ue in b)if($.call(b,ue)){var Ae=b[ue];if(Ae==null)continue;switch(ue){case"children":M=Ae;break;case"dangerouslySetInnerHTML":ee=Ae;break;default:ve(f,I,ue,Ae);break}}if(f.push(Pe),ee!=null){if(M!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ee!="object"||!("__html"in ee))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Le=ee.__html;Le!=null&&(typeof Le=="string"&&Le.length>0&&Le[0]===`
|
|
156
|
-
`?f.push(ua,Le):(N(Le),f.push(""+Le)))}return typeof M=="string"&&M[0]===`
|
|
157
|
-
`&&f.push(ua),M}var Zt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Xr=new Map;function Vn(f){var b=Xr.get(f);if(b===void 0){if(!Zt.test(f))throw new Error("Invalid tag: "+f);b="<"+f,Xr.set(f,b)}return b}var vo="<!DOCTYPE html>";function Yr(f,b,F,I,M){switch(Ie(b,F),He(b,F),mn(b,F,null),!F.suppressContentEditableWarning&&F.contentEditable&&F.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),M.insertionMode!==kn&&M.insertionMode!==hr&&b.indexOf("-")===-1&&typeof F.is!="string"&&b.toLowerCase()!==b&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",b),b){case"select":return Mo(f,F,I);case"option":return Lr(f,F,I,M);case"textarea":return Zu(f,F,I);case"input":return la(f,F,I);case"menuitem":return Ni(f,F,I);case"title":return Yu(f,F,I);case"listing":case"pre":return Wa(f,F,b,I);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Xu(f,F,b,I);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Oi(f,F,b,I);case"html":return M.insertionMode===Mt&&f.push(vo),Oi(f,F,b,I);default:return b.indexOf("-")===-1&&typeof F.is!="string"?Oi(f,F,b,I):_r(f,F,b,I)}}var Ha="</",Jr=">";function rr(f,b,F){switch(b){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:f.push(Ha,b,Jr)}}function $i(f,b){for(var F=b.bootstrapChunks,I=0;I<F.length-1;I++)u(f,F[I]);return I<F.length?c(f,F[I]):!0}var Ri='<template id="',Xs='"></template>';function Ys(f,b,F){u(f,Ri),u(f,b.placeholderPrefix);var I=F.toString(16);return u(f,I),c(f,Xs)}var Js="<!--$-->",Ju='<!--$?--><template id="',Ku='"></template>',Ga="<!--$!-->",za="<!--/$-->",Ua="<template",ca='"',Qu=' data-dgst="',da=' data-msg="',Mi=' data-stck="',Li="></template>";function Lo(f,b){return c(f,Js)}function _o(f,b,F){if(u(f,Ju),F===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(f,F),c(f,Ku)}function Za(f,b,F,I,M){var ee;return ee=c(f,Ga),u(f,Ua),F&&(u(f,Qu),u(f,Yt(F)),u(f,ca)),I&&(u(f,da),u(f,Yt(I)),u(f,ca)),M&&(u(f,Mi),u(f,Yt(M)),u(f,ca)),ee=c(f,Li),ee}function Ks(f,b){return c(f,za)}function _i(f,b){return c(f,za)}function Qs(f,b){return c(f,za)}var Xa='<div hidden id="',Wn='">',qs="</div>",Ya='<svg aria-hidden="true" style="display:none" id="',qu='">',el="</svg>",Ja='<math aria-hidden="true" style="display:none" id="',tl='">',nl="</math>",Ka='<table hidden id="',Qa='">',rl="</table>",ol='<table hidden><tbody id="',al='">',Vi="</tbody></table>",il='<table hidden><tr id="',D='">',k="</tr></table>",L='<table hidden><colgroup id="',Y='">',De="</colgroup></table>";function we(f,b,F,I){switch(F.insertionMode){case Mt:case Qt:return u(f,Xa),u(f,b.segmentPrefix),u(f,I.toString(16)),c(f,Wn);case kn:return u(f,Ya),u(f,b.segmentPrefix),u(f,I.toString(16)),c(f,qu);case hr:return u(f,Ja),u(f,b.segmentPrefix),u(f,I.toString(16)),c(f,tl);case on:return u(f,Ka),u(f,b.segmentPrefix),u(f,I.toString(16)),c(f,Qa);case an:return u(f,ol),u(f,b.segmentPrefix),u(f,I.toString(16)),c(f,al);case mr:return u(f,il),u(f,b.segmentPrefix),u(f,I.toString(16)),c(f,D);case tr:return u(f,L),u(f,b.segmentPrefix),u(f,I.toString(16)),c(f,Y);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Oe(f,b){switch(b.insertionMode){case Mt:case Qt:return c(f,qs);case kn:return c(f,el);case hr:return c(f,nl);case on:return c(f,rl);case an:return c(f,Vi);case mr:return c(f,k);case tr:return c(f,De);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Xe="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",gt='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Dt='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',wt=Xe+';$RS("',Xt='$RS("',Hn='","',or='")<\/script>';function ar(f,b,F){u(f,b.startInlineScript),b.sentCompleteSegmentFunction?u(f,Xt):(b.sentCompleteSegmentFunction=!0,u(f,wt)),u(f,b.segmentPrefix);var I=F.toString(16);return u(f,I),u(f,Hn),u(f,b.placeholderPrefix),u(f,I),c(f,or)}var qa=gt+';$RC("',sl='$RC("',Wi='","',Ov='")<\/script>';function $v(f,b,F,I){if(u(f,b.startInlineScript),b.sentCompleteBoundaryFunction?u(f,sl):(b.sentCompleteBoundaryFunction=!0,u(f,qa)),F===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var M=I.toString(16);return u(f,F),u(f,Wi),u(f,b.segmentPrefix),u(f,M),c(f,Ov)}var Rv=Dt+';$RX("',Mv='$RX("',Lv='"',_v=")<\/script>",ec=",";function Vv(f,b,F,I,M,ee){if(u(f,b.startInlineScript),b.sentClientRenderFunction?u(f,Mv):(b.sentClientRenderFunction=!0,u(f,Rv)),F===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return u(f,F),u(f,Lv),(I||M||ee)&&(u(f,ec),u(f,tc(I||""))),(M||ee)&&(u(f,ec),u(f,tc(M||""))),ee&&(u(f,ec),u(f,tc(ee))),c(f,_v)}var Wv=/[<\u2028\u2029]/g;function tc(f){var b=JSON.stringify(f);return b.replace(Wv,function(F){switch(F){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Hv(f,b){var F=Rt(b,void 0);return{bootstrapChunks:F.bootstrapChunks,startInlineScript:F.startInlineScript,placeholderPrefix:F.placeholderPrefix,segmentPrefix:F.segmentPrefix,boundaryPrefix:F.boundaryPrefix,idPrefix:F.idPrefix,nextSuspenseID:F.nextSuspenseID,sentCompleteSegmentFunction:F.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:F.sentCompleteBoundaryFunction,sentClientRenderFunction:F.sentClientRenderFunction,generateStaticMarkup:f}}function nc(){return{insertionMode:Qt,selectedValue:null}}function Hf(f,b,F,I){return F.generateStaticMarkup?(f.push(Yt(b)),!1):aa(f,b,F,I)}function Gf(f,b,F,I){if(!b.generateStaticMarkup)return ia(f,b,F,I)}function rc(f,b){return b.generateStaticMarkup?!0:Lo(f)}function xr(f,b,F,I,M){return b.generateStaticMarkup?!0:Za(f,b,F,I,M)}function Gv(f,b){return b.generateStaticMarkup?!0:Ks(f)}function zf(f,b){return b.generateStaticMarkup?!0:Qs(f)}var ir=Object.assign,Uf=Symbol.for("react.element"),oc=Symbol.for("react.portal"),ll=Symbol.for("react.fragment"),ul=Symbol.for("react.strict_mode"),cl=Symbol.for("react.profiler"),Hi=Symbol.for("react.provider"),Gi=Symbol.for("react.context"),zi=Symbol.for("react.forward_ref"),ei=Symbol.for("react.suspense"),ac=Symbol.for("react.suspense_list"),ic=Symbol.for("react.memo"),dl=Symbol.for("react.lazy"),zv=Symbol.for("react.scope"),Zf=Symbol.for("react.debug_trace_mode"),Uv=Symbol.for("react.legacy_hidden"),Zv=Symbol.for("react.default_value"),Xf=Symbol.iterator,Yf="@@iterator";function un(f){if(f===null||typeof f!="object")return null;var b=Xf&&f[Xf]||f[Yf];return typeof b=="function"?b:null}function Ui(f,b,F){var I=f.displayName;if(I)return I;var M=b.displayName||b.name||"";return M!==""?F+"("+M+")":F}function sc(f){return f.displayName||"Context"}function sn(f){if(f==null)return null;if(typeof f.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case ll:return"Fragment";case oc:return"Portal";case cl:return"Profiler";case ul:return"StrictMode";case ei:return"Suspense";case ac:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case Gi:var b=f;return sc(b)+".Consumer";case Hi:var F=f;return sc(F._context)+".Provider";case zi:return Ui(f,f.render,"ForwardRef");case ic:var I=f.displayName||null;return I!==null?I:sn(f.type)||"Memo";case dl:{var M=f,ee=M._payload,ue=M._init;try{return sn(ue(ee))}catch{return null}}}return null}var ti=0,lc,uc,cc,dc,fc,Jf,Kf;function fl(){}fl.__reactDisabledLog=!0;function gc(){{if(ti===0){lc=console.log,uc=console.info,cc=console.warn,dc=console.error,fc=console.group,Jf=console.groupCollapsed,Kf=console.groupEnd;var f={configurable:!0,enumerable:!0,value:fl,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}ti++}}function Zi(){{if(ti--,ti===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ir({},f,{value:lc}),info:ir({},f,{value:uc}),warn:ir({},f,{value:cc}),error:ir({},f,{value:dc}),group:ir({},f,{value:fc}),groupCollapsed:ir({},f,{value:Jf}),groupEnd:ir({},f,{value:Kf})})}ti<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xi=n.ReactCurrentDispatcher,ni;function Yi(f,b,F){{if(ni===void 0)try{throw Error()}catch(M){var I=M.stack.trim().match(/\n( *(at )?)/);ni=I&&I[1]||""}return`
|
|
158
|
-
`+ni+f}}var Ji=!1,gl;{var Qf=typeof WeakMap=="function"?WeakMap:Map;gl=new Qf}function pc(f,b){if(!f||Ji)return"";{var F=gl.get(f);if(F!==void 0)return F}var I;Ji=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ee;ee=Xi.current,Xi.current=null,gc();try{if(b){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Er){I=Er}Reflect.construct(f,[],ue)}else{try{ue.call()}catch(Er){I=Er}f.call(ue.prototype)}}else{try{throw Error()}catch(Er){I=Er}f()}}catch(Er){if(Er&&I&&typeof Er.stack=="string"){for(var Ae=Er.stack.split(`
|
|
159
|
-
`),Le=I.stack.split(`
|
|
160
|
-
`),nt=Ae.length-1,st=Le.length-1;nt>=1&&st>=0&&Ae[nt]!==Le[st];)st--;for(;nt>=1&&st>=0;nt--,st--)if(Ae[nt]!==Le[st]){if(nt!==1||st!==1)do if(nt--,st--,st<0||Ae[nt]!==Le[st]){var vt=`
|
|
161
|
-
`+Ae[nt].replace(" at new "," at ");return f.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",f.displayName)),typeof f=="function"&&gl.set(f,vt),vt}while(nt>=1&&st>=0);break}}}finally{Ji=!1,Xi.current=ee,Zi(),Error.prepareStackTrace=M}var qt=f?f.displayName||f.name:"",In=qt?Yi(qt):"";return typeof f=="function"&&gl.set(f,In),In}function hc(f,b,F){return pc(f,!0)}function mc(f,b,F){return pc(f,!1)}function qf(f){var b=f.prototype;return!!(b&&b.isReactComponent)}function ri(f,b,F){if(f==null)return"";if(typeof f=="function")return pc(f,qf(f));if(typeof f=="string")return Yi(f);switch(f){case ei:return Yi("Suspense");case ac:return Yi("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case zi:return mc(f.render);case ic:return ri(f.type,b,F);case dl:{var I=f,M=I._payload,ee=I._init;try{return ri(ee(M),b,F)}catch{}}}return""}var vc={},pl=n.ReactDebugCurrentFrame;function fa(f){if(f){var b=f._owner,F=ri(f.type,f._source,b?b.type:null);pl.setExtraStackFrame(F)}else pl.setExtraStackFrame(null)}function bc(f,b,F,I,M){{var ee=Function.call.bind($);for(var ue in f)if(ee(f,ue)){var Ae=void 0;try{if(typeof f[ue]!="function"){var Le=Error((I||"React class")+": "+F+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}Ae=f[ue](b,ue,I,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(nt){Ae=nt}Ae&&!(Ae instanceof Error)&&(fa(M),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",F,ue,typeof Ae),fa(null)),Ae instanceof Error&&!(Ae.message in vc)&&(vc[Ae.message]=!0,fa(M),o("Failed %s type: %s",F,Ae.message),fa(null))}}}var xc;xc={};var Vo={};Object.freeze(Vo);function eg(f,b){{var F=f.contextTypes;if(!F)return Vo;var I={};for(var M in F)I[M]=b[M];{var ee=sn(f)||"Unknown";bc(F,I,"context",ee)}return I}}function ga(f,b,F,I){{if(typeof f.getChildContext!="function"){{var M=sn(b)||"Unknown";xc[M]||(xc[M]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",M,M))}return F}var ee=f.getChildContext();for(var ue in ee)if(!(ue in I))throw new Error((sn(b)||"Unknown")+'.getChildContext(): key "'+ue+'" is not defined in childContextTypes.');{var Ae=sn(b)||"Unknown";bc(I,ee,"child context",Ae)}return ir({},F,ee)}}var pa;pa={};var yc=null,Kr=null;function hl(f){f.context._currentValue2=f.parentValue}function ml(f){f.context._currentValue2=f.value}function Ki(f,b){if(f!==b){hl(f);var F=f.parent,I=b.parent;if(F===null){if(I!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(I===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Ki(F,I)}ml(b)}}function Cc(f){hl(f);var b=f.parent;b!==null&&Cc(b)}function Qi(f){var b=f.parent;b!==null&&Qi(b),ml(f)}function tg(f,b){hl(f);var F=f.parent;if(F===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");F.depth===b.depth?Ki(F,b):tg(F,b)}function ng(f,b){var F=b.parent;if(F===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");f.depth===F.depth?Ki(f,F):ng(f,F),ml(b)}function vl(f){var b=Kr,F=f;b!==F&&(b===null?Qi(F):F===null?Cc(b):b.depth===F.depth?Ki(b,F):b.depth>F.depth?tg(b,F):ng(b,F),Kr=F)}function qi(f,b){var F;F=f._currentValue2,f._currentValue2=b,f._currentRenderer2!==void 0&&f._currentRenderer2!==null&&f._currentRenderer2!==pa&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),f._currentRenderer2=pa;var I=Kr,M={parent:I,depth:I===null?0:I.depth+1,context:f,parentValue:F,value:b};return Kr=M,M}function wc(f){var b=Kr;if(b===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");b.context!==f&&o("The parent context is not the expected context. This is probably a bug in React.");{var F=b.parentValue;F===Zv?b.context._currentValue2=b.context._defaultValue:b.context._currentValue2=F,f._currentRenderer2!==void 0&&f._currentRenderer2!==null&&f._currentRenderer2!==pa&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),f._currentRenderer2=pa}return Kr=b.parent}function Xv(){return Kr}function oi(f){var b=f._currentValue2;return b}function bl(f){return f._reactInternals}function Ec(f,b){f._reactInternals=b}var xl={},yl={},es,Cl,ai,ts,wl,ii,El,Sl,Dl;{es=new Set,Cl=new Set,ai=new Set,El=new Set,ts=new Set,Sl=new Set,Dl=new Set;var rg=new Set;ii=function(f,b){if(!(f===null||typeof f=="function")){var F=b+"_"+f;rg.has(F)||(rg.add(F),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,f))}},wl=function(f,b){if(b===void 0){var F=sn(f)||"Component";ts.has(F)||(ts.add(F),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",F))}}}function og(f,b){{var F=f.constructor,I=F&&sn(F)||"ReactClass",M=I+"."+b;if(xl[M])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
162
|
-
|
|
163
|
-
Please check the code for the %s component.`,b,b,I),xl[M]=!0}}var ag={isMounted:function(f){return!1},enqueueSetState:function(f,b,F){var I=bl(f);I.queue===null?og(f,"setState"):(I.queue.push(b),F!=null&&ii(F,"setState"))},enqueueReplaceState:function(f,b,F){var I=bl(f);I.replace=!0,I.queue=[b],F!=null&&ii(F,"setState")},enqueueForceUpdate:function(f,b){var F=bl(f);F.queue===null?og(f,"forceUpdate"):b!=null&&ii(b,"setState")}};function Yv(f,b,F,I,M){var ee=F(M,I);wl(b,ee);var ue=ee==null?I:ir({},I,ee);return ue}function Jv(f,b,F){var I=Vo,M=f.contextType;if("contextType"in f){var ee=M===null||M!==void 0&&M.$$typeof===Gi&&M._context===void 0;if(!ee&&!Dl.has(f)){Dl.add(f);var ue="";M===void 0?ue=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof M!="object"?ue=" However, it is set to a "+typeof M+".":M.$$typeof===Hi?ue=" Did you accidentally pass the Context.Provider instead?":M._context!==void 0?ue=" Did you accidentally pass the Context.Consumer instead?":ue=" However, it is set to an object with keys {"+Object.keys(M).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",sn(f)||"Component",ue)}}typeof M=="object"&&M!==null?I=oi(M):I=F;var Ae=new f(b,I);{if(typeof f.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var Le=sn(f)||"Component";es.has(Le)||(es.add(Le),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Le,Ae.state===null?"null":"undefined",Le))}if(typeof f.getDerivedStateFromProps=="function"||typeof Ae.getSnapshotBeforeUpdate=="function"){var nt=null,st=null,vt=null;if(typeof Ae.componentWillMount=="function"&&Ae.componentWillMount.__suppressDeprecationWarning!==!0?nt="componentWillMount":typeof Ae.UNSAFE_componentWillMount=="function"&&(nt="UNSAFE_componentWillMount"),typeof Ae.componentWillReceiveProps=="function"&&Ae.componentWillReceiveProps.__suppressDeprecationWarning!==!0?st="componentWillReceiveProps":typeof Ae.UNSAFE_componentWillReceiveProps=="function"&&(st="UNSAFE_componentWillReceiveProps"),typeof Ae.componentWillUpdate=="function"&&Ae.componentWillUpdate.__suppressDeprecationWarning!==!0?vt="componentWillUpdate":typeof Ae.UNSAFE_componentWillUpdate=="function"&&(vt="UNSAFE_componentWillUpdate"),nt!==null||st!==null||vt!==null){var qt=sn(f)||"Component",In=typeof f.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ai.has(qt)||(ai.add(qt),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
164
|
-
|
|
165
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
166
|
-
|
|
167
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
168
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,qt,In,nt!==null?`
|
|
169
|
-
`+nt:"",st!==null?`
|
|
170
|
-
`+st:"",vt!==null?`
|
|
171
|
-
`+vt:""))}}}return Ae}function ig(f,b,F){{var I=sn(b)||"Component",M=f.render;M||(b.prototype&&typeof b.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",I):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",I)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",I),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",I),f.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",I),f.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",I),f.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",I),b.contextType&&b.contextTypes&&!Sl.has(b)&&(Sl.add(b),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",I)),typeof f.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",I),b.prototype&&b.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",sn(b)||"A pure component"),typeof f.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",I),typeof f.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",I),typeof f.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",I),typeof f.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",I);var ee=f.props!==F;f.props!==void 0&&ee&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",I,I),f.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",I,I),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!Cl.has(b)&&(Cl.add(b),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",sn(b))),typeof f.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof f.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof b.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",I);var ue=f.state;ue&&(typeof ue!="object"||ie(ue))&&o("%s.state: must be set to an object or null",I),typeof f.getChildContext=="function"&&typeof b.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",I)}}function Kv(f,b){var F=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var I=sn(f)||"Unknown";yl[I]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
172
|
-
|
|
173
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
174
|
-
|
|
175
|
-
Please update the following components: %s`,I),yl[I]=!0)}b.componentWillMount()}typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),F!==b.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",sn(f)||"Component"),ag.enqueueReplaceState(b,b.state,null))}function Qv(f,b,F,I){if(f.queue!==null&&f.queue.length>0){var M=f.queue,ee=f.replace;if(f.queue=null,f.replace=!1,ee&&M.length===1)b.state=M[0];else{for(var ue=ee?M[0]:b.state,Ae=!0,Le=ee?1:0;Le<M.length;Le++){var nt=M[Le],st=typeof nt=="function"?nt.call(b,ue,F,I):nt;st!=null&&(Ae?(Ae=!1,ue=ir({},ue,st)):ir(ue,st))}b.state=ue}}else f.queue=null}function Fl(f,b,F,I){ig(f,b,F);var M=f.state!==void 0?f.state:null;f.updater=ag,f.props=F,f.state=M;var ee={queue:[],replace:!1};Ec(f,ee);var ue=b.contextType;if(typeof ue=="object"&&ue!==null?f.context=oi(ue):f.context=I,f.state===F){var Ae=sn(b)||"Component";El.has(Ae)||(El.add(Ae),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Ae))}var Le=b.getDerivedStateFromProps;typeof Le=="function"&&(f.state=Yv(f,b,Le,M,F)),typeof b.getDerivedStateFromProps!="function"&&typeof f.getSnapshotBeforeUpdate!="function"&&(typeof f.UNSAFE_componentWillMount=="function"||typeof f.componentWillMount=="function")&&(Kv(b,f),Qv(ee,f,F,I))}var Al={id:1,overflow:""};function qv(f){var b=f.overflow,F=f.id,I=F&~e0(F);return I.toString(32)+b}function Sc(f,b,F){var I=f.id,M=f.overflow,ee=jl(I)-1,ue=I&~(1<<ee),Ae=F+1,Le=jl(b)+ee;if(Le>30){var nt=ee-ee%5,st=(1<<nt)-1,vt=(ue&st).toString(32),qt=ue>>nt,In=ee-nt,Er=jl(b)+In,jg=Ae<<In,Ig=jg|qt,Tg=vt+M;return{id:1<<Er|Ig,overflow:Tg}}else{var Gl=Ae<<ee,i_=Gl|ue,s_=M;return{id:1<<Le|i_,overflow:s_}}}function jl(f){return 32-t0(f)}function e0(f){return 1<<jl(f)-1}var t0=Math.clz32?Math.clz32:bo,n0=Math.log,r0=Math.LN2;function bo(f){var b=f>>>0;return b===0?32:31-(n0(b)/r0|0)|0}function Dc(f,b){return f===b&&(f!==0||1/f===1/b)||f!==f&&b!==b}var Il=typeof Object.is=="function"?Object.is:Dc,Nt=null,ha=null,ma=null,Ht=null,yr=!1,va=!1,Tl=0,jn=null,xo=0,ba=25,Qr=!1,xa;function yo(){if(Nt===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
176
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
177
|
-
2. You might be breaking the Rules of Hooks
|
|
178
|
-
3. You might have more than one copy of React in the same app
|
|
179
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Qr&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Nt}function o0(f,b){if(b===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",xa),!1;f.length!==b.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
180
|
-
|
|
181
|
-
Previous: %s
|
|
182
|
-
Incoming: %s`,xa,"["+f.join(", ")+"]","["+b.join(", ")+"]");for(var F=0;F<b.length&&F<f.length;F++)if(!Il(f[F],b[F]))return!1;return!0}function sg(){if(xo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function kl(){return Ht===null?ma===null?(yr=!1,ma=Ht=sg()):(yr=!0,Ht=ma):Ht.next===null?(yr=!1,Ht=Ht.next=sg()):(yr=!0,Ht=Ht.next),Ht}function Fc(f,b){Nt=b,ha=f,Qr=!1,Tl=0}function a0(f,b,F,I){for(;va;)va=!1,Tl=0,xo+=1,Ht=null,F=f(b,I);return ns(),F}function lg(){var f=Tl!==0;return f}function ns(){Qr=!1,Nt=null,ha=null,va=!1,ma=null,xo=0,jn=null,Ht=null}function i0(f){return Qr&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),oi(f)}function ug(f){return xa="useContext",yo(),oi(f)}function Pl(f,b){return typeof b=="function"?b(f):b}function s0(f){return xa="useState",cg(Pl,f)}function cg(f,b,F){if(f!==Pl&&(xa="useReducer"),Nt=yo(),Ht=kl(),yr){var I=Ht.queue,M=I.dispatch;if(jn!==null){var ee=jn.get(I);if(ee!==void 0){jn.delete(I);var ue=Ht.memoizedState,Ae=ee;do{var Le=Ae.action;Qr=!0,ue=f(ue,Le),Qr=!1,Ae=Ae.next}while(Ae!==null);return Ht.memoizedState=ue,[ue,M]}}return[Ht.memoizedState,M]}else{Qr=!0;var nt;f===Pl?nt=typeof b=="function"?b():b:nt=F!==void 0?F(b):b,Qr=!1,Ht.memoizedState=nt;var st=Ht.queue={last:null,dispatch:null},vt=st.dispatch=c0.bind(null,Nt,st);return[Ht.memoizedState,vt]}}function dg(f,b){Nt=yo(),Ht=kl();var F=b===void 0?null:b;if(Ht!==null){var I=Ht.memoizedState;if(I!==null&&F!==null){var M=I[1];if(o0(F,M))return I[0]}}Qr=!0;var ee=f();return Qr=!1,Ht.memoizedState=[ee,F],ee}function l0(f){Nt=yo(),Ht=kl();var b=Ht.memoizedState;if(b===null){var F={current:f};return Object.seal(F),Ht.memoizedState=F,F}else return b}function u0(f,b){xa="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function c0(f,b,F){if(xo>=ba)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(f===Nt){va=!0;var I={action:F,next:null};jn===null&&(jn=new Map);var M=jn.get(b);if(M===void 0)jn.set(b,I);else{for(var ee=M;ee.next!==null;)ee=ee.next;ee.next=I}}}function d0(f,b){return dg(function(){return f},b)}function f0(f,b,F){return yo(),b(f._source)}function g0(f,b,F){if(F===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return F()}function p0(f){return yo(),f}function Bl(){throw new Error("startTransition cannot be called during server rendering.")}function fg(){return yo(),[!1,Bl]}function Ac(){var f=ha,b=qv(f.treeContext),F=os;if(F===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var I=Tl++;return Pn(F,b,I)}function rs(){}var gg={readContext:i0,useContext:ug,useMemo:dg,useReducer:cg,useRef:l0,useState:s0,useInsertionEffect:rs,useLayoutEffect:u0,useCallback:d0,useImperativeHandle:rs,useEffect:rs,useDebugValue:rs,useDeferredValue:p0,useTransition:fg,useId:Ac,useMutableSource:f0,useSyncExternalStore:g0},os=null;function Nl(f){os=f}function jc(f){try{var b="",F=f;do{switch(F.tag){case 0:b+=Yi(F.type,null,null);break;case 1:b+=mc(F.type,null,null);break;case 2:b+=hc(F.type,null,null);break}F=F.parent}while(F);return b}catch(I){return`
|
|
183
|
-
Error generating stack: `+I.message+`
|
|
184
|
-
`+I.stack}}var Wo=n.ReactCurrentDispatcher,Ol=n.ReactDebugCurrentFrame,$l=0,ya=1,pg=2,Ic=3,Ca=4,h0=0,hg=1,qr=2,m0=12800;function v0(f){return console.error(f),null}function as(){}function Tc(f,b,F,I,M,ee,ue,Ae,Le){var nt=[],st=new Set,vt={destination:null,responseState:b,progressiveChunkSize:I===void 0?m0:I,status:h0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:st,pingedTasks:nt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:M===void 0?v0:M,onAllReady:ee===void 0?as:ee,onShellReady:ue===void 0?as:ue,onShellError:Ae===void 0?as:Ae,onFatalError:Le===void 0?as:Le},qt=Ho(vt,0,null,F,!1,!1);qt.parentFlushed=!0;var In=is(vt,f,null,qt,st,Vo,yc,Al);return nt.push(In),vt}function Rl(f,b){var F=f.pingedTasks;F.push(b),F.length===1&&i(function(){return Fg(f)})}function Co(f,b){return{id:vr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function is(f,b,F,I,M,ee,ue,Ae){f.allPendingTasks++,F===null?f.pendingRootTasks++:F.pendingTasks++;var Le={node:b,ping:function(){return Rl(f,Le)},blockedBoundary:F,blockedSegment:I,abortSet:M,legacyContext:ee,context:ue,treeContext:Ae};return Le.componentStack=null,M.add(Le),Le}function Ho(f,b,F,I,M,ee){return{status:$l,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:I,boundary:F,lastPushedText:M,textEmbedded:ee}}var eo=null;function kc(){return eo===null||eo.componentStack===null?"":jc(eo.componentStack)}function Cr(f,b){f.componentStack={tag:0,parent:f.componentStack,type:b}}function si(f,b){f.componentStack={tag:1,parent:f.componentStack,type:b}}function Pc(f,b){f.componentStack={tag:2,parent:f.componentStack,type:b}}function wr(f){f.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):f.componentStack=f.componentStack.parent}var Go=null;function Bc(f,b){{var F;typeof b=="string"?F=b:b&&typeof b.message=="string"?F=b.message:F=String(b);var I=Go||kc();Go=null,f.errorMessage=F,f.errorComponentStack=I}}function ss(f,b){var F=f.onError(b);if(F!=null&&typeof F!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof F+'" instead');return F}function Ml(f,b){var F=f.onShellError;F(b);var I=f.onFatalError;I(b),f.destination!==null?(f.status=qr,C(f.destination,b)):(f.status=hg,f.fatalError=b)}function mg(f,b,F){Cr(b,"Suspense");var I=b.blockedBoundary,M=b.blockedSegment,ee=F.fallback,ue=F.children,Ae=new Set,Le=Co(f,Ae),nt=M.chunks.length,st=Ho(f,nt,Le,M.formatContext,!1,!1);M.children.push(st),M.lastPushedText=!1;var vt=Ho(f,0,null,M.formatContext,!1,!1);vt.parentFlushed=!0,b.blockedBoundary=Le,b.blockedSegment=vt;try{if(Ll(f,b,ue),Gf(vt.chunks,f.responseState,vt.lastPushedText,vt.textEmbedded),vt.status=ya,cs(Le,vt),Le.pendingTasks===0){wr(b);return}}catch(In){vt.status=Ca,Le.forceClientRender=!0,Le.errorDigest=ss(f,In),Bc(Le,In)}finally{b.blockedBoundary=I,b.blockedSegment=M}var qt=is(f,ee,I,st,Ae,b.legacyContext,b.context,b.treeContext);qt.componentStack=b.componentStack,f.pingedTasks.push(qt),wr(b)}function vg(f,b,F,I){Cr(b,F);var M=b.blockedSegment,ee=Yr(M.chunks,F,I,f.responseState,M.formatContext);M.lastPushedText=!1;var ue=M.formatContext;M.formatContext=No(ue,F,I),Ll(f,b,ee),M.formatContext=ue,rr(M.chunks,F),M.lastPushedText=!1,wr(b)}function b0(f){return f.prototype&&f.prototype.isReactComponent}function Nc(f,b,F,I,M){var ee={};Fc(b,ee);var ue=F(I,M);return a0(F,I,ue,M)}function ls(f,b,F,I,M){var ee=F.render();F.props!==M&&(Mc||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",sn(I)||"a component"),Mc=!0);{var ue=I.childContextTypes;if(ue!=null){var Ae=b.legacyContext,Le=ga(F,I,Ae,ue);b.legacyContext=Le,lr(f,b,ee),b.legacyContext=Ae;return}}lr(f,b,ee)}function bg(f,b,F,I){Pc(b,F);var M=eg(F,b.legacyContext),ee=Jv(F,I,M);Fl(ee,F,I,M),ls(f,b,ee,F,I),wr(b)}var Oc={},us={},$c={},Rc={},Mc=!1,xg=!1,yg=!1,Lc=!1;function x0(f,b,F,I){var M;if(M=eg(F,b.legacyContext),si(b,F),F.prototype&&typeof F.prototype.render=="function"){var ee=sn(F)||"Unknown";Oc[ee]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",ee,ee),Oc[ee]=!0)}var ue=Nc(f,b,F,I,M),Ae=lg();if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){var Le=sn(F)||"Unknown";us[Le]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Le,Le,Le),us[Le]=!0)}if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){{var nt=sn(F)||"Unknown";us[nt]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",nt,nt,nt),us[nt]=!0)}Fl(ue,F,I,M),ls(f,b,ue,F,I)}else if(y0(F),Ae){var st=b.treeContext,vt=1,qt=0;b.treeContext=Sc(st,vt,qt);try{lr(f,b,ue)}finally{b.treeContext=st}}else lr(f,b,ue);wr(b)}function y0(f){{if(f&&f.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",f.displayName||f.name||"Component"),typeof f.getDerivedStateFromProps=="function"){var b=sn(f)||"Unknown";Rc[b]||(o("%s: Function components do not support getDerivedStateFromProps.",b),Rc[b]=!0)}if(typeof f.contextType=="object"&&f.contextType!==null){var F=sn(f)||"Unknown";$c[F]||(o("%s: Function components do not support contextType.",F),$c[F]=!0)}}}function Cg(f,b){if(f&&f.defaultProps){var F=ir({},b),I=f.defaultProps;for(var M in I)F[M]===void 0&&(F[M]=I[M]);return F}return b}function C0(f,b,F,I,M){si(b,F.render);var ee=Nc(f,b,F.render,I,M),ue=lg();if(ue){var Ae=b.treeContext,Le=1,nt=0;b.treeContext=Sc(Ae,Le,nt);try{lr(f,b,ee)}finally{b.treeContext=Ae}}else lr(f,b,ee);wr(b)}function w0(f,b,F,I,M){var ee=F.type,ue=Cg(ee,I);Vc(f,b,ee,ue,M)}function _c(f,b,F,I){F._context===void 0?F!==F.Consumer&&(Lc||(Lc=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):F=F._context;var M=I.children;typeof M!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var ee=oi(F),ue=M(ee);lr(f,b,ue)}function E0(f,b,F,I){var M=F._context,ee=I.value,ue=I.children,Ae;Ae=b.context,b.context=qi(M,ee),lr(f,b,ue),b.context=wc(M),Ae!==b.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function sr(f,b,F,I,M){Cr(b,"Lazy");var ee=F._payload,ue=F._init,Ae=ue(ee),Le=Cg(Ae,I);Vc(f,b,Ae,Le,M),wr(b)}function Vc(f,b,F,I,M){if(typeof F=="function")if(b0(F)){bg(f,b,F,I);return}else{x0(f,b,F,I);return}if(typeof F=="string"){vg(f,b,F,I);return}switch(F){case Uv:case Zf:case ul:case cl:case ll:{lr(f,b,I.children);return}case ac:{Cr(b,"SuspenseList"),lr(f,b,I.children),wr(b);return}case zv:throw new Error("ReactDOMServer does not yet support scope components.");case ei:{mg(f,b,I);return}}if(typeof F=="object"&&F!==null)switch(F.$$typeof){case zi:{C0(f,b,F,I,M);return}case ic:{w0(f,b,F,I,M);return}case Hi:{E0(f,b,F,I);return}case Gi:{_c(f,b,F,I);return}case dl:{sr(f,b,F,I);return}}var ee="";throw(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(F==null?F:typeof F)+"."+ee))}function wg(f,b){typeof Symbol=="function"&&f[Symbol.toStringTag]==="Generator"&&(xg||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),xg=!0),f.entries===b&&(yg||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),yg=!0)}function lr(f,b,F){try{return Wc(f,b,F)}catch(I){throw typeof I=="object"&&I!==null&&typeof I.then=="function"||(Go=Go!==null?Go:kc()),I}}function Wc(f,b,F){if(b.node=F,typeof F=="object"&&F!==null){switch(F.$$typeof){case Uf:{var I=F,M=I.type,ee=I.props,ue=I.ref;Vc(f,b,M,ee,ue);return}case oc:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case dl:{var Ae=F,Le=Ae._payload,nt=Ae._init,st;try{st=nt(Le)}catch(Gl){throw typeof Gl=="object"&&Gl!==null&&typeof Gl.then=="function"&&Cr(b,"Lazy"),Gl}lr(f,b,st);return}}if(ie(F)){Eg(f,b,F);return}var vt=un(F);if(vt){wg(F,vt);var qt=vt.call(F);if(qt){var In=qt.next();if(!In.done){var Er=[];do Er.push(In.value),In=qt.next();while(!In.done);Eg(f,b,Er);return}return}}var jg=Object.prototype.toString.call(F);throw new Error("Objects are not valid as a React child (found: "+(jg==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":jg)+"). If you meant to render a collection of children, use an array instead.")}if(typeof F=="string"){var Ig=b.blockedSegment;Ig.lastPushedText=Hf(b.blockedSegment.chunks,F,f.responseState,Ig.lastPushedText);return}if(typeof F=="number"){var Tg=b.blockedSegment;Tg.lastPushedText=Hf(b.blockedSegment.chunks,""+F,f.responseState,Tg.lastPushedText);return}typeof F=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Eg(f,b,F){for(var I=F.length,M=0;M<I;M++){var ee=b.treeContext;b.treeContext=Sc(ee,I,M);try{Ll(f,b,F[M])}finally{b.treeContext=ee}}}function S0(f,b,F){var I=b.blockedSegment,M=I.chunks.length,ee=Ho(f,M,null,I.formatContext,I.lastPushedText,!0);I.children.push(ee),I.lastPushedText=!1;var ue=is(f,b.node,b.blockedBoundary,ee,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(ue.componentStack=b.componentStack.parent);var Ae=ue.ping;F.then(Ae,Ae)}function Ll(f,b,F){var I=b.blockedSegment.formatContext,M=b.legacyContext,ee=b.context,ue=null;ue=b.componentStack;try{return lr(f,b,F)}catch(Ae){if(ns(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){S0(f,b,Ae),b.blockedSegment.formatContext=I,b.legacyContext=M,b.context=ee,vl(ee),b.componentStack=ue;return}else throw b.blockedSegment.formatContext=I,b.legacyContext=M,b.context=ee,vl(ee),b.componentStack=ue,Ae}}function _l(f,b,F,I){var M=ss(f,I);if(b===null?Ml(f,I):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=M,Bc(b,I),b.parentFlushed&&f.clientRenderedBoundaries.push(b))),f.allPendingTasks--,f.allPendingTasks===0){var ee=f.onAllReady;ee()}}function Sg(f){var b=this,F=f.blockedBoundary,I=f.blockedSegment;I.status=Ic,ds(b,F,I)}function Dg(f,b,F){var I=f.blockedBoundary,M=f.blockedSegment;if(M.status=Ic,I===null)b.allPendingTasks--,b.status!==qr&&(b.status=qr,b.destination!==null&&g(b.destination));else{if(I.pendingTasks--,!I.forceClientRender){I.forceClientRender=!0;var ee=F===void 0?new Error("The render was aborted by the server without a reason."):F;I.errorDigest=b.onError(ee);{var ue="The server did not finish this Suspense boundary: ";ee&&typeof ee.message=="string"?ee=ue+ee.message:ee=ue+String(ee);var Ae=eo;eo=f;try{Bc(I,ee)}finally{eo=Ae}}I.parentFlushed&&b.clientRenderedBoundaries.push(I)}if(I.fallbackAbortableTasks.forEach(function(nt){return Dg(nt,b,F)}),I.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var Le=b.onAllReady;Le()}}}function cs(f,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var F=b.children[0];F.id=b.id,F.parentFlushed=!0,F.status===ya&&cs(f,F)}else{var I=f.completedSegments;I.push(b)}}function ds(f,b,F){if(b===null){if(F.parentFlushed){if(f.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");f.completedRootSegment=F}if(f.pendingRootTasks--,f.pendingRootTasks===0){f.onShellError=as;var I=f.onShellReady;I()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)F.parentFlushed&&F.status===ya&&cs(b,F),b.parentFlushed&&f.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(Sg,f),b.fallbackAbortableTasks.clear();else if(F.parentFlushed&&F.status===ya){cs(b,F);var M=b.completedSegments;M.length===1&&b.parentFlushed&&f.partialBoundaries.push(b)}}if(f.allPendingTasks--,f.allPendingTasks===0){var ee=f.onAllReady;ee()}}function Vl(f,b){var F=b.blockedSegment;if(F.status===$l){vl(b.context);var I=null;I=eo,eo=b;try{lr(f,b,b.node),Gf(F.chunks,f.responseState,F.lastPushedText,F.textEmbedded),b.abortSet.delete(b),F.status=ya,ds(f,b.blockedBoundary,F)}catch(ee){if(ns(),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"){var M=b.ping;ee.then(M,M)}else b.abortSet.delete(b),F.status=Ca,_l(f,b.blockedBoundary,F,ee)}finally{eo=I}}}function Fg(f){if(f.status!==qr){var b=Xv(),F=Wo.current;Wo.current=gg;var I;I=Ol.getCurrentStack,Ol.getCurrentStack=kc;var M=os;Nl(f.responseState);try{var ee=f.pingedTasks,ue;for(ue=0;ue<ee.length;ue++){var Ae=ee[ue];Vl(f,Ae)}ee.splice(0,ue),f.destination!==null&&Hl(f,f.destination)}catch(Le){ss(f,Le),Ml(f,Le)}finally{Nl(M),Wo.current=F,Ol.getCurrentStack=I,F===gg&&vl(b)}}}function fs(f,b,F){switch(F.parentFlushed=!0,F.status){case $l:{var I=F.id=f.nextSegmentId++;return F.lastPushedText=!1,F.textEmbedded=!1,Ys(b,f.responseState,I)}case ya:{F.status=pg;for(var M=!0,ee=F.chunks,ue=0,Ae=F.children,Le=0;Le<Ae.length;Le++){for(var nt=Ae[Le];ue<nt.index;ue++)u(b,ee[ue]);M=gs(f,b,nt)}for(;ue<ee.length-1;ue++)u(b,ee[ue]);return ue<ee.length&&(M=c(b,ee[ue])),M}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function gs(f,b,F){var I=F.boundary;if(I===null)return fs(f,b,F);if(I.parentFlushed=!0,I.forceClientRender)return xr(b,f.responseState,I.errorDigest,I.errorMessage,I.errorComponentStack),fs(f,b,F),zf(b,f.responseState);if(I.pendingTasks>0){I.rootSegmentID=f.nextSegmentId++,I.completedSegments.length>0&&f.partialBoundaries.push(I);var M=I.id=br(f.responseState);return _o(b,f.responseState,M),fs(f,b,F),_i(b,f.responseState)}else{if(I.byteSize>f.progressiveChunkSize)return I.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(I),_o(b,f.responseState,I.id),fs(f,b,F),_i(b,f.responseState);rc(b,f.responseState);var ee=I.completedSegments;if(ee.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ue=ee[0];return gs(f,b,ue),Gv(b,f.responseState)}}function D0(f,b,F){return Vv(b,f.responseState,F.id,F.errorDigest,F.errorMessage,F.errorComponentStack)}function Hc(f,b,F){return we(b,f.responseState,F.formatContext,F.id),gs(f,b,F),Oe(b,F.formatContext)}function Wl(f,b,F){for(var I=F.completedSegments,M=0;M<I.length;M++){var ee=I[M];Ag(f,b,F,ee)}return I.length=0,$v(b,f.responseState,F.id,F.rootSegmentID)}function F0(f,b,F){for(var I=F.completedSegments,M=0;M<I.length;M++){var ee=I[M];if(!Ag(f,b,F,ee))return M++,I.splice(0,M),!1}return I.splice(0,M),!0}function Ag(f,b,F,I){if(I.status===pg)return!0;var M=I.id;if(M===-1){var ee=I.id=F.rootSegmentID;if(ee===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Hc(f,b,I)}else return Hc(f,b,I),ar(b,f.responseState,M)}function Hl(f,b){try{var F=f.completedRootSegment;F!==null&&f.pendingRootTasks===0&&(gs(f,b,F),f.completedRootSegment=null,$i(b,f.responseState));var I=f.clientRenderedBoundaries,M;for(M=0;M<I.length;M++){var ee=I[M];if(!D0(f,b,ee)){f.destination=null,M++,I.splice(0,M);return}}I.splice(0,M);var ue=f.completedBoundaries;for(M=0;M<ue.length;M++){var Ae=ue[M];if(!Wl(f,b,Ae)){f.destination=null,M++,ue.splice(0,M);return}}ue.splice(0,M);var Le=f.partialBoundaries;for(M=0;M<Le.length;M++){var nt=Le[M];if(!F0(f,b,nt)){f.destination=null,M++,Le.splice(0,M);return}}Le.splice(0,M);var st=f.completedBoundaries;for(M=0;M<st.length;M++){var vt=st[M];if(!Wl(f,b,vt)){f.destination=null,M++,st.splice(0,M);return}}st.splice(0,M)}finally{f.allPendingTasks===0&&f.pingedTasks.length===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0&&(f.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),g(b))}}function A0(f){i(function(){return Fg(f)})}function m(f,b){if(f.status===hg){f.status=qr,C(b,f.fatalError);return}if(f.status!==qr&&f.destination===null){f.destination=b;try{Hl(f,b)}catch(F){ss(f,F),Ml(f,F)}}}function x(f,b){try{var F=f.abortableTasks;F.forEach(function(I){return Dg(I,f,b)}),F.clear(),f.destination!==null&&Hl(f,f.destination)}catch(I){ss(f,I),Ml(f,I)}}function A(){}function B(f,b,F,I){var M=!1,ee=null,ue="",Ae={push:function(vt){return vt!==null&&(ue+=vt),!0},destroy:function(vt){M=!0,ee=vt}},Le=!1;function nt(){Le=!0}var st=Tc(f,Hv(F,b?b.identifierPrefix:void 0),nc(),1/0,A,void 0,nt,void 0,void 0);if(A0(st),x(st,I),m(st,Ae),M)throw ee;if(!Le)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return ue}function z(f,b){return B(f,b,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function re(f,b){return B(f,b,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function de(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function je(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Ai.renderToNodeStream=de,Ai.renderToStaticMarkup=re,Ai.renderToStaticNodeStream=je,Ai.renderToString=z,Ai.version=t}()),Ai}var hf={};/**
|
|
185
|
-
* @license React
|
|
186
|
-
* react-dom-server.browser.development.js
|
|
187
|
-
*
|
|
188
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the MIT license found in the
|
|
191
|
-
* LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/var KC;function bN(){return KC||(KC=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(m){{for(var x=arguments.length,A=new Array(x>1?x-1:0),B=1;B<x;B++)A[B-1]=arguments[B];a("warn",m,A)}}function o(m){{for(var x=arguments.length,A=new Array(x>1?x-1:0),B=1;B<x;B++)A[B-1]=arguments[B];a("error",m,A)}}function a(m,x,A){{var B=n.ReactDebugCurrentFrame,z=B.getStackAddendum();z!==""&&(x+="%s",A=A.concat([z]));var re=A.map(function(de){return String(de)});re.unshift("Warning: "+x),Function.prototype.apply.call(console[m],console,re)}}function i(m){m()}var s=512,u=null,c=0;function d(m){u=new Uint8Array(s),c=0}function g(m,x){if(x.length!==0){if(x.length>s){c>0&&(m.enqueue(new Uint8Array(u.buffer,0,c)),u=new Uint8Array(s),c=0),m.enqueue(x);return}var A=x,B=u.length-c;B<A.length&&(B===0?m.enqueue(u):(u.set(A.subarray(0,B),c),m.enqueue(u),A=A.subarray(B)),u=new Uint8Array(s),c=0),u.set(A,c),c+=A.length}}function v(m,x){return g(m,x),!0}function y(m){u&&c>0&&(m.enqueue(new Uint8Array(u.buffer,0,c)),u=null,c=0)}function C(m){m.close()}var h=new TextEncoder;function w(m){return h.encode(m)}function E(m){return h.encode(m)}function j(m,x){typeof m.error=="function"?m.error(x):m.close()}function P(m){{var x=typeof Symbol=="function"&&Symbol.toStringTag,A=x&&m[Symbol.toStringTag]||m.constructor.name||"Object";return A}}function N(m){try{return $(m),!1}catch{return!0}}function $(m){return""+m}function G(m,x){if(N(m))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",x,P(m)),$(m)}function V(m,x){if(N(m))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",x,P(m)),$(m)}function J(m){if(N(m))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",P(m)),$(m)}var K=Object.prototype.hasOwnProperty,me=0,ye=1,ne=2,fe=3,R=4,W=5,oe=6,pe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",se=pe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Z=new RegExp("^["+pe+"]["+se+"]*$"),te={},U={};function Q(m){return K.call(U,m)?!0:K.call(te,m)?!1:Z.test(m)?(U[m]=!0,!0):(te[m]=!0,o("Invalid attribute name: `%s`",m),!1)}function he(m,x,A,B){if(A!==null&&A.type===me)return!1;switch(typeof x){case"function":case"symbol":return!0;case"boolean":{if(B)return!1;if(A!==null)return!A.acceptsBooleans;var z=m.toLowerCase().slice(0,5);return z!=="data-"&&z!=="aria-"}default:return!1}}function H(m){return ae.hasOwnProperty(m)?ae[m]:null}function ge(m,x,A,B,z,re,de){this.acceptsBooleans=x===ne||x===fe||x===R,this.attributeName=B,this.attributeNamespace=z,this.mustUseProperty=A,this.propertyName=m,this.type=x,this.sanitizeURL=re,this.removeEmptyString=de}var ae={},be=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];be.forEach(function(m){ae[m]=new ge(m,me,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var x=m[0],A=m[1];ae[x]=new ge(x,ye,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){ae[m]=new ge(m,ne,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){ae[m]=new ge(m,ne,!1,m,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(m){ae[m]=new ge(m,fe,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){ae[m]=new ge(m,fe,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){ae[m]=new ge(m,R,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){ae[m]=new ge(m,oe,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){ae[m]=new ge(m,W,!1,m.toLowerCase(),null,!1,!1)});var Me=/[\-\:]([a-z])/g,Ne=function(m){return m[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(m){var x=m.replace(Me,Ne);ae[x]=new ge(x,ye,!1,m,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(m){var x=m.replace(Me,Ne);ae[x]=new ge(x,ye,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var x=m.replace(Me,Ne);ae[x]=new ge(x,ye,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){ae[m]=new ge(m,ye,!1,m.toLowerCase(),null,!1,!1)});var We="xlinkHref";ae[We]=new ge("xlinkHref",ye,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){ae[m]=new ge(m,ye,!1,m.toLowerCase(),null,!0,!0)});var Ke={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function $e(m,x){return m+x.charAt(0).toUpperCase()+x.substring(1)}var qe=["Webkit","ms","Moz","O"];Object.keys(Ke).forEach(function(m){qe.forEach(function(x){Ke[$e(x,m)]=Ke[m]})});var ot={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function ht(m,x){ot[x.type]||x.onChange||x.onInput||x.readOnly||x.disabled||x.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),x.onChange||x.readOnly||x.disabled||x.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function At(m,x){if(m.indexOf("-")===-1)return typeof x.is=="string";switch(m){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var le={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ee={},Ie=new RegExp("^(aria)-["+se+"]*$"),Ze=new RegExp("^(aria)[A-Z]["+se+"]*$");function He(m,x){{if(K.call(Ee,x)&&Ee[x])return!0;if(Ze.test(x)){var A="aria-"+x.slice(4).toLowerCase(),B=le.hasOwnProperty(A)?A:null;if(B==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",x),Ee[x]=!0,!0;if(x!==B)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",x,B),Ee[x]=!0,!0}if(Ie.test(x)){var z=x.toLowerCase(),re=le.hasOwnProperty(z)?z:null;if(re==null)return Ee[x]=!0,!1;if(x!==re)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",x,re),Ee[x]=!0,!0}}return!0}function ke(m,x){{var A=[];for(var B in x){var z=He(m,B);z||A.push(B)}var re=A.map(function(de){return"`"+de+"`"}).join(", ");A.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",re,m):A.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",re,m)}}function Fe(m,x){At(m,x)||ke(m,x)}var Ge=!1;function tt(m,x){{if(m!=="input"&&m!=="textarea"&&m!=="select")return;x!=null&&x.value===null&&!Ge&&(Ge=!0,m==="select"&&x.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",m):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",m))}}var xt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},$t=function(){};{var mt={},Wt=/^on./,mn=/^on[^A-Z]/,Kt=new RegExp("^(aria)-["+se+"]*$"),En=new RegExp("^(aria)[A-Z]["+se+"]*$");$t=function(m,x,A,B){if(K.call(mt,x)&&mt[x])return!0;var z=x.toLowerCase();if(z==="onfocusin"||z==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),mt[x]=!0,!0;if(B!=null){var re=B.registrationNameDependencies,de=B.possibleRegistrationNames;if(re.hasOwnProperty(x))return!0;var je=de.hasOwnProperty(z)?de[z]:null;if(je!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",x,je),mt[x]=!0,!0;if(Wt.test(x))return o("Unknown event handler property `%s`. It will be ignored.",x),mt[x]=!0,!0}else if(Wt.test(x))return mn.test(x)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",x),mt[x]=!0,!0;if(Kt.test(x)||En.test(x))return!0;if(z==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),mt[x]=!0,!0;if(z==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),mt[x]=!0,!0;if(z==="is"&&A!==null&&A!==void 0&&typeof A!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof A),mt[x]=!0,!0;if(typeof A=="number"&&isNaN(A))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",x),mt[x]=!0,!0;var f=H(x),b=f!==null&&f.type===me;if(xt.hasOwnProperty(z)){var F=xt[z];if(F!==x)return o("Invalid DOM property `%s`. Did you mean `%s`?",x,F),mt[x]=!0,!0}else if(!b&&x!==z)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",x,z),mt[x]=!0,!0;return typeof A=="boolean"&&he(x,A,f,!1)?(A?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',A,x,x,A,x):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',A,x,x,A,x,x,x),mt[x]=!0,!0):b?!0:he(x,A,f,!1)?(mt[x]=!0,!1):((A==="false"||A==="true")&&f!==null&&f.type===fe&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",A,x,A==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',x,A),mt[x]=!0),!0)}}var vn=function(m,x,A){{var B=[];for(var z in x){var re=$t(m,z,x[z],A);re||B.push(z)}var de=B.map(function(je){return"`"+je+"`"}).join(", ");B.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",de,m):B.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",de,m)}};function $n(m,x,A){At(m,x)||vn(m,x,A)}var Rn=function(){};{var Cn=/^(?:webkit|moz|o)[A-Z]/,Mn=/^-ms-/,pr=/-(.)/g,fn=/;\s*$/,Sn={},Dn={},Tt=!1,Xn=!1,Or=function(m){return m.replace(pr,function(x,A){return A.toUpperCase()})},$r=function(m){Sn.hasOwnProperty(m)&&Sn[m]||(Sn[m]=!0,o("Unsupported style property %s. Did you mean %s?",m,Or(m.replace(Mn,"ms-"))))},Ln=function(m){Sn.hasOwnProperty(m)&&Sn[m]||(Sn[m]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",m,m.charAt(0).toUpperCase()+m.slice(1)))},Gr=function(m,x){Dn.hasOwnProperty(x)&&Dn[x]||(Dn[x]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,m,x.replace(fn,"")))},Yn=function(m,x){Tt||(Tt=!0,o("`NaN` is an invalid value for the `%s` css style property.",m))},Yt=function(m,x){Xn||(Xn=!0,o("`Infinity` is an invalid value for the `%s` css style property.",m))};Rn=function(m,x){m.indexOf("-")>-1?$r(m):Cn.test(m)?Ln(m):fn.test(x)&&Gr(m,x),typeof x=="number"&&(isNaN(x)?Yn(m,x):isFinite(x)||Yt(m,x))}}var fo=Rn,go=/["'&<>]/;function po(m){J(m);var x=""+m,A=go.exec(x);if(!A)return x;var B,z="",re,de=0;for(re=A.index;re<x.length;re++){switch(x.charCodeAt(re)){case 34:B=""";break;case 38:B="&";break;case 39:B="'";break;case 60:B="<";break;case 62:B=">";break;default:continue}de!==re&&(z+=x.substring(de,re)),de=re+1,z+=B}return de!==re?z+x.substring(de,re):z}function nn(m){return typeof m=="boolean"||typeof m=="number"?""+m:po(m)}var ho=/([A-Z])/g,ra=/^ms-/;function oa(m){return m.replace(ho,"-$1").toLowerCase().replace(ra,"-ms-")}var ie=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Ve=!1;function Je(m){!Ve&&ie.test(m)&&(Ve=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(m)))}var ct=Array.isArray;function St(m){return ct(m)}var jt=E("<script>"),Ft=E("<\/script>"),yt=E('<script src="'),rn=E('<script type="module" src="'),Rt=E('" async=""><\/script>');function Mt(m){return J(m),(""+m).replace(Qt,kn)}var Qt=/(<\/|<)(s)(cript)/gi,kn=function(m,x,A,B){return""+x+(A==="s"?"\\u0073":"\\u0053")+B};function hr(m,x,A,B,z){var re=m===void 0?"":m,de=x===void 0?jt:E('<script nonce="'+nn(x)+'">'),je=[];if(A!==void 0&&je.push(de,w(Mt(A)),Ft),B!==void 0)for(var f=0;f<B.length;f++)je.push(yt,w(nn(B[f])),Rt);if(z!==void 0)for(var b=0;b<z.length;b++)je.push(rn,w(nn(z[b])),Rt);return{bootstrapChunks:je,startInlineScript:de,placeholderPrefix:E(re+"P:"),segmentPrefix:E(re+"S:"),boundaryPrefix:re+"B:",idPrefix:re,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var on=0,an=1,mr=2,tr=3,xn=4,No=5,vr=6,br=7;function Pn(m,x){return{insertionMode:m,selectedValue:x}}function Rr(m){var x=m==="http://www.w3.org/2000/svg"?mr:m==="http://www.w3.org/1998/Math/MathML"?tr:on;return Pn(x,null)}function zr(m,x,A){switch(x){case"select":return Pn(an,A.value!=null?A.value:A.defaultValue);case"svg":return Pn(mr,null);case"math":return Pn(tr,null);case"foreignObject":return Pn(an,null);case"table":return Pn(xn,null);case"thead":case"tbody":case"tfoot":return Pn(No,null);case"colgroup":return Pn(br,null);case"tr":return Pn(vr,null)}return m.insertionMode>=xn||m.insertionMode===on?Pn(an,null):m}var aa=null;function ia(m){var x=m.nextSuspenseID++;return E(m.boundaryPrefix+x.toString(16))}function Oo(m,x,A){var B=m.idPrefix,z=":"+B+"R"+x;return A>0&&(z+="H"+A.toString(32)),z+":"}function Ur(m){return nn(m)}var sa=E("<!-- -->");function $o(m,x,A,B){return x===""?B:(B&&m.push(sa),m.push(w(Ur(x))),!0)}function Ro(m,x,A,B){A&&B&&m.push(sa)}var S=new Map;function T(m){var x=S.get(m);if(x!==void 0)return x;var A=E(nn(oa(m)));return S.set(m,A),A}var _=E(' style="'),X=E(":"),Se=E(";");function ve(m,x,A){if(typeof A!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var B=!0;for(var z in A)if(K.call(A,z)){var re=A[z];if(!(re==null||typeof re=="boolean"||re==="")){var de=void 0,je=void 0,f=z.indexOf("--")===0;f?(de=w(nn(z)),V(re,z),je=w(nn((""+re).trim()))):(fo(z,re),de=T(z),typeof re=="number"?re!==0&&!K.call(Ke,z)?je=w(re+"px"):je=w(""+re):(V(re,z),je=w(nn((""+re).trim())))),B?(B=!1,m.push(_,de,X,je)):m.push(Se,de,X,je)}}B||m.push(it)}var Pe=E(" "),Ue=E('="'),it=E('"'),ft=E('=""');function ut(m,x,A,B){switch(A){case"style":{ve(m,x,B);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(A.length>2&&(A[0]==="o"||A[0]==="O")&&(A[1]==="n"||A[1]==="N"))){var z=H(A);if(z!==null){switch(typeof B){case"function":case"symbol":return;case"boolean":if(!z.acceptsBooleans)return}var re=z.attributeName,de=w(re);switch(z.type){case fe:B&&m.push(Pe,de,ft);return;case R:B===!0?m.push(Pe,de,ft):B===!1||m.push(Pe,de,Ue,w(nn(B)),it);return;case W:isNaN(B)||m.push(Pe,de,Ue,w(nn(B)),it);break;case oe:!isNaN(B)&&B>=1&&m.push(Pe,de,Ue,w(nn(B)),it);break;default:z.sanitizeURL&&(G(B,re),B=""+B,Je(B)),m.push(Pe,de,Ue,w(nn(B)),it)}}else if(Q(A)){switch(typeof B){case"function":case"symbol":return;case"boolean":{var je=A.toLowerCase().slice(0,5);if(je!=="data-"&&je!=="aria-")return}}m.push(Pe,w(A),Ue,w(nn(B)),it)}}}var Bt=E(">"),_n=E("/>");function Fn(m,x,A){if(x!=null){if(A!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof x!="object"||!("__html"in x))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var B=x.__html;B!=null&&(J(B),m.push(w(""+B)))}}var An=!1,Mr=!1,nr=!1,Mo=!1,Zr=!1,mo=!1,Lr=!1;function la(m,x){{var A=m[x];if(A!=null){var B=St(A);m.multiple&&!B?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",x):!m.multiple&&B&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",x)}}}function Zu(m,x,A){ht("select",x),la(x,"value"),la(x,"defaultValue"),x.value!==void 0&&x.defaultValue!==void 0&&!nr&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),nr=!0),m.push(rr("select"));var B=null,z=null;for(var re in x)if(K.call(x,re)){var de=x[re];if(de==null)continue;switch(re){case"children":B=de;break;case"dangerouslySetInnerHTML":z=de;break;case"defaultValue":case"value":break;default:ut(m,A,re,de);break}}return m.push(Bt),Fn(m,z,B),B}function Xu(m){var x="";return e.Children.forEach(m,function(A){A!=null&&(x+=A,!Zr&&typeof A!="string"&&typeof A!="number"&&(Zr=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),x}var Ni=E(' selected=""');function Yu(m,x,A,B){var z=B.selectedValue;m.push(rr("option"));var re=null,de=null,je=null,f=null;for(var b in x)if(K.call(x,b)){var F=x[b];if(F==null)continue;switch(b){case"children":re=F;break;case"selected":je=F,Lr||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Lr=!0);break;case"dangerouslySetInnerHTML":f=F;break;case"value":de=F;default:ut(m,A,b,F);break}}if(z!=null){var I;if(de!==null?(G(de,"value"),I=""+de):(f!==null&&(mo||(mo=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),I=Xu(re)),St(z))for(var M=0;M<z.length;M++){G(z[M],"value");var ee=""+z[M];if(ee===I){m.push(Ni);break}}else G(z,"select.value"),""+z===I&&m.push(Ni)}else je&&m.push(Ni);return m.push(Bt),Fn(m,f,re),re}function Oi(m,x,A){ht("input",x),x.checked!==void 0&&x.defaultChecked!==void 0&&!Mr&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",x.type),Mr=!0),x.value!==void 0&&x.defaultValue!==void 0&&!An&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",x.type),An=!0),m.push(rr("input"));var B=null,z=null,re=null,de=null;for(var je in x)if(K.call(x,je)){var f=x[je];if(f==null)continue;switch(je){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":de=f;break;case"defaultValue":z=f;break;case"checked":re=f;break;case"value":B=f;break;default:ut(m,A,je,f);break}}return re!==null?ut(m,A,"checked",re):de!==null&&ut(m,A,"checked",de),B!==null?ut(m,A,"value",B):z!==null&&ut(m,A,"value",z),m.push(_n),null}function _r(m,x,A){ht("textarea",x),x.value!==void 0&&x.defaultValue!==void 0&&!Mo&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Mo=!0),m.push(rr("textarea"));var B=null,z=null,re=null;for(var de in x)if(K.call(x,de)){var je=x[de];if(je==null)continue;switch(de){case"children":re=je;break;case"value":B=je;break;case"defaultValue":z=je;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ut(m,A,de,je);break}}if(B===null&&z!==null&&(B=z),m.push(Bt),re!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),B!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(St(re)){if(re.length>1)throw new Error("<textarea> can only have at most one child.");J(re[0]),B=""+re[0]}J(re),B=""+re}return typeof B=="string"&&B[0]===`
|
|
193
|
-
`&&m.push(vo),B!==null&&(G(B,"value"),m.push(w(Ur(""+B)))),null}function ua(m,x,A,B){m.push(rr(A));for(var z in x)if(K.call(x,z)){var re=x[z];if(re==null)continue;switch(z){case"children":case"dangerouslySetInnerHTML":throw new Error(A+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ut(m,B,z,re);break}}return m.push(_n),null}function Wa(m,x,A){m.push(rr("menuitem"));for(var B in x)if(K.call(x,B)){var z=x[B];if(z==null)continue;switch(B){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ut(m,A,B,z);break}}return m.push(Bt),null}function Zt(m,x,A){m.push(rr("title"));var B=null;for(var z in x)if(K.call(x,z)){var re=x[z];if(re==null)continue;switch(z){case"children":B=re;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ut(m,A,z,re);break}}m.push(Bt);{var de=Array.isArray(B)&&B.length<2?B[0]||null:B;Array.isArray(B)&&B.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):de!=null&&de.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):de!=null&&typeof de!="string"&&typeof de!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return B}function Xr(m,x,A,B){m.push(rr(A));var z=null,re=null;for(var de in x)if(K.call(x,de)){var je=x[de];if(je==null)continue;switch(de){case"children":z=je;break;case"dangerouslySetInnerHTML":re=je;break;default:ut(m,B,de,je);break}}return m.push(Bt),Fn(m,re,z),typeof z=="string"?(m.push(w(Ur(z))),null):z}function Vn(m,x,A,B){m.push(rr(A));var z=null,re=null;for(var de in x)if(K.call(x,de)){var je=x[de];if(je==null)continue;switch(de){case"children":z=je;break;case"dangerouslySetInnerHTML":re=je;break;case"style":ve(m,B,je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Q(de)&&typeof je!="function"&&typeof je!="symbol"&&m.push(Pe,w(de),Ue,w(nn(je)),it);break}}return m.push(Bt),Fn(m,re,z),z}var vo=E(`
|
|
194
|
-
`);function Yr(m,x,A,B){m.push(rr(A));var z=null,re=null;for(var de in x)if(K.call(x,de)){var je=x[de];if(je==null)continue;switch(de){case"children":z=je;break;case"dangerouslySetInnerHTML":re=je;break;default:ut(m,B,de,je);break}}if(m.push(Bt),re!=null){if(z!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof re!="object"||!("__html"in re))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var f=re.__html;f!=null&&(typeof f=="string"&&f.length>0&&f[0]===`
|
|
195
|
-
`?m.push(vo,w(f)):(J(f),m.push(w(""+f))))}return typeof z=="string"&&z[0]===`
|
|
196
|
-
`&&m.push(vo),z}var Ha=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Jr=new Map;function rr(m){var x=Jr.get(m);if(x===void 0){if(!Ha.test(m))throw new Error("Invalid tag: "+m);x=E("<"+m),Jr.set(m,x)}return x}var $i=E("<!DOCTYPE html>");function Ri(m,x,A,B,z){switch(Fe(x,A),tt(x,A),$n(x,A,null),!A.suppressContentEditableWarning&&A.contentEditable&&A.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),z.insertionMode!==mr&&z.insertionMode!==tr&&x.indexOf("-")===-1&&typeof A.is!="string"&&x.toLowerCase()!==x&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",x),x){case"select":return Zu(m,A,B);case"option":return Yu(m,A,B,z);case"textarea":return _r(m,A,B);case"input":return Oi(m,A,B);case"menuitem":return Wa(m,A,B);case"title":return Zt(m,A,B);case"listing":case"pre":return Yr(m,A,x,B);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ua(m,A,x,B);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Xr(m,A,x,B);case"html":return z.insertionMode===on&&m.push($i),Xr(m,A,x,B);default:return x.indexOf("-")===-1&&typeof A.is!="string"?Xr(m,A,x,B):Vn(m,A,x,B)}}var Xs=E("</"),Ys=E(">");function Js(m,x,A){switch(x){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:m.push(Xs,w(x),Ys)}}function Ju(m,x){for(var A=x.bootstrapChunks,B=0;B<A.length-1;B++)g(m,A[B]);return B<A.length?v(m,A[B]):!0}var Ku=E('<template id="'),Ga=E('"></template>');function za(m,x,A){g(m,Ku),g(m,x.placeholderPrefix);var B=w(A.toString(16));return g(m,B),v(m,Ga)}var Ua=E("<!--$-->"),ca=E('<!--$?--><template id="'),Qu=E('"></template>'),da=E("<!--$!-->"),Mi=E("<!--/$-->"),Li=E("<template"),Lo=E('"'),_o=E(' data-dgst="'),Za=E(' data-msg="'),Ks=E(' data-stck="'),_i=E("></template>");function Qs(m,x){return v(m,Ua)}function Xa(m,x,A){if(g(m,ca),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(m,A),v(m,Qu)}function Wn(m,x,A,B,z){var re;return re=v(m,da),g(m,Li),A&&(g(m,_o),g(m,w(nn(A))),g(m,Lo)),B&&(g(m,Za),g(m,w(nn(B))),g(m,Lo)),z&&(g(m,Ks),g(m,w(nn(z))),g(m,Lo)),re=v(m,_i),re}function qs(m,x){return v(m,Mi)}function Ya(m,x){return v(m,Mi)}function qu(m,x){return v(m,Mi)}var el=E('<div hidden id="'),Ja=E('">'),tl=E("</div>"),nl=E('<svg aria-hidden="true" style="display:none" id="'),Ka=E('">'),Qa=E("</svg>"),rl=E('<math aria-hidden="true" style="display:none" id="'),ol=E('">'),al=E("</math>"),Vi=E('<table hidden id="'),il=E('">'),D=E("</table>"),k=E('<table hidden><tbody id="'),L=E('">'),Y=E("</tbody></table>"),De=E('<table hidden><tr id="'),we=E('">'),Oe=E("</tr></table>"),Xe=E('<table hidden><colgroup id="'),gt=E('">'),Dt=E("</colgroup></table>");function wt(m,x,A,B){switch(A.insertionMode){case on:case an:return g(m,el),g(m,x.segmentPrefix),g(m,w(B.toString(16))),v(m,Ja);case mr:return g(m,nl),g(m,x.segmentPrefix),g(m,w(B.toString(16))),v(m,Ka);case tr:return g(m,rl),g(m,x.segmentPrefix),g(m,w(B.toString(16))),v(m,ol);case xn:return g(m,Vi),g(m,x.segmentPrefix),g(m,w(B.toString(16))),v(m,il);case No:return g(m,k),g(m,x.segmentPrefix),g(m,w(B.toString(16))),v(m,L);case vr:return g(m,De),g(m,x.segmentPrefix),g(m,w(B.toString(16))),v(m,we);case br:return g(m,Xe),g(m,x.segmentPrefix),g(m,w(B.toString(16))),v(m,gt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Xt(m,x){switch(x.insertionMode){case on:case an:return v(m,tl);case mr:return v(m,Qa);case tr:return v(m,al);case xn:return v(m,D);case No:return v(m,Y);case vr:return v(m,Oe);case br:return v(m,Dt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Hn="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",or='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',ar='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',qa=E(Hn+';$RS("'),sl=E('$RS("'),Wi=E('","'),Ov=E('")<\/script>');function $v(m,x,A){g(m,x.startInlineScript),x.sentCompleteSegmentFunction?g(m,sl):(x.sentCompleteSegmentFunction=!0,g(m,qa)),g(m,x.segmentPrefix);var B=w(A.toString(16));return g(m,B),g(m,Wi),g(m,x.placeholderPrefix),g(m,B),v(m,Ov)}var Rv=E(or+';$RC("'),Mv=E('$RC("'),Lv=E('","'),_v=E('")<\/script>');function ec(m,x,A,B){if(g(m,x.startInlineScript),x.sentCompleteBoundaryFunction?g(m,Mv):(x.sentCompleteBoundaryFunction=!0,g(m,Rv)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var z=w(B.toString(16));return g(m,A),g(m,Lv),g(m,x.segmentPrefix),g(m,z),v(m,_v)}var Vv=E(ar+';$RX("'),Wv=E('$RX("'),tc=E('"'),Hv=E(")<\/script>"),nc=E(",");function Hf(m,x,A,B,z,re){if(g(m,x.startInlineScript),x.sentClientRenderFunction?g(m,Wv):(x.sentClientRenderFunction=!0,g(m,Vv)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(m,A),g(m,tc),(B||z||re)&&(g(m,nc),g(m,w(rc(B||"")))),(z||re)&&(g(m,nc),g(m,w(rc(z||"")))),re&&(g(m,nc),g(m,w(rc(re)))),v(m,Hv)}var Gf=/[<\u2028\u2029]/g;function rc(m){var x=JSON.stringify(m);return x.replace(Gf,function(A){switch(A){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var xr=Object.assign,Gv=Symbol.for("react.element"),zf=Symbol.for("react.portal"),ir=Symbol.for("react.fragment"),Uf=Symbol.for("react.strict_mode"),oc=Symbol.for("react.profiler"),ll=Symbol.for("react.provider"),ul=Symbol.for("react.context"),cl=Symbol.for("react.forward_ref"),Hi=Symbol.for("react.suspense"),Gi=Symbol.for("react.suspense_list"),zi=Symbol.for("react.memo"),ei=Symbol.for("react.lazy"),ac=Symbol.for("react.scope"),ic=Symbol.for("react.debug_trace_mode"),dl=Symbol.for("react.legacy_hidden"),zv=Symbol.for("react.default_value"),Zf=Symbol.iterator,Uv="@@iterator";function Zv(m){if(m===null||typeof m!="object")return null;var x=Zf&&m[Zf]||m[Uv];return typeof x=="function"?x:null}function Xf(m,x,A){var B=m.displayName;if(B)return B;var z=x.displayName||x.name||"";return z!==""?A+"("+z+")":A}function Yf(m){return m.displayName||"Context"}function un(m){if(m==null)return null;if(typeof m.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case ir:return"Fragment";case zf:return"Portal";case oc:return"Profiler";case Uf:return"StrictMode";case Hi:return"Suspense";case Gi:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case ul:var x=m;return Yf(x)+".Consumer";case ll:var A=m;return Yf(A._context)+".Provider";case cl:return Xf(m,m.render,"ForwardRef");case zi:var B=m.displayName||null;return B!==null?B:un(m.type)||"Memo";case ei:{var z=m,re=z._payload,de=z._init;try{return un(de(re))}catch{return null}}}return null}var Ui=0,sc,sn,ti,lc,uc,cc,dc;function fc(){}fc.__reactDisabledLog=!0;function Jf(){{if(Ui===0){sc=console.log,sn=console.info,ti=console.warn,lc=console.error,uc=console.group,cc=console.groupCollapsed,dc=console.groupEnd;var m={configurable:!0,enumerable:!0,value:fc,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Ui++}}function Kf(){{if(Ui--,Ui===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xr({},m,{value:sc}),info:xr({},m,{value:sn}),warn:xr({},m,{value:ti}),error:xr({},m,{value:lc}),group:xr({},m,{value:uc}),groupCollapsed:xr({},m,{value:cc}),groupEnd:xr({},m,{value:dc})})}Ui<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fl=n.ReactCurrentDispatcher,gc;function Zi(m,x,A){{if(gc===void 0)try{throw Error()}catch(z){var B=z.stack.trim().match(/\n( *(at )?)/);gc=B&&B[1]||""}return`
|
|
197
|
-
`+gc+m}}var Xi=!1,ni;{var Yi=typeof WeakMap=="function"?WeakMap:Map;ni=new Yi}function Ji(m,x){if(!m||Xi)return"";{var A=ni.get(m);if(A!==void 0)return A}var B;Xi=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=fl.current,fl.current=null,Jf();try{if(x){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(ue){B=ue}Reflect.construct(m,[],de)}else{try{de.call()}catch(ue){B=ue}m.call(de.prototype)}}else{try{throw Error()}catch(ue){B=ue}m()}}catch(ue){if(ue&&B&&typeof ue.stack=="string"){for(var je=ue.stack.split(`
|
|
198
|
-
`),f=B.stack.split(`
|
|
199
|
-
`),b=je.length-1,F=f.length-1;b>=1&&F>=0&&je[b]!==f[F];)F--;for(;b>=1&&F>=0;b--,F--)if(je[b]!==f[F]){if(b!==1||F!==1)do if(b--,F--,F<0||je[b]!==f[F]){var I=`
|
|
200
|
-
`+je[b].replace(" at new "," at ");return m.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",m.displayName)),typeof m=="function"&&ni.set(m,I),I}while(b>=1&&F>=0);break}}}finally{Xi=!1,fl.current=re,Kf(),Error.prepareStackTrace=z}var M=m?m.displayName||m.name:"",ee=M?Zi(M):"";return typeof m=="function"&&ni.set(m,ee),ee}function gl(m,x,A){return Ji(m,!0)}function Qf(m,x,A){return Ji(m,!1)}function pc(m){var x=m.prototype;return!!(x&&x.isReactComponent)}function hc(m,x,A){if(m==null)return"";if(typeof m=="function")return Ji(m,pc(m));if(typeof m=="string")return Zi(m);switch(m){case Hi:return Zi("Suspense");case Gi:return Zi("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case cl:return Qf(m.render);case zi:return hc(m.type,x,A);case ei:{var B=m,z=B._payload,re=B._init;try{return hc(re(z),x,A)}catch{}}}return""}var mc={},qf=n.ReactDebugCurrentFrame;function ri(m){if(m){var x=m._owner,A=hc(m.type,m._source,x?x.type:null);qf.setExtraStackFrame(A)}else qf.setExtraStackFrame(null)}function vc(m,x,A,B,z){{var re=Function.call.bind(K);for(var de in m)if(re(m,de)){var je=void 0;try{if(typeof m[de]!="function"){var f=Error((B||"React class")+": "+A+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}je=m[de](x,de,B,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){je=b}je&&!(je instanceof Error)&&(ri(z),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",B||"React class",A,de,typeof je),ri(null)),je instanceof Error&&!(je.message in mc)&&(mc[je.message]=!0,ri(z),o("Failed %s type: %s",A,je.message),ri(null))}}}var pl;pl={};var fa={};Object.freeze(fa);function bc(m,x){{var A=m.contextTypes;if(!A)return fa;var B={};for(var z in A)B[z]=x[z];{var re=un(m)||"Unknown";vc(A,B,"context",re)}return B}}function xc(m,x,A,B){{if(typeof m.getChildContext!="function"){{var z=un(x)||"Unknown";pl[z]||(pl[z]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",z,z))}return A}var re=m.getChildContext();for(var de in re)if(!(de in B))throw new Error((un(x)||"Unknown")+'.getChildContext(): key "'+de+'" is not defined in childContextTypes.');{var je=un(x)||"Unknown";vc(B,re,"child context",je)}return xr({},A,re)}}var Vo;Vo={};var eg=null,ga=null;function pa(m){m.context._currentValue=m.parentValue}function yc(m){m.context._currentValue=m.value}function Kr(m,x){if(m!==x){pa(m);var A=m.parent,B=x.parent;if(A===null){if(B!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(B===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Kr(A,B)}yc(x)}}function hl(m){pa(m);var x=m.parent;x!==null&&hl(x)}function ml(m){var x=m.parent;x!==null&&ml(x),yc(m)}function Ki(m,x){pa(m);var A=m.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");A.depth===x.depth?Kr(A,x):Ki(A,x)}function Cc(m,x){var A=x.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");m.depth===A.depth?Kr(m,A):Cc(m,A),yc(x)}function Qi(m){var x=ga,A=m;x!==A&&(x===null?ml(A):A===null?hl(x):x.depth===A.depth?Kr(x,A):x.depth>A.depth?Ki(x,A):Cc(x,A),ga=A)}function tg(m,x){var A;A=m._currentValue,m._currentValue=x,m._currentRenderer!==void 0&&m._currentRenderer!==null&&m._currentRenderer!==Vo&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),m._currentRenderer=Vo;var B=ga,z={parent:B,depth:B===null?0:B.depth+1,context:m,parentValue:A,value:x};return ga=z,z}function ng(m){var x=ga;if(x===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");x.context!==m&&o("The parent context is not the expected context. This is probably a bug in React.");{var A=x.parentValue;A===zv?x.context._currentValue=x.context._defaultValue:x.context._currentValue=A,m._currentRenderer!==void 0&&m._currentRenderer!==null&&m._currentRenderer!==Vo&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),m._currentRenderer=Vo}return ga=x.parent}function vl(){return ga}function qi(m){var x=m._currentValue;return x}function wc(m){return m._reactInternals}function Xv(m,x){m._reactInternals=x}var oi={},bl={},Ec,xl,yl,es,Cl,ai,ts,wl,ii;{Ec=new Set,xl=new Set,yl=new Set,ts=new Set,es=new Set,wl=new Set,ii=new Set;var El=new Set;ai=function(m,x){if(!(m===null||typeof m=="function")){var A=x+"_"+m;El.has(A)||(El.add(A),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",x,m))}},Cl=function(m,x){if(x===void 0){var A=un(m)||"Component";es.has(A)||(es.add(A),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",A))}}}function Sl(m,x){{var A=m.constructor,B=A&&un(A)||"ReactClass",z=B+"."+x;if(oi[z])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
201
|
-
|
|
202
|
-
Please check the code for the %s component.`,x,x,B),oi[z]=!0}}var Dl={isMounted:function(m){return!1},enqueueSetState:function(m,x,A){var B=wc(m);B.queue===null?Sl(m,"setState"):(B.queue.push(x),A!=null&&ai(A,"setState"))},enqueueReplaceState:function(m,x,A){var B=wc(m);B.replace=!0,B.queue=[x],A!=null&&ai(A,"setState")},enqueueForceUpdate:function(m,x){var A=wc(m);A.queue===null?Sl(m,"forceUpdate"):x!=null&&ai(x,"setState")}};function rg(m,x,A,B,z){var re=A(z,B);Cl(x,re);var de=re==null?B:xr({},B,re);return de}function og(m,x,A){var B=fa,z=m.contextType;if("contextType"in m){var re=z===null||z!==void 0&&z.$$typeof===ul&&z._context===void 0;if(!re&&!ii.has(m)){ii.add(m);var de="";z===void 0?de=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof z!="object"?de=" However, it is set to a "+typeof z+".":z.$$typeof===ll?de=" Did you accidentally pass the Context.Provider instead?":z._context!==void 0?de=" Did you accidentally pass the Context.Consumer instead?":de=" However, it is set to an object with keys {"+Object.keys(z).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",un(m)||"Component",de)}}typeof z=="object"&&z!==null?B=qi(z):B=A;var je=new m(x,B);{if(typeof m.getDerivedStateFromProps=="function"&&(je.state===null||je.state===void 0)){var f=un(m)||"Component";Ec.has(f)||(Ec.add(f),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,je.state===null?"null":"undefined",f))}if(typeof m.getDerivedStateFromProps=="function"||typeof je.getSnapshotBeforeUpdate=="function"){var b=null,F=null,I=null;if(typeof je.componentWillMount=="function"&&je.componentWillMount.__suppressDeprecationWarning!==!0?b="componentWillMount":typeof je.UNSAFE_componentWillMount=="function"&&(b="UNSAFE_componentWillMount"),typeof je.componentWillReceiveProps=="function"&&je.componentWillReceiveProps.__suppressDeprecationWarning!==!0?F="componentWillReceiveProps":typeof je.UNSAFE_componentWillReceiveProps=="function"&&(F="UNSAFE_componentWillReceiveProps"),typeof je.componentWillUpdate=="function"&&je.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof je.UNSAFE_componentWillUpdate=="function"&&(I="UNSAFE_componentWillUpdate"),b!==null||F!==null||I!==null){var M=un(m)||"Component",ee=typeof m.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";yl.has(M)||(yl.add(M),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
203
|
-
|
|
204
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
205
|
-
|
|
206
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
207
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,M,ee,b!==null?`
|
|
208
|
-
`+b:"",F!==null?`
|
|
209
|
-
`+F:"",I!==null?`
|
|
210
|
-
`+I:""))}}}return je}function ag(m,x,A){{var B=un(x)||"Component",z=m.render;z||(x.prototype&&typeof x.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",B):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",B)),m.getInitialState&&!m.getInitialState.isReactClassApproved&&!m.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",B),m.getDefaultProps&&!m.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",B),m.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",B),m.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",B),m.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",B),x.contextType&&x.contextTypes&&!wl.has(x)&&(wl.add(x),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",B)),typeof m.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",B),x.prototype&&x.prototype.isPureReactComponent&&typeof m.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",un(x)||"A pure component"),typeof m.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",B),typeof m.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",B),typeof m.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",B),typeof m.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",B);var re=m.props!==A;m.props!==void 0&&re&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",B,B),m.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",B,B),typeof m.getSnapshotBeforeUpdate=="function"&&typeof m.componentDidUpdate!="function"&&!xl.has(x)&&(xl.add(x),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",un(x))),typeof m.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof m.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof x.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",B);var de=m.state;de&&(typeof de!="object"||St(de))&&o("%s.state: must be set to an object or null",B),typeof m.getChildContext=="function"&&typeof x.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",B)}}function Yv(m,x){var A=x.state;if(typeof x.componentWillMount=="function"){if(x.componentWillMount.__suppressDeprecationWarning!==!0){var B=un(m)||"Unknown";bl[B]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
211
|
-
|
|
212
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
213
|
-
|
|
214
|
-
Please update the following components: %s`,B),bl[B]=!0)}x.componentWillMount()}typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),A!==x.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",un(m)||"Component"),Dl.enqueueReplaceState(x,x.state,null))}function Jv(m,x,A,B){if(m.queue!==null&&m.queue.length>0){var z=m.queue,re=m.replace;if(m.queue=null,m.replace=!1,re&&z.length===1)x.state=z[0];else{for(var de=re?z[0]:x.state,je=!0,f=re?1:0;f<z.length;f++){var b=z[f],F=typeof b=="function"?b.call(x,de,A,B):b;F!=null&&(je?(je=!1,de=xr({},de,F)):xr(de,F))}x.state=de}}else m.queue=null}function ig(m,x,A,B){ag(m,x,A);var z=m.state!==void 0?m.state:null;m.updater=Dl,m.props=A,m.state=z;var re={queue:[],replace:!1};Xv(m,re);var de=x.contextType;if(typeof de=="object"&&de!==null?m.context=qi(de):m.context=B,m.state===A){var je=un(x)||"Component";ts.has(je)||(ts.add(je),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",je))}var f=x.getDerivedStateFromProps;typeof f=="function"&&(m.state=rg(m,x,f,z,A)),typeof x.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(Yv(x,m),Jv(re,m,A,B))}var Kv={id:1,overflow:""};function Qv(m){var x=m.overflow,A=m.id,B=A&~qv(A);return B.toString(32)+x}function Fl(m,x,A){var B=m.id,z=m.overflow,re=Al(B)-1,de=B&~(1<<re),je=A+1,f=Al(x)+re;if(f>30){var b=re-re%5,F=(1<<b)-1,I=(de&F).toString(32),M=de>>b,ee=re-b,ue=Al(x)+ee,Ae=je<<ee,Le=Ae|M,nt=I+z;return{id:1<<ue|Le,overflow:nt}}else{var st=je<<re,vt=st|de,qt=z;return{id:1<<f|vt,overflow:qt}}}function Al(m){return 32-Sc(m)}function qv(m){return 1<<Al(m)-1}var Sc=Math.clz32?Math.clz32:t0,jl=Math.log,e0=Math.LN2;function t0(m){var x=m>>>0;return x===0?32:31-(jl(x)/e0|0)|0}function n0(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}var r0=typeof Object.is=="function"?Object.is:n0,bo=null,Dc=null,Il=null,Nt=null,ha=!1,ma=!1,Ht=0,yr=null,va=0,Tl=25,jn=!1,xo;function ba(){if(bo===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
215
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
216
|
-
2. You might be breaking the Rules of Hooks
|
|
217
|
-
3. You might have more than one copy of React in the same app
|
|
218
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return jn&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),bo}function Qr(m,x){if(x===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",xo),!1;m.length!==x.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
219
|
-
|
|
220
|
-
Previous: %s
|
|
221
|
-
Incoming: %s`,xo,"["+m.join(", ")+"]","["+x.join(", ")+"]");for(var A=0;A<x.length&&A<m.length;A++)if(!r0(m[A],x[A]))return!1;return!0}function xa(){if(va>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function yo(){return Nt===null?Il===null?(ha=!1,Il=Nt=xa()):(ha=!0,Nt=Il):Nt.next===null?(ha=!1,Nt=Nt.next=xa()):(ha=!0,Nt=Nt.next),Nt}function o0(m,x){bo=x,Dc=m,jn=!1,Ht=0}function sg(m,x,A,B){for(;ma;)ma=!1,Ht=0,va+=1,Nt=null,A=m(x,B);return Fc(),A}function kl(){var m=Ht!==0;return m}function Fc(){jn=!1,bo=null,Dc=null,ma=!1,Il=null,va=0,yr=null,Nt=null}function a0(m){return jn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),qi(m)}function lg(m){return xo="useContext",ba(),qi(m)}function ns(m,x){return typeof x=="function"?x(m):x}function i0(m){return xo="useState",ug(ns,m)}function ug(m,x,A){if(m!==ns&&(xo="useReducer"),bo=ba(),Nt=yo(),ha){var B=Nt.queue,z=B.dispatch;if(yr!==null){var re=yr.get(B);if(re!==void 0){yr.delete(B);var de=Nt.memoizedState,je=re;do{var f=je.action;jn=!0,de=m(de,f),jn=!1,je=je.next}while(je!==null);return Nt.memoizedState=de,[de,z]}}return[Nt.memoizedState,z]}else{jn=!0;var b;m===ns?b=typeof x=="function"?x():x:b=A!==void 0?A(x):x,jn=!1,Nt.memoizedState=b;var F=Nt.queue={last:null,dispatch:null},I=F.dispatch=dg.bind(null,bo,F);return[Nt.memoizedState,I]}}function Pl(m,x){bo=ba(),Nt=yo();var A=x===void 0?null:x;if(Nt!==null){var B=Nt.memoizedState;if(B!==null&&A!==null){var z=B[1];if(Qr(A,z))return B[0]}}jn=!0;var re=m();return jn=!1,Nt.memoizedState=[re,A],re}function s0(m){bo=ba(),Nt=yo();var x=Nt.memoizedState;if(x===null){var A={current:m};return Object.seal(A),Nt.memoizedState=A,A}else return x}function cg(m,x){xo="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function dg(m,x,A){if(va>=Tl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(m===bo){ma=!0;var B={action:A,next:null};yr===null&&(yr=new Map);var z=yr.get(x);if(z===void 0)yr.set(x,B);else{for(var re=z;re.next!==null;)re=re.next;re.next=B}}}function l0(m,x){return Pl(function(){return m},x)}function u0(m,x,A){return ba(),x(m._source)}function c0(m,x,A){if(A===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return A()}function d0(m){return ba(),m}function f0(){throw new Error("startTransition cannot be called during server rendering.")}function g0(){return ba(),[!1,f0]}function p0(){var m=Dc,x=Qv(m.treeContext),A=Ac;if(A===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var B=Ht++;return Oo(A,x,B)}function Bl(){}var fg={readContext:a0,useContext:lg,useMemo:Pl,useReducer:ug,useRef:s0,useState:i0,useInsertionEffect:Bl,useLayoutEffect:cg,useCallback:l0,useImperativeHandle:Bl,useEffect:Bl,useDebugValue:Bl,useDeferredValue:d0,useTransition:g0,useId:p0,useMutableSource:u0,useSyncExternalStore:c0},Ac=null;function rs(m){Ac=m}function gg(m){try{var x="",A=m;do{switch(A.tag){case 0:x+=Zi(A.type,null,null);break;case 1:x+=Qf(A.type,null,null);break;case 2:x+=gl(A.type,null,null);break}A=A.parent}while(A);return x}catch(B){return`
|
|
222
|
-
Error generating stack: `+B.message+`
|
|
223
|
-
`+B.stack}}var os=n.ReactCurrentDispatcher,Nl=n.ReactDebugCurrentFrame,jc=0,Wo=1,Ol=2,$l=3,ya=4,pg=0,Ic=1,Ca=2,h0=12800;function hg(m){return console.error(m),null}function qr(){}function m0(m,x,A,B,z,re,de,je,f){var b=[],F=new Set,I={destination:null,responseState:x,progressiveChunkSize:B===void 0?h0:B,status:pg,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:F,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:z===void 0?hg:z,onAllReady:re===void 0?qr:re,onShellReady:de===void 0?qr:de,onShellError:je===void 0?qr:je,onFatalError:f===void 0?qr:f},M=Rl(I,0,null,A,!1,!1);M.parentFlushed=!0;var ee=Tc(I,m,null,M,F,fa,eg,Kv);return b.push(ee),I}function v0(m,x){var A=m.pingedTasks;A.push(x),A.length===1&&i(function(){return cs(m)})}function as(m,x){return{id:aa,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:x,errorDigest:null}}function Tc(m,x,A,B,z,re,de,je){m.allPendingTasks++,A===null?m.pendingRootTasks++:A.pendingTasks++;var f={node:x,ping:function(){return v0(m,f)},blockedBoundary:A,blockedSegment:B,abortSet:z,legacyContext:re,context:de,treeContext:je};return f.componentStack=null,z.add(f),f}function Rl(m,x,A,B,z,re){return{status:jc,id:-1,index:x,parentFlushed:!1,chunks:[],children:[],formatContext:B,boundary:A,lastPushedText:z,textEmbedded:re}}var Co=null;function is(){return Co===null||Co.componentStack===null?"":gg(Co.componentStack)}function Ho(m,x){m.componentStack={tag:0,parent:m.componentStack,type:x}}function eo(m,x){m.componentStack={tag:1,parent:m.componentStack,type:x}}function kc(m,x){m.componentStack={tag:2,parent:m.componentStack,type:x}}function Cr(m){m.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):m.componentStack=m.componentStack.parent}var si=null;function Pc(m,x){{var A;typeof x=="string"?A=x:x&&typeof x.message=="string"?A=x.message:A=String(x);var B=si||is();si=null,m.errorMessage=A,m.errorComponentStack=B}}function wr(m,x){var A=m.onError(x);if(A!=null&&typeof A!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof A+'" instead');return A}function Go(m,x){var A=m.onShellError;A(x);var B=m.onFatalError;B(x),m.destination!==null?(m.status=Ca,j(m.destination,x)):(m.status=Ic,m.fatalError=x)}function Bc(m,x,A){Ho(x,"Suspense");var B=x.blockedBoundary,z=x.blockedSegment,re=A.fallback,de=A.children,je=new Set,f=as(m,je),b=z.chunks.length,F=Rl(m,b,f,z.formatContext,!1,!1);z.children.push(F),z.lastPushedText=!1;var I=Rl(m,0,null,z.formatContext,!1,!1);I.parentFlushed=!0,x.blockedBoundary=f,x.blockedSegment=I;try{if(Wc(m,x,de),Ro(I.chunks,m.responseState,I.lastPushedText,I.textEmbedded),I.status=Wo,_l(f,I),f.pendingTasks===0){Cr(x);return}}catch(ee){I.status=ya,f.forceClientRender=!0,f.errorDigest=wr(m,ee),Pc(f,ee)}finally{x.blockedBoundary=B,x.blockedSegment=z}var M=Tc(m,re,B,F,je,x.legacyContext,x.context,x.treeContext);M.componentStack=x.componentStack,m.pingedTasks.push(M),Cr(x)}function ss(m,x,A,B){Ho(x,A);var z=x.blockedSegment,re=Ri(z.chunks,A,B,m.responseState,z.formatContext);z.lastPushedText=!1;var de=z.formatContext;z.formatContext=zr(de,A,B),Wc(m,x,re),z.formatContext=de,Js(z.chunks,A),z.lastPushedText=!1,Cr(x)}function Ml(m){return m.prototype&&m.prototype.isReactComponent}function mg(m,x,A,B,z){var re={};o0(x,re);var de=A(B,z);return sg(A,B,de,z)}function vg(m,x,A,B,z){var re=A.render();A.props!==z&&(us||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",un(B)||"a component"),us=!0);{var de=B.childContextTypes;if(de!=null){var je=x.legacyContext,f=xc(A,B,je,de);x.legacyContext=f,sr(m,x,re),x.legacyContext=je;return}}sr(m,x,re)}function b0(m,x,A,B){kc(x,A);var z=bc(A,x.legacyContext),re=og(A,B,z);ig(re,A,B,z),vg(m,x,re,A,B),Cr(x)}var Nc={},ls={},bg={},Oc={},us=!1,$c=!1,Rc=!1,Mc=!1;function xg(m,x,A,B){var z;if(z=bc(A,x.legacyContext),eo(x,A),A.prototype&&typeof A.prototype.render=="function"){var re=un(A)||"Unknown";Nc[re]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",re,re),Nc[re]=!0)}var de=mg(m,x,A,B,z),je=kl();if(typeof de=="object"&&de!==null&&typeof de.render=="function"&&de.$$typeof===void 0){var f=un(A)||"Unknown";ls[f]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",f,f,f),ls[f]=!0)}if(typeof de=="object"&&de!==null&&typeof de.render=="function"&&de.$$typeof===void 0){{var b=un(A)||"Unknown";ls[b]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",b,b,b),ls[b]=!0)}ig(de,A,B,z),vg(m,x,de,A,B)}else if(yg(A),je){var F=x.treeContext,I=1,M=0;x.treeContext=Fl(F,I,M);try{sr(m,x,de)}finally{x.treeContext=F}}else sr(m,x,de);Cr(x)}function yg(m){{if(m&&m.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",m.displayName||m.name||"Component"),typeof m.getDerivedStateFromProps=="function"){var x=un(m)||"Unknown";Oc[x]||(o("%s: Function components do not support getDerivedStateFromProps.",x),Oc[x]=!0)}if(typeof m.contextType=="object"&&m.contextType!==null){var A=un(m)||"Unknown";bg[A]||(o("%s: Function components do not support contextType.",A),bg[A]=!0)}}}function Lc(m,x){if(m&&m.defaultProps){var A=xr({},x),B=m.defaultProps;for(var z in B)A[z]===void 0&&(A[z]=B[z]);return A}return x}function x0(m,x,A,B,z){eo(x,A.render);var re=mg(m,x,A.render,B,z),de=kl();if(de){var je=x.treeContext,f=1,b=0;x.treeContext=Fl(je,f,b);try{sr(m,x,re)}finally{x.treeContext=je}}else sr(m,x,re);Cr(x)}function y0(m,x,A,B,z){var re=A.type,de=Lc(re,B);_c(m,x,re,de,z)}function Cg(m,x,A,B){A._context===void 0?A!==A.Consumer&&(Mc||(Mc=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):A=A._context;var z=B.children;typeof z!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var re=qi(A),de=z(re);sr(m,x,de)}function C0(m,x,A,B){var z=A._context,re=B.value,de=B.children,je;je=x.context,x.context=tg(z,re),sr(m,x,de),x.context=ng(z),je!==x.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function w0(m,x,A,B,z){Ho(x,"Lazy");var re=A._payload,de=A._init,je=de(re),f=Lc(je,B);_c(m,x,je,f,z),Cr(x)}function _c(m,x,A,B,z){if(typeof A=="function")if(Ml(A)){b0(m,x,A,B);return}else{xg(m,x,A,B);return}if(typeof A=="string"){ss(m,x,A,B);return}switch(A){case dl:case ic:case Uf:case oc:case ir:{sr(m,x,B.children);return}case Gi:{Ho(x,"SuspenseList"),sr(m,x,B.children),Cr(x);return}case ac:throw new Error("ReactDOMServer does not yet support scope components.");case Hi:{Bc(m,x,B);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case cl:{x0(m,x,A,B,z);return}case zi:{y0(m,x,A,B,z);return}case ll:{C0(m,x,A,B);return}case ul:{Cg(m,x,A,B);return}case ei:{w0(m,x,A,B);return}}var re="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(A==null?A:typeof A)+"."+re))}function E0(m,x){typeof Symbol=="function"&&m[Symbol.toStringTag]==="Generator"&&($c||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),$c=!0),m.entries===x&&(Rc||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rc=!0)}function sr(m,x,A){try{return Vc(m,x,A)}catch(B){throw typeof B=="object"&&B!==null&&typeof B.then=="function"||(si=si!==null?si:is()),B}}function Vc(m,x,A){if(x.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case Gv:{var B=A,z=B.type,re=B.props,de=B.ref;_c(m,x,z,re,de);return}case zf:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case ei:{var je=A,f=je._payload,b=je._init,F;try{F=b(f)}catch(st){throw typeof st=="object"&&st!==null&&typeof st.then=="function"&&Ho(x,"Lazy"),st}sr(m,x,F);return}}if(St(A)){wg(m,x,A);return}var I=Zv(A);if(I){E0(A,I);var M=I.call(A);if(M){var ee=M.next();if(!ee.done){var ue=[];do ue.push(ee.value),ee=M.next();while(!ee.done);wg(m,x,ue);return}return}}var Ae=Object.prototype.toString.call(A);throw new Error("Objects are not valid as a React child (found: "+(Ae==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Ae)+"). If you meant to render a collection of children, use an array instead.")}if(typeof A=="string"){var Le=x.blockedSegment;Le.lastPushedText=$o(x.blockedSegment.chunks,A,m.responseState,Le.lastPushedText);return}if(typeof A=="number"){var nt=x.blockedSegment;nt.lastPushedText=$o(x.blockedSegment.chunks,""+A,m.responseState,nt.lastPushedText);return}typeof A=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function wg(m,x,A){for(var B=A.length,z=0;z<B;z++){var re=x.treeContext;x.treeContext=Fl(re,B,z);try{Wc(m,x,A[z])}finally{x.treeContext=re}}}function lr(m,x,A){var B=x.blockedSegment,z=B.chunks.length,re=Rl(m,z,null,B.formatContext,B.lastPushedText,!0);B.children.push(re),B.lastPushedText=!1;var de=Tc(m,x.node,x.blockedBoundary,re,x.abortSet,x.legacyContext,x.context,x.treeContext);x.componentStack!==null&&(de.componentStack=x.componentStack.parent);var je=de.ping;A.then(je,je)}function Wc(m,x,A){var B=x.blockedSegment.formatContext,z=x.legacyContext,re=x.context,de=null;de=x.componentStack;try{return sr(m,x,A)}catch(je){if(Fc(),typeof je=="object"&&je!==null&&typeof je.then=="function"){lr(m,x,je),x.blockedSegment.formatContext=B,x.legacyContext=z,x.context=re,Qi(re),x.componentStack=de;return}else throw x.blockedSegment.formatContext=B,x.legacyContext=z,x.context=re,Qi(re),x.componentStack=de,je}}function Eg(m,x,A,B){var z=wr(m,B);if(x===null?Go(m,B):(x.pendingTasks--,x.forceClientRender||(x.forceClientRender=!0,x.errorDigest=z,Pc(x,B),x.parentFlushed&&m.clientRenderedBoundaries.push(x))),m.allPendingTasks--,m.allPendingTasks===0){var re=m.onAllReady;re()}}function S0(m){var x=this,A=m.blockedBoundary,B=m.blockedSegment;B.status=$l,Sg(x,A,B)}function Ll(m,x,A){var B=m.blockedBoundary,z=m.blockedSegment;if(z.status=$l,B===null)x.allPendingTasks--,x.status!==Ca&&(x.status=Ca,x.destination!==null&&C(x.destination));else{if(B.pendingTasks--,!B.forceClientRender){B.forceClientRender=!0;var re=A===void 0?new Error("The render was aborted by the server without a reason."):A;B.errorDigest=x.onError(re);{var de="The server did not finish this Suspense boundary: ";re&&typeof re.message=="string"?re=de+re.message:re=de+String(re);var je=Co;Co=m;try{Pc(B,re)}finally{Co=je}}B.parentFlushed&&x.clientRenderedBoundaries.push(B)}if(B.fallbackAbortableTasks.forEach(function(b){return Ll(b,x,A)}),B.fallbackAbortableTasks.clear(),x.allPendingTasks--,x.allPendingTasks===0){var f=x.onAllReady;f()}}}function _l(m,x){if(x.chunks.length===0&&x.children.length===1&&x.children[0].boundary===null){var A=x.children[0];A.id=x.id,A.parentFlushed=!0,A.status===Wo&&_l(m,A)}else{var B=m.completedSegments;B.push(x)}}function Sg(m,x,A){if(x===null){if(A.parentFlushed){if(m.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");m.completedRootSegment=A}if(m.pendingRootTasks--,m.pendingRootTasks===0){m.onShellError=qr;var B=m.onShellReady;B()}}else if(x.pendingTasks--,!x.forceClientRender){if(x.pendingTasks===0)A.parentFlushed&&A.status===Wo&&_l(x,A),x.parentFlushed&&m.completedBoundaries.push(x),x.fallbackAbortableTasks.forEach(S0,m),x.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Wo){_l(x,A);var z=x.completedSegments;z.length===1&&x.parentFlushed&&m.partialBoundaries.push(x)}}if(m.allPendingTasks--,m.allPendingTasks===0){var re=m.onAllReady;re()}}function Dg(m,x){var A=x.blockedSegment;if(A.status===jc){Qi(x.context);var B=null;B=Co,Co=x;try{sr(m,x,x.node),Ro(A.chunks,m.responseState,A.lastPushedText,A.textEmbedded),x.abortSet.delete(x),A.status=Wo,Sg(m,x.blockedBoundary,A)}catch(re){if(Fc(),typeof re=="object"&&re!==null&&typeof re.then=="function"){var z=x.ping;re.then(z,z)}else x.abortSet.delete(x),A.status=ya,Eg(m,x.blockedBoundary,A,re)}finally{Co=B}}}function cs(m){if(m.status!==Ca){var x=vl(),A=os.current;os.current=fg;var B;B=Nl.getCurrentStack,Nl.getCurrentStack=is;var z=Ac;rs(m.responseState);try{var re=m.pingedTasks,de;for(de=0;de<re.length;de++){var je=re[de];Dg(m,je)}re.splice(0,de),m.destination!==null&&Wl(m,m.destination)}catch(f){wr(m,f),Go(m,f)}finally{rs(z),os.current=A,Nl.getCurrentStack=B,A===fg&&Qi(x)}}}function ds(m,x,A){switch(A.parentFlushed=!0,A.status){case jc:{var B=A.id=m.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,za(x,m.responseState,B)}case Wo:{A.status=Ol;for(var z=!0,re=A.chunks,de=0,je=A.children,f=0;f<je.length;f++){for(var b=je[f];de<b.index;de++)g(x,re[de]);z=Vl(m,x,b)}for(;de<re.length-1;de++)g(x,re[de]);return de<re.length&&(z=v(x,re[de])),z}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Vl(m,x,A){var B=A.boundary;if(B===null)return ds(m,x,A);if(B.parentFlushed=!0,B.forceClientRender)return Wn(x,m.responseState,B.errorDigest,B.errorMessage,B.errorComponentStack),ds(m,x,A),qu(x,m.responseState);if(B.pendingTasks>0){B.rootSegmentID=m.nextSegmentId++,B.completedSegments.length>0&&m.partialBoundaries.push(B);var z=B.id=ia(m.responseState);return Xa(x,m.responseState,z),ds(m,x,A),Ya(x,m.responseState)}else{if(B.byteSize>m.progressiveChunkSize)return B.rootSegmentID=m.nextSegmentId++,m.completedBoundaries.push(B),Xa(x,m.responseState,B.id),ds(m,x,A),Ya(x,m.responseState);Qs(x,m.responseState);var re=B.completedSegments;if(re.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var de=re[0];return Vl(m,x,de),qs(x,m.responseState)}}function Fg(m,x,A){return Hf(x,m.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function fs(m,x,A){return wt(x,m.responseState,A.formatContext,A.id),Vl(m,x,A),Xt(x,A.formatContext)}function gs(m,x,A){for(var B=A.completedSegments,z=0;z<B.length;z++){var re=B[z];Hc(m,x,A,re)}return B.length=0,ec(x,m.responseState,A.id,A.rootSegmentID)}function D0(m,x,A){for(var B=A.completedSegments,z=0;z<B.length;z++){var re=B[z];if(!Hc(m,x,A,re))return z++,B.splice(0,z),!1}return B.splice(0,z),!0}function Hc(m,x,A,B){if(B.status===Ol)return!0;var z=B.id;if(z===-1){var re=B.id=A.rootSegmentID;if(re===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return fs(m,x,B)}else return fs(m,x,B),$v(x,m.responseState,z)}function Wl(m,x){d();try{var A=m.completedRootSegment;A!==null&&m.pendingRootTasks===0&&(Vl(m,x,A),m.completedRootSegment=null,Ju(x,m.responseState));var B=m.clientRenderedBoundaries,z;for(z=0;z<B.length;z++){var re=B[z];Fg(m,x,re)}B.splice(0,z);var de=m.completedBoundaries;for(z=0;z<de.length;z++){var je=de[z];gs(m,x,je)}de.splice(0,z),y(x),d(x);var f=m.partialBoundaries;for(z=0;z<f.length;z++){var b=f[z];if(!D0(m,x,b)){m.destination=null,z++,f.splice(0,z);return}}f.splice(0,z);var F=m.completedBoundaries;for(z=0;z<F.length;z++){var I=F[z];gs(m,x,I)}F.splice(0,z)}finally{y(x),m.allPendingTasks===0&&m.pingedTasks.length===0&&m.clientRenderedBoundaries.length===0&&m.completedBoundaries.length===0&&(m.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),C(x))}}function F0(m){i(function(){return cs(m)})}function Ag(m,x){if(m.status===Ic){m.status=Ca,j(x,m.fatalError);return}if(m.status!==Ca&&m.destination===null){m.destination=x;try{Wl(m,x)}catch(A){wr(m,A),Go(m,A)}}}function Hl(m,x){try{var A=m.abortableTasks;A.forEach(function(B){return Ll(B,m,x)}),A.clear(),m.destination!==null&&Wl(m,m.destination)}catch(B){wr(m,B),Go(m,B)}}function A0(m,x){return new Promise(function(A,B){var z,re,de=new Promise(function(M,ee){re=M,z=ee});function je(){var M=new ReadableStream({type:"bytes",pull:function(ee){Ag(b,ee)},cancel:function(ee){Hl(b)}},{highWaterMark:0});M.allReady=de,A(M)}function f(M){de.catch(function(){}),B(M)}var b=m0(m,hr(x?x.identifierPrefix:void 0,x?x.nonce:void 0,x?x.bootstrapScriptContent:void 0,x?x.bootstrapScripts:void 0,x?x.bootstrapModules:void 0),Rr(x?x.namespaceURI:void 0),x?x.progressiveChunkSize:void 0,x?x.onError:void 0,re,je,f,z);if(x&&x.signal){var F=x.signal,I=function(){Hl(b,F.reason),F.removeEventListener("abort",I)};F.addEventListener("abort",I)}F0(b)})}hf.renderToReadableStream=A0,hf.version=t}()),hf}var ji,im;process.env.NODE_ENV==="production"?(ji=hN(),im=mN()):(ji=vN(),im=bN()),Di.version=ji.version,Di.renderToString=ji.renderToString,Di.renderToStaticMarkup=ji.renderToStaticMarkup,Di.renderToNodeStream=ji.renderToNodeStream,Di.renderToStaticNodeStream=ji.renderToStaticNodeStream,Di.renderToReadableStream=im.renderToReadableStream;let xN="iVBORw0KGgoAAAANSUhEUgAAANUAAABhCAYAAABBG+TgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACEgSURBVHhe7Z0HWFRXFsfPG1SaFKWDgBUsWLH3lthN1cQYY5ItiellN9mYxGQ3m2rcbDYxuiamJ2qqaa4NK/aOFaWIIgqKIE1Rmbf3f+eNvJl5b2DgDWK8v++bj3nDlDdw/++ce+4550pl5ZdlEggEhmFSfgoEAoMQohIIDEaISiAwGCEqgcBghKgEAoMRohIIDEaISiAwGCEqgcBg6p2oZJmowkx0qULmN9wXCK4l6lVGRckFmbIKJcotluliheWxhh5EjT0tP70bSOTbiP1sKJOfp0SeDWSSJMnyRIGgnlBvRFVWTrQqXaYf98qUUyRzi2XFxHTjw8QU6CVRkC9RMLuF+xGF+UsU5idRqK9MIY0laiCcWUE9oF6ICidw8BTRrDVmOsEEVV18G0lMTDJFMnHFNpGoTQhR21CJmnizLyYMmOAqUS9EdZnNm9akyVxUNT2ZRsw9DPaVKDKAqGMEUb8WEkUFSCS0Jahr6o2oVqeZmahqfyoQkQ+bgwX7SNQ1imhcB4u4BIK6ot7MqQ7lEr25ykwni407nYZsjuXnRTSqrUQ3JZjIn90XCNxNvRHVpQqipCMyfbFdpqILMncDebCCGRl+n1mzmp4o7FQMm3Pd00OiHtESF5uYcwncRb0RFTCzMzleyKxWHkLqTFznJf7zdClRPrsVlMlUflmiC+yx8kvsJ/xGF2ZN3g2JhsdJNLa9iaIDLVFFgcBo6pWoqqLsoky5xRIdLZAp7QxRZr5MeSUyFZwnKr2oPKkKoKOEcKIJXUxszsWsloflcYHAKK4pUdkDIcGqpZ5mt1yZMvIlOsOsmXqNS48QX4lu7UQ0rLVE/t7CZAmM45oWlRW4jaeZxTqYS7TnpEzbjsFdtMzLnIGMjJFtTXRbJxOFNlYeFAhqye8iBwFzI2RWDGwl0dTuEj0+QKJhcSZq1EB5gg6Yny09JNNn28xsLnd1ry0rV66ge+6+i7Zt3ao8IrhW+V0l9kBcgcyVS4yW6A+9JJo+1ERtQpy7duWXiZIzZfpqp3xVhZWedoS++/Ybys4+rjwiuFb5XWbLQVxIVeoZK9FLI0w0LsFEHk6+KYS1gQlrARPWSRfSpAQCLX6XorICcQX7EP2JWa3H+psoADmByu/swTrZ2gyZlhwkKilXHrxGuXz5Mp0+nUcPT3uAMjLS+bFcneiNwBB+16KygrxArE89PsBEzYNI12qhdmvxPjOtTUctl/LgVcRsNtO5wkIqLCigixert2aQf+YMvTzjRerWpRN98vF86turBz35xGN0YP/+ar+HoHZcF6ICEFJv5g7+oZeJ2oWRbpkIxPTxNpl25ygZHQZTXl5O+/fto6SklbRxwwbdORSe978lv9Gr/3yFXn55Bv36y89UcPas8lt9Zr71Ji1auIA6d+5M3RITqbi4mOZ/OI8efOCPlJy8ni5duqQ8U+AurhtRAbiD3aIkuqe7ieJC9TPYS8tl+miTmU4ZmIcI4IIt/d8SevihB+jmcWNo8qQ76I3XXqUTJ7KVZ1Ty9Zdf0F13TqT333uX5s2dQ3975q9ciLBezjhy5DBNumsy/bD4F/pgzjxq1KgRBYeEMAuWT+/9+x3KyjqqPFPgLq4rUQEIKyFcorsTJYptqjyoQVYhQu2WNTCjgJVAhG/f3r00ctRoCggIoELm3tlbDwjnjddfo9at29D051+kBx96mBo0aEArli+j3NxTyrP0adGiBXl4eFBEZAR5+/jQKPZZk++eQtt3bKf0tDQxv3Iz152oAISFFKUH+3pQEyfZFMmZZvplv3PL4AoYzBUVFeTn50/PPPscvffBHHphxkvUvHkL5RkWIKrSslIaOmw4PfvcdHrxxZfopptvoeT16ykzI1N5ljYtWrSkefPm0urVq+idWbMoLDSM/vTnB2nEyFHUqlUrunDhQpXWTlA7fhcZFTUFVmgT84ZeS6rQbTDTLFCiV0dLFNZYX3zVAYLCQH/2L09zFy2hY0eKjW3Oe2wkdu9OPsyiPPn4Y/TVgkU0bvxN1Dwminy8fahZdDP++pM5J7mb2KZNHAUEBvDX4T2tP0OZeCCW3bt20cmTORQTE8sjgPhdu/btuTU8evQozftwPo0ZO45MpuvyelonXNeiAlij+i7FzEtOtEDC7ZDWEj01qHaDEAP+lb+/TG/PfJNbKwAXDYMbg3zQ4MFXRHXLrbfRnRNvp59/WsyfVx3wXsD63j179eJuZllZGT8Go0aPobfensUsVmvlEYE7uO5FBU6ck+mdtWbapzNdQS3W04Mkig+tubWCxVizZjVt3rRJeaSS+Ph47gIuW7aUCepWatu2HX/8t19/oT27d1NBQQGtSlpJJiacYcwlDA0LpfLyi+Tl5cncOcuiWkCAPxcu5l6dOnWh3n36UElJCS357VduofD5N944gkcERQcq9yJExYAbuD5Dpv+sZ3MZjaUchN9viDfRQ33rplQE856cnBN80TZlzx76+qsvuaj+8c9XadpDj1DDhg2VZwrqI/VGVFgfKrko80F9/pJEF5lbhgJF68k1ZBdXzwaW/hP+nhLvBYiAg1GcuyDTlztkWnJAJvaxDrQKkmlaXw9KiHD/VR7W7ObxY6ioqIgfY741ZOgwem76C9zSCOo3V1VUzCOh06VIZJUou9BMRwuITrFxdKaUDXLm1RSft4gK3gr6/gUwIaHfX3QTE7VsStSc3dCazMuACzc+Z/sxM320hSirwPFPgoz3iZ0lurOrye39BTEXevKJR/kCcHBwCCUkdKQJE++gjp06Kc8Q1GeuiqjgbmUXyrTrhEwHcolX8WKh1ZUWz7BaLYOI2oeZeFZ6hzCZPVY7K3L+EjFRybQ81dJy2p7EZkR/7uPBhKw84CZgoZB1geBDeEQ4RUU1uxKIENR/6lxUqMxdn24pJEw9w9y9WiavwgWMbSpRLyas4fFEzWrRjgyWc2e2TB9slHnwwp7GzO18YoBE/Vu63wUUXLvU2WIFrNC+k2zAJsu0YDfR7pzaCwrA6h09K9PP+800l4kBn1HTqwTczHbhlq63WgEy9MhApgUsmkCgR52ICk2P1mWgA61MW7LQJUk2NP0HFqaMDXS4k++uk2nnCYvYaoI3cysHtDDxOZw9eM/NWUR5xcoDAoEGbhcVBuLSQ2Z6e42lUaZWZE0PWAvrrTrAGh5nbttbq8x0+LQl+OAq+Kx+LZirh3CjBtmFRCU1qKBA0OGZvzxNPmwyqL716dVdeYY+Z86cpscfe8Thtc0iw5RnVM3KFcspsUsnh/fAbdzokXT0qPP0J+Qi+vt62byuQ9s4/r20wLrYpo0byderoc1rcBs+dJDyLG1+/OF7h9c88vA0ystjE3An/PLzTxQbHenwWtymTJ5Ex4+zOUcd4FZRYTucH/bK9D5z+aoKQmBu5MWsRKAXUYQfUcdIiQayucvgVpafnaOQKoSOs1Xv7nGOWcJXV5gpp4bl8QjZB/lqv/b8JbREM9bSuhsM8L17U3h6lBa7du+ilcuX8+fp4ePjTZ6ensqRBSw2lxRrm21kdmDxWus9UfKCkhQ9UPJiT0R4BPn66nfnweesWpVExcoyhD3r162j48eOO/2ORuE2UWHdadVhM320ueqQHvpKIHP8lo4mem64B71/m4lmjmX3h5no2aGWn6+PNtG7t3jQo/0k6t9C4sJztk6FUP2/1pn5+pOrIC3uxjhJ10JuO2amC9fQvAqFjsePH7+SwmTP2fx8Sk9P17U6ICYmlucXqkE+4YkTzNfWAIJLSlqhHDmSzc5Hj4MHDyj3LHh7e1NERAT/qQes+SH2Or3vACt3YP++OinUdIuocBXfelymz7YrD+iA7ATUN01JJHpmqERTezCLFGnZIsceCCiQ/U3RMenJgSZ6sK+JesVYWjjrceAU0U/7lAMX6RatX2+196RE56+hRJQUZqVWLFvm9CqdmnqIjh1jE0YduvfoQXHx8cqRhZKSYlq/fq1yZAs+69gxfXdr3bo1yj1bMOhzT9m6eW3i4iiubVunScCwRMjgd/YdkdBcWlKiHLkPt4jqaD5z+1LMVOjESgT5SHQbs0wPMcszpr2Jb4NTXTwbEvWKlWgaey129fDSmf/g09GCbP8p1wUQwNxMPUsF62eWq3++VxMMstxTpxyKE/38mKlXsXnzJp5nqDcoIyOjuLVQr5chWRfZH7BK9qQdOUJF584pR458+80i3dcVFhYoRxZatmxFsbGxypEjOGcsmMNaWYEAGze2dReRe3ny5EnlyH0YLqoyZl2XH5YpPR8lCcqDdmBrG1inO7pKvLSipoQ2lmgSe4+bEiTdvhMQwNJDyoELIIMC/da1wNKesytifQL9LbZv2+bg+t119xTlngU8D6Uleu4TBqm/f4BN3qG1wcz58+eVRypZuOBrm8/E69WJvAcOHNCc/6xeneRQtNk0KIiaNNGvKMV5w2VUnwdSu8aOG68cWUA7gh07trv9f2e4qNAhdusxmc05tE8cc6G7mBCGtDHxDQNqCwIX49pLNKyNtjgRIEEkMJNZT1fAuyU20/7zVDArVXTh2rBU2dnZ9P1339oMpL79+tFfn3nWIUtjdVKSZmm/lQ4JCRQYaJtOAnetuNhRHCtWLFPuWQQVERHJROmvPMJex8Sbk5OjHFWya+dOLlYrsDYxMTFcJHqghmxvSorNd+zduw9vK+DlZbt/0o/ff6fccx+GigrrT9vZXEqvtwMXQIKJZyR4MktgFEHs7z2UiTTCT3ug55WY+TqZq2AjAy3wvzO6f4U7wCBDlM2+BP/BaQ/zQe7r66s8YmHt2jVXykS0GH7DDbxEX83Z/LPMShxUjipRz6eQZjV2/HiKjql04WDFkpPXKUeVwFVVf354eATPfdSbT8GFzMzM4Fn9aibccSf/js2aRSuPWIALeOqUe11AQ0WVWShRCrv4aIWbPUwS9WF/05FsrmukoAC8ivgQooGttUV1gV348kpdF0G0kxy/jPyqo5pXG8x5vvziMwfXD/VacMVQoq8GVifnhKXkRAsM0uCgYBs3DoLdyVwqNZi/wZ200q5dO7r//j/azIvwWViPUoMLwCkmKvVcKzIqkltIPbD2tHXLFl4uo6Zf//4UHBLM68rUwL1NWrlSOXIPhokKFbSH87R7kuN/0CyAeH9zH43InhHAlUTmelMfx/fHhQ8bGLhqXZyJ/7LZmO9x+dJl7nI5u6GUviZRq9LSEj63UYMeFn7+liDFo4894WABPpw3l86e1feVAwIDbdzGc+fO8eCCWohokaYmKDiYCyosLOzKnAzWCN9L3XZt27at/P3UNG7sR0FMyHqkpaXRls2blSML+I4o+gwJCWXiGsALN9XMnTNbd3nBCAwTFQICmLtogdB5lyiJOtt6DoaD3elb6/z9z5RIzLooB9VExwviZFXdgq9aHD6cSgP79XV6Gz92NP20+EflFdUHIWb7wMPkKfdcGaRBwUFMYJXzHICgxuk8nX8kA/007Ocp+Ax1kABt2KxAgBAiujphnUu9gIzXqedV25mo1PMzfA7EYR/FswJrl5WZ6eDeTpl6L79Y4LOjohC1jFR+Y2Hnjh1VZpDUBkNEhcF3tpR0Q9d+zDohK0IPpC4Z0RE20FPiGRlalFxi51jZrqHegEgXGrU4u2HQlJayP7CLvPXm6zbzE4Amm9ZJv7eXN/Xu1ZvfV7N9+zblniOjx4zl1kMNyv3z88/w+zwiqBIlBJzQIYFbqC5du/IIopUiJqAtmyvbC2AhWe3GIeI3YOBA5cgRRB6XL1/mEC0cOXKUco/N59icqm3btspRJaikdheGiApzqDz2P9cbtM0CmR8fqhyo4OH3VJm+3C7Twl1m2nSUTaxrkAFhBVa+gU5NFaKArla5OHt2U/1gVL0AgztppW1GAwIGGORWl6+xnx9Nmny3gwv4wez3dedV6OYUyCyPmqyjR+lwaiq/n56eRueKKl04zIm69+jJ72N+ExLK3AkFhNS3bt3CXTEIAy2r1QLBWlr7Dh2UI0fQINTe9UNgomWrVsoRcbezW2J3hxYE6L9oPw8zCkNEdZmpKldnvoL5VFyI4zoSggfIuPhkq0wLmKAW7pJp/haZVqdbSuprAuQk6UhBZueoFUBxRoWTeVMTHxffrI5BlMv+Cn7jiBHUomVlj0HMNeBe2btz+/amXLE8WqDxjBoEC9LSjnCriEYzZSqrioahCIkDuH/oQ2gVMc4PgRHMF2GRYXnUQQpvH6Qn2bpuVvDalJQ9Ngu+YMy4cTZRTVjl5i1acBdUzeHUw7yxqDswRFRYtzmtN49mY6+Txt8FdU+r08w8ORXABTxRhIVamY7ZLqhXG7yHnnAkE4StLxItss7qR/iiAgz501GTpk1591hnt9snTKS4ONsUoap4/dVXHFw/DOBPPv6Yt0mz3r5ZtJA87UQFvvj8M+WeI2jyqQauKawGBjrWjDDXARAP1rVgEa3ENG9uE+goLimm3LxcnhGRc6JyfgXBd+3azSHsbwVzOEQP7QMOebm59K9ZM22+48YNycpvK0EQZ/nypcqRsRhS+Ytiw9kbZVp1xHEQYhx/PtlEwXZRuS93mOnbPdhtXnlAAVG8Z4aYqE9z1wQAECxBoeLqNMevhKggcgtHxFf/fd9LNtNvB7T/PLNv9aBW+kEpBzApf/H56bw3upqEjp1o+Yok5UibM8xqzJr5Fn326SfKIxaQaZCdo10OEREa5BBJQ5DA3g2CZcC52Q9OROwys7IdImcAlim+dUvlyMLjTzxFz784gybefgutXbOGCzqwSROa8dLLfF3MCjLX75s6hbdPA7CUr73xJl9nwmYM1mggLMxHH39KN99yKz+2B65il84J/KcaJN3aL2prfUcIfujQYbToux+cJurWBIMsFaJr+ld1e0EBM3etHB9HwMKVmis1Gez/kXlW+8Vw1xDWdwV0r9UCSbx+XjU8STs8mF+Mwef0xlyXRnZlF85ASzOt1CEMLAxm9Q1rWVrhZQxW+xw8K9HRMQ7uFIQGi5CXa+mKC/z9/GngwMH8vpXBQ4YywVRaH4gJWRQFZwvoguqcef/Czp2VI0d+ZeK0FxTA967Od4TQTp46RRnp6cojxmGMD8Mw6+Z0a+PriZJ1x4GJKuEsJgxXS9ZR6r47G6X1ygMqcGYR/iZqHVz9c0QQRa9spBG72KvWP+sd8/47x2E+VRPmzJ6t3HMkPMw23QSNarA+dVo1x4FljIy09f3hzqmzMuAqIsMB63HqwAFcUr35FPjs04+VezUH87hVq1Y6uMm1xRBRYXz5apSfW4FQ7EHXV70k2C3HZV4PVV3w/iknidZn6oiAeTBh7OLoSiYHuj3p/a1DfNiV1MX5WV2B2qjCgkKbgQKXLyQ0lFsYvRssj33nWogE1k0Le7cMqULIVEDtFsB7IaBhvw4G2re3jejtYvOwHTt22Jxz3779dN0yfEeIWA0EjJQmre9mvWG9S/0d4Wpi43K9wsaaYoioIA5/J96JViZDDPMePHUGJpJfN2aSblKuGgQmsD72wx4z5Wh0QALY/7ebbQqYU/C/XXJIX1T9Wki8l0V95Ouvv+QTfzXYkudvz03nfdT1buPH3+Qw34LblJGRoRzZguCJOhQPi4PonTVIgXkNesTbz28AehiqST10kBcYqrFPoVLz+eefOlQOoyfic88/r/ndrLdBg4fYfEeIGG4rCjSNxBhLxbSB6l0tMDDhztmD+ql4jbUrgHkVyvB/O+h83Qou36ojMn26zUwpOn3QIfi2oRJ1idQ+Py3wmXuwk6JyrKYBGyPtI0y8pqs+siE52eHKiyK/qffezweq3g0CwDqWmqKic/TtooU2FsRKfNu2DpkO6udBcMOH36gc2dJ/wECbrHO4qvbuao+elrUtLbDGZM+AAYNo4sQ7Nb+b9Xbb7RPIxy6aiIvGnt27bEL5tcUwS6W7GMrG8qE8xwGN14xP0B/oRWxgL9xNvAffmjR2RWFWqJh5IlhgRjrU0oNmen8DBCXTQSf9QJBhcXNHfVdTiw1HLZ+vRQi7GKBTbvUlWnegehcTf/UAgVsU1axZlRGufv3684wHtXuESf+mTRs0gx54HgoX9cDvretT9kCMYXZzMjUoEdF774MHDjisL+H92rRpYxO612LY8OEUEly5+AwQ7EBltLOCSlcxRFRoxBKq05MDF6/0M9pXgQ5hEi+P1wMWY006FoXNvEPSy8sq6JUVFfSvtRX02XaZVjMrdcbJ3AvjY2JX13brQIBkU5bMW55p0SdWojDn/7urBvYFtmY2WIH1wdY8arFogRB6WHi4jbsGy4NoHtaQ7MH7Db9B2xKBuHhmyZwMcpTn6wE3Te8igIph+5Qt7L/VvkOCpqupBgm29hkauABhsTsrS7+VgKsYIipMjYJwBde5GJ44J/GaJnsQQLi3p/NSeojyNPsbHmHWaT9z8WCVEOErYBdPfTlZGNXWRCPiTS5ZlXUZZnYRsHyuPWgrjbUpbI5QH0HWt3VTAytNmjahbt0SlSPndOnSlfduV4MAxOIff7Bx7QDcu1tvu91mXqVmwkTbOZc9d066S7nnCNw0PbZs2eQQHo9nAm7ZynbdTI8RI0Y6XGCwYI3KYaNcQENEBQK9ZYoP0R6+xWzuukYnIwSVwE8ONmaTATWDmAX8cx/2vi4EFM5dINp+nLkEZdpybR+G3T/0G8JcTeD6HWY3+3kNRFLdxU0M5jZxbZQjC9ZtfRC0sCcsPEw342H8TTcr97Sxn1epadeuvXLPFljMjPQMm++IjcKxI2XTpkHKI85B8SJcYjVYyzp08KBuuzVXMayXeulFmQcXvt7pGDWDJUuMkmj6Ddol9NgMYCObxyAbAs1itKxEdcBgR2dZlNZPSZR4pXF1wTn8yM7/K3b+9lkeAOH4KYkmur1zfZSUoD5hmKVC8WHLpiZN1whh78wCYsIxa7psDT0k6ttcokf6S9SOWQNXrRasOV4D1wzu5NTuJpcEhfNLzbMEKLQEhXdqySxUxzrYm0pw7WOYqDDcYpvKzEXSHnhnmUsFa4S9p7RAISOE9Wg/E41pZ6I45to7W1AGEBOie+3D0fzFRE8N8qCx7STydWHOA6uIdbRfDshMWNomEhvN9WnOfHedJQCBQI2hW+lg98PF+8y0aLd2+YY/E8AdXSQazQa+t06vPoB20QgWpJ6W+RoXhIh5GRaDIT4f9trGTHAhjYmaN5EoLlRigiZiBs9lSsqJb6L98wFmRTX+EhBux3CipwebKEynsYxAoMbw/anS84lmJ1fwzdy0aMEGPzZOQyfa6mT6YNCjPKT0osTFhvA9gg8+jWSeKVGbjd7g6qGea1mqWTfXMJC5kU8Mkqh3bO0EhaI/7DaPIr6p997Ha4uQFfD3l2bw9RMsSqoXNd94c6ZNEADdVTesX0+Tp0zhPRjQbxxVr6hyxZrP/PkfKs8kmv78CzRr5kwqv2ibYpSQkMCDEfYRPoGxGOb+WYkJlKlXLOZW2oMwi82tUOWbU810K8zRogMlXjncKcISgcMOiuHMatRGULB6czaa+Y4kzpJ3RzGrih0UawvCwOjmCmFZSzIuXDhPX3z+Kc/SbtSwEe3etZPmfziPzpeVMQtp+93279vL12jQEjkjI51mvPA8Ja9bx7MlkNF95HAqf+2Z06d51A89GJD+8+nH8y1iTjvCQ+5GJNoKnGO4qBB0GNIaQpA1Q88ICqBA8b9sQBe5p5q5SjC/e2u1TElHZF6BrEcH5vZN6Iwd6WtnpaoDGqr07NWbi+ne+/+gGwa/XHGZnnzsUW7xvlq4iLdERsoQNtrGa5FXB0s0e85ceuff7/Gq3sTE7jR33kf0+BNP8gVQgXsxXFQAqTyTujJr5VhQykG91I5smWYsreAlFnUF5kxYPP77cjPfvM1Zsxm4lv8Y4aG5+Zs7wHqLZyNLhKWxr202tZoXpv+NkpPX0zff/XClGhhJotaSeKz9ILMALiGyxPE+ECgyuFFlrFV0KDAWt4gK46FHtEQj4iTdeRMs1qE8omnfm3mraIOndjbgswrZvOzXAzK9nmTm4XOzzmIYThcdb18b08ClKGJdkJ19nLl0h3gmOMoyjEwCFRiHW0QFIKzJiSY2H9EXFkDDmNdWyvR9imXz6osGigu6yS+zWMW311jmUHkl+u+P04zwl+jxgR4U08S487ACq1FefvFKmk1hYSGf/3h565h0OxDsQANMdCVa8PVXvBZIUP9wm6gAsieeGmyirlGWrHQ9sPPhgl2W/Xoxz0E9ldYibHWAkNAzA40zkYw7b5OZWyf0eIfF0gPCR1j+/p6S5XydXAhqAlwyuHjHj2XxKB627kQrMPTQ69WrD8/ZQ6kFQEWqlhWCSzdg0CB6/Y2Z5B8QQA9Pe4AX2iGFCIWJIC+vsqZJcHVwq6gA5iYP9DFRzxjJ6UDF/CaFuYEfbpZp7qYKvtaFSt6MfNRUKU/SAaH2nCKZV/8uTzXTV0ygH2ysoFlrzbSWCauqeRt6TiBj/r6eJr7vFdbCjAaiwm4byJL+z7v/pscefZh+XryYRo8dyzO20VQymYkNeW0fvP+eZvNMzI0aNmjIn4/e5IgCIpSOnLglS37jr0U0saq9cQXuxfB1Ki1gPY4WEC3YaaYtx7Rz6+yB+4iAR7i/zDshNWEeUgCb63ipwujYfxeCKUKdValMZ88jo13iJSP4zOrQiAkIlbw3JViyOKqzdlZTUJqOjdWw925ZWSlfq+rarRvf+hPl4Rs2rFeeSXTP1Pts+vFBOPv376PBQ4Zwi4Wy9W++WcjfA1Wv2CjbyoQJd/CgBOqgFjI3MTomhkcHqyqNEBhDnYgKwPWCNfl5n0yr0ohKyl37WAx2LPqqxwWmJrBSWj0wqoOvp0STuhANaIkaKTeqSXBdUWeiAvigEmZF1jK3buFOS/rR1QBWsFc00dQeHhTh73oCr0DgjDoVlZUKZrZOFBF9xOZP2HWxroCY0HDmji6WuVNVCbsCQU24KqKygnkPSte/2W3m6UuYazmL0NUEuI2ohQr3s6QcDWaunr9OkxqBwAiuqqisnL/ILFY20do0mYsLTSwRgKipwBB88G2EIkXLZnPog4HFaGGZBHVBvRCVFZSOQFQpJ82Ulm+pvSo6b6kqvnBZ4gvDCEpAbLA1sEDYdAA/vRvKPPk2wEviJfooKmwXDndPWCVB3VKvRKUG+YGnimTKLZGooMySfAvrdbFC4ntNkSRzy4NSEH8mpEBvS892dDpCvp47Q+MCgTPqragEgmsVt2dUCATXG0JUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBIZC9H8N2KynRYkKgQAAAABJRU5ErkJggg==";const QC=e=>l.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-fit min-w-[32px] items-center justify-center rounded bg-gray-300 p-2 transition-all hover:opacity-50",onMouseDown:e.onMouseDown,children:e.name}),yN=e=>l.jsxs("div",{className:"group relative w-fit",children:[l.jsx("img",{src:`data:image/pngg;charset=utf-8;base64,${xN}`}),l.jsx("div",{className:"absolute right-0 top-0 text-red-900 opacity-0 transition-all hover:opacity-50 group-hover:opacity-100",children:l.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),CN={bold:"B",italic:"I",underline:"U",strikeThrough:"S",subscript:"SubS",superscript:"SuperS",removeFormat:"Plain"},wN=e=>l.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[l.jsxs("div",{className:"flex w-full flex-row justify-start p-2",children:[Object.entries(CN).map(([t,n])=>l.jsx(QC,{name:n,onMouseDown:r=>{r.preventDefault(),document.execCommand(t,!1,null),console.log(`Executing ${t}`)}},`property-${t}`)),l.jsx(QC,{name:"Image",onMouseDown:t=>{t.preventDefault();let n=Di.renderToString(l.jsx(yN,{}));document.execCommand("insertHTML",!1,n)}},"property-insertImage")]}),l.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),l.jsx("div",{className:" box-border w-full p-2",children:l.jsx("div",{contentEditable:"true",className:"rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none"})}),l.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),l.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:()=>{},children:"Submit"})]}),EN=({...e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),a=p.useRef(r),i=v=>{a.current=v,o(v)},s=p.useRef(null),u=()=>{let v=e.anchor.current;return[v.scrollTop,v.scrollLeft]},c=()=>{let[v,y]=u(),C=e.anchor.current.getBoundingClientRect();n(v>=C.height+(e.paddingThreshold||100))},d=()=>{e.anchor.current.scrollTo({top:0,behavior:"smooth"})};p.useEffect(()=>{if(!e.anchor.current)return;e.anchor.current.addEventListener("scroll",c);let v=setInterval(()=>{if(!e.anchor.current)return;let y=e.anchor.current.getBoundingClientRect();if(a.current==null)return i(y);a.current.top==y.top&&a.current.left==y.left&&a.current.width==y.width&&a.current.height==y.height||i(y)},1);return()=>{var y;(y=e.anchor.current)==null||y.removeEventListener("scroll",c),clearInterval(v)}},[]);const g=()=>{if(!e.anchor.current)return{};let v=e.corner||"bottom-right",[y,C]=v.split("-"),h=e.anchor.current.getBoundingClientRect(),w=s.current.getBoundingClientRect(),E=C=="right"?h.width-w.width:0,j=y=="bottom"?h.height-w.height:0;return{top:h.y+j+(y=="bottom"?-1:1)*(e.paddingX||10),left:h.x+E+(C=="right"?-1:1)*(e.paddingX||25)}};return l.jsx(Qe,{className:Te("fixed cursor-pointer rounded transition-all",t?"pointer-events-all opacity-100":"pointer-events-none opacity-0"),onClick:d,style:{...g(),transitionProperty:"opacity, background-color"},ref:s,size:"icon",children:l.jsx("svg",{className:_e("h-6 w-6 shrink-0 rotate-180 transition-all disabled:bg-gray-200"),"aria-label":"Arrow Icon",viewBox:"0 0 20 20",fill:"currentColor",children:l.jsx("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})})},SN=e=>l.jsx("code",{className:"inline-code",children:e.text}),DN=e=>l.jsx("div",{children:l.jsx("ol",{className:"relative border-l border-gray-200 dark:border-gray-700",children:e.steps.map(t=>l.jsxs("li",{className:"mb-10 ml-4",children:[l.jsx("div",{className:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"}),l.jsx("time",{className:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",children:t.date}),l.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:t.title}),l.jsx("p",{className:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400",children:t.description}),t.actions]}))})}),sm=({label:e,icon:t,digits:n,width:r="normal",getPins:o,...a})=>{const[i,s]=p.useState(Array.from(Array(n))),u=(d,g)=>{let v=0;if(d.key==="Backspace"){d.target.value.length===0?v=g-1:v=g;const y=document.getElementById(`input-${v}`);y==null||y.focus()}};p.useEffect(()=>{i.includes(void 0)||o(i)});const c=(d,g)=>{if(/^\d*$/.test(d.target.value)){const v=[...i];if(v[g]=d.target.value,s(v),d.target.value.length===1){const y=document.getElementById(`input-${g+1}`);y==null||y.focus()}else if(d.target.value.length===0){const y=document.getElementById(`input-${g-1}`);y==null||y.focus()}}else{const v=[...i];v[g]="",s(v);return}};return l.jsx("div",{className:"flex w-full flex-row justify-center gap-2",children:i.map((d,g)=>l.jsx("input",{type:"text",maxLength:1,value:d,id:`input-${g}`,pattern:"[0-9]*",className:_e("h-10 rounded border bg-background text-center",r==="full"?"w-full":"w-10"),onChange:v=>c(v,g),onKeyDown:v=>u(v,g),onFocus:v=>v.target.select(),...a},g))})},FN=({actions:e,counts:t,content:n,headerActions:r,clickableImage:o,clickableImageAction:a,clickableImageActionText:i,clickableImageActionIcon:s,header:u,cardImage:c,orientation:d="vertical",...g})=>{let v="block rounded border border-gray-200 bg-white shadow-sm hover:shadow-lg transition-all dark:border-gray-700 dark:bg-gray-800 ",y={vertical:"max-w-sm",horizontal:"flex flex-row w-full"},C={vertical:"h-auto max-h-56 w-full rounded-t-lg object-cover",horizontal:"h-full w-48 rounded-l object-cover"},h="inline-block rounded p-1 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700";const[w,E]=p.useState(!1);function j(){E(!w)}return p.useEffect(()=>(window.onclick=()=>{w&&E(!1)},()=>window.onclick=null),[w]),l.jsxs("div",{className:_e(v,y[d]),...g,children:[c&&l.jsxs("div",{className:"group relative overflow-clip",children:[l.jsx("img",{src:"https://via.placeholder.com/50",className:_e(C[d],o?"overflow-clip transition-all group-hover:blur-lg":"")}),o&&l.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full items-center justify-center opacity-0 transition-all group-hover:opacity-100 ",children:l.jsxs(Qe,{variant:"secondary",onClick:a,className:"flex flex-row gap-2",children:[s,i]})})]}),l.jsxs("div",{className:"relative w-full p-6",children:[r&&l.jsx("div",{className:"max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3",children:l.jsx(pi,{items:r,trigger:l.jsxs("div",{className:_e(h),onClick:j,children:[l.jsx("span",{className:"sr-only",children:"Open dropdown"}),l.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})]})})}),u&&l.jsx("h5",{className:"mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:u}),n&&l.jsx("span",{className:"w-full font-normal text-gray-700 dark:text-gray-400",children:n}),e||t?l.jsxs("div",{className:_e("mt-3 flex items-center rounded-b-lg dark:text-white ",e&&t?"justify-between":"justify-end"),children:[t,e]}):null]})]})},qC=({size:e="medium",direction:t="ltr",currentPlan:n=!1,...r})=>{var i;let o=t==="rtl",a={small:"mx-1 w-full max-w-sm rounded border dark:border-gray-700 bg-background ",medium:"mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",large:"mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "};return l.jsxs("div",{dir:o?"rtl":"ltr",className:_e(n?"border-primary":"bg-background",a[e],"flex flex-col gap-4 rounded border-2 p-4"),children:[l.jsx("h5",{className:"text-md 0 font-bold text-primary/70",children:r.texts.title}),l.jsxs("div",{className:" text-primary/ flex items-baseline",children:[l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-5xl font-extrabold tracking-tight",children:r.price}),l.jsx("span",{className:"mx-1 text-sm font-semibold",children:r.texts.currencyText})]}),l.jsxs("span",{className:"ml-1 text-xl font-normal text-primary/70",children:["/ ",r.texts.cycleText]})]}),l.jsx("h5",{className:"text-md font-normal text-primary/70",children:r.texts.subtitle}),r.features&&l.jsx("ul",{role:"list",className:"space-y-0 ",children:(i=r.features)==null?void 0:i.map((s,u)=>l.jsxs("li",{className:"flex ",children:[l.jsx("svg",{"aria-label":"Check Icon","aria-hidden":"true",className:"m-2 h-5 w-5 flex-shrink-0 text-primary",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),l.jsx("span",{className:"flex items-center text-center font-normal leading-tight text-primary/70 ",children:s.text})]},u))}),l.jsx(Qe,{onClick:r.onPlanClicked,disabled:n,className:"w-full",children:r.texts.buttonText})]})},AN=({orientation:e,...t})=>{const n=p.useRef(null),[r,o]=p.useState(!1);let a=0;p.useEffect(()=>{},[a]);let i={horizontal:"flex flex-row max-w-xl rounded border-gray-200 bg-gray-100 shadow-md p-2 gap-2 items-center relative dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex flex-col max-w-[200px] justify-start rounded border-gray-200 bg-gray-100 gap-2 shadow-md p-2 relative dark:border-gray-700 dark:bg-gray-800 "},s={horizontal:"w-auto h-full bg-blue-500 rounded-inner",vertical:"bg-blue-500 rounded-inner w-auto "};return l.jsx("div",{ref:n,children:l.jsxs("div",{className:_e(i[e],"dark:text-white"),...t,children:[l.jsx("div",{className:"flex aspect-square w-full max-w-fit items-start ",children:l.jsx("img",{src:t.imageURL?t.imageURL:"https://via.placeholder.com/50",className:s[e]})}),l.jsxs("div",{className:"w-full text-xs",children:[l.jsx("div",{className:"font-bold",children:t.title}),l.jsx("div",{className:"text-[12px]",children:t.description})]}),l.jsx("span",{onClick:()=>{t.canHide?(o(!0),setTimeout(()=>{n.current.removeChild(n.current.children[0])},200)):t.handleCantHide()},className:"absolute right-0 top-0 h-fit cursor-pointer select-none rounded-bl-lg rounded-tr-lg bg-blue-100 px-2.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:bg-blue-200 dark:text-blue-800",children:"Hide"})]})})},jN=({orientation:e="horizontal",...t})=>{var r,o,a,i,s,u,c,d;let n={horizontal:"flex max-w-xl rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex max-w-xs rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 "};return l.jsxs("div",{className:_e(n[e],"flex flex-col p-10","relative overflow-hidden dark:text-white",t.className),...t,children:[((r=t.texts)==null?void 0:r.titleTip)&&l.jsx("div",{className:"text-sm text-red-600",children:(o=t.texts)==null?void 0:o.titleTip}),t.imageURL&&l.jsx("img",{className:"absolute -bottom-10 -right-10 h-40 w-auto ",src:t.imageURL}),((a=t.texts)==null?void 0:a.title)&&l.jsxs("div",{className:"mt-2 text-lg font-medium",children:[(i=t.texts)==null?void 0:i.title," "]}),((s=t.texts)==null?void 0:s.description)&&l.jsx("div",{className:"z-10 mt-4 text-sm",children:(u=t.texts)==null?void 0:u.description}),((c=t.texts)==null?void 0:c.linkText)&&l.jsx("div",{className:"z-10 mt-6 text-sm underline underline-offset-8",children:(d=t.texts)==null?void 0:d.linkText})]})},IN="cursor-default pointer-events-none",TN={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},ew="cursor-pointer justify-center items-center text-center font-medium transition-all ",tw={icon:"h-10 w-10",xs:"px-1.5 py-2 text-[9px] h-fit",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",default:"h-10 px-4 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},nw={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},kN={full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"},rw={contained:"border-transparent",outlined:"border border-input bg-background hover:bg-accent hover:text-accent-foreground"},PN={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",gray:"text-neutral-900 bg-gray-200 hover:bg-gray-300",dark:"text-neutral-900 bg-gray-200 hover:bg-gray-300"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",primary:"text-black hover:bg-gray-50 dark:text-white",secondary:" dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",gray:"border-gray-300 hover:bg-gray-200",dark:"border-gray-900 hover:bg-gray-700"}},BN=({className:e,variant:t="contained",color:n="default",size:r="default",width:o="normal",disabled:a=!1,isLoading:i=!1,tooltip:s,tooltipSize:u="normal",tooltipPosition:c="top-left",tooltipDirection:d="ltr",margins:g="2",children:v,badge:y,edgeCorner:C=!1,feedback:h,...w})=>{const[E,j]=p.useState(!1),[P,N]=p.useState(v),$=G=>{w.onClick&&w.onClick(G),h&&!E&&(N(h),j(!0),setTimeout(()=>{N(v),j(!1)},2e3))};return l.jsxs("div",{className:_e("relative",g!=="none"?`my-${g}`:"m-0",kN[o]),children:[l.jsx("button",{className:a?_e(e,ew,C?"rounded-inner":"rounded",rw[t],tw[r],nw[o],IN,TN[t]):_e(e,"overflow-x-clip",ew,C?"rounded-inner":"rounded",rw[t],tw[r],PN[t][n],nw[o]),disabled:a,onClick:$,children:i?l.jsx(ws,{design:"dots-pulse",color:"bg-white",size:"button"}):l.jsxs("div",{className:_e(" s flex flex-col-reverse items-start justify-center gap-4 transition-all",E&&h?" -translate-y-8 pb-1 pt-1":"translate-y-0"),children:[E&&h?l.jsx("div",{className:"w-full text-center",children:P}):null,l.jsxs("div",{className:"flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap",children:[w.startIcon&&w.startIcon,v,w.endIcon&&w.endIcon]})]})}),y&&l.jsx("div",{className:_e(typeof y=="boolean"?"h-5 w-5":typeof y=="string"?"h-5 w-7":"h-6 w-6","absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900"),children:typeof y=="number"&&y>100?"+99":y})]})},NN=e=>l.jsx("div",{className:"flex justify-center",children:l.jsx("div",{children:e.store==="apple"?e.mode==="dark"?l.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[l.jsx("div",{className:"mr-3",children:l.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:l.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-xs",children:"Download on the"}),l.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):l.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-transparent text-black",children:[l.jsx("div",{className:"mr-3",children:l.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:l.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-xs",children:"Download on the"}),l.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):e.mode==="dark"?l.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[l.jsx("div",{className:"mr-3",children:l.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[l.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),l.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),l.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),l.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-xs",children:"GET IT ON"}),l.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]}):l.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-white text-black",children:[l.jsx("div",{className:"mr-3",children:l.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[l.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),l.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),l.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),l.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-xs",children:"GET IT ON"}),l.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]})})}),ON=e=>{const[t,n]=p.useState(!1);return l.jsxs("div",{className:"flex h-full w-full flex-col gap-1 ",children:[l.jsxs("div",{className:"group relative h-full w-full rounded border bg-background bg-cover bg-center transition-all duration-500 hover:drop-shadow-2xl",style:{backgroundImage:`url(${e.blank?"":e.cardImage})`},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[e.blank?l.jsx("div",{className:"flex h-full flex-col items-center justify-center ",children:l.jsx("svg",{className:"h-10 w-10 text-foreground",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"})})}):l.jsx("div",{className:"absolute inset-0 rounded bg-black opacity-50"}),l.jsx("div",{className:"absolute bottom-2 right-2 z-10 opacity-0 transition-all duration-200 group-hover:opacity-100",children:e.inCardActions}),!e.blank&&l.jsxs("div",{className:"relative p-4",children:[l.jsx("h1",{className:"text-white",children:e.title}),l.jsx("p",{className:"text-white",children:e.subtitle})]})]}),l.jsx("div",{className:`flex flex-row justify-between text-sm transition-all duration-200 ${t?"opacity-100":"opacity-0"}`,children:e.bottomElement})]})},$N=e=>l.jsx("div",{className:"bg-white py-24 sm:py-32",children:l.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-start gap-10 px-6 md:flex-row lg:px-8",children:[l.jsxs("div",{className:"w-full md:sticky md:top-10 md:w-[28rem]",children:[l.jsx("h2",{className:"text-lg font-semibold leading-8 tracking-tight text-indigo-600",children:e.tag}),l.jsx("p",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl",children:e.title}),l.jsx("p",{className:"mb-2 mt-6 text-base leading-7 text-gray-600",children:e.description})]}),l.jsx("div",{className:"mt-5 w-full min-w-0 flex-1 md:mt-0",children:l.jsx("dl",{className:"grid grid-cols-1 gap-x-8 gap-y-10 md:max-w-xl lg:max-w-none lg:gap-y-16",children:e.features.map(t=>l.jsxs("div",{className:"relative rounded-lg bg-gray-50 p-10",children:[l.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600",children:t.icon}),l.jsx("dt",{className:"mt-4 text-lg font-semibold leading-7 text-gray-900",children:t.title}),l.jsx("dd",{className:"mt-2 text-base leading-7 text-gray-600",children:t.description})]}))})})]})}),RN=({position:e="bottom-right",...t})=>{const[n,r]=p.useState(!1);p.useState(!1),p.useState(null);const[o,a]=p.useState(5),i=p.useRef(null),s={"bottom-right":"right-4","bottom-left":"left-4"};p.useEffect(()=>{const c=setTimeout(()=>{o>=0&&a(o-1)},1e3);return()=>{clearTimeout(c)}},[o]);const u=()=>{r(!0),setTimeout(()=>{i.current.removeChild(i.current.children[0])},200)};return l.jsxs(Ut,{ref:i,className:_e("fixed bottom-4 p-0 ",s[e]),children:[l.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>u(),children:l.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),l.jsxs(Lt,{headless:!0,children:[l.jsxs("div",{className:_e("flex flex-col gap-4",n?"opacity-0":"opacity-100"),children:[l.jsx("div",{className:"mt-4 font-bold",children:t.question}),l.jsx("div",{className:"flex w-full flex-row gap-1 rounded ",children:l.jsx(Sr,{orientation:"vertical",options:t.options})}),l.jsx("div",{children:l.jsx(zd,{})})]}),l.jsx(Qe,{className:"mt-4 w-full",children:"Submit"})]})]})},Zn={logo:e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:[l.jsx("rect",{width:"256",height:"256",fill:"none"}),l.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),l.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]}),mail:e=>l.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),l.jsx("polyline",{points:"22,6 12,13 2,6"})]}),phone:e=>l.jsx("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","aria-hidden":"true",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:l.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"})}),twitter:e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:l.jsx("path",{fill:"currentColor",d:"M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"})}),microsoft:e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:l.jsx("path",{fill:"currentColor",d:"M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"})}),gitHub:e=>l.jsx("svg",{viewBox:"0 0 438.549 438.549",...e,children:l.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),radix:e=>l.jsxs("svg",{viewBox:"0 0 25 25",fill:"none",...e,children:[l.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",fill:"currentcolor"}),l.jsx("path",{d:"M12 0H4V8H12V0Z",fill:"currentcolor"}),l.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",fill:"currentcolor"})]}),aria:e=>l.jsx("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",...e,children:l.jsx("path",{d:"M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z"})}),npm:e=>l.jsx("svg",{viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",fill:"currentColor"})}),yarn:e=>l.jsx("svg",{viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",fill:"currentColor"})}),pnpm:e=>l.jsx("svg",{viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",fill:"currentColor"})}),react:e=>l.jsx("svg",{viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",fill:"currentColor"})}),tailwind:e=>l.jsx("svg",{viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",fill:"currentColor"})}),google:e=>l.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:l.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}),apple:e=>l.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),paypal:e=>l.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:l.jsx("path",{d:"M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",fill:"currentColor"})}),spinner:e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:l.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})},MN=e=>{const[t,n]=p.useState(!1),[r,o]=p.useState(0),[a,i]=p.useState(0),s=p.useRef(null),u=C=>Math.round(C/e)*e,c=C=>{n(!0),o(C.pageX-s.current.offsetLeft),i(s.current.scrollLeft)},d=()=>{t&&v()},g=()=>{t&&v()},v=()=>{n(!1);const C=u(s.current.scrollLeft);s.current.scrollTo({left:C,behavior:"smooth"})};return{containerRef:s,handleMouseDown:c,handleMouseLeave:d,handleMouseUp:g,handleMouseMove:C=>{if(!t)return;C.preventDefault();const w=C.pageX-s.current.offsetLeft-r;s.current.scrollLeft=a-w}}},LN=({images:e})=>{const{containerRef:n,handleMouseDown:r,handleMouseLeave:o,handleMouseUp:a,handleMouseMove:i}=MN(1016);return l.jsx("div",{className:"flex cursor-pointer snap-x items-center justify-center gap-4 overflow-x-hidden",onMouseDown:r,onMouseLeave:o,onMouseUp:a,onMouseMove:i,ref:n,children:e.map((s,u)=>l.jsx("div",{className:"h-96 w-[1000px] flex-shrink-0",children:l.jsx("img",{src:s,alt:`Carousel Image ${u}`,width:1016,className:"h-full w-full rounded-lg object-cover"})},u))})},Ls=q.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:Te("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Ls.displayName="Input";const lm=({orientation:e="horizontal",width:t="default",...n})=>{const[r,o]=p.useState(n.currentColorMode),[a,i]=p.useState(n.currentLanguage);let s={horizontal:"flex flex-row justify-between",vertical:"flex flex-col items-center gap-2"};return l.jsxs("div",{className:Te(s[e]),children:[l.jsx(Sr,{width:t,defaultValue:a,onChangeTab:u=>{n.handleLanguage(u),i(u)},design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),l.jsx(Sr,{width:t,defaultValue:r,onChangeTab:u=>{n.handleColorMode(u),o(u)},design:"tabs",options:[{value:"light",label:l.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:l.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor"})})},{value:"dark",label:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:l.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})},ow="Tabs",[_N,E_]=cr(ow,[Dd]),aw=Dd(),[VN,um]=_N(ow),WN=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:u="automatic",...c}=e,d=xd(s),[g,v]=jr({prop:r,onChange:o,defaultProp:a});return p.createElement(VN,{scope:n,baseId:Ir(),value:g,onValueChange:v,orientation:i,dir:d,activationMode:u},p.createElement(Et.div,xe({dir:d,"data-orientation":i},c,{ref:t})))}),HN="TabsList",GN=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=um(HN,n),i=aw(n);return p.createElement(ox,xe({asChild:!0},i,{orientation:a.orientation,dir:a.dir,loop:r}),p.createElement(Et.div,xe({role:"tablist","aria-orientation":a.orientation},o,{ref:t})))}),zN="TabsTrigger",UN=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=um(zN,n),s=aw(n),u=iw(i.baseId,r),c=sw(i.baseId,r),d=r===i.value;return p.createElement(ax,xe({asChild:!0},s,{focusable:!o,active:d}),p.createElement(Et.button,xe({type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},a,{ref:t,onMouseDown:rt(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?i.onValueChange(r):g.preventDefault()}),onKeyDown:rt(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&i.onValueChange(r)}),onFocus:rt(e.onFocus,()=>{const g=i.activationMode!=="manual";!d&&!o&&g&&i.onValueChange(r)})})))}),ZN="TabsContent",XN=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=um(ZN,n),u=iw(s.baseId,r),c=sw(s.baseId,r),d=r===s.value,g=p.useRef(d);return p.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),p.createElement(Kn,{present:o||d},({present:v})=>p.createElement(Et.div,xe({"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!v,id:c,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0}}),v&&a))});function iw(e,t){return`${e}-trigger-${t}`}function sw(e,t){return`${e}-content-${t}`}const lw=WN,uw=GN,cw=UN,dw=XN,fw=q.createContext({orientation:"vertical"}),gw=q.forwardRef(({className:e,orientation:t,...n},r)=>l.jsx(lw,{ref:r,className:Te("flex gap-2",t==="horizontal"?"flex-row":"flex-col",e),...n,children:l.jsx(fw.Provider,{value:{orientation:t},children:n.children})}));gw.displayName=lw.displayName;const pw=q.forwardRef(({className:e,...t},n)=>{const{orientation:r}=q.useContext(fw);return l.jsx(uw,{ref:n,className:Te("flex w-fit flex-wrap items-center justify-start gap-1 rounded border bg-muted p-1 text-muted-foreground dark:border-primary/10 ",r==="horizontal"?"flex-col":"flex-row",e),...t})});pw.displayName=uw.displayName;const hw=q.forwardRef(({className:e,...t},n)=>l.jsx(cw,{ref:n,className:Te("inline-flex w-full flex-1 select-none items-center justify-center whitespace-nowrap rounded border px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm dark:border-primary/10",e),...t}));hw.displayName=cw.displayName;const mw=q.forwardRef(({className:e,...t},n)=>l.jsx(dw,{ref:n,className:Te("w-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));mw.displayName=dw.displayName;const cm="horizontal",YN=["horizontal","vertical"],vw=p.forwardRef((e,t)=>{const{decorative:n,orientation:r=cm,...o}=e,a=bw(r)?r:cm,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return p.createElement(Et.div,xe({"data-orientation":a},s,o,{ref:t}))});vw.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!bw(r)?new Error(JN(o,n)):null}};function JN(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
|
|
224
|
-
- horizontal
|
|
225
|
-
- vertical
|
|
226
|
-
|
|
227
|
-
Defaulting to \`${cm}\`.`}function bw(e){return YN.includes(e)}const xw=vw,yw=q.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>l.jsx(xw,{ref:o,decorative:n,orientation:t,className:Te("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));yw.displayName=xw.displayName;const Cw="ToastProvider",[dm,KN,QN]=bd("Toast"),[ww,S_]=cr("Toast",[QN]),[qN,mf]=ww(Cw),Ew=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[s,u]=p.useState(null),[c,d]=p.useState(0),g=p.useRef(!1),v=p.useRef(!1);return p.createElement(dm.Provider,{scope:t},p.createElement(qN,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:u,onToastAdd:p.useCallback(()=>d(y=>y+1),[]),onToastRemove:p.useCallback(()=>d(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:v},i))};Ew.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Cw}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const eO="ToastViewport",tO=["F8"],fm="toast.viewportPause",gm="toast.viewportResume",nO=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=tO,label:o="Notifications ({hotkey})",...a}=e,i=mf(eO,n),s=KN(n),u=p.useRef(null),c=p.useRef(null),d=p.useRef(null),g=p.useRef(null),v=Jt(t,g,i.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=i.toastCount>0;p.useEffect(()=>{const w=E=>{var j;r.every(N=>E[N]||E.code===N)&&((j=g.current)===null||j===void 0||j.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),p.useEffect(()=>{const w=u.current,E=g.current;if(C&&w&&E){const j=()=>{if(!i.isClosePausedRef.current){const G=new CustomEvent(fm);E.dispatchEvent(G),i.isClosePausedRef.current=!0}},P=()=>{if(i.isClosePausedRef.current){const G=new CustomEvent(gm);E.dispatchEvent(G),i.isClosePausedRef.current=!1}},N=G=>{!w.contains(G.relatedTarget)&&P()},$=()=>{w.contains(document.activeElement)||P()};return w.addEventListener("focusin",j),w.addEventListener("focusout",N),w.addEventListener("pointermove",j),w.addEventListener("pointerleave",$),window.addEventListener("blur",j),window.addEventListener("focus",P),()=>{w.removeEventListener("focusin",j),w.removeEventListener("focusout",N),w.removeEventListener("pointermove",j),w.removeEventListener("pointerleave",$),window.removeEventListener("blur",j),window.removeEventListener("focus",P)}}},[C,i.isClosePausedRef]);const h=p.useCallback(({tabbingDirection:w})=>{const j=s().map(P=>{const N=P.ref.current,$=[N,...bO(N)];return w==="forwards"?$:$.reverse()});return(w==="forwards"?j.reverse():j).flat()},[s]);return p.useEffect(()=>{const w=g.current;if(w){const E=j=>{const P=j.altKey||j.ctrlKey||j.metaKey;if(j.key==="Tab"&&!P){const J=document.activeElement,K=j.shiftKey;if(j.target===w&&K){var $;($=c.current)===null||$===void 0||$.focus();return}const ne=h({tabbingDirection:K?"backwards":"forwards"}),fe=ne.findIndex(R=>R===J);if(pm(ne.slice(fe+1)))j.preventDefault();else{var G,V;K?(G=c.current)===null||G===void 0||G.focus():(V=d.current)===null||V===void 0||V.focus()}}};return w.addEventListener("keydown",E),()=>w.removeEventListener("keydown",E)}},[s,h]),p.createElement(VF,{ref:u,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:C?void 0:"none"}},C&&p.createElement(Sw,{ref:c,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"forwards"});pm(w)}}),p.createElement(dm.Slot,{scope:n},p.createElement(Et.ol,xe({tabIndex:-1},a,{ref:v}))),C&&p.createElement(Sw,{ref:d,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"backwards"});pm(w)}}))}),rO="ToastFocusProxy",Sw=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=mf(rO,n);return p.createElement(Yp,xe({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:i=>{var s;const u=i.relatedTarget;!((s=a.viewport)!==null&&s!==void 0&&s.contains(u))&&r()}}))}),vf="Toast",oO="toast.swipeStart",aO="toast.swipeMove",iO="toast.swipeCancel",sO="toast.swipeEnd",lO=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[s=!0,u]=jr({prop:r,defaultProp:o,onChange:a});return p.createElement(Kn,{present:n||s},p.createElement(Dw,xe({open:s},i,{ref:t,onClose:()=>u(!1),onPause:Jn(e.onPause),onResume:Jn(e.onResume),onSwipeStart:rt(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:rt(e.onSwipeMove,c=>{const{x:d,y:g}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:rt(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:rt(e.onSwipeEnd,c=>{const{x:d,y:g}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),u(!1)})})))}),[uO,cO]=ww(vf,{onClose(){}}),Dw=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:s,onPause:u,onResume:c,onSwipeStart:d,onSwipeMove:g,onSwipeCancel:v,onSwipeEnd:y,...C}=e,h=mf(vf,n),[w,E]=p.useState(null),j=Jt(t,R=>E(R)),P=p.useRef(null),N=p.useRef(null),$=o||h.duration,G=p.useRef(0),V=p.useRef($),J=p.useRef(0),{onToastAdd:K,onToastRemove:me}=h,ye=Jn(()=>{var R;(w==null?void 0:w.contains(document.activeElement))&&((R=h.viewport)===null||R===void 0||R.focus()),i()}),ne=p.useCallback(R=>{!R||R===1/0||(window.clearTimeout(J.current),G.current=new Date().getTime(),J.current=window.setTimeout(ye,R))},[ye]);p.useEffect(()=>{const R=h.viewport;if(R){const W=()=>{ne(V.current),c==null||c()},oe=()=>{const pe=new Date().getTime()-G.current;V.current=V.current-pe,window.clearTimeout(J.current),u==null||u()};return R.addEventListener(fm,oe),R.addEventListener(gm,W),()=>{R.removeEventListener(fm,oe),R.removeEventListener(gm,W)}}},[h.viewport,$,u,c,ne]),p.useEffect(()=>{a&&!h.isClosePausedRef.current&&ne($)},[a,$,h.isClosePausedRef,ne]),p.useEffect(()=>(K(),()=>me()),[K,me]);const fe=p.useMemo(()=>w?Iw(w):null,[w]);return h.viewport?p.createElement(p.Fragment,null,fe&&p.createElement(dO,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},fe),p.createElement(uO,{scope:n,onClose:ye},wo.createPortal(p.createElement(dm.ItemSlot,{scope:n},p.createElement(_F,{asChild:!0,onEscapeKeyDown:rt(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||ye(),h.isFocusedToastEscapeKeyDownRef.current=!1})},p.createElement(Et.li,xe({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":h.swipeDirection},C,{ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:rt(e.onKeyDown,R=>{R.key==="Escape"&&(s==null||s(R.nativeEvent),R.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,ye()))}),onPointerDown:rt(e.onPointerDown,R=>{R.button===0&&(P.current={x:R.clientX,y:R.clientY})}),onPointerMove:rt(e.onPointerMove,R=>{if(!P.current)return;const W=R.clientX-P.current.x,oe=R.clientY-P.current.y,pe=!!N.current,se=["left","right"].includes(h.swipeDirection),Z=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,te=se?Z(0,W):0,U=se?0:Z(0,oe),Q=R.pointerType==="touch"?10:2,he={x:te,y:U},H={originalEvent:R,delta:he};pe?(N.current=he,bf(aO,g,H,{discrete:!1})):Tw(he,h.swipeDirection,Q)?(N.current=he,bf(oO,d,H,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(W)>Q||Math.abs(oe)>Q)&&(P.current=null)}),onPointerUp:rt(e.onPointerUp,R=>{const W=N.current,oe=R.target;if(oe.hasPointerCapture(R.pointerId)&&oe.releasePointerCapture(R.pointerId),N.current=null,P.current=null,W){const pe=R.currentTarget,se={originalEvent:R,delta:W};Tw(W,h.swipeDirection,h.swipeThreshold)?bf(sO,y,se,{discrete:!0}):bf(iO,v,se,{discrete:!0}),pe.addEventListener("click",Z=>Z.preventDefault(),{once:!0})}})})))),h.viewport))):null});Dw.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${vf}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const dO=e=>{const{__scopeToast:t,children:n,...r}=e,o=mf(vf,t),[a,i]=p.useState(!1),[s,u]=p.useState(!1);return mO(()=>i(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:p.createElement(Ed,{asChild:!0},p.createElement(Yp,r,a&&p.createElement(p.Fragment,null,o.label," ",n)))},fO=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.createElement(Et.div,xe({},r,{ref:t}))}),gO=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.createElement(Et.div,xe({},r,{ref:t}))}),pO="ToastAction",Fw=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?p.createElement(jw,{altText:n,asChild:!0},p.createElement(Aw,xe({},r,{ref:t}))):null});Fw.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${pO}\``)}};const hO="ToastClose",Aw=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=cO(hO,n);return p.createElement(jw,{asChild:!0},p.createElement(Et.button,xe({type:"button"},r,{ref:t,onClick:rt(e.onClick,o.onClose)})))}),jw=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return p.createElement(Et.div,xe({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))});function Iw(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),vO(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Iw(r))}}),t}function bf(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$g(o,a):o.dispatchEvent(a)}const Tw=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function mO(e=()=>{}){const t=Jn(e);Aa(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function vO(e){return e.nodeType===e.ELEMENT_NODE}function bO(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const xO=Ew,kw=nO,Pw=lO,Bw=fO,Nw=gO,Ow=Fw,$w=Aw,yO=Rg("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"},severity:{info:"info group text-info-foreground bg-info",warning:"warning group text-warning-foreground bg-warning",error:"error group border-error bg-error text-error-foreground",success:"success group text-success-foreground bg-success",none:""}},defaultVariants:{variant:"default"}}),Rw=xO,hm=q.forwardRef(({className:e,...t},n)=>l.jsx(kw,{ref:n,className:Te("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));hm.displayName=kw.displayName;const mm=q.forwardRef(({className:e,variant:t,severity:n="none",direction:r,...o},a)=>l.jsx(Pw,{ref:a,className:Te(yO({variant:t,severity:n}),e,r==="rtl"?"p-6 pl-0 pr-10 data-[state=closed]:slide-out-to-left-full":"p-6 pr-8 data-[state=closed]:slide-out-to-right-full"),dir:r,...o}));mm.displayName=Pw.displayName;const Mw=q.forwardRef(({className:e,...t},n)=>l.jsx(Ow,{ref:n,className:Te("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group-[.info]:border-muted/40 group-[.info]:hover:border-info/30 group-[.info]:hover:bg-info group-[.info]:hover:text-info-foreground group-[.info]:focus:ring-info","group-[.error]:border-muted/40 group-[.error]:hover:border-error/30 group-[.error]:hover:bg-error group-[.error]:hover:text-error-foreground group-[.error]:focus:ring-error","group-[.success]:border-muted/40 group-[.success]:hover:border-success/30 group-[.success]:hover:bg-success group-[.success]:hover:text-success-foreground group-[.success]:focus:ring-success","group-[.warning]:border-muted/40 group-[.warning]:hover:border-warning/30 group-[.warning]:hover:bg-warning group-[.warning]:hover:text-warning-foreground group-[.warning]:focus:ring-warning",e),...t}));Mw.displayName=Ow.displayName;const vm=q.forwardRef(({className:e,...t},n)=>l.jsx($w,{ref:n,className:Te("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}));vm.displayName=$w.displayName;const bm=q.forwardRef(({className:e,...t},n)=>l.jsx(Bw,{ref:n,className:Te("text-sm font-semibold",e),...t}));bm.displayName=Bw.displayName;const xm=q.forwardRef(({className:e,...t},n)=>l.jsx(Nw,{ref:n,className:Te("text-sm opacity-90",e),...t}));xm.displayName=Nw.displayName;const CO=5,wO=1e5;let ym=0;function EO(){return ym=(ym+1)%Number.MAX_VALUE,ym.toString()}const Cm=new Map,Lw=e=>{if(Cm.has(e))return;const t=setTimeout(()=>{Cm.delete(e),Pu({type:"REMOVE_TOAST",toastId:e})},wO);Cm.set(e,t)},_w=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,CO)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Lw(n):e.toasts.forEach(r=>{Lw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},xf=[];let yf={toasts:[]};function Pu(e){yf=_w(yf,e),xf.forEach(t=>{t(yf)})}function Vw({...e}){const t=EO(),n=o=>Pu({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Pu({type:"DISMISS_TOAST",toastId:t});return Pu({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Ww(){const[e,t]=q.useState(yf);return q.useEffect(()=>(xf.push(t),()=>{const n=xf.indexOf(t);n>-1&&xf.splice(n,1)}),[e]),{...e,toast:Vw,dismiss:n=>Pu({type:"DISMISS_TOAST",toastId:n})}}function SO(e){const{toasts:t}=Ww();let n=e.direction==="rtl";return l.jsxs(Rw,{swipeDirection:n?"left":"right",children:[t.map(function({id:r,title:o,description:a,action:i,...s}){return l.jsxs(mm,{direction:e.direction,...s,children:[l.jsxs("div",{className:"grid gap-1 text-start",children:[o&&l.jsx(bm,{children:o}),a&&l.jsx(xm,{children:a})]}),i,l.jsx(vm,{})]},r)}),l.jsx(hm,{className:Te("gap-2",n&&"fixed left-0")})]})}const Hw="Dialog",[Gw,D_]=cr(Hw),[DO,so]=Gw(Hw),FO=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=p.useRef(null),u=p.useRef(null),[c=!1,d]=jr({prop:r,defaultProp:o,onChange:a});return p.createElement(DO,{scope:t,triggerRef:s,contentRef:u,contentId:Ir(),titleId:Ir(),descriptionId:Ir(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(g=>!g),[d]),modal:i},n)},AO="DialogTrigger",jO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=so(AO,n),a=Jt(t,o.triggerRef);return p.createElement(Et.button,xe({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Em(o.open)},r,{ref:a,onClick:rt(e.onClick,o.onOpenToggle)}))}),zw="DialogPortal",[IO,Uw]=Gw(zw,{forceMount:void 0}),TO=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=so(zw,t);return p.createElement(IO,{scope:t,forceMount:n},p.Children.map(r,i=>p.createElement(Kn,{present:n||a.open},p.createElement(Ed,{asChild:!0,container:o},i))))},wm="DialogOverlay",kO=p.forwardRef((e,t)=>{const n=Uw(wm,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=so(wm,e.__scopeDialog);return a.modal?p.createElement(Kn,{present:r||a.open},p.createElement(PO,xe({},o,{ref:t}))):null}),PO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=so(wm,n);return p.createElement(Vp,{as:ci,allowPinchZoom:!0,shards:[o.contentRef]},p.createElement(Et.div,xe({"data-state":Em(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Bu="DialogContent",BO=p.forwardRef((e,t)=>{const n=Uw(Bu,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=so(Bu,e.__scopeDialog);return p.createElement(Kn,{present:r||a.open},a.modal?p.createElement(NO,xe({},o,{ref:t})):p.createElement(OO,xe({},o,{ref:t})))}),NO=p.forwardRef((e,t)=>{const n=so(Bu,e.__scopeDialog),r=p.useRef(null),o=Jt(t,n.contentRef,r);return p.useEffect(()=>{const a=r.current;if(a)return jd(a)},[]),p.createElement(Zw,xe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rt(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:rt(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:rt(e.onFocusOutside,a=>a.preventDefault())}))}),OO=p.forwardRef((e,t)=>{const n=so(Bu,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return p.createElement(Zw,xe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(u))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),Zw=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=so(Bu,n),u=p.useRef(null),c=Jt(t,u);return Fp(),p.createElement(p.Fragment,null,p.createElement(Ip,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},p.createElement(cu,xe({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Em(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),$O="DialogTitle",RO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=so($O,n);return p.createElement(Et.h2,xe({id:o.titleId},r,{ref:t}))}),MO="DialogDescription",LO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=so(MO,n);return p.createElement(Et.p,xe({id:o.descriptionId},r,{ref:t}))}),_O="DialogClose",VO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=so(_O,n);return p.createElement(Et.button,xe({type:"button"},r,{ref:t,onClick:rt(e.onClick,()=>o.onOpenChange(!1))}))});function Em(e){return e?"open":"closed"}const WO=FO,HO=jO,Xw=TO,Yw=kO,Jw=BO,Kw=RO,Qw=LO,GO=VO,qw=WO,zO=HO,eE=({className:e,...t})=>l.jsx(Xw,{className:Te(e),...t});eE.displayName=Xw.displayName;const tE=q.forwardRef(({className:e,...t},n)=>l.jsx(Yw,{ref:n,className:Te("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));tE.displayName=Yw.displayName;const Sm=q.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(eE,{dir:"rtl",children:[l.jsx(tE,{}),l.jsxs(Jw,{onPointerDownOutside:o=>{n.persist&&o.preventDefault()},ref:r,className:Te("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded md:w-full",e),...n,children:[t,l.jsxs(GO,{className:Te("absolute top-4 rounded opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",n.dir==="rtl"?" left-4":" right-4"),children:[l.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Sm.displayName=Jw.displayName;const nE=({className:e,...t})=>l.jsx("div",{className:Te("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});nE.displayName="DialogHeader";const rE=q.forwardRef(({className:e,...t},n)=>l.jsx(Kw,{ref:n,className:Te("text-start text-lg font-semibold leading-none tracking-tight",e),...t}));rE.displayName=Kw.displayName;const oE=q.forwardRef(({className:e,...t},n)=>l.jsx(Qw,{ref:n,className:Te("text-start text-sm text-muted-foreground",e),...t}));oE.displayName=Qw.displayName;const aE=({className:e,...t})=>l.jsx("div",{className:Te("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2",e),...t});aE.displayName="DialogFooter";const iE="Checkbox",[UO,F_]=cr(iE),[ZO,XO]=UO(iE),YO=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:u="on",onCheckedChange:c,...d}=e,[g,v]=p.useState(null),y=Jt(t,P=>v(P)),C=p.useRef(!1),h=g?!!g.closest("form"):!0,[w=!1,E]=jr({prop:o,defaultProp:a,onChange:c}),j=p.useRef(w);return p.useEffect(()=>{const P=g==null?void 0:g.form;if(P){const N=()=>E(j.current);return P.addEventListener("reset",N),()=>P.removeEventListener("reset",N)}},[g,E]),p.createElement(ZO,{scope:n,state:w,disabled:s},p.createElement(Et.button,xe({type:"button",role:"checkbox","aria-checked":Ii(w)?"mixed":w,"aria-required":i,"data-state":sE(w),"data-disabled":s?"":void 0,disabled:s,value:u},d,{ref:y,onKeyDown:rt(e.onKeyDown,P=>{P.key==="Enter"&&P.preventDefault()}),onClick:rt(e.onClick,P=>{E(N=>Ii(N)?!0:!N),h&&(C.current=P.isPropagationStopped(),C.current||P.stopPropagation())})})),h&&p.createElement(QO,{control:g,bubbles:!C.current,name:r,value:u,checked:w,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))}),JO="CheckboxIndicator",KO=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=XO(JO,n);return p.createElement(Kn,{present:r||Ii(a.state)||a.state===!0},p.createElement(Et.span,xe({"data-state":sE(a.state),"data-disabled":a.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),QO=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=p.useRef(null),i=Pb(n),s=wp(t);return p.useEffect(()=>{const u=a.current,c=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&g){const v=new Event("click",{bubbles:r});u.indeterminate=Ii(n),g.call(u,Ii(n)?!1:n),u.dispatchEvent(v)}},[i,n,r]),p.createElement("input",xe({type:"checkbox","aria-hidden":!0,defaultChecked:Ii(n)?!1:n},o,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ii(e){return e==="indeterminate"}function sE(e){return Ii(e)?"indeterminate":e?"checked":"unchecked"}const lE=YO,qO=KO,Dm=({id:e,label:t,sublabel:n,helperText:r,...o})=>l.jsxs("div",{className:"items-top flex gap-2 ",children:[l.jsx(uE,{id:e,...o}),(t||r)&&l.jsxs("div",{className:"grid gap-1.5 leading-none",children:[t&&l.jsx("label",{role:"checkbox",htmlFor:e,className:Te("cursor-pointer select-none text-sm font-medium leading-none pt-0.5",o.disabled&&"cursor-not-allowed text-muted-foreground opacity-70 "),children:t}),n&&l.jsx("label",{role:"checkbox",htmlFor:e,className:Te("cursor-pointer select-none text-sm text-muted-foreground",o.disabled&&"cursor-not-allowed text-muted-foreground opacity-70"),children:n}),r&&!o.disabled&&l.jsx("label",{role:"checkbox",htmlFor:e,className:Te("select-none text-xs text-red-500",o.disabled&&"cursor-not-allowed opacity-70"),children:r})]})]}),uE=q.forwardRef(({className:e,...t},n)=>l.jsx(lE,{ref:n,className:Te("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:l.jsxs(qO,{className:Te("flex items-center justify-center text-current"),children:[l.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:l.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})," "]})}));uE.displayName=lE.displayName;const cE=()=>l.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})}),e$=({size:e="normal",bodyColor:t="white",headerColor:n="gray-200",borders:r="all",highlightFirst:o=!1,direction:a="ltr",bordersWidth:i="1",pagination:s=!0,onRowClicked:u,clickable:c,...d})=>{var fe,R,W,oe,pe,se,Z,te;const[g,v]=p.useState(10),[y,C]=p.useState(null),[h,w]=p.useState(1);p.useState(null);const[E,j]=p.useState(d.rows),[P,N]=p.useState(null),[$,G]=p.useState(null),{slice:V,range:J}=Rb(d.rows,h,g,P,$);let K=a==="rtl",me={normal:"py-3 px-6",small:"px-3 py-1"};const ye=(U,Q)=>{Q&&(N(U),G(he=>he==="asc"?"desc":"asc"))},ne=()=>{(V==null?void 0:V.length)<1&&h!==1&&w(h-1),y&&w(y)};return p.useEffect(()=>{ne()},[V,h]),l.jsxs("div",{className:"relative flex flex-col gap-2 ",children:[d.isLoading?l.jsx(Eo,{className:"h-[105px] w-full"}):l.jsx(l.Fragment,{children:l.jsxs("div",{className:`overflow-x-auto rounded bg-${n}`,children:[d.headerTools&&l.jsx("div",{className:"flex flex-row items-center justify-between gap-2 border bg-background px-2 py-2",children:d.headerTools}),l.jsxs("table",{className:_e("w-full rounded bg-muted text-left text-sm text-muted-foreground",`bg-${n}`),children:[l.jsx("thead",{className:_e("bg-muted text-xs uppercase text-muted-foreground ",r==="rows"||r==="all"||r==="inner"?"border-b ":""),children:l.jsxs("tr",{children:[d.columns.map((U,Q)=>{if(!U.hidden)return l.jsxs("th",{onClick:()=>U.sortable&&ye(Q,U.sortable),scope:"col",colSpan:2,className:_e(U.sortable?"cursor-pointer hover:bg-muted-foreground/10":"",me[e],Q!==0&&(r==="cols"||r==="all"||r==="inner")?`border-r border-r-[${i}px] border-l border-l-[${i}px]`:""),children:[U.value,P===Q&&l.jsx("span",{children:$==="asc"?" ▲":" ▼"})]},Q)}),d.actions?l.jsx("th",{scope:"col",className:_e(me[e],"w-[calc(1%)] text-center"),children:((fe=d.texts)==null?void 0:fe.actions)??"Actions"}):null]})}),l.jsx("tbody",{className:t&&d.rows?`bg-${t}`:"bg-transparent",children:E?V==null?void 0:V.map((U,Q)=>{let he=Q==(V==null?void 0:V.length)-1;return l.jsxs("tr",{className:_e(" text-mute-foreground border bg-background ",c?"transition-all hover:bg-gray-100":"",!he&&(r==="all"||r==="rows"||r==="inner")?`border-b border-b-[${i}px]`:""),onClick:H=>u(U),children:[U==null?void 0:U.map((H,ge)=>{let ae=ge===0,be=ge===(U==null?void 0:U.length)-1,Me=K&&he&&be&&!d.actions,Ne=K&&he&&ae,We=!K&&he&&ae,Ke=!K&&he&&be&&!d.actions;if(!H.hidden)return l.jsxs("td",{colSpan:2,className:_e(me[e],o&&ae?"font-bold":"font-normal",Ne?"rounded-bl-none rounded-br":Me||We?"rounded-bl rounded-br-none":Ke?"rounded-bl-none rounded-br":"",!ae&&!be&&(r==="cols"||r==="inner"||r==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:!ae&&d.actions&&(r==="cols"||r==="inner"||r==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:""),children:[H.value," ",H.suffix&&H.suffix]},ge)}),d.actions&&l.jsx("td",{align:K?"right":"left",className:Te(K&&he&&"rounded-bl rounded-br-none",!K&&he&&"rounded-bl-none rounded-br"),colSpan:1,children:l.jsx("div",{className:"flex items-center justify-center",children:l.jsx(pi,{width:d.actionsWidth,size:d.actionsSize,direction:a,side:"right",items:d.actions,onItemSelect:H=>d.handleActionClick(H,U),trigger:l.jsx("div",{className:"flex w-fit cursor-pointer items-center justify-center rounded p-2 transition-all hover:bg-primary/20 ",children:l.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})})})]},Q)}):l.jsx("tr",{className:"bg-transparent",children:l.jsx("td",{colSpan:20,children:l.jsx("div",{className:_e("w-full rounded-b border p-5 text-center","bg-background"),children:((R=d.texts)==null?void 0:R.noData)??"No Data"})})})})]})]})}),s&&l.jsxs("div",{className:"flex flex-row items-center justify-between ",children:[J.length>1?l.jsxs("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded ",children:[l.jsx("div",{className:Te("flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",a==="rtl"&&"rotate-0"),onClick:()=>h<=1?w(J.length):w(h-1),children:l.jsx(cE,{})}),l.jsxs("div",{className:"flex flex-row items-center overflow-clip rounded transition-all",children:[J.length>6&&J.map((U,Q)=>{if(Q<=0)return l.jsx("button",{className:_e("w-10 p-1 text-xs hover:bg-gray-200",h===U?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>w(U),children:U},Q)}),(J==null?void 0:J.length)>6&&l.jsx("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:h!==0||h!==J.length-1?h:"...",value:h==1||h==J.length?"...":y||h,onChange:U=>C(parseInt(U.target.value)),onKeyDown:U=>{U.key==="Enter"&&(w(y),C(null))}}),(J==null?void 0:J.length)>6&&J.map((U,Q)=>{if(Q>=J.length-1)return l.jsx("button",{className:_e("w-10 p-1 text-xs hover:bg-gray-200",h===U?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>w(U),children:U},Q)}),(J==null?void 0:J.length)<=6&&J.map((U,Q)=>l.jsx("button",{className:_e("w-10 p-1 text-xs",h===U?"bg-primary text-primary-foreground ":"border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",a==="rtl"?Q===0?"rounded-r border-l-0":Q===J.length-1?"rounded-l border-r-0":"":Q===0?"rounded-l border-r-0":Q===J.length-1?"rounded-r border-l-0":""),onClick:()=>w(U),children:U},Q))]}),l.jsx("div",{onClick:()=>h>=J.length?w(1):w(h+1),className:Te("flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",a==="rtl"&&"rotate-180"),children:l.jsx(cE,{})})]}):l.jsx("div",{}),d.rows?l.jsxs("div",{className:"flex w-fit flex-row items-center gap-2 ",children:[l.jsxs("div",{className:"text-xs ",children:[d.rows.length," ",((W=d.texts)==null?void 0:W.items)??"Items"]}),l.jsxs("select",{value:g,className:"h-6 cursor-pointer rounded border bg-background px-2 text-xs",onChange:U=>{v(parseInt(U.target.value))},children:[l.jsxs("option",{value:10,style:{fontSize:10},children:["10 / ",((oe=d.texts)==null?void 0:oe.page)??"Page"]}),l.jsxs("option",{value:20,style:{fontSize:10},children:["20 / ",((pe=d.texts)==null?void 0:pe.page)??"Page"]}),l.jsxs("option",{value:30,style:{fontSize:10},children:["30 / ",((se=d.texts)==null?void 0:se.page)??"Page"]}),l.jsxs("option",{value:50,style:{fontSize:10},children:["50 / ",((Z=d.texts)==null?void 0:Z.page)??"Page"]}),l.jsxs("option",{value:100,style:{fontSize:10},children:["100 / ",((te=d.texts)==null?void 0:te.page)??"Page"]})]})]}):l.jsx("div",{})]})]})};function _s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function t$(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function dE(...e){return t=>e.forEach(n=>t$(n,t))}function Nu(...e){return p.useCallback(dE(...e),e)}function n$(e,t=[]){let n=[];function r(a,i){const s=p.createContext(i),u=n.length;n=[...n,i];function c(g){const{scope:v,children:y,...C}=g,h=(v==null?void 0:v[e][u])||s,w=p.useMemo(()=>C,Object.values(C));return p.createElement(h.Provider,{value:w},y)}function d(g,v){const y=(v==null?void 0:v[e][u])||s,C=p.useContext(y);if(C)return C;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,d]}const o=()=>{const a=n.map(i=>p.createContext(i));return function(s){const u=(s==null?void 0:s[e])||a;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return o.scopeName=e,[r,r$(o,...t)]}function r$(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:u,scopeName:c})=>{const g=u(a)[`__scope${c}`];return{...s,...g}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const Fm=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},o$=q["useId".toString()]||(()=>{});let a$=0;function Am(e){const[t,n]=q.useState(o$());return Fm(()=>{e||n(r=>r??String(a$++))},[e]),e||(t?`radix-${t}`:"")}function Ti(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function i$({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=s$({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Ti(n),u=p.useCallback(c=>{if(a){const g=typeof c=="function"?c(e):c;g!==e&&s(g)}else o(c)},[a,e,o,s]);return[i,u]}function s$({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),a=Ti(t);return p.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const jm=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),a=o.find(u$);if(a){const i=a.props.children,s=o.map(u=>u===a?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:u);return p.createElement(Im,xe({},r,{ref:t}),p.isValidElement(i)?p.cloneElement(i,void 0,s):null)}return p.createElement(Im,xe({},r,{ref:t}),n)});jm.displayName="Slot";const Im=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...c$(r,n.props),ref:dE(t,n.ref)}):p.Children.count(n)>1?p.Children.only(null):null});Im.displayName="SlotClone";const l$=({children:e})=>p.createElement(p.Fragment,null,e);function u$(e){return p.isValidElement(e)&&e.type===l$}function c$(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{a==null||a(...s),o==null||o(...s)}:r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const Cf=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?jm:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(s,xe({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function d$(e,t){e&&wo.flushSync(()=>e.dispatchEvent(t))}function f$(e){const t=Ti(e);p.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const Tm="dismissableLayer.update",g$="dismissableLayer.pointerDownOutside",p$="dismissableLayer.focusOutside";let fE;const h$=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m$=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=e,c=p.useContext(h$),[d,g]=p.useState(null),[,v]=p.useState({}),y=Nu(t,G=>g(G)),C=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=C.indexOf(h),E=d?C.indexOf(d):-1,j=c.layersWithOutsidePointerEventsDisabled.size>0,P=E>=w,N=v$(G=>{const V=G.target,J=[...c.branches].some(K=>K.contains(V));!P||J||(o==null||o(G),i==null||i(G),G.defaultPrevented||s==null||s())}),$=b$(G=>{const V=G.target;[...c.branches].some(K=>K.contains(V))||(a==null||a(G),i==null||i(G),G.defaultPrevented||s==null||s())});return f$(G=>{E===c.layers.size-1&&(r==null||r(G),!G.defaultPrevented&&s&&(G.preventDefault(),s()))}),p.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(fE=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),gE(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=fE)}},[d,n,c]),p.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),gE())},[d,c]),p.useEffect(()=>{const G=()=>v({});return document.addEventListener(Tm,G),()=>document.removeEventListener(Tm,G)},[]),p.createElement(Cf.div,xe({},u,{ref:y,style:{pointerEvents:j?P?"auto":"none":void 0,...e.style},onFocusCapture:_s(e.onFocusCapture,$.onFocusCapture),onBlurCapture:_s(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:_s(e.onPointerDownCapture,N.onPointerDownCapture)}))});function v$(e){const t=Ti(e),n=p.useRef(!1),r=p.useRef(()=>{});return p.useEffect(()=>{const o=i=>{if(i.target&&!n.current){let u=function(){pE(g$,t,s,{discrete:!0})};const s={originalEvent:i};i.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=u,document.addEventListener("click",r.current,{once:!0})):u()}n.current=!1},a=window.setTimeout(()=>{document.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),document.removeEventListener("pointerdown",o),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function b$(e){const t=Ti(e),n=p.useRef(!1);return p.useEffect(()=>{const r=o=>{o.target&&!n.current&&pE(p$,t,{originalEvent:o},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function gE(){const e=new CustomEvent(Tm);document.dispatchEvent(e)}function pE(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?d$(o,a):o.dispatchEvent(a)}const km="focusScope.autoFocusOnMount",Pm="focusScope.autoFocusOnUnmount",hE={bubbles:!1,cancelable:!0},x$=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,u]=p.useState(null),c=Ti(o),d=Ti(a),g=p.useRef(null),v=Nu(t,h=>u(h)),y=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let h=function(E){if(y.paused||!s)return;const j=E.target;s.contains(j)?g.current=j:ki(g.current,{select:!0})},w=function(E){y.paused||!s||s.contains(E.relatedTarget)||ki(g.current,{select:!0})};return document.addEventListener("focusin",h),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w)}}},[r,s,y.paused]),p.useEffect(()=>{if(s){bE.add(y);const h=document.activeElement;if(!s.contains(h)){const E=new CustomEvent(km,hE);s.addEventListener(km,c),s.dispatchEvent(E),E.defaultPrevented||(y$(D$(mE(s)),{select:!0}),document.activeElement===h&&ki(s))}return()=>{s.removeEventListener(km,c),setTimeout(()=>{const E=new CustomEvent(Pm,hE);s.addEventListener(Pm,d),s.dispatchEvent(E),E.defaultPrevented||ki(h??document.body,{select:!0}),s.removeEventListener(Pm,d),bE.remove(y)},0)}}},[s,c,d,y]);const C=p.useCallback(h=>{if(!n&&!r||y.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,E=document.activeElement;if(w&&E){const j=h.currentTarget,[P,N]=C$(j);P&&N?!h.shiftKey&&E===N?(h.preventDefault(),n&&ki(P,{select:!0})):h.shiftKey&&E===P&&(h.preventDefault(),n&&ki(N,{select:!0})):E===j&&h.preventDefault()}},[n,r,y.paused]);return p.createElement(Cf.div,xe({tabIndex:-1},i,{ref:v,onKeyDown:C}))});function y$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ki(r,{select:t}),document.activeElement!==n)return}function C$(e){const t=mE(e),n=vE(t,e),r=vE(t.reverse(),e);return[n,r]}function mE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vE(e,t){for(const n of e)if(!w$(n,{upTo:t}))return n}function w$(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function E$(e){return e instanceof HTMLInputElement&&"select"in e}function ki(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&E$(e)&&t&&e.select()}}const bE=S$();function S$(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xE(e,t),e.unshift(t)},remove(t){var n;e=xE(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function xE(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function D$(e){return e.filter(t=>t.tagName!=="A")}const F$=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?wo.createPortal(p.createElement(Cf.div,xe({},o,{ref:t})),r):null});function A$(e,t){return p.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const wf=e=>{const{present:t,children:n}=e,r=j$(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),a=Nu(r.ref,o.ref);return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:a}):null};wf.displayName="Presence";function j$(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[s,u]=A$(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Ef(r.current);a.current=s==="mounted"?c:"none"},[s]),Fm(()=>{const c=r.current,d=o.current;if(d!==e){const v=a.current,y=Ef(c);e?u("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&v!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Fm(()=>{if(t){const c=g=>{const y=Ef(r.current).includes(g.animationName);g.target===t&&y&&wo.flushSync(()=>u("ANIMATION_END"))},d=g=>{g.target===t&&(a.current=Ef(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Ef(e){return(e==null?void 0:e.animationName)||"none"}let Bm=0;function I$(){p.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:yE()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:yE()),Bm++,()=>{Bm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Bm--}},[])}function yE(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var CE=ux(),Nm=function(){},Sf=q.forwardRef(function(e,t){var n=q.useRef(null),r=q.useState({onScrollCapture:Nm,onWheelCapture:Nm,onTouchMoveCapture:Nm}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,C=e.inert,h=e.allowPinchZoom,w=e.as,E=w===void 0?"div":w,j=$p(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=v,N=lx([n,t]),$=zn(zn({},j),o);return q.createElement(q.Fragment,null,d&&q.createElement(P,{sideCar:CE,removeScrollBar:c,shards:g,noIsolation:y,inert:C,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),i?q.cloneElement(q.Children.only(s),zn(zn({},$),{ref:N})):q.createElement(E,zn({},$,{className:u,ref:N}),s))});Sf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Sf.classNames={fullWidth:fu,zeroRight:du};var Om=!1;if(typeof window<"u")try{var Df=Object.defineProperty({},"passive",{get:function(){return Om=!0,!0}});window.addEventListener("test",Df,Df),window.removeEventListener("test",Df,Df)}catch{Om=!1}var Vs=Om?{passive:!1}:!1,T$=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},k$=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},wE=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=EE(e,n);if(r){var o=SE(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},P$=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},B$=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},EE=function(e,t){return e==="v"?T$(t):k$(t)},SE=function(e,t){return e==="v"?P$(t):B$(t)},N$=function(e,t){return e==="h"&&t==="rtl"?-1:1},O$=function(e,t,n,r,o){var a=N$(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,u=t.contains(s),c=!1,d=i>0,g=0,v=0;do{var y=SE(e,s),C=y[0],h=y[1],w=y[2],E=h-w-a*C;(C||E)&&EE(e,s)&&(g+=E,v+=C),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(d&&(o&&g===0||!o&&i>g)||!d&&(o&&v===0||!o&&-i>v))&&(c=!0),c},Ff=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},DE=function(e){return[e.deltaX,e.deltaY]},FE=function(e){return e&&"current"in e?e.current:e},$$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},R$=function(e){return`
|
|
228
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
229
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
230
|
-
`)},M$=0,Ws=[];function L$(e){var t=q.useRef([]),n=q.useRef([0,0]),r=q.useRef(),o=q.useState(M$++)[0],a=q.useState(function(){return Mp()})[0],i=q.useRef(e);q.useEffect(function(){i.current=e},[e]),q.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=sx([e.lockRef.current],(e.shards||[]).map(FE),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=q.useCallback(function(h,w){if("touches"in h&&h.touches.length===2)return!i.current.allowPinchZoom;var E=Ff(h),j=n.current,P="deltaX"in h?h.deltaX:j[0]-E[0],N="deltaY"in h?h.deltaY:j[1]-E[1],$,G=h.target,V=Math.abs(P)>Math.abs(N)?"h":"v";if("touches"in h&&V==="h"&&G.type==="range")return!1;var J=wE(V,G);if(!J)return!0;if(J?$=V:($=V==="v"?"h":"v",J=wE(V,G)),!J)return!1;if(!r.current&&"changedTouches"in h&&(P||N)&&(r.current=$),!$)return!0;var K=r.current||$;return O$(K,w,h,K==="h"?P:N,!0)},[]),u=q.useCallback(function(h){var w=h;if(!(!Ws.length||Ws[Ws.length-1]!==a)){var E="deltaY"in w?DE(w):Ff(w),j=t.current.filter(function($){return $.name===w.type&&$.target===w.target&&$$($.delta,E)})[0];if(j&&j.should){w.preventDefault();return}if(!j){var P=(i.current.shards||[]).map(FE).filter(Boolean).filter(function($){return $.contains(w.target)}),N=P.length>0?s(w,P[0]):!i.current.noIsolation;N&&w.preventDefault()}}},[]),c=q.useCallback(function(h,w,E,j){var P={name:h,delta:w,target:E,should:j};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(N){return N!==P})},1)},[]),d=q.useCallback(function(h){n.current=Ff(h),r.current=void 0},[]),g=q.useCallback(function(h){c(h.type,DE(h),h.target,s(h,e.lockRef.current))},[]),v=q.useCallback(function(h){c(h.type,Ff(h),h.target,s(h,e.lockRef.current))},[]);q.useEffect(function(){return Ws.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",u,Vs),document.addEventListener("touchmove",u,Vs),document.addEventListener("touchstart",d,Vs),function(){Ws=Ws.filter(function(h){return h!==a}),document.removeEventListener("wheel",u,Vs),document.removeEventListener("touchmove",u,Vs),document.removeEventListener("touchstart",d,Vs)}},[]);var y=e.removeScrollBar,C=e.inert;return q.createElement(q.Fragment,null,C?q.createElement(a,{styles:R$(o)}):null,y?q.createElement(px,{gapMode:"margin"}):null)}const _$=dx(CE,L$);var AE=q.forwardRef(function(e,t){return q.createElement(Sf,zn({},e,{ref:t,sideCar:_$}))});AE.classNames=Sf.classNames;const V$=AE,jE="Dialog",[IE,j_]=n$(jE),[W$,Pi]=IE(jE),H$=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=p.useRef(null),u=p.useRef(null),[c=!1,d]=i$({prop:r,defaultProp:o,onChange:a});return p.createElement(W$,{scope:t,triggerRef:s,contentRef:u,contentId:Am(),titleId:Am(),descriptionId:Am(),open:c,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(g=>!g),[d]),modal:i},n)},TE="DialogPortal",[G$,kE]=IE(TE,{forceMount:void 0}),z$=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Pi(TE,t);return p.createElement(G$,{scope:t,forceMount:n},p.Children.map(r,i=>p.createElement(wf,{present:n||a.open},p.createElement(F$,{asChild:!0,container:o},i))))},$m="DialogOverlay",U$=p.forwardRef((e,t)=>{const n=kE($m,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Pi($m,e.__scopeDialog);return a.modal?p.createElement(wf,{present:r||a.open},p.createElement(Z$,xe({},o,{ref:t}))):null}),Z$=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pi($m,n);return p.createElement(V$,{as:jm,allowPinchZoom:!0,shards:[o.contentRef]},p.createElement(Cf.div,xe({"data-state":BE(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ou="DialogContent",X$=p.forwardRef((e,t)=>{const n=kE(Ou,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Pi(Ou,e.__scopeDialog);return p.createElement(wf,{present:r||a.open},a.modal?p.createElement(Y$,xe({},o,{ref:t})):p.createElement(J$,xe({},o,{ref:t})))}),Y$=p.forwardRef((e,t)=>{const n=Pi(Ou,e.__scopeDialog),r=p.useRef(null),o=Nu(t,n.contentRef,r);return p.useEffect(()=>{const a=r.current;if(a)return jd(a)},[]),p.createElement(PE,xe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_s(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:_s(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:_s(e.onFocusOutside,a=>a.preventDefault())}))}),J$=p.forwardRef((e,t)=>{const n=Pi(Ou,e.__scopeDialog),r=p.useRef(!1);return p.createElement(PE,xe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,o),!o.defaultPrevented){var i;r.current||(i=n.triggerRef.current)===null||i===void 0||i.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var a,i;(a=e.onInteractOutside)===null||a===void 0||a.call(e,o),o.defaultPrevented||(r.current=!0);const s=o.target;((i=n.triggerRef.current)===null||i===void 0?void 0:i.contains(s))&&o.preventDefault()}}))}),PE=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Pi(Ou,n),u=p.useRef(null),c=Nu(t,u);return I$(),p.createElement(p.Fragment,null,p.createElement(x$,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},p.createElement(m$,xe({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":BE(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function BE(e){return e?"open":"closed"}const K$=H$,Q$=z$,q$=U$,eR=X$;var NE=1,tR=.9,nR=.3,Rm=.1,rR=0,Mm=.999,oR=.9999,aR=.99,OE=/[\\\/\-_+.# \t"@\[\(\{&]/,iR=/[\\\/\-_+.# \t"@\[\(\{&]/g;function Lm(e,t,n,r,o,a){if(a===t.length)return o===e.length?NE:aR;for(var i=r.charAt(a),s=n.indexOf(i,o),u=0,c,d,g;s>=0;)c=Lm(e,t,n,r,s+1,a+1),c>u&&(s===o?c*=NE:OE.test(e.charAt(s-1))?(c*=tR,g=e.slice(o,s-1).match(iR),g&&o>0&&(c*=Math.pow(Mm,g.length))):OE.test(e.slice(o,s-1))?(c*=rR,o>0&&(c*=Math.pow(Mm,s-o))):(c*=nR,o>0&&(c*=Math.pow(Mm,s-o))),e.charAt(s)!==t.charAt(a)&&(c*=oR)),c<Rm&&n.charAt(s-1)===r.charAt(a+1)&&n.charAt(s-1)!==r.charAt(a)&&(d=Lm(e,t,n,r,s+1,a+2),d*Rm>c&&(c=d*Rm)),c>u&&(u=c),s=n.indexOf(i,s+1);return u}function sR(e,t){return Lm(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}var lR=sR;const uR=zl(lR);var cR='[cmdk-list-sizer=""]',$u='[cmdk-group=""]',_m='[cmdk-group-items=""]',dR='[cmdk-group-heading=""]',$E='[cmdk-item=""]',RE=`${$E}:not([aria-disabled="true"])`,Vm="cmdk-item-select",Oa="data-value",fR=(e,t)=>uR(e,t),ME=q.createContext(void 0),Ru=()=>q.useContext(ME),LE=q.createContext(void 0),Wm=()=>q.useContext(LE),_E=q.createContext(void 0),VE=q.forwardRef((e,t)=>{let n=q.useRef(null),r=Gs(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=Gs(()=>new Set),a=Gs(()=>new Map),i=Gs(()=>new Map),s=Gs(()=>new Set),u=WE(e),{label:c,children:d,value:g,onValueChange:v,filter:y,shouldFilter:C,...h}=e,w=q.useId(),E=q.useId(),j=q.useId(),P=ER();Hs(()=>{if(g!==void 0){let Z=g.trim().toLowerCase();r.current.value=Z,P(6,me),N.emit()}},[g]);let N=q.useMemo(()=>({subscribe:Z=>(s.current.add(Z),()=>s.current.delete(Z)),snapshot:()=>r.current,setState:(Z,te,U)=>{var Q,he,H;if(!Object.is(r.current[Z],te)){if(r.current[Z]=te,Z==="search")K(),V(),P(1,J);else if(Z==="value")if(((Q=u.current)==null?void 0:Q.value)!==void 0){(H=(he=u.current).onValueChange)==null||H.call(he,te);return}else U||P(5,me);N.emit()}},emit:()=>{s.current.forEach(Z=>Z())}}),[]),$=q.useMemo(()=>({value:(Z,te)=>{te!==i.current.get(Z)&&(i.current.set(Z,te),r.current.filtered.items.set(Z,G(te)),P(2,()=>{V(),N.emit()}))},item:(Z,te)=>(o.current.add(Z),te&&(a.current.has(te)?a.current.get(te).add(Z):a.current.set(te,new Set([Z]))),P(3,()=>{K(),V(),r.current.value||J(),N.emit()}),()=>{i.current.delete(Z),o.current.delete(Z),r.current.filtered.items.delete(Z),P(4,()=>{K(),J(),N.emit()})}),group:Z=>(a.current.has(Z)||a.current.set(Z,new Set),()=>{i.current.delete(Z),a.current.delete(Z)}),filter:()=>u.current.shouldFilter,label:c||e["aria-label"],listId:w,inputId:j,labelId:E}),[]);function G(Z){var te;let U=((te=u.current)==null?void 0:te.filter)??fR;return Z?U(Z,r.current.search):0}function V(){if(!n.current||!r.current.search||u.current.shouldFilter===!1)return;let Z=r.current.filtered.items,te=[];r.current.filtered.groups.forEach(Q=>{let he=a.current.get(Q),H=0;he.forEach(ge=>{let ae=Z.get(ge);H=Math.max(ae,H)}),te.push([Q,H])});let U=n.current.querySelector(cR);ne().sort((Q,he)=>{let H=Q.getAttribute(Oa),ge=he.getAttribute(Oa);return(Z.get(ge)??0)-(Z.get(H)??0)}).forEach(Q=>{let he=Q.closest(_m);he?he.appendChild(Q.parentElement===he?Q:Q.closest(`${_m} > *`)):U.appendChild(Q.parentElement===U?Q:Q.closest(`${_m} > *`))}),te.sort((Q,he)=>he[1]-Q[1]).forEach(Q=>{let he=n.current.querySelector(`${$u}[${Oa}="${Q[0]}"]`);he==null||he.parentElement.appendChild(he)})}function J(){let Z=ne().find(U=>!U.ariaDisabled),te=Z==null?void 0:Z.getAttribute(Oa);N.setState("value",te||void 0)}function K(){if(!r.current.search||u.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let Z=0;for(let te of o.current){let U=i.current.get(te),Q=G(U);r.current.filtered.items.set(te,Q),Q>0&&Z++}for(let[te,U]of a.current)for(let Q of U)if(r.current.filtered.items.get(Q)>0){r.current.filtered.groups.add(te);break}r.current.filtered.count=Z}function me(){var Z,te,U;let Q=ye();Q&&(((Z=Q.parentElement)==null?void 0:Z.firstChild)===Q&&((U=(te=Q.closest($u))==null?void 0:te.querySelector(dR))==null||U.scrollIntoView({block:"nearest"})),Q.scrollIntoView({block:"nearest"}))}function ye(){return n.current.querySelector(`${$E}[aria-selected="true"]`)}function ne(){return Array.from(n.current.querySelectorAll(RE))}function fe(Z){let te=ne()[Z];te&&N.setState("value",te.getAttribute(Oa))}function R(Z){var te;let U=ye(),Q=ne(),he=Q.findIndex(ge=>ge===U),H=Q[he+Z];(te=u.current)!=null&&te.loop&&(H=he+Z<0?Q[Q.length-1]:he+Z===Q.length?Q[0]:Q[he+Z]),H&&N.setState("value",H.getAttribute(Oa))}function W(Z){let te=ye(),U=te==null?void 0:te.closest($u),Q;for(;U&&!Q;)U=Z>0?CR(U,$u):wR(U,$u),Q=U==null?void 0:U.querySelector(RE);Q?N.setState("value",Q.getAttribute(Oa)):R(Z)}let oe=()=>fe(ne().length-1),pe=Z=>{Z.preventDefault(),Z.metaKey?oe():Z.altKey?W(1):R(1)},se=Z=>{Z.preventDefault(),Z.metaKey?fe(0):Z.altKey?W(-1):R(-1)};return q.createElement("div",{ref:Mu([n,t]),...h,"cmdk-root":"",onKeyDown:Z=>{var te;if((te=h.onKeyDown)==null||te.call(h,Z),!Z.defaultPrevented)switch(Z.key){case"n":case"j":{Z.ctrlKey&&pe(Z);break}case"ArrowDown":{pe(Z);break}case"p":case"k":{Z.ctrlKey&&se(Z);break}case"ArrowUp":{se(Z);break}case"Home":{Z.preventDefault(),fe(0);break}case"End":{Z.preventDefault(),oe();break}case"Enter":{Z.preventDefault();let U=ye();if(U){let Q=new Event(Vm);U.dispatchEvent(Q)}}}}},q.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:SR},c),q.createElement(LE.Provider,{value:N},q.createElement(ME.Provider,{value:$},d)))}),gR=q.forwardRef((e,t)=>{let n=q.useId(),r=q.useRef(null),o=q.useContext(_E),a=Ru(),i=WE(e);Hs(()=>a.item(n,o),[]);let s=HE(n,r,[e.value,e.children,r]),u=Wm(),c=zs(E=>E.value&&E.value===s.current),d=zs(E=>a.filter()===!1?!0:E.search?E.filtered.items.get(n)>0:!0);q.useEffect(()=>{let E=r.current;if(!(!E||e.disabled))return E.addEventListener(Vm,g),()=>E.removeEventListener(Vm,g)},[d,e.onSelect,e.disabled]);function g(){var E,j;(j=(E=i.current).onSelect)==null||j.call(E,s.current)}function v(){u.setState("value",s.current,!0)}if(!d)return null;let{disabled:y,value:C,onSelect:h,...w}=e;return q.createElement("div",{ref:Mu([r,t]),...w,"cmdk-item":"",role:"option","aria-disabled":y||void 0,"aria-selected":c||void 0,"data-selected":c||void 0,onPointerMove:y?void 0:v,onClick:y?void 0:g},e.children)}),pR=q.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=q.useId(),i=q.useRef(null),s=q.useRef(null),u=q.useId(),c=Ru(),d=zs(v=>c.filter()===!1?!0:v.search?v.filtered.groups.has(a):!0);Hs(()=>c.group(a),[]),HE(a,i,[e.value,e.heading,s]);let g=q.createElement(_E.Provider,{value:a},r);return q.createElement("div",{ref:Mu([i,t]),...o,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&q.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),q.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},g))}),hR=q.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=q.useRef(null),a=zs(i=>!i.search);return!n&&!a?null:q.createElement("div",{ref:Mu([o,t]),...r,"cmdk-separator":"",role:"separator"})}),mR=q.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Wm(),i=zs(u=>u.search),s=Ru();return q.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),q.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,id:s.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),n==null||n(u.target.value)}})}),vR=q.forwardRef((e,t)=>{let{children:n,...r}=e,o=q.useRef(null),a=q.useRef(null),i=Ru();return q.useEffect(()=>{if(a.current&&o.current){let s=a.current,u=o.current,c,d=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let g=s.getBoundingClientRect().height;u.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return d.observe(s),()=>{cancelAnimationFrame(c),d.unobserve(s)}}},[]),q.createElement("div",{ref:Mu([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:i.listId,"aria-labelledby":i.inputId},q.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),bR=q.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:o,...a}=e;return q.createElement(K$,{open:n,onOpenChange:r},q.createElement(Q$,{container:o},q.createElement(q$,{"cmdk-overlay":""}),q.createElement(eR,{"aria-label":e.label,"cmdk-dialog":""},q.createElement(VE,{ref:t,...a}))))}),xR=q.forwardRef((e,t)=>{let n=q.useRef(!0),r=zs(o=>o.filtered.count===0);return q.useEffect(()=>{n.current=!1},[]),n.current||!r?null:q.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),yR=q.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return q.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},q.createElement("div",{"aria-hidden":!0},r))}),gr=Object.assign(VE,{List:vR,Item:gR,Input:mR,Group:pR,Separator:hR,Dialog:bR,Empty:xR,Loading:yR});function CR(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function wR(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function WE(e){let t=q.useRef(e);return Hs(()=>{t.current=e}),t}var Hs=typeof window>"u"?q.useEffect:q.useLayoutEffect;function Gs(e){let t=q.useRef();return t.current===void 0&&(t.current=e()),t}function Mu(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function zs(e){let t=Wm(),n=()=>e(t.snapshot());return q.useSyncExternalStore(t.subscribe,n,n)}function HE(e,t,n){let r=q.useRef(),o=Ru();return Hs(()=>{var a;let i=(()=>{var s;for(let u of n){if(typeof u=="string")return u.trim().toLowerCase();if(typeof u=="object"&&"current"in u&&u.current)return(s=u.current.textContent)==null?void 0:s.trim().toLowerCase()}})();o.value(e,i),(a=t.current)==null||a.setAttribute(Oa,i),r.current=i}),r}var ER=()=>{let[e,t]=q.useState(),n=Gs(()=>new Map);return Hs(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}},SR={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Af=q.forwardRef(({className:e,...t},n)=>l.jsx(gr,{ref:n,className:Te("flex h-full w-full flex-col overflow-hidden rounded bg-popover text-popover-foreground",e),...t}));Af.displayName=gr.displayName;const DR=({children:e,...t})=>l.jsx(qw,{...t,children:l.jsx(Sm,{className:"overflow-hidden p-0 shadow-lg",children:l.jsx(Af,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Hm=q.forwardRef(({className:e,...t},n)=>l.jsxs("div",{dir:t.dir,className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 shrink-0 opacity-50",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("circle",{cx:"11",cy:"11",r:"8"}),l.jsx("path",{d:"m21 21-4.3-4.3"})]}),l.jsx(gr.Input,{ref:n,className:Te("flex h-11 w-full rounded bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Hm.displayName=gr.Input.displayName;const GE=q.forwardRef(({className:e,...t},n)=>l.jsx(gr.List,{ref:n,className:Te("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));GE.displayName=gr.List.displayName;const Gm=q.forwardRef((e,t)=>l.jsx(gr.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Gm.displayName=gr.Empty.displayName;const zm=q.forwardRef(({className:e,...t},n)=>l.jsx(gr.Group,{ref:n,className:Te("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));zm.displayName=gr.Group.displayName;const zE=q.forwardRef(({className:e,...t},n)=>l.jsx(gr.Separator,{ref:n,className:Te("-mx-1 h-px bg-border",e),...t}));zE.displayName=gr.Separator.displayName;const Um=q.forwardRef(({className:e,...t},n)=>l.jsx(gr.Item,{ref:n,className:Te("relative flex cursor-default select-none items-center rounded-inner px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Um.displayName=gr.Item.displayName;const UE=({className:e,...t})=>l.jsx("span",{className:Te("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});UE.displayName="CommandShortcut";const FR=e=>{var a,i,s,u,c;const[t,n]=q.useState(!1),[r,o]=q.useState((a=e.defaultValue)==null?void 0:a.value);return l.jsx(hh,{className:"w-[200px] p-0",open:t,disableTrigger:e.isLoading,onOpenChange:n,trigger:l.jsxs("div",{className:"relative flex max-h-fit flex-col items-start gap-2 ",children:[e.label&&l.jsx(Ea,{children:e.label}),e.isLoading?l.jsx(Eo,{className:"h-[38px] w-[200px]"}):l.jsxs(Qe,{disabled:e.isLoading,variant:"outline",role:"combobox","aria-expanded":t,className:"h-[38px] w-[200px] justify-between",children:[r?(i=e.items.find(d=>d.value===r))==null?void 0:i.label:((s=e.texts)==null?void 0:s.placeholder)??"Select item...",l.jsxs("svg",{"aria-label":"Expand Up-Down Icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 shrink-0 opacity-50",children:[l.jsx("path",{d:"m7 15 5 5 5-5"}),l.jsx("path",{d:"m7 9 5-5 5 5"})]})]})]}),children:l.jsxs(Af,{children:[l.jsx(Hm,{dir:e.direction,placeholder:((u=e.texts)==null?void 0:u.searchPlaceholder)??"Search items..."}),l.jsx(Gm,{children:((c=e.texts)==null?void 0:c.nothingFound)??"No framework found."}),l.jsx(zm,{children:e.items.map(d=>l.jsxs(Um,{dir:e.direction,className:"flex flex-row gap-1",onSelect:g=>{o(g===r?"":g),n(!1)},children:[l.jsx("svg",{"aria-label":"Check Mark Icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:Te("h-4 w-4",r===d.value?"opacity-100":"opacity-0"),children:l.jsx("polyline",{points:"20 6 9 17 4 12"})}),d.label]},d.value))})]})})},Zm=q.forwardRef(({className:e,...t},n)=>l.jsx("div",{className:"relative w-full overflow-auto rounded border",children:l.jsx("table",{ref:n,className:Te("w-full caption-bottom text-sm",e),...t})}));Zm.displayName="Table";const Xm=q.forwardRef(({className:e,...t},n)=>l.jsx("thead",{ref:n,className:Te("[&_tr]:border-b","bg-muted/50",e),...t}));Xm.displayName="TableHeader";const Ym=q.forwardRef(({className:e,...t},n)=>l.jsx("th",{ref:n,className:Te(" text-start align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&:not(:last-child)&:not(:first-child)]:border-x",t.condensed?"h-8":"h-12",t.clickable?"px-1":"px-4",t.clickable?" [&:not(:last-child)&:not(:first-child)]:p-1":"px-4",e),...t}));Ym.displayName="TableHead";const Jm=q.forwardRef(({className:e,...t},n)=>l.jsx("tbody",{ref:n,className:Te("border-none",e),...t}));Jm.displayName="TableBody";const ZE=q.forwardRef(({className:e,...t},n)=>l.jsx("tfoot",{ref:n,className:Te("bg-primary font-medium text-primary-foreground",e),...t}));ZE.displayName="TableFooter";const Lu=q.forwardRef(({className:e,...t},n)=>l.jsx("tr",{ref:n,className:Te("transition-colors data-[state=selected]:bg-muted","[&:not(:last-child)&:not(:first-child)]:border-y","[&:not(:last-child)]:border-b",e),...t}));Lu.displayName="TableRow";const jf=q.forwardRef(({className:e,...t},n)=>l.jsx("td",{ref:n,className:Te(t.condensed?"p-0 px-4":"p-4"," align-middle [&:has([role=checkbox])]:pr-0 ","[&:not(:last-child)&:not(:first-child)]:border-x",e),...t}));jf.displayName="TableCell";const XE=q.forwardRef(({className:e,...t},n)=>l.jsx("caption",{ref:n,className:Te("mt-4 text-sm text-muted-foreground",e),...t}));XE.displayName="TableCaption";/**
|
|
231
|
-
* table-core
|
|
232
|
-
*
|
|
233
|
-
* Copyright (c) TanStack
|
|
234
|
-
*
|
|
235
|
-
* This source code is licensed under the MIT license found in the
|
|
236
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
237
|
-
*
|
|
238
|
-
* @license MIT
|
|
239
|
-
*/function $a(e,t){return typeof e=="function"?e(t):e}function Nr(e,t){return n=>{t.setState(r=>({...r,[e]:$a(n,r[e])}))}}function If(e){return e instanceof Function}function AR(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function jR(e,t){const n=[],r=o=>{o.forEach(a=>{n.push(a);const i=t(a);i!=null&&i.length&&r(i)})};return r(e),n}function bt(e,t,n){let r=[],o;return()=>{let a;n.key&&n.debug&&(a=Date.now());const i=e();if(!(i.length!==r.length||i.some((c,d)=>r[d]!==c)))return o;r=i;let u;if(n.key&&n.debug&&(u=Date.now()),o=t(...i),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-a)*100)/100,d=Math.round((Date.now()-u)*100)/100,g=d/16,v=(y,C)=>{for(y=String(y);y.length<C;)y=" "+y;return y};console.info(`%c⏱ ${v(d,5)} /${v(c,5)} ms`,`
|
|
240
|
-
font-size: .6rem;
|
|
241
|
-
font-weight: bold;
|
|
242
|
-
color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function IR(e,t,n,r){var o,a;const s={...e._getDefaultColumnDef(),...t},u=s.accessorKey;let c=(o=(a=s.id)!=null?a:u?u.replace(".","_"):void 0)!=null?o:typeof s.header=="string"?s.header:void 0,d;if(s.accessorFn?d=s.accessorFn:u&&(u.includes(".")?d=v=>{let y=v;for(const h of u.split(".")){var C;y=(C=y)==null?void 0:C[h],process.env.NODE_ENV!=="production"&&y===void 0&&console.warn(`"${h}" in deeply nested key "${u}" returned undefined.`)}return y}:d=v=>v[s.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let g={id:`${String(c)}`,accessorFn:d,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:bt(()=>[!0],()=>{var v;return[g,...(v=g.columns)==null?void 0:v.flatMap(y=>y.getFlatColumns())]},{key:process.env.NODE_ENV==="production"&&"column.getFlatColumns",debug:()=>{var v;return(v=e.options.debugAll)!=null?v:e.options.debugColumns}}),getLeafColumns:bt(()=>[e._getOrderColumnsFn()],v=>{var y;if((y=g.columns)!=null&&y.length){let C=g.columns.flatMap(h=>h.getLeafColumns());return v(C)}return[g]},{key:process.env.NODE_ENV==="production"&&"column.getLeafColumns",debug:()=>{var v;return(v=e.options.debugAll)!=null?v:e.options.debugColumns}})};for(const v of e._features)v.createColumn==null||v.createColumn(g,e);return g}function YE(e,t,n){var r;let a={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],s=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(s),i.push(u)};return s(a),i},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(a,e)}),a}const TR={createTable:e=>{e.getHeaderGroups=bt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var a,i;const s=(a=r==null?void 0:r.map(g=>n.find(v=>v.id===g)).filter(Boolean))!=null?a:[],u=(i=o==null?void 0:o.map(g=>n.find(v=>v.id===g)).filter(Boolean))!=null?i:[],c=n.filter(g=>!(r!=null&&r.includes(g.id))&&!(o!=null&&o.includes(g.id)));return Tf(t,[...s,...c,...u],e)},{key:process.env.NODE_ENV==="development"&&"getHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=bt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(o!=null&&o.includes(a.id))),Tf(t,n,e,"center")),{key:process.env.NODE_ENV==="development"&&"getCenterHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=bt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const a=(o=r==null?void 0:r.map(i=>n.find(s=>s.id===i)).filter(Boolean))!=null?o:[];return Tf(t,a,e,"left")},{key:process.env.NODE_ENV==="development"&&"getLeftHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=bt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const a=(o=r==null?void 0:r.map(i=>n.find(s=>s.id===i)).filter(Boolean))!=null?o:[];return Tf(t,a,e,"right")},{key:process.env.NODE_ENV==="development"&&"getRightHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=bt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=bt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getLeftFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=bt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getCenterFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=bt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getRightFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=bt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=bt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getLeftFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=bt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getCenterFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=bt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getRightFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=bt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:process.env.NODE_ENV==="development"&&"getCenterLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=bt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:process.env.NODE_ENV==="development"&&"getLeftLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=bt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:process.env.NODE_ENV==="development"&&"getRightLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=bt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,a,i,s,u,c;return[...(o=(a=t[0])==null?void 0:a.headers)!=null?o:[],...(i=(s=n[0])==null?void 0:s.headers)!=null?i:[],...(u=(c=r[0])==null?void 0:c.headers)!=null?u:[]].map(d=>d.getLeafHeaders()).flat()},{key:process.env.NODE_ENV==="development"&&"getLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function Tf(e,t,n,r){var o,a;let i=0;const s=function(v,y){y===void 0&&(y=1),i=Math.max(i,y),v.filter(C=>C.getIsVisible()).forEach(C=>{var h;(h=C.columns)!=null&&h.length&&s(C.columns,y+1)},0)};s(e);let u=[];const c=(v,y)=>{const C={depth:y,id:[r,`${y}`].filter(Boolean).join("_"),headers:[]},h=[];v.forEach(w=>{const E=[...h].reverse()[0],j=w.column.depth===C.depth;let P,N=!1;if(j&&w.column.parent?P=w.column.parent:(P=w.column,N=!0),E&&(E==null?void 0:E.column)===P)E.subHeaders.push(w);else{const $=YE(n,P,{id:[r,y,P.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:N,placeholderId:N?`${h.filter(G=>G.column===P).length}`:void 0,depth:y,index:h.length});$.subHeaders.push(w),h.push($)}C.headers.push(w),w.headerGroup=C}),u.push(C),y>0&&c(h,y-1)},d=t.map((v,y)=>YE(n,v,{depth:i,index:y}));c(d,i-1),u.reverse();const g=v=>v.filter(C=>C.column.getIsVisible()).map(C=>{let h=0,w=0,E=[0];C.subHeaders&&C.subHeaders.length?(E=[],g(C.subHeaders).forEach(P=>{let{colSpan:N,rowSpan:$}=P;h+=N,E.push($)})):h=1;const j=Math.min(...E);return w=w+j,C.colSpan=h,C.rowSpan=w,{colSpan:h,rowSpan:w}});return g((o=(a=u[0])==null?void 0:a.headers)!=null?o:[]),u}const kf={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Km=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),kR={getDefaultColumnDef:()=>kf,getInitialState:e=>({columnSizing:{},columnSizingInfo:Km(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Nr("columnSizing",e),onColumnSizingInfoChange:Nr("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:kf.minSize,(r=a??e.columnDef.size)!=null?r:kf.size),(o=e.columnDef.maxSize)!=null?o:kf.maxSize)},e.getStart=n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(a=>a.id===e.id);if(o>0){const a=r[o-1];return a.getStart(n)+a.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var a;n+=(a=o.column.getSize())!=null?a:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return o=>{if(!n||!r||(o.persist==null||o.persist(),Qm(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),i=e?e.getLeafHeaders().map(h=>[h.column.id,h.column.getSize()]):[[n.id,n.getSize()]],s=Qm(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(h,w)=>{typeof w=="number"&&(t.setColumnSizingInfo(E=>{var j,P;const N=w-((j=E==null?void 0:E.startOffset)!=null?j:0),$=Math.max(N/((P=E==null?void 0:E.startSize)!=null?P:0),-.999999);return E.columnSizingStart.forEach(G=>{let[V,J]=G;u[V]=Math.round(Math.max(J+J*$,0)*100)/100}),{...E,deltaOffset:N,deltaPercentage:$}}),(t.options.columnResizeMode==="onChange"||h==="end")&&t.setColumnSizing(E=>({...E,...u})))},d=h=>c("move",h),g=h=>{c("end",h),t.setColumnSizingInfo(w=>({...w,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},v={moveHandler:h=>d(h.clientX),upHandler:h=>{document.removeEventListener("mousemove",v.moveHandler),document.removeEventListener("mouseup",v.upHandler),g(h.clientX)}},y={moveHandler:h=>(h.cancelable&&(h.preventDefault(),h.stopPropagation()),d(h.touches[0].clientX),!1),upHandler:h=>{var w;document.removeEventListener("touchmove",y.moveHandler),document.removeEventListener("touchend",y.upHandler),h.cancelable&&(h.preventDefault(),h.stopPropagation()),g((w=h.touches[0])==null?void 0:w.clientX)}},C=PR()?{passive:!1}:!1;Qm(o)?(document.addEventListener("touchmove",y.moveHandler,C),document.addEventListener("touchend",y.upHandler,C)):(document.addEventListener("mousemove",v.moveHandler,C),document.addEventListener("mouseup",v.upHandler,C)),t.setColumnSizingInfo(h=>({...h,startOffset:s,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Km():(n=e.initialState.columnSizingInfo)!=null?n:Km())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let Pf=null;function PR(){if(typeof Pf=="boolean")return Pf;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Pf=e,Pf}function Qm(e){return e.type==="touchstart"}const BR={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Nr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,a;e.setExpanded(r?{}:(o=(a=e.initialState)==null?void 0:a.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const i=a.split(".");r=Math.max(r,i.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const a=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{i[s]=!0}):i=r,n=(o=n)!=null?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:s,...u}=i;return u}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},JE=(e,t,n)=>{var r;const o=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(o))};JE.autoRemove=e=>lo(e);const KE=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};KE.autoRemove=e=>lo(e);const QE=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};QE.autoRemove=e=>lo(e);const qE=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};qE.autoRemove=e=>lo(e)||!(e!=null&&e.length);const e3=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});e3.autoRemove=e=>lo(e)||!(e!=null&&e.length);const t3=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});t3.autoRemove=e=>lo(e)||!(e!=null&&e.length);const n3=(e,t,n)=>e.getValue(t)===n;n3.autoRemove=e=>lo(e);const r3=(e,t,n)=>e.getValue(t)==n;r3.autoRemove=e=>lo(e);const qm=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};qm.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(o)?1/0:o;if(a>i){const s=a;a=i,i=s}return[a,i]},qm.autoRemove=e=>lo(e)||lo(e[0])&&lo(e[1]);const ea={includesString:JE,includesStringSensitive:KE,equalsString:QE,arrIncludes:qE,arrIncludesAll:e3,arrIncludesSome:t3,equals:n3,weakEquals:r3,inNumberRange:qm};function lo(e){return e==null||e===""}const NR={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Nr("columnFilters",e),onGlobalFilterChange:Nr("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?ea.includesString:typeof r=="number"?ea.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?ea.equals:Array.isArray(r)?ea.arrIncludes:ea.weakEquals},e.getFilterFn=()=>{var n,r;return If(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:ea[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,o,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),a=r==null?void 0:r.find(d=>d.id===e.id),i=$a(n,a?a.value:void 0);if(o3(o,i,e)){var s;return(s=r==null?void 0:r.filter(d=>d.id!==e.id))!=null?s:[]}const u={id:e.id,value:i};if(a){var c;return(c=r==null?void 0:r.map(d=>d.id===e.id?u:d))!=null?c:[]}return r!=null&&r.length?[...r,u]:[u]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ea.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return If(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:ea[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var a;return(a=$a(t,o))==null?void 0:a.filter(i=>{const s=n.find(u=>u.id===i.id);if(s){const u=s.getFilterFn();if(o3(u,i.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function o3(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const ev={sum:(e,t,n)=>n.reduce((r,o)=>{const a=o.getValue(e);return r+(typeof a=="number"?a:0)},0),min:(e,t,n)=>{let r;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},max:(e,t,n)=>{let r;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(a=>{const i=a.getValue(e);i!=null&&(r===void 0?i>=i&&(r=o=i):(r>i&&(r=i),o<i&&(o=i)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let a=o.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!AR(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((a,i)=>a-i);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},OR={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Nr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r,o,a;return(n=(r=(o=(a=e.columnDef.enableGrouping)!=null?a:!0)!=null?o:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return ev.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ev.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return If(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:ev[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function $R(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(a=>!t.includes(a.id));return n==="remove"?r:[...t.map(a=>e.find(i=>i.id===a)).filter(Boolean),...r]}const RR={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Nr("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=bt(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let a=[];if(!(t!=null&&t.length))a=o;else{const i=[...t],s=[...o];for(;s.length&&i.length;){const u=i.shift(),c=s.findIndex(d=>d.id===u);c>-1&&a.push(s.splice(c,1)[0])}a=[...a,...s]}return $R(a,n,r)},{key:process.env.NODE_ENV==="development"&&"getOrderColumnsFn"})}},tv=0,nv=10,rv=()=>({pageIndex:tv,pageSize:nv}),MR={getInitialState:e=>({...e,pagination:{...rv(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Nr("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=a=>$a(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?rv():(o=e.initialState.pagination)!=null?o:rv())},e.setPageIndex=r=>{e.setPagination(o=>{let a=$a(r,o.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,i)),{...o,pageIndex:a}})},e.resetPageIndex=r=>{var o,a;e.setPageIndex(r?tv:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?o:tv)},e.resetPageSize=r=>{var o,a;e.setPageSize(r?nv:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?o:nv)},e.setPageSize=r=>{e.setPagination(o=>{const a=Math.max(1,$a(r,o.pageSize)),i=o.pageSize*o.pageIndex,s=Math.floor(i/a);return{...o,pageIndex:s,pageSize:a}})},e.setPageCount=r=>e.setPagination(o=>{var a;let i=$a(r,(a=e.options.pageCount)!=null?a:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...o,pageCount:i}}),e.getPageOptions=bt(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((a,i)=>i)),o},{key:process.env.NODE_ENV==="development"&&"getPageOptions",debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},ov=()=>({left:[],right:[]}),av=()=>({top:[],bottom:[]}),LR={getInitialState:e=>({columnPinning:ov(),rowPinning:av(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Nr("columnPinning",e),onRowPinningChange:Nr("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var a,i;if(n==="right"){var s,u;return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(g=>!(r!=null&&r.includes(g))),right:[...((u=o==null?void 0:o.right)!=null?u:[]).filter(g=>!(r!=null&&r.includes(g))),...r]}}if(n==="left"){var c,d;return{left:[...((c=o==null?void 0:o.left)!=null?c:[]).filter(g=>!(r!=null&&r.includes(g))),...r],right:((d=o==null?void 0:o.right)!=null?d:[]).filter(g=>!(r!=null&&r.includes(g)))}}return{left:((a=o==null?void 0:o.left)!=null?a:[]).filter(g=>!(r!=null&&r.includes(g))),right:((i=o==null?void 0:o.right)!=null?i:[]).filter(g=>!(r!=null&&r.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,a,i;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((a=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:o}=t.getState().columnPinning,a=n.some(s=>r==null?void 0:r.includes(s)),i=n.some(s=>o==null?void 0:o.includes(s));return a?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map(u=>{let{id:c}=u;return c}):[],i=o?e.getParentRows().map(u=>{let{id:c}=u;return c}):[],s=new Set([...i,e.id,...a]);t.setRowPinning(u=>{var c,d;if(n==="bottom"){var g,v;return{top:((g=u==null?void 0:u.top)!=null?g:[]).filter(h=>!(s!=null&&s.has(h))),bottom:[...((v=u==null?void 0:u.bottom)!=null?v:[]).filter(h=>!(s!=null&&s.has(h))),...Array.from(s)]}}if(n==="top"){var y,C;return{top:[...((y=u==null?void 0:u.top)!=null?y:[]).filter(h=>!(s!=null&&s.has(h))),...Array.from(s)],bottom:((C=u==null?void 0:u.bottom)!=null?C:[]).filter(h=>!(s!=null&&s.has(h)))}}return{top:((c=u==null?void 0:u.top)!=null?c:[]).filter(h=>!(s!=null&&s.has(h))),bottom:((d=u==null?void 0:u.bottom)!=null?d:[]).filter(h=>!(s!=null&&s.has(h)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some(s=>r==null?void 0:r.includes(s)),i=n.some(s=>o==null?void 0:o.includes(s));return a?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=(n=t._getPinnedRows(o))==null?void 0:n.map(i=>{let{id:s}=i;return s});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1},e.getCenterVisibleCells=bt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const a=[...r??[],...o??[]];return n.filter(i=>!a.includes(i.column.id))},{key:process.env.NODE_ENV==="development"&&"row.getCenterVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getLeftVisibleCells=bt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),{key:process.env.NODE_ENV==="development"&&"row.getLeftVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getRightVisibleCells=bt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),{key:process.env.NODE_ENV==="development"&&"row.getRightVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?ov():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:ov())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,a;return!!((o=r.left)!=null&&o.length||(a=r.right)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=bt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:process.env.NODE_ENV==="development"&&"getLeftLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=bt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:process.env.NODE_ENV==="development"&&"getRightLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=bt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(a=>!o.includes(a.id))},{key:process.env.NODE_ENV==="development"&&"getCenterLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?av():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:av())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,a;return!!((o=r.top)!=null&&o.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=t=>bt(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(r??[]).map(i=>{const s=e.getRow(i,!0);return s.getIsAllParentsExpanded()?s:null}):(r??[]).map(i=>n.find(s=>s.id===i))).filter(Boolean).map(i=>({...i,position:t}))},{key:process.env.NODE_ENV==="development"&&`row.get${t==="top"?"Top":"Bottom"}Rows`,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=bt(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(a=>!o.has(a.id))},{key:process.env.NODE_ENV==="development"&&"row.getCenterRows",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},_R={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Nr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):o.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(a=>{iv(o,a.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=bt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?sv(e,n):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="development"&&"getSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=bt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?sv(e,n):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="production"&&"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=bt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?sv(e,n):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="production"&&"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return a;const s={...a};return iv(s,e.id,n,(i=r==null?void 0:r.selectChildren)!=null?i:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return lv(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return uv(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return uv(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},iv=(e,t,n,r,o)=>{var a;const i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=i.subRows)!=null&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(s=>iv(e,s.id,n,r,o))};function sv(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(i,s){return i.map(u=>{var c;const d=lv(u,n);if(d&&(r.push(u),o[u.id]=u),(c=u.subRows)!=null&&c.length&&(u={...u,subRows:a(u.subRows)}),d)return u}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function lv(e,t){var n;return(n=t[e.id])!=null?n:!1}function uv(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,a=!1;return e.subRows.forEach(i=>{if(!(a&&!o)&&(i.getCanSelect()&&(lv(i,t)?a=!0:o=!1),i.subRows&&i.subRows.length)){const s=uv(i,t);s==="all"?a=!0:(s==="some"&&(a=!0),o=!1)}}),o?"all":a?"some":!1}const cv=/([0-9]+)/gm,VR=(e,t,n)=>a3(Ra(e.getValue(n)).toLowerCase(),Ra(t.getValue(n)).toLowerCase()),WR=(e,t,n)=>a3(Ra(e.getValue(n)),Ra(t.getValue(n))),HR=(e,t,n)=>dv(Ra(e.getValue(n)).toLowerCase(),Ra(t.getValue(n)).toLowerCase()),GR=(e,t,n)=>dv(Ra(e.getValue(n)),Ra(t.getValue(n))),zR=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},UR=(e,t,n)=>dv(e.getValue(n),t.getValue(n));function dv(e,t){return e===t?0:e>t?1:-1}function Ra(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function a3(e,t){const n=e.split(cv).filter(Boolean),r=t.split(cv).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),a=r.shift(),i=parseInt(o,10),s=parseInt(a,10),u=[i,s].sort();if(isNaN(u[0])){if(o>a)return 1;if(a>o)return-1;continue}if(isNaN(u[1]))return isNaN(i)?-1:1;if(i>s)return 1;if(s>i)return-1}return n.length-r.length}const _u={alphanumeric:VR,alphanumericCaseSensitive:WR,text:HR,textCaseSensitive:GR,datetime:zR,basic:UR},i3=[TR,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Nr("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=bt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:process.env.NODE_ENV==="production"&&"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getVisibleCells=bt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],{key:process.env.NODE_ENV==="development"&&"row.getVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{const t=(n,r)=>bt(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),{key:n,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,a)=>({...o,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}},RR,LR,NR,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Nr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const a=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return _u.datetime;if(typeof a=="string"&&(r=!0,a.split(cv).length>1))return _u.alphanumeric}return r?_u.text:_u.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return If(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:_u[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(i=>{const s=i==null?void 0:i.find(y=>y.id===e.id),u=i==null?void 0:i.findIndex(y=>y.id===e.id);let c=[],d,g=a?n:o==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?s?d="toggle":d="add":i!=null&&i.length&&u!==i.length-1?d="replace":s?d="toggle":d="replace",d==="toggle"&&(a||o||(d="remove")),d==="add"){var v;c=[...i,{id:e.id,desc:g}],c.splice(0,c.length-((v=t.options.maxMultiSortColCount)!=null?v:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=i.map(y=>y.id===e.id?{...y,desc:g}:y):d==="remove"?c=i.filter(y=>y.id!==e.id):c=[{id:e.id,desc:g}];return c})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==a&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:i==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},OR,BR,MR,_R,kR];function ZR(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:i3};const r=n._features.reduce((d,g)=>Object.assign(d,g.getDefaultOptions==null?void 0:g.getDefaultOptions(n)),{}),o=d=>n.options.mergeOptions?n.options.mergeOptions(r,d):{...r,...d};let i={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(d=>{var g;i=(g=d.getInitialState==null?void 0:d.getInitialState(i))!=null?g:i});const s=[];let u=!1;const c={_features:i3,options:{...r,...e},initialState:i,_queue:d=>{s.push(d),u||(u=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();u=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{n.setState(n.initialState)},setOptions:d=>{const g=$a(d,n.options);n.options=o(g)},getState:()=>n.options.state,setState:d=>{n.options.onStateChange==null||n.options.onStateChange(d)},_getRowId:(d,g,v)=>{var y;return(y=n.options.getRowId==null?void 0:n.options.getRowId(d,g,v))!=null?y:`${v?[v.id,g].join("."):g}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(d,g)=>{const v=(g?n.getCoreRowModel():n.getRowModel()).rowsById[d];if(!v)throw process.env.NODE_ENV!=="production"?new Error(`getRow expected an ID, but got ${d}`):new Error;return v},_getDefaultColumnDef:bt(()=>[n.options.defaultColumn],d=>{var g;return d=(g=d)!=null?g:{},{header:v=>{const y=v.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:v=>{var y,C;return(y=(C=v.renderValue())==null||C.toString==null?void 0:C.toString())!=null?y:null},...n._features.reduce((v,y)=>Object.assign(v,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...d}},{debug:()=>{var d;return(d=n.options.debugAll)!=null?d:n.options.debugColumns},key:process.env.NODE_ENV==="development"&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:bt(()=>[n._getColumnDefs()],d=>{const g=function(v,y,C){return C===void 0&&(C=0),v.map(h=>{const w=IR(n,h,C,y),E=h;return w.columns=E.columns?g(E.columns,w,C+1):[],w})};return g(d)},{key:process.env.NODE_ENV==="development"&&"getAllColumns",debug:()=>{var d;return(d=n.options.debugAll)!=null?d:n.options.debugColumns}}),getAllFlatColumns:bt(()=>[n.getAllColumns()],d=>d.flatMap(g=>g.getFlatColumns()),{key:process.env.NODE_ENV==="development"&&"getAllFlatColumns",debug:()=>{var d;return(d=n.options.debugAll)!=null?d:n.options.debugColumns}}),_getAllFlatColumnsById:bt(()=>[n.getAllFlatColumns()],d=>d.reduce((g,v)=>(g[v.id]=v,g),{}),{key:process.env.NODE_ENV==="development"&&"getAllFlatColumnsById",debug:()=>{var d;return(d=n.options.debugAll)!=null?d:n.options.debugColumns}}),getAllLeafColumns:bt(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(d,g)=>{let v=d.flatMap(y=>y.getLeafColumns());return g(v)},{key:process.env.NODE_ENV==="development"&&"getAllLeafColumns",debug:()=>{var d;return(d=n.options.debugAll)!=null?d:n.options.debugColumns}}),getColumn:d=>{const g=n._getAllFlatColumnsById()[d];return process.env.NODE_ENV!=="production"&&!g&&console.error(`[Table] Column with id '${d}' does not exist.`),g}};Object.assign(n,c);for(let d=0;d<n._features.length;d++){const g=n._features[d];g==null||g.createTable==null||g.createTable(n)}return n}function XR(e,t,n,r){const o=()=>{var i;return(i=a.getValue())!=null?i:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:bt(()=>[e,n,t,a],(i,s,u,c)=>({table:i,column:s,row:u,cell:c,getValue:c.getValue,renderValue:c.renderValue}),{key:process.env.NODE_ENV==="development"&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach(i=>{i.createCell==null||i.createCell(a,n,t,e)},{}),a}const fv=(e,t,n,r,o,a,i)=>{let s={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(s._valuesCache.hasOwnProperty(u))return s._valuesCache[u];const c=e.getColumn(u);if(c!=null&&c.accessorFn)return s._valuesCache[u]=c.accessorFn(s.original,r),s._valuesCache[u]},getUniqueValues:u=>{if(s._uniqueValuesCache.hasOwnProperty(u))return s._uniqueValuesCache[u];const c=e.getColumn(u);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(s._uniqueValuesCache[u]=c.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[u]):(s._uniqueValuesCache[u]=[s.getValue(u)],s._uniqueValuesCache[u])},renderValue:u=>{var c;return(c=s.getValue(u))!=null?c:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>jR(s.subRows,u=>u.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId):void 0,getParentRows:()=>{let u=[],c=s;for(;;){const d=c.getParentRow();if(!d)break;u.push(d),c=d}return u.reverse()},getAllCells:bt(()=>[e.getAllLeafColumns()],u=>u.map(c=>XR(e,s,c,c.id)),{key:process.env.NODE_ENV==="development"&&"row.getAllCells",debug:()=>{var u;return(u=e.options.debugAll)!=null?u:e.options.debugRows}}),_getAllCellsByColumnId:bt(()=>[s.getAllCells()],u=>u.reduce((c,d)=>(c[d.column.id]=d,c),{}),{key:process.env.NODE_ENV==="production"&&"row.getAllCellsByColumnId",debug:()=>{var u;return(u=e.options.debugAll)!=null?u:e.options.debugRows}})};for(let u=0;u<e._features.length;u++){const c=e._features[u];c==null||c.createRow==null||c.createRow(s,e)}return s};function YR(){return e=>bt(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,a,i){a===void 0&&(a=0);const s=[];for(let c=0;c<o.length;c++){const d=fv(e,e._getRowId(o[c],c,i),o[c],c,a,void 0,i==null?void 0:i.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,s.push(d),e.options.getSubRows){var u;d.originalSubRows=e.options.getSubRows(o[c],c),(u=d.originalSubRows)!=null&&u.length&&(d.subRows=r(d.originalSubRows,a+1,d))}}return s};return n.rows=r(t),n},{key:process.env.NODE_ENV==="development"&&"getRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function JR(e,t,n){return n.options.filterFromLeafRows?KR(e,t,n):QR(e,t,n)}function KR(e,t,n){var r;const o=[],a={},i=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(u,c){c===void 0&&(c=0);const d=[];for(let v=0;v<u.length;v++){var g;let y=u[v];const C=fv(n,y.id,y.original,y.index,y.depth,void 0,y.parentId);if(C.columnFilters=y.columnFilters,(g=y.subRows)!=null&&g.length&&c<i){if(C.subRows=s(y.subRows,c+1),y=C,t(y)&&!C.subRows.length){d.push(y),a[y.id]=y,o.push(y);continue}if(t(y)||C.subRows.length){d.push(y),a[y.id]=y,o.push(y);continue}}else y=C,t(y)&&(d.push(y),a[y.id]=y,o.push(y))}return d};return{rows:s(e),flatRows:o,rowsById:a}}function QR(e,t,n){var r;const o=[],a={},i=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(u,c){c===void 0&&(c=0);const d=[];for(let v=0;v<u.length;v++){let y=u[v];if(t(y)){var g;if((g=y.subRows)!=null&&g.length&&c<i){const h=fv(n,y.id,y.original,y.index,y.depth,void 0,y.parentId);h.subRows=s(y.subRows,c+1),y=h}d.push(y),o.push(y),a[y.id]=y}}return d};return{rows:s(e),flatRows:o,rowsById:a}}function qR(){return e=>bt(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let v=0;v<t.flatRows.length;v++)t.flatRows[v].columnFilters={},t.flatRows[v].columnFiltersMeta={};return t}const o=[],a=[];(n??[]).forEach(v=>{var y;const C=e.getColumn(v.id);if(!C)return;const h=C.getFilterFn();if(!h){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${C.id}.`);return}o.push({id:v.id,filterFn:h,resolvedValue:(y=h.resolveFilterValue==null?void 0:h.resolveFilterValue(v.value))!=null?y:v.value})});const i=n.map(v=>v.id),s=e.getGlobalFilterFn(),u=e.getAllLeafColumns().filter(v=>v.getCanGlobalFilter());r&&s&&u.length&&(i.push("__global__"),u.forEach(v=>{var y;a.push({id:v.id,filterFn:s,resolvedValue:(y=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?y:r})}));let c,d;for(let v=0;v<t.flatRows.length;v++){const y=t.flatRows[v];if(y.columnFilters={},o.length)for(let C=0;C<o.length;C++){c=o[C];const h=c.id;y.columnFilters[h]=c.filterFn(y,h,c.resolvedValue,w=>{y.columnFiltersMeta[h]=w})}if(a.length){for(let C=0;C<a.length;C++){d=a[C];const h=d.id;if(d.filterFn(y,h,d.resolvedValue,w=>{y.columnFiltersMeta[h]=w})){y.columnFilters.__global__=!0;break}}y.columnFilters.__global__!==!0&&(y.columnFilters.__global__=!1)}}const g=v=>{for(let y=0;y<i.length;y++)if(v.columnFilters[i[y]]===!1)return!1;return!0};return JR(t.rows,g,e)},{key:process.env.NODE_ENV==="development"&&"getFilteredRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function eM(){return e=>bt(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],a=r.filter(u=>{var c;return(c=e.getColumn(u.id))==null?void 0:c.getCanSort()}),i={};a.forEach(u=>{const c=e.getColumn(u.id);c&&(i[u.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const s=u=>{const c=[...u];return c.sort((d,g)=>{for(let y=0;y<a.length;y+=1){var v;const C=a[y],h=i[C.id],w=(v=C==null?void 0:C.desc)!=null?v:!1;let E=0;if(h.sortUndefined){const j=d.getValue(C.id),P=g.getValue(C.id),N=j===void 0,$=P===void 0;(N||$)&&(E=N&&$?0:N?h.sortUndefined:-h.sortUndefined)}if(E===0&&(E=h.sortingFn(d,g,C.id)),E!==0)return w&&(E*=-1),h.invertSorting&&(E*=-1),E}return d.index-g.index}),c.forEach(d=>{var g;o.push(d),(g=d.subRows)!=null&&g.length&&(d.subRows=s(d.subRows))}),c};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}},{key:process.env.NODE_ENV==="development"&&"getSortedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function tM(){return e=>bt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:s3(n),{key:process.env.NODE_ENV==="development"&&"getExpandedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}})}function s3(e){const t=[],n=r=>{var o;t.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function nM(e){return t=>bt(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:a}=n;let{rows:i,flatRows:s,rowsById:u}=r;const c=o*a,d=c+o;i=i.slice(c,d);let g;t.options.paginateExpandedRows?g={rows:i,flatRows:s,rowsById:u}:g=s3({rows:i,flatRows:s,rowsById:u}),g.flatRows=[];const v=y=>{g.flatRows.push(y),y.subRows.length&&y.subRows.forEach(v)};return g.rows.forEach(v),g},{key:process.env.NODE_ENV==="development"&&"getPaginationRowModel",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable}})}/**
|
|
243
|
-
* react-table
|
|
244
|
-
*
|
|
245
|
-
* Copyright (c) TanStack
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the MIT license found in the
|
|
248
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
249
|
-
*
|
|
250
|
-
* @license MIT
|
|
251
|
-
*/function l3(e,t){return e?rM(e)?q.createElement(e,t):e:null}function rM(e){return oM(e)||typeof e=="function"||aM(e)}function oM(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function aM(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function iM(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=q.useState(()=>({current:ZR(t)})),[r,o]=q.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:i=>{o(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const sM=({columns:e,data:t,...n})=>{var w,E,j,P,N,$,G,V,J,K,me;const[r,o]=q.useState([{id:n.defaultSort,desc:!1}]),[a,i]=q.useState([]),[s,u]=q.useState(""),[c,d]=q.useState({}),[g,v]=q.useState({}),[y,C]=q.useState({}),h=iM({data:t,columns:e,onExpandedChange:d,getExpandedRowModel:tM(),onGlobalFilterChange:u,onSortingChange:o,onColumnFiltersChange:i,getCoreRowModel:YR(),getPaginationRowModel:nM(),getSortedRowModel:eM(),getFilteredRowModel:qR(),onColumnVisibilityChange:v,onRowSelectionChange:C,state:{sorting:r,columnFilters:a,columnVisibility:g,globalFilter:s,rowSelection:y,expanded:c}});return l.jsxs("div",{className:"flex w-full flex-col gap-4",children:[l.jsx("div",{className:"flex items-center",children:l.jsx(Ot,{placeholder:(w=n.texts)==null?void 0:w.searchPlaceholder,value:s??"",onChange:ye=>u(ye.target.value),margin:"none",className:"w-full md:max-w-sm"})}),n.isLoading?l.jsx(Eo,{className:"h-[130px] w-full"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"rounded-md",children:l.jsxs(Zm,{children:[h.getAllColumns().length>0&&l.jsx(Xm,{children:h.getHeaderGroups().map(ye=>l.jsx(Lu,{children:ye.headers.map(ne=>{var R;let fe=(R=ne.column.columnDef.meta)==null?void 0:R.sortable;return l.jsx(Ym,{condensed:n.condensed,clickable:fe,children:ne.isPlaceholder?null:l3(ne.column.columnDef.header,ne.getContext())},ne.id)})},ye.id))}),l.jsx(Jm,{children:(E=h.getRowModel().rows)!=null&&E.length?h.getRowModel().rows.map(ye=>l.jsx(Lu,{"data-state":ye.getIsSelected()&&"selected",children:ye.getVisibleCells().map(ne=>l.jsx(jf,{condensed:n.condensed,children:l3(ne.column.columnDef.cell,ne.getContext())},ne.id))},ye.id)):l.jsx(Lu,{children:l.jsx(jf,{colSpan:e.length,className:"h-24 text-center",children:(j=n.texts)==null?void 0:j.noData})})})]})}),l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("div",{className:"flex w-fit flex-row items-center gap-2 text-sm text-muted-foreground"}),h.getPageCount()!==0&&l.jsxs("div",{className:"flex w-fit flex-row items-center gap-2 ",children:[l.jsx(pi,{size:"sm",width:"parent",direction:n.direction,items:[{label:`10 / ${(P=n.texts)==null?void 0:P.page}`,value:10},{label:`20 / ${(N=n.texts)==null?void 0:N.page}`,value:20},{label:`30 / ${($=n.texts)==null?void 0:$.page}`,value:30},{label:`40 / ${(G=n.texts)==null?void 0:G.page}`,value:40},{label:`50 / ${(V=n.texts)==null?void 0:V.page}`,value:50}],trigger:l.jsx(Qe,{variant:"outline",size:"icon",className:"h-fit w-fit p-0 px-2 py-1 ",children:`${h.getState().pagination.pageSize} / ${(J=n.texts)==null?void 0:J.page}`}),onItemSelect:ye=>h.setPageSize(Number(ye))}),l.jsx("div",{className:"flex w-fit flex-row items-center gap-2 text-sm ",children:l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx("div",{children:(K=n.texts)==null?void 0:K.page}),l.jsxs("div",{className:"flex flex-row gap-1",children:[l.jsx("span",{className:"font-bold",children:h.getState().pagination.pageIndex+1}),l.jsx("span",{children:(me=n.texts)==null?void 0:me.of}),l.jsx("span",{className:"font-bold",children:h.getPageCount()})]})]})}),l.jsx(Qe,{variant:"outline",size:"smallIcon",onClick:()=>h.previousPage(),disabled:!h.getCanPreviousPage(),className:Te(n.direction==="ltr"&&"rotate-180"),children:l.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})}),l.jsx(Qe,{variant:"outline",size:"smallIcon",onClick:()=>h.nextPage(),disabled:!h.getCanNextPage(),className:Te(n.direction==="rtl"&&"rotate-180"),children:l.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})})]})]})]})]})},lM=e=>l.jsxs(Qe,{variant:"ghost",className:Te("flex w-full flex-row justify-start gap-2",e.condensed&&"h-6"),onClick:e.onSort,children:[e.label,l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e.condensed?"h-3 w-3":"h-4 w-4",children:[l.jsx("path",{d:"m21 16-4 4-4-4"}),l.jsx("path",{d:"M17 20V4"}),l.jsx("path",{d:"m3 8 4-4 4 4"}),l.jsx("path",{d:"M7 4v16"})]})]}),uM=e=>l.jsx("div",{children:e.children}),cM=e=>l.jsx("div",{className:"fixed bottom-0 top-auto left-0 m-0 w-full max-w-full p-1",children:l.jsx("div",{className:"flex w-full flex-row items-center justify-evenly rounded bg-gray-200",children:e.appBarContent.map((t,n)=>l.jsxs("div",{className:"m-1 flex h-full w-full flex-col items-center justify-center rounded p-2 transition-all hover:cursor-pointer hover:bg-buttonPrimary-700 hover:text-white",onClick:t.action,children:[l.jsx("div",{children:t.icon}),l.jsx("div",{className:"mt-2 text-sm",children:t.label})]},n))})}),gv=(e=!1)=>{const[t,n]=p.useState(e);return{isOpen:t,onOpen:()=>n(!0),onClose:()=>n(!1)}},Bf=()=>{const[e,t]=p.useState(window==null?void 0:window.innerWidth),n=()=>{t(window==null?void 0:window.innerWidth)};return p.useEffect(()=>{if(typeof window<"u")return window==null||window.addEventListener("resize",n),()=>{window==null||window.removeEventListener("resize",n)}},[]),e},dM=({direction:e="rtl",navigationSize:t="md",...n})=>{var d;const[r,o]=p.useState(!1);p.useState(!1),gv(!1);const a=p.useRef(null);p.useRef(null);let i;typeof window<"u"?i=Bf():i=1200;const[s,u]=p.useState(!1);p.useEffect(()=>{const g=v=>{a.current&&!a.current.contains(v.target)&&!s&&o(!1)};return document.addEventListener("click",g,!0),()=>{document.removeEventListener("click",g,!0)}},[s]);let c={sm:"h-10",md:"",lg:"h-24"};return l.jsxs("div",{className:"h-full w-full",children:[l.jsxs("div",{className:_e("z-30 flex w-auto select-none flex-row items-start justify-between bg-layoutPrimary-500 transition-all",c[t],"rounded p-3 ",r?"h-44":"h-14",n.stickyNav?"fixed left-4 right-4 top-4":"",e==="rtl"?"flex-row":"flex-row-reverse"),children:[i>600?l.jsx("div",{className:"flex flex-row h-8 items-center gap-4 px-3",children:(d=n.navItems)==null?void 0:d.map(({label:g},v)=>l.jsx("div",{onClick:()=>o(!r),className:"cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black",children:g},v))}):l.jsxs("div",{className:"flex items-center justify-center",children:[l.jsxs("div",{onClick:()=>o(!r),className:"cursor-pointer rounded p-1 transition-all hover:bg-gray-100",children:[l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:l.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),n.pageTitle?l.jsx("div",{children:n.pageTitle}):l.jsx("div",{})]}),l.jsx("div",{className:"h-full",children:l.jsx("img",{className:"h-full max-h-8 ",src:`https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${e==="rtl"?"ar":"en"}-white.svg`})})]}),l.jsx("div",{className:_e(" relative top-14"),children:n.children})]})},u3="Collapsible",[fM,c3]=cr(u3),[gM,pv]=fM(u3),pM=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[u=!1,c]=jr({prop:r,defaultProp:o,onChange:i});return p.createElement(gM,{scope:n,disabled:a,contentId:Ir(),open:u,onOpenToggle:p.useCallback(()=>c(d=>!d),[c])},p.createElement(Et.div,xe({"data-state":hv(u),"data-disabled":a?"":void 0},s,{ref:t})))}),hM="CollapsibleTrigger",mM=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=pv(hM,n);return p.createElement(Et.button,xe({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":hv(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:rt(e.onClick,o.onOpenToggle)}))}),d3="CollapsibleContent",vM=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=pv(d3,e.__scopeCollapsible);return p.createElement(Kn,{present:n||o.open},({present:a})=>p.createElement(bM,xe({},r,{ref:t,present:a})))}),bM=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=pv(d3,n),[s,u]=p.useState(r),c=p.useRef(null),d=Jt(t,c),g=p.useRef(0),v=g.current,y=p.useRef(0),C=y.current,h=i.open||s,w=p.useRef(h),E=p.useRef();return p.useEffect(()=>{const j=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(j)},[]),Aa(()=>{const j=c.current;if(j){E.current=E.current||{transitionDuration:j.style.transitionDuration,animationName:j.style.animationName},j.style.transitionDuration="0s",j.style.animationName="none";const P=j.getBoundingClientRect();g.current=P.height,y.current=P.width,w.current||(j.style.transitionDuration=E.current.transitionDuration,j.style.animationName=E.current.animationName),u(r)}},[i.open,r]),p.createElement(Et.div,xe({"data-state":hv(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!h},a,{ref:d,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style}}),h&&o)});function hv(e){return e?"open":"closed"}const xM=pM,yM=mM,CM=vM,Ma="Accordion",wM=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[mv,EM,SM]=bd(Ma),[Nf,W_]=cr(Ma,[SM,c3]),vv=c3(),f3=p.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return p.createElement(mv.Provider,{scope:e.__scopeAccordion},n==="multiple"?p.createElement(jM,xe({},a,{ref:t})):p.createElement(AM,xe({},o,{ref:t})))});f3.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[g3,DM]=Nf(Ma),[p3,FM]=Nf(Ma,{collapsible:!1}),AM=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,u]=jr({prop:n,defaultProp:r,onChange:o});return p.createElement(g3,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:u,onItemClose:p.useCallback(()=>a&&u(""),[a,u])},p.createElement(p3,{scope:e.__scopeAccordion,collapsible:a},p.createElement(h3,xe({},i,{ref:t}))))}),jM=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=jr({prop:n,defaultProp:r,onChange:o}),u=p.useCallback(d=>s((g=[])=>[...g,d]),[s]),c=p.useCallback(d=>s((g=[])=>g.filter(v=>v!==d)),[s]);return p.createElement(g3,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:c},p.createElement(p3,{scope:e.__scopeAccordion,collapsible:!0},p.createElement(h3,xe({},a,{ref:t}))))}),[IM,Of]=Nf(Ma),h3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=p.useRef(null),u=Jt(s,t),c=EM(n),g=xd(o)==="ltr",v=rt(e.onKeyDown,y=>{var C;if(!wM.includes(y.key))return;const h=y.target,w=c().filter(K=>{var me;return!((me=K.ref.current)!==null&&me!==void 0&&me.disabled)}),E=w.findIndex(K=>K.ref.current===h),j=w.length;if(E===-1)return;y.preventDefault();let P=E;const N=0,$=j-1,G=()=>{P=E+1,P>$&&(P=N)},V=()=>{P=E-1,P<N&&(P=$)};switch(y.key){case"Home":P=N;break;case"End":P=$;break;case"ArrowRight":a==="horizontal"&&(g?G():V());break;case"ArrowDown":a==="vertical"&&G();break;case"ArrowLeft":a==="horizontal"&&(g?V():G());break;case"ArrowUp":a==="vertical"&&V();break}const J=P%j;(C=w[J].ref.current)===null||C===void 0||C.focus()});return p.createElement(IM,{scope:n,disabled:r,direction:o,orientation:a},p.createElement(mv.Slot,{scope:n},p.createElement(Et.div,xe({},i,{"data-orientation":a,ref:u,onKeyDown:r?void 0:v}))))}),bv="AccordionItem",[TM,xv]=Nf(bv),kM=p.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Of(bv,n),i=DM(bv,n),s=vv(n),u=Ir(),c=r&&i.value.includes(r)||!1,d=a.disabled||e.disabled;return p.createElement(TM,{scope:n,open:c,disabled:d,triggerId:u},p.createElement(xM,xe({"data-orientation":a.orientation,"data-state":v3(c)},s,o,{ref:t,disabled:d,open:c,onOpenChange:g=>{g?i.onItemOpen(r):i.onItemClose(r)}})))}),PM="AccordionHeader",BM=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Of(Ma,n),a=xv(PM,n);return p.createElement(Et.h3,xe({"data-orientation":o.orientation,"data-state":v3(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),m3="AccordionTrigger",NM=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Of(Ma,n),a=xv(m3,n),i=FM(m3,n),s=vv(n);return p.createElement(mv.ItemSlot,{scope:n},p.createElement(yM,xe({"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},s,r,{ref:t})))}),OM="AccordionContent",$M=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Of(Ma,n),a=xv(OM,n),i=vv(n);return p.createElement(CM,xe({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function v3(e){return e?"open":"closed"}const RM=f3,MM=kM,LM=BM,b3=NM,x3=$M,_M=RM;let y3="flex flex-1 items-center select-none cursor-pointer bg-primary-foreground rounded justify-between p-2 px-3 font-medium transition-all [&[data-state=open]>svg]:-rotate-90";const C3=q.forwardRef(({className:e,...t},n)=>l.jsx(MM,{ref:n,className:Te(e),...t}));C3.displayName="AccordionItem";const w3=q.forwardRef(({className:e,showArrow:t,children:n,...r},o)=>l.jsx(LM,{className:"flex",children:l.jsxs(b3,{ref:o,className:Te(y3,e),...r,children:[n,t&&l.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",className:"h-4 w-4 shrink-0 rotate-90 transition-transform duration-200",children:l.jsx("path",{d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]})}));w3.displayName=b3.displayName;const E3=q.forwardRef(({className:e,children:t,...n},r)=>l.jsx(x3,{ref:r,className:Te("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...n,children:l.jsx("div",{children:t})}));E3.displayName=x3.displayName;const S3=({title:e,items:t,selectedItem:n,openedItem:r,setOpenedItem:o,onItemClick:a,onSubItemClick:i,direction:s,isOpen:u})=>l.jsxs("div",{children:[e&&l.jsx("h3",{className:"mb-1 font-bold",children:e}),l.jsx("ul",{className:"flex flex-col gap-2",children:l.jsx(_M,{value:r,type:"single",onValueChange:c=>{o(c)},collapsible:!0,className:"flex flex-col gap-1",children:t.map((c,d)=>l.jsx(D3,{isOpen:u,selectedItem:n,direction:s,item:c,onItemClick:a,onSubItemClick:i},d))})})]}),D3=({item:e,onItemClick:t,onSubItemClick:n,direction:r,isOpen:o=!0,...a})=>{const i=s=>a.selectedItem===s?"bg-primary text-primary-foreground cursor-default":"hover:bg-primary/10";return e.subitems?l.jsxs(C3,{value:e.value,className:"overflow-x-clip",dir:r,children:[l.jsx(w3,{className:Te("overflow-x-clip",a.selectedItem===e.value?"cursor-default bg-primary text-primary-foreground":"hover:bg-primary/10",e.subitems&&e.subitems.some(s=>a.selectedItem===s.value)?"bg-primary text-primary-foreground hover:bg-primary":""),showArrow:o,children:l.jsxs("div",{className:Te(!o&&"py-1","flex w-fit flex-row items-center gap-2"),children:[e.icon,o&&l.jsx("span",{className:Te("transition-all ",o?"opacity-100":"opacity-0"),children:e.label})]})}),e.subitems&&l.jsx(E3,{className:" mt-1 h-full rounded ",children:l.jsx("div",{className:Te("flex h-full flex-col gap-2 bg-foreground/5 p-1"),children:e.subitems.map((s,u)=>l.jsxs("li",{onClick:c=>{c.stopPropagation(),s.onClick(),n&&n([e.value,s.value])},className:Te("flex h-full cursor-pointer flex-row items-center gap-2 rounded p-2 transition-all",i(s.value)),children:[s.icon,s.label]},u))})})]}):l.jsx("div",{dir:r,onClick:()=>{e.onClick(),t&&t([e.value])},className:Te(y3,i(e.value),"overflow-x-clip "),children:l.jsxs("div",{className:"flex flex-row items-center gap-2 ",children:[e.icon,l.jsx("span",{className:Te("whitespace-nowrap transition-all",o?"opacity-100":"opacity-0"),children:e.label})]})})},VM=({direction:e="ltr",drawerSize:t="md",onSettingsClick:n,DrawerFooterActions:r,currentPage:o,clickedItem:a,design:i="default",...s})=>{var $,G;let u=56,c=200,d={opened:{sm:"100",md:c,lg:"250"},closed:{sm:u,md:u,lg:u}};const g=p.useRef(null),v=e==="rtl",[y,C]=p.useState("");p.useState(o);let h;typeof window<"u"?h=Bf():h=1200;const[w,E]=p.useState(()=>h>600?s.keepDrawerOpen!==void 0?s.keepDrawerOpen:!0:!1),[j,P]=p.useState(h>600);let N=h>600?d[w?"opened":"closed"][t]:0;return p.useEffect(()=>{const V=J=>{g.current&&!g.current.contains(J.target)&&!w&&P(!1)};return document.addEventListener("click",V,!0),()=>{document.removeEventListener("click",V,!0)}},[w]),l.jsxs("div",{className:"fixed left-0",children:[s.topBar&&l.jsxs("div",{className:_e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",v?"flex-row-reverse":"flex-row"),children:[h>600?l.jsx("div",{className:_e("dark:text-white",v?[h>600?"mr-14":"mr-2",w?"mr-40":""]:[h>600?"ml-14":"ml-2",w?"ml-40":""]),style:v?{marginRight:`${d[w?"opened":"closed"][t]}px`}:{marginLeft:`${d[w?"opened":"closed"][t]}px`},children:s.pageTitle}):l.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[l.jsx("div",{onClick:()=>P(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"})})}),s.pageTitle?l.jsx("div",{className:"text-sm",children:s.pageTitle}):l.jsx("div",{})]}),l.jsxs("div",{className:_e("flex gap-2 dark:text-white",v?"flex-row-reverse":"flex-row"),children:[h>600?l.jsxs("div",{className:v?"text-left text-xs":"text-right text-xs",children:[l.jsx("div",{className:"font-bold",children:s.username})," ",l.jsx("div",{children:s.email})]}):null,l.jsx(pi,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,width:s.profileMenuWidth,direction:v?"rtl":"ltr",items:s.profileMenuItems,onItemSelect:V=>console.log("selecting item ",V),trigger:l.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:s.avatarImage?l.jsx("img",{src:s.avatarImage,alt:"User Avatar"}):l.jsx("svg",{"aria-label":"Avatar Icon",className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),l.jsxs("div",{className:_e("fixed z-40 flex flex-col justify-between overflow-x-clip transition-all",i==="floating"?v?"right-5 top-5":"bottom-5 left-5 top-5":v?"right-0 top-0 h-full":"left-0 top-0 h-full"),style:{width:h>600?j?`${d.opened[t]}px`:`${d.closed[t]}px`:j?`${d.opened[t]}px`:"0px"},onMouseEnter:()=>{P(!0)},onMouseLeave:()=>{w?P(!0):(C(""),P(!1))},ref:g,children:[l.jsxs("div",{dir:e,className:"fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all",style:{width:h>600?`${j?c:56}px`:`${j?c:0}px`},children:[l.jsx("img",{className:_e("h-9 opacity-0 transition-all",j?"visible opacity-100":"invisible opacity-0"),src:s.logoLink}),h>600?l.jsx("img",{className:_e("fixed h-9 transition-all",i==="floating"?v?"right-7.5 top-7":"left-7.5 top-7":v?"right-2.5 top-2.5":"left-2.5 top-2.5",j?"invisible opacity-0":"visible opacity-100"),src:s.logoSymbol}):null]}),l.jsx("div",{className:_e("fixed bottom-14 bg-primary-foreground p-2 py-2 transition-all",i==="floating"?"top-[76px]":"top-14",j?"overflow-auto":"overflow-hidden"),style:{height:i==="floating"?"calc(100% - 152px)":"calc(100% - 112px)",width:h>600?`${j?c:56}px`:`${j?c:0}px`},children:l.jsx(S3,{direction:e,onItemClick:V=>{a&&a(V)},onSubItemClick:V=>{a&&a(V)},selectedItem:o,openedItem:y,setOpenedItem:V=>C(V),isOpen:j,items:s.drawerItems})}),l.jsxs("div",{className:_e("fixed flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row",i==="floating"?"bottom-5":"bottom-0"),style:{width:h>600?`${j?c:56}px`:`${j?c:0}px`},children:[r&&j?l.jsx(l.Fragment,{children:r}):null,h>600&&j?l.jsx(Is,{side:"left",delayDuration:500,content:w?(($=s.texts)==null?void 0:$.collapseSidebar)||"Collapse Sidebar":((G=s.texts)==null?void 0:G.expandSidebar)||"Expand Sidebar",children:l.jsx(Qe,{variant:"light",onClick:()=>{E(!w),s.onDrawerExpand&&s.onDrawerExpand(w)},size:"smallIcon",children:l.jsx("svg",{className:_e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",w?v?"-rotate-90":"rotate-90":v?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),l.jsx("div",{className:"fixed overflow-y-auto transition-all",style:i==="floating"?v?{height:`calc(100% - ${s.topBar?"56":"0"}px)`,width:`calc(100% - ${N+20}px)`,left:"0px",top:s.topBar?"56px":"0px"}:{height:`calc(100% - ${s.topBar?"56":"0"}px)`,width:`calc(100% - ${N+20}px)`,left:`${N+20}px`,top:s.topBar?"56px":"0px"}:v?{height:`calc(100% - ${s.topBar?"56":"0"}px)`,width:`calc(100% - ${N}px)`,left:"0px",top:s.topBar?"56px":"0px"}:{height:`calc(100% - ${s.topBar?"56":"0"}px)`,width:`calc(100% - ${N}px)`,left:`${N}px`,top:s.topBar?"56px":"0px"},children:s.children})]})};var F3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},A3=p.createContext&&p.createContext(F3),La=globalThis&&globalThis.__assign||function(){return La=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},La.apply(this,arguments)},WM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function j3(e){return e&&e.map(function(t,n){return p.createElement(t.tag,La({key:n},t.attr),j3(t.child))})}function Vu(e){return function(t){return p.createElement(HM,La({attr:La({},e.attr)},t),j3(e.child))}}function HM(e){var t=function(n){var r=e.attr,o=e.size,a=e.title,i=WM(e,["attr","size","title"]),s=o||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),p.createElement("svg",La({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:u,style:La(La({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&p.createElement("title",null,a),e.children)};return A3!==void 0?p.createElement(A3.Consumer,null,function(n){return t(n)}):t(F3)}function GM(e){return Vu({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}}]})(e)}function zM(e){return Vu({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function I3(e){return Vu({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}const UM=({direction:e="rtl",drawerSize:t="md",onSettingsClick:n,...r})=>{var w;const[o,a]=p.useState(!1),[i,s]=p.useState("");gv(!1);const[u,c]=p.useState(!1),d=p.useRef(null),g=e==="rtl";let v;typeof window<"u"?v=Bf():v=1200,p.useEffect(()=>{const E=j=>{d.current&&!d.current.contains(j.target)&&!u&&a(!1)};return document.addEventListener("click",E,!0),()=>{document.removeEventListener("click",E,!0)}},[u]);let y="fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",C={opened:{sm:"100",md:"160",lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},h=v>600?C[u?"opened":"closed"][t]:0;return l.jsxs("div",{className:"fixed",children:[r.topBar&&l.jsxs("div",{className:_e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-layoutPrimary-500 p-2",g?"flex-row-reverse":"flex-row"),children:[v>600?r.pageTitle?l.jsx("div",{className:_e(g?[v>600?"mr-14":"mr-2",u?"mr-40":""]:[v>600?"ml-14":"ml-2",u?"ml-40":""]),style:g?{marginRight:`${C[u?"opened":"closed"][t]}px`}:{marginLeft:`${C[u?"opened":"closed"][t]}px`},children:r.pageTitle}):null:l.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5 ",children:[l.jsxs("div",{onClick:()=>a(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:[l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:l.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),r.pageTitle?l.jsx("div",{className:"text-sm",children:r.pageTitle}):l.jsx("div",{})]}),l.jsxs("div",{className:_e("flex gap-2",g?"flex-row-reverse":"flex-row"),children:[v>600?l.jsxs("div",{className:_e(g?"text-left text-xs":"text-right text-xs"),children:[l.jsx("div",{className:"font-bold",children:r.username})," ",l.jsx("div",{children:r.email})]}):null,l.jsx(Rd,{direction:e,withHeader:!(v>600),headerTitle:v>600?"":r.username,headerSubtitle:v>600?"":r.email,menuItems:r.profileMenuItems,position:"bottom-left",children:l.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-hidden rounded-full ring-1 ring-buttonPrimary-500 dark:bg-gray-600",children:l.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),l.jsx("div",{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>a(!!u),ref:d,className:_e(y,C[t],g?"right-0":"left-0"),style:{width:v>600?o?`${C.opened[t]}px`:`${C.closed[t]}px`:o?`${C.opened[t]}px`:"0px"},children:l.jsxs("div",{className:_e("no-scrollbar",r.topBar?"":"mt-2",o?"overflow-auto":"overflow-hidden"),children:[l.jsxs("div",{dir:e,className:_e("fixed z-50 mb-2 flex h-14 flex-row items-center transition-all ",v>600||o?"bg-layoutPrimary-500":"w-0 bg-transparent"),style:{width:v>600?`${C[o?"opened":"closed"][t]-16}px`:"full"},children:[l.jsx("img",{className:_e("fixed top-2.5 h-9 opacity-0 transition-all",g?"right-2.5":"left-2.5",o?"visible opacity-100":"invisible opacity-0"),src:r.logoLink}),v>600?l.jsx("img",{className:_e("fixed top-2.5 h-9 transition-all",g?"right-2.5":"left-2.5",o?"invisible opacity-0":"visible opacity-100"),src:r.logoSymbol}):null]}),l.jsx("div",{className:"mb-10 mt-14",children:(w=r.drawerItems)==null?void 0:w.map((E,j)=>l.jsxs("div",{className:_e("flex flex-col items-stretch justify-center"),children:[E==null?void 0:E.map((P,N)=>{var $,G,V;return l.jsxs("div",{id:"test",className:"flex flex-col",children:[l.jsxs("div",{onClick:()=>{P.subItems?i===P.slug?s(""):s(P.slug):P.action()},className:_e(r.currentPage===P.slug||($=P.subItems)!=null&&$.find(J=>J.slug===r.currentPage)?"bg-buttonPrimary-500 text-white":"hover:bg-layoutPrimary-300","m-2 my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",g?"flex-row-reverse pr-3":""),children:[l.jsxs("div",{className:"flex flex-row",dir:e,children:[l.jsx("div",{className:"flex items-center justify-center",children:P.icon}),l.jsx("div",{className:_e("mx-2 whitespace-nowrap text-sm transition-all",o?"opacity-100":"opacity-0"),children:P.label})]}),P.subItems&&l.jsx("div",{className:_e(i&&P.slug===i?"-rotate-90":"rotate-90"),children:l.jsx(I3,{fontSize:11})})]}),P.subItems&&l.jsx("div",{className:_e("m-1 flex cursor-pointer flex-col gap-0 overflow-clip whitespace-nowrap rounded bg-layoutPrimary-300 p-1 transition-all",i==P.slug&&o?"":"my-0 py-0",g?"text-right":"text-left"),style:{height:i==P.slug&&o?6+33*((G=P.subItems)==null?void 0:G.length):0},children:(V=P.subItems)==null?void 0:V.map((J,K)=>l.jsxs("div",{className:_e("flex flex-row gap-2 overflow-x-clip rounded p-2 px-2 text-xs",g?"text-right":"text-left",r.currentPage===J.slug?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-500"),dir:e,onClick:()=>{J.action()},children:[l.jsx("div",{className:"flex items-center justify-center",children:J.icon}),l.jsx("div",{className:"flex flex-row justify-between",children:J.label})]},K))})]},N)}),j!==r.drawerItems.length-1&&l.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center "})]},j))}),o&&l.jsxs("div",{className:_e("fixed bottom-0 flex flex-row items-center bg-layoutPrimary-500 p-4 transition-all",o?"bg-layoutPrimary-500 ":"bg-red-500",n?"justify-between":"justify-end",e==="rtl"?"right-0":"left-0"),style:{width:`${C[o?"opened":"closed"][t]-16}px`},children:[n&&l.jsx("div",{className:" cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",onClick:()=>n(),children:l.jsxs("svg",{"aria-label":"Settings Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[l.jsx("circle",{cx:"12",cy:"12",r:"3"}),l.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}),v>600?l.jsx("div",{className:_e("w-fit transition-all"),style:g?{right:`${C[o?"opened":"closed"][t]-35}px`}:{left:`${C[o?"opened":"closed"][t]-35}px`},children:l.jsx("div",{dir:e,className:_e("relative left-0 top-0 transition-all",o?" opacity-100":" opacity-0"),children:l.jsx("div",{onClick:()=>c(!u),className:"w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400",children:l.jsx(I3,{fontSize:14,className:_e("transition-all",g?u?"rotate-0":"rotate-180":u?"rotate-180":"rotate-0")})})})}):null]})]})}),l.jsx("div",{className:"fixed overflow-y-auto",style:g?{height:`calc(100% - ${r.topBar?"56":"0"}px)`,width:`calc(100% - ${h}px)`,left:"0px",top:r.topBar?"56px":"0px"}:{height:`calc(100% - ${r.topBar?"56":"0"}px)`,width:`calc(100% - ${h}px)`,left:`${h}px`,top:r.topBar?"56px":"0px"},children:r.children})]})},ZM=({direction:e="rtl",drawerSize:t="md",onSettingsClick:n,DrawerFooterActions:r,...o})=>{var E,j,P;const[a,i]=p.useState(!1),[s,u]=p.useState("");gv(!1);const[c,d]=p.useState(!1),g=p.useRef(null),v=e==="rtl";let y;typeof window<"u"?y=Bf():y=1200,p.useEffect(()=>{const N=$=>{g.current&&!g.current.contains($.target)&&!c&&i(!1)};return document.addEventListener("click",N,!0),()=>{document.removeEventListener("click",N,!0)}},[c]);let C=200,h={opened:{sm:"100",md:C,lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},w=y>600?h[c?"opened":"closed"][t]:0;return l.jsxs("div",{className:"fixed left-0",children:[o.topBar&&l.jsxs("div",{className:_e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",v?"flex-row-reverse":"flex-row"),children:[y>600?l.jsx("div",{className:_e("dark:text-white",v?[y>600?"mr-14":"mr-2",c?"mr-40":""]:[y>600?"ml-14":"ml-2",c?"ml-40":""]),style:v?{marginRight:`${h[c?"opened":"closed"][t]}px`}:{marginLeft:`${h[c?"opened":"closed"][t]}px`},children:o.pageTitle}):l.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[l.jsx("div",{onClick:()=>i(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:l.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}),o.pageTitle?l.jsx("div",{className:"text-sm",children:o.pageTitle}):l.jsx("div",{})]}),l.jsxs("div",{className:_e("flex gap-2 dark:text-white",v?"flex-row-reverse":"flex-row"),children:[y>600?l.jsxs("div",{className:v?"text-left text-xs":"text-right text-xs",children:[l.jsx("div",{className:"font-bold",children:o.username})," ",l.jsx("div",{children:o.email})]}):null,l.jsx(pi,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,direction:v?"rtl":"ltr",trigger:l.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:l.jsx(XM,{})}),items:o.profileMenuItems,onItemSelect:N=>console.log("selecting item ",N)})]})]}),l.jsxs("div",{className:_e("fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip transition-all",v?"right-0":"left-0"),style:{width:y>600?a?`${h.opened[t]}px`:`${h.closed[t]}px`:a?`${h.opened[t]}px`:"0px"},onMouseEnter:()=>{i(!0)},onMouseLeave:()=>i(!!c),ref:g,children:[l.jsxs("div",{dir:e,className:_e("fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all"),style:{width:y>600?`${a?C:56}px`:`${a?C:0}px`},children:[l.jsx("img",{className:_e("h-9 opacity-0 transition-all",a?"visible opacity-100":"invisible opacity-0"),src:o.logoLink}),y>600?l.jsx("img",{className:_e("fixed top-2.5 h-9 transition-all",v?"right-2.5":"left-2.5",a?"invisible opacity-0":"visible opacity-100"),src:o.logoSymbol}):null]}),l.jsx("div",{className:_e("fixed bottom-14 top-14 bg-primary-foreground py-2 transition-all",a?"overflow-auto":"overflow-hidden"),style:{height:"calc(100% - 112px)",width:y>600?`${a?C:56}px`:`${a?C:0}px`},children:(E=o.drawerItems)==null?void 0:E.map((N,$)=>l.jsxs("div",{className:_e("flex select-none flex-col items-stretch justify-center transition-all"),children:[N==null?void 0:N.map((G,V)=>{var J,K,me;return l.jsxs("div",{id:"test",className:"flex flex-col",children:[l.jsxs("div",{onClick:()=>{G.subItems?s===G.slug?u(""):u(G.slug):G.action()},className:_e(o.currentPage===G.slug||(J=G.subItems)!=null&&J.find(ye=>ye.slug===o.currentPage)?"bg-primary text-primary-foreground ":"hover:bg-primary/20","my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",v?"flex-row-reverse pr-3":"","m-2"),children:[l.jsxs("div",{className:"flex flex-row",dir:e,children:[l.jsx("div",{className:"flex items-center justify-center ",children:G.icon}),l.jsx("div",{className:_e("mx-2 whitespace-nowrap text-sm transition-all",a?"opacity-100":"opacity-0"),children:G.label})]}),G.subItems&&l.jsx(YM,{pointing:s&&G.slug===s?"up":"down"})]}),G.subItems&&l.jsx("div",{className:_e("m-1 mx-2 flex cursor-pointer flex-col gap-[2px] overflow-clip whitespace-nowrap rounded bg-primary/10 p-1 transition-all",s==G.slug&&a?"":"my-0 py-0",v?"text-right":"text-left"),style:{height:s==G.slug&&a?6+35*((K=G.subItems)==null?void 0:K.length):0},children:(me=G.subItems)==null?void 0:me.map((ye,ne)=>l.jsxs("div",{className:_e("flex flex-row gap-2 overflow-x-clip rounded-inner p-2 px-2 text-xs",v?"text-right":"text-left",o.currentPage===ye.slug?"bg-primary text-white":"hover:bg-primary-foreground hover:text-primary "),dir:e,onClick:()=>{ye.action()},children:[l.jsx("div",{className:"flex items-center justify-center",children:ye.icon}),l.jsx("div",{className:"flex flex-row justify-between",children:ye.label})]},ne))})]},V)}),$!==o.drawerItems.length-1&&l.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 bg-red-500 text-center "})]},$))}),l.jsxs("div",{className:_e("fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row"),style:{width:y>600?`${a?C:56}px`:`${a?C:0}px`},children:[r&&a?l.jsx(l.Fragment,{children:r}):null,y>600&&a?l.jsx(Is,{side:"left",delayDuration:500,content:c?((j=o.texts)==null?void 0:j.collapseSidebar)||"Collapse Sidebar":((P=o.texts)==null?void 0:P.expandSidebar)||"Expand Sidebar",children:l.jsx(Qe,{variant:"light",onClick:()=>d(!c),size:"smallIcon",children:l.jsx("svg",{className:_e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",c?v?"-rotate-90":"rotate-90":v?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),l.jsx("div",{className:"fixed overflow-y-auto",style:v?{height:`calc(100% - ${o.topBar?"56":"0"}px)`,width:`calc(100% - ${w}px)`,left:"0px",top:o.topBar?"56px":"0px"}:{height:`calc(100% - ${o.topBar?"56":"0"}px)`,width:`calc(100% - ${w}px)`,left:`${w}px`,top:o.topBar?"56px":"0px"},children:o.children})]})},XM=()=>l.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})}),YM=({pointing:e})=>{let t;switch(e){case"right":t="-rotate-90";break;case"left":t="rotate-90";break;case"up":t="-rotate-180";break;case"down":t="rotate-0";break}return l.jsx("svg",{className:_e("h-6 w-6 shrink-0 text-primary-foreground transition-all disabled:bg-gray-200 ",t),fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})},JM=({maxWidth:e="normal",variant:t="contained",centered:n=!1,direction:r="ltr",...o})=>{let a="flex w-full flex-col rounded p-4",i={full:"md:max-w-xl",small:"md:max-w-sm w-1/3 min-w-min",normal:"max-w-sm md:max-w-md"},s={contained:"bg-background border",outlined:"bg-transparent border border-black w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white"};return l.jsx("div",{className:_e(a,i[e],s[t],n?"flex items-center text-center":""),dir:r,children:o.children})},KM=e=>l.jsx("div",{className:" columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8",children:e.children}),QM=({isOpen:e,onClose:t,items:n})=>e?l.jsxs("div",{className:"fixed inset-0 z-40 flex bg-gray-600 bg-opacity-75",children:[l.jsxs("div",{className:"w-1/3 rounded-l-lg bg-gray-800 shadow-2xl",children:[l.jsx("button",{onClick:t,className:"p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none",children:"Close"}),l.jsx("nav",{children:n.map((r,o)=>l.jsx("a",{href:"#",onClick:r.onClick,className:"block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400",children:r.label},o))})]}),l.jsx("div",{className:"w-2/3 bg-gray-50"})]}):null;function qM(e){return Vu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"}}]})(e)}function eL(e){return Vu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}const tL=({variation:e="default",...t})=>{var r;let n={default:"rounded border",minimal:"border-t"};return l.jsxs("div",{className:Te("flex w-full flex-row items-center justify-between gap-8 rounded bg-background p-4",n[e]),children:[l.jsxs("div",{className:"flex flex-col items-center gap-2",children:[l.jsxs("div",{className:"flex flex-row items-center gap-2",children:[t.logoURL&&l.jsx("div",{children:l.jsx("img",{className:"h-8",src:t.logoURL})}),t.logoText&&l.jsx("div",{children:l.jsx("div",{className:"text-2xl font-bold text-primary",children:t.logoText})})]}),t.copyRights&&t.footerLinks&&l.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]})]}),t.copyRights&&!t.footerLinks&&l.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]}),(r=t.footerLinks)==null?void 0:r.map(o=>l.jsxs("div",{className:"flex w-32 flex-col gap-2",children:[l.jsx("div",{className:"text-lg font-bold",children:o.title}),l.jsx("div",{className:"flex flex-col gap-1",children:o.pages.map(a=>l.jsx("a",{className:"transition-all hover:font-bold",href:a.link,children:a.label}))})]})),t.socialLinks&&l.jsxs("div",{className:"flex flex-row gap-2",children:[t.socialLinks.twitter&&l.jsx(Qe,{size:"smallIcon",variant:"ghost",children:l.jsx(eL,{})}),t.socialLinks.instagram&&l.jsx(Qe,{size:"smallIcon",variant:"ghost",children:l.jsx(qM,{})}),t.socialLinks.tiktok&&l.jsx(Qe,{size:"smallIcon",variant:"ghost",children:l.jsx(zM,{})}),t.socialLinks.snapchat&&l.jsx(Qe,{size:"smallIcon",variant:"ghost",children:l.jsx(GM,{})})]})]})},nL=({design:e="floating",...t})=>{const n=p.useRef(null),[r,o]=p.useState(!1);let a={floating:"left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",default:"w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"};return l.jsx("div",{ref:n,children:l.jsxs("div",{dir:t.direction,className:_e(a[e],"fixed flex flex-col justify-between border border-gray-100 bg-white shadow-sm transition-all dark:border-gray-600 dark:bg-gray-700 md:flex-row md:gap-4 ",t.position==="top"?e==="floating"?"top-6":"top-0":e==="floating"?"bottom-6":"bottom-0",r?"opacity-0":"opacity-100"),children:[l.jsxs("div",{className:"mb-3 flex w-full flex-col items-center justify-start md:mb-0 md:flex-row md:items-center",children:[l.jsxs("div",{className:_e(t.direction==="rtl"?"md:ml-4 md:border-l md:pl-4":"md:mr-4 md:border-r md:pr-4","mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"),children:[t.logoURL&&l.jsx("img",{src:t.logoURL,className:"mr-2 h-6",alt:"Flowbite Logo"}),t.title&&l.jsx("span",{className:"self-center whitespace-nowrap text-lg font-semibold dark:text-white",children:t.title})]}),t.text&&l.jsx("p",{className:_e("m-0 flex items-center text-center text-sm font-normal text-gray-500 dark:text-gray-400 ",t.direction==="rtl"?"md:text-right":"md:text-left"),children:t.text})]}),t.actionText&&l.jsx("div",{className:_e("flex flex-shrink-0 items-center justify-center ",t.direction==="rtl"?"ml-0 md:ml-10":"mr-0 md:mr-10"),children:l.jsx(Qe,{onClick:t.onActionClick,children:t.actionText})}),l.jsxs("button",{type:"button",className:_e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",t.direction==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{o(!0),setTimeout(()=>{n.current.removeChild(n.current.children[0])},200)},children:[l.jsx("span",{className:"sr-only",children:"Close"}),l.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})};var Wu=e=>e.type==="checkbox",Us=e=>e instanceof Date,er=e=>e==null;const T3=e=>typeof e=="object";var wn=e=>!er(e)&&!Array.isArray(e)&&T3(e)&&!Us(e),k3=e=>wn(e)&&e.target?Wu(e.target)?e.target.checked:e.target.value:e,rL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,P3=(e,t)=>e.has(rL(t)),oL=e=>{const t=e.constructor&&e.constructor.prototype;return wn(t)&&t.hasOwnProperty("isPrototypeOf")},yv=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function uo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(yv&&(e instanceof Blob||e instanceof FileList))&&(n||wn(e)))if(t=n?[]:{},!n&&!oL(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=uo(e[r]));else return e;return t}var Hu=e=>Array.isArray(e)?e.filter(Boolean):[],bn=e=>e===void 0,et=(e,t,n)=>{if(!t||!wn(e))return n;const r=Hu(t.split(/[,[\].]+?/)).reduce((o,a)=>er(o)?o:o[a],e);return bn(r)||r===e?bn(e[t])?n:e[t]:r},_a=e=>typeof e=="boolean";const $f={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},co={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ta={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},B3=p.createContext(null),Cv=()=>p.useContext(B3),Gu=e=>{const{children:t,...n}=e;return p.createElement(B3.Provider,{value:n},t)};var N3=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==co.all&&(t._proxyFormState[i]=!r||co.all),n&&(n[i]=!0),e[i]}});return o},Hr=e=>wn(e)&&!Object.keys(e).length,O3=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return Hr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!r||co.all))},Rf=e=>Array.isArray(e)?e:[e],$3=(e,t,n)=>n&&t?e===t||Array.isArray(e)&&e.some(r=>r&&n&&r===t):!e||!t||e===t||Rf(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function wv(e){const t=p.useRef(e);t.current=e,p.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function aL(e){const t=Cv(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[i,s]=p.useState(n._formState),u=p.useRef(!0),c=p.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=p.useRef(o);return d.current=o,wv({disabled:r,next:g=>u.current&&$3(d.current,g.name,a)&&O3(g,c.current,n._updateFormState)&&s({...n._formState,...g}),subject:n._subjects.state}),p.useEffect(()=>(u.current=!0,c.current.isValid&&n._updateValid(!0),()=>{u.current=!1}),[n]),N3(i,n,c.current,!1)}var Bo=e=>typeof e=="string",R3=(e,t,n,r,o)=>Bo(e)?(r&&t.watch.add(e),et(n,e,o)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),et(n,a))):(r&&(t.watchAll=!0),n);function iL(e){const t=Cv(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:i}=e||{},s=p.useRef(r);s.current=r,wv({disabled:a,subject:n._subjects.values,next:d=>{$3(s.current,d.name,i)&&c(uo(R3(s.current,n._names,d.values||n._formValues,!1,o)))}});const[u,c]=p.useState(n._getWatch(r,o));return p.useEffect(()=>n._removeUnmounted()),u}var Ev=e=>/^\w*$/.test(e),M3=e=>Hu(e.replace(/["|']|\]/g,"").split(/\.|\[/));function tn(e,t,n){let r=-1;const o=Ev(t)?[t]:M3(t),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let u=n;if(r!==i){const c=e[s];u=wn(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}e[s]=u,e=e[s]}return e}function sL(e){const t=Cv(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a}=e,i=P3(o._names.array,n),s=iL({control:o,name:n,defaultValue:et(o._formValues,n,et(o._defaultValues,n,e.defaultValue)),exact:!0}),u=aL({control:o,name:n}),c=p.useRef(o.register(n,{...e.rules,value:s}));return c.current=o.register(n,e.rules),p.useEffect(()=>{const d=o._options.shouldUnregister||a,g=(v,y)=>{const C=et(o._fields,v);C&&(C._f.mount=y)};if(g(n,!0),d){const v=uo(et(o._options.defaultValues,n));tn(o._defaultValues,n,v),bn(et(o._formValues,n))&&tn(o._formValues,n,v)}return()=>{(i?d&&!o._state.action:d)?o.unregister(n):g(n,!1)}},[n,o,i,a]),p.useEffect(()=>{o._updateDisabledField({disabled:r,fields:o._fields,name:n})},[r,n,o]),{field:{name:n,value:s,..._a(r)?{disabled:r}:{},onChange:p.useCallback(d=>c.current.onChange({target:{value:k3(d),name:n},type:$f.CHANGE}),[n]),onBlur:p.useCallback(()=>c.current.onBlur({target:{value:et(o._formValues,n),name:n},type:$f.BLUR}),[n,o]),ref:d=>{const g=et(o._fields,n);g&&d&&(g._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:v=>d.setCustomValidity(v),reportValidity:()=>d.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!et(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!et(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!et(u.touchedFields,n)},error:{enumerable:!0,get:()=>et(u.errors,n)}})}}const Pt=e=>e.render(sL(e));var lL=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{};const Sv=(e,t,n)=>{for(const r of n||Object.keys(e)){const o=et(e,r);if(o){const{_f:a,...i}=o;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else wn(i)&&Sv(i,t)}}};var L3=e=>({isOnSubmit:!e||e===co.onSubmit,isOnBlur:e===co.onBlur,isOnChange:e===co.onChange,isOnAll:e===co.all,isOnTouch:e===co.onTouched}),_3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),uL=(e,t,n)=>{const r=Hu(et(e,n));return tn(r,"root",t[n]),tn(e,n,r),e},Dv=e=>e.type==="file",Va=e=>typeof e=="function",Mf=e=>{if(!yv)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Lf=e=>Bo(e),Fv=e=>e.type==="radio",_f=e=>e instanceof RegExp;const V3={value:!1,isValid:!1},W3={value:!0,isValid:!0};var H3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!bn(e[0].attributes.value)?bn(e[0].value)||e[0].value===""?W3:{value:e[0].value,isValid:!0}:W3:V3}return V3};const G3={isValid:!1,value:null};var z3=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,G3):G3;function U3(e,t,n="validate"){if(Lf(e)||Array.isArray(e)&&e.every(Lf)||_a(e)&&!e)return{type:n,message:Lf(e)?e:"",ref:t}}var Zs=e=>wn(e)&&!_f(e)?e:{value:e,message:""},Z3=async(e,t,n,r,o)=>{const{ref:a,refs:i,required:s,maxLength:u,minLength:c,min:d,max:g,pattern:v,validate:y,name:C,valueAsNumber:h,mount:w,disabled:E}=e._f,j=et(t,C);if(!w||E)return{};const P=i?i[0]:a,N=ne=>{r&&P.reportValidity&&(P.setCustomValidity(_a(ne)?"":ne||""),P.reportValidity())},$={},G=Fv(a),V=Wu(a),J=G||V,K=(h||Dv(a))&&bn(a.value)&&bn(j)||Mf(a)&&a.value===""||j===""||Array.isArray(j)&&!j.length,me=lL.bind(null,C,n,$),ye=(ne,fe,R,W=ta.maxLength,oe=ta.minLength)=>{const pe=ne?fe:R;$[C]={type:ne?W:oe,message:pe,ref:a,...me(ne?W:oe,pe)}};if(o?!Array.isArray(j)||!j.length:s&&(!J&&(K||er(j))||_a(j)&&!j||V&&!H3(i).isValid||G&&!z3(i).isValid)){const{value:ne,message:fe}=Lf(s)?{value:!!s,message:s}:Zs(s);if(ne&&($[C]={type:ta.required,message:fe,ref:P,...me(ta.required,fe)},!n))return N(fe),$}if(!K&&(!er(d)||!er(g))){let ne,fe;const R=Zs(g),W=Zs(d);if(!er(j)&&!isNaN(j)){const oe=a.valueAsNumber||j&&+j;er(R.value)||(ne=oe>R.value),er(W.value)||(fe=oe<W.value)}else{const oe=a.valueAsDate||new Date(j),pe=te=>new Date(new Date().toDateString()+" "+te),se=a.type=="time",Z=a.type=="week";Bo(R.value)&&j&&(ne=se?pe(j)>pe(R.value):Z?j>R.value:oe>new Date(R.value)),Bo(W.value)&&j&&(fe=se?pe(j)<pe(W.value):Z?j<W.value:oe<new Date(W.value))}if((ne||fe)&&(ye(!!ne,R.message,W.message,ta.max,ta.min),!n))return N($[C].message),$}if((u||c)&&!K&&(Bo(j)||o&&Array.isArray(j))){const ne=Zs(u),fe=Zs(c),R=!er(ne.value)&&j.length>+ne.value,W=!er(fe.value)&&j.length<+fe.value;if((R||W)&&(ye(R,ne.message,fe.message),!n))return N($[C].message),$}if(v&&!K&&Bo(j)){const{value:ne,message:fe}=Zs(v);if(_f(ne)&&!j.match(ne)&&($[C]={type:ta.pattern,message:fe,ref:a,...me(ta.pattern,fe)},!n))return N(fe),$}if(y){if(Va(y)){const ne=await y(j,t),fe=U3(ne,P);if(fe&&($[C]={...fe,...me(ta.validate,fe.message)},!n))return N(fe.message),$}else if(wn(y)){let ne={};for(const fe in y){if(!Hr(ne)&&!n)break;const R=U3(await y[fe](j,t),P,fe);R&&(ne={...R,...me(fe,R.message)},N(R.message),n&&($[C]=ne))}if(!Hr(ne)&&($[C]={ref:P,...ne},!n))return $}}return N(!0),$};function cL(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=bn(e)?r++:e[t[r++]];return e}function dL(e){for(const t in e)if(e.hasOwnProperty(t)&&!bn(e[t]))return!1;return!0}function On(e,t){const n=Array.isArray(t)?t:Ev(t)?[t]:M3(t),r=n.length===1?e:cL(e,n),o=n.length-1,a=n[o];return r&&delete r[a],o!==0&&(wn(r)&&Hr(r)||Array.isArray(r)&&dL(r))&&On(e,n.slice(0,-1)),e}function Av(){let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var Vf=e=>er(e)||!T3(e);function Bi(e,t){if(Vf(e)||Vf(t))return e===t;if(Us(e)&&Us(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const a=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const i=t[o];if(Us(a)&&Us(i)||wn(a)&&wn(i)||Array.isArray(a)&&Array.isArray(i)?!Bi(a,i):a!==i)return!1}}return!0}var X3=e=>e.type==="select-multiple",fL=e=>Fv(e)||Wu(e),jv=e=>Mf(e)&&e.isConnected,Y3=e=>{for(const t in e)if(Va(e[t]))return!0;return!1};function Wf(e,t={}){const n=Array.isArray(e);if(wn(e)||n)for(const r in e)Array.isArray(e[r])||wn(e[r])&&!Y3(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Wf(e[r],t[r])):er(e[r])||(t[r]=!0);return t}function J3(e,t,n){const r=Array.isArray(e);if(wn(e)||r)for(const o in e)Array.isArray(e[o])||wn(e[o])&&!Y3(e[o])?bn(t)||Vf(n[o])?n[o]=Array.isArray(e[o])?Wf(e[o],[]):{...Wf(e[o])}:J3(e[o],er(t)?{}:t[o],n[o]):n[o]=!Bi(e[o],t[o]);return n}var Iv=(e,t)=>J3(e,t,Wf(t)),K3=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>bn(e)?e:t?e===""?NaN:e&&+e:n&&Bo(e)?new Date(e):r?r(e):e;function Tv(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Dv(t)?t.files:Fv(t)?z3(e.refs).value:X3(t)?[...t.selectedOptions].map(({value:n})=>n):Wu(t)?H3(e.refs).value:K3(bn(t.value)?e.ref.value:t.value,e)}var gL=(e,t,n,r)=>{const o={};for(const a of e){const i=et(t,a);i&&tn(o,a,i._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},zu=e=>bn(e)?e:_f(e)?e.source:wn(e)?_f(e.value)?e.value.source:e.value:e,pL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Q3(e,t,n){const r=et(e,n);if(r||Ev(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const a=o.join("."),i=et(t,a),s=et(e,a);if(i&&!Array.isArray(i)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:n}}var hL=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,mL=(e,t)=>!Hu(et(e,t)).length&&On(e,t);const vL={mode:co.onSubmit,reValidateMode:co.onChange,shouldFocusError:!0};function bL(e={},t){let n={...vL,...e},r={submitCount:0,isDirty:!1,isLoading:Va(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=wn(n.defaultValues)||wn(n.values)?uo(n.defaultValues||n.values)||{}:{},i=n.shouldUnregister?{}:uo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={values:Av(),array:Av(),state:Av()},y=e.resetOptions&&e.resetOptions.keepDirtyValues,C=L3(n.mode),h=L3(n.reValidateMode),w=n.criteriaMode===co.all,E=le=>Ee=>{clearTimeout(d),d=setTimeout(le,Ee)},j=async le=>{if(g.isValid||le){const Ee=n.resolver?Hr((await K()).errors):await ye(o,!0);Ee!==r.isValid&&v.state.next({isValid:Ee})}},P=le=>g.isValidating&&v.state.next({isValidating:le}),N=(le,Ee=[],Ie,Ze,He=!0,ke=!0)=>{if(Ze&&Ie){if(s.action=!0,ke&&Array.isArray(et(o,le))){const Fe=Ie(et(o,le),Ze.argA,Ze.argB);He&&tn(o,le,Fe)}if(ke&&Array.isArray(et(r.errors,le))){const Fe=Ie(et(r.errors,le),Ze.argA,Ze.argB);He&&tn(r.errors,le,Fe),mL(r.errors,le)}if(g.touchedFields&&ke&&Array.isArray(et(r.touchedFields,le))){const Fe=Ie(et(r.touchedFields,le),Ze.argA,Ze.argB);He&&tn(r.touchedFields,le,Fe)}g.dirtyFields&&(r.dirtyFields=Iv(a,i)),v.state.next({name:le,isDirty:fe(le,Ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else tn(i,le,Ee)},$=(le,Ee)=>{tn(r.errors,le,Ee),v.state.next({errors:r.errors})},G=(le,Ee,Ie,Ze)=>{const He=et(o,le);if(He){const ke=et(i,le,bn(Ie)?et(a,le):Ie);bn(ke)||Ze&&Ze.defaultChecked||Ee?tn(i,le,Ee?ke:Tv(He._f)):oe(le,ke),s.mount&&j()}},V=(le,Ee,Ie,Ze,He)=>{let ke=!1,Fe=!1;const Ge={name:le};if(!Ie||Ze){g.isDirty&&(Fe=r.isDirty,r.isDirty=Ge.isDirty=fe(),ke=Fe!==Ge.isDirty);const tt=Bi(et(a,le),Ee);Fe=et(r.dirtyFields,le),tt?On(r.dirtyFields,le):tn(r.dirtyFields,le,!0),Ge.dirtyFields=r.dirtyFields,ke=ke||g.dirtyFields&&Fe!==!tt}if(Ie){const tt=et(r.touchedFields,le);tt||(tn(r.touchedFields,le,Ie),Ge.touchedFields=r.touchedFields,ke=ke||g.touchedFields&&tt!==Ie)}return ke&&He&&v.state.next(Ge),ke?Ge:{}},J=(le,Ee,Ie,Ze)=>{const He=et(r.errors,le),ke=g.isValid&&_a(Ee)&&r.isValid!==Ee;if(e.delayError&&Ie?(c=E(()=>$(le,Ie)),c(e.delayError)):(clearTimeout(d),c=null,Ie?tn(r.errors,le,Ie):On(r.errors,le)),(Ie?!Bi(He,Ie):He)||!Hr(Ze)||ke){const Fe={...Ze,...ke&&_a(Ee)?{isValid:Ee}:{},errors:r.errors,name:le};r={...r,...Fe},v.state.next(Fe)}P(!1)},K=async le=>n.resolver(i,n.context,gL(le||u.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),me=async le=>{const{errors:Ee}=await K(le);if(le)for(const Ie of le){const Ze=et(Ee,Ie);Ze?tn(r.errors,Ie,Ze):On(r.errors,Ie)}else r.errors=Ee;return Ee},ye=async(le,Ee,Ie={valid:!0})=>{for(const Ze in le){const He=le[Ze];if(He){const{_f:ke,...Fe}=He;if(ke){const Ge=u.array.has(ke.name),tt=await Z3(He,i,w,n.shouldUseNativeValidation&&!Ee,Ge);if(tt[ke.name]&&(Ie.valid=!1,Ee))break;!Ee&&(et(tt,ke.name)?Ge?uL(r.errors,tt,ke.name):tn(r.errors,ke.name,tt[ke.name]):On(r.errors,ke.name))}Fe&&await ye(Fe,Ee,Ie)}}return Ie.valid},ne=()=>{for(const le of u.unMount){const Ee=et(o,le);Ee&&(Ee._f.refs?Ee._f.refs.every(Ie=>!jv(Ie)):!jv(Ee._f.ref))&&ae(le)}u.unMount=new Set},fe=(le,Ee)=>(le&&Ee&&tn(i,le,Ee),!Bi(U(),a)),R=(le,Ee,Ie)=>R3(le,u,{...s.mount?i:bn(Ee)?a:Bo(le)?{[le]:Ee}:Ee},Ie,Ee),W=le=>Hu(et(s.mount?i:a,le,e.shouldUnregister?et(a,le,[]):[])),oe=(le,Ee,Ie={})=>{const Ze=et(o,le);let He=Ee;if(Ze){const ke=Ze._f;ke&&(!ke.disabled&&tn(i,le,K3(Ee,ke)),He=Mf(ke.ref)&&er(Ee)?"":Ee,X3(ke.ref)?[...ke.ref.options].forEach(Fe=>Fe.selected=He.includes(Fe.value)):ke.refs?Wu(ke.ref)?ke.refs.length>1?ke.refs.forEach(Fe=>(!Fe.defaultChecked||!Fe.disabled)&&(Fe.checked=Array.isArray(He)?!!He.find(Ge=>Ge===Fe.value):He===Fe.value)):ke.refs[0]&&(ke.refs[0].checked=!!He):ke.refs.forEach(Fe=>Fe.checked=Fe.value===He):Dv(ke.ref)?ke.ref.value="":(ke.ref.value=He,ke.ref.type||v.values.next({name:le,values:{...i}})))}(Ie.shouldDirty||Ie.shouldTouch)&&V(le,He,Ie.shouldTouch,Ie.shouldDirty,!0),Ie.shouldValidate&&te(le)},pe=(le,Ee,Ie)=>{for(const Ze in Ee){const He=Ee[Ze],ke=`${le}.${Ze}`,Fe=et(o,ke);(u.array.has(le)||!Vf(He)||Fe&&!Fe._f)&&!Us(He)?pe(ke,He,Ie):oe(ke,He,Ie)}},se=(le,Ee,Ie={})=>{const Ze=et(o,le),He=u.array.has(le),ke=uo(Ee);tn(i,le,ke),He?(v.array.next({name:le,values:{...i}}),(g.isDirty||g.dirtyFields)&&Ie.shouldDirty&&v.state.next({name:le,dirtyFields:Iv(a,i),isDirty:fe(le,ke)})):Ze&&!Ze._f&&!er(ke)?pe(le,ke,Ie):oe(le,ke,Ie),_3(le,u)&&v.state.next({...r}),v.values.next({name:le,values:{...i}}),!s.mount&&t()},Z=async le=>{const Ee=le.target;let Ie=Ee.name,Ze=!0;const He=et(o,Ie),ke=()=>Ee.type?Tv(He._f):k3(le);if(He){let Fe,Ge;const tt=ke(),xt=le.type===$f.BLUR||le.type===$f.FOCUS_OUT,$t=!pL(He._f)&&!n.resolver&&!et(r.errors,Ie)&&!He._f.deps||hL(xt,et(r.touchedFields,Ie),r.isSubmitted,h,C),mt=_3(Ie,u,xt);tn(i,Ie,tt),xt?(He._f.onBlur&&He._f.onBlur(le),c&&c(0)):He._f.onChange&&He._f.onChange(le);const Wt=V(Ie,tt,xt,!1),mn=!Hr(Wt)||mt;if(!xt&&v.values.next({name:Ie,type:le.type,values:{...i}}),$t)return g.isValid&&j(),mn&&v.state.next({name:Ie,...mt?{}:Wt});if(!xt&&mt&&v.state.next({...r}),P(!0),n.resolver){const{errors:Kt}=await K([Ie]),En=Q3(r.errors,o,Ie),vn=Q3(Kt,o,En.name||Ie);Fe=vn.error,Ie=vn.name,Ge=Hr(Kt)}else Fe=(await Z3(He,i,w,n.shouldUseNativeValidation))[Ie],Ze=Number.isNaN(tt)||tt===et(i,Ie,tt),Ze&&(Fe?Ge=!1:g.isValid&&(Ge=await ye(o,!0)));Ze&&(He._f.deps&&te(He._f.deps),J(Ie,Ge,Fe,Wt))}},te=async(le,Ee={})=>{let Ie,Ze;const He=Rf(le);if(P(!0),n.resolver){const ke=await me(bn(le)?le:He);Ie=Hr(ke),Ze=le?!He.some(Fe=>et(ke,Fe)):Ie}else le?(Ze=(await Promise.all(He.map(async ke=>{const Fe=et(o,ke);return await ye(Fe&&Fe._f?{[ke]:Fe}:Fe)}))).every(Boolean),!(!Ze&&!r.isValid)&&j()):Ze=Ie=await ye(o);return v.state.next({...!Bo(le)||g.isValid&&Ie!==r.isValid?{}:{name:le},...n.resolver||!le?{isValid:Ie}:{},errors:r.errors,isValidating:!1}),Ee.shouldFocus&&!Ze&&Sv(o,ke=>ke&&et(r.errors,ke),le?He:u.mount),Ze},U=le=>{const Ee={...a,...s.mount?i:{}};return bn(le)?Ee:Bo(le)?et(Ee,le):le.map(Ie=>et(Ee,Ie))},Q=(le,Ee)=>({invalid:!!et((Ee||r).errors,le),isDirty:!!et((Ee||r).dirtyFields,le),isTouched:!!et((Ee||r).touchedFields,le),error:et((Ee||r).errors,le)}),he=le=>{le&&Rf(le).forEach(Ee=>On(r.errors,Ee)),v.state.next({errors:le?r.errors:{}})},H=(le,Ee,Ie)=>{const Ze=(et(o,le,{_f:{}})._f||{}).ref;tn(r.errors,le,{...Ee,ref:Ze}),v.state.next({name:le,errors:r.errors,isValid:!1}),Ie&&Ie.shouldFocus&&Ze&&Ze.focus&&Ze.focus()},ge=(le,Ee)=>Va(le)?v.values.subscribe({next:Ie=>le(R(void 0,Ee),Ie)}):R(le,Ee,!0),ae=(le,Ee={})=>{for(const Ie of le?Rf(le):u.mount)u.mount.delete(Ie),u.array.delete(Ie),Ee.keepValue||(On(o,Ie),On(i,Ie)),!Ee.keepError&&On(r.errors,Ie),!Ee.keepDirty&&On(r.dirtyFields,Ie),!Ee.keepTouched&&On(r.touchedFields,Ie),!n.shouldUnregister&&!Ee.keepDefaultValue&&On(a,Ie);v.values.next({values:{...i}}),v.state.next({...r,...Ee.keepDirty?{isDirty:fe()}:{}}),!Ee.keepIsValid&&j()},be=({disabled:le,name:Ee,field:Ie,fields:Ze})=>{if(_a(le)){const He=le?void 0:et(i,Ee,Tv(Ie?Ie._f:et(Ze,Ee)._f));tn(i,Ee,He),V(Ee,He,!1,!1,!0)}},Me=(le,Ee={})=>{let Ie=et(o,le);const Ze=_a(Ee.disabled);return tn(o,le,{...Ie||{},_f:{...Ie&&Ie._f?Ie._f:{ref:{name:le}},name:le,mount:!0,...Ee}}),u.mount.add(le),Ie?be({field:Ie,disabled:Ee.disabled,name:le}):G(le,!0,Ee.value),{...Ze?{disabled:Ee.disabled}:{},...n.progressive?{required:!!Ee.required,min:zu(Ee.min),max:zu(Ee.max),minLength:zu(Ee.minLength),maxLength:zu(Ee.maxLength),pattern:zu(Ee.pattern)}:{},name:le,onChange:Z,onBlur:Z,ref:He=>{if(He){Me(le,Ee),Ie=et(o,le);const ke=bn(He.value)&&He.querySelectorAll&&He.querySelectorAll("input,select,textarea")[0]||He,Fe=fL(ke),Ge=Ie._f.refs||[];if(Fe?Ge.find(tt=>tt===ke):ke===Ie._f.ref)return;tn(o,le,{_f:{...Ie._f,...Fe?{refs:[...Ge.filter(jv),ke,...Array.isArray(et(a,le))?[{}]:[]],ref:{type:ke.type,name:le}}:{ref:ke}}}),G(le,!1,void 0,ke)}else Ie=et(o,le,{}),Ie._f&&(Ie._f.mount=!1),(n.shouldUnregister||Ee.shouldUnregister)&&!(P3(u.array,le)&&s.action)&&u.unMount.add(le)}}},Ne=()=>n.shouldFocusError&&Sv(o,le=>le&&et(r.errors,le),u.mount),We=(le,Ee)=>async Ie=>{Ie&&(Ie.preventDefault&&Ie.preventDefault(),Ie.persist&&Ie.persist());let Ze=uo(i);if(v.state.next({isSubmitting:!0}),n.resolver){const{errors:He,values:ke}=await K();r.errors=He,Ze=ke}else await ye(o);On(r.errors,"root"),Hr(r.errors)?(v.state.next({errors:{}}),await le(Ze,Ie)):(Ee&&await Ee({...r.errors},Ie),Ne(),setTimeout(Ne)),v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Hr(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ke=(le,Ee={})=>{et(o,le)&&(bn(Ee.defaultValue)?se(le,et(a,le)):(se(le,Ee.defaultValue),tn(a,le,Ee.defaultValue)),Ee.keepTouched||On(r.touchedFields,le),Ee.keepDirty||(On(r.dirtyFields,le),r.isDirty=Ee.defaultValue?fe(le,et(a,le)):fe()),Ee.keepError||(On(r.errors,le),g.isValid&&j()),v.state.next({...r}))},$e=(le,Ee={})=>{const Ie=le?uo(le):a,Ze=uo(Ie),He=le&&!Hr(le)?Ze:a;if(Ee.keepDefaultValues||(a=Ie),!Ee.keepValues){if(Ee.keepDirtyValues||y)for(const ke of u.mount)et(r.dirtyFields,ke)?tn(He,ke,et(i,ke)):se(ke,et(He,ke));else{if(yv&&bn(le))for(const ke of u.mount){const Fe=et(o,ke);if(Fe&&Fe._f){const Ge=Array.isArray(Fe._f.refs)?Fe._f.refs[0]:Fe._f.ref;if(Mf(Ge)){const tt=Ge.closest("form");if(tt){tt.reset();break}}}}o={}}i=e.shouldUnregister?Ee.keepDefaultValues?uo(a):{}:uo(He),v.array.next({values:{...He}}),v.values.next({values:{...He}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!g.isValid||!!Ee.keepIsValid,s.watch=!!e.shouldUnregister,v.state.next({submitCount:Ee.keepSubmitCount?r.submitCount:0,isDirty:Ee.keepDirty?r.isDirty:!!(Ee.keepDefaultValues&&!Bi(le,a)),isSubmitted:Ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Ee.keepDirtyValues?r.dirtyFields:Ee.keepDefaultValues&&le?Iv(a,le):{},touchedFields:Ee.keepTouched?r.touchedFields:{},errors:Ee.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},qe=(le,Ee)=>$e(Va(le)?le(i):le,Ee);return{control:{register:Me,unregister:ae,getFieldState:Q,handleSubmit:We,setError:H,_executeSchema:K,_getWatch:R,_getDirty:fe,_updateValid:j,_removeUnmounted:ne,_updateFieldArray:N,_updateDisabledField:be,_getFieldArray:W,_reset:$e,_resetDefaultValues:()=>Va(n.defaultValues)&&n.defaultValues().then(le=>{qe(le,n.resetOptions),v.state.next({isLoading:!1})}),_updateFormState:le=>{r={...r,...le}},_subjects:v,_proxyFormState:g,get _fields(){return o},get _formValues(){return i},get _state(){return s},set _state(le){s=le},get _defaultValues(){return a},get _names(){return u},set _names(le){u=le},get _formState(){return r},set _formState(le){r=le},get _options(){return n},set _options(le){n={...n,...le}}},trigger:te,register:Me,handleSubmit:We,watch:ge,setValue:se,getValues:U,reset:qe,resetField:Ke,clearErrors:he,unregister:ae,setError:H,setFocus:(le,Ee={})=>{const Ie=et(o,le),Ze=Ie&&Ie._f;if(Ze){const He=Ze.refs?Ze.refs[0]:Ze.ref;He.focus&&(He.focus(),Ee.shouldSelect&&He.select())}},getFieldState:Q}}function na(e={}){const t=p.useRef(),n=p.useRef(),[r,o]=p.useState({isDirty:!1,isValidating:!1,isLoading:Va(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Va(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...bL(e,()=>o(i=>({...i}))),formState:r});const a=t.current.control;return a._options=e,wv({subject:a._subjects.state,next:i=>{O3(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),p.useEffect(()=>{e.values&&!Bi(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),p.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=N3(r,a),t.current}const xL=e=>{const t=na(),{formState:{errors:n},handleSubmit:r,control:o}=t;return l.jsx(Ut,{children:l.jsxs("form",{onSubmit:r(a=>e.handleUpdateProfile(a)),children:[l.jsx(Lt,{headless:!0,children:l.jsxs(Gu,{...t,children:[l.jsx(Pt,{control:o,name:"fullName",render:({field:a})=>{var i;return l.jsx(Ot,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:(i=n.fullName)==null?void 0:i.message,...a,value:a.value??""})}}),l.jsx(Pt,{control:o,name:"phoneNumber",render:({field:a})=>l.jsx($d,{label:"Phone number"})}),l.jsx(Pt,{control:o,name:"email",render:({field:a})=>{var i;return l.jsx(Ot,{width:"full",type:"text",label:e.texts.emailLabel,helperText:(i=n.email)==null?void 0:i.message,placeholder:e.texts.emailPlaceholder,...a,value:a.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),l.jsx(Pt,{control:o,name:"password",render:({field:a})=>{var i;return l.jsx(Ot,{width:"full",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:(i=n.password)==null?void 0:i.message,...a,value:a.value??""})},rules:{required:e.texts.passwordRequiredText}}),l.jsx(Pt,{control:o,name:"confirmPassword",render:({field:a})=>{var i;return l.jsx(Ot,{width:"full",type:"password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:(i=n.confirmPassword)==null?void 0:i.message,...a,value:a.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]})}),l.jsx(kr,{children:l.jsx(Qe,{className:"w-full",type:"submit",children:e.texts.updateProfile})})]})})},yL=e=>l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[l.jsx("div",{className:"mb-2 text-sm font-bold",children:e.blockTitle}),l.jsx("div",{className:"flex flex-col gap-4 rounded p-2",children:e.children})]})}),CL=e=>{var t,n,r,o,a,i,s;return l.jsxs("div",{dir:e.direction,children:[l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,className:"flex flex-col gap-6",children:[e.viaGoogle&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogle,children:[l.jsx(Zn.google,{className:"h-4 w-4"}),((t=e.texts)==null?void 0:t.continueWithGoogle)??"Continue With Google"]}),e.viaGithub&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithub,children:[l.jsx(Zn.gitHub,{className:"h-4 w-4"}),((n=e.texts)==null?void 0:n.continueWithGithub)??"Continue With Github"]}),e.viaTwitter&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitter,children:[l.jsx(Zn.twitter,{className:"h-4 w-4"}),((r=e.texts)==null?void 0:r.continueWithTwitter)??"Continue With Twitter"]}),e.viaApple&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleApple,children:[l.jsx(Zn.apple,{className:"h-4 w-4"}),((o=e.texts)==null?void 0:o.continueWithApple)??"Continue With Apple"]}),e.viaMicrosoft&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleMicrosoft,children:[l.jsx(Zn.microsoft,{className:"h-4 w-4"}),((a=e.texts)==null?void 0:a.continueWithMicrosoft)??"Continue With Microsoft"]}),e.viaEmail&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleEmail,children:[l.jsx(Zn.mail,{className:"h-4 w-4"}),((i=e.texts)==null?void 0:i.continueWithEmail)??"Continue With Email"]}),e.viaPhone&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handlePhone,children:[l.jsx(Zn.phone,{className:"h-4 w-4"}),((s=e.texts)==null?void 0:s.continueWithPhone)??"Continue With Phone"]}),!e.withoutSignUp&&l.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText,l.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),l.jsxs("div",{className:"mt-6 flex flex-row justify-between",children:[l.jsx(Sr,{onChangeTab:e.handleLanguage,design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),l.jsx(Sr,{onChangeTab:e.handleColorMode,design:"tabs",options:[{value:"light",label:l.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:l.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},{value:"dark",label:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:l.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})]})},wL=e=>{var j,P,N,$,G;const[t,n]=p.useState(null),r=na(),{formState:{errors:o},handleSubmit:a,control:i}=r,[s,u]=p.useState(null),[c,d]=p.useState(0),[g,v]=p.useState(!1),[y,C]=p.useState(""),[h,w]=p.useState(e.confirmationStage),E=()=>{clearTimeout(s),d(60),v(!0);const J=setInterval(()=>{d(K=>K>0?K-1:(clearInterval(J),v(!1),0))},1e3);u(J)};return l.jsx(Ut,{children:l.jsx(Lt,{className:"transition-all",headless:!0,children:h?l.jsxs("form",{onSubmit:V=>{V.preventDefault(),t&&e.handleConfirm(t)},children:[l.jsx(sm,{width:"full",digits:6,getPins:V=>n(V)}),l.jsx("div",{className:" py-2 text-center text-xs text-muted-foreground",children:g?l.jsxs("span",{children:["Resend code in ",c," seconds |"," ",l.jsx("span",{className:"clickable-link",onClick:()=>{clearTimeout(s),v(!1)},children:"Cancel"})]}):l.jsxs("span",{children:[((j=e.texts)==null?void 0:j.didntGetCode)??"Didn't get the code?"," ",l.jsx("span",{className:"clickable-link",onClick:()=>{E()},children:((P=e.texts)==null?void 0:P.resendCode)??"Click to resend"})]})}),l.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[l.jsx(Qe,{variant:"secondary",onClick:()=>w(!1),children:((N=e.texts)==null?void 0:N.cancel)??"Cancel"}),l.jsx(Qe,{isLoading:e.loadingConfirm,children:(($=e.texts)==null?void 0:$.confirm)??"Confirm"})]})]}):l.jsxs("form",{onSubmit:V=>{V.preventDefault(),w(!0),e.handleContinue(y)},children:[l.jsx(Pt,{control:i,name:"phone",render:({field:V})=>l.jsx($d,{country:e.country??"",label:e.label??"",handleChange:J=>C(J.target.value),...V}),rules:{required:e.phoneRequiredText}}),l.jsx(Qe,{isLoading:e.loadingContinue,className:"w-full",children:((G=e.texts)==null?void 0:G.continue)??"Continue"})]})})})},EL=e=>{const{formState:{errors:t},handleSubmit:n,control:r}=na();return l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsxs(Ut,{dir:e.direction,children:[l.jsx(Lt,{headless:!0,children:l.jsxs("form",{onSubmit:n(o=>e.handleSignIn(o)),children:[e.showError&&l.jsx(ro,{title:e.errorTitle,text:e.errorText,severity:"error"}),e.signInType==="email"?l.jsx(Pt,{control:r,name:"email",render:({field:o})=>{var a;return l.jsx(Ot,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helperText:(a=t.email)==null?void 0:a.message,placeholder:e.texts.emailPlaceholder,value:o.value??"",onChange:o.onChange})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}):e.signInType==="username"?l.jsx(Pt,{control:r,name:"username",render:({field:o})=>{var a;return l.jsx(Ot,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helperText:(a=t.username)==null?void 0:a.message,placeholder:e.texts.usernamePlaceholder,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.usernameRequired}}):l.jsx(Pt,{control:r,name:"phone",render:({field:o})=>l.jsx($d,{label:"Phone number"}),rules:{required:e.texts.phoneRequiredText}}),e.signInType!=="phone"&&l.jsxs(l.Fragment,{children:[l.jsx(Pt,{control:r,name:"password",render:({field:o})=>{var a;return l.jsx(Ot,{width:"full",autoComplete:"current-password",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:(a=t.password)==null?void 0:a.message,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.passwordRequiredText,minLength:5}}),!e.withoutResetPassword&&l.jsx("div",{onClick:e.handleForgotPassword,className:"mb-3 w-fit cursor-pointer text-xs dark:text-gray-300",children:e.texts.forgotPasswordText})]}),l.jsx(Qe,{className:"mt-4 w-full",isLoading:e.isLoading,children:e.texts.signInText}),!e.withoutSignUp&&l.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText," ",l.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?l.jsxs(kr,{className:Te(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignIn,children:[e.isGoogleLoading?l.jsx(ws,{size:"button"}):l.jsx(Zn.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGoogleLabel]}),e.viaGithub&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignIn,children:[e.isGithubLoading?l.jsx(ws,{size:"button"}):l.jsx(Zn.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGithubLabel]}),e.viaTwitter&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignIn,children:[e.isTwitterLoading?l.jsx(ws,{size:"button"}):l.jsx(Zn.twitter,{className:"h-4 w-4"})," ",!e.logosOnly&&e.texts.signInViaTwitterLabel]})]}):null]}),l.jsx(lm,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})};function SL(){return l.jsxs(Ut,{children:[l.jsxs(jo,{className:"space-y-1",children:[l.jsx(Io,{className:"text-2xl",children:"Create an account"}),l.jsx(hi,{children:"Enter your email below to create your account"})]}),l.jsxs(Lt,{className:"grid gap-4",children:[l.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[l.jsxs(Qe,{variant:"outline",children:[l.jsx(Zn.gitHub,{className:"mr-2 h-4 w-4"}),"Github"]}),l.jsxs(Qe,{variant:"outline",children:[l.jsx(Zn.google,{className:"mr-2 h-4 w-4"}),"Google"]})]}),l.jsxs("div",{className:"relative",children:[l.jsx("div",{className:"absolute inset-0 flex items-center",children:l.jsx("span",{className:"w-full border-t"})}),l.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:l.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),l.jsxs("div",{className:"grid gap-2",children:[l.jsx(Ea,{htmlFor:"email",children:"Email"}),l.jsx(Ls,{id:"email",type:"email",placeholder:"m@example.com"})]}),l.jsxs("div",{className:"grid gap-2",children:[l.jsx(Ea,{htmlFor:"password",children:"Password"}),l.jsx(Ls,{id:"password",type:"password"})]})]}),l.jsx(kr,{children:l.jsx(Qe,{className:"w-full",children:"Create account"})})]})}const DL=e=>{const t=na(),{formState:{errors:n},handleSubmit:r,control:o}=t;return l.jsxs("div",{className:"flex flex-col gap-4",children:[l.jsxs(Ut,{dir:e.direction,children:[l.jsx(Lt,{headless:!0,children:l.jsxs("div",{children:[e.showError&&l.jsx(ro,{title:e.errorTitle,text:e.errorText,severity:"error"}),l.jsx(Gu,{...t,children:l.jsxs("form",{onSubmit:r(a=>e.handleSignUp(a)),children:[l.jsx("div",{children:e.signUpFields.map((a,i)=>{if(a==="fullname")return l.jsx(Pt,{control:o,name:"fullName",render:({field:s})=>{var u;return l.jsx(Ot,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:(u=n.fullName)==null?void 0:u.message,onChange:s.onChange,value:s.value??""})},rules:{required:e.texts.fullNameRequiredText}},i);if(a==="email")return l.jsx(Pt,{control:o,name:"email",render:({field:s})=>{var u;return l.jsx(Ot,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helperText:(u=n.email)==null?void 0:u.message,placeholder:e.texts.emailPlaceholder,onChange:s.onChange,value:s.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}},i);if(a==="username")return l.jsx(Pt,{control:o,name:"username",render:({field:s})=>{var u;return l.jsx(Ot,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helperText:(u=n.username)==null?void 0:u.message,placeholder:e.texts.usernamePlaceholder,onChange:s.onChange,value:s.value??""})},rules:{required:e.texts.usernameRequired}},i)})}),l.jsx(Pt,{control:o,name:"password",render:({field:a})=>{var i;return l.jsx(Ot,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:(i=n.password)==null?void 0:i.message,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.passwordRequiredText}}),l.jsx(Pt,{control:o,name:"confirm_password",render:({field:a})=>{var i;return l.jsx(Ot,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:(i=n.confirm_password)==null?void 0:i.message,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.passwordRequiredText}}),e.showRefCode&&l.jsx(Pt,{control:o,name:"refCode",render:({field:a})=>{var i;return l.jsx(Ot,{width:"full",type:"text",label:e.texts.refCode,placeholder:e.texts.passwordPlaceholder,helperText:(i=n.password)==null?void 0:i.message,value:a.value??"",onChange:a.onChange})}}),e.showUserSource&&l.jsx("div",{children:l.jsx(Pt,{control:o,name:"reference",render:({field:a})=>l.jsx(uu,{label:"How did you learn about us?",isCreatable:!1,isMulti:!1,isSearchable:!1,isClearable:!1,options:[{value:"friend",label:"From a friend"},{value:"ad",label:"Advertisement"},{value:"other",label:"Other"}],onChange:i=>{a.onChange(i.value)}})})}),l.jsxs("div",{className:"flex flex-col gap-3",children:[e.showTermsOption&&l.jsx(Pt,{control:o,name:"terms_accepted",render:({field:a})=>{var i;return l.jsx(Dm,{id:"terms_accepted",helperText:(i=n.terms_accepted)==null?void 0:i.message.toString(),onCheckedChange:s=>a.onChange(s),label:l.jsxs("span",{children:[e.texts.iAcceptText," ",l.jsx("a",{onClick:e.handleRouteToTOS,className:"clickable-link",children:e.texts.termsText})]})})},rules:{required:e.texts.termsRequiredText}}),e.showNewsletterOption&&l.jsx(Pt,{control:o,name:"newsletter_accepted",render:({field:a})=>l.jsx(Dm,{id:"newsletter_accepted",label:e.texts.subscribeToNewsletter,onCheckedChange:a.onChange})})]}),l.jsx(Qe,{className:"w-full mt-4",isLoading:e.isLoading,children:e.texts.signUpText})]})}),l.jsxs("div",{className:"flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white",children:[l.jsx("span",{children:e.texts.existingUserText}),l.jsx("span",{onClick:e.handleRouteToSignIn,className:"clickable-link",children:e.texts.signInText})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?l.jsxs(kr,{className:Te(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignUp,children:[l.jsx(Zn.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGoogleLabel]}),e.viaGithub&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignUp,children:[l.jsx(Zn.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGithubLabel]}),e.viaTwitter&&l.jsxs(Qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignUp,children:[l.jsx(Zn.twitter,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaTwitterLabel]})]}):null]}),l.jsx(lm,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})},FL=e=>{const[t,n]=p.useState(!1),r=na(),{formState:{errors:o},handleSubmit:a,control:i}=r,s=u=>{u.password===u.confirmPassword?e.handleNewPassword():n(!0)};return l.jsxs(Ut,{dir:e.direction,children:[t&&l.jsx(ro,{text:e.texts.passwordMatchError,severity:"error"}),e.passwordChanged?l.jsx(Lt,{headless:!0,children:l.jsx("div",{className:"text-center",children:e.texts.passwordChanged})}):l.jsx(Gu,{...r,children:l.jsxs("form",{onSubmit:a(s),children:[!e.headless&&l.jsxs(jo,{children:[l.jsx(Io,{children:"Create Password"}),l.jsx(hi,{children:"Set a new password for your account"})]}),l.jsxs(Lt,{headless:e.headless,children:[l.jsx(Pt,{control:i,name:"password",render:({field:u})=>{var c;return l.jsx(Ot,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:(c=o.password)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.passwordRequiredText}}),l.jsx(Pt,{control:i,name:"confirmPassword",render:({field:u})=>{var c;return l.jsx(Ot,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:(c=o.confirmPassword)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]}),l.jsx(kr,{children:l.jsx(Qe,{className:"w-full",type:"submit",children:e.texts.updatePassword})})]})})]})},AL=e=>{var i,s,u,c,d,g;const t=na(),{formState:{errors:n},handleSubmit:r,register:o,control:a}=t;return l.jsx(Ut,{dir:e.direction,children:e.sent?l.jsx(Lt,{headless:!0,children:l.jsx("div",{className:"text-center",children:(g=e.texts)==null?void 0:g.emailSentText})}):l.jsxs(l.Fragment,{children:[!e.headless&&l.jsxs(jo,{children:[l.jsx(Io,{children:"Reset Password"}),l.jsx(hi,{children:"Enter your email to reset your account password"})]}),l.jsxs("form",{onSubmit:r(e.handleResetPassword),children:[l.jsxs(Lt,{headless:e.headless,children:[l.jsx(Pt,{control:a,name:"email",render:({field:v})=>{var y,C,h;return l.jsx(Ot,{width:"full",type:"text",label:(y=e.texts)==null?void 0:y.emailLabel,helperText:(C=n.email)==null?void 0:C.message,placeholder:(h=e.texts)==null?void 0:h.emailPlaceholder,...v,value:v.value??""})},rules:{required:(i=e.texts)==null?void 0:i.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:(s=e.texts)==null?void 0:s.emailInvalidText}}}),l.jsxs("div",{className:"pb-2 text-start text-sm dark:text-gray-300",children:[((u=e.texts)==null?void 0:u.dontHaveAccount)??"Don't have an account? ",l.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:((c=e.texts)==null?void 0:c.signUpText)??"Sign Up"})]})]}),l.jsx(kr,{children:l.jsx(Qe,{type:"submit",className:"w-full",children:(d=e.texts)==null?void 0:d.resetPassword})})]})]})})},jL=e=>{const[t,n]=p.useState(null);return l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[e.showError&&l.jsx(ro,{title:e.errorTitle,text:e.errorText,severity:"error"}),l.jsxs("div",{className:"mb-4 dark:text-white",children:[l.jsx("div",{className:"text-lg font-bold",children:e.texts.checkYourPhone??"Please check your phone"}),l.jsxs("div",{className:"text-muted-foreground",children:[l.jsx("span",{children:e.texts.weSentCode??"We've sent a code to "}),l.jsx("span",{children:e.phoneNumber})]})," "]}),l.jsxs("form",{onSubmit:r=>{r.preventDefault(),t&&e.submitConfirmation(t)},children:[l.jsx(sm,{width:"full",digits:6,getPins:r=>n(r)}),l.jsxs("div",{className:" py-2 text-center text-xs text-muted-foreground",children:[l.jsx("span",{children:e.texts.didntGetCode??"Didn't get the code?"})," ",l.jsx("span",{className:"clickable-link",children:e.texts.resendCode??"Click to resend"})]}),l.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[l.jsx(Qe,{variant:"secondary",children:e.texts.cancel??"Cancel"}),l.jsx(Qe,{children:e.texts.confirm??"Confirm"})]})]})]})})},IL=({texts:e,handleResend:t})=>l.jsxs(Ut,{children:[l.jsx(Lt,{headless:!0,children:l.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[l.jsx("div",{className:"flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:l.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"0.5em",width:"0.5em",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),l.jsx("polyline",{points:"22,6 12,13 2,6"})]})}),l.jsx("div",{className:"m-2 text-xl font-bold",children:(e==null?void 0:e.checkEmail)??"Check you email"}),l.jsx("div",{className:"text-sm",children:(e==null?void 0:e.pleaseVerify)??"Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."})]})}),l.jsx(kr,{className:"flex flex-col justify-center ",children:l.jsx("span",{className:"clickable-link text-sm",onClick:t,children:(e==null?void 0:e.resendEmail)??"Resend Email"})})]}),TL=e=>{const[t,n]=p.useState("");return l.jsxs(Ut,{children:[l.jsxs(jo,{children:[l.jsx(Io,{children:"Choose Payment Method"}),l.jsx(hi,{children:"And you'll be directed to the next step to complete the payment"})]}),l.jsxs(Lt,{className:"grid grid-cols-2 gap-4",children:[l.jsxs(Qe,{className:Te("flex w-full flex-col gap-2 pt-6",t==="mada"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaMada,onClick:()=>n("mada"),children:[l.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",className:"h-6"}),l.jsx("span",{children:e.madaLabel})]}),l.jsxs(Qe,{className:Te("flex w-full flex-col gap-2",t==="apple-pay"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaApplePay,onClick:()=>n("apple-pay"),children:[l.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",className:"h-11"}),l.jsx("span",{children:e.applePayLabel})]}),l.jsxs(Qe,{className:Te("flex w-full flex-col gap-2",t==="visa-master"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaCreditCard,onClick:()=>n("visa-master"),children:[l.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",className:"h-6"}),l.jsx("span",{children:e.visaMasterLabel})]}),l.jsxs(Qe,{variant:"outline",size:"heightless",className:Te("flex w-full flex-col gap-2",t==="wallet"&&"outline outline-4 outline-primary"),disabled:!e.viaWallet,onClick:()=>n("wallet"),children:[l.jsx("svg",{version:"1.1",fill:"currentColor",viewBox:"0 0 223 223",className:"h-6 w-6",children:l.jsxs("g",{children:[l.jsx("path",{d:`M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z
|
|
252
|
-
M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823
|
|
253
|
-
C182.338,118.225,176.597,123.967,169.515,123.967z`}),l.jsx("path",{d:`M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175
|
|
254
|
-
c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z`})]})}),l.jsx("span",{children:e.walletLabel})]}),l.jsxs(Qe,{variant:"outline",size:"heightless",className:Te("flex w-full flex-col gap-2",t==="stc-pay"&&"outline outline-4 outline-primary"),disabled:!e.viaSTCPay,onClick:()=>n("stc-pay"),children:[l.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",className:"h-6"}),l.jsx("span",{children:e.stcPayLabel})]}),l.jsxs(Qe,{variant:"outline",size:"heightless",className:Te("flex w-full flex-col gap-2",t==="google-pay"&&"outline outline-4 outline-primary"),disabled:!e.viaGooglePay,onClick:()=>n("google-pay"),children:[l.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",className:"h-6"}),l.jsx("span",{children:e.googlePayLabel})]}),l.jsxs(Qe,{variant:"outline",size:"heightless",className:Te("col-span-2 flex w-full flex-col gap-2",t==="paypal"&&"outline outline-4 outline-primary"),disabled:!e.viaPayPal,onClick:()=>n("paypal"),children:[l.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",className:"h-6"}),l.jsx("span",{children:e.paypalLabel})]})]}),l.jsx(kr,{children:l.jsx(Qe,{onClick:()=>e.handleContinue(t),className:"w-full",disabled:!t,children:"Continue"})})]})},kL=e=>{const[t,n]=p.useState(""),[r,o]=p.useState(""),a=na(),{formState:{errors:i},handleSubmit:s,control:u}=a,c=g=>{const v=/^4[0-9]{0,15}$/m,y=/^5$|^5[0-5][0-9]{0,16}$/m,C=/^3$|^3[47][0-9]{0,13}$/m,h=/^(440647|440795|446404|457865|968208|457997|474491|636120|417633|468540|468541|468542|468543|968201|446393|409201|458456|484783|462220|455708|410621|455036|486094|486095|486096|504300|440533|489318|489319|445564|968211|410685|406996|432328|428671|428672|428673|968206|446672|543357|434107|407197|407395|412565|431361|604906|521076|529415|535825|543085|524130|554180|549760|968209|524514|529741|537767|535989|536023|513213|520058|558563|588982|589005|531095|530906|532013|968204|422817|422818|422819|428331|483010|483011|483012|589206|968207|419593|439954|530060|531196|420132)/,w=/^507803[0-6][0-9]|507808[3-9][0-9]|507809[0-9][0-9]|507810[0-2][0-9]/;let E="visa";return g.replace(/[^\d]/g,"").match(h)?E="mada":g.replace(/[^\d]/g,"").match(w)?E="meeza":g.replace(/[^\d]/g,"").match(v)?E="visa":g.replace(/[^\d]/g,"").match(y)?E="mastercard":g.replace(/[^\d]/g,"").match(C)&&(E="amex"),E},d=g=>{let{value:v,name:y}=g.target,C=v;v=v.replace(/\D/g,""),/^3[47]\d{0,13}$/.test(v)?C=v.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{6})/,"$1 $2 "):/^3(?:0[0-5]|[68]\d)\d{0,11}$/.test(v)?C=v.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{6})/,"$1 $2 "):/^\d{0,16}$/.test(v)&&(C=v.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{4})/,"$1 $2 ").replace(/(\d{4}) (\d{4}) (\d{4})/,"$1 $2 $3 ")),console.log("card number is ",C.trimRight()),n(C.trimRight())};return p.useEffect(()=>{let g=c(t);o(g)}),l.jsx(Ut,{children:l.jsxs("form",{onSubmit:s(e.handle),children:[l.jsxs(Lt,{headless:!0,children:[l.jsxs("div",{className:"flex flex-row gap-4",children:[l.jsx(Pt,{control:u,name:"cardNumber",render:({field:g})=>{var v;return l.jsx(Ot,{width:"full",name:"cardNumber",placeholder:"1234 1234 1234 1234",type:"number",onChange:d,label:"Card Number",helperText:(v=i.password)==null?void 0:v.message,iconInside:l.jsx("img",{src:`https://sikka-images.s3.ap-southeast-1.amazonaws.com/payment-symbols/borderless/${r}.png`,alt:"",className:"h-8"})})},rules:{required:"Card Number is rquired"}}),l.jsx("div",{className:"w-1/4",children:l.jsx(Pt,{control:u,name:"cardCVC",render:({field:g})=>{var v;return l.jsx(Ot,{width:"full",name:"cardCVC",maxLength:"3",autoComplete:"cc-number",placeholder:"CVC",type:"number",label:"CVC",helperText:(v=i.password)==null?void 0:v.message})},rules:{required:"Password is rquired"}})})]}),l.jsx(Pt,{control:u,name:"cardExpiry",render:({field:g})=>{var v;return l.jsx(Ot,{width:"full",name:"cardExpiry",placeholder:"MM / YY",type:"password",label:"Expiry Date",helperText:(v=i.password)==null?void 0:v.message})},rules:{required:"Password is rquired"}}),l.jsx(Pt,{control:u,name:"cardName",render:({field:g})=>{var v;return l.jsx(Ot,{width:"full",name:"cardName",type:"text",label:"Name on card",helperText:(v=i.password)==null?void 0:v.message})},rules:{required:"Card holder name is rquired"}})]}),l.jsx(kr,{children:l.jsx(Qe,{className:"w-full",onClick:e.handlePayWithCreditCard,children:"Pay with Credit Card"})})]})})},PL=e=>{const[t,n]=p.useState(0);return l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[l.jsxs("div",{className:"p-4 text-center",children:[l.jsx("div",{className:" text-5xl font-extrabold",children:Number(t).toLocaleString("en")||"0"}),l.jsx("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),l.jsxs("div",{className:"mb-2 flex w-full flex-col gap-4 text-center",children:[l.jsxs("div",{className:"mb-2 flex w-full flex-row gap-4 text-center",children:[l.jsx(Qe,{variant:"outline",className:"h-full w-full",children:"10 SAR"}),l.jsx(Qe,{variant:"outline",className:"h-full w-full",children:"50 SAR"}),l.jsx(Qe,{variant:"outline",className:"h-full w-full",children:"100 SAR"})]}),l.jsx(Ls,{placeholder:"Custom Amount",type:"number",name:"amount"})]}),l.jsx(Qe,{className:"mt-6 w-full",children:e.texts.chargeWallet})]})})},BL=e=>l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[l.jsxs("div",{className:"text-center text-5xl font-extrabold",children:[e.walletBalance||"0",l.jsx("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),l.jsx(Qe,{className:"mt-6 w-full",onClick:e.handlePayWithWallet,children:"Pay Now"})]})}),NL=e=>{var s,u,c,d,g,v,y,C,h,w;let t=e.lang==="ar";const n=na(),{formState:{errors:r},handleSubmit:o,register:a,control:i}=n;return l.jsxs(Ut,{children:[l.jsx(jo,{children:l.jsx(Io,{children:e.texts.orderDetails})}),l.jsx(Lt,{children:l.jsx("div",{children:l.jsx("div",{className:"rounded border border-gray-300",children:l.jsx(ty,{pagination:!1,direction:t?"rtl":"ltr",columns:[{hidden:!1,value:"Product"},{hidden:!0,value:"ID"},{hidden:!1,value:"Price"}],borders:"inner",rows:e.products,bordersWidth:"1"})})})}),l.jsx(jo,{children:l.jsx(Io,{children:e.texts.billingAddress})}),l.jsxs("form",{onSubmit:o(e.handlePayNow),children:[l.jsx(Lt,{children:l.jsx("div",{children:l.jsxs(Gu,{...n,children:[l.jsxs("div",{children:[l.jsx(Pt,{control:i,name:"firstName",rules:{required:(s=e.texts)==null?void 0:s.required},render:({field:E})=>{var j,P;return l.jsx(Ot,{type:"text",label:((j=e.texts)==null?void 0:j.firstNameLabel)+" *",helperText:(P=r.firstName)==null?void 0:P.message,...E,value:E.value??""})}}),l.jsx("div",{style:{width:20}}),l.jsx(Pt,{control:i,name:"lastName",rules:{required:(u=e.texts)==null?void 0:u.required},render:({field:E})=>{var j,P;return l.jsx(Ot,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.lastNameLabel)+" *",helperText:(P=r.lastName)==null?void 0:P.message,...E,value:E.value??""})}})]}),l.jsx(Pt,{control:i,name:"email",render:({field:E})=>{var j,P;return l.jsx(Ot,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.emailLabel)+" *",helperText:(P=r.email)==null?void 0:P.message,...E,value:E.value??""})},rules:{required:(c=e.texts)==null?void 0:c.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:(d=e.texts)==null?void 0:d.emailInvalidText}}}),l.jsx("div",{className:"flex flex-col md:flex-row",children:l.jsx(Pt,{control:i,name:"streetAddress",rules:{required:(g=e.texts)==null?void 0:g.required},render:({field:E})=>{var j,P;return l.jsx(Ot,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.streetAddressLabel)+" *",helperText:(P=r.streetAddress)==null?void 0:P.message,...E,value:E.value??""})}})}),l.jsxs("div",{className:"flex flex-col md:flex-row",children:[l.jsx(Pt,{control:i,name:"province",rules:{required:(v=e.texts)==null?void 0:v.required},render:({field:E})=>{var j,P;return l.jsx(Ot,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.stateLabel)+" *",helperText:(P=r.province)==null?void 0:P.message,...E,value:E.value??""})}}),l.jsx("div",{style:{width:20}}),l.jsx(Pt,{control:i,name:"city",rules:{required:(y=e.texts)==null?void 0:y.required},render:({field:E})=>{var j,P;return l.jsx(Ot,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.cityLabel)+" *",helperText:(P=r.city)==null?void 0:P.message,...E,value:E.value??""})}})]}),l.jsxs("div",{className:"flex flex-col md:flex-row",children:[l.jsx(Pt,{control:i,name:"buildingNumber",rules:{required:(C=e.texts)==null?void 0:C.required},render:({field:E})=>{var j,P;return l.jsx(Ot,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.buildingNumberLabel)+" *",helperText:(P=r.buildingNumber)==null?void 0:P.message,...E,value:E.value??""})}}),l.jsx("div",{style:{width:20}}),l.jsx(Pt,{control:i,name:"zipCode",rules:{required:(h=e.texts)==null?void 0:h.required},render:({field:E})=>{var j,P;return l.jsx(Ot,{width:"full",type:"number",label:((j=e.texts)==null?void 0:j.zipCodeLabel)+" *",helperText:(P=r.zipCode)==null?void 0:P.message,...E,value:E.value??""})}})]}),l.jsx("div",{className:"mb-3",children:l.jsx(Pt,{control:i,name:"country",rules:{required:(w=e.texts)==null?void 0:w.required},render:({field:E})=>{var j,P;return l.jsxs(uu,{native:!0,label:((j=e.texts)==null?void 0:j.countryLabel)+" *",helperText:(P=r.country)==null?void 0:P.message,options:ny,getOptionLabel:N=>N.country_label,onChange:N=>E.onChange(N.country_label),value:E.value??"",children:[l.jsx("option",{}),e.countriesList.map((N,$)=>l.jsx("option",{children:N},$))]})}})})]})})}),l.jsx(kr,{children:l.jsx(Qe,{className:"w-full",children:e.texts.payNow})})," "]})]})},OL=e=>(e.lang,l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[" ",l.jsx("div",{className:"py-5 text-center text-3xl font-bold dark:text-white",children:e.confirmationTitle}),l.jsxs("div",{className:"py-5 dark:text-white",children:[l.jsxs("div",{className:"mb-2 text-center",children:[e.texts.successMessage," ",l.jsx("strong",{children:e.userEmail})]}),l.jsx("div",{className:"text-center",children:e.texts.yourOrderNumber}),l.jsx("div",{className:"text-center font-bold",children:e.orderNumber})]}),l.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-5 pt-0",children:[l.jsx(Qe,{className:"w-full",onClick:e.handlePrint,children:e.texts.print}),l.jsx(Qe,{className:"w-full",onClick:e.handleHistory,children:e.texts.history}),l.jsx(Qe,{className:"w-full",onClick:e.handleHome,children:e.texts.homePage}),l.jsx("div",{className:" text-center text-sm dark:text-white",children:e.texts.fasterPaymentNote}),l.jsx("a",{className:"clickable-link text-xs",onClick:e.handleRefundPolicyLink,children:e.texts.refundPolicy})]})]})})),$L=e=>l.jsxs("div",{children:[l.jsxs("div",{className:"mb-2 flex w-full justify-between",children:[l.jsx(Sr,{design:"tabs",defaultValue:e.currentCycle,options:e.billingCycles,onChangeTab:t=>e.onCycleChange(t)}),l.jsx(Sr,{design:"tabs",defaultValue:e.currentCurrency,options:e.currencies,onChangeTab:t=>e.onCurrencyChange(t)})]}),l.jsx("div",{className:"flex flex-row justify-between",children:e.plans.map((t,n)=>l.jsx(qC,{onPlanClicked:()=>e.onPlanClicked(t),...t,texts:{...t.texts,currencyText:e.currentCurrency,cycleText:e.currentCycle}},n))})]}),RL=()=>l.jsx("svg",{className:"h-5 w-5 text-green-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),q3=()=>l.jsx("svg",{className:"h-5 w-5 text-red-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:l.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),ML=e=>{var a;const[t,n]=p.useState("sar"),[r,o]=p.useState("month");return l.jsxs("div",{id:"detailed-pricing",className:"w-full overflow-x-auto",children:[l.jsxs("div",{className:"mb-2 flex w-full justify-between",children:[l.jsx(Sr,{design:"tabs",defaultValue:r,options:e.billingCycles,onChangeTab:i=>e.onCycleChange(i)}),l.jsx(Sr,{design:"tabs",defaultValue:t,options:e.currencies,onChangeTab:i=>e.onCurrencyChange(i)})]}),l.jsxs("div",{className:" overflow-hidden rounded",children:[l.jsxs("div",{className:"grid grid-cols-4 gap-x-2 border-b border-t border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white",children:[l.jsx("div",{className:"flex items-center"}),e.plans.map(i=>l.jsxs("div",{children:[l.jsx("h5",{className:"text-md 0 font-bold text-gray-500 dark:text-gray-400",children:i.texts.title}),l.jsxs("div",{className:" flex items-baseline text-gray-900 dark:text-white",children:[l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-5xl font-extrabold tracking-tight",children:i.price}),l.jsx("span",{className:"mx-1 text-sm font-semibold",children:i.texts.currencyText})]}),l.jsxs("span",{className:"ml-1 text-xl font-normal text-gray-500 dark:text-gray-400",children:["/ ",i.texts.cycleText]})]}),l.jsx("h5",{className:"text-md font-normal text-gray-500 dark:text-gray-400",children:i.texts.subtitle})]}))]}),(a=e.plans)==null?void 0:a.map(i=>i.features.map(s=>l.jsxs("div",{className:"grid grid-cols-4 gap-x-16 border-b border-gray-200 px-4 py-5 text-sm text-gray-700 dark:border-gray-700",children:[l.jsxs("div",{className:" flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400",children:[s.text,s.description&&l.jsx(Is,{side:"right",content:s.description,children:l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})})]}),l.jsx(q3,{}),l.jsx(RL,{}),l.jsx(q3,{})]})))]})]})},LL=e=>{const[t,n]=p.useState(null);let r=[{title:"basic",price:"$49",cycle:"/mo"},{title:"business",price:"$99",cycle:"/mo"},{title:"enterprise",price:"$149",cycle:"/mo"}];return l.jsx("div",{className:"z-10 w-full max-w-screen-sm",children:l.jsxs("div",{className:"max-w-2xl ",children:[l.jsxs("div",{className:"flex flex-row justify-between",children:[l.jsx(Sr,{design:"tabs",options:e.currencies,defaultValue:e.currentCurrency}),l.jsx(Sr,{design:"tabs",options:e.billingCycles,defaultValue:e.currentCycle})]}),r.map(o=>l.jsxs("label",{htmlFor:o.title,className:"",onClick:()=>n(o.title),children:[l.jsx("input",{type:"radio",name:"radio",id:o.title,className:"peer appearance-none"}),l.jsxs("div",{className:_e(t===o.title?"peer-checked:border-blue-500":"","peer flex cursor-pointer items-center justify-between rounded-xl border bg-background px-5 py-4 shadow dark:text-white peer-checked:[&_.active]:block peer-checked:[&_.default]:hidden"),children:[l.jsxs("div",{className:"peer flex items-center gap-4",children:[l.jsx(_L,{}),l.jsx(VL,{title:"Enterprise",subtitle:"For startups and new businesses"})]}),l.jsx(WL,{amount:o.price,cycle:o.cycle})]})]}))]})})},_L=()=>l.jsxs(l.Fragment,{children:[l.jsx("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"default h-8 w-8 text-neutral-500",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),l.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"active hidden h-8 w-8 text-blue-500",children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"})})]}),VL=e=>l.jsxs("div",{className:"peer flex flex-col items-start ",children:[l.jsx("h2",{className:"font-medium text-neutral-700 dark:text-gray-100 sm:text-xl",children:e.title}),l.jsxs("p",{className:"text-sm text-neutral-500 dark:text-gray-300",children:[e.subtitle," "]})]}),WL=e=>l.jsxs("h2",{className:"peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl",children:[e.amount,l.jsx("span",{className:"text-base font-medium text-neutral-400",children:e.cycle})]}),HL=({referralLink:e,referralCode:t})=>l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[l.jsxs("div",{className:"my-2 mt-0",children:[l.jsx("div",{className:"mb-1",children:"Referral Code"}),l.jsxs("div",{className:"flex flex-row items-center justify-between rounded border bg-background",children:[l.jsx("span",{className:"ml-3 font-bold",children:t}),l.jsx(Qe,{onClick:()=>navigator.clipboard.writeText(t),children:l.jsxs("span",{className:"bg-red flex items-center justify-center",children:[l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",children:l.jsx("path",{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"})})," "]})})]})]}),l.jsxs("div",{className:"my-2 mt-0",children:[l.jsx("div",{className:"mb-1",children:"Referral Link"}),l.jsxs("div",{className:"flex flex-row items-center justify-between rounded border bg-background",children:[l.jsx("span",{className:"ml-3 font-bold",children:e}),l.jsx(Qe,{onClick:()=>navigator.clipboard.writeText(e),children:l.jsxs("span",{className:"bg-red flex items-center justify-center",children:[l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",children:l.jsx("path",{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"})})," "]})})]})]})]})}),GL=({referralLink:e,referralCode:t,withdrawError:n})=>{const r=na(),{formState:{errors:o},handleSubmit:a,control:i}=r;return l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[l.jsx("div",{children:l.jsxs(Gu,{...r,children:[l.jsx(Ot,{label:"IBAN"}),l.jsx(Ot,{label:"Holder Name"}),l.jsx(Pt,{control:i,name:"bank",render:({field:s})=>l.jsx(uu,{label:"Bank",isCreatable:!1,isMulti:!1,isSearchable:!1,isClearable:!1,options:[{value:"snb",label:"Saudi National Bank"},{value:"bilad",label:"Al Bilad Bank"},{value:"rajihi",label:"Al Rajihi Bank"}],onInputChange:(u,c)=>console.log("changing",u),...s,onChange:(u,c)=>console.log("chooo",u)})})]})}),l.jsx("div",{children:l.jsx(Qe,{className:"mt-6 w-full",children:"Add Bank Account"})}),n&&l.jsx("div",{children:l.jsx(ro,{text:"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",severity:"warning"})}),l.jsxs("div",{className:"mt-3",children:[l.jsx("div",{className:"mb-1",children:"Settlement Accounts"}),l.jsxs("div",{className:"rounded",children:[l.jsx(kv,{bank:"Al Inma Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri",default:!0}),l.jsx(kv,{bank:"Al Rajihi Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri"}),l.jsx(kv,{bank:"Al Inma Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri"})]})]})]})})},kv=e=>l.jsxs("div",{className:"mb-3 flex flex-row items-center justify-between rounded border bg-background p-3",children:[l.jsxs("div",{className:"flex flex-col justify-between",children:[l.jsx("div",{className:"text-xs",children:e.bank}),l.jsx("div",{children:e.accountHolder}),l.jsx("div",{className:"text-xs",children:e.iban})]}),l.jsxs("div",{className:"flex flex-row items-center justify-center gap-2",children:[e.default&&l.jsx(Uc,{label:"Default",size:"small"}),l.jsx(Rd,{size:"small",menuItems:[[{label:"Set Default",disabled:e.default},{label:"Edit"},{label:"Delete"}]],children:l.jsx(Qe,{variant:"outline",size:"icon",children:l.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",className:"rotate-90",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:l.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})]})]}),zL=({referralLink:e,referralCode:t,withdrawError:n})=>l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[l.jsx("div",{className:"mb-1",children:"Stats"}),l.jsxs("div",{className:"justi flex flex-row gap-1",children:[l.jsx(Pv,{title:"Clicks",number:22}),l.jsx(Pv,{title:"Sign-ups",number:32}),l.jsx(Pv,{title:"Commission",number:"213.22 SAR"})]}),l.jsx(Qe,{className:"mt-6 w-full",children:"Withdraw Money"}),n&&l.jsx("div",{children:l.jsx(ro,{text:"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",severity:"warning"})}),l.jsxs("div",{className:"mt-3",children:[l.jsx("div",{className:"mb-1",children:"Sign ups"}),l.jsxs("div",{className:"rounded",children:[l.jsx(Uu,{date:"2020/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),l.jsx(Uu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),l.jsx(Uu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),l.jsx(Uu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),l.jsx(Uu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"})]})]})]})}),Pv=e=>l.jsxs("div",{className:"w-full rounded border bg-background p-2",children:[l.jsx("div",{className:"text-sm",children:e.title}),l.jsx("div",{className:"font-bold",children:e.number})]}),Uu=e=>l.jsxs("div",{className:"mb-3 rounded border-b bg-background p-2",children:[l.jsx("div",{className:"text-xs",children:e.date}),l.jsxs("div",{className:"flex flex-row justify-between",children:[l.jsx("div",{children:e.email}),l.jsx("div",{children:e.amount})]})]}),UL=({variant:e="contained",texts:t})=>l.jsx(Ut,{children:l.jsx(Lt,{headless:!0,children:l.jsxs("div",{className:"flex flex-col items-center dark:text-white",children:[l.jsx("div",{className:"text-center text-6xl font-bold ",children:"404"}),l.jsx("div",{className:"m-2 text-center text-xl font-bold ",children:(t==null?void 0:t.pageNotFound)??"Page Not Found"}),l.jsx("div",{className:"mb-4 text-center",children:(t==null?void 0:t.ifLost)??l.jsxs(l.Fragment,{children:["If you're lost please contact us"," ",l.jsx("span",{className:"clickable-link",children:"help@sikka.io"})]})}),l.jsx(Qe,{className:"w-full",children:(t==null?void 0:t.home)??"Home"})]})})}),ZL=({variant:e="contained",texts:t,onActionClick:n})=>l.jsxs(Ut,{children:[l.jsx(Lt,{headless:!0,children:l.jsxs("div",{className:"flex flex-col items-center justify-center text-center ",children:[l.jsx("div",{className:"flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.35em",width:"0.35em",children:l.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})}),l.jsx("div",{className:"m-2 text-xl font-bold",children:(t==null?void 0:t.youreCaughtUp)??"You're all caught up"})]})}),l.jsx(kr,{children:l.jsx(Qe,{className:"w-full",onClick:()=>n(),children:(t==null?void 0:t.actionText)??"Go Home"})})]}),XL=e=>l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,children:[l.jsx("div",{children:l.jsx("p",{className:"mb-4 max-w-sm",children:"The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless."})}),l.jsxs("div",{className:"flex flex-row gap-4",children:[l.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:[l.jsx("rect",{width:"48",height:"48",rx:"24",fill:"#45BE8B"}),l.jsx("path",{d:"M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",fill:"#FFFFFF"}),l.jsx("path",{d:"M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",fill:"#FFFFFF"})]}),l.jsx("span",{className:"border border-l "})," ",l.jsxs("div",{children:[l.jsx("strong",{children:"Brent Lassi"}),l.jsx("div",{children:" Chief Information Security Officer"})]})]})]})}),YL=({variant:e="contained",texts:t,handleNewsletterSub:n})=>l.jsxs(Ut,{children:[l.jsxs(jo,{children:[l.jsx(Io,{children:t==null?void 0:t.title}),l.jsx(hi,{children:t==null?void 0:t.subtitle})]}),l.jsx(Lt,{children:l.jsxs("form",{className:"flex flex-row gap-2",onSubmit:r=>{r.preventDefault(),n(r.target[0].value)},children:[l.jsx(Ls,{type:"email",name:"email",placeholder:"example@sikka.io"}),l.jsx(Qe,{children:(t==null?void 0:t.submit)??"Submit"})]})})]}),JL=({variant:e="contained",onActionClick:t,...n})=>l.jsx(Ut,{children:l.jsxs(Lt,{headless:!0,className:"flex flex-row items-center justify-between",children:[l.jsxs("div",{className:"flex flex-col items-start justify-center ",children:[l.jsx("span",{className:"text-lg font-bold",children:n.title}),l.jsx("span",{className:"text-sm",children:n.subtitle})]}),l.jsx(Qe,{onClick:()=>t(),children:n.actionText})]})}),KL=({texts:e})=>l.jsx(Ut,{children:l.jsx(Lt,{headless:!0,children:l.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[l.jsxs("div",{className:"flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:[l.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 448 512",height:"0.35em",width:"0.35em",children:l.jsx("path",{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"})})," "]}),l.jsx("div",{className:"m-2 text-xl font-bold",children:(e==null?void 0:e.title)??"You don't have permission"}),l.jsx("div",{children:(e==null?void 0:e.subtitle)??"If you think this is a problem please contact your administrator or our customer support"})]})})});function QL(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function qL({onBlur:e,onFocus:t}={}){const n=p.useRef(),[r,o]=p.useState(!1),a=p.useRef(!1),i=c=>{o(c),a.current=c},s=c=>{a.current||(i(!0),t==null||t(c))},u=c=>{a.current&&!QL(c)&&(i(!1),e==null||e(c))};return p.useEffect(()=>{if(n.current)return n.current.addEventListener("focusin",s),n.current.addEventListener("focusout",u),()=>{var c,d;(c=n.current)==null||c.removeEventListener("focusin",s),(d=n.current)==null||d.removeEventListener("focusout",u)}},[s,u]),{ref:n,focused:r}}function e_(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function t_(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function n_(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=p.useState(n?t:t_(e,t)),a=p.useRef();return p.useEffect(()=>{if("matchMedia"in window)return a.current=window.matchMedia(e),o(a.current.matches),e_(a.current,i=>o(i.matches))},[e]),r}function r_(e=""){const[t,n]=p.useState(e);return p.useEffect(()=>{const o=()=>{const a=window.location.hash.substring(1);n(a||e)};return window.addEventListener("hashchange",o),o(),()=>{window.removeEventListener("hashchange",o)}},[e]),{activeTab:t,handleTabChange:o=>{n(o),window.location.hash=o}}}function Bv(e,t,n){p.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function Nv(){return typeof window<"u"?{x:window.pageXOffset,y:window.pageYOffset}:{x:0,y:0}}function o_({x:e,y:t}){if(typeof window<"u"){const n={behavior:"smooth"};typeof e=="number"&&(n.left=e),typeof t=="number"&&(n.top=t),window.scrollTo(n)}}function a_(){const[e,t]=p.useState({x:0,y:0});return Bv("scroll",()=>t(Nv())),Bv("resize",()=>t(Nv())),p.useEffect(()=>{t(Nv())},[]),[e,o_]}Ce.ActionCard=ON,Ce.Announcement=JL,Ce.AppLanding=CL,Ce.AppLayout=VM,Ce.AppSidebar=QM,Ce.ArrowCarousel=jI,Ce.BackToTop=EN,Ce.Box=uM,Ce.Button=Qe,Ce.Card=Ut,Ce.CardContent=Lt,Ce.CardDescription=hi,Ce.CardFooter=kr,Ce.CardHeader=jo,Ce.CardTitle=Io,Ce.Carousel=LN,Ce.ChargeWalletForm=PL,Ce.CheckEmail=IL,Ce.Checkbox=Dm,Ce.CheckoutForm=NL,Ce.CodeConfirmation=jL,Ce.Command=Af,Ce.CommandDialog=DR,Ce.CommandEmpty=Gm,Ce.CommandGroup=zm,Ce.CommandInput=Hm,Ce.CommandItem=Um,Ce.CommandList=GE,Ce.CommandSeparator=zE,Ce.CommandShortcut=UE,Ce.ComparingPlans=ML,Ce.ConfirmationPage=OL,Ce.CreditCardForm=kL,Ce.DataTable=sM,Ce.Dialog=qw,Ce.DialogContent=Sm,Ce.DialogDescription=oE,Ce.DialogFooter=aE,Ce.DialogHeader=nE,Ce.DialogTitle=rE,Ce.DialogTrigger=zO,Ce.DragDropImages=rI,Ce.DraggableCard=oI,Ce.DropdownMenu=pi,Ce.EmptyState=ZL,Ce.FeedbackByEmoji=EI,Ce.FeedbackRating=uI,Ce.FloatingComment=TI,Ce.FloatingCommentExec=wN,Ce.FloatingCommentSlate=pN,Ce.Footer=tL,Ce.HawaAccordion=Dj,Ce.HawaAdCard=AN,Ce.HawaAlert=ro,Ce.HawaAppLayout=UM,Ce.HawaAppLayoutSimplified=ZM,Ce.HawaBanner=nL,Ce.HawaBottomAppBar=cM,Ce.HawaButton=BN,Ce.HawaCheckbox=P4,Ce.HawaChip=Uc,Ce.HawaCodeBlock=o7,Ce.HawaColorPicker=z0,Ce.HawaContainer=JM,Ce.HawaCopyrights=Tj,Ce.HawaDatepicker=a7,Ce.HawaGrid=KM,Ce.HawaIconCount=N4,Ce.HawaInlineCode=SN,Ce.HawaItemCard=FN,Ce.HawaLandingCard=jN,Ce.HawaLoading=ws,Ce.HawaMenu=Rd,Ce.HawaModal=Ij,Ce.HawaPanelTabs=B4,Ce.HawaPhoneInput=$d,Ce.HawaPinInput=sm,Ce.HawaPricingCard=qC,Ce.HawaRadio=Sr,Ce.HawaRange=U0,Ce.HawaSearchBar=Sj,Ce.HawaSelect=uu,Ce.HawaSettingsRow=jF,Ce.HawaSiteLayout=dM,Ce.HawaStats=Pj,Ce.HawaStepper=kj,Ce.HawaStoreButtons=NN,Ce.HawaTable=ty,Ce.HawaTabs=jj,Ce.HawaTextField=Ot,Ce.HawaTypography=IF,Ce.HorizontalPricing=LL,Ce.Icons=Zn,Ce.Input=Ls,Ce.InterfaceSettings=lm,Ce.InvoiceAccordion=lI,Ce.Label=Ea,Ce.LeadGenerator=YL,Ce.NewPasswordForm=FL,Ce.NoPermission=KL,Ce.NotFound=UL,Ce.PayWithWallet=BL,Ce.Popover=hh,Ce.PopoverContent=ph,Ce.PricingPlans=$L,Ce.ReferralAccount=HL,Ce.ReferralSettlement=GL,Ce.ReferralStats=zL,Ce.ResetPasswordForm=AL,Ce.SearchableSelect=FR,Ce.SelectPayment=TL,Ce.Separator=yw,Ce.SidebarGroup=S3,Ce.SidebarItem=D3,Ce.SignInBlock=SL,Ce.SignInForm=EL,Ce.SignInPhone=wL,Ce.SignUpForm=DL,Ce.Skeleton=Eo,Ce.SortButton=lM,Ce.StickyFeatures=$N,Ce.SubsectionList=aI,Ce.Switch=Ep,Ce.Table=Zm,Ce.TableBody=Jm,Ce.TableCaption=XE,Ce.TableCell=jf,Ce.TableFooter=ZE,Ce.TableHead=Ym,Ce.TableHeader=Xm,Ce.TableRow=Lu,Ce.TableTest=e$,Ce.Tabs=gw,Ce.TabsContent=mw,Ce.TabsList=pw,Ce.TabsTrigger=hw,Ce.Test=r4,Ce.Testimonial=XL,Ce.Textarea=zd,Ce.Timeline=DN,Ce.Toast=mm,Ce.ToastAction=Mw,Ce.ToastClose=vm,Ce.ToastDescription=xm,Ce.ToastProvider=Rw,Ce.ToastTitle=bm,Ce.ToastViewport=hm,Ce.Toaster=SO,Ce.Tooltip=Is,Ce.UsageCard=sI,Ce.UserProfileForm=xL,Ce.UserReferralSource=RN,Ce.UserSettingsForm=yL,Ce.buttonVariants=$b,Ce.reducer=_w,Ce.toast=Vw,Ce.useClipboard=ly,Ce.useFocusWithin=qL,Ce.useMediaQuery=n_,Ce.useTabs=r_,Ce.useToast=Ww,Ce.useWindowEvent=Bv,Ce.useWindowScroll=a_,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})});
|