diff --git a/v3/internal/setupwizard/assets/apple-sdk-license.pdf b/v3/internal/setupwizard/assets/apple-sdk-license.pdf new file mode 100644 index 000000000..aa75a5752 Binary files /dev/null and b/v3/internal/setupwizard/assets/apple-sdk-license.pdf differ diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-BKINrEPO.css b/v3/internal/setupwizard/frontend/dist/assets/index-BKINrEPO.css deleted file mode 100644 index bcf7a270f..000000000 --- a/v3/internal/setupwizard/frontend/dist/assets/index-BKINrEPO.css +++ /dev/null @@ -1 +0,0 @@ -*,: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:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;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}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-1\/2{height:50%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[200\%\]{height:200%}.h-\[75vh\]{height:75vh}.h-full{height:100%}.max-h-\[75vh\]{max-height:75vh}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[75vw\]{width:75vw}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-\[75vw\]{max-width:75vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-200\/50{border-color:#e5e7eb80}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white\/10{border-color:#ffffff1a}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-t-blue-500{--tw-border-opacity: 1;border-top-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-t-red-500{--tw-border-opacity: 1;border-top-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.bg-blue-400\/10{background-color:#60a5fa1a}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/20{background-color:#3b82f633}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-100\/80{background-color:#f3f4f6cc}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/20{background-color:#22c55e33}.bg-purple-400\/10{background-color:#c084fc1a}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-400\/10{background-color:#facc151a}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-4{padding-top:1rem}.pt-\[15\%\]{padding-top:15%}.text-left{text-align:left}.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-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / 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))}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-\[0\.08\]{opacity:.08}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-400\/20{--tw-shadow-color: rgb(96 165 250 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-400\/20{--tw-shadow-color: rgb(192 132 252 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/10{--tw-shadow-color: rgb(239 68 68 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-400\/20{--tw-shadow-color: rgb(250 204 21 / .2);--tw-shadow: var(--tw-shadow-colored)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));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)}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:root{--wails-red: #ef4444;--wails-red-dark: #dc2626;--wails-red-light: #f87171;--wails-blue: #1d63ed;--wails-blue-dark: #1554d0;--wails-blue-light: #3b7dff;--bg-primary: #05070b;--bg-secondary: #0a0e16;--bg-tertiary: #0f1420;--glass-bg: rgba(255, 255, 255, .06);--glass-border: rgba(255, 255, 255, .08)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;background:var(--bg-primary);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.gradient-text{background:linear-gradient(135deg,#fff,#ef4444);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.glass-card{background:linear-gradient(180deg,#ffffff14,#ffffff0a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);box-shadow:0 30px 80px #00000080}.glass-sidebar{background:#05070c8c;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-right:1px solid var(--glass-border)}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .12s ease}.settings-row:hover{background:#0000000a}.dark .settings-row:hover{background:#ffffff0f}.settings-row+.settings-row{border-top:1px solid rgba(0,0,0,.1)}.dark .settings-row+.settings-row{border-top:1px solid var(--glass-border)}.settings-group{border-radius:12px;background:#0000000a;box-shadow:0 4px 12px #00000014,0 0 0 1px #00000014 inset;overflow:hidden}.dark .settings-group{background:#ffffff1a;box-shadow:0 12px 30px #00000059,0 0 0 1px var(--glass-border) inset;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.grid-bg{background-image:linear-gradient(rgba(239,68,68,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(239,68,68,.03) 1px,transparent 1px);background-size:40px 40px}.radial-glow{background:radial-gradient(ellipse at center,rgba(239,68,68,.1) 0%,transparent 70%)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.scrollbar-thin::-webkit-scrollbar{width:4px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:#9ca3af4d;border-radius:2px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:#9ca3af80}.btn-primary{border-radius:.75rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #dc2626 var(--tw-gradient-to-position);padding:.75rem 2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-primary:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(239 68 68 / .3);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:active{--tw-scale-x: .95;--tw-scale-y: .95;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))}.btn-secondary{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));background-color:transparent;padding:.75rem 2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-secondary:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));background-color:#1f293780;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite}.check-path{stroke-dasharray:100;stroke-dashoffset:100;animation:drawCheck .5s ease-out forwards}@keyframes scrollBackground{0%{transform:translateY(0)}to{transform:translateY(-50%)}}.scrolling-bg{animation:scrollBackground 60s linear infinite}@media (prefers-reduced-motion: reduce){*:not(.animate-spin):not(.spinner),*:not(.animate-spin):not(.spinner):before,*:not(.animate-spin):not(.spinner):after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.last\:border-0:last-child{border-width:0px}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:opacity-70:hover{opacity:.7}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800\/50:is(.dark *){border-color:#1f293780}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}.dark\:bg-\[\#0f0f0f\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 15 15 / var(--tw-bg-opacity, 1))}.dark\:bg-black\/30:is(.dark *){background-color:#0000004d}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/50:is(.dark *){background-color:#11182780}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}.dark\:bg-white\/\[0\.03\]:is(.dark *){background-color:#ffffff08}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:text-white\/40:is(.dark *){color:#fff6}.dark\:text-white\/50:is(.dark *){color:#ffffff80}.dark\:text-white\/65:is(.dark *){color:#ffffffa6}.dark\:text-white\/70:is(.dark *){color:#ffffffb3}.dark\:text-white\/90:is(.dark *){color:#ffffffe6}.dark\:placeholder-gray-500:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:placeholder-gray-500:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:opacity-\[0\.06\]:is(.dark *){opacity:.06}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-white\/10:hover:is(.dark *){background-color:#ffffff1a}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))} diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-CEPUVERO.js b/v3/internal/setupwizard/frontend/dist/assets/index-CEPUVERO.js deleted file mode 100644 index 33d29732a..000000000 --- a/v3/internal/setupwizard/frontend/dist/assets/index-CEPUVERO.js +++ /dev/null @@ -1,60 +0,0 @@ -(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 s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function $m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qf={exports:{}},Es={},Zf={exports:{}},I={};/** - * @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 ri=Symbol.for("react.element"),bm=Symbol.for("react.portal"),Hm=Symbol.for("react.fragment"),Km=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),Ym=Symbol.for("react.provider"),Qm=Symbol.for("react.context"),Zm=Symbol.for("react.forward_ref"),Xm=Symbol.for("react.suspense"),qm=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Tu=Symbol.iterator;function e0(e){return e===null||typeof e!="object"?null:(e=Tu&&e[Tu]||e["@@iterator"],typeof e=="function"?e:null)}var Xf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qf=Object.assign,Jf={};function Jn(e,t,n){this.props=e,this.context=t,this.refs=Jf,this.updater=n||Xf}Jn.prototype.isReactComponent={};Jn.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")};Jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ed(){}ed.prototype=Jn.prototype;function Qa(e,t,n){this.props=e,this.context=t,this.refs=Jf,this.updater=n||Xf}var Za=Qa.prototype=new ed;Za.constructor=Qa;qf(Za,Jn.prototype);Za.isPureReactComponent=!0;var Pu=Array.isArray,td=Object.prototype.hasOwnProperty,Xa={current:null},nd={key:!0,ref:!0,__self:!0,__source:!0};function rd(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)td.call(t,r)&&!nd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,ne=N[B];if(0>>1;Bi(or,V))Ri(U,or)?(N[B]=U,N[R]=V,B=R):(N[B]=or,N[ct]=V,B=ct);else if(Ri(U,V))N[B]=U,N[R]=V,B=R;else break e}}return L}function i(N,L){var V=N.sortIndex-L.sortIndex;return V!==0?V:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,v=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=N)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function w(N){if(x=!1,g(N),!v)if(n(l)!==null)v=!0,yn(k);else{var L=n(u);L!==null&&K(w,L.startTime-N)}}function k(N,L){v=!1,x&&(x=!1,m(C),C=-1),y=!0;var V=f;try{for(g(L),d=n(l);d!==null&&(!(d.expirationTime>L)||N&&!X());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var ne=B(d.expirationTime<=L);L=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(l)&&r(l),g(L)}else r(l);d=n(l)}if(d!==null)var vn=!0;else{var ct=n(u);ct!==null&&K(w,ct.startTime-L),vn=!1}return vn}finally{d=null,f=V,y=!1}}var S=!1,P=null,C=-1,_=5,D=-1;function X(){return!(e.unstable_now()-D<_)}function tt(){if(P!==null){var N=e.unstable_now();D=N;var L=!0;try{L=P(!0,N)}finally{L?ut():(S=!1,P=null)}}else S=!1}var ut;if(typeof h=="function")ut=function(){h(tt)};else if(typeof MessageChannel<"u"){var Yt=new MessageChannel,gn=Yt.port2;Yt.port1.onmessage=tt,ut=function(){gn.postMessage(null)}}else ut=function(){T(tt,0)};function yn(N){P=N,S||(S=!0,ut())}function K(N,L){C=T(function(){N(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,yn(k))},e.unstable_forceFrameRate=function(N){0>N||125B?(N.sortIndex=V,t(u,N),n(l)===null&&N===n(u)&&(x?(m(C),C=-1):x=!0,K(w,V-B))):(N.sortIndex=ne,t(l,N),v||y||(v=!0,yn(k))),N},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(N){var L=f;return function(){var V=f;f=L;try{return N.apply(this,arguments)}finally{f=V}}}})(ld);ad.exports=ld;var d0=ad.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 h0=j,Re=d0;function E(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"),Io=Object.prototype.hasOwnProperty,p0=/^[: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]*$/,ju={},Nu={};function m0(e){return Io.call(Nu,e)?!0:Io.call(ju,e)?!1:p0.test(e)?Nu[e]=!0:(ju[e]=!0,!1)}function g0(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 y0(e,t,n,r){if(t===null||typeof t>"u"||g0(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 Ce(e,t,n,r,i,s,o){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=s,this.removeEmptyString=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ce(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){he[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ja=/[\-:]([a-z])/g;function el(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(Ja,el);he[t]=new Ce(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(Ja,el);he[t]=new Ce(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(Ja,el);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function tl(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ys=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gr(e):""}function v0(e){switch(e.tag){case 5:return gr(e.type);case 16:return gr("Lazy");case 13:return gr("Suspense");case 19:return gr("SuspenseList");case 0:case 2:case 15:return e=Qs(e.type,!1),e;case 11:return e=Qs(e.type.render,!1),e;case 1:return e=Qs(e.type,!0),e;default:return""}}function Bo(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 kn:return"Fragment";case wn:return"Portal";case Fo:return"Profiler";case nl:return"StrictMode";case Oo:return"Suspense";case zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fd:return(e.displayName||"Context")+".Consumer";case cd:return(e._context.displayName||"Context")+".Provider";case rl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case il:return t=e.displayName||null,t!==null?t:Bo(e.type)||"Memo";case Et:t=e._payload,e=e._init;try{return Bo(e(t))}catch{}}return null}function x0(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 Bo(t);case 8:return t===nl?"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 Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function w0(e){var t=hd(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pi(e){e._valueTracker||(e._valueTracker=w0(e))}function pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zi(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 Uo(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(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 md(e,t){t=t.checked,t!=null&&tl(e,"checked",t,!1)}function Wo(e,t){md(e,t);var n=Bt(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")?$o(e,t.type,n):t.hasOwnProperty("defaultValue")&&$o(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(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 $o(e,t,n){(t!=="number"||Zi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Fn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},k0=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){k0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function xd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function wd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=xd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var S0=Z({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 Ko(e,t){if(t){if(S0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Go(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 Yo=null;function sl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qo=null,On=null,zn=null;function Ru(e){if(e=oi(e)){if(typeof Qo!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Ls(t),Qo(e.stateNode,e.type,t))}}function kd(e){On?zn?zn.push(e):zn=[e]:On=e}function Sd(){if(On){var e=On,t=zn;if(zn=On=null,Ru(e),t)for(e=0;e>>=0,e===0?32:31-(V0(e)/R0|0)|0}var gi=64,yi=4194304;function vr(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 es(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=vr(a):(s&=o,s!==0&&(r=vr(s)))}else o=n&~i,o!==0?r=vr(o):s!==0&&(r=vr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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 ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=n}function O0(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=Cr),$u=" ",bu=!1;function Wd(e,t){switch(e){case"keyup":return dg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sn=!1;function pg(e,t){switch(e){case"compositionend":return $d(t);case"keypress":return t.which!==32?null:(bu=!0,$u);case"textInput":return e=t.data,e===$u&&bu?null:e;default:return null}}function mg(e,t){if(Sn)return e==="compositionend"||!hl&&Wd(e,t)?(e=Bd(),Fi=cl=Dt=null,Sn=!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=Yu(n)}}function Gd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yd(){for(var e=window,t=Zi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zi(e.document)}return t}function pl(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 Tg(e){var t=Yd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gd(n.ownerDocument.documentElement,n)){if(r!==null&&pl(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Qu(n,s);var o=Qu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,Cn=null,ta=null,Pr=null,na=!1;function Zu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;na||Cn==null||Cn!==Zi(r)||(r=Cn,"selectionStart"in r&&pl(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}),Pr&&Ur(Pr,r)||(Pr=r,r=rs(ta,"onSelect"),0En||(e.current=la[En],la[En]=null,En--)}function z(e,t){En++,la[En]=e.current,e.current=t}var Ut={},ve=Ht(Ut),je=Ht(!1),un=Ut;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Ut;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ne(e){return e=e.childContextTypes,e!=null}function ss(){$(je),$(ve)}function rc(e,t,n){if(ve.current!==Ut)throw Error(E(168));z(ve,t),z(je,n)}function rh(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(E(108,x0(e)||"Unknown",i));return Z({},n,r)}function os(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ut,un=ve.current,z(ve,e),z(je,je.current),!0}function ic(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=rh(e,t,un),r.__reactInternalMemoizedMergedChildContext=e,$(je),$(ve),z(ve,e)):$(je),z(je,n)}var dt=null,As=!1,uo=!1;function ih(e){dt===null?dt=[e]:dt.push(e)}function Ig(e){As=!0,ih(e)}function Kt(){if(!uo&&dt!==null){uo=!0;var e=0,t=O;try{var n=dt;for(O=1;e>=o,i-=o,ht=1<<32-qe(t)+i|n<C?(_=P,P=null):_=P.sibling;var D=f(m,P,g[C],w);if(D===null){P===null&&(P=_);break}e&&P&&D.alternate===null&&t(m,P),h=s(D,h,C),S===null?k=D:S.sibling=D,S=D,P=_}if(C===g.length)return n(m,P),b&&Zt(m,C),k;if(P===null){for(;CC?(_=P,P=null):_=P.sibling;var X=f(m,P,D.value,w);if(X===null){P===null&&(P=_);break}e&&P&&X.alternate===null&&t(m,P),h=s(X,h,C),S===null?k=X:S.sibling=X,S=X,P=_}if(D.done)return n(m,P),b&&Zt(m,C),k;if(P===null){for(;!D.done;C++,D=g.next())D=d(m,D.value,w),D!==null&&(h=s(D,h,C),S===null?k=D:S.sibling=D,S=D);return b&&Zt(m,C),k}for(P=r(m,P);!D.done;C++,D=g.next())D=y(P,m,C,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?C:D.key),h=s(D,h,C),S===null?k=D:S.sibling=D,S=D);return e&&P.forEach(function(tt){return t(m,tt)}),b&&Zt(m,C),k}function T(m,h,g,w){if(typeof g=="object"&&g!==null&&g.type===kn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case hi:e:{for(var k=g.key,S=h;S!==null;){if(S.key===k){if(k=g.type,k===kn){if(S.tag===7){n(m,S.sibling),h=i(S,g.props.children),h.return=m,m=h;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Et&&ac(k)===S.type){n(m,S.sibling),h=i(S,g.props),h.ref=dr(m,S,g),h.return=m,m=h;break e}n(m,S);break}else t(m,S);S=S.sibling}g.type===kn?(h=on(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=Hi(g.type,g.key,g.props,null,m.mode,w),w.ref=dr(m,h,g),w.return=m,m=w)}return o(m);case wn:e:{for(S=g.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=vo(g,m.mode,w),h.return=m,m=h}return o(m);case Et:return S=g._init,T(m,h,S(g._payload),w)}if(yr(g))return v(m,h,g,w);if(ar(g))return x(m,h,g,w);Ti(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=yo(g,m.mode,w),h.return=m,m=h),o(m)):n(m,h)}return T}var Gn=lh(!0),uh=lh(!1),us=Ht(null),cs=null,Mn=null,vl=null;function xl(){vl=Mn=cs=null}function wl(e){var t=us.current;$(us),e._currentValue=t}function fa(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 Un(e,t){cs=e,vl=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function be(e){var t=e._currentValue;if(vl!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(cs===null)throw Error(E(308));Mn=e,cs.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var en=null;function kl(e){en===null?en=[e]:en.push(e)}function ch(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,kl(t)):(n.next=i.next,i.next=n),t.interleaved=n,vt(e,r)}function vt(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 jt=!1;function Sl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fh(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,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,vt(e,n)}return i=r.interleaved,i===null?(t.next=t,kl(r)):(t.next=i.next,i.next=t),r.interleaved=t,vt(e,n)}function zi(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,al(e,n)}}function lc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 fs(e,t,n,r){var i=e.updateQueue;jt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(f=t,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=Z({},d,f);break e;case 2:jt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);dn|=o,e.lanes=o,e.memoizedState=d}}function uc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=fo.transition;fo.transition={};try{e(!1),t()}finally{O=n,fo.transition=r}}function Nh(){return He().memoizedState}function Bg(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mh(e))Dh(t,n);else if(n=ch(e,t,n,r),n!==null){var i=ke();Je(n,e,r,i),Lh(n,t,r)}}function Ug(e,t,n){var r=Ot(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mh(e))Dh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,et(a,o)){var l=t.interleaved;l===null?(i.next=i,kl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=ch(e,t,i,r),n!==null&&(i=ke(),Je(n,e,r,i),Lh(n,t,r))}}function Mh(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Dh(e,t){Er=hs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,al(e,n)}}var ps={readContext:be,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},Wg={readContext:be,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:fc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4194308,4,Ch.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rt();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=Bg.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:cc,useDebugValue:Dl,useDeferredValue:function(e){return rt().memoizedState=e},useTransition:function(){var e=cc(!1),t=e[0];return e=zg.bind(null,e[1]),rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=rt();if(b){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ue===null)throw Error(E(349));fn&30||mh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,fc(yh.bind(null,r,s,e),[e]),r.flags|=2048,Qr(9,gh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=rt(),t=ue.identifierPrefix;if(b){var n=pt,r=ht;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[it]=t,e[br]=r,Uh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Go(n,r),n){case"dialog":W("cancel",e),W("close",e),i=r;break;case"iframe":case"object":case"embed":W("load",e),i=r;break;case"video":case"audio":for(i=0;iZn&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ds(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!b)return me(t),null}else 2*te()-s.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=te(),t.sibling=null,n=G.current,z(G,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return Il(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Zg(e,t){switch(gl(t),t.tag){case 1:return Ne(t.type)&&ss(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(),$(je),$(ve),Pl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tl(t),null;case 13:if($(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(G),null;case 4:return Yn(),null;case 10:return wl(t.type._context),null;case 22:case 23:return Il(),null;case 24:return null;default:return null}}var Ei=!1,ge=!1,Xg=typeof WeakSet=="function"?WeakSet:Set,M=null;function Dn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function wa(e,t,n){try{n()}catch(r){J(e,t,r)}}var Sc=!1;function qg(e,t){if(ra=ts,e=Yd(),pl(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ia={focusedElem:e,selectionRange:n},ts=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,T=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:Qe(t.type,x),T);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){J(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return v=Sc,Sc=!1,v}function jr(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 s=i.destroy;i.destroy=void 0,s!==void 0&&wa(t,n,s)}i=i.next}while(i!==r)}}function _s(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 ka(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 bh(e){var t=e.alternate;t!==null&&(e.alternate=null,bh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[it],delete t[br],delete t[aa],delete t[Rg],delete t[_g])),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 Hh(e){return e.tag===5||e.tag===3||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hh(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 Sa(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=is));else if(r!==4&&(e=e.child,e!==null))for(Sa(e,t,n),e=e.sibling;e!==null;)Sa(e,t,n),e=e.sibling}function Ca(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(Ca(e,t,n),e=e.sibling;e!==null;)Ca(e,t,n),e=e.sibling}var ce=null,Ze=!1;function Tt(e,t,n){for(n=n.child;n!==null;)Kh(e,t,n),n=n.sibling}function Kh(e,t,n){if(st&&typeof st.onCommitFiberUnmount=="function")try{st.onCommitFiberUnmount(js,n)}catch{}switch(n.tag){case 5:ge||Dn(n,t);case 6:var r=ce,i=Ze;ce=null,Tt(e,t,n),ce=r,Ze=i,ce!==null&&(Ze?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(Ze?(e=ce,n=n.stateNode,e.nodeType===8?lo(e.parentNode,n):e.nodeType===1&&lo(e,n),zr(e)):lo(ce,n.stateNode));break;case 4:r=ce,i=Ze,ce=n.stateNode.containerInfo,Ze=!0,Tt(e,t,n),ce=r,Ze=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&wa(n,t,o),i=i.next}while(i!==r)}Tt(e,t,n);break;case 1:if(!ge&&(Dn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){J(n,t,a)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,Tt(e,t,n),ge=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xg),t.forEach(function(r){var i=a1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ke(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*e1(r/1960))-r,10e?16:e,Lt===null)var r=!1;else{if(e=Lt,Lt=null,ys=0,F&6)throw Error(E(331));var i=F;for(F|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lte()-Rl?sn(e,0):Vl|=n),Me(e,t)}function ep(e,t){t===0&&(e.mode&1?(t=yi,yi<<=1,!(yi&130023424)&&(yi=4194304)):t=1);var n=ke();e=vt(e,t),e!==null&&(ii(e,t,n),Me(e,n))}function o1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ep(e,n)}function a1(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(E(314))}r!==null&&r.delete(t),ep(e,n)}var tp;tp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,Yg(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,b&&t.flags&1048576&&sh(t,ls,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wi(e,t),e=t.pendingProps;var i=Hn(t,ve.current);Un(t,n),i=jl(null,t,r,e,i,n);var s=Nl();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,Ne(r)?(s=!0,os(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Sl(t),i.updater=Rs,t.stateNode=i,i._reactInternals=t,ha(t,r,e,n),t=ga(null,t,r,!0,s,n)):(t.tag=0,b&&s&&ml(t),xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=u1(r),e=Qe(r,e),i){case 0:t=ma(null,t,r,e,n);break e;case 1:t=xc(null,t,r,e,n);break e;case 11:t=yc(null,t,r,e,n);break e;case 14:t=vc(null,t,r,Qe(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),ma(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),xc(e,t,r,i,n);case 3:e:{if(Oh(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,fh(e,t),fs(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Qn(Error(E(423)),t),t=wc(e,t,r,n,i);break e}else if(r!==i){i=Qn(Error(E(424)),t),t=wc(e,t,r,n,i);break e}else for(Ae=_t(t.stateNode.containerInfo.firstChild),Ve=t,b=!0,Xe=null,n=uh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kn(),r===i){t=xt(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return dh(t),e===null&&ca(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,sa(r,i)?o=null:s!==null&&sa(r,s)&&(t.flags|=32),Fh(e,t),xe(e,t,o,n),t.child;case 6:return e===null&&ca(t),null;case 13:return zh(e,t,n);case 4:return Cl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gn(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),yc(e,t,r,i,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,z(us,r._currentValue),r._currentValue=o,s!==null)if(et(s.value,o)){if(s.children===i.children&&!je.current){t=xt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=mt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),fa(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),fa(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=be(i),r=r(i),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,i=Qe(r,t.pendingProps),i=Qe(r.type,i),vc(e,t,r,i,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Wi(e,t),t.tag=1,Ne(r)?(e=!0,os(t)):e=!1,Un(t,n),Ah(t,r,i),ha(t,r,i,n),ga(null,t,r,!0,e,n);case 19:return Bh(e,t,n);case 22:return Ih(e,t,n)}throw Error(E(156,t.tag))};function np(e,t){return Md(e,t)}function l1(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 Be(e,t,n,r){return new l1(e,t,n,r)}function Ol(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u1(e){if(typeof e=="function")return Ol(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rl)return 11;if(e===il)return 14}return 2}function zt(e,t){var n=e.alternate;return n===null?(n=Be(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 Hi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Ol(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kn:return on(n.children,i,s,t);case nl:o=8,i|=8;break;case Fo:return e=Be(12,n,t,i|2),e.elementType=Fo,e.lanes=s,e;case Oo:return e=Be(13,n,t,i),e.elementType=Oo,e.lanes=s,e;case zo:return e=Be(19,n,t,i),e.elementType=zo,e.lanes=s,e;case dd:return Fs(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cd:o=10;break e;case fd:o=9;break e;case rl:o=11;break e;case il:o=14;break e;case Et:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Be(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function on(e,t,n,r){return e=Be(7,e,r,t),e.lanes=n,e}function Fs(e,t,n,r){return e=Be(22,e,r,t),e.elementType=dd,e.lanes=n,e.stateNode={isHidden:!1},e}function yo(e,t,n){return e=Be(6,e,null,t),e.lanes=n,e}function vo(e,t,n){return t=Be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c1(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=Xs(0),this.expirationTimes=Xs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,i,s,o,a,l){return e=new c1(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Be(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(s),e}function f1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(op)}catch(e){console.error(e)}}op(),od.exports=_e;var g1=od.exports,Ac=g1;_o.createRoot=Ac.createRoot,_o.hydrateRoot=Ac.hydrateRoot;const $l=j.createContext({});function bl(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const Hl=typeof window<"u",ap=Hl?j.useLayoutEffect:j.useEffect,Ws=j.createContext(null);function Kl(e,t){e.indexOf(t)===-1&&e.push(t)}function Gl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const wt=(e,t,n)=>n>t?t:n{};const kt={},lp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function up(e){return typeof e=="object"&&e!==null}const cp=e=>/^0[^.\s]+$/u.test(e);function Ql(e){let t;return()=>(t===void 0&&(t=e()),t)}const $e=e=>e,y1=(e,t)=>n=>t(e(n)),li=(...e)=>e.reduce(y1),Xr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Zl{constructor(){this.subscriptions=[]}add(t){return Kl(this.subscriptions,t),()=>Gl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,Ue=e=>e/1e3;function fp(e,t){return t?e*(1e3/t):0}const dp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,v1=1e-7,x1=12;function w1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=dp(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>v1&&++aw1(s,0,1,e,n);return s=>s===0||s===1?s:dp(i(s),t,r)}const hp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pp=e=>t=>1-e(1-t),mp=ui(.33,1.53,.69,.99),Xl=pp(mp),gp=hp(Xl),yp=e=>(e*=2)<1?.5*Xl(e):.5*(2-Math.pow(2,-10*(e-1))),ql=e=>1-Math.sin(Math.acos(e)),vp=pp(ql),xp=hp(ql),k1=ui(.42,0,1,1),S1=ui(0,0,.58,1),wp=ui(.42,0,.58,1),C1=e=>Array.isArray(e)&&typeof e[0]!="number",kp=e=>Array.isArray(e)&&typeof e[0]=="number",T1={linear:$e,easeIn:k1,easeInOut:wp,easeOut:S1,circIn:ql,circInOut:xp,circOut:vp,backIn:Xl,backInOut:gp,backOut:mp,anticipate:yp},P1=e=>typeof e=="string",Vc=e=>{if(kp(e)){Yl(e.length===4);const[t,n,r,i]=e;return ui(t,n,r,i)}else if(P1(e))return T1[e];return e},Mi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function E1(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const v=f&&i?n:r;return d&&o.add(c),v.has(c)||v.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const j1=40;function Sp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Mi.reduce((g,w)=>(g[w]=E1(s),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:y,postRender:v}=o,x=()=>{const g=kt.useManualTiming?i.timestamp:performance.now();n=!1,kt.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,j1),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),y.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},T=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Mi.reduce((g,w)=>{const k=o[w];return g[w]=(S,P=!1,C=!1)=>(n||T(),k.schedule(S,P,C)),g},{}),cancel:g=>{for(let w=0;w(Ki===void 0&&Ee.set(fe.isProcessing||kt.useManualTiming?fe.timestamp:performance.now()),Ki),set:e=>{Ki=e,queueMicrotask(N1)}},Cp=e=>t=>typeof t=="string"&&t.startsWith(e),Jl=Cp("--"),M1=Cp("var(--"),eu=e=>M1(e)?D1.test(e.split("/*")[0].trim()):!1,D1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...nr,transform:e=>wt(0,1,e)},Di={...nr,default:1},Dr=e=>Math.round(e*1e5)/1e5,tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function L1(e){return e==null}const A1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nu=(e,t)=>n=>!!(typeof n=="string"&&A1.test(n)&&n.startsWith(e)||t&&!L1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(tu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},V1=e=>wt(0,255,e),wo={...nr,transform:e=>Math.round(V1(e))},nn={test:nu("rgb","red"),parse:Tp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wo.transform(e)+", "+wo.transform(t)+", "+wo.transform(n)+", "+Dr(qr.transform(r))+")"};function R1(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Na={test:nu("#"),parse:R1,transform:nn.transform},ci=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pt=ci("deg"),lt=ci("%"),A=ci("px"),_1=ci("vh"),I1=ci("vw"),Rc={...lt,parse:e=>lt.parse(e)/100,transform:e=>lt.transform(e*100)},An={test:nu("hsl","hue"),parse:Tp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+lt.transform(Dr(t))+", "+lt.transform(Dr(n))+", "+Dr(qr.transform(r))+")"},re={test:e=>nn.test(e)||Na.test(e)||An.test(e),parse:e=>nn.test(e)?nn.parse(e):An.test(e)?An.parse(e):Na.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nn.transform(e):An.transform(e),getAnimatableNone:e=>{const t=re.parse(e);return t.alpha=0,re.transform(t)}},F1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function O1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tu))==null?void 0:t.length)||0)+(((n=e.match(F1))==null?void 0:n.length)||0)>0}const Pp="number",Ep="color",z1="var",B1="var(",_c="${}",U1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Jr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(U1,l=>(re.test(l)?(r.color.push(s),i.push(Ep),n.push(re.parse(l))):l.startsWith(B1)?(r.var.push(s),i.push(z1),n.push(l)):(r.number.push(s),i.push(Pp),n.push(parseFloat(l))),++s,_c)).split(_c);return{values:n,split:a,indexes:r,types:i}}function jp(e){return Jr(e).values}function Np(e){const{split:t,types:n}=Jr(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:re.test(e)?re.getAnimatableNone(e):e;function $1(e){const t=jp(e);return Np(e)(t.map(W1))}const $t={test:O1,parse:jp,createTransformer:Np,getAnimatableNone:$1};function ko(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function b1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=ko(l,a,e+1/3),s=ko(l,a,e),o=ko(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function ws(e,t){return n=>n>0?t:e}const Y=(e,t,n)=>e+(t-e)*n,So=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},H1=[Na,nn,An],K1=e=>H1.find(t=>t.test(e));function Ic(e){const t=K1(e);if(!t)return!1;let n=t.parse(e);return t===An&&(n=b1(n)),n}const Fc=(e,t)=>{const n=Ic(e),r=Ic(t);if(!n||!r)return ws(e,t);const i={...n};return s=>(i.red=So(n.red,r.red,s),i.green=So(n.green,r.green,s),i.blue=So(n.blue,r.blue,s),i.alpha=Y(n.alpha,r.alpha,s),nn.transform(i))},Ma=new Set(["none","hidden"]);function G1(e,t){return Ma.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Y1(e,t){return n=>Y(e,t,n)}function ru(e){return typeof e=="number"?Y1:typeof e=="string"?eu(e)?ws:re.test(e)?Fc:X1:Array.isArray(e)?Mp:typeof e=="object"?re.test(e)?Fc:Q1:ws}function Mp(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>ru(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function Z1(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=$t.createTransformer(t),r=Jr(e),i=Jr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ma.has(e)&&!i.values.length||Ma.has(t)&&!r.values.length?G1(e,t):li(Mp(Z1(r,i),i.values),n):ws(e,t)};function Dp(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Y(e,t,n):ru(e)(e,t)}const q1=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>Wt(t),now:()=>fe.isProcessing?fe.timestamp:Ee.now()}},Lp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=ks?1/0:t}function J1(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(iu(r),ks);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ue(i)}}const ey=5;function Ap(e,t,n){const r=Math.max(t-ey,0);return fp(n-e(r),t-r)}const q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Co=.001;function ty({duration:e=q.duration,bounce:t=q.bounce,velocity:n=q.velocity,mass:r=q.mass}){let i,s,o=1-t;o=wt(q.minDamping,q.maxDamping,o),e=wt(q.minDuration,q.maxDuration,Ue(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,y=Da(u,o),v=Math.exp(-d);return Co-f/y*v},s=u=>{const d=u*o*e,f=d*n+n,y=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),x=Da(Math.pow(u,2),o);return(-i(u)+Co>0?-1:1)*((f-y)*v)/x}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Co+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=ry(i,s,a);if(e=at(e),isNaN(l))return{stiffness:q.stiffness,damping:q.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const ny=12;function ry(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function oy(e){let t={velocity:q.velocity,stiffness:q.stiffness,damping:q.damping,mass:q.mass,isResolvedFromDuration:!1,...e};if(!Oc(e,sy)&&Oc(e,iy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*wt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:q.mass,stiffness:i,damping:s}}else{const n=ty(e);t={...t,...n,mass:q.mass},t.isResolvedFromDuration=!0}return t}function Ss(e=q.visualDuration,t=q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=oy({...n,velocity:-Ue(n.velocity||0)}),v=f||0,x=u/(2*Math.sqrt(l*c)),T=o-s,m=Ue(Math.sqrt(l/c)),h=Math.abs(T)<5;r||(r=h?q.restSpeed.granular:q.restSpeed.default),i||(i=h?q.restDelta.granular:q.restDelta.default);let g;if(x<1){const k=Da(m,x);g=S=>{const P=Math.exp(-x*m*S);return o-P*((v+x*m*T)/k*Math.sin(k*S)+T*Math.cos(k*S))}}else if(x===1)g=k=>o-Math.exp(-m*k)*(T+(v+m*T)*k);else{const k=m*Math.sqrt(x*x-1);g=S=>{const P=Math.exp(-x*m*S),C=Math.min(k*S,300);return o-P*((v+x*m*T)*Math.sinh(C)+k*T*Math.cosh(C))/k}}const w={calculatedDuration:y&&d||null,next:k=>{const S=g(k);if(y)a.done=k>=d;else{let P=k===0?v:0;x<1&&(P=k===0?at(v):Ap(g,k,S));const C=Math.abs(P)<=r,_=Math.abs(o-S)<=i;a.done=C&&_}return a.value=a.done?o:S,a},toString:()=>{const k=Math.min(iu(w),ks),S=Lp(P=>w.next(k*P).value,k,30);return k+"ms "+S},toTransition:()=>{}};return w}Ss.applyToOptions=e=>{const t=J1(e,100,Ss);return e.ease=t.ease,e.duration=at(t.duration),e.type="keyframes",e};function La({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=C=>a!==void 0&&Cl,v=C=>a===void 0?l:l===void 0||Math.abs(a-C)-x*Math.exp(-C/r),g=C=>m+h(C),w=C=>{const _=h(C),D=g(C);f.done=Math.abs(_)<=u,f.value=f.done?m:D};let k,S;const P=C=>{y(f.value)&&(k=C,S=Ss({keyframes:[f.value,v(f.value)],velocity:Ap(g,C,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:C=>{let _=!1;return!S&&k===void 0&&(_=!0,w(C),P(C)),k!==void 0&&C>=k?S.next(C-k):(!_&&w(C),f)}}}function ay(e,t,n){const r=[],i=n||kt.mix||Dp,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ay(t,r,i),l=a.length,u=c=>{if(o&&c1)for(;du(wt(e[0],e[s-1],c)):u}function uy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Xr(0,t,r);e.push(Y(n,1,i))}}function cy(e){const t=[0];return uy(t,e.length-1),t}function fy(e,t){return e.map(n=>n*t)}function dy(e,t){return e.map(()=>t||wp).splice(0,e.length-1)}function Lr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=C1(r)?r.map(Vc):Vc(r),s={done:!1,value:t[0]},o=fy(n&&n.length===t.length?n:cy(t),e),a=ly(o,t,{ease:Array.isArray(i)?i:dy(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const hy=e=>e!==null;function su(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(hy),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const py={decay:La,inertia:La,tween:Lr,keyframes:Lr,spring:Ss};function Vp(e){typeof e.type=="string"&&(e.type=py[e.type])}class ou{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const my=e=>e/100;class au extends ou{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ee.now()&&this.tick(Ee.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Vp(t);const{type:n=Lr,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Lr;l!==Lr&&typeof a[0]!="number"&&(this.mixKeyframes=li(my,Dp(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=iu(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:y,type:v,onUpdate:x,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,w=r;if(d){const C=Math.min(this.currentTime,i)/a;let _=Math.floor(C),D=C%1;!D&&C>=1&&(D=1),D===1&&_--,_=Math.min(_,d+1),!!(_%2)&&(f==="reverse"?(D=1-D,y&&(D-=y/a)):f==="mirror"&&(w=o)),g=wt(0,1,D)*a}const k=h?{done:!1,value:c[0]}:w.next(g);s&&(k.value=s(k.value));let{done:S}=k;!h&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return P&&v!==La&&(k.value=su(c,this.options,T,this.speed)),x&&x(k.value),P&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(this.currentTime)}set time(t){var n;t=at(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ee.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=q1,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ee.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function gy(e){for(let t=1;te*180/Math.PI,Aa=e=>{const t=rn(Math.atan2(e[1],e[0]));return Va(t)},yy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Aa,rotateZ:Aa,skewX:e=>rn(Math.atan(e[1])),skewY:e=>rn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Va=e=>(e=e%360,e<0&&(e+=360),e),zc=Aa,Bc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Uc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bc,scaleY:Uc,scale:e=>(Bc(e)+Uc(e))/2,rotateX:e=>Va(rn(Math.atan2(e[6],e[5]))),rotateY:e=>Va(rn(Math.atan2(-e[2],e[0]))),rotateZ:zc,rotate:zc,skewX:e=>rn(Math.atan(e[4])),skewY:e=>rn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ra(e){return e.includes("scale")?1:0}function _a(e,t){if(!e||e==="none")return Ra(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=vy,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=yy,i=a}if(!i)return Ra(t);const s=r[t],o=i[1].split(",").map(wy);return typeof s=="function"?s(o):o[s]}const xy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return _a(n,t)};function wy(e){return parseFloat(e.trim())}const rr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ir=new Set(rr),Wc=e=>e===nr||e===A,ky=new Set(["x","y","z"]),Sy=rr.filter(e=>!ky.has(e));function Cy(e){const t=[];return Sy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const an={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_a(t,"x"),y:(e,{transform:t})=>_a(t,"y")};an.translateX=an.x;an.translateY=an.y;const ln=new Set;let Ia=!1,Fa=!1,Oa=!1;function Rp(){if(Fa){const e=Array.from(ln).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Cy(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Fa=!1,Ia=!1,ln.forEach(e=>e.complete(Oa)),ln.clear()}function _p(){ln.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fa=!0)})}function Ty(){Oa=!0,_p(),Rp(),Oa=!1}class lu{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ln.add(this),Ia||(Ia=!0,H.read(_p),H.resolveKeyframes(Rp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}gy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ln.delete(this)}cancel(){this.state==="scheduled"&&(ln.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Py=e=>e.startsWith("--");function Ey(e,t,n){Py(t)?e.style.setProperty(t,n):e.style[t]=n}const jy=Ql(()=>window.ScrollTimeline!==void 0),Ny={};function My(e,t){const n=Ql(e);return()=>Ny[t]??n()}const Ip=My(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$c={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wr([0,.65,.55,1]),circOut:wr([.55,0,1,.45]),backIn:wr([.31,.01,.66,-.59]),backOut:wr([.33,1.53,.69,.99])};function Fp(e,t){if(e)return typeof e=="function"?Ip()?Lp(e,t):"ease-out":kp(e)?wr(e):Array.isArray(e)?e.map(n=>Fp(n,t)||$c.easeOut):$c[e]}function Dy(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Fp(a,i);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Op(e){return typeof e=="function"&&"applyToOptions"in e}function Ly({type:e,...t}){return Op(e)&&Ip()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ay extends ou{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Yl(typeof t.type!="string");const u=Ly(t);this.animation=Dy(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=su(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Ey(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ue(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=at(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&jy()?(this.animation.timeline=t,$e):n(this)}}const zp={anticipate:yp,backInOut:gp,circInOut:xp};function Vy(e){return e in zp}function Ry(e){typeof e.ease=="string"&&Vy(e.ease)&&(e.ease=zp[e.ease])}const bc=10;class _y extends Ay{constructor(t){Ry(t),Vp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new au({...o,autoplay:!1}),l=at(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-bc).value,a.sample(l).value,bc),a.stop()}}const Hc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($t.test(e)||e==="0")&&!e.startsWith("url("));function Iy(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function By(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return zy()&&n&&Oy.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Uy=40;class Wy extends ou{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var v;super(),this.stop=()=>{var x,T;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=Ee.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...d},y=(c==null?void 0:c.KeyframeResolver)||lu;this.keyframeResolver=new y(a,(x,T,m)=>this.onKeyframesResolved(x,T,f,!m),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ee.now(),Fy(t,s,o,a)||((kt.instantAnimations||!l)&&(c==null||c(su(t,r,n))),t[0]=t[t.length-1],za(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Uy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!u&&By(f)?new _y({...f,element:f.motionValue.owner.current}):new au(f);y.finished.then(()=>this.notifyFinished()).catch($e),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ty()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const $y=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function by(e){const t=$y.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Bp(e,t,n=1){const[r,i]=by(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return lp(o)?parseFloat(o):o}return eu(i)?Bp(i,t,n+1):i}function uu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Up=new Set(["width","height","top","left","right","bottom",...rr]),Hy={test:e=>e==="auto",parse:e=>e},Wp=e=>t=>t.test(e),$p=[nr,A,lt,Pt,I1,_1,Hy],Kc=e=>$p.find(Wp(e));function Ky(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cp(e):!0}const Gy=new Set(["brightness","contrast","saturate","opacity"]);function Yy(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(tu)||[];if(!r)return e;const i=n.replace(r,"");let s=Gy.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Qy=/\b([a-z-]*)\(.*?\)/gu,Ba={...$t,getAnimatableNone:e=>{const t=e.match(Qy);return t?t.map(Yy).join(" "):e}},Gc={...nr,transform:Math.round},Zy={rotate:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:Di,scaleX:Di,scaleY:Di,scaleZ:Di,skew:Pt,skewX:Pt,skewY:Pt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:qr,originX:Rc,originY:Rc,originZ:A},cu={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...Zy,zIndex:Gc,fillOpacity:qr,strokeOpacity:qr,numOctaves:Gc},Xy={...cu,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:Ba,WebkitFilter:Ba},bp=e=>Xy[e];function Hp(e,t){let n=bp(e);return n!==Ba&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qy=new Set(["auto","none","0"]);function Jy(e,t,n){let r=0,i;for(;r{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function tv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Kp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Gp(e){return up(e)&&"offsetHeight"in e}const Yc=30,nv=e=>!isNaN(parseFloat(e));class rv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Ee.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ee.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zl);const r=this.events[t].add(n);return t==="change"?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ee.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Yc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Yc);return fp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xn(e,t){return new rv(e,t)}const{schedule:fu}=Sp(queueMicrotask,!1),Ye={x:!1,y:!1};function Yp(){return Ye.x||Ye.y}function iv(e){return e==="x"||e==="y"?Ye[e]?null:(Ye[e]=!0,()=>{Ye[e]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}function Qp(e,t){const n=tv(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Qc(e){return!(e.pointerType==="touch"||Yp())}function sv(e,t,n={}){const[r,i,s]=Qp(e,n),o=a=>{if(!Qc(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Qc(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Zp=(e,t)=>t?e===t?!0:Zp(e,t.parentElement):!1,du=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ov=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function av(e){return ov.has(e.tagName)||e.tabIndex!==-1}const Gi=new WeakSet;function Zc(e){return t=>{t.key==="Enter"&&e(t)}}function To(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const lv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Zc(()=>{if(Gi.has(n))return;To(n,"down");const i=Zc(()=>{To(n,"up")}),s=()=>To(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Xc(e){return du(e)&&!Yp()}function uv(e,t,n={}){const[r,i,s]=Qp(e,n),o=a=>{const l=a.currentTarget;if(!Xc(a))return;Gi.add(l);const u=t(l,a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Gi.has(l)&&Gi.delete(l),Xc(y)&&typeof u=="function"&&u(y,{success:v})},d=y=>{c(y,l===window||l===document||n.useGlobalTarget||Zp(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Gp(a)&&(a.addEventListener("focus",u=>lv(u,i)),!av(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Xp(e){return up(e)&&"ownerSVGElement"in e}function cv(e){return Xp(e)&&e.tagName==="svg"}const ye=e=>!!(e&&e.getVelocity),fv=[...$p,re,$t],dv=e=>fv.find(Wp(e)),hu=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function qc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hv(...e){return t=>{let n=!1;const r=e.map(i=>{const s=qc(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{const{width:u,height:c,top:d,left:f,right:y}=o.current;if(t||!s.current||!u||!c)return;const v=n==="left"?`left: ${f}`:`right: ${y}`;s.current.dataset.motionPopId=i;const x=document.createElement("style");a&&(x.nonce=a);const T=r??document.head;return T.appendChild(x),x.sheet&&x.sheet.insertRule(` - [data-motion-pop-id="${i}"] { - position: absolute !important; - width: ${u}px !important; - height: ${c}px !important; - ${v}px !important; - top: ${d}px !important; - } - `),()=>{T.contains(x)&&T.removeChild(x)}},[t]),p.jsx(mv,{isPresent:t,childRef:s,sizeRef:o,children:j.cloneElement(e,{ref:l})})}const yv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=bl(vv),c=j.useId();let d=!0,f=j.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:y=>{u.set(y,!0);for(const v of u.values())if(!v)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return s&&d&&(f={...f}),j.useMemo(()=>{u.forEach((y,v)=>u.set(v,!1))},[n]),j.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=p.jsx(gv,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Ws.Provider,{value:f,children:e})};function vv(){return new Map}function qp(e=!0){const t=j.useContext(Ws);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=j.useId();j.useEffect(()=>{if(e)return i(s)},[e]);const o=j.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Li=e=>e.key||"";function Jc(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const xv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,c]=qp(o),d=j.useMemo(()=>Jc(e),[e]),f=o&&!u?[]:d.map(Li),y=j.useRef(!0),v=j.useRef(d),x=bl(()=>new Map),[T,m]=j.useState(d),[h,g]=j.useState(d);ap(()=>{y.current=!1,v.current=d;for(let S=0;S{const P=Li(S),C=o&&!u?!1:d===h||f.includes(P),_=()=>{if(x.has(P))x.set(P,!0);else return;let D=!0;x.forEach(X=>{X||(D=!1)}),D&&(k==null||k(),g(v.current),o&&(c==null||c()),r&&r())};return p.jsx(yv,{isPresent:C,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:C?void 0:_,anchorX:a,children:S},P)})})},Jp=j.createContext({strict:!1}),ef={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},qn={};for(const e in ef)qn[e]={isEnabled:t=>ef[e].some(n=>!!t[n])};function wv(e){for(const t in e)qn[t]={...qn[t],...e[t]}}const kv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Cs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kv.has(e)}let em=e=>!Cs(e);function Sv(e){typeof e=="function"&&(em=t=>t.startsWith("on")?!Cs(t):e(t))}try{Sv(require("@emotion/is-prop-valid").default)}catch{}function Cv(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(em(i)||n===!0&&Cs(i)||!t&&!Cs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const $s=j.createContext({});function bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ei(e){return typeof e=="string"||Array.isArray(e)}const pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mu=["initial",...pu];function Hs(e){return bs(e.animate)||mu.some(t=>ei(e[t]))}function tm(e){return!!(Hs(e)||e.variants)}function Tv(e,t){if(Hs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ei(n)?n:void 0,animate:ei(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pv(e){const{initial:t,animate:n}=Tv(e,j.useContext($s));return j.useMemo(()=>({initial:t,animate:n}),[tf(t),tf(n)])}function tf(e){return Array.isArray(e)?e.join(" "):e}const ti={};function Ev(e){for(const t in e)ti[t]=e[t],Jl(t)&&(ti[t].isCSSVariable=!0)}function nm(e,{layout:t,layoutId:n}){return ir.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ti[e]||e==="opacity")}const jv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nv=rr.length;function Mv(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function rm(e,t,n){for(const r in t)!ye(t[r])&&!nm(r,n)&&(e[r]=t[r])}function Dv({transformTemplate:e},t){return j.useMemo(()=>{const n=yu();return gu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Lv(e,t){const n=e.style||{},r={};return rm(r,n,e),Object.assign(r,Dv(e,t)),r}function Av(e,t){const n={},r=Lv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Vv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rv={offset:"strokeDashoffset",array:"strokeDasharray"};function _v(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Vv:Rv;e[s.offset]=A.transform(-r);const o=A.transform(t),a=A.transform(n);e[s.array]=`${o} ${a}`}function im(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(gu(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&_v(d,i,s,o,!1)}const sm=()=>({...yu(),attrs:{}}),om=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Iv(e,t,n,r){const i=j.useMemo(()=>{const s=sm();return im(s,t,om(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};rm(s,e.style,e),i.style={...s,...i.style}}return i}const Fv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vu(e){return typeof e!="string"||e.includes("-")?!1:!!(Fv.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ov(e,t,n,{latestValues:r},i,s=!1){const a=(vu(e)?Iv:Av)(t,r,i,e),l=Cv(t,typeof e=="string",s),u=e!==j.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=j.useMemo(()=>ye(c)?c.get():c,[c]);return j.createElement(e,{...u,children:d})}function nf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xu(e,t,n,r){if(typeof t=="function"){const[i,s]=nf(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=nf(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Yi(e){return ye(e)?e.get():e}function zv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Bv(n,r,i,e),renderState:t()}}function Bv(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Yi(s[f]);let{initial:o,animate:a}=e;const l=Hs(e),u=tm(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!bs(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y(t,n)=>{const r=j.useContext($s),i=j.useContext(Ws),s=()=>zv(e,t,r,i);return n?s():bl(s)};function wu(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(ye(r[o])||t.style&&ye(t.style[o])||nm(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Uv=am({scrapeMotionValuesFromProps:wu,createRenderState:yu});function lm(e,t,n){const r=wu(e,t,n);for(const i in e)if(ye(e[i])||ye(t[i])){const s=rr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Wv=am({scrapeMotionValuesFromProps:lm,createRenderState:sm}),$v=Symbol.for("motionComponentSymbol");function Vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bv(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vn(n)&&(n.current=r))},[t])}const ku=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Hv="framerAppearId",um="data-"+ku(Hv),cm=j.createContext({});function Kv(e,t,n,r,i){var x,T;const{visualElement:s}=j.useContext($s),o=j.useContext(Jp),a=j.useContext(Ws),l=j.useContext(hu).reducedMotion,u=j.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=j.useContext(cm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Gv(u.current,n,i,d);const f=j.useRef(!1);j.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const y=n[um],v=j.useRef(!!y&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,y))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,y)));return ap(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),v.current&&c.animationState&&c.animationState.animateChanges())}),j.useEffect(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,y)}),v.current=!1),c.enteringChildren=void 0)}),c}function Gv(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fm(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Vn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function fm(e){if(e)return e.options.allowProjection!==!1?e.projection:fm(e.parent)}function Po(e,{forwardMotionProps:t=!1}={},n,r){n&&wv(n);const i=vu(e)?Wv:Uv;function s(a,l){let u;const c={...j.useContext(hu),...a,layoutId:Yv(a)},{isStatic:d}=c,f=Pv(a),y=i(a,d);if(!d&&Hl){Qv();const v=Zv(c);u=v.MeasureLayout,f.visualElement=Kv(e,y,c,r,v.ProjectionNode)}return p.jsxs($s.Provider,{value:f,children:[u&&f.visualElement?p.jsx(u,{visualElement:f.visualElement,...c}):null,Ov(e,a,bv(y,f.visualElement,l),y,d,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=j.forwardRef(s);return o[$v]=e,o}function Yv({layoutId:e}){const t=j.useContext($l).id;return t&&e!==void 0?t+"-"+e:e}function Qv(e,t){j.useContext(Jp).strict}function Zv(e){const{drag:t,layout:n}=qn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Xv(e,t){if(typeof Proxy>"u")return Po;const n=new Map,r=(s,o)=>Po(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Po(o,void 0,e,t)),n.get(o))})}function dm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function qv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Jv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Eo(e){return e===void 0||e===1}function Ua({scale:e,scaleX:t,scaleY:n}){return!Eo(e)||!Eo(t)||!Eo(n)}function qt(e){return Ua(e)||hm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hm(e){return rf(e.x)||rf(e.y)}function rf(e){return e&&e!=="0%"}function Ts(e,t,n){const r=e-n,i=t*r;return n+i}function sf(e,t,n,r,i){return i!==void 0&&(e=Ts(e,i,r)),Ts(e,n,r)+t}function Wa(e,t=0,n=1,r,i){e.min=sf(e.min,t,n,r,i),e.max=sf(e.max,t,n,r,i)}function pm(e,{x:t,y:n}){Wa(e.x,t.translate,t.scale,t.originPoint),Wa(e.y,n.translate,n.scale,n.originPoint)}const of=.999999999999,af=1.0000000000001;function e2(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;aof&&(t.x=1),t.yof&&(t.y=1)}function Rn(e,t){e.min=e.min+t,e.max=e.max+t}function lf(e,t,n,r,i=.5){const s=Y(e.min,e.max,i);Wa(e,t,n,s,r)}function _n(e,t){lf(e.x,t.x,t.scaleX,t.scale,t.originX),lf(e.y,t.y,t.scaleY,t.scale,t.originY)}function mm(e,t){return dm(Jv(e.getBoundingClientRect(),t))}function t2(e,t,n){const r=mm(e,n),{scroll:i}=t;return i&&(Rn(r.x,i.offset.x),Rn(r.y,i.offset.y)),r}const uf=()=>({translate:0,scale:1,origin:0,originPoint:0}),In=()=>({x:uf(),y:uf()}),cf=()=>({min:0,max:0}),se=()=>({x:cf(),y:cf()}),$a={current:null},gm={current:!1};function n2(){if(gm.current=!0,!!Hl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$a.current=e.matches;e.addEventListener("change",t),t()}else $a.current=!1}const r2=new WeakMap;function i2(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ye(i))e.addValue(r,i);else if(ye(s))e.addValue(r,Xn(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Xn(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ff=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class s2{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Ee.now();this.renderScheduledAtthis.bindToMotionValue(i,r)),gm.current||n2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$a.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Wt(this.notifyUpdate),Wt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ir.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in qn){const n=qn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(lp(r)||cp(r))?r=parseFloat(r):!dv(r)&&$t.test(n)&&(r=Hp(t,n)),this.setBaseTarget(t,ye(r)?r.get():r)),ye(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=xu(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ye(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){fu.render(this.render)}}class ym extends s2{constructor(){super(...arguments),this.KeyframeResolver=ev}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function vm(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function o2(e){return window.getComputedStyle(e)}class a2 extends ym{constructor(){super(...arguments),this.type="html",this.renderInstance=vm}readValueFromInstance(t,n){var r;if(ir.has(n))return(r=this.projection)!=null&&r.isProjecting?Ra(n):xy(t,n);{const i=o2(t),s=(Jl(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return mm(t,n)}build(t,n,r){gu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wu(t,n,r)}}const xm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function l2(e,t,n,r){vm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(xm.has(i)?i:ku(i),t.attrs[i])}class u2 extends ym{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ir.has(n)){const r=bp(n);return r&&r.default||0}return n=xm.has(n)?n:ku(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lm(t,n,r)}build(t,n,r){im(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){l2(t,n,r,i)}mount(t){this.isSVGTag=om(t.tagName),super.mount(t)}}const c2=(e,t)=>vu(e)?new u2(t):new a2(t,{allowProjection:e!==j.Fragment});function $n(e,t,n){const r=e.getProps();return xu(r,t,n!==void 0?n:r.custom,e)}const ba=e=>Array.isArray(e);function f2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xn(n))}function d2(e){return ba(e)?e[e.length-1]||0:e}function h2(e,t){const n=$n(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=d2(s[o]);f2(e,o,a)}}function p2(e){return!!(ye(e)&&e.add)}function Ha(e,t){const n=e.getValue("willChange");if(p2(n))return n.add(t);if(!n&&kt.WillChange){const r=new kt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function wm(e){return e.props[um]}const m2=e=>e!==null;function g2(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(m2),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const y2={type:"spring",stiffness:500,damping:25,restSpeed:10},v2=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x2={type:"keyframes",duration:.8},w2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},k2=(e,{keyframes:t})=>t.length>2?x2:ir.has(e)?e.startsWith("scale")?v2(t[1]):y2:w2;function S2({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Su=(e,t,n,r={},i,s)=>o=>{const a=uu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-at(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};S2(a)||Object.assign(c,k2(e,c)),c.duration&&(c.duration=at(c.duration)),c.repeatDelay&&(c.repeatDelay=at(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(za(c),c.delay===0&&(d=!0)),(kt.instantAnimations||kt.skipAnimations)&&(d=!0,za(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=g2(c.keyframes,a);if(f!==void 0){H.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new au(c):new Wy(c)};function C2({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function km(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),f=a[c];if(f===void 0||u&&C2(u,c))continue;const y={delay:n,...uu(s||{},c)},v=d.get();if(v!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===v&&!y.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const m=wm(e);if(m){const h=window.MotionHandoffAnimation(m,c,H);h!==null&&(y.startTime=h,x=!0)}}Ha(e,c),d.start(Su(c,d,f,e.shouldReduceMotion&&Up.has(c)?{type:!1}:y,e,x));const T=d.animation;T&&l.push(T)}return o&&Promise.all(l).then(()=>{H.update(()=>{o&&h2(e,o)})}),l}function Sm(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Ka(e,t,n={}){var l;const r=$n(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(km(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return T2(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function T2(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ka(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Sm(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function P2(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Ka(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Ka(e,t,n);else{const i=typeof t=="function"?$n(e,t,n.custom):t;r=Promise.all(km(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Cm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>P2(e,n,r)))}function D2(e){let t=M2(e),n=df(),r=!0;const i=l=>(u,c)=>{var f;const d=$n(e,c,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:y,transitionEnd:v,...x}=d;u={...u,...x,...v}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=Tm(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let T=0;Tv&&w,_=!1;const D=Array.isArray(g)?g:[g];let X=D.reduce(i(m),{});k===!1&&(X={});const{prevResolvedValues:tt={}}=h,ut={...tt,...X},Yt=K=>{C=!0,f.has(K)&&(_=!0,f.delete(K)),h.needsAnimating[K]=!0;const N=e.getValue(K);N&&(N.liveStyle=!1)};for(const K in ut){const N=X[K],L=tt[K];if(y.hasOwnProperty(K))continue;let V=!1;ba(N)&&ba(L)?V=!Cm(N,L):V=N!==L,V?N!=null?Yt(K):f.add(K):N!==void 0&&f.has(K)?Yt(K):h.protectedKeys[K]=!0}h.prevProp=g,h.prevResolvedValues=X,h.isActive&&(y={...y,...X}),r&&e.blockInitialAnimation&&(C=!1);const gn=S&&P;C&&(!gn||_)&&d.push(...D.map(K=>{const N={type:m};if(typeof K=="string"&&r&&!gn&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,V=$n(L,K);if(L.enteringChildren&&V){const{delayChildren:B}=V.transition||{};N.delay=Sm(L.enteringChildren,e,B)}}return{animation:K,options:N}}))}if(f.size){const T={};if(typeof u.initial!="boolean"){const m=$n(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(T.transition=m.transition)}f.forEach(m=>{const h=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),T[m]=h??null}),d.push({animation:T})}let x=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var y;return(y=f.animationState)==null?void 0:y.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=df()}}}function L2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cm(t,e):!1}function Qt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function df(){return{animate:Qt(!0),whileInView:Qt(),whileHover:Qt(),whileTap:Qt(),whileDrag:Qt(),whileFocus:Qt(),exit:Qt()}}class Gt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class A2 extends Gt{constructor(t){super(t),t.animationState||(t.animationState=D2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let V2=0;class R2 extends Gt{constructor(){super(...arguments),this.id=V2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _2={animation:{Feature:A2},exit:{Feature:R2}};function ni(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fi(e){return{point:{x:e.pageX,y:e.pageY}}}const I2=e=>t=>du(t)&&e(t,fi(t));function Ar(e,t,n,r){return ni(e,t,I2(n),r)}const Pm=1e-4,F2=1-Pm,O2=1+Pm,Em=.01,z2=0-Em,B2=0+Em;function we(e){return e.max-e.min}function U2(e,t,n){return Math.abs(e-t)<=n}function hf(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=we(n)/we(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=F2&&e.scale<=O2||isNaN(e.scale))&&(e.scale=1),(e.translate>=z2&&e.translate<=B2||isNaN(e.translate))&&(e.translate=0)}function Vr(e,t,n,r){hf(e.x,t.x,n.x,r?r.originX:void 0),hf(e.y,t.y,n.y,r?r.originY:void 0)}function pf(e,t,n){e.min=n.min+t.min,e.max=e.min+we(t)}function W2(e,t,n){pf(e.x,t.x,n.x),pf(e.y,t.y,n.y)}function mf(e,t,n){e.min=t.min-n.min,e.max=e.min+we(t)}function Ps(e,t,n){mf(e.x,t.x,n.x),mf(e.y,t.y,n.y)}function Fe(e){return[e("x"),e("y")]}const jm=({current:e})=>e?e.ownerDocument.defaultView:null,gf=(e,t)=>Math.abs(e-t);function $2(e,t){const n=gf(e.x,t.x),r=gf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=No(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=$2(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;const{point:x}=f,{timestamp:T}=fe;this.history.push({...x,timestamp:T});const{onStart:m,onMove:h}=this.handlers;y||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,y)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=jo(y,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,y)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=No(f.type==="pointercancel"?this.lastMoveEventInfo:jo(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,m),x&&x(f,m)},!du(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=fi(t),l=jo(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=fe;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,No(l,this.history)),this.removeListeners=li(Ar(this.contextWindow,"pointermove",this.handlePointerMove),Ar(this.contextWindow,"pointerup",this.handlePointerUp),Ar(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wt(this.updatePoint)}}function jo(e,t){return t?{point:t(e.point)}:e}function yf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function No({point:e},t){return{point:e,delta:yf(e,Mm(t)),offset:yf(e,b2(t)),velocity:H2(t,.1)}}function b2(e){return e[0]}function Mm(e){return e[e.length-1]}function H2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>at(t)));)n--;if(!r)return{x:0,y:0};const s=Ue(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function K2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function vf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function G2(e,{top:t,left:n,bottom:r,right:i}){return{x:vf(e.x,n,i),y:vf(e.y,t,r)}}function xf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Xr(t.min,t.max-r,e.min):r>i&&(n=Xr(e.min,e.max-i,t.min)),wt(0,1,n)}function Z2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ga=.35;function X2(e=Ga){return e===!1?e=0:e===!0&&(e=Ga),{x:wf(e,"left","right"),y:wf(e,"top","bottom")}}function wf(e,t,n){return{min:kf(e,t),max:kf(e,n)}}function kf(e,t){return typeof e=="number"?e:e[t]||0}const q2=new WeakMap;class J2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=se(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fi(d).point)},o=(d,f)=>{const{drag:y,dragPropagation:v,onDragStart:x}=this.getProps();if(y&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iv(y),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(m=>{let h=this.getAxisMotionValue(m).get()||0;if(lt.test(h)){const{projection:g}=this.visualElement;if(g&&g.layout){const w=g.layout.layoutBox[m];w&&(h=we(w)*(parseFloat(h)/100))}}this.originPoint[m]=h}),x&&H.postRender(()=>x(d,f)),Ha(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:y,dragDirectionLock:v,onDirectionLock:x,onDrag:T}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:m}=f;if(v&&this.currentDirection===null){this.currentDirection=ex(m),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),T&&T(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Fe(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nm(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:jm(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&H.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ai(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=K2(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Vn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=G2(r.layoutBox,t):this.constraints=!1,this.elastic=X2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Z2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=t2(r,i.root,this.visualElement.getTransformPagePoint());let o=Y2(i.layout.layoutBox,s);if(n){const a=n(qv(o));this.hasMutatedConstraints=!!a,a&&(o=dm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Fe(c=>{if(!Ai(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ha(this.visualElement,t),r.start(Su(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:r}=this.getProps();if(!Ai(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Y(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fe(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Q2({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fe(o=>{if(!Ai(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Y(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;q2.set(this.visualElement,this);const t=this.visualElement.current,n=Ar(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(r);const o=ni(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Fe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ga,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ai(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ex(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class tx extends Gt{constructor(t){super(t),this.removeGroupControls=$e,this.removeListeners=$e,this.controls=new J2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$e}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sf=e=>(t,n)=>{e&&H.postRender(()=>e(t,n))};class nx extends Gt{constructor(){super(...arguments),this.removePointerDownListener=$e}onPointerDown(t){this.session=new Nm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Sf(t),onStart:Sf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&H.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ar(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Cf(e,t.target.x),r=Cf(e,t.target.y);return`${n}% ${r}%`}},rx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=$t.parse(e);if(i.length>5)return r;const s=$t.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Y(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let Mo=!1;class ix extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Ev(sx),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Mo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Qi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Mo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||H.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),fu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Mo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Dm(e){const[t,n]=qp(),r=j.useContext($l);return p.jsx(ix,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(cm),isPresent:t,safeToRemove:n})}const sx={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:rx};function ox(e,t,n){const r=ye(e)?e:Xn(e);return r.start(Su("",r,t,n)),r.animation}const ax=(e,t)=>e.depth-t.depth;class lx{constructor(){this.children=[],this.isDirty=!1}add(t){Kl(this.children,t),this.isDirty=!0}remove(t){Gl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ax),this.isDirty=!1,this.children.forEach(t)}}function ux(e,t){const n=Ee.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Wt(r),e(s-t))};return H.setup(r,!0),()=>Wt(r)}const Lm=["TopLeft","TopRight","BottomLeft","BottomRight"],cx=Lm.length,Tf=e=>typeof e=="string"?parseFloat(e):e,Pf=e=>typeof e=="number"||A.test(e);function fx(e,t,n,r,i,s){i?(e.opacity=Y(0,n.opacity??1,dx(r)),e.opacityExit=Y(t.opacity??1,0,hx(r))):s&&(e.opacity=Y(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(Xr(e,t,r))}function jf(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){jf(e.x,t.x),jf(e.y,t.y)}function Nf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Mf(e,t,n,r,i){return e-=t,e=Ts(e,1/n,r),i!==void 0&&(e=Ts(e,1/i,r)),e}function px(e,t=0,n=1,r=.5,i,s=e,o=e){if(lt.test(t)&&(t=parseFloat(t),t=Y(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Y(s.min,s.max,r);e===s&&(a-=t),e.min=Mf(e.min,t,n,a,i),e.max=Mf(e.max,t,n,a,i)}function Df(e,t,[n,r,i],s,o){px(e,t[n],t[r],t[i],t.scale,s,o)}const mx=["x","scaleX","originX"],gx=["y","scaleY","originY"];function Lf(e,t,n,r){Df(e.x,t,mx,n?n.x:void 0,r?r.x:void 0),Df(e.y,t,gx,n?n.y:void 0,r?r.y:void 0)}function Af(e){return e.translate===0&&e.scale===1}function Vm(e){return Af(e.x)&&Af(e.y)}function Vf(e,t){return e.min===t.min&&e.max===t.max}function yx(e,t){return Vf(e.x,t.x)&&Vf(e.y,t.y)}function Rf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rm(e,t){return Rf(e.x,t.x)&&Rf(e.y,t.y)}function _f(e){return we(e.x)/we(e.y)}function If(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class vx{constructor(){this.members=[]}add(t){Kl(this.members,t),t.scheduleRender()}remove(t){if(Gl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xx(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Do=["","X","Y","Z"],wx=1e3;let kx=0;function Lo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _m(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_m(r)}function Im({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=kx++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Tx),this.nodes.forEach(Nx),this.nodes.forEach(Mx),this.nodes.forEach(Px)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;H.read(()=>{d=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==d&&(d=y,this.root.updateBlockedByResize=!0,c&&c(),c=ux(f,250),Qi.hasAnimatedSinceResize&&(Qi.hasAnimatedSinceResize=!1,this.nodes.forEach(zf)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||Rx,{onLayoutAnimationStart:x,onLayoutAnimationComplete:T}=u.getProps(),m=!this.targetLayout||!Rm(this.targetLayout,y),h=!d&&f;if(this.options.layoutRoot||this.resumeFrom||h||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...uu(v,"layout"),onPlay:x,onComplete:T};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(c,h)}else d||zf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Dx),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_m(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!we(this.snapshot.measuredBox.x)&&!we(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=w/1e3;Bf(d.x,o.x,k),Bf(d.y,o.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ps(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ax(this.relativeTarget,this.relativeTargetOrigin,f,k),g&&yx(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=se()),Ge(g,this.relativeTarget)),x&&(this.animationValues=c,fx(c,u,this.latestValues,k,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Wt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Qi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Xn(0)),this.currentAnimation=ox(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Fm(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||se();const d=we(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=we(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Ge(a,l),_n(a,c),Vr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new vx),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Lo("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ff),this.root.sharedNodes.clear()}}}function Sx(e){e.updateLayout()}function Cx(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Fe(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],y=we(f);f.min=r[d].min,f.max=f.min+y}):Fm(s,t.layoutBox,r)&&Fe(d=>{const f=o?t.measuredBox[d]:t.layoutBox[d],y=we(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=In();Vr(a,r,t.layoutBox);const l=In();o?Vr(l,e.applyTransform(i,!0),t.measuredBox):Vr(l,r,t.layoutBox);const u=!Vm(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=se();Ps(v,t.layoutBox,f.layoutBox);const x=se();Ps(x,r,y.layoutBox),Rm(v,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Tx(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Px(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ex(e){e.clearSnapshot()}function Ff(e){e.clearMeasurements()}function Of(e){e.isLayoutDirty=!1}function jx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nx(e){e.resolveTargetDelta()}function Mx(e){e.calcProjection()}function Dx(e){e.resetSkewAndRotation()}function Lx(e){e.removeLeadSnapshot()}function Bf(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uf(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function Ax(e,t,n,r){Uf(e.x,t.x,n.x,r),Uf(e.y,t.y,n.y,r)}function Vx(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Rx={duration:.45,ease:[.4,0,.1,1]},Wf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$f=Wf("applewebkit/")&&!Wf("chrome/")?Math.round:$e;function bf(e){e.min=$f(e.min),e.max=$f(e.max)}function _x(e){bf(e.x),bf(e.y)}function Fm(e,t,n){return e==="position"||e==="preserve-aspect"&&!U2(_f(t),_f(n),.2)}function Ix(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Fx=Im({attachResizeListener:(e,t)=>ni(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ao={current:void 0},Om=Im({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ao.current){const e=new Fx({});e.mount(window),e.setOptions({layoutScroll:!0}),Ao.current=e}return Ao.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ox={pan:{Feature:nx},drag:{Feature:tx,ProjectionNode:Om,MeasureLayout:Dm}};function Hf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&H.postRender(()=>s(t,fi(t)))}class zx extends Gt{mount(){const{current:t}=this.node;t&&(this.unmount=sv(t,(n,r)=>(Hf(this.node,r,"Start"),i=>Hf(this.node,i,"End"))))}unmount(){}}class Bx extends Gt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=li(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Kf(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&H.postRender(()=>s(t,fi(t)))}class Ux extends Gt{mount(){const{current:t}=this.node;t&&(this.unmount=uv(t,(n,r)=>(Kf(this.node,r,"Start"),(i,{success:s})=>Kf(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ya=new WeakMap,Vo=new WeakMap,Wx=e=>{const t=Ya.get(e.target);t&&t(e)},$x=e=>{e.forEach(Wx)};function bx({root:e,...t}){const n=e||document;Vo.has(n)||Vo.set(n,{});const r=Vo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($x,{root:e,...t})),r[i]}function Hx(e,t,n){const r=bx(t);return Ya.set(e,n),r.observe(e),()=>{Ya.delete(e),r.unobserve(e)}}const Kx={some:0,all:1};class Gx extends Gt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Kx[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Hx(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Yx(t,n))&&this.startObserver()}unmount(){}}function Yx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Qx={inView:{Feature:Gx},tap:{Feature:Ux},focus:{Feature:Bx},hover:{Feature:zx}},Zx={layout:{ProjectionNode:Om,MeasureLayout:Dm}},Xx={..._2,...Qx,...Ox,...Zx},ee=Xv(Xx,c2),sr="/api";async function qx(){return(await fetch(`${sr}/state`)).json()}async function Gf(){return(await fetch(`${sr}/dependencies/check`)).json()}async function Vi(){return(await fetch(`${sr}/docker/status`)).json()}async function Jx(){return(await fetch(`${sr}/docker/build`,{method:"POST"})).json()}async function Ro(){return(await fetch(`${sr}/defaults`)).json()}async function Yf(e){return(await fetch(`${sr}/defaults`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}const zm="/assets/wails-logo-white-text-B284k7fX.svg",Bm="/assets/wails-logo-black-text-Cx-vsZ4W.svg";function e3(e){switch(e){case"splash":case"checking":return"welcome";case"deps-ready":case"deps-missing":return"dependencies";case"cross-platform":case"docker-setup":return"platform";case"projects":return"identity";case"language-select":case"binding-style":case"template-select":return"templates";case"complete":return"complete";default:return"welcome"}}function t3(e){return["welcome","dependencies","platform","identity","templates","complete"].indexOf(e)+1}const Um=j.createContext({theme:"dark",toggleTheme:()=>{}}),Wm=()=>j.useContext(Um),Le={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function n3({currentStep:e,dockerStatus:t,buildingDocker:n}){const{theme:r,toggleTheme:i}=Wm(),s=e3(e),o=t3(s),a=[{key:"welcome",label:"Welcome"},{key:"dependencies",label:"Dependencies"},{key:"platform",label:"Platform"},{key:"identity",label:"Projects"},{key:"templates",label:"Templates"},{key:"complete",label:"Complete"}],l=()=>{window.open("https://github.com/sponsors/leaanthony","_blank","noopener,noreferrer")},u=n||(t==null?void 0:t.pullStatus)==="pulling";return p.jsxs("div",{className:"w-48 flex-shrink-0 bg-gray-100/80 dark:bg-transparent dark:glass-sidebar border-r border-gray-200 dark:border-transparent flex flex-col",children:[p.jsx("div",{className:"p-6 flex justify-center",children:p.jsx("img",{src:r==="dark"?zm:Bm,alt:"Wails",className:"h-24 object-contain"})}),p.jsx("nav",{className:"flex-1 px-4 py-2",children:p.jsx("ul",{className:"space-y-1",children:a.map((c,d)=>{const f=d+1,y=c.key===s,v=f!l.installed&&l.required),o=(()=>{const l=s.filter(f=>{var y;return(y=f.installCommand)==null?void 0:y.startsWith("sudo ")}).map(f=>f.installCommand);if(l.length===0)return null;const u=[],c=[],d=[];for(const f of l)if(f.includes("pacman -S")){const y=f.match(/pacman -S\s+(.+)/);y&&u.push(...y[1].split(/\s+/))}else if(f.includes("apt install")){const y=f.match(/apt install\s+(.+)/);y&&c.push(...y[1].split(/\s+/))}else if(f.includes("dnf install")){const y=f.match(/dnf install\s+(.+)/);y&&d.push(...y[1].split(/\s+/))}return u.length>0?`sudo pacman -S ${u.join(" ")}`:c.length>0?`sudo apt install ${c.join(" ")}`:d.length>0?`sudo dnf install ${d.join(" ")}`:null})(),a=()=>{o&&(navigator.clipboard.writeText(o),i(!0),setTimeout(()=>i(!1),2e3))};return p.jsxs(Cu,{title:"Almost there!",subtitle:"A few things need to be installed first",primaryAction:t,primaryLabel:"Check Again",secondaryAction:n,secondaryLabel:"Continue anyway",children:[p.jsx("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4 mb-4",children:s.map(l=>p.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-gray-200/50 dark:border-gray-800/50 last:border-0",children:[p.jsx("div",{className:"w-5 h-5 rounded-full bg-red-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:p.jsx("svg",{className:"w-3 h-3 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M6 18L18 6M6 6l12 12"})})}),p.jsxs("div",{children:[p.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:l.name}),l.message&&p.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:l.message}),l.helpUrl&&p.jsxs("a",{href:l.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-500 dark:text-blue-400 hover:text-blue-600 dark:hover:text-blue-300 mt-1",children:["Install instructions",p.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]},l.name))}),o&&p.jsxs("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4",children:[p.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-2",children:"Run this command to install everything:"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("code",{className:"flex-1 text-xs bg-gray-200 dark:bg-gray-900 text-gray-700 dark:text-gray-300 px-3 py-2 rounded font-mono overflow-x-auto",children:o}),p.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition-colors p-2",title:"Copy command",children:r?p.jsx("svg",{className:"w-5 h-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):p.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})]})}function a3({dockerDep:e,onYes:t,onSkip:n}){const r=(e==null?void 0:e.installed)&&(e==null?void 0:e.imageBuilt)===!0;return p.jsx(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:r?p.jsxs(p.Fragment,{children:[p.jsx(ee.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),p.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[p.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),p.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),p.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Cross-platform builds ready!"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"You can build for Windows, macOS, and Linux from this machine"}),p.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[p.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),p.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),p.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Build for multiple platforms?"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-md",children:"Wails can compile your app for Windows, macOS, and Linux from a single machine"}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"Requires Docker for cross-compilation"}),p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Yes, set this up"}),p.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Not right now"})]})]})})}function l3({dockerStatus:e,buildingImage:t,onBuildImage:n,onCheckAgain:r,onContinueBackground:i,onSkip:s}){if(!e||!e.installed)return p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Install Docker"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-sm",children:"Cross-platform builds require Docker Desktop"}),p.jsxs("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors inline-flex items-center gap-2 mb-4",children:["Download Docker Desktop",p.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-6 text-center max-w-xs",children:"After installing, come back and we'll continue setting up. Some platforms may require a reboot."}),p.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[p.jsx("button",{onClick:r,className:"px-5 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:"Check Again"}),p.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(!e.running)return p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gray-200 dark:bg-gray-800 flex items-center justify-center mb-6 opacity-50",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#6b7280",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Start Docker"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Please start Docker Desktop to continue"}),p.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[p.jsx("button",{onClick:r,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Check Again"}),p.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(t||e.pullStatus==="pulling"){const o=e.pullProgress||0;return p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Building cross-compiler image"}),p.jsxs("div",{className:"w-64 mb-4",children:[p.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-1",children:[p.jsx("span",{children:"Progress"}),p.jsxs("span",{children:[o,"%"]})]}),p.jsx("div",{className:"h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:p.jsx(ee.div,{className:"h-full bg-blue-500",animate:{width:`${o}%`}})})]}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This may take several minutes"}),p.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue in background"})]})}return e.imageBuilt?p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx(ee.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Cross-platform builds ready!"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"You can now build for Windows, macOS, and Linux"}),p.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]}):p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:p.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:p.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Docker is ready!"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Build the cross-compilation image to enable building for all platforms"}),p.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This will download ~800MB and may take several minutes"}),p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors",children:"Build Image"}),p.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip, I'll do it later"})]})]})}const u3=[{id:"vanilla",name:"Vanilla",description:"Plain JavaScript/TypeScript",color:"#f7df1e",icon:"javascript"},{id:"react",name:"React",description:"React with Vite",color:"#61dafb",icon:"react"},{id:"vue",name:"Vue",description:"Vue 3 with Vite",color:"#42b883",icon:"vue"},{id:"svelte",name:"Svelte",description:"Svelte with Vite",color:"#ff3e00",icon:"svelte"},{id:"preact",name:"Preact",description:"Lightweight React alternative",color:"#673ab8",icon:"preact"},{id:"lit",name:"Lit",description:"Web Components with Lit",color:"#324fff",icon:"lit"},{id:"solid",name:"Solid",description:"Solid.js with Vite",color:"#2c4f7c",icon:"solid"},{id:"qwik",name:"Qwik",description:"Qwik with Vite",color:"#18b6f6",icon:"qwik"}];function c3({preferTypeScript:e,onSelect:t,onNext:n}){return p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Language Preference"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"Choose your preferred language for new projects"}),p.jsxs("div",{className:"flex gap-4 mb-8",children:[p.jsxs("button",{onClick:()=>t(!1),className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 ${e?"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10":"border-yellow-400 bg-yellow-400/10 shadow-lg shadow-yellow-400/20"}`,children:[p.jsx("div",{className:"w-16 h-16 flex items-center justify-center",children:p.jsx("img",{src:"/logos/javascript.svg",alt:"JavaScript",className:"w-14 h-14"})}),p.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"JavaScript"}),p.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Dynamic typing"})]}),p.jsxs("button",{onClick:()=>t(!0),className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[p.jsx("div",{className:"w-16 h-16 flex items-center justify-center",children:p.jsx("img",{src:"/logos/typescript.svg",alt:"TypeScript",className:"w-14 h-14"})}),p.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"TypeScript"}),p.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Type safety"})]})]}),p.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})}function f3({useInterfaces:e,onSelect:t,onNext:n}){return p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center px-4 overflow-hidden",children:[p.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"TypeScript Binding Style"}),p.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-lg",children:"Choose how Go structs are represented in TypeScript"}),p.jsxs("div",{className:"flex gap-4 mb-8 max-w-full overflow-x-auto",children:[p.jsxs("button",{onClick:()=>t(!0),className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[p.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Interfaces"}),p.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto",children:`interface Person { - name: string; - age: number; -}`}),p.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5",children:[p.jsx("li",{children:"• Lightweight types"}),p.jsx("li",{children:"• No runtime code"}),p.jsx("li",{children:"• Simpler output"})]})]}),p.jsxs("button",{onClick:()=>t(!1),className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left ${e?"border-white/10 bg-white/5 hover:bg-white/10":"border-purple-400 bg-purple-400/10 shadow-lg shadow-purple-400/20"}`,children:[p.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Classes"}),p.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto",children:`class Person { - name: string; - age: number; - constructor(src) { - Object.assign(this, src); - } - static createFrom(src) { - return new Person(src); - } -}`}),p.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5",children:[p.jsx("li",{children:"• Factory methods"}),p.jsx("li",{children:"• Default initialization"}),p.jsx("li",{children:"• More verbose"})]})]})]}),p.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})}function d3({selectedFramework:e,preferTypeScript:t,onSelect:n,onNext:r,onSkip:i}){return p.jsx(Cu,{title:"Default Template",subtitle:"Choose a framework for new projects",primaryAction:r,primaryLabel:"Continue",secondaryAction:i,secondaryLabel:"Skip",children:p.jsx("div",{className:"grid grid-cols-4 gap-3 max-w-2xl mx-auto",children:u3.map(s=>p.jsxs("button",{onClick:()=>n(s.id),className:`aspect-square rounded-xl p-4 flex flex-col items-center justify-center gap-2 transition-all border-2 ${e===s.id?"border-red-500 bg-red-500/10 shadow-lg shadow-red-500/10":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[p.jsx("img",{src:`/logos/${s.id==="vanilla"?t?"typescript":"javascript":s.icon}.svg`,alt:s.name,className:"w-12 h-12"}),p.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:s.name})]},s.id))})})}function h3({defaults:e,onDefaultsChange:t,onNext:n,onSkip:r,saving:i}){const[s,o]=j.useState(null),[a,l]=j.useState(""),u=f=>{f==="company"?l(e.author.company):f==="bundleId"&&l(e.project.productIdentifierPrefix),o(f)},c=()=>{s==="company"?t({...e,author:{...e.author,company:a}}):s==="bundleId"&&t({...e,project:{...e.project,productIdentifierPrefix:a}}),o(null)},d=f=>{f.key==="Enter"?c():f.key==="Escape"&&o(null)};return p.jsx(Cu,{title:"Project Defaults",subtitle:"Set defaults for new Wails projects",primaryAction:n,primaryLabel:i?"Saving...":"Continue",primaryDisabled:i,secondaryAction:r,secondaryLabel:"Skip",children:p.jsxs("div",{className:"max-w-xl mx-auto",children:[p.jsxs("div",{className:"settings-group",children:[s==="company"?p.jsx("div",{className:"settings-row",children:p.jsx("div",{className:"flex-1",children:p.jsx("input",{type:"text",value:a,onChange:f=>l(f.target.value),onKeyDown:d,onBlur:c,autoFocus:!0,placeholder:"Acme Corp",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none"})})}):p.jsxs("div",{className:"settings-row",onClick:()=>u("company"),children:[p.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Company"}),p.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[p.jsx("span",{children:e.author.company||"Not set"}),p.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs",children:"▸"})]})]}),s==="bundleId"?p.jsx("div",{className:"settings-row",children:p.jsx("div",{className:"flex-1",children:p.jsx("input",{type:"text",value:a,onChange:f=>l(f.target.value),onKeyDown:d,onBlur:c,autoFocus:!0,placeholder:"com.example",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none font-mono"})})}):p.jsxs("div",{className:"settings-row",onClick:()=>u("bundleId"),children:[p.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Bundle identifier"}),p.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[p.jsx("span",{className:"font-mono",children:e.project.productIdentifierPrefix||"com.example"}),p.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs",children:"▸"})]})]})]}),p.jsx("p",{className:"text-xs text-gray-500 dark:text-white/40 mt-3 text-center",children:"These defaults are used when creating new projects"})]})})}function p3(){return p.jsxs(ee.div,{variants:Le,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center px-8",children:[p.jsx(ee.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-full bg-green-500/20 flex items-center justify-center mb-4",children:p.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),p.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-6",children:"You're ready to build!"}),p.jsx("a",{href:"https://v3alpha.wails.io/quick-start/first-app/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Start Building"})]})}function m3(){const[e,t]=j.useState("splash"),[n,r]=j.useState([]),[i,s]=j.useState(null),[o,a]=j.useState(null),[l,u]=j.useState(!1),[c,d]=j.useState({author:{name:"",company:""},project:{productIdentifierPrefix:"com.example",defaultTemplate:"vanilla",copyrightTemplate:"(c) {year}, {company}",descriptionTemplate:"A {name} application",defaultVersion:"0.1.0",useInterfaces:!0}}),[f,y]=j.useState(!1),[v,x]=j.useState(!1),[T,m]=j.useState(!0),[h,g]=j.useState("vanilla"),[w,k]=j.useState(!0),[S,P]=j.useState(()=>{if(typeof window<"u"){const R=localStorage.getItem("wails-setup-theme");if(R==="light"||R==="dark")return R;if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}),C=()=>{P(R=>{const U=R==="dark"?"light":"dark";return localStorage.setItem("wails-setup-theme",U),U})};j.useEffect(()=>{S==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[S]),j.useEffect(()=>{_()},[]);const _=async()=>{const R=await qx();s(R.system)},D=async()=>{t("checking");const R=await Gf();r(R),R.filter(Ct=>Ct.required&&!Ct.installed).length===0?t("deps-ready"):t("deps-missing")},X=async()=>{t("cross-platform")},tt=async()=>{t("checking");const R=await Gf();r(R),R.filter(Ct=>Ct.required&&!Ct.installed).length===0?t("deps-ready"):t("deps-missing")},ut=async()=>{t("cross-platform")},Yt=async()=>{const R=await Vi();a(R),t("docker-setup")},gn=async()=>{var U;const R=await Ro();d(R),k(((U=R.project)==null?void 0:U.useInterfaces)??!0),t("projects")},yn=async()=>{const R=await Vi();a(R)},K=async()=>{u(!0),await Jx();const R=async()=>{const U=await Vi();a(U),U.pullStatus==="pulling"?setTimeout(R,1e3):u(!1)};R()},N=async()=>{var U;(l||o&&o.pullStatus==="pulling")&&x(!0);const R=await Ro();d(R),k(((U=R.project)==null?void 0:U.useInterfaces)??!0),t("projects")},L=async()=>{var U;const R=await Ro();d(R),k(((U=R.project)==null?void 0:U.useInterfaces)??!0),t("projects")},V=()=>{t("language-select")},B=()=>{t("language-select")},ne=()=>{t(T?"binding-style":"template-select")},vn=()=>{t("template-select")},ct=async()=>{const R=T&&h!=="vanilla"?`${h}-ts`:T&&h==="vanilla"?"vanilla-ts":h,U={...c,project:{...c.project,defaultTemplate:R,useInterfaces:T?w:!0}};y(!0),await Yf(U),y(!1),t("complete")},or=async()=>{const R={...c,project:{...c.project,useInterfaces:T?w:!0}};y(!0),await Yf(R),y(!1),t("complete")};return j.useEffect(()=>{if(v&&(l||o&&o.pullStatus==="pulling")){const R=async()=>{const Ct=await Vi();a(Ct),Ct.pullStatus==="pulling"?setTimeout(R,2e3):u(!1)},U=setTimeout(R,2e3);return()=>clearTimeout(U)}},[v,l,o==null?void 0:o.pullStatus]),p.jsx(Um.Provider,{value:{theme:S,toggleTheme:C},children:p.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-[#0f0f0f] flex items-center justify-center p-4 transition-colors relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:p.jsxs("div",{className:"scrolling-bg w-full h-[200%] opacity-[0.08] dark:opacity-[0.06]",children:[p.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"}),p.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"})]})}),p.jsxs("div",{className:"w-[75vw] max-w-[75vw] h-[75vh] max-h-[75vh] glass-card rounded-2xl flex overflow-hidden relative z-10",children:[p.jsx(n3,{currentStep:e,dockerStatus:o,buildingDocker:v&&(l||(o==null?void 0:o.pullStatus)==="pulling")}),p.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white/50 dark:bg-white/[0.03]",children:p.jsx("div",{className:"flex-1 flex flex-col min-h-0",children:p.jsxs(xv,{mode:"wait",children:[e==="splash"&&p.jsx(r3,{onNext:D},"splash"),e==="checking"&&p.jsx(i3,{},"checking"),e==="deps-ready"&&p.jsx(s3,{onNext:X},"deps-ready"),e==="deps-missing"&&p.jsx(o3,{dependencies:n,onRetry:tt,onContinue:ut},"deps-missing"),e==="cross-platform"&&p.jsx(a3,{dockerDep:n.find(R=>R.name==="docker"),onYes:Yt,onSkip:gn},"cross-platform"),e==="docker-setup"&&p.jsx(l3,{dockerStatus:o,buildingImage:l,onBuildImage:K,onCheckAgain:yn,onContinueBackground:N,onSkip:L},"docker-setup"),e==="projects"&&p.jsx(h3,{defaults:c,onDefaultsChange:d,onNext:V,onSkip:B,saving:f},"projects"),e==="language-select"&&p.jsx(c3,{preferTypeScript:T,onSelect:m,onNext:ne},"language-select"),e==="binding-style"&&p.jsx(f3,{useInterfaces:w,onSelect:k,onNext:vn},"binding-style"),e==="template-select"&&p.jsx(d3,{selectedFramework:h,preferTypeScript:T,onSelect:g,onNext:ct,onSkip:or},"template-select"),e==="complete"&&p.jsx(p3,{},"complete")]})})})]})]})})}_o.createRoot(document.getElementById("root")).render(p.jsx(s0.StrictMode,{children:p.jsx(m3,{})})); diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-CGNSfeb6.css b/v3/internal/setupwizard/frontend/dist/assets/index-CGNSfeb6.css new file mode 100644 index 000000000..c1da5b5fb --- /dev/null +++ b/v3/internal/setupwizard/frontend/dist/assets/index-CGNSfeb6.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:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;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}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-4{left:1rem}.right-4{right:1rem}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-9{margin-left:2.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1{height:.25rem}.h-1\/2{height:50%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-72{height:18rem}.h-8{height:2rem}.h-96{height:24rem}.h-\[200\%\]{height:200%}.h-\[75vh\]{height:75vh}.h-full{height:100%}.max-h-\[800px\]{max-height:800px}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[75vw\]{width:75vw}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-\[1200px\]{max-width:1200px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-none{border-style:none}.border-amber-500\/30{border-color:#f59e0b4d}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-200\/50{border-color:#e5e7eb80}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white\/10{border-color:#ffffff1a}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-t-red-500{--tw-border-opacity: 1;border-top-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.bg-amber-500\/20{background-color:#f59e0b33}.bg-blue-400\/10{background-color:#60a5fa1a}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/20{background-color:#3b82f633}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-100\/80{background-color:#f3f4f6cc}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/20{background-color:#22c55e33}.bg-purple-400\/10{background-color:#c084fc1a}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-400\/10{background-color:#facc151a}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-4{padding-top:1rem}.pt-\[15\%\]{padding-top:15%}.text-left{text-align:left}.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-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / 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))}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-\[0\.08\]{opacity:.08}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-400\/20{--tw-shadow-color: rgb(96 165 250 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-400\/20{--tw-shadow-color: rgb(192 132 252 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/10{--tw-shadow-color: rgb(239 68 68 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-400\/20{--tw-shadow-color: rgb(250 204 21 / .2);--tw-shadow: var(--tw-shadow-colored)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));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)}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:root{--wails-red: #ef4444;--wails-red-dark: #dc2626;--wails-red-light: #f87171;--wails-blue: #1d63ed;--wails-blue-dark: #1554d0;--wails-blue-light: #3b7dff;--bg-primary: #05070b;--bg-secondary: #0a0e16;--bg-tertiary: #0f1420;--glass-bg: rgba(255, 255, 255, .06);--glass-border: rgba(255, 255, 255, .08)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;background:var(--bg-primary);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.gradient-text{background:linear-gradient(135deg,#fff,#ef4444);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.glass-card{background:linear-gradient(180deg,#ffffff14,#ffffff0a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);box-shadow:0 30px 80px #00000080}.glass-sidebar{background:#05070c8c;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-right:1px solid var(--glass-border)}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .12s ease}.settings-row:hover{background:#0000000a}.dark .settings-row:hover{background:#ffffff0f}.settings-row+.settings-row{border-top:1px solid rgba(0,0,0,.1)}.dark .settings-row+.settings-row{border-top:1px solid var(--glass-border)}.settings-group{border-radius:12px;background:#0000000a;box-shadow:0 4px 12px #00000014,0 0 0 1px #00000014 inset;overflow:hidden}.dark .settings-group{background:#ffffff1a;box-shadow:0 12px 30px #00000059,0 0 0 1px var(--glass-border) inset;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.grid-bg{background-image:linear-gradient(rgba(239,68,68,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(239,68,68,.03) 1px,transparent 1px);background-size:40px 40px}.radial-glow{background:radial-gradient(ellipse at center,rgba(239,68,68,.1) 0%,transparent 70%)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.scrollbar-thin::-webkit-scrollbar{width:4px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:#9ca3af4d;border-radius:2px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:#9ca3af80}.btn-primary{border-radius:.75rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #dc2626 var(--tw-gradient-to-position);padding:.75rem 2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-primary:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(239 68 68 / .3);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:active{--tw-scale-x: .95;--tw-scale-y: .95;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))}.btn-secondary{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));background-color:transparent;padding:.75rem 2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-secondary:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));background-color:#1f293780;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite}.check-path{stroke-dasharray:100;stroke-dashoffset:100;animation:drawCheck .5s ease-out forwards}@keyframes scrollBackground{0%{transform:translateY(0)}to{transform:translateY(-50%)}}.scrolling-bg{animation:scrollBackground 60s linear infinite}@media (prefers-reduced-motion: reduce){*:not(.animate-spin):not(.spinner),*:not(.animate-spin):not(.spinner):before,*:not(.animate-spin):not(.spinner):after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.settings-row:focus-visible{outline:2px solid #ef4444;outline-offset:-2px}.last\:border-0:last-child{border-width:0px}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-500\/10:hover{background-color:#3b82f61a}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:opacity-70:hover{opacity:.7}.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-inset:focus{--tw-ring-inset: inset}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-purple-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(192 132 252 / var(--tw-ring-opacity, 1))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800\/50:is(.dark *){border-color:#1f293780}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}.dark\:bg-\[\#0f0f0f\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 15 15 / var(--tw-bg-opacity, 1))}.dark\:bg-black\/30:is(.dark *){background-color:#0000004d}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/50:is(.dark *){background-color:#11182780}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}.dark\:bg-white\/\[0\.03\]:is(.dark *){background-color:#ffffff08}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:text-white\/40:is(.dark *){color:#fff6}.dark\:text-white\/50:is(.dark *){color:#ffffff80}.dark\:text-white\/65:is(.dark *){color:#ffffffa6}.dark\:text-white\/70:is(.dark *){color:#ffffffb3}.dark\:text-white\/90:is(.dark *){color:#ffffffe6}.dark\:placeholder-gray-500:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:placeholder-gray-500:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:opacity-\[0\.06\]:is(.dark *){opacity:.06}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-white\/10:hover:is(.dark *){background-color:#ffffff1a}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:focus\:ring-offset-gray-900:focus:is(.dark *){--tw-ring-offset-color: #111827} diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-Ced0vwAS.js b/v3/internal/setupwizard/frontend/dist/assets/index-Ced0vwAS.js new file mode 100644 index 000000000..d57f60292 --- /dev/null +++ b/v3/internal/setupwizard/frontend/dist/assets/index-Ced0vwAS.js @@ -0,0 +1,60 @@ +(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 s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function i0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ed={exports:{}},Ns={},td={exports:{}},I={};/** + * @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 si=Symbol.for("react.element"),s0=Symbol.for("react.portal"),o0=Symbol.for("react.fragment"),a0=Symbol.for("react.strict_mode"),l0=Symbol.for("react.profiler"),u0=Symbol.for("react.provider"),c0=Symbol.for("react.context"),f0=Symbol.for("react.forward_ref"),d0=Symbol.for("react.suspense"),h0=Symbol.for("react.memo"),p0=Symbol.for("react.lazy"),Eu=Symbol.iterator;function m0(e){return e===null||typeof e!="object"?null:(e=Eu&&e[Eu]||e["@@iterator"],typeof e=="function"?e:null)}var nd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rd=Object.assign,id={};function nr(e,t,n){this.props=e,this.context=t,this.refs=id,this.updater=n||nd}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sd(){}sd.prototype=nr.prototype;function Za(e,t,n){this.props=e,this.context=t,this.refs=id,this.updater=n||nd}var qa=Za.prototype=new sd;qa.constructor=Za;rd(qa,nr.prototype);qa.isPureReactComponent=!0;var Nu=Array.isArray,od=Object.prototype.hasOwnProperty,Ja={current:null},ad={key:!0,ref:!0,__self:!0,__source:!0};function ld(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)od.call(t,r)&&!ad.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,re=N[U];if(0>>1;Ui(lr,V))pti(kn,lr)?(N[U]=kn,N[pt]=V,U=pt):(N[U]=lr,N[ht]=V,U=ht);else if(pti(kn,V))N[U]=kn,N[pt]=V,U=pt;else break e}}return A}function i(N,A){var V=N.sortIndex-A.sortIndex;return V!==0?V:N.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,h=null,d=3,y=!1,v=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=N)r(u),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(u)}}function w(N){if(x=!1,g(N),!v)if(n(l)!==null)v=!0,me(k);else{var A=n(u);A!==null&&Y(w,A.startTime-N)}}function k(N,A){v=!1,x&&(x=!1,m(T),T=-1),y=!0;var V=d;try{for(g(A),h=n(l);h!==null&&(!(h.expirationTime>A)||N&&!q());){var U=h.callback;if(typeof U=="function"){h.callback=null,d=h.priorityLevel;var re=U(h.expirationTime<=A);A=e.unstable_now(),typeof re=="function"?h.callback=re:h===n(l)&&r(l),g(A)}else r(l);h=n(l)}if(h!==null)var wn=!0;else{var ht=n(u);ht!==null&&Y(w,ht.startTime-A),wn=!1}return wn}finally{h=null,d=V,y=!1}}var C=!1,j=null,T=-1,b=5,D=-1;function q(){return!(e.unstable_now()-DN||125U?(N.sortIndex=V,t(u,N),n(l)===null&&N===n(u)&&(x?(m(T),T=-1):x=!0,Y(w,V-U))):(N.sortIndex=re,t(l,N),v||y||(v=!0,me(k))),N},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(N){var A=d;return function(){var V=d;d=A;try{return N.apply(this,arguments)}finally{d=V}}}})(hd);dd.exports=hd;var E0=dd.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 N0=S,Ie=E0;function E(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"),Fo=Object.prototype.hasOwnProperty,M0=/^[: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]*$/,Du={},Lu={};function D0(e){return Fo.call(Lu,e)?!0:Fo.call(Du,e)?!1:M0.test(e)?Lu[e]=!0:(Du[e]=!0,!1)}function L0(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 A0(e,t,n,r){if(t===null||typeof t>"u"||L0(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 Ee(e,t,n,r,i,s,o){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=s,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ee(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){pe[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var tl=/[\-:]([a-z])/g;function nl(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(tl,nl);pe[t]=new Ee(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(tl,nl);pe[t]=new Ee(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(tl,nl);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function rl(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function R0(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=Zs(e.type,!1),e;case 11:return e=Zs(e.type.render,!1),e;case 1:return e=Zs(e.type,!0),e;default:return""}}function Uo(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 Tn:return"Fragment";case Cn:return"Portal";case Oo:return"Profiler";case il:return"StrictMode";case Bo:return"Suspense";case zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gd:return(e.displayName||"Context")+".Consumer";case md:return(e._context.displayName||"Context")+".Provider";case sl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ol:return t=e.displayName||null,t!==null?t:Uo(e.type)||"Memo";case Mt:t=e._payload,e=e._init;try{return Uo(e(t))}catch{}}return null}function V0(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 Uo(t);case 8:return t===il?"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 Wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b0(e){var t=vd(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gi(e){e._valueTracker||(e._valueTracker=b0(e))}function xd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qi(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 Wo(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ru(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wt(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 wd(e,t){t=t.checked,t!=null&&rl(e,"checked",t,!1)}function $o(e,t){wd(e,t);var n=Wt(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")?Ho(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ho(e,t.type,Wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vu(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 Ho(e,t,n){(t!=="number"||qi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cr={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},_0=["Webkit","ms","Moz","O"];Object.keys(Cr).forEach(function(e){_0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cr[t]=Cr[e]})});function Td(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cr.hasOwnProperty(e)&&Cr[e]?(""+t).trim():t+"px"}function jd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Td(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var I0=Z({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 Go(e,t){if(t){if(I0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Qo(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 Xo=null;function al(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zo=null,zn=null,Un=null;function Iu(e){if(e=li(e)){if(typeof Zo!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Rs(t),Zo(e.stateNode,e.type,t))}}function Pd(e){zn?Un?Un.push(e):Un=[e]:zn=e}function Ed(){if(zn){var e=zn,t=Un;if(Un=zn=null,Iu(e),t)for(e=0;e>>=0,e===0?32:31-(G0(e)/Q0|0)|0}var vi=64,xi=4194304;function wr(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 ns(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=wr(a):(s&=o,s!==0&&(r=wr(s)))}else o=n&~i,o!==0?r=wr(o):s!==0&&(r=wr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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 oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nt(t),e[t]=n}function J0(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=jr),Ku=" ",Yu=!1;function Yd(e,t){switch(e){case"keyup":return Eg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Mg(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(Yu=!0,Ku);case"textInput":return e=t.data,e===Ku&&Yu?null:e;default:return null}}function Dg(e,t){if(jn)return e==="compositionend"||!ml&&Yd(e,t)?(e=Hd(),Oi=dl=Rt=null,jn=!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=Zu(n)}}function qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jd(){for(var e=window,t=qi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qi(e.document)}return t}function gl(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 Og(e){var t=Jd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qd(n.ownerDocument.documentElement,n)){if(r!==null&&gl(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=qu(n,s);var o=qu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,Pn=null,ra=null,Er=null,ia=!1;function Ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ia||Pn==null||Pn!==qi(r)||(r=Pn,"selectionStart"in r&&gl(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}),Er&&Wr(Er,r)||(Er=r,r=ss(ra,"onSelect"),0Mn||(e.current=ca[Mn],ca[Mn]=null,Mn--)}function z(e,t){Mn++,ca[Mn]=e.current,e.current=t}var $t={},ke=Gt($t),Le=Gt(!1),dn=$t;function Gn(e,t){var n=e.type.contextTypes;if(!n)return $t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ae(e){return e=e.childContextTypes,e!=null}function as(){$(Le),$(ke)}function oc(e,t,n){if(ke.current!==$t)throw Error(E(168));z(ke,t),z(Le,n)}function lh(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(E(108,V0(e)||"Unknown",i));return Z({},n,r)}function ls(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$t,dn=ke.current,z(ke,e),z(Le,Le.current),!0}function ac(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=lh(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,$(Le),$(ke),z(ke,e)):$(Le),z(Le,n)}var gt=null,Vs=!1,fo=!1;function uh(e){gt===null?gt=[e]:gt.push(e)}function Zg(e){Vs=!0,uh(e)}function Qt(){if(!fo&>!==null){fo=!0;var e=0,t=O;try{var n=gt;for(O=1;e>=o,i-=o,yt=1<<32-nt(t)+i|n<T?(b=j,j=null):b=j.sibling;var D=d(m,j,g[T],w);if(D===null){j===null&&(j=b);break}e&&j&&D.alternate===null&&t(m,j),p=s(D,p,T),C===null?k=D:C.sibling=D,C=D,j=b}if(T===g.length)return n(m,j),H&&Jt(m,T),k;if(j===null){for(;TT?(b=j,j=null):b=j.sibling;var q=d(m,j,D.value,w);if(q===null){j===null&&(j=b);break}e&&j&&q.alternate===null&&t(m,j),p=s(q,p,T),C===null?k=q:C.sibling=q,C=q,j=b}if(D.done)return n(m,j),H&&Jt(m,T),k;if(j===null){for(;!D.done;T++,D=g.next())D=h(m,D.value,w),D!==null&&(p=s(D,p,T),C===null?k=D:C.sibling=D,C=D);return H&&Jt(m,T),k}for(j=r(m,j);!D.done;T++,D=g.next())D=y(j,m,T,D.value,w),D!==null&&(e&&D.alternate!==null&&j.delete(D.key===null?T:D.key),p=s(D,p,T),C===null?k=D:C.sibling=D,C=D);return e&&j.forEach(function(Be){return t(m,Be)}),H&&Jt(m,T),k}function P(m,p,g,w){if(typeof g=="object"&&g!==null&&g.type===Tn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case mi:e:{for(var k=g.key,C=p;C!==null;){if(C.key===k){if(k=g.type,k===Tn){if(C.tag===7){n(m,C.sibling),p=i(C,g.props.children),p.return=m,m=p;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Mt&&cc(k)===C.type){n(m,C.sibling),p=i(C,g.props),p.ref=pr(m,C,g),p.return=m,m=p;break e}n(m,C);break}else t(m,C);C=C.sibling}g.type===Tn?(p=un(g.props.children,m.mode,w,g.key),p.return=m,m=p):(w=Yi(g.type,g.key,g.props,null,m.mode,w),w.ref=pr(m,p,g),w.return=m,m=w)}return o(m);case Cn:e:{for(C=g.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=i(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=wo(g,m.mode,w),p.return=m,m=p}return o(m);case Mt:return C=g._init,P(m,p,C(g._payload),w)}if(xr(g))return v(m,p,g,w);if(ur(g))return x(m,p,g,w);Pi(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,g),p.return=m,m=p):(n(m,p),p=xo(g,m.mode,w),p.return=m,m=p),o(m)):n(m,p)}return P}var Xn=hh(!0),ph=hh(!1),fs=Gt(null),ds=null,An=null,wl=null;function kl(){wl=An=ds=null}function Sl(e){var t=fs.current;$(fs),e._currentValue=t}function ha(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 $n(e,t){ds=e,wl=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function Ge(e){var t=e._currentValue;if(wl!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(ds===null)throw Error(E(308));An=e,ds.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var rn=null;function Cl(e){rn===null?rn=[e]:rn.push(e)}function mh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Cl(t)):(n.next=i.next,i.next=n),t.interleaved=n,St(e,r)}function St(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 Dt=!1;function Tl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gh(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 xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ot(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,St(e,n)}return i=r.interleaved,i===null?(t.next=t,Cl(r)):(t.next=i.next,i.next=t),r.interleaved=t,St(e,n)}function zi(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,ul(e,n)}}function fc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 hs(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;o=0,c=u=l=null,a=s;do{var d=a.lane,y=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(d=t,y=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){h=v.call(y,h,d);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,d=typeof v=="function"?v.call(y,h,d):v,d==null)break e;h=Z({},h,d);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else y={eventTime:y,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=h):c=c.next=y,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=h}}function dc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{O=n,po.transition=r}}function Rh(){return Qe().memoizedState}function ty(e,t,n){var r=zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Vh(e))bh(t,n);else if(n=mh(e,t,n,r),n!==null){var i=je();rt(n,e,r,i),_h(n,t,r)}}function ny(e,t,n){var r=zt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vh(e))bh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,it(a,o)){var l=t.interleaved;l===null?(i.next=i,Cl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=mh(e,t,i,r),n!==null&&(i=je(),rt(n,e,r,i),_h(n,t,r))}}function Vh(e){var t=e.alternate;return e===X||t!==null&&t===X}function bh(e,t){Nr=ms=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _h(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ul(e,n)}}var gs={readContext:Ge,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},ry={readContext:Ge,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:pc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wi(4194308,4,Nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wi(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();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=ty.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:hc,useDebugValue:Al,useDeferredValue:function(e){return ot().memoizedState=e},useTransition:function(){var e=hc(!1),t=e[0];return e=ey.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=ot();if(H){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ce===null)throw Error(E(349));pn&30||wh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,pc(Sh.bind(null,r,s,e),[e]),r.flags|=2048,Zr(9,kh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ot(),t=ce.identifierPrefix;if(H){var n=vt,r=yt;n=(r&~(1<<32-nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[at]=t,e[Kr]=r,Kh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Qo(n,r),n){case"dialog":W("cancel",e),W("close",e),i=r;break;case"iframe":case"object":case"embed":W("load",e),i=r;break;case"video":case"audio":for(i=0;iJn&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ps(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!H)return ye(t),null}else 2*ne()-s.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ne(),t.sibling=null,n=G.current,z(G,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return Fl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function fy(e,t){switch(vl(t),t.tag){case 1:return Ae(t.type)&&as(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),$(Le),$(ke),El(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pl(t),null;case 13:if($(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(G),null;case 4:return Zn(),null;case 10:return Sl(t.type._context),null;case 22:case 23:return Fl(),null;case 24:return null;default:return null}}var Ni=!1,ve=!1,dy=typeof WeakSet=="function"?WeakSet:Set,M=null;function Rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function Sa(e,t,n){try{n()}catch(r){te(e,t,r)}}var jc=!1;function hy(e,t){if(sa=rs,e=Jd(),gl(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,h=e,d=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(y=h.firstChild)!==null;)d=h,h=y;for(;;){if(h===e)break t;if(d===n&&++u===i&&(a=o),d===s&&++c===r&&(l=o),(y=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(oa={focusedElem:e,selectionRange:n},rs=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,P=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:Je(t.type,x),P);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){te(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return v=jc,jc=!1,v}function Mr(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 s=i.destroy;i.destroy=void 0,s!==void 0&&Sa(t,n,s)}i=i.next}while(i!==r)}}function Is(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 Ca(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 Qh(e){var t=e.alternate;t!==null&&(e.alternate=null,Qh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[Kr],delete t[ua],delete t[Qg],delete t[Xg])),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 Xh(e){return e.tag===5||e.tag===3||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xh(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 Ta(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=os));else if(r!==4&&(e=e.child,e!==null))for(Ta(e,t,n),e=e.sibling;e!==null;)Ta(e,t,n),e=e.sibling}function ja(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(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}var fe=null,et=!1;function Et(e,t,n){for(n=n.child;n!==null;)Zh(e,t,n),n=n.sibling}function Zh(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(Ms,n)}catch{}switch(n.tag){case 5:ve||Rn(n,t);case 6:var r=fe,i=et;fe=null,Et(e,t,n),fe=r,et=i,fe!==null&&(et?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(et?(e=fe,n=n.stateNode,e.nodeType===8?co(e.parentNode,n):e.nodeType===1&&co(e,n),zr(e)):co(fe,n.stateNode));break;case 4:r=fe,i=et,fe=n.stateNode.containerInfo,et=!0,Et(e,t,n),fe=r,et=i;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Sa(n,t,o),i=i.next}while(i!==r)}Et(e,t,n);break;case 1:if(!ve&&(Rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){te(n,t,a)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,Et(e,t,n),ve=r):Et(e,t,n);break;default:Et(e,t,n)}}function Ec(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dy),t.forEach(function(r){var i=Sy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*my(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,xs=0,F&6)throw Error(E(331));var i=F;for(F|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lne()-_l?ln(e,0):bl|=n),Re(e,t)}function sp(e,t){t===0&&(e.mode&1?(t=xi,xi<<=1,!(xi&130023424)&&(xi=4194304)):t=1);var n=je();e=St(e,t),e!==null&&(oi(e,t,n),Re(e,n))}function ky(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sp(e,n)}function Sy(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(E(314))}r!==null&&r.delete(t),sp(e,n)}var op;op=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,uy(e,t,n);Me=!!(e.flags&131072)}else Me=!1,H&&t.flags&1048576&&ch(t,cs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$i(e,t),e=t.pendingProps;var i=Gn(t,ke.current);$n(t,n),i=Ml(null,t,r,e,i,n);var s=Dl();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,Ae(r)?(s=!0,ls(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Tl(t),i.updater=_s,t.stateNode=i,i._reactInternals=t,ma(t,r,e,n),t=va(null,t,r,!0,s,n)):(t.tag=0,H&&s&&yl(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($i(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ty(r),e=Je(r,e),i){case 0:t=ya(null,t,r,e,n);break e;case 1:t=Sc(null,t,r,e,n);break e;case 11:t=wc(null,t,r,e,n);break e;case 14:t=kc(null,t,r,Je(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),ya(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),Sc(e,t,r,i,n);case 3:e:{if(Wh(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,gh(e,t),hs(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qn(Error(E(423)),t),t=Cc(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(E(424)),t),t=Cc(e,t,r,n,i);break e}else for(be=Ft(t.stateNode.containerInfo.firstChild),_e=t,H=!0,tt=null,n=ph(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qn(),r===i){t=Ct(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return yh(t),e===null&&da(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,aa(r,i)?o=null:s!==null&&aa(r,s)&&(t.flags|=32),Uh(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&da(t),null;case 13:return $h(e,t,n);case 4:return jl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),wc(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,z(fs,r._currentValue),r._currentValue=o,s!==null)if(it(s.value,o)){if(s.children===i.children&&!Le.current){t=Ct(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ha(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ha(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,$n(t,n),i=Ge(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=Je(r,t.pendingProps),i=Je(r.type,i),kc(e,t,r,i,n);case 15:return Bh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Je(r,i),$i(e,t),t.tag=1,Ae(r)?(e=!0,ls(t)):e=!1,$n(t,n),Ih(t,r,i),ma(t,r,i,n),va(null,t,r,!0,e,n);case 19:return Hh(e,t,n);case 22:return zh(e,t,n)}throw Error(E(156,t.tag))};function ap(e,t){return Vd(e,t)}function Cy(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 $e(e,t,n,r){return new Cy(e,t,n,r)}function Bl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ty(e){if(typeof e=="function")return Bl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sl)return 11;if(e===ol)return 14}return 2}function Ut(e,t){var n=e.alternate;return n===null?(n=$e(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 Yi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Bl(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tn:return un(n.children,i,s,t);case il:o=8,i|=8;break;case Oo:return e=$e(12,n,t,i|2),e.elementType=Oo,e.lanes=s,e;case Bo:return e=$e(13,n,t,i),e.elementType=Bo,e.lanes=s,e;case zo:return e=$e(19,n,t,i),e.elementType=zo,e.lanes=s,e;case yd:return Os(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case md:o=10;break e;case gd:o=9;break e;case sl:o=11;break e;case ol:o=14;break e;case Mt:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=$e(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function un(e,t,n,r){return e=$e(7,e,r,t),e.lanes=n,e}function Os(e,t,n,r){return e=$e(22,e,r,t),e.elementType=yd,e.lanes=n,e.stateNode={isHidden:!1},e}function xo(e,t,n){return e=$e(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jy(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=Js(0),this.expirationTimes=Js(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Js(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,i,s,o,a,l){return e=new jy(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=$e(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tl(s),e}function Py(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fp)}catch(e){console.error(e)}}fp(),fd.exports=Fe;var Ly=fd.exports,bc=Ly;Io.createRoot=bc.createRoot,Io.hydrateRoot=bc.hydrateRoot;const Hl=S.createContext({});function Kl(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yl=typeof window<"u",dp=Yl?S.useLayoutEffect:S.useEffect,$s=S.createContext(null);function Gl(e,t){e.indexOf(t)===-1&&e.push(t)}function Ql(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Tt=(e,t,n)=>n>t?t:n{};const jt={},hp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function pp(e){return typeof e=="object"&&e!==null}const mp=e=>/^0[^.\s]+$/u.test(e);function Zl(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,Ay=(e,t)=>n=>t(e(n)),ci=(...e)=>e.reduce(Ay),Jr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ql{constructor(){this.subscriptions=[]}add(t){return Gl(this.subscriptions,t),()=>Ql(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,He=e=>e/1e3;function gp(e,t){return t?e*(1e3/t):0}const yp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ry=1e-7,Vy=12;function by(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=yp(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Ry&&++aby(s,0,1,e,n);return s=>s===0||s===1?s:yp(i(s),t,r)}const vp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xp=e=>t=>1-e(1-t),wp=fi(.33,1.53,.69,.99),Jl=xp(wp),kp=vp(Jl),Sp=e=>(e*=2)<1?.5*Jl(e):.5*(2-Math.pow(2,-10*(e-1))),eu=e=>1-Math.sin(Math.acos(e)),Cp=xp(eu),Tp=vp(eu),_y=fi(.42,0,1,1),Iy=fi(0,0,.58,1),jp=fi(.42,0,.58,1),Fy=e=>Array.isArray(e)&&typeof e[0]!="number",Pp=e=>Array.isArray(e)&&typeof e[0]=="number",Oy={linear:Ye,easeIn:_y,easeInOut:jp,easeOut:Iy,circIn:eu,circInOut:Tp,circOut:Cp,backIn:Jl,backInOut:kp,backOut:wp,anticipate:Sp},By=e=>typeof e=="string",_c=e=>{if(Pp(e)){Xl(e.length===4);const[t,n,r,i]=e;return fi(t,n,r,i)}else if(By(e))return Oy[e];return e},Li=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function zy(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,h=!1,d=!1)=>{const v=d&&i?n:r;return h&&o.add(c),v.has(c)||v.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const Uy=40;function Ep(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Li.reduce((g,w)=>(g[w]=zy(s),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:y,postRender:v}=o,x=()=>{const g=jt.useManualTiming?i.timestamp:performance.now();n=!1,jt.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,Uy),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),y.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},P=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Li.reduce((g,w)=>{const k=o[w];return g[w]=(C,j=!1,T=!1)=>(n||P(),k.schedule(C,j,T)),g},{}),cancel:g=>{for(let w=0;w(Gi===void 0&&De.set(de.isProcessing||jt.useManualTiming?de.timestamp:performance.now()),Gi),set:e=>{Gi=e,queueMicrotask(Wy)}},Np=e=>t=>typeof t=="string"&&t.startsWith(e),tu=Np("--"),$y=Np("var(--"),nu=e=>$y(e)?Hy.test(e.split("/*")[0].trim()):!1,Hy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ei={...sr,transform:e=>Tt(0,1,e)},Ai={...sr,default:1},Ar=e=>Math.round(e*1e5)/1e5,ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ky(e){return e==null}const Yy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iu=(e,t)=>n=>!!(typeof n=="string"&&Yy.test(n)&&n.startsWith(e)||t&&!Ky(n)&&Object.prototype.hasOwnProperty.call(n,t)),Mp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(ru);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Gy=e=>Tt(0,255,e),So={...sr,transform:e=>Math.round(Gy(e))},on={test:iu("rgb","red"),parse:Mp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+So.transform(e)+", "+So.transform(t)+", "+So.transform(n)+", "+Ar(ei.transform(r))+")"};function Qy(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Da={test:iu("#"),parse:Qy,transform:on.transform},di=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Nt=di("deg"),ft=di("%"),R=di("px"),Xy=di("vh"),Zy=di("vw"),Ic={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},bn={test:iu("hsl","hue"),parse:Mp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Ar(t))+", "+ft.transform(Ar(n))+", "+Ar(ei.transform(r))+")"},ie={test:e=>on.test(e)||Da.test(e)||bn.test(e),parse:e=>on.test(e)?on.parse(e):bn.test(e)?bn.parse(e):Da.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?on.transform(e):bn.transform(e),getAnimatableNone:e=>{const t=ie.parse(e);return t.alpha=0,ie.transform(t)}},qy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jy(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ru))==null?void 0:t.length)||0)+(((n=e.match(qy))==null?void 0:n.length)||0)>0}const Dp="number",Lp="color",e1="var",t1="var(",Fc="${}",n1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ti(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(n1,l=>(ie.test(l)?(r.color.push(s),i.push(Lp),n.push(ie.parse(l))):l.startsWith(t1)?(r.var.push(s),i.push(e1),n.push(l)):(r.number.push(s),i.push(Dp),n.push(parseFloat(l))),++s,Fc)).split(Fc);return{values:n,split:a,indexes:r,types:i}}function Ap(e){return ti(e).values}function Rp(e){const{split:t,types:n}=ti(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:ie.test(e)?ie.getAnimatableNone(e):e;function i1(e){const t=Ap(e);return Rp(e)(t.map(r1))}const Kt={test:Jy,parse:Ap,createTransformer:Rp,getAnimatableNone:i1};function Co(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Co(l,a,e+1/3),s=Co(l,a,e),o=Co(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Ss(e,t){return n=>n>0?t:e}const Q=(e,t,n)=>e+(t-e)*n,To=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},o1=[Da,on,bn],a1=e=>o1.find(t=>t.test(e));function Oc(e){const t=a1(e);if(!t)return!1;let n=t.parse(e);return t===bn&&(n=s1(n)),n}const Bc=(e,t)=>{const n=Oc(e),r=Oc(t);if(!n||!r)return Ss(e,t);const i={...n};return s=>(i.red=To(n.red,r.red,s),i.green=To(n.green,r.green,s),i.blue=To(n.blue,r.blue,s),i.alpha=Q(n.alpha,r.alpha,s),on.transform(i))},La=new Set(["none","hidden"]);function l1(e,t){return La.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function u1(e,t){return n=>Q(e,t,n)}function su(e){return typeof e=="number"?u1:typeof e=="string"?nu(e)?Ss:ie.test(e)?Bc:d1:Array.isArray(e)?Vp:typeof e=="object"?ie.test(e)?Bc:c1:Ss}function Vp(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>su(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function f1(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Kt.createTransformer(t),r=ti(e),i=ti(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?La.has(e)&&!i.values.length||La.has(t)&&!r.values.length?l1(e,t):ci(Vp(f1(r,i),i.values),n):Ss(e,t)};function bp(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Q(e,t,n):su(e)(e,t)}const h1=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>K.update(t,n),stop:()=>Ht(t),now:()=>de.isProcessing?de.timestamp:De.now()}},_p=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=Cs?1/0:t}function p1(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ou(r),Cs);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:He(i)}}const m1=5;function Ip(e,t,n){const r=Math.max(t-m1,0);return gp(n-e(r),t-r)}const ee={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jo=.001;function g1({duration:e=ee.duration,bounce:t=ee.bounce,velocity:n=ee.velocity,mass:r=ee.mass}){let i,s,o=1-t;o=Tt(ee.minDamping,ee.maxDamping,o),e=Tt(ee.minDuration,ee.maxDuration,He(e)),o<1?(i=u=>{const c=u*o,h=c*e,d=c-n,y=Aa(u,o),v=Math.exp(-h);return jo-d/y*v},s=u=>{const h=u*o*e,d=h*n+n,y=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-h),x=Aa(Math.pow(u,2),o);return(-i(u)+jo>0?-1:1)*((d-y)*v)/x}):(i=u=>{const c=Math.exp(-u*e),h=(u-n)*e+1;return-jo+c*h},s=u=>{const c=Math.exp(-u*e),h=(n-u)*(e*e);return c*h});const a=5/e,l=v1(i,s,a);if(e=ct(e),isNaN(l))return{stiffness:ee.stiffness,damping:ee.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const y1=12;function v1(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function k1(e){let t={velocity:ee.velocity,stiffness:ee.stiffness,damping:ee.damping,mass:ee.mass,isResolvedFromDuration:!1,...e};if(!zc(e,w1)&&zc(e,x1))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ee.mass,stiffness:i,damping:s}}else{const n=g1(e);t={...t,...n,mass:ee.mass},t.isResolvedFromDuration=!0}return t}function Ts(e=ee.visualDuration,t=ee.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:y}=k1({...n,velocity:-He(n.velocity||0)}),v=d||0,x=u/(2*Math.sqrt(l*c)),P=o-s,m=He(Math.sqrt(l/c)),p=Math.abs(P)<5;r||(r=p?ee.restSpeed.granular:ee.restSpeed.default),i||(i=p?ee.restDelta.granular:ee.restDelta.default);let g;if(x<1){const k=Aa(m,x);g=C=>{const j=Math.exp(-x*m*C);return o-j*((v+x*m*P)/k*Math.sin(k*C)+P*Math.cos(k*C))}}else if(x===1)g=k=>o-Math.exp(-m*k)*(P+(v+m*P)*k);else{const k=m*Math.sqrt(x*x-1);g=C=>{const j=Math.exp(-x*m*C),T=Math.min(k*C,300);return o-j*((v+x*m*P)*Math.sinh(T)+k*P*Math.cosh(T))/k}}const w={calculatedDuration:y&&h||null,next:k=>{const C=g(k);if(y)a.done=k>=h;else{let j=k===0?v:0;x<1&&(j=k===0?ct(v):Ip(g,k,C));const T=Math.abs(j)<=r,b=Math.abs(o-C)<=i;a.done=T&&b}return a.value=a.done?o:C,a},toString:()=>{const k=Math.min(ou(w),Cs),C=_p(j=>w.next(k*j).value,k,30);return k+"ms "+C},toTransition:()=>{}};return w}Ts.applyToOptions=e=>{const t=p1(e,100,Ts);return e.ease=t.ease,e.duration=ct(t.duration),e.type="keyframes",e};function Ra({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=e[0],d={done:!1,value:h},y=T=>a!==void 0&&Tl,v=T=>a===void 0?l:l===void 0||Math.abs(a-T)-x*Math.exp(-T/r),g=T=>m+p(T),w=T=>{const b=p(T),D=g(T);d.done=Math.abs(b)<=u,d.value=d.done?m:D};let k,C;const j=T=>{y(d.value)&&(k=T,C=Ts({keyframes:[d.value,v(d.value)],velocity:Ip(g,T,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:T=>{let b=!1;return!C&&k===void 0&&(b=!0,w(T),j(T)),k!==void 0&&T>=k?C.next(T-k):(!b&&w(T),d)}}}function S1(e,t,n){const r=[],i=n||jt.mix||bp,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=S1(t,r,i),l=a.length,u=c=>{if(o&&c1)for(;hu(Tt(e[0],e[s-1],c)):u}function T1(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Jr(0,t,r);e.push(Q(n,1,i))}}function j1(e){const t=[0];return T1(t,e.length-1),t}function P1(e,t){return e.map(n=>n*t)}function E1(e,t){return e.map(()=>t||jp).splice(0,e.length-1)}function Rr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Fy(r)?r.map(_c):_c(r),s={done:!1,value:t[0]},o=P1(n&&n.length===t.length?n:j1(t),e),a=C1(o,t,{ease:Array.isArray(i)?i:E1(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const N1=e=>e!==null;function au(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(N1),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const M1={decay:Ra,inertia:Ra,tween:Rr,keyframes:Rr,spring:Ts};function Fp(e){typeof e.type=="string"&&(e.type=M1[e.type])}class lu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const D1=e=>e/100;class uu extends lu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==De.now()&&this.tick(De.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Fp(t);const{type:n=Rr,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Rr;l!==Rr&&typeof a[0]!="number"&&(this.mixKeyframes=ci(D1,bp(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=ou(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:d,repeatDelay:y,type:v,onUpdate:x,finalKeyframe:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,w=r;if(h){const T=Math.min(this.currentTime,i)/a;let b=Math.floor(T),D=T%1;!D&&T>=1&&(D=1),D===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(d==="reverse"?(D=1-D,y&&(D-=y/a)):d==="mirror"&&(w=o)),g=Tt(0,1,D)*a}const k=p?{done:!1,value:c[0]}:w.next(g);s&&(k.value=s(k.value));let{done:C}=k;!p&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return j&&v!==Ra&&(k.value=au(c,this.options,P,this.speed)),x&&x(k.value),j&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return He(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+He(t)}get time(){return He(this.currentTime)}set time(t){var n;t=ct(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(De.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=He(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=h1,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(De.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function L1(e){for(let t=1;te*180/Math.PI,Va=e=>{const t=an(Math.atan2(e[1],e[0]));return ba(t)},A1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Va,rotateZ:Va,skewX:e=>an(Math.atan(e[1])),skewY:e=>an(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ba=e=>(e=e%360,e<0&&(e+=360),e),Uc=Va,Wc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$c=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),R1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wc,scaleY:$c,scale:e=>(Wc(e)+$c(e))/2,rotateX:e=>ba(an(Math.atan2(e[6],e[5]))),rotateY:e=>ba(an(Math.atan2(-e[2],e[0]))),rotateZ:Uc,rotate:Uc,skewX:e=>an(Math.atan(e[4])),skewY:e=>an(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _a(e){return e.includes("scale")?1:0}function Ia(e,t){if(!e||e==="none")return _a(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=R1,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=A1,i=a}if(!i)return _a(t);const s=r[t],o=i[1].split(",").map(b1);return typeof s=="function"?s(o):o[s]}const V1=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ia(n,t)};function b1(e){return parseFloat(e.trim())}const or=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ar=new Set(or),Hc=e=>e===sr||e===R,_1=new Set(["x","y","z"]),I1=or.filter(e=>!_1.has(e));function F1(e){const t=[];return I1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ia(t,"x"),y:(e,{transform:t})=>Ia(t,"y")};cn.translateX=cn.x;cn.translateY=cn.y;const fn=new Set;let Fa=!1,Oa=!1,Ba=!1;function Op(){if(Oa){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=F1(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Oa=!1,Fa=!1,fn.forEach(e=>e.complete(Ba)),fn.clear()}function Bp(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Oa=!0)})}function O1(){Ba=!0,Bp(),Op(),Ba=!1}class cu{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(fn.add(this),Fa||(Fa=!0,K.read(Bp),K.resolveKeyframes(Op))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}L1(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fn.delete(this)}cancel(){this.state==="scheduled"&&(fn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const B1=e=>e.startsWith("--");function z1(e,t,n){B1(t)?e.style.setProperty(t,n):e.style[t]=n}const U1=Zl(()=>window.ScrollTimeline!==void 0),W1={};function $1(e,t){const n=Zl(e);return()=>W1[t]??n()}const zp=$1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Sr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Kc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Sr([0,.65,.55,1]),circOut:Sr([.55,0,1,.45]),backIn:Sr([.31,.01,.66,-.59]),backOut:Sr([.33,1.53,.69,.99])};function Up(e,t){if(e)return typeof e=="function"?zp()?_p(e,t):"ease-out":Pp(e)?Sr(e):Array.isArray(e)?e.map(n=>Up(n,t)||Kc.easeOut):Kc[e]}function H1(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const h=Up(a,i);Array.isArray(h)&&(c.easing=h);const d={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function Wp(e){return typeof e=="function"&&"applyToOptions"in e}function K1({type:e,...t}){return Wp(e)&&zp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Y1 extends lu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Xl(typeof t.type!="string");const u=K1(t);this.animation=H1(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=au(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):z1(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return He(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+He(t)}get time(){return He(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ct(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&U1()?(this.animation.timeline=t,Ye):n(this)}}const $p={anticipate:Sp,backInOut:kp,circInOut:Tp};function G1(e){return e in $p}function Q1(e){typeof e.ease=="string"&&G1(e.ease)&&(e.ease=$p[e.ease])}const Yc=10;class X1 extends Y1{constructor(t){Q1(t),Fp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new uu({...o,autoplay:!1}),l=ct(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Yc).value,a.sample(l).value,Yc),a.stop()}}const Gc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Kt.test(e)||e==="0")&&!e.startsWith("url("));function Z1(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function tv(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ev()&&n&&J1.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const nv=40;class rv extends lu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){var v;super(),this.stop=()=>{var x,P;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(P=this.keyframeResolver)==null||P.cancel()},this.createdAt=De.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...h},y=(c==null?void 0:c.KeyframeResolver)||cu;this.keyframeResolver=new y(a,(x,P,m)=>this.onKeyframesResolved(x,P,d,!m),l,u,c),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=De.now(),q1(t,s,o,a)||((jt.instantAnimations||!l)&&(c==null||c(au(t,r,n))),t[0]=t[t.length-1],za(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>nv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!u&&tv(d)?new X1({...d,element:d.motionValue.owner.current}):new uu(d);y.finished.then(()=>this.notifyFinished()).catch(Ye),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),O1()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const iv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sv(e){const t=iv.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Hp(e,t,n=1){const[r,i]=sv(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return hp(o)?parseFloat(o):o}return nu(i)?Hp(i,t,n+1):i}function fu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Kp=new Set(["width","height","top","left","right","bottom",...or]),ov={test:e=>e==="auto",parse:e=>e},Yp=e=>t=>t.test(e),Gp=[sr,R,ft,Nt,Zy,Xy,ov],Qc=e=>Gp.find(Yp(e));function av(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||mp(e):!0}const lv=new Set(["brightness","contrast","saturate","opacity"]);function uv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ru)||[];if(!r)return e;const i=n.replace(r,"");let s=lv.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const cv=/\b([a-z-]*)\(.*?\)/gu,Ua={...Kt,getAnimatableNone:e=>{const t=e.match(cv);return t?t.map(uv).join(" "):e}},Xc={...sr,transform:Math.round},fv={rotate:Nt,rotateX:Nt,rotateY:Nt,rotateZ:Nt,scale:Ai,scaleX:Ai,scaleY:Ai,scaleZ:Ai,skew:Nt,skewX:Nt,skewY:Nt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:ei,originX:Ic,originY:Ic,originZ:R},du={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R,...fv,zIndex:Xc,fillOpacity:ei,strokeOpacity:ei,numOctaves:Xc},dv={...du,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:Ua,WebkitFilter:Ua},Qp=e=>dv[e];function Xp(e,t){let n=Qp(e);return n!==Ua&&(n=Kt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hv=new Set(["auto","none","0"]);function pv(e,t,n){let r=0,i;for(;r{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function gv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Zp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function qp(e){return pp(e)&&"offsetHeight"in e}const Zc=30,yv=e=>!isNaN(parseFloat(e));class vv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=De.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=De.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ql);const r=this.events[t].add(n);return t==="change"?()=>{r(),K.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=De.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zc);return gp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function er(e,t){return new vv(e,t)}const{schedule:hu}=Ep(queueMicrotask,!1),qe={x:!1,y:!1};function Jp(){return qe.x||qe.y}function xv(e){return e==="x"||e==="y"?qe[e]?null:(qe[e]=!0,()=>{qe[e]=!1}):qe.x||qe.y?null:(qe.x=qe.y=!0,()=>{qe.x=qe.y=!1})}function em(e,t){const n=gv(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function qc(e){return!(e.pointerType==="touch"||Jp())}function wv(e,t,n={}){const[r,i,s]=em(e,n),o=a=>{if(!qc(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=h=>{qc(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const tm=(e,t)=>t?e===t?!0:tm(e,t.parentElement):!1,pu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,kv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sv(e){return kv.has(e.tagName)||e.tabIndex!==-1}const Qi=new WeakSet;function Jc(e){return t=>{t.key==="Enter"&&e(t)}}function Po(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Cv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Jc(()=>{if(Qi.has(n))return;Po(n,"down");const i=Jc(()=>{Po(n,"up")}),s=()=>Po(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ef(e){return pu(e)&&!Jp()}function Tv(e,t,n={}){const[r,i,s]=em(e,n),o=a=>{const l=a.currentTarget;if(!ef(a))return;Qi.add(l);const u=t(l,a),c=(y,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),Qi.has(l)&&Qi.delete(l),ef(y)&&typeof u=="function"&&u(y,{success:v})},h=y=>{c(y,l===window||l===document||n.useGlobalTarget||tm(l,y.target))},d=y=>{c(y,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),qp(a)&&(a.addEventListener("focus",u=>Cv(u,i)),!Sv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function nm(e){return pp(e)&&"ownerSVGElement"in e}function jv(e){return nm(e)&&e.tagName==="svg"}const we=e=>!!(e&&e.getVelocity),Pv=[...Gp,ie,Kt],Ev=e=>Pv.find(Yp(e)),mu=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function tf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nv(...e){return t=>{let n=!1;const r=e.map(i=>{const s=tf(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{const{width:u,height:c,top:h,left:d,right:y}=o.current;if(t||!s.current||!u||!c)return;const v=n==="left"?`left: ${d}`:`right: ${y}`;s.current.dataset.motionPopId=i;const x=document.createElement("style");a&&(x.nonce=a);const P=r??document.head;return P.appendChild(x),x.sheet&&x.sheet.insertRule(` + [data-motion-pop-id="${i}"] { + position: absolute !important; + width: ${u}px !important; + height: ${c}px !important; + ${v}px !important; + top: ${h}px !important; + } + `),()=>{P.contains(x)&&P.removeChild(x)}},[t]),f.jsx(Dv,{isPresent:t,childRef:s,sizeRef:o,children:S.cloneElement(e,{ref:l})})}const Av=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=Kl(Rv),c=S.useId();let h=!0,d=S.useMemo(()=>(h=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:y=>{u.set(y,!0);for(const v of u.values())if(!v)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return s&&h&&(d={...d}),S.useMemo(()=>{u.forEach((y,v)=>u.set(v,!1))},[n]),S.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=f.jsx(Lv,{isPresent:n,anchorX:a,root:l,children:e})),f.jsx($s.Provider,{value:d,children:e})};function Rv(){return new Map}function rm(e=!0){const t=S.useContext($s);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{if(e)return i(s)},[e]);const o=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Ri=e=>e.key||"";function nf(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const rf=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,c]=rm(o),h=S.useMemo(()=>nf(e),[e]),d=o&&!u?[]:h.map(Ri),y=S.useRef(!0),v=S.useRef(h),x=Kl(()=>new Map),[P,m]=S.useState(h),[p,g]=S.useState(h);dp(()=>{y.current=!1,v.current=h;for(let C=0;C{const j=Ri(C),T=o&&!u?!1:h===p||d.includes(j),b=()=>{if(x.has(j))x.set(j,!0);else return;let D=!0;x.forEach(q=>{q||(D=!1)}),D&&(k==null||k(),g(v.current),o&&(c==null||c()),r&&r())};return f.jsx(Av,{isPresent:T,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:T?void 0:b,anchorX:a,children:C},j)})})},im=S.createContext({strict:!1}),sf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},tr={};for(const e in sf)tr[e]={isEnabled:t=>sf[e].some(n=>!!t[n])};function Vv(e){for(const t in e)tr[t]={...tr[t],...e[t]}}const bv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function js(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bv.has(e)}let sm=e=>!js(e);function _v(e){typeof e=="function"&&(sm=t=>t.startsWith("on")?!js(t):e(t))}try{_v(require("@emotion/is-prop-valid").default)}catch{}function Iv(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(sm(i)||n===!0&&js(i)||!t&&!js(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Hs=S.createContext({});function Ks(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ni(e){return typeof e=="string"||Array.isArray(e)}const gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yu=["initial",...gu];function Ys(e){return Ks(e.animate)||yu.some(t=>ni(e[t]))}function om(e){return!!(Ys(e)||e.variants)}function Fv(e,t){if(Ys(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ni(n)?n:void 0,animate:ni(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ov(e){const{initial:t,animate:n}=Fv(e,S.useContext(Hs));return S.useMemo(()=>({initial:t,animate:n}),[of(t),of(n)])}function of(e){return Array.isArray(e)?e.join(" "):e}const ri={};function Bv(e){for(const t in e)ri[t]=e[t],tu(t)&&(ri[t].isCSSVariable=!0)}function am(e,{layout:t,layoutId:n}){return ar.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ri[e]||e==="opacity")}const zv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Uv=or.length;function Wv(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function lm(e,t,n){for(const r in t)!we(t[r])&&!am(r,n)&&(e[r]=t[r])}function $v({transformTemplate:e},t){return S.useMemo(()=>{const n=xu();return vu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Hv(e,t){const n=e.style||{},r={};return lm(r,n,e),Object.assign(r,$v(e,t)),r}function Kv(e,t){const n={},r=Hv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Yv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gv={offset:"strokeDashoffset",array:"strokeDasharray"};function Qv(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Yv:Gv;e[s.offset]=R.transform(-r);const o=R.transform(t),a=R.transform(n);e[s.array]=`${o} ${a}`}function um(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(vu(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:d}=e;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&Qv(h,i,s,o,!1)}const cm=()=>({...xu(),attrs:{}}),fm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xv(e,t,n,r){const i=S.useMemo(()=>{const s=cm();return um(s,t,fm(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};lm(s,e.style,e),i.style={...s,...i.style}}return i}const Zv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wu(e){return typeof e!="string"||e.includes("-")?!1:!!(Zv.indexOf(e)>-1||/[A-Z]/u.test(e))}function qv(e,t,n,{latestValues:r},i,s=!1){const a=(wu(e)?Xv:Kv)(t,r,i,e),l=Iv(t,typeof e=="string",s),u=e!==S.Fragment?{...l,...a,ref:n}:{},{children:c}=t,h=S.useMemo(()=>we(c)?c.get():c,[c]);return S.createElement(e,{...u,children:h})}function af(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ku(e,t,n,r){if(typeof t=="function"){const[i,s]=af(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=af(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Xi(e){return we(e)?e.get():e}function Jv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ex(n,r,i,e),renderState:t()}}function ex(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=Xi(s[d]);let{initial:o,animate:a}=e;const l=Ys(e),u=om(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!Ks(h)){const d=Array.isArray(h)?h:[h];for(let y=0;y(t,n)=>{const r=S.useContext(Hs),i=S.useContext($s),s=()=>Jv(e,t,r,i);return n?s():Kl(s)};function Su(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(we(r[o])||t.style&&we(t.style[o])||am(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const tx=dm({scrapeMotionValuesFromProps:Su,createRenderState:xu});function hm(e,t,n){const r=Su(e,t,n);for(const i in e)if(we(e[i])||we(t[i])){const s=or.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const nx=dm({scrapeMotionValuesFromProps:hm,createRenderState:cm}),rx=Symbol.for("motionComponentSymbol");function _n(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ix(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_n(n)&&(n.current=r))},[t])}const Cu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sx="framerAppearId",pm="data-"+Cu(sx),mm=S.createContext({});function ox(e,t,n,r,i){var x,P;const{visualElement:s}=S.useContext(Hs),o=S.useContext(im),a=S.useContext($s),l=S.useContext(mu).reducedMotion,u=S.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,h=S.useContext(mm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&ax(u.current,n,i,h);const d=S.useRef(!1);S.useInsertionEffect(()=>{c&&d.current&&c.update(n,a)});const y=n[pm],v=S.useRef(!!y&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,y))&&((P=window.MotionHasOptimisedAnimation)==null?void 0:P.call(window,y)));return dp(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),v.current&&c.animationState&&c.animationState.animateChanges())}),S.useEffect(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,y)}),v.current=!1),c.enteringChildren=void 0)}),c}function ax(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gm(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&_n(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function gm(e){if(e)return e.options.allowProjection!==!1?e.projection:gm(e.parent)}function Eo(e,{forwardMotionProps:t=!1}={},n,r){n&&Vv(n);const i=wu(e)?nx:tx;function s(a,l){let u;const c={...S.useContext(mu),...a,layoutId:lx(a)},{isStatic:h}=c,d=Ov(a),y=i(a,h);if(!h&&Yl){ux();const v=cx(c);u=v.MeasureLayout,d.visualElement=ox(e,y,c,r,v.ProjectionNode)}return f.jsxs(Hs.Provider,{value:d,children:[u&&d.visualElement?f.jsx(u,{visualElement:d.visualElement,...c}):null,qv(e,a,ix(y,d.visualElement,l),y,h,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=S.forwardRef(s);return o[rx]=e,o}function lx({layoutId:e}){const t=S.useContext(Hl).id;return t&&e!==void 0?t+"-"+e:e}function ux(e,t){S.useContext(im).strict}function cx(e){const{drag:t,layout:n}=tr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fx(e,t){if(typeof Proxy>"u")return Eo;const n=new Map,r=(s,o)=>Eo(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Eo(o,void 0,e,t)),n.get(o))})}function ym({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function dx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hx(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function No(e){return e===void 0||e===1}function Wa({scale:e,scaleX:t,scaleY:n}){return!No(e)||!No(t)||!No(n)}function tn(e){return Wa(e)||vm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vm(e){return lf(e.x)||lf(e.y)}function lf(e){return e&&e!=="0%"}function Ps(e,t,n){const r=e-n,i=t*r;return n+i}function uf(e,t,n,r,i){return i!==void 0&&(e=Ps(e,i,r)),Ps(e,n,r)+t}function $a(e,t=0,n=1,r,i){e.min=uf(e.min,t,n,r,i),e.max=uf(e.max,t,n,r,i)}function xm(e,{x:t,y:n}){$a(e.x,t.translate,t.scale,t.originPoint),$a(e.y,n.translate,n.scale,n.originPoint)}const cf=.999999999999,ff=1.0000000000001;function px(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;acf&&(t.x=1),t.ycf&&(t.y=1)}function In(e,t){e.min=e.min+t,e.max=e.max+t}function df(e,t,n,r,i=.5){const s=Q(e.min,e.max,i);$a(e,t,n,s,r)}function Fn(e,t){df(e.x,t.x,t.scaleX,t.scale,t.originX),df(e.y,t.y,t.scaleY,t.scale,t.originY)}function wm(e,t){return ym(hx(e.getBoundingClientRect(),t))}function mx(e,t,n){const r=wm(e,n),{scroll:i}=t;return i&&(In(r.x,i.offset.x),In(r.y,i.offset.y)),r}const hf=()=>({translate:0,scale:1,origin:0,originPoint:0}),On=()=>({x:hf(),y:hf()}),pf=()=>({min:0,max:0}),oe=()=>({x:pf(),y:pf()}),Ha={current:null},km={current:!1};function gx(){if(km.current=!0,!!Yl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ha.current=e.matches;e.addEventListener("change",t),t()}else Ha.current=!1}const yx=new WeakMap;function vx(e,t,n){for(const r in t){const i=t[r],s=n[r];if(we(i))e.addValue(r,i);else if(we(s))e.addValue(r,er(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,er(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xx{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=cu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=De.now();this.renderScheduledAtthis.bindToMotionValue(i,r)),km.current||gx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ha.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ht(this.notifyUpdate),Ht(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ar.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&K.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in tr){const n=tr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):oe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=er(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(hp(r)||mp(r))?r=parseFloat(r):!Ev(r)&&Kt.test(n)&&(r=Xp(t,n)),this.setBaseTarget(t,we(r)?r.get():r)),we(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=ku(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!we(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ql),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){hu.render(this.render)}}class Sm extends xx{constructor(){super(...arguments),this.KeyframeResolver=mv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Cm(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function wx(e){return window.getComputedStyle(e)}class kx extends Sm{constructor(){super(...arguments),this.type="html",this.renderInstance=Cm}readValueFromInstance(t,n){var r;if(ar.has(n))return(r=this.projection)!=null&&r.isProjecting?_a(n):V1(t,n);{const i=wx(t),s=(tu(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wm(t,n)}build(t,n,r){vu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Su(t,n,r)}}const Tm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Sx(e,t,n,r){Cm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Tm.has(i)?i:Cu(i),t.attrs[i])}class Cx extends Sm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=oe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ar.has(n)){const r=Qp(n);return r&&r.default||0}return n=Tm.has(n)?n:Cu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hm(t,n,r)}build(t,n,r){um(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Sx(t,n,r,i)}mount(t){this.isSVGTag=fm(t.tagName),super.mount(t)}}const Tx=(e,t)=>wu(e)?new Cx(t):new kx(t,{allowProjection:e!==S.Fragment});function Kn(e,t,n){const r=e.getProps();return ku(r,t,n!==void 0?n:r.custom,e)}const Ka=e=>Array.isArray(e);function jx(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,er(n))}function Px(e){return Ka(e)?e[e.length-1]||0:e}function Ex(e,t){const n=Kn(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Px(s[o]);jx(e,o,a)}}function Nx(e){return!!(we(e)&&e.add)}function Ya(e,t){const n=e.getValue("willChange");if(Nx(n))return n.add(t);if(!n&&jt.WillChange){const r=new jt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function jm(e){return e.props[pm]}const Mx=e=>e!==null;function Dx(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Mx),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Lx={type:"spring",stiffness:500,damping:25,restSpeed:10},Ax=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Rx={type:"keyframes",duration:.8},Vx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bx=(e,{keyframes:t})=>t.length>2?Rx:ar.has(e)?e.startsWith("scale")?Ax(t[1]):Lx:Vx;function _x({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Tu=(e,t,n,r={},i,s)=>o=>{const a=fu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ct(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};_x(a)||Object.assign(c,bx(e,c)),c.duration&&(c.duration=ct(c.duration)),c.repeatDelay&&(c.repeatDelay=ct(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(za(c),c.delay===0&&(h=!0)),(jt.instantAnimations||jt.skipAnimations)&&(h=!0,za(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!s&&t.get()!==void 0){const d=Dx(c.keyframes,a);if(d!==void 0){K.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new uu(c):new rv(c)};function Ix({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Pm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const h=e.getValue(c,e.latestValues[c]??null),d=a[c];if(d===void 0||u&&Ix(u,c))continue;const y={delay:n,...fu(s||{},c)},v=h.get();if(v!==void 0&&!h.isAnimating&&!Array.isArray(d)&&d===v&&!y.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const m=jm(e);if(m){const p=window.MotionHandoffAnimation(m,c,K);p!==null&&(y.startTime=p,x=!0)}}Ya(e,c),h.start(Tu(c,h,d,e.shouldReduceMotion&&Kp.has(c)?{type:!1}:y,e,x));const P=h.animation;P&&l.push(P)}return o&&Promise.all(l).then(()=>{K.update(()=>{o&&Ex(e,o)})}),l}function Em(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Ga(e,t,n={}){var l;const r=Kn(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Pm(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:d}=i;return Fx(e,t,u,c,h,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function Fx(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ga(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Em(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Ox(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Ga(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Ga(e,t,n);else{const i=typeof t=="function"?Kn(e,t,n.custom):t;r=Promise.all(Pm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Nm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Ox(e,n,r)))}function $x(e){let t=Wx(e),n=gf(),r=!0;const i=l=>(u,c)=>{var d;const h=Kn(e,c,l==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:y,transitionEnd:v,...x}=h;u={...u,...x,...v}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=Mm(e.parent)||{},h=[],d=new Set;let y={},v=1/0;for(let P=0;Pv&&w,b=!1;const D=Array.isArray(g)?g:[g];let q=D.reduce(i(m),{});k===!1&&(q={});const{prevResolvedValues:Be={}}=p,dt={...Be,...q},J=Y=>{T=!0,d.has(Y)&&(b=!0,d.delete(Y)),p.needsAnimating[Y]=!0;const N=e.getValue(Y);N&&(N.liveStyle=!1)};for(const Y in dt){const N=q[Y],A=Be[Y];if(y.hasOwnProperty(Y))continue;let V=!1;Ka(N)&&Ka(A)?V=!Nm(N,A):V=N!==A,V?N!=null?J(Y):d.add(Y):N!==void 0&&d.has(Y)?J(Y):p.protectedKeys[Y]=!0}p.prevProp=g,p.prevResolvedValues=q,p.isActive&&(y={...y,...q}),r&&e.blockInitialAnimation&&(T=!1);const Se=C&&j;T&&(!Se||b)&&h.push(...D.map(Y=>{const N={type:m};if(typeof Y=="string"&&r&&!Se&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,V=Kn(A,Y);if(A.enteringChildren&&V){const{delayChildren:U}=V.transition||{};N.delay=Em(A.enteringChildren,e,U)}}return{animation:Y,options:N}}))}if(d.size){const P={};if(typeof u.initial!="boolean"){const m=Kn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(P.transition=m.transition)}d.forEach(m=>{const p=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),P[m]=p??null}),h.push({animation:P})}let x=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function a(l,u){var h;if(n[l].isActive===u)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(d=>{var y;return(y=d.animationState)==null?void 0:y.setActive(l,u)}),n[l].isActive=u;const c=o(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=gf()}}}function Hx(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Nm(t,e):!1}function qt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gf(){return{animate:qt(!0),whileInView:qt(),whileHover:qt(),whileTap:qt(),whileDrag:qt(),whileFocus:qt(),exit:qt()}}class Xt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Kx extends Xt{constructor(t){super(t),t.animationState||(t.animationState=$x(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ks(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Yx=0;class Gx extends Xt{constructor(){super(...arguments),this.id=Yx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Qx={animation:{Feature:Kx},exit:{Feature:Gx}};function ii(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function hi(e){return{point:{x:e.pageX,y:e.pageY}}}const Xx=e=>t=>pu(t)&&e(t,hi(t));function Vr(e,t,n,r){return ii(e,t,Xx(n),r)}const Dm=1e-4,Zx=1-Dm,qx=1+Dm,Lm=.01,Jx=0-Lm,e2=0+Lm;function Te(e){return e.max-e.min}function t2(e,t,n){return Math.abs(e-t)<=n}function yf(e,t,n,r=.5){e.origin=r,e.originPoint=Q(t.min,t.max,e.origin),e.scale=Te(n)/Te(t),e.translate=Q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Zx&&e.scale<=qx||isNaN(e.scale))&&(e.scale=1),(e.translate>=Jx&&e.translate<=e2||isNaN(e.translate))&&(e.translate=0)}function br(e,t,n,r){yf(e.x,t.x,n.x,r?r.originX:void 0),yf(e.y,t.y,n.y,r?r.originY:void 0)}function vf(e,t,n){e.min=n.min+t.min,e.max=e.min+Te(t)}function n2(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function xf(e,t,n){e.min=t.min-n.min,e.max=e.min+Te(t)}function Es(e,t,n){xf(e.x,t.x,n.x),xf(e.y,t.y,n.y)}function ze(e){return[e("x"),e("y")]}const Am=({current:e})=>e?e.ownerDocument.defaultView:null,wf=(e,t)=>Math.abs(e-t);function r2(e,t){const n=wf(e.x,t.x),r=wf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Rm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Do(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=r2(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;const{point:x}=d,{timestamp:P}=de;this.history.push({...x,timestamp:P});const{onStart:m,onMove:p}=this.handlers;y||(m&&m(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,y)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Mo(y,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(d,y)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Do(d.type==="pointercancel"?this.lastMoveEventInfo:Mo(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,m),x&&x(d,m)},!pu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=hi(t),l=Mo(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=de;this.history=[{...u,timestamp:c}];const{onSessionStart:h}=n;h&&h(t,Do(l,this.history)),this.removeListeners=ci(Vr(this.contextWindow,"pointermove",this.handlePointerMove),Vr(this.contextWindow,"pointerup",this.handlePointerUp),Vr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ht(this.updatePoint)}}function Mo(e,t){return t?{point:t(e.point)}:e}function kf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Do({point:e},t){return{point:e,delta:kf(e,Vm(t)),offset:kf(e,i2(t)),velocity:s2(t,.1)}}function i2(e){return e[0]}function Vm(e){return e[e.length-1]}function s2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Vm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ct(t)));)n--;if(!r)return{x:0,y:0};const s=He(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function o2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Q(n,e,r.max):Math.min(e,n)),e}function Sf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function a2(e,{top:t,left:n,bottom:r,right:i}){return{x:Sf(e.x,n,i),y:Sf(e.y,t,r)}}function Cf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Jr(t.min,t.max-r,e.min):r>i&&(n=Jr(e.min,e.max-i,t.min)),Tt(0,1,n)}function c2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qa=.35;function f2(e=Qa){return e===!1?e=0:e===!0&&(e=Qa),{x:Tf(e,"left","right"),y:Tf(e,"top","bottom")}}function Tf(e,t,n){return{min:jf(e,t),max:jf(e,n)}}function jf(e,t){return typeof e=="number"?e:e[t]||0}const d2=new WeakMap;class h2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=oe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(hi(h).point)},o=(h,d)=>{const{drag:y,dragPropagation:v,onDragStart:x}=this.getProps();if(y&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xv(y),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(m=>{let p=this.getAxisMotionValue(m).get()||0;if(ft.test(p)){const{projection:g}=this.visualElement;if(g&&g.layout){const w=g.layout.layoutBox[m];w&&(p=Te(w)*(parseFloat(p)/100))}}this.originPoint[m]=p}),x&&K.postRender(()=>x(h,d)),Ya(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:y,dragDirectionLock:v,onDirectionLock:x,onDrag:P}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:m}=d;if(v&&this.currentDirection===null){this.currentDirection=p2(m),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",d.point,m),this.updateAxis("y",d.point,m),this.visualElement.render(),P&&P(h,d)},l=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>ze(h=>{var d;return this.getAnimationState(h)==="paused"&&((d=this.getAxisMotionValue(h).animation)==null?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Rm(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Am(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&K.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Vi(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=o2(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&_n(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=a2(r.layoutBox,t):this.constraints=!1,this.elastic=f2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ze(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=c2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_n(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=mx(r,i.root,this.visualElement.getTransformPagePoint());let o=l2(i.layout.layoutBox,s);if(n){const a=n(dx(o));this.hasMutatedConstraints=!!a,a&&(o=ym(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ze(c=>{if(!Vi(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const d=i?200:1e6,y=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ya(this.visualElement,t),r.start(Tu(t,r,0,n,this.visualElement,!1))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!Vi(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Q(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_n(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ze(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=u2({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(o=>{if(!Vi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Q(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;d2.set(this.visualElement,this);const t=this.visualElement.current,n=Vr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_n(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),K.read(r);const o=ii(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ze(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Qa,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Vi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function p2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class m2 extends Xt{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new h2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}unmount(){this.removeGroupControls(),this.removeListeners()}}const Pf=e=>(t,n)=>{e&&K.postRender(()=>e(t,n))};class g2 extends Xt{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new Rm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Am(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Pf(t),onStart:Pf(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&K.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Vr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ef(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=Ef(e,t.target.x),r=Ef(e,t.target.y);return`${n}% ${r}%`}},y2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Kt.parse(e);if(i.length>5)return r;const s=Kt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Q(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let Lo=!1;class v2 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Bv(x2),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Lo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Zi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Lo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||K.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),hu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Lo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bm(e){const[t,n]=rm(),r=S.useContext(Hl);return f.jsx(v2,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(mm),isPresent:t,safeToRemove:n})}const x2={borderRadius:{...yr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yr,borderTopRightRadius:yr,borderBottomLeftRadius:yr,borderBottomRightRadius:yr,boxShadow:y2};function w2(e,t,n){const r=we(e)?e:er(e);return r.start(Tu("",r,t,n)),r.animation}const k2=(e,t)=>e.depth-t.depth;class S2{constructor(){this.children=[],this.isDirty=!1}add(t){Gl(this.children,t),this.isDirty=!0}remove(t){Ql(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(k2),this.isDirty=!1,this.children.forEach(t)}}function C2(e,t){const n=De.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ht(r),e(s-t))};return K.setup(r,!0),()=>Ht(r)}const _m=["TopLeft","TopRight","BottomLeft","BottomRight"],T2=_m.length,Nf=e=>typeof e=="string"?parseFloat(e):e,Mf=e=>typeof e=="number"||R.test(e);function j2(e,t,n,r,i,s){i?(e.opacity=Q(0,n.opacity??1,P2(r)),e.opacityExit=Q(t.opacity??1,0,E2(r))):s&&(e.opacity=Q(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(Jr(e,t,r))}function Lf(e,t){e.min=t.min,e.max=t.max}function Ze(e,t){Lf(e.x,t.x),Lf(e.y,t.y)}function Af(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Rf(e,t,n,r,i){return e-=t,e=Ps(e,1/n,r),i!==void 0&&(e=Ps(e,1/i,r)),e}function N2(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=Q(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Q(s.min,s.max,r);e===s&&(a-=t),e.min=Rf(e.min,t,n,a,i),e.max=Rf(e.max,t,n,a,i)}function Vf(e,t,[n,r,i],s,o){N2(e,t[n],t[r],t[i],t.scale,s,o)}const M2=["x","scaleX","originX"],D2=["y","scaleY","originY"];function bf(e,t,n,r){Vf(e.x,t,M2,n?n.x:void 0,r?r.x:void 0),Vf(e.y,t,D2,n?n.y:void 0,r?r.y:void 0)}function _f(e){return e.translate===0&&e.scale===1}function Fm(e){return _f(e.x)&&_f(e.y)}function If(e,t){return e.min===t.min&&e.max===t.max}function L2(e,t){return If(e.x,t.x)&&If(e.y,t.y)}function Ff(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Om(e,t){return Ff(e.x,t.x)&&Ff(e.y,t.y)}function Of(e){return Te(e.x)/Te(e.y)}function Bf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class A2{constructor(){this.members=[]}add(t){Gl(this.members,t),t.scheduleRender()}remove(t){if(Ql(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function R2(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:d,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),h&&(r+=`rotateX(${h}deg) `),d&&(r+=`rotateY(${d}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ao=["","X","Y","Z"],V2=1e3;let b2=0;function Ro(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Bm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=jm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",K,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Bm(r)}function zm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=b2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(F2),this.nodes.forEach(U2),this.nodes.forEach(W2),this.nodes.forEach(O2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;K.read(()=>{h=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==h&&(h=y,this.root.updateBlockedByResize=!0,c&&c(),c=C2(d,250),Zi.hasAnimatedSinceResize&&(Zi.hasAnimatedSinceResize=!1,this.nodes.forEach(Wf)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||G2,{onLayoutAnimationStart:x,onLayoutAnimationComplete:P}=u.getProps(),m=!this.targetLayout||!Om(this.targetLayout,y),p=!h&&d;if(this.options.layoutRoot||this.resumeFrom||p||h&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...fu(v,"layout"),onPlay:x,onComplete:P};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(c,p)}else h||Wf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ht(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($2),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Te(this.snapshot.measuredBox.x)&&!Te(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=w/1e3;$f(h.x,o.x,k),$f(h.y,o.y,k),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Es(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),K2(this.relativeTarget,this.relativeTargetOrigin,d,k),g&&L2(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=oe()),Ze(g,this.relativeTarget)),x&&(this.animationValues=c,j2(c,u,this.latestValues,k,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.update(()=>{Zi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=er(0)),this.currentAnimation=w2(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(V2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Um(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||oe();const h=Te(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=Te(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}Ze(a,l),Fn(a,c),br(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new A2),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ro("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(zf),this.root.sharedNodes.clear()}}}function _2(e){e.updateLayout()}function I2(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?ze(h=>{const d=o?t.measuredBox[h]:t.layoutBox[h],y=Te(d);d.min=r[h].min,d.max=d.min+y}):Um(s,t.layoutBox,r)&&ze(h=>{const d=o?t.measuredBox[h]:t.layoutBox[h],y=Te(r[h]);d.max=d.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+y)});const a=On();br(a,r,t.layoutBox);const l=On();o?br(l,e.applyTransform(i,!0),t.measuredBox):br(l,r,t.layoutBox);const u=!Fm(a);let c=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:y}=h;if(d&&y){const v=oe();Es(v,t.layoutBox,d.layoutBox);const x=oe();Es(x,r,y.layoutBox),Om(v,x)||(c=!0),h.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function F2(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function O2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B2(e){e.clearSnapshot()}function zf(e){e.clearMeasurements()}function Uf(e){e.isLayoutDirty=!1}function z2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function U2(e){e.resolveTargetDelta()}function W2(e){e.calcProjection()}function $2(e){e.resetSkewAndRotation()}function H2(e){e.removeLeadSnapshot()}function $f(e,t,n){e.translate=Q(t.translate,0,n),e.scale=Q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hf(e,t,n,r){e.min=Q(t.min,n.min,r),e.max=Q(t.max,n.max,r)}function K2(e,t,n,r){Hf(e.x,t.x,n.x,r),Hf(e.y,t.y,n.y,r)}function Y2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const G2={duration:.45,ease:[.4,0,.1,1]},Kf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yf=Kf("applewebkit/")&&!Kf("chrome/")?Math.round:Ye;function Gf(e){e.min=Yf(e.min),e.max=Yf(e.max)}function Q2(e){Gf(e.x),Gf(e.y)}function Um(e,t,n){return e==="position"||e==="preserve-aspect"&&!t2(Of(t),Of(n),.2)}function X2(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Z2=zm({attachResizeListener:(e,t)=>ii(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vo={current:void 0},Wm=zm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vo.current){const e=new Z2({});e.mount(window),e.setOptions({layoutScroll:!0}),Vo.current=e}return Vo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),q2={pan:{Feature:g2},drag:{Feature:m2,ProjectionNode:Wm,MeasureLayout:bm}};function Qf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&K.postRender(()=>s(t,hi(t)))}class J2 extends Xt{mount(){const{current:t}=this.node;t&&(this.unmount=wv(t,(n,r)=>(Qf(this.node,r,"Start"),i=>Qf(this.node,i,"End"))))}unmount(){}}class e3 extends Xt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ci(ii(this.node.current,"focus",()=>this.onFocus()),ii(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xf(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&K.postRender(()=>s(t,hi(t)))}class t3 extends Xt{mount(){const{current:t}=this.node;t&&(this.unmount=Tv(t,(n,r)=>(Xf(this.node,r,"Start"),(i,{success:s})=>Xf(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Xa=new WeakMap,bo=new WeakMap,n3=e=>{const t=Xa.get(e.target);t&&t(e)},r3=e=>{e.forEach(n3)};function i3({root:e,...t}){const n=e||document;bo.has(n)||bo.set(n,{});const r=bo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(r3,{root:e,...t})),r[i]}function s3(e,t,n){const r=i3(t);return Xa.set(e,n),r.observe(e),()=>{Xa.delete(e),r.unobserve(e)}}const o3={some:0,all:1};class a3 extends Xt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:o3[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=u?c:h;d&&d(l)};return s3(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(l3(t,n))&&this.startObserver()}unmount(){}}function l3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const u3={inView:{Feature:a3},tap:{Feature:t3},focus:{Feature:e3},hover:{Feature:J2}},c3={layout:{ProjectionNode:Wm,MeasureLayout:bm}},f3={...Qx,...u3,...q2,...c3},B=fx(f3,Tx),xn="/api";async function d3(){return(await fetch(`${xn}/state`)).json()}async function Zf(){return(await fetch(`${xn}/dependencies/check`)).json()}async function qf(){return(await fetch(`${xn}/docker/status`)).json()}function _o(e){let t=null,n=!1;const r=()=>{n||(t=new EventSource(`${xn}/docker/status/stream`),t.onmessage=i=>{try{const s=JSON.parse(i.data);e(s)}catch(s){console.error("Failed to parse docker status:",s)}},t.onerror=()=>{t==null||t.close(),n||setTimeout(r,1e3)})};return r(),()=>{n=!0,t==null||t.close()}}async function h3(){return(await fetch(`${xn}/docker/build`,{method:"POST"})).json()}async function bi(){return(await fetch(`${xn}/defaults`)).json()}async function Jf(e){return(await fetch(`${xn}/defaults`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}const $m="/assets/wails-logo-white-text-B284k7fX.svg",Hm="/assets/wails-logo-black-text-Cx-vsZ4W.svg";function p3(e){switch(e){case"splash":case"checking":return"welcome";case"deps-ready":case"deps-missing":return"dependencies";case"cross-platform":case"docker-setup":return"platform";case"projects":return"identity";case"language-select":case"binding-style":case"template-select":return"templates";case"complete":return"complete";default:return"welcome"}}function m3(e){return["welcome","dependencies","platform","identity","templates","complete"].indexOf(e)+1}const Km=S.createContext({theme:"dark",toggleTheme:()=>{}}),Ym=()=>S.useContext(Km),xe={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function g3({currentStep:e,dockerStatus:t,buildingDocker:n}){const{theme:r,toggleTheme:i}=Ym(),s=p3(e),o=m3(s),a=[{key:"welcome",label:"Welcome"},{key:"dependencies",label:"Dependencies"},{key:"platform",label:"Platform"},{key:"identity",label:"Projects"},{key:"templates",label:"Templates"},{key:"complete",label:"Complete"}],l=()=>{window.open("https://github.com/sponsors/leaanthony","_blank","noopener,noreferrer")},u=n;return f.jsxs("aside",{className:"w-48 flex-shrink-0 bg-gray-100/80 dark:bg-transparent dark:glass-sidebar border-r border-gray-200 dark:border-transparent flex flex-col","aria-label":"Setup progress",children:[f.jsx("div",{className:"p-6 flex justify-center",children:f.jsx("img",{src:r==="dark"?$m:Hm,alt:"Wails logo",className:"h-24 object-contain"})}),f.jsx("nav",{className:"flex-1 px-4 py-2","aria-label":"Setup steps",children:f.jsx("ol",{className:"space-y-1",children:a.map((c,h)=>{const d=h+1,y=c.key===s,v=d{var d;(d=c.current)==null||d.focus()},[e]);const h=r||s?f.jsxs("div",{className:"flex-shrink-0 pt-4 pb-6 flex flex-col items-center gap-1.5",role:"group","aria-label":"Page actions",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[u&&l&&f.jsx("button",{onClick:l,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),r&&i&&f.jsx("button",{onClick:r,disabled:a,className:`px-5 py-2 rounded-lg text-sm font-medium transition-colors border focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${a?"border-gray-300 dark:border-gray-700 text-gray-400 cursor-not-allowed":"border-red-500 text-red-600 dark:text-red-400 hover:bg-red-500/10"}`,"aria-disabled":a,children:i})]}),s&&o&&f.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 rounded",children:o})]}):null;return f.jsxs(B.main,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col","aria-labelledby":"page-title",children:[f.jsxs("header",{className:"text-center mb-6 flex-shrink-0 px-10 pt-10",children:[f.jsx("h1",{ref:c,id:"page-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-1.5 tracking-tight focus:outline-none",tabIndex:-1,children:e}),f.jsx("p",{className:"text-base text-gray-500 dark:text-gray-400",children:t})]}),f.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin min-h-0 px-10",children:n}),h]})}function y3({onNext:e}){const{theme:t}=Ym(),n=S.useRef(null),r=S.useRef(null);S.useEffect(()=>{var s;(s=n.current)==null||s.focus()},[]);const i=s=>{s.key==="Enter"&&document.activeElement===r.current&&e()};return f.jsxs(B.main,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"splash-title",onKeyDown:i,children:[f.jsx(B.div,{className:"text-center mb-10",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.6,ease:"easeOut"},children:f.jsx("div",{className:"flex justify-center",children:f.jsx("img",{src:t==="dark"?$m:Hm,alt:"",width:280,className:"object-contain",style:{filter:"drop-shadow(0 0 60px rgba(239, 68, 68, 0.4))"},"aria-hidden":"true"})})}),f.jsxs(B.div,{className:"text-center px-8 max-w-lg",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:[f.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[f.jsx("h1",{ref:n,id:"splash-title",className:"text-2xl font-semibold text-gray-900 dark:text-white tracking-tight focus:outline-none",tabIndex:-1,children:"Welcome to Wails"}),f.jsx("span",{className:"px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide rounded-full bg-amber-500/20 text-amber-600 dark:text-amber-400 border border-amber-500/30",role:"status","aria-label":"This setup wizard is experimental",children:"Experimental"})]}),f.jsx("p",{className:"text-base text-gray-600 dark:text-gray-300 leading-relaxed mb-8",children:"Build beautiful cross-platform apps using Go and web technologies"})]}),f.jsx(B.button,{ref:r,onClick:e,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},children:"Let's Start"})]})}function v3(){const e=S.useRef(null);return S.useEffect(()=>{var t;(t=e.current)==null||t.focus()},[]),f.jsxs(B.main,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-start pt-[15%]","aria-labelledby":"checking-title","aria-busy":"true",children:[f.jsx(B.div,{className:"w-12 h-12 border-3 border-gray-300 dark:border-gray-600 border-t-red-500 rounded-full mb-6",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},role:"status","aria-label":"Loading"}),f.jsx("h2",{ref:e,id:"checking-title",className:"text-xl font-semibold text-gray-900 dark:text-white mb-2 focus:outline-none",tabIndex:-1,children:"Checking your system..."}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400","aria-live":"polite",children:"This will only take a moment"})]})}function x3({onNext:e,onBack:t,canGoBack:n}){const r=S.useRef(null);return S.useEffect(()=>{var i;(i=r.current)==null||i.focus()},[]),f.jsxs(B.main,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"deps-ready-title",children:[f.jsx(B.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6","aria-hidden":"true",children:f.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),f.jsx("h2",{ref:r,id:"deps-ready-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 focus:outline-none",tabIndex:-1,children:"All dependencies installed"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Your system has everything needed to build Wails apps"}),f.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[n&&t&&f.jsx("button",{onClick:t,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),f.jsx("button",{onClick:e,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function w3({dependencies:e,onRetry:t,onContinue:n,onBack:r,canGoBack:i}){const[s,o]=S.useState(!1),a=e.filter(c=>!c.installed&&c.required),l=(()=>{const c=a.filter(v=>{var x;return(x=v.installCommand)==null?void 0:x.startsWith("sudo ")}).map(v=>v.installCommand);if(c.length===0)return null;const h=[],d=[],y=[];for(const v of c)if(v.includes("pacman -S")){const x=v.match(/pacman -S\s+(.+)/);x&&h.push(...x[1].split(/\s+/))}else if(v.includes("apt install")){const x=v.match(/apt install\s+(.+)/);x&&d.push(...x[1].split(/\s+/))}else if(v.includes("dnf install")){const x=v.match(/dnf install\s+(.+)/);x&&y.push(...x[1].split(/\s+/))}return h.length>0?`sudo pacman -S ${h.join(" ")}`:d.length>0?`sudo apt install ${d.join(" ")}`:y.length>0?`sudo dnf install ${y.join(" ")}`:null})(),u=()=>{l&&(navigator.clipboard.writeText(l),o(!0),setTimeout(()=>o(!1),2e3))};return f.jsxs(ju,{title:"Almost there!",subtitle:"A few things need to be installed first",primaryAction:t,primaryLabel:"Check Again",secondaryAction:n,secondaryLabel:"Continue anyway",onBack:r,canGoBack:i,children:[f.jsx("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4 mb-4",children:a.map(c=>f.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-gray-200/50 dark:border-gray-800/50 last:border-0",children:[f.jsx("div",{className:"w-5 h-5 rounded-full bg-red-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:f.jsx("svg",{className:"w-3 h-3 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M6 18L18 6M6 6l12 12"})})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:c.name}),c.message&&f.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:c.message}),c.helpUrl&&f.jsxs("a",{href:c.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-500 dark:text-blue-400 hover:text-blue-600 dark:hover:text-blue-300 mt-1",children:["Install instructions",f.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]},c.name))}),l&&f.jsxs("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4",children:[f.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-2",children:"Run this command to install everything:"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("code",{className:"flex-1 text-xs bg-gray-200 dark:bg-gray-900 text-gray-700 dark:text-gray-300 px-3 py-2 rounded font-mono overflow-x-auto",children:l}),f.jsx("button",{onClick:u,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition-colors p-2",title:"Copy command",children:s?f.jsx("svg",{className:"w-5 h-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):f.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})]})}function k3({dockerDep:e,onYes:t,onSkip:n,onBack:r,canGoBack:i}){const s=(e==null?void 0:e.installed)&&(e==null?void 0:e.imageBuilt)===!0;return f.jsx(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:s?f.jsxs(f.Fragment,{children:[f.jsx(B.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6",children:f.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),f.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[f.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:f.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),f.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:f.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),f.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:f.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),f.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Cross-platform builds ready!"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"You can build for Windows, macOS, and Linux from this machine"}),f.jsxs("div",{className:"flex items-center gap-3",children:[i&&r&&f.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),f.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[f.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:f.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),f.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:f.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),f.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:f.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),f.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Build for multiple platforms?"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-md",children:"Wails can compile your app for Windows, macOS, and Linux from a single machine"}),f.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"Requires Docker for cross-compilation"}),f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[i&&r&&f.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),f.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Yes, set this up"})]}),f.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Not right now"})]})]})})}function S3({onBuildImage:e,onUseLocalSDK:t,onSkip:n}){const[r,i]=S.useState(!1),[s,o]=S.useState(null),a=async()=>{if(!s){const u=await(await fetch("/api/docker/logs")).text();o(u)}i(!0)};return r?f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center max-w-4xl mx-auto w-full",children:[f.jsxs("div",{className:"w-full flex items-center justify-between mb-4",children:[f.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Build Logs"}),f.jsx("button",{onClick:()=>i(!1),className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",children:"Back"})]}),f.jsx("pre",{className:"w-full h-96 overflow-auto bg-gray-900 text-gray-100 p-4 rounded-lg text-xs font-mono whitespace-pre-wrap",children:s||"No logs available"})]}):f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/20 flex items-center justify-center mb-6",children:f.jsx("svg",{className:"w-8 h-8 text-amber-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),f.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Build failed"}),f.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Check your internet connection and try again, or download the SDK manually."}),f.jsx("button",{onClick:a,className:"text-sm text-blue-500 hover:text-blue-600 mb-6",children:"View logs"}),f.jsxs("div",{className:"flex flex-col gap-3 items-center",children:[f.jsxs("div",{className:"flex gap-3",children:[f.jsx("button",{onClick:e,className:"px-5 py-2.5 rounded-lg bg-blue-500 text-white text-sm font-medium hover:bg-blue-600 transition-colors",children:"Try again"}),f.jsxs("label",{className:"px-5 py-2.5 rounded-lg border border-blue-500 text-blue-600 dark:text-blue-400 text-sm font-medium hover:bg-blue-500/10 transition-colors cursor-pointer",children:["Use local file",f.jsx("input",{type:"file",accept:".tar.xz",className:"hidden",onChange:l=>{var c;const u=(c=l.target.files)==null?void 0:c[0];u&&t(u)}})]})]}),f.jsx("a",{href:"https://github.com/wailsapp/macosx-sdks/releases/download/26.1/MacOSX26.1.sdk.tar.xz",download:!0,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Download SDK manually"}),f.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]})}function C3({onAgree:e,onDecline:t,onBack:n,canGoBack:r}){const[i,s]=S.useState(!1);return f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[r&&n&&f.jsx("button",{onClick:n,className:"absolute top-4 left-4 p-2 rounded-lg text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","aria-label":"Go back",children:f.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),f.jsx("div",{className:"w-12 h-12 rounded-xl bg-gray-100 dark:bg-gray-800 flex items-center justify-center mb-4",children:f.jsx("svg",{className:"w-6 h-6 text-gray-600 dark:text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),f.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-1",children:"Apple SDK License Agreement"}),f.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4 text-center max-w-md",children:"Cross-platform builds for macOS require the Apple SDK. Please review and accept the license terms."}),f.jsx("div",{className:"w-full max-w-2xl h-72 mb-4 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 bg-white",children:f.jsx("iframe",{src:"/assets/apple-sdk-license.pdf#view=FitH&navpanes=0&toolbar=0",className:"w-full h-full",title:"Apple Xcode and SDK License Agreement"})}),f.jsxs("label",{className:"flex items-center gap-2 mb-5 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:i,onChange:o=>s(o.target.checked),className:"w-4 h-4 rounded border-gray-300 text-blue-500 focus:ring-blue-500"}),f.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:"I agree to Apple's Xcode and SDK License Agreement"})]}),f.jsxs("div",{className:"flex gap-3",children:[f.jsx("button",{onClick:t,className:"px-5 py-2.5 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:"Skip cross-platform"}),f.jsx("button",{onClick:e,disabled:!i,className:`px-5 py-2.5 rounded-lg text-sm font-medium transition-colors ${i?"bg-blue-500 text-white hover:bg-blue-600":"bg-gray-200 text-gray-400 cursor-not-allowed"}`,children:"Continue"})]})]})}function T3({dockerStatus:e,buildingImage:t,onBuildImage:n,onCheckAgain:r,onContinueBackground:i,onUseLocalSDK:s,onSkip:o,onBack:a,canGoBack:l}){if(!e||!e.installed)return f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:f.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:f.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),f.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Install Docker"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-sm",children:"Cross-platform builds require Docker Desktop"}),f.jsxs("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors inline-flex items-center gap-2 mb-4",children:["Download Docker Desktop",f.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),f.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-6 text-center max-w-xs",children:"After installing, come back and we'll continue setting up. Some platforms may require a reboot."}),f.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&f.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),f.jsx("button",{onClick:r,className:"px-5 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:"Check Again"})]}),f.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(!e.running)return f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gray-200 dark:bg-gray-800 flex items-center justify-center mb-6 opacity-50",children:f.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:f.jsx("path",{fill:"#6b7280",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),f.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Start Docker"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Please start Docker Desktop to continue"}),f.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&f.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),f.jsx("button",{onClick:r,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Check Again"})]}),f.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(t||e.pullStatus==="pulling"){const u=e.pullProgress||0,c=e.pullMessage||"Connecting";return f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:f.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:f.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),f.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Downloading cross-compiler image"}),f.jsxs("div",{className:"w-64 mb-4",children:[f.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-1",children:[f.jsx("span",{children:c}),f.jsxs("span",{children:[u,"%"]})]}),f.jsx("div",{className:"h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:f.jsx(B.div,{className:"h-full bg-blue-500",animate:{width:`${u}%`}})})]}),f.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This may take several minutes"}),f.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue in background"})]})}return e.pullStatus==="error"?f.jsx(S3,{onBuildImage:n,onUseLocalSDK:s,onSkip:o}):e.imageBuilt?f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[f.jsx(B.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-6",children:f.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),f.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Cross-platform builds ready!"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"You can now build for Windows, macOS, and Linux"}),f.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&f.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),f.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})]}):f.jsxs(B.div,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[f.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:f.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:f.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),f.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Docker is ready!"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Download the cross-compilation image to enable building for all platforms"}),f.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This will download ~800MB and may take several minutes"}),f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&f.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),f.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors",children:"Download Image"})]}),f.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip, I'll do it later"})]})]})}const j3=[{id:"vanilla",name:"Vanilla",description:"Plain JavaScript/TypeScript",color:"#f7df1e",icon:"javascript"},{id:"react",name:"React",description:"React with Vite",color:"#61dafb",icon:"react"},{id:"vue",name:"Vue",description:"Vue 3 with Vite",color:"#42b883",icon:"vue"},{id:"svelte",name:"Svelte",description:"Svelte with Vite",color:"#ff3e00",icon:"svelte"},{id:"preact",name:"Preact",description:"Lightweight React alternative",color:"#673ab8",icon:"preact"},{id:"lit",name:"Lit",description:"Web Components with Lit",color:"#324fff",icon:"lit"},{id:"solid",name:"Solid",description:"Solid.js with Vite",color:"#2c4f7c",icon:"solid"},{id:"qwik",name:"Qwik",description:"Qwik with Vite",color:"#18b6f6",icon:"qwik"}];function P3({preferTypeScript:e,onSelect:t,onNext:n,onBack:r,canGoBack:i}){const s=S.useRef(null);return S.useEffect(()=>{var o;(o=s.current)==null||o.focus()},[]),f.jsxs(B.main,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"language-title",children:[f.jsx("h2",{ref:s,id:"language-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center focus:outline-none",tabIndex:-1,children:"Language Preference"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"Choose your preferred language for new projects"}),f.jsxs("div",{className:"flex gap-4 mb-8",role:"radiogroup","aria-label":"Programming language",children:[f.jsxs("button",{onClick:()=>t(!1),role:"radio","aria-checked":!e,className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10":"border-yellow-400 bg-yellow-400/10 shadow-lg shadow-yellow-400/20"}`,children:[f.jsx("div",{className:"w-16 h-16 flex items-center justify-center","aria-hidden":"true",children:f.jsx("img",{src:"/logos/javascript.svg",alt:"",className:"w-14 h-14"})}),f.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"JavaScript"}),f.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Dynamic typing"})]}),f.jsxs("button",{onClick:()=>t(!0),role:"radio","aria-checked":e,className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[f.jsx("div",{className:"w-16 h-16 flex items-center justify-center","aria-hidden":"true",children:f.jsx("img",{src:"/logos/typescript.svg",alt:"",className:"w-14 h-14"})}),f.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"TypeScript"}),f.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Type safety"})]})]}),f.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[i&&r&&f.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),f.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function E3({useInterfaces:e,onSelect:t,onNext:n,onBack:r,canGoBack:i}){const s=S.useRef(null);return S.useEffect(()=>{var o;(o=s.current)==null||o.focus()},[]),f.jsxs(B.main,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center px-4 overflow-hidden","aria-labelledby":"binding-title",children:[f.jsx("h2",{ref:s,id:"binding-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center focus:outline-none",tabIndex:-1,children:"TypeScript Binding Style"}),f.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-lg",children:"Choose how Go structs are represented in TypeScript"}),f.jsxs("div",{className:"flex gap-4 mb-8 max-w-full overflow-x-auto p-1",role:"radiogroup","aria-label":"Binding style",children:[f.jsxs("button",{onClick:()=>t(!0),role:"radio","aria-checked":e,className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[f.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Interfaces"}),f.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto","aria-hidden":"true",children:`interface Person { + name: string; + age: number; +}`}),f.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5","aria-label":"Features",children:[f.jsx("li",{children:"Lightweight types"}),f.jsx("li",{children:"No runtime code"}),f.jsx("li",{children:"Simpler output"})]})]}),f.jsxs("button",{onClick:()=>t(!1),role:"radio","aria-checked":!e,className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left focus:outline-none focus:ring-2 focus:ring-purple-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-white/10 bg-white/5 hover:bg-white/10":"border-purple-400 bg-purple-400/10 shadow-lg shadow-purple-400/20"}`,children:[f.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Classes"}),f.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto","aria-hidden":"true",children:`class Person { + name: string; + age: number; + constructor(src) { + Object.assign(this, src); + } + static createFrom(src) { + return new Person(src); + } +}`}),f.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5","aria-label":"Features",children:[f.jsx("li",{children:"Factory methods"}),f.jsx("li",{children:"Default initialization"}),f.jsx("li",{children:"More verbose"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[i&&r&&f.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),f.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function N3({selectedFramework:e,preferTypeScript:t,onSelect:n,onNext:r,onSkip:i,onBack:s,canGoBack:o}){return f.jsx(ju,{title:"Default Template",subtitle:"Choose a framework for new projects",primaryAction:r,primaryLabel:"Continue",secondaryAction:i,secondaryLabel:"Skip",onBack:s,canGoBack:o,children:f.jsx("div",{className:"grid grid-cols-4 gap-3 max-w-2xl mx-auto p-1",role:"radiogroup","aria-label":"Framework templates",children:j3.map(a=>f.jsxs("button",{onClick:()=>n(a.id),role:"radio","aria-checked":e===a.id,className:`aspect-square rounded-xl p-4 flex flex-col items-center justify-center gap-2 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e===a.id?"border-red-500 bg-red-500/10 shadow-lg shadow-red-500/10":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[f.jsx("img",{src:`/logos/${a.id==="vanilla"?t?"typescript":"javascript":a.icon}.svg`,alt:"","aria-hidden":"true",className:"w-12 h-12"}),f.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:a.name})]},a.id))})})}function M3({defaults:e,onDefaultsChange:t,onNext:n,onSkip:r,saving:i,onBack:s,canGoBack:o}){const[a,l]=S.useState(null),[u,c]=S.useState(""),h=v=>{v==="name"?c(e.author.name):v==="company"?c(e.author.company):v==="bundleId"&&c(e.project.productIdentifierPrefix),l(v)},d=()=>{a==="name"?t({...e,author:{...e.author,name:u}}):a==="company"?t({...e,author:{...e.author,company:u}}):a==="bundleId"&&t({...e,project:{...e.project,productIdentifierPrefix:u}}),l(null)},y=v=>{v.key==="Enter"?d():v.key==="Escape"&&l(null)};return f.jsx(ju,{title:"Project Defaults",subtitle:"Set defaults for new Wails projects",primaryAction:n,primaryLabel:i?"Saving...":"Continue",primaryDisabled:i,secondaryAction:r,secondaryLabel:"Skip",onBack:s,canGoBack:o,children:f.jsxs("div",{className:"max-w-xl mx-auto",children:[f.jsxs("div",{className:"settings-group",role:"group","aria-label":"Project default settings",children:[a==="name"?f.jsxs("div",{className:"settings-row",children:[f.jsx("label",{htmlFor:"author-input",className:"sr-only",children:"Author name"}),f.jsx("div",{className:"flex-1",children:f.jsx("input",{id:"author-input",type:"text",value:u,onChange:v=>c(v.target.value),onKeyDown:y,onBlur:d,autoFocus:!0,placeholder:"Your Name","aria-label":"Author name",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1"})})]}):f.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("name"),"aria-label":`Author: ${e.author.name||"Not set"}. Click to edit.`,children:[f.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Author"}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[f.jsx("span",{children:e.author.name||"Not set"}),f.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]}),a==="company"?f.jsxs("div",{className:"settings-row",children:[f.jsx("label",{htmlFor:"company-input",className:"sr-only",children:"Company name"}),f.jsx("div",{className:"flex-1",children:f.jsx("input",{id:"company-input",type:"text",value:u,onChange:v=>c(v.target.value),onKeyDown:y,onBlur:d,autoFocus:!0,placeholder:"Acme Corp","aria-label":"Company name",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1"})})]}):f.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("company"),"aria-label":`Company: ${e.author.company||"Not set"}. Click to edit.`,children:[f.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Company"}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[f.jsx("span",{children:e.author.company||"Not set"}),f.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]}),a==="bundleId"?f.jsxs("div",{className:"settings-row",children:[f.jsx("label",{htmlFor:"bundle-input",className:"sr-only",children:"Bundle identifier"}),f.jsx("div",{className:"flex-1",children:f.jsx("input",{id:"bundle-input",type:"text",value:u,onChange:v=>c(v.target.value),onKeyDown:y,onBlur:d,autoFocus:!0,placeholder:"com.example","aria-label":"Bundle identifier",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1 font-mono"})})]}):f.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("bundleId"),"aria-label":`Bundle identifier: ${e.project.productIdentifierPrefix||"com.example"}. Click to edit.`,children:[f.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Bundle identifier"}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[f.jsx("span",{className:"font-mono",children:e.project.productIdentifierPrefix||"com.example"}),f.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]})]}),f.jsx("p",{className:"text-xs text-gray-500 dark:text-white/40 mt-3 text-center",id:"settings-description",children:"These defaults are used when creating new projects"})]})})}function D3(){const e=S.useRef(null);S.useEffect(()=>{var n;(n=e.current)==null||n.focus()},[]);const t=()=>{window.open("https://v3alpha.wails.io/quick-start/first-app/","_blank","noopener,noreferrer")};return f.jsxs(B.main,{variants:xe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},"aria-labelledby":"complete-title",className:"flex-1 flex flex-col items-center justify-center px-8",children:[f.jsx(B.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-full bg-green-500/20 flex items-center justify-center mb-4","aria-hidden":"true",children:f.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),f.jsx("h2",{ref:e,id:"complete-title",className:"text-xl font-semibold text-gray-900 dark:text-white mb-6 focus:outline-none",tabIndex:-1,children:"You're ready to build!"}),f.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Start Building"})]})}function L3(){const[e,t]=S.useState("splash"),[n,r]=S.useState([]),[i,s]=S.useState([]),[o,a]=S.useState(null),[l,u]=S.useState(null),[c,h]=S.useState(!1),[d,y]=S.useState({author:{name:"",company:""},project:{productIdentifierPrefix:"com.example",defaultTemplate:"vanilla",copyrightTemplate:"(c) {year}, {company}",descriptionTemplate:"A {name} application",defaultVersion:"0.1.0",useInterfaces:!0}}),[v,x]=S.useState(!1),[P,m]=S.useState(!1),[p,g]=S.useState(!0),[w,k]=S.useState("vanilla"),[C,j]=S.useState(!0),[T,b]=S.useState(!1),[D,q]=S.useState(null),[Be,dt]=S.useState(()=>{if(typeof window<"u"){const L=localStorage.getItem("wails-setup-theme");if(L==="light"||L==="dark")return L;if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}),J=L=>{r(_=>[..._,e]),t(L)},Se=()=>{if(n.length===0)return;const L=[...n];let _=L.pop();for(;_==="checking"&&L.length>0;)_=L.pop();r(L),t(_)},me=n.length>0&&e!=="splash"&&e!=="checking",Y=()=>{dt(L=>{const _=L==="dark"?"light":"dark";return localStorage.setItem("wails-setup-theme",_),_})};S.useEffect(()=>{Be==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[Be]),S.useEffect(()=>{N()},[]),S.useEffect(()=>{const L=_=>{_.target instanceof HTMLInputElement||_.target instanceof HTMLTextAreaElement||_.key==="Escape"&&me&&(_.preventDefault(),Se())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[me,e]);const N=async()=>{const L=await d3();a(L.system)},A=async()=>{J("checking");const L=await Zf();s(L),L.filter(Zt=>Zt.required&&!Zt.installed).length===0?t("deps-ready"):t("deps-missing")},V=async()=>{J("cross-platform")},U=async()=>{t("checking");const L=await Zf();s(L),L.filter(Zt=>Zt.required&&!Zt.installed).length===0?t("deps-ready"):t("deps-missing")},re=async()=>{J("cross-platform")},wn=async()=>{J("sdk-license")},ht=async()=>{const L=await qf();u(L),J("docker-setup")},lr=async()=>{var _;const L=await bi();y(L),j(((_=L.project)==null?void 0:_.useInterfaces)??!0),J("projects")},pt=async()=>{var _;const L=await bi();y(L),j(((_=L.project)==null?void 0:_.useInterfaces)??!0),J("projects")},kn=async()=>{const L=await qf();u(L)},Gm=async()=>{h(!0),await h3();const L=_o(_=>{u(_),_.pullStatus!=="pulling"&&(h(!1),L())})},Qm=async()=>{var _;(c||l&&l.pullStatus==="pulling")&&m(!0);const L=await bi();y(L),j(((_=L.project)==null?void 0:_.useInterfaces)??!0),J("projects")},Xm=async()=>{var _;const L=await bi();y(L),j(((_=L.project)==null?void 0:_.useInterfaces)??!0),J("projects")},Zm=async L=>{h(!0);const _=new FormData;_.append("sdk",L),await fetch("/api/docker/build-with-sdk",{method:"POST",body:_});const Zt=_o(Pu=>{u(Pu),Pu.pullStatus!=="pulling"&&(h(!1),Zt())})},qm=()=>{J("language-select")},Jm=()=>{J("language-select")},e0=()=>{J(p?"binding-style":"template-select")},t0=()=>{J("template-select")},n0=async()=>{const L=p&&w!=="vanilla"?`${w}-ts`:p&&w==="vanilla"?"vanilla-ts":w,_={...d,project:{...d.project,defaultTemplate:L,useInterfaces:p?C:!0}};x(!0),await Jf(_),x(!1),J("complete")},r0=async()=>{const L={...d,project:{...d.project,useInterfaces:p?C:!0}};x(!0),await Jf(L),x(!1),J("complete")};return S.useEffect(()=>{if(P&&(c||l&&l.pullStatus==="pulling"))return _o(_=>{u(_),_.pullStatus!=="pulling"&&h(!1)})},[P,c,l==null?void 0:l.pullStatus]),S.useEffect(()=>{if(D==="pulling"&&(l==null?void 0:l.pullStatus)==="complete"&&e!=="docker-setup"){b(!0);const L=setTimeout(()=>b(!1),3e3);return()=>clearTimeout(L)}q((l==null?void 0:l.pullStatus)||null)},[l==null?void 0:l.pullStatus,e]),f.jsx(Km.Provider,{value:{theme:Be,toggleTheme:Y},children:f.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-[#0f0f0f] flex items-center justify-center p-4 transition-colors relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:f.jsxs("div",{className:"scrolling-bg w-full h-[200%] opacity-[0.08] dark:opacity-[0.06]",children:[f.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"}),f.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"})]})}),f.jsxs("div",{className:"w-[75vw] max-w-[1200px] h-[75vh] max-h-[800px] glass-card rounded-2xl flex overflow-hidden relative z-10",children:[f.jsx(g3,{currentStep:e,dockerStatus:l,buildingDocker:P&&(c||(l==null?void 0:l.pullStatus)==="pulling")}),f.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-white/50 dark:bg-white/[0.03] relative",children:[f.jsx(rf,{children:T&&f.jsxs(B.div,{initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15,ease:"easeOut"},className:"absolute top-4 right-4 z-50 flex items-center gap-2 px-3 py-2 bg-green-500 text-white rounded-lg shadow-lg",children:[f.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),f.jsx("span",{className:"text-sm font-medium",children:"Docker image ready"})]})}),f.jsx("div",{className:"flex-1 flex flex-col min-h-0",children:f.jsxs(rf,{mode:"wait",children:[e==="splash"&&f.jsx(y3,{onNext:A},"splash"),e==="checking"&&f.jsx(v3,{},"checking"),e==="deps-ready"&&f.jsx(x3,{onNext:V,onBack:Se,canGoBack:me},"deps-ready"),e==="deps-missing"&&f.jsx(w3,{dependencies:i,onRetry:U,onContinue:re,onBack:Se,canGoBack:me},"deps-missing"),e==="cross-platform"&&f.jsx(k3,{dockerDep:i.find(L=>L.name==="docker"),onYes:wn,onSkip:pt,onBack:Se,canGoBack:me},"cross-platform"),e==="sdk-license"&&f.jsx(C3,{onAgree:ht,onDecline:lr,onBack:Se,canGoBack:me},"sdk-license"),e==="docker-setup"&&f.jsx(T3,{dockerStatus:l,buildingImage:c,onBuildImage:Gm,onCheckAgain:kn,onContinueBackground:Qm,onUseLocalSDK:Zm,onSkip:Xm,onBack:Se,canGoBack:me},"docker-setup"),e==="projects"&&f.jsx(M3,{defaults:d,onDefaultsChange:y,onNext:qm,onSkip:Jm,saving:v,onBack:Se,canGoBack:me},"projects"),e==="language-select"&&f.jsx(P3,{preferTypeScript:p,onSelect:g,onNext:e0,onBack:Se,canGoBack:me},"language-select"),e==="binding-style"&&f.jsx(E3,{useInterfaces:C,onSelect:j,onNext:t0,onBack:Se,canGoBack:me},"binding-style"),e==="template-select"&&f.jsx(N3,{selectedFramework:w,preferTypeScript:p,onSelect:k,onNext:n0,onSkip:r0,onBack:Se,canGoBack:me},"template-select"),e==="complete"&&f.jsx(D3,{},"complete")]})})]})]})]})})}Io.createRoot(document.getElementById("root")).render(f.jsx(w0.StrictMode,{children:f.jsx(L3,{})})); diff --git a/v3/internal/setupwizard/frontend/dist/index.html b/v3/internal/setupwizard/frontend/dist/index.html index 8e48f7d42..c32f1aa39 100644 --- a/v3/internal/setupwizard/frontend/dist/index.html +++ b/v3/internal/setupwizard/frontend/dist/index.html @@ -7,8 +7,8 @@ - - + +
diff --git a/v3/internal/setupwizard/frontend/mockup.html b/v3/internal/setupwizard/frontend/mockup.html new file mode 100644 index 000000000..fe1be05ae --- /dev/null +++ b/v3/internal/setupwizard/frontend/mockup.html @@ -0,0 +1,319 @@ + + + + + + Wails – Project Defaults (Mock) + + + +
+
+ + +
+
+

Project Defaults

+
Choose how new Wails apps are created by default.
+ +
+
+
Bundle identifier
+
com.example
â–¸
+
+
+
Version
+
0.1.0
â–¸
+
+
+
Template
+
Vanilla (JavaScript)
â–¸
+
+
+ +
+ +
+
+
+
+
+
+ + + + diff --git a/v3/internal/setupwizard/frontend/src/App.tsx b/v3/internal/setupwizard/frontend/src/App.tsx index 3c7934246..874ce620d 100644 --- a/v3/internal/setupwizard/frontend/src/App.tsx +++ b/v3/internal/setupwizard/frontend/src/App.tsx @@ -1,7 +1,7 @@ -import { useState, useEffect, createContext, useContext, ReactNode } from 'react'; +import { useState, useEffect, createContext, useContext, ReactNode, useRef } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import type { DependencyStatus, SystemInfo, DockerStatus, GlobalDefaults } from './types'; -import { checkDependencies, getState, getDockerStatus, buildDockerImage, getDefaults, saveDefaults } from './api'; +import { checkDependencies, getState, getDockerStatus, buildDockerImage, getDefaults, saveDefaults, subscribeDockerStatus } from './api'; import wailsLogoWhite from './assets/wails-logo-white-text.svg'; import wailsLogoBlack from './assets/wails-logo-black-text.svg'; @@ -12,6 +12,7 @@ type OOBEStep = | 'deps-ready' | 'deps-missing' | 'cross-platform' + | 'sdk-license' | 'docker-setup' | 'projects' | 'language-select' @@ -103,42 +104,51 @@ function Sidebar({ currentStep, dockerStatus, buildingDocker }: { window.open('https://github.com/sponsors/leaanthony', '_blank', 'noopener,noreferrer'); }; - const showDockerProgress = buildingDocker || (dockerStatus?.pullStatus === 'pulling'); + const isDockerBuilding = buildingDocker; return ( -
- {/* Wails logo - 3x bigger */} + ); } -// Page template - header + subheader, content, optional buttons function PageTemplate({ title, subtitle, @@ -224,7 +231,9 @@ function PageTemplate({ primaryLabel, secondaryAction, secondaryLabel, - primaryDisabled = false + primaryDisabled = false, + onBack, + canGoBack = false }: { title: string; subtitle: string; @@ -234,27 +243,45 @@ function PageTemplate({ secondaryAction?: () => void; secondaryLabel?: string; primaryDisabled?: boolean; + onBack?: () => void; + canGoBack?: boolean; }) { - // Render actions as a render prop so parent can place them where needed + const headingRef = useRef(null); + + useEffect(() => { + headingRef.current?.focus(); + }, [title]); + const actionsElement = (primaryAction || secondaryAction) ? ( -
- {primaryAction && primaryLabel && ( - - )} +
+
+ {canGoBack && onBack && ( + + )} + {primaryAction && primaryLabel && ( + + )} +
{secondaryAction && secondaryLabel && ( @@ -263,45 +290,63 @@ function PageTemplate({ ) : null; return ( - - {/* Header - centered with horizontal padding */} -
-

{title}

+
+

+ {title} +

{subtitle}

-
+ - {/* Scrollable content area with horizontal padding */}
{children}
- {/* Actions - anchored to bottom */} {actionsElement} -
+ ); } // Splash Page - simple welcome with Let's Start function SplashPage({ onNext }: { onNext: () => void }) { const { theme } = useTheme(); + const headingRef = useRef(null); + const startButtonRef = useRef(null); + + useEffect(() => { + headingRef.current?.focus(); + }, []); + + const handleKeyDown = (e: React.KeyboardEvent) => { + if (e.key === 'Enter' && document.activeElement === startButtonRef.current) { + onNext(); + } + }; return ( - - {/* Logo with glow effect */} void }) {
- {/* Welcome text */} -

- Welcome to Wails -

+
+

+ Welcome to Wails +

+ + Experimental + +

Build beautiful cross-platform apps using Go and web technologies

- {/* Let's Start button */} Let's Start -
+ ); } -// Checking Screen - brief loading while checking dependencies function CheckingPage() { + const headingRef = useRef(null); + + useEffect(() => { + headingRef.current?.focus(); + }, []); + return ( - -

+

Checking your system...

-

+

This will only take a moment

-
+ ); } -// Deps Ready Page - simple checkmark, deps are good -function DepsReadyPage({ onNext }: { onNext: () => void }) { +function DepsReadyPage({ onNext, onBack, canGoBack }: { onNext: () => void; onBack?: () => void; canGoBack?: boolean }) { + const headingRef = useRef(null); + + useEffect(() => { + headingRef.current?.focus(); + }, []); + return ( - - {/* Animated checkmark */} -

+

All dependencies installed

Your system has everything needed to build Wails apps

- -
+
+ {canGoBack && onBack && ( + + )} + +
+ ); } @@ -418,11 +512,15 @@ function DepsReadyPage({ onNext }: { onNext: () => void }) { function DepsMissingPage({ dependencies, onRetry, - onContinue + onContinue, + onBack, + canGoBack }: { dependencies: DependencyStatus[]; onRetry: () => void; onContinue: () => void; + onBack?: () => void; + canGoBack?: boolean; }) { const [copied, setCopied] = useState(false); const missingDeps = dependencies.filter(d => !d.installed && d.required); @@ -474,6 +572,8 @@ function DepsMissingPage({ primaryLabel="Check Again" secondaryAction={onContinue} secondaryLabel="Continue anyway" + onBack={onBack} + canGoBack={canGoBack} > {/* Missing dependencies list */}
@@ -541,11 +641,15 @@ function DepsMissingPage({ function CrossPlatformPage({ dockerDep, onYes, - onSkip + onSkip, + onBack, + canGoBack }: { dockerDep: DependencyStatus | undefined; onYes: () => void; onSkip: () => void; + onBack?: () => void; + canGoBack?: boolean; }) { // If Docker is installed and image is already built, show ready state const isReady = dockerDep?.installed && dockerDep?.imageBuilt === true; @@ -596,12 +700,22 @@ function CrossPlatformPage({ You can build for Windows, macOS, and Linux from this machine

- +
+ {canGoBack && onBack && ( + + )} + +
) : ( <> @@ -632,12 +746,22 @@ function CrossPlatformPage({

- +
+ {canGoBack && onBack && ( + + )} + +
+
+
+          {logs || 'No logs available'}
+        
+ + ); + } + + return ( + +
+ + + +
+ +

+ Build failed +

+ +

+ Check your internet connection and try again, or download the SDK manually. +

+ + + +
+
+ + +
+ + Download SDK manually + + +
+
+ ); +} + +function SDKLicensePage({ + onAgree, + onDecline, + onBack, + canGoBack +}: { + onAgree: () => void; + onDecline: () => void; + onBack?: () => void; + canGoBack?: boolean; +}) { + const [agreed, setAgreed] = useState(false); + + return ( + + {canGoBack && onBack && ( + + )} + +
+ + + +
+ +

+ Apple SDK License Agreement +

+ +

+ Cross-platform builds for macOS require the Apple SDK. Please review and accept the license terms. +

+ +
+