@gup-fe/js-sdk 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,23 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`._Viewport_ai81v_1{position:fixed;width:100%;max-width:300px;margin:0 auto;top:1rem;right:0;left:0;bottom:auto;z-index:999}._Toast_ai81v_14{--gap: .75rem;--peek: .75rem;--scale: max(0, 1 - (var(--toast-index) * .1)) ;--shrink: calc(1 - var(--scale));--height: var(--toast-frontmost-height, var(--toast-height));--offset-y: calc( var(--toast-offset-y) + (var(--toast-index) * var(--gap)) + var(--toast-swipe-movement-y) );position:absolute;box-sizing:border-box;background:var(--color-gray-50);color:var(--color-gray-900);border:1px solid var(--color-gray-200);padding:1rem;width:100%;box-shadow:0 2px 10px #0000001a;background-clip:padding-box;border-radius:.5rem;transform-origin:top center;top:0;left:0;right:0;margin:0 auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s;cursor:default;z-index:calc(1000 - var(--toast-index));height:var(--height);transform:translate(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) + (var(--toast-index) * var(--peek)) + (var(--shrink) * var(--height)))) scale(var(--scale))}._Toast_ai81v_14[data-expanded]{transform:translate(var(--toast-swipe-movement-x)) translateY(var(--offset-y));height:var(--toast-height)}._Toast_ai81v_14[data-starting-style],._Toast_ai81v_14[data-ending-style]{transform:translateY(-150%)}._Toast_ai81v_14[data-limited],._Toast_ai81v_14[data-ending-style]{opacity:0}._Toast_ai81v_14[data-ending-style][data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-movement-y) - 150%))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=left]{transform:translate(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--offset-y))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=right]{transform:translate(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-movement-y) + 150%))}._Toast_ai81v_14:after{content:"";position:absolute;width:100%;bottom:100%;left:0;height:calc(var(--gap) + 1px)}._Content_ai81v_99{overflow:hidden;transition:opacity .25s}._Content_ai81v_99[data-behind]{opacity:0}._Content_ai81v_99[data-expanded]{opacity:1}._Title_ai81v_112{font-weight:500;font-size:.975rem;line-height:1.25rem;margin:0}._Description_ai81v_119{font-size:.925rem;line-height:1.25rem;margin:0}._Close_ai81v_125{position:absolute;top:.5rem;right:.5rem;padding:0;border:none;background:transparent;width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center;border-radius:.25rem}._Close_ai81v_125:hover{background-color:var(--color-gray-100)}._Icon_ai81v_144{width:1rem;height:1rem}._trigger_1e3h3_1{display:flex;height:100%;width:4rem;align-items:center;justify-content:center;gap:.25rem;border-right-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}._popup_1e3h3_5{width:20rem;overflow-y:auto;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);max-height:var(--available-height);transform-origin:var(--transform-origin);transition:transform .2s ease,opacity .2s ease}._popup_1e3h3_5[data-starting-style],._popup_1e3h3_5[data-ending-style]{opacity:0;transform:scale(.95)}._popup_1e3h3_5[data-side=none][data-starting-style]{transform:scale(1);opacity:1}._item_1e3h3_24{display:grid;min-width:var(--anchor-width);cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;grid-template-columns:.75rem 1fr;align-items:center;gap:.5rem;border-bottom-width:1px;padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._item_1e3h3_24:last-child{border-bottom-width:0px}._item_1e3h3_24:first-of-type{border-top-left-radius:1rem;border-top-right-radius:1rem}._item_1e3h3_24:last-of-type{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}._item_1e3h3_24[data-highlighted]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(120 155 245 / var(--tw-text-opacity, 1))}._indicator_1e3h3_40{grid-column-start:1}._itemText_1e3h3_44{grid-column-start:2;display:flex;justify-content:space-between}._itemCode_1e3h3_48{font-weight:500}._itemLabel_1e3h3_52{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._uidGet_os9yc_1{width:80vw;max-width:400px;background-size:cover;background-position:center}._mailCodeGet_os9yc_5{width:100%;background-size:cover;background-position:center}.game-5174 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626145347721513.png);aspect-ratio:553 / 428}.game-5174 ._mailCodeGet_os9yc_5{aspect-ratio:680/1096}.game-5174 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626151631191610.png)}@media(min-width:1024px){.game-5174 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5174 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626144535531913.png)}}.game-5273 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626142807783110.png);aspect-ratio:553 / 428}.game-5273 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1096;background-image:url(https://h5.sdk.mobileztgame.com/dist/role-tip-mobile.png)}@media(min-width:1024px){.game-5273 ._mailCodeGet_os9yc_5{aspect-ratio:1220/654}}@media(min-width:1024px){.game-5273 ._mailCodeGet_os9yc_5{background-image:url(https://h5.sdk.mobileztgame.com/dist/role-tip-pc.png)}}.game-5242 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624152217734019.png);aspect-ratio:596 / 266}.game-5242 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1094;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624132201121910.png)}@media(min-width:1024px){.game-5242 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5242 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624143628881023.png)}}.game-5234 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811141956691626.png);aspect-ratio:740 / 290}.game-5234 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1094;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811142113377920.png)}@media(min-width:1024px){.game-5234 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5234 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811142146601319.png)}}.game-5199 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319163303381734.png);aspect-ratio:541 / 431;border-radius:10px}.game-5199 ._mailCodeGet_os9yc_5{aspect-ratio:353 / 561;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319160000001714.png)}@media(min-width:1024px){.game-5199 ._mailCodeGet_os9yc_5{aspect-ratio:677/323}}@media(min-width:1024px){.game-5199 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319153435571035.png)}}.game-5199 input{color:#dfd9c6}.game-5199 input::-moz-placeholder{color:#70625e}.game-5199 input::placeholder{color:#70625e}.game-5199 button{color:#dfd9c6}.game-5199 ._uidGetPopup_os9yc_79{background-color:#5d5655;padding:10px}.game-5199 ._uidGetArrow_os9yc_83{color:#5d5655}.game-5199 ._inputControl_os9yc_86{height:40px}.game-5199 ._form_os9yc_89>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._quickLogin_1ibz1_1{width:100%}._quickAccounts_1ibz1_5{position:relative}._selectedAccount_1ibz1_9{display:flex;align-items:center;justify-content:space-between;border:1px solid #ddd;border-radius:9999px;height:44px;padding:0 20px;background:#fff;cursor:pointer}._accountInfo_1ibz1_21{display:flex;flex-direction:column}._accountName_1ibz1_26{font-size:15px;color:#333}._arrow_1ibz1_31{size:16px;color:#999;transition:transform .2s}._arrowRotate_1ibz1_37{transform:rotate(180deg)}._accountList_1ibz1_41{position:absolute;top:50px;left:0;right:0;z-index:10}._listScroll_1ibz1_49{max-height:200px;border:1px solid #ddd;border-radius:12px;overflow-y:auto;background:#fff;box-shadow:0 4px 12px #0000001a}._accountItem_1ibz1_58{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:44px;gap:12px;border-bottom:1px solid #f5f5f5;cursor:pointer}._accountItem_1ibz1_58:last-child{border-bottom:none}._accountItem_1ibz1_58:hover{background-color:#f9f9f9}._accountItem_1ibz1_58._active_1ibz1_77{background-color:#f0f4ff}._accountItem_1ibz1_58._active_1ibz1_77 ._itemName_1ibz1_81{color:#497efe;font-weight:500}._itemInfo_1ibz1_86{display:flex;flex-direction:column;flex:1}._itemName_1ibz1_81{font-size:14px;color:#333}._deleteBtn_1ibz1_97{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s}._deleteBtn_1ibz1_97:hover{background-color:#fee2e2}.game-5199 ._modal_1pbx2_2{background:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319165656615516.png) no-repeat center center;background-size:100% 100%;padding:60px 35px 30px}.game-5199 ._close_1pbx2_8{top:10px;right:0;background:url(https://ipay.ztgame.com/png/button_close.hzBHa9.png) no-repeat center center;background-size:100% 100%;width:57px;height:60px}.game-5199 ._close_1pbx2_8 svg{opacity:0}.game-5199 ._close_1pbx2_8:hover{background-color:transparent}._autoLoginHint_h58ls_1{position:fixed;top:16px;left:50%;transform:translate(-50%);width:80%;max-width:400px;height:48px;background-color:#000c;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;z-index:9999;font-size:14px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:24px;box-shadow:0 8px 20px #0000004d}._left_h58ls_22{display:flex;align-items:center;gap:8px}._loading_h58ls_28{width:18px;height:18px;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:_spin_h58ls_1 .8s cubic-bezier(.5,.1,.4,.9) infinite}._switchBtn_h58ls_37{color:#a5a7ff;cursor:pointer;padding:6px 12px;background:#787bf426;border:none;font-size:13px;font-weight:600;border-radius:12px;transition:all .2s ease}._switchBtn_h58ls_37:hover{background:#787bf44d;color:#fff}@keyframes _spin_h58ls_1{to{transform:rotate(360deg)}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input::-webkit-input-placeholder{color:#a9a9a9}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:1rem}.z-\\[1\\]{z-index:1}.z-\\[990\\]{z-index:990}.z-\\[991\\]{z-index:991}.z-\\[992\\]{z-index:992}.z-\\[999\\]{z-index:999}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.-mt-1\\.5{margin-top:-.375rem}.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-0\\.5{margin-right:.125rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.aspect-\\[240\\/85\\]{aspect-ratio:240/85}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-4\\/6{height:66.666667%}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\\[70vh\\]{height:70vh}.h-full{height:100%}.max-h-\\[var\\(--available-height\\)\\]{max-height:var(--available-height)}.w-0{width:0px}.w-12{width:3rem}.w-16{width:4rem}.w-32{width:8rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[300px\\]{width:300px}.w-\\[320px\\]{width:320px}.w-\\[400px\\]{width:400px}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[var\\(--anchor-width\\)\\]{min-width:var(--anchor-width)}.max-w-64{max-width:16rem}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[calc\\(100vw-3rem\\)\\]{max-width:calc(100vw - 3rem)}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.origin-\\[var\\(--transform-origin\\)\\]{transform-origin:var(--transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-\\[0\\.75rem_1fr\\]{grid-template-columns:.75rem 1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-\\[var\\(--jssdk-input-border-color\\)\\]{border-color:var(--jssdk-input-border-color)}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.\\!bg-\\[var\\(--jssdk-backdrop-bg-color\\,rgba\\(0\\,0\\,0\\,0\\.7\\)\\)\\]{background-color:var(--jssdk-backdrop-bg-color,rgba(0,0,0,.7))!important}.bg-\\[canvas\\]{background-color:canvas}.bg-\\[var\\(--jssdk-icon-color\\)\\]{background-color:var(--jssdk-icon-color)}.bg-\\[var\\(--jssdk-input-bg-color\\)\\]{background-color:var(--jssdk-input-bg-color)}.bg-black\\/20{background-color:#0003}.bg-black\\/70{background-color:#000000b3}.bg-black\\/80{background-color:#000c}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-inherit{background-color:inherit}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#497efe\\]{--tw-gradient-from: #497efe var(--tw-gradient-from-position);--tw-gradient-to: rgb(73 126 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#947afa\\]{--tw-gradient-to: #947afa var(--tw-gradient-to-position)}.fill-\\[canvas\\]{fill:canvas}.fill-current{fill:currentColor}.fill-gray-200{fill:#e5e7eb}.fill-gray-400{fill:#9ca3af}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-5{padding-bottom:1.25rem}.pl-1{padding-left:.25rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-\\[11px\\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-\\[\\#f59e9e\\]{--tw-text-opacity: 1;color:rgb(245 158 158 / var(--tw-text-opacity, 1))}.text-\\[var\\(--jssdk-primary-color\\)\\]{color:var(--jssdk-primary-color)}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\\[transform\\,scale\\,opacity\\]{transition-property:transform,scale,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.\\[transform\\:translateY\\(var\\(--drawer-swipe-movement-y\\)\\)\\]{transform:translateY(var(--drawer-swipe-movement-y))}.placeholder\\:text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:top-\\[-100\\%\\]:before{content:var(--tw-content);top:-100%}.before\\:h-full:before{content:var(--tw-content);height:100%}.before\\:w-full:before{content:var(--tw-content);width:100%}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.last\\:border-b-0:last-child{border-bottom-width:0px}.focus-within\\:border-\\[\\#787bf4\\]:focus-within{--tw-border-opacity: 1;border-color:rgb(120 123 244 / var(--tw-border-opacity, 1))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[var\\(--jssdk-primary-color\\)\\]:hover{color:var(--jssdk-primary-color)}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:brightness-90:active{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.enabled\\:text-\\[var\\(--jssdk-primary-color\\)\\]:enabled{color:var(--jssdk-primary-color)}.enabled\\:hover\\:bg-\\[var\\(--jssdk-primary-color\\)\\]:hover:enabled{background-color:var(--jssdk-primary-color)}.enabled\\:hover\\:text-\\[var\\(--jssdk-primary-foregroud-color\\)\\]:hover:enabled{color:var(--jssdk-primary-foregroud-color)}.enabled\\:hover\\:text-white:hover:enabled{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:grayscale:disabled{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.data-\\[direction\\=down\\]\\:bottom-0[data-direction=down]{bottom:0}.data-\\[side\\=bottom\\]\\:top-\\[-8px\\][data-side=bottom]{top:-8px}.data-\\[side\\=left\\]\\:right-\\[-13px\\][data-side=left]{right:-13px}.data-\\[side\\=right\\]\\:left-\\[-13px\\][data-side=right]{left:-13px}.data-\\[side\\=top\\]\\:bottom-\\[-8px\\][data-side=top]{bottom:-8px}.data-\\[ending-style\\]\\:translate-y-full[data-ending-style],.data-\\[starting-style\\]\\:translate-y-full[data-starting-style]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:rotate-90[data-side=left]{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:-rotate-90[data-side=right]{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:rotate-180[data-side=top]{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[ending-style\\]\\:scale-90[data-ending-style]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:scale-100[data-starting-style][data-side=none]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[starting-style\\]\\:scale-90[data-starting-style]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[checked\\]\\:border-\\[var\\(--jssdk-primary-color\\)\\][data-checked]{border-color:var(--jssdk-primary-color)}.data-\\[unchecked\\]\\:border-\\[var\\(--jssdk-input-border-color\\)\\][data-unchecked]{border-color:var(--jssdk-input-border-color)}.data-\\[unchecked\\]\\:border-gray-300[data-unchecked]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.data-\\[highlighted\\]\\:bg-gray-50[data-highlighted]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.data-\\[highlighted\\]\\:text-\\[\\#789bf5\\][data-highlighted]{--tw-text-opacity: 1;color:rgb(120 155 245 / var(--tw-text-opacity, 1))}.data-\\[ending-style\\]\\:opacity-0[data-ending-style]{opacity:0}.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:opacity-100[data-starting-style][data-side=none]{opacity:1}.data-\\[starting-style\\]\\:opacity-0[data-starting-style]{opacity:0}.data-\\[ending-style\\]\\:transition-none[data-ending-style],.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:transition-none[data-starting-style][data-side=none]{transition-property:none}.data-\\[direction\\=down\\]\\:before\\:bottom-\\[-100\\%\\][data-direction=down]:before{content:var(--tw-content);bottom:-100%}.group[data-focused] .group-data-\\[focused\\]\\:border-\\[var\\(--jssdk-primary-color\\)\\]{border-color:var(--jssdk-primary-color)}.group[data-focused] .group-data-\\[focused\\]\\:shadow-\\[0_0_6px_color-mix\\(in_srgb\\,var\\(--jssdk-primary-color\\)\\,transparent_80\\%\\)\\]{--tw-shadow: 0 0 6px color-mix(in srgb,var(--jssdk-primary-color),transparent 80%);--tw-shadow-colored: 0 0 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\\:fill-none:is(.dark *){fill:none}.dark\\:opacity-70:is(.dark *){opacity:.7}.dark\\:shadow-none:is(.dark *){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\\:-outline-offset-1:is(.dark *){outline-offset:-1px}.dark\\:outline-gray-300:is(.dark *){outline-color:#d1d5db}@media(min-width:768px){.md\\:size-5{width:1.25rem;height:1.25rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:1024px){.lg\\:size-6{width:1.5rem;height:1.5rem}.lg\\:w-4\\/5{width:80%}.lg\\:w-\\[60vw\\]{width:60vw}.lg\\:max-w-5xl{max-width:64rem}.lg\\:text-2xl{font-size:1.5rem;line-height:2rem}}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(Un,ga){typeof exports=="object"&&typeof module<"u"?ga(exports):typeof define=="function"&&define.amd?define(["exports"],ga):(Un=typeof globalThis<"u"?globalThis:Un||self,ga(Un.SDK={}))})(this,(function(Un){"use strict";function ga(e,n){for(var o=0;o<n.length;o++){const s=n[o];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(s,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Of(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _f={exports:{}},ya={};var qm;function VE(){if(qm)return ya;qm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(s,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var f in l)f!=="key"&&(c[f]=l[f])}else c=l;return l=c.ref,{$$typeof:e,type:s,key:u,ref:l!==void 0?l:null,props:c}}return ya.Fragment=n,ya.jsx=o,ya.jsxs=o,ya}var Xm;function HE(){return Xm||(Xm=1,_f.exports=VE()),_f.exports}var D=HE(),Af={exports:{}},va={},Mf={exports:{}},Df={};var Qm;function FE(){return Qm||(Qm=1,(function(e){function n(_,O){var U=_.length;_.push(O);e:for(;0<U;){var B=U-1>>>1,Q=_[B];if(0<l(Q,O))_[B]=O,_[U]=Q,U=B;else break e}}function o(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var O=_[0],U=_.pop();if(U!==O){_[0]=U;e:for(var B=0,Q=_.length,A=Q>>>1;B<A;){var V=2*(B+1)-1,Y=_[V],W=V+1,ne=_[W];if(0>l(Y,U))W<Q&&0>l(ne,Y)?(_[B]=ne,_[W]=U,B=W):(_[B]=Y,_[V]=U,B=V);else if(W<Q&&0>l(ne,U))_[B]=ne,_[W]=U,B=W;else break e}}return O}function l(_,O){var U=_.sortIndex-O.sortIndex;return U!==0?U:_.id-O.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],h=[],g=1,y=null,b=3,S=!1,x=!1,T=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function k(_){for(var O=o(h);O!==null;){if(O.callback===null)s(h);else if(O.startTime<=_)s(h),O.sortIndex=O.expirationTime,n(p,O);else break;O=o(h)}}function R(_){if(T=!1,k(_),!x)if(o(p)!==null)x=!0,N||(N=!0,te());else{var O=o(h);O!==null&&I(R,O.startTime-_)}}var N=!1,z=-1,P=5,K=-1;function G(){return C?!0:!(e.unstable_now()-K<P)}function q(){if(C=!1,N){var _=e.unstable_now();K=_;var O=!0;try{e:{x=!1,T&&(T=!1,L(z),z=-1),S=!0;var U=b;try{t:{for(k(_),y=o(p);y!==null&&!(y.expirationTime>_&&G());){var B=y.callback;if(typeof B=="function"){y.callback=null,b=y.priorityLevel;var Q=B(y.expirationTime<=_);if(_=e.unstable_now(),typeof Q=="function"){y.callback=Q,k(_),O=!0;break t}y===o(p)&&s(p),k(_)}else s(p);y=o(p)}if(y!==null)O=!0;else{var A=o(h);A!==null&&I(R,A.startTime-_),O=!1}}break e}finally{y=null,b=U,S=!1}O=void 0}}finally{O?te():N=!1}}}var te;if(typeof j=="function")te=function(){j(q)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,F=ee.port2;ee.port1.onmessage=q,te=function(){F.postMessage(null)}}else te=function(){E(q,0)};function I(_,O){z=E(function(){_(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(_){switch(b){case 1:case 2:case 3:var O=3;break;default:O=b}var U=b;b=O;try{return _()}finally{b=U}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(_,O){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var U=b;b=_;try{return O()}finally{b=U}},e.unstable_scheduleCallback=function(_,O,U){var B=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?B+U:B):U=B,_){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=U+Q,_={id:g++,callback:O,priorityLevel:_,startTime:U,expirationTime:Q,sortIndex:-1},U>B?(_.sortIndex=U,n(h,_),o(p)===null&&_===o(h)&&(T?(L(z),z=-1):T=!0,I(R,U-B))):(_.sortIndex=Q,n(p,_),x||S||(x=!0,N||(N=!0,te()))),_},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(_){var O=b;return function(){var U=b;b=O;try{return _.apply(this,arguments)}finally{b=U}}}})(Df)),Df}var Km;function BE(){return Km||(Km=1,Mf.exports=FE()),Mf.exports}var zf={exports:{}},lt={};var Wm;function ZE(){if(Wm)return lt;Wm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,C={};function E(A,V,Y){this.props=A,this.context=V,this.refs=C,this.updater=Y||x}E.prototype.isReactComponent={},E.prototype.setState=function(A,V){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,V,"setState")},E.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function L(){}L.prototype=E.prototype;function j(A,V,Y){this.props=A,this.context=V,this.refs=C,this.updater=Y||x}var k=j.prototype=new L;k.constructor=j,T(k,E.prototype),k.isPureReactComponent=!0;var R=Array.isArray;function N(){}var z={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function K(A,V,Y){var W=Y.ref;return{$$typeof:e,type:A,key:V,ref:W!==void 0?W:null,props:Y}}function G(A,V){return K(A.type,V,A.props)}function q(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function te(A){var V={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Y){return V[Y]})}var ee=/\/+/g;function F(A,V){return typeof A=="object"&&A!==null&&A.key!=null?te(""+A.key):V.toString(36)}function I(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(N,N):(A.status="pending",A.then(function(V){A.status==="pending"&&(A.status="fulfilled",A.value=V)},function(V){A.status==="pending"&&(A.status="rejected",A.reason=V)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,V,Y,W,ne){var ie=typeof A;(ie==="undefined"||ie==="boolean")&&(A=null);var ce=!1;if(A===null)ce=!0;else switch(ie){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(A.$$typeof){case e:case n:ce=!0;break;case g:return ce=A._init,_(ce(A._payload),V,Y,W,ne)}}if(ce)return ne=ne(A),ce=W===""?"."+F(A,0):W,R(ne)?(Y="",ce!=null&&(Y=ce.replace(ee,"$&/")+"/"),_(ne,V,Y,"",function(Ee){return Ee})):ne!=null&&(q(ne)&&(ne=G(ne,Y+(ne.key==null||A&&A.key===ne.key?"":(""+ne.key).replace(ee,"$&/")+"/")+ce)),V.push(ne)),1;ce=0;var de=W===""?".":W+":";if(R(A))for(var ye=0;ye<A.length;ye++)W=A[ye],ie=de+F(W,ye),ce+=_(W,V,Y,ie,ne);else if(ye=S(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(W=A.next()).done;)W=W.value,ie=de+F(W,ye++),ce+=_(W,V,Y,ie,ne);else if(ie==="object"){if(typeof A.then=="function")return _(I(A),V,Y,W,ne);throw V=String(A),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ce}function O(A,V,Y){if(A==null)return A;var W=[],ne=0;return _(A,W,"","",function(ie){return V.call(Y,ie,ne++)}),W}function U(A){if(A._status===-1){var V=A._result;V=V(),V.then(function(Y){(A._status===0||A._status===-1)&&(A._status=1,A._result=Y)},function(Y){(A._status===0||A._status===-1)&&(A._status=2,A._result=Y)}),A._status===-1&&(A._status=0,A._result=V)}if(A._status===1)return A._result.default;throw A._result}var B=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Q={map:O,forEach:function(A,V,Y){O(A,function(){V.apply(this,arguments)},Y)},count:function(A){var V=0;return O(A,function(){V++}),V},toArray:function(A){return O(A,function(V){return V})||[]},only:function(A){if(!q(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return lt.Activity=y,lt.Children=Q,lt.Component=E,lt.Fragment=o,lt.Profiler=l,lt.PureComponent=j,lt.StrictMode=s,lt.Suspense=p,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,lt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return z.H.useMemoCache(A)}},lt.cache=function(A){return function(){return A.apply(null,arguments)}},lt.cacheSignal=function(){return null},lt.cloneElement=function(A,V,Y){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=T({},A.props),ne=A.key;if(V!=null)for(ie in V.key!==void 0&&(ne=""+V.key),V)!P.call(V,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&V.ref===void 0||(W[ie]=V[ie]);var ie=arguments.length-2;if(ie===1)W.children=Y;else if(1<ie){for(var ce=Array(ie),de=0;de<ie;de++)ce[de]=arguments[de+2];W.children=ce}return K(A.type,ne,W)},lt.createContext=function(A){return A={$$typeof:u,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},lt.createElement=function(A,V,Y){var W,ne={},ie=null;if(V!=null)for(W in V.key!==void 0&&(ie=""+V.key),V)P.call(V,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ne[W]=V[W]);var ce=arguments.length-2;if(ce===1)ne.children=Y;else if(1<ce){for(var de=Array(ce),ye=0;ye<ce;ye++)de[ye]=arguments[ye+2];ne.children=de}if(A&&A.defaultProps)for(W in ce=A.defaultProps,ce)ne[W]===void 0&&(ne[W]=ce[W]);return K(A,ie,ne)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(A){return{$$typeof:f,render:A}},lt.isValidElement=q,lt.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:U}},lt.memo=function(A,V){return{$$typeof:h,type:A,compare:V===void 0?null:V}},lt.startTransition=function(A){var V=z.T,Y={};z.T=Y;try{var W=A(),ne=z.S;ne!==null&&ne(Y,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(N,B)}catch(ie){B(ie)}finally{V!==null&&Y.types!==null&&(V.types=Y.types),z.T=V}},lt.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},lt.use=function(A){return z.H.use(A)},lt.useActionState=function(A,V,Y){return z.H.useActionState(A,V,Y)},lt.useCallback=function(A,V){return z.H.useCallback(A,V)},lt.useContext=function(A){return z.H.useContext(A)},lt.useDebugValue=function(){},lt.useDeferredValue=function(A,V){return z.H.useDeferredValue(A,V)},lt.useEffect=function(A,V){return z.H.useEffect(A,V)},lt.useEffectEvent=function(A){return z.H.useEffectEvent(A)},lt.useId=function(){return z.H.useId()},lt.useImperativeHandle=function(A,V,Y){return z.H.useImperativeHandle(A,V,Y)},lt.useInsertionEffect=function(A,V){return z.H.useInsertionEffect(A,V)},lt.useLayoutEffect=function(A,V){return z.H.useLayoutEffect(A,V)},lt.useMemo=function(A,V){return z.H.useMemo(A,V)},lt.useOptimistic=function(A,V){return z.H.useOptimistic(A,V)},lt.useReducer=function(A,V,Y){return z.H.useReducer(A,V,Y)},lt.useRef=function(A){return z.H.useRef(A)},lt.useState=function(A){return z.H.useState(A)},lt.useSyncExternalStore=function(A,V,Y){return z.H.useSyncExternalStore(A,V,Y)},lt.useTransition=function(){return z.H.useTransition()},lt.version="19.2.4",lt}var Jm;function ba(){return Jm||(Jm=1,zf.exports=ZE()),zf.exports}var Nf={exports:{}},Vn={};var eg;function GE(){if(eg)return Vn;eg=1;var e=ba();function n(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(p,h,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:p,containerInfo:h,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vn.createPortal=function(p,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return c(p,h,null,g)},Vn.flushSync=function(p){var h=u.T,g=s.p;try{if(u.T=null,s.p=2,p)return p()}finally{u.T=h,s.p=g,s.d.f()}},Vn.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(p,h))},Vn.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Vn.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var g=h.as,y=f(g,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?s.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):g==="script"&&s.d.X(p,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Vn.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);s.d.M(p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(p)},Vn.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,y=f(g,h.crossOrigin);s.d.L(p,g,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Vn.preloadModule=function(p,h){if(typeof p=="string")if(h){var g=f(h.as,h.crossOrigin);s.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(p)},Vn.requestFormReset=function(p){s.d.r(p)},Vn.unstable_batchedUpdates=function(p,h){return p(h)},Vn.useFormState=function(p,h,g){return u.H.useFormState(p,h,g)},Vn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Vn.version="19.2.4",Vn}var tg;function ng(){if(tg)return Nf.exports;tg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Nf.exports=GE(),Nf.exports}var rg;function YE(){if(rg)return va;rg=1;var e=BE(),n=ba(),o=ng();function s(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function u(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function p(t){if(c(t)!==t)throw Error(s(188))}function h(t){var r=t.alternate;if(!r){if(r=c(t),r===null)throw Error(s(188));return r!==t?null:t}for(var i=t,a=r;;){var d=i.return;if(d===null)break;var m=d.alternate;if(m===null){if(a=d.return,a!==null){i=a;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===i)return p(d),t;if(m===a)return p(d),r;m=m.sibling}throw Error(s(188))}if(i.return!==a.return)i=d,a=m;else{for(var w=!1,M=d.child;M;){if(M===i){w=!0,i=d,a=m;break}if(M===a){w=!0,a=d,i=m;break}M=M.sibling}if(!w){for(M=m.child;M;){if(M===i){w=!0,i=m,a=d;break}if(M===a){w=!0,a=m,i=d;break}M=M.sibling}if(!w)throw Error(s(189))}}if(i.alternate!==a)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:r}function g(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=g(t),r!==null)return r;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function te(t){return t===null||typeof t!="object"?null:(t=q&&t[q]||t["@@iterator"],typeof t=="function"?t:null)}var ee=Symbol.for("react.client.reference");function F(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case N:return"SuspenseList";case K:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case j:return t.displayName||"Context";case L:return(t._context.displayName||"Context")+".Consumer";case k:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case z:return r=t.displayName||null,r!==null?r:F(t.type)||"Memo";case P:r=t._payload,t=t._init;try{return F(t(r))}catch{}}return null}var I=Array.isArray,_=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},B=[],Q=-1;function A(t){return{current:t}}function V(t){0>Q||(t.current=B[Q],B[Q]=null,Q--)}function Y(t,r){Q++,B[Q]=t.current,t.current=r}var W=A(null),ne=A(null),ie=A(null),ce=A(null);function de(t,r){switch(Y(ie,r),Y(ne,t),Y(W,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?cE(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=cE(r),t=uE(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(W),Y(W,t)}function ye(){V(W),V(ne),V(ie)}function Ee(t){t.memoizedState!==null&&Y(ce,t);var r=W.current,i=uE(r,t.type);r!==i&&(Y(ne,t),Y(W,i))}function Me(t){ne.current===t&&(V(W),V(ne)),ce.current===t&&(V(ce),Ul._currentValue=U)}var fe,ze;function De(t){if(fe===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);fe=r&&r[1]||"",ze=-1<i.stack.indexOf(`
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`._Viewport_ai81v_1{position:fixed;width:100%;max-width:300px;margin:0 auto;top:1rem;right:0;left:0;bottom:auto;z-index:999}._Toast_ai81v_14{--gap: .75rem;--peek: .75rem;--scale: max(0, 1 - (var(--toast-index) * .1)) ;--shrink: calc(1 - var(--scale));--height: var(--toast-frontmost-height, var(--toast-height));--offset-y: calc( var(--toast-offset-y) + (var(--toast-index) * var(--gap)) + var(--toast-swipe-movement-y) );position:absolute;box-sizing:border-box;background:var(--color-gray-50);color:var(--color-gray-900);border:1px solid var(--color-gray-200);padding:1rem;width:100%;box-shadow:0 2px 10px #0000001a;background-clip:padding-box;border-radius:.5rem;transform-origin:top center;top:0;left:0;right:0;margin:0 auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s;cursor:default;z-index:calc(1000 - var(--toast-index));height:var(--height);transform:translate(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) + (var(--toast-index) * var(--peek)) + (var(--shrink) * var(--height)))) scale(var(--scale))}._Toast_ai81v_14[data-expanded]{transform:translate(var(--toast-swipe-movement-x)) translateY(var(--offset-y));height:var(--toast-height)}._Toast_ai81v_14[data-starting-style],._Toast_ai81v_14[data-ending-style]{transform:translateY(-150%)}._Toast_ai81v_14[data-limited],._Toast_ai81v_14[data-ending-style]{opacity:0}._Toast_ai81v_14[data-ending-style][data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-movement-y) - 150%))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=left]{transform:translate(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--offset-y))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=right]{transform:translate(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-movement-y) + 150%))}._Toast_ai81v_14:after{content:"";position:absolute;width:100%;bottom:100%;left:0;height:calc(var(--gap) + 1px)}._Content_ai81v_99{overflow:hidden;transition:opacity .25s}._Content_ai81v_99[data-behind]{opacity:0}._Content_ai81v_99[data-expanded]{opacity:1}._Title_ai81v_112{font-weight:500;font-size:.975rem;line-height:1.25rem;margin:0}._Description_ai81v_119{font-size:.925rem;line-height:1.25rem;margin:0}._Close_ai81v_125{position:absolute;top:.5rem;right:.5rem;padding:0;border:none;background:transparent;width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center;border-radius:.25rem}._Close_ai81v_125:hover{background-color:var(--color-gray-100)}._Icon_ai81v_144{width:1rem;height:1rem}._trigger_1e3h3_1{display:flex;height:100%;width:4rem;align-items:center;justify-content:center;gap:.25rem;border-right-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}._popup_1e3h3_5{width:20rem;overflow-y:auto;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);max-height:var(--available-height);transform-origin:var(--transform-origin);transition:transform .2s ease,opacity .2s ease}._popup_1e3h3_5[data-starting-style],._popup_1e3h3_5[data-ending-style]{opacity:0;transform:scale(.95)}._popup_1e3h3_5[data-side=none][data-starting-style]{transform:scale(1);opacity:1}._item_1e3h3_24{display:grid;min-width:var(--anchor-width);cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;grid-template-columns:.75rem 1fr;align-items:center;gap:.5rem;border-bottom-width:1px;padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._item_1e3h3_24:last-child{border-bottom-width:0px}._item_1e3h3_24:first-of-type{border-top-left-radius:1rem;border-top-right-radius:1rem}._item_1e3h3_24:last-of-type{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}._item_1e3h3_24[data-highlighted]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(120 155 245 / var(--tw-text-opacity, 1))}._indicator_1e3h3_40{grid-column-start:1}._itemText_1e3h3_44{grid-column-start:2;display:flex;justify-content:space-between}._itemCode_1e3h3_48{font-weight:500}._itemLabel_1e3h3_52{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._uidGet_os9yc_1{width:80vw;max-width:400px;background-size:cover;background-position:center}._mailCodeGet_os9yc_5{width:100%;background-size:cover;background-position:center}.game-5174 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626145347721513.png);aspect-ratio:553 / 428}.game-5174 ._mailCodeGet_os9yc_5{aspect-ratio:680/1096}.game-5174 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626151631191610.png)}@media(min-width:1024px){.game-5174 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5174 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626144535531913.png)}}.game-5273 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626142807783110.png);aspect-ratio:553 / 428}.game-5273 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1096;background-image:url(https://h5.sdk.mobileztgame.com/dist/role-tip-mobile.png)}@media(min-width:1024px){.game-5273 ._mailCodeGet_os9yc_5{aspect-ratio:1220/654}}@media(min-width:1024px){.game-5273 ._mailCodeGet_os9yc_5{background-image:url(https://h5.sdk.mobileztgame.com/dist/role-tip-pc.png)}}.game-5242 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624152217734019.png);aspect-ratio:596 / 266}.game-5242 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1094;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624132201121910.png)}@media(min-width:1024px){.game-5242 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5242 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624143628881023.png)}}.game-5234 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811141956691626.png);aspect-ratio:740 / 290}.game-5234 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1094;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811142113377920.png)}@media(min-width:1024px){.game-5234 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5234 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811142146601319.png)}}.game-5199 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319163303381734.png);aspect-ratio:541 / 431;border-radius:10px}.game-5199 ._mailCodeGet_os9yc_5{aspect-ratio:353 / 561;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319160000001714.png)}@media(min-width:1024px){.game-5199 ._mailCodeGet_os9yc_5{aspect-ratio:677/323}}@media(min-width:1024px){.game-5199 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319153435571035.png)}}.game-5199 input{color:#dfd9c6}.game-5199 input::-moz-placeholder{color:#70625e}.game-5199 input::placeholder{color:#70625e}.game-5199 button{color:#dfd9c6}.game-5199 ._uidGetPopup_os9yc_79{background-color:#5d5655;padding:10px}.game-5199 ._uidGetArrow_os9yc_83{color:#5d5655}.game-5199 ._inputControl_os9yc_86{height:40px}.game-5199 ._form_os9yc_89>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._quickLogin_1ibz1_1{width:100%}._quickAccounts_1ibz1_5{position:relative}._selectedAccount_1ibz1_9{display:flex;align-items:center;justify-content:space-between;border:1px solid #ddd;border-radius:9999px;height:44px;padding:0 20px;background:#fff;cursor:pointer}._accountInfo_1ibz1_21{display:flex;flex-direction:column}._accountName_1ibz1_26{font-size:15px;color:#333}._arrow_1ibz1_31{size:16px;color:#999;transition:transform .2s}._arrowRotate_1ibz1_37{transform:rotate(180deg)}._accountList_1ibz1_41{position:absolute;top:50px;left:0;right:0;z-index:10}._listScroll_1ibz1_49{max-height:200px;border:1px solid #ddd;border-radius:12px;overflow-y:auto;background:#fff;box-shadow:0 4px 12px #0000001a}._accountItem_1ibz1_58{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:44px;gap:12px;border-bottom:1px solid #f5f5f5;cursor:pointer}._accountItem_1ibz1_58:last-child{border-bottom:none}._accountItem_1ibz1_58:hover{background-color:#f9f9f9}._accountItem_1ibz1_58._active_1ibz1_77{background-color:#f0f4ff}._accountItem_1ibz1_58._active_1ibz1_77 ._itemName_1ibz1_81{color:#497efe;font-weight:500}._itemInfo_1ibz1_86{display:flex;flex-direction:column;flex:1}._itemName_1ibz1_81{font-size:14px;color:#333}._deleteBtn_1ibz1_97{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s}._deleteBtn_1ibz1_97:hover{background-color:#fee2e2}.game-5199 ._modal_1pbx2_2{background:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319165656615516.png) no-repeat center center;background-size:100% 100%;padding:60px 35px 30px}.game-5199 ._close_1pbx2_8{top:10px;right:0;background:url(https://ipay.ztgame.com/png/button_close.hzBHa9.png) no-repeat center center;background-size:100% 100%;width:57px;height:60px}.game-5199 ._close_1pbx2_8 svg{opacity:0}.game-5199 ._close_1pbx2_8:hover{background-color:transparent}._autoLoginHint_h58ls_1{position:fixed;top:16px;left:50%;transform:translate(-50%);width:80%;max-width:400px;height:48px;background-color:#000c;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;z-index:9999;font-size:14px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:24px;box-shadow:0 8px 20px #0000004d}._left_h58ls_22{display:flex;align-items:center;gap:8px}._loading_h58ls_28{width:18px;height:18px;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:_spin_h58ls_1 .8s cubic-bezier(.5,.1,.4,.9) infinite}._switchBtn_h58ls_37{color:#a5a7ff;cursor:pointer;padding:6px 12px;background:#787bf426;border:none;font-size:13px;font-weight:600;border-radius:12px;transition:all .2s ease}._switchBtn_h58ls_37:hover{background:#787bf44d;color:#fff}@keyframes _spin_h58ls_1{to{transform:rotate(360deg)}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input::-webkit-input-placeholder{color:#a9a9a9}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:1rem}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[990\\]{z-index:990}.z-\\[991\\]{z-index:991}.z-\\[992\\]{z-index:992}.z-\\[999\\]{z-index:999}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.-mt-1\\.5{margin-top:-.375rem}.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-0\\.5{margin-right:.125rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.aspect-\\[240\\/85\\]{aspect-ratio:240/85}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-4\\/6{height:66.666667%}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\\[70vh\\]{height:70vh}.h-\\[80vh\\]{height:80vh}.h-full{height:100%}.max-h-\\[var\\(--available-height\\)\\]{max-height:var(--available-height)}.w-0{width:0px}.w-12{width:3rem}.w-16{width:4rem}.w-32{width:8rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[300px\\]{width:300px}.w-\\[320px\\]{width:320px}.w-\\[400px\\]{width:400px}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[var\\(--anchor-width\\)\\]{min-width:var(--anchor-width)}.max-w-64{max-width:16rem}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[calc\\(100vw-3rem\\)\\]{max-width:calc(100vw - 3rem)}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.origin-\\[var\\(--transform-origin\\)\\]{transform-origin:var(--transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-\\[0\\.75rem_1fr\\]{grid-template-columns:.75rem 1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-none{border-style:none}.border-\\[var\\(--jssdk-input-border-color\\)\\]{border-color:var(--jssdk-input-border-color)}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.\\!bg-\\[var\\(--jssdk-backdrop-bg-color\\,rgba\\(0\\,0\\,0\\,0\\.7\\)\\)\\]{background-color:var(--jssdk-backdrop-bg-color,rgba(0,0,0,.7))!important}.bg-\\[canvas\\]{background-color:canvas}.bg-\\[var\\(--jssdk-icon-color\\)\\]{background-color:var(--jssdk-icon-color)}.bg-\\[var\\(--jssdk-input-bg-color\\)\\]{background-color:var(--jssdk-input-bg-color)}.bg-black\\/20{background-color:#0003}.bg-black\\/70{background-color:#000000b3}.bg-black\\/80{background-color:#000c}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-inherit{background-color:inherit}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#497efe\\]{--tw-gradient-from: #497efe var(--tw-gradient-from-position);--tw-gradient-to: rgb(73 126 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#947afa\\]{--tw-gradient-to: #947afa var(--tw-gradient-to-position)}.fill-\\[canvas\\]{fill:canvas}.fill-current{fill:currentColor}.fill-gray-200{fill:#e5e7eb}.fill-gray-400{fill:#9ca3af}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-5{padding-bottom:1.25rem}.pl-1{padding-left:.25rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-\\[11px\\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-\\[\\#f59e9e\\]{--tw-text-opacity: 1;color:rgb(245 158 158 / var(--tw-text-opacity, 1))}.text-\\[var\\(--jssdk-primary-color\\)\\]{color:var(--jssdk-primary-color)}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.opacity-0{opacity:0}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\\[transform\\,scale\\,opacity\\]{transition-property:transform,scale,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.\\[transform\\:translateY\\(var\\(--drawer-swipe-movement-y\\)\\)\\]{transform:translateY(var(--drawer-swipe-movement-y))}.placeholder\\:text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:top-\\[-100\\%\\]:before{content:var(--tw-content);top:-100%}.before\\:h-full:before{content:var(--tw-content);height:100%}.before\\:w-full:before{content:var(--tw-content);width:100%}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.last\\:border-b-0:last-child{border-bottom-width:0px}.focus-within\\:border-\\[\\#787bf4\\]:focus-within{--tw-border-opacity: 1;border-color:rgb(120 123 244 / var(--tw-border-opacity, 1))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[var\\(--jssdk-primary-color\\)\\]:hover{color:var(--jssdk-primary-color)}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:brightness-90:active{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.enabled\\:text-\\[var\\(--jssdk-primary-color\\)\\]:enabled{color:var(--jssdk-primary-color)}.enabled\\:hover\\:bg-\\[var\\(--jssdk-primary-color\\)\\]:hover:enabled{background-color:var(--jssdk-primary-color)}.enabled\\:hover\\:text-\\[var\\(--jssdk-primary-foregroud-color\\)\\]:hover:enabled{color:var(--jssdk-primary-foregroud-color)}.enabled\\:hover\\:text-white:hover:enabled{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:grayscale:disabled{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.data-\\[direction\\=down\\]\\:bottom-0[data-direction=down]{bottom:0}.data-\\[side\\=bottom\\]\\:top-\\[-8px\\][data-side=bottom]{top:-8px}.data-\\[side\\=left\\]\\:right-\\[-13px\\][data-side=left]{right:-13px}.data-\\[side\\=right\\]\\:left-\\[-13px\\][data-side=right]{left:-13px}.data-\\[side\\=top\\]\\:bottom-\\[-8px\\][data-side=top]{bottom:-8px}.data-\\[ending-style\\]\\:translate-y-full[data-ending-style],.data-\\[starting-style\\]\\:translate-y-full[data-starting-style]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:rotate-90[data-side=left]{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:-rotate-90[data-side=right]{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:rotate-180[data-side=top]{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[ending-style\\]\\:scale-90[data-ending-style]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:scale-100[data-starting-style][data-side=none]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[starting-style\\]\\:scale-90[data-starting-style]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[checked\\]\\:border-\\[var\\(--jssdk-primary-color\\)\\][data-checked]{border-color:var(--jssdk-primary-color)}.data-\\[unchecked\\]\\:border-\\[var\\(--jssdk-input-border-color\\)\\][data-unchecked]{border-color:var(--jssdk-input-border-color)}.data-\\[unchecked\\]\\:border-gray-300[data-unchecked]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.data-\\[highlighted\\]\\:bg-gray-50[data-highlighted]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.data-\\[highlighted\\]\\:text-\\[\\#789bf5\\][data-highlighted]{--tw-text-opacity: 1;color:rgb(120 155 245 / var(--tw-text-opacity, 1))}.data-\\[ending-style\\]\\:opacity-0[data-ending-style]{opacity:0}.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:opacity-100[data-starting-style][data-side=none]{opacity:1}.data-\\[starting-style\\]\\:opacity-0[data-starting-style]{opacity:0}.data-\\[ending-style\\]\\:transition-none[data-ending-style],.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:transition-none[data-starting-style][data-side=none]{transition-property:none}.data-\\[direction\\=down\\]\\:before\\:bottom-\\[-100\\%\\][data-direction=down]:before{content:var(--tw-content);bottom:-100%}.group[data-focused] .group-data-\\[focused\\]\\:border-\\[var\\(--jssdk-primary-color\\)\\]{border-color:var(--jssdk-primary-color)}.group[data-focused] .group-data-\\[focused\\]\\:shadow-\\[0_0_6px_color-mix\\(in_srgb\\,var\\(--jssdk-primary-color\\)\\,transparent_80\\%\\)\\]{--tw-shadow: 0 0 6px color-mix(in srgb,var(--jssdk-primary-color),transparent 80%);--tw-shadow-colored: 0 0 6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\\:fill-none:is(.dark *){fill:none}.dark\\:opacity-70:is(.dark *){opacity:.7}.dark\\:shadow-none:is(.dark *){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\\:-outline-offset-1:is(.dark *){outline-offset:-1px}.dark\\:outline-gray-300:is(.dark *){outline-color:#d1d5db}@media(min-width:768px){.md\\:size-5{width:1.25rem;height:1.25rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:1024px){.lg\\:size-6{width:1.5rem;height:1.5rem}.lg\\:w-4\\/5{width:80%}.lg\\:w-\\[60vw\\]{width:60vw}.lg\\:max-w-5xl{max-width:64rem}.lg\\:text-2xl{font-size:1.5rem;line-height:2rem}}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ (function(Dn,ga){typeof exports=="object"&&typeof module<"u"?ga(exports):typeof define=="function"&&define.amd?define(["exports"],ga):(Dn=typeof globalThis<"u"?globalThis:Dn||self,ga(Dn.SDK={}))})(this,(function(Dn){"use strict";function ga(e,n){for(var o=0;o<n.length;o++){const s=n[o];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(s,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},ya={};var qm;function BE(){if(qm)return ya;qm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(s,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var f in l)f!=="key"&&(c[f]=l[f])}else c=l;return l=c.ref,{$$typeof:e,type:s,key:u,ref:l!==void 0?l:null,props:c}}return ya.Fragment=n,ya.jsx=o,ya.jsxs=o,ya}var Xm;function ZE(){return Xm||(Xm=1,Af.exports=BE()),Af.exports}var D=ZE(),Mf={exports:{}},va={},Df={exports:{}},zf={};var Qm;function GE(){return Qm||(Qm=1,(function(e){function n(_,O){var U=_.length;_.push(O);e:for(;0<U;){var B=U-1>>>1,Q=_[B];if(0<l(Q,O))_[B]=O,_[U]=Q,U=B;else break e}}function o(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var O=_[0],U=_.pop();if(U!==O){_[0]=U;e:for(var B=0,Q=_.length,A=Q>>>1;B<A;){var V=2*(B+1)-1,Y=_[V],W=V+1,ne=_[W];if(0>l(Y,U))W<Q&&0>l(ne,Y)?(_[B]=ne,_[W]=U,B=W):(_[B]=Y,_[V]=U,B=V);else if(W<Q&&0>l(ne,U))_[B]=ne,_[W]=U,B=W;else break e}}return O}function l(_,O){var U=_.sortIndex-O.sortIndex;return U!==0?U:_.id-O.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],h=[],g=1,y=null,b=3,S=!1,x=!1,T=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function k(_){for(var O=o(h);O!==null;){if(O.callback===null)s(h);else if(O.startTime<=_)s(h),O.sortIndex=O.expirationTime,n(p,O);else break;O=o(h)}}function R(_){if(T=!1,k(_),!x)if(o(p)!==null)x=!0,N||(N=!0,te());else{var O=o(h);O!==null&&I(R,O.startTime-_)}}var N=!1,z=-1,P=5,K=-1;function G(){return C?!0:!(e.unstable_now()-K<P)}function q(){if(C=!1,N){var _=e.unstable_now();K=_;var O=!0;try{e:{x=!1,T&&(T=!1,L(z),z=-1),S=!0;var U=b;try{t:{for(k(_),y=o(p);y!==null&&!(y.expirationTime>_&&G());){var B=y.callback;if(typeof B=="function"){y.callback=null,b=y.priorityLevel;var Q=B(y.expirationTime<=_);if(_=e.unstable_now(),typeof Q=="function"){y.callback=Q,k(_),O=!0;break t}y===o(p)&&s(p),k(_)}else s(p);y=o(p)}if(y!==null)O=!0;else{var A=o(h);A!==null&&I(R,A.startTime-_),O=!1}}break e}finally{y=null,b=U,S=!1}O=void 0}}finally{O?te():N=!1}}}var te;if(typeof j=="function")te=function(){j(q)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,F=ee.port2;ee.port1.onmessage=q,te=function(){F.postMessage(null)}}else te=function(){E(q,0)};function I(_,O){z=E(function(){_(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(_){switch(b){case 1:case 2:case 3:var O=3;break;default:O=b}var U=b;b=O;try{return _()}finally{b=U}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(_,O){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var U=b;b=_;try{return O()}finally{b=U}},e.unstable_scheduleCallback=function(_,O,U){var B=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?B+U:B):U=B,_){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=U+Q,_={id:g++,callback:O,priorityLevel:_,startTime:U,expirationTime:Q,sortIndex:-1},U>B?(_.sortIndex=U,n(h,_),o(p)===null&&_===o(h)&&(T?(L(z),z=-1):T=!0,I(R,U-B))):(_.sortIndex=Q,n(p,_),x||S||(x=!0,N||(N=!0,te()))),_},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(_){var O=b;return function(){var U=b;b=O;try{return _.apply(this,arguments)}finally{b=U}}}})(zf)),zf}var Km;function YE(){return Km||(Km=1,Df.exports=GE()),Df.exports}var Nf={exports:{}},lt={};var Wm;function $E(){if(Wm)return lt;Wm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,C={};function E(A,V,Y){this.props=A,this.context=V,this.refs=C,this.updater=Y||x}E.prototype.isReactComponent={},E.prototype.setState=function(A,V){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,V,"setState")},E.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function L(){}L.prototype=E.prototype;function j(A,V,Y){this.props=A,this.context=V,this.refs=C,this.updater=Y||x}var k=j.prototype=new L;k.constructor=j,T(k,E.prototype),k.isPureReactComponent=!0;var R=Array.isArray;function N(){}var z={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function K(A,V,Y){var W=Y.ref;return{$$typeof:e,type:A,key:V,ref:W!==void 0?W:null,props:Y}}function G(A,V){return K(A.type,V,A.props)}function q(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function te(A){var V={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Y){return V[Y]})}var ee=/\/+/g;function F(A,V){return typeof A=="object"&&A!==null&&A.key!=null?te(""+A.key):V.toString(36)}function I(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(N,N):(A.status="pending",A.then(function(V){A.status==="pending"&&(A.status="fulfilled",A.value=V)},function(V){A.status==="pending"&&(A.status="rejected",A.reason=V)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,V,Y,W,ne){var ie=typeof A;(ie==="undefined"||ie==="boolean")&&(A=null);var ce=!1;if(A===null)ce=!0;else switch(ie){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(A.$$typeof){case e:case n:ce=!0;break;case g:return ce=A._init,_(ce(A._payload),V,Y,W,ne)}}if(ce)return ne=ne(A),ce=W===""?"."+F(A,0):W,R(ne)?(Y="",ce!=null&&(Y=ce.replace(ee,"$&/")+"/"),_(ne,V,Y,"",function(Ee){return Ee})):ne!=null&&(q(ne)&&(ne=G(ne,Y+(ne.key==null||A&&A.key===ne.key?"":(""+ne.key).replace(ee,"$&/")+"/")+ce)),V.push(ne)),1;ce=0;var de=W===""?".":W+":";if(R(A))for(var ye=0;ye<A.length;ye++)W=A[ye],ie=de+F(W,ye),ce+=_(W,V,Y,ie,ne);else if(ye=S(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(W=A.next()).done;)W=W.value,ie=de+F(W,ye++),ce+=_(W,V,Y,ie,ne);else if(ie==="object"){if(typeof A.then=="function")return _(I(A),V,Y,W,ne);throw V=String(A),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ce}function O(A,V,Y){if(A==null)return A;var W=[],ne=0;return _(A,W,"","",function(ie){return V.call(Y,ie,ne++)}),W}function U(A){if(A._status===-1){var V=A._result;V=V(),V.then(function(Y){(A._status===0||A._status===-1)&&(A._status=1,A._result=Y)},function(Y){(A._status===0||A._status===-1)&&(A._status=2,A._result=Y)}),A._status===-1&&(A._status=0,A._result=V)}if(A._status===1)return A._result.default;throw A._result}var B=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Q={map:O,forEach:function(A,V,Y){O(A,function(){V.apply(this,arguments)},Y)},count:function(A){var V=0;return O(A,function(){V++}),V},toArray:function(A){return O(A,function(V){return V})||[]},only:function(A){if(!q(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return lt.Activity=y,lt.Children=Q,lt.Component=E,lt.Fragment=o,lt.Profiler=l,lt.PureComponent=j,lt.StrictMode=s,lt.Suspense=p,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,lt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return z.H.useMemoCache(A)}},lt.cache=function(A){return function(){return A.apply(null,arguments)}},lt.cacheSignal=function(){return null},lt.cloneElement=function(A,V,Y){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=T({},A.props),ne=A.key;if(V!=null)for(ie in V.key!==void 0&&(ne=""+V.key),V)!P.call(V,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&V.ref===void 0||(W[ie]=V[ie]);var ie=arguments.length-2;if(ie===1)W.children=Y;else if(1<ie){for(var ce=Array(ie),de=0;de<ie;de++)ce[de]=arguments[de+2];W.children=ce}return K(A.type,ne,W)},lt.createContext=function(A){return A={$$typeof:u,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},lt.createElement=function(A,V,Y){var W,ne={},ie=null;if(V!=null)for(W in V.key!==void 0&&(ie=""+V.key),V)P.call(V,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ne[W]=V[W]);var ce=arguments.length-2;if(ce===1)ne.children=Y;else if(1<ce){for(var de=Array(ce),ye=0;ye<ce;ye++)de[ye]=arguments[ye+2];ne.children=de}if(A&&A.defaultProps)for(W in ce=A.defaultProps,ce)ne[W]===void 0&&(ne[W]=ce[W]);return K(A,ie,ne)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(A){return{$$typeof:f,render:A}},lt.isValidElement=q,lt.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:U}},lt.memo=function(A,V){return{$$typeof:h,type:A,compare:V===void 0?null:V}},lt.startTransition=function(A){var V=z.T,Y={};z.T=Y;try{var W=A(),ne=z.S;ne!==null&&ne(Y,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(N,B)}catch(ie){B(ie)}finally{V!==null&&Y.types!==null&&(V.types=Y.types),z.T=V}},lt.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},lt.use=function(A){return z.H.use(A)},lt.useActionState=function(A,V,Y){return z.H.useActionState(A,V,Y)},lt.useCallback=function(A,V){return z.H.useCallback(A,V)},lt.useContext=function(A){return z.H.useContext(A)},lt.useDebugValue=function(){},lt.useDeferredValue=function(A,V){return z.H.useDeferredValue(A,V)},lt.useEffect=function(A,V){return z.H.useEffect(A,V)},lt.useEffectEvent=function(A){return z.H.useEffectEvent(A)},lt.useId=function(){return z.H.useId()},lt.useImperativeHandle=function(A,V,Y){return z.H.useImperativeHandle(A,V,Y)},lt.useInsertionEffect=function(A,V){return z.H.useInsertionEffect(A,V)},lt.useLayoutEffect=function(A,V){return z.H.useLayoutEffect(A,V)},lt.useMemo=function(A,V){return z.H.useMemo(A,V)},lt.useOptimistic=function(A,V){return z.H.useOptimistic(A,V)},lt.useReducer=function(A,V,Y){return z.H.useReducer(A,V,Y)},lt.useRef=function(A){return z.H.useRef(A)},lt.useState=function(A){return z.H.useState(A)},lt.useSyncExternalStore=function(A,V,Y){return z.H.useSyncExternalStore(A,V,Y)},lt.useTransition=function(){return z.H.useTransition()},lt.version="19.2.4",lt}var Jm;function ba(){return Jm||(Jm=1,Nf.exports=$E()),Nf.exports}var kf={exports:{}},Vn={};var eg;function qE(){if(eg)return Vn;eg=1;var e=ba();function n(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(p,h,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:p,containerInfo:h,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vn.createPortal=function(p,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return c(p,h,null,g)},Vn.flushSync=function(p){var h=u.T,g=s.p;try{if(u.T=null,s.p=2,p)return p()}finally{u.T=h,s.p=g,s.d.f()}},Vn.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(p,h))},Vn.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Vn.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var g=h.as,y=f(g,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?s.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):g==="script"&&s.d.X(p,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Vn.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);s.d.M(p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(p)},Vn.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,y=f(g,h.crossOrigin);s.d.L(p,g,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Vn.preloadModule=function(p,h){if(typeof p=="string")if(h){var g=f(h.as,h.crossOrigin);s.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(p)},Vn.requestFormReset=function(p){s.d.r(p)},Vn.unstable_batchedUpdates=function(p,h){return p(h)},Vn.useFormState=function(p,h,g){return u.H.useFormState(p,h,g)},Vn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Vn.version="19.2.4",Vn}var tg;function ng(){if(tg)return kf.exports;tg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),kf.exports=qE(),kf.exports}var rg;function XE(){if(rg)return va;rg=1;var e=YE(),n=ba(),o=ng();function s(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function u(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function p(t){if(c(t)!==t)throw Error(s(188))}function h(t){var r=t.alternate;if(!r){if(r=c(t),r===null)throw Error(s(188));return r!==t?null:t}for(var i=t,a=r;;){var d=i.return;if(d===null)break;var m=d.alternate;if(m===null){if(a=d.return,a!==null){i=a;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===i)return p(d),t;if(m===a)return p(d),r;m=m.sibling}throw Error(s(188))}if(i.return!==a.return)i=d,a=m;else{for(var w=!1,M=d.child;M;){if(M===i){w=!0,i=d,a=m;break}if(M===a){w=!0,a=d,i=m;break}M=M.sibling}if(!w){for(M=m.child;M;){if(M===i){w=!0,i=m,a=d;break}if(M===a){w=!0,a=m,i=d;break}M=M.sibling}if(!w)throw Error(s(189))}}if(i.alternate!==a)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:r}function g(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=g(t),r!==null)return r;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function te(t){return t===null||typeof t!="object"?null:(t=q&&t[q]||t["@@iterator"],typeof t=="function"?t:null)}var ee=Symbol.for("react.client.reference");function F(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case N:return"SuspenseList";case K:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case j:return t.displayName||"Context";case L:return(t._context.displayName||"Context")+".Consumer";case k:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case z:return r=t.displayName||null,r!==null?r:F(t.type)||"Memo";case P:r=t._payload,t=t._init;try{return F(t(r))}catch{}}return null}var I=Array.isArray,_=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},B=[],Q=-1;function A(t){return{current:t}}function V(t){0>Q||(t.current=B[Q],B[Q]=null,Q--)}function Y(t,r){Q++,B[Q]=t.current,t.current=r}var W=A(null),ne=A(null),ie=A(null),ce=A(null);function de(t,r){switch(Y(ie,r),Y(ne,t),Y(W,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?dE(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=dE(r),t=hE(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(W),Y(W,t)}function ye(){V(W),V(ne),V(ie)}function Ee(t){t.memoizedState!==null&&Y(ce,t);var r=W.current,i=hE(r,t.type);r!==i&&(Y(ne,t),Y(W,i))}function Me(t){ne.current===t&&(V(W),V(ne)),ce.current===t&&(V(ce),Ul._currentValue=U)}var fe,ze;function De(t){if(fe===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);fe=r&&r[1]||"",ze=-1<i.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+fe+t+ze}var _e=!1;function Oe(t,r){if(!t||_e)return"";_e=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(r){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(ue){var le=ue}Reflect.construct(t,[],ge)}else{try{ge.call()}catch(ue){le=ue}t.call(ge.prototype)}}else{try{throw Error()}catch(ue){le=ue}(ge=t())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(ue){if(ue&&le&&typeof ue.stack=="string")return[ue.stack,le.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=a.DetermineComponentFrameRoot(),w=m[0],M=m[1];if(w&&M){var Z=w.split(`
5
5
  `),ae=M.split(`
6
6
  `);for(d=a=0;a<Z.length&&!Z[a].includes("DetermineComponentFrameRoot");)a++;for(;d<ae.length&&!ae[d].includes("DetermineComponentFrameRoot");)d++;if(a===Z.length||d===ae.length)for(a=Z.length-1,d=ae.length-1;1<=a&&0<=d&&Z[a]!==ae[d];)d--;for(;1<=a&&0<=d;a--,d--)if(Z[a]!==ae[d]){if(a!==1||d!==1)do if(a--,d--,0>d||Z[a]!==ae[d]){var pe=`
7
7
  `+Z[a].replace(" at new "," at ");return t.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",t.displayName)),pe}while(1<=a&&0<=d);break}}}finally{_e=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?De(i):""}function Ce(t,r){switch(t.tag){case 26:case 27:case 5:return De(t.type);case 16:return De("Lazy");case 13:return t.child!==r&&r!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Oe(t.type,!1);case 11:return Oe(t.type.render,!1);case 1:return Oe(t.type,!0);case 31:return De("Activity");default:return""}}function Le(t){try{var r="",i=null;do r+=Ce(t,i),i=t,t=t.return;while(t);return r}catch(a){return`
8
8
  Error generating stack: `+a.message+`
9
- `+a.stack}}var Re=Object.prototype.hasOwnProperty,Ue=e.unstable_scheduleCallback,H=e.unstable_cancelCallback,oe=e.unstable_shouldYield,J=e.unstable_requestPaint,X=e.unstable_now,ve=e.unstable_getCurrentPriorityLevel,we=e.unstable_ImmediatePriority,be=e.unstable_UserBlockingPriority,Ne=e.unstable_NormalPriority,qe=e.unstable_LowPriority,He=e.unstable_IdlePriority,Be=e.log,$e=e.unstable_setDisableYieldValue,et=null,Xe=null;function We(t){if(typeof Be=="function"&&$e(t),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(et,t)}catch{}}var dt=Math.clz32?Math.clz32:Ze,jt=Math.log,rt=Math.LN2;function Ze(t){return t>>>=0,t===0?32:31-(jt(t)/rt|0)|0}var st=256,ut=262144,zt=4194304;function mt(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function wn(t,r,i){var a=t.pendingLanes;if(a===0)return 0;var d=0,m=t.suspendedLanes,w=t.pingedLanes;t=t.warmLanes;var M=a&134217727;return M!==0?(a=M&~m,a!==0?d=mt(a):(w&=M,w!==0?d=mt(w):i||(i=M&~t,i!==0&&(d=mt(i))))):(M=a&~m,M!==0?d=mt(M):w!==0?d=mt(w):i||(i=a&~t,i!==0&&(d=mt(i)))),d===0?0:r!==0&&r!==d&&(r&m)===0&&(m=d&-d,i=r&-r,m>=i||m===32&&(i&4194048)!==0)?r:d}function cn(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function Rt(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function he(){var t=zt;return zt<<=1,(zt&62914560)===0&&(zt=4194304),t}function xe(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function je(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function at(t,r,i,a,d,m){var w=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var M=t.entanglements,Z=t.expirationTimes,ae=t.hiddenUpdates;for(i=w&~i;0<i;){var pe=31-dt(i),ge=1<<pe;M[pe]=0,Z[pe]=-1;var le=ae[pe];if(le!==null)for(ae[pe]=null,pe=0;pe<le.length;pe++){var ue=le[pe];ue!==null&&(ue.lane&=-536870913)}i&=~ge}a!==0&&ft(t,a,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(w&~r))}function ft(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var a=31-dt(r);t.entangledLanes|=r,t.entanglements[a]=t.entanglements[a]|1073741824|i&261930}function ot(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var a=31-dt(i),d=1<<a;d&r|t[a]&r&&(t[a]|=r),i&=~d}}function _t(t,r){var i=r&-r;return i=(i&42)!==0?1:Ge(i),(i&(t.suspendedLanes|r))!==0?0:i}function Ge(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Fe(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function tt(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:NE(t.type))}function nt(t,r){var i=O.p;try{return O.p=t,r()}finally{O.p=i}}var ht=Math.random().toString(36).slice(2),Qe="__reactFiber$"+ht,$t="__reactProps$"+ht,xn="__reactContainer$"+ht,On="__reactEvents$"+ht,ao="__reactListeners$"+ht,Ar="__reactHandles$"+ht,lo="__reactResources$"+ht,pr="__reactMarker$"+ht;function er(t){delete t[Qe],delete t[$t],delete t[On],delete t[ao],delete t[Ar]}function _n(t){var r=t[Qe];if(r)return r;for(var i=t.parentNode;i;){if(r=i[xn]||i[Qe]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=yE(t);t!==null;){if(i=t[Qe])return i;t=yE(t)}return r}t=i,i=t.parentNode}return null}function tr(t){if(t=t[Qe]||t[xn]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function An(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(s(33))}function mr(t){var r=t[lo];return r||(r=t[lo]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function on(t){t[pr]=!0}var el=new Set,tl={};function qi(t,r){Ls(t,r),Ls(t+"Capture",r)}function Ls(t,r){for(tl[t]=r,t=0;t<r.length;t++)el.add(r[t])}var q5=RegExp("^[: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]*$"),J1={},eS={};function X5(t){return Re.call(eS,t)?!0:Re.call(J1,t)?!1:q5.test(t)?eS[t]=!0:(J1[t]=!0,!1)}function pu(t,r,i){if(X5(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var a=r.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function mu(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function Oo(t,r,i,a){if(a===null)t.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+a)}}function Mr(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function tS(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Q5(t,r,i){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,m=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return d.call(this)},set:function(w){i=""+w,m.call(this,w)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(w){i=""+w},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Hh(t){if(!t._valueTracker){var r=tS(t)?"checked":"value";t._valueTracker=Q5(t,r,""+t[r])}}function nS(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),a="";return t&&(a=tS(t)?t.checked?"true":"false":t.value),t=a,t!==i?(r.setValue(t),!0):!1}function gu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var K5=/[\n"\\]/g;function Dr(t){return t.replace(K5,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Fh(t,r,i,a,d,m,w,M){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),r!=null?w==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Mr(r)):t.value!==""+Mr(r)&&(t.value=""+Mr(r)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),r!=null?Bh(t,w,Mr(r)):i!=null?Bh(t,w,Mr(i)):a!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?t.name=""+Mr(M):t.removeAttribute("name")}function rS(t,r,i,a,d,m,w,M){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){Hh(t);return}i=i!=null?""+Mr(i):"",r=r!=null?""+Mr(r):i,M||r===t.value||(t.value=r),t.defaultValue=r}a=a??d,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=M?t.checked:!!a,t.defaultChecked=!!a,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w),Hh(t)}function Bh(t,r,i){r==="number"&&gu(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ps(t,r,i,a){if(t=t.options,r){r={};for(var d=0;d<i.length;d++)r["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=r.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&a&&(t[i].defaultSelected=!0)}else{for(i=""+Mr(i),r=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,a&&(t[d].defaultSelected=!0);return}r!==null||t[d].disabled||(r=t[d])}r!==null&&(r.selected=!0)}}function oS(t,r,i){if(r!=null&&(r=""+Mr(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+Mr(i):""}function iS(t,r,i,a){if(r==null){if(a!=null){if(i!=null)throw Error(s(92));if(I(a)){if(1<a.length)throw Error(s(93));a=a[0]}i=a}i==null&&(i=""),r=i}i=Mr(r),t.defaultValue=i,a=t.textContent,a===i&&a!==""&&a!==null&&(t.value=a),Hh(t)}function Is(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var W5=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function sS(t,r,i){var a=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?a?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":a?t.setProperty(r,i):typeof i!="number"||i===0||W5.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function aS(t,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(t=t.style,i!=null){for(var a in i)!i.hasOwnProperty(a)||r!=null&&r.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var d in r)a=r[d],r.hasOwnProperty(d)&&i[d]!==a&&sS(t,d,a)}else for(var m in r)r.hasOwnProperty(m)&&sS(t,m,r[m])}function Zh(t){if(t.indexOf("-")===-1)return!1;switch(t){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 J5=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ek=/^[\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;function yu(t){return ek.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function _o(){}var Gh=null;function Yh(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Us=null,Vs=null;function lS(t){var r=tr(t);if(r&&(t=r.stateNode)){var i=t[$t]||null;e:switch(t=r.stateNode,r.type){case"input":if(Fh(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Dr(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var a=i[r];if(a!==t&&a.form===t.form){var d=a[$t]||null;if(!d)throw Error(s(90));Fh(a,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<i.length;r++)a=i[r],a.form===t.form&&nS(a)}break e;case"textarea":oS(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Ps(t,!!i.multiple,r,!1)}}}var $h=!1;function cS(t,r,i){if($h)return t(r,i);$h=!0;try{var a=t(r);return a}finally{if($h=!1,(Us!==null||Vs!==null)&&(of(),Us&&(r=Us,t=Vs,Vs=Us=null,lS(r),t)))for(r=0;r<t.length;r++)lS(t[r])}}function nl(t,r){var i=t.stateNode;if(i===null)return null;var a=i[$t]||null;if(a===null)return null;i=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var Ao=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qh=!1;if(Ao)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){qh=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{qh=!1}var oi=null,Xh=null,vu=null;function uS(){if(vu)return vu;var t,r=Xh,i=r.length,a,d="value"in oi?oi.value:oi.textContent,m=d.length;for(t=0;t<i&&r[t]===d[t];t++);var w=i-t;for(a=1;a<=w&&r[i-a]===d[m-a];a++);return vu=d.slice(t,1<a?1-a:void 0)}function bu(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Su(){return!0}function fS(){return!1}function nr(t){function r(i,a,d,m,w){this._reactName=i,this._targetInst=d,this.type=a,this.nativeEvent=m,this.target=w,this.currentTarget=null;for(var M in t)t.hasOwnProperty(M)&&(i=t[M],this[M]=i?i(m):m[M]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Su:fS,this.isPropagationStopped=fS,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Su)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Su)},persist:function(){},isPersistent:Su}),r}var Xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=nr(Xi),ol=y({},Xi,{view:0,detail:0}),tk=nr(ol),Qh,Kh,il,xu=y({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==il&&(il&&t.type==="mousemove"?(Qh=t.screenX-il.screenX,Kh=t.screenY-il.screenY):Kh=Qh=0,il=t),Qh)},movementY:function(t){return"movementY"in t?t.movementY:Kh}}),dS=nr(xu),nk=y({},xu,{dataTransfer:0}),rk=nr(nk),ok=y({},ol,{relatedTarget:0}),Wh=nr(ok),ik=y({},Xi,{animationName:0,elapsedTime:0,pseudoElement:0}),sk=nr(ik),ak=y({},Xi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),lk=nr(ak),ck=y({},Xi,{data:0}),hS=nr(ck),uk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hk(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=dk[t])?!!r[t]:!1}function Jh(){return hk}var pk=y({},ol,{key:function(t){if(t.key){var r=uk[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=bu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?fk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jh,charCode:function(t){return t.type==="keypress"?bu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),mk=nr(pk),gk=y({},xu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pS=nr(gk),yk=y({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jh}),vk=nr(yk),bk=y({},Xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sk=nr(bk),wk=y({},xu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),xk=nr(wk),Ek=y({},Xi,{newState:0,oldState:0}),Tk=nr(Ek),Ck=[9,13,27,32],ep=Ao&&"CompositionEvent"in window,sl=null;Ao&&"documentMode"in document&&(sl=document.documentMode);var Rk=Ao&&"TextEvent"in window&&!sl,mS=Ao&&(!ep||sl&&8<sl&&11>=sl),gS=" ",yS=!1;function vS(t,r){switch(t){case"keyup":return Ck.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bS(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Hs=!1;function Ok(t,r){switch(t){case"compositionend":return bS(r);case"keypress":return r.which!==32?null:(yS=!0,gS);case"textInput":return t=r.data,t===gS&&yS?null:t;default:return null}}function _k(t,r){if(Hs)return t==="compositionend"||!ep&&vS(t,r)?(t=uS(),vu=Xh=oi=null,Hs=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return mS&&r.locale!=="ko"?null:r.data;default:return null}}var Ak={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function SS(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!Ak[t.type]:r==="textarea"}function wS(t,r,i,a){Us?Vs?Vs.push(a):Vs=[a]:Us=a,r=df(r,"onChange"),0<r.length&&(i=new wu("onChange","change",null,i,a),t.push({event:i,listeners:r}))}var al=null,ll=null;function Mk(t){rE(t,0)}function Eu(t){var r=An(t);if(nS(r))return t}function xS(t,r){if(t==="change")return r}var ES=!1;if(Ao){var tp;if(Ao){var np="oninput"in document;if(!np){var TS=document.createElement("div");TS.setAttribute("oninput","return;"),np=typeof TS.oninput=="function"}tp=np}else tp=!1;ES=tp&&(!document.documentMode||9<document.documentMode)}function CS(){al&&(al.detachEvent("onpropertychange",RS),ll=al=null)}function RS(t){if(t.propertyName==="value"&&Eu(ll)){var r=[];wS(r,ll,t,Yh(t)),cS(Mk,r)}}function Dk(t,r,i){t==="focusin"?(CS(),al=r,ll=i,al.attachEvent("onpropertychange",RS)):t==="focusout"&&CS()}function zk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Eu(ll)}function Nk(t,r){if(t==="click")return Eu(r)}function kk(t,r){if(t==="input"||t==="change")return Eu(r)}function jk(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var gr=typeof Object.is=="function"?Object.is:jk;function cl(t,r){if(gr(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),a=Object.keys(r);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var d=i[a];if(!Re.call(r,d)||!gr(t[d],r[d]))return!1}return!0}function OS(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _S(t,r){var i=OS(t);t=0;for(var a;i;){if(i.nodeType===3){if(a=t+i.textContent.length,t<=r&&a>=r)return{node:i,offset:r-t};t=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=OS(i)}}function AS(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?AS(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function MS(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=gu(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=gu(t.document)}return r}function rp(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var Lk=Ao&&"documentMode"in document&&11>=document.documentMode,Fs=null,op=null,ul=null,ip=!1;function DS(t,r,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ip||Fs==null||Fs!==gu(a)||(a=Fs,"selectionStart"in a&&rp(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ul&&cl(ul,a)||(ul=a,a=df(op,"onSelect"),0<a.length&&(r=new wu("onSelect","select",null,r,i),t.push({event:r,listeners:a}),r.target=Fs)))}function Qi(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Bs={animationend:Qi("Animation","AnimationEnd"),animationiteration:Qi("Animation","AnimationIteration"),animationstart:Qi("Animation","AnimationStart"),transitionrun:Qi("Transition","TransitionRun"),transitionstart:Qi("Transition","TransitionStart"),transitioncancel:Qi("Transition","TransitionCancel"),transitionend:Qi("Transition","TransitionEnd")},sp={},zS={};Ao&&(zS=document.createElement("div").style,"AnimationEvent"in window||(delete Bs.animationend.animation,delete Bs.animationiteration.animation,delete Bs.animationstart.animation),"TransitionEvent"in window||delete Bs.transitionend.transition);function Ki(t){if(sp[t])return sp[t];if(!Bs[t])return t;var r=Bs[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in zS)return sp[t]=r[i];return t}var NS=Ki("animationend"),kS=Ki("animationiteration"),jS=Ki("animationstart"),Pk=Ki("transitionrun"),Ik=Ki("transitionstart"),Uk=Ki("transitioncancel"),LS=Ki("transitionend"),PS=new Map,ap="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ap.push("scrollEnd");function Gr(t,r){PS.set(t,r),qi(r,[t])}var Tu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},zr=[],Zs=0,lp=0;function Cu(){for(var t=Zs,r=lp=Zs=0;r<t;){var i=zr[r];zr[r++]=null;var a=zr[r];zr[r++]=null;var d=zr[r];zr[r++]=null;var m=zr[r];if(zr[r++]=null,a!==null&&d!==null){var w=a.pending;w===null?d.next=d:(d.next=w.next,w.next=d),a.pending=d}m!==0&&IS(i,d,m)}}function Ru(t,r,i,a){zr[Zs++]=t,zr[Zs++]=r,zr[Zs++]=i,zr[Zs++]=a,lp|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function cp(t,r,i,a){return Ru(t,r,i,a),Ou(t)}function Wi(t,r){return Ru(t,null,null,r),Ou(t)}function IS(t,r,i){t.lanes|=i;var a=t.alternate;a!==null&&(a.lanes|=i);for(var d=!1,m=t.return;m!==null;)m.childLanes|=i,a=m.alternate,a!==null&&(a.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&r!==null&&(d=31-dt(i),t=m.hiddenUpdates,a=t[d],a===null?t[d]=[r]:a.push(r),r.lane=i|536870912),m):null}function Ou(t){if(50<zl)throw zl=0,vm=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Gs={};function Vk(t,r,i,a){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yr(t,r,i,a){return new Vk(t,r,i,a)}function up(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mo(t,r){var i=t.alternate;return i===null?(i=yr(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function US(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function _u(t,r,i,a,d,m){var w=0;if(a=t,typeof t=="function")up(t)&&(w=1);else if(typeof t=="string")w=G9(t,i,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case K:return t=yr(31,i,r,d),t.elementType=K,t.lanes=m,t;case T:return Ji(i.children,d,m,r);case C:w=8,d|=24;break;case E:return t=yr(12,i,r,d|2),t.elementType=E,t.lanes=m,t;case R:return t=yr(13,i,r,d),t.elementType=R,t.lanes=m,t;case N:return t=yr(19,i,r,d),t.elementType=N,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:w=10;break e;case L:w=9;break e;case k:w=11;break e;case z:w=14;break e;case P:w=16,a=null;break e}w=29,i=Error(s(130,t===null?"null":typeof t,"")),a=null}return r=yr(w,i,r,d),r.elementType=t,r.type=a,r.lanes=m,r}function Ji(t,r,i,a){return t=yr(7,t,a,r),t.lanes=i,t}function fp(t,r,i){return t=yr(6,t,null,r),t.lanes=i,t}function VS(t){var r=yr(18,null,null,0);return r.stateNode=t,r}function dp(t,r,i){return r=yr(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var HS=new WeakMap;function Nr(t,r){if(typeof t=="object"&&t!==null){var i=HS.get(t);return i!==void 0?i:(r={value:t,source:r,stack:Le(r)},HS.set(t,r),r)}return{value:t,source:r,stack:Le(r)}}var Ys=[],$s=0,Au=null,fl=0,kr=[],jr=0,ii=null,co=1,uo="";function Do(t,r){Ys[$s++]=fl,Ys[$s++]=Au,Au=t,fl=r}function FS(t,r,i){kr[jr++]=co,kr[jr++]=uo,kr[jr++]=ii,ii=t;var a=co;t=uo;var d=32-dt(a)-1;a&=~(1<<d),i+=1;var m=32-dt(r)+d;if(30<m){var w=d-d%5;m=(a&(1<<w)-1).toString(32),a>>=w,d-=w,co=1<<32-dt(r)+d|i<<d|a,uo=m+t}else co=1<<m|i<<d|a,uo=t}function hp(t){t.return!==null&&(Do(t,1),FS(t,1,0))}function pp(t){for(;t===Au;)Au=Ys[--$s],Ys[$s]=null,fl=Ys[--$s],Ys[$s]=null;for(;t===ii;)ii=kr[--jr],kr[jr]=null,uo=kr[--jr],kr[jr]=null,co=kr[--jr],kr[jr]=null}function BS(t,r){kr[jr++]=co,kr[jr++]=uo,kr[jr++]=ii,co=r.id,uo=r.overflow,ii=t}var jn=null,Qt=null,Ot=!1,si=null,Lr=!1,mp=Error(s(519));function ai(t){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dl(Nr(r,t)),mp}function ZS(t){var r=t.stateNode,i=t.type,a=t.memoizedProps;switch(r[Qe]=t,r[$t]=a,i){case"dialog":Et("cancel",r),Et("close",r);break;case"iframe":case"object":case"embed":Et("load",r);break;case"video":case"audio":for(i=0;i<kl.length;i++)Et(kl[i],r);break;case"source":Et("error",r);break;case"img":case"image":case"link":Et("error",r),Et("load",r);break;case"details":Et("toggle",r);break;case"input":Et("invalid",r),rS(r,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Et("invalid",r);break;case"textarea":Et("invalid",r),iS(r,a.value,a.defaultValue,a.children)}i=a.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||a.suppressHydrationWarning===!0||aE(r.textContent,i)?(a.popover!=null&&(Et("beforetoggle",r),Et("toggle",r)),a.onScroll!=null&&Et("scroll",r),a.onScrollEnd!=null&&Et("scrollend",r),a.onClick!=null&&(r.onclick=_o),r=!0):r=!1,r||ai(t,!0)}function GS(t){for(jn=t.return;jn;)switch(jn.tag){case 5:case 31:case 13:Lr=!1;return;case 27:case 3:Lr=!0;return;default:jn=jn.return}}function qs(t){if(t!==jn)return!1;if(!Ot)return GS(t),Ot=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Nm(t.type,t.memoizedProps)),i=!i),i&&Qt&&ai(t),GS(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Qt=gE(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Qt=gE(t)}else r===27?(r=Qt,wi(t.type)?(t=Im,Im=null,Qt=t):Qt=r):Qt=jn?Ir(t.stateNode.nextSibling):null;return!0}function es(){Qt=jn=null,Ot=!1}function gp(){var t=si;return t!==null&&(sr===null?sr=t:sr.push.apply(sr,t),si=null),t}function dl(t){si===null?si=[t]:si.push(t)}var yp=A(null),ts=null,zo=null;function li(t,r,i){Y(yp,r._currentValue),r._currentValue=i}function No(t){t._currentValue=yp.current,V(yp)}function vp(t,r,i){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===i)break;t=t.return}}function bp(t,r,i,a){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var w=d.child;m=m.firstContext;e:for(;m!==null;){var M=m;m=d;for(var Z=0;Z<r.length;Z++)if(M.context===r[Z]){m.lanes|=i,M=m.alternate,M!==null&&(M.lanes|=i),vp(m.return,i,t),a||(w=null);break e}m=M.next}}else if(d.tag===18){if(w=d.return,w===null)throw Error(s(341));w.lanes|=i,m=w.alternate,m!==null&&(m.lanes|=i),vp(w,i,t),w=null}else w=d.child;if(w!==null)w.return=d;else for(w=d;w!==null;){if(w===t){w=null;break}if(d=w.sibling,d!==null){d.return=w.return,w=d;break}w=w.return}d=w}}function Xs(t,r,i,a){t=null;for(var d=r,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var w=d.alternate;if(w===null)throw Error(s(387));if(w=w.memoizedProps,w!==null){var M=d.type;gr(d.pendingProps.value,w.value)||(t!==null?t.push(M):t=[M])}}else if(d===ce.current){if(w=d.alternate,w===null)throw Error(s(387));w.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Ul):t=[Ul])}d=d.return}t!==null&&bp(r,t,i,a),r.flags|=262144}function Mu(t){for(t=t.firstContext;t!==null;){if(!gr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ns(t){ts=t,zo=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ln(t){return YS(ts,t)}function Du(t,r){return ts===null&&ns(t),YS(t,r)}function YS(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},zo===null){if(t===null)throw Error(s(308));zo=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else zo=zo.next=r;return i}var Hk=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,a){t.push(a)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},Fk=e.unstable_scheduleCallback,Bk=e.unstable_NormalPriority,pn={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sp(){return{controller:new Hk,data:new Map,refCount:0}}function hl(t){t.refCount--,t.refCount===0&&Fk(Bk,function(){t.controller.abort()})}var pl=null,wp=0,Qs=0,Ks=null;function Zk(t,r){if(pl===null){var i=pl=[];wp=0,Qs=Tm(),Ks={status:"pending",value:void 0,then:function(a){i.push(a)}}}return wp++,r.then($S,$S),r}function $S(){if(--wp===0&&pl!==null){Ks!==null&&(Ks.status="fulfilled");var t=pl;pl=null,Qs=0,Ks=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function Gk(t,r){var i=[],a={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){a.status="fulfilled",a.value=r;for(var d=0;d<i.length;d++)(0,i[d])(r)},function(d){for(a.status="rejected",a.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),a}var qS=_.S;_.S=function(t,r){Dx=X(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&Zk(t,r),qS!==null&&qS(t,r)};var rs=A(null);function xp(){var t=rs.current;return t!==null?t:Yt.pooledCache}function zu(t,r){r===null?Y(rs,rs.current):Y(rs,r.pool)}function XS(){var t=xp();return t===null?null:{parent:pn._currentValue,pool:t}}var Ws=Error(s(460)),Ep=Error(s(474)),Nu=Error(s(542)),ku={then:function(){}};function QS(t){return t=t.status,t==="fulfilled"||t==="rejected"}function KS(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(_o,_o),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,JS(t),t;default:if(typeof r.status=="string")r.then(_o,_o);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(a){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=a}},function(a){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=a}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,JS(t),t}throw is=r,Ws}}function os(t){try{var r=t._init;return r(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(is=i,Ws):i}}var is=null;function WS(){if(is===null)throw Error(s(459));var t=is;return is=null,t}function JS(t){if(t===Ws||t===Nu)throw Error(s(483))}var Js=null,ml=0;function ju(t){var r=ml;return ml+=1,Js===null&&(Js=[]),KS(Js,t,r)}function gl(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Lu(t,r){throw r.$$typeof===b?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function ew(t){function r(re,$){if(t){var se=re.deletions;se===null?(re.deletions=[$],re.flags|=16):se.push($)}}function i(re,$){if(!t)return null;for(;$!==null;)r(re,$),$=$.sibling;return null}function a(re){for(var $=new Map;re!==null;)re.key!==null?$.set(re.key,re):$.set(re.index,re),re=re.sibling;return $}function d(re,$){return re=Mo(re,$),re.index=0,re.sibling=null,re}function m(re,$,se){return re.index=se,t?(se=re.alternate,se!==null?(se=se.index,se<$?(re.flags|=67108866,$):se):(re.flags|=67108866,$)):(re.flags|=1048576,$)}function w(re){return t&&re.alternate===null&&(re.flags|=67108866),re}function M(re,$,se,me){return $===null||$.tag!==6?($=fp(se,re.mode,me),$.return=re,$):($=d($,se),$.return=re,$)}function Z(re,$,se,me){var Ye=se.type;return Ye===T?pe(re,$,se.props.children,me,se.key):$!==null&&($.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===P&&os(Ye)===$.type)?($=d($,se.props),gl($,se),$.return=re,$):($=_u(se.type,se.key,se.props,null,re.mode,me),gl($,se),$.return=re,$)}function ae(re,$,se,me){return $===null||$.tag!==4||$.stateNode.containerInfo!==se.containerInfo||$.stateNode.implementation!==se.implementation?($=dp(se,re.mode,me),$.return=re,$):($=d($,se.children||[]),$.return=re,$)}function pe(re,$,se,me,Ye){return $===null||$.tag!==7?($=Ji(se,re.mode,me,Ye),$.return=re,$):($=d($,se),$.return=re,$)}function ge(re,$,se){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=fp(""+$,re.mode,se),$.return=re,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case S:return se=_u($.type,$.key,$.props,null,re.mode,se),gl(se,$),se.return=re,se;case x:return $=dp($,re.mode,se),$.return=re,$;case P:return $=os($),ge(re,$,se)}if(I($)||te($))return $=Ji($,re.mode,se,null),$.return=re,$;if(typeof $.then=="function")return ge(re,ju($),se);if($.$$typeof===j)return ge(re,Du(re,$),se);Lu(re,$)}return null}function le(re,$,se,me){var Ye=$!==null?$.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return Ye!==null?null:M(re,$,""+se,me);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case S:return se.key===Ye?Z(re,$,se,me):null;case x:return se.key===Ye?ae(re,$,se,me):null;case P:return se=os(se),le(re,$,se,me)}if(I(se)||te(se))return Ye!==null?null:pe(re,$,se,me,null);if(typeof se.then=="function")return le(re,$,ju(se),me);if(se.$$typeof===j)return le(re,$,Du(re,se),me);Lu(re,se)}return null}function ue(re,$,se,me,Ye){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return re=re.get(se)||null,M($,re,""+me,Ye);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case S:return re=re.get(me.key===null?se:me.key)||null,Z($,re,me,Ye);case x:return re=re.get(me.key===null?se:me.key)||null,ae($,re,me,Ye);case P:return me=os(me),ue(re,$,se,me,Ye)}if(I(me)||te(me))return re=re.get(se)||null,pe($,re,me,Ye,null);if(typeof me.then=="function")return ue(re,$,se,ju(me),Ye);if(me.$$typeof===j)return ue(re,$,se,Du($,me),Ye);Lu($,me)}return null}function Pe(re,$,se,me){for(var Ye=null,Mt=null,Ve=$,vt=$=0,Ct=null;Ve!==null&&vt<se.length;vt++){Ve.index>vt?(Ct=Ve,Ve=null):Ct=Ve.sibling;var Dt=le(re,Ve,se[vt],me);if(Dt===null){Ve===null&&(Ve=Ct);break}t&&Ve&&Dt.alternate===null&&r(re,Ve),$=m(Dt,$,vt),Mt===null?Ye=Dt:Mt.sibling=Dt,Mt=Dt,Ve=Ct}if(vt===se.length)return i(re,Ve),Ot&&Do(re,vt),Ye;if(Ve===null){for(;vt<se.length;vt++)Ve=ge(re,se[vt],me),Ve!==null&&($=m(Ve,$,vt),Mt===null?Ye=Ve:Mt.sibling=Ve,Mt=Ve);return Ot&&Do(re,vt),Ye}for(Ve=a(Ve);vt<se.length;vt++)Ct=ue(Ve,re,vt,se[vt],me),Ct!==null&&(t&&Ct.alternate!==null&&Ve.delete(Ct.key===null?vt:Ct.key),$=m(Ct,$,vt),Mt===null?Ye=Ct:Mt.sibling=Ct,Mt=Ct);return t&&Ve.forEach(function(Ri){return r(re,Ri)}),Ot&&Do(re,vt),Ye}function Ke(re,$,se,me){if(se==null)throw Error(s(151));for(var Ye=null,Mt=null,Ve=$,vt=$=0,Ct=null,Dt=se.next();Ve!==null&&!Dt.done;vt++,Dt=se.next()){Ve.index>vt?(Ct=Ve,Ve=null):Ct=Ve.sibling;var Ri=le(re,Ve,Dt.value,me);if(Ri===null){Ve===null&&(Ve=Ct);break}t&&Ve&&Ri.alternate===null&&r(re,Ve),$=m(Ri,$,vt),Mt===null?Ye=Ri:Mt.sibling=Ri,Mt=Ri,Ve=Ct}if(Dt.done)return i(re,Ve),Ot&&Do(re,vt),Ye;if(Ve===null){for(;!Dt.done;vt++,Dt=se.next())Dt=ge(re,Dt.value,me),Dt!==null&&($=m(Dt,$,vt),Mt===null?Ye=Dt:Mt.sibling=Dt,Mt=Dt);return Ot&&Do(re,vt),Ye}for(Ve=a(Ve);!Dt.done;vt++,Dt=se.next())Dt=ue(Ve,re,vt,Dt.value,me),Dt!==null&&(t&&Dt.alternate!==null&&Ve.delete(Dt.key===null?vt:Dt.key),$=m(Dt,$,vt),Mt===null?Ye=Dt:Mt.sibling=Dt,Mt=Dt);return t&&Ve.forEach(function(nj){return r(re,nj)}),Ot&&Do(re,vt),Ye}function Bt(re,$,se,me){if(typeof se=="object"&&se!==null&&se.type===T&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case S:e:{for(var Ye=se.key;$!==null;){if($.key===Ye){if(Ye=se.type,Ye===T){if($.tag===7){i(re,$.sibling),me=d($,se.props.children),me.return=re,re=me;break e}}else if($.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===P&&os(Ye)===$.type){i(re,$.sibling),me=d($,se.props),gl(me,se),me.return=re,re=me;break e}i(re,$);break}else r(re,$);$=$.sibling}se.type===T?(me=Ji(se.props.children,re.mode,me,se.key),me.return=re,re=me):(me=_u(se.type,se.key,se.props,null,re.mode,me),gl(me,se),me.return=re,re=me)}return w(re);case x:e:{for(Ye=se.key;$!==null;){if($.key===Ye)if($.tag===4&&$.stateNode.containerInfo===se.containerInfo&&$.stateNode.implementation===se.implementation){i(re,$.sibling),me=d($,se.children||[]),me.return=re,re=me;break e}else{i(re,$);break}else r(re,$);$=$.sibling}me=dp(se,re.mode,me),me.return=re,re=me}return w(re);case P:return se=os(se),Bt(re,$,se,me)}if(I(se))return Pe(re,$,se,me);if(te(se)){if(Ye=te(se),typeof Ye!="function")throw Error(s(150));return se=Ye.call(se),Ke(re,$,se,me)}if(typeof se.then=="function")return Bt(re,$,ju(se),me);if(se.$$typeof===j)return Bt(re,$,Du(re,se),me);Lu(re,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,$!==null&&$.tag===6?(i(re,$.sibling),me=d($,se),me.return=re,re=me):(i(re,$),me=fp(se,re.mode,me),me.return=re,re=me),w(re)):i(re,$)}return function(re,$,se,me){try{ml=0;var Ye=Bt(re,$,se,me);return Js=null,Ye}catch(Ve){if(Ve===Ws||Ve===Nu)throw Ve;var Mt=yr(29,Ve,null,re.mode);return Mt.lanes=me,Mt.return=re,Mt}}}var ss=ew(!0),tw=ew(!1),ci=!1;function Tp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cp(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ui(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function fi(t,r,i){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Nt&2)!==0){var d=a.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),a.pending=r,r=Ou(t),IS(t,null,i),r}return Ru(t,a,r,i),Ou(t)}function yl(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var a=r.lanes;a&=t.pendingLanes,i|=a,r.lanes=i,ot(t,i)}}function Rp(t,r){var i=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var d=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var w={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?d=m=w:m=m.next=w,i=i.next}while(i!==null);m===null?d=m=r:m=m.next=r}else d=m=r;i={baseState:a.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:a.shared,callbacks:a.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var Op=!1;function vl(){if(Op){var t=Ks;if(t!==null)throw t}}function bl(t,r,i,a){Op=!1;var d=t.updateQueue;ci=!1;var m=d.firstBaseUpdate,w=d.lastBaseUpdate,M=d.shared.pending;if(M!==null){d.shared.pending=null;var Z=M,ae=Z.next;Z.next=null,w===null?m=ae:w.next=ae,w=Z;var pe=t.alternate;pe!==null&&(pe=pe.updateQueue,M=pe.lastBaseUpdate,M!==w&&(M===null?pe.firstBaseUpdate=ae:M.next=ae,pe.lastBaseUpdate=Z))}if(m!==null){var ge=d.baseState;w=0,pe=ae=Z=null,M=m;do{var le=M.lane&-536870913,ue=le!==M.lane;if(ue?(Tt&le)===le:(a&le)===le){le!==0&&le===Qs&&(Op=!0),pe!==null&&(pe=pe.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var Pe=t,Ke=M;le=r;var Bt=i;switch(Ke.tag){case 1:if(Pe=Ke.payload,typeof Pe=="function"){ge=Pe.call(Bt,ge,le);break e}ge=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=Ke.payload,le=typeof Pe=="function"?Pe.call(Bt,ge,le):Pe,le==null)break e;ge=y({},ge,le);break e;case 2:ci=!0}}le=M.callback,le!==null&&(t.flags|=64,ue&&(t.flags|=8192),ue=d.callbacks,ue===null?d.callbacks=[le]:ue.push(le))}else ue={lane:le,tag:M.tag,payload:M.payload,callback:M.callback,next:null},pe===null?(ae=pe=ue,Z=ge):pe=pe.next=ue,w|=le;if(M=M.next,M===null){if(M=d.shared.pending,M===null)break;ue=M,M=ue.next,ue.next=null,d.lastBaseUpdate=ue,d.shared.pending=null}}while(!0);pe===null&&(Z=ge),d.baseState=Z,d.firstBaseUpdate=ae,d.lastBaseUpdate=pe,m===null&&(d.shared.lanes=0),gi|=w,t.lanes=w,t.memoizedState=ge}}function nw(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function rw(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)nw(i[t],r)}var ea=A(null),Pu=A(0);function ow(t,r){t=Fo,Y(Pu,t),Y(ea,r),Fo=t|r.baseLanes}function _p(){Y(Pu,Fo),Y(ea,ea.current)}function Ap(){Fo=Pu.current,V(ea),V(Pu)}var vr=A(null),Pr=null;function di(t){var r=t.alternate;Y(un,un.current&1),Y(vr,t),Pr===null&&(r===null||ea.current!==null||r.memoizedState!==null)&&(Pr=t)}function Mp(t){Y(un,un.current),Y(vr,t),Pr===null&&(Pr=t)}function iw(t){t.tag===22?(Y(un,un.current),Y(vr,t),Pr===null&&(Pr=t)):hi()}function hi(){Y(un,un.current),Y(vr,vr.current)}function br(t){V(vr),Pr===t&&(Pr=null),V(un)}var un=A(0);function Iu(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Lm(i)||Pm(i)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ko=0,gt=null,Ht=null,mn=null,Uu=!1,ta=!1,as=!1,Vu=0,Sl=0,na=null,Yk=0;function sn(){throw Error(s(321))}function Dp(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!gr(t[i],r[i]))return!1;return!0}function zp(t,r,i,a,d,m){return ko=m,gt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,_.H=t===null||t.memoizedState===null?Fw:$p,as=!1,m=i(a,d),as=!1,ta&&(m=aw(r,i,a,d)),sw(t),m}function sw(t){_.H=El;var r=Ht!==null&&Ht.next!==null;if(ko=0,mn=Ht=gt=null,Uu=!1,Sl=0,na=null,r)throw Error(s(300));t===null||gn||(t=t.dependencies,t!==null&&Mu(t)&&(gn=!0))}function aw(t,r,i,a){gt=t;var d=0;do{if(ta&&(na=null),Sl=0,ta=!1,25<=d)throw Error(s(301));if(d+=1,mn=Ht=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}_.H=Bw,m=r(i,a)}while(ta);return m}function $k(){var t=_.H,r=t.useState()[0];return r=typeof r.then=="function"?wl(r):r,t=t.useState()[0],(Ht!==null?Ht.memoizedState:null)!==t&&(gt.flags|=1024),r}function Np(){var t=Vu!==0;return Vu=0,t}function kp(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function jp(t){if(Uu){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Uu=!1}ko=0,mn=Ht=gt=null,ta=!1,Sl=Vu=0,na=null}function Kn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?gt.memoizedState=mn=t:mn=mn.next=t,mn}function fn(){if(Ht===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=Ht.next;var r=mn===null?gt.memoizedState:mn.next;if(r!==null)mn=r,Ht=t;else{if(t===null)throw gt.alternate===null?Error(s(467)):Error(s(310));Ht=t,t={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},mn===null?gt.memoizedState=mn=t:mn=mn.next=t}return mn}function Hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(t){var r=Sl;return Sl+=1,na===null&&(na=[]),t=KS(na,t,r),r=gt,(mn===null?r.memoizedState:mn.next)===null&&(r=r.alternate,_.H=r===null||r.memoizedState===null?Fw:$p),t}function Fu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return wl(t);if(t.$$typeof===j)return Ln(t)}throw Error(s(438,String(t)))}function Lp(t){var r=null,i=gt.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var a=gt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(r={data:a.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=Hu(),gt.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),a=0;a<t;a++)i[a]=G;return r.index++,i}function jo(t,r){return typeof r=="function"?r(t):r}function Bu(t){var r=fn();return Pp(r,Ht,t)}function Pp(t,r,i){var a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=i;var d=t.baseQueue,m=a.pending;if(m!==null){if(d!==null){var w=d.next;d.next=m.next,m.next=w}r.baseQueue=d=m,a.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{r=d.next;var M=w=null,Z=null,ae=r,pe=!1;do{var ge=ae.lane&-536870913;if(ge!==ae.lane?(Tt&ge)===ge:(ko&ge)===ge){var le=ae.revertLane;if(le===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),ge===Qs&&(pe=!0);else if((ko&le)===le){ae=ae.next,le===Qs&&(pe=!0);continue}else ge={lane:0,revertLane:ae.revertLane,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Z===null?(M=Z=ge,w=m):Z=Z.next=ge,gt.lanes|=le,gi|=le;ge=ae.action,as&&i(m,ge),m=ae.hasEagerState?ae.eagerState:i(m,ge)}else le={lane:ge,revertLane:ae.revertLane,gesture:ae.gesture,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Z===null?(M=Z=le,w=m):Z=Z.next=le,gt.lanes|=ge,gi|=ge;ae=ae.next}while(ae!==null&&ae!==r);if(Z===null?w=m:Z.next=M,!gr(m,t.memoizedState)&&(gn=!0,pe&&(i=Ks,i!==null)))throw i;t.memoizedState=m,t.baseState=w,t.baseQueue=Z,a.lastRenderedState=m}return d===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Ip(t){var r=fn(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var a=i.dispatch,d=i.pending,m=r.memoizedState;if(d!==null){i.pending=null;var w=d=d.next;do m=t(m,w.action),w=w.next;while(w!==d);gr(m,r.memoizedState)||(gn=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),i.lastRenderedState=m}return[m,a]}function lw(t,r,i){var a=gt,d=fn(),m=Ot;if(m){if(i===void 0)throw Error(s(407));i=i()}else i=r();var w=!gr((Ht||d).memoizedState,i);if(w&&(d.memoizedState=i,gn=!0),d=d.queue,Hp(fw.bind(null,a,d,t),[t]),d.getSnapshot!==r||w||mn!==null&&mn.memoizedState.tag&1){if(a.flags|=2048,ra(9,{destroy:void 0},uw.bind(null,a,d,i,r),null),Yt===null)throw Error(s(349));m||(ko&127)!==0||cw(a,r,i)}return i}function cw(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=gt.updateQueue,r===null?(r=Hu(),gt.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function uw(t,r,i,a){r.value=i,r.getSnapshot=a,dw(r)&&hw(t)}function fw(t,r,i){return i(function(){dw(r)&&hw(t)})}function dw(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!gr(t,i)}catch{return!0}}function hw(t){var r=Wi(t,2);r!==null&&ar(r,t,2)}function Up(t){var r=Kn();if(typeof t=="function"){var i=t;if(t=i(),as){We(!0);try{i()}finally{We(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:t},r}function pw(t,r,i,a){return t.baseState=i,Pp(t,Ht,typeof a=="function"?a:jo)}function qk(t,r,i,a,d){if(Yu(t))throw Error(s(485));if(t=r.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){m.listeners.push(w)}};_.T!==null?i(!0):m.isTransition=!1,a(m),i=r.pending,i===null?(m.next=r.pending=m,mw(r,m)):(m.next=i.next,r.pending=i.next=m)}}function mw(t,r){var i=r.action,a=r.payload,d=t.state;if(r.isTransition){var m=_.T,w={};_.T=w;try{var M=i(d,a),Z=_.S;Z!==null&&Z(w,M),gw(t,r,M)}catch(ae){Vp(t,r,ae)}finally{m!==null&&w.types!==null&&(m.types=w.types),_.T=m}}else try{m=i(d,a),gw(t,r,m)}catch(ae){Vp(t,r,ae)}}function gw(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(a){yw(t,r,a)},function(a){return Vp(t,r,a)}):yw(t,r,i)}function yw(t,r,i){r.status="fulfilled",r.value=i,vw(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,mw(t,i)))}function Vp(t,r,i){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do r.status="rejected",r.reason=i,vw(r),r=r.next;while(r!==a)}t.action=null}function vw(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function bw(t,r){return r}function Sw(t,r){if(Ot){var i=Yt.formState;if(i!==null){e:{var a=gt;if(Ot){if(Qt){t:{for(var d=Qt,m=Lr;d.nodeType!==8;){if(!m){d=null;break t}if(d=Ir(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){Qt=Ir(d.nextSibling),a=d.data==="F!";break e}}ai(a)}a=!1}a&&(r=i[0])}}return i=Kn(),i.memoizedState=i.baseState=r,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bw,lastRenderedState:r},i.queue=a,i=Uw.bind(null,gt,a),a.dispatch=i,a=Up(!1),m=Yp.bind(null,gt,!1,a.queue),a=Kn(),d={state:r,dispatch:null,action:t,pending:null},a.queue=d,i=qk.bind(null,gt,d,m,i),d.dispatch=i,a.memoizedState=t,[r,i,!1]}function ww(t){var r=fn();return xw(r,Ht,t)}function xw(t,r,i){if(r=Pp(t,r,bw)[0],t=Bu(jo)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var a=wl(r)}catch(w){throw w===Ws?Nu:w}else a=r;r=fn();var d=r.queue,m=d.dispatch;return i!==r.memoizedState&&(gt.flags|=2048,ra(9,{destroy:void 0},Xk.bind(null,d,i),null)),[a,m,t]}function Xk(t,r){t.action=r}function Ew(t){var r=fn(),i=Ht;if(i!==null)return xw(r,i,t);fn(),r=r.memoizedState,i=fn();var a=i.queue.dispatch;return i.memoizedState=t,[r,a,!1]}function ra(t,r,i,a){return t={tag:t,create:i,deps:a,inst:r,next:null},r=gt.updateQueue,r===null&&(r=Hu(),gt.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(a=i.next,i.next=t,t.next=a,r.lastEffect=t),t}function Tw(){return fn().memoizedState}function Zu(t,r,i,a){var d=Kn();gt.flags|=t,d.memoizedState=ra(1|r,{destroy:void 0},i,a===void 0?null:a)}function Gu(t,r,i,a){var d=fn();a=a===void 0?null:a;var m=d.memoizedState.inst;Ht!==null&&a!==null&&Dp(a,Ht.memoizedState.deps)?d.memoizedState=ra(r,m,i,a):(gt.flags|=t,d.memoizedState=ra(1|r,m,i,a))}function Cw(t,r){Zu(8390656,8,t,r)}function Hp(t,r){Gu(2048,8,t,r)}function Qk(t){gt.flags|=4;var r=gt.updateQueue;if(r===null)r=Hu(),gt.updateQueue=r,r.events=[t];else{var i=r.events;i===null?r.events=[t]:i.push(t)}}function Rw(t){var r=fn().memoizedState;return Qk({ref:r,nextImpl:t}),function(){if((Nt&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function Ow(t,r){return Gu(4,2,t,r)}function _w(t,r){return Gu(4,4,t,r)}function Aw(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Mw(t,r,i){i=i!=null?i.concat([t]):null,Gu(4,4,Aw.bind(null,r,t),i)}function Fp(){}function Dw(t,r){var i=fn();r=r===void 0?null:r;var a=i.memoizedState;return r!==null&&Dp(r,a[1])?a[0]:(i.memoizedState=[t,r],t)}function zw(t,r){var i=fn();r=r===void 0?null:r;var a=i.memoizedState;if(r!==null&&Dp(r,a[1]))return a[0];if(a=t(),as){We(!0);try{t()}finally{We(!1)}}return i.memoizedState=[a,r],a}function Bp(t,r,i){return i===void 0||(ko&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=r:(t.memoizedState=i,t=Nx(),gt.lanes|=t,gi|=t,i)}function Nw(t,r,i,a){return gr(i,r)?i:ea.current!==null?(t=Bp(t,i,a),gr(t,r)||(gn=!0),t):(ko&42)===0||(ko&1073741824)!==0&&(Tt&261930)===0?(gn=!0,t.memoizedState=i):(t=Nx(),gt.lanes|=t,gi|=t,r)}function kw(t,r,i,a,d){var m=O.p;O.p=m!==0&&8>m?m:8;var w=_.T,M={};_.T=M,Yp(t,!1,r,i);try{var Z=d(),ae=_.S;if(ae!==null&&ae(M,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var pe=Gk(Z,a);xl(t,r,pe,xr(t))}else xl(t,r,a,xr(t))}catch(ge){xl(t,r,{then:function(){},status:"rejected",reason:ge},xr())}finally{O.p=m,w!==null&&M.types!==null&&(w.types=M.types),_.T=w}}function Kk(){}function Zp(t,r,i,a){if(t.tag!==5)throw Error(s(476));var d=jw(t).queue;kw(t,d,r,U,i===null?Kk:function(){return Lw(t),i(a)})}function jw(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:U},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Lw(t){var r=jw(t);r.next===null&&(r=t.alternate.memoizedState),xl(t,r.next.queue,{},xr())}function Gp(){return Ln(Ul)}function Pw(){return fn().memoizedState}function Iw(){return fn().memoizedState}function Wk(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=xr();t=ui(i);var a=fi(r,t,i);a!==null&&(ar(a,r,i),yl(a,r,i)),r={cache:Sp()},t.payload=r;return}r=r.return}}function Jk(t,r,i){var a=xr();i={lane:a,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Yu(t)?Vw(r,i):(i=cp(t,r,i,a),i!==null&&(ar(i,t,a),Hw(i,r,a)))}function Uw(t,r,i){var a=xr();xl(t,r,i,a)}function xl(t,r,i,a){var d={lane:a,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Yu(t))Vw(r,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var w=r.lastRenderedState,M=m(w,i);if(d.hasEagerState=!0,d.eagerState=M,gr(M,w))return Ru(t,r,d,0),Yt===null&&Cu(),!1}catch{}if(i=cp(t,r,d,a),i!==null)return ar(i,t,a),Hw(i,r,a),!0}return!1}function Yp(t,r,i,a){if(a={lane:2,revertLane:Tm(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Yu(t)){if(r)throw Error(s(479))}else r=cp(t,i,a,2),r!==null&&ar(r,t,2)}function Yu(t){var r=t.alternate;return t===gt||r!==null&&r===gt}function Vw(t,r){ta=Uu=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Hw(t,r,i){if((i&4194048)!==0){var a=r.lanes;a&=t.pendingLanes,i|=a,r.lanes=i,ot(t,i)}}var El={readContext:Ln,use:Fu,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useLayoutEffect:sn,useInsertionEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useSyncExternalStore:sn,useId:sn,useHostTransitionStatus:sn,useFormState:sn,useActionState:sn,useOptimistic:sn,useMemoCache:sn,useCacheRefresh:sn};El.useEffectEvent=sn;var Fw={readContext:Ln,use:Fu,useCallback:function(t,r){return Kn().memoizedState=[t,r===void 0?null:r],t},useContext:Ln,useEffect:Cw,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,Zu(4194308,4,Aw.bind(null,r,t),i)},useLayoutEffect:function(t,r){return Zu(4194308,4,t,r)},useInsertionEffect:function(t,r){Zu(4,2,t,r)},useMemo:function(t,r){var i=Kn();r=r===void 0?null:r;var a=t();if(as){We(!0);try{t()}finally{We(!1)}}return i.memoizedState=[a,r],a},useReducer:function(t,r,i){var a=Kn();if(i!==void 0){var d=i(r);if(as){We(!0);try{i(r)}finally{We(!1)}}}else d=r;return a.memoizedState=a.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},a.queue=t,t=t.dispatch=Jk.bind(null,gt,t),[a.memoizedState,t]},useRef:function(t){var r=Kn();return t={current:t},r.memoizedState=t},useState:function(t){t=Up(t);var r=t.queue,i=Uw.bind(null,gt,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:Fp,useDeferredValue:function(t,r){var i=Kn();return Bp(i,t,r)},useTransition:function(){var t=Up(!1);return t=kw.bind(null,gt,t.queue,!0,!1),Kn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var a=gt,d=Kn();if(Ot){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),Yt===null)throw Error(s(349));(Tt&127)!==0||cw(a,r,i)}d.memoizedState=i;var m={value:i,getSnapshot:r};return d.queue=m,Cw(fw.bind(null,a,m,t),[t]),a.flags|=2048,ra(9,{destroy:void 0},uw.bind(null,a,m,i,r),null),i},useId:function(){var t=Kn(),r=Yt.identifierPrefix;if(Ot){var i=uo,a=co;i=(a&~(1<<32-dt(a)-1)).toString(32)+i,r="_"+r+"R_"+i,i=Vu++,0<i&&(r+="H"+i.toString(32)),r+="_"}else i=Yk++,r="_"+r+"r_"+i.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:Gp,useFormState:Sw,useActionState:Sw,useOptimistic:function(t){var r=Kn();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Yp.bind(null,gt,!0,i),i.dispatch=r,[t,r]},useMemoCache:Lp,useCacheRefresh:function(){return Kn().memoizedState=Wk.bind(null,gt)},useEffectEvent:function(t){var r=Kn(),i={impl:t};return r.memoizedState=i,function(){if((Nt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},$p={readContext:Ln,use:Fu,useCallback:Dw,useContext:Ln,useEffect:Hp,useImperativeHandle:Mw,useInsertionEffect:Ow,useLayoutEffect:_w,useMemo:zw,useReducer:Bu,useRef:Tw,useState:function(){return Bu(jo)},useDebugValue:Fp,useDeferredValue:function(t,r){var i=fn();return Nw(i,Ht.memoizedState,t,r)},useTransition:function(){var t=Bu(jo)[0],r=fn().memoizedState;return[typeof t=="boolean"?t:wl(t),r]},useSyncExternalStore:lw,useId:Pw,useHostTransitionStatus:Gp,useFormState:ww,useActionState:ww,useOptimistic:function(t,r){var i=fn();return pw(i,Ht,t,r)},useMemoCache:Lp,useCacheRefresh:Iw};$p.useEffectEvent=Rw;var Bw={readContext:Ln,use:Fu,useCallback:Dw,useContext:Ln,useEffect:Hp,useImperativeHandle:Mw,useInsertionEffect:Ow,useLayoutEffect:_w,useMemo:zw,useReducer:Ip,useRef:Tw,useState:function(){return Ip(jo)},useDebugValue:Fp,useDeferredValue:function(t,r){var i=fn();return Ht===null?Bp(i,t,r):Nw(i,Ht.memoizedState,t,r)},useTransition:function(){var t=Ip(jo)[0],r=fn().memoizedState;return[typeof t=="boolean"?t:wl(t),r]},useSyncExternalStore:lw,useId:Pw,useHostTransitionStatus:Gp,useFormState:Ew,useActionState:Ew,useOptimistic:function(t,r){var i=fn();return Ht!==null?pw(i,Ht,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Lp,useCacheRefresh:Iw};Bw.useEffectEvent=Rw;function qp(t,r,i,a){r=t.memoizedState,i=i(a,r),i=i==null?r:y({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Xp={enqueueSetState:function(t,r,i){t=t._reactInternals;var a=xr(),d=ui(a);d.payload=r,i!=null&&(d.callback=i),r=fi(t,d,a),r!==null&&(ar(r,t,a),yl(r,t,a))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var a=xr(),d=ui(a);d.tag=1,d.payload=r,i!=null&&(d.callback=i),r=fi(t,d,a),r!==null&&(ar(r,t,a),yl(r,t,a))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=xr(),a=ui(i);a.tag=2,r!=null&&(a.callback=r),r=fi(t,a,i),r!==null&&(ar(r,t,i),yl(r,t,i))}};function Zw(t,r,i,a,d,m,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,m,w):r.prototype&&r.prototype.isPureReactComponent?!cl(i,a)||!cl(d,m):!0}function Gw(t,r,i,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,a),r.state!==t&&Xp.enqueueReplaceState(r,r.state,null)}function ls(t,r){var i=r;if("ref"in r){i={};for(var a in r)a!=="ref"&&(i[a]=r[a])}if(t=t.defaultProps){i===r&&(i=y({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function Yw(t){Tu(t)}function $w(t){console.error(t)}function qw(t){Tu(t)}function $u(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(a){setTimeout(function(){throw a})}}function Xw(t,r,i){try{var a=t.onCaughtError;a(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Qp(t,r,i){return i=ui(i),i.tag=3,i.payload={element:null},i.callback=function(){$u(t,r)},i}function Qw(t){return t=ui(t),t.tag=3,t}function Kw(t,r,i,a){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=a.value;t.payload=function(){return d(m)},t.callback=function(){Xw(r,i,a)}}var w=i.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){Xw(r,i,a),typeof d!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var M=a.stack;this.componentDidCatch(a.value,{componentStack:M!==null?M:""})})}function e9(t,r,i,a,d){if(i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(r=i.alternate,r!==null&&Xs(r,i,d,!0),i=vr.current,i!==null){switch(i.tag){case 31:case 13:return Pr===null?sf():i.alternate===null&&an===0&&(an=3),i.flags&=-257,i.flags|=65536,i.lanes=d,a===ku?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([a]):r.add(a),wm(t,a,d)),!1;case 22:return i.flags|=65536,a===ku?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([a])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([a]):i.add(a)),wm(t,a,d)),!1}throw Error(s(435,i.tag))}return wm(t,a,d),sf(),!1}if(Ot)return r=vr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,a!==mp&&(t=Error(s(422),{cause:a}),dl(Nr(t,i)))):(a!==mp&&(r=Error(s(423),{cause:a}),dl(Nr(r,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,a=Nr(a,i),d=Qp(t.stateNode,a,d),Rp(t,d),an!==4&&(an=2)),!1;var m=Error(s(520),{cause:a});if(m=Nr(m,i),Dl===null?Dl=[m]:Dl.push(m),an!==4&&(an=2),r===null)return!0;a=Nr(a,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=Qp(i.stateNode,a,t),Rp(i,t),!1;case 1:if(r=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(yi===null||!yi.has(m))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Qw(d),Kw(d,t,i,a),Rp(i,d),!1}i=i.return}while(i!==null);return!1}var Kp=Error(s(461)),gn=!1;function Pn(t,r,i,a){r.child=t===null?tw(r,null,i,a):ss(r,t.child,i,a)}function Ww(t,r,i,a,d){i=i.render;var m=r.ref;if("ref"in a){var w={};for(var M in a)M!=="ref"&&(w[M]=a[M])}else w=a;return ns(r),a=zp(t,r,i,w,m,d),M=Np(),t!==null&&!gn?(kp(t,r,d),Lo(t,r,d)):(Ot&&M&&hp(r),r.flags|=1,Pn(t,r,a,d),r.child)}function Jw(t,r,i,a,d){if(t===null){var m=i.type;return typeof m=="function"&&!up(m)&&m.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=m,ex(t,r,m,a,d)):(t=_u(i.type,null,a,r,r.mode,d),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!im(t,d)){var w=m.memoizedProps;if(i=i.compare,i=i!==null?i:cl,i(w,a)&&t.ref===r.ref)return Lo(t,r,d)}return r.flags|=1,t=Mo(m,a),t.ref=r.ref,t.return=r,r.child=t}function ex(t,r,i,a,d){if(t!==null){var m=t.memoizedProps;if(cl(m,a)&&t.ref===r.ref)if(gn=!1,r.pendingProps=a=m,im(t,d))(t.flags&131072)!==0&&(gn=!0);else return r.lanes=t.lanes,Lo(t,r,d)}return Wp(t,r,i,a,d)}function tx(t,r,i,a){var d=a.children,m=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(a=r.child=t.child,d=0;a!==null;)d=d|a.lanes|a.childLanes,a=a.sibling;a=d&~m}else a=0,r.child=null;return nx(t,r,m,i,a)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&zu(r,m!==null?m.cachePool:null),m!==null?ow(r,m):_p(),iw(r);else return a=r.lanes=536870912,nx(t,r,m!==null?m.baseLanes|i:i,i,a)}else m!==null?(zu(r,m.cachePool),ow(r,m),hi(),r.memoizedState=null):(t!==null&&zu(r,null),_p(),hi());return Pn(t,r,d,i),r.child}function Tl(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function nx(t,r,i,a,d){var m=xp();return m=m===null?null:{parent:pn._currentValue,pool:m},r.memoizedState={baseLanes:i,cachePool:m},t!==null&&zu(r,null),_p(),iw(r),t!==null&&Xs(t,r,a,!0),r.childLanes=d,null}function qu(t,r){return r=Qu({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function rx(t,r,i){return ss(r,t.child,null,i),t=qu(r,r.pendingProps),t.flags|=2,br(r),r.memoizedState=null,t}function t9(t,r,i){var a=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(Ot){if(a.mode==="hidden")return t=qu(r,a),r.lanes=536870912,Tl(null,t);if(Mp(r),(t=Qt)?(t=mE(t,Lr),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:ii!==null?{id:co,overflow:uo}:null,retryLane:536870912,hydrationErrors:null},i=VS(t),i.return=r,r.child=i,jn=r,Qt=null)):t=null,t===null)throw ai(r);return r.lanes=536870912,null}return qu(r,a)}var m=t.memoizedState;if(m!==null){var w=m.dehydrated;if(Mp(r),d)if(r.flags&256)r.flags&=-257,r=rx(t,r,i);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(s(558));else if(gn||Xs(t,r,i,!1),d=(i&t.childLanes)!==0,gn||d){if(a=Yt,a!==null&&(w=_t(a,i),w!==0&&w!==m.retryLane))throw m.retryLane=w,Wi(t,w),ar(a,t,w),Kp;sf(),r=rx(t,r,i)}else t=m.treeContext,Qt=Ir(w.nextSibling),jn=r,Ot=!0,si=null,Lr=!1,t!==null&&BS(r,t),r=qu(r,a),r.flags|=4096;return r}return t=Mo(t.child,{mode:a.mode,children:a.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Xu(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function Wp(t,r,i,a,d){return ns(r),i=zp(t,r,i,a,void 0,d),a=Np(),t!==null&&!gn?(kp(t,r,d),Lo(t,r,d)):(Ot&&a&&hp(r),r.flags|=1,Pn(t,r,i,d),r.child)}function ox(t,r,i,a,d,m){return ns(r),r.updateQueue=null,i=aw(r,a,i,d),sw(t),a=Np(),t!==null&&!gn?(kp(t,r,m),Lo(t,r,m)):(Ot&&a&&hp(r),r.flags|=1,Pn(t,r,i,m),r.child)}function ix(t,r,i,a,d){if(ns(r),r.stateNode===null){var m=Gs,w=i.contextType;typeof w=="object"&&w!==null&&(m=Ln(w)),m=new i(a,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Xp,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=a,m.state=r.memoizedState,m.refs={},Tp(r),w=i.contextType,m.context=typeof w=="object"&&w!==null?Ln(w):Gs,m.state=r.memoizedState,w=i.getDerivedStateFromProps,typeof w=="function"&&(qp(r,i,w,a),m.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(w=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),w!==m.state&&Xp.enqueueReplaceState(m,m.state,null),bl(r,a,m,d),vl(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),a=!0}else if(t===null){m=r.stateNode;var M=r.memoizedProps,Z=ls(i,M);m.props=Z;var ae=m.context,pe=i.contextType;w=Gs,typeof pe=="object"&&pe!==null&&(w=Ln(pe));var ge=i.getDerivedStateFromProps;pe=typeof ge=="function"||typeof m.getSnapshotBeforeUpdate=="function",M=r.pendingProps!==M,pe||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(M||ae!==w)&&Gw(r,m,a,w),ci=!1;var le=r.memoizedState;m.state=le,bl(r,a,m,d),vl(),ae=r.memoizedState,M||le!==ae||ci?(typeof ge=="function"&&(qp(r,i,ge,a),ae=r.memoizedState),(Z=ci||Zw(r,i,Z,a,le,ae,w))?(pe||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=ae),m.props=a,m.state=ae,m.context=w,a=Z):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{m=r.stateNode,Cp(t,r),w=r.memoizedProps,pe=ls(i,w),m.props=pe,ge=r.pendingProps,le=m.context,ae=i.contextType,Z=Gs,typeof ae=="object"&&ae!==null&&(Z=Ln(ae)),M=i.getDerivedStateFromProps,(ae=typeof M=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==ge||le!==Z)&&Gw(r,m,a,Z),ci=!1,le=r.memoizedState,m.state=le,bl(r,a,m,d),vl();var ue=r.memoizedState;w!==ge||le!==ue||ci||t!==null&&t.dependencies!==null&&Mu(t.dependencies)?(typeof M=="function"&&(qp(r,i,M,a),ue=r.memoizedState),(pe=ci||Zw(r,i,pe,a,le,ue,Z)||t!==null&&t.dependencies!==null&&Mu(t.dependencies))?(ae||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(a,ue,Z),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(a,ue,Z)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=ue),m.props=a,m.state=ue,m.context=Z,a=pe):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=1024),a=!1)}return m=a,Xu(t,r),a=(r.flags&128)!==0,m||a?(m=r.stateNode,i=a&&typeof i.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&a?(r.child=ss(r,t.child,null,d),r.child=ss(r,null,i,d)):Pn(t,r,i,d),r.memoizedState=m.state,t=r.child):t=Lo(t,r,d),t}function sx(t,r,i,a){return es(),r.flags|=256,Pn(t,r,i,a),r.child}var Jp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function em(t){return{baseLanes:t,cachePool:XS()}}function tm(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=wr),t}function ax(t,r,i){var a=r.pendingProps,d=!1,m=(r.flags&128)!==0,w;if((w=m)||(w=t!==null&&t.memoizedState===null?!1:(un.current&2)!==0),w&&(d=!0,r.flags&=-129),w=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ot){if(d?di(r):hi(),(t=Qt)?(t=mE(t,Lr),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:ii!==null?{id:co,overflow:uo}:null,retryLane:536870912,hydrationErrors:null},i=VS(t),i.return=r,r.child=i,jn=r,Qt=null)):t=null,t===null)throw ai(r);return Pm(t)?r.lanes=32:r.lanes=536870912,null}var M=a.children;return a=a.fallback,d?(hi(),d=r.mode,M=Qu({mode:"hidden",children:M},d),a=Ji(a,d,i,null),M.return=r,a.return=r,M.sibling=a,r.child=M,a=r.child,a.memoizedState=em(i),a.childLanes=tm(t,w,i),r.memoizedState=Jp,Tl(null,a)):(di(r),nm(r,M))}var Z=t.memoizedState;if(Z!==null&&(M=Z.dehydrated,M!==null)){if(m)r.flags&256?(di(r),r.flags&=-257,r=rm(t,r,i)):r.memoizedState!==null?(hi(),r.child=t.child,r.flags|=128,r=null):(hi(),M=a.fallback,d=r.mode,a=Qu({mode:"visible",children:a.children},d),M=Ji(M,d,i,null),M.flags|=2,a.return=r,M.return=r,a.sibling=M,r.child=a,ss(r,t.child,null,i),a=r.child,a.memoizedState=em(i),a.childLanes=tm(t,w,i),r.memoizedState=Jp,r=Tl(null,a));else if(di(r),Pm(M)){if(w=M.nextSibling&&M.nextSibling.dataset,w)var ae=w.dgst;w=ae,a=Error(s(419)),a.stack="",a.digest=w,dl({value:a,source:null,stack:null}),r=rm(t,r,i)}else if(gn||Xs(t,r,i,!1),w=(i&t.childLanes)!==0,gn||w){if(w=Yt,w!==null&&(a=_t(w,i),a!==0&&a!==Z.retryLane))throw Z.retryLane=a,Wi(t,a),ar(w,t,a),Kp;Lm(M)||sf(),r=rm(t,r,i)}else Lm(M)?(r.flags|=192,r.child=t.child,r=null):(t=Z.treeContext,Qt=Ir(M.nextSibling),jn=r,Ot=!0,si=null,Lr=!1,t!==null&&BS(r,t),r=nm(r,a.children),r.flags|=4096);return r}return d?(hi(),M=a.fallback,d=r.mode,Z=t.child,ae=Z.sibling,a=Mo(Z,{mode:"hidden",children:a.children}),a.subtreeFlags=Z.subtreeFlags&65011712,ae!==null?M=Mo(ae,M):(M=Ji(M,d,i,null),M.flags|=2),M.return=r,a.return=r,a.sibling=M,r.child=a,Tl(null,a),a=r.child,M=t.child.memoizedState,M===null?M=em(i):(d=M.cachePool,d!==null?(Z=pn._currentValue,d=d.parent!==Z?{parent:Z,pool:Z}:d):d=XS(),M={baseLanes:M.baseLanes|i,cachePool:d}),a.memoizedState=M,a.childLanes=tm(t,w,i),r.memoizedState=Jp,Tl(t.child,a)):(di(r),i=t.child,t=i.sibling,i=Mo(i,{mode:"visible",children:a.children}),i.return=r,i.sibling=null,t!==null&&(w=r.deletions,w===null?(r.deletions=[t],r.flags|=16):w.push(t)),r.child=i,r.memoizedState=null,i)}function nm(t,r){return r=Qu({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Qu(t,r){return t=yr(22,t,null,r),t.lanes=0,t}function rm(t,r,i){return ss(r,t.child,null,i),t=nm(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function lx(t,r,i){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),vp(t.return,r,i)}function om(t,r,i,a,d,m){var w=t.memoizedState;w===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:d,treeForkCount:m}:(w.isBackwards=r,w.rendering=null,w.renderingStartTime=0,w.last=a,w.tail=i,w.tailMode=d,w.treeForkCount=m)}function cx(t,r,i){var a=r.pendingProps,d=a.revealOrder,m=a.tail;a=a.children;var w=un.current,M=(w&2)!==0;if(M?(w=w&1|2,r.flags|=128):w&=1,Y(un,w),Pn(t,r,a,i),a=Ot?fl:0,!M&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&lx(t,i,r);else if(t.tag===19)lx(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(i=r.child,d=null;i!==null;)t=i.alternate,t!==null&&Iu(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=r.child,r.child=null):(d=i.sibling,i.sibling=null),om(r,!1,d,i,m,a);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=r.child,r.child=null;d!==null;){if(t=d.alternate,t!==null&&Iu(t)===null){r.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}om(r,!0,i,null,m,a);break;case"together":om(r,!1,null,null,void 0,a);break;default:r.memoizedState=null}return r.child}function Lo(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),gi|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(Xs(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(s(153));if(r.child!==null){for(t=r.child,i=Mo(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=Mo(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function im(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Mu(t)))}function n9(t,r,i){switch(r.tag){case 3:de(r,r.stateNode.containerInfo),li(r,pn,t.memoizedState.cache),es();break;case 27:case 5:Ee(r);break;case 4:de(r,r.stateNode.containerInfo);break;case 10:li(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Mp(r),null;break;case 13:var a=r.memoizedState;if(a!==null)return a.dehydrated!==null?(di(r),r.flags|=128,null):(i&r.child.childLanes)!==0?ax(t,r,i):(di(r),t=Lo(t,r,i),t!==null?t.sibling:null);di(r);break;case 19:var d=(t.flags&128)!==0;if(a=(i&r.childLanes)!==0,a||(Xs(t,r,i,!1),a=(i&r.childLanes)!==0),d){if(a)return cx(t,r,i);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Y(un,un.current),a)break;return null;case 22:return r.lanes=0,tx(t,r,i,r.pendingProps);case 24:li(r,pn,t.memoizedState.cache)}return Lo(t,r,i)}function ux(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)gn=!0;else{if(!im(t,i)&&(r.flags&128)===0)return gn=!1,n9(t,r,i);gn=(t.flags&131072)!==0}else gn=!1,Ot&&(r.flags&1048576)!==0&&FS(r,fl,r.index);switch(r.lanes=0,r.tag){case 16:e:{var a=r.pendingProps;if(t=os(r.elementType),r.type=t,typeof t=="function")up(t)?(a=ls(t,a),r.tag=1,r=ix(null,r,t,a,i)):(r.tag=0,r=Wp(null,r,t,a,i));else{if(t!=null){var d=t.$$typeof;if(d===k){r.tag=11,r=Ww(null,r,t,a,i);break e}else if(d===z){r.tag=14,r=Jw(null,r,t,a,i);break e}}throw r=F(t)||t,Error(s(306,r,""))}}return r;case 0:return Wp(t,r,r.type,r.pendingProps,i);case 1:return a=r.type,d=ls(a,r.pendingProps),ix(t,r,a,d,i);case 3:e:{if(de(r,r.stateNode.containerInfo),t===null)throw Error(s(387));a=r.pendingProps;var m=r.memoizedState;d=m.element,Cp(t,r),bl(r,a,null,i);var w=r.memoizedState;if(a=w.cache,li(r,pn,a),a!==m.cache&&bp(r,[pn],i,!0),vl(),a=w.element,m.isDehydrated)if(m={element:a,isDehydrated:!1,cache:w.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=sx(t,r,a,i);break e}else if(a!==d){d=Nr(Error(s(424)),r),dl(d),r=sx(t,r,a,i);break e}else for(t=r.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Qt=Ir(t.firstChild),jn=r,Ot=!0,si=null,Lr=!0,i=tw(r,null,a,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(es(),a===d){r=Lo(t,r,i);break e}Pn(t,r,a,i)}r=r.child}return r;case 26:return Xu(t,r),t===null?(i=wE(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ot||(i=r.type,t=r.pendingProps,a=hf(ie.current).createElement(i),a[Qe]=r,a[$t]=t,In(a,i,t),on(a),r.stateNode=a):r.memoizedState=wE(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ee(r),t===null&&Ot&&(a=r.stateNode=vE(r.type,r.pendingProps,ie.current),jn=r,Lr=!0,d=Qt,wi(r.type)?(Im=d,Qt=Ir(a.firstChild)):Qt=d),Pn(t,r,r.pendingProps.children,i),Xu(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ot&&((d=a=Qt)&&(a=z9(a,r.type,r.pendingProps,Lr),a!==null?(r.stateNode=a,jn=r,Qt=Ir(a.firstChild),Lr=!1,d=!0):d=!1),d||ai(r)),Ee(r),d=r.type,m=r.pendingProps,w=t!==null?t.memoizedProps:null,a=m.children,Nm(d,m)?a=null:w!==null&&Nm(d,w)&&(r.flags|=32),r.memoizedState!==null&&(d=zp(t,r,$k,null,null,i),Ul._currentValue=d),Xu(t,r),Pn(t,r,a,i),r.child;case 6:return t===null&&Ot&&((t=i=Qt)&&(i=N9(i,r.pendingProps,Lr),i!==null?(r.stateNode=i,jn=r,Qt=null,t=!0):t=!1),t||ai(r)),null;case 13:return ax(t,r,i);case 4:return de(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=ss(r,null,a,i):Pn(t,r,a,i),r.child;case 11:return Ww(t,r,r.type,r.pendingProps,i);case 7:return Pn(t,r,r.pendingProps,i),r.child;case 8:return Pn(t,r,r.pendingProps.children,i),r.child;case 12:return Pn(t,r,r.pendingProps.children,i),r.child;case 10:return a=r.pendingProps,li(r,r.type,a.value),Pn(t,r,a.children,i),r.child;case 9:return d=r.type._context,a=r.pendingProps.children,ns(r),d=Ln(d),a=a(d),r.flags|=1,Pn(t,r,a,i),r.child;case 14:return Jw(t,r,r.type,r.pendingProps,i);case 15:return ex(t,r,r.type,r.pendingProps,i);case 19:return cx(t,r,i);case 31:return t9(t,r,i);case 22:return tx(t,r,i,r.pendingProps);case 24:return ns(r),a=Ln(pn),t===null?(d=xp(),d===null&&(d=Yt,m=Sp(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=i),d=m),r.memoizedState={parent:a,cache:d},Tp(r),li(r,pn,d)):((t.lanes&i)!==0&&(Cp(t,r),bl(r,null,null,i),vl()),d=t.memoizedState,m=r.memoizedState,d.parent!==a?(d={parent:a,cache:a},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),li(r,pn,a)):(a=m.cache,li(r,pn,a),a!==d.cache&&bp(r,[pn],i,!0))),Pn(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Po(t){t.flags|=4}function sm(t,r,i,a,d){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(Px())t.flags|=8192;else throw is=ku,Ep}else t.flags&=-16777217}function fx(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!RE(r))if(Px())t.flags|=8192;else throw is=ku,Ep}function Ku(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?he():536870912,t.lanes|=r,aa|=r)}function Cl(t,r){if(!Ot)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Kt(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,a=0;if(r)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,a|=d.subtreeFlags&65011712,a|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,a|=d.subtreeFlags,a|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=a,t.childLanes=i,r}function r9(t,r,i){var a=r.pendingProps;switch(pp(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(r),null;case 1:return Kt(r),null;case 3:return i=r.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),No(pn),ye(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(qs(r)?Po(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,gp())),Kt(r),null;case 26:var d=r.type,m=r.memoizedState;return t===null?(Po(r),m!==null?(Kt(r),fx(r,m)):(Kt(r),sm(r,d,null,a,i))):m?m!==t.memoizedState?(Po(r),Kt(r),fx(r,m)):(Kt(r),r.flags&=-16777217):(t=t.memoizedProps,t!==a&&Po(r),Kt(r),sm(r,d,t,a,i)),null;case 27:if(Me(r),i=ie.current,d=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==a&&Po(r);else{if(!a){if(r.stateNode===null)throw Error(s(166));return Kt(r),null}t=W.current,qs(r)?ZS(r):(t=vE(d,a,i),r.stateNode=t,Po(r))}return Kt(r),null;case 5:if(Me(r),d=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==a&&Po(r);else{if(!a){if(r.stateNode===null)throw Error(s(166));return Kt(r),null}if(m=W.current,qs(r))ZS(r);else{var w=hf(ie.current);switch(m){case 1:m=w.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=w.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=w.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof a.is=="string"?w.createElement("select",{is:a.is}):w.createElement("select"),a.multiple?m.multiple=!0:a.size&&(m.size=a.size);break;default:m=typeof a.is=="string"?w.createElement(d,{is:a.is}):w.createElement(d)}}m[Qe]=r,m[$t]=a;e:for(w=r.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===r)break e;for(;w.sibling===null;){if(w.return===null||w.return===r)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}r.stateNode=m;e:switch(In(m,d,a),d){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Po(r)}}return Kt(r),sm(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,i),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==a&&Po(r);else{if(typeof a!="string"&&r.stateNode===null)throw Error(s(166));if(t=ie.current,qs(r)){if(t=r.stateNode,i=r.memoizedProps,a=null,d=jn,d!==null)switch(d.tag){case 27:case 5:a=d.memoizedProps}t[Qe]=r,t=!!(t.nodeValue===i||a!==null&&a.suppressHydrationWarning===!0||aE(t.nodeValue,i)),t||ai(r,!0)}else t=hf(t).createTextNode(a),t[Qe]=r,r.stateNode=t}return Kt(r),null;case 31:if(i=r.memoizedState,t===null||t.memoizedState!==null){if(a=qs(r),i!==null){if(t===null){if(!a)throw Error(s(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[Qe]=r}else es(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Kt(r),t=!1}else i=gp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return r.flags&256?(br(r),r):(br(r),null);if((r.flags&128)!==0)throw Error(s(558))}return Kt(r),null;case 13:if(a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=qs(r),a!==null&&a.dehydrated!==null){if(t===null){if(!d)throw Error(s(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[Qe]=r}else es(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Kt(r),d=!1}else d=gp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(br(r),r):(br(r),null)}return br(r),(r.flags&128)!==0?(r.lanes=i,r):(i=a!==null,t=t!==null&&t.memoizedState!==null,i&&(a=r.child,d=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(d=a.alternate.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==d&&(a.flags|=2048)),i!==t&&i&&(r.child.flags|=8192),Ku(r,r.updateQueue),Kt(r),null);case 4:return ye(),t===null&&_m(r.stateNode.containerInfo),Kt(r),null;case 10:return No(r.type),Kt(r),null;case 19:if(V(un),a=r.memoizedState,a===null)return Kt(r),null;if(d=(r.flags&128)!==0,m=a.rendering,m===null)if(d)Cl(a,!1);else{if(an!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=Iu(t),m!==null){for(r.flags|=128,Cl(a,!1),t=m.updateQueue,r.updateQueue=t,Ku(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)US(i,t),i=i.sibling;return Y(un,un.current&1|2),Ot&&Do(r,a.treeForkCount),r.child}t=t.sibling}a.tail!==null&&X()>nf&&(r.flags|=128,d=!0,Cl(a,!1),r.lanes=4194304)}else{if(!d)if(t=Iu(m),t!==null){if(r.flags|=128,d=!0,t=t.updateQueue,r.updateQueue=t,Ku(r,t),Cl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!m.alternate&&!Ot)return Kt(r),null}else 2*X()-a.renderingStartTime>nf&&i!==536870912&&(r.flags|=128,d=!0,Cl(a,!1),r.lanes=4194304);a.isBackwards?(m.sibling=r.child,r.child=m):(t=a.last,t!==null?t.sibling=m:r.child=m,a.last=m)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=X(),t.sibling=null,i=un.current,Y(un,d?i&1|2:i&1),Ot&&Do(r,a.treeForkCount),t):(Kt(r),null);case 22:case 23:return br(r),Ap(),a=r.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(r.flags|=8192):a&&(r.flags|=8192),a?(i&536870912)!==0&&(r.flags&128)===0&&(Kt(r),r.subtreeFlags&6&&(r.flags|=8192)):Kt(r),i=r.updateQueue,i!==null&&Ku(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048),t!==null&&V(rs),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),No(pn),Kt(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function o9(t,r){switch(pp(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return No(pn),ye(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Me(r),null;case 31:if(r.memoizedState!==null){if(br(r),r.alternate===null)throw Error(s(340));es()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(br(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));es()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return V(un),null;case 4:return ye(),null;case 10:return No(r.type),null;case 22:case 23:return br(r),Ap(),t!==null&&V(rs),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return No(pn),null;case 25:return null;default:return null}}function dx(t,r){switch(pp(r),r.tag){case 3:No(pn),ye();break;case 26:case 27:case 5:Me(r);break;case 4:ye();break;case 31:r.memoizedState!==null&&br(r);break;case 13:br(r);break;case 19:V(un);break;case 10:No(r.type);break;case 22:case 23:br(r),Ap(),t!==null&&V(rs);break;case 24:No(pn)}}function Rl(t,r){try{var i=r.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var d=a.next;i=d;do{if((i.tag&t)===t){a=void 0;var m=i.create,w=i.inst;a=m(),w.destroy=a}i=i.next}while(i!==d)}}catch(M){It(r,r.return,M)}}function pi(t,r,i){try{var a=r.updateQueue,d=a!==null?a.lastEffect:null;if(d!==null){var m=d.next;a=m;do{if((a.tag&t)===t){var w=a.inst,M=w.destroy;if(M!==void 0){w.destroy=void 0,d=r;var Z=i,ae=M;try{ae()}catch(pe){It(d,Z,pe)}}}a=a.next}while(a!==m)}}catch(pe){It(r,r.return,pe)}}function hx(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{rw(r,i)}catch(a){It(t,t.return,a)}}}function px(t,r,i){i.props=ls(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(a){It(t,r,a)}}function Ol(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof i=="function"?t.refCleanup=i(a):i.current=a}}catch(d){It(t,r,d)}}function fo(t,r){var i=t.ref,a=t.refCleanup;if(i!==null)if(typeof a=="function")try{a()}catch(d){It(t,r,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){It(t,r,d)}else i.current=null}function mx(t){var r=t.type,i=t.memoizedProps,a=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&a.focus();break e;case"img":i.src?a.src=i.src:i.srcSet&&(a.srcset=i.srcSet)}}catch(d){It(t,t.return,d)}}function am(t,r,i){try{var a=t.stateNode;R9(a,t.type,i,r),a[$t]=r}catch(d){It(t,t.return,d)}}function gx(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&wi(t.type)||t.tag===4}function lm(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||gx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&wi(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function cm(t,r,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=_o));else if(a!==4&&(a===27&&wi(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(cm(t,r,i),t=t.sibling;t!==null;)cm(t,r,i),t=t.sibling}function Wu(t,r,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(a!==4&&(a===27&&wi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Wu(t,r,i),t=t.sibling;t!==null;)Wu(t,r,i),t=t.sibling}function yx(t){var r=t.stateNode,i=t.memoizedProps;try{for(var a=t.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);In(r,a,i),r[Qe]=t,r[$t]=i}catch(m){It(t,t.return,m)}}var Io=!1,yn=!1,um=!1,vx=typeof WeakSet=="function"?WeakSet:Set,Mn=null;function i9(t,r){if(t=t.containerInfo,Dm=Sf,t=MS(t),rp(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var d=a.anchorOffset,m=a.focusNode;a=a.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var w=0,M=-1,Z=-1,ae=0,pe=0,ge=t,le=null;t:for(;;){for(var ue;ge!==i||d!==0&&ge.nodeType!==3||(M=w+d),ge!==m||a!==0&&ge.nodeType!==3||(Z=w+a),ge.nodeType===3&&(w+=ge.nodeValue.length),(ue=ge.firstChild)!==null;)le=ge,ge=ue;for(;;){if(ge===t)break t;if(le===i&&++ae===d&&(M=w),le===m&&++pe===a&&(Z=w),(ue=ge.nextSibling)!==null)break;ge=le,le=ge.parentNode}ge=ue}i=M===-1||Z===-1?null:{start:M,end:Z}}else i=null}i=i||{start:0,end:0}}else i=null;for(zm={focusedElem:t,selectionRange:i},Sf=!1,Mn=r;Mn!==null;)if(r=Mn,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Mn=t;else for(;Mn!==null;){switch(r=Mn,m=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=r,d=m.memoizedProps,m=m.memoizedState,a=i.stateNode;try{var Pe=ls(i.type,d);t=a.getSnapshotBeforeUpdate(Pe,m),a.__reactInternalSnapshotBeforeUpdate=t}catch(Ke){It(i,i.return,Ke)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)jm(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":jm(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=r.sibling,t!==null){t.return=r.return,Mn=t;break}Mn=r.return}}function bx(t,r,i){var a=i.flags;switch(i.tag){case 0:case 11:case 15:Vo(t,i),a&4&&Rl(5,i);break;case 1:if(Vo(t,i),a&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(w){It(i,i.return,w)}else{var d=ls(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(d,r,t.__reactInternalSnapshotBeforeUpdate)}catch(w){It(i,i.return,w)}}a&64&&hx(i),a&512&&Ol(i,i.return);break;case 3:if(Vo(t,i),a&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{rw(t,r)}catch(w){It(i,i.return,w)}}break;case 27:r===null&&a&4&&yx(i);case 26:case 5:Vo(t,i),r===null&&a&4&&mx(i),a&512&&Ol(i,i.return);break;case 12:Vo(t,i);break;case 31:Vo(t,i),a&4&&xx(t,i);break;case 13:Vo(t,i),a&4&&Ex(t,i),a&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=p9.bind(null,i),k9(t,i))));break;case 22:if(a=i.memoizedState!==null||Io,!a){r=r!==null&&r.memoizedState!==null||yn,d=Io;var m=yn;Io=a,(yn=r)&&!m?Ho(t,i,(i.subtreeFlags&8772)!==0):Vo(t,i),Io=d,yn=m}break;case 30:break;default:Vo(t,i)}}function Sx(t){var r=t.alternate;r!==null&&(t.alternate=null,Sx(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&er(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var tn=null,rr=!1;function Uo(t,r,i){for(i=i.child;i!==null;)wx(t,r,i),i=i.sibling}function wx(t,r,i){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(et,i)}catch{}switch(i.tag){case 26:yn||fo(i,r),Uo(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:yn||fo(i,r);var a=tn,d=rr;wi(i.type)&&(tn=i.stateNode,rr=!1),Uo(t,r,i),Ll(i.stateNode),tn=a,rr=d;break;case 5:yn||fo(i,r);case 6:if(a=tn,d=rr,tn=null,Uo(t,r,i),tn=a,rr=d,tn!==null)if(rr)try{(tn.nodeType===9?tn.body:tn.nodeName==="HTML"?tn.ownerDocument.body:tn).removeChild(i.stateNode)}catch(m){It(i,r,m)}else try{tn.removeChild(i.stateNode)}catch(m){It(i,r,m)}break;case 18:tn!==null&&(rr?(t=tn,hE(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),ma(t)):hE(tn,i.stateNode));break;case 4:a=tn,d=rr,tn=i.stateNode.containerInfo,rr=!0,Uo(t,r,i),tn=a,rr=d;break;case 0:case 11:case 14:case 15:pi(2,i,r),yn||pi(4,i,r),Uo(t,r,i);break;case 1:yn||(fo(i,r),a=i.stateNode,typeof a.componentWillUnmount=="function"&&px(i,r,a)),Uo(t,r,i);break;case 21:Uo(t,r,i);break;case 22:yn=(a=yn)||i.memoizedState!==null,Uo(t,r,i),yn=a;break;default:Uo(t,r,i)}}function xx(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ma(t)}catch(i){It(r,r.return,i)}}}function Ex(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ma(t)}catch(i){It(r,r.return,i)}}function s9(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new vx),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new vx),r;default:throw Error(s(435,t.tag))}}function Ju(t,r){var i=s9(t);r.forEach(function(a){if(!i.has(a)){i.add(a);var d=m9.bind(null,t,a);a.then(d,d)}})}function or(t,r){var i=r.deletions;if(i!==null)for(var a=0;a<i.length;a++){var d=i[a],m=t,w=r,M=w;e:for(;M!==null;){switch(M.tag){case 27:if(wi(M.type)){tn=M.stateNode,rr=!1;break e}break;case 5:tn=M.stateNode,rr=!1;break e;case 3:case 4:tn=M.stateNode.containerInfo,rr=!0;break e}M=M.return}if(tn===null)throw Error(s(160));wx(m,w,d),tn=null,rr=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Tx(r,t),r=r.sibling}var Yr=null;function Tx(t,r){var i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:or(r,t),ir(t),a&4&&(pi(3,t,t.return),Rl(3,t),pi(5,t,t.return));break;case 1:or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),a&64&&Io&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?a:i.concat(a))));break;case 26:var d=Yr;if(or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),a&4){var m=i!==null?i.memoizedState:null;if(a=t.memoizedState,i===null)if(a===null)if(t.stateNode===null){e:{a=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(a){case"title":m=d.getElementsByTagName("title")[0],(!m||m[pr]||m[Qe]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(a),d.head.insertBefore(m,d.querySelector("head > title"))),In(m,a,i),m[Qe]=t,on(m),a=m;break e;case"link":var w=TE("link","href",d).get(a+(i.href||""));if(w){for(var M=0;M<w.length;M++)if(m=w[M],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){w.splice(M,1);break t}}m=d.createElement(a),In(m,a,i),d.head.appendChild(m);break;case"meta":if(w=TE("meta","content",d).get(a+(i.content||""))){for(M=0;M<w.length;M++)if(m=w[M],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){w.splice(M,1);break t}}m=d.createElement(a),In(m,a,i),d.head.appendChild(m);break;default:throw Error(s(468,a))}m[Qe]=t,on(m),a=m}t.stateNode=a}else CE(d,t.type,t.stateNode);else t.stateNode=EE(d,a,t.memoizedProps);else m!==a?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,a===null?CE(d,t.type,t.stateNode):EE(d,a,t.memoizedProps)):a===null&&t.stateNode!==null&&am(t,t.memoizedProps,i.memoizedProps)}break;case 27:or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),i!==null&&a&4&&am(t,t.memoizedProps,i.memoizedProps);break;case 5:if(or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),t.flags&32){d=t.stateNode;try{Is(d,"")}catch(Pe){It(t,t.return,Pe)}}a&4&&t.stateNode!=null&&(d=t.memoizedProps,am(t,d,i!==null?i.memoizedProps:d)),a&1024&&(um=!0);break;case 6:if(or(r,t),ir(t),a&4){if(t.stateNode===null)throw Error(s(162));a=t.memoizedProps,i=t.stateNode;try{i.nodeValue=a}catch(Pe){It(t,t.return,Pe)}}break;case 3:if(gf=null,d=Yr,Yr=pf(r.containerInfo),or(r,t),Yr=d,ir(t),a&4&&i!==null&&i.memoizedState.isDehydrated)try{ma(r.containerInfo)}catch(Pe){It(t,t.return,Pe)}um&&(um=!1,Cx(t));break;case 4:a=Yr,Yr=pf(t.stateNode.containerInfo),or(r,t),ir(t),Yr=a;break;case 12:or(r,t),ir(t);break;case 31:or(r,t),ir(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ju(t,a)));break;case 13:or(r,t),ir(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(tf=X()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ju(t,a)));break;case 22:d=t.memoizedState!==null;var Z=i!==null&&i.memoizedState!==null,ae=Io,pe=yn;if(Io=ae||d,yn=pe||Z,or(r,t),yn=pe,Io=ae,ir(t),a&8192)e:for(r=t.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(i===null||Z||Io||yn||cs(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){Z=i=r;try{if(m=Z.stateNode,d)w=m.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{M=Z.stateNode;var ge=Z.memoizedProps.style,le=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;M.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(Pe){It(Z,Z.return,Pe)}}}else if(r.tag===6){if(i===null){Z=r;try{Z.stateNode.nodeValue=d?"":Z.memoizedProps}catch(Pe){It(Z,Z.return,Pe)}}}else if(r.tag===18){if(i===null){Z=r;try{var ue=Z.stateNode;d?pE(ue,!0):pE(Z.stateNode,!1)}catch(Pe){It(Z,Z.return,Pe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}a&4&&(a=t.updateQueue,a!==null&&(i=a.retryQueue,i!==null&&(a.retryQueue=null,Ju(t,i))));break;case 19:or(r,t),ir(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ju(t,a)));break;case 30:break;case 21:break;default:or(r,t),ir(t)}}function ir(t){var r=t.flags;if(r&2){try{for(var i,a=t.return;a!==null;){if(gx(a)){i=a;break}a=a.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var d=i.stateNode,m=lm(t);Wu(t,m,d);break;case 5:var w=i.stateNode;i.flags&32&&(Is(w,""),i.flags&=-33);var M=lm(t);Wu(t,M,w);break;case 3:case 4:var Z=i.stateNode.containerInfo,ae=lm(t);cm(t,ae,Z);break;default:throw Error(s(161))}}catch(pe){It(t,t.return,pe)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Cx(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;Cx(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Vo(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)bx(t,r.alternate,r),r=r.sibling}function cs(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:pi(4,r,r.return),cs(r);break;case 1:fo(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&px(r,r.return,i),cs(r);break;case 27:Ll(r.stateNode);case 26:case 5:fo(r,r.return),cs(r);break;case 22:r.memoizedState===null&&cs(r);break;case 30:cs(r);break;default:cs(r)}t=t.sibling}}function Ho(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var a=r.alternate,d=t,m=r,w=m.flags;switch(m.tag){case 0:case 11:case 15:Ho(d,m,i),Rl(4,m);break;case 1:if(Ho(d,m,i),a=m,d=a.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ae){It(a,a.return,ae)}if(a=m,d=a.updateQueue,d!==null){var M=a.stateNode;try{var Z=d.shared.hiddenCallbacks;if(Z!==null)for(d.shared.hiddenCallbacks=null,d=0;d<Z.length;d++)nw(Z[d],M)}catch(ae){It(a,a.return,ae)}}i&&w&64&&hx(m),Ol(m,m.return);break;case 27:yx(m);case 26:case 5:Ho(d,m,i),i&&a===null&&w&4&&mx(m),Ol(m,m.return);break;case 12:Ho(d,m,i);break;case 31:Ho(d,m,i),i&&w&4&&xx(d,m);break;case 13:Ho(d,m,i),i&&w&4&&Ex(d,m);break;case 22:m.memoizedState===null&&Ho(d,m,i),Ol(m,m.return);break;case 30:break;default:Ho(d,m,i)}r=r.sibling}}function fm(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&hl(i))}function dm(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&hl(t))}function $r(t,r,i,a){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Rx(t,r,i,a),r=r.sibling}function Rx(t,r,i,a){var d=r.flags;switch(r.tag){case 0:case 11:case 15:$r(t,r,i,a),d&2048&&Rl(9,r);break;case 1:$r(t,r,i,a);break;case 3:$r(t,r,i,a),d&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&hl(t)));break;case 12:if(d&2048){$r(t,r,i,a),t=r.stateNode;try{var m=r.memoizedProps,w=m.id,M=m.onPostCommit;typeof M=="function"&&M(w,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(Z){It(r,r.return,Z)}}else $r(t,r,i,a);break;case 31:$r(t,r,i,a);break;case 13:$r(t,r,i,a);break;case 23:break;case 22:m=r.stateNode,w=r.alternate,r.memoizedState!==null?m._visibility&2?$r(t,r,i,a):_l(t,r):m._visibility&2?$r(t,r,i,a):(m._visibility|=2,oa(t,r,i,a,(r.subtreeFlags&10256)!==0||!1)),d&2048&&fm(w,r);break;case 24:$r(t,r,i,a),d&2048&&dm(r.alternate,r);break;default:$r(t,r,i,a)}}function oa(t,r,i,a,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=t,w=r,M=i,Z=a,ae=w.flags;switch(w.tag){case 0:case 11:case 15:oa(m,w,M,Z,d),Rl(8,w);break;case 23:break;case 22:var pe=w.stateNode;w.memoizedState!==null?pe._visibility&2?oa(m,w,M,Z,d):_l(m,w):(pe._visibility|=2,oa(m,w,M,Z,d)),d&&ae&2048&&fm(w.alternate,w);break;case 24:oa(m,w,M,Z,d),d&&ae&2048&&dm(w.alternate,w);break;default:oa(m,w,M,Z,d)}r=r.sibling}}function _l(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,a=r,d=a.flags;switch(a.tag){case 22:_l(i,a),d&2048&&fm(a.alternate,a);break;case 24:_l(i,a),d&2048&&dm(a.alternate,a);break;default:_l(i,a)}r=r.sibling}}var Al=8192;function ia(t,r,i){if(t.subtreeFlags&Al)for(t=t.child;t!==null;)Ox(t,r,i),t=t.sibling}function Ox(t,r,i){switch(t.tag){case 26:ia(t,r,i),t.flags&Al&&t.memoizedState!==null&&Y9(i,Yr,t.memoizedState,t.memoizedProps);break;case 5:ia(t,r,i);break;case 3:case 4:var a=Yr;Yr=pf(t.stateNode.containerInfo),ia(t,r,i),Yr=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Al,Al=16777216,ia(t,r,i),Al=a):ia(t,r,i));break;default:ia(t,r,i)}}function _x(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Ml(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var a=r[i];Mn=a,Mx(a,t)}_x(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ax(t),t=t.sibling}function Ax(t){switch(t.tag){case 0:case 11:case 15:Ml(t),t.flags&2048&&pi(9,t,t.return);break;case 3:Ml(t);break;case 12:Ml(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,ef(t)):Ml(t);break;default:Ml(t)}}function ef(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var a=r[i];Mn=a,Mx(a,t)}_x(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:pi(8,r,r.return),ef(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,ef(r));break;default:ef(r)}t=t.sibling}}function Mx(t,r){for(;Mn!==null;){var i=Mn;switch(i.tag){case 0:case 11:case 15:pi(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var a=i.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:hl(i.memoizedState.cache)}if(a=i.child,a!==null)a.return=i,Mn=a;else e:for(i=t;Mn!==null;){a=Mn;var d=a.sibling,m=a.return;if(Sx(a),a===i){Mn=null;break e}if(d!==null){d.return=m,Mn=d;break e}Mn=m}}}var a9={getCacheForType:function(t){var r=Ln(pn),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i},cacheSignal:function(){return Ln(pn).controller.signal}},l9=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Yt=null,xt=null,Tt=0,Pt=0,Sr=null,mi=!1,sa=!1,hm=!1,Fo=0,an=0,gi=0,us=0,pm=0,wr=0,aa=0,Dl=null,sr=null,mm=!1,tf=0,Dx=0,nf=1/0,rf=null,yi=null,En=0,vi=null,la=null,Bo=0,gm=0,ym=null,zx=null,zl=0,vm=null;function xr(){return(Nt&2)!==0&&Tt!==0?Tt&-Tt:_.T!==null?Tm():tt()}function Nx(){if(wr===0)if((Tt&536870912)===0||Ot){var t=ut;ut<<=1,(ut&3932160)===0&&(ut=262144),wr=t}else wr=536870912;return t=vr.current,t!==null&&(t.flags|=32),wr}function ar(t,r,i){(t===Yt&&(Pt===2||Pt===9)||t.cancelPendingCommit!==null)&&(ca(t,0),bi(t,Tt,wr,!1)),je(t,i),((Nt&2)===0||t!==Yt)&&(t===Yt&&((Nt&2)===0&&(us|=i),an===4&&bi(t,Tt,wr,!1)),ho(t))}function kx(t,r,i){if((Nt&6)!==0)throw Error(s(327));var a=!i&&(r&127)===0&&(r&t.expiredLanes)===0||cn(t,r),d=a?f9(t,r):Sm(t,r,!0),m=a;do{if(d===0){sa&&!a&&bi(t,r,0,!1);break}else{if(i=t.current.alternate,m&&!c9(i)){d=Sm(t,r,!1),m=!1;continue}if(d===2){if(m=r,t.errorRecoveryDisabledLanes&m)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){r=w;e:{var M=t;d=Dl;var Z=M.current.memoizedState.isDehydrated;if(Z&&(ca(M,w).flags|=256),w=Sm(M,w,!1),w!==2){if(hm&&!Z){M.errorRecoveryDisabledLanes|=m,us|=m,d=4;break e}m=sr,sr=d,m!==null&&(sr===null?sr=m:sr.push.apply(sr,m))}d=w}if(m=!1,d!==2)continue}}if(d===1){ca(t,0),bi(t,r,0,!0);break}e:{switch(a=t,m=d,m){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:bi(a,r,wr,!mi);break e;case 2:sr=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(d=tf+300-X(),10<d)){if(bi(a,r,wr,!mi),wn(a,0,!0)!==0)break e;Bo=r,a.timeoutHandle=fE(jx.bind(null,a,i,sr,rf,mm,r,wr,us,aa,mi,m,"Throttled",-0,0),d);break e}jx(a,i,sr,rf,mm,r,wr,us,aa,mi,m,null,-0,0)}}break}while(!0);ho(t)}function jx(t,r,i,a,d,m,w,M,Z,ae,pe,ge,le,ue){if(t.timeoutHandle=-1,ge=r.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_o},Ox(r,m,ge);var Pe=(m&62914560)===m?tf-X():(m&4194048)===m?Dx-X():0;if(Pe=$9(ge,Pe),Pe!==null){Bo=m,t.cancelPendingCommit=Pe(Bx.bind(null,t,r,m,i,a,d,w,M,Z,pe,ge,null,le,ue)),bi(t,m,w,!ae);return}}Bx(t,r,m,i,a,d,w,M,Z)}function c9(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var a=0;a<i.length;a++){var d=i[a],m=d.getSnapshot;d=d.value;try{if(!gr(m(),d))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function bi(t,r,i,a){r&=~pm,r&=~us,t.suspendedLanes|=r,t.pingedLanes&=~r,a&&(t.warmLanes|=r),a=t.expirationTimes;for(var d=r;0<d;){var m=31-dt(d),w=1<<m;a[m]=-1,d&=~w}i!==0&&ft(t,i,r)}function of(){return(Nt&6)===0?(Nl(0),!1):!0}function bm(){if(xt!==null){if(Pt===0)var t=xt.return;else t=xt,zo=ts=null,jp(t),Js=null,ml=0,t=xt;for(;t!==null;)dx(t.alternate,t),t=t.return;xt=null}}function ca(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,A9(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Bo=0,bm(),Yt=t,xt=i=Mo(t.current,null),Tt=r,Pt=0,Sr=null,mi=!1,sa=cn(t,r),hm=!1,aa=wr=pm=us=gi=an=0,sr=Dl=null,mm=!1,(r&8)!==0&&(r|=r&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=r;0<a;){var d=31-dt(a),m=1<<d;r|=t[d],a&=~m}return Fo=r,Cu(),i}function Lx(t,r){gt=null,_.H=El,r===Ws||r===Nu?(r=WS(),Pt=3):r===Ep?(r=WS(),Pt=4):Pt=r===Kp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Sr=r,xt===null&&(an=1,$u(t,Nr(r,t.current)))}function Px(){var t=vr.current;return t===null?!0:(Tt&4194048)===Tt?Pr===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===Pr:!1}function Ix(){var t=_.H;return _.H=El,t===null?El:t}function Ux(){var t=_.A;return _.A=a9,t}function sf(){an=4,mi||(Tt&4194048)!==Tt&&vr.current!==null||(sa=!0),(gi&134217727)===0&&(us&134217727)===0||Yt===null||bi(Yt,Tt,wr,!1)}function Sm(t,r,i){var a=Nt;Nt|=2;var d=Ix(),m=Ux();(Yt!==t||Tt!==r)&&(rf=null,ca(t,r)),r=!1;var w=an;e:do try{if(Pt!==0&&xt!==null){var M=xt,Z=Sr;switch(Pt){case 8:bm(),w=6;break e;case 3:case 2:case 9:case 6:vr.current===null&&(r=!0);var ae=Pt;if(Pt=0,Sr=null,ua(t,M,Z,ae),i&&sa){w=0;break e}break;default:ae=Pt,Pt=0,Sr=null,ua(t,M,Z,ae)}}u9(),w=an;break}catch(pe){Lx(t,pe)}while(!0);return r&&t.shellSuspendCounter++,zo=ts=null,Nt=a,_.H=d,_.A=m,xt===null&&(Yt=null,Tt=0,Cu()),w}function u9(){for(;xt!==null;)Vx(xt)}function f9(t,r){var i=Nt;Nt|=2;var a=Ix(),d=Ux();Yt!==t||Tt!==r?(rf=null,nf=X()+500,ca(t,r)):sa=cn(t,r);e:do try{if(Pt!==0&&xt!==null){r=xt;var m=Sr;t:switch(Pt){case 1:Pt=0,Sr=null,ua(t,r,m,1);break;case 2:case 9:if(QS(m)){Pt=0,Sr=null,Hx(r);break}r=function(){Pt!==2&&Pt!==9||Yt!==t||(Pt=7),ho(t)},m.then(r,r);break e;case 3:Pt=7;break e;case 4:Pt=5;break e;case 7:QS(m)?(Pt=0,Sr=null,Hx(r)):(Pt=0,Sr=null,ua(t,r,m,7));break;case 5:var w=null;switch(xt.tag){case 26:w=xt.memoizedState;case 5:case 27:var M=xt;if(w?RE(w):M.stateNode.complete){Pt=0,Sr=null;var Z=M.sibling;if(Z!==null)xt=Z;else{var ae=M.return;ae!==null?(xt=ae,af(ae)):xt=null}break t}}Pt=0,Sr=null,ua(t,r,m,5);break;case 6:Pt=0,Sr=null,ua(t,r,m,6);break;case 8:bm(),an=6;break e;default:throw Error(s(462))}}d9();break}catch(pe){Lx(t,pe)}while(!0);return zo=ts=null,_.H=a,_.A=d,Nt=i,xt!==null?0:(Yt=null,Tt=0,Cu(),an)}function d9(){for(;xt!==null&&!oe();)Vx(xt)}function Vx(t){var r=ux(t.alternate,t,Fo);t.memoizedProps=t.pendingProps,r===null?af(t):xt=r}function Hx(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=ox(i,r,r.pendingProps,r.type,void 0,Tt);break;case 11:r=ox(i,r,r.pendingProps,r.type.render,r.ref,Tt);break;case 5:jp(r);default:dx(i,r),r=xt=US(r,Fo),r=ux(i,r,Fo)}t.memoizedProps=t.pendingProps,r===null?af(t):xt=r}function ua(t,r,i,a){zo=ts=null,jp(r),Js=null,ml=0;var d=r.return;try{if(e9(t,d,r,i,Tt)){an=1,$u(t,Nr(i,t.current)),xt=null;return}}catch(m){if(d!==null)throw xt=d,m;an=1,$u(t,Nr(i,t.current)),xt=null;return}r.flags&32768?(Ot||a===1?t=!0:sa||(Tt&536870912)!==0?t=!1:(mi=t=!0,(a===2||a===9||a===3||a===6)&&(a=vr.current,a!==null&&a.tag===13&&(a.flags|=16384))),Fx(r,t)):af(r)}function af(t){var r=t;do{if((r.flags&32768)!==0){Fx(r,mi);return}t=r.return;var i=r9(r.alternate,r,Fo);if(i!==null){xt=i;return}if(r=r.sibling,r!==null){xt=r;return}xt=r=t}while(r!==null);an===0&&(an=5)}function Fx(t,r){do{var i=o9(t.alternate,t);if(i!==null){i.flags&=32767,xt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){xt=t;return}xt=t=i}while(t!==null);an=6,xt=null}function Bx(t,r,i,a,d,m,w,M,Z){t.cancelPendingCommit=null;do lf();while(En!==0);if((Nt&6)!==0)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(m=r.lanes|r.childLanes,m|=lp,at(t,i,m,w,M,Z),t===Yt&&(xt=Yt=null,Tt=0),la=r,vi=t,Bo=i,gm=m,ym=d,zx=a,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,g9(Ne,function(){return qx(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,d=O.p,O.p=2,w=Nt,Nt|=4;try{i9(t,r,i)}finally{Nt=w,O.p=d,_.T=a}}En=1,Zx(),Gx(),Yx()}}function Zx(){if(En===1){En=0;var t=vi,r=la,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=_.T,_.T=null;var a=O.p;O.p=2;var d=Nt;Nt|=4;try{Tx(r,t);var m=zm,w=MS(t.containerInfo),M=m.focusedElem,Z=m.selectionRange;if(w!==M&&M&&M.ownerDocument&&AS(M.ownerDocument.documentElement,M)){if(Z!==null&&rp(M)){var ae=Z.start,pe=Z.end;if(pe===void 0&&(pe=ae),"selectionStart"in M)M.selectionStart=ae,M.selectionEnd=Math.min(pe,M.value.length);else{var ge=M.ownerDocument||document,le=ge&&ge.defaultView||window;if(le.getSelection){var ue=le.getSelection(),Pe=M.textContent.length,Ke=Math.min(Z.start,Pe),Bt=Z.end===void 0?Ke:Math.min(Z.end,Pe);!ue.extend&&Ke>Bt&&(w=Bt,Bt=Ke,Ke=w);var re=_S(M,Ke),$=_S(M,Bt);if(re&&$&&(ue.rangeCount!==1||ue.anchorNode!==re.node||ue.anchorOffset!==re.offset||ue.focusNode!==$.node||ue.focusOffset!==$.offset)){var se=ge.createRange();se.setStart(re.node,re.offset),ue.removeAllRanges(),Ke>Bt?(ue.addRange(se),ue.extend($.node,$.offset)):(se.setEnd($.node,$.offset),ue.addRange(se))}}}}for(ge=[],ue=M;ue=ue.parentNode;)ue.nodeType===1&&ge.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<ge.length;M++){var me=ge[M];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}Sf=!!Dm,zm=Dm=null}finally{Nt=d,O.p=a,_.T=i}}t.current=r,En=2}}function Gx(){if(En===2){En=0;var t=vi,r=la,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=_.T,_.T=null;var a=O.p;O.p=2;var d=Nt;Nt|=4;try{bx(t,r.alternate,r)}finally{Nt=d,O.p=a,_.T=i}}En=3}}function Yx(){if(En===4||En===3){En=0,J();var t=vi,r=la,i=Bo,a=zx;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?En=5:(En=0,la=vi=null,$x(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(yi=null),Fe(i),r=r.stateNode,Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(et,r,void 0,(r.current.flags&128)===128)}catch{}if(a!==null){r=_.T,d=O.p,O.p=2,_.T=null;try{for(var m=t.onRecoverableError,w=0;w<a.length;w++){var M=a[w];m(M.value,{componentStack:M.stack})}}finally{_.T=r,O.p=d}}(Bo&3)!==0&&lf(),ho(t),d=t.pendingLanes,(i&261930)!==0&&(d&42)!==0?t===vm?zl++:(zl=0,vm=t):zl=0,Nl(0)}}function $x(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,hl(r)))}function lf(){return Zx(),Gx(),Yx(),qx()}function qx(){if(En!==5)return!1;var t=vi,r=gm;gm=0;var i=Fe(Bo),a=_.T,d=O.p;try{O.p=32>i?32:i,_.T=null,i=ym,ym=null;var m=vi,w=Bo;if(En=0,la=vi=null,Bo=0,(Nt&6)!==0)throw Error(s(331));var M=Nt;if(Nt|=4,Ax(m.current),Rx(m,m.current,w,i),Nt=M,Nl(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(et,m)}catch{}return!0}finally{O.p=d,_.T=a,$x(t,r)}}function Xx(t,r,i){r=Nr(i,r),r=Qp(t.stateNode,r,2),t=fi(t,r,2),t!==null&&(je(t,2),ho(t))}function It(t,r,i){if(t.tag===3)Xx(t,t,i);else for(;r!==null;){if(r.tag===3){Xx(r,t,i);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(yi===null||!yi.has(a))){t=Nr(i,t),i=Qw(2),a=fi(r,i,2),a!==null&&(Kw(i,a,r,t),je(a,2),ho(a));break}}r=r.return}}function wm(t,r,i){var a=t.pingCache;if(a===null){a=t.pingCache=new l9;var d=new Set;a.set(r,d)}else d=a.get(r),d===void 0&&(d=new Set,a.set(r,d));d.has(i)||(hm=!0,d.add(i),t=h9.bind(null,t,r,i),r.then(t,t))}function h9(t,r,i){var a=t.pingCache;a!==null&&a.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Yt===t&&(Tt&i)===i&&(an===4||an===3&&(Tt&62914560)===Tt&&300>X()-tf?(Nt&2)===0&&ca(t,0):pm|=i,aa===Tt&&(aa=0)),ho(t)}function Qx(t,r){r===0&&(r=he()),t=Wi(t,r),t!==null&&(je(t,r),ho(t))}function p9(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),Qx(t,i)}function m9(t,r){var i=0;switch(t.tag){case 31:case 13:var a=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(r),Qx(t,i)}function g9(t,r){return Ue(t,r)}var cf=null,fa=null,xm=!1,uf=!1,Em=!1,Si=0;function ho(t){t!==fa&&t.next===null&&(fa===null?cf=fa=t:fa=fa.next=t),uf=!0,xm||(xm=!0,v9())}function Nl(t,r){if(!Em&&uf){Em=!0;do for(var i=!1,a=cf;a!==null;){if(t!==0){var d=a.pendingLanes;if(d===0)var m=0;else{var w=a.suspendedLanes,M=a.pingedLanes;m=(1<<31-dt(42|t)+1)-1,m&=d&~(w&~M),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,eE(a,m))}else m=Tt,m=wn(a,a===Yt?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(m&3)===0||cn(a,m)||(i=!0,eE(a,m));a=a.next}while(i);Em=!1}}function y9(){Kx()}function Kx(){uf=xm=!1;var t=0;Si!==0&&_9()&&(t=Si);for(var r=X(),i=null,a=cf;a!==null;){var d=a.next,m=Wx(a,r);m===0?(a.next=null,i===null?cf=d:i.next=d,d===null&&(fa=i)):(i=a,(t!==0||(m&3)!==0)&&(uf=!0)),a=d}En!==0&&En!==5||Nl(t),Si!==0&&(Si=0)}function Wx(t,r){for(var i=t.suspendedLanes,a=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var w=31-dt(m),M=1<<w,Z=d[w];Z===-1?((M&i)===0||(M&a)!==0)&&(d[w]=Rt(M,r)):Z<=r&&(t.expiredLanes|=M),m&=~M}if(r=Yt,i=Tt,i=wn(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,i===0||t===r&&(Pt===2||Pt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&H(a),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||cn(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(a!==null&&H(a),Fe(i)){case 2:case 8:i=be;break;case 32:i=Ne;break;case 268435456:i=He;break;default:i=Ne}return a=Jx.bind(null,t),i=Ue(i,a),t.callbackPriority=r,t.callbackNode=i,r}return a!==null&&a!==null&&H(a),t.callbackPriority=2,t.callbackNode=null,2}function Jx(t,r){if(En!==0&&En!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(lf()&&t.callbackNode!==i)return null;var a=Tt;return a=wn(t,t===Yt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(kx(t,a,r),Wx(t,X()),t.callbackNode!=null&&t.callbackNode===i?Jx.bind(null,t):null)}function eE(t,r){if(lf())return null;kx(t,r,!0)}function v9(){M9(function(){(Nt&6)!==0?Ue(we,y9):Kx()})}function Tm(){if(Si===0){var t=Qs;t===0&&(t=st,st<<=1,(st&261888)===0&&(st=256)),Si=t}return Si}function tE(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:yu(""+t)}function nE(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function b9(t,r,i,a,d){if(r==="submit"&&i&&i.stateNode===d){var m=tE((d[$t]||null).action),w=a.submitter;w&&(r=(r=w[$t]||null)?tE(r.formAction):w.getAttribute("formAction"),r!==null&&(m=r,w=null));var M=new wu("action","action",null,a,d);t.push({event:M,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Si!==0){var Z=w?nE(d,w):new FormData(d);Zp(i,{pending:!0,data:Z,method:d.method,action:m},null,Z)}}else typeof m=="function"&&(M.preventDefault(),Z=w?nE(d,w):new FormData(d),Zp(i,{pending:!0,data:Z,method:d.method,action:m},m,Z))},currentTarget:d}]})}}for(var Cm=0;Cm<ap.length;Cm++){var Rm=ap[Cm],S9=Rm.toLowerCase(),w9=Rm[0].toUpperCase()+Rm.slice(1);Gr(S9,"on"+w9)}Gr(NS,"onAnimationEnd"),Gr(kS,"onAnimationIteration"),Gr(jS,"onAnimationStart"),Gr("dblclick","onDoubleClick"),Gr("focusin","onFocus"),Gr("focusout","onBlur"),Gr(Pk,"onTransitionRun"),Gr(Ik,"onTransitionStart"),Gr(Uk,"onTransitionCancel"),Gr(LS,"onTransitionEnd"),Ls("onMouseEnter",["mouseout","mouseover"]),Ls("onMouseLeave",["mouseout","mouseover"]),Ls("onPointerEnter",["pointerout","pointerover"]),Ls("onPointerLeave",["pointerout","pointerover"]),qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qi("onBeforeInput",["compositionend","keypress","textInput","paste"]),qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),x9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function rE(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var a=t[i],d=a.event;a=a.listeners;e:{var m=void 0;if(r)for(var w=a.length-1;0<=w;w--){var M=a[w],Z=M.instance,ae=M.currentTarget;if(M=M.listener,Z!==m&&d.isPropagationStopped())break e;m=M,d.currentTarget=ae;try{m(d)}catch(pe){Tu(pe)}d.currentTarget=null,m=Z}else for(w=0;w<a.length;w++){if(M=a[w],Z=M.instance,ae=M.currentTarget,M=M.listener,Z!==m&&d.isPropagationStopped())break e;m=M,d.currentTarget=ae;try{m(d)}catch(pe){Tu(pe)}d.currentTarget=null,m=Z}}}}function Et(t,r){var i=r[On];i===void 0&&(i=r[On]=new Set);var a=t+"__bubble";i.has(a)||(oE(r,t,2,!1),i.add(a))}function Om(t,r,i){var a=0;r&&(a|=4),oE(i,t,a,r)}var ff="_reactListening"+Math.random().toString(36).slice(2);function _m(t){if(!t[ff]){t[ff]=!0,el.forEach(function(i){i!=="selectionchange"&&(x9.has(i)||Om(i,!1,t),Om(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[ff]||(r[ff]=!0,Om("selectionchange",!1,r))}}function oE(t,r,i,a){switch(NE(r)){case 2:var d=Q9;break;case 8:d=K9;break;default:d=Bm}i=d.bind(null,r,i,t),d=void 0,!qh||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),a?d!==void 0?t.addEventListener(r,i,{capture:!0,passive:d}):t.addEventListener(r,i,!0):d!==void 0?t.addEventListener(r,i,{passive:d}):t.addEventListener(r,i,!1)}function Am(t,r,i,a,d){var m=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var w=a.tag;if(w===3||w===4){var M=a.stateNode.containerInfo;if(M===d)break;if(w===4)for(w=a.return;w!==null;){var Z=w.tag;if((Z===3||Z===4)&&w.stateNode.containerInfo===d)return;w=w.return}for(;M!==null;){if(w=_n(M),w===null)return;if(Z=w.tag,Z===5||Z===6||Z===26||Z===27){a=m=w;continue e}M=M.parentNode}}a=a.return}cS(function(){var ae=m,pe=Yh(i),ge=[];e:{var le=PS.get(t);if(le!==void 0){var ue=wu,Pe=t;switch(t){case"keypress":if(bu(i)===0)break e;case"keydown":case"keyup":ue=mk;break;case"focusin":Pe="focus",ue=Wh;break;case"focusout":Pe="blur",ue=Wh;break;case"beforeblur":case"afterblur":ue=Wh;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=dS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=rk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=vk;break;case NS:case kS:case jS:ue=sk;break;case LS:ue=Sk;break;case"scroll":case"scrollend":ue=tk;break;case"wheel":ue=xk;break;case"copy":case"cut":case"paste":ue=lk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=pS;break;case"toggle":case"beforetoggle":ue=Tk}var Ke=(r&4)!==0,Bt=!Ke&&(t==="scroll"||t==="scrollend"),re=Ke?le!==null?le+"Capture":null:le;Ke=[];for(var $=ae,se;$!==null;){var me=$;if(se=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||se===null||re===null||(me=nl($,re),me!=null&&Ke.push(jl($,me,se))),Bt)break;$=$.return}0<Ke.length&&(le=new ue(le,Pe,null,i,pe),ge.push({event:le,listeners:Ke}))}}if((r&7)===0){e:{if(le=t==="mouseover"||t==="pointerover",ue=t==="mouseout"||t==="pointerout",le&&i!==Gh&&(Pe=i.relatedTarget||i.fromElement)&&(_n(Pe)||Pe[xn]))break e;if((ue||le)&&(le=pe.window===pe?pe:(le=pe.ownerDocument)?le.defaultView||le.parentWindow:window,ue?(Pe=i.relatedTarget||i.toElement,ue=ae,Pe=Pe?_n(Pe):null,Pe!==null&&(Bt=c(Pe),Ke=Pe.tag,Pe!==Bt||Ke!==5&&Ke!==27&&Ke!==6)&&(Pe=null)):(ue=null,Pe=ae),ue!==Pe)){if(Ke=dS,me="onMouseLeave",re="onMouseEnter",$="mouse",(t==="pointerout"||t==="pointerover")&&(Ke=pS,me="onPointerLeave",re="onPointerEnter",$="pointer"),Bt=ue==null?le:An(ue),se=Pe==null?le:An(Pe),le=new Ke(me,$+"leave",ue,i,pe),le.target=Bt,le.relatedTarget=se,me=null,_n(pe)===ae&&(Ke=new Ke(re,$+"enter",Pe,i,pe),Ke.target=se,Ke.relatedTarget=Bt,me=Ke),Bt=me,ue&&Pe)t:{for(Ke=E9,re=ue,$=Pe,se=0,me=re;me;me=Ke(me))se++;me=0;for(var Ye=$;Ye;Ye=Ke(Ye))me++;for(;0<se-me;)re=Ke(re),se--;for(;0<me-se;)$=Ke($),me--;for(;se--;){if(re===$||$!==null&&re===$.alternate){Ke=re;break t}re=Ke(re),$=Ke($)}Ke=null}else Ke=null;ue!==null&&iE(ge,le,ue,Ke,!1),Pe!==null&&Bt!==null&&iE(ge,Bt,Pe,Ke,!0)}}e:{if(le=ae?An(ae):window,ue=le.nodeName&&le.nodeName.toLowerCase(),ue==="select"||ue==="input"&&le.type==="file")var Mt=xS;else if(SS(le))if(ES)Mt=kk;else{Mt=zk;var Ve=Dk}else ue=le.nodeName,!ue||ue.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?ae&&Zh(ae.elementType)&&(Mt=xS):Mt=Nk;if(Mt&&(Mt=Mt(t,ae))){wS(ge,Mt,i,pe);break e}Ve&&Ve(t,le,ae),t==="focusout"&&ae&&le.type==="number"&&ae.memoizedProps.value!=null&&Bh(le,"number",le.value)}switch(Ve=ae?An(ae):window,t){case"focusin":(SS(Ve)||Ve.contentEditable==="true")&&(Fs=Ve,op=ae,ul=null);break;case"focusout":ul=op=Fs=null;break;case"mousedown":ip=!0;break;case"contextmenu":case"mouseup":case"dragend":ip=!1,DS(ge,i,pe);break;case"selectionchange":if(Lk)break;case"keydown":case"keyup":DS(ge,i,pe)}var vt;if(ep)e:{switch(t){case"compositionstart":var Ct="onCompositionStart";break e;case"compositionend":Ct="onCompositionEnd";break e;case"compositionupdate":Ct="onCompositionUpdate";break e}Ct=void 0}else Hs?vS(t,i)&&(Ct="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ct="onCompositionStart");Ct&&(mS&&i.locale!=="ko"&&(Hs||Ct!=="onCompositionStart"?Ct==="onCompositionEnd"&&Hs&&(vt=uS()):(oi=pe,Xh="value"in oi?oi.value:oi.textContent,Hs=!0)),Ve=df(ae,Ct),0<Ve.length&&(Ct=new hS(Ct,t,null,i,pe),ge.push({event:Ct,listeners:Ve}),vt?Ct.data=vt:(vt=bS(i),vt!==null&&(Ct.data=vt)))),(vt=Rk?Ok(t,i):_k(t,i))&&(Ct=df(ae,"onBeforeInput"),0<Ct.length&&(Ve=new hS("onBeforeInput","beforeinput",null,i,pe),ge.push({event:Ve,listeners:Ct}),Ve.data=vt)),b9(ge,t,ae,i,pe)}rE(ge,r)})}function jl(t,r,i){return{instance:t,listener:r,currentTarget:i}}function df(t,r){for(var i=r+"Capture",a=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=nl(t,i),d!=null&&a.unshift(jl(t,d,m)),d=nl(t,r),d!=null&&a.push(jl(t,d,m))),t.tag===3)return a;t=t.return}return[]}function E9(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function iE(t,r,i,a,d){for(var m=r._reactName,w=[];i!==null&&i!==a;){var M=i,Z=M.alternate,ae=M.stateNode;if(M=M.tag,Z!==null&&Z===a)break;M!==5&&M!==26&&M!==27||ae===null||(Z=ae,d?(ae=nl(i,m),ae!=null&&w.unshift(jl(i,ae,Z))):d||(ae=nl(i,m),ae!=null&&w.push(jl(i,ae,Z)))),i=i.return}w.length!==0&&t.push({event:r,listeners:w})}var T9=/\r\n?/g,C9=/\u0000|\uFFFD/g;function sE(t){return(typeof t=="string"?t:""+t).replace(T9,`
10
- `).replace(C9,"")}function aE(t,r){return r=sE(r),sE(t)===r}function Ft(t,r,i,a,d,m){switch(i){case"children":typeof a=="string"?r==="body"||r==="textarea"&&a===""||Is(t,a):(typeof a=="number"||typeof a=="bigint")&&r!=="body"&&Is(t,""+a);break;case"className":mu(t,"class",a);break;case"tabIndex":mu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":mu(t,i,a);break;case"style":aS(t,a,m);break;case"data":if(r!=="object"){mu(t,"data",a);break}case"src":case"href":if(a===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(i);break}a=yu(""+a),t.setAttribute(i,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(r!=="input"&&Ft(t,r,"name",d.name,d,null),Ft(t,r,"formEncType",d.formEncType,d,null),Ft(t,r,"formMethod",d.formMethod,d,null),Ft(t,r,"formTarget",d.formTarget,d,null)):(Ft(t,r,"encType",d.encType,d,null),Ft(t,r,"method",d.method,d,null),Ft(t,r,"target",d.target,d,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(i);break}a=yu(""+a),t.setAttribute(i,a);break;case"onClick":a!=null&&(t.onclick=_o);break;case"onScroll":a!=null&&Et("scroll",t);break;case"onScrollEnd":a!=null&&Et("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(i=a.__html,i!=null){if(d.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}i=yu(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(i,""+a):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":a===!0?t.setAttribute(i,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(i,a):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(i,a):t.removeAttribute(i);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(i):t.setAttribute(i,a);break;case"popover":Et("beforetoggle",t),Et("toggle",t),pu(t,"popover",a);break;case"xlinkActuate":Oo(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Oo(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Oo(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Oo(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Oo(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Oo(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Oo(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Oo(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Oo(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":pu(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=J5.get(i)||i,pu(t,i,a))}}function Mm(t,r,i,a,d,m){switch(i){case"style":aS(t,a,m);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(i=a.__html,i!=null){if(d.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof a=="string"?Is(t,a):(typeof a=="number"||typeof a=="bigint")&&Is(t,""+a);break;case"onScroll":a!=null&&Et("scroll",t);break;case"onScrollEnd":a!=null&&Et("scrollend",t);break;case"onClick":a!=null&&(t.onclick=_o);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tl.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),r=i.slice(2,d?i.length-7:void 0),m=t[$t]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(r,m,d),typeof a=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,a,d);break e}i in t?t[i]=a:a===!0?t.setAttribute(i,""):pu(t,i,a)}}}function In(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",t),Et("load",t);var a=!1,d=!1,m;for(m in i)if(i.hasOwnProperty(m)){var w=i[m];if(w!=null)switch(m){case"src":a=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Ft(t,r,m,w,i,null)}}d&&Ft(t,r,"srcSet",i.srcSet,i,null),a&&Ft(t,r,"src",i.src,i,null);return;case"input":Et("invalid",t);var M=m=w=d=null,Z=null,ae=null;for(a in i)if(i.hasOwnProperty(a)){var pe=i[a];if(pe!=null)switch(a){case"name":d=pe;break;case"type":w=pe;break;case"checked":Z=pe;break;case"defaultChecked":ae=pe;break;case"value":m=pe;break;case"defaultValue":M=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(s(137,r));break;default:Ft(t,r,a,pe,i,null)}}rS(t,m,M,Z,ae,w,d,!1);return;case"select":Et("invalid",t),a=w=m=null;for(d in i)if(i.hasOwnProperty(d)&&(M=i[d],M!=null))switch(d){case"value":m=M;break;case"defaultValue":w=M;break;case"multiple":a=M;default:Ft(t,r,d,M,i,null)}r=m,i=w,t.multiple=!!a,r!=null?Ps(t,!!a,r,!1):i!=null&&Ps(t,!!a,i,!0);return;case"textarea":Et("invalid",t),m=d=a=null;for(w in i)if(i.hasOwnProperty(w)&&(M=i[w],M!=null))switch(w){case"value":a=M;break;case"defaultValue":d=M;break;case"children":m=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(91));break;default:Ft(t,r,w,M,i,null)}iS(t,a,d,m);return;case"option":for(Z in i)i.hasOwnProperty(Z)&&(a=i[Z],a!=null)&&(Z==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ft(t,r,Z,a,i,null));return;case"dialog":Et("beforetoggle",t),Et("toggle",t),Et("cancel",t),Et("close",t);break;case"iframe":case"object":Et("load",t);break;case"video":case"audio":for(a=0;a<kl.length;a++)Et(kl[a],t);break;case"image":Et("error",t),Et("load",t);break;case"details":Et("toggle",t);break;case"embed":case"source":case"link":Et("error",t),Et("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in i)if(i.hasOwnProperty(ae)&&(a=i[ae],a!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Ft(t,r,ae,a,i,null)}return;default:if(Zh(r)){for(pe in i)i.hasOwnProperty(pe)&&(a=i[pe],a!==void 0&&Mm(t,r,pe,a,i,void 0));return}}for(M in i)i.hasOwnProperty(M)&&(a=i[M],a!=null&&Ft(t,r,M,a,i,null))}function R9(t,r,i,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,w=null,M=null,Z=null,ae=null,pe=null;for(ue in i){var ge=i[ue];if(i.hasOwnProperty(ue)&&ge!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":Z=ge;default:a.hasOwnProperty(ue)||Ft(t,r,ue,null,a,ge)}}for(var le in a){var ue=a[le];if(ge=i[le],a.hasOwnProperty(le)&&(ue!=null||ge!=null))switch(le){case"type":m=ue;break;case"name":d=ue;break;case"checked":ae=ue;break;case"defaultChecked":pe=ue;break;case"value":w=ue;break;case"defaultValue":M=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(s(137,r));break;default:ue!==ge&&Ft(t,r,le,ue,a,ge)}}Fh(t,w,M,Z,ae,pe,m,d);return;case"select":ue=w=M=le=null;for(m in i)if(Z=i[m],i.hasOwnProperty(m)&&Z!=null)switch(m){case"value":break;case"multiple":ue=Z;default:a.hasOwnProperty(m)||Ft(t,r,m,null,a,Z)}for(d in a)if(m=a[d],Z=i[d],a.hasOwnProperty(d)&&(m!=null||Z!=null))switch(d){case"value":le=m;break;case"defaultValue":M=m;break;case"multiple":w=m;default:m!==Z&&Ft(t,r,d,m,a,Z)}r=M,i=w,a=ue,le!=null?Ps(t,!!i,le,!1):!!a!=!!i&&(r!=null?Ps(t,!!i,r,!0):Ps(t,!!i,i?[]:"",!1));return;case"textarea":ue=le=null;for(M in i)if(d=i[M],i.hasOwnProperty(M)&&d!=null&&!a.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Ft(t,r,M,null,a,d)}for(w in a)if(d=a[w],m=i[w],a.hasOwnProperty(w)&&(d!=null||m!=null))switch(w){case"value":le=d;break;case"defaultValue":ue=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==m&&Ft(t,r,w,d,a,m)}oS(t,le,ue);return;case"option":for(var Pe in i)le=i[Pe],i.hasOwnProperty(Pe)&&le!=null&&!a.hasOwnProperty(Pe)&&(Pe==="selected"?t.selected=!1:Ft(t,r,Pe,null,a,le));for(Z in a)le=a[Z],ue=i[Z],a.hasOwnProperty(Z)&&le!==ue&&(le!=null||ue!=null)&&(Z==="selected"?t.selected=le&&typeof le!="function"&&typeof le!="symbol":Ft(t,r,Z,le,a,ue));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ke in i)le=i[Ke],i.hasOwnProperty(Ke)&&le!=null&&!a.hasOwnProperty(Ke)&&Ft(t,r,Ke,null,a,le);for(ae in a)if(le=a[ae],ue=i[ae],a.hasOwnProperty(ae)&&le!==ue&&(le!=null||ue!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(s(137,r));break;default:Ft(t,r,ae,le,a,ue)}return;default:if(Zh(r)){for(var Bt in i)le=i[Bt],i.hasOwnProperty(Bt)&&le!==void 0&&!a.hasOwnProperty(Bt)&&Mm(t,r,Bt,void 0,a,le);for(pe in a)le=a[pe],ue=i[pe],!a.hasOwnProperty(pe)||le===ue||le===void 0&&ue===void 0||Mm(t,r,pe,le,a,ue);return}}for(var re in i)le=i[re],i.hasOwnProperty(re)&&le!=null&&!a.hasOwnProperty(re)&&Ft(t,r,re,null,a,le);for(ge in a)le=a[ge],ue=i[ge],!a.hasOwnProperty(ge)||le===ue||le==null&&ue==null||Ft(t,r,ge,le,a,ue)}function lE(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function O9(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,i=performance.getEntriesByType("resource"),a=0;a<i.length;a++){var d=i[a],m=d.transferSize,w=d.initiatorType,M=d.duration;if(m&&M&&lE(w)){for(w=0,M=d.responseEnd,a+=1;a<i.length;a++){var Z=i[a],ae=Z.startTime;if(ae>M)break;var pe=Z.transferSize,ge=Z.initiatorType;pe&&lE(ge)&&(Z=Z.responseEnd,w+=pe*(Z<M?1:(M-ae)/(Z-ae)))}if(--a,r+=8*(m+w)/(d.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Dm=null,zm=null;function hf(t){return t.nodeType===9?t:t.ownerDocument}function cE(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function uE(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Nm(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var km=null;function _9(){var t=window.event;return t&&t.type==="popstate"?t===km?!1:(km=t,!0):(km=null,!1)}var fE=typeof setTimeout=="function"?setTimeout:void 0,A9=typeof clearTimeout=="function"?clearTimeout:void 0,dE=typeof Promise=="function"?Promise:void 0,M9=typeof queueMicrotask=="function"?queueMicrotask:typeof dE<"u"?function(t){return dE.resolve(null).then(t).catch(D9)}:fE;function D9(t){setTimeout(function(){throw t})}function wi(t){return t==="head"}function hE(t,r){var i=r,a=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(a===0){t.removeChild(d),ma(r);return}a--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")a++;else if(i==="html")Ll(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Ll(i);for(var m=i.firstChild;m;){var w=m.nextSibling,M=m.nodeName;m[pr]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=w}}else i==="body"&&Ll(t.ownerDocument.body);i=d}while(i);ma(r)}function pE(t,r){var i=t;t=0;do{var a=i.nextSibling;if(i.nodeType===1?r?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(r?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),a&&a.nodeType===8)if(i=a.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=a}while(i)}function jm(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":jm(i),er(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function z9(t,r,i,a){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[pr])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=Ir(t.nextSibling),t===null)break}return null}function N9(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Ir(t.nextSibling),t===null))return null;return t}function mE(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=Ir(t.nextSibling),t===null))return null;return t}function Lm(t){return t.data==="$?"||t.data==="$~"}function Pm(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function k9(t,r){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||i.readyState!=="loading")r();else{var a=function(){r(),i.removeEventListener("DOMContentLoaded",a)};i.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ir(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var Im=null;function gE(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(r===0)return Ir(t.nextSibling);r--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||r++}t=t.nextSibling}return null}function yE(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(r===0)return t;r--}else i!=="/$"&&i!=="/&"||r++}t=t.previousSibling}return null}function vE(t,r,i){switch(r=hf(i),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Ll(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);er(t)}var Ur=new Map,bE=new Set;function pf(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Zo=O.d;O.d={f:j9,r:L9,D:P9,C:I9,L:U9,m:V9,X:F9,S:H9,M:B9};function j9(){var t=Zo.f(),r=of();return t||r}function L9(t){var r=tr(t);r!==null&&r.tag===5&&r.type==="form"?Lw(r):Zo.r(t)}var da=typeof document>"u"?null:document;function SE(t,r,i){var a=da;if(a&&typeof r=="string"&&r){var d=Dr(r);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),bE.has(d)||(bE.add(d),t={rel:t,crossOrigin:i,href:r},a.querySelector(d)===null&&(r=a.createElement("link"),In(r,"link",t),on(r),a.head.appendChild(r)))}}function P9(t){Zo.D(t),SE("dns-prefetch",t,null)}function I9(t,r){Zo.C(t,r),SE("preconnect",t,r)}function U9(t,r,i){Zo.L(t,r,i);var a=da;if(a&&t&&r){var d='link[rel="preload"][as="'+Dr(r)+'"]';r==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+Dr(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+Dr(i.imageSizes)+'"]')):d+='[href="'+Dr(t)+'"]';var m=d;switch(r){case"style":m=ha(t);break;case"script":m=pa(t)}Ur.has(m)||(t=y({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),Ur.set(m,t),a.querySelector(d)!==null||r==="style"&&a.querySelector(Pl(m))||r==="script"&&a.querySelector(Il(m))||(r=a.createElement("link"),In(r,"link",t),on(r),a.head.appendChild(r)))}}function V9(t,r){Zo.m(t,r);var i=da;if(i&&t){var a=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+Dr(a)+'"][href="'+Dr(t)+'"]',m=d;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=pa(t)}if(!Ur.has(m)&&(t=y({rel:"modulepreload",href:t},r),Ur.set(m,t),i.querySelector(d)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Il(m)))return}a=i.createElement("link"),In(a,"link",t),on(a),i.head.appendChild(a)}}}function H9(t,r,i){Zo.S(t,r,i);var a=da;if(a&&t){var d=mr(a).hoistableStyles,m=ha(t);r=r||"default";var w=d.get(m);if(!w){var M={loading:0,preload:null};if(w=a.querySelector(Pl(m)))M.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":r},i),(i=Ur.get(m))&&Um(t,i);var Z=w=a.createElement("link");on(Z),In(Z,"link",t),Z._p=new Promise(function(ae,pe){Z.onload=ae,Z.onerror=pe}),Z.addEventListener("load",function(){M.loading|=1}),Z.addEventListener("error",function(){M.loading|=2}),M.loading|=4,mf(w,r,a)}w={type:"stylesheet",instance:w,count:1,state:M},d.set(m,w)}}}function F9(t,r){Zo.X(t,r);var i=da;if(i&&t){var a=mr(i).hoistableScripts,d=pa(t),m=a.get(d);m||(m=i.querySelector(Il(d)),m||(t=y({src:t,async:!0},r),(r=Ur.get(d))&&Vm(t,r),m=i.createElement("script"),on(m),In(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},a.set(d,m))}}function B9(t,r){Zo.M(t,r);var i=da;if(i&&t){var a=mr(i).hoistableScripts,d=pa(t),m=a.get(d);m||(m=i.querySelector(Il(d)),m||(t=y({src:t,async:!0,type:"module"},r),(r=Ur.get(d))&&Vm(t,r),m=i.createElement("script"),on(m),In(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},a.set(d,m))}}function wE(t,r,i,a){var d=(d=ie.current)?pf(d):null;if(!d)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=ha(i.href),i=mr(d).hoistableStyles,a=i.get(r),a||(a={type:"style",instance:null,count:0,state:null},i.set(r,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=ha(i.href);var m=mr(d).hoistableStyles,w=m.get(t);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,w),(m=d.querySelector(Pl(t)))&&!m._p&&(w.instance=m,w.state.loading=5),Ur.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ur.set(t,i),m||Z9(d,t,i,w.state))),r&&a===null)throw Error(s(528,""));return w}if(r&&a!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=pa(i),i=mr(d).hoistableScripts,a=i.get(r),a||(a={type:"script",instance:null,count:0,state:null},i.set(r,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function ha(t){return'href="'+Dr(t)+'"'}function Pl(t){return'link[rel="stylesheet"]['+t+"]"}function xE(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function Z9(t,r,i,a){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?a.loading=1:(r=t.createElement("link"),a.preload=r,r.addEventListener("load",function(){return a.loading|=1}),r.addEventListener("error",function(){return a.loading|=2}),In(r,"link",i),on(r),t.head.appendChild(r))}function pa(t){return'[src="'+Dr(t)+'"]'}function Il(t){return"script[async]"+t}function EE(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var a=t.querySelector('style[data-href~="'+Dr(i.href)+'"]');if(a)return r.instance=a,on(a),a;var d=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),on(a),In(a,"style",d),mf(a,i.precedence,t),r.instance=a;case"stylesheet":d=ha(i.href);var m=t.querySelector(Pl(d));if(m)return r.state.loading|=4,r.instance=m,on(m),m;a=xE(i),(d=Ur.get(d))&&Um(a,d),m=(t.ownerDocument||t).createElement("link"),on(m);var w=m;return w._p=new Promise(function(M,Z){w.onload=M,w.onerror=Z}),In(m,"link",a),r.state.loading|=4,mf(m,i.precedence,t),r.instance=m;case"script":return m=pa(i.src),(d=t.querySelector(Il(m)))?(r.instance=d,on(d),d):(a=i,(d=Ur.get(m))&&(a=y({},i),Vm(a,d)),t=t.ownerDocument||t,d=t.createElement("script"),on(d),In(d,"link",a),t.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(a=r.instance,r.state.loading|=4,mf(a,i.precedence,t));return r.instance}function mf(t,r,i){for(var a=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=a.length?a[a.length-1]:null,m=d,w=0;w<a.length;w++){var M=a[w];if(M.dataset.precedence===r)m=M;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function Um(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Vm(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var gf=null;function TE(t,r,i){if(gf===null){var a=new Map,d=gf=new Map;d.set(i,a)}else d=gf,a=d.get(i),a||(a=new Map,d.set(i,a));if(a.has(t))return a;for(a.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var m=i[d];if(!(m[pr]||m[Qe]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var w=m.getAttribute(r)||"";w=t+w;var M=a.get(w);M?M.push(m):a.set(w,[m])}}return a}function CE(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function G9(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(t=r.disabled,typeof r.precedence=="string"&&t==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function RE(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Y9(t,r,i,a){if(i.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=ha(a.href),m=r.querySelector(Pl(d));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=yf.bind(t),r.then(t,t)),i.state.loading|=4,i.instance=m,on(m);return}m=r.ownerDocument||r,a=xE(a),(d=Ur.get(d))&&Um(a,d),m=m.createElement("link"),on(m);var w=m;w._p=new Promise(function(M,Z){w.onload=M,w.onerror=Z}),In(m,"link",a),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=yf.bind(t),r.addEventListener("load",i),r.addEventListener("error",i))}}var Hm=0;function $9(t,r){return t.stylesheets&&t.count===0&&bf(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var a=setTimeout(function(){if(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+r);0<t.imgBytes&&Hm===0&&(Hm=62500*O9());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>Hm?50:800)+r);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(d)}}:null}function yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vf=null;function bf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vf=new Map,r.forEach(q9,t),vf=null,yf.call(t))}function q9(t,r){if(!(r.state.loading&4)){var i=vf.get(t);if(i)var a=i.get(null);else{i=new Map,vf.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var w=d[m];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(i.set(w.dataset.precedence,w),a=w)}a&&i.set(null,a)}d=r.instance,w=d.getAttribute("data-precedence"),m=i.get(w)||a,m===a&&i.set(null,d),i.set(w,d),this.count++,a=yf.bind(this),d.addEventListener("load",a),d.addEventListener("error",a),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),r.state.loading|=4}}var Ul={$$typeof:j,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function X9(t,r,i,a,d,m,w,M,Z){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xe(0),this.hiddenUpdates=xe(null),this.identifierPrefix=a,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function OE(t,r,i,a,d,m,w,M,Z,ae,pe,ge){return t=new X9(t,r,i,w,Z,ae,pe,ge,M),r=1,m===!0&&(r|=24),m=yr(3,null,null,r),t.current=m,m.stateNode=t,r=Sp(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:a,isDehydrated:i,cache:r},Tp(m),t}function _E(t){return t?(t=Gs,t):Gs}function AE(t,r,i,a,d,m){d=_E(d),a.context===null?a.context=d:a.pendingContext=d,a=ui(r),a.payload={element:i},m=m===void 0?null:m,m!==null&&(a.callback=m),i=fi(t,a,r),i!==null&&(ar(i,t,r),yl(i,t,r))}function ME(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function Fm(t,r){ME(t,r),(t=t.alternate)&&ME(t,r)}function DE(t){if(t.tag===13||t.tag===31){var r=Wi(t,67108864);r!==null&&ar(r,t,67108864),Fm(t,67108864)}}function zE(t){if(t.tag===13||t.tag===31){var r=xr();r=Ge(r);var i=Wi(t,r);i!==null&&ar(i,t,r),Fm(t,r)}}var Sf=!0;function Q9(t,r,i,a){var d=_.T;_.T=null;var m=O.p;try{O.p=2,Bm(t,r,i,a)}finally{O.p=m,_.T=d}}function K9(t,r,i,a){var d=_.T;_.T=null;var m=O.p;try{O.p=8,Bm(t,r,i,a)}finally{O.p=m,_.T=d}}function Bm(t,r,i,a){if(Sf){var d=Zm(a);if(d===null)Am(t,r,a,wf,i),kE(t,a);else if(J9(d,t,r,i,a))a.stopPropagation();else if(kE(t,a),r&4&&-1<W9.indexOf(t)){for(;d!==null;){var m=tr(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var w=mt(m.pendingLanes);if(w!==0){var M=m;for(M.pendingLanes|=2,M.entangledLanes|=2;w;){var Z=1<<31-dt(w);M.entanglements[1]|=Z,w&=~Z}ho(m),(Nt&6)===0&&(nf=X()+500,Nl(0))}}break;case 31:case 13:M=Wi(m,2),M!==null&&ar(M,m,2),of(),Fm(m,2)}if(m=Zm(a),m===null&&Am(t,r,a,wf,i),m===d)break;d=m}d!==null&&a.stopPropagation()}else Am(t,r,a,null,i)}}function Zm(t){return t=Yh(t),Gm(t)}var wf=null;function Gm(t){if(wf=null,t=_n(t),t!==null){var r=c(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=u(r),t!==null)return t;t=null}else if(i===31){if(t=f(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return wf=t,null}function NE(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ve()){case we:return 2;case be:return 8;case Ne:case qe:return 32;case He:return 268435456;default:return 32}default:return 32}}var Ym=!1,xi=null,Ei=null,Ti=null,Vl=new Map,Hl=new Map,Ci=[],W9="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kE(t,r){switch(t){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Ei=null;break;case"mouseover":case"mouseout":Ti=null;break;case"pointerover":case"pointerout":Vl.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hl.delete(r.pointerId)}}function Fl(t,r,i,a,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:i,eventSystemFlags:a,nativeEvent:m,targetContainers:[d]},r!==null&&(r=tr(r),r!==null&&DE(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),t)}function J9(t,r,i,a,d){switch(r){case"focusin":return xi=Fl(xi,t,r,i,a,d),!0;case"dragenter":return Ei=Fl(Ei,t,r,i,a,d),!0;case"mouseover":return Ti=Fl(Ti,t,r,i,a,d),!0;case"pointerover":var m=d.pointerId;return Vl.set(m,Fl(Vl.get(m)||null,t,r,i,a,d)),!0;case"gotpointercapture":return m=d.pointerId,Hl.set(m,Fl(Hl.get(m)||null,t,r,i,a,d)),!0}return!1}function jE(t){var r=_n(t.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=u(i),r!==null){t.blockedOn=r,nt(t.priority,function(){zE(i)});return}}else if(r===31){if(r=f(i),r!==null){t.blockedOn=r,nt(t.priority,function(){zE(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xf(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=Zm(t.nativeEvent);if(i===null){i=t.nativeEvent;var a=new i.constructor(i.type,i);Gh=a,i.target.dispatchEvent(a),Gh=null}else return r=tr(i),r!==null&&DE(r),t.blockedOn=i,!1;r.shift()}return!0}function LE(t,r,i){xf(t)&&i.delete(r)}function ej(){Ym=!1,xi!==null&&xf(xi)&&(xi=null),Ei!==null&&xf(Ei)&&(Ei=null),Ti!==null&&xf(Ti)&&(Ti=null),Vl.forEach(LE),Hl.forEach(LE)}function Ef(t,r){t.blockedOn===r&&(t.blockedOn=null,Ym||(Ym=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ej)))}var Tf=null;function PE(t){Tf!==t&&(Tf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Tf===t&&(Tf=null);for(var r=0;r<t.length;r+=3){var i=t[r],a=t[r+1],d=t[r+2];if(typeof a!="function"){if(Gm(a||i)===null)continue;break}var m=tr(i);m!==null&&(t.splice(r,3),r-=3,Zp(m,{pending:!0,data:d,method:i.method,action:a},a,d))}}))}function ma(t){function r(Z){return Ef(Z,t)}xi!==null&&Ef(xi,t),Ei!==null&&Ef(Ei,t),Ti!==null&&Ef(Ti,t),Vl.forEach(r),Hl.forEach(r);for(var i=0;i<Ci.length;i++){var a=Ci[i];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Ci.length&&(i=Ci[0],i.blockedOn===null);)jE(i),i.blockedOn===null&&Ci.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(a=0;a<i.length;a+=3){var d=i[a],m=i[a+1],w=d[$t]||null;if(typeof m=="function")w||PE(i);else if(w){var M=null;if(m&&m.hasAttribute("formAction")){if(d=m,w=m[$t]||null)M=w.formAction;else if(Gm(d)!==null)continue}else M=w.action;typeof M=="function"?i[a+1]=M:(i.splice(a,3),a-=3),PE(i)}}}function IE(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(w){return d=w})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),a||setTimeout(i,20)}function i(){if(!a&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(i,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function $m(t){this._internalRoot=t}Cf.prototype.render=$m.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,a=xr();AE(i,a,t,r,null,null)},Cf.prototype.unmount=$m.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;AE(t.current,2,null,t,null,null),of(),r[xn]=null}};function Cf(t){this._internalRoot=t}Cf.prototype.unstable_scheduleHydration=function(t){if(t){var r=tt();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Ci.length&&r!==0&&r<Ci[i].priority;i++);Ci.splice(i,0,t),i===0&&jE(t)}};var UE=n.version;if(UE!=="19.2.4")throw Error(s(527,UE,"19.2.4"));O.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=h(r),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var tj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rf.isDisabled&&Rf.supportsFiber)try{et=Rf.inject(tj),Xe=Rf}catch{}}return va.createRoot=function(t,r){if(!l(t))throw Error(s(299));var i=!1,a="",d=Yw,m=$w,w=qw;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError)),r=OE(t,1,!1,null,null,i,a,null,d,m,w,IE),t[xn]=r.current,_m(t),new $m(r)},va.hydrateRoot=function(t,r,i){if(!l(t))throw Error(s(299));var a=!1,d="",m=Yw,w=$w,M=qw,Z=null;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(w=i.onCaughtError),i.onRecoverableError!==void 0&&(M=i.onRecoverableError),i.formState!==void 0&&(Z=i.formState)),r=OE(t,1,!0,r,i??null,a,d,Z,m,w,M,IE),r.context=_E(null),i=r.current,a=xr(),a=Ge(a),d=ui(a),d.callback=null,fi(i,d,a),i=a,r.current.lanes=i,je(r,i),ho(r),t[xn]=r.current,_m(t),new Cf(r)},va.version="19.2.4",va}var og;function $E(){if(og)return Af.exports;og=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Af.exports=YE(),Af.exports}var qE=$E();const XE=Of(qE);var Sa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zl=typeof window>"u"||"Deno"in globalThis;function Er(){}function QE(e,n){return typeof e=="function"?e(n):e}function KE(e){return typeof e=="number"&&e>=0&&e!==1/0}function WE(e,n){return Math.max(e+(n||0)-Date.now(),0)}function kf(e,n){return typeof e=="function"?e(n):e}function JE(e,n){return typeof e=="function"?e(n):e}function ig(e,n){const{type:o="all",exact:s,fetchStatus:l,predicate:c,queryKey:u,stale:f}=e;if(u){if(s){if(n.queryHash!==jf(u,n.options))return!1}else if(!wa(n.queryKey,u))return!1}if(o!=="all"){const p=n.isActive();if(o==="active"&&!p||o==="inactive"&&p)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||l&&l!==n.state.fetchStatus||c&&!c(n))}function sg(e,n){const{exact:o,status:s,predicate:l,mutationKey:c}=e;if(c){if(!n.options.mutationKey)return!1;if(o){if(Oi(n.options.mutationKey)!==Oi(c))return!1}else if(!wa(n.options.mutationKey,c))return!1}return!(s&&n.state.status!==s||l&&!l(n))}function jf(e,n){return(n?.queryKeyHashFn||Oi)(e)}function Oi(e){return JSON.stringify(e,(n,o)=>Lf(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o)}function wa(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(o=>wa(e[o],n[o])):!1}function ag(e,n){if(e===n)return e;const o=lg(e)&&lg(n);if(o||Lf(e)&&Lf(n)){const s=o?e:Object.keys(e),l=s.length,c=o?n:Object.keys(n),u=c.length,f=o?[]:{},p=new Set(s);let h=0;for(let g=0;g<u;g++){const y=o?g:c[g];(!o&&p.has(y)||o)&&e[y]===void 0&&n[y]===void 0?(f[y]=void 0,h++):(f[y]=ag(e[y],n[y]),f[y]===e[y]&&e[y]!==void 0&&h++)}return l===u&&h===l?e:f}return n}function e2(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(e[o]!==n[o])return!1;return!0}function lg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lf(e){if(!cg(e))return!1;const n=e.constructor;if(n===void 0)return!0;const o=n.prototype;return!(!cg(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function cg(e){return Object.prototype.toString.call(e)==="[object Object]"}function t2(e){return new Promise(n=>{setTimeout(n,e)})}function n2(e,n,o){return typeof o.structuralSharing=="function"?o.structuralSharing(e,n):o.structuralSharing!==!1?ag(e,n):n}function r2(e,n,o=0){const s=[...e,n];return o&&s.length>o?s.slice(1):s}function o2(e,n,o=0){const s=[n,...e];return o&&s.length>o?s.slice(0,-1):s}var Pf=Symbol();function ug(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Pf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function i2(e,n){return typeof e=="function"?e(...n):!!e}var s2=class extends Sa{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Zl&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},fg=new s2,a2=class extends Sa{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Zl&&window.addEventListener){const n=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#e}},Gl=new a2;function l2(){let e,n;const o=new Promise((l,c)=>{e=l,n=c});o.status="pending",o.catch(()=>{});function s(l){Object.assign(o,l),delete o.resolve,delete o.reject}return o.resolve=l=>{s({status:"fulfilled",value:l}),e(l)},o.reject=l=>{s({status:"rejected",reason:l}),n(l)},o}function c2(e){return Math.min(1e3*2**e,3e4)}function dg(e){return(e??"online")==="online"?Gl.isOnline():!0}var hg=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function If(e){return e instanceof hg}function pg(e){let n=!1,o=0,s=!1,l;const c=l2(),u=T=>{s||(b(new hg(T)),e.abort?.())},f=()=>{n=!0},p=()=>{n=!1},h=()=>fg.isFocused()&&(e.networkMode==="always"||Gl.isOnline())&&e.canRun(),g=()=>dg(e.networkMode)&&e.canRun(),y=T=>{s||(s=!0,e.onSuccess?.(T),l?.(),c.resolve(T))},b=T=>{s||(s=!0,e.onError?.(T),l?.(),c.reject(T))},S=()=>new Promise(T=>{l=C=>{(s||h())&&T(C)},e.onPause?.()}).then(()=>{l=void 0,s||e.onContinue?.()}),x=()=>{if(s)return;let T;const C=o===0?e.initialPromise:void 0;try{T=C??e.fn()}catch(E){T=Promise.reject(E)}Promise.resolve(T).then(y).catch(E=>{if(s)return;const L=e.retry??(Zl?0:3),j=e.retryDelay??c2,k=typeof j=="function"?j(o,E):j,R=L===!0||typeof L=="number"&&o<L||typeof L=="function"&&L(o,E);if(n||!R){b(E);return}o++,e.onFail?.(o,E),t2(k).then(()=>h()?void 0:S()).then(()=>{n?b(E):x()})})};return{promise:c,cancel:u,continue:()=>(l?.(),c),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?x():S().then(x),c)}}var u2=e=>setTimeout(e,0);function f2(){let e=[],n=0,o=f=>{f()},s=f=>{f()},l=u2;const c=f=>{n?e.push(f):l(()=>{o(f)})},u=()=>{const f=e;e=[],f.length&&l(()=>{s(()=>{f.forEach(p=>{o(p)})})})};return{batch:f=>{let p;n++;try{p=f()}finally{n--,n||u()}return p},batchCalls:f=>(...p)=>{c(()=>{f(...p)})},schedule:c,setNotifyFunction:f=>{o=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{l=f}}}var Dn=f2(),mg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),KE(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},d2=class extends mg{#e;#t;#n;#r;#o;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=p2(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const o=n2(this.state.data,e,this.options);return this.#i({data:o,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),o}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#o?.promise;return this.#o?.cancel(e),n?n.then(Er).catch(Er):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>JE(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>kf(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!WE(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#o&&(this.#a?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,n){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const o=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#a=!0,o.signal)})},l=()=>{const p=ug(this.options,n),g=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#a=!1,this.options.persister?this.options.persister(p,g,this):p(g)},u=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return s(p),p})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta});const f=p=>{If(p)&&p.silent||this.#i({type:"error",error:p}),If(p)||(this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this)),this.scheduleGc()};return this.#o=pg({initialPromise:n?.initialPromise,fn:u.fetchFn,abort:o.abort.bind(o),onSuccess:p=>{if(p===void 0){f(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(h){f(h);return}this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),this.scheduleGc()},onError:f,onFail:(p,h)=>{this.#i({type:"failed",failureCount:p,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}),this.#o.start()}#i(e){const n=o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...h2(o.data,this.options),fetchMeta:e.meta??null};case"success":return this.#t=void 0,{...o,data:e.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return If(s)&&s.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...o,error:s,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=n(this.state),Dn.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function h2(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dg(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p2(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,o=n!==void 0,s=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:o?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var m2=class extends Sa{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,o){const s=n.queryKey,l=n.queryHash??jf(s,n);let c=this.get(l);return c||(c=new d2({client:e,queryKey:s,queryHash:l,options:e.defaultQueryOptions(n),state:o,defaultOptions:e.getQueryDefaults(s)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Dn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(o=>ig(n,o))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(o=>ig(e,o)):n}notify(e){Dn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Dn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Dn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},g2=class extends mg{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||gg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#r({type:"continue"})};this.#n=pg({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const o=this.state.status==="pending",s=!this.#n.canStart();try{if(o)n();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#t.config.onMutate?.(e,this);const c=await this.options.onMutate?.(e);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:s})}const l=await this.#n.start();return await this.#t.config.onSuccess?.(l,e,this.state.context,this),await this.options.onSuccess?.(l,e,this.state.context),await this.#t.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,e,this.state.context),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#t.config.onError?.(l,e,this.state.context,this),await this.options.onError?.(l,e,this.state.context),await this.#t.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,e,this.state.context),l}finally{this.#r({type:"error",error:l})}}finally{this.#t.runNext(this)}}#r(e){const n=o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Dn.batch(()=>{this.#e.forEach(o=>{o.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function gg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var y2=class extends Sa{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,o){const s=new g2({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:o});return this.add(s),s}add(e){this.#e.add(e);const n=Yl(e);if(typeof n=="string"){const o=this.#t.get(n);o?o.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=Yl(e);if(typeof n=="string"){const o=this.#t.get(n);if(o)if(o.length>1){const s=o.indexOf(e);s!==-1&&o.splice(s,1)}else o[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Yl(e);if(typeof n=="string"){const s=this.#t.get(n)?.find(l=>l.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=Yl(e);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Dn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(o=>sg(n,o))}findAll(e={}){return this.getAll().filter(n=>sg(e,n))}notify(e){Dn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Dn.batch(()=>Promise.all(e.map(n=>n.continue().catch(Er))))}};function Yl(e){return e.options.scope?.id}function yg(e){return{onFetch:(n,o)=>{const s=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,c=n.state.data?.pages||[],u=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const h=async()=>{let g=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(n.signal.aborted?g=!0:n.signal.addEventListener("abort",()=>{g=!0}),n.signal)})},b=ug(n.options,n.fetchOptions),S=async(x,T,C)=>{if(g)return Promise.reject();if(T==null&&x.pages.length)return Promise.resolve(x);const L=(()=>{const N={client:n.client,queryKey:n.queryKey,pageParam:T,direction:C?"backward":"forward",meta:n.options.meta};return y(N),N})(),j=await b(L),{maxPages:k}=n.options,R=C?o2:r2;return{pages:R(x.pages,j,k),pageParams:R(x.pageParams,T,k)}};if(l&&c.length){const x=l==="backward",T=x?v2:vg,C={pages:c,pageParams:u},E=T(s,C);f=await S(C,E,x)}else{const x=e??c.length;do{const T=p===0?u[0]??s.initialPageParam:vg(s,f);if(p>0&&T==null)break;f=await S(f,T),p++}while(p<x)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},o):n.fetchFn=h}}}function vg(e,{pages:n,pageParams:o}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,o[s],o):void 0}function v2(e,{pages:n,pageParams:o}){return n.length>0?e.getPreviousPageParam?.(n[0],n,o[0],o):void 0}var b2=class{#e;#t;#n;#r;#o;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new m2,this.#t=e.mutationCache||new y2,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=fg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Gl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),o=this.#e.build(this,n),s=o.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(kf(n.staleTime,o))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:o})=>{const s=o.data;return[n,s]})}setQueryData(e,n,o){const s=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(s.queryHash)?.state.data,u=QE(n,c);if(u!==void 0)return this.#e.build(this,s).setData(u,{...o,manual:!0})}setQueriesData(e,n,o){return Dn.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,o)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Dn.batch(()=>{n.findAll(e).forEach(o=>{n.remove(o)})})}resetQueries(e,n){const o=this.#e;return Dn.batch(()=>(o.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const o={revert:!0,...n},s=Dn.batch(()=>this.#e.findAll(e).map(l=>l.cancel(o)));return Promise.all(s).then(Er).catch(Er)}invalidateQueries(e,n={}){return Dn.batch(()=>(this.#e.findAll(e).forEach(o=>{o.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const o={...n,cancelRefetch:n.cancelRefetch??!0},s=Dn.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,o);return o.throwOnError||(c=c.catch(Er)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Er)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const o=this.#e.build(this,n);return o.isStaleByTime(kf(n.staleTime,o))?o.fetch(n):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Er).catch(Er)}fetchInfiniteQuery(e){return e.behavior=yg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Er).catch(Er)}ensureInfiniteQueryData(e){return e.behavior=yg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(Oi(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],o={};return n.forEach(s=>{wa(e,s.queryKey)&&Object.assign(o,s.defaultOptions)}),o}setMutationDefaults(e,n){this.#o.set(Oi(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#o.values()],o={};return n.forEach(s=>{wa(e,s.mutationKey)&&Object.assign(o,s.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=jf(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Pf&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},S2=class extends Sa{#e;#t=void 0;#n;#r;constructor(n,o){super(),this.#e=n,this.setOptions(o),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const o=this.options;this.options=this.#e.defaultMutationOptions(n),e2(this.options,o)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),o?.mutationKey&&this.options.mutationKey&&Oi(o.mutationKey)!==Oi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#o(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#s()}mutate(n,o){return this.#r=o,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(n)}#o(){const n=this.#n?.state??gg();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){Dn.batch(()=>{if(this.#r&&this.hasListeners()){const o=this.#t.variables,s=this.#t.context;n?.type==="success"?(this.#r.onSuccess?.(n.data,o,s),this.#r.onSettled?.(n.data,null,o,s)):n?.type==="error"&&(this.#r.onError?.(n.error,o,s),this.#r.onSettled?.(void 0,n.error,o,s))}this.listeners.forEach(o=>{o(this.#t)})})}},v=ba();const _i=Of(v),bg=ga({__proto__:null,default:_i},[v]);var Sg=v.createContext(void 0),w2=e=>{const n=v.useContext(Sg);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},x2=({client:e,children:n})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(Sg.Provider,{value:e,children:n}));function Vr(e,n){const o=w2(),[s]=v.useState(()=>new S2(o,e));v.useEffect(()=>{s.setOptions(e)},[s,e]);const l=v.useSyncExternalStore(v.useCallback(u=>s.subscribe(Dn.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=v.useCallback((u,f)=>{s.mutate(u,f).catch(Er)},[s]);if(l.error&&i2(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}var Uf=function(){return Uf=Object.assign||function(n){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},Uf.apply(this,arguments)};function qr(e,n,o,s){function l(c){return c instanceof o?c:new o(function(u){u(c)})}return new(o||(o=Promise))(function(c,u){function f(g){try{h(s.next(g))}catch(y){u(y)}}function p(g){try{h(s.throw(g))}catch(y){u(y)}}function h(g){g.done?c(g.value):l(g.value).then(f,p)}h((s=s.apply(e,n||[])).next())})}function Xr(e,n){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,l,c,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=f(0),u.throw=f(1),u.return=f(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(h){return function(g){return p([h,g])}}function p(h){if(s)throw new TypeError("Generator is already executing.");for(;u&&(u=0,h[0]&&(o=0)),o;)try{if(s=1,l&&(c=h[0]&2?l.return:h[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,h[1])).done)return c;switch(l=0,c&&(h=[h[0]&2,c.value]),h[0]){case 0:case 1:c=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,l=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]<c[3])){o.label=h[1];break}if(h[0]===6&&o.label<c[1]){o.label=c[1],c=h;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(h);break}c[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(e,o)}catch(g){h=[6,g],l=0}finally{s=c=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function E2(e,n){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var s=o.call(e),l,c=[],u;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)c.push(l.value)}catch(f){u={error:f}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(u)throw u.error}}return c}function wg(e,n,o){if(o||arguments.length===2)for(var s=0,l=n.length,c;s<l;s++)(c||!(s in n))&&(c||(c=Array.prototype.slice.call(n,0,s)),c[s]=n[s]);return e.concat(c||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var xg="4.6.2";function $l(e,n){return new Promise(function(o){return setTimeout(o,e,n)})}function T2(){return new Promise(function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)})}function C2(e,n){n===void 0&&(n=1/0);var o=window.requestIdleCallback;return o?new Promise(function(s){return o.call(window,function(){return s()},{timeout:n})}):$l(Math.min(e,n))}function Eg(e){return!!e&&typeof e.then=="function"}function Tg(e,n){try{var o=e();Eg(o)?o.then(function(s){return n(!0,s)},function(s){return n(!1,s)}):n(!0,o)}catch(s){n(!1,s)}}function Cg(e,n,o){return o===void 0&&(o=16),qr(this,void 0,void 0,function(){var s,l,c,u;return Xr(this,function(f){switch(f.label){case 0:s=Array(e.length),l=Date.now(),c=0,f.label=1;case 1:return c<e.length?(s[c]=n(e[c],c),u=Date.now(),u>=l+o?(l=u,[4,T2()]):[3,3]):[3,4];case 2:f.sent(),f.label=3;case 3:return++c,[3,1];case 4:return[2,s]}})})}function xa(e){return e.then(void 0,function(){}),e}function R2(e,n){for(var o=0,s=e.length;o<s;++o)if(e[o]===n)return!0;return!1}function O2(e,n){return!R2(e,n)}function Vf(e){return parseInt(e)}function Hr(e){return parseFloat(e)}function po(e,n){return typeof e=="number"&&isNaN(e)?n:e}function Fn(e){return e.reduce(function(n,o){return n+(o?1:0)},0)}function Rg(e,n){if(n===void 0&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var o=1/n;return Math.round(e*o)/o}function _2(e){for(var n,o,s="Unexpected syntax '".concat(e,"'"),l=/^\s*([a-z-]*)(.*)$/i.exec(e),c=l[1]||void 0,u={},f=/([.:#][\w-]+|\[.+?\])/gi,p=function(b,S){u[b]=u[b]||[],u[b].push(S)};;){var h=f.exec(l[2]);if(!h)break;var g=h[0];switch(g[0]){case".":p("class",g.slice(1));break;case"#":p("id",g.slice(1));break;case"[":{var y=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(g);if(y)p(y[1],(o=(n=y[4])!==null&&n!==void 0?n:y[5])!==null&&o!==void 0?o:"");else throw new Error(s);break}default:throw new Error(s)}}return[c,u]}function A2(e){for(var n=new Uint8Array(e.length),o=0;o<e.length;o++){var s=e.charCodeAt(o);if(s>127)return new TextEncoder().encode(e);n[o]=s}return n}function Go(e,n){var o=e[0]>>>16,s=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=n[0]>>>16,f=n[0]&65535,p=n[1]>>>16,h=n[1]&65535,g=0,y=0,b=0,S=0;S+=c+h,b+=S>>>16,S&=65535,b+=l+p,y+=b>>>16,b&=65535,y+=s+f,g+=y>>>16,y&=65535,g+=o+u,g&=65535,e[0]=g<<16|y,e[1]=b<<16|S}function Tr(e,n){var o=e[0]>>>16,s=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=n[0]>>>16,f=n[0]&65535,p=n[1]>>>16,h=n[1]&65535,g=0,y=0,b=0,S=0;S+=c*h,b+=S>>>16,S&=65535,b+=l*h,y+=b>>>16,b&=65535,b+=c*p,y+=b>>>16,b&=65535,y+=s*h,g+=y>>>16,y&=65535,y+=l*p,g+=y>>>16,y&=65535,y+=c*f,g+=y>>>16,y&=65535,g+=o*h+s*p+l*f+c*u,g&=65535,e[0]=g<<16|y,e[1]=b<<16|S}function fs(e,n){var o=e[0];n%=64,n===32?(e[0]=e[1],e[1]=o):n<32?(e[0]=o<<n|e[1]>>>32-n,e[1]=e[1]<<n|o>>>32-n):(n-=32,e[0]=e[1]<<n|o>>>32-n,e[1]=o<<n|e[1]>>>32-n)}function lr(e,n){n%=64,n!==0&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function Wt(e,n){e[0]^=n[0],e[1]^=n[1]}var M2=[4283543511,3981806797],D2=[3301882366,444984403];function Og(e){var n=[0,e[0]>>>1];Wt(e,n),Tr(e,M2),n[1]=e[0]>>>1,Wt(e,n),Tr(e,D2),n[1]=e[0]>>>1,Wt(e,n)}var ql=[2277735313,289559509],Xl=[1291169091,658871167],_g=[0,5],z2=[0,1390208809],N2=[0,944331445];function k2(e,n){var o=A2(e);n=n||0;var s=[0,o.length],l=s[1]%16,c=s[1]-l,u=[0,n],f=[0,n],p=[0,0],h=[0,0],g;for(g=0;g<c;g=g+16)p[0]=o[g+4]|o[g+5]<<8|o[g+6]<<16|o[g+7]<<24,p[1]=o[g]|o[g+1]<<8|o[g+2]<<16|o[g+3]<<24,h[0]=o[g+12]|o[g+13]<<8|o[g+14]<<16|o[g+15]<<24,h[1]=o[g+8]|o[g+9]<<8|o[g+10]<<16|o[g+11]<<24,Tr(p,ql),fs(p,31),Tr(p,Xl),Wt(u,p),fs(u,27),Go(u,f),Tr(u,_g),Go(u,z2),Tr(h,Xl),fs(h,33),Tr(h,ql),Wt(f,h),fs(f,31),Go(f,u),Tr(f,_g),Go(f,N2);p[0]=0,p[1]=0,h[0]=0,h[1]=0;var y=[0,0];switch(l){case 15:y[1]=o[g+14],lr(y,48),Wt(h,y);case 14:y[1]=o[g+13],lr(y,40),Wt(h,y);case 13:y[1]=o[g+12],lr(y,32),Wt(h,y);case 12:y[1]=o[g+11],lr(y,24),Wt(h,y);case 11:y[1]=o[g+10],lr(y,16),Wt(h,y);case 10:y[1]=o[g+9],lr(y,8),Wt(h,y);case 9:y[1]=o[g+8],Wt(h,y),Tr(h,Xl),fs(h,33),Tr(h,ql),Wt(f,h);case 8:y[1]=o[g+7],lr(y,56),Wt(p,y);case 7:y[1]=o[g+6],lr(y,48),Wt(p,y);case 6:y[1]=o[g+5],lr(y,40),Wt(p,y);case 5:y[1]=o[g+4],lr(y,32),Wt(p,y);case 4:y[1]=o[g+3],lr(y,24),Wt(p,y);case 3:y[1]=o[g+2],lr(y,16),Wt(p,y);case 2:y[1]=o[g+1],lr(y,8),Wt(p,y);case 1:y[1]=o[g],Wt(p,y),Tr(p,ql),fs(p,31),Tr(p,Xl),Wt(u,p)}return Wt(u,s),Wt(f,s),Go(u,f),Go(f,u),Og(u),Og(f),Go(u,f),Go(f,u),("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)}function j2(e){var n;return Uf({name:e.name,message:e.message,stack:(n=e.stack)===null||n===void 0?void 0:n.split(`
11
- `)},e)}function L2(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function P2(e){return typeof e!="function"}function I2(e,n){var o=xa(new Promise(function(s){var l=Date.now();Tg(e.bind(null,n),function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var f=Date.now()-l;if(!c[0])return s(function(){return{error:c[1],duration:f}});var p=c[1];if(P2(p))return s(function(){return{value:p,duration:f}});s(function(){return new Promise(function(h){var g=Date.now();Tg(p,function(){for(var y=[],b=0;b<arguments.length;b++)y[b]=arguments[b];var S=f+Date.now()-g;if(!y[0])return h({error:y[1],duration:S});h({value:y[1],duration:S})})})})})}));return function(){return o.then(function(l){return l()})}}function U2(e,n,o,s){var l=Object.keys(e).filter(function(u){return O2(o,u)}),c=xa(Cg(l,function(u){return I2(e[u],n)},s));return function(){return qr(this,void 0,void 0,function(){var f,p,h,g,y;return Xr(this,function(b){switch(b.label){case 0:return[4,c];case 1:return f=b.sent(),[4,Cg(f,function(S){return xa(S())},s)];case 2:return p=b.sent(),[4,Promise.all(p)];case 3:for(h=b.sent(),g={},y=0;y<l.length;++y)g[l[y]]=h[y];return[2,g]}})})}}function Ag(){var e=window,n=navigator;return Fn(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function V2(){var e=window,n=navigator;return Fn(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!Ag()}function Ea(){var e=window,n=navigator;return Fn(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,(n.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Fr(){var e=window,n=navigator;return Fn(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,n.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Hf(){var e=window,n=e.HTMLElement,o=e.Document;return Fn(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),o&&"pointerLockElement"in o.prototype])>=4}function Ta(){var e=window;return L2(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Mg(){var e,n,o=window;return Fn(["buildID"in navigator,"MozAppearance"in((n=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&n!==void 0?n:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4}function H2(){var e=window;return Fn([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function F2(){var e=window,n=e.URLPattern;return Fn(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function B2(){var e=window;return Fn(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Ca(){var e=window,n=navigator,o=e.CSS,s=e.HTMLButtonElement;return Fn([!("getStorageUpdates"in n),s&&"popover"in s.prototype,"CSSCounterStyleRule"in e,o.supports("font-size-adjust: ex-height 0.5"),o.supports("text-transform: full-width")])>=4}function Z2(){if(navigator.platform==="iPad")return!0;var e=screen,n=e.width/e.height;return Fn(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}function G2(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Y2(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ff(){var e=Ea(),n=Mg(),o=window,s=navigator,l="connection";return e?Fn([!("SharedWorker"in o),s[l]&&"ontypechange"in s[l],!("sinkId"in new Audio)])>=2:n?Fn(["onorientationchange"in o,"orientation"in o,/android/i.test(s.appVersion)])>=2:!1}function $2(){var e=navigator,n=window,o=Audio.prototype,s=n.visualViewport;return Fn(["srLatency"in o,"srChannelCount"in o,"devicePosture"in e,s&&"segments"in s,"getTextInformation"in Image.prototype])>=3}function q2(){return K2()?-4:X2()}function X2(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(Q2())return-1;var o=4500,s=5e3,l=new n(1,s,44100),c=l.createOscillator();c.type="triangle",c.frequency.value=1e4;var u=l.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,c.connect(u),u.connect(l.destination),c.start(0);var f=W2(l),p=f[0],h=f[1],g=xa(p.then(function(y){return J2(y.getChannelData(0).subarray(o))},function(y){if(y.name==="timeout"||y.name==="suspended")return-3;throw y}));return function(){return h(),g}}function Q2(){return Fr()&&!Hf()&&!B2()}function K2(){return Fr()&&Ca()&&Ta()||Ea()&&$2()&&F2()}function W2(e){var n=3,o=500,s=500,l=5e3,c=function(){},u=new Promise(function(f,p){var h=!1,g=0,y=0;e.oncomplete=function(x){return f(x.renderedBuffer)};var b=function(){setTimeout(function(){return p(Dg("timeout"))},Math.min(s,y+l-Date.now()))},S=function(){try{var x=e.startRendering();switch(Eg(x)&&xa(x),e.state){case"running":y=Date.now(),h&&b();break;case"suspended":document.hidden||g++,h&&g>=n?p(Dg("suspended")):setTimeout(S,o);break}}catch(T){p(T)}};S(),c=function(){h||(h=!0,y>0&&b())}});return[u,c]}function J2(e){for(var n=0,o=0;o<e.length;++o)n+=Math.abs(e[o]);return n}function Dg(e){var n=new Error(e);return n.name=e,n}function zg(e,n,o){var s,l,c;return o===void 0&&(o=50),qr(this,void 0,void 0,function(){var u,f;return Xr(this,function(p){switch(p.label){case 0:u=document,p.label=1;case 1:return u.body?[3,3]:[4,$l(o)];case 2:return p.sent(),[3,1];case 3:f=u.createElement("iframe"),p.label=4;case 4:return p.trys.push([4,,10,11]),[4,new Promise(function(h,g){var y=!1,b=function(){y=!0,h()},S=function(C){y=!0,g(C)};f.onload=b,f.onerror=S;var x=f.style;x.setProperty("display","block","important"),x.position="absolute",x.top="0",x.left="0",x.visibility="hidden",n&&"srcdoc"in f?f.srcdoc=n:f.src="about:blank",u.body.appendChild(f);var T=function(){var C,E;y||(((E=(C=f.contentWindow)===null||C===void 0?void 0:C.document)===null||E===void 0?void 0:E.readyState)==="complete"?b():setTimeout(T,10))};T()})];case 5:p.sent(),p.label=6;case 6:return!((l=(s=f.contentWindow)===null||s===void 0?void 0:s.document)===null||l===void 0)&&l.body?[3,8]:[4,$l(o)];case 7:return p.sent(),[3,6];case 8:return[4,e(f,f.contentWindow)];case 9:return[2,p.sent()];case 10:return(c=f.parentNode)===null||c===void 0||c.removeChild(f),[7];case 11:return[2]}})})}function eT(e){for(var n=_2(e),o=n[0],s=n[1],l=document.createElement(o??"div"),c=0,u=Object.keys(s);c<u.length;c++){var f=u[c],p=s[f].join(" ");f==="style"?tT(l.style,p):l.setAttribute(f,p)}return l}function tT(e,n){for(var o=0,s=n.split(";");o<s.length;o++){var l=s[o],c=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(l);if(c){var u=c[1],f=c[2],p=c[4];e.setProperty(u,f,p||"")}}}function nT(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(o){if(o instanceof Error&&o.name==="SecurityError")return!0;throw o}e=n}}var rT="mmMwWLliI0O&1",oT="48px",ds=["monospace","sans-serif","serif"],Ng=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function iT(){var e=this;return zg(function(n,o){var s=o.document;return qr(e,void 0,void 0,function(){var l,c,u,f,p,h,g,y,b,S,x,T;return Xr(this,function(C){for(l=s.body,l.style.fontSize=oT,c=s.createElement("div"),c.style.setProperty("visibility","hidden","important"),u={},f={},p=function(E){var L=s.createElement("span"),j=L.style;return j.position="absolute",j.top="0",j.left="0",j.fontFamily=E,L.textContent=rT,c.appendChild(L),L},h=function(E,L){return p("'".concat(E,"',").concat(L))},g=function(){return ds.map(p)},y=function(){for(var E={},L=function(N){E[N]=ds.map(function(z){return h(N,z)})},j=0,k=Ng;j<k.length;j++){var R=k[j];L(R)}return E},b=function(E){return ds.some(function(L,j){return E[j].offsetWidth!==u[L]||E[j].offsetHeight!==f[L]})},S=g(),x=y(),l.appendChild(c),T=0;T<ds.length;T++)u[ds[T]]=S[T].offsetWidth,f[ds[T]]=S[T].offsetHeight;return[2,Ng.filter(function(E){return b(x[E])})]})})})}function sT(){var e=navigator.plugins;if(e){for(var n=[],o=0;o<e.length;++o){var s=e[o];if(s){for(var l=[],c=0;c<s.length;++c){var u=s[c];l.push({type:u.type,suffixes:u.suffixes})}n.push({name:s.name,description:s.description,mimeTypes:l})}}return n}}function aT(){return lT(mT())}function lT(e){var n,o=!1,s,l,c=cT(),u=c[0],f=c[1];return uT(u,f)?(o=fT(f),e?s=l="skipped":(n=dT(u,f),s=n[0],l=n[1])):s=l="unsupported",{winding:o,geometry:s,text:l}}function cT(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function uT(e,n){return!!(n&&e.toDataURL)}function fT(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function dT(e,n){hT(e,n);var o=Bf(e),s=Bf(e);if(o!==s)return["unstable","unstable"];pT(e,n);var l=Bf(e);return[l,o]}function hT(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var o="Cwm fjordbank gly ".concat("😃");n.fillText(o,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(o,4,45)}function pT(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var o=0,s=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];o<s.length;o++){var l=s[o],c=l[0],u=l[1],f=l[2];n.fillStyle=c,n.beginPath(),n.arc(u,f,40,0,Math.PI*2,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,Math.PI*2,!0),n.arc(60,60,20,0,Math.PI*2,!0),n.fill("evenodd")}function Bf(e){return e.toDataURL()}function mT(){return Fr()&&Ca()&&Ta()}function gT(){var e=navigator,n=0,o;e.maxTouchPoints!==void 0?n=Vf(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),o=!0}catch{o=!1}var s="ontouchstart"in window;return{maxTouchPoints:n,touchEvent:o,touchStart:s}}function yT(){return navigator.oscpu}function vT(){var e=navigator,n=[],o=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(o!==void 0&&n.push([o]),Array.isArray(e.languages))Ea()&&H2()||n.push(e.languages);else if(typeof e.languages=="string"){var s=e.languages;s&&n.push(s.split(","))}return n}function bT(){return window.screen.colorDepth}function ST(){return po(Hr(navigator.deviceMemory),void 0)}function wT(){if(!(Fr()&&Ca()&&Ta()))return xT()}function xT(){var e=screen,n=function(s){return po(Vf(s),null)},o=[n(e.width),n(e.height)];return o.sort().reverse(),o}var ET=2500,TT=10,Ql,Zf;function CT(){if(Zf===void 0){var e=function(){var n=Gf();Yf(n)?Zf=setTimeout(e,ET):(Ql=n,Zf=void 0)};e()}}function RT(){var e=this;return CT(),function(){return qr(e,void 0,void 0,function(){var n;return Xr(this,function(o){switch(o.label){case 0:return n=Gf(),Yf(n)?Ql?[2,wg([],Ql,!0)]:G2()?[4,Y2()]:[3,2]:[3,2];case 1:o.sent(),n=Gf(),o.label=2;case 2:return Yf(n)||(Ql=n),[2,n]}})})}}function OT(){var e=this;if(Fr()&&Ca()&&Ta())return function(){return Promise.resolve(void 0)};var n=RT();return function(){return qr(e,void 0,void 0,function(){var o,s;return Xr(this,function(l){switch(l.label){case 0:return[4,n()];case 1:return o=l.sent(),s=function(c){return c===null?null:Rg(c,TT)},[2,[s(o[0]),s(o[1]),s(o[2]),s(o[3])]]}})})}}function Gf(){var e=screen;return[po(Hr(e.availTop),null),po(Hr(e.width)-Hr(e.availWidth)-po(Hr(e.availLeft),0),null),po(Hr(e.height)-Hr(e.availHeight)-po(Hr(e.availTop),0),null),po(Hr(e.availLeft),null)]}function Yf(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function _T(){return po(Vf(navigator.hardwareConcurrency),void 0)}function AT(){var e,n=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(n){var o=new n().resolvedOptions().timeZone;if(o)return o}var s=-MT();return"UTC".concat(s>=0?"+":"").concat(s)}function MT(){var e=new Date().getFullYear();return Math.max(Hr(new Date(e,0,1).getTimezoneOffset()),Hr(new Date(e,6,1).getTimezoneOffset()))}function DT(){try{return!!window.sessionStorage}catch{return!0}}function zT(){try{return!!window.localStorage}catch{return!0}}function NT(){if(!(Ag()||V2()))try{return!!window.indexedDB}catch{return!0}}function kT(){return!!window.openDatabase}function jT(){return navigator.cpuClass}function LT(){var e=navigator.platform;return e==="MacIntel"&&Fr()&&!Hf()?Z2()?"iPad":"iPhone":e}function PT(){return navigator.vendor||""}function IT(){for(var e=[],n=0,o=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<o.length;n++){var s=o[n],l=window[s];l&&typeof l=="object"&&e.push(s)}return e.sort()}function UT(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}}function VT(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function HT(e){var n=e===void 0?{}:e,o=n.debug;return qr(this,void 0,void 0,function(){var s,l,c,u,f,p;return Xr(this,function(h){switch(h.label){case 0:return FT()?(s=VT(),l=Object.keys(s),c=(p=[]).concat.apply(p,l.map(function(g){return s[g]})),[4,BT(c)]):[2,void 0];case 1:return u=h.sent(),o&&ZT(s,u),f=l.filter(function(g){var y=s[g],b=Fn(y.map(function(S){return u[S]}));return b>y.length*.6}),f.sort(),[2,f]}})})}function FT(){return Fr()||Ff()}function BT(e){var n;return qr(this,void 0,void 0,function(){var o,s,l,c,p,u,f,p;return Xr(this,function(h){switch(h.label){case 0:for(o=document,s=o.createElement("div"),l=new Array(e.length),c={},kg(s),p=0;p<e.length;++p)u=eT(e[p]),u.tagName==="DIALOG"&&u.show(),f=o.createElement("div"),kg(f),f.appendChild(u),s.appendChild(f),l[p]=u;h.label=1;case 1:return o.body?[3,3]:[4,$l(50)];case 2:return h.sent(),[3,1];case 3:o.body.appendChild(s);try{for(p=0;p<e.length;++p)l[p].offsetParent||(c[e[p]]=!0)}finally{(n=s.parentNode)===null||n===void 0||n.removeChild(s)}return[2,c]}})})}function kg(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function ZT(e,n){for(var o="DOM blockers debug:\n```",s=0,l=Object.keys(e);s<l.length;s++){var c=l[s];o+=`
9
+ `+a.stack}}var Re=Object.prototype.hasOwnProperty,Ue=e.unstable_scheduleCallback,H=e.unstable_cancelCallback,oe=e.unstable_shouldYield,J=e.unstable_requestPaint,X=e.unstable_now,ve=e.unstable_getCurrentPriorityLevel,we=e.unstable_ImmediatePriority,be=e.unstable_UserBlockingPriority,Ne=e.unstable_NormalPriority,qe=e.unstable_LowPriority,He=e.unstable_IdlePriority,Be=e.log,$e=e.unstable_setDisableYieldValue,et=null,Xe=null;function We(t){if(typeof Be=="function"&&$e(t),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(et,t)}catch{}}var dt=Math.clz32?Math.clz32:Ze,jt=Math.log,rt=Math.LN2;function Ze(t){return t>>>=0,t===0?32:31-(jt(t)/rt|0)|0}var st=256,ut=262144,zt=4194304;function mt(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function wn(t,r,i){var a=t.pendingLanes;if(a===0)return 0;var d=0,m=t.suspendedLanes,w=t.pingedLanes;t=t.warmLanes;var M=a&134217727;return M!==0?(a=M&~m,a!==0?d=mt(a):(w&=M,w!==0?d=mt(w):i||(i=M&~t,i!==0&&(d=mt(i))))):(M=a&~m,M!==0?d=mt(M):w!==0?d=mt(w):i||(i=a&~t,i!==0&&(d=mt(i)))),d===0?0:r!==0&&r!==d&&(r&m)===0&&(m=d&-d,i=r&-r,m>=i||m===32&&(i&4194048)!==0)?r:d}function cn(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function Rt(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function he(){var t=zt;return zt<<=1,(zt&62914560)===0&&(zt=4194304),t}function xe(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function je(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function at(t,r,i,a,d,m){var w=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var M=t.entanglements,Z=t.expirationTimes,ae=t.hiddenUpdates;for(i=w&~i;0<i;){var pe=31-dt(i),ge=1<<pe;M[pe]=0,Z[pe]=-1;var le=ae[pe];if(le!==null)for(ae[pe]=null,pe=0;pe<le.length;pe++){var ue=le[pe];ue!==null&&(ue.lane&=-536870913)}i&=~ge}a!==0&&ft(t,a,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(w&~r))}function ft(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var a=31-dt(r);t.entangledLanes|=r,t.entanglements[a]=t.entanglements[a]|1073741824|i&261930}function ot(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var a=31-dt(i),d=1<<a;d&r|t[a]&r&&(t[a]|=r),i&=~d}}function _t(t,r){var i=r&-r;return i=(i&42)!==0?1:Ge(i),(i&(t.suspendedLanes|r))!==0?0:i}function Ge(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Fe(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function tt(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:LE(t.type))}function nt(t,r){var i=O.p;try{return O.p=t,r()}finally{O.p=i}}var ht=Math.random().toString(36).slice(2),Qe="__reactFiber$"+ht,$t="__reactProps$"+ht,xn="__reactContainer$"+ht,On="__reactEvents$"+ht,ao="__reactListeners$"+ht,Ar="__reactHandles$"+ht,lo="__reactResources$"+ht,pr="__reactMarker$"+ht;function er(t){delete t[Qe],delete t[$t],delete t[On],delete t[ao],delete t[Ar]}function _n(t){var r=t[Qe];if(r)return r;for(var i=t.parentNode;i;){if(r=i[xn]||i[Qe]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=SE(t);t!==null;){if(i=t[Qe])return i;t=SE(t)}return r}t=i,i=t.parentNode}return null}function tr(t){if(t=t[Qe]||t[xn]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function An(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(s(33))}function mr(t){var r=t[lo];return r||(r=t[lo]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function on(t){t[pr]=!0}var el=new Set,tl={};function Qi(t,r){Ls(t,r),Ls(t+"Capture",r)}function Ls(t,r){for(tl[t]=r,t=0;t<r.length;t++)el.add(r[t])}var K5=RegExp("^[: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]*$"),nS={},rS={};function W5(t){return Re.call(rS,t)?!0:Re.call(nS,t)?!1:K5.test(t)?rS[t]=!0:(nS[t]=!0,!1)}function mu(t,r,i){if(W5(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var a=r.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function gu(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function Oo(t,r,i,a){if(a===null)t.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+a)}}function Mr(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function oS(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function J5(t,r,i){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,m=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return d.call(this)},set:function(w){i=""+w,m.call(this,w)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(w){i=""+w},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Hh(t){if(!t._valueTracker){var r=oS(t)?"checked":"value";t._valueTracker=J5(t,r,""+t[r])}}function iS(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),a="";return t&&(a=oS(t)?t.checked?"true":"false":t.value),t=a,t!==i?(r.setValue(t),!0):!1}function yu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ek=/[\n"\\]/g;function Dr(t){return t.replace(ek,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Fh(t,r,i,a,d,m,w,M){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),r!=null?w==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Mr(r)):t.value!==""+Mr(r)&&(t.value=""+Mr(r)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),r!=null?Bh(t,w,Mr(r)):i!=null?Bh(t,w,Mr(i)):a!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?t.name=""+Mr(M):t.removeAttribute("name")}function sS(t,r,i,a,d,m,w,M){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){Hh(t);return}i=i!=null?""+Mr(i):"",r=r!=null?""+Mr(r):i,M||r===t.value||(t.value=r),t.defaultValue=r}a=a??d,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=M?t.checked:!!a,t.defaultChecked=!!a,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w),Hh(t)}function Bh(t,r,i){r==="number"&&yu(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ps(t,r,i,a){if(t=t.options,r){r={};for(var d=0;d<i.length;d++)r["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=r.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&a&&(t[i].defaultSelected=!0)}else{for(i=""+Mr(i),r=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,a&&(t[d].defaultSelected=!0);return}r!==null||t[d].disabled||(r=t[d])}r!==null&&(r.selected=!0)}}function aS(t,r,i){if(r!=null&&(r=""+Mr(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+Mr(i):""}function lS(t,r,i,a){if(r==null){if(a!=null){if(i!=null)throw Error(s(92));if(I(a)){if(1<a.length)throw Error(s(93));a=a[0]}i=a}i==null&&(i=""),r=i}i=Mr(r),t.defaultValue=i,a=t.textContent,a===i&&a!==""&&a!==null&&(t.value=a),Hh(t)}function Is(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var tk=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function cS(t,r,i){var a=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?a?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":a?t.setProperty(r,i):typeof i!="number"||i===0||tk.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function uS(t,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(t=t.style,i!=null){for(var a in i)!i.hasOwnProperty(a)||r!=null&&r.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var d in r)a=r[d],r.hasOwnProperty(d)&&i[d]!==a&&cS(t,d,a)}else for(var m in r)r.hasOwnProperty(m)&&cS(t,m,r[m])}function Zh(t){if(t.indexOf("-")===-1)return!1;switch(t){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 nk=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rk=/^[\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;function vu(t){return rk.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function _o(){}var Gh=null;function Yh(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Us=null,Vs=null;function fS(t){var r=tr(t);if(r&&(t=r.stateNode)){var i=t[$t]||null;e:switch(t=r.stateNode,r.type){case"input":if(Fh(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Dr(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var a=i[r];if(a!==t&&a.form===t.form){var d=a[$t]||null;if(!d)throw Error(s(90));Fh(a,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<i.length;r++)a=i[r],a.form===t.form&&iS(a)}break e;case"textarea":aS(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Ps(t,!!i.multiple,r,!1)}}}var $h=!1;function dS(t,r,i){if($h)return t(r,i);$h=!0;try{var a=t(r);return a}finally{if($h=!1,(Us!==null||Vs!==null)&&(sf(),Us&&(r=Us,t=Vs,Vs=Us=null,fS(r),t)))for(r=0;r<t.length;r++)fS(t[r])}}function nl(t,r){var i=t.stateNode;if(i===null)return null;var a=i[$t]||null;if(a===null)return null;i=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var Ao=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qh=!1;if(Ao)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){qh=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{qh=!1}var ii=null,Xh=null,bu=null;function hS(){if(bu)return bu;var t,r=Xh,i=r.length,a,d="value"in ii?ii.value:ii.textContent,m=d.length;for(t=0;t<i&&r[t]===d[t];t++);var w=i-t;for(a=1;a<=w&&r[i-a]===d[m-a];a++);return bu=d.slice(t,1<a?1-a:void 0)}function Su(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function wu(){return!0}function pS(){return!1}function nr(t){function r(i,a,d,m,w){this._reactName=i,this._targetInst=d,this.type=a,this.nativeEvent=m,this.target=w,this.currentTarget=null;for(var M in t)t.hasOwnProperty(M)&&(i=t[M],this[M]=i?i(m):m[M]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?wu:pS,this.isPropagationStopped=pS,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),r}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xu=nr(Ki),ol=y({},Ki,{view:0,detail:0}),ok=nr(ol),Qh,Kh,il,Eu=y({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==il&&(il&&t.type==="mousemove"?(Qh=t.screenX-il.screenX,Kh=t.screenY-il.screenY):Kh=Qh=0,il=t),Qh)},movementY:function(t){return"movementY"in t?t.movementY:Kh}}),mS=nr(Eu),ik=y({},Eu,{dataTransfer:0}),sk=nr(ik),ak=y({},ol,{relatedTarget:0}),Wh=nr(ak),lk=y({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),ck=nr(lk),uk=y({},Ki,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),fk=nr(uk),dk=y({},Ki,{data:0}),gS=nr(dk),hk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gk(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=mk[t])?!!r[t]:!1}function Jh(){return gk}var yk=y({},ol,{key:function(t){if(t.key){var r=hk[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Su(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?pk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jh,charCode:function(t){return t.type==="keypress"?Su(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Su(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),vk=nr(yk),bk=y({},Eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yS=nr(bk),Sk=y({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jh}),wk=nr(Sk),xk=y({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ek=nr(xk),Tk=y({},Eu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ck=nr(Tk),Rk=y({},Ki,{newState:0,oldState:0}),Ok=nr(Rk),_k=[9,13,27,32],ep=Ao&&"CompositionEvent"in window,sl=null;Ao&&"documentMode"in document&&(sl=document.documentMode);var Ak=Ao&&"TextEvent"in window&&!sl,vS=Ao&&(!ep||sl&&8<sl&&11>=sl),bS=" ",SS=!1;function wS(t,r){switch(t){case"keyup":return _k.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xS(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Hs=!1;function Mk(t,r){switch(t){case"compositionend":return xS(r);case"keypress":return r.which!==32?null:(SS=!0,bS);case"textInput":return t=r.data,t===bS&&SS?null:t;default:return null}}function Dk(t,r){if(Hs)return t==="compositionend"||!ep&&wS(t,r)?(t=hS(),bu=Xh=ii=null,Hs=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return vS&&r.locale!=="ko"?null:r.data;default:return null}}var zk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ES(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!zk[t.type]:r==="textarea"}function TS(t,r,i,a){Us?Vs?Vs.push(a):Vs=[a]:Us=a,r=hf(r,"onChange"),0<r.length&&(i=new xu("onChange","change",null,i,a),t.push({event:i,listeners:r}))}var al=null,ll=null;function Nk(t){sE(t,0)}function Tu(t){var r=An(t);if(iS(r))return t}function CS(t,r){if(t==="change")return r}var RS=!1;if(Ao){var tp;if(Ao){var np="oninput"in document;if(!np){var OS=document.createElement("div");OS.setAttribute("oninput","return;"),np=typeof OS.oninput=="function"}tp=np}else tp=!1;RS=tp&&(!document.documentMode||9<document.documentMode)}function _S(){al&&(al.detachEvent("onpropertychange",AS),ll=al=null)}function AS(t){if(t.propertyName==="value"&&Tu(ll)){var r=[];TS(r,ll,t,Yh(t)),dS(Nk,r)}}function kk(t,r,i){t==="focusin"?(_S(),al=r,ll=i,al.attachEvent("onpropertychange",AS)):t==="focusout"&&_S()}function jk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Tu(ll)}function Lk(t,r){if(t==="click")return Tu(r)}function Pk(t,r){if(t==="input"||t==="change")return Tu(r)}function Ik(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var gr=typeof Object.is=="function"?Object.is:Ik;function cl(t,r){if(gr(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),a=Object.keys(r);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var d=i[a];if(!Re.call(r,d)||!gr(t[d],r[d]))return!1}return!0}function MS(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function DS(t,r){var i=MS(t);t=0;for(var a;i;){if(i.nodeType===3){if(a=t+i.textContent.length,t<=r&&a>=r)return{node:i,offset:r-t};t=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=MS(i)}}function zS(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?zS(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function NS(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=yu(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=yu(t.document)}return r}function rp(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var Uk=Ao&&"documentMode"in document&&11>=document.documentMode,Fs=null,op=null,ul=null,ip=!1;function kS(t,r,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ip||Fs==null||Fs!==yu(a)||(a=Fs,"selectionStart"in a&&rp(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ul&&cl(ul,a)||(ul=a,a=hf(op,"onSelect"),0<a.length&&(r=new xu("onSelect","select",null,r,i),t.push({event:r,listeners:a}),r.target=Fs)))}function Wi(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Bs={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionrun:Wi("Transition","TransitionRun"),transitionstart:Wi("Transition","TransitionStart"),transitioncancel:Wi("Transition","TransitionCancel"),transitionend:Wi("Transition","TransitionEnd")},sp={},jS={};Ao&&(jS=document.createElement("div").style,"AnimationEvent"in window||(delete Bs.animationend.animation,delete Bs.animationiteration.animation,delete Bs.animationstart.animation),"TransitionEvent"in window||delete Bs.transitionend.transition);function Ji(t){if(sp[t])return sp[t];if(!Bs[t])return t;var r=Bs[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in jS)return sp[t]=r[i];return t}var LS=Ji("animationend"),PS=Ji("animationiteration"),IS=Ji("animationstart"),Vk=Ji("transitionrun"),Hk=Ji("transitionstart"),Fk=Ji("transitioncancel"),US=Ji("transitionend"),VS=new Map,ap="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ap.push("scrollEnd");function Gr(t,r){VS.set(t,r),Qi(r,[t])}var Cu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},zr=[],Zs=0,lp=0;function Ru(){for(var t=Zs,r=lp=Zs=0;r<t;){var i=zr[r];zr[r++]=null;var a=zr[r];zr[r++]=null;var d=zr[r];zr[r++]=null;var m=zr[r];if(zr[r++]=null,a!==null&&d!==null){var w=a.pending;w===null?d.next=d:(d.next=w.next,w.next=d),a.pending=d}m!==0&&HS(i,d,m)}}function Ou(t,r,i,a){zr[Zs++]=t,zr[Zs++]=r,zr[Zs++]=i,zr[Zs++]=a,lp|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function cp(t,r,i,a){return Ou(t,r,i,a),_u(t)}function es(t,r){return Ou(t,null,null,r),_u(t)}function HS(t,r,i){t.lanes|=i;var a=t.alternate;a!==null&&(a.lanes|=i);for(var d=!1,m=t.return;m!==null;)m.childLanes|=i,a=m.alternate,a!==null&&(a.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&r!==null&&(d=31-dt(i),t=m.hiddenUpdates,a=t[d],a===null?t[d]=[r]:a.push(r),r.lane=i|536870912),m):null}function _u(t){if(50<zl)throw zl=0,vm=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Gs={};function Bk(t,r,i,a){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yr(t,r,i,a){return new Bk(t,r,i,a)}function up(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mo(t,r){var i=t.alternate;return i===null?(i=yr(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function FS(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Au(t,r,i,a,d,m){var w=0;if(a=t,typeof t=="function")up(t)&&(w=1);else if(typeof t=="string")w=q9(t,i,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case K:return t=yr(31,i,r,d),t.elementType=K,t.lanes=m,t;case T:return ts(i.children,d,m,r);case C:w=8,d|=24;break;case E:return t=yr(12,i,r,d|2),t.elementType=E,t.lanes=m,t;case R:return t=yr(13,i,r,d),t.elementType=R,t.lanes=m,t;case N:return t=yr(19,i,r,d),t.elementType=N,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:w=10;break e;case L:w=9;break e;case k:w=11;break e;case z:w=14;break e;case P:w=16,a=null;break e}w=29,i=Error(s(130,t===null?"null":typeof t,"")),a=null}return r=yr(w,i,r,d),r.elementType=t,r.type=a,r.lanes=m,r}function ts(t,r,i,a){return t=yr(7,t,a,r),t.lanes=i,t}function fp(t,r,i){return t=yr(6,t,null,r),t.lanes=i,t}function BS(t){var r=yr(18,null,null,0);return r.stateNode=t,r}function dp(t,r,i){return r=yr(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var ZS=new WeakMap;function Nr(t,r){if(typeof t=="object"&&t!==null){var i=ZS.get(t);return i!==void 0?i:(r={value:t,source:r,stack:Le(r)},ZS.set(t,r),r)}return{value:t,source:r,stack:Le(r)}}var Ys=[],$s=0,Mu=null,fl=0,kr=[],jr=0,si=null,co=1,uo="";function Do(t,r){Ys[$s++]=fl,Ys[$s++]=Mu,Mu=t,fl=r}function GS(t,r,i){kr[jr++]=co,kr[jr++]=uo,kr[jr++]=si,si=t;var a=co;t=uo;var d=32-dt(a)-1;a&=~(1<<d),i+=1;var m=32-dt(r)+d;if(30<m){var w=d-d%5;m=(a&(1<<w)-1).toString(32),a>>=w,d-=w,co=1<<32-dt(r)+d|i<<d|a,uo=m+t}else co=1<<m|i<<d|a,uo=t}function hp(t){t.return!==null&&(Do(t,1),GS(t,1,0))}function pp(t){for(;t===Mu;)Mu=Ys[--$s],Ys[$s]=null,fl=Ys[--$s],Ys[$s]=null;for(;t===si;)si=kr[--jr],kr[jr]=null,uo=kr[--jr],kr[jr]=null,co=kr[--jr],kr[jr]=null}function YS(t,r){kr[jr++]=co,kr[jr++]=uo,kr[jr++]=si,co=r.id,uo=r.overflow,si=t}var Ln=null,Qt=null,Ot=!1,ai=null,Lr=!1,mp=Error(s(519));function li(t){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dl(Nr(r,t)),mp}function $S(t){var r=t.stateNode,i=t.type,a=t.memoizedProps;switch(r[Qe]=t,r[$t]=a,i){case"dialog":Et("cancel",r),Et("close",r);break;case"iframe":case"object":case"embed":Et("load",r);break;case"video":case"audio":for(i=0;i<kl.length;i++)Et(kl[i],r);break;case"source":Et("error",r);break;case"img":case"image":case"link":Et("error",r),Et("load",r);break;case"details":Et("toggle",r);break;case"input":Et("invalid",r),sS(r,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Et("invalid",r);break;case"textarea":Et("invalid",r),lS(r,a.value,a.defaultValue,a.children)}i=a.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||a.suppressHydrationWarning===!0||uE(r.textContent,i)?(a.popover!=null&&(Et("beforetoggle",r),Et("toggle",r)),a.onScroll!=null&&Et("scroll",r),a.onScrollEnd!=null&&Et("scrollend",r),a.onClick!=null&&(r.onclick=_o),r=!0):r=!1,r||li(t,!0)}function qS(t){for(Ln=t.return;Ln;)switch(Ln.tag){case 5:case 31:case 13:Lr=!1;return;case 27:case 3:Lr=!0;return;default:Ln=Ln.return}}function qs(t){if(t!==Ln)return!1;if(!Ot)return qS(t),Ot=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Nm(t.type,t.memoizedProps)),i=!i),i&&Qt&&li(t),qS(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Qt=bE(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Qt=bE(t)}else r===27?(r=Qt,xi(t.type)?(t=Im,Im=null,Qt=t):Qt=r):Qt=Ln?Ir(t.stateNode.nextSibling):null;return!0}function ns(){Qt=Ln=null,Ot=!1}function gp(){var t=ai;return t!==null&&(sr===null?sr=t:sr.push.apply(sr,t),ai=null),t}function dl(t){ai===null?ai=[t]:ai.push(t)}var yp=A(null),rs=null,zo=null;function ci(t,r,i){Y(yp,r._currentValue),r._currentValue=i}function No(t){t._currentValue=yp.current,V(yp)}function vp(t,r,i){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===i)break;t=t.return}}function bp(t,r,i,a){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var w=d.child;m=m.firstContext;e:for(;m!==null;){var M=m;m=d;for(var Z=0;Z<r.length;Z++)if(M.context===r[Z]){m.lanes|=i,M=m.alternate,M!==null&&(M.lanes|=i),vp(m.return,i,t),a||(w=null);break e}m=M.next}}else if(d.tag===18){if(w=d.return,w===null)throw Error(s(341));w.lanes|=i,m=w.alternate,m!==null&&(m.lanes|=i),vp(w,i,t),w=null}else w=d.child;if(w!==null)w.return=d;else for(w=d;w!==null;){if(w===t){w=null;break}if(d=w.sibling,d!==null){d.return=w.return,w=d;break}w=w.return}d=w}}function Xs(t,r,i,a){t=null;for(var d=r,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var w=d.alternate;if(w===null)throw Error(s(387));if(w=w.memoizedProps,w!==null){var M=d.type;gr(d.pendingProps.value,w.value)||(t!==null?t.push(M):t=[M])}}else if(d===ce.current){if(w=d.alternate,w===null)throw Error(s(387));w.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Ul):t=[Ul])}d=d.return}t!==null&&bp(r,t,i,a),r.flags|=262144}function Du(t){for(t=t.firstContext;t!==null;){if(!gr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function os(t){rs=t,zo=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Pn(t){return XS(rs,t)}function zu(t,r){return rs===null&&os(t),XS(t,r)}function XS(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},zo===null){if(t===null)throw Error(s(308));zo=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else zo=zo.next=r;return i}var Zk=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,a){t.push(a)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},Gk=e.unstable_scheduleCallback,Yk=e.unstable_NormalPriority,pn={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sp(){return{controller:new Zk,data:new Map,refCount:0}}function hl(t){t.refCount--,t.refCount===0&&Gk(Yk,function(){t.controller.abort()})}var pl=null,wp=0,Qs=0,Ks=null;function $k(t,r){if(pl===null){var i=pl=[];wp=0,Qs=Tm(),Ks={status:"pending",value:void 0,then:function(a){i.push(a)}}}return wp++,r.then(QS,QS),r}function QS(){if(--wp===0&&pl!==null){Ks!==null&&(Ks.status="fulfilled");var t=pl;pl=null,Qs=0,Ks=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function qk(t,r){var i=[],a={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){a.status="fulfilled",a.value=r;for(var d=0;d<i.length;d++)(0,i[d])(r)},function(d){for(a.status="rejected",a.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),a}var KS=_.S;_.S=function(t,r){kx=X(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&$k(t,r),KS!==null&&KS(t,r)};var is=A(null);function xp(){var t=is.current;return t!==null?t:Yt.pooledCache}function Nu(t,r){r===null?Y(is,is.current):Y(is,r.pool)}function WS(){var t=xp();return t===null?null:{parent:pn._currentValue,pool:t}}var Ws=Error(s(460)),Ep=Error(s(474)),ku=Error(s(542)),ju={then:function(){}};function JS(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ew(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(_o,_o),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,nw(t),t;default:if(typeof r.status=="string")r.then(_o,_o);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(a){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=a}},function(a){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=a}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,nw(t),t}throw as=r,Ws}}function ss(t){try{var r=t._init;return r(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(as=i,Ws):i}}var as=null;function tw(){if(as===null)throw Error(s(459));var t=as;return as=null,t}function nw(t){if(t===Ws||t===ku)throw Error(s(483))}var Js=null,ml=0;function Lu(t){var r=ml;return ml+=1,Js===null&&(Js=[]),ew(Js,t,r)}function gl(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Pu(t,r){throw r.$$typeof===b?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function rw(t){function r(re,$){if(t){var se=re.deletions;se===null?(re.deletions=[$],re.flags|=16):se.push($)}}function i(re,$){if(!t)return null;for(;$!==null;)r(re,$),$=$.sibling;return null}function a(re){for(var $=new Map;re!==null;)re.key!==null?$.set(re.key,re):$.set(re.index,re),re=re.sibling;return $}function d(re,$){return re=Mo(re,$),re.index=0,re.sibling=null,re}function m(re,$,se){return re.index=se,t?(se=re.alternate,se!==null?(se=se.index,se<$?(re.flags|=67108866,$):se):(re.flags|=67108866,$)):(re.flags|=1048576,$)}function w(re){return t&&re.alternate===null&&(re.flags|=67108866),re}function M(re,$,se,me){return $===null||$.tag!==6?($=fp(se,re.mode,me),$.return=re,$):($=d($,se),$.return=re,$)}function Z(re,$,se,me){var Ye=se.type;return Ye===T?pe(re,$,se.props.children,me,se.key):$!==null&&($.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===P&&ss(Ye)===$.type)?($=d($,se.props),gl($,se),$.return=re,$):($=Au(se.type,se.key,se.props,null,re.mode,me),gl($,se),$.return=re,$)}function ae(re,$,se,me){return $===null||$.tag!==4||$.stateNode.containerInfo!==se.containerInfo||$.stateNode.implementation!==se.implementation?($=dp(se,re.mode,me),$.return=re,$):($=d($,se.children||[]),$.return=re,$)}function pe(re,$,se,me,Ye){return $===null||$.tag!==7?($=ts(se,re.mode,me,Ye),$.return=re,$):($=d($,se),$.return=re,$)}function ge(re,$,se){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=fp(""+$,re.mode,se),$.return=re,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case S:return se=Au($.type,$.key,$.props,null,re.mode,se),gl(se,$),se.return=re,se;case x:return $=dp($,re.mode,se),$.return=re,$;case P:return $=ss($),ge(re,$,se)}if(I($)||te($))return $=ts($,re.mode,se,null),$.return=re,$;if(typeof $.then=="function")return ge(re,Lu($),se);if($.$$typeof===j)return ge(re,zu(re,$),se);Pu(re,$)}return null}function le(re,$,se,me){var Ye=$!==null?$.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return Ye!==null?null:M(re,$,""+se,me);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case S:return se.key===Ye?Z(re,$,se,me):null;case x:return se.key===Ye?ae(re,$,se,me):null;case P:return se=ss(se),le(re,$,se,me)}if(I(se)||te(se))return Ye!==null?null:pe(re,$,se,me,null);if(typeof se.then=="function")return le(re,$,Lu(se),me);if(se.$$typeof===j)return le(re,$,zu(re,se),me);Pu(re,se)}return null}function ue(re,$,se,me,Ye){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return re=re.get(se)||null,M($,re,""+me,Ye);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case S:return re=re.get(me.key===null?se:me.key)||null,Z($,re,me,Ye);case x:return re=re.get(me.key===null?se:me.key)||null,ae($,re,me,Ye);case P:return me=ss(me),ue(re,$,se,me,Ye)}if(I(me)||te(me))return re=re.get(se)||null,pe($,re,me,Ye,null);if(typeof me.then=="function")return ue(re,$,se,Lu(me),Ye);if(me.$$typeof===j)return ue(re,$,se,zu($,me),Ye);Pu($,me)}return null}function Pe(re,$,se,me){for(var Ye=null,Mt=null,Ve=$,vt=$=0,Ct=null;Ve!==null&&vt<se.length;vt++){Ve.index>vt?(Ct=Ve,Ve=null):Ct=Ve.sibling;var Dt=le(re,Ve,se[vt],me);if(Dt===null){Ve===null&&(Ve=Ct);break}t&&Ve&&Dt.alternate===null&&r(re,Ve),$=m(Dt,$,vt),Mt===null?Ye=Dt:Mt.sibling=Dt,Mt=Dt,Ve=Ct}if(vt===se.length)return i(re,Ve),Ot&&Do(re,vt),Ye;if(Ve===null){for(;vt<se.length;vt++)Ve=ge(re,se[vt],me),Ve!==null&&($=m(Ve,$,vt),Mt===null?Ye=Ve:Mt.sibling=Ve,Mt=Ve);return Ot&&Do(re,vt),Ye}for(Ve=a(Ve);vt<se.length;vt++)Ct=ue(Ve,re,vt,se[vt],me),Ct!==null&&(t&&Ct.alternate!==null&&Ve.delete(Ct.key===null?vt:Ct.key),$=m(Ct,$,vt),Mt===null?Ye=Ct:Mt.sibling=Ct,Mt=Ct);return t&&Ve.forEach(function(Oi){return r(re,Oi)}),Ot&&Do(re,vt),Ye}function Ke(re,$,se,me){if(se==null)throw Error(s(151));for(var Ye=null,Mt=null,Ve=$,vt=$=0,Ct=null,Dt=se.next();Ve!==null&&!Dt.done;vt++,Dt=se.next()){Ve.index>vt?(Ct=Ve,Ve=null):Ct=Ve.sibling;var Oi=le(re,Ve,Dt.value,me);if(Oi===null){Ve===null&&(Ve=Ct);break}t&&Ve&&Oi.alternate===null&&r(re,Ve),$=m(Oi,$,vt),Mt===null?Ye=Oi:Mt.sibling=Oi,Mt=Oi,Ve=Ct}if(Dt.done)return i(re,Ve),Ot&&Do(re,vt),Ye;if(Ve===null){for(;!Dt.done;vt++,Dt=se.next())Dt=ge(re,Dt.value,me),Dt!==null&&($=m(Dt,$,vt),Mt===null?Ye=Dt:Mt.sibling=Dt,Mt=Dt);return Ot&&Do(re,vt),Ye}for(Ve=a(Ve);!Dt.done;vt++,Dt=se.next())Dt=ue(Ve,re,vt,Dt.value,me),Dt!==null&&(t&&Dt.alternate!==null&&Ve.delete(Dt.key===null?vt:Dt.key),$=m(Dt,$,vt),Mt===null?Ye=Dt:Mt.sibling=Dt,Mt=Dt);return t&&Ve.forEach(function(ij){return r(re,ij)}),Ot&&Do(re,vt),Ye}function Bt(re,$,se,me){if(typeof se=="object"&&se!==null&&se.type===T&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case S:e:{for(var Ye=se.key;$!==null;){if($.key===Ye){if(Ye=se.type,Ye===T){if($.tag===7){i(re,$.sibling),me=d($,se.props.children),me.return=re,re=me;break e}}else if($.elementType===Ye||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===P&&ss(Ye)===$.type){i(re,$.sibling),me=d($,se.props),gl(me,se),me.return=re,re=me;break e}i(re,$);break}else r(re,$);$=$.sibling}se.type===T?(me=ts(se.props.children,re.mode,me,se.key),me.return=re,re=me):(me=Au(se.type,se.key,se.props,null,re.mode,me),gl(me,se),me.return=re,re=me)}return w(re);case x:e:{for(Ye=se.key;$!==null;){if($.key===Ye)if($.tag===4&&$.stateNode.containerInfo===se.containerInfo&&$.stateNode.implementation===se.implementation){i(re,$.sibling),me=d($,se.children||[]),me.return=re,re=me;break e}else{i(re,$);break}else r(re,$);$=$.sibling}me=dp(se,re.mode,me),me.return=re,re=me}return w(re);case P:return se=ss(se),Bt(re,$,se,me)}if(I(se))return Pe(re,$,se,me);if(te(se)){if(Ye=te(se),typeof Ye!="function")throw Error(s(150));return se=Ye.call(se),Ke(re,$,se,me)}if(typeof se.then=="function")return Bt(re,$,Lu(se),me);if(se.$$typeof===j)return Bt(re,$,zu(re,se),me);Pu(re,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,$!==null&&$.tag===6?(i(re,$.sibling),me=d($,se),me.return=re,re=me):(i(re,$),me=fp(se,re.mode,me),me.return=re,re=me),w(re)):i(re,$)}return function(re,$,se,me){try{ml=0;var Ye=Bt(re,$,se,me);return Js=null,Ye}catch(Ve){if(Ve===Ws||Ve===ku)throw Ve;var Mt=yr(29,Ve,null,re.mode);return Mt.lanes=me,Mt.return=re,Mt}}}var ls=rw(!0),ow=rw(!1),ui=!1;function Tp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cp(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function fi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function di(t,r,i){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Nt&2)!==0){var d=a.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),a.pending=r,r=_u(t),HS(t,null,i),r}return Ou(t,a,r,i),_u(t)}function yl(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var a=r.lanes;a&=t.pendingLanes,i|=a,r.lanes=i,ot(t,i)}}function Rp(t,r){var i=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var d=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var w={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?d=m=w:m=m.next=w,i=i.next}while(i!==null);m===null?d=m=r:m=m.next=r}else d=m=r;i={baseState:a.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:a.shared,callbacks:a.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var Op=!1;function vl(){if(Op){var t=Ks;if(t!==null)throw t}}function bl(t,r,i,a){Op=!1;var d=t.updateQueue;ui=!1;var m=d.firstBaseUpdate,w=d.lastBaseUpdate,M=d.shared.pending;if(M!==null){d.shared.pending=null;var Z=M,ae=Z.next;Z.next=null,w===null?m=ae:w.next=ae,w=Z;var pe=t.alternate;pe!==null&&(pe=pe.updateQueue,M=pe.lastBaseUpdate,M!==w&&(M===null?pe.firstBaseUpdate=ae:M.next=ae,pe.lastBaseUpdate=Z))}if(m!==null){var ge=d.baseState;w=0,pe=ae=Z=null,M=m;do{var le=M.lane&-536870913,ue=le!==M.lane;if(ue?(Tt&le)===le:(a&le)===le){le!==0&&le===Qs&&(Op=!0),pe!==null&&(pe=pe.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var Pe=t,Ke=M;le=r;var Bt=i;switch(Ke.tag){case 1:if(Pe=Ke.payload,typeof Pe=="function"){ge=Pe.call(Bt,ge,le);break e}ge=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=Ke.payload,le=typeof Pe=="function"?Pe.call(Bt,ge,le):Pe,le==null)break e;ge=y({},ge,le);break e;case 2:ui=!0}}le=M.callback,le!==null&&(t.flags|=64,ue&&(t.flags|=8192),ue=d.callbacks,ue===null?d.callbacks=[le]:ue.push(le))}else ue={lane:le,tag:M.tag,payload:M.payload,callback:M.callback,next:null},pe===null?(ae=pe=ue,Z=ge):pe=pe.next=ue,w|=le;if(M=M.next,M===null){if(M=d.shared.pending,M===null)break;ue=M,M=ue.next,ue.next=null,d.lastBaseUpdate=ue,d.shared.pending=null}}while(!0);pe===null&&(Z=ge),d.baseState=Z,d.firstBaseUpdate=ae,d.lastBaseUpdate=pe,m===null&&(d.shared.lanes=0),yi|=w,t.lanes=w,t.memoizedState=ge}}function iw(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function sw(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)iw(i[t],r)}var ea=A(null),Iu=A(0);function aw(t,r){t=Fo,Y(Iu,t),Y(ea,r),Fo=t|r.baseLanes}function _p(){Y(Iu,Fo),Y(ea,ea.current)}function Ap(){Fo=Iu.current,V(ea),V(Iu)}var vr=A(null),Pr=null;function hi(t){var r=t.alternate;Y(un,un.current&1),Y(vr,t),Pr===null&&(r===null||ea.current!==null||r.memoizedState!==null)&&(Pr=t)}function Mp(t){Y(un,un.current),Y(vr,t),Pr===null&&(Pr=t)}function lw(t){t.tag===22?(Y(un,un.current),Y(vr,t),Pr===null&&(Pr=t)):pi()}function pi(){Y(un,un.current),Y(vr,vr.current)}function br(t){V(vr),Pr===t&&(Pr=null),V(un)}var un=A(0);function Uu(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Lm(i)||Pm(i)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ko=0,gt=null,Ht=null,mn=null,Vu=!1,ta=!1,cs=!1,Hu=0,Sl=0,na=null,Xk=0;function sn(){throw Error(s(321))}function Dp(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!gr(t[i],r[i]))return!1;return!0}function zp(t,r,i,a,d,m){return ko=m,gt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,_.H=t===null||t.memoizedState===null?Gw:$p,cs=!1,m=i(a,d),cs=!1,ta&&(m=uw(r,i,a,d)),cw(t),m}function cw(t){_.H=El;var r=Ht!==null&&Ht.next!==null;if(ko=0,mn=Ht=gt=null,Vu=!1,Sl=0,na=null,r)throw Error(s(300));t===null||gn||(t=t.dependencies,t!==null&&Du(t)&&(gn=!0))}function uw(t,r,i,a){gt=t;var d=0;do{if(ta&&(na=null),Sl=0,ta=!1,25<=d)throw Error(s(301));if(d+=1,mn=Ht=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}_.H=Yw,m=r(i,a)}while(ta);return m}function Qk(){var t=_.H,r=t.useState()[0];return r=typeof r.then=="function"?wl(r):r,t=t.useState()[0],(Ht!==null?Ht.memoizedState:null)!==t&&(gt.flags|=1024),r}function Np(){var t=Hu!==0;return Hu=0,t}function kp(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function jp(t){if(Vu){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Vu=!1}ko=0,mn=Ht=gt=null,ta=!1,Sl=Hu=0,na=null}function Kn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?gt.memoizedState=mn=t:mn=mn.next=t,mn}function fn(){if(Ht===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=Ht.next;var r=mn===null?gt.memoizedState:mn.next;if(r!==null)mn=r,Ht=t;else{if(t===null)throw gt.alternate===null?Error(s(467)):Error(s(310));Ht=t,t={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},mn===null?gt.memoizedState=mn=t:mn=mn.next=t}return mn}function Fu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(t){var r=Sl;return Sl+=1,na===null&&(na=[]),t=ew(na,t,r),r=gt,(mn===null?r.memoizedState:mn.next)===null&&(r=r.alternate,_.H=r===null||r.memoizedState===null?Gw:$p),t}function Bu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return wl(t);if(t.$$typeof===j)return Pn(t)}throw Error(s(438,String(t)))}function Lp(t){var r=null,i=gt.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var a=gt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(r={data:a.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=Fu(),gt.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),a=0;a<t;a++)i[a]=G;return r.index++,i}function jo(t,r){return typeof r=="function"?r(t):r}function Zu(t){var r=fn();return Pp(r,Ht,t)}function Pp(t,r,i){var a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=i;var d=t.baseQueue,m=a.pending;if(m!==null){if(d!==null){var w=d.next;d.next=m.next,m.next=w}r.baseQueue=d=m,a.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{r=d.next;var M=w=null,Z=null,ae=r,pe=!1;do{var ge=ae.lane&-536870913;if(ge!==ae.lane?(Tt&ge)===ge:(ko&ge)===ge){var le=ae.revertLane;if(le===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),ge===Qs&&(pe=!0);else if((ko&le)===le){ae=ae.next,le===Qs&&(pe=!0);continue}else ge={lane:0,revertLane:ae.revertLane,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Z===null?(M=Z=ge,w=m):Z=Z.next=ge,gt.lanes|=le,yi|=le;ge=ae.action,cs&&i(m,ge),m=ae.hasEagerState?ae.eagerState:i(m,ge)}else le={lane:ge,revertLane:ae.revertLane,gesture:ae.gesture,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Z===null?(M=Z=le,w=m):Z=Z.next=le,gt.lanes|=ge,yi|=ge;ae=ae.next}while(ae!==null&&ae!==r);if(Z===null?w=m:Z.next=M,!gr(m,t.memoizedState)&&(gn=!0,pe&&(i=Ks,i!==null)))throw i;t.memoizedState=m,t.baseState=w,t.baseQueue=Z,a.lastRenderedState=m}return d===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Ip(t){var r=fn(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var a=i.dispatch,d=i.pending,m=r.memoizedState;if(d!==null){i.pending=null;var w=d=d.next;do m=t(m,w.action),w=w.next;while(w!==d);gr(m,r.memoizedState)||(gn=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),i.lastRenderedState=m}return[m,a]}function fw(t,r,i){var a=gt,d=fn(),m=Ot;if(m){if(i===void 0)throw Error(s(407));i=i()}else i=r();var w=!gr((Ht||d).memoizedState,i);if(w&&(d.memoizedState=i,gn=!0),d=d.queue,Hp(pw.bind(null,a,d,t),[t]),d.getSnapshot!==r||w||mn!==null&&mn.memoizedState.tag&1){if(a.flags|=2048,ra(9,{destroy:void 0},hw.bind(null,a,d,i,r),null),Yt===null)throw Error(s(349));m||(ko&127)!==0||dw(a,r,i)}return i}function dw(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=gt.updateQueue,r===null?(r=Fu(),gt.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function hw(t,r,i,a){r.value=i,r.getSnapshot=a,mw(r)&&gw(t)}function pw(t,r,i){return i(function(){mw(r)&&gw(t)})}function mw(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!gr(t,i)}catch{return!0}}function gw(t){var r=es(t,2);r!==null&&ar(r,t,2)}function Up(t){var r=Kn();if(typeof t=="function"){var i=t;if(t=i(),cs){We(!0);try{i()}finally{We(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:t},r}function yw(t,r,i,a){return t.baseState=i,Pp(t,Ht,typeof a=="function"?a:jo)}function Kk(t,r,i,a,d){if($u(t))throw Error(s(485));if(t=r.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){m.listeners.push(w)}};_.T!==null?i(!0):m.isTransition=!1,a(m),i=r.pending,i===null?(m.next=r.pending=m,vw(r,m)):(m.next=i.next,r.pending=i.next=m)}}function vw(t,r){var i=r.action,a=r.payload,d=t.state;if(r.isTransition){var m=_.T,w={};_.T=w;try{var M=i(d,a),Z=_.S;Z!==null&&Z(w,M),bw(t,r,M)}catch(ae){Vp(t,r,ae)}finally{m!==null&&w.types!==null&&(m.types=w.types),_.T=m}}else try{m=i(d,a),bw(t,r,m)}catch(ae){Vp(t,r,ae)}}function bw(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(a){Sw(t,r,a)},function(a){return Vp(t,r,a)}):Sw(t,r,i)}function Sw(t,r,i){r.status="fulfilled",r.value=i,ww(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,vw(t,i)))}function Vp(t,r,i){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do r.status="rejected",r.reason=i,ww(r),r=r.next;while(r!==a)}t.action=null}function ww(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function xw(t,r){return r}function Ew(t,r){if(Ot){var i=Yt.formState;if(i!==null){e:{var a=gt;if(Ot){if(Qt){t:{for(var d=Qt,m=Lr;d.nodeType!==8;){if(!m){d=null;break t}if(d=Ir(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){Qt=Ir(d.nextSibling),a=d.data==="F!";break e}}li(a)}a=!1}a&&(r=i[0])}}return i=Kn(),i.memoizedState=i.baseState=r,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xw,lastRenderedState:r},i.queue=a,i=Fw.bind(null,gt,a),a.dispatch=i,a=Up(!1),m=Yp.bind(null,gt,!1,a.queue),a=Kn(),d={state:r,dispatch:null,action:t,pending:null},a.queue=d,i=Kk.bind(null,gt,d,m,i),d.dispatch=i,a.memoizedState=t,[r,i,!1]}function Tw(t){var r=fn();return Cw(r,Ht,t)}function Cw(t,r,i){if(r=Pp(t,r,xw)[0],t=Zu(jo)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var a=wl(r)}catch(w){throw w===Ws?ku:w}else a=r;r=fn();var d=r.queue,m=d.dispatch;return i!==r.memoizedState&&(gt.flags|=2048,ra(9,{destroy:void 0},Wk.bind(null,d,i),null)),[a,m,t]}function Wk(t,r){t.action=r}function Rw(t){var r=fn(),i=Ht;if(i!==null)return Cw(r,i,t);fn(),r=r.memoizedState,i=fn();var a=i.queue.dispatch;return i.memoizedState=t,[r,a,!1]}function ra(t,r,i,a){return t={tag:t,create:i,deps:a,inst:r,next:null},r=gt.updateQueue,r===null&&(r=Fu(),gt.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(a=i.next,i.next=t,t.next=a,r.lastEffect=t),t}function Ow(){return fn().memoizedState}function Gu(t,r,i,a){var d=Kn();gt.flags|=t,d.memoizedState=ra(1|r,{destroy:void 0},i,a===void 0?null:a)}function Yu(t,r,i,a){var d=fn();a=a===void 0?null:a;var m=d.memoizedState.inst;Ht!==null&&a!==null&&Dp(a,Ht.memoizedState.deps)?d.memoizedState=ra(r,m,i,a):(gt.flags|=t,d.memoizedState=ra(1|r,m,i,a))}function _w(t,r){Gu(8390656,8,t,r)}function Hp(t,r){Yu(2048,8,t,r)}function Jk(t){gt.flags|=4;var r=gt.updateQueue;if(r===null)r=Fu(),gt.updateQueue=r,r.events=[t];else{var i=r.events;i===null?r.events=[t]:i.push(t)}}function Aw(t){var r=fn().memoizedState;return Jk({ref:r,nextImpl:t}),function(){if((Nt&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function Mw(t,r){return Yu(4,2,t,r)}function Dw(t,r){return Yu(4,4,t,r)}function zw(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Nw(t,r,i){i=i!=null?i.concat([t]):null,Yu(4,4,zw.bind(null,r,t),i)}function Fp(){}function kw(t,r){var i=fn();r=r===void 0?null:r;var a=i.memoizedState;return r!==null&&Dp(r,a[1])?a[0]:(i.memoizedState=[t,r],t)}function jw(t,r){var i=fn();r=r===void 0?null:r;var a=i.memoizedState;if(r!==null&&Dp(r,a[1]))return a[0];if(a=t(),cs){We(!0);try{t()}finally{We(!1)}}return i.memoizedState=[a,r],a}function Bp(t,r,i){return i===void 0||(ko&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=r:(t.memoizedState=i,t=Lx(),gt.lanes|=t,yi|=t,i)}function Lw(t,r,i,a){return gr(i,r)?i:ea.current!==null?(t=Bp(t,i,a),gr(t,r)||(gn=!0),t):(ko&42)===0||(ko&1073741824)!==0&&(Tt&261930)===0?(gn=!0,t.memoizedState=i):(t=Lx(),gt.lanes|=t,yi|=t,r)}function Pw(t,r,i,a,d){var m=O.p;O.p=m!==0&&8>m?m:8;var w=_.T,M={};_.T=M,Yp(t,!1,r,i);try{var Z=d(),ae=_.S;if(ae!==null&&ae(M,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var pe=qk(Z,a);xl(t,r,pe,xr(t))}else xl(t,r,a,xr(t))}catch(ge){xl(t,r,{then:function(){},status:"rejected",reason:ge},xr())}finally{O.p=m,w!==null&&M.types!==null&&(w.types=M.types),_.T=w}}function e9(){}function Zp(t,r,i,a){if(t.tag!==5)throw Error(s(476));var d=Iw(t).queue;Pw(t,d,r,U,i===null?e9:function(){return Uw(t),i(a)})}function Iw(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:U},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Uw(t){var r=Iw(t);r.next===null&&(r=t.alternate.memoizedState),xl(t,r.next.queue,{},xr())}function Gp(){return Pn(Ul)}function Vw(){return fn().memoizedState}function Hw(){return fn().memoizedState}function t9(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=xr();t=fi(i);var a=di(r,t,i);a!==null&&(ar(a,r,i),yl(a,r,i)),r={cache:Sp()},t.payload=r;return}r=r.return}}function n9(t,r,i){var a=xr();i={lane:a,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},$u(t)?Bw(r,i):(i=cp(t,r,i,a),i!==null&&(ar(i,t,a),Zw(i,r,a)))}function Fw(t,r,i){var a=xr();xl(t,r,i,a)}function xl(t,r,i,a){var d={lane:a,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if($u(t))Bw(r,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var w=r.lastRenderedState,M=m(w,i);if(d.hasEagerState=!0,d.eagerState=M,gr(M,w))return Ou(t,r,d,0),Yt===null&&Ru(),!1}catch{}if(i=cp(t,r,d,a),i!==null)return ar(i,t,a),Zw(i,r,a),!0}return!1}function Yp(t,r,i,a){if(a={lane:2,revertLane:Tm(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$u(t)){if(r)throw Error(s(479))}else r=cp(t,i,a,2),r!==null&&ar(r,t,2)}function $u(t){var r=t.alternate;return t===gt||r!==null&&r===gt}function Bw(t,r){ta=Vu=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Zw(t,r,i){if((i&4194048)!==0){var a=r.lanes;a&=t.pendingLanes,i|=a,r.lanes=i,ot(t,i)}}var El={readContext:Pn,use:Bu,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useLayoutEffect:sn,useInsertionEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useSyncExternalStore:sn,useId:sn,useHostTransitionStatus:sn,useFormState:sn,useActionState:sn,useOptimistic:sn,useMemoCache:sn,useCacheRefresh:sn};El.useEffectEvent=sn;var Gw={readContext:Pn,use:Bu,useCallback:function(t,r){return Kn().memoizedState=[t,r===void 0?null:r],t},useContext:Pn,useEffect:_w,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,Gu(4194308,4,zw.bind(null,r,t),i)},useLayoutEffect:function(t,r){return Gu(4194308,4,t,r)},useInsertionEffect:function(t,r){Gu(4,2,t,r)},useMemo:function(t,r){var i=Kn();r=r===void 0?null:r;var a=t();if(cs){We(!0);try{t()}finally{We(!1)}}return i.memoizedState=[a,r],a},useReducer:function(t,r,i){var a=Kn();if(i!==void 0){var d=i(r);if(cs){We(!0);try{i(r)}finally{We(!1)}}}else d=r;return a.memoizedState=a.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},a.queue=t,t=t.dispatch=n9.bind(null,gt,t),[a.memoizedState,t]},useRef:function(t){var r=Kn();return t={current:t},r.memoizedState=t},useState:function(t){t=Up(t);var r=t.queue,i=Fw.bind(null,gt,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:Fp,useDeferredValue:function(t,r){var i=Kn();return Bp(i,t,r)},useTransition:function(){var t=Up(!1);return t=Pw.bind(null,gt,t.queue,!0,!1),Kn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var a=gt,d=Kn();if(Ot){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),Yt===null)throw Error(s(349));(Tt&127)!==0||dw(a,r,i)}d.memoizedState=i;var m={value:i,getSnapshot:r};return d.queue=m,_w(pw.bind(null,a,m,t),[t]),a.flags|=2048,ra(9,{destroy:void 0},hw.bind(null,a,m,i,r),null),i},useId:function(){var t=Kn(),r=Yt.identifierPrefix;if(Ot){var i=uo,a=co;i=(a&~(1<<32-dt(a)-1)).toString(32)+i,r="_"+r+"R_"+i,i=Hu++,0<i&&(r+="H"+i.toString(32)),r+="_"}else i=Xk++,r="_"+r+"r_"+i.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:Gp,useFormState:Ew,useActionState:Ew,useOptimistic:function(t){var r=Kn();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Yp.bind(null,gt,!0,i),i.dispatch=r,[t,r]},useMemoCache:Lp,useCacheRefresh:function(){return Kn().memoizedState=t9.bind(null,gt)},useEffectEvent:function(t){var r=Kn(),i={impl:t};return r.memoizedState=i,function(){if((Nt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},$p={readContext:Pn,use:Bu,useCallback:kw,useContext:Pn,useEffect:Hp,useImperativeHandle:Nw,useInsertionEffect:Mw,useLayoutEffect:Dw,useMemo:jw,useReducer:Zu,useRef:Ow,useState:function(){return Zu(jo)},useDebugValue:Fp,useDeferredValue:function(t,r){var i=fn();return Lw(i,Ht.memoizedState,t,r)},useTransition:function(){var t=Zu(jo)[0],r=fn().memoizedState;return[typeof t=="boolean"?t:wl(t),r]},useSyncExternalStore:fw,useId:Vw,useHostTransitionStatus:Gp,useFormState:Tw,useActionState:Tw,useOptimistic:function(t,r){var i=fn();return yw(i,Ht,t,r)},useMemoCache:Lp,useCacheRefresh:Hw};$p.useEffectEvent=Aw;var Yw={readContext:Pn,use:Bu,useCallback:kw,useContext:Pn,useEffect:Hp,useImperativeHandle:Nw,useInsertionEffect:Mw,useLayoutEffect:Dw,useMemo:jw,useReducer:Ip,useRef:Ow,useState:function(){return Ip(jo)},useDebugValue:Fp,useDeferredValue:function(t,r){var i=fn();return Ht===null?Bp(i,t,r):Lw(i,Ht.memoizedState,t,r)},useTransition:function(){var t=Ip(jo)[0],r=fn().memoizedState;return[typeof t=="boolean"?t:wl(t),r]},useSyncExternalStore:fw,useId:Vw,useHostTransitionStatus:Gp,useFormState:Rw,useActionState:Rw,useOptimistic:function(t,r){var i=fn();return Ht!==null?yw(i,Ht,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Lp,useCacheRefresh:Hw};Yw.useEffectEvent=Aw;function qp(t,r,i,a){r=t.memoizedState,i=i(a,r),i=i==null?r:y({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Xp={enqueueSetState:function(t,r,i){t=t._reactInternals;var a=xr(),d=fi(a);d.payload=r,i!=null&&(d.callback=i),r=di(t,d,a),r!==null&&(ar(r,t,a),yl(r,t,a))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var a=xr(),d=fi(a);d.tag=1,d.payload=r,i!=null&&(d.callback=i),r=di(t,d,a),r!==null&&(ar(r,t,a),yl(r,t,a))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=xr(),a=fi(i);a.tag=2,r!=null&&(a.callback=r),r=di(t,a,i),r!==null&&(ar(r,t,i),yl(r,t,i))}};function $w(t,r,i,a,d,m,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,m,w):r.prototype&&r.prototype.isPureReactComponent?!cl(i,a)||!cl(d,m):!0}function qw(t,r,i,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,a),r.state!==t&&Xp.enqueueReplaceState(r,r.state,null)}function us(t,r){var i=r;if("ref"in r){i={};for(var a in r)a!=="ref"&&(i[a]=r[a])}if(t=t.defaultProps){i===r&&(i=y({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function Xw(t){Cu(t)}function Qw(t){console.error(t)}function Kw(t){Cu(t)}function qu(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(a){setTimeout(function(){throw a})}}function Ww(t,r,i){try{var a=t.onCaughtError;a(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Qp(t,r,i){return i=fi(i),i.tag=3,i.payload={element:null},i.callback=function(){qu(t,r)},i}function Jw(t){return t=fi(t),t.tag=3,t}function ex(t,r,i,a){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=a.value;t.payload=function(){return d(m)},t.callback=function(){Ww(r,i,a)}}var w=i.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){Ww(r,i,a),typeof d!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var M=a.stack;this.componentDidCatch(a.value,{componentStack:M!==null?M:""})})}function r9(t,r,i,a,d){if(i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(r=i.alternate,r!==null&&Xs(r,i,d,!0),i=vr.current,i!==null){switch(i.tag){case 31:case 13:return Pr===null?af():i.alternate===null&&an===0&&(an=3),i.flags&=-257,i.flags|=65536,i.lanes=d,a===ju?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([a]):r.add(a),wm(t,a,d)),!1;case 22:return i.flags|=65536,a===ju?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([a])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([a]):i.add(a)),wm(t,a,d)),!1}throw Error(s(435,i.tag))}return wm(t,a,d),af(),!1}if(Ot)return r=vr.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,a!==mp&&(t=Error(s(422),{cause:a}),dl(Nr(t,i)))):(a!==mp&&(r=Error(s(423),{cause:a}),dl(Nr(r,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,a=Nr(a,i),d=Qp(t.stateNode,a,d),Rp(t,d),an!==4&&(an=2)),!1;var m=Error(s(520),{cause:a});if(m=Nr(m,i),Dl===null?Dl=[m]:Dl.push(m),an!==4&&(an=2),r===null)return!0;a=Nr(a,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=Qp(i.stateNode,a,t),Rp(i,t),!1;case 1:if(r=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(vi===null||!vi.has(m))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Jw(d),ex(d,t,i,a),Rp(i,d),!1}i=i.return}while(i!==null);return!1}var Kp=Error(s(461)),gn=!1;function In(t,r,i,a){r.child=t===null?ow(r,null,i,a):ls(r,t.child,i,a)}function tx(t,r,i,a,d){i=i.render;var m=r.ref;if("ref"in a){var w={};for(var M in a)M!=="ref"&&(w[M]=a[M])}else w=a;return os(r),a=zp(t,r,i,w,m,d),M=Np(),t!==null&&!gn?(kp(t,r,d),Lo(t,r,d)):(Ot&&M&&hp(r),r.flags|=1,In(t,r,a,d),r.child)}function nx(t,r,i,a,d){if(t===null){var m=i.type;return typeof m=="function"&&!up(m)&&m.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=m,rx(t,r,m,a,d)):(t=Au(i.type,null,a,r,r.mode,d),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!im(t,d)){var w=m.memoizedProps;if(i=i.compare,i=i!==null?i:cl,i(w,a)&&t.ref===r.ref)return Lo(t,r,d)}return r.flags|=1,t=Mo(m,a),t.ref=r.ref,t.return=r,r.child=t}function rx(t,r,i,a,d){if(t!==null){var m=t.memoizedProps;if(cl(m,a)&&t.ref===r.ref)if(gn=!1,r.pendingProps=a=m,im(t,d))(t.flags&131072)!==0&&(gn=!0);else return r.lanes=t.lanes,Lo(t,r,d)}return Wp(t,r,i,a,d)}function ox(t,r,i,a){var d=a.children,m=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(a=r.child=t.child,d=0;a!==null;)d=d|a.lanes|a.childLanes,a=a.sibling;a=d&~m}else a=0,r.child=null;return ix(t,r,m,i,a)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Nu(r,m!==null?m.cachePool:null),m!==null?aw(r,m):_p(),lw(r);else return a=r.lanes=536870912,ix(t,r,m!==null?m.baseLanes|i:i,i,a)}else m!==null?(Nu(r,m.cachePool),aw(r,m),pi(),r.memoizedState=null):(t!==null&&Nu(r,null),_p(),pi());return In(t,r,d,i),r.child}function Tl(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function ix(t,r,i,a,d){var m=xp();return m=m===null?null:{parent:pn._currentValue,pool:m},r.memoizedState={baseLanes:i,cachePool:m},t!==null&&Nu(r,null),_p(),lw(r),t!==null&&Xs(t,r,a,!0),r.childLanes=d,null}function Xu(t,r){return r=Ku({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function sx(t,r,i){return ls(r,t.child,null,i),t=Xu(r,r.pendingProps),t.flags|=2,br(r),r.memoizedState=null,t}function o9(t,r,i){var a=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(Ot){if(a.mode==="hidden")return t=Xu(r,a),r.lanes=536870912,Tl(null,t);if(Mp(r),(t=Qt)?(t=vE(t,Lr),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:si!==null?{id:co,overflow:uo}:null,retryLane:536870912,hydrationErrors:null},i=BS(t),i.return=r,r.child=i,Ln=r,Qt=null)):t=null,t===null)throw li(r);return r.lanes=536870912,null}return Xu(r,a)}var m=t.memoizedState;if(m!==null){var w=m.dehydrated;if(Mp(r),d)if(r.flags&256)r.flags&=-257,r=sx(t,r,i);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(s(558));else if(gn||Xs(t,r,i,!1),d=(i&t.childLanes)!==0,gn||d){if(a=Yt,a!==null&&(w=_t(a,i),w!==0&&w!==m.retryLane))throw m.retryLane=w,es(t,w),ar(a,t,w),Kp;af(),r=sx(t,r,i)}else t=m.treeContext,Qt=Ir(w.nextSibling),Ln=r,Ot=!0,ai=null,Lr=!1,t!==null&&YS(r,t),r=Xu(r,a),r.flags|=4096;return r}return t=Mo(t.child,{mode:a.mode,children:a.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Qu(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function Wp(t,r,i,a,d){return os(r),i=zp(t,r,i,a,void 0,d),a=Np(),t!==null&&!gn?(kp(t,r,d),Lo(t,r,d)):(Ot&&a&&hp(r),r.flags|=1,In(t,r,i,d),r.child)}function ax(t,r,i,a,d,m){return os(r),r.updateQueue=null,i=uw(r,a,i,d),cw(t),a=Np(),t!==null&&!gn?(kp(t,r,m),Lo(t,r,m)):(Ot&&a&&hp(r),r.flags|=1,In(t,r,i,m),r.child)}function lx(t,r,i,a,d){if(os(r),r.stateNode===null){var m=Gs,w=i.contextType;typeof w=="object"&&w!==null&&(m=Pn(w)),m=new i(a,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Xp,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=a,m.state=r.memoizedState,m.refs={},Tp(r),w=i.contextType,m.context=typeof w=="object"&&w!==null?Pn(w):Gs,m.state=r.memoizedState,w=i.getDerivedStateFromProps,typeof w=="function"&&(qp(r,i,w,a),m.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(w=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),w!==m.state&&Xp.enqueueReplaceState(m,m.state,null),bl(r,a,m,d),vl(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),a=!0}else if(t===null){m=r.stateNode;var M=r.memoizedProps,Z=us(i,M);m.props=Z;var ae=m.context,pe=i.contextType;w=Gs,typeof pe=="object"&&pe!==null&&(w=Pn(pe));var ge=i.getDerivedStateFromProps;pe=typeof ge=="function"||typeof m.getSnapshotBeforeUpdate=="function",M=r.pendingProps!==M,pe||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(M||ae!==w)&&qw(r,m,a,w),ui=!1;var le=r.memoizedState;m.state=le,bl(r,a,m,d),vl(),ae=r.memoizedState,M||le!==ae||ui?(typeof ge=="function"&&(qp(r,i,ge,a),ae=r.memoizedState),(Z=ui||$w(r,i,Z,a,le,ae,w))?(pe||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=ae),m.props=a,m.state=ae,m.context=w,a=Z):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{m=r.stateNode,Cp(t,r),w=r.memoizedProps,pe=us(i,w),m.props=pe,ge=r.pendingProps,le=m.context,ae=i.contextType,Z=Gs,typeof ae=="object"&&ae!==null&&(Z=Pn(ae)),M=i.getDerivedStateFromProps,(ae=typeof M=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==ge||le!==Z)&&qw(r,m,a,Z),ui=!1,le=r.memoizedState,m.state=le,bl(r,a,m,d),vl();var ue=r.memoizedState;w!==ge||le!==ue||ui||t!==null&&t.dependencies!==null&&Du(t.dependencies)?(typeof M=="function"&&(qp(r,i,M,a),ue=r.memoizedState),(pe=ui||$w(r,i,pe,a,le,ue,Z)||t!==null&&t.dependencies!==null&&Du(t.dependencies))?(ae||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(a,ue,Z),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(a,ue,Z)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=ue),m.props=a,m.state=ue,m.context=Z,a=pe):(typeof m.componentDidUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&le===t.memoizedState||(r.flags|=1024),a=!1)}return m=a,Qu(t,r),a=(r.flags&128)!==0,m||a?(m=r.stateNode,i=a&&typeof i.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&a?(r.child=ls(r,t.child,null,d),r.child=ls(r,null,i,d)):In(t,r,i,d),r.memoizedState=m.state,t=r.child):t=Lo(t,r,d),t}function cx(t,r,i,a){return ns(),r.flags|=256,In(t,r,i,a),r.child}var Jp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function em(t){return{baseLanes:t,cachePool:WS()}}function tm(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=wr),t}function ux(t,r,i){var a=r.pendingProps,d=!1,m=(r.flags&128)!==0,w;if((w=m)||(w=t!==null&&t.memoizedState===null?!1:(un.current&2)!==0),w&&(d=!0,r.flags&=-129),w=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ot){if(d?hi(r):pi(),(t=Qt)?(t=vE(t,Lr),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:si!==null?{id:co,overflow:uo}:null,retryLane:536870912,hydrationErrors:null},i=BS(t),i.return=r,r.child=i,Ln=r,Qt=null)):t=null,t===null)throw li(r);return Pm(t)?r.lanes=32:r.lanes=536870912,null}var M=a.children;return a=a.fallback,d?(pi(),d=r.mode,M=Ku({mode:"hidden",children:M},d),a=ts(a,d,i,null),M.return=r,a.return=r,M.sibling=a,r.child=M,a=r.child,a.memoizedState=em(i),a.childLanes=tm(t,w,i),r.memoizedState=Jp,Tl(null,a)):(hi(r),nm(r,M))}var Z=t.memoizedState;if(Z!==null&&(M=Z.dehydrated,M!==null)){if(m)r.flags&256?(hi(r),r.flags&=-257,r=rm(t,r,i)):r.memoizedState!==null?(pi(),r.child=t.child,r.flags|=128,r=null):(pi(),M=a.fallback,d=r.mode,a=Ku({mode:"visible",children:a.children},d),M=ts(M,d,i,null),M.flags|=2,a.return=r,M.return=r,a.sibling=M,r.child=a,ls(r,t.child,null,i),a=r.child,a.memoizedState=em(i),a.childLanes=tm(t,w,i),r.memoizedState=Jp,r=Tl(null,a));else if(hi(r),Pm(M)){if(w=M.nextSibling&&M.nextSibling.dataset,w)var ae=w.dgst;w=ae,a=Error(s(419)),a.stack="",a.digest=w,dl({value:a,source:null,stack:null}),r=rm(t,r,i)}else if(gn||Xs(t,r,i,!1),w=(i&t.childLanes)!==0,gn||w){if(w=Yt,w!==null&&(a=_t(w,i),a!==0&&a!==Z.retryLane))throw Z.retryLane=a,es(t,a),ar(w,t,a),Kp;Lm(M)||af(),r=rm(t,r,i)}else Lm(M)?(r.flags|=192,r.child=t.child,r=null):(t=Z.treeContext,Qt=Ir(M.nextSibling),Ln=r,Ot=!0,ai=null,Lr=!1,t!==null&&YS(r,t),r=nm(r,a.children),r.flags|=4096);return r}return d?(pi(),M=a.fallback,d=r.mode,Z=t.child,ae=Z.sibling,a=Mo(Z,{mode:"hidden",children:a.children}),a.subtreeFlags=Z.subtreeFlags&65011712,ae!==null?M=Mo(ae,M):(M=ts(M,d,i,null),M.flags|=2),M.return=r,a.return=r,a.sibling=M,r.child=a,Tl(null,a),a=r.child,M=t.child.memoizedState,M===null?M=em(i):(d=M.cachePool,d!==null?(Z=pn._currentValue,d=d.parent!==Z?{parent:Z,pool:Z}:d):d=WS(),M={baseLanes:M.baseLanes|i,cachePool:d}),a.memoizedState=M,a.childLanes=tm(t,w,i),r.memoizedState=Jp,Tl(t.child,a)):(hi(r),i=t.child,t=i.sibling,i=Mo(i,{mode:"visible",children:a.children}),i.return=r,i.sibling=null,t!==null&&(w=r.deletions,w===null?(r.deletions=[t],r.flags|=16):w.push(t)),r.child=i,r.memoizedState=null,i)}function nm(t,r){return r=Ku({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Ku(t,r){return t=yr(22,t,null,r),t.lanes=0,t}function rm(t,r,i){return ls(r,t.child,null,i),t=nm(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function fx(t,r,i){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),vp(t.return,r,i)}function om(t,r,i,a,d,m){var w=t.memoizedState;w===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:d,treeForkCount:m}:(w.isBackwards=r,w.rendering=null,w.renderingStartTime=0,w.last=a,w.tail=i,w.tailMode=d,w.treeForkCount=m)}function dx(t,r,i){var a=r.pendingProps,d=a.revealOrder,m=a.tail;a=a.children;var w=un.current,M=(w&2)!==0;if(M?(w=w&1|2,r.flags|=128):w&=1,Y(un,w),In(t,r,a,i),a=Ot?fl:0,!M&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fx(t,i,r);else if(t.tag===19)fx(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(i=r.child,d=null;i!==null;)t=i.alternate,t!==null&&Uu(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=r.child,r.child=null):(d=i.sibling,i.sibling=null),om(r,!1,d,i,m,a);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=r.child,r.child=null;d!==null;){if(t=d.alternate,t!==null&&Uu(t)===null){r.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}om(r,!0,i,null,m,a);break;case"together":om(r,!1,null,null,void 0,a);break;default:r.memoizedState=null}return r.child}function Lo(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),yi|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(Xs(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(s(153));if(r.child!==null){for(t=r.child,i=Mo(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=Mo(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function im(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Du(t)))}function i9(t,r,i){switch(r.tag){case 3:de(r,r.stateNode.containerInfo),ci(r,pn,t.memoizedState.cache),ns();break;case 27:case 5:Ee(r);break;case 4:de(r,r.stateNode.containerInfo);break;case 10:ci(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Mp(r),null;break;case 13:var a=r.memoizedState;if(a!==null)return a.dehydrated!==null?(hi(r),r.flags|=128,null):(i&r.child.childLanes)!==0?ux(t,r,i):(hi(r),t=Lo(t,r,i),t!==null?t.sibling:null);hi(r);break;case 19:var d=(t.flags&128)!==0;if(a=(i&r.childLanes)!==0,a||(Xs(t,r,i,!1),a=(i&r.childLanes)!==0),d){if(a)return dx(t,r,i);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Y(un,un.current),a)break;return null;case 22:return r.lanes=0,ox(t,r,i,r.pendingProps);case 24:ci(r,pn,t.memoizedState.cache)}return Lo(t,r,i)}function hx(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)gn=!0;else{if(!im(t,i)&&(r.flags&128)===0)return gn=!1,i9(t,r,i);gn=(t.flags&131072)!==0}else gn=!1,Ot&&(r.flags&1048576)!==0&&GS(r,fl,r.index);switch(r.lanes=0,r.tag){case 16:e:{var a=r.pendingProps;if(t=ss(r.elementType),r.type=t,typeof t=="function")up(t)?(a=us(t,a),r.tag=1,r=lx(null,r,t,a,i)):(r.tag=0,r=Wp(null,r,t,a,i));else{if(t!=null){var d=t.$$typeof;if(d===k){r.tag=11,r=tx(null,r,t,a,i);break e}else if(d===z){r.tag=14,r=nx(null,r,t,a,i);break e}}throw r=F(t)||t,Error(s(306,r,""))}}return r;case 0:return Wp(t,r,r.type,r.pendingProps,i);case 1:return a=r.type,d=us(a,r.pendingProps),lx(t,r,a,d,i);case 3:e:{if(de(r,r.stateNode.containerInfo),t===null)throw Error(s(387));a=r.pendingProps;var m=r.memoizedState;d=m.element,Cp(t,r),bl(r,a,null,i);var w=r.memoizedState;if(a=w.cache,ci(r,pn,a),a!==m.cache&&bp(r,[pn],i,!0),vl(),a=w.element,m.isDehydrated)if(m={element:a,isDehydrated:!1,cache:w.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=cx(t,r,a,i);break e}else if(a!==d){d=Nr(Error(s(424)),r),dl(d),r=cx(t,r,a,i);break e}else for(t=r.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Qt=Ir(t.firstChild),Ln=r,Ot=!0,ai=null,Lr=!0,i=ow(r,null,a,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ns(),a===d){r=Lo(t,r,i);break e}In(t,r,a,i)}r=r.child}return r;case 26:return Qu(t,r),t===null?(i=TE(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ot||(i=r.type,t=r.pendingProps,a=pf(ie.current).createElement(i),a[Qe]=r,a[$t]=t,Un(a,i,t),on(a),r.stateNode=a):r.memoizedState=TE(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ee(r),t===null&&Ot&&(a=r.stateNode=wE(r.type,r.pendingProps,ie.current),Ln=r,Lr=!0,d=Qt,xi(r.type)?(Im=d,Qt=Ir(a.firstChild)):Qt=d),In(t,r,r.pendingProps.children,i),Qu(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ot&&((d=a=Qt)&&(a=j9(a,r.type,r.pendingProps,Lr),a!==null?(r.stateNode=a,Ln=r,Qt=Ir(a.firstChild),Lr=!1,d=!0):d=!1),d||li(r)),Ee(r),d=r.type,m=r.pendingProps,w=t!==null?t.memoizedProps:null,a=m.children,Nm(d,m)?a=null:w!==null&&Nm(d,w)&&(r.flags|=32),r.memoizedState!==null&&(d=zp(t,r,Qk,null,null,i),Ul._currentValue=d),Qu(t,r),In(t,r,a,i),r.child;case 6:return t===null&&Ot&&((t=i=Qt)&&(i=L9(i,r.pendingProps,Lr),i!==null?(r.stateNode=i,Ln=r,Qt=null,t=!0):t=!1),t||li(r)),null;case 13:return ux(t,r,i);case 4:return de(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=ls(r,null,a,i):In(t,r,a,i),r.child;case 11:return tx(t,r,r.type,r.pendingProps,i);case 7:return In(t,r,r.pendingProps,i),r.child;case 8:return In(t,r,r.pendingProps.children,i),r.child;case 12:return In(t,r,r.pendingProps.children,i),r.child;case 10:return a=r.pendingProps,ci(r,r.type,a.value),In(t,r,a.children,i),r.child;case 9:return d=r.type._context,a=r.pendingProps.children,os(r),d=Pn(d),a=a(d),r.flags|=1,In(t,r,a,i),r.child;case 14:return nx(t,r,r.type,r.pendingProps,i);case 15:return rx(t,r,r.type,r.pendingProps,i);case 19:return dx(t,r,i);case 31:return o9(t,r,i);case 22:return ox(t,r,i,r.pendingProps);case 24:return os(r),a=Pn(pn),t===null?(d=xp(),d===null&&(d=Yt,m=Sp(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=i),d=m),r.memoizedState={parent:a,cache:d},Tp(r),ci(r,pn,d)):((t.lanes&i)!==0&&(Cp(t,r),bl(r,null,null,i),vl()),d=t.memoizedState,m=r.memoizedState,d.parent!==a?(d={parent:a,cache:a},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),ci(r,pn,a)):(a=m.cache,ci(r,pn,a),a!==d.cache&&bp(r,[pn],i,!0))),In(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Po(t){t.flags|=4}function sm(t,r,i,a,d){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(Vx())t.flags|=8192;else throw as=ju,Ep}else t.flags&=-16777217}function px(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!AE(r))if(Vx())t.flags|=8192;else throw as=ju,Ep}function Wu(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?he():536870912,t.lanes|=r,aa|=r)}function Cl(t,r){if(!Ot)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Kt(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,a=0;if(r)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,a|=d.subtreeFlags&65011712,a|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,a|=d.subtreeFlags,a|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=a,t.childLanes=i,r}function s9(t,r,i){var a=r.pendingProps;switch(pp(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(r),null;case 1:return Kt(r),null;case 3:return i=r.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),No(pn),ye(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(qs(r)?Po(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,gp())),Kt(r),null;case 26:var d=r.type,m=r.memoizedState;return t===null?(Po(r),m!==null?(Kt(r),px(r,m)):(Kt(r),sm(r,d,null,a,i))):m?m!==t.memoizedState?(Po(r),Kt(r),px(r,m)):(Kt(r),r.flags&=-16777217):(t=t.memoizedProps,t!==a&&Po(r),Kt(r),sm(r,d,t,a,i)),null;case 27:if(Me(r),i=ie.current,d=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==a&&Po(r);else{if(!a){if(r.stateNode===null)throw Error(s(166));return Kt(r),null}t=W.current,qs(r)?$S(r):(t=wE(d,a,i),r.stateNode=t,Po(r))}return Kt(r),null;case 5:if(Me(r),d=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==a&&Po(r);else{if(!a){if(r.stateNode===null)throw Error(s(166));return Kt(r),null}if(m=W.current,qs(r))$S(r);else{var w=pf(ie.current);switch(m){case 1:m=w.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=w.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=w.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof a.is=="string"?w.createElement("select",{is:a.is}):w.createElement("select"),a.multiple?m.multiple=!0:a.size&&(m.size=a.size);break;default:m=typeof a.is=="string"?w.createElement(d,{is:a.is}):w.createElement(d)}}m[Qe]=r,m[$t]=a;e:for(w=r.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===r)break e;for(;w.sibling===null;){if(w.return===null||w.return===r)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}r.stateNode=m;e:switch(Un(m,d,a),d){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Po(r)}}return Kt(r),sm(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,i),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==a&&Po(r);else{if(typeof a!="string"&&r.stateNode===null)throw Error(s(166));if(t=ie.current,qs(r)){if(t=r.stateNode,i=r.memoizedProps,a=null,d=Ln,d!==null)switch(d.tag){case 27:case 5:a=d.memoizedProps}t[Qe]=r,t=!!(t.nodeValue===i||a!==null&&a.suppressHydrationWarning===!0||uE(t.nodeValue,i)),t||li(r,!0)}else t=pf(t).createTextNode(a),t[Qe]=r,r.stateNode=t}return Kt(r),null;case 31:if(i=r.memoizedState,t===null||t.memoizedState!==null){if(a=qs(r),i!==null){if(t===null){if(!a)throw Error(s(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[Qe]=r}else ns(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Kt(r),t=!1}else i=gp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return r.flags&256?(br(r),r):(br(r),null);if((r.flags&128)!==0)throw Error(s(558))}return Kt(r),null;case 13:if(a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=qs(r),a!==null&&a.dehydrated!==null){if(t===null){if(!d)throw Error(s(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[Qe]=r}else ns(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Kt(r),d=!1}else d=gp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(br(r),r):(br(r),null)}return br(r),(r.flags&128)!==0?(r.lanes=i,r):(i=a!==null,t=t!==null&&t.memoizedState!==null,i&&(a=r.child,d=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(d=a.alternate.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==d&&(a.flags|=2048)),i!==t&&i&&(r.child.flags|=8192),Wu(r,r.updateQueue),Kt(r),null);case 4:return ye(),t===null&&_m(r.stateNode.containerInfo),Kt(r),null;case 10:return No(r.type),Kt(r),null;case 19:if(V(un),a=r.memoizedState,a===null)return Kt(r),null;if(d=(r.flags&128)!==0,m=a.rendering,m===null)if(d)Cl(a,!1);else{if(an!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=Uu(t),m!==null){for(r.flags|=128,Cl(a,!1),t=m.updateQueue,r.updateQueue=t,Wu(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)FS(i,t),i=i.sibling;return Y(un,un.current&1|2),Ot&&Do(r,a.treeForkCount),r.child}t=t.sibling}a.tail!==null&&X()>rf&&(r.flags|=128,d=!0,Cl(a,!1),r.lanes=4194304)}else{if(!d)if(t=Uu(m),t!==null){if(r.flags|=128,d=!0,t=t.updateQueue,r.updateQueue=t,Wu(r,t),Cl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!m.alternate&&!Ot)return Kt(r),null}else 2*X()-a.renderingStartTime>rf&&i!==536870912&&(r.flags|=128,d=!0,Cl(a,!1),r.lanes=4194304);a.isBackwards?(m.sibling=r.child,r.child=m):(t=a.last,t!==null?t.sibling=m:r.child=m,a.last=m)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=X(),t.sibling=null,i=un.current,Y(un,d?i&1|2:i&1),Ot&&Do(r,a.treeForkCount),t):(Kt(r),null);case 22:case 23:return br(r),Ap(),a=r.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(r.flags|=8192):a&&(r.flags|=8192),a?(i&536870912)!==0&&(r.flags&128)===0&&(Kt(r),r.subtreeFlags&6&&(r.flags|=8192)):Kt(r),i=r.updateQueue,i!==null&&Wu(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048),t!==null&&V(is),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),No(pn),Kt(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function a9(t,r){switch(pp(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return No(pn),ye(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Me(r),null;case 31:if(r.memoizedState!==null){if(br(r),r.alternate===null)throw Error(s(340));ns()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(br(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));ns()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return V(un),null;case 4:return ye(),null;case 10:return No(r.type),null;case 22:case 23:return br(r),Ap(),t!==null&&V(is),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return No(pn),null;case 25:return null;default:return null}}function mx(t,r){switch(pp(r),r.tag){case 3:No(pn),ye();break;case 26:case 27:case 5:Me(r);break;case 4:ye();break;case 31:r.memoizedState!==null&&br(r);break;case 13:br(r);break;case 19:V(un);break;case 10:No(r.type);break;case 22:case 23:br(r),Ap(),t!==null&&V(is);break;case 24:No(pn)}}function Rl(t,r){try{var i=r.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var d=a.next;i=d;do{if((i.tag&t)===t){a=void 0;var m=i.create,w=i.inst;a=m(),w.destroy=a}i=i.next}while(i!==d)}}catch(M){It(r,r.return,M)}}function mi(t,r,i){try{var a=r.updateQueue,d=a!==null?a.lastEffect:null;if(d!==null){var m=d.next;a=m;do{if((a.tag&t)===t){var w=a.inst,M=w.destroy;if(M!==void 0){w.destroy=void 0,d=r;var Z=i,ae=M;try{ae()}catch(pe){It(d,Z,pe)}}}a=a.next}while(a!==m)}}catch(pe){It(r,r.return,pe)}}function gx(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{sw(r,i)}catch(a){It(t,t.return,a)}}}function yx(t,r,i){i.props=us(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(a){It(t,r,a)}}function Ol(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof i=="function"?t.refCleanup=i(a):i.current=a}}catch(d){It(t,r,d)}}function fo(t,r){var i=t.ref,a=t.refCleanup;if(i!==null)if(typeof a=="function")try{a()}catch(d){It(t,r,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){It(t,r,d)}else i.current=null}function vx(t){var r=t.type,i=t.memoizedProps,a=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&a.focus();break e;case"img":i.src?a.src=i.src:i.srcSet&&(a.srcset=i.srcSet)}}catch(d){It(t,t.return,d)}}function am(t,r,i){try{var a=t.stateNode;A9(a,t.type,i,r),a[$t]=r}catch(d){It(t,t.return,d)}}function bx(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&xi(t.type)||t.tag===4}function lm(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||bx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&xi(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function cm(t,r,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=_o));else if(a!==4&&(a===27&&xi(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(cm(t,r,i),t=t.sibling;t!==null;)cm(t,r,i),t=t.sibling}function Ju(t,r,i){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(a!==4&&(a===27&&xi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Ju(t,r,i),t=t.sibling;t!==null;)Ju(t,r,i),t=t.sibling}function Sx(t){var r=t.stateNode,i=t.memoizedProps;try{for(var a=t.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);Un(r,a,i),r[Qe]=t,r[$t]=i}catch(m){It(t,t.return,m)}}var Io=!1,yn=!1,um=!1,wx=typeof WeakSet=="function"?WeakSet:Set,Mn=null;function l9(t,r){if(t=t.containerInfo,Dm=wf,t=NS(t),rp(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var d=a.anchorOffset,m=a.focusNode;a=a.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var w=0,M=-1,Z=-1,ae=0,pe=0,ge=t,le=null;t:for(;;){for(var ue;ge!==i||d!==0&&ge.nodeType!==3||(M=w+d),ge!==m||a!==0&&ge.nodeType!==3||(Z=w+a),ge.nodeType===3&&(w+=ge.nodeValue.length),(ue=ge.firstChild)!==null;)le=ge,ge=ue;for(;;){if(ge===t)break t;if(le===i&&++ae===d&&(M=w),le===m&&++pe===a&&(Z=w),(ue=ge.nextSibling)!==null)break;ge=le,le=ge.parentNode}ge=ue}i=M===-1||Z===-1?null:{start:M,end:Z}}else i=null}i=i||{start:0,end:0}}else i=null;for(zm={focusedElem:t,selectionRange:i},wf=!1,Mn=r;Mn!==null;)if(r=Mn,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Mn=t;else for(;Mn!==null;){switch(r=Mn,m=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=r,d=m.memoizedProps,m=m.memoizedState,a=i.stateNode;try{var Pe=us(i.type,d);t=a.getSnapshotBeforeUpdate(Pe,m),a.__reactInternalSnapshotBeforeUpdate=t}catch(Ke){It(i,i.return,Ke)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)jm(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":jm(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=r.sibling,t!==null){t.return=r.return,Mn=t;break}Mn=r.return}}function xx(t,r,i){var a=i.flags;switch(i.tag){case 0:case 11:case 15:Vo(t,i),a&4&&Rl(5,i);break;case 1:if(Vo(t,i),a&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(w){It(i,i.return,w)}else{var d=us(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(d,r,t.__reactInternalSnapshotBeforeUpdate)}catch(w){It(i,i.return,w)}}a&64&&gx(i),a&512&&Ol(i,i.return);break;case 3:if(Vo(t,i),a&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{sw(t,r)}catch(w){It(i,i.return,w)}}break;case 27:r===null&&a&4&&Sx(i);case 26:case 5:Vo(t,i),r===null&&a&4&&vx(i),a&512&&Ol(i,i.return);break;case 12:Vo(t,i);break;case 31:Vo(t,i),a&4&&Cx(t,i);break;case 13:Vo(t,i),a&4&&Rx(t,i),a&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=y9.bind(null,i),P9(t,i))));break;case 22:if(a=i.memoizedState!==null||Io,!a){r=r!==null&&r.memoizedState!==null||yn,d=Io;var m=yn;Io=a,(yn=r)&&!m?Ho(t,i,(i.subtreeFlags&8772)!==0):Vo(t,i),Io=d,yn=m}break;case 30:break;default:Vo(t,i)}}function Ex(t){var r=t.alternate;r!==null&&(t.alternate=null,Ex(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&er(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var tn=null,rr=!1;function Uo(t,r,i){for(i=i.child;i!==null;)Tx(t,r,i),i=i.sibling}function Tx(t,r,i){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(et,i)}catch{}switch(i.tag){case 26:yn||fo(i,r),Uo(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:yn||fo(i,r);var a=tn,d=rr;xi(i.type)&&(tn=i.stateNode,rr=!1),Uo(t,r,i),Ll(i.stateNode),tn=a,rr=d;break;case 5:yn||fo(i,r);case 6:if(a=tn,d=rr,tn=null,Uo(t,r,i),tn=a,rr=d,tn!==null)if(rr)try{(tn.nodeType===9?tn.body:tn.nodeName==="HTML"?tn.ownerDocument.body:tn).removeChild(i.stateNode)}catch(m){It(i,r,m)}else try{tn.removeChild(i.stateNode)}catch(m){It(i,r,m)}break;case 18:tn!==null&&(rr?(t=tn,gE(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),ma(t)):gE(tn,i.stateNode));break;case 4:a=tn,d=rr,tn=i.stateNode.containerInfo,rr=!0,Uo(t,r,i),tn=a,rr=d;break;case 0:case 11:case 14:case 15:mi(2,i,r),yn||mi(4,i,r),Uo(t,r,i);break;case 1:yn||(fo(i,r),a=i.stateNode,typeof a.componentWillUnmount=="function"&&yx(i,r,a)),Uo(t,r,i);break;case 21:Uo(t,r,i);break;case 22:yn=(a=yn)||i.memoizedState!==null,Uo(t,r,i),yn=a;break;default:Uo(t,r,i)}}function Cx(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ma(t)}catch(i){It(r,r.return,i)}}}function Rx(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ma(t)}catch(i){It(r,r.return,i)}}function c9(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new wx),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new wx),r;default:throw Error(s(435,t.tag))}}function ef(t,r){var i=c9(t);r.forEach(function(a){if(!i.has(a)){i.add(a);var d=v9.bind(null,t,a);a.then(d,d)}})}function or(t,r){var i=r.deletions;if(i!==null)for(var a=0;a<i.length;a++){var d=i[a],m=t,w=r,M=w;e:for(;M!==null;){switch(M.tag){case 27:if(xi(M.type)){tn=M.stateNode,rr=!1;break e}break;case 5:tn=M.stateNode,rr=!1;break e;case 3:case 4:tn=M.stateNode.containerInfo,rr=!0;break e}M=M.return}if(tn===null)throw Error(s(160));Tx(m,w,d),tn=null,rr=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Ox(r,t),r=r.sibling}var Yr=null;function Ox(t,r){var i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:or(r,t),ir(t),a&4&&(mi(3,t,t.return),Rl(3,t),mi(5,t,t.return));break;case 1:or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),a&64&&Io&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?a:i.concat(a))));break;case 26:var d=Yr;if(or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),a&4){var m=i!==null?i.memoizedState:null;if(a=t.memoizedState,i===null)if(a===null)if(t.stateNode===null){e:{a=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(a){case"title":m=d.getElementsByTagName("title")[0],(!m||m[pr]||m[Qe]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(a),d.head.insertBefore(m,d.querySelector("head > title"))),Un(m,a,i),m[Qe]=t,on(m),a=m;break e;case"link":var w=OE("link","href",d).get(a+(i.href||""));if(w){for(var M=0;M<w.length;M++)if(m=w[M],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){w.splice(M,1);break t}}m=d.createElement(a),Un(m,a,i),d.head.appendChild(m);break;case"meta":if(w=OE("meta","content",d).get(a+(i.content||""))){for(M=0;M<w.length;M++)if(m=w[M],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){w.splice(M,1);break t}}m=d.createElement(a),Un(m,a,i),d.head.appendChild(m);break;default:throw Error(s(468,a))}m[Qe]=t,on(m),a=m}t.stateNode=a}else _E(d,t.type,t.stateNode);else t.stateNode=RE(d,a,t.memoizedProps);else m!==a?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,a===null?_E(d,t.type,t.stateNode):RE(d,a,t.memoizedProps)):a===null&&t.stateNode!==null&&am(t,t.memoizedProps,i.memoizedProps)}break;case 27:or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),i!==null&&a&4&&am(t,t.memoizedProps,i.memoizedProps);break;case 5:if(or(r,t),ir(t),a&512&&(yn||i===null||fo(i,i.return)),t.flags&32){d=t.stateNode;try{Is(d,"")}catch(Pe){It(t,t.return,Pe)}}a&4&&t.stateNode!=null&&(d=t.memoizedProps,am(t,d,i!==null?i.memoizedProps:d)),a&1024&&(um=!0);break;case 6:if(or(r,t),ir(t),a&4){if(t.stateNode===null)throw Error(s(162));a=t.memoizedProps,i=t.stateNode;try{i.nodeValue=a}catch(Pe){It(t,t.return,Pe)}}break;case 3:if(yf=null,d=Yr,Yr=mf(r.containerInfo),or(r,t),Yr=d,ir(t),a&4&&i!==null&&i.memoizedState.isDehydrated)try{ma(r.containerInfo)}catch(Pe){It(t,t.return,Pe)}um&&(um=!1,_x(t));break;case 4:a=Yr,Yr=mf(t.stateNode.containerInfo),or(r,t),ir(t),Yr=a;break;case 12:or(r,t),ir(t);break;case 31:or(r,t),ir(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ef(t,a)));break;case 13:or(r,t),ir(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(nf=X()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ef(t,a)));break;case 22:d=t.memoizedState!==null;var Z=i!==null&&i.memoizedState!==null,ae=Io,pe=yn;if(Io=ae||d,yn=pe||Z,or(r,t),yn=pe,Io=ae,ir(t),a&8192)e:for(r=t.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(i===null||Z||Io||yn||fs(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){Z=i=r;try{if(m=Z.stateNode,d)w=m.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{M=Z.stateNode;var ge=Z.memoizedProps.style,le=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;M.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(Pe){It(Z,Z.return,Pe)}}}else if(r.tag===6){if(i===null){Z=r;try{Z.stateNode.nodeValue=d?"":Z.memoizedProps}catch(Pe){It(Z,Z.return,Pe)}}}else if(r.tag===18){if(i===null){Z=r;try{var ue=Z.stateNode;d?yE(ue,!0):yE(Z.stateNode,!1)}catch(Pe){It(Z,Z.return,Pe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}a&4&&(a=t.updateQueue,a!==null&&(i=a.retryQueue,i!==null&&(a.retryQueue=null,ef(t,i))));break;case 19:or(r,t),ir(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ef(t,a)));break;case 30:break;case 21:break;default:or(r,t),ir(t)}}function ir(t){var r=t.flags;if(r&2){try{for(var i,a=t.return;a!==null;){if(bx(a)){i=a;break}a=a.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var d=i.stateNode,m=lm(t);Ju(t,m,d);break;case 5:var w=i.stateNode;i.flags&32&&(Is(w,""),i.flags&=-33);var M=lm(t);Ju(t,M,w);break;case 3:case 4:var Z=i.stateNode.containerInfo,ae=lm(t);cm(t,ae,Z);break;default:throw Error(s(161))}}catch(pe){It(t,t.return,pe)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function _x(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;_x(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Vo(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)xx(t,r.alternate,r),r=r.sibling}function fs(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:mi(4,r,r.return),fs(r);break;case 1:fo(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&yx(r,r.return,i),fs(r);break;case 27:Ll(r.stateNode);case 26:case 5:fo(r,r.return),fs(r);break;case 22:r.memoizedState===null&&fs(r);break;case 30:fs(r);break;default:fs(r)}t=t.sibling}}function Ho(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var a=r.alternate,d=t,m=r,w=m.flags;switch(m.tag){case 0:case 11:case 15:Ho(d,m,i),Rl(4,m);break;case 1:if(Ho(d,m,i),a=m,d=a.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ae){It(a,a.return,ae)}if(a=m,d=a.updateQueue,d!==null){var M=a.stateNode;try{var Z=d.shared.hiddenCallbacks;if(Z!==null)for(d.shared.hiddenCallbacks=null,d=0;d<Z.length;d++)iw(Z[d],M)}catch(ae){It(a,a.return,ae)}}i&&w&64&&gx(m),Ol(m,m.return);break;case 27:Sx(m);case 26:case 5:Ho(d,m,i),i&&a===null&&w&4&&vx(m),Ol(m,m.return);break;case 12:Ho(d,m,i);break;case 31:Ho(d,m,i),i&&w&4&&Cx(d,m);break;case 13:Ho(d,m,i),i&&w&4&&Rx(d,m);break;case 22:m.memoizedState===null&&Ho(d,m,i),Ol(m,m.return);break;case 30:break;default:Ho(d,m,i)}r=r.sibling}}function fm(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&hl(i))}function dm(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&hl(t))}function $r(t,r,i,a){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Ax(t,r,i,a),r=r.sibling}function Ax(t,r,i,a){var d=r.flags;switch(r.tag){case 0:case 11:case 15:$r(t,r,i,a),d&2048&&Rl(9,r);break;case 1:$r(t,r,i,a);break;case 3:$r(t,r,i,a),d&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&hl(t)));break;case 12:if(d&2048){$r(t,r,i,a),t=r.stateNode;try{var m=r.memoizedProps,w=m.id,M=m.onPostCommit;typeof M=="function"&&M(w,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(Z){It(r,r.return,Z)}}else $r(t,r,i,a);break;case 31:$r(t,r,i,a);break;case 13:$r(t,r,i,a);break;case 23:break;case 22:m=r.stateNode,w=r.alternate,r.memoizedState!==null?m._visibility&2?$r(t,r,i,a):_l(t,r):m._visibility&2?$r(t,r,i,a):(m._visibility|=2,oa(t,r,i,a,(r.subtreeFlags&10256)!==0||!1)),d&2048&&fm(w,r);break;case 24:$r(t,r,i,a),d&2048&&dm(r.alternate,r);break;default:$r(t,r,i,a)}}function oa(t,r,i,a,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=t,w=r,M=i,Z=a,ae=w.flags;switch(w.tag){case 0:case 11:case 15:oa(m,w,M,Z,d),Rl(8,w);break;case 23:break;case 22:var pe=w.stateNode;w.memoizedState!==null?pe._visibility&2?oa(m,w,M,Z,d):_l(m,w):(pe._visibility|=2,oa(m,w,M,Z,d)),d&&ae&2048&&fm(w.alternate,w);break;case 24:oa(m,w,M,Z,d),d&&ae&2048&&dm(w.alternate,w);break;default:oa(m,w,M,Z,d)}r=r.sibling}}function _l(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,a=r,d=a.flags;switch(a.tag){case 22:_l(i,a),d&2048&&fm(a.alternate,a);break;case 24:_l(i,a),d&2048&&dm(a.alternate,a);break;default:_l(i,a)}r=r.sibling}}var Al=8192;function ia(t,r,i){if(t.subtreeFlags&Al)for(t=t.child;t!==null;)Mx(t,r,i),t=t.sibling}function Mx(t,r,i){switch(t.tag){case 26:ia(t,r,i),t.flags&Al&&t.memoizedState!==null&&X9(i,Yr,t.memoizedState,t.memoizedProps);break;case 5:ia(t,r,i);break;case 3:case 4:var a=Yr;Yr=mf(t.stateNode.containerInfo),ia(t,r,i),Yr=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Al,Al=16777216,ia(t,r,i),Al=a):ia(t,r,i));break;default:ia(t,r,i)}}function Dx(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Ml(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var a=r[i];Mn=a,Nx(a,t)}Dx(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zx(t),t=t.sibling}function zx(t){switch(t.tag){case 0:case 11:case 15:Ml(t),t.flags&2048&&mi(9,t,t.return);break;case 3:Ml(t);break;case 12:Ml(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,tf(t)):Ml(t);break;default:Ml(t)}}function tf(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var a=r[i];Mn=a,Nx(a,t)}Dx(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:mi(8,r,r.return),tf(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,tf(r));break;default:tf(r)}t=t.sibling}}function Nx(t,r){for(;Mn!==null;){var i=Mn;switch(i.tag){case 0:case 11:case 15:mi(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var a=i.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:hl(i.memoizedState.cache)}if(a=i.child,a!==null)a.return=i,Mn=a;else e:for(i=t;Mn!==null;){a=Mn;var d=a.sibling,m=a.return;if(Ex(a),a===i){Mn=null;break e}if(d!==null){d.return=m,Mn=d;break e}Mn=m}}}var u9={getCacheForType:function(t){var r=Pn(pn),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i},cacheSignal:function(){return Pn(pn).controller.signal}},f9=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Yt=null,xt=null,Tt=0,Pt=0,Sr=null,gi=!1,sa=!1,hm=!1,Fo=0,an=0,yi=0,ds=0,pm=0,wr=0,aa=0,Dl=null,sr=null,mm=!1,nf=0,kx=0,rf=1/0,of=null,vi=null,En=0,bi=null,la=null,Bo=0,gm=0,ym=null,jx=null,zl=0,vm=null;function xr(){return(Nt&2)!==0&&Tt!==0?Tt&-Tt:_.T!==null?Tm():tt()}function Lx(){if(wr===0)if((Tt&536870912)===0||Ot){var t=ut;ut<<=1,(ut&3932160)===0&&(ut=262144),wr=t}else wr=536870912;return t=vr.current,t!==null&&(t.flags|=32),wr}function ar(t,r,i){(t===Yt&&(Pt===2||Pt===9)||t.cancelPendingCommit!==null)&&(ca(t,0),Si(t,Tt,wr,!1)),je(t,i),((Nt&2)===0||t!==Yt)&&(t===Yt&&((Nt&2)===0&&(ds|=i),an===4&&Si(t,Tt,wr,!1)),ho(t))}function Px(t,r,i){if((Nt&6)!==0)throw Error(s(327));var a=!i&&(r&127)===0&&(r&t.expiredLanes)===0||cn(t,r),d=a?p9(t,r):Sm(t,r,!0),m=a;do{if(d===0){sa&&!a&&Si(t,r,0,!1);break}else{if(i=t.current.alternate,m&&!d9(i)){d=Sm(t,r,!1),m=!1;continue}if(d===2){if(m=r,t.errorRecoveryDisabledLanes&m)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){r=w;e:{var M=t;d=Dl;var Z=M.current.memoizedState.isDehydrated;if(Z&&(ca(M,w).flags|=256),w=Sm(M,w,!1),w!==2){if(hm&&!Z){M.errorRecoveryDisabledLanes|=m,ds|=m,d=4;break e}m=sr,sr=d,m!==null&&(sr===null?sr=m:sr.push.apply(sr,m))}d=w}if(m=!1,d!==2)continue}}if(d===1){ca(t,0),Si(t,r,0,!0);break}e:{switch(a=t,m=d,m){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Si(a,r,wr,!gi);break e;case 2:sr=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(d=nf+300-X(),10<d)){if(Si(a,r,wr,!gi),wn(a,0,!0)!==0)break e;Bo=r,a.timeoutHandle=pE(Ix.bind(null,a,i,sr,of,mm,r,wr,ds,aa,gi,m,"Throttled",-0,0),d);break e}Ix(a,i,sr,of,mm,r,wr,ds,aa,gi,m,null,-0,0)}}break}while(!0);ho(t)}function Ix(t,r,i,a,d,m,w,M,Z,ae,pe,ge,le,ue){if(t.timeoutHandle=-1,ge=r.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_o},Mx(r,m,ge);var Pe=(m&62914560)===m?nf-X():(m&4194048)===m?kx-X():0;if(Pe=Q9(ge,Pe),Pe!==null){Bo=m,t.cancelPendingCommit=Pe(Yx.bind(null,t,r,m,i,a,d,w,M,Z,pe,ge,null,le,ue)),Si(t,m,w,!ae);return}}Yx(t,r,m,i,a,d,w,M,Z)}function d9(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var a=0;a<i.length;a++){var d=i[a],m=d.getSnapshot;d=d.value;try{if(!gr(m(),d))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Si(t,r,i,a){r&=~pm,r&=~ds,t.suspendedLanes|=r,t.pingedLanes&=~r,a&&(t.warmLanes|=r),a=t.expirationTimes;for(var d=r;0<d;){var m=31-dt(d),w=1<<m;a[m]=-1,d&=~w}i!==0&&ft(t,i,r)}function sf(){return(Nt&6)===0?(Nl(0),!1):!0}function bm(){if(xt!==null){if(Pt===0)var t=xt.return;else t=xt,zo=rs=null,jp(t),Js=null,ml=0,t=xt;for(;t!==null;)mx(t.alternate,t),t=t.return;xt=null}}function ca(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,z9(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Bo=0,bm(),Yt=t,xt=i=Mo(t.current,null),Tt=r,Pt=0,Sr=null,gi=!1,sa=cn(t,r),hm=!1,aa=wr=pm=ds=yi=an=0,sr=Dl=null,mm=!1,(r&8)!==0&&(r|=r&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=r;0<a;){var d=31-dt(a),m=1<<d;r|=t[d],a&=~m}return Fo=r,Ru(),i}function Ux(t,r){gt=null,_.H=El,r===Ws||r===ku?(r=tw(),Pt=3):r===Ep?(r=tw(),Pt=4):Pt=r===Kp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Sr=r,xt===null&&(an=1,qu(t,Nr(r,t.current)))}function Vx(){var t=vr.current;return t===null?!0:(Tt&4194048)===Tt?Pr===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===Pr:!1}function Hx(){var t=_.H;return _.H=El,t===null?El:t}function Fx(){var t=_.A;return _.A=u9,t}function af(){an=4,gi||(Tt&4194048)!==Tt&&vr.current!==null||(sa=!0),(yi&134217727)===0&&(ds&134217727)===0||Yt===null||Si(Yt,Tt,wr,!1)}function Sm(t,r,i){var a=Nt;Nt|=2;var d=Hx(),m=Fx();(Yt!==t||Tt!==r)&&(of=null,ca(t,r)),r=!1;var w=an;e:do try{if(Pt!==0&&xt!==null){var M=xt,Z=Sr;switch(Pt){case 8:bm(),w=6;break e;case 3:case 2:case 9:case 6:vr.current===null&&(r=!0);var ae=Pt;if(Pt=0,Sr=null,ua(t,M,Z,ae),i&&sa){w=0;break e}break;default:ae=Pt,Pt=0,Sr=null,ua(t,M,Z,ae)}}h9(),w=an;break}catch(pe){Ux(t,pe)}while(!0);return r&&t.shellSuspendCounter++,zo=rs=null,Nt=a,_.H=d,_.A=m,xt===null&&(Yt=null,Tt=0,Ru()),w}function h9(){for(;xt!==null;)Bx(xt)}function p9(t,r){var i=Nt;Nt|=2;var a=Hx(),d=Fx();Yt!==t||Tt!==r?(of=null,rf=X()+500,ca(t,r)):sa=cn(t,r);e:do try{if(Pt!==0&&xt!==null){r=xt;var m=Sr;t:switch(Pt){case 1:Pt=0,Sr=null,ua(t,r,m,1);break;case 2:case 9:if(JS(m)){Pt=0,Sr=null,Zx(r);break}r=function(){Pt!==2&&Pt!==9||Yt!==t||(Pt=7),ho(t)},m.then(r,r);break e;case 3:Pt=7;break e;case 4:Pt=5;break e;case 7:JS(m)?(Pt=0,Sr=null,Zx(r)):(Pt=0,Sr=null,ua(t,r,m,7));break;case 5:var w=null;switch(xt.tag){case 26:w=xt.memoizedState;case 5:case 27:var M=xt;if(w?AE(w):M.stateNode.complete){Pt=0,Sr=null;var Z=M.sibling;if(Z!==null)xt=Z;else{var ae=M.return;ae!==null?(xt=ae,lf(ae)):xt=null}break t}}Pt=0,Sr=null,ua(t,r,m,5);break;case 6:Pt=0,Sr=null,ua(t,r,m,6);break;case 8:bm(),an=6;break e;default:throw Error(s(462))}}m9();break}catch(pe){Ux(t,pe)}while(!0);return zo=rs=null,_.H=a,_.A=d,Nt=i,xt!==null?0:(Yt=null,Tt=0,Ru(),an)}function m9(){for(;xt!==null&&!oe();)Bx(xt)}function Bx(t){var r=hx(t.alternate,t,Fo);t.memoizedProps=t.pendingProps,r===null?lf(t):xt=r}function Zx(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=ax(i,r,r.pendingProps,r.type,void 0,Tt);break;case 11:r=ax(i,r,r.pendingProps,r.type.render,r.ref,Tt);break;case 5:jp(r);default:mx(i,r),r=xt=FS(r,Fo),r=hx(i,r,Fo)}t.memoizedProps=t.pendingProps,r===null?lf(t):xt=r}function ua(t,r,i,a){zo=rs=null,jp(r),Js=null,ml=0;var d=r.return;try{if(r9(t,d,r,i,Tt)){an=1,qu(t,Nr(i,t.current)),xt=null;return}}catch(m){if(d!==null)throw xt=d,m;an=1,qu(t,Nr(i,t.current)),xt=null;return}r.flags&32768?(Ot||a===1?t=!0:sa||(Tt&536870912)!==0?t=!1:(gi=t=!0,(a===2||a===9||a===3||a===6)&&(a=vr.current,a!==null&&a.tag===13&&(a.flags|=16384))),Gx(r,t)):lf(r)}function lf(t){var r=t;do{if((r.flags&32768)!==0){Gx(r,gi);return}t=r.return;var i=s9(r.alternate,r,Fo);if(i!==null){xt=i;return}if(r=r.sibling,r!==null){xt=r;return}xt=r=t}while(r!==null);an===0&&(an=5)}function Gx(t,r){do{var i=a9(t.alternate,t);if(i!==null){i.flags&=32767,xt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){xt=t;return}xt=t=i}while(t!==null);an=6,xt=null}function Yx(t,r,i,a,d,m,w,M,Z){t.cancelPendingCommit=null;do cf();while(En!==0);if((Nt&6)!==0)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(m=r.lanes|r.childLanes,m|=lp,at(t,i,m,w,M,Z),t===Yt&&(xt=Yt=null,Tt=0),la=r,bi=t,Bo=i,gm=m,ym=d,jx=a,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,b9(Ne,function(){return Kx(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,d=O.p,O.p=2,w=Nt,Nt|=4;try{l9(t,r,i)}finally{Nt=w,O.p=d,_.T=a}}En=1,$x(),qx(),Xx()}}function $x(){if(En===1){En=0;var t=bi,r=la,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=_.T,_.T=null;var a=O.p;O.p=2;var d=Nt;Nt|=4;try{Ox(r,t);var m=zm,w=NS(t.containerInfo),M=m.focusedElem,Z=m.selectionRange;if(w!==M&&M&&M.ownerDocument&&zS(M.ownerDocument.documentElement,M)){if(Z!==null&&rp(M)){var ae=Z.start,pe=Z.end;if(pe===void 0&&(pe=ae),"selectionStart"in M)M.selectionStart=ae,M.selectionEnd=Math.min(pe,M.value.length);else{var ge=M.ownerDocument||document,le=ge&&ge.defaultView||window;if(le.getSelection){var ue=le.getSelection(),Pe=M.textContent.length,Ke=Math.min(Z.start,Pe),Bt=Z.end===void 0?Ke:Math.min(Z.end,Pe);!ue.extend&&Ke>Bt&&(w=Bt,Bt=Ke,Ke=w);var re=DS(M,Ke),$=DS(M,Bt);if(re&&$&&(ue.rangeCount!==1||ue.anchorNode!==re.node||ue.anchorOffset!==re.offset||ue.focusNode!==$.node||ue.focusOffset!==$.offset)){var se=ge.createRange();se.setStart(re.node,re.offset),ue.removeAllRanges(),Ke>Bt?(ue.addRange(se),ue.extend($.node,$.offset)):(se.setEnd($.node,$.offset),ue.addRange(se))}}}}for(ge=[],ue=M;ue=ue.parentNode;)ue.nodeType===1&&ge.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<ge.length;M++){var me=ge[M];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}wf=!!Dm,zm=Dm=null}finally{Nt=d,O.p=a,_.T=i}}t.current=r,En=2}}function qx(){if(En===2){En=0;var t=bi,r=la,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=_.T,_.T=null;var a=O.p;O.p=2;var d=Nt;Nt|=4;try{xx(t,r.alternate,r)}finally{Nt=d,O.p=a,_.T=i}}En=3}}function Xx(){if(En===4||En===3){En=0,J();var t=bi,r=la,i=Bo,a=jx;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?En=5:(En=0,la=bi=null,Qx(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(vi=null),Fe(i),r=r.stateNode,Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(et,r,void 0,(r.current.flags&128)===128)}catch{}if(a!==null){r=_.T,d=O.p,O.p=2,_.T=null;try{for(var m=t.onRecoverableError,w=0;w<a.length;w++){var M=a[w];m(M.value,{componentStack:M.stack})}}finally{_.T=r,O.p=d}}(Bo&3)!==0&&cf(),ho(t),d=t.pendingLanes,(i&261930)!==0&&(d&42)!==0?t===vm?zl++:(zl=0,vm=t):zl=0,Nl(0)}}function Qx(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,hl(r)))}function cf(){return $x(),qx(),Xx(),Kx()}function Kx(){if(En!==5)return!1;var t=bi,r=gm;gm=0;var i=Fe(Bo),a=_.T,d=O.p;try{O.p=32>i?32:i,_.T=null,i=ym,ym=null;var m=bi,w=Bo;if(En=0,la=bi=null,Bo=0,(Nt&6)!==0)throw Error(s(331));var M=Nt;if(Nt|=4,zx(m.current),Ax(m,m.current,w,i),Nt=M,Nl(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(et,m)}catch{}return!0}finally{O.p=d,_.T=a,Qx(t,r)}}function Wx(t,r,i){r=Nr(i,r),r=Qp(t.stateNode,r,2),t=di(t,r,2),t!==null&&(je(t,2),ho(t))}function It(t,r,i){if(t.tag===3)Wx(t,t,i);else for(;r!==null;){if(r.tag===3){Wx(r,t,i);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vi===null||!vi.has(a))){t=Nr(i,t),i=Jw(2),a=di(r,i,2),a!==null&&(ex(i,a,r,t),je(a,2),ho(a));break}}r=r.return}}function wm(t,r,i){var a=t.pingCache;if(a===null){a=t.pingCache=new f9;var d=new Set;a.set(r,d)}else d=a.get(r),d===void 0&&(d=new Set,a.set(r,d));d.has(i)||(hm=!0,d.add(i),t=g9.bind(null,t,r,i),r.then(t,t))}function g9(t,r,i){var a=t.pingCache;a!==null&&a.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Yt===t&&(Tt&i)===i&&(an===4||an===3&&(Tt&62914560)===Tt&&300>X()-nf?(Nt&2)===0&&ca(t,0):pm|=i,aa===Tt&&(aa=0)),ho(t)}function Jx(t,r){r===0&&(r=he()),t=es(t,r),t!==null&&(je(t,r),ho(t))}function y9(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),Jx(t,i)}function v9(t,r){var i=0;switch(t.tag){case 31:case 13:var a=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(r),Jx(t,i)}function b9(t,r){return Ue(t,r)}var uf=null,fa=null,xm=!1,ff=!1,Em=!1,wi=0;function ho(t){t!==fa&&t.next===null&&(fa===null?uf=fa=t:fa=fa.next=t),ff=!0,xm||(xm=!0,w9())}function Nl(t,r){if(!Em&&ff){Em=!0;do for(var i=!1,a=uf;a!==null;){if(t!==0){var d=a.pendingLanes;if(d===0)var m=0;else{var w=a.suspendedLanes,M=a.pingedLanes;m=(1<<31-dt(42|t)+1)-1,m&=d&~(w&~M),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,rE(a,m))}else m=Tt,m=wn(a,a===Yt?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(m&3)===0||cn(a,m)||(i=!0,rE(a,m));a=a.next}while(i);Em=!1}}function S9(){eE()}function eE(){ff=xm=!1;var t=0;wi!==0&&D9()&&(t=wi);for(var r=X(),i=null,a=uf;a!==null;){var d=a.next,m=tE(a,r);m===0?(a.next=null,i===null?uf=d:i.next=d,d===null&&(fa=i)):(i=a,(t!==0||(m&3)!==0)&&(ff=!0)),a=d}En!==0&&En!==5||Nl(t),wi!==0&&(wi=0)}function tE(t,r){for(var i=t.suspendedLanes,a=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var w=31-dt(m),M=1<<w,Z=d[w];Z===-1?((M&i)===0||(M&a)!==0)&&(d[w]=Rt(M,r)):Z<=r&&(t.expiredLanes|=M),m&=~M}if(r=Yt,i=Tt,i=wn(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,i===0||t===r&&(Pt===2||Pt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&H(a),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||cn(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(a!==null&&H(a),Fe(i)){case 2:case 8:i=be;break;case 32:i=Ne;break;case 268435456:i=He;break;default:i=Ne}return a=nE.bind(null,t),i=Ue(i,a),t.callbackPriority=r,t.callbackNode=i,r}return a!==null&&a!==null&&H(a),t.callbackPriority=2,t.callbackNode=null,2}function nE(t,r){if(En!==0&&En!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(cf()&&t.callbackNode!==i)return null;var a=Tt;return a=wn(t,t===Yt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Px(t,a,r),tE(t,X()),t.callbackNode!=null&&t.callbackNode===i?nE.bind(null,t):null)}function rE(t,r){if(cf())return null;Px(t,r,!0)}function w9(){N9(function(){(Nt&6)!==0?Ue(we,S9):eE()})}function Tm(){if(wi===0){var t=Qs;t===0&&(t=st,st<<=1,(st&261888)===0&&(st=256)),wi=t}return wi}function oE(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vu(""+t)}function iE(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function x9(t,r,i,a,d){if(r==="submit"&&i&&i.stateNode===d){var m=oE((d[$t]||null).action),w=a.submitter;w&&(r=(r=w[$t]||null)?oE(r.formAction):w.getAttribute("formAction"),r!==null&&(m=r,w=null));var M=new xu("action","action",null,a,d);t.push({event:M,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(wi!==0){var Z=w?iE(d,w):new FormData(d);Zp(i,{pending:!0,data:Z,method:d.method,action:m},null,Z)}}else typeof m=="function"&&(M.preventDefault(),Z=w?iE(d,w):new FormData(d),Zp(i,{pending:!0,data:Z,method:d.method,action:m},m,Z))},currentTarget:d}]})}}for(var Cm=0;Cm<ap.length;Cm++){var Rm=ap[Cm],E9=Rm.toLowerCase(),T9=Rm[0].toUpperCase()+Rm.slice(1);Gr(E9,"on"+T9)}Gr(LS,"onAnimationEnd"),Gr(PS,"onAnimationIteration"),Gr(IS,"onAnimationStart"),Gr("dblclick","onDoubleClick"),Gr("focusin","onFocus"),Gr("focusout","onBlur"),Gr(Vk,"onTransitionRun"),Gr(Hk,"onTransitionStart"),Gr(Fk,"onTransitionCancel"),Gr(US,"onTransitionEnd"),Ls("onMouseEnter",["mouseout","mouseover"]),Ls("onMouseLeave",["mouseout","mouseover"]),Ls("onPointerEnter",["pointerout","pointerover"]),Ls("onPointerLeave",["pointerout","pointerover"]),Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),C9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function sE(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var a=t[i],d=a.event;a=a.listeners;e:{var m=void 0;if(r)for(var w=a.length-1;0<=w;w--){var M=a[w],Z=M.instance,ae=M.currentTarget;if(M=M.listener,Z!==m&&d.isPropagationStopped())break e;m=M,d.currentTarget=ae;try{m(d)}catch(pe){Cu(pe)}d.currentTarget=null,m=Z}else for(w=0;w<a.length;w++){if(M=a[w],Z=M.instance,ae=M.currentTarget,M=M.listener,Z!==m&&d.isPropagationStopped())break e;m=M,d.currentTarget=ae;try{m(d)}catch(pe){Cu(pe)}d.currentTarget=null,m=Z}}}}function Et(t,r){var i=r[On];i===void 0&&(i=r[On]=new Set);var a=t+"__bubble";i.has(a)||(aE(r,t,2,!1),i.add(a))}function Om(t,r,i){var a=0;r&&(a|=4),aE(i,t,a,r)}var df="_reactListening"+Math.random().toString(36).slice(2);function _m(t){if(!t[df]){t[df]=!0,el.forEach(function(i){i!=="selectionchange"&&(C9.has(i)||Om(i,!1,t),Om(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[df]||(r[df]=!0,Om("selectionchange",!1,r))}}function aE(t,r,i,a){switch(LE(r)){case 2:var d=J9;break;case 8:d=ej;break;default:d=Bm}i=d.bind(null,r,i,t),d=void 0,!qh||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),a?d!==void 0?t.addEventListener(r,i,{capture:!0,passive:d}):t.addEventListener(r,i,!0):d!==void 0?t.addEventListener(r,i,{passive:d}):t.addEventListener(r,i,!1)}function Am(t,r,i,a,d){var m=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var w=a.tag;if(w===3||w===4){var M=a.stateNode.containerInfo;if(M===d)break;if(w===4)for(w=a.return;w!==null;){var Z=w.tag;if((Z===3||Z===4)&&w.stateNode.containerInfo===d)return;w=w.return}for(;M!==null;){if(w=_n(M),w===null)return;if(Z=w.tag,Z===5||Z===6||Z===26||Z===27){a=m=w;continue e}M=M.parentNode}}a=a.return}dS(function(){var ae=m,pe=Yh(i),ge=[];e:{var le=VS.get(t);if(le!==void 0){var ue=xu,Pe=t;switch(t){case"keypress":if(Su(i)===0)break e;case"keydown":case"keyup":ue=vk;break;case"focusin":Pe="focus",ue=Wh;break;case"focusout":Pe="blur",ue=Wh;break;case"beforeblur":case"afterblur":ue=Wh;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=mS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=sk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=wk;break;case LS:case PS:case IS:ue=ck;break;case US:ue=Ek;break;case"scroll":case"scrollend":ue=ok;break;case"wheel":ue=Ck;break;case"copy":case"cut":case"paste":ue=fk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=yS;break;case"toggle":case"beforetoggle":ue=Ok}var Ke=(r&4)!==0,Bt=!Ke&&(t==="scroll"||t==="scrollend"),re=Ke?le!==null?le+"Capture":null:le;Ke=[];for(var $=ae,se;$!==null;){var me=$;if(se=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||se===null||re===null||(me=nl($,re),me!=null&&Ke.push(jl($,me,se))),Bt)break;$=$.return}0<Ke.length&&(le=new ue(le,Pe,null,i,pe),ge.push({event:le,listeners:Ke}))}}if((r&7)===0){e:{if(le=t==="mouseover"||t==="pointerover",ue=t==="mouseout"||t==="pointerout",le&&i!==Gh&&(Pe=i.relatedTarget||i.fromElement)&&(_n(Pe)||Pe[xn]))break e;if((ue||le)&&(le=pe.window===pe?pe:(le=pe.ownerDocument)?le.defaultView||le.parentWindow:window,ue?(Pe=i.relatedTarget||i.toElement,ue=ae,Pe=Pe?_n(Pe):null,Pe!==null&&(Bt=c(Pe),Ke=Pe.tag,Pe!==Bt||Ke!==5&&Ke!==27&&Ke!==6)&&(Pe=null)):(ue=null,Pe=ae),ue!==Pe)){if(Ke=mS,me="onMouseLeave",re="onMouseEnter",$="mouse",(t==="pointerout"||t==="pointerover")&&(Ke=yS,me="onPointerLeave",re="onPointerEnter",$="pointer"),Bt=ue==null?le:An(ue),se=Pe==null?le:An(Pe),le=new Ke(me,$+"leave",ue,i,pe),le.target=Bt,le.relatedTarget=se,me=null,_n(pe)===ae&&(Ke=new Ke(re,$+"enter",Pe,i,pe),Ke.target=se,Ke.relatedTarget=Bt,me=Ke),Bt=me,ue&&Pe)t:{for(Ke=R9,re=ue,$=Pe,se=0,me=re;me;me=Ke(me))se++;me=0;for(var Ye=$;Ye;Ye=Ke(Ye))me++;for(;0<se-me;)re=Ke(re),se--;for(;0<me-se;)$=Ke($),me--;for(;se--;){if(re===$||$!==null&&re===$.alternate){Ke=re;break t}re=Ke(re),$=Ke($)}Ke=null}else Ke=null;ue!==null&&lE(ge,le,ue,Ke,!1),Pe!==null&&Bt!==null&&lE(ge,Bt,Pe,Ke,!0)}}e:{if(le=ae?An(ae):window,ue=le.nodeName&&le.nodeName.toLowerCase(),ue==="select"||ue==="input"&&le.type==="file")var Mt=CS;else if(ES(le))if(RS)Mt=Pk;else{Mt=jk;var Ve=kk}else ue=le.nodeName,!ue||ue.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?ae&&Zh(ae.elementType)&&(Mt=CS):Mt=Lk;if(Mt&&(Mt=Mt(t,ae))){TS(ge,Mt,i,pe);break e}Ve&&Ve(t,le,ae),t==="focusout"&&ae&&le.type==="number"&&ae.memoizedProps.value!=null&&Bh(le,"number",le.value)}switch(Ve=ae?An(ae):window,t){case"focusin":(ES(Ve)||Ve.contentEditable==="true")&&(Fs=Ve,op=ae,ul=null);break;case"focusout":ul=op=Fs=null;break;case"mousedown":ip=!0;break;case"contextmenu":case"mouseup":case"dragend":ip=!1,kS(ge,i,pe);break;case"selectionchange":if(Uk)break;case"keydown":case"keyup":kS(ge,i,pe)}var vt;if(ep)e:{switch(t){case"compositionstart":var Ct="onCompositionStart";break e;case"compositionend":Ct="onCompositionEnd";break e;case"compositionupdate":Ct="onCompositionUpdate";break e}Ct=void 0}else Hs?wS(t,i)&&(Ct="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ct="onCompositionStart");Ct&&(vS&&i.locale!=="ko"&&(Hs||Ct!=="onCompositionStart"?Ct==="onCompositionEnd"&&Hs&&(vt=hS()):(ii=pe,Xh="value"in ii?ii.value:ii.textContent,Hs=!0)),Ve=hf(ae,Ct),0<Ve.length&&(Ct=new gS(Ct,t,null,i,pe),ge.push({event:Ct,listeners:Ve}),vt?Ct.data=vt:(vt=xS(i),vt!==null&&(Ct.data=vt)))),(vt=Ak?Mk(t,i):Dk(t,i))&&(Ct=hf(ae,"onBeforeInput"),0<Ct.length&&(Ve=new gS("onBeforeInput","beforeinput",null,i,pe),ge.push({event:Ve,listeners:Ct}),Ve.data=vt)),x9(ge,t,ae,i,pe)}sE(ge,r)})}function jl(t,r,i){return{instance:t,listener:r,currentTarget:i}}function hf(t,r){for(var i=r+"Capture",a=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=nl(t,i),d!=null&&a.unshift(jl(t,d,m)),d=nl(t,r),d!=null&&a.push(jl(t,d,m))),t.tag===3)return a;t=t.return}return[]}function R9(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function lE(t,r,i,a,d){for(var m=r._reactName,w=[];i!==null&&i!==a;){var M=i,Z=M.alternate,ae=M.stateNode;if(M=M.tag,Z!==null&&Z===a)break;M!==5&&M!==26&&M!==27||ae===null||(Z=ae,d?(ae=nl(i,m),ae!=null&&w.unshift(jl(i,ae,Z))):d||(ae=nl(i,m),ae!=null&&w.push(jl(i,ae,Z)))),i=i.return}w.length!==0&&t.push({event:r,listeners:w})}var O9=/\r\n?/g,_9=/\u0000|\uFFFD/g;function cE(t){return(typeof t=="string"?t:""+t).replace(O9,`
10
+ `).replace(_9,"")}function uE(t,r){return r=cE(r),cE(t)===r}function Ft(t,r,i,a,d,m){switch(i){case"children":typeof a=="string"?r==="body"||r==="textarea"&&a===""||Is(t,a):(typeof a=="number"||typeof a=="bigint")&&r!=="body"&&Is(t,""+a);break;case"className":gu(t,"class",a);break;case"tabIndex":gu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":gu(t,i,a);break;case"style":uS(t,a,m);break;case"data":if(r!=="object"){gu(t,"data",a);break}case"src":case"href":if(a===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(i);break}a=vu(""+a),t.setAttribute(i,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(r!=="input"&&Ft(t,r,"name",d.name,d,null),Ft(t,r,"formEncType",d.formEncType,d,null),Ft(t,r,"formMethod",d.formMethod,d,null),Ft(t,r,"formTarget",d.formTarget,d,null)):(Ft(t,r,"encType",d.encType,d,null),Ft(t,r,"method",d.method,d,null),Ft(t,r,"target",d.target,d,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(i);break}a=vu(""+a),t.setAttribute(i,a);break;case"onClick":a!=null&&(t.onclick=_o);break;case"onScroll":a!=null&&Et("scroll",t);break;case"onScrollEnd":a!=null&&Et("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(i=a.__html,i!=null){if(d.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}i=vu(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(i,""+a):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":a===!0?t.setAttribute(i,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(i,a):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(i,a):t.removeAttribute(i);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(i):t.setAttribute(i,a);break;case"popover":Et("beforetoggle",t),Et("toggle",t),mu(t,"popover",a);break;case"xlinkActuate":Oo(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Oo(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Oo(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Oo(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Oo(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Oo(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Oo(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Oo(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Oo(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":mu(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=nk.get(i)||i,mu(t,i,a))}}function Mm(t,r,i,a,d,m){switch(i){case"style":uS(t,a,m);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(i=a.__html,i!=null){if(d.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof a=="string"?Is(t,a):(typeof a=="number"||typeof a=="bigint")&&Is(t,""+a);break;case"onScroll":a!=null&&Et("scroll",t);break;case"onScrollEnd":a!=null&&Et("scrollend",t);break;case"onClick":a!=null&&(t.onclick=_o);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tl.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),r=i.slice(2,d?i.length-7:void 0),m=t[$t]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(r,m,d),typeof a=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,a,d);break e}i in t?t[i]=a:a===!0?t.setAttribute(i,""):mu(t,i,a)}}}function Un(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",t),Et("load",t);var a=!1,d=!1,m;for(m in i)if(i.hasOwnProperty(m)){var w=i[m];if(w!=null)switch(m){case"src":a=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Ft(t,r,m,w,i,null)}}d&&Ft(t,r,"srcSet",i.srcSet,i,null),a&&Ft(t,r,"src",i.src,i,null);return;case"input":Et("invalid",t);var M=m=w=d=null,Z=null,ae=null;for(a in i)if(i.hasOwnProperty(a)){var pe=i[a];if(pe!=null)switch(a){case"name":d=pe;break;case"type":w=pe;break;case"checked":Z=pe;break;case"defaultChecked":ae=pe;break;case"value":m=pe;break;case"defaultValue":M=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(s(137,r));break;default:Ft(t,r,a,pe,i,null)}}sS(t,m,M,Z,ae,w,d,!1);return;case"select":Et("invalid",t),a=w=m=null;for(d in i)if(i.hasOwnProperty(d)&&(M=i[d],M!=null))switch(d){case"value":m=M;break;case"defaultValue":w=M;break;case"multiple":a=M;default:Ft(t,r,d,M,i,null)}r=m,i=w,t.multiple=!!a,r!=null?Ps(t,!!a,r,!1):i!=null&&Ps(t,!!a,i,!0);return;case"textarea":Et("invalid",t),m=d=a=null;for(w in i)if(i.hasOwnProperty(w)&&(M=i[w],M!=null))switch(w){case"value":a=M;break;case"defaultValue":d=M;break;case"children":m=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(91));break;default:Ft(t,r,w,M,i,null)}lS(t,a,d,m);return;case"option":for(Z in i)i.hasOwnProperty(Z)&&(a=i[Z],a!=null)&&(Z==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ft(t,r,Z,a,i,null));return;case"dialog":Et("beforetoggle",t),Et("toggle",t),Et("cancel",t),Et("close",t);break;case"iframe":case"object":Et("load",t);break;case"video":case"audio":for(a=0;a<kl.length;a++)Et(kl[a],t);break;case"image":Et("error",t),Et("load",t);break;case"details":Et("toggle",t);break;case"embed":case"source":case"link":Et("error",t),Et("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in i)if(i.hasOwnProperty(ae)&&(a=i[ae],a!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Ft(t,r,ae,a,i,null)}return;default:if(Zh(r)){for(pe in i)i.hasOwnProperty(pe)&&(a=i[pe],a!==void 0&&Mm(t,r,pe,a,i,void 0));return}}for(M in i)i.hasOwnProperty(M)&&(a=i[M],a!=null&&Ft(t,r,M,a,i,null))}function A9(t,r,i,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,w=null,M=null,Z=null,ae=null,pe=null;for(ue in i){var ge=i[ue];if(i.hasOwnProperty(ue)&&ge!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":Z=ge;default:a.hasOwnProperty(ue)||Ft(t,r,ue,null,a,ge)}}for(var le in a){var ue=a[le];if(ge=i[le],a.hasOwnProperty(le)&&(ue!=null||ge!=null))switch(le){case"type":m=ue;break;case"name":d=ue;break;case"checked":ae=ue;break;case"defaultChecked":pe=ue;break;case"value":w=ue;break;case"defaultValue":M=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(s(137,r));break;default:ue!==ge&&Ft(t,r,le,ue,a,ge)}}Fh(t,w,M,Z,ae,pe,m,d);return;case"select":ue=w=M=le=null;for(m in i)if(Z=i[m],i.hasOwnProperty(m)&&Z!=null)switch(m){case"value":break;case"multiple":ue=Z;default:a.hasOwnProperty(m)||Ft(t,r,m,null,a,Z)}for(d in a)if(m=a[d],Z=i[d],a.hasOwnProperty(d)&&(m!=null||Z!=null))switch(d){case"value":le=m;break;case"defaultValue":M=m;break;case"multiple":w=m;default:m!==Z&&Ft(t,r,d,m,a,Z)}r=M,i=w,a=ue,le!=null?Ps(t,!!i,le,!1):!!a!=!!i&&(r!=null?Ps(t,!!i,r,!0):Ps(t,!!i,i?[]:"",!1));return;case"textarea":ue=le=null;for(M in i)if(d=i[M],i.hasOwnProperty(M)&&d!=null&&!a.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Ft(t,r,M,null,a,d)}for(w in a)if(d=a[w],m=i[w],a.hasOwnProperty(w)&&(d!=null||m!=null))switch(w){case"value":le=d;break;case"defaultValue":ue=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==m&&Ft(t,r,w,d,a,m)}aS(t,le,ue);return;case"option":for(var Pe in i)le=i[Pe],i.hasOwnProperty(Pe)&&le!=null&&!a.hasOwnProperty(Pe)&&(Pe==="selected"?t.selected=!1:Ft(t,r,Pe,null,a,le));for(Z in a)le=a[Z],ue=i[Z],a.hasOwnProperty(Z)&&le!==ue&&(le!=null||ue!=null)&&(Z==="selected"?t.selected=le&&typeof le!="function"&&typeof le!="symbol":Ft(t,r,Z,le,a,ue));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ke in i)le=i[Ke],i.hasOwnProperty(Ke)&&le!=null&&!a.hasOwnProperty(Ke)&&Ft(t,r,Ke,null,a,le);for(ae in a)if(le=a[ae],ue=i[ae],a.hasOwnProperty(ae)&&le!==ue&&(le!=null||ue!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(s(137,r));break;default:Ft(t,r,ae,le,a,ue)}return;default:if(Zh(r)){for(var Bt in i)le=i[Bt],i.hasOwnProperty(Bt)&&le!==void 0&&!a.hasOwnProperty(Bt)&&Mm(t,r,Bt,void 0,a,le);for(pe in a)le=a[pe],ue=i[pe],!a.hasOwnProperty(pe)||le===ue||le===void 0&&ue===void 0||Mm(t,r,pe,le,a,ue);return}}for(var re in i)le=i[re],i.hasOwnProperty(re)&&le!=null&&!a.hasOwnProperty(re)&&Ft(t,r,re,null,a,le);for(ge in a)le=a[ge],ue=i[ge],!a.hasOwnProperty(ge)||le===ue||le==null&&ue==null||Ft(t,r,ge,le,a,ue)}function fE(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function M9(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,i=performance.getEntriesByType("resource"),a=0;a<i.length;a++){var d=i[a],m=d.transferSize,w=d.initiatorType,M=d.duration;if(m&&M&&fE(w)){for(w=0,M=d.responseEnd,a+=1;a<i.length;a++){var Z=i[a],ae=Z.startTime;if(ae>M)break;var pe=Z.transferSize,ge=Z.initiatorType;pe&&fE(ge)&&(Z=Z.responseEnd,w+=pe*(Z<M?1:(M-ae)/(Z-ae)))}if(--a,r+=8*(m+w)/(d.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Dm=null,zm=null;function pf(t){return t.nodeType===9?t:t.ownerDocument}function dE(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hE(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Nm(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var km=null;function D9(){var t=window.event;return t&&t.type==="popstate"?t===km?!1:(km=t,!0):(km=null,!1)}var pE=typeof setTimeout=="function"?setTimeout:void 0,z9=typeof clearTimeout=="function"?clearTimeout:void 0,mE=typeof Promise=="function"?Promise:void 0,N9=typeof queueMicrotask=="function"?queueMicrotask:typeof mE<"u"?function(t){return mE.resolve(null).then(t).catch(k9)}:pE;function k9(t){setTimeout(function(){throw t})}function xi(t){return t==="head"}function gE(t,r){var i=r,a=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(a===0){t.removeChild(d),ma(r);return}a--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")a++;else if(i==="html")Ll(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Ll(i);for(var m=i.firstChild;m;){var w=m.nextSibling,M=m.nodeName;m[pr]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=w}}else i==="body"&&Ll(t.ownerDocument.body);i=d}while(i);ma(r)}function yE(t,r){var i=t;t=0;do{var a=i.nextSibling;if(i.nodeType===1?r?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(r?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),a&&a.nodeType===8)if(i=a.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=a}while(i)}function jm(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":jm(i),er(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function j9(t,r,i,a){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[pr])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=Ir(t.nextSibling),t===null)break}return null}function L9(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Ir(t.nextSibling),t===null))return null;return t}function vE(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=Ir(t.nextSibling),t===null))return null;return t}function Lm(t){return t.data==="$?"||t.data==="$~"}function Pm(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function P9(t,r){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||i.readyState!=="loading")r();else{var a=function(){r(),i.removeEventListener("DOMContentLoaded",a)};i.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ir(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var Im=null;function bE(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(r===0)return Ir(t.nextSibling);r--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||r++}t=t.nextSibling}return null}function SE(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(r===0)return t;r--}else i!=="/$"&&i!=="/&"||r++}t=t.previousSibling}return null}function wE(t,r,i){switch(r=pf(i),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Ll(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);er(t)}var Ur=new Map,xE=new Set;function mf(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Zo=O.d;O.d={f:I9,r:U9,D:V9,C:H9,L:F9,m:B9,X:G9,S:Z9,M:Y9};function I9(){var t=Zo.f(),r=sf();return t||r}function U9(t){var r=tr(t);r!==null&&r.tag===5&&r.type==="form"?Uw(r):Zo.r(t)}var da=typeof document>"u"?null:document;function EE(t,r,i){var a=da;if(a&&typeof r=="string"&&r){var d=Dr(r);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),xE.has(d)||(xE.add(d),t={rel:t,crossOrigin:i,href:r},a.querySelector(d)===null&&(r=a.createElement("link"),Un(r,"link",t),on(r),a.head.appendChild(r)))}}function V9(t){Zo.D(t),EE("dns-prefetch",t,null)}function H9(t,r){Zo.C(t,r),EE("preconnect",t,r)}function F9(t,r,i){Zo.L(t,r,i);var a=da;if(a&&t&&r){var d='link[rel="preload"][as="'+Dr(r)+'"]';r==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+Dr(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+Dr(i.imageSizes)+'"]')):d+='[href="'+Dr(t)+'"]';var m=d;switch(r){case"style":m=ha(t);break;case"script":m=pa(t)}Ur.has(m)||(t=y({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),Ur.set(m,t),a.querySelector(d)!==null||r==="style"&&a.querySelector(Pl(m))||r==="script"&&a.querySelector(Il(m))||(r=a.createElement("link"),Un(r,"link",t),on(r),a.head.appendChild(r)))}}function B9(t,r){Zo.m(t,r);var i=da;if(i&&t){var a=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+Dr(a)+'"][href="'+Dr(t)+'"]',m=d;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=pa(t)}if(!Ur.has(m)&&(t=y({rel:"modulepreload",href:t},r),Ur.set(m,t),i.querySelector(d)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Il(m)))return}a=i.createElement("link"),Un(a,"link",t),on(a),i.head.appendChild(a)}}}function Z9(t,r,i){Zo.S(t,r,i);var a=da;if(a&&t){var d=mr(a).hoistableStyles,m=ha(t);r=r||"default";var w=d.get(m);if(!w){var M={loading:0,preload:null};if(w=a.querySelector(Pl(m)))M.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":r},i),(i=Ur.get(m))&&Um(t,i);var Z=w=a.createElement("link");on(Z),Un(Z,"link",t),Z._p=new Promise(function(ae,pe){Z.onload=ae,Z.onerror=pe}),Z.addEventListener("load",function(){M.loading|=1}),Z.addEventListener("error",function(){M.loading|=2}),M.loading|=4,gf(w,r,a)}w={type:"stylesheet",instance:w,count:1,state:M},d.set(m,w)}}}function G9(t,r){Zo.X(t,r);var i=da;if(i&&t){var a=mr(i).hoistableScripts,d=pa(t),m=a.get(d);m||(m=i.querySelector(Il(d)),m||(t=y({src:t,async:!0},r),(r=Ur.get(d))&&Vm(t,r),m=i.createElement("script"),on(m),Un(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},a.set(d,m))}}function Y9(t,r){Zo.M(t,r);var i=da;if(i&&t){var a=mr(i).hoistableScripts,d=pa(t),m=a.get(d);m||(m=i.querySelector(Il(d)),m||(t=y({src:t,async:!0,type:"module"},r),(r=Ur.get(d))&&Vm(t,r),m=i.createElement("script"),on(m),Un(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},a.set(d,m))}}function TE(t,r,i,a){var d=(d=ie.current)?mf(d):null;if(!d)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=ha(i.href),i=mr(d).hoistableStyles,a=i.get(r),a||(a={type:"style",instance:null,count:0,state:null},i.set(r,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=ha(i.href);var m=mr(d).hoistableStyles,w=m.get(t);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,w),(m=d.querySelector(Pl(t)))&&!m._p&&(w.instance=m,w.state.loading=5),Ur.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ur.set(t,i),m||$9(d,t,i,w.state))),r&&a===null)throw Error(s(528,""));return w}if(r&&a!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=pa(i),i=mr(d).hoistableScripts,a=i.get(r),a||(a={type:"script",instance:null,count:0,state:null},i.set(r,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function ha(t){return'href="'+Dr(t)+'"'}function Pl(t){return'link[rel="stylesheet"]['+t+"]"}function CE(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function $9(t,r,i,a){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?a.loading=1:(r=t.createElement("link"),a.preload=r,r.addEventListener("load",function(){return a.loading|=1}),r.addEventListener("error",function(){return a.loading|=2}),Un(r,"link",i),on(r),t.head.appendChild(r))}function pa(t){return'[src="'+Dr(t)+'"]'}function Il(t){return"script[async]"+t}function RE(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var a=t.querySelector('style[data-href~="'+Dr(i.href)+'"]');if(a)return r.instance=a,on(a),a;var d=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),on(a),Un(a,"style",d),gf(a,i.precedence,t),r.instance=a;case"stylesheet":d=ha(i.href);var m=t.querySelector(Pl(d));if(m)return r.state.loading|=4,r.instance=m,on(m),m;a=CE(i),(d=Ur.get(d))&&Um(a,d),m=(t.ownerDocument||t).createElement("link"),on(m);var w=m;return w._p=new Promise(function(M,Z){w.onload=M,w.onerror=Z}),Un(m,"link",a),r.state.loading|=4,gf(m,i.precedence,t),r.instance=m;case"script":return m=pa(i.src),(d=t.querySelector(Il(m)))?(r.instance=d,on(d),d):(a=i,(d=Ur.get(m))&&(a=y({},i),Vm(a,d)),t=t.ownerDocument||t,d=t.createElement("script"),on(d),Un(d,"link",a),t.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(a=r.instance,r.state.loading|=4,gf(a,i.precedence,t));return r.instance}function gf(t,r,i){for(var a=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=a.length?a[a.length-1]:null,m=d,w=0;w<a.length;w++){var M=a[w];if(M.dataset.precedence===r)m=M;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function Um(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Vm(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var yf=null;function OE(t,r,i){if(yf===null){var a=new Map,d=yf=new Map;d.set(i,a)}else d=yf,a=d.get(i),a||(a=new Map,d.set(i,a));if(a.has(t))return a;for(a.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var m=i[d];if(!(m[pr]||m[Qe]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var w=m.getAttribute(r)||"";w=t+w;var M=a.get(w);M?M.push(m):a.set(w,[m])}}return a}function _E(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function q9(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(t=r.disabled,typeof r.precedence=="string"&&t==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function AE(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function X9(t,r,i,a){if(i.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=ha(a.href),m=r.querySelector(Pl(d));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=vf.bind(t),r.then(t,t)),i.state.loading|=4,i.instance=m,on(m);return}m=r.ownerDocument||r,a=CE(a),(d=Ur.get(d))&&Um(a,d),m=m.createElement("link"),on(m);var w=m;w._p=new Promise(function(M,Z){w.onload=M,w.onerror=Z}),Un(m,"link",a),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=vf.bind(t),r.addEventListener("load",i),r.addEventListener("error",i))}}var Hm=0;function Q9(t,r){return t.stylesheets&&t.count===0&&Sf(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var a=setTimeout(function(){if(t.stylesheets&&Sf(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+r);0<t.imgBytes&&Hm===0&&(Hm=62500*M9());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Sf(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>Hm?50:800)+r);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(d)}}:null}function vf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Sf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var bf=null;function Sf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,bf=new Map,r.forEach(K9,t),bf=null,vf.call(t))}function K9(t,r){if(!(r.state.loading&4)){var i=bf.get(t);if(i)var a=i.get(null);else{i=new Map,bf.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var w=d[m];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(i.set(w.dataset.precedence,w),a=w)}a&&i.set(null,a)}d=r.instance,w=d.getAttribute("data-precedence"),m=i.get(w)||a,m===a&&i.set(null,d),i.set(w,d),this.count++,a=vf.bind(this),d.addEventListener("load",a),d.addEventListener("error",a),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),r.state.loading|=4}}var Ul={$$typeof:j,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function W9(t,r,i,a,d,m,w,M,Z){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xe(0),this.hiddenUpdates=xe(null),this.identifierPrefix=a,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function ME(t,r,i,a,d,m,w,M,Z,ae,pe,ge){return t=new W9(t,r,i,w,Z,ae,pe,ge,M),r=1,m===!0&&(r|=24),m=yr(3,null,null,r),t.current=m,m.stateNode=t,r=Sp(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:a,isDehydrated:i,cache:r},Tp(m),t}function DE(t){return t?(t=Gs,t):Gs}function zE(t,r,i,a,d,m){d=DE(d),a.context===null?a.context=d:a.pendingContext=d,a=fi(r),a.payload={element:i},m=m===void 0?null:m,m!==null&&(a.callback=m),i=di(t,a,r),i!==null&&(ar(i,t,r),yl(i,t,r))}function NE(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function Fm(t,r){NE(t,r),(t=t.alternate)&&NE(t,r)}function kE(t){if(t.tag===13||t.tag===31){var r=es(t,67108864);r!==null&&ar(r,t,67108864),Fm(t,67108864)}}function jE(t){if(t.tag===13||t.tag===31){var r=xr();r=Ge(r);var i=es(t,r);i!==null&&ar(i,t,r),Fm(t,r)}}var wf=!0;function J9(t,r,i,a){var d=_.T;_.T=null;var m=O.p;try{O.p=2,Bm(t,r,i,a)}finally{O.p=m,_.T=d}}function ej(t,r,i,a){var d=_.T;_.T=null;var m=O.p;try{O.p=8,Bm(t,r,i,a)}finally{O.p=m,_.T=d}}function Bm(t,r,i,a){if(wf){var d=Zm(a);if(d===null)Am(t,r,a,xf,i),PE(t,a);else if(nj(d,t,r,i,a))a.stopPropagation();else if(PE(t,a),r&4&&-1<tj.indexOf(t)){for(;d!==null;){var m=tr(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var w=mt(m.pendingLanes);if(w!==0){var M=m;for(M.pendingLanes|=2,M.entangledLanes|=2;w;){var Z=1<<31-dt(w);M.entanglements[1]|=Z,w&=~Z}ho(m),(Nt&6)===0&&(rf=X()+500,Nl(0))}}break;case 31:case 13:M=es(m,2),M!==null&&ar(M,m,2),sf(),Fm(m,2)}if(m=Zm(a),m===null&&Am(t,r,a,xf,i),m===d)break;d=m}d!==null&&a.stopPropagation()}else Am(t,r,a,null,i)}}function Zm(t){return t=Yh(t),Gm(t)}var xf=null;function Gm(t){if(xf=null,t=_n(t),t!==null){var r=c(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=u(r),t!==null)return t;t=null}else if(i===31){if(t=f(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return xf=t,null}function LE(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ve()){case we:return 2;case be:return 8;case Ne:case qe:return 32;case He:return 268435456;default:return 32}default:return 32}}var Ym=!1,Ei=null,Ti=null,Ci=null,Vl=new Map,Hl=new Map,Ri=[],tj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function PE(t,r){switch(t){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":Ci=null;break;case"pointerover":case"pointerout":Vl.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hl.delete(r.pointerId)}}function Fl(t,r,i,a,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:i,eventSystemFlags:a,nativeEvent:m,targetContainers:[d]},r!==null&&(r=tr(r),r!==null&&kE(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),t)}function nj(t,r,i,a,d){switch(r){case"focusin":return Ei=Fl(Ei,t,r,i,a,d),!0;case"dragenter":return Ti=Fl(Ti,t,r,i,a,d),!0;case"mouseover":return Ci=Fl(Ci,t,r,i,a,d),!0;case"pointerover":var m=d.pointerId;return Vl.set(m,Fl(Vl.get(m)||null,t,r,i,a,d)),!0;case"gotpointercapture":return m=d.pointerId,Hl.set(m,Fl(Hl.get(m)||null,t,r,i,a,d)),!0}return!1}function IE(t){var r=_n(t.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=u(i),r!==null){t.blockedOn=r,nt(t.priority,function(){jE(i)});return}}else if(r===31){if(r=f(i),r!==null){t.blockedOn=r,nt(t.priority,function(){jE(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ef(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=Zm(t.nativeEvent);if(i===null){i=t.nativeEvent;var a=new i.constructor(i.type,i);Gh=a,i.target.dispatchEvent(a),Gh=null}else return r=tr(i),r!==null&&kE(r),t.blockedOn=i,!1;r.shift()}return!0}function UE(t,r,i){Ef(t)&&i.delete(r)}function rj(){Ym=!1,Ei!==null&&Ef(Ei)&&(Ei=null),Ti!==null&&Ef(Ti)&&(Ti=null),Ci!==null&&Ef(Ci)&&(Ci=null),Vl.forEach(UE),Hl.forEach(UE)}function Tf(t,r){t.blockedOn===r&&(t.blockedOn=null,Ym||(Ym=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rj)))}var Cf=null;function VE(t){Cf!==t&&(Cf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cf===t&&(Cf=null);for(var r=0;r<t.length;r+=3){var i=t[r],a=t[r+1],d=t[r+2];if(typeof a!="function"){if(Gm(a||i)===null)continue;break}var m=tr(i);m!==null&&(t.splice(r,3),r-=3,Zp(m,{pending:!0,data:d,method:i.method,action:a},a,d))}}))}function ma(t){function r(Z){return Tf(Z,t)}Ei!==null&&Tf(Ei,t),Ti!==null&&Tf(Ti,t),Ci!==null&&Tf(Ci,t),Vl.forEach(r),Hl.forEach(r);for(var i=0;i<Ri.length;i++){var a=Ri[i];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Ri.length&&(i=Ri[0],i.blockedOn===null);)IE(i),i.blockedOn===null&&Ri.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(a=0;a<i.length;a+=3){var d=i[a],m=i[a+1],w=d[$t]||null;if(typeof m=="function")w||VE(i);else if(w){var M=null;if(m&&m.hasAttribute("formAction")){if(d=m,w=m[$t]||null)M=w.formAction;else if(Gm(d)!==null)continue}else M=w.action;typeof M=="function"?i[a+1]=M:(i.splice(a,3),a-=3),VE(i)}}}function HE(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(w){return d=w})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),a||setTimeout(i,20)}function i(){if(!a&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(i,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function $m(t){this._internalRoot=t}Rf.prototype.render=$m.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,a=xr();zE(i,a,t,r,null,null)},Rf.prototype.unmount=$m.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;zE(t.current,2,null,t,null,null),sf(),r[xn]=null}};function Rf(t){this._internalRoot=t}Rf.prototype.unstable_scheduleHydration=function(t){if(t){var r=tt();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Ri.length&&r!==0&&r<Ri[i].priority;i++);Ri.splice(i,0,t),i===0&&IE(t)}};var FE=n.version;if(FE!=="19.2.4")throw Error(s(527,FE,"19.2.4"));O.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=h(r),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var oj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Of=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Of.isDisabled&&Of.supportsFiber)try{et=Of.inject(oj),Xe=Of}catch{}}return va.createRoot=function(t,r){if(!l(t))throw Error(s(299));var i=!1,a="",d=Xw,m=Qw,w=Kw;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError)),r=ME(t,1,!1,null,null,i,a,null,d,m,w,HE),t[xn]=r.current,_m(t),new $m(r)},va.hydrateRoot=function(t,r,i){if(!l(t))throw Error(s(299));var a=!1,d="",m=Xw,w=Qw,M=Kw,Z=null;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(w=i.onCaughtError),i.onRecoverableError!==void 0&&(M=i.onRecoverableError),i.formState!==void 0&&(Z=i.formState)),r=ME(t,1,!0,r,i??null,a,d,Z,m,w,M,HE),r.context=DE(null),i=r.current,a=xr(),a=Ge(a),d=fi(a),d.callback=null,di(i,d,a),i=a,r.current.lanes=i,je(r,i),ho(r),t[xn]=r.current,_m(t),new Rf(r)},va.version="19.2.4",va}var og;function QE(){if(og)return Mf.exports;og=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Mf.exports=XE(),Mf.exports}var KE=QE();const ig=_f(KE);var Sa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zl=typeof window>"u"||"Deno"in globalThis;function Er(){}function WE(e,n){return typeof e=="function"?e(n):e}function JE(e){return typeof e=="number"&&e>=0&&e!==1/0}function e2(e,n){return Math.max(e+(n||0)-Date.now(),0)}function jf(e,n){return typeof e=="function"?e(n):e}function t2(e,n){return typeof e=="function"?e(n):e}function sg(e,n){const{type:o="all",exact:s,fetchStatus:l,predicate:c,queryKey:u,stale:f}=e;if(u){if(s){if(n.queryHash!==Lf(u,n.options))return!1}else if(!wa(n.queryKey,u))return!1}if(o!=="all"){const p=n.isActive();if(o==="active"&&!p||o==="inactive"&&p)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||l&&l!==n.state.fetchStatus||c&&!c(n))}function ag(e,n){const{exact:o,status:s,predicate:l,mutationKey:c}=e;if(c){if(!n.options.mutationKey)return!1;if(o){if(_i(n.options.mutationKey)!==_i(c))return!1}else if(!wa(n.options.mutationKey,c))return!1}return!(s&&n.state.status!==s||l&&!l(n))}function Lf(e,n){return(n?.queryKeyHashFn||_i)(e)}function _i(e){return JSON.stringify(e,(n,o)=>Pf(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o)}function wa(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(o=>wa(e[o],n[o])):!1}function lg(e,n){if(e===n)return e;const o=cg(e)&&cg(n);if(o||Pf(e)&&Pf(n)){const s=o?e:Object.keys(e),l=s.length,c=o?n:Object.keys(n),u=c.length,f=o?[]:{},p=new Set(s);let h=0;for(let g=0;g<u;g++){const y=o?g:c[g];(!o&&p.has(y)||o)&&e[y]===void 0&&n[y]===void 0?(f[y]=void 0,h++):(f[y]=lg(e[y],n[y]),f[y]===e[y]&&e[y]!==void 0&&h++)}return l===u&&h===l?e:f}return n}function n2(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(e[o]!==n[o])return!1;return!0}function cg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pf(e){if(!ug(e))return!1;const n=e.constructor;if(n===void 0)return!0;const o=n.prototype;return!(!ug(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ug(e){return Object.prototype.toString.call(e)==="[object Object]"}function r2(e){return new Promise(n=>{setTimeout(n,e)})}function o2(e,n,o){return typeof o.structuralSharing=="function"?o.structuralSharing(e,n):o.structuralSharing!==!1?lg(e,n):n}function i2(e,n,o=0){const s=[...e,n];return o&&s.length>o?s.slice(1):s}function s2(e,n,o=0){const s=[n,...e];return o&&s.length>o?s.slice(0,-1):s}var If=Symbol();function fg(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===If?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function a2(e,n){return typeof e=="function"?e(...n):!!e}var l2=class extends Sa{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Zl&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},dg=new l2,c2=class extends Sa{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Zl&&window.addEventListener){const n=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(o=>{o(e)}))}isOnline(){return this.#e}},Gl=new c2;function u2(){let e,n;const o=new Promise((l,c)=>{e=l,n=c});o.status="pending",o.catch(()=>{});function s(l){Object.assign(o,l),delete o.resolve,delete o.reject}return o.resolve=l=>{s({status:"fulfilled",value:l}),e(l)},o.reject=l=>{s({status:"rejected",reason:l}),n(l)},o}function f2(e){return Math.min(1e3*2**e,3e4)}function hg(e){return(e??"online")==="online"?Gl.isOnline():!0}var pg=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Uf(e){return e instanceof pg}function mg(e){let n=!1,o=0,s=!1,l;const c=u2(),u=T=>{s||(b(new pg(T)),e.abort?.())},f=()=>{n=!0},p=()=>{n=!1},h=()=>dg.isFocused()&&(e.networkMode==="always"||Gl.isOnline())&&e.canRun(),g=()=>hg(e.networkMode)&&e.canRun(),y=T=>{s||(s=!0,e.onSuccess?.(T),l?.(),c.resolve(T))},b=T=>{s||(s=!0,e.onError?.(T),l?.(),c.reject(T))},S=()=>new Promise(T=>{l=C=>{(s||h())&&T(C)},e.onPause?.()}).then(()=>{l=void 0,s||e.onContinue?.()}),x=()=>{if(s)return;let T;const C=o===0?e.initialPromise:void 0;try{T=C??e.fn()}catch(E){T=Promise.reject(E)}Promise.resolve(T).then(y).catch(E=>{if(s)return;const L=e.retry??(Zl?0:3),j=e.retryDelay??f2,k=typeof j=="function"?j(o,E):j,R=L===!0||typeof L=="number"&&o<L||typeof L=="function"&&L(o,E);if(n||!R){b(E);return}o++,e.onFail?.(o,E),r2(k).then(()=>h()?void 0:S()).then(()=>{n?b(E):x()})})};return{promise:c,cancel:u,continue:()=>(l?.(),c),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?x():S().then(x),c)}}var d2=e=>setTimeout(e,0);function h2(){let e=[],n=0,o=f=>{f()},s=f=>{f()},l=d2;const c=f=>{n?e.push(f):l(()=>{o(f)})},u=()=>{const f=e;e=[],f.length&&l(()=>{s(()=>{f.forEach(p=>{o(p)})})})};return{batch:f=>{let p;n++;try{p=f()}finally{n--,n||u()}return p},batchCalls:f=>(...p)=>{c(()=>{f(...p)})},schedule:c,setNotifyFunction:f=>{o=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{l=f}}}var zn=h2(),gg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),JE(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},p2=class extends gg{#e;#t;#n;#r;#o;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=g2(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const o=o2(this.state.data,e,this.options);return this.#i({data:o,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),o}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#o?.promise;return this.#o?.cancel(e),n?n.then(Er).catch(Er):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>t2(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===If||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>jf(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!e2(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#o&&(this.#a?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,n){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const o=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#a=!0,o.signal)})},l=()=>{const p=fg(this.options,n),g=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#a=!1,this.options.persister?this.options.persister(p,g,this):p(g)},u=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return s(p),p})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta});const f=p=>{Uf(p)&&p.silent||this.#i({type:"error",error:p}),Uf(p)||(this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this)),this.scheduleGc()};return this.#o=mg({initialPromise:n?.initialPromise,fn:u.fetchFn,abort:o.abort.bind(o),onSuccess:p=>{if(p===void 0){f(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(h){f(h);return}this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),this.scheduleGc()},onError:f,onFail:(p,h)=>{this.#i({type:"failed",failureCount:p,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}),this.#o.start()}#i(e){const n=o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...m2(o.data,this.options),fetchMeta:e.meta??null};case"success":return this.#t=void 0,{...o,data:e.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return Uf(s)&&s.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...o,error:s,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=n(this.state),zn.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function m2(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hg(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function g2(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,o=n!==void 0,s=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:o?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var y2=class extends Sa{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,o){const s=n.queryKey,l=n.queryHash??Lf(s,n);let c=this.get(l);return c||(c=new p2({client:e,queryKey:s,queryHash:l,options:e.defaultQueryOptions(n),state:o,defaultOptions:e.getQueryDefaults(s)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){zn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(o=>sg(n,o))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(o=>sg(e,o)):n}notify(e){zn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){zn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){zn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},v2=class extends gg{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||yg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#r({type:"continue"})};this.#n=mg({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const o=this.state.status==="pending",s=!this.#n.canStart();try{if(o)n();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#t.config.onMutate?.(e,this);const c=await this.options.onMutate?.(e);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:s})}const l=await this.#n.start();return await this.#t.config.onSuccess?.(l,e,this.state.context,this),await this.options.onSuccess?.(l,e,this.state.context),await this.#t.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,e,this.state.context),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#t.config.onError?.(l,e,this.state.context,this),await this.options.onError?.(l,e,this.state.context),await this.#t.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,e,this.state.context),l}finally{this.#r({type:"error",error:l})}}finally{this.#t.runNext(this)}}#r(e){const n=o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),zn.batch(()=>{this.#e.forEach(o=>{o.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function yg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var b2=class extends Sa{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,o){const s=new v2({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:o});return this.add(s),s}add(e){this.#e.add(e);const n=Yl(e);if(typeof n=="string"){const o=this.#t.get(n);o?o.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=Yl(e);if(typeof n=="string"){const o=this.#t.get(n);if(o)if(o.length>1){const s=o.indexOf(e);s!==-1&&o.splice(s,1)}else o[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Yl(e);if(typeof n=="string"){const s=this.#t.get(n)?.find(l=>l.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=Yl(e);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){zn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(o=>ag(n,o))}findAll(e={}){return this.getAll().filter(n=>ag(e,n))}notify(e){zn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return zn.batch(()=>Promise.all(e.map(n=>n.continue().catch(Er))))}};function Yl(e){return e.options.scope?.id}function vg(e){return{onFetch:(n,o)=>{const s=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,c=n.state.data?.pages||[],u=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const h=async()=>{let g=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(n.signal.aborted?g=!0:n.signal.addEventListener("abort",()=>{g=!0}),n.signal)})},b=fg(n.options,n.fetchOptions),S=async(x,T,C)=>{if(g)return Promise.reject();if(T==null&&x.pages.length)return Promise.resolve(x);const L=(()=>{const N={client:n.client,queryKey:n.queryKey,pageParam:T,direction:C?"backward":"forward",meta:n.options.meta};return y(N),N})(),j=await b(L),{maxPages:k}=n.options,R=C?s2:i2;return{pages:R(x.pages,j,k),pageParams:R(x.pageParams,T,k)}};if(l&&c.length){const x=l==="backward",T=x?S2:bg,C={pages:c,pageParams:u},E=T(s,C);f=await S(C,E,x)}else{const x=e??c.length;do{const T=p===0?u[0]??s.initialPageParam:bg(s,f);if(p>0&&T==null)break;f=await S(f,T),p++}while(p<x)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},o):n.fetchFn=h}}}function bg(e,{pages:n,pageParams:o}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,o[s],o):void 0}function S2(e,{pages:n,pageParams:o}){return n.length>0?e.getPreviousPageParam?.(n[0],n,o[0],o):void 0}var w2=class{#e;#t;#n;#r;#o;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new y2,this.#t=e.mutationCache||new b2,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=dg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Gl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),o=this.#e.build(this,n),s=o.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(jf(n.staleTime,o))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:o})=>{const s=o.data;return[n,s]})}setQueryData(e,n,o){const s=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(s.queryHash)?.state.data,u=WE(n,c);if(u!==void 0)return this.#e.build(this,s).setData(u,{...o,manual:!0})}setQueriesData(e,n,o){return zn.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,o)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;zn.batch(()=>{n.findAll(e).forEach(o=>{n.remove(o)})})}resetQueries(e,n){const o=this.#e;return zn.batch(()=>(o.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const o={revert:!0,...n},s=zn.batch(()=>this.#e.findAll(e).map(l=>l.cancel(o)));return Promise.all(s).then(Er).catch(Er)}invalidateQueries(e,n={}){return zn.batch(()=>(this.#e.findAll(e).forEach(o=>{o.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const o={...n,cancelRefetch:n.cancelRefetch??!0},s=zn.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,o);return o.throwOnError||(c=c.catch(Er)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Er)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const o=this.#e.build(this,n);return o.isStaleByTime(jf(n.staleTime,o))?o.fetch(n):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Er).catch(Er)}fetchInfiniteQuery(e){return e.behavior=vg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Er).catch(Er)}ensureInfiniteQueryData(e){return e.behavior=vg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Gl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(_i(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],o={};return n.forEach(s=>{wa(e,s.queryKey)&&Object.assign(o,s.defaultOptions)}),o}setMutationDefaults(e,n){this.#o.set(_i(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#o.values()],o={};return n.forEach(s=>{wa(e,s.mutationKey)&&Object.assign(o,s.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Lf(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===If&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},x2=class extends Sa{#e;#t=void 0;#n;#r;constructor(n,o){super(),this.#e=n,this.setOptions(o),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const o=this.options;this.options=this.#e.defaultMutationOptions(n),n2(this.options,o)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),o?.mutationKey&&this.options.mutationKey&&_i(o.mutationKey)!==_i(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#o(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#s()}mutate(n,o){return this.#r=o,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(n)}#o(){const n=this.#n?.state??yg();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){zn.batch(()=>{if(this.#r&&this.hasListeners()){const o=this.#t.variables,s=this.#t.context;n?.type==="success"?(this.#r.onSuccess?.(n.data,o,s),this.#r.onSettled?.(n.data,null,o,s)):n?.type==="error"&&(this.#r.onError?.(n.error,o,s),this.#r.onSettled?.(void 0,n.error,o,s))}this.listeners.forEach(o=>{o(this.#t)})})}},v=ba();const Ai=_f(v),Sg=ga({__proto__:null,default:Ai},[v]);var wg=v.createContext(void 0),E2=e=>{const n=v.useContext(wg);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},T2=({client:e,children:n})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(wg.Provider,{value:e,children:n}));function Vr(e,n){const o=E2(),[s]=v.useState(()=>new x2(o,e));v.useEffect(()=>{s.setOptions(e)},[s,e]);const l=v.useSyncExternalStore(v.useCallback(u=>s.subscribe(zn.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=v.useCallback((u,f)=>{s.mutate(u,f).catch(Er)},[s]);if(l.error&&a2(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}var Vf=function(){return Vf=Object.assign||function(n){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},Vf.apply(this,arguments)};function qr(e,n,o,s){function l(c){return c instanceof o?c:new o(function(u){u(c)})}return new(o||(o=Promise))(function(c,u){function f(g){try{h(s.next(g))}catch(y){u(y)}}function p(g){try{h(s.throw(g))}catch(y){u(y)}}function h(g){g.done?c(g.value):l(g.value).then(f,p)}h((s=s.apply(e,n||[])).next())})}function Xr(e,n){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,l,c,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=f(0),u.throw=f(1),u.return=f(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(h){return function(g){return p([h,g])}}function p(h){if(s)throw new TypeError("Generator is already executing.");for(;u&&(u=0,h[0]&&(o=0)),o;)try{if(s=1,l&&(c=h[0]&2?l.return:h[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,h[1])).done)return c;switch(l=0,c&&(h=[h[0]&2,c.value]),h[0]){case 0:case 1:c=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,l=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]<c[3])){o.label=h[1];break}if(h[0]===6&&o.label<c[1]){o.label=c[1],c=h;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(h);break}c[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(e,o)}catch(g){h=[6,g],l=0}finally{s=c=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function C2(e,n){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var s=o.call(e),l,c=[],u;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)c.push(l.value)}catch(f){u={error:f}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(u)throw u.error}}return c}function xg(e,n,o){if(o||arguments.length===2)for(var s=0,l=n.length,c;s<l;s++)(c||!(s in n))&&(c||(c=Array.prototype.slice.call(n,0,s)),c[s]=n[s]);return e.concat(c||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var Eg="4.6.2";function $l(e,n){return new Promise(function(o){return setTimeout(o,e,n)})}function R2(){return new Promise(function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)})}function O2(e,n){n===void 0&&(n=1/0);var o=window.requestIdleCallback;return o?new Promise(function(s){return o.call(window,function(){return s()},{timeout:n})}):$l(Math.min(e,n))}function Tg(e){return!!e&&typeof e.then=="function"}function Cg(e,n){try{var o=e();Tg(o)?o.then(function(s){return n(!0,s)},function(s){return n(!1,s)}):n(!0,o)}catch(s){n(!1,s)}}function Rg(e,n,o){return o===void 0&&(o=16),qr(this,void 0,void 0,function(){var s,l,c,u;return Xr(this,function(f){switch(f.label){case 0:s=Array(e.length),l=Date.now(),c=0,f.label=1;case 1:return c<e.length?(s[c]=n(e[c],c),u=Date.now(),u>=l+o?(l=u,[4,R2()]):[3,3]):[3,4];case 2:f.sent(),f.label=3;case 3:return++c,[3,1];case 4:return[2,s]}})})}function xa(e){return e.then(void 0,function(){}),e}function _2(e,n){for(var o=0,s=e.length;o<s;++o)if(e[o]===n)return!0;return!1}function A2(e,n){return!_2(e,n)}function Hf(e){return parseInt(e)}function Hr(e){return parseFloat(e)}function po(e,n){return typeof e=="number"&&isNaN(e)?n:e}function Fn(e){return e.reduce(function(n,o){return n+(o?1:0)},0)}function Og(e,n){if(n===void 0&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var o=1/n;return Math.round(e*o)/o}function M2(e){for(var n,o,s="Unexpected syntax '".concat(e,"'"),l=/^\s*([a-z-]*)(.*)$/i.exec(e),c=l[1]||void 0,u={},f=/([.:#][\w-]+|\[.+?\])/gi,p=function(b,S){u[b]=u[b]||[],u[b].push(S)};;){var h=f.exec(l[2]);if(!h)break;var g=h[0];switch(g[0]){case".":p("class",g.slice(1));break;case"#":p("id",g.slice(1));break;case"[":{var y=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(g);if(y)p(y[1],(o=(n=y[4])!==null&&n!==void 0?n:y[5])!==null&&o!==void 0?o:"");else throw new Error(s);break}default:throw new Error(s)}}return[c,u]}function D2(e){for(var n=new Uint8Array(e.length),o=0;o<e.length;o++){var s=e.charCodeAt(o);if(s>127)return new TextEncoder().encode(e);n[o]=s}return n}function Go(e,n){var o=e[0]>>>16,s=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=n[0]>>>16,f=n[0]&65535,p=n[1]>>>16,h=n[1]&65535,g=0,y=0,b=0,S=0;S+=c+h,b+=S>>>16,S&=65535,b+=l+p,y+=b>>>16,b&=65535,y+=s+f,g+=y>>>16,y&=65535,g+=o+u,g&=65535,e[0]=g<<16|y,e[1]=b<<16|S}function Tr(e,n){var o=e[0]>>>16,s=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,u=n[0]>>>16,f=n[0]&65535,p=n[1]>>>16,h=n[1]&65535,g=0,y=0,b=0,S=0;S+=c*h,b+=S>>>16,S&=65535,b+=l*h,y+=b>>>16,b&=65535,b+=c*p,y+=b>>>16,b&=65535,y+=s*h,g+=y>>>16,y&=65535,y+=l*p,g+=y>>>16,y&=65535,y+=c*f,g+=y>>>16,y&=65535,g+=o*h+s*p+l*f+c*u,g&=65535,e[0]=g<<16|y,e[1]=b<<16|S}function hs(e,n){var o=e[0];n%=64,n===32?(e[0]=e[1],e[1]=o):n<32?(e[0]=o<<n|e[1]>>>32-n,e[1]=e[1]<<n|o>>>32-n):(n-=32,e[0]=e[1]<<n|o>>>32-n,e[1]=o<<n|e[1]>>>32-n)}function lr(e,n){n%=64,n!==0&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function Wt(e,n){e[0]^=n[0],e[1]^=n[1]}var z2=[4283543511,3981806797],N2=[3301882366,444984403];function _g(e){var n=[0,e[0]>>>1];Wt(e,n),Tr(e,z2),n[1]=e[0]>>>1,Wt(e,n),Tr(e,N2),n[1]=e[0]>>>1,Wt(e,n)}var ql=[2277735313,289559509],Xl=[1291169091,658871167],Ag=[0,5],k2=[0,1390208809],j2=[0,944331445];function L2(e,n){var o=D2(e);n=n||0;var s=[0,o.length],l=s[1]%16,c=s[1]-l,u=[0,n],f=[0,n],p=[0,0],h=[0,0],g;for(g=0;g<c;g=g+16)p[0]=o[g+4]|o[g+5]<<8|o[g+6]<<16|o[g+7]<<24,p[1]=o[g]|o[g+1]<<8|o[g+2]<<16|o[g+3]<<24,h[0]=o[g+12]|o[g+13]<<8|o[g+14]<<16|o[g+15]<<24,h[1]=o[g+8]|o[g+9]<<8|o[g+10]<<16|o[g+11]<<24,Tr(p,ql),hs(p,31),Tr(p,Xl),Wt(u,p),hs(u,27),Go(u,f),Tr(u,Ag),Go(u,k2),Tr(h,Xl),hs(h,33),Tr(h,ql),Wt(f,h),hs(f,31),Go(f,u),Tr(f,Ag),Go(f,j2);p[0]=0,p[1]=0,h[0]=0,h[1]=0;var y=[0,0];switch(l){case 15:y[1]=o[g+14],lr(y,48),Wt(h,y);case 14:y[1]=o[g+13],lr(y,40),Wt(h,y);case 13:y[1]=o[g+12],lr(y,32),Wt(h,y);case 12:y[1]=o[g+11],lr(y,24),Wt(h,y);case 11:y[1]=o[g+10],lr(y,16),Wt(h,y);case 10:y[1]=o[g+9],lr(y,8),Wt(h,y);case 9:y[1]=o[g+8],Wt(h,y),Tr(h,Xl),hs(h,33),Tr(h,ql),Wt(f,h);case 8:y[1]=o[g+7],lr(y,56),Wt(p,y);case 7:y[1]=o[g+6],lr(y,48),Wt(p,y);case 6:y[1]=o[g+5],lr(y,40),Wt(p,y);case 5:y[1]=o[g+4],lr(y,32),Wt(p,y);case 4:y[1]=o[g+3],lr(y,24),Wt(p,y);case 3:y[1]=o[g+2],lr(y,16),Wt(p,y);case 2:y[1]=o[g+1],lr(y,8),Wt(p,y);case 1:y[1]=o[g],Wt(p,y),Tr(p,ql),hs(p,31),Tr(p,Xl),Wt(u,p)}return Wt(u,s),Wt(f,s),Go(u,f),Go(f,u),_g(u),_g(f),Go(u,f),Go(f,u),("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)}function P2(e){var n;return Vf({name:e.name,message:e.message,stack:(n=e.stack)===null||n===void 0?void 0:n.split(`
11
+ `)},e)}function I2(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function U2(e){return typeof e!="function"}function V2(e,n){var o=xa(new Promise(function(s){var l=Date.now();Cg(e.bind(null,n),function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var f=Date.now()-l;if(!c[0])return s(function(){return{error:c[1],duration:f}});var p=c[1];if(U2(p))return s(function(){return{value:p,duration:f}});s(function(){return new Promise(function(h){var g=Date.now();Cg(p,function(){for(var y=[],b=0;b<arguments.length;b++)y[b]=arguments[b];var S=f+Date.now()-g;if(!y[0])return h({error:y[1],duration:S});h({value:y[1],duration:S})})})})})}));return function(){return o.then(function(l){return l()})}}function H2(e,n,o,s){var l=Object.keys(e).filter(function(u){return A2(o,u)}),c=xa(Rg(l,function(u){return V2(e[u],n)},s));return function(){return qr(this,void 0,void 0,function(){var f,p,h,g,y;return Xr(this,function(b){switch(b.label){case 0:return[4,c];case 1:return f=b.sent(),[4,Rg(f,function(S){return xa(S())},s)];case 2:return p=b.sent(),[4,Promise.all(p)];case 3:for(h=b.sent(),g={},y=0;y<l.length;++y)g[l[y]]=h[y];return[2,g]}})})}}function Mg(){var e=window,n=navigator;return Fn(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function F2(){var e=window,n=navigator;return Fn(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!Mg()}function Ea(){var e=window,n=navigator;return Fn(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,(n.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Fr(){var e=window,n=navigator;return Fn(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,n.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Ff(){var e=window,n=e.HTMLElement,o=e.Document;return Fn(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),o&&"pointerLockElement"in o.prototype])>=4}function Ta(){var e=window;return I2(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Dg(){var e,n,o=window;return Fn(["buildID"in navigator,"MozAppearance"in((n=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&n!==void 0?n:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4}function B2(){var e=window;return Fn([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Z2(){var e=window,n=e.URLPattern;return Fn(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function G2(){var e=window;return Fn(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Ca(){var e=window,n=navigator,o=e.CSS,s=e.HTMLButtonElement;return Fn([!("getStorageUpdates"in n),s&&"popover"in s.prototype,"CSSCounterStyleRule"in e,o.supports("font-size-adjust: ex-height 0.5"),o.supports("text-transform: full-width")])>=4}function Y2(){if(navigator.platform==="iPad")return!0;var e=screen,n=e.width/e.height;return Fn(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}function $2(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function q2(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Bf(){var e=Ea(),n=Dg(),o=window,s=navigator,l="connection";return e?Fn([!("SharedWorker"in o),s[l]&&"ontypechange"in s[l],!("sinkId"in new Audio)])>=2:n?Fn(["onorientationchange"in o,"orientation"in o,/android/i.test(s.appVersion)])>=2:!1}function X2(){var e=navigator,n=window,o=Audio.prototype,s=n.visualViewport;return Fn(["srLatency"in o,"srChannelCount"in o,"devicePosture"in e,s&&"segments"in s,"getTextInformation"in Image.prototype])>=3}function Q2(){return J2()?-4:K2()}function K2(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(W2())return-1;var o=4500,s=5e3,l=new n(1,s,44100),c=l.createOscillator();c.type="triangle",c.frequency.value=1e4;var u=l.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,c.connect(u),u.connect(l.destination),c.start(0);var f=eT(l),p=f[0],h=f[1],g=xa(p.then(function(y){return tT(y.getChannelData(0).subarray(o))},function(y){if(y.name==="timeout"||y.name==="suspended")return-3;throw y}));return function(){return h(),g}}function W2(){return Fr()&&!Ff()&&!G2()}function J2(){return Fr()&&Ca()&&Ta()||Ea()&&X2()&&Z2()}function eT(e){var n=3,o=500,s=500,l=5e3,c=function(){},u=new Promise(function(f,p){var h=!1,g=0,y=0;e.oncomplete=function(x){return f(x.renderedBuffer)};var b=function(){setTimeout(function(){return p(zg("timeout"))},Math.min(s,y+l-Date.now()))},S=function(){try{var x=e.startRendering();switch(Tg(x)&&xa(x),e.state){case"running":y=Date.now(),h&&b();break;case"suspended":document.hidden||g++,h&&g>=n?p(zg("suspended")):setTimeout(S,o);break}}catch(T){p(T)}};S(),c=function(){h||(h=!0,y>0&&b())}});return[u,c]}function tT(e){for(var n=0,o=0;o<e.length;++o)n+=Math.abs(e[o]);return n}function zg(e){var n=new Error(e);return n.name=e,n}function Ng(e,n,o){var s,l,c;return o===void 0&&(o=50),qr(this,void 0,void 0,function(){var u,f;return Xr(this,function(p){switch(p.label){case 0:u=document,p.label=1;case 1:return u.body?[3,3]:[4,$l(o)];case 2:return p.sent(),[3,1];case 3:f=u.createElement("iframe"),p.label=4;case 4:return p.trys.push([4,,10,11]),[4,new Promise(function(h,g){var y=!1,b=function(){y=!0,h()},S=function(C){y=!0,g(C)};f.onload=b,f.onerror=S;var x=f.style;x.setProperty("display","block","important"),x.position="absolute",x.top="0",x.left="0",x.visibility="hidden",n&&"srcdoc"in f?f.srcdoc=n:f.src="about:blank",u.body.appendChild(f);var T=function(){var C,E;y||(((E=(C=f.contentWindow)===null||C===void 0?void 0:C.document)===null||E===void 0?void 0:E.readyState)==="complete"?b():setTimeout(T,10))};T()})];case 5:p.sent(),p.label=6;case 6:return!((l=(s=f.contentWindow)===null||s===void 0?void 0:s.document)===null||l===void 0)&&l.body?[3,8]:[4,$l(o)];case 7:return p.sent(),[3,6];case 8:return[4,e(f,f.contentWindow)];case 9:return[2,p.sent()];case 10:return(c=f.parentNode)===null||c===void 0||c.removeChild(f),[7];case 11:return[2]}})})}function nT(e){for(var n=M2(e),o=n[0],s=n[1],l=document.createElement(o??"div"),c=0,u=Object.keys(s);c<u.length;c++){var f=u[c],p=s[f].join(" ");f==="style"?rT(l.style,p):l.setAttribute(f,p)}return l}function rT(e,n){for(var o=0,s=n.split(";");o<s.length;o++){var l=s[o],c=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(l);if(c){var u=c[1],f=c[2],p=c[4];e.setProperty(u,f,p||"")}}}function oT(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(o){if(o instanceof Error&&o.name==="SecurityError")return!0;throw o}e=n}}var iT="mmMwWLliI0O&1",sT="48px",ps=["monospace","sans-serif","serif"],kg=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function aT(){var e=this;return Ng(function(n,o){var s=o.document;return qr(e,void 0,void 0,function(){var l,c,u,f,p,h,g,y,b,S,x,T;return Xr(this,function(C){for(l=s.body,l.style.fontSize=sT,c=s.createElement("div"),c.style.setProperty("visibility","hidden","important"),u={},f={},p=function(E){var L=s.createElement("span"),j=L.style;return j.position="absolute",j.top="0",j.left="0",j.fontFamily=E,L.textContent=iT,c.appendChild(L),L},h=function(E,L){return p("'".concat(E,"',").concat(L))},g=function(){return ps.map(p)},y=function(){for(var E={},L=function(N){E[N]=ps.map(function(z){return h(N,z)})},j=0,k=kg;j<k.length;j++){var R=k[j];L(R)}return E},b=function(E){return ps.some(function(L,j){return E[j].offsetWidth!==u[L]||E[j].offsetHeight!==f[L]})},S=g(),x=y(),l.appendChild(c),T=0;T<ps.length;T++)u[ps[T]]=S[T].offsetWidth,f[ps[T]]=S[T].offsetHeight;return[2,kg.filter(function(E){return b(x[E])})]})})})}function lT(){var e=navigator.plugins;if(e){for(var n=[],o=0;o<e.length;++o){var s=e[o];if(s){for(var l=[],c=0;c<s.length;++c){var u=s[c];l.push({type:u.type,suffixes:u.suffixes})}n.push({name:s.name,description:s.description,mimeTypes:l})}}return n}}function cT(){return uT(yT())}function uT(e){var n,o=!1,s,l,c=fT(),u=c[0],f=c[1];return dT(u,f)?(o=hT(f),e?s=l="skipped":(n=pT(u,f),s=n[0],l=n[1])):s=l="unsupported",{winding:o,geometry:s,text:l}}function fT(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function dT(e,n){return!!(n&&e.toDataURL)}function hT(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function pT(e,n){mT(e,n);var o=Zf(e),s=Zf(e);if(o!==s)return["unstable","unstable"];gT(e,n);var l=Zf(e);return[l,o]}function mT(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var o="Cwm fjordbank gly ".concat("😃");n.fillText(o,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(o,4,45)}function gT(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var o=0,s=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];o<s.length;o++){var l=s[o],c=l[0],u=l[1],f=l[2];n.fillStyle=c,n.beginPath(),n.arc(u,f,40,0,Math.PI*2,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,Math.PI*2,!0),n.arc(60,60,20,0,Math.PI*2,!0),n.fill("evenodd")}function Zf(e){return e.toDataURL()}function yT(){return Fr()&&Ca()&&Ta()}function vT(){var e=navigator,n=0,o;e.maxTouchPoints!==void 0?n=Hf(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),o=!0}catch{o=!1}var s="ontouchstart"in window;return{maxTouchPoints:n,touchEvent:o,touchStart:s}}function bT(){return navigator.oscpu}function ST(){var e=navigator,n=[],o=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(o!==void 0&&n.push([o]),Array.isArray(e.languages))Ea()&&B2()||n.push(e.languages);else if(typeof e.languages=="string"){var s=e.languages;s&&n.push(s.split(","))}return n}function wT(){return window.screen.colorDepth}function xT(){return po(Hr(navigator.deviceMemory),void 0)}function ET(){if(!(Fr()&&Ca()&&Ta()))return TT()}function TT(){var e=screen,n=function(s){return po(Hf(s),null)},o=[n(e.width),n(e.height)];return o.sort().reverse(),o}var CT=2500,RT=10,Ql,Gf;function OT(){if(Gf===void 0){var e=function(){var n=Yf();$f(n)?Gf=setTimeout(e,CT):(Ql=n,Gf=void 0)};e()}}function _T(){var e=this;return OT(),function(){return qr(e,void 0,void 0,function(){var n;return Xr(this,function(o){switch(o.label){case 0:return n=Yf(),$f(n)?Ql?[2,xg([],Ql,!0)]:$2()?[4,q2()]:[3,2]:[3,2];case 1:o.sent(),n=Yf(),o.label=2;case 2:return $f(n)||(Ql=n),[2,n]}})})}}function AT(){var e=this;if(Fr()&&Ca()&&Ta())return function(){return Promise.resolve(void 0)};var n=_T();return function(){return qr(e,void 0,void 0,function(){var o,s;return Xr(this,function(l){switch(l.label){case 0:return[4,n()];case 1:return o=l.sent(),s=function(c){return c===null?null:Og(c,RT)},[2,[s(o[0]),s(o[1]),s(o[2]),s(o[3])]]}})})}}function Yf(){var e=screen;return[po(Hr(e.availTop),null),po(Hr(e.width)-Hr(e.availWidth)-po(Hr(e.availLeft),0),null),po(Hr(e.height)-Hr(e.availHeight)-po(Hr(e.availTop),0),null),po(Hr(e.availLeft),null)]}function $f(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function MT(){return po(Hf(navigator.hardwareConcurrency),void 0)}function DT(){var e,n=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(n){var o=new n().resolvedOptions().timeZone;if(o)return o}var s=-zT();return"UTC".concat(s>=0?"+":"").concat(s)}function zT(){var e=new Date().getFullYear();return Math.max(Hr(new Date(e,0,1).getTimezoneOffset()),Hr(new Date(e,6,1).getTimezoneOffset()))}function NT(){try{return!!window.sessionStorage}catch{return!0}}function kT(){try{return!!window.localStorage}catch{return!0}}function jT(){if(!(Mg()||F2()))try{return!!window.indexedDB}catch{return!0}}function LT(){return!!window.openDatabase}function PT(){return navigator.cpuClass}function IT(){var e=navigator.platform;return e==="MacIntel"&&Fr()&&!Ff()?Y2()?"iPad":"iPhone":e}function UT(){return navigator.vendor||""}function VT(){for(var e=[],n=0,o=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<o.length;n++){var s=o[n],l=window[s];l&&typeof l=="object"&&e.push(s)}return e.sort()}function HT(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}}function FT(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function BT(e){var n=e===void 0?{}:e,o=n.debug;return qr(this,void 0,void 0,function(){var s,l,c,u,f,p;return Xr(this,function(h){switch(h.label){case 0:return ZT()?(s=FT(),l=Object.keys(s),c=(p=[]).concat.apply(p,l.map(function(g){return s[g]})),[4,GT(c)]):[2,void 0];case 1:return u=h.sent(),o&&YT(s,u),f=l.filter(function(g){var y=s[g],b=Fn(y.map(function(S){return u[S]}));return b>y.length*.6}),f.sort(),[2,f]}})})}function ZT(){return Fr()||Bf()}function GT(e){var n;return qr(this,void 0,void 0,function(){var o,s,l,c,p,u,f,p;return Xr(this,function(h){switch(h.label){case 0:for(o=document,s=o.createElement("div"),l=new Array(e.length),c={},jg(s),p=0;p<e.length;++p)u=nT(e[p]),u.tagName==="DIALOG"&&u.show(),f=o.createElement("div"),jg(f),f.appendChild(u),s.appendChild(f),l[p]=u;h.label=1;case 1:return o.body?[3,3]:[4,$l(50)];case 2:return h.sent(),[3,1];case 3:o.body.appendChild(s);try{for(p=0;p<e.length;++p)l[p].offsetParent||(c[e[p]]=!0)}finally{(n=s.parentNode)===null||n===void 0||n.removeChild(s)}return[2,c]}})})}function jg(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function YT(e,n){for(var o="DOM blockers debug:\n```",s=0,l=Object.keys(e);s<l.length;s++){var c=l[s];o+=`
12
12
  `.concat(c,":");for(var u=0,f=e[c];u<f.length;u++){var p=f[u];o+=`
13
- `.concat(n[p]?"🚫":"➡️"," ").concat(p)}}console.log("".concat(o,"\n```"))}function GT(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var o=n[e];if(matchMedia("(color-gamut: ".concat(o,")")).matches)return o}}function YT(){if(jg("inverted"))return!0;if(jg("none"))return!1}function jg(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function $T(){if(Lg("active"))return!0;if(Lg("none"))return!1}function Lg(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var qT=100;function XT(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=qT;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function QT(){if(hs("no-preference"))return 0;if(hs("high")||hs("more"))return 1;if(hs("low")||hs("less"))return-1;if(hs("forced"))return 10}function hs(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function KT(){if(Pg("reduce"))return!0;if(Pg("no-preference"))return!1}function Pg(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function WT(){if(Ig("reduce"))return!0;if(Ig("no-preference"))return!1}function Ig(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function JT(){if(Ug("high"))return!0;if(Ug("standard"))return!1}function Ug(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var kt=Math,Bn=function(){return 0};function eC(){var e=kt.acos||Bn,n=kt.acosh||Bn,o=kt.asin||Bn,s=kt.asinh||Bn,l=kt.atanh||Bn,c=kt.atan||Bn,u=kt.sin||Bn,f=kt.sinh||Bn,p=kt.cos||Bn,h=kt.cosh||Bn,g=kt.tan||Bn,y=kt.tanh||Bn,b=kt.exp||Bn,S=kt.expm1||Bn,x=kt.log1p||Bn,T=function(P){return kt.pow(kt.PI,P)},C=function(P){return kt.log(P+kt.sqrt(P*P-1))},E=function(P){return kt.log(P+kt.sqrt(P*P+1))},L=function(P){return kt.log((1+P)/(1-P))/2},j=function(P){return kt.exp(P)-1/kt.exp(P)/2},k=function(P){return(kt.exp(P)+1/kt.exp(P))/2},R=function(P){return kt.exp(P)-1},N=function(P){return(kt.exp(2*P)-1)/(kt.exp(2*P)+1)},z=function(P){return kt.log(1+P)};return{acos:e(.12312423423423424),acosh:n(1e308),acoshPf:C(1e154),asin:o(.12312423423423424),asinh:s(1),asinhPf:E(1),atanh:l(.5),atanhPf:L(.5),atan:c(.5),sin:u(-1e300),sinh:f(1),sinhPf:j(1),cos:p(10.000000000123),cosh:h(1),coshPf:k(1),tan:g(-1e300),tanh:y(1),tanhPf:N(1),exp:b(1),expm1:S(1),expm1Pf:R(1),log1p:x(10),log1pPf:z(10),powPI:T(-100)}}var tC="mmMwWLliI0fiflO&1",$f={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function nC(){return rC(function(e,n){for(var o={},s={},l=0,c=Object.keys($f);l<c.length;l++){var u=c[l],f=$f[u],p=f[0],h=p===void 0?{}:p,g=f[1],y=g===void 0?tC:g,b=e.createElement("span");b.textContent=y,b.style.whiteSpace="nowrap";for(var S=0,x=Object.keys(h);S<x.length;S++){var T=x[S],C=h[T];C!==void 0&&(b.style[T]=C)}o[u]=b,n.append(e.createElement("br"),b)}for(var E=0,L=Object.keys($f);E<L.length;E++){var u=L[E];s[u]=o[u].getBoundingClientRect().width}return s})}function rC(e,n){return n===void 0&&(n=4e3),zg(function(o,s){var l=s.document,c=l.body,u=c.style;u.width="".concat(n,"px"),u.webkitTextSizeAdjust=u.textSizeAdjust="none",Ea()?c.style.zoom="".concat(1/s.devicePixelRatio):Fr()&&(c.style.zoom="reset");var f=l.createElement("div");return f.textContent=wg([],Array(n/20<<0),!0).map(function(){return"word"}).join(" "),c.appendChild(f),e(l,c)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function oC(){return navigator.pdfViewerEnabled}function iC(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}function sC(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(aC())return-3;try{return e.canMakePayments()?1:0}catch(n){return lC(n)}}var aC=nT;function lC(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function cC(){var e,n=document.createElement("a"),o=(e=n.attributionSourceId)!==null&&e!==void 0?e:n.attributionsourceid;return o===void 0?void 0:String(o)}var Vg=-1,Hg=-2,uC=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),fC=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),dC=["FRAGMENT_SHADER","VERTEX_SHADER"],hC=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Fg="WEBGL_debug_renderer_info",pC="WEBGL_polygon_mode";function mC(e){var n,o,s,l,c,u,f=e.cache,p=Bg(f);if(!p)return Vg;if(!Yg(p))return Hg;var h=Gg()?null:p.getExtension(Fg);return{version:((n=p.getParameter(p.VERSION))===null||n===void 0?void 0:n.toString())||"",vendor:((o=p.getParameter(p.VENDOR))===null||o===void 0?void 0:o.toString())||"",vendorUnmasked:h?(s=p.getParameter(h.UNMASKED_VENDOR_WEBGL))===null||s===void 0?void 0:s.toString():"",renderer:((l=p.getParameter(p.RENDERER))===null||l===void 0?void 0:l.toString())||"",rendererUnmasked:h?(c=p.getParameter(h.UNMASKED_RENDERER_WEBGL))===null||c===void 0?void 0:c.toString():"",shadingLanguageVersion:((u=p.getParameter(p.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function gC(e){var n=e.cache,o=Bg(n);if(!o)return Vg;if(!Yg(o))return Hg;var s=o.getSupportedExtensions(),l=o.getContextAttributes(),c=[],u=[],f=[],p=[],h=[];if(l)for(var g=0,y=Object.keys(l);g<y.length;g++){var b=y[g];u.push("".concat(b,"=").concat(l[b]))}for(var S=Zg(o),x=0,T=S;x<T.length;x++){var C=T[x],E=o[C];f.push("".concat(C,"=").concat(E).concat(uC.has(E)?"=".concat(o.getParameter(E)):""))}if(s)for(var L=0,j=s;L<j.length;L++){var k=j[L];if(!(k===Fg&&Gg()||k===pC&&bC())){var R=o.getExtension(k);if(!R){c.push(k);continue}for(var N=0,z=Zg(R);N<z.length;N++){var C=z[N],E=R[C];p.push("".concat(C,"=").concat(E).concat(fC.has(E)?"=".concat(o.getParameter(E)):""))}}}for(var P=0,K=dC;P<K.length;P++)for(var G=K[P],q=0,te=hC;q<te.length;q++){var ee=te[q],F=yC(o,G,ee);h.push("".concat(G,".").concat(ee,"=").concat(F.join(",")))}return p.sort(),f.sort(),{contextAttributes:u,parameters:f,shaderPrecisions:h,extensions:s,extensionParameters:p,unsupportedExtensions:c}}function Bg(e){if(e.webgl)return e.webgl.context;var n=document.createElement("canvas"),o;n.addEventListener("webglCreateContextError",function(){return o=void 0});for(var s=0,l=["webgl","experimental-webgl"];s<l.length;s++){var c=l[s];try{o=n.getContext(c)}catch{}if(o)break}return e.webgl={context:o},o}function yC(e,n,o){var s=e.getShaderPrecisionFormat(e[n],e[o]);return s?[s.rangeMin,s.rangeMax,s.precision]:[]}function Zg(e){var n=Object.keys(e.__proto__);return n.filter(vC)}function vC(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function Gg(){return Mg()}function bC(){return Ea()||Fr()}function Yg(e){return typeof e.getParameter=="function"}function SC(){var e=Ff()||Fr();if(!e)return-2;if(!window.AudioContext)return-1;var n=new AudioContext().baseLatency;return n==null?-1:isFinite(n)?n:-3}function wC(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var n=e().resolvedOptions().locale;return!n&&n!==""?-3:n}var xC={fonts:iT,domBlockers:HT,fontPreferences:nC,audio:q2,screenFrame:OT,canvas:aT,osCpu:yT,languages:vT,colorDepth:bT,deviceMemory:ST,screenResolution:wT,hardwareConcurrency:_T,timezone:AT,sessionStorage:DT,localStorage:zT,indexedDB:NT,openDatabase:kT,cpuClass:jT,platform:LT,plugins:sT,touchSupport:gT,vendor:PT,vendorFlavors:IT,cookiesEnabled:UT,colorGamut:GT,invertedColors:YT,forcedColors:$T,monochrome:XT,contrast:QT,reducedMotion:KT,reducedTransparency:WT,hdr:JT,math:eC,pdfViewerEnabled:oC,architecture:iC,applePay:sC,privateClickMeasurement:cC,audioBaseLatency:SC,dateTimeLocale:wC,webGlBasics:mC,webGlExtensions:gC};function EC(e){return U2(xC,e,[])}var TC="$ if upgrade to Pro: https://fpjs.dev/pro";function CC(e){var n=RC(e),o=OC(n);return{score:n,comment:TC.replace(/\$/g,"".concat(o))}}function RC(e){if(Ff())return .4;if(Fr())return Hf()&&!(Ca()&&Ta())?.5:.3;var n="value"in e.platform?e.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}function OC(e){return Rg(.99+.01*e,1e-4)}function _C(e){for(var n="",o=0,s=Object.keys(e).sort();o<s.length;o++){var l=s[o],c=e[l],u="error"in c?"error":JSON.stringify(c.value);n+="".concat(n?"|":"").concat(l.replace(/([:|\\])/g,"\\$1"),":").concat(u)}return n}function $g(e){return JSON.stringify(e,function(n,o){return o instanceof Error?j2(o):o},2)}function qg(e){return k2(_C(e))}function AC(e){var n,o=CC(e);return{get visitorId(){return n===void 0&&(n=qg(this.components)),n},set visitorId(s){n=s},confidence:o,components:e,version:xg}}function MC(e){return e===void 0&&(e=50),C2(e,e*2)}function DC(e,n){var o=Date.now();return{get:function(s){return qr(this,void 0,void 0,function(){var l,c,u;return Xr(this,function(f){switch(f.label){case 0:return l=Date.now(),[4,e()];case 1:return c=f.sent(),u=AC(c),(n||s?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(u.version,`
13
+ `.concat(n[p]?"🚫":"➡️"," ").concat(p)}}console.log("".concat(o,"\n```"))}function $T(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var o=n[e];if(matchMedia("(color-gamut: ".concat(o,")")).matches)return o}}function qT(){if(Lg("inverted"))return!0;if(Lg("none"))return!1}function Lg(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function XT(){if(Pg("active"))return!0;if(Pg("none"))return!1}function Pg(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var QT=100;function KT(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=QT;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function WT(){if(ms("no-preference"))return 0;if(ms("high")||ms("more"))return 1;if(ms("low")||ms("less"))return-1;if(ms("forced"))return 10}function ms(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function JT(){if(Ig("reduce"))return!0;if(Ig("no-preference"))return!1}function Ig(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function eC(){if(Ug("reduce"))return!0;if(Ug("no-preference"))return!1}function Ug(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function tC(){if(Vg("high"))return!0;if(Vg("standard"))return!1}function Vg(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var kt=Math,Bn=function(){return 0};function nC(){var e=kt.acos||Bn,n=kt.acosh||Bn,o=kt.asin||Bn,s=kt.asinh||Bn,l=kt.atanh||Bn,c=kt.atan||Bn,u=kt.sin||Bn,f=kt.sinh||Bn,p=kt.cos||Bn,h=kt.cosh||Bn,g=kt.tan||Bn,y=kt.tanh||Bn,b=kt.exp||Bn,S=kt.expm1||Bn,x=kt.log1p||Bn,T=function(P){return kt.pow(kt.PI,P)},C=function(P){return kt.log(P+kt.sqrt(P*P-1))},E=function(P){return kt.log(P+kt.sqrt(P*P+1))},L=function(P){return kt.log((1+P)/(1-P))/2},j=function(P){return kt.exp(P)-1/kt.exp(P)/2},k=function(P){return(kt.exp(P)+1/kt.exp(P))/2},R=function(P){return kt.exp(P)-1},N=function(P){return(kt.exp(2*P)-1)/(kt.exp(2*P)+1)},z=function(P){return kt.log(1+P)};return{acos:e(.12312423423423424),acosh:n(1e308),acoshPf:C(1e154),asin:o(.12312423423423424),asinh:s(1),asinhPf:E(1),atanh:l(.5),atanhPf:L(.5),atan:c(.5),sin:u(-1e300),sinh:f(1),sinhPf:j(1),cos:p(10.000000000123),cosh:h(1),coshPf:k(1),tan:g(-1e300),tanh:y(1),tanhPf:N(1),exp:b(1),expm1:S(1),expm1Pf:R(1),log1p:x(10),log1pPf:z(10),powPI:T(-100)}}var rC="mmMwWLliI0fiflO&1",qf={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function oC(){return iC(function(e,n){for(var o={},s={},l=0,c=Object.keys(qf);l<c.length;l++){var u=c[l],f=qf[u],p=f[0],h=p===void 0?{}:p,g=f[1],y=g===void 0?rC:g,b=e.createElement("span");b.textContent=y,b.style.whiteSpace="nowrap";for(var S=0,x=Object.keys(h);S<x.length;S++){var T=x[S],C=h[T];C!==void 0&&(b.style[T]=C)}o[u]=b,n.append(e.createElement("br"),b)}for(var E=0,L=Object.keys(qf);E<L.length;E++){var u=L[E];s[u]=o[u].getBoundingClientRect().width}return s})}function iC(e,n){return n===void 0&&(n=4e3),Ng(function(o,s){var l=s.document,c=l.body,u=c.style;u.width="".concat(n,"px"),u.webkitTextSizeAdjust=u.textSizeAdjust="none",Ea()?c.style.zoom="".concat(1/s.devicePixelRatio):Fr()&&(c.style.zoom="reset");var f=l.createElement("div");return f.textContent=xg([],Array(n/20<<0),!0).map(function(){return"word"}).join(" "),c.appendChild(f),e(l,c)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function sC(){return navigator.pdfViewerEnabled}function aC(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}function lC(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(cC())return-3;try{return e.canMakePayments()?1:0}catch(n){return uC(n)}}var cC=oT;function uC(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function fC(){var e,n=document.createElement("a"),o=(e=n.attributionSourceId)!==null&&e!==void 0?e:n.attributionsourceid;return o===void 0?void 0:String(o)}var Hg=-1,Fg=-2,dC=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),hC=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),pC=["FRAGMENT_SHADER","VERTEX_SHADER"],mC=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Bg="WEBGL_debug_renderer_info",gC="WEBGL_polygon_mode";function yC(e){var n,o,s,l,c,u,f=e.cache,p=Zg(f);if(!p)return Hg;if(!$g(p))return Fg;var h=Yg()?null:p.getExtension(Bg);return{version:((n=p.getParameter(p.VERSION))===null||n===void 0?void 0:n.toString())||"",vendor:((o=p.getParameter(p.VENDOR))===null||o===void 0?void 0:o.toString())||"",vendorUnmasked:h?(s=p.getParameter(h.UNMASKED_VENDOR_WEBGL))===null||s===void 0?void 0:s.toString():"",renderer:((l=p.getParameter(p.RENDERER))===null||l===void 0?void 0:l.toString())||"",rendererUnmasked:h?(c=p.getParameter(h.UNMASKED_RENDERER_WEBGL))===null||c===void 0?void 0:c.toString():"",shadingLanguageVersion:((u=p.getParameter(p.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function vC(e){var n=e.cache,o=Zg(n);if(!o)return Hg;if(!$g(o))return Fg;var s=o.getSupportedExtensions(),l=o.getContextAttributes(),c=[],u=[],f=[],p=[],h=[];if(l)for(var g=0,y=Object.keys(l);g<y.length;g++){var b=y[g];u.push("".concat(b,"=").concat(l[b]))}for(var S=Gg(o),x=0,T=S;x<T.length;x++){var C=T[x],E=o[C];f.push("".concat(C,"=").concat(E).concat(dC.has(E)?"=".concat(o.getParameter(E)):""))}if(s)for(var L=0,j=s;L<j.length;L++){var k=j[L];if(!(k===Bg&&Yg()||k===gC&&wC())){var R=o.getExtension(k);if(!R){c.push(k);continue}for(var N=0,z=Gg(R);N<z.length;N++){var C=z[N],E=R[C];p.push("".concat(C,"=").concat(E).concat(hC.has(E)?"=".concat(o.getParameter(E)):""))}}}for(var P=0,K=pC;P<K.length;P++)for(var G=K[P],q=0,te=mC;q<te.length;q++){var ee=te[q],F=bC(o,G,ee);h.push("".concat(G,".").concat(ee,"=").concat(F.join(",")))}return p.sort(),f.sort(),{contextAttributes:u,parameters:f,shaderPrecisions:h,extensions:s,extensionParameters:p,unsupportedExtensions:c}}function Zg(e){if(e.webgl)return e.webgl.context;var n=document.createElement("canvas"),o;n.addEventListener("webglCreateContextError",function(){return o=void 0});for(var s=0,l=["webgl","experimental-webgl"];s<l.length;s++){var c=l[s];try{o=n.getContext(c)}catch{}if(o)break}return e.webgl={context:o},o}function bC(e,n,o){var s=e.getShaderPrecisionFormat(e[n],e[o]);return s?[s.rangeMin,s.rangeMax,s.precision]:[]}function Gg(e){var n=Object.keys(e.__proto__);return n.filter(SC)}function SC(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function Yg(){return Dg()}function wC(){return Ea()||Fr()}function $g(e){return typeof e.getParameter=="function"}function xC(){var e=Bf()||Fr();if(!e)return-2;if(!window.AudioContext)return-1;var n=new AudioContext().baseLatency;return n==null?-1:isFinite(n)?n:-3}function EC(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var n=e().resolvedOptions().locale;return!n&&n!==""?-3:n}var TC={fonts:aT,domBlockers:BT,fontPreferences:oC,audio:Q2,screenFrame:AT,canvas:cT,osCpu:bT,languages:ST,colorDepth:wT,deviceMemory:xT,screenResolution:ET,hardwareConcurrency:MT,timezone:DT,sessionStorage:NT,localStorage:kT,indexedDB:jT,openDatabase:LT,cpuClass:PT,platform:IT,plugins:lT,touchSupport:vT,vendor:UT,vendorFlavors:VT,cookiesEnabled:HT,colorGamut:$T,invertedColors:qT,forcedColors:XT,monochrome:KT,contrast:WT,reducedMotion:JT,reducedTransparency:eC,hdr:tC,math:nC,pdfViewerEnabled:sC,architecture:aC,applePay:lC,privateClickMeasurement:fC,audioBaseLatency:xC,dateTimeLocale:EC,webGlBasics:yC,webGlExtensions:vC};function CC(e){return H2(TC,e,[])}var RC="$ if upgrade to Pro: https://fpjs.dev/pro";function OC(e){var n=_C(e),o=AC(n);return{score:n,comment:RC.replace(/\$/g,"".concat(o))}}function _C(e){if(Bf())return .4;if(Fr())return Ff()&&!(Ca()&&Ta())?.5:.3;var n="value"in e.platform?e.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}function AC(e){return Og(.99+.01*e,1e-4)}function MC(e){for(var n="",o=0,s=Object.keys(e).sort();o<s.length;o++){var l=s[o],c=e[l],u="error"in c?"error":JSON.stringify(c.value);n+="".concat(n?"|":"").concat(l.replace(/([:|\\])/g,"\\$1"),":").concat(u)}return n}function qg(e){return JSON.stringify(e,function(n,o){return o instanceof Error?P2(o):o},2)}function Xg(e){return L2(MC(e))}function DC(e){var n,o=OC(e);return{get visitorId(){return n===void 0&&(n=Xg(this.components)),n},set visitorId(s){n=s},confidence:o,components:e,version:Eg}}function zC(e){return e===void 0&&(e=50),O2(e,e*2)}function NC(e,n){var o=Date.now();return{get:function(s){return qr(this,void 0,void 0,function(){var l,c,u;return Xr(this,function(f){switch(f.label){case 0:return l=Date.now(),[4,e()];case 1:return c=f.sent(),u=DC(c),(n||s?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(u.version,`
14
14
  userAgent: `).concat(navigator.userAgent,`
15
15
  timeBetweenLoadAndGet: `).concat(l-o,`
16
16
  visitorId: `).concat(u.visitorId,`
17
- components: `).concat($g(c),"\n```")),[2,u]}})})}}}function zC(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(xg,"/npm-monitoring"),!0),e.send()}catch(n){console.error(n)}}function NC(e){var n;return e===void 0&&(e={}),qr(this,void 0,void 0,function(){var o,s,l;return Xr(this,function(c){switch(c.label){case 0:return(!((n=e.monitoring)!==null&&n!==void 0)||n)&&zC(),o=e.delayFallback,s=e.debug,[4,MC(o)];case 1:return c.sent(),l=EC({cache:{},debug:s}),[2,DC(l,s)]}})})}var kC={load:NC,hashComponents:qg,componentsToDebugString:$g};function Xg(e){var n,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(o=Xg(e[n]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Qg(){for(var e,n,o=0,s="",l=arguments.length;o<l;o++)(e=arguments[o])&&(n=Xg(e))&&(s&&(s+=" "),s+=n);return s}const qf="-",jC=e=>{const n=PC(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{const f=u.split(qf);return f[0]===""&&f.length!==1&&f.shift(),Kg(f,n)||LC(u)},getConflictingClassGroupIds:(u,f)=>{const p=o[u]||[];return f&&s[u]?[...p,...s[u]]:p}}},Kg=(e,n)=>{if(e.length===0)return n.classGroupId;const o=e[0],s=n.nextPart.get(o),l=s?Kg(e.slice(1),s):void 0;if(l)return l;if(n.validators.length===0)return;const c=e.join(qf);return n.validators.find(({validator:u})=>u(c))?.classGroupId},Wg=/^\[(.+)\]$/,LC=e=>{if(Wg.test(e)){const n=Wg.exec(e)[1],o=n?.substring(0,n.indexOf(":"));if(o)return"arbitrary.."+o}},PC=e=>{const{theme:n,prefix:o}=e,s={nextPart:new Map,validators:[]};return UC(Object.entries(e.classGroups),o).forEach(([c,u])=>{Xf(u,s,c,n)}),s},Xf=(e,n,o,s)=>{e.forEach(l=>{if(typeof l=="string"){const c=l===""?n:Jg(n,l);c.classGroupId=o;return}if(typeof l=="function"){if(IC(l)){Xf(l(s),n,o,s);return}n.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([c,u])=>{Xf(u,Jg(n,c),o,s)})})},Jg=(e,n)=>{let o=e;return n.split(qf).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},IC=e=>e.isThemeGetter,UC=(e,n)=>n?e.map(([o,s])=>{const l=s.map(c=>typeof c=="string"?n+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([u,f])=>[n+u,f])):c);return[o,l]}):e,VC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,o=new Map,s=new Map;const l=(c,u)=>{o.set(c,u),n++,n>e&&(n=0,s=o,o=new Map)};return{get(c){let u=o.get(c);if(u!==void 0)return u;if((u=s.get(c))!==void 0)return l(c,u),u},set(c,u){o.has(c)?o.set(c,u):l(c,u)}}},ey="!",HC=e=>{const{separator:n,experimentalParseClassName:o}=e,s=n.length===1,l=n[0],c=n.length,u=f=>{const p=[];let h=0,g=0,y;for(let C=0;C<f.length;C++){let E=f[C];if(h===0){if(E===l&&(s||f.slice(C,C+c)===n)){p.push(f.slice(g,C)),g=C+c;continue}if(E==="/"){y=C;continue}}E==="["?h++:E==="]"&&h--}const b=p.length===0?f:f.substring(g),S=b.startsWith(ey),x=S?b.substring(1):b,T=y&&y>g?y-g:void 0;return{modifiers:p,hasImportantModifier:S,baseClassName:x,maybePostfixModifierPosition:T}};return o?f=>o({className:f,parseClassName:u}):u},FC=e=>{if(e.length<=1)return e;const n=[];let o=[];return e.forEach(s=>{s[0]==="["?(n.push(...o.sort(),s),o=[]):o.push(s)}),n.push(...o.sort()),n},BC=e=>({cache:VC(e.cacheSize),parseClassName:HC(e),...jC(e)}),ZC=/\s+/,GC=(e,n)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:l}=n,c=[],u=e.trim().split(ZC);let f="";for(let p=u.length-1;p>=0;p-=1){const h=u[p],{modifiers:g,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:S}=o(h);let x=!!S,T=s(x?b.substring(0,S):b);if(!T){if(!x){f=h+(f.length>0?" "+f:f);continue}if(T=s(b),!T){f=h+(f.length>0?" "+f:f);continue}x=!1}const C=FC(g).join(":"),E=y?C+ey:C,L=E+T;if(c.includes(L))continue;c.push(L);const j=l(T,x);for(let k=0;k<j.length;++k){const R=j[k];c.push(E+R)}f=h+(f.length>0?" "+f:f)}return f};function YC(){let e=0,n,o,s="";for(;e<arguments.length;)(n=arguments[e++])&&(o=ty(n))&&(s&&(s+=" "),s+=o);return s}const ty=e=>{if(typeof e=="string")return e;let n,o="";for(let s=0;s<e.length;s++)e[s]&&(n=ty(e[s]))&&(o&&(o+=" "),o+=n);return o};function $C(e,...n){let o,s,l,c=u;function u(p){const h=n.reduce((g,y)=>y(g),e());return o=BC(h),s=o.cache.get,l=o.cache.set,c=f,f(p)}function f(p){const h=s(p);if(h)return h;const g=GC(p,o);return l(p,g),g}return function(){return c(YC.apply(null,arguments))}}const qt=e=>{const n=o=>o[e]||[];return n.isThemeGetter=!0,n},ny=/^\[(?:([a-z-]+):)?(.+)\]$/i,qC=/^\d+\/\d+$/,XC=new Set(["px","full","screen"]),QC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KC=/\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$/,WC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,JC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mo=e=>ps(e)||XC.has(e)||qC.test(e),Yo=e=>ms(e,"length",lR),ps=e=>!!e&&!Number.isNaN(Number(e)),Qf=e=>ms(e,"number",ps),Ra=e=>!!e&&Number.isInteger(Number(e)),tR=e=>e.endsWith("%")&&ps(e.slice(0,-1)),yt=e=>ny.test(e),$o=e=>QC.test(e),nR=new Set(["length","size","percentage"]),rR=e=>ms(e,nR,ry),oR=e=>ms(e,"position",ry),iR=new Set(["image","url"]),sR=e=>ms(e,iR,uR),aR=e=>ms(e,"",cR),Oa=()=>!0,ms=(e,n,o)=>{const s=ny.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):o(s[2]):!1},lR=e=>KC.test(e)&&!WC.test(e),ry=()=>!1,cR=e=>JC.test(e),uR=e=>eR.test(e),Kf=$C(()=>{const e=qt("colors"),n=qt("spacing"),o=qt("blur"),s=qt("brightness"),l=qt("borderColor"),c=qt("borderRadius"),u=qt("borderSpacing"),f=qt("borderWidth"),p=qt("contrast"),h=qt("grayscale"),g=qt("hueRotate"),y=qt("invert"),b=qt("gap"),S=qt("gradientColorStops"),x=qt("gradientColorStopPositions"),T=qt("inset"),C=qt("margin"),E=qt("opacity"),L=qt("padding"),j=qt("saturate"),k=qt("scale"),R=qt("sepia"),N=qt("skew"),z=qt("space"),P=qt("translate"),K=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",yt,n],te=()=>[yt,n],ee=()=>["",mo,Yo],F=()=>["auto",ps,yt],I=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",yt],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[ps,yt];return{cacheSize:500,separator:":",theme:{colors:[Oa],spacing:[mo,Yo],blur:["none","",$o,yt],brightness:A(),borderColor:[e],borderRadius:["none","","full",$o,yt],borderSpacing:te(),borderWidth:ee(),contrast:A(),grayscale:B(),hueRotate:A(),invert:B(),gap:te(),gradientColorStops:[e],gradientColorStopPositions:[tR,Yo],inset:q(),margin:q(),opacity:A(),padding:te(),saturate:A(),scale:A(),sepia:B(),skew:A(),space:te(),translate:te()},classGroups:{aspect:[{aspect:["auto","square","video",yt]}],container:["container"],columns:[{columns:[$o]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...I(),yt]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ra,yt]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",yt]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Ra,yt]}],"grid-cols":[{"grid-cols":[Oa]}],"col-start-end":[{col:["auto",{span:["full",Ra,yt]},yt]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Oa]}],"row-start-end":[{row:["auto",{span:[Ra,yt]},yt]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",yt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",yt]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",yt,n]}],"min-w":[{"min-w":[yt,n,"min","max","fit"]}],"max-w":[{"max-w":[yt,n,"none","full","min","max","fit","prose",{screen:[$o]},$o]}],h:[{h:[yt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[yt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[yt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[yt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",$o,Yo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qf]}],"font-family":[{font:[Oa]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",yt]}],"line-clamp":[{"line-clamp":["none",ps,Qf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mo,yt]}],"list-image":[{"list-image":["none",yt]}],"list-style-type":[{list:["none","disc","decimal",yt]}],"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:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mo,Yo]}],"underline-offset":[{"underline-offset":["auto",mo,yt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:te()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",yt]}],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",yt]}],"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:[...I(),oR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:_()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[mo,yt]}],"outline-w":[{outline:[mo,Yo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[mo,Yo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$o,aR]}],"shadow-color":[{shadow:[Oa]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",$o,yt]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[j]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",yt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",yt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",yt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Ra,yt]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",yt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",yt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":te()}],"scroll-mx":[{"scroll-mx":te()}],"scroll-my":[{"scroll-my":te()}],"scroll-ms":[{"scroll-ms":te()}],"scroll-me":[{"scroll-me":te()}],"scroll-mt":[{"scroll-mt":te()}],"scroll-mr":[{"scroll-mr":te()}],"scroll-mb":[{"scroll-mb":te()}],"scroll-ml":[{"scroll-ml":te()}],"scroll-p":[{"scroll-p":te()}],"scroll-px":[{"scroll-px":te()}],"scroll-py":[{"scroll-py":te()}],"scroll-ps":[{"scroll-ps":te()}],"scroll-pe":[{"scroll-pe":te()}],"scroll-pt":[{"scroll-pt":te()}],"scroll-pr":[{"scroll-pr":te()}],"scroll-pb":[{"scroll-pb":te()}],"scroll-pl":[{"scroll-pl":te()}],"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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",yt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mo,Yo,Qf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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-s","border-color-e","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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),fR=[];function _a(e){v.useEffect(e,fR)}const oy={};function vn(e,n){const o=v.useRef(oy);return o.current===oy&&(o.current=e(n)),o}function dR(e,n){return function(s,...l){const c=new URL(e);return c.searchParams.set("code",s.toString()),l.forEach(u=>c.searchParams.append("args[]",u)),`${n} error #${s}; visit ${c} for the full message.`}}const Jt=dR("https://base-ui.com/production-error","Base UI"),Wf=v.createContext(void 0);function iy(){const e=v.useContext(Wf);if(!e)throw new Error(Jt(73));return e}const Ae=(e,n,o,s,l,c,...u)=>{if(u.length>0)throw new Error(Jt(1));let f;if(e&&n&&o&&s&&l&&c)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y),x=o(p,h,g,y),T=s(p,h,g,y),C=l(p,h,g,y);return c(b,S,x,T,C,h,g,y)};else if(e&&n&&o&&s&&l)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y),x=o(p,h,g,y),T=s(p,h,g,y);return l(b,S,x,T,h,g,y)};else if(e&&n&&o&&s)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y),x=o(p,h,g,y);return s(b,S,x,h,g,y)};else if(e&&n&&o)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y);return o(b,S,h,g,y)};else if(e&&n)f=(p,h,g,y)=>{const b=e(p,h,g,y);return n(b,h,g,y)};else if(e)f=e;else throw new Error("Missing arguments");return f};var Kl=Symbol("NOT_FOUND");function hR(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function pR(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function mR(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(o=>typeof o=="function")){const o=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${n}[${o}]`)}}var sy=e=>Array.isArray(e)?e:[e];function gR(e){const n=Array.isArray(e[0])?e[0]:e;return mR(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function yR(e,n){const o=[],{length:s}=e;for(let l=0;l<s;l++)o.push(e[l].apply(null,n));return o}function vR(e){let n;return{get(o){return n&&e(n.key,o)?n.value:Kl},put(o,s){n={key:o,value:s}},getEntries(){return n?[n]:[]},clear(){n=void 0}}}function bR(e,n){let o=[];function s(f){const p=o.findIndex(h=>n(f,h.key));if(p>-1){const h=o[p];return p>0&&(o.splice(p,1),o.unshift(h)),h.value}return Kl}function l(f,p){s(f)===Kl&&(o.unshift({key:f,value:p}),o.length>e&&o.pop())}function c(){return o}function u(){o=[]}return{get:s,put:l,getEntries:c,clear:u}}var SR=(e,n)=>e===n;function wR(e){return function(o,s){if(o===null||s===null||o.length!==s.length)return!1;const{length:l}=o;for(let c=0;c<l;c++)if(!e(o[c],s[c]))return!1;return!0}}function xR(e,n){const o=typeof n=="object"?n:{equalityCheck:n},{equalityCheck:s=SR,maxSize:l=1,resultEqualityCheck:c}=o,u=wR(s);let f=0;const p=l<=1?vR(u):bR(l,u);function h(){let g=p.get(arguments);if(g===Kl){if(g=e.apply(null,arguments),f++,c){const b=p.getEntries().find(S=>c(S.value,g));b&&(g=b.value,f!==0&&f--)}p.put(arguments,g)}return g}return h.clearCache=()=>{p.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var ER=class{constructor(e){this.value=e}deref(){return this.value}},TR=typeof WeakRef<"u"?WeakRef:ER,CR=0,ay=1;function Wl(){return{s:CR,v:void 0,o:null,p:null}}function ly(e,n={}){let o=Wl();const{resultEqualityCheck:s}=n;let l,c=0;function u(){let f=o;const{length:p}=arguments;for(let y=0,b=p;y<b;y++){const S=arguments[y];if(typeof S=="function"||typeof S=="object"&&S!==null){let x=f.o;x===null&&(f.o=x=new WeakMap);const T=x.get(S);T===void 0?(f=Wl(),x.set(S,f)):f=T}else{let x=f.p;x===null&&(f.p=x=new Map);const T=x.get(S);T===void 0?(f=Wl(),x.set(S,f)):f=T}}const h=f;let g;if(f.s===ay)g=f.v;else if(g=e.apply(null,arguments),c++,s){const y=l?.deref?.()??l;y!=null&&s(y,g)&&(g=y,c!==0&&c--),l=typeof g=="object"&&g!==null||typeof g=="function"?new TR(g):g}return h.s=ay,h.v=g,g}return u.clearCache=()=>{o=Wl(),u.resetResultsCount()},u.resultsCount=()=>c,u.resetResultsCount=()=>{c=0},u}function cy(e,...n){const o=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,s=(...l)=>{let c=0,u=0,f,p={},h=l.pop();typeof h=="object"&&(p=h,h=l.pop()),hR(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const g={...o,...p},{memoize:y,memoizeOptions:b=[],argsMemoize:S=ly,argsMemoizeOptions:x=[]}=g,T=sy(b),C=sy(x),E=gR(l),L=y(function(){return c++,h.apply(null,arguments)},...T),j=S(function(){u++;const R=yR(E,arguments);return f=L.apply(null,R),f},...C);return Object.assign(j,{resultFunc:h,memoizedResultFunc:L,dependencies:E,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:y,argsMemoize:S})};return Object.assign(s,{withTypes:()=>s}),s}var RR=cy(ly),OR=Object.assign((e,n=RR)=>{pR(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const o=Object.keys(e),s=o.map(c=>e[c]);return n(s,(...c)=>c.reduce((u,f,p)=>(u[o[p]]=f,u),{}))},{withTypes:()=>OR});const _R=cy({memoize:xR,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),AR=(...e)=>{const n=new WeakMap;let o=1;const s=e[e.length-1],l=e.length-1||1,c=s.length-l;if(c>3)throw new Error(Jt(2));return(f,p,h,g)=>{let y=f.__cacheKey__;y||(y={id:o},f.__cacheKey__=y,o+=1);let b=n.get(y);if(!b){let S=e;const x=[void 0,void 0,void 0];switch(c){case 0:break;case 1:{S=[...e.slice(0,-1),()=>x[0],s];break}case 2:{S=[...e.slice(0,-1),()=>x[0],()=>x[1],s];break}case 3:{S=[...e.slice(0,-1),()=>x[0],()=>x[1],()=>x[2],s];break}default:throw new Error(Jt(2))}b=_R(...S),b.selectorArgs=x,n.set(y,b)}switch(b.selectorArgs[0]=p,b.selectorArgs[1]=h,b.selectorArgs[2]=g,c){case 0:return b(f);case 1:return b(f,p);case 2:return b(f,p,h);case 3:return b(f,p,h,g);default:throw new Error("unreachable")}}};var Jf={exports:{}},ed={};var uy;function MR(){if(uy)return ed;uy=1;var e=ba();function n(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var o=typeof Object.is=="function"?Object.is:n,s=e.useState,l=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function f(y,b){var S=b(),x=s({inst:{value:S,getSnapshot:b}}),T=x[0].inst,C=x[1];return c(function(){T.value=S,T.getSnapshot=b,p(T)&&C({inst:T})},[y,S,b]),l(function(){return p(T)&&C({inst:T}),y(function(){p(T)&&C({inst:T})})},[y]),u(S),S}function p(y){var b=y.getSnapshot;y=y.value;try{var S=b();return!o(y,S)}catch{return!0}}function h(y,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return ed.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,ed}var fy;function dy(){return fy||(fy=1,Jf.exports=MR()),Jf.exports}var DR=dy(),td={exports:{}},nd={};var hy;function zR(){if(hy)return nd;hy=1;var e=ba(),n=dy();function o(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var s=typeof Object.is=="function"?Object.is:o,l=n.useSyncExternalStore,c=e.useRef,u=e.useEffect,f=e.useMemo,p=e.useDebugValue;return nd.useSyncExternalStoreWithSelector=function(h,g,y,b,S){var x=c(null);if(x.current===null){var T={hasValue:!1,value:null};x.current=T}else T=x.current;x=f(function(){function E(N){if(!L){if(L=!0,j=N,N=b(N),S!==void 0&&T.hasValue){var z=T.value;if(S(z,N))return k=z}return k=N}if(z=k,s(j,N))return z;var P=b(N);return S!==void 0&&S(z,P)?(j=N,z):(j=N,k=P)}var L=!1,j,k,R=y===void 0?null:y;return[function(){return E(g())},R===null?void 0:function(){return E(R())}]},[g,y,b,S]);var C=l(h,x[0],x[1]);return u(function(){T.hasValue=!0,T.value=C},[C]),p(C),C},nd}var py;function NR(){return py||(py=1,td.exports=zR()),td.exports}var kR=NR();const jR=parseInt(v.version,10);function rd(e){return jR>=e}const LR=rd(19)?IR:UR;function St(e,n,o,s,l){return LR(e,n,o,s,l)}function PR(e,n,o,s,l){const c=v.useCallback(()=>n(e.getSnapshot(),o,s,l),[e,n,o,s,l]);return DR.useSyncExternalStore(e.subscribe,c,c)}function IR(e,n,o,s,l){return PR(e,n,o,s,l)}function UR(e,n,o,s,l){return kR.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>n(c,o,s,l))}class my{constructor(n){this.state=n,this.listeners=new Set,this.updateTick=0}subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)});getSnapshot=()=>this.state;setState(n){if(this.state===n)return;this.state=n,this.updateTick+=1;const o=this.updateTick;for(const s of this.listeners){if(o!==this.updateTick)return;s(n)}}update(n){for(const o in n)if(!Object.is(this.state[o],n[o])){this.setState({...this.state,...n});return}}set(n,o){Object.is(this.state[n],o)||this.setState({...this.state,[n]:o})}notifyAll(){const n={...this.state};this.setState(n)}use(n,o,s,l){return St(this,n,o,s,l)}}const od=bg[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],VR=od&&od!==v.useLayoutEffect?od:e=>e();function Te(e){const n=vn(HR).current;return n.next=e,VR(n.effect),n.trampoline}function HR(){const e={next:void 0,callback:FR,trampoline:(...n)=>e.callback?.(...n),effect:()=>{e.callback=e.next}};return e}function FR(){}const ke=typeof document<"u"?v.useLayoutEffect:()=>{};function Tn(){}const gy=Object.freeze([]),rn=Object.freeze({});class Jl extends my{constructor(n,o={},s){super(n),this.context=o,this.selectors=s}useSyncedValue(n,o){v.useDebugValue(n),ke(()=>{this.state[n]!==o&&this.set(n,o)},[n,o])}useSyncedValueWithCleanup(n,o){const s=this;ke(()=>(s.state[n]!==o&&s.set(n,o),()=>{s.set(n,void 0)}),[s,n,o])}useSyncedValues(n){const o=this,s=Object.values(n);ke(()=>{o.update(n)},[o,...s])}useControlledProp(n,o){v.useDebugValue(n);const s=o!==void 0;ke(()=>{s&&!Object.is(this.state[n],o)&&super.setState({...this.state,[n]:o})},[n,o,s])}select(n,o,s,l){const c=this.selectors[n];return c(this.state,o,s,l)}useState(n,o,s,l){return v.useDebugValue(n),St(this,this.selectors[n],o,s,l)}useContextCallback(n,o){v.useDebugValue(n);const s=Te(o??Tn);this.context[n]=s}useStateSetter(n){const o=v.useRef(void 0);return o.current===void 0&&(o.current=s=>{this.set(n,s)}),o.current}observe(n,o){let s;typeof n=="function"?s=n:s=this.selectors[n];let l=s(this.state);return o(l,l,this),this.subscribe(c=>{const u=s(c);if(!Object.is(l,u)){const f=l;l=u,o(u,f,this)}})}}var Cr=ng();function ec(){return typeof window<"u"}function Hn(e){return id(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Qr(e){var n;return(n=(id(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function id(e){return ec()?e instanceof Node||e instanceof Lt(e).Node:!1}function bt(e){return ec()?e instanceof Element||e instanceof Lt(e).Element:!1}function Zt(e){return ec()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function gs(e){return!ec()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function qo(e){const{overflow:n,overflowX:o,overflowY:s,display:l}=Zn(e);return/auto|scroll|overlay|hidden|clip/.test(n+s+o)&&l!=="inline"&&l!=="contents"}function BR(e){return/^(table|td|th)$/.test(Hn(e))}function tc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ZR=/transform|translate|scale|rotate|perspective|filter/,GR=/paint|layout|strict|content/,Ai=e=>!!e&&e!=="none";let sd;function ad(e){const n=bt(e)?Zn(e):e;return Ai(n.transform)||Ai(n.translate)||Ai(n.scale)||Ai(n.rotate)||Ai(n.perspective)||!nc()&&(Ai(n.backdropFilter)||Ai(n.filter))||ZR.test(n.willChange||"")||GR.test(n.contain||"")}function YR(e){let n=yo(e);for(;Zt(n)&&!go(n);){if(ad(n))return n;if(tc(n))return null;n=yo(n)}return null}function nc(){return sd==null&&(sd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),sd}function go(e){return/^(html|body|#document)$/.test(Hn(e))}function Zn(e){return Lt(e).getComputedStyle(e)}function rc(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yo(e){if(Hn(e)==="html")return e;const n=e.assignedSlot||e.parentNode||gs(e)&&e.host||Qr(e);return gs(n)?n.host:n}function yy(e){const n=yo(e);return go(n)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(n)&&qo(n)?n:yy(n)}function Aa(e,n,o){var s;n===void 0&&(n=[]),o===void 0&&(o=!0);const l=yy(e),c=l===((s=e.ownerDocument)==null?void 0:s.body),u=Lt(l);if(c){const f=ld(u);return n.concat(u,u.visualViewport||[],qo(l)?l:[],f&&o?Aa(f):[])}else return n.concat(l,Aa(l,[],o))}function ld(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kr(...e){return()=>{for(let n=0;n<e.length;n+=1){const o=e[n];o&&o()}}}function Je(e){return e?.ownerDocument||document}function pt(e,n,o,s){return e.addEventListener(n,o,s),()=>{e.removeEventListener(n,o,s)}}const oc=null;class $R{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=n=>{this.isScheduled=!1;const o=this.callbacks,s=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,s>0)for(let l=0;l<o.length;l+=1)o[l]?.(n)};request(n){const o=this.nextId;return this.nextId+=1,this.callbacks.push(n),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(n){const o=n-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}}const ic=new $R;class Wr{static create(){return new Wr}static request(n){return ic.request(n)}static cancel(n){return ic.cancel(n)}currentId=oc;request(n){this.cancel(),this.currentId=ic.request(()=>{this.currentId=oc,n()})}cancel=()=>{this.currentId!==oc&&(ic.cancel(this.currentId),this.currentId=oc)};disposeEffect=()=>this.cancel}function Ma(){const e=vn(Wr.create).current;return _a(e.disposeEffect),e}const Da=0;class cr{static create(){return new cr}currentId=Da;start(n,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Da,o()},n)}isStarted(){return this.currentId!==Da}clear=()=>{this.currentId!==Da&&(clearTimeout(this.currentId),this.currentId=Da)};disposeEffect=()=>this.clear}function ur(){const e=vn(cr.create).current;return _a(e.disposeEffect),e}let vy=0;function qR(e){return vy+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${vy}`}function cd(e,n){if(typeof e=="string")return{description:e};if(typeof e=="function"){const o=e(n);return typeof o=="string"?{description:o}:o}return e}const ys=typeof navigator<"u",ud=QR(),by=WR(),Sy=KR(),fd=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),wy=ud.platform==="MacIntel"&&ud.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(ud.platform),XR=ys&&/apple/i.test(navigator.vendor),sc=ys&&/android/i.test(by)||/android/i.test(Sy);ys&&by.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const xy=Sy.includes("jsdom/");function QR(){if(!ys)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function KR(){if(!ys)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:n,version:o})=>`${n}/${o}`).join(" "):navigator.userAgent}function WR(){if(!ys)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const dd="data-base-ui-focusable",Ey="active",Ty="selected",Cy="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Xo="ArrowLeft",Qo="ArrowRight",hd="ArrowUp",za="ArrowDown";function zn(e){let n=e.activeElement;for(;n?.shadowRoot?.activeElement!=null;)n=n.shadowRoot.activeElement;return n}function Ie(e,n){if(!e||!n)return!1;const o=n.getRootNode?.();if(e.contains(n))return!0;if(o&&gs(o)){let s=n;for(;s;){if(e===s)return!0;s=s.parentNode||s.host}}return!1}function Xt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ry(e,n){if(!bt(e))return!1;const o=e;if(n.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(const[,s]of n.entries())if(Ie(s,o))return!s.hasAttribute("data-trigger-disabled");return!1}function Br(e,n){if(n==null)return!1;if("composedPath"in e)return e.composedPath().includes(n);const o=e;return o.target!=null&&n.contains(o.target)}function JR(e){return e.matches("html,body")}function pd(e){return Zt(e)&&e.matches(Cy)}function eO(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Cy}`)!=null}function md(e){return e?e.getAttribute("role")==="combobox"&&pd(e):!1}function gd(e){if(!e||xy)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Na(e){return e?e.hasAttribute(dd)?e:e.querySelector(`[${dd}]`)||e:null}function Jr(e,n,o=!0){return e.filter(l=>l.parentId===n).flatMap(l=>[...!o||l.context?.open?[l]:[],...Jr(e,l.id,o)])}function Oy(e,n){let o=[],s=e.find(l=>l.id===n)?.parentId;for(;s;){const l=e.find(c=>c.id===s);s=l?.parentId,l&&(o=o.concat(l))}return o}function fr(e){e.preventDefault(),e.stopPropagation()}function tO(e){return"nativeEvent"in e}function _y(e){return e.pointerType===""&&e.isTrusted?!0:sc&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ay(e){return xy?!1:!sc&&e.width===0&&e.height===0||sc&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function ka(e,n){const o=["mouse","pen"];return n||o.push("",void 0),o.includes(e)}function My(e){const n=e.type;return n==="click"||n==="mousedown"||n==="keydown"||n==="keyup"}const nO=["top","right","bottom","left"],vs=Math.min,dr=Math.max,ac=Math.round,Mi=Math.floor,eo=e=>({x:e,y:e}),rO={left:"right",right:"left",bottom:"top",top:"bottom"};function yd(e,n,o){return dr(e,vs(n,o))}function vo(e,n){return typeof e=="function"?e(n):e}function Wn(e){return e.split("-")[0]}function Ko(e){return e.split("-")[1]}function vd(e){return e==="x"?"y":"x"}function bd(e){return e==="y"?"height":"width"}function Rr(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function Sd(e){return vd(Rr(e))}function oO(e,n,o){o===void 0&&(o=!1);const s=Ko(e),l=Sd(e),c=bd(l);let u=l==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(u=lc(u)),[u,lc(u)]}function iO(e){const n=lc(e);return[wd(e),n,wd(n)]}function wd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dy=["left","right"],zy=["right","left"],sO=["top","bottom"],aO=["bottom","top"];function lO(e,n,o){switch(e){case"top":case"bottom":return o?n?zy:Dy:n?Dy:zy;case"left":case"right":return n?sO:aO;default:return[]}}function cO(e,n,o,s){const l=Ko(e);let c=lO(Wn(e),o==="start",s);return l&&(c=c.map(u=>u+"-"+l),n&&(c=c.concat(c.map(wd)))),c}function lc(e){const n=Wn(e);return rO[n]+e.slice(n.length)}function uO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ny(e){return typeof e!="number"?uO(e):{top:e,right:e,bottom:e,left:e}}function ja(e){const{x:n,y:o,width:s,height:l}=e;return{width:s,height:l,top:o,left:n,right:n+s,bottom:o+l,x:n,y:o}}function cc(e,n,o){return Math.floor(e/n)!==o}function uc(e,n){return n<0||n>=e.length}function xd(e,n){return Gn(e.current,{disabledIndices:n})}function ky(e,n){return Gn(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:n})}function Gn(e,{startingIndex:n=-1,decrement:o=!1,disabledIndices:s,amount:l=1}={}){let c=n;do c+=o?-l:l;while(c>=0&&c<=e.length-1&&bs(e,c,s));return c}function fO(e,{event:n,orientation:o,loopFocus:s,onLoop:l,rtl:c,cols:u,disabledIndices:f,minIndex:p,maxIndex:h,prevIndex:g,stopEvent:y=!1}){let b=g,S;if(n.key===hd?S="up":n.key===za&&(S="down"),S){const x=[],T=[];let C=!1,E=0;{let K=null,G=-1;e.forEach((q,te)=>{if(q==null)return;E+=1;const ee=q.closest('[role="row"]');ee&&(C=!0),(ee!==K||G===-1)&&(K=ee,G+=1,x[G]=[]),x[G].push(te),T[te]=G})}let L=!1,j=0;if(C)for(const K of x){const G=K.length;G>j&&(j=G),G!==u&&(L=!0)}const k=L&&E<e.length,R=j||u,N=K=>{if(!L||g===-1)return;const G=T[g];if(G==null)return;const q=x[G].indexOf(g),te=K==="up"?-1:1;for(let ee=G+te,F=0;F<x.length;F+=1,ee+=te){if(ee<0||ee>=x.length){if(!s||k)return;if(ee=ee<0?x.length-1:0,l){const _=Math.min(q,x[ee].length-1),O=x[ee][_]??x[ee][0],U=l(n,g,O);ee=T[U]??ee}}const I=x[ee];for(let _=Math.min(q,I.length-1);_>=0;_-=1){const O=I[_];if(!bs(e,O,f))return O}}},z=K=>{if(!k||g===-1)return;const G=g%R,q=K==="up"?-R:R,te=h-h%R,ee=Mi(h/R)+1;for(let F=g-G+q,I=0;I<ee;I+=1,F+=q){if(F<0||F>h){if(!s)return;F=F<0?te:0}const _=Math.min(F+R-1,h);for(let O=Math.min(F+G,_);O>=F;O-=1)if(!bs(e,O,f))return O}};y&&fr(n);const P=N(S)??z(S);if(P!==void 0)b=P;else if(g===-1)b=S==="up"?h:p;else if(b=Gn(e,{startingIndex:g,amount:R,decrement:S==="up",disabledIndices:f}),s){if(S==="up"&&(g-R<p||b<0)){const K=g%R,G=h%R,q=h-(G-K);G===K?b=h:b=G>K?q:q-R,l&&(b=l(n,g,b))}S==="down"&&g+R>h&&(b=Gn(e,{startingIndex:g%R-R,amount:R,disabledIndices:f}),l&&(b=l(n,g,b)))}uc(e,b)&&(b=g)}if(o==="both"){const x=Mi(g/u);n.key===(c?Xo:Qo)&&(y&&fr(n),g%u!==u-1?(b=Gn(e,{startingIndex:g,disabledIndices:f}),s&&cc(b,u,x)&&(b=Gn(e,{startingIndex:g-g%u-1,disabledIndices:f}),l&&(b=l(n,g,b)))):s&&(b=Gn(e,{startingIndex:g-g%u-1,disabledIndices:f}),l&&(b=l(n,g,b))),cc(b,u,x)&&(b=g)),n.key===(c?Qo:Xo)&&(y&&fr(n),g%u!==0?(b=Gn(e,{startingIndex:g,decrement:!0,disabledIndices:f}),s&&cc(b,u,x)&&(b=Gn(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:f}),l&&(b=l(n,g,b)))):s&&(b=Gn(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:f}),l&&(b=l(n,g,b))),cc(b,u,x)&&(b=g));const T=Mi(h/u)===x;uc(e,b)&&(s&&T?(b=n.key===(c?Qo:Xo)?h:Gn(e,{startingIndex:g-g%u-1,disabledIndices:f}),l&&(b=l(n,g,b))):b=g)}return b}function dO(e,n,o){const s=[];let l=0;return e.forEach(({width:c,height:u},f)=>{let p=!1;for(;!p;){const h=[];for(let g=0;g<c;g+=1)for(let y=0;y<u;y+=1)h.push(l+g+y*n);l%n+c<=n&&h.every(g=>s[g]==null)?(h.forEach(g=>{s[g]=f}),p=!0):l+=1}}),[...s]}function hO(e,n,o,s,l){if(e===-1)return-1;const c=o.indexOf(e),u=n[e];switch(l){case"tl":return c;case"tr":return u?c+u.width-1:c;case"bl":return u?c+(u.height-1)*s:c;case"br":return o.lastIndexOf(e);default:return-1}}function pO(e,n){return n.flatMap((o,s)=>e.includes(o)?[s]:[])}function bs(e,n,o){if(typeof o=="function"?o(n):o?.includes(n)??!1)return!0;const l=e[n];return l?fc(l)?!o&&(l.hasAttribute("disabled")||l.getAttribute("aria-disabled")==="true"):!0:!1}function mO(e){return e.visibility==="hidden"||e.visibility==="collapse"}function fc(e,n=e?Zn(e):null){return!e||!e.isConnected||!n||mO(n)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():n.display!=="none"&&n.display!=="contents"}const gO='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function yO(e){const n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;const o=e.getRootNode();return gs(o)?o.host:null}function Ed(e){for(const n of Array.from(e.children))if(Hn(n)==="summary")return n;return null}function vO(e,n){const o=Ed(n);return!!o&&(e===o||Ie(o,e))}function jy(e){const n=e?Hn(e):"";return e!=null&&e.matches(gO)&&(n!=="summary"||e.parentElement!=null&&Hn(e.parentElement)==="details"&&Ed(e.parentElement)===e)&&(n!=="details"||Ed(e)==null)&&(n!=="input"||e.type!=="hidden")}function Ly(e){if(!jy(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=yO(n)){const o=n!==e,s=Hn(n)==="slot";if(n.hasAttribute("inert")||o&&Hn(n)==="details"&&!n.open&&!vO(e,n)||n.hasAttribute("hidden")||!s&&!bO(n,o))return!1}return!0}function bO(e,n){const o=Zn(e);return n?o.display!=="none":fc(e,o)}function Py(e){const n=e.tabIndex;if(n<0){const o=Hn(e);if(o==="details"||o==="audio"||o==="video"||Zt(e)&&e.isContentEditable)return 0}return n}function Td(e){if(Hn(e)!=="input")return null;const n=e;return n.type==="radio"&&n.name!==""?n:null}function SO(e,n){const o=Td(e);if(!o)return!0;const s=n.find(l=>{const c=Td(l);return c?.name===o.name&&c.form===o.form&&c.checked});return s?s===o:n.find(l=>{const c=Td(l);return c?.name===o.name&&c.form===o.form})===o}function Iy(e){if(Zt(e)&&Hn(e)==="slot"){const n=e.assignedElements({flatten:!0});if(n.length>0)return n}return Zt(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Uy(e,n){Iy(e).forEach(o=>{jy(o)&&n.push(o),Uy(o,n)})}function Vy(e,n,o){Iy(e).forEach(s=>{Zt(s)&&s.matches(n)&&o.push(s),Vy(s,n,o)})}function Cd(e){return Ly(e)&&Py(e)>=0}function Hy(e){const n=[];return Uy(e,n),n.filter(Ly)}function La(e){const n=Hy(e);return n.filter(o=>Py(o)>=0&&SO(o,n))}function Fy(e,n){const o=La(e),s=o.length;if(s===0)return;const l=zn(Je(e)),c=o.indexOf(l),u=c===-1?n===1?0:s-1:c+n;return o[u]}function Rd(e){return Fy(Je(e).body,1)||e}function By(e){return Fy(Je(e).body,-1)||e}function Zy(e,n){if(!e)return null;const o=La(Je(e).body),s=o.length;if(s===0)return null;const l=o.indexOf(e);if(l===-1)return null;const c=(l+n+s)%s;return o[c]}function wO(e){return Zy(e,1)}function xO(e){return Zy(e,-1)}function Ss(e,n){const o=n||e.currentTarget,s=e.relatedTarget;return!s||!Ie(o,s)}function EO(e){La(e).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function Gy(e){const n=[];Vy(e,"[data-tabindex]",n),n.forEach(o=>{const s=o.dataset.tabindex;delete o.dataset.tabindex,s?o.setAttribute("tabindex",s):o.removeAttribute("tabindex")})}const dc=AR(e=>e.toasts,e=>{const n=new Map;let o=0,s=0;return e.forEach((l,c)=>{const u=l.transitionStatus==="ending";n.set(l.id,{value:l,domIndex:c,visibleIndex:u?-1:o,offsetY:s}),s+=l.height||0,u||(o+=1)}),n}),to={toasts:Ae(e=>e.toasts),isEmpty:Ae(e=>e.toasts.length===0),toast:Ae(dc,(e,n)=>e.get(n)?.value),toastIndex:Ae(dc,(e,n)=>e.get(n)?.domIndex??-1),toastOffsetY:Ae(dc,(e,n)=>e.get(n)?.offsetY??0),toastVisibleIndex:Ae(dc,(e,n)=>e.get(n)?.visibleIndex??-1),hovering:Ae(e=>e.hovering),focused:Ae(e=>e.focused),expanded:Ae(e=>e.hovering||e.focused),expandedOrOutOfFocus:Ae(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:Ae(e=>e.prevFocusElement)};class TO extends Jl{timers=new Map;areTimersPaused=!1;constructor(n){super(n,{},to)}setFocused(n){this.set("focused",n)}setHovering(n){this.set("hovering",n)}setIsWindowFocused(n){this.set("isWindowFocused",n)}setPrevFocusElement(n){this.set("prevFocusElement",n)}setViewport=n=>{this.set("viewport",n)};disposeEffect=()=>()=>{this.timers.forEach(n=>{n.timeout?.clear()}),this.timers.clear()};removeToast(n,o={}){const s=to.toastIndex(this.state,n);if(s===-1)return;const l=this.state.toasts[s];o.skipOnRemove||l?.onRemove?.();const c=[...this.state.toasts];c.splice(s,1),this.setToasts(c)}addToast=n=>{const{timeout:o,limit:s}=this.state,l=n.id||qR("toast");if(n.id){const h=to.toast(this.state,n.id);if(h)if(h.transitionStatus==="ending")this.removeToast(n.id,{skipOnRemove:!0});else{const{id:g,transitionStatus:y,...b}=n;return this.updateToastInternal(n.id,b,{resetTimer:!0,markUpdated:!0}),n.id}}const c={...n,id:l,updateKey:0,transitionStatus:"starting"},u=[c,...this.state.toasts],f=u.filter(h=>h.transitionStatus!=="ending");if(f.length>s){const h=f.length-s,g=f.slice(-h),y=new Set(g.map(b=>b.id));this.setToasts(u.map(b=>{const S=y.has(b.id);return b.limited!==S?{...b,limited:S}:b}))}else this.setToasts(u.map(h=>h.limited?{...h,limited:!1}:h));const p=c.timeout??o;return c.type!=="loading"&&p>0&&this.scheduleTimer(l,p,()=>this.closeToast(l)),to.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),l};updateToast=(n,o)=>{this.updateToastInternal(n,o,{markUpdated:!0})};updateToastInternal=(n,o,s={})=>{const{timeout:l,toasts:c}=this.state,u=to.toast(this.state,n)??null;if(!u||u.transitionStatus==="ending")return;const f={...u,...o,...s.markUpdated&&{updateKey:(u.updateKey??0)+1}};this.setToasts(c.map(T=>T.id===n?f:T));const p=f.timeout??l,h=u?.timeout??l,g=Object.hasOwn(o,"timeout"),y=f.transitionStatus!=="ending"&&f.type!=="loading"&&p>0,b=this.timers.has(n),S=h!==p,x=u?.type==="loading";if(!y&&b){this.timers.get(n)?.timeout?.clear(),this.timers.delete(n);return}if(y&&(!b||S||g||x||s.resetTimer)){const T=this.timers.get(n);T&&(T.timeout?.clear(),this.timers.delete(n)),this.scheduleTimer(n,p,()=>this.closeToast(n)),to.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=n=>{const o=n===void 0,{limit:s,toasts:l}=this.state;let c;if(o)c=l,this.timers.forEach(h=>{h.timeout?.clear()}),this.timers.clear();else{const h=to.toast(this.state,n);if(!h)return;c=[h];const g=this.timers.get(n);g?.timeout&&(g.timeout.clear(),this.timers.delete(n))}let u=0;const p={toasts:l.map(h=>{if(o||h.id===n)return{...h,transitionStatus:"ending",height:0};if(h.transitionStatus==="ending")return h;const g=u>=s;return u+=1,h.limited!==g?{...h,limited:g}:h})};(o||l.length===1)&&(p.hovering=!1,p.focused=!1),this.update(p),c.forEach(h=>{h.transitionStatus!=="ending"&&h.onClose?.()}),this.handleFocusManagement(n)};promiseToast=(n,o)=>{const s=cd(o.loading),l=this.addToast({...s,type:"loading"}),c=n.then(u=>{const f=cd(o.success,u);return this.updateToast(l,{...f,type:"success",timeout:f.timeout}),u}).catch(u=>{const f=cd(o.error,u);return this.updateToast(l,{...f,type:"error",timeout:f.timeout}),Promise.reject(u)});return{}.hasOwnProperty.call(o,"setPromise")&&o.setPromise(c),c};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(n=>{if(n.timeout){n.timeout.clear();const o=Date.now()-n.start,s=n.delay-o;n.remaining=s>0?s:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((n,o)=>{n.remaining=n.remaining>0?n.remaining:n.delay,n.timeout??=cr.create(),n.timeout.start(n.remaining,()=>{this.timers.delete(o),n.callback()}),n.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=n=>{if(n.pointerType!=="touch")return;const o=Xt(n);Ie(this.state.viewport,o)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(n,o,s){const l=Date.now(),c=!to.expandedOrOutOfFocus(this.state),u=c?cr.create():void 0;u?.start(o,()=>{this.timers.delete(n),s()}),this.timers.set(n,{timeout:u,start:c?l:0,delay:o,remaining:o,callback:s})}setToasts(n){const o={toasts:n};n.length===0&&(o.hovering=!1,o.focused=!1),this.update(o)}handleFocusManagement(n){const o=zn(Je(this.state.viewport));if(!this.state.viewport||!Ie(this.state.viewport,o)||!gd(o))return;if(n===void 0){this.restoreFocusToPrevElement();return}const s=to.toasts(this.state),l=to.toastIndex(this.state,n);let c=null,u=l+1;for(;u<s.length;){if(s[u].transitionStatus!=="ending"){c=s[u];break}u+=1}if(!c)for(u=l-1;u>=0;){if(s[u].transitionStatus!=="ending"){c=s[u];break}u-=1}c?c.ref?.current?.focus():this.restoreFocusToPrevElement()}}const CO=function(n){const{children:o,timeout:s=5e3,limit:l=3,toastManager:c}=n,u=vn(()=>new TO({timeout:s,limit:l,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return _a(u.disposeEffect),v.useEffect(function(){return c?c[" subscribe"](({action:h,options:g})=>{const y=g.id;h==="promise"&&g.promise?u.promiseToast(g.promise,g):h==="update"&&y?u.updateToast(y,g):h==="close"?u.closeToast(y):u.addToast(g)}):void 0},[u,s,c]),u.useSyncedValues({timeout:s,limit:l}),D.jsx(Wf.Provider,{value:u,children:o})},Yy={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},hc={...Yy,position:"fixed",top:0,left:0},$y={...Yy,position:"absolute"},bo=v.forwardRef(function(n,o){const[s,l]=v.useState();ke(()=>{XR&&l("button")},[]);const c={tabIndex:0,role:s};return D.jsx("span",{...n,ref:o,style:hc,"aria-hidden":s?void 0:!0,...c,"data-base-ui-focus-guard":""})});function Di(e,n,o,s){const l=vn(qy).current;return OO(l,e,n,o,s)&&Xy(l,[e,n,o,s]),l.callback}function RO(e){const n=vn(qy).current;return _O(n,e)&&Xy(n,e),n.callback}function qy(){return{callback:null,cleanup:null,refs:[]}}function OO(e,n,o,s,l){return e.refs[0]!==n||e.refs[1]!==o||e.refs[2]!==s||e.refs[3]!==l}function _O(e,n){return e.refs.length!==n.length||e.refs.some((o,s)=>o!==n[s])}function Xy(e,n){if(e.refs=n,n.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){const s=Array(n.length).fill(null);for(let l=0;l<n.length;l+=1){const c=n[l];if(c!=null)switch(typeof c){case"function":{const u=c(o);typeof u=="function"&&(s[l]=u);break}case"object":{c.current=o;break}}}e.cleanup=()=>{for(let l=0;l<n.length;l+=1){const c=n[l];if(c!=null)switch(typeof c){case"function":{const u=s[l];typeof u=="function"?u():c(null);break}case"object":{c.current=null;break}}}}}}}function Qy(e){if(!v.isValidElement(e))return null;const n=e,o=n.props;return(rd(19)?o?.ref:n.ref)??null}function Od(e,n){if(e&&!n)return e;if(!e&&n)return n;if(e||n)return{...e,...n}}function AO(e,n){const o={};for(const s in e){const l=e[s];if(n?.hasOwnProperty(s)){const c=n[s](l);c!=null&&Object.assign(o,c);continue}l===!0?o[`data-${s.toLowerCase()}`]="":l&&(o[`data-${s.toLowerCase()}`]=l.toString())}return o}function MO(e,n){return typeof e=="function"?e(n):e}function DO(e,n){return typeof e=="function"?e(n):e}const _d={};function no(e,n,o,s,l){if(!o&&!s&&!l&&!e)return pc(n);let c=pc(e);return n&&(c=Pa(c,n)),o&&(c=Pa(c,o)),s&&(c=Pa(c,s)),l&&(c=Pa(c,l)),c}function zO(e){if(e.length===0)return _d;if(e.length===1)return pc(e[0]);let n=pc(e[0]);for(let o=1;o<e.length;o+=1)n=Pa(n,e[o]);return n}function pc(e){return Ad(e)?{...Wy(e,_d)}:NO(e)}function Pa(e,n){return Ad(n)?Wy(n,e):kO(e,n)}function NO(e){const n={...e};for(const o in n){const s=n[o];Ky(o,s)&&(n[o]=Jy(s))}return n}function kO(e,n){if(!n)return e;for(const o in n){const s=n[o];switch(o){case"style":{e[o]=Od(e.style,s);break}case"className":{e[o]=e0(e.className,s);break}default:Ky(o,s)?e[o]=jO(e[o],s):e[o]=s}}return e}function Ky(e,n){const o=e.charCodeAt(0),s=e.charCodeAt(1),l=e.charCodeAt(2);return o===111&&s===110&&l>=65&&l<=90&&(typeof n=="function"||typeof n>"u")}function Ad(e){return typeof e=="function"}function Wy(e,n){return Ad(e)?e(n):e??_d}function jO(e,n){return n?e?(...o)=>{const s=o[0];if(t0(s)){const c=s;mc(c);const u=n(...o);return c.baseUIHandlerPrevented||e?.(...o),u}const l=n(...o);return e?.(...o),l}:Jy(n):e}function Jy(e){return e&&((...n)=>{const o=n[0];return t0(o)&&mc(o),e(...n)})}function mc(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function e0(e,n){return n?e?n+" "+e:n:e}function t0(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function At(e,n,o={}){const s=n.render,l=LO(n,o);if(o.enabled===!1)return null;const c=o.state??rn;return UO(e,s,l,c)}function LO(e,n={}){const{className:o,style:s,render:l}=e,{state:c=rn,ref:u,props:f,stateAttributesMapping:p,enabled:h=!0}=n,g=h?MO(o,c):void 0,y=h?DO(s,c):void 0,b=h?AO(c,p):rn,S=h&&f?PO(f):void 0,x=h?Od(b,S)??{}:rn;return typeof document<"u"&&(h?Array.isArray(u)?x.ref=RO([x.ref,Qy(l),...u]):x.ref=Di(x.ref,Qy(l),u):Di(null,null)),h?(g!==void 0&&(x.className=e0(x.className,g)),y!==void 0&&(x.style=Od(x.style,y)),x):rn}function PO(e){return Array.isArray(e)?zO(e):no(void 0,e)}const IO=Symbol.for("react.lazy");function UO(e,n,o,s){if(n){if(typeof n=="function")return n(o,s);const l=no(o,n.props);l.ref=o.ref;let c=n;return c?.$$typeof===IO&&(c=v.Children.toArray(n)[0]),v.cloneElement(c,l)}if(e&&typeof e=="string")return VO(e,o);throw new Error(Jt(8))}function VO(e,n){return e==="button"?v.createElement("button",{type:"button",...n,key:n.key}):e==="img"?v.createElement("img",{alt:"",...n,key:n.key}):v.createElement(e,n)}let HO=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const FO=v.forwardRef(function(n,o){const{render:s,className:l,style:c,children:u,...f}=n,p=iy(),h=ur(),g=v.useRef(!1),y=v.useRef(!1),b=v.useRef(!1),S=p.useState("isEmpty"),x=p.useState("toasts"),T=p.useState("focused"),C=p.useState("expanded"),E=p.useState("prevFocusElement"),L=x[0]?.height??0,j=v.useMemo(()=>x.some(O=>O.transitionStatus==="ending"),[x]);v.useEffect(()=>{const O=p.state.viewport;if(!O)return;function U(Q){S||Q.key==="F6"&&Xt(Q)!==O&&(Q.preventDefault(),p.setPrevFocusElement(zn(Je(O))),O?.focus({preventScroll:!0}),p.pauseTimers(),p.setFocused(!0))}const B=Lt(O);return pt(B,"keydown",U)},[p,S]),v.useEffect(()=>{const O=p.state.viewport;if(!O||S)return;const U=Lt(O);function B(A){Xt(A)===U&&(p.setIsWindowFocused(!1),p.pauseTimers())}function Q(A){if(A.relatedTarget)return;const V=Xt(A),Y=zn(Je(O));(V===U||!Ie(O,V)||!gd(Y))&&p.resumeTimers(),h.start(0,()=>p.setIsWindowFocused(!0))}return Kr(pt(U,"blur",B,!0),pt(U,"focus",Q,!0))},[p,h,S]),v.useEffect(()=>{const O=p.state.viewport;if(!O||S)return;const U=Je(O);return pt(U,"pointerdown",p.handleDocumentPointerDown,!0)},[S,p]);function k(O){const U=p.state.viewport;U&&(g.current=!0,O.relatedTarget===U?x[0]?.ref?.current?.focus():p.restoreFocusToPrevElement())}function R(O){O.key==="Tab"&&O.shiftKey&&Xt(O.nativeEvent)===p.state.viewport&&(O.preventDefault(),p.restoreFocusToPrevElement(),p.resumeTimers())}function N(){const O=p.state.toasts.some(U=>U.transitionStatus==="ending");!p.state.isWindowFocused||O||b.current||!y.current||(p.resumeTimers(),p.setHovering(!1),y.current=!1)}v.useEffect(N,[j,p]);function z(){p.pauseTimers(),p.setHovering(!0),y.current=!1}function P(){j||b.current?y.current=!0:(p.resumeTimers(),p.setHovering(!1))}function K(O){O.pointerType==="touch"&&(b.current=!0)}function G(O){O.pointerType==="touch"&&(b.current=!1,N())}function q(){if(g.current){g.current=!1;return}T||gd(zn(Je(p.state.viewport)))&&(p.setFocused(!0),p.pauseTimers())}function te(O){!T||Ie(p.state.viewport,O.relatedTarget)||(p.setFocused(!1),p.resumeTimers())}const ee={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:z,onMouseMove:z,onMouseLeave:P,onFocus:q,onBlur:te,onKeyDown:R,onClick:q,onPointerDown:K,onPointerUp:G,onPointerCancel:G},F={expanded:C},I=At("div",n,{ref:[o,p.setViewport],state:F,props:[ee,{style:{[HO.frontmostHeight]:L?`${L}px`:void 0}},f,{children:D.jsxs(v.Fragment,{children:[!S&&E&&D.jsx(bo,{onFocus:k}),u,!S&&E&&D.jsx(bo,{onFocus:k})]})}]}),_=v.useMemo(()=>x.filter(O=>O.priority==="high"),[x]);return D.jsxs(v.Fragment,{children:[!S&&E&&D.jsx(bo,{onFocus:k}),I,!T&&_.length>0&&D.jsx("div",{style:hc,children:_.map(O=>D.jsxs("div",{role:"alert","aria-atomic":!0,children:[D.jsx("div",{children:O.title}),D.jsx("div",{children:O.description})]},O.id))})]})});function gc(e){return rd(19)?e:e?"true":void 0}const n0=v.createContext(void 0);function BO(){const e=v.useContext(n0);if(!e)throw new Error(Jt(66));return e}let zi=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const ZO={[zi.startingStyle]:""},GO={[zi.endingStyle]:""},Or={transitionStatus(e){return e==="starting"?ZO:e==="ending"?GO:null}};function So(e){return e==null?e:"current"in e?e.current:e}function r0(e,n=!1,o=!0){const s=Ma();return Te((l,c=null)=>{s.cancel();const u=So(e);if(u==null)return;const f=u,p=()=>{Cr.flushSync(l)};if(typeof f.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){l();return}function h(){Promise.all(f.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||p()}).catch(()=>{if(o){c?.aborted||p();return}const g=f.getAnimations();!c?.aborted&&g.length>0&&g.some(y=>y.pending||y.playState!=="finished")&&h()})}if(n){const g=zi.startingStyle;if(!f.hasAttribute(g)){s.request(h);return}const y=new MutationObserver(()=>{f.hasAttribute(g)||(y.disconnect(),h())});y.observe(f,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>y.disconnect(),{once:!0});return}s.request(h)})}function ro(e){const{enabled:n=!0,open:o,ref:s,onComplete:l}=e,c=Te(l),u=r0(s,o,!1);v.useEffect(()=>{if(!n)return;const f=new AbortController;return u(c,f.signal),()=>{f.abort()}},[n,o,c,u])}let Ni=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const YO=500,$O={style:{transition:"none"}},Md="data-base-ui-click-trigger",qO="data-base-ui-swipe-ignore",XO="data-swipe-ignore",o0=`[${qO}]`,QO=`[${XO}]`,KO={fallbackAxisSide:"none"},WO={fallbackAxisSide:"end"},JO={clipPath:"inset(50%)",position:"fixed",top:0,left:0},e_={...Or,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Ia=40,t_=10,Wo=.5,n_=1,r_=`${o0},${QO}`;function i0(e,n,o){switch(e){case"up":return-o;case"down":return o;case"left":return-n;case"right":return n;default:return 0}}function o_(e){const o=Lt(e).getComputedStyle(e).transform;let s=0,l=0,c=1;if(o&&o!=="none"){const u=o.match(/matrix(?:3d)?\(([^)]+)\)/);if(u){const f=u[1].split(", ").map(parseFloat);f.length===6?(s=f[4],l=f[5],c=Math.sqrt(f[0]*f[0]+f[1]*f[1])):f.length===16&&(s=f[12],l=f[13],c=f[0])}}return{x:s,y:l,scale:c}}const i_=v.forwardRef(function(n,o){const{toast:s,render:l,className:c,swipeDirection:u=["down","right"],style:f,...p}=n,h=s.positionerProps?.anchor!==void 0;let g=[];h||(g=Array.isArray(u)?u:[u]);const y=g.length>0,b=iy(),[S,x]=v.useState(void 0),[T,C]=v.useState(!1),[E,L]=v.useState(!1),[j,k]=v.useState(!1),[R,N]=v.useState({x:0,y:0}),[z,P]=v.useState({x:0,y:0,scale:1}),[K,G]=v.useState(),[q,te]=v.useState(),[ee,F]=v.useState(null),I=v.useRef(null),_=v.useRef({x:0,y:0}),O=v.useRef({x:0,y:0,scale:1}),U=v.useRef(void 0),B=v.useRef(0),Q=v.useRef(!1),A=v.useRef({x:0,y:0}),V=v.useRef(!1),Y=b.useState("toastIndex",s.id),W=b.useState("toastVisibleIndex",s.id),ne=b.useState("toastOffsetY",s.id),ie=b.useState("focused"),ce=b.useState("expanded");ro({open:s.transitionStatus!=="ending",ref:I,onComplete(){s.transitionStatus==="ending"&&b.removeToast(s.id)}});const de=Te((H=!1)=>{const oe=I.current;if(!oe)return;const J=oe.style.height;oe.style.height="auto";const X=oe.offsetHeight;oe.style.height=J;function ve(){b.updateToastInternal(s.id,{ref:I,height:X,...s.transitionStatus==="starting"?{transitionStatus:void 0}:{}})}H?Cr.flushSync(ve):ve()});ke(de,[de]);function ye(H,oe){let J=H,X=oe;return!g.includes("left")&&!g.includes("right")?J=H>0?H**Wo:-(Math.abs(H)**Wo):(!g.includes("right")&&H>0&&(J=H**Wo),!g.includes("left")&&H<0&&(J=-(Math.abs(H)**Wo))),!g.includes("up")&&!g.includes("down")?X=oe>0?oe**Wo:-(Math.abs(oe)**Wo):(!g.includes("down")&&oe>0&&(X=oe**Wo),!g.includes("up")&&oe<0&&(X=-(Math.abs(oe)**Wo))),{x:J,y:X}}function Ee(H){if(H.button!==0)return;H.pointerType==="touch"&&b.pauseTimers();const oe=Xt(H.nativeEvent);if(!(oe&&oe.closest(`button,a,input,textarea,[role="button"],${r_}`))){if(Q.current=!1,U.current=void 0,B.current=0,_.current={x:H.clientX,y:H.clientY},A.current=_.current,I.current){const X=o_(I.current);O.current=X,P(X),N({x:X.x,y:X.y})}b.setHovering(!0),C(!0),L(!1),F(null),V.current=!0,I.current?.setPointerCapture(H.pointerId)}}function Me(H){if(!T)return;H.preventDefault(),V.current&&(_.current={x:H.clientX,y:H.clientY},V.current=!1);const{clientY:oe,clientX:J,movementX:X,movementY:ve}=H;(ve<0&&oe>A.current.y||ve>0&&oe<A.current.y)&&(A.current={x:A.current.x,y:oe}),(X<0&&J>A.current.x||X>0&&J<A.current.x)&&(A.current={x:J,y:A.current.y});const we=J-_.current.x,be=oe-_.current.y,Ne=oe-A.current.y,qe=J-A.current.x;if(!E&&Math.sqrt(we*we+be*be)>=n_&&(L(!0),ee===null)){const We=g.includes("left")||g.includes("right"),dt=g.includes("up")||g.includes("down");if(We&&dt){const jt=Math.abs(we),rt=Math.abs(be);F(jt>rt?"horizontal":"vertical")}}let He;if(!U.current)ee==="vertical"?be>0?He="down":be<0&&(He="up"):ee==="horizontal"?we>0?He="right":we<0&&(He="left"):Math.abs(we)>=Math.abs(be)?He=we>0?"right":"left":He=be>0?"down":"up",He&&g.includes(He)&&(U.current=He,B.current=i0(He,we,be),x(He));else{const Xe=U.current,We=i0(Xe,qe,Ne);We>Ia?(Q.current=!1,x(Xe)):!(g.includes("left")&&g.includes("right"))&&!(g.includes("up")&&g.includes("down"))&&B.current-We>=t_&&(Q.current=!0)}const Be=ye(we,be);let $e=O.current.x,et=O.current.y;ee==="horizontal"?(g.includes("left")||g.includes("right"))&&($e+=Be.x):(ee==="vertical"||(g.includes("left")||g.includes("right"))&&($e+=Be.x),(g.includes("up")||g.includes("down"))&&(et+=Be.y)),N({x:$e,y:et})}function fe(H){if(!T)return;if(C(!1),L(!1),F(null),I.current?.releasePointerCapture(H.pointerId),Q.current){N({x:z.x,y:z.y}),x(void 0);return}let oe=!1;const J=R.x-z.x,X=R.y-z.y;let ve;for(const we of g){switch(we){case"right":J>Ia&&(oe=!0,ve="right");break;case"left":J<-Ia&&(oe=!0,ve="left");break;case"down":X>Ia&&(oe=!0,ve="down");break;case"up":X<-Ia&&(oe=!0,ve="up");break}if(oe)break}oe?(x(ve),k(!0),b.closeToast(s.id)):(N({x:z.x,y:z.y}),x(void 0))}function ze(){T&&(C(!1),L(!1),F(null),N({x:z.x,y:z.y}),x(void 0))}function De(H){if(H.key==="Escape"){if(!I.current||!Ie(I.current,zn(Je(I.current))))return;b.closeToast(s.id)}}v.useEffect(()=>{if(!y)return;const H=I.current;if(!H)return;function oe(J){Ie(H,Xt(J))&&J.preventDefault()}return pt(H,"touchmove",oe,{passive:!1})},[y]);function _e(){if(!T&&R.x===z.x&&R.y===z.y&&!j)return{[Ni.swipeMovementX]:"0px",[Ni.swipeMovementY]:"0px"};const H=R.x-z.x,oe=R.y-z.y;return{transition:T?"none":void 0,transform:T?`translateX(${R.x}px) translateY(${R.y}px) scale(${z.scale})`:void 0,[Ni.swipeMovementX]:`${H}px`,[Ni.swipeMovementY]:`${oe}px`}}const Oe=s.priority==="high",Ce={role:Oe?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":K,"aria-describedby":q,"aria-hidden":Oe&&!ie?!0:void 0,onPointerDown:y?Ee:void 0,onPointerMove:y?Me:void 0,onPointerUp:y?fe:void 0,onPointerCancel:y?ze:void 0,onKeyDown:De,inert:gc(s.limited),style:{..._e(),[Ni.index]:s.transitionStatus==="ending"?Y:W,[Ni.offsetY]:`${ne}px`,[Ni.height]:s.height?`${s.height}px`:void 0}},Le=v.useMemo(()=>({rootRef:I,toast:s,titleId:K,setTitleId:G,descriptionId:q,setDescriptionId:te,swiping:T,swipeDirection:S,recalculateHeight:de,index:Y,visibleIndex:W,expanded:ce}),[s,K,q,T,S,de,Y,W,ce]),Re={transitionStatus:s.transitionStatus,expanded:ce,limited:s.limited||!1,type:s.type,swiping:Le.swiping,swipeDirection:Le.swipeDirection},Ue=At("div",n,{ref:[o,Le.rootRef],state:Re,stateAttributesMapping:e_,props:[Ce,p]});return D.jsx(n0.Provider,{value:Le,children:Ue})}),s_={...bg};let s0=0;function a_(e,n="mui"){const[o,s]=v.useState(e),l=e||o;return v.useEffect(()=>{o==null&&(s0+=1,s(`${n}-${s0}`))},[o,n]),l}const a0=s_.useId;function Jo(e,n){if(a0!==void 0){const o=a0();return e??(n?`${n}-${o}`:o)}return a_(e,n)}const l_=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,children:f,...p}=n,{toast:h,setDescriptionId:g}=BO(),y=f??h.description,b=!!y,S=Jo(u);ke(()=>{if(b)return g(S),()=>{g(void 0)}},[b,S,g]);const x={type:h.type},T=At("p",n,{ref:o,state:x,props:{...p,id:S,children:y}});return b?T:null}),c_=v.createContext(void 0);function u_(e=!1){const n=v.useContext(c_);if(n===void 0&&!e)throw new Error(Jt(16));return n}function f_(e){const{focusableWhenDisabled:n,disabled:o,composite:s=!1,tabIndex:l=0,isNativeButton:c}=e,u=s&&n!==!1,f=s&&n===!1;return{props:v.useMemo(()=>{const h={onKeyDown(g){o&&n&&g.key!=="Tab"&&g.preventDefault()}};return s||(h.tabIndex=l,!c&&o&&(h.tabIndex=n?l:-1)),(c&&(n||u)||!c&&o)&&(h["aria-disabled"]=o),c&&(!n||f)&&(h.disabled=o),h},[s,o,n,u,f,c,l])}}function ws(e={}){const{disabled:n=!1,focusableWhenDisabled:o,tabIndex:s=0,native:l=!0,composite:c}=e,u=v.useRef(null),f=u_(!0),p=c??f!==void 0,{props:h}=f_({focusableWhenDisabled:o,disabled:n,composite:p,tabIndex:s,isNativeButton:l}),g=v.useCallback(()=>{const S=u.current;Dd(S)&&p&&n&&h.disabled===void 0&&S.disabled&&(S.disabled=!1)},[n,h.disabled,p]);ke(g,[g]);const y=v.useCallback((S={})=>{const{onClick:x,onMouseDown:T,onKeyUp:C,onKeyDown:E,onPointerDown:L,...j}=S;return no({type:l?"button":void 0,onClick(R){if(n){R.preventDefault();return}x?.(R)},onMouseDown(R){n||T?.(R)},onKeyDown(R){if(n||(mc(R),E?.(R),R.baseUIHandlerPrevented))return;const N=R.target===R.currentTarget,z=R.currentTarget,P=Dd(z),K=!l&&d_(z),G=N&&(l?P:!K),q=R.key==="Enter",te=R.key===" ",ee=z.getAttribute("role"),F=ee?.startsWith("menuitem")||ee==="option"||ee==="gridcell";if(N&&p&&te){if(R.defaultPrevented&&F)return;R.preventDefault(),K||l&&P?(z.click(),R.preventBaseUIHandler()):G&&(x?.(R),R.preventBaseUIHandler());return}G&&(!l&&(te||q)&&R.preventDefault(),!l&&q&&x?.(R))},onKeyUp(R){if(!n){if(mc(R),C?.(R),R.target===R.currentTarget&&l&&p&&Dd(R.currentTarget)&&R.key===" "){R.preventDefault();return}R.baseUIHandlerPrevented||R.target===R.currentTarget&&!l&&!p&&R.key===" "&&x?.(R)}},onPointerDown(R){if(n){R.preventDefault();return}L?.(R)}},l?void 0:{role:"button"},h,j)},[n,h,p,l]),b=Te(S=>{u.current=S,g()});return{getButtonProps:y,buttonRef:b}}function Dd(e){return Zt(e)&&e.tagName==="BUTTON"}function d_(e){return!!(e?.tagName==="A"&&e?.href)}function h_(e,n){return n!=null&&!ka(n)?0:typeof e=="function"?e():e}function zd(e,n,o){const s=h_(e,o);return typeof s=="number"?s:s?.[n]}function l0(e){return typeof e=="function"?e():e}function c0(e,n){return n||e==="click"||e==="mousedown"}const ki="none",xs="trigger-press",Yn="trigger-hover",Nd="outside-press",kd="item-press",p_="close-press",ji="focus-out",u0="escape-key",m_="close-watcher",jd="list-navigation",g_="cancel-open",f0="imperative-action",yc="swipe",y_="window-resize";function ct(e,n,o,s){let l=!1,c=!1;const u=rn;return{reason:e,event:n??new Event("base-ui"),cancel(){l=!0},allowPropagation(){c=!0},get isCanceled(){return l},get isPropagationAllowed(){return c},trigger:o,...u}}function v_(e,n,o){const s=rn;return{reason:e,event:n??new Event("base-ui"),...s}}function dn(e){const n=vn(b_,e).current;return n.next=e,ke(n.effect),n}function b_(e){const n={current:e,next:e,effect:()=>{n.current=n.next}};return n}function vc(e){return`data-base-ui-${e}`}let bc=0;function Sc(e,n={}){const{preventScroll:o=!1,cancelPrevious:s=!0,sync:l=!1}=n;s&&cancelAnimationFrame(bc);const c=()=>e?.focus({preventScroll:o});if(l)return c(),Tn;const u=requestAnimationFrame(c);return bc=u,()=>{bc===u&&(cancelAnimationFrame(u),bc=0)}}const Ld={inert:new WeakMap,"aria-hidden":new WeakMap},d0="data-base-ui-inert",Pd={inert:new WeakSet,"aria-hidden":new WeakSet};let Ua=new WeakMap,Id=0;function S_(e){return Pd[e]}function h0(e){return e?gs(e)?e.host:h0(e.parentNode):null}const Ud=(e,n)=>n.map(o=>{if(e.contains(o))return o;const s=h0(o);return e.contains(s)?s:null}).filter(o=>o!=null),p0=e=>{const n=new Set;return e.forEach(o=>{let s=o;for(;s&&!n.has(s);)n.add(s),s=s.parentNode}),n},m0=(e,n,o)=>{const s=[],l=c=>{!c||o.has(c)||Array.from(c.children).forEach(u=>{Hn(u)!=="script"&&(n.has(u)?l(u):s.push(u))})};return l(e),s};function w_(e,n,o,s,{mark:l=!0,markerIgnoreElements:c=[]}){const u=s?"inert":o?"aria-hidden":null;let f=null,p=null;const h=Ud(n,e),g=l?Ud(n,c):[],y=new Set(g),b=l?m0(n,p0(h),new Set(h)).filter(T=>!y.has(T)):[],S=[],x=[];if(u){const T=Ld[u],C=S_(u);p=C,f=T;const E=Ud(n,Array.from(n.querySelectorAll("[aria-live]"))),L=h.concat(E);m0(n,p0(L),new Set(L)).forEach(k=>{const R=k.getAttribute(u),N=R!==null&&R!=="false",z=(T.get(k)||0)+1;T.set(k,z),S.push(k),z===1&&N&&C.add(k),N||k.setAttribute(u,u==="inert"?"":"true")})}return l&&b.forEach(T=>{const C=(Ua.get(T)||0)+1;Ua.set(T,C),x.push(T),C===1&&T.setAttribute(d0,"")}),Id+=1,()=>{f&&S.forEach(T=>{const E=(f.get(T)||0)-1;f.set(T,E),E||(!p?.has(T)&&u&&T.removeAttribute(u),p?.delete(T))}),l&&x.forEach(T=>{const C=(Ua.get(T)||0)-1;Ua.set(T,C),C||T.removeAttribute(d0)}),Id-=1,Id||(Ld.inert=new WeakMap,Ld["aria-hidden"]=new WeakMap,Pd.inert=new WeakSet,Pd["aria-hidden"]=new WeakSet,Ua=new WeakMap)}}function g0(e,n={}){const{ariaHidden:o=!1,inert:s=!1,mark:l=!0,markerIgnoreElements:c=[]}=n,u=Je(e[0]).body;return w_(e,u,o,s,{mark:l,markerIgnoreElements:c})}const y0=v.createContext(null),v0=()=>v.useContext(y0),x_=vc("portal");function b0(e={}){const{ref:n,container:o,componentProps:s=rn,elementProps:l}=e,c=Jo(),f=v0()?.portalNode,[p,h]=v.useState(null),[g,y]=v.useState(null),b=Te(C=>{C!==null&&y(C)}),S=v.useRef(null);ke(()=>{if(o===null){S.current&&(S.current=null,y(null),h(null));return}if(c==null)return;const C=(o&&(id(o)?o:o.current))??f??document.body;if(C==null){S.current&&(S.current=null,y(null),h(null));return}S.current!==C&&(S.current=C,y(null),h(C))},[o,f,c]);const x=At("div",s,{ref:[n,b],props:[{id:c,[x_]:""},l]});return{portalNode:g,portalSubtree:p&&x?Cr.createPortal(x,p):null}}const Vd=v.forwardRef(function(n,o){const{children:s,container:l,className:c,render:u,renderGuards:f,style:p,...h}=n,{portalNode:g,portalSubtree:y}=b0({container:l,ref:o,componentProps:n,elementProps:h}),b=v.useRef(null),S=v.useRef(null),x=v.useRef(null),T=v.useRef(null),[C,E]=v.useState(null),L=v.useRef(!1),j=C?.modal,k=C?.open,R=typeof f=="boolean"?f:!!C&&!C.modal&&C.open&&!!g;v.useEffect(()=>{if(!g||j)return;function z(P){g&&P.relatedTarget&&Ss(P)&&(P.type==="focusin"?L.current&&(Gy(g),L.current=!1):(EO(g),L.current=!0))}return Kr(pt(g,"focusin",z,!0),pt(g,"focusout",z,!0))},[g,j]),v.useEffect(()=>{!g||k!==!1||(Gy(g),L.current=!1)},[k,g]);const N=v.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:S,beforeInsideRef:x,afterInsideRef:T,portalNode:g,setFocusManagerState:E}),[g]);return D.jsxs(v.Fragment,{children:[y,D.jsxs(y0.Provider,{value:N,children:[R&&g&&D.jsx(bo,{"data-type":"outside",ref:b,onFocus:z=>{if(Ss(z,g))x.current?.focus();else{const P=C?C.domReference:null;By(P)?.focus()}}}),R&&g&&D.jsx("span",{"aria-owns":g.id,style:JO}),g&&Cr.createPortal(s,g),R&&g&&D.jsx(bo,{"data-type":"outside",ref:S,onFocus:z=>{if(Ss(z,g))T.current?.focus();else{const P=C?C.domReference:null;Rd(P)?.focus(),C?.closeOnFocusOut&&C?.onOpenChange(!1,ct(ji,z.nativeEvent))}}})]})]})});function S0(){const e=new Map;return{emit(n,o){e.get(n)?.forEach(s=>s(o))},on(n,o){e.has(n)||e.set(n,new Set),e.get(n).add(o)},off(n,o){e.get(n)?.delete(o)}}}class E_{nodesRef={current:[]};events=S0();addNode(n){this.nodesRef.current.push(n)}removeNode(n){const o=this.nodesRef.current.findIndex(s=>s===n);o!==-1&&this.nodesRef.current.splice(o,1)}}const w0=v.createContext(null),x0=v.createContext(null),ei=()=>v.useContext(w0)?.id||null,Li=e=>{const n=v.useContext(x0);return e??n};function T_(e){const n=Jo(),o=Li(e),s=ei();return ke(()=>{if(!n)return;const l={id:n,parentId:s};return o?.addNode(l),()=>{o?.removeNode(l)}},[o,n,s]),n}function C_(e){const{children:n,id:o}=e,s=ei();return D.jsx(w0.Provider,{value:v.useMemo(()=>({id:o,parentId:s}),[o,s]),children:n})}function R_(e){const{children:n,externalTree:o}=e,s=vn(()=>o??new E_).current;return D.jsx(x0.Provider,{value:s,children:n})}function O_(e,n){const o=Lt(Xt(e));return e instanceof o.KeyboardEvent?"keyboard":e instanceof o.FocusEvent?n||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof o.MouseEvent?n||(e.detail===0?"keyboard":"mouse"):""}const E0=20;let ti=[];function Hd(){ti=ti.filter(e=>e.deref()?.isConnected)}function __(e){Hd(),e&&Hn(e)!=="body"&&(ti.push(new WeakRef(e)),ti.length>E0&&(ti=ti.slice(-E0)))}function Fd(){return Hd(),ti[ti.length-1]?.deref()}function A_(e){return e?Cd(e)?e:La(e)[0]||e:null}function T0(e,n){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!n.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const s=Hy(e).filter(c=>{const u=c.getAttribute("data-tabindex")||"";return Cd(c)||c.hasAttribute("data-tabindex")&&!u.startsWith("-")}),l=e.getAttribute("tabindex");n.current.includes("floating")||s.length===0?l!=="0"&&e.setAttribute("tabindex","0"):(l!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function wc(e){const{context:n,children:o,disabled:s=!1,initialFocus:l=!0,returnFocus:c=!0,restoreFocus:u=!1,modal:f=!0,closeOnFocusOut:p=!0,openInteractionType:h="",nextFocusableElement:g,previousFocusableElement:y,beforeContentFocusGuardRef:b,externalTree:S,getInsideElements:x}=e,T="rootStore"in n?n.rootStore:n,C=T.useState("open"),E=T.useState("domReferenceElement"),L=T.useState("floatingElement"),{events:j,dataRef:k}=T.context,R=Te(()=>k.current.floatingContext?.nodeId),N=l===!1,z=md(E)&&N,P=v.useRef(["content"]),K=dn(l),G=dn(c),q=dn(h),te=Li(S),ee=v0(),F=v.useRef(!1),I=v.useRef(!1),_=v.useRef(!1),O=v.useRef(null),U=v.useRef(""),B=v.useRef(""),Q=v.useRef(null),A=v.useRef(null),V=Di(Q,b,ee?.beforeInsideRef),Y=Di(A,ee?.afterInsideRef),W=ur(),ne=ur(),ie=Ma(),ce=ee!=null,de=Na(L),ye=Te((fe=de)=>fe?La(fe):[]),Ee=Te(()=>x?.().filter(fe=>fe!=null)??[]);v.useEffect(()=>{if(s||!f)return;function fe(De){De.key==="Tab"&&Ie(de,zn(Je(de)))&&ye().length===0&&!z&&fr(De)}const ze=Je(de);return pt(ze,"keydown",fe)},[s,E,de,f,P,z,ye]),v.useEffect(()=>{if(s||!C)return;const fe=Je(de);function ze(){_.current=!1}function De(Oe){const Ce=Xt(Oe),Le=Ee(),Re=Ie(L,Ce)||Ie(E,Ce)||Ie(ee?.portalNode,Ce)||Le.some(Ue=>Ue===Ce||Ie(Ue,Ce));_.current=!Re,B.current=Oe.pointerType||"keyboard",Ce?.closest(`[${Md}]`)&&(I.current=!0)}function _e(){B.current="keyboard"}return Kr(pt(fe,"pointerdown",De,!0),pt(fe,"pointerup",ze,!0),pt(fe,"pointercancel",ze,!0),pt(fe,"keydown",_e,!0))},[s,L,E,de,C,ee,Ee]),v.useEffect(()=>{if(s||!p)return;const fe=Je(de);function ze(){I.current=!0,ne.start(0,()=>{I.current=!1})}function De(Le){const Re=Xt(Le);Cd(Re)&&(O.current=Re)}function _e(Le){const Re=Le.relatedTarget,Ue=Le.currentTarget,H=Xt(Le);queueMicrotask(()=>{const oe=R(),J=T.context.triggerElements,X=Ee(),ve=Re?.hasAttribute(vc("focus-guard"))&&[Q.current,A.current,ee?.beforeInsideRef.current,ee?.afterInsideRef.current,ee?.beforeOutsideRef.current,ee?.afterOutsideRef.current,So(y),So(g)].includes(Re),we=!(Ie(E,Re)||Ie(L,Re)||Ie(Re,L)||Ie(ee?.portalNode,Re)||X.some(be=>be===Re||Ie(be,Re))||Re!=null&&J.hasElement(Re)||J.hasMatchingElement(be=>Ie(be,Re))||ve||te&&(Jr(te.nodesRef.current,oe).find(be=>Ie(be.context?.elements.floating,Re)||Ie(be.context?.elements.domReference,Re))||Oy(te.nodesRef.current,oe).find(be=>[be.context?.elements.floating,Na(be.context?.elements.floating)].includes(Re)||be.context?.elements.domReference===Re)));if(Ue===E&&de&&T0(de,P),u&&Ue!==E&&!fc(H)&&zn(fe)===fe.body){if(Zt(de)&&(de.focus(),u==="popup")){ie.request(()=>{de.focus()});return}const be=ye(),Ne=O.current,qe=(Ne&&be.includes(Ne)?Ne:null)||be[be.length-1]||de;Zt(qe)&&qe.focus()}if(k.current.insideReactTree){k.current.insideReactTree=!1;return}(z||!f)&&Re&&we&&!I.current&&(z||Re!==Fd())&&(F.current=!0,T.setOpen(!1,ct(ji,Le)))})}function Oe(){_.current||(k.current.insideReactTree=!0,W.start(0,()=>{k.current.insideReactTree=!1}))}const Ce=Zt(E)?E:null;if(!(!L&&!Ce))return Kr(Ce&&pt(Ce,"focusout",_e),Ce&&pt(Ce,"pointerdown",ze),L&&pt(L,"focusin",De),L&&pt(L,"focusout",_e),L&&ee&&pt(L,"focusout",Oe,!0))},[s,E,L,de,f,te,ee,T,p,u,ye,z,R,P,k,W,ne,ie,g,y,Ee]),v.useEffect(()=>{if(s||!L||!C)return;const fe=Array.from(ee?.portalNode?.querySelectorAll(`[${vc("portal")}]`)||[]),De=(te?Oy(te.nodesRef.current,R()):[]).find(Ue=>md(Ue.context?.elements.domReference||null))?.context?.elements.domReference,Oe=[...[L,...fe,Q.current,A.current,ee?.beforeOutsideRef.current,ee?.afterOutsideRef.current,...Ee()],De,So(y),So(g),z?E:null].filter(Ue=>Ue!=null),Ce=g0(Oe,{ariaHidden:f||z,mark:!1}),Le=[L,...fe].filter(Ue=>Ue!=null),Re=g0(Le);return()=>{Re(),Ce()}},[C,s,E,L,f,P,ee,z,te,R,g,y,Ee]),ke(()=>{if(!C||s||!Zt(de))return;const fe=Je(de),ze=zn(fe);queueMicrotask(()=>{const De=K.current,_e=typeof De=="function"?De(q.current||""):De;if(_e===void 0||_e===!1||Ie(de,ze))return;let Ce=null;const Le=()=>(Ce==null&&(Ce=ye(de)),Ce[0]||de);let Re;_e===!0||_e===null?Re=Le():Re=So(_e),Re=Re||Le(),Sc(Re,{preventScroll:Re===de})})},[s,C,de,N,ye,K,q]),ke(()=>{if(s||!de)return;const fe=Je(de),ze=zn(fe);__(ze);function De(Oe){if(Oe.open||(U.current=O_(Oe.nativeEvent,B.current)),Oe.reason===Yn&&Oe.nativeEvent.type==="mouseleave"&&(F.current=!0),Oe.reason===Nd)if(Oe.nested)F.current=!1;else if(_y(Oe.nativeEvent)||Ay(Oe.nativeEvent))F.current=!1;else{let Ce=!1;Je(de).createElement("div").focus({get preventScroll(){return Ce=!0,!1}}),Ce?F.current=!1:F.current=!0}}j.on("openchange",De);function _e(){const Oe=G.current;let Ce=typeof Oe=="function"?Oe(U.current):Oe;if(Ce===void 0||Ce===!1)return null;if(Ce===null&&(Ce=!0),typeof Ce=="boolean"){const Re=E||Fd();return Re&&Re.isConnected?Re:null}const Le=E||Fd();return So(Ce)||Le||null}return()=>{j.off("openchange",De);const Oe=zn(fe),Ce=Ee(),Le=Ie(L,Oe)||Ce.some(H=>H===Oe||Ie(H,Oe))||te&&Jr(te.nodesRef.current,R(),!1).some(H=>Ie(H.context?.elements.floating,Oe)),Re=G.current,Ue=_e();queueMicrotask(()=>{const H=A_(Ue),oe=typeof Re!="boolean";Re&&!F.current&&Zt(H)&&(!(!oe&&H!==Oe&&Oe!==fe.body)||Le)&&H.focus({preventScroll:!0}),F.current=!1})}},[s,L,de,G,k,j,te,E,R,Ee]),ke(()=>{if(!fd||C||!L)return;const fe=zn(Je(L));!Zt(fe)||!pd(fe)||Ie(L,fe)&&fe.blur()},[C,L]),ke(()=>{if(!(s||!ee))return ee.setFocusManagerState({modal:f,closeOnFocusOut:p,open:C,onOpenChange:T.setOpen,domReference:E}),()=>{ee.setFocusManagerState(null)}},[s,ee,f,C,T,p,E]),ke(()=>{if(!(s||!de))return T0(de,P),()=>{queueMicrotask(Hd)}},[s,de,P]);const Me=!s&&(f?!z:!0)&&(ce||f);return D.jsxs(v.Fragment,{children:[Me&&D.jsx(bo,{"data-type":"inside",ref:V,onFocus:fe=>{if(f){const ze=ye();Sc(ze[ze.length-1])}else ee?.portalNode&&(F.current=!1,Ss(fe,ee.portalNode)?Rd(E)?.focus():So(y??ee.beforeOutsideRef)?.focus())}}),o,Me&&D.jsx(bo,{"data-type":"inside",ref:Y,onFocus:fe=>{f?Sc(ye()[0]):ee?.portalNode&&(p&&(F.current=!0),Ss(fe,ee.portalNode)?By(E)?.focus():So(g??ee.afterOutsideRef)?.focus())}})]})}function Bd(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.context.dataRef,{enabled:l=!0,event:c="click",toggle:u=!0,ignoreMouse:f=!1,stickIfOpen:p=!0,touchOpenDelay:h=0,reason:g=xs}=n,y=v.useRef(void 0),b=Ma(),S=ur(),x=v.useMemo(()=>({onPointerDown(T){y.current=T.pointerType},onMouseDown(T){const C=y.current,E=T.nativeEvent,L=o.select("open");if(T.button!==0||c==="click"||ka(C,!0)&&f)return;const j=s.current.openEvent,k=j?.type,R=o.select("domReferenceElement")!==T.currentTarget,N=L&&R||!(L&&u&&(!(j&&p)||k==="click"||k==="mousedown")),z=Xt(E);if(pd(z)){const K=ct(g,E,z);N&&C==="touch"&&h>0?S.start(h,()=>{o.setOpen(!0,K)}):o.setOpen(N,K);return}const P=T.currentTarget;b.request(()=>{const K=ct(g,E,P);N&&C==="touch"&&h>0?S.start(h,()=>{o.setOpen(!0,K)}):o.setOpen(N,K)})},onClick(T){if(c==="mousedown-only")return;const C=y.current;if(c==="mousedown"&&C){y.current=void 0;return}if(ka(C,!0)&&f)return;const E=o.select("open"),L=s.current.openEvent,j=o.select("domReferenceElement")!==T.currentTarget,k=E&&j||!(E&&u&&(!(L&&p)||My(L))),R=ct(g,T.nativeEvent,T.currentTarget);k&&C==="touch"&&h>0?S.start(h,()=>{o.setOpen(!0,R)}):o.setOpen(k,R)},onKeyDown(){y.current=void 0}}),[s,c,f,o,p,u,b,S,h,g]);return v.useMemo(()=>l?{reference:x}:rn,[l,x])}const M_={intentional:"onClick",sloppy:"onPointerDown"};function D_(){return!1}function z_(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Zd(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingElement"),{dataRef:c}=o.context,{enabled:u=!0,escapeKey:f=!0,outsidePress:p=!0,outsidePressEvent:h="sloppy",referencePress:g=D_,referencePressEvent:y="sloppy",bubbles:b,externalTree:S}=n,x=Li(S),T=Te(typeof p=="function"?p:()=>!1),C=typeof p=="function"?T:p,E=C!==!1,L=Te(()=>h),j=v.useRef(!1),k=v.useRef(!1),R=v.useRef(!1),{escapeKey:N,outsidePress:z}=z_(b),P=v.useRef(null),K=ur(),G=ur(),q=Te(()=>{G.clear(),c.current.insideReactTree=!1}),te=v.useRef(!1),ee=v.useRef(""),F=Te(g),I=Te(A=>{if(!s||!u||!f||A.key!=="Escape"||te.current)return;const V=c.current.floatingContext?.nodeId,Y=x?Jr(x.nodesRef.current,V):[];if(!N&&Y.length>0){let ie=!0;if(Y.forEach(ce=>{ce.context?.open&&!ce.context.dataRef.current.__escapeKeyBubbles&&(ie=!1)}),!ie)return}const W=tO(A)?A.nativeEvent:A,ne=ct(u0,W);o.setOpen(!1,ne),!N&&!ne.isPropagationAllowed&&A.stopPropagation()}),_=Te(()=>{c.current.insideReactTree=!0,G.start(0,q)});v.useEffect(()=>{if(!s||!u)return;c.current.__escapeKeyBubbles=N,c.current.__outsidePressBubbles=z;const A=new cr,V=new cr;function Y(){A.clear(),te.current=!0}function W(){A.start(nc()?5:0,()=>{te.current=!1})}function ne(){R.current=!0,V.start(0,()=>{R.current=!1})}function ie(){j.current=!1,k.current=!1}function ce(){const J=ee.current,X=J==="pen"||!J?"mouse":J,ve=L(),we=typeof ve=="function"?ve():ve;return typeof we=="string"?we:we[X]}function de(J){const X=ce();return X==="intentional"&&J.type!=="click"||X==="sloppy"&&J.type==="click"}function ye(J){const X=c.current.floatingContext?.nodeId,ve=x&&Jr(x.nodesRef.current,X).some(we=>Br(J,we.context?.elements.floating));return Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement"))||ve}function Ee(J){if(de(J)){q();return}if(c.current.insideReactTree){q();return}const X=Xt(J),ve=`[${vc("inert")}]`,we=bt(X)?X.getRootNode():null,be=Array.from((gs(we)?we:Je(o.select("floatingElement"))).querySelectorAll(ve)),Ne=o.context.triggerElements;if(X&&(Ne.hasElement(X)||Ne.hasMatchingElement($e=>Ie($e,X))))return;let qe=bt(X)?X:null;for(;qe&&!go(qe);){const $e=yo(qe);if(go($e)||!bt($e))break;qe=$e}if(be.length&&bt(X)&&!JR(X)&&!Ie(X,o.select("floatingElement"))&&be.every($e=>!Ie(qe,$e)))return;if(Zt(X)&&!("touches"in J)){const $e=go(X),et=Zn(X),Xe=/auto|scroll/,We=$e||Xe.test(et.overflowX),dt=$e||Xe.test(et.overflowY),jt=We&&X.clientWidth>0&&X.scrollWidth>X.clientWidth,rt=dt&&X.clientHeight>0&&X.scrollHeight>X.clientHeight,Ze=et.direction==="rtl",st=rt&&(Ze?J.offsetX<=X.offsetWidth-X.clientWidth:J.offsetX>X.clientWidth),ut=jt&&J.offsetY>X.clientHeight;if(st||ut)return}if(ye(J))return;if(ce()==="intentional"&&R.current){V.clear(),R.current=!1;return}if(typeof C=="function"&&!C(J))return;const He=c.current.floatingContext?.nodeId,Be=x?Jr(x.nodesRef.current,He):[];if(Be.length>0){let $e=!0;if(Be.forEach(et=>{et.context?.open&&!et.context.dataRef.current.__outsidePressBubbles&&($e=!1)}),!$e)return}o.setOpen(!1,ct(Nd,J)),q()}function Me(J){ce()!=="sloppy"||J.pointerType==="touch"||!o.select("open")||!u||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement"))||Ee(J)}function fe(J){if(ce()!=="sloppy"||!o.select("open")||!u||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement")))return;const X=J.touches[0];X&&(P.current={startTime:Date.now(),startX:X.clientX,startY:X.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},K.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}function ze(J,X){const ve=Xt(J);if(!ve)return;const we=pt(ve,J.type,()=>{X(J),we()})}function De(J){ee.current="touch",ze(J,fe)}function _e(J){K.clear(),J.type==="pointerdown"&&(ee.current=J.pointerType),!(J.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)&&ze(J,X=>{X.type==="pointerdown"?Me(X):Ee(X)})}function Oe(J){if(!j.current)return;const X=k.current;if(ie(),ce()==="intentional"){if(J.type==="pointercancel"){X&&ne();return}if(!ye(J)){if(X){ne();return}typeof C=="function"&&!C(J)||(V.clear(),R.current=!0,q())}}}function Ce(J){if(ce()!=="sloppy"||!P.current||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement")))return;const X=J.touches[0];if(!X)return;const ve=Math.abs(X.clientX-P.current.startX),we=Math.abs(X.clientY-P.current.startY),be=Math.sqrt(ve*ve+we*we);be>5&&(P.current.dismissOnTouchEnd=!0),be>10&&(Ee(J),K.clear(),P.current=null)}function Le(J){ze(J,Ce)}function Re(J){ce()!=="sloppy"||!P.current||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement"))||(P.current.dismissOnTouchEnd&&Ee(J),K.clear(),P.current=null)}function Ue(J){ze(J,Re)}const H=Je(l),oe=Kr(f&&Kr(pt(H,"keydown",I),pt(H,"compositionstart",Y),pt(H,"compositionend",W)),E&&Kr(pt(H,"click",_e,!0),pt(H,"pointerdown",_e,!0),pt(H,"pointerup",Oe,!0),pt(H,"pointercancel",Oe,!0),pt(H,"mousedown",_e,!0),pt(H,"mouseup",Oe,!0),pt(H,"touchstart",De,!0),pt(H,"touchmove",Le,!0),pt(H,"touchend",Ue,!0)));return()=>{oe(),A.clear(),V.clear(),ie(),R.current=!1}},[c,l,f,E,C,s,u,N,z,I,q,L,x,o,K]),v.useEffect(q,[C,q]);const O=v.useMemo(()=>({onKeyDown:I,[M_[y]]:A=>{F()&&o.setOpen(!1,ct(xs,A.nativeEvent))},...y!=="intentional"&&{onClick(A){F()&&o.setOpen(!1,ct(xs,A.nativeEvent))}}}),[I,o,y,F]),U=Te(A=>{if(!s||!u||A.button!==0)return;const V=Xt(A.nativeEvent);Ie(o.select("floatingElement"),V)&&(j.current||(j.current=!0,k.current=!1))}),B=Te(A=>{!s||!u||(A.defaultPrevented||A.nativeEvent.defaultPrevented)&&j.current&&(k.current=!0)}),Q=v.useMemo(()=>({onKeyDown:I,onPointerDown:B,onMouseDown:B,onClickCapture:_,onMouseDownCapture(A){_(),U(A)},onPointerDownCapture(A){_(),U(A)},onMouseUpCapture:_,onTouchEndCapture:_,onTouchMoveCapture:_}),[I,_,U,B]);return v.useMemo(()=>u?{reference:O,floating:Q,trigger:O}:{},[u,O,Q])}function C0(e,n,o){let{reference:s,floating:l}=e;const c=Rr(n),u=Sd(n),f=bd(u),p=Wn(n),h=c==="y",g=s.x+s.width/2-l.width/2,y=s.y+s.height/2-l.height/2,b=s[f]/2-l[f]/2;let S;switch(p){case"top":S={x:g,y:s.y-l.height};break;case"bottom":S={x:g,y:s.y+s.height};break;case"right":S={x:s.x+s.width,y};break;case"left":S={x:s.x-l.width,y};break;default:S={x:s.x,y:s.y}}switch(Ko(n)){case"start":S[u]-=b*(o&&h?-1:1);break;case"end":S[u]+=b*(o&&h?-1:1);break}return S}async function N_(e,n){var o;n===void 0&&(n={});const{x:s,y:l,platform:c,rects:u,elements:f,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=vo(n,e),x=Ny(S),C=f[b?y==="floating"?"reference":"floating":y],E=ja(await c.getClippingRect({element:(o=await(c.isElement==null?void 0:c.isElement(C)))==null||o?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:p})),L=y==="floating"?{x:s,y:l,width:u.floating.width,height:u.floating.height}:u.reference,j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),k=await(c.isElement==null?void 0:c.isElement(j))?await(c.getScale==null?void 0:c.getScale(j))||{x:1,y:1}:{x:1,y:1},R=ja(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:j,strategy:p}):L);return{top:(E.top-R.top+x.top)/k.y,bottom:(R.bottom-E.bottom+x.bottom)/k.y,left:(E.left-R.left+x.left)/k.x,right:(R.right-E.right+x.right)/k.x}}const k_=50,j_=async(e,n,o)=>{const{placement:s="bottom",strategy:l="absolute",middleware:c=[],platform:u}=o,f=u.detectOverflow?u:{...u,detectOverflow:N_},p=await(u.isRTL==null?void 0:u.isRTL(n));let h=await u.getElementRects({reference:e,floating:n,strategy:l}),{x:g,y}=C0(h,s,p),b=s,S=0;const x={};for(let T=0;T<c.length;T++){const C=c[T];if(!C)continue;const{name:E,fn:L}=C,{x:j,y:k,data:R,reset:N}=await L({x:g,y,initialPlacement:s,placement:b,strategy:l,middlewareData:x,rects:h,platform:f,elements:{reference:e,floating:n}});g=j??g,y=k??y,x[E]={...x[E],...R},N&&S<k_&&(S++,typeof N=="object"&&(N.placement&&(b=N.placement),N.rects&&(h=N.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:l}):N.rects),{x:g,y}=C0(h,b,p)),T=-1)}return{x:g,y,placement:b,strategy:l,middlewareData:x}},L_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o,s;const{placement:l,middlewareData:c,rects:u,initialPlacement:f,platform:p,elements:h}=n,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,...C}=vo(e,n);if((o=c.arrow)!=null&&o.alignmentOffset)return{};const E=Wn(l),L=Rr(f),j=Wn(f)===f,k=await(p.isRTL==null?void 0:p.isRTL(h.floating)),R=b||(j||!T?[lc(f)]:iO(f)),N=x!=="none";!b&&N&&R.push(...cO(f,T,x,k));const z=[f,...R],P=await p.detectOverflow(n,C),K=[];let G=((s=c.flip)==null?void 0:s.overflows)||[];if(g&&K.push(P[E]),y){const F=oO(l,u,k);K.push(P[F[0]],P[F[1]])}if(G=[...G,{placement:l,overflows:K}],!K.every(F=>F<=0)){var q,te;const F=(((q=c.flip)==null?void 0:q.index)||0)+1,I=z[F];if(I&&(!(y==="alignment"?L!==Rr(I):!1)||G.every(U=>Rr(U.placement)===L?U.overflows[0]>0:!0)))return{data:{index:F,overflows:G},reset:{placement:I}};let _=(te=G.filter(O=>O.overflows[0]<=0).sort((O,U)=>O.overflows[1]-U.overflows[1])[0])==null?void 0:te.placement;if(!_)switch(S){case"bestFit":{var ee;const O=(ee=G.filter(U=>{if(N){const B=Rr(U.placement);return B===L||B==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(B=>B>0).reduce((B,Q)=>B+Q,0)]).sort((U,B)=>U[1]-B[1])[0])==null?void 0:ee[0];O&&(_=O);break}case"initialPlacement":_=f;break}if(l!==_)return{reset:{placement:_}}}return{}}}};function R0(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function O0(e){return nO.some(n=>e[n]>=0)}const P_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:o,platform:s}=n,{strategy:l="referenceHidden",...c}=vo(e,n);switch(l){case"referenceHidden":{const u=await s.detectOverflow(n,{...c,elementContext:"reference"}),f=R0(u,o.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:O0(f)}}}case"escaped":{const u=await s.detectOverflow(n,{...c,altBoundary:!0}),f=R0(u,o.floating);return{data:{escapedOffsets:f,escaped:O0(f)}}}default:return{}}}}},_0=new Set(["left","top"]);async function I_(e,n){const{placement:o,platform:s,elements:l}=e,c=await(s.isRTL==null?void 0:s.isRTL(l.floating)),u=Wn(o),f=Ko(o),p=Rr(o)==="y",h=_0.has(u)?-1:1,g=c&&p?-1:1,y=vo(n,e);let{mainAxis:b,crossAxis:S,alignmentAxis:x}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof x=="number"&&(S=f==="end"?x*-1:x),p?{x:S*g,y:b*h}:{x:b*h,y:S*g}}const U_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var o,s;const{x:l,y:c,placement:u,middlewareData:f}=n,p=await I_(n,e);return u===((o=f.offset)==null?void 0:o.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:u}}}}},V_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:s,placement:l,platform:c}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:p={fn:E=>{let{x:L,y:j}=E;return{x:L,y:j}}},...h}=vo(e,n),g={x:o,y:s},y=await c.detectOverflow(n,h),b=Rr(Wn(l)),S=vd(b);let x=g[S],T=g[b];if(u){const E=S==="y"?"top":"left",L=S==="y"?"bottom":"right",j=x+y[E],k=x-y[L];x=yd(j,x,k)}if(f){const E=b==="y"?"top":"left",L=b==="y"?"bottom":"right",j=T+y[E],k=T-y[L];T=yd(j,T,k)}const C=p.fn({...n,[S]:x,[b]:T});return{...C,data:{x:C.x-o,y:C.y-s,enabled:{[S]:u,[b]:f}}}}}},H_=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:s,placement:l,rects:c,middlewareData:u}=n,{offset:f=0,mainAxis:p=!0,crossAxis:h=!0}=vo(e,n),g={x:o,y:s},y=Rr(l),b=vd(y);let S=g[b],x=g[y];const T=vo(f,n),C=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(p){const j=b==="y"?"height":"width",k=c.reference[b]-c.floating[j]+C.mainAxis,R=c.reference[b]+c.reference[j]-C.mainAxis;S<k?S=k:S>R&&(S=R)}if(h){var E,L;const j=b==="y"?"width":"height",k=_0.has(Wn(l)),R=c.reference[y]-c.floating[j]+(k&&((E=u.offset)==null?void 0:E[y])||0)+(k?0:C.crossAxis),N=c.reference[y]+c.reference[j]+(k?0:((L=u.offset)==null?void 0:L[y])||0)-(k?C.crossAxis:0);x<R?x=R:x>N&&(x=N)}return{[b]:S,[y]:x}}}},F_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var o,s;const{placement:l,rects:c,platform:u,elements:f}=n,{apply:p=()=>{},...h}=vo(e,n),g=await u.detectOverflow(n,h),y=Wn(l),b=Ko(l),S=Rr(l)==="y",{width:x,height:T}=c.floating;let C,E;y==="top"||y==="bottom"?(C=y,E=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(E=y,C=b==="end"?"top":"bottom");const L=T-g.top-g.bottom,j=x-g.left-g.right,k=vs(T-g[C],L),R=vs(x-g[E],j),N=!n.middlewareData.shift;let z=k,P=R;if((o=n.middlewareData.shift)!=null&&o.enabled.x&&(P=j),(s=n.middlewareData.shift)!=null&&s.enabled.y&&(z=L),N&&!b){const G=dr(g.left,0),q=dr(g.right,0),te=dr(g.top,0),ee=dr(g.bottom,0);S?P=x-2*(G!==0||q!==0?G+q:dr(g.left,g.right)):z=T-2*(te!==0||ee!==0?te+ee:dr(g.top,g.bottom))}await p({...n,availableWidth:P,availableHeight:z});const K=await u.getDimensions(f.floating);return x!==K.width||T!==K.height?{reset:{rects:!0}}:{}}}};function A0(e){const n=Zn(e);let o=parseFloat(n.width)||0,s=parseFloat(n.height)||0;const l=Zt(e),c=l?e.offsetWidth:o,u=l?e.offsetHeight:s,f=ac(o)!==c||ac(s)!==u;return f&&(o=c,s=u),{width:o,height:s,$:f}}function Gd(e){return bt(e)?e:e.contextElement}function Es(e){const n=Gd(e);if(!Zt(n))return eo(1);const o=n.getBoundingClientRect(),{width:s,height:l,$:c}=A0(n);let u=(c?ac(o.width):o.width)/s,f=(c?ac(o.height):o.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const B_=eo(0);function M0(e){const n=Lt(e);return!nc()||!n.visualViewport?B_:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Z_(e,n,o){return n===void 0&&(n=!1),!o||n&&o!==Lt(e)?!1:n}function Pi(e,n,o,s){n===void 0&&(n=!1),o===void 0&&(o=!1);const l=e.getBoundingClientRect(),c=Gd(e);let u=eo(1);n&&(s?bt(s)&&(u=Es(s)):u=Es(e));const f=Z_(c,o,s)?M0(c):eo(0);let p=(l.left+f.x)/u.x,h=(l.top+f.y)/u.y,g=l.width/u.x,y=l.height/u.y;if(c){const b=Lt(c),S=s&&bt(s)?Lt(s):s;let x=b,T=ld(x);for(;T&&s&&S!==x;){const C=Es(T),E=T.getBoundingClientRect(),L=Zn(T),j=E.left+(T.clientLeft+parseFloat(L.paddingLeft))*C.x,k=E.top+(T.clientTop+parseFloat(L.paddingTop))*C.y;p*=C.x,h*=C.y,g*=C.x,y*=C.y,p+=j,h+=k,x=Lt(T),T=ld(x)}}return ja({width:g,height:y,x:p,y:h})}function xc(e,n){const o=rc(e).scrollLeft;return n?n.left+o:Pi(Qr(e)).left+o}function D0(e,n){const o=e.getBoundingClientRect(),s=o.left+n.scrollLeft-xc(e,o),l=o.top+n.scrollTop;return{x:s,y:l}}function G_(e){let{elements:n,rect:o,offsetParent:s,strategy:l}=e;const c=l==="fixed",u=Qr(s),f=n?tc(n.floating):!1;if(s===u||f&&c)return o;let p={scrollLeft:0,scrollTop:0},h=eo(1);const g=eo(0),y=Zt(s);if((y||!y&&!c)&&((Hn(s)!=="body"||qo(u))&&(p=rc(s)),y)){const S=Pi(s);h=Es(s),g.x=S.x+s.clientLeft,g.y=S.y+s.clientTop}const b=u&&!y&&!c?D0(u,p):eo(0);return{width:o.width*h.x,height:o.height*h.y,x:o.x*h.x-p.scrollLeft*h.x+g.x+b.x,y:o.y*h.y-p.scrollTop*h.y+g.y+b.y}}function Y_(e){return Array.from(e.getClientRects())}function $_(e){const n=Qr(e),o=rc(e),s=e.ownerDocument.body,l=dr(n.scrollWidth,n.clientWidth,s.scrollWidth,s.clientWidth),c=dr(n.scrollHeight,n.clientHeight,s.scrollHeight,s.clientHeight);let u=-o.scrollLeft+xc(e);const f=-o.scrollTop;return Zn(s).direction==="rtl"&&(u+=dr(n.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:f}}const z0=25;function q_(e,n){const o=Lt(e),s=Qr(e),l=o.visualViewport;let c=s.clientWidth,u=s.clientHeight,f=0,p=0;if(l){c=l.width,u=l.height;const g=nc();(!g||g&&n==="fixed")&&(f=l.offsetLeft,p=l.offsetTop)}const h=xc(s);if(h<=0){const g=s.ownerDocument,y=g.body,b=getComputedStyle(y),S=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,x=Math.abs(s.clientWidth-y.clientWidth-S);x<=z0&&(c-=x)}else h<=z0&&(c+=h);return{width:c,height:u,x:f,y:p}}function X_(e,n){const o=Pi(e,!0,n==="fixed"),s=o.top+e.clientTop,l=o.left+e.clientLeft,c=Zt(e)?Es(e):eo(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,p=l*c.x,h=s*c.y;return{width:u,height:f,x:p,y:h}}function N0(e,n,o){let s;if(n==="viewport")s=q_(e,o);else if(n==="document")s=$_(Qr(e));else if(bt(n))s=X_(n,o);else{const l=M0(e);s={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return ja(s)}function k0(e,n){const o=yo(e);return o===n||!bt(o)||go(o)?!1:Zn(o).position==="fixed"||k0(o,n)}function Q_(e,n){const o=n.get(e);if(o)return o;let s=Aa(e,[],!1).filter(f=>bt(f)&&Hn(f)!=="body"),l=null;const c=Zn(e).position==="fixed";let u=c?yo(e):e;for(;bt(u)&&!go(u);){const f=Zn(u),p=ad(u);!p&&f.position==="fixed"&&(l=null),(c?!p&&!l:!p&&f.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||qo(u)&&!p&&k0(e,u))?s=s.filter(g=>g!==u):l=f,u=yo(u)}return n.set(e,s),s}function K_(e){let{element:n,boundary:o,rootBoundary:s,strategy:l}=e;const u=[...o==="clippingAncestors"?tc(n)?[]:Q_(n,this._c):[].concat(o),s],f=N0(n,u[0],l);let p=f.top,h=f.right,g=f.bottom,y=f.left;for(let b=1;b<u.length;b++){const S=N0(n,u[b],l);p=dr(S.top,p),h=vs(S.right,h),g=vs(S.bottom,g),y=dr(S.left,y)}return{width:h-y,height:g-p,x:y,y:p}}function W_(e){const{width:n,height:o}=A0(e);return{width:n,height:o}}function J_(e,n,o){const s=Zt(n),l=Qr(n),c=o==="fixed",u=Pi(e,!0,c,n);let f={scrollLeft:0,scrollTop:0};const p=eo(0);function h(){p.x=xc(l)}if(s||!s&&!c)if((Hn(n)!=="body"||qo(l))&&(f=rc(n)),s){const S=Pi(n,!0,c,n);p.x=S.x+n.clientLeft,p.y=S.y+n.clientTop}else l&&h();c&&!s&&l&&h();const g=l&&!s&&!c?D0(l,f):eo(0),y=u.left+f.scrollLeft-p.x-g.x,b=u.top+f.scrollTop-p.y-g.y;return{x:y,y:b,width:u.width,height:u.height}}function Yd(e){return Zn(e).position==="static"}function j0(e,n){if(!Zt(e)||Zn(e).position==="fixed")return null;if(n)return n(e);let o=e.offsetParent;return Qr(e)===o&&(o=o.ownerDocument.body),o}function L0(e,n){const o=Lt(e);if(tc(e))return o;if(!Zt(e)){let l=yo(e);for(;l&&!go(l);){if(bt(l)&&!Yd(l))return l;l=yo(l)}return o}let s=j0(e,n);for(;s&&BR(s)&&Yd(s);)s=j0(s,n);return s&&go(s)&&Yd(s)&&!ad(s)?o:s||YR(e)||o}const eA=async function(e){const n=this.getOffsetParent||L0,o=this.getDimensions,s=await o(e.floating);return{reference:J_(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function tA(e){return Zn(e).direction==="rtl"}const P0={convertOffsetParentRelativeRectToViewportRelativeRect:G_,getDocumentElement:Qr,getClippingRect:K_,getOffsetParent:L0,getElementRects:eA,getClientRects:Y_,getDimensions:W_,getScale:Es,isElement:bt,isRTL:tA};function I0(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function nA(e,n){let o=null,s;const l=Qr(e);function c(){var f;clearTimeout(s),(f=o)==null||f.disconnect(),o=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),c();const h=e.getBoundingClientRect(),{left:g,top:y,width:b,height:S}=h;if(f||n(),!b||!S)return;const x=Mi(y),T=Mi(l.clientWidth-(g+b)),C=Mi(l.clientHeight-(y+S)),E=Mi(g),j={rootMargin:-x+"px "+-T+"px "+-C+"px "+-E+"px",threshold:dr(0,vs(1,p))||1};let k=!0;function R(N){const z=N[0].intersectionRatio;if(z!==p){if(!k)return u();z?u(!1,z):s=setTimeout(()=>{u(!1,1e-7)},1e3)}z===1&&!I0(h,e.getBoundingClientRect())&&u(),k=!1}try{o=new IntersectionObserver(R,{...j,root:l.ownerDocument})}catch{o=new IntersectionObserver(R,j)}o.observe(e)}return u(!0),c}function U0(e,n,o,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,h=Gd(e),g=l||c?[...h?Aa(h):[],...n?Aa(n):[]]:[];g.forEach(E=>{l&&E.addEventListener("scroll",o,{passive:!0}),c&&E.addEventListener("resize",o)});const y=h&&f?nA(h,o):null;let b=-1,S=null;u&&(S=new ResizeObserver(E=>{let[L]=E;L&&L.target===h&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=S)==null||j.observe(n)})),o()}),h&&!p&&S.observe(h),n&&S.observe(n));let x,T=p?Pi(e):null;p&&C();function C(){const E=Pi(e);T&&!I0(T,E)&&o(),T=E,x=requestAnimationFrame(C)}return o(),()=>{var E;g.forEach(L=>{l&&L.removeEventListener("scroll",o),c&&L.removeEventListener("resize",o)}),y?.(),(E=S)==null||E.disconnect(),S=null,p&&cancelAnimationFrame(x)}}const rA=U_,oA=V_,iA=L_,sA=F_,aA=P_,lA=H_,cA=(e,n,o)=>{const s=new Map,l={platform:P0,...o},c={...l.platform,_c:s};return j_(e,n,{...l,platform:c})};var uA=typeof document<"u",fA=function(){},Ec=uA?v.useLayoutEffect:fA;function Tc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let o,s,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==n.length)return!1;for(s=o;s--!==0;)if(!Tc(e[s],n[s]))return!1;return!0}if(l=Object.keys(e),o=l.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(n,l[s]))return!1;for(s=o;s--!==0;){const c=l[s];if(!(c==="_owner"&&e.$$typeof)&&!Tc(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function V0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function H0(e,n){const o=V0(e);return Math.round(n*o)/o}function $d(e){const n=v.useRef(e);return Ec(()=>{n.current=e}),n}function dA(e){e===void 0&&(e={});const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:l,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:p,open:h}=e,[g,y]=v.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=v.useState(s);Tc(b,s)||S(s);const[x,T]=v.useState(null),[C,E]=v.useState(null),L=v.useCallback(U=>{U!==N.current&&(N.current=U,T(U))},[]),j=v.useCallback(U=>{U!==z.current&&(z.current=U,E(U))},[]),k=c||x,R=u||C,N=v.useRef(null),z=v.useRef(null),P=v.useRef(g),K=p!=null,G=$d(p),q=$d(l),te=$d(h),ee=v.useCallback(()=>{if(!N.current||!z.current)return;const U={placement:n,strategy:o,middleware:b};q.current&&(U.platform=q.current),cA(N.current,z.current,U).then(B=>{const Q={...B,isPositioned:te.current!==!1};F.current&&!Tc(P.current,Q)&&(P.current=Q,Cr.flushSync(()=>{y(Q)}))})},[b,n,o,q,te]);Ec(()=>{h===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[h]);const F=v.useRef(!1);Ec(()=>(F.current=!0,()=>{F.current=!1}),[]),Ec(()=>{if(k&&(N.current=k),R&&(z.current=R),k&&R){if(G.current)return G.current(k,R,ee);ee()}},[k,R,ee,G,K]);const I=v.useMemo(()=>({reference:N,floating:z,setReference:L,setFloating:j}),[L,j]),_=v.useMemo(()=>({reference:k,floating:R}),[k,R]),O=v.useMemo(()=>{const U={position:o,left:0,top:0};if(!_.floating)return U;const B=H0(_.floating,g.x),Q=H0(_.floating,g.y);return f?{...U,transform:"translate("+B+"px, "+Q+"px)",...V0(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:B,top:Q}},[o,f,_.floating,g.x,g.y]);return v.useMemo(()=>({...g,update:ee,refs:I,elements:_,floatingStyles:O}),[g,ee,I,_,O])}const hA=(e,n)=>{const o=rA(e);return{name:o.name,fn:o.fn,options:[e,n]}},pA=(e,n)=>{const o=oA(e);return{name:o.name,fn:o.fn,options:[e,n]}},mA=(e,n)=>({fn:lA(e).fn,options:[e,n]}),gA=(e,n)=>{const o=iA(e);return{name:o.name,fn:o.fn,options:[e,n]}},yA=(e,n)=>{const o=sA(e);return{name:o.name,fn:o.fn,options:[e,n]}},vA=(e,n)=>{const o=aA(e);return{name:o.name,fn:o.fn,options:[e,n]}},bA={open:Ae(e=>e.open),transitionStatus:Ae(e=>e.transitionStatus),domReferenceElement:Ae(e=>e.domReferenceElement),referenceElement:Ae(e=>e.positionReference??e.referenceElement),floatingElement:Ae(e=>e.floatingElement),floatingId:Ae(e=>e.floatingId)};class qd extends Jl{constructor(n){const{syncOnly:o,nested:s,onOpenChange:l,triggerElements:c,...u}=n;super({...u,positionReference:u.referenceElement,domReferenceElement:u.referenceElement},{onOpenChange:l,dataRef:{current:{}},events:S0(),nested:s,triggerElements:c},bA),this.syncOnly=o}syncOpenEvent=(n,o)=>{(!n||!this.state.open||o!=null&&My(o))&&(this.context.dataRef.current.openEvent=n?o:void 0)};dispatchOpenChange=(n,o)=>{this.syncOpenEvent(n,o.event);const s={open:n,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",s)};setOpen=(n,o)=>{if(this.syncOnly){this.context.onOpenChange?.(n,o);return}this.dispatchOpenChange(n,o),this.context.onOpenChange?.(n,o)}}function Va(e,n=!1,o=!1){const[s,l]=v.useState(e&&n?"idle":void 0),[c,u]=v.useState(e);return e&&!c&&(u(!0),l("starting")),!e&&c&&s!=="ending"&&!o&&l("ending"),!e&&!c&&s==="ending"&&l(void 0),ke(()=>{if(!e&&c&&s!=="ending"&&o){const f=Wr.request(()=>{l("ending")});return()=>{Wr.cancel(f)}}},[e,c,s,o]),ke(()=>{if(!e||n)return;const f=Wr.request(()=>{l(void 0)});return()=>{Wr.cancel(f)}},[n,e]),ke(()=>{if(!e||!n)return;e&&c&&s!=="idle"&&l("starting");const f=Wr.request(()=>{l("idle")});return()=>{Wr.cancel(f)}},[n,e,c,s]),{mounted:c,setMounted:u,transitionStatus:s}}function SA(e,n){const o=v.useRef(null),s=v.useRef(null);return v.useCallback(l=>{if(e!==void 0){if(o.current!==null){const c=o.current,u=s.current,f=n.context.triggerElements.getById(c);u&&f===u&&n.context.triggerElements.delete(c),o.current=null,s.current=null}l!==null&&(o.current=e,s.current=l,n.context.triggerElements.add(e,l))}},[n,e])}function F0(e,n,o,s){const l=o.useState("isMountedByTrigger",e),c=SA(e,o),u=Te(f=>{if(c(f),!f||!o.select("open"))return;const p=o.select("activeTriggerId");if(p===e){o.update({activeTriggerElement:f,...s});return}p==null&&o.update({activeTriggerId:e,activeTriggerElement:f,...s})});return ke(()=>{l&&o.update({activeTriggerElement:n.current,...s})},[l,o,n,...Object.values(s)]),{registerTrigger:u,isMountedByThisTrigger:l}}function B0(e){const n=e.useState("open");ke(()=>{if(n&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const o=e.context.triggerElements.entries().next();if(!o.done){const[s,l]=o.value;e.update({activeTriggerId:s,activeTriggerElement:l})}}},[n,e])}function Z0(e,n,o){const{mounted:s,setMounted:l,transitionStatus:c}=Va(e);n.useSyncedValues({mounted:s,transitionStatus:c});const u=Te(()=>{l(!1),n.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),o?.(),n.context.onOpenChangeComplete?.(!1)}),f=n.useState("preventUnmountingOnClose");return ro({enabled:!f,open:e,ref:n.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:c}}class Cc{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(n,o){const s=this.idMap.get(n);s!==o&&(s!==void 0&&this.elementsSet.delete(s),this.elementsSet.add(o),this.idMap.set(n,o))}delete(n){const o=this.idMap.get(n);o&&(this.elementsSet.delete(o),this.idMap.delete(n))}hasElement(n){return this.elementsSet.has(n)}hasMatchingElement(n){for(const o of this.elementsSet)if(n(o))return!0;return!1}getById(n){return this.idMap.get(n)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function wA(){return new qd({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Cc,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function G0(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:wA(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:rn,inactiveTriggerProps:rn,popupProps:rn}}const Rc=Ae(e=>e.triggerIdProp??e.activeTriggerId),Y0={open:Ae(e=>e.openProp??e.open),mounted:Ae(e=>e.mounted),transitionStatus:Ae(e=>e.transitionStatus),floatingRootContext:Ae(e=>e.floatingRootContext),preventUnmountingOnClose:Ae(e=>e.preventUnmountingOnClose),payload:Ae(e=>e.payload),activeTriggerId:Rc,activeTriggerElement:Ae(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ae((e,n)=>n!==void 0&&Rc(e)===n),isOpenedByTrigger:Ae((e,n)=>n!==void 0&&Rc(e)===n&&e.open),isMountedByTrigger:Ae((e,n)=>n!==void 0&&Rc(e)===n&&e.mounted),triggerProps:Ae((e,n)=>n?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ae(e=>e.popupProps),popupElement:Ae(e=>e.popupElement),positionerElement:Ae(e=>e.positionerElement)};function $0(e){const{open:n=!1,onOpenChange:o,elements:s={}}=e,l=Jo(),c=ei()!=null,u=vn(()=>new qd({open:n,transitionStatus:void 0,onOpenChange:o,referenceElement:s.reference??null,floatingElement:s.floating??null,triggerElements:new Cc,floatingId:l,syncOnly:!1,nested:c})).current;return ke(()=>{const f={open:n,floatingId:l};s.reference!==void 0&&(f.referenceElement=s.reference,f.domReferenceElement=bt(s.reference)?s.reference:null),s.floating!==void 0&&(f.floatingElement=s.floating),u.update(f)},[n,l,s.reference,s.floating,u]),u.context.onOpenChange=o,u.context.nested=c,u}function xA(e={}){const{nodeId:n,externalTree:o}=e,s=$0(e),l=e.rootContext||s,c={reference:l.useState("referenceElement"),floating:l.useState("floatingElement"),domReference:l.useState("domReferenceElement")},[u,f]=v.useState(null),p=v.useRef(null),h=Li(o);ke(()=>{c.domReference&&(p.current=c.domReference)},[c.domReference]);const g=dA({...e,elements:{...c,...u&&{reference:u}}}),y=v.useCallback(P=>{const K=bt(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),getClientRects:()=>P.getClientRects(),contextElement:P}:P;f(K),g.refs.setReference(K)},[g.refs]),[b,S]=v.useState(void 0),[x,T]=v.useState(null);l.useSyncedValue("referenceElement",b??null);const C=bt(b)?b:null;l.useSyncedValue("domReferenceElement",b===void 0?c.domReference:C),l.useSyncedValue("floatingElement",x);const E=v.useCallback(P=>{(bt(P)||P===null)&&(p.current=P,S(P)),(bt(g.refs.reference.current)||g.refs.reference.current===null||P!==null&&!bt(P))&&g.refs.setReference(P)},[g.refs,S]),L=v.useCallback(P=>{T(P),g.refs.setFloating(P)},[g.refs]),j=v.useMemo(()=>({...g.refs,setReference:E,setFloating:L,setPositionReference:y,domReference:p}),[g.refs,E,L,y]),k=v.useMemo(()=>({...g.elements,domReference:c.domReference}),[g.elements,c.domReference]),R=l.useState("open"),N=l.useState("floatingId"),z=v.useMemo(()=>({...g,dataRef:l.context.dataRef,open:R,onOpenChange:l.setOpen,events:l.context.events,floatingId:N,refs:j,elements:k,nodeId:n,rootStore:l}),[g,j,k,n,l,R,N]);return ke(()=>{l.context.dataRef.current.floatingContext=z;const P=h?.nodesRef.current.find(K=>K.id===n);P&&(P.context=z)}),v.useMemo(()=>({...g,context:z,refs:j,elements:k,rootStore:l}),[g,j,k,z,l])}function q0(e){const{popupStore:n,treatPopupAsFloatingElement:o=!1,onOpenChange:s}=e,l=Jo(),c=ei()!=null,u=n.useState("open"),f=n.useState("activeTriggerElement"),p=n.useState(o?"popupElement":"positionerElement"),h=n.context.triggerElements,g=vn(()=>new qd({open:u,transitionStatus:void 0,referenceElement:f,floatingElement:p,triggerElements:h,onOpenChange:s,floatingId:l,syncOnly:!0,nested:c})).current;return ke(()=>{const y={open:u,floatingId:l,referenceElement:f,floatingElement:p};bt(f)&&(y.domReferenceElement=f),g.state.positionReference===g.state.referenceElement&&(y.positionReference=f),g.update(y)},[u,l,f,p,g]),g.context.onOpenChange=s,g.context.nested=c,g}class Xd{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new cr,this.restTimeout=new cr,this.handleCloseOptions=void 0}static create(){return new Xd}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const Oc=new WeakMap;function _c(e){if(!e.performedPointerEventsMutation)return;const n=e.pointerEventsScopeElement;n&&Oc.get(n)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Oc.delete(n)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function X0(e,n){const{scopeElement:o,referenceElement:s,floatingElement:l}=n,c=Oc.get(o);c&&c!==e&&_c(c),_c(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=s,e.pointerEventsFloatingElement=l,Oc.set(o,e),o.style.pointerEvents="none",s.style.pointerEvents="auto",l.style.pointerEvents="auto"}function Q0(e){const n=vn(Xd.create).current,o=e.context.dataRef.current;return o.hoverInteractionState||(o.hoverInteractionState=n),_a(o.hoverInteractionState.disposeEffect),o.hoverInteractionState}function EA(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingElement"),c=o.useState("domReferenceElement"),{dataRef:u}=o.context,{enabled:f=!0,closeDelay:p=0,nodeId:h}=n,g=Q0(o),y=Li(),b=ei(),S=Te(()=>c0(u.current.openEvent?.type,g.interactedInside)),x=Te(()=>{const k=u.current.openEvent?.type;return k?.includes("mouse")&&k!=="mousedown"}),T=Te(k=>Ry(k,o.context.triggerElements)),C=v.useCallback(k=>{const R=zd(p,"close",g.pointerType),N=()=>{o.setOpen(!1,ct(Yn,k)),y?.events.emit("floating.closed",k)};R?g.openChangeTimeout.start(R,N):(g.openChangeTimeout.clear(),N())},[p,o,g,y]),E=Te(()=>{_c(g)}),L=Te(k=>{const R=Xt(k);if(!eO(R)){g.interactedInside=!1;return}g.interactedInside=R?.closest("[aria-haspopup]")!=null});ke(()=>{s||(g.pointerType=void 0,g.restTimeoutPending=!1,g.interactedInside=!1,E())},[s,g,E]),v.useEffect(()=>E,[E]),ke(()=>{if(f&&s&&g.handleCloseOptions?.blockPointerEvents&&x()&&bt(c)&&l){const k=c,R=l,N=Je(l),z=y?.nodesRef.current.find(K=>K.id===b)?.context?.elements.floating;z&&(z.style.pointerEvents="");const P=g.handleCloseOptions?.getScope?.()??g.pointerEventsScopeElement??z??k.closest("[data-rootownerid]")??N.body;return X0(g,{scopeElement:P,referenceElement:k,floatingElement:R}),()=>{E()}}},[f,s,c,l,g,x,y,b,E]);const j=ur();v.useEffect(()=>{if(!f)return;function k(){g.openChangeTimeout.clear(),j.clear(),y?.events.off("floating.closed",N),E()}function R(P){if(y&&b&&Jr(y.nodesRef.current,b).length>0){y.events.on("floating.closed",N);return}if(T(P.relatedTarget))return;const K=u.current.floatingContext?.nodeId??h,G=P.relatedTarget;if(!(y&&K&&bt(G)&&Jr(y.nodesRef.current,K,!1).some(te=>Ie(te.context?.elements.floating,G)))){if(g.handler){g.handler(P);return}E(),S()||C(P)}}function N(P){!y||!b||Jr(y.nodesRef.current,b).length>0||j.start(0,()=>{y.events.off("floating.closed",N),o.setOpen(!1,ct(Yn,P)),y.events.emit("floating.closed",P)})}const z=l;return Kr(z&&pt(z,"mouseenter",k),z&&pt(z,"mouseleave",R),z&&pt(z,"pointerdown",L,!0),()=>{y?.events.off("floating.closed",N)})},[f,l,o,u,h,S,T,C,E,L,g,y,b,j])}const TA={current:null};function CA(e,n={}){const o="rootStore"in e?e.rootStore:e,{dataRef:s,events:l}=o.context,{enabled:c=!0,delay:u=0,handleClose:f=null,mouseOnly:p=!1,restMs:h=0,move:g=!0,triggerElementRef:y=TA,externalTree:b,isActiveTrigger:S=!0,getHandleCloseContext:x,isClosing:T}=n,C=Li(b),E=Q0(o),L=v.useRef(!1),j=dn(f),k=dn(u),R=dn(h),N=dn(c),z=dn(T);S&&(E.handleCloseOptions=j.current?.__options);const P=Te(()=>c0(s.current.openEvent?.type,E.interactedInside)),K=Te(F=>Ry(F,o.context.triggerElements)),G=Te((F,I,_)=>{const O=o.context.triggerElements;if(O.hasElement(I))return!F||!Ie(F,I);if(!bt(_))return!1;const U=_;return O.hasMatchingElement(B=>Ie(B,U))&&(!F||!Ie(F,U))}),q=Te((F,I=!0)=>{const _=zd(k.current,"close",E.pointerType);_?E.openChangeTimeout.start(_,()=>{o.setOpen(!1,ct(Yn,F)),C?.events.emit("floating.closed",F)}):I&&(E.openChangeTimeout.clear(),o.setOpen(!1,ct(Yn,F)),C?.events.emit("floating.closed",F))}),te=Te(()=>{if(!E.handler)return;Je(o.select("domReferenceElement")).removeEventListener("mousemove",E.handler),E.handler=void 0}),ee=Te(()=>{_c(E)});return v.useEffect(()=>te,[te]),v.useEffect(()=>{if(!c)return;function F(I){I.open?L.current=!1:(L.current=I.reason===Yn,te(),E.openChangeTimeout.clear(),E.restTimeout.clear(),E.blockMouseMove=!0,E.restTimeoutPending=!1)}return l.on("openchange",F),()=>{l.off("openchange",F)}},[c,l,E,te]),v.useEffect(()=>{if(!c)return;const F=y.current??(S?o.select("domReferenceElement"):null);if(!bt(F))return;function I(O){if(E.openChangeTimeout.clear(),E.blockMouseMove=!1,p&&!ka(E.pointerType))return;const U=l0(R.current),B=zd(k.current,"open",E.pointerType),Q=Xt(O),A=O.currentTarget??null,V=o.select("domReferenceElement");let Y=A;if(bt(Q)&&!o.context.triggerElements.hasElement(Q)){for(const fe of o.context.triggerElements.elements())if(Ie(fe,Q)){Y=fe;break}}bt(A)&&bt(V)&&!o.context.triggerElements.hasElement(A)&&Ie(A,V)&&(Y=V);const W=Y==null?!1:G(V,Y,Q),ne=o.select("open"),ie=z.current?.()??o.select("transitionStatus")==="ending",ce=!ne&&ie&&L.current,de=!W&&bt(Y)&&bt(V)&&Ie(V,Y)&&ce,ye=U>0&&!B,Ee=W&&(ne||ce)||de,Me=!ne||W;if(Ee){o.setOpen(!0,ct(Yn,O,Y));return}ye||(B?E.openChangeTimeout.start(B,()=>{Me&&o.setOpen(!0,ct(Yn,O,Y))}):Me&&o.setOpen(!0,ct(Yn,O,Y)))}function _(O){if(P()){ee();return}te();const U=o.select("domReferenceElement"),B=Je(U);E.restTimeout.clear(),E.restTimeoutPending=!1;const Q=s.current.floatingContext??x?.();if(K(O.relatedTarget))return;if(j.current&&Q){o.select("open")||E.openChangeTimeout.clear();const Y=y.current;E.handler=j.current({...Q,tree:C,x:O.clientX,y:O.clientY,onClose(){ee(),te(),N.current&&!P()&&Y===o.select("domReferenceElement")&&q(O,!0)}}),B.addEventListener("mousemove",E.handler),E.handler(O);return}(E.pointerType!=="touch"||!Ie(o.select("floatingElement"),O.relatedTarget))&&q(O)}return g?Kr(pt(F,"mousemove",I,{once:!0}),pt(F,"mouseenter",I),pt(F,"mouseleave",_)):Kr(pt(F,"mouseenter",I),pt(F,"mouseleave",_))},[te,ee,s,k,q,o,c,j,E,S,G,P,K,p,g,R,y,C,N,x,z]),v.useMemo(()=>{if(!c)return;function F(I){E.pointerType=I.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(I){const{nativeEvent:_}=I,O=I.currentTarget,U=o.select("domReferenceElement"),B=o.select("open"),Q=G(U,O,I.target);if(p&&!ka(E.pointerType))return;if(B&&Q&&E.handleCloseOptions?.blockPointerEvents){const Y=o.select("floatingElement");if(Y){const W=E.handleCloseOptions?.getScope?.()??O.ownerDocument.body;X0(E,{scopeElement:W,referenceElement:O,floatingElement:Y})}}const A=l0(R.current);if(B&&!Q||A===0||!Q&&E.restTimeoutPending&&I.movementX**2+I.movementY**2<2)return;E.restTimeout.clear();function V(){if(E.restTimeoutPending=!1,P())return;const Y=o.select("open");!E.blockMouseMove&&(!Y||Q)&&o.setOpen(!0,ct(Yn,_,O))}E.pointerType==="touch"?Cr.flushSync(()=>{V()}):Q&&B?V():(E.restTimeoutPending=!0,E.restTimeout.start(A,V))}}},[c,E,P,G,p,o,R])}function Ha(e=[]){const n=e.map(h=>h?.reference),o=e.map(h=>h?.floating),s=e.map(h=>h?.item),l=e.map(h=>h?.trigger),c=v.useCallback(h=>Ac(h,e,"reference"),n),u=v.useCallback(h=>Ac(h,e,"floating"),o),f=v.useCallback(h=>Ac(h,e,"item"),s),p=v.useCallback(h=>Ac(h,e,"trigger"),l);return v.useMemo(()=>({getReferenceProps:c,getFloatingProps:u,getItemProps:f,getTriggerProps:p}),[c,u,f,p])}function Ac(e,n,o){const s=new Map,l=o==="item",c={};o==="floating"&&(c.tabIndex=-1,c[dd]="");for(const u in e)l&&e&&(u===Ey||u===Ty)||(c[u]=e[u]);for(let u=0;u<n.length;u+=1){let f;const p=n[u]?.[o];typeof p=="function"?f=e?p(e):null:f=p,f&&K0(c,f,l,s)}return K0(c,e,l,s),c}function K0(e,n,o,s){for(const l in n){const c=n[l];o&&(l===Ey||l===Ty)||(l.startsWith("on")?(s.has(l)||s.set(l,[]),typeof c=="function"&&(s.get(l)?.push(c),e[l]=(...u)=>s.get(l)?.map(f=>f(...u)).find(f=>f!==void 0))):e[l]=c)}}const RA="Escape";function Mc(e,n,o){switch(e){case"vertical":return n;case"horizontal":return o;default:return n||o}}function Dc(e,n){return Mc(n,e===hd||e===za,e===Xo||e===Qo)}function Qd(e,n,o){return Mc(n,e===za,o?e===Xo:e===Qo)||e==="Enter"||e===" "||e===""}function OA(e,n,o){return Mc(n,o?e===Xo:e===Qo,e===za)}function _A(e,n,o,s){const l=o?e===Qo:e===Xo,c=e===hd;return n==="both"||n==="horizontal"&&s&&s>1?e===RA:Mc(n,l,c)}function AA(e,n){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingElement"),c=o.useState("domReferenceElement"),u=o.context.dataRef,{listRef:f,activeIndex:p,onNavigate:h=()=>{},enabled:g=!0,selectedIndex:y=null,allowEscape:b=!1,loopFocus:S=!1,nested:x=!1,rtl:T=!1,virtual:C=!1,focusItemOnOpen:E="auto",focusItemOnHover:L=!0,openOnArrowKeyDown:j=!0,disabledIndices:k=void 0,orientation:R="vertical",parentOrientation:N,cols:z=1,id:P,resetOnPointerLeave:K=!0,externalTree:G}=n,q=Na(l),te=dn(q),ee=ei(),F=Li(G);ke(()=>{u.current.orientation=R},[u,R]);const I=md(c),_=v.useRef(E),O=v.useRef(y??-1),U=v.useRef(null),B=v.useRef(!0),Q=Te(H=>{h(O.current===-1?null:O.current,H)}),A=v.useRef(Q),V=v.useRef(!!l),Y=v.useRef(s),W=v.useRef(!1),ne=v.useRef(!1),ie=v.useRef(null),ce=dn(k),de=dn(s),ye=dn(y),Ee=dn(K),Me=Te(()=>{function H(ve){C?F?.events.emit("virtualfocus",ve):ie.current=Sc(ve,{sync:W.current,preventScroll:!0})}const oe=f.current[O.current],J=ne.current;oe&&H(oe),(W.current?ve=>ve():requestAnimationFrame)(()=>{const ve=f.current[O.current]||oe;if(!ve)return;oe||H(ve),De&&(J||!B.current)&&ve.scrollIntoView?.({block:"nearest",inline:"nearest"})})});ke(()=>{g&&(s&&l?(O.current=y??-1,_.current&&y!=null&&(ne.current=!0,Q())):V.current&&(O.current=-1,A.current()))},[g,s,l,y,Q]),ke(()=>{if(g){if(!s){W.current=!1;return}if(l)if(p==null){if(W.current=!1,ye.current!=null)return;if(V.current&&(O.current=-1,Me()),(!Y.current||!V.current)&&_.current&&(U.current!=null||_.current===!0&&U.current==null)){let H=0;const oe=()=>{f.current[0]==null?(H<2&&(H?requestAnimationFrame:queueMicrotask)(oe),H+=1):(O.current=U.current==null||Qd(U.current,R,T)||x?xd(f):ky(f),U.current=null,Q())};oe()}}else uc(f.current,p)||(O.current=p,Me(),ne.current=!1)}},[g,s,l,p,ye,x,f,R,T,Q,Me,ce]),ke(()=>{if(!g||l||!F||C||!V.current)return;const H=F.nodesRef.current,oe=H.find(ve=>ve.id===ee)?.context?.elements.floating,J=zn(Je(l)),X=H.some(ve=>ve.context&&Ie(ve.context.elements.floating,J));oe&&!X&&B.current&&oe.focus({preventScroll:!0})},[g,l,F,ee,C]),ke(()=>{A.current=Q,Y.current=s,V.current=!!l}),ke(()=>{s||(U.current=null,_.current=E)},[s,E]);const fe=p!=null,ze=Te(H=>{if(!de.current)return;const oe=f.current.indexOf(H.currentTarget);oe!==-1&&(O.current!==oe||p!==oe)&&(O.current=oe,Q(H))}),De=v.useMemo(()=>({onFocus(oe){W.current=!0,ze(oe)},onClick:({currentTarget:oe})=>oe.focus({preventScroll:!0}),onMouseMove(oe){W.current=!0,ne.current=!1,L&&ze(oe)},onPointerLeave(oe){if(!de.current||!B.current||oe.pointerType==="touch")return;W.current=!0;const J=oe.relatedTarget;if(!(!L||f.current.includes(J))&&Ee.current&&(ie.current?.(),ie.current=null,O.current=-1,Q(oe),!C)){const X=te.current,ve=zn(Je(X));X&&Ie(X,ve)&&X.focus({preventScroll:!0})}}}),[ze,de,te,L,f,Q,Ee,C]),_e=v.useCallback(()=>N??F?.nodesRef.current.find(H=>H.id===ee)?.context?.dataRef?.current.orientation,[ee,F,N]),Oe=Te(H=>{if(B.current=!1,W.current=!0,H.which===229||!de.current&&H.currentTarget===te.current)return;if(x&&_A(H.key,R,T,z)){Dc(H.key,_e())||fr(H),o.setOpen(!1,ct(jd,H.nativeEvent)),Zt(c)&&(C?F?.events.emit("virtualfocus",c):c.focus());return}const oe=O.current,J=xd(f,k),X=ky(f,k);if(I||(H.key==="Home"&&(fr(H),O.current=J,Q(H)),H.key==="End"&&(fr(H),O.current=X,Q(H))),z>1){const ve=Array.from({length:f.current.length},()=>({width:1,height:1})),we=dO(ve,z),be=we.findIndex(He=>He!=null&&!bs(f.current,He,k)),Ne=we.reduce((He,Be,$e)=>Be!=null&&!bs(f.current,Be,k)?$e:He,-1),qe=we[fO(we.map(He=>He!=null?f.current[He]:null),{event:H,orientation:R,loopFocus:S,rtl:T,cols:z,disabledIndices:pO([...(typeof k!="function"?k:null)||f.current.map((He,Be)=>bs(f.current,Be,k)?Be:void 0),void 0],we),minIndex:be,maxIndex:Ne,prevIndex:hO(O.current>X?J:O.current,ve,we,z,H.key===za?"bl":H.key===(T?Xo:Qo)?"tr":"tl"),stopEvent:!0})];if(qe!=null&&(O.current=qe,Q(H)),R==="both")return}if(Dc(H.key,R)){if(fr(H),s&&!C&&zn(H.currentTarget.ownerDocument)===H.currentTarget){O.current=Qd(H.key,R,T)?J:X,Q(H);return}Qd(H.key,R,T)?S?oe>=X?b&&oe!==f.current.length?O.current=-1:(W.current=!1,O.current=J):O.current=Gn(f.current,{startingIndex:oe,disabledIndices:k}):O.current=Math.min(X,Gn(f.current,{startingIndex:oe,disabledIndices:k})):S?oe<=J?b&&oe!==-1?O.current=f.current.length:(W.current=!1,O.current=X):O.current=Gn(f.current,{startingIndex:oe,decrement:!0,disabledIndices:k}):O.current=Math.max(J,Gn(f.current,{startingIndex:oe,decrement:!0,disabledIndices:k})),uc(f.current,O.current)&&(O.current=-1),Q(H)}}),Ce=v.useMemo(()=>C&&s&&fe&&{"aria-activedescendant":`${P}-${p}`},[C,s,fe,P,p]),Le=v.useMemo(()=>({"aria-orientation":R==="both"?void 0:R,...I?{}:Ce,onKeyDown(H){if(H.key==="Tab"&&H.shiftKey&&s&&!C){const oe=Xt(H.nativeEvent);if(oe&&!Ie(te.current,oe))return;fr(H),o.setOpen(!1,ct(ji,H.nativeEvent)),Zt(c)&&c.focus();return}Oe(H)},onPointerMove(){B.current=!0}}),[Ce,Oe,te,R,I,o,s,C,c]),Re=v.useMemo(()=>{function H(J){E==="auto"&&_y(J.nativeEvent)&&(_.current=!C)}function oe(J){_.current=E,E==="auto"&&Ay(J.nativeEvent)&&(_.current=!0)}return{onKeyDown(J){const X=o.select("open");B.current=!1;const ve=J.key.startsWith("Arrow"),we=OA(J.key,_e(),T),be=Dc(J.key,R),Ne=(x?we:be)||J.key==="Enter"||J.key.trim()==="";if(C&&X)return Oe(J);if(!(!X&&!j&&ve)){if(Ne){const qe=Dc(J.key,_e());U.current=x&&qe?null:J.key}if(x){we&&(fr(J),X?(O.current=xd(f,ce.current),Q(J)):o.setOpen(!0,ct(jd,J.nativeEvent,J.currentTarget)));return}be&&(ye.current!=null&&(O.current=ye.current),fr(J),!X&&j?o.setOpen(!0,ct(jd,J.nativeEvent,J.currentTarget)):Oe(J),X&&Q(J))}},onFocus(J){o.select("open")&&!C&&(O.current=-1,Q(J))},onPointerDown:oe,onPointerEnter:oe,onMouseDown:H,onClick:H}},[Oe,ce,E,f,x,Q,o,j,R,_e,T,ye,C]),Ue=v.useMemo(()=>({...Ce,...Re}),[Ce,Re]);return v.useMemo(()=>g?{reference:Ue,floating:Le,item:De,trigger:Re}:{},[g,Ue,Le,Re,De])}const MA=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function W0(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingId"),c=o.useState("domReferenceElement"),u=o.useState("floatingElement"),{role:f="dialog"}=n,p=Jo(),h=c?.id||p,g=v.useMemo(()=>Na(u)?.id||l,[u,l]),y=MA.get(f)??f,S=ei()!=null,x=v.useMemo(()=>y==="tooltip"||f==="label"?rn:{"aria-haspopup":y==="alertdialog"?"dialog":y,"aria-expanded":"false",...y==="listbox"&&{role:"combobox"},...y==="menu"&&S&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[y,S,f]),T=v.useMemo(()=>y==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:s?g:void 0}:{...x,"aria-expanded":s?"true":"false","aria-controls":s?g:void 0,...y==="menu"&&{id:h}},[y,g,s,h,f,x]),C=v.useMemo(()=>{const L={id:g,...y&&{role:y}};return y==="tooltip"||f==="label"?L:{...L,...y==="menu"&&{"aria-labelledby":h}}},[y,g,h,f]),E=v.useCallback(({active:L,selected:j})=>{const k={role:"option",...L&&{id:`${g}-fui-option`}};switch(f){case"select":case"combobox":return{...k,"aria-selected":j}}return{}},[g,f]);return v.useMemo(()=>({reference:T,floating:C,item:E,trigger:x}),[T,C,x,E])}function DA(e,n){const o="rootStore"in e?e.rootStore:e,s=o.context.dataRef,l=o.useState("open"),{listRef:c,elementsRef:u,activeIndex:f,onMatch:p,onTypingChange:h,enabled:g=!0,resetMs:y=750,selectedIndex:b=null}=n,S=ur(),x=v.useRef(""),T=v.useRef(b??f??-1),C=v.useRef(null);ke(()=>{!l&&b!==null||(S.clear(),C.current=null,x.current!==""&&(x.current=""))},[l,b,S]),ke(()=>{l&&x.current===""&&(T.current=b??f??-1)},[l,b,f]);const E=Te(N=>{N?s.current.typing||(s.current.typing=N,h?.(N)):s.current.typing&&(s.current.typing=N,h?.(N))}),L=Te(N=>{function z(I){const _=u?.current[I];return!_||fc(_)}function P(I,_,O=0){if(I.length===0)return-1;const U=(O%I.length+I.length)%I.length,B=_.toLocaleLowerCase();for(let Q=0;Q<I.length;Q+=1){const A=(U+Q)%I.length;if(!(!I[A]?.toLocaleLowerCase().startsWith(B)||!z(A)))return A}return-1}const K=c.current;if(x.current.length>0&&N.key===" "&&(fr(N),E(!0)),x.current.length>0&&x.current[0]!==" "&&P(K,x.current)===-1&&N.key!==" "&&E(!1),K==null||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;l&&N.key!==" "&&(fr(N),E(!0));const G=x.current==="";G&&(T.current=b??f??-1),K.every(I=>I?I[0]?.toLocaleLowerCase()!==I[1]?.toLocaleLowerCase():!0)&&x.current===N.key&&(x.current="",T.current=C.current),x.current+=N.key,S.start(y,()=>{x.current="",T.current=C.current,E(!1)});const ee=((G?b??f??-1:T.current)??0)+1,F=P(K,x.current,ee);F!==-1?(p?.(F),C.current=F):N.key!==" "&&(x.current="",E(!1))}),j=Te(N=>{const z=N.relatedTarget,P=o.select("domReferenceElement"),K=o.select("floatingElement"),G=Ie(P,z),q=Ie(K,z);G||q||(S.clear(),x.current="",T.current=C.current,E(!1))}),k=v.useMemo(()=>({onKeyDown:L,onBlur:j}),[L,j]),R=v.useMemo(()=>({onKeyDown:L,onBlur:j}),[L,j]);return v.useMemo(()=>g?{reference:k,floating:R}:{},[g,k,R])}const J0=.1,zA=J0*J0,Ut=.5;function zc(e,n,o,s,l,c){return s>=n!=c>=n&&e<=(l-o)*(n-s)/(c-s)+o}function Nc(e,n,o,s,l,c,u,f,p,h){let g=!1;return zc(e,n,o,s,l,c)&&(g=!g),zc(e,n,l,c,u,f)&&(g=!g),zc(e,n,u,f,p,h)&&(g=!g),zc(e,n,p,h,o,s)&&(g=!g),g}function NA(e,n,o){return e>=o.x&&e<=o.x+o.width&&n>=o.y&&n<=o.y+o.height}function kc(e,n,o,s,l,c){const u=Math.min(o,l),f=Math.max(o,l),p=Math.min(s,c),h=Math.max(s,c);return e>=u&&e<=f&&n>=p&&n<=h}function kA(e={}){const{blockPointerEvents:n=!1}=e,o=new cr,s=({x:l,y:c,placement:u,elements:f,onClose:p,nodeId:h,tree:g})=>{const y=u?.split("-")[0];let b=!1,S=null,x=null,T=typeof performance<"u"?performance.now():0;function C(L,j){const k=performance.now(),R=k-T;if(S===null||x===null||R===0)return S=L,x=j,T=k,!1;const N=L-S,z=j-x,P=N*N+z*z,K=R*R*zA;return S=L,x=j,T=k,P<K}function E(){o.clear(),p()}return function(j){o.clear();const k=f.domReference,R=f.floating;if(!k||!R||y==null||l==null||c==null)return;const{clientX:N,clientY:z}=j,P=Xt(j),K=j.type==="mouseleave",G=Ie(R,P),q=Ie(k,P);if(G&&(b=!0,!K))return;if(q&&(b=!1,!K)){b=!0;return}if(K&&bt(j.relatedTarget)&&Ie(R,j.relatedTarget))return;function te(){return!!(g&&Jr(g.nodesRef.current,h).length>0)}function ee(){te()||E()}if(te())return;const F=k.getBoundingClientRect(),I=R.getBoundingClientRect(),_=l>I.right-I.width/2,O=c>I.bottom-I.height/2,U=I.width>F.width,B=I.height>F.height,Q=(U?F:I).left,A=(U?F:I).right,V=(B?F:I).top,Y=(B?F:I).bottom;if(y==="top"&&c>=F.bottom-1||y==="bottom"&&c<=F.top+1||y==="left"&&l>=F.right-1||y==="right"&&l<=F.left+1){ee();return}let W=!1;switch(y){case"top":W=kc(N,z,Q,F.top+1,A,I.bottom-1);break;case"bottom":W=kc(N,z,Q,I.top+1,A,F.bottom-1);break;case"left":W=kc(N,z,I.right-1,Y,F.left+1,V);break;case"right":W=kc(N,z,F.right-1,Y,I.left+1,V);break}if(W)return;if(b&&!NA(N,z,F)){ee();return}if(!K&&C(N,z)){ee();return}let ne=!1;switch(y){case"top":{const ie=U?Ut/2:Ut*4,ce=U||_?l+ie:l-ie,de=U?l-ie:_?l+ie:l-ie,ye=c+Ut+1,Ee=_||U?I.bottom-Ut:I.top,Me=_?U?I.bottom-Ut:I.top:I.bottom-Ut;ne=Nc(N,z,ce,ye,de,ye,I.left,Ee,I.right,Me);break}case"bottom":{const ie=U?Ut/2:Ut*4,ce=U||_?l+ie:l-ie,de=U?l-ie:_?l+ie:l-ie,ye=c-Ut,Ee=_||U?I.top+Ut:I.bottom,Me=_?U?I.top+Ut:I.bottom:I.top+Ut;ne=Nc(N,z,ce,ye,de,ye,I.left,Ee,I.right,Me);break}case"left":{const ie=B?Ut/2:Ut*4,ce=B||O?c+ie:c-ie,de=B?c-ie:O?c+ie:c-ie,ye=l+Ut+1,Ee=O||B?I.right-Ut:I.left,Me=O?B?I.right-Ut:I.left:I.right-Ut;ne=Nc(N,z,Ee,I.top,Me,I.bottom,ye,ce,ye,de);break}case"right":{const ie=B?Ut/2:Ut*4,ce=B||O?c+ie:c-ie,de=B?c-ie:O?c+ie:c-ie,ye=l-Ut,Ee=O||B?I.left+Ut:I.right,Me=O?B?I.left+Ut:I.right:I.left+Ut;ne=Nc(N,z,ye,ce,ye,de,Ee,I.top,Me,I.bottom);break}}ne?b||o.start(40,ee):ee()}};return s.__options={...e,blockPointerEvents:n},s}const jA=v.forwardRef(function(n,o){const{children:s,container:l,className:c,render:u,style:f,...p}=n,{portalNode:h,portalSubtree:g}=b0({container:l,ref:o,componentProps:n,elementProps:p});return!g&&!h?null:D.jsxs(v.Fragment,{children:[g,h&&Cr.createPortal(s,h)]})}),LA=v.createContext(void 0);function ev(){return v.useContext(LA)?.direction??"ltr"}const PA=e=>({name:"arrow",options:e,async fn(n){const{x:o,y:s,placement:l,rects:c,platform:u,elements:f,middlewareData:p}=n,{element:h,padding:g=0,offsetParent:y="real"}=vo(e,n)||{};if(h==null)return{};const b=Ny(g),S={x:o,y:s},x=Sd(l),T=bd(x),C=await u.getDimensions(h),E=x==="y",L=E?"top":"left",j=E?"bottom":"right",k=E?"clientHeight":"clientWidth",R=c.reference[T]+c.reference[x]-S[x]-c.floating[T],N=S[x]-c.reference[x],z=y==="real"?await u.getOffsetParent?.(h):f.floating;let P=f.floating[k]||c.floating[T];(!P||!await u.isElement?.(z))&&(P=f.floating[k]||c.floating[T]);const K=R/2-N/2,G=P/2-C[T]/2-1,q=Math.min(b[L],G),te=Math.min(b[j],G),ee=q,F=P-C[T]-te,I=P/2-C[T]/2+K,_=yd(ee,I,F),O=!p.arrow&&Ko(l)!=null&&I!==_&&c.reference[T]/2-(I<ee?q:te)-C[T]/2<0,U=O?I<ee?I-ee:I-F:0;return{[x]:S[x]+U,data:{[x]:_,centerOffset:I-_-U,...O&&{alignmentOffset:U}},reset:O}}}),IA=(e,n)=>({...PA(e),options:[e,n]}),UA={name:"hide",async fn(e){const{width:n,height:o,x:s,y:l}=e.rects.reference,c=n===0&&o===0&&s===0&&l===0;return{data:{referenceHidden:(await vA().fn(e)).data?.referenceHidden||c}}}},jc={sideX:"left",sideY:"top"},VA={name:"adaptiveOrigin",async fn(e){const{x:n,y:o,rects:{floating:s},elements:{floating:l},platform:c,strategy:u,placement:f}=e,p=Lt(l),h=p.getComputedStyle(l);if(!(h.transitionDuration!=="0s"&&h.transitionDuration!==""))return{x:n,y:o,data:jc};const y=await c.getOffsetParent?.(l);let b={width:0,height:0};if(u==="fixed"&&p?.visualViewport)b={width:p.visualViewport.width,height:p.visualViewport.height};else if(y===p){const L=Je(l);b={width:L.documentElement.clientWidth,height:L.documentElement.clientHeight}}else await c.isElement?.(y)&&(b=await c.getDimensions(y));const S=Wn(f);let x=n,T=o;S==="left"&&(x=b.width-(n+s.width)),S==="top"&&(T=b.height-(o+s.height));const C=S==="left"?"right":jc.sideX,E=S==="top"?"bottom":jc.sideY;return{x,y:T,data:{sideX:C,sideY:E}}}};function tv(e,n,o){const s=e==="inline-start"||e==="inline-end";return{top:"top",right:s?o?"inline-start":"inline-end":"right",bottom:"bottom",left:s?o?"inline-end":"inline-start":"left"}[n]}function nv(e,n,o){const{rects:s,placement:l}=e;return{side:tv(n,Wn(l),o),align:Ko(l)||"center",anchor:{width:s.reference.width,height:s.reference.height},positioner:{width:s.floating.width,height:s.floating.height}}}function rv(e){const{anchor:n,positionMethod:o="absolute",side:s="bottom",sideOffset:l=0,align:c="center",alignOffset:u=0,collisionBoundary:f,collisionPadding:p=5,sticky:h=!1,arrowPadding:g=5,disableAnchorTracking:y=!1,keepMounted:b=!1,floatingRootContext:S,mounted:x,collisionAvoidance:T,shiftCrossAxis:C=!1,nodeId:E,adaptiveOrigin:L,lazyFlip:j=!1,externalTree:k}=e,[R,N]=v.useState(null);!x&&R!==null&&N(null);const z=T.side||"flip",P=T.align||"flip",K=T.fallbackAxisSide||"end",G=typeof n=="function"?n:void 0,q=Te(G),te=G?q:n,ee=dn(n),F=dn(x),_=ev()==="rtl",O=R||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":_?"left":"right","inline-start":_?"right":"left"}[s],U=c==="center"?O:`${O}-${c}`;let B=p;const Q=1,A=s==="bottom"?Q:0,V=s==="top"?Q:0,Y=s==="right"?Q:0,W=s==="left"?Q:0;typeof B=="number"?B={top:B+A,right:B+W,bottom:B+V,left:B+Y}:B&&(B={top:(B.top||0)+A,right:(B.right||0)+W,bottom:(B.bottom||0)+V,left:(B.left||0)+Y});const ne={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:B},ie=v.useRef(null),ce=dn(l),de=dn(u),Me=[hA(rt=>{const Ze=nv(rt,s,_),st=typeof ce.current=="function"?ce.current(Ze):ce.current,ut=typeof de.current=="function"?de.current(Ze):de.current;return{mainAxis:st,crossAxis:ut,alignmentAxis:ut}},[typeof l!="function"?l:0,typeof u!="function"?u:0,_,s])],fe=P==="none"&&z!=="shift",ze=!fe&&(h||C||z==="shift"),De=z==="none"?null:gA({...ne,padding:{top:B.top+Q,right:B.right+Q,bottom:B.bottom+Q,left:B.left+Q},mainAxis:!C&&z==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:K}),_e=fe?null:pA(rt=>{const Ze=Je(rt.elements.floating).documentElement;return{...ne,rootBoundary:C?{x:0,y:0,width:Ze.clientWidth,height:Ze.clientHeight}:void 0,mainAxis:P!=="none",crossAxis:ze,limiter:h||C?void 0:mA(st=>{if(!ie.current)return{};const{width:ut,height:zt}=ie.current.getBoundingClientRect(),mt=Rr(Wn(st.placement)),wn=mt==="y"?ut:zt,cn=mt==="y"?B.left+B.right:B.top+B.bottom;return{offset:wn/2+cn/2}})}},[ne,h,C,B,P]);z==="shift"||P==="shift"||c==="center"?Me.push(_e,De):Me.push(De,_e),Me.push(yA({...ne,apply({elements:{floating:rt},availableWidth:Ze,availableHeight:st,rects:ut}){if(!F.current)return;const zt=rt.style;zt.setProperty("--available-width",`${Ze}px`),zt.setProperty("--available-height",`${st}px`);const mt=Lt(rt).devicePixelRatio||1,{x:wn,y:cn,width:Rt,height:he}=ut.reference,xe=(Math.round((wn+Rt)*mt)-Math.round(wn*mt))/mt,je=(Math.round((cn+he)*mt)-Math.round(cn*mt))/mt;zt.setProperty("--anchor-width",`${xe}px`),zt.setProperty("--anchor-height",`${je}px`)}}),IA(()=>({element:ie.current||Je(ie.current).createElement("div"),padding:g,offsetParent:"floating"}),[g]),{name:"transformOrigin",fn(rt){const{elements:Ze,middlewareData:st,placement:ut,rects:zt,y:mt}=rt,wn=Wn(ut),cn=Rr(wn),Rt=ie.current,he=st.arrow?.x||0,xe=st.arrow?.y||0,je=Rt?.clientWidth||0,at=Rt?.clientHeight||0,ft=he+je/2,ot=xe+at/2,_t=Math.abs(st.shift?.y||0),Ge=zt.reference.height/2,Fe=typeof l=="function"?l(nv(rt,s,_)):l,tt=_t>Fe,nt={top:`${ft}px calc(100% + ${Fe}px)`,bottom:`${ft}px ${-Fe}px`,left:`calc(100% + ${Fe}px) ${ot}px`,right:`${-Fe}px ${ot}px`}[wn],ht=`${ft}px ${zt.reference.y+Ge-mt}px`;return Ze.floating.style.setProperty("--transform-origin",ze&&cn==="y"&&tt?ht:nt),{}}},UA,L),ke(()=>{!x&&S&&S.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,S]);const Oe=v.useMemo(()=>({elementResize:!y&&typeof ResizeObserver<"u",layoutShift:!y&&typeof IntersectionObserver<"u"}),[y]),{refs:Ce,elements:Le,x:Re,y:Ue,middlewareData:H,update:oe,placement:J,context:X,isPositioned:ve,floatingStyles:we}=xA({rootContext:S,open:b?x:void 0,placement:U,middleware:Me,strategy:o,whileElementsMounted:b?void 0:(...rt)=>U0(...rt,Oe),nodeId:E,externalTree:k}),{sideX:be,sideY:Ne}=H.adaptiveOrigin||jc,qe=ve?o:"fixed",He=v.useMemo(()=>{const rt=L?{position:qe,[be]:Re,[Ne]:Ue}:{position:qe,...we};return ve||(rt.opacity=0),rt},[L,qe,be,Re,Ne,Ue,we,ve]),Be=v.useRef(null);ke(()=>{if(!x)return;const rt=ee.current,Ze=typeof rt=="function"?rt():rt,ut=(ov(Ze)?Ze.current:Ze)||null||null;ut!==Be.current&&(Ce.setPositionReference(ut),Be.current=ut)},[x,Ce,te,ee]),v.useEffect(()=>{if(!x)return;const rt=ee.current;typeof rt!="function"&&ov(rt)&&rt.current!==Be.current&&(Ce.setPositionReference(rt.current),Be.current=rt.current)},[x,Ce,te,ee]),v.useEffect(()=>{if(b&&x&&Le.domReference&&Le.floating)return U0(Le.domReference,Le.floating,oe,Oe)},[b,x,Le,oe,Oe]);const $e=Wn(J),et=tv(s,$e,_),Xe=Ko(J)||"center",We=!!H.hide?.referenceHidden;ke(()=>{j&&x&&ve&&N($e)},[j,x,ve,$e]);const dt=v.useMemo(()=>({position:"absolute",top:H.arrow?.y,left:H.arrow?.x}),[H.arrow]),jt=H.arrow?.centerOffset!==0;return v.useMemo(()=>({positionerStyles:He,arrowStyles:dt,arrowRef:ie,arrowUncentered:jt,side:et,align:Xe,physicalSide:$e,anchorHidden:We,refs:Ce,context:X,isPositioned:ve,update:oe}),[He,dt,ie,jt,et,Xe,$e,We,Ce,X,ve,oe])}function ov(e){return e!=null&&"current"in e}let $n=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=zi.startingStyle]="startingStyle",e[e.endingStyle=zi.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Kd=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const HA={[Kd.popupOpen]:""},FA={[Kd.popupOpen]:"",[Kd.pressed]:""},BA={[$n.open]:""},ZA={[$n.closed]:""},GA={[$n.anchorHidden]:""},iv={open(e){return e?HA:null}},sv={open(e){return e?FA:null}},oo={open(e){return e?BA:ZA},anchorHidden(e){return e?GA:null}};function Wd(e){return e==="starting"?$O:rn}function av(e,n,{styles:o,transitionStatus:s,props:l,refs:c,hidden:u,inert:f=!1}){const p={...o};return f&&(p.pointerEvents="none"),At("div",e,{state:n,ref:c,props:[{role:"presentation",hidden:u,style:p},Wd(s),l],stateAttributesMapping:oo})}function lv(){const e=v.useContext(Wf);if(!e)throw new Error(Jt(73));const n=e.useState("toasts");return v.useMemo(()=>({toasts:n,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[n,e])}function Ii(...e){return Kf(Qg(e))}const cv={Viewport:"_Viewport_ai81v_1",Toast:"_Toast_ai81v_14"};let Ts=null,Fa=3e3;function YA({timeout:e}){const n=lv();return v.useEffect(()=>(Ts=n,Fa=e,()=>{Ts=null}),[n,e]),null}const Cn={success:(e,n)=>Ts?.add({description:e,timeout:n?.timeout||Fa}),error:(e,n)=>Ts?.add({description:e,timeout:n?.timeout||Fa}),info:(e,n)=>Ts?.add({description:e,timeout:n?.timeout||Fa}),warning:(e,n)=>Ts?.add({description:e,timeout:n?.timeout||Fa})};function $A({toastConfigs:e}){const n=e?.timeout??3e3;return D.jsxs(CO,{timeout:n,children:[D.jsx(YA,{timeout:n}),D.jsx(qA,{configs:e})]})}function qA({configs:e}){const{toasts:n}=lv();return D.jsx(jA,{children:D.jsx(FO,{className:Ii(cv.Viewport,e?.viewportClassName),children:n.map(o=>D.jsx(i_,{toast:o,className:Ii("pointer-events-none flex items-center justify-center px-6 py-3 min-w-[200px] max-w-[80vw]","text-white text-base rounded-md bg-black/80",cv.Toast,e?.className),style:e?.style,children:D.jsx(l_,{className:"text-xs",children:o.description})},o.id))})})}class XA{baseUrl;credentials;interceptors;timeout;onError;headers;constructor({baseUrl:n,timeout:o=1/0,responseInterceptor:s=p=>p.data,requestInterceptor:l=p=>p,onError:c=()=>{},headers:u,credentials:f="include"}){this.baseUrl=n,this.timeout=o,this.credentials=f,this.interceptors={request:l,response:s},this.headers=new Headers({"Content-Type":"application/json",...u}),this.onError=c}async request(n){const o=new AbortController;n.url=`${this.baseUrl}${n.url}`,n=this.interceptors.request(n);const s=new Headers(this.headers);Object.entries(n.headers||{}).forEach(([f,p])=>{s.set(f,p)});const l=this.headers.get("content-type");let c=null;if(n.data instanceof FormData)c=n.data,s.delete("Content-Type");else if(n.data!==void 0&&n.method!=="GET")if(l==="application/x-www-form-urlencoded"){const f=new URLSearchParams;for(const p in n.data)n.data[p]!==void 0&&f.append(p,n.data[p]);c=f.toString()}else c=JSON.stringify(n.data);else if(n.method==="GET"){const f=new URLSearchParams;for(const h in n.data)n.data[h]!==void 0&&f.append(h,n.data[h]);const p=f.toString();n.url+=p?`?${p}`:""}const u=fetch(n.url,{method:n.method,headers:s,body:c,signal:n.signal||o.signal,credentials:this.credentials});try{const f=n.timeout||this.timeout,{timeoutId:p,timeoutPromise:h}=this._setTimeout(f,o),g=await Promise.race([u,h].filter(Boolean));if(p&&clearTimeout(p),g.ok){const y=await g.json();return this.interceptors.response(y,g).catch(b=>(this.onError({data:b,response:g}),Promise.reject(y)))}else{const y=await g.json();return this.onError({data:y,response:g}),Promise.reject(y)}}catch(f){return f.name!=="AbortError"&&this.onError({}),Promise.reject(f)}}_setTimeout(n,o){let s=null,l=null;return n!==1/0&&(l=new Promise((c,u)=>{s=setTimeout(()=>{u(new Error("请求超时")),o.abort()},n)})),{timeoutPromise:l,timeoutId:s}}get(n,o,s){return this.request({...s,url:n,method:"GET",data:o})}post(n,o,s){return this.request({...s,url:n,method:"POST",data:o})}put(n,o,s){return this.request({...s,url:n,method:"PUT",data:o})}delete(n,o){return this.request({...o,url:n,method:"DELETE"})}patch(n,o,s){return this.request({...s,url:n,method:"PATCH",data:o})}}const Nn=new XA({baseUrl:"https://apis.sdk.mobileztgame.com",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},async responseInterceptor(e,n){if(["/passport-api/v2/ztgame/auth/login","/passport-api/v2/sms-captchas","/passport-api/v2/ztgame/auth/mobile-register","/passport-api/v2/ztgame/auth/auth","/passport-api/v2/ztgame/auth/re-auth","/passport-api/v2/ztgame/user-center/forget-password/forget-password-keys","/passport-api/v2/ztgame/user-center/forget-password/","/passport-api/v2/ztgame/user-center/forget-password/sms-captchas","/passport-api/v2/ztgame/user-center/forget-password/forget-password-update","/idcard"].some(s=>n.url.includes(s))){const s=n.headers.get("set-authentication")||n.headers.get("Set-Authentication")||"";return{...e,_auth:s}}if(e?.code!==0)throw new Error(e.error);return e},onError({response:e,data:n}){if(e&&e?.status!==401){const o=`${n?.message||n?.detail||"未知错误"}`;Cn.error(o)}}});function uv(e){Nn.headers.set("Authentication",e)}const Gt={ROLE_ID:"roleid",GIANT:"giant",MOBILE:"mobile"},Lc={default:{types:[Gt.GIANT,Gt.MOBILE],default:Gt.GIANT},5327:{types:[Gt.GIANT,Gt.MOBILE],default:Gt.MOBILE},5273:{types:[Gt.ROLE_ID],default:Gt.ROLE_ID},5199:{types:[Gt.ROLE_ID],default:Gt.ROLE_ID},5012:{types:[Gt.ROLE_ID],default:Gt.ROLE_ID},5242:{types:[Gt.GIANT,Gt.MOBILE],default:Gt.MOBILE}};function ln(...e){return Kf(Qg(e))}function QA(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(n,o)=>String.fromCharCode(Number.parseInt(o,16))))}function KA(e){return e==="5199"||e==="5012"}function WA(e){const{entity:n,gaplaySign:o}=e;return QA(`${JSON.stringify(n)}$$${o}`)}function Pc(e,n){return n||Lc[e]?.types||Lc.default?.types||[]}function JA(e,n){return n||Lc[e]?.default||Lc.default?.default}function fv({loginTypes:e,gameId:n}){return Pc(n,e).includes(Gt.GIANT)}function dv({loginTypes:e,gameId:n}){return Pc(n,e).includes(Gt.ROLE_ID)}function hv({loginTypes:e,gameId:n}){return Pc(n,e).includes(Gt.MOBILE)}function pv({gameId:e}){Nn.headers.set("X-GAME-ID",e),Nn.headers.set("X-Login-H5","1");const n=localStorage.getItem("UNIQUE_ID");n&&Nn.headers.set("X-Client-Info",JSON.stringify({sdk_version:"3.0.0",device_udid:n,appunid:n}))}async function e3({gameId:e}){pv({gameId:e});let n=localStorage.getItem("UNIQUE_ID");n||(n=(await(await kC.load()).get()).visitorId,localStorage.setItem("UNIQUE_ID",n)),Nn.headers.set("X-Client-Info",JSON.stringify({sdk_version:"3.0.0",device_udid:n,appunid:n}))}const t3=[{code:"86",name:"中国大陆"},{code:"886",name:"台湾地区"},{code:"852",name:"香港特别行政区"},{code:"853",name:"澳门特别行政区"},{code:"1",name:"美国"},{code:"81",name:"日本"},{code:"376",name:"安道尔"},{code:"971",name:"阿拉伯联合酋长国"},{code:"93",name:"阿富汗"},{code:"1268",name:"安提瓜和巴布达"},{code:"1264",name:"安圭拉"},{code:"355",name:"阿尔巴尼亚"},{code:"374",name:"亚美尼亚"},{code:"244",name:"安哥拉"},{code:"54",name:"阿根廷"},{code:"1684",name:"美属萨摩亚"},{code:"43",name:"奥地利"},{code:"61",name:"澳大利亚"},{code:"297",name:"阿鲁巴"},{code:"994",name:"阿塞拜疆"},{code:"387",name:"波斯尼亚和黑塞哥维那"},{code:"1246",name:"巴巴多斯"},{code:"880",name:"孟加拉国"},{code:"32",name:"比利时"},{code:"226",name:"布基纳法索"},{code:"359",name:"保加利亚"},{code:"973",name:"巴林"},{code:"257",name:"布隆迪"},{code:"229",name:"贝宁"},{code:"1441",name:"百慕大群岛"},{code:"673",name:"文莱"},{code:"591",name:"玻利维亚"},{code:"599",name:"荷兰加勒比"},{code:"55",name:"巴西"},{code:"1242",name:"巴哈马"},{code:"975",name:"不丹"},{code:"267",name:"博茨瓦纳"},{code:"375",name:"白俄罗斯"},{code:"501",name:"伯利兹"},{code:"1",name:"加拿大"},{code:"243",name:"刚果民主共和国"},{code:"236",name:"中非共和国"},{code:"242",name:"刚果共和国"},{code:"41",name:"瑞士"},{code:"225",name:"象牙海岸"},{code:"682",name:"库克群岛"},{code:"56",name:"智利"},{code:"237",name:"喀麦隆"},{code:"57",name:"哥伦比亚"},{code:"506",name:"哥斯达黎加"},{code:"53",name:"古巴"},{code:"238",name:"佛得角共和国"},{code:"599",name:"库拉索"},{code:"357",name:"塞浦路斯"},{code:"420",name:"捷克"},{code:"49",name:"德国"},{code:"253",name:"吉布提"},{code:"45",name:"丹麦"},{code:"1767",name:"多米尼加"},{code:"1809",name:"多米尼加共和国"},{code:"213",name:"阿尔及利亚"},{code:"593",name:"厄瓜多尔"},{code:"372",name:"爱沙尼亚"},{code:"20",name:"埃及"},{code:"291",name:"厄立特里亚"},{code:"34",name:"西班牙"},{code:"251",name:"埃塞俄比亚"},{code:"358",name:"芬兰"},{code:"679",name:"斐济"},{code:"691",name:"密克罗尼西亚"},{code:"298",name:"法罗群岛"},{code:"33",name:"法国"},{code:"241",name:"加蓬"},{code:"44",name:"英国"},{code:"1473",name:"格林纳达"},{code:"995",name:"格鲁吉亚"},{code:"594",name:"法属圭亚那"},{code:"233",name:"加纳"},{code:"350",name:"直布罗陀"},{code:"299",name:"格陵兰岛"},{code:"220",name:"冈比亚"},{code:"224",name:"几内亚"},{code:"590",name:"瓜德罗普岛"},{code:"240",name:"赤道几内亚"},{code:"30",name:"希腊"},{code:"502",name:"瓜地马拉"},{code:"1671",name:"关岛"},{code:"245",name:"几内亚比绍共和国"},{code:"592",name:"圭亚那"},{code:"504",name:"洪都拉斯"},{code:"385",name:"克罗地亚"},{code:"509",name:"海地"},{code:"36",name:"匈牙利"},{code:"62",name:"印度尼西亚"},{code:"353",name:"爱尔兰"},{code:"972",name:"以色列"},{code:"91",name:"印度"},{code:"964",name:"伊拉克"},{code:"98",name:"伊朗"},{code:"354",name:"冰岛"},{code:"39",name:"意大利"},{code:"1876",name:"牙买加"},{code:"962",name:"约旦"},{code:"254",name:"肯尼亚"},{code:"996",name:"吉尔吉斯斯坦"},{code:"855",name:"柬埔寨"},{code:"686",name:"基里巴斯"},{code:"269",name:"科摩罗"},{code:"1869",name:"圣基茨和尼维斯"},{code:"850",name:"朝鲜"},{code:"82",name:"韩国"},{code:"965",name:"科威特"},{code:"1345",name:"开曼群岛"},{code:"7",name:"哈萨克斯坦"},{code:"856",name:"老挝"},{code:"961",name:"黎巴嫩"},{code:"1758",name:"圣露西亚"},{code:"423",name:"列支敦士登"},{code:"94",name:"斯里兰卡"},{code:"231",name:"利比里亚"},{code:"266",name:"莱索托"},{code:"370",name:"立陶宛"},{code:"352",name:"卢森堡"},{code:"371",name:"拉脱维亚"},{code:"218",name:"利比亚"},{code:"212",name:"摩洛哥"},{code:"377",name:"摩纳哥"},{code:"373",name:"摩尔多瓦"},{code:"382",name:"黑山"},{code:"261",name:"马达加斯加"},{code:"692",name:"马绍尔群岛"},{code:"389",name:"北马其顿"},{code:"223",name:"马里"},{code:"95",name:"缅甸"},{code:"976",name:"蒙古"},{code:"222",name:"毛里塔尼亚"},{code:"1664",name:"蒙特塞拉特岛"},{code:"356",name:"马耳他"},{code:"230",name:"毛里求斯"},{code:"960",name:"马尔代夫"},{code:"265",name:"马拉维"},{code:"52",name:"墨西哥"},{code:"60",name:"马来西亚"},{code:"258",name:"莫桑比克"},{code:"264",name:"纳米比亚"},{code:"687",name:"新喀里多尼亚"},{code:"227",name:"尼日尔"},{code:"234",name:"尼日利亚"},{code:"505",name:"尼加拉瓜"},{code:"31",name:"荷兰"},{code:"47",name:"挪威"},{code:"977",name:"尼泊尔"},{code:"674",name:"拿鲁岛"},{code:"64",name:"新西兰"},{code:"968",name:"阿曼"},{code:"507",name:"巴拿马"},{code:"51",name:"秘鲁"},{code:"689",name:"法属波利尼西亚"},{code:"675",name:"巴布亚新几内亚"},{code:"63",name:"菲律宾"},{code:"92",name:"巴基斯坦"},{code:"48",name:"波兰"},{code:"508",name:"圣彼埃尔和密克隆岛"},{code:"1787",name:"波多黎各"},{code:"351",name:"葡萄牙"},{code:"680",name:"帕劳"},{code:"595",name:"巴拉圭"},{code:"974",name:"卡塔尔"},{code:"262",name:"留尼汪"},{code:"40",name:"罗马尼亚"},{code:"381",name:"塞尔维亚"},{code:"7",name:"俄罗斯"},{code:"250",name:"卢旺达"},{code:"966",name:"沙特阿拉伯"},{code:"677",name:"所罗门群岛"},{code:"248",name:"塞舌尔"},{code:"249",name:"苏丹"},{code:"46",name:"瑞典"},{code:"65",name:"新加坡"},{code:"386",name:"斯洛文尼亚"},{code:"421",name:"斯洛伐克"},{code:"232",name:"塞拉利昂"},{code:"378",name:"圣马力诺"},{code:"221",name:"塞内加尔"},{code:"252",name:"索马里"},{code:"597",name:"苏里南"},{code:"239",name:"圣多美和普林西比"},{code:"503",name:"萨尔瓦多"},{code:"963",name:"叙利亚"},{code:"268",name:"埃斯瓦蒂尼"},{code:"1649",name:"特克斯和凯科斯群岛"},{code:"235",name:"乍得"},{code:"228",name:"多哥"},{code:"66",name:"泰国"},{code:"992",name:"塔吉克斯坦"},{code:"670",name:"东帝汶"},{code:"993",name:"土库曼斯坦"},{code:"216",name:"突尼斯"},{code:"676",name:"汤加"},{code:"90",name:"土耳其"},{code:"1868",name:"特立尼达和多巴哥"},{code:"255",name:"坦桑尼亚"},{code:"380",name:"乌克兰"},{code:"256",name:"乌干达"},{code:"598",name:"乌拉圭"},{code:"998",name:"乌兹别克斯坦"},{code:"1784",name:"圣文森特和格林纳丁斯"},{code:"58",name:"委内瑞拉"},{code:"1284",name:"英属处女群岛"},{code:"84",name:"越南"},{code:"678",name:"瓦努阿图"},{code:"685",name:"萨摩亚"},{code:"967",name:"也门"},{code:"269",name:"马约特"},{code:"27",name:"南非"},{code:"260",name:"赞比亚"},{code:"263",name:"津巴布韦"}].map(e=>({label:e.name,value:e.code,id:`${e.code}-${e.name}`}));function n3(e){return t3}function r3(e){return"account"in e}function o3({gameId:e,serverUserInfo:n,extraState:o}){const s={game_id:e,xToken:WA(n),saveTime:n.entity.time,$version:"v2",extraState:o};if(r3(n))s.openid=n.entity.openid,s.gaplaySign=n.gaplaySign,s.account=n.account,s.username=n.account.view_name,s.loginByRoleMail=!1,s.channelId=n.channel||6;else if(n.gaplaySign){const{ZONEID:l,openid:c,CHARID:u,NAME:f,REALZONEID:p,ZONENAME:h}=n.entity;s.openid=c,s.zone={zoneid:p||l,zonename:h,area:l},s.char={...n.entity,CHARID:u,NAME:f,GAMEPOINT:n.entity.GAMEPOINT,VIPLEVEL:n.entity.VIPLEVEL},s.loginByRoleMail=!0,s.gaplaySign=n.gaplaySign}else{const{ZONEID:l,CHARID:c,NAME:u,REALZONEID:f,ZONENAME:p,OPENID:h,CHANNELID:g,GAMEPOINT:y,VIPLEVEL:b}=n.entity;s.openid=h,s.channelId=g,s.char={CHARID:c,NAME:u,GAMEPOINT:y,VIPLEVEL:b},s.loginByRoleMail=!1,s.username=u,s.zone={zoneid:f||l,zonename:p,area:l},s.xToken=void 0}return s}function mv(){try{const e=localStorage.getItem("userInfo")||"[]";return JSON.parse(e)}catch{return[]}}function Jd(e){return mv().find(o=>o.game_id===e)}function i3(e){const n=localStorage.getItem("userInfo")||"[]",o=JSON.parse(n),s=o.find(c=>c.game_id===e);s?.openid&&gv(s.openid,e);const l=o.filter(c=>c.game_id!==e);localStorage.setItem("userInfo",JSON.stringify(l))}function s3(e){const n=mv(),o=Jd(e.game_id),s=n.findIndex(l=>l.game_id===e.game_id);o?n[s]=e:n.push(e),localStorage.setItem("userInfo",JSON.stringify(n))}const Ba="LOGIN_SDK_ACCOUNTS";function Cs(e){try{const n=JSON.parse(localStorage.getItem(Ba)||"[]");return e?n.filter(o=>o.gameId===e):n}catch{return[]}}function Ic(e,n,o){if(!o)return;const s=JSON.parse(localStorage.getItem(Ba)||"[]");let l=1;const c=s.filter(p=>p.openid===e.accid&&p.gameId===o?(l=(p.loginCnt||1)+1,!1):!0),f=[{openid:e.accid,username:e.account?.view_name||"",uid:e.account?.uid||"",mobile:e.account?.mobile||"",accountType:e.account?.account_type||0,authorization:n,loginAt:Date.now(),loginCnt:l,gameId:o},...c].slice(0,20);localStorage.setItem(Ba,JSON.stringify(f))}function gv(e,n){if(!n)return;const s=JSON.parse(localStorage.getItem(Ba)||"[]").filter(l=>!(l.openid===e&&l.gameId===n));localStorage.setItem(Ba,JSON.stringify(s))}let yv={};function vv(e){yv=e}function Ui(e){const n=e||yv.gameId;if(!n)throw new Error("gameId is required. Call init({ gameId }) first or pass it as an argument.");return n}const bv=v.createContext(void 0),a3={enabled:!0,days:7},Sv={"--primary-color":"#787bf4","--icon-color":"#a9aad1","--input-border-color":"#cad0e0","--input-label-color":"var(--jssdk-primary-color)","--input-bg-color":"#fff","--backdrop-bg-color":"rgba(0, 0, 0, 0.7)"};function wo(){const e=v.use(bv);if(!e)throw new Error("useConfig 必须在 ConfigProvider 中使用");return e}function wv({children:e,value:n}){const o=Ui(n.gameId),s=Pc(o,n.loginTypes),l=JA(o,n.defaultLoginType),c=v.useRef(null);pv({gameId:o});const u=_i.useMemo(()=>!n.defaultLoginType&&Cs(o).length>0?"quick":l,[n.defaultLoginType,o,l]),[f,p]=v.useState(u),[h,g]=v.useState(!0),[y,b]=v.useState(!1),[S,x]=v.useState(!1),[T,C]=v.useState(""),E=()=>{b(!0)};v.useEffect(()=>{e3({gameId:o})},[o]);const L={...n,gameId:o,loginTypes:s,defaultLoginType:l,autoLoginConfig:{...a3,...n.autoLoginConfig}};v.useEffect(()=>{document.body.classList.add(`game-${o}`)},[o]);function j(k){Object.entries(k).forEach(([R,N])=>{const z=`--jssdk-${R.replace(/^--/,"")}`;document.documentElement.style.setProperty(z,N)})}return v.useEffect(()=>{const k=c.current;if(k){const R={...Sv,...n.styleVars};j(R)}return()=>{k&&j(Sv)}},[n.styleVars]),D.jsx("div",{ref:c,children:D.jsx(bv,{value:{...L,currentLoginType:f,setCurrentLoginType:p,isShowGiantLogo:h,setIsShowGiantLogo:g,showRealNameModal:y,setShowRealNameModal:b,triggerRealNameAuth:E,isAutoLoggingIn:S,setIsAutoLoggingIn:x,autoLoginAccountName:T,setAutoLoginAccountName:C,onClose:n.onClose},children:e})})}function Za({controlled:e,default:n,name:o,state:s="value"}){const{current:l}=v.useRef(e!==void 0),[c,u]=v.useState(n),f=l?e:c,p=v.useCallback(h=>{l||u(h)},[]);return[f,p]}const xv=v.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function l3(){return v.useContext(xv)}function c3(e){const{children:n,elementsRef:o,labelsRef:s,onMapChange:l}=e,c=Te(l),u=v.useRef(0),f=vn(f3).current,p=vn(u3).current,[h,g]=v.useState(0),y=v.useRef(h),b=Te((E,L)=>{p.set(E,L??null),y.current+=1,g(y.current)}),S=Te(E=>{p.delete(E),y.current+=1,g(y.current)}),x=v.useMemo(()=>{const E=new Map;return Array.from(p.keys()).filter(j=>j.isConnected).sort(d3).forEach((j,k)=>{const R=p.get(j)??{};E.set(j,{...R,index:k})}),E},[p,h]);ke(()=>{if(typeof MutationObserver!="function"||x.size===0)return;const E=new MutationObserver(L=>{const j=new Set,k=R=>j.has(R)?j.delete(R):j.add(R);L.forEach(R=>{R.removedNodes.forEach(k),R.addedNodes.forEach(k)}),j.size===0&&(y.current+=1,g(y.current))});return x.forEach((L,j)=>{j.parentElement&&E.observe(j.parentElement,{childList:!0})}),()=>{E.disconnect()}},[x]),ke(()=>{y.current===h&&(o.current.length!==x.size&&(o.current.length=x.size),s&&s.current.length!==x.size&&(s.current.length=x.size),u.current=x.size),c(x)},[c,x,o,s,h]),ke(()=>()=>{o.current=[]},[o]),ke(()=>()=>{s&&(s.current=[])},[s]);const T=Te(E=>(f.add(E),()=>{f.delete(E)}));ke(()=>{f.forEach(E=>E(x))},[f,x]);const C=v.useMemo(()=>({register:b,unregister:S,subscribeMapChange:T,elementsRef:o,labelsRef:s,nextIndexRef:u}),[b,S,T,o,s,u]);return D.jsx(xv.Provider,{value:C,children:n})}function u3(){return new Map}function f3(){return new Set}function d3(e,n){const o=e.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}function hr(e){return Jo(e,"base-ui")}let Ev=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function h3(e={}){const{label:n,metadata:o,textRef:s,indexGuessBehavior:l,index:c}=e,{register:u,unregister:f,subscribeMapChange:p,elementsRef:h,labelsRef:g,nextIndexRef:y}=l3(),b=v.useRef(-1),[S,x]=v.useState(c??(l===Ev.GuessFromOrder?()=>{if(b.current===-1){const E=y.current;y.current+=1,b.current=E}return b.current}:-1)),T=v.useRef(null),C=v.useCallback(E=>{if(T.current=E,S!==-1&&E!==null&&(h.current[S]=E,g)){const L=n!==void 0;g.current[S]=L?n:s?.current?.textContent??E.textContent}},[S,h,g,n,s]);return ke(()=>{if(c!=null)return;const E=T.current;if(E)return u(E,o),()=>{f(E)}},[c,u,f,o]),ke(()=>{if(c==null)return p(E=>{const L=T.current?E.get(T.current)?.index:null;L!=null&&x(L)})},[c,p,x]),v.useMemo(()=>({ref:C,index:S}),[S,C])}const Tv="ArrowUp",Cv="ArrowDown",Rv="ArrowLeft",Ov="ArrowRight",_v="Home",Av="End",p3=new Set([Rv,Ov]),m3=new Set([Tv,Cv]),g3=new Set([...p3,...m3]);[...g3];const Uc=new Set([Tv,Cv,Rv,Ov,_v,Av]);function eh(e){const n=v.useRef(!0);n.current&&(n.current=!1,e())}let Mv={},Dv={},zv="";function y3(e){if(typeof document>"u")return!1;const n=Je(e);return Lt(n).innerWidth-n.documentElement.clientWidth>0}function v3(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const o=Je(e),s=o.documentElement,l=o.body,c=qo(s)?s:l,u=c.style.overflowY,f=s.style.scrollbarGutter;s.style.scrollbarGutter="stable",c.style.overflowY="scroll";const p=c.offsetWidth;c.style.overflowY="hidden";const h=c.offsetWidth;return c.style.overflowY=u,s.style.scrollbarGutter=f,p===h}function b3(e){const n=Je(e),o=n.documentElement,s=n.body,l=qo(o)?o:s,c={overflowY:l.style.overflowY,overflowX:l.style.overflowX};return Object.assign(l.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(l.style,c)}}function S3(e){const n=Je(e),o=n.documentElement,s=n.body,l=Lt(o);let c=0,u=0,f=!1;const p=Wr.create();if(fd&&(l.visualViewport?.scale??1)!==1)return()=>{};function h(){const S=l.getComputedStyle(o),x=l.getComputedStyle(s),E=(S.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=o.scrollTop,u=o.scrollLeft,Mv={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},zv=o.style.scrollBehavior,Dv={position:s.style.position,height:s.style.height,width:s.style.width,boxSizing:s.style.boxSizing,overflowY:s.style.overflowY,overflowX:s.style.overflowX,scrollBehavior:s.style.scrollBehavior};const L=o.scrollHeight>o.clientHeight,j=o.scrollWidth>o.clientWidth,k=S.overflowY==="scroll"||x.overflowY==="scroll",R=S.overflowX==="scroll"||x.overflowX==="scroll",N=Math.max(0,l.innerWidth-s.clientWidth),z=Math.max(0,l.innerHeight-s.clientHeight),P=parseFloat(x.marginTop)+parseFloat(x.marginBottom),K=parseFloat(x.marginLeft)+parseFloat(x.marginRight),G=qo(o)?o:s;if(f=v3(e),f){o.style.scrollbarGutter=E,G.style.overflowY="hidden",G.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:E,overflowY:"hidden",overflowX:"hidden"}),(L||k)&&(o.style.overflowY="scroll"),(j||R)&&(o.style.overflowX="scroll"),Object.assign(s.style,{position:"relative",height:P||z?`calc(100dvh - ${P+z}px)`:"100dvh",width:K||N?`calc(100vw - ${K+N}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),s.scrollTop=c,s.scrollLeft=u,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function g(){Object.assign(o.style,Mv),Object.assign(s.style,Dv),f||(o.scrollTop=c,o.scrollLeft=u,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=zv)}function y(){g(),p.request(h)}h();const b=pt(l,"resize",y);return()=>{p.cancel(),g(),typeof l.removeEventListener=="function"&&b()}}class w3{lockCount=0;restore=null;timeoutLock=cr.create();timeoutUnlock=cr.create();acquire(n){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(n)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(n){if(this.lockCount===0||this.restore!==null)return;const s=Je(n).documentElement,l=Lt(s).getComputedStyle(s).overflowY;if(l==="hidden"||l==="clip"){this.restore=Tn;return}const c=wy||!y3(n);this.restore=c?b3(n):S3(n)}}const x3=new w3;function Nv(e=!0,n=null){ke(()=>{if(e)return x3.acquire(n)},[e,n])}function E3(e){const n=v.useRef(""),o=v.useCallback(l=>{l.defaultPrevented||(n.current=l.pointerType,e(l,l.pointerType))},[e]);return{onClick:v.useCallback(l=>{if(l.detail===0){e(l,"keyboard");return}"pointerType"in l?e(l,l.pointerType):e(l,n.current),n.current=""},[e]),onPointerDown:o}}function Vc(e,n){const o=v.useRef(e),s=Te(n);ke(()=>{o.current!==e&&s(o.current)},[e,s]),ke(()=>{o.current=e},[e])}function th(e){const[n,o]=v.useState(null),s=Te((u,f)=>{e||o(f||(wy?"touch":""))});Vc(e,u=>{u&&!e&&o(null)});const{onClick:l,onPointerDown:c}=E3(s);return v.useMemo(()=>({openMethod:n,triggerProps:{onClick:l,onPointerDown:c}}),[n,l,c])}function T3(e){const{store:n,parentContext:o,actionsRef:s,isDrawer:l}=e,c=n.useState("open"),u=n.useState("disablePointerDismissal"),f=n.useState("modal"),p=n.useState("popupElement"),{openMethod:h,triggerProps:g}=th(c);B0(n);const{forceUnmount:y}=Z0(c,n),b=v.useCallback(()=>{n.setOpen(!1,ct(f0))},[n]);v.useImperativeHandle(s,()=>({unmount:y,close:b}),[y,b]);const S=q0({popupStore:n,onOpenChange:n.setOpen,treatPopupAsFloatingElement:!0}),[x,T]=v.useState(0),[C,E]=v.useState(0),L=x===0,j=W0(S),k=Zd(S,{outsidePressEvent(){return n.context.internalBackdropRef.current||n.context.backdropRef.current?"intentional":{mouse:f==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(q){if(!n.context.outsidePressEnabledRef.current||"button"in q&&q.button!==0||"touches"in q&&q.touches.length!==1)return!1;const te=Xt(q);if(L&&!u){const ee=te;return f&&(n.context.internalBackdropRef.current||n.context.backdropRef.current)?n.context.internalBackdropRef.current===ee||n.context.backdropRef.current===ee||Ie(ee,p)&&!ee?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:L});Nv(c&&f===!0,p);const{getReferenceProps:R,getFloatingProps:N,getTriggerProps:z}=Ha([j,k]);n.useContextCallback("onNestedDialogOpen",(q,te)=>{T(q),E(te)}),n.useContextCallback("onNestedDialogClose",()=>{T(0),E(0)}),v.useEffect(()=>(o?.onNestedDialogOpen&&c&&o.onNestedDialogOpen(x+1,C+(l?1:0)),o?.onNestedDialogClose&&!c&&o.onNestedDialogClose(),()=>{o?.onNestedDialogClose&&c&&o.onNestedDialogClose()}),[l,c,x,C,o]);const P=v.useMemo(()=>R(g),[R,g]),K=v.useMemo(()=>z(g),[z,g]),G=v.useMemo(()=>N(),[N]);n.useSyncedValues({openMethod:h,activeTriggerProps:P,inactiveTriggerProps:K,popupProps:G,floatingRootContext:S,nestedOpenDialogCount:x,nestedOpenDrawerCount:C})}const kv=v.createContext(void 0);function qn(e){const n=v.useContext(kv);if(e===!1&&n===void 0)throw new Error(Jt(27));return n}const C3={...Y0,modal:Ae(e=>e.modal),nested:Ae(e=>e.nested),nestedOpenDialogCount:Ae(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Ae(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Ae(e=>e.disablePointerDismissal),openMethod:Ae(e=>e.openMethod),descriptionElementId:Ae(e=>e.descriptionElementId),titleElementId:Ae(e=>e.titleElementId),viewportElement:Ae(e=>e.viewportElement),role:Ae(e=>e.role)};class nh extends Jl{constructor(n){super(R3(n),{popupRef:v.createRef(),backdropRef:v.createRef(),internalBackdropRef:v.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Cc,onOpenChange:void 0,onOpenChangeComplete:void 0},C3)}setOpen=(n,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!n&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const s={open:n},l=o.trigger?.id??null;(l||n)&&(s.activeTriggerId=l,s.activeTriggerElement=o.trigger??null),this.update(s)};static useStore(n,o){const s=vn(()=>new nh(o)).current;return n??s}}function R3(e={}){return{...G0(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}const rh=v.createContext(!1);function oh(e){const{children:n,open:o,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:c,disablePointerDismissal:u=!1,modal:f=!0,actionsRef:p,handle:h,triggerId:g,defaultTriggerId:y=null}=e,b=qn(!0),S=v.useContext(rh),x=!!b,T=nh.useStore(h?.store,{open:s,openProp:o,activeTriggerId:y,triggerIdProp:g,modal:f,disablePointerDismissal:u,nested:x});eh(()=>{o===void 0&&T.state.open===!1&&s===!0&&T.update({open:!0,activeTriggerId:y})}),T.useControlledProp("openProp",o),T.useControlledProp("triggerIdProp",g),T.useSyncedValues({disablePointerDismissal:u,nested:x,modal:f}),T.useContextCallback("onOpenChange",l),T.useContextCallback("onOpenChangeComplete",c);const C=T.useState("payload");T3({store:T,actionsRef:p,parentContext:b?.store.context,isDrawer:S});const E=v.useMemo(()=>({store:T}),[T]);return D.jsx(rh.Provider,{value:!1,children:D.jsx(kv.Provider,{value:E,children:typeof n=="function"?n({payload:C}):n})})}const O3={...oo,...Or},jv=v.forwardRef(function(n,o){const{render:s,className:l,style:c,forceRender:u=!1,...f}=n,{store:p}=qn(),h=p.useState("open"),g=p.useState("nested"),y=p.useState("mounted"),b=p.useState("transitionStatus");return At("div",n,{state:{open:h,transitionStatus:b},ref:[p.context.backdropRef,o],stateAttributesMapping:O3,props:[{role:"presentation",hidden:!y,style:{userSelect:"none",WebkitUserSelect:"none"}},f],enabled:u||!g})}),Lv=v.forwardRef(function(n,o){const{render:s,className:l,disabled:c=!1,nativeButton:u=!0,style:f,...p}=n,{store:h}=qn(),g=h.useState("open");function y(T){g&&h.setOpen(!1,ct(p_,T.nativeEvent))}const{getButtonProps:b,buttonRef:S}=ws({disabled:c,native:u});return At("button",n,{state:{disabled:c},ref:[o,S],props:[{onClick:y},p,b]})}),Pv=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,...f}=n,{store:p}=qn(),h=hr(u);return p.useSyncedValueWithCleanup("descriptionElementId",h),At("p",n,{ref:o,props:[{id:h},f]})});let _3=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),A3=(function(e){return e[e.open=$n.open]="open",e[e.closed=$n.closed]="closed",e[e.startingStyle=$n.startingStyle]="startingStyle",e[e.endingStyle=$n.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const Iv=v.createContext(void 0);function ih(){const e=v.useContext(Iv);if(e===void 0)throw new Error(Jt(26));return e}const M3={...oo,...Or,nestedDialogOpen(e){return e?{[A3.nestedDialogOpen]:""}:null}},Uv=v.forwardRef(function(n,o){const{className:s,finalFocus:l,initialFocus:c,render:u,style:f,...p}=n,{store:h}=qn(),g=h.useState("descriptionElementId"),y=h.useState("disablePointerDismissal"),b=h.useState("floatingRootContext"),S=h.useState("popupProps"),x=h.useState("modal"),T=h.useState("mounted"),C=h.useState("nested"),E=h.useState("nestedOpenDialogCount"),L=h.useState("open"),j=h.useState("openMethod"),k=h.useState("titleElementId"),R=h.useState("transitionStatus"),N=h.useState("role");ih(),ro({open:L,ref:h.context.popupRef,onComplete(){L&&h.context.onOpenChangeComplete?.(!0)}});function z(te){return te==="touch"?h.context.popupRef.current:!0}const P=c===void 0?z:c,K=E>0,q=At("div",n,{state:{open:L,nested:C,transitionStatus:R,nestedDialogOpen:K},props:[S,{"aria-labelledby":k??void 0,"aria-describedby":g??void 0,role:N,tabIndex:-1,hidden:!T,onKeyDown(te){Uc.has(te.key)&&te.stopPropagation()},style:{[_3.nestedDialogs]:E}},p],ref:[o,h.context.popupRef,h.useStateSetter("popupElement")],stateAttributesMapping:M3});return D.jsx(wc,{context:b,openInteractionType:j,disabled:!T,closeOnFocusOut:!y,initialFocus:P,returnFocus:l,modal:x!==!1,restoreFocus:"popup",children:q})}),sh=v.forwardRef(function(n,o){const{cutout:s,...l}=n;let c;if(s){const u=s.getBoundingClientRect();c=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${u.left}px ${u.top}px,${u.left}px ${u.bottom}px,${u.right}px ${u.bottom}px,${u.right}px ${u.top}px,${u.left}px ${u.top}px)`}return D.jsx("div",{ref:o,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),ah=v.forwardRef(function(n,o){const{keepMounted:s=!1,...l}=n,{store:c}=qn(),u=c.useState("mounted"),f=c.useState("modal"),p=c.useState("open");return u||s?D.jsx(Iv.Provider,{value:s,children:D.jsxs(Vd,{ref:o,...l,children:[u&&f===!0&&D.jsx(sh,{ref:c.context.internalBackdropRef,inert:gc(!p)}),n.children]})}):null}),lh=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,...f}=n,{store:p}=qn(),h=hr(u);return p.useSyncedValueWithCleanup("titleElementId",h),At("h2",n,{ref:o,props:[{id:h},f]})}),ch=v.forwardRef(function(n,o){const{render:s,className:l,disabled:c=!1,nativeButton:u=!0,id:f,payload:p,handle:h,style:g,...y}=n,b=qn(!0),S=h?.store??b?.store;if(!S)throw new Error(Jt(79));const x=hr(f),T=S.useState("floatingRootContext"),C=S.useState("isOpenedByTrigger",x),E=v.useRef(null),{registerTrigger:L,isMountedByThisTrigger:j}=F0(x,E,S,{payload:p}),{getButtonProps:k,buttonRef:R}=ws({disabled:c,native:u}),N=Bd(T,{enabled:T!=null}),z=Ha([N]),P={disabled:c,open:C},K=S.useState("triggerProps",j);return At("button",n,{state:P,ref:[R,o,L,E],props:[z.getReferenceProps(),K,{[Md]:"",id:x},y,k],stateAttributesMapping:iv})});let Vv=(function(e){return e[e.open=$n.open]="open",e[e.closed=$n.closed]="closed",e[e.startingStyle=$n.startingStyle]="startingStyle",e[e.endingStyle=$n.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const D3={...oo,...Or,nested(e){return e?{[Vv.nested]:""}:null},nestedDialogOpen(e){return e?{[Vv.nestedDialogOpen]:""}:null}},z3=v.forwardRef(function(n,o){const{className:s,render:l,children:c,style:u,...f}=n,p=ih(),{store:h}=qn(),g=h.useState("open"),y=h.useState("nested"),b=h.useState("transitionStatus"),S=h.useState("nestedOpenDialogCount"),x=h.useState("mounted"),T=S>0;return At("div",n,{enabled:p||x,state:{open:g,nested:y,transitionStatus:b,nestedDialogOpen:T},ref:[o,h.useStateSetter("viewportElement")],stateAttributesMapping:D3,props:[{role:"presentation",hidden:!x,style:{pointerEvents:g?void 0:"none"},children:c},f]})}),N3=(e,n)=>Object.is(e,n);function Rs(e,n,o){return e==null||n==null?Object.is(e,n):o(e,n)}function k3(e,n,o){return!e||e.length===0?!1:e.some(s=>s===void 0?!1:Rs(n,s,o))}function Ga(e,n,o){return!e||e.length===0?-1:e.findIndex(s=>s===void 0?!1:Rs(s,n,o))}function j3(e,n,o){return e.filter(s=>!Rs(n,s,o))}function uh(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function L3(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function P3(e){if(!Array.isArray(e))return e!=null&&"null"in e;const n=e;if(L3(n)){for(const o of n)for(const s of o.items)if(s&&s.value==null&&s.label!=null)return!0;return!1}for(const o of n)if(o&&o.value==null&&o.label!=null)return!0;return!1}function I3(e,n){if(n&&e!=null)return n(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return uh(e)}function Os(e,n){return n&&e!=null?n(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?uh(e.value):uh(e)}let Hv=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const Hc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ya={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},U3={disabled:!1,...Ya},Vi={valid(e){return e===null?null:e?{[Hv.valid]:""}:{[Hv.invalid]:""}}},Fv=v.createContext({invalid:void 0,name:void 0,validityData:{state:Hc,errors:[],error:"",value:"",initialValue:null},setValidityData:Tn,disabled:void 0,touched:Ya.touched,setTouched:Tn,dirty:Ya.dirty,setDirty:Tn,filled:Ya.filled,setFilled:Tn,focused:Ya.focused,setFocused:Tn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:U3,markedDirtyRef:{current:!1},registerFieldControl:Tn,validation:{getValidationProps:(e=rn)=>e,getInputValidationProps:(e=rn)=>e,inputRef:{current:null},commit:async()=>{}}});function Hi(e=!0){const n=v.useContext(Fv);if(n.setValidityData===Tn&&!e)throw new Error(Jt(28));return n}function fh(e,n){const{enabled:o=!0,getValue:s,id:l,value:c}=n,{registerFieldControl:u}=Hi(),f=v.useRef(null);f.current||(f.current=Symbol()),ke(()=>{const p=f.current;if(!(!p||!o))return u(p,{controlRef:e,getValue:s,id:l,value:c}),()=>{u(p,void 0)}},[e,o,s,l,u,c])}const Bv=v.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Tn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function _s(){return v.useContext(Bv)}const Zv=v.createContext({controlId:void 0,registerControlId:Tn,labelId:void 0,setLabelId:Tn,messageIds:[],setMessageIds:Tn,getDescriptionProps:e=>e});function xo(){return v.useContext(Zv)}function dh(e={}){const{id:n,implicit:o=!1,controlRef:s}=e,{controlId:l,registerControlId:c}=xo(),u=hr(n),f=o?l:void 0,p=vn(()=>Symbol("labelable-control")),h=v.useRef(!1),g=v.useRef(n!=null),y=Te(()=>{!h.current||c===Tn||(h.current=!1,c(p.current,void 0))});return ke(()=>{if(c===Tn)return;let b;if(o){const S=s?.current;bt(S)&&S.closest("label")!=null?b=n??null:b=f??u}else if(n!=null)g.current=!0,b=n;else if(g.current)b=u;else{y();return}if(b===void 0){y();return}h.current=!0,c(p.current,b)},[n,s,f,c,o,u,p,y]),v.useEffect(()=>y,[y]),l??u}function V3(e){const n=e.getBoundingClientRect(),o=Lt(e),s=o.getComputedStyle(e,"::before"),l=o.getComputedStyle(e,"::after");if(!(s.content!=="none"||l.content!=="none"))return n;const u=parseFloat(s.width)||0,f=parseFloat(s.height)||0,p=parseFloat(l.width)||0,h=parseFloat(l.height)||0,g=Math.max(n.width,u,p),y=Math.max(n.height,f,h),b=g-n.width,S=y-n.height;return{left:n.left-b/2,right:n.right+b/2,top:n.top-S/2,bottom:n.bottom+S/2}}function H3(e,n){return e??n}const F3=20;function Gv(e,n,o,s){const[l,c]=v.useState(!1);ke(()=>{if(!e||!n||o==null){c(!1);return}const u=Je(o).documentElement.clientWidth,f=o.offsetWidth;c(u>0&&f>0&&f>=u-F3)},[e,n,o]),Nv(e&&(!n||l),s)}let Yv=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.indeterminate="data-indeterminate",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});function $v(e){return v.useMemo(()=>({checked(n){return e.indeterminate?{}:n?{[Yv.checked]:""}:{[Yv.unchecked]:""}},...Vi}),[e.indeterminate])}const B3=v.createContext({disabled:!1});function Z3(){return v.useContext(B3)}function G3(e,n,o,s=!0,l){const[c,u]=v.useState(),f=hr(l?`${l}-label`:void 0),p=e??n??c;return ke(()=>{const h=e||n||!s?void 0:Y3(o.current,f);c!==h&&u(h)}),p}function Y3(e,n){const o=$3(e);if(o)return!o.id&&n&&(o.id=n),o.id||void 0}function $3(e){if(!e)return;const n=e.parentElement;if(n&&n.tagName==="LABEL")return n;const o=e.id;if(o){const l=e.nextElementSibling;if(l&&l.htmlFor===o)return l}const s=e.labels;return s&&s[0]}const q3=v.createContext(void 0);function X3(e=!0){const n=v.useContext(q3);if(n===void 0&&!e)throw new Error(Jt(3));return n}const qv=v.createContext(void 0);function Q3(){const e=v.useContext(qv);if(e===void 0)throw new Error(Jt(14));return e}const K3="data-parent",Xv=v.forwardRef(function(n,o){const{checked:s,className:l,defaultChecked:c=!1,"aria-labelledby":u,disabled:f=!1,form:p,id:h,indeterminate:g=!1,inputRef:y,name:b,onCheckedChange:S,parent:x=!1,readOnly:T=!1,render:C,required:E=!1,uncheckedValue:L,value:j,nativeButton:k=!1,style:R,...N}=n,{clearErrors:z}=_s(),{disabled:P,name:K,setDirty:G,setFilled:q,setFocused:te,setTouched:ee,state:F,validationMode:I,validityData:_,shouldValidateOnChange:O,validation:U}=Hi(),B=Z3(),{labelId:Q,controlId:A,registerControlId:V,getDescriptionProps:Y}=xo(),W=X3(),ne=W?.parent,ie=ne&&W.allValues,ce=P||B.disabled||W?.disabled||f,de=K??b,ye=j??de,Ee=hr(),Me=hr();let fe=A;ie?fe=x?Me:`${ne.id}-${ye}`:h&&(fe=h);let ze={};ie&&(x?ze=W.parent.getParentProps():ye&&(ze=W.parent.getChildProps(ye)));const De=Te(S),{checked:_e=s,indeterminate:Oe=g,onCheckedChange:Ce,...Le}=ze,Re=W?.value,Ue=W?.setValue,H=W?.defaultValue,oe=v.useRef(null),J=vn(()=>Symbol("checkbox-control")),X=v.useRef(!1),{getButtonProps:ve,buttonRef:we}=ws({disabled:ce,native:k}),be=W?.validation??U,[Ne,qe]=Za({controlled:ye&&Re&&!x?Re.includes(ye):_e,default:ye&&H&&!x?H.includes(ye):c,name:"Checkbox",state:"checked"});ke(()=>{V!==Tn&&(X.current=!0,V(J.current,fe))},[fe,W,V,x,J]),v.useEffect(()=>{const Ze=J.current;return()=>{!X.current||V===Tn||(X.current=!1,V(Ze,void 0))}},[V,J]),fh(oe,{enabled:!W,id:Ee,value:Ne});const He=v.useRef(null),Be=Di(y,He,be.inputRef),$e=G3(u,Q,He,!k,fe??void 0);ke(()=>{He.current&&(He.current.indeterminate=Oe,Ne&&q(!0))},[Ne,Oe,q]),Vc(Ne,()=>{W&&!x||(z(de),q(Ne),G(Ne!==_.initialValue),O()?be.commit(Ne):be.commit(Ne,!0))});const et=no({checked:Ne,disabled:ce,form:p,name:x?void 0:de,id:k?void 0:fe??void 0,required:E,ref:Be,style:de?$y:hc,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Ze){if(Ze.nativeEvent.defaultPrevented)return;if(T){Ze.preventDefault();return}const st=Ze.currentTarget.checked,ut=ct(ki,Ze.nativeEvent);if(Ce?.(st,ut),De(st,ut),!ut.isCanceled&&(qe(st),ye&&Re&&Ue&&!x&&!ie)){const zt=st?[...Re,ye]:Re.filter(mt=>mt!==ye);Ue(zt,ut)}},onFocus(){oe.current?.focus()}},j!==void 0?{value:(W?Ne&&j:j)||""}:rn,Y,W?be.getValidationProps:be.getInputValidationProps),Xe=ie?!!_e:Ne,We=ie&&Oe||g;v.useEffect(()=>{if(!ne||!ye)return;const Ze=ne.disabledStatesRef.current;return Ze.set(ye,ce),()=>{Ze.delete(ye)}},[ne,ce,ye]);const dt=v.useMemo(()=>({...F,checked:Xe,disabled:ce,readOnly:T,required:E,indeterminate:We}),[F,Xe,ce,T,E,We]),jt=$v(dt),rt=At("span",n,{state:dt,ref:[we,oe,o,W?.registerControlRef],props:[{id:k?fe??void 0:Ee,role:"checkbox","aria-checked":Oe?"mixed":Ne,"aria-readonly":T||void 0,"aria-required":E||void 0,"aria-labelledby":$e,[K3]:x?"":void 0,onFocus(){te(!0)},onBlur(){const Ze=He.current;Ze&&(ee(!0),te(!1),I==="onBlur"&&be.commit(W?Re:Ze.checked))},onClick(Ze){T||ce||(Ze.preventDefault(),He.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:Ze.shiftKey,ctrlKey:Ze.ctrlKey,altKey:Ze.altKey,metaKey:Ze.metaKey})))}},Y,be.getValidationProps,N,Le,ve],stateAttributesMapping:jt});return D.jsxs(qv.Provider,{value:dt,children:[rt,!Ne&&!W&&de&&!x&&L!==void 0&&D.jsx("input",{type:"hidden",form:p,name:de,value:L}),D.jsx("input",{...et,suppressHydrationWarning:!0})]})}),Qv=v.forwardRef(function(n,o){const{render:s,className:l,style:c,keepMounted:u=!1,...f}=n,p=Q3(),h=p.checked||p.indeterminate,{mounted:g,transitionStatus:y,setMounted:b}=Va(h),S=v.useRef(null),x={...p,transitionStatus:y};ro({open:h,ref:S,onComplete(){h||b(!1)}});const T=$v(p),C=v.useMemo(()=>({...T,...Or,...Vi}),[T]),E=u||g,L=At("span",n,{ref:[o,S],state:x,stateAttributesMapping:C,props:f});return E?L:null});function W3(e,n){const o=hr(e);return ke(()=>(n(o),()=>{n(void 0)}),[o,n]),o}function J3(e={}){const{id:n,fallbackControlId:o,native:s=!1,setLabelId:l,focusControl:c}=e,{controlId:u,setLabelId:f}=xo(),p=Te(S=>{f(S),l?.(S)}),h=W3(n,p),g=u??o;function y(S){if(c){c(S,g);return}if(!g)return;const x=Je(S.currentTarget).getElementById(g);Zt(x)&&eM(x)}function b(S){Xt(S.nativeEvent)?.closest("button,input,select,textarea")||(!S.defaultPrevented&&S.detail>1&&S.preventDefault(),!s&&y(S))}return s?{id:h,htmlFor:g??void 0,onMouseDown:b}:{id:h,onClick:b,onPointerDown(S){S.preventDefault()}}}function eM(e){e.focus({focusVisible:!0})}const tM=v.createContext(void 0);function Kv(e){return v.useContext(tM)}function nM(e,n){const o=v.useRef(null),s=Te(c=>{Cr.flushSync(()=>{e.setOpen(!1,ct(ji,c.nativeEvent,c.currentTarget))}),xO(o.current)?.focus()}),l=Te(c=>{const u=e.select("positionerElement");if(u&&Ss(c,u))e.context.beforeContentFocusGuardRef.current?.focus();else{Cr.flushSync(()=>{e.setOpen(!1,ct(ji,c.nativeEvent,c.currentTarget))});let f=wO(e.context.triggerFocusTargetRef.current||n.current);for(;f!==null&&Ie(u,f);){const p=f;if(f=Rd(f),f===p)break}f?.focus()}});return{preFocusGuardRef:o,handlePreFocusGuardFocus:s,handleFocusTargetFocus:l}}function rM(e){const[n,o]=v.useState({current:e,previous:null});return e!==n.current&&o({current:e,previous:n.current}),n.previous}const oM=v.createContext(void 0),iM={disableStyleElements:!1};function sM(){return v.useContext(oM)??iM}let Rn=(function(e){return e.nestedDrawers="--nested-drawers",e.height="--drawer-height",e.frontmostHeight="--drawer-frontmost-height",e.swipeMovementX="--drawer-swipe-movement-x",e.swipeMovementY="--drawer-swipe-movement-y",e.snapPointOffset="--drawer-snap-point-offset",e.swipeStrength="--drawer-swipe-strength",e})({}),Eo=(function(e){return e.swipeProgress="--drawer-swipe-progress",e})({});const aM={...oo,...Or},lM=v.forwardRef(function(n,o){const{render:s,className:l,style:c,forceRender:u=!1,...f}=n,{store:p}=qn(),h=p.useState("open"),g=p.useState("nested"),y=p.useState("mounted"),b=p.useState("transitionStatus");return At("div",n,{state:{open:h,transitionStatus:b},ref:[p.context.backdropRef,o],stateAttributesMapping:aM,props:[{role:"presentation",hidden:!y,style:{pointerEvents:h?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[Eo.swipeProgress]:"0",[Rn.swipeStrength]:"1"}},f],enabled:u||!g})}),Wv="data-drawer-content",cM=v.forwardRef(function(n,o){const{render:s,className:l,style:c,...u}=n;return qn(),At("div",n,{ref:o,props:[{[Wv]:""},u]})}),uM=v.createContext(void 0);function Jv(e){return v.useContext(uM)}let Zr=(function(e){return e[e.open=$n.open]="open",e[e.closed=$n.closed]="closed",e[e.startingStyle=$n.startingStyle]="startingStyle",e[e.endingStyle=$n.endingStyle]="endingStyle",e.expanded="data-expanded",e.nestedDrawerOpen="data-nested-drawer-open",e.nestedDrawerSwiping="data-nested-drawer-swiping",e.swipeDismiss="data-swipe-dismiss",e.swipeDirection="data-swipe-direction",e.swiping="data-swiping",e})({});const eb=v.createContext(void 0);function Fc(e){const n=v.useContext(eb);if(e===!1&&n===void 0)throw new Error(Jt(90));return n}function hn(e,n=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,o))}function tb(e,n,o){if(!Number.isFinite(n)||n<=0)return null;if(typeof e=="number")return Number.isFinite(e)?e<=1?hn(e,0,1)*n:e:null;const s=e.trim();if(s.endsWith("px")){const l=Number.parseFloat(s);return Number.isFinite(l)?l:null}if(s.endsWith("rem")){const l=Number.parseFloat(s);return Number.isFinite(l)?l*o:null}return null}function fM(e,n){let o=null,s=1/0;for(const l of n){const c=Math.abs(l.height-e);c<s&&(s=c,o=l)}return o}function nb(){const{store:e}=qn(),{snapPoints:n,activeSnapPoint:o,setActiveSnapPoint:s,popupHeight:l}=Fc(),c=e.useState("viewportElement"),[u,f]=v.useState(0),[p,h]=v.useState(16),g=Te(()=>{const x=Je(c).documentElement;c&&f(c.offsetHeight),c||f(x.clientHeight);const T=parseFloat(getComputedStyle(x).fontSize);Number.isFinite(T)&&h(T)});ke(()=>{if(g(),!c||typeof ResizeObserver!="function")return;const S=new ResizeObserver(g);return S.observe(c),()=>{S.disconnect()}},[g,c]);const y=v.useMemo(()=>{if(!n||n.length===0||u<=0||l<=0)return[];const S=Math.min(l,u);if(!Number.isFinite(S)||S<=0)return[];const x=n.map(E=>{const L=tb(E,u,p);if(L===null||!Number.isFinite(L))return null;const j=hn(L,0,S);return{value:E,height:j,offset:Math.max(0,l-j)}}).filter(E=>!!E);if(x.length<=1)return x;const T=[],C=[];for(let E=x.length-1;E>=0;E-=1){const L=x[E];C.some(k=>Math.abs(k-L.height)<=1)||(C.push(L.height),T.push(L))}return T.reverse(),T},[l,p,n,u]),b=v.useMemo(()=>{if(o===void 0)return y[0];if(o===null)return;const S=y.find(E=>Object.is(E.value,o));if(S)return S;const x=Math.min(l,u),T=tb(o,u,p);if(T===null||!Number.isFinite(T))return;const C=hn(T,0,x);return fM(C,y)??void 0},[o,l,y,p,u]);return{snapPoints:n,activeSnapPoint:o,setActiveSnapPoint:s,popupHeight:l,viewportHeight:u,resolvedSnapPoints:y,activeSnapPointOffset:b?.offset??null}}const rb=v.createContext(null);function dM(e){return v.useContext(rb)}let ob=!1;function hM(){ob||(typeof CSS<"u"&&"registerProperty"in CSS&&([Rn.swipeMovementX,Rn.swipeMovementY,Rn.snapPointOffset].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),[{name:Eo.swipeProgress,initialValue:"0"},{name:Rn.swipeStrength,initialValue:"1"}].forEach(({name:e,initialValue:n})=>{try{CSS.registerProperty({name:e,syntax:"<number>",inherits:!1,initialValue:n})}catch{}})),ob=!0)}const pM={...oo,...Or,expanded(e){return e?{[Zr.expanded]:""}:null},nestedDrawerOpen(e){return e?{[Zr.nestedDrawerOpen]:""}:null},nestedDrawerSwiping(e){return e?{[Zr.nestedDrawerSwiping]:""}:null},swipeDirection(e){return e?{[Zr.swipeDirection]:e}:null},swiping(e){return e?{[Zr.swiping]:""}:null}},mM=v.forwardRef(function(n,o){const{className:s,finalFocus:l,initialFocus:c,render:u,style:f,...p}=n,{store:h}=qn(),{swipeDirection:g,frontmostHeight:y,hasNestedDrawer:b,nestedSwiping:S,nestedSwipeProgressStore:x,onPopupHeightChange:T,notifyParentFrontmostHeight:C,notifyParentHasNestedDrawer:E}=Fc(),L=h.useState("descriptionElementId"),j=h.useState("disablePointerDismissal"),k=h.useState("floatingRootContext"),R=h.useState("popupProps"),N=h.useState("modal"),z=h.useState("mounted"),P=h.useState("nested"),K=h.useState("nestedOpenDrawerCount"),G=h.useState("transitionStatus"),q=h.useState("open"),te=h.useState("openMethod"),ee=h.useState("titleElementId"),F=h.useState("role"),I=K>0,_=dM(),O=_?.swiping??!1,U=_?.swipeStrength??null,{snapPoints:B,activeSnapPoint:Q,activeSnapPointOffset:A}=nb();ih();const[V,Y]=v.useState(0),W=v.useRef(0),ne=Te(()=>{const De=h.context.popupRef.current;if(!De)return;const _e=De.offsetHeight;if(W.current>0&&y>W.current&&_e>W.current)return;if(W.current>0&&b){const Le=W.current;Y(Le),T(Le);return}const Ce=_e;Ce!==W.current&&(W.current=Ce,Y(Ce),T(Ce))});ke(()=>{if(!z){W.current=0,Y(0),T(0);return}const De=h.context.popupRef.current;if(!De||(hM(),ne(),typeof ResizeObserver!="function"))return;const _e=new ResizeObserver(ne);return _e.observe(De),()=>{_e.disconnect()}},[ne,z,I,T,h.context.popupRef]),ke(()=>{const De=h.context.popupRef,_e=()=>{const Ce=De.current;if(!Ce)return;const Le=x.getSnapshot();Le>0?Ce.style.setProperty(Eo.swipeProgress,`${Le}`):Ce.style.setProperty(Eo.swipeProgress,"0")};_e();const Oe=x.subscribe(_e);return()=>{Oe();const Ce=De.current;Ce&&Ce.style.setProperty(Eo.swipeProgress,"0")}},[x,h.context.popupRef]),v.useEffect(()=>{if(q)return C?.(y),()=>{C?.(0)}},[y,q,C]),v.useEffect(()=>E?(E(q||G==="ending"),()=>{E(!1)}):void 0,[E,q,G]),ro({open:q,ref:h.context.popupRef,onComplete(){q&&h.context.onOpenChangeComplete?.(!0)}});const ie=c===void 0?h.context.popupRef:c,ce={open:q,nested:P,transitionStatus:G,expanded:Q===1,nestedDrawerOpen:I,nestedDrawerSwiping:S,swipeDirection:g,swiping:O};let de;V&&!(!b&&G!=="ending")&&(de=`${V}px`);const Ee=B&&B.length>0&&(g==="down"||g==="up");let Me=null;Ee&&A!==null&&(Me=g==="up"?-A:A);let fe=_?_.getDragStyles():rn;if(Ee&&g==="down"){const De=A??0,_e=Number.parseFloat(String(fe[Rn.swipeMovementY]??0)),Oe=Number.isFinite(_e)?De+_e:De,Ce=Oe<0;if(O&&Ce&&Number.isFinite(_e)){const Le=Math.abs(Oe),Ue=-Math.sqrt(Le)-De;fe={...fe,transform:void 0,[Rn.swipeMovementY]:`${Ue}px`}}else fe={...fe,transform:void 0}}const ze=At("div",n,{state:ce,props:[R,{"aria-labelledby":ee,"aria-describedby":L,role:F,tabIndex:-1,hidden:!z,onKeyDown(De){Uc.has(De.key)&&De.stopPropagation()},style:{...fe,[Eo.swipeProgress]:"0",[Rn.nestedDrawers]:K,[Rn.height]:de,[Rn.snapPointOffset]:typeof Me=="number"?`${Me}px`:"0px",[Rn.frontmostHeight]:y?`${y}px`:void 0,[Rn.swipeStrength]:typeof U=="number"&&Number.isFinite(U)&&U>0?`${U}`:"1"}},p],ref:[o,h.context.popupRef,h.useStateSetter("popupElement")],stateAttributesMapping:pM});return D.jsx(wc,{context:k,openInteractionType:te,disabled:!z,closeOnFocusOut:!j,initialFocus:ie,returnFocus:l,modal:N!==!1,restoreFocus:"popup",children:ze})}),gM=ah;var ib,sb;function yM(e){const{children:n,open:o,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:c,disablePointerDismissal:u=!1,modal:f=!0,actionsRef:p,handle:h,triggerId:g,defaultTriggerId:y=null,swipeDirection:b="down",snapToSequentialPoints:S=!1,snapPoints:x,snapPoint:T,defaultSnapPoint:C,onSnapPointChange:E}=e,L=Te(E),j=Fc(!0),k=j?.onNestedSwipeProgressChange,R=j?.onNestedFrontmostHeightChange,N=j?.onNestedSwipingChange,z=j?.onNestedDrawerPresenceChange,[P,K]=v.useState(0),[G,q]=v.useState(0),[te,ee]=v.useState(!1),[F,I]=v.useState(!1),[_]=v.useState(vM),O=C!==void 0?C:x?.[0]??null,U=T!==void 0,[B,Q]=Za({controlled:T,default:O,name:"Drawer",state:"snapPoint"}),A=v.useRef(!1),V=Te((fe,ze)=>{const De=ze??ct(ki);L?.(fe,De),!De.isCanceled&&Q(fe)}),Y=v.useMemo(()=>U||!x||x.length===0?B:B===null||!x.some(fe=>Object.is(fe,B))?O:B,[B,U,O,x]),W=Te(fe=>{K(fe),!A.current&&fe>0&&q(fe)}),ne=Te(fe=>{if(fe>0){A.current=!0,q(fe);return}A.current=!1,P>0&&q(P)}),ie=Te(fe=>{ee(fe)}),ce=Te(fe=>{_.set(fe),k?.(fe)}),de=Te(fe=>{I(fe),N?.(fe)}),ye=Te((fe,ze)=>{l?.(fe,ze),!ze.isCanceled&&!fe&&x&&x.length>0&&V(O,ct(ze.reason,ze.event,ze.trigger))}),Ee=v.useMemo(()=>({swipeDirection:b,snapToSequentialPoints:S,snapPoints:x,activeSnapPoint:Y,setActiveSnapPoint:V,frontmostHeight:G,popupHeight:P,hasNestedDrawer:te,nestedSwiping:F,nestedSwipeProgressStore:_,onNestedDrawerPresenceChange:ie,onPopupHeightChange:W,onNestedFrontmostHeightChange:ne,onNestedSwipingChange:de,onNestedSwipeProgressChange:ce,notifyParentFrontmostHeight:R,notifyParentSwipingChange:N,notifyParentSwipeProgressChange:k,notifyParentHasNestedDrawer:z}),[Y,G,te,F,_,z,k,N,R,ie,ne,ce,de,W,P,V,x,S,b]),Me=typeof n=="function"?fe=>D.jsxs(v.Fragment,{children:[ib||(ib=D.jsx(ab,{})),n(fe)]}):D.jsxs(v.Fragment,{children:[sb||(sb=D.jsx(ab,{})),n]});return D.jsx(eb.Provider,{value:Ee,children:D.jsx(rh.Provider,{value:!0,children:D.jsx(oh,{open:o,defaultOpen:s,onOpenChange:ye,onOpenChangeComplete:c,disablePointerDismissal:u,modal:f,actionsRef:p,handle:h,triggerId:g,defaultTriggerId:y,children:Me})})})}function vM(){let e=0;const n=new Set;return{getSnapshot:()=>e,set(o){const s=Number.isFinite(o)?o:0;s!==e&&(e=s,n.forEach(l=>{l()}))},subscribe(o){return n.add(o),()=>{n.delete(o)}}}}function ab(){const e=Jo(),n=Jv(),o=qn(!1),s=o.store.useState("open"),l=o.store.useState("nestedOpenDialogCount"),c=o.store.useState("popupElement"),u=l===0;return v.useEffect(()=>{if(!(!n||e==null))return()=>{n.removeDrawer(e)}},[e,n]),v.useEffect(()=>{e!=null&&n?.setDrawerOpen(e,s)},[e,s,n]),v.useEffect(()=>{if(!s||!u||!sc)return;const p=Lt(c).CloseWatcher;if(!p)return;function h(b){o.store.select("open")&&o.store.setOpen(!1,ct(m_,b))}const g=new p,y=pt(g,"close",h);return()=>{y(),g.destroy()}},[o.store,u,s,c]),null}function hh(e,n){const o=Zn(e);if(n==="vertical"){const l=o.overflowY;return(l==="auto"||l==="scroll")&&e.scrollHeight>e.clientHeight}const s=o.overflowX;return(s==="auto"||s==="scroll")&&e.scrollWidth>e.clientWidth}function bM(e,n,o){let s=e;for(;s&&s!==n;){for(const l of o)if(hh(s,l))return!0;s=s.parentElement}return!1}function As(e,n,o="vertical"){let s=Zt(e)?e:null;for(;s&&s!==n;){if(hh(s,o))return s;s=s.parentElement}return hh(n,o)?n:null}function Bc(e,n,o){return typeof e?.elementFromPoint=="function"?e.elementFromPoint(n,o):null}const SM=40,wM=10,xM=1,EM=50,lb=16,TM=80,CM='button,a,input,select,textarea,label,[role="button"]';function ph(e,n,o){switch(e){case"up":return-o;case"down":return o;case"left":return-n;case"right":return n;default:return 0}}function RM(e){const o=Lt(e).getComputedStyle(e).transform;let s=0,l=0,c=1;if(o&&o!=="none"){const u=o.match(/matrix(?:3d)?\(([^)]+)\)/);if(u){const f=u[1].split(", ").map(parseFloat);f.length===6?(s=f[4],l=f[5],c=Math.sqrt(f[0]*f[0]+f[1]*f[1])):f.length===16&&(s=f[12],l=f[13],c=f[0])}}return{x:s,y:l,scale:c}}function Zc(e){return Number.isFinite(e)&&e>0?e:null}function OM(e){return e%2===1}function mh(e,n,o){const s=e[o];if(typeof s=="function")try{s.call(e,n)}catch(l){if(l&&typeof l=="object"&&"name"in l&&l.name==="NotFoundError")return;throw l}}function _M(e){const{enabled:n,directions:o,elementRef:s,movementCssVars:l,canStart:c,ignoreSelectorWhenTouch:u=!0,ignoreScrollableAncestors:f=!1,swipeThreshold:p,onDismiss:h,onProgress:g,onCancel:y,onSwipeStart:b,onRelease:S,onSwipingChange:x,trackDrag:T=!0}=e,C=CM,E=o.length===1?o[0]:void 0,L=Math.max(0,typeof p=="number"?p:SM),j=o.includes("left"),k=o.includes("right"),R=o.includes("up"),N=o.includes("down"),z=j||k,P=R||N,K=v.useMemo(()=>{const he=[];return P&&he.push("vertical"),z&&he.push("horizontal"),he},[z,P]),[G,q]=v.useState(void 0),[te,ee]=v.useState(!1),[F,I]=v.useState(!1),[_,O]=v.useState(!1),[U,B]=v.useState({x:0,y:0}),[Q,A]=v.useState({x:0,y:0,scale:1}),[V,Y]=v.useState(null),W=v.useRef({x:0,y:0}),ne=v.useRef({x:0,y:0}),ie=v.useRef(null),ce=v.useRef({x:0,y:0,scale:1}),de=v.useRef(void 0),ye=v.useRef(0),Ee=v.useRef(!1),Me=v.useRef({x:0,y:0}),fe=v.useRef(!1),ze=v.useRef(!1),De=v.useRef(null),_e=v.useRef(!1),Oe=v.useRef(!1),Ce=v.useRef({width:0,height:0}),Le=v.useRef(0),Re=v.useRef(L),Ue=v.useRef(null),H=v.useRef(null),oe=v.useRef({x:0,y:0}),J=v.useRef(null),X=v.useRef(!1),ve=Te(he=>{X.current!==he&&(X.current=he,ee(he),x?.(he))});function we(he){if(!he)return;if(typeof p!="function"){Re.current=L;return}const xe=s.current;if(!xe)return;const je=p({element:xe,direction:he});Re.current=Math.max(0,je)}const be=Te((he,xe)=>{const je=Number.isFinite(he)?hn(he,0,1):0,at=je!==Le.current;let ft=!1;if(xe){const ot=J.current;ft=!ot||ot.deltaX!==xe.deltaX||ot.deltaY!==xe.deltaY||ot.direction!==xe.direction}!at&&!ft||(Le.current=je,xe?J.current=xe:at&&(J.current=null),g?.(je,xe))});function Ne(he,xe){if(xe===null)return;const je=H.current;if(je&&xe>je.time){const at=Math.max(xe-je.time,lb);oe.current={x:(he.x-je.x)/at,y:(he.y-je.y)/at}}H.current={x:he.x,y:he.y,time:xe}}const qe=v.useCallback(()=>{q(void 0),ve(!1),I(!1),O(!1),B({x:0,y:0}),A({x:0,y:0,scale:1}),Y(null),be(0),Re.current=L,W.current={x:0,y:0},ne.current={x:0,y:0},ce.current={x:0,y:0,scale:1},de.current=void 0,ye.current=0,Ee.current=!1,Me.current={x:0,y:0},fe.current=!1,ie.current=null,ze.current=!1,De.current=null,_e.current=!1,Oe.current=!1,Ce.current={width:0,height:0},Ue.current=null,H.current=null,oe.current={x:0,y:0},J.current=null},[ve,L,be]);v.useEffect(()=>{typeof p!="function"&&(Re.current=L)},[L,p]);function He(he){if("touches"in he){const xe=he.touches[0];return xe?{x:xe.clientX,y:xe.clientY}:null}return{x:he.clientX,y:he.clientY}}function Be(he){return"touches"in he?!0:he.pointerType==="touch"}function $e(he,xe){const je=Je(s.current);return Bc(je,he.x,he.y)??Xt(xe)}function et(he,xe){return z&&!P?As(he,xe,"horizontal"):P&&!z?As(he,xe,"vertical"):As(he,xe,"vertical")??As(he,xe,"horizontal")}function Xe(he,xe,je){_e.current=!1;const at=Be(he),ft=$e(xe,he.nativeEvent),_t=Je(s.current).body,Ge=at&&_t?et(ft,_t):null,Fe=je?.ignoreScrollableTarget??!1;if(Ge&&!Fe||(_e.current=!!(Ge&&Fe),(ft?ft.closest(C):!1)&&(!at||u)))return!1;const nt=s.current;if(f&&nt&&ft&&K.length>0&&!(je?.ignoreScrollableAncestors??!1)&&bM(ft,nt,K))return!1;if(Ee.current=!1,de.current=void 0,ye.current=0,W.current=xe,Ue.current=Zc(he.timeStamp),Me.current=xe,ie.current=xe,nt){Ce.current={width:nt.offsetWidth,height:nt.offsetHeight},we(E);const ht=RM(nt);ce.current=ht,ne.current={x:ht.x,y:ht.y},A(ht),B({x:ht.x,y:ht.y}),Ne({x:ht.x,y:ht.y},Ue.current),"touches"in he||mh(nt,he.pointerId,"setPointerCapture")}return b?.(he.nativeEvent),ve(!0),I(!1),Y(null),fe.current=!0,be(0),!0}function We(){dt(),_e.current=!1,ie.current=null}function dt(){ze.current=!1,De.current=null}function jt(he){if(We(),!X.current)return;ve(!1),I(!1),Y(null);const xe=T?Q:ce.current;ne.current={x:xe.x,y:xe.y},B({x:xe.x,y:xe.y}),q(void 0),Oe.current=!1;const je=s.current;je&&mh(je,he.pointerId,"releasePointerCapture"),be(0,{deltaX:0,deltaY:0,direction:void 0}),y?.(he.nativeEvent)}function rt(he,xe){const je=_t=>_t>=0?_t**.5:-(Math.abs(_t)**.5),at=(_t,Ge,Fe)=>!Ge&&_t<0||!Fe&&_t>0?je(_t):_t,ft=z?at(he,j,k):je(he),ot=P?at(xe,R,N):je(xe);return{x:ft,y:ot}}function Ze(he,xe,je){const at=Math.abs(xe),ft=Math.abs(je);if(P&&je!==0&&(!z||ft>=at)){const Ge=Math.max(0,he.scrollHeight-he.clientHeight),Fe=he.scrollTop<=0,tt=he.scrollTop>=Ge,nt=je>0,ht=je<0;return nt&&Fe&&N||ht&&tt&&R}if(z&&xe!==0&&(!P||at>ft)){const Ge=Math.max(0,he.scrollWidth-he.clientWidth),Fe=he.scrollLeft<=0,tt=he.scrollLeft>=Ge,nt=xe>0,ht=xe<0;return nt&&Fe&&k||ht&&tt&&j}return null}const st=Te(he=>{if(!n||he.defaultPrevented||he.nativeEvent.defaultPrevented||!("touches"in he)&&he.button!==0)return;const xe=He(he);!xe||(ze.current=!0,De.current=xe,_e.current=!1,Oe.current=!1,!(c?c(xe,{nativeEvent:he.nativeEvent,direction:E}):!0))||Xe(he,xe)&&dt()});function ut(he,xe,je){if(!n||!X.current)return;const at=Xt(he.nativeEvent);if(Be(he)&&!_e.current){const An=he.currentTarget;if(et(at,An))return}if("touches"in he||he.preventDefault(),fe.current){W.current=xe;const An=Zc(he.timeStamp);An!==null&&(Ue.current=An),fe.current=!1}const ft=xe.x,ot=xe.y,_t=je.x,Ge=je.y;(Ge<0&&ot>Me.current.y||Ge>0&&ot<Me.current.y)&&(Me.current={x:Me.current.x,y:ot}),(_t<0&&ft>Me.current.x||_t>0&&ft<Me.current.x)&&(Me.current={x:ft,y:Me.current.y});const Fe=ft-W.current.x,tt=ot-W.current.y,nt=ot-Me.current.y,ht=ft-Me.current.x;if(!F&&Math.sqrt(Fe*Fe+tt*tt)>=xM&&(I(!0),V===null&&z&&P)){const mr=Math.abs(Fe),on=Math.abs(tt);Y(mr>on?"horizontal":"vertical")}let Qe;if(!de.current)V==="vertical"?tt>0?Qe="down":tt<0&&(Qe="up"):V==="horizontal"?Fe>0?Qe="right":Fe<0&&(Qe="left"):Math.abs(Fe)>=Math.abs(tt)?Qe=Fe>0?"right":"left":Qe=tt>0?"down":"up",Qe&&(Qe==="left"&&j||Qe==="right"&&k||Qe==="up"&&R||Qe==="down"&&N)&&(de.current=Qe,ye.current=ph(Qe,Fe,tt),q(Qe),we(Qe));else{const An=de.current,mr=ph(An,ht,nt);mr>Re.current?(Ee.current=!1,q(An)):!(j&&k)&&!(R&&N)&&ye.current-mr>=wM&&(Ee.current=!0)}const $t=rt(Fe,tt);let xn=ce.current.x,On=ce.current.y;V==="horizontal"?z&&(xn+=$t.x):(V==="vertical"||z&&(xn+=$t.x),P&&(On+=$t.y)),ne.current={x:xn,y:On},T&&B({x:xn,y:On}),Ne({x:xn,y:On},Zc(he.timeStamp));const ao=xn-ce.current.x,Ar=On-ce.current.y,lo=de.current,pr=E??de.current;if(!pr){be(0,{deltaX:ao,deltaY:Ar,direction:lo});return}const er=pr==="left"||pr==="right"?Ce.current.width:Ce.current.height,_n=ce.current.scale||1;if(er<=0||_n<=0){be(0,{deltaX:ao,deltaY:Ar,direction:lo});return}const tr=ph(pr,xn-ce.current.x,On-ce.current.y);if(tr<=0){be(0,{deltaX:ao,deltaY:Ar,direction:lo});return}be(tr/(er*_n),{deltaX:ao,deltaY:Ar,direction:lo})}const zt=Te(he=>{const xe=He(he);if(!xe)return;if(!("touches"in he)){const ft=OM(he.buttons);ft&&(Oe.current=!0);const ot=he.buttons===0&&Oe.current;if(he.buttons!==0&&!ft||ot){jt(he);return}}if(!te&&ze.current){if(!Be(he)&&(he.defaultPrevented||he.nativeEvent.defaultPrevented)){We();return}if(c?c(xe,{nativeEvent:he.nativeEvent,direction:E}):!0){const ot=De.current;let _t=!1;if(Be(he)){const Fe=s.current;if(ot&&Fe){const tt=$e(xe,he.nativeEvent),ht=Je(Fe).body,Qe=ht?et(tt,ht):null;if(Qe&&(Ie(Fe,Qe)||Ie(Qe,Fe))){const $t=xe.x-ot.x,xn=xe.y-ot.y,On=Ze(Qe,$t,xn);if(On===!1)return;On===!0&&(_t=!0)}}}Xe(he,xe,{ignoreScrollableTarget:_t,ignoreScrollableAncestors:_t})&&(ot&&_t?(dt(),W.current=ot,Me.current=ot,ie.current=ot,fe.current=!1):(dt(),_e.current=!1))}}const je=ie.current,at=je===null?{x:0,y:0}:{x:xe.x-je.x,y:xe.y-je.y};ie.current=xe,ut(he,xe,at)}),mt=Te(he=>{if(!n)return;const xe=ne.current,je=ce.current,at=xe.x-je.x,ft=xe.y-je.y,ot={deltaX:at,deltaY:ft,direction:G??de.current};if(!X.current){We(),be(0,ot);return}ve(!1),I(!1),Y(null),We(),Oe.current=!1;const _t=s.current;_t&&("touches"in he||mh(_t,he.pointerId,"releasePointerCapture"));const Ge=at,Fe=ft,tt=Ue.current,nt=Zc(he.timeStamp),ht=tt!==null&&nt!==null&&nt>tt?nt-tt:0,Qe=ht>0?Math.max(ht,EM):0,$t=Qe>0?Ge/Qe:0,xn=Qe>0?Fe/Qe:0;let On=oe.current.x,ao=oe.current.y;const Ar=H.current;if(Ar&&nt!==null&&nt>=Ar.time){const tr=nt-Ar.time;if(tr<=TM){const An=Math.max(tr,lb),mr=xe.x-Ar.x,on=xe.y-Ar.y,el=mr/An,tl=on/An;el!==0&&(On=el),tl!==0&&(ao=tl)}else On=0,ao=0}const lo=S?.({event:he.nativeEvent,direction:G??de.current,deltaX:Ge,deltaY:Fe,velocityX:$t,velocityY:xn,releaseVelocityX:On,releaseVelocityY:ao}),pr=typeof lo=="boolean";if(Ee.current&&!pr){ne.current={x:je.x,y:je.y},B({x:je.x,y:je.y}),q(void 0),be(0,ot);return}let er=!1,_n;if(pr)er=lo,_n=G??de.current??E;else for(const tr of o){switch(tr){case"right":Ge>Re.current&&(er=!0,_n="right");break;case"left":Ge<-Re.current&&(er=!0,_n="left");break;case"down":Fe>Re.current&&(er=!0,_n="down");break;case"up":Fe<-Re.current&&(er=!0,_n="up");break}if(er)break}er&&_n?(q(_n),O(!0),h?.(he.nativeEvent,{direction:_n})):(ne.current={x:je.x,y:je.y},B({x:je.x,y:je.y}),q(void 0),be(0,ot))}),wn=v.useCallback(()=>{const he=T?U:ne.current,xe=T?Q:ce.current;if(!te&&he.x===xe.x&&he.y===xe.y&&!_)return{[l.x]:"0px",[l.y]:"0px"};const je=he.x-xe.x,at=he.y-xe.y;return{transition:te?"none":void 0,transform:te?`translateX(${he.x}px) translateY(${he.y}px) scale(${xe.scale})`:void 0,[l.x]:`${je}px`,[l.y]:`${at}px`}},[_,U,Q,te,l,T]),cn=v.useCallback(()=>n?{onPointerDown:st,onPointerMove:zt,onPointerUp:mt,onPointerCancel:mt}:{},[n,mt,zt,st]),Rt=v.useCallback(()=>n?{onTouchStart:st,onTouchMove:zt,onTouchEnd:mt,onTouchCancel:mt}:{},[n,mt,zt,st]);return{swiping:te,swipeDirection:G,dragDismissed:_,getPointerProps:cn,getTouchProps:Rt,getDragStyles:wn,reset:qe}}const AM=lh,MM=ch,gh=10,cb=.5,ub=.5,DM=300,fb=4,db=.2,zM=4,yh=80,hb=360,vh=.1,pb=1,NM=`[${Wv}]`,kM=v.forwardRef(function(n,o){const{className:s,render:l,style:c,children:u,...f}=n,{store:p}=qn(),{swipeDirection:h,notifyParentSwipingChange:g,notifyParentSwipeProgressChange:y,frontmostHeight:b,snapToSequentialPoints:S}=Fc(),T=Jv()?.visualStateStore,C=p.useState("open"),E=p.useState("mounted"),L=p.useState("nested"),j=p.useState("nestedOpenDrawerCount"),k=p.useState("viewportElement"),R=p.useState("popupElement"),N=j>0,z=h==="left"||h==="right"?"horizontal":"vertical",P=z==="vertical",K=P?"horizontal":"vertical",{snapPoints:G,resolvedSnapPoints:q,activeSnapPoint:te,activeSnapPointOffset:ee,setActiveSnapPoint:F,popupHeight:I}=nb(),[_,O]=v.useState(null),U=v.useRef(void 0),B=v.useRef(null),Q=Ma(),A=v.useRef(!1),V=v.useRef(""),Y=v.useRef(!1),W=v.useRef(!1),ne=v.useRef(null),ie=v.useMemo(()=>{if(!G||G.length<2||h!=="down"&&h!=="up"||q.length<2)return null;const H=q.map(we=>we.offset).filter(we=>Number.isFinite(we)).sort((we,be)=>we-be);if(H.length<2)return null;const oe=H[0],J=H[1],X=H[H.length-1];let ve=J-oe;if(!Number.isFinite(ve)||ve<=0){const we=X-oe;if(!Number.isFinite(we)||we<=0)return null;ve=we}return{minOffset:oe,range:ve}},[q,G,h]),ce=v.useMemo(()=>!ie||ee===null?null:hn((ee-ie.minOffset)/ie.range,0,1),[ee,ie]),de=v.useMemo(()=>G&&G.length>0&&(h==="down"||h==="up")?h==="down"?["down","up"]:["up","down"]:[h],[G,h]),ye=Te(H=>{mb(p.context.popupRef.current,p.context.backdropRef.current,H)}),Ee=Te(()=>{ye(!1),p.context.popupRef.current?.removeAttribute(zi.endingStyle),O(null)}),Me=Te(()=>{A.current&&(A.current=!1,g?.(!1))}),fe=Te(({resolvedProgress:H,shouldTrackProgress:oe,notifyParent:J})=>{const X=C&&!L&&oe,ve=X?H:0,we=C&&oe?H:0;J&&y&&(y(we),we<=0&&Me()),T?.set({swipeProgress:ve,frontmostHeight:ve>0?b:0});const be=p.context.backdropRef.current;if(be){if(!X||ve<=0){be.style.setProperty(Eo.swipeProgress,"0"),be.style.removeProperty(Rn.height);return}be.style.setProperty(Eo.swipeProgress,`${ve}`),b>0?be.style.setProperty(Rn.height,`${b}px`):be.style.removeProperty(Rn.height)}});function ze({direction:H,deltaX:oe,deltaY:J,velocityX:X,velocityY:ve,releaseVelocityX:we,releaseVelocityY:be}){if(!H)return null;const Ne=p.context.popupRef.current;if(!Ne)return null;const qe=H==="left"||H==="right"?Ne.offsetWidth:Ne.offsetHeight;if(!Number.isFinite(qe)||qe<=0)return null;const He=H==="left"||H==="right"?oe:J,Be=G&&G.length>0?ee??0:0;let $e=0;H==="down"?$e=Be:H==="up"&&($e=-Be);const et=$e+He,Xe=H==="left"||H==="up"?-et:et,We=Math.max(0,qe-Xe);if(!Number.isFinite(We)||We<=0)return null;const dt=H==="left"||H==="right"?we:be,jt=H==="left"||H==="right"?X:ve,rt=Math.abs(dt)>0&&Number.isFinite(dt)?dt:jt,Ze=H==="left"||H==="up"?-rt:rt;if(!Number.isFinite(Ze)||Ze<=db)return null;const st=hn(Ze,db,zM),ut=hn(We/st,yh,hb);if(!Number.isFinite(ut))return null;const zt=(ut-yh)/(hb-yh),mt=hn(vh+zt*(pb-vh),vh,pb);return!Number.isFinite(mt)||mt<=0?null:mt}function De(H){if(A.current||!H)return;const oe=H.direction??h,J=oe==="left"||oe==="right"?H.deltaX:H.deltaY;!Number.isFinite(J)||Math.abs(J)<gh||(A.current=!0,g?.(!0))}const _e=_M({enabled:E&&!N,directions:de,elementRef:p.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:Rn.swipeMovementX,y:Rn.swipeMovementY},onSwipeStart(H){if("touches"in H||"pointerType"in H&&H.pointerType==="touch")return;const oe=p.context.popupRef.current;if(!oe)return;const X=Je(oe).getSelection?.();if(!X||X.isCollapsed)return;const ve=bt(X.anchorNode)?X.anchorNode:X.anchorNode?.parentElement,we=bt(X.focusNode)?X.focusNode:X.focusNode?.parentElement;!Ie(oe,ve)&&!Ie(oe,we)||X.removeAllRanges()},onSwipingChange(H){gb(p.context.backdropRef.current,H),!H&&!y&&Me()},swipeThreshold({element:H,direction:oe}){return yb(H,oe)},canStart(H,oe){const J=p.context.popupRef.current;if(!J)return!1;const X=J.ownerDocument,ve=Bc(X,H.x,H.y);if(!ve||!Ie(J,ve))return!1;const we=oe.nativeEvent;return!(("touches"in we||"pointerType"in we&&we.pointerType==="touch")&&bb(X,J)||we.type==="touchstart"&&bh(ve))},onProgress(H,oe){De(oe);const J=oe?.direction??_e.swipeDirection,X=J===void 0||J===h,ve=!!(G&&G.length>0),be=ve&&(h==="down"||h==="up")||!ve||h==="left"||h==="right"||X;let Ne=H;if(ie&&I>0){if(oe&&Number.isFinite(oe.deltaY)){const qe=ee??ie.minOffset,He=hn(qe+oe.deltaY,0,I);Ne=hn((He-ie.minOffset)/ie.range,0,1)}else if(ce!==null)Ne=ce;else if(J==="down"||J==="up"){const qe=H*I,He=ee??ie.minOffset,Be=J==="down"?He+qe:He-qe;Ne=hn((Be-ie.minOffset)/ie.range,0,1)}}fe({resolvedProgress:Ne,shouldTrackProgress:be,notifyParent:!0})},onRelease({event:H,deltaX:oe,deltaY:J,direction:X,velocityX:ve,velocityY:we,releaseVelocityX:be,releaseVelocityY:Ne}){const qe={deltaX:oe,deltaY:J,velocityX:ve,velocityY:we,releaseVelocityX:be,releaseVelocityY:Ne};function He(Rt){const he=p.context.popupRef.current;he&&(Me(),ye(!0),he.style.removeProperty("transition"),he.setAttribute(zi.endingStyle,""),Cr.flushSync(()=>{O(ze({direction:Rt,...qe}))}))}if(!G||G.length===0){if(!X){Ee();return}const Rt=p.context.popupRef.current;if(!Rt){Ee();return}const he=yb(Rt,X),xe=X==="left"||X==="right"?oe:J;if(!Number.isFinite(xe)){Ee();return}const je=X==="left"||X==="up"?-xe:xe;if(je<=0)return Ee(),!1;const at=X==="left"||X==="right"?ve:we;if((X==="left"||X==="up"?-at:at)>=cb&&je>0)return He(X),!0;const ot=je>he;return ot?He(X):Ee(),ot}if(h!=="down"&&h!=="up"){Ee();return}if(!I||q.length===0){Ee();return}const Be=h==="down"?J:-J;if(!Number.isFinite(Be)){Ee();return}const $e=Math.sign(Be),et=h==="down"?Ne:-Ne,Xe=h==="down"?we:-we;let We=Number.isFinite(et)?et:Xe;if($e!==0&&Math.abs(Be)>=gh&&Number.isFinite(We)){const Rt=Math.sign(We);Rt!==0&&Rt!==$e&&(We=Xe)}const dt=ee??0,jt=hn(dt+Be,0,I),rt=Number.isFinite(We)&&Math.abs(We)>=ub?hn(We,-fb,fb)*DM:0,Ze=S?jt:hn(jt+rt,0,I),st=ct(yc,H),ut=()=>(U.current=te,F?.(null,st),He(h),!0);if(S){const Rt=[...q].sort((tt,nt)=>tt.offset-nt.offset);if(Rt.length===0)return Ee(),!1;let he=0,xe=Math.abs(dt-Rt[0].offset);for(let tt=1;tt<Rt.length;tt+=1){const nt=Math.abs(dt-Rt[tt].offset);nt<xe&&(xe=nt,he=tt)}let je=Rt[0];xe=Math.abs(Ze-je.offset);for(const tt of Rt){const nt=Math.abs(Ze-tt.offset);nt<xe&&(xe=nt,je=tt)}const at=Math.sign(We),ft=$e!==0&&at!==0&&at===$e&&Math.abs(We)>=ub;let ot=Ze;if(ft){const tt=hn(he+$e,0,Rt.length-1);if(tt!==he){const nt=Rt[tt];($e>0?Ze<nt.offset:Ze>nt.offset)&&(je=nt,ot=nt.offset)}else if($e>0)return ut()}const Ge=Math.abs(ot-I),Fe=Math.abs(ot-je.offset);return Ge<Fe?ut():(F?.(je.value,st),Ee(),!1)}if(We>=cb&&Be>0)return ut();let zt=q[0],mt=Math.abs(Ze-zt.offset);for(const Rt of q){const he=Math.abs(Ze-Rt.offset);he<mt&&(mt=he,zt=Rt)}return Math.abs(Ze-I)<mt?ut():(F?.(zt.value,st),Ee(),!1)},onDismiss(H){T?.set({swipeProgress:0,frontmostHeight:0});const oe=p.context.backdropRef.current;oe&&(oe.style.setProperty(Eo.swipeProgress,"0"),oe.style.removeProperty(Rn.height));const J=ct(yc,H);if(p.setOpen(!1,J),J.isCanceled){const X=U.current;X!==void 0&&F?.(X,ct(yc,H)),U.current=void 0,B.current?.(),Ee();return}if(p.select("open")){const X=H;Q.request(()=>{if(p.select("open")){const ve=U.current;ve!==void 0&&F?.(ve,ct(yc,X)),U.current=void 0,Ee(),B.current?.()}else U.current=void 0});return}U.current=void 0,ye(!0)}}),Oe=_e.getPointerProps(),Ce=_e.getTouchProps(),Le=_e.reset;B.current=Le,v.useEffect(()=>{const H=k??R;if(!H)return;const oe=H,J=Je(oe),X=Lt(J);function ve(we){if(W.current)return;const be=ne.current,Ne=we.touches[0];if(!Ne||!be)return;const qe=P?Ne.clientY-be.lastY:Ne.clientX-be.lastX;if(Sb(we,X)){be.allowSwipe=!1,Fi(be,Ne);return}if(we.touches.length===2){Fi(be,Ne);return}if(bb(J,oe)||!C||!E||N){Fi(be,Ne);return}if(IM(be,Ne,P)){Fi(be,Ne);return}const Be=be.scrollTarget;if(!Be||Be===J.documentElement||Be===J.body){we.cancelable&&we.preventDefault(),Fi(be,Ne);return}if(!UM(Be,z)){we.cancelable&&we.preventDefault(),Fi(be,Ne);return}const et=qe;if(et!==0){const Xe=HM(Be,z,h,et);be.allowSwipe?we.cancelable&&we.preventDefault():we.cancelable&&Xe?(be.allowSwipe=!0,we.preventDefault()):be.allowSwipe=!1}Fi(be,Ne)}return pt(J,"touchmove",ve,{passive:!1,capture:!0})},[E,N,C,R,P,z,h,k]),v.useEffect(()=>{if(!ie||_e.swiping)return;fe({resolvedProgress:!C||L?0:ce??0,shouldTrackProgress:!0,notifyParent:!1})},[fe,b,L,y,C,ce,ie,_e.swiping,p,T]),v.useEffect(()=>{if(y)return C||y(0),()=>{y(0)}},[y,C]),v.useEffect(()=>{C&&(Le(),Ee())},[Ee,C,Le]),v.useEffect(()=>()=>{T?.set({swipeProgress:0,frontmostHeight:0}),gb(p.context.backdropRef.current,!1),Me()},[Me,p,T]);const Re=v.useMemo(()=>({swiping:_e.swiping,getDragStyles:_e.getDragStyles,swipeStrength:_??null,setSwipeDismissed(H){mb(p.context.popupRef.current,p.context.backdropRef.current,H)}}),[p,_e.getDragStyles,_e.swiping,_]);function Ue(){W.current=!1,ne.current=null,V.current="",Y.current=!1}return D.jsx(z3,{ref:o,className:s,render:l,...no(f,{onPointerDown(H){if(V.current=H.pointerType,Y.current=H.pointerType==="pen",!C||!E||N)return;const oe=Je(H.currentTarget),J=Bc(oe,H.clientX,H.clientY);bh(J)||jM(J)||H.pointerType!=="touch"&&Oe.onPointerDown?.(H)},onPointerMove(H){H.pointerType!=="touch"&&Oe.onPointerMove?.(H)},onPointerUp(H){V.current===H.pointerType&&(V.current=""),H.pointerType!=="touch"&&Oe.onPointerUp?.(H)},onPointerCancel(H){V.current===H.pointerType&&(V.current=""),H.pointerType!=="touch"&&Oe.onPointerCancel?.(H)},onTouchStart(H){if(V.current==="pen"&&Y.current){Y.current=!1,W.current=!1,ne.current=null;return}if(!C||!E||N){W.current=!1,ne.current=null;return}const J=H.touches[0];if(!J)return;if(wb(H)){W.current=!1,ne.current=null;return}const X=Je(H.currentTarget),ve=Bc(X,J.clientX,J.clientY);if(W.current=bh(ve),W.current){ne.current=null;return}const we=k??R,be=Xt(H.nativeEvent),Ne=bt(be)?be:null;if(we&&Ne&&!Ie(we,Ne)){W.current=!0,ne.current=null;return}let qe=null,He=!1;we&&Ne&&(qe=As(Ne,we,z),He=As(Ne,we,K)!=null);let Be=null;qe&&(Be=VM(qe,z,h)?null:!1),ne.current={startX:J.clientX,startY:J.clientY,lastX:J.clientX,lastY:J.clientY,scrollTarget:qe,hasCrossAxisScrollableContent:He,allowSwipe:Be,preserveNativeCrossAxisScroll:!1},Ce.onTouchStart?.(H)},onTouchMove(H){if(W.current||wb(H))return;const oe=ne.current;oe?.preserveNativeCrossAxisScroll||oe?.allowSwipe===!1||oe?.scrollTarget!=null&&!oe.allowSwipe||Ce.onTouchMove?.(H)},onTouchEnd(H){Ue(),Ce.onTouchEnd?.(H)},onTouchCancel(H){Ue(),Ce.onTouchCancel?.(H)},"data-nested-dialog-open":void 0}),children:D.jsx(rb.Provider,{value:Re,children:u})})});function mb(e,n,o){if(o){e?.setAttribute(Zr.swipeDismiss,""),n?.setAttribute(Zr.swipeDismiss,"");return}e?.removeAttribute(Zr.swipeDismiss),n?.removeAttribute(Zr.swipeDismiss)}function gb(e,n){if(e){if(n){e.setAttribute(Zr.swiping,"");return}e.removeAttribute(Zr.swiping)}}function bh(e){return!!e?.closest(o0)}function jM(e){return!!e?.closest(NM)}function yb(e,n){const o=n==="left"||n==="right"?e.offsetWidth:e.offsetHeight;return Math.max(o*.5,gh)}function vb(e,n){return e instanceof n.HTMLInputElement&&e.type==="range"}function LM(e){return bt(e)?e.tagName==="INPUT"||e.tagName==="TEXTAREA":!1}function PM(e,n){const o=bt(e.anchorNode)?e.anchorNode:e.anchorNode?.parentElement,s=bt(e.focusNode)?e.focusNode:e.focusNode?.parentElement;return e.containsNode(n,!0)||Ie(n,o)||Ie(n,s)}function bb(e,n){const o=zn(e);if(!!(o&&Ie(n,o))&&LM(o)){const{selectionStart:c,selectionEnd:u}=o;if(c!=null&&u!=null&&c<u)return!0}const l=e.getSelection?.();return!l||l.isCollapsed?!1:PM(l,n)}function Sb(e,n){const o=e.composedPath();return o?o.some(s=>vb(s,n)):vb(Xt(e),n)}function wb(e){return Sb(e.nativeEvent,Lt(e.currentTarget))}function Fi(e,n){e.lastX=n.clientX,e.lastY=n.clientY}function IM(e,n,o){if(e.preserveNativeCrossAxisScroll)return!0;if(e.allowSwipe===!0||!e.hasCrossAxisScrollableContent)return!1;const s=o?n.clientY-e.startY:n.clientX-e.startX,l=o?n.clientX-e.startX:n.clientY-e.startY,c=Math.abs(s),u=Math.abs(l);return u<6||u<=c+2?!1:(e.preserveNativeCrossAxisScroll=!0,!0)}function UM(e,n){return n==="vertical"?e.scrollHeight>e.clientHeight:e.scrollWidth>e.clientWidth}function xb(e,n){if(n==="vertical"){const s=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:s}}const o=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:o}}function VM(e,n,o){const{offset:s,max:l}=xb(e,n),c=Eb(o,n);return c===null?!1:c?s<=0:s>=l}function HM(e,n,o,s){const{offset:l,max:c}=xb(e,n),u=Eb(o,n);return u===null||!(u?s>0:s<0)?!1:u?l<=0:l>=c}function Eb(e,n){return n==="vertical"?e==="down"?!0:e==="up"?!1:null:e==="right"?!0:e==="left"?!1:null}const FM=v.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});function BM(e=!1){const n=v.useContext(FM);if(!n&&!e)throw new Error(Jt(86));return n}const ZM=function(n){const o=hr(),s=n.controlId===void 0?o:n.controlId,[l,c]=v.useState(s),[u,f]=v.useState(n.labelId),[p,h]=v.useState([]),g=vn(()=>new Map),{messageIds:y}=xo(),b=Te((T,C)=>{const E=g.current;if(C===void 0){E.delete(T);return}E.set(T,C),c(L=>{if(E.size===0)return;let j;for(const k of E.values()){if(L!==void 0&&k===L)return L;j===void 0&&(j=k)}return j})}),S=v.useCallback(T=>no({"aria-describedby":y.concat(p).join(" ")||void 0},T),[y,p]),x=v.useMemo(()=>({controlId:l,registerControlId:b,labelId:u,setLabelId:f,messageIds:p,setMessageIds:h,getDescriptionProps:S}),[l,b,u,f,p,h,S]);return D.jsx(Zv.Provider,{value:x,children:n.children})};function Gc(e,n){return{...e,state:{...e.state,valid:!n&&e.state.valid}}}const Yc=Object.keys(Hc);function GM(e){if(!e||e.valid||!e.valueMissing)return!1;let n=!1;for(const o of Yc)o!=="valid"&&(o==="valueMissing"&&(n=e[o]),e[o]&&(n=!1));return n}function YM(e){const{formRef:n,clearErrors:o}=_s(),{setValidityData:s,validate:l,validityData:c,validationDebounceTime:u,invalid:f,markedDirtyRef:p,state:h,name:g,shouldValidateOnChange:y}=e,{controlId:b,getDescriptionProps:S}=xo(),x=ur(),T=v.useRef(null),C=Te(async(j,k=!1)=>{const R=T.current;if(!R)return;if(k){if(h.valid!==!1)return;const ee=R.validity;if(!ee.valueMissing){const I={value:j,state:{...Hc,valid:!0},error:"",errors:[],initialValue:c.initialValue};if(R.setCustomValidity(""),b){const _=n.current.fields.get(b);_&&n.current.fields.set(b,{..._,...Gc(I,!1)})}s(I);return}const F=Yc.reduce((I,_)=>(I[_]=ee[_],I),{});if(!F.valid&&!GM(F))return}function N(ee){const F=Yc.reduce((_,O)=>(_[O]=ee.validity[O],_),{});let I=!1;for(const _ of Yc)if(_!=="valid"){if(_==="valueMissing"&&F[_])I=!0;else if(F[_])return F}return I&&!p.current&&(F.valid=!0,F.valueMissing=!1),F}x.clear();let z=null,P=[];const K=N(R);let G;const q=y();if(R.validationMessage&&!q)G=R.validationMessage,P=[R.validationMessage];else{const ee=Array.from(n.current.fields.values()).reduce((I,_)=>(_.name&&(I[_.name]=_.getValue()),I),{}),F=l(j,ee);typeof F=="object"&&F!==null&&"then"in F?z=await F:z=F,z!==null?(K.valid=!1,K.customError=!0,Array.isArray(z)?(P=z,R.setCustomValidity(z.join(`
18
- `))):z&&(P=[z],R.setCustomValidity(z))):q&&(R.setCustomValidity(""),K.customError=!1,R.validationMessage?(G=R.validationMessage,P=[R.validationMessage]):R.validity.valid&&!K.valid&&(K.valid=!0))}const te={value:j,state:K,error:G??(Array.isArray(z)?z[0]:z??""),errors:P,initialValue:c.initialValue};if(b){const ee=n.current.fields.get(b);ee&&n.current.fields.set(b,{...ee,...Gc(te,f)})}s(te)}),E=v.useCallback((j={})=>no(S,h.valid===!1?{"aria-invalid":!0}:rn,j),[S,h.valid]),L=v.useCallback((j={})=>no({onChange(k){if(k.nativeEvent.defaultPrevented)return;if(o(g),!y()){C(k.currentTarget.value,!0);return}const R=k.currentTarget;if(R.value===""){C(R.value);return}x.clear(),u?x.start(u,()=>{C(R.value)}):C(R.value)}},E(j)),[E,o,g,x,C,u,y]);return v.useMemo(()=>({getValidationProps:E,getInputValidationProps:L,inputRef:T,commit:C}),[E,L,C])}function $M(e){const{commit:n,invalid:o,markedDirtyRef:s,name:l,setValidityData:c,validityData:u}=e,{formRef:f}=_s(),p=v.useRef(null),h=v.useRef(null),g=v.useRef(null),y=Te(()=>{const C=h.current;if(C)return C.getValue?C.getValue():C.value}),b=Te((C=!0)=>{const E=h.current;if(!E)return;let L=E.value;L===void 0&&(L=y()),s.current=!0,C?Cr.flushSync(()=>n(L)):n(L)});function S(){const C=h.current;!C||!C.id||f.current.fields.set(C.id,{getValue:y,name:l,controlRef:C.controlRef??g,validityData:Gc(u,o),validate:b})}function x(C=h.current?.id){C&&f.current.fields.delete(C)}function T(){const C=h.current;if(!C)return;let E=C.value;E===void 0&&(E=y()),u.initialValue===null&&E!==null&&c(L=>({...L,initialValue:E}))}return ke(()=>{const C=h.current;!C||!C.id||f.current.fields.set(C.id,{getValue:y,name:l,controlRef:C.controlRef??g,validityData:Gc(u,o),validate:b})},[f,y,o,l,b,u]),ke(()=>{const C=f.current.fields;return()=>{const E=h.current?.id;E&&C.delete(E)}},[f]),Te((C,E)=>{if(!E){p.current===C&&(p.current=null,x(),h.current=null);return}const L=h.current?.id;p.current=C,h.current=E,L&&L!==E.id&&x(L),T(),S()})}const qM=v.forwardRef(function(n,o){const{errors:s,validationMode:l,submitAttemptedRef:c}=_s(),{render:u,className:f,validate:p,validationDebounceTime:h=0,validationMode:g=l,name:y,disabled:b=!1,invalid:S,dirty:x,touched:T,actionsRef:C,style:E,...L}=n,{disabled:j}=BM(),k=Te(p||(()=>null)),R=j||b,[N,z]=v.useState(!1),[P,K]=v.useState(!1),[G,q]=v.useState(!1),[te,ee]=v.useState(!1),F=x??P,I=T??N,_=v.useRef(!1),O=Te(Me=>{x===void 0&&(Me&&(_.current=!0),K(Me))}),U=Te(Me=>{T===void 0&&z(Me)}),B=Te(()=>g==="onChange"||g==="onSubmit"&&c.current),Q=!!y&&Object.hasOwn(s,y)&&s[y]!==void 0,A=S===!0||Q,[V,Y]=v.useState({state:Hc,error:"",errors:[],value:null,initialValue:null}),W=!A&&V.state.valid,ne=v.useMemo(()=>({disabled:R,touched:I,dirty:F,valid:W,filled:G,focused:te}),[R,I,F,W,G,te]),ie=YM({setValidityData:Y,validate:k,validityData:V,validationDebounceTime:h,invalid:A,markedDirtyRef:_,state:ne,name:y,shouldValidateOnChange:B}),ce=v.useCallback(()=>{_.current=!0,ie.commit(V.value)},[ie,V]),de=$M({commit:ie.commit,invalid:A,markedDirtyRef:_,name:y,setValidityData:Y,validityData:V});v.useImperativeHandle(C,()=>({validate:ce}),[ce]);const ye=v.useMemo(()=>({invalid:A,name:y,validityData:V,setValidityData:Y,disabled:R,touched:I,setTouched:U,dirty:F,setDirty:O,filled:G,setFilled:q,focused:te,setFocused:ee,validate:k,validationMode:g,validationDebounceTime:h,shouldValidateOnChange:B,state:ne,markedDirtyRef:_,registerFieldControl:de,validation:ie}),[A,y,V,R,I,U,F,O,G,q,te,ee,k,g,h,B,ne,de,ie]),Ee=At("div",n,{ref:o,state:ne,props:L,stateAttributesMapping:Vi});return D.jsx(Fv.Provider,{value:ye,children:Ee})}),$a=v.forwardRef(function(n,o){return D.jsx(ZM,{children:D.jsx(qM,{...n,ref:o})})}),Tb=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,nativeLabel:f=!0,...p}=n,h=Hi(!1),{labelId:g}=xo(),y=v.useRef(null),b=J3({id:g??u,native:f});return At("label",n,{ref:[o,y],state:h.state,props:[b,p],stateAttributesMapping:Vi})}),XM={...Vi,...Or},Sh=v.forwardRef(function(n,o){const{render:s,id:l,className:c,match:u,style:f,...p}=n,h=hr(l),{validityData:g,state:y,name:b}=Hi(!1),{setMessageIds:S}=xo(),{errors:x}=_s(),T=b?x[b]:null,C=typeof u=="string";let E=!1;u===!0?E=!0:C?E=!!g.state[u]:E=!!T||g.state.valid===!1;const{mounted:L,transitionStatus:j,setMounted:k}=Va(E);ke(()=>{if(!(!E||!h))return S(I=>I.concat(h)),()=>{S(I=>I.filter(_=>_!==h))}},[E,h,S]);const R=v.useRef(null),[N,z]=v.useState(null),[P,K]=v.useState(null),G=g.errors.length>1?D.jsx("ul",{children:g.errors.map(I=>D.jsx("li",{children:I},I))}):g.error,q=C?G:T||G;let te=g.error;T!=null?te=Array.isArray(T)?JSON.stringify(T):T:g.errors.length>1&&(te=JSON.stringify(g.errors)),E&&te!==P&&(K(te),z(q)),ro({open:E,ref:R,onComplete(){E||k(!1)}});const ee={...y,transitionStatus:j},F=At("div",n,{ref:[o,R],state:ee,props:[{id:h,children:E?q:N},p],stateAttributesMapping:XM,enabled:L});return L?F:null}),wh=v.forwardRef(function(n,o){const{render:s,className:l,id:c,name:u,value:f,disabled:p=!1,onValueChange:h,defaultValue:g,autoFocus:y=!1,style:b,...S}=n,{state:x,name:T,disabled:C,setTouched:E,setDirty:L,validityData:j,setFocused:k,setFilled:R,validationMode:N,validation:z}=Hi(),P=C||p,K=T??u,G={...x,disabled:P},{labelId:q}=xo(),te=dh({id:c});ke(()=>{const B=f!=null;z.inputRef.current?.value||B&&f!==""?R(!0):B&&f===""&&R(!1)},[z.inputRef,R,f]);const ee=v.useRef(null);ke(()=>{y&&ee.current===zn(Je(ee.current))&&k(!0)},[y,k]);const[F]=Za({controlled:f,default:g,name:"FieldControl",state:"value"}),I=f!==void 0,_=I?F:void 0,O=Te(()=>z.inputRef.current?.value);return fh(z.inputRef,{id:te,value:_,getValue:O}),At("input",n,{ref:[o,ee],state:G,props:[{id:te,disabled:P,name:K,ref:z.inputRef,"aria-labelledby":q,autoFocus:y,...I?{value:_}:{defaultValue:g},onChange(B){const Q=B.currentTarget.value;h?.(Q,ct(ki,B.nativeEvent)),L(Q!==j.initialValue),R(Q!=="")},onFocus(){k(!0)},onBlur(B){E(!0),k(!1),N==="onBlur"&&z.commit(B.currentTarget.value)},onKeyDown(B){B.currentTarget.tagName==="INPUT"&&B.key==="Enter"&&(E(!0),z.commit(B.currentTarget.value))}},z.getInputValidationProps(),S],stateAttributesMapping:Vi})}),$c=v.forwardRef(function(n,o){const{render:s,className:l,validationMode:c="onSubmit",errors:u,onSubmit:f,onFormSubmit:p,actionsRef:h,style:g,...y}=n,b=v.useRef({fields:new Map}),S=v.useRef(!1),x=v.useRef(!1),T=Te(N=>{N&&(N.focus(),N.tagName==="INPUT"&&N.select())}),[C,E]=v.useState(u);Vc(u,()=>{E(u)}),v.useEffect(()=>{if(!S.current)return;S.current=!1;const N=Array.from(b.current.fields.values()).filter(z=>z.validityData.state.valid===!1);N.length&&T(N[0].controlRef.current)},[C,T]);const L=v.useCallback(N=>{const z=Array.from(b.current.fields.values());if(N){const P=z.find(K=>K.name===N);P&&P.validate(!1)}else z.forEach(P=>{P.validate(!1)})},[]);v.useImperativeHandle(h,()=>({validate:L}),[L]);const j=At("form",n,{ref:o,props:[{noValidate:!0,onSubmit(N){x.current=!0;let z=Array.from(b.current.fields.values());z.forEach(K=>{K.validate()}),z=Array.from(b.current.fields.values());const P=z.filter(K=>!K.validityData.state.valid);if(P.length)N.preventDefault(),T(P[0].controlRef.current);else if(S.current=!0,f?.(N),p){N.preventDefault();const K=z.reduce((G,q)=>(q.name&&(G[q.name]=q.getValue()),G),{});p(K,v_(ki,N.nativeEvent))}}},y]}),k=Te(N=>{if(N&&C&&rn.hasOwnProperty.call(C,N)){const z={...C};delete z[N],E(z)}}),R=v.useMemo(()=>({formRef:b,validationMode:c,errors:C??rn,clearErrors:k,submitAttemptedRef:x}),[b,c,C,k]);return D.jsx(Bv.Provider,{value:R,children:j})}),Cb=v.createContext(void 0);function To(e){const n=v.useContext(Cb);if(n===void 0&&!e)throw new Error(Jt(47));return n}function QM(){return{...G0(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}const KM={...Y0,disabled:Ae(e=>e.disabled),instantType:Ae(e=>e.instantType),openMethod:Ae(e=>e.openMethod),openChangeReason:Ae(e=>e.openChangeReason),modal:Ae(e=>e.modal),focusManagerModal:Ae(e=>e.focusManagerModal),stickIfOpen:Ae(e=>e.stickIfOpen),titleElementId:Ae(e=>e.titleElementId),descriptionElementId:Ae(e=>e.descriptionElementId),openOnHover:Ae(e=>e.openOnHover),closeDelay:Ae(e=>e.closeDelay),hasViewport:Ae(e=>e.hasViewport)};class xh extends Jl{constructor(n){const o={...QM(),...n};o.open&&n?.mounted===void 0&&(o.mounted=!0),super(o,{popupRef:v.createRef(),backdropRef:v.createRef(),internalBackdropRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:v.createRef(),beforeContentFocusGuardRef:v.createRef(),stickIfOpenTimeout:new cr,triggerElements:new Cc},KM)}setOpen=(n,o)=>{const s=o.reason===Yn,l=o.reason===xs&&o.event.detail===0,c=!n&&(o.reason===u0||o.reason==null);if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const u=()=>{const f={open:n,openChangeReason:o.reason},p=o.trigger?.id??null;(p||n)&&(f.activeTriggerId=p,f.activeTriggerElement=o.trigger??null),this.update(f)};s?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(YO,()=>{this.set("stickIfOpen",!1)}),Cr.flushSync(u)):u(),l||c?this.set("instantType",l?"click":"dismiss"):o.reason===ji?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(n,o){const s=vn(()=>new xh(o)).current,l=n??s;return _a(s.disposeEffect),l}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}function Rb({props:e}){const{children:n,open:o,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:c,modal:u=!1,handle:f,triggerId:p,defaultTriggerId:h=null}=e,g=xh.useStore(f?.store,{modal:u,open:s,openProp:o,activeTriggerId:h,triggerIdProp:p});eh(()=>{o===void 0&&g.state.open===!1&&s===!0&&g.update({open:!0,activeTriggerId:h})}),g.useControlledProp("openProp",o),g.useControlledProp("triggerIdProp",p);const y=g.useState("open"),b=g.useState("payload");g.useContextCallback("onOpenChange",l),g.useContextCallback("onOpenChangeComplete",c);const{openMethod:S,triggerProps:x}=th(y);B0(g);const{forceUnmount:T}=Z0(y,g,()=>{g.update({stickIfOpen:!0,openChangeReason:null})});v.useEffect(()=>{y||g.context.stickIfOpenTimeout.clear()},[g,y]);const C=v.useCallback(()=>{g.setOpen(!1,ct(f0))},[g]);v.useImperativeHandle(e.actionsRef,()=>({unmount:T,close:C}),[T,C]);const E=q0({popupStore:g,onOpenChange:g.setOpen}),L=Zd(E,{outsidePressEvent:{mouse:u==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),j=W0(E),{getReferenceProps:k,getFloatingProps:R,getTriggerProps:N}=Ha([L,j]),z=v.useMemo(()=>k(x),[k,x]),P=v.useMemo(()=>N(x),[N,x]),K=v.useMemo(()=>R(),[R]);g.useSyncedValues({modal:u,openMethod:S,activeTriggerProps:z,inactiveTriggerProps:P,popupProps:K,floatingRootContext:E,nested:ei()!=null});const G=v.useMemo(()=>({store:g}),[g]);return D.jsx(Cb.Provider,{value:G,children:typeof n=="function"?n({payload:b}):n})}function WM(e){return To(!0)?D.jsx(Rb,{props:e}):D.jsx(R_,{children:D.jsx(Rb,{props:e})})}const JM=300,e4=v.forwardRef(function(n,o){const{render:s,className:l,disabled:c=!1,nativeButton:u=!0,handle:f,payload:p,openOnHover:h=!1,delay:g=JM,closeDelay:y=0,id:b,style:S,...x}=n,T=To(!0),C=f?.store??T?.store;if(!C)throw new Error(Jt(74));const E=hr(b),L=C.useState("isTriggerActive",E),j=C.useState("floatingRootContext"),k=C.useState("isOpenedByTrigger",E),R=v.useRef(null),{registerTrigger:N,isMountedByThisTrigger:z}=F0(E,R,C,{payload:p,disabled:c,openOnHover:h,closeDelay:y}),P=C.useState("openChangeReason"),K=C.useState("stickIfOpen"),G=C.useState("openMethod"),q=C.useState("focusManagerModal"),te=CA(j,{enabled:j!=null&&h&&(G!=="touch"||P!==xs),mouseOnly:!0,move:!1,handleClose:kA(),restMs:g,delay:{close:y},triggerElementRef:R,isActiveTrigger:L,isClosing:()=>C.select("transitionStatus")==="ending"}),ee=Bd(j,{enabled:j!=null,stickIfOpen:K}),F=Ha([ee]),I=C.useState("triggerProps",z),_={disabled:c,open:k},{getButtonProps:O,buttonRef:U}=ws({disabled:c,native:u}),B=v.useMemo(()=>({open(W){return W&&P===xs?sv.open(W):iv.open(W)}}),[P]),Q=At("button",n,{state:_,ref:[U,o,N,R],props:[F.getReferenceProps(),te,I,{[Md]:"",id:E},x,O],stateAttributesMapping:B}),{preFocusGuardRef:A,handlePreFocusGuardFocus:V,handleFocusTargetFocus:Y}=nM(C,R);return L&&!q?D.jsxs(v.Fragment,{children:[D.jsx(bo,{ref:A,onFocus:V}),D.jsx(v.Fragment,{children:Q},E),D.jsx(bo,{ref:C.context.triggerFocusTargetRef,onFocus:Y})]}):D.jsx(v.Fragment,{children:Q},E)}),Ob=v.createContext(void 0);function t4(){const e=v.useContext(Ob);if(e===void 0)throw new Error(Jt(45));return e}const n4=v.forwardRef(function(n,o){const{keepMounted:s=!1,...l}=n,{store:c}=To();return c.useState("mounted")||s?D.jsx(Ob.Provider,{value:s,children:D.jsx(Vd,{ref:o,...l})}):null}),_b=v.createContext(void 0);function Ab(){const e=v.useContext(_b);if(!e)throw new Error(Jt(46));return e}const r4=v.forwardRef(function(n,o){const{render:s,className:l,anchor:c,positionMethod:u="absolute",side:f="bottom",align:p="center",sideOffset:h=0,alignOffset:g=0,collisionBoundary:y="clipping-ancestors",collisionPadding:b=5,arrowPadding:S=5,sticky:x=!1,disableAnchorTracking:T=!1,collisionAvoidance:C=WO,style:E,...L}=n,{store:j}=To(),k=t4(),R=T_(),N=j.useState("floatingRootContext"),z=j.useState("mounted"),P=j.useState("open"),K=j.useState("openChangeReason"),G=j.useState("activeTriggerElement"),q=j.useState("modal"),te=j.useState("openMethod"),ee=j.useState("positionerElement"),F=j.useState("instantType"),I=j.useState("transitionStatus"),_=j.useState("hasViewport"),O=v.useRef(null),U=r0(ee,!1,!1),B=rv({anchor:c,floatingRootContext:N,positionMethod:u,mounted:z,side:f,sideOffset:h,align:p,alignOffset:g,arrowPadding:S,collisionBoundary:y,collisionPadding:b,sticky:x,disableAnchorTracking:T,keepMounted:k,nodeId:R,collisionAvoidance:C,adaptiveOrigin:_?VA:void 0}),Q=N.useState("domReferenceElement");ke(()=>{const W=Q,ne=O.current;if(W&&(O.current=W),ne&&W&&W!==ne){j.set("instantType",void 0);const ie=new AbortController;return U(()=>{j.set("instantType","trigger-change")},ie.signal),()=>{ie.abort()}}},[Q,U,j]);const A={open:P,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:F};Gv(P&&q===!0&&K!==Yn,te==="touch",ee,G);const V=v.useCallback(W=>{j.set("positionerElement",W)},[j]),Y=av(n,A,{styles:B.positionerStyles,transitionStatus:I,props:L,refs:[o,V],hidden:!z,inert:!P});return D.jsxs(_b.Provider,{value:B,children:[z&&q===!0&&K!==Yn&&D.jsx(sh,{ref:j.context.internalBackdropRef,inert:gc(!P),cutout:G}),D.jsx(C_,{id:R,children:Y})]})}),o4=v.createContext(void 0);function i4(){const[e,n]=v.useState(0),o=Te(()=>(n(l=>l+1),()=>{n(l=>Math.max(0,l-1))}));return{context:v.useMemo(()=>({register:o}),[o]),hasClosePart:e>0}}function s4(e){const{value:n,children:o}=e;return D.jsx(o4.Provider,{value:n,children:o})}const a4={...oo,...Or},l4=v.forwardRef(function(n,o){const{className:s,render:l,initialFocus:c,finalFocus:u,style:f,...p}=n,{store:h}=To(),g=Ab(),y=Kv()!=null,{context:b,hasClosePart:S}=i4(),x=h.useState("open"),T=h.useState("openMethod"),C=h.useState("instantType"),E=h.useState("transitionStatus"),L=h.useState("popupProps"),j=h.useState("titleElementId"),k=h.useState("descriptionElementId"),R=h.useState("modal"),N=h.useState("mounted"),z=h.useState("openChangeReason"),P=h.useState("activeTriggerElement"),K=h.useState("floatingRootContext");ro({open:x,ref:h.context.popupRef,onComplete(){x&&h.context.onOpenChangeComplete?.(!0)}});const G=h.useState("disabled"),q=h.useState("openOnHover"),te=h.useState("closeDelay");EA(K,{enabled:q&&!G,closeDelay:te});function ee(B){return B==="touch"?h.context.popupRef.current:!0}const F=c===void 0?ee:c,I={open:x,side:g.side,align:g.align,instant:C,transitionStatus:E},_=R!==!1&&S;h.useSyncedValue("focusManagerModal",_);const O=v.useCallback(B=>{h.set("popupElement",B)},[h]),U=At("div",n,{state:I,ref:[o,h.context.popupRef,O],props:[L,{"aria-labelledby":j,"aria-describedby":k,onKeyDown(B){y&&Uc.has(B.key)&&B.stopPropagation()}},Wd(E),p],stateAttributesMapping:a4});return D.jsx(wc,{context:K,openInteractionType:T,modal:_,disabled:!N||z===Yn,initialFocus:F,returnFocus:u,restoreFocus:"popup",previousFocusableElement:Zt(P)?P:void 0,nextFocusableElement:h.context.triggerFocusTargetRef,beforeContentFocusGuardRef:h.context.beforeContentFocusGuardRef,children:D.jsx(s4,{value:b,children:U})})}),c4=v.forwardRef(function(n,o){const{className:s,render:l,style:c,...u}=n,{store:f}=To(),p=f.useState("open"),{arrowRef:h,side:g,align:y,arrowUncentered:b,arrowStyles:S}=Ab();return At("div",n,{state:{open:p,side:g,align:y,uncentered:b},ref:[o,h],props:[{style:S,"aria-hidden":!0},u],stateAttributesMapping:oo})}),u4={...oo,...Or},f4=v.forwardRef(function(n,o){const{className:s,render:l,style:c,...u}=n,{store:f}=To(),p=f.useState("open"),h=f.useState("mounted"),g=f.useState("transitionStatus"),y=f.useState("openChangeReason");return At("div",n,{state:{open:p,transitionStatus:g},ref:[f.context.backdropRef,o],props:[{role:"presentation",hidden:!h,style:{pointerEvents:y===Yn?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},u],stateAttributesMapping:u4})}),d4=v.forwardRef(function(n,o){const{render:s,className:l,style:c,...u}=n,{store:f}=To(),p=hr(u.id);return ke(()=>(f.set("titleElementId",p),()=>{f.set("titleElementId",void 0)}),[f,p]),At("h2",n,{ref:o,props:[{id:p},u]})}),h4=v.forwardRef(function(n,o){const{render:s,className:l,style:c,...u}=n,{store:f}=To(),p=hr(u.id);return ke(()=>(f.set("descriptionElementId",p),()=>{f.set("descriptionElementId",void 0)}),[f,p]),At("p",n,{ref:o,props:[{id:p},u]})}),qc="base-ui-disable-scrollbar",Mb={className:qc,getElement(e){return D.jsx("style",{nonce:e,href:qc,precedence:"base-ui:low",children:`.${qc}{scrollbar-width:none}.${qc}::-webkit-scrollbar{display:none}`})}},Co=1;function Db(e,n){return Math.max(0,e-n)}function p4(e,n){if(n<=0)return 0;const o=hn(e,0,n),s=o,l=n-o,c=s<=Co,u=l<=Co;return c&&u?s<=l?0:n:c?0:u?n:o}const zb=v.createContext(null),Nb=v.createContext(null);function Ms(){const e=v.useContext(zb);if(e===null)throw new Error(Jt(60));return e}function kb(){const e=v.useContext(Nb);if(e===null)throw new Error(Jt(61));return e}const wt={id:Ae(e=>e.id),labelId:Ae(e=>e.labelId),modal:Ae(e=>e.modal),multiple:Ae(e=>e.multiple),items:Ae(e=>e.items),itemToStringLabel:Ae(e=>e.itemToStringLabel),itemToStringValue:Ae(e=>e.itemToStringValue),isItemEqualToValue:Ae(e=>e.isItemEqualToValue),value:Ae(e=>e.value),hasSelectedValue:Ae(e=>{const{value:n,multiple:o,itemToStringValue:s}=e;return n==null?!1:o&&Array.isArray(n)?n.length>0:Os(n,s)!==""}),hasNullItemLabel:Ae((e,n)=>n?P3(e.items):!1),open:Ae(e=>e.open),mounted:Ae(e=>e.mounted),forceMount:Ae(e=>e.forceMount),transitionStatus:Ae(e=>e.transitionStatus),openMethod:Ae(e=>e.openMethod),activeIndex:Ae(e=>e.activeIndex),selectedIndex:Ae(e=>e.selectedIndex),isActive:Ae((e,n)=>e.activeIndex===n),isSelected:Ae((e,n,o)=>{const s=e.isItemEqualToValue,l=e.value;return e.multiple?Array.isArray(l)&&l.some(c=>Rs(o,c,s)):e.selectedIndex===n&&e.selectedIndex!==null?!0:Rs(o,l,s)}),isSelectedByFocus:Ae((e,n)=>e.selectedIndex===n),popupProps:Ae(e=>e.popupProps),triggerProps:Ae(e=>e.triggerProps),triggerElement:Ae(e=>e.triggerElement),positionerElement:Ae(e=>e.positionerElement),listElement:Ae(e=>e.listElement),scrollUpArrowVisible:Ae(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:Ae(e=>e.scrollDownArrowVisible),hasScrollArrows:Ae(e=>e.hasScrollArrows)};function m4(e){const{id:n,value:o,defaultValue:s=null,onValueChange:l,open:c,defaultOpen:u=!1,onOpenChange:f,name:p,form:h,autoComplete:g,disabled:y=!1,readOnly:b=!1,required:S=!1,modal:x=!0,actionsRef:T,inputRef:C,onOpenChangeComplete:E,items:L,multiple:j=!1,itemToStringLabel:k,itemToStringValue:R,isItemEqualToValue:N=N3,highlightItemOnHover:z=!0,children:P}=e,{clearErrors:K}=_s(),{setDirty:G,setTouched:q,setFocused:te,shouldValidateOnChange:ee,validityData:F,setFilled:I,name:_,disabled:O,validation:U,validationMode:B}=Hi(),Q=dh({id:n}),A=O||y,V=_??p,[Y,W]=Za({controlled:o,default:j?s??gy:s,name:"Select",state:"value"}),[ne,ie]=Za({controlled:c,default:u,name:"Select",state:"open"}),ce=v.useRef([]),de=v.useRef([]),ye=v.useRef(null),Ee=v.useRef(null),Me=v.useRef(0),fe=v.useRef(null),ze=v.useRef([]),De=v.useRef(!1),_e=v.useRef(!1),Oe=v.useRef(null),Ce=v.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Le=v.useRef(!1),{mounted:Re,setMounted:Ue,transitionStatus:H}=Va(ne),{openMethod:oe,triggerProps:J}=th(ne),X=vn(()=>new my({id:Q,labelId:void 0,modal:x,multiple:j,itemToStringLabel:k,itemToStringValue:R,isItemEqualToValue:N,value:Y,open:ne,mounted:Re,transitionStatus:H,items:L,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ve=St(X,wt.activeIndex),we=St(X,wt.selectedIndex),be=St(X,wt.triggerElement),Ne=St(X,wt.positionerElement),qe=rM(oe),He=oe??qe,Be=v.useMemo(()=>j&&Array.isArray(Y)&&Y.length===0?"":Os(Y,R),[j,Y,R]),$e=v.useMemo(()=>j&&Array.isArray(Y)?Y.map(Ge=>Os(Ge,R)):Os(Y,R),[j,Y,R]),et=dn(X.state.triggerElement),Xe=Te(()=>$e);fh(et,{id:Q,value:Y,getValue:Xe});const We=v.useRef(Y);ke(()=>{Y!==We.current&&X.set("forceMount",!0)},[X,Y]),ke(()=>{I(j?Array.isArray(Y)&&Y.length>0:Y!=null)},[j,Y,I]),ke(function(){if(ne)return;const Fe=ze.current;if(j){const nt=Array.isArray(Y)?Y:[];if(nt.length===0){X.set("selectedIndex",null);return}const ht=nt[nt.length-1],Qe=Ga(Fe,ht,N);X.set("selectedIndex",Qe===-1?null:Qe);return}const tt=Ga(Fe,Y,N);X.set("selectedIndex",tt===-1?null:tt)},[j,ne,Y,ze,N,X]),Vc(Y,()=>{K(V),G(Y!==F.initialValue),ee()?U.commit(Y):U.commit(Y,!0)});const dt=Te((Ge,Fe)=>{if(f?.(Ge,Fe),!Fe.isCanceled&&(ie(Ge),!Ge&&(Fe.reason===ji||Fe.reason===Nd)&&(q(!0),te(!1),B==="onBlur"&&U.commit(Y)),!Ge&&X.state.activeIndex!==null)){const tt=ce.current[X.state.activeIndex];queueMicrotask(()=>{tt?.setAttribute("tabindex","-1")})}}),jt=Te(()=>{Ue(!1),X.update({activeIndex:null,openMethod:null}),E?.(!1)});ro({enabled:!T,open:ne,ref:ye,onComplete(){ne||jt()}}),v.useImperativeHandle(T,()=>({unmount:jt}),[jt]);const rt=Te((Ge,Fe)=>{l?.(Ge,Fe),!Fe.isCanceled&&W(Ge)}),Ze=Te(()=>{const Ge=X.state.listElement||ye.current;if(!Ge)return;const Fe=Db(Ge.scrollHeight,Ge.clientHeight),tt=p4(Ge.scrollTop,Fe),nt=tt>0,ht=tt<Fe;X.state.scrollUpArrowVisible!==nt&&X.set("scrollUpArrowVisible",nt),X.state.scrollDownArrowVisible!==ht&&X.set("scrollDownArrowVisible",ht)}),st=$0({open:ne,onOpenChange:dt,elements:{reference:be,floating:Ne}}),ut=Bd(st,{enabled:!b&&!A,event:"mousedown"}),zt=Zd(st,{bubbles:!1}),mt=AA(st,{enabled:!b&&!A,listRef:ce,activeIndex:ve,selectedIndex:we,disabledIndices:gy,onNavigate(Ge){Ge===null&&!ne||X.set("activeIndex",Ge)},focusItemOnHover:z}),wn=DA(st,{enabled:!b&&!A&&(ne||!j),listRef:de,activeIndex:ve,selectedIndex:we,onMatch(Ge){ne?X.set("activeIndex",Ge):rt(ze.current[Ge],ct("none"))},onTypingChange(Ge){De.current=Ge}}),{getReferenceProps:cn,getFloatingProps:Rt,getItemProps:he}=Ha([ut,zt,mt,wn]),xe=v.useMemo(()=>no(cn(),J,Q?{id:Q}:rn),[cn,J,Q]);eh(()=>{X.update({popupProps:Rt(),triggerProps:xe})}),ke(()=>{X.update({id:Q,modal:x,multiple:j,value:Y,open:ne,mounted:Re,transitionStatus:H,popupProps:Rt(),triggerProps:xe,items:L,itemToStringLabel:k,itemToStringValue:R,isItemEqualToValue:N,openMethod:He})},[X,Q,x,j,Y,ne,Re,H,Rt,xe,L,k,R,N,He]);const je=v.useMemo(()=>({store:X,name:V,required:S,disabled:A,readOnly:b,multiple:j,highlightItemOnHover:z,setValue:rt,setOpen:dt,listRef:ce,popupRef:ye,scrollHandlerRef:Ee,handleScrollArrowVisibility:Ze,scrollArrowsMountedCountRef:Me,getItemProps:he,events:st.context.events,valueRef:fe,valuesRef:ze,labelsRef:de,typingRef:De,selectionRef:Ce,selectedItemTextRef:Oe,validation:U,onOpenChangeComplete:E,keyboardActiveRef:_e,alignItemWithTriggerActiveRef:Le,initialValueRef:We}),[X,V,S,A,b,j,z,rt,dt,he,st.context.events,U,E,Ze]),at=Di(C,U.inputRef),ft=j&&Array.isArray(Y)&&Y.length>0,ot=j?void 0:V,_t=v.useMemo(()=>!j||!Array.isArray(Y)||!V?null:Y.map(Ge=>{const Fe=Os(Ge,R);return D.jsx("input",{type:"hidden",form:h,name:V,value:Fe},Fe)}),[j,Y,h,V,R]);return D.jsx(zb.Provider,{value:je,children:D.jsxs(Nb.Provider,{value:st,children:[P,D.jsx("input",{...U.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(Ge){if(Ge.nativeEvent.defaultPrevented)return;const Fe=Ge.currentTarget.value,tt=ct(ki,Ge.nativeEvent);function nt(){if(j)return;const ht=ze.current.find(Qe=>Os(Qe,R).toLowerCase()===Fe.toLowerCase()||I3(Qe,k).toLowerCase()===Fe.toLowerCase());ht!=null&&(G(ht!==F.initialValue),rt(ht,tt),ee()&&U.commit(ht))}X.set("forceMount",!0),queueMicrotask(nt)}}),id:Q&&ot==null?`${Q}-hidden-input`:void 0,form:h,name:ot,autoComplete:g,value:Be,disabled:A,required:S&&!ft,readOnly:b,ref:at,style:V?$y:hc,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),_t]})})}const Xc=2,g4=400,jb=200,y4={...sv,...Vi,value:()=>null},v4=v.forwardRef(function(n,o){const{render:s,className:l,id:c,disabled:u=!1,nativeButton:f=!0,style:p,...h}=n,{setTouched:g,setFocused:y,validationMode:b,state:S,disabled:x}=Hi(),{labelId:T}=xo(),{store:C,setOpen:E,selectionRef:L,validation:j,readOnly:k,required:R,alignItemWithTriggerActiveRef:N,disabled:z,keyboardActiveRef:P}=Ms(),K=x||z||u,G=St(C,wt.open),q=St(C,wt.value),te=St(C,wt.triggerProps),ee=St(C,wt.positionerElement),F=St(C,wt.listElement),I=St(C,wt.id),_=St(C,wt.labelId),O=St(C,wt.hasSelectedValue),U=!O&&G,B=St(C,wt.hasNullItemLabel,U),Q=c??I,A=H3(T,_);dh({id:Q});const V=dn(ee),Y=v.useRef(null),{getButtonProps:W,buttonRef:ne}=ws({disabled:K,native:f}),ie=Te(_e=>{C.set("triggerElement",_e)}),ce=Di(o,Y,ne,ie),de=ur(),ye=ur(),Ee=ur(),Me=ur();v.useEffect(()=>{if(G)return!(O||B)?Ee.start(g4,()=>{L.current.allowUnselectedMouseUp=!0,L.current.allowSelectedMouseUp=!0}):Me.start(jb,()=>{L.current.allowUnselectedMouseUp=!0,Ee.start(jb,()=>{L.current.allowSelectedMouseUp=!0})}),()=>{Ee.clear(),Me.clear()};L.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},ye.clear()},[G,O,B,L,ye,Ee,Me]);const fe=v.useMemo(()=>F?.id??Na(ee)?.id,[F,ee]),ze=no(te,{id:Q,role:"combobox","aria-expanded":G?"true":"false","aria-haspopup":"listbox","aria-controls":G?fe:void 0,"aria-labelledby":A,"aria-readonly":k||void 0,"aria-required":R||void 0,tabIndex:K?-1:0,ref:ce,onFocus(_e){y(!0),G&&N.current&&E(!1,ct(ki,_e.nativeEvent)),de.start(0,()=>{C.set("forceMount",!0)})},onBlur(_e){Ie(ee,_e.relatedTarget)||(g(!0),y(!1),b==="onBlur"&&j.commit(q))},onPointerMove(){P.current=!1},onKeyDown(){P.current=!0},onMouseDown(_e){if(G)return;const Oe=Je(_e.currentTarget);function Ce(Le){if(!Y.current)return;const Re=Le.target;if(Ie(Y.current,Re)||Ie(V.current,Re)||Re===Y.current)return;const Ue=V3(Y.current);Le.clientX>=Ue.left-Xc&&Le.clientX<=Ue.right+Xc&&Le.clientY>=Ue.top-Xc&&Le.clientY<=Ue.bottom+Xc||E(!1,ct(g_,Le))}ye.start(0,()=>{Oe.addEventListener("mouseup",Ce,{once:!0})})}},j.getValidationProps,h,W);ze.role="combobox";const De={...S,open:G,disabled:K,value:q,readOnly:k,placeholder:!O};return At("button",n,{ref:[o,Y],state:De,stateAttributesMapping:y4,props:ze})}),b4=v.createContext(void 0),S4=v.forwardRef(function(n,o){const{store:s}=Ms(),l=St(s,wt.mounted),c=St(s,wt.forceMount);return l||c?D.jsx(b4.Provider,{value:!0,children:D.jsx(Vd,{ref:o,...n})}):null}),Lb=v.createContext(void 0);function w4(){const e=v.useContext(Lb);if(!e)throw new Error(Jt(59));return e}function Qc(e,n){e&&Object.assign(e.style,n)}const x4={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},E4={position:"fixed"},T4=v.forwardRef(function(n,o){const{anchor:s,positionMethod:l="absolute",className:c,render:u,side:f="bottom",align:p="center",sideOffset:h=0,alignOffset:g=0,collisionBoundary:y="clipping-ancestors",collisionPadding:b,arrowPadding:S=5,sticky:x=!1,disableAnchorTracking:T,alignItemWithTrigger:C=!0,collisionAvoidance:E=KO,style:L,...j}=n,{store:k,listRef:R,labelsRef:N,alignItemWithTriggerActiveRef:z,selectedItemTextRef:P,valuesRef:K,initialValueRef:G,popupRef:q,setValue:te}=Ms(),ee=kb(),F=St(k,wt.open),I=St(k,wt.mounted),_=St(k,wt.modal),O=St(k,wt.value),U=St(k,wt.openMethod),B=St(k,wt.positionerElement),Q=St(k,wt.triggerElement),A=St(k,wt.isItemEqualToValue),V=St(k,wt.transitionStatus),Y=v.useRef(null),W=v.useRef(null),[ne,ie]=v.useState(C),ce=I&&ne&&U!=="touch";!I&&ne!==C&&ie(C),ke(()=>{I||(wt.scrollUpArrowVisible(k.state)&&k.set("scrollUpArrowVisible",!1),wt.scrollDownArrowVisible(k.state)&&k.set("scrollDownArrowVisible",!1))},[k,I]),v.useImperativeHandle(z,()=>ce),Gv((ce||_)&&F,U==="touch",B,Q);const de=rv({anchor:s,floatingRootContext:ee,positionMethod:l,mounted:I,side:f,sideOffset:h,align:p,alignOffset:g,arrowPadding:S,collisionBoundary:y,collisionPadding:b,sticky:x,disableAnchorTracking:T??ce,collisionAvoidance:E,keepMounted:!0}),ye=ce?"none":de.side,Ee=ce?E4:de.positionerStyles,Me={open:F,side:ye,align:de.align,anchorHidden:de.anchorHidden},fe=Te(Ce=>{k.set("positionerElement",Ce)}),ze=av(n,Me,{styles:Ee,transitionStatus:V,props:j,refs:[o,fe],hidden:!I,inert:!F}),De=v.useRef(0),_e=Te(Ce=>{if(Ce.size===0&&De.current===0||K.current.length===0)return;const Le=De.current;if(De.current=Ce.size,Ce.size===Le)return;const Re=ct(ki);if(Le!==0&&!k.state.multiple&&O!==null&&Ga(K.current,O,A)===-1){const H=G.current,J=H!=null&&Ga(K.current,H,A)!==-1?H:null;te(J,Re),J===null&&(k.set("selectedIndex",null),P.current=null)}if(Le!==0&&k.state.multiple&&Array.isArray(O)){const Ue=oe=>Ga(K.current,oe,A)!==-1,H=O.filter(oe=>Ue(oe));(H.length!==O.length||H.some(oe=>!k3(O,oe,A)))&&(te(H,Re),H.length===0&&(k.set("selectedIndex",null),P.current=null))}if(F&&ce){k.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Ue={height:""};Qc(B,Ue),Qc(q.current,Ue)}}),Oe=v.useMemo(()=>({...de,side:ye,alignItemWithTriggerActive:ce,setControlledAlignItemWithTrigger:ie,scrollUpArrowRef:Y,scrollDownArrowRef:W}),[de,ye,ce,ie]);return D.jsx(c3,{elementsRef:R,labelsRef:N,onMapChange:_e,children:D.jsxs(Lb.Provider,{value:Oe,children:[I&&_&&D.jsx(sh,{inert:gc(!F),cutout:Q}),ze]})})}),C4={...oo,...Or},R4=v.forwardRef(function(n,o){const{render:s,className:l,style:c,finalFocus:u,...f}=n,{store:p,popupRef:h,onOpenChangeComplete:g,setOpen:y,valueRef:b,selectedItemTextRef:S,keyboardActiveRef:x,multiple:T,handleScrollArrowVisibility:C,scrollHandlerRef:E,listRef:L,highlightItemOnHover:j}=Ms(),{side:k,align:R,alignItemWithTriggerActive:N,isPositioned:z,setControlledAlignItemWithTrigger:P,scrollDownArrowRef:K,scrollUpArrowRef:G}=w4(),q=Kv()!=null,te=kb(),ee=ev(),{nonce:F,disableStyleElements:I}=sM(),_=St(p,wt.id),O=St(p,wt.open),U=St(p,wt.mounted),B=St(p,wt.popupProps),Q=St(p,wt.transitionStatus),A=St(p,wt.triggerElement),V=St(p,wt.positionerElement),Y=St(p,wt.listElement),W=v.useRef(!1),ne=v.useRef(!1),ie=v.useRef({}),ce=Ma(),de=Te(fe=>{if(!V||!h.current||!ne.current)return;if(W.current||!N){C();return}const ze=V.style.top==="0px",De=V.style.bottom==="0px";if(!ze&&!De){C();return}const _e=Ib(V),Oe=qa(V.getBoundingClientRect().height,"y",_e),Ce=Je(V),Le=getComputedStyle(V),Re=parseFloat(Le.marginTop),Ue=parseFloat(Le.marginBottom),H=Pb(getComputedStyle(h.current)),oe=Math.min(Ce.documentElement.clientHeight-Re-Ue,H),J=fe.scrollTop,X=Kc(fe);let ve=0,we=null,be=!1,Ne=!1;const qe=et=>{V.style.height=`${et}px`},He=(et,Xe)=>{const We=hn(et,0,oe-Oe);We>0&&qe(Oe+We),fe.scrollTop=Xe,oe-(Oe+We)<=Co&&(W.current=!0),C()},Be=ze?X-J:J,$e=Math.min(Oe+Be,oe);if(ve=$e,Be<=Co){He(Be,ze?X:0);return}if(oe-$e>Co)ze?Ne=!0:we=0;else if(be=!0,De&&J<X){const et=Oe+Be-oe;we=J-(Be-et)}if(ve=Math.ceil(ve),ve!==0&&qe(ve),Ne||we!=null){const et=Kc(fe),Xe=Ne?et:hn(we,0,et);Math.abs(fe.scrollTop-Xe)>Co&&(fe.scrollTop=Xe)}(be||ve>=oe-Co)&&(W.current=!0),C()});v.useImperativeHandle(E,()=>de,[de]),ro({open:O,ref:h,onComplete(){O&&g?.(!0)}});const ye={open:O,transitionStatus:Q,side:k,align:R};ke(()=>{!V||!h.current||Object.keys(ie.current).length||(ie.current={top:V.style.top||"0",left:V.style.left||"0",right:V.style.right,height:V.style.height,bottom:V.style.bottom,minHeight:V.style.minHeight,maxHeight:V.style.maxHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom})},[h,V]),ke(()=>{O||N||(ne.current=!1,W.current=!1,Qc(V,ie.current))},[O,N,V,h]),ke(()=>{const fe=h.current;if(!O||!A||!V||!fe||N&&!z||p.state.transitionStatus==="ending")return;if(!N){ne.current=!0,ce.request(C),fe.style.removeProperty("--transform-origin");return}const ze=O4(fe);fe.style.removeProperty("--transform-origin");try{const De=S.current,_e=b.current,Oe=getComputedStyle(V),Ce=getComputedStyle(fe),Le=Je(A),Re=Lt(V),Ue=Ib(A),H=Wc(A.getBoundingClientRect(),Ue),oe=Wc(V.getBoundingClientRect(),Ue),J=H.height,X=Y||fe,ve=X.scrollHeight,we=parseFloat(Ce.borderBottomWidth),be=parseFloat(Oe.marginTop)||10,Ne=parseFloat(Oe.marginBottom)||10,qe=parseFloat(Oe.minHeight)||100,He=Pb(Ce),Be=5,$e=5,et=20,Xe=Le.documentElement.clientHeight-be-Ne,We=Le.documentElement.clientWidth,dt=Xe-H.bottom+J;let jt,rt=ee==="rtl"?H.right-oe.width:H.left,Ze=0;if(De&&_e){const at=Wc(_e.getBoundingClientRect(),Ue);jt=Wc(De.getBoundingClientRect(),Ue),rt=oe.left+(ee==="rtl"?at.right-jt.right:at.left-jt.left);const ft=at.top-H.top+at.height/2;Ze=jt.top-oe.top+jt.height/2-ft}const st=dt+Ze+Ne+we;let ut=Math.min(Xe,st);const zt=Xe-be-Ne,mt=st-ut,wn=We-$e;V.style.left=`${hn(rt,Be,wn-oe.width)}px`,V.style.height=`${ut}px`,V.style.maxHeight="auto",V.style.marginTop=`${be}px`,V.style.marginBottom=`${Ne}px`,fe.style.height="100%";const cn=Kc(X),Rt=mt>=cn-Co;Rt&&(ut=Math.min(Xe,oe.height)-(mt-cn));const he=H.top<et||H.bottom>Xe-et||Math.ceil(ut)+Co<Math.min(ve,qe),xe=(Re.visualViewport?.scale??1)!==1&&fd;if(he||xe){ne.current=!0,Qc(V,ie.current),P(!1);return}const je=Math.max(qe,ut);if(Rt){const at=Math.max(0,Xe-st);V.style.top=oe.height>=zt?"0":`${at}px`,V.style.height=`${ut}px`,X.scrollTop=Kc(X)}else V.style.bottom="0",X.scrollTop=mt;if(jt){const at=oe.top,ft=oe.height,ot=jt.top+jt.height/2,_t=ft>0?(ot-at)/ft*100:50,Ge=hn(_t,0,100);fe.style.setProperty("--transform-origin",`50% ${Ge}%`)}(je===Xe||ut>=He)&&(W.current=!0),C(),j&&p.state.selectedIndex===null&&p.state.activeIndex===null&&L.current[0]!=null&&p.set("activeIndex",0),ne.current=!0}finally{ze()}},[p,O,V,A,b,S,h,C,N,P,ce,K,G,Y,L,j,ee,z]),v.useEffect(()=>{if(!N||!V||!O)return;const fe=Lt(V);function ze(De){y(!1,ct(y_,De))}return pt(fe,"resize",ze)},[y,N,V,O]);const Ee={...Y?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":T||void 0,id:`${_}-list`},onKeyDown(fe){x.current=!0,q&&Uc.has(fe.key)&&fe.stopPropagation()},onMouseMove(){x.current=!1},onScroll(fe){Y||de(fe.currentTarget)},...N&&{style:Y?{height:"100%"}:x4}},Me=At("div",n,{ref:[o,h],state:ye,stateAttributesMapping:C4,props:[B,Ee,Wd(Q),{className:!Y&&N?Mb.className:void 0},f]});return D.jsxs(v.Fragment,{children:[!I&&Mb.getElement(F),D.jsx(wc,{context:te,modal:!1,disabled:!U,returnFocus:u,restoreFocus:!0,children:Me})]})});function Pb(e){const n=e.maxHeight||"";return n.endsWith("px")&&parseFloat(n)||1/0}function Kc(e){return Db(e.scrollHeight,e.clientHeight)}function Ib(e){return P0.getScale(e)}function qa(e,n,o){return e/o[n]}function Wc(e,n){return ja({x:qa(e.x,"x",n),y:qa(e.y,"y",n),width:qa(e.width,"x",n),height:qa(e.height,"y",n)})}const Ub=[["transform","none"],["scale","1"],["translate","0 0"]];function O4(e){const{style:n}=e,o={};for(const[s,l]of Ub)o[s]=n.getPropertyValue(s),n.setProperty(s,l,"important");return()=>{for(const[s]of Ub){const l=o[s];l?n.setProperty(s,l):n.removeProperty(s)}}}const Vb=v.createContext(void 0);function Eh(){const e=v.useContext(Vb);if(!e)throw new Error(Jt(57));return e}const _4=v.memo(v.forwardRef(function(n,o){const{render:s,className:l,value:c=null,label:u,disabled:f=!1,nativeButton:p=!1,style:h,...g}=n,y=v.useRef(null),b=h3({label:u,textRef:y,indexGuessBehavior:Ev.GuessFromOrder}),{store:S,getItemProps:x,setOpen:T,setValue:C,selectionRef:E,typingRef:L,valuesRef:j,multiple:k,selectedItemTextRef:R}=Ms(),N=St(S,wt.isActive,b.index),z=St(S,wt.isSelected,b.index,c),P=St(S,wt.isSelectedByFocus,b.index),K=St(S,wt.isItemEqualToValue),G=b.index,q=G!==-1,te=v.useRef(null),ee=dn(G);ke(()=>{if(!q)return;const ne=j.current;return ne[G]=c,()=>{delete ne[G]}},[q,G,c,j]),ke(()=>{if(!q)return;const ne=S.state.value;let ie=ne;k&&Array.isArray(ne)&&ne.length>0&&(ie=ne[ne.length-1]),ie!==void 0&&Rs(c,ie,K)&&(S.set("selectedIndex",G),y.current&&(R.current=y.current))},[q,G,k,K,S,c,R]);const F={disabled:f,selected:z,highlighted:N},I=x({active:N,selected:z});I.id=void 0;const _=v.useRef(null),O=v.useRef("mouse"),U=v.useRef(!1),{getButtonProps:B,buttonRef:Q}=ws({disabled:f,focusableWhenDisabled:!0,native:p,composite:!0});function A(ne){const ie=S.state.value;if(k){const ce=Array.isArray(ie)?ie:[],de=z?j3(ce,c,K):[...ce,c];C(de,ct(kd,ne))}else C(c,ct(kd,ne)),T(!1,ct(kd,ne))}const V={role:"option","aria-selected":z,tabIndex:N?0:-1,onTouchStart(){E.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(ne){_.current=ne.key,S.set("activeIndex",G),ne.key===" "&&L.current&&ne.preventDefault()},onClick(ne){U.current=!1,!(ne.type==="keydown"&&_.current===null)&&(f||ne.type==="keydown"&&_.current===" "&&L.current||O.current!=="touch"&&!N||(_.current=null,A(ne.nativeEvent)))},onPointerEnter(ne){O.current=ne.pointerType},onPointerDown(ne){O.current=ne.pointerType,U.current=!0},onMouseUp(){if(f)return;if(U.current){U.current=!1;return}const ne=!E.current.allowSelectedMouseUp&&z,ie=!E.current.allowUnselectedMouseUp&&!z;ne||ie||O.current!=="touch"&&!N||te.current?.click()}},Y=At("div",n,{ref:[Q,o,b.ref,te],state:F,props:[I,V,g,B]}),W=v.useMemo(()=>({selected:z,indexRef:ee,textRef:y,selectedByFocus:P,hasRegistered:q}),[z,ee,y,P,q]);return D.jsx(Vb.Provider,{value:W,children:Y})})),A4=v.forwardRef(function(n,o){const s=n.keepMounted??!1,{selected:l}=Eh();return s||l?D.jsx(M4,{...n,ref:o}):null}),M4=v.memo(v.forwardRef((e,n)=>{const{render:o,className:s,style:l,keepMounted:c,...u}=e,{selected:f}=Eh(),p=v.useRef(null),{transitionStatus:h,setMounted:g}=Va(f),b=At("span",e,{ref:[n,p],state:{selected:f,transitionStatus:h},props:[{"aria-hidden":!0,children:"✔️"},u],stateAttributesMapping:Or});return ro({open:f,ref:p,onComplete(){f||g(!1)}}),b})),D4=v.memo(v.forwardRef(function(n,o){const{indexRef:s,textRef:l,selectedByFocus:c,hasRegistered:u}=Eh(),{selectedItemTextRef:f}=Ms(),{className:p,render:h,style:g,...y}=n,b=v.useCallback(x=>{if(!x||!u)return;const T=f.current===null||!f.current.isConnected;(c||T&&s.current===0)&&(f.current=x)},[f,s,c,u]);return At("div",n,{ref:[b,o,l],props:y})})),Xa=_i.forwardRef(({className:e,type:n="primary",htmlType:o,...s},l)=>D.jsx("button",{ref:l,type:o||"button",className:ln("inline-flex items-center justify-center whitespace-nowrap rounded-full transition-colors disabled:pointer-events-none disabled:opacity-50 h-10 px-4",n==="primary"&&"text-white bg-gradient-to-r from-[#497efe] to-[#947afa] shadow-lg",n==="gray"&&"bg-gray-200 text-gray-700 hover:bg-gray-200",e),...s}));Xa.displayName="Button";const z4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),N4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,o,s)=>s?s.toUpperCase():o.toLowerCase()),Hb=e=>{const n=N4(e);return n.charAt(0).toUpperCase()+n.slice(1)},Fb=(...e)=>e.filter((n,o,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===o).join(" ").trim(),k4=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var j4={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"};const L4=v.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:u,...f},p)=>v.createElement("svg",{ref:p,...j4,width:n,height:n,stroke:e,strokeWidth:s?Number(o)*24/Number(n):o,className:Fb("lucide",l),...!c&&!k4(f)&&{"aria-hidden":"true"},...f},[...u.map(([h,g])=>v.createElement(h,g)),...Array.isArray(c)?c:[c]]));const Ro=(e,n)=>{const o=v.forwardRef(({className:s,...l},c)=>v.createElement(L4,{ref:c,iconNode:n,className:Fb(`lucide-${z4(Hb(e))}`,`lucide-${e}`,s),...l}));return o.displayName=Hb(e),o};const Th=Ro("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Bb=Ro("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Zb=Ro("eye-closed",[["path",{d:"m15 18-.722-3.25",key:"1j64jw"}],["path",{d:"M2 8a10.645 10.645 0 0 0 20 0",key:"1e7gxb"}],["path",{d:"m20 15-1.726-2.05",key:"1cnuld"}],["path",{d:"m4 15 1.726-2.05",key:"1dsqqd"}],["path",{d:"m9 18 .722-3.25",key:"ypw2yx"}]]);const Gb=Ro("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const P4=Ro("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);const I4=Ro("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const U4=Ro("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);const V4=Ro("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Yb=Ro("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function H4(e){return Nn.get("/channel/game/role/mail-captcha",e)}function F4(e){return Nn.get("/channel/game/role/auth",e)}function B4(e){return Nn.post("/passport-api/v2/ztgame/auth/login",{account:e.account,password:e.password,channel_login:1,channel_id:6})}function Z4(e){return Nn.post("/passport-api/v2/sms-captchas",{mobile:e.mobile,type:e.type||"register",is_voice:0,nationcode:e.countryCode})}function G4(e){return Nn.post("/passport-api/v2/ztgame/auth/mobile-register",{mobile:e.mobile,captcha:e.captcha,channel_login:1,channel_id:6,nationcode:e.countryCode,ad_id:""})}function $b(){return Nn.post("/passport-api/v2/ztgame/auth/auth",{channel_login:1,channel_id:6})}function Y4(e){return Nn.post(`/passport-api/v2/ztgame/users/${e.uid}/idcard`,{name:e.name,idcard:e.idcard},{headers:{Authentication:e.authorization}})}function $4(e){return Nn.post("/passport-api/v2/ztgame/auth/re-auth",{type:"auth",channel_id:6,ad_id:"",channel_login:1},{headers:{Authentication:e}})}function q4(e){return Nn.post("/passport-api/v2/ztgame/user-center/forget-password/",e)}function X4(e){return Nn.post("/passport-api/v2/ztgame/user-center/forget-password/sms-captchas",e)}function qb(e){return Nn.post("/passport-api/v2/ztgame/user-center/forget-password/forget-password-keys",e)}function Q4(e){return Nn.post("/passport-api/v2/ztgame/user-center/forget-password/forget-password-update",e)}function Xn({as:e,children:n,className:o,disabled:s,...l}){const c=e||"button",u=c==="button";return D.jsx(c,{className:Kf("align-middle inline-flex items-center justify-center transition-all cursor-pointer hover:brightness-110 active:brightness-90 active:scale-90 disabled:cursor-not-allowed disabled:grayscale",o),...u?{disabled:s}:{"aria-disabled":s},...s&&!u?{onClick:f=>{f.preventDefault(),f.stopPropagation()}}:{},...l,children:n})}const K4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAXCAYAAADk3wSdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFJ0lEQVQ4jW2VW4ydVRXHf2tfvu87Z+5znEtnxnLR0pYJatEHWxhBEZUSCE8YESImRnzwQTEEY6KJGrQJXiFGXzAxaowkSkyoIgjYlEqEIIrSS6KmpTPDdJgz55w5t++29/bhjDQFVrKf9lq/rGSt/3/J+v2XExRQgNsKuJbH9QLFKaE4BWqUu6TCvXhGQsajOD6D4BJfQBCuvvaLLE/uhLTN/8PwVlGCxIJZCJ9XYzwYBEIGdLkztBE8d1rvSJWlbSLw/oJy9UZe8AOAGglfNbt4UE2CSkBikASwfKpE6blOncdndtOauAjy3gWM8516wCGiuFGPyT2Mhw+EQvC9wZ+UEAw4UfXZtBU6cZX7Fm+C4IDwBmgAPHdguEGPy1VqSO0MObhewHc9UgC5gAKXKmpbW3fV8i1/8JovsDyzG5ortxK4DpFzwP1A2yAcUpHciwURCLngOgFVBkIOOPBd/qrWir/MrTV/k6nk2N3v/Rx/uHgJmqvfrqb5l3sioBVofTsi18hrDywGqQ46IQBFwHcCRT1QrrmfDjXaP/TrvNRerrIiM/xq98d4bH6ROK3fV3XlV0QU60azajTOGND6R4YIpAqiAsEDVnB1UM30lonQ/t0/G3t4uXkZqxM1TkztpDmUXP7uzVcO2SA3FVrR0hoEOkrRCAFCGDMScUJX3V6lPCEIrqexsb82quVHnji6xJ9PH8Bbtc9G2f4dW42PznbDzc5qerGlnURURMidEPT2sIw5bFTMYVMp94rxEASfyananu6RI0/t49G/f4gdMxu/jExxm/QF1fMURtEdshRKMSo5GZa1OKJlDVSSc1STx4wedi/paomKPMELSfAv9NKY5569jNGk89nIFLeFIAQFISiMC9jCMZzlHJ+cfPn5uem9G6AQBdXkReKoacxw0TDDHhWX4BQqLjY3z4zTaVapVLODIch5YchAHNa7rJ4k1//pit3LRRT9h9a2RCvJJtai7JgbN1ObqOlzqJlzMJxPjF7cZnSkT78V/1Hk/GJLgKBlKyqLfUcX33m0mJu9lLIU4giSGOJ4gjhG2Zn6uxhvk+kqfRvDWPdKc8UrfPgTz+E2R34cUvMwKhAEvOL0Rcud95+pLZw4eeB94N2VGAtRNHjW7qOajBlG+gcb3QXq3XHaZUzFdvfOmY2r5JNnjw39+2/Iz3Z9vGbCDyTORyr94ul/LEbFr+8YhWoLmvJpbDSQqggYPUsSf0TSjYmw0p6nnlnqmWUji8Frp4bzm1eS7PfHf3sJ5eMLjHQtJ/eUPH39GAzNvI2txUdIZ66mtzVwKQGshaHqz00ImsxruqWmkRleS4W1VOvQqBz2OvnJ2aW1B55cXD1BfQqG50fpRbdTn/oG0UQNayC24MIAGllQqiO+FX13pXnp3Sebk5zuaZZ7hvVU86+e5vlMcIWjwDxJmG3i3/5B9PwkageoKWAanAKXDUzCmrMovWRE5V+aH//vcaS8oe+n97/at3ObheLFAtK+h7wCevo6dA10ddsjuxASEAW6UqLNMSR6BpHv4GkaPIjJH1oYXn+onY1E3UJuXE3VPb0tvZ9Cg66A0oNz4FNQMfg20Gkj5lvI+C9Qc8vI1GCJX3d+D6mzlEHy2PhH3lF1B95T8d9ECYQAFBByCH3wLXBnnsWd2QP9Q6CXt+X2Fs6/7Xy5F4oAOyxfQ/sGRfa919NCAX75GVBLmF1AzGBCF8abDp8ARuDVnoJMvo/JSrz/OpIaKJ7CN25Batul4U1AgP8BRjZPP9WeeTQAAAAASUVORK5CYII=";function W4(e){return D.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 500 500",...e,children:[D.jsx("path",{fill:"url(#a)",d:"M0 250C0 111.929 111.929 0 250 0s250 111.929 250 250-111.929 250-250 250S0 388.071 0 250Z"}),D.jsx("path",{fill:"#fff",d:"M159.432 341h-33.008V158.949h33.008V341Zm220.263-76.172c0 11.087-1.946 21.286-5.84 30.596-3.808 9.31-9.098 17.35-15.869 24.121-6.771 6.686-14.811 11.934-24.121 15.742-9.31 3.809-19.424 5.713-30.342 5.713h-89.121c-2.369 0-4.57-.423-6.601-1.27-2.031-.846-3.809-1.988-5.332-3.427-1.439-1.524-2.582-3.301-3.428-5.332-.846-2.032-1.27-4.232-1.27-6.602V175.58c0-2.285.424-4.443 1.27-6.475.846-2.031 1.989-3.808 3.428-5.332a16.354 16.354 0 0 1 5.332-3.554c2.031-.847 4.232-1.27 6.601-1.27h89.121c10.918 0 21.032 1.905 30.342 5.713 9.31 3.809 17.35 9.098 24.121 15.869 6.771 6.686 12.061 14.727 15.869 24.121 3.894 9.31 5.84 19.466 5.84 30.469v29.707Zm-33.007-29.707c0-6.432-1.058-12.314-3.174-17.646-2.032-5.332-4.952-9.86-8.76-13.584-3.809-3.809-8.379-6.729-13.711-8.76-5.247-2.116-11.087-3.174-17.52-3.174h-72.744v116.035h72.744c6.433 0 12.273-1.015 17.52-3.047 5.332-2.116 9.902-5.035 13.711-8.759 3.808-3.809 6.728-8.337 8.76-13.584 2.116-5.332 3.174-11.257 3.174-17.774v-29.707Z"}),D.jsx("defs",{children:D.jsxs("linearGradient",{id:"a",x1:250,x2:250,y1:0,y2:500,gradientUnits:"userSpaceOnUse",children:[D.jsx("stop",{stopColor:"#497EFE"}),D.jsx("stop",{offset:1,stopColor:"#947AFA"})]})})]})}function Jc(){const{gameId:e,loginTypes:n,currentLoginType:o,setCurrentLoginType:s}=wo(),l=dv({loginTypes:n,gameId:e}),c=hv({loginTypes:n,gameId:e}),u=fv({loginTypes:n,gameId:e}),f=[];return u&&o!==Gt.GIANT&&f.push({type:Gt.GIANT,label:e==="5327"?"账号密码登录":"巨人账号",icon:e==="5327"?null:D.jsx("img",{className:"size-4",src:K4})}),c&&o!==Gt.MOBILE&&f.push({type:Gt.MOBILE,label:"手机号登录",icon:D.jsx(P4,{className:"size-4"})}),l&&o!==Gt.ROLE_ID&&f.push({type:Gt.ROLE_ID,label:"ID 登录",icon:D.jsx(W4,{className:"size-4"})}),o!=="quick"&&Cs(e).length>0&&f.push({type:"quick",label:"快捷登录",icon:D.jsx(V4,{className:"size-4"})}),f.length?D.jsx("div",{className:"text-gray-500 text-xs flex justify-center items-center gap-2 mb-4",children:f.map((p,h)=>D.jsxs(Xn,{className:"h-7 px-3 border rounded-full border-gray-300 gap-1.5 text-xs",onClick:()=>s(p.type),children:[p.icon,D.jsx("span",{children:p.label})]},p.type))}):null}function J4(e){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 90",fill:"currentColor",...e,children:D.jsx("path",{d:"M41.415 1.601c6.427-2.244 13.363 2.04 14.18 8.773.611 5.508-2.959 10.609-8.365 11.833-.408.102-.918.203-1.326.305-.918.204-1.735.409-2.653.613-.306.102-.714.204-1.122.306h-.101c-.816.306-1.633.51-2.448.816-.306.102-.715.306-1.021.408l-2.754 1.223c-.408.103-.714.307-1.02.511-1.224.612-2.346 1.326-3.468 2.142l-.307.306c-.612.409-1.122.919-1.632 1.327-.51.408-1.02.816-1.53 1.326-.408.306-.714.713-1.122 1.02-.408.407-.816.918-1.326 1.428-.306.612-.409 1.224-.612 1.836-.204 1.122-.51 2.143-.714 3.265-.204 1.02-.408 2.04-.51 3.06 0 .611-.103 1.122-.103 1.734v1.632c0 1.02 0 1.938.103 2.958.102 1.02.306 2.143.51 3.163.204.816.408 1.733.612 2.55.204.816.408 1.53.612 2.346.102.306.204.51.408.714.51.612 1.122 1.122 1.632 1.734 1.02.918 2.04 1.836 3.162 2.754.816.612 1.734 1.224 2.55 1.836.51.306.919.612 1.429.918.102 0 .204 0 .204.103.204 0 .306.102.51.204.408.204.714.408 1.122.612.918.408 1.734.714 2.652 1.122.714.204 1.326.51 2.04.714 1.122.306 2.143.612 3.265.918.51.204 1.122.204 1.632 0 .306-.102.51-.102.816-.204.816-.204 1.53-.51 2.346-.714 1.53-.408 2.958-1.02 4.386-1.633h.102c.816-.408 1.735-.815 2.55-1.325.307-.204.714-.408 1.02-.612 1.02-.714 2.04-1.428 3.06-2.244.613-.51 1.123-1.02 1.735-1.53l2.142-2.143c.408-.408.714-.816.816-1.428 0-.102.103-.102.103-.204.306-1.02.611-2.142.815-3.162.306-1.326.612-2.755.714-4.183v-.204c.102-1.224.103-2.448.103-3.672-.102-.816-.102-1.53-.204-2.346 0-.102 0-.204-.102-.205-.918.408-1.735.715-2.55 1.225-1.633.918-3.061 1.938-4.489 3.06-.102.101-.204.102-.306.204-1.02.918-1.938 1.734-2.856 2.652-1.02 1.02-2.041 2.04-2.96 3.162-1.937 2.244-4.487 3.469-7.445 3.673-5.713.306-10.61-3.673-11.324-9.283-.816-5.61 2.959-10.813 8.467-11.935a52.639 52.639 0 0 0 7.856-2.142h.101c.816-.408 1.734-.715 2.55-1.122 3.264-1.53 6.121-3.672 8.773-6.12 1.327-1.327 2.652-2.653 3.876-4.082 2.347-2.55 5.305-3.774 8.773-3.57 5.1.306 9.283 4.285 9.895 9.283.204 1.53.102 3.06-.408 4.489-.612 1.938-1.224 3.876-1.734 5.916-.102 1.02-.408 1.939-.51 2.958-.408 2.449-.51 4.795-.306 7.141v.306c.102.816.204 1.53.306 2.347a46.28 46.28 0 0 0 1.224 5.406c.102 0 .102.102.102.204.51 1.632 1.224 3.264 1.224 4.794.306 3.162-.51 5.917-2.55 8.365-1.632 1.938-3.774 3.06-6.223 3.57-1.734.408-3.57.817-5.304 1.326-.102.102-.204.102-.306.102-1.836.612-3.775 1.326-5.509 2.244h-.101c-.918.408-1.735.919-2.551 1.429-.306.204-.714.51-1.02.714a30.738 30.738 0 0 0-2.856 2.244c-.816.714-1.633 1.53-2.347 2.244a.22.22 0 0 1-.204.204c-.918.918-1.734 1.836-2.55 2.754-2.346 2.55-5.202 3.877-8.67 3.775-3.06-.102-5.61-1.428-7.651-3.672-1.428-1.633-2.958-3.163-4.488-4.591v-.102c-.51-.408-1.02-.918-1.53-1.326-.715-.612-1.53-1.122-2.245-1.734l-1.53-.918c-.612-.306-1.122-.612-1.734-.918l-2.754-1.225c-1.326-.612-2.653-1.02-4.081-1.428-1.326-.407-2.652-.714-3.978-1.02a11.146 11.146 0 0 1-3.673-1.224c-3.264-1.734-5.1-4.489-5.61-8.16-.204-1.633 0-3.265.51-4.795.816-2.244 1.428-4.59 1.938-6.936.102-.102.102-.103.102-.204.102-.715.204-1.531.306-2.347.102-.714.205-1.428.205-2.142V43.63l-.087-.956a39.328 39.328 0 0 0-1.24-6.695c-.102-.102-.102-.205-.102-.306-.51-1.734-1.224-3.469-1.53-5.203-1.122-5.712 2.55-11.22 8.263-12.445.714-.204 1.53-.306 2.244-.51 1.224-.306 2.55-.612 3.775-1.02 1.224-.408 2.448-.816 3.672-1.326l1.223-.612c.918-.408 1.837-.918 2.755-1.428 1.122-.714 2.244-1.53 3.366-2.346.408-.306.715-.612 1.122-.918.408-.408.918-.918 1.428-1.326a40.49 40.49 0 0 0 2.96-2.96c1.53-1.835 3.161-3.16 5.405-3.977Z"})})}function eD(e){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",...e,children:D.jsx("path",{d:"M842.667 384H768V277.333a234.667 234.667 0 1 0-469.333 0V384H224a53.393 53.393 0 0 0-53.333 53.333V928A53.393 53.393 0 0 0 224 981.333h618.667A53.393 53.393 0 0 0 896 928V437.333A53.393 53.393 0 0 0 842.667 384zm-288 295.007v110.326a21.333 21.333 0 0 1-42.667 0V679.007a64 64 0 1 1 42.667 0zM725.333 384h-384V277.333c0-105.866 86.134-192 192-192s192 86.134 192 192z"})})}var Ch,Xb;function tD(){if(Xb)return Ch;Xb=1;var e="Expected a function",n=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,f=parseInt,p=typeof Bl=="object"&&Bl&&Bl.Object===Object&&Bl,h=typeof self=="object"&&self&&self.Object===Object&&self,g=p||h||Function("return this")(),y=Object.prototype,b=y.toString,S=Math.max,x=Math.min,T=function(){return g.Date.now()};function C(R,N,z){var P,K,G,q,te,ee,F=0,I=!1,_=!1,O=!0;if(typeof R!="function")throw new TypeError(e);N=k(N)||0,E(z)&&(I=!!z.leading,_="maxWait"in z,G=_?S(k(z.maxWait)||0,N):G,O="trailing"in z?!!z.trailing:O);function U(ce){var de=P,ye=K;return P=K=void 0,F=ce,q=R.apply(ye,de),q}function B(ce){return F=ce,te=setTimeout(V,N),I?U(ce):q}function Q(ce){var de=ce-ee,ye=ce-F,Ee=N-de;return _?x(Ee,G-ye):Ee}function A(ce){var de=ce-ee,ye=ce-F;return ee===void 0||de>=N||de<0||_&&ye>=G}function V(){var ce=T();if(A(ce))return Y(ce);te=setTimeout(V,Q(ce))}function Y(ce){return te=void 0,O&&P?U(ce):(P=K=void 0,q)}function W(){te!==void 0&&clearTimeout(te),F=0,P=ee=K=te=void 0}function ne(){return te===void 0?q:Y(T())}function ie(){var ce=T(),de=A(ce);if(P=arguments,K=this,ee=ce,de){if(te===void 0)return B(ee);if(_)return te=setTimeout(V,N),U(ee)}return te===void 0&&(te=setTimeout(V,N)),q}return ie.cancel=W,ie.flush=ne,ie}function E(R){var N=typeof R;return!!R&&(N=="object"||N=="function")}function L(R){return!!R&&typeof R=="object"}function j(R){return typeof R=="symbol"||L(R)&&b.call(R)==o}function k(R){if(typeof R=="number")return R;if(j(R))return n;if(E(R)){var N=typeof R.valueOf=="function"?R.valueOf():R;R=E(N)?N+"":N}if(typeof R!="string")return R===0?R:+R;R=R.replace(s,"");var z=c.test(R);return z||u.test(R)?f(R.slice(2),z?2:8):l.test(R)?n:+R}return Ch=C,Ch}tD();function nD(e=!1){if(typeof e!="boolean")throw new Error("defaultValue must be `true` or `false`");const[n,o]=v.useState(e),s=v.useCallback(()=>{o(!0)},[]),l=v.useCallback(()=>{o(!1)},[]),c=v.useCallback(()=>{o(u=>!u)},[]);return{value:n,setValue:o,setTrue:s,setFalse:l,toggle:c}}var Qb=typeof window<"u"?v.useLayoutEffect:v.useEffect;function rD(e){const[n,o]=v.useState(e),s=v.useCallback(()=>{o(u=>u+1)},[]),l=v.useCallback(()=>{o(u=>u-1)},[]),c=v.useCallback(()=>{o(e)},[e]);return{count:n,increment:s,decrement:l,reset:c,setCount:o}}function oD(e,n){const o=v.useRef(e);Qb(()=>{o.current=e},[e]),v.useEffect(()=>{if(n===null)return;const s=setInterval(()=>{o.current()},n);return()=>{clearInterval(s)}},[n])}function iD({countStart:e,countStop:n=0,intervalMs:o=1e3,isIncrement:s=!1}){const{count:l,increment:c,decrement:u,reset:f}=rD(e),{value:p,setTrue:h,setFalse:g}=nD(!1),y=v.useCallback(()=>{g(),f()},[g,f]),b=v.useCallback(()=>{if(l===n){g();return}s?c():u()},[l,n,u,c,s,g]);return oD(b,p?o:null),[l,{startCountdown:h,stopCountdown:g,resetCountdown:y}]}var sD=typeof window>"u";function aD(e,{defaultValue:n=!1,initializeWithValue:o=!0}={}){const s=f=>sD?n:window.matchMedia(f).matches,[l,c]=v.useState(()=>o?s(e):n);function u(){c(s(e))}return Qb(()=>{const f=window.matchMedia(e);return u(),f.addListener?f.addListener(u):f.addEventListener("change",u),()=>{f.removeListener?f.removeListener(u):f.removeEventListener("change",u)}},[e]),l}function Kb({trigger:e,title:n,description:o,children:s,open:l,showCloseIcon:c=!0,onOpenChange:u,zIndex:f,classNames:p}){return aD("(min-width: 1024px)")?D.jsxs(oh,{open:l,onOpenChange:u,disablePointerDismissal:!0,children:[e&&D.jsx(ch,{className:p?.trigger,children:e}),D.jsxs(ah,{children:[D.jsx(jv,{style:{zIndex:f},className:"fixed inset-0 bg-black/70 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 dark:opacity-70 z-[990] backdrop-blur-sm"}),D.jsxs(Uv,{style:{zIndex:f},className:Ii("fixed top-1/2 left-1/2 w-96 max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-gray-50 p-4 text-gray-900 transition-all duration-150 data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 z-[991]",p?.desktopPopup),children:[n&&D.jsx(lh,{className:Ii("-mt-1.5 mb-1 text-lg font-medium",p?.title),children:n}),o&&D.jsx(Pv,{className:Ii("mb-6 text-base text-gray-600",p?.description),children:o}),c&&D.jsx(Lv,{className:"absolute right-4 top-4 text-gray-700 hover:bg-gray-200 rounded p-0.5",children:D.jsx(Yb,{})}),D.jsx("div",{children:s})]})]})]}):D.jsxs(yM,{open:l,onOpenChange:u,children:[e&&D.jsx(MM,{className:p?.trigger,children:e}),D.jsxs(gM,{children:[D.jsx(lM,{style:{zIndex:f},className:Ii("fixed inset-0 bg-black/70 transition-opacity duration-300 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 dark:opacity-70 z-[990] backdrop-blur-sm",p?.backdrop)}),D.jsx(kM,{style:{zIndex:f},className:"fixed inset-0 z-[991]",children:D.jsx(mM,{className:Ii("fixed bottom-0 left-0 right-0 rounded-t-xl bg-white p-4 transition-transform duration-300 data-[starting-style]:translate-y-full data-[ending-style]:translate-y-full","[transform:translateY(var(--drawer-swipe-movement-y))]",p?.mobilePopup),children:D.jsxs(cM,{children:[D.jsx("div",{"aria-hidden":!0,className:"mx-auto w-12 h-1.5 flex-shrink-0 rounded-full bg-gray-300 mb-4"}),D.jsx(AM,{className:"sr-only",children:n}),D.jsx("div",{children:s})]})})})]})]})}function Rh({checked:e,onChange:n,hideCheckbox:o}){const[s,l]=v.useState(!1),[c,u]=v.useState(!1);return D.jsxs("div",{children:[D.jsx(Kb,{title:"用户协议",open:s,onOpenChange:l,zIndex:993,classNames:{desktopPopup:"w-[90vw] lg:w-[60vw]"},children:D.jsx("iframe",{src:"https://www.gatribe.com/license-light.html?channel_id=1&game_id=5327",className:"w-full h-[70vh]"})}),D.jsx(Kb,{title:"隐私政策",open:c,onOpenChange:u,zIndex:993,classNames:{desktopPopup:"w-[90vw] lg:w-[60vw]"},children:D.jsx("iframe",{src:"https://www.gatribe.com/privacy-light.html?channel_id=1&game_id=5327",className:"w-full h-[70vh]"})}),o?D.jsxs("div",{className:"flex items-center justify-center text-gray-500 text-xs md:text-sm",children:[D.jsx("span",{className:"text-xs md:text-sm",children:"我已详细阅读并同意"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>l(!0),type:"button",children:"《用户协议》"}),D.jsx("span",{className:"text-xs md:text-sm",children:"及"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>u(!0),type:"button",children:"《隐私政策》"})]}):D.jsx($a,{name:"rememberLogin",children:D.jsxs(Tb,{className:"flex items-center justify-center text-gray-500 text-xs md:text-sm",children:[D.jsx(Xv,{checked:e,className:"size-4 md:size-5 flex items-center justify-center rounded-full border-2 data-[checked]:border-[var(--jssdk-primary-color)] data-[unchecked]:border-[var(--jssdk-input-border-color)]",onCheckedChange:f=>n?.(!!f),children:D.jsx(Qv,{children:D.jsx(Th,{className:"size-3 text-[var(--jssdk-primary-color)]",strokeWidth:4})})}),D.jsx("span",{className:"ml-2 text-xs md:text-sm",children:"我已详细阅读并同意"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>l(!0),type:"button",children:"《用户协议》"}),D.jsx("span",{className:"text-xs md:text-sm",children:"及"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>u(!0),type:"button",children:"《隐私政策》"})]})})]})}function Ds({trigger:e,title:n,description:o,children:s,open:l,showCloseIcon:c=!0,onOpenChange:u,disablePointerDismissal:f=!1,classNames:p}){return D.jsxs(oh,{open:l,onOpenChange:u,disablePointerDismissal:f,children:[e&&D.jsx(ch,{className:p?.trigger,children:e}),D.jsxs(ah,{children:[D.jsx(jv,{className:ln("fixed inset-0 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 z-[990] backdrop-blur-sm",p?.backdrop||"bg-black/70 dark:opacity-70"),forceRender:!0}),D.jsxs(Uv,{className:ln("fixed top-1/2 left-1/2 w-96 max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-gray-50 p-4 text-gray-900 transition-all duration-150 data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 z-[990]",p?.popup),children:[n&&D.jsx(lh,{className:ln("-mt-1.5 mb-1 text-lg font-medium",p?.title),children:n}),o&&D.jsx(Pv,{className:ln("mb-6 text-base text-gray-600",p?.description),children:o}),c&&D.jsx(Lv,{className:ln("absolute right-4 top-4 text-gray-700 hover:bg-gray-200 rounded p-0.5",p?.close),children:D.jsx(Yb,{})}),D.jsx("div",{children:s})]})]})]})}function Wb({open:e,onOpenChange:n,onAgree:o,onRefuse:s}){return D.jsx(Ds,{open:e,onOpenChange:n,showCloseIcon:!1,classNames:{popup:"w-[320px] p-6"},children:D.jsxs("div",{className:"flex flex-col items-center",children:[D.jsx(Rh,{hideCheckbox:!0}),D.jsxs("div",{className:"flex justify-between w-full mt-6 gap-4",children:[D.jsx(Xa,{type:"gray",className:"flex-1",onClick:()=>{s?.(),n?.(!1)},children:"拒绝"}),D.jsx(Xa,{type:"primary",className:"flex-1",onClick:()=>{o?.(),n?.(!1)},children:"同意并登录"})]})]})})}function io({name:e,prefix:n,suffix:o,className:s,inputClassName:l,error:c,...u}){return D.jsxs($a,{name:e,className:"group",children:[D.jsxs("div",{className:ln("flex items-center border border-[var(--jssdk-input-border-color)] group-data-[focused]:border-[var(--jssdk-primary-color)] group-data-[focused]:shadow-[0_0_6px_color-mix(in_srgb,var(--jssdk-primary-color),transparent_80%)] rounded-full bg-white px-3 gap-2 h-12 transition-all duration-200",c&&"border-red-500",s),children:[n,D.jsx(wh,{className:ln("flex-1 w-0 outline-none rounded-full h-full pl-1",l),...u}),o]}),D.jsx(Sh,{className:"text-red-500 text-xs mt-1 ml-3"})]})}function lD({account:e,forgetPasswordKey:n,onSuccess:o}){const[s,l]=v.useState(""),[c,u]=v.useState(!1),{mutate:f,isPending:p}=Vr({mutationFn:()=>Q4({account:e,forget_password_key:n,password:s}),onSuccess:g=>{g?.code===0||!g?.error?o():Cn.warning(g.detail||g.error||"重置失败")}}),h=()=>{if(!s){Cn.warning("请输入新密码");return}if(s.length<6||s.length>18){Cn.warning("密码长度需要在6-18位之间");return}f()};return D.jsxs("div",{className:"space-y-4",children:[D.jsx("div",{className:"text-sm text-gray-500 mb-4 text-center",children:"请设置新的登录密码"}),D.jsx(io,{name:"password",type:c?"text":"password",autoComplete:"off",inputClassName:"placeholder:text-sm",placeholder:"请输入6-18位由数字、字母组成的密码",value:s,autoFocus:!0,onValueChange:g=>l(g),suffix:D.jsx(Xn,{onClick:()=>u(!c),type:"button",children:c?D.jsx(Gb,{className:"size-5 text-gray-400"}):D.jsx(Zb,{className:"size-5 text-gray-400"})})}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:h,disabled:!s||p,children:p?"重置中...":"确定修改"})]})}var cD=function(e){return typeof e=="number"};function uD(e){var n=v.useRef(e);return n.current=e,n}var eu={exports:{}},fD=eu.exports,Jb;function dD(){return Jb||(Jb=1,(function(e,n){(function(o,s){e.exports=s()})(fD,(function(){var o=1e3,s=6e4,l=36e5,c="millisecond",u="second",f="minute",p="hour",h="day",g="week",y="month",b="quarter",S="year",x="date",T="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var I=["th","st","nd","rd"],_=F%100;return"["+F+(I[(_-20)%10]||I[_]||I[0])+"]"}},j=function(F,I,_){var O=String(F);return!O||O.length>=I?F:""+Array(I+1-O.length).join(_)+F},k={s:j,z:function(F){var I=-F.utcOffset(),_=Math.abs(I),O=Math.floor(_/60),U=_%60;return(I<=0?"+":"-")+j(O,2,"0")+":"+j(U,2,"0")},m:function F(I,_){if(I.date()<_.date())return-F(_,I);var O=12*(_.year()-I.year())+(_.month()-I.month()),U=I.clone().add(O,y),B=_-U<0,Q=I.clone().add(O+(B?-1:1),y);return+(-(O+(_-U)/(B?U-Q:Q-U))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:y,y:S,w:g,d:h,D:x,h:p,m:f,s:u,ms:c,Q:b}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},R="en",N={};N[R]=L;var z="$isDayjsObject",P=function(F){return F instanceof te||!(!F||!F[z])},K=function F(I,_,O){var U;if(!I)return R;if(typeof I=="string"){var B=I.toLowerCase();N[B]&&(U=B),_&&(N[B]=_,U=B);var Q=I.split("-");if(!U&&Q.length>1)return F(Q[0])}else{var A=I.name;N[A]=I,U=A}return!O&&U&&(R=U),U||!O&&R},G=function(F,I){if(P(F))return F.clone();var _=typeof I=="object"?I:{};return _.date=F,_.args=arguments,new te(_)},q=k;q.l=K,q.i=P,q.w=function(F,I){return G(F,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var te=(function(){function F(_){this.$L=K(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[z]=!0}var I=F.prototype;return I.parse=function(_){this.$d=(function(O){var U=O.date,B=O.utc;if(U===null)return new Date(NaN);if(q.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var Q=U.match(C);if(Q){var A=Q[2]-1||0,V=(Q[7]||"0").substring(0,3);return B?new Date(Date.UTC(Q[1],A,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,V)):new Date(Q[1],A,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,V)}}return new Date(U)})(_),this.init()},I.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},I.$utils=function(){return q},I.isValid=function(){return this.$d.toString()!==T},I.isSame=function(_,O){var U=G(_);return this.startOf(O)<=U&&U<=this.endOf(O)},I.isAfter=function(_,O){return G(_)<this.startOf(O)},I.isBefore=function(_,O){return this.endOf(O)<G(_)},I.$g=function(_,O,U){return q.u(_)?this[O]:this.set(U,_)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(_,O){var U=this,B=!!q.u(O)||O,Q=q.p(_),A=function(ye,Ee){var Me=q.w(U.$u?Date.UTC(U.$y,Ee,ye):new Date(U.$y,Ee,ye),U);return B?Me:Me.endOf(h)},V=function(ye,Ee){return q.w(U.toDate()[ye].apply(U.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(Ee)),U)},Y=this.$W,W=this.$M,ne=this.$D,ie="set"+(this.$u?"UTC":"");switch(Q){case S:return B?A(1,0):A(31,11);case y:return B?A(1,W):A(0,W+1);case g:var ce=this.$locale().weekStart||0,de=(Y<ce?Y+7:Y)-ce;return A(B?ne-de:ne+(6-de),W);case h:case x:return V(ie+"Hours",0);case p:return V(ie+"Minutes",1);case f:return V(ie+"Seconds",2);case u:return V(ie+"Milliseconds",3);default:return this.clone()}},I.endOf=function(_){return this.startOf(_,!1)},I.$set=function(_,O){var U,B=q.p(_),Q="set"+(this.$u?"UTC":""),A=(U={},U[h]=Q+"Date",U[x]=Q+"Date",U[y]=Q+"Month",U[S]=Q+"FullYear",U[p]=Q+"Hours",U[f]=Q+"Minutes",U[u]=Q+"Seconds",U[c]=Q+"Milliseconds",U)[B],V=B===h?this.$D+(O-this.$W):O;if(B===y||B===S){var Y=this.clone().set(x,1);Y.$d[A](V),Y.init(),this.$d=Y.set(x,Math.min(this.$D,Y.daysInMonth())).$d}else A&&this.$d[A](V);return this.init(),this},I.set=function(_,O){return this.clone().$set(_,O)},I.get=function(_){return this[q.p(_)]()},I.add=function(_,O){var U,B=this;_=Number(_);var Q=q.p(O),A=function(W){var ne=G(B);return q.w(ne.date(ne.date()+Math.round(W*_)),B)};if(Q===y)return this.set(y,this.$M+_);if(Q===S)return this.set(S,this.$y+_);if(Q===h)return A(1);if(Q===g)return A(7);var V=(U={},U[f]=s,U[p]=l,U[u]=o,U)[Q]||1,Y=this.$d.getTime()+_*V;return q.w(Y,this)},I.subtract=function(_,O){return this.add(-1*_,O)},I.format=function(_){var O=this,U=this.$locale();if(!this.isValid())return U.invalidDate||T;var B=_||"YYYY-MM-DDTHH:mm:ssZ",Q=q.z(this),A=this.$H,V=this.$m,Y=this.$M,W=U.weekdays,ne=U.months,ie=U.meridiem,ce=function(Ee,Me,fe,ze){return Ee&&(Ee[Me]||Ee(O,B))||fe[Me].slice(0,ze)},de=function(Ee){return q.s(A%12||12,Ee,"0")},ye=ie||function(Ee,Me,fe){var ze=Ee<12?"AM":"PM";return fe?ze.toLowerCase():ze};return B.replace(E,(function(Ee,Me){return Me||(function(fe){switch(fe){case"YY":return String(O.$y).slice(-2);case"YYYY":return q.s(O.$y,4,"0");case"M":return Y+1;case"MM":return q.s(Y+1,2,"0");case"MMM":return ce(U.monthsShort,Y,ne,3);case"MMMM":return ce(ne,Y);case"D":return O.$D;case"DD":return q.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ce(U.weekdaysMin,O.$W,W,2);case"ddd":return ce(U.weekdaysShort,O.$W,W,3);case"dddd":return W[O.$W];case"H":return String(A);case"HH":return q.s(A,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return ye(A,V,!0);case"A":return ye(A,V,!1);case"m":return String(V);case"mm":return q.s(V,2,"0");case"s":return String(O.$s);case"ss":return q.s(O.$s,2,"0");case"SSS":return q.s(O.$ms,3,"0");case"Z":return Q}return null})(Ee)||Q.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(_,O,U){var B,Q=this,A=q.p(O),V=G(_),Y=(V.utcOffset()-this.utcOffset())*s,W=this-V,ne=function(){return q.m(Q,V)};switch(A){case S:B=ne()/12;break;case y:B=ne();break;case b:B=ne()/3;break;case g:B=(W-Y)/6048e5;break;case h:B=(W-Y)/864e5;break;case p:B=W/l;break;case f:B=W/s;break;case u:B=W/o;break;default:B=W}return U?B:q.a(B)},I.daysInMonth=function(){return this.endOf(y).$D},I.$locale=function(){return N[this.$L]},I.locale=function(_,O){if(!_)return this.$L;var U=this.clone(),B=K(_,O,!0);return B&&(U.$L=B),U},I.clone=function(){return q.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},F})(),ee=te.prototype;return G.prototype=ee,[["$ms",c],["$s",u],["$m",f],["$H",p],["$W",h],["$M",y],["$y",S],["$D",x]].forEach((function(F){ee[F[1]]=function(I){return this.$g(I,F[0],F[1])}})),G.extend=function(F,I){return F.$i||(F(I,te,G),F.$i=!0),G},G.locale=K,G.isDayjs=P,G.unix=function(F){return G(1e3*F)},G.en=N[R],G.Ls=N,G.p={},G}))})(eu)),eu.exports}var hD=dD();const pD=Of(hD);var Oh=function(e){if(!e)return 0;var n=pD(e).valueOf()-Date.now();return n<0?0:n},mD=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},e1=function(e){e===void 0&&(e={});var n=e||{},o=n.leftTime,s=n.targetDate,l=n.interval,c=l===void 0?1e3:l,u=n.onEnd,f=v.useMemo(function(){return cD(o)&&o>0?Date.now()+o:void 0},[o]),p="leftTime"in e?f:s,h=E2(v.useState(function(){return Oh(p)}),2),g=h[0],y=h[1],b=uD(u);v.useEffect(function(){if(!p){y(0);return}y(Oh(p));var x=setInterval(function(){var T,C=Oh(p);y(C),C===0&&(clearInterval(x),(T=b.current)===null||T===void 0||T.call(b))},c);return function(){return clearInterval(x)}},[p,c]);var S=v.useMemo(function(){return mD(g)},[g]);return[g,S]};function gD({account:e,mobile:n,onNext:o}){const[s,l]=v.useState(""),[c,u]=v.useState(),[f]=e1({leftTime:c?c*1e3:void 0,interval:1e3,onEnd(){u(void 0)}}),{mutate:p,isPending:h}=Vr({mutationFn:()=>X4({account:e,type:"reset-password",is_voice:0,t:"ctoken"}),onSuccess:S=>{u(S.lock_time),Cn.success("验证码已发送,请注意查收")}}),{mutate:g,isPending:y}=Vr({mutationFn:()=>qb({account:e,captcha:s,t:"reset-password"}),onSuccess:S=>{S?.forget_password_key?o(S.forget_password_key):Cn.warning("安全验证失败")},onError:S=>{Cn.warning(S?.message||S?.detail||"验证失败")}}),b=()=>{if(!s){Cn.warning("请输入验证码");return}g()};return D.jsxs("div",{className:"space-y-4",children:[D.jsxs("div",{className:"text-sm text-gray-500 mb-4 text-center",children:["为了您的账号安全,请先进行安全验证",D.jsx("br",{}),"请输入验证码,短信将发送至您的绑定手机"," ",D.jsx("span",{className:"font-semibold text-gray-700",children:n})]}),D.jsx(io,{name:"verificationCode",placeholder:"请输入验证码",value:s,type:"number",autoFocus:!0,onValueChange:S=>l(S),suffix:D.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-white inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onClick:()=>p(),disabled:!!c||h,children:h?"发送中...":c?`${Math.round(f/1e3)}s 后重新获取`:"获取验证码"})}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:b,disabled:y,children:y?"验证中...":"下一步"})]})}function yD({account:e,onNext:n}){const[o,s]=v.useState(""),{mutate:l,isPending:c}=Vr({mutationFn:()=>qb({account:e,idcard:o,t:"reset-password"}),onSuccess:f=>{f?.forget_password_key?n(f.forget_password_key):Cn.warning("安全验证失败")}}),u=()=>{if(!o){Cn.warning("请输入身份证号");return}l()};return D.jsxs("div",{className:"space-y-4",children:[D.jsxs("div",{className:"text-sm text-gray-500 mb-4 text-center",children:["为了您的账号安全,请先进行安全验证",D.jsx("br",{}),"该账号未绑定手机,请输入注册时填写的身份证信息"]}),D.jsx(io,{name:"idCard",placeholder:"请输入身份证号",value:o,autoFocus:!0,onChange:f=>s(f.currentTarget.value)}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:u,disabled:c,children:c?"验证中...":"下一步"})]})}function vD({onClose:e,defaultAccount:n=""}){const[o,s]=v.useState("account"),[l,c]=v.useState(n),[u,f]=v.useState(""),[p,h]=v.useState(2),[g,y]=v.useState(""),b=v.useRef(null);v.useEffect(()=>{if(!window.captchaZtgame){const E=document.createElement("script");E.type="text/javascript",E.src=`//nocaptcha.ztgame.com/static/verify2023/js/captcha.js?t=${new Date().getTime()}`,E.id="captchaZtgameScript",document.body.appendChild(E)}},[]);const{mutate:S,isPending:x}=Vr({mutationFn:async E=>q4({account:l,nonce:E.nonce,token:E.token,type:E.type,t:"ctoken"}),onSuccess:E=>{const L=E.type;h(L),f(L===2?E.mobile:""),s("secure"),b.current?.onRefresh?.()},onError:E=>{Cn.warning(E?.message||E?.detail||"验证失败"),b.current?.onRefresh?.()}}),T=()=>{if(!l){Cn.warning("请输入账号信息");return}window.captchaZtgame?window.captchaZtgame.init({appsceneid:"pt_login",usertype:"1",el:"captcha-forget-pwd",mode:"popup",styles:{width:300,height:150,fontSize:"14px"},popupStyles:{position:"fixed",top:"30%",left:"50%",zIndex:"99999"},onSuccess(E,L){b.current=E,S({nonce:E.nonce,token:L.data.token,type:E.type})},onLoad(E){b.current=E,E.onVerify()},onFail(){}}):Cn.warning("安全组件未加载,请稍后再试")},C=E=>{y(E),s("reset")};return D.jsxs("div",{className:"space-y-5",children:[D.jsx("div",{id:"captcha-forget-pwd"}),o==="account"&&D.jsxs("div",{className:"space-y-4",children:[D.jsxs("div",{className:"text-sm text-gray-500 mb-4 text-center",children:["为了您的账号安全,请先进行安全验证",D.jsx("br",{}),"请输入您的账号信息"]}),D.jsx(io,{name:"account",placeholder:"请输入账号信息",autoFocus:!0,value:l,onChange:E=>c(E.currentTarget.value)}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:T,disabled:!l||x,children:x?"验证中...":"下一步"})]}),o==="secure"&&(p===2?D.jsx(gD,{account:l,mobile:u,onNext:C}):D.jsx(yD,{account:l,onNext:C})),o==="reset"&&D.jsx(lD,{account:l,forgetPasswordKey:g,onSuccess:()=>s("success")}),o==="success"&&D.jsxs("div",{className:"space-y-4 py-6",children:[D.jsx("div",{className:"text-center text-lg font-medium text-gray-800",children:"重置密码成功"}),D.jsx(Xn,{className:"mt-6 h-10 w-full bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200",onClick:()=>e?.(),children:"返回登录"})]})]})}var t1;function Se(e,n,o){function s(f,p){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:p,constr:u,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),n(f,p);const h=u.prototype,g=Object.keys(h);for(let y=0;y<g.length;y++){const b=g[y];b in f||(f[b]=h[b].bind(f))}}const l=o?.Parent??Object;class c extends l{}Object.defineProperty(c,"name",{value:e});function u(f){var p;const h=o?.Parent?new c:this;s(h,f),(p=h._zod).deferred??(p.deferred=[]);for(const g of h._zod.deferred)g();return h}return Object.defineProperty(u,"init",{value:s}),Object.defineProperty(u,Symbol.hasInstance,{value:f=>o?.Parent&&f instanceof o.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class zs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class n1 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}(t1=globalThis).__zod_globalConfig??(t1.__zod_globalConfig={});const _h=globalThis.__zod_globalConfig;function Bi(e){return _h}function r1(e){const n=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,l])=>n.indexOf(+s)===-1).map(([s,l])=>l)}function Ah(e,n){return typeof n=="bigint"?n.toString():n}function Mh(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Dh(e){return e==null}function zh(e){const n=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(n,o)}const o1=Symbol("evaluating");function Vt(e,n,o){let s;Object.defineProperty(e,n,{get(){if(s!==o1)return s===void 0&&(s=o1,s=o()),s},set(l){Object.defineProperty(e,n,{value:l})},configurable:!0})}function Zi(e,n,o){Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0})}function ni(...e){const n={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(n,s)}return Object.defineProperties({},n)}function i1(e){return JSON.stringify(e)}function bD(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const s1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function tu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const SD=Mh(()=>{if(_h.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Qa(e){if(tu(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const o=n.prototype;return!(tu(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function a1(e){return Qa(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const wD=new Set(["string","number","symbol"]);function nu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ri(e,n,o){const s=new e._zod.constr(n??e._zod.def);return(!n||o?.parent)&&(s._zod.parent=e),s}function it(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function xD(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}function ED(e,n){const o=e._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=ni(e._zod.def,{get shape(){const u={};for(const f in n){if(!(f in o.shape))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(u[f]=o.shape[f])}return Zi(this,"shape",u),u},checks:[]});return ri(e,c)}function TD(e,n){const o=e._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=ni(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const f in n){if(!(f in o.shape))throw new Error(`Unrecognized key: "${f}"`);n[f]&&delete u[f]}return Zi(this,"shape",u),u},checks:[]});return ri(e,c)}function CD(e,n){if(!Qa(n))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0){const c=e._zod.def.shape;for(const u in n)if(Object.getOwnPropertyDescriptor(c,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const l=ni(e._zod.def,{get shape(){const c={...e._zod.def.shape,...n};return Zi(this,"shape",c),c}});return ri(e,l)}function RD(e,n){if(!Qa(n))throw new Error("Invalid input to safeExtend: expected a plain object");const o=ni(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n};return Zi(this,"shape",s),s}});return ri(e,o)}function OD(e,n){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const o=ni(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n._zod.def.shape};return Zi(this,"shape",s),s},get catchall(){return n._zod.def.catchall},checks:n._zod.def.checks??[]});return ri(e,o)}function _D(e,n,o){const l=n._zod.def.checks;if(l&&l.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=ni(n._zod.def,{get shape(){const f=n._zod.def.shape,p={...f};if(o)for(const h in o){if(!(h in f))throw new Error(`Unrecognized key: "${h}"`);o[h]&&(p[h]=e?new e({type:"optional",innerType:f[h]}):f[h])}else for(const h in f)p[h]=e?new e({type:"optional",innerType:f[h]}):f[h];return Zi(this,"shape",p),p},checks:[]});return ri(n,u)}function AD(e,n,o){const s=ni(n._zod.def,{get shape(){const l=n._zod.def.shape,c={...l};if(o)for(const u in o){if(!(u in c))throw new Error(`Unrecognized key: "${u}"`);o[u]&&(c[u]=new e({type:"nonoptional",innerType:l[u]}))}else for(const u in l)c[u]=new e({type:"nonoptional",innerType:l[u]});return Zi(this,"shape",c),c}});return ri(n,s)}function Ns(e,n=0){if(e.aborted===!0)return!0;for(let o=n;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function MD(e,n=0){if(e.aborted===!0)return!0;for(let o=n;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function l1(e,n){return n.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function ru(e){return typeof e=="string"?e:e?.message}function Gi(e,n,o){const s=e.message?e.message:ru(e.inst?._zod.def?.error?.(e))??ru(n?.error?.(e))??ru(o.customError?.(e))??ru(o.localeError?.(e))??"Invalid input",{inst:l,continue:c,input:u,...f}=e;return f.path??(f.path=[]),f.message=s,n?.reportInput&&(f.input=u),f}function Nh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ka(...e){const[n,o,s]=e;return typeof n=="string"?{message:n,code:"custom",input:o,inst:s}:{...n}}const c1=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Ah,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},u1=Se("$ZodError",c1),f1=Se("$ZodError",c1,{Parent:Error});function Wa(e,n=o=>o.message){const o={},s=[];for(const l of e.issues)l.path.length>0?(o[l.path[0]]=o[l.path[0]]||[],o[l.path[0]].push(n(l))):s.push(n(l));return{formErrors:s,fieldErrors:o}}function DD(e,n=o=>o.message){const o={_errors:[]},s=(l,c=[])=>{for(const u of l.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(f=>s({issues:f},[...c,...u.path]));else if(u.code==="invalid_key")s({issues:u.issues},[...c,...u.path]);else if(u.code==="invalid_element")s({issues:u.issues},[...c,...u.path]);else{const f=[...c,...u.path];if(f.length===0)o._errors.push(n(u));else{let p=o,h=0;for(;h<f.length;){const g=f[h];h===f.length-1?(p[g]=p[g]||{_errors:[]},p[g]._errors.push(n(u))):p[g]=p[g]||{_errors:[]},p=p[g],h++}}}};return s(e),o}const kh=e=>(n,o,s,l)=>{const c=s?{...s,async:!1}:{async:!1},u=n._zod.run({value:o,issues:[]},c);if(u instanceof Promise)throw new zs;if(u.issues.length){const f=new(l?.Err??e)(u.issues.map(p=>Gi(p,c,Bi())));throw s1(f,l?.callee),f}return u.value},jh=e=>async(n,o,s,l)=>{const c=s?{...s,async:!0}:{async:!0};let u=n._zod.run({value:o,issues:[]},c);if(u instanceof Promise&&(u=await u),u.issues.length){const f=new(l?.Err??e)(u.issues.map(p=>Gi(p,c,Bi())));throw s1(f,l?.callee),f}return u.value},ou=e=>(n,o,s)=>{const l=s?{...s,async:!1}:{async:!1},c=n._zod.run({value:o,issues:[]},l);if(c instanceof Promise)throw new zs;return c.issues.length?{success:!1,error:new(e??u1)(c.issues.map(u=>Gi(u,l,Bi())))}:{success:!0,data:c.value}},zD=ou(f1),iu=e=>async(n,o,s)=>{const l=s?{...s,async:!0}:{async:!0};let c=n._zod.run({value:o,issues:[]},l);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(u=>Gi(u,l,Bi())))}:{success:!0,data:c.value}},ND=iu(f1),kD=e=>(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return kh(e)(n,o,l)},jD=e=>(n,o,s)=>kh(e)(n,o,s),LD=e=>async(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return jh(e)(n,o,l)},PD=e=>async(n,o,s)=>jh(e)(n,o,s),ID=e=>(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return ou(e)(n,o,l)},UD=e=>(n,o,s)=>ou(e)(n,o,s),VD=e=>async(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return iu(e)(n,o,l)},HD=e=>async(n,o,s)=>iu(e)(n,o,s),FD=/^[cC][0-9a-z]{6,}$/,BD=/^[0-9a-z]+$/,ZD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,GD=/^[0-9a-vA-V]{20}$/,YD=/^[A-Za-z0-9]{27}$/,$D=/^[a-zA-Z0-9_-]{21}$/,qD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,XD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,d1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,QD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,KD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function WD(){return new RegExp(KD,"u")}const JD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ez=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,tz=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,nz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,h1=/^[A-Za-z0-9_-]*$/,oz=/^https?$/,iz=/^\+[1-9]\d{6,14}$/,p1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",sz=new RegExp(`^${p1}$`);function m1(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function az(e){return new RegExp(`^${m1(e)}$`)}function lz(e){const n=m1({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${n}(?:${o.join("|")})`;return new RegExp(`^${p1}T(?:${s})$`)}const cz=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},uz=/^[^A-Z]*$/,fz=/^[^a-z]*$/,so=Se("$ZodCheck",(e,n)=>{var o;e._zod??(e._zod={}),e._zod.def=n,(o=e._zod).onattach??(o.onattach=[])}),dz=Se("$ZodCheckMaxLength",(e,n)=>{var o;so.init(e,n),(o=e._zod.def).when??(o.when=s=>{const l=s.value;return!Dh(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<l&&(s._zod.bag.maximum=n.maximum)}),e._zod.check=s=>{const l=s.value;if(l.length<=n.maximum)return;const u=Nh(l);s.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:l,inst:e,continue:!n.abort})}}),hz=Se("$ZodCheckMinLength",(e,n)=>{var o;so.init(e,n),(o=e._zod.def).when??(o.when=s=>{const l=s.value;return!Dh(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>l&&(s._zod.bag.minimum=n.minimum)}),e._zod.check=s=>{const l=s.value;if(l.length>=n.minimum)return;const u=Nh(l);s.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:l,inst:e,continue:!n.abort})}}),pz=Se("$ZodCheckLengthEquals",(e,n)=>{var o;so.init(e,n),(o=e._zod.def).when??(o.when=s=>{const l=s.value;return!Dh(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag;l.minimum=n.length,l.maximum=n.length,l.length=n.length}),e._zod.check=s=>{const l=s.value,c=l.length;if(c===n.length)return;const u=Nh(l),f=c>n.length;s.issues.push({origin:u,...f?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!n.abort})}}),su=Se("$ZodCheckStringFormat",(e,n)=>{var o,s;so.init(e,n),e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=n.format,n.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(n.pattern))}),n.pattern?(o=e._zod).check??(o.check=l=>{n.pattern.lastIndex=0,!n.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:n.format,input:l.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(s=e._zod).check??(s.check=()=>{})}),mz=Se("$ZodCheckRegex",(e,n)=>{su.init(e,n),e._zod.check=o=>{n.pattern.lastIndex=0,!n.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),gz=Se("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=uz),su.init(e,n)}),yz=Se("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=fz),su.init(e,n)}),vz=Se("$ZodCheckIncludes",(e,n)=>{so.init(e,n);const o=nu(n.includes),s=new RegExp(typeof n.position=="number"?`^.{${n.position}}${o}`:o);n.pattern=s,e._zod.onattach.push(l=>{const c=l._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=l=>{l.value.includes(n.includes,n.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:l.value,inst:e,continue:!n.abort})}}),bz=Se("$ZodCheckStartsWith",(e,n)=>{so.init(e,n);const o=new RegExp(`^${nu(n.prefix)}.*`);n.pattern??(n.pattern=o),e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(n.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:s.value,inst:e,continue:!n.abort})}}),Sz=Se("$ZodCheckEndsWith",(e,n)=>{so.init(e,n);const o=new RegExp(`.*${nu(n.suffix)}$`);n.pattern??(n.pattern=o),e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(n.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:s.value,inst:e,continue:!n.abort})}}),wz=Se("$ZodCheckOverwrite",(e,n)=>{so.init(e,n),e._zod.check=o=>{o.value=n.tx(o.value)}});class xz{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const s=n.split(`
17
+ components: `).concat(qg(c),"\n```")),[2,u]}})})}}}function kC(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Eg,"/npm-monitoring"),!0),e.send()}catch(n){console.error(n)}}function jC(e){var n;return e===void 0&&(e={}),qr(this,void 0,void 0,function(){var o,s,l;return Xr(this,function(c){switch(c.label){case 0:return(!((n=e.monitoring)!==null&&n!==void 0)||n)&&kC(),o=e.delayFallback,s=e.debug,[4,zC(o)];case 1:return c.sent(),l=CC({cache:{},debug:s}),[2,NC(l,s)]}})})}var LC={load:jC,hashComponents:Xg,componentsToDebugString:qg};function Qg(e){var n,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(o=Qg(e[n]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Kg(){for(var e,n,o=0,s="",l=arguments.length;o<l;o++)(e=arguments[o])&&(n=Qg(e))&&(s&&(s+=" "),s+=n);return s}const Xf="-",PC=e=>{const n=UC(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{const f=u.split(Xf);return f[0]===""&&f.length!==1&&f.shift(),Wg(f,n)||IC(u)},getConflictingClassGroupIds:(u,f)=>{const p=o[u]||[];return f&&s[u]?[...p,...s[u]]:p}}},Wg=(e,n)=>{if(e.length===0)return n.classGroupId;const o=e[0],s=n.nextPart.get(o),l=s?Wg(e.slice(1),s):void 0;if(l)return l;if(n.validators.length===0)return;const c=e.join(Xf);return n.validators.find(({validator:u})=>u(c))?.classGroupId},Jg=/^\[(.+)\]$/,IC=e=>{if(Jg.test(e)){const n=Jg.exec(e)[1],o=n?.substring(0,n.indexOf(":"));if(o)return"arbitrary.."+o}},UC=e=>{const{theme:n,prefix:o}=e,s={nextPart:new Map,validators:[]};return HC(Object.entries(e.classGroups),o).forEach(([c,u])=>{Qf(u,s,c,n)}),s},Qf=(e,n,o,s)=>{e.forEach(l=>{if(typeof l=="string"){const c=l===""?n:ey(n,l);c.classGroupId=o;return}if(typeof l=="function"){if(VC(l)){Qf(l(s),n,o,s);return}n.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([c,u])=>{Qf(u,ey(n,c),o,s)})})},ey=(e,n)=>{let o=e;return n.split(Xf).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},VC=e=>e.isThemeGetter,HC=(e,n)=>n?e.map(([o,s])=>{const l=s.map(c=>typeof c=="string"?n+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([u,f])=>[n+u,f])):c);return[o,l]}):e,FC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,o=new Map,s=new Map;const l=(c,u)=>{o.set(c,u),n++,n>e&&(n=0,s=o,o=new Map)};return{get(c){let u=o.get(c);if(u!==void 0)return u;if((u=s.get(c))!==void 0)return l(c,u),u},set(c,u){o.has(c)?o.set(c,u):l(c,u)}}},ty="!",BC=e=>{const{separator:n,experimentalParseClassName:o}=e,s=n.length===1,l=n[0],c=n.length,u=f=>{const p=[];let h=0,g=0,y;for(let C=0;C<f.length;C++){let E=f[C];if(h===0){if(E===l&&(s||f.slice(C,C+c)===n)){p.push(f.slice(g,C)),g=C+c;continue}if(E==="/"){y=C;continue}}E==="["?h++:E==="]"&&h--}const b=p.length===0?f:f.substring(g),S=b.startsWith(ty),x=S?b.substring(1):b,T=y&&y>g?y-g:void 0;return{modifiers:p,hasImportantModifier:S,baseClassName:x,maybePostfixModifierPosition:T}};return o?f=>o({className:f,parseClassName:u}):u},ZC=e=>{if(e.length<=1)return e;const n=[];let o=[];return e.forEach(s=>{s[0]==="["?(n.push(...o.sort(),s),o=[]):o.push(s)}),n.push(...o.sort()),n},GC=e=>({cache:FC(e.cacheSize),parseClassName:BC(e),...PC(e)}),YC=/\s+/,$C=(e,n)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:l}=n,c=[],u=e.trim().split(YC);let f="";for(let p=u.length-1;p>=0;p-=1){const h=u[p],{modifiers:g,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:S}=o(h);let x=!!S,T=s(x?b.substring(0,S):b);if(!T){if(!x){f=h+(f.length>0?" "+f:f);continue}if(T=s(b),!T){f=h+(f.length>0?" "+f:f);continue}x=!1}const C=ZC(g).join(":"),E=y?C+ty:C,L=E+T;if(c.includes(L))continue;c.push(L);const j=l(T,x);for(let k=0;k<j.length;++k){const R=j[k];c.push(E+R)}f=h+(f.length>0?" "+f:f)}return f};function qC(){let e=0,n,o,s="";for(;e<arguments.length;)(n=arguments[e++])&&(o=ny(n))&&(s&&(s+=" "),s+=o);return s}const ny=e=>{if(typeof e=="string")return e;let n,o="";for(let s=0;s<e.length;s++)e[s]&&(n=ny(e[s]))&&(o&&(o+=" "),o+=n);return o};function XC(e,...n){let o,s,l,c=u;function u(p){const h=n.reduce((g,y)=>y(g),e());return o=GC(h),s=o.cache.get,l=o.cache.set,c=f,f(p)}function f(p){const h=s(p);if(h)return h;const g=$C(p,o);return l(p,g),g}return function(){return c(qC.apply(null,arguments))}}const qt=e=>{const n=o=>o[e]||[];return n.isThemeGetter=!0,n},ry=/^\[(?:([a-z-]+):)?(.+)\]$/i,QC=/^\d+\/\d+$/,KC=new Set(["px","full","screen"]),WC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JC=/\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$/,eR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mo=e=>gs(e)||KC.has(e)||QC.test(e),Yo=e=>ys(e,"length",uR),gs=e=>!!e&&!Number.isNaN(Number(e)),Kf=e=>ys(e,"number",gs),Ra=e=>!!e&&Number.isInteger(Number(e)),rR=e=>e.endsWith("%")&&gs(e.slice(0,-1)),yt=e=>ry.test(e),$o=e=>WC.test(e),oR=new Set(["length","size","percentage"]),iR=e=>ys(e,oR,oy),sR=e=>ys(e,"position",oy),aR=new Set(["image","url"]),lR=e=>ys(e,aR,dR),cR=e=>ys(e,"",fR),Oa=()=>!0,ys=(e,n,o)=>{const s=ry.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):o(s[2]):!1},uR=e=>JC.test(e)&&!eR.test(e),oy=()=>!1,fR=e=>tR.test(e),dR=e=>nR.test(e),Wf=XC(()=>{const e=qt("colors"),n=qt("spacing"),o=qt("blur"),s=qt("brightness"),l=qt("borderColor"),c=qt("borderRadius"),u=qt("borderSpacing"),f=qt("borderWidth"),p=qt("contrast"),h=qt("grayscale"),g=qt("hueRotate"),y=qt("invert"),b=qt("gap"),S=qt("gradientColorStops"),x=qt("gradientColorStopPositions"),T=qt("inset"),C=qt("margin"),E=qt("opacity"),L=qt("padding"),j=qt("saturate"),k=qt("scale"),R=qt("sepia"),N=qt("skew"),z=qt("space"),P=qt("translate"),K=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",yt,n],te=()=>[yt,n],ee=()=>["",mo,Yo],F=()=>["auto",gs,yt],I=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",yt],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[gs,yt];return{cacheSize:500,separator:":",theme:{colors:[Oa],spacing:[mo,Yo],blur:["none","",$o,yt],brightness:A(),borderColor:[e],borderRadius:["none","","full",$o,yt],borderSpacing:te(),borderWidth:ee(),contrast:A(),grayscale:B(),hueRotate:A(),invert:B(),gap:te(),gradientColorStops:[e],gradientColorStopPositions:[rR,Yo],inset:q(),margin:q(),opacity:A(),padding:te(),saturate:A(),scale:A(),sepia:B(),skew:A(),space:te(),translate:te()},classGroups:{aspect:[{aspect:["auto","square","video",yt]}],container:["container"],columns:[{columns:[$o]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...I(),yt]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ra,yt]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",yt]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Ra,yt]}],"grid-cols":[{"grid-cols":[Oa]}],"col-start-end":[{col:["auto",{span:["full",Ra,yt]},yt]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Oa]}],"row-start-end":[{row:["auto",{span:[Ra,yt]},yt]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",yt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",yt]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",yt,n]}],"min-w":[{"min-w":[yt,n,"min","max","fit"]}],"max-w":[{"max-w":[yt,n,"none","full","min","max","fit","prose",{screen:[$o]},$o]}],h:[{h:[yt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[yt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[yt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[yt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",$o,Yo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Kf]}],"font-family":[{font:[Oa]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",yt]}],"line-clamp":[{"line-clamp":["none",gs,Kf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mo,yt]}],"list-image":[{"list-image":["none",yt]}],"list-style-type":[{list:["none","disc","decimal",yt]}],"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:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mo,Yo]}],"underline-offset":[{"underline-offset":["auto",mo,yt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:te()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",yt]}],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",yt]}],"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:[...I(),sR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:_()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[mo,yt]}],"outline-w":[{outline:[mo,Yo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[mo,Yo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$o,cR]}],"shadow-color":[{shadow:[Oa]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",$o,yt]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[j]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",yt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",yt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",yt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Ra,yt]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",yt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",yt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":te()}],"scroll-mx":[{"scroll-mx":te()}],"scroll-my":[{"scroll-my":te()}],"scroll-ms":[{"scroll-ms":te()}],"scroll-me":[{"scroll-me":te()}],"scroll-mt":[{"scroll-mt":te()}],"scroll-mr":[{"scroll-mr":te()}],"scroll-mb":[{"scroll-mb":te()}],"scroll-ml":[{"scroll-ml":te()}],"scroll-p":[{"scroll-p":te()}],"scroll-px":[{"scroll-px":te()}],"scroll-py":[{"scroll-py":te()}],"scroll-ps":[{"scroll-ps":te()}],"scroll-pe":[{"scroll-pe":te()}],"scroll-pt":[{"scroll-pt":te()}],"scroll-pr":[{"scroll-pr":te()}],"scroll-pb":[{"scroll-pb":te()}],"scroll-pl":[{"scroll-pl":te()}],"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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",yt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[mo,Yo,Kf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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-s","border-color-e","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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),hR=[];function _a(e){v.useEffect(e,hR)}const iy={};function vn(e,n){const o=v.useRef(iy);return o.current===iy&&(o.current=e(n)),o}function pR(e,n){return function(s,...l){const c=new URL(e);return c.searchParams.set("code",s.toString()),l.forEach(u=>c.searchParams.append("args[]",u)),`${n} error #${s}; visit ${c} for the full message.`}}const Jt=pR("https://base-ui.com/production-error","Base UI"),Jf=v.createContext(void 0);function sy(){const e=v.useContext(Jf);if(!e)throw new Error(Jt(73));return e}const Ae=(e,n,o,s,l,c,...u)=>{if(u.length>0)throw new Error(Jt(1));let f;if(e&&n&&o&&s&&l&&c)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y),x=o(p,h,g,y),T=s(p,h,g,y),C=l(p,h,g,y);return c(b,S,x,T,C,h,g,y)};else if(e&&n&&o&&s&&l)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y),x=o(p,h,g,y),T=s(p,h,g,y);return l(b,S,x,T,h,g,y)};else if(e&&n&&o&&s)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y),x=o(p,h,g,y);return s(b,S,x,h,g,y)};else if(e&&n&&o)f=(p,h,g,y)=>{const b=e(p,h,g,y),S=n(p,h,g,y);return o(b,S,h,g,y)};else if(e&&n)f=(p,h,g,y)=>{const b=e(p,h,g,y);return n(b,h,g,y)};else if(e)f=e;else throw new Error("Missing arguments");return f};var Kl=Symbol("NOT_FOUND");function mR(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function gR(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function yR(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(o=>typeof o=="function")){const o=e.map(s=>typeof s=="function"?`function ${s.name||"unnamed"}()`:typeof s).join(", ");throw new TypeError(`${n}[${o}]`)}}var ay=e=>Array.isArray(e)?e:[e];function vR(e){const n=Array.isArray(e[0])?e[0]:e;return yR(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function bR(e,n){const o=[],{length:s}=e;for(let l=0;l<s;l++)o.push(e[l].apply(null,n));return o}function SR(e){let n;return{get(o){return n&&e(n.key,o)?n.value:Kl},put(o,s){n={key:o,value:s}},getEntries(){return n?[n]:[]},clear(){n=void 0}}}function wR(e,n){let o=[];function s(f){const p=o.findIndex(h=>n(f,h.key));if(p>-1){const h=o[p];return p>0&&(o.splice(p,1),o.unshift(h)),h.value}return Kl}function l(f,p){s(f)===Kl&&(o.unshift({key:f,value:p}),o.length>e&&o.pop())}function c(){return o}function u(){o=[]}return{get:s,put:l,getEntries:c,clear:u}}var xR=(e,n)=>e===n;function ER(e){return function(o,s){if(o===null||s===null||o.length!==s.length)return!1;const{length:l}=o;for(let c=0;c<l;c++)if(!e(o[c],s[c]))return!1;return!0}}function TR(e,n){const o=typeof n=="object"?n:{equalityCheck:n},{equalityCheck:s=xR,maxSize:l=1,resultEqualityCheck:c}=o,u=ER(s);let f=0;const p=l<=1?SR(u):wR(l,u);function h(){let g=p.get(arguments);if(g===Kl){if(g=e.apply(null,arguments),f++,c){const b=p.getEntries().find(S=>c(S.value,g));b&&(g=b.value,f!==0&&f--)}p.put(arguments,g)}return g}return h.clearCache=()=>{p.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var CR=class{constructor(e){this.value=e}deref(){return this.value}},RR=typeof WeakRef<"u"?WeakRef:CR,OR=0,ly=1;function Wl(){return{s:OR,v:void 0,o:null,p:null}}function cy(e,n={}){let o=Wl();const{resultEqualityCheck:s}=n;let l,c=0;function u(){let f=o;const{length:p}=arguments;for(let y=0,b=p;y<b;y++){const S=arguments[y];if(typeof S=="function"||typeof S=="object"&&S!==null){let x=f.o;x===null&&(f.o=x=new WeakMap);const T=x.get(S);T===void 0?(f=Wl(),x.set(S,f)):f=T}else{let x=f.p;x===null&&(f.p=x=new Map);const T=x.get(S);T===void 0?(f=Wl(),x.set(S,f)):f=T}}const h=f;let g;if(f.s===ly)g=f.v;else if(g=e.apply(null,arguments),c++,s){const y=l?.deref?.()??l;y!=null&&s(y,g)&&(g=y,c!==0&&c--),l=typeof g=="object"&&g!==null||typeof g=="function"?new RR(g):g}return h.s=ly,h.v=g,g}return u.clearCache=()=>{o=Wl(),u.resetResultsCount()},u.resultsCount=()=>c,u.resetResultsCount=()=>{c=0},u}function uy(e,...n){const o=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,s=(...l)=>{let c=0,u=0,f,p={},h=l.pop();typeof h=="object"&&(p=h,h=l.pop()),mR(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const g={...o,...p},{memoize:y,memoizeOptions:b=[],argsMemoize:S=cy,argsMemoizeOptions:x=[]}=g,T=ay(b),C=ay(x),E=vR(l),L=y(function(){return c++,h.apply(null,arguments)},...T),j=S(function(){u++;const R=bR(E,arguments);return f=L.apply(null,R),f},...C);return Object.assign(j,{resultFunc:h,memoizedResultFunc:L,dependencies:E,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>f,recomputations:()=>c,resetRecomputations:()=>{c=0},memoize:y,argsMemoize:S})};return Object.assign(s,{withTypes:()=>s}),s}var _R=uy(cy),AR=Object.assign((e,n=_R)=>{gR(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const o=Object.keys(e),s=o.map(c=>e[c]);return n(s,(...c)=>c.reduce((u,f,p)=>(u[o[p]]=f,u),{}))},{withTypes:()=>AR});const MR=uy({memoize:TR,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),DR=(...e)=>{const n=new WeakMap;let o=1;const s=e[e.length-1],l=e.length-1||1,c=s.length-l;if(c>3)throw new Error(Jt(2));return(f,p,h,g)=>{let y=f.__cacheKey__;y||(y={id:o},f.__cacheKey__=y,o+=1);let b=n.get(y);if(!b){let S=e;const x=[void 0,void 0,void 0];switch(c){case 0:break;case 1:{S=[...e.slice(0,-1),()=>x[0],s];break}case 2:{S=[...e.slice(0,-1),()=>x[0],()=>x[1],s];break}case 3:{S=[...e.slice(0,-1),()=>x[0],()=>x[1],()=>x[2],s];break}default:throw new Error(Jt(2))}b=MR(...S),b.selectorArgs=x,n.set(y,b)}switch(b.selectorArgs[0]=p,b.selectorArgs[1]=h,b.selectorArgs[2]=g,c){case 0:return b(f);case 1:return b(f,p);case 2:return b(f,p,h);case 3:return b(f,p,h,g);default:throw new Error("unreachable")}}};var ed={exports:{}},td={};var fy;function zR(){if(fy)return td;fy=1;var e=ba();function n(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var o=typeof Object.is=="function"?Object.is:n,s=e.useState,l=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function f(y,b){var S=b(),x=s({inst:{value:S,getSnapshot:b}}),T=x[0].inst,C=x[1];return c(function(){T.value=S,T.getSnapshot=b,p(T)&&C({inst:T})},[y,S,b]),l(function(){return p(T)&&C({inst:T}),y(function(){p(T)&&C({inst:T})})},[y]),u(S),S}function p(y){var b=y.getSnapshot;y=y.value;try{var S=b();return!o(y,S)}catch{return!0}}function h(y,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return td.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,td}var dy;function hy(){return dy||(dy=1,ed.exports=zR()),ed.exports}var NR=hy(),nd={exports:{}},rd={};var py;function kR(){if(py)return rd;py=1;var e=ba(),n=hy();function o(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var s=typeof Object.is=="function"?Object.is:o,l=n.useSyncExternalStore,c=e.useRef,u=e.useEffect,f=e.useMemo,p=e.useDebugValue;return rd.useSyncExternalStoreWithSelector=function(h,g,y,b,S){var x=c(null);if(x.current===null){var T={hasValue:!1,value:null};x.current=T}else T=x.current;x=f(function(){function E(N){if(!L){if(L=!0,j=N,N=b(N),S!==void 0&&T.hasValue){var z=T.value;if(S(z,N))return k=z}return k=N}if(z=k,s(j,N))return z;var P=b(N);return S!==void 0&&S(z,P)?(j=N,z):(j=N,k=P)}var L=!1,j,k,R=y===void 0?null:y;return[function(){return E(g())},R===null?void 0:function(){return E(R())}]},[g,y,b,S]);var C=l(h,x[0],x[1]);return u(function(){T.hasValue=!0,T.value=C},[C]),p(C),C},rd}var my;function jR(){return my||(my=1,nd.exports=kR()),nd.exports}var LR=jR();const PR=parseInt(v.version,10);function od(e){return PR>=e}const IR=od(19)?VR:HR;function St(e,n,o,s,l){return IR(e,n,o,s,l)}function UR(e,n,o,s,l){const c=v.useCallback(()=>n(e.getSnapshot(),o,s,l),[e,n,o,s,l]);return NR.useSyncExternalStore(e.subscribe,c,c)}function VR(e,n,o,s,l){return UR(e,n,o,s,l)}function HR(e,n,o,s,l){return LR.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,c=>n(c,o,s,l))}class gy{constructor(n){this.state=n,this.listeners=new Set,this.updateTick=0}subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)});getSnapshot=()=>this.state;setState(n){if(this.state===n)return;this.state=n,this.updateTick+=1;const o=this.updateTick;for(const s of this.listeners){if(o!==this.updateTick)return;s(n)}}update(n){for(const o in n)if(!Object.is(this.state[o],n[o])){this.setState({...this.state,...n});return}}set(n,o){Object.is(this.state[n],o)||this.setState({...this.state,[n]:o})}notifyAll(){const n={...this.state};this.setState(n)}use(n,o,s,l){return St(this,n,o,s,l)}}const id=Sg[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],FR=id&&id!==v.useLayoutEffect?id:e=>e();function Te(e){const n=vn(BR).current;return n.next=e,FR(n.effect),n.trampoline}function BR(){const e={next:void 0,callback:ZR,trampoline:(...n)=>e.callback?.(...n),effect:()=>{e.callback=e.next}};return e}function ZR(){}const ke=typeof document<"u"?v.useLayoutEffect:()=>{};function Tn(){}const yy=Object.freeze([]),rn=Object.freeze({});class Jl extends gy{constructor(n,o={},s){super(n),this.context=o,this.selectors=s}useSyncedValue(n,o){v.useDebugValue(n),ke(()=>{this.state[n]!==o&&this.set(n,o)},[n,o])}useSyncedValueWithCleanup(n,o){const s=this;ke(()=>(s.state[n]!==o&&s.set(n,o),()=>{s.set(n,void 0)}),[s,n,o])}useSyncedValues(n){const o=this,s=Object.values(n);ke(()=>{o.update(n)},[o,...s])}useControlledProp(n,o){v.useDebugValue(n);const s=o!==void 0;ke(()=>{s&&!Object.is(this.state[n],o)&&super.setState({...this.state,[n]:o})},[n,o,s])}select(n,o,s,l){const c=this.selectors[n];return c(this.state,o,s,l)}useState(n,o,s,l){return v.useDebugValue(n),St(this,this.selectors[n],o,s,l)}useContextCallback(n,o){v.useDebugValue(n);const s=Te(o??Tn);this.context[n]=s}useStateSetter(n){const o=v.useRef(void 0);return o.current===void 0&&(o.current=s=>{this.set(n,s)}),o.current}observe(n,o){let s;typeof n=="function"?s=n:s=this.selectors[n];let l=s(this.state);return o(l,l,this),this.subscribe(c=>{const u=s(c);if(!Object.is(l,u)){const f=l;l=u,o(u,f,this)}})}}var Cr=ng();function ec(){return typeof window<"u"}function Hn(e){return sd(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Qr(e){var n;return(n=(sd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function sd(e){return ec()?e instanceof Node||e instanceof Lt(e).Node:!1}function bt(e){return ec()?e instanceof Element||e instanceof Lt(e).Element:!1}function Zt(e){return ec()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function vs(e){return!ec()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function qo(e){const{overflow:n,overflowX:o,overflowY:s,display:l}=Zn(e);return/auto|scroll|overlay|hidden|clip/.test(n+s+o)&&l!=="inline"&&l!=="contents"}function GR(e){return/^(table|td|th)$/.test(Hn(e))}function tc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const YR=/transform|translate|scale|rotate|perspective|filter/,$R=/paint|layout|strict|content/,Mi=e=>!!e&&e!=="none";let ad;function ld(e){const n=bt(e)?Zn(e):e;return Mi(n.transform)||Mi(n.translate)||Mi(n.scale)||Mi(n.rotate)||Mi(n.perspective)||!nc()&&(Mi(n.backdropFilter)||Mi(n.filter))||YR.test(n.willChange||"")||$R.test(n.contain||"")}function qR(e){let n=yo(e);for(;Zt(n)&&!go(n);){if(ld(n))return n;if(tc(n))return null;n=yo(n)}return null}function nc(){return ad==null&&(ad=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ad}function go(e){return/^(html|body|#document)$/.test(Hn(e))}function Zn(e){return Lt(e).getComputedStyle(e)}function rc(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yo(e){if(Hn(e)==="html")return e;const n=e.assignedSlot||e.parentNode||vs(e)&&e.host||Qr(e);return vs(n)?n.host:n}function vy(e){const n=yo(e);return go(n)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(n)&&qo(n)?n:vy(n)}function Aa(e,n,o){var s;n===void 0&&(n=[]),o===void 0&&(o=!0);const l=vy(e),c=l===((s=e.ownerDocument)==null?void 0:s.body),u=Lt(l);if(c){const f=cd(u);return n.concat(u,u.visualViewport||[],qo(l)?l:[],f&&o?Aa(f):[])}else return n.concat(l,Aa(l,[],o))}function cd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kr(...e){return()=>{for(let n=0;n<e.length;n+=1){const o=e[n];o&&o()}}}function Je(e){return e?.ownerDocument||document}function pt(e,n,o,s){return e.addEventListener(n,o,s),()=>{e.removeEventListener(n,o,s)}}const oc=null;class XR{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=n=>{this.isScheduled=!1;const o=this.callbacks,s=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,s>0)for(let l=0;l<o.length;l+=1)o[l]?.(n)};request(n){const o=this.nextId;return this.nextId+=1,this.callbacks.push(n),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(n){const o=n-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}}const ic=new XR;class Wr{static create(){return new Wr}static request(n){return ic.request(n)}static cancel(n){return ic.cancel(n)}currentId=oc;request(n){this.cancel(),this.currentId=ic.request(()=>{this.currentId=oc,n()})}cancel=()=>{this.currentId!==oc&&(ic.cancel(this.currentId),this.currentId=oc)};disposeEffect=()=>this.cancel}function Ma(){const e=vn(Wr.create).current;return _a(e.disposeEffect),e}const Da=0;class cr{static create(){return new cr}currentId=Da;start(n,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Da,o()},n)}isStarted(){return this.currentId!==Da}clear=()=>{this.currentId!==Da&&(clearTimeout(this.currentId),this.currentId=Da)};disposeEffect=()=>this.clear}function ur(){const e=vn(cr.create).current;return _a(e.disposeEffect),e}let by=0;function QR(e){return by+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${by}`}function ud(e,n){if(typeof e=="string")return{description:e};if(typeof e=="function"){const o=e(n);return typeof o=="string"?{description:o}:o}return e}const bs=typeof navigator<"u",fd=WR(),Sy=eO(),wy=JR(),dd=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),xy=fd.platform==="MacIntel"&&fd.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(fd.platform),KR=bs&&/apple/i.test(navigator.vendor),sc=bs&&/android/i.test(Sy)||/android/i.test(wy);bs&&Sy.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const Ey=wy.includes("jsdom/");function WR(){if(!bs)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function JR(){if(!bs)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:n,version:o})=>`${n}/${o}`).join(" "):navigator.userAgent}function eO(){if(!bs)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const hd="data-base-ui-focusable",Ty="active",Cy="selected",Ry="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Xo="ArrowLeft",Qo="ArrowRight",pd="ArrowUp",za="ArrowDown";function Nn(e){let n=e.activeElement;for(;n?.shadowRoot?.activeElement!=null;)n=n.shadowRoot.activeElement;return n}function Ie(e,n){if(!e||!n)return!1;const o=n.getRootNode?.();if(e.contains(n))return!0;if(o&&vs(o)){let s=n;for(;s;){if(e===s)return!0;s=s.parentNode||s.host}}return!1}function Xt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Oy(e,n){if(!bt(e))return!1;const o=e;if(n.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(const[,s]of n.entries())if(Ie(s,o))return!s.hasAttribute("data-trigger-disabled");return!1}function Br(e,n){if(n==null)return!1;if("composedPath"in e)return e.composedPath().includes(n);const o=e;return o.target!=null&&n.contains(o.target)}function tO(e){return e.matches("html,body")}function md(e){return Zt(e)&&e.matches(Ry)}function nO(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ry}`)!=null}function gd(e){return e?e.getAttribute("role")==="combobox"&&md(e):!1}function yd(e){if(!e||Ey)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Na(e){return e?e.hasAttribute(hd)?e:e.querySelector(`[${hd}]`)||e:null}function Jr(e,n,o=!0){return e.filter(l=>l.parentId===n).flatMap(l=>[...!o||l.context?.open?[l]:[],...Jr(e,l.id,o)])}function _y(e,n){let o=[],s=e.find(l=>l.id===n)?.parentId;for(;s;){const l=e.find(c=>c.id===s);s=l?.parentId,l&&(o=o.concat(l))}return o}function fr(e){e.preventDefault(),e.stopPropagation()}function rO(e){return"nativeEvent"in e}function Ay(e){return e.pointerType===""&&e.isTrusted?!0:sc&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function My(e){return Ey?!1:!sc&&e.width===0&&e.height===0||sc&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function ka(e,n){const o=["mouse","pen"];return n||o.push("",void 0),o.includes(e)}function Dy(e){const n=e.type;return n==="click"||n==="mousedown"||n==="keydown"||n==="keyup"}const oO=["top","right","bottom","left"],Ss=Math.min,dr=Math.max,ac=Math.round,Di=Math.floor,eo=e=>({x:e,y:e}),iO={left:"right",right:"left",bottom:"top",top:"bottom"};function vd(e,n,o){return dr(e,Ss(n,o))}function vo(e,n){return typeof e=="function"?e(n):e}function Wn(e){return e.split("-")[0]}function Ko(e){return e.split("-")[1]}function bd(e){return e==="x"?"y":"x"}function Sd(e){return e==="y"?"height":"width"}function Rr(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function wd(e){return bd(Rr(e))}function sO(e,n,o){o===void 0&&(o=!1);const s=Ko(e),l=wd(e),c=Sd(l);let u=l==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(u=lc(u)),[u,lc(u)]}function aO(e){const n=lc(e);return[xd(e),n,xd(n)]}function xd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zy=["left","right"],Ny=["right","left"],lO=["top","bottom"],cO=["bottom","top"];function uO(e,n,o){switch(e){case"top":case"bottom":return o?n?Ny:zy:n?zy:Ny;case"left":case"right":return n?lO:cO;default:return[]}}function fO(e,n,o,s){const l=Ko(e);let c=uO(Wn(e),o==="start",s);return l&&(c=c.map(u=>u+"-"+l),n&&(c=c.concat(c.map(xd)))),c}function lc(e){const n=Wn(e);return iO[n]+e.slice(n.length)}function dO(e){return{top:0,right:0,bottom:0,left:0,...e}}function ky(e){return typeof e!="number"?dO(e):{top:e,right:e,bottom:e,left:e}}function ja(e){const{x:n,y:o,width:s,height:l}=e;return{width:s,height:l,top:o,left:n,right:n+s,bottom:o+l,x:n,y:o}}function cc(e,n,o){return Math.floor(e/n)!==o}function uc(e,n){return n<0||n>=e.length}function Ed(e,n){return Gn(e.current,{disabledIndices:n})}function jy(e,n){return Gn(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:n})}function Gn(e,{startingIndex:n=-1,decrement:o=!1,disabledIndices:s,amount:l=1}={}){let c=n;do c+=o?-l:l;while(c>=0&&c<=e.length-1&&ws(e,c,s));return c}function hO(e,{event:n,orientation:o,loopFocus:s,onLoop:l,rtl:c,cols:u,disabledIndices:f,minIndex:p,maxIndex:h,prevIndex:g,stopEvent:y=!1}){let b=g,S;if(n.key===pd?S="up":n.key===za&&(S="down"),S){const x=[],T=[];let C=!1,E=0;{let K=null,G=-1;e.forEach((q,te)=>{if(q==null)return;E+=1;const ee=q.closest('[role="row"]');ee&&(C=!0),(ee!==K||G===-1)&&(K=ee,G+=1,x[G]=[]),x[G].push(te),T[te]=G})}let L=!1,j=0;if(C)for(const K of x){const G=K.length;G>j&&(j=G),G!==u&&(L=!0)}const k=L&&E<e.length,R=j||u,N=K=>{if(!L||g===-1)return;const G=T[g];if(G==null)return;const q=x[G].indexOf(g),te=K==="up"?-1:1;for(let ee=G+te,F=0;F<x.length;F+=1,ee+=te){if(ee<0||ee>=x.length){if(!s||k)return;if(ee=ee<0?x.length-1:0,l){const _=Math.min(q,x[ee].length-1),O=x[ee][_]??x[ee][0],U=l(n,g,O);ee=T[U]??ee}}const I=x[ee];for(let _=Math.min(q,I.length-1);_>=0;_-=1){const O=I[_];if(!ws(e,O,f))return O}}},z=K=>{if(!k||g===-1)return;const G=g%R,q=K==="up"?-R:R,te=h-h%R,ee=Di(h/R)+1;for(let F=g-G+q,I=0;I<ee;I+=1,F+=q){if(F<0||F>h){if(!s)return;F=F<0?te:0}const _=Math.min(F+R-1,h);for(let O=Math.min(F+G,_);O>=F;O-=1)if(!ws(e,O,f))return O}};y&&fr(n);const P=N(S)??z(S);if(P!==void 0)b=P;else if(g===-1)b=S==="up"?h:p;else if(b=Gn(e,{startingIndex:g,amount:R,decrement:S==="up",disabledIndices:f}),s){if(S==="up"&&(g-R<p||b<0)){const K=g%R,G=h%R,q=h-(G-K);G===K?b=h:b=G>K?q:q-R,l&&(b=l(n,g,b))}S==="down"&&g+R>h&&(b=Gn(e,{startingIndex:g%R-R,amount:R,disabledIndices:f}),l&&(b=l(n,g,b)))}uc(e,b)&&(b=g)}if(o==="both"){const x=Di(g/u);n.key===(c?Xo:Qo)&&(y&&fr(n),g%u!==u-1?(b=Gn(e,{startingIndex:g,disabledIndices:f}),s&&cc(b,u,x)&&(b=Gn(e,{startingIndex:g-g%u-1,disabledIndices:f}),l&&(b=l(n,g,b)))):s&&(b=Gn(e,{startingIndex:g-g%u-1,disabledIndices:f}),l&&(b=l(n,g,b))),cc(b,u,x)&&(b=g)),n.key===(c?Qo:Xo)&&(y&&fr(n),g%u!==0?(b=Gn(e,{startingIndex:g,decrement:!0,disabledIndices:f}),s&&cc(b,u,x)&&(b=Gn(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:f}),l&&(b=l(n,g,b)))):s&&(b=Gn(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:f}),l&&(b=l(n,g,b))),cc(b,u,x)&&(b=g));const T=Di(h/u)===x;uc(e,b)&&(s&&T?(b=n.key===(c?Qo:Xo)?h:Gn(e,{startingIndex:g-g%u-1,disabledIndices:f}),l&&(b=l(n,g,b))):b=g)}return b}function pO(e,n,o){const s=[];let l=0;return e.forEach(({width:c,height:u},f)=>{let p=!1;for(;!p;){const h=[];for(let g=0;g<c;g+=1)for(let y=0;y<u;y+=1)h.push(l+g+y*n);l%n+c<=n&&h.every(g=>s[g]==null)?(h.forEach(g=>{s[g]=f}),p=!0):l+=1}}),[...s]}function mO(e,n,o,s,l){if(e===-1)return-1;const c=o.indexOf(e),u=n[e];switch(l){case"tl":return c;case"tr":return u?c+u.width-1:c;case"bl":return u?c+(u.height-1)*s:c;case"br":return o.lastIndexOf(e);default:return-1}}function gO(e,n){return n.flatMap((o,s)=>e.includes(o)?[s]:[])}function ws(e,n,o){if(typeof o=="function"?o(n):o?.includes(n)??!1)return!0;const l=e[n];return l?fc(l)?!o&&(l.hasAttribute("disabled")||l.getAttribute("aria-disabled")==="true"):!0:!1}function yO(e){return e.visibility==="hidden"||e.visibility==="collapse"}function fc(e,n=e?Zn(e):null){return!e||!e.isConnected||!n||yO(n)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():n.display!=="none"&&n.display!=="contents"}const vO='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function bO(e){const n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;const o=e.getRootNode();return vs(o)?o.host:null}function Td(e){for(const n of Array.from(e.children))if(Hn(n)==="summary")return n;return null}function SO(e,n){const o=Td(n);return!!o&&(e===o||Ie(o,e))}function Ly(e){const n=e?Hn(e):"";return e!=null&&e.matches(vO)&&(n!=="summary"||e.parentElement!=null&&Hn(e.parentElement)==="details"&&Td(e.parentElement)===e)&&(n!=="details"||Td(e)==null)&&(n!=="input"||e.type!=="hidden")}function Py(e){if(!Ly(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=bO(n)){const o=n!==e,s=Hn(n)==="slot";if(n.hasAttribute("inert")||o&&Hn(n)==="details"&&!n.open&&!SO(e,n)||n.hasAttribute("hidden")||!s&&!wO(n,o))return!1}return!0}function wO(e,n){const o=Zn(e);return n?o.display!=="none":fc(e,o)}function Iy(e){const n=e.tabIndex;if(n<0){const o=Hn(e);if(o==="details"||o==="audio"||o==="video"||Zt(e)&&e.isContentEditable)return 0}return n}function Cd(e){if(Hn(e)!=="input")return null;const n=e;return n.type==="radio"&&n.name!==""?n:null}function xO(e,n){const o=Cd(e);if(!o)return!0;const s=n.find(l=>{const c=Cd(l);return c?.name===o.name&&c.form===o.form&&c.checked});return s?s===o:n.find(l=>{const c=Cd(l);return c?.name===o.name&&c.form===o.form})===o}function Uy(e){if(Zt(e)&&Hn(e)==="slot"){const n=e.assignedElements({flatten:!0});if(n.length>0)return n}return Zt(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Vy(e,n){Uy(e).forEach(o=>{Ly(o)&&n.push(o),Vy(o,n)})}function Hy(e,n,o){Uy(e).forEach(s=>{Zt(s)&&s.matches(n)&&o.push(s),Hy(s,n,o)})}function Rd(e){return Py(e)&&Iy(e)>=0}function Fy(e){const n=[];return Vy(e,n),n.filter(Py)}function La(e){const n=Fy(e);return n.filter(o=>Iy(o)>=0&&xO(o,n))}function By(e,n){const o=La(e),s=o.length;if(s===0)return;const l=Nn(Je(e)),c=o.indexOf(l),u=c===-1?n===1?0:s-1:c+n;return o[u]}function Od(e){return By(Je(e).body,1)||e}function Zy(e){return By(Je(e).body,-1)||e}function Gy(e,n){if(!e)return null;const o=La(Je(e).body),s=o.length;if(s===0)return null;const l=o.indexOf(e);if(l===-1)return null;const c=(l+n+s)%s;return o[c]}function EO(e){return Gy(e,1)}function TO(e){return Gy(e,-1)}function xs(e,n){const o=n||e.currentTarget,s=e.relatedTarget;return!s||!Ie(o,s)}function CO(e){La(e).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function Yy(e){const n=[];Hy(e,"[data-tabindex]",n),n.forEach(o=>{const s=o.dataset.tabindex;delete o.dataset.tabindex,s?o.setAttribute("tabindex",s):o.removeAttribute("tabindex")})}const dc=DR(e=>e.toasts,e=>{const n=new Map;let o=0,s=0;return e.forEach((l,c)=>{const u=l.transitionStatus==="ending";n.set(l.id,{value:l,domIndex:c,visibleIndex:u?-1:o,offsetY:s}),s+=l.height||0,u||(o+=1)}),n}),to={toasts:Ae(e=>e.toasts),isEmpty:Ae(e=>e.toasts.length===0),toast:Ae(dc,(e,n)=>e.get(n)?.value),toastIndex:Ae(dc,(e,n)=>e.get(n)?.domIndex??-1),toastOffsetY:Ae(dc,(e,n)=>e.get(n)?.offsetY??0),toastVisibleIndex:Ae(dc,(e,n)=>e.get(n)?.visibleIndex??-1),hovering:Ae(e=>e.hovering),focused:Ae(e=>e.focused),expanded:Ae(e=>e.hovering||e.focused),expandedOrOutOfFocus:Ae(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:Ae(e=>e.prevFocusElement)};class RO extends Jl{timers=new Map;areTimersPaused=!1;constructor(n){super(n,{},to)}setFocused(n){this.set("focused",n)}setHovering(n){this.set("hovering",n)}setIsWindowFocused(n){this.set("isWindowFocused",n)}setPrevFocusElement(n){this.set("prevFocusElement",n)}setViewport=n=>{this.set("viewport",n)};disposeEffect=()=>()=>{this.timers.forEach(n=>{n.timeout?.clear()}),this.timers.clear()};removeToast(n,o={}){const s=to.toastIndex(this.state,n);if(s===-1)return;const l=this.state.toasts[s];o.skipOnRemove||l?.onRemove?.();const c=[...this.state.toasts];c.splice(s,1),this.setToasts(c)}addToast=n=>{const{timeout:o,limit:s}=this.state,l=n.id||QR("toast");if(n.id){const h=to.toast(this.state,n.id);if(h)if(h.transitionStatus==="ending")this.removeToast(n.id,{skipOnRemove:!0});else{const{id:g,transitionStatus:y,...b}=n;return this.updateToastInternal(n.id,b,{resetTimer:!0,markUpdated:!0}),n.id}}const c={...n,id:l,updateKey:0,transitionStatus:"starting"},u=[c,...this.state.toasts],f=u.filter(h=>h.transitionStatus!=="ending");if(f.length>s){const h=f.length-s,g=f.slice(-h),y=new Set(g.map(b=>b.id));this.setToasts(u.map(b=>{const S=y.has(b.id);return b.limited!==S?{...b,limited:S}:b}))}else this.setToasts(u.map(h=>h.limited?{...h,limited:!1}:h));const p=c.timeout??o;return c.type!=="loading"&&p>0&&this.scheduleTimer(l,p,()=>this.closeToast(l)),to.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),l};updateToast=(n,o)=>{this.updateToastInternal(n,o,{markUpdated:!0})};updateToastInternal=(n,o,s={})=>{const{timeout:l,toasts:c}=this.state,u=to.toast(this.state,n)??null;if(!u||u.transitionStatus==="ending")return;const f={...u,...o,...s.markUpdated&&{updateKey:(u.updateKey??0)+1}};this.setToasts(c.map(T=>T.id===n?f:T));const p=f.timeout??l,h=u?.timeout??l,g=Object.hasOwn(o,"timeout"),y=f.transitionStatus!=="ending"&&f.type!=="loading"&&p>0,b=this.timers.has(n),S=h!==p,x=u?.type==="loading";if(!y&&b){this.timers.get(n)?.timeout?.clear(),this.timers.delete(n);return}if(y&&(!b||S||g||x||s.resetTimer)){const T=this.timers.get(n);T&&(T.timeout?.clear(),this.timers.delete(n)),this.scheduleTimer(n,p,()=>this.closeToast(n)),to.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=n=>{const o=n===void 0,{limit:s,toasts:l}=this.state;let c;if(o)c=l,this.timers.forEach(h=>{h.timeout?.clear()}),this.timers.clear();else{const h=to.toast(this.state,n);if(!h)return;c=[h];const g=this.timers.get(n);g?.timeout&&(g.timeout.clear(),this.timers.delete(n))}let u=0;const p={toasts:l.map(h=>{if(o||h.id===n)return{...h,transitionStatus:"ending",height:0};if(h.transitionStatus==="ending")return h;const g=u>=s;return u+=1,h.limited!==g?{...h,limited:g}:h})};(o||l.length===1)&&(p.hovering=!1,p.focused=!1),this.update(p),c.forEach(h=>{h.transitionStatus!=="ending"&&h.onClose?.()}),this.handleFocusManagement(n)};promiseToast=(n,o)=>{const s=ud(o.loading),l=this.addToast({...s,type:"loading"}),c=n.then(u=>{const f=ud(o.success,u);return this.updateToast(l,{...f,type:"success",timeout:f.timeout}),u}).catch(u=>{const f=ud(o.error,u);return this.updateToast(l,{...f,type:"error",timeout:f.timeout}),Promise.reject(u)});return{}.hasOwnProperty.call(o,"setPromise")&&o.setPromise(c),c};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(n=>{if(n.timeout){n.timeout.clear();const o=Date.now()-n.start,s=n.delay-o;n.remaining=s>0?s:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((n,o)=>{n.remaining=n.remaining>0?n.remaining:n.delay,n.timeout??=cr.create(),n.timeout.start(n.remaining,()=>{this.timers.delete(o),n.callback()}),n.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=n=>{if(n.pointerType!=="touch")return;const o=Xt(n);Ie(this.state.viewport,o)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(n,o,s){const l=Date.now(),c=!to.expandedOrOutOfFocus(this.state),u=c?cr.create():void 0;u?.start(o,()=>{this.timers.delete(n),s()}),this.timers.set(n,{timeout:u,start:c?l:0,delay:o,remaining:o,callback:s})}setToasts(n){const o={toasts:n};n.length===0&&(o.hovering=!1,o.focused=!1),this.update(o)}handleFocusManagement(n){const o=Nn(Je(this.state.viewport));if(!this.state.viewport||!Ie(this.state.viewport,o)||!yd(o))return;if(n===void 0){this.restoreFocusToPrevElement();return}const s=to.toasts(this.state),l=to.toastIndex(this.state,n);let c=null,u=l+1;for(;u<s.length;){if(s[u].transitionStatus!=="ending"){c=s[u];break}u+=1}if(!c)for(u=l-1;u>=0;){if(s[u].transitionStatus!=="ending"){c=s[u];break}u-=1}c?c.ref?.current?.focus():this.restoreFocusToPrevElement()}}const OO=function(n){const{children:o,timeout:s=5e3,limit:l=3,toastManager:c}=n,u=vn(()=>new RO({timeout:s,limit:l,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return _a(u.disposeEffect),v.useEffect(function(){return c?c[" subscribe"](({action:h,options:g})=>{const y=g.id;h==="promise"&&g.promise?u.promiseToast(g.promise,g):h==="update"&&y?u.updateToast(y,g):h==="close"?u.closeToast(y):u.addToast(g)}):void 0},[u,s,c]),u.useSyncedValues({timeout:s,limit:l}),D.jsx(Jf.Provider,{value:u,children:o})},$y={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},hc={...$y,position:"fixed",top:0,left:0},qy={...$y,position:"absolute"},bo=v.forwardRef(function(n,o){const[s,l]=v.useState();ke(()=>{KR&&l("button")},[]);const c={tabIndex:0,role:s};return D.jsx("span",{...n,ref:o,style:hc,"aria-hidden":s?void 0:!0,...c,"data-base-ui-focus-guard":""})});function zi(e,n,o,s){const l=vn(Xy).current;return AO(l,e,n,o,s)&&Qy(l,[e,n,o,s]),l.callback}function _O(e){const n=vn(Xy).current;return MO(n,e)&&Qy(n,e),n.callback}function Xy(){return{callback:null,cleanup:null,refs:[]}}function AO(e,n,o,s,l){return e.refs[0]!==n||e.refs[1]!==o||e.refs[2]!==s||e.refs[3]!==l}function MO(e,n){return e.refs.length!==n.length||e.refs.some((o,s)=>o!==n[s])}function Qy(e,n){if(e.refs=n,n.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){const s=Array(n.length).fill(null);for(let l=0;l<n.length;l+=1){const c=n[l];if(c!=null)switch(typeof c){case"function":{const u=c(o);typeof u=="function"&&(s[l]=u);break}case"object":{c.current=o;break}}}e.cleanup=()=>{for(let l=0;l<n.length;l+=1){const c=n[l];if(c!=null)switch(typeof c){case"function":{const u=s[l];typeof u=="function"?u():c(null);break}case"object":{c.current=null;break}}}}}}}function Ky(e){if(!v.isValidElement(e))return null;const n=e,o=n.props;return(od(19)?o?.ref:n.ref)??null}function _d(e,n){if(e&&!n)return e;if(!e&&n)return n;if(e||n)return{...e,...n}}function DO(e,n){const o={};for(const s in e){const l=e[s];if(n?.hasOwnProperty(s)){const c=n[s](l);c!=null&&Object.assign(o,c);continue}l===!0?o[`data-${s.toLowerCase()}`]="":l&&(o[`data-${s.toLowerCase()}`]=l.toString())}return o}function zO(e,n){return typeof e=="function"?e(n):e}function NO(e,n){return typeof e=="function"?e(n):e}const Ad={};function no(e,n,o,s,l){if(!o&&!s&&!l&&!e)return pc(n);let c=pc(e);return n&&(c=Pa(c,n)),o&&(c=Pa(c,o)),s&&(c=Pa(c,s)),l&&(c=Pa(c,l)),c}function kO(e){if(e.length===0)return Ad;if(e.length===1)return pc(e[0]);let n=pc(e[0]);for(let o=1;o<e.length;o+=1)n=Pa(n,e[o]);return n}function pc(e){return Md(e)?{...Jy(e,Ad)}:jO(e)}function Pa(e,n){return Md(n)?Jy(n,e):LO(e,n)}function jO(e){const n={...e};for(const o in n){const s=n[o];Wy(o,s)&&(n[o]=e0(s))}return n}function LO(e,n){if(!n)return e;for(const o in n){const s=n[o];switch(o){case"style":{e[o]=_d(e.style,s);break}case"className":{e[o]=t0(e.className,s);break}default:Wy(o,s)?e[o]=PO(e[o],s):e[o]=s}}return e}function Wy(e,n){const o=e.charCodeAt(0),s=e.charCodeAt(1),l=e.charCodeAt(2);return o===111&&s===110&&l>=65&&l<=90&&(typeof n=="function"||typeof n>"u")}function Md(e){return typeof e=="function"}function Jy(e,n){return Md(e)?e(n):e??Ad}function PO(e,n){return n?e?(...o)=>{const s=o[0];if(n0(s)){const c=s;mc(c);const u=n(...o);return c.baseUIHandlerPrevented||e?.(...o),u}const l=n(...o);return e?.(...o),l}:e0(n):e}function e0(e){return e&&((...n)=>{const o=n[0];return n0(o)&&mc(o),e(...n)})}function mc(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function t0(e,n){return n?e?n+" "+e:n:e}function n0(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function At(e,n,o={}){const s=n.render,l=IO(n,o);if(o.enabled===!1)return null;const c=o.state??rn;return HO(e,s,l,c)}function IO(e,n={}){const{className:o,style:s,render:l}=e,{state:c=rn,ref:u,props:f,stateAttributesMapping:p,enabled:h=!0}=n,g=h?zO(o,c):void 0,y=h?NO(s,c):void 0,b=h?DO(c,p):rn,S=h&&f?UO(f):void 0,x=h?_d(b,S)??{}:rn;return typeof document<"u"&&(h?Array.isArray(u)?x.ref=_O([x.ref,Ky(l),...u]):x.ref=zi(x.ref,Ky(l),u):zi(null,null)),h?(g!==void 0&&(x.className=t0(x.className,g)),y!==void 0&&(x.style=_d(x.style,y)),x):rn}function UO(e){return Array.isArray(e)?kO(e):no(void 0,e)}const VO=Symbol.for("react.lazy");function HO(e,n,o,s){if(n){if(typeof n=="function")return n(o,s);const l=no(o,n.props);l.ref=o.ref;let c=n;return c?.$$typeof===VO&&(c=v.Children.toArray(n)[0]),v.cloneElement(c,l)}if(e&&typeof e=="string")return FO(e,o);throw new Error(Jt(8))}function FO(e,n){return e==="button"?v.createElement("button",{type:"button",...n,key:n.key}):e==="img"?v.createElement("img",{alt:"",...n,key:n.key}):v.createElement(e,n)}let BO=(function(e){return e.frontmostHeight="--toast-frontmost-height",e})({});const ZO=v.forwardRef(function(n,o){const{render:s,className:l,style:c,children:u,...f}=n,p=sy(),h=ur(),g=v.useRef(!1),y=v.useRef(!1),b=v.useRef(!1),S=p.useState("isEmpty"),x=p.useState("toasts"),T=p.useState("focused"),C=p.useState("expanded"),E=p.useState("prevFocusElement"),L=x[0]?.height??0,j=v.useMemo(()=>x.some(O=>O.transitionStatus==="ending"),[x]);v.useEffect(()=>{const O=p.state.viewport;if(!O)return;function U(Q){S||Q.key==="F6"&&Xt(Q)!==O&&(Q.preventDefault(),p.setPrevFocusElement(Nn(Je(O))),O?.focus({preventScroll:!0}),p.pauseTimers(),p.setFocused(!0))}const B=Lt(O);return pt(B,"keydown",U)},[p,S]),v.useEffect(()=>{const O=p.state.viewport;if(!O||S)return;const U=Lt(O);function B(A){Xt(A)===U&&(p.setIsWindowFocused(!1),p.pauseTimers())}function Q(A){if(A.relatedTarget)return;const V=Xt(A),Y=Nn(Je(O));(V===U||!Ie(O,V)||!yd(Y))&&p.resumeTimers(),h.start(0,()=>p.setIsWindowFocused(!0))}return Kr(pt(U,"blur",B,!0),pt(U,"focus",Q,!0))},[p,h,S]),v.useEffect(()=>{const O=p.state.viewport;if(!O||S)return;const U=Je(O);return pt(U,"pointerdown",p.handleDocumentPointerDown,!0)},[S,p]);function k(O){const U=p.state.viewport;U&&(g.current=!0,O.relatedTarget===U?x[0]?.ref?.current?.focus():p.restoreFocusToPrevElement())}function R(O){O.key==="Tab"&&O.shiftKey&&Xt(O.nativeEvent)===p.state.viewport&&(O.preventDefault(),p.restoreFocusToPrevElement(),p.resumeTimers())}function N(){const O=p.state.toasts.some(U=>U.transitionStatus==="ending");!p.state.isWindowFocused||O||b.current||!y.current||(p.resumeTimers(),p.setHovering(!1),y.current=!1)}v.useEffect(N,[j,p]);function z(){p.pauseTimers(),p.setHovering(!0),y.current=!1}function P(){j||b.current?y.current=!0:(p.resumeTimers(),p.setHovering(!1))}function K(O){O.pointerType==="touch"&&(b.current=!0)}function G(O){O.pointerType==="touch"&&(b.current=!1,N())}function q(){if(g.current){g.current=!1;return}T||yd(Nn(Je(p.state.viewport)))&&(p.setFocused(!0),p.pauseTimers())}function te(O){!T||Ie(p.state.viewport,O.relatedTarget)||(p.setFocused(!1),p.resumeTimers())}const ee={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:z,onMouseMove:z,onMouseLeave:P,onFocus:q,onBlur:te,onKeyDown:R,onClick:q,onPointerDown:K,onPointerUp:G,onPointerCancel:G},F={expanded:C},I=At("div",n,{ref:[o,p.setViewport],state:F,props:[ee,{style:{[BO.frontmostHeight]:L?`${L}px`:void 0}},f,{children:D.jsxs(v.Fragment,{children:[!S&&E&&D.jsx(bo,{onFocus:k}),u,!S&&E&&D.jsx(bo,{onFocus:k})]})}]}),_=v.useMemo(()=>x.filter(O=>O.priority==="high"),[x]);return D.jsxs(v.Fragment,{children:[!S&&E&&D.jsx(bo,{onFocus:k}),I,!T&&_.length>0&&D.jsx("div",{style:hc,children:_.map(O=>D.jsxs("div",{role:"alert","aria-atomic":!0,children:[D.jsx("div",{children:O.title}),D.jsx("div",{children:O.description})]},O.id))})]})});function gc(e){return od(19)?e:e?"true":void 0}const r0=v.createContext(void 0);function GO(){const e=v.useContext(r0);if(!e)throw new Error(Jt(66));return e}let Ni=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const YO={[Ni.startingStyle]:""},$O={[Ni.endingStyle]:""},Or={transitionStatus(e){return e==="starting"?YO:e==="ending"?$O:null}};function So(e){return e==null?e:"current"in e?e.current:e}function o0(e,n=!1,o=!0){const s=Ma();return Te((l,c=null)=>{s.cancel();const u=So(e);if(u==null)return;const f=u,p=()=>{Cr.flushSync(l)};if(typeof f.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){l();return}function h(){Promise.all(f.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||p()}).catch(()=>{if(o){c?.aborted||p();return}const g=f.getAnimations();!c?.aborted&&g.length>0&&g.some(y=>y.pending||y.playState!=="finished")&&h()})}if(n){const g=Ni.startingStyle;if(!f.hasAttribute(g)){s.request(h);return}const y=new MutationObserver(()=>{f.hasAttribute(g)||(y.disconnect(),h())});y.observe(f,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>y.disconnect(),{once:!0});return}s.request(h)})}function ro(e){const{enabled:n=!0,open:o,ref:s,onComplete:l}=e,c=Te(l),u=o0(s,o,!1);v.useEffect(()=>{if(!n)return;const f=new AbortController;return u(c,f.signal),()=>{f.abort()}},[n,o,c,u])}let ki=(function(e){return e.index="--toast-index",e.offsetY="--toast-offset-y",e.height="--toast-height",e.swipeMovementX="--toast-swipe-movement-x",e.swipeMovementY="--toast-swipe-movement-y",e})({});const qO=500,XO={style:{transition:"none"}},Dd="data-base-ui-click-trigger",QO="data-base-ui-swipe-ignore",KO="data-swipe-ignore",i0=`[${QO}]`,WO=`[${KO}]`,JO={fallbackAxisSide:"none"},e_={fallbackAxisSide:"end"},t_={clipPath:"inset(50%)",position:"fixed",top:0,left:0},n_={...Or,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Ia=40,r_=10,Wo=.5,o_=1,i_=`${i0},${WO}`;function s0(e,n,o){switch(e){case"up":return-o;case"down":return o;case"left":return-n;case"right":return n;default:return 0}}function s_(e){const o=Lt(e).getComputedStyle(e).transform;let s=0,l=0,c=1;if(o&&o!=="none"){const u=o.match(/matrix(?:3d)?\(([^)]+)\)/);if(u){const f=u[1].split(", ").map(parseFloat);f.length===6?(s=f[4],l=f[5],c=Math.sqrt(f[0]*f[0]+f[1]*f[1])):f.length===16&&(s=f[12],l=f[13],c=f[0])}}return{x:s,y:l,scale:c}}const a_=v.forwardRef(function(n,o){const{toast:s,render:l,className:c,swipeDirection:u=["down","right"],style:f,...p}=n,h=s.positionerProps?.anchor!==void 0;let g=[];h||(g=Array.isArray(u)?u:[u]);const y=g.length>0,b=sy(),[S,x]=v.useState(void 0),[T,C]=v.useState(!1),[E,L]=v.useState(!1),[j,k]=v.useState(!1),[R,N]=v.useState({x:0,y:0}),[z,P]=v.useState({x:0,y:0,scale:1}),[K,G]=v.useState(),[q,te]=v.useState(),[ee,F]=v.useState(null),I=v.useRef(null),_=v.useRef({x:0,y:0}),O=v.useRef({x:0,y:0,scale:1}),U=v.useRef(void 0),B=v.useRef(0),Q=v.useRef(!1),A=v.useRef({x:0,y:0}),V=v.useRef(!1),Y=b.useState("toastIndex",s.id),W=b.useState("toastVisibleIndex",s.id),ne=b.useState("toastOffsetY",s.id),ie=b.useState("focused"),ce=b.useState("expanded");ro({open:s.transitionStatus!=="ending",ref:I,onComplete(){s.transitionStatus==="ending"&&b.removeToast(s.id)}});const de=Te((H=!1)=>{const oe=I.current;if(!oe)return;const J=oe.style.height;oe.style.height="auto";const X=oe.offsetHeight;oe.style.height=J;function ve(){b.updateToastInternal(s.id,{ref:I,height:X,...s.transitionStatus==="starting"?{transitionStatus:void 0}:{}})}H?Cr.flushSync(ve):ve()});ke(de,[de]);function ye(H,oe){let J=H,X=oe;return!g.includes("left")&&!g.includes("right")?J=H>0?H**Wo:-(Math.abs(H)**Wo):(!g.includes("right")&&H>0&&(J=H**Wo),!g.includes("left")&&H<0&&(J=-(Math.abs(H)**Wo))),!g.includes("up")&&!g.includes("down")?X=oe>0?oe**Wo:-(Math.abs(oe)**Wo):(!g.includes("down")&&oe>0&&(X=oe**Wo),!g.includes("up")&&oe<0&&(X=-(Math.abs(oe)**Wo))),{x:J,y:X}}function Ee(H){if(H.button!==0)return;H.pointerType==="touch"&&b.pauseTimers();const oe=Xt(H.nativeEvent);if(!(oe&&oe.closest(`button,a,input,textarea,[role="button"],${i_}`))){if(Q.current=!1,U.current=void 0,B.current=0,_.current={x:H.clientX,y:H.clientY},A.current=_.current,I.current){const X=s_(I.current);O.current=X,P(X),N({x:X.x,y:X.y})}b.setHovering(!0),C(!0),L(!1),F(null),V.current=!0,I.current?.setPointerCapture(H.pointerId)}}function Me(H){if(!T)return;H.preventDefault(),V.current&&(_.current={x:H.clientX,y:H.clientY},V.current=!1);const{clientY:oe,clientX:J,movementX:X,movementY:ve}=H;(ve<0&&oe>A.current.y||ve>0&&oe<A.current.y)&&(A.current={x:A.current.x,y:oe}),(X<0&&J>A.current.x||X>0&&J<A.current.x)&&(A.current={x:J,y:A.current.y});const we=J-_.current.x,be=oe-_.current.y,Ne=oe-A.current.y,qe=J-A.current.x;if(!E&&Math.sqrt(we*we+be*be)>=o_&&(L(!0),ee===null)){const We=g.includes("left")||g.includes("right"),dt=g.includes("up")||g.includes("down");if(We&&dt){const jt=Math.abs(we),rt=Math.abs(be);F(jt>rt?"horizontal":"vertical")}}let He;if(!U.current)ee==="vertical"?be>0?He="down":be<0&&(He="up"):ee==="horizontal"?we>0?He="right":we<0&&(He="left"):Math.abs(we)>=Math.abs(be)?He=we>0?"right":"left":He=be>0?"down":"up",He&&g.includes(He)&&(U.current=He,B.current=s0(He,we,be),x(He));else{const Xe=U.current,We=s0(Xe,qe,Ne);We>Ia?(Q.current=!1,x(Xe)):!(g.includes("left")&&g.includes("right"))&&!(g.includes("up")&&g.includes("down"))&&B.current-We>=r_&&(Q.current=!0)}const Be=ye(we,be);let $e=O.current.x,et=O.current.y;ee==="horizontal"?(g.includes("left")||g.includes("right"))&&($e+=Be.x):(ee==="vertical"||(g.includes("left")||g.includes("right"))&&($e+=Be.x),(g.includes("up")||g.includes("down"))&&(et+=Be.y)),N({x:$e,y:et})}function fe(H){if(!T)return;if(C(!1),L(!1),F(null),I.current?.releasePointerCapture(H.pointerId),Q.current){N({x:z.x,y:z.y}),x(void 0);return}let oe=!1;const J=R.x-z.x,X=R.y-z.y;let ve;for(const we of g){switch(we){case"right":J>Ia&&(oe=!0,ve="right");break;case"left":J<-Ia&&(oe=!0,ve="left");break;case"down":X>Ia&&(oe=!0,ve="down");break;case"up":X<-Ia&&(oe=!0,ve="up");break}if(oe)break}oe?(x(ve),k(!0),b.closeToast(s.id)):(N({x:z.x,y:z.y}),x(void 0))}function ze(){T&&(C(!1),L(!1),F(null),N({x:z.x,y:z.y}),x(void 0))}function De(H){if(H.key==="Escape"){if(!I.current||!Ie(I.current,Nn(Je(I.current))))return;b.closeToast(s.id)}}v.useEffect(()=>{if(!y)return;const H=I.current;if(!H)return;function oe(J){Ie(H,Xt(J))&&J.preventDefault()}return pt(H,"touchmove",oe,{passive:!1})},[y]);function _e(){if(!T&&R.x===z.x&&R.y===z.y&&!j)return{[ki.swipeMovementX]:"0px",[ki.swipeMovementY]:"0px"};const H=R.x-z.x,oe=R.y-z.y;return{transition:T?"none":void 0,transform:T?`translateX(${R.x}px) translateY(${R.y}px) scale(${z.scale})`:void 0,[ki.swipeMovementX]:`${H}px`,[ki.swipeMovementY]:`${oe}px`}}const Oe=s.priority==="high",Ce={role:Oe?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":K,"aria-describedby":q,"aria-hidden":Oe&&!ie?!0:void 0,onPointerDown:y?Ee:void 0,onPointerMove:y?Me:void 0,onPointerUp:y?fe:void 0,onPointerCancel:y?ze:void 0,onKeyDown:De,inert:gc(s.limited),style:{..._e(),[ki.index]:s.transitionStatus==="ending"?Y:W,[ki.offsetY]:`${ne}px`,[ki.height]:s.height?`${s.height}px`:void 0}},Le=v.useMemo(()=>({rootRef:I,toast:s,titleId:K,setTitleId:G,descriptionId:q,setDescriptionId:te,swiping:T,swipeDirection:S,recalculateHeight:de,index:Y,visibleIndex:W,expanded:ce}),[s,K,q,T,S,de,Y,W,ce]),Re={transitionStatus:s.transitionStatus,expanded:ce,limited:s.limited||!1,type:s.type,swiping:Le.swiping,swipeDirection:Le.swipeDirection},Ue=At("div",n,{ref:[o,Le.rootRef],state:Re,stateAttributesMapping:n_,props:[Ce,p]});return D.jsx(r0.Provider,{value:Le,children:Ue})}),l_={...Sg};let a0=0;function c_(e,n="mui"){const[o,s]=v.useState(e),l=e||o;return v.useEffect(()=>{o==null&&(a0+=1,s(`${n}-${a0}`))},[o,n]),l}const l0=l_.useId;function Jo(e,n){if(l0!==void 0){const o=l0();return e??(n?`${n}-${o}`:o)}return c_(e,n)}const u_=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,children:f,...p}=n,{toast:h,setDescriptionId:g}=GO(),y=f??h.description,b=!!y,S=Jo(u);ke(()=>{if(b)return g(S),()=>{g(void 0)}},[b,S,g]);const x={type:h.type},T=At("p",n,{ref:o,state:x,props:{...p,id:S,children:y}});return b?T:null}),f_=v.createContext(void 0);function d_(e=!1){const n=v.useContext(f_);if(n===void 0&&!e)throw new Error(Jt(16));return n}function h_(e){const{focusableWhenDisabled:n,disabled:o,composite:s=!1,tabIndex:l=0,isNativeButton:c}=e,u=s&&n!==!1,f=s&&n===!1;return{props:v.useMemo(()=>{const h={onKeyDown(g){o&&n&&g.key!=="Tab"&&g.preventDefault()}};return s||(h.tabIndex=l,!c&&o&&(h.tabIndex=n?l:-1)),(c&&(n||u)||!c&&o)&&(h["aria-disabled"]=o),c&&(!n||f)&&(h.disabled=o),h},[s,o,n,u,f,c,l])}}function Es(e={}){const{disabled:n=!1,focusableWhenDisabled:o,tabIndex:s=0,native:l=!0,composite:c}=e,u=v.useRef(null),f=d_(!0),p=c??f!==void 0,{props:h}=h_({focusableWhenDisabled:o,disabled:n,composite:p,tabIndex:s,isNativeButton:l}),g=v.useCallback(()=>{const S=u.current;zd(S)&&p&&n&&h.disabled===void 0&&S.disabled&&(S.disabled=!1)},[n,h.disabled,p]);ke(g,[g]);const y=v.useCallback((S={})=>{const{onClick:x,onMouseDown:T,onKeyUp:C,onKeyDown:E,onPointerDown:L,...j}=S;return no({type:l?"button":void 0,onClick(R){if(n){R.preventDefault();return}x?.(R)},onMouseDown(R){n||T?.(R)},onKeyDown(R){if(n||(mc(R),E?.(R),R.baseUIHandlerPrevented))return;const N=R.target===R.currentTarget,z=R.currentTarget,P=zd(z),K=!l&&p_(z),G=N&&(l?P:!K),q=R.key==="Enter",te=R.key===" ",ee=z.getAttribute("role"),F=ee?.startsWith("menuitem")||ee==="option"||ee==="gridcell";if(N&&p&&te){if(R.defaultPrevented&&F)return;R.preventDefault(),K||l&&P?(z.click(),R.preventBaseUIHandler()):G&&(x?.(R),R.preventBaseUIHandler());return}G&&(!l&&(te||q)&&R.preventDefault(),!l&&q&&x?.(R))},onKeyUp(R){if(!n){if(mc(R),C?.(R),R.target===R.currentTarget&&l&&p&&zd(R.currentTarget)&&R.key===" "){R.preventDefault();return}R.baseUIHandlerPrevented||R.target===R.currentTarget&&!l&&!p&&R.key===" "&&x?.(R)}},onPointerDown(R){if(n){R.preventDefault();return}L?.(R)}},l?void 0:{role:"button"},h,j)},[n,h,p,l]),b=Te(S=>{u.current=S,g()});return{getButtonProps:y,buttonRef:b}}function zd(e){return Zt(e)&&e.tagName==="BUTTON"}function p_(e){return!!(e?.tagName==="A"&&e?.href)}function m_(e,n){return n!=null&&!ka(n)?0:typeof e=="function"?e():e}function Nd(e,n,o){const s=m_(e,o);return typeof s=="number"?s:s?.[n]}function c0(e){return typeof e=="function"?e():e}function u0(e,n){return n||e==="click"||e==="mousedown"}const ji="none",Ts="trigger-press",Yn="trigger-hover",kd="outside-press",jd="item-press",g_="close-press",Li="focus-out",f0="escape-key",y_="close-watcher",Ld="list-navigation",v_="cancel-open",d0="imperative-action",yc="swipe",b_="window-resize";function ct(e,n,o,s){let l=!1,c=!1;const u=rn;return{reason:e,event:n??new Event("base-ui"),cancel(){l=!0},allowPropagation(){c=!0},get isCanceled(){return l},get isPropagationAllowed(){return c},trigger:o,...u}}function S_(e,n,o){const s=rn;return{reason:e,event:n??new Event("base-ui"),...s}}function dn(e){const n=vn(w_,e).current;return n.next=e,ke(n.effect),n}function w_(e){const n={current:e,next:e,effect:()=>{n.current=n.next}};return n}function vc(e){return`data-base-ui-${e}`}let bc=0;function Sc(e,n={}){const{preventScroll:o=!1,cancelPrevious:s=!0,sync:l=!1}=n;s&&cancelAnimationFrame(bc);const c=()=>e?.focus({preventScroll:o});if(l)return c(),Tn;const u=requestAnimationFrame(c);return bc=u,()=>{bc===u&&(cancelAnimationFrame(u),bc=0)}}const Pd={inert:new WeakMap,"aria-hidden":new WeakMap},h0="data-base-ui-inert",Id={inert:new WeakSet,"aria-hidden":new WeakSet};let Ua=new WeakMap,Ud=0;function x_(e){return Id[e]}function p0(e){return e?vs(e)?e.host:p0(e.parentNode):null}const Vd=(e,n)=>n.map(o=>{if(e.contains(o))return o;const s=p0(o);return e.contains(s)?s:null}).filter(o=>o!=null),m0=e=>{const n=new Set;return e.forEach(o=>{let s=o;for(;s&&!n.has(s);)n.add(s),s=s.parentNode}),n},g0=(e,n,o)=>{const s=[],l=c=>{!c||o.has(c)||Array.from(c.children).forEach(u=>{Hn(u)!=="script"&&(n.has(u)?l(u):s.push(u))})};return l(e),s};function E_(e,n,o,s,{mark:l=!0,markerIgnoreElements:c=[]}){const u=s?"inert":o?"aria-hidden":null;let f=null,p=null;const h=Vd(n,e),g=l?Vd(n,c):[],y=new Set(g),b=l?g0(n,m0(h),new Set(h)).filter(T=>!y.has(T)):[],S=[],x=[];if(u){const T=Pd[u],C=x_(u);p=C,f=T;const E=Vd(n,Array.from(n.querySelectorAll("[aria-live]"))),L=h.concat(E);g0(n,m0(L),new Set(L)).forEach(k=>{const R=k.getAttribute(u),N=R!==null&&R!=="false",z=(T.get(k)||0)+1;T.set(k,z),S.push(k),z===1&&N&&C.add(k),N||k.setAttribute(u,u==="inert"?"":"true")})}return l&&b.forEach(T=>{const C=(Ua.get(T)||0)+1;Ua.set(T,C),x.push(T),C===1&&T.setAttribute(h0,"")}),Ud+=1,()=>{f&&S.forEach(T=>{const E=(f.get(T)||0)-1;f.set(T,E),E||(!p?.has(T)&&u&&T.removeAttribute(u),p?.delete(T))}),l&&x.forEach(T=>{const C=(Ua.get(T)||0)-1;Ua.set(T,C),C||T.removeAttribute(h0)}),Ud-=1,Ud||(Pd.inert=new WeakMap,Pd["aria-hidden"]=new WeakMap,Id.inert=new WeakSet,Id["aria-hidden"]=new WeakSet,Ua=new WeakMap)}}function y0(e,n={}){const{ariaHidden:o=!1,inert:s=!1,mark:l=!0,markerIgnoreElements:c=[]}=n,u=Je(e[0]).body;return E_(e,u,o,s,{mark:l,markerIgnoreElements:c})}const v0=v.createContext(null),b0=()=>v.useContext(v0),T_=vc("portal");function S0(e={}){const{ref:n,container:o,componentProps:s=rn,elementProps:l}=e,c=Jo(),f=b0()?.portalNode,[p,h]=v.useState(null),[g,y]=v.useState(null),b=Te(C=>{C!==null&&y(C)}),S=v.useRef(null);ke(()=>{if(o===null){S.current&&(S.current=null,y(null),h(null));return}if(c==null)return;const C=(o&&(sd(o)?o:o.current))??f??document.body;if(C==null){S.current&&(S.current=null,y(null),h(null));return}S.current!==C&&(S.current=C,y(null),h(C))},[o,f,c]);const x=At("div",s,{ref:[n,b],props:[{id:c,[T_]:""},l]});return{portalNode:g,portalSubtree:p&&x?Cr.createPortal(x,p):null}}const Hd=v.forwardRef(function(n,o){const{children:s,container:l,className:c,render:u,renderGuards:f,style:p,...h}=n,{portalNode:g,portalSubtree:y}=S0({container:l,ref:o,componentProps:n,elementProps:h}),b=v.useRef(null),S=v.useRef(null),x=v.useRef(null),T=v.useRef(null),[C,E]=v.useState(null),L=v.useRef(!1),j=C?.modal,k=C?.open,R=typeof f=="boolean"?f:!!C&&!C.modal&&C.open&&!!g;v.useEffect(()=>{if(!g||j)return;function z(P){g&&P.relatedTarget&&xs(P)&&(P.type==="focusin"?L.current&&(Yy(g),L.current=!1):(CO(g),L.current=!0))}return Kr(pt(g,"focusin",z,!0),pt(g,"focusout",z,!0))},[g,j]),v.useEffect(()=>{!g||k!==!1||(Yy(g),L.current=!1)},[k,g]);const N=v.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:S,beforeInsideRef:x,afterInsideRef:T,portalNode:g,setFocusManagerState:E}),[g]);return D.jsxs(v.Fragment,{children:[y,D.jsxs(v0.Provider,{value:N,children:[R&&g&&D.jsx(bo,{"data-type":"outside",ref:b,onFocus:z=>{if(xs(z,g))x.current?.focus();else{const P=C?C.domReference:null;Zy(P)?.focus()}}}),R&&g&&D.jsx("span",{"aria-owns":g.id,style:t_}),g&&Cr.createPortal(s,g),R&&g&&D.jsx(bo,{"data-type":"outside",ref:S,onFocus:z=>{if(xs(z,g))T.current?.focus();else{const P=C?C.domReference:null;Od(P)?.focus(),C?.closeOnFocusOut&&C?.onOpenChange(!1,ct(Li,z.nativeEvent))}}})]})]})});function w0(){const e=new Map;return{emit(n,o){e.get(n)?.forEach(s=>s(o))},on(n,o){e.has(n)||e.set(n,new Set),e.get(n).add(o)},off(n,o){e.get(n)?.delete(o)}}}class C_{nodesRef={current:[]};events=w0();addNode(n){this.nodesRef.current.push(n)}removeNode(n){const o=this.nodesRef.current.findIndex(s=>s===n);o!==-1&&this.nodesRef.current.splice(o,1)}}const x0=v.createContext(null),E0=v.createContext(null),ei=()=>v.useContext(x0)?.id||null,Pi=e=>{const n=v.useContext(E0);return e??n};function R_(e){const n=Jo(),o=Pi(e),s=ei();return ke(()=>{if(!n)return;const l={id:n,parentId:s};return o?.addNode(l),()=>{o?.removeNode(l)}},[o,n,s]),n}function O_(e){const{children:n,id:o}=e,s=ei();return D.jsx(x0.Provider,{value:v.useMemo(()=>({id:o,parentId:s}),[o,s]),children:n})}function __(e){const{children:n,externalTree:o}=e,s=vn(()=>o??new C_).current;return D.jsx(E0.Provider,{value:s,children:n})}function A_(e,n){const o=Lt(Xt(e));return e instanceof o.KeyboardEvent?"keyboard":e instanceof o.FocusEvent?n||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof o.MouseEvent?n||(e.detail===0?"keyboard":"mouse"):""}const T0=20;let ti=[];function Fd(){ti=ti.filter(e=>e.deref()?.isConnected)}function M_(e){Fd(),e&&Hn(e)!=="body"&&(ti.push(new WeakRef(e)),ti.length>T0&&(ti=ti.slice(-T0)))}function Bd(){return Fd(),ti[ti.length-1]?.deref()}function D_(e){return e?Rd(e)?e:La(e)[0]||e:null}function C0(e,n){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!n.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const s=Fy(e).filter(c=>{const u=c.getAttribute("data-tabindex")||"";return Rd(c)||c.hasAttribute("data-tabindex")&&!u.startsWith("-")}),l=e.getAttribute("tabindex");n.current.includes("floating")||s.length===0?l!=="0"&&e.setAttribute("tabindex","0"):(l!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function wc(e){const{context:n,children:o,disabled:s=!1,initialFocus:l=!0,returnFocus:c=!0,restoreFocus:u=!1,modal:f=!0,closeOnFocusOut:p=!0,openInteractionType:h="",nextFocusableElement:g,previousFocusableElement:y,beforeContentFocusGuardRef:b,externalTree:S,getInsideElements:x}=e,T="rootStore"in n?n.rootStore:n,C=T.useState("open"),E=T.useState("domReferenceElement"),L=T.useState("floatingElement"),{events:j,dataRef:k}=T.context,R=Te(()=>k.current.floatingContext?.nodeId),N=l===!1,z=gd(E)&&N,P=v.useRef(["content"]),K=dn(l),G=dn(c),q=dn(h),te=Pi(S),ee=b0(),F=v.useRef(!1),I=v.useRef(!1),_=v.useRef(!1),O=v.useRef(null),U=v.useRef(""),B=v.useRef(""),Q=v.useRef(null),A=v.useRef(null),V=zi(Q,b,ee?.beforeInsideRef),Y=zi(A,ee?.afterInsideRef),W=ur(),ne=ur(),ie=Ma(),ce=ee!=null,de=Na(L),ye=Te((fe=de)=>fe?La(fe):[]),Ee=Te(()=>x?.().filter(fe=>fe!=null)??[]);v.useEffect(()=>{if(s||!f)return;function fe(De){De.key==="Tab"&&Ie(de,Nn(Je(de)))&&ye().length===0&&!z&&fr(De)}const ze=Je(de);return pt(ze,"keydown",fe)},[s,E,de,f,P,z,ye]),v.useEffect(()=>{if(s||!C)return;const fe=Je(de);function ze(){_.current=!1}function De(Oe){const Ce=Xt(Oe),Le=Ee(),Re=Ie(L,Ce)||Ie(E,Ce)||Ie(ee?.portalNode,Ce)||Le.some(Ue=>Ue===Ce||Ie(Ue,Ce));_.current=!Re,B.current=Oe.pointerType||"keyboard",Ce?.closest(`[${Dd}]`)&&(I.current=!0)}function _e(){B.current="keyboard"}return Kr(pt(fe,"pointerdown",De,!0),pt(fe,"pointerup",ze,!0),pt(fe,"pointercancel",ze,!0),pt(fe,"keydown",_e,!0))},[s,L,E,de,C,ee,Ee]),v.useEffect(()=>{if(s||!p)return;const fe=Je(de);function ze(){I.current=!0,ne.start(0,()=>{I.current=!1})}function De(Le){const Re=Xt(Le);Rd(Re)&&(O.current=Re)}function _e(Le){const Re=Le.relatedTarget,Ue=Le.currentTarget,H=Xt(Le);queueMicrotask(()=>{const oe=R(),J=T.context.triggerElements,X=Ee(),ve=Re?.hasAttribute(vc("focus-guard"))&&[Q.current,A.current,ee?.beforeInsideRef.current,ee?.afterInsideRef.current,ee?.beforeOutsideRef.current,ee?.afterOutsideRef.current,So(y),So(g)].includes(Re),we=!(Ie(E,Re)||Ie(L,Re)||Ie(Re,L)||Ie(ee?.portalNode,Re)||X.some(be=>be===Re||Ie(be,Re))||Re!=null&&J.hasElement(Re)||J.hasMatchingElement(be=>Ie(be,Re))||ve||te&&(Jr(te.nodesRef.current,oe).find(be=>Ie(be.context?.elements.floating,Re)||Ie(be.context?.elements.domReference,Re))||_y(te.nodesRef.current,oe).find(be=>[be.context?.elements.floating,Na(be.context?.elements.floating)].includes(Re)||be.context?.elements.domReference===Re)));if(Ue===E&&de&&C0(de,P),u&&Ue!==E&&!fc(H)&&Nn(fe)===fe.body){if(Zt(de)&&(de.focus(),u==="popup")){ie.request(()=>{de.focus()});return}const be=ye(),Ne=O.current,qe=(Ne&&be.includes(Ne)?Ne:null)||be[be.length-1]||de;Zt(qe)&&qe.focus()}if(k.current.insideReactTree){k.current.insideReactTree=!1;return}(z||!f)&&Re&&we&&!I.current&&(z||Re!==Bd())&&(F.current=!0,T.setOpen(!1,ct(Li,Le)))})}function Oe(){_.current||(k.current.insideReactTree=!0,W.start(0,()=>{k.current.insideReactTree=!1}))}const Ce=Zt(E)?E:null;if(!(!L&&!Ce))return Kr(Ce&&pt(Ce,"focusout",_e),Ce&&pt(Ce,"pointerdown",ze),L&&pt(L,"focusin",De),L&&pt(L,"focusout",_e),L&&ee&&pt(L,"focusout",Oe,!0))},[s,E,L,de,f,te,ee,T,p,u,ye,z,R,P,k,W,ne,ie,g,y,Ee]),v.useEffect(()=>{if(s||!L||!C)return;const fe=Array.from(ee?.portalNode?.querySelectorAll(`[${vc("portal")}]`)||[]),De=(te?_y(te.nodesRef.current,R()):[]).find(Ue=>gd(Ue.context?.elements.domReference||null))?.context?.elements.domReference,Oe=[...[L,...fe,Q.current,A.current,ee?.beforeOutsideRef.current,ee?.afterOutsideRef.current,...Ee()],De,So(y),So(g),z?E:null].filter(Ue=>Ue!=null),Ce=y0(Oe,{ariaHidden:f||z,mark:!1}),Le=[L,...fe].filter(Ue=>Ue!=null),Re=y0(Le);return()=>{Re(),Ce()}},[C,s,E,L,f,P,ee,z,te,R,g,y,Ee]),ke(()=>{if(!C||s||!Zt(de))return;const fe=Je(de),ze=Nn(fe);queueMicrotask(()=>{const De=K.current,_e=typeof De=="function"?De(q.current||""):De;if(_e===void 0||_e===!1||Ie(de,ze))return;let Ce=null;const Le=()=>(Ce==null&&(Ce=ye(de)),Ce[0]||de);let Re;_e===!0||_e===null?Re=Le():Re=So(_e),Re=Re||Le(),Sc(Re,{preventScroll:Re===de})})},[s,C,de,N,ye,K,q]),ke(()=>{if(s||!de)return;const fe=Je(de),ze=Nn(fe);M_(ze);function De(Oe){if(Oe.open||(U.current=A_(Oe.nativeEvent,B.current)),Oe.reason===Yn&&Oe.nativeEvent.type==="mouseleave"&&(F.current=!0),Oe.reason===kd)if(Oe.nested)F.current=!1;else if(Ay(Oe.nativeEvent)||My(Oe.nativeEvent))F.current=!1;else{let Ce=!1;Je(de).createElement("div").focus({get preventScroll(){return Ce=!0,!1}}),Ce?F.current=!1:F.current=!0}}j.on("openchange",De);function _e(){const Oe=G.current;let Ce=typeof Oe=="function"?Oe(U.current):Oe;if(Ce===void 0||Ce===!1)return null;if(Ce===null&&(Ce=!0),typeof Ce=="boolean"){const Re=E||Bd();return Re&&Re.isConnected?Re:null}const Le=E||Bd();return So(Ce)||Le||null}return()=>{j.off("openchange",De);const Oe=Nn(fe),Ce=Ee(),Le=Ie(L,Oe)||Ce.some(H=>H===Oe||Ie(H,Oe))||te&&Jr(te.nodesRef.current,R(),!1).some(H=>Ie(H.context?.elements.floating,Oe)),Re=G.current,Ue=_e();queueMicrotask(()=>{const H=D_(Ue),oe=typeof Re!="boolean";Re&&!F.current&&Zt(H)&&(!(!oe&&H!==Oe&&Oe!==fe.body)||Le)&&H.focus({preventScroll:!0}),F.current=!1})}},[s,L,de,G,k,j,te,E,R,Ee]),ke(()=>{if(!dd||C||!L)return;const fe=Nn(Je(L));!Zt(fe)||!md(fe)||Ie(L,fe)&&fe.blur()},[C,L]),ke(()=>{if(!(s||!ee))return ee.setFocusManagerState({modal:f,closeOnFocusOut:p,open:C,onOpenChange:T.setOpen,domReference:E}),()=>{ee.setFocusManagerState(null)}},[s,ee,f,C,T,p,E]),ke(()=>{if(!(s||!de))return C0(de,P),()=>{queueMicrotask(Fd)}},[s,de,P]);const Me=!s&&(f?!z:!0)&&(ce||f);return D.jsxs(v.Fragment,{children:[Me&&D.jsx(bo,{"data-type":"inside",ref:V,onFocus:fe=>{if(f){const ze=ye();Sc(ze[ze.length-1])}else ee?.portalNode&&(F.current=!1,xs(fe,ee.portalNode)?Od(E)?.focus():So(y??ee.beforeOutsideRef)?.focus())}}),o,Me&&D.jsx(bo,{"data-type":"inside",ref:Y,onFocus:fe=>{f?Sc(ye()[0]):ee?.portalNode&&(p&&(F.current=!0),xs(fe,ee.portalNode)?Zy(E)?.focus():So(g??ee.afterOutsideRef)?.focus())}})]})}function Zd(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.context.dataRef,{enabled:l=!0,event:c="click",toggle:u=!0,ignoreMouse:f=!1,stickIfOpen:p=!0,touchOpenDelay:h=0,reason:g=Ts}=n,y=v.useRef(void 0),b=Ma(),S=ur(),x=v.useMemo(()=>({onPointerDown(T){y.current=T.pointerType},onMouseDown(T){const C=y.current,E=T.nativeEvent,L=o.select("open");if(T.button!==0||c==="click"||ka(C,!0)&&f)return;const j=s.current.openEvent,k=j?.type,R=o.select("domReferenceElement")!==T.currentTarget,N=L&&R||!(L&&u&&(!(j&&p)||k==="click"||k==="mousedown")),z=Xt(E);if(md(z)){const K=ct(g,E,z);N&&C==="touch"&&h>0?S.start(h,()=>{o.setOpen(!0,K)}):o.setOpen(N,K);return}const P=T.currentTarget;b.request(()=>{const K=ct(g,E,P);N&&C==="touch"&&h>0?S.start(h,()=>{o.setOpen(!0,K)}):o.setOpen(N,K)})},onClick(T){if(c==="mousedown-only")return;const C=y.current;if(c==="mousedown"&&C){y.current=void 0;return}if(ka(C,!0)&&f)return;const E=o.select("open"),L=s.current.openEvent,j=o.select("domReferenceElement")!==T.currentTarget,k=E&&j||!(E&&u&&(!(L&&p)||Dy(L))),R=ct(g,T.nativeEvent,T.currentTarget);k&&C==="touch"&&h>0?S.start(h,()=>{o.setOpen(!0,R)}):o.setOpen(k,R)},onKeyDown(){y.current=void 0}}),[s,c,f,o,p,u,b,S,h,g]);return v.useMemo(()=>l?{reference:x}:rn,[l,x])}const z_={intentional:"onClick",sloppy:"onPointerDown"};function N_(){return!1}function k_(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Gd(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingElement"),{dataRef:c}=o.context,{enabled:u=!0,escapeKey:f=!0,outsidePress:p=!0,outsidePressEvent:h="sloppy",referencePress:g=N_,referencePressEvent:y="sloppy",bubbles:b,externalTree:S}=n,x=Pi(S),T=Te(typeof p=="function"?p:()=>!1),C=typeof p=="function"?T:p,E=C!==!1,L=Te(()=>h),j=v.useRef(!1),k=v.useRef(!1),R=v.useRef(!1),{escapeKey:N,outsidePress:z}=k_(b),P=v.useRef(null),K=ur(),G=ur(),q=Te(()=>{G.clear(),c.current.insideReactTree=!1}),te=v.useRef(!1),ee=v.useRef(""),F=Te(g),I=Te(A=>{if(!s||!u||!f||A.key!=="Escape"||te.current)return;const V=c.current.floatingContext?.nodeId,Y=x?Jr(x.nodesRef.current,V):[];if(!N&&Y.length>0){let ie=!0;if(Y.forEach(ce=>{ce.context?.open&&!ce.context.dataRef.current.__escapeKeyBubbles&&(ie=!1)}),!ie)return}const W=rO(A)?A.nativeEvent:A,ne=ct(f0,W);o.setOpen(!1,ne),!N&&!ne.isPropagationAllowed&&A.stopPropagation()}),_=Te(()=>{c.current.insideReactTree=!0,G.start(0,q)});v.useEffect(()=>{if(!s||!u)return;c.current.__escapeKeyBubbles=N,c.current.__outsidePressBubbles=z;const A=new cr,V=new cr;function Y(){A.clear(),te.current=!0}function W(){A.start(nc()?5:0,()=>{te.current=!1})}function ne(){R.current=!0,V.start(0,()=>{R.current=!1})}function ie(){j.current=!1,k.current=!1}function ce(){const J=ee.current,X=J==="pen"||!J?"mouse":J,ve=L(),we=typeof ve=="function"?ve():ve;return typeof we=="string"?we:we[X]}function de(J){const X=ce();return X==="intentional"&&J.type!=="click"||X==="sloppy"&&J.type==="click"}function ye(J){const X=c.current.floatingContext?.nodeId,ve=x&&Jr(x.nodesRef.current,X).some(we=>Br(J,we.context?.elements.floating));return Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement"))||ve}function Ee(J){if(de(J)){q();return}if(c.current.insideReactTree){q();return}const X=Xt(J),ve=`[${vc("inert")}]`,we=bt(X)?X.getRootNode():null,be=Array.from((vs(we)?we:Je(o.select("floatingElement"))).querySelectorAll(ve)),Ne=o.context.triggerElements;if(X&&(Ne.hasElement(X)||Ne.hasMatchingElement($e=>Ie($e,X))))return;let qe=bt(X)?X:null;for(;qe&&!go(qe);){const $e=yo(qe);if(go($e)||!bt($e))break;qe=$e}if(be.length&&bt(X)&&!tO(X)&&!Ie(X,o.select("floatingElement"))&&be.every($e=>!Ie(qe,$e)))return;if(Zt(X)&&!("touches"in J)){const $e=go(X),et=Zn(X),Xe=/auto|scroll/,We=$e||Xe.test(et.overflowX),dt=$e||Xe.test(et.overflowY),jt=We&&X.clientWidth>0&&X.scrollWidth>X.clientWidth,rt=dt&&X.clientHeight>0&&X.scrollHeight>X.clientHeight,Ze=et.direction==="rtl",st=rt&&(Ze?J.offsetX<=X.offsetWidth-X.clientWidth:J.offsetX>X.clientWidth),ut=jt&&J.offsetY>X.clientHeight;if(st||ut)return}if(ye(J))return;if(ce()==="intentional"&&R.current){V.clear(),R.current=!1;return}if(typeof C=="function"&&!C(J))return;const He=c.current.floatingContext?.nodeId,Be=x?Jr(x.nodesRef.current,He):[];if(Be.length>0){let $e=!0;if(Be.forEach(et=>{et.context?.open&&!et.context.dataRef.current.__outsidePressBubbles&&($e=!1)}),!$e)return}o.setOpen(!1,ct(kd,J)),q()}function Me(J){ce()!=="sloppy"||J.pointerType==="touch"||!o.select("open")||!u||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement"))||Ee(J)}function fe(J){if(ce()!=="sloppy"||!o.select("open")||!u||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement")))return;const X=J.touches[0];X&&(P.current={startTime:Date.now(),startX:X.clientX,startY:X.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},K.start(1e3,()=>{P.current&&(P.current.dismissOnTouchEnd=!1,P.current.dismissOnMouseDown=!1)}))}function ze(J,X){const ve=Xt(J);if(!ve)return;const we=pt(ve,J.type,()=>{X(J),we()})}function De(J){ee.current="touch",ze(J,fe)}function _e(J){K.clear(),J.type==="pointerdown"&&(ee.current=J.pointerType),!(J.type==="mousedown"&&P.current&&!P.current.dismissOnMouseDown)&&ze(J,X=>{X.type==="pointerdown"?Me(X):Ee(X)})}function Oe(J){if(!j.current)return;const X=k.current;if(ie(),ce()==="intentional"){if(J.type==="pointercancel"){X&&ne();return}if(!ye(J)){if(X){ne();return}typeof C=="function"&&!C(J)||(V.clear(),R.current=!0,q())}}}function Ce(J){if(ce()!=="sloppy"||!P.current||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement")))return;const X=J.touches[0];if(!X)return;const ve=Math.abs(X.clientX-P.current.startX),we=Math.abs(X.clientY-P.current.startY),be=Math.sqrt(ve*ve+we*we);be>5&&(P.current.dismissOnTouchEnd=!0),be>10&&(Ee(J),K.clear(),P.current=null)}function Le(J){ze(J,Ce)}function Re(J){ce()!=="sloppy"||!P.current||Br(J,o.select("floatingElement"))||Br(J,o.select("domReferenceElement"))||(P.current.dismissOnTouchEnd&&Ee(J),K.clear(),P.current=null)}function Ue(J){ze(J,Re)}const H=Je(l),oe=Kr(f&&Kr(pt(H,"keydown",I),pt(H,"compositionstart",Y),pt(H,"compositionend",W)),E&&Kr(pt(H,"click",_e,!0),pt(H,"pointerdown",_e,!0),pt(H,"pointerup",Oe,!0),pt(H,"pointercancel",Oe,!0),pt(H,"mousedown",_e,!0),pt(H,"mouseup",Oe,!0),pt(H,"touchstart",De,!0),pt(H,"touchmove",Le,!0),pt(H,"touchend",Ue,!0)));return()=>{oe(),A.clear(),V.clear(),ie(),R.current=!1}},[c,l,f,E,C,s,u,N,z,I,q,L,x,o,K]),v.useEffect(q,[C,q]);const O=v.useMemo(()=>({onKeyDown:I,[z_[y]]:A=>{F()&&o.setOpen(!1,ct(Ts,A.nativeEvent))},...y!=="intentional"&&{onClick(A){F()&&o.setOpen(!1,ct(Ts,A.nativeEvent))}}}),[I,o,y,F]),U=Te(A=>{if(!s||!u||A.button!==0)return;const V=Xt(A.nativeEvent);Ie(o.select("floatingElement"),V)&&(j.current||(j.current=!0,k.current=!1))}),B=Te(A=>{!s||!u||(A.defaultPrevented||A.nativeEvent.defaultPrevented)&&j.current&&(k.current=!0)}),Q=v.useMemo(()=>({onKeyDown:I,onPointerDown:B,onMouseDown:B,onClickCapture:_,onMouseDownCapture(A){_(),U(A)},onPointerDownCapture(A){_(),U(A)},onMouseUpCapture:_,onTouchEndCapture:_,onTouchMoveCapture:_}),[I,_,U,B]);return v.useMemo(()=>u?{reference:O,floating:Q,trigger:O}:{},[u,O,Q])}function R0(e,n,o){let{reference:s,floating:l}=e;const c=Rr(n),u=wd(n),f=Sd(u),p=Wn(n),h=c==="y",g=s.x+s.width/2-l.width/2,y=s.y+s.height/2-l.height/2,b=s[f]/2-l[f]/2;let S;switch(p){case"top":S={x:g,y:s.y-l.height};break;case"bottom":S={x:g,y:s.y+s.height};break;case"right":S={x:s.x+s.width,y};break;case"left":S={x:s.x-l.width,y};break;default:S={x:s.x,y:s.y}}switch(Ko(n)){case"start":S[u]-=b*(o&&h?-1:1);break;case"end":S[u]+=b*(o&&h?-1:1);break}return S}async function j_(e,n){var o;n===void 0&&(n={});const{x:s,y:l,platform:c,rects:u,elements:f,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=vo(n,e),x=ky(S),C=f[b?y==="floating"?"reference":"floating":y],E=ja(await c.getClippingRect({element:(o=await(c.isElement==null?void 0:c.isElement(C)))==null||o?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:p})),L=y==="floating"?{x:s,y:l,width:u.floating.width,height:u.floating.height}:u.reference,j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),k=await(c.isElement==null?void 0:c.isElement(j))?await(c.getScale==null?void 0:c.getScale(j))||{x:1,y:1}:{x:1,y:1},R=ja(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:j,strategy:p}):L);return{top:(E.top-R.top+x.top)/k.y,bottom:(R.bottom-E.bottom+x.bottom)/k.y,left:(E.left-R.left+x.left)/k.x,right:(R.right-E.right+x.right)/k.x}}const L_=50,P_=async(e,n,o)=>{const{placement:s="bottom",strategy:l="absolute",middleware:c=[],platform:u}=o,f=u.detectOverflow?u:{...u,detectOverflow:j_},p=await(u.isRTL==null?void 0:u.isRTL(n));let h=await u.getElementRects({reference:e,floating:n,strategy:l}),{x:g,y}=R0(h,s,p),b=s,S=0;const x={};for(let T=0;T<c.length;T++){const C=c[T];if(!C)continue;const{name:E,fn:L}=C,{x:j,y:k,data:R,reset:N}=await L({x:g,y,initialPlacement:s,placement:b,strategy:l,middlewareData:x,rects:h,platform:f,elements:{reference:e,floating:n}});g=j??g,y=k??y,x[E]={...x[E],...R},N&&S<L_&&(S++,typeof N=="object"&&(N.placement&&(b=N.placement),N.rects&&(h=N.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:l}):N.rects),{x:g,y}=R0(h,b,p)),T=-1)}return{x:g,y,placement:b,strategy:l,middlewareData:x}},I_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var o,s;const{placement:l,middlewareData:c,rects:u,initialPlacement:f,platform:p,elements:h}=n,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,...C}=vo(e,n);if((o=c.arrow)!=null&&o.alignmentOffset)return{};const E=Wn(l),L=Rr(f),j=Wn(f)===f,k=await(p.isRTL==null?void 0:p.isRTL(h.floating)),R=b||(j||!T?[lc(f)]:aO(f)),N=x!=="none";!b&&N&&R.push(...fO(f,T,x,k));const z=[f,...R],P=await p.detectOverflow(n,C),K=[];let G=((s=c.flip)==null?void 0:s.overflows)||[];if(g&&K.push(P[E]),y){const F=sO(l,u,k);K.push(P[F[0]],P[F[1]])}if(G=[...G,{placement:l,overflows:K}],!K.every(F=>F<=0)){var q,te;const F=(((q=c.flip)==null?void 0:q.index)||0)+1,I=z[F];if(I&&(!(y==="alignment"?L!==Rr(I):!1)||G.every(U=>Rr(U.placement)===L?U.overflows[0]>0:!0)))return{data:{index:F,overflows:G},reset:{placement:I}};let _=(te=G.filter(O=>O.overflows[0]<=0).sort((O,U)=>O.overflows[1]-U.overflows[1])[0])==null?void 0:te.placement;if(!_)switch(S){case"bestFit":{var ee;const O=(ee=G.filter(U=>{if(N){const B=Rr(U.placement);return B===L||B==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(B=>B>0).reduce((B,Q)=>B+Q,0)]).sort((U,B)=>U[1]-B[1])[0])==null?void 0:ee[0];O&&(_=O);break}case"initialPlacement":_=f;break}if(l!==_)return{reset:{placement:_}}}return{}}}};function O0(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function _0(e){return oO.some(n=>e[n]>=0)}const U_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:o,platform:s}=n,{strategy:l="referenceHidden",...c}=vo(e,n);switch(l){case"referenceHidden":{const u=await s.detectOverflow(n,{...c,elementContext:"reference"}),f=O0(u,o.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:_0(f)}}}case"escaped":{const u=await s.detectOverflow(n,{...c,altBoundary:!0}),f=O0(u,o.floating);return{data:{escapedOffsets:f,escaped:_0(f)}}}default:return{}}}}},A0=new Set(["left","top"]);async function V_(e,n){const{placement:o,platform:s,elements:l}=e,c=await(s.isRTL==null?void 0:s.isRTL(l.floating)),u=Wn(o),f=Ko(o),p=Rr(o)==="y",h=A0.has(u)?-1:1,g=c&&p?-1:1,y=vo(n,e);let{mainAxis:b,crossAxis:S,alignmentAxis:x}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof x=="number"&&(S=f==="end"?x*-1:x),p?{x:S*g,y:b*h}:{x:b*h,y:S*g}}const H_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var o,s;const{x:l,y:c,placement:u,middlewareData:f}=n,p=await V_(n,e);return u===((o=f.offset)==null?void 0:o.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:u}}}}},F_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:s,placement:l,platform:c}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:p={fn:E=>{let{x:L,y:j}=E;return{x:L,y:j}}},...h}=vo(e,n),g={x:o,y:s},y=await c.detectOverflow(n,h),b=Rr(Wn(l)),S=bd(b);let x=g[S],T=g[b];if(u){const E=S==="y"?"top":"left",L=S==="y"?"bottom":"right",j=x+y[E],k=x-y[L];x=vd(j,x,k)}if(f){const E=b==="y"?"top":"left",L=b==="y"?"bottom":"right",j=T+y[E],k=T-y[L];T=vd(j,T,k)}const C=p.fn({...n,[S]:x,[b]:T});return{...C,data:{x:C.x-o,y:C.y-s,enabled:{[S]:u,[b]:f}}}}}},B_=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:o,y:s,placement:l,rects:c,middlewareData:u}=n,{offset:f=0,mainAxis:p=!0,crossAxis:h=!0}=vo(e,n),g={x:o,y:s},y=Rr(l),b=bd(y);let S=g[b],x=g[y];const T=vo(f,n),C=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(p){const j=b==="y"?"height":"width",k=c.reference[b]-c.floating[j]+C.mainAxis,R=c.reference[b]+c.reference[j]-C.mainAxis;S<k?S=k:S>R&&(S=R)}if(h){var E,L;const j=b==="y"?"width":"height",k=A0.has(Wn(l)),R=c.reference[y]-c.floating[j]+(k&&((E=u.offset)==null?void 0:E[y])||0)+(k?0:C.crossAxis),N=c.reference[y]+c.reference[j]+(k?0:((L=u.offset)==null?void 0:L[y])||0)-(k?C.crossAxis:0);x<R?x=R:x>N&&(x=N)}return{[b]:S,[y]:x}}}},Z_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var o,s;const{placement:l,rects:c,platform:u,elements:f}=n,{apply:p=()=>{},...h}=vo(e,n),g=await u.detectOverflow(n,h),y=Wn(l),b=Ko(l),S=Rr(l)==="y",{width:x,height:T}=c.floating;let C,E;y==="top"||y==="bottom"?(C=y,E=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(E=y,C=b==="end"?"top":"bottom");const L=T-g.top-g.bottom,j=x-g.left-g.right,k=Ss(T-g[C],L),R=Ss(x-g[E],j),N=!n.middlewareData.shift;let z=k,P=R;if((o=n.middlewareData.shift)!=null&&o.enabled.x&&(P=j),(s=n.middlewareData.shift)!=null&&s.enabled.y&&(z=L),N&&!b){const G=dr(g.left,0),q=dr(g.right,0),te=dr(g.top,0),ee=dr(g.bottom,0);S?P=x-2*(G!==0||q!==0?G+q:dr(g.left,g.right)):z=T-2*(te!==0||ee!==0?te+ee:dr(g.top,g.bottom))}await p({...n,availableWidth:P,availableHeight:z});const K=await u.getDimensions(f.floating);return x!==K.width||T!==K.height?{reset:{rects:!0}}:{}}}};function M0(e){const n=Zn(e);let o=parseFloat(n.width)||0,s=parseFloat(n.height)||0;const l=Zt(e),c=l?e.offsetWidth:o,u=l?e.offsetHeight:s,f=ac(o)!==c||ac(s)!==u;return f&&(o=c,s=u),{width:o,height:s,$:f}}function Yd(e){return bt(e)?e:e.contextElement}function Cs(e){const n=Yd(e);if(!Zt(n))return eo(1);const o=n.getBoundingClientRect(),{width:s,height:l,$:c}=M0(n);let u=(c?ac(o.width):o.width)/s,f=(c?ac(o.height):o.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const G_=eo(0);function D0(e){const n=Lt(e);return!nc()||!n.visualViewport?G_:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Y_(e,n,o){return n===void 0&&(n=!1),!o||n&&o!==Lt(e)?!1:n}function Ii(e,n,o,s){n===void 0&&(n=!1),o===void 0&&(o=!1);const l=e.getBoundingClientRect(),c=Yd(e);let u=eo(1);n&&(s?bt(s)&&(u=Cs(s)):u=Cs(e));const f=Y_(c,o,s)?D0(c):eo(0);let p=(l.left+f.x)/u.x,h=(l.top+f.y)/u.y,g=l.width/u.x,y=l.height/u.y;if(c){const b=Lt(c),S=s&&bt(s)?Lt(s):s;let x=b,T=cd(x);for(;T&&s&&S!==x;){const C=Cs(T),E=T.getBoundingClientRect(),L=Zn(T),j=E.left+(T.clientLeft+parseFloat(L.paddingLeft))*C.x,k=E.top+(T.clientTop+parseFloat(L.paddingTop))*C.y;p*=C.x,h*=C.y,g*=C.x,y*=C.y,p+=j,h+=k,x=Lt(T),T=cd(x)}}return ja({width:g,height:y,x:p,y:h})}function xc(e,n){const o=rc(e).scrollLeft;return n?n.left+o:Ii(Qr(e)).left+o}function z0(e,n){const o=e.getBoundingClientRect(),s=o.left+n.scrollLeft-xc(e,o),l=o.top+n.scrollTop;return{x:s,y:l}}function $_(e){let{elements:n,rect:o,offsetParent:s,strategy:l}=e;const c=l==="fixed",u=Qr(s),f=n?tc(n.floating):!1;if(s===u||f&&c)return o;let p={scrollLeft:0,scrollTop:0},h=eo(1);const g=eo(0),y=Zt(s);if((y||!y&&!c)&&((Hn(s)!=="body"||qo(u))&&(p=rc(s)),y)){const S=Ii(s);h=Cs(s),g.x=S.x+s.clientLeft,g.y=S.y+s.clientTop}const b=u&&!y&&!c?z0(u,p):eo(0);return{width:o.width*h.x,height:o.height*h.y,x:o.x*h.x-p.scrollLeft*h.x+g.x+b.x,y:o.y*h.y-p.scrollTop*h.y+g.y+b.y}}function q_(e){return Array.from(e.getClientRects())}function X_(e){const n=Qr(e),o=rc(e),s=e.ownerDocument.body,l=dr(n.scrollWidth,n.clientWidth,s.scrollWidth,s.clientWidth),c=dr(n.scrollHeight,n.clientHeight,s.scrollHeight,s.clientHeight);let u=-o.scrollLeft+xc(e);const f=-o.scrollTop;return Zn(s).direction==="rtl"&&(u+=dr(n.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:f}}const N0=25;function Q_(e,n){const o=Lt(e),s=Qr(e),l=o.visualViewport;let c=s.clientWidth,u=s.clientHeight,f=0,p=0;if(l){c=l.width,u=l.height;const g=nc();(!g||g&&n==="fixed")&&(f=l.offsetLeft,p=l.offsetTop)}const h=xc(s);if(h<=0){const g=s.ownerDocument,y=g.body,b=getComputedStyle(y),S=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,x=Math.abs(s.clientWidth-y.clientWidth-S);x<=N0&&(c-=x)}else h<=N0&&(c+=h);return{width:c,height:u,x:f,y:p}}function K_(e,n){const o=Ii(e,!0,n==="fixed"),s=o.top+e.clientTop,l=o.left+e.clientLeft,c=Zt(e)?Cs(e):eo(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,p=l*c.x,h=s*c.y;return{width:u,height:f,x:p,y:h}}function k0(e,n,o){let s;if(n==="viewport")s=Q_(e,o);else if(n==="document")s=X_(Qr(e));else if(bt(n))s=K_(n,o);else{const l=D0(e);s={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return ja(s)}function j0(e,n){const o=yo(e);return o===n||!bt(o)||go(o)?!1:Zn(o).position==="fixed"||j0(o,n)}function W_(e,n){const o=n.get(e);if(o)return o;let s=Aa(e,[],!1).filter(f=>bt(f)&&Hn(f)!=="body"),l=null;const c=Zn(e).position==="fixed";let u=c?yo(e):e;for(;bt(u)&&!go(u);){const f=Zn(u),p=ld(u);!p&&f.position==="fixed"&&(l=null),(c?!p&&!l:!p&&f.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||qo(u)&&!p&&j0(e,u))?s=s.filter(g=>g!==u):l=f,u=yo(u)}return n.set(e,s),s}function J_(e){let{element:n,boundary:o,rootBoundary:s,strategy:l}=e;const u=[...o==="clippingAncestors"?tc(n)?[]:W_(n,this._c):[].concat(o),s],f=k0(n,u[0],l);let p=f.top,h=f.right,g=f.bottom,y=f.left;for(let b=1;b<u.length;b++){const S=k0(n,u[b],l);p=dr(S.top,p),h=Ss(S.right,h),g=Ss(S.bottom,g),y=dr(S.left,y)}return{width:h-y,height:g-p,x:y,y:p}}function eA(e){const{width:n,height:o}=M0(e);return{width:n,height:o}}function tA(e,n,o){const s=Zt(n),l=Qr(n),c=o==="fixed",u=Ii(e,!0,c,n);let f={scrollLeft:0,scrollTop:0};const p=eo(0);function h(){p.x=xc(l)}if(s||!s&&!c)if((Hn(n)!=="body"||qo(l))&&(f=rc(n)),s){const S=Ii(n,!0,c,n);p.x=S.x+n.clientLeft,p.y=S.y+n.clientTop}else l&&h();c&&!s&&l&&h();const g=l&&!s&&!c?z0(l,f):eo(0),y=u.left+f.scrollLeft-p.x-g.x,b=u.top+f.scrollTop-p.y-g.y;return{x:y,y:b,width:u.width,height:u.height}}function $d(e){return Zn(e).position==="static"}function L0(e,n){if(!Zt(e)||Zn(e).position==="fixed")return null;if(n)return n(e);let o=e.offsetParent;return Qr(e)===o&&(o=o.ownerDocument.body),o}function P0(e,n){const o=Lt(e);if(tc(e))return o;if(!Zt(e)){let l=yo(e);for(;l&&!go(l);){if(bt(l)&&!$d(l))return l;l=yo(l)}return o}let s=L0(e,n);for(;s&&GR(s)&&$d(s);)s=L0(s,n);return s&&go(s)&&$d(s)&&!ld(s)?o:s||qR(e)||o}const nA=async function(e){const n=this.getOffsetParent||P0,o=this.getDimensions,s=await o(e.floating);return{reference:tA(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function rA(e){return Zn(e).direction==="rtl"}const I0={convertOffsetParentRelativeRectToViewportRelativeRect:$_,getDocumentElement:Qr,getClippingRect:J_,getOffsetParent:P0,getElementRects:nA,getClientRects:q_,getDimensions:eA,getScale:Cs,isElement:bt,isRTL:rA};function U0(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function oA(e,n){let o=null,s;const l=Qr(e);function c(){var f;clearTimeout(s),(f=o)==null||f.disconnect(),o=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),c();const h=e.getBoundingClientRect(),{left:g,top:y,width:b,height:S}=h;if(f||n(),!b||!S)return;const x=Di(y),T=Di(l.clientWidth-(g+b)),C=Di(l.clientHeight-(y+S)),E=Di(g),j={rootMargin:-x+"px "+-T+"px "+-C+"px "+-E+"px",threshold:dr(0,Ss(1,p))||1};let k=!0;function R(N){const z=N[0].intersectionRatio;if(z!==p){if(!k)return u();z?u(!1,z):s=setTimeout(()=>{u(!1,1e-7)},1e3)}z===1&&!U0(h,e.getBoundingClientRect())&&u(),k=!1}try{o=new IntersectionObserver(R,{...j,root:l.ownerDocument})}catch{o=new IntersectionObserver(R,j)}o.observe(e)}return u(!0),c}function V0(e,n,o,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,h=Yd(e),g=l||c?[...h?Aa(h):[],...n?Aa(n):[]]:[];g.forEach(E=>{l&&E.addEventListener("scroll",o,{passive:!0}),c&&E.addEventListener("resize",o)});const y=h&&f?oA(h,o):null;let b=-1,S=null;u&&(S=new ResizeObserver(E=>{let[L]=E;L&&L.target===h&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=S)==null||j.observe(n)})),o()}),h&&!p&&S.observe(h),n&&S.observe(n));let x,T=p?Ii(e):null;p&&C();function C(){const E=Ii(e);T&&!U0(T,E)&&o(),T=E,x=requestAnimationFrame(C)}return o(),()=>{var E;g.forEach(L=>{l&&L.removeEventListener("scroll",o),c&&L.removeEventListener("resize",o)}),y?.(),(E=S)==null||E.disconnect(),S=null,p&&cancelAnimationFrame(x)}}const iA=H_,sA=F_,aA=I_,lA=Z_,cA=U_,uA=B_,fA=(e,n,o)=>{const s=new Map,l={platform:I0,...o},c={...l.platform,_c:s};return P_(e,n,{...l,platform:c})};var dA=typeof document<"u",hA=function(){},Ec=dA?v.useLayoutEffect:hA;function Tc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let o,s,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==n.length)return!1;for(s=o;s--!==0;)if(!Tc(e[s],n[s]))return!1;return!0}if(l=Object.keys(e),o=l.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(n,l[s]))return!1;for(s=o;s--!==0;){const c=l[s];if(!(c==="_owner"&&e.$$typeof)&&!Tc(e[c],n[c]))return!1}return!0}return e!==e&&n!==n}function H0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F0(e,n){const o=H0(e);return Math.round(n*o)/o}function qd(e){const n=v.useRef(e);return Ec(()=>{n.current=e}),n}function pA(e){e===void 0&&(e={});const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:l,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:p,open:h}=e,[g,y]=v.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=v.useState(s);Tc(b,s)||S(s);const[x,T]=v.useState(null),[C,E]=v.useState(null),L=v.useCallback(U=>{U!==N.current&&(N.current=U,T(U))},[]),j=v.useCallback(U=>{U!==z.current&&(z.current=U,E(U))},[]),k=c||x,R=u||C,N=v.useRef(null),z=v.useRef(null),P=v.useRef(g),K=p!=null,G=qd(p),q=qd(l),te=qd(h),ee=v.useCallback(()=>{if(!N.current||!z.current)return;const U={placement:n,strategy:o,middleware:b};q.current&&(U.platform=q.current),fA(N.current,z.current,U).then(B=>{const Q={...B,isPositioned:te.current!==!1};F.current&&!Tc(P.current,Q)&&(P.current=Q,Cr.flushSync(()=>{y(Q)}))})},[b,n,o,q,te]);Ec(()=>{h===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[h]);const F=v.useRef(!1);Ec(()=>(F.current=!0,()=>{F.current=!1}),[]),Ec(()=>{if(k&&(N.current=k),R&&(z.current=R),k&&R){if(G.current)return G.current(k,R,ee);ee()}},[k,R,ee,G,K]);const I=v.useMemo(()=>({reference:N,floating:z,setReference:L,setFloating:j}),[L,j]),_=v.useMemo(()=>({reference:k,floating:R}),[k,R]),O=v.useMemo(()=>{const U={position:o,left:0,top:0};if(!_.floating)return U;const B=F0(_.floating,g.x),Q=F0(_.floating,g.y);return f?{...U,transform:"translate("+B+"px, "+Q+"px)",...H0(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:B,top:Q}},[o,f,_.floating,g.x,g.y]);return v.useMemo(()=>({...g,update:ee,refs:I,elements:_,floatingStyles:O}),[g,ee,I,_,O])}const mA=(e,n)=>{const o=iA(e);return{name:o.name,fn:o.fn,options:[e,n]}},gA=(e,n)=>{const o=sA(e);return{name:o.name,fn:o.fn,options:[e,n]}},yA=(e,n)=>({fn:uA(e).fn,options:[e,n]}),vA=(e,n)=>{const o=aA(e);return{name:o.name,fn:o.fn,options:[e,n]}},bA=(e,n)=>{const o=lA(e);return{name:o.name,fn:o.fn,options:[e,n]}},SA=(e,n)=>{const o=cA(e);return{name:o.name,fn:o.fn,options:[e,n]}},wA={open:Ae(e=>e.open),transitionStatus:Ae(e=>e.transitionStatus),domReferenceElement:Ae(e=>e.domReferenceElement),referenceElement:Ae(e=>e.positionReference??e.referenceElement),floatingElement:Ae(e=>e.floatingElement),floatingId:Ae(e=>e.floatingId)};class Xd extends Jl{constructor(n){const{syncOnly:o,nested:s,onOpenChange:l,triggerElements:c,...u}=n;super({...u,positionReference:u.referenceElement,domReferenceElement:u.referenceElement},{onOpenChange:l,dataRef:{current:{}},events:w0(),nested:s,triggerElements:c},wA),this.syncOnly=o}syncOpenEvent=(n,o)=>{(!n||!this.state.open||o!=null&&Dy(o))&&(this.context.dataRef.current.openEvent=n?o:void 0)};dispatchOpenChange=(n,o)=>{this.syncOpenEvent(n,o.event);const s={open:n,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",s)};setOpen=(n,o)=>{if(this.syncOnly){this.context.onOpenChange?.(n,o);return}this.dispatchOpenChange(n,o),this.context.onOpenChange?.(n,o)}}function Va(e,n=!1,o=!1){const[s,l]=v.useState(e&&n?"idle":void 0),[c,u]=v.useState(e);return e&&!c&&(u(!0),l("starting")),!e&&c&&s!=="ending"&&!o&&l("ending"),!e&&!c&&s==="ending"&&l(void 0),ke(()=>{if(!e&&c&&s!=="ending"&&o){const f=Wr.request(()=>{l("ending")});return()=>{Wr.cancel(f)}}},[e,c,s,o]),ke(()=>{if(!e||n)return;const f=Wr.request(()=>{l(void 0)});return()=>{Wr.cancel(f)}},[n,e]),ke(()=>{if(!e||!n)return;e&&c&&s!=="idle"&&l("starting");const f=Wr.request(()=>{l("idle")});return()=>{Wr.cancel(f)}},[n,e,c,s]),{mounted:c,setMounted:u,transitionStatus:s}}function xA(e,n){const o=v.useRef(null),s=v.useRef(null);return v.useCallback(l=>{if(e!==void 0){if(o.current!==null){const c=o.current,u=s.current,f=n.context.triggerElements.getById(c);u&&f===u&&n.context.triggerElements.delete(c),o.current=null,s.current=null}l!==null&&(o.current=e,s.current=l,n.context.triggerElements.add(e,l))}},[n,e])}function B0(e,n,o,s){const l=o.useState("isMountedByTrigger",e),c=xA(e,o),u=Te(f=>{if(c(f),!f||!o.select("open"))return;const p=o.select("activeTriggerId");if(p===e){o.update({activeTriggerElement:f,...s});return}p==null&&o.update({activeTriggerId:e,activeTriggerElement:f,...s})});return ke(()=>{l&&o.update({activeTriggerElement:n.current,...s})},[l,o,n,...Object.values(s)]),{registerTrigger:u,isMountedByThisTrigger:l}}function Z0(e){const n=e.useState("open");ke(()=>{if(n&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const o=e.context.triggerElements.entries().next();if(!o.done){const[s,l]=o.value;e.update({activeTriggerId:s,activeTriggerElement:l})}}},[n,e])}function G0(e,n,o){const{mounted:s,setMounted:l,transitionStatus:c}=Va(e);n.useSyncedValues({mounted:s,transitionStatus:c});const u=Te(()=>{l(!1),n.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),o?.(),n.context.onOpenChangeComplete?.(!1)}),f=n.useState("preventUnmountingOnClose");return ro({enabled:!f,open:e,ref:n.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:c}}class Cc{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(n,o){const s=this.idMap.get(n);s!==o&&(s!==void 0&&this.elementsSet.delete(s),this.elementsSet.add(o),this.idMap.set(n,o))}delete(n){const o=this.idMap.get(n);o&&(this.elementsSet.delete(o),this.idMap.delete(n))}hasElement(n){return this.elementsSet.has(n)}hasMatchingElement(n){for(const o of this.elementsSet)if(n(o))return!0;return!1}getById(n){return this.idMap.get(n)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function EA(){return new Xd({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Cc,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function Y0(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:EA(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:rn,inactiveTriggerProps:rn,popupProps:rn}}const Rc=Ae(e=>e.triggerIdProp??e.activeTriggerId),$0={open:Ae(e=>e.openProp??e.open),mounted:Ae(e=>e.mounted),transitionStatus:Ae(e=>e.transitionStatus),floatingRootContext:Ae(e=>e.floatingRootContext),preventUnmountingOnClose:Ae(e=>e.preventUnmountingOnClose),payload:Ae(e=>e.payload),activeTriggerId:Rc,activeTriggerElement:Ae(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ae((e,n)=>n!==void 0&&Rc(e)===n),isOpenedByTrigger:Ae((e,n)=>n!==void 0&&Rc(e)===n&&e.open),isMountedByTrigger:Ae((e,n)=>n!==void 0&&Rc(e)===n&&e.mounted),triggerProps:Ae((e,n)=>n?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ae(e=>e.popupProps),popupElement:Ae(e=>e.popupElement),positionerElement:Ae(e=>e.positionerElement)};function q0(e){const{open:n=!1,onOpenChange:o,elements:s={}}=e,l=Jo(),c=ei()!=null,u=vn(()=>new Xd({open:n,transitionStatus:void 0,onOpenChange:o,referenceElement:s.reference??null,floatingElement:s.floating??null,triggerElements:new Cc,floatingId:l,syncOnly:!1,nested:c})).current;return ke(()=>{const f={open:n,floatingId:l};s.reference!==void 0&&(f.referenceElement=s.reference,f.domReferenceElement=bt(s.reference)?s.reference:null),s.floating!==void 0&&(f.floatingElement=s.floating),u.update(f)},[n,l,s.reference,s.floating,u]),u.context.onOpenChange=o,u.context.nested=c,u}function TA(e={}){const{nodeId:n,externalTree:o}=e,s=q0(e),l=e.rootContext||s,c={reference:l.useState("referenceElement"),floating:l.useState("floatingElement"),domReference:l.useState("domReferenceElement")},[u,f]=v.useState(null),p=v.useRef(null),h=Pi(o);ke(()=>{c.domReference&&(p.current=c.domReference)},[c.domReference]);const g=pA({...e,elements:{...c,...u&&{reference:u}}}),y=v.useCallback(P=>{const K=bt(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),getClientRects:()=>P.getClientRects(),contextElement:P}:P;f(K),g.refs.setReference(K)},[g.refs]),[b,S]=v.useState(void 0),[x,T]=v.useState(null);l.useSyncedValue("referenceElement",b??null);const C=bt(b)?b:null;l.useSyncedValue("domReferenceElement",b===void 0?c.domReference:C),l.useSyncedValue("floatingElement",x);const E=v.useCallback(P=>{(bt(P)||P===null)&&(p.current=P,S(P)),(bt(g.refs.reference.current)||g.refs.reference.current===null||P!==null&&!bt(P))&&g.refs.setReference(P)},[g.refs,S]),L=v.useCallback(P=>{T(P),g.refs.setFloating(P)},[g.refs]),j=v.useMemo(()=>({...g.refs,setReference:E,setFloating:L,setPositionReference:y,domReference:p}),[g.refs,E,L,y]),k=v.useMemo(()=>({...g.elements,domReference:c.domReference}),[g.elements,c.domReference]),R=l.useState("open"),N=l.useState("floatingId"),z=v.useMemo(()=>({...g,dataRef:l.context.dataRef,open:R,onOpenChange:l.setOpen,events:l.context.events,floatingId:N,refs:j,elements:k,nodeId:n,rootStore:l}),[g,j,k,n,l,R,N]);return ke(()=>{l.context.dataRef.current.floatingContext=z;const P=h?.nodesRef.current.find(K=>K.id===n);P&&(P.context=z)}),v.useMemo(()=>({...g,context:z,refs:j,elements:k,rootStore:l}),[g,j,k,z,l])}function X0(e){const{popupStore:n,treatPopupAsFloatingElement:o=!1,onOpenChange:s}=e,l=Jo(),c=ei()!=null,u=n.useState("open"),f=n.useState("activeTriggerElement"),p=n.useState(o?"popupElement":"positionerElement"),h=n.context.triggerElements,g=vn(()=>new Xd({open:u,transitionStatus:void 0,referenceElement:f,floatingElement:p,triggerElements:h,onOpenChange:s,floatingId:l,syncOnly:!0,nested:c})).current;return ke(()=>{const y={open:u,floatingId:l,referenceElement:f,floatingElement:p};bt(f)&&(y.domReferenceElement=f),g.state.positionReference===g.state.referenceElement&&(y.positionReference=f),g.update(y)},[u,l,f,p,g]),g.context.onOpenChange=s,g.context.nested=c,g}class Qd{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new cr,this.restTimeout=new cr,this.handleCloseOptions=void 0}static create(){return new Qd}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const Oc=new WeakMap;function _c(e){if(!e.performedPointerEventsMutation)return;const n=e.pointerEventsScopeElement;n&&Oc.get(n)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Oc.delete(n)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Q0(e,n){const{scopeElement:o,referenceElement:s,floatingElement:l}=n,c=Oc.get(o);c&&c!==e&&_c(c),_c(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=s,e.pointerEventsFloatingElement=l,Oc.set(o,e),o.style.pointerEvents="none",s.style.pointerEvents="auto",l.style.pointerEvents="auto"}function K0(e){const n=vn(Qd.create).current,o=e.context.dataRef.current;return o.hoverInteractionState||(o.hoverInteractionState=n),_a(o.hoverInteractionState.disposeEffect),o.hoverInteractionState}function CA(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingElement"),c=o.useState("domReferenceElement"),{dataRef:u}=o.context,{enabled:f=!0,closeDelay:p=0,nodeId:h}=n,g=K0(o),y=Pi(),b=ei(),S=Te(()=>u0(u.current.openEvent?.type,g.interactedInside)),x=Te(()=>{const k=u.current.openEvent?.type;return k?.includes("mouse")&&k!=="mousedown"}),T=Te(k=>Oy(k,o.context.triggerElements)),C=v.useCallback(k=>{const R=Nd(p,"close",g.pointerType),N=()=>{o.setOpen(!1,ct(Yn,k)),y?.events.emit("floating.closed",k)};R?g.openChangeTimeout.start(R,N):(g.openChangeTimeout.clear(),N())},[p,o,g,y]),E=Te(()=>{_c(g)}),L=Te(k=>{const R=Xt(k);if(!nO(R)){g.interactedInside=!1;return}g.interactedInside=R?.closest("[aria-haspopup]")!=null});ke(()=>{s||(g.pointerType=void 0,g.restTimeoutPending=!1,g.interactedInside=!1,E())},[s,g,E]),v.useEffect(()=>E,[E]),ke(()=>{if(f&&s&&g.handleCloseOptions?.blockPointerEvents&&x()&&bt(c)&&l){const k=c,R=l,N=Je(l),z=y?.nodesRef.current.find(K=>K.id===b)?.context?.elements.floating;z&&(z.style.pointerEvents="");const P=g.handleCloseOptions?.getScope?.()??g.pointerEventsScopeElement??z??k.closest("[data-rootownerid]")??N.body;return Q0(g,{scopeElement:P,referenceElement:k,floatingElement:R}),()=>{E()}}},[f,s,c,l,g,x,y,b,E]);const j=ur();v.useEffect(()=>{if(!f)return;function k(){g.openChangeTimeout.clear(),j.clear(),y?.events.off("floating.closed",N),E()}function R(P){if(y&&b&&Jr(y.nodesRef.current,b).length>0){y.events.on("floating.closed",N);return}if(T(P.relatedTarget))return;const K=u.current.floatingContext?.nodeId??h,G=P.relatedTarget;if(!(y&&K&&bt(G)&&Jr(y.nodesRef.current,K,!1).some(te=>Ie(te.context?.elements.floating,G)))){if(g.handler){g.handler(P);return}E(),S()||C(P)}}function N(P){!y||!b||Jr(y.nodesRef.current,b).length>0||j.start(0,()=>{y.events.off("floating.closed",N),o.setOpen(!1,ct(Yn,P)),y.events.emit("floating.closed",P)})}const z=l;return Kr(z&&pt(z,"mouseenter",k),z&&pt(z,"mouseleave",R),z&&pt(z,"pointerdown",L,!0),()=>{y?.events.off("floating.closed",N)})},[f,l,o,u,h,S,T,C,E,L,g,y,b,j])}const RA={current:null};function OA(e,n={}){const o="rootStore"in e?e.rootStore:e,{dataRef:s,events:l}=o.context,{enabled:c=!0,delay:u=0,handleClose:f=null,mouseOnly:p=!1,restMs:h=0,move:g=!0,triggerElementRef:y=RA,externalTree:b,isActiveTrigger:S=!0,getHandleCloseContext:x,isClosing:T}=n,C=Pi(b),E=K0(o),L=v.useRef(!1),j=dn(f),k=dn(u),R=dn(h),N=dn(c),z=dn(T);S&&(E.handleCloseOptions=j.current?.__options);const P=Te(()=>u0(s.current.openEvent?.type,E.interactedInside)),K=Te(F=>Oy(F,o.context.triggerElements)),G=Te((F,I,_)=>{const O=o.context.triggerElements;if(O.hasElement(I))return!F||!Ie(F,I);if(!bt(_))return!1;const U=_;return O.hasMatchingElement(B=>Ie(B,U))&&(!F||!Ie(F,U))}),q=Te((F,I=!0)=>{const _=Nd(k.current,"close",E.pointerType);_?E.openChangeTimeout.start(_,()=>{o.setOpen(!1,ct(Yn,F)),C?.events.emit("floating.closed",F)}):I&&(E.openChangeTimeout.clear(),o.setOpen(!1,ct(Yn,F)),C?.events.emit("floating.closed",F))}),te=Te(()=>{if(!E.handler)return;Je(o.select("domReferenceElement")).removeEventListener("mousemove",E.handler),E.handler=void 0}),ee=Te(()=>{_c(E)});return v.useEffect(()=>te,[te]),v.useEffect(()=>{if(!c)return;function F(I){I.open?L.current=!1:(L.current=I.reason===Yn,te(),E.openChangeTimeout.clear(),E.restTimeout.clear(),E.blockMouseMove=!0,E.restTimeoutPending=!1)}return l.on("openchange",F),()=>{l.off("openchange",F)}},[c,l,E,te]),v.useEffect(()=>{if(!c)return;const F=y.current??(S?o.select("domReferenceElement"):null);if(!bt(F))return;function I(O){if(E.openChangeTimeout.clear(),E.blockMouseMove=!1,p&&!ka(E.pointerType))return;const U=c0(R.current),B=Nd(k.current,"open",E.pointerType),Q=Xt(O),A=O.currentTarget??null,V=o.select("domReferenceElement");let Y=A;if(bt(Q)&&!o.context.triggerElements.hasElement(Q)){for(const fe of o.context.triggerElements.elements())if(Ie(fe,Q)){Y=fe;break}}bt(A)&&bt(V)&&!o.context.triggerElements.hasElement(A)&&Ie(A,V)&&(Y=V);const W=Y==null?!1:G(V,Y,Q),ne=o.select("open"),ie=z.current?.()??o.select("transitionStatus")==="ending",ce=!ne&&ie&&L.current,de=!W&&bt(Y)&&bt(V)&&Ie(V,Y)&&ce,ye=U>0&&!B,Ee=W&&(ne||ce)||de,Me=!ne||W;if(Ee){o.setOpen(!0,ct(Yn,O,Y));return}ye||(B?E.openChangeTimeout.start(B,()=>{Me&&o.setOpen(!0,ct(Yn,O,Y))}):Me&&o.setOpen(!0,ct(Yn,O,Y)))}function _(O){if(P()){ee();return}te();const U=o.select("domReferenceElement"),B=Je(U);E.restTimeout.clear(),E.restTimeoutPending=!1;const Q=s.current.floatingContext??x?.();if(K(O.relatedTarget))return;if(j.current&&Q){o.select("open")||E.openChangeTimeout.clear();const Y=y.current;E.handler=j.current({...Q,tree:C,x:O.clientX,y:O.clientY,onClose(){ee(),te(),N.current&&!P()&&Y===o.select("domReferenceElement")&&q(O,!0)}}),B.addEventListener("mousemove",E.handler),E.handler(O);return}(E.pointerType!=="touch"||!Ie(o.select("floatingElement"),O.relatedTarget))&&q(O)}return g?Kr(pt(F,"mousemove",I,{once:!0}),pt(F,"mouseenter",I),pt(F,"mouseleave",_)):Kr(pt(F,"mouseenter",I),pt(F,"mouseleave",_))},[te,ee,s,k,q,o,c,j,E,S,G,P,K,p,g,R,y,C,N,x,z]),v.useMemo(()=>{if(!c)return;function F(I){E.pointerType=I.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(I){const{nativeEvent:_}=I,O=I.currentTarget,U=o.select("domReferenceElement"),B=o.select("open"),Q=G(U,O,I.target);if(p&&!ka(E.pointerType))return;if(B&&Q&&E.handleCloseOptions?.blockPointerEvents){const Y=o.select("floatingElement");if(Y){const W=E.handleCloseOptions?.getScope?.()??O.ownerDocument.body;Q0(E,{scopeElement:W,referenceElement:O,floatingElement:Y})}}const A=c0(R.current);if(B&&!Q||A===0||!Q&&E.restTimeoutPending&&I.movementX**2+I.movementY**2<2)return;E.restTimeout.clear();function V(){if(E.restTimeoutPending=!1,P())return;const Y=o.select("open");!E.blockMouseMove&&(!Y||Q)&&o.setOpen(!0,ct(Yn,_,O))}E.pointerType==="touch"?Cr.flushSync(()=>{V()}):Q&&B?V():(E.restTimeoutPending=!0,E.restTimeout.start(A,V))}}},[c,E,P,G,p,o,R])}function Ha(e=[]){const n=e.map(h=>h?.reference),o=e.map(h=>h?.floating),s=e.map(h=>h?.item),l=e.map(h=>h?.trigger),c=v.useCallback(h=>Ac(h,e,"reference"),n),u=v.useCallback(h=>Ac(h,e,"floating"),o),f=v.useCallback(h=>Ac(h,e,"item"),s),p=v.useCallback(h=>Ac(h,e,"trigger"),l);return v.useMemo(()=>({getReferenceProps:c,getFloatingProps:u,getItemProps:f,getTriggerProps:p}),[c,u,f,p])}function Ac(e,n,o){const s=new Map,l=o==="item",c={};o==="floating"&&(c.tabIndex=-1,c[hd]="");for(const u in e)l&&e&&(u===Ty||u===Cy)||(c[u]=e[u]);for(let u=0;u<n.length;u+=1){let f;const p=n[u]?.[o];typeof p=="function"?f=e?p(e):null:f=p,f&&W0(c,f,l,s)}return W0(c,e,l,s),c}function W0(e,n,o,s){for(const l in n){const c=n[l];o&&(l===Ty||l===Cy)||(l.startsWith("on")?(s.has(l)||s.set(l,[]),typeof c=="function"&&(s.get(l)?.push(c),e[l]=(...u)=>s.get(l)?.map(f=>f(...u)).find(f=>f!==void 0))):e[l]=c)}}const _A="Escape";function Mc(e,n,o){switch(e){case"vertical":return n;case"horizontal":return o;default:return n||o}}function Dc(e,n){return Mc(n,e===pd||e===za,e===Xo||e===Qo)}function Kd(e,n,o){return Mc(n,e===za,o?e===Xo:e===Qo)||e==="Enter"||e===" "||e===""}function AA(e,n,o){return Mc(n,o?e===Xo:e===Qo,e===za)}function MA(e,n,o,s){const l=o?e===Qo:e===Xo,c=e===pd;return n==="both"||n==="horizontal"&&s&&s>1?e===_A:Mc(n,l,c)}function DA(e,n){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingElement"),c=o.useState("domReferenceElement"),u=o.context.dataRef,{listRef:f,activeIndex:p,onNavigate:h=()=>{},enabled:g=!0,selectedIndex:y=null,allowEscape:b=!1,loopFocus:S=!1,nested:x=!1,rtl:T=!1,virtual:C=!1,focusItemOnOpen:E="auto",focusItemOnHover:L=!0,openOnArrowKeyDown:j=!0,disabledIndices:k=void 0,orientation:R="vertical",parentOrientation:N,cols:z=1,id:P,resetOnPointerLeave:K=!0,externalTree:G}=n,q=Na(l),te=dn(q),ee=ei(),F=Pi(G);ke(()=>{u.current.orientation=R},[u,R]);const I=gd(c),_=v.useRef(E),O=v.useRef(y??-1),U=v.useRef(null),B=v.useRef(!0),Q=Te(H=>{h(O.current===-1?null:O.current,H)}),A=v.useRef(Q),V=v.useRef(!!l),Y=v.useRef(s),W=v.useRef(!1),ne=v.useRef(!1),ie=v.useRef(null),ce=dn(k),de=dn(s),ye=dn(y),Ee=dn(K),Me=Te(()=>{function H(ve){C?F?.events.emit("virtualfocus",ve):ie.current=Sc(ve,{sync:W.current,preventScroll:!0})}const oe=f.current[O.current],J=ne.current;oe&&H(oe),(W.current?ve=>ve():requestAnimationFrame)(()=>{const ve=f.current[O.current]||oe;if(!ve)return;oe||H(ve),De&&(J||!B.current)&&ve.scrollIntoView?.({block:"nearest",inline:"nearest"})})});ke(()=>{g&&(s&&l?(O.current=y??-1,_.current&&y!=null&&(ne.current=!0,Q())):V.current&&(O.current=-1,A.current()))},[g,s,l,y,Q]),ke(()=>{if(g){if(!s){W.current=!1;return}if(l)if(p==null){if(W.current=!1,ye.current!=null)return;if(V.current&&(O.current=-1,Me()),(!Y.current||!V.current)&&_.current&&(U.current!=null||_.current===!0&&U.current==null)){let H=0;const oe=()=>{f.current[0]==null?(H<2&&(H?requestAnimationFrame:queueMicrotask)(oe),H+=1):(O.current=U.current==null||Kd(U.current,R,T)||x?Ed(f):jy(f),U.current=null,Q())};oe()}}else uc(f.current,p)||(O.current=p,Me(),ne.current=!1)}},[g,s,l,p,ye,x,f,R,T,Q,Me,ce]),ke(()=>{if(!g||l||!F||C||!V.current)return;const H=F.nodesRef.current,oe=H.find(ve=>ve.id===ee)?.context?.elements.floating,J=Nn(Je(l)),X=H.some(ve=>ve.context&&Ie(ve.context.elements.floating,J));oe&&!X&&B.current&&oe.focus({preventScroll:!0})},[g,l,F,ee,C]),ke(()=>{A.current=Q,Y.current=s,V.current=!!l}),ke(()=>{s||(U.current=null,_.current=E)},[s,E]);const fe=p!=null,ze=Te(H=>{if(!de.current)return;const oe=f.current.indexOf(H.currentTarget);oe!==-1&&(O.current!==oe||p!==oe)&&(O.current=oe,Q(H))}),De=v.useMemo(()=>({onFocus(oe){W.current=!0,ze(oe)},onClick:({currentTarget:oe})=>oe.focus({preventScroll:!0}),onMouseMove(oe){W.current=!0,ne.current=!1,L&&ze(oe)},onPointerLeave(oe){if(!de.current||!B.current||oe.pointerType==="touch")return;W.current=!0;const J=oe.relatedTarget;if(!(!L||f.current.includes(J))&&Ee.current&&(ie.current?.(),ie.current=null,O.current=-1,Q(oe),!C)){const X=te.current,ve=Nn(Je(X));X&&Ie(X,ve)&&X.focus({preventScroll:!0})}}}),[ze,de,te,L,f,Q,Ee,C]),_e=v.useCallback(()=>N??F?.nodesRef.current.find(H=>H.id===ee)?.context?.dataRef?.current.orientation,[ee,F,N]),Oe=Te(H=>{if(B.current=!1,W.current=!0,H.which===229||!de.current&&H.currentTarget===te.current)return;if(x&&MA(H.key,R,T,z)){Dc(H.key,_e())||fr(H),o.setOpen(!1,ct(Ld,H.nativeEvent)),Zt(c)&&(C?F?.events.emit("virtualfocus",c):c.focus());return}const oe=O.current,J=Ed(f,k),X=jy(f,k);if(I||(H.key==="Home"&&(fr(H),O.current=J,Q(H)),H.key==="End"&&(fr(H),O.current=X,Q(H))),z>1){const ve=Array.from({length:f.current.length},()=>({width:1,height:1})),we=pO(ve,z),be=we.findIndex(He=>He!=null&&!ws(f.current,He,k)),Ne=we.reduce((He,Be,$e)=>Be!=null&&!ws(f.current,Be,k)?$e:He,-1),qe=we[hO(we.map(He=>He!=null?f.current[He]:null),{event:H,orientation:R,loopFocus:S,rtl:T,cols:z,disabledIndices:gO([...(typeof k!="function"?k:null)||f.current.map((He,Be)=>ws(f.current,Be,k)?Be:void 0),void 0],we),minIndex:be,maxIndex:Ne,prevIndex:mO(O.current>X?J:O.current,ve,we,z,H.key===za?"bl":H.key===(T?Xo:Qo)?"tr":"tl"),stopEvent:!0})];if(qe!=null&&(O.current=qe,Q(H)),R==="both")return}if(Dc(H.key,R)){if(fr(H),s&&!C&&Nn(H.currentTarget.ownerDocument)===H.currentTarget){O.current=Kd(H.key,R,T)?J:X,Q(H);return}Kd(H.key,R,T)?S?oe>=X?b&&oe!==f.current.length?O.current=-1:(W.current=!1,O.current=J):O.current=Gn(f.current,{startingIndex:oe,disabledIndices:k}):O.current=Math.min(X,Gn(f.current,{startingIndex:oe,disabledIndices:k})):S?oe<=J?b&&oe!==-1?O.current=f.current.length:(W.current=!1,O.current=X):O.current=Gn(f.current,{startingIndex:oe,decrement:!0,disabledIndices:k}):O.current=Math.max(J,Gn(f.current,{startingIndex:oe,decrement:!0,disabledIndices:k})),uc(f.current,O.current)&&(O.current=-1),Q(H)}}),Ce=v.useMemo(()=>C&&s&&fe&&{"aria-activedescendant":`${P}-${p}`},[C,s,fe,P,p]),Le=v.useMemo(()=>({"aria-orientation":R==="both"?void 0:R,...I?{}:Ce,onKeyDown(H){if(H.key==="Tab"&&H.shiftKey&&s&&!C){const oe=Xt(H.nativeEvent);if(oe&&!Ie(te.current,oe))return;fr(H),o.setOpen(!1,ct(Li,H.nativeEvent)),Zt(c)&&c.focus();return}Oe(H)},onPointerMove(){B.current=!0}}),[Ce,Oe,te,R,I,o,s,C,c]),Re=v.useMemo(()=>{function H(J){E==="auto"&&Ay(J.nativeEvent)&&(_.current=!C)}function oe(J){_.current=E,E==="auto"&&My(J.nativeEvent)&&(_.current=!0)}return{onKeyDown(J){const X=o.select("open");B.current=!1;const ve=J.key.startsWith("Arrow"),we=AA(J.key,_e(),T),be=Dc(J.key,R),Ne=(x?we:be)||J.key==="Enter"||J.key.trim()==="";if(C&&X)return Oe(J);if(!(!X&&!j&&ve)){if(Ne){const qe=Dc(J.key,_e());U.current=x&&qe?null:J.key}if(x){we&&(fr(J),X?(O.current=Ed(f,ce.current),Q(J)):o.setOpen(!0,ct(Ld,J.nativeEvent,J.currentTarget)));return}be&&(ye.current!=null&&(O.current=ye.current),fr(J),!X&&j?o.setOpen(!0,ct(Ld,J.nativeEvent,J.currentTarget)):Oe(J),X&&Q(J))}},onFocus(J){o.select("open")&&!C&&(O.current=-1,Q(J))},onPointerDown:oe,onPointerEnter:oe,onMouseDown:H,onClick:H}},[Oe,ce,E,f,x,Q,o,j,R,_e,T,ye,C]),Ue=v.useMemo(()=>({...Ce,...Re}),[Ce,Re]);return v.useMemo(()=>g?{reference:Ue,floating:Le,item:De,trigger:Re}:{},[g,Ue,Le,Re,De])}const zA=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function J0(e,n={}){const o="rootStore"in e?e.rootStore:e,s=o.useState("open"),l=o.useState("floatingId"),c=o.useState("domReferenceElement"),u=o.useState("floatingElement"),{role:f="dialog"}=n,p=Jo(),h=c?.id||p,g=v.useMemo(()=>Na(u)?.id||l,[u,l]),y=zA.get(f)??f,S=ei()!=null,x=v.useMemo(()=>y==="tooltip"||f==="label"?rn:{"aria-haspopup":y==="alertdialog"?"dialog":y,"aria-expanded":"false",...y==="listbox"&&{role:"combobox"},...y==="menu"&&S&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[y,S,f]),T=v.useMemo(()=>y==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:s?g:void 0}:{...x,"aria-expanded":s?"true":"false","aria-controls":s?g:void 0,...y==="menu"&&{id:h}},[y,g,s,h,f,x]),C=v.useMemo(()=>{const L={id:g,...y&&{role:y}};return y==="tooltip"||f==="label"?L:{...L,...y==="menu"&&{"aria-labelledby":h}}},[y,g,h,f]),E=v.useCallback(({active:L,selected:j})=>{const k={role:"option",...L&&{id:`${g}-fui-option`}};switch(f){case"select":case"combobox":return{...k,"aria-selected":j}}return{}},[g,f]);return v.useMemo(()=>({reference:T,floating:C,item:E,trigger:x}),[T,C,x,E])}function NA(e,n){const o="rootStore"in e?e.rootStore:e,s=o.context.dataRef,l=o.useState("open"),{listRef:c,elementsRef:u,activeIndex:f,onMatch:p,onTypingChange:h,enabled:g=!0,resetMs:y=750,selectedIndex:b=null}=n,S=ur(),x=v.useRef(""),T=v.useRef(b??f??-1),C=v.useRef(null);ke(()=>{!l&&b!==null||(S.clear(),C.current=null,x.current!==""&&(x.current=""))},[l,b,S]),ke(()=>{l&&x.current===""&&(T.current=b??f??-1)},[l,b,f]);const E=Te(N=>{N?s.current.typing||(s.current.typing=N,h?.(N)):s.current.typing&&(s.current.typing=N,h?.(N))}),L=Te(N=>{function z(I){const _=u?.current[I];return!_||fc(_)}function P(I,_,O=0){if(I.length===0)return-1;const U=(O%I.length+I.length)%I.length,B=_.toLocaleLowerCase();for(let Q=0;Q<I.length;Q+=1){const A=(U+Q)%I.length;if(!(!I[A]?.toLocaleLowerCase().startsWith(B)||!z(A)))return A}return-1}const K=c.current;if(x.current.length>0&&N.key===" "&&(fr(N),E(!0)),x.current.length>0&&x.current[0]!==" "&&P(K,x.current)===-1&&N.key!==" "&&E(!1),K==null||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;l&&N.key!==" "&&(fr(N),E(!0));const G=x.current==="";G&&(T.current=b??f??-1),K.every(I=>I?I[0]?.toLocaleLowerCase()!==I[1]?.toLocaleLowerCase():!0)&&x.current===N.key&&(x.current="",T.current=C.current),x.current+=N.key,S.start(y,()=>{x.current="",T.current=C.current,E(!1)});const ee=((G?b??f??-1:T.current)??0)+1,F=P(K,x.current,ee);F!==-1?(p?.(F),C.current=F):N.key!==" "&&(x.current="",E(!1))}),j=Te(N=>{const z=N.relatedTarget,P=o.select("domReferenceElement"),K=o.select("floatingElement"),G=Ie(P,z),q=Ie(K,z);G||q||(S.clear(),x.current="",T.current=C.current,E(!1))}),k=v.useMemo(()=>({onKeyDown:L,onBlur:j}),[L,j]),R=v.useMemo(()=>({onKeyDown:L,onBlur:j}),[L,j]);return v.useMemo(()=>g?{reference:k,floating:R}:{},[g,k,R])}const ev=.1,kA=ev*ev,Ut=.5;function zc(e,n,o,s,l,c){return s>=n!=c>=n&&e<=(l-o)*(n-s)/(c-s)+o}function Nc(e,n,o,s,l,c,u,f,p,h){let g=!1;return zc(e,n,o,s,l,c)&&(g=!g),zc(e,n,l,c,u,f)&&(g=!g),zc(e,n,u,f,p,h)&&(g=!g),zc(e,n,p,h,o,s)&&(g=!g),g}function jA(e,n,o){return e>=o.x&&e<=o.x+o.width&&n>=o.y&&n<=o.y+o.height}function kc(e,n,o,s,l,c){const u=Math.min(o,l),f=Math.max(o,l),p=Math.min(s,c),h=Math.max(s,c);return e>=u&&e<=f&&n>=p&&n<=h}function LA(e={}){const{blockPointerEvents:n=!1}=e,o=new cr,s=({x:l,y:c,placement:u,elements:f,onClose:p,nodeId:h,tree:g})=>{const y=u?.split("-")[0];let b=!1,S=null,x=null,T=typeof performance<"u"?performance.now():0;function C(L,j){const k=performance.now(),R=k-T;if(S===null||x===null||R===0)return S=L,x=j,T=k,!1;const N=L-S,z=j-x,P=N*N+z*z,K=R*R*kA;return S=L,x=j,T=k,P<K}function E(){o.clear(),p()}return function(j){o.clear();const k=f.domReference,R=f.floating;if(!k||!R||y==null||l==null||c==null)return;const{clientX:N,clientY:z}=j,P=Xt(j),K=j.type==="mouseleave",G=Ie(R,P),q=Ie(k,P);if(G&&(b=!0,!K))return;if(q&&(b=!1,!K)){b=!0;return}if(K&&bt(j.relatedTarget)&&Ie(R,j.relatedTarget))return;function te(){return!!(g&&Jr(g.nodesRef.current,h).length>0)}function ee(){te()||E()}if(te())return;const F=k.getBoundingClientRect(),I=R.getBoundingClientRect(),_=l>I.right-I.width/2,O=c>I.bottom-I.height/2,U=I.width>F.width,B=I.height>F.height,Q=(U?F:I).left,A=(U?F:I).right,V=(B?F:I).top,Y=(B?F:I).bottom;if(y==="top"&&c>=F.bottom-1||y==="bottom"&&c<=F.top+1||y==="left"&&l>=F.right-1||y==="right"&&l<=F.left+1){ee();return}let W=!1;switch(y){case"top":W=kc(N,z,Q,F.top+1,A,I.bottom-1);break;case"bottom":W=kc(N,z,Q,I.top+1,A,F.bottom-1);break;case"left":W=kc(N,z,I.right-1,Y,F.left+1,V);break;case"right":W=kc(N,z,F.right-1,Y,I.left+1,V);break}if(W)return;if(b&&!jA(N,z,F)){ee();return}if(!K&&C(N,z)){ee();return}let ne=!1;switch(y){case"top":{const ie=U?Ut/2:Ut*4,ce=U||_?l+ie:l-ie,de=U?l-ie:_?l+ie:l-ie,ye=c+Ut+1,Ee=_||U?I.bottom-Ut:I.top,Me=_?U?I.bottom-Ut:I.top:I.bottom-Ut;ne=Nc(N,z,ce,ye,de,ye,I.left,Ee,I.right,Me);break}case"bottom":{const ie=U?Ut/2:Ut*4,ce=U||_?l+ie:l-ie,de=U?l-ie:_?l+ie:l-ie,ye=c-Ut,Ee=_||U?I.top+Ut:I.bottom,Me=_?U?I.top+Ut:I.bottom:I.top+Ut;ne=Nc(N,z,ce,ye,de,ye,I.left,Ee,I.right,Me);break}case"left":{const ie=B?Ut/2:Ut*4,ce=B||O?c+ie:c-ie,de=B?c-ie:O?c+ie:c-ie,ye=l+Ut+1,Ee=O||B?I.right-Ut:I.left,Me=O?B?I.right-Ut:I.left:I.right-Ut;ne=Nc(N,z,Ee,I.top,Me,I.bottom,ye,ce,ye,de);break}case"right":{const ie=B?Ut/2:Ut*4,ce=B||O?c+ie:c-ie,de=B?c-ie:O?c+ie:c-ie,ye=l-Ut,Ee=O||B?I.left+Ut:I.right,Me=O?B?I.left+Ut:I.right:I.left+Ut;ne=Nc(N,z,ye,ce,ye,de,Ee,I.top,Me,I.bottom);break}}ne?b||o.start(40,ee):ee()}};return s.__options={...e,blockPointerEvents:n},s}const PA=v.forwardRef(function(n,o){const{children:s,container:l,className:c,render:u,style:f,...p}=n,{portalNode:h,portalSubtree:g}=S0({container:l,ref:o,componentProps:n,elementProps:p});return!g&&!h?null:D.jsxs(v.Fragment,{children:[g,h&&Cr.createPortal(s,h)]})}),IA=v.createContext(void 0);function tv(){return v.useContext(IA)?.direction??"ltr"}const UA=e=>({name:"arrow",options:e,async fn(n){const{x:o,y:s,placement:l,rects:c,platform:u,elements:f,middlewareData:p}=n,{element:h,padding:g=0,offsetParent:y="real"}=vo(e,n)||{};if(h==null)return{};const b=ky(g),S={x:o,y:s},x=wd(l),T=Sd(x),C=await u.getDimensions(h),E=x==="y",L=E?"top":"left",j=E?"bottom":"right",k=E?"clientHeight":"clientWidth",R=c.reference[T]+c.reference[x]-S[x]-c.floating[T],N=S[x]-c.reference[x],z=y==="real"?await u.getOffsetParent?.(h):f.floating;let P=f.floating[k]||c.floating[T];(!P||!await u.isElement?.(z))&&(P=f.floating[k]||c.floating[T]);const K=R/2-N/2,G=P/2-C[T]/2-1,q=Math.min(b[L],G),te=Math.min(b[j],G),ee=q,F=P-C[T]-te,I=P/2-C[T]/2+K,_=vd(ee,I,F),O=!p.arrow&&Ko(l)!=null&&I!==_&&c.reference[T]/2-(I<ee?q:te)-C[T]/2<0,U=O?I<ee?I-ee:I-F:0;return{[x]:S[x]+U,data:{[x]:_,centerOffset:I-_-U,...O&&{alignmentOffset:U}},reset:O}}}),VA=(e,n)=>({...UA(e),options:[e,n]}),HA={name:"hide",async fn(e){const{width:n,height:o,x:s,y:l}=e.rects.reference,c=n===0&&o===0&&s===0&&l===0;return{data:{referenceHidden:(await SA().fn(e)).data?.referenceHidden||c}}}},jc={sideX:"left",sideY:"top"},FA={name:"adaptiveOrigin",async fn(e){const{x:n,y:o,rects:{floating:s},elements:{floating:l},platform:c,strategy:u,placement:f}=e,p=Lt(l),h=p.getComputedStyle(l);if(!(h.transitionDuration!=="0s"&&h.transitionDuration!==""))return{x:n,y:o,data:jc};const y=await c.getOffsetParent?.(l);let b={width:0,height:0};if(u==="fixed"&&p?.visualViewport)b={width:p.visualViewport.width,height:p.visualViewport.height};else if(y===p){const L=Je(l);b={width:L.documentElement.clientWidth,height:L.documentElement.clientHeight}}else await c.isElement?.(y)&&(b=await c.getDimensions(y));const S=Wn(f);let x=n,T=o;S==="left"&&(x=b.width-(n+s.width)),S==="top"&&(T=b.height-(o+s.height));const C=S==="left"?"right":jc.sideX,E=S==="top"?"bottom":jc.sideY;return{x,y:T,data:{sideX:C,sideY:E}}}};function nv(e,n,o){const s=e==="inline-start"||e==="inline-end";return{top:"top",right:s?o?"inline-start":"inline-end":"right",bottom:"bottom",left:s?o?"inline-end":"inline-start":"left"}[n]}function rv(e,n,o){const{rects:s,placement:l}=e;return{side:nv(n,Wn(l),o),align:Ko(l)||"center",anchor:{width:s.reference.width,height:s.reference.height},positioner:{width:s.floating.width,height:s.floating.height}}}function ov(e){const{anchor:n,positionMethod:o="absolute",side:s="bottom",sideOffset:l=0,align:c="center",alignOffset:u=0,collisionBoundary:f,collisionPadding:p=5,sticky:h=!1,arrowPadding:g=5,disableAnchorTracking:y=!1,keepMounted:b=!1,floatingRootContext:S,mounted:x,collisionAvoidance:T,shiftCrossAxis:C=!1,nodeId:E,adaptiveOrigin:L,lazyFlip:j=!1,externalTree:k}=e,[R,N]=v.useState(null);!x&&R!==null&&N(null);const z=T.side||"flip",P=T.align||"flip",K=T.fallbackAxisSide||"end",G=typeof n=="function"?n:void 0,q=Te(G),te=G?q:n,ee=dn(n),F=dn(x),_=tv()==="rtl",O=R||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":_?"left":"right","inline-start":_?"right":"left"}[s],U=c==="center"?O:`${O}-${c}`;let B=p;const Q=1,A=s==="bottom"?Q:0,V=s==="top"?Q:0,Y=s==="right"?Q:0,W=s==="left"?Q:0;typeof B=="number"?B={top:B+A,right:B+W,bottom:B+V,left:B+Y}:B&&(B={top:(B.top||0)+A,right:(B.right||0)+W,bottom:(B.bottom||0)+V,left:(B.left||0)+Y});const ne={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:B},ie=v.useRef(null),ce=dn(l),de=dn(u),Me=[mA(rt=>{const Ze=rv(rt,s,_),st=typeof ce.current=="function"?ce.current(Ze):ce.current,ut=typeof de.current=="function"?de.current(Ze):de.current;return{mainAxis:st,crossAxis:ut,alignmentAxis:ut}},[typeof l!="function"?l:0,typeof u!="function"?u:0,_,s])],fe=P==="none"&&z!=="shift",ze=!fe&&(h||C||z==="shift"),De=z==="none"?null:vA({...ne,padding:{top:B.top+Q,right:B.right+Q,bottom:B.bottom+Q,left:B.left+Q},mainAxis:!C&&z==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:K}),_e=fe?null:gA(rt=>{const Ze=Je(rt.elements.floating).documentElement;return{...ne,rootBoundary:C?{x:0,y:0,width:Ze.clientWidth,height:Ze.clientHeight}:void 0,mainAxis:P!=="none",crossAxis:ze,limiter:h||C?void 0:yA(st=>{if(!ie.current)return{};const{width:ut,height:zt}=ie.current.getBoundingClientRect(),mt=Rr(Wn(st.placement)),wn=mt==="y"?ut:zt,cn=mt==="y"?B.left+B.right:B.top+B.bottom;return{offset:wn/2+cn/2}})}},[ne,h,C,B,P]);z==="shift"||P==="shift"||c==="center"?Me.push(_e,De):Me.push(De,_e),Me.push(bA({...ne,apply({elements:{floating:rt},availableWidth:Ze,availableHeight:st,rects:ut}){if(!F.current)return;const zt=rt.style;zt.setProperty("--available-width",`${Ze}px`),zt.setProperty("--available-height",`${st}px`);const mt=Lt(rt).devicePixelRatio||1,{x:wn,y:cn,width:Rt,height:he}=ut.reference,xe=(Math.round((wn+Rt)*mt)-Math.round(wn*mt))/mt,je=(Math.round((cn+he)*mt)-Math.round(cn*mt))/mt;zt.setProperty("--anchor-width",`${xe}px`),zt.setProperty("--anchor-height",`${je}px`)}}),VA(()=>({element:ie.current||Je(ie.current).createElement("div"),padding:g,offsetParent:"floating"}),[g]),{name:"transformOrigin",fn(rt){const{elements:Ze,middlewareData:st,placement:ut,rects:zt,y:mt}=rt,wn=Wn(ut),cn=Rr(wn),Rt=ie.current,he=st.arrow?.x||0,xe=st.arrow?.y||0,je=Rt?.clientWidth||0,at=Rt?.clientHeight||0,ft=he+je/2,ot=xe+at/2,_t=Math.abs(st.shift?.y||0),Ge=zt.reference.height/2,Fe=typeof l=="function"?l(rv(rt,s,_)):l,tt=_t>Fe,nt={top:`${ft}px calc(100% + ${Fe}px)`,bottom:`${ft}px ${-Fe}px`,left:`calc(100% + ${Fe}px) ${ot}px`,right:`${-Fe}px ${ot}px`}[wn],ht=`${ft}px ${zt.reference.y+Ge-mt}px`;return Ze.floating.style.setProperty("--transform-origin",ze&&cn==="y"&&tt?ht:nt),{}}},HA,L),ke(()=>{!x&&S&&S.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,S]);const Oe=v.useMemo(()=>({elementResize:!y&&typeof ResizeObserver<"u",layoutShift:!y&&typeof IntersectionObserver<"u"}),[y]),{refs:Ce,elements:Le,x:Re,y:Ue,middlewareData:H,update:oe,placement:J,context:X,isPositioned:ve,floatingStyles:we}=TA({rootContext:S,open:b?x:void 0,placement:U,middleware:Me,strategy:o,whileElementsMounted:b?void 0:(...rt)=>V0(...rt,Oe),nodeId:E,externalTree:k}),{sideX:be,sideY:Ne}=H.adaptiveOrigin||jc,qe=ve?o:"fixed",He=v.useMemo(()=>{const rt=L?{position:qe,[be]:Re,[Ne]:Ue}:{position:qe,...we};return ve||(rt.opacity=0),rt},[L,qe,be,Re,Ne,Ue,we,ve]),Be=v.useRef(null);ke(()=>{if(!x)return;const rt=ee.current,Ze=typeof rt=="function"?rt():rt,ut=(iv(Ze)?Ze.current:Ze)||null||null;ut!==Be.current&&(Ce.setPositionReference(ut),Be.current=ut)},[x,Ce,te,ee]),v.useEffect(()=>{if(!x)return;const rt=ee.current;typeof rt!="function"&&iv(rt)&&rt.current!==Be.current&&(Ce.setPositionReference(rt.current),Be.current=rt.current)},[x,Ce,te,ee]),v.useEffect(()=>{if(b&&x&&Le.domReference&&Le.floating)return V0(Le.domReference,Le.floating,oe,Oe)},[b,x,Le,oe,Oe]);const $e=Wn(J),et=nv(s,$e,_),Xe=Ko(J)||"center",We=!!H.hide?.referenceHidden;ke(()=>{j&&x&&ve&&N($e)},[j,x,ve,$e]);const dt=v.useMemo(()=>({position:"absolute",top:H.arrow?.y,left:H.arrow?.x}),[H.arrow]),jt=H.arrow?.centerOffset!==0;return v.useMemo(()=>({positionerStyles:He,arrowStyles:dt,arrowRef:ie,arrowUncentered:jt,side:et,align:Xe,physicalSide:$e,anchorHidden:We,refs:Ce,context:X,isPositioned:ve,update:oe}),[He,dt,ie,jt,et,Xe,$e,We,Ce,X,ve,oe])}function iv(e){return e!=null&&"current"in e}let $n=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Ni.startingStyle]="startingStyle",e[e.endingStyle=Ni.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Wd=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const BA={[Wd.popupOpen]:""},ZA={[Wd.popupOpen]:"",[Wd.pressed]:""},GA={[$n.open]:""},YA={[$n.closed]:""},$A={[$n.anchorHidden]:""},sv={open(e){return e?BA:null}},av={open(e){return e?ZA:null}},oo={open(e){return e?GA:YA},anchorHidden(e){return e?$A:null}};function Jd(e){return e==="starting"?XO:rn}function lv(e,n,{styles:o,transitionStatus:s,props:l,refs:c,hidden:u,inert:f=!1}){const p={...o};return f&&(p.pointerEvents="none"),At("div",e,{state:n,ref:c,props:[{role:"presentation",hidden:u,style:p},Jd(s),l],stateAttributesMapping:oo})}function cv(){const e=v.useContext(Jf);if(!e)throw new Error(Jt(73));const n=e.useState("toasts");return v.useMemo(()=>({toasts:n,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[n,e])}function Ui(...e){return Wf(Kg(e))}const uv={Viewport:"_Viewport_ai81v_1",Toast:"_Toast_ai81v_14"};let Rs=null,Fa=3e3;function qA({timeout:e}){const n=cv();return v.useEffect(()=>(Rs=n,Fa=e,()=>{Rs=null}),[n,e]),null}const Cn={success:(e,n)=>Rs?.add({description:e,timeout:n?.timeout||Fa}),error:(e,n)=>Rs?.add({description:e,timeout:n?.timeout||Fa}),info:(e,n)=>Rs?.add({description:e,timeout:n?.timeout||Fa}),warning:(e,n)=>Rs?.add({description:e,timeout:n?.timeout||Fa})};function XA({toastConfigs:e}){const n=e?.timeout??3e3;return D.jsxs(OO,{timeout:n,children:[D.jsx(qA,{timeout:n}),D.jsx(QA,{configs:e})]})}function QA({configs:e}){const{toasts:n}=cv();return D.jsx(PA,{children:D.jsx(ZO,{className:Ui(uv.Viewport,e?.viewportClassName),children:n.map(o=>D.jsx(a_,{toast:o,className:Ui("pointer-events-none flex items-center justify-center px-6 py-3 min-w-[200px] max-w-[80vw]","text-white text-base rounded-md bg-black/80",uv.Toast,e?.className),style:e?.style,children:D.jsx(u_,{className:"text-xs",children:o.description})},o.id))})})}class KA{baseUrl;credentials;interceptors;timeout;onError;headers;constructor({baseUrl:n,timeout:o=1/0,responseInterceptor:s=p=>p.data,requestInterceptor:l=p=>p,onError:c=()=>{},headers:u,credentials:f="include"}){this.baseUrl=n,this.timeout=o,this.credentials=f,this.interceptors={request:l,response:s},this.headers=new Headers({"Content-Type":"application/json",...u}),this.onError=c}async request(n){const o=new AbortController;n.url=`${this.baseUrl}${n.url}`,n=this.interceptors.request(n);const s=new Headers(this.headers);Object.entries(n.headers||{}).forEach(([f,p])=>{s.set(f,p)});const l=this.headers.get("content-type");let c=null;if(n.data instanceof FormData)c=n.data,s.delete("Content-Type");else if(n.data!==void 0&&n.method!=="GET")if(l==="application/x-www-form-urlencoded"){const f=new URLSearchParams;for(const p in n.data)n.data[p]!==void 0&&f.append(p,n.data[p]);c=f.toString()}else c=JSON.stringify(n.data);else if(n.method==="GET"){const f=new URLSearchParams;for(const h in n.data)n.data[h]!==void 0&&f.append(h,n.data[h]);const p=f.toString();n.url+=p?`?${p}`:""}const u=fetch(n.url,{method:n.method,headers:s,body:c,signal:n.signal||o.signal,credentials:this.credentials});try{const f=n.timeout||this.timeout,{timeoutId:p,timeoutPromise:h}=this._setTimeout(f,o),g=await Promise.race([u,h].filter(Boolean));if(p&&clearTimeout(p),g.ok){const y=await g.json();return this.interceptors.response(y,g).catch(b=>(this.onError({data:b,response:g}),Promise.reject(y)))}else{const y=await g.json();return this.onError({data:y,response:g}),Promise.reject(y)}}catch(f){return f.name!=="AbortError"&&this.onError({}),Promise.reject(f)}}_setTimeout(n,o){let s=null,l=null;return n!==1/0&&(l=new Promise((c,u)=>{s=setTimeout(()=>{u(new Error("请求超时")),o.abort()},n)})),{timeoutPromise:l,timeoutId:s}}get(n,o,s){return this.request({...s,url:n,method:"GET",data:o})}post(n,o,s){return this.request({...s,url:n,method:"POST",data:o})}put(n,o,s){return this.request({...s,url:n,method:"PUT",data:o})}delete(n,o){return this.request({...o,url:n,method:"DELETE"})}patch(n,o,s){return this.request({...s,url:n,method:"PATCH",data:o})}}const kn=new KA({baseUrl:"https://apis.sdk.mobileztgame.com",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},async responseInterceptor(e,n){if(["/passport-api/v2/ztgame/auth/login","/passport-api/v2/sms-captchas","/passport-api/v2/ztgame/auth/mobile-register","/passport-api/v2/ztgame/auth/auth","/passport-api/v2/ztgame/auth/re-auth","/passport-api/v2/ztgame/user-center/forget-password/forget-password-keys","/passport-api/v2/ztgame/user-center/forget-password/","/passport-api/v2/ztgame/user-center/forget-password/sms-captchas","/passport-api/v2/ztgame/user-center/forget-password/forget-password-update","/idcard"].some(s=>n.url.includes(s))){const s=n.headers.get("set-authentication")||n.headers.get("Set-Authentication")||"";return{...e,_auth:s}}if(e?.code!==0)throw new Error(e.error);return e},onError({response:e,data:n}){if(e&&e?.status!==401){const o=`${n?.message||n?.detail||"未知错误"}`;Cn.error(o)}}});function fv(e){kn.headers.set("Authentication",e)}const Gt={ROLE_ID:"roleid",GIANT:"giant",MOBILE:"mobile"},Lc={default:{types:[Gt.GIANT,Gt.MOBILE],default:Gt.GIANT},5327:{types:[Gt.GIANT,Gt.MOBILE],default:Gt.MOBILE},5273:{types:[Gt.ROLE_ID],default:Gt.ROLE_ID},5199:{types:[Gt.ROLE_ID],default:Gt.ROLE_ID},5012:{types:[Gt.ROLE_ID],default:Gt.ROLE_ID},5242:{types:[Gt.GIANT,Gt.MOBILE],default:Gt.MOBILE}};function ln(...e){return Wf(Kg(e))}function WA(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(n,o)=>String.fromCharCode(Number.parseInt(o,16))))}function JA(e){return e==="5199"||e==="5012"}function e3(e){const{entity:n,gaplaySign:o}=e;return WA(`${JSON.stringify(n)}$$${o}`)}function Pc(e,n){return n||Lc[e]?.types||Lc.default?.types||[]}function t3(e,n){return n||Lc[e]?.default||Lc.default?.default}function dv({loginTypes:e,gameId:n}){return Pc(n,e).includes(Gt.GIANT)}function hv({loginTypes:e,gameId:n}){return Pc(n,e).includes(Gt.ROLE_ID)}function pv({loginTypes:e,gameId:n}){return Pc(n,e).includes(Gt.MOBILE)}function mv({gameId:e}){kn.headers.set("X-GAME-ID",e),kn.headers.set("X-Login-H5","1");const n=localStorage.getItem("UNIQUE_ID");n&&kn.headers.set("X-Client-Info",JSON.stringify({sdk_version:"3.0.0",device_udid:n,appunid:n}))}async function n3({gameId:e}){mv({gameId:e});let n=localStorage.getItem("UNIQUE_ID");n||(n=(await(await LC.load()).get()).visitorId,localStorage.setItem("UNIQUE_ID",n)),kn.headers.set("X-Client-Info",JSON.stringify({sdk_version:"3.0.0",device_udid:n,appunid:n}))}const r3=[{code:"86",name:"中国大陆"},{code:"886",name:"台湾地区"},{code:"852",name:"香港特别行政区"},{code:"853",name:"澳门特别行政区"},{code:"1",name:"美国"},{code:"81",name:"日本"},{code:"376",name:"安道尔"},{code:"971",name:"阿拉伯联合酋长国"},{code:"93",name:"阿富汗"},{code:"1268",name:"安提瓜和巴布达"},{code:"1264",name:"安圭拉"},{code:"355",name:"阿尔巴尼亚"},{code:"374",name:"亚美尼亚"},{code:"244",name:"安哥拉"},{code:"54",name:"阿根廷"},{code:"1684",name:"美属萨摩亚"},{code:"43",name:"奥地利"},{code:"61",name:"澳大利亚"},{code:"297",name:"阿鲁巴"},{code:"994",name:"阿塞拜疆"},{code:"387",name:"波斯尼亚和黑塞哥维那"},{code:"1246",name:"巴巴多斯"},{code:"880",name:"孟加拉国"},{code:"32",name:"比利时"},{code:"226",name:"布基纳法索"},{code:"359",name:"保加利亚"},{code:"973",name:"巴林"},{code:"257",name:"布隆迪"},{code:"229",name:"贝宁"},{code:"1441",name:"百慕大群岛"},{code:"673",name:"文莱"},{code:"591",name:"玻利维亚"},{code:"599",name:"荷兰加勒比"},{code:"55",name:"巴西"},{code:"1242",name:"巴哈马"},{code:"975",name:"不丹"},{code:"267",name:"博茨瓦纳"},{code:"375",name:"白俄罗斯"},{code:"501",name:"伯利兹"},{code:"1",name:"加拿大"},{code:"243",name:"刚果民主共和国"},{code:"236",name:"中非共和国"},{code:"242",name:"刚果共和国"},{code:"41",name:"瑞士"},{code:"225",name:"象牙海岸"},{code:"682",name:"库克群岛"},{code:"56",name:"智利"},{code:"237",name:"喀麦隆"},{code:"57",name:"哥伦比亚"},{code:"506",name:"哥斯达黎加"},{code:"53",name:"古巴"},{code:"238",name:"佛得角共和国"},{code:"599",name:"库拉索"},{code:"357",name:"塞浦路斯"},{code:"420",name:"捷克"},{code:"49",name:"德国"},{code:"253",name:"吉布提"},{code:"45",name:"丹麦"},{code:"1767",name:"多米尼加"},{code:"1809",name:"多米尼加共和国"},{code:"213",name:"阿尔及利亚"},{code:"593",name:"厄瓜多尔"},{code:"372",name:"爱沙尼亚"},{code:"20",name:"埃及"},{code:"291",name:"厄立特里亚"},{code:"34",name:"西班牙"},{code:"251",name:"埃塞俄比亚"},{code:"358",name:"芬兰"},{code:"679",name:"斐济"},{code:"691",name:"密克罗尼西亚"},{code:"298",name:"法罗群岛"},{code:"33",name:"法国"},{code:"241",name:"加蓬"},{code:"44",name:"英国"},{code:"1473",name:"格林纳达"},{code:"995",name:"格鲁吉亚"},{code:"594",name:"法属圭亚那"},{code:"233",name:"加纳"},{code:"350",name:"直布罗陀"},{code:"299",name:"格陵兰岛"},{code:"220",name:"冈比亚"},{code:"224",name:"几内亚"},{code:"590",name:"瓜德罗普岛"},{code:"240",name:"赤道几内亚"},{code:"30",name:"希腊"},{code:"502",name:"瓜地马拉"},{code:"1671",name:"关岛"},{code:"245",name:"几内亚比绍共和国"},{code:"592",name:"圭亚那"},{code:"504",name:"洪都拉斯"},{code:"385",name:"克罗地亚"},{code:"509",name:"海地"},{code:"36",name:"匈牙利"},{code:"62",name:"印度尼西亚"},{code:"353",name:"爱尔兰"},{code:"972",name:"以色列"},{code:"91",name:"印度"},{code:"964",name:"伊拉克"},{code:"98",name:"伊朗"},{code:"354",name:"冰岛"},{code:"39",name:"意大利"},{code:"1876",name:"牙买加"},{code:"962",name:"约旦"},{code:"254",name:"肯尼亚"},{code:"996",name:"吉尔吉斯斯坦"},{code:"855",name:"柬埔寨"},{code:"686",name:"基里巴斯"},{code:"269",name:"科摩罗"},{code:"1869",name:"圣基茨和尼维斯"},{code:"850",name:"朝鲜"},{code:"82",name:"韩国"},{code:"965",name:"科威特"},{code:"1345",name:"开曼群岛"},{code:"7",name:"哈萨克斯坦"},{code:"856",name:"老挝"},{code:"961",name:"黎巴嫩"},{code:"1758",name:"圣露西亚"},{code:"423",name:"列支敦士登"},{code:"94",name:"斯里兰卡"},{code:"231",name:"利比里亚"},{code:"266",name:"莱索托"},{code:"370",name:"立陶宛"},{code:"352",name:"卢森堡"},{code:"371",name:"拉脱维亚"},{code:"218",name:"利比亚"},{code:"212",name:"摩洛哥"},{code:"377",name:"摩纳哥"},{code:"373",name:"摩尔多瓦"},{code:"382",name:"黑山"},{code:"261",name:"马达加斯加"},{code:"692",name:"马绍尔群岛"},{code:"389",name:"北马其顿"},{code:"223",name:"马里"},{code:"95",name:"缅甸"},{code:"976",name:"蒙古"},{code:"222",name:"毛里塔尼亚"},{code:"1664",name:"蒙特塞拉特岛"},{code:"356",name:"马耳他"},{code:"230",name:"毛里求斯"},{code:"960",name:"马尔代夫"},{code:"265",name:"马拉维"},{code:"52",name:"墨西哥"},{code:"60",name:"马来西亚"},{code:"258",name:"莫桑比克"},{code:"264",name:"纳米比亚"},{code:"687",name:"新喀里多尼亚"},{code:"227",name:"尼日尔"},{code:"234",name:"尼日利亚"},{code:"505",name:"尼加拉瓜"},{code:"31",name:"荷兰"},{code:"47",name:"挪威"},{code:"977",name:"尼泊尔"},{code:"674",name:"拿鲁岛"},{code:"64",name:"新西兰"},{code:"968",name:"阿曼"},{code:"507",name:"巴拿马"},{code:"51",name:"秘鲁"},{code:"689",name:"法属波利尼西亚"},{code:"675",name:"巴布亚新几内亚"},{code:"63",name:"菲律宾"},{code:"92",name:"巴基斯坦"},{code:"48",name:"波兰"},{code:"508",name:"圣彼埃尔和密克隆岛"},{code:"1787",name:"波多黎各"},{code:"351",name:"葡萄牙"},{code:"680",name:"帕劳"},{code:"595",name:"巴拉圭"},{code:"974",name:"卡塔尔"},{code:"262",name:"留尼汪"},{code:"40",name:"罗马尼亚"},{code:"381",name:"塞尔维亚"},{code:"7",name:"俄罗斯"},{code:"250",name:"卢旺达"},{code:"966",name:"沙特阿拉伯"},{code:"677",name:"所罗门群岛"},{code:"248",name:"塞舌尔"},{code:"249",name:"苏丹"},{code:"46",name:"瑞典"},{code:"65",name:"新加坡"},{code:"386",name:"斯洛文尼亚"},{code:"421",name:"斯洛伐克"},{code:"232",name:"塞拉利昂"},{code:"378",name:"圣马力诺"},{code:"221",name:"塞内加尔"},{code:"252",name:"索马里"},{code:"597",name:"苏里南"},{code:"239",name:"圣多美和普林西比"},{code:"503",name:"萨尔瓦多"},{code:"963",name:"叙利亚"},{code:"268",name:"埃斯瓦蒂尼"},{code:"1649",name:"特克斯和凯科斯群岛"},{code:"235",name:"乍得"},{code:"228",name:"多哥"},{code:"66",name:"泰国"},{code:"992",name:"塔吉克斯坦"},{code:"670",name:"东帝汶"},{code:"993",name:"土库曼斯坦"},{code:"216",name:"突尼斯"},{code:"676",name:"汤加"},{code:"90",name:"土耳其"},{code:"1868",name:"特立尼达和多巴哥"},{code:"255",name:"坦桑尼亚"},{code:"380",name:"乌克兰"},{code:"256",name:"乌干达"},{code:"598",name:"乌拉圭"},{code:"998",name:"乌兹别克斯坦"},{code:"1784",name:"圣文森特和格林纳丁斯"},{code:"58",name:"委内瑞拉"},{code:"1284",name:"英属处女群岛"},{code:"84",name:"越南"},{code:"678",name:"瓦努阿图"},{code:"685",name:"萨摩亚"},{code:"967",name:"也门"},{code:"269",name:"马约特"},{code:"27",name:"南非"},{code:"260",name:"赞比亚"},{code:"263",name:"津巴布韦"}].map(e=>({label:e.name,value:e.code,id:`${e.code}-${e.name}`}));function o3(e){return r3}function i3(e){return"account"in e}function s3({gameId:e,serverUserInfo:n,extraState:o}){const s={game_id:e,xToken:e3(n),saveTime:n.entity.time,$version:"v2",extraState:o};if(i3(n))s.openid=n.entity.openid,s.gaplaySign=n.gaplaySign,s.account=n.account,s.username=n.account.view_name,s.loginByRoleMail=!1,s.channelId=n.channel||6;else if(n.gaplaySign){const{ZONEID:l,openid:c,CHARID:u,NAME:f,REALZONEID:p,ZONENAME:h}=n.entity;s.openid=c,s.zone={zoneid:p||l,zonename:h,area:l},s.char={...n.entity,CHARID:u,NAME:f,GAMEPOINT:n.entity.GAMEPOINT,VIPLEVEL:n.entity.VIPLEVEL},s.loginByRoleMail=!0,s.gaplaySign=n.gaplaySign}else{const{ZONEID:l,CHARID:c,NAME:u,REALZONEID:f,ZONENAME:p,OPENID:h,CHANNELID:g,GAMEPOINT:y,VIPLEVEL:b}=n.entity;s.openid=h,s.channelId=g,s.char={CHARID:c,NAME:u,GAMEPOINT:y,VIPLEVEL:b},s.loginByRoleMail=!1,s.username=u,s.zone={zoneid:f||l,zonename:p,area:l},s.xToken=void 0}return s}function gv(){try{const e=localStorage.getItem("userInfo")||"[]";return JSON.parse(e)}catch{return[]}}function Ic(e){return gv().find(o=>o.game_id===e)}function a3(e){const n=localStorage.getItem("userInfo")||"[]",o=JSON.parse(n),s=o.find(c=>c.game_id===e);s?.openid&&yv(s.openid,e);const l=o.filter(c=>c.game_id!==e);localStorage.setItem("userInfo",JSON.stringify(l))}function l3(e){const n=gv(),o=Ic(e.game_id),s=n.findIndex(l=>l.game_id===e.game_id);o?n[s]=e:n.push(e),localStorage.setItem("userInfo",JSON.stringify(n))}const Ba="LOGIN_SDK_ACCOUNTS";function Vi(e){try{const n=JSON.parse(localStorage.getItem(Ba)||"[]");return e?n.filter(o=>o.gameId===e):n}catch{return[]}}function Uc(e,n,o){if(!o)return;const s=JSON.parse(localStorage.getItem(Ba)||"[]");let l=1;const c=s.filter(p=>p.openid===e.accid&&p.gameId===o?(l=(p.loginCnt||1)+1,!1):!0),f=[{openid:e.accid,username:e.account?.view_name||"",uid:e.account?.uid||"",mobile:e.account?.mobile||"",accountType:e.account?.account_type||0,authorization:n,loginAt:Date.now(),loginCnt:l,gameId:o},...c].slice(0,20);localStorage.setItem(Ba,JSON.stringify(f));try{const h=JSON.parse(localStorage.getItem("gasdk-loginAccounts")||"[]").filter(b=>!(b.entity?.openid===e.accid&&b.gameId===o)),y=[{account:e.account,entity:e.entity,extra_data:e.extra_data,authorization:n,loginAt:Date.now(),loginCnt:l,gameId:o,udid:e.extra_data?.appunid||e.extra_data?.mkey||""},...h].slice(0,20);localStorage.setItem("gasdk-loginAccounts",JSON.stringify(y))}catch(p){console.error("Failed to save gasdk-loginAccounts",p)}}function yv(e,n){if(!n)return;const s=JSON.parse(localStorage.getItem(Ba)||"[]").filter(l=>!(l.openid===e&&l.gameId===n));localStorage.setItem(Ba,JSON.stringify(s));try{const c=JSON.parse(localStorage.getItem("gasdk-loginAccounts")||"[]").filter(u=>!(u.entity?.openid===e&&u.gameId===n));localStorage.setItem("gasdk-loginAccounts",JSON.stringify(c))}catch(l){console.error("Failed to remove from gasdk-loginAccounts",l)}}let vv={};function bv(e){vv=e}function ni(e){const n=e||vv.gameId;if(!n)throw new Error("gameId is required. Call init({ gameId }) first or pass it as an argument.");return n}const Sv=v.createContext(void 0),c3={enabled:!0,days:7},wv={"--primary-color":"#787bf4","--icon-color":"#a9aad1","--input-border-color":"#cad0e0","--input-label-color":"var(--jssdk-primary-color)","--input-bg-color":"#fff","--backdrop-bg-color":"rgba(0, 0, 0, 0.7)"};function wo(){const e=v.use(Sv);if(!e)throw new Error("useConfig 必须在 ConfigProvider 中使用");return e}function xv({children:e,value:n}){const o=ni(n.gameId),s=Pc(o,n.loginTypes),l=t3(o,n.defaultLoginType),c=v.useRef(null);mv({gameId:o});const u=Ai.useMemo(()=>!n.defaultLoginType&&Vi(o).length>0?"quick":l,[n.defaultLoginType,o,l]),[f,p]=v.useState(u),[h,g]=v.useState(!0),[y,b]=v.useState(!1),[S,x]=v.useState(!1),[T,C]=v.useState(""),E=()=>{b(!0)};v.useEffect(()=>{n3({gameId:o})},[o]);const L={...n,gameId:o,loginTypes:s,defaultLoginType:l,autoLoginConfig:{...c3,...n.autoLoginConfig}};v.useEffect(()=>{document.body.classList.add(`game-${o}`)},[o]);function j(k){Object.entries(k).forEach(([R,N])=>{const z=`--jssdk-${R.replace(/^--/,"")}`;document.documentElement.style.setProperty(z,N)})}return v.useEffect(()=>{const k=c.current;if(k){const R={...wv,...n.styleVars};j(R)}return()=>{k&&j(wv)}},[n.styleVars]),D.jsx("div",{ref:c,children:D.jsx(Sv,{value:{...L,currentLoginType:f,setCurrentLoginType:p,isShowGiantLogo:h,setIsShowGiantLogo:g,showRealNameModal:y,setShowRealNameModal:b,triggerRealNameAuth:E,isAutoLoggingIn:S,setIsAutoLoggingIn:x,autoLoginAccountName:T,setAutoLoginAccountName:C,onClose:n.onClose},children:e})})}function Za({controlled:e,default:n,name:o,state:s="value"}){const{current:l}=v.useRef(e!==void 0),[c,u]=v.useState(n),f=l?e:c,p=v.useCallback(h=>{l||u(h)},[]);return[f,p]}const Ev=v.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function u3(){return v.useContext(Ev)}function f3(e){const{children:n,elementsRef:o,labelsRef:s,onMapChange:l}=e,c=Te(l),u=v.useRef(0),f=vn(h3).current,p=vn(d3).current,[h,g]=v.useState(0),y=v.useRef(h),b=Te((E,L)=>{p.set(E,L??null),y.current+=1,g(y.current)}),S=Te(E=>{p.delete(E),y.current+=1,g(y.current)}),x=v.useMemo(()=>{const E=new Map;return Array.from(p.keys()).filter(j=>j.isConnected).sort(p3).forEach((j,k)=>{const R=p.get(j)??{};E.set(j,{...R,index:k})}),E},[p,h]);ke(()=>{if(typeof MutationObserver!="function"||x.size===0)return;const E=new MutationObserver(L=>{const j=new Set,k=R=>j.has(R)?j.delete(R):j.add(R);L.forEach(R=>{R.removedNodes.forEach(k),R.addedNodes.forEach(k)}),j.size===0&&(y.current+=1,g(y.current))});return x.forEach((L,j)=>{j.parentElement&&E.observe(j.parentElement,{childList:!0})}),()=>{E.disconnect()}},[x]),ke(()=>{y.current===h&&(o.current.length!==x.size&&(o.current.length=x.size),s&&s.current.length!==x.size&&(s.current.length=x.size),u.current=x.size),c(x)},[c,x,o,s,h]),ke(()=>()=>{o.current=[]},[o]),ke(()=>()=>{s&&(s.current=[])},[s]);const T=Te(E=>(f.add(E),()=>{f.delete(E)}));ke(()=>{f.forEach(E=>E(x))},[f,x]);const C=v.useMemo(()=>({register:b,unregister:S,subscribeMapChange:T,elementsRef:o,labelsRef:s,nextIndexRef:u}),[b,S,T,o,s,u]);return D.jsx(Ev.Provider,{value:C,children:n})}function d3(){return new Map}function h3(){return new Set}function p3(e,n){const o=e.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}function hr(e){return Jo(e,"base-ui")}let Tv=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function m3(e={}){const{label:n,metadata:o,textRef:s,indexGuessBehavior:l,index:c}=e,{register:u,unregister:f,subscribeMapChange:p,elementsRef:h,labelsRef:g,nextIndexRef:y}=u3(),b=v.useRef(-1),[S,x]=v.useState(c??(l===Tv.GuessFromOrder?()=>{if(b.current===-1){const E=y.current;y.current+=1,b.current=E}return b.current}:-1)),T=v.useRef(null),C=v.useCallback(E=>{if(T.current=E,S!==-1&&E!==null&&(h.current[S]=E,g)){const L=n!==void 0;g.current[S]=L?n:s?.current?.textContent??E.textContent}},[S,h,g,n,s]);return ke(()=>{if(c!=null)return;const E=T.current;if(E)return u(E,o),()=>{f(E)}},[c,u,f,o]),ke(()=>{if(c==null)return p(E=>{const L=T.current?E.get(T.current)?.index:null;L!=null&&x(L)})},[c,p,x]),v.useMemo(()=>({ref:C,index:S}),[S,C])}const Cv="ArrowUp",Rv="ArrowDown",Ov="ArrowLeft",_v="ArrowRight",Av="Home",Mv="End",g3=new Set([Ov,_v]),y3=new Set([Cv,Rv]),v3=new Set([...g3,...y3]);[...v3];const Vc=new Set([Cv,Rv,Ov,_v,Av,Mv]);function eh(e){const n=v.useRef(!0);n.current&&(n.current=!1,e())}let Dv={},zv={},Nv="";function b3(e){if(typeof document>"u")return!1;const n=Je(e);return Lt(n).innerWidth-n.documentElement.clientWidth>0}function S3(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const o=Je(e),s=o.documentElement,l=o.body,c=qo(s)?s:l,u=c.style.overflowY,f=s.style.scrollbarGutter;s.style.scrollbarGutter="stable",c.style.overflowY="scroll";const p=c.offsetWidth;c.style.overflowY="hidden";const h=c.offsetWidth;return c.style.overflowY=u,s.style.scrollbarGutter=f,p===h}function w3(e){const n=Je(e),o=n.documentElement,s=n.body,l=qo(o)?o:s,c={overflowY:l.style.overflowY,overflowX:l.style.overflowX};return Object.assign(l.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(l.style,c)}}function x3(e){const n=Je(e),o=n.documentElement,s=n.body,l=Lt(o);let c=0,u=0,f=!1;const p=Wr.create();if(dd&&(l.visualViewport?.scale??1)!==1)return()=>{};function h(){const S=l.getComputedStyle(o),x=l.getComputedStyle(s),E=(S.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";c=o.scrollTop,u=o.scrollLeft,Dv={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},Nv=o.style.scrollBehavior,zv={position:s.style.position,height:s.style.height,width:s.style.width,boxSizing:s.style.boxSizing,overflowY:s.style.overflowY,overflowX:s.style.overflowX,scrollBehavior:s.style.scrollBehavior};const L=o.scrollHeight>o.clientHeight,j=o.scrollWidth>o.clientWidth,k=S.overflowY==="scroll"||x.overflowY==="scroll",R=S.overflowX==="scroll"||x.overflowX==="scroll",N=Math.max(0,l.innerWidth-s.clientWidth),z=Math.max(0,l.innerHeight-s.clientHeight),P=parseFloat(x.marginTop)+parseFloat(x.marginBottom),K=parseFloat(x.marginLeft)+parseFloat(x.marginRight),G=qo(o)?o:s;if(f=S3(e),f){o.style.scrollbarGutter=E,G.style.overflowY="hidden",G.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:E,overflowY:"hidden",overflowX:"hidden"}),(L||k)&&(o.style.overflowY="scroll"),(j||R)&&(o.style.overflowX="scroll"),Object.assign(s.style,{position:"relative",height:P||z?`calc(100dvh - ${P+z}px)`:"100dvh",width:K||N?`calc(100vw - ${K+N}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),s.scrollTop=c,s.scrollLeft=u,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function g(){Object.assign(o.style,Dv),Object.assign(s.style,zv),f||(o.scrollTop=c,o.scrollLeft=u,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=Nv)}function y(){g(),p.request(h)}h();const b=pt(l,"resize",y);return()=>{p.cancel(),g(),typeof l.removeEventListener=="function"&&b()}}class E3{lockCount=0;restore=null;timeoutLock=cr.create();timeoutUnlock=cr.create();acquire(n){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(n)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(n){if(this.lockCount===0||this.restore!==null)return;const s=Je(n).documentElement,l=Lt(s).getComputedStyle(s).overflowY;if(l==="hidden"||l==="clip"){this.restore=Tn;return}const c=xy||!b3(n);this.restore=c?w3(n):x3(n)}}const T3=new E3;function kv(e=!0,n=null){ke(()=>{if(e)return T3.acquire(n)},[e,n])}function C3(e){const n=v.useRef(""),o=v.useCallback(l=>{l.defaultPrevented||(n.current=l.pointerType,e(l,l.pointerType))},[e]);return{onClick:v.useCallback(l=>{if(l.detail===0){e(l,"keyboard");return}"pointerType"in l?e(l,l.pointerType):e(l,n.current),n.current=""},[e]),onPointerDown:o}}function Hc(e,n){const o=v.useRef(e),s=Te(n);ke(()=>{o.current!==e&&s(o.current)},[e,s]),ke(()=>{o.current=e},[e])}function th(e){const[n,o]=v.useState(null),s=Te((u,f)=>{e||o(f||(xy?"touch":""))});Hc(e,u=>{u&&!e&&o(null)});const{onClick:l,onPointerDown:c}=C3(s);return v.useMemo(()=>({openMethod:n,triggerProps:{onClick:l,onPointerDown:c}}),[n,l,c])}function R3(e){const{store:n,parentContext:o,actionsRef:s,isDrawer:l}=e,c=n.useState("open"),u=n.useState("disablePointerDismissal"),f=n.useState("modal"),p=n.useState("popupElement"),{openMethod:h,triggerProps:g}=th(c);Z0(n);const{forceUnmount:y}=G0(c,n),b=v.useCallback(()=>{n.setOpen(!1,ct(d0))},[n]);v.useImperativeHandle(s,()=>({unmount:y,close:b}),[y,b]);const S=X0({popupStore:n,onOpenChange:n.setOpen,treatPopupAsFloatingElement:!0}),[x,T]=v.useState(0),[C,E]=v.useState(0),L=x===0,j=J0(S),k=Gd(S,{outsidePressEvent(){return n.context.internalBackdropRef.current||n.context.backdropRef.current?"intentional":{mouse:f==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(q){if(!n.context.outsidePressEnabledRef.current||"button"in q&&q.button!==0||"touches"in q&&q.touches.length!==1)return!1;const te=Xt(q);if(L&&!u){const ee=te;return f&&(n.context.internalBackdropRef.current||n.context.backdropRef.current)?n.context.internalBackdropRef.current===ee||n.context.backdropRef.current===ee||Ie(ee,p)&&!ee?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:L});kv(c&&f===!0,p);const{getReferenceProps:R,getFloatingProps:N,getTriggerProps:z}=Ha([j,k]);n.useContextCallback("onNestedDialogOpen",(q,te)=>{T(q),E(te)}),n.useContextCallback("onNestedDialogClose",()=>{T(0),E(0)}),v.useEffect(()=>(o?.onNestedDialogOpen&&c&&o.onNestedDialogOpen(x+1,C+(l?1:0)),o?.onNestedDialogClose&&!c&&o.onNestedDialogClose(),()=>{o?.onNestedDialogClose&&c&&o.onNestedDialogClose()}),[l,c,x,C,o]);const P=v.useMemo(()=>R(g),[R,g]),K=v.useMemo(()=>z(g),[z,g]),G=v.useMemo(()=>N(),[N]);n.useSyncedValues({openMethod:h,activeTriggerProps:P,inactiveTriggerProps:K,popupProps:G,floatingRootContext:S,nestedOpenDialogCount:x,nestedOpenDrawerCount:C})}const jv=v.createContext(void 0);function qn(e){const n=v.useContext(jv);if(e===!1&&n===void 0)throw new Error(Jt(27));return n}const O3={...$0,modal:Ae(e=>e.modal),nested:Ae(e=>e.nested),nestedOpenDialogCount:Ae(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Ae(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Ae(e=>e.disablePointerDismissal),openMethod:Ae(e=>e.openMethod),descriptionElementId:Ae(e=>e.descriptionElementId),titleElementId:Ae(e=>e.titleElementId),viewportElement:Ae(e=>e.viewportElement),role:Ae(e=>e.role)};class nh extends Jl{constructor(n){super(_3(n),{popupRef:v.createRef(),backdropRef:v.createRef(),internalBackdropRef:v.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new Cc,onOpenChange:void 0,onOpenChangeComplete:void 0},O3)}setOpen=(n,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!n&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const s={open:n},l=o.trigger?.id??null;(l||n)&&(s.activeTriggerId=l,s.activeTriggerElement=o.trigger??null),this.update(s)};static useStore(n,o){const s=vn(()=>new nh(o)).current;return n??s}}function _3(e={}){return{...Y0(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}const rh=v.createContext(!1);function oh(e){const{children:n,open:o,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:c,disablePointerDismissal:u=!1,modal:f=!0,actionsRef:p,handle:h,triggerId:g,defaultTriggerId:y=null}=e,b=qn(!0),S=v.useContext(rh),x=!!b,T=nh.useStore(h?.store,{open:s,openProp:o,activeTriggerId:y,triggerIdProp:g,modal:f,disablePointerDismissal:u,nested:x});eh(()=>{o===void 0&&T.state.open===!1&&s===!0&&T.update({open:!0,activeTriggerId:y})}),T.useControlledProp("openProp",o),T.useControlledProp("triggerIdProp",g),T.useSyncedValues({disablePointerDismissal:u,nested:x,modal:f}),T.useContextCallback("onOpenChange",l),T.useContextCallback("onOpenChangeComplete",c);const C=T.useState("payload");R3({store:T,actionsRef:p,parentContext:b?.store.context,isDrawer:S});const E=v.useMemo(()=>({store:T}),[T]);return D.jsx(rh.Provider,{value:!1,children:D.jsx(jv.Provider,{value:E,children:typeof n=="function"?n({payload:C}):n})})}const A3={...oo,...Or},Lv=v.forwardRef(function(n,o){const{render:s,className:l,style:c,forceRender:u=!1,...f}=n,{store:p}=qn(),h=p.useState("open"),g=p.useState("nested"),y=p.useState("mounted"),b=p.useState("transitionStatus");return At("div",n,{state:{open:h,transitionStatus:b},ref:[p.context.backdropRef,o],stateAttributesMapping:A3,props:[{role:"presentation",hidden:!y,style:{userSelect:"none",WebkitUserSelect:"none"}},f],enabled:u||!g})}),Pv=v.forwardRef(function(n,o){const{render:s,className:l,disabled:c=!1,nativeButton:u=!0,style:f,...p}=n,{store:h}=qn(),g=h.useState("open");function y(T){g&&h.setOpen(!1,ct(g_,T.nativeEvent))}const{getButtonProps:b,buttonRef:S}=Es({disabled:c,native:u});return At("button",n,{state:{disabled:c},ref:[o,S],props:[{onClick:y},p,b]})}),Iv=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,...f}=n,{store:p}=qn(),h=hr(u);return p.useSyncedValueWithCleanup("descriptionElementId",h),At("p",n,{ref:o,props:[{id:h},f]})});let M3=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),D3=(function(e){return e[e.open=$n.open]="open",e[e.closed=$n.closed]="closed",e[e.startingStyle=$n.startingStyle]="startingStyle",e[e.endingStyle=$n.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const Uv=v.createContext(void 0);function ih(){const e=v.useContext(Uv);if(e===void 0)throw new Error(Jt(26));return e}const z3={...oo,...Or,nestedDialogOpen(e){return e?{[D3.nestedDialogOpen]:""}:null}},Vv=v.forwardRef(function(n,o){const{className:s,finalFocus:l,initialFocus:c,render:u,style:f,...p}=n,{store:h}=qn(),g=h.useState("descriptionElementId"),y=h.useState("disablePointerDismissal"),b=h.useState("floatingRootContext"),S=h.useState("popupProps"),x=h.useState("modal"),T=h.useState("mounted"),C=h.useState("nested"),E=h.useState("nestedOpenDialogCount"),L=h.useState("open"),j=h.useState("openMethod"),k=h.useState("titleElementId"),R=h.useState("transitionStatus"),N=h.useState("role");ih(),ro({open:L,ref:h.context.popupRef,onComplete(){L&&h.context.onOpenChangeComplete?.(!0)}});function z(te){return te==="touch"?h.context.popupRef.current:!0}const P=c===void 0?z:c,K=E>0,q=At("div",n,{state:{open:L,nested:C,transitionStatus:R,nestedDialogOpen:K},props:[S,{"aria-labelledby":k??void 0,"aria-describedby":g??void 0,role:N,tabIndex:-1,hidden:!T,onKeyDown(te){Vc.has(te.key)&&te.stopPropagation()},style:{[M3.nestedDialogs]:E}},p],ref:[o,h.context.popupRef,h.useStateSetter("popupElement")],stateAttributesMapping:z3});return D.jsx(wc,{context:b,openInteractionType:j,disabled:!T,closeOnFocusOut:!y,initialFocus:P,returnFocus:l,modal:x!==!1,restoreFocus:"popup",children:q})}),sh=v.forwardRef(function(n,o){const{cutout:s,...l}=n;let c;if(s){const u=s.getBoundingClientRect();c=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${u.left}px ${u.top}px,${u.left}px ${u.bottom}px,${u.right}px ${u.bottom}px,${u.right}px ${u.top}px,${u.left}px ${u.top}px)`}return D.jsx("div",{ref:o,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:c}})}),ah=v.forwardRef(function(n,o){const{keepMounted:s=!1,...l}=n,{store:c}=qn(),u=c.useState("mounted"),f=c.useState("modal"),p=c.useState("open");return u||s?D.jsx(Uv.Provider,{value:s,children:D.jsxs(Hd,{ref:o,...l,children:[u&&f===!0&&D.jsx(sh,{ref:c.context.internalBackdropRef,inert:gc(!p)}),n.children]})}):null}),lh=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,...f}=n,{store:p}=qn(),h=hr(u);return p.useSyncedValueWithCleanup("titleElementId",h),At("h2",n,{ref:o,props:[{id:h},f]})}),ch=v.forwardRef(function(n,o){const{render:s,className:l,disabled:c=!1,nativeButton:u=!0,id:f,payload:p,handle:h,style:g,...y}=n,b=qn(!0),S=h?.store??b?.store;if(!S)throw new Error(Jt(79));const x=hr(f),T=S.useState("floatingRootContext"),C=S.useState("isOpenedByTrigger",x),E=v.useRef(null),{registerTrigger:L,isMountedByThisTrigger:j}=B0(x,E,S,{payload:p}),{getButtonProps:k,buttonRef:R}=Es({disabled:c,native:u}),N=Zd(T,{enabled:T!=null}),z=Ha([N]),P={disabled:c,open:C},K=S.useState("triggerProps",j);return At("button",n,{state:P,ref:[R,o,L,E],props:[z.getReferenceProps(),K,{[Dd]:"",id:x},y,k],stateAttributesMapping:sv})});let Hv=(function(e){return e[e.open=$n.open]="open",e[e.closed=$n.closed]="closed",e[e.startingStyle=$n.startingStyle]="startingStyle",e[e.endingStyle=$n.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const N3={...oo,...Or,nested(e){return e?{[Hv.nested]:""}:null},nestedDialogOpen(e){return e?{[Hv.nestedDialogOpen]:""}:null}},k3=v.forwardRef(function(n,o){const{className:s,render:l,children:c,style:u,...f}=n,p=ih(),{store:h}=qn(),g=h.useState("open"),y=h.useState("nested"),b=h.useState("transitionStatus"),S=h.useState("nestedOpenDialogCount"),x=h.useState("mounted"),T=S>0;return At("div",n,{enabled:p||x,state:{open:g,nested:y,transitionStatus:b,nestedDialogOpen:T},ref:[o,h.useStateSetter("viewportElement")],stateAttributesMapping:N3,props:[{role:"presentation",hidden:!x,style:{pointerEvents:g?void 0:"none"},children:c},f]})}),j3=(e,n)=>Object.is(e,n);function Os(e,n,o){return e==null||n==null?Object.is(e,n):o(e,n)}function L3(e,n,o){return!e||e.length===0?!1:e.some(s=>s===void 0?!1:Os(n,s,o))}function Ga(e,n,o){return!e||e.length===0?-1:e.findIndex(s=>s===void 0?!1:Os(s,n,o))}function P3(e,n,o){return e.filter(s=>!Os(n,s,o))}function uh(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function I3(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function U3(e){if(!Array.isArray(e))return e!=null&&"null"in e;const n=e;if(I3(n)){for(const o of n)for(const s of o.items)if(s&&s.value==null&&s.label!=null)return!0;return!1}for(const o of n)if(o&&o.value==null&&o.label!=null)return!0;return!1}function V3(e,n){if(n&&e!=null)return n(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return uh(e)}function _s(e,n){return n&&e!=null?n(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?uh(e.value):uh(e)}let Fv=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const Fc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ya={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},H3={disabled:!1,...Ya},Hi={valid(e){return e===null?null:e?{[Fv.valid]:""}:{[Fv.invalid]:""}}},Bv=v.createContext({invalid:void 0,name:void 0,validityData:{state:Fc,errors:[],error:"",value:"",initialValue:null},setValidityData:Tn,disabled:void 0,touched:Ya.touched,setTouched:Tn,dirty:Ya.dirty,setDirty:Tn,filled:Ya.filled,setFilled:Tn,focused:Ya.focused,setFocused:Tn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:H3,markedDirtyRef:{current:!1},registerFieldControl:Tn,validation:{getValidationProps:(e=rn)=>e,getInputValidationProps:(e=rn)=>e,inputRef:{current:null},commit:async()=>{}}});function Fi(e=!0){const n=v.useContext(Bv);if(n.setValidityData===Tn&&!e)throw new Error(Jt(28));return n}function fh(e,n){const{enabled:o=!0,getValue:s,id:l,value:c}=n,{registerFieldControl:u}=Fi(),f=v.useRef(null);f.current||(f.current=Symbol()),ke(()=>{const p=f.current;if(!(!p||!o))return u(p,{controlRef:e,getValue:s,id:l,value:c}),()=>{u(p,void 0)}},[e,o,s,l,u,c])}const Zv=v.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Tn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function As(){return v.useContext(Zv)}const Gv=v.createContext({controlId:void 0,registerControlId:Tn,labelId:void 0,setLabelId:Tn,messageIds:[],setMessageIds:Tn,getDescriptionProps:e=>e});function xo(){return v.useContext(Gv)}function dh(e={}){const{id:n,implicit:o=!1,controlRef:s}=e,{controlId:l,registerControlId:c}=xo(),u=hr(n),f=o?l:void 0,p=vn(()=>Symbol("labelable-control")),h=v.useRef(!1),g=v.useRef(n!=null),y=Te(()=>{!h.current||c===Tn||(h.current=!1,c(p.current,void 0))});return ke(()=>{if(c===Tn)return;let b;if(o){const S=s?.current;bt(S)&&S.closest("label")!=null?b=n??null:b=f??u}else if(n!=null)g.current=!0,b=n;else if(g.current)b=u;else{y();return}if(b===void 0){y();return}h.current=!0,c(p.current,b)},[n,s,f,c,o,u,p,y]),v.useEffect(()=>y,[y]),l??u}function F3(e){const n=e.getBoundingClientRect(),o=Lt(e),s=o.getComputedStyle(e,"::before"),l=o.getComputedStyle(e,"::after");if(!(s.content!=="none"||l.content!=="none"))return n;const u=parseFloat(s.width)||0,f=parseFloat(s.height)||0,p=parseFloat(l.width)||0,h=parseFloat(l.height)||0,g=Math.max(n.width,u,p),y=Math.max(n.height,f,h),b=g-n.width,S=y-n.height;return{left:n.left-b/2,right:n.right+b/2,top:n.top-S/2,bottom:n.bottom+S/2}}function B3(e,n){return e??n}const Z3=20;function Yv(e,n,o,s){const[l,c]=v.useState(!1);ke(()=>{if(!e||!n||o==null){c(!1);return}const u=Je(o).documentElement.clientWidth,f=o.offsetWidth;c(u>0&&f>0&&f>=u-Z3)},[e,n,o]),kv(e&&(!n||l),s)}let $v=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.indeterminate="data-indeterminate",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});function qv(e){return v.useMemo(()=>({checked(n){return e.indeterminate?{}:n?{[$v.checked]:""}:{[$v.unchecked]:""}},...Hi}),[e.indeterminate])}const G3=v.createContext({disabled:!1});function Y3(){return v.useContext(G3)}function $3(e,n,o,s=!0,l){const[c,u]=v.useState(),f=hr(l?`${l}-label`:void 0),p=e??n??c;return ke(()=>{const h=e||n||!s?void 0:q3(o.current,f);c!==h&&u(h)}),p}function q3(e,n){const o=X3(e);if(o)return!o.id&&n&&(o.id=n),o.id||void 0}function X3(e){if(!e)return;const n=e.parentElement;if(n&&n.tagName==="LABEL")return n;const o=e.id;if(o){const l=e.nextElementSibling;if(l&&l.htmlFor===o)return l}const s=e.labels;return s&&s[0]}const Q3=v.createContext(void 0);function K3(e=!0){const n=v.useContext(Q3);if(n===void 0&&!e)throw new Error(Jt(3));return n}const Xv=v.createContext(void 0);function W3(){const e=v.useContext(Xv);if(e===void 0)throw new Error(Jt(14));return e}const J3="data-parent",Qv=v.forwardRef(function(n,o){const{checked:s,className:l,defaultChecked:c=!1,"aria-labelledby":u,disabled:f=!1,form:p,id:h,indeterminate:g=!1,inputRef:y,name:b,onCheckedChange:S,parent:x=!1,readOnly:T=!1,render:C,required:E=!1,uncheckedValue:L,value:j,nativeButton:k=!1,style:R,...N}=n,{clearErrors:z}=As(),{disabled:P,name:K,setDirty:G,setFilled:q,setFocused:te,setTouched:ee,state:F,validationMode:I,validityData:_,shouldValidateOnChange:O,validation:U}=Fi(),B=Y3(),{labelId:Q,controlId:A,registerControlId:V,getDescriptionProps:Y}=xo(),W=K3(),ne=W?.parent,ie=ne&&W.allValues,ce=P||B.disabled||W?.disabled||f,de=K??b,ye=j??de,Ee=hr(),Me=hr();let fe=A;ie?fe=x?Me:`${ne.id}-${ye}`:h&&(fe=h);let ze={};ie&&(x?ze=W.parent.getParentProps():ye&&(ze=W.parent.getChildProps(ye)));const De=Te(S),{checked:_e=s,indeterminate:Oe=g,onCheckedChange:Ce,...Le}=ze,Re=W?.value,Ue=W?.setValue,H=W?.defaultValue,oe=v.useRef(null),J=vn(()=>Symbol("checkbox-control")),X=v.useRef(!1),{getButtonProps:ve,buttonRef:we}=Es({disabled:ce,native:k}),be=W?.validation??U,[Ne,qe]=Za({controlled:ye&&Re&&!x?Re.includes(ye):_e,default:ye&&H&&!x?H.includes(ye):c,name:"Checkbox",state:"checked"});ke(()=>{V!==Tn&&(X.current=!0,V(J.current,fe))},[fe,W,V,x,J]),v.useEffect(()=>{const Ze=J.current;return()=>{!X.current||V===Tn||(X.current=!1,V(Ze,void 0))}},[V,J]),fh(oe,{enabled:!W,id:Ee,value:Ne});const He=v.useRef(null),Be=zi(y,He,be.inputRef),$e=$3(u,Q,He,!k,fe??void 0);ke(()=>{He.current&&(He.current.indeterminate=Oe,Ne&&q(!0))},[Ne,Oe,q]),Hc(Ne,()=>{W&&!x||(z(de),q(Ne),G(Ne!==_.initialValue),O()?be.commit(Ne):be.commit(Ne,!0))});const et=no({checked:Ne,disabled:ce,form:p,name:x?void 0:de,id:k?void 0:fe??void 0,required:E,ref:Be,style:de?qy:hc,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Ze){if(Ze.nativeEvent.defaultPrevented)return;if(T){Ze.preventDefault();return}const st=Ze.currentTarget.checked,ut=ct(ji,Ze.nativeEvent);if(Ce?.(st,ut),De(st,ut),!ut.isCanceled&&(qe(st),ye&&Re&&Ue&&!x&&!ie)){const zt=st?[...Re,ye]:Re.filter(mt=>mt!==ye);Ue(zt,ut)}},onFocus(){oe.current?.focus()}},j!==void 0?{value:(W?Ne&&j:j)||""}:rn,Y,W?be.getValidationProps:be.getInputValidationProps),Xe=ie?!!_e:Ne,We=ie&&Oe||g;v.useEffect(()=>{if(!ne||!ye)return;const Ze=ne.disabledStatesRef.current;return Ze.set(ye,ce),()=>{Ze.delete(ye)}},[ne,ce,ye]);const dt=v.useMemo(()=>({...F,checked:Xe,disabled:ce,readOnly:T,required:E,indeterminate:We}),[F,Xe,ce,T,E,We]),jt=qv(dt),rt=At("span",n,{state:dt,ref:[we,oe,o,W?.registerControlRef],props:[{id:k?fe??void 0:Ee,role:"checkbox","aria-checked":Oe?"mixed":Ne,"aria-readonly":T||void 0,"aria-required":E||void 0,"aria-labelledby":$e,[J3]:x?"":void 0,onFocus(){te(!0)},onBlur(){const Ze=He.current;Ze&&(ee(!0),te(!1),I==="onBlur"&&be.commit(W?Re:Ze.checked))},onClick(Ze){T||ce||(Ze.preventDefault(),He.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:Ze.shiftKey,ctrlKey:Ze.ctrlKey,altKey:Ze.altKey,metaKey:Ze.metaKey})))}},Y,be.getValidationProps,N,Le,ve],stateAttributesMapping:jt});return D.jsxs(Xv.Provider,{value:dt,children:[rt,!Ne&&!W&&de&&!x&&L!==void 0&&D.jsx("input",{type:"hidden",form:p,name:de,value:L}),D.jsx("input",{...et,suppressHydrationWarning:!0})]})}),Kv=v.forwardRef(function(n,o){const{render:s,className:l,style:c,keepMounted:u=!1,...f}=n,p=W3(),h=p.checked||p.indeterminate,{mounted:g,transitionStatus:y,setMounted:b}=Va(h),S=v.useRef(null),x={...p,transitionStatus:y};ro({open:h,ref:S,onComplete(){h||b(!1)}});const T=qv(p),C=v.useMemo(()=>({...T,...Or,...Hi}),[T]),E=u||g,L=At("span",n,{ref:[o,S],state:x,stateAttributesMapping:C,props:f});return E?L:null});function eM(e,n){const o=hr(e);return ke(()=>(n(o),()=>{n(void 0)}),[o,n]),o}function tM(e={}){const{id:n,fallbackControlId:o,native:s=!1,setLabelId:l,focusControl:c}=e,{controlId:u,setLabelId:f}=xo(),p=Te(S=>{f(S),l?.(S)}),h=eM(n,p),g=u??o;function y(S){if(c){c(S,g);return}if(!g)return;const x=Je(S.currentTarget).getElementById(g);Zt(x)&&nM(x)}function b(S){Xt(S.nativeEvent)?.closest("button,input,select,textarea")||(!S.defaultPrevented&&S.detail>1&&S.preventDefault(),!s&&y(S))}return s?{id:h,htmlFor:g??void 0,onMouseDown:b}:{id:h,onClick:b,onPointerDown(S){S.preventDefault()}}}function nM(e){e.focus({focusVisible:!0})}const rM=v.createContext(void 0);function Wv(e){return v.useContext(rM)}function oM(e,n){const o=v.useRef(null),s=Te(c=>{Cr.flushSync(()=>{e.setOpen(!1,ct(Li,c.nativeEvent,c.currentTarget))}),TO(o.current)?.focus()}),l=Te(c=>{const u=e.select("positionerElement");if(u&&xs(c,u))e.context.beforeContentFocusGuardRef.current?.focus();else{Cr.flushSync(()=>{e.setOpen(!1,ct(Li,c.nativeEvent,c.currentTarget))});let f=EO(e.context.triggerFocusTargetRef.current||n.current);for(;f!==null&&Ie(u,f);){const p=f;if(f=Od(f),f===p)break}f?.focus()}});return{preFocusGuardRef:o,handlePreFocusGuardFocus:s,handleFocusTargetFocus:l}}function iM(e){const[n,o]=v.useState({current:e,previous:null});return e!==n.current&&o({current:e,previous:n.current}),n.previous}const sM=v.createContext(void 0),aM={disableStyleElements:!1};function lM(){return v.useContext(sM)??aM}let Rn=(function(e){return e.nestedDrawers="--nested-drawers",e.height="--drawer-height",e.frontmostHeight="--drawer-frontmost-height",e.swipeMovementX="--drawer-swipe-movement-x",e.swipeMovementY="--drawer-swipe-movement-y",e.snapPointOffset="--drawer-snap-point-offset",e.swipeStrength="--drawer-swipe-strength",e})({}),Eo=(function(e){return e.swipeProgress="--drawer-swipe-progress",e})({});const cM={...oo,...Or},uM=v.forwardRef(function(n,o){const{render:s,className:l,style:c,forceRender:u=!1,...f}=n,{store:p}=qn(),h=p.useState("open"),g=p.useState("nested"),y=p.useState("mounted"),b=p.useState("transitionStatus");return At("div",n,{state:{open:h,transitionStatus:b},ref:[p.context.backdropRef,o],stateAttributesMapping:cM,props:[{role:"presentation",hidden:!y,style:{pointerEvents:h?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[Eo.swipeProgress]:"0",[Rn.swipeStrength]:"1"}},f],enabled:u||!g})}),Jv="data-drawer-content",fM=v.forwardRef(function(n,o){const{render:s,className:l,style:c,...u}=n;return qn(),At("div",n,{ref:o,props:[{[Jv]:""},u]})}),dM=v.createContext(void 0);function eb(e){return v.useContext(dM)}let Zr=(function(e){return e[e.open=$n.open]="open",e[e.closed=$n.closed]="closed",e[e.startingStyle=$n.startingStyle]="startingStyle",e[e.endingStyle=$n.endingStyle]="endingStyle",e.expanded="data-expanded",e.nestedDrawerOpen="data-nested-drawer-open",e.nestedDrawerSwiping="data-nested-drawer-swiping",e.swipeDismiss="data-swipe-dismiss",e.swipeDirection="data-swipe-direction",e.swiping="data-swiping",e})({});const tb=v.createContext(void 0);function Bc(e){const n=v.useContext(tb);if(e===!1&&n===void 0)throw new Error(Jt(90));return n}function hn(e,n=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,o))}function nb(e,n,o){if(!Number.isFinite(n)||n<=0)return null;if(typeof e=="number")return Number.isFinite(e)?e<=1?hn(e,0,1)*n:e:null;const s=e.trim();if(s.endsWith("px")){const l=Number.parseFloat(s);return Number.isFinite(l)?l:null}if(s.endsWith("rem")){const l=Number.parseFloat(s);return Number.isFinite(l)?l*o:null}return null}function hM(e,n){let o=null,s=1/0;for(const l of n){const c=Math.abs(l.height-e);c<s&&(s=c,o=l)}return o}function rb(){const{store:e}=qn(),{snapPoints:n,activeSnapPoint:o,setActiveSnapPoint:s,popupHeight:l}=Bc(),c=e.useState("viewportElement"),[u,f]=v.useState(0),[p,h]=v.useState(16),g=Te(()=>{const x=Je(c).documentElement;c&&f(c.offsetHeight),c||f(x.clientHeight);const T=parseFloat(getComputedStyle(x).fontSize);Number.isFinite(T)&&h(T)});ke(()=>{if(g(),!c||typeof ResizeObserver!="function")return;const S=new ResizeObserver(g);return S.observe(c),()=>{S.disconnect()}},[g,c]);const y=v.useMemo(()=>{if(!n||n.length===0||u<=0||l<=0)return[];const S=Math.min(l,u);if(!Number.isFinite(S)||S<=0)return[];const x=n.map(E=>{const L=nb(E,u,p);if(L===null||!Number.isFinite(L))return null;const j=hn(L,0,S);return{value:E,height:j,offset:Math.max(0,l-j)}}).filter(E=>!!E);if(x.length<=1)return x;const T=[],C=[];for(let E=x.length-1;E>=0;E-=1){const L=x[E];C.some(k=>Math.abs(k-L.height)<=1)||(C.push(L.height),T.push(L))}return T.reverse(),T},[l,p,n,u]),b=v.useMemo(()=>{if(o===void 0)return y[0];if(o===null)return;const S=y.find(E=>Object.is(E.value,o));if(S)return S;const x=Math.min(l,u),T=nb(o,u,p);if(T===null||!Number.isFinite(T))return;const C=hn(T,0,x);return hM(C,y)??void 0},[o,l,y,p,u]);return{snapPoints:n,activeSnapPoint:o,setActiveSnapPoint:s,popupHeight:l,viewportHeight:u,resolvedSnapPoints:y,activeSnapPointOffset:b?.offset??null}}const ob=v.createContext(null);function pM(e){return v.useContext(ob)}let ib=!1;function mM(){ib||(typeof CSS<"u"&&"registerProperty"in CSS&&([Rn.swipeMovementX,Rn.swipeMovementY,Rn.snapPointOffset].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),[{name:Eo.swipeProgress,initialValue:"0"},{name:Rn.swipeStrength,initialValue:"1"}].forEach(({name:e,initialValue:n})=>{try{CSS.registerProperty({name:e,syntax:"<number>",inherits:!1,initialValue:n})}catch{}})),ib=!0)}const gM={...oo,...Or,expanded(e){return e?{[Zr.expanded]:""}:null},nestedDrawerOpen(e){return e?{[Zr.nestedDrawerOpen]:""}:null},nestedDrawerSwiping(e){return e?{[Zr.nestedDrawerSwiping]:""}:null},swipeDirection(e){return e?{[Zr.swipeDirection]:e}:null},swiping(e){return e?{[Zr.swiping]:""}:null}},yM=v.forwardRef(function(n,o){const{className:s,finalFocus:l,initialFocus:c,render:u,style:f,...p}=n,{store:h}=qn(),{swipeDirection:g,frontmostHeight:y,hasNestedDrawer:b,nestedSwiping:S,nestedSwipeProgressStore:x,onPopupHeightChange:T,notifyParentFrontmostHeight:C,notifyParentHasNestedDrawer:E}=Bc(),L=h.useState("descriptionElementId"),j=h.useState("disablePointerDismissal"),k=h.useState("floatingRootContext"),R=h.useState("popupProps"),N=h.useState("modal"),z=h.useState("mounted"),P=h.useState("nested"),K=h.useState("nestedOpenDrawerCount"),G=h.useState("transitionStatus"),q=h.useState("open"),te=h.useState("openMethod"),ee=h.useState("titleElementId"),F=h.useState("role"),I=K>0,_=pM(),O=_?.swiping??!1,U=_?.swipeStrength??null,{snapPoints:B,activeSnapPoint:Q,activeSnapPointOffset:A}=rb();ih();const[V,Y]=v.useState(0),W=v.useRef(0),ne=Te(()=>{const De=h.context.popupRef.current;if(!De)return;const _e=De.offsetHeight;if(W.current>0&&y>W.current&&_e>W.current)return;if(W.current>0&&b){const Le=W.current;Y(Le),T(Le);return}const Ce=_e;Ce!==W.current&&(W.current=Ce,Y(Ce),T(Ce))});ke(()=>{if(!z){W.current=0,Y(0),T(0);return}const De=h.context.popupRef.current;if(!De||(mM(),ne(),typeof ResizeObserver!="function"))return;const _e=new ResizeObserver(ne);return _e.observe(De),()=>{_e.disconnect()}},[ne,z,I,T,h.context.popupRef]),ke(()=>{const De=h.context.popupRef,_e=()=>{const Ce=De.current;if(!Ce)return;const Le=x.getSnapshot();Le>0?Ce.style.setProperty(Eo.swipeProgress,`${Le}`):Ce.style.setProperty(Eo.swipeProgress,"0")};_e();const Oe=x.subscribe(_e);return()=>{Oe();const Ce=De.current;Ce&&Ce.style.setProperty(Eo.swipeProgress,"0")}},[x,h.context.popupRef]),v.useEffect(()=>{if(q)return C?.(y),()=>{C?.(0)}},[y,q,C]),v.useEffect(()=>E?(E(q||G==="ending"),()=>{E(!1)}):void 0,[E,q,G]),ro({open:q,ref:h.context.popupRef,onComplete(){q&&h.context.onOpenChangeComplete?.(!0)}});const ie=c===void 0?h.context.popupRef:c,ce={open:q,nested:P,transitionStatus:G,expanded:Q===1,nestedDrawerOpen:I,nestedDrawerSwiping:S,swipeDirection:g,swiping:O};let de;V&&!(!b&&G!=="ending")&&(de=`${V}px`);const Ee=B&&B.length>0&&(g==="down"||g==="up");let Me=null;Ee&&A!==null&&(Me=g==="up"?-A:A);let fe=_?_.getDragStyles():rn;if(Ee&&g==="down"){const De=A??0,_e=Number.parseFloat(String(fe[Rn.swipeMovementY]??0)),Oe=Number.isFinite(_e)?De+_e:De,Ce=Oe<0;if(O&&Ce&&Number.isFinite(_e)){const Le=Math.abs(Oe),Ue=-Math.sqrt(Le)-De;fe={...fe,transform:void 0,[Rn.swipeMovementY]:`${Ue}px`}}else fe={...fe,transform:void 0}}const ze=At("div",n,{state:ce,props:[R,{"aria-labelledby":ee,"aria-describedby":L,role:F,tabIndex:-1,hidden:!z,onKeyDown(De){Vc.has(De.key)&&De.stopPropagation()},style:{...fe,[Eo.swipeProgress]:"0",[Rn.nestedDrawers]:K,[Rn.height]:de,[Rn.snapPointOffset]:typeof Me=="number"?`${Me}px`:"0px",[Rn.frontmostHeight]:y?`${y}px`:void 0,[Rn.swipeStrength]:typeof U=="number"&&Number.isFinite(U)&&U>0?`${U}`:"1"}},p],ref:[o,h.context.popupRef,h.useStateSetter("popupElement")],stateAttributesMapping:gM});return D.jsx(wc,{context:k,openInteractionType:te,disabled:!z,closeOnFocusOut:!j,initialFocus:ie,returnFocus:l,modal:N!==!1,restoreFocus:"popup",children:ze})}),vM=ah;var sb,ab;function bM(e){const{children:n,open:o,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:c,disablePointerDismissal:u=!1,modal:f=!0,actionsRef:p,handle:h,triggerId:g,defaultTriggerId:y=null,swipeDirection:b="down",snapToSequentialPoints:S=!1,snapPoints:x,snapPoint:T,defaultSnapPoint:C,onSnapPointChange:E}=e,L=Te(E),j=Bc(!0),k=j?.onNestedSwipeProgressChange,R=j?.onNestedFrontmostHeightChange,N=j?.onNestedSwipingChange,z=j?.onNestedDrawerPresenceChange,[P,K]=v.useState(0),[G,q]=v.useState(0),[te,ee]=v.useState(!1),[F,I]=v.useState(!1),[_]=v.useState(SM),O=C!==void 0?C:x?.[0]??null,U=T!==void 0,[B,Q]=Za({controlled:T,default:O,name:"Drawer",state:"snapPoint"}),A=v.useRef(!1),V=Te((fe,ze)=>{const De=ze??ct(ji);L?.(fe,De),!De.isCanceled&&Q(fe)}),Y=v.useMemo(()=>U||!x||x.length===0?B:B===null||!x.some(fe=>Object.is(fe,B))?O:B,[B,U,O,x]),W=Te(fe=>{K(fe),!A.current&&fe>0&&q(fe)}),ne=Te(fe=>{if(fe>0){A.current=!0,q(fe);return}A.current=!1,P>0&&q(P)}),ie=Te(fe=>{ee(fe)}),ce=Te(fe=>{_.set(fe),k?.(fe)}),de=Te(fe=>{I(fe),N?.(fe)}),ye=Te((fe,ze)=>{l?.(fe,ze),!ze.isCanceled&&!fe&&x&&x.length>0&&V(O,ct(ze.reason,ze.event,ze.trigger))}),Ee=v.useMemo(()=>({swipeDirection:b,snapToSequentialPoints:S,snapPoints:x,activeSnapPoint:Y,setActiveSnapPoint:V,frontmostHeight:G,popupHeight:P,hasNestedDrawer:te,nestedSwiping:F,nestedSwipeProgressStore:_,onNestedDrawerPresenceChange:ie,onPopupHeightChange:W,onNestedFrontmostHeightChange:ne,onNestedSwipingChange:de,onNestedSwipeProgressChange:ce,notifyParentFrontmostHeight:R,notifyParentSwipingChange:N,notifyParentSwipeProgressChange:k,notifyParentHasNestedDrawer:z}),[Y,G,te,F,_,z,k,N,R,ie,ne,ce,de,W,P,V,x,S,b]),Me=typeof n=="function"?fe=>D.jsxs(v.Fragment,{children:[sb||(sb=D.jsx(lb,{})),n(fe)]}):D.jsxs(v.Fragment,{children:[ab||(ab=D.jsx(lb,{})),n]});return D.jsx(tb.Provider,{value:Ee,children:D.jsx(rh.Provider,{value:!0,children:D.jsx(oh,{open:o,defaultOpen:s,onOpenChange:ye,onOpenChangeComplete:c,disablePointerDismissal:u,modal:f,actionsRef:p,handle:h,triggerId:g,defaultTriggerId:y,children:Me})})})}function SM(){let e=0;const n=new Set;return{getSnapshot:()=>e,set(o){const s=Number.isFinite(o)?o:0;s!==e&&(e=s,n.forEach(l=>{l()}))},subscribe(o){return n.add(o),()=>{n.delete(o)}}}}function lb(){const e=Jo(),n=eb(),o=qn(!1),s=o.store.useState("open"),l=o.store.useState("nestedOpenDialogCount"),c=o.store.useState("popupElement"),u=l===0;return v.useEffect(()=>{if(!(!n||e==null))return()=>{n.removeDrawer(e)}},[e,n]),v.useEffect(()=>{e!=null&&n?.setDrawerOpen(e,s)},[e,s,n]),v.useEffect(()=>{if(!s||!u||!sc)return;const p=Lt(c).CloseWatcher;if(!p)return;function h(b){o.store.select("open")&&o.store.setOpen(!1,ct(y_,b))}const g=new p,y=pt(g,"close",h);return()=>{y(),g.destroy()}},[o.store,u,s,c]),null}function hh(e,n){const o=Zn(e);if(n==="vertical"){const l=o.overflowY;return(l==="auto"||l==="scroll")&&e.scrollHeight>e.clientHeight}const s=o.overflowX;return(s==="auto"||s==="scroll")&&e.scrollWidth>e.clientWidth}function wM(e,n,o){let s=e;for(;s&&s!==n;){for(const l of o)if(hh(s,l))return!0;s=s.parentElement}return!1}function Ms(e,n,o="vertical"){let s=Zt(e)?e:null;for(;s&&s!==n;){if(hh(s,o))return s;s=s.parentElement}return hh(n,o)?n:null}function Zc(e,n,o){return typeof e?.elementFromPoint=="function"?e.elementFromPoint(n,o):null}const xM=40,EM=10,TM=1,CM=50,cb=16,RM=80,OM='button,a,input,select,textarea,label,[role="button"]';function ph(e,n,o){switch(e){case"up":return-o;case"down":return o;case"left":return-n;case"right":return n;default:return 0}}function _M(e){const o=Lt(e).getComputedStyle(e).transform;let s=0,l=0,c=1;if(o&&o!=="none"){const u=o.match(/matrix(?:3d)?\(([^)]+)\)/);if(u){const f=u[1].split(", ").map(parseFloat);f.length===6?(s=f[4],l=f[5],c=Math.sqrt(f[0]*f[0]+f[1]*f[1])):f.length===16&&(s=f[12],l=f[13],c=f[0])}}return{x:s,y:l,scale:c}}function Gc(e){return Number.isFinite(e)&&e>0?e:null}function AM(e){return e%2===1}function mh(e,n,o){const s=e[o];if(typeof s=="function")try{s.call(e,n)}catch(l){if(l&&typeof l=="object"&&"name"in l&&l.name==="NotFoundError")return;throw l}}function MM(e){const{enabled:n,directions:o,elementRef:s,movementCssVars:l,canStart:c,ignoreSelectorWhenTouch:u=!0,ignoreScrollableAncestors:f=!1,swipeThreshold:p,onDismiss:h,onProgress:g,onCancel:y,onSwipeStart:b,onRelease:S,onSwipingChange:x,trackDrag:T=!0}=e,C=OM,E=o.length===1?o[0]:void 0,L=Math.max(0,typeof p=="number"?p:xM),j=o.includes("left"),k=o.includes("right"),R=o.includes("up"),N=o.includes("down"),z=j||k,P=R||N,K=v.useMemo(()=>{const he=[];return P&&he.push("vertical"),z&&he.push("horizontal"),he},[z,P]),[G,q]=v.useState(void 0),[te,ee]=v.useState(!1),[F,I]=v.useState(!1),[_,O]=v.useState(!1),[U,B]=v.useState({x:0,y:0}),[Q,A]=v.useState({x:0,y:0,scale:1}),[V,Y]=v.useState(null),W=v.useRef({x:0,y:0}),ne=v.useRef({x:0,y:0}),ie=v.useRef(null),ce=v.useRef({x:0,y:0,scale:1}),de=v.useRef(void 0),ye=v.useRef(0),Ee=v.useRef(!1),Me=v.useRef({x:0,y:0}),fe=v.useRef(!1),ze=v.useRef(!1),De=v.useRef(null),_e=v.useRef(!1),Oe=v.useRef(!1),Ce=v.useRef({width:0,height:0}),Le=v.useRef(0),Re=v.useRef(L),Ue=v.useRef(null),H=v.useRef(null),oe=v.useRef({x:0,y:0}),J=v.useRef(null),X=v.useRef(!1),ve=Te(he=>{X.current!==he&&(X.current=he,ee(he),x?.(he))});function we(he){if(!he)return;if(typeof p!="function"){Re.current=L;return}const xe=s.current;if(!xe)return;const je=p({element:xe,direction:he});Re.current=Math.max(0,je)}const be=Te((he,xe)=>{const je=Number.isFinite(he)?hn(he,0,1):0,at=je!==Le.current;let ft=!1;if(xe){const ot=J.current;ft=!ot||ot.deltaX!==xe.deltaX||ot.deltaY!==xe.deltaY||ot.direction!==xe.direction}!at&&!ft||(Le.current=je,xe?J.current=xe:at&&(J.current=null),g?.(je,xe))});function Ne(he,xe){if(xe===null)return;const je=H.current;if(je&&xe>je.time){const at=Math.max(xe-je.time,cb);oe.current={x:(he.x-je.x)/at,y:(he.y-je.y)/at}}H.current={x:he.x,y:he.y,time:xe}}const qe=v.useCallback(()=>{q(void 0),ve(!1),I(!1),O(!1),B({x:0,y:0}),A({x:0,y:0,scale:1}),Y(null),be(0),Re.current=L,W.current={x:0,y:0},ne.current={x:0,y:0},ce.current={x:0,y:0,scale:1},de.current=void 0,ye.current=0,Ee.current=!1,Me.current={x:0,y:0},fe.current=!1,ie.current=null,ze.current=!1,De.current=null,_e.current=!1,Oe.current=!1,Ce.current={width:0,height:0},Ue.current=null,H.current=null,oe.current={x:0,y:0},J.current=null},[ve,L,be]);v.useEffect(()=>{typeof p!="function"&&(Re.current=L)},[L,p]);function He(he){if("touches"in he){const xe=he.touches[0];return xe?{x:xe.clientX,y:xe.clientY}:null}return{x:he.clientX,y:he.clientY}}function Be(he){return"touches"in he?!0:he.pointerType==="touch"}function $e(he,xe){const je=Je(s.current);return Zc(je,he.x,he.y)??Xt(xe)}function et(he,xe){return z&&!P?Ms(he,xe,"horizontal"):P&&!z?Ms(he,xe,"vertical"):Ms(he,xe,"vertical")??Ms(he,xe,"horizontal")}function Xe(he,xe,je){_e.current=!1;const at=Be(he),ft=$e(xe,he.nativeEvent),_t=Je(s.current).body,Ge=at&&_t?et(ft,_t):null,Fe=je?.ignoreScrollableTarget??!1;if(Ge&&!Fe||(_e.current=!!(Ge&&Fe),(ft?ft.closest(C):!1)&&(!at||u)))return!1;const nt=s.current;if(f&&nt&&ft&&K.length>0&&!(je?.ignoreScrollableAncestors??!1)&&wM(ft,nt,K))return!1;if(Ee.current=!1,de.current=void 0,ye.current=0,W.current=xe,Ue.current=Gc(he.timeStamp),Me.current=xe,ie.current=xe,nt){Ce.current={width:nt.offsetWidth,height:nt.offsetHeight},we(E);const ht=_M(nt);ce.current=ht,ne.current={x:ht.x,y:ht.y},A(ht),B({x:ht.x,y:ht.y}),Ne({x:ht.x,y:ht.y},Ue.current),"touches"in he||mh(nt,he.pointerId,"setPointerCapture")}return b?.(he.nativeEvent),ve(!0),I(!1),Y(null),fe.current=!0,be(0),!0}function We(){dt(),_e.current=!1,ie.current=null}function dt(){ze.current=!1,De.current=null}function jt(he){if(We(),!X.current)return;ve(!1),I(!1),Y(null);const xe=T?Q:ce.current;ne.current={x:xe.x,y:xe.y},B({x:xe.x,y:xe.y}),q(void 0),Oe.current=!1;const je=s.current;je&&mh(je,he.pointerId,"releasePointerCapture"),be(0,{deltaX:0,deltaY:0,direction:void 0}),y?.(he.nativeEvent)}function rt(he,xe){const je=_t=>_t>=0?_t**.5:-(Math.abs(_t)**.5),at=(_t,Ge,Fe)=>!Ge&&_t<0||!Fe&&_t>0?je(_t):_t,ft=z?at(he,j,k):je(he),ot=P?at(xe,R,N):je(xe);return{x:ft,y:ot}}function Ze(he,xe,je){const at=Math.abs(xe),ft=Math.abs(je);if(P&&je!==0&&(!z||ft>=at)){const Ge=Math.max(0,he.scrollHeight-he.clientHeight),Fe=he.scrollTop<=0,tt=he.scrollTop>=Ge,nt=je>0,ht=je<0;return nt&&Fe&&N||ht&&tt&&R}if(z&&xe!==0&&(!P||at>ft)){const Ge=Math.max(0,he.scrollWidth-he.clientWidth),Fe=he.scrollLeft<=0,tt=he.scrollLeft>=Ge,nt=xe>0,ht=xe<0;return nt&&Fe&&k||ht&&tt&&j}return null}const st=Te(he=>{if(!n||he.defaultPrevented||he.nativeEvent.defaultPrevented||!("touches"in he)&&he.button!==0)return;const xe=He(he);!xe||(ze.current=!0,De.current=xe,_e.current=!1,Oe.current=!1,!(c?c(xe,{nativeEvent:he.nativeEvent,direction:E}):!0))||Xe(he,xe)&&dt()});function ut(he,xe,je){if(!n||!X.current)return;const at=Xt(he.nativeEvent);if(Be(he)&&!_e.current){const An=he.currentTarget;if(et(at,An))return}if("touches"in he||he.preventDefault(),fe.current){W.current=xe;const An=Gc(he.timeStamp);An!==null&&(Ue.current=An),fe.current=!1}const ft=xe.x,ot=xe.y,_t=je.x,Ge=je.y;(Ge<0&&ot>Me.current.y||Ge>0&&ot<Me.current.y)&&(Me.current={x:Me.current.x,y:ot}),(_t<0&&ft>Me.current.x||_t>0&&ft<Me.current.x)&&(Me.current={x:ft,y:Me.current.y});const Fe=ft-W.current.x,tt=ot-W.current.y,nt=ot-Me.current.y,ht=ft-Me.current.x;if(!F&&Math.sqrt(Fe*Fe+tt*tt)>=TM&&(I(!0),V===null&&z&&P)){const mr=Math.abs(Fe),on=Math.abs(tt);Y(mr>on?"horizontal":"vertical")}let Qe;if(!de.current)V==="vertical"?tt>0?Qe="down":tt<0&&(Qe="up"):V==="horizontal"?Fe>0?Qe="right":Fe<0&&(Qe="left"):Math.abs(Fe)>=Math.abs(tt)?Qe=Fe>0?"right":"left":Qe=tt>0?"down":"up",Qe&&(Qe==="left"&&j||Qe==="right"&&k||Qe==="up"&&R||Qe==="down"&&N)&&(de.current=Qe,ye.current=ph(Qe,Fe,tt),q(Qe),we(Qe));else{const An=de.current,mr=ph(An,ht,nt);mr>Re.current?(Ee.current=!1,q(An)):!(j&&k)&&!(R&&N)&&ye.current-mr>=EM&&(Ee.current=!0)}const $t=rt(Fe,tt);let xn=ce.current.x,On=ce.current.y;V==="horizontal"?z&&(xn+=$t.x):(V==="vertical"||z&&(xn+=$t.x),P&&(On+=$t.y)),ne.current={x:xn,y:On},T&&B({x:xn,y:On}),Ne({x:xn,y:On},Gc(he.timeStamp));const ao=xn-ce.current.x,Ar=On-ce.current.y,lo=de.current,pr=E??de.current;if(!pr){be(0,{deltaX:ao,deltaY:Ar,direction:lo});return}const er=pr==="left"||pr==="right"?Ce.current.width:Ce.current.height,_n=ce.current.scale||1;if(er<=0||_n<=0){be(0,{deltaX:ao,deltaY:Ar,direction:lo});return}const tr=ph(pr,xn-ce.current.x,On-ce.current.y);if(tr<=0){be(0,{deltaX:ao,deltaY:Ar,direction:lo});return}be(tr/(er*_n),{deltaX:ao,deltaY:Ar,direction:lo})}const zt=Te(he=>{const xe=He(he);if(!xe)return;if(!("touches"in he)){const ft=AM(he.buttons);ft&&(Oe.current=!0);const ot=he.buttons===0&&Oe.current;if(he.buttons!==0&&!ft||ot){jt(he);return}}if(!te&&ze.current){if(!Be(he)&&(he.defaultPrevented||he.nativeEvent.defaultPrevented)){We();return}if(c?c(xe,{nativeEvent:he.nativeEvent,direction:E}):!0){const ot=De.current;let _t=!1;if(Be(he)){const Fe=s.current;if(ot&&Fe){const tt=$e(xe,he.nativeEvent),ht=Je(Fe).body,Qe=ht?et(tt,ht):null;if(Qe&&(Ie(Fe,Qe)||Ie(Qe,Fe))){const $t=xe.x-ot.x,xn=xe.y-ot.y,On=Ze(Qe,$t,xn);if(On===!1)return;On===!0&&(_t=!0)}}}Xe(he,xe,{ignoreScrollableTarget:_t,ignoreScrollableAncestors:_t})&&(ot&&_t?(dt(),W.current=ot,Me.current=ot,ie.current=ot,fe.current=!1):(dt(),_e.current=!1))}}const je=ie.current,at=je===null?{x:0,y:0}:{x:xe.x-je.x,y:xe.y-je.y};ie.current=xe,ut(he,xe,at)}),mt=Te(he=>{if(!n)return;const xe=ne.current,je=ce.current,at=xe.x-je.x,ft=xe.y-je.y,ot={deltaX:at,deltaY:ft,direction:G??de.current};if(!X.current){We(),be(0,ot);return}ve(!1),I(!1),Y(null),We(),Oe.current=!1;const _t=s.current;_t&&("touches"in he||mh(_t,he.pointerId,"releasePointerCapture"));const Ge=at,Fe=ft,tt=Ue.current,nt=Gc(he.timeStamp),ht=tt!==null&&nt!==null&&nt>tt?nt-tt:0,Qe=ht>0?Math.max(ht,CM):0,$t=Qe>0?Ge/Qe:0,xn=Qe>0?Fe/Qe:0;let On=oe.current.x,ao=oe.current.y;const Ar=H.current;if(Ar&&nt!==null&&nt>=Ar.time){const tr=nt-Ar.time;if(tr<=RM){const An=Math.max(tr,cb),mr=xe.x-Ar.x,on=xe.y-Ar.y,el=mr/An,tl=on/An;el!==0&&(On=el),tl!==0&&(ao=tl)}else On=0,ao=0}const lo=S?.({event:he.nativeEvent,direction:G??de.current,deltaX:Ge,deltaY:Fe,velocityX:$t,velocityY:xn,releaseVelocityX:On,releaseVelocityY:ao}),pr=typeof lo=="boolean";if(Ee.current&&!pr){ne.current={x:je.x,y:je.y},B({x:je.x,y:je.y}),q(void 0),be(0,ot);return}let er=!1,_n;if(pr)er=lo,_n=G??de.current??E;else for(const tr of o){switch(tr){case"right":Ge>Re.current&&(er=!0,_n="right");break;case"left":Ge<-Re.current&&(er=!0,_n="left");break;case"down":Fe>Re.current&&(er=!0,_n="down");break;case"up":Fe<-Re.current&&(er=!0,_n="up");break}if(er)break}er&&_n?(q(_n),O(!0),h?.(he.nativeEvent,{direction:_n})):(ne.current={x:je.x,y:je.y},B({x:je.x,y:je.y}),q(void 0),be(0,ot))}),wn=v.useCallback(()=>{const he=T?U:ne.current,xe=T?Q:ce.current;if(!te&&he.x===xe.x&&he.y===xe.y&&!_)return{[l.x]:"0px",[l.y]:"0px"};const je=he.x-xe.x,at=he.y-xe.y;return{transition:te?"none":void 0,transform:te?`translateX(${he.x}px) translateY(${he.y}px) scale(${xe.scale})`:void 0,[l.x]:`${je}px`,[l.y]:`${at}px`}},[_,U,Q,te,l,T]),cn=v.useCallback(()=>n?{onPointerDown:st,onPointerMove:zt,onPointerUp:mt,onPointerCancel:mt}:{},[n,mt,zt,st]),Rt=v.useCallback(()=>n?{onTouchStart:st,onTouchMove:zt,onTouchEnd:mt,onTouchCancel:mt}:{},[n,mt,zt,st]);return{swiping:te,swipeDirection:G,dragDismissed:_,getPointerProps:cn,getTouchProps:Rt,getDragStyles:wn,reset:qe}}const DM=lh,zM=ch,gh=10,ub=.5,fb=.5,NM=300,db=4,hb=.2,kM=4,yh=80,pb=360,vh=.1,mb=1,jM=`[${Jv}]`,LM=v.forwardRef(function(n,o){const{className:s,render:l,style:c,children:u,...f}=n,{store:p}=qn(),{swipeDirection:h,notifyParentSwipingChange:g,notifyParentSwipeProgressChange:y,frontmostHeight:b,snapToSequentialPoints:S}=Bc(),T=eb()?.visualStateStore,C=p.useState("open"),E=p.useState("mounted"),L=p.useState("nested"),j=p.useState("nestedOpenDrawerCount"),k=p.useState("viewportElement"),R=p.useState("popupElement"),N=j>0,z=h==="left"||h==="right"?"horizontal":"vertical",P=z==="vertical",K=P?"horizontal":"vertical",{snapPoints:G,resolvedSnapPoints:q,activeSnapPoint:te,activeSnapPointOffset:ee,setActiveSnapPoint:F,popupHeight:I}=rb(),[_,O]=v.useState(null),U=v.useRef(void 0),B=v.useRef(null),Q=Ma(),A=v.useRef(!1),V=v.useRef(""),Y=v.useRef(!1),W=v.useRef(!1),ne=v.useRef(null),ie=v.useMemo(()=>{if(!G||G.length<2||h!=="down"&&h!=="up"||q.length<2)return null;const H=q.map(we=>we.offset).filter(we=>Number.isFinite(we)).sort((we,be)=>we-be);if(H.length<2)return null;const oe=H[0],J=H[1],X=H[H.length-1];let ve=J-oe;if(!Number.isFinite(ve)||ve<=0){const we=X-oe;if(!Number.isFinite(we)||we<=0)return null;ve=we}return{minOffset:oe,range:ve}},[q,G,h]),ce=v.useMemo(()=>!ie||ee===null?null:hn((ee-ie.minOffset)/ie.range,0,1),[ee,ie]),de=v.useMemo(()=>G&&G.length>0&&(h==="down"||h==="up")?h==="down"?["down","up"]:["up","down"]:[h],[G,h]),ye=Te(H=>{gb(p.context.popupRef.current,p.context.backdropRef.current,H)}),Ee=Te(()=>{ye(!1),p.context.popupRef.current?.removeAttribute(Ni.endingStyle),O(null)}),Me=Te(()=>{A.current&&(A.current=!1,g?.(!1))}),fe=Te(({resolvedProgress:H,shouldTrackProgress:oe,notifyParent:J})=>{const X=C&&!L&&oe,ve=X?H:0,we=C&&oe?H:0;J&&y&&(y(we),we<=0&&Me()),T?.set({swipeProgress:ve,frontmostHeight:ve>0?b:0});const be=p.context.backdropRef.current;if(be){if(!X||ve<=0){be.style.setProperty(Eo.swipeProgress,"0"),be.style.removeProperty(Rn.height);return}be.style.setProperty(Eo.swipeProgress,`${ve}`),b>0?be.style.setProperty(Rn.height,`${b}px`):be.style.removeProperty(Rn.height)}});function ze({direction:H,deltaX:oe,deltaY:J,velocityX:X,velocityY:ve,releaseVelocityX:we,releaseVelocityY:be}){if(!H)return null;const Ne=p.context.popupRef.current;if(!Ne)return null;const qe=H==="left"||H==="right"?Ne.offsetWidth:Ne.offsetHeight;if(!Number.isFinite(qe)||qe<=0)return null;const He=H==="left"||H==="right"?oe:J,Be=G&&G.length>0?ee??0:0;let $e=0;H==="down"?$e=Be:H==="up"&&($e=-Be);const et=$e+He,Xe=H==="left"||H==="up"?-et:et,We=Math.max(0,qe-Xe);if(!Number.isFinite(We)||We<=0)return null;const dt=H==="left"||H==="right"?we:be,jt=H==="left"||H==="right"?X:ve,rt=Math.abs(dt)>0&&Number.isFinite(dt)?dt:jt,Ze=H==="left"||H==="up"?-rt:rt;if(!Number.isFinite(Ze)||Ze<=hb)return null;const st=hn(Ze,hb,kM),ut=hn(We/st,yh,pb);if(!Number.isFinite(ut))return null;const zt=(ut-yh)/(pb-yh),mt=hn(vh+zt*(mb-vh),vh,mb);return!Number.isFinite(mt)||mt<=0?null:mt}function De(H){if(A.current||!H)return;const oe=H.direction??h,J=oe==="left"||oe==="right"?H.deltaX:H.deltaY;!Number.isFinite(J)||Math.abs(J)<gh||(A.current=!0,g?.(!0))}const _e=MM({enabled:E&&!N,directions:de,elementRef:p.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:Rn.swipeMovementX,y:Rn.swipeMovementY},onSwipeStart(H){if("touches"in H||"pointerType"in H&&H.pointerType==="touch")return;const oe=p.context.popupRef.current;if(!oe)return;const X=Je(oe).getSelection?.();if(!X||X.isCollapsed)return;const ve=bt(X.anchorNode)?X.anchorNode:X.anchorNode?.parentElement,we=bt(X.focusNode)?X.focusNode:X.focusNode?.parentElement;!Ie(oe,ve)&&!Ie(oe,we)||X.removeAllRanges()},onSwipingChange(H){yb(p.context.backdropRef.current,H),!H&&!y&&Me()},swipeThreshold({element:H,direction:oe}){return vb(H,oe)},canStart(H,oe){const J=p.context.popupRef.current;if(!J)return!1;const X=J.ownerDocument,ve=Zc(X,H.x,H.y);if(!ve||!Ie(J,ve))return!1;const we=oe.nativeEvent;return!(("touches"in we||"pointerType"in we&&we.pointerType==="touch")&&Sb(X,J)||we.type==="touchstart"&&bh(ve))},onProgress(H,oe){De(oe);const J=oe?.direction??_e.swipeDirection,X=J===void 0||J===h,ve=!!(G&&G.length>0),be=ve&&(h==="down"||h==="up")||!ve||h==="left"||h==="right"||X;let Ne=H;if(ie&&I>0){if(oe&&Number.isFinite(oe.deltaY)){const qe=ee??ie.minOffset,He=hn(qe+oe.deltaY,0,I);Ne=hn((He-ie.minOffset)/ie.range,0,1)}else if(ce!==null)Ne=ce;else if(J==="down"||J==="up"){const qe=H*I,He=ee??ie.minOffset,Be=J==="down"?He+qe:He-qe;Ne=hn((Be-ie.minOffset)/ie.range,0,1)}}fe({resolvedProgress:Ne,shouldTrackProgress:be,notifyParent:!0})},onRelease({event:H,deltaX:oe,deltaY:J,direction:X,velocityX:ve,velocityY:we,releaseVelocityX:be,releaseVelocityY:Ne}){const qe={deltaX:oe,deltaY:J,velocityX:ve,velocityY:we,releaseVelocityX:be,releaseVelocityY:Ne};function He(Rt){const he=p.context.popupRef.current;he&&(Me(),ye(!0),he.style.removeProperty("transition"),he.setAttribute(Ni.endingStyle,""),Cr.flushSync(()=>{O(ze({direction:Rt,...qe}))}))}if(!G||G.length===0){if(!X){Ee();return}const Rt=p.context.popupRef.current;if(!Rt){Ee();return}const he=vb(Rt,X),xe=X==="left"||X==="right"?oe:J;if(!Number.isFinite(xe)){Ee();return}const je=X==="left"||X==="up"?-xe:xe;if(je<=0)return Ee(),!1;const at=X==="left"||X==="right"?ve:we;if((X==="left"||X==="up"?-at:at)>=ub&&je>0)return He(X),!0;const ot=je>he;return ot?He(X):Ee(),ot}if(h!=="down"&&h!=="up"){Ee();return}if(!I||q.length===0){Ee();return}const Be=h==="down"?J:-J;if(!Number.isFinite(Be)){Ee();return}const $e=Math.sign(Be),et=h==="down"?Ne:-Ne,Xe=h==="down"?we:-we;let We=Number.isFinite(et)?et:Xe;if($e!==0&&Math.abs(Be)>=gh&&Number.isFinite(We)){const Rt=Math.sign(We);Rt!==0&&Rt!==$e&&(We=Xe)}const dt=ee??0,jt=hn(dt+Be,0,I),rt=Number.isFinite(We)&&Math.abs(We)>=fb?hn(We,-db,db)*NM:0,Ze=S?jt:hn(jt+rt,0,I),st=ct(yc,H),ut=()=>(U.current=te,F?.(null,st),He(h),!0);if(S){const Rt=[...q].sort((tt,nt)=>tt.offset-nt.offset);if(Rt.length===0)return Ee(),!1;let he=0,xe=Math.abs(dt-Rt[0].offset);for(let tt=1;tt<Rt.length;tt+=1){const nt=Math.abs(dt-Rt[tt].offset);nt<xe&&(xe=nt,he=tt)}let je=Rt[0];xe=Math.abs(Ze-je.offset);for(const tt of Rt){const nt=Math.abs(Ze-tt.offset);nt<xe&&(xe=nt,je=tt)}const at=Math.sign(We),ft=$e!==0&&at!==0&&at===$e&&Math.abs(We)>=fb;let ot=Ze;if(ft){const tt=hn(he+$e,0,Rt.length-1);if(tt!==he){const nt=Rt[tt];($e>0?Ze<nt.offset:Ze>nt.offset)&&(je=nt,ot=nt.offset)}else if($e>0)return ut()}const Ge=Math.abs(ot-I),Fe=Math.abs(ot-je.offset);return Ge<Fe?ut():(F?.(je.value,st),Ee(),!1)}if(We>=ub&&Be>0)return ut();let zt=q[0],mt=Math.abs(Ze-zt.offset);for(const Rt of q){const he=Math.abs(Ze-Rt.offset);he<mt&&(mt=he,zt=Rt)}return Math.abs(Ze-I)<mt?ut():(F?.(zt.value,st),Ee(),!1)},onDismiss(H){T?.set({swipeProgress:0,frontmostHeight:0});const oe=p.context.backdropRef.current;oe&&(oe.style.setProperty(Eo.swipeProgress,"0"),oe.style.removeProperty(Rn.height));const J=ct(yc,H);if(p.setOpen(!1,J),J.isCanceled){const X=U.current;X!==void 0&&F?.(X,ct(yc,H)),U.current=void 0,B.current?.(),Ee();return}if(p.select("open")){const X=H;Q.request(()=>{if(p.select("open")){const ve=U.current;ve!==void 0&&F?.(ve,ct(yc,X)),U.current=void 0,Ee(),B.current?.()}else U.current=void 0});return}U.current=void 0,ye(!0)}}),Oe=_e.getPointerProps(),Ce=_e.getTouchProps(),Le=_e.reset;B.current=Le,v.useEffect(()=>{const H=k??R;if(!H)return;const oe=H,J=Je(oe),X=Lt(J);function ve(we){if(W.current)return;const be=ne.current,Ne=we.touches[0];if(!Ne||!be)return;const qe=P?Ne.clientY-be.lastY:Ne.clientX-be.lastX;if(wb(we,X)){be.allowSwipe=!1,Bi(be,Ne);return}if(we.touches.length===2){Bi(be,Ne);return}if(Sb(J,oe)||!C||!E||N){Bi(be,Ne);return}if(VM(be,Ne,P)){Bi(be,Ne);return}const Be=be.scrollTarget;if(!Be||Be===J.documentElement||Be===J.body){we.cancelable&&we.preventDefault(),Bi(be,Ne);return}if(!HM(Be,z)){we.cancelable&&we.preventDefault(),Bi(be,Ne);return}const et=qe;if(et!==0){const Xe=BM(Be,z,h,et);be.allowSwipe?we.cancelable&&we.preventDefault():we.cancelable&&Xe?(be.allowSwipe=!0,we.preventDefault()):be.allowSwipe=!1}Bi(be,Ne)}return pt(J,"touchmove",ve,{passive:!1,capture:!0})},[E,N,C,R,P,z,h,k]),v.useEffect(()=>{if(!ie||_e.swiping)return;fe({resolvedProgress:!C||L?0:ce??0,shouldTrackProgress:!0,notifyParent:!1})},[fe,b,L,y,C,ce,ie,_e.swiping,p,T]),v.useEffect(()=>{if(y)return C||y(0),()=>{y(0)}},[y,C]),v.useEffect(()=>{C&&(Le(),Ee())},[Ee,C,Le]),v.useEffect(()=>()=>{T?.set({swipeProgress:0,frontmostHeight:0}),yb(p.context.backdropRef.current,!1),Me()},[Me,p,T]);const Re=v.useMemo(()=>({swiping:_e.swiping,getDragStyles:_e.getDragStyles,swipeStrength:_??null,setSwipeDismissed(H){gb(p.context.popupRef.current,p.context.backdropRef.current,H)}}),[p,_e.getDragStyles,_e.swiping,_]);function Ue(){W.current=!1,ne.current=null,V.current="",Y.current=!1}return D.jsx(k3,{ref:o,className:s,render:l,...no(f,{onPointerDown(H){if(V.current=H.pointerType,Y.current=H.pointerType==="pen",!C||!E||N)return;const oe=Je(H.currentTarget),J=Zc(oe,H.clientX,H.clientY);bh(J)||PM(J)||H.pointerType!=="touch"&&Oe.onPointerDown?.(H)},onPointerMove(H){H.pointerType!=="touch"&&Oe.onPointerMove?.(H)},onPointerUp(H){V.current===H.pointerType&&(V.current=""),H.pointerType!=="touch"&&Oe.onPointerUp?.(H)},onPointerCancel(H){V.current===H.pointerType&&(V.current=""),H.pointerType!=="touch"&&Oe.onPointerCancel?.(H)},onTouchStart(H){if(V.current==="pen"&&Y.current){Y.current=!1,W.current=!1,ne.current=null;return}if(!C||!E||N){W.current=!1,ne.current=null;return}const J=H.touches[0];if(!J)return;if(xb(H)){W.current=!1,ne.current=null;return}const X=Je(H.currentTarget),ve=Zc(X,J.clientX,J.clientY);if(W.current=bh(ve),W.current){ne.current=null;return}const we=k??R,be=Xt(H.nativeEvent),Ne=bt(be)?be:null;if(we&&Ne&&!Ie(we,Ne)){W.current=!0,ne.current=null;return}let qe=null,He=!1;we&&Ne&&(qe=Ms(Ne,we,z),He=Ms(Ne,we,K)!=null);let Be=null;qe&&(Be=FM(qe,z,h)?null:!1),ne.current={startX:J.clientX,startY:J.clientY,lastX:J.clientX,lastY:J.clientY,scrollTarget:qe,hasCrossAxisScrollableContent:He,allowSwipe:Be,preserveNativeCrossAxisScroll:!1},Ce.onTouchStart?.(H)},onTouchMove(H){if(W.current||xb(H))return;const oe=ne.current;oe?.preserveNativeCrossAxisScroll||oe?.allowSwipe===!1||oe?.scrollTarget!=null&&!oe.allowSwipe||Ce.onTouchMove?.(H)},onTouchEnd(H){Ue(),Ce.onTouchEnd?.(H)},onTouchCancel(H){Ue(),Ce.onTouchCancel?.(H)},"data-nested-dialog-open":void 0}),children:D.jsx(ob.Provider,{value:Re,children:u})})});function gb(e,n,o){if(o){e?.setAttribute(Zr.swipeDismiss,""),n?.setAttribute(Zr.swipeDismiss,"");return}e?.removeAttribute(Zr.swipeDismiss),n?.removeAttribute(Zr.swipeDismiss)}function yb(e,n){if(e){if(n){e.setAttribute(Zr.swiping,"");return}e.removeAttribute(Zr.swiping)}}function bh(e){return!!e?.closest(i0)}function PM(e){return!!e?.closest(jM)}function vb(e,n){const o=n==="left"||n==="right"?e.offsetWidth:e.offsetHeight;return Math.max(o*.5,gh)}function bb(e,n){return e instanceof n.HTMLInputElement&&e.type==="range"}function IM(e){return bt(e)?e.tagName==="INPUT"||e.tagName==="TEXTAREA":!1}function UM(e,n){const o=bt(e.anchorNode)?e.anchorNode:e.anchorNode?.parentElement,s=bt(e.focusNode)?e.focusNode:e.focusNode?.parentElement;return e.containsNode(n,!0)||Ie(n,o)||Ie(n,s)}function Sb(e,n){const o=Nn(e);if(!!(o&&Ie(n,o))&&IM(o)){const{selectionStart:c,selectionEnd:u}=o;if(c!=null&&u!=null&&c<u)return!0}const l=e.getSelection?.();return!l||l.isCollapsed?!1:UM(l,n)}function wb(e,n){const o=e.composedPath();return o?o.some(s=>bb(s,n)):bb(Xt(e),n)}function xb(e){return wb(e.nativeEvent,Lt(e.currentTarget))}function Bi(e,n){e.lastX=n.clientX,e.lastY=n.clientY}function VM(e,n,o){if(e.preserveNativeCrossAxisScroll)return!0;if(e.allowSwipe===!0||!e.hasCrossAxisScrollableContent)return!1;const s=o?n.clientY-e.startY:n.clientX-e.startX,l=o?n.clientX-e.startX:n.clientY-e.startY,c=Math.abs(s),u=Math.abs(l);return u<6||u<=c+2?!1:(e.preserveNativeCrossAxisScroll=!0,!0)}function HM(e,n){return n==="vertical"?e.scrollHeight>e.clientHeight:e.scrollWidth>e.clientWidth}function Eb(e,n){if(n==="vertical"){const s=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:s}}const o=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:o}}function FM(e,n,o){const{offset:s,max:l}=Eb(e,n),c=Tb(o,n);return c===null?!1:c?s<=0:s>=l}function BM(e,n,o,s){const{offset:l,max:c}=Eb(e,n),u=Tb(o,n);return u===null||!(u?s>0:s<0)?!1:u?l<=0:l>=c}function Tb(e,n){return n==="vertical"?e==="down"?!0:e==="up"?!1:null:e==="right"?!0:e==="left"?!1:null}const ZM=v.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});function GM(e=!1){const n=v.useContext(ZM);if(!n&&!e)throw new Error(Jt(86));return n}const YM=function(n){const o=hr(),s=n.controlId===void 0?o:n.controlId,[l,c]=v.useState(s),[u,f]=v.useState(n.labelId),[p,h]=v.useState([]),g=vn(()=>new Map),{messageIds:y}=xo(),b=Te((T,C)=>{const E=g.current;if(C===void 0){E.delete(T);return}E.set(T,C),c(L=>{if(E.size===0)return;let j;for(const k of E.values()){if(L!==void 0&&k===L)return L;j===void 0&&(j=k)}return j})}),S=v.useCallback(T=>no({"aria-describedby":y.concat(p).join(" ")||void 0},T),[y,p]),x=v.useMemo(()=>({controlId:l,registerControlId:b,labelId:u,setLabelId:f,messageIds:p,setMessageIds:h,getDescriptionProps:S}),[l,b,u,f,p,h,S]);return D.jsx(Gv.Provider,{value:x,children:n.children})};function Yc(e,n){return{...e,state:{...e.state,valid:!n&&e.state.valid}}}const $c=Object.keys(Fc);function $M(e){if(!e||e.valid||!e.valueMissing)return!1;let n=!1;for(const o of $c)o!=="valid"&&(o==="valueMissing"&&(n=e[o]),e[o]&&(n=!1));return n}function qM(e){const{formRef:n,clearErrors:o}=As(),{setValidityData:s,validate:l,validityData:c,validationDebounceTime:u,invalid:f,markedDirtyRef:p,state:h,name:g,shouldValidateOnChange:y}=e,{controlId:b,getDescriptionProps:S}=xo(),x=ur(),T=v.useRef(null),C=Te(async(j,k=!1)=>{const R=T.current;if(!R)return;if(k){if(h.valid!==!1)return;const ee=R.validity;if(!ee.valueMissing){const I={value:j,state:{...Fc,valid:!0},error:"",errors:[],initialValue:c.initialValue};if(R.setCustomValidity(""),b){const _=n.current.fields.get(b);_&&n.current.fields.set(b,{..._,...Yc(I,!1)})}s(I);return}const F=$c.reduce((I,_)=>(I[_]=ee[_],I),{});if(!F.valid&&!$M(F))return}function N(ee){const F=$c.reduce((_,O)=>(_[O]=ee.validity[O],_),{});let I=!1;for(const _ of $c)if(_!=="valid"){if(_==="valueMissing"&&F[_])I=!0;else if(F[_])return F}return I&&!p.current&&(F.valid=!0,F.valueMissing=!1),F}x.clear();let z=null,P=[];const K=N(R);let G;const q=y();if(R.validationMessage&&!q)G=R.validationMessage,P=[R.validationMessage];else{const ee=Array.from(n.current.fields.values()).reduce((I,_)=>(_.name&&(I[_.name]=_.getValue()),I),{}),F=l(j,ee);typeof F=="object"&&F!==null&&"then"in F?z=await F:z=F,z!==null?(K.valid=!1,K.customError=!0,Array.isArray(z)?(P=z,R.setCustomValidity(z.join(`
18
+ `))):z&&(P=[z],R.setCustomValidity(z))):q&&(R.setCustomValidity(""),K.customError=!1,R.validationMessage?(G=R.validationMessage,P=[R.validationMessage]):R.validity.valid&&!K.valid&&(K.valid=!0))}const te={value:j,state:K,error:G??(Array.isArray(z)?z[0]:z??""),errors:P,initialValue:c.initialValue};if(b){const ee=n.current.fields.get(b);ee&&n.current.fields.set(b,{...ee,...Yc(te,f)})}s(te)}),E=v.useCallback((j={})=>no(S,h.valid===!1?{"aria-invalid":!0}:rn,j),[S,h.valid]),L=v.useCallback((j={})=>no({onChange(k){if(k.nativeEvent.defaultPrevented)return;if(o(g),!y()){C(k.currentTarget.value,!0);return}const R=k.currentTarget;if(R.value===""){C(R.value);return}x.clear(),u?x.start(u,()=>{C(R.value)}):C(R.value)}},E(j)),[E,o,g,x,C,u,y]);return v.useMemo(()=>({getValidationProps:E,getInputValidationProps:L,inputRef:T,commit:C}),[E,L,C])}function XM(e){const{commit:n,invalid:o,markedDirtyRef:s,name:l,setValidityData:c,validityData:u}=e,{formRef:f}=As(),p=v.useRef(null),h=v.useRef(null),g=v.useRef(null),y=Te(()=>{const C=h.current;if(C)return C.getValue?C.getValue():C.value}),b=Te((C=!0)=>{const E=h.current;if(!E)return;let L=E.value;L===void 0&&(L=y()),s.current=!0,C?Cr.flushSync(()=>n(L)):n(L)});function S(){const C=h.current;!C||!C.id||f.current.fields.set(C.id,{getValue:y,name:l,controlRef:C.controlRef??g,validityData:Yc(u,o),validate:b})}function x(C=h.current?.id){C&&f.current.fields.delete(C)}function T(){const C=h.current;if(!C)return;let E=C.value;E===void 0&&(E=y()),u.initialValue===null&&E!==null&&c(L=>({...L,initialValue:E}))}return ke(()=>{const C=h.current;!C||!C.id||f.current.fields.set(C.id,{getValue:y,name:l,controlRef:C.controlRef??g,validityData:Yc(u,o),validate:b})},[f,y,o,l,b,u]),ke(()=>{const C=f.current.fields;return()=>{const E=h.current?.id;E&&C.delete(E)}},[f]),Te((C,E)=>{if(!E){p.current===C&&(p.current=null,x(),h.current=null);return}const L=h.current?.id;p.current=C,h.current=E,L&&L!==E.id&&x(L),T(),S()})}const QM=v.forwardRef(function(n,o){const{errors:s,validationMode:l,submitAttemptedRef:c}=As(),{render:u,className:f,validate:p,validationDebounceTime:h=0,validationMode:g=l,name:y,disabled:b=!1,invalid:S,dirty:x,touched:T,actionsRef:C,style:E,...L}=n,{disabled:j}=GM(),k=Te(p||(()=>null)),R=j||b,[N,z]=v.useState(!1),[P,K]=v.useState(!1),[G,q]=v.useState(!1),[te,ee]=v.useState(!1),F=x??P,I=T??N,_=v.useRef(!1),O=Te(Me=>{x===void 0&&(Me&&(_.current=!0),K(Me))}),U=Te(Me=>{T===void 0&&z(Me)}),B=Te(()=>g==="onChange"||g==="onSubmit"&&c.current),Q=!!y&&Object.hasOwn(s,y)&&s[y]!==void 0,A=S===!0||Q,[V,Y]=v.useState({state:Fc,error:"",errors:[],value:null,initialValue:null}),W=!A&&V.state.valid,ne=v.useMemo(()=>({disabled:R,touched:I,dirty:F,valid:W,filled:G,focused:te}),[R,I,F,W,G,te]),ie=qM({setValidityData:Y,validate:k,validityData:V,validationDebounceTime:h,invalid:A,markedDirtyRef:_,state:ne,name:y,shouldValidateOnChange:B}),ce=v.useCallback(()=>{_.current=!0,ie.commit(V.value)},[ie,V]),de=XM({commit:ie.commit,invalid:A,markedDirtyRef:_,name:y,setValidityData:Y,validityData:V});v.useImperativeHandle(C,()=>({validate:ce}),[ce]);const ye=v.useMemo(()=>({invalid:A,name:y,validityData:V,setValidityData:Y,disabled:R,touched:I,setTouched:U,dirty:F,setDirty:O,filled:G,setFilled:q,focused:te,setFocused:ee,validate:k,validationMode:g,validationDebounceTime:h,shouldValidateOnChange:B,state:ne,markedDirtyRef:_,registerFieldControl:de,validation:ie}),[A,y,V,R,I,U,F,O,G,q,te,ee,k,g,h,B,ne,de,ie]),Ee=At("div",n,{ref:o,state:ne,props:L,stateAttributesMapping:Hi});return D.jsx(Bv.Provider,{value:ye,children:Ee})}),$a=v.forwardRef(function(n,o){return D.jsx(YM,{children:D.jsx(QM,{...n,ref:o})})}),Cb=v.forwardRef(function(n,o){const{render:s,className:l,style:c,id:u,nativeLabel:f=!0,...p}=n,h=Fi(!1),{labelId:g}=xo(),y=v.useRef(null),b=tM({id:g??u,native:f});return At("label",n,{ref:[o,y],state:h.state,props:[b,p],stateAttributesMapping:Hi})}),KM={...Hi,...Or},Sh=v.forwardRef(function(n,o){const{render:s,id:l,className:c,match:u,style:f,...p}=n,h=hr(l),{validityData:g,state:y,name:b}=Fi(!1),{setMessageIds:S}=xo(),{errors:x}=As(),T=b?x[b]:null,C=typeof u=="string";let E=!1;u===!0?E=!0:C?E=!!g.state[u]:E=!!T||g.state.valid===!1;const{mounted:L,transitionStatus:j,setMounted:k}=Va(E);ke(()=>{if(!(!E||!h))return S(I=>I.concat(h)),()=>{S(I=>I.filter(_=>_!==h))}},[E,h,S]);const R=v.useRef(null),[N,z]=v.useState(null),[P,K]=v.useState(null),G=g.errors.length>1?D.jsx("ul",{children:g.errors.map(I=>D.jsx("li",{children:I},I))}):g.error,q=C?G:T||G;let te=g.error;T!=null?te=Array.isArray(T)?JSON.stringify(T):T:g.errors.length>1&&(te=JSON.stringify(g.errors)),E&&te!==P&&(K(te),z(q)),ro({open:E,ref:R,onComplete(){E||k(!1)}});const ee={...y,transitionStatus:j},F=At("div",n,{ref:[o,R],state:ee,props:[{id:h,children:E?q:N},p],stateAttributesMapping:KM,enabled:L});return L?F:null}),wh=v.forwardRef(function(n,o){const{render:s,className:l,id:c,name:u,value:f,disabled:p=!1,onValueChange:h,defaultValue:g,autoFocus:y=!1,style:b,...S}=n,{state:x,name:T,disabled:C,setTouched:E,setDirty:L,validityData:j,setFocused:k,setFilled:R,validationMode:N,validation:z}=Fi(),P=C||p,K=T??u,G={...x,disabled:P},{labelId:q}=xo(),te=dh({id:c});ke(()=>{const B=f!=null;z.inputRef.current?.value||B&&f!==""?R(!0):B&&f===""&&R(!1)},[z.inputRef,R,f]);const ee=v.useRef(null);ke(()=>{y&&ee.current===Nn(Je(ee.current))&&k(!0)},[y,k]);const[F]=Za({controlled:f,default:g,name:"FieldControl",state:"value"}),I=f!==void 0,_=I?F:void 0,O=Te(()=>z.inputRef.current?.value);return fh(z.inputRef,{id:te,value:_,getValue:O}),At("input",n,{ref:[o,ee],state:G,props:[{id:te,disabled:P,name:K,ref:z.inputRef,"aria-labelledby":q,autoFocus:y,...I?{value:_}:{defaultValue:g},onChange(B){const Q=B.currentTarget.value;h?.(Q,ct(ji,B.nativeEvent)),L(Q!==j.initialValue),R(Q!=="")},onFocus(){k(!0)},onBlur(B){E(!0),k(!1),N==="onBlur"&&z.commit(B.currentTarget.value)},onKeyDown(B){B.currentTarget.tagName==="INPUT"&&B.key==="Enter"&&(E(!0),z.commit(B.currentTarget.value))}},z.getInputValidationProps(),S],stateAttributesMapping:Hi})}),qc=v.forwardRef(function(n,o){const{render:s,className:l,validationMode:c="onSubmit",errors:u,onSubmit:f,onFormSubmit:p,actionsRef:h,style:g,...y}=n,b=v.useRef({fields:new Map}),S=v.useRef(!1),x=v.useRef(!1),T=Te(N=>{N&&(N.focus(),N.tagName==="INPUT"&&N.select())}),[C,E]=v.useState(u);Hc(u,()=>{E(u)}),v.useEffect(()=>{if(!S.current)return;S.current=!1;const N=Array.from(b.current.fields.values()).filter(z=>z.validityData.state.valid===!1);N.length&&T(N[0].controlRef.current)},[C,T]);const L=v.useCallback(N=>{const z=Array.from(b.current.fields.values());if(N){const P=z.find(K=>K.name===N);P&&P.validate(!1)}else z.forEach(P=>{P.validate(!1)})},[]);v.useImperativeHandle(h,()=>({validate:L}),[L]);const j=At("form",n,{ref:o,props:[{noValidate:!0,onSubmit(N){x.current=!0;let z=Array.from(b.current.fields.values());z.forEach(K=>{K.validate()}),z=Array.from(b.current.fields.values());const P=z.filter(K=>!K.validityData.state.valid);if(P.length)N.preventDefault(),T(P[0].controlRef.current);else if(S.current=!0,f?.(N),p){N.preventDefault();const K=z.reduce((G,q)=>(q.name&&(G[q.name]=q.getValue()),G),{});p(K,S_(ji,N.nativeEvent))}}},y]}),k=Te(N=>{if(N&&C&&rn.hasOwnProperty.call(C,N)){const z={...C};delete z[N],E(z)}}),R=v.useMemo(()=>({formRef:b,validationMode:c,errors:C??rn,clearErrors:k,submitAttemptedRef:x}),[b,c,C,k]);return D.jsx(Zv.Provider,{value:R,children:j})}),Rb=v.createContext(void 0);function To(e){const n=v.useContext(Rb);if(n===void 0&&!e)throw new Error(Jt(47));return n}function WM(){return{...Y0(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}const JM={...$0,disabled:Ae(e=>e.disabled),instantType:Ae(e=>e.instantType),openMethod:Ae(e=>e.openMethod),openChangeReason:Ae(e=>e.openChangeReason),modal:Ae(e=>e.modal),focusManagerModal:Ae(e=>e.focusManagerModal),stickIfOpen:Ae(e=>e.stickIfOpen),titleElementId:Ae(e=>e.titleElementId),descriptionElementId:Ae(e=>e.descriptionElementId),openOnHover:Ae(e=>e.openOnHover),closeDelay:Ae(e=>e.closeDelay),hasViewport:Ae(e=>e.hasViewport)};class xh extends Jl{constructor(n){const o={...WM(),...n};o.open&&n?.mounted===void 0&&(o.mounted=!0),super(o,{popupRef:v.createRef(),backdropRef:v.createRef(),internalBackdropRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:v.createRef(),beforeContentFocusGuardRef:v.createRef(),stickIfOpenTimeout:new cr,triggerElements:new Cc},JM)}setOpen=(n,o)=>{const s=o.reason===Yn,l=o.reason===Ts&&o.event.detail===0,c=!n&&(o.reason===f0||o.reason==null);if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(n,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,o);const u=()=>{const f={open:n,openChangeReason:o.reason},p=o.trigger?.id??null;(p||n)&&(f.activeTriggerId=p,f.activeTriggerElement=o.trigger??null),this.update(f)};s?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(qO,()=>{this.set("stickIfOpen",!1)}),Cr.flushSync(u)):u(),l||c?this.set("instantType",l?"click":"dismiss"):o.reason===Li?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(n,o){const s=vn(()=>new xh(o)).current,l=n??s;return _a(s.disposeEffect),l}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}function Ob({props:e}){const{children:n,open:o,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:c,modal:u=!1,handle:f,triggerId:p,defaultTriggerId:h=null}=e,g=xh.useStore(f?.store,{modal:u,open:s,openProp:o,activeTriggerId:h,triggerIdProp:p});eh(()=>{o===void 0&&g.state.open===!1&&s===!0&&g.update({open:!0,activeTriggerId:h})}),g.useControlledProp("openProp",o),g.useControlledProp("triggerIdProp",p);const y=g.useState("open"),b=g.useState("payload");g.useContextCallback("onOpenChange",l),g.useContextCallback("onOpenChangeComplete",c);const{openMethod:S,triggerProps:x}=th(y);Z0(g);const{forceUnmount:T}=G0(y,g,()=>{g.update({stickIfOpen:!0,openChangeReason:null})});v.useEffect(()=>{y||g.context.stickIfOpenTimeout.clear()},[g,y]);const C=v.useCallback(()=>{g.setOpen(!1,ct(d0))},[g]);v.useImperativeHandle(e.actionsRef,()=>({unmount:T,close:C}),[T,C]);const E=X0({popupStore:g,onOpenChange:g.setOpen}),L=Gd(E,{outsidePressEvent:{mouse:u==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),j=J0(E),{getReferenceProps:k,getFloatingProps:R,getTriggerProps:N}=Ha([L,j]),z=v.useMemo(()=>k(x),[k,x]),P=v.useMemo(()=>N(x),[N,x]),K=v.useMemo(()=>R(),[R]);g.useSyncedValues({modal:u,openMethod:S,activeTriggerProps:z,inactiveTriggerProps:P,popupProps:K,floatingRootContext:E,nested:ei()!=null});const G=v.useMemo(()=>({store:g}),[g]);return D.jsx(Rb.Provider,{value:G,children:typeof n=="function"?n({payload:b}):n})}function e4(e){return To(!0)?D.jsx(Ob,{props:e}):D.jsx(__,{children:D.jsx(Ob,{props:e})})}const t4=300,n4=v.forwardRef(function(n,o){const{render:s,className:l,disabled:c=!1,nativeButton:u=!0,handle:f,payload:p,openOnHover:h=!1,delay:g=t4,closeDelay:y=0,id:b,style:S,...x}=n,T=To(!0),C=f?.store??T?.store;if(!C)throw new Error(Jt(74));const E=hr(b),L=C.useState("isTriggerActive",E),j=C.useState("floatingRootContext"),k=C.useState("isOpenedByTrigger",E),R=v.useRef(null),{registerTrigger:N,isMountedByThisTrigger:z}=B0(E,R,C,{payload:p,disabled:c,openOnHover:h,closeDelay:y}),P=C.useState("openChangeReason"),K=C.useState("stickIfOpen"),G=C.useState("openMethod"),q=C.useState("focusManagerModal"),te=OA(j,{enabled:j!=null&&h&&(G!=="touch"||P!==Ts),mouseOnly:!0,move:!1,handleClose:LA(),restMs:g,delay:{close:y},triggerElementRef:R,isActiveTrigger:L,isClosing:()=>C.select("transitionStatus")==="ending"}),ee=Zd(j,{enabled:j!=null,stickIfOpen:K}),F=Ha([ee]),I=C.useState("triggerProps",z),_={disabled:c,open:k},{getButtonProps:O,buttonRef:U}=Es({disabled:c,native:u}),B=v.useMemo(()=>({open(W){return W&&P===Ts?av.open(W):sv.open(W)}}),[P]),Q=At("button",n,{state:_,ref:[U,o,N,R],props:[F.getReferenceProps(),te,I,{[Dd]:"",id:E},x,O],stateAttributesMapping:B}),{preFocusGuardRef:A,handlePreFocusGuardFocus:V,handleFocusTargetFocus:Y}=oM(C,R);return L&&!q?D.jsxs(v.Fragment,{children:[D.jsx(bo,{ref:A,onFocus:V}),D.jsx(v.Fragment,{children:Q},E),D.jsx(bo,{ref:C.context.triggerFocusTargetRef,onFocus:Y})]}):D.jsx(v.Fragment,{children:Q},E)}),_b=v.createContext(void 0);function r4(){const e=v.useContext(_b);if(e===void 0)throw new Error(Jt(45));return e}const o4=v.forwardRef(function(n,o){const{keepMounted:s=!1,...l}=n,{store:c}=To();return c.useState("mounted")||s?D.jsx(_b.Provider,{value:s,children:D.jsx(Hd,{ref:o,...l})}):null}),Ab=v.createContext(void 0);function Mb(){const e=v.useContext(Ab);if(!e)throw new Error(Jt(46));return e}const i4=v.forwardRef(function(n,o){const{render:s,className:l,anchor:c,positionMethod:u="absolute",side:f="bottom",align:p="center",sideOffset:h=0,alignOffset:g=0,collisionBoundary:y="clipping-ancestors",collisionPadding:b=5,arrowPadding:S=5,sticky:x=!1,disableAnchorTracking:T=!1,collisionAvoidance:C=e_,style:E,...L}=n,{store:j}=To(),k=r4(),R=R_(),N=j.useState("floatingRootContext"),z=j.useState("mounted"),P=j.useState("open"),K=j.useState("openChangeReason"),G=j.useState("activeTriggerElement"),q=j.useState("modal"),te=j.useState("openMethod"),ee=j.useState("positionerElement"),F=j.useState("instantType"),I=j.useState("transitionStatus"),_=j.useState("hasViewport"),O=v.useRef(null),U=o0(ee,!1,!1),B=ov({anchor:c,floatingRootContext:N,positionMethod:u,mounted:z,side:f,sideOffset:h,align:p,alignOffset:g,arrowPadding:S,collisionBoundary:y,collisionPadding:b,sticky:x,disableAnchorTracking:T,keepMounted:k,nodeId:R,collisionAvoidance:C,adaptiveOrigin:_?FA:void 0}),Q=N.useState("domReferenceElement");ke(()=>{const W=Q,ne=O.current;if(W&&(O.current=W),ne&&W&&W!==ne){j.set("instantType",void 0);const ie=new AbortController;return U(()=>{j.set("instantType","trigger-change")},ie.signal),()=>{ie.abort()}}},[Q,U,j]);const A={open:P,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:F};Yv(P&&q===!0&&K!==Yn,te==="touch",ee,G);const V=v.useCallback(W=>{j.set("positionerElement",W)},[j]),Y=lv(n,A,{styles:B.positionerStyles,transitionStatus:I,props:L,refs:[o,V],hidden:!z,inert:!P});return D.jsxs(Ab.Provider,{value:B,children:[z&&q===!0&&K!==Yn&&D.jsx(sh,{ref:j.context.internalBackdropRef,inert:gc(!P),cutout:G}),D.jsx(O_,{id:R,children:Y})]})}),s4=v.createContext(void 0);function a4(){const[e,n]=v.useState(0),o=Te(()=>(n(l=>l+1),()=>{n(l=>Math.max(0,l-1))}));return{context:v.useMemo(()=>({register:o}),[o]),hasClosePart:e>0}}function l4(e){const{value:n,children:o}=e;return D.jsx(s4.Provider,{value:n,children:o})}const c4={...oo,...Or},u4=v.forwardRef(function(n,o){const{className:s,render:l,initialFocus:c,finalFocus:u,style:f,...p}=n,{store:h}=To(),g=Mb(),y=Wv()!=null,{context:b,hasClosePart:S}=a4(),x=h.useState("open"),T=h.useState("openMethod"),C=h.useState("instantType"),E=h.useState("transitionStatus"),L=h.useState("popupProps"),j=h.useState("titleElementId"),k=h.useState("descriptionElementId"),R=h.useState("modal"),N=h.useState("mounted"),z=h.useState("openChangeReason"),P=h.useState("activeTriggerElement"),K=h.useState("floatingRootContext");ro({open:x,ref:h.context.popupRef,onComplete(){x&&h.context.onOpenChangeComplete?.(!0)}});const G=h.useState("disabled"),q=h.useState("openOnHover"),te=h.useState("closeDelay");CA(K,{enabled:q&&!G,closeDelay:te});function ee(B){return B==="touch"?h.context.popupRef.current:!0}const F=c===void 0?ee:c,I={open:x,side:g.side,align:g.align,instant:C,transitionStatus:E},_=R!==!1&&S;h.useSyncedValue("focusManagerModal",_);const O=v.useCallback(B=>{h.set("popupElement",B)},[h]),U=At("div",n,{state:I,ref:[o,h.context.popupRef,O],props:[L,{"aria-labelledby":j,"aria-describedby":k,onKeyDown(B){y&&Vc.has(B.key)&&B.stopPropagation()}},Jd(E),p],stateAttributesMapping:c4});return D.jsx(wc,{context:K,openInteractionType:T,modal:_,disabled:!N||z===Yn,initialFocus:F,returnFocus:u,restoreFocus:"popup",previousFocusableElement:Zt(P)?P:void 0,nextFocusableElement:h.context.triggerFocusTargetRef,beforeContentFocusGuardRef:h.context.beforeContentFocusGuardRef,children:D.jsx(l4,{value:b,children:U})})}),f4=v.forwardRef(function(n,o){const{className:s,render:l,style:c,...u}=n,{store:f}=To(),p=f.useState("open"),{arrowRef:h,side:g,align:y,arrowUncentered:b,arrowStyles:S}=Mb();return At("div",n,{state:{open:p,side:g,align:y,uncentered:b},ref:[o,h],props:[{style:S,"aria-hidden":!0},u],stateAttributesMapping:oo})}),d4={...oo,...Or},h4=v.forwardRef(function(n,o){const{className:s,render:l,style:c,...u}=n,{store:f}=To(),p=f.useState("open"),h=f.useState("mounted"),g=f.useState("transitionStatus"),y=f.useState("openChangeReason");return At("div",n,{state:{open:p,transitionStatus:g},ref:[f.context.backdropRef,o],props:[{role:"presentation",hidden:!h,style:{pointerEvents:y===Yn?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},u],stateAttributesMapping:d4})}),p4=v.forwardRef(function(n,o){const{render:s,className:l,style:c,...u}=n,{store:f}=To(),p=hr(u.id);return ke(()=>(f.set("titleElementId",p),()=>{f.set("titleElementId",void 0)}),[f,p]),At("h2",n,{ref:o,props:[{id:p},u]})}),m4=v.forwardRef(function(n,o){const{render:s,className:l,style:c,...u}=n,{store:f}=To(),p=hr(u.id);return ke(()=>(f.set("descriptionElementId",p),()=>{f.set("descriptionElementId",void 0)}),[f,p]),At("p",n,{ref:o,props:[{id:p},u]})}),Xc="base-ui-disable-scrollbar",Db={className:Xc,getElement(e){return D.jsx("style",{nonce:e,href:Xc,precedence:"base-ui:low",children:`.${Xc}{scrollbar-width:none}.${Xc}::-webkit-scrollbar{display:none}`})}},Co=1;function zb(e,n){return Math.max(0,e-n)}function g4(e,n){if(n<=0)return 0;const o=hn(e,0,n),s=o,l=n-o,c=s<=Co,u=l<=Co;return c&&u?s<=l?0:n:c?0:u?n:o}const Nb=v.createContext(null),kb=v.createContext(null);function Ds(){const e=v.useContext(Nb);if(e===null)throw new Error(Jt(60));return e}function jb(){const e=v.useContext(kb);if(e===null)throw new Error(Jt(61));return e}const wt={id:Ae(e=>e.id),labelId:Ae(e=>e.labelId),modal:Ae(e=>e.modal),multiple:Ae(e=>e.multiple),items:Ae(e=>e.items),itemToStringLabel:Ae(e=>e.itemToStringLabel),itemToStringValue:Ae(e=>e.itemToStringValue),isItemEqualToValue:Ae(e=>e.isItemEqualToValue),value:Ae(e=>e.value),hasSelectedValue:Ae(e=>{const{value:n,multiple:o,itemToStringValue:s}=e;return n==null?!1:o&&Array.isArray(n)?n.length>0:_s(n,s)!==""}),hasNullItemLabel:Ae((e,n)=>n?U3(e.items):!1),open:Ae(e=>e.open),mounted:Ae(e=>e.mounted),forceMount:Ae(e=>e.forceMount),transitionStatus:Ae(e=>e.transitionStatus),openMethod:Ae(e=>e.openMethod),activeIndex:Ae(e=>e.activeIndex),selectedIndex:Ae(e=>e.selectedIndex),isActive:Ae((e,n)=>e.activeIndex===n),isSelected:Ae((e,n,o)=>{const s=e.isItemEqualToValue,l=e.value;return e.multiple?Array.isArray(l)&&l.some(c=>Os(o,c,s)):e.selectedIndex===n&&e.selectedIndex!==null?!0:Os(o,l,s)}),isSelectedByFocus:Ae((e,n)=>e.selectedIndex===n),popupProps:Ae(e=>e.popupProps),triggerProps:Ae(e=>e.triggerProps),triggerElement:Ae(e=>e.triggerElement),positionerElement:Ae(e=>e.positionerElement),listElement:Ae(e=>e.listElement),scrollUpArrowVisible:Ae(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:Ae(e=>e.scrollDownArrowVisible),hasScrollArrows:Ae(e=>e.hasScrollArrows)};function y4(e){const{id:n,value:o,defaultValue:s=null,onValueChange:l,open:c,defaultOpen:u=!1,onOpenChange:f,name:p,form:h,autoComplete:g,disabled:y=!1,readOnly:b=!1,required:S=!1,modal:x=!0,actionsRef:T,inputRef:C,onOpenChangeComplete:E,items:L,multiple:j=!1,itemToStringLabel:k,itemToStringValue:R,isItemEqualToValue:N=j3,highlightItemOnHover:z=!0,children:P}=e,{clearErrors:K}=As(),{setDirty:G,setTouched:q,setFocused:te,shouldValidateOnChange:ee,validityData:F,setFilled:I,name:_,disabled:O,validation:U,validationMode:B}=Fi(),Q=dh({id:n}),A=O||y,V=_??p,[Y,W]=Za({controlled:o,default:j?s??yy:s,name:"Select",state:"value"}),[ne,ie]=Za({controlled:c,default:u,name:"Select",state:"open"}),ce=v.useRef([]),de=v.useRef([]),ye=v.useRef(null),Ee=v.useRef(null),Me=v.useRef(0),fe=v.useRef(null),ze=v.useRef([]),De=v.useRef(!1),_e=v.useRef(!1),Oe=v.useRef(null),Ce=v.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Le=v.useRef(!1),{mounted:Re,setMounted:Ue,transitionStatus:H}=Va(ne),{openMethod:oe,triggerProps:J}=th(ne),X=vn(()=>new gy({id:Q,labelId:void 0,modal:x,multiple:j,itemToStringLabel:k,itemToStringValue:R,isItemEqualToValue:N,value:Y,open:ne,mounted:Re,transitionStatus:H,items:L,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ve=St(X,wt.activeIndex),we=St(X,wt.selectedIndex),be=St(X,wt.triggerElement),Ne=St(X,wt.positionerElement),qe=iM(oe),He=oe??qe,Be=v.useMemo(()=>j&&Array.isArray(Y)&&Y.length===0?"":_s(Y,R),[j,Y,R]),$e=v.useMemo(()=>j&&Array.isArray(Y)?Y.map(Ge=>_s(Ge,R)):_s(Y,R),[j,Y,R]),et=dn(X.state.triggerElement),Xe=Te(()=>$e);fh(et,{id:Q,value:Y,getValue:Xe});const We=v.useRef(Y);ke(()=>{Y!==We.current&&X.set("forceMount",!0)},[X,Y]),ke(()=>{I(j?Array.isArray(Y)&&Y.length>0:Y!=null)},[j,Y,I]),ke(function(){if(ne)return;const Fe=ze.current;if(j){const nt=Array.isArray(Y)?Y:[];if(nt.length===0){X.set("selectedIndex",null);return}const ht=nt[nt.length-1],Qe=Ga(Fe,ht,N);X.set("selectedIndex",Qe===-1?null:Qe);return}const tt=Ga(Fe,Y,N);X.set("selectedIndex",tt===-1?null:tt)},[j,ne,Y,ze,N,X]),Hc(Y,()=>{K(V),G(Y!==F.initialValue),ee()?U.commit(Y):U.commit(Y,!0)});const dt=Te((Ge,Fe)=>{if(f?.(Ge,Fe),!Fe.isCanceled&&(ie(Ge),!Ge&&(Fe.reason===Li||Fe.reason===kd)&&(q(!0),te(!1),B==="onBlur"&&U.commit(Y)),!Ge&&X.state.activeIndex!==null)){const tt=ce.current[X.state.activeIndex];queueMicrotask(()=>{tt?.setAttribute("tabindex","-1")})}}),jt=Te(()=>{Ue(!1),X.update({activeIndex:null,openMethod:null}),E?.(!1)});ro({enabled:!T,open:ne,ref:ye,onComplete(){ne||jt()}}),v.useImperativeHandle(T,()=>({unmount:jt}),[jt]);const rt=Te((Ge,Fe)=>{l?.(Ge,Fe),!Fe.isCanceled&&W(Ge)}),Ze=Te(()=>{const Ge=X.state.listElement||ye.current;if(!Ge)return;const Fe=zb(Ge.scrollHeight,Ge.clientHeight),tt=g4(Ge.scrollTop,Fe),nt=tt>0,ht=tt<Fe;X.state.scrollUpArrowVisible!==nt&&X.set("scrollUpArrowVisible",nt),X.state.scrollDownArrowVisible!==ht&&X.set("scrollDownArrowVisible",ht)}),st=q0({open:ne,onOpenChange:dt,elements:{reference:be,floating:Ne}}),ut=Zd(st,{enabled:!b&&!A,event:"mousedown"}),zt=Gd(st,{bubbles:!1}),mt=DA(st,{enabled:!b&&!A,listRef:ce,activeIndex:ve,selectedIndex:we,disabledIndices:yy,onNavigate(Ge){Ge===null&&!ne||X.set("activeIndex",Ge)},focusItemOnHover:z}),wn=NA(st,{enabled:!b&&!A&&(ne||!j),listRef:de,activeIndex:ve,selectedIndex:we,onMatch(Ge){ne?X.set("activeIndex",Ge):rt(ze.current[Ge],ct("none"))},onTypingChange(Ge){De.current=Ge}}),{getReferenceProps:cn,getFloatingProps:Rt,getItemProps:he}=Ha([ut,zt,mt,wn]),xe=v.useMemo(()=>no(cn(),J,Q?{id:Q}:rn),[cn,J,Q]);eh(()=>{X.update({popupProps:Rt(),triggerProps:xe})}),ke(()=>{X.update({id:Q,modal:x,multiple:j,value:Y,open:ne,mounted:Re,transitionStatus:H,popupProps:Rt(),triggerProps:xe,items:L,itemToStringLabel:k,itemToStringValue:R,isItemEqualToValue:N,openMethod:He})},[X,Q,x,j,Y,ne,Re,H,Rt,xe,L,k,R,N,He]);const je=v.useMemo(()=>({store:X,name:V,required:S,disabled:A,readOnly:b,multiple:j,highlightItemOnHover:z,setValue:rt,setOpen:dt,listRef:ce,popupRef:ye,scrollHandlerRef:Ee,handleScrollArrowVisibility:Ze,scrollArrowsMountedCountRef:Me,getItemProps:he,events:st.context.events,valueRef:fe,valuesRef:ze,labelsRef:de,typingRef:De,selectionRef:Ce,selectedItemTextRef:Oe,validation:U,onOpenChangeComplete:E,keyboardActiveRef:_e,alignItemWithTriggerActiveRef:Le,initialValueRef:We}),[X,V,S,A,b,j,z,rt,dt,he,st.context.events,U,E,Ze]),at=zi(C,U.inputRef),ft=j&&Array.isArray(Y)&&Y.length>0,ot=j?void 0:V,_t=v.useMemo(()=>!j||!Array.isArray(Y)||!V?null:Y.map(Ge=>{const Fe=_s(Ge,R);return D.jsx("input",{type:"hidden",form:h,name:V,value:Fe},Fe)}),[j,Y,h,V,R]);return D.jsx(Nb.Provider,{value:je,children:D.jsxs(kb.Provider,{value:st,children:[P,D.jsx("input",{...U.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(Ge){if(Ge.nativeEvent.defaultPrevented)return;const Fe=Ge.currentTarget.value,tt=ct(ji,Ge.nativeEvent);function nt(){if(j)return;const ht=ze.current.find(Qe=>_s(Qe,R).toLowerCase()===Fe.toLowerCase()||V3(Qe,k).toLowerCase()===Fe.toLowerCase());ht!=null&&(G(ht!==F.initialValue),rt(ht,tt),ee()&&U.commit(ht))}X.set("forceMount",!0),queueMicrotask(nt)}}),id:Q&&ot==null?`${Q}-hidden-input`:void 0,form:h,name:ot,autoComplete:g,value:Be,disabled:A,required:S&&!ft,readOnly:b,ref:at,style:V?qy:hc,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),_t]})})}const Qc=2,v4=400,Lb=200,b4={...av,...Hi,value:()=>null},S4=v.forwardRef(function(n,o){const{render:s,className:l,id:c,disabled:u=!1,nativeButton:f=!0,style:p,...h}=n,{setTouched:g,setFocused:y,validationMode:b,state:S,disabled:x}=Fi(),{labelId:T}=xo(),{store:C,setOpen:E,selectionRef:L,validation:j,readOnly:k,required:R,alignItemWithTriggerActiveRef:N,disabled:z,keyboardActiveRef:P}=Ds(),K=x||z||u,G=St(C,wt.open),q=St(C,wt.value),te=St(C,wt.triggerProps),ee=St(C,wt.positionerElement),F=St(C,wt.listElement),I=St(C,wt.id),_=St(C,wt.labelId),O=St(C,wt.hasSelectedValue),U=!O&&G,B=St(C,wt.hasNullItemLabel,U),Q=c??I,A=B3(T,_);dh({id:Q});const V=dn(ee),Y=v.useRef(null),{getButtonProps:W,buttonRef:ne}=Es({disabled:K,native:f}),ie=Te(_e=>{C.set("triggerElement",_e)}),ce=zi(o,Y,ne,ie),de=ur(),ye=ur(),Ee=ur(),Me=ur();v.useEffect(()=>{if(G)return!(O||B)?Ee.start(v4,()=>{L.current.allowUnselectedMouseUp=!0,L.current.allowSelectedMouseUp=!0}):Me.start(Lb,()=>{L.current.allowUnselectedMouseUp=!0,Ee.start(Lb,()=>{L.current.allowSelectedMouseUp=!0})}),()=>{Ee.clear(),Me.clear()};L.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},ye.clear()},[G,O,B,L,ye,Ee,Me]);const fe=v.useMemo(()=>F?.id??Na(ee)?.id,[F,ee]),ze=no(te,{id:Q,role:"combobox","aria-expanded":G?"true":"false","aria-haspopup":"listbox","aria-controls":G?fe:void 0,"aria-labelledby":A,"aria-readonly":k||void 0,"aria-required":R||void 0,tabIndex:K?-1:0,ref:ce,onFocus(_e){y(!0),G&&N.current&&E(!1,ct(ji,_e.nativeEvent)),de.start(0,()=>{C.set("forceMount",!0)})},onBlur(_e){Ie(ee,_e.relatedTarget)||(g(!0),y(!1),b==="onBlur"&&j.commit(q))},onPointerMove(){P.current=!1},onKeyDown(){P.current=!0},onMouseDown(_e){if(G)return;const Oe=Je(_e.currentTarget);function Ce(Le){if(!Y.current)return;const Re=Le.target;if(Ie(Y.current,Re)||Ie(V.current,Re)||Re===Y.current)return;const Ue=F3(Y.current);Le.clientX>=Ue.left-Qc&&Le.clientX<=Ue.right+Qc&&Le.clientY>=Ue.top-Qc&&Le.clientY<=Ue.bottom+Qc||E(!1,ct(v_,Le))}ye.start(0,()=>{Oe.addEventListener("mouseup",Ce,{once:!0})})}},j.getValidationProps,h,W);ze.role="combobox";const De={...S,open:G,disabled:K,value:q,readOnly:k,placeholder:!O};return At("button",n,{ref:[o,Y],state:De,stateAttributesMapping:b4,props:ze})}),w4=v.createContext(void 0),x4=v.forwardRef(function(n,o){const{store:s}=Ds(),l=St(s,wt.mounted),c=St(s,wt.forceMount);return l||c?D.jsx(w4.Provider,{value:!0,children:D.jsx(Hd,{ref:o,...n})}):null}),Pb=v.createContext(void 0);function E4(){const e=v.useContext(Pb);if(!e)throw new Error(Jt(59));return e}function Kc(e,n){e&&Object.assign(e.style,n)}const T4={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},C4={position:"fixed"},R4=v.forwardRef(function(n,o){const{anchor:s,positionMethod:l="absolute",className:c,render:u,side:f="bottom",align:p="center",sideOffset:h=0,alignOffset:g=0,collisionBoundary:y="clipping-ancestors",collisionPadding:b,arrowPadding:S=5,sticky:x=!1,disableAnchorTracking:T,alignItemWithTrigger:C=!0,collisionAvoidance:E=JO,style:L,...j}=n,{store:k,listRef:R,labelsRef:N,alignItemWithTriggerActiveRef:z,selectedItemTextRef:P,valuesRef:K,initialValueRef:G,popupRef:q,setValue:te}=Ds(),ee=jb(),F=St(k,wt.open),I=St(k,wt.mounted),_=St(k,wt.modal),O=St(k,wt.value),U=St(k,wt.openMethod),B=St(k,wt.positionerElement),Q=St(k,wt.triggerElement),A=St(k,wt.isItemEqualToValue),V=St(k,wt.transitionStatus),Y=v.useRef(null),W=v.useRef(null),[ne,ie]=v.useState(C),ce=I&&ne&&U!=="touch";!I&&ne!==C&&ie(C),ke(()=>{I||(wt.scrollUpArrowVisible(k.state)&&k.set("scrollUpArrowVisible",!1),wt.scrollDownArrowVisible(k.state)&&k.set("scrollDownArrowVisible",!1))},[k,I]),v.useImperativeHandle(z,()=>ce),Yv((ce||_)&&F,U==="touch",B,Q);const de=ov({anchor:s,floatingRootContext:ee,positionMethod:l,mounted:I,side:f,sideOffset:h,align:p,alignOffset:g,arrowPadding:S,collisionBoundary:y,collisionPadding:b,sticky:x,disableAnchorTracking:T??ce,collisionAvoidance:E,keepMounted:!0}),ye=ce?"none":de.side,Ee=ce?C4:de.positionerStyles,Me={open:F,side:ye,align:de.align,anchorHidden:de.anchorHidden},fe=Te(Ce=>{k.set("positionerElement",Ce)}),ze=lv(n,Me,{styles:Ee,transitionStatus:V,props:j,refs:[o,fe],hidden:!I,inert:!F}),De=v.useRef(0),_e=Te(Ce=>{if(Ce.size===0&&De.current===0||K.current.length===0)return;const Le=De.current;if(De.current=Ce.size,Ce.size===Le)return;const Re=ct(ji);if(Le!==0&&!k.state.multiple&&O!==null&&Ga(K.current,O,A)===-1){const H=G.current,J=H!=null&&Ga(K.current,H,A)!==-1?H:null;te(J,Re),J===null&&(k.set("selectedIndex",null),P.current=null)}if(Le!==0&&k.state.multiple&&Array.isArray(O)){const Ue=oe=>Ga(K.current,oe,A)!==-1,H=O.filter(oe=>Ue(oe));(H.length!==O.length||H.some(oe=>!L3(O,oe,A)))&&(te(H,Re),H.length===0&&(k.set("selectedIndex",null),P.current=null))}if(F&&ce){k.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Ue={height:""};Kc(B,Ue),Kc(q.current,Ue)}}),Oe=v.useMemo(()=>({...de,side:ye,alignItemWithTriggerActive:ce,setControlledAlignItemWithTrigger:ie,scrollUpArrowRef:Y,scrollDownArrowRef:W}),[de,ye,ce,ie]);return D.jsx(f3,{elementsRef:R,labelsRef:N,onMapChange:_e,children:D.jsxs(Pb.Provider,{value:Oe,children:[I&&_&&D.jsx(sh,{inert:gc(!F),cutout:Q}),ze]})})}),O4={...oo,...Or},_4=v.forwardRef(function(n,o){const{render:s,className:l,style:c,finalFocus:u,...f}=n,{store:p,popupRef:h,onOpenChangeComplete:g,setOpen:y,valueRef:b,selectedItemTextRef:S,keyboardActiveRef:x,multiple:T,handleScrollArrowVisibility:C,scrollHandlerRef:E,listRef:L,highlightItemOnHover:j}=Ds(),{side:k,align:R,alignItemWithTriggerActive:N,isPositioned:z,setControlledAlignItemWithTrigger:P,scrollDownArrowRef:K,scrollUpArrowRef:G}=E4(),q=Wv()!=null,te=jb(),ee=tv(),{nonce:F,disableStyleElements:I}=lM(),_=St(p,wt.id),O=St(p,wt.open),U=St(p,wt.mounted),B=St(p,wt.popupProps),Q=St(p,wt.transitionStatus),A=St(p,wt.triggerElement),V=St(p,wt.positionerElement),Y=St(p,wt.listElement),W=v.useRef(!1),ne=v.useRef(!1),ie=v.useRef({}),ce=Ma(),de=Te(fe=>{if(!V||!h.current||!ne.current)return;if(W.current||!N){C();return}const ze=V.style.top==="0px",De=V.style.bottom==="0px";if(!ze&&!De){C();return}const _e=Ub(V),Oe=qa(V.getBoundingClientRect().height,"y",_e),Ce=Je(V),Le=getComputedStyle(V),Re=parseFloat(Le.marginTop),Ue=parseFloat(Le.marginBottom),H=Ib(getComputedStyle(h.current)),oe=Math.min(Ce.documentElement.clientHeight-Re-Ue,H),J=fe.scrollTop,X=Wc(fe);let ve=0,we=null,be=!1,Ne=!1;const qe=et=>{V.style.height=`${et}px`},He=(et,Xe)=>{const We=hn(et,0,oe-Oe);We>0&&qe(Oe+We),fe.scrollTop=Xe,oe-(Oe+We)<=Co&&(W.current=!0),C()},Be=ze?X-J:J,$e=Math.min(Oe+Be,oe);if(ve=$e,Be<=Co){He(Be,ze?X:0);return}if(oe-$e>Co)ze?Ne=!0:we=0;else if(be=!0,De&&J<X){const et=Oe+Be-oe;we=J-(Be-et)}if(ve=Math.ceil(ve),ve!==0&&qe(ve),Ne||we!=null){const et=Wc(fe),Xe=Ne?et:hn(we,0,et);Math.abs(fe.scrollTop-Xe)>Co&&(fe.scrollTop=Xe)}(be||ve>=oe-Co)&&(W.current=!0),C()});v.useImperativeHandle(E,()=>de,[de]),ro({open:O,ref:h,onComplete(){O&&g?.(!0)}});const ye={open:O,transitionStatus:Q,side:k,align:R};ke(()=>{!V||!h.current||Object.keys(ie.current).length||(ie.current={top:V.style.top||"0",left:V.style.left||"0",right:V.style.right,height:V.style.height,bottom:V.style.bottom,minHeight:V.style.minHeight,maxHeight:V.style.maxHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom})},[h,V]),ke(()=>{O||N||(ne.current=!1,W.current=!1,Kc(V,ie.current))},[O,N,V,h]),ke(()=>{const fe=h.current;if(!O||!A||!V||!fe||N&&!z||p.state.transitionStatus==="ending")return;if(!N){ne.current=!0,ce.request(C),fe.style.removeProperty("--transform-origin");return}const ze=A4(fe);fe.style.removeProperty("--transform-origin");try{const De=S.current,_e=b.current,Oe=getComputedStyle(V),Ce=getComputedStyle(fe),Le=Je(A),Re=Lt(V),Ue=Ub(A),H=Jc(A.getBoundingClientRect(),Ue),oe=Jc(V.getBoundingClientRect(),Ue),J=H.height,X=Y||fe,ve=X.scrollHeight,we=parseFloat(Ce.borderBottomWidth),be=parseFloat(Oe.marginTop)||10,Ne=parseFloat(Oe.marginBottom)||10,qe=parseFloat(Oe.minHeight)||100,He=Ib(Ce),Be=5,$e=5,et=20,Xe=Le.documentElement.clientHeight-be-Ne,We=Le.documentElement.clientWidth,dt=Xe-H.bottom+J;let jt,rt=ee==="rtl"?H.right-oe.width:H.left,Ze=0;if(De&&_e){const at=Jc(_e.getBoundingClientRect(),Ue);jt=Jc(De.getBoundingClientRect(),Ue),rt=oe.left+(ee==="rtl"?at.right-jt.right:at.left-jt.left);const ft=at.top-H.top+at.height/2;Ze=jt.top-oe.top+jt.height/2-ft}const st=dt+Ze+Ne+we;let ut=Math.min(Xe,st);const zt=Xe-be-Ne,mt=st-ut,wn=We-$e;V.style.left=`${hn(rt,Be,wn-oe.width)}px`,V.style.height=`${ut}px`,V.style.maxHeight="auto",V.style.marginTop=`${be}px`,V.style.marginBottom=`${Ne}px`,fe.style.height="100%";const cn=Wc(X),Rt=mt>=cn-Co;Rt&&(ut=Math.min(Xe,oe.height)-(mt-cn));const he=H.top<et||H.bottom>Xe-et||Math.ceil(ut)+Co<Math.min(ve,qe),xe=(Re.visualViewport?.scale??1)!==1&&dd;if(he||xe){ne.current=!0,Kc(V,ie.current),P(!1);return}const je=Math.max(qe,ut);if(Rt){const at=Math.max(0,Xe-st);V.style.top=oe.height>=zt?"0":`${at}px`,V.style.height=`${ut}px`,X.scrollTop=Wc(X)}else V.style.bottom="0",X.scrollTop=mt;if(jt){const at=oe.top,ft=oe.height,ot=jt.top+jt.height/2,_t=ft>0?(ot-at)/ft*100:50,Ge=hn(_t,0,100);fe.style.setProperty("--transform-origin",`50% ${Ge}%`)}(je===Xe||ut>=He)&&(W.current=!0),C(),j&&p.state.selectedIndex===null&&p.state.activeIndex===null&&L.current[0]!=null&&p.set("activeIndex",0),ne.current=!0}finally{ze()}},[p,O,V,A,b,S,h,C,N,P,ce,K,G,Y,L,j,ee,z]),v.useEffect(()=>{if(!N||!V||!O)return;const fe=Lt(V);function ze(De){y(!1,ct(b_,De))}return pt(fe,"resize",ze)},[y,N,V,O]);const Ee={...Y?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":T||void 0,id:`${_}-list`},onKeyDown(fe){x.current=!0,q&&Vc.has(fe.key)&&fe.stopPropagation()},onMouseMove(){x.current=!1},onScroll(fe){Y||de(fe.currentTarget)},...N&&{style:Y?{height:"100%"}:T4}},Me=At("div",n,{ref:[o,h],state:ye,stateAttributesMapping:O4,props:[B,Ee,Jd(Q),{className:!Y&&N?Db.className:void 0},f]});return D.jsxs(v.Fragment,{children:[!I&&Db.getElement(F),D.jsx(wc,{context:te,modal:!1,disabled:!U,returnFocus:u,restoreFocus:!0,children:Me})]})});function Ib(e){const n=e.maxHeight||"";return n.endsWith("px")&&parseFloat(n)||1/0}function Wc(e){return zb(e.scrollHeight,e.clientHeight)}function Ub(e){return I0.getScale(e)}function qa(e,n,o){return e/o[n]}function Jc(e,n){return ja({x:qa(e.x,"x",n),y:qa(e.y,"y",n),width:qa(e.width,"x",n),height:qa(e.height,"y",n)})}const Vb=[["transform","none"],["scale","1"],["translate","0 0"]];function A4(e){const{style:n}=e,o={};for(const[s,l]of Vb)o[s]=n.getPropertyValue(s),n.setProperty(s,l,"important");return()=>{for(const[s]of Vb){const l=o[s];l?n.setProperty(s,l):n.removeProperty(s)}}}const Hb=v.createContext(void 0);function Eh(){const e=v.useContext(Hb);if(!e)throw new Error(Jt(57));return e}const M4=v.memo(v.forwardRef(function(n,o){const{render:s,className:l,value:c=null,label:u,disabled:f=!1,nativeButton:p=!1,style:h,...g}=n,y=v.useRef(null),b=m3({label:u,textRef:y,indexGuessBehavior:Tv.GuessFromOrder}),{store:S,getItemProps:x,setOpen:T,setValue:C,selectionRef:E,typingRef:L,valuesRef:j,multiple:k,selectedItemTextRef:R}=Ds(),N=St(S,wt.isActive,b.index),z=St(S,wt.isSelected,b.index,c),P=St(S,wt.isSelectedByFocus,b.index),K=St(S,wt.isItemEqualToValue),G=b.index,q=G!==-1,te=v.useRef(null),ee=dn(G);ke(()=>{if(!q)return;const ne=j.current;return ne[G]=c,()=>{delete ne[G]}},[q,G,c,j]),ke(()=>{if(!q)return;const ne=S.state.value;let ie=ne;k&&Array.isArray(ne)&&ne.length>0&&(ie=ne[ne.length-1]),ie!==void 0&&Os(c,ie,K)&&(S.set("selectedIndex",G),y.current&&(R.current=y.current))},[q,G,k,K,S,c,R]);const F={disabled:f,selected:z,highlighted:N},I=x({active:N,selected:z});I.id=void 0;const _=v.useRef(null),O=v.useRef("mouse"),U=v.useRef(!1),{getButtonProps:B,buttonRef:Q}=Es({disabled:f,focusableWhenDisabled:!0,native:p,composite:!0});function A(ne){const ie=S.state.value;if(k){const ce=Array.isArray(ie)?ie:[],de=z?P3(ce,c,K):[...ce,c];C(de,ct(jd,ne))}else C(c,ct(jd,ne)),T(!1,ct(jd,ne))}const V={role:"option","aria-selected":z,tabIndex:N?0:-1,onTouchStart(){E.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(ne){_.current=ne.key,S.set("activeIndex",G),ne.key===" "&&L.current&&ne.preventDefault()},onClick(ne){U.current=!1,!(ne.type==="keydown"&&_.current===null)&&(f||ne.type==="keydown"&&_.current===" "&&L.current||O.current!=="touch"&&!N||(_.current=null,A(ne.nativeEvent)))},onPointerEnter(ne){O.current=ne.pointerType},onPointerDown(ne){O.current=ne.pointerType,U.current=!0},onMouseUp(){if(f)return;if(U.current){U.current=!1;return}const ne=!E.current.allowSelectedMouseUp&&z,ie=!E.current.allowUnselectedMouseUp&&!z;ne||ie||O.current!=="touch"&&!N||te.current?.click()}},Y=At("div",n,{ref:[Q,o,b.ref,te],state:F,props:[I,V,g,B]}),W=v.useMemo(()=>({selected:z,indexRef:ee,textRef:y,selectedByFocus:P,hasRegistered:q}),[z,ee,y,P,q]);return D.jsx(Hb.Provider,{value:W,children:Y})})),D4=v.forwardRef(function(n,o){const s=n.keepMounted??!1,{selected:l}=Eh();return s||l?D.jsx(z4,{...n,ref:o}):null}),z4=v.memo(v.forwardRef((e,n)=>{const{render:o,className:s,style:l,keepMounted:c,...u}=e,{selected:f}=Eh(),p=v.useRef(null),{transitionStatus:h,setMounted:g}=Va(f),b=At("span",e,{ref:[n,p],state:{selected:f,transitionStatus:h},props:[{"aria-hidden":!0,children:"✔️"},u],stateAttributesMapping:Or});return ro({open:f,ref:p,onComplete(){f||g(!1)}}),b})),N4=v.memo(v.forwardRef(function(n,o){const{indexRef:s,textRef:l,selectedByFocus:c,hasRegistered:u}=Eh(),{selectedItemTextRef:f}=Ds(),{className:p,render:h,style:g,...y}=n,b=v.useCallback(x=>{if(!x||!u)return;const T=f.current===null||!f.current.isConnected;(c||T&&s.current===0)&&(f.current=x)},[f,s,c,u]);return At("div",n,{ref:[b,o,l],props:y})})),Xa=Ai.forwardRef(({className:e,type:n="primary",htmlType:o,...s},l)=>D.jsx("button",{ref:l,type:o||"button",className:ln("inline-flex items-center justify-center whitespace-nowrap rounded-full transition-colors disabled:pointer-events-none disabled:opacity-50 h-10 px-4",n==="primary"&&"text-white bg-gradient-to-r from-[#497efe] to-[#947afa] shadow-lg",n==="gray"&&"bg-gray-200 text-gray-700 hover:bg-gray-200",e),...s}));Xa.displayName="Button";const k4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,o,s)=>s?s.toUpperCase():o.toLowerCase()),Fb=e=>{const n=j4(e);return n.charAt(0).toUpperCase()+n.slice(1)},Bb=(...e)=>e.filter((n,o,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===o).join(" ").trim(),L4=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var P4={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"};const I4=v.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:u,...f},p)=>v.createElement("svg",{ref:p,...P4,width:n,height:n,stroke:e,strokeWidth:s?Number(o)*24/Number(n):o,className:Bb("lucide",l),...!c&&!L4(f)&&{"aria-hidden":"true"},...f},[...u.map(([h,g])=>v.createElement(h,g)),...Array.isArray(c)?c:[c]]));const Ro=(e,n)=>{const o=v.forwardRef(({className:s,...l},c)=>v.createElement(I4,{ref:c,iconNode:n,className:Bb(`lucide-${k4(Fb(e))}`,`lucide-${e}`,s),...l}));return o.displayName=Fb(e),o};const Th=Ro("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Zb=Ro("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Gb=Ro("eye-closed",[["path",{d:"m15 18-.722-3.25",key:"1j64jw"}],["path",{d:"M2 8a10.645 10.645 0 0 0 20 0",key:"1e7gxb"}],["path",{d:"m20 15-1.726-2.05",key:"1cnuld"}],["path",{d:"m4 15 1.726-2.05",key:"1dsqqd"}],["path",{d:"m9 18 .722-3.25",key:"ypw2yx"}]]);const Yb=Ro("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const U4=Ro("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);const V4=Ro("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const H4=Ro("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);const F4=Ro("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const $b=Ro("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function B4(e){return kn.get("/channel/game/role/mail-captcha",e)}function Z4(e){return kn.get("/channel/game/role/auth",e)}function G4(e){return kn.post("/passport-api/v2/ztgame/auth/login",{account:e.account,password:e.password,channel_login:1,channel_id:6})}function Y4(e){return kn.post("/passport-api/v2/sms-captchas",{mobile:e.mobile,type:e.type||"register",is_voice:0,nationcode:e.countryCode})}function $4(e){return kn.post("/passport-api/v2/ztgame/auth/mobile-register",{mobile:e.mobile,captcha:e.captcha,channel_login:1,channel_id:6,nationcode:e.countryCode,ad_id:""})}function qb(){return kn.post("/passport-api/v2/ztgame/auth/auth",{channel_login:1,channel_id:6})}function q4(e){return kn.post(`/passport-api/v2/ztgame/users/${e.uid}/idcard`,{name:e.name,idcard:e.idcard},{headers:{Authentication:e.authorization}})}function X4(e){return kn.post("/passport-api/v2/ztgame/auth/re-auth",{type:"auth",channel_id:6,ad_id:"",channel_login:1},{headers:{Authentication:e}})}function Q4(e){return kn.post("/passport-api/v2/ztgame/user-center/forget-password/",e)}function K4(e){return kn.post("/passport-api/v2/ztgame/user-center/forget-password/sms-captchas",e)}function Xb(e){return kn.post("/passport-api/v2/ztgame/user-center/forget-password/forget-password-keys",e)}function W4(e){return kn.post("/passport-api/v2/ztgame/user-center/forget-password/forget-password-update",e)}function Xn({as:e,children:n,className:o,disabled:s,...l}){const c=e||"button",u=c==="button";return D.jsx(c,{className:Wf("align-middle inline-flex items-center justify-center transition-all cursor-pointer hover:brightness-110 active:brightness-90 active:scale-90 disabled:cursor-not-allowed disabled:grayscale",o),...u?{disabled:s}:{"aria-disabled":s},...s&&!u?{onClick:f=>{f.preventDefault(),f.stopPropagation()}}:{},...l,children:n})}const J4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAXCAYAAADk3wSdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFJ0lEQVQ4jW2VW4ydVRXHf2tfvu87Z+5znEtnxnLR0pYJatEHWxhBEZUSCE8YESImRnzwQTEEY6KJGrQJXiFGXzAxaowkSkyoIgjYlEqEIIrSS6KmpTPDdJgz55w5t++29/bhjDQFVrKf9lq/rGSt/3/J+v2XExRQgNsKuJbH9QLFKaE4BWqUu6TCvXhGQsajOD6D4BJfQBCuvvaLLE/uhLTN/8PwVlGCxIJZCJ9XYzwYBEIGdLkztBE8d1rvSJWlbSLw/oJy9UZe8AOAGglfNbt4UE2CSkBikASwfKpE6blOncdndtOauAjy3gWM8516wCGiuFGPyT2Mhw+EQvC9wZ+UEAw4UfXZtBU6cZX7Fm+C4IDwBmgAPHdguEGPy1VqSO0MObhewHc9UgC5gAKXKmpbW3fV8i1/8JovsDyzG5ortxK4DpFzwP1A2yAcUpHciwURCLngOgFVBkIOOPBd/qrWir/MrTV/k6nk2N3v/Rx/uHgJmqvfrqb5l3sioBVofTsi18hrDywGqQ46IQBFwHcCRT1QrrmfDjXaP/TrvNRerrIiM/xq98d4bH6ROK3fV3XlV0QU60azajTOGND6R4YIpAqiAsEDVnB1UM30lonQ/t0/G3t4uXkZqxM1TkztpDmUXP7uzVcO2SA3FVrR0hoEOkrRCAFCGDMScUJX3V6lPCEIrqexsb82quVHnji6xJ9PH8Bbtc9G2f4dW42PznbDzc5qerGlnURURMidEPT2sIw5bFTMYVMp94rxEASfyananu6RI0/t49G/f4gdMxu/jExxm/QF1fMURtEdshRKMSo5GZa1OKJlDVSSc1STx4wedi/paomKPMELSfAv9NKY5569jNGk89nIFLeFIAQFISiMC9jCMZzlHJ+cfPn5uem9G6AQBdXkReKoacxw0TDDHhWX4BQqLjY3z4zTaVapVLODIch5YchAHNa7rJ4k1//pit3LRRT9h9a2RCvJJtai7JgbN1ObqOlzqJlzMJxPjF7cZnSkT78V/1Hk/GJLgKBlKyqLfUcX33m0mJu9lLIU4giSGOJ4gjhG2Zn6uxhvk+kqfRvDWPdKc8UrfPgTz+E2R34cUvMwKhAEvOL0Rcud95+pLZw4eeB94N2VGAtRNHjW7qOajBlG+gcb3QXq3XHaZUzFdvfOmY2r5JNnjw39+2/Iz3Z9vGbCDyTORyr94ul/LEbFr+8YhWoLmvJpbDSQqggYPUsSf0TSjYmw0p6nnlnqmWUji8Frp4bzm1eS7PfHf3sJ5eMLjHQtJ/eUPH39GAzNvI2txUdIZ66mtzVwKQGshaHqz00ImsxruqWmkRleS4W1VOvQqBz2OvnJ2aW1B55cXD1BfQqG50fpRbdTn/oG0UQNayC24MIAGllQqiO+FX13pXnp3Sebk5zuaZZ7hvVU86+e5vlMcIWjwDxJmG3i3/5B9PwkageoKWAanAKXDUzCmrMovWRE5V+aH//vcaS8oe+n97/at3ObheLFAtK+h7wCevo6dA10ddsjuxASEAW6UqLNMSR6BpHv4GkaPIjJH1oYXn+onY1E3UJuXE3VPb0tvZ9Cg66A0oNz4FNQMfg20Gkj5lvI+C9Qc8vI1GCJX3d+D6mzlEHy2PhH3lF1B95T8d9ECYQAFBByCH3wLXBnnsWd2QP9Q6CXt+X2Fs6/7Xy5F4oAOyxfQ/sGRfa919NCAX75GVBLmF1AzGBCF8abDp8ARuDVnoJMvo/JSrz/OpIaKJ7CN25Batul4U1AgP8BRjZPP9WeeTQAAAAASUVORK5CYII=";function eD(e){return D.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 500 500",...e,children:[D.jsx("path",{fill:"url(#a)",d:"M0 250C0 111.929 111.929 0 250 0s250 111.929 250 250-111.929 250-250 250S0 388.071 0 250Z"}),D.jsx("path",{fill:"#fff",d:"M159.432 341h-33.008V158.949h33.008V341Zm220.263-76.172c0 11.087-1.946 21.286-5.84 30.596-3.808 9.31-9.098 17.35-15.869 24.121-6.771 6.686-14.811 11.934-24.121 15.742-9.31 3.809-19.424 5.713-30.342 5.713h-89.121c-2.369 0-4.57-.423-6.601-1.27-2.031-.846-3.809-1.988-5.332-3.427-1.439-1.524-2.582-3.301-3.428-5.332-.846-2.032-1.27-4.232-1.27-6.602V175.58c0-2.285.424-4.443 1.27-6.475.846-2.031 1.989-3.808 3.428-5.332a16.354 16.354 0 0 1 5.332-3.554c2.031-.847 4.232-1.27 6.601-1.27h89.121c10.918 0 21.032 1.905 30.342 5.713 9.31 3.809 17.35 9.098 24.121 15.869 6.771 6.686 12.061 14.727 15.869 24.121 3.894 9.31 5.84 19.466 5.84 30.469v29.707Zm-33.007-29.707c0-6.432-1.058-12.314-3.174-17.646-2.032-5.332-4.952-9.86-8.76-13.584-3.809-3.809-8.379-6.729-13.711-8.76-5.247-2.116-11.087-3.174-17.52-3.174h-72.744v116.035h72.744c6.433 0 12.273-1.015 17.52-3.047 5.332-2.116 9.902-5.035 13.711-8.759 3.808-3.809 6.728-8.337 8.76-13.584 2.116-5.332 3.174-11.257 3.174-17.774v-29.707Z"}),D.jsx("defs",{children:D.jsxs("linearGradient",{id:"a",x1:250,x2:250,y1:0,y2:500,gradientUnits:"userSpaceOnUse",children:[D.jsx("stop",{stopColor:"#497EFE"}),D.jsx("stop",{offset:1,stopColor:"#947AFA"})]})})]})}function eu(){const{gameId:e,loginTypes:n,currentLoginType:o,setCurrentLoginType:s}=wo(),l=hv({loginTypes:n,gameId:e}),c=pv({loginTypes:n,gameId:e}),u=dv({loginTypes:n,gameId:e}),f=[];return u&&o!==Gt.GIANT&&f.push({type:Gt.GIANT,label:e==="5327"?"账号密码登录":"巨人账号",icon:e==="5327"?null:D.jsx("img",{className:"size-4",src:J4})}),c&&o!==Gt.MOBILE&&f.push({type:Gt.MOBILE,label:"手机号登录",icon:D.jsx(U4,{className:"size-4"})}),l&&o!==Gt.ROLE_ID&&f.push({type:Gt.ROLE_ID,label:"ID 登录",icon:D.jsx(eD,{className:"size-4"})}),o!=="quick"&&Vi(e).length>0&&f.push({type:"quick",label:"快捷登录",icon:D.jsx(F4,{className:"size-4"})}),f.length?D.jsx("div",{className:"text-gray-500 text-xs flex justify-center items-center gap-2 mb-4",children:f.map((p,h)=>D.jsxs(Xn,{className:"h-7 px-3 border rounded-full border-gray-300 gap-1.5 text-xs",onClick:()=>s(p.type),children:[p.icon,D.jsx("span",{children:p.label})]},p.type))}):null}function tD(e){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 90",fill:"currentColor",...e,children:D.jsx("path",{d:"M41.415 1.601c6.427-2.244 13.363 2.04 14.18 8.773.611 5.508-2.959 10.609-8.365 11.833-.408.102-.918.203-1.326.305-.918.204-1.735.409-2.653.613-.306.102-.714.204-1.122.306h-.101c-.816.306-1.633.51-2.448.816-.306.102-.715.306-1.021.408l-2.754 1.223c-.408.103-.714.307-1.02.511-1.224.612-2.346 1.326-3.468 2.142l-.307.306c-.612.409-1.122.919-1.632 1.327-.51.408-1.02.816-1.53 1.326-.408.306-.714.713-1.122 1.02-.408.407-.816.918-1.326 1.428-.306.612-.409 1.224-.612 1.836-.204 1.122-.51 2.143-.714 3.265-.204 1.02-.408 2.04-.51 3.06 0 .611-.103 1.122-.103 1.734v1.632c0 1.02 0 1.938.103 2.958.102 1.02.306 2.143.51 3.163.204.816.408 1.733.612 2.55.204.816.408 1.53.612 2.346.102.306.204.51.408.714.51.612 1.122 1.122 1.632 1.734 1.02.918 2.04 1.836 3.162 2.754.816.612 1.734 1.224 2.55 1.836.51.306.919.612 1.429.918.102 0 .204 0 .204.103.204 0 .306.102.51.204.408.204.714.408 1.122.612.918.408 1.734.714 2.652 1.122.714.204 1.326.51 2.04.714 1.122.306 2.143.612 3.265.918.51.204 1.122.204 1.632 0 .306-.102.51-.102.816-.204.816-.204 1.53-.51 2.346-.714 1.53-.408 2.958-1.02 4.386-1.633h.102c.816-.408 1.735-.815 2.55-1.325.307-.204.714-.408 1.02-.612 1.02-.714 2.04-1.428 3.06-2.244.613-.51 1.123-1.02 1.735-1.53l2.142-2.143c.408-.408.714-.816.816-1.428 0-.102.103-.102.103-.204.306-1.02.611-2.142.815-3.162.306-1.326.612-2.755.714-4.183v-.204c.102-1.224.103-2.448.103-3.672-.102-.816-.102-1.53-.204-2.346 0-.102 0-.204-.102-.205-.918.408-1.735.715-2.55 1.225-1.633.918-3.061 1.938-4.489 3.06-.102.101-.204.102-.306.204-1.02.918-1.938 1.734-2.856 2.652-1.02 1.02-2.041 2.04-2.96 3.162-1.937 2.244-4.487 3.469-7.445 3.673-5.713.306-10.61-3.673-11.324-9.283-.816-5.61 2.959-10.813 8.467-11.935a52.639 52.639 0 0 0 7.856-2.142h.101c.816-.408 1.734-.715 2.55-1.122 3.264-1.53 6.121-3.672 8.773-6.12 1.327-1.327 2.652-2.653 3.876-4.082 2.347-2.55 5.305-3.774 8.773-3.57 5.1.306 9.283 4.285 9.895 9.283.204 1.53.102 3.06-.408 4.489-.612 1.938-1.224 3.876-1.734 5.916-.102 1.02-.408 1.939-.51 2.958-.408 2.449-.51 4.795-.306 7.141v.306c.102.816.204 1.53.306 2.347a46.28 46.28 0 0 0 1.224 5.406c.102 0 .102.102.102.204.51 1.632 1.224 3.264 1.224 4.794.306 3.162-.51 5.917-2.55 8.365-1.632 1.938-3.774 3.06-6.223 3.57-1.734.408-3.57.817-5.304 1.326-.102.102-.204.102-.306.102-1.836.612-3.775 1.326-5.509 2.244h-.101c-.918.408-1.735.919-2.551 1.429-.306.204-.714.51-1.02.714a30.738 30.738 0 0 0-2.856 2.244c-.816.714-1.633 1.53-2.347 2.244a.22.22 0 0 1-.204.204c-.918.918-1.734 1.836-2.55 2.754-2.346 2.55-5.202 3.877-8.67 3.775-3.06-.102-5.61-1.428-7.651-3.672-1.428-1.633-2.958-3.163-4.488-4.591v-.102c-.51-.408-1.02-.918-1.53-1.326-.715-.612-1.53-1.122-2.245-1.734l-1.53-.918c-.612-.306-1.122-.612-1.734-.918l-2.754-1.225c-1.326-.612-2.653-1.02-4.081-1.428-1.326-.407-2.652-.714-3.978-1.02a11.146 11.146 0 0 1-3.673-1.224c-3.264-1.734-5.1-4.489-5.61-8.16-.204-1.633 0-3.265.51-4.795.816-2.244 1.428-4.59 1.938-6.936.102-.102.102-.103.102-.204.102-.715.204-1.531.306-2.347.102-.714.205-1.428.205-2.142V43.63l-.087-.956a39.328 39.328 0 0 0-1.24-6.695c-.102-.102-.102-.205-.102-.306-.51-1.734-1.224-3.469-1.53-5.203-1.122-5.712 2.55-11.22 8.263-12.445.714-.204 1.53-.306 2.244-.51 1.224-.306 2.55-.612 3.775-1.02 1.224-.408 2.448-.816 3.672-1.326l1.223-.612c.918-.408 1.837-.918 2.755-1.428 1.122-.714 2.244-1.53 3.366-2.346.408-.306.715-.612 1.122-.918.408-.408.918-.918 1.428-1.326a40.49 40.49 0 0 0 2.96-2.96c1.53-1.835 3.161-3.16 5.405-3.977Z"})})}function nD(e){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",...e,children:D.jsx("path",{d:"M842.667 384H768V277.333a234.667 234.667 0 1 0-469.333 0V384H224a53.393 53.393 0 0 0-53.333 53.333V928A53.393 53.393 0 0 0 224 981.333h618.667A53.393 53.393 0 0 0 896 928V437.333A53.393 53.393 0 0 0 842.667 384zm-288 295.007v110.326a21.333 21.333 0 0 1-42.667 0V679.007a64 64 0 1 1 42.667 0zM725.333 384h-384V277.333c0-105.866 86.134-192 192-192s192 86.134 192 192z"})})}var Ch,Qb;function rD(){if(Qb)return Ch;Qb=1;var e="Expected a function",n=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,f=parseInt,p=typeof Bl=="object"&&Bl&&Bl.Object===Object&&Bl,h=typeof self=="object"&&self&&self.Object===Object&&self,g=p||h||Function("return this")(),y=Object.prototype,b=y.toString,S=Math.max,x=Math.min,T=function(){return g.Date.now()};function C(R,N,z){var P,K,G,q,te,ee,F=0,I=!1,_=!1,O=!0;if(typeof R!="function")throw new TypeError(e);N=k(N)||0,E(z)&&(I=!!z.leading,_="maxWait"in z,G=_?S(k(z.maxWait)||0,N):G,O="trailing"in z?!!z.trailing:O);function U(ce){var de=P,ye=K;return P=K=void 0,F=ce,q=R.apply(ye,de),q}function B(ce){return F=ce,te=setTimeout(V,N),I?U(ce):q}function Q(ce){var de=ce-ee,ye=ce-F,Ee=N-de;return _?x(Ee,G-ye):Ee}function A(ce){var de=ce-ee,ye=ce-F;return ee===void 0||de>=N||de<0||_&&ye>=G}function V(){var ce=T();if(A(ce))return Y(ce);te=setTimeout(V,Q(ce))}function Y(ce){return te=void 0,O&&P?U(ce):(P=K=void 0,q)}function W(){te!==void 0&&clearTimeout(te),F=0,P=ee=K=te=void 0}function ne(){return te===void 0?q:Y(T())}function ie(){var ce=T(),de=A(ce);if(P=arguments,K=this,ee=ce,de){if(te===void 0)return B(ee);if(_)return te=setTimeout(V,N),U(ee)}return te===void 0&&(te=setTimeout(V,N)),q}return ie.cancel=W,ie.flush=ne,ie}function E(R){var N=typeof R;return!!R&&(N=="object"||N=="function")}function L(R){return!!R&&typeof R=="object"}function j(R){return typeof R=="symbol"||L(R)&&b.call(R)==o}function k(R){if(typeof R=="number")return R;if(j(R))return n;if(E(R)){var N=typeof R.valueOf=="function"?R.valueOf():R;R=E(N)?N+"":N}if(typeof R!="string")return R===0?R:+R;R=R.replace(s,"");var z=c.test(R);return z||u.test(R)?f(R.slice(2),z?2:8):l.test(R)?n:+R}return Ch=C,Ch}rD();function oD(e=!1){if(typeof e!="boolean")throw new Error("defaultValue must be `true` or `false`");const[n,o]=v.useState(e),s=v.useCallback(()=>{o(!0)},[]),l=v.useCallback(()=>{o(!1)},[]),c=v.useCallback(()=>{o(u=>!u)},[]);return{value:n,setValue:o,setTrue:s,setFalse:l,toggle:c}}var Kb=typeof window<"u"?v.useLayoutEffect:v.useEffect;function iD(e){const[n,o]=v.useState(e),s=v.useCallback(()=>{o(u=>u+1)},[]),l=v.useCallback(()=>{o(u=>u-1)},[]),c=v.useCallback(()=>{o(e)},[e]);return{count:n,increment:s,decrement:l,reset:c,setCount:o}}function sD(e,n){const o=v.useRef(e);Kb(()=>{o.current=e},[e]),v.useEffect(()=>{if(n===null)return;const s=setInterval(()=>{o.current()},n);return()=>{clearInterval(s)}},[n])}function aD({countStart:e,countStop:n=0,intervalMs:o=1e3,isIncrement:s=!1}){const{count:l,increment:c,decrement:u,reset:f}=iD(e),{value:p,setTrue:h,setFalse:g}=oD(!1),y=v.useCallback(()=>{g(),f()},[g,f]),b=v.useCallback(()=>{if(l===n){g();return}s?c():u()},[l,n,u,c,s,g]);return sD(b,p?o:null),[l,{startCountdown:h,stopCountdown:g,resetCountdown:y}]}var lD=typeof window>"u";function cD(e,{defaultValue:n=!1,initializeWithValue:o=!0}={}){const s=f=>lD?n:window.matchMedia(f).matches,[l,c]=v.useState(()=>o?s(e):n);function u(){c(s(e))}return Kb(()=>{const f=window.matchMedia(e);return u(),f.addListener?f.addListener(u):f.addEventListener("change",u),()=>{f.removeListener?f.removeListener(u):f.removeEventListener("change",u)}},[e]),l}function Wb({trigger:e,title:n,description:o,children:s,open:l,showCloseIcon:c=!0,onOpenChange:u,zIndex:f,classNames:p}){return cD("(min-width: 1024px)")?D.jsxs(oh,{open:l,onOpenChange:u,disablePointerDismissal:!0,children:[e&&D.jsx(ch,{className:p?.trigger,children:e}),D.jsxs(ah,{children:[D.jsx(Lv,{style:{zIndex:f},className:"fixed inset-0 bg-black/70 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 dark:opacity-70 z-[990] backdrop-blur-sm"}),D.jsxs(Vv,{style:{zIndex:f},className:Ui("fixed top-1/2 left-1/2 w-96 max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-gray-50 p-4 text-gray-900 transition-all duration-150 data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 z-[991]",p?.desktopPopup),children:[n&&D.jsx(lh,{className:Ui("-mt-1.5 mb-1 text-lg font-medium",p?.title),children:n}),o&&D.jsx(Iv,{className:Ui("mb-6 text-base text-gray-600",p?.description),children:o}),c&&D.jsx(Pv,{className:"absolute right-4 top-4 text-gray-700 hover:bg-gray-200 rounded p-0.5",children:D.jsx($b,{})}),D.jsx("div",{children:s})]})]})]}):D.jsxs(bM,{open:l,onOpenChange:u,children:[e&&D.jsx(zM,{className:p?.trigger,children:e}),D.jsxs(vM,{children:[D.jsx(uM,{style:{zIndex:f},className:Ui("fixed inset-0 bg-black/70 transition-opacity duration-300 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 dark:opacity-70 z-[990] backdrop-blur-sm",p?.backdrop)}),D.jsx(LM,{style:{zIndex:f},className:"fixed inset-0 z-[991]",children:D.jsx(yM,{className:Ui("fixed bottom-0 left-0 right-0 rounded-t-xl bg-white p-4 transition-transform duration-300 data-[starting-style]:translate-y-full data-[ending-style]:translate-y-full","[transform:translateY(var(--drawer-swipe-movement-y))]",p?.mobilePopup),children:D.jsxs(fM,{children:[D.jsx("div",{"aria-hidden":!0,className:"mx-auto w-12 h-1.5 flex-shrink-0 rounded-full bg-gray-300 mb-4"}),D.jsx(DM,{className:"sr-only",children:n}),D.jsx("div",{children:s})]})})})]})]})}function Rh({checked:e,onChange:n,hideCheckbox:o}){const[s,l]=v.useState(!1),[c,u]=v.useState(!1);return D.jsxs("div",{children:[D.jsx(Wb,{title:"用户协议",open:s,onOpenChange:l,zIndex:993,classNames:{desktopPopup:"w-[90vw] lg:w-[60vw]"},children:D.jsx("iframe",{src:"https://www.gatribe.com/license-light.html?channel_id=1&game_id=5327",className:"w-full h-[70vh]"})}),D.jsx(Wb,{title:"隐私政策",open:c,onOpenChange:u,zIndex:993,classNames:{desktopPopup:"w-[90vw] lg:w-[60vw]"},children:D.jsx("iframe",{src:"https://www.gatribe.com/privacy-light.html?channel_id=1&game_id=5327",className:"w-full h-[70vh]"})}),o?D.jsxs("div",{className:"flex items-center justify-center text-gray-500 text-xs md:text-sm",children:[D.jsx("span",{className:"text-xs md:text-sm",children:"我已详细阅读并同意"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>l(!0),type:"button",children:"《用户协议》"}),D.jsx("span",{className:"text-xs md:text-sm",children:"及"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>u(!0),type:"button",children:"《隐私政策》"})]}):D.jsx($a,{name:"rememberLogin",children:D.jsxs(Cb,{className:"flex items-center justify-center text-gray-500 text-xs md:text-sm",children:[D.jsx(Qv,{checked:e,className:"size-4 md:size-5 flex items-center justify-center rounded-full border-2 data-[checked]:border-[var(--jssdk-primary-color)] data-[unchecked]:border-[var(--jssdk-input-border-color)]",onCheckedChange:f=>n?.(!!f),children:D.jsx(Kv,{children:D.jsx(Th,{className:"size-3 text-[var(--jssdk-primary-color)]",strokeWidth:4})})}),D.jsx("span",{className:"ml-2 text-xs md:text-sm",children:"我已详细阅读并同意"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>l(!0),type:"button",children:"《用户协议》"}),D.jsx("span",{className:"text-xs md:text-sm",children:"及"}),D.jsx(Xn,{className:"text-[var(--jssdk-primary-color)] text-xs md:text-sm",onClick:()=>u(!0),type:"button",children:"《隐私政策》"})]})})]})}function Zi({trigger:e,title:n,description:o,children:s,open:l,showCloseIcon:c=!0,onOpenChange:u,disablePointerDismissal:f=!1,classNames:p}){return D.jsxs(oh,{open:l,onOpenChange:u,disablePointerDismissal:f,children:[e&&D.jsx(ch,{className:p?.trigger,children:e}),D.jsxs(ah,{children:[D.jsx(Lv,{className:ln("fixed inset-0 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 z-[990] backdrop-blur-sm",p?.backdrop||"bg-black/70 dark:opacity-70"),forceRender:!0}),D.jsxs(Vv,{className:ln("fixed top-1/2 left-1/2 w-96 max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-gray-50 p-4 text-gray-900 transition-all duration-150 data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 z-[990]",p?.popup),children:[n&&D.jsx(lh,{className:ln("-mt-1.5 mb-1 text-lg font-medium",p?.title),children:n}),o&&D.jsx(Iv,{className:ln("mb-6 text-base text-gray-600",p?.description),children:o}),c&&D.jsx(Pv,{className:ln("absolute right-4 top-4 text-gray-700 hover:bg-gray-200 rounded p-0.5",p?.close),children:D.jsx($b,{})}),D.jsx("div",{children:s})]})]})]})}function Jb({open:e,onOpenChange:n,onAgree:o,onRefuse:s}){return D.jsx(Zi,{open:e,onOpenChange:n,showCloseIcon:!1,classNames:{popup:"w-[320px] p-6"},children:D.jsxs("div",{className:"flex flex-col items-center",children:[D.jsx(Rh,{hideCheckbox:!0}),D.jsxs("div",{className:"flex justify-between w-full mt-6 gap-4",children:[D.jsx(Xa,{type:"gray",className:"flex-1",onClick:()=>{s?.(),n?.(!1)},children:"拒绝"}),D.jsx(Xa,{type:"primary",className:"flex-1",onClick:()=>{o?.(),n?.(!1)},children:"同意并登录"})]})]})})}function io({name:e,prefix:n,suffix:o,className:s,inputClassName:l,error:c,...u}){return D.jsxs($a,{name:e,className:"group",children:[D.jsxs("div",{className:ln("flex items-center border border-[var(--jssdk-input-border-color)] group-data-[focused]:border-[var(--jssdk-primary-color)] group-data-[focused]:shadow-[0_0_6px_color-mix(in_srgb,var(--jssdk-primary-color),transparent_80%)] rounded-full bg-white px-3 gap-2 h-12 transition-all duration-200",c&&"border-red-500",s),children:[n,D.jsx(wh,{className:ln("flex-1 w-0 outline-none rounded-full h-full pl-1",l),...u}),o]}),D.jsx(Sh,{className:"text-red-500 text-xs mt-1 ml-3"})]})}function uD({account:e,forgetPasswordKey:n,onSuccess:o}){const[s,l]=v.useState(""),[c,u]=v.useState(!1),{mutate:f,isPending:p}=Vr({mutationFn:()=>W4({account:e,forget_password_key:n,password:s}),onSuccess:g=>{g?.code===0||!g?.error?o():Cn.warning(g.detail||g.error||"重置失败")}}),h=()=>{if(!s){Cn.warning("请输入新密码");return}if(s.length<6||s.length>18){Cn.warning("密码长度需要在6-18位之间");return}f()};return D.jsxs("div",{className:"space-y-4",children:[D.jsx("div",{className:"text-sm text-gray-500 mb-4 text-center",children:"请设置新的登录密码"}),D.jsx(io,{name:"password",type:c?"text":"password",autoComplete:"off",inputClassName:"placeholder:text-sm",placeholder:"请输入6-18位由数字、字母组成的密码",value:s,autoFocus:!0,onValueChange:g=>l(g),suffix:D.jsx(Xn,{onClick:()=>u(!c),type:"button",children:c?D.jsx(Yb,{className:"size-5 text-gray-400"}):D.jsx(Gb,{className:"size-5 text-gray-400"})})}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:h,disabled:!s||p,children:p?"重置中...":"确定修改"})]})}var fD=function(e){return typeof e=="number"};function dD(e){var n=v.useRef(e);return n.current=e,n}var tu={exports:{}},hD=tu.exports,e1;function pD(){return e1||(e1=1,(function(e,n){(function(o,s){e.exports=s()})(hD,(function(){var o=1e3,s=6e4,l=36e5,c="millisecond",u="second",f="minute",p="hour",h="day",g="week",y="month",b="quarter",S="year",x="date",T="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var I=["th","st","nd","rd"],_=F%100;return"["+F+(I[(_-20)%10]||I[_]||I[0])+"]"}},j=function(F,I,_){var O=String(F);return!O||O.length>=I?F:""+Array(I+1-O.length).join(_)+F},k={s:j,z:function(F){var I=-F.utcOffset(),_=Math.abs(I),O=Math.floor(_/60),U=_%60;return(I<=0?"+":"-")+j(O,2,"0")+":"+j(U,2,"0")},m:function F(I,_){if(I.date()<_.date())return-F(_,I);var O=12*(_.year()-I.year())+(_.month()-I.month()),U=I.clone().add(O,y),B=_-U<0,Q=I.clone().add(O+(B?-1:1),y);return+(-(O+(_-U)/(B?U-Q:Q-U))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:y,y:S,w:g,d:h,D:x,h:p,m:f,s:u,ms:c,Q:b}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},R="en",N={};N[R]=L;var z="$isDayjsObject",P=function(F){return F instanceof te||!(!F||!F[z])},K=function F(I,_,O){var U;if(!I)return R;if(typeof I=="string"){var B=I.toLowerCase();N[B]&&(U=B),_&&(N[B]=_,U=B);var Q=I.split("-");if(!U&&Q.length>1)return F(Q[0])}else{var A=I.name;N[A]=I,U=A}return!O&&U&&(R=U),U||!O&&R},G=function(F,I){if(P(F))return F.clone();var _=typeof I=="object"?I:{};return _.date=F,_.args=arguments,new te(_)},q=k;q.l=K,q.i=P,q.w=function(F,I){return G(F,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var te=(function(){function F(_){this.$L=K(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[z]=!0}var I=F.prototype;return I.parse=function(_){this.$d=(function(O){var U=O.date,B=O.utc;if(U===null)return new Date(NaN);if(q.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var Q=U.match(C);if(Q){var A=Q[2]-1||0,V=(Q[7]||"0").substring(0,3);return B?new Date(Date.UTC(Q[1],A,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,V)):new Date(Q[1],A,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,V)}}return new Date(U)})(_),this.init()},I.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},I.$utils=function(){return q},I.isValid=function(){return this.$d.toString()!==T},I.isSame=function(_,O){var U=G(_);return this.startOf(O)<=U&&U<=this.endOf(O)},I.isAfter=function(_,O){return G(_)<this.startOf(O)},I.isBefore=function(_,O){return this.endOf(O)<G(_)},I.$g=function(_,O,U){return q.u(_)?this[O]:this.set(U,_)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(_,O){var U=this,B=!!q.u(O)||O,Q=q.p(_),A=function(ye,Ee){var Me=q.w(U.$u?Date.UTC(U.$y,Ee,ye):new Date(U.$y,Ee,ye),U);return B?Me:Me.endOf(h)},V=function(ye,Ee){return q.w(U.toDate()[ye].apply(U.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(Ee)),U)},Y=this.$W,W=this.$M,ne=this.$D,ie="set"+(this.$u?"UTC":"");switch(Q){case S:return B?A(1,0):A(31,11);case y:return B?A(1,W):A(0,W+1);case g:var ce=this.$locale().weekStart||0,de=(Y<ce?Y+7:Y)-ce;return A(B?ne-de:ne+(6-de),W);case h:case x:return V(ie+"Hours",0);case p:return V(ie+"Minutes",1);case f:return V(ie+"Seconds",2);case u:return V(ie+"Milliseconds",3);default:return this.clone()}},I.endOf=function(_){return this.startOf(_,!1)},I.$set=function(_,O){var U,B=q.p(_),Q="set"+(this.$u?"UTC":""),A=(U={},U[h]=Q+"Date",U[x]=Q+"Date",U[y]=Q+"Month",U[S]=Q+"FullYear",U[p]=Q+"Hours",U[f]=Q+"Minutes",U[u]=Q+"Seconds",U[c]=Q+"Milliseconds",U)[B],V=B===h?this.$D+(O-this.$W):O;if(B===y||B===S){var Y=this.clone().set(x,1);Y.$d[A](V),Y.init(),this.$d=Y.set(x,Math.min(this.$D,Y.daysInMonth())).$d}else A&&this.$d[A](V);return this.init(),this},I.set=function(_,O){return this.clone().$set(_,O)},I.get=function(_){return this[q.p(_)]()},I.add=function(_,O){var U,B=this;_=Number(_);var Q=q.p(O),A=function(W){var ne=G(B);return q.w(ne.date(ne.date()+Math.round(W*_)),B)};if(Q===y)return this.set(y,this.$M+_);if(Q===S)return this.set(S,this.$y+_);if(Q===h)return A(1);if(Q===g)return A(7);var V=(U={},U[f]=s,U[p]=l,U[u]=o,U)[Q]||1,Y=this.$d.getTime()+_*V;return q.w(Y,this)},I.subtract=function(_,O){return this.add(-1*_,O)},I.format=function(_){var O=this,U=this.$locale();if(!this.isValid())return U.invalidDate||T;var B=_||"YYYY-MM-DDTHH:mm:ssZ",Q=q.z(this),A=this.$H,V=this.$m,Y=this.$M,W=U.weekdays,ne=U.months,ie=U.meridiem,ce=function(Ee,Me,fe,ze){return Ee&&(Ee[Me]||Ee(O,B))||fe[Me].slice(0,ze)},de=function(Ee){return q.s(A%12||12,Ee,"0")},ye=ie||function(Ee,Me,fe){var ze=Ee<12?"AM":"PM";return fe?ze.toLowerCase():ze};return B.replace(E,(function(Ee,Me){return Me||(function(fe){switch(fe){case"YY":return String(O.$y).slice(-2);case"YYYY":return q.s(O.$y,4,"0");case"M":return Y+1;case"MM":return q.s(Y+1,2,"0");case"MMM":return ce(U.monthsShort,Y,ne,3);case"MMMM":return ce(ne,Y);case"D":return O.$D;case"DD":return q.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ce(U.weekdaysMin,O.$W,W,2);case"ddd":return ce(U.weekdaysShort,O.$W,W,3);case"dddd":return W[O.$W];case"H":return String(A);case"HH":return q.s(A,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return ye(A,V,!0);case"A":return ye(A,V,!1);case"m":return String(V);case"mm":return q.s(V,2,"0");case"s":return String(O.$s);case"ss":return q.s(O.$s,2,"0");case"SSS":return q.s(O.$ms,3,"0");case"Z":return Q}return null})(Ee)||Q.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(_,O,U){var B,Q=this,A=q.p(O),V=G(_),Y=(V.utcOffset()-this.utcOffset())*s,W=this-V,ne=function(){return q.m(Q,V)};switch(A){case S:B=ne()/12;break;case y:B=ne();break;case b:B=ne()/3;break;case g:B=(W-Y)/6048e5;break;case h:B=(W-Y)/864e5;break;case p:B=W/l;break;case f:B=W/s;break;case u:B=W/o;break;default:B=W}return U?B:q.a(B)},I.daysInMonth=function(){return this.endOf(y).$D},I.$locale=function(){return N[this.$L]},I.locale=function(_,O){if(!_)return this.$L;var U=this.clone(),B=K(_,O,!0);return B&&(U.$L=B),U},I.clone=function(){return q.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},F})(),ee=te.prototype;return G.prototype=ee,[["$ms",c],["$s",u],["$m",f],["$H",p],["$W",h],["$M",y],["$y",S],["$D",x]].forEach((function(F){ee[F[1]]=function(I){return this.$g(I,F[0],F[1])}})),G.extend=function(F,I){return F.$i||(F(I,te,G),F.$i=!0),G},G.locale=K,G.isDayjs=P,G.unix=function(F){return G(1e3*F)},G.en=N[R],G.Ls=N,G.p={},G}))})(tu)),tu.exports}var mD=pD();const gD=_f(mD);var Oh=function(e){if(!e)return 0;var n=gD(e).valueOf()-Date.now();return n<0?0:n},yD=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},t1=function(e){e===void 0&&(e={});var n=e||{},o=n.leftTime,s=n.targetDate,l=n.interval,c=l===void 0?1e3:l,u=n.onEnd,f=v.useMemo(function(){return fD(o)&&o>0?Date.now()+o:void 0},[o]),p="leftTime"in e?f:s,h=C2(v.useState(function(){return Oh(p)}),2),g=h[0],y=h[1],b=dD(u);v.useEffect(function(){if(!p){y(0);return}y(Oh(p));var x=setInterval(function(){var T,C=Oh(p);y(C),C===0&&(clearInterval(x),(T=b.current)===null||T===void 0||T.call(b))},c);return function(){return clearInterval(x)}},[p,c]);var S=v.useMemo(function(){return yD(g)},[g]);return[g,S]};function vD({account:e,mobile:n,onNext:o}){const[s,l]=v.useState(""),[c,u]=v.useState(),[f]=t1({leftTime:c?c*1e3:void 0,interval:1e3,onEnd(){u(void 0)}}),{mutate:p,isPending:h}=Vr({mutationFn:()=>K4({account:e,type:"reset-password",is_voice:0,t:"ctoken"}),onSuccess:S=>{u(S.lock_time),Cn.success("验证码已发送,请注意查收")}}),{mutate:g,isPending:y}=Vr({mutationFn:()=>Xb({account:e,captcha:s,t:"reset-password"}),onSuccess:S=>{S?.forget_password_key?o(S.forget_password_key):Cn.warning("安全验证失败")},onError:S=>{Cn.warning(S?.message||S?.detail||"验证失败")}}),b=()=>{if(!s){Cn.warning("请输入验证码");return}g()};return D.jsxs("div",{className:"space-y-4",children:[D.jsxs("div",{className:"text-sm text-gray-500 mb-4 text-center",children:["为了您的账号安全,请先进行安全验证",D.jsx("br",{}),"请输入验证码,短信将发送至您的绑定手机"," ",D.jsx("span",{className:"font-semibold text-gray-700",children:n})]}),D.jsx(io,{name:"verificationCode",placeholder:"请输入验证码",value:s,type:"number",autoFocus:!0,onValueChange:S=>l(S),suffix:D.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-white inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onClick:()=>p(),disabled:!!c||h,children:h?"发送中...":c?`${Math.round(f/1e3)}s 后重新获取`:"获取验证码"})}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:b,disabled:y,children:y?"验证中...":"下一步"})]})}function bD({account:e,onNext:n}){const[o,s]=v.useState(""),{mutate:l,isPending:c}=Vr({mutationFn:()=>Xb({account:e,idcard:o,t:"reset-password"}),onSuccess:f=>{f?.forget_password_key?n(f.forget_password_key):Cn.warning("安全验证失败")}}),u=()=>{if(!o){Cn.warning("请输入身份证号");return}l()};return D.jsxs("div",{className:"space-y-4",children:[D.jsxs("div",{className:"text-sm text-gray-500 mb-4 text-center",children:["为了您的账号安全,请先进行安全验证",D.jsx("br",{}),"该账号未绑定手机,请输入注册时填写的身份证信息"]}),D.jsx(io,{name:"idCard",placeholder:"请输入身份证号",value:o,autoFocus:!0,onChange:f=>s(f.currentTarget.value)}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:u,disabled:c,children:c?"验证中...":"下一步"})]})}function SD({onClose:e,defaultAccount:n=""}){const[o,s]=v.useState("account"),[l,c]=v.useState(n),[u,f]=v.useState(""),[p,h]=v.useState(2),[g,y]=v.useState(""),b=v.useRef(null);v.useEffect(()=>{if(!window.captchaZtgame){const E=document.createElement("script");E.type="text/javascript",E.src=`//nocaptcha.ztgame.com/static/verify2023/js/captcha.js?t=${new Date().getTime()}`,E.id="captchaZtgameScript",document.body.appendChild(E)}},[]);const{mutate:S,isPending:x}=Vr({mutationFn:async E=>Q4({account:l,nonce:E.nonce,token:E.token,type:E.type,t:"ctoken"}),onSuccess:E=>{const L=E.type;h(L),f(L===2?E.mobile:""),s("secure"),b.current?.onRefresh?.()},onError:E=>{Cn.warning(E?.message||E?.detail||"验证失败"),b.current?.onRefresh?.()}}),T=()=>{if(!l){Cn.warning("请输入账号信息");return}window.captchaZtgame?window.captchaZtgame.init({appsceneid:"pt_login",usertype:"1",el:"captcha-forget-pwd",mode:"popup",styles:{width:300,height:150,fontSize:"14px"},popupStyles:{position:"fixed",top:"30%",left:"50%",zIndex:"99999"},onSuccess(E,L){b.current=E,S({nonce:E.nonce,token:L.data.token,type:E.type})},onLoad(E){b.current=E,E.onVerify()},onFail(){}}):Cn.warning("安全组件未加载,请稍后再试")},C=E=>{y(E),s("reset")};return D.jsxs("div",{className:"space-y-5",children:[D.jsx("div",{id:"captcha-forget-pwd"}),o==="account"&&D.jsxs("div",{className:"space-y-4",children:[D.jsxs("div",{className:"text-sm text-gray-500 mb-4 text-center",children:["为了您的账号安全,请先进行安全验证",D.jsx("br",{}),"请输入您的账号信息"]}),D.jsx(io,{name:"account",placeholder:"请输入账号信息",autoFocus:!0,value:l,onChange:E=>c(E.currentTarget.value)}),D.jsx(Xn,{className:"mt-6 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",onClick:T,disabled:!l||x,children:x?"验证中...":"下一步"})]}),o==="secure"&&(p===2?D.jsx(vD,{account:l,mobile:u,onNext:C}):D.jsx(bD,{account:l,onNext:C})),o==="reset"&&D.jsx(uD,{account:l,forgetPasswordKey:g,onSuccess:()=>s("success")}),o==="success"&&D.jsxs("div",{className:"space-y-4 py-6",children:[D.jsx("div",{className:"text-center text-lg font-medium text-gray-800",children:"重置密码成功"}),D.jsx(Xn,{className:"mt-6 h-10 w-full bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200",onClick:()=>e?.(),children:"返回登录"})]})]})}var n1;function Se(e,n,o){function s(f,p){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:p,constr:u,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),n(f,p);const h=u.prototype,g=Object.keys(h);for(let y=0;y<g.length;y++){const b=g[y];b in f||(f[b]=h[b].bind(f))}}const l=o?.Parent??Object;class c extends l{}Object.defineProperty(c,"name",{value:e});function u(f){var p;const h=o?.Parent?new c:this;s(h,f),(p=h._zod).deferred??(p.deferred=[]);for(const g of h._zod.deferred)g();return h}return Object.defineProperty(u,"init",{value:s}),Object.defineProperty(u,Symbol.hasInstance,{value:f=>o?.Parent&&f instanceof o.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class zs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class r1 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}(n1=globalThis).__zod_globalConfig??(n1.__zod_globalConfig={});const _h=globalThis.__zod_globalConfig;function Gi(e){return _h}function o1(e){const n=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,l])=>n.indexOf(+s)===-1).map(([s,l])=>l)}function Ah(e,n){return typeof n=="bigint"?n.toString():n}function Mh(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Dh(e){return e==null}function zh(e){const n=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(n,o)}const i1=Symbol("evaluating");function Vt(e,n,o){let s;Object.defineProperty(e,n,{get(){if(s!==i1)return s===void 0&&(s=i1,s=o()),s},set(l){Object.defineProperty(e,n,{value:l})},configurable:!0})}function Yi(e,n,o){Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0})}function ri(...e){const n={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(n,s)}return Object.defineProperties({},n)}function s1(e){return JSON.stringify(e)}function wD(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const a1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function nu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const xD=Mh(()=>{if(_h.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Qa(e){if(nu(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const o=n.prototype;return!(nu(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function l1(e){return Qa(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const ED=new Set(["string","number","symbol"]);function ru(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oi(e,n,o){const s=new e._zod.constr(n??e._zod.def);return(!n||o?.parent)&&(s._zod.parent=e),s}function it(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function TD(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}function CD(e,n){const o=e._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=ri(e._zod.def,{get shape(){const u={};for(const f in n){if(!(f in o.shape))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(u[f]=o.shape[f])}return Yi(this,"shape",u),u},checks:[]});return oi(e,c)}function RD(e,n){const o=e._zod.def,s=o.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=ri(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const f in n){if(!(f in o.shape))throw new Error(`Unrecognized key: "${f}"`);n[f]&&delete u[f]}return Yi(this,"shape",u),u},checks:[]});return oi(e,c)}function OD(e,n){if(!Qa(n))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0){const c=e._zod.def.shape;for(const u in n)if(Object.getOwnPropertyDescriptor(c,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const l=ri(e._zod.def,{get shape(){const c={...e._zod.def.shape,...n};return Yi(this,"shape",c),c}});return oi(e,l)}function _D(e,n){if(!Qa(n))throw new Error("Invalid input to safeExtend: expected a plain object");const o=ri(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n};return Yi(this,"shape",s),s}});return oi(e,o)}function AD(e,n){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const o=ri(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n._zod.def.shape};return Yi(this,"shape",s),s},get catchall(){return n._zod.def.catchall},checks:n._zod.def.checks??[]});return oi(e,o)}function MD(e,n,o){const l=n._zod.def.checks;if(l&&l.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=ri(n._zod.def,{get shape(){const f=n._zod.def.shape,p={...f};if(o)for(const h in o){if(!(h in f))throw new Error(`Unrecognized key: "${h}"`);o[h]&&(p[h]=e?new e({type:"optional",innerType:f[h]}):f[h])}else for(const h in f)p[h]=e?new e({type:"optional",innerType:f[h]}):f[h];return Yi(this,"shape",p),p},checks:[]});return oi(n,u)}function DD(e,n,o){const s=ri(n._zod.def,{get shape(){const l=n._zod.def.shape,c={...l};if(o)for(const u in o){if(!(u in c))throw new Error(`Unrecognized key: "${u}"`);o[u]&&(c[u]=new e({type:"nonoptional",innerType:l[u]}))}else for(const u in l)c[u]=new e({type:"nonoptional",innerType:l[u]});return Yi(this,"shape",c),c}});return oi(n,s)}function Ns(e,n=0){if(e.aborted===!0)return!0;for(let o=n;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function zD(e,n=0){if(e.aborted===!0)return!0;for(let o=n;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function c1(e,n){return n.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function ou(e){return typeof e=="string"?e:e?.message}function $i(e,n,o){const s=e.message?e.message:ou(e.inst?._zod.def?.error?.(e))??ou(n?.error?.(e))??ou(o.customError?.(e))??ou(o.localeError?.(e))??"Invalid input",{inst:l,continue:c,input:u,...f}=e;return f.path??(f.path=[]),f.message=s,n?.reportInput&&(f.input=u),f}function Nh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ka(...e){const[n,o,s]=e;return typeof n=="string"?{message:n,code:"custom",input:o,inst:s}:{...n}}const u1=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Ah,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},f1=Se("$ZodError",u1),d1=Se("$ZodError",u1,{Parent:Error});function Wa(e,n=o=>o.message){const o={},s=[];for(const l of e.issues)l.path.length>0?(o[l.path[0]]=o[l.path[0]]||[],o[l.path[0]].push(n(l))):s.push(n(l));return{formErrors:s,fieldErrors:o}}function ND(e,n=o=>o.message){const o={_errors:[]},s=(l,c=[])=>{for(const u of l.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(f=>s({issues:f},[...c,...u.path]));else if(u.code==="invalid_key")s({issues:u.issues},[...c,...u.path]);else if(u.code==="invalid_element")s({issues:u.issues},[...c,...u.path]);else{const f=[...c,...u.path];if(f.length===0)o._errors.push(n(u));else{let p=o,h=0;for(;h<f.length;){const g=f[h];h===f.length-1?(p[g]=p[g]||{_errors:[]},p[g]._errors.push(n(u))):p[g]=p[g]||{_errors:[]},p=p[g],h++}}}};return s(e),o}const kh=e=>(n,o,s,l)=>{const c=s?{...s,async:!1}:{async:!1},u=n._zod.run({value:o,issues:[]},c);if(u instanceof Promise)throw new zs;if(u.issues.length){const f=new(l?.Err??e)(u.issues.map(p=>$i(p,c,Gi())));throw a1(f,l?.callee),f}return u.value},jh=e=>async(n,o,s,l)=>{const c=s?{...s,async:!0}:{async:!0};let u=n._zod.run({value:o,issues:[]},c);if(u instanceof Promise&&(u=await u),u.issues.length){const f=new(l?.Err??e)(u.issues.map(p=>$i(p,c,Gi())));throw a1(f,l?.callee),f}return u.value},iu=e=>(n,o,s)=>{const l=s?{...s,async:!1}:{async:!1},c=n._zod.run({value:o,issues:[]},l);if(c instanceof Promise)throw new zs;return c.issues.length?{success:!1,error:new(e??f1)(c.issues.map(u=>$i(u,l,Gi())))}:{success:!0,data:c.value}},kD=iu(d1),su=e=>async(n,o,s)=>{const l=s?{...s,async:!0}:{async:!0};let c=n._zod.run({value:o,issues:[]},l);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(u=>$i(u,l,Gi())))}:{success:!0,data:c.value}},jD=su(d1),LD=e=>(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return kh(e)(n,o,l)},PD=e=>(n,o,s)=>kh(e)(n,o,s),ID=e=>async(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return jh(e)(n,o,l)},UD=e=>async(n,o,s)=>jh(e)(n,o,s),VD=e=>(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return iu(e)(n,o,l)},HD=e=>(n,o,s)=>iu(e)(n,o,s),FD=e=>async(n,o,s)=>{const l=s?{...s,direction:"backward"}:{direction:"backward"};return su(e)(n,o,l)},BD=e=>async(n,o,s)=>su(e)(n,o,s),ZD=/^[cC][0-9a-z]{6,}$/,GD=/^[0-9a-z]+$/,YD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$D=/^[0-9a-vA-V]{20}$/,qD=/^[A-Za-z0-9]{27}$/,XD=/^[a-zA-Z0-9_-]{21}$/,QD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,KD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,h1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,WD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,JD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ez(){return new RegExp(JD,"u")}const tz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,rz=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,oz=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iz=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,p1=/^[A-Za-z0-9_-]*$/,sz=/^https?$/,az=/^\+[1-9]\d{6,14}$/,m1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",lz=new RegExp(`^${m1}$`);function g1(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function cz(e){return new RegExp(`^${g1(e)}$`)}function uz(e){const n=g1({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${n}(?:${o.join("|")})`;return new RegExp(`^${m1}T(?:${s})$`)}const fz=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},dz=/^[^A-Z]*$/,hz=/^[^a-z]*$/,so=Se("$ZodCheck",(e,n)=>{var o;e._zod??(e._zod={}),e._zod.def=n,(o=e._zod).onattach??(o.onattach=[])}),pz=Se("$ZodCheckMaxLength",(e,n)=>{var o;so.init(e,n),(o=e._zod.def).when??(o.when=s=>{const l=s.value;return!Dh(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<l&&(s._zod.bag.maximum=n.maximum)}),e._zod.check=s=>{const l=s.value;if(l.length<=n.maximum)return;const u=Nh(l);s.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:l,inst:e,continue:!n.abort})}}),mz=Se("$ZodCheckMinLength",(e,n)=>{var o;so.init(e,n),(o=e._zod.def).when??(o.when=s=>{const l=s.value;return!Dh(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>l&&(s._zod.bag.minimum=n.minimum)}),e._zod.check=s=>{const l=s.value;if(l.length>=n.minimum)return;const u=Nh(l);s.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:l,inst:e,continue:!n.abort})}}),gz=Se("$ZodCheckLengthEquals",(e,n)=>{var o;so.init(e,n),(o=e._zod.def).when??(o.when=s=>{const l=s.value;return!Dh(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag;l.minimum=n.length,l.maximum=n.length,l.length=n.length}),e._zod.check=s=>{const l=s.value,c=l.length;if(c===n.length)return;const u=Nh(l),f=c>n.length;s.issues.push({origin:u,...f?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!n.abort})}}),au=Se("$ZodCheckStringFormat",(e,n)=>{var o,s;so.init(e,n),e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=n.format,n.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(n.pattern))}),n.pattern?(o=e._zod).check??(o.check=l=>{n.pattern.lastIndex=0,!n.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:n.format,input:l.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(s=e._zod).check??(s.check=()=>{})}),yz=Se("$ZodCheckRegex",(e,n)=>{au.init(e,n),e._zod.check=o=>{n.pattern.lastIndex=0,!n.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),vz=Se("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=dz),au.init(e,n)}),bz=Se("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=hz),au.init(e,n)}),Sz=Se("$ZodCheckIncludes",(e,n)=>{so.init(e,n);const o=ru(n.includes),s=new RegExp(typeof n.position=="number"?`^.{${n.position}}${o}`:o);n.pattern=s,e._zod.onattach.push(l=>{const c=l._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=l=>{l.value.includes(n.includes,n.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:l.value,inst:e,continue:!n.abort})}}),wz=Se("$ZodCheckStartsWith",(e,n)=>{so.init(e,n);const o=new RegExp(`^${ru(n.prefix)}.*`);n.pattern??(n.pattern=o),e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(n.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:s.value,inst:e,continue:!n.abort})}}),xz=Se("$ZodCheckEndsWith",(e,n)=>{so.init(e,n);const o=new RegExp(`.*${ru(n.suffix)}$`);n.pattern??(n.pattern=o),e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(n.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:s.value,inst:e,continue:!n.abort})}}),Ez=Se("$ZodCheckOverwrite",(e,n)=>{so.init(e,n),e._zod.check=o=>{o.value=n.tx(o.value)}});class Tz{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const s=n.split(`
19
19
  `).filter(u=>u),l=Math.min(...s.map(u=>u.length-u.trimStart().length)),c=s.map(u=>u.slice(l)).map(u=>" ".repeat(this.indent*2)+u);for(const u of c)this.content.push(u)}compile(){const n=Function,o=this?.args,l=[...(this?.content??[""]).map(c=>` ${c}`)];return new n(...o,l.join(`
20
- `))}}const Ez={major:4,minor:4,patch:3},bn=Se("$ZodType",(e,n)=>{var o;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Ez;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const l of s)for(const c of l._zod.onattach)c(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const l=(u,f,p)=>{let h=Ns(u),g;for(const y of f){if(y._zod.def.when){if(MD(u)||!y._zod.def.when(u))continue}else if(h)continue;const b=u.issues.length,S=y._zod.check(u);if(S instanceof Promise&&p?.async===!1)throw new zs;if(g||S instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await S,u.issues.length!==b&&(h||(h=Ns(u,b)))});else{if(u.issues.length===b)continue;h||(h=Ns(u,b))}}return g?g.then(()=>u):u},c=(u,f,p)=>{if(Ns(u))return u.aborted=!0,u;const h=l(f,s,p);if(h instanceof Promise){if(p.async===!1)throw new zs;return h.then(g=>e._zod.parse(g,p))}return e._zod.parse(h,p)};e._zod.run=(u,f)=>{if(f.skipChecks)return e._zod.parse(u,f);if(f.direction==="backward"){const h=e._zod.parse({value:u.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(g=>c(g,u,f)):c(h,u,f)}const p=e._zod.parse(u,f);if(p instanceof Promise){if(f.async===!1)throw new zs;return p.then(h=>l(h,s,f))}return l(p,s,f)}}Vt(e,"~standard",()=>({validate:l=>{try{const c=zD(e,l);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return ND(e,l).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Lh=Se("$ZodString",(e,n)=>{bn.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cz(e._zod.bag),e._zod.parse=(o,s)=>{if(n.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),en=Se("$ZodStringFormat",(e,n)=>{su.init(e,n),Lh.init(e,n)}),Tz=Se("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=XD),en.init(e,n)}),Cz=Se("$ZodUUID",(e,n)=>{if(n.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(s===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=d1(s))}else n.pattern??(n.pattern=d1());en.init(e,n)}),Rz=Se("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=QD),en.init(e,n)}),Oz=Se("$ZodURL",(e,n)=>{en.init(e,n),e._zod.check=o=>{try{const s=o.value.trim();if(!n.normalize&&n.protocol?.source===oz.source&&!/^https?:\/\//i.test(s)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:e,continue:!n.abort});return}const l=new URL(s);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(l.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:o.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:o.value,inst:e,continue:!n.abort})),n.normalize?o.value=l.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!n.abort})}}}),_z=Se("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=WD()),en.init(e,n)}),Az=Se("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=$D),en.init(e,n)}),Mz=Se("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=FD),en.init(e,n)}),Dz=Se("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=BD),en.init(e,n)}),zz=Se("$ZodULID",(e,n)=>{n.pattern??(n.pattern=ZD),en.init(e,n)}),Nz=Se("$ZodXID",(e,n)=>{n.pattern??(n.pattern=GD),en.init(e,n)}),kz=Se("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=YD),en.init(e,n)}),jz=Se("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=lz(n)),en.init(e,n)}),Lz=Se("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=sz),en.init(e,n)}),Pz=Se("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=az(n)),en.init(e,n)}),Iz=Se("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=qD),en.init(e,n)}),Uz=Se("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=JD),en.init(e,n),e._zod.bag.format="ipv4"}),Vz=Se("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=ez),en.init(e,n),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!n.abort})}}}),Hz=Se("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=tz),en.init(e,n)}),Fz=Se("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=nz),en.init(e,n),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[l,c]=s;if(!c)throw new Error;const u=Number(c);if(`${u}`!==c)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${l}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!n.abort})}}});function g1(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Bz=Se("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=rz),en.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{g1(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!n.abort})}});function Zz(e){if(!h1.test(e))return!1;const n=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=n.padEnd(Math.ceil(n.length/4)*4,"=");return g1(o)}const Gz=Se("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=h1),en.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{Zz(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!n.abort})}}),Yz=Se("$ZodE164",(e,n)=>{n.pattern??(n.pattern=iz),en.init(e,n)});function $z(e,n=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const l=JSON.parse(atob(s));return!("typ"in l&&l?.typ!=="JWT"||!l.alg||n&&(!("alg"in l)||l.alg!==n))}catch{return!1}}const qz=Se("$ZodJWT",(e,n)=>{en.init(e,n),e._zod.check=o=>{$z(o.value,n.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!n.abort})}}),Xz=Se("$ZodUnknown",(e,n)=>{bn.init(e,n),e._zod.parse=o=>o}),Qz=Se("$ZodNever",(e,n)=>{bn.init(e,n),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)});function y1(e,n,o){e.issues.length&&n.issues.push(...l1(o,e.issues)),n.value[o]=e.value}const Kz=Se("$ZodArray",(e,n)=>{bn.init(e,n),e._zod.parse=(o,s)=>{const l=o.value;if(!Array.isArray(l))return o.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),o;o.value=Array(l.length);const c=[];for(let u=0;u<l.length;u++){const f=l[u],p=n.element._zod.run({value:f,issues:[]},s);p instanceof Promise?c.push(p.then(h=>y1(h,o,u))):y1(p,o,u)}return c.length?Promise.all(c).then(()=>o):o}});function au(e,n,o,s,l,c){const u=o in s;if(e.issues.length){if(l&&c&&!u)return;n.issues.push(...l1(o,e.issues))}if(!u&&!l){e.issues.length||n.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}e.value===void 0?u&&(n.value[o]=void 0):n.value[o]=e.value}function v1(e){const n=Object.keys(e.shape);for(const s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=xD(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(o)}}function b1(e,n,o,s,l,c){const u=[],f=l.keySet,p=l.catchall._zod,h=p.def.type,g=p.optin==="optional",y=p.optout==="optional";for(const b in n){if(b==="__proto__"||f.has(b))continue;if(h==="never"){u.push(b);continue}const S=p.run({value:n[b],issues:[]},s);S instanceof Promise?e.push(S.then(x=>au(x,o,b,n,g,y))):au(S,o,b,n,g,y)}return u.length&&o.issues.push({code:"unrecognized_keys",keys:u,input:n,inst:c}),e.length?Promise.all(e).then(()=>o):o}const Wz=Se("$ZodObject",(e,n)=>{if(bn.init(e,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const f=n.shape;Object.defineProperty(n,"shape",{get:()=>{const p={...f};return Object.defineProperty(n,"shape",{value:p}),p}})}const s=Mh(()=>v1(n));Vt(e._zod,"propValues",()=>{const f=n.shape,p={};for(const h in f){const g=f[h]._zod;if(g.values){p[h]??(p[h]=new Set);for(const y of g.values)p[h].add(y)}}return p});const l=tu,c=n.catchall;let u;e._zod.parse=(f,p)=>{u??(u=s.value);const h=f.value;if(!l(h))return f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f;f.value={};const g=[],y=u.shape;for(const b of u.keys){const S=y[b],x=S._zod.optin==="optional",T=S._zod.optout==="optional",C=S._zod.run({value:h[b],issues:[]},p);C instanceof Promise?g.push(C.then(E=>au(E,f,b,h,x,T))):au(C,f,b,h,x,T)}return c?b1(g,h,f,p,s.value,e):g.length?Promise.all(g).then(()=>f):f}}),Jz=Se("$ZodObjectJIT",(e,n)=>{Wz.init(e,n);const o=e._zod.parse,s=Mh(()=>v1(n)),l=b=>{const S=new xz(["shape","payload","ctx"]),x=s.value,T=j=>{const k=i1(j);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};S.write("const input = payload.value;");const C=Object.create(null);let E=0;for(const j of x.keys)C[j]=`key_${E++}`;S.write("const newResult = {};");for(const j of x.keys){const k=C[j],R=i1(j),N=b[j],z=N?._zod?.optin==="optional",P=N?._zod?.optout==="optional";S.write(`const ${k} = ${T(j)};`),z&&P?S.write(`
20
+ `))}}const Cz={major:4,minor:4,patch:3},bn=Se("$ZodType",(e,n)=>{var o;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Cz;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const l of s)for(const c of l._zod.onattach)c(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const l=(u,f,p)=>{let h=Ns(u),g;for(const y of f){if(y._zod.def.when){if(zD(u)||!y._zod.def.when(u))continue}else if(h)continue;const b=u.issues.length,S=y._zod.check(u);if(S instanceof Promise&&p?.async===!1)throw new zs;if(g||S instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await S,u.issues.length!==b&&(h||(h=Ns(u,b)))});else{if(u.issues.length===b)continue;h||(h=Ns(u,b))}}return g?g.then(()=>u):u},c=(u,f,p)=>{if(Ns(u))return u.aborted=!0,u;const h=l(f,s,p);if(h instanceof Promise){if(p.async===!1)throw new zs;return h.then(g=>e._zod.parse(g,p))}return e._zod.parse(h,p)};e._zod.run=(u,f)=>{if(f.skipChecks)return e._zod.parse(u,f);if(f.direction==="backward"){const h=e._zod.parse({value:u.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(g=>c(g,u,f)):c(h,u,f)}const p=e._zod.parse(u,f);if(p instanceof Promise){if(f.async===!1)throw new zs;return p.then(h=>l(h,s,f))}return l(p,s,f)}}Vt(e,"~standard",()=>({validate:l=>{try{const c=kD(e,l);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return jD(e,l).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Lh=Se("$ZodString",(e,n)=>{bn.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??fz(e._zod.bag),e._zod.parse=(o,s)=>{if(n.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),en=Se("$ZodStringFormat",(e,n)=>{au.init(e,n),Lh.init(e,n)}),Rz=Se("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=KD),en.init(e,n)}),Oz=Se("$ZodUUID",(e,n)=>{if(n.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(s===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=h1(s))}else n.pattern??(n.pattern=h1());en.init(e,n)}),_z=Se("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=WD),en.init(e,n)}),Az=Se("$ZodURL",(e,n)=>{en.init(e,n),e._zod.check=o=>{try{const s=o.value.trim();if(!n.normalize&&n.protocol?.source===sz.source&&!/^https?:\/\//i.test(s)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:e,continue:!n.abort});return}const l=new URL(s);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(l.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:o.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:o.value,inst:e,continue:!n.abort})),n.normalize?o.value=l.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!n.abort})}}}),Mz=Se("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=ez()),en.init(e,n)}),Dz=Se("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=XD),en.init(e,n)}),zz=Se("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=ZD),en.init(e,n)}),Nz=Se("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=GD),en.init(e,n)}),kz=Se("$ZodULID",(e,n)=>{n.pattern??(n.pattern=YD),en.init(e,n)}),jz=Se("$ZodXID",(e,n)=>{n.pattern??(n.pattern=$D),en.init(e,n)}),Lz=Se("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=qD),en.init(e,n)}),Pz=Se("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=uz(n)),en.init(e,n)}),Iz=Se("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=lz),en.init(e,n)}),Uz=Se("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=cz(n)),en.init(e,n)}),Vz=Se("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=QD),en.init(e,n)}),Hz=Se("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=tz),en.init(e,n),e._zod.bag.format="ipv4"}),Fz=Se("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=nz),en.init(e,n),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!n.abort})}}}),Bz=Se("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=rz),en.init(e,n)}),Zz=Se("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=oz),en.init(e,n),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[l,c]=s;if(!c)throw new Error;const u=Number(c);if(`${u}`!==c)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${l}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!n.abort})}}});function y1(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Gz=Se("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=iz),en.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{y1(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!n.abort})}});function Yz(e){if(!p1.test(e))return!1;const n=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=n.padEnd(Math.ceil(n.length/4)*4,"=");return y1(o)}const $z=Se("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=p1),en.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{Yz(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!n.abort})}}),qz=Se("$ZodE164",(e,n)=>{n.pattern??(n.pattern=az),en.init(e,n)});function Xz(e,n=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const l=JSON.parse(atob(s));return!("typ"in l&&l?.typ!=="JWT"||!l.alg||n&&(!("alg"in l)||l.alg!==n))}catch{return!1}}const Qz=Se("$ZodJWT",(e,n)=>{en.init(e,n),e._zod.check=o=>{Xz(o.value,n.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!n.abort})}}),Kz=Se("$ZodUnknown",(e,n)=>{bn.init(e,n),e._zod.parse=o=>o}),Wz=Se("$ZodNever",(e,n)=>{bn.init(e,n),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)});function v1(e,n,o){e.issues.length&&n.issues.push(...c1(o,e.issues)),n.value[o]=e.value}const Jz=Se("$ZodArray",(e,n)=>{bn.init(e,n),e._zod.parse=(o,s)=>{const l=o.value;if(!Array.isArray(l))return o.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),o;o.value=Array(l.length);const c=[];for(let u=0;u<l.length;u++){const f=l[u],p=n.element._zod.run({value:f,issues:[]},s);p instanceof Promise?c.push(p.then(h=>v1(h,o,u))):v1(p,o,u)}return c.length?Promise.all(c).then(()=>o):o}});function lu(e,n,o,s,l,c){const u=o in s;if(e.issues.length){if(l&&c&&!u)return;n.issues.push(...c1(o,e.issues))}if(!u&&!l){e.issues.length||n.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}e.value===void 0?u&&(n.value[o]=void 0):n.value[o]=e.value}function b1(e){const n=Object.keys(e.shape);for(const s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=TD(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(o)}}function S1(e,n,o,s,l,c){const u=[],f=l.keySet,p=l.catchall._zod,h=p.def.type,g=p.optin==="optional",y=p.optout==="optional";for(const b in n){if(b==="__proto__"||f.has(b))continue;if(h==="never"){u.push(b);continue}const S=p.run({value:n[b],issues:[]},s);S instanceof Promise?e.push(S.then(x=>lu(x,o,b,n,g,y))):lu(S,o,b,n,g,y)}return u.length&&o.issues.push({code:"unrecognized_keys",keys:u,input:n,inst:c}),e.length?Promise.all(e).then(()=>o):o}const e6=Se("$ZodObject",(e,n)=>{if(bn.init(e,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const f=n.shape;Object.defineProperty(n,"shape",{get:()=>{const p={...f};return Object.defineProperty(n,"shape",{value:p}),p}})}const s=Mh(()=>b1(n));Vt(e._zod,"propValues",()=>{const f=n.shape,p={};for(const h in f){const g=f[h]._zod;if(g.values){p[h]??(p[h]=new Set);for(const y of g.values)p[h].add(y)}}return p});const l=nu,c=n.catchall;let u;e._zod.parse=(f,p)=>{u??(u=s.value);const h=f.value;if(!l(h))return f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f;f.value={};const g=[],y=u.shape;for(const b of u.keys){const S=y[b],x=S._zod.optin==="optional",T=S._zod.optout==="optional",C=S._zod.run({value:h[b],issues:[]},p);C instanceof Promise?g.push(C.then(E=>lu(E,f,b,h,x,T))):lu(C,f,b,h,x,T)}return c?S1(g,h,f,p,s.value,e):g.length?Promise.all(g).then(()=>f):f}}),t6=Se("$ZodObjectJIT",(e,n)=>{e6.init(e,n);const o=e._zod.parse,s=Mh(()=>b1(n)),l=b=>{const S=new Tz(["shape","payload","ctx"]),x=s.value,T=j=>{const k=s1(j);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};S.write("const input = payload.value;");const C=Object.create(null);let E=0;for(const j of x.keys)C[j]=`key_${E++}`;S.write("const newResult = {};");for(const j of x.keys){const k=C[j],R=s1(j),N=b[j],z=N?._zod?.optin==="optional",P=N?._zod?.optout==="optional";S.write(`const ${k} = ${T(j)};`),z&&P?S.write(`
21
21
  if (${k}.issues.length) {
22
22
  if (${R} in input) {
23
23
  payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
@@ -76,6 +76,6 @@ components: `).concat($g(c),"\n```")),[2,u]}})})}}}function zC(){if(!(window.__f
76
76
  }
77
77
  }
78
78
 
79
- `)}S.write("payload.value = newResult;"),S.write("return payload;");const L=S.compile();return(j,k)=>L(b,j,k)};let c;const u=tu,f=!_h.jitless,h=f&&SD.value,g=n.catchall;let y;e._zod.parse=(b,S)=>{y??(y=s.value);const x=b.value;return u(x)?f&&h&&S?.async===!1&&S.jitless!==!0?(c||(c=l(n.shape)),b=c(b,S),g?b1([],x,b,S,y,e):b):o(b,S):(b.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),b)}});function S1(e,n,o,s){for(const c of e)if(c.issues.length===0)return n.value=c.value,n;const l=e.filter(c=>!Ns(c));return l.length===1?(n.value=l[0].value,l[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:o,errors:e.map(c=>c.issues.map(u=>Gi(u,s,Bi())))}),n)}const e6=Se("$ZodUnion",(e,n)=>{bn.init(e,n),Vt(e._zod,"optin",()=>n.options.some(s=>s._zod.optin==="optional")?"optional":void 0),Vt(e._zod,"optout",()=>n.options.some(s=>s._zod.optout==="optional")?"optional":void 0),Vt(e._zod,"values",()=>{if(n.options.every(s=>s._zod.values))return new Set(n.options.flatMap(s=>Array.from(s._zod.values)))}),Vt(e._zod,"pattern",()=>{if(n.options.every(s=>s._zod.pattern)){const s=n.options.map(l=>l._zod.pattern);return new RegExp(`^(${s.map(l=>zh(l.source)).join("|")})$`)}});const o=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(s,l)=>{if(o)return o(s,l);let c=!1;const u=[];for(const f of n.options){const p=f._zod.run({value:s.value,issues:[]},l);if(p instanceof Promise)u.push(p),c=!0;else{if(p.issues.length===0)return p;u.push(p)}}return c?Promise.all(u).then(f=>S1(f,s,e,l)):S1(u,s,e,l)}}),t6=Se("$ZodIntersection",(e,n)=>{bn.init(e,n),e._zod.parse=(o,s)=>{const l=o.value,c=n.left._zod.run({value:l,issues:[]},s),u=n.right._zod.run({value:l,issues:[]},s);return c instanceof Promise||u instanceof Promise?Promise.all([c,u]).then(([p,h])=>w1(o,p,h)):w1(o,c,u)}});function Ph(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Qa(e)&&Qa(n)){const o=Object.keys(n),s=Object.keys(e).filter(c=>o.indexOf(c)!==-1),l={...e,...n};for(const c of s){const u=Ph(e[c],n[c]);if(!u.valid)return{valid:!1,mergeErrorPath:[c,...u.mergeErrorPath]};l[c]=u.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const l=e[s],c=n[s],u=Ph(l,c);if(!u.valid)return{valid:!1,mergeErrorPath:[s,...u.mergeErrorPath]};o.push(u.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function w1(e,n,o){const s=new Map;let l;for(const f of n.issues)if(f.code==="unrecognized_keys"){l??(l=f);for(const p of f.keys)s.has(p)||s.set(p,{}),s.get(p).l=!0}else e.issues.push(f);for(const f of o.issues)if(f.code==="unrecognized_keys")for(const p of f.keys)s.has(p)||s.set(p,{}),s.get(p).r=!0;else e.issues.push(f);const c=[...s].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(c.length&&l&&e.issues.push({...l,keys:c}),Ns(e))return e;const u=Ph(n.value,o.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const n6=Se("$ZodEnum",(e,n)=>{bn.init(e,n);const o=r1(n.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(l=>wD.has(typeof l)).map(l=>typeof l=="string"?nu(l):l.toString()).join("|")})$`),e._zod.parse=(l,c)=>{const u=l.value;return s.has(u)||l.issues.push({code:"invalid_value",values:o,input:u,inst:e}),l}}),r6=Se("$ZodTransform",(e,n)=>{bn.init(e,n),e._zod.optin="optional",e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new n1(e.constructor.name);const l=n.transform(o.value,o);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(u=>(o.value=u,o.fallback=!0,o));if(l instanceof Promise)throw new zs;return o.value=l,o.fallback=!0,o}});function x1(e,n){return n===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const E1=Se("$ZodOptional",(e,n)=>{bn.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Vt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Vt(e._zod,"pattern",()=>{const o=n.innerType._zod.pattern;return o?new RegExp(`^(${zh(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(n.innerType._zod.optin==="optional"){const l=o.value,c=n.innerType._zod.run(o,s);return c instanceof Promise?c.then(u=>x1(u,l)):x1(c,l)}return o.value===void 0?o:n.innerType._zod.run(o,s)}}),o6=Se("$ZodExactOptional",(e,n)=>{E1.init(e,n),Vt(e._zod,"values",()=>n.innerType._zod.values),Vt(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(o,s)=>n.innerType._zod.run(o,s)}),i6=Se("$ZodNullable",(e,n)=>{bn.init(e,n),Vt(e._zod,"optin",()=>n.innerType._zod.optin),Vt(e._zod,"optout",()=>n.innerType._zod.optout),Vt(e._zod,"pattern",()=>{const o=n.innerType._zod.pattern;return o?new RegExp(`^(${zh(o.source)}|null)$`):void 0}),Vt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:n.innerType._zod.run(o,s)}),s6=Se("$ZodDefault",(e,n)=>{bn.init(e,n),e._zod.optin="optional",Vt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);if(o.value===void 0)return o.value=n.defaultValue,o;const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(c=>T1(c,n)):T1(l,n)}});function T1(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const a6=Se("$ZodPrefault",(e,n)=>{bn.init(e,n),e._zod.optin="optional",Vt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=n.defaultValue),n.innerType._zod.run(o,s))}),l6=Se("$ZodNonOptional",(e,n)=>{bn.init(e,n),Vt(e._zod,"values",()=>{const o=n.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(c=>C1(c,e)):C1(l,e)}});function C1(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const c6=Se("$ZodCatch",(e,n)=>{bn.init(e,n),e._zod.optin="optional",Vt(e._zod,"optout",()=>n.innerType._zod.optout),Vt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(c=>(o.value=c.value,c.issues.length&&(o.value=n.catchValue({...o,error:{issues:c.issues.map(u=>Gi(u,s,Bi()))},input:o.value}),o.issues=[],o.fallback=!0),o)):(o.value=l.value,l.issues.length&&(o.value=n.catchValue({...o,error:{issues:l.issues.map(c=>Gi(c,s,Bi()))},input:o.value}),o.issues=[],o.fallback=!0),o)}}),u6=Se("$ZodPipe",(e,n)=>{bn.init(e,n),Vt(e._zod,"values",()=>n.in._zod.values),Vt(e._zod,"optin",()=>n.in._zod.optin),Vt(e._zod,"optout",()=>n.out._zod.optout),Vt(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const c=n.out._zod.run(o,s);return c instanceof Promise?c.then(u=>lu(u,n.in,s)):lu(c,n.in,s)}const l=n.in._zod.run(o,s);return l instanceof Promise?l.then(c=>lu(c,n.out,s)):lu(l,n.out,s)}});function lu(e,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},o)}const f6=Se("$ZodReadonly",(e,n)=>{bn.init(e,n),Vt(e._zod,"propValues",()=>n.innerType._zod.propValues),Vt(e._zod,"values",()=>n.innerType._zod.values),Vt(e._zod,"optin",()=>n.innerType?._zod?.optin),Vt(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(R1):R1(l)}});function R1(e){return e.value=Object.freeze(e.value),e}const d6=Se("$ZodCustom",(e,n)=>{so.init(e,n),bn.init(e,n),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,l=n.fn(s);if(l instanceof Promise)return l.then(c=>O1(c,o,s,e));O1(l,o,s,e)}});function O1(e,n,o,s){if(!e){const l={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),n.issues.push(Ka(l))}}var _1;class h6{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...o){const s=o[0];return this._map.set(n,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const o=this._map.get(n);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(n),this}get(n){const o=n._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const l={...s,...this._map.get(n)};return Object.keys(l).length?l:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function p6(){return new h6}(_1=globalThis).__zod_globalRegistry??(_1.__zod_globalRegistry=p6());const Ja=globalThis.__zod_globalRegistry;function m6(e,n){return new e({type:"string",...it(n)})}function g6(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...it(n)})}function A1(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...it(n)})}function y6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...it(n)})}function v6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...it(n)})}function b6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...it(n)})}function S6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...it(n)})}function w6(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...it(n)})}function x6(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...it(n)})}function E6(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...it(n)})}function T6(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...it(n)})}function C6(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...it(n)})}function R6(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...it(n)})}function O6(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...it(n)})}function _6(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...it(n)})}function A6(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...it(n)})}function M6(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...it(n)})}function D6(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...it(n)})}function z6(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...it(n)})}function N6(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...it(n)})}function k6(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...it(n)})}function j6(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...it(n)})}function L6(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...it(n)})}function P6(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...it(n)})}function I6(e,n){return new e({type:"string",format:"date",check:"string_format",...it(n)})}function U6(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...it(n)})}function V6(e,n){return new e({type:"string",format:"duration",check:"string_format",...it(n)})}function H6(e){return new e({type:"unknown"})}function F6(e,n){return new e({type:"never",...it(n)})}function M1(e,n){return new dz({check:"max_length",...it(n),maximum:e})}function cu(e,n){return new hz({check:"min_length",...it(n),minimum:e})}function D1(e,n){return new pz({check:"length_equals",...it(n),length:e})}function B6(e,n){return new mz({check:"string_format",format:"regex",...it(n),pattern:e})}function Z6(e){return new gz({check:"string_format",format:"lowercase",...it(e)})}function G6(e){return new yz({check:"string_format",format:"uppercase",...it(e)})}function Y6(e,n){return new vz({check:"string_format",format:"includes",...it(n),includes:e})}function $6(e,n){return new bz({check:"string_format",format:"starts_with",...it(n),prefix:e})}function q6(e,n){return new Sz({check:"string_format",format:"ends_with",...it(n),suffix:e})}function ks(e){return new wz({check:"overwrite",tx:e})}function X6(e){return ks(n=>n.normalize(e))}function Q6(){return ks(e=>e.trim())}function K6(){return ks(e=>e.toLowerCase())}function W6(){return ks(e=>e.toUpperCase())}function J6(){return ks(e=>bD(e))}function eN(e,n,o){return new e({type:"array",element:n,...it(o)})}function tN(e,n,o){return new e({type:"custom",check:"custom",fn:n,...it(o)})}function nN(e,n){const o=rN(s=>(s.addIssue=l=>{if(typeof l=="string")s.issues.push(Ka(l,s.value,o._zod.def));else{const c=l;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=s.value),c.inst??(c.inst=o),c.continue??(c.continue=!o._zod.def.abort),s.issues.push(Ka(c))}},e(s.value,s)),n);return o}function rN(e,n){const o=new so({check:"custom",...it(n)});return o._zod.check=e,o}function z1(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ja,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function kn(e,n,o={path:[],schemaPath:[]}){var s;const l=e._zod.def,c=n.seen.get(e);if(c)return c.count++,o.schemaPath.includes(e)&&(c.cycle=o.path),c.schema;const u={schema:{},count:1,cycle:void 0,path:o.path};n.seen.set(e,u);const f=e._zod.toJSONSchema?.();if(f)u.schema=f;else{const g={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,u.schema,g);else{const b=u.schema,S=n.processors[l.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);S(e,n,b,g)}const y=e._zod.parent;y&&(u.ref||(u.ref=y),kn(y,n,g),n.seen.get(y).isParent=!0)}const p=n.metadataRegistry.get(e);return p&&Object.assign(u.schema,p),n.io==="input"&&Qn(e)&&(delete u.schema.examples,delete u.schema.default),n.io==="input"&&"_prefault"in u.schema&&((s=u.schema).default??(s.default=u.schema._prefault)),delete u.schema._prefault,n.seen.get(e).schema}function N1(e,n){const o=e.seen.get(n);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=new Map;for(const u of e.seen.entries()){const f=e.metadataRegistry.get(u[0])?.id;if(f){const p=s.get(f);if(p&&p!==u[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(f,u[0])}}const l=u=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const y=e.external.registry.get(u[0])?.id,b=e.external.uri??(x=>x);if(y)return{ref:b(y)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${b("__shared")}#/${f}/${S}`}}if(u[1]===o)return{ref:"#"};const h=`#/${f}/`,g=u[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:h+g}},c=u=>{if(u[1].schema.$ref)return;const f=u[1],{ref:p,defId:h}=l(u);f.def={...f.schema},h&&(f.defId=h);const g=f.schema;for(const y in g)delete g[y];g.$ref=p};if(e.cycles==="throw")for(const u of e.seen.entries()){const f=u[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
79
+ `)}S.write("payload.value = newResult;"),S.write("return payload;");const L=S.compile();return(j,k)=>L(b,j,k)};let c;const u=nu,f=!_h.jitless,h=f&&xD.value,g=n.catchall;let y;e._zod.parse=(b,S)=>{y??(y=s.value);const x=b.value;return u(x)?f&&h&&S?.async===!1&&S.jitless!==!0?(c||(c=l(n.shape)),b=c(b,S),g?S1([],x,b,S,y,e):b):o(b,S):(b.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),b)}});function w1(e,n,o,s){for(const c of e)if(c.issues.length===0)return n.value=c.value,n;const l=e.filter(c=>!Ns(c));return l.length===1?(n.value=l[0].value,l[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:o,errors:e.map(c=>c.issues.map(u=>$i(u,s,Gi())))}),n)}const n6=Se("$ZodUnion",(e,n)=>{bn.init(e,n),Vt(e._zod,"optin",()=>n.options.some(s=>s._zod.optin==="optional")?"optional":void 0),Vt(e._zod,"optout",()=>n.options.some(s=>s._zod.optout==="optional")?"optional":void 0),Vt(e._zod,"values",()=>{if(n.options.every(s=>s._zod.values))return new Set(n.options.flatMap(s=>Array.from(s._zod.values)))}),Vt(e._zod,"pattern",()=>{if(n.options.every(s=>s._zod.pattern)){const s=n.options.map(l=>l._zod.pattern);return new RegExp(`^(${s.map(l=>zh(l.source)).join("|")})$`)}});const o=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(s,l)=>{if(o)return o(s,l);let c=!1;const u=[];for(const f of n.options){const p=f._zod.run({value:s.value,issues:[]},l);if(p instanceof Promise)u.push(p),c=!0;else{if(p.issues.length===0)return p;u.push(p)}}return c?Promise.all(u).then(f=>w1(f,s,e,l)):w1(u,s,e,l)}}),r6=Se("$ZodIntersection",(e,n)=>{bn.init(e,n),e._zod.parse=(o,s)=>{const l=o.value,c=n.left._zod.run({value:l,issues:[]},s),u=n.right._zod.run({value:l,issues:[]},s);return c instanceof Promise||u instanceof Promise?Promise.all([c,u]).then(([p,h])=>x1(o,p,h)):x1(o,c,u)}});function Ph(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Qa(e)&&Qa(n)){const o=Object.keys(n),s=Object.keys(e).filter(c=>o.indexOf(c)!==-1),l={...e,...n};for(const c of s){const u=Ph(e[c],n[c]);if(!u.valid)return{valid:!1,mergeErrorPath:[c,...u.mergeErrorPath]};l[c]=u.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const l=e[s],c=n[s],u=Ph(l,c);if(!u.valid)return{valid:!1,mergeErrorPath:[s,...u.mergeErrorPath]};o.push(u.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function x1(e,n,o){const s=new Map;let l;for(const f of n.issues)if(f.code==="unrecognized_keys"){l??(l=f);for(const p of f.keys)s.has(p)||s.set(p,{}),s.get(p).l=!0}else e.issues.push(f);for(const f of o.issues)if(f.code==="unrecognized_keys")for(const p of f.keys)s.has(p)||s.set(p,{}),s.get(p).r=!0;else e.issues.push(f);const c=[...s].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(c.length&&l&&e.issues.push({...l,keys:c}),Ns(e))return e;const u=Ph(n.value,o.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const o6=Se("$ZodEnum",(e,n)=>{bn.init(e,n);const o=o1(n.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(l=>ED.has(typeof l)).map(l=>typeof l=="string"?ru(l):l.toString()).join("|")})$`),e._zod.parse=(l,c)=>{const u=l.value;return s.has(u)||l.issues.push({code:"invalid_value",values:o,input:u,inst:e}),l}}),i6=Se("$ZodTransform",(e,n)=>{bn.init(e,n),e._zod.optin="optional",e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new r1(e.constructor.name);const l=n.transform(o.value,o);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(u=>(o.value=u,o.fallback=!0,o));if(l instanceof Promise)throw new zs;return o.value=l,o.fallback=!0,o}});function E1(e,n){return n===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const T1=Se("$ZodOptional",(e,n)=>{bn.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Vt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Vt(e._zod,"pattern",()=>{const o=n.innerType._zod.pattern;return o?new RegExp(`^(${zh(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(n.innerType._zod.optin==="optional"){const l=o.value,c=n.innerType._zod.run(o,s);return c instanceof Promise?c.then(u=>E1(u,l)):E1(c,l)}return o.value===void 0?o:n.innerType._zod.run(o,s)}}),s6=Se("$ZodExactOptional",(e,n)=>{T1.init(e,n),Vt(e._zod,"values",()=>n.innerType._zod.values),Vt(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(o,s)=>n.innerType._zod.run(o,s)}),a6=Se("$ZodNullable",(e,n)=>{bn.init(e,n),Vt(e._zod,"optin",()=>n.innerType._zod.optin),Vt(e._zod,"optout",()=>n.innerType._zod.optout),Vt(e._zod,"pattern",()=>{const o=n.innerType._zod.pattern;return o?new RegExp(`^(${zh(o.source)}|null)$`):void 0}),Vt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:n.innerType._zod.run(o,s)}),l6=Se("$ZodDefault",(e,n)=>{bn.init(e,n),e._zod.optin="optional",Vt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);if(o.value===void 0)return o.value=n.defaultValue,o;const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(c=>C1(c,n)):C1(l,n)}});function C1(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const c6=Se("$ZodPrefault",(e,n)=>{bn.init(e,n),e._zod.optin="optional",Vt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=n.defaultValue),n.innerType._zod.run(o,s))}),u6=Se("$ZodNonOptional",(e,n)=>{bn.init(e,n),Vt(e._zod,"values",()=>{const o=n.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(c=>R1(c,e)):R1(l,e)}});function R1(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const f6=Se("$ZodCatch",(e,n)=>{bn.init(e,n),e._zod.optin="optional",Vt(e._zod,"optout",()=>n.innerType._zod.optout),Vt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(c=>(o.value=c.value,c.issues.length&&(o.value=n.catchValue({...o,error:{issues:c.issues.map(u=>$i(u,s,Gi()))},input:o.value}),o.issues=[],o.fallback=!0),o)):(o.value=l.value,l.issues.length&&(o.value=n.catchValue({...o,error:{issues:l.issues.map(c=>$i(c,s,Gi()))},input:o.value}),o.issues=[],o.fallback=!0),o)}}),d6=Se("$ZodPipe",(e,n)=>{bn.init(e,n),Vt(e._zod,"values",()=>n.in._zod.values),Vt(e._zod,"optin",()=>n.in._zod.optin),Vt(e._zod,"optout",()=>n.out._zod.optout),Vt(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const c=n.out._zod.run(o,s);return c instanceof Promise?c.then(u=>cu(u,n.in,s)):cu(c,n.in,s)}const l=n.in._zod.run(o,s);return l instanceof Promise?l.then(c=>cu(c,n.out,s)):cu(l,n.out,s)}});function cu(e,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},o)}const h6=Se("$ZodReadonly",(e,n)=>{bn.init(e,n),Vt(e._zod,"propValues",()=>n.innerType._zod.propValues),Vt(e._zod,"values",()=>n.innerType._zod.values),Vt(e._zod,"optin",()=>n.innerType?._zod?.optin),Vt(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);const l=n.innerType._zod.run(o,s);return l instanceof Promise?l.then(O1):O1(l)}});function O1(e){return e.value=Object.freeze(e.value),e}const p6=Se("$ZodCustom",(e,n)=>{so.init(e,n),bn.init(e,n),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,l=n.fn(s);if(l instanceof Promise)return l.then(c=>_1(c,o,s,e));_1(l,o,s,e)}});function _1(e,n,o,s){if(!e){const l={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),n.issues.push(Ka(l))}}var A1;class m6{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...o){const s=o[0];return this._map.set(n,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const o=this._map.get(n);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(n),this}get(n){const o=n._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const l={...s,...this._map.get(n)};return Object.keys(l).length?l:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function g6(){return new m6}(A1=globalThis).__zod_globalRegistry??(A1.__zod_globalRegistry=g6());const Ja=globalThis.__zod_globalRegistry;function y6(e,n){return new e({type:"string",...it(n)})}function v6(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...it(n)})}function M1(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...it(n)})}function b6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...it(n)})}function S6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...it(n)})}function w6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...it(n)})}function x6(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...it(n)})}function E6(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...it(n)})}function T6(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...it(n)})}function C6(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...it(n)})}function R6(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...it(n)})}function O6(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...it(n)})}function _6(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...it(n)})}function A6(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...it(n)})}function M6(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...it(n)})}function D6(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...it(n)})}function z6(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...it(n)})}function N6(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...it(n)})}function k6(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...it(n)})}function j6(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...it(n)})}function L6(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...it(n)})}function P6(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...it(n)})}function I6(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...it(n)})}function U6(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...it(n)})}function V6(e,n){return new e({type:"string",format:"date",check:"string_format",...it(n)})}function H6(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...it(n)})}function F6(e,n){return new e({type:"string",format:"duration",check:"string_format",...it(n)})}function B6(e){return new e({type:"unknown"})}function Z6(e,n){return new e({type:"never",...it(n)})}function D1(e,n){return new pz({check:"max_length",...it(n),maximum:e})}function uu(e,n){return new mz({check:"min_length",...it(n),minimum:e})}function z1(e,n){return new gz({check:"length_equals",...it(n),length:e})}function G6(e,n){return new yz({check:"string_format",format:"regex",...it(n),pattern:e})}function Y6(e){return new vz({check:"string_format",format:"lowercase",...it(e)})}function $6(e){return new bz({check:"string_format",format:"uppercase",...it(e)})}function q6(e,n){return new Sz({check:"string_format",format:"includes",...it(n),includes:e})}function X6(e,n){return new wz({check:"string_format",format:"starts_with",...it(n),prefix:e})}function Q6(e,n){return new xz({check:"string_format",format:"ends_with",...it(n),suffix:e})}function ks(e){return new Ez({check:"overwrite",tx:e})}function K6(e){return ks(n=>n.normalize(e))}function W6(){return ks(e=>e.trim())}function J6(){return ks(e=>e.toLowerCase())}function eN(){return ks(e=>e.toUpperCase())}function tN(){return ks(e=>wD(e))}function nN(e,n,o){return new e({type:"array",element:n,...it(o)})}function rN(e,n,o){return new e({type:"custom",check:"custom",fn:n,...it(o)})}function oN(e,n){const o=iN(s=>(s.addIssue=l=>{if(typeof l=="string")s.issues.push(Ka(l,s.value,o._zod.def));else{const c=l;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=s.value),c.inst??(c.inst=o),c.continue??(c.continue=!o._zod.def.abort),s.issues.push(Ka(c))}},e(s.value,s)),n);return o}function iN(e,n){const o=new so({check:"custom",...it(n)});return o._zod.check=e,o}function N1(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ja,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function jn(e,n,o={path:[],schemaPath:[]}){var s;const l=e._zod.def,c=n.seen.get(e);if(c)return c.count++,o.schemaPath.includes(e)&&(c.cycle=o.path),c.schema;const u={schema:{},count:1,cycle:void 0,path:o.path};n.seen.set(e,u);const f=e._zod.toJSONSchema?.();if(f)u.schema=f;else{const g={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,u.schema,g);else{const b=u.schema,S=n.processors[l.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);S(e,n,b,g)}const y=e._zod.parent;y&&(u.ref||(u.ref=y),jn(y,n,g),n.seen.get(y).isParent=!0)}const p=n.metadataRegistry.get(e);return p&&Object.assign(u.schema,p),n.io==="input"&&Qn(e)&&(delete u.schema.examples,delete u.schema.default),n.io==="input"&&"_prefault"in u.schema&&((s=u.schema).default??(s.default=u.schema._prefault)),delete u.schema._prefault,n.seen.get(e).schema}function k1(e,n){const o=e.seen.get(n);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=new Map;for(const u of e.seen.entries()){const f=e.metadataRegistry.get(u[0])?.id;if(f){const p=s.get(f);if(p&&p!==u[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(f,u[0])}}const l=u=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const y=e.external.registry.get(u[0])?.id,b=e.external.uri??(x=>x);if(y)return{ref:b(y)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${b("__shared")}#/${f}/${S}`}}if(u[1]===o)return{ref:"#"};const h=`#/${f}/`,g=u[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:h+g}},c=u=>{if(u[1].schema.$ref)return;const f=u[1],{ref:p,defId:h}=l(u);f.def={...f.schema},h&&(f.defId=h);const g=f.schema;for(const y in g)delete g[y];g.$ref=p};if(e.cycles==="throw")for(const u of e.seen.entries()){const f=u[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
80
80
 
81
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const f=u[1];if(n===u[0]){c(u);continue}if(e.external){const h=e.external.registry.get(u[0])?.id;if(n!==u[0]&&h){c(u);continue}}if(e.metadataRegistry.get(u[0])?.id){c(u);continue}if(f.cycle){c(u);continue}if(f.count>1&&e.reused==="ref"){c(u);continue}}}function k1(e,n){const o=e.seen.get(n);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=f=>{const p=e.seen.get(f);if(p.ref===null)return;const h=p.def??p.schema,g={...h},y=p.ref;if(p.ref=null,y){s(y);const S=e.seen.get(y),x=S.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(x)):Object.assign(h,x),Object.assign(h,g),f._zod.parent===y)for(const C in h)C==="$ref"||C==="allOf"||C in g||delete h[C];if(x.$ref&&S.def)for(const C in h)C==="$ref"||C==="allOf"||C in S.def&&JSON.stringify(h[C])===JSON.stringify(S.def[C])&&delete h[C]}const b=f._zod.parent;if(b&&b!==y){s(b);const S=e.seen.get(b);if(S?.schema.$ref&&(h.$ref=S.schema.$ref,S.def))for(const x in h)x==="$ref"||x==="allOf"||x in S.def&&JSON.stringify(h[x])===JSON.stringify(S.def[x])&&delete h[x]}e.override({zodSchema:f,jsonSchema:h,path:p.path??[]})};for(const f of[...e.seen.entries()].reverse())s(f[0]);const l={};if(e.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?l.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?l.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const f=e.external.registry.get(n)?.id;if(!f)throw new Error("Schema is missing an `id` property");l.$id=e.external.uri(f)}Object.assign(l,o.def??o.schema);const c=e.metadataRegistry.get(n)?.id;c!==void 0&&l.id===c&&delete l.id;const u=e.external?.defs??{};for(const f of e.seen.entries()){const p=f[1];p.def&&p.defId&&(p.def.id===p.defId&&delete p.def.id,u[p.defId]=p.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?l.$defs=u:l.definitions=u);try{const f=JSON.parse(JSON.stringify(l));return Object.defineProperty(f,"~standard",{value:{...n["~standard"],jsonSchema:{input:uu(n,"input",e.processors),output:uu(n,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Qn(e,n){const o=n??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return Qn(s.element,o);if(s.type==="set")return Qn(s.valueType,o);if(s.type==="lazy")return Qn(s.getter(),o);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return Qn(s.innerType,o);if(s.type==="intersection")return Qn(s.left,o)||Qn(s.right,o);if(s.type==="record"||s.type==="map")return Qn(s.keyType,o)||Qn(s.valueType,o);if(s.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Qn(s.in,o)||Qn(s.out,o);if(s.type==="object"){for(const l in s.shape)if(Qn(s.shape[l],o))return!0;return!1}if(s.type==="union"){for(const l of s.options)if(Qn(l,o))return!0;return!1}if(s.type==="tuple"){for(const l of s.items)if(Qn(l,o))return!0;return!!(s.rest&&Qn(s.rest,o))}return!1}const oN=(e,n={})=>o=>{const s=z1({...o,processors:n});return kn(e,s),N1(s,e),k1(s,e)},uu=(e,n,o={})=>s=>{const{libraryOptions:l,target:c}=s??{},u=z1({...l??{},target:c,io:n,processors:o});return kn(e,u),N1(u,e),k1(u,e)},iN={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sN=(e,n,o,s)=>{const l=o;l.type="string";const{minimum:c,maximum:u,format:f,patterns:p,contentEncoding:h}=e._zod.bag;if(typeof c=="number"&&(l.minLength=c),typeof u=="number"&&(l.maxLength=u),f&&(l.format=iN[f]??f,l.format===""&&delete l.format,f==="time"&&delete l.format),h&&(l.contentEncoding=h),p&&p.size>0){const g=[...p];g.length===1?l.pattern=g[0].source:g.length>1&&(l.allOf=[...g.map(y=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},aN=(e,n,o,s)=>{o.not={}},lN=(e,n,o,s)=>{},cN=(e,n,o,s)=>{const l=e._zod.def,c=r1(l.entries);c.every(u=>typeof u=="number")&&(o.type="number"),c.every(u=>typeof u=="string")&&(o.type="string"),o.enum=c},uN=(e,n,o,s)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},fN=(e,n,o,s)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},dN=(e,n,o,s)=>{const l=o,c=e._zod.def,{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(l.minItems=u),typeof f=="number"&&(l.maxItems=f),l.type="array",l.items=kn(c.element,n,{...s,path:[...s.path,"items"]})},hN=(e,n,o,s)=>{const l=o,c=e._zod.def;l.type="object",l.properties={};const u=c.shape;for(const h in u)l.properties[h]=kn(u[h],n,{...s,path:[...s.path,"properties",h]});const f=new Set(Object.keys(u)),p=new Set([...f].filter(h=>{const g=c.shape[h]._zod;return n.io==="input"?g.optin===void 0:g.optout===void 0}));p.size>0&&(l.required=Array.from(p)),c.catchall?._zod.def.type==="never"?l.additionalProperties=!1:c.catchall?c.catchall&&(l.additionalProperties=kn(c.catchall,n,{...s,path:[...s.path,"additionalProperties"]})):n.io==="output"&&(l.additionalProperties=!1)},pN=(e,n,o,s)=>{const l=e._zod.def,c=l.inclusive===!1,u=l.options.map((f,p)=>kn(f,n,{...s,path:[...s.path,c?"oneOf":"anyOf",p]}));c?o.oneOf=u:o.anyOf=u},mN=(e,n,o,s)=>{const l=e._zod.def,c=kn(l.left,n,{...s,path:[...s.path,"allOf",0]}),u=kn(l.right,n,{...s,path:[...s.path,"allOf",1]}),f=h=>"allOf"in h&&Object.keys(h).length===1,p=[...f(c)?c.allOf:[c],...f(u)?u.allOf:[u]];o.allOf=p},gN=(e,n,o,s)=>{const l=e._zod.def,c=kn(l.innerType,n,s),u=n.seen.get(e);n.target==="openapi-3.0"?(u.ref=l.innerType,o.nullable=!0):o.anyOf=[c,{type:"null"}]},yN=(e,n,o,s)=>{const l=e._zod.def;kn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType},vN=(e,n,o,s)=>{const l=e._zod.def;kn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType,o.default=JSON.parse(JSON.stringify(l.defaultValue))},bN=(e,n,o,s)=>{const l=e._zod.def;kn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType,n.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(l.defaultValue)))},SN=(e,n,o,s)=>{const l=e._zod.def;kn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType;let u;try{u=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=u},wN=(e,n,o,s)=>{const l=e._zod.def,c=l.in._zod.traits.has("$ZodTransform"),u=n.io==="input"?c?l.out:l.in:l.out;kn(u,n,s);const f=n.seen.get(e);f.ref=u},xN=(e,n,o,s)=>{const l=e._zod.def;kn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType,o.readOnly=!0},j1=(e,n,o,s)=>{const l=e._zod.def;kn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType},EN=Se("ZodISODateTime",(e,n)=>{jz.init(e,n),nn.init(e,n)});function TN(e){return P6(EN,e)}const CN=Se("ZodISODate",(e,n)=>{Lz.init(e,n),nn.init(e,n)});function RN(e){return I6(CN,e)}const ON=Se("ZodISOTime",(e,n)=>{Pz.init(e,n),nn.init(e,n)});function _N(e){return U6(ON,e)}const AN=Se("ZodISODuration",(e,n)=>{Iz.init(e,n),nn.init(e,n)});function MN(e){return V6(AN,e)}const _r=Se("ZodError",(e,n)=>{u1.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>DD(e,o)},flatten:{value:o=>Wa(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Ah,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Ah,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),DN=kh(_r),zN=jh(_r),NN=ou(_r),kN=iu(_r),jN=kD(_r),LN=jD(_r),PN=LD(_r),IN=PD(_r),UN=ID(_r),VN=UD(_r),HN=VD(_r),FN=HD(_r),L1=new WeakMap;function fu(e,n,o){const s=Object.getPrototypeOf(e);let l=L1.get(s);if(l||(l=new Set,L1.set(s,l)),!l.has(n)){l.add(n);for(const c in o){const u=o[c];Object.defineProperty(s,c,{configurable:!0,enumerable:!1,get(){const f=u.bind(this);return Object.defineProperty(this,c,{configurable:!0,writable:!0,enumerable:!0,value:f}),f},set(f){Object.defineProperty(this,c,{configurable:!0,writable:!0,enumerable:!0,value:f})}})}}}const Sn=Se("ZodType",(e,n)=>(bn.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:uu(e,"input"),output:uu(e,"output")}}),e.toJSONSchema=oN(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.parse=(o,s)=>DN(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>NN(e,o,s),e.parseAsync=async(o,s)=>zN(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>kN(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>jN(e,o,s),e.decode=(o,s)=>LN(e,o,s),e.encodeAsync=async(o,s)=>PN(e,o,s),e.decodeAsync=async(o,s)=>IN(e,o,s),e.safeEncode=(o,s)=>UN(e,o,s),e.safeDecode=(o,s)=>VN(e,o,s),e.safeEncodeAsync=async(o,s)=>HN(e,o,s),e.safeDecodeAsync=async(o,s)=>FN(e,o,s),fu(e,"ZodType",{check(...o){const s=this.def;return this.clone(ni(s,{checks:[...s.checks??[],...o.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,s){return ri(this,o,s)},brand(){return this},register(o,s){return o.add(this,s),this},refine(o,s){return this.check(k5(o,s))},superRefine(o,s){return this.check(j5(o,s))},overwrite(o){return this.check(ks(o))},optional(){return H1(this)},exactOptional(){return w5(this)},nullable(){return F1(this)},nullish(){return H1(F1(this))},nonoptional(o){return O5(this,o)},array(){return f5(this)},or(o){return p5([this,o])},and(o){return g5(this,o)},transform(o){return Z1(this,b5(o))},default(o){return T5(this,o)},prefault(o){return R5(this,o)},catch(o){return A5(this,o)},pipe(o){return Z1(this,o)},readonly(){return z5(this)},describe(o){const s=this.clone();return Ja.add(s,{description:o}),s},meta(...o){if(o.length===0)return Ja.get(this);const s=this.clone();return Ja.add(s,o[0]),s},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(e,"description",{get(){return Ja.get(e)?.description},configurable:!0}),e)),P1=Se("_ZodString",(e,n)=>{Lh.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(s,l,c)=>sN(e,s,l);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,fu(e,"_ZodString",{regex(...s){return this.check(B6(...s))},includes(...s){return this.check(Y6(...s))},startsWith(...s){return this.check($6(...s))},endsWith(...s){return this.check(q6(...s))},min(...s){return this.check(cu(...s))},max(...s){return this.check(M1(...s))},length(...s){return this.check(D1(...s))},nonempty(...s){return this.check(cu(1,...s))},lowercase(s){return this.check(Z6(s))},uppercase(s){return this.check(G6(s))},trim(){return this.check(Q6())},normalize(...s){return this.check(X6(...s))},toLowerCase(){return this.check(K6())},toUpperCase(){return this.check(W6())},slugify(){return this.check(J6())}})}),BN=Se("ZodString",(e,n)=>{Lh.init(e,n),P1.init(e,n),e.email=o=>e.check(g6(ZN,o)),e.url=o=>e.check(w6(GN,o)),e.jwt=o=>e.check(L6(s5,o)),e.emoji=o=>e.check(x6(YN,o)),e.guid=o=>e.check(A1(I1,o)),e.uuid=o=>e.check(y6(du,o)),e.uuidv4=o=>e.check(v6(du,o)),e.uuidv6=o=>e.check(b6(du,o)),e.uuidv7=o=>e.check(S6(du,o)),e.nanoid=o=>e.check(E6($N,o)),e.guid=o=>e.check(A1(I1,o)),e.cuid=o=>e.check(T6(qN,o)),e.cuid2=o=>e.check(C6(XN,o)),e.ulid=o=>e.check(R6(QN,o)),e.base64=o=>e.check(N6(r5,o)),e.base64url=o=>e.check(k6(o5,o)),e.xid=o=>e.check(O6(KN,o)),e.ksuid=o=>e.check(_6(WN,o)),e.ipv4=o=>e.check(A6(JN,o)),e.ipv6=o=>e.check(M6(e5,o)),e.cidrv4=o=>e.check(D6(t5,o)),e.cidrv6=o=>e.check(z6(n5,o)),e.e164=o=>e.check(j6(i5,o)),e.datetime=o=>e.check(TN(o)),e.date=o=>e.check(RN(o)),e.time=o=>e.check(_N(o)),e.duration=o=>e.check(MN(o))});function js(e){return m6(BN,e)}const nn=Se("ZodStringFormat",(e,n)=>{en.init(e,n),P1.init(e,n)}),ZN=Se("ZodEmail",(e,n)=>{Rz.init(e,n),nn.init(e,n)}),I1=Se("ZodGUID",(e,n)=>{Tz.init(e,n),nn.init(e,n)}),du=Se("ZodUUID",(e,n)=>{Cz.init(e,n),nn.init(e,n)}),GN=Se("ZodURL",(e,n)=>{Oz.init(e,n),nn.init(e,n)}),YN=Se("ZodEmoji",(e,n)=>{_z.init(e,n),nn.init(e,n)}),$N=Se("ZodNanoID",(e,n)=>{Az.init(e,n),nn.init(e,n)}),qN=Se("ZodCUID",(e,n)=>{Mz.init(e,n),nn.init(e,n)}),XN=Se("ZodCUID2",(e,n)=>{Dz.init(e,n),nn.init(e,n)}),QN=Se("ZodULID",(e,n)=>{zz.init(e,n),nn.init(e,n)}),KN=Se("ZodXID",(e,n)=>{Nz.init(e,n),nn.init(e,n)}),WN=Se("ZodKSUID",(e,n)=>{kz.init(e,n),nn.init(e,n)}),JN=Se("ZodIPv4",(e,n)=>{Uz.init(e,n),nn.init(e,n)}),e5=Se("ZodIPv6",(e,n)=>{Vz.init(e,n),nn.init(e,n)}),t5=Se("ZodCIDRv4",(e,n)=>{Hz.init(e,n),nn.init(e,n)}),n5=Se("ZodCIDRv6",(e,n)=>{Fz.init(e,n),nn.init(e,n)}),r5=Se("ZodBase64",(e,n)=>{Bz.init(e,n),nn.init(e,n)}),o5=Se("ZodBase64URL",(e,n)=>{Gz.init(e,n),nn.init(e,n)}),i5=Se("ZodE164",(e,n)=>{Yz.init(e,n),nn.init(e,n)}),s5=Se("ZodJWT",(e,n)=>{qz.init(e,n),nn.init(e,n)}),a5=Se("ZodUnknown",(e,n)=>{Xz.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>lN()});function U1(){return H6(a5)}const l5=Se("ZodNever",(e,n)=>{Qz.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>aN(e,o,s)});function c5(e){return F6(l5,e)}const u5=Se("ZodArray",(e,n)=>{Kz.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>dN(e,o,s,l),e.element=n.element,fu(e,"ZodArray",{min(o,s){return this.check(cu(o,s))},nonempty(o){return this.check(cu(1,o))},max(o,s){return this.check(M1(o,s))},length(o,s){return this.check(D1(o,s))},unwrap(){return this.element}})});function f5(e,n){return eN(u5,e,n)}const d5=Se("ZodObject",(e,n)=>{Jz.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>hN(e,o,s,l),Vt(e,"shape",()=>n.shape),fu(e,"ZodObject",{keyof(){return y5(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:U1()})},loose(){return this.clone({...this._zod.def,catchall:U1()})},strict(){return this.clone({...this._zod.def,catchall:c5()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return CD(this,o)},safeExtend(o){return RD(this,o)},merge(o){return OD(this,o)},pick(o){return ED(this,o)},omit(o){return TD(this,o)},partial(...o){return _D(V1,this,o[0])},required(...o){return AD(B1,this,o[0])}})});function Ih(e,n){const o={type:"object",shape:e??{},...it(n)};return new d5(o)}const h5=Se("ZodUnion",(e,n)=>{e6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>pN(e,o,s,l),e.options=n.options});function p5(e,n){return new h5({type:"union",options:e,...it(n)})}const m5=Se("ZodIntersection",(e,n)=>{t6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>mN(e,o,s,l)});function g5(e,n){return new m5({type:"intersection",left:e,right:n})}const Uh=Se("ZodEnum",(e,n)=>{n6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(s,l,c)=>cN(e,s,l),e.enum=n.entries,e.options=Object.values(n.entries);const o=new Set(Object.keys(n.entries));e.extract=(s,l)=>{const c={};for(const u of s)if(o.has(u))c[u]=n.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Uh({...n,checks:[],...it(l),entries:c})},e.exclude=(s,l)=>{const c={...n.entries};for(const u of s)if(o.has(u))delete c[u];else throw new Error(`Key ${u} not found in enum`);return new Uh({...n,checks:[],...it(l),entries:c})}});function y5(e,n){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Uh({type:"enum",entries:o,...it(n)})}const v5=Se("ZodTransform",(e,n)=>{r6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>fN(e,o),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new n1(e.constructor.name);o.addIssue=c=>{if(typeof c=="string")o.issues.push(Ka(c,o.value,n));else{const u=c;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=o.value),u.inst??(u.inst=e),o.issues.push(Ka(u))}};const l=n.transform(o.value,o);return l instanceof Promise?l.then(c=>(o.value=c,o.fallback=!0,o)):(o.value=l,o.fallback=!0,o)}});function b5(e){return new v5({type:"transform",transform:e})}const V1=Se("ZodOptional",(e,n)=>{E1.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>j1(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function H1(e){return new V1({type:"optional",innerType:e})}const S5=Se("ZodExactOptional",(e,n)=>{o6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>j1(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function w5(e){return new S5({type:"optional",innerType:e})}const x5=Se("ZodNullable",(e,n)=>{i6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>gN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function F1(e){return new x5({type:"nullable",innerType:e})}const E5=Se("ZodDefault",(e,n)=>{s6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>vN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function T5(e,n){return new E5({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():a1(n)}})}const C5=Se("ZodPrefault",(e,n)=>{a6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>bN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function R5(e,n){return new C5({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():a1(n)}})}const B1=Se("ZodNonOptional",(e,n)=>{l6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>yN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function O5(e,n){return new B1({type:"nonoptional",innerType:e,...it(n)})}const _5=Se("ZodCatch",(e,n)=>{c6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>SN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function A5(e,n){return new _5({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const M5=Se("ZodPipe",(e,n)=>{u6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>wN(e,o,s,l),e.in=n.in,e.out=n.out});function Z1(e,n){return new M5({type:"pipe",in:e,out:n})}const D5=Se("ZodReadonly",(e,n)=>{f6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>xN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function z5(e){return new D5({type:"readonly",innerType:e})}const N5=Se("ZodCustom",(e,n)=>{d6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>uN(e,o)});function k5(e,n={}){return tN(N5,e,n)}function j5(e,n){return nN(e,n)}const L5=Ih({account:js().min(1,"请输入账号"),password:js().min(1,"请输入密码")});function P5(){const{gameId:e,onAccountLoginSuccess:n,onLoginSuccess:o,onLoginError:s,triggerRealNameAuth:l,defaultAgreeProtocol:c=!1}=wo(),u=v.useRef(null),[f,p]=v.useState(""),[h,g]=v.useState(""),[y,b]=v.useState(!1),[S,x]=v.useState(c),[T,C]=v.useState(!1),[E,L]=v.useState(!1),[j,k]=v.useState({}),{mutate:R,isPending:N}=Vr({mutationFn:()=>B4({account:f,password:h}),onSuccess:P=>{const K={account:P.account,entity:P.channel_info.entity,token:P.channel_info.token,sign:P.channel_info.sign,accid:P.channel_info.entity.openid,extra_data:P.channel_info.extra_data,gaplaySign:P.channel_info.gaplaySign,realname:P.channel_info.realname};if(Ic(K,P._auth,e),K.realname&&K.realname.reject>=2){l();return}n?.(K),o?.(K)},onError:P=>{s?.(P)}});async function z(P){P.preventDefault();const K=new FormData(P.currentTarget),G=L5.safeParse(Object.fromEntries(K));return G.success?S?(R(),{errors:{}}):(L(!0),{errors:{}}):{errors:Wa(G.error).fieldErrors}}return D.jsxs(D.Fragment,{children:[D.jsxs($c,{ref:u,errors:j,onSubmit:async P=>{const K=await z(P);k(K?.errors||{})},className:"space-y-5",children:[D.jsx(io,{name:"account",placeholder:e==="5327"?"请输入账号":"请输入巨人通行证账号",autoFocus:!0,onChange:P=>p(P.currentTarget.value),prefix:e==="5327"?D.jsx(U4,{className:"size-5 text-gray-400"}):D.jsx(J4,{className:"size-5 text-gray-400"})}),D.jsx(io,{name:"password",type:y?"text":"password",autoComplete:"off",placeholder:"请输入密码",value:h,onValueChange:P=>g(P),prefix:D.jsx(eD,{className:"size-5 text-gray-400"}),suffix:D.jsx("button",{onClick:()=>b(!y),type:"button",className:"text-gray-400 hover:text-gray-600 focus:outline-none",children:y?D.jsx(Gb,{className:"size-5"}):D.jsx(Zb,{className:"size-5"})})}),D.jsxs("section",{children:[D.jsx("div",{className:"flex justify-end mb-1",children:D.jsx(Ds,{title:"忘记密码",open:T,onOpenChange:C,trigger:D.jsx("button",{type:"button",className:"text-[var(--jssdk-primary-color)] text-sm",children:"忘记密码"}),children:D.jsx(vD,{onClose:()=>C(!1),defaultAccount:f})})}),D.jsx(Xa,{className:"w-full",type:"primary",htmlType:"submit",disabled:N,children:"登录"})]}),D.jsx(Jc,{}),D.jsx(Rh,{checked:S,onChange:x})]}),D.jsx(Wb,{open:E,onOpenChange:L,onAgree:()=>{x(!0),R()}})]})}const Yi={trigger:"_trigger_1e3h3_1",popup:"_popup_1e3h3_5",item:"_item_1e3h3_24",indicator:"_indicator_1e3h3_40",itemText:"_itemText_1e3h3_44",itemCode:"_itemCode_1e3h3_48",itemLabel:"_itemLabel_1e3h3_52"};function I5({value:e,onValueChange:n}){const{gameId:o}=wo(),s=n3(),l=v.useMemo(()=>s.find(u=>u.id===e||u.value===e)?.id||e,[s,e]);return D.jsxs(m4,{value:l,onValueChange:c=>{const u=s.find(f=>f.id===c);u&&n?.(u.value)},children:[D.jsxs(v4,{className:Yi.trigger,children:[D.jsx("span",{children:s.find(c=>c.id===l)?.value}),D.jsx(Bb,{className:"size-4"})]}),D.jsx(S4,{children:D.jsx(T4,{className:"outline-none z-[999]",sideOffset:-4,align:"start",children:D.jsx(R4,{className:Yi.popup,children:s.map(({label:c,value:u,id:f})=>D.jsxs(_4,{value:f,className:Yi.item,children:[D.jsx(A4,{className:Yi.indicator,children:D.jsx(Th,{className:"size-3"})}),D.jsxs(D4,{className:Yi.itemText,children:[D.jsx("span",{className:Yi.itemCode,children:u}),D.jsx("span",{className:Yi.itemLabel,children:c})]})]},f))})})})]})}const G1=Ih({phoneNumber:js().regex(/^[1-9]\d{10}$/,"请输入正确的手机号"),verificationCode:js().length(4,"请输入 6 位验证码")});function Y1(){const{mobileLoginConfig:e={},gameId:n,onPhoneLoginSuccess:o,onLoginSuccess:s,onLoginError:l,triggerRealNameAuth:c,defaultAgreeProtocol:u=!1}=wo(),[f,p]=v.useState("86"),[h,g]=v.useState(""),y=v.useRef(null),[b,S]=v.useState(""),[x,T]=v.useState(),[C,E]=v.useState(u),[L,j]=_i.useState({}),[k,R]=v.useState(!1),[N,z]=v.useState(!1),[P,K]=v.useState("login"),[G]=e1({leftTime:x?x*1e3:void 0,interval:1e3,onEnd(){T(void 0)}}),{mutate:q,isPending:te}=Vr({mutationFn:()=>Z4({mobile:h,countryCode:f,type:e.smsType}),onSuccess:O=>{R(!0),T(O.lock_time),Cn.success("验证码已发送,请注意查收")}}),{mutate:ee,isPending:F}=Vr({mutationFn:async()=>{const O=await G4({mobile:h,countryCode:f,captcha:b});T(void 0);const U={account:O.account,entity:O.channel_info.entity,token:O.channel_info.token,sign:O.channel_info.sign,accid:O.channel_info.entity.openid,extra_data:O.channel_info.extra_data,gaplaySign:O.channel_info.gaplaySign,realname:O.channel_info.realname};if(Ic(U,O._auth,n),U.realname&&U.realname.reject>=2){c();return}return o&&await o(U),s?.(U),O},onError:O=>{l?.(O)}});function I(){const O=new FormData(y.current),U=G1.pick({phoneNumber:!0}).safeParse(Object.fromEntries(O));if(!U.success){j(Wa(U.error).fieldErrors);return}if(!C){K("sendCode"),z(!0);return}q()}async function _(O){O.preventDefault();const U=new FormData(O.currentTarget),B=G1.safeParse(Object.fromEntries(U));return B.success?C?(ee(),{errors:{}}):(K("login"),z(!0),{errors:{}}):{errors:Wa(B.error).fieldErrors}}return D.jsxs(D.Fragment,{children:[D.jsxs($c,{ref:y,errors:L,onSubmit:async O=>{const U=await _(O);j(U.errors)},className:"space-y-5",children:[D.jsx(io,{name:"phoneNumber",placeholder:"请输入手机号码",autoFocus:!0,type:"tel",onChange:O=>g(O.currentTarget.value),prefix:D.jsx(I5,{value:f,onValueChange:p})}),D.jsx(io,{name:"verificationCode",placeholder:"请输入验证码",value:b,type:"number",onValueChange:O=>{const U=O;S(U),U.length===4&&k&&setTimeout(()=>{y.current?.requestSubmit()},0)},suffix:D.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-white inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onClick:()=>I(),disabled:!!x||te,children:te?"发送中...":x?`${Math.round(G/1e3)}s 后重新获取`:"获取验证码"})}),D.jsx(Xa,{className:ln("my-5 w-full",e.buttonClassName),disabled:F,type:"primary",htmlType:"submit",children:F?"登录中...":e.buttonText||"登录"}),D.jsx(Jc,{}),D.jsx(Rh,{checked:C,onChange:E})]}),D.jsx(Wb,{open:N,onOpenChange:z,onAgree:()=>{E(!0),P==="sendCode"?q():ee()}})]})}function U5(e){return D.jsxs("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...e,children:[D.jsx("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",className:"fill-current"}),D.jsx("path",{d:"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",className:"fill-current"})]})}function V5({children:e,title:n,description:o,content:s,classNames:l={}}){return D.jsxs(WM,{children:[D.jsx(e4,{className:l.trigger,delay:0,children:e}),D.jsxs(n4,{children:[D.jsx(f4,{className:ln("fixed inset-0 bg-black/20 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",l.backdrop)}),D.jsx(r4,{sideOffset:8,className:l.positioner,children:D.jsxs(l4,{className:ln("origin-[var(--transform-origin)] bg-white p-1 rounded shadow-sm text-gray-900 transition-[transform,scale,opacity] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 dark:shadow-none dark:-outline-offset-1 dark:outline-gray-300",l.popup),children:[D.jsx(c4,{className:ln("data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",l.arrow),children:D.jsx(U5,{})}),n&&D.jsx(d4,{className:"text-base font-medium",children:n}),o&&D.jsx(h4,{className:"text-base text-gray-600",children:o}),s]})})]})]})}const $i={uidGet:"_uidGet_os9yc_1",mailCodeGet:"_mailCodeGet_os9yc_5",uidGetPopup:"_uidGetPopup_os9yc_79",uidGetArrow:"_uidGetArrow_os9yc_83",inputControl:"_inputControl_os9yc_86",form:"_form_os9yc_89"};function $1({onUidLoginSuccess:e,customSendUidMailCaptcha:n,customValidateUidMailCaptcha:o}={}){const{gameId:s,autoLoginConfig:l,sceneId:c,onUidLoginSuccess:u,onLoginSuccess:f,onLoginError:p,uidLoginConfig:h={}}=wo(),g=v.useRef(null),[y,b]=v.useState(""),[S,x]=v.useState(""),[T,C]=v.useState(!0),[E,L]=v.useState(!1),[j,{startCountdown:k,resetCountdown:R}]=iD({countStart:120,intervalMs:1e3}),{mutate:N}=Vr({mutationFn:()=>{const G=l.enabled?l.days:void 0;return o?o({gameId:s,captcha:S,expireInDays:T?G:void 0,accountId:y,sceneId:c}):F4({game_id:s,charid:y,captcha_type:"login",captcha:S,expires_day:T?G:void 0,scene_id:c,...h.uidMailExtraParams})},onSuccess:G=>{u?.(G),e?.(G),f?.(G)},onError:G=>{p?.(G)}}),{mutate:z,isPending:P}=Vr({mutationFn:()=>n?n({gameId:s,accountId:y}):H4({game_id:s,captcha_type:"login",charid:y,scene_id:c,...h.uidMailExtraParams}),onSuccess:G=>{k(),Cn.success(G.error)}});async function K(G){G.preventDefault(),N()}return v.useEffect(()=>{S.length===6&&y&&setTimeout(()=>{g.current?.requestSubmit()},0)},[S,y]),v.useEffect(()=>{j===0&&R(),L(j!==120)},[j,R]),D.jsxs($c,{ref:g,onSubmit:K,className:ln("space-y-6",$i.form),autoComplete:"off",children:[["5199","5012"].includes(s)?D.jsx("p",{className:"text-center text-xs text-white/80",children:"请点击游戏右上角“设置”查看账号ID"}):null,D.jsx(io,{name:"accountId",className:ln($i.inputControl,"bg-[var(--jssdk-input-bg-color)]"),inputClassName:"bg-inherit",placeholder:"请输入账号 ID",autoFocus:!0,type:"tel",onChange:G=>b(G.currentTarget.value),prefix:D.jsx(V5,{content:D.jsx("div",{className:ln($i.uidGet,h.uidGetterImageClassName)}),classNames:{backdrop:"z-[992]",positioner:"z-[992]",popup:ln("rounded-2xl shadow-lg",$i.uidGetPopup),arrow:$i.uidGetArrow,trigger:"size-5 lg:size-6 lg:text-2xl rounded-full bg-[var(--jssdk-icon-color)] inline-flex items-center justify-center text-white focus:outline focus:outline-2"},children:D.jsx("span",{children:"!"})})}),D.jsx(io,{name:"verificationCode",className:ln($i.inputControl,"bg-[var(--jssdk-input-bg-color)]"),inputClassName:"bg-inherit",placeholder:"请输入口令码",value:S,type:"tel",onValueChange:G=>x(G),prefix:D.jsx(Ds,{trigger:D.jsx("span",{children:"!"}),classNames:{trigger:"size-5 lg:size-6 lg:text-2xl rounded-full bg-[var(--jssdk-icon-color)] inline-flex items-center justify-center text-white focus:outline focus:outline-2",popup:"w-full lg:w-4/5 lg:max-w-5xl p-0 bg-transparent"},children:D.jsx("div",{className:ln($i.mailCodeGet,h.mailCodeGetterImageClassName)})}),suffix:D.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-[var(--jssdk-primary-foregroud-color)] inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onMouseDown:G=>{G.preventDefault()},onClick:()=>z(),disabled:E||P||!y,children:E?`${j}s`:P?"发送中...":"发送口令码"})}),l.enabled?D.jsx($a,{name:"rememberLogin",children:D.jsxs(Tb,{className:"flex items-center gap-2 text-gray-500",onMouseDown:G=>{G.preventDefault()},children:[D.jsx(Xv,{checked:T,className:"size-5 flex items-center justify-center rounded-full border-2 data-[checked]:border-[var(--jssdk-primary-color)] data-[unchecked]:border-gray-300",onCheckedChange:G=>C(!!G),children:D.jsx(Qv,{children:D.jsx(Th,{className:"size-3 text-[var(--jssdk-primary-color)]",strokeWidth:4})})}),D.jsxs("div",{children:[D.jsx("span",{className:"mr-0.5",children:l.days}),D.jsx("span",{children:"天内自动登录"})]})]})}):null,["5199","5012"].includes(s)?D.jsx("div",{className:"text-[#f59e9e] text-center text-[11px]",children:"请点击游戏内“邮件”查收口令码,未收到请重启游戏再次查看"}):null,D.jsx(Jc,{})]})}const Jn={quickLogin:"_quickLogin_1ibz1_1",quickAccounts:"_quickAccounts_1ibz1_5",selectedAccount:"_selectedAccount_1ibz1_9",accountInfo:"_accountInfo_1ibz1_21",accountName:"_accountName_1ibz1_26",arrow:"_arrow_1ibz1_31",arrowRotate:"_arrowRotate_1ibz1_37",accountList:"_accountList_1ibz1_41",listScroll:"_listScroll_1ibz1_49",accountItem:"_accountItem_1ibz1_58",active:"_active_1ibz1_77",itemName:"_itemName_1ibz1_81",itemInfo:"_itemInfo_1ibz1_86",deleteBtn:"_deleteBtn_1ibz1_97"};function H5(){const{gameId:e,onLoginSuccess:n,triggerRealNameAuth:o,setCurrentLoginType:s,defaultLoginType:l}=wo(),[c,u]=v.useState([]),[f,p]=v.useState(null),[h,g]=v.useState(!1),[y,b]=v.useState(!1),[S,x]=v.useState(!1),[T,C]=v.useState(-1);v.useEffect(()=>{E()},[e]);const E=()=>{const N=Cs(e);u(N),N.length>0?(!f||!N.find(z=>z.openid===f.openid))&&p(N[0]):p(null)},L=N=>{p(c[N]),g(!1)},j=(N,z)=>{N.stopPropagation(),C(z),x(!0)},k=()=>{const N=c[T];if(N){gv(N.openid,e);const z=Cs(e);if(z.length===0){s(l);return}u(z),z.find(P=>P.openid===f?.openid)||p(z[0])}x(!1),C(-1)},R=async()=>{if(f){b(!0);try{uv(f.authorization);const N=await $b(),z={account:N.account,entity:N.channel_info.entity,token:N.channel_info.token,sign:N.channel_info.sign,accid:N.channel_info.entity.openid,extra_data:N.channel_info.extra_data,gaplaySign:N.channel_info.gaplaySign,realname:N.channel_info.realname};if(Ic(z,f.authorization,e),z.realname&&z.realname.reject>=2){o();return}n?.(z)}catch(N){Cn.error(N?.detail),console.error("Quick login failed:",N)}finally{b(!1)}}};return c.length===0?null:D.jsxs("div",{className:Jn.quickLogin,children:[D.jsxs("div",{className:Jn.quickAccounts,children:[D.jsxs("div",{className:Jn.selectedAccount,onClick:()=>g(!h),children:[D.jsx("div",{className:Jn.accountInfo,children:D.jsx("span",{className:Jn.accountName,children:f?.username})}),D.jsx(Bb,{className:ln(Jn.arrow,h&&Jn.arrowRotate)})]}),h&&D.jsx("div",{className:Jn.accountList,children:D.jsx("div",{className:Jn.listScroll,children:c.map((N,z)=>D.jsxs("div",{className:ln(Jn.accountItem,N.openid===f?.openid&&Jn.active),onClick:()=>L(z),children:[D.jsx("div",{className:Jn.itemInfo,children:D.jsx("span",{className:Jn.itemName,children:N.username})}),D.jsx("div",{className:Jn.deleteBtn,onClick:P=>j(P,z),children:D.jsx(I4,{className:"size-4 text-gray-400 hover:text-red-500"})})]},N.openid))})})]}),D.jsx(Xn,{className:"w-full h-10 mt-4 mb-6 text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",disabled:y,onClick:R,children:y?"登录中...":"登录"}),D.jsx(Jc,{}),D.jsx(Ds,{open:S,onOpenChange:x,showCloseIcon:!1,classNames:{popup:"w-[300px] p-6"},children:D.jsxs("div",{className:"text-center",children:[D.jsxs("div",{className:"mb-4",children:[D.jsx("p",{className:"text-base font-medium text-gray-900",children:"是否确认删除该条账号登录记录?"}),D.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"删除后登录记录将不会保存。"})]}),D.jsxs("div",{className:"flex gap-3 mt-6",children:[D.jsx(Xn,{className:"flex-1 h-9 border border-gray-300 rounded-full text-gray-600",onClick:()=>x(!1),children:"取消"}),D.jsx(Xn,{className:"flex-1 h-9 bg-gradient-to-r from-[#497efe] to-[#947afa] text-white rounded-full",onClick:k,children:"确认删除"})]})]})})]})}const F5=Ih({name:js().refine(e=>e.length>=1,{error:"请输入真实姓名",abort:!0}).refine(e=>/^[\u4e00-\u9fa5]{2,6}$/.test(e),{error:"姓名须由 2-6 个汉字组成",abort:!0}),idcard:js().refine(e=>e.length>=1,{error:"请输入身份证号",abort:!0}).refine(e=>/^\d{17}(\d|X|x)$/.test(e),{error:"身份证号格式不正确",abort:!0})});function B5(){const{gameId:e,onLoginSuccess:n,onAccountLoginSuccess:o,onPhoneLoginSuccess:s,showRealNameModal:l,setShowRealNameModal:c,onClose:u}=wo(),[f,p]=v.useState({}),{mutate:h,isPending:g}=Vr({mutationFn:async b=>{const x=Cs(e)[0];if(!x)throw new Error("未找到登录账号信息");await Y4({uid:x.uid,authorization:x.authorization,name:b.name,idcard:b.idcard});const T=await $4(x.authorization),C={account:T.account,entity:T.channel_info.entity,token:T.channel_info.token,sign:T.channel_info.sign,accid:T.channel_info.entity.openid,extra_data:T.channel_info.extra_data,gaplaySign:T.channel_info.gaplaySign,realname:T.channel_info.realname};Cn.success("实名认证成功"),c(!1),C.account?.mobile?s?.(C):o?.(C),n?.(C)},onError:b=>{Cn.error(b.message||"实名认证失败")}}),y=b=>{const S=F5.safeParse(b);if(!S.success){p(Wa(S.error).fieldErrors);return}p({}),h(S.data)};return D.jsxs(Ds,{open:l,onOpenChange:c,title:"实名认证",showCloseIcon:!1,disablePointerDismissal:!0,classNames:{popup:"w-[400px] p-6 rounded-2xl",title:"text-center text-xl mb-3"},children:[D.jsx("div",{className:"text-sm text-gray-500 mb-6 text-center",children:"根据《关于防止未成年人沉迷网络游戏的通知》,游戏用户需使用有效身份证进行实名认证。"}),D.jsxs($c,{onFormSubmit:y,errors:f,className:"space-y-4",children:[D.jsxs($a,{name:"name",children:[D.jsx("div",{className:"flex items-center border border-gray-300 rounded-full px-4 h-12 focus-within:border-[#787bf4] transition-colors",children:D.jsx(wh,{className:"flex-1 outline-none text-base bg-transparent",placeholder:"请输入您的真实姓名"})}),D.jsx(Sh,{className:"mt-1 ml-2 text-xs text-red-500"})]}),D.jsxs($a,{name:"idcard",children:[D.jsx("div",{className:"flex items-center border border-gray-300 rounded-full px-4 h-12 focus-within:border-[#787bf4] transition-colors",children:D.jsx(wh,{className:"flex-1 outline-none text-base bg-transparent",placeholder:"请输入您的身份证号",maxLength:18})}),D.jsx(Sh,{className:"mt-1 ml-2 text-xs text-red-500"})]}),D.jsx(Xn,{type:"submit",className:"w-full h-12 mt-6 text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full font-bold shadow-lg disabled:opacity-50",disabled:g,children:g?"提交中...":"提交认证"}),D.jsx("button",{type:"button",className:"w-full mt-4 text-sm text-gray-400 hover:text-gray-600 transition-colors",onClick:u,children:"退出游戏"})]})]})}const q1={modal:"_modal_1pbx2_2",close:"_close_1pbx2_8"},hu={autoLoginHint:"_autoLoginHint_h58ls_1",left:"_left_h58ls_22",loading:"_loading_h58ls_28",switchBtn:"_switchBtn_h58ls_37"};function Z5({onSwitch:e}){const{autoLoginAccountName:n,setIsAutoLoggingIn:o}=wo(),s=()=>{o(!1),e()};return D.jsxs("div",{className:hu.autoLoginHint,children:[D.jsxs("div",{className:hu.left,children:[D.jsx("div",{className:hu.loading}),D.jsxs("span",{children:[n," 正在登录..."]})]}),D.jsx("button",{className:hu.switchBtn,onClick:s,children:"切换账号"})]})}function G5({open:e,onOpenChange:n}){const{gameId:o,loginTypes:s,currentLoginType:l,closeable:c,isShowGiantLogo:u,onLoginSuccess:f,triggerRealNameAuth:p,showRealNameModal:h,setIsAutoLoggingIn:g,setAutoLoginAccountName:y}=wo(),[b,S]=_i.useState(!1),x=_i.useMemo(()=>Cs(o),[o,e]),T=e&&x.length>0&&!b;v.useEffect(()=>{if(!e){S(!1),g(!1);return}if(T){const j=x[0];(async()=>{if(!j){S(!0);return}g(!0),y(j.username);try{uv(j.authorization);const R=await $b(),N={account:R.account,entity:R.channel_info.entity,token:R.channel_info.token,sign:R.channel_info.sign,accid:R.channel_info.entity.openid,extra_data:R.channel_info.extra_data,gaplaySign:R.channel_info.gaplaySign,realname:R.channel_info.realname};if(Ic(N,j.authorization,o),N.realname&&N.realname.reject>=2){g(!1),S(!0),p();return}g(!1),S(!0),n?.(!1),f?.(N)}catch(R){console.error("Auto quick login failed:",R),g(!1),S(!0)}})()}},[e,o,T]);const C=dv({loginTypes:s,gameId:o}),E=hv({loginTypes:s,gameId:o}),L=fv({loginTypes:s,gameId:o});return D.jsxs(D.Fragment,{children:[T&&D.jsx(Z5,{onSwitch:()=>S(!0)}),D.jsxs(Ds,{open:e&&!T&&!h,onOpenChange:n,classNames:{popup:ln("w-[400px] p-5",q1.modal),close:q1.close,backdrop:"!bg-[var(--jssdk-backdrop-bg-color,rgba(0,0,0,0.7))]"},showCloseIcon:c,children:[u&&!KA(o)&&D.jsx("section",{className:"flex items-center justify-center mb-6",children:D.jsx("img",{src:o==="5327"?"https://cdn-imgs.sdk.mobileztgame.com/paycenter/260511150749961295.png":"https://h5.sdk.mobileztgame.com/dist/bg_logo.png",className:"aspect-[240/85] w-32"})}),D.jsxs("section",{children:[l==="quick"&&D.jsx(H5,{}),l===Gt.MOBILE&&E&&D.jsx(Y1,{}),l===Gt.ROLE_ID&&C&&D.jsx($1,{}),l===Gt.GIANT&&L&&D.jsx(P5,{})]})]}),D.jsx(B5,{})]})}class Y5 extends v.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){console.error("[Login SDK] Uncaught error:",n)}render(){return this.state.hasError?null:this.props.children}}function Vh({open:e,onOpenChange:n,sceneId:o,onPhoneLoginSuccess:s,onAccountLoginSuccess:l,onUidLoginSuccess:c,onLoginSuccess:u,onLoginError:f,closeable:p=!0,mountToaster:h=!0,toastConfigs:g,...y}){const[b]=v.useState(()=>new b2);return D.jsxs(_i.StrictMode,{children:[D.jsx(x2,{client:b,children:D.jsx(wv,{value:{sceneId:o,onPhoneLoginSuccess:s,onAccountLoginSuccess:l,onUidLoginSuccess:c,onLoginSuccess:S=>{s3(o3({gameId:Ui(y.gameId),serverUserInfo:S})),u?.(S)},onLoginError:f,closeable:p,onClose:()=>n?.(!1),...y},children:D.jsx(Y5,{children:D.jsx(G5,{open:e,onOpenChange:n})})})}),h&&D.jsx($A,{toastConfigs:g})]})}const X1=e=>Jd(Ui(e)),Q1=e=>i3(Ui(e)),K1=e=>!!Jd(Ui(e));function W1({loginTypes:e,defaultLoginType:n,gameId:o,styleVars:s,onLoginSuccess:l,onLoginError:c}){const u=Ui(o);if(document.querySelector(".login-sdk-container"))return console.warn("Login component is already active. Multiple instances are not allowed."),{close:()=>{}};const f=document.createElement("div");f.className="login-sdk-container",document.body.appendChild(f);const p=XE.createRoot(f),h=()=>{setTimeout(()=>{p.unmount(),f.remove()},200)},g=()=>{p.render(D.jsx(Vh,{gameId:u,loginTypes:e,defaultLoginType:n,styleVars:s,open:!1,onOpenChange:y,onLoginSuccess:l,onLoginError:c})),h()},y=b=>{b||g()};return p.render(D.jsx(Vh,{gameId:u,loginTypes:e,defaultLoginType:n,styleVars:s,open:!0,onOpenChange:y,onLoginSuccess:l,onLoginError:c})),{close:g}}const $5={init:vv,login:W1,logout:Q1,getUserInfo:X1,isLoggedIn:K1};Un.ConfigProvider=wv,Un.Login=Vh,Un.MobileLogin=Y1,Un.SDK=$5,Un.UidLogin=$1,Un.getGameId=Ui,Un.getUserInfo=X1,Un.init=vv,Un.isLoggedIn=K1,Un.login=W1,Un.logout=Q1,Object.defineProperty(Un,Symbol.toStringTag,{value:"Module"})}));
81
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const f=u[1];if(n===u[0]){c(u);continue}if(e.external){const h=e.external.registry.get(u[0])?.id;if(n!==u[0]&&h){c(u);continue}}if(e.metadataRegistry.get(u[0])?.id){c(u);continue}if(f.cycle){c(u);continue}if(f.count>1&&e.reused==="ref"){c(u);continue}}}function j1(e,n){const o=e.seen.get(n);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=f=>{const p=e.seen.get(f);if(p.ref===null)return;const h=p.def??p.schema,g={...h},y=p.ref;if(p.ref=null,y){s(y);const S=e.seen.get(y),x=S.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(x)):Object.assign(h,x),Object.assign(h,g),f._zod.parent===y)for(const C in h)C==="$ref"||C==="allOf"||C in g||delete h[C];if(x.$ref&&S.def)for(const C in h)C==="$ref"||C==="allOf"||C in S.def&&JSON.stringify(h[C])===JSON.stringify(S.def[C])&&delete h[C]}const b=f._zod.parent;if(b&&b!==y){s(b);const S=e.seen.get(b);if(S?.schema.$ref&&(h.$ref=S.schema.$ref,S.def))for(const x in h)x==="$ref"||x==="allOf"||x in S.def&&JSON.stringify(h[x])===JSON.stringify(S.def[x])&&delete h[x]}e.override({zodSchema:f,jsonSchema:h,path:p.path??[]})};for(const f of[...e.seen.entries()].reverse())s(f[0]);const l={};if(e.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?l.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?l.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const f=e.external.registry.get(n)?.id;if(!f)throw new Error("Schema is missing an `id` property");l.$id=e.external.uri(f)}Object.assign(l,o.def??o.schema);const c=e.metadataRegistry.get(n)?.id;c!==void 0&&l.id===c&&delete l.id;const u=e.external?.defs??{};for(const f of e.seen.entries()){const p=f[1];p.def&&p.defId&&(p.def.id===p.defId&&delete p.def.id,u[p.defId]=p.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?l.$defs=u:l.definitions=u);try{const f=JSON.parse(JSON.stringify(l));return Object.defineProperty(f,"~standard",{value:{...n["~standard"],jsonSchema:{input:fu(n,"input",e.processors),output:fu(n,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Qn(e,n){const o=n??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return Qn(s.element,o);if(s.type==="set")return Qn(s.valueType,o);if(s.type==="lazy")return Qn(s.getter(),o);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return Qn(s.innerType,o);if(s.type==="intersection")return Qn(s.left,o)||Qn(s.right,o);if(s.type==="record"||s.type==="map")return Qn(s.keyType,o)||Qn(s.valueType,o);if(s.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Qn(s.in,o)||Qn(s.out,o);if(s.type==="object"){for(const l in s.shape)if(Qn(s.shape[l],o))return!0;return!1}if(s.type==="union"){for(const l of s.options)if(Qn(l,o))return!0;return!1}if(s.type==="tuple"){for(const l of s.items)if(Qn(l,o))return!0;return!!(s.rest&&Qn(s.rest,o))}return!1}const sN=(e,n={})=>o=>{const s=N1({...o,processors:n});return jn(e,s),k1(s,e),j1(s,e)},fu=(e,n,o={})=>s=>{const{libraryOptions:l,target:c}=s??{},u=N1({...l??{},target:c,io:n,processors:o});return jn(e,u),k1(u,e),j1(u,e)},aN={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},lN=(e,n,o,s)=>{const l=o;l.type="string";const{minimum:c,maximum:u,format:f,patterns:p,contentEncoding:h}=e._zod.bag;if(typeof c=="number"&&(l.minLength=c),typeof u=="number"&&(l.maxLength=u),f&&(l.format=aN[f]??f,l.format===""&&delete l.format,f==="time"&&delete l.format),h&&(l.contentEncoding=h),p&&p.size>0){const g=[...p];g.length===1?l.pattern=g[0].source:g.length>1&&(l.allOf=[...g.map(y=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},cN=(e,n,o,s)=>{o.not={}},uN=(e,n,o,s)=>{},fN=(e,n,o,s)=>{const l=e._zod.def,c=o1(l.entries);c.every(u=>typeof u=="number")&&(o.type="number"),c.every(u=>typeof u=="string")&&(o.type="string"),o.enum=c},dN=(e,n,o,s)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},hN=(e,n,o,s)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},pN=(e,n,o,s)=>{const l=o,c=e._zod.def,{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(l.minItems=u),typeof f=="number"&&(l.maxItems=f),l.type="array",l.items=jn(c.element,n,{...s,path:[...s.path,"items"]})},mN=(e,n,o,s)=>{const l=o,c=e._zod.def;l.type="object",l.properties={};const u=c.shape;for(const h in u)l.properties[h]=jn(u[h],n,{...s,path:[...s.path,"properties",h]});const f=new Set(Object.keys(u)),p=new Set([...f].filter(h=>{const g=c.shape[h]._zod;return n.io==="input"?g.optin===void 0:g.optout===void 0}));p.size>0&&(l.required=Array.from(p)),c.catchall?._zod.def.type==="never"?l.additionalProperties=!1:c.catchall?c.catchall&&(l.additionalProperties=jn(c.catchall,n,{...s,path:[...s.path,"additionalProperties"]})):n.io==="output"&&(l.additionalProperties=!1)},gN=(e,n,o,s)=>{const l=e._zod.def,c=l.inclusive===!1,u=l.options.map((f,p)=>jn(f,n,{...s,path:[...s.path,c?"oneOf":"anyOf",p]}));c?o.oneOf=u:o.anyOf=u},yN=(e,n,o,s)=>{const l=e._zod.def,c=jn(l.left,n,{...s,path:[...s.path,"allOf",0]}),u=jn(l.right,n,{...s,path:[...s.path,"allOf",1]}),f=h=>"allOf"in h&&Object.keys(h).length===1,p=[...f(c)?c.allOf:[c],...f(u)?u.allOf:[u]];o.allOf=p},vN=(e,n,o,s)=>{const l=e._zod.def,c=jn(l.innerType,n,s),u=n.seen.get(e);n.target==="openapi-3.0"?(u.ref=l.innerType,o.nullable=!0):o.anyOf=[c,{type:"null"}]},bN=(e,n,o,s)=>{const l=e._zod.def;jn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType},SN=(e,n,o,s)=>{const l=e._zod.def;jn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType,o.default=JSON.parse(JSON.stringify(l.defaultValue))},wN=(e,n,o,s)=>{const l=e._zod.def;jn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType,n.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(l.defaultValue)))},xN=(e,n,o,s)=>{const l=e._zod.def;jn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType;let u;try{u=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=u},EN=(e,n,o,s)=>{const l=e._zod.def,c=l.in._zod.traits.has("$ZodTransform"),u=n.io==="input"?c?l.out:l.in:l.out;jn(u,n,s);const f=n.seen.get(e);f.ref=u},TN=(e,n,o,s)=>{const l=e._zod.def;jn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType,o.readOnly=!0},L1=(e,n,o,s)=>{const l=e._zod.def;jn(l.innerType,n,s);const c=n.seen.get(e);c.ref=l.innerType},CN=Se("ZodISODateTime",(e,n)=>{Pz.init(e,n),nn.init(e,n)});function RN(e){return U6(CN,e)}const ON=Se("ZodISODate",(e,n)=>{Iz.init(e,n),nn.init(e,n)});function _N(e){return V6(ON,e)}const AN=Se("ZodISOTime",(e,n)=>{Uz.init(e,n),nn.init(e,n)});function MN(e){return H6(AN,e)}const DN=Se("ZodISODuration",(e,n)=>{Vz.init(e,n),nn.init(e,n)});function zN(e){return F6(DN,e)}const _r=Se("ZodError",(e,n)=>{f1.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>ND(e,o)},flatten:{value:o=>Wa(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Ah,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Ah,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),NN=kh(_r),kN=jh(_r),jN=iu(_r),LN=su(_r),PN=LD(_r),IN=PD(_r),UN=ID(_r),VN=UD(_r),HN=VD(_r),FN=HD(_r),BN=FD(_r),ZN=BD(_r),P1=new WeakMap;function du(e,n,o){const s=Object.getPrototypeOf(e);let l=P1.get(s);if(l||(l=new Set,P1.set(s,l)),!l.has(n)){l.add(n);for(const c in o){const u=o[c];Object.defineProperty(s,c,{configurable:!0,enumerable:!1,get(){const f=u.bind(this);return Object.defineProperty(this,c,{configurable:!0,writable:!0,enumerable:!0,value:f}),f},set(f){Object.defineProperty(this,c,{configurable:!0,writable:!0,enumerable:!0,value:f})}})}}}const Sn=Se("ZodType",(e,n)=>(bn.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:fu(e,"input"),output:fu(e,"output")}}),e.toJSONSchema=sN(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.parse=(o,s)=>NN(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>jN(e,o,s),e.parseAsync=async(o,s)=>kN(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>LN(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>PN(e,o,s),e.decode=(o,s)=>IN(e,o,s),e.encodeAsync=async(o,s)=>UN(e,o,s),e.decodeAsync=async(o,s)=>VN(e,o,s),e.safeEncode=(o,s)=>HN(e,o,s),e.safeDecode=(o,s)=>FN(e,o,s),e.safeEncodeAsync=async(o,s)=>BN(e,o,s),e.safeDecodeAsync=async(o,s)=>ZN(e,o,s),du(e,"ZodType",{check(...o){const s=this.def;return this.clone(ri(s,{checks:[...s.checks??[],...o.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,s){return oi(this,o,s)},brand(){return this},register(o,s){return o.add(this,s),this},refine(o,s){return this.check(L5(o,s))},superRefine(o,s){return this.check(P5(o,s))},overwrite(o){return this.check(ks(o))},optional(){return F1(this)},exactOptional(){return E5(this)},nullable(){return B1(this)},nullish(){return F1(B1(this))},nonoptional(o){return A5(this,o)},array(){return h5(this)},or(o){return g5([this,o])},and(o){return v5(this,o)},transform(o){return G1(this,w5(o))},default(o){return R5(this,o)},prefault(o){return _5(this,o)},catch(o){return D5(this,o)},pipe(o){return G1(this,o)},readonly(){return k5(this)},describe(o){const s=this.clone();return Ja.add(s,{description:o}),s},meta(...o){if(o.length===0)return Ja.get(this);const s=this.clone();return Ja.add(s,o[0]),s},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(e,"description",{get(){return Ja.get(e)?.description},configurable:!0}),e)),I1=Se("_ZodString",(e,n)=>{Lh.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(s,l,c)=>lN(e,s,l);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,du(e,"_ZodString",{regex(...s){return this.check(G6(...s))},includes(...s){return this.check(q6(...s))},startsWith(...s){return this.check(X6(...s))},endsWith(...s){return this.check(Q6(...s))},min(...s){return this.check(uu(...s))},max(...s){return this.check(D1(...s))},length(...s){return this.check(z1(...s))},nonempty(...s){return this.check(uu(1,...s))},lowercase(s){return this.check(Y6(s))},uppercase(s){return this.check($6(s))},trim(){return this.check(W6())},normalize(...s){return this.check(K6(...s))},toLowerCase(){return this.check(J6())},toUpperCase(){return this.check(eN())},slugify(){return this.check(tN())}})}),GN=Se("ZodString",(e,n)=>{Lh.init(e,n),I1.init(e,n),e.email=o=>e.check(v6(YN,o)),e.url=o=>e.check(E6($N,o)),e.jwt=o=>e.check(I6(l5,o)),e.emoji=o=>e.check(T6(qN,o)),e.guid=o=>e.check(M1(U1,o)),e.uuid=o=>e.check(b6(hu,o)),e.uuidv4=o=>e.check(S6(hu,o)),e.uuidv6=o=>e.check(w6(hu,o)),e.uuidv7=o=>e.check(x6(hu,o)),e.nanoid=o=>e.check(C6(XN,o)),e.guid=o=>e.check(M1(U1,o)),e.cuid=o=>e.check(R6(QN,o)),e.cuid2=o=>e.check(O6(KN,o)),e.ulid=o=>e.check(_6(WN,o)),e.base64=o=>e.check(j6(i5,o)),e.base64url=o=>e.check(L6(s5,o)),e.xid=o=>e.check(A6(JN,o)),e.ksuid=o=>e.check(M6(e5,o)),e.ipv4=o=>e.check(D6(t5,o)),e.ipv6=o=>e.check(z6(n5,o)),e.cidrv4=o=>e.check(N6(r5,o)),e.cidrv6=o=>e.check(k6(o5,o)),e.e164=o=>e.check(P6(a5,o)),e.datetime=o=>e.check(RN(o)),e.date=o=>e.check(_N(o)),e.time=o=>e.check(MN(o)),e.duration=o=>e.check(zN(o))});function js(e){return y6(GN,e)}const nn=Se("ZodStringFormat",(e,n)=>{en.init(e,n),I1.init(e,n)}),YN=Se("ZodEmail",(e,n)=>{_z.init(e,n),nn.init(e,n)}),U1=Se("ZodGUID",(e,n)=>{Rz.init(e,n),nn.init(e,n)}),hu=Se("ZodUUID",(e,n)=>{Oz.init(e,n),nn.init(e,n)}),$N=Se("ZodURL",(e,n)=>{Az.init(e,n),nn.init(e,n)}),qN=Se("ZodEmoji",(e,n)=>{Mz.init(e,n),nn.init(e,n)}),XN=Se("ZodNanoID",(e,n)=>{Dz.init(e,n),nn.init(e,n)}),QN=Se("ZodCUID",(e,n)=>{zz.init(e,n),nn.init(e,n)}),KN=Se("ZodCUID2",(e,n)=>{Nz.init(e,n),nn.init(e,n)}),WN=Se("ZodULID",(e,n)=>{kz.init(e,n),nn.init(e,n)}),JN=Se("ZodXID",(e,n)=>{jz.init(e,n),nn.init(e,n)}),e5=Se("ZodKSUID",(e,n)=>{Lz.init(e,n),nn.init(e,n)}),t5=Se("ZodIPv4",(e,n)=>{Hz.init(e,n),nn.init(e,n)}),n5=Se("ZodIPv6",(e,n)=>{Fz.init(e,n),nn.init(e,n)}),r5=Se("ZodCIDRv4",(e,n)=>{Bz.init(e,n),nn.init(e,n)}),o5=Se("ZodCIDRv6",(e,n)=>{Zz.init(e,n),nn.init(e,n)}),i5=Se("ZodBase64",(e,n)=>{Gz.init(e,n),nn.init(e,n)}),s5=Se("ZodBase64URL",(e,n)=>{$z.init(e,n),nn.init(e,n)}),a5=Se("ZodE164",(e,n)=>{qz.init(e,n),nn.init(e,n)}),l5=Se("ZodJWT",(e,n)=>{Qz.init(e,n),nn.init(e,n)}),c5=Se("ZodUnknown",(e,n)=>{Kz.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>uN()});function V1(){return B6(c5)}const u5=Se("ZodNever",(e,n)=>{Wz.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>cN(e,o,s)});function f5(e){return Z6(u5,e)}const d5=Se("ZodArray",(e,n)=>{Jz.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>pN(e,o,s,l),e.element=n.element,du(e,"ZodArray",{min(o,s){return this.check(uu(o,s))},nonempty(o){return this.check(uu(1,o))},max(o,s){return this.check(D1(o,s))},length(o,s){return this.check(z1(o,s))},unwrap(){return this.element}})});function h5(e,n){return nN(d5,e,n)}const p5=Se("ZodObject",(e,n)=>{t6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>mN(e,o,s,l),Vt(e,"shape",()=>n.shape),du(e,"ZodObject",{keyof(){return b5(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:V1()})},loose(){return this.clone({...this._zod.def,catchall:V1()})},strict(){return this.clone({...this._zod.def,catchall:f5()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return OD(this,o)},safeExtend(o){return _D(this,o)},merge(o){return AD(this,o)},pick(o){return CD(this,o)},omit(o){return RD(this,o)},partial(...o){return MD(H1,this,o[0])},required(...o){return DD(Z1,this,o[0])}})});function Ih(e,n){const o={type:"object",shape:e??{},...it(n)};return new p5(o)}const m5=Se("ZodUnion",(e,n)=>{n6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>gN(e,o,s,l),e.options=n.options});function g5(e,n){return new m5({type:"union",options:e,...it(n)})}const y5=Se("ZodIntersection",(e,n)=>{r6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>yN(e,o,s,l)});function v5(e,n){return new y5({type:"intersection",left:e,right:n})}const Uh=Se("ZodEnum",(e,n)=>{o6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(s,l,c)=>fN(e,s,l),e.enum=n.entries,e.options=Object.values(n.entries);const o=new Set(Object.keys(n.entries));e.extract=(s,l)=>{const c={};for(const u of s)if(o.has(u))c[u]=n.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Uh({...n,checks:[],...it(l),entries:c})},e.exclude=(s,l)=>{const c={...n.entries};for(const u of s)if(o.has(u))delete c[u];else throw new Error(`Key ${u} not found in enum`);return new Uh({...n,checks:[],...it(l),entries:c})}});function b5(e,n){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Uh({type:"enum",entries:o,...it(n)})}const S5=Se("ZodTransform",(e,n)=>{i6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>hN(e,o),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new r1(e.constructor.name);o.addIssue=c=>{if(typeof c=="string")o.issues.push(Ka(c,o.value,n));else{const u=c;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=o.value),u.inst??(u.inst=e),o.issues.push(Ka(u))}};const l=n.transform(o.value,o);return l instanceof Promise?l.then(c=>(o.value=c,o.fallback=!0,o)):(o.value=l,o.fallback=!0,o)}});function w5(e){return new S5({type:"transform",transform:e})}const H1=Se("ZodOptional",(e,n)=>{T1.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>L1(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function F1(e){return new H1({type:"optional",innerType:e})}const x5=Se("ZodExactOptional",(e,n)=>{s6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>L1(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function E5(e){return new x5({type:"optional",innerType:e})}const T5=Se("ZodNullable",(e,n)=>{a6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>vN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function B1(e){return new T5({type:"nullable",innerType:e})}const C5=Se("ZodDefault",(e,n)=>{l6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>SN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function R5(e,n){return new C5({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():l1(n)}})}const O5=Se("ZodPrefault",(e,n)=>{c6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>wN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function _5(e,n){return new O5({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():l1(n)}})}const Z1=Se("ZodNonOptional",(e,n)=>{u6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>bN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function A5(e,n){return new Z1({type:"nonoptional",innerType:e,...it(n)})}const M5=Se("ZodCatch",(e,n)=>{f6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>xN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function D5(e,n){return new M5({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const z5=Se("ZodPipe",(e,n)=>{d6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>EN(e,o,s,l),e.in=n.in,e.out=n.out});function G1(e,n){return new z5({type:"pipe",in:e,out:n})}const N5=Se("ZodReadonly",(e,n)=>{h6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>TN(e,o,s,l),e.unwrap=()=>e._zod.def.innerType});function k5(e){return new N5({type:"readonly",innerType:e})}const j5=Se("ZodCustom",(e,n)=>{p6.init(e,n),Sn.init(e,n),e._zod.processJSONSchema=(o,s,l)=>dN(e,o)});function L5(e,n={}){return rN(j5,e,n)}function P5(e,n){return oN(e,n)}const I5=Ih({account:js().min(1,"请输入账号"),password:js().min(1,"请输入密码")});function U5(){const{gameId:e,onAccountLoginSuccess:n,onLoginSuccess:o,onLoginError:s,triggerRealNameAuth:l,defaultAgreeProtocol:c=!1}=wo(),u=v.useRef(null),[f,p]=v.useState(""),[h,g]=v.useState(""),[y,b]=v.useState(!1),[S,x]=v.useState(c),[T,C]=v.useState(!1),[E,L]=v.useState(!1),[j,k]=v.useState({}),{mutate:R,isPending:N}=Vr({mutationFn:()=>G4({account:f,password:h}),onSuccess:P=>{const K={account:P.account,entity:P.channel_info.entity,token:P.channel_info.token,sign:P.channel_info.sign,accid:P.channel_info.entity.openid,extra_data:P.channel_info.extra_data,gaplaySign:P.channel_info.gaplaySign,realname:P.channel_info.realname};if(Uc(K,P._auth,e),K.realname&&K.realname.reject>=2){l();return}n?.(K),o?.(K)},onError:P=>{s?.(P)}});async function z(P){P.preventDefault();const K=new FormData(P.currentTarget),G=I5.safeParse(Object.fromEntries(K));return G.success?S?(R(),{errors:{}}):(L(!0),{errors:{}}):{errors:Wa(G.error).fieldErrors}}return D.jsxs(D.Fragment,{children:[D.jsxs(qc,{ref:u,errors:j,onSubmit:async P=>{const K=await z(P);k(K?.errors||{})},className:"space-y-5",children:[D.jsx(io,{name:"account",placeholder:e==="5327"?"请输入账号":"请输入巨人通行证账号",autoFocus:!0,onChange:P=>p(P.currentTarget.value),prefix:e==="5327"?D.jsx(H4,{className:"size-5 text-gray-400"}):D.jsx(tD,{className:"size-5 text-gray-400"})}),D.jsx(io,{name:"password",type:y?"text":"password",autoComplete:"off",placeholder:"请输入密码",value:h,onValueChange:P=>g(P),prefix:D.jsx(nD,{className:"size-5 text-gray-400"}),suffix:D.jsx("button",{onClick:()=>b(!y),type:"button",className:"text-gray-400 hover:text-gray-600 focus:outline-none",children:y?D.jsx(Yb,{className:"size-5"}):D.jsx(Gb,{className:"size-5"})})}),D.jsxs("section",{children:[D.jsx("div",{className:"flex justify-end mb-1",children:D.jsx(Zi,{title:"忘记密码",open:T,onOpenChange:C,trigger:D.jsx("button",{type:"button",className:"text-[var(--jssdk-primary-color)] text-sm",children:"忘记密码"}),children:D.jsx(SD,{onClose:()=>C(!1),defaultAccount:f})})}),D.jsx(Xa,{className:"w-full",type:"primary",htmlType:"submit",disabled:N,children:"登录"})]}),D.jsx(eu,{}),D.jsx(Rh,{checked:S,onChange:x})]}),D.jsx(Jb,{open:E,onOpenChange:L,onAgree:()=>{x(!0),R()}})]})}const qi={trigger:"_trigger_1e3h3_1",popup:"_popup_1e3h3_5",item:"_item_1e3h3_24",indicator:"_indicator_1e3h3_40",itemText:"_itemText_1e3h3_44",itemCode:"_itemCode_1e3h3_48",itemLabel:"_itemLabel_1e3h3_52"};function V5({value:e,onValueChange:n}){const{gameId:o}=wo(),s=o3(),l=v.useMemo(()=>s.find(u=>u.id===e||u.value===e)?.id||e,[s,e]);return D.jsxs(y4,{value:l,onValueChange:c=>{const u=s.find(f=>f.id===c);u&&n?.(u.value)},children:[D.jsxs(S4,{className:qi.trigger,children:[D.jsx("span",{children:s.find(c=>c.id===l)?.value}),D.jsx(Zb,{className:"size-4"})]}),D.jsx(x4,{children:D.jsx(R4,{className:"outline-none z-[999]",sideOffset:-4,align:"start",children:D.jsx(_4,{className:qi.popup,children:s.map(({label:c,value:u,id:f})=>D.jsxs(M4,{value:f,className:qi.item,children:[D.jsx(D4,{className:qi.indicator,children:D.jsx(Th,{className:"size-3"})}),D.jsxs(N4,{className:qi.itemText,children:[D.jsx("span",{className:qi.itemCode,children:u}),D.jsx("span",{className:qi.itemLabel,children:c})]})]},f))})})})]})}const Y1=Ih({phoneNumber:js().regex(/^[1-9]\d{10}$/,"请输入正确的手机号"),verificationCode:js().length(4,"请输入 6 位验证码")});function $1(){const{mobileLoginConfig:e={},gameId:n,onPhoneLoginSuccess:o,onLoginSuccess:s,onLoginError:l,triggerRealNameAuth:c,defaultAgreeProtocol:u=!1}=wo(),[f,p]=v.useState("86"),[h,g]=v.useState(""),y=v.useRef(null),[b,S]=v.useState(""),[x,T]=v.useState(),[C,E]=v.useState(u),[L,j]=Ai.useState({}),[k,R]=v.useState(!1),[N,z]=v.useState(!1),[P,K]=v.useState("login"),[G]=t1({leftTime:x?x*1e3:void 0,interval:1e3,onEnd(){T(void 0)}}),{mutate:q,isPending:te}=Vr({mutationFn:()=>Y4({mobile:h,countryCode:f,type:e.smsType}),onSuccess:O=>{R(!0),T(O.lock_time),Cn.success("验证码已发送,请注意查收")}}),{mutate:ee,isPending:F}=Vr({mutationFn:async()=>{const O=await $4({mobile:h,countryCode:f,captcha:b});T(void 0);const U={account:O.account,entity:O.channel_info.entity,token:O.channel_info.token,sign:O.channel_info.sign,accid:O.channel_info.entity.openid,extra_data:O.channel_info.extra_data,gaplaySign:O.channel_info.gaplaySign,realname:O.channel_info.realname};if(Uc(U,O._auth,n),U.realname&&U.realname.reject>=2){c();return}return o&&await o(U),s?.(U),O},onError:O=>{l?.(O)}});function I(){const O=new FormData(y.current),U=Y1.pick({phoneNumber:!0}).safeParse(Object.fromEntries(O));if(!U.success){j(Wa(U.error).fieldErrors);return}if(!C){K("sendCode"),z(!0);return}q()}async function _(O){O.preventDefault();const U=new FormData(O.currentTarget),B=Y1.safeParse(Object.fromEntries(U));return B.success?C?(ee(),{errors:{}}):(K("login"),z(!0),{errors:{}}):{errors:Wa(B.error).fieldErrors}}return D.jsxs(D.Fragment,{children:[D.jsxs(qc,{ref:y,errors:L,onSubmit:async O=>{const U=await _(O);j(U.errors)},className:"space-y-5",children:[D.jsx(io,{name:"phoneNumber",placeholder:"请输入手机号码",autoFocus:!0,type:"tel",onChange:O=>g(O.currentTarget.value),prefix:D.jsx(V5,{value:f,onValueChange:p})}),D.jsx(io,{name:"verificationCode",placeholder:"请输入验证码",value:b,type:"number",onValueChange:O=>{const U=O;S(U),U.length===4&&k&&setTimeout(()=>{y.current?.requestSubmit()},0)},suffix:D.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-white inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onClick:()=>I(),disabled:!!x||te,children:te?"发送中...":x?`${Math.round(G/1e3)}s 后重新获取`:"获取验证码"})}),D.jsx(Xa,{className:ln("my-5 w-full",e.buttonClassName),disabled:F,type:"primary",htmlType:"submit",children:F?"登录中...":e.buttonText||"登录"}),D.jsx(eu,{}),D.jsx(Rh,{checked:C,onChange:E})]}),D.jsx(Jb,{open:N,onOpenChange:z,onAgree:()=>{E(!0),P==="sendCode"?q():ee()}})]})}function H5(e){return D.jsxs("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...e,children:[D.jsx("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",className:"fill-current"}),D.jsx("path",{d:"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",className:"fill-current"})]})}function F5({children:e,title:n,description:o,content:s,classNames:l={}}){return D.jsxs(e4,{children:[D.jsx(n4,{className:l.trigger,delay:0,children:e}),D.jsxs(o4,{children:[D.jsx(h4,{className:ln("fixed inset-0 bg-black/20 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",l.backdrop)}),D.jsx(i4,{sideOffset:8,className:l.positioner,children:D.jsxs(u4,{className:ln("origin-[var(--transform-origin)] bg-white p-1 rounded shadow-sm text-gray-900 transition-[transform,scale,opacity] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 dark:shadow-none dark:-outline-offset-1 dark:outline-gray-300",l.popup),children:[D.jsx(f4,{className:ln("data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",l.arrow),children:D.jsx(H5,{})}),n&&D.jsx(p4,{className:"text-base font-medium",children:n}),o&&D.jsx(m4,{className:"text-base text-gray-600",children:o}),s]})})]})]})}const Xi={uidGet:"_uidGet_os9yc_1",mailCodeGet:"_mailCodeGet_os9yc_5",uidGetPopup:"_uidGetPopup_os9yc_79",uidGetArrow:"_uidGetArrow_os9yc_83",inputControl:"_inputControl_os9yc_86",form:"_form_os9yc_89"};function q1({onUidLoginSuccess:e,customSendUidMailCaptcha:n,customValidateUidMailCaptcha:o}={}){const{gameId:s,autoLoginConfig:l,sceneId:c,onUidLoginSuccess:u,onLoginSuccess:f,onLoginError:p,uidLoginConfig:h={}}=wo(),g=v.useRef(null),[y,b]=v.useState(""),[S,x]=v.useState(""),[T,C]=v.useState(!0),[E,L]=v.useState(!1),[j,{startCountdown:k,resetCountdown:R}]=aD({countStart:120,intervalMs:1e3}),{mutate:N}=Vr({mutationFn:()=>{const G=l.enabled?l.days:void 0;return o?o({gameId:s,captcha:S,expireInDays:T?G:void 0,accountId:y,sceneId:c}):Z4({game_id:s,charid:y,captcha_type:"login",captcha:S,expires_day:T?G:void 0,scene_id:c,...h.uidMailExtraParams})},onSuccess:G=>{u?.(G),e?.(G),f?.(G)},onError:G=>{p?.(G)}}),{mutate:z,isPending:P}=Vr({mutationFn:()=>n?n({gameId:s,accountId:y}):B4({game_id:s,captcha_type:"login",charid:y,scene_id:c,...h.uidMailExtraParams}),onSuccess:G=>{k(),Cn.success(G.error)}});async function K(G){G.preventDefault(),N()}return v.useEffect(()=>{S.length===6&&y&&setTimeout(()=>{g.current?.requestSubmit()},0)},[S,y]),v.useEffect(()=>{j===0&&R(),L(j!==120)},[j,R]),D.jsxs(qc,{ref:g,onSubmit:K,className:ln("space-y-6",Xi.form),autoComplete:"off",children:[["5199","5012"].includes(s)?D.jsx("p",{className:"text-center text-xs text-white/80",children:"请点击游戏右上角“设置”查看账号ID"}):null,D.jsx(io,{name:"accountId",className:ln(Xi.inputControl,"bg-[var(--jssdk-input-bg-color)]"),inputClassName:"bg-inherit",placeholder:"请输入账号 ID",autoFocus:!0,type:"tel",onChange:G=>b(G.currentTarget.value),prefix:D.jsx(F5,{content:D.jsx("div",{className:ln(Xi.uidGet,h.uidGetterImageClassName)}),classNames:{backdrop:"z-[992]",positioner:"z-[992]",popup:ln("rounded-2xl shadow-lg",Xi.uidGetPopup),arrow:Xi.uidGetArrow,trigger:"size-5 lg:size-6 lg:text-2xl rounded-full bg-[var(--jssdk-icon-color)] inline-flex items-center justify-center text-white focus:outline focus:outline-2"},children:D.jsx("span",{children:"!"})})}),D.jsx(io,{name:"verificationCode",className:ln(Xi.inputControl,"bg-[var(--jssdk-input-bg-color)]"),inputClassName:"bg-inherit",placeholder:"请输入口令码",value:S,type:"tel",onValueChange:G=>x(G),prefix:D.jsx(Zi,{trigger:D.jsx("span",{children:"!"}),classNames:{trigger:"size-5 lg:size-6 lg:text-2xl rounded-full bg-[var(--jssdk-icon-color)] inline-flex items-center justify-center text-white focus:outline focus:outline-2",popup:"w-full lg:w-4/5 lg:max-w-5xl p-0 bg-transparent"},children:D.jsx("div",{className:ln(Xi.mailCodeGet,h.mailCodeGetterImageClassName)})}),suffix:D.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-[var(--jssdk-primary-foregroud-color)] inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onMouseDown:G=>{G.preventDefault()},onClick:()=>z(),disabled:E||P||!y,children:E?`${j}s`:P?"发送中...":"发送口令码"})}),l.enabled?D.jsx($a,{name:"rememberLogin",children:D.jsxs(Cb,{className:"flex items-center gap-2 text-gray-500",onMouseDown:G=>{G.preventDefault()},children:[D.jsx(Qv,{checked:T,className:"size-5 flex items-center justify-center rounded-full border-2 data-[checked]:border-[var(--jssdk-primary-color)] data-[unchecked]:border-gray-300",onCheckedChange:G=>C(!!G),children:D.jsx(Kv,{children:D.jsx(Th,{className:"size-3 text-[var(--jssdk-primary-color)]",strokeWidth:4})})}),D.jsxs("div",{children:[D.jsx("span",{className:"mr-0.5",children:l.days}),D.jsx("span",{children:"天内自动登录"})]})]})}):null,["5199","5012"].includes(s)?D.jsx("div",{className:"text-[#f59e9e] text-center text-[11px]",children:"请点击游戏内“邮件”查收口令码,未收到请重启游戏再次查看"}):null,D.jsx(eu,{})]})}const Jn={quickLogin:"_quickLogin_1ibz1_1",quickAccounts:"_quickAccounts_1ibz1_5",selectedAccount:"_selectedAccount_1ibz1_9",accountInfo:"_accountInfo_1ibz1_21",accountName:"_accountName_1ibz1_26",arrow:"_arrow_1ibz1_31",arrowRotate:"_arrowRotate_1ibz1_37",accountList:"_accountList_1ibz1_41",listScroll:"_listScroll_1ibz1_49",accountItem:"_accountItem_1ibz1_58",active:"_active_1ibz1_77",itemName:"_itemName_1ibz1_81",itemInfo:"_itemInfo_1ibz1_86",deleteBtn:"_deleteBtn_1ibz1_97"};function B5(){const{gameId:e,onLoginSuccess:n,triggerRealNameAuth:o,setCurrentLoginType:s,defaultLoginType:l}=wo(),[c,u]=v.useState([]),[f,p]=v.useState(null),[h,g]=v.useState(!1),[y,b]=v.useState(!1),[S,x]=v.useState(!1),[T,C]=v.useState(-1);v.useEffect(()=>{E()},[e]);const E=()=>{const N=Vi(e);u(N),N.length>0?(!f||!N.find(z=>z.openid===f.openid))&&p(N[0]):p(null)},L=N=>{p(c[N]),g(!1)},j=(N,z)=>{N.stopPropagation(),C(z),x(!0)},k=()=>{const N=c[T];if(N){yv(N.openid,e);const z=Vi(e);if(z.length===0){s(l);return}u(z),z.find(P=>P.openid===f?.openid)||p(z[0])}x(!1),C(-1)},R=async()=>{if(f){b(!0);try{fv(f.authorization);const N=await qb(),z={account:N.account,entity:N.channel_info.entity,token:N.channel_info.token,sign:N.channel_info.sign,accid:N.channel_info.entity.openid,extra_data:N.channel_info.extra_data,gaplaySign:N.channel_info.gaplaySign,realname:N.channel_info.realname};if(Uc(z,f.authorization,e),z.realname&&z.realname.reject>=2){o();return}n?.(z)}catch(N){Cn.error(N?.detail),console.error("Quick login failed:",N)}finally{b(!1)}}};return c.length===0?null:D.jsxs("div",{className:Jn.quickLogin,children:[D.jsxs("div",{className:Jn.quickAccounts,children:[D.jsxs("div",{className:Jn.selectedAccount,onClick:()=>g(!h),children:[D.jsx("div",{className:Jn.accountInfo,children:D.jsx("span",{className:Jn.accountName,children:f?.username})}),D.jsx(Zb,{className:ln(Jn.arrow,h&&Jn.arrowRotate)})]}),h&&D.jsx("div",{className:Jn.accountList,children:D.jsx("div",{className:Jn.listScroll,children:c.map((N,z)=>D.jsxs("div",{className:ln(Jn.accountItem,N.openid===f?.openid&&Jn.active),onClick:()=>L(z),children:[D.jsx("div",{className:Jn.itemInfo,children:D.jsx("span",{className:Jn.itemName,children:N.username})}),D.jsx("div",{className:Jn.deleteBtn,onClick:P=>j(P,z),children:D.jsx(V4,{className:"size-4 text-gray-400 hover:text-red-500"})})]},N.openid))})})]}),D.jsx(Xn,{className:"w-full h-10 mt-4 mb-6 text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",disabled:y,onClick:R,children:y?"登录中...":"登录"}),D.jsx(eu,{}),D.jsx(Zi,{open:S,onOpenChange:x,showCloseIcon:!1,classNames:{popup:"w-[300px] p-6"},children:D.jsxs("div",{className:"text-center",children:[D.jsxs("div",{className:"mb-4",children:[D.jsx("p",{className:"text-base font-medium text-gray-900",children:"是否确认删除该条账号登录记录?"}),D.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"删除后登录记录将不会保存。"})]}),D.jsxs("div",{className:"flex gap-3 mt-6",children:[D.jsx(Xn,{className:"flex-1 h-9 border border-gray-300 rounded-full text-gray-600",onClick:()=>x(!1),children:"取消"}),D.jsx(Xn,{className:"flex-1 h-9 bg-gradient-to-r from-[#497efe] to-[#947afa] text-white rounded-full",onClick:k,children:"确认删除"})]})]})})]})}const Z5=Ih({name:js().refine(e=>e.length>=1,{error:"请输入真实姓名",abort:!0}).refine(e=>/^[\u4e00-\u9fa5]{2,6}$/.test(e),{error:"姓名须由 2-6 个汉字组成",abort:!0}),idcard:js().refine(e=>e.length>=1,{error:"请输入身份证号",abort:!0}).refine(e=>/^\d{17}(\d|X|x)$/.test(e),{error:"身份证号格式不正确",abort:!0})});function G5(){const{gameId:e,onLoginSuccess:n,onAccountLoginSuccess:o,onPhoneLoginSuccess:s,showRealNameModal:l,setShowRealNameModal:c,onClose:u}=wo(),[f,p]=v.useState({}),{mutate:h,isPending:g}=Vr({mutationFn:async b=>{const x=Vi(e)[0];if(!x)throw new Error("未找到登录账号信息");await q4({uid:x.uid,authorization:x.authorization,name:b.name,idcard:b.idcard});const T=await X4(x.authorization),C={account:T.account,entity:T.channel_info.entity,token:T.channel_info.token,sign:T.channel_info.sign,accid:T.channel_info.entity.openid,extra_data:T.channel_info.extra_data,gaplaySign:T.channel_info.gaplaySign,realname:T.channel_info.realname};Cn.success("实名认证成功"),c(!1),C.account?.mobile?s?.(C):o?.(C),n?.(C)},onError:b=>{Cn.error(b.message||"实名认证失败")}}),y=b=>{const S=Z5.safeParse(b);if(!S.success){p(Wa(S.error).fieldErrors);return}p({}),h(S.data)};return D.jsxs(Zi,{open:l,onOpenChange:c,title:"实名认证",showCloseIcon:!1,disablePointerDismissal:!0,classNames:{popup:"w-[400px] p-6 rounded-2xl",title:"text-center text-xl mb-3"},children:[D.jsx("div",{className:"text-sm text-gray-500 mb-6 text-center",children:"根据《关于防止未成年人沉迷网络游戏的通知》,游戏用户需使用有效身份证进行实名认证。"}),D.jsxs(qc,{onFormSubmit:y,errors:f,className:"space-y-4",children:[D.jsxs($a,{name:"name",children:[D.jsx("div",{className:"flex items-center border border-gray-300 rounded-full px-4 h-12 focus-within:border-[#787bf4] transition-colors",children:D.jsx(wh,{className:"flex-1 outline-none text-base bg-transparent",placeholder:"请输入您的真实姓名"})}),D.jsx(Sh,{className:"mt-1 ml-2 text-xs text-red-500"})]}),D.jsxs($a,{name:"idcard",children:[D.jsx("div",{className:"flex items-center border border-gray-300 rounded-full px-4 h-12 focus-within:border-[#787bf4] transition-colors",children:D.jsx(wh,{className:"flex-1 outline-none text-base bg-transparent",placeholder:"请输入您的身份证号",maxLength:18})}),D.jsx(Sh,{className:"mt-1 ml-2 text-xs text-red-500"})]}),D.jsx(Xn,{type:"submit",className:"w-full h-12 mt-6 text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full font-bold shadow-lg disabled:opacity-50",disabled:g,children:g?"提交中...":"提交认证"}),D.jsx("button",{type:"button",className:"w-full mt-4 text-sm text-gray-400 hover:text-gray-600 transition-colors",onClick:u,children:"退出游戏"})]})]})}const X1={modal:"_modal_1pbx2_2",close:"_close_1pbx2_8"},pu={autoLoginHint:"_autoLoginHint_h58ls_1",left:"_left_h58ls_22",loading:"_loading_h58ls_28",switchBtn:"_switchBtn_h58ls_37"};function Y5({onSwitch:e}){const{autoLoginAccountName:n,setIsAutoLoggingIn:o}=wo(),s=()=>{o(!1),e()};return D.jsxs("div",{className:pu.autoLoginHint,children:[D.jsxs("div",{className:pu.left,children:[D.jsx("div",{className:pu.loading}),D.jsxs("span",{children:[n," 正在登录..."]})]}),D.jsx("button",{className:pu.switchBtn,onClick:s,children:"切换账号"})]})}function $5({open:e,onOpenChange:n}){const{gameId:o,loginTypes:s,currentLoginType:l,closeable:c,isShowGiantLogo:u,onLoginSuccess:f,triggerRealNameAuth:p,showRealNameModal:h,setIsAutoLoggingIn:g,setAutoLoginAccountName:y}=wo(),[b,S]=Ai.useState(!1),x=Ai.useMemo(()=>Vi(o),[o,e]),T=e&&x.length>0&&!b;v.useEffect(()=>{if(!e){S(!1),g(!1);return}if(T){const j=x[0];(async()=>{if(!j){S(!0);return}g(!0),y(j.username);try{fv(j.authorization);const R=await qb(),N={account:R.account,entity:R.channel_info.entity,token:R.channel_info.token,sign:R.channel_info.sign,accid:R.channel_info.entity.openid,extra_data:R.channel_info.extra_data,gaplaySign:R.channel_info.gaplaySign,realname:R.channel_info.realname};if(Uc(N,j.authorization,o),N.realname&&N.realname.reject>=2){g(!1),S(!0),p();return}g(!1),S(!0),n?.(!1),f?.(N)}catch(R){console.error("Auto quick login failed:",R),g(!1),S(!0)}})()}},[e,o,T]);const C=hv({loginTypes:s,gameId:o}),E=pv({loginTypes:s,gameId:o}),L=dv({loginTypes:s,gameId:o});return D.jsxs(D.Fragment,{children:[T&&D.jsx(Y5,{onSwitch:()=>S(!0)}),D.jsxs(Zi,{open:e&&!T&&!h,onOpenChange:n,classNames:{popup:ln("w-[400px] p-5",X1.modal),close:X1.close,backdrop:"!bg-[var(--jssdk-backdrop-bg-color,rgba(0,0,0,0.7))]"},showCloseIcon:c,children:[u&&!JA(o)&&D.jsx("section",{className:"flex items-center justify-center mb-6",children:D.jsx("img",{src:o==="5327"?"https://cdn-imgs.sdk.mobileztgame.com/paycenter/260511150749961295.png":"https://h5.sdk.mobileztgame.com/dist/bg_logo.png",className:"aspect-[240/85] w-32"})}),D.jsxs("section",{children:[l==="quick"&&D.jsx(B5,{}),l===Gt.MOBILE&&E&&D.jsx($1,{}),l===Gt.ROLE_ID&&C&&D.jsx(q1,{}),l===Gt.GIANT&&L&&D.jsx(U5,{})]})]}),D.jsx(G5,{})]})}class q5 extends v.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){console.error("[Login SDK] Uncaught error:",n)}render(){return this.state.hasError?null:this.props.children}}function Vh({open:e,onOpenChange:n,sceneId:o,onPhoneLoginSuccess:s,onAccountLoginSuccess:l,onUidLoginSuccess:c,onLoginSuccess:u,onLoginError:f,closeable:p=!0,mountToaster:h=!0,toastConfigs:g,...y}){const[b]=v.useState(()=>new w2);return D.jsxs(Ai.StrictMode,{children:[D.jsx(T2,{client:b,children:D.jsx(xv,{value:{sceneId:o,onPhoneLoginSuccess:s,onAccountLoginSuccess:l,onUidLoginSuccess:c,onLoginSuccess:S=>{l3(s3({gameId:ni(y.gameId),serverUserInfo:S})),u?.(S)},onLoginError:f,closeable:p,onClose:()=>n?.(!1),...y},children:D.jsx(q5,{children:D.jsx($5,{open:e,onOpenChange:n})})})}),h&&D.jsx(XA,{toastConfigs:g})]})}function X5(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(n,o)=>String.fromCharCode(Number.parseInt(o,16))))}function Q1({gameId:e,open:n,onOpenChange:o}){const s=ni(e),l=Ic(s),c=Vi(s);let u="";if(l&&l.openid){const g=c.find(y=>y.openid===l.openid);g&&(u=g.uid)}const f=localStorage.getItem("gasdk-loginAccounts")||"[]",p=encodeURIComponent(X5(f)),h=`https://athena.ztgame.com/sdk/user-center/?game_id=${s}&uid=${u}&gasdk-loginAccounts=${p}`;return D.jsx(Zi,{open:n,onOpenChange:o,showCloseIcon:!0,classNames:{popup:"w-[90vw] p-0 flex flex-col bg-white overflow-hidden",close:"top-0 right-0 w-16 h-16 opacity-0 z-50"},children:D.jsx("iframe",{src:h,className:"w-full h-[80vh] border-none flex-1"})})}function K1({gameId:e}={}){if(document.querySelector(".user-center-sdk-container"))return console.warn("User Center is already active. Multiple instances are not allowed."),{close:()=>{}};const n=document.createElement("div");n.className="user-center-sdk-container",document.body.appendChild(n);const o=ig.createRoot(n),s=()=>{setTimeout(()=>{o.unmount(),n.remove()},200)},l=()=>{o.render(D.jsx(Q1,{gameId:e,open:!1,onOpenChange:c})),s()},c=u=>{u||l()};return o.render(D.jsx(Q1,{gameId:e,open:!0,onOpenChange:c})),{close:l}}const W1=e=>Ic(ni(e)),J1=e=>a3(ni(e)),eS=e=>!!Ic(ni(e));function tS({loginTypes:e,defaultLoginType:n,gameId:o,styleVars:s,onLoginSuccess:l,onLoginError:c}){const u=ni(o);if(document.querySelector(".login-sdk-container"))return console.warn("Login component is already active. Multiple instances are not allowed."),{close:()=>{}};const f=document.createElement("div");f.className="login-sdk-container",document.body.appendChild(f);const p=ig.createRoot(f),h=()=>{setTimeout(()=>{p.unmount(),f.remove()},200)},g=()=>{p.render(D.jsx(Vh,{gameId:u,loginTypes:e,defaultLoginType:n,styleVars:s,open:!1,onOpenChange:y,onLoginSuccess:l,onLoginError:c})),h()},y=b=>{b||g()};return p.render(D.jsx(Vh,{gameId:u,loginTypes:e,defaultLoginType:n,styleVars:s,open:!0,onOpenChange:y,onLoginSuccess:l,onLoginError:c})),{close:g}}const Q5={init:bv,login:tS,logout:J1,getUserInfo:W1,isLoggedIn:eS,openUserCenter:K1};Dn.ConfigProvider=xv,Dn.Login=Vh,Dn.MobileLogin=$1,Dn.SDK=Q5,Dn.UidLogin=q1,Dn.getGameId=ni,Dn.getUserInfo=W1,Dn.init=bv,Dn.isLoggedIn=eS,Dn.login=tS,Dn.logout=J1,Dn.openUserCenter=K1,Object.defineProperty(Dn,Symbol.toStringTag,{value:"Module"})}));