diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/assets/index-_A9YgHE3.css b/assets/index-_A9YgHE3.css new file mode 100644 index 0000000..4aa7f3e --- /dev/null +++ b/assets/index-_A9YgHE3.css @@ -0,0 +1 @@ +*,: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}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-40{z-index:40}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-20{width:5rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-96{width:24rem}.w-full{width:100%}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.translate-x-0{--tw-translate-x: 0px;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-x-1{--tw-translate-x: .25rem;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-x-6{--tw-translate-x: 1.5rem;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-x-full{--tw-translate-x: 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))}.-rotate-90{--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))}.transform{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-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.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-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.bg-black\/50{background-color:#00000080}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-800\/50{background-color:#1f293780}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-gray-900\/50{background-color:#11182780}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.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-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-32{padding-bottom:8rem}.pb-6{padding-bottom:1.5rem}.pt-16{padding-top:4rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-7xl{font-size:4.5rem;line-height:1}.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-normal{font-weight:400}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-75{opacity:.75}.ring-2{--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(2px + 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)}.ring-gray-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.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-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-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700\/50:hover{background-color:#37415180}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.hover\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--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(2px + 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)}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-rose-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(244 63 94 / var(--tw-ring-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5} diff --git a/assets/index-wGMWL93x.js b/assets/index-wGMWL93x.js new file mode 100644 index 0000000..87cd6a7 --- /dev/null +++ b/assets/index-wGMWL93x.js @@ -0,0 +1,122 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var pu={exports:{}},pl={},hu={exports:{}},U={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var br=Symbol.for("react.element"),Zd=Symbol.for("react.portal"),Ud=Symbol.for("react.fragment"),Fd=Symbol.for("react.strict_mode"),Vd=Symbol.for("react.profiler"),Bd=Symbol.for("react.provider"),Wd=Symbol.for("react.context"),Hd=Symbol.for("react.forward_ref"),Qd=Symbol.for("react.suspense"),Yd=Symbol.for("react.memo"),Kd=Symbol.for("react.lazy"),ta=Symbol.iterator;function Xd(e){return e===null||typeof e!="object"?null:(e=ta&&e[ta]||e["@@iterator"],typeof e=="function"?e:null)}var mu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vu=Object.assign,yu={};function Kn(e,t,n){this.props=e,this.context=t,this.refs=yu,this.updater=n||mu}Kn.prototype.isReactComponent={};Kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gu(){}gu.prototype=Kn.prototype;function ro(e,t,n){this.props=e,this.context=t,this.refs=yu,this.updater=n||mu}var io=ro.prototype=new gu;io.constructor=ro;vu(io,Kn.prototype);io.isPureReactComponent=!0;var na=Array.isArray,xu=Object.prototype.hasOwnProperty,lo={current:null},ku={key:!0,ref:!0,__self:!0,__source:!0};function _u(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)xu.call(t,r)&&!ku.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1>>1,Y=E[J];if(0>>1;Ji(Jn,$))Vi(Pe,Jn)?(E[J]=Pe,E[V]=$,J=V):(E[J]=Jn,E[at]=$,J=at);else if(Vi(Pe,$))E[J]=Pe,E[V]=$,J=V;else break e}}return L}function i(E,L){var $=E.sortIndex-L.sortIndex;return $!==0?$:E.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var a=[],u=[],p=1,m=null,v=3,y=!1,k=!1,w=!1,F=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(E){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=E)r(u),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(u)}}function g(E){if(w=!1,h(E),!k)if(n(a)!==null)k=!0,qn(S);else{var L=n(u);L!==null&&hn(g,L.startTime-E)}}function S(E,L){k=!1,w&&(w=!1,d(M),M=-1),y=!0;var $=v;try{for(h(L),m=n(a);m!==null&&(!(m.expirationTime>L)||E&&!Se());){var J=m.callback;if(typeof J=="function"){m.callback=null,v=m.priorityLevel;var Y=J(m.expirationTime<=L);L=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===n(a)&&r(a),h(L)}else r(a);m=n(a)}if(m!==null)var mn=!0;else{var at=n(u);at!==null&&hn(g,at.startTime-L),mn=!1}return mn}finally{m=null,v=$,y=!1}}var j=!1,P=null,M=-1,q=5,Z=-1;function Se(){return!(e.unstable_now()-ZE||125J?(E.sortIndex=$,t(u,E),n(a)===null&&E===n(u)&&(w?(d(M),M=-1):w=!0,hn(g,$-J))):(E.sortIndex=Y,t(a,E),k||y||(k=!0,qn(S))),E},e.unstable_shouldYield=Se,e.unstable_wrapCallback=function(E){var L=v;return function(){var $=v;v=L;try{return E.apply(this,arguments)}finally{v=$}}}})(Eu);Nu.exports=Eu;var of=Nu.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var af=I,Ie=of;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ls=Object.prototype.hasOwnProperty,uf=/^[: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]*$/,ia={},la={};function cf(e){return ls.call(la,e)?!0:ls.call(ia,e)?!1:uf.test(e)?la[e]=!0:(ia[e]=!0,!1)}function df(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ff(e,t,n,r){if(t===null||typeof t>"u"||df(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function we(e,t,n,r,i,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new we(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fe[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var oo=/[\-:]([a-z])/g;function ao(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(oo,ao);fe[t]=new we(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(oo,ao);fe[t]=new we(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(oo,ao);fe[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function uo(e,t,n,r){var i=fe.hasOwnProperty(t)?fe[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==l[o]){var a=` +`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=o);break}}}finally{Ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?or(e):""}function pf(e){switch(e.tag){case 5:return or(e.type);case 16:return or("Lazy");case 13:return or("Suspense");case 19:return or("SuspenseList");case 0:case 2:case 15:return e=Il(e.type,!1),e;case 11:return e=Il(e.type.render,!1),e;case 1:return e=Il(e.type,!0),e;default:return""}}function us(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xn:return"Fragment";case gn:return"Portal";case ss:return"Profiler";case co:return"StrictMode";case os:return"Suspense";case as:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pu:return(e.displayName||"Context")+".Consumer";case ju:return(e._context.displayName||"Context")+".Provider";case fo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case po:return t=e.displayName||null,t!==null?t:us(e.type)||"Memo";case St:t=e._payload,e=e._init;try{return us(e(t))}catch{}}return null}function hf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return us(t);case 8:return t===co?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function At(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mf(e){var t=zu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){e._valueTracker||(e._valueTracker=mf(e))}function Ru(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Di(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function cs(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function oa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=At(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ou(e,t){t=t.checked,t!=null&&uo(e,"checked",t,!1)}function ds(e,t){Ou(e,t);var n=At(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fs(e,t.type,n):t.hasOwnProperty("defaultValue")&&fs(e,t.type,At(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function aa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fs(e,t,n){(t!=="number"||Di(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function zn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vf=["Webkit","ms","Moz","O"];Object.keys(pr).forEach(function(e){vf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pr[t]=pr[e]})});function $u(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pr.hasOwnProperty(e)&&pr[e]?(""+t).trim():t+"px"}function Au(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$u(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var yf=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ms(e,t){if(t){if(yf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function vs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 ys=null;function ho(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gs=null,Rn=null,On=null;function da(e){if(e=ni(e)){if(typeof gs!="function")throw Error(x(280));var t=e.stateNode;t&&(t=gl(t),gs(e.stateNode,e.type,t))}}function Zu(e){Rn?On?On.push(e):On=[e]:Rn=e}function Uu(){if(Rn){var e=Rn,t=On;if(On=Rn=null,da(e),t)for(e=0;e>>=0,e===0?32:31-(jf(e)/Pf|0)|0}var ci=64,di=4194304;function ur(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=ur(o):(l&=s,l!==0&&(r=ur(l)))}else s=n&~i,s!==0?r=ur(s):l!==0&&(r=ur(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xe(t),e[t]=n}function Of(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=mr),ka=" ",_a=!1;function sc(e,t){switch(e){case"keyup":return op.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function up(e,t){switch(e){case"compositionend":return oc(t);case"keypress":return t.which!==32?null:(_a=!0,ka);case"textInput":return e=t.data,e===ka&&_a?null:e;default:return null}}function cp(e,t){if(kn)return e==="compositionend"||!wo&&sc(e,t)?(e=ic(),Ti=xo=jt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Na(n)}}function dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fc(){for(var e=window,t=Di();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Di(e.document)}return t}function So(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xp(e){var t=fc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dc(n.ownerDocument.documentElement,n)){if(r!==null&&So(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Ea(n,l);var s=Ea(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_n=null,Cs=null,yr=null,Ns=!1;function Ta(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ns||_n==null||_n!==Di(r)||(r=_n,"selectionStart"in r&&So(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yr&&Pr(yr,r)||(yr=r,r=Bi(Cs,"onSelect"),0Cn||(e.current=zs[Cn],zs[Cn]=null,Cn--)}function Q(e,t){Cn++,zs[Cn]=e.current,e.current=t}var Zt={},ve=Ht(Zt),Ee=Ht(!1),ln=Zt;function Zn(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Te(e){return e=e.childContextTypes,e!=null}function Hi(){X(Ee),X(ve)}function Ia(e,t,n){if(ve.current!==Zt)throw Error(x(168));Q(ve,t),Q(Ee,n)}function _c(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(x(108,hf(e)||"Unknown",i));return ne({},n,r)}function Qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,ln=ve.current,Q(ve,e),Q(Ee,Ee.current),!0}function La(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=_c(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,X(Ee),X(ve),Q(ve,e)):X(Ee),Q(Ee,n)}var ft=null,xl=!1,Kl=!1;function wc(e){ft===null?ft=[e]:ft.push(e)}function zp(e){xl=!0,wc(e)}function Qt(){if(!Kl&&ft!==null){Kl=!0;var e=0,t=H;try{var n=ft;for(H=1;e>=s,i-=s,pt=1<<32-Xe(t)+i|n<M?(q=P,P=null):q=P.sibling;var Z=v(d,P,h[M],g);if(Z===null){P===null&&(P=q);break}e&&P&&Z.alternate===null&&t(d,P),c=l(Z,c,M),j===null?S=Z:j.sibling=Z,j=Z,P=q}if(M===h.length)return n(d,P),G&&Gt(d,M),S;if(P===null){for(;MM?(q=P,P=null):q=P.sibling;var Se=v(d,P,Z.value,g);if(Se===null){P===null&&(P=q);break}e&&P&&Se.alternate===null&&t(d,P),c=l(Se,c,M),j===null?S=Se:j.sibling=Se,j=Se,P=q}if(Z.done)return n(d,P),G&&Gt(d,M),S;if(P===null){for(;!Z.done;M++,Z=h.next())Z=m(d,Z.value,g),Z!==null&&(c=l(Z,c,M),j===null?S=Z:j.sibling=Z,j=Z);return G&&Gt(d,M),S}for(P=r(d,P);!Z.done;M++,Z=h.next())Z=y(P,d,M,Z.value,g),Z!==null&&(e&&Z.alternate!==null&&P.delete(Z.key===null?M:Z.key),c=l(Z,c,M),j===null?S=Z:j.sibling=Z,j=Z);return e&&P.forEach(function(Yt){return t(d,Yt)}),G&&Gt(d,M),S}function F(d,c,h,g){if(typeof h=="object"&&h!==null&&h.type===xn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case oi:e:{for(var S=h.key,j=c;j!==null;){if(j.key===S){if(S=h.type,S===xn){if(j.tag===7){n(d,j.sibling),c=i(j,h.props.children),c.return=d,d=c;break e}}else if(j.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===St&&Aa(S)===j.type){n(d,j.sibling),c=i(j,h.props),c.ref=ir(d,j,h),c.return=d,d=c;break e}n(d,j);break}else t(d,j);j=j.sibling}h.type===xn?(c=nn(h.props.children,d.mode,g,h.key),c.return=d,d=c):(g=Li(h.type,h.key,h.props,null,d.mode,g),g.ref=ir(d,c,h),g.return=d,d=g)}return s(d);case gn:e:{for(j=h.key;c!==null;){if(c.key===j)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(d,c.sibling),c=i(c,h.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=ns(h,d.mode,g),c.return=d,d=c}return s(d);case St:return j=h._init,F(d,c,j(h._payload),g)}if(ar(h))return k(d,c,h,g);if(bn(h))return w(d,c,h,g);gi(d,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(d,c.sibling),c=i(c,h),c.return=d,d=c):(n(d,c),c=ts(h,d.mode,g),c.return=d,d=c),s(d)):n(d,c)}return F}var Fn=Ec(!0),Tc=Ec(!1),Xi=Ht(null),Gi=null,Tn=null,To=null;function jo(){To=Tn=Gi=null}function Po(e){var t=Xi.current;X(Xi),e._currentValue=t}function Is(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ln(e,t){Gi=e,To=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ne=!0),e.firstContext=null)}function Ve(e){var t=e._currentValue;if(To!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Gi===null)throw Error(x(308));Tn=e,Gi.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var bt=null;function Mo(e){bt===null?bt=[e]:bt.push(e)}function jc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Mo(t)):(n.next=i.next,i.next=n),t.interleaved=n,gt(e,r)}function gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ct=!1;function zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function It(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,gt(e,n)}return i=r.interleaved,i===null?(t.next=t,Mo(r)):(t.next=i.next,i.next=t),r.interleaved=t,gt(e,n)}function Pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vo(e,n)}}function Za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qi(e,t,n,r){var i=e.updateQueue;Ct=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var a=o,u=a.next;a.next=null,s===null?l=u:s.next=u,s=a;var p=e.alternate;p!==null&&(p=p.updateQueue,o=p.lastBaseUpdate,o!==s&&(o===null?p.firstBaseUpdate=u:o.next=u,p.lastBaseUpdate=a))}if(l!==null){var m=i.baseState;s=0,p=u=a=null,o=l;do{var v=o.lane,y=o.eventTime;if((r&v)===v){p!==null&&(p=p.next={eventTime:y,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var k=e,w=o;switch(v=t,y=n,w.tag){case 1:if(k=w.payload,typeof k=="function"){m=k.call(y,m,v);break e}m=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=w.payload,v=typeof k=="function"?k.call(y,m,v):k,v==null)break e;m=ne({},m,v);break e;case 2:Ct=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,v=i.effects,v===null?i.effects=[o]:v.push(o))}else y={eventTime:y,lane:v,tag:o.tag,payload:o.payload,callback:o.callback,next:null},p===null?(u=p=y,a=m):p=p.next=y,s|=v;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;v=o,o=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);if(p===null&&(a=m),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);an|=s,e.lanes=s,e.memoizedState=m}}function Ua(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Gl.transition;Gl.transition={};try{e(!1),t()}finally{H=n,Gl.transition=r}}function Qc(){return Be().memoizedState}function Lp(e,t,n){var r=Dt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yc(e))Kc(t,n);else if(n=jc(e,t,n,r),n!==null){var i=xe();Ge(n,e,r,i),Xc(n,t,r)}}function Dp(e,t,n){var r=Dt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yc(e))Kc(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,o=l(s,n);if(i.hasEagerState=!0,i.eagerState=o,Je(o,s)){var a=t.interleaved;a===null?(i.next=i,Mo(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=jc(e,t,i,r),n!==null&&(i=xe(),Ge(n,e,r,i),Xc(n,t,r))}}function Yc(e){var t=e.alternate;return e===te||t!==null&&t===te}function Kc(e,t){gr=bi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vo(e,n)}}var el={readContext:Ve,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},$p={readContext:Ve,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Va,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zi(4194308,4,Fc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return zi(4,2,e,t)},useMemo:function(e,t){var n=tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Lp.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:Fa,useDebugValue:Zo,useDeferredValue:function(e){return tt().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Ip.bind(null,e[1]),tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,i=tt();if(G){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ue===null)throw Error(x(349));on&30||Oc(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Va(Lc.bind(null,r,l,e),[e]),r.flags|=2048,$r(9,Ic.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=tt(),t=ue.identifierPrefix;if(G){var n=ht,r=pt;n=(r&~(1<<32-Xe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Lr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[nt]=t,e[Rr]=r,ld(e,t,!1,!1),t.stateNode=e;e:{switch(s=vs(n,r),n){case"dialog":K("cancel",e),K("close",e),i=r;break;case"iframe":case"object":case"embed":K("load",e),i=r;break;case"video":case"audio":for(i=0;iWn&&(t.flags|=128,r=!0,lr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ji(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!G)return he(t),null}else 2*ie()-l.renderingStartTime>Wn&&n!==1073741824&&(t.flags|=128,r=!0,lr(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ie(),t.sibling=null,n=ee.current,Q(ee,r?n&1|2:n&1),t):(he(t),null);case 22:case 23:return Ho(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Hp(e,t){switch(No(t),t.tag){case 1:return Te(t.type)&&Hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(),X(Ee),X(ve),Io(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oo(t),null;case 13:if(X(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(ee),null;case 4:return Vn(),null;case 10:return Po(t.type._context),null;case 22:case 23:return Ho(),null;case 24:return null;default:return null}}var ki=!1,me=!1,Qp=typeof WeakSet=="function"?WeakSet:Set,T=null;function jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Bs(e,t,n){try{n()}catch(r){re(e,t,r)}}var ba=!1;function Yp(e,t){if(Es=Fi,e=fc(),So(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,o=-1,a=-1,u=0,p=0,m=e,v=null;t:for(;;){for(var y;m!==n||i!==0&&m.nodeType!==3||(o=s+i),m!==l||r!==0&&m.nodeType!==3||(a=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(y=m.firstChild)!==null;)v=m,m=y;for(;;){if(m===e)break t;if(v===n&&++u===i&&(o=s),v===l&&++p===r&&(a=s),(y=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=y}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ts={focusedElem:e,selectionRange:n},Fi=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var w=k.memoizedProps,F=k.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?w:He(t.type,w),F);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(g){re(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return k=ba,ba=!1,k}function xr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Bs(t,n,l)}i=i.next}while(i!==r)}}function wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ws(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ad(e){var t=e.alternate;t!==null&&(e.alternate=null,ad(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[Rr],delete t[Ms],delete t[Pp],delete t[Mp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ud(e){return e.tag===5||e.tag===3||e.tag===4}function eu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ud(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wi));else if(r!==4&&(e=e.child,e!==null))for(Hs(e,t,n),e=e.sibling;e!==null;)Hs(e,t,n),e=e.sibling}function Qs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Qs(e,t,n),e=e.sibling;e!==null;)Qs(e,t,n),e=e.sibling}var ce=null,Qe=!1;function wt(e,t,n){for(n=n.child;n!==null;)cd(e,t,n),n=n.sibling}function cd(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(hl,n)}catch{}switch(n.tag){case 5:me||jn(n,t);case 6:var r=ce,i=Qe;ce=null,wt(e,t,n),ce=r,Qe=i,ce!==null&&(Qe?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(Qe?(e=ce,n=n.stateNode,e.nodeType===8?Yl(e.parentNode,n):e.nodeType===1&&Yl(e,n),Tr(e)):Yl(ce,n.stateNode));break;case 4:r=ce,i=Qe,ce=n.stateNode.containerInfo,Qe=!0,wt(e,t,n),ce=r,Qe=i;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Bs(n,t,s),i=i.next}while(i!==r)}wt(e,t,n);break;case 1:if(!me&&(jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){re(n,t,o)}wt(e,t,n);break;case 21:wt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,wt(e,t,n),me=r):wt(e,t,n);break;default:wt(e,t,n)}}function tu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qp),t.forEach(function(r){var i=nh.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~l}if(r=i,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xp(r/1960))-r,10e?16:e,Pt===null)var r=!1;else{if(e=Pt,Pt=null,rl=0,W&6)throw Error(x(331));var i=W;for(W|=4,T=e.current;T!==null;){var l=T,s=l.child;if(T.flags&16){var o=l.deletions;if(o!==null){for(var a=0;aie()-Bo?tn(e,0):Vo|=n),je(e,t)}function gd(e,t){t===0&&(e.mode&1?(t=di,di<<=1,!(di&130023424)&&(di=4194304)):t=1);var n=xe();e=gt(e,t),e!==null&&(ei(e,t,n),je(e,n))}function th(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gd(e,n)}function nh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),gd(e,n)}var xd;xd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,Bp(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,G&&t.flags&1048576&&Sc(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ri(e,t),e=t.pendingProps;var i=Zn(t,ve.current);Ln(t,n),i=Do(null,t,r,e,i,n);var l=$o();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Te(r)?(l=!0,Qi(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zo(t),i.updater=_l,t.stateNode=i,i._reactInternals=t,Ds(t,r,e,n),t=Zs(null,t,r,!0,l,n)):(t.tag=0,G&&l&&Co(t),ge(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ri(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ih(r),e=He(r,e),i){case 0:t=As(null,t,r,e,n);break e;case 1:t=Ga(null,t,r,e,n);break e;case 11:t=Ka(null,t,r,e,n);break e;case 14:t=Xa(null,t,r,He(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:He(r,i),As(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:He(r,i),Ga(e,t,r,i,n);case 3:e:{if(nd(t),e===null)throw Error(x(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Pc(e,t),qi(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=Bn(Error(x(423)),t),t=qa(e,t,r,n,i);break e}else if(r!==i){i=Bn(Error(x(424)),t),t=qa(e,t,r,n,i);break e}else for(ze=Ot(t.stateNode.containerInfo.firstChild),Re=t,G=!0,Ye=null,n=Tc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Un(),r===i){t=xt(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return Mc(t),e===null&&Os(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,js(r,i)?s=null:l!==null&&js(r,l)&&(t.flags|=32),td(e,t),ge(e,t,s,n),t.child;case 6:return e===null&&Os(t),null;case 13:return rd(e,t,n);case 4:return Ro(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fn(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:He(r,i),Ka(e,t,r,i,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,Q(Xi,r._currentValue),r._currentValue=s,l!==null)if(Je(l.value,s)){if(l.children===i.children&&!Ee.current){t=xt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var o=l.dependencies;if(o!==null){s=l.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=mt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Is(l.return,n,t),o.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(x(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Is(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}ge(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ln(t,n),i=Ve(i),r=r(i),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,i=He(r,t.pendingProps),i=He(r.type,i),Xa(e,t,r,i,n);case 15:return bc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:He(r,i),Ri(e,t),t.tag=1,Te(r)?(e=!0,Qi(t)):e=!1,Ln(t,n),Gc(t,r,i),Ds(t,r,i,n),Zs(null,t,r,!0,e,n);case 19:return id(e,t,n);case 22:return ed(e,t,n)}throw Error(x(156,t.tag))};function kd(e,t){return Yu(e,t)}function rh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new rh(e,t,n,r)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ih(e){if(typeof e=="function")return Yo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fo)return 11;if(e===po)return 14}return 2}function $t(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Li(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")Yo(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xn:return nn(n.children,i,l,t);case co:s=8,i|=8;break;case ss:return e=Ue(12,n,t,i|2),e.elementType=ss,e.lanes=l,e;case os:return e=Ue(13,n,t,i),e.elementType=os,e.lanes=l,e;case as:return e=Ue(19,n,t,i),e.elementType=as,e.lanes=l,e;case Mu:return Cl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ju:s=10;break e;case Pu:s=9;break e;case fo:s=11;break e;case po:s=14;break e;case St:s=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ue(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function nn(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function Cl(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=Mu,e.lanes=n,e.stateNode={isHidden:!1},e}function ts(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ns(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lh(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dl(0),this.expirationTimes=Dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ko(e,t,n,r,i,l,s,o,a){return e=new lh(e,t,n,o,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ue(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zo(l),e}function sh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cd)}catch(e){console.error(e)}}Cd(),Cu.exports=Le;var dh=Cu.exports,Nd,uu=dh;Nd=uu.createRoot,uu.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var fh={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"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ph=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),$e=(e,t)=>{const n=I.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:o="",children:a,...u},p)=>I.createElement("svg",{ref:p,...fh,width:i,height:i,stroke:r,strokeWidth:s?Number(l)*24/Number(i):l,className:["lucide",`lucide-${ph(e)}`,o].join(" "),...u},[...t.map(([m,v])=>I.createElement(m,v)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hh=$e("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mh=$e("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vh=$e("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ed=$e("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jo=$e("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yh=$e("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gh=$e("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xh=$e("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kh=$e("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _h=$e("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const wh=$e("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sh=$e("Trash",[["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"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Td=$e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ch({isDark:e,onToggle:t}){return f.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-gray-800 transition-colors",title:e?"Switch to light mode":"Switch to dark mode",children:e?f.jsx(_h,{size:20}):f.jsx(mh,{size:20})})}function Nh({showSettings:e,onToggleSettings:t,isDark:n,onToggleTheme:r,showChainPanel:i,onToggleChainPanel:l}){return f.jsx("nav",{className:"fixed top-0 left-0 right-0 h-16 bg-gray-900/50 backdrop-blur-sm border-b border-gray-800 z-50",children:f.jsxs("div",{className:"h-full max-w-7xl mx-auto px-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(wh,{className:"w-6 h-6"}),f.jsx("h1",{className:"text-xl font-bold",children:"Pomodoro Timer"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:l,className:`p-2 rounded-lg transition-colors ${i?"bg-gray-700":"hover:bg-gray-800"}`,title:"Preset Chains",children:f.jsx(hh,{size:20})}),f.jsx(Ch,{isDark:n,onToggle:r}),f.jsx("button",{onClick:t,className:`p-2 rounded-lg transition-colors ${e?"bg-gray-700":"hover:bg-gray-800"}`,title:"Settings",children:f.jsx(xh,{size:20})})]})]})})}function Eh({presets:e,selectedPreset:t,onSelectPreset:n,onOpenPresetForm:r}){return f.jsxs("div",{className:"flex flex-col gap-4 w-full max-w-md",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold",children:"Timer Presets"}),f.jsx("button",{onClick:r,className:"p-2 rounded-full hover:bg-gray-700 transition-colors",title:"Add new preset",children:f.jsx(Jo,{size:20})})]}),f.jsx("div",{className:"grid grid-cols-1 gap-2",children:e.map(i=>f.jsx("button",{onClick:()=>n(i),className:`p-4 rounded-lg transition-colors ${t.id===i.id?"bg-gray-700 ring-2 ring-gray-500":"bg-gray-800 hover:bg-gray-700"}`,children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("span",{className:"font-medium",children:i.name}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[f.jsxs("span",{children:[i.workMinutes,"m work"]}),f.jsx("span",{children:"•"}),f.jsxs("span",{children:[i.breakMinutes,"m break"]}),f.jsx("span",{children:"•"}),f.jsxs("span",{children:[i.iterations,"x"]})]})]})},i.id))})]})}function qs({checked:e,onChange:t}){return f.jsx("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:` + relative inline-flex h-6 w-11 items-center rounded-full + transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 + ${e?"bg-blue-600":"bg-gray-700"} + `,children:f.jsx("span",{className:` + inline-block h-4 w-4 transform rounded-full bg-white transition-transform + ${e?"translate-x-6":"translate-x-1"} + `})})}function Th({onSave:e,onCancel:t,initialValues:n,existingPresets:r=[]}){const[i,l]=I.useState(""),[s,o]=I.useState((n==null?void 0:n.workMinutes)??25),[a,u]=I.useState((n==null?void 0:n.breakMinutes)??5),[p,m]=I.useState((n==null?void 0:n.iterations)??4),[v,y]=I.useState((n==null?void 0:n.requireManualStart)??!1),[k,w]=I.useState(!1),F=d=>{d.preventDefault(),k&&r&&r.forEach(c=>{c.isDefault&&(c.isDefault=!1)}),e({name:i,workMinutes:s,breakMinutes:a,iterations:p,requireManualStart:v,workSeconds:0,breakSeconds:0,isDefault:k})};return f.jsxs("form",{onSubmit:F,className:"flex flex-col gap-4 w-full max-w-md",children:[f.jsx("h2",{className:"text-xl font-semibold",children:"Create New Preset"}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Preset Name"}),f.jsx("input",{type:"text",value:i,onChange:d=>l(d.target.value),className:"px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-500",required:!0})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Work Minutes"}),f.jsx("input",{type:"number",min:"1",max:"60",value:s,onChange:d=>o(parseInt(d.target.value)||1),className:"px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-500"})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Break Minutes"}),f.jsx("input",{type:"number",min:"1",max:"60",value:a,onChange:d=>u(parseInt(d.target.value)||1),className:"px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-500"})]})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Number of Iterations"}),f.jsx("input",{type:"number",min:"1",max:"10",value:p,onChange:d=>m(parseInt(d.target.value)||1),className:"px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-500"})]}),f.jsxs("div",{className:"flex items-center justify-between py-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Require Manual Start"}),f.jsx(qs,{checked:v,onChange:y})]}),f.jsxs("div",{className:"flex items-center justify-between py-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Set as Default Preset"}),f.jsx(qs,{checked:k,onChange:w})]}),f.jsxs("div",{className:"flex gap-4 mt-4",children:[f.jsx("button",{type:"submit",className:"flex-1 px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors",children:"Save Preset"}),f.jsx("button",{type:"button",onClick:t,className:"flex-1 px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg transition-colors",children:"Cancel"})]})]})}function jh({colors:e,onChange:t}){const n=(r,i)=>{t({...e,[r]:i})};return f.jsxs("div",{className:"flex flex-col gap-4 w-full",children:[f.jsx("h2",{className:"text-xl font-semibold",children:"Customize Colors"}),f.jsx("div",{className:"flex flex-col gap-4",children:Object.keys(e).map(r=>f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300 capitalize",children:r.replace(/([A-Z])/g," $1").trim()}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx("input",{type:"color",value:e[r],onChange:i=>n(r,i.target.value),className:"w-10 h-10 rounded-full cursor-pointer appearance-none bg-transparent",style:{WebkitAppearance:"none",MozAppearance:"none"}}),f.jsx("div",{className:"absolute inset-0 rounded-full pointer-events-none border border-gray-600",style:{backgroundColor:e[r]}})]}),f.jsx("input",{type:"text",value:e[r],onChange:i=>n(r,i.target.value),className:"flex-1 px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-500"})]})]},r))})]})}function Ph({show:e,onClose:t,showPresetForm:n,presets:r,selectedPreset:i,onSelectPreset:l,onOpenPresetForm:s,onSavePreset:o,onCancelPresetForm:a,colors:u,onColorChange:p}){return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:`fixed inset-0 bg-black/50 backdrop-blur-sm transition-opacity z-40 ${e?"opacity-100":"opacity-0 pointer-events-none"}`,onClick:t}),f.jsxs("div",{className:`fixed top-0 right-0 h-full w-96 bg-gray-900 border-l border-gray-800 transform transition-transform duration-300 ease-in-out z-50 flex flex-col ${e?"translate-x-0":"translate-x-full"}`,children:[f.jsx("div",{className:"flex-none p-6",children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-2xl font-bold",children:"Settings"}),f.jsx("button",{onClick:t,className:"p-2 rounded-lg hover:bg-gray-800 transition-colors",children:f.jsx(Td,{size:20})})]})}),f.jsx("div",{className:"flex-1 overflow-y-auto px-6 pb-6",children:f.jsx("div",{className:"space-y-8",children:n?f.jsx(Th,{onSave:o,onCancel:a}):f.jsxs(f.Fragment,{children:[f.jsx(Eh,{presets:r,selectedPreset:i,onSelectPreset:l,onOpenPresetForm:s}),f.jsx(jh,{colors:u,onChange:p})]})})})]})]})}function Mh({progress:e,isBreak:t,workColor:n,breakColor:r,children:i,size:l=240}){const o=l/2,a=o-8*2,u=a*2*Math.PI,p=u-e*u;return f.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[f.jsx("svg",{height:l,width:l,className:"transform -rotate-90",children:f.jsx("circle",{stroke:t?r:n,fill:"transparent",strokeWidth:8,strokeDasharray:u+" "+u,style:{strokeDashoffset:p},r:a,cx:o,cy:o,className:"transition-all duration-1000"})}),f.jsx("div",{className:"absolute",children:i})]})}function jd(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function zh({isBreak:e,timeLeft:t,isRunning:n,progress:r,currentIteration:i,totalIterations:l,workColor:s,breakColor:o,presetName:a,waitingForManualStart:u,onToggle:p,onReset:m,onSaveAsPreset:v,isCustom:y}){return f.jsxs("div",{className:"flex flex-col items-center gap-8",children:[f.jsxs("div",{className:"text-center",children:[f.jsxs("h2",{className:"text-2xl font-semibold",children:[e?"Break Time":"Work Time",u&&f.jsx("span",{className:"ml-2 text-sm font-normal text-yellow-500",children:"Waiting for manual start..."})]}),f.jsxs("p",{className:"text-sm opacity-75 mt-1",children:["Using ",y?"Custom Timer":a,y&&v&&f.jsxs("button",{onClick:v,className:"ml-2 inline-flex items-center text-blue-400 hover:text-blue-300",title:"Save as preset",children:[f.jsx(gh,{size:14,className:"mr-1"}),"Save as preset"]})]})]}),f.jsx(Mh,{progress:r,isBreak:e,workColor:s,breakColor:o,size:300,children:f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsx("div",{className:"text-7xl font-mono",children:jd(t)}),f.jsxs("div",{className:"text-sm opacity-75",children:["Session ",i," of ",l]})]})}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx("button",{onClick:p,className:"p-4 rounded-full bg-gray-800/50 hover:bg-gray-700/50 transition-colors",children:n?f.jsx(vh,{size:28}):f.jsx(Ed,{size:28})}),f.jsx("button",{onClick:m,className:"p-4 rounded-full bg-gray-800/50 hover:bg-gray-700/50 transition-colors",children:f.jsx(yh,{size:28})})]})]})}function Js({label:e,minutes:t,seconds:n,onMinutesChange:r,onSecondsChange:i,disabled:l=!1}){return f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:e}),f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsxs("div",{className:"flex flex-col",children:[f.jsx("input",{type:"number",min:"0",max:"60",value:t,onChange:s=>r(Math.max(0,parseInt(s.target.value)||0)),disabled:l,className:"w-20 px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-rose-500 disabled:opacity-50 disabled:cursor-not-allowed"}),f.jsx("span",{className:"text-xs text-gray-400 mt-1 text-center",children:"Minutes"})]}),f.jsx("span",{className:"text-2xl",children:":"}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("input",{type:"number",min:"0",max:"59",value:n,onChange:s=>i(Math.max(0,parseInt(s.target.value)||0)),disabled:l,className:"w-20 px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-rose-500 disabled:opacity-50 disabled:cursor-not-allowed"}),f.jsx("span",{className:"text-xs text-gray-400 mt-1 text-center",children:"Seconds"})]})]})]})}function Rh({workMinutes:e,workSeconds:t,breakMinutes:n,breakSeconds:r,iterations:i,requireManualStart:l,onWorkMinutesChange:s,onWorkSecondsChange:o,onBreakMinutesChange:a,onBreakSecondsChange:u,onIterationsChange:p,onRequireManualStartChange:m,disabled:v=!1}){return f.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-gray-900/50 backdrop-blur-sm border-t border-gray-800",children:f.jsx("div",{className:"max-w-4xl mx-auto p-6",children:f.jsxs("div",{className:"flex flex-wrap gap-8 justify-center items-center",children:[f.jsx(Js,{label:"Work Time",minutes:e,seconds:t,onMinutesChange:s,onSecondsChange:o,disabled:v}),f.jsx(Js,{label:"Break Time",minutes:n,seconds:r,onMinutesChange:a,onSecondsChange:u,disabled:v}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Iterations"}),f.jsx("input",{type:"number",min:"1",max:"10",value:i,onChange:y=>p(parseInt(y.target.value)||1),disabled:v,className:"w-20 px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-rose-500 disabled:opacity-50 disabled:cursor-not-allowed"})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Manual Start"}),f.jsx(qs,{checked:l||!1,onChange:m})]})]})})})}function Oh({presets:e,onSave:t,onCancel:n}){const[r,i]=I.useState(""),[l,s]=I.useState([]),o=()=>{s(m=>[...m,{preset:e[0],delayMinutes:0,delaySeconds:0}])},a=m=>{s(v=>v.filter((y,k)=>k!==m))},u=(m,v)=>{s(y=>y.map((k,w)=>w===m?{...k,...v}:k))},p=m=>{m.preventDefault(),t({name:r,presets:l})};return f.jsxs("form",{onSubmit:p,className:"flex flex-col gap-4 w-full max-w-md",children:[f.jsx("h2",{className:"text-xl font-semibold",children:"Create Preset Chain"}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Chain Name"}),f.jsx("input",{type:"text",value:r,onChange:m=>i(m.target.value),className:"px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-500",required:!0})]}),f.jsx("div",{className:"space-y-4",children:l.map((m,v)=>f.jsxs("div",{className:"p-4 bg-gray-800/50 rounded-lg",children:[f.jsxs("div",{className:"flex justify-between items-center mb-4",children:[f.jsxs("h3",{className:"font-medium",children:["Preset ",v+1]}),f.jsx("button",{type:"button",onClick:()=>a(v),className:"p-1 hover:bg-gray-700 rounded-full transition-colors",children:f.jsx(Td,{size:16})})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Select Preset"}),f.jsx("select",{value:m.preset.id,onChange:y=>u(v,{preset:e.find(k=>k.id===y.target.value)}),className:"px-3 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-gray-500",children:e.map(y=>f.jsx("option",{value:y.id,children:y.name},y.id))})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("label",{className:"text-sm text-gray-300",children:"Delay Before Start"}),f.jsx(Js,{label:"",minutes:m.delayMinutes,seconds:m.delaySeconds,onMinutesChange:y=>u(v,{delayMinutes:y}),onSecondsChange:y=>u(v,{delaySeconds:y})})]})]})]},v))}),f.jsxs("button",{type:"button",onClick:o,className:"flex items-center justify-center gap-2 px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded-lg transition-colors",children:[f.jsx(Jo,{size:16}),"Add Preset"]}),f.jsxs("div",{className:"flex gap-4 mt-4",children:[f.jsx("button",{type:"submit",className:"flex-1 px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors",children:"Save Chain"}),f.jsx("button",{type:"button",onClick:n,className:"flex-1 px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg transition-colors",children:"Cancel"})]})]})}function Ih({chains:e,onSelectChain:t,onCreateChain:n,onEditChain:r,onDeleteChain:i}){const l=s=>s.presets.reduce((o,{preset:a,delayMinutes:u,delaySeconds:p})=>{const m=(a.workMinutes*60+a.workSeconds)*a.iterations+(a.breakMinutes*60+a.breakSeconds)*(a.iterations-1),v=u*60+p;return o+m+v},0);return f.jsxs("div",{className:"flex flex-col gap-4 w-full max-w-md",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("h2",{className:"text-xl font-semibold",children:"Preset Chains"}),f.jsx("button",{onClick:n,className:"p-2 rounded-full hover:bg-gray-700 transition-colors",title:"Create new chain",children:f.jsx(Jo,{size:20})})]}),f.jsx("div",{className:"grid grid-cols-1 gap-2",children:e.map(s=>f.jsx("div",{className:"p-4 bg-gray-800 hover:bg-gray-700/50 rounded-lg transition-colors",children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium",children:s.name}),f.jsxs("p",{className:"text-sm text-gray-400",children:[s.presets.length," presets • Total: ",jd(l(s))]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:()=>t(s),className:"p-2 rounded-full hover:bg-gray-600 transition-colors",title:"Start chain",children:f.jsx(Ed,{size:16})}),f.jsx("button",{onClick:()=>r(s),className:"p-2 rounded-full hover:bg-gray-600 transition-colors",title:"Edit chain",children:f.jsx(kh,{size:16})}),f.jsx("button",{onClick:()=>i(s.id),className:"p-2 rounded-full hover:bg-gray-600 transition-colors text-red-400 hover:text-red-300",title:"Delete chain",children:f.jsx(Sh,{size:16})})]})]})},s.id))})]})}function Lh(e){const[t,n]=I.useState(e),[r,i]=I.useState(!1),[l,s]=I.useState(e.workMinutes*60+e.workSeconds),[o,a]=I.useState(!1),[u,p]=I.useState(1),[m,v]=I.useState(1),[y,k]=I.useState(!1),[w,F]=I.useState(!1),d=r?t.breakMinutes*60+t.breakSeconds:t.workMinutes*60+t.workSeconds,c=I.useCallback(()=>{i(!1),s(t.workMinutes*60+t.workSeconds),a(!1),p(1),v(1),k(!1),F(!1)},[t.workMinutes,t.workSeconds]),h=S=>{n(S),o||(s(S.workMinutes*60+S.workSeconds),p(1))},g=()=>{w&&F(!1),a(S=>!S)};return I.useEffect(()=>{o||h(e)},[e,o]),I.useEffect(()=>{let S;return o&&l>0&&!w?S=setInterval(()=>{s(j=>{const P=j-1;return p(P/d),P})},1e3):l===0&&(r?mj+1),i(!1),s(t.workMinutes*60+t.workSeconds),p(1),t.requireManualStart&&(F(!0),a(!1))):(k(!0),a(!1)):(i(!0),s(t.breakMinutes*60+t.breakSeconds),p(1),t.requireManualStart&&(F(!0),a(!1)))),()=>clearInterval(S)},[o,l,r,t,m,d,w]),{isBreak:r,timeLeft:l,isRunning:o,progress:u,currentIteration:m,isComplete:y,waitingForManualStart:w,toggleTimer:g,reset:c,updateSettings:h}}function Dh(e){const[t,n]=I.useState(0),[r,i]=I.useState(0),[l,s]=I.useState(!1),[o,a]=I.useState(!1),u=e.presets[t],p=I.useCallback(()=>{u&&(i(u.delayMinutes*60+u.delaySeconds),s(!0))},[u]),m=I.useCallback(()=>{ty+1),p()):(a(!0),s(!1))},[e.presets.length,t,p]),v=I.useCallback(()=>{n(0),i(0),s(!1),a(!1)},[]);return I.useEffect(()=>{let y;return l&&r>0&&(y=setInterval(()=>{i(k=>k-1)},1e3)),()=>clearInterval(y)},[l,r]),{currentPreset:u==null?void 0:u.preset,delayTimeLeft:r,isRunning:l,isComplete:o,isDelaying:r>0,startChain:p,nextPreset:m,reset:v}}var B;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const l={};for(const s of i)l[s]=s;return l},e.getValidEnumValues=i=>{const l=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(const o of l)s[o]=i[o];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(l){return i[l]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const l=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&l.push(s);return l},e.find=(i,l)=>{for(const s of i)if(l(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,l=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(l)}e.joinValues=r,e.jsonStringifyReplacer=(i,l)=>typeof l=="bigint"?l.toString():l})(B||(B={}));var bs;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(bs||(bs={}));const N=B.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Tt=e=>{switch(typeof e){case"undefined":return N.undefined;case"string":return N.string;case"number":return isNaN(e)?N.nan:N.number;case"boolean":return N.boolean;case"function":return N.function;case"bigint":return N.bigint;case"symbol":return N.symbol;case"object":return Array.isArray(e)?N.array:e===null?N.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?N.promise:typeof Map<"u"&&e instanceof Map?N.map:typeof Set<"u"&&e instanceof Set?N.set:typeof Date<"u"&&e instanceof Date?N.date:N.object;default:return N.unknown}},_=B.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$h=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Oe extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(l){return l.message},r={_errors:[]},i=l=>{for(const s of l.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,a=0;for(;an.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Oe.create=e=>new Oe(e);const Hn=(e,t)=>{let n;switch(e.code){case _.invalid_type:e.received===N.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case _.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,B.jsonStringifyReplacer)}`;break;case _.unrecognized_keys:n=`Unrecognized key(s) in object: ${B.joinValues(e.keys,", ")}`;break;case _.invalid_union:n="Invalid input";break;case _.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${B.joinValues(e.options)}`;break;case _.invalid_enum_value:n=`Invalid enum value. Expected ${B.joinValues(e.options)}, received '${e.received}'`;break;case _.invalid_arguments:n="Invalid function arguments";break;case _.invalid_return_type:n="Invalid function return type";break;case _.invalid_date:n="Invalid date";break;case _.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:B.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case _.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case _.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case _.custom:n="Invalid input";break;case _.invalid_intersection_types:n="Intersection results could not be merged";break;case _.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case _.not_finite:n="Number must be finite";break;default:n=t.defaultError,B.assertNever(e)}return{message:n}};let Pd=Hn;function Ah(e){Pd=e}function sl(){return Pd}const ol=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,l=[...n,...i.path||[]],s={...i,path:l};if(i.message!==void 0)return{...i,path:l,message:i.message};let o="";const a=r.filter(u=>!!u).slice().reverse();for(const u of a)o=u(s,{data:t,defaultError:o}).message;return{...i,path:l,message:o}},Zh=[];function C(e,t){const n=sl(),r=ol({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Hn?void 0:Hn].filter(i=>!!i)});e.common.issues.push(r)}class ye{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return O;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const l=await i.key,s=await i.value;r.push({key:l,value:s})}return ye.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:l,value:s}=i;if(l.status==="aborted"||s.status==="aborted")return O;l.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[l.value]=s.value)}return{status:t.value,value:r}}}const O=Object.freeze({status:"aborted"}),Mn=e=>({status:"dirty",value:e}),ke=e=>({status:"valid",value:e}),eo=e=>e.status==="aborted",to=e=>e.status==="dirty",Zr=e=>e.status==="valid",Ur=e=>typeof Promise<"u"&&e instanceof Promise;function al(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Md(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var z;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(z||(z={}));var dr,fr;class st{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const cu=(e,t)=>{if(Zr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Oe(e.common.issues);return this._error=n,this._error}}};function D(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,o)=>{var a,u;const{message:p}=e;return s.code==="invalid_enum_value"?{message:p??o.defaultError}:typeof o.data>"u"?{message:(a=p??r)!==null&&a!==void 0?a:o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:(u=p??n)!==null&&u!==void 0?u:o.defaultError}},description:i}}class A{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Tt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Tt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ye,ctx:{common:t.parent.common,data:t.data,parsedType:Tt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ur(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Tt(t)},l=this._parseSync({data:t,path:i.path,parent:i});return cu(i,l)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Tt(t)},i=this._parse({data:t,path:r.path,parent:r}),l=await(Ur(i)?i:Promise.resolve(i));return cu(r,l)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,l)=>{const s=t(i),o=()=>l.addIssue({code:_.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(a=>a?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new be({schema:this,typeName:R.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return lt.create(this,this._def)}nullable(){return Bt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qe.create(this,this._def)}promise(){return Yn.create(this,this._def)}or(t){return Wr.create([this,t],this._def)}and(t){return Hr.create(this,t,this._def)}transform(t){return new be({...D(this._def),schema:this,typeName:R.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Gr({...D(this._def),innerType:this,defaultValue:n,typeName:R.ZodDefault})}brand(){return new bo({typeName:R.ZodBranded,type:this,...D(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new qr({...D(this._def),innerType:this,catchValue:n,typeName:R.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ii.create(this,t)}readonly(){return Jr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Uh=/^c[^\s-]{8,}$/i,Fh=/^[0-9a-z]+$/,Vh=/^[0-9A-HJKMNP-TV-Z]{26}$/,Bh=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Wh=/^[a-z0-9_-]{21}$/i,Hh=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Qh=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Yh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let rs;const Kh=/^(?:(?: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])$/,Xh=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Gh=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,zd="((\\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])))",qh=new RegExp(`^${zd}$`);function Rd(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Jh(e){return new RegExp(`^${Rd(e)}$`)}function Od(e){let t=`${zd}T${Rd(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function bh(e,t){return!!((t==="v4"||!t)&&Kh.test(e)||(t==="v6"||!t)&&Xh.test(e))}class Ke extends A{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==N.string){const l=this._getOrReturnCtx(t);return C(l,{code:_.invalid_type,expected:N.string,received:l.parsedType}),O}const r=new ye;let i;for(const l of this._def.checks)if(l.kind==="min")t.data.lengthl.value&&(i=this._getOrReturnCtx(t,i),C(i,{code:_.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),r.dirty());else if(l.kind==="length"){const s=t.data.length>l.value,o=t.data.lengtht.test(i),{validation:n,code:_.invalid_string,...z.errToObj(r)})}_addCheck(t){return new Ke({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...z.errToObj(t)})}url(t){return this._addCheck({kind:"url",...z.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...z.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...z.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...z.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...z.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...z.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...z.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...z.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...z.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...z.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...z.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...z.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...z.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...z.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...z.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...z.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...z.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...z.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...z.errToObj(n)})}nonempty(t){return this.min(1,z.errToObj(t))}trim(){return new Ke({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ke({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ke({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ke({checks:[],typeName:R.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...D(e)})};function em(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,l=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return l%s/Math.pow(10,i)}class Ut extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==N.number){const l=this._getOrReturnCtx(t);return C(l,{code:_.invalid_type,expected:N.number,received:l.parsedType}),O}let r;const i=new ye;for(const l of this._def.checks)l.kind==="int"?B.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),C(r,{code:_.invalid_type,expected:"integer",received:"float",message:l.message}),i.dirty()):l.kind==="min"?(l.inclusive?t.datal.value:t.data>=l.value)&&(r=this._getOrReturnCtx(t,r),C(r,{code:_.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),i.dirty()):l.kind==="multipleOf"?em(t.data,l.value)!==0&&(r=this._getOrReturnCtx(t,r),C(r,{code:_.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),C(r,{code:_.not_finite,message:l.message}),i.dirty()):B.assertNever(l);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,z.toString(n))}gt(t,n){return this.setLimit("min",t,!1,z.toString(n))}lte(t,n){return this.setLimit("max",t,!0,z.toString(n))}lt(t,n){return this.setLimit("max",t,!1,z.toString(n))}setLimit(t,n,r,i){return new Ut({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:z.toString(i)}]})}_addCheck(t){return new Ut({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:z.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:z.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:z.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:z.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:z.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:z.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:z.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:z.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:z.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&B.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Ut({checks:[],typeName:R.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...D(e)});class Ft extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==N.bigint){const l=this._getOrReturnCtx(t);return C(l,{code:_.invalid_type,expected:N.bigint,received:l.parsedType}),O}let r;const i=new ye;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.datal.value:t.data>=l.value)&&(r=this._getOrReturnCtx(t,r),C(r,{code:_.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),i.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),C(r,{code:_.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):B.assertNever(l);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,z.toString(n))}gt(t,n){return this.setLimit("min",t,!1,z.toString(n))}lte(t,n){return this.setLimit("max",t,!0,z.toString(n))}lt(t,n){return this.setLimit("max",t,!1,z.toString(n))}setLimit(t,n,r,i){return new Ft({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:z.toString(i)}]})}_addCheck(t){return new Ft({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:z.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:z.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:z.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:z.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:z.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ft({checks:[],typeName:R.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...D(e)})};class Fr extends A{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==N.boolean){const r=this._getOrReturnCtx(t);return C(r,{code:_.invalid_type,expected:N.boolean,received:r.parsedType}),O}return ke(t.data)}}Fr.create=e=>new Fr({typeName:R.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...D(e)});class cn extends A{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==N.date){const l=this._getOrReturnCtx(t);return C(l,{code:_.invalid_type,expected:N.date,received:l.parsedType}),O}if(isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return C(l,{code:_.invalid_date}),O}const r=new ye;let i;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()l.value&&(i=this._getOrReturnCtx(t,i),C(i,{code:_.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),r.dirty()):B.assertNever(l);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new cn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:z.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:z.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew cn({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:R.ZodDate,...D(e)});class ul extends A{_parse(t){if(this._getType(t)!==N.symbol){const r=this._getOrReturnCtx(t);return C(r,{code:_.invalid_type,expected:N.symbol,received:r.parsedType}),O}return ke(t.data)}}ul.create=e=>new ul({typeName:R.ZodSymbol,...D(e)});class Vr extends A{_parse(t){if(this._getType(t)!==N.undefined){const r=this._getOrReturnCtx(t);return C(r,{code:_.invalid_type,expected:N.undefined,received:r.parsedType}),O}return ke(t.data)}}Vr.create=e=>new Vr({typeName:R.ZodUndefined,...D(e)});class Br extends A{_parse(t){if(this._getType(t)!==N.null){const r=this._getOrReturnCtx(t);return C(r,{code:_.invalid_type,expected:N.null,received:r.parsedType}),O}return ke(t.data)}}Br.create=e=>new Br({typeName:R.ZodNull,...D(e)});class Qn extends A{constructor(){super(...arguments),this._any=!0}_parse(t){return ke(t.data)}}Qn.create=e=>new Qn({typeName:R.ZodAny,...D(e)});class rn extends A{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ke(t.data)}}rn.create=e=>new rn({typeName:R.ZodUnknown,...D(e)});class kt extends A{_parse(t){const n=this._getOrReturnCtx(t);return C(n,{code:_.invalid_type,expected:N.never,received:n.parsedType}),O}}kt.create=e=>new kt({typeName:R.ZodNever,...D(e)});class cl extends A{_parse(t){if(this._getType(t)!==N.undefined){const r=this._getOrReturnCtx(t);return C(r,{code:_.invalid_type,expected:N.void,received:r.parsedType}),O}return ke(t.data)}}cl.create=e=>new cl({typeName:R.ZodVoid,...D(e)});class qe extends A{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==N.array)return C(n,{code:_.invalid_type,expected:N.array,received:n.parsedType}),O;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,o=n.data.lengthi.maxLength.value&&(C(n,{code:_.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>i.type._parseAsync(new st(n,s,n.path,o)))).then(s=>ye.mergeArray(r,s));const l=[...n.data].map((s,o)=>i.type._parseSync(new st(n,s,n.path,o)));return ye.mergeArray(r,l)}get element(){return this._def.type}min(t,n){return new qe({...this._def,minLength:{value:t,message:z.toString(n)}})}max(t,n){return new qe({...this._def,maxLength:{value:t,message:z.toString(n)}})}length(t,n){return new qe({...this._def,exactLength:{value:t,message:z.toString(n)}})}nonempty(t){return this.min(1,t)}}qe.create=(e,t)=>new qe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:R.ZodArray,...D(t)});function yn(e){if(e instanceof b){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=lt.create(yn(r))}return new b({...e._def,shape:()=>t})}else return e instanceof qe?new qe({...e._def,type:yn(e.element)}):e instanceof lt?lt.create(yn(e.unwrap())):e instanceof Bt?Bt.create(yn(e.unwrap())):e instanceof ot?ot.create(e.items.map(t=>yn(t))):e}class b extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=B.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==N.object){const u=this._getOrReturnCtx(t);return C(u,{code:_.invalid_type,expected:N.object,received:u.parsedType}),O}const{status:r,ctx:i}=this._processInputParams(t),{shape:l,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof kt&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||o.push(u);const a=[];for(const u of s){const p=l[u],m=i.data[u];a.push({key:{status:"valid",value:u},value:p._parse(new st(i,m,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof kt){const u=this._def.unknownKeys;if(u==="passthrough")for(const p of o)a.push({key:{status:"valid",value:p},value:{status:"valid",value:i.data[p]}});else if(u==="strict")o.length>0&&(C(i,{code:_.unrecognized_keys,keys:o}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const p of o){const m=i.data[p];a.push({key:{status:"valid",value:p},value:u._parse(new st(i,m,i.path,p)),alwaysSet:p in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const p of a){const m=await p.key,v=await p.value;u.push({key:m,value:v,alwaysSet:p.alwaysSet})}return u}).then(u=>ye.mergeObjectSync(r,u)):ye.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return z.errToObj,new b({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,l,s,o;const a=(s=(l=(i=this._def).errorMap)===null||l===void 0?void 0:l.call(i,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=z.errToObj(t).message)!==null&&o!==void 0?o:a}:{message:a}}}:{}})}strip(){return new b({...this._def,unknownKeys:"strip"})}passthrough(){return new b({...this._def,unknownKeys:"passthrough"})}extend(t){return new b({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new b({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:R.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new b({...this._def,catchall:t})}pick(t){const n={};return B.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new b({...this._def,shape:()=>n})}omit(t){const n={};return B.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new b({...this._def,shape:()=>n})}deepPartial(){return yn(this)}partial(t){const n={};return B.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new b({...this._def,shape:()=>n})}required(t){const n={};return B.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let l=this.shape[r];for(;l instanceof lt;)l=l._def.innerType;n[r]=l}}),new b({...this._def,shape:()=>n})}keyof(){return Id(B.objectKeys(this.shape))}}b.create=(e,t)=>new b({shape:()=>e,unknownKeys:"strip",catchall:kt.create(),typeName:R.ZodObject,...D(t)});b.strictCreate=(e,t)=>new b({shape:()=>e,unknownKeys:"strict",catchall:kt.create(),typeName:R.ZodObject,...D(t)});b.lazycreate=(e,t)=>new b({shape:e,unknownKeys:"strip",catchall:kt.create(),typeName:R.ZodObject,...D(t)});class Wr extends A{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(l){for(const o of l)if(o.result.status==="valid")return o.result;for(const o of l)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=l.map(o=>new Oe(o.ctx.common.issues));return C(n,{code:_.invalid_union,unionErrors:s}),O}if(n.common.async)return Promise.all(r.map(async l=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let l;const s=[];for(const a of r){const u={...n,common:{...n.common,issues:[]},parent:null},p=a._parseSync({data:n.data,path:n.path,parent:u});if(p.status==="valid")return p;p.status==="dirty"&&!l&&(l={result:p,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const o=s.map(a=>new Oe(a));return C(n,{code:_.invalid_union,unionErrors:o}),O}}get options(){return this._def.options}}Wr.create=(e,t)=>new Wr({options:e,typeName:R.ZodUnion,...D(t)});const ct=e=>e instanceof Yr?ct(e.schema):e instanceof be?ct(e.innerType()):e instanceof Kr?[e.value]:e instanceof Vt?e.options:e instanceof Xr?B.objectValues(e.enum):e instanceof Gr?ct(e._def.innerType):e instanceof Vr?[void 0]:e instanceof Br?[null]:e instanceof lt?[void 0,...ct(e.unwrap())]:e instanceof Bt?[null,...ct(e.unwrap())]:e instanceof bo||e instanceof Jr?ct(e.unwrap()):e instanceof qr?ct(e._def.innerType):[];class Pl extends A{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==N.object)return C(n,{code:_.invalid_type,expected:N.object,received:n.parsedType}),O;const r=this.discriminator,i=n.data[r],l=this.optionsMap.get(i);return l?n.common.async?l._parseAsync({data:n.data,path:n.path,parent:n}):l._parseSync({data:n.data,path:n.path,parent:n}):(C(n,{code:_.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),O)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const l of n){const s=ct(l.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const o of s){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,l)}}return new Pl({typeName:R.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...D(r)})}}function no(e,t){const n=Tt(e),r=Tt(t);if(e===t)return{valid:!0,data:e};if(n===N.object&&r===N.object){const i=B.objectKeys(t),l=B.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(const o of l){const a=no(e[o],t[o]);if(!a.valid)return{valid:!1};s[o]=a.data}return{valid:!0,data:s}}else if(n===N.array&&r===N.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let l=0;l{if(eo(l)||eo(s))return O;const o=no(l.value,s.value);return o.valid?((to(l)||to(s))&&n.dirty(),{status:n.value,value:o.data}):(C(r,{code:_.invalid_intersection_types}),O)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([l,s])=>i(l,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Hr.create=(e,t,n)=>new Hr({left:e,right:t,typeName:R.ZodIntersection,...D(n)});class ot extends A{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==N.array)return C(r,{code:_.invalid_type,expected:N.array,received:r.parsedType}),O;if(r.data.lengththis._def.items.length&&(C(r,{code:_.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...r.data].map((s,o)=>{const a=this._def.items[o]||this._def.rest;return a?a._parse(new st(r,s,r.path,o)):null}).filter(s=>!!s);return r.common.async?Promise.all(l).then(s=>ye.mergeArray(n,s)):ye.mergeArray(n,l)}get items(){return this._def.items}rest(t){return new ot({...this._def,rest:t})}}ot.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ot({items:e,typeName:R.ZodTuple,rest:null,...D(t)})};class Qr extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==N.object)return C(r,{code:_.invalid_type,expected:N.object,received:r.parsedType}),O;const i=[],l=this._def.keyType,s=this._def.valueType;for(const o in r.data)i.push({key:l._parse(new st(r,o,r.path,o)),value:s._parse(new st(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?ye.mergeObjectAsync(n,i):ye.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof A?new Qr({keyType:t,valueType:n,typeName:R.ZodRecord,...D(r)}):new Qr({keyType:Ke.create(),valueType:t,typeName:R.ZodRecord,...D(n)})}}class dl extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==N.map)return C(r,{code:_.invalid_type,expected:N.map,received:r.parsedType}),O;const i=this._def.keyType,l=this._def.valueType,s=[...r.data.entries()].map(([o,a],u)=>({key:i._parse(new st(r,o,r.path,[u,"key"])),value:l._parse(new st(r,a,r.path,[u,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const a of s){const u=await a.key,p=await a.value;if(u.status==="aborted"||p.status==="aborted")return O;(u.status==="dirty"||p.status==="dirty")&&n.dirty(),o.set(u.value,p.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const a of s){const u=a.key,p=a.value;if(u.status==="aborted"||p.status==="aborted")return O;(u.status==="dirty"||p.status==="dirty")&&n.dirty(),o.set(u.value,p.value)}return{status:n.value,value:o}}}}dl.create=(e,t,n)=>new dl({valueType:t,keyType:e,typeName:R.ZodMap,...D(n)});class dn extends A{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==N.set)return C(r,{code:_.invalid_type,expected:N.set,received:r.parsedType}),O;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(C(r,{code:_.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const l=this._def.valueType;function s(a){const u=new Set;for(const p of a){if(p.status==="aborted")return O;p.status==="dirty"&&n.dirty(),u.add(p.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((a,u)=>l._parse(new st(r,a,r.path,u)));return r.common.async?Promise.all(o).then(a=>s(a)):s(o)}min(t,n){return new dn({...this._def,minSize:{value:t,message:z.toString(n)}})}max(t,n){return new dn({...this._def,maxSize:{value:t,message:z.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}dn.create=(e,t)=>new dn({valueType:e,minSize:null,maxSize:null,typeName:R.ZodSet,...D(t)});class $n extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==N.function)return C(n,{code:_.invalid_type,expected:N.function,received:n.parsedType}),O;function r(o,a){return ol({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sl(),Hn].filter(u=>!!u),issueData:{code:_.invalid_arguments,argumentsError:a}})}function i(o,a){return ol({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,sl(),Hn].filter(u=>!!u),issueData:{code:_.invalid_return_type,returnTypeError:a}})}const l={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Yn){const o=this;return ke(async function(...a){const u=new Oe([]),p=await o._def.args.parseAsync(a,l).catch(y=>{throw u.addIssue(r(a,y)),u}),m=await Reflect.apply(s,this,p);return await o._def.returns._def.type.parseAsync(m,l).catch(y=>{throw u.addIssue(i(m,y)),u})})}else{const o=this;return ke(function(...a){const u=o._def.args.safeParse(a,l);if(!u.success)throw new Oe([r(a,u.error)]);const p=Reflect.apply(s,this,u.data),m=o._def.returns.safeParse(p,l);if(!m.success)throw new Oe([i(p,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new $n({...this._def,args:ot.create(t).rest(rn.create())})}returns(t){return new $n({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new $n({args:t||ot.create([]).rest(rn.create()),returns:n||rn.create(),typeName:R.ZodFunction,...D(r)})}}class Yr extends A{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Yr.create=(e,t)=>new Yr({getter:e,typeName:R.ZodLazy,...D(t)});class Kr extends A{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return C(n,{received:n.data,code:_.invalid_literal,expected:this._def.value}),O}return{status:"valid",value:t.data}}get value(){return this._def.value}}Kr.create=(e,t)=>new Kr({value:e,typeName:R.ZodLiteral,...D(t)});function Id(e,t){return new Vt({values:e,typeName:R.ZodEnum,...D(t)})}class Vt extends A{constructor(){super(...arguments),dr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return C(n,{expected:B.joinValues(r),received:n.parsedType,code:_.invalid_type}),O}if(al(this,dr)||Md(this,dr,new Set(this._def.values)),!al(this,dr).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return C(n,{received:n.data,code:_.invalid_enum_value,options:r}),O}return ke(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Vt.create(t,{...this._def,...n})}exclude(t,n=this._def){return Vt.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}dr=new WeakMap;Vt.create=Id;class Xr extends A{constructor(){super(...arguments),fr.set(this,void 0)}_parse(t){const n=B.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==N.string&&r.parsedType!==N.number){const i=B.objectValues(n);return C(r,{expected:B.joinValues(i),received:r.parsedType,code:_.invalid_type}),O}if(al(this,fr)||Md(this,fr,new Set(B.getValidEnumValues(this._def.values))),!al(this,fr).has(t.data)){const i=B.objectValues(n);return C(r,{received:r.data,code:_.invalid_enum_value,options:i}),O}return ke(t.data)}get enum(){return this._def.values}}fr=new WeakMap;Xr.create=(e,t)=>new Xr({values:e,typeName:R.ZodNativeEnum,...D(t)});class Yn extends A{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==N.promise&&n.common.async===!1)return C(n,{code:_.invalid_type,expected:N.promise,received:n.parsedType}),O;const r=n.parsedType===N.promise?n.data:Promise.resolve(n.data);return ke(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Yn.create=(e,t)=>new Yn({type:e,typeName:R.ZodPromise,...D(t)});class be extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===R.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,l={addIssue:s=>{C(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(l.addIssue=l.addIssue.bind(l),i.type==="preprocess"){const s=i.transform(r.data,l);if(r.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return O;const a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status==="aborted"?O:a.status==="dirty"||n.value==="dirty"?Mn(a.value):a});{if(n.value==="aborted")return O;const o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?O:o.status==="dirty"||n.value==="dirty"?Mn(o.value):o}}if(i.type==="refinement"){const s=o=>{const a=i.refinement(o,l);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?O:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?O:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Zr(s))return s;const o=i.transform(s.value,l);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Zr(s)?Promise.resolve(i.transform(s.value,l)).then(o=>({status:n.value,value:o})):s);B.assertNever(i)}}be.create=(e,t,n)=>new be({schema:e,typeName:R.ZodEffects,effect:t,...D(n)});be.createWithPreprocess=(e,t,n)=>new be({schema:t,effect:{type:"preprocess",transform:e},typeName:R.ZodEffects,...D(n)});class lt extends A{_parse(t){return this._getType(t)===N.undefined?ke(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}lt.create=(e,t)=>new lt({innerType:e,typeName:R.ZodOptional,...D(t)});class Bt extends A{_parse(t){return this._getType(t)===N.null?ke(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Bt.create=(e,t)=>new Bt({innerType:e,typeName:R.ZodNullable,...D(t)});class Gr extends A{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===N.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Gr.create=(e,t)=>new Gr({innerType:e,typeName:R.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...D(t)});class qr extends A{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ur(i)?i.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Oe(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Oe(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}qr.create=(e,t)=>new qr({innerType:e,typeName:R.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...D(t)});class fl extends A{_parse(t){if(this._getType(t)!==N.nan){const r=this._getOrReturnCtx(t);return C(r,{code:_.invalid_type,expected:N.nan,received:r.parsedType}),O}return{status:"valid",value:t.data}}}fl.create=e=>new fl({typeName:R.ZodNaN,...D(e)});const tm=Symbol("zod_brand");class bo extends A{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ii extends A{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?O:l.status==="dirty"?(n.dirty(),Mn(l.value)):this._def.out._parseAsync({data:l.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?O:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new ii({in:t,out:n,typeName:R.ZodPipeline})}}class Jr extends A{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Zr(i)&&(i.value=Object.freeze(i.value)),i);return Ur(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Jr.create=(e,t)=>new Jr({innerType:e,typeName:R.ZodReadonly,...D(t)});function Ld(e,t={},n){return e?Qn.create().superRefine((r,i)=>{var l,s;if(!e(r)){const o=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,a=(s=(l=o.fatal)!==null&&l!==void 0?l:n)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:a})}}):Qn.create()}const nm={object:b.lazycreate};var R;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(R||(R={}));const rm=(e,t={message:`Input not instance of ${e.name}`})=>Ld(n=>n instanceof e,t),Dd=Ke.create,$d=Ut.create,im=fl.create,lm=Ft.create,Ad=Fr.create,sm=cn.create,om=ul.create,am=Vr.create,um=Br.create,cm=Qn.create,dm=rn.create,fm=kt.create,pm=cl.create,hm=qe.create,mm=b.create,vm=b.strictCreate,ym=Wr.create,gm=Pl.create,xm=Hr.create,km=ot.create,_m=Qr.create,wm=dl.create,Sm=dn.create,Cm=$n.create,Nm=Yr.create,Em=Kr.create,Tm=Vt.create,jm=Xr.create,Pm=Yn.create,du=be.create,Mm=lt.create,zm=Bt.create,Rm=be.createWithPreprocess,Om=ii.create,Im=()=>Dd().optional(),Lm=()=>$d().optional(),Dm=()=>Ad().optional(),$m={string:e=>Ke.create({...e,coerce:!0}),number:e=>Ut.create({...e,coerce:!0}),boolean:e=>Fr.create({...e,coerce:!0}),bigint:e=>Ft.create({...e,coerce:!0}),date:e=>cn.create({...e,coerce:!0})},Am=O;var ut=Object.freeze({__proto__:null,defaultErrorMap:Hn,setErrorMap:Ah,getErrorMap:sl,makeIssue:ol,EMPTY_PATH:Zh,addIssueToContext:C,ParseStatus:ye,INVALID:O,DIRTY:Mn,OK:ke,isAborted:eo,isDirty:to,isValid:Zr,isAsync:Ur,get util(){return B},get objectUtil(){return bs},ZodParsedType:N,getParsedType:Tt,ZodType:A,datetimeRegex:Od,ZodString:Ke,ZodNumber:Ut,ZodBigInt:Ft,ZodBoolean:Fr,ZodDate:cn,ZodSymbol:ul,ZodUndefined:Vr,ZodNull:Br,ZodAny:Qn,ZodUnknown:rn,ZodNever:kt,ZodVoid:cl,ZodArray:qe,ZodObject:b,ZodUnion:Wr,ZodDiscriminatedUnion:Pl,ZodIntersection:Hr,ZodTuple:ot,ZodRecord:Qr,ZodMap:dl,ZodSet:dn,ZodFunction:$n,ZodLazy:Yr,ZodLiteral:Kr,ZodEnum:Vt,ZodNativeEnum:Xr,ZodPromise:Yn,ZodEffects:be,ZodTransformer:be,ZodOptional:lt,ZodNullable:Bt,ZodDefault:Gr,ZodCatch:qr,ZodNaN:fl,BRAND:tm,ZodBranded:bo,ZodPipeline:ii,ZodReadonly:Jr,custom:Ld,Schema:A,ZodSchema:A,late:nm,get ZodFirstPartyTypeKind(){return R},coerce:$m,any:cm,array:hm,bigint:lm,boolean:Ad,date:sm,discriminatedUnion:gm,effect:du,enum:Tm,function:Cm,instanceof:rm,intersection:xm,lazy:Nm,literal:Em,map:wm,nan:im,nativeEnum:jm,never:fm,null:um,nullable:zm,number:$d,object:mm,oboolean:Dm,onumber:Lm,optional:Mm,ostring:Im,pipeline:Om,preprocess:Rm,promise:Pm,record:_m,set:Sm,strictObject:vm,string:Dd,symbol:om,transformer:du,tuple:km,undefined:am,union:ym,unknown:dm,void:pm,NEVER:Am,ZodIssueCode:_,quotelessJson:$h,ZodError:Oe});const Si={NONE:"none",DAILY:"daily",WEEKLY:"weekly",MONTHLY:"monthly"};ut.object({name:ut.string().min(1,"Name is required"),presetId:ut.string(),chainId:ut.string().optional(),startTime:ut.string().regex(/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/,"Invalid time format"),days:ut.array(ut.number()).optional(),recurrence:ut.enum([Si.NONE,Si.DAILY,Si.WEEKLY,Si.MONTHLY]),isEnabled:ut.boolean()});const fu=[{id:"classic",name:"Classic Pomodoro",workMinutes:25,breakMinutes:5,workSeconds:0,breakSeconds:0,iterations:4,requireManualStart:!1,isDefault:!0},{id:"short",name:"Short Sessions",workMinutes:15,breakMinutes:3,workSeconds:0,breakSeconds:0,iterations:6,requireManualStart:!1},{id:"long",name:"Long Focus",workMinutes:45,breakMinutes:15,workSeconds:0,breakSeconds:0,iterations:2,requireManualStart:!1}],Zm={background:"#f3f4f6",workColor:"#ef4444",breakColor:"#10b981",text:"#111827"},is={background:"#111827",workColor:"#ef4444",breakColor:"#10b981",text:"#ffffff"};function Um(){const[e,t]=I.useState(!0),[n,r]=I.useState(fu),[i,l]=I.useState([]),[s,o]=I.useState(fu[0]),[a,u]=I.useState(null),[p,m]=I.useState(!1),[v,y]=I.useState(!1),[k,w]=I.useState(!1),[F,d]=I.useState(!1),[c,h]=I.useState(is),[g,S]=I.useState(!1),[j,P]=I.useState({workMinutes:25,workSeconds:0,breakMinutes:5,breakSeconds:0,iterations:4,requireManualStart:!1}),M=g?j:s,{isBreak:q,timeLeft:Z,isRunning:Se,progress:Yt,currentIteration:Kt,isComplete:li,waitingForManualStart:Ml,toggleTimer:qn,reset:hn,updateSettings:E}=Lh(M);a&&Dh(a);const L=()=>{t(V=>!V),h(V=>V===is?Zm:is)},$=V=>{const Pe={...V,id:Date.now().toString(),workSeconds:0,breakSeconds:0};r(Xt=>[...Xt,Pe]),o(Pe),m(!1),S(!1)},J=V=>{const Pe={...V,id:Date.now().toString()};l(Xt=>[...Xt,Pe]),y(!1)},Y=(V,Pe)=>{P(Xt=>{const ea={...Xt,[V]:Pe};return E(ea),ea}),S(!0)},mn=V=>{o(V),u(null),S(!1)},at=V=>{u(V),S(!1)},Jn=()=>{m(!0),w(!0)};return f.jsxs("div",{className:"min-h-screen transition-colors pb-32",style:{backgroundColor:c.background,color:c.text},children:[f.jsx(Nh,{showSettings:k,onToggleSettings:()=>w(!k),isDark:e,onToggleTheme:L,onToggleChainPanel:()=>d(!F),showChainPanel:F}),f.jsx(Ph,{show:k,onClose:()=>w(!1),showPresetForm:p,presets:n,selectedPreset:s,onSelectPreset:mn,onOpenPresetForm:()=>m(!0),onSavePreset:$,onCancelPresetForm:()=>m(!1),colors:c,onColorChange:h,initialPresetValues:g?j:void 0}),f.jsx("main",{className:"pt-16 min-h-screen",children:f.jsxs("div",{className:"max-w-7xl mx-auto px-4 flex",children:[f.jsx("div",{className:`flex-1 flex items-center justify-center ${F?"w-1/2":"w-full"}`,children:li?f.jsxs("div",{className:"text-center",children:[f.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Session Complete!"}),f.jsx("button",{onClick:hn,className:"px-6 py-3 bg-gray-800/50 hover:bg-gray-700/50 rounded-lg transition-colors",children:"Start New Session"})]}):f.jsx(zh,{isBreak:q,timeLeft:Z,isRunning:Se,progress:Yt,currentIteration:Kt,totalIterations:M.iterations,workColor:c.workColor,breakColor:c.breakColor,presetName:s.name,onToggle:qn,onReset:hn,onSaveAsPreset:g?Jn:void 0,isCustom:g,waitingForManualStart:Ml})}),F&&f.jsx("div",{className:"w-1/2 p-8 border-l border-gray-800",children:v?f.jsx(Oh,{presets:n,onSave:J,onCancel:()=>y(!1)}):f.jsx(Ih,{chains:i,onSelectChain:at,onCreateChain:()=>y(!0),onEditChain:V=>{},onDeleteChain:V=>{l(Pe=>Pe.filter(Xt=>Xt.id!==V))}})})]})}),f.jsx(Rh,{workMinutes:M.workMinutes,workSeconds:M.workSeconds,breakMinutes:M.breakMinutes,breakSeconds:M.breakSeconds,iterations:M.iterations,requireManualStart:M.requireManualStart,onWorkMinutesChange:V=>Y("workMinutes",V),onWorkSecondsChange:V=>Y("workSeconds",V),onBreakMinutesChange:V=>Y("breakMinutes",V),onBreakSecondsChange:V=>Y("breakSeconds",V),onIterationsChange:V=>Y("iterations",V),onRequireManualStartChange:V=>Y("requireManualStart",V),disabled:Se})]})}Nd(document.getElementById("root")).render(f.jsx(I.StrictMode,{children:f.jsx(Um,{})})); diff --git a/index.html b/index.html new file mode 100644 index 0000000..bd7ef38 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + Pomomer + + + + +
+ +